ffc12f98 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { ffc12f98: 94 21 ff d8 stwu r1,-40(r1) ffc12f9c: 7c 08 02 a6 mflr r0 ffc12fa0: 90 01 00 2c stw r0,44(r1) ffc12fa4: 93 e1 00 24 stw r31,36(r1) IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; ffc12fa8: 83 e3 00 00 lwz r31,0(r3) int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { ffc12fac: 93 a1 00 1c stw r29,28(r1) ffc12fb0: 7c bd 2b 78 mr r29,r5 ffc12fb4: 93 c1 00 20 stw r30,32(r1) ffc12fb8: 7c 9e 23 78 mr r30,r4 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); ffc12fbc: 48 00 16 fd bl ffc146b8 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) ffc12fc0: a0 1f 00 3c lhz r0,60(r31) ffc12fc4: 7f 80 18 00 cmpw cr7,r0,r3 ffc12fc8: 41 9e 00 0c beq- cr7,ffc12fd4 ffc12fcc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc12fd0: 40 9e 00 40 bne- cr7,ffc13010 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; ffc12fd4: b3 df 00 3c sth r30,60(r31) jnode->st_gid = group; IMFS_update_ctime( jnode ); ffc12fd8: 38 61 00 08 addi r3,r1,8 ffc12fdc: 38 80 00 00 li r4,0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; jnode->st_gid = group; ffc12fe0: b3 bf 00 3e sth r29,62(r31) IMFS_update_ctime( jnode ); ffc12fe4: 4b ff 31 19 bl ffc060fc ffc12fe8: 80 01 00 08 lwz r0,8(r1) ffc12fec: 38 60 00 00 li r3,0 ffc12ff0: 90 1f 00 48 stw r0,72(r31) return 0; } ffc12ff4: 80 01 00 2c lwz r0,44(r1) ffc12ff8: 83 a1 00 1c lwz r29,28(r1) ffc12ffc: 7c 08 03 a6 mtlr r0 ffc13000: 83 c1 00 20 lwz r30,32(r1) ffc13004: 83 e1 00 24 lwz r31,36(r1) ffc13008: 38 21 00 28 addi r1,r1,40 ffc1300c: 4e 80 00 20 blr #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); ffc13010: 48 00 70 b1 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc13014: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc13018: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1301c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc13020: 4b ff ff d4 b ffc12ff4 <== NOT EXECUTED ffc114ac : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc114ac: 94 21 ff e0 stwu r1,-32(r1) ffc114b0: 7c 08 02 a6 mflr r0 ffc114b4: 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 ) ffc114b8: 7c 7e 1b 79 mr. r30,r3 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc114bc: 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 ) ffc114c0: 3b a0 00 00 li r29,0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc114c4: 93 e1 00 1c stw r31,28(r1) ffc114c8: 7c 9f 23 78 mr r31,r4 ffc114cc: 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 ) ffc114d0: 40 82 00 24 bne- ffc114f4 node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } ffc114d4: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc114d8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc114dc: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc114e0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc114e4: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc114e8: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc114ec: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc114f0: 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 ); ffc114f4: 3d 20 00 00 lis r9,0 ffc114f8: 90 e1 00 08 stw r7,8(r1) ffc114fc: 7c a4 2b 78 mr r4,r5 ffc11500: 81 29 26 dc lwz r9,9948(r9) ffc11504: 7f e3 fb 78 mr r3,r31 ffc11508: 80 a9 00 2c lwz r5,44(r9) ffc1150c: 7c c5 28 78 andc r5,r6,r5 ffc11510: 4b ff fe a1 bl ffc113b0 if ( !node ) ffc11514: 80 e1 00 08 lwz r7,8(r1) ffc11518: 7c 7d 1b 79 mr. r29,r3 ffc1151c: 41 a2 ff b8 beq- ffc114d4 return NULL; /* * Set the type specific information */ switch (type) { ffc11520: 2b 9f 00 07 cmplwi cr7,r31,7 ffc11524: 40 9d 00 24 ble- cr7,ffc11548 case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); ffc11528: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1152c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc11530: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc11534: 38 63 fe b0 addi r3,r3,-336 <== NOT EXECUTED ffc11538: 38 a5 fe 9c addi r5,r5,-356 <== NOT EXECUTED ffc1153c: 38 c6 fe fc addi r6,r6,-260 <== NOT EXECUTED ffc11540: 38 80 00 5c li r4,92 <== NOT EXECUTED ffc11544: 4b ff 2b c9 bl ffc0410c <__assert_func> <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { ffc11548: 3d 20 ff c2 lis r9,-62 ffc1154c: 39 29 fe 7c addi r9,r9,-388 ffc11550: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc11554: 7c 09 f8 2e lwzx r0,r9,r31 ffc11558: 7d 20 4a 14 add r9,r0,r9 ffc1155c: 7d 29 03 a6 mtctr r9 ffc11560: 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; ffc11564: 80 07 00 00 lwz r0,0(r7) ffc11568: 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; ffc1156c: 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 ); ffc11570: 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; ffc11574: 80 7e 00 00 lwz r3,0(r30) fs_info = parent_loc->mt_entry->fs_info; ffc11578: 81 29 00 34 lwz r9,52(r9) node->Parent = parent; ffc1157c: 90 7d 00 08 stw r3,8(r29) ffc11580: 38 63 00 50 addi r3,r3,80 node->st_ino = ++fs_info->ino_count; ffc11584: 81 69 00 00 lwz r11,0(r9) ffc11588: 38 0b 00 01 addi r0,r11,1 ffc1158c: 90 09 00 00 stw r0,0(r9) ffc11590: 90 1d 00 38 stw r0,56(r29) ffc11594: 4b ff 7f 5d bl ffc094f0 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } ffc11598: 80 01 00 24 lwz r0,36(r1) ffc1159c: 7f a3 eb 78 mr r3,r29 ffc115a0: 83 c1 00 18 lwz r30,24(r1) ffc115a4: 7c 08 03 a6 mtlr r0 ffc115a8: 83 a1 00 14 lwz r29,20(r1) ffc115ac: 83 e1 00 1c lwz r31,28(r1) ffc115b0: 38 21 00 20 addi r1,r1,32 ffc115b4: 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; ffc115b8: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc115bc: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc115c0: 91 3d 00 50 stw r9,80(r29) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc115c4: 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; ffc115c8: 91 5d 00 54 stw r10,84(r29) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc115cc: 90 1d 00 58 stw r0,88(r29) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; ffc115d0: 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; ffc115d4: 39 20 00 00 li r9,0 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; ffc115d8: 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; ffc115dc: 39 40 00 00 li r10,0 ffc115e0: 91 3d 00 50 stw r9,80(r29) ffc115e4: 91 5d 00 54 stw r10,84(r29) node->info.file.indirect = 0; ffc115e8: 90 1d 00 58 stw r0,88(r29) node->info.file.doubly_indirect = 0; ffc115ec: 90 1d 00 5c stw r0,92(r29) node->info.file.triply_indirect = 0; break; ffc115f0: 4b ff ff 7c b ffc1156c case IMFS_FIFO: node->info.fifo.pipe = NULL; ffc115f4: 38 00 00 00 li r0,0 ffc115f8: 90 1d 00 50 stw r0,80(r29) break; ffc115fc: 4b ff ff 70 b ffc1156c 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; ffc11600: 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; ffc11604: 80 07 00 00 lwz r0,0(r7) node->info.device.minor = info->device.minor; ffc11608: 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; ffc1160c: 90 1d 00 50 stw r0,80(r29) node->info.device.minor = info->device.minor; break; ffc11610: 4b ff ff 5c b ffc1156c */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc11614: 39 3d 00 54 addi r9,r29,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc11618: 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); ffc1161c: 91 3d 00 50 stw r9,80(r29) the_chain->permanent_null = NULL; ffc11620: 39 20 00 00 li r9,0 ffc11624: 91 3d 00 54 stw r9,84(r29) the_chain->last = _Chain_Head(the_chain); ffc11628: 90 1d 00 58 stw r0,88(r29) ffc1162c: 4b ff ff 40 b ffc1156c ffc06618 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); ffc06618: 2c 03 00 00 cmpwi r3,0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { ffc0661c: 94 21 ff d8 stwu r1,-40(r1) ffc06620: 7c 08 02 a6 mflr r0 ffc06624: 93 c1 00 20 stw r30,32(r1) ffc06628: 7c 9e 23 78 mr r30,r4 ffc0662c: 90 01 00 2c stw r0,44(r1) ffc06630: 93 21 00 0c stw r25,12(r1) ffc06634: 93 41 00 10 stw r26,16(r1) ffc06638: 93 61 00 14 stw r27,20(r1) ffc0663c: 93 81 00 18 stw r28,24(r1) ffc06640: 93 a1 00 1c stw r29,28(r1) ffc06644: 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 ); ffc06648: 41 82 00 c0 beq- ffc06708 assert( level >= 0 ); ffc0664c: 2f 84 00 00 cmpwi cr7,r4,0 ffc06650: 41 9c 00 f8 blt- cr7,ffc06748 assert( the_directory->type == IMFS_DIRECTORY ); ffc06654: 80 03 00 4c lwz r0,76(r3) ffc06658: 2f 80 00 01 cmpwi cr7,r0,1 ffc0665c: 40 9e 00 cc bne- cr7,ffc06728 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; ffc06660: 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; ffc06664: 3b 43 00 54 addi r26,r3,84 ffc06668: 7f 9b d0 00 cmpw cr7,r27,r26 ffc0666c: 41 9e 00 60 beq- cr7,ffc066cc ffc06670: 3f 80 ff c3 lis r28,-61 ffc06674: 3f a0 00 00 lis r29,0 ffc06678: 3b 9c a4 24 addi r28,r28,-23516 ffc0667c: 3b bd 27 4c addi r29,r29,10060 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 ); ffc06680: 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; ffc06684: 3b e0 00 00 li r31,0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc06688: 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++ ) ffc0668c: 3b ff 00 01 addi r31,r31,1 fprintf(stdout, "...." ); ffc06690: 7f 83 e3 78 mr r3,r28 ffc06694: 80 c9 00 08 lwz r6,8(r9) ffc06698: 38 80 00 01 li r4,1 ffc0669c: 38 a0 00 04 li r5,4 ffc066a0: 48 01 41 4d bl ffc1a7ec !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++ ) ffc066a4: 7f 9e f8 00 cmpw cr7,r30,r31 ffc066a8: 40 9c ff e0 bge+ cr7,ffc06688 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); ffc066ac: 7f 63 db 78 mr r3,r27 ffc066b0: 4b ff fd 09 bl ffc063b8 if ( the_jnode->type == IMFS_DIRECTORY ) ffc066b4: 80 1b 00 4c lwz r0,76(r27) ffc066b8: 2f 80 00 01 cmpwi cr7,r0,1 ffc066bc: 41 9e 00 3c beq- cr7,ffc066f8 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 ) { ffc066c0: 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; ffc066c4: 7f 9b d0 00 cmpw cr7,r27,r26 ffc066c8: 40 9e ff bc bne+ cr7,ffc06684 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } ffc066cc: 80 01 00 2c lwz r0,44(r1) ffc066d0: 83 21 00 0c lwz r25,12(r1) ffc066d4: 7c 08 03 a6 mtlr r0 ffc066d8: 83 41 00 10 lwz r26,16(r1) ffc066dc: 83 61 00 14 lwz r27,20(r1) ffc066e0: 83 81 00 18 lwz r28,24(r1) ffc066e4: 83 a1 00 1c lwz r29,28(r1) ffc066e8: 83 c1 00 20 lwz r30,32(r1) ffc066ec: 83 e1 00 24 lwz r31,36(r1) ffc066f0: 38 21 00 28 addi r1,r1,40 ffc066f4: 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 ); ffc066f8: 7f 63 db 78 mr r3,r27 ffc066fc: 7f 24 cb 78 mr r4,r25 ffc06700: 4b ff ff 19 bl ffc06618 ffc06704: 4b ff ff bc b ffc066c0 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); ffc06708: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc0670c: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06710: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06714: 38 63 a3 1c addi r3,r3,-23780 <== NOT EXECUTED ffc06718: 38 a5 a3 08 addi r5,r5,-23800 <== NOT EXECUTED ffc0671c: 38 c6 a3 e0 addi r6,r6,-23584 <== NOT EXECUTED ffc06720: 38 80 00 84 li r4,132 <== NOT EXECUTED ffc06724: 48 00 09 99 bl ffc070bc <__assert_func> <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); ffc06728: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc0672c: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06730: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06734: 38 63 a3 1c addi r3,r3,-23780 <== NOT EXECUTED ffc06738: 38 a5 a3 08 addi r5,r5,-23800 <== NOT EXECUTED ffc0673c: 38 c6 a3 fc addi r6,r6,-23556 <== NOT EXECUTED ffc06740: 38 80 00 88 li r4,136 <== NOT EXECUTED ffc06744: 48 00 09 79 bl ffc070bc <__assert_func> <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); ffc06748: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc0674c: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06750: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06754: 38 63 a3 1c addi r3,r3,-23780 <== NOT EXECUTED ffc06758: 38 a5 a3 08 addi r5,r5,-23800 <== NOT EXECUTED ffc0675c: 38 c6 a3 f0 addi r6,r6,-23568 <== NOT EXECUTED ffc06760: 38 80 00 86 li r4,134 <== NOT EXECUTED ffc06764: 48 00 09 59 bl ffc070bc <__assert_func> <== NOT EXECUTED ffc0d010 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0d010: 94 21 ff 90 stwu r1,-112(r1) ffc0d014: 7c 08 02 a6 mflr r0 ffc0d018: 90 01 00 74 stw r0,116(r1) ffc0d01c: 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 ) ffc0d020: 3f 00 00 00 lis r24,0 ffc0d024: 3b 18 26 dc addi r24,r24,9948 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0d028: 93 a1 00 64 stw r29,100(r1) ffc0d02c: 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; ffc0d030: 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 */ ) { ffc0d034: 92 e1 00 4c stw r23,76(r1) ffc0d038: 7c b7 2b 78 mr r23,r5 ffc0d03c: 93 21 00 54 stw r25,84(r1) ffc0d040: 3b 21 00 08 addi r25,r1,8 ffc0d044: 93 41 00 58 stw r26,88(r1) ffc0d048: 7c 7a 1b 78 mr r26,r3 ffc0d04c: 93 61 00 5c stw r27,92(r1) ffc0d050: 3b 61 00 20 addi r27,r1,32 ffc0d054: 93 81 00 60 stw r28,96(r1) ffc0d058: 7c dc 33 78 mr r28,r6 ffc0d05c: 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; ffc0d060: 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 */ ) { ffc0d064: 93 e1 00 6c stw r31,108(r1) ffc0d068: 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 ); ffc0d06c: 7c 7a f2 14 add r3,r26,r30 ffc0d070: 7f e4 fb 78 mr r4,r31 ffc0d074: 7f 65 db 78 mr r5,r27 ffc0d078: 7f 26 cb 78 mr r6,r25 ffc0d07c: 48 00 0b 0d bl ffc0db88 pathnamelen -= len; i += len; if ( !pathloc->node_access ) ffc0d080: 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 ); ffc0d084: 7c 76 1b 78 mr r22,r3 pathnamelen -= len; ffc0d088: 80 01 00 08 lwz r0,8(r1) i += len; if ( !pathloc->node_access ) ffc0d08c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d090: 41 9e 01 e0 beq- cr7,ffc0d270 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) ffc0d094: 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; i += len; ffc0d098: 7f de 02 14 add r30,r30,r0 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; ffc0d09c: 7f e0 f8 50 subf r31,r0,r31 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) ffc0d0a0: 40 9e 00 44 bne- cr7,ffc0d0e4 * 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 ) { ffc0d0a4: 80 09 00 4c lwz r0,76(r9) ffc0d0a8: 2f 80 00 01 cmpwi cr7,r0,1 ffc0d0ac: 41 9e 01 50 beq- cr7,ffc0d1fc flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); ffc0d0b0: 7f 83 e3 78 mr r3,r28 ffc0d0b4: 4b ff fc ad bl ffc0cd60 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) ffc0d0b8: 7e e4 bb 78 mr r4,r23 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); ffc0d0bc: 7c 76 1b 78 mr r22,r3 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) ffc0d0c0: 7f 83 e3 78 mr r3,r28 ffc0d0c4: 4b ff fd 2d bl ffc0cdf0 ffc0d0c8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d0cc: 40 be 00 d8 bne+ cr7,ffc0d1a4 rtems_set_errno_and_return_minus_one( EACCES ); ffc0d0d0: 48 00 64 51 bl ffc13520 <__errno> ffc0d0d4: 38 00 00 0d li r0,13 ffc0d0d8: 90 03 00 00 stw r0,0(r3) ffc0d0dc: 3a c0 ff ff li r22,-1 ffc0d0e0: 48 00 00 c4 b ffc0d1a4 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) ffc0d0e4: 80 1d 00 4c lwz r0,76(r29) ffc0d0e8: 2f 80 00 01 cmpwi cr7,r0,1 ffc0d0ec: 41 9e 00 f4 beq- cr7,ffc0d1e0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0d0f0: 2f 96 00 03 cmpwi cr7,r22,3 if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; ffc0d0f4: 7d 3d 4b 78 mr r29,r9 switch( type ) { ffc0d0f8: 41 9e 00 1c beq- cr7,ffc0d114 ffc0d0fc: 2f 96 00 04 cmpwi cr7,r22,4 ffc0d100: 41 9e 00 94 beq- cr7,ffc0d194 ffc0d104: 2f 16 00 02 cmpwi cr6,r22,2 ffc0d108: 41 9a 00 50 beq- cr6,ffc0d158 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { ffc0d10c: 40 9e ff 60 bne+ cr7,ffc0d06c ffc0d110: 4b ff ff 94 b ffc0d0a4 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { ffc0d114: 80 09 00 4c lwz r0,76(r9) ffc0d118: 2f 80 00 03 cmpwi cr7,r0,3 ffc0d11c: 41 9e 01 68 beq- cr7,ffc0d284 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { ffc0d120: 2f 80 00 04 cmpwi cr7,r0,4 ffc0d124: 41 9e 01 94 beq- cr7,ffc0d2b8 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) ffc0d128: 2f 80 00 01 cmpwi cr7,r0,1 ffc0d12c: 40 9e 01 78 bne- cr7,ffc0d2a4 /* * 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 ) { ffc0d130: 81 1d 00 5c lwz r8,92(r29) ffc0d134: 2f 88 00 00 cmpwi cr7,r8,0 ffc0d138: 40 9e 00 d0 bne- cr7,ffc0d208 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); ffc0d13c: 7f a3 eb 78 mr r3,r29 ffc0d140: 7f 64 db 78 mr r4,r27 ffc0d144: 48 00 09 45 bl ffc0da88 if ( !node ) ffc0d148: 7c 7d 1b 79 mr. r29,r3 ffc0d14c: 41 82 01 24 beq- ffc0d270 /* * Set the node access to the point we have found. */ pathloc->node_access = node; ffc0d150: 93 bc 00 00 stw r29,0(r28) break; ffc0d154: 4b ff ff 18 b ffc0d06c case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0d158: 81 78 00 00 lwz r11,0(r24) ffc0d15c: 80 0b 00 18 lwz r0,24(r11) ffc0d160: 7f 80 48 00 cmpw cr7,r0,r9 ffc0d164: 41 be ff 08 beq- cr7,ffc0d06c /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { ffc0d168: 81 1c 00 10 lwz r8,16(r28) /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == ffc0d16c: 80 08 00 1c lwz r0,28(r8) ffc0d170: 7f 80 48 00 cmpw cr7,r0,r9 ffc0d174: 41 9e 01 68 beq- cr7,ffc0d2dc pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) ffc0d178: 83 a9 00 08 lwz r29,8(r9) ffc0d17c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0d180: 40 9e ff d0 bne+ cr7,ffc0d150 rtems_set_errno_and_return_minus_one( ENOENT ); ffc0d184: 48 00 63 9d bl ffc13520 <__errno> ffc0d188: 92 c3 00 00 stw r22,0(r3) ffc0d18c: 3a c0 ff ff li r22,-1 ffc0d190: 48 00 00 14 b ffc0d1a4 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc0d194: 48 00 63 8d bl ffc13520 <__errno> ffc0d198: 38 00 00 5b li r0,91 ffc0d19c: 90 03 00 00 stw r0,0(r3) ffc0d1a0: 3a c0 ff ff li r22,-1 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0d1a4: 80 01 00 74 lwz r0,116(r1) ffc0d1a8: 7e c3 b3 78 mr r3,r22 ffc0d1ac: 82 e1 00 4c lwz r23,76(r1) ffc0d1b0: 7c 08 03 a6 mtlr r0 ffc0d1b4: 82 c1 00 48 lwz r22,72(r1) ffc0d1b8: 83 01 00 50 lwz r24,80(r1) ffc0d1bc: 83 21 00 54 lwz r25,84(r1) ffc0d1c0: 83 41 00 58 lwz r26,88(r1) ffc0d1c4: 83 61 00 5c lwz r27,92(r1) ffc0d1c8: 83 81 00 60 lwz r28,96(r1) ffc0d1cc: 83 a1 00 64 lwz r29,100(r1) ffc0d1d0: 83 c1 00 68 lwz r30,104(r1) ffc0d1d4: 83 e1 00 6c lwz r31,108(r1) ffc0d1d8: 38 21 00 70 addi r1,r1,112 ffc0d1dc: 4e 80 00 20 blr /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) ffc0d1e0: 7f 83 e3 78 mr r3,r28 ffc0d1e4: 38 80 00 01 li r4,1 ffc0d1e8: 4b ff fc 09 bl ffc0cdf0 ffc0d1ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d1f0: 41 be fe e0 beq- cr7,ffc0d0d0 ffc0d1f4: 81 3c 00 00 lwz r9,0(r28) ffc0d1f8: 4b ff fe f8 b ffc0d0f0 * * 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 ) { ffc0d1fc: 81 09 00 5c lwz r8,92(r9) ffc0d200: 2f 88 00 00 cmpwi cr7,r8,0 ffc0d204: 41 be fe ac beq- cr7,ffc0d0b0 newloc = node->info.directory.mt_fs->mt_fs_root; ffc0d208: 81 28 00 28 lwz r9,40(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d20c: 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; ffc0d210: 80 e8 00 1c lwz r7,28(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d214: 7f 86 e3 78 mr r6,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; ffc0d218: 81 48 00 20 lwz r10,32(r8) ffc0d21c: 81 68 00 24 lwz r11,36(r8) ffc0d220: 90 e1 00 0c stw r7,12(r1) ffc0d224: 91 41 00 10 stw r10,16(r1) ffc0d228: 91 61 00 14 stw r11,20(r1) ffc0d22c: 91 21 00 18 stw r9,24(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d230: 80 81 00 08 lwz r4,8(r1) * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0d234: 80 08 00 2c lwz r0,44(r8) *pathloc = newloc; ffc0d238: 90 1c 00 10 stw r0,16(r28) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d23c: 7c 64 f0 50 subf r3,r4,r30 ffc0d240: 7c 7a 1a 14 add r3,r26,r3 */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; ffc0d244: 90 fc 00 00 stw r7,0(r28) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d248: 7c 9f 22 14 add r4,r31,r4 */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; ffc0d24c: 91 5c 00 04 stw r10,4(r28) ffc0d250: 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; ffc0d254: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d258: 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; ffc0d25c: 91 3c 00 0c stw r9,12(r28) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d260: 7c 09 03 a6 mtctr r0 ffc0d264: 4e 80 04 21 bctrl ffc0d268: 7c 76 1b 78 mr r22,r3 ffc0d26c: 4b ff ff 38 b ffc0d1a4 * 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 ); ffc0d270: 48 00 62 b1 bl ffc13520 <__errno> ffc0d274: 38 00 00 02 li r0,2 ffc0d278: 90 03 00 00 stw r0,0(r3) ffc0d27c: 3a c0 ff ff li r22,-1 ffc0d280: 4b ff ff 24 b ffc0d1a4 * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); ffc0d284: 7f 83 e3 78 mr r3,r28 ffc0d288: 38 80 00 00 li r4,0 ffc0d28c: 4b ff fb e5 bl ffc0ce70 node = pathloc->node_access; ffc0d290: 83 bc 00 00 lwz r29,0(r28) if ( !node ) ffc0d294: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0d298: 41 9e 00 0c beq- cr7,ffc0d2a4 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; ffc0d29c: 80 1d 00 4c lwz r0,76(r29) ffc0d2a0: 4b ff fe 88 b ffc0d128 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0d2a4: 48 00 62 7d bl ffc13520 <__errno> ffc0d2a8: 38 00 00 14 li r0,20 ffc0d2ac: 90 03 00 00 stw r0,0(r3) ffc0d2b0: 3a c0 ff ff li r22,-1 ffc0d2b4: 4b ff fe f0 b ffc0d1a4 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); ffc0d2b8: 7f 83 e3 78 mr r3,r28 ffc0d2bc: 38 80 00 00 li r4,0 ffc0d2c0: 4b ff fc 2d bl ffc0ceec node = pathloc->node_access; ffc0d2c4: 83 bc 00 00 lwz r29,0(r28) if ( result == -1 ) ffc0d2c8: 2f 83 ff ff cmpwi cr7,r3,-1 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); ffc0d2cc: 7c 76 1b 78 mr r22,r3 node = pathloc->node_access; if ( result == -1 ) ffc0d2d0: 41 be fe d4 beq- cr7,ffc0d1a4 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; ffc0d2d4: 80 1d 00 4c lwz r0,76(r29) ffc0d2d8: 4b ff fe 50 b ffc0d128 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d2dc: 81 28 00 14 lwz r9,20(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0d2e0: 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; ffc0d2e4: 80 e8 00 08 lwz r7,8(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0d2e8: 7f 86 e3 78 mr r6,r28 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d2ec: 81 48 00 0c lwz r10,12(r8) ffc0d2f0: 81 68 00 10 lwz r11,16(r8) ffc0d2f4: 90 e1 00 0c stw r7,12(r1) ffc0d2f8: 91 41 00 10 stw r10,16(r1) ffc0d2fc: 91 61 00 14 stw r11,20(r1) ffc0d300: 91 21 00 18 stw r9,24(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0d304: 80 81 00 08 lwz r4,8(r1) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d308: 80 08 00 18 lwz r0,24(r8) ffc0d30c: 4b ff ff 2c b ffc0d238 ffc0ce70 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0ce70: 94 21 ff e8 stwu r1,-24(r1) ffc0ce74: 7c 08 02 a6 mflr r0 ffc0ce78: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode = node->node_access; ffc0ce7c: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0ce80: 93 e1 00 14 stw r31,20(r1) ffc0ce84: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) ffc0ce88: 80 09 00 4c lwz r0,76(r9) ffc0ce8c: 2f 80 00 03 cmpwi cr7,r0,3 ffc0ce90: 40 9e 00 54 bne- cr7,ffc0cee4 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; ffc0ce94: 80 09 00 50 lwz r0,80(r9) IMFS_Set_handlers( node ); ffc0ce98: 90 81 00 08 stw r4,8(r1) /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; ffc0ce9c: 90 03 00 00 stw r0,0(r3) IMFS_Set_handlers( node ); ffc0cea0: 4b ff fe c1 bl ffc0cd60 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) ffc0cea4: 80 81 00 08 lwz r4,8(r1) ffc0cea8: 7f e3 fb 78 mr r3,r31 ffc0ceac: 4b ff ff 45 bl ffc0cdf0 ffc0ceb0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ceb4: 38 60 00 00 li r3,0 ffc0ceb8: 41 9e 00 18 beq- cr7,ffc0ced0 rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0cebc: 80 01 00 1c lwz r0,28(r1) ffc0cec0: 83 e1 00 14 lwz r31,20(r1) ffc0cec4: 38 21 00 18 addi r1,r1,24 ffc0cec8: 7c 08 03 a6 mtlr r0 ffc0cecc: 4e 80 00 20 blr /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); ffc0ced0: 48 00 66 51 bl ffc13520 <__errno> <== NOT EXECUTED ffc0ced4: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0ced8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cedc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0cee0: 4b ff ff dc b ffc0cebc <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); ffc0cee4: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc0cee8: 4b ff c1 51 bl ffc09038 <== NOT EXECUTED ffc0cdf0 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { ffc0cdf0: 94 21 ff e8 stwu r1,-24(r1) ffc0cdf4: 7c 08 02 a6 mflr r0 ffc0cdf8: 90 01 00 1c stw r0,28(r1) ffc0cdfc: 93 e1 00 14 stw r31,20(r1) if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0ce00: 83 e3 00 00 lwz r31,0(r3) int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { ffc0ce04: 93 a1 00 0c stw r29,12(r1) ffc0ce08: 93 c1 00 10 stw r30,16(r1) ffc0ce0c: 7c 9e 23 78 mr r30,r4 } jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); ffc0ce10: 48 00 15 09 bl ffc0e318 ffc0ce14: 7c 7d 1b 78 mr r29,r3 st_gid = getegid(); ffc0ce18: 48 00 14 f1 bl ffc0e308 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) ffc0ce1c: a1 3f 00 3c lhz r9,60(r31) flags_to_test <<= 6; ffc0ce20: 57 c0 30 32 rlwinm r0,r30,6,0,25 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) ffc0ce24: 7f 89 e8 00 cmpw cr7,r9,r29 ffc0ce28: 41 9e 00 18 beq- cr7,ffc0ce40 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) ffc0ce2c: a1 3f 00 3e lhz r9,62(r31) flags_to_test <<= 3; ffc0ce30: 57 c0 18 38 rlwinm r0,r30,3,0,28 flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) ffc0ce34: 7f 89 18 00 cmpw cr7,r9,r3 ffc0ce38: 41 9e 00 08 beq- cr7,ffc0ce40 ffc0ce3c: 7f c0 f3 78 mr r0,r30 <== NOT EXECUTED /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0ce40: 80 7f 00 30 lwz r3,48(r31) return 1; return 0; } ffc0ce44: 83 a1 00 0c lwz r29,12(r1) /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0ce48: 7c 03 18 38 and r3,r0,r3 return 1; return 0; } ffc0ce4c: 83 c1 00 10 lwz r30,16(r1) ffc0ce50: 7c 03 1a 78 xor r3,r0,r3 ffc0ce54: 80 01 00 1c lwz r0,28(r1) ffc0ce58: 7c 63 00 34 cntlzw r3,r3 ffc0ce5c: 83 e1 00 14 lwz r31,20(r1) ffc0ce60: 7c 08 03 a6 mtlr r0 ffc0ce64: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc0ce68: 38 21 00 18 addi r1,r1,24 ffc0ce6c: 4e 80 00 20 blr ffc0ceec : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0ceec: 94 21 ff e8 stwu r1,-24(r1) ffc0cef0: 7c 08 02 a6 mflr r0 ffc0cef4: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode = node->node_access; ffc0cef8: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0cefc: 93 c1 00 10 stw r30,16(r1) ffc0cf00: 7c 9e 23 78 mr r30,r4 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0cf04: 80 09 00 4c lwz r0,76(r9) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0cf08: 93 e1 00 14 stw r31,20(r1) ffc0cf0c: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0cf10: 2f 80 00 04 cmpwi cr7,r0,4 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0cf14: 93 a1 00 0c stw r29,12(r1) /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0cf18: 40 9e 00 f0 bne- cr7,ffc0d008 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) ffc0cf1c: 80 09 00 08 lwz r0,8(r9) ffc0cf20: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cf24: 41 9e 00 dc beq- cr7,ffc0d000 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; ffc0cf28: 90 03 00 00 stw r0,0(r3) rtems_filesystem_get_sym_start_loc( ffc0cf2c: 81 69 00 50 lwz r11,80(r9) ffc0cf30: 88 0b 00 00 lbz r0,0(r11) ffc0cf34: 2f 80 00 2f cmpwi cr7,r0,47 ffc0cf38: 41 9e 00 78 beq- cr7,ffc0cfb0 ffc0cf3c: 2f 80 00 5c cmpwi cr7,r0,92 ffc0cf40: 41 9e 00 70 beq- cr7,ffc0cfb0 ffc0cf44: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cf48: 3b a0 00 00 li r29,0 ffc0cf4c: 41 9e 00 64 beq- cr7,ffc0cfb0 * 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] ), ffc0cf50: 7f ab ea 14 add r29,r11,r29 ffc0cf54: 7f a3 eb 78 mr r3,r29 ffc0cf58: 48 00 78 c5 bl ffc1481c /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0cf5c: 7f c5 f3 78 mr r5,r30 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), ffc0cf60: 7c 64 1b 78 mr r4,r3 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0cf64: 7f e6 fb 78 mr r6,r31 ffc0cf68: 7f a3 eb 78 mr r3,r29 ffc0cf6c: 48 00 00 a5 bl ffc0d010 ffc0cf70: 7c 7d 1b 78 mr r29,r3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); ffc0cf74: 7f e3 fb 78 mr r3,r31 ffc0cf78: 4b ff fd e9 bl ffc0cd60 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) ffc0cf7c: 7f e3 fb 78 mr r3,r31 ffc0cf80: 7f c4 f3 78 mr r4,r30 ffc0cf84: 4b ff fe 6d bl ffc0cdf0 ffc0cf88: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cf8c: 41 9e 00 60 beq- cr7,ffc0cfec rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0cf90: 80 01 00 1c lwz r0,28(r1) ffc0cf94: 7f a3 eb 78 mr r3,r29 ffc0cf98: 83 c1 00 10 lwz r30,16(r1) ffc0cf9c: 7c 08 03 a6 mtlr r0 ffc0cfa0: 83 a1 00 0c lwz r29,12(r1) ffc0cfa4: 83 e1 00 14 lwz r31,20(r1) ffc0cfa8: 38 21 00 18 addi r1,r1,24 ffc0cfac: 4e 80 00 20 blr * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( ffc0cfb0: 3d 60 00 00 lis r11,0 ffc0cfb4: 81 6b 26 dc lwz r11,9948(r11) ffc0cfb8: 3b a0 00 01 li r29,1 ffc0cfbc: 80 0b 00 24 lwz r0,36(r11) ffc0cfc0: 80 eb 00 18 lwz r7,24(r11) ffc0cfc4: 81 0b 00 1c lwz r8,28(r11) ffc0cfc8: 81 4b 00 20 lwz r10,32(r11) ffc0cfcc: 90 ff 00 00 stw r7,0(r31) ffc0cfd0: 91 1f 00 04 stw r8,4(r31) ffc0cfd4: 91 5f 00 08 stw r10,8(r31) ffc0cfd8: 90 1f 00 0c stw r0,12(r31) ffc0cfdc: 80 0b 00 28 lwz r0,40(r11) ffc0cfe0: 90 1f 00 10 stw r0,16(r31) ffc0cfe4: 81 69 00 50 lwz r11,80(r9) ffc0cfe8: 4b ff ff 68 b ffc0cf50 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); ffc0cfec: 48 00 65 35 bl ffc13520 <__errno> <== NOT EXECUTED ffc0cff0: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0cff4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cff8: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc0cffc: 4b ff ff 94 b ffc0cf90 <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); ffc0d000: 3c 60 ba d0 lis r3,-17712 <== NOT EXECUTED ffc0d004: 4b ff c0 35 bl ffc09038 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); ffc0d008: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc0d00c: 4b ff c0 2d bl ffc09038 <== NOT EXECUTED ffc11630 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { ffc11630: 94 21 ff e0 stwu r1,-32(r1) ffc11634: 7c 08 02 a6 mflr r0 ffc11638: 90 01 00 24 stw r0,36(r1) ffc1163c: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; ffc11640: 83 e3 00 00 lwz r31,0(r3) int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { ffc11644: 93 c1 00 18 stw r30,24(r1) ffc11648: 7c 9e 23 78 mr r30,r4 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); ffc1164c: 4b ff cc cd bl ffc0e318 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) ffc11650: a0 1f 00 3c lhz r0,60(r31) ffc11654: 7f 80 18 00 cmpw cr7,r0,r3 ffc11658: 41 9e 00 0c beq- cr7,ffc11664 ffc1165c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc11660: 40 9e 00 48 bne- cr7,ffc116a8 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); ffc11664: 80 1f 00 30 lwz r0,48(r31) ffc11668: 57 de 05 3e clrlwi r30,r30,20 IMFS_update_ctime( jnode ); ffc1166c: 38 61 00 08 addi r3,r1,8 /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); ffc11670: 54 00 00 26 rlwinm r0,r0,0,0,19 ffc11674: 7f de 03 78 or r30,r30,r0 ffc11678: 93 df 00 30 stw r30,48(r31) IMFS_update_ctime( jnode ); ffc1167c: 38 80 00 00 li r4,0 ffc11680: 4b ff cc a9 bl ffc0e328 ffc11684: 80 01 00 08 lwz r0,8(r1) ffc11688: 38 60 00 00 li r3,0 ffc1168c: 90 1f 00 48 stw r0,72(r31) return 0; } ffc11690: 80 01 00 24 lwz r0,36(r1) ffc11694: 83 c1 00 18 lwz r30,24(r1) ffc11698: 7c 08 03 a6 mtlr r0 ffc1169c: 83 e1 00 1c lwz r31,28(r1) ffc116a0: 38 21 00 20 addi r1,r1,32 ffc116a4: 4e 80 00 20 blr */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); ffc116a8: 48 00 1e 79 bl ffc13520 <__errno> <== NOT EXECUTED ffc116ac: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc116b0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc116b4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc116b8: 4b ff ff d8 b ffc11690 <== NOT EXECUTED ffc0d994 : } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0d994: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc0d998: 7c 08 02 a6 mflr r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0d99c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0d9a0: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED ffc0d9a4: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0d9a8: 83 c3 00 3c lwz r30,60(r3) <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0d9ac: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc0d9b0: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0d9b4: 38 7e 00 50 addi r3,r30,80 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0d9b8: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0d9bc: 48 00 34 15 bl ffc10dd0 <== NOT EXECUTED if (! err) { ffc0d9c0: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc0d9c4: 41 82 00 28 beq- ffc0d9ec <== 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); ffc0d9c8: 41 80 00 58 blt- ffc0da20 <== NOT EXECUTED } ffc0d9cc: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc0d9d0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0d9d4: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc0d9d8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d9dc: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0d9e0: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc0d9e4: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0d9e8: 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; ffc0d9ec: 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) ffc0d9f0: 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; ffc0d9f4: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc0d9f8: 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) ffc0d9fc: 48 00 0a 1d bl ffc0e418 <== NOT EXECUTED ffc0da00: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0da04: 40 be ff c8 bne- cr7,ffc0d9cc <== NOT EXECUTED ffc0da08: a0 1e 00 34 lhz r0,52(r30) <== NOT EXECUTED ffc0da0c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0da10: 40 9e ff bc bne+ cr7,ffc0d9cc <== NOT EXECUTED free(jnode); ffc0da14: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0da18: 4b ff 6b dd bl ffc045f4 <== NOT EXECUTED ffc0da1c: 4b ff ff b0 b ffc0d9cc <== NOT EXECUTED } IMFS_FIFO_RETURN(err); ffc0da20: 7f bd 00 d0 neg r29,r29 <== NOT EXECUTED ffc0da24: 48 00 5a fd bl ffc13520 <__errno> <== NOT EXECUTED ffc0da28: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc0da2c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc0da30: 4b ff ff 9c b ffc0d9cc <== NOT EXECUTED ffc0d7e8 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0d7e8: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0d7ec: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0d7f0: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0d7f4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0d7f8: 3c 00 80 04 lis r0,-32764 <== NOT EXECUTED ffc0d7fc: 60 00 66 7e ori r0,r0,26238 <== NOT EXECUTED ffc0d800: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0d804: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0d808: 41 9e 00 2c beq- cr7,ffc0d834 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); ffc0d80c: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0d810: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0d814: 48 00 30 59 bl ffc1086c <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0d818: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc0d81c: 41 80 00 78 blt- ffc0d894 <== NOT EXECUTED } ffc0d820: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0d824: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0d828: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0d82c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d830: 4e 80 00 20 blr <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) ffc0d834: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc0d838: 3b e0 00 0e li r31,14 <== NOT EXECUTED ffc0d83c: 41 9e 00 5c beq- cr7,ffc0d898 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) ffc0d840: 80 05 00 00 lwz r0,0(r5) <== NOT EXECUTED ffc0d844: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0d848: 41 9e 00 28 beq- cr7,ffc0d870 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; ffc0d84c: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc0d850: 38 60 00 00 li r3,0 <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } ffc0d854: 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; ffc0d858: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc0d85c: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } ffc0d860: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0d864: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0d868: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d86c: 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; ffc0d870: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc0d874: 38 60 00 00 li r3,0 <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } ffc0d878: 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; ffc0d87c: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc0d880: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } ffc0d884: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0d888: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0d88c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d890: 4e 80 00 20 blr <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); ffc0d894: 7f e3 00 d0 neg r31,r3 <== NOT EXECUTED ffc0d898: 48 00 5c 89 bl ffc13520 <__errno> <== NOT EXECUTED ffc0d89c: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0d8a0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0d8a4: 4b ff ff 7c b ffc0d820 <== NOT EXECUTED ffc0d780 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc0d780: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0d784: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0d788: 7c 68 1b 78 mr r8,r3 <== NOT EXECUTED ffc0d78c: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0d790: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); ffc0d794: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0d798: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0d79c: 48 00 30 49 bl ffc107e4 <== NOT EXECUTED ffc0d7a0: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0d7a4: 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); ffc0d7a8: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0d7ac: 7c 6a 1b 78 mr r10,r3 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0d7b0: 41 9c 00 20 blt- cr7,ffc0d7d0 <== NOT EXECUTED } ffc0d7b4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0d7b8: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED ffc0d7bc: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc0d7c0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0d7c4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d7c8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0d7cc: 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); ffc0d7d0: 48 00 5d 51 bl ffc13520 <__errno> <== NOT EXECUTED ffc0d7d4: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED ffc0d7d8: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0d7dc: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc0d7e0: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc0d7e4: 4b ff ff d0 b ffc0d7b4 <== NOT EXECUTED ffc0d920 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc0d920: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0d924: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0d928: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0d92c: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0d930: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0d934: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0d938: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); ffc0d93c: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0d940: 48 00 2f b5 bl ffc108f4 <== NOT EXECUTED if (err > 0) ffc0d944: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0d948: 40 81 00 34 ble- ffc0d97c <== NOT EXECUTED IMFS_update_atime(jnode); ffc0d94c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0d950: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0d954: 48 00 09 d5 bl ffc0e328 <== NOT EXECUTED ffc0d958: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0d95c: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED IMFS_FIFO_RETURN(err); } ffc0d960: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0d964: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0d968: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0d96c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d970: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0d974: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0d978: 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); ffc0d97c: 41 82 ff e4 beq+ ffc0d960 <== NOT EXECUTED ffc0d980: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0d984: 48 00 5b 9d bl ffc13520 <__errno> <== NOT EXECUTED ffc0d988: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0d98c: 3b c0 ff ff li r30,-1 <== NOT EXECUTED ffc0d990: 4b ff ff d0 b ffc0d960 <== NOT EXECUTED ffc0d8a8 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc0d8a8: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0d8ac: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0d8b0: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0d8b4: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0d8b8: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0d8bc: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0d8c0: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); ffc0d8c4: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0d8c8: 48 00 32 81 bl ffc10b48 <== NOT EXECUTED if (err > 0) { ffc0d8cc: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0d8d0: 40 81 00 38 ble- ffc0d908 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); ffc0d8d4: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0d8d8: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0d8dc: 48 00 0a 4d bl ffc0e328 <== NOT EXECUTED ffc0d8e0: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0d8e4: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED ffc0d8e8: 90 1f 00 44 stw r0,68(r31) <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } ffc0d8ec: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0d8f0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0d8f4: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0d8f8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d8fc: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0d900: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0d904: 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); ffc0d908: 41 82 ff e4 beq+ ffc0d8ec <== NOT EXECUTED ffc0d90c: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0d910: 48 00 5c 11 bl ffc13520 <__errno> <== NOT EXECUTED ffc0d914: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0d918: 3b c0 ff ff li r30,-1 <== NOT EXECUTED ffc0d91c: 4b ff ff d0 b ffc0d8ec <== NOT EXECUTED ffc0da88 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0da88: 94 21 ff e8 stwu r1,-24(r1) ffc0da8c: 7c 08 02 a6 mflr r0 ffc0da90: 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 ); ffc0da94: 7c 7e 1b 79 mr. r30,r3 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0da98: 93 e1 00 14 stw r31,20(r1) ffc0da9c: 7c 9f 23 78 mr r31,r4 ffc0daa0: 90 01 00 1c stw r0,28(r1) ffc0daa4: 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 ); ffc0daa8: 41 82 00 c0 beq- ffc0db68 if ( !name ) ffc0daac: 2f 84 00 00 cmpwi cr7,r4,0 ffc0dab0: 41 9e 00 58 beq- cr7,ffc0db08 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) ffc0dab4: 3f a0 ff c2 lis r29,-62 ffc0dab8: 3b bd fa a0 addi r29,r29,-1376 ffc0dabc: 7c 83 23 78 mr r3,r4 ffc0dac0: 38 9d 00 18 addi r4,r29,24 ffc0dac4: 48 00 6c 39 bl ffc146fc ffc0dac8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0dacc: 41 9e 00 1c beq- cr7,ffc0dae8 return directory; if ( !strcmp( name, dotdotname ) ) ffc0dad0: 38 9d 00 1c addi r4,r29,28 ffc0dad4: 7f e3 fb 78 mr r3,r31 ffc0dad8: 48 00 6c 25 bl ffc146fc ffc0dadc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0dae0: 40 9e 00 4c bne- cr7,ffc0db2c return directory->Parent; ffc0dae4: 83 de 00 08 lwz r30,8(r30) <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } ffc0dae8: 80 01 00 1c lwz r0,28(r1) ffc0daec: 7f c3 f3 78 mr r3,r30 ffc0daf0: 83 a1 00 0c lwz r29,12(r1) ffc0daf4: 7c 08 03 a6 mtlr r0 ffc0daf8: 83 c1 00 10 lwz r30,16(r1) ffc0dafc: 83 e1 00 14 lwz r31,20(r1) ffc0db00: 38 21 00 18 addi r1,r1,24 ffc0db04: 4e 80 00 20 blr ffc0db08: 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; ffc0db0c: 3b c0 00 00 li r30,0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } ffc0db10: 7f c3 f3 78 mr r3,r30 ffc0db14: 83 a1 00 0c lwz r29,12(r1) ffc0db18: 7c 08 03 a6 mtlr r0 ffc0db1c: 83 c1 00 10 lwz r30,16(r1) ffc0db20: 83 e1 00 14 lwz r31,20(r1) ffc0db24: 38 21 00 18 addi r1,r1,24 ffc0db28: 4e 80 00 20 blr if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0db2c: 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; ffc0db30: 3b de 00 54 addi r30,r30,84 ffc0db34: 7f 9d f0 00 cmpw cr7,r29,r30 ffc0db38: 40 be 00 14 bne+ cr7,ffc0db4c ffc0db3c: 4b ff ff cc b ffc0db08 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { ffc0db40: 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; ffc0db44: 7f 9d f0 00 cmpw cr7,r29,r30 ffc0db48: 41 be ff c0 beq- cr7,ffc0db08 !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 ) ) ffc0db4c: 7f e3 fb 78 mr r3,r31 ffc0db50: 38 9d 00 0c addi r4,r29,12 ffc0db54: 48 00 6b a9 bl ffc146fc ffc0db58: 2f 83 00 00 cmpwi cr7,r3,0 ffc0db5c: 40 9e ff e4 bne+ cr7,ffc0db40 ffc0db60: 7f be eb 78 mr r30,r29 ffc0db64: 4b ff ff 84 b ffc0dae8 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); ffc0db68: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0db6c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc0db70: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0db74: 38 63 fa c0 addi r3,r3,-1344 <== NOT EXECUTED ffc0db78: 38 a5 fa a0 addi r5,r5,-1376 <== NOT EXECUTED ffc0db7c: 38 c6 fb 0c addi r6,r6,-1268 <== NOT EXECUTED ffc0db80: 38 80 00 2a li r4,42 <== NOT EXECUTED ffc0db84: 4b ff 65 89 bl ffc0410c <__assert_func> <== NOT EXECUTED ffc13fd4 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc13fd4: 94 21 ff c8 stwu r1,-56(r1) ffc13fd8: 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; ffc13fdc: 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 ) { ffc13fe0: 90 01 00 3c stw r0,60(r1) ffc13fe4: 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; ffc13fe8: 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; ffc13fec: 83 a3 00 1c lwz r29,28(r3) loc = temp_mt_entry->mt_fs_root; ffc13ff0: 81 63 00 24 lwz r11,36(r3) ffc13ff4: 81 23 00 28 lwz r9,40(r3) ffc13ff8: 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; ffc13ffc: 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 ) { ffc14000: 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; ffc14004: 91 41 00 0c stw r10,12(r1) ffc14008: 91 61 00 10 stw r11,16(r1) ffc1400c: 91 21 00 14 stw r9,20(r1) ffc14010: 90 01 00 18 stw r0,24(r1) ffc14014: 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 ) { ffc14018: 93 e1 00 34 stw r31,52(r1) ffc1401c: 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 ); ffc14020: 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; ffc14024: 93 a1 00 08 stw r29,8(r1) */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; ffc14028: 83 dd 00 08 lwz r30,8(r29) loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); ffc1402c: 4b ff f2 79 bl ffc132a4 if ( jnode->type != IMFS_DIRECTORY ) { ffc14030: 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; ffc14034: 39 3d 00 54 addi r9,r29,84 ffc14038: 2f 80 00 01 cmpwi cr7,r0,1 ffc1403c: 40 9e 00 60 bne- cr7,ffc1409c ffc14040: 80 1d 00 50 lwz r0,80(r29) ffc14044: 7f 80 48 00 cmpw cr7,r0,r9 ffc14048: 41 9e 00 54 beq- cr7,ffc1409c result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { ffc1404c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc14050: 41 9e 00 2c beq- cr7,ffc1407c if ( jnode->type == IMFS_DIRECTORY ) { ffc14054: 80 1d 00 4c lwz r0,76(r29) ffc14058: 2f 80 00 01 cmpwi cr7,r0,1 ffc1405c: 40 9e ff c4 bne+ cr7,ffc14020 ffc14060: 80 1d 00 50 lwz r0,80(r29) ffc14064: 39 3d 00 54 addi r9,r29,84 ffc14068: 7f 80 48 00 cmpw cr7,r0,r9 ffc1406c: 41 be ff b4 beq- cr7,ffc14020 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); ffc14070: 2f 80 00 00 cmpwi cr7,r0,0 ffc14074: 7c 1d 03 78 mr r29,r0 ffc14078: 40 9e ff a8 bne+ cr7,ffc14020 ffc1407c: 38 60 00 00 li r3,0 return 0; } ffc14080: 80 01 00 3c lwz r0,60(r1) ffc14084: 83 a1 00 2c lwz r29,44(r1) ffc14088: 7c 08 03 a6 mtlr r0 ffc1408c: 83 c1 00 30 lwz r30,48(r1) ffc14090: 83 e1 00 34 lwz r31,52(r1) ffc14094: 38 21 00 38 addi r1,r1,56 ffc14098: 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 ); ffc1409c: 38 60 00 00 li r3,0 ffc140a0: 7f e4 fb 78 mr r4,r31 ffc140a4: 4b ff 16 c9 bl ffc0576c if (result != 0) ffc140a8: 2f 83 00 00 cmpwi cr7,r3,0 ffc140ac: 40 9e 00 0c bne- cr7,ffc140b8 ffc140b0: 7f dd f3 78 mr r29,r30 ffc140b4: 4b ff ff 98 b ffc1404c if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); ffc140b8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc140bc: 4b ff ff c4 b ffc14080 <== NOT EXECUTED ffc0dcbc : 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 ) { ffc0dcbc: 94 21 ff e8 stwu r1,-24(r1) ffc0dcc0: 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, ffc0dcc4: 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 ) { ffc0dcc8: 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, ffc0dccc: 80 09 26 90 lwz r0,9872(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 ) { ffc0dcd0: 93 81 00 08 stw r28,8(r1) ffc0dcd4: 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) { ffc0dcd8: 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 ) { ffc0dcdc: 93 a1 00 0c stw r29,12(r1) ffc0dce0: 7c dd 33 78 mr r29,r6 ffc0dce4: 93 c1 00 10 stw r30,16(r1) ffc0dce8: 7c be 2b 78 mr r30,r5 ffc0dcec: 93 e1 00 14 stw r31,20(r1) ffc0dcf0: 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) { ffc0dcf4: 41 9e 00 24 beq- cr7,ffc0dd18 ffc0dcf8: 39 60 00 05 li r11,5 ffc0dcfc: 7d 69 03 a6 mtctr r11 ffc0dd00: 39 20 00 20 li r9,32 ffc0dd04: 7f 80 48 00 cmpw cr7,r0,r9 ffc0dd08: 55 29 08 3c rlwinm r9,r9,1,0,30 ffc0dd0c: 41 9e 00 0c beq- cr7,ffc0dd18 ffc0dd10: 42 00 ff f4 bdnz+ ffc0dd04 ffc0dd14: 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) ffc0dd18: 3d 20 00 00 lis r9,0 ffc0dd1c: 90 09 27 e0 stw r0,10208(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(); ffc0dd20: 48 00 37 3d bl ffc1145c 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; ffc0dd24: 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(); ffc0dd28: 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; ffc0dd2c: 38 84 fe 4c addi r4,r4,-436 ffc0dd30: 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; ffc0dd34: 93 9f 00 28 stw r28,40(r31) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; ffc0dd38: 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; ffc0dd3c: 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; ffc0dd40: 48 00 63 c9 bl ffc14108 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); ffc0dd44: 38 60 00 01 li r3,1 ffc0dd48: 38 80 00 0c li r4,12 ffc0dd4c: 48 00 03 4d bl ffc0e098 if ( !fs_info ) { ffc0dd50: 2c 03 00 00 cmpwi r3,0 ffc0dd54: 41 82 00 48 beq- ffc0dd9c 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; ffc0dd58: 81 3f 00 1c lwz r9,28(r31) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; ffc0dd5c: 38 00 00 01 li r0,1 ffc0dd60: 90 03 00 00 stw r0,0(r3) fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; ffc0dd64: 93 a3 00 08 stw r29,8(r3) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; ffc0dd68: 93 c3 00 04 stw r30,4(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; ffc0dd6c: 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; ffc0dd70: 90 09 00 38 stw r0,56(r9) /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); ffc0dd74: 48 00 2a 79 bl ffc107ec ffc0dd78: 38 60 00 00 li r3,0 return 0; } ffc0dd7c: 80 01 00 1c lwz r0,28(r1) ffc0dd80: 83 81 00 08 lwz r28,8(r1) ffc0dd84: 7c 08 03 a6 mtlr r0 ffc0dd88: 83 a1 00 0c lwz r29,12(r1) ffc0dd8c: 83 c1 00 10 lwz r30,16(r1) ffc0dd90: 83 e1 00 14 lwz r31,20(r1) ffc0dd94: 38 21 00 18 addi r1,r1,24 ffc0dd98: 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); ffc0dd9c: 80 7f 00 1c lwz r3,28(r31) <== NOT EXECUTED ffc0dda0: 4b ff 68 55 bl ffc045f4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc0dda4: 48 00 57 7d bl ffc13520 <__errno> <== NOT EXECUTED ffc0dda8: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0ddac: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ddb0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0ddb4: 4b ff ff c8 b ffc0dd7c <== NOT EXECUTED ffc05344 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { ffc05344: 94 21 ff 98 stwu r1,-104(r1) ffc05348: 7c 08 02 a6 mflr r0 ffc0534c: 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; ffc05350: 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 */ ) { ffc05354: 93 a1 00 5c stw r29,92(r1) ffc05358: 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; ffc0535c: 91 21 00 18 stw r9,24(r1) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) ffc05360: 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 */ ) { ffc05364: 93 c1 00 60 stw r30,96(r1) ffc05368: 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 ) ffc0536c: 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 */ ) { ffc05370: 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 ) ffc05374: 41 9d 00 90 bgt- cr7,ffc05404 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 ); ffc05378: 7c a3 2b 78 mr r3,r5 ffc0537c: 48 01 60 05 bl ffc1b380 ffc05380: 3b e1 00 30 addi r31,r1,48 ffc05384: 7c 64 1b 78 mr r4,r3 ffc05388: 7f e5 fb 78 mr r5,r31 ffc0538c: 38 c1 00 08 addi r6,r1,8 ffc05390: 7f a3 eb 78 mr r3,r29 ffc05394: 48 00 ee 2d bl ffc141c0 * 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( ffc05398: 38 c0 00 00 li r6,0 ffc0539c: 7f c3 f3 78 mr r3,r30 ffc053a0: 7f e5 fb 78 mr r5,r31 ffc053a4: 60 c6 a1 ff ori r6,r6,41471 ffc053a8: 38 80 00 03 li r4,3 ffc053ac: 38 e1 00 18 addi r7,r1,24 ffc053b0: 48 00 dd 71 bl ffc13120 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) ffc053b4: 2f 83 00 00 cmpwi cr7,r3,0 ffc053b8: 41 9e 00 60 beq- cr7,ffc05418 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++; ffc053bc: 81 21 00 18 lwz r9,24(r1) IMFS_update_ctime( info.hard_link.link_node ); ffc053c0: 38 61 00 0c addi r3,r1,12 ffc053c4: 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++; ffc053c8: a1 69 00 34 lhz r11,52(r9) ffc053cc: 38 0b 00 01 addi r0,r11,1 ffc053d0: b0 09 00 34 sth r0,52(r9) IMFS_update_ctime( info.hard_link.link_node ); ffc053d4: 48 00 0d 29 bl ffc060fc ffc053d8: 80 01 00 0c lwz r0,12(r1) ffc053dc: 81 21 00 18 lwz r9,24(r1) ffc053e0: 38 60 00 00 li r3,0 ffc053e4: 90 09 00 48 stw r0,72(r9) return 0; } ffc053e8: 80 01 00 6c lwz r0,108(r1) ffc053ec: 83 a1 00 5c lwz r29,92(r1) ffc053f0: 7c 08 03 a6 mtlr r0 ffc053f4: 83 c1 00 60 lwz r30,96(r1) ffc053f8: 83 e1 00 64 lwz r31,100(r1) ffc053fc: 38 21 00 68 addi r1,r1,104 ffc05400: 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 ); ffc05404: 48 01 4c bd bl ffc1a0c0 <__errno> ffc05408: 38 00 00 1f li r0,31 ffc0540c: 90 03 00 00 stw r0,0(r3) ffc05410: 38 60 ff ff li r3,-1 ffc05414: 4b ff ff d4 b ffc053e8 ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); ffc05418: 48 01 4c a9 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc0541c: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc05420: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05424: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05428: 4b ff ff c0 b ffc053e8 <== NOT EXECUTED ffc178ac : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc178ac: 7c 69 1b 79 mr. r9,r3 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc178b0: 94 21 ff f0 stwu r1,-16(r1) ffc178b4: 7c 08 02 a6 mflr r0 ffc178b8: 93 e1 00 0c stw r31,12(r1) ffc178bc: 90 01 00 14 stw r0,20(r1) block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc178c0: 41 82 00 5c beq- ffc1791c if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc178c4: 80 09 00 4c lwz r0,76(r9) ffc178c8: 2f 80 00 05 cmpwi cr7,r0,5 ffc178cc: 40 9e 00 74 bne- cr7,ffc17940 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 ); ffc178d0: 38 a0 00 01 li r5,1 ffc178d4: 4b ff f8 e1 bl ffc171b4 if ( *block_entry_ptr ) ffc178d8: 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 ); ffc178dc: 7c 7f 1b 78 mr r31,r3 if ( *block_entry_ptr ) ffc178e0: 38 60 00 00 li r3,0 ffc178e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc178e8: 41 9e 00 18 beq- cr7,ffc17900 if ( !memory ) return 1; *block_entry_ptr = memory; return 0; } ffc178ec: 80 01 00 14 lwz r0,20(r1) ffc178f0: 83 e1 00 0c lwz r31,12(r1) ffc178f4: 38 21 00 10 addi r1,r1,16 ffc178f8: 7c 08 03 a6 mtlr r0 ffc178fc: 4e 80 00 20 blr #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); ffc17900: 4b ff f8 71 bl ffc17170 if ( !memory ) ffc17904: 7c 60 1b 79 mr. r0,r3 ffc17908: 38 60 00 01 li r3,1 ffc1790c: 41 a2 ff e0 beq- ffc178ec return 1; *block_entry_ptr = memory; ffc17910: 90 1f 00 00 stw r0,0(r31) ffc17914: 38 60 00 00 li r3,0 return 0; ffc17918: 4b ff ff d4 b ffc178ec ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc1791c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17920: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17924: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17928: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1792c: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17930: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc17934: 38 c6 71 b8 addi r6,r6,29112 <== NOT EXECUTED ffc17938: 38 80 01 69 li r4,361 <== NOT EXECUTED ffc1793c: 4b fe e1 99 bl ffc05ad4 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17940: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17944: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17948: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc1794c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17950: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17954: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc17958: 38 c6 71 c4 addi r6,r6,29124 <== NOT EXECUTED ffc1795c: 38 80 01 6d li r4,365 <== NOT EXECUTED ffc17960: 4b fe e1 75 bl ffc05ad4 <__assert_func> <== NOT EXECUTED ffc17964 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc17964: 94 21 ff d8 stwu r1,-40(r1) ffc17968: 7c 08 02 a6 mflr r0 ffc1796c: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17970: 7c 7f 1b 79 mr. r31,r3 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc17974: 93 41 00 10 stw r26,16(r1) ffc17978: 7c da 33 78 mr r26,r6 ffc1797c: 93 81 00 18 stw r28,24(r1) ffc17980: 7c bc 2b 78 mr r28,r5 ffc17984: 90 01 00 2c stw r0,44(r1) ffc17988: 93 01 00 08 stw r24,8(r1) ffc1798c: 93 21 00 0c stw r25,12(r1) ffc17990: 93 61 00 14 stw r27,20(r1) ffc17994: 93 a1 00 1c stw r29,28(r1) ffc17998: 93 c1 00 20 stw r30,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc1799c: 41 82 01 d4 beq- ffc17b70 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc179a0: 80 1f 00 4c lwz r0,76(r31) ffc179a4: 2f 80 00 05 cmpwi cr7,r0,5 ffc179a8: 40 9e 01 a4 bne- cr7,ffc17b4c if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) ffc179ac: 3d 20 00 00 lis r9,0 ffc179b0: 83 a9 27 68 lwz r29,10088(r9) ffc179b4: 38 00 00 00 li r0,0 ffc179b8: 7f 80 28 00 cmpw cr7,r0,r5 ffc179bc: 57 a9 f0 be rlwinm r9,r29,30,2,31 ffc179c0: 39 69 00 01 addi r11,r9,1 ffc179c4: 7d 6b 49 d6 mullw r11,r11,r9 ffc179c8: 38 0b 00 01 addi r0,r11,1 ffc179cc: 7d 20 49 d6 mullw r9,r0,r9 ffc179d0: 39 29 ff ff addi r9,r9,-1 ffc179d4: 7d 29 e9 d6 mullw r9,r9,r29 ffc179d8: 41 9d 00 24 bgt- cr7,ffc179fc ffc179dc: 41 9e 00 18 beq- cr7,ffc179f4 rtems_set_errno_and_return_minus_one( EINVAL ); ffc179e0: 48 00 26 e1 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc179e4: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc179e8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc179ec: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc179f0: 48 00 00 e4 b ffc17ad4 <== NOT EXECUTED 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 ) ffc179f4: 7f 89 30 40 cmplw cr7,r9,r6 ffc179f8: 40 bd ff e8 ble- cr7,ffc179e0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) ffc179fc: 83 7f 00 50 lwz r27,80(r31) ffc17a00: 83 1f 00 54 lwz r24,84(r31) ffc17a04: 7f 9c d8 00 cmpw cr7,r28,r27 ffc17a08: 40 9d 00 c4 ble- cr7,ffc17acc /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17a0c: 7f b9 fe 70 srawi r25,r29,31 ffc17a10: 7f 25 cb 78 mr r5,r25 ffc17a14: 7f a6 eb 78 mr r6,r29 ffc17a18: 7f 83 e3 78 mr r3,r28 ffc17a1c: 7f 44 d3 78 mr r4,r26 ffc17a20: 48 00 c5 45 bl ffc23f64 <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17a24: 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; ffc17a28: 7c 9e 23 78 mr r30,r4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17a2c: 7f 25 cb 78 mr r5,r25 ffc17a30: 7f 04 c3 78 mr r4,r24 ffc17a34: 7f a6 eb 78 mr r6,r29 ffc17a38: 48 00 c5 2d bl ffc23f64 <__divdi3> /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc17a3c: 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; ffc17a40: 7c 9b 23 78 mr r27,r4 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc17a44: 41 9c 00 c0 blt- cr7,ffc17b04 ffc17a48: 7c 9d 23 78 mr r29,r4 ffc17a4c: 48 00 00 10 b ffc17a5c ffc17a50: 3b bd 00 01 addi r29,r29,1 ffc17a54: 7f 9e e8 40 cmplw cr7,r30,r29 ffc17a58: 41 9c 00 ac blt- cr7,ffc17b04 if ( IMFS_memfile_addblock( the_jnode, block ) ) { ffc17a5c: 7f e3 fb 78 mr r3,r31 ffc17a60: 7f a4 eb 78 mr r4,r29 ffc17a64: 4b ff fe 49 bl ffc178ac ffc17a68: 2f 83 00 00 cmpwi cr7,r3,0 ffc17a6c: 41 9e ff e4 beq+ cr7,ffc17a50 ffc17a70: 48 00 00 14 b ffc17a84 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); ffc17a74: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED ffc17a78: 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-- ) { ffc17a7c: 3b bd ff ff addi r29,r29,-1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); ffc17a80: 4b ff fa 95 bl ffc17514 <== 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-- ) { ffc17a84: 7f 9b e8 40 cmplw cr7,r27,r29 <== NOT EXECUTED ffc17a88: 40 9d ff ec ble+ cr7,ffc17a74 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); ffc17a8c: 48 00 26 35 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc17a90: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc17a94: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17a98: 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; } ffc17a9c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc17aa0: 83 01 00 08 lwz r24,8(r1) <== NOT EXECUTED ffc17aa4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc17aa8: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc17aac: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc17ab0: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc17ab4: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc17ab8: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc17abc: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc17ac0: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc17ac4: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc17ac8: 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 ) ffc17acc: 41 9e 00 74 beq- cr7,ffc17b40 ffc17ad0: 38 60 00 00 li r3,0 * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } ffc17ad4: 80 01 00 2c lwz r0,44(r1) ffc17ad8: 83 01 00 08 lwz r24,8(r1) ffc17adc: 7c 08 03 a6 mtlr r0 ffc17ae0: 83 21 00 0c lwz r25,12(r1) ffc17ae4: 83 41 00 10 lwz r26,16(r1) ffc17ae8: 83 61 00 14 lwz r27,20(r1) ffc17aec: 83 81 00 18 lwz r28,24(r1) ffc17af0: 83 a1 00 1c lwz r29,28(r1) ffc17af4: 83 c1 00 20 lwz r30,32(r1) ffc17af8: 83 e1 00 24 lwz r31,36(r1) ffc17afc: 38 21 00 28 addi r1,r1,40 ffc17b00: 4e 80 00 20 blr /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; ffc17b04: 93 5f 00 54 stw r26,84(r31) ffc17b08: 38 60 00 00 li r3,0 ffc17b0c: 93 9f 00 50 stw r28,80(r31) return 0; } ffc17b10: 80 01 00 2c lwz r0,44(r1) ffc17b14: 83 01 00 08 lwz r24,8(r1) ffc17b18: 7c 08 03 a6 mtlr r0 ffc17b1c: 83 21 00 0c lwz r25,12(r1) ffc17b20: 83 41 00 10 lwz r26,16(r1) ffc17b24: 83 61 00 14 lwz r27,20(r1) ffc17b28: 83 81 00 18 lwz r28,24(r1) ffc17b2c: 83 a1 00 1c lwz r29,28(r1) ffc17b30: 83 c1 00 20 lwz r30,32(r1) ffc17b34: 83 e1 00 24 lwz r31,36(r1) ffc17b38: 38 21 00 28 addi r1,r1,40 ffc17b3c: 4e 80 00 20 blr 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 ) ffc17b40: 7f 9a c0 40 cmplw cr7,r26,r24 ffc17b44: 41 bd fe c8 bgt- cr7,ffc17a0c ffc17b48: 4b ff ff 88 b ffc17ad0 assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17b4c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17b50: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17b54: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17b58: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17b5c: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17b60: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc17b64: 38 c6 71 c4 addi r6,r6,29124 <== NOT EXECUTED ffc17b68: 38 80 01 35 li r4,309 <== NOT EXECUTED ffc17b6c: 4b fe df 69 bl ffc05ad4 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); ffc17b70: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17b74: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17b78: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17b7c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17b80: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17b84: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc17b88: 38 c6 71 b8 addi r6,r6,29112 <== NOT EXECUTED ffc17b8c: 38 80 01 31 li r4,305 <== NOT EXECUTED ffc17b90: 4b fe df 45 bl ffc05ad4 <__assert_func> <== NOT EXECUTED ffc171b4 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc171b4: 94 21 ff e0 stwu r1,-32(r1) ffc171b8: 7c 08 02 a6 mflr r0 ffc171bc: 93 e1 00 1c stw r31,28(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc171c0: 7c 7f 1b 79 mr. r31,r3 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc171c4: 90 01 00 24 stw r0,36(r1) ffc171c8: 93 81 00 10 stw r28,16(r1) ffc171cc: 93 a1 00 14 stw r29,20(r1) ffc171d0: 93 c1 00 18 stw r30,24(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc171d4: 41 82 02 18 beq- ffc173ec if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc171d8: 80 1f 00 4c lwz r0,76(r31) ffc171dc: 2f 80 00 05 cmpwi cr7,r0,5 ffc171e0: 40 9e 02 2c bne- cr7,ffc1740c /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { ffc171e4: 3d 20 00 00 lis r9,0 ffc171e8: 81 29 27 68 lwz r9,10088(r9) ffc171ec: 55 29 f0 be rlwinm r9,r9,30,2,31 ffc171f0: 38 09 ff ff addi r0,r9,-1 ffc171f4: 7f 84 00 40 cmplw cr7,r4,r0 ffc171f8: 40 9d 00 78 ble- cr7,ffc17270 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { ffc171fc: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED ffc17200: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED ffc17204: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc17208: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc1720c: 41 9d 00 a0 bgt- cr7,ffc172ac <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; ffc17210: 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; ffc17214: 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; ffc17218: 7f c4 4b 96 divwu r30,r4,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc1721c: 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; ffc17220: 7f be 49 d6 mullw r29,r30,r9 <== NOT EXECUTED ffc17224: 7f bd 20 50 subf r29,r29,r4 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc17228: 41 9e 01 04 beq- cr7,ffc1732c <== NOT EXECUTED if ( !p ) { ffc1722c: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc17230: 41 9e 01 84 beq- cr7,ffc173b4 <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; ffc17234: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED ffc17238: 7c 6b f0 2e lwzx r3,r11,r30 <== NOT EXECUTED ffc1723c: 7f cb f2 14 add r30,r11,r30 <== NOT EXECUTED if ( !p1 ) { ffc17240: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc17244: 41 9e 01 5c beq- cr7,ffc173a0 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc17248: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc1724c: 7c 63 ea 14 add r3,r3,r29 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc17250: 80 01 00 24 lwz r0,36(r1) ffc17254: 83 81 00 10 lwz r28,16(r1) ffc17258: 7c 08 03 a6 mtlr r0 ffc1725c: 83 a1 00 14 lwz r29,20(r1) ffc17260: 83 c1 00 18 lwz r30,24(r1) ffc17264: 83 e1 00 1c lwz r31,28(r1) ffc17268: 38 21 00 20 addi r1,r1,32 ffc1726c: 4e 80 00 20 blr fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { ffc17270: 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; ffc17274: 80 7f 00 58 lwz r3,88(r31) if ( malloc_it ) { ffc17278: 41 9e 00 f8 beq- cr7,ffc17370 if ( !p ) { ffc1727c: 2f 83 00 00 cmpwi cr7,r3,0 ffc17280: 41 9e 01 04 beq- cr7,ffc17384 /* * This means the requested block number is out of range. */ return 0; } ffc17284: 80 01 00 24 lwz r0,36(r1) p = memfile_alloc_block(); if ( !p ) return 0; info->indirect = p; } return &info->indirect[ my_block ]; ffc17288: 54 84 10 3a rlwinm r4,r4,2,0,29 ffc1728c: 7c 63 22 14 add r3,r3,r4 /* * This means the requested block number is out of range. */ return 0; } ffc17290: 83 81 00 10 lwz r28,16(r1) ffc17294: 7c 08 03 a6 mtlr r0 ffc17298: 83 a1 00 14 lwz r29,20(r1) ffc1729c: 83 c1 00 18 lwz r30,24(r1) ffc172a0: 83 e1 00 1c lwz r31,28(r1) ffc172a4: 38 21 00 20 addi r1,r1,32 ffc172a8: 4e 80 00 20 blr #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { ffc172ac: 39 4b 00 01 addi r10,r11,1 <== NOT EXECUTED ffc172b0: 7d 4a 49 d6 mullw r10,r10,r9 <== NOT EXECUTED ffc172b4: 38 0a ff ff addi r0,r10,-1 <== NOT EXECUTED ffc172b8: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc172bc: 41 9d 00 90 bgt- cr7,ffc1734c <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; ffc172c0: 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; ffc172c4: 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; ffc172c8: 7c 0b 4b 96 divwu r0,r11,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; ffc172cc: 7f c0 4b 96 divwu r30,r0,r9 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { ffc172d0: 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; ffc172d4: 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; ffc172d8: 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; ffc172dc: 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; ffc172e0: 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 ) { ffc172e4: 41 9e 00 e4 beq- cr7,ffc173c8 <== NOT EXECUTED if ( !p ) { ffc172e8: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED ffc172ec: 41 9e 01 40 beq- cr7,ffc1742c <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; ffc172f0: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED ffc172f4: 7d 2a f0 2e lwzx r9,r10,r30 <== NOT EXECUTED ffc172f8: 7f ca f2 14 add r30,r10,r30 <== NOT EXECUTED if ( !p1 ) { ffc172fc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc17300: 41 9e 01 40 beq- cr7,ffc17440 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; ffc17304: 57 9f 10 3a rlwinm r31,r28,2,0,29 <== NOT EXECUTED ffc17308: 7c 69 f8 2e lwzx r3,r9,r31 <== NOT EXECUTED ffc1730c: 7f e9 fa 14 add r31,r9,r31 <== NOT EXECUTED if ( !p2 ) { ffc17310: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc17314: 40 9e ff 34 bne+ cr7,ffc17248 <== NOT EXECUTED p2 = memfile_alloc_block(); ffc17318: 4b ff fe 59 bl ffc17170 <== NOT EXECUTED if ( !p2 ) ffc1731c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc17320: 41 82 00 2c beq- ffc1734c <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; ffc17324: 90 7f 00 00 stw r3,0(r31) <== NOT EXECUTED ffc17328: 4b ff ff 20 b ffc17248 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) ffc1732c: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc17330: 41 be 00 1c beq+ cr7,ffc1734c <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; ffc17334: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED ffc17338: 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 ]; ffc1733c: 57 a3 10 3a rlwinm r3,r29,2,0,29 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc17340: 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 ]; ffc17344: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc17348: 40 9e ff 08 bne+ cr7,ffc17250 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc1734c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc17350: 38 60 00 00 li r3,0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc17354: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc17358: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1735c: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc17360: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc17364: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc17368: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc1736c: 4e 80 00 20 blr <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) ffc17370: 2f 83 00 00 cmpwi cr7,r3,0 return 0; return &info->indirect[ my_block ]; ffc17374: 54 84 10 3a rlwinm r4,r4,2,0,29 ffc17378: 7c 63 22 14 add r3,r3,r4 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) ffc1737c: 40 9e fe d4 bne+ cr7,ffc17250 ffc17380: 4b ff ff cc b ffc1734c <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); ffc17384: 90 81 00 08 stw r4,8(r1) ffc17388: 4b ff fd e9 bl ffc17170 if ( !p ) ffc1738c: 2c 03 00 00 cmpwi r3,0 ffc17390: 80 81 00 08 lwz r4,8(r1) ffc17394: 41 a2 ff b8 beq- ffc1734c return 0; info->indirect = p; ffc17398: 90 7f 00 58 stw r3,88(r31) ffc1739c: 4b ff fe e8 b ffc17284 info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); ffc173a0: 4b ff fd d1 bl ffc17170 <== NOT EXECUTED if ( !p1 ) ffc173a4: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc173a8: 41 a2 ff a4 beq- ffc1734c <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; ffc173ac: 90 7e 00 00 stw r3,0(r30) <== NOT EXECUTED ffc173b0: 4b ff fe 98 b ffc17248 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); ffc173b4: 4b ff fd bd bl ffc17170 <== NOT EXECUTED if ( !p ) ffc173b8: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED ffc173bc: 41 a2 ff 90 beq- ffc1734c <== NOT EXECUTED return 0; info->doubly_indirect = p; ffc173c0: 91 7f 00 5c stw r11,92(r31) <== NOT EXECUTED ffc173c4: 4b ff fe 70 b ffc17234 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) ffc173c8: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED ffc173cc: 41 9e ff 80 beq+ cr7,ffc1734c <== 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 ]; ffc173d0: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED ffc173d4: 7d 2a f0 2e lwzx r9,r10,r30 <== NOT EXECUTED if ( !p1 ) ffc173d8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc173dc: 41 9e ff 70 beq+ cr7,ffc1734c <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc173e0: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED ffc173e4: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED ffc173e8: 4b ff fe 60 b ffc17248 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); ffc173ec: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc173f0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc173f4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc173f8: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc173fc: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17400: 38 c6 71 b8 addi r6,r6,29112 <== NOT EXECUTED ffc17404: 38 80 03 88 li r4,904 <== NOT EXECUTED ffc17408: 4b fe e6 cd bl ffc05ad4 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc1740c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17410: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17414: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17418: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc1741c: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17420: 38 c6 71 c4 addi r6,r6,29124 <== NOT EXECUTED ffc17424: 38 80 03 8c li r4,908 <== NOT EXECUTED ffc17428: 4b fe e6 ad bl ffc05ad4 <__assert_func> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); ffc1742c: 4b ff fd 45 bl ffc17170 <== NOT EXECUTED if ( !p ) ffc17430: 7c 6a 1b 79 mr. r10,r3 <== NOT EXECUTED ffc17434: 41 a2 ff 18 beq- ffc1734c <== NOT EXECUTED return 0; info->triply_indirect = p; ffc17438: 91 5f 00 60 stw r10,96(r31) <== NOT EXECUTED ffc1743c: 4b ff fe b4 b ffc172f0 <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); ffc17440: 4b ff fd 31 bl ffc17170 <== NOT EXECUTED if ( !p1 ) ffc17444: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc17448: 41 a2 ff 04 beq- ffc1734c <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; ffc1744c: 91 3e 00 00 stw r9,0(r30) <== NOT EXECUTED ffc17450: 4b ff fe b4 b ffc17304 <== NOT EXECUTED ffc18164 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc18164: 94 21 ff c0 stwu r1,-64(r1) ffc18168: 7c 08 02 a6 mflr r0 ffc1816c: 93 e1 00 3c stw r31,60(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc18170: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc18174: 93 41 00 28 stw r26,40(r1) ffc18178: 7c ba 2b 78 mr r26,r5 ffc1817c: 93 61 00 2c stw r27,44(r1) ffc18180: 7c db 33 78 mr r27,r6 ffc18184: 93 c1 00 38 stw r30,56(r1) ffc18188: 7c fe 3b 78 mr r30,r7 ffc1818c: 90 01 00 44 stw r0,68(r1) ffc18190: 92 e1 00 1c stw r23,28(r1) ffc18194: 93 01 00 20 stw r24,32(r1) ffc18198: 93 21 00 24 stw r25,36(r1) ffc1819c: 93 81 00 30 stw r28,48(r1) ffc181a0: 93 a1 00 34 stw r29,52(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc181a4: 41 82 02 f0 beq- ffc18494 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || ffc181a8: 81 3f 00 4c lwz r9,76(r31) ffc181ac: 38 09 ff fb addi r0,r9,-5 ffc181b0: 2b 80 00 01 cmplwi cr7,r0,1 ffc181b4: 41 9d 02 bc bgt- cr7,ffc18470 /* * Error checks on arguments */ assert( dest ); ffc181b8: 2f 87 00 00 cmpwi cr7,r7,0 ffc181bc: 41 9e 03 20 beq- cr7,ffc184dc /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) ffc181c0: 2f 88 00 00 cmpwi cr7,r8,0 ffc181c4: 41 9e 02 50 beq- cr7,ffc18414 /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { ffc181c8: 2f 89 00 06 cmpwi cr7,r9,6 ffc181cc: 41 9e 01 94 beq- cr7,ffc18360 * 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 ) ffc181d0: 80 1f 00 50 lwz r0,80(r31) ffc181d4: 39 20 00 00 li r9,0 ffc181d8: 83 9f 00 54 lwz r28,84(r31) ffc181dc: 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; ffc181e0: 7c c0 33 78 mr r0,r6 if ( last_byte > the_jnode->info.file.size ) ffc181e4: 7d 28 32 14 add r9,r8,r6 ffc181e8: 40 9d 01 6c ble- cr7,ffc18354 my_length = the_jnode->info.file.size - start; ffc181ec: 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; ffc181f0: 3f 20 00 00 lis r25,0 ffc181f4: 83 b9 27 68 lwz r29,10088(r25) ffc181f8: 7f 43 d3 78 mr r3,r26 ffc181fc: 7f 64 db 78 mr r4,r27 ffc18200: 7f b8 fe 70 srawi r24,r29,31 ffc18204: 7f 05 c3 78 mr r5,r24 ffc18208: 7f a6 eb 78 mr r6,r29 ffc1820c: 48 00 c1 5d bl ffc24368 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc18210: 7f 43 d3 78 mr r3,r26 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc18214: 7c 97 23 78 mr r23,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc18218: 7f 05 c3 78 mr r5,r24 ffc1821c: 7f 64 db 78 mr r4,r27 ffc18220: 7f a6 eb 78 mr r6,r29 ffc18224: 48 00 bd 41 bl ffc23f64 <__divdi3> if ( start_offset ) { ffc18228: 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; ffc1822c: 7c 9a 23 78 mr r26,r4 if ( start_offset ) { ffc18230: 7f d8 f3 78 mr r24,r30 ffc18234: 3b 60 00 00 li r27,0 ffc18238: 41 9e 00 4c beq- cr7,ffc18284 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 ); ffc1823c: 7f e3 fb 78 mr r3,r31 ffc18240: 38 a0 00 00 li r5,0 ffc18244: 4b ff ef 71 bl ffc171b4 assert( block_ptr ); ffc18248: 2c 03 00 00 cmpwi r3,0 ffc1824c: 41 82 02 6c beq- ffc184b8 */ 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; ffc18250: 7f b7 e8 50 subf r29,r23,r29 ffc18254: 7f 9c e8 40 cmplw cr7,r28,r29 ffc18258: 7f 9b e3 78 mr r27,r28 ffc1825c: 41 9d 01 84 bgt- cr7,ffc183e0 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 ); ffc18260: 80 83 00 00 lwz r4,0(r3) ffc18264: 7f 65 db 78 mr r5,r27 ffc18268: 7f c3 f3 78 mr r3,r30 ffc1826c: 7c 84 ba 14 add r4,r4,r23 ffc18270: 48 00 2a 39 bl ffc1aca8 dest += to_copy; block++; my_length -= to_copy; ffc18274: 83 b9 27 68 lwz r29,10088(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; ffc18278: 7f 1e da 14 add r24,r30,r27 block++; ffc1827c: 3b 5a 00 01 addi r26,r26,1 my_length -= to_copy; ffc18280: 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 ) { ffc18284: 7f 9c e8 40 cmplw cr7,r28,r29 ffc18288: 41 9c 00 4c blt- cr7,ffc182d4 ffc1828c: 3b 39 27 68 addi r25,r25,10088 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc18290: 7f e3 fb 78 mr r3,r31 ffc18294: 7f 44 d3 78 mr r4,r26 ffc18298: 38 a0 00 00 li r5,0 ffc1829c: 4b ff ef 19 bl ffc171b4 assert( block_ptr ); ffc182a0: 2c 03 00 00 cmpwi r3,0 ffc182a4: 41 82 01 84 beq- ffc18428 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); ffc182a8: 80 83 00 00 lwz r4,0(r3) ffc182ac: 7f a5 eb 78 mr r5,r29 ffc182b0: 7f 03 c3 78 mr r3,r24 ffc182b4: 48 00 29 f5 bl ffc1aca8 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc182b8: 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; ffc182bc: 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 ) { ffc182c0: 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; ffc182c4: 7f 18 ea 14 add r24,r24,r29 block++; ffc182c8: 3b 5a 00 01 addi r26,r26,1 my_length -= to_copy; copied += to_copy; ffc182cc: 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 ) { ffc182d0: 40 9d ff c0 ble+ cr7,ffc18290 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { ffc182d4: 2f 9c 00 00 cmpwi cr7,r28,0 ffc182d8: 41 9e 00 30 beq- cr7,ffc18308 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc182dc: 7f 44 d3 78 mr r4,r26 ffc182e0: 7f e3 fb 78 mr r3,r31 ffc182e4: 38 a0 00 00 li r5,0 ffc182e8: 4b ff ee cd bl ffc171b4 assert( block_ptr ); ffc182ec: 2c 03 00 00 cmpwi r3,0 ffc182f0: 41 82 01 5c beq- ffc1844c if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); ffc182f4: 80 83 00 00 lwz r4,0(r3) ffc182f8: 7f 85 e3 78 mr r5,r28 ffc182fc: 7f 03 c3 78 mr r3,r24 ffc18300: 48 00 29 a9 bl ffc1aca8 copied += my_length; ffc18304: 7f 7b e2 14 add r27,r27,r28 } IMFS_update_atime( the_jnode ); ffc18308: 38 61 00 08 addi r3,r1,8 ffc1830c: 38 80 00 00 li r4,0 ffc18310: 4b fe dd ed bl ffc060fc ffc18314: 80 01 00 08 lwz r0,8(r1) return copied; ffc18318: 7f 63 db 78 mr r3,r27 return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); ffc1831c: 90 1f 00 40 stw r0,64(r31) return copied; } ffc18320: 80 01 00 44 lwz r0,68(r1) ffc18324: 82 e1 00 1c lwz r23,28(r1) ffc18328: 7c 08 03 a6 mtlr r0 ffc1832c: 83 01 00 20 lwz r24,32(r1) ffc18330: 83 21 00 24 lwz r25,36(r1) ffc18334: 83 41 00 28 lwz r26,40(r1) ffc18338: 83 61 00 2c lwz r27,44(r1) ffc1833c: 83 81 00 30 lwz r28,48(r1) ffc18340: 83 a1 00 34 lwz r29,52(r1) ffc18344: 83 c1 00 38 lwz r30,56(r1) ffc18348: 83 e1 00 3c lwz r31,60(r1) ffc1834c: 38 21 00 40 addi r1,r1,64 ffc18350: 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 ) ffc18354: 41 9e 00 a0 beq- cr7,ffc183f4 ffc18358: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED ffc1835c: 4b ff fe 94 b ffc181f0 <== 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)) ffc18360: 81 3f 00 50 lwz r9,80(r31) <== NOT EXECUTED ffc18364: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc18368: 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; ffc1836c: 80 9f 00 58 lwz r4,88(r31) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) ffc18370: 7d 9b 50 10 subfc r12,r27,r10 <== NOT EXECUTED ffc18374: 7d 7a 49 10 subfe r11,r26,r9 <== NOT EXECUTED ffc18378: 7f 80 58 00 cmpw cr7,r0,r11 <== NOT EXECUTED ffc1837c: 40 9d 00 6c ble- cr7,ffc183e8 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; ffc18380: 7f 9b 50 50 subf r28,r27,r10 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); ffc18384: 7c 84 da 14 add r4,r4,r27 <== NOT EXECUTED ffc18388: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED ffc1838c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc18390: 48 00 29 19 bl ffc1aca8 <== NOT EXECUTED IMFS_update_atime( the_jnode ); ffc18394: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc18398: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc1839c: 4b fe dd 61 bl ffc060fc <== NOT EXECUTED ffc183a0: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED return my_length; ffc183a4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } ffc183a8: 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 ); ffc183ac: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } ffc183b0: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc183b4: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc183b8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc183bc: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc183c0: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc183c4: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc183c8: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc183cc: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc183d0: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc183d4: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc183d8: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc183dc: 4e 80 00 20 blr <== NOT EXECUTED */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; ffc183e0: 7f bb eb 78 mr r27,r29 ffc183e4: 4b ff fe 7c b ffc18260 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)) ffc183e8: 41 9e 00 1c beq- cr7,ffc18404 <== NOT EXECUTED ffc183ec: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED ffc183f0: 4b ff ff 94 b ffc18384 <== 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 ) ffc183f4: 7f 89 e0 40 cmplw cr7,r9,r28 ffc183f8: 41 bd fd f4 bgt- cr7,ffc181ec ffc183fc: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED ffc18400: 4b ff fd f0 b ffc181f0 <== 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)) ffc18404: 7f 88 60 40 cmplw cr7,r8,r12 <== NOT EXECUTED ffc18408: 41 bd ff 78 bgt- cr7,ffc18380 <== NOT EXECUTED ffc1840c: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED ffc18410: 4b ff ff 74 b ffc18384 <== 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 ); ffc18414: 48 00 1c ad bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc18418: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1841c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc18420: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc18424: 4b ff fe fc b ffc18320 <== 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 ); ffc18428: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1842c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc18430: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc18434: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc18438: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc1843c: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc18440: 38 c6 71 f4 addi r6,r6,29172 <== NOT EXECUTED ffc18444: 38 80 02 a7 li r4,679 <== NOT EXECUTED ffc18448: 4b fe d6 8d bl ffc05ad4 <__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 ); ffc1844c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc18450: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc18454: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc18458: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1845c: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc18460: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc18464: 38 c6 71 f4 addi r6,r6,29172 <== NOT EXECUTED ffc18468: 38 80 02 b9 li r4,697 <== NOT EXECUTED ffc1846c: 4b fe d6 69 bl ffc05ad4 <__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 || ffc18470: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc18474: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc18478: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc1847c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc18480: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc18484: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc18488: 38 c6 72 08 addi r6,r6,29192 <== NOT EXECUTED ffc1848c: 38 80 02 51 li r4,593 <== NOT EXECUTED ffc18490: 4b fe d6 45 bl ffc05ad4 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); ffc18494: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc18498: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1849c: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc184a0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc184a4: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc184a8: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc184ac: 38 c6 71 b8 addi r6,r6,29112 <== NOT EXECUTED ffc184b0: 38 80 02 4c li r4,588 <== NOT EXECUTED ffc184b4: 4b fe d6 21 bl ffc05ad4 <__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 ); ffc184b8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc184bc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc184c0: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc184c4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc184c8: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc184cc: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc184d0: 38 c6 71 f4 addi r6,r6,29172 <== NOT EXECUTED ffc184d4: 38 80 02 96 li r4,662 <== NOT EXECUTED ffc184d8: 4b fe d5 fd bl ffc05ad4 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); ffc184dc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc184e0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc184e4: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc184e8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc184ec: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc184f0: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc184f4: 38 c6 72 54 addi r6,r6,29268 <== NOT EXECUTED ffc184f8: 38 80 02 5a li r4,602 <== NOT EXECUTED ffc184fc: 4b fe d5 d9 bl ffc05ad4 <__assert_func> <== NOT EXECUTED ffc17578 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc17578: 94 21 ff d8 stwu r1,-40(r1) ffc1757c: 7c 08 02 a6 mflr r0 ffc17580: 93 41 00 10 stw r26,16(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17584: 7c 7a 1b 79 mr. r26,r3 */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc17588: 90 01 00 2c stw r0,44(r1) ffc1758c: 93 21 00 0c stw r25,12(r1) ffc17590: 93 61 00 14 stw r27,20(r1) ffc17594: 93 81 00 18 stw r28,24(r1) ffc17598: 93 a1 00 1c stw r29,28(r1) ffc1759c: 93 c1 00 20 stw r30,32(r1) ffc175a0: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc175a4: 41 82 01 90 beq- ffc17734 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc175a8: 80 1a 00 4c lwz r0,76(r26) ffc175ac: 2f 80 00 05 cmpwi cr7,r0,5 ffc175b0: 40 9e 01 a8 bne- cr7,ffc17758 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc175b4: 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; ffc175b8: 3f c0 00 00 lis r30,0 ffc175bc: 83 9e 27 68 lwz r28,10088(r30) * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc175c0: 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; ffc175c4: 57 9c f0 be rlwinm r28,r28,30,2,31 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc175c8: 41 9e 00 10 beq- cr7,ffc175d8 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); ffc175cc: 38 7a 00 58 addi r3,r26,88 ffc175d0: 7f 84 e3 78 mr r4,r28 ffc175d4: 4b ff fe 81 bl ffc17454 } if ( info->doubly_indirect ) { ffc175d8: 81 3a 00 5c lwz r9,92(r26) ffc175dc: 2f 89 00 00 cmpwi cr7,r9,0 ffc175e0: 41 9e 00 68 beq- cr7,ffc17648 for ( i=0 ; i <== NOT EXECUTED ffc175f0: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc175f4: 3b bd 27 68 addi r29,r29,10088 <== NOT EXECUTED ffc175f8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc175fc: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc17600: 48 00 00 08 b ffc17608 <== NOT EXECUTED ffc17604: 81 3a 00 5c lwz r9,92(r26) <== NOT EXECUTED if ( info->doubly_indirect[i] ) { ffc17608: 54 63 10 3a rlwinm r3,r3,2,0,29 <== NOT EXECUTED ffc1760c: 7c 09 18 2e lwzx r0,r9,r3 <== NOT EXECUTED ffc17610: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc17614: 41 9e 00 10 beq- cr7,ffc17624 <== NOT EXECUTED memfile_free_blocks_in_table( ffc17618: 7c 69 1a 14 add r3,r9,r3 <== NOT EXECUTED ffc1761c: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc17620: 4b ff fe 35 bl ffc17454 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== 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 ); ffc1763c: 38 7a 00 5c addi r3,r26,92 <== NOT EXECUTED ffc17640: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc17644: 4b ff fe 11 bl ffc17454 <== NOT EXECUTED } if ( info->triply_indirect ) { ffc17648: 80 7a 00 60 lwz r3,96(r26) ffc1764c: 2f 83 00 00 cmpwi cr7,r3,0 ffc17650: 41 9e 00 b4 beq- cr7,ffc17704 for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; ffc17660: 83 c3 00 00 lwz r30,0(r3) <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc17664: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc17668: 41 9e 00 90 beq- cr7,ffc176f8 <== NOT EXECUTED ffc1766c: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc17670: 3b bd 27 68 addi r29,r29,10088 <== NOT EXECUTED ffc17674: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc17678: 3b 60 00 00 li r27,0 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED ffc17684: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc17688: 3b e0 00 00 li r31,0 <== NOT EXECUTED if ( p[j] ) { ffc1768c: 54 63 10 3a rlwinm r3,r3,2,0,29 <== NOT EXECUTED ffc17690: 7c 1e 18 2e lwzx r0,r30,r3 <== NOT EXECUTED ffc17694: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc17698: 41 9e 00 10 beq- cr7,ffc176a8 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); ffc1769c: 7c 7e 1a 14 add r3,r30,r3 <== NOT EXECUTED ffc176a0: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc176a4: 4b ff fd b1 bl ffc17454 <== NOT EXECUTED if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j <== NOT EXECUTED ffc176c0: 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( ffc176c4: 7c 63 ca 14 add r3,r3,r25 <== NOT EXECUTED ffc176c8: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc176cc: 4b ff fd 89 bl ffc17454 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; ffc176e4: 80 7a 00 60 lwz r3,96(r26) <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc176e8: 57 79 10 3a rlwinm r25,r27,2,0,29 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; ffc176ec: 7f c3 c8 2e lwzx r30,r3,r25 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc176f0: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc176f4: 40 9e ff 88 bne+ cr7,ffc1767c <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( ffc176f8: 38 7a 00 60 addi r3,r26,96 <== NOT EXECUTED ffc176fc: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc17700: 4b ff fd 55 bl ffc17454 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } ffc17704: 80 01 00 2c lwz r0,44(r1) ffc17708: 38 60 00 00 li r3,0 ffc1770c: 83 21 00 0c lwz r25,12(r1) ffc17710: 7c 08 03 a6 mtlr r0 ffc17714: 83 41 00 10 lwz r26,16(r1) ffc17718: 83 61 00 14 lwz r27,20(r1) ffc1771c: 83 81 00 18 lwz r28,24(r1) ffc17720: 83 a1 00 1c lwz r29,28(r1) ffc17724: 83 c1 00 20 lwz r30,32(r1) ffc17728: 83 e1 00 24 lwz r31,36(r1) ffc1772c: 38 21 00 28 addi r1,r1,40 ffc17730: 4e 80 00 20 blr /* * Perform internal consistency checks */ assert( the_jnode ); ffc17734: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17738: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1773c: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17740: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17744: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17748: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc1774c: 38 c6 71 b8 addi r6,r6,29112 <== NOT EXECUTED ffc17750: 38 80 01 ee li r4,494 <== NOT EXECUTED ffc17754: 4b fe e3 81 bl ffc05ad4 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17758: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1775c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17760: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17764: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17768: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc1776c: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc17770: 38 c6 71 c4 addi r6,r6,29124 <== NOT EXECUTED ffc17774: 38 80 01 f2 li r4,498 <== NOT EXECUTED ffc17778: 4b fe e3 5d bl ffc05ad4 <__assert_func> <== NOT EXECUTED ffc17514 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc17514: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc17518: 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 ); ffc1751c: 38 a0 00 00 li r5,0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc17520: 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 ); ffc17524: 4b ff fc 91 bl ffc171b4 <== NOT EXECUTED assert( block_ptr ); ffc17528: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc1752c: 41 82 00 28 beq- ffc17554 <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; ffc17530: 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; ffc17534: 80 69 00 00 lwz r3,0(r9) <== NOT EXECUTED *block_ptr = 0; ffc17538: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED memfile_free_block( ptr ); ffc1753c: 4b ff fc 05 bl ffc17140 <== NOT EXECUTED } return 1; } ffc17540: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc17544: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc17548: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1754c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc17550: 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 ); ffc17554: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17558: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1755c: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17560: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17564: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17568: 38 a5 00 40 addi r5,r5,64 <== NOT EXECUTED ffc1756c: 38 c6 71 f4 addi r6,r6,29172 <== NOT EXECUTED ffc17570: 38 80 01 96 li r4,406 <== NOT EXECUTED ffc17574: 4b fe e5 61 bl ffc05ad4 <__assert_func> <== NOT EXECUTED ffc17d28 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc17d28: 94 21 ff c0 stwu r1,-64(r1) ffc17d2c: 7c 08 02 a6 mflr r0 ffc17d30: 93 e1 00 3c stw r31,60(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17d34: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc17d38: 93 41 00 28 stw r26,40(r1) ffc17d3c: 7d 1a 43 78 mr r26,r8 ffc17d40: 93 81 00 30 stw r28,48(r1) ffc17d44: 7c fc 3b 78 mr r28,r7 ffc17d48: 93 a1 00 34 stw r29,52(r1) ffc17d4c: 7c bd 2b 78 mr r29,r5 ffc17d50: 93 c1 00 38 stw r30,56(r1) ffc17d54: 7c de 33 78 mr r30,r6 ffc17d58: 90 01 00 44 stw r0,68(r1) ffc17d5c: 92 e1 00 1c stw r23,28(r1) ffc17d60: 93 01 00 20 stw r24,32(r1) ffc17d64: 93 21 00 24 stw r25,36(r1) ffc17d68: 93 61 00 2c stw r27,44(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17d6c: 41 82 02 2c beq- ffc17f98 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17d70: 80 1f 00 4c lwz r0,76(r31) ffc17d74: 2f 80 00 05 cmpwi cr7,r0,5 ffc17d78: 40 9e 02 68 bne- cr7,ffc17fe0 /* * Error check arguments */ assert( source ); ffc17d7c: 2f 87 00 00 cmpwi cr7,r7,0 ffc17d80: 41 9e 02 3c beq- cr7,ffc17fbc /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) ffc17d84: 2f 88 00 00 cmpwi cr7,r8,0 ffc17d88: 41 9e 01 b4 beq- cr7,ffc17f3c * 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 ) { ffc17d8c: 80 1f 00 50 lwz r0,80(r31) ffc17d90: 7c c8 32 14 add r6,r8,r6 ffc17d94: 2f 80 00 00 cmpwi cr7,r0,0 ffc17d98: 41 9c 01 74 blt- cr7,ffc17f0c ffc17d9c: 41 9e 01 64 beq- cr7,ffc17f00 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17da0: 3f 20 00 00 lis r25,0 ffc17da4: 83 79 27 68 lwz r27,10088(r25) ffc17da8: 7f a3 eb 78 mr r3,r29 ffc17dac: 7f c4 f3 78 mr r4,r30 ffc17db0: 7f 78 fe 70 srawi r24,r27,31 ffc17db4: 7f 05 c3 78 mr r5,r24 ffc17db8: 7f 66 db 78 mr r6,r27 ffc17dbc: 48 00 c5 ad bl ffc24368 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17dc0: 7f a3 eb 78 mr r3,r29 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17dc4: 7c 97 23 78 mr r23,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17dc8: 7f 05 c3 78 mr r5,r24 ffc17dcc: 7f c4 f3 78 mr r4,r30 ffc17dd0: 7f 66 db 78 mr r6,r27 ffc17dd4: 48 00 c1 91 bl ffc23f64 <__divdi3> if ( start_offset ) { ffc17dd8: 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; ffc17ddc: 7c 9e 23 78 mr r30,r4 if ( start_offset ) { ffc17de0: 3b a0 00 00 li r29,0 ffc17de4: 41 9e 00 48 beq- cr7,ffc17e2c 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 ); ffc17de8: 7f e3 fb 78 mr r3,r31 ffc17dec: 38 a0 00 00 li r5,0 ffc17df0: 4b ff f3 c5 bl ffc171b4 assert( block_ptr ); ffc17df4: 2c 03 00 00 cmpwi r3,0 ffc17df8: 41 82 02 0c beq- ffc18004 */ 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; ffc17dfc: 7f b7 d8 50 subf r29,r23,r27 ffc17e00: 7f 9d d0 40 cmplw cr7,r29,r26 ffc17e04: 41 9d 01 30 bgt- cr7,ffc17f34 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 ); ffc17e08: 80 63 00 00 lwz r3,0(r3) ffc17e0c: 7f 84 e3 78 mr r4,r28 ffc17e10: 7f a5 eb 78 mr r5,r29 ffc17e14: 7c 63 ba 14 add r3,r3,r23 ffc17e18: 48 00 2e 91 bl ffc1aca8 src += to_copy; block++; my_length -= to_copy; copied += to_copy; ffc17e1c: 83 79 27 68 lwz r27,10088(r25) 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 ); src += to_copy; ffc17e20: 7f 9c ea 14 add r28,r28,r29 block++; ffc17e24: 3b de 00 01 addi r30,r30,1 my_length -= to_copy; ffc17e28: 7f 5d d0 50 subf r26,r29,r26 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc17e2c: 7f 9a d8 40 cmplw cr7,r26,r27 ffc17e30: 41 9c 00 4c blt- cr7,ffc17e7c ffc17e34: 3b 39 27 68 addi r25,r25,10088 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc17e38: 7f e3 fb 78 mr r3,r31 ffc17e3c: 7f c4 f3 78 mr r4,r30 ffc17e40: 38 a0 00 00 li r5,0 ffc17e44: 4b ff f3 71 bl ffc171b4 assert( block_ptr ); ffc17e48: 2c 03 00 00 cmpwi r3,0 ffc17e4c: 41 82 01 04 beq- ffc17f50 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 ); ffc17e50: 80 63 00 00 lwz r3,0(r3) ffc17e54: 7f 84 e3 78 mr r4,r28 ffc17e58: 7f 65 db 78 mr r5,r27 ffc17e5c: 48 00 2e 4d bl ffc1aca8 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc17e60: 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; ffc17e64: 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 ) { ffc17e68: 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; ffc17e6c: 7f 9c da 14 add r28,r28,r27 block++; ffc17e70: 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( ffc17e74: 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 ) { ffc17e78: 40 9d ff c0 ble+ cr7,ffc17e38 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { ffc17e7c: 2f 9a 00 00 cmpwi cr7,r26,0 ffc17e80: 41 9e 00 30 beq- cr7,ffc17eb0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc17e84: 7f c4 f3 78 mr r4,r30 ffc17e88: 7f e3 fb 78 mr r3,r31 ffc17e8c: 38 a0 00 00 li r5,0 ffc17e90: 4b ff f3 25 bl ffc171b4 assert( block_ptr ); ffc17e94: 2c 03 00 00 cmpwi r3,0 ffc17e98: 41 82 00 dc beq- ffc17f74 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 ); ffc17e9c: 80 63 00 00 lwz r3,0(r3) ffc17ea0: 7f 84 e3 78 mr r4,r28 ffc17ea4: 7f 45 d3 78 mr r5,r26 ffc17ea8: 48 00 2e 01 bl ffc1aca8 my_length = 0; copied += to_copy; ffc17eac: 7f bd d2 14 add r29,r29,r26 } IMFS_mtime_ctime_update( the_jnode ); ffc17eb0: 38 61 00 08 addi r3,r1,8 ffc17eb4: 38 80 00 00 li r4,0 ffc17eb8: 4b fe e2 45 bl ffc060fc ffc17ebc: 80 01 00 08 lwz r0,8(r1) ffc17ec0: 90 1f 00 48 stw r0,72(r31) ffc17ec4: 90 1f 00 44 stw r0,68(r31) return copied; } ffc17ec8: 80 01 00 44 lwz r0,68(r1) ffc17ecc: 7f a3 eb 78 mr r3,r29 ffc17ed0: 82 e1 00 1c lwz r23,28(r1) ffc17ed4: 7c 08 03 a6 mtlr r0 ffc17ed8: 83 01 00 20 lwz r24,32(r1) ffc17edc: 83 21 00 24 lwz r25,36(r1) ffc17ee0: 83 41 00 28 lwz r26,40(r1) ffc17ee4: 83 61 00 2c lwz r27,44(r1) ffc17ee8: 83 81 00 30 lwz r28,48(r1) ffc17eec: 83 a1 00 34 lwz r29,52(r1) ffc17ef0: 83 c1 00 38 lwz r30,56(r1) ffc17ef4: 83 e1 00 3c lwz r31,60(r1) ffc17ef8: 38 21 00 40 addi r1,r1,64 ffc17efc: 4e 80 00 20 blr * 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 ) { ffc17f00: 80 1f 00 54 lwz r0,84(r31) ffc17f04: 7f 80 30 40 cmplw cr7,r0,r6 ffc17f08: 40 bc fe 98 bge- cr7,ffc17da0 status = IMFS_memfile_extend( the_jnode, last_byte ); ffc17f0c: 7f e3 fb 78 mr r3,r31 ffc17f10: 38 a0 00 00 li r5,0 ffc17f14: 4b ff fa 51 bl ffc17964 if ( status ) ffc17f18: 2f 83 00 00 cmpwi cr7,r3,0 ffc17f1c: 41 9e fe 84 beq+ cr7,ffc17da0 rtems_set_errno_and_return_minus_one( ENOSPC ); ffc17f20: 48 00 21 a1 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc17f24: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc17f28: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17f2c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc17f30: 4b ff ff 98 b ffc17ec8 <== NOT EXECUTED */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; ffc17f34: 7f 5d d3 78 mr r29,r26 ffc17f38: 4b ff fe d0 b ffc17e08 * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc17f3c: 48 00 21 85 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc17f40: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc17f44: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17f48: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc17f4c: 4b ff ff 7c b ffc17ec8 <== 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 ); ffc17f50: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17f54: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17f58: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17f5c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17f60: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17f64: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17f68: 38 c6 71 f4 addi r6,r6,29172 <== NOT EXECUTED ffc17f6c: 38 80 03 30 li r4,816 <== NOT EXECUTED ffc17f70: 4b fe db 65 bl ffc05ad4 <__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 ); ffc17f74: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17f78: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17f7c: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17f80: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17f84: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17f88: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17f8c: 38 c6 71 f4 addi r6,r6,29172 <== NOT EXECUTED ffc17f90: 38 80 03 46 li r4,838 <== NOT EXECUTED ffc17f94: 4b fe db 41 bl ffc05ad4 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); ffc17f98: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17f9c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17fa0: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17fa4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17fa8: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17fac: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17fb0: 38 c6 71 b8 addi r6,r6,29112 <== NOT EXECUTED ffc17fb4: 38 80 02 e3 li r4,739 <== NOT EXECUTED ffc17fb8: 4b fe db 1d bl ffc05ad4 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); ffc17fbc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17fc0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17fc4: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17fc8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17fcc: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17fd0: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17fd4: 38 c6 72 00 addi r6,r6,29184 <== NOT EXECUTED ffc17fd8: 38 80 02 ef li r4,751 <== NOT EXECUTED ffc17fdc: 4b fe da f9 bl ffc05ad4 <__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 ); ffc17fe0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17fe4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17fe8: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc17fec: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17ff0: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17ff4: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17ff8: 38 c6 71 c4 addi r6,r6,29124 <== NOT EXECUTED ffc17ffc: 38 80 02 e7 li r4,743 <== NOT EXECUTED ffc18000: 4b fe da d5 bl ffc05ad4 <__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 ); ffc18004: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc18008: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1800c: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc18010: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc18014: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc18018: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc1801c: 38 c6 71 f4 addi r6,r6,29172 <== NOT EXECUTED ffc18020: 38 80 03 1c li r4,796 <== NOT EXECUTED ffc18024: 4b fe da b1 bl ffc05ad4 <__assert_func> <== NOT EXECUTED ffc0ddb8 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0ddb8: 94 21 ff 90 stwu r1,-112(r1) ffc0ddbc: 7c 08 02 a6 mflr r0 ffc0ddc0: 93 41 00 58 stw r26,88(r1) ffc0ddc4: 7c 7a 1b 78 mr r26,r3 ffc0ddc8: 90 01 00 74 stw r0,116(r1) ffc0ddcc: 93 61 00 5c stw r27,92(r1) ffc0ddd0: 7c fb 3b 78 mr r27,r7 ffc0ddd4: 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 ); ffc0ddd8: 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 */ ) { ffc0dddc: 93 a1 00 64 stw r29,100(r1) ffc0dde0: 7c bd 2b 78 mr r29,r5 ffc0dde4: 93 c1 00 68 stw r30,104(r1) ffc0dde8: 7c de 33 78 mr r30,r6 ffc0ddec: 93 e1 00 6c stw r31,108(r1) ffc0ddf0: 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 ); ffc0ddf4: 48 00 6a 29 bl ffc1481c ffc0ddf8: 7f 85 e3 78 mr r5,r28 ffc0ddfc: 7c 64 1b 78 mr r4,r3 ffc0de00: 38 c1 00 08 addi r6,r1,8 ffc0de04: 7f 43 d3 78 mr r3,r26 ffc0de08: 4b ff fd 81 bl ffc0db88 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) ffc0de0c: 57 e0 04 26 rlwinm r0,r31,0,16,19 ffc0de10: 2f 80 40 00 cmpwi cr7,r0,16384 ffc0de14: 41 9e 00 8c beq- cr7,ffc0dea0 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) ffc0de18: 39 20 00 00 li r9,0 ffc0de1c: 61 29 80 00 ori r9,r9,32768 ffc0de20: 7f 80 48 00 cmpw cr7,r0,r9 ffc0de24: 38 80 00 05 li r4,5 ffc0de28: 41 9e 00 20 beq- cr7,ffc0de48 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { ffc0de2c: 2f 80 60 00 cmpwi cr7,r0,24576 ffc0de30: 41 9e 00 60 beq- cr7,ffc0de90 ffc0de34: 2f 80 20 00 cmpwi cr7,r0,8192 ffc0de38: 41 9e 00 58 beq- cr7,ffc0de90 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) ffc0de3c: 2f 80 10 00 cmpwi cr7,r0,4096 ffc0de40: 38 80 00 07 li r4,7 ffc0de44: 40 9e 00 64 bne- cr7,ffc0dea8 * 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( ffc0de48: 7f 63 db 78 mr r3,r27 ffc0de4c: 7f 85 e3 78 mr r5,r28 ffc0de50: 7f e6 fb 78 mr r6,r31 ffc0de54: 38 e1 00 10 addi r7,r1,16 ffc0de58: 48 00 36 55 bl ffc114ac new_name, mode, &info ); if ( !new_node ) ffc0de5c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0de60: 38 60 00 00 li r3,0 ffc0de64: 41 9e 00 58 beq- cr7,ffc0debc rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } ffc0de68: 80 01 00 74 lwz r0,116(r1) ffc0de6c: 83 41 00 58 lwz r26,88(r1) ffc0de70: 7c 08 03 a6 mtlr r0 ffc0de74: 83 61 00 5c lwz r27,92(r1) ffc0de78: 83 81 00 60 lwz r28,96(r1) ffc0de7c: 83 a1 00 64 lwz r29,100(r1) ffc0de80: 83 c1 00 68 lwz r30,104(r1) ffc0de84: 83 e1 00 6c lwz r31,108(r1) ffc0de88: 38 21 00 70 addi r1,r1,112 ffc0de8c: 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 ); ffc0de90: 93 a1 00 10 stw r29,16(r1) ffc0de94: 38 80 00 02 li r4,2 ffc0de98: 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) ) { ffc0de9c: 4b ff ff ac b ffc0de48 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 ); ffc0dea0: 38 80 00 01 li r4,1 ffc0dea4: 4b ff ff a4 b ffc0de48 ffc0dea8: 48 00 56 79 bl ffc13520 <__errno> <== NOT EXECUTED ffc0deac: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0deb0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0deb4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0deb8: 4b ff ff b0 b ffc0de68 <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); ffc0debc: 48 00 56 65 bl ffc13520 <__errno> <== NOT EXECUTED ffc0dec0: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0dec4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0dec8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0decc: 4b ff ff 9c b ffc0de68 <== NOT EXECUTED ffc05544 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc05544: 7c 08 02 a6 mflr r0 ffc05548: 94 21 ff f8 stwu r1,-8(r1) ffc0554c: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc05550: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc05554: 80 09 00 4c lwz r0,76(r9) ffc05558: 2f 80 00 01 cmpwi cr7,r0,1 ffc0555c: 40 9e 00 1c bne- cr7,ffc05578 /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; ffc05560: 90 69 00 5c stw r3,92(r9) ffc05564: 38 60 00 00 li r3,0 return 0; } ffc05568: 80 01 00 0c lwz r0,12(r1) ffc0556c: 38 21 00 08 addi r1,r1,8 ffc05570: 7c 08 03 a6 mtlr r0 ffc05574: 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 ); ffc05578: 48 01 4b 49 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc0557c: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc05580: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05584: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05588: 4b ff ff e0 b ffc05568 <== NOT EXECUTED ffc063b8 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc063b8: 94 21 ff f0 stwu r1,-16(r1) ffc063bc: 7c 08 02 a6 mflr r0 ffc063c0: 93 e1 00 0c stw r31,12(r1) assert( the_jnode ); ffc063c4: 7c 7f 1b 79 mr. r31,r3 */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc063c8: 90 01 00 14 stw r0,20(r1) ffc063cc: 93 c1 00 08 stw r30,8(r1) assert( the_jnode ); ffc063d0: 41 82 02 28 beq- ffc065f8 fprintf(stdout, "%s", the_jnode->name ); ffc063d4: 3f c0 00 00 lis r30,0 ffc063d8: 81 3e 27 4c lwz r9,10060(r30) ffc063dc: 38 7f 00 0c addi r3,r31,12 ffc063e0: 80 89 00 08 lwz r4,8(r9) ffc063e4: 48 01 36 15 bl ffc199f8 switch( the_jnode->type ) { ffc063e8: 80 bf 00 4c lwz r5,76(r31) ffc063ec: 2b 85 00 07 cmplwi cr7,r5,7 ffc063f0: 40 9d 00 3c ble- cr7,ffc0642c fprintf(stdout, " FIFO not printed\n" ); assert(0); break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); ffc063f4: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc063f8: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc063fc: 38 84 a3 d0 addi r4,r4,-23600 <== NOT EXECUTED ffc06400: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc06404: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06408: 48 01 33 75 bl ffc1977c <== NOT EXECUTED assert(0); ffc0640c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06410: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06414: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06418: 38 63 a3 1c addi r3,r3,-23780 <== NOT EXECUTED ffc0641c: 38 a5 a2 f4 addi r5,r5,-23820 <== NOT EXECUTED ffc06420: 38 c6 a3 b8 addi r6,r6,-23624 <== NOT EXECUTED ffc06424: 38 80 00 6c li r4,108 <== NOT EXECUTED ffc06428: 48 00 0c 95 bl ffc070bc <__assert_func> <== NOT EXECUTED ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { ffc0642c: 3d 20 ff c3 lis r9,-61 ffc06430: 39 29 a2 d4 addi r9,r9,-23852 ffc06434: 54 a0 10 3a rlwinm r0,r5,2,0,29 ffc06438: 7c 09 00 2e lwzx r0,r9,r0 ffc0643c: 7d 20 4a 14 add r9,r0,r9 ffc06440: 7d 29 03 a6 mtctr r9 ffc06444: 4e 80 04 20 bctr fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); ffc06448: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc0644c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06450: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06454: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED ffc06458: 38 a0 00 12 li r5,18 <== NOT EXECUTED ffc0645c: 38 63 a3 bc addi r3,r3,-23620 <== NOT EXECUTED ffc06460: 48 01 43 8d bl ffc1a7ec <== NOT EXECUTED assert(0); ffc06464: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06468: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc0646c: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06470: 38 63 a3 1c addi r3,r3,-23780 <== NOT EXECUTED ffc06474: 38 a5 a2 f4 addi r5,r5,-23820 <== NOT EXECUTED ffc06478: 38 c6 a3 b8 addi r6,r6,-23624 <== NOT EXECUTED ffc0647c: 38 80 00 67 li r4,103 <== NOT EXECUTED ffc06480: 48 00 0c 3d bl ffc070bc <__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)", ffc06484: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc06488: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0648c: 80 df 00 58 lwz r6,88(r31) <== NOT EXECUTED ffc06490: 38 84 a3 88 addi r4,r4,-23672 <== NOT EXECUTED ffc06494: 80 bf 00 54 lwz r5,84(r31) <== NOT EXECUTED ffc06498: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc0649c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc064a0: 48 01 32 dd bl ffc1977c <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); ffc064a4: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc064a8: 38 63 95 50 addi r3,r3,-27312 <== NOT EXECUTED ffc064ac: 48 01 56 01 bl ffc1baac <== NOT EXECUTED } ffc064b0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc064b4: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc064b8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc064bc: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc064c0: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc064c4: 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 ")", ffc064c8: 81 3e 27 4c lwz r9,10060(r30) ffc064cc: 3c 80 ff c3 lis r4,-61 ffc064d0: 80 bf 00 54 lwz r5,84(r31) ffc064d4: 38 84 a3 98 addi r4,r4,-23656 ffc064d8: 80 69 00 08 lwz r3,8(r9) ffc064dc: 4c c6 31 82 crclr 4*cr1+eq ffc064e0: 48 01 32 9d bl ffc1977c default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); ffc064e4: 3c 60 ff c3 lis r3,-61 ffc064e8: 38 63 95 50 addi r3,r3,-27312 ffc064ec: 48 01 55 c1 bl ffc1baac } ffc064f0: 80 01 00 14 lwz r0,20(r1) ffc064f4: 83 c1 00 08 lwz r30,8(r1) ffc064f8: 7c 08 03 a6 mtlr r0 ffc064fc: 83 e1 00 0c lwz r31,12(r1) ffc06500: 38 21 00 10 addi r1,r1,16 ffc06504: 4e 80 00 20 blr fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); ffc06508: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc0650c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06510: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06514: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED ffc06518: 38 a0 00 13 li r5,19 <== NOT EXECUTED ffc0651c: 38 63 a3 a4 addi r3,r3,-23644 <== NOT EXECUTED ffc06520: 48 01 42 cd bl ffc1a7ec <== NOT EXECUTED assert(0); ffc06524: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06528: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc0652c: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06530: 38 63 a3 1c addi r3,r3,-23780 <== NOT EXECUTED ffc06534: 38 a5 a2 f4 addi r5,r5,-23820 <== NOT EXECUTED ffc06538: 38 c6 a3 b8 addi r6,r6,-23624 <== NOT EXECUTED ffc0653c: 38 80 00 62 li r4,98 <== NOT EXECUTED ffc06540: 48 00 0b 7d bl ffc070bc <__assert_func> <== NOT EXECUTED (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); ffc06544: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc06548: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc0654c: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06550: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED ffc06554: 38 a0 00 13 li r5,19 <== NOT EXECUTED ffc06558: 38 63 a3 a4 addi r3,r3,-23644 <== NOT EXECUTED ffc0655c: 48 01 42 91 bl ffc1a7ec <== NOT EXECUTED assert(0); ffc06560: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06564: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06568: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc0656c: 38 63 a3 1c addi r3,r3,-23780 <== NOT EXECUTED ffc06570: 38 a5 a2 f4 addi r5,r5,-23820 <== NOT EXECUTED ffc06574: 38 c6 a3 b8 addi r6,r6,-23624 <== NOT EXECUTED ffc06578: 38 80 00 5d li r4,93 <== NOT EXECUTED ffc0657c: 48 00 0b 41 bl ffc070bc <__assert_func> <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", ffc06580: 81 3e 27 4c lwz r9,10060(r30) ffc06584: 3c 80 ff c3 lis r4,-61 ffc06588: 80 df 00 54 lwz r6,84(r31) ffc0658c: 38 84 a3 74 addi r4,r4,-23692 ffc06590: 80 bf 00 50 lwz r5,80(r31) ffc06594: 80 69 00 08 lwz r3,8(r9) ffc06598: 4c c6 31 82 crclr 4*cr1+eq ffc0659c: 48 01 31 e1 bl ffc1977c default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); ffc065a0: 3c 60 ff c3 lis r3,-61 ffc065a4: 38 63 95 50 addi r3,r3,-27312 ffc065a8: 48 01 55 05 bl ffc1baac } ffc065ac: 80 01 00 14 lwz r0,20(r1) ffc065b0: 83 c1 00 08 lwz r30,8(r1) ffc065b4: 7c 08 03 a6 mtlr r0 ffc065b8: 83 e1 00 0c lwz r31,12(r1) ffc065bc: 38 21 00 10 addi r1,r1,16 ffc065c0: 4e 80 00 20 blr assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); ffc065c4: 81 3e 27 4c lwz r9,10060(r30) ffc065c8: 38 60 00 2f li r3,47 ffc065cc: 80 89 00 08 lwz r4,8(r9) ffc065d0: 48 01 32 bd bl ffc1988c default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); ffc065d4: 3c 60 ff c3 lis r3,-61 ffc065d8: 38 63 95 50 addi r3,r3,-27312 ffc065dc: 48 01 54 d1 bl ffc1baac } ffc065e0: 80 01 00 14 lwz r0,20(r1) ffc065e4: 83 c1 00 08 lwz r30,8(r1) ffc065e8: 7c 08 03 a6 mtlr r0 ffc065ec: 83 e1 00 0c lwz r31,12(r1) ffc065f0: 38 21 00 10 addi r1,r1,16 ffc065f4: 4e 80 00 20 blr void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); ffc065f8: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc065fc: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06600: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06604: 38 63 a3 1c addi r3,r3,-23780 <== NOT EXECUTED ffc06608: 38 a5 a2 f4 addi r5,r5,-23820 <== NOT EXECUTED ffc0660c: 38 c6 a3 68 addi r6,r6,-23704 <== NOT EXECUTED ffc06610: 38 80 00 38 li r4,56 <== NOT EXECUTED ffc06614: 48 00 0a a9 bl ffc070bc <__assert_func> <== NOT EXECUTED ffc05598 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { ffc05598: 7c 08 02 a6 mflr r0 ffc0559c: 94 21 ff f8 stwu r1,-8(r1) ffc055a0: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; int i; node = loc->node_access; ffc055a4: 81 23 00 00 lwz r9,0(r3) if ( node->type != IMFS_SYM_LINK ) ffc055a8: 80 09 00 4c lwz r0,76(r9) ffc055ac: 2f 80 00 04 cmpwi cr7,r0,4 ffc055b0: 40 9e 00 64 bne- cr7,ffc05614 rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc055b4: 2f 85 00 00 cmpwi cr7,r5,0 ffc055b8: 41 9e 00 54 beq- cr7,ffc0560c ffc055bc: 81 69 00 50 lwz r11,80(r9) ffc055c0: 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 ); ffc055c4: 38 60 00 00 li r3,0 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc055c8: 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 ); ffc055cc: 39 60 00 00 li r11,0 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc055d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc055d4: 40 be 00 18 bne+ cr7,ffc055ec ffc055d8: 48 00 00 34 b ffc0560c <== NOT EXECUTED ffc055dc: 81 49 00 50 lwz r10,80(r9) ffc055e0: 7c 0a 18 ae lbzx r0,r10,r3 ffc055e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc055e8: 41 9e 00 14 beq- cr7,ffc055fc ffc055ec: 38 63 00 01 addi r3,r3,1 buf[i] = node->info.sym_link.name[i]; ffc055f0: 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; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc055f4: 7c 6b 1b 78 mr r11,r3 ffc055f8: 42 00 ff e4 bdnz+ ffc055dc buf[i] = node->info.sym_link.name[i]; return i; } ffc055fc: 80 01 00 0c lwz r0,12(r1) ffc05600: 38 21 00 08 addi r1,r1,8 ffc05604: 7c 08 03 a6 mtlr r0 ffc05608: 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; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc0560c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc05610: 4b ff ff ec b ffc055fc <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc05614: 48 01 4a ad bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc05618: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0561c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05620: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05624: 4b ff ff d8 b ffc055fc <== NOT EXECUTED ffc05628 : 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 */ ) { ffc05628: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0562c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05630: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc05634: 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; ffc05638: 83 e4 00 00 lwz r31,0(r4) <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); ffc0563c: 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 */ ) { ffc05640: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc05644: 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 ); ffc05648: 38 7f 00 0c addi r3,r31,12 <== NOT EXECUTED ffc0564c: 38 a0 00 20 li r5,32 <== NOT EXECUTED ffc05650: 48 01 5d cd bl ffc1b41c <== NOT EXECUTED if ( the_jnode->Parent != NULL ) ffc05654: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc05658: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0565c: 41 9e 00 0c beq- cr7,ffc05668 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc05660: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05664: 48 00 5f d1 bl ffc0b634 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; ffc05668: 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 ); ffc0566c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED the_jnode->Parent = new_parent; ffc05670: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED ffc05674: 38 63 00 50 addi r3,r3,80 <== NOT EXECUTED ffc05678: 48 00 5f 8d bl ffc0b604 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); ffc0567c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc05680: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05684: 48 00 0a 79 bl ffc060fc <== NOT EXECUTED ffc05688: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED return 0; } ffc0568c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc05690: 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 ); ffc05694: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED return 0; } ffc05698: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0569c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc056a0: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc056a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc056a8: 4e 80 00 20 blr <== NOT EXECUTED ffc0dedc : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc0dedc: 94 21 ff e0 stwu r1,-32(r1) ffc0dee0: 7c 08 02 a6 mflr r0 ffc0dee4: 90 01 00 24 stw r0,36(r1) ffc0dee8: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc0deec: 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 */ ) { ffc0def0: 93 c1 00 18 stw r30,24(r1) ffc0def4: 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 ) { ffc0def8: 80 1f 00 08 lwz r0,8(r31) ffc0defc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0df00: 41 9e 00 14 beq- cr7,ffc0df14 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0df04: 7f e3 fb 78 mr r3,r31 ffc0df08: 48 00 19 99 bl ffc0f8a0 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc0df0c: 38 00 00 00 li r0,0 ffc0df10: 90 1f 00 08 stw r0,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0df14: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc0df18: 38 80 00 00 li r4,0 ffc0df1c: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0df20: 38 09 ff ff addi r0,r9,-1 ffc0df24: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc0df28: 48 00 04 01 bl ffc0e328 ffc0df2c: 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) ) { ffc0df30: 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 ); ffc0df34: 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) ) { ffc0df38: 48 00 04 e1 bl ffc0e418 ffc0df3c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0df40: 40 9e 00 3c bne- cr7,ffc0df7c ffc0df44: a0 1f 00 34 lhz r0,52(r31) ffc0df48: 2f 80 00 00 cmpwi cr7,r0,0 ffc0df4c: 40 9e 00 30 bne- cr7,ffc0df7c /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc0df50: 3d 20 00 00 lis r9,0 ffc0df54: 81 7e 00 00 lwz r11,0(r30) ffc0df58: 81 29 26 dc lwz r9,9948(r9) ffc0df5c: 81 49 00 04 lwz r10,4(r9) ffc0df60: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0df64: 41 9e 00 48 beq- cr7,ffc0dfac /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { ffc0df68: 80 1f 00 4c lwz r0,76(r31) ffc0df6c: 2f 80 00 04 cmpwi cr7,r0,4 ffc0df70: 41 9e 00 28 beq- cr7,ffc0df98 if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); ffc0df74: 7f e3 fb 78 mr r3,r31 ffc0df78: 4b ff 66 7d bl ffc045f4 } return 0; } ffc0df7c: 80 01 00 24 lwz r0,36(r1) ffc0df80: 38 60 00 00 li r3,0 ffc0df84: 83 c1 00 18 lwz r30,24(r1) ffc0df88: 7c 08 03 a6 mtlr r0 ffc0df8c: 83 e1 00 1c lwz r31,28(r1) ffc0df90: 38 21 00 20 addi r1,r1,32 ffc0df94: 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 ) ffc0df98: 80 7f 00 50 lwz r3,80(r31) ffc0df9c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0dfa0: 41 be ff d4 beq- cr7,ffc0df74 free( (void*) the_jnode->info.sym_link.name ); ffc0dfa4: 4b ff 66 51 bl ffc045f4 ffc0dfa8: 4b ff ff cc b ffc0df74 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; ffc0dfac: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED ffc0dfb0: 4b ff ff b8 b ffc0df68 <== NOT EXECUTED ffc0dfb4 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { ffc0dfb4: 7c 08 02 a6 mflr r0 ffc0dfb8: 94 21 ff f8 stwu r1,-8(r1) ffc0dfbc: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; ffc0dfc0: 81 23 00 00 lwz r9,0(r3) switch ( the_jnode->type ) { ffc0dfc4: 80 09 00 4c lwz r0,76(r9) ffc0dfc8: 2b 80 00 07 cmplwi cr7,r0,7 ffc0dfcc: 40 9d 00 24 ble- cr7,ffc0dff0 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0dfd0: 48 00 55 51 bl ffc13520 <__errno> <== NOT EXECUTED ffc0dfd4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0dfd8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0dfdc: 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; } ffc0dfe0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0dfe4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc0dfe8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0dfec: 4e 80 00 20 blr <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { ffc0dff0: 3d 60 ff c2 lis r11,-62 ffc0dff4: 39 6b fb 90 addi r11,r11,-1136 ffc0dff8: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0dffc: 7c 0b 00 2e lwzx r0,r11,r0 ffc0e000: 7d 60 5a 14 add r11,r0,r11 ffc0e004: 7d 69 03 a6 mtctr r11 ffc0e008: 4e 80 04 20 bctr case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; ffc0e00c: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc0e010: 39 80 00 00 li r12,0 <== NOT EXECUTED ffc0e014: 91 64 00 20 stw r11,32(r4) <== NOT EXECUTED ffc0e018: 91 84 00 24 stw r12,36(r4) <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; ffc0e01c: 80 09 00 38 lwz r0,56(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; ffc0e020: 38 60 00 00 li r3,0 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc0e024: a1 69 00 34 lhz r11,52(r9) buf->st_ino = the_jnode->st_ino; ffc0e028: 90 04 00 08 stw r0,8(r4) rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc0e02c: b1 64 00 10 sth r11,16(r4) 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; ffc0e030: 80 09 00 40 lwz r0,64(r9) } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; ffc0e034: a1 69 00 3c lhz r11,60(r9) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; ffc0e038: 90 04 00 28 stw r0,40(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; ffc0e03c: b1 64 00 12 sth r11,18(r4) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc0e040: 80 09 00 44 lwz r0,68(r9) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; ffc0e044: 81 69 00 30 lwz r11,48(r9) 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; ffc0e048: 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; ffc0e04c: a0 09 00 3e lhz r0,62(r9) buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0e050: 81 49 00 48 lwz r10,72(r9) buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; ffc0e054: 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; } ffc0e058: 80 01 00 0c lwz r0,12(r1) ffc0e05c: 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; ffc0e060: 91 44 00 38 stw r10,56(r4) return 0; } ffc0e064: 7c 08 03 a6 mtlr r0 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; ffc0e068: 91 64 00 0c stw r11,12(r4) buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } ffc0e06c: 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 ); ffc0e070: 81 69 00 54 lwz r11,84(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc0e074: 80 09 00 50 lwz r0,80(r9) ffc0e078: 91 64 00 1c stw r11,28(r4) ffc0e07c: 90 04 00 18 stw r0,24(r4) break; ffc0e080: 4b ff ff 9c b ffc0e01c case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; ffc0e084: 81 69 00 50 lwz r11,80(r9) ffc0e088: 81 89 00 54 lwz r12,84(r9) ffc0e08c: 91 64 00 20 stw r11,32(r4) ffc0e090: 91 84 00 24 stw r12,36(r4) break; ffc0e094: 4b ff ff 88 b ffc0e01c ffc056ac : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { ffc056ac: 94 21 ff 98 stwu r1,-104(r1) ffc056b0: 7c 08 02 a6 mflr r0 ffc056b4: 93 a1 00 5c stw r29,92(r1) ffc056b8: 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 ); ffc056bc: 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 ) { ffc056c0: 90 01 00 6c stw r0,108(r1) ffc056c4: 93 81 00 58 stw r28,88(r1) ffc056c8: 7c bc 2b 78 mr r28,r5 ffc056cc: 93 c1 00 60 stw r30,96(r1) ffc056d0: 7c 9e 23 78 mr r30,r4 ffc056d4: 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 ); ffc056d8: 48 01 5c a9 bl ffc1b380 ffc056dc: 3b e1 00 28 addi r31,r1,40 ffc056e0: 7c 64 1b 78 mr r4,r3 ffc056e4: 7f e5 fb 78 mr r5,r31 ffc056e8: 38 c1 00 08 addi r6,r1,8 ffc056ec: 7f 83 e3 78 mr r3,r28 ffc056f0: 48 00 ea d1 bl ffc141c0 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); ffc056f4: 7f c3 f3 78 mr r3,r30 ffc056f8: 48 01 5b f1 bl ffc1b2e8 if (info.sym_link.name == NULL) { ffc056fc: 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); ffc05700: 90 61 00 10 stw r3,16(r1) if (info.sym_link.name == NULL) { ffc05704: 41 9e 00 54 beq- cr7,ffc05758 * 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( ffc05708: 38 c0 00 00 li r6,0 ffc0570c: 7f a3 eb 78 mr r3,r29 ffc05710: 7f e5 fb 78 mr r5,r31 ffc05714: 60 c6 a1 ff ori r6,r6,41471 ffc05718: 38 80 00 04 li r4,4 ffc0571c: 38 e1 00 10 addi r7,r1,16 ffc05720: 48 00 da 01 bl ffc13120 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { ffc05724: 2f 83 00 00 cmpwi cr7,r3,0 ffc05728: 38 60 00 00 li r3,0 ffc0572c: 41 9e 00 24 beq- cr7,ffc05750 free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } ffc05730: 80 01 00 6c lwz r0,108(r1) ffc05734: 83 81 00 58 lwz r28,88(r1) ffc05738: 7c 08 03 a6 mtlr r0 ffc0573c: 83 a1 00 5c lwz r29,92(r1) ffc05740: 83 c1 00 60 lwz r30,96(r1) ffc05744: 83 e1 00 64 lwz r31,100(r1) ffc05748: 38 21 00 68 addi r1,r1,104 ffc0574c: 4e 80 00 20 blr ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); ffc05750: 80 61 00 10 lwz r3,16(r1) <== NOT EXECUTED ffc05754: 48 00 08 e1 bl ffc06034 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc05758: 48 01 49 69 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc0575c: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc05760: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05764: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05768: 4b ff ff c8 b ffc05730 <== NOT EXECUTED ffc0576c : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { ffc0576c: 94 21 ff c8 stwu r1,-56(r1) ffc05770: 7c 08 02 a6 mflr r0 ffc05774: 90 01 00 3c stw r0,60(r1) ffc05778: 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; ffc0577c: 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 */ ) { ffc05780: 93 a1 00 2c stw r29,44(r1) ffc05784: 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 ) { ffc05788: 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 */ ) { ffc0578c: 93 e1 00 34 stw r31,52(r1) ffc05790: 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 ) { ffc05794: 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 */ ) { ffc05798: 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 ) { ffc0579c: 41 9e 00 3c beq- cr7,ffc057d8 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); ffc057a0: 81 3f 00 08 lwz r9,8(r31) ffc057a4: 7f a3 eb 78 mr r3,r29 ffc057a8: 7f e4 fb 78 mr r4,r31 ffc057ac: 80 09 00 34 lwz r0,52(r9) ffc057b0: 7c 09 03 a6 mtctr r0 ffc057b4: 4e 80 04 21 bctrl return result; } ffc057b8: 80 01 00 3c lwz r0,60(r1) ffc057bc: 83 81 00 28 lwz r28,40(r1) ffc057c0: 7c 08 03 a6 mtlr r0 ffc057c4: 83 a1 00 2c lwz r29,44(r1) ffc057c8: 83 c1 00 30 lwz r30,48(r1) ffc057cc: 83 e1 00 34 lwz r31,52(r1) ffc057d0: 38 21 00 38 addi r1,r1,56 ffc057d4: 4e 80 00 20 blr * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) ffc057d8: 80 1e 00 50 lwz r0,80(r30) ffc057dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc057e0: 41 9e 00 90 beq- cr7,ffc05870 rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; the_link.node_access = node->info.hard_link.link_node; ffc057e4: 7c 3c 0b 78 mr r28,r1 ffc057e8: 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; ffc057ec: 81 64 00 08 lwz r11,8(r4) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc057f0: 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; ffc057f4: 81 24 00 0c lwz r9,12(r4) ffc057f8: 81 44 00 04 lwz r10,4(r4) ffc057fc: 80 04 00 10 lwz r0,16(r4) ffc05800: 91 61 00 18 stw r11,24(r1) ffc05804: 91 21 00 1c stw r9,28(r1) ffc05808: 91 41 00 14 stw r10,20(r1) ffc0580c: 90 01 00 20 stw r0,32(r1) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc05810: 48 00 da 95 bl ffc132a4 /* * 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) ffc05814: 81 3e 00 50 lwz r9,80(r30) ffc05818: a1 69 00 34 lhz r11,52(r9) ffc0581c: 2f 8b 00 01 cmpwi cr7,r11,1 ffc05820: 41 9e 00 28 beq- cr7,ffc05848 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; ffc05824: 39 6b ff ff addi r11,r11,-1 ffc05828: b1 69 00 34 sth r11,52(r9) IMFS_update_ctime( node->info.hard_link.link_node ); ffc0582c: 38 61 00 08 addi r3,r1,8 ffc05830: 38 80 00 00 li r4,0 ffc05834: 48 00 08 c9 bl ffc060fc ffc05838: 81 3e 00 50 lwz r9,80(r30) ffc0583c: 80 01 00 08 lwz r0,8(r1) ffc05840: 90 09 00 48 stw r0,72(r9) ffc05844: 4b ff ff 5c b ffc057a0 * 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 ); ffc05848: 81 21 00 18 lwz r9,24(r1) ffc0584c: 7f 84 e3 78 mr r4,r28 ffc05850: 7f a3 eb 78 mr r3,r29 ffc05854: 80 09 00 34 lwz r0,52(r9) ffc05858: 7c 09 03 a6 mtctr r0 ffc0585c: 4e 80 04 21 bctrl if ( result != 0 ) ffc05860: 2f 83 00 00 cmpwi cr7,r3,0 ffc05864: 38 60 ff ff li r3,-1 ffc05868: 41 9e ff 38 beq+ cr7,ffc057a0 ffc0586c: 4b ff ff 4c b ffc057b8 */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc05870: 48 01 48 51 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc05874: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05878: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0587c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05880: 4b ff ff 38 b ffc057b8 <== NOT EXECUTED ffc05884 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc05884: 7c 08 02 a6 mflr r0 ffc05888: 94 21 ff f8 stwu r1,-8(r1) ffc0588c: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc05890: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc05894: 80 09 00 4c lwz r0,76(r9) ffc05898: 2f 80 00 01 cmpwi cr7,r0,1 ffc0589c: 40 9e 00 2c bne- cr7,ffc058c8 /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) ffc058a0: 80 09 00 5c lwz r0,92(r9) ffc058a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc058a8: 41 9e 00 34 beq- cr7,ffc058dc /* * 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; ffc058ac: 38 00 00 00 li r0,0 ffc058b0: 90 09 00 5c stw r0,92(r9) ffc058b4: 38 60 00 00 li r3,0 return 0; } ffc058b8: 80 01 00 0c lwz r0,12(r1) ffc058bc: 38 21 00 08 addi r1,r1,8 ffc058c0: 7c 08 03 a6 mtlr r0 ffc058c4: 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 ); ffc058c8: 48 01 47 f9 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc058cc: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc058d0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc058d4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc058d8: 4b ff ff e0 b ffc058b8 <== 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 */ ffc058dc: 48 01 47 e5 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc058e0: 38 00 00 16 li r0,22 <== 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 cc b ffc058b8 <== NOT EXECUTED ffc04858 : #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 27 08 lwz r9,9992(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_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 /* * 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 27 0c lwz r9,9996(r9) ffc048a8: 2f 89 00 00 cmpwi cr7,r9,0 ffc048ac: 41 9e 00 24 beq- cr7,ffc048d0 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 27 05 lbz r0,9989(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_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 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 9c lwz r3,9884(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 6d bl ffc09b74 <_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_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); ffc04914: 80 7f 26 9c lwz r3,9884(r31) ffc04918: 3f e0 00 00 lis r31,0 ffc0491c: 83 df 2b 00 lwz r30,11008(r31) ffc04920: 48 00 61 09 bl ffc0aa28 <_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 2b 00 stw r3,11008(r31) printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 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 f8 b1 bl ffc14208 * 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 27 05 lbz r0,9989(r28) ffc04960: 2f 80 00 00 cmpwi cr7,r0,0 ffc04964: 41 9e ff 90 beq+ cr7,ffc048f4 ffc04968: 4b ff ff ac b ffc04914 <== 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 c9 bl ffc09038 <== NOT EXECUTED ffc06938 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { ffc06938: 7d 80 00 26 mfcr r12 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) ffc0693c: 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 ) { ffc06940: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc06944: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc06948: 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 ) ffc0694c: 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 ) { ffc06950: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc06954: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED ffc06958: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc0695c: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED ffc06960: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED ffc06964: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED ffc06968: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc0696c: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED ffc06970: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc06974: 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 ) ffc06978: 41 92 00 fc beq- cr4,ffc06a74 <== NOT EXECUTED return; if ( !print_handler ) ffc0697c: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc06980: 3b fd 37 68 addi r31,r29,14184 <== NOT EXECUTED ffc06984: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED ffc06988: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc0698c: 41 9e 00 e8 beq- cr7,ffc06a74 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { ffc06990: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED ffc06994: 41 9e 01 74 beq- cr7,ffc06b08 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; ffc06998: 3b 63 00 cc addi r27,r3,204 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); ffc0699c: 83 23 00 dc lwz r25,220(r3) <== NOT EXECUTED } low = Stack_check_usable_stack_start(stack); ffc069a0: 82 fb 00 04 lwz r23,4(r27) <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc069a4: 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); ffc069a8: 3a f7 00 80 addi r23,r23,128 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc069ac: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); ffc069b0: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED ffc069b4: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc069b8: 4b ff ff 31 bl ffc068e8 <== NOT EXECUTED if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc069bc: 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 ) ffc069c0: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED ffc069c4: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED ffc069c8: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc069cc: 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 ) ffc069d0: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED ffc069d4: 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 ) { ffc069d8: 41 92 01 8c beq- cr4,ffc06b64 <== NOT EXECUTED (*print_handler)( ffc069dc: 83 18 00 08 lwz r24,8(r24) <== NOT EXECUTED ffc069e0: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc069e4: 82 ff 00 08 lwz r23,8(r31) <== NOT EXECUTED ffc069e8: 38 80 00 05 li r4,5 <== NOT EXECUTED ffc069ec: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED ffc069f0: 48 00 79 9d bl ffc0e38c <== NOT EXECUTED ffc069f4: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc069f8: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc069fc: 7f 49 03 a6 mtctr r26 <== NOT EXECUTED ffc06a00: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED ffc06a04: 38 84 b3 60 addi r4,r4,-19616 <== NOT EXECUTED ffc06a08: 7f 05 c3 78 mr r5,r24 <== NOT EXECUTED ffc06a0c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06a10: 4e 80 04 21 bctrl <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( ffc06a14: 80 db 00 00 lwz r6,0(r27) <== NOT EXECUTED ffc06a18: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06a1c: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06a20: 38 84 b3 80 addi r4,r4,-19584 <== NOT EXECUTED ffc06a24: 80 bb 00 04 lwz r5,4(r27) <== NOT EXECUTED ffc06a28: 38 c6 ff ff addi r6,r6,-1 <== NOT EXECUTED ffc06a2c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06a30: 7f 27 cb 78 mr r7,r25 <== NOT EXECUTED ffc06a34: 7c c5 32 14 add r6,r5,r6 <== NOT EXECUTED ffc06a38: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06a3c: 7f 88 e3 78 mr r8,r28 <== NOT EXECUTED ffc06a40: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06a44: 4e 80 04 21 bctrl <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { ffc06a48: 80 1d 37 68 lwz r0,14184(r29) <== NOT EXECUTED ffc06a4c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06a50: 41 9e 00 60 beq- cr7,ffc06ab0 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); ffc06a54: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06a58: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06a5c: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06a60: 38 84 b3 b0 addi r4,r4,-19536 <== NOT EXECUTED ffc06a64: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc06a68: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06a6c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06a70: 4e 80 04 21 bctrl <== NOT EXECUTED } } ffc06a74: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc06a78: 81 81 00 18 lwz r12,24(r1) <== NOT EXECUTED ffc06a7c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06a80: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc06a84: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc06a88: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc06a8c: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc06a90: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc06a94: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc06a98: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc06a9c: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc06aa0: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc06aa4: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc06aa8: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc06aac: 4e 80 00 20 blr <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); ffc06ab0: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06ab4: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06ab8: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06abc: 38 84 b3 a0 addi r4,r4,-19552 <== NOT EXECUTED ffc06ac0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06ac4: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06ac8: 4e 80 04 21 bctrl <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); } } ffc06acc: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc06ad0: 81 81 00 18 lwz r12,24(r1) <== NOT EXECUTED ffc06ad4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06ad8: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc06adc: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc06ae0: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc06ae4: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc06ae8: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc06aec: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc06af0: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc06af4: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc06af8: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc06afc: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc06b00: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc06b04: 4e 80 00 20 blr <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { ffc06b08: 3f 60 00 00 lis r27,0 <== NOT EXECUTED ffc06b0c: 3b 7b 35 e8 addi r27,r27,13800 <== NOT EXECUTED ffc06b10: 80 1b 00 04 lwz r0,4(r27) <== NOT EXECUTED ffc06b14: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06b18: 41 be ff 5c beq- cr7,ffc06a74 <== 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); ffc06b1c: 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) { ffc06b20: 3b 20 00 00 li r25,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); ffc06b24: 83 9b 00 00 lwz r28,0(r27) <== NOT EXECUTED ffc06b28: 2e 19 00 00 cmpwi cr4,r25,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); ffc06b2c: 3a f7 00 80 addi r23,r23,128 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc06b30: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); ffc06b34: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED ffc06b38: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc06b3c: 4b ff fd ad bl ffc068e8 <== NOT EXECUTED if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc06b40: 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 ) ffc06b44: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED ffc06b48: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED ffc06b4c: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc06b50: 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 ) ffc06b54: 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) { ffc06b58: 3b 00 00 00 li r24,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 ) ffc06b5c: 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 ) { ffc06b60: 40 92 fe 7c bne+ cr4,ffc069dc <== 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 ); ffc06b64: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06b68: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06b6c: 38 84 b3 70 addi r4,r4,-19600 <== NOT EXECUTED ffc06b70: 7f 49 03 a6 mtctr r26 <== NOT EXECUTED ffc06b74: 38 a0 ff ff li r5,-1 <== NOT EXECUTED ffc06b78: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06b7c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06b80: 4b ff fe 94 b ffc06a14 <== NOT EXECUTED ffc068e8 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; ffc068e8: 39 23 00 80 addi r9,r3,128 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) ffc068ec: 54 8b 00 3a rlwinm r11,r4,0,0,29 <== NOT EXECUTED ffc068f0: 7d 69 5a 14 add r11,r9,r11 <== NOT EXECUTED ffc068f4: 7f 89 58 40 cmplw cr7,r9,r11 <== NOT EXECUTED ffc068f8: 40 9c 00 30 bge- cr7,ffc06928 <== NOT EXECUTED if (*base != U32_PATTERN) ffc068fc: 81 43 00 80 lwz r10,128(r3) <== NOT EXECUTED ffc06900: 6d 40 5a 5a xoris r0,r10,23130 <== NOT EXECUTED ffc06904: 2f 80 a5 a5 cmpwi cr7,r0,-23131 <== NOT EXECUTED ffc06908: 41 9e 00 14 beq- cr7,ffc0691c <== NOT EXECUTED ffc0690c: 48 00 00 24 b ffc06930 <== NOT EXECUTED ffc06910: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc06914: 7f 80 50 00 cmpw cr7,r0,r10 <== NOT EXECUTED ffc06918: 40 9e 00 18 bne- cr7,ffc06930 <== 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++) ffc0691c: 39 29 00 04 addi r9,r9,4 <== NOT EXECUTED ffc06920: 7f 8b 48 40 cmplw cr7,r11,r9 <== NOT EXECUTED ffc06924: 41 9d ff ec bgt+ cr7,ffc06910 <== NOT EXECUTED ffc06928: 38 60 00 00 li r3,0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } ffc0692c: 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; ffc06930: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc06934: 4e 80 00 20 blr <== NOT EXECUTED ffc09a18 <_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 ) { ffc09a18: 94 21 ff f0 stwu r1,-16(r1) ffc09a1c: 7c 08 02 a6 mflr r0 ffc09a20: 93 e1 00 0c stw r31,12(r1) ffc09a24: 7c 7f 1b 78 mr r31,r3 ffc09a28: 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)) ) { ffc09a2c: 48 00 1c 11 bl ffc0b63c <_Thread_queue_Dequeue> ffc09a30: 2f 83 00 00 cmpwi cr7,r3,0 ffc09a34: 38 60 00 00 li r3,0 ffc09a38: 41 9e 00 18 beq- cr7,ffc09a50 <_CORE_semaphore_Surrender+0x38> status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } ffc09a3c: 80 01 00 14 lwz r0,20(r1) ffc09a40: 83 e1 00 0c lwz r31,12(r1) ffc09a44: 38 21 00 10 addi r1,r1,16 ffc09a48: 7c 08 03 a6 mtlr r0 ffc09a4c: 4e 80 00 20 blr static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09a50: 7c 00 00 a6 mfmsr r0 ffc09a54: 7d 30 42 a6 mfsprg r9,0 ffc09a58: 7c 09 48 78 andc r9,r0,r9 ffc09a5c: 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 ) ffc09a60: 81 3f 00 48 lwz r9,72(r31) ffc09a64: 38 60 00 04 li r3,4 ffc09a68: 81 7f 00 40 lwz r11,64(r31) ffc09a6c: 7f 89 58 40 cmplw cr7,r9,r11 ffc09a70: 41 9c 00 1c blt- cr7,ffc09a8c <_CORE_semaphore_Surrender+0x74> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09a74: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } ffc09a78: 80 01 00 14 lwz r0,20(r1) ffc09a7c: 83 e1 00 0c lwz r31,12(r1) ffc09a80: 38 21 00 10 addi r1,r1,16 ffc09a84: 7c 08 03 a6 mtlr r0 ffc09a88: 4e 80 00 20 blr #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1; ffc09a8c: 39 29 00 01 addi r9,r9,1 ffc09a90: 91 3f 00 48 stw r9,72(r31) ffc09a94: 38 60 00 00 li r3,0 ffc09a98: 7c 00 01 24 mtmsr r0 ffc09a9c: 4b ff ff dc b ffc09a78 <_CORE_semaphore_Surrender+0x60> ffc0abd8 <_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; ffc0abd8: 2f 85 00 00 cmpwi cr7,r5,0 bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { ffc0abdc: 94 21 ff 98 stwu r1,-104(r1) ffc0abe0: 7c 08 02 a6 mflr r0 ffc0abe4: 93 21 00 4c stw r25,76(r1) ffc0abe8: 90 01 00 6c stw r0,108(r1) ffc0abec: 93 41 00 50 stw r26,80(r1) ffc0abf0: 93 61 00 54 stw r27,84(r1) ffc0abf4: 93 81 00 58 stw r28,88(r1) ffc0abf8: 7c 9c 23 78 mr r28,r4 ffc0abfc: 93 c1 00 60 stw r30,96(r1) ffc0ac00: 93 e1 00 64 stw r31,100(r1) ffc0ac04: 7c 7f 1b 78 mr r31,r3 ffc0ac08: 91 c1 00 20 stw r14,32(r1) ffc0ac0c: 91 e1 00 24 stw r15,36(r1) ffc0ac10: 92 01 00 28 stw r16,40(r1) ffc0ac14: 92 21 00 2c stw r17,44(r1) ffc0ac18: 92 41 00 30 stw r18,48(r1) ffc0ac1c: 92 61 00 34 stw r19,52(r1) ffc0ac20: 92 81 00 38 stw r20,56(r1) ffc0ac24: 92 a1 00 3c stw r21,60(r1) ffc0ac28: 92 c1 00 40 stw r22,64(r1) ffc0ac2c: 92 e1 00 44 stw r23,68(r1) ffc0ac30: 93 01 00 48 stw r24,72(r1) ffc0ac34: 93 a1 00 5c stw r29,92(r1) uintptr_t const page_size = heap->page_size; ffc0ac38: 83 63 00 10 lwz r27,16(r3) uintptr_t const min_block_size = heap->min_block_size; ffc0ac3c: 83 43 00 14 lwz r26,20(r3) Heap_Block *const last_block = heap->last_block; ffc0ac40: 83 23 00 24 lwz r25,36(r3) Heap_Block *block = heap->first_block; ffc0ac44: 83 c3 00 20 lwz r30,32(r3) Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; ffc0ac48: 40 9e 00 7c bne- cr7,ffc0acc4 <_Heap_Walk+0xec> ffc0ac4c: 3d 20 ff c1 lis r9,-63 ffc0ac50: 39 29 ab d4 addi r9,r9,-21548 ffc0ac54: 91 21 00 18 stw r9,24(r1) if ( !_System_state_Is_up( _System_state_Get() ) ) { ffc0ac58: 3d 20 00 00 lis r9,0 ffc0ac5c: 80 09 27 d4 lwz r0,10196(r9) ffc0ac60: 2f 80 00 03 cmpwi cr7,r0,3 ffc0ac64: 41 9e 00 7c beq- cr7,ffc0ace0 <_Heap_Walk+0x108> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { ffc0ac68: 38 60 00 01 li r3,1 block = next_block; } return true; } ffc0ac6c: 80 01 00 6c lwz r0,108(r1) ffc0ac70: 81 c1 00 20 lwz r14,32(r1) ffc0ac74: 7c 08 03 a6 mtlr r0 ffc0ac78: 81 e1 00 24 lwz r15,36(r1) ffc0ac7c: 82 01 00 28 lwz r16,40(r1) ffc0ac80: 82 21 00 2c lwz r17,44(r1) ffc0ac84: 82 41 00 30 lwz r18,48(r1) ffc0ac88: 82 61 00 34 lwz r19,52(r1) ffc0ac8c: 82 81 00 38 lwz r20,56(r1) ffc0ac90: 82 a1 00 3c lwz r21,60(r1) ffc0ac94: 82 c1 00 40 lwz r22,64(r1) ffc0ac98: 82 e1 00 44 lwz r23,68(r1) ffc0ac9c: 83 01 00 48 lwz r24,72(r1) ffc0aca0: 83 21 00 4c lwz r25,76(r1) ffc0aca4: 83 41 00 50 lwz r26,80(r1) ffc0aca8: 83 61 00 54 lwz r27,84(r1) ffc0acac: 83 81 00 58 lwz r28,88(r1) ffc0acb0: 83 a1 00 5c lwz r29,92(r1) ffc0acb4: 83 c1 00 60 lwz r30,96(r1) ffc0acb8: 83 e1 00 64 lwz r31,100(r1) ffc0acbc: 38 21 00 68 addi r1,r1,104 ffc0acc0: 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; ffc0acc4: 3d 20 ff c1 lis r9,-63 ffc0acc8: 39 29 b1 f0 addi r9,r9,-19984 ffc0accc: 91 21 00 18 stw r9,24(r1) if ( !_System_state_Is_up( _System_state_Get() ) ) { ffc0acd0: 3d 20 00 00 lis r9,0 ffc0acd4: 80 09 27 d4 lwz r0,10196(r9) ffc0acd8: 2f 80 00 03 cmpwi cr7,r0,3 ffc0acdc: 40 9e ff 8c bne+ cr7,ffc0ac68 <_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)( ffc0ace0: 80 1f 00 0c lwz r0,12(r31) ffc0ace4: 3c a0 ff c2 lis r5,-62 ffc0ace8: 81 1f 00 18 lwz r8,24(r31) ffc0acec: 38 a5 0e c0 addi r5,r5,3776 ffc0acf0: 81 3f 00 1c lwz r9,28(r31) ffc0acf4: 7f 83 e3 78 mr r3,r28 ffc0acf8: 81 7f 00 08 lwz r11,8(r31) ffc0acfc: 38 80 00 00 li r4,0 ffc0ad00: 90 01 00 10 stw r0,16(r1) ffc0ad04: 7f 66 db 78 mr r6,r27 ffc0ad08: 7f 47 d3 78 mr r7,r26 ffc0ad0c: 80 01 00 18 lwz r0,24(r1) ffc0ad10: 7f ca f3 78 mr r10,r30 ffc0ad14: 91 61 00 0c stw r11,12(r1) ffc0ad18: 7c 09 03 a6 mtctr r0 ffc0ad1c: 93 21 00 08 stw r25,8(r1) ffc0ad20: 4c c6 31 82 crclr 4*cr1+eq ffc0ad24: 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 ) { ffc0ad28: 2f 9b 00 00 cmpwi cr7,r27,0 ffc0ad2c: 41 9e 00 d0 beq- cr7,ffc0adfc <_Heap_Walk+0x224> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { ffc0ad30: 73 67 00 07 andi. r7,r27,7 ffc0ad34: 40 82 00 f0 bne- ffc0ae24 <_Heap_Walk+0x24c> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { ffc0ad38: 7c 1a db 96 divwu r0,r26,r27 ffc0ad3c: 7c 00 d9 d6 mullw r0,r0,r27 ffc0ad40: 7f 9a 00 00 cmpw cr7,r26,r0 ffc0ad44: 40 9e 00 f4 bne- cr7,ffc0ae38 <_Heap_Walk+0x260> ); return false; } if ( ffc0ad48: 38 1e 00 08 addi r0,r30,8 ffc0ad4c: 7d 20 db 96 divwu r9,r0,r27 ffc0ad50: 7d 29 d9 d6 mullw r9,r9,r27 ffc0ad54: 7f 80 48 00 cmpw cr7,r0,r9 ffc0ad58: 40 9e 00 f4 bne- cr7,ffc0ae4c <_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; ffc0ad5c: 83 1e 00 04 lwz r24,4(r30) ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { ffc0ad60: 73 00 00 01 andi. r0,r24,1 ffc0ad64: 41 82 00 fc beq- ffc0ae60 <_Heap_Walk+0x288> ); return false; } if ( first_block->prev_size != page_size ) { ffc0ad68: 80 de 00 00 lwz r6,0(r30) ffc0ad6c: 7f 9b 30 00 cmpw cr7,r27,r6 ffc0ad70: 40 9e 00 60 bne- cr7,ffc0add0 <_Heap_Walk+0x1f8> ); return false; } if ( _Heap_Is_free( last_block ) ) { ffc0ad74: 81 39 00 04 lwz r9,4(r25) ffc0ad78: 55 29 00 3c rlwinm r9,r9,0,0,30 ffc0ad7c: 7d 39 4a 14 add r9,r25,r9 ffc0ad80: 81 29 00 04 lwz r9,4(r9) ffc0ad84: 71 27 00 01 andi. r7,r9,1 ffc0ad88: 41 82 04 28 beq- ffc0b1b0 <_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; ffc0ad8c: 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; ffc0ad90: 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 ) { ffc0ad94: 7f 9f 30 00 cmpw cr7,r31,r6 ffc0ad98: 41 9e 01 78 beq- cr7,ffc0af10 <_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; ffc0ad9c: 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 ffc0ada0: 7f 8a 30 40 cmplw cr7,r10,r6 ffc0ada4: 40 9d 00 cc ble- cr7,ffc0ae70 <_Heap_Walk+0x298> if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( ffc0ada8: 3c a0 ff c2 lis r5,-62 ffc0adac: 7f 83 e3 78 mr r3,r28 ffc0adb0: 38 a5 10 54 addi r5,r5,4180 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( ffc0adb4: 80 01 00 18 lwz r0,24(r1) ffc0adb8: 38 80 00 01 li r4,1 ffc0adbc: 7c 09 03 a6 mtctr r0 ffc0adc0: 4c c6 31 82 crclr 4*cr1+eq ffc0adc4: 4e 80 04 21 bctrl ffc0adc8: 38 60 00 00 li r3,0 ffc0adcc: 4b ff fe a0 b ffc0ac6c <_Heap_Walk+0x94> return false; } if ( first_block->prev_size != page_size ) { (*printer)( ffc0add0: 3c a0 ff c2 lis r5,-62 ffc0add4: 7f 83 e3 78 mr r3,r28 ffc0add8: 38 a5 10 10 addi r5,r5,4112 ffc0addc: 7f 67 db 78 mr r7,r27 return false; } if ( next_block_begin <= block_begin ) { (*printer)( ffc0ade0: 80 01 00 18 lwz r0,24(r1) ffc0ade4: 38 80 00 01 li r4,1 ffc0ade8: 7c 09 03 a6 mtctr r0 ffc0adec: 4c c6 31 82 crclr 4*cr1+eq ffc0adf0: 4e 80 04 21 bctrl ffc0adf4: 38 60 00 00 li r3,0 "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; ffc0adf8: 4b ff fe 74 b ffc0ac6c <_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" ); ffc0adfc: 3c a0 ff c2 lis r5,-62 ffc0ae00: 7f 83 e3 78 mr r3,r28 ffc0ae04: 38 a5 0f 54 addi r5,r5,3924 return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( ffc0ae08: 80 01 00 18 lwz r0,24(r1) ffc0ae0c: 38 80 00 01 li r4,1 ffc0ae10: 7c 09 03 a6 mtctr r0 ffc0ae14: 4c c6 31 82 crclr 4*cr1+eq ffc0ae18: 4e 80 04 21 bctrl ffc0ae1c: 38 60 00 00 li r3,0 ffc0ae20: 4b ff fe 4c b ffc0ac6c <_Heap_Walk+0x94> return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( ffc0ae24: 3c a0 ff c2 lis r5,-62 ffc0ae28: 7f 83 e3 78 mr r3,r28 ffc0ae2c: 38 a5 0f 68 addi r5,r5,3944 ffc0ae30: 7f 66 db 78 mr r6,r27 ffc0ae34: 4b ff ff 80 b ffc0adb4 <_Heap_Walk+0x1dc> return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( ffc0ae38: 3c a0 ff c2 lis r5,-62 ffc0ae3c: 7f 83 e3 78 mr r3,r28 ffc0ae40: 38 a5 0f 88 addi r5,r5,3976 ffc0ae44: 7f 46 d3 78 mr r6,r26 ffc0ae48: 4b ff ff 6c b ffc0adb4 <_Heap_Walk+0x1dc> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( ffc0ae4c: 3c a0 ff c2 lis r5,-62 ffc0ae50: 7f 83 e3 78 mr r3,r28 ffc0ae54: 38 a5 0f ac addi r5,r5,4012 ffc0ae58: 7f c6 f3 78 mr r6,r30 ffc0ae5c: 4b ff ff 58 b ffc0adb4 <_Heap_Walk+0x1dc> return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( ffc0ae60: 3c a0 ff c2 lis r5,-62 ffc0ae64: 7f 83 e3 78 mr r3,r28 ffc0ae68: 38 a5 0f e0 addi r5,r5,4064 ffc0ae6c: 4b ff ff 9c b ffc0ae08 <_Heap_Walk+0x230> && (uintptr_t) block <= (uintptr_t) heap->last_block; ffc0ae70: 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 ffc0ae74: 7f 88 30 40 cmplw cr7,r8,r6 ffc0ae78: 41 bc ff 30 blt- cr7,ffc0ada8 <_Heap_Walk+0x1d0> ); return false; } if ( ffc0ae7c: 39 26 00 08 addi r9,r6,8 ffc0ae80: 7d 69 2b 96 divwu r11,r9,r5 ffc0ae84: 7d 6b 29 d6 mullw r11,r11,r5 ffc0ae88: 7f 89 58 00 cmpw cr7,r9,r11 ffc0ae8c: 40 9e 03 34 bne- cr7,ffc0b1c0 <_Heap_Walk+0x5e8> ); return false; } if ( _Heap_Is_used( free_block ) ) { ffc0ae90: 81 26 00 04 lwz r9,4(r6) ffc0ae94: 55 29 00 3c rlwinm r9,r9,0,0,30 ffc0ae98: 7d 26 4a 14 add r9,r6,r9 ffc0ae9c: 81 29 00 04 lwz r9,4(r9) ffc0aea0: 71 27 00 01 andi. r7,r9,1 ffc0aea4: 40 82 03 3c bne- ffc0b1e0 <_Heap_Walk+0x608> ); return false; } if ( free_block->prev != prev_block ) { ffc0aea8: 80 e6 00 0c lwz r7,12(r6) ffc0aeac: 7f 9f 38 00 cmpw cr7,r31,r7 ffc0aeb0: 41 be 00 48 beq+ cr7,ffc0aef8 <_Heap_Walk+0x320> ffc0aeb4: 48 00 03 1c b ffc0b1d0 <_Heap_Walk+0x5f8> <== NOT EXECUTED ffc0aeb8: 41 b8 fe f0 blt- cr6,ffc0ada8 <_Heap_Walk+0x1d0> ); return false; } if ( ffc0aebc: 39 66 00 08 addi r11,r6,8 ffc0aec0: 41 a4 fe e8 blt- cr1,ffc0ada8 <_Heap_Walk+0x1d0> ffc0aec4: 7c eb 2b 96 divwu r7,r11,r5 ffc0aec8: 7c e7 29 d6 mullw r7,r7,r5 ffc0aecc: 7f 8b 38 00 cmpw cr7,r11,r7 ffc0aed0: 40 9e 02 f0 bne- cr7,ffc0b1c0 <_Heap_Walk+0x5e8> ); return false; } if ( _Heap_Is_used( free_block ) ) { ffc0aed4: 81 66 00 04 lwz r11,4(r6) ffc0aed8: 55 6b 00 3c rlwinm r11,r11,0,0,30 ffc0aedc: 7d 6b 32 14 add r11,r11,r6 ffc0aee0: 81 6b 00 04 lwz r11,4(r11) ffc0aee4: 71 67 00 01 andi. r7,r11,1 ffc0aee8: 40 82 02 f8 bne- ffc0b1e0 <_Heap_Walk+0x608> ); return false; } if ( free_block->prev != prev_block ) { ffc0aeec: 80 e6 00 0c lwz r7,12(r6) ffc0aef0: 7f 87 48 00 cmpw cr7,r7,r9 ffc0aef4: 40 9e 02 dc bne- cr7,ffc0b1d0 <_Heap_Walk+0x5f8> (*printer)( ffc0aef8: 7c c9 33 78 mr r9,r6 return false; } prev_block = free_block; free_block = free_block->next; ffc0aefc: 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 ) { ffc0af00: 7f 9f 30 00 cmpw cr7,r31,r6 ffc0af04: 7f 06 50 40 cmplw cr6,r6,r10 ffc0af08: 7c 88 30 40 cmplw cr1,r8,r6 ffc0af0c: 40 9e ff ac bne+ cr7,ffc0aeb8 <_Heap_Walk+0x2e0> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { ffc0af10: 7f 99 f0 00 cmpw cr7,r25,r30 ffc0af14: 41 be fd 54 beq- cr7,ffc0ac68 <_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)( ffc0af18: 3e 60 ff c2 lis r19,-62 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0af1c: 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)( ffc0af20: 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)" : "") ffc0af24: 3d e0 ff c2 lis r15,-62 ffc0af28: 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)( ffc0af2c: 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)" : ""), ffc0af30: 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; ffc0af34: 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)( ffc0af38: 3a 73 10 f4 addi r19,r19,4340 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0af3c: 3a 94 11 0c addi r20,r20,4364 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)( ffc0af40: 3a 52 12 24 addi r18,r18,4644 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0af44: 39 ef 12 18 addi r15,r15,4632 ffc0af48: 3a b5 12 88 addi r21,r21,4744 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)( ffc0af4c: 3a 31 12 0c addi r17,r17,4620 "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)" : ""), ffc0af50: 39 ce 12 00 addi r14,r14,4608 ffc0af54: 3a 10 11 f4 addi r16,r16,4596 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 ) { ffc0af58: 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; ffc0af5c: 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); ffc0af60: 7f b8 f2 14 add r29,r24,r30 ffc0af64: 41 9e 00 4c beq- cr7,ffc0afb0 <_Heap_Walk+0x3d8> (*printer)( ffc0af68: 80 01 00 18 lwz r0,24(r1) ffc0af6c: 7f 83 e3 78 mr r3,r28 ffc0af70: 38 80 00 00 li r4,0 ffc0af74: 7c 09 03 a6 mtctr r0 ffc0af78: 7e 65 9b 78 mr r5,r19 ffc0af7c: 7f c6 f3 78 mr r6,r30 ffc0af80: 7f 07 c3 78 mr r7,r24 ffc0af84: 4c c6 31 82 crclr 4*cr1+eq ffc0af88: 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 ffc0af8c: 80 1f 00 20 lwz r0,32(r31) ffc0af90: 7f 80 e8 40 cmplw cr7,r0,r29 ffc0af94: 40 9d 00 50 ble- cr7,ffc0afe4 <_Heap_Walk+0x40c> block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( ffc0af98: 3c a0 ff c2 lis r5,-62 ffc0af9c: 7f 83 e3 78 mr r3,r28 ffc0afa0: 38 a5 11 34 addi r5,r5,4404 ffc0afa4: 7f c6 f3 78 mr r6,r30 ffc0afa8: 7f a7 eb 78 mr r7,r29 ffc0afac: 4b ff fe 34 b ffc0ade0 <_Heap_Walk+0x208> "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0afb0: 80 01 00 18 lwz r0,24(r1) ffc0afb4: 7f 83 e3 78 mr r3,r28 ffc0afb8: 38 80 00 00 li r4,0 ffc0afbc: 81 1e 00 00 lwz r8,0(r30) ffc0afc0: 7c 09 03 a6 mtctr r0 ffc0afc4: 7e 85 a3 78 mr r5,r20 ffc0afc8: 7f c6 f3 78 mr r6,r30 ffc0afcc: 7f 07 c3 78 mr r7,r24 ffc0afd0: 4c c6 31 82 crclr 4*cr1+eq ffc0afd4: 4e 80 04 21 bctrl ffc0afd8: 80 1f 00 20 lwz r0,32(r31) ffc0afdc: 7f 80 e8 40 cmplw cr7,r0,r29 ffc0afe0: 41 bd ff b8 bgt- cr7,ffc0af98 <_Heap_Walk+0x3c0> ffc0afe4: 80 1f 00 24 lwz r0,36(r31) ffc0afe8: 7f 80 e8 40 cmplw cr7,r0,r29 ffc0afec: 41 bc ff ac blt- cr7,ffc0af98 <_Heap_Walk+0x3c0> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { ffc0aff0: 7c 18 db 96 divwu r0,r24,r27 ffc0aff4: 7c 00 d9 d6 mullw r0,r0,r27 ffc0aff8: 7f 98 00 00 cmpw cr7,r24,r0 ffc0affc: 40 9e 01 50 bne- cr7,ffc0b14c <_Heap_Walk+0x574> ); return false; } if ( block_size < min_block_size ) { ffc0b000: 7f 9a c0 40 cmplw cr7,r26,r24 ffc0b004: 41 9d 01 60 bgt- cr7,ffc0b164 <_Heap_Walk+0x58c> ); return false; } if ( next_block_begin <= block_begin ) { ffc0b008: 7f 9e e8 40 cmplw cr7,r30,r29 ffc0b00c: 40 9c 01 8c bge- cr7,ffc0b198 <_Heap_Walk+0x5c0> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { ffc0b010: 80 1d 00 04 lwz r0,4(r29) ffc0b014: 70 07 00 01 andi. r7,r0,1 ffc0b018: 40 82 00 b0 bne- ffc0b0c8 <_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; ffc0b01c: 80 1f 00 08 lwz r0,8(r31) ffc0b020: 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)( ffc0b024: 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; ffc0b028: 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; ffc0b02c: 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; ffc0b030: 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; ffc0b034: 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); ffc0b038: 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; ffc0b03c: 41 9e 00 10 beq- cr7,ffc0b04c <_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)" : ""), ffc0b040: 7f 87 f8 00 cmpw cr7,r7,r31 ffc0b044: 7e a8 ab 78 mr r8,r21 ffc0b048: 41 9e 00 fc beq- cr7,ffc0b144 <_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)( ffc0b04c: 81 3e 00 08 lwz r9,8(r30) ffc0b050: 7e 2a 8b 78 mr r10,r17 ffc0b054: 7f 80 48 00 cmpw cr7,r0,r9 ffc0b058: 41 9e 00 10 beq- cr7,ffc0b068 <_Heap_Walk+0x490> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0b05c: 7f 89 f8 00 cmpw cr7,r9,r31 ffc0b060: 7e aa ab 78 mr r10,r21 ffc0b064: 41 9e 00 d8 beq- cr7,ffc0b13c <_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)( ffc0b068: 80 01 00 18 lwz r0,24(r1) ffc0b06c: 7f 83 e3 78 mr r3,r28 ffc0b070: 38 80 00 00 li r4,0 ffc0b074: 7e 45 93 78 mr r5,r18 ffc0b078: 7c 09 03 a6 mtctr r0 ffc0b07c: 7f c6 f3 78 mr r6,r30 ffc0b080: 4c c6 31 82 crclr 4*cr1+eq ffc0b084: 4e 80 04 21 bctrl block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { ffc0b088: 81 17 00 00 lwz r8,0(r23) ffc0b08c: 7f 98 40 00 cmpw cr7,r24,r8 ffc0b090: 41 9e 00 50 beq- cr7,ffc0b0e0 <_Heap_Walk+0x508> (*printer)( ffc0b094: 80 01 00 18 lwz r0,24(r1) ffc0b098: 3c a0 ff c2 lis r5,-62 ffc0b09c: 7f 83 e3 78 mr r3,r28 ffc0b0a0: 38 a5 12 50 addi r5,r5,4688 ffc0b0a4: 7c 09 03 a6 mtctr r0 ffc0b0a8: 7f c6 f3 78 mr r6,r30 ffc0b0ac: 7f 07 c3 78 mr r7,r24 ffc0b0b0: 7e e9 bb 78 mr r9,r23 ffc0b0b4: 38 80 00 01 li r4,1 ffc0b0b8: 4c c6 31 82 crclr 4*cr1+eq ffc0b0bc: 4e 80 04 21 bctrl ffc0b0c0: 38 60 00 00 li r3,0 ffc0b0c4: 4b ff fb a8 b ffc0ac6c <_Heap_Walk+0x94> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { ffc0b0c8: 7f 99 e8 00 cmpw cr7,r25,r29 ffc0b0cc: 41 be fb 9c beq- cr7,ffc0ac68 <_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 ) { ffc0b0d0: 83 1d 00 04 lwz r24,4(r29) ffc0b0d4: 7f be eb 78 mr r30,r29 ffc0b0d8: 57 00 07 fe clrlwi r0,r24,31 ffc0b0dc: 4b ff fe 7c b ffc0af58 <_Heap_Walk+0x380> ); return false; } if ( !prev_used ) { ffc0b0e0: 72 c7 00 01 andi. r7,r22,1 ffc0b0e4: 41 82 00 44 beq- ffc0b128 <_Heap_Walk+0x550> ffc0b0e8: 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 ) { ffc0b0ec: 7f 89 f8 00 cmpw cr7,r9,r31 ffc0b0f0: 41 9e 00 24 beq- cr7,ffc0b114 <_Heap_Walk+0x53c> if ( free_block == block ) { ffc0b0f4: 7f 89 f0 00 cmpw cr7,r9,r30 ffc0b0f8: 40 be 00 0c bne+ cr7,ffc0b104 <_Heap_Walk+0x52c> ffc0b0fc: 4b ff ff cc b ffc0b0c8 <_Heap_Walk+0x4f0> ffc0b100: 41 ba ff c8 beq- cr6,ffc0b0c8 <_Heap_Walk+0x4f0> return true; } free_block = free_block->next; ffc0b104: 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 ) { ffc0b108: 7f 89 f8 00 cmpw cr7,r9,r31 if ( free_block == block ) { ffc0b10c: 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 ) { ffc0b110: 40 9e ff f0 bne+ cr7,ffc0b100 <_Heap_Walk+0x528> return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( ffc0b114: 3c a0 ff c2 lis r5,-62 ffc0b118: 7f 83 e3 78 mr r3,r28 ffc0b11c: 38 a5 12 bc addi r5,r5,4796 ffc0b120: 7f c6 f3 78 mr r6,r30 ffc0b124: 4b ff fc 90 b ffc0adb4 <_Heap_Walk+0x1dc> return false; } if ( !prev_used ) { (*printer)( ffc0b128: 3c a0 ff c2 lis r5,-62 ffc0b12c: 7f 83 e3 78 mr r3,r28 ffc0b130: 38 a5 12 8c addi r5,r5,4748 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( ffc0b134: 7f c6 f3 78 mr r6,r30 ffc0b138: 4b ff fc 7c b ffc0adb4 <_Heap_Walk+0x1dc> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0b13c: 7d ea 7b 78 mr r10,r15 ffc0b140: 4b ff ff 28 b ffc0b068 <_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)" : ""), ffc0b144: 7d c8 73 78 mr r8,r14 ffc0b148: 4b ff ff 04 b ffc0b04c <_Heap_Walk+0x474> return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( ffc0b14c: 3c a0 ff c2 lis r5,-62 ffc0b150: 7f 83 e3 78 mr r3,r28 ffc0b154: 38 a5 11 64 addi r5,r5,4452 ffc0b158: 7f c6 f3 78 mr r6,r30 ffc0b15c: 7f 07 c3 78 mr r7,r24 ffc0b160: 4b ff fc 80 b ffc0ade0 <_Heap_Walk+0x208> return false; } if ( block_size < min_block_size ) { (*printer)( ffc0b164: 80 01 00 18 lwz r0,24(r1) ffc0b168: 3c a0 ff c2 lis r5,-62 ffc0b16c: 7f 83 e3 78 mr r3,r28 ffc0b170: 38 a5 11 94 addi r5,r5,4500 ffc0b174: 7c 09 03 a6 mtctr r0 ffc0b178: 7f c6 f3 78 mr r6,r30 ffc0b17c: 7f 07 c3 78 mr r7,r24 ffc0b180: 7f 48 d3 78 mr r8,r26 ffc0b184: 38 80 00 01 li r4,1 ffc0b188: 4c c6 31 82 crclr 4*cr1+eq ffc0b18c: 4e 80 04 21 bctrl ffc0b190: 38 60 00 00 li r3,0 block, block_size, min_block_size ); return false; ffc0b194: 4b ff fa d8 b ffc0ac6c <_Heap_Walk+0x94> } if ( next_block_begin <= block_begin ) { (*printer)( ffc0b198: 3c a0 ff c2 lis r5,-62 ffc0b19c: 7f 83 e3 78 mr r3,r28 ffc0b1a0: 38 a5 11 c0 addi r5,r5,4544 ffc0b1a4: 7f c6 f3 78 mr r6,r30 ffc0b1a8: 7f a7 eb 78 mr r7,r29 ffc0b1ac: 4b ff fc 34 b ffc0ade0 <_Heap_Walk+0x208> return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( ffc0b1b0: 3c a0 ff c2 lis r5,-62 ffc0b1b4: 7f 83 e3 78 mr r3,r28 ffc0b1b8: 38 a5 10 3c addi r5,r5,4156 ffc0b1bc: 4b ff fc 4c b ffc0ae08 <_Heap_Walk+0x230> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( ffc0b1c0: 3c a0 ff c2 lis r5,-62 ffc0b1c4: 7f 83 e3 78 mr r3,r28 ffc0b1c8: 38 a5 10 74 addi r5,r5,4212 ffc0b1cc: 4b ff fb e8 b ffc0adb4 <_Heap_Walk+0x1dc> return false; } if ( free_block->prev != prev_block ) { (*printer)( ffc0b1d0: 3c a0 ff c2 lis r5,-62 ffc0b1d4: 7f 83 e3 78 mr r3,r28 ffc0b1d8: 38 a5 10 c0 addi r5,r5,4288 ffc0b1dc: 4b ff fc 04 b ffc0ade0 <_Heap_Walk+0x208> return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( ffc0b1e0: 3c a0 ff c2 lis r5,-62 ffc0b1e4: 7f 83 e3 78 mr r3,r28 ffc0b1e8: 38 a5 10 a4 addi r5,r5,4260 ffc0b1ec: 4b ff fb c8 b ffc0adb4 <_Heap_Walk+0x1dc> ffc0b1f0 <_Heap_Walk_print>: { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0b1f0: 94 21 ff 88 stwu r1,-120(r1) ffc0b1f4: 7c 08 02 a6 mflr r0 ffc0b1f8: 93 e1 00 74 stw r31,116(r1) ffc0b1fc: 90 01 00 7c stw r0,124(r1) ffc0b200: 7c 60 1b 78 mr r0,r3 ffc0b204: 90 c1 00 1c stw r6,28(r1) ffc0b208: 90 e1 00 20 stw r7,32(r1) ffc0b20c: 91 01 00 24 stw r8,36(r1) ffc0b210: 91 21 00 28 stw r9,40(r1) ffc0b214: 91 41 00 2c stw r10,44(r1) ffc0b218: 40 86 00 24 bne- cr1,ffc0b23c <_Heap_Walk_print+0x4c> ffc0b21c: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0b220: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0b224: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0b228: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0b22c: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0b230: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0b234: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0b238: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list ap; if ( error ) { ffc0b23c: 2f 84 00 00 cmpwi cr7,r4,0 { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0b240: 7c bf 2b 78 mr r31,r5 va_list ap; if ( error ) { ffc0b244: 40 9e 00 58 bne- cr7,ffc0b29c <_Heap_Walk_print+0xac> printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); ffc0b248: 3c 60 ff c2 lis r3,-62 ffc0b24c: 7c 04 03 78 mr r4,r0 ffc0b250: 38 63 12 f4 addi r3,r3,4852 ffc0b254: 4c c6 31 82 crclr 4*cr1+eq ffc0b258: 4b ff ad 7d bl ffc05fd4 } va_start( ap, fmt ); ffc0b25c: 38 00 00 03 li r0,3 ffc0b260: 98 01 00 08 stb r0,8(r1) ffc0b264: 38 00 00 00 li r0,0 vprintk( fmt, ap ); ffc0b268: 7f e3 fb 78 mr r3,r31 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b26c: 98 01 00 09 stb r0,9(r1) ffc0b270: 38 01 00 80 addi r0,r1,128 vprintk( fmt, ap ); ffc0b274: 38 81 00 08 addi r4,r1,8 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b278: 90 01 00 0c stw r0,12(r1) ffc0b27c: 38 01 00 10 addi r0,r1,16 ffc0b280: 90 01 00 10 stw r0,16(r1) vprintk( fmt, ap ); ffc0b284: 4b ff d0 85 bl ffc08308 va_end( ap ); } ffc0b288: 80 01 00 7c lwz r0,124(r1) ffc0b28c: 83 e1 00 74 lwz r31,116(r1) ffc0b290: 38 21 00 78 addi r1,r1,120 ffc0b294: 7c 08 03 a6 mtlr r0 ffc0b298: 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 ); ffc0b29c: 3c 60 ff c2 lis r3,-62 ffc0b2a0: 7c 04 03 78 mr r4,r0 ffc0b2a4: 38 63 12 e8 addi r3,r3,4840 ffc0b2a8: 4c c6 31 82 crclr 4*cr1+eq ffc0b2ac: 4b ff ad 29 bl ffc05fd4 } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b2b0: 38 00 00 03 li r0,3 ffc0b2b4: 98 01 00 08 stb r0,8(r1) ffc0b2b8: 38 00 00 00 li r0,0 vprintk( fmt, ap ); ffc0b2bc: 7f e3 fb 78 mr r3,r31 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b2c0: 98 01 00 09 stb r0,9(r1) ffc0b2c4: 38 01 00 80 addi r0,r1,128 vprintk( fmt, ap ); ffc0b2c8: 38 81 00 08 addi r4,r1,8 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b2cc: 90 01 00 0c stw r0,12(r1) ffc0b2d0: 38 01 00 10 addi r0,r1,16 ffc0b2d4: 90 01 00 10 stw r0,16(r1) vprintk( fmt, ap ); ffc0b2d8: 4b ff d0 31 bl ffc08308 va_end( ap ); } ffc0b2dc: 80 01 00 7c lwz r0,124(r1) ffc0b2e0: 83 e1 00 74 lwz r31,116(r1) ffc0b2e4: 38 21 00 78 addi r1,r1,120 ffc0b2e8: 7c 08 03 a6 mtlr r0 ffc0b2ec: 4e 80 00 20 blr ffc09f74 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc09f74: 94 21 ff f0 stwu r1,-16(r1) ffc09f78: 7c 08 02 a6 mflr r0 _Internal_errors_What_happened.the_source = the_source; ffc09f7c: 3d 60 00 00 lis r11,0 ffc09f80: 39 2b 2d 30 addi r9,r11,11568 void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc09f84: 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; ffc09f88: 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; ffc09f8c: 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 ) { ffc09f90: 93 e1 00 0c stw r31,12(r1) ffc09f94: 7c bf 2b 78 mr r31,r5 _Internal_errors_What_happened.the_source = the_source; ffc09f98: 90 6b 2d 30 stw r3,11568(r11) _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); ffc09f9c: 48 00 26 45 bl ffc0c5e0 <_User_extensions_Fatal> RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; ffc09fa0: 38 00 00 05 li r0,5 ffc09fa4: 3d 20 00 00 lis r9,0 _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); ffc09fa8: 7f e3 fb 78 mr r3,r31 ffc09fac: 90 09 27 d4 stw r0,10196(r9) ffc09fb0: 4b ff 9a 85 bl ffc03a34 <_BSP_Fatal_error> ffc09fb4: 48 00 00 00 b ffc09fb4 <_Internal_error_Occurred+0x40> <== NOT EXECUTED ffc0a0d0 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { ffc0a0d0: 94 21 ff b8 stwu r1,-72(r1) ffc0a0d4: 7c 08 02 a6 mflr r0 ffc0a0d8: 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 ) ffc0a0dc: 81 63 00 34 lwz r11,52(r3) */ void _Objects_Extend_information( Objects_Information *information ) { ffc0a0e0: 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 ) ffc0a0e4: 2f 8b 00 00 cmpwi cr7,r11,0 */ void _Objects_Extend_information( Objects_Information *information ) { ffc0a0e8: 93 e1 00 44 stw r31,68(r1) ffc0a0ec: 7c 7f 1b 78 mr r31,r3 ffc0a0f0: 92 a1 00 1c stw r21,28(r1) ffc0a0f4: 92 c1 00 20 stw r22,32(r1) ffc0a0f8: 92 e1 00 24 stw r23,36(r1) ffc0a0fc: 93 01 00 28 stw r24,40(r1) ffc0a100: 93 21 00 2c stw r25,44(r1) ffc0a104: 93 41 00 30 stw r26,48(r1) ffc0a108: 93 61 00 34 stw r27,52(r1) ffc0a10c: 93 81 00 38 stw r28,56(r1) ffc0a110: 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 ); ffc0a114: a3 a3 00 0a lhz r29,10(r3) index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) ffc0a118: 41 9e 02 9c beq- cr7,ffc0a3b4 <_Objects_Extend_information+0x2e4> block_count = 0; else { block_count = information->maximum / information->allocation_size; ffc0a11c: a3 23 00 10 lhz r25,16(r3) ffc0a120: a1 23 00 14 lhz r9,20(r3) ffc0a124: 7e b9 4b 96 divwu r21,r25,r9 for ( ; block < block_count; block++ ) { ffc0a128: 2f 95 00 00 cmpwi cr7,r21,0 ffc0a12c: 41 9e 02 a0 beq- cr7,ffc0a3cc <_Objects_Extend_information+0x2fc> if ( information->object_blocks[ block ] == NULL ) ffc0a130: 80 0b 00 00 lwz r0,0(r11) ffc0a134: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a138: 41 9e 02 94 beq- cr7,ffc0a3cc <_Objects_Extend_information+0x2fc> ffc0a13c: 7d 2a 4b 78 mr r10,r9 ffc0a140: 7e a9 03 a6 mtctr r21 ffc0a144: 7f be eb 78 mr r30,r29 ffc0a148: 3b 60 00 00 li r27,0 ffc0a14c: 48 00 00 10 b ffc0a15c <_Objects_Extend_information+0x8c> ffc0a150: 7c 0b 00 2e lwzx r0,r11,r0 ffc0a154: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a158: 41 9e 00 14 beq- cr7,ffc0a16c <_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++ ) { ffc0a15c: 3b 7b 00 01 addi r27,r27,1 if ( information->object_blocks[ block ] == NULL ) ffc0a160: 57 60 10 3a rlwinm r0,r27,2,0,29 break; else index_base += information->allocation_size; ffc0a164: 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++ ) { ffc0a168: 42 00 ff e8 bdnz+ ffc0a150 <_Objects_Extend_information+0x80> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; ffc0a16c: 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 ) { ffc0a170: 2b 99 ff ff cmplwi cr7,r25,65535 ffc0a174: 41 9d 01 b8 bgt- cr7,ffc0a32c <_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 ) { ffc0a178: 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; ffc0a17c: 80 7f 00 18 lwz r3,24(r31) if ( information->auto_extend ) { ffc0a180: 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; ffc0a184: 7c 6a 19 d6 mullw r3,r10,r3 if ( information->auto_extend ) { ffc0a188: 40 9e 01 e0 bne- cr7,ffc0a368 <_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 ); ffc0a18c: 48 00 2a 71 bl ffc0cbfc <_Workspace_Allocate_or_fatal_error> ffc0a190: 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 ) { ffc0a194: a0 1f 00 10 lhz r0,16(r31) ffc0a198: 7f 9e 00 40 cmplw cr7,r30,r0 ffc0a19c: 41 9c 01 08 blt- cr7,ffc0a2a4 <_Objects_Extend_information+0x1d4> */ /* * Up the block count and maximum */ block_count++; ffc0a1a0: 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 ); ffc0a1a4: 1c 7a 00 03 mulli r3,r26,3 ffc0a1a8: 7c 79 1a 14 add r3,r25,r3 ffc0a1ac: 7c 63 ea 14 add r3,r3,r29 ffc0a1b0: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc0a1b4: 48 00 2a 91 bl ffc0cc44 <_Workspace_Allocate> if ( !object_blocks ) { ffc0a1b8: 7c 76 1b 79 mr. r22,r3 ffc0a1bc: 41 82 02 20 beq- ffc0a3dc <_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 ) { ffc0a1c0: a0 1f 00 10 lhz r0,16(r31) } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( ffc0a1c4: 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); ffc0a1c8: 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 ) { ffc0a1cc: 7f 9d 00 40 cmplw cr7,r29,r0 ffc0a1d0: 7f 58 d2 14 add r26,r24,r26 ffc0a1d4: 41 9c 01 a4 blt- cr7,ffc0a378 <_Objects_Extend_information+0x2a8> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { ffc0a1d8: 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, ffc0a1dc: 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++ ) { ffc0a1e0: 56 b7 10 3a rlwinm r23,r21,2,0,29 ffc0a1e4: 41 9e 00 20 beq- cr7,ffc0a204 <_Objects_Extend_information+0x134> local_table[ index ] = NULL; ffc0a1e8: 7f a9 03 a6 mtctr r29 ffc0a1ec: 38 00 00 00 li r0,0 ffc0a1f0: 55 2b 10 3a rlwinm r11,r9,2,0,29 ffc0a1f4: 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++ ) { ffc0a1f8: 39 29 00 01 addi r9,r9,1 ffc0a1fc: 42 00 ff f4 bdnz+ ffc0a1f0 <_Objects_Extend_information+0x120> ffc0a200: 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 ); ffc0a204: a1 7f 00 14 lhz r11,20(r31) } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc0a208: 38 00 00 00 li r0,0 inactive_per_block[block_count] = 0; ffc0a20c: 7c 18 b9 2e stwx r0,r24,r23 for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc0a210: 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 ; ffc0a214: 7f 9e 58 40 cmplw cr7,r30,r11 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc0a218: 7c 16 b9 2e stwx r0,r22,r23 inactive_per_block[block_count] = 0; for ( index=index_base ; ffc0a21c: 40 9c 00 30 bge- cr7,ffc0a24c <_Objects_Extend_information+0x17c> ffc0a220: 38 1e 00 01 addi r0,r30,1 ffc0a224: 7f 80 58 40 cmplw cr7,r0,r11 ffc0a228: 57 c9 10 3a rlwinm r9,r30,2,0,29 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; ffc0a22c: 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 ; ffc0a230: 7d 3a 4a 14 add r9,r26,r9 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; ffc0a234: 7d 69 03 a6 mtctr r11 ffc0a238: 38 00 00 00 li r0,0 ffc0a23c: 41 9d 01 ac bgt- cr7,ffc0a3e8 <_Objects_Extend_information+0x318> ffc0a240: 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++ ) { ffc0a244: 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 ; ffc0a248: 42 00 ff f8 bdnz+ ffc0a240 <_Objects_Extend_information+0x170> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a24c: 7c 00 00 a6 mfmsr r0 ffc0a250: 7d 30 42 a6 mfsprg r9,0 ffc0a254: 7c 09 48 78 andc r9,r0,r9 ffc0a258: 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( ffc0a25c: 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; ffc0a260: 57 39 04 3e clrlwi r25,r25,16 information->maximum_id = _Objects_Build_id( ffc0a264: a1 3f 00 04 lhz r9,4(r31) ffc0a268: 55 6b c0 0e rlwinm r11,r11,24,0,7 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; ffc0a26c: 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( ffc0a270: 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; ffc0a274: 93 1f 00 30 stw r24,48(r31) information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc0a278: 55 29 d8 08 rlwinm r9,r9,27,0,4 ffc0a27c: 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; ffc0a280: 93 5f 00 1c stw r26,28(r31) information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc0a284: 7d 29 cb 78 or r9,r9,r25 ffc0a288: 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; ffc0a28c: b3 3f 00 10 sth r25,16(r31) _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; ffc0a290: 92 df 00 34 stw r22,52(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a294: 7c 00 01 24 mtmsr r0 information->maximum ); _ISR_Enable( level ); if ( old_tables ) ffc0a298: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a29c: 41 9e 00 08 beq- cr7,ffc0a2a4 <_Objects_Extend_information+0x1d4> _Workspace_Free( old_tables ); ffc0a2a0: 48 00 29 d9 bl ffc0cc78 <_Workspace_Free> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; ffc0a2a4: 81 3f 00 34 lwz r9,52(r31) ffc0a2a8: 57 7b 10 3a rlwinm r27,r27,2,0,29 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc0a2ac: 3b a1 00 08 addi r29,r1,8 ffc0a2b0: 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; ffc0a2b4: 7f 89 d9 2e stwx r28,r9,r27 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc0a2b8: 7f 84 e3 78 mr r4,r28 ffc0a2bc: 7f a3 eb 78 mr r3,r29 ffc0a2c0: 80 df 00 18 lwz r6,24(r31) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc0a2c4: 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( ffc0a2c8: 48 00 56 01 bl ffc0f8c8 <_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 ) { ffc0a2cc: 48 00 00 2c b ffc0a2f8 <_Objects_Extend_information+0x228> the_object->id = _Objects_Build_id( ffc0a2d0: 81 7f 00 00 lwz r11,0(r31) ffc0a2d4: a0 1f 00 04 lhz r0,4(r31) ffc0a2d8: 55 6b c0 0e rlwinm r11,r11,24,0,7 ffc0a2dc: 65 6b 00 01 oris r11,r11,1 ffc0a2e0: 54 00 d8 08 rlwinm r0,r0,27,0,4 ffc0a2e4: 7d 60 03 78 or r0,r11,r0 ffc0a2e8: 7c 00 f3 78 or r0,r0,r30 ffc0a2ec: 90 09 00 08 stw r0,8(r9) index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; ffc0a2f0: 3b de 00 01 addi r30,r30,1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc0a2f4: 4b ff f1 fd bl ffc094f0 <_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 ) { ffc0a2f8: 7f a3 eb 78 mr r3,r29 ffc0a2fc: 4b ff f2 25 bl ffc09520 <_Chain_Get> ffc0a300: 7c 69 1b 79 mr. r9,r3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc0a304: 7f 83 e3 78 mr r3,r28 ffc0a308: 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 ) { ffc0a30c: 40 82 ff c4 bne+ ffc0a2d0 <_Objects_Extend_information+0x200> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0a310: a0 1f 00 14 lhz r0,20(r31) information->inactive = ffc0a314: a1 3f 00 2c lhz r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0a318: 81 7f 00 30 lwz r11,48(r31) information->inactive = ffc0a31c: 7d 20 4a 14 add r9,r0,r9 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0a320: 54 00 04 3e clrlwi r0,r0,16 information->inactive = ffc0a324: b1 3f 00 2c sth r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0a328: 7c 0b d9 2e stwx r0,r11,r27 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } ffc0a32c: 80 01 00 4c lwz r0,76(r1) ffc0a330: 82 a1 00 1c lwz r21,28(r1) ffc0a334: 7c 08 03 a6 mtlr r0 ffc0a338: 82 c1 00 20 lwz r22,32(r1) ffc0a33c: 82 e1 00 24 lwz r23,36(r1) ffc0a340: 83 01 00 28 lwz r24,40(r1) ffc0a344: 83 21 00 2c lwz r25,44(r1) ffc0a348: 83 41 00 30 lwz r26,48(r1) ffc0a34c: 83 61 00 34 lwz r27,52(r1) ffc0a350: 83 81 00 38 lwz r28,56(r1) ffc0a354: 83 a1 00 3c lwz r29,60(r1) ffc0a358: 83 c1 00 40 lwz r30,64(r1) ffc0a35c: 83 e1 00 44 lwz r31,68(r1) ffc0a360: 38 21 00 48 addi r1,r1,72 ffc0a364: 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 ); ffc0a368: 48 00 28 dd bl ffc0cc44 <_Workspace_Allocate> if ( !new_object_block ) ffc0a36c: 7c 7c 1b 79 mr. r28,r3 ffc0a370: 40 82 fe 24 bne+ ffc0a194 <_Objects_Extend_information+0xc4> ffc0a374: 4b ff ff b8 b ffc0a32c <_Objects_Extend_information+0x25c> * separate parts as size of each block has changed. */ memcpy( object_blocks, information->object_blocks, block_count * sizeof(void*) ); ffc0a378: 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, ffc0a37c: 80 9f 00 34 lwz r4,52(r31) ffc0a380: 7e e5 bb 78 mr r5,r23 ffc0a384: 48 00 9d 85 bl ffc14108 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, ffc0a388: 80 9f 00 30 lwz r4,48(r31) ffc0a38c: 7e e5 bb 78 mr r5,r23 ffc0a390: 7f 03 c3 78 mr r3,r24 ffc0a394: 48 00 9d 75 bl ffc14108 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, ffc0a398: a0 bf 00 10 lhz r5,16(r31) ffc0a39c: 80 9f 00 1c lwz r4,28(r31) ffc0a3a0: 7f 43 d3 78 mr r3,r26 ffc0a3a4: 7c bd 2a 14 add r5,r29,r5 ffc0a3a8: 54 a5 10 3a rlwinm r5,r5,2,0,29 ffc0a3ac: 48 00 9d 5d bl ffc14108 ffc0a3b0: 4b ff fe 54 b ffc0a204 <_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 ) ffc0a3b4: a3 23 00 10 lhz r25,16(r3) ffc0a3b8: 7f be eb 78 mr r30,r29 ffc0a3bc: a1 43 00 14 lhz r10,20(r3) ffc0a3c0: 3b 60 00 00 li r27,0 ffc0a3c4: 3a a0 00 00 li r21,0 ffc0a3c8: 4b ff fd a4 b ffc0a16c <_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 ) ffc0a3cc: 7d 2a 4b 78 mr r10,r9 <== NOT EXECUTED ffc0a3d0: 7f be eb 78 mr r30,r29 <== NOT EXECUTED ffc0a3d4: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc0a3d8: 4b ff fd 94 b ffc0a16c <_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 ); ffc0a3dc: 7f 83 e3 78 mr r3,r28 ffc0a3e0: 48 00 28 99 bl ffc0cc78 <_Workspace_Free> return; ffc0a3e4: 4b ff ff 48 b ffc0a32c <_Objects_Extend_information+0x25c> ffc0a3e8: 39 60 00 01 li r11,1 <== NOT EXECUTED ffc0a3ec: 7d 69 03 a6 mtctr r11 <== NOT EXECUTED ffc0a3f0: 4b ff fe 50 b ffc0a240 <_Objects_Extend_information+0x170> <== NOT EXECUTED ffc0a838 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { ffc0a838: 94 21 ff e8 stwu r1,-24(r1) ffc0a83c: 7c 08 02 a6 mflr r0 ffc0a840: 90 01 00 1c stw r0,28(r1) ffc0a844: 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) / ffc0a848: 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 ); ffc0a84c: a3 c3 00 0a lhz r30,10(r3) block_count = (information->maximum - index_base) / ffc0a850: a0 03 00 14 lhz r0,20(r3) ffc0a854: 7d 3e 48 50 subf r9,r30,r9 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc0a858: 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) / ffc0a85c: 7d 29 03 96 divwu r9,r9,r0 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc0a860: 93 a1 00 0c stw r29,12(r1) ffc0a864: 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++ ) { ffc0a868: 2f 89 00 00 cmpwi cr7,r9,0 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc0a86c: 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++ ) { ffc0a870: 41 9e 00 3c beq- cr7,ffc0a8ac <_Objects_Shrink_information+0x74> if ( information->inactive_per_block[ block ] == ffc0a874: 81 63 00 30 lwz r11,48(r3) ffc0a878: 7d 29 03 a6 mtctr r9 information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; ffc0a87c: 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 ] == ffc0a880: 81 2b 00 00 lwz r9,0(r11) ffc0a884: 7f 80 48 00 cmpw cr7,r0,r9 ffc0a888: 41 9e 00 44 beq- cr7,ffc0a8cc <_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++ ) { ffc0a88c: 42 40 00 20 bdz- ffc0a8ac <_Objects_Shrink_information+0x74> if ( information->inactive_per_block[ block ] == ffc0a890: 7d 2b f8 2e lwzx r9,r11,r31 information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; ffc0a894: 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 ] == ffc0a898: 7f 80 48 00 cmpw cr7,r0,r9 information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; ffc0a89c: 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 ] == ffc0a8a0: 41 9e 00 30 beq- cr7,ffc0a8d0 <_Objects_Shrink_information+0x98> ffc0a8a4: 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++ ) { ffc0a8a8: 42 00 ff e8 bdnz+ ffc0a890 <_Objects_Shrink_information+0x58> return; } index_base += information->allocation_size; } } ffc0a8ac: 80 01 00 1c lwz r0,28(r1) ffc0a8b0: 83 81 00 08 lwz r28,8(r1) ffc0a8b4: 7c 08 03 a6 mtlr r0 ffc0a8b8: 83 a1 00 0c lwz r29,12(r1) ffc0a8bc: 83 c1 00 10 lwz r30,16(r1) ffc0a8c0: 83 e1 00 14 lwz r31,20(r1) ffc0a8c4: 38 21 00 18 addi r1,r1,24 ffc0a8c8: 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 ] == ffc0a8cc: 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; ffc0a8d0: 80 7c 00 20 lwz r3,32(r28) ffc0a8d4: 48 00 00 10 b ffc0a8e4 <_Objects_Shrink_information+0xac> if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); ffc0a8d8: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0a8dc: 7f a3 eb 78 mr r3,r29 ffc0a8e0: 41 9e 00 34 beq- cr7,ffc0a914 <_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 ); ffc0a8e4: 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; ffc0a8e8: 83 a3 00 00 lwz r29,0(r3) if ((index >= index_base) && ffc0a8ec: 7f 80 f0 40 cmplw cr7,r0,r30 ffc0a8f0: 41 bc ff e8 blt- cr7,ffc0a8d8 <_Objects_Shrink_information+0xa0> (index < (index_base + information->allocation_size))) { ffc0a8f4: a1 3c 00 14 lhz r9,20(r28) ffc0a8f8: 7d 3e 4a 14 add r9,r30,r9 ffc0a8fc: 7f 80 48 40 cmplw cr7,r0,r9 ffc0a900: 40 9c ff d8 bge+ cr7,ffc0a8d8 <_Objects_Shrink_information+0xa0> _Chain_Extract( &extract_me->Node ); ffc0a904: 48 00 4f 9d bl ffc0f8a0 <_Chain_Extract> } } while ( the_object ); ffc0a908: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0a90c: 7f a3 eb 78 mr r3,r29 ffc0a910: 40 9e ff d4 bne+ cr7,ffc0a8e4 <_Objects_Shrink_information+0xac> /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); ffc0a914: 81 3c 00 34 lwz r9,52(r28) ffc0a918: 7c 69 f8 2e lwzx r3,r9,r31 ffc0a91c: 48 00 23 5d bl ffc0cc78 <_Workspace_Free> information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; ffc0a920: a1 5c 00 2c lhz r10,44(r28) ffc0a924: 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; ffc0a928: 81 3c 00 34 lwz r9,52(r28) information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; ffc0a92c: 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; ffc0a930: 81 7c 00 30 lwz r11,48(r28) information->inactive -= information->allocation_size; ffc0a934: b0 1c 00 2c sth r0,44(r28) return; } index_base += information->allocation_size; } } ffc0a938: 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; ffc0a93c: 7f ab f9 2e stwx r29,r11,r31 return; } index_base += information->allocation_size; } } ffc0a940: 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; ffc0a944: 7f a9 f9 2e stwx r29,r9,r31 return; } index_base += information->allocation_size; } } ffc0a948: 83 81 00 08 lwz r28,8(r1) ffc0a94c: 83 a1 00 0c lwz r29,12(r1) ffc0a950: 83 c1 00 10 lwz r30,16(r1) ffc0a954: 83 e1 00 14 lwz r31,20(r1) ffc0a958: 38 21 00 18 addi r1,r1,24 ffc0a95c: 4e 80 00 20 blr ffc0ec48 <_POSIX_Threads_Exitted_extension>: * This method is invoked each time a thread exits. */ void _POSIX_Threads_Exitted_extension( Thread_Control *executing ) { ffc0ec48: 7c 08 02 a6 mflr r0 ffc0ec4c: 94 21 ff f8 stwu r1,-8(r1) ffc0ec50: 90 01 00 0c stw r0,12(r1) /* * If the executing thread was not created with the POSIX API, then this * API do not get to define its exit behavior. */ if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API ) ffc0ec54: 88 03 00 08 lbz r0,8(r3) ffc0ec58: 54 00 07 7e clrlwi r0,r0,29 ffc0ec5c: 2f 80 00 03 cmpwi cr7,r0,3 ffc0ec60: 41 9e 00 14 beq- cr7,ffc0ec74 <_POSIX_Threads_Exitted_extension+0x2c> pthread_exit( executing->Wait.return_argument ); } ffc0ec64: 80 01 00 0c lwz r0,12(r1) ffc0ec68: 38 21 00 08 addi r1,r1,8 ffc0ec6c: 7c 08 03 a6 mtlr r0 ffc0ec70: 4e 80 00 20 blr /* * If the executing thread was not created with the POSIX API, then this * API do not get to define its exit behavior. */ if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API ) pthread_exit( executing->Wait.return_argument ); ffc0ec74: 80 63 00 28 lwz r3,40(r3) ffc0ec78: 48 00 31 b9 bl ffc11e30 } ffc0ec7c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0ec80: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc0ec84: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ec88: 4e 80 00 20 blr <== NOT EXECUTED ffc0eebc <_POSIX_Threads_Sporadic_budget_callout>: * _POSIX_Threads_Sporadic_budget_callout */ void _POSIX_Threads_Sporadic_budget_callout( Thread_Control *the_thread ) { ffc0eebc: 7c 08 02 a6 mflr r0 ffc0eec0: 94 21 ff f8 stwu r1,-8(r1) RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); ffc0eec4: 3d 40 00 00 lis r10,0 ffc0eec8: 90 01 00 0c stw r0,12(r1) */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { ffc0eecc: 80 03 00 1c lwz r0,28(r3) ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0eed0: 81 63 01 48 lwz r11,328(r3) */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { ffc0eed4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0eed8: 88 8a 26 a4 lbz r4,9892(r10) ffc0eedc: 80 0b 00 88 lwz r0,136(r11) ffc0eee0: 7c 80 20 50 subf r4,r0,r4 /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ ffc0eee4: 38 00 ff ff li r0,-1 new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority); the_thread->real_priority = new_priority; ffc0eee8: 90 83 00 18 stw r4,24(r3) /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ ffc0eeec: 90 03 00 78 stw r0,120(r3) */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { ffc0eef0: 40 9e 00 10 bne- cr7,ffc0ef00 <_POSIX_Threads_Sporadic_budget_callout+0x44> /* * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { ffc0eef4: 80 03 00 14 lwz r0,20(r3) ffc0eef8: 7f 80 20 40 cmplw cr7,r0,r4 ffc0eefc: 41 9c 00 14 blt- cr7,ffc0ef10 <_POSIX_Threads_Sporadic_budget_callout+0x54> #if 0 printk( "lower priority\n" ); #endif } } } ffc0ef00: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0ef04: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc0ef08: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ef0c: 4e 80 00 20 blr <== NOT EXECUTED * Make sure we are actually lowering it. If they have lowered it * to logically lower than sched_ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { _Thread_Change_priority( the_thread, new_priority, true ); ffc0ef10: 38 a0 00 01 li r5,1 ffc0ef14: 4b ff bb 81 bl ffc0aa94 <_Thread_Change_priority> #if 0 printk( "lower priority\n" ); #endif } } } ffc0ef18: 80 01 00 0c lwz r0,12(r1) ffc0ef1c: 38 21 00 08 addi r1,r1,8 ffc0ef20: 7c 08 03 a6 mtlr r0 ffc0ef24: 4e 80 00 20 blr ffc08ab8 <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { ffc08ab8: 94 21 ff f0 stwu r1,-16(r1) ffc08abc: 7c 08 02 a6 mflr r0 ffc08ac0: 90 01 00 14 stw r0,20(r1) /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc08ac4: 80 04 00 54 lwz r0,84(r4) bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; ffc08ac8: 81 24 00 68 lwz r9,104(r4) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc08acc: 2f 80 00 00 cmpwi cr7,r0,0 * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { ffc08ad0: 93 e1 00 0c stw r31,12(r1) bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; ffc08ad4: 38 09 00 01 addi r0,r9,1 * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { ffc08ad8: 7c 9f 23 78 mr r31,r4 bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; ffc08adc: 90 04 00 68 stw r0,104(r4) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc08ae0: 40 9e 00 40 bne- cr7,ffc08b20 <_POSIX_Timer_TSR+0x68> ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { ffc08ae4: 80 04 00 58 lwz r0,88(r4) ffc08ae8: 2f 80 00 00 cmpwi cr7,r0,0 ffc08aec: 40 9e 00 34 bne- cr7,ffc08b20 <_POSIX_Timer_TSR+0x68> /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; } else { /* Indicates that the timer is stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; ffc08af0: 38 00 00 04 li r0,4 <== NOT EXECUTED ffc08af4: 98 04 00 3c stb r0,60(r4) <== NOT EXECUTED /* * The sending of the signal to the process running the handling function * specified for that signal is simulated */ if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) { ffc08af8: 80 7f 00 38 lwz r3,56(r31) ffc08afc: 80 9f 00 44 lwz r4,68(r31) ffc08b00: 48 00 72 15 bl ffc0fd14 } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; ffc08b04: 38 00 00 00 li r0,0 ffc08b08: 90 1f 00 68 stw r0,104(r31) } ffc08b0c: 80 01 00 14 lwz r0,20(r1) ffc08b10: 83 e1 00 0c lwz r31,12(r1) ffc08b14: 38 21 00 10 addi r1,r1,16 ffc08b18: 7c 08 03 a6 mtlr r0 ffc08b1c: 4e 80 00 20 blr ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { activated = _POSIX_Timer_Insert_helper( ffc08b20: 80 9f 00 64 lwz r4,100(r31) ffc08b24: 3c c0 ff c1 lis r6,-63 ffc08b28: 80 bf 00 08 lwz r5,8(r31) ffc08b2c: 38 c6 8a b8 addi r6,r6,-30024 ffc08b30: 38 7f 00 10 addi r3,r31,16 ffc08b34: 7f e7 fb 78 mr r7,r31 ffc08b38: 48 00 77 fd bl ffc10334 <_POSIX_Timer_Insert_helper> ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) ffc08b3c: 2f 83 00 00 cmpwi cr7,r3,0 ffc08b40: 41 9e ff cc beq+ cr7,ffc08b0c <_POSIX_Timer_TSR+0x54> return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); ffc08b44: 38 7f 00 6c addi r3,r31,108 ffc08b48: 48 00 1e 25 bl ffc0a96c <_TOD_Get> /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; ffc08b4c: 38 00 00 03 li r0,3 ffc08b50: 98 1f 00 3c stb r0,60(r31) /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc08b54: 4b ff ff a4 b ffc08af8 <_POSIX_Timer_TSR+0x40> ffc130d8 <_POSIX_signals_Clear_process_signals>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc130d8: 7d 60 00 a6 mfmsr r11 ffc130dc: 7c 10 42 a6 mfsprg r0,0 ffc130e0: 7d 60 00 78 andc r0,r11,r0 ffc130e4: 7c 00 01 24 mtmsr r0 mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { ffc130e8: 3d 20 00 00 lis r9,0 ffc130ec: 1c 03 00 0c mulli r0,r3,12 ffc130f0: 39 29 31 70 addi r9,r9,12656 ffc130f4: 7d 29 00 2e lwzx r9,r9,r0 ffc130f8: 2f 89 00 02 cmpwi cr7,r9,2 ffc130fc: 41 9e 00 40 beq- cr7,ffc1313c <_POSIX_signals_Clear_process_signals+0x64> if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; ffc13100: 3d 20 00 00 lis r9,0 ffc13104: 80 09 27 e4 lwz r0,10212(r9) ffc13108: 38 63 ff ff addi r3,r3,-1 ffc1310c: 39 40 ff fe li r10,-2 ffc13110: 5d 43 18 3e rotlw r3,r10,r3 ffc13114: 7c 63 00 38 and r3,r3,r0 if ( !_POSIX_signals_Pending ) ffc13118: 2f 83 00 00 cmpwi cr7,r3,0 if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; ffc1311c: 90 69 27 e4 stw r3,10212(r9) if ( !_POSIX_signals_Pending ) ffc13120: 40 9e 00 14 bne- cr7,ffc13134 <_POSIX_signals_Clear_process_signals+0x5c> _Thread_Do_post_task_switch_extension--; ffc13124: 3d 20 00 00 lis r9,0 ffc13128: 81 49 27 a0 lwz r10,10144(r9) ffc1312c: 38 0a ff ff addi r0,r10,-1 ffc13130: 90 09 27 a0 stw r0,10144(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc13134: 7d 60 01 24 mtmsr r11 } _ISR_Enable( level ); } ffc13138: 4e 80 00 20 blr ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) ffc1313c: 3d 20 00 00 lis r9,0 ffc13140: 39 29 33 3c addi r9,r9,13116 ffc13144: 7d 49 00 2e lwzx r10,r9,r0 ffc13148: 7d 29 02 14 add r9,r9,r0 ffc1314c: 38 09 00 04 addi r0,r9,4 ffc13150: 7f 8a 00 00 cmpw cr7,r10,r0 ffc13154: 41 be ff ac beq- cr7,ffc13100 <_POSIX_signals_Clear_process_signals+0x28> ffc13158: 7d 60 01 24 mtmsr r11 <== NOT EXECUTED _POSIX_signals_Pending &= ~mask; if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; } _ISR_Enable( level ); } ffc1315c: 4e 80 00 20 blr <== NOT EXECUTED ffc0aa94 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { ffc0aa94: 94 21 ff e8 stwu r1,-24(r1) ffc0aa98: 7c 08 02 a6 mflr r0 ffc0aa9c: 90 01 00 1c stw r0,28(r1) ffc0aaa0: 93 e1 00 14 stw r31,20(r1) ffc0aaa4: 7c 7f 1b 78 mr r31,r3 ffc0aaa8: 93 81 00 08 stw r28,8(r1) ffc0aaac: 7c bc 2b 78 mr r28,r5 ffc0aab0: 93 a1 00 0c stw r29,12(r1) ffc0aab4: 93 c1 00 10 stw r30,16(r1) ffc0aab8: 7c 9e 23 78 mr r30,r4 */ /* * Save original state */ original_state = the_thread->current_state; ffc0aabc: 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 ); ffc0aac0: 48 00 13 81 bl ffc0be40 <_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 ) ffc0aac4: 80 1f 00 14 lwz r0,20(r31) ffc0aac8: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0aacc: 41 9e 00 10 beq- cr7,ffc0aadc <_Thread_Change_priority+0x48> _Thread_Set_priority( the_thread, new_priority ); ffc0aad0: 7f c4 f3 78 mr r4,r30 ffc0aad4: 7f e3 fb 78 mr r3,r31 ffc0aad8: 48 00 11 e9 bl ffc0bcc0 <_Thread_Set_priority> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0aadc: 7d 20 00 a6 mfmsr r9 ffc0aae0: 7c 10 42 a6 mfsprg r0,0 ffc0aae4: 7d 20 00 78 andc r0,r9,r0 ffc0aae8: 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; ffc0aaec: 80 1f 00 10 lwz r0,16(r31) if ( state != STATES_TRANSIENT ) { ffc0aaf0: 2f 80 00 04 cmpwi cr7,r0,4 ffc0aaf4: 41 9e 00 88 beq- cr7,ffc0ab7c <_Thread_Change_priority+0xe8> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) ffc0aaf8: 73 ab 00 04 andi. r11,r29,4 ffc0aafc: 41 82 00 38 beq- ffc0ab34 <_Thread_Change_priority+0xa0> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ab00: 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 ) ) { ffc0ab04: 3d 20 00 03 lis r9,3 <== NOT EXECUTED ffc0ab08: 61 29 be e0 ori r9,r9,48864 <== NOT EXECUTED ffc0ab0c: 7c 0b 48 39 and. r11,r0,r9 <== NOT EXECUTED ffc0ab10: 40 82 00 40 bne- ffc0ab50 <_Thread_Change_priority+0xbc> <== NOT EXECUTED if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = true; _ISR_Enable( level ); } ffc0ab14: 80 01 00 1c lwz r0,28(r1) ffc0ab18: 83 81 00 08 lwz r28,8(r1) ffc0ab1c: 7c 08 03 a6 mtlr r0 ffc0ab20: 83 a1 00 0c lwz r29,12(r1) ffc0ab24: 83 c1 00 10 lwz r30,16(r1) ffc0ab28: 83 e1 00 14 lwz r31,20(r1) ffc0ab2c: 38 21 00 18 addi r1,r1,24 ffc0ab30: 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 ); ffc0ab34: 54 0b 07 b8 rlwinm r11,r0,0,30,28 ffc0ab38: 91 7f 00 10 stw r11,16(r31) ffc0ab3c: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { ffc0ab40: 3d 20 00 03 lis r9,3 ffc0ab44: 61 29 be e0 ori r9,r9,48864 ffc0ab48: 7c 0b 48 39 and. r11,r0,r9 ffc0ab4c: 41 82 ff c8 beq+ ffc0ab14 <_Thread_Change_priority+0x80> _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); ffc0ab50: 80 7f 00 44 lwz r3,68(r31) ffc0ab54: 7f e4 fb 78 mr r4,r31 ffc0ab58: 48 00 10 71 bl ffc0bbc8 <_Thread_queue_Requeue> if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = true; _ISR_Enable( level ); } ffc0ab5c: 80 01 00 1c lwz r0,28(r1) ffc0ab60: 83 81 00 08 lwz r28,8(r1) ffc0ab64: 7c 08 03 a6 mtlr r0 ffc0ab68: 83 a1 00 0c lwz r29,12(r1) ffc0ab6c: 83 c1 00 10 lwz r30,16(r1) ffc0ab70: 83 e1 00 14 lwz r31,20(r1) ffc0ab74: 38 21 00 18 addi r1,r1,24 ffc0ab78: 4e 80 00 20 blr } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { ffc0ab7c: 73 bd 00 04 andi. r29,r29,4 ffc0ab80: 3d 40 00 00 lis r10,0 ffc0ab84: 40 82 00 4c bne- ffc0abd0 <_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 ); ffc0ab88: 93 bf 00 10 stw r29,16(r31) _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) ffc0ab8c: 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; ffc0ab90: 81 7f 00 90 lwz r11,144(r31) ffc0ab94: 80 1f 00 98 lwz r0,152(r31) ffc0ab98: 81 0b 00 00 lwz r8,0(r11) ffc0ab9c: 7d 00 03 78 or r0,r8,r0 ffc0aba0: 90 0b 00 00 stw r0,0(r11) _Priority_Major_bit_map |= the_priority_map->ready_major; ffc0aba4: 81 6a 27 a4 lwz r11,10148(r10) ffc0aba8: 80 1f 00 94 lwz r0,148(r31) ffc0abac: 7d 60 03 78 or r0,r11,r0 ffc0abb0: 90 0a 27 a4 stw r0,10148(r10) ffc0abb4: 41 9e 00 b8 beq- cr7,ffc0ac6c <_Thread_Change_priority+0x1d8> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; ffc0abb8: 81 7f 00 8c lwz r11,140(r31) ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc0abbc: 81 0b 00 00 lwz r8,0(r11) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc0abc0: 91 7f 00 04 stw r11,4(r31) before_node = after_node->next; after_node->next = the_node; ffc0abc4: 93 eb 00 00 stw r31,0(r11) the_node->next = before_node; before_node->previous = the_node; ffc0abc8: 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; ffc0abcc: 91 1f 00 00 stw r8,0(r31) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0abd0: 7c 00 00 a6 mfmsr r0 ffc0abd4: 7d 20 01 24 mtmsr r9 ffc0abd8: 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; ffc0abdc: 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 ); ffc0abe0: 81 6a 27 a4 lwz r11,10148(r10) ffc0abe4: 80 a8 27 64 lwz r5,10084(r8) ffc0abe8: 7d 66 00 34 cntlzw r6,r11 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0abec: 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 ); ffc0abf0: 91 6a 27 a4 stw r11,10148(r10) _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0abf4: 38 e7 2d a0 addi r7,r7,11680 ffc0abf8: 54 c8 10 3a rlwinm r8,r6,2,0,29 ffc0abfc: 7c 07 40 2e lwzx r0,r7,r8 ffc0ac00: 7c 0b 00 34 cntlzw r11,r0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0ac04: 54 c6 20 36 rlwinm r6,r6,4,0,27 ffc0ac08: 7c 07 41 2e stwx r0,r7,r8 ffc0ac0c: 7c c6 5a 14 add r6,r6,r11 ffc0ac10: 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 ); ffc0ac14: 3d 60 00 00 lis r11,0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0ac18: 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 ); ffc0ac1c: 81 6b 27 b0 lwz r11,10160(r11) * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0ac20: 3d 40 00 00 lis r10,0 ffc0ac24: 90 0a 27 8c stw r0,10124(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() && ffc0ac28: 7f 80 58 00 cmpw cr7,r0,r11 ffc0ac2c: 41 9e 00 1c beq- cr7,ffc0ac48 <_Thread_Change_priority+0x1b4> _Thread_Executing->is_preemptible ) ffc0ac30: 88 0b 00 75 lbz r0,117(r11) ffc0ac34: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ac38: 41 9e 00 10 beq- cr7,ffc0ac48 <_Thread_Change_priority+0x1b4> _Context_Switch_necessary = true; ffc0ac3c: 38 00 00 01 li r0,1 ffc0ac40: 3d 60 00 00 lis r11,0 ffc0ac44: 98 0b 27 c0 stb r0,10176(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ac48: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); } ffc0ac4c: 80 01 00 1c lwz r0,28(r1) ffc0ac50: 83 81 00 08 lwz r28,8(r1) ffc0ac54: 7c 08 03 a6 mtlr r0 ffc0ac58: 83 a1 00 0c lwz r29,12(r1) ffc0ac5c: 83 c1 00 10 lwz r30,16(r1) ffc0ac60: 83 e1 00 14 lwz r31,20(r1) ffc0ac64: 38 21 00 18 addi r1,r1,24 ffc0ac68: 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 ); ffc0ac6c: 81 7f 00 8c lwz r11,140(r31) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0ac70: 38 0b 00 04 addi r0,r11,4 ffc0ac74: 90 1f 00 00 stw r0,0(r31) old_last_node = the_chain->last; ffc0ac78: 81 0b 00 08 lwz r8,8(r11) the_chain->last = the_node; ffc0ac7c: 93 eb 00 08 stw r31,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0ac80: 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; ffc0ac84: 93 e8 00 00 stw r31,0(r8) ffc0ac88: 4b ff ff 48 b ffc0abd0 <_Thread_Change_priority+0x13c> ffc103f4 <_Thread_Reset_timeslice>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ffc103f4: 3d 20 00 00 lis r9,0 ffc103f8: 81 29 27 b0 lwz r9,10160(r9) ready = executing->ready; ffc103fc: 81 69 00 8c lwz r11,140(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc10400: 7c 00 00 a6 mfmsr r0 ffc10404: 7d 50 42 a6 mfsprg r10,0 ffc10408: 7c 0a 50 78 andc r10,r0,r10 ffc1040c: 7d 40 01 24 mtmsr r10 _ISR_Disable( level ); if ( _Chain_Has_only_one_node( ready ) ) { ffc10410: 81 0b 00 00 lwz r8,0(r11) ffc10414: 81 4b 00 08 lwz r10,8(r11) ffc10418: 7f 88 50 00 cmpw cr7,r8,r10 ffc1041c: 41 9e 00 78 beq- cr7,ffc10494 <_Thread_Reset_timeslice+0xa0> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc10420: 81 49 00 00 lwz r10,0(r9) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc10424: 38 eb 00 04 addi r7,r11,4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc10428: 81 09 00 04 lwz r8,4(r9) next->previous = previous; previous->next = next; ffc1042c: 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; ffc10430: 91 0a 00 04 stw r8,4(r10) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc10434: 90 e9 00 00 stw r7,0(r9) old_last_node = the_chain->last; ffc10438: 81 4b 00 08 lwz r10,8(r11) the_chain->last = the_node; ffc1043c: 91 2b 00 08 stw r9,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc10440: 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; ffc10444: 91 2a 00 00 stw r9,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc10448: 7d 40 00 a6 mfmsr r10 ffc1044c: 7c 00 01 24 mtmsr r0 ffc10450: 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 ) ) ffc10454: 3d 40 00 00 lis r10,0 ffc10458: 81 0a 27 8c lwz r8,10124(r10) ffc1045c: 7f 89 40 00 cmpw cr7,r9,r8 ffc10460: 41 9e 00 18 beq- cr7,ffc10478 <_Thread_Reset_timeslice+0x84> _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; ffc10464: 39 60 00 01 li r11,1 <== NOT EXECUTED ffc10468: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc1046c: 99 69 27 c0 stb r11,10176(r9) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc10470: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc10474: 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; ffc10478: 81 2b 00 00 lwz r9,0(r11) _Context_Switch_necessary = true; ffc1047c: 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; ffc10480: 91 2a 27 8c stw r9,10124(r10) _Context_Switch_necessary = true; ffc10484: 3d 20 00 00 lis r9,0 ffc10488: 99 69 27 c0 stb r11,10176(r9) ffc1048c: 7c 00 01 24 mtmsr r0 ffc10490: 4e 80 00 20 blr ffc10494: 7c 00 01 24 mtmsr r0 ffc10498: 4e 80 00 20 blr ffc0ccfc <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0ccfc: 94 21 ff e8 stwu r1,-24(r1) ffc0cd00: 7c 08 02 a6 mflr r0 ffc0cd04: 90 01 00 1c stw r0,28(r1) if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0cd08: 80 03 00 10 lwz r0,16(r3) bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0cd0c: 93 e1 00 14 stw r31,20(r1) ffc0cd10: 7c 7f 1b 78 mr r31,r3 if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0cd14: 70 09 00 01 andi. r9,r0,1 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0cd18: 93 c1 00 10 stw r30,16(r1) if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0cd1c: 38 00 00 00 li r0,0 ffc0cd20: 41 82 00 20 beq- ffc0cd40 <_Thread_Restart+0x44> return true; } return false; } ffc0cd24: 7c 03 03 78 mr r3,r0 ffc0cd28: 80 01 00 1c lwz r0,28(r1) ffc0cd2c: 83 c1 00 10 lwz r30,16(r1) ffc0cd30: 7c 08 03 a6 mtlr r0 ffc0cd34: 83 e1 00 14 lwz r31,20(r1) ffc0cd38: 38 21 00 18 addi r1,r1,24 ffc0cd3c: 4e 80 00 20 blr Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); ffc0cd40: 90 81 00 08 stw r4,8(r1) _Thread_Ready( the_thread ); _User_extensions_Thread_restart( the_thread ); if ( _Thread_Is_executing ( the_thread ) ) ffc0cd44: 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 ); ffc0cd48: 90 a1 00 0c stw r5,12(r1) ffc0cd4c: 48 00 01 e5 bl ffc0cf30 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); ffc0cd50: 7f e3 fb 78 mr r3,r31 ffc0cd54: 80 81 00 08 lwz r4,8(r1) ffc0cd58: 80 a1 00 0c lwz r5,12(r1) ffc0cd5c: 48 00 49 3d bl ffc11698 <_Thread_Reset> _Thread_Load_environment( the_thread ); ffc0cd60: 7f e3 fb 78 mr r3,r31 ffc0cd64: 48 00 44 e9 bl ffc1124c <_Thread_Load_environment> _Thread_Ready( the_thread ); ffc0cd68: 7f e3 fb 78 mr r3,r31 ffc0cd6c: 48 00 48 51 bl ffc115bc <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); ffc0cd70: 7f e3 fb 78 mr r3,r31 ffc0cd74: 48 00 0b 05 bl ffc0d878 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) ffc0cd78: 81 3e 27 fc lwz r9,10236(r30) ffc0cd7c: 38 00 00 01 li r0,1 ffc0cd80: 7f 9f 48 00 cmpw cr7,r31,r9 ffc0cd84: 40 9e ff a0 bne+ cr7,ffc0cd24 <_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 ) ffc0cd88: 80 1f 01 3c lwz r0,316(r31) ffc0cd8c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cd90: 41 9e 00 10 beq- cr7,ffc0cda0 <_Thread_Restart+0xa4> _Context_Restore_fp( &_Thread_Executing->fp_context ); ffc0cd94: 38 7f 01 3c addi r3,r31,316 ffc0cd98: 48 01 4e c9 bl ffc21c60 <_CPU_Context_restore_fp> ffc0cd9c: 83 fe 27 fc lwz r31,10236(r30) #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); ffc0cda0: 38 7f 00 dc addi r3,r31,220 ffc0cda4: 48 01 50 7d bl ffc21e20 <_CPU_Context_restore> ffc0cda8: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0cdac: 4b ff ff 78 b ffc0cd24 <_Thread_Restart+0x28> <== NOT EXECUTED ffc0b900 <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; ffc0b900: 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); ffc0b904: 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 ) { ffc0b908: 94 21 ff f0 stwu r1,-16(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0b90c: 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 ) ) ffc0b910: 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 ]; ffc0b914: 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); ffc0b918: 91 04 00 38 stw r8,56(r4) ffc0b91c: 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 ) { ffc0b920: 93 e1 00 0c stw r31,12(r1) the_chain->permanent_null = NULL; ffc0b924: 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; ffc0b928: 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 ]; ffc0b92c: 7d 43 52 14 add r10,r3,r10 ffc0b930: 91 04 00 3c stw r8,60(r4) the_chain->last = _Chain_Head(the_chain); ffc0b934: 91 64 00 40 stw r11,64(r4) block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) ffc0b938: 40 82 00 7c bne- ffc0b9b4 <_Thread_queue_Enqueue_priority+0xb4> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0b93c: 39 8a 00 04 addi r12,r10,4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b940: 7c c0 00 a6 mfmsr r6 ffc0b944: 7d 70 42 a6 mfsprg r11,0 ffc0b948: 7c cb 58 78 andc r11,r6,r11 ffc0b94c: 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; ffc0b950: 81 6a 00 00 lwz r11,0(r10) while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { ffc0b954: 7f 8b 60 00 cmpw cr7,r11,r12 ffc0b958: 40 be 00 2c bne+ cr7,ffc0b984 <_Thread_queue_Enqueue_priority+0x84> ffc0b95c: 48 00 01 78 b ffc0bad4 <_Thread_queue_Enqueue_priority+0x1d4> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0b960: 7c e0 00 a6 mfmsr r7 ffc0b964: 7c c0 01 24 mtmsr r6 ffc0b968: 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) ) { ffc0b96c: 80 eb 00 10 lwz r7,16(r11) ffc0b970: 7d 3f 38 39 and. r31,r9,r7 ffc0b974: 41 82 00 f4 beq- ffc0ba68 <_Thread_queue_Enqueue_priority+0x168> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; ffc0b978: 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 ) ) { ffc0b97c: 7f 8b 60 00 cmpw cr7,r11,r12 ffc0b980: 41 9e 00 10 beq- cr7,ffc0b990 <_Thread_queue_Enqueue_priority+0x90> search_priority = search_thread->current_priority; ffc0b984: 81 0b 00 14 lwz r8,20(r11) if ( priority <= search_priority ) ffc0b988: 7f 80 40 40 cmplw cr7,r0,r8 ffc0b98c: 41 9d ff d4 bgt+ cr7,ffc0b960 <_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 ) ) { ffc0b990: 7c ca 33 78 mr r10,r6 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != ffc0b994: 81 23 00 30 lwz r9,48(r3) ffc0b998: 2f 89 00 01 cmpwi cr7,r9,1 ffc0b99c: 41 9e 00 d4 beq- cr7,ffc0ba70 <_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; ffc0b9a0: 91 45 00 00 stw r10,0(r5) return the_thread_queue->sync_state; ffc0b9a4: 7d 23 4b 78 mr r3,r9 } ffc0b9a8: 83 e1 00 0c lwz r31,12(r1) ffc0b9ac: 38 21 00 10 addi r1,r1,16 ffc0b9b0: 4e 80 00 20 blr ffc0b9b4: 3d 80 00 00 lis r12,0 ffc0b9b8: 39 8c 26 a4 addi r12,r12,9892 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; ffc0b9bc: 89 0c 00 00 lbz r8,0(r12) ffc0b9c0: 39 08 00 01 addi r8,r8,1 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b9c4: 7c c0 00 a6 mfmsr r6 ffc0b9c8: 7d 70 42 a6 mfsprg r11,0 ffc0b9cc: 7c cb 58 78 andc r11,r6,r11 ffc0b9d0: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; ffc0b9d4: 81 6a 00 08 lwz r11,8(r10) while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { ffc0b9d8: 7f 8b 50 00 cmpw cr7,r11,r10 ffc0b9dc: 40 be 00 2c bne+ cr7,ffc0ba08 <_Thread_queue_Enqueue_priority+0x108> ffc0b9e0: 48 00 00 34 b ffc0ba14 <_Thread_queue_Enqueue_priority+0x114> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0b9e4: 7c e0 00 a6 mfmsr r7 ffc0b9e8: 7c c0 01 24 mtmsr r6 ffc0b9ec: 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) ) { ffc0b9f0: 80 eb 00 10 lwz r7,16(r11) ffc0b9f4: 7d 3f 38 39 and. r31,r9,r7 ffc0b9f8: 41 82 00 68 beq- ffc0ba60 <_Thread_queue_Enqueue_priority+0x160> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) ffc0b9fc: 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 ) ) { ffc0ba00: 7f 8b 50 00 cmpw cr7,r11,r10 ffc0ba04: 41 9e 00 10 beq- cr7,ffc0ba14 <_Thread_queue_Enqueue_priority+0x114> search_priority = search_thread->current_priority; ffc0ba08: 81 0b 00 14 lwz r8,20(r11) if ( priority >= search_priority ) ffc0ba0c: 7f 80 40 40 cmplw cr7,r0,r8 ffc0ba10: 41 9c ff d4 blt+ cr7,ffc0b9e4 <_Thread_queue_Enqueue_priority+0xe4> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0ba14: 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 ) ) { ffc0ba18: 7c ca 33 78 mr r10,r6 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0ba1c: 2f 89 00 01 cmpwi cr7,r9,1 ffc0ba20: 40 9e ff 80 bne+ cr7,ffc0b9a0 <_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 ) ffc0ba24: 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; ffc0ba28: 38 00 00 00 li r0,0 ffc0ba2c: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0ba30: 41 9e 00 7c beq- cr7,ffc0baac <_Thread_queue_Enqueue_priority+0x1ac> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; ffc0ba34: 81 2b 00 00 lwz r9,0(r11) the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; ffc0ba38: 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; ffc0ba3c: 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; ffc0ba40: 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; ffc0ba44: 90 8b 00 00 stw r4,0(r11) next_node->previous = the_node; ffc0ba48: 90 89 00 04 stw r4,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ba4c: 7c c0 01 24 mtmsr r6 ffc0ba50: 38 60 00 01 li r3,1 * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } ffc0ba54: 83 e1 00 0c lwz r31,12(r1) ffc0ba58: 38 21 00 10 addi r1,r1,16 ffc0ba5c: 4e 80 00 20 blr ffc0ba60: 7c c0 01 24 mtmsr r6 ffc0ba64: 4b ff ff 58 b ffc0b9bc <_Thread_queue_Enqueue_priority+0xbc> ffc0ba68: 7c c0 01 24 mtmsr r6 <== NOT EXECUTED ffc0ba6c: 4b ff fe d4 b ffc0b940 <_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 ) ffc0ba70: 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; ffc0ba74: 38 00 00 00 li r0,0 ffc0ba78: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0ba7c: 41 9e 00 30 beq- cr7,ffc0baac <_Thread_queue_Enqueue_priority+0x1ac> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; ffc0ba80: 81 2b 00 04 lwz r9,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0ba84: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0ba88: 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; ffc0ba8c: 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; ffc0ba90: 90 89 00 00 stw r4,0(r9) search_node->previous = the_node; ffc0ba94: 90 8b 00 04 stw r4,4(r11) ffc0ba98: 7c c0 01 24 mtmsr r6 ffc0ba9c: 38 60 00 01 li r3,1 * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } ffc0baa0: 83 e1 00 0c lwz r31,12(r1) ffc0baa4: 38 21 00 10 addi r1,r1,16 ffc0baa8: 4e 80 00 20 blr ffc0baac: 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; ffc0bab0: 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; ffc0bab4: 81 2b 00 04 lwz r9,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0bab8: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0babc: 91 24 00 04 stw r9,4(r4) previous_node->next = the_node; ffc0bac0: 90 89 00 00 stw r4,0(r9) search_node->previous = the_node; ffc0bac4: 90 8b 00 04 stw r4,4(r11) ffc0bac8: 7d 40 01 24 mtmsr r10 ffc0bacc: 38 60 00 01 li r3,1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc0bad0: 4b ff fe d8 b ffc0b9a8 <_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 ) ) { ffc0bad4: 7c ca 33 78 mr r10,r6 ffc0bad8: 39 00 ff ff li r8,-1 ffc0badc: 4b ff fe b8 b ffc0b994 <_Thread_queue_Enqueue_priority+0x94> ffc0bbc8 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0bbc8: 94 21 ff d8 stwu r1,-40(r1) ffc0bbcc: 7c 08 02 a6 mflr r0 ffc0bbd0: 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 ) ffc0bbd4: 7c 7f 1b 79 mr. r31,r3 void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0bbd8: 93 c1 00 20 stw r30,32(r1) ffc0bbdc: 7c 9e 23 78 mr r30,r4 ffc0bbe0: 90 01 00 2c stw r0,44(r1) ffc0bbe4: 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 ) ffc0bbe8: 41 82 00 10 beq- ffc0bbf8 <_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 ) { ffc0bbec: 80 1f 00 34 lwz r0,52(r31) ffc0bbf0: 2f 80 00 01 cmpwi cr7,r0,1 ffc0bbf4: 41 9e 00 20 beq- cr7,ffc0bc14 <_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 ); } } ffc0bbf8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0bbfc: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0bc00: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0bc04: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0bc08: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0bc0c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0bc10: 4e 80 00 20 blr <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0bc14: 7f a0 00 a6 mfmsr r29 ffc0bc18: 7d 30 42 a6 mfsprg r9,0 ffc0bc1c: 7f a9 48 78 andc r9,r29,r9 ffc0bc20: 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 ) ) { ffc0bc24: 3d 60 00 03 lis r11,3 ffc0bc28: 81 24 00 10 lwz r9,16(r4) ffc0bc2c: 61 6b be e0 ori r11,r11,48864 ffc0bc30: 7d 6a 48 39 and. r10,r11,r9 ffc0bc34: 40 82 00 24 bne- ffc0bc58 <_Thread_queue_Requeue+0x90> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0bc38: 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 ); } } ffc0bc3c: 80 01 00 2c lwz r0,44(r1) ffc0bc40: 83 a1 00 1c lwz r29,28(r1) ffc0bc44: 7c 08 03 a6 mtlr r0 ffc0bc48: 83 c1 00 20 lwz r30,32(r1) ffc0bc4c: 83 e1 00 24 lwz r31,36(r1) ffc0bc50: 38 21 00 28 addi r1,r1,40 ffc0bc54: 4e 80 00 20 blr ffc0bc58: 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 ); ffc0bc5c: 38 a0 00 01 li r5,1 ffc0bc60: 48 00 45 3d bl ffc1019c <_Thread_queue_Extract_priority_helper> (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); ffc0bc64: 7f e3 fb 78 mr r3,r31 ffc0bc68: 7f c4 f3 78 mr r4,r30 ffc0bc6c: 38 a1 00 08 addi r5,r1,8 ffc0bc70: 4b ff fc 91 bl ffc0b900 <_Thread_queue_Enqueue_priority> ffc0bc74: 7f a0 01 24 mtmsr r29 ffc0bc78: 4b ff ff c4 b ffc0bc3c <_Thread_queue_Requeue+0x74> ffc0ee80 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { ffc0ee80: 94 21 ff e0 stwu r1,-32(r1) ffc0ee84: 7c 08 02 a6 mflr r0 ffc0ee88: 90 01 00 24 stw r0,36(r1) ffc0ee8c: 93 c1 00 18 stw r30,24(r1) ffc0ee90: 7c be 2b 78 mr r30,r5 ffc0ee94: 93 e1 00 1c stw r31,28(r1) ffc0ee98: 7c 7f 1b 78 mr r31,r3 ffc0ee9c: 93 61 00 0c stw r27,12(r1) ffc0eea0: 93 81 00 10 stw r28,16(r1) ffc0eea4: 93 a1 00 14 stw r29,20(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0eea8: 7c 00 00 a6 mfmsr r0 ffc0eeac: 7d 30 42 a6 mfsprg r9,0 ffc0eeb0: 7c 09 48 78 andc r9,r0,r9 ffc0eeb4: 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)); ffc0eeb8: 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; ffc0eebc: 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 ) ) { ffc0eec0: 7f 89 e0 00 cmpw cr7,r9,r28 ffc0eec4: 41 9e 00 6c beq- cr7,ffc0ef30 <_Watchdog_Adjust+0xb0> switch ( direction ) { ffc0eec8: 2f 84 00 00 cmpwi cr7,r4,0 ffc0eecc: 40 9e 00 8c bne- cr7,ffc0ef58 <_Watchdog_Adjust+0xd8> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { ffc0eed0: 2f 85 00 00 cmpwi cr7,r5,0 ffc0eed4: 41 9e 00 5c beq- cr7,ffc0ef30 <_Watchdog_Adjust+0xb0> if ( units < _Watchdog_First( header )->delta_interval ) { ffc0eed8: 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; ffc0eedc: 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 ) { ffc0eee0: 7f 85 e8 40 cmplw cr7,r5,r29 ffc0eee4: 40 bc 00 18 bge+ cr7,ffc0eefc <_Watchdog_Adjust+0x7c> ffc0eee8: 48 00 00 ac b ffc0ef94 <_Watchdog_Adjust+0x114> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { ffc0eeec: 41 82 00 44 beq- ffc0ef30 <_Watchdog_Adjust+0xb0> if ( units < _Watchdog_First( header )->delta_interval ) { ffc0eef0: 83 a9 00 10 lwz r29,16(r9) ffc0eef4: 7f 9d f0 40 cmplw cr7,r29,r30 ffc0eef8: 41 9d 00 9c bgt- cr7,ffc0ef94 <_Watchdog_Adjust+0x114> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; ffc0eefc: 93 69 00 10 stw r27,16(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ef00: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); _Watchdog_Tickle( header ); ffc0ef04: 7f e3 fb 78 mr r3,r31 ffc0ef08: 48 00 03 31 bl ffc0f238 <_Watchdog_Tickle> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ef0c: 7c 00 00 a6 mfmsr r0 ffc0ef10: 7d 30 42 a6 mfsprg r9,0 ffc0ef14: 7c 09 48 78 andc r9,r0,r9 ffc0ef18: 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)); ffc0ef1c: 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 ) { ffc0ef20: 7f dd f0 51 subf. r30,r29,r30 _Watchdog_Tickle( header ); _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) ffc0ef24: 7f 9c 58 00 cmpw cr7,r28,r11 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); ffc0ef28: 7d 69 5b 78 mr r9,r11 ffc0ef2c: 40 9e ff c0 bne+ cr7,ffc0eeec <_Watchdog_Adjust+0x6c> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ef30: 7c 00 01 24 mtmsr r0 } } _ISR_Enable( level ); } ffc0ef34: 80 01 00 24 lwz r0,36(r1) ffc0ef38: 83 61 00 0c lwz r27,12(r1) ffc0ef3c: 7c 08 03 a6 mtlr r0 ffc0ef40: 83 81 00 10 lwz r28,16(r1) ffc0ef44: 83 a1 00 14 lwz r29,20(r1) ffc0ef48: 83 c1 00 18 lwz r30,24(r1) ffc0ef4c: 83 e1 00 1c lwz r31,28(r1) ffc0ef50: 38 21 00 20 addi r1,r1,32 ffc0ef54: 4e 80 00 20 blr * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { ffc0ef58: 2f 84 00 01 cmpwi cr7,r4,1 ffc0ef5c: 40 9e ff d4 bne+ cr7,ffc0ef30 <_Watchdog_Adjust+0xb0> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; ffc0ef60: 81 69 00 10 lwz r11,16(r9) ffc0ef64: 7f cb 2a 14 add r30,r11,r5 ffc0ef68: 93 c9 00 10 stw r30,16(r9) ffc0ef6c: 7c 00 01 24 mtmsr r0 } } _ISR_Enable( level ); } ffc0ef70: 80 01 00 24 lwz r0,36(r1) ffc0ef74: 83 61 00 0c lwz r27,12(r1) ffc0ef78: 7c 08 03 a6 mtlr r0 ffc0ef7c: 83 81 00 10 lwz r28,16(r1) ffc0ef80: 83 a1 00 14 lwz r29,20(r1) ffc0ef84: 83 c1 00 18 lwz r30,24(r1) ffc0ef88: 83 e1 00 1c lwz r31,28(r1) ffc0ef8c: 38 21 00 20 addi r1,r1,32 ffc0ef90: 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; ffc0ef94: 7f de e8 50 subf r30,r30,r29 ffc0ef98: 93 c9 00 10 stw r30,16(r9) break; ffc0ef9c: 4b ff ff 94 b ffc0ef30 <_Watchdog_Adjust+0xb0> ffc1e358 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); ffc1e358: 94 21 ff f0 stwu r1,-16(r1) ffc1e35c: 7c 08 02 a6 mflr r0 ffc1e360: 90 61 00 08 stw r3,8(r1) ffc1e364: 90 01 00 14 stw r0,20(r1) ffc1e368: 48 00 0a 59 bl ffc1edc0 <__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(); ffc1e36c: 4b ff ff 55 bl ffc1e2c0 rtems_shutdown_executive(status); ffc1e370: 80 61 00 08 lwz r3,8(r1) ffc1e374: 48 00 01 59 bl ffc1e4cc ffc1e378: 48 00 00 00 b ffc1e378 <_exit+0x20> <== NOT EXECUTED ffc46e00 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); ffc46e00: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc46e04: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc46e08: 7c c5 33 78 mr r5,r6 <== NOT EXECUTED ffc46e0c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc46e10: 4b ff fd 08 b ffc46b18 <== NOT EXECUTED ffc1186c <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } ffc1186c: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc11870: 4e 80 00 20 blr <== NOT EXECUTED ffc0e3b8 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); ffc0e3b8: 4b ff ff 70 b ffc0e328 <== NOT EXECUTED ffc30538 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); ffc30538: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc3053c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc30540: 4b ff fd 18 b ffc30258 <== NOT EXECUTED ffc3082c <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc3082c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc30830: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc30834: 4b ff fe c0 b ffc306f4 <== NOT EXECUTED ffc1e478 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1e478: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc1e47c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED return realloc( ptr, size ); ffc1e480: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc1e484: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1e488: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED return realloc( ptr, size ); ffc1e48c: 48 00 00 81 bl ffc1e50c <== NOT EXECUTED } ffc1e490: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc1e494: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc1e498: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1e49c: 4e 80 00 20 blr <== NOT EXECUTED ffc69524 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc69524: 94 21 ff a0 stwu r1,-96(r1) <== NOT EXECUTED ffc69528: 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 ); ffc6952c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc69530: 93 a1 00 54 stw r29,84(r1) <== NOT EXECUTED ffc69534: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED ffc69538: 93 c1 00 58 stw r30,88(r1) <== NOT EXECUTED ffc6953c: 93 e1 00 5c stw r31,92(r1) <== NOT EXECUTED ffc69540: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED ffc69544: 90 01 00 64 stw r0,100(r1) <== NOT EXECUTED ffc69548: 93 61 00 4c stw r27,76(r1) <== NOT EXECUTED ffc6954c: 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 ); ffc69550: 4b f9 f7 7d bl ffc08ccc <== NOT EXECUTED if ( old_parent_pathlen == 0 ) ffc69554: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc69558: 40 82 04 84 bne- ffc699dc <_rename_r+0x4b8> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); ffc6955c: 88 1f 00 00 lbz r0,0(r31) <== NOT EXECUTED ffc69560: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED ffc69564: 41 9e 00 14 beq- cr7,ffc69578 <_rename_r+0x54> <== NOT EXECUTED ffc69568: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc6956c: 41 9e 00 0c beq- cr7,ffc69578 <_rename_r+0x54> <== NOT EXECUTED ffc69570: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69574: 40 9e 02 48 bne- cr7,ffc697bc <_rename_r+0x298> <== NOT EXECUTED ffc69578: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc6957c: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc69580: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc69584: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc69588: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc6958c: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc69590: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc69594: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc69598: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc6959c: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc695a0: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc695a4: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc695a8: 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; ffc695ac: 80 01 00 20 lwz r0,32(r1) <== NOT EXECUTED name = old + old_parent_pathlen; ffc695b0: 7f ff f2 14 add r31,r31,r30 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc695b4: 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; ffc695b8: 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 ), ffc695bc: 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; ffc695c0: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc695c4: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc695c8: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED ffc695cc: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED ffc695d0: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc695d4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc695d8: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED ffc695dc: 80 01 00 30 lwz r0,48(r1) <== NOT EXECUTED ffc695e0: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc695e4: 4b fe cd f1 bl ffc563d4 <== NOT EXECUTED ffc695e8: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc695ec: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc695f0: 4b f9 f6 8d bl ffc08c7c <== NOT EXECUTED ffc695f4: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc695f8: 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 ) ); ffc695fc: 93 e1 00 08 stw r31,8(r1) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc69600: 4b fe cd d5 bl ffc563d4 <== NOT EXECUTED ffc69604: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc69608: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc6960c: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc69610: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69614: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc69618: 4b f9 f7 41 bl ffc08d58 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { ffc6961c: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc69620: 40 82 02 80 bne- ffc698a0 <_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 ); ffc69624: 88 1d 00 00 lbz r0,0(r29) <== NOT EXECUTED ffc69628: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED ffc6962c: 41 9e 00 4c beq- cr7,ffc69678 <_rename_r+0x154> <== NOT EXECUTED ffc69630: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc69634: 41 9e 00 44 beq- cr7,ffc69678 <_rename_r+0x154> <== NOT EXECUTED ffc69638: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6963c: 41 9e 00 3c beq- cr7,ffc69678 <_rename_r+0x154> <== NOT EXECUTED ffc69640: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc69644: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc69648: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc6964c: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc69650: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc69654: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc69658: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc6965c: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED ffc69660: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED ffc69664: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED ffc69668: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED ffc6966c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc69670: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc69674: 48 00 00 38 b ffc696ac <_rename_r+0x188> <== NOT EXECUTED ffc69678: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc6967c: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc69680: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc69684: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc69688: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc6968c: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc69690: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc69694: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED ffc69698: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED ffc6969c: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED ffc696a0: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED ffc696a4: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc696a8: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { ffc696ac: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc696b0: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc696b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc696b8: 41 9e 02 c0 beq- cr7,ffc69978 <_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 ); ffc696bc: 3b e1 00 34 addi r31,r1,52 <== NOT EXECUTED ffc696c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc696c4: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc696c8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc696cc: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc696d0: 4e 80 04 21 bctrl <== NOT EXECUTED if ( result != 0 ) { ffc696d4: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc696d8: 40 82 02 04 bne- ffc698dc <_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 ) { ffc696dc: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc696e0: 81 21 00 30 lwz r9,48(r1) <== NOT EXECUTED ffc696e4: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc696e8: 40 9e 01 0c bne- cr7,ffc697f4 <_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 ) { ffc696ec: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc696f0: 80 09 00 40 lwz r0,64(r9) <== NOT EXECUTED ffc696f4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc696f8: 41 9e 02 68 beq- cr7,ffc69960 <_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 ); ffc696fc: 3b a1 00 20 addi r29,r1,32 <== NOT EXECUTED ffc69700: 80 c1 00 08 lwz r6,8(r1) <== NOT EXECUTED ffc69704: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc69708: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc6970c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc69710: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc69714: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc69718: 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 ); ffc6971c: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc69720: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69724: 41 9e 00 1c beq- cr7,ffc69740 <_rename_r+0x21c> <== NOT EXECUTED ffc69728: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc6972c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69730: 41 9e 00 10 beq- cr7,ffc69740 <_rename_r+0x21c> <== NOT EXECUTED ffc69734: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69738: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc6973c: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc69740: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc69744: 40 9e 00 50 bne- cr7,ffc69794 <_rename_r+0x270> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); ffc69748: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc6974c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69750: 41 9e 00 1c beq- cr7,ffc6976c <_rename_r+0x248> <== NOT EXECUTED ffc69754: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69758: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6975c: 41 9e 00 10 beq- cr7,ffc6976c <_rename_r+0x248> <== NOT EXECUTED ffc69760: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc69764: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69768: 4e 80 04 21 bctrl <== NOT EXECUTED return result; } ffc6976c: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED ffc69770: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc69774: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED ffc69778: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc6977c: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED ffc69780: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED ffc69784: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED ffc69788: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED ffc6978c: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED ffc69790: 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 ); ffc69794: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc69798: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc6979c: 41 be ff ac beq- cr7,ffc69748 <_rename_r+0x224> <== NOT EXECUTED ffc697a0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc697a4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc697a8: 41 be ff a0 beq- cr7,ffc69748 <_rename_r+0x224> <== NOT EXECUTED ffc697ac: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc697b0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc697b4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc697b8: 4b ff ff 90 b ffc69748 <_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 ); ffc697bc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc697c0: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc697c4: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc697c8: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc697cc: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc697d0: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc697d4: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc697d8: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc697dc: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc697e0: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc697e4: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc697e8: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc697ec: 90 01 00 30 stw r0,48(r1) <== NOT EXECUTED ffc697f0: 4b ff fd bc b ffc695ac <_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 ); ffc697f4: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc697f8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc697fc: 41 9e 00 1c beq- cr7,ffc69818 <_rename_r+0x2f4> <== NOT EXECUTED ffc69800: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69804: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69808: 41 9e 00 10 beq- cr7,ffc69818 <_rename_r+0x2f4> <== NOT EXECUTED ffc6980c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69810: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69814: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc69818: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc6981c: 41 9e 00 28 beq- cr7,ffc69844 <_rename_r+0x320> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc69820: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc69824: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69828: 41 9e 00 1c beq- cr7,ffc69844 <_rename_r+0x320> <== NOT EXECUTED ffc6982c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69830: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69834: 41 9e 00 10 beq- cr7,ffc69844 <_rename_r+0x320> <== NOT EXECUTED ffc69838: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc6983c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69840: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc69844: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc69848: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc6984c: 41 9e 00 1c beq- cr7,ffc69868 <_rename_r+0x344> <== NOT EXECUTED ffc69850: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69854: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69858: 41 9e 00 10 beq- cr7,ffc69868 <_rename_r+0x344> <== NOT EXECUTED ffc6985c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc69860: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69864: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); ffc69868: 4b fe 4d 99 bl ffc4e600 <__errno> <== NOT EXECUTED ffc6986c: 38 00 00 12 li r0,18 <== NOT EXECUTED ffc69870: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc69874: 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; } ffc69878: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc6987c: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED ffc69880: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED ffc69884: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc69888: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED ffc6988c: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED ffc69890: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED ffc69894: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED ffc69898: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED ffc6989c: 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 ) ffc698a0: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc698a4: 41 9e 00 28 beq- cr7,ffc698cc <_rename_r+0x3a8> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc698a8: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc698ac: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc698b0: 41 9e 00 1c beq- cr7,ffc698cc <_rename_r+0x3a8> <== NOT EXECUTED ffc698b4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc698b8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc698bc: 41 9e 00 10 beq- cr7,ffc698cc <_rename_r+0x3a8> <== NOT EXECUTED ffc698c0: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc698c4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc698c8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); ffc698cc: 4b fe 4d 35 bl ffc4e600 <__errno> <== NOT EXECUTED ffc698d0: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc698d4: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc698d8: 4b ff fe 94 b ffc6976c <_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 ); ffc698dc: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc698e0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc698e4: 41 9e 00 1c beq- cr7,ffc69900 <_rename_r+0x3dc> <== NOT EXECUTED ffc698e8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc698ec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc698f0: 41 9e 00 10 beq- cr7,ffc69900 <_rename_r+0x3dc> <== NOT EXECUTED ffc698f4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc698f8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc698fc: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc69900: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc69904: 41 9e 00 28 beq- cr7,ffc6992c <_rename_r+0x408> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc69908: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc6990c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69910: 41 9e 00 1c beq- cr7,ffc6992c <_rename_r+0x408> <== NOT EXECUTED ffc69914: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69918: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6991c: 41 9e 00 10 beq- cr7,ffc6992c <_rename_r+0x408> <== NOT EXECUTED ffc69920: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc69924: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69928: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc6992c: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc69930: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69934: 41 9e 00 1c beq- cr7,ffc69950 <_rename_r+0x42c> <== NOT EXECUTED ffc69938: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc6993c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69940: 41 9e 00 10 beq- cr7,ffc69950 <_rename_r+0x42c> <== NOT EXECUTED ffc69944: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc69948: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc6994c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); ffc69950: 4b fe 4c b1 bl ffc4e600 <__errno> <== NOT EXECUTED ffc69954: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc69958: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc6995c: 4b ff fe 10 b ffc6976c <_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 ); ffc69960: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69964: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69968: 41 9e 00 10 beq- cr7,ffc69978 <_rename_r+0x454> <== NOT EXECUTED ffc6996c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69970: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69974: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc69978: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc6997c: 41 9e 00 28 beq- cr7,ffc699a4 <_rename_r+0x480> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc69980: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc69984: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69988: 41 9e 00 1c beq- cr7,ffc699a4 <_rename_r+0x480> <== NOT EXECUTED ffc6998c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69990: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69994: 41 9e 00 10 beq- cr7,ffc699a4 <_rename_r+0x480> <== NOT EXECUTED ffc69998: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc6999c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc699a0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc699a4: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc699a8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc699ac: 41 9e 00 1c beq- cr7,ffc699c8 <_rename_r+0x4a4> <== NOT EXECUTED ffc699b0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc699b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc699b8: 41 9e 00 10 beq- cr7,ffc699c8 <_rename_r+0x4a4> <== NOT EXECUTED ffc699bc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc699c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc699c4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc699c8: 4b fe 4c 39 bl ffc4e600 <__errno> <== NOT EXECUTED ffc699cc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc699d0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc699d4: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc699d8: 4b ff fd 94 b ffc6976c <_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, ffc699dc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc699e0: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc699e4: 38 a0 00 02 li r5,2 <== NOT EXECUTED ffc699e8: 38 c1 00 20 addi r6,r1,32 <== NOT EXECUTED ffc699ec: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc699f0: 4b f9 f4 91 bl ffc08e80 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) ffc699f4: 3b 80 00 01 li r28,1 <== NOT EXECUTED ffc699f8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc699fc: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc69a00: 41 9e fb ac beq+ cr7,ffc695ac <_rename_r+0x88> <== NOT EXECUTED ffc69a04: 4b ff fd 68 b ffc6976c <_rename_r+0x248> <== NOT EXECUTED ffc0ade8 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc0ade8: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc0adec: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc0adf0: 4b ff fe c0 b ffc0acb0 <== NOT EXECUTED ffc12db8 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); ffc12db8: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc12dbc: 4b ff fc f8 b ffc12ab4 <== NOT EXECUTED ffc2e950 : #include int chdir( const char *pathname ) { ffc2e950: 94 21 ff d0 stwu r1,-48(r1) ffc2e954: 7c 08 02 a6 mflr r0 ffc2e958: 93 c1 00 28 stw r30,40(r1) ffc2e95c: 7c 7e 1b 78 mr r30,r3 ffc2e960: 90 01 00 34 stw r0,52(r1) ffc2e964: 93 e1 00 2c stw r31,44(r1) /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); ffc2e968: 48 02 7a 6d bl ffc563d4 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc2e96c: 3b e1 00 08 addi r31,r1,8 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); ffc2e970: 7c 64 1b 78 mr r4,r3 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc2e974: 38 a0 00 01 li r5,1 ffc2e978: 7f c3 f3 78 mr r3,r30 ffc2e97c: 7f e6 fb 78 mr r6,r31 ffc2e980: 38 e0 00 01 li r7,1 ffc2e984: 4b fd a4 fd bl ffc08e80 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) ffc2e988: 2f 83 00 00 cmpwi cr7,r3,0 ffc2e98c: 38 60 ff ff li r3,-1 ffc2e990: 40 9e 00 84 bne- cr7,ffc2ea14 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { ffc2e994: 81 21 00 14 lwz r9,20(r1) ffc2e998: 80 09 00 10 lwz r0,16(r9) ffc2e99c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2e9a0: 41 9e 00 c4 beq- cr7,ffc2ea64 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { ffc2e9a4: 7f e3 fb 78 mr r3,r31 ffc2e9a8: 7c 09 03 a6 mtctr r0 ffc2e9ac: 4e 80 04 21 bctrl ffc2e9b0: 2f 83 00 01 cmpwi cr7,r3,1 ffc2e9b4: 40 9e 00 78 bne- cr7,ffc2ea2c rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); ffc2e9b8: 3f e0 00 00 lis r31,0 ffc2e9bc: 81 3f 35 2c lwz r9,13612(r31) ffc2e9c0: 81 69 00 10 lwz r11,16(r9) ffc2e9c4: 2f 8b 00 00 cmpwi cr7,r11,0 ffc2e9c8: 41 9e 00 20 beq- cr7,ffc2e9e8 ffc2e9cc: 80 0b 00 1c lwz r0,28(r11) ffc2e9d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2e9d4: 41 9e 00 14 beq- cr7,ffc2e9e8 ffc2e9d8: 38 69 00 04 addi r3,r9,4 ffc2e9dc: 7c 09 03 a6 mtctr r0 ffc2e9e0: 4e 80 04 21 bctrl ffc2e9e4: 81 3f 35 2c lwz r9,13612(r31) rtems_filesystem_current = loc; ffc2e9e8: 80 01 00 14 lwz r0,20(r1) ffc2e9ec: 38 60 00 00 li r3,0 ffc2e9f0: 81 41 00 0c lwz r10,12(r1) ffc2e9f4: 81 61 00 10 lwz r11,16(r1) ffc2e9f8: 81 01 00 08 lwz r8,8(r1) ffc2e9fc: 91 49 00 08 stw r10,8(r9) ffc2ea00: 91 09 00 04 stw r8,4(r9) ffc2ea04: 91 69 00 0c stw r11,12(r9) ffc2ea08: 90 09 00 10 stw r0,16(r9) ffc2ea0c: 80 01 00 18 lwz r0,24(r1) ffc2ea10: 90 09 00 14 stw r0,20(r9) return 0; } ffc2ea14: 80 01 00 34 lwz r0,52(r1) ffc2ea18: 83 c1 00 28 lwz r30,40(r1) ffc2ea1c: 7c 08 03 a6 mtlr r0 ffc2ea20: 83 e1 00 2c lwz r31,44(r1) ffc2ea24: 38 21 00 30 addi r1,r1,48 ffc2ea28: 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 ); ffc2ea2c: 81 21 00 14 lwz r9,20(r1) ffc2ea30: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ea34: 41 9e 00 1c beq- cr7,ffc2ea50 ffc2ea38: 80 09 00 1c lwz r0,28(r9) ffc2ea3c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ea40: 41 9e 00 10 beq- cr7,ffc2ea50 ffc2ea44: 7f e3 fb 78 mr r3,r31 ffc2ea48: 7c 09 03 a6 mtctr r0 ffc2ea4c: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc2ea50: 48 01 fb b1 bl ffc4e600 <__errno> ffc2ea54: 38 00 00 14 li r0,20 ffc2ea58: 90 03 00 00 stw r0,0(r3) ffc2ea5c: 38 60 ff ff li r3,-1 ffc2ea60: 4b ff ff b4 b ffc2ea14 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); ffc2ea64: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2ea68: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2ea6c: 41 9e 00 10 beq- cr7,ffc2ea7c <== NOT EXECUTED ffc2ea70: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2ea74: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2ea78: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2ea7c: 48 01 fb 85 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2ea80: 38 00 00 86 li r0,134 <== 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 88 b ffc2ea14 <== NOT EXECUTED ffc08a88 : int chmod( const char *path, mode_t mode ) { ffc08a88: 94 21 ff c8 stwu r1,-56(r1) ffc08a8c: 7c 08 02 a6 mflr r0 ffc08a90: 93 a1 00 2c stw r29,44(r1) ffc08a94: 7c 7d 1b 78 mr r29,r3 ffc08a98: 90 01 00 3c stw r0,60(r1) ffc08a9c: 93 c1 00 30 stw r30,48(r1) ffc08aa0: 7c 9e 23 78 mr r30,r4 ffc08aa4: 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 ); ffc08aa8: 48 04 d9 2d bl ffc563d4 ffc08aac: 3b e1 00 08 addi r31,r1,8 ffc08ab0: 7c 64 1b 78 mr r4,r3 ffc08ab4: 38 a0 00 00 li r5,0 ffc08ab8: 7f a3 eb 78 mr r3,r29 ffc08abc: 7f e6 fb 78 mr r6,r31 ffc08ac0: 38 e0 00 01 li r7,1 ffc08ac4: 48 00 03 bd bl ffc08e80 if ( status != 0 ) ffc08ac8: 3b a0 ff ff li r29,-1 ffc08acc: 2f 83 00 00 cmpwi cr7,r3,0 ffc08ad0: 40 9e 00 54 bne- cr7,ffc08b24 return -1; if ( !loc.handlers ){ ffc08ad4: 81 21 00 10 lwz r9,16(r1) ffc08ad8: 2f 89 00 00 cmpwi cr7,r9,0 ffc08adc: 41 9e 00 a0 beq- cr7,ffc08b7c rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ ffc08ae0: 80 09 00 1c lwz r0,28(r9) ffc08ae4: 2f 80 00 00 cmpwi cr7,r0,0 ffc08ae8: 41 9e 00 5c beq- cr7,ffc08b44 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); ffc08aec: 7f c4 f3 78 mr r4,r30 ffc08af0: 7c 09 03 a6 mtctr r0 ffc08af4: 7f e3 fb 78 mr r3,r31 ffc08af8: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc08afc: 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 ); ffc08b00: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc08b04: 2f 89 00 00 cmpwi cr7,r9,0 ffc08b08: 41 9e 00 1c beq- cr7,ffc08b24 ffc08b0c: 80 09 00 1c lwz r0,28(r9) ffc08b10: 2f 80 00 00 cmpwi cr7,r0,0 ffc08b14: 41 9e 00 10 beq- cr7,ffc08b24 ffc08b18: 7f e3 fb 78 mr r3,r31 ffc08b1c: 7c 09 03 a6 mtctr r0 ffc08b20: 4e 80 04 21 bctrl return result; } ffc08b24: 80 01 00 3c lwz r0,60(r1) ffc08b28: 7f a3 eb 78 mr r3,r29 ffc08b2c: 83 c1 00 30 lwz r30,48(r1) ffc08b30: 7c 08 03 a6 mtlr r0 ffc08b34: 83 a1 00 2c lwz r29,44(r1) ffc08b38: 83 e1 00 34 lwz r31,52(r1) ffc08b3c: 38 21 00 38 addi r1,r1,56 ffc08b40: 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 ); ffc08b44: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc08b48: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc08b4c: 41 9e 00 1c beq- cr7,ffc08b68 <== NOT EXECUTED ffc08b50: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc08b54: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc08b58: 41 9e 00 10 beq- cr7,ffc08b68 <== NOT EXECUTED ffc08b5c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc08b60: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc08b64: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc08b68: 48 04 5a 99 bl ffc4e600 <__errno> <== NOT EXECUTED ffc08b6c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08b70: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc08b74: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc08b78: 4b ff ff ac b ffc08b24 <== 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 ); ffc08b7c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc08b80: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc08b84: 41 9e 00 1c beq- cr7,ffc08ba0 <== NOT EXECUTED ffc08b88: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc08b8c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc08b90: 41 9e 00 10 beq- cr7,ffc08ba0 <== NOT EXECUTED ffc08b94: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc08b98: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc08b9c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); ffc08ba0: 48 04 5a 61 bl ffc4e600 <__errno> <== NOT EXECUTED ffc08ba4: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc08ba8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc08bac: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc08bb0: 4b ff ff 74 b ffc08b24 <== NOT EXECUTED ffc2ea90 : int chown( const char *path, uid_t owner, gid_t group ) { ffc2ea90: 94 21 ff c8 stwu r1,-56(r1) ffc2ea94: 7c 08 02 a6 mflr r0 ffc2ea98: 93 81 00 28 stw r28,40(r1) ffc2ea9c: 7c 7c 1b 78 mr r28,r3 ffc2eaa0: 90 01 00 3c stw r0,60(r1) ffc2eaa4: 93 a1 00 2c stw r29,44(r1) ffc2eaa8: 7c 9d 23 78 mr r29,r4 ffc2eaac: 93 c1 00 30 stw r30,48(r1) ffc2eab0: 7c be 2b 78 mr r30,r5 ffc2eab4: 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 ) ) ffc2eab8: 48 02 79 1d bl ffc563d4 ffc2eabc: 3b e1 00 08 addi r31,r1,8 ffc2eac0: 7c 64 1b 78 mr r4,r3 ffc2eac4: 38 a0 00 00 li r5,0 ffc2eac8: 7f 83 e3 78 mr r3,r28 ffc2eacc: 7f e6 fb 78 mr r6,r31 ffc2ead0: 38 e0 00 01 li r7,1 ffc2ead4: 4b fd a3 ad bl ffc08e80 ffc2ead8: 3b 80 ff ff li r28,-1 ffc2eadc: 2f 83 00 00 cmpwi cr7,r3,0 ffc2eae0: 40 9e 00 50 bne- cr7,ffc2eb30 return -1; if ( !loc.ops->chown_h ) { ffc2eae4: 81 21 00 14 lwz r9,20(r1) ffc2eae8: 80 09 00 18 lwz r0,24(r9) ffc2eaec: 2f 80 00 00 cmpwi cr7,r0,0 ffc2eaf0: 41 9e 00 64 beq- cr7,ffc2eb54 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); ffc2eaf4: 7f a4 eb 78 mr r4,r29 ffc2eaf8: 7c 09 03 a6 mtctr r0 ffc2eafc: 7f c5 f3 78 mr r5,r30 ffc2eb00: 7f e3 fb 78 mr r3,r31 ffc2eb04: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc2eb08: 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 ); ffc2eb0c: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc2eb10: 2f 89 00 00 cmpwi cr7,r9,0 ffc2eb14: 41 9e 00 1c beq- cr7,ffc2eb30 ffc2eb18: 80 09 00 1c lwz r0,28(r9) ffc2eb1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2eb20: 41 9e 00 10 beq- cr7,ffc2eb30 ffc2eb24: 7f e3 fb 78 mr r3,r31 ffc2eb28: 7c 09 03 a6 mtctr r0 ffc2eb2c: 4e 80 04 21 bctrl return result; } ffc2eb30: 80 01 00 3c lwz r0,60(r1) ffc2eb34: 7f 83 e3 78 mr r3,r28 ffc2eb38: 83 a1 00 2c lwz r29,44(r1) ffc2eb3c: 7c 08 03 a6 mtlr r0 ffc2eb40: 83 81 00 28 lwz r28,40(r1) ffc2eb44: 83 c1 00 30 lwz r30,48(r1) ffc2eb48: 83 e1 00 34 lwz r31,52(r1) ffc2eb4c: 38 21 00 38 addi r1,r1,56 ffc2eb50: 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 ); ffc2eb54: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2eb58: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2eb5c: 41 9e 00 10 beq- cr7,ffc2eb6c <== NOT EXECUTED ffc2eb60: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2eb64: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2eb68: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2eb6c: 48 01 fa 95 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2eb70: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2eb74: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2eb78: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc2eb7c: 4b ff ff b4 b ffc2eb30 <== NOT EXECUTED ffc2eb80 : #include int chroot( const char *pathname ) { ffc2eb80: 94 21 ff c8 stwu r1,-56(r1) ffc2eb84: 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) { ffc2eb88: 3d 20 00 00 lis r9,0 #include int chroot( const char *pathname ) { ffc2eb8c: 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) { ffc2eb90: 3f e0 00 00 lis r31,0 #include int chroot( const char *pathname ) { ffc2eb94: 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) { ffc2eb98: 83 df 35 2c lwz r30,13612(r31) #include int chroot( const char *pathname ) { ffc2eb9c: 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) { ffc2eba0: 38 09 63 dc addi r0,r9,25564 ffc2eba4: 7f 9e 00 00 cmpw cr7,r30,r0 #include int chroot( const char *pathname ) { ffc2eba8: 93 a1 00 2c stw r29,44(r1) ffc2ebac: 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) { ffc2ebb0: 41 9e 00 b0 beq- cr7,ffc2ec60 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); ffc2ebb4: 7f a3 eb 78 mr r3,r29 ffc2ebb8: 4b ff fd 99 bl ffc2e950 if (result) { ffc2ebbc: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ebc0: 40 9e 00 c4 bne- cr7,ffc2ec84 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc2ebc4: 3c 60 ff c7 lis r3,-57 ffc2ebc8: 38 63 c0 d8 addi r3,r3,-16168 ffc2ebcc: 38 80 00 01 li r4,1 ffc2ebd0: 38 a0 00 00 li r5,0 ffc2ebd4: 38 c1 00 08 addi r6,r1,8 ffc2ebd8: 38 e0 00 00 li r7,0 ffc2ebdc: 4b fd a2 a5 bl ffc08e80 ffc2ebe0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ebe4: 40 9e 00 a0 bne- cr7,ffc2ec84 /* 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); ffc2ebe8: 81 3f 35 2c lwz r9,13612(r31) ffc2ebec: 81 69 00 24 lwz r11,36(r9) ffc2ebf0: 2f 8b 00 00 cmpwi cr7,r11,0 ffc2ebf4: 41 9e 00 24 beq- cr7,ffc2ec18 ffc2ebf8: 80 0b 00 1c lwz r0,28(r11) ffc2ebfc: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ec00: 41 9e 00 18 beq- cr7,ffc2ec18 ffc2ec04: 38 69 00 18 addi r3,r9,24 ffc2ec08: 7c 09 03 a6 mtctr r0 ffc2ec0c: 4e 80 04 21 bctrl ffc2ec10: 3d 20 00 00 lis r9,0 ffc2ec14: 81 29 35 2c lwz r9,13612(r9) rtems_filesystem_root = loc; ffc2ec18: 80 01 00 14 lwz r0,20(r1) ffc2ec1c: 38 60 00 00 li r3,0 ffc2ec20: 81 41 00 0c lwz r10,12(r1) ffc2ec24: 81 61 00 10 lwz r11,16(r1) ffc2ec28: 81 01 00 08 lwz r8,8(r1) ffc2ec2c: 91 49 00 1c stw r10,28(r9) ffc2ec30: 91 09 00 18 stw r8,24(r9) ffc2ec34: 91 69 00 20 stw r11,32(r9) ffc2ec38: 90 09 00 24 stw r0,36(r9) ffc2ec3c: 80 01 00 18 lwz r0,24(r1) ffc2ec40: 90 09 00 28 stw r0,40(r9) return 0; } ffc2ec44: 80 01 00 3c lwz r0,60(r1) ffc2ec48: 83 a1 00 2c lwz r29,44(r1) ffc2ec4c: 7c 08 03 a6 mtlr r0 ffc2ec50: 83 c1 00 30 lwz r30,48(r1) ffc2ec54: 83 e1 00 34 lwz r31,52(r1) ffc2ec58: 38 21 00 38 addi r1,r1,56 ffc2ec5c: 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*/ ffc2ec60: 48 00 1f c9 bl ffc30c28 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ ffc2ec64: 80 1f 35 2c lwz r0,13612(r31) ffc2ec68: 7f 80 f0 00 cmpw cr7,r0,r30 ffc2ec6c: 40 9e ff 48 bne+ cr7,ffc2ebb4 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2ec70: 48 01 f9 91 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2ec74: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2ec78: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2ec7c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2ec80: 4b ff ff c4 b ffc2ec44 <== 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 ); ffc2ec84: 48 01 f9 7d bl ffc4e600 <__errno> <== NOT EXECUTED ffc2ec88: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc2ec8c: 48 01 f9 75 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2ec90: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc2ec94: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2ec98: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED ffc2ec9c: 4b ff ff a8 b ffc2ec44 <== NOT EXECUTED ffc0cc2c : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { ffc0cc2c: 94 21 ff e8 stwu r1,-24(r1) ffc0cc30: 7c 08 02 a6 mflr r0 ffc0cc34: 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; ffc0cc38: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc0cc3c: 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; ffc0cc40: 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; ffc0cc44: 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; ffc0cc48: 81 23 00 3c lwz r9,60(r3) args.iop = iop; ffc0cc4c: 90 61 00 08 stw r3,8(r1) args.flags = 0; args.mode = 0; status = rtems_io_close( ffc0cc50: 80 89 00 0c lwz r4,12(r9) ffc0cc54: 80 69 00 08 lwz r3,8(r9) ffc0cc58: 48 00 18 f1 bl ffc0e548 np->major, np->minor, (void *) &args ); if ( status ) { ffc0cc5c: 38 00 00 00 li r0,0 ffc0cc60: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cc64: 41 be 00 0c beq+ cr7,ffc0cc70 return rtems_deviceio_errno(status); ffc0cc68: 48 00 01 7d bl ffc0cde4 <== NOT EXECUTED ffc0cc6c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc0cc70: 7c 03 03 78 mr r3,r0 ffc0cc74: 80 01 00 1c lwz r0,28(r1) ffc0cc78: 38 21 00 18 addi r1,r1,24 ffc0cc7c: 7c 08 03 a6 mtlr r0 ffc0cc80: 4e 80 00 20 blr ffc0cc90 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0cc90: 94 21 ff d8 stwu r1,-40(r1) ffc0cc94: 7c 08 02 a6 mflr r0 ffc0cc98: 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; ffc0cc9c: 83 a6 00 00 lwz r29,0(r6) const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0cca0: 93 01 00 08 stw r24,8(r1) ffc0cca4: 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) ffc0cca8: 2f 9d 00 00 cmpwi cr7,r29,0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0ccac: 93 41 00 10 stw r26,16(r1) ffc0ccb0: 7c 7a 1b 78 mr r26,r3 ffc0ccb4: 93 81 00 18 stw r28,24(r1) ffc0ccb8: 7c 9c 23 78 mr r28,r4 ffc0ccbc: 90 01 00 2c stw r0,44(r1) ffc0ccc0: 93 21 00 0c stw r25,12(r1) ffc0ccc4: 93 61 00 14 stw r27,20(r1) ffc0ccc8: 93 c1 00 20 stw r30,32(r1) ffc0cccc: 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) ffc0ccd0: 41 9e 01 00 beq- cr7,ffc0cdd0 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { ffc0ccd4: 3d 20 00 00 lis r9,0 ffc0ccd8: 83 69 26 b0 lwz r27,9904(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 ); ffc0ccdc: 38 00 00 00 li r0,0 ffc0cce0: 3b e0 00 00 li r31,0 for (i = 0; i < rtems_device_table_size; i++) { ffc0cce4: 2f 9b 00 00 cmpwi cr7,r27,0 ffc0cce8: 41 9e 00 4c beq- cr7,ffc0cd34 if (!device_name_table[i].device_name) ffc0ccec: 1c 00 00 14 mulli r0,r0,20 ffc0ccf0: 7f dd 00 2e lwzx r30,r29,r0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0ccf4: 7f 43 d3 78 mr r3,r26 ffc0ccf8: 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) ffc0ccfc: 2f 9e 00 00 cmpwi cr7,r30,0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0cd00: 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++) { ffc0cd04: 3b ff 00 01 addi r31,r31,1 if (!device_name_table[i].device_name) ffc0cd08: 7f 3d 02 14 add r25,r29,r0 ffc0cd0c: 41 9e 00 1c beq- cr7,ffc0cd28 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0cd10: 48 00 48 95 bl ffc115a4 ffc0cd14: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cd18: 40 9e 00 10 bne- cr7,ffc0cd28 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') ffc0cd1c: 7c 1e e0 ae lbzx r0,r30,r28 ffc0cd20: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cd24: 41 9e 00 50 beq- cr7,ffc0cd74 /* 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++) { ffc0cd28: 7f 9b f8 40 cmplw cr7,r27,r31 ffc0cd2c: 7f e0 fb 78 mr r0,r31 ffc0cd30: 41 9d ff bc bgt+ cr7,ffc0ccec pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); ffc0cd34: 48 00 37 71 bl ffc104a4 <__errno> ffc0cd38: 38 00 00 02 li r0,2 ffc0cd3c: 90 03 00 00 stw r0,0(r3) ffc0cd40: 38 60 ff ff li r3,-1 } ffc0cd44: 80 01 00 2c lwz r0,44(r1) ffc0cd48: 83 01 00 08 lwz r24,8(r1) ffc0cd4c: 7c 08 03 a6 mtlr r0 ffc0cd50: 83 21 00 0c lwz r25,12(r1) ffc0cd54: 83 41 00 10 lwz r26,16(r1) ffc0cd58: 83 61 00 14 lwz r27,20(r1) ffc0cd5c: 83 81 00 18 lwz r28,24(r1) ffc0cd60: 83 a1 00 1c lwz r29,28(r1) ffc0cd64: 83 c1 00 20 lwz r30,32(r1) ffc0cd68: 83 e1 00 24 lwz r31,36(r1) ffc0cd6c: 38 21 00 28 addi r1,r1,40 ffc0cd70: 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; ffc0cd74: 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]; ffc0cd78: 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; ffc0cd7c: 81 29 26 f8 lwz r9,9976(r9) ffc0cd80: 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; ffc0cd84: 3d 20 00 00 lis r9,0 pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; ffc0cd88: 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; ffc0cd8c: 38 09 21 48 addi r0,r9,8520 pathloc->ops = &devFS_ops; ffc0cd90: 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; ffc0cd94: 90 18 00 08 stw r0,8(r24) pathloc->ops = &devFS_ops; ffc0cd98: 38 09 21 80 addi r0,r9,8576 ffc0cd9c: 90 18 00 0c stw r0,12(r24) return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); } ffc0cda0: 80 01 00 2c lwz r0,44(r1) ffc0cda4: 83 01 00 08 lwz r24,8(r1) ffc0cda8: 7c 08 03 a6 mtlr r0 ffc0cdac: 83 21 00 0c lwz r25,12(r1) ffc0cdb0: 83 41 00 10 lwz r26,16(r1) ffc0cdb4: 83 61 00 14 lwz r27,20(r1) ffc0cdb8: 83 81 00 18 lwz r28,24(r1) ffc0cdbc: 83 a1 00 1c lwz r29,28(r1) ffc0cdc0: 83 c1 00 20 lwz r30,32(r1) ffc0cdc4: 83 e1 00 24 lwz r31,36(r1) ffc0cdc8: 38 21 00 28 addi r1,r1,40 ffc0cdcc: 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 ); ffc0cdd0: 48 00 36 d5 bl ffc104a4 <__errno> <== NOT EXECUTED ffc0cdd4: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0cdd8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cddc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0cde0: 4b ff ff c0 b ffc0cda0 <== NOT EXECUTED ffc03ad4 : 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 b0 lwz r0,9904(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 90 49 bl ffc0cb44 <_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 rtems_set_errno_and_return_minus_one( ENOMEM ); memset( ffc03b08: 80 bd 26 b0 lwz r5,9904(r29) ffc03b0c: 38 80 00 00 li r4,0 ffc03b10: 1c a5 00 14 mulli r5,r5,20 ffc03b14: 48 00 d5 69 bl ffc1107c 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 c9 55 bl ffc104a4 <__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 <== NOT EXECUTED ffc03d58 : 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 75 bl ffc08ff8 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 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 90 41 bl ffc0cde4 <== 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 : 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 (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 ffc03bb8: 2f 80 20 00 cmpwi cr7,r0,8192 ffc03bbc: 40 9e 01 58 bne- cr7,ffc03d14 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 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 b0 lwz r25,9904(r9) ffc03bd4: 2f 99 00 00 cmpwi cr7,r25,0 ffc03bd8: 41 9e 01 50 beq- cr7,ffc03d28 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 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 d7 fd bl ffc113e8 <== NOT EXECUTED ffc03bf0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc03bf4: 41 9e 00 b4 beq- cr7,ffc03ca8 <== 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 <== 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 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 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 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 d8 ad bl ffc11508 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 c7 fd bl ffc104a4 <__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 (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 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 ffc03d10: 4b ff ff 68 b ffc03c78 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 c7 91 bl ffc104a4 <__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 <== 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 c7 7d bl ffc104a4 <__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 <== 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 c7 69 bl ffc104a4 <__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 <== NOT EXECUTED ffc03db8 : 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 e9 bl ffc091cc 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 return rtems_deviceio_errno(status); ffc03df4: 48 00 8f f1 bl ffc0cde4 <== 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 : 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 d1 bl ffc0922c <== 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 <== 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 8f 69 bl ffc0cde4 <== 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 : 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 rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; ffc03ea8: 81 69 00 10 lwz r11,16(r9) ffc03eac: 38 60 00 00 li r3,0 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 ); ffc03eb0: 80 09 00 0c lwz r0,12(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc03eb4: 81 29 00 08 lwz r9,8(r9) buf->st_mode = the_dev->mode; ffc03eb8: 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 ); ffc03ebc: 91 24 00 18 stw r9,24(r4) ffc03ec0: 90 04 00 1c stw r0,28(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 c5 d1 bl ffc104a4 <__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 <== NOT EXECUTED ffc03ee8 : 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 59 bl ffc0928c 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 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 8e 91 bl ffc0cde4 <== 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 ffc10734 : */ int device_close( rtems_libio_t *iop ) { ffc10734: 94 21 ff e8 stwu r1,-24(r1) ffc10738: 7c 08 02 a6 mflr r0 ffc1073c: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc10740: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc10744: 38 a1 00 08 addi r5,r1,8 the_jnode = iop->file_info; args.iop = iop; args.flags = 0; args.mode = 0; ffc10748: 90 01 00 10 stw r0,16(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc1074c: 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; ffc10750: 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; ffc10754: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( ffc10758: 80 89 00 54 lwz r4,84(r9) ffc1075c: 80 69 00 50 lwz r3,80(r9) ffc10760: 48 00 1b b1 bl ffc12310 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { ffc10764: 38 00 00 00 li r0,0 ffc10768: 2f 83 00 00 cmpwi cr7,r3,0 ffc1076c: 41 be 00 0c beq+ cr7,ffc10778 return rtems_deviceio_errno(status); ffc10770: 48 00 22 a1 bl ffc12a10 <== NOT EXECUTED ffc10774: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc10778: 7c 03 03 78 mr r3,r0 ffc1077c: 80 01 00 1c lwz r0,28(r1) ffc10780: 38 21 00 18 addi r1,r1,24 ffc10784: 7c 08 03 a6 mtlr r0 ffc10788: 4e 80 00 20 blr ffc105e0 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc105e0: 94 21 ff e8 stwu r1,-24(r1) ffc105e4: 7c 08 02 a6 mflr r0 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; ffc105e8: 90 a1 00 10 stw r5,16(r1) the_jnode = iop->file_info; status = rtems_io_control( ffc105ec: 38 a1 00 08 addi r5,r1,8 int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc105f0: 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; ffc105f4: 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; ffc105f8: 90 61 00 08 stw r3,8(r1) args.command = command; args.buffer = buffer; the_jnode = iop->file_info; ffc105fc: 81 23 00 3c lwz r9,60(r3) status = rtems_io_control( ffc10600: 80 89 00 54 lwz r4,84(r9) ffc10604: 80 69 00 50 lwz r3,80(r9) ffc10608: 48 00 1d 69 bl ffc12370 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc1060c: 2f 83 00 00 cmpwi cr7,r3,0 ffc10610: 40 9e 00 18 bne- cr7,ffc10628 return rtems_deviceio_errno(status); return args.ioctl_return; } ffc10614: 80 01 00 1c lwz r0,28(r1) ); if ( status ) return rtems_deviceio_errno(status); return args.ioctl_return; ffc10618: 80 61 00 14 lwz r3,20(r1) } ffc1061c: 38 21 00 18 addi r1,r1,24 ffc10620: 7c 08 03 a6 mtlr r0 ffc10624: 4e 80 00 20 blr the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc10628: 48 00 23 e9 bl ffc12a10 <== NOT EXECUTED return args.ioctl_return; } ffc1062c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc10630: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc10634: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10638: 4e 80 00 20 blr <== NOT EXECUTED ffc1078c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc1078c: 94 21 ff e8 stwu r1,-24(r1) ffc10790: 7c 08 02 a6 mflr r0 ffc10794: 90 01 00 1c stw r0,28(r1) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc10798: 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; ffc1079c: 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; ffc107a0: 90 61 00 08 stw r3,8(r1) args.flags = iop->flags; ffc107a4: 90 01 00 0c stw r0,12(r1) args.mode = mode; ffc107a8: 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; ffc107ac: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc107b0: 80 89 00 54 lwz r4,84(r9) ffc107b4: 80 69 00 50 lwz r3,80(r9) ffc107b8: 48 00 1c 19 bl ffc123d0 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc107bc: 38 00 00 00 li r0,0 ffc107c0: 2f 83 00 00 cmpwi cr7,r3,0 ffc107c4: 41 be 00 0c beq+ cr7,ffc107d0 return rtems_deviceio_errno(status); ffc107c8: 48 00 22 49 bl ffc12a10 <== NOT EXECUTED ffc107cc: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED return 0; } ffc107d0: 7c 03 03 78 mr r3,r0 ffc107d4: 80 01 00 1c lwz r0,28(r1) ffc107d8: 38 21 00 18 addi r1,r1,24 ffc107dc: 7c 08 03 a6 mtlr r0 ffc107e0: 4e 80 00 20 blr ffc106b8 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc106b8: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc106bc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc106c0: 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; ffc106c4: 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; ffc106c8: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc106cc: 81 43 00 14 lwz r10,20(r3) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; ffc106d0: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED args.bytes_moved = 0; ffc106d4: 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; ffc106d8: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc106dc: 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; ffc106e0: 91 21 00 10 stw r9,16(r1) <== NOT EXECUTED ffc106e4: 91 41 00 14 stw r10,20(r1) <== NOT EXECUTED args.buffer = buffer; ffc106e8: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc106ec: 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; ffc106f0: 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; ffc106f4: 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( ffc106f8: 80 89 00 54 lwz r4,84(r9) <== NOT EXECUTED ffc106fc: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc10700: 48 00 1d 31 bl ffc12430 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc10704: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10708: 40 9e 00 18 bne- cr7,ffc10720 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } ffc1070c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ); if ( status ) return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; ffc10710: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED } ffc10714: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc10718: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1071c: 4e 80 00 20 blr <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc10720: 48 00 22 f1 bl ffc12a10 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } ffc10724: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc10728: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc1072c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10730: 4e 80 00 20 blr <== NOT EXECUTED ffc1063c : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc1063c: 94 21 ff d8 stwu r1,-40(r1) ffc10640: 7c 08 02 a6 mflr r0 ffc10644: 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; ffc10648: 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; ffc1064c: 81 23 00 10 lwz r9,16(r3) ffc10650: 81 43 00 14 lwz r10,20(r3) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ffc10654: 90 01 00 20 stw r0,32(r1) args.bytes_moved = 0; ffc10658: 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; ffc1065c: 90 a1 00 1c stw r5,28(r1) args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc10660: 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; ffc10664: 91 21 00 10 stw r9,16(r1) ffc10668: 91 41 00 14 stw r10,20(r1) args.buffer = (void *) buffer; ffc1066c: 90 81 00 18 stw r4,24(r1) args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc10670: 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; ffc10674: 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; ffc10678: 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( ffc1067c: 80 89 00 54 lwz r4,84(r9) ffc10680: 80 69 00 50 lwz r3,80(r9) ffc10684: 48 00 1e 0d bl ffc12490 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc10688: 2f 83 00 00 cmpwi cr7,r3,0 ffc1068c: 40 9e 00 18 bne- cr7,ffc106a4 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } ffc10690: 80 01 00 2c lwz r0,44(r1) ); if ( status ) return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; ffc10694: 80 61 00 24 lwz r3,36(r1) } ffc10698: 38 21 00 28 addi r1,r1,40 ffc1069c: 7c 08 03 a6 mtlr r0 ffc106a0: 4e 80 00 20 blr the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc106a4: 48 00 23 6d bl ffc12a10 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } ffc106a8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc106ac: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc106b0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc106b4: 4e 80 00 20 blr <== NOT EXECUTED ffc06948 : /* * 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 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 <== 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 <== 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 <== 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 <== 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 4d bl ffc09038 <== NOT EXECUTED ffc056a0 : int dup2( int fildes, int fildes2 ) { ffc056a0: 94 21 ff 98 stwu r1,-104(r1) ffc056a4: 7c 08 02 a6 mflr r0 ffc056a8: 93 e1 00 64 stw r31,100(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc056ac: 3b e1 00 08 addi r31,r1,8 int dup2( int fildes, int fildes2 ) { ffc056b0: 93 c1 00 60 stw r30,96(r1) ffc056b4: 7c 9e 23 78 mr r30,r4 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc056b8: 7f e4 fb 78 mr r4,r31 int dup2( int fildes, int fildes2 ) { ffc056bc: 93 a1 00 5c stw r29,92(r1) ffc056c0: 7c 7d 1b 78 mr r29,r3 ffc056c4: 90 01 00 6c stw r0,108(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc056c8: 48 00 08 f5 bl ffc05fbc if ( status == -1 ) ffc056cc: 2f 83 ff ff cmpwi cr7,r3,-1 ffc056d0: 40 9e 00 24 bne- cr7,ffc056f4 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); ffc056d4: 38 60 ff ff li r3,-1 } ffc056d8: 80 01 00 6c lwz r0,108(r1) ffc056dc: 83 a1 00 5c lwz r29,92(r1) ffc056e0: 7c 08 03 a6 mtlr r0 ffc056e4: 83 c1 00 60 lwz r30,96(r1) ffc056e8: 83 e1 00 64 lwz r31,100(r1) ffc056ec: 38 21 00 68 addi r1,r1,104 ffc056f0: 4e 80 00 20 blr /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); ffc056f4: 7f e4 fb 78 mr r4,r31 ffc056f8: 7f c3 f3 78 mr r3,r30 ffc056fc: 48 00 08 c1 bl ffc05fbc if ( status == -1 ) ffc05700: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05704: 41 be ff d0 beq- cr7,ffc056d4 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); ffc05708: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0570c: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc05710: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05714: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc05718: 48 00 03 41 bl ffc05a58 <== NOT EXECUTED ffc0571c: 4b ff ff bc b ffc056d8 <== NOT EXECUTED ffc0625c : /* * 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 <== NOT EXECUTED ffc0627c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06280: 81 29 26 e0 lwz r9,9952(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 <== NOT EXECUTED ffc06294: 2f 83 00 09 cmpwi cr7,r3,9 <== NOT EXECUTED ffc06298: 41 9e 00 0c beq- cr7,ffc062a4 <== NOT EXECUTED ffc0629c: 2f 83 00 0a cmpwi cr7,r3,10 <== NOT EXECUTED ffc062a0: 40 9e 00 20 bne- cr7,ffc062c0 <== 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 <== 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 <== 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 ffc2f450 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) ffc2f450: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc2f454: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2f458: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp != NULL) ffc2f45c: 80 69 5f 74 lwz r3,24436(r9) <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc2f460: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (group_fp != NULL) ffc2f464: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2f468: 41 9e 00 08 beq- cr7,ffc2f470 <== NOT EXECUTED fclose(group_fp); ffc2f46c: 48 01 f3 35 bl ffc4e7a0 <== NOT EXECUTED } ffc2f470: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2f474: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2f478: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f47c: 4e 80 00 20 blr <== NOT EXECUTED ffc2f480 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) ffc2f480: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc2f484: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2f488: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp != NULL) ffc2f48c: 80 69 5f 78 lwz r3,24440(r9) <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc2f490: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (passwd_fp != NULL) ffc2f494: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2f498: 41 9e 00 08 beq- cr7,ffc2f4a0 <== NOT EXECUTED fclose(passwd_fp); ffc2f49c: 48 01 f3 05 bl ffc4e7a0 <== NOT EXECUTED } ffc2f4a0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2f4a4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2f4a8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f4ac: 4e 80 00 20 blr <== NOT EXECUTED ffc06300 : * 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 <== NOT EXECUTED return; if (lineFlag) { ffc06338: 2e 04 00 00 cmpwi cr4,r4,0 <== NOT EXECUTED ffc0633c: 40 92 00 84 bne- cr4,ffc063c0 <== 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 e0 addi r28,r28,9952 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc06354: 3b 7b f9 48 addi r27,r27,-1720 <== NOT EXECUTED ffc06358: 3b bd f9 44 addi r29,r29,-1724 <== 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 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { ffc06374: 40 92 00 0c bne- cr4,ffc06380 <== NOT EXECUTED ffc06378: 70 0a 00 10 andi. r10,r0,16 <== NOT EXECUTED ffc0637c: 41 82 01 d8 beq- ffc06554 <== 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 <== 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 <== NOT EXECUTED ffc063a0: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc063a4: 40 82 00 58 bne- ffc063fc <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) ffc063a8: 41 92 00 28 beq- cr4,ffc063d0 <== 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 <== NOT EXECUTED ffc063b8: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc063bc: 4b ff ff a0 b ffc0635c <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) ffc064a0: 41 9a 00 08 beq- cr6,ffc064a8 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc064dc: 4b ff fe cc b ffc063a8 <== 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 <== NOT EXECUTED ffc064e8: 4b ff ff c4 b ffc064ac <== 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 <== NOT EXECUTED ffc064f8: 4b ff ff b4 b ffc064ac <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc46938 : #include int fchdir( int fd ) { ffc46938: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc4693c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); ffc46940: 3d 20 00 00 lis r9,0 <== NOT EXECUTED #include int fchdir( int fd ) { ffc46944: 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 ); ffc46948: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED #include int fchdir( int fd ) { ffc4694c: 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 ); ffc46950: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED #include int fchdir( int fd ) { ffc46954: 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 ); ffc46958: 40 9c 01 50 bge- cr7,ffc46aa8 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc4695c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc46960: 83 e9 35 f4 lwz r31,13812(r9) <== NOT EXECUTED ffc46964: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc46968: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc4696c: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED ffc46970: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc46974: 41 82 01 34 beq- ffc46aa8 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc46978: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc4697c: 41 82 01 74 beq- ffc46af0 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { ffc46980: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc46984: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc46988: 41 9e 01 7c beq- cr7,ffc46b04 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { ffc4698c: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc46990: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc46994: 41 9e 01 70 beq- cr7,ffc46b04 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != ffc46998: 38 7f 00 1c addi r3,r31,28 <== NOT EXECUTED ffc4699c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc469a0: 4e 80 04 21 bctrl <== NOT EXECUTED ffc469a4: 2f 83 00 01 cmpwi cr7,r3,1 <== NOT EXECUTED ffc469a8: 40 9e 00 ec bne- cr7,ffc46a94 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc469ac: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc469b0: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc469b4: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED ffc469b8: 38 63 c0 d8 addi r3,r3,-16168 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc469bc: 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)) { ffc469c0: 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; ffc469c4: 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)) { ffc469c8: 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; ffc469cc: 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)) { ffc469d0: 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; ffc469d4: 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)) { ffc469d8: 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; ffc469dc: 91 01 00 1c stw r8,28(r1) <== NOT EXECUTED ffc469e0: 91 41 00 20 stw r10,32(r1) <== NOT EXECUTED ffc469e4: 91 61 00 24 stw r11,36(r1) <== NOT EXECUTED ffc469e8: 90 01 00 28 stw r0,40(r1) <== NOT EXECUTED ffc469ec: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc469f0: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; ffc469f4: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED ffc469f8: 81 1f 00 1c lwz r8,28(r31) <== NOT EXECUTED ffc469fc: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED ffc46a00: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED ffc46a04: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc46a08: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc46a0c: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc46a10: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc46a14: 80 1f 00 2c lwz r0,44(r31) <== NOT EXECUTED ffc46a18: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc46a1c: 4b fc 24 65 bl ffc08e80 <== NOT EXECUTED ffc46a20: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc46a24: 40 9e 00 98 bne- cr7,ffc46abc <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); ffc46a28: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc46a2c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc46a30: 41 9e 00 1c beq- cr7,ffc46a4c <== NOT EXECUTED ffc46a34: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc46a38: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc46a3c: 41 9e 00 10 beq- cr7,ffc46a4c <== NOT EXECUTED ffc46a40: 38 61 00 1c addi r3,r1,28 <== NOT EXECUTED ffc46a44: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc46a48: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_current = loc; ffc46a4c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc46a50: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc46a54: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED ffc46a58: 81 41 00 0c lwz r10,12(r1) <== NOT EXECUTED ffc46a5c: 81 61 00 10 lwz r11,16(r1) <== NOT EXECUTED ffc46a60: 81 01 00 08 lwz r8,8(r1) <== NOT EXECUTED ffc46a64: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc46a68: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc46a6c: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc46a70: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc46a74: 80 01 00 18 lwz r0,24(r1) <== NOT EXECUTED ffc46a78: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED return 0; } ffc46a7c: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc46a80: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc46a84: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc46a88: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc46a8c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc46a90: 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 ); ffc46a94: 48 00 7b 6d bl ffc4e600 <__errno> <== NOT EXECUTED ffc46a98: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc46a9c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46aa0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc46aa4: 4b ff ff d8 b ffc46a7c <== 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); ffc46aa8: 48 00 7b 59 bl ffc4e600 <__errno> <== NOT EXECUTED ffc46aac: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc46ab0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46ab4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc46ab8: 4b ff ff c4 b ffc46a7c <== 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; ffc46abc: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED ffc46ac0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc46ac4: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED ffc46ac8: 81 41 00 20 lwz r10,32(r1) <== NOT EXECUTED ffc46acc: 81 61 00 24 lwz r11,36(r1) <== NOT EXECUTED ffc46ad0: 81 01 00 1c lwz r8,28(r1) <== NOT EXECUTED ffc46ad4: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc46ad8: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc46adc: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc46ae0: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc46ae4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc46ae8: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED return -1; ffc46aec: 4b ff ff 90 b ffc46a7c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc46af0: 48 00 7b 11 bl ffc4e600 <__errno> <== NOT EXECUTED ffc46af4: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc46af8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46afc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc46b00: 4b ff ff 7c b ffc46a7c <== 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 ); ffc46b04: 48 00 7a fd bl ffc4e600 <__errno> <== NOT EXECUTED ffc46b08: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc46b0c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46b10: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc46b14: 4b ff ff 68 b ffc46a7c <== NOT EXECUTED ffc2efe0 : int fchmod( int fd, mode_t mode ) { ffc2efe0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2efe4: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2efe8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { ffc2efec: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2eff0: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED ffc2eff4: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2eff8: 40 9c 00 5c bge- cr7,ffc2f054 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc2effc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2f000: 80 09 35 f4 lwz r0,13812(r9) <== NOT EXECUTED ffc2f004: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc2f008: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc2f00c: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc2f010: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc2f014: 41 82 00 40 beq- ffc2f054 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2f018: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc2f01c: 41 82 00 4c beq- ffc2f068 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) ffc2f020: 81 23 00 40 lwz r9,64(r3) <== NOT EXECUTED ffc2f024: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2f028: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2f02c: 41 9e 00 50 beq- cr7,ffc2f07c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); ffc2f030: 81 23 00 24 lwz r9,36(r3) <== NOT EXECUTED ffc2f034: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED ffc2f038: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2f03c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2f040: 4e 80 04 21 bctrl <== NOT EXECUTED } ffc2f044: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2f048: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2f04c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f050: 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); ffc2f054: 48 01 f5 ad bl ffc4e600 <__errno> <== NOT EXECUTED ffc2f058: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2f05c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2f060: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2f064: 4b ff ff e0 b ffc2f044 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2f068: 48 01 f5 99 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2f06c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2f070: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2f074: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2f078: 4b ff ff cc b ffc2f044 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2f07c: 48 01 f5 85 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2f080: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2f084: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2f088: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2f08c: 4b ff ff b8 b ffc2f044 <== NOT EXECUTED ffc2f090 : int fchown( int fd, uid_t owner, gid_t group ) { ffc2f090: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2f094: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2f098: 3d 20 00 00 lis r9,0 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { ffc2f09c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2f0a0: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED ffc2f0a4: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2f0a8: 40 9c 00 54 bge- cr7,ffc2f0fc <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc2f0ac: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2f0b0: 80 09 35 f4 lwz r0,13812(r9) <== NOT EXECUTED ffc2f0b4: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc2f0b8: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc2f0bc: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc2f0c0: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc2f0c4: 41 82 00 38 beq- ffc2f0fc <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2f0c8: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc2f0cc: 41 82 00 44 beq- ffc2f110 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) ffc2f0d0: 81 23 00 28 lwz r9,40(r3) <== NOT EXECUTED ffc2f0d4: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc2f0d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2f0dc: 41 9e 00 48 beq- cr7,ffc2f124 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); ffc2f0e0: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED ffc2f0e4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2f0e8: 4e 80 04 21 bctrl <== NOT EXECUTED } ffc2f0ec: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2f0f0: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2f0f4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f0f8: 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); ffc2f0fc: 48 01 f5 05 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2f100: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2f104: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2f108: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2f10c: 4b ff ff e0 b ffc2f0ec <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2f110: 48 01 f4 f1 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2f114: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2f118: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2f11c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2f120: 4b ff ff cc b ffc2f0ec <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2f124: 48 01 f4 dd bl ffc4e600 <__errno> <== NOT EXECUTED ffc2f128: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2f12c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2f130: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2f134: 4b ff ff b8 b ffc2f0ec <== NOT EXECUTED ffc46b18 : int fcntl( int fd, int cmd, ... ) { ffc46b18: 94 21 ff c0 stwu r1,-64(r1) ffc46b1c: 7c 08 02 a6 mflr r0 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc46b20: 3d 20 00 00 lis r9,0 int fcntl( int fd, int cmd, ... ) { ffc46b24: 90 01 00 44 stw r0,68(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc46b28: 80 09 34 cc lwz r0,13516(r9) ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc46b2c: 39 20 00 02 li r9,2 ffc46b30: 99 21 00 08 stb r9,8(r1) ffc46b34: 39 21 00 48 addi r9,r1,72 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc46b38: 7f 83 00 40 cmplw cr7,r3,r0 ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc46b3c: 91 21 00 0c stw r9,12(r1) ffc46b40: 39 21 00 10 addi r9,r1,16 int fcntl( int fd, int cmd, ... ) { ffc46b44: 93 a1 00 34 stw r29,52(r1) ffc46b48: 93 c1 00 38 stw r30,56(r1) ffc46b4c: 93 e1 00 3c stw r31,60(r1) ffc46b50: 90 a1 00 18 stw r5,24(r1) ffc46b54: 90 c1 00 1c stw r6,28(r1) ffc46b58: 90 e1 00 20 stw r7,32(r1) int ret; va_list ap; va_start( ap, cmd ); ffc46b5c: 91 21 00 10 stw r9,16(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc46b60: 40 9c 02 58 bge- cr7,ffc46db8 iop = rtems_libio_iop( fd ); ffc46b64: 3f a0 00 00 lis r29,0 ffc46b68: 1c 63 00 48 mulli r3,r3,72 ffc46b6c: 81 7d 35 f4 lwz r11,13812(r29) ffc46b70: 7f cb 1a 14 add r30,r11,r3 rtems_libio_check_is_open(iop); ffc46b74: 80 7e 00 18 lwz r3,24(r30) ffc46b78: 70 69 01 00 andi. r9,r3,256 ffc46b7c: 41 82 02 3c beq- ffc46db8 /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { ffc46b80: 2b 84 00 09 cmplwi cr7,r4,9 ffc46b84: 40 9d 00 18 ble- cr7,ffc46b9c errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; ffc46b88: 48 00 7a 79 bl ffc4e600 <__errno> ffc46b8c: 38 00 00 16 li r0,22 ffc46b90: 90 03 00 00 stw r0,0(r3) ffc46b94: 3b e0 ff ff li r31,-1 ffc46b98: 48 00 00 30 b ffc46bc8 /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { ffc46b9c: 3d 20 ff c7 lis r9,-57 ffc46ba0: 39 29 42 04 addi r9,r9,16900 ffc46ba4: 54 8a 10 3a rlwinm r10,r4,2,0,29 ffc46ba8: 7d 49 50 2e lwzx r10,r9,r10 ffc46bac: 7d 2a 4a 14 add r9,r10,r9 ffc46bb0: 7d 29 03 a6 mtctr r9 ffc46bb4: 4e 80 04 20 bctr errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; ffc46bb8: 48 00 7a 49 bl ffc4e600 <__errno> ffc46bbc: 38 00 00 86 li r0,134 ffc46bc0: 90 03 00 00 stw r0,0(r3) ffc46bc4: 3b e0 ff ff li r31,-1 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } ffc46bc8: 80 01 00 44 lwz r0,68(r1) ffc46bcc: 7f e3 fb 78 mr r3,r31 ffc46bd0: 83 a1 00 34 lwz r29,52(r1) ffc46bd4: 7c 08 03 a6 mtlr r0 ffc46bd8: 83 c1 00 38 lwz r30,56(r1) ffc46bdc: 83 e1 00 3c lwz r31,60(r1) ffc46be0: 38 21 00 40 addi r1,r1,64 ffc46be4: 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 ) ); ffc46be8: 89 21 00 08 lbz r9,8(r1) ffc46bec: 2b 89 00 07 cmplwi cr7,r9,7 ffc46bf0: 40 9d 01 b0 ble- cr7,ffc46da0 ffc46bf4: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc46bf8: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc46bfc: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc46c00: 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); ffc46c04: 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 ) ); ffc46c08: 90 81 00 28 stw r4,40(r1) ffc46c0c: 4b fc 29 0d bl ffc09518 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); ffc46c10: 39 20 fd fe li r9,-514 ffc46c14: 80 1e 00 18 lwz r0,24(r30) ffc46c18: 70 63 02 01 andi. r3,r3,513 ffc46c1c: 80 81 00 28 lwz r4,40(r1) ffc46c20: 7d 20 00 38 and r0,r9,r0 ffc46c24: 7c 60 03 78 or r0,r3,r0 ffc46c28: 90 1e 00 18 stw r0,24(r30) ffc46c2c: 48 00 00 1c b ffc46c48 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); ffc46c30: 90 81 00 28 stw r4,40(r1) ffc46c34: 4b fc 25 c5 bl ffc091f8 ffc46c38: 7c 7f 1b 78 mr r31,r3 ffc46c3c: 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) { ffc46c40: 2f 9f 00 00 cmpwi cr7,r31,0 ffc46c44: 41 bc ff 84 blt- cr7,ffc46bc8 if (iop->handlers->fcntl_h) { ffc46c48: 81 3e 00 40 lwz r9,64(r30) ffc46c4c: 80 09 00 30 lwz r0,48(r9) ffc46c50: 2f 80 00 00 cmpwi cr7,r0,0 ffc46c54: 41 be ff 74 beq- cr7,ffc46bc8 int err = (*iop->handlers->fcntl_h)( cmd, iop ); ffc46c58: 7c 83 23 78 mr r3,r4 ffc46c5c: 7c 09 03 a6 mtctr r0 ffc46c60: 7f c4 f3 78 mr r4,r30 ffc46c64: 4e 80 04 21 bctrl if (err) { ffc46c68: 7c 7e 1b 79 mr. r30,r3 ffc46c6c: 41 82 ff 5c beq+ ffc46bc8 errno = err; ffc46c70: 48 00 79 91 bl ffc4e600 <__errno> <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } ffc46c74: 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; ffc46c78: 3b e0 ff ff li r31,-1 <== NOT EXECUTED ffc46c7c: 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; } ffc46c80: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc46c84: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc46c88: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc46c8c: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc46c90: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc46c94: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc46c98: 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 ) ) ffc46c9c: 89 21 00 08 lbz r9,8(r1) ffc46ca0: 2b 89 00 07 cmplwi cr7,r9,7 ffc46ca4: 41 9d 00 ec bgt- cr7,ffc46d90 ffc46ca8: 38 09 00 01 addi r0,r9,1 ffc46cac: 81 61 00 10 lwz r11,16(r1) ffc46cb0: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc46cb4: 98 01 00 08 stb r0,8(r1) ffc46cb8: 7d 2b 4a 14 add r9,r11,r9 ffc46cbc: 80 09 00 00 lwz r0,0(r9) ffc46cc0: 2f 80 00 00 cmpwi cr7,r0,0 ffc46cc4: 41 9e 01 08 beq- cr7,ffc46dcc iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; ffc46cc8: 60 63 08 00 ori r3,r3,2048 ffc46ccc: 90 7e 00 18 stw r3,24(r30) ffc46cd0: 3b e0 00 00 li r31,0 ffc46cd4: 4b ff ff 74 b ffc46c48 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); ffc46cd8: 54 7f af fe rlwinm r31,r3,21,31,31 ffc46cdc: 4b ff ff 6c b ffc46c48 * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); ffc46ce0: 89 21 00 08 lbz r9,8(r1) ffc46ce4: 2b 89 00 07 cmplwi cr7,r9,7 ffc46ce8: 41 9d 00 98 bgt- cr7,ffc46d80 ffc46cec: 39 49 00 01 addi r10,r9,1 ffc46cf0: 81 01 00 10 lwz r8,16(r1) ffc46cf4: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc46cf8: 99 41 00 08 stb r10,8(r1) ffc46cfc: 7d 28 4a 14 add r9,r8,r9 ffc46d00: 81 29 00 00 lwz r9,0(r9) if ( fd2 ) ffc46d04: 2f 89 00 00 cmpwi cr7,r9,0 ffc46d08: 41 9e 00 d4 beq- cr7,ffc46ddc diop = rtems_libio_iop( fd2 ); ffc46d0c: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED ffc46d10: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc46d14: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc46d18: 40 9d 00 10 ble- cr7,ffc46d28 <== NOT EXECUTED ffc46d1c: 1d 29 00 48 mulli r9,r9,72 <== NOT EXECUTED ffc46d20: 7c 6b 4a 14 add r3,r11,r9 <== NOT EXECUTED ffc46d24: 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; ffc46d28: 81 1e 00 1c lwz r8,28(r30) ret = (int) (diop - rtems_libio_iops); ffc46d2c: 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; ffc46d30: 81 5e 00 20 lwz r10,32(r30) ret = (int) (diop - rtems_libio_iops); ffc46d34: 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; ffc46d38: 81 3e 00 24 lwz r9,36(r30) ffc46d3c: 80 1e 00 28 lwz r0,40(r30) ffc46d40: 91 03 00 1c stw r8,28(r3) ret = (int) (diop - rtems_libio_iops); ffc46d44: 3d 00 38 e3 lis r8,14563 ffc46d48: 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; ffc46d4c: 91 23 00 24 stw r9,36(r3) ret = (int) (diop - rtems_libio_iops); ffc46d50: 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; ffc46d54: 90 03 00 28 stw r0,40(r3) ffc46d58: 91 43 00 20 stw r10,32(r3) ret = -1; break; } } diop->handlers = iop->handlers; ffc46d5c: 81 7e 00 40 lwz r11,64(r30) diop->file_info = iop->file_info; ffc46d60: 81 3e 00 3c lwz r9,60(r30) diop->flags = iop->flags; ffc46d64: 80 1e 00 18 lwz r0,24(r30) diop->pathinfo = iop->pathinfo; ffc46d68: 81 5e 00 2c lwz r10,44(r30) ret = -1; break; } } diop->handlers = iop->handlers; ffc46d6c: 91 63 00 40 stw r11,64(r3) diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc46d70: 91 43 00 2c stw r10,44(r3) break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; ffc46d74: 91 23 00 3c stw r9,60(r3) diop->flags = iop->flags; ffc46d78: 90 03 00 18 stw r0,24(r3) ffc46d7c: 4b ff fe c4 b ffc46c40 * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); ffc46d80: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc46d84: 39 49 00 04 addi r10,r9,4 <== NOT EXECUTED ffc46d88: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc46d8c: 4b ff ff 74 b ffc46d00 <== 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 ) ) ffc46d90: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc46d94: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc46d98: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc46d9c: 4b ff ff 20 b ffc46cbc <== 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 ) ); ffc46da0: 81 61 00 10 lwz r11,16(r1) ffc46da4: 38 09 00 01 addi r0,r9,1 ffc46da8: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc46dac: 98 01 00 08 stb r0,8(r1) ffc46db0: 7d 2b 4a 14 add r9,r11,r9 ffc46db4: 4b ff fe 4c b ffc46c00 int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc46db8: 48 00 78 49 bl ffc4e600 <__errno> <== NOT EXECUTED ffc46dbc: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc46dc0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46dc4: 3b e0 ff ff li r31,-1 <== NOT EXECUTED ffc46dc8: 4b ff fe 00 b ffc46bc8 <== NOT EXECUTED */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; ffc46dcc: 54 63 05 66 rlwinm r3,r3,0,21,19 <== NOT EXECUTED ffc46dd0: 90 7e 00 18 stw r3,24(r30) <== NOT EXECUTED ffc46dd4: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc46dd8: 4b ff fe 70 b ffc46c48 <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); ffc46ddc: 90 81 00 28 stw r4,40(r1) ffc46de0: 4b fc 26 59 bl ffc09438 if ( diop == 0 ) { ffc46de4: 2c 03 00 00 cmpwi r3,0 ffc46de8: 3b e0 ff ff li r31,-1 ffc46dec: 80 81 00 28 lwz r4,40(r1) ffc46df0: 41 a2 fd d8 beq- ffc46bc8 ffc46df4: 81 7d 35 f4 lwz r11,13812(r29) ffc46df8: 7c 7f 1b 78 mr r31,r3 ffc46dfc: 4b ff ff 2c b ffc46d28 ffc10f78 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10f78: 94 21 ff c8 stwu r1,-56(r1) ffc10f7c: 7c 08 02 a6 mflr r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10f80: 38 a0 00 00 li r5,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10f84: 93 c1 00 30 stw r30,48(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10f88: 3f c0 00 00 lis r30,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10f8c: 93 e1 00 34 stw r31,52(r1) ffc10f90: 7c 7f 1b 78 mr r31,r3 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10f94: 80 7e 29 90 lwz r3,10640(r30) */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10f98: 93 81 00 28 stw r28,40(r1) ffc10f9c: 7c 9c 23 78 mr r28,r4 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10fa0: 38 80 00 00 li r4,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10fa4: 93 41 00 20 stw r26,32(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10fa8: 3b 40 ff fc li r26,-4 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10fac: 90 01 00 3c stw r0,60(r1) ffc10fb0: 93 21 00 1c stw r25,28(r1) ffc10fb4: 93 61 00 24 stw r27,36(r1) ffc10fb8: 93 a1 00 2c stw r29,44(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10fbc: 4b ff 77 55 bl ffc08710 ffc10fc0: 2f 83 00 00 cmpwi cr7,r3,0 ffc10fc4: 40 9e 00 7c bne- cr7,ffc11040 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; ffc10fc8: 83 bf 00 00 lwz r29,0(r31) <== NOT EXECUTED if (pipe == NULL) { ffc10fcc: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc10fd0: 41 9e 02 2c beq- cr7,ffc111fc <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc10fd4: 80 7d 00 28 lwz r3,40(r29) <== NOT EXECUTED ffc10fd8: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10fdc: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10fe0: 4b ff 77 31 bl ffc08710 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc10fe4: 80 1f 00 00 lwz r0,0(r31) <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc10fe8: 30 63 ff ff addic r3,r3,-1 <== NOT EXECUTED ffc10fec: 7c 63 19 10 subfe r3,r3,r3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc10ff0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc10ff4: 54 7a 07 7a rlwinm r26,r3,0,29,29 <== NOT EXECUTED ffc10ff8: 3b 5a ff fc addi r26,r26,-4 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc10ffc: 41 9e 01 10 beq- cr7,ffc1110c <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc11000: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc11004: 4b ff 78 6d bl ffc08870 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) ffc11008: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc1100c: 40 9e 00 34 bne- cr7,ffc11040 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { ffc11010: 81 3c 00 18 lwz r9,24(r28) <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; ffc11014: 83 df 00 00 lwz r30,0(r31) <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { ffc11018: 55 20 07 7c rlwinm r0,r9,0,29,30 <== NOT EXECUTED ffc1101c: 2f 80 00 04 cmpwi cr7,r0,4 <== NOT EXECUTED ffc11020: 41 9e 00 50 beq- cr7,ffc11070 <== NOT EXECUTED ffc11024: 2f 80 00 06 cmpwi cr7,r0,6 <== NOT EXECUTED ffc11028: 41 9e 01 84 beq- cr7,ffc111ac <== NOT EXECUTED ffc1102c: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc11030: 41 9e 00 f4 beq- cr7,ffc11124 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); ffc11034: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc11038: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc1103c: 4b ff 78 35 bl ffc08870 <== NOT EXECUTED return 0; out_error: pipe_release(pipep, iop); return err; } ffc11040: 80 01 00 3c lwz r0,60(r1) ffc11044: 7f 43 d3 78 mr r3,r26 ffc11048: 83 21 00 1c lwz r25,28(r1) ffc1104c: 7c 08 03 a6 mtlr r0 ffc11050: 83 41 00 20 lwz r26,32(r1) ffc11054: 83 61 00 24 lwz r27,36(r1) ffc11058: 83 81 00 28 lwz r28,40(r1) ffc1105c: 83 a1 00 2c lwz r29,44(r1) ffc11060: 83 c1 00 30 lwz r30,48(r1) ffc11064: 83 e1 00 34 lwz r31,52(r1) ffc11068: 38 21 00 38 addi r1,r1,56 ffc1106c: 4e 80 00 20 blr } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { ffc11070: 80 1e 00 10 lwz r0,16(r30) <== NOT EXECUTED ffc11074: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc11078: 40 9e 00 10 bne- cr7,ffc11088 <== NOT EXECUTED ffc1107c: 71 2b 00 01 andi. r11,r9,1 <== NOT EXECUTED ffc11080: 3b 40 ff fa li r26,-6 <== NOT EXECUTED ffc11084: 40 82 00 78 bne- ffc110fc <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc11088: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc1108c: 81 7e 00 24 lwz r11,36(r30) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc11090: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc11094: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc11098: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc1109c: 91 7e 00 24 stw r11,36(r30) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc110a0: 91 3e 00 14 stw r9,20(r30) <== NOT EXECUTED ffc110a4: 41 9e 02 c4 beq- cr7,ffc11368 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { ffc110a8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc110ac: 40 be ff 88 bne- cr7,ffc11034 <== NOT EXECUTED prevCounter = pipe->readerCounter; ffc110b0: 83 be 00 20 lwz r29,32(r30) <== NOT EXECUTED ffc110b4: 48 00 00 20 b ffc110d4 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) ffc110b8: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc110bc: 4b ff 76 55 bl ffc08710 <== NOT EXECUTED ffc110c0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc110c4: 40 9e 00 34 bne- cr7,ffc110f8 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); ffc110c8: 80 1e 00 20 lwz r0,32(r30) <== NOT EXECUTED ffc110cc: 7f 80 e8 00 cmpw cr7,r0,r29 <== NOT EXECUTED ffc110d0: 40 be ff 64 bne- cr7,ffc11034 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); ffc110d4: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc110d8: 4b ff 77 99 bl ffc08870 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc110dc: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc110e0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc110e4: 48 00 0f b9 bl ffc1209c <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc110e8: 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)) ffc110ec: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc110f0: 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)) ffc110f4: 41 9e ff c4 beq+ cr7,ffc110b8 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; ffc110f8: 3b 40 ff fc li r26,-4 <== NOT EXECUTED out_error: pipe_release(pipep, iop); ffc110fc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc11100: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc11104: 4b ff fc cd bl ffc10dd0 <== NOT EXECUTED return err; ffc11108: 4b ff ff 38 b ffc11040 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) ffc1110c: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc11110: 40 9e 02 6c bne- cr7,ffc1137c <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; ffc11114: 93 bf 00 00 stw r29,0(r31) <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc11118: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc1111c: 4b ff 77 55 bl ffc08870 <== NOT EXECUTED ffc11120: 4b ff fe f0 b ffc11010 <== NOT EXECUTED pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc11124: 81 3e 00 10 lwz r9,16(r30) <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc11128: 81 7e 00 20 lwz r11,32(r30) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc1112c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc11130: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc11134: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc11138: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc1113c: 91 3e 00 10 stw r9,16(r30) <== NOT EXECUTED ffc11140: 41 9e 02 18 beq- cr7,ffc11358 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { ffc11144: 80 1e 00 14 lwz r0,20(r30) <== NOT EXECUTED ffc11148: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc1114c: 40 be fe e8 bne- cr7,ffc11034 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) ffc11150: 80 1c 00 18 lwz r0,24(r28) <== NOT EXECUTED ffc11154: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc11158: 40 a2 fe dc bne- ffc11034 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; ffc1115c: 83 be 00 24 lwz r29,36(r30) <== NOT EXECUTED ffc11160: 48 00 00 20 b ffc11180 <== NOT EXECUTED /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) ffc11164: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc11168: 4b ff 75 a9 bl ffc08710 <== NOT EXECUTED ffc1116c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc11170: 40 be ff 88 bne- cr7,ffc110f8 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); ffc11174: 80 1e 00 24 lwz r0,36(r30) <== NOT EXECUTED ffc11178: 7f 80 e8 00 cmpw cr7,r0,r29 <== NOT EXECUTED ffc1117c: 40 be fe b8 bne- cr7,ffc11034 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); ffc11180: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc11184: 4b ff 76 ed bl ffc08870 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc11188: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc1118c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc11190: 48 00 0f 0d bl ffc1209c <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc11194: 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)) ffc11198: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc1119c: 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)) ffc111a0: 41 9e ff c4 beq+ cr7,ffc11164 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; ffc111a4: 3b 40 ff fc li r26,-4 <== NOT EXECUTED ffc111a8: 4b ff ff 54 b ffc110fc <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc111ac: 81 3e 00 10 lwz r9,16(r30) <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc111b0: 81 7e 00 20 lwz r11,32(r30) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc111b4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc111b8: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc111bc: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc111c0: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc111c4: 91 3e 00 10 stw r9,16(r30) <== NOT EXECUTED ffc111c8: 41 9e 01 80 beq- cr7,ffc11348 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc111cc: 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 ++; ffc111d0: 81 7e 00 24 lwz r11,36(r30) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc111d4: 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 ++; ffc111d8: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc111dc: 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 ++; ffc111e0: 90 1e 00 24 stw r0,36(r30) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc111e4: 91 3e 00 14 stw r9,20(r30) <== NOT EXECUTED ffc111e8: 40 9e fe 4c bne+ cr7,ffc11034 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc111ec: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc111f0: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc111f4: 48 00 0e 11 bl ffc12004 <== NOT EXECUTED ffc111f8: 4b ff fe 3c b ffc11034 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); ffc111fc: 38 60 00 34 li r3,52 <== NOT EXECUTED ffc11200: 4b ff 37 75 bl ffc04974 <== NOT EXECUTED if (pipe == NULL) ffc11204: 3b 40 ff f4 li r26,-12 <== NOT EXECUTED ffc11208: 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)); ffc1120c: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED ffc11210: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED if (pipe == NULL) ffc11214: 41 be fd ec beq- cr7,ffc11000 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); ffc11218: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc1121c: 38 a0 00 34 li r5,52 <== NOT EXECUTED ffc11220: 48 00 2f e9 bl ffc14208 <== NOT EXECUTED pipe->Size = PIPE_BUF; ffc11224: 38 00 02 00 li r0,512 <== NOT EXECUTED ffc11228: 90 1b 00 04 stw r0,4(r27) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); ffc1122c: 38 60 02 00 li r3,512 <== NOT EXECUTED ffc11230: 4b ff 37 45 bl ffc04974 <== NOT EXECUTED if (! pipe->Buffer) ffc11234: 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); ffc11238: 90 7b 00 00 stw r3,0(r27) <== NOT EXECUTED if (! pipe->Buffer) ffc1123c: 41 9e 01 00 beq- cr7,ffc1133c <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( ffc11240: 3f 40 00 00 lis r26,0 <== NOT EXECUTED ffc11244: 88 7a 22 00 lbz r3,8704(r26) <== NOT EXECUTED ffc11248: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc1124c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc11250: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc11254: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc11258: 38 db 00 2c addi r6,r27,44 <== NOT EXECUTED ffc1125c: 48 00 0b e5 bl ffc11e40 <== NOT EXECUTED ffc11260: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc11264: 40 9e 00 cc bne- cr7,ffc11330 <== 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( ffc11268: 88 7a 22 00 lbz r3,8704(r26) <== NOT EXECUTED ffc1126c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc11270: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc11274: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc11278: 60 63 77 00 ori r3,r3,30464 <== NOT EXECUTED ffc1127c: 38 db 00 30 addi r6,r27,48 <== NOT EXECUTED ffc11280: 48 00 0b c1 bl ffc11e40 <== NOT EXECUTED ffc11284: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc11288: 40 9e 00 a0 bne- cr7,ffc11328 <== 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( ffc1128c: 88 7a 22 00 lbz r3,8704(r26) <== NOT EXECUTED ffc11290: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc11294: 38 a0 00 10 li r5,16 <== NOT EXECUTED ffc11298: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc1129c: 60 63 73 00 ori r3,r3,29440 <== NOT EXECUTED ffc112a0: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc112a4: 38 fb 00 28 addi r7,r27,40 <== NOT EXECUTED ffc112a8: 4b ff 71 6d bl ffc08414 <== NOT EXECUTED ffc112ac: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc112b0: 40 9e 00 70 bne- cr7,ffc11320 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) ffc112b4: 3f 20 00 00 lis r25,0 <== NOT EXECUTED ffc112b8: 80 9b 00 2c lwz r4,44(r27) <== NOT EXECUTED ffc112bc: 3b 39 35 4c addi r25,r25,13644 <== NOT EXECUTED ffc112c0: 3b 61 00 0c addi r27,r1,12 <== NOT EXECUTED ffc112c4: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc112c8: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc112cc: 4b ff 93 09 bl ffc0a5d4 <_Objects_Get> <== NOT EXECUTED /* Set barriers to be interruptible by signals. */ static void pipe_interruptible(pipe_control_t *pipe) { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state ffc112d0: 80 03 00 4c lwz r0,76(r3) <== NOT EXECUTED ffc112d4: 64 00 10 00 oris r0,r0,4096 <== NOT EXECUTED ffc112d8: 90 03 00 4c stw r0,76(r3) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); ffc112dc: 4b ff 9e c5 bl ffc0b1a0 <_Thread_Enable_dispatch> <== NOT EXECUTED ffc112e0: 80 9d 00 30 lwz r4,48(r29) <== NOT EXECUTED ffc112e4: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc112e8: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc112ec: 4b ff 92 e9 bl ffc0a5d4 <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state ffc112f0: 80 03 00 4c lwz r0,76(r3) <== NOT EXECUTED ffc112f4: 64 00 10 00 oris r0,r0,4096 <== NOT EXECUTED ffc112f8: 90 03 00 4c stw r0,76(r3) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); ffc112fc: 4b ff 9e a5 bl ffc0b1a0 <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') ffc11300: 89 3a 22 00 lbz r9,8704(r26) <== NOT EXECUTED ffc11304: 2f 89 00 7a cmpwi cr7,r9,122 <== NOT EXECUTED ffc11308: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED ffc1130c: 99 3a 22 00 stb r9,8704(r26) <== NOT EXECUTED ffc11310: 40 9e fc c4 bne+ cr7,ffc10fd4 <== NOT EXECUTED c = 'a'; ffc11314: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc11318: 98 1a 22 00 stb r0,8704(r26) <== NOT EXECUTED ffc1131c: 4b ff fc b8 b ffc10fd4 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); ffc11320: 80 7b 00 30 lwz r3,48(r27) <== NOT EXECUTED ffc11324: 48 00 0c 59 bl ffc11f7c <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); ffc11328: 80 7b 00 2c lwz r3,44(r27) <== NOT EXECUTED ffc1132c: 48 00 0c 51 bl ffc11f7c <== NOT EXECUTED err_rbar: free(pipe->Buffer); ffc11330: 80 7b 00 00 lwz r3,0(r27) <== NOT EXECUTED ffc11334: 3b 40 ff fc li r26,-4 <== NOT EXECUTED ffc11338: 4b ff 32 bd bl ffc045f4 <== NOT EXECUTED err_buf: free(pipe); ffc1133c: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc11340: 4b ff 32 b5 bl ffc045f4 <== NOT EXECUTED ffc11344: 4b ff fc bc b ffc11000 <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); ffc11348: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc1134c: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc11350: 48 00 0c b5 bl ffc12004 <== NOT EXECUTED ffc11354: 4b ff fe 78 b ffc111cc <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); ffc11358: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc1135c: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc11360: 48 00 0c a5 bl ffc12004 <== NOT EXECUTED ffc11364: 4b ff fd e0 b ffc11144 <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); ffc11368: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc1136c: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc11370: 48 00 0c 95 bl ffc12004 <== NOT EXECUTED ffc11374: 80 1e 00 10 lwz r0,16(r30) <== NOT EXECUTED ffc11378: 4b ff fd 30 b ffc110a8 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); ffc1137c: 80 7d 00 2c lwz r3,44(r29) <== NOT EXECUTED ffc11380: 48 00 0b fd bl ffc11f7c <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); ffc11384: 80 7d 00 30 lwz r3,48(r29) <== NOT EXECUTED ffc11388: 48 00 0b f5 bl ffc11f7c <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); ffc1138c: 80 7d 00 28 lwz r3,40(r29) <== NOT EXECUTED ffc11390: 4b ff 72 a5 bl ffc08634 <== NOT EXECUTED free(pipe->Buffer); ffc11394: 80 7d 00 00 lwz r3,0(r29) <== NOT EXECUTED ffc11398: 4b ff 32 5d bl ffc045f4 <== NOT EXECUTED free(pipe); ffc1139c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc113a0: 4b ff 32 55 bl ffc045f4 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc113a4: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc113a8: 4b ff 74 c9 bl ffc08870 <== NOT EXECUTED ffc113ac: 4b ff fc 94 b ffc11040 <== NOT EXECUTED ffc0d3c8 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0d3c8: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc0d3cc: 81 2b 63 d0 lwz r9,25552(r11) <== NOT EXECUTED ffc0d3d0: 39 6b 63 d0 addi r11,r11,25552 <== NOT EXECUTED ffc0d3d4: 38 0b 00 04 addi r0,r11,4 <== NOT EXECUTED ffc0d3d8: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0d3dc: 41 9e 00 30 beq- cr7,ffc0d40c <== 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 ) { ffc0d3e0: 81 44 00 10 lwz r10,16(r4) <== NOT EXECUTED ffc0d3e4: 81 69 00 18 lwz r11,24(r9) <== NOT EXECUTED ffc0d3e8: 7f 8b 50 00 cmpw cr7,r11,r10 <== NOT EXECUTED ffc0d3ec: 40 be 00 14 bne+ cr7,ffc0d400 <== NOT EXECUTED ffc0d3f0: 48 00 00 24 b ffc0d414 <== NOT EXECUTED ffc0d3f4: 81 69 00 18 lwz r11,24(r9) <== NOT EXECUTED ffc0d3f8: 7f 8b 50 00 cmpw cr7,r11,r10 <== NOT EXECUTED ffc0d3fc: 41 9e 00 18 beq- cr7,ffc0d414 <== 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 ) { ffc0d400: 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; ffc0d404: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0d408: 40 9e ff ec bne+ cr7,ffc0d3f4 <== NOT EXECUTED ffc0d40c: 38 60 00 00 li r3,0 <== NOT EXECUTED return true; } } return false; } ffc0d410: 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; ffc0d414: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0d418: 4e 80 00 20 blr <== NOT EXECUTED ffc045f4 : 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 2b 00 addi r9,r9,11008 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 /* * 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 d4 lwz r0,10196(r9) ffc0462c: 2f 80 00 03 cmpwi cr7,r0,3 ffc04630: 41 9e 00 74 beq- cr7,ffc046a4 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) ffc04634: 3d 20 00 00 lis r9,0 ffc04638: 81 29 27 08 lwz r9,9992(r9) ffc0463c: 2f 89 00 00 cmpwi cr7,r9,0 ffc04640: 41 9e 00 14 beq- cr7,ffc04654 (*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 9c lwz r3,9884(r30) ffc0465c: 7f e4 fb 78 mr r4,r31 ffc04660: 48 00 63 6d bl ffc0a9cc <_Protected_heap_Free> ffc04664: 2f 83 00 00 cmpwi cr7,r3,0 ffc04668: 40 be 00 24 bne+ cr7,ffc0468c printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, ffc0466c: 81 3e 26 9c lwz r9,9884(r30) <== NOT EXECUTED */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_free)(ptr); if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ffc04670: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc04674: 38 63 f8 f8 addi r3,r3,-1800 <== 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 <== 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 ffc046a8: 2f 83 00 00 cmpwi cr7,r3,0 ffc046ac: 40 9e ff 88 bne+ cr7,ffc04634 !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 <== NOT EXECUTED return; ffc046b8: 4b ff ff d4 b ffc0468c <== NOT EXECUTED ffc30ac0 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { ffc30ac0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc30ac4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env ffc30ac8: 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) { ffc30acc: 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 ffc30ad0: 38 09 63 dc addi r0,r9,25564 <== NOT EXECUTED ffc30ad4: 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) { ffc30ad8: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc30adc: 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 ffc30ae0: 41 9e 00 54 beq- cr7,ffc30b34 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); ffc30ae4: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc30ae8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30aec: 41 9e 00 1c beq- cr7,ffc30b08 <== NOT EXECUTED ffc30af0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30af4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30af8: 41 9e 00 10 beq- cr7,ffc30b08 <== NOT EXECUTED ffc30afc: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED ffc30b00: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30b04: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); ffc30b08: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc30b0c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30b10: 41 9e 00 1c beq- cr7,ffc30b2c <== NOT EXECUTED ffc30b14: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30b18: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30b1c: 41 9e 00 10 beq- cr7,ffc30b2c <== NOT EXECUTED ffc30b20: 38 7f 00 18 addi r3,r31,24 <== NOT EXECUTED ffc30b24: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30b28: 4e 80 04 21 bctrl <== NOT EXECUTED free(env); ffc30b2c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30b30: 4b fd 84 59 bl ffc08f88 <== NOT EXECUTED } } ffc30b34: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc30b38: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc30b3c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc30b40: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30b44: 4e 80 00 20 blr <== NOT EXECUTED ffc1dfe0 : int fstat( int fd, struct stat *sbuf ) { ffc1dfe0: 94 21 ff f0 stwu r1,-16(r1) ffc1dfe4: 7c 08 02 a6 mflr r0 ffc1dfe8: 93 c1 00 08 stw r30,8(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1dfec: 7c 9e 23 79 mr. r30,r4 int fstat( int fd, struct stat *sbuf ) { ffc1dff0: 90 01 00 14 stw r0,20(r1) ffc1dff4: 93 e1 00 0c stw r31,12(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1dff8: 41 82 00 b0 beq- ffc1e0a8 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); ffc1dffc: 3d 20 00 00 lis r9,0 ffc1e000: 80 09 26 8c lwz r0,9868(r9) ffc1e004: 7f 83 00 40 cmplw cr7,r3,r0 ffc1e008: 40 9c 00 78 bge- cr7,ffc1e080 ffc1e00c: 3d 20 00 00 lis r9,0 ffc1e010: 83 e9 27 4c lwz r31,10060(r9) ffc1e014: 1c 63 00 48 mulli r3,r3,72 ffc1e018: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); ffc1e01c: 80 1f 00 18 lwz r0,24(r31) ffc1e020: 70 09 01 00 andi. r9,r0,256 ffc1e024: 41 82 00 5c beq- ffc1e080 if ( !iop->handlers ) ffc1e028: 81 3f 00 40 lwz r9,64(r31) ffc1e02c: 2f 89 00 00 cmpwi cr7,r9,0 ffc1e030: 41 9e 00 50 beq- cr7,ffc1e080 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) ffc1e034: 80 09 00 18 lwz r0,24(r9) ffc1e038: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e03c: 41 9e 00 58 beq- cr7,ffc1e094 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); ffc1e040: 38 80 00 00 li r4,0 ffc1e044: 38 a0 00 48 li r5,72 ffc1e048: 7f c3 f3 78 mr r3,r30 ffc1e04c: 4b ff 61 bd bl ffc14208 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); ffc1e050: 81 3f 00 40 lwz r9,64(r31) ffc1e054: 38 7f 00 1c addi r3,r31,28 ffc1e058: 80 09 00 18 lwz r0,24(r9) ffc1e05c: 7f c4 f3 78 mr r4,r30 ffc1e060: 7c 09 03 a6 mtctr r0 ffc1e064: 4e 80 04 21 bctrl } ffc1e068: 80 01 00 14 lwz r0,20(r1) ffc1e06c: 83 c1 00 08 lwz r30,8(r1) ffc1e070: 7c 08 03 a6 mtlr r0 ffc1e074: 83 e1 00 0c lwz r31,12(r1) ffc1e078: 38 21 00 10 addi r1,r1,16 ffc1e07c: 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 ); ffc1e080: 4b ff 54 a1 bl ffc13520 <__errno> ffc1e084: 38 00 00 09 li r0,9 ffc1e088: 90 03 00 00 stw r0,0(r3) ffc1e08c: 38 60 ff ff li r3,-1 ffc1e090: 4b ff ff d8 b ffc1e068 if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1e094: 4b ff 54 8d bl ffc13520 <__errno> <== NOT EXECUTED ffc1e098: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1e09c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e0a0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e0a4: 4b ff ff c4 b ffc1e068 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc1e0a8: 4b ff 54 79 bl ffc13520 <__errno> ffc1e0ac: 38 00 00 0e li r0,14 ffc1e0b0: 90 03 00 00 stw r0,0(r3) ffc1e0b4: 38 60 ff ff li r3,-1 ffc1e0b8: 4b ff ff b0 b ffc1e068 ffc2f220 : #include int fsync( int fd ) { ffc2f220: 7c 08 02 a6 mflr r0 ffc2f224: 94 21 ff f8 stwu r1,-8(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2f228: 3d 20 00 00 lis r9,0 #include int fsync( int fd ) { ffc2f22c: 90 01 00 0c stw r0,12(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2f230: 80 09 34 cc lwz r0,13516(r9) ffc2f234: 7f 83 00 40 cmplw cr7,r3,r0 ffc2f238: 40 9c 00 58 bge- cr7,ffc2f290 iop = rtems_libio_iop( fd ); ffc2f23c: 3d 20 00 00 lis r9,0 ffc2f240: 80 09 35 f4 lwz r0,13812(r9) ffc2f244: 1c 63 00 48 mulli r3,r3,72 ffc2f248: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc2f24c: 80 03 00 18 lwz r0,24(r3) ffc2f250: 70 09 01 00 andi. r9,r0,256 ffc2f254: 41 82 00 3c beq- ffc2f290 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2f258: 70 09 00 04 andi. r9,r0,4 ffc2f25c: 41 82 00 48 beq- ffc2f2a4 /* * Now process the fsync(). */ if ( !iop->handlers ) ffc2f260: 81 23 00 40 lwz r9,64(r3) ffc2f264: 2f 89 00 00 cmpwi cr7,r9,0 ffc2f268: 41 9e 00 28 beq- cr7,ffc2f290 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) ffc2f26c: 80 09 00 28 lwz r0,40(r9) ffc2f270: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f274: 41 9e 00 44 beq- cr7,ffc2f2b8 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); ffc2f278: 7c 09 03 a6 mtctr r0 ffc2f27c: 4e 80 04 21 bctrl } ffc2f280: 80 01 00 0c lwz r0,12(r1) ffc2f284: 38 21 00 08 addi r1,r1,8 ffc2f288: 7c 08 03 a6 mtlr r0 ffc2f28c: 4e 80 00 20 blr /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); ffc2f290: 48 01 f3 71 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2f294: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2f298: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2f29c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2f2a0: 4b ff ff e0 b ffc2f280 <== 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 ); ffc2f2a4: 48 01 f3 5d bl ffc4e600 <__errno> ffc2f2a8: 38 00 00 16 li r0,22 ffc2f2ac: 90 03 00 00 stw r0,0(r3) ffc2f2b0: 38 60 ff ff li r3,-1 ffc2f2b4: 4b ff ff cc b ffc2f280 if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2f2b8: 48 01 f3 49 bl ffc4e600 <__errno> ffc2f2bc: 38 00 00 86 li r0,134 ffc2f2c0: 90 03 00 00 stw r0,0(r3) ffc2f2c4: 38 60 ff ff li r3,-1 ffc2f2c8: 4b ff ff b8 b ffc2f280 ffc0e1d8 : int ftruncate( int fd, off_t length ) { ffc0e1d8: 94 21 ff c8 stwu r1,-56(r1) ffc0e1dc: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0e1e0: 3d 20 00 00 lis r9,0 int ftruncate( int fd, off_t length ) { ffc0e1e4: 90 01 00 3c stw r0,60(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0e1e8: 80 09 26 8c lwz r0,9868(r9) int ftruncate( int fd, off_t length ) { ffc0e1ec: 93 a1 00 2c stw r29,44(r1) ffc0e1f0: 7c bd 2b 78 mr r29,r5 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0e1f4: 7f 83 00 40 cmplw cr7,r3,r0 int ftruncate( int fd, off_t length ) { ffc0e1f8: 93 c1 00 30 stw r30,48(r1) ffc0e1fc: 7c de 33 78 mr r30,r6 ffc0e200: 93 e1 00 34 stw r31,52(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0e204: 40 9c 00 b4 bge- cr7,ffc0e2b8 iop = rtems_libio_iop( fd ); ffc0e208: 3d 20 00 00 lis r9,0 ffc0e20c: 83 e9 27 4c lwz r31,10060(r9) ffc0e210: 1c 63 00 48 mulli r3,r3,72 ffc0e214: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc0e218: 80 1f 00 18 lwz r0,24(r31) ffc0e21c: 70 09 01 00 andi. r9,r0,256 ffc0e220: 41 82 00 98 beq- ffc0e2b8 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0e224: 81 3f 00 28 lwz r9,40(r31) ffc0e228: 81 1f 00 1c lwz r8,28(r31) if ( !loc.ops->node_type_h ) ffc0e22c: 80 09 00 10 lwz r0,16(r9) /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0e230: 81 5f 00 20 lwz r10,32(r31) ffc0e234: 81 7f 00 24 lwz r11,36(r31) if ( !loc.ops->node_type_h ) ffc0e238: 2f 80 00 00 cmpwi cr7,r0,0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0e23c: 91 01 00 08 stw r8,8(r1) ffc0e240: 91 41 00 0c stw r10,12(r1) ffc0e244: 91 61 00 10 stw r11,16(r1) ffc0e248: 91 21 00 14 stw r9,20(r1) ffc0e24c: 81 3f 00 2c lwz r9,44(r31) ffc0e250: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc0e254: 41 9e 00 8c beq- cr7,ffc0e2e0 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) ffc0e258: 38 61 00 08 addi r3,r1,8 ffc0e25c: 7c 09 03 a6 mtctr r0 ffc0e260: 4e 80 04 21 bctrl ffc0e264: 2f 83 00 01 cmpwi cr7,r3,1 ffc0e268: 41 9e 00 8c beq- cr7,ffc0e2f4 rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc0e26c: 80 1f 00 18 lwz r0,24(r31) ffc0e270: 70 09 00 04 andi. r9,r0,4 ffc0e274: 41 82 00 58 beq- ffc0e2cc if ( !iop->handlers->ftruncate_h ) ffc0e278: 81 3f 00 40 lwz r9,64(r31) ffc0e27c: 80 09 00 20 lwz r0,32(r9) ffc0e280: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e284: 41 9e 00 5c beq- cr7,ffc0e2e0 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); ffc0e288: 7f e3 fb 78 mr r3,r31 ffc0e28c: 7c 09 03 a6 mtctr r0 ffc0e290: 7f a5 eb 78 mr r5,r29 ffc0e294: 7f c6 f3 78 mr r6,r30 ffc0e298: 4e 80 04 21 bctrl } ffc0e29c: 80 01 00 3c lwz r0,60(r1) ffc0e2a0: 83 a1 00 2c lwz r29,44(r1) ffc0e2a4: 7c 08 03 a6 mtlr r0 ffc0e2a8: 83 c1 00 30 lwz r30,48(r1) ffc0e2ac: 83 e1 00 34 lwz r31,52(r1) ffc0e2b0: 38 21 00 38 addi r1,r1,56 ffc0e2b4: 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); ffc0e2b8: 48 00 52 69 bl ffc13520 <__errno> <== NOT EXECUTED ffc0e2bc: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc0e2c0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0e2c4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0e2c8: 4b ff ff d4 b ffc0e29c <== 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 ); ffc0e2cc: 48 00 52 55 bl ffc13520 <__errno> <== NOT EXECUTED ffc0e2d0: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0e2d4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0e2d8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0e2dc: 4b ff ff c0 b ffc0e29c <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0e2e0: 48 00 52 41 bl ffc13520 <__errno> <== NOT EXECUTED ffc0e2e4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0e2e8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0e2ec: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0e2f0: 4b ff ff ac b ffc0e29c <== 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 ); ffc0e2f4: 48 00 52 2d bl ffc13520 <__errno> ffc0e2f8: 38 00 00 15 li r0,21 ffc0e2fc: 90 03 00 00 stw r0,0(r3) ffc0e300: 38 60 ff ff li r3,-1 ffc0e304: 4b ff ff 98 b ffc0e29c ffc693c0 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc693c0: 94 21 ff c8 stwu r1,-56(r1) ffc693c4: 7c 08 02 a6 mflr r0 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc693c8: 3d 20 00 00 lis r9,0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc693cc: 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 ); ffc693d0: 80 09 34 cc lwz r0,13516(r9) int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc693d4: 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 ); ffc693d8: 3b a0 00 00 li r29,0 ffc693dc: 7f 83 00 40 cmplw cr7,r3,r0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc693e0: 93 c1 00 30 stw r30,48(r1) ffc693e4: 7c 9e 23 78 mr r30,r4 ffc693e8: 93 e1 00 34 stw r31,52(r1) ffc693ec: 7c bf 2b 78 mr r31,r5 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc693f0: 40 9c 00 14 bge- cr7,ffc69404 ffc693f4: 3d 20 00 00 lis r9,0 ffc693f8: 1c 63 00 48 mulli r3,r3,72 ffc693fc: 83 a9 35 f4 lwz r29,13812(r9) ffc69400: 7f bd 1a 14 add r29,r29,r3 /* * Make sure we are working on a directory */ loc = iop->pathinfo; ffc69404: 81 3d 00 28 lwz r9,40(r29) ffc69408: 81 1d 00 1c lwz r8,28(r29) if ( !loc.ops->node_type_h ) ffc6940c: 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; ffc69410: 81 5d 00 20 lwz r10,32(r29) ffc69414: 81 7d 00 24 lwz r11,36(r29) if ( !loc.ops->node_type_h ) ffc69418: 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; ffc6941c: 91 01 00 08 stw r8,8(r1) ffc69420: 91 41 00 0c stw r10,12(r1) ffc69424: 91 61 00 10 stw r11,16(r1) ffc69428: 91 21 00 14 stw r9,20(r1) ffc6942c: 81 3d 00 2c lwz r9,44(r29) ffc69430: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc69434: 41 9e 00 6c beq- cr7,ffc694a0 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) ffc69438: 38 61 00 08 addi r3,r1,8 ffc6943c: 7c 09 03 a6 mtctr r0 ffc69440: 4e 80 04 21 bctrl ffc69444: 2f 83 00 01 cmpwi cr7,r3,1 ffc69448: 40 9e 00 44 bne- cr7,ffc6948c /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) ffc6944c: 81 3d 00 40 lwz r9,64(r29) ffc69450: 80 09 00 08 lwz r0,8(r9) ffc69454: 2f 80 00 00 cmpwi cr7,r0,0 ffc69458: 41 9e 00 48 beq- cr7,ffc694a0 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); ffc6945c: 7f a3 eb 78 mr r3,r29 ffc69460: 7c 09 03 a6 mtctr r0 ffc69464: 7f c4 f3 78 mr r4,r30 ffc69468: 7f e5 fb 78 mr r5,r31 ffc6946c: 4e 80 04 21 bctrl } ffc69470: 80 01 00 3c lwz r0,60(r1) ffc69474: 83 a1 00 2c lwz r29,44(r1) ffc69478: 7c 08 03 a6 mtlr r0 ffc6947c: 83 c1 00 30 lwz r30,48(r1) ffc69480: 83 e1 00 34 lwz r31,52(r1) ffc69484: 38 21 00 38 addi r1,r1,56 ffc69488: 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 ); ffc6948c: 4b fe 51 75 bl ffc4e600 <__errno> ffc69490: 38 00 00 14 li r0,20 ffc69494: 90 03 00 00 stw r0,0(r3) ffc69498: 38 60 ff ff li r3,-1 ffc6949c: 4b ff ff d4 b ffc69470 * 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 ); ffc694a0: 4b fe 51 61 bl ffc4e600 <__errno> <== NOT EXECUTED ffc694a4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc694a8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc694ac: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc694b0: 4b ff ff c0 b ffc69470 <== NOT EXECUTED ffc2f41c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { ffc2f41c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2f420: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED return _POSIX_types_Gid; } ffc2f424: a0 69 00 34 lhz r3,52(r9) <== NOT EXECUTED ffc2f428: 4e 80 00 20 blr <== NOT EXECUTED ffc2fcd0 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2fcd0: 94 21 ff d8 stwu r1,-40(r1) ffc2fcd4: 7d 80 00 26 mfcr r12 ffc2fcd8: 7c 08 02 a6 mflr r0 ffc2fcdc: 93 21 00 0c stw r25,12(r1) ffc2fce0: 7d 19 43 78 mr r25,r8 ffc2fce4: 90 01 00 2c stw r0,44(r1) ffc2fce8: 93 41 00 10 stw r26,16(r1) ffc2fcec: 93 61 00 14 stw r27,20(r1) ffc2fcf0: 7c fb 3b 78 mr r27,r7 ffc2fcf4: 93 81 00 18 stw r28,24(r1) ffc2fcf8: 7c 9c 23 78 mr r28,r4 ffc2fcfc: 93 a1 00 1c stw r29,28(r1) ffc2fd00: 7c dd 33 78 mr r29,r6 ffc2fd04: 93 c1 00 20 stw r30,32(r1) ffc2fd08: 7c 7e 1b 78 mr r30,r3 ffc2fd0c: 93 e1 00 24 stw r31,36(r1) ffc2fd10: 7c bf 2b 78 mr r31,r5 ffc2fd14: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc2fd18: 4b ff fe 39 bl ffc2fb50 if ((fp = fopen("/etc/group", "r")) == NULL) { ffc2fd1c: 3c 60 ff c7 lis r3,-57 ffc2fd20: 3c 80 ff c7 lis r4,-57 ffc2fd24: 38 63 a5 64 addi r3,r3,-23196 ffc2fd28: 38 84 35 b0 addi r4,r4,13744 ffc2fd2c: 48 01 f5 a1 bl ffc4f2cc ffc2fd30: 7c 7a 1b 79 mr. r26,r3 ffc2fd34: 41 82 00 f0 beq- ffc2fe24 if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2fd38: 2e 1e 00 00 cmpwi cr4,r30,0 ffc2fd3c: 48 00 00 1c b ffc2fd58 match = (strcmp(grp->gr_name, name) == 0); ffc2fd40: 80 7f 00 00 lwz r3,0(r31) ffc2fd44: 48 02 60 b1 bl ffc55df4 ffc2fd48: 7c 63 00 34 cntlzw r3,r3 ffc2fd4c: 54 63 d9 7e rlwinm r3,r3,27,5,31 } else { match = (grp->gr_gid == gid); } if (match) { ffc2fd50: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fd54: 40 9e 00 40 bne- cr7,ffc2fd94 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { ffc2fd58: 7f e4 fb 78 mr r4,r31 ffc2fd5c: 7f a5 eb 78 mr r5,r29 ffc2fd60: 7f 66 db 78 mr r6,r27 ffc2fd64: 7f 43 d3 78 mr r3,r26 ffc2fd68: 4b ff fa 21 bl ffc2f788 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); ffc2fd6c: 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)) { ffc2fd70: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fd74: 41 9e 00 64 beq- cr7,ffc2fdd8 errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2fd78: 40 92 ff c8 bne+ cr4,ffc2fd40 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); ffc2fd7c: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc2fd80: 7c 63 e2 78 xor r3,r3,r28 <== NOT EXECUTED ffc2fd84: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc2fd88: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED } if (match) { ffc2fd8c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fd90: 41 9e ff c8 beq+ cr7,ffc2fd58 <== NOT EXECUTED fclose(fp); ffc2fd94: 7f 43 d3 78 mr r3,r26 ffc2fd98: 48 01 ea 09 bl ffc4e7a0 *result = grp; ffc2fd9c: 93 f9 00 00 stw r31,0(r25) ffc2fda0: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc2fda4: 80 01 00 2c lwz r0,44(r1) ffc2fda8: 81 81 00 08 lwz r12,8(r1) ffc2fdac: 7c 08 03 a6 mtlr r0 ffc2fdb0: 83 21 00 0c lwz r25,12(r1) ffc2fdb4: 83 41 00 10 lwz r26,16(r1) ffc2fdb8: 7d 80 81 20 mtcrf 8,r12 ffc2fdbc: 83 61 00 14 lwz r27,20(r1) ffc2fdc0: 83 81 00 18 lwz r28,24(r1) ffc2fdc4: 83 a1 00 1c lwz r29,28(r1) ffc2fdc8: 83 c1 00 20 lwz r30,32(r1) ffc2fdcc: 83 e1 00 24 lwz r31,36(r1) ffc2fdd0: 38 21 00 28 addi r1,r1,40 ffc2fdd4: 4e 80 00 20 blr errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; ffc2fdd8: 48 01 e8 29 bl ffc4e600 <__errno> <== NOT EXECUTED ffc2fddc: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2fde0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc2fde4: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc2fde8: 48 01 e9 b9 bl ffc4e7a0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } ffc2fdec: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc2fdf0: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); ffc2fdf4: 38 60 ff ff li r3,-1 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } ffc2fdf8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fdfc: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc2fe00: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc2fe04: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc2fe08: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc2fe0c: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc2fe10: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc2fe14: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc2fe18: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc2fe1c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc2fe20: 4e 80 00 20 blr <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; ffc2fe24: 48 01 e7 dd bl ffc4e600 <__errno> <== NOT EXECUTED ffc2fe28: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2fe2c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2fe30: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc2fe34: 4b ff ff 70 b ffc2fda4 <== NOT EXECUTED ffc2f920 : return p; } struct group *getgrent(void) { if (group_fp == NULL) ffc2f920: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2f924: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2f928: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp == NULL) ffc2f92c: 80 65 5f 74 lwz r3,24436(r5) <== NOT EXECUTED ffc2f930: 38 a5 5f 74 addi r5,r5,24436 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2f934: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (group_fp == NULL) ffc2f938: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2f93c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (group_fp == NULL) ffc2f940: 40 9e 00 1c bne- cr7,ffc2f95c <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) return NULL; return &grent; } ffc2f944: 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)) ffc2f948: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &grent; } ffc2f94c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2f950: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2f954: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f958: 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)) ffc2f95c: 3b e5 00 08 addi r31,r5,8 <== NOT EXECUTED ffc2f960: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2f964: 38 a5 00 18 addi r5,r5,24 <== NOT EXECUTED ffc2f968: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc2f96c: 4b ff fe 1d bl ffc2f788 <== NOT EXECUTED ffc2f970: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2f974: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2f978: 41 be ff cc beq- cr7,ffc2f944 <== NOT EXECUTED return NULL; return &grent; } ffc2f97c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2f980: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2f984: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2f988: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f98c: 4e 80 00 20 blr <== NOT EXECUTED ffc2fe60 : } struct group *getgrgid( gid_t gid ) { ffc2fe60: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2fe64: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc2fe68: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2fe6c: 38 84 5f 74 addi r4,r4,24436 <== NOT EXECUTED ffc2fe70: 38 a4 00 18 addi r5,r4,24 <== NOT EXECUTED ffc2fe74: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc2fe78: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2fe7c: 38 84 00 08 addi r4,r4,8 <== NOT EXECUTED ffc2fe80: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc2fe84: 4b ff ff b5 bl ffc2fe38 <== NOT EXECUTED ffc2fe88: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fe8c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2fe90: 40 9e 00 08 bne- cr7,ffc2fe98 <== NOT EXECUTED return NULL; return p; ffc2fe94: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc2fe98: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc2fe9c: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc2fea0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fea4: 4e 80 00 20 blr <== NOT EXECUTED ffc2fe38 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2fe38: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc2fe3c: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc2fe40: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc2fe44: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); ffc2fe48: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2fe4c: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc2fe50: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc2fe54: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc2fe58: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2fe5c: 4b ff fe 74 b ffc2fcd0 <== NOT EXECUTED ffc2ff68 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2ff68: 94 21 ff d8 stwu r1,-40(r1) ffc2ff6c: 7d 80 00 26 mfcr r12 ffc2ff70: 7c 08 02 a6 mflr r0 ffc2ff74: 93 21 00 0c stw r25,12(r1) ffc2ff78: 7d 19 43 78 mr r25,r8 ffc2ff7c: 90 01 00 2c stw r0,44(r1) ffc2ff80: 93 41 00 10 stw r26,16(r1) ffc2ff84: 93 61 00 14 stw r27,20(r1) ffc2ff88: 7c fb 3b 78 mr r27,r7 ffc2ff8c: 93 81 00 18 stw r28,24(r1) ffc2ff90: 7c 9c 23 78 mr r28,r4 ffc2ff94: 93 a1 00 1c stw r29,28(r1) ffc2ff98: 7c dd 33 78 mr r29,r6 ffc2ff9c: 93 c1 00 20 stw r30,32(r1) ffc2ffa0: 7c 7e 1b 78 mr r30,r3 ffc2ffa4: 93 e1 00 24 stw r31,36(r1) ffc2ffa8: 7c bf 2b 78 mr r31,r5 ffc2ffac: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc2ffb0: 4b ff fb a1 bl ffc2fb50 if ((fp = fopen("/etc/passwd", "r")) == NULL) { ffc2ffb4: 3c 60 ff c7 lis r3,-57 ffc2ffb8: 3c 80 ff c7 lis r4,-57 ffc2ffbc: 38 63 a4 b4 addi r3,r3,-23372 ffc2ffc0: 38 84 35 b0 addi r4,r4,13744 ffc2ffc4: 48 01 f3 09 bl ffc4f2cc ffc2ffc8: 7c 7a 1b 79 mr. r26,r3 ffc2ffcc: 41 82 00 f0 beq- ffc300bc if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2ffd0: 2e 1e 00 00 cmpwi cr4,r30,0 ffc2ffd4: 48 00 00 1c b ffc2fff0 match = (strcmp(pwd->pw_name, name) == 0); ffc2ffd8: 80 7f 00 00 lwz r3,0(r31) ffc2ffdc: 48 02 5e 19 bl ffc55df4 ffc2ffe0: 7c 63 00 34 cntlzw r3,r3 ffc2ffe4: 54 63 d9 7e rlwinm r3,r3,27,5,31 } else { match = (pwd->pw_uid == uid); } if (match) { ffc2ffe8: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ffec: 40 9e 00 40 bne- cr7,ffc3002c if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { ffc2fff0: 7f e4 fb 78 mr r4,r31 ffc2fff4: 7f a5 eb 78 mr r5,r29 ffc2fff8: 7f 66 db 78 mr r6,r27 ffc2fffc: 7f 43 d3 78 mr r3,r26 ffc30000: 4b ff f9 91 bl ffc2f990 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); ffc30004: 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)) { ffc30008: 2f 83 00 00 cmpwi cr7,r3,0 ffc3000c: 41 9e 00 64 beq- cr7,ffc30070 errno = EINVAL; fclose(fp); return -1; } if (name) { ffc30010: 40 92 ff c8 bne+ cr4,ffc2ffd8 match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); ffc30014: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc30018: 7c 63 e2 78 xor r3,r3,r28 <== NOT EXECUTED ffc3001c: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc30020: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED } if (match) { ffc30024: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc30028: 41 9e ff c8 beq+ cr7,ffc2fff0 <== NOT EXECUTED fclose(fp); ffc3002c: 7f 43 d3 78 mr r3,r26 ffc30030: 48 01 e7 71 bl ffc4e7a0 *result = pwd; ffc30034: 93 f9 00 00 stw r31,0(r25) ffc30038: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc3003c: 80 01 00 2c lwz r0,44(r1) ffc30040: 81 81 00 08 lwz r12,8(r1) ffc30044: 7c 08 03 a6 mtlr r0 ffc30048: 83 21 00 0c lwz r25,12(r1) ffc3004c: 83 41 00 10 lwz r26,16(r1) ffc30050: 7d 80 81 20 mtcrf 8,r12 ffc30054: 83 61 00 14 lwz r27,20(r1) ffc30058: 83 81 00 18 lwz r28,24(r1) ffc3005c: 83 a1 00 1c lwz r29,28(r1) ffc30060: 83 c1 00 20 lwz r30,32(r1) ffc30064: 83 e1 00 24 lwz r31,36(r1) ffc30068: 38 21 00 28 addi r1,r1,40 ffc3006c: 4e 80 00 20 blr errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; ffc30070: 48 01 e5 91 bl ffc4e600 <__errno> <== NOT EXECUTED ffc30074: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc30078: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc3007c: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc30080: 48 01 e7 21 bl ffc4e7a0 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } ffc30084: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc30088: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); ffc3008c: 38 60 ff ff li r3,-1 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } ffc30090: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30094: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc30098: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc3009c: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc300a0: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc300a4: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc300a8: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc300ac: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc300b0: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc300b4: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc300b8: 4e 80 00 20 blr <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; ffc300bc: 48 01 e5 45 bl ffc4e600 <__errno> <== NOT EXECUTED ffc300c0: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc300c4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc300c8: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc300cc: 4b ff ff 70 b ffc3003c <== NOT EXECUTED ffc2fae0 : return NULL; return p; } struct passwd *getpwent(void) { ffc2fae0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2fae4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp == NULL) ffc2fae8: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc2faec: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc2faf0: 38 a5 5f 74 addi r5,r5,24436 <== NOT EXECUTED ffc2faf4: 80 65 00 04 lwz r3,4(r5) <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc2faf8: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc2fafc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fb00: 40 9e 00 1c bne- cr7,ffc2fb1c <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) return NULL; return &pwent; } ffc2fb04: 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)) ffc2fb08: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &pwent; } ffc2fb0c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2fb10: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2fb14: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fb18: 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)) ffc2fb1c: 3b e5 00 e0 addi r31,r5,224 <== NOT EXECUTED ffc2fb20: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2fb24: 38 a5 00 fc addi r5,r5,252 <== NOT EXECUTED ffc2fb28: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc2fb2c: 4b ff fe 65 bl ffc2f990 <== NOT EXECUTED ffc2fb30: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fb34: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2fb38: 41 be ff cc beq- cr7,ffc2fb04 <== NOT EXECUTED return NULL; return &pwent; } ffc2fb3c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2fb40: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2fb44: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2fb48: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fb4c: 4e 80 00 20 blr <== NOT EXECUTED ffc300f8 : } struct passwd *getpwuid( uid_t uid ) { ffc300f8: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc300fc: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc30100: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc30104: 38 84 5f 74 addi r4,r4,24436 <== NOT EXECUTED ffc30108: 38 a4 00 fc addi r5,r4,252 <== NOT EXECUTED ffc3010c: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc30110: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc30114: 38 84 00 e0 addi r4,r4,224 <== NOT EXECUTED ffc30118: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc3011c: 4b ff ff b5 bl ffc300d0 <== NOT EXECUTED ffc30120: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc30124: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc30128: 40 9e 00 08 bne- cr7,ffc30130 <== NOT EXECUTED return NULL; return p; ffc3012c: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc30130: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc30134: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc30138: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc3013c: 4e 80 00 20 blr <== NOT EXECUTED ffc300d0 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc300d0: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc300d4: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc300d8: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc300dc: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); ffc300e0: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc300e4: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc300e8: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc300ec: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc300f0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc300f4: 4b ff fe 74 b ffc2ff68 <== NOT EXECUTED ffc0e328 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0e328: 94 21 ff e0 stwu r1,-32(r1) ffc0e32c: 7c 08 02 a6 mflr r0 ffc0e330: 93 e1 00 1c stw r31,28(r1) /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0e334: 7c 7f 1b 79 mr. r31,r3 */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0e338: 90 01 00 24 stw r0,36(r1) ffc0e33c: 93 c1 00 18 stw r30,24(r1) /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0e340: 41 82 00 64 beq- ffc0e3a4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e344: 7f c0 00 a6 mfmsr r30 ffc0e348: 7c 10 42 a6 mfsprg r0,0 ffc0e34c: 7f c0 00 78 andc r0,r30,r0 ffc0e350: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc0e354: 38 61 00 08 addi r3,r1,8 ffc0e358: 48 00 17 35 bl ffc0fa8c <_TOD_Get> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e35c: 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; ffc0e360: 3d 60 10 62 lis r11,4194 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; ffc0e364: 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; ffc0e368: 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; ffc0e36c: 81 21 00 08 lwz r9,8(r1) time->tv_usec = useconds; ffc0e370: 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; ffc0e374: 91 3f 00 00 stw r9,0(r31) time->tv_usec = useconds; ffc0e378: 7c 00 fe 70 srawi r0,r0,31 ffc0e37c: 7d 6b 36 70 srawi r11,r11,6 ffc0e380: 7c 00 58 50 subf r0,r0,r11 ffc0e384: 90 1f 00 04 stw r0,4(r31) ffc0e388: 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; } ffc0e38c: 80 01 00 24 lwz r0,36(r1) ffc0e390: 83 c1 00 18 lwz r30,24(r1) ffc0e394: 7c 08 03 a6 mtlr r0 ffc0e398: 83 e1 00 1c lwz r31,28(r1) ffc0e39c: 38 21 00 20 addi r1,r1,32 ffc0e3a0: 4e 80 00 20 blr void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; ffc0e3a4: 48 00 51 7d bl ffc13520 <__errno> <== NOT EXECUTED ffc0e3a8: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0e3ac: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0e3b0: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc0e3b4: 4b ff ff d8 b ffc0e38c <== NOT EXECUTED ffc090f0 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { ffc090f0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc090f4: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED return _POSIX_types_Uid; } ffc090f8: a0 69 00 32 lhz r3,50(r9) <== NOT EXECUTED ffc090fc: 4e 80 00 20 blr <== NOT EXECUTED ffc18a9c : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc18a9c: 94 21 ff d8 stwu r1,-40(r1) ffc18aa0: 7c 08 02 a6 mflr r0 ffc18aa4: 90 01 00 2c stw r0,44(r1) ffc18aa8: 93 c1 00 20 stw r30,32(r1) ffc18aac: 7c 9e 23 78 mr r30,r4 ffc18ab0: 93 e1 00 24 stw r31,36(r1) ffc18ab4: 93 a1 00 1c stw r29,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc18ab8: 83 e4 00 00 lwz r31,0(r4) ffc18abc: 81 3f 00 50 lwz r9,80(r31) ffc18ac0: 38 1f 00 54 addi r0,r31,84 ffc18ac4: 7f 89 00 00 cmpw cr7,r9,r0 ffc18ac8: 40 9e 00 d4 bne- cr7,ffc18b9c /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) ffc18acc: 81 24 00 10 lwz r9,16(r4) ffc18ad0: 80 09 00 1c lwz r0,28(r9) ffc18ad4: 7f 9f 00 00 cmpw cr7,r31,r0 ffc18ad8: 41 9e 00 d8 beq- cr7,ffc18bb0 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) ffc18adc: 83 bf 00 5c lwz r29,92(r31) ffc18ae0: 2f 9d 00 00 cmpwi cr7,r29,0 ffc18ae4: 40 9e 00 cc bne- cr7,ffc18bb0 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { ffc18ae8: 80 1f 00 08 lwz r0,8(r31) ffc18aec: 2f 80 00 00 cmpwi cr7,r0,0 ffc18af0: 41 9e 00 10 beq- cr7,ffc18b00 ffc18af4: 7f e3 fb 78 mr r3,r31 ffc18af8: 4b ff 2b 3d bl ffc0b634 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc18afc: 93 bf 00 08 stw r29,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc18b00: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc18b04: 38 80 00 00 li r4,0 ffc18b08: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc18b0c: 38 09 ff ff addi r0,r9,-1 ffc18b10: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc18b14: 4b fe d5 e9 bl ffc060fc ffc18b18: 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) ) { ffc18b1c: 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 ); ffc18b20: 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) ) { ffc18b24: 4b ff bc 05 bl ffc14728 ffc18b28: 2f 83 00 00 cmpwi cr7,r3,0 ffc18b2c: 40 9e 00 50 bne- cr7,ffc18b7c ffc18b30: a0 1f 00 34 lhz r0,52(r31) ffc18b34: 2f 80 00 00 cmpwi cr7,r0,0 ffc18b38: 40 9e 00 44 bne- cr7,ffc18b7c /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc18b3c: 3d 20 00 00 lis r9,0 ffc18b40: 81 7e 00 00 lwz r11,0(r30) ffc18b44: 81 29 26 f4 lwz r9,9972(r9) ffc18b48: 81 49 00 04 lwz r10,4(r9) ffc18b4c: 7f 8a 58 00 cmpw cr7,r10,r11 ffc18b50: 41 9e 00 74 beq- cr7,ffc18bc4 /* * Free memory associated with a memory file. */ free( the_jnode ); ffc18b54: 7f e3 fb 78 mr r3,r31 ffc18b58: 4b fe d4 dd bl ffc06034 } return 0; } ffc18b5c: 80 01 00 2c lwz r0,44(r1) /* * Free memory associated with a memory file. */ free( the_jnode ); ffc18b60: 38 60 00 00 li r3,0 } return 0; } ffc18b64: 83 a1 00 1c lwz r29,28(r1) ffc18b68: 7c 08 03 a6 mtlr r0 ffc18b6c: 83 c1 00 20 lwz r30,32(r1) ffc18b70: 83 e1 00 24 lwz r31,36(r1) ffc18b74: 38 21 00 28 addi r1,r1,40 ffc18b78: 4e 80 00 20 blr /* * Free memory associated with a memory file. */ free( the_jnode ); ffc18b7c: 38 60 00 00 li r3,0 } return 0; } ffc18b80: 80 01 00 2c lwz r0,44(r1) ffc18b84: 83 a1 00 1c lwz r29,28(r1) ffc18b88: 7c 08 03 a6 mtlr r0 ffc18b8c: 83 c1 00 20 lwz r30,32(r1) ffc18b90: 83 e1 00 24 lwz r31,36(r1) ffc18b94: 38 21 00 28 addi r1,r1,40 ffc18b98: 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 ); ffc18b9c: 48 00 15 25 bl ffc1a0c0 <__errno> ffc18ba0: 38 00 00 5a li r0,90 ffc18ba4: 90 03 00 00 stw r0,0(r3) ffc18ba8: 38 60 ff ff li r3,-1 ffc18bac: 4b ff ff d4 b ffc18b80 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); ffc18bb0: 48 00 15 11 bl ffc1a0c0 <__errno> ffc18bb4: 38 00 00 10 li r0,16 ffc18bb8: 90 03 00 00 stw r0,0(r3) ffc18bbc: 38 60 ff ff li r3,-1 ffc18bc0: 4b ff ff c0 b ffc18b80 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; ffc18bc4: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED ffc18bc8: 4b ff ff 8c b ffc18b54 <== NOT EXECUTED ffc2fb50 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2fb50: 94 21 ff f0 stwu r1,-16(r1) ffc2fb54: 7c 08 02 a6 mflr r0 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2fb58: 3d 20 00 00 lis r9,0 /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2fb5c: 90 01 00 14 stw r0,20(r1) FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2fb60: 39 29 5f 74 addi r9,r9,24436 /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2fb64: 93 c1 00 08 stw r30,8(r1) ffc2fb68: 93 e1 00 0c stw r31,12(r1) FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2fb6c: 88 09 01 c4 lbz r0,452(r9) ffc2fb70: 2f 80 00 00 cmpwi cr7,r0,0 ffc2fb74: 41 9e 00 1c beq- cr7,ffc2fb90 fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } ffc2fb78: 80 01 00 14 lwz r0,20(r1) ffc2fb7c: 83 c1 00 08 lwz r30,8(r1) ffc2fb80: 7c 08 03 a6 mtlr r0 ffc2fb84: 83 e1 00 0c lwz r31,12(r1) ffc2fb88: 38 21 00 10 addi r1,r1,16 ffc2fb8c: 4e 80 00 20 blr FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; ffc2fb90: 38 00 00 01 li r0,1 ffc2fb94: 98 09 01 c4 stb r0,452(r9) mkdir("/etc", 0777); ffc2fb98: 3c 60 ff c7 lis r3,-57 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc2fb9c: 3f c0 ff c7 lis r30,-57 ffc2fba0: 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); ffc2fba4: 38 80 01 ff li r4,511 ffc2fba8: 38 63 a4 34 addi r3,r3,-23500 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc2fbac: 3b de a4 b4 addi r30,r30,-23372 static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); ffc2fbb0: 4b fd 9e 1d bl ffc099cc /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc2fbb4: 3b ff 35 b0 addi r31,r31,13744 ffc2fbb8: 7f c3 f3 78 mr r3,r30 ffc2fbbc: 7f e4 fb 78 mr r4,r31 ffc2fbc0: 48 01 f7 0d bl ffc4f2cc ffc2fbc4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fbc8: 41 9e 00 7c beq- cr7,ffc2fc44 } 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); ffc2fbcc: 48 01 eb d5 bl ffc4e7a0 } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { ffc2fbd0: 3f c0 ff c7 lis r30,-57 ffc2fbd4: 3b de a5 64 addi r30,r30,-23196 ffc2fbd8: 7f e4 fb 78 mr r4,r31 ffc2fbdc: 7f c3 f3 78 mr r3,r30 ffc2fbe0: 48 01 f6 ed bl ffc4f2cc ffc2fbe4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fbe8: 41 9e 00 20 beq- cr7,ffc2fc08 } 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); ffc2fbec: 48 01 eb b5 bl ffc4e7a0 <== NOT EXECUTED } } ffc2fbf0: 80 01 00 14 lwz r0,20(r1) ffc2fbf4: 83 c1 00 08 lwz r30,8(r1) ffc2fbf8: 7c 08 03 a6 mtlr r0 ffc2fbfc: 83 e1 00 0c lwz r31,12(r1) ffc2fc00: 38 21 00 10 addi r1,r1,16 ffc2fc04: 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) { ffc2fc08: 3c 80 ff c7 lis r4,-57 ffc2fc0c: 7f c3 f3 78 mr r3,r30 ffc2fc10: 38 84 bd 04 addi r4,r4,-17148 ffc2fc14: 48 01 f6 b9 bl ffc4f2cc ffc2fc18: 7c 7f 1b 79 mr. r31,r3 ffc2fc1c: 41 a2 ff 5c beq- ffc2fb78 fprintf( fp, "root:x:0:root\n" ffc2fc20: 3c 60 ff c7 lis r3,-57 ffc2fc24: 38 80 00 01 li r4,1 ffc2fc28: 38 a0 00 2a li r5,42 ffc2fc2c: 7f e6 fb 78 mr r6,r31 ffc2fc30: 38 63 03 f8 addi r3,r3,1016 ffc2fc34: 48 02 0d dd bl ffc50a10 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); ffc2fc38: 7f e3 fb 78 mr r3,r31 ffc2fc3c: 48 01 eb 65 bl ffc4e7a0 ffc2fc40: 4b ff ff b0 b ffc2fbf0 * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { ffc2fc44: 3c 80 ff c7 lis r4,-57 ffc2fc48: 7f c3 f3 78 mr r3,r30 ffc2fc4c: 38 84 bd 04 addi r4,r4,-17148 ffc2fc50: 48 01 f6 7d bl ffc4f2cc ffc2fc54: 7c 7e 1b 79 mr. r30,r3 ffc2fc58: 41 a2 ff 78 beq- ffc2fbd0 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" ffc2fc5c: 3c 60 ff c7 lis r3,-57 ffc2fc60: 38 63 03 90 addi r3,r3,912 ffc2fc64: 38 80 00 01 li r4,1 ffc2fc68: 38 a0 00 66 li r5,102 ffc2fc6c: 7f c6 f3 78 mr r6,r30 ffc2fc70: 48 02 0d a1 bl ffc50a10 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); ffc2fc74: 7f c3 f3 78 mr r3,r30 ffc2fc78: 4b ff ff 54 b ffc2fbcc ffc08f08 : int ioctl( int fd, ioctl_command_t command, ... ) { ffc08f08: 94 21 ff e0 stwu r1,-32(r1) ffc08f0c: 7c 08 02 a6 mflr r0 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); ffc08f10: 3d 20 00 00 lis r9,0 int ioctl( int fd, ioctl_command_t command, ... ) { ffc08f14: 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 ); ffc08f18: 80 09 26 ac lwz r0,9900(r9) int ioctl( int fd, ioctl_command_t command, ... ) { ffc08f1c: 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 ); ffc08f20: 7f 83 00 40 cmplw cr7,r3,r0 ffc08f24: 40 9c 00 6c bge- cr7,ffc08f90 iop = rtems_libio_iop( fd ); ffc08f28: 3d 20 00 00 lis r9,0 ffc08f2c: 80 09 27 6c lwz r0,10092(r9) ffc08f30: 1c 63 00 48 mulli r3,r3,72 ffc08f34: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc08f38: 80 03 00 18 lwz r0,24(r3) ffc08f3c: 70 09 01 00 andi. r9,r0,256 ffc08f40: 41 82 00 50 beq- ffc08f90 va_start(ap, command); buffer = va_arg(ap, void *); ffc08f44: 38 00 00 03 li r0,3 ffc08f48: 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); ffc08f4c: 39 21 00 10 addi r9,r1,16 ffc08f50: 38 01 00 28 addi r0,r1,40 /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08f54: 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); ffc08f58: 90 01 00 0c stw r0,12(r1) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08f5c: 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); ffc08f60: 91 21 00 10 stw r9,16(r1) buffer = va_arg(ap, void *); ffc08f64: 80 a9 00 08 lwz r5,8(r9) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08f68: 41 9e 00 28 beq- cr7,ffc08f90 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) ffc08f6c: 80 0b 00 10 lwz r0,16(r11) ffc08f70: 2f 80 00 00 cmpwi cr7,r0,0 ffc08f74: 41 9e 00 30 beq- cr7,ffc08fa4 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); ffc08f78: 7c 09 03 a6 mtctr r0 ffc08f7c: 4e 80 04 21 bctrl return rc; } ffc08f80: 80 01 00 24 lwz r0,36(r1) ffc08f84: 38 21 00 20 addi r1,r1,32 ffc08f88: 7c 08 03 a6 mtlr r0 ffc08f8c: 4e 80 00 20 blr /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); ffc08f90: 48 01 14 4d bl ffc1a3dc <__errno> ffc08f94: 38 00 00 09 li r0,9 ffc08f98: 90 03 00 00 stw r0,0(r3) ffc08f9c: 38 60 ff ff li r3,-1 ffc08fa0: 4b ff ff e0 b ffc08f80 if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc08fa4: 48 01 14 39 bl ffc1a3dc <__errno> <== NOT EXECUTED ffc08fa8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08fac: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc08fb0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc08fb4: 4b ff ff cc b ffc08f80 <== NOT EXECUTED ffc06588 : /* * 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 <== 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 <== NOT EXECUTED c = tolower (c); ffc065bc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc065c0: 81 69 26 e0 lwz r11,9952(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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc066f8: 3b e0 00 0d li r31,13 <== NOT EXECUTED ffc066fc: 4b ff ff 7c b ffc06678 <== 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 <== 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 <== NOT EXECUTED ffc06714: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED ffc06718: 4b ff ff 04 b ffc0661c <== 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 <== NOT EXECUTED ffc06728: 4b ff ff ac b ffc066d4 <== 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 <== NOT EXECUTED ffc06738: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; ffc0673c: 4b ff fe f4 b ffc06630 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc06780: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; ffc06784: 4b ff fe ac b ffc06630 <== NOT EXECUTED ffc12dc0 : int killinfo( pid_t pid, int sig, const union sigval *value ) { ffc12dc0: 94 21 ff d0 stwu r1,-48(r1) ffc12dc4: 7c 08 02 a6 mflr r0 ffc12dc8: 93 61 00 1c stw r27,28(r1) ffc12dcc: 7c bb 2b 78 mr r27,r5 ffc12dd0: 93 81 00 20 stw r28,32(r1) ffc12dd4: 7c 9c 23 78 mr r28,r4 ffc12dd8: 93 e1 00 2c stw r31,44(r1) ffc12ddc: 7c 7f 1b 78 mr r31,r3 ffc12de0: 90 01 00 34 stw r0,52(r1) ffc12de4: 93 41 00 18 stw r26,24(r1) ffc12de8: 93 a1 00 24 stw r29,36(r1) ffc12dec: 93 c1 00 28 stw r30,40(r1) POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) ffc12df0: 4b ff ea 75 bl ffc11864 ffc12df4: 7f 83 f8 00 cmpw cr7,r3,r31 ffc12df8: 40 9e 02 a0 bne- cr7,ffc13098 rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) ffc12dfc: 2f 9c 00 00 cmpwi cr7,r28,0 ffc12e00: 41 9e 02 ac beq- cr7,ffc130ac static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); ffc12e04: 38 1c ff ff addi r0,r28,-1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) ffc12e08: 2b 80 00 1f cmplwi cr7,r0,31 ffc12e0c: 41 9d 02 a0 bgt- cr7,ffc130ac rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) ffc12e10: 1f dc 00 0c mulli r30,r28,12 ffc12e14: 3f a0 00 00 lis r29,0 ffc12e18: 3b bd 31 70 addi r29,r29,12656 ffc12e1c: 7d 3d f2 14 add r9,r29,r30 ffc12e20: 81 29 00 08 lwz r9,8(r9) ffc12e24: 38 60 00 00 li r3,0 ffc12e28: 2f 89 00 01 cmpwi cr7,r9,1 ffc12e2c: 41 9e 01 c8 beq- cr7,ffc12ff4 /* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) ffc12e30: 2f 9c 00 08 cmpwi cr7,r28,8 ffc12e34: 41 9e 01 e8 beq- cr7,ffc1301c ffc12e38: 2f 9c 00 04 cmpwi cr7,r28,4 ffc12e3c: 41 9e 01 e0 beq- cr7,ffc1301c ffc12e40: 2f 9c 00 0b cmpwi cr7,r28,11 ffc12e44: 41 9e 01 d8 beq- cr7,ffc1301c * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { ffc12e48: 2f 9b 00 00 cmpwi cr7,r27,0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; ffc12e4c: 93 81 00 08 stw r28,8(r1) static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); ffc12e50: 3b e0 00 01 li r31,1 siginfo->si_code = SI_USER; ffc12e54: 93 e1 00 0c stw r31,12(r1) ffc12e58: 7f ff 00 30 slw r31,r31,r0 if ( !value ) { ffc12e5c: 41 9e 02 34 beq- cr7,ffc13090 siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; ffc12e60: 80 1b 00 00 lwz r0,0(r27) ffc12e64: 90 01 00 10 stw r0,16(r1) ffc12e68: 3d 20 00 00 lis r9,0 ffc12e6c: 81 69 27 70 lwz r11,10096(r9) ffc12e70: 38 0b 00 01 addi r0,r11,1 ffc12e74: 90 09 27 70 stw r0,10096(r9) /* * Is the currently executing thread interested? If so then it will * get it an execute it as soon as the dispatcher executes. */ the_thread = _Thread_Executing; ffc12e78: 3d 20 00 00 lis r9,0 ffc12e7c: 80 69 27 b0 lwz r3,10160(r9) api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc12e80: 81 23 01 48 lwz r9,328(r3) ffc12e84: 80 09 00 cc lwz r0,204(r9) ffc12e88: 7f e6 00 79 andc. r6,r31,r0 ffc12e8c: 40 82 01 30 bne- ffc12fbc /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; ffc12e90: 3d 40 00 00 lis r10,0 ffc12e94: 81 2a 32 fc lwz r9,13052(r10) ffc12e98: 39 4a 32 fc addi r10,r10,13052 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc12e9c: 39 4a 00 04 addi r10,r10,4 ffc12ea0: 7f 89 50 00 cmpw cr7,r9,r10 ffc12ea4: 41 9e 00 54 beq- cr7,ffc12ef8 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc12ea8: 80 09 00 30 lwz r0,48(r9) for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; ffc12eac: 7d 23 4b 78 mr r3,r9 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc12eb0: 81 69 01 48 lwz r11,328(r9) #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc12eb4: 7f e8 00 39 and. r8,r31,r0 ffc12eb8: 40 82 01 04 bne- ffc12fbc /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) ffc12ebc: 80 0b 00 cc lwz r0,204(r11) ffc12ec0: 7f eb 00 79 andc. r11,r31,r0 ffc12ec4: 41 a2 00 24 beq+ ffc12ee8 ffc12ec8: 48 00 00 f4 b ffc12fbc #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc12ecc: 80 09 00 30 lwz r0,48(r9) <== NOT EXECUTED for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc12ed0: 81 69 01 48 lwz r11,328(r9) <== NOT EXECUTED #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc12ed4: 7f fa 00 39 and. r26,r31,r0 <== NOT EXECUTED ffc12ed8: 40 82 00 e4 bne- ffc12fbc <== NOT EXECUTED /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) ffc12edc: 80 0b 00 cc lwz r0,204(r11) <== NOT EXECUTED ffc12ee0: 7f fb 00 79 andc. r27,r31,r0 <== NOT EXECUTED ffc12ee4: 40 82 00 d8 bne- ffc12fbc <== NOT EXECUTED the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { ffc12ee8: 81 29 00 00 lwz r9,0(r9) /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; ffc12eec: 7f 89 50 00 cmpw cr7,r9,r10 !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; ffc12ef0: 7d 23 4b 78 mr r3,r9 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; ffc12ef4: 40 9e ff d8 bne+ cr7,ffc12ecc * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; ffc12ef8: 3d 20 00 00 lis r9,0 ffc12efc: 88 e9 26 a4 lbz r7,9892(r9) ffc12f00: 3c a0 00 00 lis r5,0 ffc12f04: 38 a5 2c 28 addi r5,r5,11304 ffc12f08: 38 e7 00 01 addi r7,r7,1 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( ffc12f0c: 38 85 00 0c addi r4,r5,12 ffc12f10: 38 60 00 00 li r3,0 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) ffc12f14: 81 25 00 00 lwz r9,0(r5) ffc12f18: 2f 89 00 00 cmpwi cr7,r9,0 ffc12f1c: 41 9e 00 8c beq- cr7,ffc12fa8 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; ffc12f20: 81 29 00 04 lwz r9,4(r9) */ if ( !the_info ) continue; #endif maximum = the_info->maximum; ffc12f24: a1 49 00 10 lhz r10,16(r9) object_table = the_info->local_table; ffc12f28: 81 09 00 1c lwz r8,28(r9) for ( index = 1 ; index <= maximum ; index++ ) { ffc12f2c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc12f30: 41 9e 00 78 beq- cr7,ffc12fa8 ffc12f34: 39 20 00 01 li r9,1 the_thread = (Thread_Control *) object_table[ index ]; ffc12f38: 55 20 10 3a rlwinm r0,r9,2,0,29 ffc12f3c: 7d 68 00 2e lwzx r11,r8,r0 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { ffc12f40: 39 29 00 01 addi r9,r9,1 ffc12f44: 7f 8a 48 40 cmplw cr7,r10,r9 the_thread = (Thread_Control *) object_table[ index ]; if ( !the_thread ) ffc12f48: 2f 0b 00 00 cmpwi cr6,r11,0 ffc12f4c: 41 9a 00 58 beq- cr6,ffc12fa4 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) ffc12f50: 80 0b 00 14 lwz r0,20(r11) ffc12f54: 7f 00 38 40 cmplw cr6,r0,r7 ffc12f58: 41 99 00 4c bgt- cr6,ffc12fa4 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc12f5c: 80 cb 01 48 lwz r6,328(r11) ffc12f60: 80 c6 00 cc lwz r6,204(r6) ffc12f64: 7f fa 30 79 andc. r26,r31,r6 ffc12f68: 41 82 00 3c beq- ffc12fa4 * * NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1 * so we never have to worry about deferencing a NULL * interested thread. */ if ( the_thread->current_priority < interested_priority ) { ffc12f6c: 41 98 00 30 blt- cr6,ffc12f9c * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { ffc12f70: 80 c3 00 10 lwz r6,16(r3) ffc12f74: 2f 06 00 00 cmpwi cr6,r6,0 ffc12f78: 41 9a 00 2c beq- cr6,ffc12fa4 /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { ffc12f7c: 83 6b 00 10 lwz r27,16(r11) continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { ffc12f80: 74 da 10 00 andis. r26,r6,4096 */ if ( !_States_Is_ready( interested->current_state ) ) { /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { ffc12f84: 2f 1b 00 00 cmpwi cr6,r27,0 ffc12f88: 41 9a 00 14 beq- cr6,ffc12f9c DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { ffc12f8c: 57 66 27 fe rlwinm r6,r27,4,31,31 ffc12f90: 2f 06 00 00 cmpwi cr6,r6,0 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { ffc12f94: 40 82 00 10 bne- ffc12fa4 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { ffc12f98: 41 9a 00 0c beq- cr6,ffc12fa4 ffc12f9c: 7c 07 03 78 mr r7,r0 ffc12fa0: 7d 63 5b 78 mr r3,r11 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { ffc12fa4: 40 9c ff 94 bge+ cr7,ffc12f38 ffc12fa8: 38 a5 00 04 addi r5,r5,4 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { ffc12fac: 7f 85 20 00 cmpw cr7,r5,r4 ffc12fb0: 40 9e ff 64 bne+ cr7,ffc12f14 } } } } if ( interested ) { ffc12fb4: 2f 83 00 00 cmpwi cr7,r3,0 ffc12fb8: 41 9e 00 20 beq- cr7,ffc12fd8 * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; ffc12fbc: 38 00 00 01 li r0,1 ffc12fc0: 98 03 00 74 stb r0,116(r3) /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { ffc12fc4: 7f 84 e3 78 mr r4,r28 ffc12fc8: 38 a1 00 08 addi r5,r1,8 ffc12fcc: 48 00 01 d5 bl ffc131a0 <_POSIX_signals_Unblock_thread> ffc12fd0: 2f 83 00 00 cmpwi cr7,r3,0 ffc12fd4: 40 9e 00 18 bne- cr7,ffc12fec /* * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); ffc12fd8: 7f e3 fb 78 mr r3,r31 ffc12fdc: 48 00 01 85 bl ffc13160 <_POSIX_signals_Set_process_signals> if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { ffc12fe0: 7c 1d f0 2e lwzx r0,r29,r30 ffc12fe4: 2f 80 00 02 cmpwi cr7,r0,2 ffc12fe8: 41 9e 00 68 beq- cr7,ffc13050 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); ffc12fec: 4b ff 81 b5 bl ffc0b1a0 <_Thread_Enable_dispatch> ffc12ff0: 38 60 00 00 li r3,0 return 0; } ffc12ff4: 80 01 00 34 lwz r0,52(r1) ffc12ff8: 83 41 00 18 lwz r26,24(r1) ffc12ffc: 7c 08 03 a6 mtlr r0 ffc13000: 83 61 00 1c lwz r27,28(r1) ffc13004: 83 81 00 20 lwz r28,32(r1) ffc13008: 83 a1 00 24 lwz r29,36(r1) ffc1300c: 83 c1 00 28 lwz r30,40(r1) ffc13010: 83 e1 00 2c lwz r31,44(r1) ffc13014: 38 21 00 30 addi r1,r1,48 ffc13018: 4e 80 00 20 blr * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) return pthread_kill( pthread_self(), sig ); ffc1301c: 48 00 04 09 bl ffc13424 ffc13020: 7f 84 e3 78 mr r4,r28 ffc13024: 48 00 02 ed bl ffc13310 } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } ffc13028: 80 01 00 34 lwz r0,52(r1) ffc1302c: 83 41 00 18 lwz r26,24(r1) ffc13030: 7c 08 03 a6 mtlr r0 ffc13034: 83 61 00 1c lwz r27,28(r1) ffc13038: 83 81 00 20 lwz r28,32(r1) ffc1303c: 83 a1 00 24 lwz r29,36(r1) ffc13040: 83 c1 00 28 lwz r30,40(r1) ffc13044: 83 e1 00 2c lwz r31,44(r1) ffc13048: 38 21 00 30 addi r1,r1,48 ffc1304c: 4e 80 00 20 blr */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) ffc13050: 3c 60 00 00 lis r3,0 ffc13054: 38 63 32 f0 addi r3,r3,13040 ffc13058: 4b ff 64 c9 bl ffc09520 <_Chain_Get> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { ffc1305c: 7c 64 1b 79 mr. r4,r3 ffc13060: 41 82 00 60 beq- ffc130c0 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc13064: 81 21 00 0c lwz r9,12(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc13068: 3c 60 00 00 lis r3,0 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc1306c: 80 01 00 10 lwz r0,16(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc13070: 38 63 33 3c addi r3,r3,13116 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc13074: 81 61 00 08 lwz r11,8(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc13078: 7c 63 f2 14 add r3,r3,r30 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc1307c: 91 24 00 0c stw r9,12(r4) ffc13080: 91 64 00 08 stw r11,8(r4) ffc13084: 90 04 00 10 stw r0,16(r4) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc13088: 4b ff 64 69 bl ffc094f0 <_Chain_Append> ffc1308c: 4b ff ff 60 b ffc12fec */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; ffc13090: 93 61 00 10 stw r27,16(r1) ffc13094: 4b ff fd d4 b ffc12e68 /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); ffc13098: 48 00 04 89 bl ffc13520 <__errno> ffc1309c: 38 00 00 03 li r0,3 ffc130a0: 90 03 00 00 stw r0,0(r3) ffc130a4: 38 60 ff ff li r3,-1 ffc130a8: 4b ff ff 4c b ffc12ff4 */ if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc130ac: 48 00 04 75 bl ffc13520 <__errno> ffc130b0: 38 00 00 16 li r0,22 ffc130b4: 90 03 00 00 stw r0,0(r3) ffc130b8: 38 60 ff ff li r3,-1 ffc130bc: 4b ff ff 38 b ffc12ff4 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { _Thread_Enable_dispatch(); ffc130c0: 4b ff 80 e1 bl ffc0b1a0 <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EAGAIN ); ffc130c4: 48 00 04 5d bl ffc13520 <__errno> ffc130c8: 38 00 00 0b li r0,11 ffc130cc: 90 03 00 00 stw r0,0(r3) ffc130d0: 38 60 ff ff li r3,-1 ffc130d4: 4b ff ff 20 b ffc12ff4 ffc30258 : int link( const char *existing, const char *new ) { ffc30258: 94 21 ff b8 stwu r1,-72(r1) ffc3025c: 7c 08 02 a6 mflr r0 ffc30260: 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 ) ffc30264: 3b 80 ff ff li r28,-1 int link( const char *existing, const char *new ) { ffc30268: 90 01 00 4c stw r0,76(r1) ffc3026c: 93 a1 00 3c stw r29,60(r1) ffc30270: 7c 7d 1b 78 mr r29,r3 ffc30274: 93 c1 00 40 stw r30,64(r1) ffc30278: 7c 9e 23 78 mr r30,r4 ffc3027c: 93 e1 00 44 stw r31,68(r1) /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), ffc30280: 48 02 61 55 bl ffc563d4 ffc30284: 3b e1 00 0c addi r31,r1,12 ffc30288: 7c 64 1b 78 mr r4,r3 ffc3028c: 38 a0 00 00 li r5,0 ffc30290: 7f a3 eb 78 mr r3,r29 ffc30294: 7f e6 fb 78 mr r6,r31 ffc30298: 38 e0 00 01 li r7,1 ffc3029c: 4b fd 8b e5 bl ffc08e80 0, &existing_loc, true ); if ( result != 0 ) ffc302a0: 2f 83 00 00 cmpwi cr7,r3,0 ffc302a4: 40 9e 01 04 bne- cr7,ffc303a8 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); ffc302a8: 88 1e 00 00 lbz r0,0(r30) ffc302ac: 2f 80 00 2f cmpwi cr7,r0,47 ffc302b0: 41 9e 00 14 beq- cr7,ffc302c4 ffc302b4: 2f 80 00 5c cmpwi cr7,r0,92 ffc302b8: 41 9e 00 0c beq- cr7,ffc302c4 ffc302bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc302c0: 40 9e 01 0c bne- cr7,ffc303cc ffc302c4: 3d 20 00 00 lis r9,0 ffc302c8: 81 29 35 2c lwz r9,13612(r9) ffc302cc: 38 60 00 01 li r3,1 ffc302d0: 80 09 00 24 lwz r0,36(r9) ffc302d4: 81 09 00 18 lwz r8,24(r9) ffc302d8: 81 49 00 1c lwz r10,28(r9) ffc302dc: 81 69 00 20 lwz r11,32(r9) ffc302e0: 91 01 00 20 stw r8,32(r1) ffc302e4: 91 41 00 24 stw r10,36(r1) ffc302e8: 91 61 00 28 stw r11,40(r1) ffc302ec: 90 01 00 2c stw r0,44(r1) ffc302f0: 80 09 00 28 lwz r0,40(r9) ffc302f4: 90 01 00 30 stw r0,48(r1) if ( !parent_loc.ops->evalformake_h ) { ffc302f8: 81 21 00 2c lwz r9,44(r1) ffc302fc: 80 09 00 04 lwz r0,4(r9) ffc30300: 2f 80 00 00 cmpwi cr7,r0,0 ffc30304: 41 9e 01 b0 beq- cr7,ffc304b4 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 ); ffc30308: 3b a1 00 20 addi r29,r1,32 ffc3030c: 7c 09 03 a6 mtctr r0 ffc30310: 7c 7e 1a 14 add r3,r30,r3 ffc30314: 7f a4 eb 78 mr r4,r29 ffc30318: 38 a1 00 08 addi r5,r1,8 ffc3031c: 4e 80 04 21 bctrl if ( result != 0 ) { ffc30320: 7c 7e 1b 79 mr. r30,r3 ffc30324: 40 82 01 5c bne- ffc30480 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { ffc30328: 80 01 00 1c lwz r0,28(r1) ffc3032c: 81 21 00 30 lwz r9,48(r1) ffc30330: 7f 89 00 00 cmpw cr7,r9,r0 ffc30334: 40 9e 00 d0 bne- cr7,ffc30404 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { ffc30338: 81 21 00 2c lwz r9,44(r1) ffc3033c: 80 09 00 08 lwz r0,8(r9) ffc30340: 2f 80 00 00 cmpwi cr7,r0,0 ffc30344: 41 9e 01 a8 beq- cr7,ffc304ec 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 ); ffc30348: 7f e3 fb 78 mr r3,r31 ffc3034c: 80 a1 00 08 lwz r5,8(r1) ffc30350: 7f a4 eb 78 mr r4,r29 ffc30354: 7c 09 03 a6 mtctr r0 ffc30358: 4e 80 04 21 bctrl rtems_filesystem_freenode( &existing_loc ); ffc3035c: 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 ); ffc30360: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &existing_loc ); ffc30364: 2f 89 00 00 cmpwi cr7,r9,0 ffc30368: 41 9e 00 1c beq- cr7,ffc30384 ffc3036c: 80 09 00 1c lwz r0,28(r9) ffc30370: 2f 80 00 00 cmpwi cr7,r0,0 ffc30374: 41 9e 00 10 beq- cr7,ffc30384 ffc30378: 7f e3 fb 78 mr r3,r31 ffc3037c: 7c 09 03 a6 mtctr r0 ffc30380: 4e 80 04 21 bctrl rtems_filesystem_freenode( &parent_loc ); ffc30384: 81 21 00 2c lwz r9,44(r1) ffc30388: 2f 89 00 00 cmpwi cr7,r9,0 ffc3038c: 41 9e 00 1c beq- cr7,ffc303a8 ffc30390: 80 09 00 1c lwz r0,28(r9) ffc30394: 2f 80 00 00 cmpwi cr7,r0,0 ffc30398: 41 9e 00 10 beq- cr7,ffc303a8 ffc3039c: 7f a3 eb 78 mr r3,r29 ffc303a0: 7c 09 03 a6 mtctr r0 ffc303a4: 4e 80 04 21 bctrl return result; } ffc303a8: 80 01 00 4c lwz r0,76(r1) ffc303ac: 7f 83 e3 78 mr r3,r28 ffc303b0: 83 a1 00 3c lwz r29,60(r1) ffc303b4: 7c 08 03 a6 mtlr r0 ffc303b8: 83 81 00 38 lwz r28,56(r1) ffc303bc: 83 c1 00 40 lwz r30,64(r1) ffc303c0: 83 e1 00 44 lwz r31,68(r1) ffc303c4: 38 21 00 48 addi r1,r1,72 ffc303c8: 4e 80 00 20 blr /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); ffc303cc: 3d 20 00 00 lis r9,0 ffc303d0: 81 29 35 2c lwz r9,13612(r9) ffc303d4: 38 60 00 00 li r3,0 ffc303d8: 80 09 00 10 lwz r0,16(r9) ffc303dc: 81 09 00 04 lwz r8,4(r9) ffc303e0: 81 49 00 08 lwz r10,8(r9) ffc303e4: 81 69 00 0c lwz r11,12(r9) ffc303e8: 91 01 00 20 stw r8,32(r1) ffc303ec: 91 41 00 24 stw r10,36(r1) ffc303f0: 91 61 00 28 stw r11,40(r1) ffc303f4: 90 01 00 2c stw r0,44(r1) ffc303f8: 80 09 00 14 lwz r0,20(r9) ffc303fc: 90 01 00 30 stw r0,48(r1) ffc30400: 4b ff fe f8 b ffc302f8 * 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 ); ffc30404: 81 21 00 18 lwz r9,24(r1) ffc30408: 2f 89 00 00 cmpwi cr7,r9,0 ffc3040c: 41 9e 00 1c beq- cr7,ffc30428 ffc30410: 80 09 00 1c lwz r0,28(r9) ffc30414: 2f 80 00 00 cmpwi cr7,r0,0 ffc30418: 41 9e 00 10 beq- cr7,ffc30428 ffc3041c: 7f e3 fb 78 mr r3,r31 ffc30420: 7c 09 03 a6 mtctr r0 ffc30424: 4e 80 04 21 bctrl rtems_filesystem_freenode( &parent_loc ); ffc30428: 81 21 00 2c lwz r9,44(r1) ffc3042c: 2f 89 00 00 cmpwi cr7,r9,0 ffc30430: 41 9e 00 1c beq- cr7,ffc3044c ffc30434: 80 09 00 1c lwz r0,28(r9) ffc30438: 2f 80 00 00 cmpwi cr7,r0,0 ffc3043c: 41 9e 00 10 beq- cr7,ffc3044c ffc30440: 7f a3 eb 78 mr r3,r29 ffc30444: 7c 09 03 a6 mtctr r0 ffc30448: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EXDEV ); ffc3044c: 48 01 e1 b5 bl ffc4e600 <__errno> ffc30450: 38 00 00 12 li r0,18 ffc30454: 90 03 00 00 stw r0,0(r3) ffc30458: 3b 80 ff ff li r28,-1 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } ffc3045c: 7f 83 e3 78 mr r3,r28 ffc30460: 80 01 00 4c lwz r0,76(r1) ffc30464: 83 81 00 38 lwz r28,56(r1) ffc30468: 7c 08 03 a6 mtlr r0 ffc3046c: 83 a1 00 3c lwz r29,60(r1) ffc30470: 83 c1 00 40 lwz r30,64(r1) ffc30474: 83 e1 00 44 lwz r31,68(r1) ffc30478: 38 21 00 48 addi r1,r1,72 ffc3047c: 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 ); ffc30480: 81 21 00 18 lwz r9,24(r1) ffc30484: 2f 89 00 00 cmpwi cr7,r9,0 ffc30488: 41 9e 00 1c beq- cr7,ffc304a4 ffc3048c: 80 09 00 1c lwz r0,28(r9) ffc30490: 2f 80 00 00 cmpwi cr7,r0,0 ffc30494: 41 9e 00 10 beq- cr7,ffc304a4 ffc30498: 7f e3 fb 78 mr r3,r31 ffc3049c: 7c 09 03 a6 mtctr r0 ffc304a0: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( result ); ffc304a4: 48 01 e1 5d bl ffc4e600 <__errno> ffc304a8: 3b 80 ff ff li r28,-1 ffc304ac: 93 c3 00 00 stw r30,0(r3) ffc304b0: 4b ff fe f8 b ffc303a8 */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); ffc304b4: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc304b8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc304bc: 41 9e 00 1c beq- cr7,ffc304d8 <== NOT EXECUTED ffc304c0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc304c4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc304c8: 41 9e 00 10 beq- cr7,ffc304d8 <== NOT EXECUTED ffc304cc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc304d0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc304d4: 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 ); ffc304d8: 48 01 e1 29 bl ffc4e600 <__errno> <== NOT EXECUTED ffc304dc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc304e0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc304e4: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc304e8: 4b ff fe c0 b ffc303a8 <== 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 ); ffc304ec: 81 61 00 18 lwz r11,24(r1) <== NOT EXECUTED ffc304f0: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc304f4: 41 9e 00 20 beq- cr7,ffc30514 <== NOT EXECUTED ffc304f8: 80 0b 00 1c lwz r0,28(r11) <== NOT EXECUTED ffc304fc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30500: 41 9e 00 14 beq- cr7,ffc30514 <== NOT EXECUTED ffc30504: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30508: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc3050c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc30510: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); ffc30514: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30518: 41 be ff c0 beq- cr7,ffc304d8 <== NOT EXECUTED ffc3051c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30520: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30524: 41 be ff b4 beq- cr7,ffc304d8 <== NOT EXECUTED ffc30528: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc3052c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30530: 4e 80 04 21 bctrl <== NOT EXECUTED ffc30534: 4b ff ff a4 b ffc304d8 <== NOT EXECUTED ffc1e0ec : off_t lseek( int fd, off_t offset, int whence ) { ffc1e0ec: 94 21 ff e8 stwu r1,-24(r1) ffc1e0f0: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1e0f4: 3d 20 00 00 lis r9,0 off_t lseek( int fd, off_t offset, int whence ) { ffc1e0f8: 90 01 00 1c stw r0,28(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1e0fc: 80 09 26 8c lwz r0,9868(r9) off_t lseek( int fd, off_t offset, int whence ) { ffc1e100: 93 a1 00 0c stw r29,12(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1e104: 7f 83 00 40 cmplw cr7,r3,r0 off_t lseek( int fd, off_t offset, int whence ) { ffc1e108: 93 c1 00 10 stw r30,16(r1) ffc1e10c: 93 e1 00 14 stw r31,20(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1e110: 40 9c 01 54 bge- cr7,ffc1e264 iop = rtems_libio_iop( fd ); ffc1e114: 3d 20 00 00 lis r9,0 ffc1e118: 83 e9 27 4c lwz r31,10060(r9) ffc1e11c: 1c 63 00 48 mulli r3,r3,72 ffc1e120: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc1e124: 80 1f 00 18 lwz r0,24(r31) ffc1e128: 70 09 01 00 andi. r9,r0,256 ffc1e12c: 41 82 01 38 beq- ffc1e264 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) ffc1e130: 81 3f 00 40 lwz r9,64(r31) ffc1e134: 80 09 00 14 lwz r0,20(r9) ffc1e138: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e13c: 41 9e 01 40 beq- cr7,ffc1e27c /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { ffc1e140: 2f 87 00 01 cmpwi cr7,r7,1 /* * Now process the lseek(). */ old_offset = iop->offset; ffc1e144: 83 bf 00 10 lwz r29,16(r31) ffc1e148: 83 df 00 14 lwz r30,20(r31) switch ( whence ) { ffc1e14c: 41 9e 00 cc beq- cr7,ffc1e218 ffc1e150: 2f 87 00 02 cmpwi cr7,r7,2 ffc1e154: 41 9e 00 58 beq- cr7,ffc1e1ac ffc1e158: 2f 87 00 00 cmpwi cr7,r7,0 ffc1e15c: 40 9e 00 d0 bne- cr7,ffc1e22c case SEEK_SET: iop->offset = offset; ffc1e160: 90 bf 00 10 stw r5,16(r31) ffc1e164: 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 ); ffc1e168: 80 09 00 14 lwz r0,20(r9) ffc1e16c: 7f e3 fb 78 mr r3,r31 ffc1e170: 7c 09 03 a6 mtctr r0 ffc1e174: 4e 80 04 21 bctrl ffc1e178: 7c 69 1b 78 mr r9,r3 if ( status == (off_t) -1 ) ffc1e17c: 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 ); ffc1e180: 7c 8a 23 78 mr r10,r4 if ( status == (off_t) -1 ) ffc1e184: 41 9e 00 60 beq- cr7,ffc1e1e4 /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e188: 80 01 00 1c lwz r0,28(r1) ffc1e18c: 7d 44 53 78 mr r4,r10 ffc1e190: 7d 23 4b 78 mr r3,r9 ffc1e194: 83 a1 00 0c lwz r29,12(r1) ffc1e198: 7c 08 03 a6 mtlr r0 ffc1e19c: 83 c1 00 10 lwz r30,16(r1) ffc1e1a0: 83 e1 00 14 lwz r31,20(r1) ffc1e1a4: 38 21 00 18 addi r1,r1,24 ffc1e1a8: 4e 80 00 20 blr case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; ffc1e1ac: 80 7f 00 08 lwz r3,8(r31) ffc1e1b0: 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 ); ffc1e1b4: 80 09 00 14 lwz r0,20(r9) case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; ffc1e1b8: 7d 86 20 14 addc r12,r6,r4 ffc1e1bc: 7d 65 19 14 adde r11,r5,r3 ffc1e1c0: 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 ); ffc1e1c4: 7c 09 03 a6 mtctr r0 ffc1e1c8: 7f e3 fb 78 mr r3,r31 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; ffc1e1cc: 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 ); ffc1e1d0: 4e 80 04 21 bctrl ffc1e1d4: 7c 69 1b 78 mr r9,r3 if ( status == (off_t) -1 ) ffc1e1d8: 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 ); ffc1e1dc: 7c 8a 23 78 mr r10,r4 if ( status == (off_t) -1 ) ffc1e1e0: 40 9e ff a8 bne+ cr7,ffc1e188 ffc1e1e4: 2f 84 ff ff cmpwi cr7,r4,-1 ffc1e1e8: 40 9e ff a0 bne+ cr7,ffc1e188 /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e1ec: 80 01 00 1c lwz r0,28(r1) ffc1e1f0: 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; ffc1e1f4: 93 bf 00 10 stw r29,16(r31) /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e1f8: 7d 23 4b 78 mr r3,r9 ffc1e1fc: 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; ffc1e200: 93 df 00 14 stw r30,20(r31) /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e204: 83 a1 00 0c lwz r29,12(r1) ffc1e208: 83 c1 00 10 lwz r30,16(r1) ffc1e20c: 83 e1 00 14 lwz r31,20(r1) ffc1e210: 38 21 00 18 addi r1,r1,24 ffc1e214: 4e 80 00 20 blr case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; ffc1e218: 7d 86 f0 14 addc r12,r6,r30 ffc1e21c: 7d 65 e9 14 adde r11,r5,r29 ffc1e220: 91 7f 00 10 stw r11,16(r31) ffc1e224: 91 9f 00 14 stw r12,20(r31) break; ffc1e228: 4b ff ff 40 b ffc1e168 case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc1e22c: 4b ff 52 f5 bl ffc13520 <__errno> ffc1e230: 38 00 00 16 li r0,22 ffc1e234: 90 03 00 00 stw r0,0(r3) ffc1e238: 39 20 ff ff li r9,-1 ffc1e23c: 39 40 ff ff li r10,-1 /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e240: 80 01 00 1c lwz r0,28(r1) ffc1e244: 7d 44 53 78 mr r4,r10 ffc1e248: 7d 23 4b 78 mr r3,r9 ffc1e24c: 83 a1 00 0c lwz r29,12(r1) ffc1e250: 7c 08 03 a6 mtlr r0 ffc1e254: 83 c1 00 10 lwz r30,16(r1) ffc1e258: 83 e1 00 14 lwz r31,20(r1) ffc1e25c: 38 21 00 18 addi r1,r1,24 ffc1e260: 4e 80 00 20 blr off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc1e264: 4b ff 52 bd bl ffc13520 <__errno> <== NOT EXECUTED ffc1e268: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1e26c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e270: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc1e274: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc1e278: 4b ff ff 10 b ffc1e188 <== 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 ); ffc1e27c: 4b ff 52 a5 bl ffc13520 <__errno> <== NOT EXECUTED ffc1e280: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1e284: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e288: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc1e28c: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc1e290: 4b ff fe f8 b ffc1e188 <== NOT EXECUTED ffc306f4 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc306f4: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc306f8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc306fc: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc30700: 7c 9e 23 79 mr. r30,r4 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { ffc30704: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc30708: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc3070c: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc30710: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc30714: 41 82 00 b0 beq- ffc307c4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc30718: 48 02 5c bd bl ffc563d4 <== NOT EXECUTED ffc3071c: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc30720: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc30724: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc30728: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc3072c: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc30730: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc30734: 4b fd 87 4d bl ffc08e80 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc30738: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc3073c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc30740: 40 9e 00 64 bne- cr7,ffc307a4 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ ffc30744: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED ffc30748: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc3074c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30750: 41 9e 00 a4 beq- cr7,ffc307f4 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc30754: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc30758: 38 a0 00 48 li r5,72 <== NOT EXECUTED ffc3075c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc30760: 48 02 1c 3d bl ffc5239c <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); ffc30764: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED ffc30768: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc3076c: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc30770: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30774: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30778: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc3077c: 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 ); ffc30780: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc30784: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30788: 41 9e 00 1c beq- cr7,ffc307a4 <== NOT EXECUTED ffc3078c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30790: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30794: 41 9e 00 10 beq- cr7,ffc307a4 <== NOT EXECUTED ffc30798: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc3079c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc307a0: 4e 80 04 21 bctrl <== NOT EXECUTED return status; } ffc307a4: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc307a8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc307ac: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc307b0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc307b4: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc307b8: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc307bc: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc307c0: 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 ); ffc307c4: 48 01 de 3d bl ffc4e600 <__errno> <== NOT EXECUTED ffc307c8: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc307cc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc307d0: 3b a0 ff ff li r29,-1 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } ffc307d4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc307d8: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc307dc: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc307e0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc307e4: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc307e8: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc307ec: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc307f0: 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 ); ffc307f4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc307f8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc307fc: 41 9e 00 1c beq- cr7,ffc30818 <== NOT EXECUTED ffc30800: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30804: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30808: 41 9e 00 10 beq- cr7,ffc30818 <== NOT EXECUTED ffc3080c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30810: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30814: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc30818: 48 01 dd e9 bl ffc4e600 <__errno> <== NOT EXECUTED ffc3081c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc30820: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc30824: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc30828: 4b ff ff 7c b ffc307a4 <== NOT EXECUTED ffc04974 : 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 2b 00 addi r9,r9,11008 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 /* * Validate the parameters */ if ( !size ) ffc049a8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc049ac: 41 9e 00 b0 beq- cr7,ffc04a5c 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 d4 lwz r0,10196(r9) ffc049b8: 2f 80 00 03 cmpwi cr7,r0,3 ffc049bc: 41 9e 00 94 beq- cr7,ffc04a50 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 9c lwz r3,9884(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 5f 8d bl ffc0a960 <_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 } /* * 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 27 10 lwz r9,10000(r9) ffc049f0: 2f 89 00 00 cmpwi cr7,r9,0 ffc049f4: 41 9e 00 18 beq- cr7,ffc04a0c (*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 27 08 lwz r9,9992(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 (*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 ffc04a54: 2f 83 00 00 cmpwi cr7,r3,0 ffc04a58: 40 9e ff 68 bne+ cr7,ffc049c0 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 27 0c lwz r9,9996(r9) ffc04a88: 2f 89 00 00 cmpwi cr7,r9,0 ffc04a8c: 41 9e 00 1c beq- cr7,ffc04aa8 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 <== NOT EXECUTED errno = ENOMEM; ffc04aa8: 48 00 ea 79 bl ffc13520 <__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 ffc047e8 : } 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 f0 addi r3,r3,10992 <== NOT EXECUTED ffc04800: 48 00 4c f1 bl ffc094f0 <_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 : { 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 f0 addi r31,r31,10992 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 free(to_be_freed); ffc04830: 4b ff fd c5 bl ffc045f4 <== 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 e9 bl ffc09520 <_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 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 ffc1777c : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ ffc1777c: 94 21 ff f0 stwu r1,-16(r1) ffc17780: 7c 08 02 a6 mflr r0 ffc17784: 93 e1 00 0c stw r31,12(r1) ffc17788: 7c 7f 1b 78 mr r31,r3 ffc1778c: 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) ) { ffc17790: 4b ff cf 99 bl ffc14728 ffc17794: 2f 83 00 00 cmpwi cr7,r3,0 ffc17798: 40 9e 00 40 bne- cr7,ffc177d8 ffc1779c: a0 1f 00 34 lhz r0,52(r31) ffc177a0: 2f 80 00 00 cmpwi cr7,r0,0 ffc177a4: 40 9e 00 34 bne- cr7,ffc177d8 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) ffc177a8: 3d 20 00 00 lis r9,0 ffc177ac: 81 29 26 f4 lwz r9,9972(r9) ffc177b0: 81 69 00 04 lwz r11,4(r9) ffc177b4: 7f 8b f8 00 cmpw cr7,r11,r31 ffc177b8: 41 9e 00 38 beq- cr7,ffc177f0 rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) ffc177bc: 80 1f 00 4c lwz r0,76(r31) ffc177c0: 2f 80 00 06 cmpwi cr7,r0,6 ffc177c4: 41 9e 00 0c beq- cr7,ffc177d0 IMFS_memfile_remove( the_jnode ); ffc177c8: 7f e3 fb 78 mr r3,r31 ffc177cc: 4b ff fd ad bl ffc17578 free( the_jnode ); ffc177d0: 7f e3 fb 78 mr r3,r31 ffc177d4: 4b fe e8 61 bl ffc06034 } return 0; } ffc177d8: 80 01 00 14 lwz r0,20(r1) ffc177dc: 38 60 00 00 li r3,0 ffc177e0: 83 e1 00 0c lwz r31,12(r1) ffc177e4: 38 21 00 10 addi r1,r1,16 ffc177e8: 7c 08 03 a6 mtlr r0 ffc177ec: 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; ffc177f0: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED ffc177f4: 4b ff ff c8 b ffc177bc <== NOT EXECUTED ffc17454 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc17454: 94 21 ff e0 stwu r1,-32(r1) ffc17458: 7c 08 02 a6 mflr r0 ffc1745c: 93 e1 00 1c stw r31,28(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc17460: 7c 7f 1b 79 mr. r31,r3 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc17464: 93 81 00 10 stw r28,16(r1) ffc17468: 7c 9c 23 78 mr r28,r4 ffc1746c: 90 01 00 24 stw r0,36(r1) ffc17470: 93 61 00 0c stw r27,12(r1) ffc17474: 93 a1 00 14 stw r29,20(r1) ffc17478: 93 c1 00 18 stw r30,24(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc1747c: 41 82 00 74 beq- ffc174f0 * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i ffc1748c: 7c 7e 1b 78 mr r30,r3 ffc17490: 3b a0 00 00 li r29,0 if ( b[i] ) { memfile_free_block( b[i] ); b[i] = 0; ffc17494: 3b 60 00 00 li r27,0 */ b = *block_table; for ( i=0 ; i memfile_free_block( b[i] ); ffc174a4: 4b ff fc 9d bl ffc17140 b[i] = 0; ffc174a8: 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 ffc174bc: 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 ); ffc174c0: 4b ff fc 81 bl ffc17140 *block_table = 0; ffc174c4: 38 00 00 00 li r0,0 ffc174c8: 90 1f 00 00 stw r0,0(r31) } ffc174cc: 80 01 00 24 lwz r0,36(r1) ffc174d0: 83 61 00 0c lwz r27,12(r1) ffc174d4: 7c 08 03 a6 mtlr r0 ffc174d8: 83 81 00 10 lwz r28,16(r1) ffc174dc: 83 a1 00 14 lwz r29,20(r1) ffc174e0: 83 c1 00 18 lwz r30,24(r1) ffc174e4: 83 e1 00 1c lwz r31,28(r1) ffc174e8: 38 21 00 20 addi r1,r1,32 ffc174ec: 4e 80 00 20 blr /* * Perform internal consistency checks */ assert( block_table ); ffc174f0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc174f4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc174f8: 38 a5 70 ac addi r5,r5,28844 <== NOT EXECUTED ffc174fc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17500: 38 63 71 70 addi r3,r3,29040 <== NOT EXECUTED ffc17504: 38 a5 00 20 addi r5,r5,32 <== NOT EXECUTED ffc17508: 38 c6 71 e8 addi r6,r6,29160 <== NOT EXECUTED ffc1750c: 38 80 01 b3 li r4,435 <== NOT EXECUTED ffc17510: 4b fe e5 c5 bl ffc05ad4 <__assert_func> <== NOT EXECUTED ffc17b94 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { ffc17b94: 94 21 ff e0 stwu r1,-32(r1) ffc17b98: 7c 08 02 a6 mflr r0 ffc17b9c: 7c 69 1b 78 mr r9,r3 ffc17ba0: 90 01 00 24 stw r0,36(r1) ffc17ba4: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc17ba8: 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 ) ffc17bac: 80 1f 00 50 lwz r0,80(r31) ffc17bb0: 7f 80 28 00 cmpw cr7,r0,r5 ffc17bb4: 40 9c 00 20 bge- cr7,ffc17bd4 return IMFS_memfile_extend( the_jnode, length ); ffc17bb8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc17bbc: 4b ff fd a9 bl ffc17964 <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } ffc17bc0: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc17bc4: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc17bc8: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc17bcc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc17bd0: 4e 80 00 20 blr <== NOT EXECUTED * 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 ) ffc17bd4: 41 9e 00 40 beq- cr7,ffc17c14 * 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; ffc17bd8: 90 bf 00 50 stw r5,80(r31) iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); ffc17bdc: 38 61 00 08 addi r3,r1,8 ffc17be0: 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; ffc17be4: 90 df 00 54 stw r6,84(r31) iop->size = the_jnode->info.file.size; ffc17be8: 90 c9 00 0c stw r6,12(r9) ffc17bec: 90 a9 00 08 stw r5,8(r9) IMFS_update_atime( the_jnode ); ffc17bf0: 4b fe e5 0d bl ffc060fc ffc17bf4: 80 01 00 08 lwz r0,8(r1) ffc17bf8: 38 60 00 00 li r3,0 ffc17bfc: 90 1f 00 40 stw r0,64(r31) return 0; } ffc17c00: 80 01 00 24 lwz r0,36(r1) ffc17c04: 83 e1 00 1c lwz r31,28(r1) ffc17c08: 38 21 00 20 addi r1,r1,32 ffc17c0c: 7c 08 03 a6 mtlr r0 ffc17c10: 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 ) ffc17c14: 80 1f 00 54 lwz r0,84(r31) ffc17c18: 7f 80 30 40 cmplw cr7,r0,r6 ffc17c1c: 40 bc ff bc bge- cr7,ffc17bd8 ffc17c20: 4b ff ff 98 b ffc17bb8 <== NOT EXECUTED ffc17c24 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc17c24: 94 21 ff f0 stwu r1,-16(r1) ffc17c28: 7c 08 02 a6 mflr r0 ffc17c2c: 90 01 00 14 stw r0,20(r1) ffc17c30: 93 c1 00 08 stw r30,8(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc17c34: 83 c3 00 3c lwz r30,60(r3) rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc17c38: 93 e1 00 0c stw r31,12(r1) ffc17c3c: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { ffc17c40: 80 1e 00 4c lwz r0,76(r30) ffc17c44: 2f 80 00 06 cmpwi cr7,r0,6 ffc17c48: 41 9e 00 54 beq- cr7,ffc17c9c 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 )) ffc17c4c: 80 a3 00 10 lwz r5,16(r3) ffc17c50: 80 c3 00 14 lwz r6,20(r3) ffc17c54: 7f c3 f3 78 mr r3,r30 ffc17c58: 4b ff fd 0d bl ffc17964 ffc17c5c: 2f 83 00 00 cmpwi cr7,r3,0 ffc17c60: 40 9e 00 b0 bne- cr7,ffc17d10 rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; ffc17c64: 81 3e 00 50 lwz r9,80(r30) ffc17c68: 81 5e 00 54 lwz r10,84(r30) ffc17c6c: 91 3f 00 08 stw r9,8(r31) ffc17c70: 91 5f 00 0c stw r10,12(r31) ffc17c74: 81 3f 00 10 lwz r9,16(r31) ffc17c78: 81 5f 00 14 lwz r10,20(r31) } return iop->offset; } ffc17c7c: 80 01 00 14 lwz r0,20(r1) ffc17c80: 7d 44 53 78 mr r4,r10 ffc17c84: 7d 23 4b 78 mr r3,r9 ffc17c88: 83 c1 00 08 lwz r30,8(r1) ffc17c8c: 7c 08 03 a6 mtlr r0 ffc17c90: 83 e1 00 0c lwz r31,12(r1) ffc17c94: 38 21 00 10 addi r1,r1,16 ffc17c98: 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) ffc17c9c: 81 3e 00 50 lwz r9,80(r30) <== NOT EXECUTED ffc17ca0: 80 03 00 10 lwz r0,16(r3) <== NOT EXECUTED ffc17ca4: 81 5e 00 54 lwz r10,84(r30) <== NOT EXECUTED ffc17ca8: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc17cac: 81 63 00 14 lwz r11,20(r3) <== NOT EXECUTED ffc17cb0: 41 9d 00 38 bgt- cr7,ffc17ce8 <== NOT EXECUTED ffc17cb4: 41 9e 00 2c beq- cr7,ffc17ce0 <== NOT EXECUTED ffc17cb8: 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; } ffc17cbc: 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) ffc17cc0: 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; } ffc17cc4: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc17cc8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc17ccc: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED ffc17cd0: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc17cd4: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc17cd8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc17cdc: 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) ffc17ce0: 7f 8b 50 40 cmplw cr7,r11,r10 <== NOT EXECUTED ffc17ce4: 40 bd ff d4 ble- cr7,ffc17cb8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } ffc17ce8: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc17cec: 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; ffc17cf0: 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; } ffc17cf4: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc17cf8: 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; ffc17cfc: 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; } ffc17d00: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc17d04: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc17d08: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc17d0c: 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 ); ffc17d10: 48 00 23 b1 bl ffc1a0c0 <__errno> <== NOT EXECUTED ffc17d14: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc17d18: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17d1c: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc17d20: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc17d24: 4b ff ff 58 b ffc17c7c <== NOT EXECUTED ffc18084 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc18084: 94 21 ff f0 stwu r1,-16(r1) ffc18088: 7c 08 02 a6 mflr r0 ffc1808c: 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)) ffc18090: 80 03 00 18 lwz r0,24(r3) rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc18094: 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)) ffc18098: 70 09 02 04 andi. r9,r0,516 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc1809c: 93 e1 00 0c stw r31,12(r1) ffc180a0: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc180a4: 83 c3 00 3c lwz r30,60(r3) /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) ffc180a8: 41 82 00 10 beq- ffc180b8 && (the_jnode->type == IMFS_LINEAR_FILE)) { ffc180ac: 81 3e 00 4c lwz r9,76(r30) ffc180b0: 2f 89 00 06 cmpwi cr7,r9,6 ffc180b4: 41 9e 00 4c beq- cr7,ffc18100 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) ffc180b8: 81 3e 00 50 lwz r9,80(r30) ffc180bc: 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) ffc180c0: 70 0b 02 00 andi. r11,r0,512 ffc180c4: 40 82 00 28 bne- ffc180ec iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; ffc180c8: 91 3f 00 08 stw r9,8(r31) ffc180cc: 38 60 00 00 li r3,0 ffc180d0: 91 5f 00 0c stw r10,12(r31) return 0; } ffc180d4: 80 01 00 14 lwz r0,20(r1) ffc180d8: 83 c1 00 08 lwz r30,8(r1) ffc180dc: 7c 08 03 a6 mtlr r0 ffc180e0: 83 e1 00 0c lwz r31,12(r1) ffc180e4: 38 21 00 10 addi r1,r1,16 ffc180e8: 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; ffc180ec: 91 3f 00 10 stw r9,16(r31) ffc180f0: 91 5f 00 14 stw r10,20(r31) ffc180f4: 81 3e 00 50 lwz r9,80(r30) ffc180f8: 81 5e 00 54 lwz r10,84(r30) ffc180fc: 4b ff ff cc b ffc180c8 /* * 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; ffc18100: 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; ffc18104: 39 20 00 05 li r9,5 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; ffc18108: 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; ffc1810c: 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) ffc18110: 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; ffc18114: 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; ffc18118: 80 fe 00 58 lwz r7,88(r30) <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; ffc1811c: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc18120: 91 3e 00 50 stw r9,80(r30) <== NOT EXECUTED ffc18124: 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; ffc18128: 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; ffc1812c: 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; ffc18130: 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) ffc18134: 40 9e 00 0c bne- cr7,ffc18140 <== NOT EXECUTED ffc18138: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc1813c: 4b ff ff 84 b ffc180c0 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) ffc18140: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc18144: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc18148: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc1814c: 4b ff fb dd bl ffc17d28 <== 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) ffc18150: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED ffc18154: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc18158: 41 be ff 7c beq- cr7,ffc180d4 <== NOT EXECUTED ffc1815c: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED ffc18160: 4b ff ff 58 b ffc180b8 <== NOT EXECUTED ffc04ae4 : 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 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 ffc04b24: 2f 80 00 5c cmpwi cr7,r0,92 ffc04b28: 41 9e 00 0c beq- cr7,ffc04b34 ffc04b2c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04b30: 40 9e 00 e8 bne- cr7,ffc04c18 ffc04b34: 3d 20 00 00 lis r9,0 ffc04b38: 81 29 26 dc lwz r9,9948(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 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 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 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 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 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 dc lwz r9,9948(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 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 e8 c5 bl ffc13520 <__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 e8 8d bl ffc13520 <__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 <== 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 <== 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 <== NOT EXECUTED ffc04ce8 : 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 /* * 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 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 /* * 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 size += strlen( device ) + 1; ffc04d4c: 7c c3 33 78 mr r3,r6 <== NOT EXECUTED ffc04d50: 48 00 fa cd bl ffc1481c <== 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 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 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 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 fa 1d bl ffc147a4 <== 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 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 fa 85 bl ffc1481c * 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 ffc04db8: 2f 83 ff ff cmpwi cr7,r3,-1 ffc04dbc: 41 9e 02 48 beq- cr7,ffc05004 /* * 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 /* * 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 /* * 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 2b 30 lwz r9,11056(r10) ffc04dec: 39 4a 2b 30 addi r10,r10,11056 */ 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 !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 ffc04e0c: 48 00 01 24 b ffc04f30 <== 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 * 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 * 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 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 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 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 2b 30 addi r3,r3,11056 ffc04e88: 7f e4 fb 78 mr r4,r31 ffc04e8c: 48 00 46 65 bl ffc094f0 <_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 *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 e6 4d bl ffc13520 <__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 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 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 e5 f1 bl ffc13520 <__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 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 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 /* * 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 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 <== 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 <== 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 <== 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 <== 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 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 * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; ffc04fc8: 48 00 e5 59 bl ffc13520 <__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 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 <== 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 e5 3d bl ffc13520 <__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 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; ffc04ff4: 48 00 e5 2d bl ffc13520 <__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 <== NOT EXECUTED ffc0500c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05010: 4b ff fe 90 b ffc04ea0 <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; ffc05014: 48 00 e5 0d bl ffc13520 <__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 <== NOT EXECUTED ffc050e8 : */ 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 e8 f9 bl ffc139f4 ffc05100: 2b 83 00 02 cmplwi cr7,r3,2 ffc05104: 40 9d 00 24 ble- cr7,ffc05128 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 e5 b5 bl ffc136c0 <== 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 free( fp->_bf._base ); ffc05134: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05138: 4b ff f4 bd bl ffc045f4 <== 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 ffc04e84 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04e84: 94 21 ff f0 stwu r1,-16(r1) ffc04e88: 7c 08 02 a6 mflr r0 rtems_device_driver status; if ( !initialized ) { ffc04e8c: 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)) ) { ffc04e90: 90 01 00 14 stw r0,20(r1) rtems_device_driver status; if ( !initialized ) { ffc04e94: 88 09 29 20 lbz r0,10528(r9) rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04e98: 93 e1 00 0c stw r31,12(r1) ffc04e9c: 7c 7f 1b 78 mr r31,r3 rtems_device_driver status; if ( !initialized ) { ffc04ea0: 2f 80 00 00 cmpwi cr7,r0,0 ffc04ea4: 41 9e 00 1c beq- cr7,ffc04ec0 NULL_major = major; } return RTEMS_SUCCESSFUL; } ffc04ea8: 80 01 00 14 lwz r0,20(r1) ffc04eac: 38 60 00 00 li r3,0 ffc04eb0: 83 e1 00 0c lwz r31,12(r1) ffc04eb4: 38 21 00 10 addi r1,r1,16 ffc04eb8: 7c 08 03 a6 mtlr r0 ffc04ebc: 4e 80 00 20 blr rtems_device_driver status; if ( !initialized ) { initialized = 1; status = rtems_io_register_name( ffc04ec0: 3c 60 ff c2 lis r3,-62 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04ec4: 38 00 00 01 li r0,1 status = rtems_io_register_name( ffc04ec8: 38 63 40 58 addi r3,r3,16472 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04ecc: 98 09 29 20 stb r0,10528(r9) status = rtems_io_register_name( ffc04ed0: 7f e4 fb 78 mr r4,r31 ffc04ed4: 38 a0 00 00 li r5,0 ffc04ed8: 48 00 01 c1 bl ffc05098 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) ffc04edc: 2f 83 00 00 cmpwi cr7,r3,0 ffc04ee0: 40 9e 00 24 bne- cr7,ffc04f04 NULL_major = major; } return RTEMS_SUCCESSFUL; } ffc04ee4: 80 01 00 14 lwz r0,20(r1) ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); NULL_major = major; ffc04ee8: 3d 20 00 00 lis r9,0 ffc04eec: 93 e9 27 cc stw r31,10188(r9) } return RTEMS_SUCCESSFUL; } ffc04ef0: 38 60 00 00 li r3,0 ffc04ef4: 7c 08 03 a6 mtlr r0 ffc04ef8: 83 e1 00 0c lwz r31,12(r1) ffc04efc: 38 21 00 10 addi r1,r1,16 ffc04f00: 4e 80 00 20 blr major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); ffc04f04: 48 00 55 3d bl ffc0a440 <== NOT EXECUTED ffc04e64 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) ffc04e64: 2c 05 00 00 cmpwi r5,0 ffc04e68: 41 82 00 0c beq- ffc04e74 rw_args->bytes_moved = rw_args->count; ffc04e6c: 80 05 00 14 lwz r0,20(r5) <== NOT EXECUTED ffc04e70: 90 05 00 1c stw r0,28(r5) <== NOT EXECUTED return NULL_SUCCESSFUL; } ffc04e74: 38 60 00 00 li r3,0 ffc04e78: 4e 80 00 20 blr ffc053ec : 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 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 b1 bl ffc0e608 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 /* * 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 f3 b1 bl ffc1481c /* * 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 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 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 /* * 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 92 29 bl ffc0e6e8 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 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 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 /* * 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 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 4c lwz r3,10060(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 rtems_libio_free( iop ); ffc05590: 7f e3 fb 78 mr r3,r31 ffc05594: 48 00 8f fd bl ffc0e590 if ( loc_to_free ) ffc05598: 2f 99 00 00 cmpwi cr7,r25,0 ffc0559c: 41 9e 00 28 beq- cr7,ffc055c4 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 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 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 df 5d bl ffc13520 <__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 goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; ffc055d4: 48 00 df 4d bl ffc13520 <__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 ffc055e8: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc055ec: 4b ff ff 4c b ffc05538 <== 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 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { ffc055fc: 48 00 df 25 bl ffc13520 <__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 rc = errno; ffc0560c: 48 00 df 15 bl ffc13520 <__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 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); ffc05620: 80 7e 27 4c lwz r3,10060(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 99 bl ffc0e1d8 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 if(errno) rc = errno; ffc05650: 48 00 de d1 bl ffc13520 <__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 <== NOT EXECUTED close( iop - rtems_libio_iops ); ffc05660: 80 7e 27 4c lwz r3,10060(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 95 bl ffc0e110 <== NOT EXECUTED ffc05680: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc05684: 4b ff ff 60 b ffc055e4 <== 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 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 if ( rc ) { ffc056ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc056b0: 41 9e 00 14 beq- cr7,ffc056c4 rc = errno; ffc056b4: 48 00 de 6d bl ffc13520 <__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 <== 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 f1 55 bl ffc1481c 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 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 ffc056f4: 4b ff fd b4 b ffc054a8 */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; ffc056f8: 48 00 de 29 bl ffc13520 <__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 <== NOT EXECUTED ffc05708: 2e 1f 00 00 cmpwi cr4,r31,0 ffc0570c: 4b ff fe 80 b ffc0558c ffc05354 : /* * 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 f0 88 addi r31,r31,-3960 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 ffc05380: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05384: 41 9e 00 3c beq- cr7,ffc053c0 /* * 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 ffc0539c: 2f 83 ff ff cmpwi cr7,r3,-1 ffc053a0: 41 9e 00 34 beq- cr7,ffc053d4 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 ffc053b8: 2f 83 ff ff cmpwi cr7,r3,-1 ffc053bc: 41 9e 00 24 beq- cr7,ffc053e0 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 5d bl ffc09038 <== 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 51 bl ffc09038 <== NOT EXECUTED ffc060c4 : /* * 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 switch (c) { ffc060e8: 2f 83 00 09 cmpwi cr7,r3,9 ffc060ec: 41 9e 00 fc beq- cr7,ffc061e8 ffc060f0: 2b 83 00 09 cmplwi cr7,r3,9 ffc060f4: 40 9d 00 64 ble- cr7,ffc06158 ffc060f8: 2f 83 00 0a cmpwi cr7,r3,10 ffc060fc: 41 9e 00 7c beq- cr7,ffc06178 ffc06100: 2f 83 00 0d cmpwi cr7,r3,13 ffc06104: 41 9e 00 ac beq- cr7,ffc061b0 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 ffc06110: 3d 20 00 00 lis r9,0 ffc06114: 80 09 26 e0 lwz r0,9952(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 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 } 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 <== 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 <== 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 <== 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 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 rtems_termios_puts ("\r", 1, tty); ffc06190: 3c 60 ff c2 lis r3,-62 ffc06194: 38 63 f9 34 addi r3,r3,-1740 ffc06198: 38 80 00 01 li r4,1 ffc0619c: 7f e5 fb 78 mr r5,r31 ffc061a0: 4b ff fd 99 bl ffc05f38 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 } 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 <== 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 <== 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 <== 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 <== 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 <== 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 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 <== 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 e0 lwz r0,9952(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 <== 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 <== NOT EXECUTED ffc06238: 39 29 ff e0 addi r9,r9,-32 <== NOT EXECUTED ffc0623c: 4b ff ff f0 b ffc0622c <== 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 f9 38 addi r3,r3,-1736 ffc06250: 7f e5 fb 78 mr r5,r31 ffc06254: 4b ff fc e5 bl ffc05f38 return; ffc06258: 4b ff fe ec b ffc06144 ffc12830 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc12830: 94 21 ff b8 stwu r1,-72(r1) ffc12834: 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) ffc12838: 38 80 00 03 li r4,3 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc1283c: 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) ffc12840: 3f c0 ff c2 lis r30,-62 ffc12844: 3b de ff 0c addi r30,r30,-244 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc12848: 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) ffc1284c: 3b e1 00 18 addi r31,r1,24 ffc12850: 38 a0 00 07 li r5,7 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc12854: 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) ffc12858: 7f e6 fb 78 mr r6,r31 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc1285c: 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) ffc12860: 38 e0 00 01 li r7,1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc12864: 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) ffc12868: 7f c3 f3 78 mr r3,r30 ffc1286c: 4b ff 1c 81 bl ffc044ec ffc12870: 2f 83 00 00 cmpwi cr7,r3,0 ffc12874: 40 9e 01 38 bne- cr7,ffc129ac return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); ffc12878: 81 21 00 24 lwz r9,36(r1) <== NOT EXECUTED ffc1287c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc12880: 41 9e 00 1c beq- cr7,ffc1289c <== NOT EXECUTED ffc12884: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc12888: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc1288c: 41 9e 00 10 beq- cr7,ffc1289c <== NOT EXECUTED ffc12890: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc12894: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc12898: 4e 80 04 21 bctrl <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc1289c: 3d 20 00 00 lis r9,0 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc128a0: 3d 40 ff c2 lis r10,-62 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc128a4: a1 09 27 f8 lhz r8,10232(r9) else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc128a8: 39 6a ff 14 addi r11,r10,-236 ffc128ac: 81 4a ff 14 lwz r10,-236(r10) ffc128b0: a0 0b 00 08 lhz r0,8(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc128b4: 3c 80 ff c2 lis r4,-62 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc128b8: 81 6b 00 04 lwz r11,4(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc128bc: 7d 05 43 78 mr r5,r8 ffc128c0: 38 84 ff 20 addi r4,r4,-224 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc128c4: 91 41 00 08 stw r10,8(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc128c8: 39 08 00 01 addi r8,r8,1 ffc128cc: 38 61 00 12 addi r3,r1,18 ffc128d0: b1 09 27 f8 sth r8,10232(r9) /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { ffc128d4: 3b e1 00 08 addi r31,r1,8 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc128d8: 91 61 00 0c stw r11,12(r1) ffc128dc: b0 01 00 10 sth r0,16(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc128e0: 4c c6 31 82 crclr 4*cr1+eq ffc128e4: 48 00 1b 05 bl ffc143e8 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { ffc128e8: 7f e3 fb 78 mr r3,r31 ffc128ec: 38 80 01 80 li r4,384 ffc128f0: 48 00 01 99 bl ffc12a88 ffc128f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc128f8: 40 9e 00 90 bne- cr7,ffc12988 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); ffc128fc: 7f e3 fb 78 mr r3,r31 ffc12900: 38 80 40 00 li r4,16384 ffc12904: 4c c6 31 82 crclr 4*cr1+eq ffc12908: 4b ff 2a e5 bl ffc053ec if (filsdes[0] < 0) { ffc1290c: 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); ffc12910: 90 7d 00 00 stw r3,0(r29) if (filsdes[0] < 0) { ffc12914: 41 9c 00 d4 blt- cr7,ffc129e8 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]); ffc12918: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc1291c: 80 09 26 8c lwz r0,9868(r9) <== NOT EXECUTED ffc12920: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc12924: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc12928: 41 9c 00 ac blt- cr7,ffc129d4 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc1292c: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); ffc12930: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc12934: 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; ffc12938: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc1293c: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { ffc12940: 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); ffc12944: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc12948: 4b ff 2a a5 bl ffc053ec <== NOT EXECUTED if (filsdes[1] < 0) { ffc1294c: 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); ffc12950: 90 7d 00 04 stw r3,4(r29) <== NOT EXECUTED if (filsdes[1] < 0) { ffc12954: 41 9c 00 a8 blt- cr7,ffc129fc <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); ffc12958: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1295c: 48 00 01 59 bl ffc12ab4 <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); ffc12960: 48 00 0b c1 bl ffc13520 <__errno> } ffc12964: 80 01 00 4c lwz r0,76(r1) close(filsdes[0]); } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); ffc12968: 93 c3 00 00 stw r30,0(r3) } ffc1296c: 38 60 ff ff li r3,-1 ffc12970: 7c 08 03 a6 mtlr r0 ffc12974: 83 a1 00 3c lwz r29,60(r1) ffc12978: 83 c1 00 40 lwz r30,64(r1) ffc1297c: 83 e1 00 44 lwz r31,68(r1) ffc12980: 38 21 00 48 addi r1,r1,72 ffc12984: 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){ ffc12988: 48 00 0b 99 bl ffc13520 <__errno> <== NOT EXECUTED } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } ffc1298c: 80 01 00 4c lwz r0,76(r1) <== NOT EXECUTED ffc12990: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc12994: 83 a1 00 3c lwz r29,60(r1) <== NOT EXECUTED ffc12998: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1299c: 83 c1 00 40 lwz r30,64(r1) <== NOT EXECUTED ffc129a0: 83 e1 00 44 lwz r31,68(r1) <== NOT EXECUTED ffc129a4: 38 21 00 48 addi r1,r1,72 <== NOT EXECUTED ffc129a8: 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) ffc129ac: 48 00 0b 75 bl ffc13520 <__errno> ffc129b0: 80 03 00 00 lwz r0,0(r3) ffc129b4: 2f 80 00 02 cmpwi cr7,r0,2 ffc129b8: 40 9e ff d4 bne+ cr7,ffc1298c return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) ffc129bc: 7f c3 f3 78 mr r3,r30 ffc129c0: 38 80 03 ff li r4,1023 ffc129c4: 4b ff 20 f5 bl ffc04ab8 ffc129c8: 2f 83 00 00 cmpwi cr7,r3,0 ffc129cc: 41 9e fe d0 beq+ cr7,ffc1289c ffc129d0: 4b ff ff bc b ffc1298c <== 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]); ffc129d4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc129d8: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc129dc: 81 29 27 4c lwz r9,10060(r9) <== NOT EXECUTED ffc129e0: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED ffc129e4: 4b ff ff 48 b ffc1292c <== NOT EXECUTED } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); if (filsdes[0] < 0) { err = errno; ffc129e8: 48 00 0b 39 bl ffc13520 <__errno> ffc129ec: 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); ffc129f0: 7f e3 fb 78 mr r3,r31 ffc129f4: 48 00 00 c1 bl ffc12ab4 ffc129f8: 4b ff ff 68 b ffc12960 iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno; ffc129fc: 48 00 0b 25 bl ffc13520 <__errno> <== NOT EXECUTED ffc12a00: 83 c3 00 00 lwz r30,0(r3) <== NOT EXECUTED close(filsdes[0]); ffc12a04: 80 7d 00 00 lwz r3,0(r29) <== NOT EXECUTED ffc12a08: 4b ff b7 09 bl ffc0e110 <== NOT EXECUTED ffc12a0c: 4b ff ff 4c b ffc12958 <== NOT EXECUTED ffc1086c : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc1086c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc10870: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc10874: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (cmd == FIONREAD) { ffc10878: 3c 00 40 04 lis r0,16388 <== NOT EXECUTED ffc1087c: 60 00 66 7f ori r0,r0,26239 <== NOT EXECUTED ffc10880: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc10884: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc10888: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc1088c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (cmd == FIONREAD) { ffc10890: 38 60 ff ea li r3,-22 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc10894: 7c bf 2b 78 mr r31,r5 <== NOT EXECUTED if (cmd == FIONREAD) { ffc10898: 41 9e 00 1c beq- cr7,ffc108b4 <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; } return -EINVAL; } ffc1089c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc108a0: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc108a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc108a8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc108ac: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc108b0: 4e 80 00 20 blr <== NOT EXECUTED void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { if (buffer == NULL) ffc108b4: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc108b8: 38 60 ff f2 li r3,-14 <== NOT EXECUTED ffc108bc: 41 9e ff e0 beq+ cr7,ffc1089c <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) ffc108c0: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc108c4: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc108c8: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc108cc: 4b ff 7e 45 bl ffc08710 <== NOT EXECUTED ffc108d0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc108d4: 38 60 ff fc li r3,-4 <== NOT EXECUTED ffc108d8: 40 9e ff c4 bne+ cr7,ffc1089c <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc108dc: 80 1e 00 0c lwz r0,12(r30) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc108e0: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc108e4: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc108e8: 4b ff 7f 89 bl ffc08870 <== NOT EXECUTED ffc108ec: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; ffc108f0: 4b ff ff ac b ffc1089c <== NOT EXECUTED ffc107e4 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } ffc107e4: 38 60 ff e3 li r3,-29 <== NOT EXECUTED ffc107e8: 4e 80 00 20 blr <== NOT EXECUTED ffc108f4 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc108f4: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc108f8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc108fc: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc10900: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc10904: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc10908: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc1090c: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc10910: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc10914: 38 80 00 00 li r4,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc10918: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED ffc1091c: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc10920: 38 a0 00 00 li r5,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc10924: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc10928: 3b 40 ff fc li r26,-4 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc1092c: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED ffc10930: 7c db 33 78 mr r27,r6 <== NOT EXECUTED ffc10934: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED ffc10938: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED ffc1093c: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc10940: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc10944: 4b ff 7d cd bl ffc08710 <== NOT EXECUTED ffc10948: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc1094c: 40 9e 00 ac bne- cr7,ffc109f8 <== NOT EXECUTED return -EINTR; while (read < count) { ffc10950: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) ffc10954: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc10958: 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) { ffc1095c: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc10960: 41 9e 00 88 beq- cr7,ffc109e8 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); ffc10964: 3b 01 00 08 addi r24,r1,8 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { ffc10968: 83 9f 00 0c lwz r28,12(r31) <== NOT EXECUTED ffc1096c: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc10970: 40 9e 00 fc bne- cr7,ffc10a6c <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) ffc10974: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc10978: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc1097c: 41 9e 01 78 beq- cr7,ffc10af4 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { ffc10980: 80 1b 00 18 lwz r0,24(r27) <== NOT EXECUTED ffc10984: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc10988: 40 82 01 74 bne- ffc10afc <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; ffc1098c: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10990: 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 ++; ffc10994: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc10998: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc1099c: 4b ff 7e d5 bl ffc08870 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc109a0: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc109a4: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc109a8: 48 00 16 f5 bl ffc1209c <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc109ac: 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)) ffc109b0: 33 83 ff ff addic r28,r3,-1 <== NOT EXECUTED ffc109b4: 7f 9c e1 10 subfe r28,r28,r28 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc109b8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc109bc: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc109c0: 4b ff 7d 51 bl ffc08710 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ffc109c4: 57 9c 07 7a rlwinm r28,r28,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc109c8: 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)) ffc109cc: 3b 9c ff fc addi r28,r28,-4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc109d0: 40 9e 01 34 bne- cr7,ffc10b04 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) ffc109d4: 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 --; ffc109d8: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED ffc109dc: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc109e0: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED if (ret != 0) ffc109e4: 41 9e ff 84 beq+ cr7,ffc10968 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); ffc109e8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc109ec: 4b ff 7e 85 bl ffc08870 <== NOT EXECUTED out_nolock: if (read > 0) ffc109f0: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc109f4: 40 9d 00 3c ble- cr7,ffc10a30 <== NOT EXECUTED return read; return ret; } ffc109f8: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc109fc: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc10a00: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc10a04: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10a08: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc10a0c: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc10a10: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc10a14: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc10a18: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc10a1c: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc10a20: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc10a24: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc10a28: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc10a2c: 4e 80 00 20 blr <== NOT EXECUTED ffc10a30: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED out_locked: PIPE_UNLOCK(pipe); out_nolock: if (read > 0) ffc10a34: 7f 9a e3 78 mr r26,r28 <== NOT EXECUTED return read; return ret; } ffc10a38: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc10a3c: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc10a40: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10a44: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc10a48: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc10a4c: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc10a50: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc10a54: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc10a58: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc10a5c: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc10a60: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc10a64: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc10a68: 4e 80 00 20 blr <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); ffc10a6c: 7c 19 f0 50 subf r0,r25,r30 <== NOT EXECUTED ffc10a70: 7f 9c 00 40 cmplw cr7,r28,r0 <== NOT EXECUTED ffc10a74: 40 9d 00 08 ble- cr7,ffc10a7c <== NOT EXECUTED ffc10a78: 7c 1c 03 78 mr r28,r0 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; ffc10a7c: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc10a80: 82 ff 00 04 lwz r23,4(r31) <== NOT EXECUTED ffc10a84: 7e e0 b8 50 subf r23,r0,r23 <== NOT EXECUTED if (chunk > chunk1) { ffc10a88: 7f 9c b8 00 cmpw cr7,r28,r23 <== NOT EXECUTED ffc10a8c: 41 9d 00 80 bgt- cr7,ffc10b0c <== 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); ffc10a90: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc10a94: 7c 7d ca 14 add r3,r29,r25 <== NOT EXECUTED ffc10a98: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED ffc10a9c: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc10aa0: 48 00 36 69 bl ffc14108 <== NOT EXECUTED pipe->Start += chunk; ffc10aa4: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED pipe->Start %= pipe->Size; ffc10aa8: 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; ffc10aac: 7d 3c 4a 14 add r9,r28,r9 <== NOT EXECUTED pipe->Start %= pipe->Size; pipe->Length -= chunk; ffc10ab0: 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; ffc10ab4: 7d 49 5b 96 divwu r10,r9,r11 <== NOT EXECUTED pipe->Length -= chunk; ffc10ab8: 7c 1c 00 50 subf r0,r28,r0 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc10abc: 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; ffc10ac0: 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; ffc10ac4: 7d 6a 59 d6 mullw r11,r10,r11 <== NOT EXECUTED ffc10ac8: 7d 2b 48 50 subf r9,r11,r9 <== NOT EXECUTED ffc10acc: 91 3f 00 08 stw r9,8(r31) <== NOT EXECUTED pipe->Length -= chunk; /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc10ad0: 40 9e 00 08 bne- cr7,ffc10ad8 <== NOT EXECUTED pipe->Start = 0; ffc10ad4: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED if (pipe->waitingWriters > 0) ffc10ad8: 80 1f 00 1c lwz r0,28(r31) <== NOT EXECUTED ffc10adc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10ae0: 40 9e 00 58 bne- cr7,ffc10b38 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; ffc10ae4: 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) { ffc10ae8: 7f 9a f0 40 cmplw cr7,r26,r30 <== NOT EXECUTED ffc10aec: 7f 59 d3 78 mr r25,r26 <== NOT EXECUTED ffc10af0: 41 9c fe 78 blt+ cr7,ffc10968 <== NOT EXECUTED ffc10af4: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc10af8: 4b ff fe f0 b ffc109e8 <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { ffc10afc: 3b 80 ff f5 li r28,-11 <== NOT EXECUTED ffc10b00: 4b ff fe e8 b ffc109e8 <== 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)) { ffc10b04: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc10b08: 4b ff fe e8 b ffc109f0 <== 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); ffc10b0c: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc10b10: 7e e5 bb 78 mr r5,r23 <== NOT EXECUTED ffc10b14: 7c 7d ca 14 add r3,r29,r25 <== NOT EXECUTED ffc10b18: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc10b1c: 48 00 35 ed bl ffc14108 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); ffc10b20: 7c 79 ba 14 add r3,r25,r23 <== NOT EXECUTED ffc10b24: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc10b28: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc10b2c: 7c b7 e0 50 subf r5,r23,r28 <== NOT EXECUTED ffc10b30: 48 00 35 d9 bl ffc14108 <== NOT EXECUTED ffc10b34: 4b ff ff 70 b ffc10aa4 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); ffc10b38: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc10b3c: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc10b40: 48 00 14 c5 bl ffc12004 <== NOT EXECUTED ffc10b44: 4b ff ff a0 b ffc10ae4 <== NOT EXECUTED ffc10dd0 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10dd0: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc10dd4: 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, ffc10dd8: 38 a0 00 00 li r5,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10ddc: 90 01 00 34 stw r0,52(r1) <== NOT EXECUTED ffc10de0: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED pipe_control_t *pipe = *pipep; ffc10de4: 83 e3 00 00 lwz r31,0(r3) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10de8: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED ffc10dec: 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, ffc10df0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10df4: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED ffc10df8: 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, ffc10dfc: 38 80 00 00 li r4,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10e00: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED ffc10e04: 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, ffc10e08: 4b ff 79 09 bl ffc08710 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) ffc10e0c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10e10: 40 9e 01 64 bne- cr7,ffc10f74 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); ffc10e14: 83 be 00 18 lwz r29,24(r30) <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc10e18: 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); ffc10e1c: 57 bd 07 7c rlwinm r29,r29,0,29,30 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc10e20: 41 82 00 10 beq- ffc10e30 <== NOT EXECUTED pipe->Readers --; ffc10e24: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED ffc10e28: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc10e2c: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) ffc10e30: 73 a0 00 04 andi. r0,r29,4 <== NOT EXECUTED ffc10e34: 40 82 00 84 bne- ffc10eb8 <== NOT EXECUTED pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10e38: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc10e3c: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10e40: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10e44: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10e48: 4b ff 78 c9 bl ffc08710 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) ffc10e4c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10e50: 40 9e 01 24 bne- cr7,ffc10f74 <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); ffc10e54: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10e58: 4b ff 7a 19 bl ffc08870 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { ffc10e5c: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc10e60: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10e64: 40 9e 00 64 bne- cr7,ffc10ec8 <== NOT EXECUTED ffc10e68: 83 7f 00 14 lwz r27,20(r31) <== NOT EXECUTED ffc10e6c: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc10e70: 41 9e 00 a8 beq- cr7,ffc10f18 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) ffc10e74: 2f 9d 00 04 cmpwi cr7,r29,4 <== NOT EXECUTED ffc10e78: 41 be 00 10 beq+ cr7,ffc10e88 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); ffc10e7c: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc10e80: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc10e84: 48 00 11 81 bl ffc12004 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) PIPE_WAKEUPREADERS(pipe); rtems_semaphore_release(rtems_pipe_semaphore); ffc10e88: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10e8c: 4b ff 79 e5 bl ffc08870 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc10e90: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc10e94: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc10e98: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc10e9c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10ea0: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc10ea4: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc10ea8: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc10eac: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc10eb0: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc10eb4: 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 --; ffc10eb8: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED ffc10ebc: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc10ec0: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED ffc10ec4: 4b ff ff 74 b ffc10e38 <== 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) ffc10ec8: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc10ecc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10ed0: 40 be ff b8 bne- cr7,ffc10e88 <== NOT EXECUTED ffc10ed4: 2f 9d 00 02 cmpwi cr7,r29,2 <== NOT EXECUTED ffc10ed8: 41 be ff b0 beq- cr7,ffc10e88 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc10edc: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc10ee0: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc10ee4: 48 00 11 21 bl ffc12004 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); ffc10ee8: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10eec: 4b ff 79 85 bl ffc08870 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc10ef0: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc10ef4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc10ef8: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc10efc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10f00: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc10f04: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc10f08: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc10f0c: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc10f10: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc10f14: 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); ffc10f18: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc10f1c: 48 00 10 61 bl ffc11f7c <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); ffc10f20: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc10f24: 48 00 10 59 bl ffc11f7c <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); ffc10f28: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10f2c: 4b ff 77 09 bl ffc08634 <== NOT EXECUTED free(pipe->Buffer); ffc10f30: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10f34: 4b ff 36 c1 bl ffc045f4 <== NOT EXECUTED free(pipe); ffc10f38: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc10f3c: 4b ff 36 b9 bl ffc045f4 <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; ffc10f40: 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); ffc10f44: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10f48: 4b ff 79 29 bl ffc08870 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc10f4c: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc10f50: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc10f54: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc10f58: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10f5c: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc10f60: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc10f64: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc10f68: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc10f6c: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc10f70: 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); ffc10f74: 4b ff 80 c5 bl ffc09038 <== NOT EXECUTED ffc10b48 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc10b48: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc10b4c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc10b50: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc10b54: 7c be 2b 79 mr. r30,r5 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc10b58: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc10b5c: 3b 80 00 00 li r28,0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc10b60: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc10b64: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED ffc10b68: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc10b6c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc10b70: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc10b74: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED ffc10b78: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc10b7c: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED ffc10b80: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc10b84: 40 82 00 38 bne- ffc10bbc <== NOT EXECUTED #endif if (written > 0) return written; return ret; } ffc10b88: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc10b8c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc10b90: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc10b94: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10b98: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc10b9c: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc10ba0: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc10ba4: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc10ba8: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc10bac: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc10bb0: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc10bb4: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc10bb8: 4e 80 00 20 blr <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) ffc10bbc: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED ffc10bc0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10bc4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10bc8: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ffc10bcc: 4b ff 7b 45 bl ffc08710 <== NOT EXECUTED ffc10bd0: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc10bd4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10bd8: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED ffc10bdc: 40 be ff ac bne- cr7,ffc10b88 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { ffc10be0: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc10be4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10be8: 41 9e 01 58 beq- cr7,ffc10d40 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; ffc10bec: 81 3f 00 04 lwz r9,4(r31) <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { ffc10bf0: 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; ffc10bf4: 7f 9e 48 40 cmplw cr7,r30,r9 <== NOT EXECUTED ffc10bf8: 41 9d 00 08 bgt- cr7,ffc10c00 <== NOT EXECUTED ffc10bfc: 7f da f3 78 mr r26,r30 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { ffc10c00: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc10c04: 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); ffc10c08: 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) { ffc10c0c: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED ffc10c10: 7f 60 48 50 subf r27,r0,r9 <== NOT EXECUTED ffc10c14: 7f 9b d0 40 cmplw cr7,r27,r26 <== NOT EXECUTED ffc10c18: 40 9c 00 94 bge- cr7,ffc10cac <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { ffc10c1c: 80 06 00 18 lwz r0,24(r6) <== NOT EXECUTED ffc10c20: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc10c24: 40 82 01 64 bne- ffc10d88 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; ffc10c28: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10c2c: 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 ++; ffc10c30: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10c34: 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 ++; ffc10c38: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10c3c: 4b ff 7c 35 bl ffc08870 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc10c40: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc10c44: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10c48: 48 00 14 55 bl ffc1209c <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10c4c: 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)) ffc10c50: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED ffc10c54: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10c58: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10c5c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10c60: 4b ff 7a b1 bl ffc08710 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ffc10c64: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10c68: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10c6c: 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)) ffc10c70: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10c74: 40 9e 01 0c bne- cr7,ffc10d80 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) ffc10c78: 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 --; ffc10c7c: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED ffc10c80: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc10c84: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED if (ret != 0) ffc10c88: 40 9e 00 c0 bne- cr7,ffc10d48 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { ffc10c8c: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc10c90: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10c94: 41 9e 00 d4 beq- cr7,ffc10d68 <== NOT EXECUTED ffc10c98: 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) { ffc10c9c: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED ffc10ca0: 7f 60 48 50 subf r27,r0,r9 <== NOT EXECUTED ffc10ca4: 7f 9b d0 40 cmplw cr7,r27,r26 <== NOT EXECUTED ffc10ca8: 41 9c ff 74 blt+ cr7,ffc10c1c <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); ffc10cac: 7d 79 f0 50 subf r11,r25,r30 <== NOT EXECUTED ffc10cb0: 7f 9b 58 40 cmplw cr7,r27,r11 <== NOT EXECUTED ffc10cb4: 40 9d 00 08 ble- cr7,ffc10cbc <== NOT EXECUTED ffc10cb8: 7d 7b 5b 78 mr r27,r11 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); ffc10cbc: 81 7f 00 08 lwz r11,8(r31) <== NOT EXECUTED ffc10cc0: 7c 00 5a 14 add r0,r0,r11 <== NOT EXECUTED ffc10cc4: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED ffc10cc8: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED ffc10ccc: 7c 0b 00 50 subf r0,r11,r0 <== NOT EXECUTED ffc10cd0: 7f 40 48 50 subf r26,r0,r9 <== NOT EXECUTED if (chunk > chunk1) { ffc10cd4: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED ffc10cd8: 40 9d 00 b8 ble- cr7,ffc10d90 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); ffc10cdc: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10ce0: 7c 9d ca 14 add r4,r29,r25 <== NOT EXECUTED ffc10ce4: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc10ce8: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ffc10cec: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc10cf0: 48 00 34 19 bl ffc14108 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); ffc10cf4: 7c 9a ca 14 add r4,r26,r25 <== NOT EXECUTED ffc10cf8: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10cfc: 7c 9d 22 14 add r4,r29,r4 <== NOT EXECUTED ffc10d00: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED ffc10d04: 48 00 34 05 bl ffc14108 <== NOT EXECUTED ffc10d08: 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) ffc10d0c: 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; ffc10d10: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc10d14: 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; ffc10d18: 7c 00 da 14 add r0,r0,r27 <== NOT EXECUTED ffc10d1c: 90 1f 00 0c stw r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc10d20: 40 9e 00 90 bne- cr7,ffc10db0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; ffc10d24: 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) { ffc10d28: 7f 9e e0 40 cmplw cr7,r30,r28 <== NOT EXECUTED ffc10d2c: 7f 99 e3 78 mr r25,r28 <== NOT EXECUTED ffc10d30: 40 9d 00 98 ble- cr7,ffc10dc8 <== NOT EXECUTED ffc10d34: 81 3f 00 04 lwz r9,4(r31) <== NOT EXECUTED ffc10d38: 3b 40 00 01 li r26,1 <== NOT EXECUTED ffc10d3c: 4b ff fe d0 b ffc10c0c <== NOT EXECUTED ffc10d40: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc10d44: 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); ffc10d48: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10d4c: 4b ff 7b 25 bl ffc08870 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) ffc10d50: 2f 9b ff e0 cmpwi cr7,r27,-32 <== NOT EXECUTED ffc10d54: 41 9e 00 1c beq- cr7,ffc10d70 <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) ffc10d58: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc10d5c: 41 9d fe 2c bgt+ cr7,ffc10b88 <== NOT EXECUTED ffc10d60: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED ffc10d64: 4b ff fe 24 b ffc10b88 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { ffc10d68: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc10d6c: 4b ff ff dc b ffc10d48 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); ffc10d70: 48 00 0a f5 bl ffc11864 <== NOT EXECUTED ffc10d74: 38 80 00 0d li r4,13 <== NOT EXECUTED ffc10d78: 48 00 0d 89 bl ffc11b00 <== NOT EXECUTED ffc10d7c: 4b ff ff dc b ffc10d58 <== 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)) { ffc10d80: 3b 60 ff fc li r27,-4 <== NOT EXECUTED ffc10d84: 4b ff ff d4 b ffc10d58 <== 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)) { ffc10d88: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED ffc10d8c: 4b ff ff bc b ffc10d48 <== 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); ffc10d90: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10d94: 7c 9d ca 14 add r4,r29,r25 <== NOT EXECUTED ffc10d98: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc10d9c: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ffc10da0: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc10da4: 48 00 33 65 bl ffc14108 <== NOT EXECUTED ffc10da8: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED ffc10dac: 4b ff ff 60 b ffc10d0c <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); ffc10db0: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc10db4: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc10db8: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ffc10dbc: 48 00 12 49 bl ffc12004 <== NOT EXECUTED ffc10dc0: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED ffc10dc4: 4b ff ff 60 b ffc10d24 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { ffc10dc8: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc10dcc: 4b ff ff 7c b ffc10d48 <== NOT EXECUTED ffc05724 : * 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 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 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 ffc06f7c : int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... ) { ffc06f7c: 94 21 ff 90 stwu r1,-112(r1) ffc06f80: 7c 08 02 a6 mflr r0 ffc06f84: 90 a1 00 18 stw r5,24(r1) ffc06f88: 90 01 00 74 stw r0,116(r1) ffc06f8c: 90 c1 00 1c stw r6,28(r1) ffc06f90: 90 e1 00 20 stw r7,32(r1) ffc06f94: 91 01 00 24 stw r8,36(r1) ffc06f98: 91 21 00 28 stw r9,40(r1) ffc06f9c: 91 41 00 2c stw r10,44(r1) ffc06fa0: 40 86 00 24 bne- cr1,ffc06fc4 ffc06fa4: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc06fa8: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc06fac: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc06fb0: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc06fb4: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc06fb8: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc06fbc: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc06fc0: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arg_pointer; va_start (arg_pointer, format); ffc06fc4: 38 00 00 02 li r0,2 ffc06fc8: 98 01 00 08 stb r0,8(r1) ffc06fcc: 38 00 00 00 li r0,0 vprintk( format, arg_pointer ); ffc06fd0: 7c 83 23 78 mr r3,r4 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06fd4: 98 01 00 09 stb r0,9(r1) ffc06fd8: 38 01 00 78 addi r0,r1,120 vprintk( format, arg_pointer ); ffc06fdc: 38 81 00 08 addi r4,r1,8 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06fe0: 90 01 00 0c stw r0,12(r1) ffc06fe4: 38 01 00 10 addi r0,r1,16 ffc06fe8: 90 01 00 10 stw r0,16(r1) vprintk( format, arg_pointer ); ffc06fec: 48 00 22 c9 bl ffc092b4 va_end(arg_pointer); /* clean up when done */ return 0; } ffc06ff0: 38 60 00 00 li r3,0 ffc06ff4: 80 01 00 74 lwz r0,116(r1) ffc06ff8: 38 21 00 70 addi r1,r1,112 ffc06ffc: 7c 08 03 a6 mtlr r0 ffc07000: 4e 80 00 20 blr ffc09ff0 : int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc09ff0: 94 21 ff d8 stwu r1,-40(r1) ffc09ff4: 7c 08 02 a6 mflr r0 ffc09ff8: 93 a1 00 1c stw r29,28(r1) Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) ffc09ffc: 7c 7d 1b 79 mr. r29,r3 int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc0a000: 90 01 00 2c stw r0,44(r1) ffc0a004: 93 c1 00 20 stw r30,32(r1) ffc0a008: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) ffc0a00c: 41 82 00 9c beq- ffc0a0a8 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0a010: 7c 83 23 78 mr r3,r4 ffc0a014: 38 81 00 0c addi r4,r1,12 ffc0a018: 48 00 7f 99 bl ffc11fb0 <_POSIX_Absolute_timeout_to_ticks> ffc0a01c: 80 9d 00 00 lwz r4,0(r29) ffc0a020: 7c 7e 1b 78 mr r30,r3 ffc0a024: 3c 60 00 00 lis r3,0 ffc0a028: 38 63 2e 38 addi r3,r3,11832 ffc0a02c: 38 a1 00 08 addi r5,r1,8 ffc0a030: 48 00 37 75 bl ffc0d7a4 <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc0a034: 80 01 00 08 lwz r0,8(r1) ffc0a038: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a03c: 40 9e 00 6c bne- cr7,ffc0a0a8 int _EXFUN(pthread_rwlock_init, (pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr)); int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedrdlock, ffc0a040: 6b df 00 03 xori r31,r30,3 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( ffc0a044: 80 9d 00 00 lwz r4,0(r29) ffc0a048: 7f ff 00 34 cntlzw r31,r31 ffc0a04c: 80 c1 00 0c lwz r6,12(r1) ffc0a050: 57 ff d9 7e rlwinm r31,r31,27,5,31 ffc0a054: 38 63 00 10 addi r3,r3,16 ffc0a058: 7f e5 fb 78 mr r5,r31 ffc0a05c: 38 e0 00 00 li r7,0 ffc0a060: 48 00 26 c9 bl ffc0c728 <_CORE_RWLock_Obtain_for_reading> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); ffc0a064: 48 00 43 0d bl ffc0e370 <_Thread_Enable_dispatch> if ( !do_wait ) { ffc0a068: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0a06c: 40 9e 00 74 bne- cr7,ffc0a0e0 if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { ffc0a070: 3d 20 00 00 lis r9,0 ffc0a074: 81 29 27 fc lwz r9,10236(r9) ffc0a078: 80 09 00 34 lwz r0,52(r9) ffc0a07c: 2f 80 00 02 cmpwi cr7,r0,2 ffc0a080: 41 9e 00 48 beq- cr7,ffc0a0c8 break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a084: 7c 03 03 78 mr r3,r0 ffc0a088: 48 00 01 69 bl ffc0a1f0 <_POSIX_RWLock_Translate_core_RWLock_return_code> case OBJECTS_ERROR: break; } return EINVAL; } ffc0a08c: 80 01 00 2c lwz r0,44(r1) ffc0a090: 83 a1 00 1c lwz r29,28(r1) ffc0a094: 7c 08 03 a6 mtlr r0 ffc0a098: 83 c1 00 20 lwz r30,32(r1) ffc0a09c: 83 e1 00 24 lwz r31,36(r1) ffc0a0a0: 38 21 00 28 addi r1,r1,40 ffc0a0a4: 4e 80 00 20 blr break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a0a8: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a0ac: 80 01 00 2c lwz r0,44(r1) ffc0a0b0: 83 a1 00 1c lwz r29,28(r1) ffc0a0b4: 7c 08 03 a6 mtlr r0 ffc0a0b8: 83 c1 00 20 lwz r30,32(r1) ffc0a0bc: 83 e1 00 24 lwz r31,36(r1) ffc0a0c0: 38 21 00 28 addi r1,r1,40 ffc0a0c4: 4e 80 00 20 blr ); _Thread_Enable_dispatch(); if ( !do_wait ) { if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { switch (status) { ffc0a0c8: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0a0cc: 41 be ff dc beq- cr7,ffc0a0a8 ffc0a0d0: 2b 9e 00 02 cmplwi cr7,r30,2 ffc0a0d4: 38 60 00 74 li r3,116 ffc0a0d8: 40 bd ff d4 ble- cr7,ffc0a0ac ffc0a0dc: 4b ff ff a8 b ffc0a084 <== NOT EXECUTED ffc0a0e0: 3d 20 00 00 lis r9,0 ffc0a0e4: 81 29 27 fc lwz r9,10236(r9) ffc0a0e8: 80 09 00 34 lwz r0,52(r9) ffc0a0ec: 4b ff ff 98 b ffc0a084 ffc0a0f0 : int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc0a0f0: 94 21 ff d8 stwu r1,-40(r1) ffc0a0f4: 7c 08 02 a6 mflr r0 ffc0a0f8: 93 a1 00 1c stw r29,28(r1) Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) ffc0a0fc: 7c 7d 1b 79 mr. r29,r3 int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc0a100: 90 01 00 2c stw r0,44(r1) ffc0a104: 93 c1 00 20 stw r30,32(r1) ffc0a108: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) ffc0a10c: 41 82 00 9c beq- ffc0a1a8 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0a110: 7c 83 23 78 mr r3,r4 ffc0a114: 38 81 00 0c addi r4,r1,12 ffc0a118: 48 00 7e 99 bl ffc11fb0 <_POSIX_Absolute_timeout_to_ticks> ffc0a11c: 80 9d 00 00 lwz r4,0(r29) ffc0a120: 7c 7e 1b 78 mr r30,r3 ffc0a124: 3c 60 00 00 lis r3,0 ffc0a128: 38 63 2e 38 addi r3,r3,11832 ffc0a12c: 38 a1 00 08 addi r5,r1,8 ffc0a130: 48 00 36 75 bl ffc0d7a4 <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc0a134: 80 01 00 08 lwz r0,8(r1) ffc0a138: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a13c: 40 9e 00 6c bne- cr7,ffc0a1a8 (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime)); int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedwrlock, ffc0a140: 6b df 00 03 xori r31,r30,3 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( ffc0a144: 80 9d 00 00 lwz r4,0(r29) ffc0a148: 7f ff 00 34 cntlzw r31,r31 ffc0a14c: 80 c1 00 0c lwz r6,12(r1) ffc0a150: 57 ff d9 7e rlwinm r31,r31,27,5,31 ffc0a154: 38 63 00 10 addi r3,r3,16 ffc0a158: 7f e5 fb 78 mr r5,r31 ffc0a15c: 38 e0 00 00 li r7,0 ffc0a160: 48 00 27 0d bl ffc0c86c <_CORE_RWLock_Obtain_for_writing> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); ffc0a164: 48 00 42 0d bl ffc0e370 <_Thread_Enable_dispatch> if ( !do_wait && ffc0a168: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0a16c: 40 9e 00 74 bne- cr7,ffc0a1e0 (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { ffc0a170: 3d 20 00 00 lis r9,0 ffc0a174: 81 29 27 fc lwz r9,10236(r9) ffc0a178: 80 09 00 34 lwz r0,52(r9) ticks, NULL ); _Thread_Enable_dispatch(); if ( !do_wait && ffc0a17c: 2f 80 00 02 cmpwi cr7,r0,2 ffc0a180: 41 9e 00 48 beq- cr7,ffc0a1c8 case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a184: 7c 03 03 78 mr r3,r0 ffc0a188: 48 00 00 69 bl ffc0a1f0 <_POSIX_RWLock_Translate_core_RWLock_return_code> case OBJECTS_ERROR: break; } return EINVAL; } ffc0a18c: 80 01 00 2c lwz r0,44(r1) ffc0a190: 83 a1 00 1c lwz r29,28(r1) ffc0a194: 7c 08 03 a6 mtlr r0 ffc0a198: 83 c1 00 20 lwz r30,32(r1) ffc0a19c: 83 e1 00 24 lwz r31,36(r1) ffc0a1a0: 38 21 00 28 addi r1,r1,40 ffc0a1a4: 4e 80 00 20 blr case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a1a8: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a1ac: 80 01 00 2c lwz r0,44(r1) ffc0a1b0: 83 a1 00 1c lwz r29,28(r1) ffc0a1b4: 7c 08 03 a6 mtlr r0 ffc0a1b8: 83 c1 00 20 lwz r30,32(r1) ffc0a1bc: 83 e1 00 24 lwz r31,36(r1) ffc0a1c0: 38 21 00 28 addi r1,r1,40 ffc0a1c4: 4e 80 00 20 blr ); _Thread_Enable_dispatch(); if ( !do_wait && (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { switch (status) { ffc0a1c8: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0a1cc: 41 be ff dc beq- cr7,ffc0a1a8 ffc0a1d0: 2b 9e 00 02 cmplwi cr7,r30,2 ffc0a1d4: 38 60 00 74 li r3,116 ffc0a1d8: 40 bd ff d4 ble- cr7,ffc0a1ac ffc0a1dc: 4b ff ff a8 b ffc0a184 <== NOT EXECUTED ffc0a1e0: 3d 20 00 00 lis r9,0 ffc0a1e4: 81 29 27 fc lwz r9,10236(r9) ffc0a1e8: 80 09 00 34 lwz r0,52(r9) ffc0a1ec: 4b ff ff 98 b ffc0a184 ffc08e18 : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc08e18: 94 21 ff f0 stwu r1,-16(r1) ffc08e1c: 7c 08 02 a6 mflr r0 * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc08e20: 3d 20 00 00 lis r9,0 * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc08e24: 90 01 00 14 stw r0,20(r1) * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc08e28: 80 09 27 bc lwz r0,10172(r9) * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc08e2c: 93 e1 00 0c stw r31,12(r1) * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc08e30: 2f 80 00 00 cmpwi cr7,r0,0 ffc08e34: 40 9e 00 48 bne- cr7,ffc08e7c ffc08e38: 3d 20 00 00 lis r9,0 ffc08e3c: 81 49 27 94 lwz r10,10132(r9) return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc08e40: 3f e0 00 00 lis r31,0 ffc08e44: 81 7f 27 d4 lwz r11,10196(r31) ffc08e48: 38 0a 00 01 addi r0,r10,1 ffc08e4c: 90 09 27 94 stw r0,10132(r9) ffc08e50: 81 2b 01 48 lwz r9,328(r11) _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && ffc08e54: 80 09 00 d4 lwz r0,212(r9) ffc08e58: 2f 80 00 00 cmpwi cr7,r0,0 ffc08e5c: 40 9e 00 34 bne- cr7,ffc08e90 thread_support->cancelation_requested ) ffc08e60: 80 09 00 dc lwz r0,220(r9) ffc08e64: 2f 80 00 00 cmpwi cr7,r0,0 ffc08e68: 41 9e 00 28 beq- cr7,ffc08e90 cancel = true; _Thread_Enable_dispatch(); ffc08e6c: 48 00 32 3d bl ffc0c0a8 <_Thread_Enable_dispatch> if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); ffc08e70: 80 7f 27 d4 lwz r3,10196(r31) ffc08e74: 38 80 ff ff li r4,-1 ffc08e78: 48 00 71 4d bl ffc0ffc4 <_POSIX_Thread_Exit> } ffc08e7c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc08e80: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc08e84: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc08e88: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc08e8c: 4e 80 00 20 blr <== NOT EXECUTED _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); ffc08e90: 48 00 32 19 bl ffc0c0a8 <_Thread_Enable_dispatch> if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); } ffc08e94: 80 01 00 14 lwz r0,20(r1) ffc08e98: 83 e1 00 0c lwz r31,12(r1) ffc08e9c: 38 21 00 10 addi r1,r1,16 ffc08ea0: 7c 08 03 a6 mtlr r0 ffc08ea4: 4e 80 00 20 blr ffc1e37c : ssize_t read( int fd, void *buffer, size_t count ) { ffc1e37c: 94 21 ff f0 stwu r1,-16(r1) ffc1e380: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e384: 3d 20 00 00 lis r9,0 ssize_t read( int fd, void *buffer, size_t count ) { ffc1e388: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e38c: 80 09 26 8c lwz r0,9868(r9) ssize_t read( int fd, void *buffer, size_t count ) { ffc1e390: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e394: 7f 83 00 40 cmplw cr7,r3,r0 ffc1e398: 40 9c 00 94 bge- cr7,ffc1e42c iop = rtems_libio_iop( fd ); ffc1e39c: 3d 60 00 00 lis r11,0 ffc1e3a0: 83 eb 27 4c lwz r31,10060(r11) ffc1e3a4: 1c 63 00 48 mulli r3,r3,72 ffc1e3a8: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1e3ac: 81 7f 00 18 lwz r11,24(r31) ffc1e3b0: 71 6a 01 00 andi. r10,r11,256 ffc1e3b4: 41 82 00 78 beq- ffc1e42c rtems_libio_check_buffer( buffer ); ffc1e3b8: 2f 84 00 00 cmpwi cr7,r4,0 ffc1e3bc: 41 9e 00 84 beq- cr7,ffc1e440 rtems_libio_check_count( count ); ffc1e3c0: 2f 85 00 00 cmpwi cr7,r5,0 ffc1e3c4: 38 60 00 00 li r3,0 ffc1e3c8: 41 9e 00 50 beq- cr7,ffc1e418 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc1e3cc: 71 60 00 02 andi. r0,r11,2 ffc1e3d0: 41 82 00 70 beq- ffc1e440 /* * Now process the read(). */ if ( !iop->handlers->read_h ) ffc1e3d4: 81 3f 00 40 lwz r9,64(r31) ffc1e3d8: 80 09 00 08 lwz r0,8(r9) ffc1e3dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e3e0: 41 9e 00 74 beq- cr7,ffc1e454 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); ffc1e3e4: 7f e3 fb 78 mr r3,r31 ffc1e3e8: 7c 09 03 a6 mtctr r0 ffc1e3ec: 4e 80 04 21 bctrl if ( rc > 0 ) ffc1e3f0: 2c 03 00 00 cmpwi r3,0 ffc1e3f4: 40 81 00 24 ble- ffc1e418 iop->offset += rc; ffc1e3f8: 80 ff 00 10 lwz r7,16(r31) ffc1e3fc: 7c 6a 1b 78 mr r10,r3 ffc1e400: 81 1f 00 14 lwz r8,20(r31) ffc1e404: 7c 69 fe 70 srawi r9,r3,31 ffc1e408: 7d 88 50 14 addc r12,r8,r10 ffc1e40c: 7d 67 49 14 adde r11,r7,r9 ffc1e410: 91 7f 00 10 stw r11,16(r31) ffc1e414: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1e418: 80 01 00 14 lwz r0,20(r1) ffc1e41c: 83 e1 00 0c lwz r31,12(r1) ffc1e420: 38 21 00 10 addi r1,r1,16 ffc1e424: 7c 08 03 a6 mtlr r0 ffc1e428: 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 ); ffc1e42c: 4b ff 50 f5 bl ffc13520 <__errno> ffc1e430: 38 00 00 09 li r0,9 ffc1e434: 90 03 00 00 stw r0,0(r3) ffc1e438: 38 60 ff ff li r3,-1 ffc1e43c: 4b ff ff dc b ffc1e418 rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc1e440: 4b ff 50 e1 bl ffc13520 <__errno> <== NOT EXECUTED ffc1e444: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1e448: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e44c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e450: 4b ff ff c8 b ffc1e418 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1e454: 4b ff 50 cd bl ffc13520 <__errno> <== NOT EXECUTED ffc1e458: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1e45c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e460: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e464: 4b ff ff b4 b ffc1e418 <== NOT EXECUTED ffc30dc8 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc30dc8: 94 21 ff c8 stwu r1,-56(r1) ffc30dcc: 7c 08 02 a6 mflr r0 ffc30dd0: 93 a1 00 2c stw r29,44(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc30dd4: 7c 9d 23 79 mr. r29,r4 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc30dd8: 93 81 00 28 stw r28,40(r1) ffc30ddc: 7c 7c 1b 78 mr r28,r3 ffc30de0: 93 c1 00 30 stw r30,48(r1) ffc30de4: 7c be 2b 78 mr r30,r5 ffc30de8: 90 01 00 3c stw r0,60(r1) ffc30dec: 93 e1 00 34 stw r31,52(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc30df0: 41 82 00 c4 beq- ffc30eb4 rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), ffc30df4: 48 02 55 e1 bl ffc563d4 ffc30df8: 3b e1 00 08 addi r31,r1,8 ffc30dfc: 7c 64 1b 78 mr r4,r3 ffc30e00: 38 a0 00 00 li r5,0 ffc30e04: 7f 83 e3 78 mr r3,r28 ffc30e08: 7f e6 fb 78 mr r6,r31 ffc30e0c: 38 e0 00 00 li r7,0 ffc30e10: 4b fd 80 71 bl ffc08e80 0, &loc, false ); if ( result != 0 ) ffc30e14: 3b 80 ff ff li r28,-1 ffc30e18: 2f 83 00 00 cmpwi cr7,r3,0 ffc30e1c: 40 9e 00 74 bne- cr7,ffc30e90 return -1; if ( !loc.ops->node_type_h ){ ffc30e20: 81 21 00 14 lwz r9,20(r1) ffc30e24: 80 09 00 10 lwz r0,16(r9) ffc30e28: 2f 80 00 00 cmpwi cr7,r0,0 ffc30e2c: 41 9e 00 f4 beq- cr7,ffc30f20 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ ffc30e30: 7f e3 fb 78 mr r3,r31 ffc30e34: 7c 09 03 a6 mtctr r0 ffc30e38: 4e 80 04 21 bctrl ffc30e3c: 2f 83 00 04 cmpwi cr7,r3,4 ffc30e40: 40 9e 00 a8 bne- cr7,ffc30ee8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ ffc30e44: 81 21 00 14 lwz r9,20(r1) ffc30e48: 80 09 00 3c lwz r0,60(r9) ffc30e4c: 2f 80 00 00 cmpwi cr7,r0,0 ffc30e50: 41 9e 00 d0 beq- cr7,ffc30f20 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); ffc30e54: 7f a4 eb 78 mr r4,r29 ffc30e58: 7c 09 03 a6 mtctr r0 ffc30e5c: 7f c5 f3 78 mr r5,r30 ffc30e60: 7f e3 fb 78 mr r3,r31 ffc30e64: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc30e68: 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 ); ffc30e6c: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc30e70: 2f 89 00 00 cmpwi cr7,r9,0 ffc30e74: 41 9e 00 1c beq- cr7,ffc30e90 ffc30e78: 80 09 00 1c lwz r0,28(r9) ffc30e7c: 2f 80 00 00 cmpwi cr7,r0,0 ffc30e80: 41 9e 00 10 beq- cr7,ffc30e90 ffc30e84: 7f e3 fb 78 mr r3,r31 ffc30e88: 7c 09 03 a6 mtctr r0 ffc30e8c: 4e 80 04 21 bctrl return result; } ffc30e90: 80 01 00 3c lwz r0,60(r1) ffc30e94: 7f 83 e3 78 mr r3,r28 ffc30e98: 83 a1 00 2c lwz r29,44(r1) ffc30e9c: 7c 08 03 a6 mtlr r0 ffc30ea0: 83 81 00 28 lwz r28,40(r1) ffc30ea4: 83 c1 00 30 lwz r30,48(r1) ffc30ea8: 83 e1 00 34 lwz r31,52(r1) ffc30eac: 38 21 00 38 addi r1,r1,56 ffc30eb0: 4e 80 00 20 blr { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); ffc30eb4: 48 01 d7 4d bl ffc4e600 <__errno> <== NOT EXECUTED ffc30eb8: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc30ebc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc30ec0: 3b 80 ff ff li r28,-1 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } ffc30ec4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc30ec8: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc30ecc: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED ffc30ed0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30ed4: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc30ed8: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc30edc: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc30ee0: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc30ee4: 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 ); ffc30ee8: 81 21 00 14 lwz r9,20(r1) ffc30eec: 2f 89 00 00 cmpwi cr7,r9,0 ffc30ef0: 41 9e 00 1c beq- cr7,ffc30f0c ffc30ef4: 80 09 00 1c lwz r0,28(r9) ffc30ef8: 2f 80 00 00 cmpwi cr7,r0,0 ffc30efc: 41 9e 00 10 beq- cr7,ffc30f0c ffc30f00: 7f e3 fb 78 mr r3,r31 ffc30f04: 7c 09 03 a6 mtctr r0 ffc30f08: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EINVAL ); ffc30f0c: 48 01 d6 f5 bl ffc4e600 <__errno> ffc30f10: 38 00 00 16 li r0,22 ffc30f14: 90 03 00 00 stw r0,0(r3) ffc30f18: 3b 80 ff ff li r28,-1 ffc30f1c: 4b ff ff 74 b ffc30e90 } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); ffc30f20: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30f24: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30f28: 41 9e 00 10 beq- cr7,ffc30f38 <== NOT EXECUTED ffc30f2c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30f30: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30f34: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc30f38: 48 01 d6 c9 bl ffc4e600 <__errno> <== NOT EXECUTED ffc30f3c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc30f40: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc30f44: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc30f48: 4b ff ff 48 b ffc30e90 <== NOT EXECUTED ffc06dd8 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc06dd8: 94 21 ff d8 stwu r1,-40(r1) ffc06ddc: 7c 08 02 a6 mflr r0 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc06de0: 3d 20 00 00 lis r9,0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc06de4: 90 01 00 2c stw r0,44(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc06de8: 80 09 26 8c lwz r0,9868(r9) ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc06dec: 93 a1 00 1c stw r29,28(r1) ffc06df0: 7c bd 2b 78 mr r29,r5 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc06df4: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc06df8: 93 21 00 0c stw r25,12(r1) ffc06dfc: 93 41 00 10 stw r26,16(r1) ffc06e00: 93 61 00 14 stw r27,20(r1) ffc06e04: 93 81 00 18 stw r28,24(r1) ffc06e08: 93 c1 00 20 stw r30,32(r1) ffc06e0c: 93 e1 00 24 stw r31,36(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc06e10: 40 9c 01 4c bge- cr7,ffc06f5c iop = rtems_libio_iop( fd ); ffc06e14: 3d 20 00 00 lis r9,0 ffc06e18: 83 c9 27 50 lwz r30,10064(r9) ffc06e1c: 1c 63 00 48 mulli r3,r3,72 ffc06e20: 7f de 1a 14 add r30,r30,r3 rtems_libio_check_is_open( iop ); ffc06e24: 80 1e 00 18 lwz r0,24(r30) ffc06e28: 70 09 01 00 andi. r9,r0,256 ffc06e2c: 41 82 01 30 beq- ffc06f5c rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc06e30: 70 09 00 02 andi. r9,r0,2 ffc06e34: 41 82 00 e8 beq- ffc06f1c /* * Argument validation on IO vector */ if ( !iov ) ffc06e38: 2f 84 00 00 cmpwi cr7,r4,0 ffc06e3c: 41 9e 00 e0 beq- cr7,ffc06f1c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc06e40: 2f 85 00 00 cmpwi cr7,r5,0 ffc06e44: 40 9d 00 d8 ble- cr7,ffc06f1c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc06e48: 2f 85 04 00 cmpwi cr7,r5,1024 ffc06e4c: 41 9d 00 d0 bgt- cr7,ffc06f1c rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) ffc06e50: 81 3e 00 40 lwz r9,64(r30) ffc06e54: 80 09 00 08 lwz r0,8(r9) ffc06e58: 2f 80 00 00 cmpwi cr7,r0,0 ffc06e5c: 41 9e 01 14 beq- cr7,ffc06f70 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06e60: 7c a9 03 a6 mtctr r5 ffc06e64: 7c 9f 23 78 mr r31,r4 ffc06e68: 7c 89 23 78 mr r9,r4 ffc06e6c: 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 ) ffc06e70: 81 49 00 00 lwz r10,0(r9) ffc06e74: 2f 8a 00 00 cmpwi cr7,r10,0 ffc06e78: 41 9e 00 a4 beq- cr7,ffc06f1c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06e7c: 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++ ) { ffc06e80: 39 29 00 08 addi r9,r9,8 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06e84: 2f 88 00 00 cmpwi cr7,r8,0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; ffc06e88: 7d 4b 42 14 add r10,r11,r8 if ( total < old ) ffc06e8c: 7f 0b 50 00 cmpw cr6,r11,r10 * 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++ ) { ffc06e90: 7d 4b 53 78 mr r11,r10 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06e94: 41 9e 00 88 beq- cr7,ffc06f1c rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) ffc06e98: 41 99 00 84 bgt- cr6,ffc06f1c * 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++ ) { ffc06e9c: 42 00 ff d4 bdnz+ ffc06e70 ffc06ea0: 3b 80 00 00 li r28,0 ffc06ea4: 3b 60 00 00 li r27,0 ffc06ea8: 48 00 00 48 b ffc06ef0 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) return -1; if ( bytes > 0 ) { ffc06eac: 41 82 00 28 beq- ffc06ed4 iop->offset += bytes; ffc06eb0: 81 7e 00 10 lwz r11,16(r30) <== NOT EXECUTED ffc06eb4: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED ffc06eb8: 81 9e 00 14 lwz r12,20(r30) <== NOT EXECUTED ffc06ebc: 7c 79 fe 70 srawi r25,r3,31 <== NOT EXECUTED total += bytes; ffc06ec0: 7f 7b 1a 14 add r27,r27,r3 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc06ec4: 7d 4c d0 14 addc r10,r12,r26 <== NOT EXECUTED ffc06ec8: 7d 2b c9 14 adde r9,r11,r25 <== NOT EXECUTED ffc06ecc: 91 3e 00 10 stw r9,16(r30) <== NOT EXECUTED ffc06ed0: 91 5e 00 14 stw r10,20(r30) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) ffc06ed4: 80 1f 00 04 lwz r0,4(r31) } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06ed8: 3b ff 00 08 addi r31,r31,8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) ffc06edc: 7f 03 00 00 cmpw cr6,r3,r0 ffc06ee0: 40 9a 00 4c bne- cr6,ffc06f2c } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06ee4: 40 9d 00 48 ble- cr7,ffc06f2c <== NOT EXECUTED ffc06ee8: 81 3e 00 40 lwz r9,64(r30) <== NOT EXECUTED ffc06eec: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc06ef0: 80 9f 00 00 lwz r4,0(r31) ffc06ef4: 7f c3 f3 78 mr r3,r30 ffc06ef8: 80 bf 00 04 lwz r5,4(r31) ffc06efc: 7c 09 03 a6 mtctr r0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06f00: 3b 9c 00 01 addi r28,r28,1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc06f04: 4e 80 04 21 bctrl } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06f08: 7f 9d e0 00 cmpw cr7,r29,r28 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) ffc06f0c: 2c 03 00 00 cmpwi r3,0 ffc06f10: 40 80 ff 9c bge+ ffc06eac } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06f14: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc06f18: 48 00 00 14 b ffc06f2c <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc06f1c: 48 00 f5 e5 bl ffc16500 <__errno> ffc06f20: 38 00 00 16 li r0,22 ffc06f24: 90 03 00 00 stw r0,0(r3) ffc06f28: 3b 60 ff ff li r27,-1 if (bytes != iov[ v ].iov_len) break; } return total; } ffc06f2c: 80 01 00 2c lwz r0,44(r1) ffc06f30: 7f 63 db 78 mr r3,r27 ffc06f34: 83 21 00 0c lwz r25,12(r1) ffc06f38: 7c 08 03 a6 mtlr r0 ffc06f3c: 83 41 00 10 lwz r26,16(r1) ffc06f40: 83 61 00 14 lwz r27,20(r1) ffc06f44: 83 81 00 18 lwz r28,24(r1) ffc06f48: 83 a1 00 1c lwz r29,28(r1) ffc06f4c: 83 c1 00 20 lwz r30,32(r1) ffc06f50: 83 e1 00 24 lwz r31,36(r1) ffc06f54: 38 21 00 28 addi r1,r1,40 ffc06f58: 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 ); ffc06f5c: 48 00 f5 a5 bl ffc16500 <__errno> <== NOT EXECUTED ffc06f60: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc06f64: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc06f68: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc06f6c: 4b ff ff c0 b ffc06f2c <== 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 ); ffc06f70: 48 00 f5 91 bl ffc16500 <__errno> <== NOT EXECUTED ffc06f74: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06f78: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc06f7c: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc06f80: 4b ff ff ac b ffc06f2c <== NOT EXECUTED ffc1e50c : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1e50c: 94 21 ff d8 stwu r1,-40(r1) ffc1e510: 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())) { ffc1e514: 3d 20 00 00 lis r9,0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1e518: 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())) { ffc1e51c: 80 09 27 d4 lwz r0,10196(r9) { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1e520: 93 c1 00 20 stw r30,32(r1) ffc1e524: 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())) { ffc1e528: 2f 80 00 03 cmpwi cr7,r0,3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1e52c: 3b de 2b 00 addi r30,r30,11008 ffc1e530: 93 a1 00 1c stw r29,28(r1) ffc1e534: 7c 9d 23 78 mr r29,r4 ffc1e538: 81 3e 00 10 lwz r9,16(r30) ffc1e53c: 93 e1 00 24 stw r31,36(r1) ffc1e540: 7c 7f 1b 78 mr r31,r3 ffc1e544: 39 29 00 01 addi r9,r9,1 ffc1e548: 93 81 00 18 stw r28,24(r1) ffc1e54c: 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())) { ffc1e550: 41 9e 00 a0 beq- cr7,ffc1e5f0 } /* * Continue with realloc(). */ if ( !ptr ) ffc1e554: 2f 9f 00 00 cmpwi cr7,r31,0 ffc1e558: 41 9e 00 88 beq- cr7,ffc1e5e0 return malloc( size ); if ( !size ) { ffc1e55c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc1e560: 41 9e 00 5c beq- cr7,ffc1e5bc free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { ffc1e564: 3f 80 00 00 lis r28,0 ffc1e568: 80 7c 26 9c lwz r3,9884(r28) ffc1e56c: 7f e4 fb 78 mr r4,r31 ffc1e570: 38 a1 00 08 addi r5,r1,8 ffc1e574: 48 00 01 e5 bl ffc1e758 <_Protected_heap_Get_block_size> ffc1e578: 2f 83 00 00 cmpwi cr7,r3,0 ffc1e57c: 41 9e 00 50 beq- cr7,ffc1e5cc #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 ) ) { ffc1e580: 80 7c 26 9c lwz r3,9884(r28) ffc1e584: 7f e4 fb 78 mr r4,r31 ffc1e588: 7f a5 eb 78 mr r5,r29 ffc1e58c: 48 00 02 31 bl ffc1e7bc <_Protected_heap_Resize_block> ffc1e590: 2f 83 00 00 cmpwi cr7,r3,0 ffc1e594: 41 9e 00 8c beq- cr7,ffc1e620 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } ffc1e598: 80 01 00 2c lwz r0,44(r1) ffc1e59c: 7f e3 fb 78 mr r3,r31 ffc1e5a0: 83 81 00 18 lwz r28,24(r1) ffc1e5a4: 7c 08 03 a6 mtlr r0 ffc1e5a8: 83 a1 00 1c lwz r29,28(r1) ffc1e5ac: 83 c1 00 20 lwz r30,32(r1) ffc1e5b0: 83 e1 00 24 lwz r31,36(r1) ffc1e5b4: 38 21 00 28 addi r1,r1,40 ffc1e5b8: 4e 80 00 20 blr */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); ffc1e5bc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1e5c0: 4b fe 60 35 bl ffc045f4 <== NOT EXECUTED ffc1e5c4: 3b e0 00 00 li r31,0 <== NOT EXECUTED return (void *) 0; ffc1e5c8: 4b ff ff d0 b ffc1e598 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; ffc1e5cc: 4b ff 4f 55 bl ffc13520 <__errno> ffc1e5d0: 38 00 00 16 li r0,22 ffc1e5d4: 90 03 00 00 stw r0,0(r3) ffc1e5d8: 3b e0 00 00 li r31,0 return (void *) 0; ffc1e5dc: 4b ff ff bc b ffc1e598 /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); ffc1e5e0: 7f a3 eb 78 mr r3,r29 ffc1e5e4: 4b fe 63 91 bl ffc04974 ffc1e5e8: 7c 7f 1b 78 mr r31,r3 ffc1e5ec: 4b ff ff ac b ffc1e598 /* * 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) ffc1e5f0: 3d 20 00 00 lis r9,0 ffc1e5f4: 80 09 27 70 lwz r0,10096(r9) ffc1e5f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e5fc: 41 9e 00 0c beq- cr7,ffc1e608 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; ffc1e600: 3b e0 00 00 li r31,0 ffc1e604: 4b ff ff 94 b ffc1e598 if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) ffc1e608: 3d 20 00 00 lis r9,0 ffc1e60c: 80 09 27 98 lwz r0,10136(r9) ffc1e610: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e614: 41 9e ff 40 beq+ cr7,ffc1e554 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; ffc1e618: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc1e61c: 4b ff ff 7c b ffc1e598 <== 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 ); ffc1e620: 7f a3 eb 78 mr r3,r29 ffc1e624: 4b fe 63 51 bl ffc04974 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc1e628: 81 3e 00 04 lwz r9,4(r30) if ( !new_area ) { ffc1e62c: 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 */ ffc1e630: 38 09 ff ff addi r0,r9,-1 ffc1e634: 90 1e 00 04 stw r0,4(r30) if ( !new_area ) { ffc1e638: 41 a2 ff c8 beq- ffc1e600 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); ffc1e63c: 80 01 00 08 lwz r0,8(r1) ffc1e640: 7f a5 eb 78 mr r5,r29 ffc1e644: 7f 9d 00 40 cmplw cr7,r29,r0 ffc1e648: 40 9d 00 08 ble- cr7,ffc1e650 ffc1e64c: 7c 05 03 78 mr r5,r0 ffc1e650: 7f e4 fb 78 mr r4,r31 ffc1e654: 7f 83 e3 78 mr r3,r28 ffc1e658: 4b ff 5a b1 bl ffc14108 free( ptr ); ffc1e65c: 7f e3 fb 78 mr r3,r31 ffc1e660: 4b fe 5f 95 bl ffc045f4 ffc1e664: 7f 9f e3 78 mr r31,r28 return new_area; ffc1e668: 4b ff ff 30 b ffc1e598 ffc0a9a0 : #include int rmdir( const char *pathname ) { ffc0a9a0: 94 21 ff b8 stwu r1,-72(r1) ffc0a9a4: 7c 08 02 a6 mflr r0 ffc0a9a8: 93 c1 00 40 stw r30,64(r1) ffc0a9ac: 93 e1 00 44 stw r31,68(r1) ffc0a9b0: 7c 7f 1b 78 mr r31,r3 ffc0a9b4: 90 01 00 4c stw r0,76(r1) ffc0a9b8: 93 81 00 38 stw r28,56(r1) ffc0a9bc: 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 ); ffc0a9c0: 4b ff e3 0d bl ffc08ccc if ( parentpathlen == 0 ) ffc0a9c4: 7c 7e 1b 79 mr. r30,r3 ffc0a9c8: 40 82 02 c0 bne- ffc0ac88 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); ffc0a9cc: 88 1f 00 00 lbz r0,0(r31) ffc0a9d0: 2f 80 00 2f cmpwi cr7,r0,47 ffc0a9d4: 41 9e 00 14 beq- cr7,ffc0a9e8 ffc0a9d8: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc0a9dc: 41 9e 00 0c beq- cr7,ffc0a9e8 <== NOT EXECUTED ffc0a9e0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0a9e4: 40 9e 01 68 bne- cr7,ffc0ab4c <== NOT EXECUTED ffc0a9e8: 3d 20 00 00 lis r9,0 ffc0a9ec: 81 29 35 2c lwz r9,13612(r9) ffc0a9f0: 3b a0 00 00 li r29,0 ffc0a9f4: 80 09 00 24 lwz r0,36(r9) ffc0a9f8: 81 09 00 18 lwz r8,24(r9) ffc0a9fc: 81 49 00 1c lwz r10,28(r9) ffc0aa00: 81 69 00 20 lwz r11,32(r9) ffc0aa04: 91 01 00 08 stw r8,8(r1) ffc0aa08: 91 41 00 0c stw r10,12(r1) ffc0aa0c: 91 61 00 10 stw r11,16(r1) ffc0aa10: 90 01 00 14 stw r0,20(r1) ffc0aa14: 80 09 00 28 lwz r0,40(r9) ffc0aa18: 90 01 00 18 stw r0,24(r1) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc0aa1c: 80 01 00 08 lwz r0,8(r1) name = pathname + parentpathlen; ffc0aa20: 7f df f2 14 add r30,r31,r30 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc0aa24: 7f c3 f3 78 mr r3,r30 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc0aa28: 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 ), ffc0aa2c: 3b e1 00 1c addi r31,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc0aa30: 80 01 00 0c lwz r0,12(r1) ffc0aa34: 90 01 00 20 stw r0,32(r1) ffc0aa38: 80 01 00 10 lwz r0,16(r1) ffc0aa3c: 90 01 00 24 stw r0,36(r1) ffc0aa40: 80 01 00 14 lwz r0,20(r1) ffc0aa44: 90 01 00 28 stw r0,40(r1) ffc0aa48: 80 01 00 18 lwz r0,24(r1) ffc0aa4c: 90 01 00 2c stw r0,44(r1) name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc0aa50: 48 04 b9 85 bl ffc563d4 ffc0aa54: 7c 64 1b 78 mr r4,r3 ffc0aa58: 7f c3 f3 78 mr r3,r30 ffc0aa5c: 4b ff e2 21 bl ffc08c7c ffc0aa60: 7f de 1a 14 add r30,r30,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc0aa64: 7f c3 f3 78 mr r3,r30 ffc0aa68: 48 04 b9 6d bl ffc563d4 ffc0aa6c: 38 a0 00 00 li r5,0 ffc0aa70: 7c 64 1b 78 mr r4,r3 ffc0aa74: 7f e6 fb 78 mr r6,r31 ffc0aa78: 7f c3 f3 78 mr r3,r30 ffc0aa7c: 38 e0 00 00 li r7,0 ffc0aa80: 4b ff e2 d9 bl ffc08d58 0, &loc, false ); if ( result != 0 ) { ffc0aa84: 2f 83 00 00 cmpwi cr7,r3,0 ffc0aa88: 40 9e 01 60 bne- cr7,ffc0abe8 /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ ffc0aa8c: 81 21 00 28 lwz r9,40(r1) ffc0aa90: 80 09 00 10 lwz r0,16(r9) ffc0aa94: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aa98: 41 9e 01 98 beq- cr7,ffc0ac30 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 ){ ffc0aa9c: 7f e3 fb 78 mr r3,r31 ffc0aaa0: 7c 09 03 a6 mtctr r0 ffc0aaa4: 4e 80 04 21 bctrl ffc0aaa8: 2f 83 00 01 cmpwi cr7,r3,1 ffc0aaac: 40 9e 00 d8 bne- cr7,ffc0ab84 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ ffc0aab0: 81 21 00 24 lwz r9,36(r1) ffc0aab4: 80 09 00 34 lwz r0,52(r9) ffc0aab8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aabc: 41 9e 01 68 beq- cr7,ffc0ac24 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); ffc0aac0: 3b c1 00 08 addi r30,r1,8 ffc0aac4: 7c 09 03 a6 mtctr r0 ffc0aac8: 7f c3 f3 78 mr r3,r30 ffc0aacc: 7f e4 fb 78 mr r4,r31 ffc0aad0: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc0aad4: 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 ); ffc0aad8: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc0aadc: 2f 89 00 00 cmpwi cr7,r9,0 ffc0aae0: 41 9e 00 1c beq- cr7,ffc0aafc ffc0aae4: 80 09 00 1c lwz r0,28(r9) ffc0aae8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aaec: 41 9e 00 10 beq- cr7,ffc0aafc ffc0aaf0: 7f e3 fb 78 mr r3,r31 ffc0aaf4: 7c 09 03 a6 mtctr r0 ffc0aaf8: 4e 80 04 21 bctrl if ( free_parentloc ) ffc0aafc: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0ab00: 41 9e 00 28 beq- cr7,ffc0ab28 rtems_filesystem_freenode( &parentloc ); ffc0ab04: 81 21 00 14 lwz r9,20(r1) ffc0ab08: 2f 89 00 00 cmpwi cr7,r9,0 ffc0ab0c: 41 9e 00 1c beq- cr7,ffc0ab28 ffc0ab10: 80 09 00 1c lwz r0,28(r9) ffc0ab14: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ab18: 41 9e 00 10 beq- cr7,ffc0ab28 ffc0ab1c: 7f c3 f3 78 mr r3,r30 ffc0ab20: 7c 09 03 a6 mtctr r0 ffc0ab24: 4e 80 04 21 bctrl return result; } ffc0ab28: 80 01 00 4c lwz r0,76(r1) ffc0ab2c: 7f 83 e3 78 mr r3,r28 ffc0ab30: 83 a1 00 3c lwz r29,60(r1) ffc0ab34: 7c 08 03 a6 mtlr r0 ffc0ab38: 83 81 00 38 lwz r28,56(r1) ffc0ab3c: 83 c1 00 40 lwz r30,64(r1) ffc0ab40: 83 e1 00 44 lwz r31,68(r1) ffc0ab44: 38 21 00 48 addi r1,r1,72 ffc0ab48: 4e 80 00 20 blr */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); ffc0ab4c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0ab50: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc0ab54: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc0ab58: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc0ab5c: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc0ab60: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc0ab64: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc0ab68: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc0ab6c: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc0ab70: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc0ab74: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0ab78: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc0ab7c: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED ffc0ab80: 4b ff fe 9c b ffc0aa1c <== 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 ); ffc0ab84: 81 21 00 28 lwz r9,40(r1) ffc0ab88: 2f 89 00 00 cmpwi cr7,r9,0 ffc0ab8c: 41 9e 00 1c beq- cr7,ffc0aba8 ffc0ab90: 80 09 00 1c lwz r0,28(r9) ffc0ab94: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ab98: 41 9e 00 10 beq- cr7,ffc0aba8 ffc0ab9c: 7f e3 fb 78 mr r3,r31 ffc0aba0: 7c 09 03 a6 mtctr r0 ffc0aba4: 4e 80 04 21 bctrl if ( free_parentloc ) ffc0aba8: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0abac: 41 9e 00 28 beq- cr7,ffc0abd4 rtems_filesystem_freenode( &parentloc ); ffc0abb0: 81 21 00 14 lwz r9,20(r1) ffc0abb4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0abb8: 41 9e 00 1c beq- cr7,ffc0abd4 ffc0abbc: 80 09 00 1c lwz r0,28(r9) ffc0abc0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0abc4: 41 9e 00 10 beq- cr7,ffc0abd4 ffc0abc8: 38 61 00 08 addi r3,r1,8 ffc0abcc: 7c 09 03 a6 mtctr r0 ffc0abd0: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0abd4: 48 04 3a 2d bl ffc4e600 <__errno> ffc0abd8: 38 00 00 14 li r0,20 ffc0abdc: 90 03 00 00 stw r0,0(r3) ffc0abe0: 3b 80 ff ff li r28,-1 ffc0abe4: 4b ff ff 44 b ffc0ab28 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 ) ffc0abe8: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0abec: 40 9e 00 0c bne- cr7,ffc0abf8 result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); ffc0abf0: 3b 80 ff ff li r28,-1 ffc0abf4: 4b ff ff 34 b ffc0ab28 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); ffc0abf8: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc0abfc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0ac00: 41 9e ff f0 beq+ cr7,ffc0abf0 <== NOT EXECUTED ffc0ac04: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0ac08: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ac0c: 41 9e ff e4 beq+ cr7,ffc0abf0 <== NOT EXECUTED ffc0ac10: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0ac14: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0ac18: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc0ac1c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0ac20: 4b ff ff 08 b ffc0ab28 <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); ffc0ac24: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc0ac28: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0ac2c: 41 9e 00 1c beq- cr7,ffc0ac48 <== NOT EXECUTED ffc0ac30: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0ac34: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ac38: 41 9e 00 10 beq- cr7,ffc0ac48 <== NOT EXECUTED ffc0ac3c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0ac40: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0ac44: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc0ac48: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0ac4c: 41 9e 00 28 beq- cr7,ffc0ac74 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc0ac50: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc0ac54: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0ac58: 41 9e 00 1c beq- cr7,ffc0ac74 <== NOT EXECUTED ffc0ac5c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0ac60: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ac64: 41 9e 00 10 beq- cr7,ffc0ac74 <== NOT EXECUTED ffc0ac68: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0ac6c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0ac70: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0ac74: 48 04 39 8d bl ffc4e600 <__errno> <== NOT EXECUTED ffc0ac78: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0ac7c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ac80: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc0ac84: 4b ff fe a4 b ffc0ab28 <== 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, ffc0ac88: 7f e3 fb 78 mr r3,r31 ffc0ac8c: 7f c4 f3 78 mr r4,r30 ffc0ac90: 38 a0 00 02 li r5,2 ffc0ac94: 38 c1 00 08 addi r6,r1,8 ffc0ac98: 38 e0 00 00 li r7,0 ffc0ac9c: 4b ff e1 e5 bl ffc08e80 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc0aca0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0aca4: 40 be ff 4c bne- cr7,ffc0abf0 ffc0aca8: 3b a0 00 01 li r29,1 ffc0acac: 4b ff fd 70 b ffc0aa1c ffc1afe0 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { ffc1afe0: 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] = ""; #endif return bad_buffer; } ffc1afe4: 38 63 22 50 addi r3,r3,8784 <== NOT EXECUTED ffc1afe8: 4e 80 00 20 blr <== NOT EXECUTED ffc167e8 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc167e8: 94 21 ff f0 stwu r1,-16(r1) ffc167ec: 7c 08 02 a6 mflr r0 ffc167f0: 93 e1 00 0c stw r31,12(r1) ffc167f4: 7c 9f 23 78 mr r31,r4 ffc167f8: 90 01 00 14 stw r0,20(r1) const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc167fc: 48 00 00 41 bl ffc1683c if (nap) ffc16800: 2c 03 00 00 cmpwi r3,0 ffc16804: 41 82 00 1c beq- ffc16820 return nap->name; return rtems_assoc_name_bad(local_value); } ffc16808: 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; ffc1680c: 80 63 00 00 lwz r3,0(r3) return rtems_assoc_name_bad(local_value); } ffc16810: 7c 08 03 a6 mtlr r0 ffc16814: 83 e1 00 0c lwz r31,12(r1) ffc16818: 38 21 00 10 addi r1,r1,16 ffc1681c: 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); ffc16820: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc16824: 48 00 47 bd bl ffc1afe0 <== NOT EXECUTED } ffc16828: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc1682c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc16830: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc16834: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc16838: 4e 80 00 20 blr <== NOT EXECUTED ffc13448 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc13448: 94 21 ff f0 stwu r1,-16(r1) ffc1344c: 7c 08 02 a6 mflr r0 ffc13450: 90 01 00 14 stw r0,20(r1) ffc13454: 93 e1 00 0c stw r31,12(r1) ffc13458: 7c 7f 1b 78 mr r31,r3 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc1345c: 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 ) { ffc13460: 93 c1 00 08 stw r30,8(r1) ffc13464: 7c 9e 23 78 mr r30,r4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc13468: 2f 83 00 00 cmpwi cr7,r3,0 ffc1346c: 41 9e 00 94 beq- cr7,ffc13500 ffc13470: 3c 80 ff c2 lis r4,-62 ffc13474: 38 84 ff 00 addi r4,r4,-256 ffc13478: 48 00 12 85 bl ffc146fc ffc1347c: 39 20 00 00 li r9,0 ffc13480: 2f 83 00 00 cmpwi cr7,r3,0 ffc13484: 40 9e 00 34 bne- cr7,ffc134b8 default_ap = ap++; for ( ; ap->name; ap++) ffc13488: 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++; ffc1348c: 38 1f 00 0c addi r0,r31,12 <== NOT EXECUTED for ( ; ap->name; ap++) ffc13490: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc13494: 41 9e 00 30 beq- cr7,ffc134c4 <== NOT EXECUTED ffc13498: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc1349c: 7c 1f 03 78 mr r31,r0 <== NOT EXECUTED if (ap->local_value == local_value) ffc134a0: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc134a4: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED ffc134a8: 41 9e 00 1c beq- cr7,ffc134c4 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc134ac: 84 1f 00 0c lwzu r0,12(r31) ffc134b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc134b4: 41 9e 00 2c beq- cr7,ffc134e0 if (ap->local_value == local_value) ffc134b8: 80 1f 00 04 lwz r0,4(r31) ffc134bc: 7f 80 f0 00 cmpw cr7,r0,r30 ffc134c0: 40 9e ff ec bne+ cr7,ffc134ac return ap; return default_ap; } ffc134c4: 80 01 00 14 lwz r0,20(r1) ffc134c8: 7f e3 fb 78 mr r3,r31 ffc134cc: 83 c1 00 08 lwz r30,8(r1) ffc134d0: 7c 08 03 a6 mtlr r0 ffc134d4: 83 e1 00 0c lwz r31,12(r1) ffc134d8: 38 21 00 10 addi r1,r1,16 ffc134dc: 4e 80 00 20 blr ffc134e0: 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++) ffc134e4: 7d 3f 4b 78 mr r31,r9 if (ap->local_value == local_value) return ap; return default_ap; } ffc134e8: 7f e3 fb 78 mr r3,r31 ffc134ec: 83 c1 00 08 lwz r30,8(r1) ffc134f0: 7c 08 03 a6 mtlr r0 ffc134f4: 83 e1 00 0c lwz r31,12(r1) ffc134f8: 38 21 00 10 addi r1,r1,16 ffc134fc: 4e 80 00 20 blr ffc13500: 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)) ffc13504: 3b e0 00 00 li r31,0 <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->local_value == local_value) return ap; return default_ap; } ffc13508: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1350c: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc13510: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc13514: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc13518: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc1351c: 4e 80 00 20 blr <== NOT EXECUTED ffc1178c : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc1178c: 94 21 ff f0 stwu r1,-16(r1) ffc11790: 7c 08 02 a6 mflr r0 ffc11794: 90 01 00 14 stw r0,20(r1) ffc11798: 93 e1 00 0c stw r31,12(r1) ffc1179c: 7c 7f 1b 78 mr r31,r3 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc117a0: 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 ) { ffc117a4: 93 c1 00 08 stw r30,8(r1) ffc117a8: 7c 9e 23 78 mr r30,r4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc117ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc117b0: 41 9e 00 94 beq- cr7,ffc11844 ffc117b4: 3c 80 ff c2 lis r4,-62 ffc117b8: 38 84 ff 00 addi r4,r4,-256 ffc117bc: 48 00 2f 41 bl ffc146fc ffc117c0: 39 20 00 00 li r9,0 ffc117c4: 2f 83 00 00 cmpwi cr7,r3,0 ffc117c8: 40 9e 00 34 bne- cr7,ffc117fc default_ap = ap++; for ( ; ap->name; ap++) ffc117cc: 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++; ffc117d0: 38 1f 00 0c addi r0,r31,12 <== NOT EXECUTED for ( ; ap->name; ap++) ffc117d4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc117d8: 41 9e 00 30 beq- cr7,ffc11808 <== NOT EXECUTED ffc117dc: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc117e0: 7c 1f 03 78 mr r31,r0 <== NOT EXECUTED if (ap->remote_value == remote_value) ffc117e4: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc117e8: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED ffc117ec: 41 9e 00 1c beq- cr7,ffc11808 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc117f0: 84 1f 00 0c lwzu r0,12(r31) ffc117f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc117f8: 41 9e 00 2c beq- cr7,ffc11824 if (ap->remote_value == remote_value) ffc117fc: 80 1f 00 08 lwz r0,8(r31) ffc11800: 7f 80 f0 00 cmpw cr7,r0,r30 ffc11804: 40 9e ff ec bne+ cr7,ffc117f0 return ap; return default_ap; } ffc11808: 80 01 00 14 lwz r0,20(r1) ffc1180c: 7f e3 fb 78 mr r3,r31 ffc11810: 83 c1 00 08 lwz r30,8(r1) ffc11814: 7c 08 03 a6 mtlr r0 ffc11818: 83 e1 00 0c lwz r31,12(r1) ffc1181c: 38 21 00 10 addi r1,r1,16 ffc11820: 4e 80 00 20 blr ffc11824: 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++) ffc11828: 7d 3f 4b 78 mr r31,r9 if (ap->remote_value == remote_value) return ap; return default_ap; } ffc1182c: 7f e3 fb 78 mr r3,r31 ffc11830: 83 c1 00 08 lwz r30,8(r1) ffc11834: 7c 08 03 a6 mtlr r0 ffc11838: 83 e1 00 0c lwz r31,12(r1) ffc1183c: 38 21 00 10 addi r1,r1,16 ffc11840: 4e 80 00 20 blr ffc11844: 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)) ffc11848: 3b e0 00 00 li r31,0 <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->remote_value == remote_value) return ap; return default_ap; } ffc1184c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc11850: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc11854: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc11858: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc1185c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc11860: 4e 80 00 20 blr <== NOT EXECUTED ffc12a58 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc12a58: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc12a5c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc12a60: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc12a64: 48 00 09 e5 bl ffc13448 <== NOT EXECUTED if (nap) ffc12a68: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc12a6c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc12a70: 41 82 00 08 beq- ffc12a78 <== NOT EXECUTED return nap->remote_value; ffc12a74: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED return 0; } ffc12a78: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc12a7c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc12a80: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc12a84: 4e 80 00 20 blr <== NOT EXECUTED ffc04264 : size_t length ) { const char *p; if ( !name ) ffc04264: 2f 83 00 00 cmpwi cr7,r3,0 const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { ffc04268: 94 21 ff f0 stwu r1,-16(r1) ffc0426c: 7c 08 02 a6 mflr r0 ffc04270: 90 01 00 14 stw r0,20(r1) const char *p; if ( !name ) ffc04274: 40 9e 00 1c bne- cr7,ffc04290 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i return NULL; if ( !length ) ffc04298: 2f 85 00 00 cmpwi cr7,r5,0 ffc0429c: 41 9e ff dc beq+ cr7,ffc04278 return NULL; value[0] = '\0'; ffc042a0: 38 00 00 00 li r0,0 ffc042a4: 98 04 00 00 stb r0,0(r4) p = rtems_bsp_cmdline_get_param_raw( name ); ffc042a8: 90 81 00 08 stw r4,8(r1) ffc042ac: 90 a1 00 0c stw r5,12(r1) ffc042b0: 48 00 00 81 bl ffc04330 if ( !p ) ffc042b4: 2c 03 00 00 cmpwi r3,0 ffc042b8: 80 81 00 08 lwz r4,8(r1) ffc042bc: 80 a1 00 0c lwz r5,12(r1) ffc042c0: 41 a2 ff b8 beq- ffc04278 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i ffc042d0: 34 a5 ff ff addic. r5,r5,-1 ffc042d4: 41 a2 ff a8 beq- ffc0427c if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) break; value[i++] = *p++; value[i] = '\0'; ffc042d8: 7c a9 03 a6 mtctr r5 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i quotes=0; for (i=0 ; *p && i ffc042f8: 41 be ff 84 beq- cr7,ffc0427c break; value[i++] = *p++; ffc042fc: 39 29 00 01 addi r9,r9,1 ffc04300: 7c 04 59 ae stbx r0,r4,r11 ffc04304: 7d 2b 4b 78 mr r11,r9 value[i] = '\0'; ffc04308: 7d 04 49 ae stbx r8,r4,r9 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i ffc04318: 42 40 ff 64 bdz+ ffc0427c if ( *p == '\"' ) { ffc0431c: 2f 80 00 22 cmpwi cr7,r0,34 quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) ffc04320: 71 47 00 01 andi. r7,r10,1 int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i quotes++; ffc04328: 39 4a 00 01 addi r10,r10,1 <== NOT EXECUTED ffc0432c: 4b ff ff d0 b ffc042fc <== NOT EXECUTED ffc0437c : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { ffc0437c: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc04380: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc04384: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc04388: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc0438c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc04390: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc04394: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED ffc04398: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); ffc0439c: 4b ff fe c9 bl ffc04264 <== NOT EXECUTED if ( !p ) ffc043a0: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc043a4: 40 82 00 28 bne- ffc043cc <== NOT EXECUTED if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; } ffc043a8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; ffc043ac: 3b e0 00 00 li r31,0 <== NOT EXECUTED } ffc043b0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc043b4: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc043b8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc043bc: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc043c0: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc043c4: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc043c8: 4e 80 00 20 blr <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; ffc043cc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc043d0: 48 01 05 41 bl ffc14910 <== NOT EXECUTED if ( *rhs != '=' ) ffc043d4: 7c 1d 18 ae lbzx r0,r29,r3 <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; ffc043d8: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED if ( *rhs != '=' ) ffc043dc: 2f 80 00 3d cmpwi cr7,r0,61 <== NOT EXECUTED ffc043e0: 40 9e ff c8 bne+ cr7,ffc043a8 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) ffc043e4: 88 1d 00 01 lbz r0,1(r29) <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; ffc043e8: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED if ( *rhs == '\"' ) ffc043ec: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc043f0: 41 9e 00 60 beq- cr7,ffc04450 <== NOT EXECUTED rhs++; for ( d=value ; *rhs ; ) ffc043f4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc043f8: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc043fc: 41 9e 00 18 beq- cr7,ffc04414 <== NOT EXECUTED *d++ = *rhs++; ffc04400: 98 09 00 00 stb r0,0(r9) <== NOT EXECUTED ffc04404: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) ffc04408: 8c 1d 00 01 lbzu r0,1(r29) <== NOT EXECUTED ffc0440c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04410: 40 9e ff f0 bne+ cr7,ffc04400 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) ffc04414: 88 09 ff ff lbz r0,-1(r9) <== NOT EXECUTED ffc04418: 39 69 ff ff addi r11,r9,-1 <== NOT EXECUTED ffc0441c: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc04420: 41 9e 00 08 beq- cr7,ffc04428 <== NOT EXECUTED ffc04424: 7d 2b 4b 78 mr r11,r9 <== NOT EXECUTED d--; *d = '\0'; ffc04428: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc0442c: 98 0b 00 00 stb r0,0(r11) <== NOT EXECUTED return value; } ffc04430: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04434: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc04438: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0443c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04440: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc04444: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc04448: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0444c: 4e 80 00 20 blr <== NOT EXECUTED if ( *rhs != '=' ) return NULL; rhs++; if ( *rhs == '\"' ) rhs++; ffc04450: 8c 1d 00 01 lbzu r0,1(r29) <== NOT EXECUTED ffc04454: 4b ff ff a0 b ffc043f4 <== NOT EXECUTED ffc12a10 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc12a10: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc12a14: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc12a18: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc12a1c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc12a20: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc12a24: 38 63 ff 28 addi r3,r3,-216 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc12a28: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc12a2c: 48 00 00 2d bl ffc12a58 <== NOT EXECUTED ffc12a30: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc12a34: 41 a2 00 0c beq+ ffc12a40 <== NOT EXECUTED { errno = rc; ffc12a38: 48 00 0a e9 bl ffc13520 <__errno> <== NOT EXECUTED ffc12a3c: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED return -1; } return -1; } ffc12a40: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc12a44: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc12a48: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc12a4c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc12a50: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc12a54: 4e 80 00 20 blr <== NOT EXECUTED ffc0ae48 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { ffc0ae48: 94 21 ff 90 stwu r1,-112(r1) <== NOT EXECUTED ffc0ae4c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0ae50: 90 a1 00 18 stw r5,24(r1) <== NOT EXECUTED ffc0ae54: 90 01 00 74 stw r0,116(r1) <== NOT EXECUTED ffc0ae58: 90 c1 00 1c stw r6,28(r1) <== NOT EXECUTED ffc0ae5c: 90 e1 00 20 stw r7,32(r1) <== NOT EXECUTED ffc0ae60: 91 01 00 24 stw r8,36(r1) <== NOT EXECUTED ffc0ae64: 91 21 00 28 stw r9,40(r1) <== NOT EXECUTED ffc0ae68: 91 41 00 2c stw r10,44(r1) <== NOT EXECUTED ffc0ae6c: 40 86 00 24 bne- cr1,ffc0ae90 <== NOT EXECUTED ffc0ae70: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0ae74: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0ae78: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0ae7c: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0ae80: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0ae84: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0ae88: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0ae8c: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0ae90: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc0ae94: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0ae98: 38 00 00 00 li r0,0 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0ae9c: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0aea0: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0aea4: 38 01 00 78 addi r0,r1,120 <== NOT EXECUTED ffc0aea8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc0aeac: 38 01 00 10 addi r0,r1,16 <== NOT EXECUTED ffc0aeb0: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0aeb4: 4b ff fd 01 bl ffc0abb4 <== NOT EXECUTED va_end(arglist); return chars_written; } ffc0aeb8: 80 01 00 74 lwz r0,116(r1) <== NOT EXECUTED ffc0aebc: 38 21 00 70 addi r1,r1,112 <== NOT EXECUTED ffc0aec0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0aec4: 4e 80 00 20 blr <== NOT EXECUTED ffc044ec : /* * 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_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 /* * 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 ffc04514: 2f 80 00 5c cmpwi cr7,r0,92 ffc04518: 41 9e 00 0c beq- cr7,ffc04524 ffc0451c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04520: 40 9e 00 54 bne- cr7,ffc04574 ffc04524: 3d 20 00 00 lis r9,0 ffc04528: 81 29 26 dc lwz r9,9948(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 /* * 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 dc lwz r9,9948(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 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 ef 5d bl ffc13520 <__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) ffc045d4: 38 60 ff ff li r3,-1 ffc045d8: 38 21 00 08 addi r1,r1,8 ffc045dc: 7c 08 03 a6 mtlr r0 ffc045e0: 4e 80 00 20 blr /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc045e4: 48 00 ef 3d bl ffc13520 <__errno> ffc045e8: 38 00 00 0e li r0,14 ffc045ec: 90 03 00 00 stw r0,0(r3) ffc045f0: 4b ff ff e0 b ffc045d0 ffc043c4 : /* * 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_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_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_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 ffc0441c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc04420: 41 9e 00 2c beq- cr7,ffc0444c 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_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 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 * 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 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 <== 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 f0 71 bl ffc13520 <__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 <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc044c4: 48 00 f0 5d bl ffc13520 <__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 <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc044d8: 48 00 f0 49 bl ffc13520 <__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 <== NOT EXECUTED ffc04160 : * 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 dc lwz r9,9948(r31) * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 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 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) ffc0418c: 3d 20 00 00 lis r9,0 ffc04190: 80 09 26 98 lwz r0,9880(r9) ffc04194: 2f 80 00 00 cmpwi cr7,r0,0 ffc04198: 41 9e 01 2c beq- cr7,ffc042c4 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; ffc0419c: 3d 20 00 00 lis r9,0 ffc041a0: 81 29 26 94 lwz r9,9876(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 &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 * 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 dc lwz r9,9948(r31) * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc041d0: 3b de f8 ec addi r30,r30,-1812 * 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_root = loc; ffc04220: 81 3f 26 dc lwz r9,9948(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_current = loc; ffc04264: 80 01 00 18 lwz r0,24(r1) ffc04268: 81 3f 26 dc lwz r9,9948(r31) * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); 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 f8 f0 addi r3,r3,-1808 /* 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 if ( status != 0 ) ffc042a0: 2f 83 00 00 cmpwi cr7,r3,0 ffc042a4: 40 9e 00 2c bne- cr7,ffc042d0 * 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 6d bl ffc09038 <== 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 61 bl ffc09038 <== 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 55 bl ffc09038 <== NOT EXECUTED ffc0d3b0 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ ffc0d3b0: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc0d3b4: 80 64 00 00 lwz r3,0(r4) <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } ffc0d3b8: 7c 03 1a 78 xor r3,r0,r3 <== NOT EXECUTED ffc0d3bc: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc0d3c0: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED ffc0d3c4: 4e 80 00 20 blr <== NOT EXECUTED ffc042e8 : { /* * 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 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 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 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 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_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 01 08 b9 bl ffc1481c <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 f5 0d bl ffc13520 <__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 <== 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 01 07 c5 bl ffc1481c <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc0b08c : 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 ) { ffc0b08c: 94 21 ff f0 stwu r1,-16(r1) ffc0b090: 7c 08 02 a6 mflr r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0b094: 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 ) { ffc0b098: 90 01 00 14 stw r0,20(r1) rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0b09c: 80 09 27 b8 lwz r0,10168(r9) rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; ffc0b0a0: 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 ) { ffc0b0a4: 93 e1 00 0c stw r31,12(r1) ffc0b0a8: 7c 7f 1b 78 mr r31,r3 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0b0ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b0b0: 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; ffc0b0b4: 80 09 28 08 lwz r0,10248(r9) if ( rtems_interrupt_is_in_progress() ) ffc0b0b8: 40 9e 00 e8 bne- cr7,ffc0b1a0 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) ffc0b0bc: 2f 85 00 00 cmpwi cr7,r5,0 ffc0b0c0: 41 9e 01 38 beq- cr7,ffc0b1f8 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) ffc0b0c4: 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; ffc0b0c8: 90 05 00 00 stw r0,0(r5) if ( driver_table == NULL ) ffc0b0cc: 41 9e 01 2c beq- cr7,ffc0b1f8 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0b0d0: 81 64 00 00 lwz r11,0(r4) ffc0b0d4: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0b0d8: 41 9e 01 14 beq- cr7,ffc0b1ec return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) ffc0b0dc: 7f 80 f8 40 cmplw cr7,r0,r31 ffc0b0e0: 38 60 00 0a li r3,10 ffc0b0e4: 40 9d 00 bc ble- cr7,ffc0b1a0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0b0e8: 3d 60 00 00 lis r11,0 ffc0b0ec: 81 4b 27 90 lwz r10,10128(r11) ffc0b0f0: 38 0a 00 01 addi r0,r10,1 ffc0b0f4: 90 0b 27 90 stw r0,10128(r11) return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { ffc0b0f8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0b0fc: 40 9e 00 b8 bne- cr7,ffc0b1b4 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; ffc0b100: 81 69 28 08 lwz r11,10248(r9) rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { ffc0b104: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0b108: 41 9e 01 08 beq- cr7,ffc0b210 ffc0b10c: 3d 20 00 00 lis r9,0 ffc0b110: 7d 69 03 a6 mtctr r11 ffc0b114: 81 49 28 0c lwz r10,10252(r9) ffc0b118: 7d 49 53 78 mr r9,r10 ffc0b11c: 40 be 00 14 bne+ cr7,ffc0b130 ffc0b120: 48 00 01 14 b ffc0b234 <== NOT EXECUTED ffc0b124: 3b ff 00 01 addi r31,r31,1 ffc0b128: 39 29 00 18 addi r9,r9,24 ffc0b12c: 42 40 00 1c bdz- ffc0b148 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0b130: 80 09 00 00 lwz r0,0(r9) ffc0b134: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b138: 40 9e ff ec bne+ cr7,ffc0b124 ffc0b13c: 80 09 00 04 lwz r0,4(r9) ffc0b140: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b144: 40 9e ff e0 bne+ cr7,ffc0b124 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) ffc0b148: 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; ffc0b14c: 93 e5 00 00 stw r31,0(r5) if ( m != n ) ffc0b150: 41 9e 00 c4 beq- cr7,ffc0b214 ffc0b154: 1d 3f 00 18 mulli r9,r31,24 ffc0b158: 7d 2a 4a 14 add r9,r10,r9 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; ffc0b15c: 81 64 00 08 lwz r11,8(r4) ffc0b160: 80 04 00 0c lwz r0,12(r4) ffc0b164: 81 04 00 00 lwz r8,0(r4) ffc0b168: 81 44 00 04 lwz r10,4(r4) ffc0b16c: 91 09 00 00 stw r8,0(r9) ffc0b170: 91 49 00 04 stw r10,4(r9) ffc0b174: 91 69 00 08 stw r11,8(r9) ffc0b178: 90 09 00 0c stw r0,12(r9) ffc0b17c: 81 64 00 14 lwz r11,20(r4) ffc0b180: 80 04 00 10 lwz r0,16(r4) ffc0b184: 91 69 00 14 stw r11,20(r9) ffc0b188: 90 09 00 10 stw r0,16(r9) _Thread_Enable_dispatch(); ffc0b18c: 48 00 22 2d bl ffc0d3b8 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); ffc0b190: 7f e3 fb 78 mr r3,r31 ffc0b194: 38 80 00 00 li r4,0 ffc0b198: 38 a0 00 00 li r5,0 ffc0b19c: 48 00 b0 11 bl ffc161ac } ffc0b1a0: 80 01 00 14 lwz r0,20(r1) ffc0b1a4: 83 e1 00 0c lwz r31,12(r1) ffc0b1a8: 38 21 00 10 addi r1,r1,16 ffc0b1ac: 7c 08 03 a6 mtlr r0 ffc0b1b0: 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; ffc0b1b4: 3d 20 00 00 lis r9,0 ffc0b1b8: 81 29 28 0c lwz r9,10252(r9) ffc0b1bc: 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; ffc0b1c0: 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; ffc0b1c4: 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; ffc0b1c8: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0b1cc: 41 9e 00 54 beq- cr7,ffc0b220 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(); ffc0b1d0: 48 00 21 e9 bl ffc0d3b8 <_Thread_Enable_dispatch> _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } ffc0b1d4: 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(); ffc0b1d8: 38 60 00 0c li r3,12 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } ffc0b1dc: 83 e1 00 0c lwz r31,12(r1) ffc0b1e0: 7c 08 03 a6 mtlr r0 ffc0b1e4: 38 21 00 10 addi r1,r1,16 ffc0b1e8: 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; ffc0b1ec: 81 64 00 04 lwz r11,4(r4) ffc0b1f0: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0b1f4: 40 9e fe e8 bne+ cr7,ffc0b0dc _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } ffc0b1f8: 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 ); ffc0b1fc: 38 60 00 09 li r3,9 } ffc0b200: 83 e1 00 0c lwz r31,12(r1) ffc0b204: 38 21 00 10 addi r1,r1,16 ffc0b208: 7c 08 03 a6 mtlr r0 ffc0b20c: 4e 80 00 20 blr if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; ffc0b210: 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(); ffc0b214: 48 00 21 a5 bl ffc0d3b8 <_Thread_Enable_dispatch> ffc0b218: 38 60 00 05 li r3,5 return sc; ffc0b21c: 4b ff ff 84 b ffc0b1a0 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0b220: 80 09 00 04 lwz r0,4(r9) ffc0b224: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b228: 40 9e ff a8 bne+ cr7,ffc0b1d0 if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; ffc0b22c: 93 e5 00 00 stw r31,0(r5) ffc0b230: 4b ff ff 2c b ffc0b15c ffc0b234: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0b238: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0b23c: 4b ff fe f4 b ffc0b130 <== NOT EXECUTED ffc046bc : * * 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 8c lwz r3,9868(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_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, ffc046dc: 38 80 00 48 li r4,72 ffc046e0: 48 00 99 b9 bl ffc0e098 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 4c stw r3,10060(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_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 8c lwz r9,9868(r31) rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; ffc046fc: 3d 40 00 00 lis r10,0 ffc04700: 90 6a 27 50 stw r3,10064(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 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 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 54 addi r7,r7,10068 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 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 /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) ffc04768: 3d 20 00 00 lis r9,0 ffc0476c: 80 09 26 88 lwz r0,9864(r9) ffc04770: 2f 80 00 00 cmpwi cr7,r0,0 ffc04774: 41 9e 00 0c beq- cr7,ffc04780 (* 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 a5 bl ffc09038 <== 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 9d bl ffc09038 <== NOT EXECUTED ffc30c28 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc30c28: 94 21 ff c0 stwu r1,-64(r1) ffc30c2c: 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); ffc30c30: 38 60 00 00 li r3,0 ffc30c34: 38 80 00 00 li r4,0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc30c38: 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); ffc30c3c: 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) { ffc30c40: 90 01 00 44 stw r0,68(r1) ffc30c44: 93 61 00 2c stw r27,44(r1) ffc30c48: 93 81 00 30 stw r28,48(r1) ffc30c4c: 93 a1 00 34 stw r29,52(r1) ffc30c50: 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); ffc30c54: 4b fd df 11 bl ffc0eb64 if (sc != RTEMS_SUCCESSFUL) return sc; ffc30c58: 7c 7e 1b 79 mr. r30,r3 ffc30c5c: 40 82 01 00 bne- ffc30d5c /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { ffc30c60: 3f e0 00 00 lis r31,0 ffc30c64: 83 9f 35 2c lwz r28,13612(r31) ffc30c68: 3f a0 00 00 lis r29,0 ffc30c6c: 3b bd 63 dc addi r29,r29,25564 ffc30c70: 7f 9c e8 00 cmpw cr7,r28,r29 ffc30c74: 3b 7f 35 2c addi r27,r31,13612 ffc30c78: 41 9e 01 0c beq- cr7,ffc30d84 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ ffc30c7c: 7f a4 eb 78 mr r4,r29 ffc30c80: 38 a0 00 48 li r5,72 ffc30c84: 7f 83 e3 78 mr r3,r28 ffc30c88: 48 02 14 dd bl ffc52164 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc30c8c: 3d 20 00 00 lis r9,0 ffc30c90: 81 29 63 d0 lwz r9,25552(r9) * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30c94: 3f a0 ff c7 lis r29,-57 ffc30c98: 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; ffc30c9c: 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); ffc30ca0: 3b bd 5c 8c addi r29,r29,23692 *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; ffc30ca4: 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); ffc30ca8: 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; ffc30cac: 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); ffc30cb0: 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; ffc30cb4: 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); ffc30cb8: 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; ffc30cbc: 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); ffc30cc0: 38 e0 00 00 li r7,0 ffc30cc4: 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; ffc30cc8: 91 5c 00 1c stw r10,28(r28) ffc30ccc: 91 7c 00 20 stw r11,32(r28) ffc30cd0: 90 1c 00 24 stw r0,36(r28) ffc30cd4: 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*/ ffc30cd8: 81 21 00 08 lwz r9,8(r1) /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc30cdc: 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*/ ffc30ce0: 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); ffc30ce4: 4b fd 81 9d bl ffc08e80 rtems_filesystem_root = loc; ffc30ce8: 81 3f 35 2c lwz r9,13612(r31) ffc30cec: 81 41 00 10 lwz r10,16(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30cf0: 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; ffc30cf4: 81 61 00 14 lwz r11,20(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30cf8: 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; ffc30cfc: 80 01 00 18 lwz r0,24(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30d00: 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; ffc30d04: 81 01 00 0c lwz r8,12(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30d08: 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; ffc30d0c: 91 49 00 1c stw r10,28(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30d10: 38 e0 00 00 li r7,0 rtems_filesystem_current = loc; ffc30d14: 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; ffc30d18: 91 09 00 18 stw r8,24(r9) ffc30d1c: 91 69 00 20 stw r11,32(r9) ffc30d20: 90 09 00 24 stw r0,36(r9) ffc30d24: 80 01 00 1c lwz r0,28(r1) ffc30d28: 90 09 00 28 stw r0,40(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30d2c: 4b fd 81 55 bl ffc08e80 rtems_filesystem_current = loc; ffc30d30: 80 01 00 18 lwz r0,24(r1) ffc30d34: 81 3f 35 2c lwz r9,13612(r31) ffc30d38: 81 41 00 10 lwz r10,16(r1) ffc30d3c: 81 61 00 14 lwz r11,20(r1) ffc30d40: 81 01 00 0c lwz r8,12(r1) ffc30d44: 91 49 00 08 stw r10,8(r9) ffc30d48: 91 09 00 04 stw r8,4(r9) ffc30d4c: 91 69 00 0c stw r11,12(r9) ffc30d50: 90 09 00 10 stw r0,16(r9) ffc30d54: 80 01 00 1c lwz r0,28(r1) ffc30d58: 90 09 00 14 stw r0,20(r9) return RTEMS_SUCCESSFUL; } ffc30d5c: 80 01 00 44 lwz r0,68(r1) ffc30d60: 7f c3 f3 78 mr r3,r30 ffc30d64: 83 61 00 2c lwz r27,44(r1) ffc30d68: 7c 08 03 a6 mtlr r0 ffc30d6c: 83 81 00 30 lwz r28,48(r1) ffc30d70: 83 a1 00 34 lwz r29,52(r1) ffc30d74: 83 c1 00 38 lwz r30,56(r1) ffc30d78: 83 e1 00 3c lwz r31,60(r1) ffc30d7c: 38 21 00 40 addi r1,r1,64 ffc30d80: 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)); ffc30d84: 38 60 00 48 li r3,72 ffc30d88: 4b fd 89 f5 bl ffc0977c if (!tmp) ffc30d8c: 3b c0 00 1a li r30,26 ffc30d90: 7c 7c 1b 79 mr. r28,r3 ffc30d94: 41 a2 ff c8 beq- ffc30d5c #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); ffc30d98: 3c a0 ff c3 lis r5,-61 ffc30d9c: 7f 64 db 78 mr r4,r27 ffc30da0: 38 a5 0a c0 addi r5,r5,2752 ffc30da4: 38 60 00 00 li r3,0 ffc30da8: 48 00 24 e5 bl ffc3328c if (sc != RTEMS_SUCCESSFUL) { ffc30dac: 7c 7e 1b 79 mr. r30,r3 ffc30db0: 40 82 00 0c bne- ffc30dbc * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; ffc30db4: 93 9f 35 2c stw r28,13612(r31) ffc30db8: 4b ff fe c4 b ffc30c7c 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); ffc30dbc: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc30dc0: 4b fd 81 c9 bl ffc08f88 <== NOT EXECUTED return sc; ffc30dc4: 4b ff ff 98 b ffc30d5c <== NOT EXECUTED ffc30b48 : * 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) { ffc30b48: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc30b4c: 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); ffc30b50: 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) { ffc30b54: 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); ffc30b58: 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) { ffc30b5c: 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); ffc30b60: 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) { ffc30b64: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc30b68: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED ffc30b6c: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc30b70: 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); ffc30b74: 4b fd df f1 bl ffc0eb64 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc30b78: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc30b7c: 40 82 00 48 bne- ffc30bc4 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { ffc30b80: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc30b84: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc30b88: 83 9f 35 2c lwz r28,13612(r31) <== NOT EXECUTED ffc30b8c: 38 1f 35 2c addi r0,r31,13612 <== NOT EXECUTED ffc30b90: 7c 1e 03 78 mr r30,r0 <== NOT EXECUTED ffc30b94: 81 7c 00 00 lwz r11,0(r28) <== NOT EXECUTED ffc30b98: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc30b9c: 41 9e 00 4c beq- cr7,ffc30be8 <== 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, ffc30ba0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc30ba4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc30ba8: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc30bac: 48 00 28 d1 bl ffc3347c <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) ffc30bb0: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc30bb4: 41 82 00 50 beq- ffc30c04 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; ffc30bb8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc30bbc: 39 29 63 dc addi r9,r9,25564 <== NOT EXECUTED ffc30bc0: 91 3f 35 2c stw r9,13612(r31) <== NOT EXECUTED return sc; } ffc30bc4: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED ffc30bc8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc30bcc: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc30bd0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30bd4: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc30bd8: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc30bdc: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc30be0: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc30be4: 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); ffc30be8: 7c 04 03 78 mr r4,r0 <== NOT EXECUTED ffc30bec: 48 00 27 b5 bl ffc333a0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc30bf0: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc30bf4: 40 82 ff d0 bne+ ffc30bc4 <== NOT EXECUTED free_user_env(tmp); ffc30bf8: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc30bfc: 4b ff fe c5 bl ffc30ac0 <== NOT EXECUTED ffc30c00: 4b ff ff a0 b ffc30ba0 <== 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); ffc30c04: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc30c08: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc30c0c: 38 a5 0a c0 addi r5,r5,2752 <== NOT EXECUTED ffc30c10: 48 00 26 7d bl ffc3328c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc30c14: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc30c18: 40 82 ff a0 bne+ ffc30bb8 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; ffc30c1c: 81 21 00 08 lwz r9,8(r1) <== NOT EXECUTED ffc30c20: 91 3f 35 2c stw r9,13612(r31) <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; ffc30c24: 4b ff ff a0 b ffc30bc4 <== NOT EXECUTED ffc098c0 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { ffc098c0: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc098c4: 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 ) { ffc098c8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc098cc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc098d0: 80 69 34 dc lwz r3,13532(r9) <== NOT EXECUTED ffc098d4: 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 ) { ffc098d8: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc098dc: 48 00 73 c5 bl ffc10ca0 <_Protected_heap_Get_block_size> <== NOT EXECUTED ffc098e0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc098e4: 41 9e 00 2c beq- cr7,ffc09910 <== NOT EXECUTED MSBUMP(lifetime_freed, size); ffc098e8: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc098ec: 81 41 00 08 lwz r10,8(r1) <== NOT EXECUTED ffc098f0: 39 6b 63 a0 addi r11,r11,25504 <== NOT EXECUTED ffc098f4: 80 ab 00 28 lwz r5,40(r11) <== NOT EXECUTED ffc098f8: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc098fc: 80 cb 00 2c lwz r6,44(r11) <== NOT EXECUTED ffc09900: 7d 0a 30 14 addc r8,r10,r6 <== NOT EXECUTED ffc09904: 7c e9 29 14 adde r7,r9,r5 <== NOT EXECUTED ffc09908: 90 eb 00 28 stw r7,40(r11) <== NOT EXECUTED ffc0990c: 91 0b 00 2c stw r8,44(r11) <== NOT EXECUTED } } ffc09910: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc09914: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc09918: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0991c: 4e 80 00 20 blr <== NOT EXECUTED ffc09920 : { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) ffc09920: 7c 64 1b 79 mr. r4,r3 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { ffc09924: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc09928: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0992c: 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 ) ffc09930: 41 82 00 5c beq- ffc0998c <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; ffc09934: 7c 25 0b 78 mr r5,r1 <== NOT EXECUTED ffc09938: 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); ffc0993c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; ffc09940: 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); ffc09944: 80 69 34 dc lwz r3,13532(r9) <== NOT EXECUTED ffc09948: 48 00 73 59 bl ffc10ca0 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); ffc0994c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc09950: 39 29 63 a0 addi r9,r9,25504 <== NOT EXECUTED ffc09954: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc09958: 80 a9 00 20 lwz r5,32(r9) <== NOT EXECUTED ffc0995c: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc09960: 80 c9 00 24 lwz r6,36(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); ffc09964: 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); ffc09968: 7d 0c 30 14 addc r8,r12,r6 <== NOT EXECUTED ffc0996c: 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) ffc09970: 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); ffc09974: 90 e9 00 20 stw r7,32(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); ffc09978: 7c 00 40 50 subf r0,r0,r8 <== NOT EXECUTED if (current_depth > s->max_depth) ffc0997c: 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); ffc09980: 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) ffc09984: 40 9d 00 08 ble- cr7,ffc0998c <== NOT EXECUTED s->max_depth = current_depth; ffc09988: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED } ffc0998c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc09990: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc09994: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc09998: 4e 80 00 20 blr <== NOT EXECUTED ffc0999c : #include #include static void rtems_malloc_statistics_initialize( void ) { ffc0999c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc099a0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); ffc099a4: 3c 60 00 00 lis r3,0 <== NOT EXECUTED ffc099a8: 38 63 63 a0 addi r3,r3,25504 <== NOT EXECUTED #include #include static void rtems_malloc_statistics_initialize( void ) { ffc099ac: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); ffc099b0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc099b4: 38 a0 00 30 li r5,48 <== NOT EXECUTED ffc099b8: 48 04 89 e5 bl ffc5239c <== NOT EXECUTED } ffc099bc: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc099c0: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc099c4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc099c8: 4e 80 00 20 blr <== NOT EXECUTED ffc14a58 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc14a58: 94 21 ff e8 stwu r1,-24(r1) ffc14a5c: 7c 08 02 a6 mflr r0 ffc14a60: 93 e1 00 14 stw r31,20(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc14a64: 7c 7f 1b 79 mr. r31,r3 int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc14a68: 93 a1 00 0c stw r29,12(r1) ffc14a6c: 7c bd 2b 78 mr r29,r5 ffc14a70: 93 c1 00 10 stw r30,16(r1) ffc14a74: 7c 9e 23 78 mr r30,r4 ffc14a78: 90 01 00 1c stw r0,28(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc14a7c: 41 82 00 94 beq- ffc14b10 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && ffc14a80: 3d 20 00 00 lis r9,0 ffc14a84: 80 09 27 f4 lwz r0,10228(r9) ffc14a88: 2f 80 00 03 cmpwi cr7,r0,3 * Parameter error checks */ if ( !pointer ) return EINVAL; *pointer = NULL; ffc14a8c: 38 00 00 00 li r0,0 ffc14a90: 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()) && ffc14a94: 41 9e 00 70 beq- cr7,ffc14b04 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); ffc14a98: 4b ff 18 5d bl ffc062f4 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); ffc14a9c: 3d 20 00 00 lis r9,0 ffc14aa0: 80 69 26 bc lwz r3,9916(r9) ffc14aa4: 7f c5 f3 78 mr r5,r30 ffc14aa8: 7f a4 eb 78 mr r4,r29 ffc14aac: 38 c0 00 00 li r6,0 ffc14ab0: 4b ff 7f f5 bl ffc0caa4 <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) ffc14ab4: 7c 7e 1b 79 mr. r30,r3 ffc14ab8: 38 60 00 0c li r3,12 ffc14abc: 41 82 00 2c beq- ffc14ae8 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) ffc14ac0: 3d 20 00 00 lis r9,0 ffc14ac4: 81 29 27 28 lwz r9,10024(r9) ffc14ac8: 2f 89 00 00 cmpwi cr7,r9,0 ffc14acc: 41 9e 00 14 beq- cr7,ffc14ae0 (*rtems_malloc_statistics_helpers->at_malloc)(pointer); ffc14ad0: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc14ad4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc14ad8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc14adc: 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; ffc14ae0: 93 df 00 00 stw r30,0(r31) ffc14ae4: 38 60 00 00 li r3,0 return 0; } ffc14ae8: 80 01 00 1c lwz r0,28(r1) ffc14aec: 83 a1 00 0c lwz r29,12(r1) ffc14af0: 7c 08 03 a6 mtlr r0 ffc14af4: 83 c1 00 10 lwz r30,16(r1) ffc14af8: 83 e1 00 14 lwz r31,20(r1) ffc14afc: 38 21 00 18 addi r1,r1,24 ffc14b00: 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()) && ffc14b04: 4b ff 17 7d bl ffc06280 ffc14b08: 2f 83 00 00 cmpwi cr7,r3,0 ffc14b0c: 40 9e ff 8c bne+ cr7,ffc14a98 (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; } ffc14b10: 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; ffc14b14: 38 60 00 16 li r3,22 } ffc14b18: 83 a1 00 0c lwz r29,12(r1) ffc14b1c: 7c 08 03 a6 mtlr r0 ffc14b20: 83 c1 00 10 lwz r30,16(r1) ffc14b24: 83 e1 00 14 lwz r31,20(r1) ffc14b28: 38 21 00 18 addi r1,r1,24 ffc14b2c: 4e 80 00 20 blr ffc0adbc : void rtems_panic( const char *printf_format, ... ) { ffc0adbc: 94 21 ff 88 stwu r1,-120(r1) <== NOT EXECUTED ffc0adc0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0adc4: 90 81 00 1c stw r4,28(r1) <== NOT EXECUTED ffc0adc8: 90 01 00 7c stw r0,124(r1) <== NOT EXECUTED ffc0adcc: 90 a1 00 20 stw r5,32(r1) <== NOT EXECUTED ffc0add0: 90 c1 00 24 stw r6,36(r1) <== NOT EXECUTED ffc0add4: 90 e1 00 28 stw r7,40(r1) <== NOT EXECUTED ffc0add8: 91 01 00 2c stw r8,44(r1) <== NOT EXECUTED ffc0addc: 91 21 00 30 stw r9,48(r1) <== NOT EXECUTED ffc0ade0: 91 41 00 34 stw r10,52(r1) <== NOT EXECUTED ffc0ade4: 40 86 00 24 bne- cr1,ffc0ae08 <== NOT EXECUTED ffc0ade8: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc0adec: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc0adf0: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc0adf4: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc0adf8: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc0adfc: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc0ae00: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc0ae04: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0ae08: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0ae0c: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0ae10: 38 00 00 00 li r0,0 <== NOT EXECUTED void rtems_panic( const char *printf_format, ... ) { ffc0ae14: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0ae18: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0ae1c: 38 01 00 80 addi r0,r1,128 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0ae20: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0ae24: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0ae28: 3c 60 20 00 lis r3,8192 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0ae2c: 38 01 00 18 addi r0,r1,24 <== NOT EXECUTED ffc0ae30: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0ae34: 4b ff fd 81 bl ffc0abb4 <== NOT EXECUTED va_end(arglist); } ffc0ae38: 80 01 00 7c lwz r0,124(r1) <== NOT EXECUTED ffc0ae3c: 38 21 00 78 addi r1,r1,120 <== NOT EXECUTED ffc0ae40: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ae44: 4e 80 00 20 blr <== NOT EXECUTED ffc107ec : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc107ec: 7c 08 02 a6 mflr r0 ffc107f0: 94 21 ff f8 stwu r1,-8(r1) if (!rtems_pipe_configured) ffc107f4: 3d 20 00 00 lis r9,0 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc107f8: 90 01 00 0c stw r0,12(r1) if (!rtems_pipe_configured) ffc107fc: 88 09 27 04 lbz r0,9988(r9) ffc10800: 2f 80 00 00 cmpwi cr7,r0,0 ffc10804: 41 9e 00 18 beq- cr7,ffc1081c return; if (rtems_pipe_semaphore) ffc10808: 3c e0 00 00 lis r7,0 <== NOT EXECUTED ffc1080c: 80 07 29 90 lwz r0,10640(r7) <== NOT EXECUTED ffc10810: 38 e7 29 90 addi r7,r7,10640 <== NOT EXECUTED ffc10814: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10818: 41 9e 00 14 beq- cr7,ffc1082c <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } ffc1081c: 80 01 00 0c lwz r0,12(r1) ffc10820: 38 21 00 08 addi r1,r1,8 ffc10824: 7c 08 03 a6 mtlr r0 ffc10828: 4e 80 00 20 blr if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( ffc1082c: 3c 60 50 49 lis r3,20553 <== NOT EXECUTED ffc10830: 60 63 50 45 ori r3,r3,20549 <== NOT EXECUTED ffc10834: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc10838: 38 a0 00 54 li r5,84 <== NOT EXECUTED ffc1083c: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc10840: 4b ff 7b d5 bl ffc08414 <== 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) ffc10844: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10848: 40 9e 00 20 bne- cr7,ffc10868 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); ffc1084c: 4b ff 76 ad bl ffc07ef8 <== NOT EXECUTED rtems_pipe_no = now; } ffc10850: 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; ffc10854: 3d 20 00 00 lis r9,0 <== NOT EXECUTED } ffc10858: 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; ffc1085c: b0 69 27 f8 sth r3,10232(r9) <== NOT EXECUTED } ffc10860: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc10864: 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); ffc10868: 4b ff 87 d1 bl ffc09038 <== NOT EXECUTED ffc4811c : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { ffc4811c: 94 21 ff d0 stwu r1,-48(r1) ffc48120: 7c 08 02 a6 mflr r0 ffc48124: 93 e1 00 2c stw r31,44(r1) ffc48128: 7c 7f 1b 78 mr r31,r3 ffc4812c: 3c 60 00 00 lis r3,0 ffc48130: 93 c1 00 28 stw r30,40(r1) ffc48134: 38 63 6f ec addi r3,r3,28652 ffc48138: 7c 9e 23 78 mr r30,r4 ffc4813c: 38 a1 00 08 addi r5,r1,8 ffc48140: 90 01 00 34 stw r0,52(r1) ffc48144: 7f e4 fb 78 mr r4,r31 ffc48148: 93 a1 00 24 stw r29,36(r1) ffc4814c: 93 61 00 1c stw r27,28(r1) ffc48150: 93 81 00 20 stw r28,32(r1) ffc48154: 4b fc 86 f9 bl ffc1084c <_Objects_Get> ffc48158: 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 ) { ffc4815c: 80 01 00 08 lwz r0,8(r1) ffc48160: 2f 80 00 00 cmpwi cr7,r0,0 ffc48164: 40 9e 00 48 bne- cr7,ffc481ac case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { ffc48168: 3f 80 00 00 lis r28,0 ffc4816c: 81 23 00 40 lwz r9,64(r3) ffc48170: 80 1c 36 58 lwz r0,13912(r28) ffc48174: 7f 89 00 00 cmpw cr7,r9,r0 ffc48178: 41 9e 00 60 beq- cr7,ffc481d8 _Thread_Enable_dispatch(); ffc4817c: 4b fc 93 c9 bl ffc11544 <_Thread_Enable_dispatch> ffc48180: 3b e0 00 17 li r31,23 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc48184: 80 01 00 34 lwz r0,52(r1) ffc48188: 7f e3 fb 78 mr r3,r31 ffc4818c: 83 61 00 1c lwz r27,28(r1) ffc48190: 7c 08 03 a6 mtlr r0 ffc48194: 83 81 00 20 lwz r28,32(r1) ffc48198: 83 a1 00 24 lwz r29,36(r1) ffc4819c: 83 c1 00 28 lwz r30,40(r1) ffc481a0: 83 e1 00 2c lwz r31,44(r1) ffc481a4: 38 21 00 30 addi r1,r1,48 ffc481a8: 4e 80 00 20 blr ffc481ac: 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; ffc481b0: 3b e0 00 04 li r31,4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc481b4: 7f e3 fb 78 mr r3,r31 ffc481b8: 83 61 00 1c lwz r27,28(r1) ffc481bc: 7c 08 03 a6 mtlr r0 ffc481c0: 83 81 00 20 lwz r28,32(r1) ffc481c4: 83 a1 00 24 lwz r29,36(r1) ffc481c8: 83 c1 00 28 lwz r30,40(r1) ffc481cc: 83 e1 00 2c lwz r31,44(r1) ffc481d0: 38 21 00 30 addi r1,r1,48 ffc481d4: 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 ) { ffc481d8: 2f 9e 00 00 cmpwi cr7,r30,0 ffc481dc: 41 9e 00 b4 beq- cr7,ffc48290 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc481e0: 7f 60 00 a6 mfmsr r27 ffc481e4: 7c 10 42 a6 mfsprg r0,0 ffc481e8: 7f 60 00 78 andc r0,r27,r0 ffc481ec: 7c 00 01 24 mtmsr r0 _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); switch ( the_period->state ) { ffc481f0: 80 03 00 38 lwz r0,56(r3) ffc481f4: 2f 80 00 02 cmpwi cr7,r0,2 ffc481f8: 41 9e 00 c0 beq- cr7,ffc482b8 ffc481fc: 2f 80 00 04 cmpwi cr7,r0,4 ffc48200: 41 9e 00 5c beq- cr7,ffc4825c ffc48204: 2f 80 00 00 cmpwi cr7,r0,0 ffc48208: 40 be ff a4 bne- cr7,ffc481ac return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc4820c: 7f 60 01 24 mtmsr r27 _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); ffc48210: 4b ff fc 1d bl ffc47e2c <_Rate_monotonic_Initiate_statistics> the_period->state = RATE_MONOTONIC_ACTIVE; ffc48214: 39 20 00 02 li r9,2 ffc48218: 91 3d 00 38 stw r9,56(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc4821c: 3d 20 ff c5 lis r9,-59 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc48220: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc48224: 39 29 83 28 addi r9,r9,-31960 the_watchdog->id = id; ffc48228: 93 fd 00 30 stw r31,48(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc4822c: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc48230: 91 3d 00 2c stw r9,44(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc48234: 38 63 65 e8 addi r3,r3,26088 ffc48238: 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; ffc4823c: 90 1d 00 34 stw r0,52(r29) ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc48240: 3b e0 00 00 li r31,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc48244: 93 dd 00 1c stw r30,28(r29) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc48248: 90 1d 00 18 stw r0,24(r29) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; ffc4824c: 93 dd 00 3c stw r30,60(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc48250: 4b fc a9 e1 bl ffc12c30 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc48254: 4b fc 92 f1 bl ffc11544 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; ffc48258: 4b ff ff 2c b ffc48184 case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); ffc4825c: 4b ff fd 79 bl ffc47fd4 <_Rate_monotonic_Update_statistics> ffc48260: 7f 60 01 24 mtmsr r27 _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; ffc48264: 38 00 00 02 li r0,2 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc48268: 93 dd 00 1c stw r30,28(r29) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc4826c: 3c 60 00 00 lis r3,0 ffc48270: 90 1d 00 38 stw r0,56(r29) ffc48274: 38 63 65 e8 addi r3,r3,26088 ffc48278: 38 9d 00 10 addi r4,r29,16 the_period->next_length = length; ffc4827c: 93 dd 00 3c stw r30,60(r29) _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc48280: 3b e0 00 06 li r31,6 ffc48284: 4b fc a9 ad bl ffc12c30 <_Watchdog_Insert> ffc48288: 4b fc 92 bd bl ffc11544 <_Thread_Enable_dispatch> return RTEMS_TIMEOUT; ffc4828c: 4b ff fe f8 b ffc48184 _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { ffc48290: 80 03 00 38 lwz r0,56(r3) ffc48294: 3b e0 00 00 li r31,0 ffc48298: 2b 80 00 04 cmplwi cr7,r0,4 ffc4829c: 41 bd ff b8 bgt- cr7,ffc48254 ffc482a0: 3d 20 ff c7 lis r9,-57 ffc482a4: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc482a8: 39 29 42 2c addi r9,r9,16940 ffc482ac: 7f e9 00 2e lwzx r31,r9,r0 ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc482b0: 4b fc 92 95 bl ffc11544 <_Thread_Enable_dispatch> ffc482b4: 4b ff fe d0 b ffc48184 case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); ffc482b8: 4b ff fd 1d bl ffc47fd4 <_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; ffc482bc: 38 00 00 01 li r0,1 the_period->next_length = length; ffc482c0: 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; ffc482c4: 90 1d 00 38 stw r0,56(r29) ffc482c8: 7f 60 01 24 mtmsr r27 the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; ffc482cc: 81 3c 36 58 lwz r9,13912(r28) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc482d0: 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; ffc482d4: 80 1d 00 08 lwz r0,8(r29) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc482d8: 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; ffc482dc: 90 09 00 20 stw r0,32(r9) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc482e0: 4b fc 9d e1 bl ffc120c0 <_Thread_Set_state> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc482e4: 7d 20 00 a6 mfmsr r9 ffc482e8: 7c 10 42 a6 mfsprg r0,0 ffc482ec: 7d 20 00 78 andc r0,r9,r0 ffc482f0: 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; ffc482f4: 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; ffc482f8: 80 1d 00 38 lwz r0,56(r29) the_period->state = RATE_MONOTONIC_ACTIVE; ffc482fc: 91 7d 00 38 stw r11,56(r29) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc48300: 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 ) ffc48304: 2f 80 00 03 cmpwi cr7,r0,3 ffc48308: 41 9e 00 10 beq- cr7,ffc48318 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); ffc4830c: 4b fc 92 39 bl ffc11544 <_Thread_Enable_dispatch> ffc48310: 3b e0 00 00 li r31,0 return RTEMS_SUCCESSFUL; ffc48314: 4b ff fe 70 b ffc48184 /* * 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 ); ffc48318: 80 7c 36 58 lwz r3,13912(r28) <== NOT EXECUTED ffc4831c: 38 80 40 00 li r4,16384 <== NOT EXECUTED ffc48320: 4b fc 8d 11 bl ffc11030 <_Thread_Clear_state> <== NOT EXECUTED ffc48324: 4b ff ff e8 b ffc4830c <== NOT EXECUTED ffc06d0c : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06d0c: 94 21 ff e8 stwu r1,-24(r1) ffc06d10: 7c 08 02 a6 mflr r0 ffc06d14: 93 c1 00 10 stw r30,16(r1) Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc06d18: 3f c0 00 00 lis r30,0 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06d1c: 90 01 00 1c stw r0,28(r1) Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc06d20: 81 3e 36 58 lwz r9,13912(r30) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06d24: 93 e1 00 14 stw r31,20(r1) ffc06d28: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06d2c: 80 69 00 d0 lwz r3,208(r9) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06d30: 93 a1 00 0c stw r29,12(r1) ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06d34: 3b a0 00 00 li r29,0 ffc06d38: 7f 9f 18 40 cmplw cr7,r31,r3 ffc06d3c: 41 9c 00 18 blt- cr7,ffc06d54 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) ffc06d40: 83 a9 00 cc lwz r29,204(r9) ffc06d44: 7f a3 ea 14 add r29,r3,r29 ffc06d48: 7f bf e8 10 subfc r29,r31,r29 ffc06d4c: 3b a0 00 00 li r29,0 ffc06d50: 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 ) { ffc06d54: 3d 20 00 00 lis r9,0 ffc06d58: 80 09 37 68 lwz r0,14184(r9) ffc06d5c: 38 80 00 01 li r4,1 ffc06d60: 2f 80 00 00 cmpwi cr7,r0,0 ffc06d64: 41 9e 00 20 beq- cr7,ffc06d84 pattern_ok = (!memcmp( ffc06d68: 3c 80 00 00 lis r4,0 ffc06d6c: 38 84 63 10 addi r4,r4,25360 ffc06d70: 38 63 00 08 addi r3,r3,8 ffc06d74: 38 a0 00 80 li r5,128 ffc06d78: 48 04 b3 49 bl ffc520c0 ffc06d7c: 7c 64 00 34 cntlzw r4,r3 ffc06d80: 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 ) ffc06d84: 2f 9d 00 00 cmpwi cr7,r29,0 ffc06d88: 41 9e 00 10 beq- cr7,ffc06d98 ffc06d8c: 2f 84 00 00 cmpwi cr7,r4,0 ffc06d90: 38 60 00 00 li r3,0 ffc06d94: 40 9e 00 10 bne- cr7,ffc06da4 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); ffc06d98: 80 7e 36 58 lwz r3,13912(r30) <== NOT EXECUTED ffc06d9c: 4b ff fe 91 bl ffc06c2c <== NOT EXECUTED ffc06da0: 38 60 00 01 li r3,1 <== NOT EXECUTED return true; } ffc06da4: 39 7f 00 18 addi r11,r31,24 ffc06da8: 80 0b 00 04 lwz r0,4(r11) ffc06dac: 83 ab ff f4 lwz r29,-12(r11) ffc06db0: 7c 08 03 a6 mtlr r0 ffc06db4: 83 cb ff f8 lwz r30,-8(r11) ffc06db8: 83 eb ff fc lwz r31,-4(r11) ffc06dbc: 7d 61 5b 78 mr r1,r11 ffc06dc0: 4e 80 00 20 blr ffc06c1c : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); ffc06c1c: 3c 80 ff c1 lis r4,-63 <== NOT EXECUTED ffc06c20: 38 84 a6 bc addi r4,r4,-22852 <== NOT EXECUTED ffc06c24: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc06c28: 4b ff ff 5c b ffc06b84 <== NOT EXECUTED ffc06b84 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc06b84: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc06b88: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc06b8c: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED print_context = context; ffc06b90: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc06b94: 3b ff 37 68 addi r31,r31,14184 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc06b98: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc06b9c: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06ba0: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06ba4: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc06ba8: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06bac: 38 84 b3 b8 addi r4,r4,-19528 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc06bb0: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc06bb4: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED print_context = context; print_handler = print; ffc06bb8: 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; ffc06bbc: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06bc0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06bc4: 4e 80 04 21 bctrl <== NOT EXECUTED (*print)( context, ffc06bc8: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06bcc: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED ffc06bd0: 38 84 b3 d0 addi r4,r4,-19504 <== NOT EXECUTED ffc06bd4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc06bd8: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06bdc: 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 ); ffc06be0: 3c 60 ff c0 lis r3,-64 <== NOT EXECUTED ffc06be4: 38 63 69 38 addi r3,r3,26936 <== NOT EXECUTED ffc06be8: 48 00 94 51 bl ffc10038 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); ffc06bec: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc06bf0: 4b ff fd 49 bl ffc06938 <== NOT EXECUTED print_context = NULL; ffc06bf4: 38 00 00 00 li r0,0 <== NOT EXECUTED print_handler = NULL; ffc06bf8: 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; ffc06bfc: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED print_handler = NULL; } ffc06c00: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc06c04: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc06c08: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06c0c: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc06c10: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc06c14: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc06c18: 4e 80 00 20 blr <== NOT EXECUTED ffc06dc4 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06dc4: 94 21 ff f0 stwu r1,-16(r1) ffc06dc8: 7c 08 02 a6 mflr r0 ffc06dcc: 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; ffc06dd0: 81 23 00 d0 lwz r9,208(r3) */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06dd4: 93 e1 00 0c stw r31,12(r1) ffc06dd8: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06ddc: 7f 9f 48 40 cmplw cr7,r31,r9 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06de0: 93 c1 00 08 stw r30,8(r1) ffc06de4: 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; ffc06de8: 38 69 00 08 addi r3,r9,8 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06dec: 41 9c 00 14 blt- cr7,ffc06e00 void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { Stack_Control *the_stack = &running->Start.Initial_stack; ffc06df0: 80 1e 00 cc lwz r0,204(r30) ffc06df4: 7d 29 02 14 add r9,r9,r0 ffc06df8: 7f 9f 48 40 cmplw cr7,r31,r9 ffc06dfc: 40 9d 00 3c ble- cr7,ffc06e38 /* * 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, ffc06e00: 3c 80 00 00 lis r4,0 <== NOT EXECUTED ffc06e04: 38 84 63 10 addi r4,r4,25360 <== NOT EXECUTED ffc06e08: 38 a0 00 80 li r5,128 <== NOT EXECUTED ffc06e0c: 48 04 b2 b5 bl ffc520c0 <== NOT EXECUTED ffc06e10: 7c 64 00 34 cntlzw r4,r3 <== NOT EXECUTED ffc06e14: 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 ); } } ffc06e18: 39 7f 00 10 addi r11,r31,16 ffc06e1c: 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 ); ffc06e20: 7f c3 f3 78 mr r3,r30 } } ffc06e24: 83 eb ff fc lwz r31,-4(r11) ffc06e28: 7c 08 03 a6 mtlr r0 ffc06e2c: 83 cb ff f8 lwz r30,-8(r11) ffc06e30: 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 ); ffc06e34: 4b ff fd f8 b ffc06c2c /* * 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, ffc06e38: 3c 80 00 00 lis r4,0 ffc06e3c: 38 84 63 10 addi r4,r4,25360 ffc06e40: 38 a0 00 80 li r5,128 ffc06e44: 48 04 b2 7d bl ffc520c0 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { ffc06e48: 38 80 00 00 li r4,0 ffc06e4c: 2f 83 00 00 cmpwi cr7,r3,0 ffc06e50: 40 9e ff c8 bne+ cr7,ffc06e18 Stack_check_report_blown_task( running, pattern_ok ); } } ffc06e54: 39 7f 00 10 addi r11,r31,16 ffc06e58: 80 0b 00 04 lwz r0,4(r11) ffc06e5c: 83 cb ff f8 lwz r30,-8(r11) ffc06e60: 7c 08 03 a6 mtlr r0 ffc06e64: 83 eb ff fc lwz r31,-4(r11) ffc06e68: 7d 61 5b 78 mr r1,r11 ffc06e6c: 4e 80 00 20 blr ffc24230 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc24230: 94 21 ff d8 stwu r1,-40(r1) ffc24234: 7c 08 02 a6 mflr r0 ffc24238: 93 c1 00 20 stw r30,32(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc2423c: 7c 9e 23 79 mr. r30,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc24240: 93 a1 00 1c stw r29,28(r1) ffc24244: 7c bd 2b 78 mr r29,r5 ffc24248: 93 e1 00 24 stw r31,36(r1) ffc2424c: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc24250: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc24254: 90 01 00 2c stw r0,44(r1) ffc24258: 93 81 00 18 stw r28,24(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc2425c: 41 82 00 54 beq- ffc242b0 return RTEMS_INVALID_ADDRESS; errno = 0; ffc24260: 48 02 a3 a1 bl ffc4e600 <__errno> ffc24264: 38 00 00 00 li r0,0 ffc24268: 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 ); ffc2426c: 38 81 00 08 addi r4,r1,8 ffc24270: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc24274: 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 ); ffc24278: 38 a0 00 10 li r5,16 ffc2427c: 48 03 36 f1 bl ffc5796c #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 ) ffc24280: 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 ); ffc24284: 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 ) ffc24288: 41 9e 00 60 beq- cr7,ffc242e8 *endptr = end; ffc2428c: 80 01 00 08 lwz r0,8(r1) ffc24290: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc24294: 7f 80 f8 00 cmpw cr7,r0,r31 ffc24298: 38 60 00 0b li r3,11 ffc2429c: 41 9e 00 14 beq- cr7,ffc242b0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc242a0: 2f 9c ff ff cmpwi cr7,r28,-1 ffc242a4: 41 9e 00 2c beq- cr7,ffc242d0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc242a8: 93 9e 00 00 stw r28,0(r30) ffc242ac: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc242b0: 80 01 00 2c lwz r0,44(r1) ffc242b4: 83 81 00 18 lwz r28,24(r1) ffc242b8: 7c 08 03 a6 mtlr r0 ffc242bc: 83 a1 00 1c lwz r29,28(r1) ffc242c0: 83 c1 00 20 lwz r30,32(r1) ffc242c4: 83 e1 00 24 lwz r31,36(r1) ffc242c8: 38 21 00 28 addi r1,r1,40 ffc242cc: 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)) ffc242d0: 48 02 a3 31 bl ffc4e600 <__errno> <== NOT EXECUTED ffc242d4: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc242d8: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc242dc: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc242e0: 40 9e ff c8 bne+ cr7,ffc242a8 <== NOT EXECUTED ffc242e4: 4b ff ff cc b ffc242b0 <== NOT EXECUTED ffc242e8: 80 01 00 08 lwz r0,8(r1) ffc242ec: 4b ff ff a8 b ffc24294 ffc07390 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07390: 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; ffc07394: 38 00 00 09 li r0,9 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07398: 41 9e 00 44 beq- cr7,ffc073dc ffc0739c: 40 9d 00 48 ble- cr7,ffc073e4 ffc073a0: 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; ffc073a4: 38 00 00 0e li r0,14 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc073a8: 41 9e 00 34 beq- cr7,ffc073dc <== NOT EXECUTED ffc073ac: 40 9d 00 78 ble- cr7,ffc07424 <== NOT EXECUTED ffc073b0: 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; ffc073b4: 38 00 00 11 li r0,17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc073b8: 41 9e 00 24 beq- cr7,ffc073dc <== NOT EXECUTED ffc073bc: 40 9d 00 d4 ble- cr7,ffc07490 <== NOT EXECUTED ffc073c0: 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; ffc073c4: 38 00 00 12 li r0,18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc073c8: 41 9e 00 14 beq- cr7,ffc073dc <== NOT EXECUTED ffc073cc: 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; ffc073d0: 38 00 00 13 li r0,19 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc073d4: 41 9e 00 08 beq- cr7,ffc073dc <== 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; ffc073d8: 38 00 ff ff li r0,-1 default: baud_index = -1; break; } return baud_index; } ffc073dc: 7c 03 03 78 mr r3,r0 ffc073e0: 4e 80 00 20 blr rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc073e4: 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; ffc073e8: 38 00 00 04 li r0,4 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc073ec: 41 be ff f0 beq- cr7,ffc073dc ffc073f0: 41 9d 00 64 bgt- cr7,ffc07454 ffc073f4: 2f 83 00 01 cmpwi cr7,r3,1 ffc073f8: 38 00 00 01 li r0,1 ffc073fc: 41 be ff e0 beq- cr7,ffc073dc ffc07400: 40 9d 00 ac ble- cr7,ffc074ac ffc07404: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED ffc07408: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc0740c: 41 be ff d0 beq- cr7,ffc073dc <== NOT EXECUTED ffc07410: 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; ffc07414: 38 00 00 03 li r0,3 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07418: 41 be ff c4 beq- cr7,ffc073dc <== 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; ffc0741c: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc07420: 4b ff ff bc b ffc073dc <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07424: 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; ffc07428: 38 00 00 0b li r0,11 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0742c: 41 be ff b0 beq- cr7,ffc073dc <== NOT EXECUTED ffc07430: 41 9c 00 58 blt- cr7,ffc07488 <== NOT EXECUTED ffc07434: 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; ffc07438: 38 00 00 0c li r0,12 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0743c: 41 be ff a0 beq- cr7,ffc073dc <== NOT EXECUTED ffc07440: 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; ffc07444: 38 00 00 0d li r0,13 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07448: 41 be ff 94 beq- cr7,ffc073dc <== 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; ffc0744c: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc07450: 4b ff ff 8c b ffc073dc <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07454: 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; ffc07458: 38 00 00 06 li r0,6 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0745c: 41 be ff 80 beq- cr7,ffc073dc <== NOT EXECUTED ffc07460: 41 9c 00 20 blt- cr7,ffc07480 <== NOT EXECUTED ffc07464: 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; ffc07468: 38 00 00 07 li r0,7 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0746c: 41 be ff 70 beq- cr7,ffc073dc <== NOT EXECUTED ffc07470: 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; ffc07474: 38 00 00 08 li r0,8 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07478: 40 9e ff 60 bne+ cr7,ffc073d8 <== NOT EXECUTED ffc0747c: 4b ff ff 60 b ffc073dc <== 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; ffc07480: 38 00 00 05 li r0,5 <== NOT EXECUTED case B150: baud_index = 5; break; ffc07484: 4b ff ff 58 b ffc073dc <== 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; ffc07488: 38 00 00 0a li r0,10 <== NOT EXECUTED case B1800: baud_index = 10; break; ffc0748c: 4b ff ff 50 b ffc073dc <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07490: 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; ffc07494: 38 00 00 0f li r0,15 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07498: 41 be ff 44 beq- cr7,ffc073dc <== NOT EXECUTED ffc0749c: 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; ffc074a0: 38 00 00 10 li r0,16 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc074a4: 40 9e ff 34 bne+ cr7,ffc073d8 <== NOT EXECUTED ffc074a8: 4b ff ff 34 b ffc073dc <== NOT EXECUTED ffc074ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc074b0: 38 00 00 00 li r0,0 ffc074b4: 41 be ff 28 beq- cr7,ffc073dc ffc074b8: 4b ff ff 20 b ffc073d8 ffc074bc : int termios_baud ) { int32_t baud; switch (termios_baud) { ffc074bc: 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; ffc074c0: 38 00 04 b0 li r0,1200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc074c4: 41 9e 00 50 beq- cr7,ffc07514 ffc074c8: 40 9d 00 54 ble- cr7,ffc0751c ffc074cc: 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; ffc074d0: 38 00 4b 00 li r0,19200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc074d4: 41 9e 00 40 beq- cr7,ffc07514 ffc074d8: 40 9d 00 84 ble- cr7,ffc0755c ffc074dc: 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; ffc074e0: 3c 00 00 01 lis r0,1 ffc074e4: 60 00 c2 00 ori r0,r0,49664 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc074e8: 41 9e 00 2c beq- cr7,ffc07514 ffc074ec: 40 9d 00 dc ble- cr7,ffc075c8 ffc074f0: 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; ffc074f4: 3c 00 00 03 lis r0,3 ffc074f8: 60 00 84 00 ori r0,r0,33792 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc074fc: 41 9e 00 18 beq- cr7,ffc07514 ffc07500: 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; ffc07504: 3c 00 00 07 lis r0,7 ffc07508: 60 00 08 00 ori r0,r0,2048 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc0750c: 41 9e 00 08 beq- cr7,ffc07514 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; ffc07510: 38 00 ff ff li r0,-1 default: baud = -1; break; } return baud; } ffc07514: 7c 03 03 78 mr r3,r0 ffc07518: 4e 80 00 20 blr int termios_baud ) { int32_t baud; switch (termios_baud) { ffc0751c: 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; ffc07520: 38 00 00 86 li r0,134 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07524: 41 be ff f0 beq- cr7,ffc07514 ffc07528: 41 9d 00 64 bgt- cr7,ffc0758c ffc0752c: 2f 83 00 01 cmpwi cr7,r3,1 ffc07530: 38 00 00 32 li r0,50 ffc07534: 41 be ff e0 beq- cr7,ffc07514 ffc07538: 40 9d 00 b4 ble- cr7,ffc075ec ffc0753c: 2f 83 00 02 cmpwi cr7,r3,2 ffc07540: 38 00 00 4b li r0,75 ffc07544: 41 be ff d0 beq- cr7,ffc07514 ffc07548: 2f 83 00 03 cmpwi cr7,r3,3 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; ffc0754c: 38 00 00 6e li r0,110 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07550: 41 be ff c4 beq- cr7,ffc07514 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; ffc07554: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc07558: 4b ff ff bc b ffc07514 <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { ffc0755c: 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; ffc07560: 38 00 09 60 li r0,2400 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07564: 41 be ff b0 beq- cr7,ffc07514 ffc07568: 41 9c 00 58 blt- cr7,ffc075c0 ffc0756c: 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; ffc07570: 38 00 12 c0 li r0,4800 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07574: 41 be ff a0 beq- cr7,ffc07514 ffc07578: 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; ffc0757c: 38 00 25 80 li r0,9600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07580: 41 be ff 94 beq- cr7,ffc07514 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; ffc07584: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc07588: 4b ff ff 8c b ffc07514 <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { ffc0758c: 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; ffc07590: 38 00 00 c8 li r0,200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07594: 41 be ff 80 beq- cr7,ffc07514 ffc07598: 41 9c 00 20 blt- cr7,ffc075b8 ffc0759c: 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; ffc075a0: 38 00 01 2c li r0,300 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc075a4: 41 be ff 70 beq- cr7,ffc07514 ffc075a8: 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; ffc075ac: 38 00 02 58 li r0,600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc075b0: 40 9e ff 60 bne+ cr7,ffc07510 ffc075b4: 4b ff ff 60 b ffc07514 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; ffc075b8: 38 00 00 96 li r0,150 case B150: baud = 150; break; ffc075bc: 4b ff ff 58 b ffc07514 case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; ffc075c0: 38 00 07 08 li r0,1800 case B1800: baud = 1800; break; ffc075c4: 4b ff ff 50 b ffc07514 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc075c8: 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; ffc075cc: 38 00 00 00 li r0,0 ffc075d0: 60 00 96 00 ori r0,r0,38400 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc075d4: 41 be ff 40 beq- cr7,ffc07514 ffc075d8: 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; ffc075dc: 38 00 00 00 li r0,0 ffc075e0: 60 00 e1 00 ori r0,r0,57600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc075e4: 40 9e ff 2c bne+ cr7,ffc07510 ffc075e8: 4b ff ff 2c b ffc07514 ffc075ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc075f0: 38 00 00 00 li r0,0 ffc075f4: 41 be ff 20 beq- cr7,ffc07514 ffc075f8: 4b ff ff 18 b ffc07510 ffc057fc : 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_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 58 lwz r3,10072(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 if (sc != RTEMS_SUCCESSFUL) ffc07298: 2f 83 00 00 cmpwi cr7,r3,0 ffc0729c: 40 9e 01 ac bne- cr7,ffc07448 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 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 28 88 addi r9,r9,10376 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 /* * 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 <== 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 (*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 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 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 (tty->osem); ffc07338: 80 7f 00 18 lwz r3,24(r31) ffc0733c: 48 00 12 f9 bl ffc08634 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); ffc07340: 80 7f 00 8c lwz r3,140(r31) ffc07344: 48 00 12 f1 bl ffc08634 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 (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_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 (tty->rawOutBuf.theBuf); ffc07368: 80 7f 00 7c lwz r3,124(r31) ffc0736c: 4b ff d2 89 bl ffc045f4 free (tty->cbuf); ffc07370: 80 7f 00 1c lwz r3,28(r31) ffc07374: 4b ff d2 81 bl ffc045f4 free (tty); ffc07378: 7f e3 fb 78 mr r3,r31 ffc0737c: 4b ff d2 79 bl ffc045f4 } rtems_semaphore_release (rtems_termios_ttyMutex); ffc07380: 80 7e 27 58 lwz r3,10072(r30) ffc07384: 48 00 14 ed bl ffc08870 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 <== NOT EXECUTED ffc073b0: 4b ff ff b0 b ffc07360 <== 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 5c stw r11,10076(r10) if ( rtems_termios_ttyTail != NULL ) { ffc073c4: 41 9e 00 88 beq- cr7,ffc0744c 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 <== 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 60 stw r9,10080(r10) if ( rtems_termios_ttyHead != NULL ) { ffc073e8: 41 be ff 48 beq- cr7,ffc07330 rtems_termios_ttyHead->back = NULL; ffc073ec: 91 69 00 04 stw r11,4(r9) ffc073f0: 4b ff ff 40 b ffc07330 } 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 if (sc != RTEMS_SUCCESSFUL) { ffc07404: 2f 83 00 00 cmpwi cr7,r3,0 ffc07408: 40 9e 00 40 bne- cr7,ffc07448 rtems_fatal_error_occurred (sc); } drainOutput (tty); ffc0740c: 7f e3 fb 78 mr r3,r31 ffc07410: 4b ff f5 39 bl ffc06948 } 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 == 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 <== 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 <== 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 <== 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 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc07448: 48 00 1b f1 bl ffc09038 <== 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 60 stw r11,10080(r9) ffc07454: 4b ff fe dc b ffc07330 ffc05ac8 : * 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 <== 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 <== 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 <== 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 29 3c lwz r0,10556(r9) <== NOT EXECUTED ffc05b10: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05b14: 41 9e 00 0c beq- cr7,ffc05b20 <== 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 <== 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 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc05b48: 48 00 34 f1 bl ffc09038 <== NOT EXECUTED ffc05b4c : * 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 28 88 addi r29,r29,10376 <== 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 <== NOT EXECUTED while (len--) { ffc05bac: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc05bb0: 41 9e 00 38 beq- cr7,ffc05be8 <== NOT EXECUTED ffc05bb4: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc05bb8: 48 00 00 14 b ffc05bcc <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc057a8 : 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 58 lwz r0,10072(r7) ffc057bc: 38 e7 27 58 addi r7,r7,10072 ffc057c0: 2f 80 00 00 cmpwi cr7,r0,0 ffc057c4: 41 9e 00 14 beq- cr7,ffc057d8 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_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_fatal_error_occurred (sc); ffc057f8: 48 00 38 41 bl ffc09038 <== NOT EXECUTED ffc06e1c : } } 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 if (sc != RTEMS_SUCCESSFUL) { ffc06e68: 7c 7d 1b 79 mr. r29,r3 ffc06e6c: 40 82 00 4c bne- ffc06eb8 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 ffc06e7c: 2b 80 00 04 cmplwi cr7,r0,4 ffc06e80: 41 9d 00 68 bgt- cr7,ffc06ee8 ffc06e84: 2f 80 00 02 cmpwi cr7,r0,2 ffc06e88: 41 9e 00 bc beq- cr7,ffc06f44 ffc06e8c: 2b 80 00 02 cmplwi cr7,r0,2 ffc06e90: 40 9d 02 04 ble- cr7,ffc07094 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 break; ffc06e9c: 48 00 00 14 b ffc06eb0 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 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 <== NOT EXECUTED ffc06ef8: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED ffc06efc: 41 9d 01 b4 bgt- cr7,ffc070b0 <== NOT EXECUTED ffc06f00: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc06f04: 41 9e 02 3c beq- cr7,ffc07140 <== 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 28 88 addi r9,r9,10376 <== 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 <== 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 <== 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 d1 b5 bl ffc14108 /* * 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 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 !(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 <== 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 <== 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 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 <== 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 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 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 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 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 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 (*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 *(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 <== 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 <== 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 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 d0 61 bl ffc14108 break; ffc070ac: 4b ff fe 04 b ffc06eb0 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 <== 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 <== 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 28 88 addi r28,r28,10376 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc07650 : int32_t baud ) { int termios_baud; switch (baud) { ffc07650: 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; ffc07654: 38 00 00 09 li r0,9 int32_t baud ) { int termios_baud; switch (baud) { ffc07658: 41 9e 00 5c beq- cr7,ffc076b4 ffc0765c: 40 9d 00 60 ble- cr7,ffc076bc ffc07660: 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; ffc07664: 38 00 00 0e li r0,14 int32_t baud ) { int termios_baud; switch (baud) { ffc07668: 41 9e 00 4c beq- cr7,ffc076b4 ffc0766c: 40 9d 00 90 ble- cr7,ffc076fc ffc07670: 3c 00 00 01 lis r0,1 ffc07674: 60 00 c2 00 ori r0,r0,49664 ffc07678: 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; ffc0767c: 38 00 10 02 li r0,4098 int32_t baud ) { int termios_baud; switch (baud) { ffc07680: 41 9e 00 34 beq- cr7,ffc076b4 ffc07684: 40 9d 00 f8 ble- cr7,ffc0777c ffc07688: 3c 00 00 03 lis r0,3 ffc0768c: 60 00 84 00 ori r0,r0,33792 ffc07690: 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; ffc07694: 38 00 10 03 li r0,4099 int32_t baud ) { int termios_baud; switch (baud) { ffc07698: 41 9e 00 1c beq- cr7,ffc076b4 ffc0769c: 3c 00 00 07 lis r0,7 ffc076a0: 60 00 08 00 ori r0,r0,2048 ffc076a4: 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; ffc076a8: 38 00 10 04 li r0,4100 int32_t baud ) { int termios_baud; switch (baud) { ffc076ac: 41 9e 00 08 beq- cr7,ffc076b4 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; ffc076b0: 38 00 ff ff li r0,-1 default: termios_baud = -1; break; } return termios_baud; } ffc076b4: 7c 03 03 78 mr r3,r0 ffc076b8: 4e 80 00 20 blr int32_t baud ) { int termios_baud; switch (baud) { ffc076bc: 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; ffc076c0: 38 00 00 04 li r0,4 int32_t baud ) { int termios_baud; switch (baud) { ffc076c4: 41 be ff f0 beq- cr7,ffc076b4 ffc076c8: 40 9d 00 64 ble- cr7,ffc0772c ffc076cc: 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; ffc076d0: 38 00 00 06 li r0,6 int32_t baud ) { int termios_baud; switch (baud) { ffc076d4: 41 be ff e0 beq- cr7,ffc076b4 ffc076d8: 40 9d 00 84 ble- cr7,ffc0775c ffc076dc: 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; ffc076e0: 38 00 00 07 li r0,7 int32_t baud ) { int termios_baud; switch (baud) { ffc076e4: 41 be ff d0 beq- cr7,ffc076b4 ffc076e8: 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; ffc076ec: 38 00 00 08 li r0,8 int32_t baud ) { int termios_baud; switch (baud) { ffc076f0: 41 be ff c4 beq- cr7,ffc076b4 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; ffc076f4: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc076f8: 4b ff ff bc b ffc076b4 <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { ffc076fc: 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; ffc07700: 38 00 00 0b li r0,11 int32_t baud ) { int termios_baud; switch (baud) { ffc07704: 41 be ff b0 beq- cr7,ffc076b4 ffc07708: 40 9d 00 a0 ble- cr7,ffc077a8 ffc0770c: 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; ffc07710: 38 00 00 0c li r0,12 int32_t baud ) { int termios_baud; switch (baud) { ffc07714: 41 be ff a0 beq- cr7,ffc076b4 ffc07718: 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; ffc0771c: 38 00 00 0d li r0,13 int32_t baud ) { int termios_baud; switch (baud) { ffc07720: 41 be ff 94 beq- cr7,ffc076b4 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; ffc07724: 38 00 ff ff li r0,-1 ffc07728: 4b ff ff 8c b ffc076b4 int32_t baud ) { int termios_baud; switch (baud) { ffc0772c: 2f 83 00 32 cmpwi cr7,r3,50 ffc07730: 38 00 00 01 li r0,1 ffc07734: 41 be ff 80 beq- cr7,ffc076b4 ffc07738: 40 9d 00 34 ble- cr7,ffc0776c ffc0773c: 2f 83 00 4b cmpwi cr7,r3,75 ffc07740: 38 00 00 02 li r0,2 ffc07744: 41 be ff 70 beq- cr7,ffc076b4 ffc07748: 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; ffc0774c: 38 00 00 03 li r0,3 int32_t baud ) { int termios_baud; switch (baud) { ffc07750: 41 be ff 64 beq- cr7,ffc076b4 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; ffc07754: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc07758: 4b ff ff 5c b ffc076b4 <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { ffc0775c: 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; ffc07760: 38 00 00 05 li r0,5 int32_t baud ) { int termios_baud; switch (baud) { ffc07764: 40 9e ff 4c bne+ cr7,ffc076b0 ffc07768: 4b ff ff 4c b ffc076b4 ffc0776c: 2f 83 00 00 cmpwi cr7,r3,0 ffc07770: 38 00 00 00 li r0,0 ffc07774: 41 be ff 40 beq- cr7,ffc076b4 ffc07778: 4b ff ff 38 b ffc076b0 ffc0777c: 38 00 00 00 li r0,0 ffc07780: 60 00 96 00 ori r0,r0,38400 ffc07784: 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; ffc07788: 38 00 00 0f li r0,15 int32_t baud ) { int termios_baud; switch (baud) { ffc0778c: 41 be ff 28 beq- cr7,ffc076b4 ffc07790: 38 00 00 00 li r0,0 ffc07794: 60 00 e1 00 ori r0,r0,57600 ffc07798: 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; ffc0779c: 38 00 10 01 li r0,4097 int32_t baud ) { int termios_baud; switch (baud) { ffc077a0: 40 9e ff 10 bne+ cr7,ffc076b0 ffc077a4: 4b ff ff 10 b ffc076b4 ffc077a8: 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; ffc077ac: 38 00 00 0a li r0,10 int32_t baud ) { int termios_baud; switch (baud) { ffc077b0: 40 9e ff 00 bne+ cr7,ffc076b0 ffc077b4: 4b ff ff 00 b ffc076b4 ffc07458 : 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 58 lwz r3,10072(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_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc074b4: 7c 7b 1b 79 mr. r27,r3 ffc074b8: 40 82 00 8c bne- ffc07544 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { ffc074bc: 3e c0 00 00 lis r22,0 ffc074c0: 83 f6 27 60 lwz r31,10080(r22) ffc074c4: 2f 9f 00 00 cmpwi cr7,r31,0 ffc074c8: 40 be 00 14 bne+ cr7,ffc074dc ffc074cc: 48 00 00 f4 b ffc075c0 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 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 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 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 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 (*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_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); ffc0753c: 80 7c 27 58 lwz r3,10072(r28) ffc07540: 48 00 13 31 bl ffc08870 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc075bc: 48 00 02 cc b ffc07888 <== 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 d1 bl ffc0e098 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 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 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 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 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 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 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 tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc07630: 81 36 27 60 lwz r9,10080(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_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 60 stw r25,10080(r22) if (rtems_termios_ttyTail == NULL) ffc07668: 80 09 27 5c lwz r0,10076(r9) ffc0766c: 2f 80 00 00 cmpwi cr7,r0,0 ffc07670: 41 9e 02 8c beq- cr7,ffc078fc 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_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_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_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_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_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 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 &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 (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 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 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 <== 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 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); ffc07830: 80 7c 27 58 lwz r3,10072(r28) <== NOT EXECUTED ffc07834: 3b 60 00 1a li r27,26 <== NOT EXECUTED ffc07838: 48 00 10 39 bl ffc08870 <== NOT EXECUTED return RTEMS_NO_MEMORY; ffc0783c: 4b ff fd 08 b ffc07544 <== 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 <== NOT EXECUTED free(tty); ffc0784c: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc07850: 4b ff cd a5 bl ffc045f4 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); ffc07854: 80 7c 27 58 lwz r3,10072(r28) <== NOT EXECUTED ffc07858: 48 00 10 19 bl ffc08870 <== NOT EXECUTED return RTEMS_NO_MEMORY; ffc0785c: 4b ff fc e8 b ffc07544 <== 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 <== 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 <== 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 b1 bl ffc09038 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc078f8: 4b ff ff 90 b ffc07888 <== 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 5c stw r25,10076(r9) ffc07900: 4b ff fd 74 b ffc07674 ffc05f38 : * 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 (*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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 79 bl ffc09038 <== NOT EXECUTED ffc069f0 : 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 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc06a44: 7c 78 1b 79 mr. r24,r3 <== NOT EXECUTED ffc06a48: 40 82 00 48 bne- ffc06a90 <== 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 28 88 addi r9,r9,10376 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc06af0: 7f 69 03 a6 mtctr r27 <== NOT EXECUTED ffc06af4: 48 00 00 10 b ffc06b04 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc06c8c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06c90: 41 9e 00 08 beq- cr7,ffc06c98 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc06ccc: 4b ff fe 0c b ffc06ad8 <== 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 <== 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 <== NOT EXECUTED ffc06cec: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc06cf0: 4b ff ff a8 b ffc06c98 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc06d50: 4b ff fa 39 bl ffc06788 <== NOT EXECUTED ffc06d54: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06d58: 40 be fd 80 bne- cr7,ffc06ad8 <== 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 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); ffc06d64: 48 00 11 95 bl ffc07ef8 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc06db4: 4b ff ff b0 b ffc06d64 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc06de4: 4b ff ff 88 b ffc06d6c <== 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 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); ffc06df4: 48 00 11 05 bl ffc07ef8 <== 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 <== NOT EXECUTED ffc06e08: 4b ff fc d0 b ffc06ad8 <== 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 <== 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 <== NOT EXECUTED ffc05840 : * 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc05978: 4b ff ff c8 b ffc05940 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc059c0: 4b ff ff 14 b ffc058d4 <== 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 <== NOT EXECUTED ffc079b0 : /* * 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc07a54: 4b ff ff 80 b ffc079d4 <== NOT EXECUTED ffc05818 : * 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 <== 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 : /* * 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 28 88 addi r29,r29,10376 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== 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 <== NOT EXECUTED ffc079ac: 4b ff ff 80 b ffc0792c <== NOT EXECUTED ffc0680c : 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 if (sc != RTEMS_SUCCESSFUL) ffc0684c: 7c 7d 1b 79 mr. r29,r3 ffc06850: 40 82 00 40 bne- ffc06890 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 28 88 addi r9,r9,10376 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 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 <== 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 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 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 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 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 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 <== NOT EXECUTED ffc06944: 4b ff ff b4 b ffc068f8 <== NOT EXECUTED ffc0abb4 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { ffc0abb4: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0abb8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0abbc: 7d 80 00 26 mfcr r12 <== NOT EXECUTED ffc0abc0: 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) ffc0abc4: 54 60 1f fe rlwinm r0,r3,3,31,31 <== NOT EXECUTED ffc0abc8: 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 ) { ffc0abcc: 93 41 00 10 stw r26,16(r1) <== NOT EXECUTED ffc0abd0: 7c 9a 23 78 mr r26,r4 <== NOT EXECUTED ffc0abd4: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc0abd8: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED ffc0abdc: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc0abe0: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0abe4: 93 61 00 14 stw r27,20(r1) <== NOT EXECUTED ffc0abe8: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED ffc0abec: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc0abf0: 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) ffc0abf4: 41 92 00 38 beq- cr4,ffc0ac2c <== NOT EXECUTED { if (rtems_panic_in_progress++) ffc0abf8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0abfc: 81 69 27 d0 lwz r11,10192(r9) <== NOT EXECUTED ffc0ac00: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc0ac04: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED ffc0ac08: 90 09 27 d0 stw r0,10192(r9) <== NOT EXECUTED ffc0ac0c: 41 9e 00 18 beq- cr7,ffc0ac24 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0ac10: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc0ac14: 81 4b 27 f8 lwz r10,10232(r11) <== NOT EXECUTED ffc0ac18: 38 0a 00 01 addi r0,r10,1 <== NOT EXECUTED ffc0ac1c: 90 0b 27 f8 stw r0,10232(r11) <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); ffc0ac20: 80 09 27 d0 lwz r0,10192(r9) <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) ffc0ac24: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0ac28: 41 9d 00 d8 bgt- cr7,ffc0ad00 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ ffc0ac2c: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc0ac30: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; ffc0ac34: 57 fb 01 00 rlwinm r27,r31,0,4,0 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0ac38: 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 */ ffc0ac3c: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc0ac40: 48 01 19 99 bl ffc1c5d8 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0ac44: 77 e0 40 00 andis. r0,r31,16384 <== NOT EXECUTED ffc0ac48: 40 82 01 38 bne- ffc0ad80 <== 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); ffc0ac4c: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED ffc0ac50: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED ffc0ac54: 7f 44 d3 78 mr r4,r26 <== NOT EXECUTED ffc0ac58: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0ac5c: 48 01 7d 3d bl ffc22998 <== NOT EXECUTED if (status) ffc0ac60: 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); ffc0ac64: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED if (status) ffc0ac68: 40 9e 00 e4 bne- cr7,ffc0ad4c <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) ffc0ac6c: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0ac70: 41 9e 00 3c beq- cr7,ffc0acac <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) ffc0ac74: 40 9d 00 18 ble- cr7,ffc0ac8c <== NOT EXECUTED ffc0ac78: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0ac7c: 48 01 2d 31 bl ffc1d9ac <== NOT EXECUTED ffc0ac80: 88 03 00 00 lbz r0,0(r3) <== NOT EXECUTED ffc0ac84: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ac88: 40 9e 01 04 bne- cr7,ffc0ad8c <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); ffc0ac8c: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED ffc0ac90: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ac94: 38 84 c0 88 addi r4,r4,-16248 <== NOT EXECUTED ffc0ac98: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0ac9c: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED ffc0aca0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0aca4: 48 01 1d 79 bl ffc1ca1c <== NOT EXECUTED ffc0aca8: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); ffc0acac: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED ffc0acb0: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0acb4: 38 84 b9 fc addi r4,r4,-17924 <== NOT EXECUTED ffc0acb8: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0acbc: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0acc0: 48 01 1d 5d bl ffc1ca1c <== NOT EXECUTED (void) fflush(stderr); ffc0acc4: 81 3e 27 64 lwz r9,10084(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"); ffc0acc8: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED (void) fflush(stderr); ffc0accc: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0acd0: 48 01 19 09 bl ffc1c5d8 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0acd4: 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"); ffc0acd8: 7c 7b ea 14 add r3,r27,r29 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0acdc: 41 82 00 28 beq- ffc0ad04 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) ffc0ace0: 41 92 00 54 beq- cr4,ffc0ad34 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); ffc0ace4: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ace8: 38 84 c0 9c addi r4,r4,-16228 <== NOT EXECUTED ffc0acec: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0acf0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0acf4: 48 00 01 55 bl ffc0ae48 <== NOT EXECUTED _exit(local_errno); ffc0acf8: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0acfc: 48 00 10 45 bl ffc0bd40 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); abort(); ffc0ad00: 38 60 00 00 li r3,0 <== NOT EXECUTED } } return chars_written; } ffc0ad04: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0ad08: 81 81 00 0c lwz r12,12(r1) <== NOT EXECUTED ffc0ad0c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ad10: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc0ad14: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc0ad18: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc0ad1c: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc0ad20: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0ad24: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0ad28: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0ad2c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0ad30: 4e 80 00 20 blr <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); ffc0ad34: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ad38: 38 84 c0 b4 addi r4,r4,-16204 <== NOT EXECUTED ffc0ad3c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0ad40: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0ad44: 48 00 01 05 bl ffc0ae48 <== NOT EXECUTED abort(); ffc0ad48: 48 01 13 f1 bl ffc1c138 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); ffc0ad4c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0ad50: 81 29 27 64 lwz r9,10084(r9) <== NOT EXECUTED ffc0ad54: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc0ad58: 83 69 00 0c lwz r27,12(r9) <== NOT EXECUTED ffc0ad5c: 4b ff fe 2d bl ffc0ab88 <== NOT EXECUTED ffc0ad60: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ad64: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0ad68: 38 84 c0 68 addi r4,r4,-16280 <== NOT EXECUTED ffc0ad6c: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc0ad70: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0ad74: 48 01 1c a9 bl ffc1ca1c <== NOT EXECUTED ffc0ad78: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED ffc0ad7c: 4b ff fe f0 b ffc0ac6c <== 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; ffc0ad80: 48 01 13 d5 bl ffc1c154 <__errno> <== NOT EXECUTED ffc0ad84: 83 83 00 00 lwz r28,0(r3) <== NOT EXECUTED ffc0ad88: 4b ff fe c4 b ffc0ac4c <== 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)); ffc0ad8c: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED ffc0ad90: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0ad94: 83 69 00 0c lwz r27,12(r9) <== NOT EXECUTED ffc0ad98: 48 01 2c 15 bl ffc1d9ac <== NOT EXECUTED ffc0ad9c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ada0: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0ada4: 38 84 c0 78 addi r4,r4,-16264 <== NOT EXECUTED ffc0ada8: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc0adac: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0adb0: 48 01 1c 6d bl ffc1ca1c <== NOT EXECUTED ffc0adb4: 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)) ffc0adb8: 4b ff fe f4 b ffc0acac <== NOT EXECUTED ffc2f4b0 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2f4b0: 94 21 ff d8 stwu r1,-40(r1) ffc2f4b4: 7c 08 02 a6 mflr r0 ffc2f4b8: 93 21 00 0c stw r25,12(r1) unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2f4bc: 3f 20 00 00 lis r25,0 ffc2f4c0: 3b 39 35 68 addi r25,r25,13672 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2f4c4: 93 41 00 10 stw r26,16(r1) sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) ffc2f4c8: 3f 40 cc cc lis r26,-13108 ffc2f4cc: 63 5a cc cd ori r26,r26,52429 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2f4d0: 93 61 00 14 stw r27,20(r1) limit++; continue; } sign = 1; } if (!isdigit(c)) ffc2f4d4: 3f 60 00 00 lis r27,0 ffc2f4d8: 3b 7b 35 5c addi r27,r27,13660 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2f4dc: 93 81 00 18 stw r28,24(r1) ffc2f4e0: 3f 80 7f ff lis r28,32767 ffc2f4e4: 63 9c ff ff ori r28,r28,65535 ffc2f4e8: 90 01 00 2c stw r0,44(r1) ffc2f4ec: 93 01 00 08 stw r24,8(r1) ffc2f4f0: 7c 98 23 78 mr r24,r4 ffc2f4f4: 93 a1 00 1c stw r29,28(r1) ffc2f4f8: 3b a0 00 00 li r29,0 ffc2f4fc: 93 c1 00 20 stw r30,32(r1) ffc2f500: 3b c0 00 00 li r30,0 ffc2f504: 93 e1 00 24 stw r31,36(r1) ffc2f508: 7c 7f 1b 78 mr r31,r3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2f50c: 81 3f 00 04 lwz r9,4(r31) ffc2f510: 38 09 ff ff addi r0,r9,-1 ffc2f514: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f518: 90 1f 00 04 stw r0,4(r31) ffc2f51c: 41 9c 00 7c blt- cr7,ffc2f598 ffc2f520: 81 3f 00 00 lwz r9,0(r31) ffc2f524: 88 69 00 00 lbz r3,0(r9) ffc2f528: 38 09 00 01 addi r0,r9,1 ffc2f52c: 90 1f 00 00 stw r0,0(r31) if (c == ':') ffc2f530: 2f 83 00 3a cmpwi cr7,r3,58 ffc2f534: 41 9e 00 78 beq- cr7,ffc2f5ac break; if (sign == 0) { ffc2f538: 2f 9d 00 00 cmpwi cr7,r29,0 ffc2f53c: 40 9e 00 10 bne- cr7,ffc2f54c if (c == '-') { ffc2f540: 2f 83 00 2d cmpwi cr7,r3,45 sign = -1; limit++; continue; ffc2f544: 3b a0 00 01 li r29,1 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { ffc2f548: 41 9e 00 e8 beq- cr7,ffc2f630 limit++; continue; } sign = 1; } if (!isdigit(c)) ffc2f54c: 81 3b 00 00 lwz r9,0(r27) ffc2f550: 7d 29 1a 14 add r9,r9,r3 ffc2f554: 88 09 00 01 lbz r0,1(r9) ffc2f558: 70 09 00 04 andi. r9,r0,4 ffc2f55c: 41 82 00 a0 beq- ffc2f5fc return 0; d = c - '0'; if ((i > (limit / 10)) ffc2f560: 7c 1c d0 16 mulhwu r0,r28,r26 ffc2f564: 54 00 e8 fe rlwinm r0,r0,29,3,31 ffc2f568: 7f 9e 00 40 cmplw cr7,r30,r0 ffc2f56c: 41 9d 00 90 bgt- cr7,ffc2f5fc ffc2f570: 7f 9e 00 00 cmpw cr7,r30,r0 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; ffc2f574: 38 63 ff d0 addi r3,r3,-48 ffc2f578: 1c 1e 00 0a mulli r0,r30,10 if ((i > (limit / 10)) ffc2f57c: 41 9e 00 74 beq- cr7,ffc2f5f0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2f580: 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; ffc2f584: 7f c3 02 14 add r30,r3,r0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2f588: 38 09 ff ff addi r0,r9,-1 ffc2f58c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f590: 90 1f 00 04 stw r0,4(r31) ffc2f594: 40 9c ff 8c bge+ cr7,ffc2f520 ffc2f598: 80 79 00 00 lwz r3,0(r25) <== NOT EXECUTED ffc2f59c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2f5a0: 48 02 55 49 bl ffc54ae8 <__srget_r> <== NOT EXECUTED if (c == ':') ffc2f5a4: 2f 83 00 3a cmpwi cr7,r3,58 <== NOT EXECUTED ffc2f5a8: 40 9e ff 90 bne+ cr7,ffc2f538 <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) ffc2f5ac: 2f 9d 00 00 cmpwi cr7,r29,0 ffc2f5b0: 41 9e 00 4c beq- cr7,ffc2f5fc return 0; *val = i * sign; return 1; } ffc2f5b4: 80 01 00 2c lwz r0,44(r1) return 0; i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; ffc2f5b8: 7f dd f1 d6 mullw r30,r29,r30 return 1; } ffc2f5bc: 83 21 00 0c lwz r25,12(r1) ffc2f5c0: 7c 08 03 a6 mtlr r0 return 0; i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; ffc2f5c4: 38 60 00 01 li r3,1 ffc2f5c8: 93 d8 00 00 stw r30,0(r24) return 1; } ffc2f5cc: 83 01 00 08 lwz r24,8(r1) ffc2f5d0: 83 41 00 10 lwz r26,16(r1) ffc2f5d4: 83 61 00 14 lwz r27,20(r1) ffc2f5d8: 83 81 00 18 lwz r28,24(r1) ffc2f5dc: 83 a1 00 1c lwz r29,28(r1) ffc2f5e0: 83 c1 00 20 lwz r30,32(r1) ffc2f5e4: 83 e1 00 24 lwz r31,36(r1) ffc2f5e8: 38 21 00 28 addi r1,r1,40 ffc2f5ec: 4e 80 00 20 blr sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) ffc2f5f0: 7d 20 e0 50 subf r9,r0,r28 <== NOT EXECUTED ffc2f5f4: 7f 83 48 40 cmplw cr7,r3,r9 <== NOT EXECUTED ffc2f5f8: 40 9d ff 88 ble+ cr7,ffc2f580 <== NOT EXECUTED } if (sign == 0) return 0; *val = i * sign; return 1; } ffc2f5fc: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; ffc2f600: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2f604: 83 01 00 08 lwz r24,8(r1) <== NOT EXECUTED ffc2f608: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f60c: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc2f610: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc2f614: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc2f618: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc2f61c: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc2f620: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc2f624: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc2f628: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc2f62c: 4e 80 00 20 blr <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; ffc2f630: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED ffc2f634: 3b a0 ff ff li r29,-1 <== NOT EXECUTED continue; ffc2f638: 4b ff fe d4 b ffc2f50c <== NOT EXECUTED ffc2f63c : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { ffc2f63c: 94 21 ff e0 stwu r1,-32(r1) ffc2f640: 7c 08 02 a6 mflr r0 ffc2f644: 90 01 00 24 stw r0,36(r1) int c; *name = *bufp; ffc2f648: 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) { ffc2f64c: 93 81 00 10 stw r28,16(r1) int c; *name = *bufp; for (;;) { c = getc(fp); ffc2f650: 3f 80 00 00 lis r28,0 ffc2f654: 3b 9c 35 68 addi r28,r28,13672 /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { ffc2f658: 93 61 00 0c stw r27,12(r1) ffc2f65c: 7c fb 3b 78 mr r27,r7 ffc2f660: 93 a1 00 14 stw r29,20(r1) ffc2f664: 7c dd 33 78 mr r29,r6 ffc2f668: 93 c1 00 18 stw r30,24(r1) ffc2f66c: 7c be 2b 78 mr r30,r5 ffc2f670: 93 e1 00 1c stw r31,28(r1) ffc2f674: 7c 7f 1b 78 mr r31,r3 int c; *name = *bufp; ffc2f678: 90 04 00 00 stw r0,0(r4) ffc2f67c: 48 00 00 58 b ffc2f6d4 for (;;) { c = getc(fp); ffc2f680: 81 3f 00 00 lwz r9,0(r31) ffc2f684: 88 69 00 00 lbz r3,0(r9) ffc2f688: 38 09 00 01 addi r0,r9,1 ffc2f68c: 90 1f 00 00 stw r0,0(r31) if (c == ':') { ffc2f690: 2f 83 00 3a cmpwi cr7,r3,58 if (nlFlag) return 0; break; } if (c == '\n') { ffc2f694: 2f 03 00 0a cmpwi cr6,r3,10 if (!nlFlag) return 0; break; } if (c == EOF) ffc2f698: 2c 83 ff ff cmpwi cr1,r3,-1 int c; *name = *bufp; for (;;) { c = getc(fp); if (c == ':') { ffc2f69c: 41 9e 00 68 beq- cr7,ffc2f704 if (nlFlag) return 0; break; } if (c == '\n') { ffc2f6a0: 41 9a 00 b8 beq- cr6,ffc2f758 if (!nlFlag) return 0; break; } if (c == EOF) ffc2f6a4: 41 86 00 bc beq- cr1,ffc2f760 return 0; if (*nleft < 2) ffc2f6a8: 80 1d 00 00 lwz r0,0(r29) ffc2f6ac: 2b 80 00 01 cmplwi cr7,r0,1 ffc2f6b0: 40 9d 00 b0 ble- cr7,ffc2f760 return 0; **bufp = c; ffc2f6b4: 81 3e 00 00 lwz r9,0(r30) ffc2f6b8: 98 69 00 00 stb r3,0(r9) ++(*bufp); ffc2f6bc: 81 3e 00 00 lwz r9,0(r30) --(*nleft); ffc2f6c0: 81 7d 00 00 lwz r11,0(r29) if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc2f6c4: 39 29 00 01 addi r9,r9,1 --(*nleft); ffc2f6c8: 38 0b ff ff addi r0,r11,-1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc2f6cc: 91 3e 00 00 stw r9,0(r30) --(*nleft); ffc2f6d0: 90 1d 00 00 stw r0,0(r29) { int c; *name = *bufp; for (;;) { c = getc(fp); ffc2f6d4: 81 3f 00 04 lwz r9,4(r31) ffc2f6d8: 38 09 ff ff addi r0,r9,-1 ffc2f6dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f6e0: 90 1f 00 04 stw r0,4(r31) ffc2f6e4: 40 9c ff 9c bge+ cr7,ffc2f680 ffc2f6e8: 80 7c 00 00 lwz r3,0(r28) ffc2f6ec: 7f e4 fb 78 mr r4,r31 ffc2f6f0: 48 02 53 f9 bl ffc54ae8 <__srget_r> if (c == ':') { ffc2f6f4: 2f 83 00 3a cmpwi cr7,r3,58 if (nlFlag) return 0; break; } if (c == '\n') { ffc2f6f8: 2f 03 00 0a cmpwi cr6,r3,10 if (!nlFlag) return 0; break; } if (c == EOF) ffc2f6fc: 2c 83 ff ff cmpwi cr1,r3,-1 int c; *name = *bufp; for (;;) { c = getc(fp); if (c == ':') { ffc2f700: 40 9e ff a0 bne+ cr7,ffc2f6a0 if (nlFlag) ffc2f704: 2f 9b 00 00 cmpwi cr7,r27,0 ffc2f708: 40 9e 00 58 bne- cr7,ffc2f760 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ffc2f70c: 81 3e 00 00 lwz r9,0(r30) ffc2f710: 38 00 00 00 li r0,0 ++(*bufp); --(*nleft); ffc2f714: 38 60 00 01 li r3,1 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ffc2f718: 98 09 00 00 stb r0,0(r9) ++(*bufp); --(*nleft); ffc2f71c: 81 7d 00 00 lwz r11,0(r29) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2f720: 81 3e 00 00 lwz r9,0(r30) --(*nleft); ffc2f724: 38 0b ff ff addi r0,r11,-1 return 1; } ffc2f728: 83 61 00 0c lwz r27,12(r1) ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); ffc2f72c: 90 1d 00 00 stw r0,0(r29) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2f730: 39 29 00 01 addi r9,r9,1 --(*nleft); return 1; } ffc2f734: 80 01 00 24 lwz r0,36(r1) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2f738: 91 3e 00 00 stw r9,0(r30) --(*nleft); return 1; } ffc2f73c: 7c 08 03 a6 mtlr r0 ffc2f740: 83 81 00 10 lwz r28,16(r1) ffc2f744: 83 a1 00 14 lwz r29,20(r1) ffc2f748: 83 c1 00 18 lwz r30,24(r1) ffc2f74c: 83 e1 00 1c lwz r31,28(r1) ffc2f750: 38 21 00 20 addi r1,r1,32 ffc2f754: 4e 80 00 20 blr if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) ffc2f758: 2f 9b 00 00 cmpwi cr7,r27,0 ffc2f75c: 40 9e ff b0 bne+ cr7,ffc2f70c } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; } ffc2f760: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; ffc2f764: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2f768: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc2f76c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f770: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc2f774: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc2f778: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc2f77c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc2f780: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc2f784: 4e 80 00 20 blr <== NOT EXECUTED ffc2f788 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f788: 94 21 ff d0 stwu r1,-48(r1) ffc2f78c: 7c 08 02 a6 mflr r0 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f790: 38 e0 00 00 li r7,0 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f794: 93 c1 00 28 stw r30,40(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f798: 3b c1 00 18 addi r30,r1,24 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f79c: 93 e1 00 2c stw r31,44(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f7a0: 3b e1 00 1c addi r31,r1,28 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f7a4: 90 a1 00 18 stw r5,24(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f7a8: 7f c5 f3 78 mr r5,r30 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f7ac: 90 c1 00 1c stw r6,28(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f7b0: 7f e6 fb 78 mr r6,r31 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f7b4: 93 81 00 20 stw r28,32(r1) ffc2f7b8: 7c 9c 23 78 mr r28,r4 ffc2f7bc: 93 a1 00 24 stw r29,36(r1) ffc2f7c0: 7c 7d 1b 78 mr r29,r3 ffc2f7c4: 90 01 00 34 stw r0,52(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f7c8: 4b ff fe 75 bl ffc2f63c ffc2f7cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f7d0: 40 9e 00 28 bne- cr7,ffc2f7f8 *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; ffc2f7d4: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2f7d8: 80 01 00 34 lwz r0,52(r1) ffc2f7dc: 83 81 00 20 lwz r28,32(r1) ffc2f7e0: 7c 08 03 a6 mtlr r0 ffc2f7e4: 83 a1 00 24 lwz r29,36(r1) ffc2f7e8: 83 c1 00 28 lwz r30,40(r1) ffc2f7ec: 83 e1 00 2c lwz r31,44(r1) ffc2f7f0: 38 21 00 30 addi r1,r1,48 ffc2f7f4: 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) ffc2f7f8: 7f a3 eb 78 mr r3,r29 ffc2f7fc: 38 9c 00 04 addi r4,r28,4 ffc2f800: 7f c5 f3 78 mr r5,r30 ffc2f804: 7f e6 fb 78 mr r6,r31 ffc2f808: 38 e0 00 00 li r7,0 ffc2f80c: 4b ff fe 31 bl ffc2f63c { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f810: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f814: 41 9e ff c0 beq+ cr7,ffc2f7d4 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) ffc2f818: 7f a3 eb 78 mr r3,r29 ffc2f81c: 38 81 00 08 addi r4,r1,8 ffc2f820: 4b ff fc 91 bl ffc2f4b0 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f824: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f828: 41 9e ff ac beq+ cr7,ffc2f7d4 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) ffc2f82c: 7f a3 eb 78 mr r3,r29 ffc2f830: 7f c5 f3 78 mr r5,r30 ffc2f834: 7f e6 fb 78 mr r6,r31 ffc2f838: 38 81 00 0c addi r4,r1,12 ffc2f83c: 38 e0 00 01 li r7,1 ffc2f840: 4b ff fd fd bl ffc2f63c { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f844: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f848: 41 be ff 8c beq- cr7,ffc2f7d4 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; ffc2f84c: 80 01 00 08 lwz r0,8(r1) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f850: 39 20 00 01 li r9,1 ffc2f854: 81 41 00 0c lwz r10,12(r1) ffc2f858: 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; ffc2f85c: b0 1c 00 08 sth r0,8(r28) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f860: 7d 4b 53 78 mr r11,r10 ffc2f864: 88 0a 00 00 lbz r0,0(r10) ffc2f868: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f86c: 41 9e 00 28 beq- cr7,ffc2f894 if(*cp == ',') memcount++; ffc2f870: 68 08 00 2c xori r8,r0,44 ffc2f874: 21 08 00 00 subfic r8,r8,0 ffc2f878: 7d 09 01 94 addze r8,r9 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f87c: 8c 0b 00 01 lbzu r0,1(r11) ffc2f880: 2f 80 00 00 cmpwi cr7,r0,0 if(*cp == ',') memcount++; ffc2f884: 7d 09 43 78 mr r9,r8 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f888: 40 9e ff e8 bne+ cr7,ffc2f870 ffc2f88c: 55 09 10 3a rlwinm r9,r8,2,0,29 ffc2f890: 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)) ffc2f894: 80 01 00 1c lwz r0,28(r1) ffc2f898: 7f 80 40 40 cmplw cr7,r0,r8 ffc2f89c: 41 bc ff 38 blt- cr7,ffc2f7d4 return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); ffc2f8a0: 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++) { ffc2f8a4: 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); ffc2f8a8: 39 29 00 0f addi r9,r9,15 ffc2f8ac: 55 29 00 36 rlwinm r9,r9,0,0,27 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc2f8b0: 91 49 00 00 stw r10,0(r9) for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f8b4: 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); ffc2f8b8: 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++) { ffc2f8bc: 81 21 00 0c lwz r9,12(r1) ffc2f8c0: 88 09 00 00 lbz r0,0(r9) ffc2f8c4: 39 29 00 01 addi r9,r9,1 ffc2f8c8: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f8cc: 41 9e 00 40 beq- cr7,ffc2f90c if(*cp == ',') { *cp = '\0'; ffc2f8d0: 39 00 00 00 li r8,0 ffc2f8d4: 48 00 00 14 b ffc2f8e8 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f8d8: 88 09 00 00 lbz r0,0(r9) ffc2f8dc: 39 29 00 01 addi r9,r9,1 ffc2f8e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f8e4: 41 9e 00 24 beq- cr7,ffc2f908 if(*cp == ',') { ffc2f8e8: 2f 80 00 2c cmpwi cr7,r0,44 ffc2f8ec: 40 9e ff ec bne+ cr7,ffc2f8d8 *cp = '\0'; ffc2f8f0: 99 09 ff ff stb r8,-1(r9) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; ffc2f8f4: 55 60 10 3a rlwinm r0,r11,2,0,29 <== NOT EXECUTED ffc2f8f8: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc2f8fc: 81 5c 00 0c lwz r10,12(r28) <== NOT EXECUTED ffc2f900: 7d 2a 01 2e stwx r9,r10,r0 <== NOT EXECUTED ffc2f904: 4b ff ff d4 b ffc2f8d8 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f908: 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; ffc2f90c: 81 3c 00 0c lwz r9,12(r28) ffc2f910: 38 00 00 00 li r0,0 ffc2f914: 38 60 00 01 li r3,1 ffc2f918: 7c 09 51 2e stwx r0,r9,r10 return 1; ffc2f91c: 4b ff fe bc b ffc2f7d8 ffc2f990 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f990: 94 21 ff d0 stwu r1,-48(r1) ffc2f994: 7c 08 02 a6 mflr r0 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f998: 38 e0 00 00 li r7,0 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f99c: 93 c1 00 28 stw r30,40(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f9a0: 3b c1 00 18 addi r30,r1,24 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f9a4: 93 e1 00 2c stw r31,44(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f9a8: 3b e1 00 1c addi r31,r1,28 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f9ac: 90 a1 00 18 stw r5,24(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f9b0: 7f c5 f3 78 mr r5,r30 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f9b4: 90 c1 00 1c stw r6,28(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f9b8: 7f e6 fb 78 mr r6,r31 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f9bc: 93 81 00 20 stw r28,32(r1) ffc2f9c0: 7c 9c 23 78 mr r28,r4 ffc2f9c4: 93 a1 00 24 stw r29,36(r1) ffc2f9c8: 7c 7d 1b 78 mr r29,r3 ffc2f9cc: 90 01 00 34 stw r0,52(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f9d0: 4b ff fc 6d bl ffc2f63c ffc2f9d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f9d8: 40 9e 00 28 bne- cr7,ffc2fa00 || !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; ffc2f9dc: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2f9e0: 80 01 00 34 lwz r0,52(r1) ffc2f9e4: 83 81 00 20 lwz r28,32(r1) ffc2f9e8: 7c 08 03 a6 mtlr r0 ffc2f9ec: 83 a1 00 24 lwz r29,36(r1) ffc2f9f0: 83 c1 00 28 lwz r30,40(r1) ffc2f9f4: 83 e1 00 2c lwz r31,44(r1) ffc2f9f8: 38 21 00 30 addi r1,r1,48 ffc2f9fc: 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) ffc2fa00: 7f a3 eb 78 mr r3,r29 ffc2fa04: 38 9c 00 04 addi r4,r28,4 ffc2fa08: 7f c5 f3 78 mr r5,r30 ffc2fa0c: 7f e6 fb 78 mr r6,r31 ffc2fa10: 38 e0 00 00 li r7,0 ffc2fa14: 4b ff fc 29 bl ffc2f63c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2fa18: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fa1c: 41 9e ff c0 beq+ cr7,ffc2f9dc || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) ffc2fa20: 7f a3 eb 78 mr r3,r29 ffc2fa24: 38 81 00 08 addi r4,r1,8 ffc2fa28: 4b ff fa 89 bl ffc2f4b0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2fa2c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fa30: 41 9e ff ac beq+ cr7,ffc2f9dc || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) ffc2fa34: 7f a3 eb 78 mr r3,r29 ffc2fa38: 38 81 00 0c addi r4,r1,12 ffc2fa3c: 4b ff fa 75 bl ffc2f4b0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2fa40: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fa44: 41 9e ff 98 beq+ cr7,ffc2f9dc || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) ffc2fa48: 7f a3 eb 78 mr r3,r29 ffc2fa4c: 38 9c 00 0c addi r4,r28,12 ffc2fa50: 7f c5 f3 78 mr r5,r30 ffc2fa54: 7f e6 fb 78 mr r6,r31 ffc2fa58: 38 e0 00 00 li r7,0 ffc2fa5c: 4b ff fb e1 bl ffc2f63c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2fa60: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fa64: 41 9e ff 78 beq+ cr7,ffc2f9dc || !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) ffc2fa68: 7f a3 eb 78 mr r3,r29 ffc2fa6c: 38 9c 00 10 addi r4,r28,16 ffc2fa70: 7f c5 f3 78 mr r5,r30 ffc2fa74: 7f e6 fb 78 mr r6,r31 ffc2fa78: 38 e0 00 00 li r7,0 ffc2fa7c: 4b ff fb c1 bl ffc2f63c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2fa80: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fa84: 41 9e ff 58 beq+ cr7,ffc2f9dc || !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) ffc2fa88: 7f a3 eb 78 mr r3,r29 ffc2fa8c: 38 9c 00 14 addi r4,r28,20 ffc2fa90: 7f c5 f3 78 mr r5,r30 ffc2fa94: 7f e6 fb 78 mr r6,r31 ffc2fa98: 38 e0 00 00 li r7,0 ffc2fa9c: 4b ff fb a1 bl ffc2f63c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2faa0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2faa4: 41 9e ff 38 beq+ cr7,ffc2f9dc || !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)) ffc2faa8: 7f a3 eb 78 mr r3,r29 ffc2faac: 7f c5 f3 78 mr r5,r30 ffc2fab0: 7f e6 fb 78 mr r6,r31 ffc2fab4: 38 9c 00 18 addi r4,r28,24 ffc2fab8: 38 e0 00 01 li r7,1 ffc2fabc: 4b ff fb 81 bl ffc2f63c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2fac0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fac4: 41 be ff 18 beq- cr7,ffc2f9dc || !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; ffc2fac8: 80 01 00 08 lwz r0,8(r1) pwd->pw_gid = pwgid; ffc2facc: 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; ffc2fad0: b0 1c 00 08 sth r0,8(r28) pwd->pw_gid = pwgid; ffc2fad4: 80 01 00 0c lwz r0,12(r1) ffc2fad8: b0 1c 00 0a sth r0,10(r28) return 1; ffc2fadc: 4b ff ff 04 b ffc2f9e0 ffc0bcac : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { ffc0bcac: 94 21 ff e0 stwu r1,-32(r1) ffc0bcb0: 7c 08 02 a6 mflr r0 ffc0bcb4: 93 e1 00 1c stw r31,28(r1) ffc0bcb8: 7c 7f 1b 78 mr r31,r3 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0bcbc: 7c 83 23 78 mr r3,r4 ffc0bcc0: 38 81 00 08 addi r4,r1,8 int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { ffc0bcc4: 90 01 00 24 stw r0,36(r1) * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0bcc8: 48 00 6b f9 bl ffc128c0 <_POSIX_Absolute_timeout_to_ticks> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) ffc0bccc: 2f 83 00 03 cmpwi cr7,r3,3 ffc0bcd0: 41 9e 00 28 beq- cr7,ffc0bcf8 do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); ffc0bcd4: 80 a1 00 08 lwz r5,8(r1) <== NOT EXECUTED ffc0bcd8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0bcdc: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0bce0: 48 00 7a 4d bl ffc1372c <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED break; } } return lock_status; } ffc0bce4: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0bce8: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0bcec: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0bcf0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0bcf4: 4e 80 00 20 blr <== NOT EXECUTED */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); ffc0bcf8: 80 a1 00 08 lwz r5,8(r1) ffc0bcfc: 7f e3 fb 78 mr r3,r31 ffc0bd00: 38 80 00 01 li r4,1 ffc0bd04: 48 00 7a 29 bl ffc1372c <_POSIX_Semaphore_Wait_support> break; } } return lock_status; } ffc0bd08: 80 01 00 24 lwz r0,36(r1) ffc0bd0c: 83 e1 00 1c lwz r31,28(r1) ffc0bd10: 38 21 00 20 addi r1,r1,32 ffc0bd14: 7c 08 03 a6 mtlr r0 ffc0bd18: 4e 80 00 20 blr ffc2f42c : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; ffc2f42c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2f430: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc2f434: b0 69 00 34 sth r3,52(r9) <== NOT EXECUTED return 0; } ffc2f438: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2f43c: 4e 80 00 20 blr <== NOT EXECUTED ffc2fc7c : return NULL; return &grent; } void setgrent(void) { ffc2fc7c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2fc80: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2fc84: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED init_etc_passwd_group(); if (group_fp != NULL) ffc2fc88: 3f e0 00 00 lis r31,0 <== NOT EXECUTED return NULL; return &grent; } void setgrent(void) { ffc2fc8c: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc2fc90: 4b ff fe c1 bl ffc2fb50 <== NOT EXECUTED if (group_fp != NULL) ffc2fc94: 80 7f 5f 74 lwz r3,24436(r31) <== NOT EXECUTED ffc2fc98: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fc9c: 41 9e 00 08 beq- cr7,ffc2fca4 <== NOT EXECUTED fclose(group_fp); ffc2fca0: 48 01 eb 01 bl ffc4e7a0 <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); ffc2fca4: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED ffc2fca8: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc2fcac: 38 63 a5 64 addi r3,r3,-23196 <== NOT EXECUTED ffc2fcb0: 38 84 35 b0 addi r4,r4,13744 <== NOT EXECUTED ffc2fcb4: 48 01 f6 19 bl ffc4f2cc <== NOT EXECUTED } ffc2fcb8: 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"); ffc2fcbc: 90 7f 5f 74 stw r3,24436(r31) <== NOT EXECUTED } ffc2fcc0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fcc4: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2fcc8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2fccc: 4e 80 00 20 blr <== NOT EXECUTED ffc2ff10 : return NULL; return &pwent; } void setpwent(void) { ffc2ff10: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2ff14: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2ff18: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED init_etc_passwd_group(); if (passwd_fp != NULL) ffc2ff1c: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc2ff20: 3b ff 5f 74 addi r31,r31,24436 <== NOT EXECUTED return NULL; return &pwent; } void setpwent(void) { ffc2ff24: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc2ff28: 4b ff fc 29 bl ffc2fb50 <== NOT EXECUTED if (passwd_fp != NULL) ffc2ff2c: 80 7f 00 04 lwz r3,4(r31) <== NOT EXECUTED ffc2ff30: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2ff34: 41 9e 00 08 beq- cr7,ffc2ff3c <== NOT EXECUTED fclose(passwd_fp); ffc2ff38: 48 01 e8 69 bl ffc4e7a0 <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); ffc2ff3c: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED ffc2ff40: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc2ff44: 38 63 a4 b4 addi r3,r3,-23372 <== NOT EXECUTED ffc2ff48: 38 84 35 b0 addi r4,r4,13744 <== NOT EXECUTED ffc2ff4c: 48 01 f3 81 bl ffc4f2cc <== NOT EXECUTED } ffc2ff50: 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"); ffc2ff54: 90 7f 00 04 stw r3,4(r31) <== NOT EXECUTED } ffc2ff58: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2ff5c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2ff60: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2ff64: 4e 80 00 20 blr <== NOT EXECUTED ffc09100 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; ffc09100: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc09104: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc09108: b0 69 00 32 sth r3,50(r9) <== NOT EXECUTED return 0; } ffc0910c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc09110: 4e 80 00 20 blr <== NOT EXECUTED ffc06788 : /* * 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 <== 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 <== 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 <== 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 <== 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 <== 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 ffc0acb0 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc0acb0: 94 21 ff c8 stwu r1,-56(r1) ffc0acb4: 7c 08 02 a6 mflr r0 ffc0acb8: 93 c1 00 30 stw r30,48(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc0acbc: 7c 9e 23 79 mr. r30,r4 int _STAT_NAME( const char *path, struct stat *buf ) { ffc0acc0: 93 a1 00 2c stw r29,44(r1) ffc0acc4: 7c 7d 1b 78 mr r29,r3 ffc0acc8: 90 01 00 3c stw r0,60(r1) ffc0accc: 93 e1 00 34 stw r31,52(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc0acd0: 41 82 00 b0 beq- ffc0ad80 rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc0acd4: 48 04 b7 01 bl ffc563d4 ffc0acd8: 3b e1 00 08 addi r31,r1,8 ffc0acdc: 7c 64 1b 78 mr r4,r3 ffc0ace0: 38 a0 00 00 li r5,0 ffc0ace4: 7f a3 eb 78 mr r3,r29 ffc0ace8: 7f e6 fb 78 mr r6,r31 ffc0acec: 38 e0 00 01 li r7,1 ffc0acf0: 4b ff e1 91 bl ffc08e80 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc0acf4: 3b a0 ff ff li r29,-1 ffc0acf8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0acfc: 40 9e 00 64 bne- cr7,ffc0ad60 return -1; if ( !loc.handlers->fstat_h ){ ffc0ad00: 81 21 00 10 lwz r9,16(r1) ffc0ad04: 80 09 00 18 lwz r0,24(r9) ffc0ad08: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ad0c: 41 9e 00 a4 beq- cr7,ffc0adb0 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc0ad10: 38 80 00 00 li r4,0 ffc0ad14: 38 a0 00 48 li r5,72 ffc0ad18: 7f c3 f3 78 mr r3,r30 ffc0ad1c: 48 04 76 81 bl ffc5239c status = (*loc.handlers->fstat_h)( &loc, buf ); ffc0ad20: 81 21 00 10 lwz r9,16(r1) ffc0ad24: 7f c4 f3 78 mr r4,r30 ffc0ad28: 80 09 00 18 lwz r0,24(r9) ffc0ad2c: 7f e3 fb 78 mr r3,r31 ffc0ad30: 7c 09 03 a6 mtctr r0 ffc0ad34: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc0ad38: 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 ); ffc0ad3c: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc0ad40: 2f 89 00 00 cmpwi cr7,r9,0 ffc0ad44: 41 9e 00 1c beq- cr7,ffc0ad60 ffc0ad48: 80 09 00 1c lwz r0,28(r9) ffc0ad4c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ad50: 41 9e 00 10 beq- cr7,ffc0ad60 ffc0ad54: 7f e3 fb 78 mr r3,r31 ffc0ad58: 7c 09 03 a6 mtctr r0 ffc0ad5c: 4e 80 04 21 bctrl return status; } ffc0ad60: 80 01 00 3c lwz r0,60(r1) ffc0ad64: 7f a3 eb 78 mr r3,r29 ffc0ad68: 83 c1 00 30 lwz r30,48(r1) ffc0ad6c: 7c 08 03 a6 mtlr r0 ffc0ad70: 83 a1 00 2c lwz r29,44(r1) ffc0ad74: 83 e1 00 34 lwz r31,52(r1) ffc0ad78: 38 21 00 38 addi r1,r1,56 ffc0ad7c: 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 ); ffc0ad80: 48 04 38 81 bl ffc4e600 <__errno> ffc0ad84: 38 00 00 0e li r0,14 ffc0ad88: 90 03 00 00 stw r0,0(r3) ffc0ad8c: 3b a0 ff ff li r29,-1 status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } ffc0ad90: 7f a3 eb 78 mr r3,r29 ffc0ad94: 80 01 00 3c lwz r0,60(r1) ffc0ad98: 83 a1 00 2c lwz r29,44(r1) ffc0ad9c: 7c 08 03 a6 mtlr r0 ffc0ada0: 83 c1 00 30 lwz r30,48(r1) ffc0ada4: 83 e1 00 34 lwz r31,52(r1) ffc0ada8: 38 21 00 38 addi r1,r1,56 ffc0adac: 4e 80 00 20 blr 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); ffc0adb0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc0adb4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0adb8: 41 9e 00 1c beq- cr7,ffc0add4 <== NOT EXECUTED ffc0adbc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0adc0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0adc4: 41 9e 00 10 beq- cr7,ffc0add4 <== NOT EXECUTED ffc0adc8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0adcc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0add0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0add4: 48 04 38 2d bl ffc4e600 <__errno> <== NOT EXECUTED ffc0add8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0addc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ade0: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc0ade4: 4b ff ff 7c b ffc0ad60 <== NOT EXECUTED ffc31024 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { ffc31024: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc31028: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc3102c: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc31030: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc31034: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc31038: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc3103c: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED ffc31040: 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 ) ) ffc31044: 48 02 53 91 bl ffc563d4 <== NOT EXECUTED ffc31048: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc3104c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc31050: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc31054: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc31058: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc3105c: 38 e0 00 01 li r7,1 <== NOT EXECUTED ffc31060: 4b fd 7e 21 bl ffc08e80 <== NOT EXECUTED ffc31064: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc31068: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc3106c: 40 9e 00 68 bne- cr7,ffc310d4 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; ffc31070: 83 a1 00 18 lwz r29,24(r1) <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; ffc31074: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED ffc31078: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED ffc3107c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc31080: 41 9e 00 74 beq- cr7,ffc310f4 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); ffc31084: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc31088: 38 a0 00 38 li r5,56 <== NOT EXECUTED ffc3108c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc31090: 48 02 13 0d bl ffc5239c <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); ffc31094: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED ffc31098: 38 7d 00 1c addi r3,r29,28 <== NOT EXECUTED ffc3109c: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED ffc310a0: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc310a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc310a8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc310ac: 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 ); ffc310b0: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc310b4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc310b8: 41 9e 00 1c beq- cr7,ffc310d4 <== NOT EXECUTED ffc310bc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc310c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc310c4: 41 9e 00 10 beq- cr7,ffc310d4 <== NOT EXECUTED ffc310c8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc310cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc310d0: 4e 80 04 21 bctrl <== NOT EXECUTED return result; } ffc310d4: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc310d8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc310dc: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc310e0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc310e4: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc310e8: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc310ec: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc310f0: 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 ); ffc310f4: 48 01 d5 0d bl ffc4e600 <__errno> <== NOT EXECUTED ffc310f8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc310fc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc31100: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc31104: 4b ff ff d0 b ffc310d4 <== NOT EXECUTED ffc31108 : int symlink( const char *actualpath, const char *sympath ) { ffc31108: 94 21 ff c8 stwu r1,-56(r1) ffc3110c: 7c 08 02 a6 mflr r0 ffc31110: 93 a1 00 2c stw r29,44(r1) ffc31114: 7c 7d 1b 78 mr r29,r3 ffc31118: 90 01 00 3c stw r0,60(r1) ffc3111c: 93 c1 00 30 stw r30,48(r1) ffc31120: 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 ); ffc31124: 88 04 00 00 lbz r0,0(r4) ffc31128: 2f 80 00 2f cmpwi cr7,r0,47 ffc3112c: 41 9e 00 14 beq- cr7,ffc31140 ffc31130: 2f 80 00 5c cmpwi cr7,r0,92 ffc31134: 41 9e 00 0c beq- cr7,ffc31140 ffc31138: 2f 80 00 00 cmpwi cr7,r0,0 ffc3113c: 40 9e 00 d8 bne- cr7,ffc31214 ffc31140: 3d 20 00 00 lis r9,0 ffc31144: 81 29 35 2c lwz r9,13612(r9) ffc31148: 38 60 00 01 li r3,1 ffc3114c: 80 09 00 24 lwz r0,36(r9) ffc31150: 81 09 00 18 lwz r8,24(r9) ffc31154: 81 49 00 1c lwz r10,28(r9) ffc31158: 81 69 00 20 lwz r11,32(r9) ffc3115c: 90 01 00 18 stw r0,24(r1) ffc31160: 91 01 00 0c stw r8,12(r1) ffc31164: 91 41 00 10 stw r10,16(r1) ffc31168: 91 61 00 14 stw r11,20(r1) ffc3116c: 80 09 00 28 lwz r0,40(r9) if ( !loc.ops->evalformake_h ) { ffc31170: 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 ); ffc31174: 90 01 00 1c stw r0,28(r1) if ( !loc.ops->evalformake_h ) { ffc31178: 80 09 00 04 lwz r0,4(r9) ffc3117c: 2f 80 00 00 cmpwi cr7,r0,0 ffc31180: 41 9e 00 d8 beq- cr7,ffc31258 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); ffc31184: 3b e1 00 0c addi r31,r1,12 ffc31188: 7c 09 03 a6 mtctr r0 ffc3118c: 7c 64 1a 14 add r3,r4,r3 ffc31190: 38 a1 00 08 addi r5,r1,8 ffc31194: 7f e4 fb 78 mr r4,r31 if ( result != 0 ) ffc31198: 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 ); ffc3119c: 4e 80 04 21 bctrl if ( result != 0 ) ffc311a0: 2f 83 00 00 cmpwi cr7,r3,0 ffc311a4: 40 9e 00 50 bne- cr7,ffc311f4 return -1; if ( !loc.ops->symlink_h ) { ffc311a8: 81 21 00 18 lwz r9,24(r1) ffc311ac: 80 09 00 38 lwz r0,56(r9) ffc311b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc311b4: 41 9e 00 d4 beq- cr7,ffc31288 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); ffc311b8: 7f a4 eb 78 mr r4,r29 ffc311bc: 80 a1 00 08 lwz r5,8(r1) ffc311c0: 7f e3 fb 78 mr r3,r31 ffc311c4: 7c 09 03 a6 mtctr r0 ffc311c8: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc311cc: 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); ffc311d0: 7c 7e 1b 78 mr r30,r3 rtems_filesystem_freenode( &loc ); ffc311d4: 2f 89 00 00 cmpwi cr7,r9,0 ffc311d8: 41 9e 00 1c beq- cr7,ffc311f4 ffc311dc: 80 09 00 1c lwz r0,28(r9) ffc311e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc311e4: 41 9e 00 10 beq- cr7,ffc311f4 ffc311e8: 7f e3 fb 78 mr r3,r31 ffc311ec: 7c 09 03 a6 mtctr r0 ffc311f0: 4e 80 04 21 bctrl return result; } ffc311f4: 80 01 00 3c lwz r0,60(r1) ffc311f8: 7f c3 f3 78 mr r3,r30 ffc311fc: 83 a1 00 2c lwz r29,44(r1) ffc31200: 7c 08 03 a6 mtlr r0 ffc31204: 83 c1 00 30 lwz r30,48(r1) ffc31208: 83 e1 00 34 lwz r31,52(r1) ffc3120c: 38 21 00 38 addi r1,r1,56 ffc31210: 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 ); ffc31214: 3d 20 00 00 lis r9,0 ffc31218: 81 29 35 2c lwz r9,13612(r9) ffc3121c: 38 60 00 00 li r3,0 ffc31220: 80 09 00 10 lwz r0,16(r9) ffc31224: 81 09 00 04 lwz r8,4(r9) ffc31228: 81 49 00 08 lwz r10,8(r9) ffc3122c: 81 69 00 0c lwz r11,12(r9) ffc31230: 90 01 00 18 stw r0,24(r1) ffc31234: 91 01 00 0c stw r8,12(r1) ffc31238: 91 41 00 10 stw r10,16(r1) ffc3123c: 91 61 00 14 stw r11,20(r1) ffc31240: 80 09 00 14 lwz r0,20(r9) if ( !loc.ops->evalformake_h ) { ffc31244: 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 ); ffc31248: 90 01 00 1c stw r0,28(r1) if ( !loc.ops->evalformake_h ) { ffc3124c: 80 09 00 04 lwz r0,4(r9) ffc31250: 2f 80 00 00 cmpwi cr7,r0,0 ffc31254: 40 9e ff 30 bne+ cr7,ffc31184 if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc31258: 48 01 d3 a9 bl ffc4e600 <__errno> <== NOT EXECUTED ffc3125c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc31260: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc31264: 3b c0 ff ff li r30,-1 <== NOT EXECUTED result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; } ffc31268: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc3126c: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc31270: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc31274: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc31278: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc3127c: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc31280: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc31284: 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 ); ffc31288: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc3128c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc31290: 41 be ff c8 beq- cr7,ffc31258 <== NOT EXECUTED ffc31294: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc31298: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc3129c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc312a0: 4b ff ff b8 b ffc31258 <== NOT EXECUTED ffc18810 : int fd, int opt, struct termios *tp ) { switch (opt) { ffc18810: 2c 04 00 00 cmpwi r4,0 int tcsetattr( int fd, int opt, struct termios *tp ) { ffc18814: 94 21 ff f0 stwu r1,-16(r1) ffc18818: 7c 08 02 a6 mflr r0 ffc1881c: 93 c1 00 08 stw r30,8(r1) ffc18820: 7c 7e 1b 78 mr r30,r3 ffc18824: 93 e1 00 0c stw r31,12(r1) ffc18828: 7c bf 2b 78 mr r31,r5 ffc1882c: 90 01 00 14 stw r0,20(r1) switch (opt) { ffc18830: 41 82 00 50 beq- ffc18880 ffc18834: 2f 84 00 01 cmpwi cr7,r4,1 <== NOT EXECUTED ffc18838: 41 9e 00 2c beq- cr7,ffc18864 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1883c: 48 00 68 95 bl ffc1f0d0 <__errno> <== NOT EXECUTED ffc18840: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc18844: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc18848: 38 60 ff ff li r3,-1 <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } ffc1884c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc18850: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc18854: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc18858: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc1885c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc18860: 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) ffc18864: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc18868: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc1886c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc18870: 48 00 4a 11 bl ffc1d280 <== NOT EXECUTED ffc18874: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc18878: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1887c: 41 9c 00 18 blt- cr7,ffc18894 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); ffc18880: 7f c3 f3 78 mr r3,r30 ffc18884: 7f e5 fb 78 mr r5,r31 ffc18888: 38 80 00 02 li r4,2 ffc1888c: 4c c6 31 82 crclr 4*cr1+eq ffc18890: 48 00 49 f1 bl ffc1d280 } } ffc18894: 80 01 00 14 lwz r0,20(r1) ffc18898: 83 c1 00 08 lwz r30,8(r1) ffc1889c: 7c 08 03 a6 mtlr r0 ffc188a0: 83 e1 00 0c lwz r31,12(r1) ffc188a4: 38 21 00 10 addi r1,r1,16 ffc188a8: 4e 80 00 20 blr ffc12ab4 : #include int unlink( const char *path ) { ffc12ab4: 94 21 ff b8 stwu r1,-72(r1) ffc12ab8: 7c 08 02 a6 mflr r0 ffc12abc: 93 c1 00 40 stw r30,64(r1) ffc12ac0: 93 e1 00 44 stw r31,68(r1) ffc12ac4: 7c 7f 1b 78 mr r31,r3 ffc12ac8: 90 01 00 4c stw r0,76(r1) ffc12acc: 93 81 00 38 stw r28,56(r1) ffc12ad0: 93 a1 00 3c stw r29,60(r1) /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); ffc12ad4: 4b ff 18 65 bl ffc04338 if ( parentpathlen == 0 ) ffc12ad8: 7c 7e 1b 79 mr. r30,r3 ffc12adc: 40 82 02 50 bne- ffc12d2c rtems_filesystem_get_start_loc( path, &i, &parentloc ); ffc12ae0: 88 1f 00 00 lbz r0,0(r31) ffc12ae4: 2f 80 00 2f cmpwi cr7,r0,47 ffc12ae8: 41 9e 00 14 beq- cr7,ffc12afc ffc12aec: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc12af0: 41 9e 00 0c beq- cr7,ffc12afc <== NOT EXECUTED ffc12af4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc12af8: 40 9e 01 68 bne- cr7,ffc12c60 <== NOT EXECUTED ffc12afc: 3d 20 00 00 lis r9,0 ffc12b00: 81 29 26 dc lwz r9,9948(r9) ffc12b04: 3b a0 00 00 li r29,0 ffc12b08: 80 09 00 24 lwz r0,36(r9) ffc12b0c: 81 09 00 18 lwz r8,24(r9) ffc12b10: 81 49 00 1c lwz r10,28(r9) ffc12b14: 81 69 00 20 lwz r11,32(r9) ffc12b18: 91 01 00 08 stw r8,8(r1) ffc12b1c: 91 41 00 0c stw r10,12(r1) ffc12b20: 91 61 00 10 stw r11,16(r1) ffc12b24: 90 01 00 14 stw r0,20(r1) ffc12b28: 80 09 00 28 lwz r0,40(r9) ffc12b2c: 90 01 00 18 stw r0,24(r1) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc12b30: 80 01 00 08 lwz r0,8(r1) name = path + parentpathlen; ffc12b34: 7f df f2 14 add r30,r31,r30 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc12b38: 7f c3 f3 78 mr r3,r30 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc12b3c: 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 ), ffc12b40: 3b e1 00 1c addi r31,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc12b44: 80 01 00 0c lwz r0,12(r1) ffc12b48: 90 01 00 20 stw r0,32(r1) ffc12b4c: 80 01 00 10 lwz r0,16(r1) ffc12b50: 90 01 00 24 stw r0,36(r1) ffc12b54: 80 01 00 14 lwz r0,20(r1) ffc12b58: 90 01 00 28 stw r0,40(r1) ffc12b5c: 80 01 00 18 lwz r0,24(r1) ffc12b60: 90 01 00 2c stw r0,44(r1) name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc12b64: 48 00 1c b9 bl ffc1481c ffc12b68: 7c 64 1b 78 mr r4,r3 ffc12b6c: 7f c3 f3 78 mr r3,r30 ffc12b70: 4b ff 17 79 bl ffc042e8 ffc12b74: 7f de 1a 14 add r30,r30,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc12b78: 7f c3 f3 78 mr r3,r30 ffc12b7c: 48 00 1c a1 bl ffc1481c ffc12b80: 38 a0 00 00 li r5,0 ffc12b84: 7c 64 1b 78 mr r4,r3 ffc12b88: 7f e6 fb 78 mr r6,r31 ffc12b8c: 7f c3 f3 78 mr r3,r30 ffc12b90: 38 e0 00 00 li r7,0 ffc12b94: 4b ff 18 31 bl ffc043c4 0, &loc, false ); if ( result != 0 ) { ffc12b98: 2f 83 00 00 cmpwi cr7,r3,0 ffc12b9c: 40 9e 00 fc bne- cr7,ffc12c98 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { ffc12ba0: 81 21 00 28 lwz r9,40(r1) ffc12ba4: 80 09 00 10 lwz r0,16(r9) ffc12ba8: 2f 80 00 00 cmpwi cr7,r0,0 ffc12bac: 41 9e 01 28 beq- cr7,ffc12cd4 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 ) { ffc12bb0: 7f e3 fb 78 mr r3,r31 ffc12bb4: 7c 09 03 a6 mtctr r0 ffc12bb8: 4e 80 04 21 bctrl ffc12bbc: 2f 83 00 01 cmpwi cr7,r3,1 ffc12bc0: 41 9e 01 94 beq- cr7,ffc12d54 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { ffc12bc4: 81 21 00 28 lwz r9,40(r1) ffc12bc8: 80 09 00 0c lwz r0,12(r9) ffc12bcc: 2f 80 00 00 cmpwi cr7,r0,0 ffc12bd0: 41 9e 01 04 beq- cr7,ffc12cd4 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); ffc12bd4: 3b c1 00 08 addi r30,r1,8 ffc12bd8: 7c 09 03 a6 mtctr r0 ffc12bdc: 7f c3 f3 78 mr r3,r30 ffc12be0: 7f e4 fb 78 mr r4,r31 ffc12be4: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc12be8: 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 ); ffc12bec: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc12bf0: 2f 89 00 00 cmpwi cr7,r9,0 ffc12bf4: 41 9e 00 1c beq- cr7,ffc12c10 ffc12bf8: 80 09 00 1c lwz r0,28(r9) ffc12bfc: 2f 80 00 00 cmpwi cr7,r0,0 ffc12c00: 41 9e 00 10 beq- cr7,ffc12c10 ffc12c04: 7f e3 fb 78 mr r3,r31 ffc12c08: 7c 09 03 a6 mtctr r0 ffc12c0c: 4e 80 04 21 bctrl if ( free_parentloc ) ffc12c10: 2f 9d 00 00 cmpwi cr7,r29,0 ffc12c14: 41 9e 00 28 beq- cr7,ffc12c3c rtems_filesystem_freenode( &parentloc ); ffc12c18: 81 21 00 14 lwz r9,20(r1) ffc12c1c: 2f 89 00 00 cmpwi cr7,r9,0 ffc12c20: 41 9e 00 1c beq- cr7,ffc12c3c ffc12c24: 80 09 00 1c lwz r0,28(r9) ffc12c28: 2f 80 00 00 cmpwi cr7,r0,0 ffc12c2c: 41 9e 00 10 beq- cr7,ffc12c3c ffc12c30: 7f c3 f3 78 mr r3,r30 ffc12c34: 7c 09 03 a6 mtctr r0 ffc12c38: 4e 80 04 21 bctrl return result; } ffc12c3c: 80 01 00 4c lwz r0,76(r1) ffc12c40: 7f 83 e3 78 mr r3,r28 ffc12c44: 83 a1 00 3c lwz r29,60(r1) ffc12c48: 7c 08 03 a6 mtlr r0 ffc12c4c: 83 81 00 38 lwz r28,56(r1) ffc12c50: 83 c1 00 40 lwz r30,64(r1) ffc12c54: 83 e1 00 44 lwz r31,68(r1) ffc12c58: 38 21 00 48 addi r1,r1,72 ffc12c5c: 4e 80 00 20 blr */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); ffc12c60: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc12c64: 81 29 26 dc lwz r9,9948(r9) <== NOT EXECUTED ffc12c68: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc12c6c: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc12c70: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc12c74: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc12c78: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc12c7c: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc12c80: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc12c84: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc12c88: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc12c8c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc12c90: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED ffc12c94: 4b ff fe 9c b ffc12b30 <== NOT EXECUTED 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 ) ffc12c98: 2f 9d 00 00 cmpwi cr7,r29,0 ffc12c9c: 40 9e 00 0c bne- cr7,ffc12ca8 result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); ffc12ca0: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc12ca4: 4b ff ff 98 b ffc12c3c <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); ffc12ca8: 81 21 00 14 lwz r9,20(r1) ffc12cac: 2f 89 00 00 cmpwi cr7,r9,0 ffc12cb0: 41 9e ff f0 beq+ cr7,ffc12ca0 ffc12cb4: 80 09 00 1c lwz r0,28(r9) ffc12cb8: 2f 80 00 00 cmpwi cr7,r0,0 ffc12cbc: 41 9e ff e4 beq+ cr7,ffc12ca0 ffc12cc0: 38 61 00 08 addi r3,r1,8 ffc12cc4: 7c 09 03 a6 mtctr r0 ffc12cc8: 3b 80 ff ff li r28,-1 ffc12ccc: 4e 80 04 21 bctrl ffc12cd0: 4b ff ff 6c b ffc12c3c rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); ffc12cd4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc12cd8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc12cdc: 41 9e 00 10 beq- cr7,ffc12cec <== NOT EXECUTED ffc12ce0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc12ce4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc12ce8: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc12cec: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc12cf0: 41 9e 00 28 beq- cr7,ffc12d18 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc12cf4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc12cf8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc12cfc: 41 9e 00 1c beq- cr7,ffc12d18 <== NOT EXECUTED ffc12d00: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc12d04: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc12d08: 41 9e 00 10 beq- cr7,ffc12d18 <== NOT EXECUTED ffc12d0c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc12d10: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc12d14: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc12d18: 48 00 08 09 bl ffc13520 <__errno> <== NOT EXECUTED ffc12d1c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc12d20: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc12d24: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc12d28: 4b ff ff 14 b ffc12c3c <== 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, ffc12d2c: 7f e3 fb 78 mr r3,r31 ffc12d30: 7f c4 f3 78 mr r4,r30 ffc12d34: 38 a0 00 02 li r5,2 ffc12d38: 38 c1 00 08 addi r6,r1,8 ffc12d3c: 38 e0 00 00 li r7,0 ffc12d40: 4b ff 17 ad bl ffc044ec RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc12d44: 2f 83 00 00 cmpwi cr7,r3,0 ffc12d48: 40 be ff 58 bne- cr7,ffc12ca0 ffc12d4c: 3b a0 00 01 li r29,1 ffc12d50: 4b ff fd e0 b ffc12b30 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 ); ffc12d54: 81 21 00 28 lwz r9,40(r1) ffc12d58: 2f 89 00 00 cmpwi cr7,r9,0 ffc12d5c: 41 9e 00 1c beq- cr7,ffc12d78 ffc12d60: 80 09 00 1c lwz r0,28(r9) ffc12d64: 2f 80 00 00 cmpwi cr7,r0,0 ffc12d68: 41 9e 00 10 beq- cr7,ffc12d78 ffc12d6c: 7f e3 fb 78 mr r3,r31 ffc12d70: 7c 09 03 a6 mtctr r0 ffc12d74: 4e 80 04 21 bctrl if ( free_parentloc ) ffc12d78: 2f 9d 00 00 cmpwi cr7,r29,0 ffc12d7c: 41 9e 00 28 beq- cr7,ffc12da4 rtems_filesystem_freenode( &parentloc ); ffc12d80: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc12d84: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc12d88: 41 9e 00 1c beq- cr7,ffc12da4 <== NOT EXECUTED ffc12d8c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc12d90: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc12d94: 41 9e 00 10 beq- cr7,ffc12da4 <== NOT EXECUTED ffc12d98: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc12d9c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc12da0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); ffc12da4: 48 00 07 7d bl ffc13520 <__errno> ffc12da8: 38 00 00 15 li r0,21 ffc12dac: 90 03 00 00 stw r0,0(r3) ffc12db0: 3b 80 ff ff li r28,-1 ffc12db4: 4b ff fe 88 b ffc12c3c ffc0d41c : */ int unmount( const char *path ) { ffc0d41c: 94 21 ff d0 stwu r1,-48(r1) ffc0d420: 7c 08 02 a6 mflr r0 ffc0d424: 93 c1 00 28 stw r30,40(r1) ffc0d428: 7c 7e 1b 78 mr r30,r3 ffc0d42c: 90 01 00 34 stw r0,52(r1) ffc0d430: 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 ) ) ffc0d434: 48 04 8f a1 bl ffc563d4 ffc0d438: 3b e1 00 08 addi r31,r1,8 ffc0d43c: 7c 64 1b 78 mr r4,r3 ffc0d440: 38 a0 00 00 li r5,0 ffc0d444: 7f c3 f3 78 mr r3,r30 ffc0d448: 7f e6 fb 78 mr r6,r31 ffc0d44c: 38 e0 00 01 li r7,1 ffc0d450: 4b ff ba 31 bl ffc08e80 ffc0d454: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d458: 40 9e 00 e0 bne- cr7,ffc0d538 return -1; mt_entry = loc.mt_entry; ffc0d45c: 83 c1 00 18 lwz r30,24(r1) fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; ffc0d460: 80 01 00 08 lwz r0,8(r1) ffc0d464: 81 3e 00 1c lwz r9,28(r30) ffc0d468: 7f 89 00 00 cmpw cr7,r9,r0 ffc0d46c: 40 9e 01 7c bne- cr7,ffc0d5e8 /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); ffc0d470: 81 21 00 14 lwz r9,20(r1) ffc0d474: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d478: 41 9e 00 1c beq- cr7,ffc0d494 ffc0d47c: 80 09 00 1c lwz r0,28(r9) ffc0d480: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d484: 41 9e 00 10 beq- cr7,ffc0d494 ffc0d488: 7f e3 fb 78 mr r3,r31 ffc0d48c: 7c 09 03 a6 mtctr r0 ffc0d490: 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; ffc0d494: 81 3e 00 14 lwz r9,20(r30) ffc0d498: 80 09 00 28 lwz r0,40(r9) ffc0d49c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d4a0: 41 9e 01 b8 beq- cr7,ffc0d658 fs_root_loc = &mt_entry->mt_fs_root; ffc0d4a4: 81 3e 00 28 lwz r9,40(r30) ffc0d4a8: 80 09 00 2c lwz r0,44(r9) ffc0d4ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d4b0: 41 9e 01 a8 beq- cr7,ffc0d658 * 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 ) ffc0d4b4: 3d 20 00 00 lis r9,0 ffc0d4b8: 81 29 35 2c lwz r9,13612(r9) ffc0d4bc: 80 09 00 14 lwz r0,20(r9) ffc0d4c0: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0d4c4: 41 9e 00 90 beq- cr7,ffc0d554 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0d4c8: 3d 60 00 00 lis r11,0 ffc0d4cc: 81 2b 63 d0 lwz r9,25552(r11) ffc0d4d0: 39 6b 63 d0 addi r11,r11,25552 ffc0d4d4: 39 6b 00 04 addi r11,r11,4 ffc0d4d8: 7f 89 58 00 cmpw cr7,r9,r11 ffc0d4dc: 41 9e 00 30 beq- cr7,ffc0d50c !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 ) { ffc0d4e0: 81 5e 00 2c lwz r10,44(r30) ffc0d4e4: 80 09 00 18 lwz r0,24(r9) ffc0d4e8: 7f 80 50 00 cmpw cr7,r0,r10 ffc0d4ec: 40 be 00 14 bne+ cr7,ffc0d500 ffc0d4f0: 48 00 00 64 b ffc0d554 <== NOT EXECUTED ffc0d4f4: 80 09 00 18 lwz r0,24(r9) ffc0d4f8: 7f 8a 00 00 cmpw cr7,r10,r0 ffc0d4fc: 41 9e 00 58 beq- cr7,ffc0d554 * 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 ) { ffc0d500: 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; ffc0d504: 7f 89 58 00 cmpw cr7,r9,r11 ffc0d508: 40 9e ff ec bne+ cr7,ffc0d4f4 * 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 ) ffc0d50c: 7f c3 f3 78 mr r3,r30 ffc0d510: 4b ff bd f5 bl ffc09304 ffc0d514: 2f 83 00 01 cmpwi cr7,r3,1 ffc0d518: 41 9e 00 3c beq- cr7,ffc0d554 * 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 ) ffc0d51c: 81 3e 00 14 lwz r9,20(r30) ffc0d520: 7f c3 f3 78 mr r3,r30 ffc0d524: 80 09 00 28 lwz r0,40(r9) ffc0d528: 7c 09 03 a6 mtctr r0 ffc0d52c: 4e 80 04 21 bctrl ffc0d530: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d534: 41 9e 00 48 beq- cr7,ffc0d57c */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; ffc0d538: 38 60 ff ff li r3,-1 } ffc0d53c: 80 01 00 34 lwz r0,52(r1) ffc0d540: 83 c1 00 28 lwz r30,40(r1) ffc0d544: 7c 08 03 a6 mtlr r0 ffc0d548: 83 e1 00 2c lwz r31,44(r1) ffc0d54c: 38 21 00 30 addi r1,r1,48 ffc0d550: 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 ); ffc0d554: 48 04 10 ad bl ffc4e600 <__errno> ffc0d558: 38 00 00 10 li r0,16 ffc0d55c: 90 03 00 00 stw r0,0(r3) ffc0d560: 38 60 ff ff li r3,-1 rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } ffc0d564: 80 01 00 34 lwz r0,52(r1) ffc0d568: 83 c1 00 28 lwz r30,40(r1) ffc0d56c: 7c 08 03 a6 mtlr r0 ffc0d570: 83 e1 00 2c lwz r31,44(r1) ffc0d574: 38 21 00 30 addi r1,r1,48 ffc0d578: 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){ ffc0d57c: 81 3e 00 28 lwz r9,40(r30) ffc0d580: 7f c3 f3 78 mr r3,r30 ffc0d584: 80 09 00 2c lwz r0,44(r9) ffc0d588: 7c 09 03 a6 mtctr r0 ffc0d58c: 4e 80 04 21 bctrl ffc0d590: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d594: 40 9e 00 a0 bne- cr7,ffc0d634 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0d598: 7f c3 f3 78 mr r3,r30 ffc0d59c: 48 00 1f 1d bl ffc0f4b8 <_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 ); ffc0d5a0: 81 3e 00 14 lwz r9,20(r30) ffc0d5a4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d5a8: 41 9e 00 1c beq- cr7,ffc0d5c4 ffc0d5ac: 80 09 00 1c lwz r0,28(r9) ffc0d5b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d5b4: 41 9e 00 10 beq- cr7,ffc0d5c4 ffc0d5b8: 38 7e 00 08 addi r3,r30,8 ffc0d5bc: 7c 09 03 a6 mtctr r0 ffc0d5c0: 4e 80 04 21 bctrl free( mt_entry ); ffc0d5c4: 7f c3 f3 78 mr r3,r30 ffc0d5c8: 4b ff b9 c1 bl ffc08f88 return 0; } ffc0d5cc: 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 ); ffc0d5d0: 38 60 00 00 li r3,0 return 0; } ffc0d5d4: 83 c1 00 28 lwz r30,40(r1) ffc0d5d8: 7c 08 03 a6 mtlr r0 ffc0d5dc: 83 e1 00 2c lwz r31,44(r1) ffc0d5e0: 38 21 00 30 addi r1,r1,48 ffc0d5e4: 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 ); ffc0d5e8: 81 21 00 14 lwz r9,20(r1) ffc0d5ec: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d5f0: 41 9e 00 1c beq- cr7,ffc0d60c ffc0d5f4: 80 09 00 1c lwz r0,28(r9) ffc0d5f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d5fc: 41 9e 00 10 beq- cr7,ffc0d60c ffc0d600: 7f e3 fb 78 mr r3,r31 ffc0d604: 7c 09 03 a6 mtctr r0 ffc0d608: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EACCES ); ffc0d60c: 48 04 0f f5 bl ffc4e600 <__errno> ffc0d610: 38 00 00 0d li r0,13 ffc0d614: 90 03 00 00 stw r0,0(r3) ffc0d618: 38 60 ff ff li r3,-1 rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } ffc0d61c: 80 01 00 34 lwz r0,52(r1) ffc0d620: 83 c1 00 28 lwz r30,40(r1) ffc0d624: 7c 08 03 a6 mtlr r0 ffc0d628: 83 e1 00 2c lwz r31,44(r1) ffc0d62c: 38 21 00 30 addi r1,r1,48 ffc0d630: 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 ) ffc0d634: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED ffc0d638: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0d63c: 80 09 00 20 lwz r0,32(r9) <== NOT EXECUTED ffc0d640: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0d644: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0d648: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0d64c: 41 9e fe ec beq+ cr7,ffc0d538 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); ffc0d650: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0d654: 48 00 19 7d bl ffc0efd0 <== 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 ); ffc0d658: 48 04 0f a9 bl ffc4e600 <__errno> <== NOT EXECUTED ffc0d65c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0d660: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0d664: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0d668: 4b ff fe d4 b ffc0d53c <== NOT EXECUTED ffc313b0 : int utime( const char *path, const struct utimbuf *times ) { ffc313b0: 94 21 ff c8 stwu r1,-56(r1) ffc313b4: 7c 08 02 a6 mflr r0 ffc313b8: 93 a1 00 2c stw r29,44(r1) ffc313bc: 7c 7d 1b 78 mr r29,r3 ffc313c0: 90 01 00 3c stw r0,60(r1) ffc313c4: 93 c1 00 30 stw r30,48(r1) ffc313c8: 7c 9e 23 78 mr r30,r4 ffc313cc: 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 ) ) ffc313d0: 48 02 50 05 bl ffc563d4 ffc313d4: 3b e1 00 08 addi r31,r1,8 ffc313d8: 7c 64 1b 78 mr r4,r3 ffc313dc: 38 a0 00 00 li r5,0 ffc313e0: 7f a3 eb 78 mr r3,r29 ffc313e4: 7f e6 fb 78 mr r6,r31 ffc313e8: 38 e0 00 01 li r7,1 ffc313ec: 4b fd 7a 95 bl ffc08e80 ffc313f0: 3b a0 ff ff li r29,-1 ffc313f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc313f8: 40 9e 00 50 bne- cr7,ffc31448 return -1; if ( !temp_loc.ops->utime_h ){ ffc313fc: 81 21 00 14 lwz r9,20(r1) ffc31400: 80 09 00 30 lwz r0,48(r9) ffc31404: 2f 80 00 00 cmpwi cr7,r0,0 ffc31408: 41 9e 00 60 beq- cr7,ffc31468 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 ); ffc3140c: 80 be 00 04 lwz r5,4(r30) ffc31410: 7f e3 fb 78 mr r3,r31 ffc31414: 80 9e 00 00 lwz r4,0(r30) ffc31418: 7c 09 03 a6 mtctr r0 ffc3141c: 4e 80 04 21 bctrl rtems_filesystem_freenode( &temp_loc ); ffc31420: 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 ); ffc31424: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &temp_loc ); ffc31428: 2f 89 00 00 cmpwi cr7,r9,0 ffc3142c: 41 9e 00 1c beq- cr7,ffc31448 ffc31430: 80 09 00 1c lwz r0,28(r9) ffc31434: 2f 80 00 00 cmpwi cr7,r0,0 ffc31438: 41 9e 00 10 beq- cr7,ffc31448 ffc3143c: 7f e3 fb 78 mr r3,r31 ffc31440: 7c 09 03 a6 mtctr r0 ffc31444: 4e 80 04 21 bctrl return result; } ffc31448: 80 01 00 3c lwz r0,60(r1) ffc3144c: 7f a3 eb 78 mr r3,r29 ffc31450: 83 c1 00 30 lwz r30,48(r1) ffc31454: 7c 08 03 a6 mtlr r0 ffc31458: 83 a1 00 2c lwz r29,44(r1) ffc3145c: 83 e1 00 34 lwz r31,52(r1) ffc31460: 38 21 00 38 addi r1,r1,56 ffc31464: 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 ); ffc31468: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc3146c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc31470: 41 9e 00 10 beq- cr7,ffc31480 <== NOT EXECUTED ffc31474: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc31478: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc3147c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc31480: 48 01 d1 81 bl ffc4e600 <__errno> <== NOT EXECUTED ffc31484: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc31488: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc3148c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc31490: 4b ff ff b8 b ffc31448 <== NOT EXECUTED ffc07a58 : */ 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 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 d4 addi r28,r28,9940 ffc07ab8: 3b 5a f9 4c addi r26,r26,-1716 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { ffc07abc: 3a d6 ef 14 addi r22,r22,-4332 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 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 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 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 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 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 lflag = true; c = *++fmt; } if ( c == 'c' ) { ffc07b24: 2f 83 00 63 cmpwi cr7,r3,99 ffc07b28: 41 9e 01 dc beq- cr7,ffc07d04 /* 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 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 ffc07b3c: 2f 83 00 4f cmpwi cr7,r3,79 ffc07b40: 41 9e 02 10 beq- cr7,ffc07d50 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 ffc07b4c: 2f 83 00 49 cmpwi cr7,r3,73 ffc07b50: 41 9e 00 9c beq- cr7,ffc07bec ffc07b54: 2f 83 00 64 cmpwi cr7,r3,100 ffc07b58: 41 9e 00 94 beq- cr7,ffc07bec ffc07b5c: 2f 83 00 44 cmpwi cr7,r3,68 ffc07b60: 41 9e 00 8c beq- cr7,ffc07bec 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 ffc07b6c: 2f 83 00 55 cmpwi cr7,r3,85 ffc07b70: 41 9e 03 58 beq- cr7,ffc07ec8 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 ffc07b7c: 2f 83 00 58 cmpwi cr7,r3,88 ffc07b80: 41 9e 03 54 beq- cr7,ffc07ed4 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 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 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 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 ffc07c20: 2f 9b 00 00 cmpwi cr7,r27,0 ffc07c24: 41 9c 02 80 blt- cr7,ffc07ea4 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 ffc07c44: 48 00 00 34 b ffc07c78 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 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 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 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 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 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 ffc07ce8: 4b ff fe c4 b ffc07bac <== 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 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 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 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 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 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 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 } 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 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 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 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 ; /* leading spaces */ if ( !minus ) ffc07da8: 2e 09 00 00 cmpwi cr4,r9,0 ffc07dac: 40 92 00 2c bne- cr4,ffc07dd8 for ( i=len ; i 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 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 width = len; } /* output the string */ for ( i=0 ; i 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 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 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 BSP_output_char(*str); /* trailing spaces */ if ( minus ) ffc07e28: 41 b2 fd 78 beq- cr4,ffc07ba0 for ( i=len ; i BSP_output_char(' '); ffc07e34: 80 1c 00 00 lwz r0,0(r28) ffc07e38: 38 60 00 20 li r3,32 for ( i=0 ; i BSP_output_char(' '); ffc07e50: 80 1c 00 00 lwz r0,0(r28) ffc07e54: 38 60 00 20 li r3,32 for ( i=0 ; i ffc07e6c: 4b ff fd 34 b ffc07ba0 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 <== 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 <== NOT EXECUTED ffc07e9c: 7e db b3 78 mr r27,r22 ffc07ea0: 4b ff fe e8 b ffc07d88 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 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 ffc07ed4: 39 20 00 00 li r9,0 ffc07ed8: 3b a0 00 10 li r29,16 ffc07edc: 4b ff fd 18 b ffc07bf4 ffc1e66c : ssize_t write( int fd, const void *buffer, size_t count ) { ffc1e66c: 94 21 ff f0 stwu r1,-16(r1) ffc1e670: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e674: 3d 20 00 00 lis r9,0 ssize_t write( int fd, const void *buffer, size_t count ) { ffc1e678: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e67c: 80 09 26 8c lwz r0,9868(r9) ssize_t write( int fd, const void *buffer, size_t count ) { ffc1e680: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e684: 7f 83 00 40 cmplw cr7,r3,r0 ffc1e688: 40 9c 00 94 bge- cr7,ffc1e71c iop = rtems_libio_iop( fd ); ffc1e68c: 3d 60 00 00 lis r11,0 ffc1e690: 83 eb 27 4c lwz r31,10060(r11) ffc1e694: 1c 63 00 48 mulli r3,r3,72 ffc1e698: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1e69c: 81 7f 00 18 lwz r11,24(r31) ffc1e6a0: 71 6a 01 00 andi. r10,r11,256 ffc1e6a4: 41 82 00 78 beq- ffc1e71c rtems_libio_check_buffer( buffer ); ffc1e6a8: 2f 84 00 00 cmpwi cr7,r4,0 ffc1e6ac: 41 9e 00 84 beq- cr7,ffc1e730 rtems_libio_check_count( count ); ffc1e6b0: 2f 85 00 00 cmpwi cr7,r5,0 ffc1e6b4: 38 60 00 00 li r3,0 ffc1e6b8: 41 9e 00 50 beq- cr7,ffc1e708 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc1e6bc: 71 60 00 04 andi. r0,r11,4 ffc1e6c0: 41 82 00 70 beq- ffc1e730 /* * Now process the write() request. */ if ( !iop->handlers->write_h ) ffc1e6c4: 81 3f 00 40 lwz r9,64(r31) ffc1e6c8: 80 09 00 0c lwz r0,12(r9) ffc1e6cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e6d0: 41 9e 00 74 beq- cr7,ffc1e744 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); ffc1e6d4: 7f e3 fb 78 mr r3,r31 ffc1e6d8: 7c 09 03 a6 mtctr r0 ffc1e6dc: 4e 80 04 21 bctrl if ( rc > 0 ) ffc1e6e0: 2c 03 00 00 cmpwi r3,0 ffc1e6e4: 40 81 00 24 ble- ffc1e708 iop->offset += rc; ffc1e6e8: 80 ff 00 10 lwz r7,16(r31) ffc1e6ec: 7c 6a 1b 78 mr r10,r3 ffc1e6f0: 81 1f 00 14 lwz r8,20(r31) ffc1e6f4: 7c 69 fe 70 srawi r9,r3,31 ffc1e6f8: 7d 88 50 14 addc r12,r8,r10 ffc1e6fc: 7d 67 49 14 adde r11,r7,r9 ffc1e700: 91 7f 00 10 stw r11,16(r31) ffc1e704: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1e708: 80 01 00 14 lwz r0,20(r1) ffc1e70c: 83 e1 00 0c lwz r31,12(r1) ffc1e710: 38 21 00 10 addi r1,r1,16 ffc1e714: 7c 08 03 a6 mtlr r0 ffc1e718: 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 ); ffc1e71c: 4b ff 4e 05 bl ffc13520 <__errno> <== NOT EXECUTED ffc1e720: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1e724: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e728: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e72c: 4b ff ff dc b ffc1e708 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc1e730: 4b ff 4d f1 bl ffc13520 <__errno> <== NOT EXECUTED ffc1e734: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1e738: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e73c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e740: 4b ff ff c8 b ffc1e708 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1e744: 4b ff 4d dd bl ffc13520 <__errno> <== NOT EXECUTED ffc1e748: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1e74c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e750: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e754: 4b ff ff b4 b ffc1e708 <== NOT EXECUTED ffc099c8 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc099c8: 94 21 ff d8 stwu r1,-40(r1) ffc099cc: 7c 08 02 a6 mflr r0 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc099d0: 3d 20 00 00 lis r9,0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc099d4: 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 ); ffc099d8: 80 09 26 8c lwz r0,9868(r9) ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc099dc: 93 a1 00 1c stw r29,28(r1) ffc099e0: 7c bd 2b 78 mr r29,r5 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc099e4: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc099e8: 93 21 00 0c stw r25,12(r1) ffc099ec: 93 41 00 10 stw r26,16(r1) ffc099f0: 93 61 00 14 stw r27,20(r1) ffc099f4: 93 81 00 18 stw r28,24(r1) ffc099f8: 93 c1 00 20 stw r30,32(r1) ffc099fc: 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 ); ffc09a00: 40 9c 01 78 bge- cr7,ffc09b78 iop = rtems_libio_iop( fd ); ffc09a04: 3d 20 00 00 lis r9,0 ffc09a08: 83 89 27 50 lwz r28,10064(r9) ffc09a0c: 1c 63 00 48 mulli r3,r3,72 ffc09a10: 7f 9c 1a 14 add r28,r28,r3 rtems_libio_check_is_open( iop ); ffc09a14: 80 1c 00 18 lwz r0,24(r28) ffc09a18: 70 09 01 00 andi. r9,r0,256 ffc09a1c: 41 82 01 5c beq- ffc09b78 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc09a20: 70 09 00 04 andi. r9,r0,4 ffc09a24: 41 82 01 14 beq- ffc09b38 /* * Argument validation on IO vector */ if ( !iov ) ffc09a28: 2f 84 00 00 cmpwi cr7,r4,0 ffc09a2c: 41 9e 01 0c beq- cr7,ffc09b38 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc09a30: 2f 85 00 00 cmpwi cr7,r5,0 ffc09a34: 40 9d 01 04 ble- cr7,ffc09b38 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc09a38: 2f 85 04 00 cmpwi cr7,r5,1024 ffc09a3c: 41 9d 00 fc bgt- cr7,ffc09b38 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) ffc09a40: 81 3c 00 40 lwz r9,64(r28) ffc09a44: 80 09 00 0c lwz r0,12(r9) ffc09a48: 2f 80 00 00 cmpwi cr7,r0,0 ffc09a4c: 41 9e 01 40 beq- cr7,ffc09b8c rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc09a50: 7c 9f 23 78 mr r31,r4 ffc09a54: 7c a9 03 a6 mtctr r5 ffc09a58: 7c 89 23 78 mr r9,r4 ffc09a5c: 39 00 00 01 li r8,1 ffc09a60: 39 60 00 00 li r11,0 ffc09a64: 48 00 00 08 b ffc09a6c * 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++ ) { ffc09a68: 7c 0b 03 78 mr r11,r0 if ( !iov[v].iov_base ) ffc09a6c: 80 09 00 00 lwz r0,0(r9) ffc09a70: 2f 80 00 00 cmpwi cr7,r0,0 ffc09a74: 41 9e 00 c4 beq- cr7,ffc09b38 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 ) ffc09a78: 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++ ) { ffc09a7c: 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; ffc09a80: 7c 0b 52 14 add r0,r11,r10 if ( total < old || total > SSIZE_MAX ) ffc09a84: 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 ) ffc09a88: 31 4a ff ff addic r10,r10,-1 ffc09a8c: 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 ) ffc09a90: 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 ) ffc09a94: 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 ) ffc09a98: 41 9d 00 a0 bgt- cr7,ffc09b38 ffc09a9c: 41 99 00 9c bgt- cr6,ffc09b38 * 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++ ) { ffc09aa0: 42 00 ff c8 bdnz+ ffc09a68 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { ffc09aa4: 2f 88 00 00 cmpwi cr7,r8,0 <== NOT EXECUTED ffc09aa8: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc09aac: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc09ab0: 40 9e 00 98 bne- cr7,ffc09b48 <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc09ab4: 80 bf 00 04 lwz r5,4(r31) <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc09ab8: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc09abc: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc09ac0: 40 9e 00 20 bne- cr7,ffc09ae0 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc09ac4: 7f 9d f0 00 cmpw cr7,r29,r30 <== NOT EXECUTED ffc09ac8: 3b ff 00 08 addi r31,r31,8 <== NOT EXECUTED ffc09acc: 40 9d 00 7c ble- cr7,ffc09b48 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc09ad0: 80 bf 00 04 lwz r5,4(r31) <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc09ad4: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc09ad8: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc09adc: 41 9e ff e8 beq+ cr7,ffc09ac4 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc09ae0: 81 3c 00 40 lwz r9,64(r28) <== NOT EXECUTED ffc09ae4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc09ae8: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc09aec: 80 09 00 0c lwz r0,12(r9) <== NOT EXECUTED ffc09af0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc09af4: 4e 80 04 21 bctrl <== NOT EXECUTED if ( bytes < 0 ) ffc09af8: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc09afc: 41 80 00 a4 blt- ffc09ba0 <== NOT EXECUTED return -1; if ( bytes > 0 ) { ffc09b00: 41 82 00 28 beq- ffc09b28 <== NOT EXECUTED iop->offset += bytes; ffc09b04: 81 7c 00 10 lwz r11,16(r28) <== NOT EXECUTED ffc09b08: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED ffc09b0c: 81 9c 00 14 lwz r12,20(r28) <== NOT EXECUTED ffc09b10: 7c 79 fe 70 srawi r25,r3,31 <== NOT EXECUTED total += bytes; ffc09b14: 7f 7b 1a 14 add r27,r27,r3 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc09b18: 7d 4c d0 14 addc r10,r12,r26 <== NOT EXECUTED ffc09b1c: 7d 2b c9 14 adde r9,r11,r25 <== NOT EXECUTED ffc09b20: 91 3c 00 10 stw r9,16(r28) <== NOT EXECUTED ffc09b24: 91 5c 00 14 stw r10,20(r28) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) ffc09b28: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc09b2c: 7f 83 00 00 cmpw cr7,r3,r0 <== NOT EXECUTED ffc09b30: 41 9e ff 94 beq+ cr7,ffc09ac4 <== NOT EXECUTED ffc09b34: 48 00 00 14 b ffc09b48 <== 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 ); ffc09b38: 48 00 c9 c9 bl ffc16500 <__errno> ffc09b3c: 38 00 00 16 li r0,22 ffc09b40: 90 03 00 00 stw r0,0(r3) ffc09b44: 3b 60 ff ff li r27,-1 if (bytes != iov[ v ].iov_len) break; } return total; } ffc09b48: 80 01 00 2c lwz r0,44(r1) ffc09b4c: 7f 63 db 78 mr r3,r27 ffc09b50: 83 21 00 0c lwz r25,12(r1) ffc09b54: 7c 08 03 a6 mtlr r0 ffc09b58: 83 41 00 10 lwz r26,16(r1) ffc09b5c: 83 61 00 14 lwz r27,20(r1) ffc09b60: 83 81 00 18 lwz r28,24(r1) ffc09b64: 83 a1 00 1c lwz r29,28(r1) ffc09b68: 83 c1 00 20 lwz r30,32(r1) ffc09b6c: 83 e1 00 24 lwz r31,36(r1) ffc09b70: 38 21 00 28 addi r1,r1,40 ffc09b74: 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 ); ffc09b78: 48 00 c9 89 bl ffc16500 <__errno> ffc09b7c: 38 00 00 09 li r0,9 ffc09b80: 90 03 00 00 stw r0,0(r3) ffc09b84: 3b 60 ff ff li r27,-1 ffc09b88: 4b ff ff c0 b ffc09b48 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 ); ffc09b8c: 48 00 c9 75 bl ffc16500 <__errno> <== NOT EXECUTED ffc09b90: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc09b94: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc09b98: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc09b9c: 4b ff ff ac b ffc09b48 <== 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 ) ffc09ba0: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc09ba4: 4b ff ff a4 b ffc09b48 <== NOT EXECUTED