ffc0f420 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0f420: 94 21 ff e8 stwu r1,-24(r1) ffc0f424: 7c 08 02 a6 mflr r0 ffc0f428: 93 e1 00 14 stw r31,20(r1) IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) ffc0f42c: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0f430: 93 81 00 08 stw r28,8(r1) IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) ffc0f434: 3b 80 00 00 li r28,0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0f438: 93 a1 00 0c stw r29,12(r1) ffc0f43c: 7c fd 3b 78 mr r29,r7 ffc0f440: 93 c1 00 10 stw r30,16(r1) ffc0f444: 7c 9e 23 78 mr r30,r4 ffc0f448: 90 01 00 1c stw r0,28(r1) IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) ffc0f44c: 41 a2 01 18 beq+ ffc0f564 return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); ffc0f450: 3d 20 00 00 lis r9,0 ffc0f454: 81 29 26 9c lwz r9,9884(r9) ffc0f458: 7c a4 2b 78 mr r4,r5 ffc0f45c: 7f c3 f3 78 mr r3,r30 ffc0f460: 80 a9 00 2c lwz r5,44(r9) ffc0f464: 7c c5 28 78 andc r5,r6,r5 ffc0f468: 4b ff fe c1 bl ffc0f328 if ( !node ) ffc0f46c: 7c 7c 1b 79 mr. r28,r3 ffc0f470: 41 82 00 f4 beq- ffc0f564 return NULL; /* * Set the type specific information */ switch (type) { ffc0f474: 3b de ff ff addi r30,r30,-1 ffc0f478: 2b 9e 00 06 cmplwi cr7,r30,6 ffc0f47c: 41 9d 00 9c bgt- cr7,ffc0f518 ffc0f480: 3d 20 ff c2 lis r9,-62 ffc0f484: 39 29 cb b8 addi r9,r9,-13384 ffc0f488: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc0f48c: 7c 09 f0 2e lwzx r0,r9,r30 ffc0f490: 7d 20 4a 14 add r9,r0,r9 ffc0f494: 7d 29 03 a6 mtctr r9 ffc0f498: 4e 80 04 20 bctr */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0f49c: 39 3c 00 54 addi r9,r28,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0f4a0: 38 1c 00 50 addi r0,r28,80 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0f4a4: 91 3c 00 50 stw r9,80(r28) the_chain->permanent_null = NULL; ffc0f4a8: 39 20 00 00 li r9,0 ffc0f4ac: 91 3c 00 54 stw r9,84(r28) the_chain->last = _Chain_Head(the_chain); ffc0f4b0: 90 1c 00 58 stw r0,88(r28) ffc0f4b4: 48 00 00 84 b ffc0f538 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; ffc0f4b8: 80 1d 00 00 lwz r0,0(r29) ffc0f4bc: 48 00 00 54 b ffc0f510 break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; ffc0f4c0: 81 3d 00 04 lwz r9,4(r29) case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; ffc0f4c4: 80 1d 00 00 lwz r0,0(r29) node->info.device.minor = info->device.minor; ffc0f4c8: 91 3c 00 54 stw r9,84(r28) ffc0f4cc: 48 00 00 44 b ffc0f510 break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; ffc0f4d0: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc0f4d4: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc0f4d8: 91 3c 00 50 stw r9,80(r28) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc0f4dc: 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; ffc0f4e0: 91 5c 00 54 stw r10,84(r28) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc0f4e4: 90 1c 00 58 stw r0,88(r28) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; ffc0f4e8: 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; ffc0f4ec: 39 20 00 00 li r9,0 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; ffc0f4f0: 90 1c 00 60 stw r0,96(r28) case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; ffc0f4f4: 39 40 00 00 li r10,0 ffc0f4f8: 91 3c 00 50 stw r9,80(r28) ffc0f4fc: 91 5c 00 54 stw r10,84(r28) node->info.file.indirect = 0; ffc0f500: 90 1c 00 58 stw r0,88(r28) node->info.file.doubly_indirect = 0; ffc0f504: 90 1c 00 5c stw r0,92(r28) node->info.file.triply_indirect = 0; break; ffc0f508: 48 00 00 30 b ffc0f538 case IMFS_FIFO: node->info.fifo.pipe = NULL; ffc0f50c: 38 00 00 00 li r0,0 ffc0f510: 90 1c 00 50 stw r0,80(r28) break; ffc0f514: 48 00 00 24 b ffc0f538 default: assert(0); ffc0f518: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0f51c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc0f520: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0f524: 38 63 cb e5 addi r3,r3,-13339 <== NOT EXECUTED ffc0f528: 38 a5 cb d4 addi r5,r5,-13356 <== NOT EXECUTED ffc0f52c: 38 c6 c1 27 addi r6,r6,-16089 <== NOT EXECUTED ffc0f530: 38 80 00 5c li r4,92 <== NOT EXECUTED ffc0f534: 4b ff 48 a1 bl ffc03dd4 <__assert_func> <== NOT EXECUTED /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; ffc0f538: 81 3f 00 10 lwz r9,16(r31) RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); ffc0f53c: 7f 84 e3 78 mr r4,r28 } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; ffc0f540: 80 7f 00 00 lwz r3,0(r31) fs_info = parent_loc->mt_entry->fs_info; ffc0f544: 81 29 00 34 lwz r9,52(r9) node->Parent = parent; ffc0f548: 90 7c 00 08 stw r3,8(r28) ffc0f54c: 38 63 00 50 addi r3,r3,80 node->st_ino = ++fs_info->ino_count; ffc0f550: 81 69 00 00 lwz r11,0(r9) ffc0f554: 38 0b 00 01 addi r0,r11,1 ffc0f558: 90 09 00 00 stw r0,0(r9) ffc0f55c: 90 1c 00 38 stw r0,56(r28) ffc0f560: 4b ff 94 b5 bl ffc08a14 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } ffc0f564: 80 01 00 1c lwz r0,28(r1) ffc0f568: 7f 83 e3 78 mr r3,r28 ffc0f56c: 83 a1 00 0c lwz r29,12(r1) ffc0f570: 7c 08 03 a6 mtlr r0 ffc0f574: 83 81 00 08 lwz r28,8(r1) ffc0f578: 83 c1 00 10 lwz r30,16(r1) ffc0f57c: 83 e1 00 14 lwz r31,20(r1) ffc0f580: 38 21 00 18 addi r1,r1,24 ffc0f584: 4e 80 00 20 blr ffc05f78 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); ffc05f78: 2c 03 00 00 cmpwi r3,0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { ffc05f7c: 94 21 ff d8 stwu r1,-40(r1) ffc05f80: 7c 08 02 a6 mflr r0 ffc05f84: 93 c1 00 20 stw r30,32(r1) ffc05f88: 7c 9e 23 78 mr r30,r4 ffc05f8c: 90 01 00 2c stw r0,44(r1) ffc05f90: 93 21 00 0c stw r25,12(r1) ffc05f94: 93 41 00 10 stw r26,16(r1) ffc05f98: 93 61 00 14 stw r27,20(r1) ffc05f9c: 93 81 00 18 stw r28,24(r1) ffc05fa0: 93 a1 00 1c stw r29,28(r1) ffc05fa4: 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 ); ffc05fa8: 40 a2 00 24 bne+ ffc05fcc ffc05fac: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05fb0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05fb4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05fb8: 38 63 68 7c addi r3,r3,26748 <== NOT EXECUTED ffc05fbc: 38 a5 68 68 addi r5,r5,26728 <== NOT EXECUTED ffc05fc0: 38 c6 69 32 addi r6,r6,26930 <== NOT EXECUTED ffc05fc4: 38 80 00 84 li r4,132 <== NOT EXECUTED ffc05fc8: 48 00 00 28 b ffc05ff0 <== NOT EXECUTED assert( level >= 0 ); ffc05fcc: 2f 84 00 00 cmpwi cr7,r4,0 ffc05fd0: 40 bc 00 24 bge+ cr7,ffc05ff4 ffc05fd4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05fd8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05fdc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05fe0: 38 63 68 7c addi r3,r3,26748 <== NOT EXECUTED ffc05fe4: 38 a5 68 68 addi r5,r5,26728 <== NOT EXECUTED ffc05fe8: 38 c6 69 40 addi r6,r6,26944 <== NOT EXECUTED ffc05fec: 38 80 00 86 li r4,134 <== NOT EXECUTED ffc05ff0: 48 00 09 65 bl ffc06954 <__assert_func> <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); ffc05ff4: 80 03 00 4c lwz r0,76(r3) ffc05ff8: 2f 80 00 01 cmpwi cr7,r0,1 ffc05ffc: 41 be 00 24 beq+ cr7,ffc06020 ffc06000: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc06004: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc06008: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0600c: 38 63 68 7c addi r3,r3,26748 <== NOT EXECUTED ffc06010: 38 a5 68 68 addi r5,r5,26728 <== NOT EXECUTED ffc06014: 38 c6 69 4b addi r6,r6,26955 <== NOT EXECUTED ffc06018: 38 80 00 88 li r4,136 <== NOT EXECUTED ffc0601c: 4b ff ff d4 b ffc05ff0 <== NOT EXECUTED the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc06020: 3f 40 00 00 lis r26,0 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; ffc06024: 83 e3 00 50 lwz r31,80(r3) the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc06028: 3f 60 ff c2 lis r27,-62 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0602c: 3b 23 00 54 addi r25,r3,84 ffc06030: 3b 5a 27 0c addi r26,r26,9996 ffc06034: 3b 7b 69 71 addi r27,r27,26993 IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); ffc06038: 3b 84 00 01 addi r28,r4,1 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0603c: 48 00 00 48 b ffc06084 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; ffc06040: 3b a0 00 00 li r29,0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc06044: 81 3a 00 00 lwz r9,0(r26) !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) ffc06048: 3b bd 00 01 addi r29,r29,1 fprintf(stdout, "...." ); ffc0604c: 7f 63 db 78 mr r3,r27 ffc06050: 80 89 00 08 lwz r4,8(r9) ffc06054: 48 01 02 01 bl ffc16254 !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++ ) ffc06058: 7f 9d f0 00 cmpw cr7,r29,r30 ffc0605c: 40 9d ff e8 ble+ cr7,ffc06044 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); ffc06060: 7f e3 fb 78 mr r3,r31 ffc06064: 4b ff fd 2d bl ffc05d90 if ( the_jnode->type == IMFS_DIRECTORY ) ffc06068: 80 1f 00 4c lwz r0,76(r31) ffc0606c: 2f 80 00 01 cmpwi cr7,r0,1 ffc06070: 40 be 00 10 bne+ cr7,ffc06080 IMFS_dump_directory( the_jnode, level + 1 ); ffc06074: 7f e3 fb 78 mr r3,r31 ffc06078: 7f 84 e3 78 mr r4,r28 ffc0607c: 4b ff fe fd bl ffc05f78 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 ) { ffc06080: 83 ff 00 00 lwz r31,0(r31) assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; ffc06084: 7f 9f c8 00 cmpw cr7,r31,r25 ffc06088: 40 9e ff b8 bne+ cr7,ffc06040 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } ffc0608c: 80 01 00 2c lwz r0,44(r1) ffc06090: 83 21 00 0c lwz r25,12(r1) ffc06094: 7c 08 03 a6 mtlr r0 ffc06098: 83 41 00 10 lwz r26,16(r1) ffc0609c: 83 61 00 14 lwz r27,20(r1) ffc060a0: 83 81 00 18 lwz r28,24(r1) ffc060a4: 83 a1 00 1c lwz r29,28(r1) ffc060a8: 83 c1 00 20 lwz r30,32(r1) ffc060ac: 83 e1 00 24 lwz r31,36(r1) ffc060b0: 38 21 00 28 addi r1,r1,40 ffc060b4: 4e 80 00 20 blr ffc0c00c : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0c00c: 94 21 ff 90 stwu r1,-112(r1) ffc0c010: 7c 08 02 a6 mflr r0 ffc0c014: 90 01 00 74 stw r0,116(r1) ffc0c018: 92 e1 00 4c stw r23,76(r1) case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0c01c: 3e e0 00 00 lis r23,0 ffc0c020: 3a f7 26 9c addi r23,r23,9884 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0c024: 93 c1 00 68 stw r30,104(r1) ffc0c028: 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; ffc0c02c: 83 c6 00 00 lwz r30,0(r6) const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0c030: 93 01 00 50 stw r24,80(r1) * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); ffc0c034: 3b 01 00 08 addi r24,r1,8 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0c038: 93 21 00 54 stw r25,84(r1) * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); ffc0c03c: 3b 21 00 20 addi r25,r1,32 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0c040: 93 41 00 58 stw r26,88(r1) ffc0c044: 7c 7a 1b 78 mr r26,r3 ffc0c048: 93 61 00 5c stw r27,92(r1) ffc0c04c: 7c bb 2b 78 mr r27,r5 ffc0c050: 93 81 00 60 stw r28,96(r1) /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; ffc0c054: 3b 80 00 00 li r28,0 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0c058: 93 a1 00 64 stw r29,100(r1) ffc0c05c: 7c 9d 23 78 mr r29,r4 ffc0c060: 93 e1 00 6c stw r31,108(r1) ffc0c064: 7c df 33 78 mr r31,r6 * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); ffc0c068: 7f a4 eb 78 mr r4,r29 ffc0c06c: 7c 7a e2 14 add r3,r26,r28 ffc0c070: 7f 25 cb 78 mr r5,r25 ffc0c074: 7f 06 c3 78 mr r6,r24 ffc0c078: 48 00 0a 05 bl ffc0ca7c pathnamelen -= len; i += len; if ( !pathloc->node_access ) ffc0c07c: 81 3f 00 00 lwz r9,0(r31) * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); ffc0c080: 7c 76 1b 78 mr r22,r3 pathnamelen -= len; ffc0c084: 80 81 00 08 lwz r4,8(r1) i += len; if ( !pathloc->node_access ) ffc0c088: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c08c: 41 9e 01 44 beq- cr7,ffc0c1d0 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) ffc0c090: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c094: 41 9e 00 1c beq- cr7,ffc0c0b0 if ( node->type == IMFS_DIRECTORY ) ffc0c098: 80 1e 00 4c lwz r0,76(r30) ffc0c09c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c0a0: 40 be 00 10 bne+ cr7,ffc0c0b0 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0c0a4: 80 09 00 30 lwz r0,48(r9) ffc0c0a8: 70 0b 00 40 andi. r11,r0,64 ffc0c0ac: 41 a2 02 24 beq+ ffc0c2d0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0c0b0: 2f 96 00 03 cmpwi cr7,r22,3 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; ffc0c0b4: 7f a4 e8 50 subf r29,r4,r29 i += len; ffc0c0b8: 7f 9c 22 14 add r28,r28,r4 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; ffc0c0bc: 7d 3e 4b 78 mr r30,r9 switch( type ) { ffc0c0c0: 41 9e 00 90 beq- cr7,ffc0c150 ffc0c0c4: 2f 96 00 04 cmpwi cr7,r22,4 ffc0c0c8: 41 9e 01 1c beq- cr7,ffc0c1e4 ffc0c0cc: 2f 16 00 02 cmpwi cr6,r22,2 ffc0c0d0: 40 ba 01 20 bne+ cr6,ffc0c1f0 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0c0d4: 81 77 00 00 lwz r11,0(r23) ffc0c0d8: 80 0b 00 18 lwz r0,24(r11) ffc0c0dc: 7f 89 00 00 cmpw cr7,r9,r0 ffc0c0e0: 41 be ff 88 beq- cr7,ffc0c068 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { ffc0c0e4: 81 1f 00 10 lwz r8,16(r31) /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == ffc0c0e8: 80 08 00 1c lwz r0,28(r8) ffc0c0ec: 7f 89 00 00 cmpw cr7,r9,r0 ffc0c0f0: 40 be 00 48 bne+ cr7,ffc0c138 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c0f4: 81 28 00 14 lwz r9,20(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c0f8: 7c 64 e0 50 subf r3,r4,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; ffc0c0fc: 80 e8 00 08 lwz r7,8(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c100: 7c 7a 1a 14 add r3,r26,r3 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c104: 81 48 00 0c lwz r10,12(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c108: 7c 84 ea 14 add r4,r4,r29 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c10c: 81 68 00 10 lwz r11,16(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c110: 7f 65 db 78 mr r5,r27 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c114: 90 e1 00 0c stw r7,12(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c118: 7f e6 fb 78 mr r6,r31 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c11c: 91 41 00 10 stw r10,16(r1) ffc0c120: 91 61 00 14 stw r11,20(r1) ffc0c124: 91 21 00 18 stw r9,24(r1) ffc0c128: 80 08 00 18 lwz r0,24(r8) *pathloc = newloc; ffc0c12c: 90 ff 00 00 stw r7,0(r31) ffc0c130: 91 5f 00 04 stw r10,4(r31) ffc0c134: 48 00 01 24 b ffc0c258 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) ffc0c138: 83 c9 00 08 lwz r30,8(r9) ffc0c13c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0c140: 40 be 00 9c bne+ cr7,ffc0c1dc rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c144: 48 00 44 69 bl ffc105ac <__errno> ffc0c148: 92 c3 00 00 stw r22,0(r3) ffc0c14c: 48 00 01 90 b ffc0c2dc case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { ffc0c150: 80 09 00 4c lwz r0,76(r9) ffc0c154: 2f 80 00 03 cmpwi cr7,r0,3 ffc0c158: 40 be 00 20 bne+ cr7,ffc0c178 IMFS_evaluate_hard_link( pathloc, 0 ); ffc0c15c: 7f e3 fb 78 mr r3,r31 ffc0c160: 38 80 00 00 li r4,0 ffc0c164: 4b ff fd 01 bl ffc0be64 node = pathloc->node_access; ffc0c168: 83 df 00 00 lwz r30,0(r31) if ( !node ) ffc0c16c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0c170: 40 be 00 28 bne+ cr7,ffc0c198 ffc0c174: 48 00 00 30 b ffc0c1a4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { ffc0c178: 2f 80 00 04 cmpwi cr7,r0,4 ffc0c17c: 40 be 00 1c bne+ cr7,ffc0c198 result = IMFS_evaluate_sym_link( pathloc, 0 ); ffc0c180: 7f e3 fb 78 mr r3,r31 ffc0c184: 38 80 00 00 li r4,0 ffc0c188: 4b ff fd 65 bl ffc0beec node = pathloc->node_access; ffc0c18c: 83 df 00 00 lwz r30,0(r31) if ( result == -1 ) ffc0c190: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0c194: 41 9e 01 04 beq- cr7,ffc0c298 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) ffc0c198: 80 1e 00 4c lwz r0,76(r30) ffc0c19c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c1a0: 41 be 00 10 beq+ cr7,ffc0c1b0 rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0c1a4: 48 00 44 09 bl ffc105ac <__errno> ffc0c1a8: 38 00 00 14 li r0,20 ffc0c1ac: 48 00 01 2c b ffc0c2d8 /* * 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 ) { ffc0c1b0: 81 1e 00 5c lwz r8,92(r30) ffc0c1b4: 2f 88 00 00 cmpwi cr7,r8,0 ffc0c1b8: 40 9e 00 5c bne- cr7,ffc0c214 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); ffc0c1bc: 7f c3 f3 78 mr r3,r30 ffc0c1c0: 7f 24 cb 78 mr r4,r25 ffc0c1c4: 48 00 07 e5 bl ffc0c9a8 if ( !node ) ffc0c1c8: 7c 7e 1b 79 mr. r30,r3 ffc0c1cc: 40 a2 00 10 bne+ ffc0c1dc rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c1d0: 48 00 43 dd bl ffc105ac <__errno> ffc0c1d4: 38 00 00 02 li r0,2 ffc0c1d8: 48 00 01 00 b ffc0c2d8 /* * Set the node access to the point we have found. */ pathloc->node_access = node; ffc0c1dc: 93 df 00 00 stw r30,0(r31) break; ffc0c1e0: 4b ff fe 88 b ffc0c068 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc0c1e4: 48 00 43 c9 bl ffc105ac <__errno> ffc0c1e8: 38 00 00 5b li r0,91 ffc0c1ec: 48 00 00 ec b ffc0c2d8 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { ffc0c1f0: 2f 16 00 00 cmpwi cr6,r22,0 ffc0c1f4: 41 9a 00 08 beq- cr6,ffc0c1fc ffc0c1f8: 40 9e fe 70 bne+ cr7,ffc0c068 * 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 ) { ffc0c1fc: 80 09 00 4c lwz r0,76(r9) ffc0c200: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c204: 40 9e 00 74 bne- cr7,ffc0c278 if ( node->info.directory.mt_fs != NULL ) { ffc0c208: 81 09 00 5c lwz r8,92(r9) ffc0c20c: 2f 88 00 00 cmpwi cr7,r8,0 ffc0c210: 41 9e 00 68 beq- cr7,ffc0c278 newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c214: 81 28 00 28 lwz r9,40(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c218: 7f 65 db 78 mr r5,r27 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c21c: 80 e8 00 1c lwz r7,28(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c220: 7f e6 fb 78 mr r6,r31 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c224: 81 48 00 20 lwz r10,32(r8) ffc0c228: 81 68 00 24 lwz r11,36(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c22c: 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; ffc0c230: 90 e1 00 0c stw r7,12(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c234: 7c 64 e0 50 subf r3,r4,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; ffc0c238: 91 41 00 10 stw r10,16(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c23c: 7c 7a 1a 14 add r3,r26,r3 ffc0c240: 7c 9d 22 14 add r4,r29,r4 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c244: 91 61 00 14 stw r11,20(r1) ffc0c248: 91 21 00 18 stw r9,24(r1) ffc0c24c: 80 08 00 2c lwz r0,44(r8) *pathloc = newloc; ffc0c250: 90 ff 00 00 stw r7,0(r31) ffc0c254: 91 5f 00 04 stw r10,4(r31) ffc0c258: 90 1f 00 10 stw r0,16(r31) ffc0c25c: 91 7f 00 08 stw r11,8(r31) * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c260: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c264: 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; ffc0c268: 91 3f 00 0c stw r9,12(r31) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c26c: 7c 09 03 a6 mtctr r0 ffc0c270: 4e 80 04 21 bctrl ffc0c274: 48 00 00 24 b ffc0c298 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); ffc0c278: 7f e3 fb 78 mr r3,r31 ffc0c27c: 4b ff fb 55 bl ffc0bdd0 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0c280: 81 3f 00 00 lwz r9,0(r31) /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0c284: 57 7b 30 32 rlwinm r27,r27,6,0,25 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0c288: 80 09 00 30 lwz r0,48(r9) ffc0c28c: 7f 60 00 38 and r0,r27,r0 ffc0c290: 7f 80 d8 00 cmpw cr7,r0,r27 ffc0c294: 40 be 00 3c bne+ cr7,ffc0c2d0 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0c298: 80 01 00 74 lwz r0,116(r1) ffc0c29c: 82 c1 00 48 lwz r22,72(r1) ffc0c2a0: 7c 08 03 a6 mtlr r0 ffc0c2a4: 82 e1 00 4c lwz r23,76(r1) ffc0c2a8: 83 01 00 50 lwz r24,80(r1) ffc0c2ac: 83 21 00 54 lwz r25,84(r1) ffc0c2b0: 83 41 00 58 lwz r26,88(r1) ffc0c2b4: 83 61 00 5c lwz r27,92(r1) ffc0c2b8: 83 81 00 60 lwz r28,96(r1) ffc0c2bc: 83 a1 00 64 lwz r29,100(r1) ffc0c2c0: 83 c1 00 68 lwz r30,104(r1) ffc0c2c4: 83 e1 00 6c lwz r31,108(r1) ffc0c2c8: 38 21 00 70 addi r1,r1,112 ffc0c2cc: 4e 80 00 20 blr /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); ffc0c2d0: 48 00 42 dd bl ffc105ac <__errno> ffc0c2d4: 38 00 00 0d li r0,13 ffc0c2d8: 90 03 00 00 stw r0,0(r3) ffc0c2dc: 38 60 ff ff li r3,-1 ffc0c2e0: 4b ff ff b8 b ffc0c298 ffc0be64 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be64: 94 21 ff f0 stwu r1,-16(r1) ffc0be68: 7c 08 02 a6 mflr r0 ffc0be6c: 90 01 00 14 stw r0,20(r1) IMFS_jnode_t *jnode = node->node_access; ffc0be70: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be74: 93 c1 00 08 stw r30,8(r1) ffc0be78: 7c 9e 23 78 mr r30,r4 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) ffc0be7c: 80 09 00 4c lwz r0,76(r9) int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be80: 93 e1 00 0c stw r31,12(r1) ffc0be84: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) ffc0be88: 2f 80 00 03 cmpwi cr7,r0,3 ffc0be8c: 41 be 00 0c beq+ cr7,ffc0be98 rtems_fatal_error_occurred (0xABCD0000); ffc0be90: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc0be94: 4b ff c7 3d bl ffc085d0 <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; ffc0be98: 80 09 00 50 lwz r0,80(r9) /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0be9c: 57 de 30 32 rlwinm r30,r30,6,0,25 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; ffc0bea0: 90 03 00 00 stw r0,0(r3) IMFS_Set_handlers( node ); ffc0bea4: 4b ff ff 2d bl ffc0bdd0 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0bea8: 81 3f 00 00 lwz r9,0(r31) ffc0beac: 80 09 00 30 lwz r0,48(r9) ffc0beb0: 7f c0 00 38 and r0,r30,r0 ffc0beb4: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0beb8: 40 be 00 20 bne+ cr7,ffc0bed8 ffc0bebc: 38 60 00 00 li r3,0 if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0bec0: 80 01 00 14 lwz r0,20(r1) ffc0bec4: 83 c1 00 08 lwz r30,8(r1) ffc0bec8: 7c 08 03 a6 mtlr r0 ffc0becc: 83 e1 00 0c lwz r31,12(r1) ffc0bed0: 38 21 00 10 addi r1,r1,16 ffc0bed4: 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 ); ffc0bed8: 48 00 46 d5 bl ffc105ac <__errno> <== NOT EXECUTED ffc0bedc: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0bee0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0bee4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0bee8: 4b ff ff d8 b ffc0bec0 <== NOT EXECUTED ffc0be44 : /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0be44: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED ffc0be48: 54 84 30 32 rlwinm r4,r4,6,0,25 <== NOT EXECUTED ffc0be4c: 80 69 00 30 lwz r3,48(r9) <== NOT EXECUTED ffc0be50: 7c 83 18 38 and r3,r4,r3 <== NOT EXECUTED return 1; return 0; } ffc0be54: 7c 63 22 78 xor r3,r3,r4 <== NOT EXECUTED ffc0be58: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc0be5c: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED ffc0be60: 4e 80 00 20 blr <== NOT EXECUTED ffc0beec : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0beec: 94 21 ff e8 stwu r1,-24(r1) ffc0bef0: 7c 08 02 a6 mflr r0 ffc0bef4: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode = node->node_access; ffc0bef8: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0befc: 93 c1 00 10 stw r30,16(r1) ffc0bf00: 7c 9e 23 78 mr r30,r4 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0bf04: 80 09 00 4c lwz r0,76(r9) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0bf08: 93 e1 00 14 stw r31,20(r1) ffc0bf0c: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0bf10: 2f 80 00 04 cmpwi cr7,r0,4 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0bf14: 93 a1 00 0c stw r29,12(r1) /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); ffc0bf18: 3c 60 ab cd lis r3,-21555 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0bf1c: 40 9e 00 14 bne- cr7,ffc0bf30 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) ffc0bf20: 80 09 00 08 lwz r0,8(r9) ffc0bf24: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bf28: 40 be 00 0c bne+ cr7,ffc0bf34 rtems_fatal_error_occurred( 0xBAD00000 ); ffc0bf2c: 3c 60 ba d0 lis r3,-17712 <== NOT EXECUTED ffc0bf30: 4b ff c6 a1 bl ffc085d0 <== NOT EXECUTED /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; ffc0bf34: 90 1f 00 00 stw r0,0(r31) rtems_filesystem_get_sym_start_loc( ffc0bf38: 81 69 00 50 lwz r11,80(r9) ffc0bf3c: 88 0b 00 00 lbz r0,0(r11) ffc0bf40: 2f 80 00 2f cmpwi cr7,r0,47 ffc0bf44: 41 9e 00 18 beq- cr7,ffc0bf5c ffc0bf48: 2f 80 00 5c cmpwi cr7,r0,92 ffc0bf4c: 41 9e 00 10 beq- cr7,ffc0bf5c ffc0bf50: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bf54: 38 00 00 00 li r0,0 ffc0bf58: 40 9e 00 38 bne- cr7,ffc0bf90 ffc0bf5c: 3d 60 00 00 lis r11,0 ffc0bf60: 81 6b 26 9c lwz r11,9884(r11) ffc0bf64: 38 00 00 01 li r0,1 ffc0bf68: 80 cb 00 18 lwz r6,24(r11) ffc0bf6c: 80 eb 00 1c lwz r7,28(r11) ffc0bf70: 81 0b 00 20 lwz r8,32(r11) ffc0bf74: 81 4b 00 24 lwz r10,36(r11) ffc0bf78: 90 df 00 00 stw r6,0(r31) ffc0bf7c: 90 ff 00 04 stw r7,4(r31) ffc0bf80: 91 1f 00 08 stw r8,8(r31) ffc0bf84: 91 5f 00 0c stw r10,12(r31) ffc0bf88: 81 6b 00 28 lwz r11,40(r11) ffc0bf8c: 91 7f 00 10 stw r11,16(r31) * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), ffc0bf90: 83 a9 00 50 lwz r29,80(r9) ffc0bf94: 7f bd 02 14 add r29,r29,r0 ffc0bf98: 7f a3 eb 78 mr r3,r29 ffc0bf9c: 48 00 59 0d bl ffc118a8 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0bfa0: 7f c5 f3 78 mr r5,r30 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), ffc0bfa4: 7c 64 1b 78 mr r4,r3 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0bfa8: 7f e6 fb 78 mr r6,r31 ffc0bfac: 7f a3 eb 78 mr r3,r29 ffc0bfb0: 48 00 00 5d bl ffc0c00c /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0bfb4: 57 de 30 32 rlwinm r30,r30,6,0,25 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0bfb8: 7c 7d 1b 78 mr r29,r3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); ffc0bfbc: 7f e3 fb 78 mr r3,r31 ffc0bfc0: 4b ff fe 11 bl ffc0bdd0 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0bfc4: 81 3f 00 00 lwz r9,0(r31) ffc0bfc8: 80 09 00 30 lwz r0,48(r9) ffc0bfcc: 7f c0 00 38 and r0,r30,r0 ffc0bfd0: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0bfd4: 40 be 00 24 bne+ cr7,ffc0bff8 if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0bfd8: 80 01 00 1c lwz r0,28(r1) ffc0bfdc: 7f a3 eb 78 mr r3,r29 ffc0bfe0: 83 c1 00 10 lwz r30,16(r1) ffc0bfe4: 7c 08 03 a6 mtlr r0 ffc0bfe8: 83 a1 00 0c lwz r29,12(r1) ffc0bfec: 83 e1 00 14 lwz r31,20(r1) ffc0bff0: 38 21 00 18 addi r1,r1,24 ffc0bff4: 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 ); ffc0bff8: 48 00 45 b5 bl ffc105ac <__errno> <== NOT EXECUTED ffc0bffc: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0c000: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0c004: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc0c008: 4b ff ff d0 b ffc0bfd8 <== NOT EXECUTED ffc0c8bc : } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c8bc: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc0c8c0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c8c4: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c8c8: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED ffc0c8cc: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c8d0: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c8d4: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc0c8d8: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c8dc: 38 7f 00 50 addi r3,r31,80 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c8e0: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c8e4: 48 00 25 91 bl ffc0ee74 <== NOT EXECUTED if (! err) { ffc0c8e8: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc0c8ec: 40 a2 00 38 bne+ ffc0c924 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0c8f0: 80 1e 00 18 lwz r0,24(r30) <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) ffc0c8f4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0c8f8: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc0c8fc: 90 1e 00 18 stw r0,24(r30) <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) ffc0c900: 48 00 09 69 bl ffc0d268 <== NOT EXECUTED ffc0c904: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0c908: 40 9e 00 30 bne- cr7,ffc0c938 <== NOT EXECUTED ffc0c90c: a0 1f 00 34 lhz r0,52(r31) <== NOT EXECUTED ffc0c910: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0c914: 40 be 00 24 bne+ cr7,ffc0c938 <== NOT EXECUTED free(jnode); ffc0c918: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0c91c: 4b ff 79 29 bl ffc04244 <== NOT EXECUTED ffc0c920: 48 00 00 18 b ffc0c938 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); ffc0c924: 40 a0 00 14 bge+ ffc0c938 <== NOT EXECUTED ffc0c928: 7f bd 00 d0 neg r29,r29 <== NOT EXECUTED ffc0c92c: 48 00 3c 81 bl ffc105ac <__errno> <== NOT EXECUTED ffc0c930: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc0c934: 3b a0 ff ff li r29,-1 <== NOT EXECUTED } ffc0c938: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc0c93c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0c940: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc0c944: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c948: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0c94c: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc0c950: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0c954: 4e 80 00 20 blr <== NOT EXECUTED ffc0c73c : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0c73c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0c740: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c744: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0c748: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0c74c: 3c 00 80 04 lis r0,-32764 <== NOT EXECUTED ffc0c750: 60 00 66 7e ori r0,r0,26238 <== NOT EXECUTED ffc0c754: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0c758: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0c75c: 40 9e 00 38 bne- cr7,ffc0c794 <== NOT EXECUTED if (buffer == NULL) ffc0c760: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc0c764: 3b e0 ff f2 li r31,-14 <== NOT EXECUTED ffc0c768: 41 9e 00 40 beq- cr7,ffc0c7a8 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) ffc0c76c: 81 25 00 00 lwz r9,0(r5) <== NOT EXECUTED ffc0c770: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc0c774: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0c778: 41 9e 00 0c beq- cr7,ffc0c784 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; ffc0c77c: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc0c780: 48 00 00 08 b ffc0c788 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc0c784: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc0c788: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED ffc0c78c: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc0c790: 48 00 00 28 b ffc0c7b8 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); ffc0c794: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0c798: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0c79c: 48 00 21 f5 bl ffc0e990 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c7a0: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc0c7a4: 40 a0 00 14 bge+ ffc0c7b8 <== NOT EXECUTED ffc0c7a8: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED ffc0c7ac: 48 00 3e 01 bl ffc105ac <__errno> <== NOT EXECUTED ffc0c7b0: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0c7b4: 3b e0 ff ff li r31,-1 <== NOT EXECUTED } ffc0c7b8: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0c7bc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0c7c0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0c7c4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0c7c8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c7cc: 4e 80 00 20 blr <== NOT EXECUTED ffc0c6d8 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc0c6d8: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0c6dc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c6e0: 7c 68 1b 78 mr r8,r3 <== NOT EXECUTED ffc0c6e4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0c6e8: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); ffc0c6ec: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0c6f0: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0c6f4: 48 00 22 25 bl ffc0e918 <== NOT EXECUTED ffc0c6f8: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c6fc: 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); ffc0c700: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0c704: 7c 6a 1b 78 mr r10,r3 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c708: 40 bc 00 18 bge+ cr7,ffc0c720 <== NOT EXECUTED ffc0c70c: 48 00 3e a1 bl ffc105ac <__errno> <== NOT EXECUTED ffc0c710: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED ffc0c714: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0c718: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc0c71c: 39 40 ff ff li r10,-1 <== NOT EXECUTED } ffc0c720: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0c724: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED ffc0c728: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc0c72c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0c730: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c734: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0c738: 4e 80 00 20 blr <== NOT EXECUTED ffc0c848 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc0c848: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0c84c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c850: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0c854: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0c858: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0c85c: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c860: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); ffc0c864: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0c868: 48 00 23 cd bl ffc0ec34 <== NOT EXECUTED if (err > 0) ffc0c86c: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0c870: 40 81 00 1c ble- ffc0c88c <== NOT EXECUTED IMFS_update_atime(jnode); ffc0c874: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0c878: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0c87c: 48 00 09 0d bl ffc0d188 <== NOT EXECUTED ffc0c880: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0c884: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED ffc0c888: 48 00 00 18 b ffc0c8a0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c88c: 41 a2 00 14 beq+ ffc0c8a0 <== NOT EXECUTED ffc0c890: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0c894: 48 00 3d 19 bl ffc105ac <__errno> <== NOT EXECUTED ffc0c898: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0c89c: 3b c0 ff ff li r30,-1 <== NOT EXECUTED } ffc0c8a0: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0c8a4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c8a8: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0c8ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c8b0: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0c8b4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0c8b8: 4e 80 00 20 blr <== NOT EXECUTED ffc0c7d0 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc0c7d0: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0c7d4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c7d8: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0c7dc: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0c7e0: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0c7e4: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c7e8: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); ffc0c7ec: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0c7f0: 48 00 22 25 bl ffc0ea14 <== NOT EXECUTED if (err > 0) { ffc0c7f4: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0c7f8: 40 81 00 20 ble- ffc0c818 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); ffc0c7fc: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0c800: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0c804: 48 00 09 85 bl ffc0d188 <== NOT EXECUTED ffc0c808: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0c80c: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED ffc0c810: 90 1f 00 44 stw r0,68(r31) <== NOT EXECUTED ffc0c814: 48 00 00 18 b ffc0c82c <== NOT EXECUTED } IMFS_FIFO_RETURN(err); ffc0c818: 41 a2 00 14 beq+ ffc0c82c <== NOT EXECUTED ffc0c81c: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0c820: 48 00 3d 8d bl ffc105ac <__errno> <== NOT EXECUTED ffc0c824: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0c828: 3b c0 ff ff li r30,-1 <== NOT EXECUTED } ffc0c82c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0c830: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c834: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0c838: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c83c: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0c840: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0c844: 4e 80 00 20 blr <== NOT EXECUTED ffc0c9a8 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0c9a8: 94 21 ff e8 stwu r1,-24(r1) ffc0c9ac: 7c 08 02 a6 mflr r0 ffc0c9b0: 93 e1 00 14 stw r31,20(r1) /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); ffc0c9b4: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0c9b8: 93 c1 00 10 stw r30,16(r1) ffc0c9bc: 7c 9e 23 78 mr r30,r4 ffc0c9c0: 90 01 00 1c stw r0,28(r1) ffc0c9c4: 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 ); ffc0c9c8: 40 a2 00 24 bne+ ffc0c9ec ffc0c9cc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0c9d0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc0c9d4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0c9d8: 38 63 c9 d7 addi r3,r3,-13865 <== NOT EXECUTED ffc0c9dc: 38 a5 c9 b8 addi r5,r5,-13896 <== NOT EXECUTED ffc0c9e0: 38 c6 ca 23 addi r6,r6,-13789 <== NOT EXECUTED ffc0c9e4: 38 80 00 2a li r4,42 <== NOT EXECUTED ffc0c9e8: 4b ff 73 ed bl ffc03dd4 <__assert_func> <== NOT EXECUTED if ( !name ) ffc0c9ec: 2f 84 00 00 cmpwi cr7,r4,0 ffc0c9f0: 41 9e 00 68 beq- cr7,ffc0ca58 /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) ffc0c9f4: 3f a0 ff c2 lis r29,-62 ffc0c9f8: 3b bd c9 b8 addi r29,r29,-13896 ffc0c9fc: 7c 83 23 78 mr r3,r4 ffc0ca00: 38 9d 00 18 addi r4,r29,24 ffc0ca04: 48 00 4d 85 bl ffc11788 ffc0ca08: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ca0c: 41 9e 00 50 beq- cr7,ffc0ca5c return directory; if ( !strcmp( name, dotdotname ) ) ffc0ca10: 38 9d 00 1c addi r4,r29,28 ffc0ca14: 7f c3 f3 78 mr r3,r30 ffc0ca18: 48 00 4d 71 bl ffc11788 ffc0ca1c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ca20: 40 9e 00 0c bne- cr7,ffc0ca2c return directory->Parent; ffc0ca24: 83 ff 00 08 lwz r31,8(r31) <== NOT EXECUTED ffc0ca28: 48 00 00 34 b ffc0ca5c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0ca2c: 3b bf 00 54 addi r29,r31,84 the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0ca30: 83 ff 00 50 lwz r31,80(r31) ffc0ca34: 48 00 00 1c b ffc0ca50 !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 ) ) ffc0ca38: 7f c3 f3 78 mr r3,r30 ffc0ca3c: 38 9f 00 0c addi r4,r31,12 ffc0ca40: 48 00 4d 49 bl ffc11788 ffc0ca44: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ca48: 41 9e 00 14 beq- cr7,ffc0ca5c the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { ffc0ca4c: 83 ff 00 00 lwz r31,0(r31) if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0ca50: 7f 9f e8 00 cmpw cr7,r31,r29 ffc0ca54: 40 9e ff e4 bne+ cr7,ffc0ca38 ffc0ca58: 3b e0 00 00 li r31,0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } ffc0ca5c: 80 01 00 1c lwz r0,28(r1) ffc0ca60: 7f e3 fb 78 mr r3,r31 ffc0ca64: 83 a1 00 0c lwz r29,12(r1) ffc0ca68: 7c 08 03 a6 mtlr r0 ffc0ca6c: 83 c1 00 10 lwz r30,16(r1) ffc0ca70: 83 e1 00 14 lwz r31,20(r1) ffc0ca74: 38 21 00 18 addi r1,r1,24 ffc0ca78: 4e 80 00 20 blr ffc126d8 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc126d8: 94 21 ff c8 stwu r1,-56(r1) ffc126dc: 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; ffc126e0: 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 ) { ffc126e4: 90 01 00 3c stw r0,60(r1) ffc126e8: 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; ffc126ec: 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; ffc126f0: 83 a3 00 1c lwz r29,28(r3) loc = temp_mt_entry->mt_fs_root; ffc126f4: 81 63 00 24 lwz r11,36(r3) ffc126f8: 81 23 00 28 lwz r9,40(r3) ffc126fc: 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; ffc12700: 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 ) { ffc12704: 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; ffc12708: 91 41 00 0c stw r10,12(r1) ffc1270c: 91 61 00 10 stw r11,16(r1) ffc12710: 91 21 00 14 stw r9,20(r1) ffc12714: 90 01 00 18 stw r0,24(r1) ffc12718: 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 ) { ffc1271c: 93 e1 00 34 stw r31,52(r1) temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); ffc12720: 3b e1 00 08 addi r31,r1,8 ffc12724: 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; ffc12728: 93 a1 00 08 stw r29,8(r1) */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; ffc1272c: 83 dd 00 08 lwz r30,8(r29) loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); ffc12730: 4b ff f3 c9 bl ffc11af8 if ( jnode->type != IMFS_DIRECTORY ) { ffc12734: 81 3d 00 4c lwz r9,76(r29) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc12738: 38 1d 00 54 addi r0,r29,84 ffc1273c: 2f 89 00 01 cmpwi cr7,r9,1 ffc12740: 40 9e 00 10 bne- cr7,ffc12750 ffc12744: 81 3d 00 50 lwz r9,80(r29) ffc12748: 7f 89 00 00 cmpw cr7,r9,r0 ffc1274c: 40 be 00 1c bne+ cr7,ffc12768 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); ffc12750: 38 60 00 00 li r3,0 ffc12754: 7f e4 fb 78 mr r4,r31 ffc12758: 4b ff 2a c1 bl ffc05218 if (result != 0) ffc1275c: 2f 83 00 00 cmpwi cr7,r3,0 ffc12760: 40 9e 00 3c bne- cr7,ffc1279c ffc12764: 7f dd f3 78 mr r29,r30 return -1; jnode = next; } if ( jnode != NULL ) { ffc12768: 2f 9d 00 00 cmpwi cr7,r29,0 ffc1276c: 41 9e 00 38 beq- cr7,ffc127a4 if ( jnode->type == IMFS_DIRECTORY ) { ffc12770: 80 1d 00 4c lwz r0,76(r29) ffc12774: 2f 80 00 01 cmpwi cr7,r0,1 ffc12778: 40 9e ff ac bne+ cr7,ffc12724 ffc1277c: 80 1d 00 50 lwz r0,80(r29) ffc12780: 39 3d 00 54 addi r9,r29,84 ffc12784: 7f 80 48 00 cmpw cr7,r0,r9 ffc12788: 41 be ff 9c beq- cr7,ffc12724 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); ffc1278c: 2f 80 00 00 cmpwi cr7,r0,0 ffc12790: 7c 1d 03 78 mr r29,r0 ffc12794: 40 9e ff 90 bne+ cr7,ffc12724 ffc12798: 48 00 00 0c b ffc127a4 <== NOT EXECUTED ffc1279c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc127a0: 48 00 00 08 b ffc127a8 <== NOT EXECUTED ffc127a4: 38 60 00 00 li r3,0 return 0; } ffc127a8: 80 01 00 3c lwz r0,60(r1) ffc127ac: 83 a1 00 2c lwz r29,44(r1) ffc127b0: 7c 08 03 a6 mtlr r0 ffc127b4: 83 c1 00 30 lwz r30,48(r1) ffc127b8: 83 e1 00 34 lwz r31,52(r1) ffc127bc: 38 21 00 38 addi r1,r1,56 ffc127c0: 4e 80 00 20 blr ffc0cb90 : IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, ffc0cb90: 39 60 00 06 li r11,6 rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { ffc0cb94: 94 21 ff e8 stwu r1,-24(r1) IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, ffc0cb98: 7d 69 03 a6 mtctr r11 ffc0cb9c: 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 ) { ffc0cba0: 7c 08 02 a6 mflr r0 ffc0cba4: 93 81 00 08 stw r28,8(r1) ffc0cba8: 7c 9c 23 78 mr r28,r4 ffc0cbac: 90 01 00 1c stw r0,28(r1) ffc0cbb0: 93 a1 00 0c stw r29,12(r1) ffc0cbb4: 7c dd 33 78 mr r29,r6 ffc0cbb8: 93 c1 00 10 stw r30,16(r1) ffc0cbbc: 7c be 2b 78 mr r30,r5 ffc0cbc0: 93 e1 00 14 stw r31,20(r1) ffc0cbc4: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, ffc0cbc8: 80 09 26 50 lwz r0,9808(r9) ffc0cbcc: 39 20 00 10 li r9,16 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { ffc0cbd0: 7f 89 00 00 cmpw cr7,r9,r0 ffc0cbd4: 41 9e 00 10 beq- cr7,ffc0cbe4 ffc0cbd8: 55 29 08 3c rlwinm r9,r9,1,0,30 ffc0cbdc: 42 00 ff f4 bdnz+ ffc0cbd0 ffc0cbe0: 39 20 00 80 li r9,128 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) ffc0cbe4: 3d 60 00 00 lis r11,0 ffc0cbe8: 91 2b 27 9c stw r9,10140(r11) /* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); ffc0cbec: 48 00 27 e5 bl ffc0f3d0 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; ffc0cbf0: 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(); ffc0cbf4: 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; ffc0cbf8: 38 84 cb 88 addi r4,r4,-13432 ffc0cbfc: 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; ffc0cc00: 93 9f 00 28 stw r28,40(r31) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; ffc0cc04: 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; ffc0cc08: 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; ffc0cc0c: 48 00 45 89 bl ffc11194 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); ffc0cc10: 38 60 00 01 li r3,1 ffc0cc14: 38 80 00 0c li r4,12 ffc0cc18: 48 00 03 19 bl ffc0cf30 if ( !fs_info ) { ffc0cc1c: 7c 69 1b 79 mr. r9,r3 ffc0cc20: 80 7f 00 1c lwz r3,28(r31) ffc0cc24: 40 a2 00 1c bne+ ffc0cc40 free(temp_mt_entry->mt_fs_root.node_access); ffc0cc28: 4b ff 76 1d bl ffc04244 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc0cc2c: 48 00 39 81 bl ffc105ac <__errno> <== NOT EXECUTED ffc0cc30: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0cc34: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cc38: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0cc3c: 48 00 00 24 b ffc0cc60 <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; ffc0cc40: 38 00 00 01 li r0,1 fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; ffc0cc44: 93 a9 00 08 stw r29,8(r9) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; ffc0cc48: 90 09 00 00 stw r0,0(r9) 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; ffc0cc4c: 91 3f 00 34 stw r9,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; ffc0cc50: 90 03 00 38 stw r0,56(r3) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; ffc0cc54: 93 c9 00 04 stw r30,4(r9) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); ffc0cc58: 48 00 1c c9 bl ffc0e920 ffc0cc5c: 38 60 00 00 li r3,0 return 0; } ffc0cc60: 80 01 00 1c lwz r0,28(r1) ffc0cc64: 83 81 00 08 lwz r28,8(r1) ffc0cc68: 7c 08 03 a6 mtlr r0 ffc0cc6c: 83 a1 00 0c lwz r29,12(r1) ffc0cc70: 83 c1 00 10 lwz r30,16(r1) ffc0cc74: 83 e1 00 14 lwz r31,20(r1) ffc0cc78: 38 21 00 18 addi r1,r1,24 ffc0cc7c: 4e 80 00 20 blr ffc04e30 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { ffc04e30: 94 21 ff 98 stwu r1,-104(r1) ffc04e34: 7c 08 02 a6 mflr r0 ffc04e38: 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; ffc04e3c: 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 */ ) { ffc04e40: 93 a1 00 5c stw r29,92(r1) ffc04e44: 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; ffc04e48: 91 21 00 18 stw r9,24(r1) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) ffc04e4c: 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 */ ) { ffc04e50: 93 c1 00 60 stw r30,96(r1) ffc04e54: 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 ) ffc04e58: 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 */ ) { ffc04e5c: 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 ) ffc04e60: 40 bd 00 10 ble+ cr7,ffc04e70 rtems_set_errno_and_return_minus_one( EMLINK ); ffc04e64: 48 01 1a d9 bl ffc1693c <__errno> ffc04e68: 38 00 00 1f li r0,31 ffc04e6c: 48 00 00 50 b ffc04ebc /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); ffc04e70: 7c a3 2b 78 mr r3,r5 ffc04e74: 48 01 2d 89 bl ffc17bfc ffc04e78: 3b e1 00 30 addi r31,r1,48 ffc04e7c: 7c 64 1b 78 mr r4,r3 ffc04e80: 7f e5 fb 78 mr r5,r31 ffc04e84: 38 c1 00 08 addi r6,r1,8 ffc04e88: 7f a3 eb 78 mr r3,r29 ffc04e8c: 48 00 da 0d bl ffc12898 * 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( ffc04e90: 38 c0 00 00 li r6,0 ffc04e94: 7f c3 f3 78 mr r3,r30 ffc04e98: 7f e5 fb 78 mr r5,r31 ffc04e9c: 60 c6 a1 ff ori r6,r6,41471 ffc04ea0: 38 80 00 03 li r4,3 ffc04ea4: 38 e1 00 18 addi r7,r1,24 ffc04ea8: 48 00 ca e9 bl ffc11990 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) ffc04eac: 2f 83 00 00 cmpwi cr7,r3,0 ffc04eb0: 40 be 00 18 bne+ cr7,ffc04ec8 rtems_set_errno_and_return_minus_one( ENOMEM ); ffc04eb4: 48 01 1a 89 bl ffc1693c <__errno> <== NOT EXECUTED ffc04eb8: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc04ebc: 90 03 00 00 stw r0,0(r3) ffc04ec0: 38 60 ff ff li r3,-1 ffc04ec4: 48 00 00 30 b ffc04ef4 /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; ffc04ec8: 81 21 00 18 lwz r9,24(r1) IMFS_update_ctime( info.hard_link.link_node ); ffc04ecc: 38 61 00 0c addi r3,r1,12 ffc04ed0: 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++; ffc04ed4: a1 69 00 34 lhz r11,52(r9) ffc04ed8: 38 0b 00 01 addi r0,r11,1 ffc04edc: b0 09 00 34 sth r0,52(r9) IMFS_update_ctime( info.hard_link.link_node ); ffc04ee0: 48 00 0b fd bl ffc05adc ffc04ee4: 80 01 00 0c lwz r0,12(r1) ffc04ee8: 81 21 00 18 lwz r9,24(r1) ffc04eec: 38 60 00 00 li r3,0 ffc04ef0: 90 09 00 48 stw r0,72(r9) return 0; } ffc04ef4: 80 01 00 6c lwz r0,108(r1) ffc04ef8: 83 a1 00 5c lwz r29,92(r1) ffc04efc: 7c 08 03 a6 mtlr r0 ffc04f00: 83 c1 00 60 lwz r30,96(r1) ffc04f04: 83 e1 00 64 lwz r31,100(r1) ffc04f08: 38 21 00 68 addi r1,r1,104 ffc04f0c: 4e 80 00 20 blr ffc150a0 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc150a0: 7c 69 1b 79 mr. r9,r3 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc150a4: 94 21 ff f0 stwu r1,-16(r1) ffc150a8: 7c 08 02 a6 mflr r0 ffc150ac: 93 e1 00 0c stw r31,12(r1) ffc150b0: 90 01 00 14 stw r0,20(r1) block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc150b4: 40 a2 00 28 bne+ ffc150dc ffc150b8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc150bc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc150c0: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc150c4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc150c8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc150cc: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc150d0: 38 c6 36 b0 addi r6,r6,14000 <== NOT EXECUTED ffc150d4: 38 80 01 69 li r4,361 <== NOT EXECUTED ffc150d8: 48 00 00 30 b ffc15108 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc150dc: 80 09 00 4c lwz r0,76(r9) ffc150e0: 2f 80 00 05 cmpwi cr7,r0,5 ffc150e4: 41 be 00 28 beq+ cr7,ffc1510c ffc150e8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc150ec: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc150f0: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc150f4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc150f8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc150fc: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc15100: 38 c6 36 ba addi r6,r6,14010 <== NOT EXECUTED ffc15104: 38 80 01 6d li r4,365 <== NOT EXECUTED ffc15108: 4b ff 04 25 bl ffc0552c <__assert_func> <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); ffc1510c: 38 a0 00 01 li r5,1 ffc15110: 4b ff f9 39 bl ffc14a48 if ( *block_entry_ptr ) ffc15114: 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 ); ffc15118: 7c 7f 1b 78 mr r31,r3 if ( *block_entry_ptr ) ffc1511c: 38 60 00 00 li r3,0 ffc15120: 2f 80 00 00 cmpwi cr7,r0,0 ffc15124: 40 be 00 1c bne+ cr7,ffc15140 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); ffc15128: 4b ff f8 dd bl ffc14a04 if ( !memory ) ffc1512c: 7c 60 1b 79 mr. r0,r3 ffc15130: 38 60 00 01 li r3,1 ffc15134: 41 82 00 0c beq- ffc15140 return 1; *block_entry_ptr = memory; ffc15138: 90 1f 00 00 stw r0,0(r31) ffc1513c: 38 60 00 00 li r3,0 return 0; } ffc15140: 80 01 00 14 lwz r0,20(r1) ffc15144: 83 e1 00 0c lwz r31,12(r1) ffc15148: 38 21 00 10 addi r1,r1,16 ffc1514c: 7c 08 03 a6 mtlr r0 ffc15150: 4e 80 00 20 blr ffc15154 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc15154: 94 21 ff d8 stwu r1,-40(r1) ffc15158: 7c 08 02 a6 mflr r0 ffc1515c: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15160: 7c 7f 1b 79 mr. r31,r3 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc15164: 93 81 00 18 stw r28,24(r1) ffc15168: 7c dc 33 78 mr r28,r6 ffc1516c: 93 a1 00 1c stw r29,28(r1) ffc15170: 7c bd 2b 78 mr r29,r5 ffc15174: 90 01 00 2c stw r0,44(r1) ffc15178: 93 01 00 08 stw r24,8(r1) ffc1517c: 93 21 00 0c stw r25,12(r1) ffc15180: 93 41 00 10 stw r26,16(r1) ffc15184: 93 61 00 14 stw r27,20(r1) ffc15188: 93 c1 00 20 stw r30,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc1518c: 40 a2 00 28 bne+ ffc151b4 ffc15190: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15194: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15198: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc1519c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc151a0: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc151a4: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc151a8: 38 c6 36 b0 addi r6,r6,14000 <== NOT EXECUTED ffc151ac: 38 80 01 31 li r4,305 <== NOT EXECUTED ffc151b0: 48 00 00 30 b ffc151e0 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc151b4: 80 1f 00 4c lwz r0,76(r31) ffc151b8: 2f 80 00 05 cmpwi cr7,r0,5 ffc151bc: 41 be 00 28 beq+ cr7,ffc151e4 ffc151c0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc151c4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc151c8: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc151cc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc151d0: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc151d4: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc151d8: 38 c6 36 ba addi r6,r6,14010 <== NOT EXECUTED ffc151dc: 38 80 01 35 li r4,309 <== NOT EXECUTED ffc151e0: 4b ff 03 4d bl ffc0552c <__assert_func> <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) ffc151e4: 3d 20 00 00 lis r9,0 ffc151e8: 83 c9 27 24 lwz r30,10020(r9) ffc151ec: 38 00 00 00 li r0,0 ffc151f0: 7f 80 28 00 cmpw cr7,r0,r5 ffc151f4: 57 c9 f0 be rlwinm r9,r30,30,2,31 ffc151f8: 39 69 00 01 addi r11,r9,1 ffc151fc: 7d 6b 49 d6 mullw r11,r11,r9 ffc15200: 38 0b 00 01 addi r0,r11,1 ffc15204: 7d 20 49 d6 mullw r9,r0,r9 ffc15208: 39 29 ff ff addi r9,r9,-1 ffc1520c: 7d 29 f1 d6 mullw r9,r9,r30 ffc15210: 41 9d 00 1c bgt- cr7,ffc1522c ffc15214: 40 be 00 0c bne+ cr7,ffc15220 ffc15218: 7f 89 30 40 cmplw cr7,r9,r6 ffc1521c: 41 9d 00 10 bgt- cr7,ffc1522c rtems_set_errno_and_return_minus_one( EINVAL ); ffc15220: 48 00 17 1d bl ffc1693c <__errno> <== NOT EXECUTED ffc15224: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc15228: 48 00 00 9c b ffc152c4 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) ffc1522c: 83 3f 00 50 lwz r25,80(r31) ffc15230: 83 5f 00 54 lwz r26,84(r31) ffc15234: 7f 9d c8 00 cmpw cr7,r29,r25 ffc15238: 41 9d 00 18 bgt- cr7,ffc15250 ffc1523c: 40 be 00 0c bne+ cr7,ffc15248 ffc15240: 7f 9c d0 40 cmplw cr7,r28,r26 ffc15244: 41 9d 00 0c bgt- cr7,ffc15250 ffc15248: 38 60 00 00 li r3,0 ffc1524c: 48 00 00 9c b ffc152e8 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15250: 7f db fe 70 srawi r27,r30,31 ffc15254: 7f 65 db 78 mr r5,r27 ffc15258: 7f c6 f3 78 mr r6,r30 ffc1525c: 7f a3 eb 78 mr r3,r29 ffc15260: 7f 84 e3 78 mr r4,r28 ffc15264: 48 00 b5 7d bl ffc207e0 <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15268: 7f 65 db 78 mr r5,r27 ffc1526c: 7f c6 f3 78 mr r6,r30 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15270: 7c 98 23 78 mr r24,r4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15274: 7f 23 cb 78 mr r3,r25 ffc15278: 7f 44 d3 78 mr r4,r26 ffc1527c: 48 00 b5 65 bl ffc207e0 <__divdi3> ffc15280: 7c 9b 23 78 mr r27,r4 ffc15284: 7c 9e 23 78 mr r30,r4 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc15288: 48 00 00 4c b ffc152d4 if ( IMFS_memfile_addblock( the_jnode, block ) ) { ffc1528c: 7f e3 fb 78 mr r3,r31 ffc15290: 7f c4 f3 78 mr r4,r30 ffc15294: 4b ff fe 0d bl ffc150a0 ffc15298: 2f 83 00 00 cmpwi cr7,r3,0 ffc1529c: 41 be 00 34 beq+ cr7,ffc152d0 ffc152a0: 48 00 00 14 b ffc152b4 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); ffc152a4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc152a8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc152ac: 4b ff fa 99 bl ffc14d44 <== 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-- ) { ffc152b0: 3b de ff ff addi r30,r30,-1 <== NOT EXECUTED ffc152b4: 7f 9e d8 40 cmplw cr7,r30,r27 <== NOT EXECUTED ffc152b8: 40 9c ff ec bge+ cr7,ffc152a4 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); ffc152bc: 48 00 16 81 bl ffc1693c <__errno> <== NOT EXECUTED ffc152c0: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc152c4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc152c8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc152cc: 48 00 00 1c b ffc152e8 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc152d0: 3b de 00 01 addi r30,r30,1 ffc152d4: 7f 9e c0 40 cmplw cr7,r30,r24 ffc152d8: 40 9d ff b4 ble+ cr7,ffc1528c /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; ffc152dc: 93 9f 00 54 stw r28,84(r31) ffc152e0: 38 60 00 00 li r3,0 ffc152e4: 93 bf 00 50 stw r29,80(r31) return 0; } ffc152e8: 80 01 00 2c lwz r0,44(r1) ffc152ec: 83 01 00 08 lwz r24,8(r1) ffc152f0: 7c 08 03 a6 mtlr r0 ffc152f4: 83 21 00 0c lwz r25,12(r1) ffc152f8: 83 41 00 10 lwz r26,16(r1) ffc152fc: 83 61 00 14 lwz r27,20(r1) ffc15300: 83 81 00 18 lwz r28,24(r1) ffc15304: 83 a1 00 1c lwz r29,28(r1) ffc15308: 83 c1 00 20 lwz r30,32(r1) ffc1530c: 83 e1 00 24 lwz r31,36(r1) ffc15310: 38 21 00 28 addi r1,r1,40 ffc15314: 4e 80 00 20 blr ffc14a48 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc14a48: 94 21 ff e8 stwu r1,-24(r1) ffc14a4c: 7c 08 02 a6 mflr r0 ffc14a50: 93 e1 00 14 stw r31,20(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc14a54: 7c 7f 1b 79 mr. r31,r3 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc14a58: 93 c1 00 10 stw r30,16(r1) ffc14a5c: 7c 9e 23 78 mr r30,r4 ffc14a60: 90 01 00 1c stw r0,28(r1) ffc14a64: 93 81 00 08 stw r28,8(r1) ffc14a68: 93 a1 00 0c stw r29,12(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc14a6c: 40 a2 00 24 bne+ ffc14a90 ffc14a70: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14a74: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14a78: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14a7c: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc14a80: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc14a84: 38 c6 36 b0 addi r6,r6,14000 <== NOT EXECUTED ffc14a88: 38 80 03 88 li r4,904 <== NOT EXECUTED ffc14a8c: 48 00 00 2c b ffc14ab8 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc14a90: 80 1f 00 4c lwz r0,76(r31) ffc14a94: 2f 80 00 05 cmpwi cr7,r0,5 ffc14a98: 41 be 00 24 beq+ cr7,ffc14abc ffc14a9c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14aa0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14aa4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14aa8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc14aac: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc14ab0: 38 c6 36 ba addi r6,r6,14010 <== NOT EXECUTED ffc14ab4: 38 80 03 8c li r4,908 <== NOT EXECUTED ffc14ab8: 4b ff 0a 75 bl ffc0552c <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { ffc14abc: 3d 20 00 00 lis r9,0 ffc14ac0: 81 29 27 24 lwz r9,10020(r9) ffc14ac4: 55 29 f0 be rlwinm r9,r9,30,2,31 ffc14ac8: 38 09 ff ff addi r0,r9,-1 ffc14acc: 7f 84 00 40 cmplw cr7,r4,r0 ffc14ad0: 41 9d 00 40 bgt- cr7,ffc14b10 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { ffc14ad4: 2f 05 00 00 cmpwi cr6,r5,0 if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; ffc14ad8: 80 1f 00 58 lwz r0,88(r31) ffc14adc: 2f 80 00 00 cmpwi cr7,r0,0 if ( malloc_it ) { ffc14ae0: 41 9a 00 20 beq- cr6,ffc14b00 if ( !p ) { ffc14ae4: 40 be 00 14 bne+ cr7,ffc14af8 p = memfile_alloc_block(); ffc14ae8: 4b ff ff 1d bl ffc14a04 if ( !p ) ffc14aec: 2c 03 00 00 cmpwi r3,0 ffc14af0: 41 82 01 78 beq- ffc14c68 return 0; info->indirect = p; ffc14af4: 90 7f 00 58 stw r3,88(r31) } return &info->indirect[ my_block ]; ffc14af8: 80 7f 00 58 lwz r3,88(r31) ffc14afc: 48 00 01 60 b ffc14c5c } if ( !p ) ffc14b00: 41 9e 01 68 beq- cr7,ffc14c68 return 0; return &info->indirect[ my_block ]; ffc14b04: 54 9e 10 3a rlwinm r30,r4,2,0,29 ffc14b08: 7c 60 f2 14 add r3,r0,r30 ffc14b0c: 48 00 01 60 b ffc14c6c /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { ffc14b10: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED ffc14b14: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED ffc14b18: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc14b1c: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc14b20: 41 9d 00 80 bgt- cr7,ffc14ba0 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; ffc14b24: 7f c9 20 50 subf r30,r9,r4 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; ffc14b28: 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; ffc14b2c: 7f be 4b 96 divwu r29,r30,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc14b30: 2f 05 00 00 cmpwi cr6,r5,0 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; ffc14b34: 7d 3d 49 d6 mullw r9,r29,r9 <== NOT EXECUTED ffc14b38: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc14b3c: 7f c9 f0 50 subf r30,r9,r30 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc14b40: 41 9a 00 40 beq- cr6,ffc14b80 <== NOT EXECUTED if ( !p ) { ffc14b44: 40 be 00 14 bne+ cr7,ffc14b58 <== NOT EXECUTED p = memfile_alloc_block(); ffc14b48: 4b ff fe bd bl ffc14a04 <== NOT EXECUTED if ( !p ) ffc14b4c: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED ffc14b50: 41 82 01 18 beq- ffc14c68 <== NOT EXECUTED return 0; info->doubly_indirect = p; ffc14b54: 91 7f 00 5c stw r11,92(r31) <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; ffc14b58: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc14b5c: 7c 6b e8 2e lwzx r3,r11,r29 <== NOT EXECUTED ffc14b60: 7f ab ea 14 add r29,r11,r29 <== NOT EXECUTED if ( !p1 ) { ffc14b64: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc14b68: 40 be 00 f4 bne+ cr7,ffc14c5c <== NOT EXECUTED p1 = memfile_alloc_block(); ffc14b6c: 4b ff fe 99 bl ffc14a04 <== NOT EXECUTED if ( !p1 ) ffc14b70: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc14b74: 41 82 00 f4 beq- ffc14c68 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; ffc14b78: 90 7d 00 00 stw r3,0(r29) <== NOT EXECUTED ffc14b7c: 48 00 00 e0 b ffc14c5c <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) ffc14b80: 41 be 00 e8 beq+ cr7,ffc14c68 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; ffc14b84: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc14b88: 7c 0b e8 2e lwzx r0,r11,r29 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly, singly, p, &p[singly] ); fflush(stdout); #endif return (block_p *)&p[ singly ]; ffc14b8c: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc14b90: 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 ]; ffc14b94: 7c 60 f2 14 add r3,r0,r30 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc14b98: 40 be 00 d4 bne+ cr7,ffc14c6c <== NOT EXECUTED ffc14b9c: 48 00 00 cc b ffc14c68 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { ffc14ba0: 39 4b 00 01 addi r10,r11,1 <== NOT EXECUTED ffc14ba4: 7d 4a 49 d6 mullw r10,r10,r9 <== NOT EXECUTED ffc14ba8: 38 0a ff ff addi r0,r10,-1 <== NOT EXECUTED ffc14bac: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc14bb0: 41 9d 00 b8 bgt- cr7,ffc14c68 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; ffc14bb4: 7f cb 20 50 subf r30,r11,r4 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; ffc14bb8: 81 7f 00 60 lwz r11,96(r31) <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; ffc14bbc: 7c 1e 4b 96 divwu r0,r30,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; ffc14bc0: 7f a0 4b 96 divwu r29,r0,r9 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { ffc14bc4: 2f 05 00 00 cmpwi cr6,r5,0 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; ffc14bc8: 7f 9d 49 d6 mullw r28,r29,r9 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; ffc14bcc: 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; ffc14bd0: 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; ffc14bd4: 7f c9 f0 50 subf r30,r9,r30 <== NOT EXECUTED ffc14bd8: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { ffc14bdc: 41 9a 00 64 beq- cr6,ffc14c40 <== NOT EXECUTED if ( !p ) { ffc14be0: 40 be 00 14 bne+ cr7,ffc14bf4 <== NOT EXECUTED p = memfile_alloc_block(); ffc14be4: 4b ff fe 21 bl ffc14a04 <== NOT EXECUTED if ( !p ) ffc14be8: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED ffc14bec: 41 82 00 7c beq- ffc14c68 <== NOT EXECUTED return 0; info->triply_indirect = p; ffc14bf0: 91 7f 00 60 stw r11,96(r31) <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; ffc14bf4: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc14bf8: 7d 2b e8 2e lwzx r9,r11,r29 <== NOT EXECUTED ffc14bfc: 7f ab ea 14 add r29,r11,r29 <== NOT EXECUTED if ( !p1 ) { ffc14c00: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc14c04: 40 be 00 14 bne+ cr7,ffc14c18 <== NOT EXECUTED p1 = memfile_alloc_block(); ffc14c08: 4b ff fd fd bl ffc14a04 <== NOT EXECUTED if ( !p1 ) ffc14c0c: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc14c10: 41 82 00 58 beq- ffc14c68 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; ffc14c14: 91 3d 00 00 stw r9,0(r29) <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; ffc14c18: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED ffc14c1c: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED ffc14c20: 7f 89 e2 14 add r28,r9,r28 <== NOT EXECUTED if ( !p2 ) { ffc14c24: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc14c28: 40 be 00 34 bne+ cr7,ffc14c5c <== NOT EXECUTED p2 = memfile_alloc_block(); ffc14c2c: 4b ff fd d9 bl ffc14a04 <== NOT EXECUTED if ( !p2 ) ffc14c30: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc14c34: 41 82 00 34 beq- ffc14c68 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; ffc14c38: 90 7c 00 00 stw r3,0(r28) <== NOT EXECUTED ffc14c3c: 48 00 00 20 b ffc14c5c <== NOT EXECUTED } return (block_p *)&p2[ singly ]; } if ( !p ) ffc14c40: 41 be 00 28 beq+ cr7,ffc14c68 <== 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 ]; ffc14c44: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc14c48: 7d 2b e8 2e lwzx r9,r11,r29 <== NOT EXECUTED if ( !p1 ) ffc14c4c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc14c50: 41 be 00 18 beq+ cr7,ffc14c68 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc14c54: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED ffc14c58: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED ffc14c5c: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc14c60: 7c 63 f2 14 add r3,r3,r30 ffc14c64: 48 00 00 08 b ffc14c6c ffc14c68: 38 60 00 00 li r3,0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc14c6c: 80 01 00 1c lwz r0,28(r1) ffc14c70: 83 81 00 08 lwz r28,8(r1) ffc14c74: 7c 08 03 a6 mtlr r0 ffc14c78: 83 a1 00 0c lwz r29,12(r1) ffc14c7c: 83 c1 00 10 lwz r30,16(r1) ffc14c80: 83 e1 00 14 lwz r31,20(r1) ffc14c84: 38 21 00 18 addi r1,r1,24 ffc14c88: 4e 80 00 20 blr ffc15870 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc15870: 94 21 ff c0 stwu r1,-64(r1) ffc15874: 7c 08 02 a6 mflr r0 ffc15878: 93 e1 00 3c stw r31,60(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc1587c: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc15880: 93 61 00 2c stw r27,44(r1) ffc15884: 7c bb 2b 78 mr r27,r5 ffc15888: 93 81 00 30 stw r28,48(r1) ffc1588c: 7c dc 33 78 mr r28,r6 ffc15890: 93 c1 00 38 stw r30,56(r1) ffc15894: 7c fe 3b 78 mr r30,r7 ffc15898: 90 01 00 44 stw r0,68(r1) ffc1589c: 92 c1 00 18 stw r22,24(r1) ffc158a0: 92 e1 00 1c stw r23,28(r1) ffc158a4: 93 01 00 20 stw r24,32(r1) ffc158a8: 93 21 00 24 stw r25,36(r1) ffc158ac: 93 41 00 28 stw r26,40(r1) ffc158b0: 93 a1 00 34 stw r29,52(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc158b4: 40 a2 00 28 bne+ ffc158dc ffc158b8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc158bc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc158c0: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc158c4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc158c8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc158cc: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc158d0: 38 c6 36 b0 addi r6,r6,14000 <== NOT EXECUTED ffc158d4: 38 80 02 4c li r4,588 <== NOT EXECUTED ffc158d8: 48 00 00 34 b ffc1590c <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || ffc158dc: 81 3f 00 4c lwz r9,76(r31) ffc158e0: 38 09 ff fb addi r0,r9,-5 ffc158e4: 2b 80 00 01 cmplwi cr7,r0,1 ffc158e8: 40 bd 00 28 ble+ cr7,ffc15910 ffc158ec: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc158f0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc158f4: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc158f8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc158fc: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc15900: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15904: 38 c6 37 24 addi r6,r6,14116 <== NOT EXECUTED ffc15908: 38 80 02 51 li r4,593 <== NOT EXECUTED ffc1590c: 4b fe fc 21 bl ffc0552c <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); ffc15910: 2f 87 00 00 cmpwi cr7,r7,0 ffc15914: 40 be 00 28 bne+ cr7,ffc1593c ffc15918: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1591c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15920: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc15924: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15928: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc1592c: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15930: 38 c6 37 6f addi r6,r6,14191 <== NOT EXECUTED ffc15934: 38 80 02 5a li r4,602 <== NOT EXECUTED ffc15938: 4b ff ff d4 b ffc1590c <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) ffc1593c: 2f 88 00 00 cmpwi cr7,r8,0 ffc15940: 40 be 00 18 bne+ cr7,ffc15958 rtems_set_errno_and_return_minus_one( EINVAL ); ffc15944: 48 00 0f f9 bl ffc1693c <__errno> <== NOT EXECUTED ffc15948: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1594c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc15950: 3b 40 ff ff li r26,-1 <== NOT EXECUTED ffc15954: 48 00 02 30 b ffc15b84 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { ffc15958: 2f 89 00 06 cmpwi cr7,r9,6 ffc1595c: 40 be 00 50 bne+ cr7,ffc159ac unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) ffc15960: 81 3f 00 50 lwz r9,80(r31) <== NOT EXECUTED ffc15964: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc15968: 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; ffc1596c: 80 9f 00 58 lwz r4,88(r31) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) ffc15970: 7d 9c 50 10 subfc r12,r28,r10 <== NOT EXECUTED ffc15974: 7d 7b 49 10 subfe r11,r27,r9 <== NOT EXECUTED ffc15978: 7f 80 58 00 cmpw cr7,r0,r11 <== NOT EXECUTED ffc1597c: 41 9d 00 18 bgt- cr7,ffc15994 <== NOT EXECUTED ffc15980: 40 be 00 0c bne+ cr7,ffc1598c <== NOT EXECUTED ffc15984: 7f 88 60 40 cmplw cr7,r8,r12 <== NOT EXECUTED ffc15988: 41 9d 00 0c bgt- cr7,ffc15994 <== NOT EXECUTED ffc1598c: 7d 1a 43 78 mr r26,r8 <== NOT EXECUTED ffc15990: 48 00 00 08 b ffc15998 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; ffc15994: 7f 5c 50 50 subf r26,r28,r10 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); ffc15998: 7c 84 e2 14 add r4,r4,r28 <== NOT EXECUTED ffc1599c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc159a0: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc159a4: 48 00 1b 81 bl ffc17524 <== NOT EXECUTED ffc159a8: 48 00 01 c8 b ffc15b70 <== 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 ) ffc159ac: 80 1f 00 50 lwz r0,80(r31) ffc159b0: 39 20 00 00 li r9,0 ffc159b4: 83 bf 00 54 lwz r29,84(r31) ffc159b8: 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; ffc159bc: 7c c0 33 78 mr r0,r6 if ( last_byte > the_jnode->info.file.size ) ffc159c0: 7d 28 32 14 add r9,r8,r6 ffc159c4: 41 9d 00 18 bgt- cr7,ffc159dc ffc159c8: 40 be 00 0c bne+ cr7,ffc159d4 ffc159cc: 7f 89 e8 40 cmplw cr7,r9,r29 ffc159d0: 41 9d 00 0c bgt- cr7,ffc159dc ffc159d4: 7d 1d 43 78 mr r29,r8 <== NOT EXECUTED ffc159d8: 48 00 00 08 b ffc159e0 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; ffc159dc: 7f a0 e8 50 subf r29,r0,r29 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc159e0: 3d 20 00 00 lis r9,0 ffc159e4: 83 49 27 24 lwz r26,10020(r9) ffc159e8: 7f 63 db 78 mr r3,r27 ffc159ec: 7f 84 e3 78 mr r4,r28 ffc159f0: 7f 58 fe 70 srawi r24,r26,31 ffc159f4: 7f 05 c3 78 mr r5,r24 ffc159f8: 7f 46 d3 78 mr r6,r26 ffc159fc: 48 00 b1 e9 bl ffc20be4 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15a00: 7f 63 db 78 mr r3,r27 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15a04: 7c 99 23 78 mr r25,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15a08: 7f 05 c3 78 mr r5,r24 ffc15a0c: 7f 84 e3 78 mr r4,r28 ffc15a10: 7f 46 d3 78 mr r6,r26 ffc15a14: 48 00 ad cd bl ffc207e0 <__divdi3> if ( start_offset ) { ffc15a18: 2f 99 00 00 cmpwi cr7,r25,0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15a1c: 7c 9b 23 78 mr r27,r4 if ( start_offset ) { ffc15a20: 7f d7 f3 78 mr r23,r30 ffc15a24: 3b 00 00 00 li r24,0 ffc15a28: 41 9e 00 70 beq- cr7,ffc15a98 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 ); ffc15a2c: 7f e3 fb 78 mr r3,r31 ffc15a30: 38 a0 00 00 li r5,0 ffc15a34: 4b ff f0 15 bl ffc14a48 assert( block_ptr ); ffc15a38: 2c 03 00 00 cmpwi r3,0 ffc15a3c: 40 a2 00 28 bne+ ffc15a64 ffc15a40: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15a44: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15a48: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc15a4c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15a50: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc15a54: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15a58: 38 c6 36 ea addi r6,r6,14058 <== NOT EXECUTED ffc15a5c: 38 80 02 96 li r4,662 <== NOT EXECUTED ffc15a60: 4b ff fe ac b ffc1590c <== 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; ffc15a64: 7f 59 d0 50 subf r26,r25,r26 ffc15a68: 7f 9d d0 40 cmplw cr7,r29,r26 ffc15a6c: 7f b8 eb 78 mr r24,r29 ffc15a70: 40 9d 00 08 ble- cr7,ffc15a78 ffc15a74: 7f 58 d3 78 mr r24,r26 to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); ffc15a78: 80 83 00 00 lwz r4,0(r3) ffc15a7c: 7f 05 c3 78 mr r5,r24 ffc15a80: 7f c3 f3 78 mr r3,r30 ffc15a84: 7c 84 ca 14 add r4,r4,r25 ffc15a88: 48 00 1a 9d bl ffc17524 dest += to_copy; ffc15a8c: 7e fe c2 14 add r23,r30,r24 block++; ffc15a90: 3b 7b 00 01 addi r27,r27,1 my_length -= to_copy; ffc15a94: 7f b8 e8 50 subf r29,r24,r29 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15a98: 3d 20 00 00 lis r9,0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15a9c: 3a c9 27 24 addi r22,r9,10020 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15aa0: 83 29 27 24 lwz r25,10020(r9) ffc15aa4: 3b c0 00 00 li r30,0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15aa8: 48 00 00 5c b ffc15b04 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc15aac: 7f e3 fb 78 mr r3,r31 ffc15ab0: 7f 64 db 78 mr r4,r27 ffc15ab4: 38 a0 00 00 li r5,0 ffc15ab8: 4b ff ef 91 bl ffc14a48 ffc15abc: 7f de ca 14 add r30,r30,r25 assert( block_ptr ); ffc15ac0: 2c 03 00 00 cmpwi r3,0 ffc15ac4: 40 a2 00 28 bne+ ffc15aec ffc15ac8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15acc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15ad0: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc15ad4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15ad8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc15adc: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15ae0: 38 c6 36 ea addi r6,r6,14058 <== NOT EXECUTED ffc15ae4: 38 80 02 a7 li r4,679 <== NOT EXECUTED ffc15ae8: 4b ff fe 24 b ffc1590c <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); ffc15aec: 80 83 00 00 lwz r4,0(r3) ffc15af0: 7f 25 cb 78 mr r5,r25 ffc15af4: 7f 83 e3 78 mr r3,r28 ffc15af8: 48 00 1a 2d bl ffc17524 dest += to_copy; block++; ffc15afc: 3b 7b 00 01 addi r27,r27,1 my_length -= to_copy; ffc15b00: 7f b9 e8 50 subf r29,r25,r29 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15b04: 80 16 00 00 lwz r0,0(r22) if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; ffc15b08: 7f 5e c2 14 add r26,r30,r24 * are between the offset and the end of the file will result in * reading the data between offset and the end of the file (truncated * read). */ MEMFILE_STATIC ssize_t IMFS_memfile_read( ffc15b0c: 7f 97 f2 14 add r28,r23,r30 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15b10: 7f 9d 00 40 cmplw cr7,r29,r0 ffc15b14: 40 9c ff 98 bge+ cr7,ffc15aac * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { ffc15b18: 2f 9d 00 00 cmpwi cr7,r29,0 ffc15b1c: 41 9e 00 54 beq- cr7,ffc15b70 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc15b20: 7f 64 db 78 mr r4,r27 ffc15b24: 7f e3 fb 78 mr r3,r31 ffc15b28: 38 a0 00 00 li r5,0 ffc15b2c: 4b ff ef 1d bl ffc14a48 assert( block_ptr ); ffc15b30: 2c 03 00 00 cmpwi r3,0 ffc15b34: 40 a2 00 28 bne+ ffc15b5c ffc15b38: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15b3c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15b40: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc15b44: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15b48: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc15b4c: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15b50: 38 c6 36 ea addi r6,r6,14058 <== NOT EXECUTED ffc15b54: 38 80 02 b9 li r4,697 <== NOT EXECUTED ffc15b58: 4b ff fd b4 b ffc1590c <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); ffc15b5c: 80 83 00 00 lwz r4,0(r3) ffc15b60: 7f a5 eb 78 mr r5,r29 ffc15b64: 7f 83 e3 78 mr r3,r28 ffc15b68: 48 00 19 bd bl ffc17524 copied += my_length; ffc15b6c: 7f 5d d2 14 add r26,r29,r26 } IMFS_update_atime( the_jnode ); ffc15b70: 38 61 00 08 addi r3,r1,8 ffc15b74: 38 80 00 00 li r4,0 ffc15b78: 4b fe ff 65 bl ffc05adc ffc15b7c: 80 01 00 08 lwz r0,8(r1) ffc15b80: 90 1f 00 40 stw r0,64(r31) return copied; } ffc15b84: 80 01 00 44 lwz r0,68(r1) ffc15b88: 7f 43 d3 78 mr r3,r26 ffc15b8c: 82 c1 00 18 lwz r22,24(r1) ffc15b90: 7c 08 03 a6 mtlr r0 ffc15b94: 82 e1 00 1c lwz r23,28(r1) ffc15b98: 83 01 00 20 lwz r24,32(r1) ffc15b9c: 83 21 00 24 lwz r25,36(r1) ffc15ba0: 83 41 00 28 lwz r26,40(r1) ffc15ba4: 83 61 00 2c lwz r27,44(r1) ffc15ba8: 83 81 00 30 lwz r28,48(r1) ffc15bac: 83 a1 00 34 lwz r29,52(r1) ffc15bb0: 83 c1 00 38 lwz r30,56(r1) ffc15bb4: 83 e1 00 3c lwz r31,60(r1) ffc15bb8: 38 21 00 40 addi r1,r1,64 ffc15bbc: 4e 80 00 20 blr ffc14da8 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc14da8: 94 21 ff d8 stwu r1,-40(r1) ffc14dac: 7c 08 02 a6 mflr r0 ffc14db0: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc14db4: 7c 7f 1b 79 mr. r31,r3 */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc14db8: 90 01 00 2c stw r0,44(r1) ffc14dbc: 93 21 00 0c stw r25,12(r1) ffc14dc0: 93 41 00 10 stw r26,16(r1) ffc14dc4: 93 61 00 14 stw r27,20(r1) ffc14dc8: 93 81 00 18 stw r28,24(r1) ffc14dcc: 93 a1 00 1c stw r29,28(r1) ffc14dd0: 93 c1 00 20 stw r30,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc14dd4: 40 a2 00 28 bne+ ffc14dfc ffc14dd8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14ddc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14de0: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc14de4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14de8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc14dec: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc14df0: 38 c6 36 b0 addi r6,r6,14000 <== NOT EXECUTED ffc14df4: 38 80 01 ee li r4,494 <== NOT EXECUTED ffc14df8: 48 00 00 30 b ffc14e28 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc14dfc: 80 1f 00 4c lwz r0,76(r31) ffc14e00: 2f 80 00 05 cmpwi cr7,r0,5 ffc14e04: 41 be 00 28 beq+ cr7,ffc14e2c ffc14e08: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14e0c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14e10: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc14e14: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14e18: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc14e1c: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc14e20: 38 c6 36 ba addi r6,r6,14010 <== NOT EXECUTED ffc14e24: 38 80 01 f2 li r4,498 <== NOT EXECUTED ffc14e28: 4b ff 07 05 bl ffc0552c <__assert_func> <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14e2c: 80 1f 00 58 lwz r0,88(r31) /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; ffc14e30: 3d 20 00 00 lis r9,0 ffc14e34: 83 c9 27 24 lwz r30,10020(r9) * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14e38: 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; ffc14e3c: 57 de f0 be rlwinm r30,r30,30,2,31 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14e40: 41 9e 00 10 beq- cr7,ffc14e50 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); ffc14e44: 38 7f 00 58 addi r3,r31,88 ffc14e48: 7f c4 f3 78 mr r4,r30 ffc14e4c: 4b ff fe 41 bl ffc14c8c * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14e50: 80 1f 00 5c lwz r0,92(r31) ffc14e54: 2f 80 00 00 cmpwi cr7,r0,0 ffc14e58: 41 9e 00 54 beq- cr7,ffc14eac memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; iinfo.file; ffc14e64: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc14e68: 48 00 00 28 b ffc14e90 <== NOT EXECUTED } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { ffc14e6c: 80 7f 00 5c lwz r3,92(r31) <== NOT EXECUTED ffc14e70: 57 a0 10 3a rlwinm r0,r29,2,0,29 <== NOT EXECUTED ffc14e74: 7d 23 00 2e lwzx r9,r3,r0 <== NOT EXECUTED ffc14e78: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc14e7c: 41 9e 00 10 beq- cr7,ffc14e8c <== NOT EXECUTED memfile_free_blocks_in_table( ffc14e80: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc14e84: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc14e88: 4b ff fe 05 bl ffc14c8c <== 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 ); ffc14ea0: 38 7f 00 5c addi r3,r31,92 <== NOT EXECUTED ffc14ea4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc14ea8: 4b ff fd e5 bl ffc14c8c <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14eac: 80 1f 00 60 lwz r0,96(r31) ffc14eb0: 2f 80 00 00 cmpwi cr7,r0,0 ffc14eb4: 41 9e 00 90 beq- cr7,ffc14f44 memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; iinfo.file; ffc14ec0: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc14ec4: 48 00 00 64 b ffc14f28 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; ffc14ec8: 81 3f 00 60 lwz r9,96(r31) <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14ecc: 57 b9 10 3a rlwinm r25,r29,2,0,29 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; ffc14ed0: 7f 89 c8 2e lwzx r28,r9,r25 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc14ed4: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc14ed8: 41 9e 00 60 beq- cr7,ffc14f38 <== NOT EXECUTED ffc14edc: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc14ee0: 48 00 00 24 b ffc14f04 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); ffc14ef0: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc14ef4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc14ef8: 4b ff fd 95 bl ffc14c8c <== 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 if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( ffc14f14: 80 7f 00 60 lwz r3,96(r31) <== NOT EXECUTED ffc14f18: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( ffc14f38: 38 7f 00 60 addi r3,r31,96 <== NOT EXECUTED ffc14f3c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc14f40: 4b ff fd 4d bl ffc14c8c <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } ffc14f44: 80 01 00 2c lwz r0,44(r1) ffc14f48: 38 60 00 00 li r3,0 ffc14f4c: 83 21 00 0c lwz r25,12(r1) ffc14f50: 7c 08 03 a6 mtlr r0 ffc14f54: 83 41 00 10 lwz r26,16(r1) ffc14f58: 83 61 00 14 lwz r27,20(r1) ffc14f5c: 83 81 00 18 lwz r28,24(r1) ffc14f60: 83 a1 00 1c lwz r29,28(r1) ffc14f64: 83 c1 00 20 lwz r30,32(r1) ffc14f68: 83 e1 00 24 lwz r31,36(r1) ffc14f6c: 38 21 00 28 addi r1,r1,40 ffc14f70: 4e 80 00 20 blr ffc14d44 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc14d44: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc14d48: 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 ); ffc14d4c: 38 a0 00 00 li r5,0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc14d50: 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 ); ffc14d54: 4b ff fc f5 bl ffc14a48 <== NOT EXECUTED assert( block_ptr ); ffc14d58: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc14d5c: 40 a2 00 28 bne+ ffc14d84 <== NOT EXECUTED ffc14d60: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14d64: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14d68: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc14d6c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14d70: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc14d74: 38 a5 00 40 addi r5,r5,64 <== NOT EXECUTED ffc14d78: 38 c6 36 ea addi r6,r6,14058 <== NOT EXECUTED ffc14d7c: 38 80 01 96 li r4,406 <== NOT EXECUTED ffc14d80: 4b ff 07 ad bl ffc0552c <__assert_func> <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; ffc14d84: 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; ffc14d88: 80 69 00 00 lwz r3,0(r9) <== NOT EXECUTED *block_ptr = 0; ffc14d8c: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED memfile_free_block( ptr ); ffc14d90: 4b ff fc 45 bl ffc149d4 <== NOT EXECUTED } return 1; } ffc14d94: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc14d98: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc14d9c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc14da0: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc14da4: 4e 80 00 20 blr <== NOT EXECUTED ffc15454 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc15454: 94 21 ff c8 stwu r1,-56(r1) ffc15458: 7c 08 02 a6 mflr r0 ffc1545c: 93 e1 00 34 stw r31,52(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15460: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc15464: 93 61 00 24 stw r27,36(r1) ffc15468: 7d 1b 43 78 mr r27,r8 ffc1546c: 93 81 00 28 stw r28,40(r1) ffc15470: 7c fc 3b 78 mr r28,r7 ffc15474: 93 a1 00 2c stw r29,44(r1) ffc15478: 7c bd 2b 78 mr r29,r5 ffc1547c: 93 c1 00 30 stw r30,48(r1) ffc15480: 7c de 33 78 mr r30,r6 ffc15484: 90 01 00 3c stw r0,60(r1) ffc15488: 93 01 00 18 stw r24,24(r1) ffc1548c: 93 21 00 1c stw r25,28(r1) ffc15490: 93 41 00 20 stw r26,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15494: 40 a2 00 28 bne+ ffc154bc ffc15498: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1549c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc154a0: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc154a4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc154a8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc154ac: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc154b0: 38 c6 36 b0 addi r6,r6,14000 <== NOT EXECUTED ffc154b4: 38 80 02 e3 li r4,739 <== NOT EXECUTED ffc154b8: 48 00 00 30 b ffc154e8 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc154bc: 80 1f 00 4c lwz r0,76(r31) ffc154c0: 2f 80 00 05 cmpwi cr7,r0,5 ffc154c4: 41 be 00 28 beq+ cr7,ffc154ec ffc154c8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc154cc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc154d0: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc154d4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc154d8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc154dc: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc154e0: 38 c6 36 ba addi r6,r6,14010 <== NOT EXECUTED ffc154e4: 38 80 02 e7 li r4,743 <== NOT EXECUTED ffc154e8: 4b ff 00 45 bl ffc0552c <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); ffc154ec: 2f 87 00 00 cmpwi cr7,r7,0 ffc154f0: 40 be 00 28 bne+ cr7,ffc15518 ffc154f4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc154f8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc154fc: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc15500: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15504: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc15508: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc1550c: 38 c6 36 f4 addi r6,r6,14068 <== NOT EXECUTED ffc15510: 38 80 02 ef li r4,751 <== NOT EXECUTED ffc15514: 4b ff ff d4 b ffc154e8 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) ffc15518: 2f 88 00 00 cmpwi cr7,r8,0 ffc1551c: 40 be 00 10 bne+ cr7,ffc1552c rtems_set_errno_and_return_minus_one( EINVAL ); ffc15520: 48 00 14 1d bl ffc1693c <__errno> <== NOT EXECUTED ffc15524: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc15528: 48 00 00 40 b ffc15568 <== NOT EXECUTED * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { ffc1552c: 80 1f 00 50 lwz r0,80(r31) ffc15530: 7c c8 32 14 add r6,r8,r6 ffc15534: 2f 80 00 00 cmpwi cr7,r0,0 ffc15538: 41 9c 00 14 blt- cr7,ffc1554c ffc1553c: 40 be 00 38 bne+ cr7,ffc15574 ffc15540: 80 1f 00 54 lwz r0,84(r31) ffc15544: 7f 80 30 40 cmplw cr7,r0,r6 ffc15548: 40 9c 00 2c bge- cr7,ffc15574 status = IMFS_memfile_extend( the_jnode, last_byte ); ffc1554c: 7f e3 fb 78 mr r3,r31 ffc15550: 38 a0 00 00 li r5,0 ffc15554: 4b ff fc 01 bl ffc15154 if ( status ) ffc15558: 2f 83 00 00 cmpwi cr7,r3,0 ffc1555c: 41 be 00 18 beq+ cr7,ffc15574 rtems_set_errno_and_return_minus_one( ENOSPC ); ffc15560: 48 00 13 dd bl ffc1693c <__errno> <== NOT EXECUTED ffc15564: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc15568: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1556c: 3b 40 ff ff li r26,-1 <== NOT EXECUTED ffc15570: 48 00 01 a0 b ffc15710 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15574: 3d 20 00 00 lis r9,0 ffc15578: 83 49 27 24 lwz r26,10020(r9) ffc1557c: 7f c4 f3 78 mr r4,r30 ffc15580: 7f a3 eb 78 mr r3,r29 ffc15584: 7f 58 fe 70 srawi r24,r26,31 ffc15588: 7f 05 c3 78 mr r5,r24 ffc1558c: 7f 46 d3 78 mr r6,r26 ffc15590: 48 00 b6 55 bl ffc20be4 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15594: 7f a3 eb 78 mr r3,r29 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15598: 7c 99 23 78 mr r25,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc1559c: 7f 05 c3 78 mr r5,r24 ffc155a0: 7f c4 f3 78 mr r4,r30 ffc155a4: 7f 46 d3 78 mr r6,r26 ffc155a8: 48 00 b2 39 bl ffc207e0 <__divdi3> if ( start_offset ) { ffc155ac: 2f 99 00 00 cmpwi cr7,r25,0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc155b0: 7c 9e 23 78 mr r30,r4 if ( start_offset ) { ffc155b4: 40 9e 00 0c bne- cr7,ffc155c0 ffc155b8: 3b 40 00 00 li r26,0 ffc155bc: 48 00 00 6c b ffc15628 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 ); ffc155c0: 7f e3 fb 78 mr r3,r31 ffc155c4: 38 a0 00 00 li r5,0 ffc155c8: 4b ff f4 81 bl ffc14a48 assert( block_ptr ); ffc155cc: 2c 03 00 00 cmpwi r3,0 ffc155d0: 40 a2 00 28 bne+ ffc155f8 ffc155d4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc155d8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc155dc: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc155e0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc155e4: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc155e8: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc155ec: 38 c6 36 ea addi r6,r6,14058 <== NOT EXECUTED ffc155f0: 38 80 03 1c li r4,796 <== NOT EXECUTED ffc155f4: 4b ff fe f4 b ffc154e8 <== 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; ffc155f8: 7f 59 d0 50 subf r26,r25,r26 ffc155fc: 7f 9a d8 40 cmplw cr7,r26,r27 ffc15600: 40 9d 00 08 ble- cr7,ffc15608 ffc15604: 7f 7a db 78 mr r26,r27 if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); ffc15608: 80 63 00 00 lwz r3,0(r3) ffc1560c: 7f 84 e3 78 mr r4,r28 ffc15610: 7f 45 d3 78 mr r5,r26 ffc15614: 7c 63 ca 14 add r3,r3,r25 ffc15618: 48 00 1f 0d bl ffc17524 src += to_copy; ffc1561c: 7f 9c d2 14 add r28,r28,r26 block++; ffc15620: 3b de 00 01 addi r30,r30,1 my_length -= to_copy; ffc15624: 7f 7a d8 50 subf r27,r26,r27 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15628: 3d 20 00 00 lis r9,0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc1562c: 3b 29 27 24 addi r25,r9,10020 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15630: 83 a9 27 24 lwz r29,10020(r9) while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15634: 48 00 00 60 b ffc15694 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc15638: 7f e3 fb 78 mr r3,r31 ffc1563c: 7f c4 f3 78 mr r4,r30 ffc15640: 38 a0 00 00 li r5,0 ffc15644: 4b ff f4 05 bl ffc14a48 assert( block_ptr ); ffc15648: 2c 03 00 00 cmpwi r3,0 ffc1564c: 40 a2 00 28 bne+ ffc15674 ffc15650: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15654: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15658: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc1565c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15660: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc15664: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc15668: 38 c6 36 ea addi r6,r6,14058 <== NOT EXECUTED ffc1566c: 38 80 03 30 li r4,816 <== NOT EXECUTED ffc15670: 4b ff fe 78 b ffc154e8 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); ffc15674: 80 63 00 00 lwz r3,0(r3) ffc15678: 7f 84 e3 78 mr r4,r28 ffc1567c: 7f a5 eb 78 mr r5,r29 ffc15680: 48 00 1e a5 bl ffc17524 src += to_copy; ffc15684: 7f 9c ea 14 add r28,r28,r29 block++; ffc15688: 3b de 00 01 addi r30,r30,1 my_length -= to_copy; ffc1568c: 7f 7d d8 50 subf r27,r29,r27 * * This routine writes the specified data buffer into the in memory * file pointed to by the_jnode. The file is extended as needed. */ MEMFILE_STATIC ssize_t IMFS_memfile_write( ffc15690: 7f 5a ea 14 add r26,r26,r29 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15694: 80 19 00 00 lwz r0,0(r25) ffc15698: 7f 9b 00 40 cmplw cr7,r27,r0 ffc1569c: 40 9c ff 9c bge+ cr7,ffc15638 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { ffc156a0: 2f 9b 00 00 cmpwi cr7,r27,0 ffc156a4: 41 9e 00 54 beq- cr7,ffc156f8 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc156a8: 7f c4 f3 78 mr r4,r30 ffc156ac: 7f e3 fb 78 mr r3,r31 ffc156b0: 38 a0 00 00 li r5,0 ffc156b4: 4b ff f3 95 bl ffc14a48 assert( block_ptr ); ffc156b8: 2c 03 00 00 cmpwi r3,0 ffc156bc: 40 a2 00 28 bne+ ffc156e4 ffc156c0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc156c4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc156c8: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc156cc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc156d0: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc156d4: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc156d8: 38 c6 36 ea addi r6,r6,14058 <== NOT EXECUTED ffc156dc: 38 80 03 46 li r4,838 <== NOT EXECUTED ffc156e0: 4b ff fe 08 b ffc154e8 <== NOT EXECUTED if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, my_length ); ffc156e4: 80 63 00 00 lwz r3,0(r3) ffc156e8: 7f 84 e3 78 mr r4,r28 ffc156ec: 7f 65 db 78 mr r5,r27 ffc156f0: 48 00 1e 35 bl ffc17524 my_length = 0; copied += to_copy; ffc156f4: 7f 5a da 14 add r26,r26,r27 } IMFS_mtime_ctime_update( the_jnode ); ffc156f8: 38 61 00 08 addi r3,r1,8 ffc156fc: 38 80 00 00 li r4,0 ffc15700: 4b ff 03 dd bl ffc05adc ffc15704: 80 01 00 08 lwz r0,8(r1) ffc15708: 90 1f 00 48 stw r0,72(r31) ffc1570c: 90 1f 00 44 stw r0,68(r31) return copied; } ffc15710: 80 01 00 3c lwz r0,60(r1) ffc15714: 7f 43 d3 78 mr r3,r26 ffc15718: 83 01 00 18 lwz r24,24(r1) ffc1571c: 7c 08 03 a6 mtlr r0 ffc15720: 83 21 00 1c lwz r25,28(r1) ffc15724: 83 41 00 20 lwz r26,32(r1) ffc15728: 83 61 00 24 lwz r27,36(r1) ffc1572c: 83 81 00 28 lwz r28,40(r1) ffc15730: 83 a1 00 2c lwz r29,44(r1) ffc15734: 83 c1 00 30 lwz r30,48(r1) ffc15738: 83 e1 00 34 lwz r31,52(r1) ffc1573c: 38 21 00 38 addi r1,r1,56 ffc15740: 4e 80 00 20 blr ffc0cc80 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0cc80: 94 21 ff 90 stwu r1,-112(r1) ffc0cc84: 7c 08 02 a6 mflr r0 ffc0cc88: 93 61 00 5c stw r27,92(r1) ffc0cc8c: 7c fb 3b 78 mr r27,r7 ffc0cc90: 90 01 00 74 stw r0,116(r1) ffc0cc94: 93 81 00 60 stw r28,96(r1) ffc0cc98: 7c 7c 1b 78 mr r28,r3 ffc0cc9c: 93 a1 00 64 stw r29,100(r1) ffc0cca0: 7c bd 2b 78 mr r29,r5 ffc0cca4: 93 c1 00 68 stw r30,104(r1) ffc0cca8: 7c de 33 78 mr r30,r6 ffc0ccac: 93 e1 00 6c stw r31,108(r1) ffc0ccb0: 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 ); ffc0ccb4: 48 00 4b f5 bl ffc118a8 ffc0ccb8: 38 a1 00 28 addi r5,r1,40 ffc0ccbc: 7c 64 1b 78 mr r4,r3 ffc0ccc0: 38 c1 00 08 addi r6,r1,8 ffc0ccc4: 7f 83 e3 78 mr r3,r28 ffc0ccc8: 4b ff fd b5 bl ffc0ca7c /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) ffc0cccc: 57 e0 04 26 rlwinm r0,r31,0,16,19 ffc0ccd0: 2f 80 40 00 cmpwi cr7,r0,16384 ffc0ccd4: 41 9e 00 50 beq- cr7,ffc0cd24 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) ffc0ccd8: 39 20 00 00 li r9,0 ffc0ccdc: 61 29 80 00 ori r9,r9,32768 ffc0cce0: 7f 80 48 00 cmpw cr7,r0,r9 ffc0cce4: 38 80 00 05 li r4,5 ffc0cce8: 41 9e 00 40 beq- cr7,ffc0cd28 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { ffc0ccec: 2f 80 60 00 cmpwi cr7,r0,24576 ffc0ccf0: 41 9e 00 0c beq- cr7,ffc0ccfc ffc0ccf4: 2f 80 20 00 cmpwi cr7,r0,8192 ffc0ccf8: 40 be 00 14 bne+ cr7,ffc0cd0c type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); ffc0ccfc: 93 a1 00 10 stw r29,16(r1) ffc0cd00: 38 80 00 02 li r4,2 ffc0cd04: 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) ) { ffc0cd08: 48 00 00 20 b ffc0cd28 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) ffc0cd0c: 2f 80 10 00 cmpwi cr7,r0,4096 ffc0cd10: 38 80 00 07 li r4,7 ffc0cd14: 41 be 00 14 beq+ cr7,ffc0cd28 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); ffc0cd18: 48 00 38 95 bl ffc105ac <__errno> <== NOT EXECUTED ffc0cd1c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0cd20: 48 00 00 30 b ffc0cd50 <== NOT EXECUTED ffc0cd24: 38 80 00 01 li r4,1 * was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( ffc0cd28: 7f 63 db 78 mr r3,r27 ffc0cd2c: 7f e6 fb 78 mr r6,r31 ffc0cd30: 38 a1 00 28 addi r5,r1,40 ffc0cd34: 38 e1 00 10 addi r7,r1,16 ffc0cd38: 48 00 26 e9 bl ffc0f420 new_name, mode, &info ); if ( !new_node ) ffc0cd3c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cd40: 38 60 00 00 li r3,0 ffc0cd44: 40 be 00 14 bne+ cr7,ffc0cd58 rtems_set_errno_and_return_minus_one( ENOMEM ); ffc0cd48: 48 00 38 65 bl ffc105ac <__errno> <== NOT EXECUTED ffc0cd4c: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0cd50: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cd54: 38 60 ff ff li r3,-1 <== NOT EXECUTED return 0; } ffc0cd58: 80 01 00 74 lwz r0,116(r1) ffc0cd5c: 83 61 00 5c lwz r27,92(r1) ffc0cd60: 7c 08 03 a6 mtlr r0 ffc0cd64: 83 81 00 60 lwz r28,96(r1) ffc0cd68: 83 a1 00 64 lwz r29,100(r1) ffc0cd6c: 83 c1 00 68 lwz r30,104(r1) ffc0cd70: 83 e1 00 6c lwz r31,108(r1) ffc0cd74: 38 21 00 70 addi r1,r1,112 ffc0cd78: 4e 80 00 20 blr ffc0500c : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc0500c: 7c 08 02 a6 mflr r0 ffc05010: 94 21 ff f8 stwu r1,-8(r1) ffc05014: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc05018: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc0501c: 80 09 00 4c lwz r0,76(r9) ffc05020: 2f 80 00 01 cmpwi cr7,r0,1 ffc05024: 41 be 00 18 beq+ cr7,ffc0503c rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc05028: 48 01 19 15 bl ffc1693c <__errno> <== NOT EXECUTED ffc0502c: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc05030: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05034: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05038: 48 00 00 0c b ffc05044 <== NOT EXECUTED /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; ffc0503c: 90 69 00 5c stw r3,92(r9) ffc05040: 38 60 00 00 li r3,0 return 0; } ffc05044: 80 01 00 0c lwz r0,12(r1) ffc05048: 38 21 00 08 addi r1,r1,8 ffc0504c: 7c 08 03 a6 mtlr r0 ffc05050: 4e 80 00 20 blr ffc05d90 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc05d90: 94 21 ff f0 stwu r1,-16(r1) ffc05d94: 7c 08 02 a6 mflr r0 ffc05d98: 93 e1 00 0c stw r31,12(r1) assert( the_jnode ); ffc05d9c: 7c 7f 1b 79 mr. r31,r3 */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc05da0: 90 01 00 14 stw r0,20(r1) ffc05da4: 93 c1 00 08 stw r30,8(r1) assert( the_jnode ); ffc05da8: 40 a2 00 24 bne+ ffc05dcc ffc05dac: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05db0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05db4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05db8: 38 63 68 7c addi r3,r3,26748 <== NOT EXECUTED ffc05dbc: 38 a5 68 54 addi r5,r5,26708 <== NOT EXECUTED ffc05dc0: 38 c6 68 c5 addi r6,r6,26821 <== NOT EXECUTED ffc05dc4: 38 80 00 38 li r4,56 <== NOT EXECUTED ffc05dc8: 48 00 00 e8 b ffc05eb0 <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); ffc05dcc: 3f c0 00 00 lis r30,0 ffc05dd0: 81 3e 27 0c lwz r9,9996(r30) ffc05dd4: 38 7f 00 0c addi r3,r31,12 ffc05dd8: 80 89 00 08 lwz r4,8(r9) ffc05ddc: 48 01 04 79 bl ffc16254 switch( the_jnode->type ) { ffc05de0: 80 bf 00 4c lwz r5,76(r31) ffc05de4: 38 05 ff ff addi r0,r5,-1 ffc05de8: 2b 80 00 06 cmplwi cr7,r0,6 ffc05dec: 41 9d 01 30 bgt- cr7,ffc05f1c ffc05df0: 3d 20 ff c2 lis r9,-62 ffc05df4: 39 29 68 38 addi r9,r9,26680 ffc05df8: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc05dfc: 7c 09 00 2e lwzx r0,r9,r0 ffc05e00: 7d 20 4a 14 add r9,r0,r9 ffc05e04: 7d 29 03 a6 mtctr r9 ffc05e08: 4e 80 04 20 bctr case IMFS_DIRECTORY: fprintf(stdout, "/" ); ffc05e0c: 81 3e 27 0c lwz r9,9996(r30) ffc05e10: 38 60 00 2f li r3,47 ffc05e14: 80 89 00 08 lwz r4,8(r9) ffc05e18: 48 01 02 d1 bl ffc160e8 break; ffc05e1c: 48 00 01 38 b ffc05f54 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", ffc05e20: 81 3e 27 0c lwz r9,9996(r30) ffc05e24: 3c 80 ff c2 lis r4,-62 ffc05e28: 80 df 00 54 lwz r6,84(r31) ffc05e2c: 38 84 68 cf addi r4,r4,26831 ffc05e30: 80 69 00 08 lwz r3,8(r9) ffc05e34: 80 bf 00 50 lwz r5,80(r31) ffc05e38: 48 00 00 1c b ffc05e54 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", ffc05e3c: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc05e40: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc05e44: 80 df 00 58 lwz r6,88(r31) <== NOT EXECUTED ffc05e48: 38 84 68 e2 addi r4,r4,26850 <== NOT EXECUTED ffc05e4c: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc05e50: 80 bf 00 54 lwz r5,84(r31) <== NOT EXECUTED ffc05e54: 4c c6 31 82 crclr 4*cr1+eq ffc05e58: 48 01 01 81 bl ffc15fd8 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; ffc05e5c: 48 00 00 f8 b ffc05f54 the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", ffc05e60: 81 3e 27 0c lwz r9,9996(r30) ffc05e64: 3c 80 ff c2 lis r4,-62 ffc05e68: 80 bf 00 54 lwz r5,84(r31) ffc05e6c: 38 84 68 f1 addi r4,r4,26865 ffc05e70: 80 69 00 08 lwz r3,8(r9) ffc05e74: 4c c6 31 82 crclr 4*cr1+eq ffc05e78: 48 01 01 61 bl ffc15fd8 (uint32_t)the_jnode->info.file.size ); #endif break; ffc05e7c: 48 00 00 d8 b ffc05f54 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); ffc05e80: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc05e84: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05e88: 38 63 68 fd addi r3,r3,26877 <== NOT EXECUTED ffc05e8c: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc05e90: 48 01 03 c5 bl ffc16254 <== NOT EXECUTED assert(0); ffc05e94: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05e98: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05e9c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05ea0: 38 63 68 7c addi r3,r3,26748 <== NOT EXECUTED ffc05ea4: 38 a5 68 54 addi r5,r5,26708 <== NOT EXECUTED ffc05ea8: 38 c6 59 3d addi r6,r6,22845 <== NOT EXECUTED ffc05eac: 38 80 00 5d li r4,93 <== NOT EXECUTED ffc05eb0: 48 00 0a a5 bl ffc06954 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); ffc05eb4: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc05eb8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05ebc: 38 63 68 fd addi r3,r3,26877 <== NOT EXECUTED ffc05ec0: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc05ec4: 48 01 03 91 bl ffc16254 <== NOT EXECUTED assert(0); ffc05ec8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05ecc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05ed0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05ed4: 38 63 68 7c addi r3,r3,26748 <== NOT EXECUTED ffc05ed8: 38 a5 68 54 addi r5,r5,26708 <== NOT EXECUTED ffc05edc: 38 c6 59 3d addi r6,r6,22845 <== NOT EXECUTED ffc05ee0: 38 80 00 62 li r4,98 <== NOT EXECUTED ffc05ee4: 4b ff ff cc b ffc05eb0 <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); ffc05ee8: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc05eec: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05ef0: 38 63 69 11 addi r3,r3,26897 <== NOT EXECUTED ffc05ef4: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc05ef8: 48 01 03 5d bl ffc16254 <== NOT EXECUTED assert(0); ffc05efc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05f00: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05f04: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05f08: 38 63 68 7c addi r3,r3,26748 <== NOT EXECUTED ffc05f0c: 38 a5 68 54 addi r5,r5,26708 <== NOT EXECUTED ffc05f10: 38 c6 59 3d addi r6,r6,22845 <== NOT EXECUTED ffc05f14: 38 80 00 67 li r4,103 <== NOT EXECUTED ffc05f18: 4b ff ff 98 b ffc05eb0 <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); ffc05f1c: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc05f20: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc05f24: 38 84 69 24 addi r4,r4,26916 <== NOT EXECUTED ffc05f28: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc05f2c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc05f30: 48 01 00 a9 bl ffc15fd8 <== NOT EXECUTED assert(0); ffc05f34: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05f38: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05f3c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05f40: 38 63 68 7c addi r3,r3,26748 <== NOT EXECUTED ffc05f44: 38 a5 68 54 addi r5,r5,26708 <== NOT EXECUTED ffc05f48: 38 c6 59 3d addi r6,r6,22845 <== NOT EXECUTED ffc05f4c: 38 80 00 6c li r4,108 <== NOT EXECUTED ffc05f50: 4b ff ff 60 b ffc05eb0 <== NOT EXECUTED break; } puts(""); ffc05f54: 3c 60 ff c2 lis r3,-62 ffc05f58: 38 63 6b 56 addi r3,r3,27478 ffc05f5c: 48 01 22 b5 bl ffc18210 } ffc05f60: 80 01 00 14 lwz r0,20(r1) ffc05f64: 83 c1 00 08 lwz r30,8(r1) ffc05f68: 7c 08 03 a6 mtlr r0 ffc05f6c: 83 e1 00 0c lwz r31,12(r1) ffc05f70: 38 21 00 10 addi r1,r1,16 ffc05f74: 4e 80 00 20 blr ffc05060 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { ffc05060: 7c 08 02 a6 mflr r0 ffc05064: 94 21 ff f8 stwu r1,-8(r1) ffc05068: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; int i; node = loc->node_access; ffc0506c: 81 23 00 00 lwz r9,0(r3) if ( node->type != IMFS_SYM_LINK ) ffc05070: 80 09 00 4c lwz r0,76(r9) ffc05074: 2f 80 00 04 cmpwi cr7,r0,4 ffc05078: 40 9e 00 1c bne- cr7,ffc05094 ffc0507c: 2f 85 00 00 cmpwi cr7,r5,0 ffc05080: 38 60 00 00 li r3,0 ffc05084: 38 a5 00 01 addi r5,r5,1 ffc05088: 40 be 00 28 bne+ cr7,ffc050b0 ffc0508c: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05090: 48 00 00 20 b ffc050b0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); ffc05094: 48 01 18 a9 bl ffc1693c <__errno> <== NOT EXECUTED ffc05098: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0509c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc050a0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc050a4: 48 00 00 24 b ffc050c8 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; ffc050a8: 7c 04 19 ae stbx r0,r4,r3 node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc050ac: 38 63 00 01 addi r3,r3,1 ffc050b0: 34 a5 ff ff addic. r5,r5,-1 ffc050b4: 41 82 00 14 beq- ffc050c8 ffc050b8: 81 69 00 50 lwz r11,80(r9) ffc050bc: 7c 0b 18 ae lbzx r0,r11,r3 ffc050c0: 2f 80 00 00 cmpwi cr7,r0,0 ffc050c4: 40 9e ff e4 bne+ cr7,ffc050a8 buf[i] = node->info.sym_link.name[i]; return i; } ffc050c8: 80 01 00 0c lwz r0,12(r1) ffc050cc: 38 21 00 08 addi r1,r1,8 ffc050d0: 7c 08 03 a6 mtlr r0 ffc050d4: 4e 80 00 20 blr ffc050d8 : 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 */ ) { ffc050d8: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc050dc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc050e0: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc050e4: 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; ffc050e8: 83 e4 00 00 lwz r31,0(r4) <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); ffc050ec: 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 */ ) { ffc050f0: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc050f4: 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 ); ffc050f8: 38 7f 00 0c addi r3,r31,12 <== NOT EXECUTED ffc050fc: 38 a0 00 20 li r5,32 <== NOT EXECUTED ffc05100: 48 01 2b 99 bl ffc17c98 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) ffc05104: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc05108: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0510c: 41 9e 00 0c beq- cr7,ffc05118 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc05110: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05114: 48 00 57 71 bl ffc0a884 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; ffc05118: 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 ); ffc0511c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED the_jnode->Parent = new_parent; ffc05120: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED ffc05124: 38 63 00 50 addi r3,r3,80 <== NOT EXECUTED ffc05128: 48 00 57 2d bl ffc0a854 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); ffc0512c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc05130: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05134: 48 00 09 a9 bl ffc05adc <== NOT EXECUTED ffc05138: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED return 0; } ffc0513c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc05140: 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 ); ffc05144: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED return 0; } ffc05148: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0514c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05150: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc05154: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05158: 4e 80 00 20 blr <== NOT EXECUTED ffc0cd88 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc0cd88: 94 21 ff e0 stwu r1,-32(r1) ffc0cd8c: 7c 08 02 a6 mflr r0 ffc0cd90: 90 01 00 24 stw r0,36(r1) ffc0cd94: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc0cd98: 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 */ ) { ffc0cd9c: 93 c1 00 18 stw r30,24(r1) ffc0cda0: 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 ) { ffc0cda4: 80 1f 00 08 lwz r0,8(r31) ffc0cda8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cdac: 41 9e 00 14 beq- cr7,ffc0cdc0 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0cdb0: 7f e3 fb 78 mr r3,r31 ffc0cdb4: 48 00 0d cd bl ffc0db80 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc0cdb8: 38 00 00 00 li r0,0 ffc0cdbc: 90 1f 00 08 stw r0,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0cdc0: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc0cdc4: 38 80 00 00 li r4,0 ffc0cdc8: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0cdcc: 38 09 ff ff addi r0,r9,-1 ffc0cdd0: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc0cdd4: 48 00 03 b5 bl ffc0d188 ffc0cdd8: 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) ) { ffc0cddc: 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 ); ffc0cde0: 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) ) { ffc0cde4: 48 00 04 85 bl ffc0d268 ffc0cde8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cdec: 40 9e 00 50 bne- cr7,ffc0ce3c ffc0cdf0: a0 1f 00 34 lhz r0,52(r31) ffc0cdf4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cdf8: 40 9e 00 44 bne- cr7,ffc0ce3c /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc0cdfc: 3d 20 00 00 lis r9,0 ffc0ce00: 81 7e 00 00 lwz r11,0(r30) ffc0ce04: 81 29 26 9c lwz r9,9884(r9) ffc0ce08: 81 49 00 04 lwz r10,4(r9) ffc0ce0c: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0ce10: 40 be 00 08 bne+ cr7,ffc0ce18 rtems_filesystem_current.node_access = NULL; ffc0ce14: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { ffc0ce18: 80 1f 00 4c lwz r0,76(r31) ffc0ce1c: 2f 80 00 04 cmpwi cr7,r0,4 ffc0ce20: 40 be 00 14 bne+ cr7,ffc0ce34 if ( the_jnode->info.sym_link.name ) ffc0ce24: 80 7f 00 50 lwz r3,80(r31) ffc0ce28: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ce2c: 41 9e 00 08 beq- cr7,ffc0ce34 free( (void*) the_jnode->info.sym_link.name ); ffc0ce30: 4b ff 74 15 bl ffc04244 } free( the_jnode ); ffc0ce34: 7f e3 fb 78 mr r3,r31 ffc0ce38: 4b ff 74 0d bl ffc04244 } return 0; } ffc0ce3c: 80 01 00 24 lwz r0,36(r1) ffc0ce40: 38 60 00 00 li r3,0 ffc0ce44: 83 c1 00 18 lwz r30,24(r1) ffc0ce48: 7c 08 03 a6 mtlr r0 ffc0ce4c: 83 e1 00 1c lwz r31,28(r1) ffc0ce50: 38 21 00 20 addi r1,r1,32 ffc0ce54: 4e 80 00 20 blr ffc0ce58 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { ffc0ce58: 7c 08 02 a6 mflr r0 ffc0ce5c: 94 21 ff f8 stwu r1,-8(r1) ffc0ce60: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; ffc0ce64: 81 23 00 00 lwz r9,0(r3) switch ( the_jnode->type ) { ffc0ce68: 81 69 00 4c lwz r11,76(r9) ffc0ce6c: 38 0b ff fe addi r0,r11,-2 ffc0ce70: 2b 80 00 05 cmplwi cr7,r0,5 ffc0ce74: 41 9d 00 54 bgt- cr7,ffc0cec8 ffc0ce78: 3d 60 ff c2 lis r11,-62 ffc0ce7c: 39 6b ca a0 addi r11,r11,-13664 ffc0ce80: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0ce84: 7c 0b 00 2e lwzx r0,r11,r0 ffc0ce88: 7d 60 5a 14 add r11,r0,r11 ffc0ce8c: 7d 69 03 a6 mtctr r11 ffc0ce90: 4e 80 04 20 bctr case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); ffc0ce94: 81 69 00 54 lwz r11,84(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc0ce98: 80 09 00 50 lwz r0,80(r9) ffc0ce9c: 91 64 00 1c stw r11,28(r4) ffc0cea0: 90 04 00 18 stw r0,24(r4) break; ffc0cea4: 48 00 00 38 b ffc0cedc case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; ffc0cea8: 81 69 00 50 lwz r11,80(r9) ffc0ceac: 81 89 00 54 lwz r12,84(r9) ffc0ceb0: 48 00 00 0c b ffc0cebc case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; ffc0ceb4: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc0ceb8: 39 80 00 00 li r12,0 <== NOT EXECUTED ffc0cebc: 91 64 00 20 stw r11,32(r4) ffc0cec0: 91 84 00 24 stw r12,36(r4) break; ffc0cec4: 48 00 00 18 b ffc0cedc default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0cec8: 48 00 36 e5 bl ffc105ac <__errno> <== NOT EXECUTED ffc0cecc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0ced0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ced4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0ced8: 48 00 00 48 b ffc0cf20 <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; ffc0cedc: 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; ffc0cee0: 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; ffc0cee4: a1 69 00 34 lhz r11,52(r9) buf->st_ino = the_jnode->st_ino; ffc0cee8: 90 04 00 08 stw r0,8(r4) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; ffc0ceec: 80 09 00 40 lwz r0,64(r9) rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc0cef0: 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; ffc0cef4: 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; ffc0cef8: a1 69 00 3c lhz r11,60(r9) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc0cefc: 80 09 00 44 lwz r0,68(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; ffc0cf00: 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; ffc0cf04: 90 04 00 30 stw r0,48(r4) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; ffc0cf08: 81 69 00 30 lwz r11,48(r9) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0cf0c: 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; ffc0cf10: 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; ffc0cf14: 91 44 00 38 stw r10,56(r4) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; ffc0cf18: 91 64 00 0c stw r11,12(r4) 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; ffc0cf1c: 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; } ffc0cf20: 80 01 00 0c lwz r0,12(r1) ffc0cf24: 38 21 00 08 addi r1,r1,8 ffc0cf28: 7c 08 03 a6 mtlr r0 ffc0cf2c: 4e 80 00 20 blr ffc0515c : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { ffc0515c: 94 21 ff 98 stwu r1,-104(r1) ffc05160: 7c 08 02 a6 mflr r0 ffc05164: 93 c1 00 60 stw r30,96(r1) ffc05168: 7c 7e 1b 78 mr r30,r3 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); ffc0516c: 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 ) { ffc05170: 90 01 00 6c stw r0,108(r1) ffc05174: 93 81 00 58 stw r28,88(r1) ffc05178: 7c bc 2b 78 mr r28,r5 ffc0517c: 93 a1 00 5c stw r29,92(r1) ffc05180: 7c 9d 23 78 mr r29,r4 ffc05184: 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 ); ffc05188: 48 01 2a 75 bl ffc17bfc ffc0518c: 3b e1 00 28 addi r31,r1,40 ffc05190: 7c 64 1b 78 mr r4,r3 ffc05194: 7f e5 fb 78 mr r5,r31 ffc05198: 38 c1 00 08 addi r6,r1,8 ffc0519c: 7f 83 e3 78 mr r3,r28 ffc051a0: 48 00 d6 f9 bl ffc12898 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); ffc051a4: 7f a3 eb 78 mr r3,r29 ffc051a8: 48 01 29 bd bl ffc17b64 if (info.sym_link.name == NULL) { ffc051ac: 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); ffc051b0: 90 61 00 10 stw r3,16(r1) if (info.sym_link.name == NULL) { ffc051b4: 41 9e 00 34 beq- cr7,ffc051e8 * 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( ffc051b8: 38 c0 00 00 li r6,0 ffc051bc: 7f c3 f3 78 mr r3,r30 ffc051c0: 7f e5 fb 78 mr r5,r31 ffc051c4: 60 c6 a1 ff ori r6,r6,41471 ffc051c8: 38 80 00 04 li r4,4 ffc051cc: 38 e1 00 10 addi r7,r1,16 ffc051d0: 48 00 c7 c1 bl ffc11990 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { ffc051d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc051d8: 38 60 00 00 li r3,0 ffc051dc: 40 be 00 1c bne+ cr7,ffc051f8 free(info.sym_link.name); ffc051e0: 80 61 00 10 lwz r3,16(r1) <== NOT EXECUTED ffc051e4: 48 00 08 31 bl ffc05a14 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc051e8: 48 01 17 55 bl ffc1693c <__errno> <== NOT EXECUTED ffc051ec: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc051f0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc051f4: 38 60 ff ff li r3,-1 <== NOT EXECUTED } return 0; } ffc051f8: 80 01 00 6c lwz r0,108(r1) ffc051fc: 83 81 00 58 lwz r28,88(r1) ffc05200: 7c 08 03 a6 mtlr r0 ffc05204: 83 a1 00 5c lwz r29,92(r1) ffc05208: 83 c1 00 60 lwz r30,96(r1) ffc0520c: 83 e1 00 64 lwz r31,100(r1) ffc05210: 38 21 00 68 addi r1,r1,104 ffc05214: 4e 80 00 20 blr ffc05218 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { ffc05218: 94 21 ff c8 stwu r1,-56(r1) ffc0521c: 7c 08 02 a6 mflr r0 ffc05220: 90 01 00 3c stw r0,60(r1) ffc05224: 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; ffc05228: 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 */ ) { ffc0522c: 93 a1 00 2c stw r29,44(r1) ffc05230: 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 ) { ffc05234: 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 */ ) { ffc05238: 93 e1 00 34 stw r31,52(r1) ffc0523c: 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 ) { ffc05240: 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 */ ) { ffc05244: 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 ) { ffc05248: 40 9e 00 ac bne- cr7,ffc052f4 if ( !node->info.hard_link.link_node ) ffc0524c: 80 1e 00 50 lwz r0,80(r30) ffc05250: 2f 80 00 00 cmpwi cr7,r0,0 ffc05254: 40 be 00 18 bne+ cr7,ffc0526c rtems_set_errno_and_return_minus_one( EINVAL ); ffc05258: 48 01 16 e5 bl ffc1693c <__errno> <== NOT EXECUTED ffc0525c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05260: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05264: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05268: 48 00 00 a4 b ffc0530c <== NOT EXECUTED the_link = *loc; the_link.node_access = node->info.hard_link.link_node; ffc0526c: 7c 3c 0b 78 mr r28,r1 ffc05270: 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; ffc05274: 81 64 00 08 lwz r11,8(r4) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc05278: 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; ffc0527c: 81 24 00 0c lwz r9,12(r4) ffc05280: 81 44 00 04 lwz r10,4(r4) ffc05284: 80 04 00 10 lwz r0,16(r4) ffc05288: 91 61 00 18 stw r11,24(r1) ffc0528c: 91 21 00 1c stw r9,28(r1) ffc05290: 91 41 00 14 stw r10,20(r1) ffc05294: 90 01 00 20 stw r0,32(r1) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc05298: 48 00 c8 61 bl ffc11af8 /* * 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) ffc0529c: 81 3e 00 50 lwz r9,80(r30) ffc052a0: a1 69 00 34 lhz r11,52(r9) ffc052a4: 2f 8b 00 01 cmpwi cr7,r11,1 ffc052a8: 40 be 00 2c bne+ cr7,ffc052d4 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); ffc052ac: 81 21 00 18 lwz r9,24(r1) ffc052b0: 7f 84 e3 78 mr r4,r28 ffc052b4: 7f a3 eb 78 mr r3,r29 ffc052b8: 80 09 00 34 lwz r0,52(r9) ffc052bc: 7c 09 03 a6 mtctr r0 ffc052c0: 4e 80 04 21 bctrl if ( result != 0 ) ffc052c4: 2f 83 00 00 cmpwi cr7,r3,0 ffc052c8: 38 60 ff ff li r3,-1 ffc052cc: 41 be 00 28 beq+ cr7,ffc052f4 ffc052d0: 48 00 00 3c b ffc0530c return -1; } else { node->info.hard_link.link_node->st_nlink --; ffc052d4: 39 6b ff ff addi r11,r11,-1 ffc052d8: b1 69 00 34 sth r11,52(r9) IMFS_update_ctime( node->info.hard_link.link_node ); ffc052dc: 38 61 00 08 addi r3,r1,8 ffc052e0: 38 80 00 00 li r4,0 ffc052e4: 48 00 07 f9 bl ffc05adc ffc052e8: 81 3e 00 50 lwz r9,80(r30) ffc052ec: 80 01 00 08 lwz r0,8(r1) ffc052f0: 90 09 00 48 stw r0,72(r9) /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); ffc052f4: 81 3f 00 08 lwz r9,8(r31) ffc052f8: 7f a3 eb 78 mr r3,r29 ffc052fc: 7f e4 fb 78 mr r4,r31 ffc05300: 80 09 00 34 lwz r0,52(r9) ffc05304: 7c 09 03 a6 mtctr r0 ffc05308: 4e 80 04 21 bctrl return result; } ffc0530c: 80 01 00 3c lwz r0,60(r1) ffc05310: 83 81 00 28 lwz r28,40(r1) ffc05314: 7c 08 03 a6 mtlr r0 ffc05318: 83 a1 00 2c lwz r29,44(r1) ffc0531c: 83 c1 00 30 lwz r30,48(r1) ffc05320: 83 e1 00 34 lwz r31,52(r1) ffc05324: 38 21 00 38 addi r1,r1,56 ffc05328: 4e 80 00 20 blr ffc0532c : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc0532c: 7c 08 02 a6 mflr r0 ffc05330: 94 21 ff f8 stwu r1,-8(r1) ffc05334: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc05338: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc0533c: 80 09 00 4c lwz r0,76(r9) ffc05340: 2f 80 00 01 cmpwi cr7,r0,1 ffc05344: 41 be 00 10 beq+ cr7,ffc05354 rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc05348: 48 01 15 f5 bl ffc1693c <__errno> <== NOT EXECUTED ffc0534c: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc05350: 48 00 00 18 b ffc05368 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) ffc05354: 80 09 00 5c lwz r0,92(r9) ffc05358: 2f 80 00 00 cmpwi cr7,r0,0 ffc0535c: 40 be 00 18 bne+ cr7,ffc05374 rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ ffc05360: 48 01 15 dd bl ffc1693c <__errno> <== NOT EXECUTED ffc05364: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05368: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0536c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05370: 48 00 00 10 b ffc05380 <== NOT EXECUTED /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; ffc05374: 38 00 00 00 li r0,0 ffc05378: 90 09 00 5c stw r0,92(r9) ffc0537c: 38 60 00 00 li r3,0 return 0; } ffc05380: 80 01 00 0c lwz r0,12(r1) ffc05384: 38 21 00 08 addi r1,r1,8 ffc05388: 7c 08 03 a6 mtlr r0 ffc0538c: 4e 80 00 20 blr ffc04494 : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc04494: 3d 20 00 00 lis r9,0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc04498: 94 21 ff e8 stwu r1,-24(r1) ffc0449c: 7c 08 02 a6 mflr r0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc044a0: 81 29 26 c8 lwz r9,9928(r9) void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc044a4: 93 a1 00 0c stw r29,12(r1) ffc044a8: 7c bd 2b 78 mr r29,r5 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc044ac: 2f 89 00 00 cmpwi cr7,r9,0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc044b0: 93 c1 00 10 stw r30,16(r1) ffc044b4: 7c 9e 23 78 mr r30,r4 ffc044b8: 93 e1 00 14 stw r31,20(r1) ffc044bc: 7c 7f 1b 78 mr r31,r3 ffc044c0: 90 01 00 1c stw r0,28(r1) #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc044c4: 41 9e 00 10 beq- cr7,ffc044d4 (*rtems_malloc_statistics_helpers->initialize)(); ffc044c8: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc044cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc044d0: 4e 80 04 21 bctrl <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); ffc044d4: 4b ff ff 31 bl ffc04404 /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { ffc044d8: 3d 20 00 00 lis r9,0 ffc044dc: 81 29 26 cc lwz r9,9932(r9) ffc044e0: 2f 89 00 00 cmpwi cr7,r9,0 ffc044e4: 41 9e 00 24 beq- cr7,ffc04508 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( ffc044e8: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc044ec: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc044f0: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED ffc044f4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; ffc044f8: 7f df f2 14 add r30,r31,r30 <== NOT EXECUTED /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( ffc044fc: 4e 80 04 21 bctrl <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; ffc04500: 7f c3 f0 50 subf r30,r3,r30 <== NOT EXECUTED ffc04504: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED * of the time under UNIX because zero'ing memory when it is first * given to a process eliminates the chance of a process seeing data * left over from another process. This would be a security violation. */ if ( ffc04508: 3d 20 00 00 lis r9,0 ffc0450c: 88 09 26 c5 lbz r0,9925(r9) ffc04510: 2f 80 00 00 cmpwi cr7,r0,0 ffc04514: 40 9e 00 24 bne- cr7,ffc04538 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ffc04518: 3d 20 00 00 lis r9,0 ffc0451c: 88 09 20 c8 lbz r0,8392(r9) ffc04520: 2f 80 00 00 cmpwi cr7,r0,0 ffc04524: 41 be 00 14 beq+ cr7,ffc04538 ) { memset( heap_begin, 0, heap_size ); ffc04528: 7f e3 fb 78 mr r3,r31 ffc0452c: 38 80 00 00 li r4,0 ffc04530: 7f c5 f3 78 mr r5,r30 ffc04534: 48 00 cd 61 bl ffc11294 * Unfortunately we cannot use assert if this fails because if this * has failed we do not have a heap and if we do not have a heap * STDIO cannot work because there will be no buffers. */ if ( !rtems_unified_work_area ) { ffc04538: 3d 20 00 00 lis r9,0 ffc0453c: 88 09 26 c5 lbz r0,9925(r9) ffc04540: 2f 80 00 00 cmpwi cr7,r0,0 ffc04544: 40 9e 00 2c bne- cr7,ffc04570 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); ffc04548: 3d 20 00 00 lis r9,0 ffc0454c: 80 69 26 5c lwz r3,9820(r9) ffc04550: 7f e4 fb 78 mr r4,r31 ffc04554: 7f c5 f3 78 mr r5,r30 ffc04558: 38 c0 00 08 li r6,8 ffc0455c: 48 00 4a 99 bl ffc08ff4 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { ffc04560: 2f 83 00 00 cmpwi cr7,r3,0 ffc04564: 40 be 00 0c bne+ cr7,ffc04570 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); ffc04568: 38 60 00 1a li r3,26 <== NOT EXECUTED ffc0456c: 48 00 40 65 bl ffc085d0 <== NOT EXECUTED } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); ffc04570: 3d 20 00 00 lis r9,0 ffc04574: 80 69 26 5c lwz r3,9820(r9) ffc04578: 3f e0 00 00 lis r31,0 ffc0457c: 83 df 2a 68 lwz r30,10856(r31) ffc04580: 48 00 58 1d bl ffc09d9c <_Protected_heap_Get_size> printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } ffc04584: 80 01 00 1c lwz r0,28(r1) if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); ffc04588: 7c 63 f2 14 add r3,r3,r30 printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } ffc0458c: 83 a1 00 0c lwz r29,12(r1) ffc04590: 7c 08 03 a6 mtlr r0 if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); ffc04594: 90 7f 2a 68 stw r3,10856(r31) printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } ffc04598: 83 c1 00 10 lwz r30,16(r1) ffc0459c: 83 e1 00 14 lwz r31,20(r1) ffc045a0: 38 21 00 18 addi r1,r1,24 ffc045a4: 4e 80 00 20 blr ffc06310 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { ffc06310: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc06314: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc06318: 93 41 00 20 stw r26,32(r1) <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) ffc0631c: 7c 7a 1b 79 mr. r26,r3 <== NOT EXECUTED static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { ffc06320: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc06324: 93 21 00 1c stw r25,28(r1) <== NOT EXECUTED ffc06328: 93 61 00 24 stw r27,36(r1) <== NOT EXECUTED ffc0632c: 93 81 00 28 stw r28,40(r1) <== NOT EXECUTED ffc06330: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc06334: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc06338: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) ffc0633c: 41 82 01 6c beq- ffc064a8 <== NOT EXECUTED return; if ( !print_handler ) ffc06340: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06344: 83 a9 36 f4 lwz r29,14068(r9) <== NOT EXECUTED ffc06348: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0634c: 41 9e 01 5c beq- cr7,ffc064a8 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { ffc06350: 2f 9a ff ff cmpwi cr7,r26,-1 <== NOT EXECUTED ffc06354: 40 be 00 24 bne+ cr7,ffc06378 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { ffc06358: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc0635c: 3b ff 35 a4 addi r31,r31,13732 <== NOT EXECUTED ffc06360: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06364: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc06368: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc0636c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06370: 40 be 00 10 bne+ cr7,ffc06380 <== NOT EXECUTED ffc06374: 48 00 01 34 b ffc064a8 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); ffc06378: 83 7a 00 d8 lwz r27,216(r26) <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; ffc0637c: 3b fa 00 c8 addi r31,r26,200 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); ffc06380: 83 3f 00 04 lwz r25,4(r31) <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc06384: 83 9f 00 00 lwz r28,0(r31) <== NOT EXECUTED } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); ffc06388: 3b 39 00 80 addi r25,r25,128 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc0638c: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); ffc06390: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc06394: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc06398: 4b ff ff 41 bl ffc062d8 <== NOT EXECUTED if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { ffc0639c: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) ffc063a0: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED ffc063a4: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED ffc063a8: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc063ac: 7f d9 e2 14 add r30,r25,r28 <== NOT EXECUTED ffc063b0: 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 ) ffc063b4: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED ffc063b8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc063bc: 7f de 00 38 and r30,r30,r0 <== NOT EXECUTED ffc063c0: 39 29 36 f0 addi r9,r9,14064 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { ffc063c4: 41 9e 00 40 beq- cr7,ffc06404 <== NOT EXECUTED (*print_handler)( ffc063c8: 83 5a 00 08 lwz r26,8(r26) <== NOT EXECUTED ffc063cc: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc063d0: 83 29 00 08 lwz r25,8(r9) <== NOT EXECUTED ffc063d4: 38 80 00 05 li r4,5 <== NOT EXECUTED ffc063d8: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc063dc: 48 00 6e f5 bl ffc0d2d0 <== NOT EXECUTED ffc063e0: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc063e4: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc063e8: 7f a9 03 a6 mtctr r29 <== NOT EXECUTED ffc063ec: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc063f0: 38 84 2a e0 addi r4,r4,10976 <== NOT EXECUTED ffc063f4: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc063f8: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc063fc: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06400: 48 00 00 20 b ffc06420 <== 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 ); ffc06404: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc06408: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc0640c: 38 84 2a ed addi r4,r4,10989 <== NOT EXECUTED ffc06410: 7f a9 03 a6 mtctr r29 <== NOT EXECUTED ffc06414: 38 a0 ff ff li r5,-1 <== NOT EXECUTED ffc06418: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0641c: 4e 80 04 21 bctrl <== NOT EXECUTED } (*print_handler)( ffc06420: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc06424: 80 df 00 00 lwz r6,0(r31) <== NOT EXECUTED ffc06428: 80 bf 00 04 lwz r5,4(r31) <== NOT EXECUTED ffc0642c: 3b fd 36 f0 addi r31,r29,14064 <== NOT EXECUTED ffc06430: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06434: 38 c6 ff ff addi r6,r6,-1 <== NOT EXECUTED ffc06438: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc0643c: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06440: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06444: 38 84 2a fb addi r4,r4,11003 <== NOT EXECUTED ffc06448: 7c c5 32 14 add r6,r5,r6 <== NOT EXECUTED ffc0644c: 7f 67 db 78 mr r7,r27 <== NOT EXECUTED ffc06450: 7f 88 e3 78 mr r8,r28 <== NOT EXECUTED ffc06454: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06458: 4e 80 04 21 bctrl <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { ffc0645c: 80 1d 36 f0 lwz r0,14064(r29) <== NOT EXECUTED ffc06460: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06464: 40 be 00 24 bne+ cr7,ffc06488 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); ffc06468: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc0646c: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc06470: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06474: 38 84 2b 19 addi r4,r4,11033 <== NOT EXECUTED ffc06478: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0647c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06480: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06484: 48 00 00 24 b ffc064a8 <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); ffc06488: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc0648c: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc06490: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06494: 38 84 2b 26 addi r4,r4,11046 <== NOT EXECUTED ffc06498: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc0649c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc064a0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc064a4: 4e 80 04 21 bctrl <== NOT EXECUTED } } ffc064a8: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc064ac: 83 21 00 1c lwz r25,28(r1) <== NOT EXECUTED ffc064b0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc064b4: 83 41 00 20 lwz r26,32(r1) <== NOT EXECUTED ffc064b8: 83 61 00 24 lwz r27,36(r1) <== NOT EXECUTED ffc064bc: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED ffc064c0: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc064c4: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc064c8: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc064cc: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc064d0: 4e 80 00 20 blr <== NOT EXECUTED ffc062d8 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; ffc062d8: 38 63 00 80 addi r3,r3,128 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) ffc062dc: 54 84 00 3a rlwinm r4,r4,0,0,29 <== NOT EXECUTED if (*base != U32_PATTERN) ffc062e0: 3c 00 a5 a5 lis r0,-23131 <== NOT EXECUTED * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) ffc062e4: 7c 83 22 14 add r4,r3,r4 <== NOT EXECUTED if (*base != U32_PATTERN) ffc062e8: 60 00 a5 a5 ori r0,r0,42405 <== NOT EXECUTED * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) ffc062ec: 48 00 00 14 b ffc06300 <== NOT EXECUTED if (*base != U32_PATTERN) ffc062f0: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED ffc062f4: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc062f8: 4c 9e 00 20 bnelr cr7 <== NOT EXECUTED * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) ffc062fc: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED ffc06300: 7f 83 20 40 cmplw cr7,r3,r4 <== NOT EXECUTED ffc06304: 41 9c ff ec blt+ cr7,ffc062f0 <== NOT EXECUTED ffc06308: 38 60 00 00 li r3,0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } ffc0630c: 4e 80 00 20 blr <== NOT EXECUTED ffc0dbe4 <_CORE_mutex_Seize_interrupt_trylock>: #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { ffc0dbe4: 7c 08 02 a6 mflr r0 ffc0dbe8: 94 21 ff f8 stwu r1,-8(r1) { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; ffc0dbec: 3d 20 00 00 lis r9,0 ffc0dbf0: 81 29 27 6c lwz r9,10092(r9) ffc0dbf4: 90 01 00 0c stw r0,12(r1) executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; ffc0dbf8: 38 00 00 00 li r0,0 ffc0dbfc: 90 09 00 34 stw r0,52(r9) if ( !_CORE_mutex_Is_locked( the_mutex ) ) { ffc0dc00: 81 63 00 50 lwz r11,80(r3) ffc0dc04: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0dc08: 41 9e 00 bc beq- cr7,ffc0dcc4 <_CORE_mutex_Seize_interrupt_trylock+0xe0> */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; ffc0dc0c: 81 63 00 48 lwz r11,72(r3) /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; ffc0dc10: 90 03 00 50 stw r0,80(r3) the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc0dc14: 2f 8b 00 02 cmpwi cr7,r11,2 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; ffc0dc18: 80 09 00 08 lwz r0,8(r9) executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; ffc0dc1c: 91 23 00 5c stw r9,92(r3) the_mutex->holder_id = executing->Object.id; ffc0dc20: 90 03 00 60 stw r0,96(r3) the_mutex->nest_count = 1; ffc0dc24: 38 00 00 01 li r0,1 ffc0dc28: 90 03 00 54 stw r0,84(r3) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc0dc2c: 41 9e 00 0c beq- cr7,ffc0dc38 <_CORE_mutex_Seize_interrupt_trylock+0x54> ffc0dc30: 2f 8b 00 03 cmpwi cr7,r11,3 ffc0dc34: 40 be 00 18 bne+ cr7,ffc0dc4c <_CORE_mutex_Seize_interrupt_trylock+0x68> #endif executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { ffc0dc38: 2f 8b 00 03 cmpwi cr7,r11,3 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; ffc0dc3c: 81 69 00 1c lwz r11,28(r9) ffc0dc40: 38 0b 00 01 addi r0,r11,1 ffc0dc44: 90 09 00 1c stw r0,28(r9) } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { ffc0dc48: 41 be 00 08 beq+ cr7,ffc0dc50 <_CORE_mutex_Seize_interrupt_trylock+0x6c> _ISR_Enable( *level_p ); ffc0dc4c: 48 00 00 a8 b ffc0dcf4 <_CORE_mutex_Seize_interrupt_trylock+0x110> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; ffc0dc50: 80 03 00 4c lwz r0,76(r3) current = executing->current_priority; ffc0dc54: 81 69 00 14 lwz r11,20(r9) if ( current == ceiling ) { ffc0dc58: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0dc5c: 40 be 00 08 bne+ cr7,ffc0dc64 <_CORE_mutex_Seize_interrupt_trylock+0x80> _ISR_Enable( *level_p ); ffc0dc60: 48 00 00 94 b ffc0dcf4 <_CORE_mutex_Seize_interrupt_trylock+0x110> return 0; } if ( current > ceiling ) { ffc0dc64: 7f 8b 00 40 cmplw cr7,r11,r0 ffc0dc68: 40 bd 00 34 ble+ cr7,ffc0dc9c <_CORE_mutex_Seize_interrupt_trylock+0xb8> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0dc6c: 3d 20 00 00 lis r9,0 ffc0dc70: 81 69 27 2c lwz r11,10028(r9) ffc0dc74: 38 0b 00 01 addi r0,r11,1 ffc0dc78: 90 09 27 2c stw r0,10028(r9) ffc0dc7c: 80 04 00 00 lwz r0,0(r4) ffc0dc80: 7c 00 01 24 mtmsr r0 _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); _Thread_Change_priority( ffc0dc84: 80 83 00 4c lwz r4,76(r3) ffc0dc88: 38 a0 00 00 li r5,0 ffc0dc8c: 80 63 00 5c lwz r3,92(r3) ffc0dc90: 4b ff c1 7d bl ffc09e0c <_Thread_Change_priority> the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); ffc0dc94: 4b ff c8 01 bl ffc0a494 <_Thread_Enable_dispatch> ffc0dc98: 48 00 00 64 b ffc0dcfc <_CORE_mutex_Seize_interrupt_trylock+0x118> return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; ffc0dc9c: 38 00 00 06 li r0,6 ffc0dca0: 90 09 00 34 stw r0,52(r9) the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ ffc0dca4: 38 00 00 00 li r0,0 ffc0dca8: 90 03 00 54 stw r0,84(r3) _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; ffc0dcac: 38 00 00 01 li r0,1 ffc0dcb0: 90 03 00 50 stw r0,80(r3) the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ ffc0dcb4: 81 69 00 1c lwz r11,28(r9) ffc0dcb8: 38 0b ff ff addi r0,r11,-1 ffc0dcbc: 90 09 00 1c stw r0,28(r9) _ISR_Enable( *level_p ); ffc0dcc0: 48 00 00 34 b ffc0dcf4 <_CORE_mutex_Seize_interrupt_trylock+0x110> /* * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { ffc0dcc4: 81 63 00 5c lwz r11,92(r3) ffc0dcc8: 7f 8b 48 00 cmpw cr7,r11,r9 ffc0dccc: 40 be 00 44 bne+ cr7,ffc0dd10 <_CORE_mutex_Seize_interrupt_trylock+0x12c> switch ( the_mutex->Attributes.lock_nesting_behavior ) { ffc0dcd0: 80 03 00 40 lwz r0,64(r3) ffc0dcd4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dcd8: 41 9e 00 10 beq- cr7,ffc0dce8 <_CORE_mutex_Seize_interrupt_trylock+0x104> ffc0dcdc: 2f 80 00 01 cmpwi cr7,r0,1 ffc0dce0: 40 be 00 30 bne+ cr7,ffc0dd10 <_CORE_mutex_Seize_interrupt_trylock+0x12c> ffc0dce4: 48 00 00 20 b ffc0dd04 <_CORE_mutex_Seize_interrupt_trylock+0x120> <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; ffc0dce8: 81 23 00 54 lwz r9,84(r3) ffc0dcec: 38 09 00 01 addi r0,r9,1 ffc0dcf0: 90 03 00 54 stw r0,84(r3) ffc0dcf4: 80 04 00 00 lwz r0,0(r4) ffc0dcf8: 7c 00 01 24 mtmsr r0 ffc0dcfc: 38 60 00 00 li r3,0 ffc0dd00: 48 00 00 14 b ffc0dd14 <_CORE_mutex_Seize_interrupt_trylock+0x130> _ISR_Enable( *level_p ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; ffc0dd04: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc0dd08: 90 0b 00 34 stw r0,52(r11) <== NOT EXECUTED _ISR_Enable( *level_p ); ffc0dd0c: 4b ff ff e8 b ffc0dcf4 <_CORE_mutex_Seize_interrupt_trylock+0x110> <== NOT EXECUTED ffc0dd10: 38 60 00 01 li r3,1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } ffc0dd14: 80 01 00 0c lwz r0,12(r1) ffc0dd18: 38 21 00 08 addi r1,r1,8 ffc0dd1c: 7c 08 03 a6 mtlr r0 ffc0dd20: 4e 80 00 20 blr ffc0a5d8 <_Heap_Walk_print>: { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0a5d8: 94 21 ff 88 stwu r1,-120(r1) ffc0a5dc: 7c 08 02 a6 mflr r0 ffc0a5e0: 93 e1 00 74 stw r31,116(r1) ffc0a5e4: 90 01 00 7c stw r0,124(r1) ffc0a5e8: 7c 60 1b 78 mr r0,r3 ffc0a5ec: 90 c1 00 1c stw r6,28(r1) ffc0a5f0: 90 e1 00 20 stw r7,32(r1) ffc0a5f4: 91 01 00 24 stw r8,36(r1) ffc0a5f8: 91 21 00 28 stw r9,40(r1) ffc0a5fc: 91 41 00 2c stw r10,44(r1) ffc0a600: 40 86 00 24 bne- cr1,ffc0a624 <_Heap_Walk_print+0x4c> ffc0a604: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0a608: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0a60c: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0a610: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0a614: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0a618: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0a61c: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0a620: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list ap; if ( error ) { ffc0a624: 2f 84 00 00 cmpwi cr7,r4,0 { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0a628: 7c bf 2b 78 mr r31,r5 va_list ap; if ( error ) { ffc0a62c: 41 be 00 10 beq+ cr7,ffc0a63c <_Heap_Walk_print+0x64> printk( "FAIL[%d]: ", source ); ffc0a630: 3c 60 ff c2 lis r3,-62 ffc0a634: 38 63 e1 31 addi r3,r3,-7887 ffc0a638: 48 00 00 0c b ffc0a644 <_Heap_Walk_print+0x6c> } else { printk( "PASS[%d]: ", source ); ffc0a63c: 3c 60 ff c2 lis r3,-62 ffc0a640: 38 63 e1 3c addi r3,r3,-7876 ffc0a644: 7c 04 03 78 mr r4,r0 ffc0a648: 4c c6 31 82 crclr 4*cr1+eq ffc0a64c: 4b ff b4 a5 bl ffc05af0 } va_start( ap, fmt ); ffc0a650: 38 00 00 03 li r0,3 ffc0a654: 98 01 00 08 stb r0,8(r1) ffc0a658: 38 00 00 00 li r0,0 vprintk( fmt, ap ); ffc0a65c: 7f e3 fb 78 mr r3,r31 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0a660: 98 01 00 09 stb r0,9(r1) ffc0a664: 38 01 00 80 addi r0,r1,128 vprintk( fmt, ap ); ffc0a668: 38 81 00 08 addi r4,r1,8 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0a66c: 90 01 00 0c stw r0,12(r1) ffc0a670: 38 01 00 10 addi r0,r1,16 ffc0a674: 90 01 00 10 stw r0,16(r1) vprintk( fmt, ap ); ffc0a678: 4b ff d4 d5 bl ffc07b4c va_end( ap ); } ffc0a67c: 80 01 00 7c lwz r0,124(r1) ffc0a680: 83 e1 00 74 lwz r31,116(r1) ffc0a684: 38 21 00 78 addi r1,r1,120 ffc0a688: 7c 08 03 a6 mtlr r0 ffc0a68c: 4e 80 00 20 blr ffc08648 <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { ffc08648: 94 21 ff d8 stwu r1,-40(r1) ffc0864c: 7c 08 02 a6 mflr r0 uint32_t index; rtems_driver_address_table *driver_table; uint32_t drivers_in_table; uint32_t number_of_drivers; driver_table = Configuration.Device_driver_table; ffc08650: 3d 20 00 00 lis r9,0 * workspace. * */ void _IO_Manager_initialization(void) { ffc08654: 90 01 00 2c stw r0,44(r1) uint32_t index; rtems_driver_address_table *driver_table; uint32_t drivers_in_table; uint32_t number_of_drivers; driver_table = Configuration.Device_driver_table; ffc08658: 39 29 20 a0 addi r9,r9,8352 * workspace. * */ void _IO_Manager_initialization(void) { ffc0865c: 93 c1 00 20 stw r30,32(r1) ffc08660: 93 e1 00 24 stw r31,36(r1) uint32_t drivers_in_table; uint32_t number_of_drivers; driver_table = Configuration.Device_driver_table; drivers_in_table = Configuration.number_of_device_drivers; number_of_drivers = Configuration.maximum_drivers; ffc08664: 83 c9 00 2c lwz r30,44(r9) rtems_driver_address_table *driver_table; uint32_t drivers_in_table; uint32_t number_of_drivers; driver_table = Configuration.Device_driver_table; drivers_in_table = Configuration.number_of_device_drivers; ffc08668: 83 e9 00 30 lwz r31,48(r9) * workspace. * */ void _IO_Manager_initialization(void) { ffc0866c: 93 61 00 14 stw r27,20(r1) /* * If the user claims there are less drivers than are actually in * the table, then let's just go with the table's count. */ if ( number_of_drivers <= drivers_in_table ) ffc08670: 7f 9e f8 40 cmplw cr7,r30,r31 * workspace. * */ void _IO_Manager_initialization(void) { ffc08674: 93 81 00 18 stw r28,24(r1) ffc08678: 3f 80 00 00 lis r28,0 ffc0867c: 93 a1 00 1c stw r29,28(r1) ffc08680: 3f a0 00 00 lis r29,0 ffc08684: 93 21 00 0c stw r25,12(r1) ffc08688: 93 41 00 10 stw r26,16(r1) uint32_t index; rtems_driver_address_table *driver_table; uint32_t drivers_in_table; uint32_t number_of_drivers; driver_table = Configuration.Device_driver_table; ffc0868c: 83 69 00 34 lwz r27,52(r9) /* * If the user claims there are less drivers than are actually in * the table, then let's just go with the table's count. */ if ( number_of_drivers <= drivers_in_table ) ffc08690: 40 9d 00 40 ble- cr7,ffc086d0 <_IO_Manager_initialization+0x88> * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ffc08694: 1f 3e 00 18 mulli r25,r30,24 /* * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) ffc08698: 7f 23 cb 78 mr r3,r25 ffc0869c: 48 00 35 d5 bl ffc0bc70 <_Workspace_Allocate_or_fatal_error> _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( ffc086a0: 7f 25 cb 78 mr r5,r25 ffc086a4: 38 80 00 00 li r4,0 _IO_Driver_address_table = (rtems_driver_address_table *) _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; ffc086a8: 93 dd 27 a4 stw r30,10148(r29) /* * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) ffc086ac: 7c 7a 1b 78 mr r26,r3 ffc086b0: 90 7c 27 a8 stw r3,10152(r28) _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( ffc086b4: 48 00 8b e1 bl ffc11294 ffc086b8: 2f 9f 00 00 cmpwi cr7,r31,0 _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; ffc086bc: 39 40 00 00 li r10,0 ffc086c0: 3b ff 00 01 addi r31,r31,1 ffc086c4: 40 be 00 4c bne+ cr7,ffc08710 <_IO_Manager_initialization+0xc8> ffc086c8: 3b e0 00 01 li r31,1 <== NOT EXECUTED ffc086cc: 48 00 00 44 b ffc08710 <_IO_Manager_initialization+0xc8> <== NOT EXECUTED * If the maximum number of driver is the same as the number in the * table, then we do not have to copy the driver table. They can't * register any dynamically. */ if ( number_of_drivers == drivers_in_table ) { _IO_Driver_address_table = driver_table; ffc086d0: 93 7c 27 a8 stw r27,10152(r28) _IO_Number_of_drivers = number_of_drivers; ffc086d4: 93 fd 27 a4 stw r31,10148(r29) return; ffc086d8: 48 00 00 48 b ffc08720 <_IO_Manager_initialization+0xd8> _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; ffc086dc: 7c c9 50 6e lwzux r6,r9,r10 ffc086e0: 81 09 00 08 lwz r8,8(r9) ffc086e4: 80 09 00 0c lwz r0,12(r9) ffc086e8: 80 e9 00 04 lwz r7,4(r9) ffc086ec: 7c da 51 2e stwx r6,r26,r10 memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) ffc086f0: 39 4a 00 18 addi r10,r10,24 _IO_Driver_address_table[index] = driver_table[index]; ffc086f4: 90 eb 00 04 stw r7,4(r11) ffc086f8: 91 0b 00 08 stw r8,8(r11) ffc086fc: 90 0b 00 0c stw r0,12(r11) ffc08700: 81 09 00 14 lwz r8,20(r9) ffc08704: 80 09 00 10 lwz r0,16(r9) ffc08708: 91 0b 00 14 stw r8,20(r11) ffc0870c: 90 0b 00 10 stw r0,16(r11) memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) ffc08710: 37 ff ff ff addic. r31,r31,-1 _IO_Driver_address_table[index] = driver_table[index]; ffc08714: 7f 69 db 78 mr r9,r27 ffc08718: 7d 7a 52 14 add r11,r26,r10 memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) ffc0871c: 40 82 ff c0 bne+ ffc086dc <_IO_Manager_initialization+0x94> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } ffc08720: 80 01 00 2c lwz r0,44(r1) ffc08724: 83 21 00 0c lwz r25,12(r1) ffc08728: 7c 08 03 a6 mtlr r0 ffc0872c: 83 41 00 10 lwz r26,16(r1) ffc08730: 83 61 00 14 lwz r27,20(r1) ffc08734: 83 81 00 18 lwz r28,24(r1) ffc08738: 83 a1 00 1c lwz r29,28(r1) ffc0873c: 83 c1 00 20 lwz r30,32(r1) ffc08740: 83 e1 00 24 lwz r31,36(r1) ffc08744: 38 21 00 28 addi r1,r1,40 ffc08748: 4e 80 00 20 blr ffc093bc <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc093bc: 94 21 ff f0 stwu r1,-16(r1) ffc093c0: 7c 08 02 a6 mflr r0 _Internal_errors_What_happened.the_source = the_source; ffc093c4: 3d 60 00 00 lis r11,0 ffc093c8: 39 2b 2c 90 addi r9,r11,11408 void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc093cc: 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; ffc093d0: 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; ffc093d4: 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 ) { ffc093d8: 93 e1 00 0c stw r31,12(r1) ffc093dc: 7c bf 2b 78 mr r31,r5 _Internal_errors_What_happened.the_source = the_source; ffc093e0: 90 6b 2c 90 stw r3,11408(r11) _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); ffc093e4: 48 00 23 15 bl ffc0b6f8 <_User_extensions_Fatal> RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; ffc093e8: 38 00 00 05 li r0,5 ffc093ec: 3d 20 00 00 lis r9,0 _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); ffc093f0: 7f e3 fb 78 mr r3,r31 ffc093f4: 90 09 27 90 stw r0,10128(r9) ffc093f8: 4b ff a3 59 bl ffc03750 <_BSP_Fatal_error> ffc093fc: 48 00 00 00 b ffc093fc <_Internal_error_Occurred+0x40> <== NOT EXECUTED ffc094fc <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { ffc094fc: 94 21 ff b8 stwu r1,-72(r1) ffc09500: 7c 08 02 a6 mflr r0 ffc09504: 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 ) ffc09508: 81 63 00 34 lwz r11,52(r3) */ void _Objects_Extend_information( Objects_Information *information ) { ffc0950c: 93 61 00 34 stw r27,52(r1) minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) ffc09510: 2f 8b 00 00 cmpwi cr7,r11,0 */ void _Objects_Extend_information( Objects_Information *information ) { ffc09514: 93 e1 00 44 stw r31,68(r1) ffc09518: 7c 7f 1b 78 mr r31,r3 ffc0951c: 92 a1 00 1c stw r21,28(r1) ffc09520: 92 c1 00 20 stw r22,32(r1) ffc09524: 92 e1 00 24 stw r23,36(r1) ffc09528: 93 01 00 28 stw r24,40(r1) ffc0952c: 93 21 00 2c stw r25,44(r1) ffc09530: 93 41 00 30 stw r26,48(r1) ffc09534: 93 81 00 38 stw r28,56(r1) ffc09538: 93 a1 00 3c stw r29,60(r1) ffc0953c: 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 ); ffc09540: a3 63 00 0a lhz r27,10(r3) index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) ffc09544: 40 be 00 14 bne+ cr7,ffc09558 <_Objects_Extend_information+0x5c> ffc09548: 7f 7e db 78 mr r30,r27 ffc0954c: 3b 80 00 00 li r28,0 ffc09550: 3b 40 00 00 li r26,0 ffc09554: 48 00 00 4c b ffc095a0 <_Objects_Extend_information+0xa4> block_count = 0; else { block_count = information->maximum / information->allocation_size; ffc09558: a1 23 00 14 lhz r9,20(r3) ffc0955c: 7f 7e db 78 mr r30,r27 ffc09560: a3 43 00 10 lhz r26,16(r3) ffc09564: 3b 80 00 00 li r28,0 ffc09568: 7f 5a 4b 96 divwu r26,r26,r9 ffc0956c: 2f 9a 00 00 cmpwi cr7,r26,0 ffc09570: 38 1a 00 01 addi r0,r26,1 ffc09574: 40 be 00 20 bne+ cr7,ffc09594 <_Objects_Extend_information+0x98> ffc09578: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0957c: 48 00 00 18 b ffc09594 <_Objects_Extend_information+0x98> <== NOT EXECUTED for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) ffc09580: 7d 4b 50 2e lwzx r10,r11,r10 ffc09584: 2f 8a 00 00 cmpwi cr7,r10,0 ffc09588: 41 9e 00 18 beq- cr7,ffc095a0 <_Objects_Extend_information+0xa4> ffc0958c: 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++ ) { ffc09590: 3b 9c 00 01 addi r28,r28,1 ffc09594: 34 00 ff ff addic. r0,r0,-1 if ( information->object_blocks[ block ] == NULL ) ffc09598: 57 8a 10 3a rlwinm r10,r28,2,0,29 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { ffc0959c: 40 82 ff e4 bne+ ffc09580 <_Objects_Extend_information+0x84> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; ffc095a0: a0 1f 00 14 lhz r0,20(r31) ffc095a4: a2 df 00 10 lhz r22,16(r31) ffc095a8: 7e c0 b2 14 add r22,r0,r22 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { ffc095ac: 2b 96 ff ff cmplwi cr7,r22,65535 ffc095b0: 41 9d 02 1c bgt- cr7,ffc097cc <_Objects_Extend_information+0x2d0> /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { ffc095b4: 89 3f 00 12 lbz r9,18(r31) /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; ffc095b8: 80 7f 00 18 lwz r3,24(r31) if ( information->auto_extend ) { ffc095bc: 2f 89 00 00 cmpwi cr7,r9,0 /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; ffc095c0: 7c 60 19 d6 mullw r3,r0,r3 if ( information->auto_extend ) { ffc095c4: 41 9e 00 14 beq- cr7,ffc095d8 <_Objects_Extend_information+0xdc> new_object_block = _Workspace_Allocate( block_size ); ffc095c8: 48 00 26 f1 bl ffc0bcb8 <_Workspace_Allocate> if ( !new_object_block ) ffc095cc: 7c 7d 1b 79 mr. r29,r3 ffc095d0: 40 a2 00 10 bne+ ffc095e0 <_Objects_Extend_information+0xe4> ffc095d4: 48 00 01 f8 b ffc097cc <_Objects_Extend_information+0x2d0> return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); ffc095d8: 48 00 26 99 bl ffc0bc70 <_Workspace_Allocate_or_fatal_error> ffc095dc: 7c 7d 1b 78 mr r29,r3 } /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { ffc095e0: a0 1f 00 10 lhz r0,16(r31) ffc095e4: 7f 9e 00 40 cmplw cr7,r30,r0 ffc095e8: 41 9c 01 5c blt- cr7,ffc09744 <_Objects_Extend_information+0x248> */ /* * Up the block count and maximum */ block_count++; ffc095ec: 3b 3a 00 01 addi r25,r26,1 * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); ffc095f0: 1c 19 00 03 mulli r0,r25,3 ffc095f4: 7c 76 da 14 add r3,r22,r27 ffc095f8: 7c 63 02 14 add r3,r3,r0 ffc095fc: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc09600: 48 00 26 b9 bl ffc0bcb8 <_Workspace_Allocate> if ( !object_blocks ) { ffc09604: 7c 77 1b 79 mr. r23,r3 ffc09608: 40 a2 00 10 bne+ ffc09618 <_Objects_Extend_information+0x11c> _Workspace_Free( new_object_block ); ffc0960c: 7f a3 eb 78 mr r3,r29 ffc09610: 48 00 26 dd bl ffc0bcec <_Workspace_Free> return; ffc09614: 48 00 01 b8 b ffc097cc <_Objects_Extend_information+0x2d0> * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { ffc09618: a0 1f 00 10 lhz r0,16(r31) } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( ffc0961c: 57 39 10 3a rlwinm r25,r25,2,0,29 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); ffc09620: 7f 17 ca 14 add r24,r23,r25 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { ffc09624: 7f 80 d8 40 cmplw cr7,r0,r27 ffc09628: 7f 38 ca 14 add r25,r24,r25 ffc0962c: 41 9d 00 20 bgt- cr7,ffc0964c <_Objects_Extend_information+0x150> ffc09630: 2f 9b 00 00 cmpwi cr7,r27,0 ffc09634: 39 20 00 00 li r9,0 /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; ffc09638: 38 00 00 00 li r0,0 ffc0963c: 3b 7b 00 01 addi r27,r27,1 ffc09640: 40 be 00 50 bne+ cr7,ffc09690 <_Objects_Extend_information+0x194> ffc09644: 3b 60 00 01 li r27,1 <== NOT EXECUTED ffc09648: 48 00 00 48 b ffc09690 <_Objects_Extend_information+0x194> <== NOT EXECUTED * separate parts as size of each block has changed. */ memcpy( object_blocks, information->object_blocks, block_count * sizeof(void*) ); ffc0964c: 57 55 10 3a rlwinm r21,r26,2,0,29 /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, ffc09650: 80 9f 00 34 lwz r4,52(r31) ffc09654: 7e a5 ab 78 mr r5,r21 ffc09658: 48 00 7b 3d bl ffc11194 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, ffc0965c: 80 9f 00 30 lwz r4,48(r31) ffc09660: 7e a5 ab 78 mr r5,r21 ffc09664: 7f 03 c3 78 mr r3,r24 ffc09668: 48 00 7b 2d bl ffc11194 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, ffc0966c: a0 1f 00 10 lhz r0,16(r31) ffc09670: 80 9f 00 1c lwz r4,28(r31) ffc09674: 7f 23 cb 78 mr r3,r25 ffc09678: 7f 7b 02 14 add r27,r27,r0 ffc0967c: 57 65 10 3a rlwinm r5,r27,2,0,29 ffc09680: 48 00 7b 15 bl ffc11194 ffc09684: 48 00 00 18 b ffc0969c <_Objects_Extend_information+0x1a0> /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; ffc09688: 7c 0b c9 2e stwx r0,r11,r25 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { ffc0968c: 39 29 00 01 addi r9,r9,1 ffc09690: 37 7b ff ff addic. r27,r27,-1 local_table[ index ] = NULL; ffc09694: 55 2b 10 3a rlwinm r11,r9,2,0,29 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { ffc09698: 40 82 ff f0 bne+ ffc09688 <_Objects_Extend_information+0x18c> */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc0969c: a1 5f 00 14 lhz r10,20(r31) } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc096a0: 38 00 00 00 li r0,0 ffc096a4: 57 5a 10 3a rlwinm r26,r26,2,0,29 inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; ffc096a8: 7d 7e 52 14 add r11,r30,r10 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; ffc096ac: 7c 18 d1 2e stwx r0,r24,r26 ffc096b0: 7f 9e 58 40 cmplw cr7,r30,r11 for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc096b4: 57 c9 10 3a rlwinm r9,r30,2,0,29 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc096b8: 7c 17 d1 2e stwx r0,r23,r26 inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc096bc: 7d 39 4a 14 add r9,r25,r9 index++ ) { local_table[ index ] = NULL; ffc096c0: 38 0a 00 01 addi r0,r10,1 ffc096c4: 39 40 00 00 li r10,0 ffc096c8: 41 9d 00 0c bgt- cr7,ffc096d4 <_Objects_Extend_information+0x1d8> ffc096cc: 2f 8b 00 00 cmpwi cr7,r11,0 ffc096d0: 40 be 00 14 bne+ cr7,ffc096e4 <_Objects_Extend_information+0x1e8> ffc096d4: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc096d8: 48 00 00 0c b ffc096e4 <_Objects_Extend_information+0x1e8> <== NOT EXECUTED ffc096dc: 91 49 00 00 stw r10,0(r9) object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { ffc096e0: 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 ; ffc096e4: 34 00 ff ff addic. r0,r0,-1 ffc096e8: 40 82 ff f4 bne+ ffc096dc <_Objects_Extend_information+0x1e0> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc096ec: 7c 00 00 a6 mfmsr r0 ffc096f0: 7d 30 42 a6 mfsprg r9,0 ffc096f4: 7c 09 48 78 andc r9,r0,r9 ffc096f8: 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( ffc096fc: 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; ffc09700: 56 d6 04 3e clrlwi r22,r22,16 information->maximum_id = _Objects_Build_id( ffc09704: a1 3f 00 04 lhz r9,4(r31) ffc09708: 55 6b c0 0e rlwinm r11,r11,24,0,7 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; ffc0970c: 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( ffc09710: 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; ffc09714: 93 1f 00 30 stw r24,48(r31) information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc09718: 55 29 d8 08 rlwinm r9,r9,27,0,4 ffc0971c: 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; ffc09720: 93 3f 00 1c stw r25,28(r31) information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc09724: 7d 29 b3 78 or r9,r9,r22 ffc09728: 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; ffc0972c: b2 df 00 10 sth r22,16(r31) _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; ffc09730: 92 ff 00 34 stw r23,52(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09734: 7c 00 01 24 mtmsr r0 information->maximum ); _ISR_Enable( level ); if ( old_tables ) ffc09738: 2f 83 00 00 cmpwi cr7,r3,0 ffc0973c: 41 9e 00 08 beq- cr7,ffc09744 <_Objects_Extend_information+0x248> _Workspace_Free( old_tables ); ffc09740: 48 00 25 ad bl ffc0bcec <_Workspace_Free> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; ffc09744: 81 3f 00 34 lwz r9,52(r31) ffc09748: 57 9c 10 3a rlwinm r28,r28,2,0,29 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc0974c: 3b 61 00 08 addi r27,r1,8 ffc09750: 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; ffc09754: 7f a9 e1 2e stwx r29,r9,r28 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc09758: 7f a4 eb 78 mr r4,r29 ffc0975c: 7f 63 db 78 mr r3,r27 ffc09760: 80 df 00 18 lwz r6,24(r31) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc09764: 3b bf 00 20 addi r29,r31,32 information->object_blocks[ block ] = new_object_block; /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc09768: 48 00 44 41 bl ffc0dba8 <_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 ) { ffc0976c: 48 00 00 2c b ffc09798 <_Objects_Extend_information+0x29c> the_object->id = _Objects_Build_id( ffc09770: 81 7f 00 00 lwz r11,0(r31) ffc09774: a0 1f 00 04 lhz r0,4(r31) ffc09778: 55 6b c0 0e rlwinm r11,r11,24,0,7 ffc0977c: 65 6b 00 01 oris r11,r11,1 ffc09780: 54 00 d8 08 rlwinm r0,r0,27,0,4 ffc09784: 7d 60 03 78 or r0,r11,r0 ffc09788: 7c 00 f3 78 or r0,r0,r30 ffc0978c: 90 09 00 08 stw r0,8(r9) index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; ffc09790: 3b de 00 01 addi r30,r30,1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc09794: 4b ff f2 81 bl ffc08a14 <_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 ) { ffc09798: 7f 63 db 78 mr r3,r27 ffc0979c: 4b ff f2 a9 bl ffc08a44 <_Chain_Get> ffc097a0: 7c 69 1b 79 mr. r9,r3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc097a4: 7f a3 eb 78 mr r3,r29 ffc097a8: 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 ) { ffc097ac: 40 82 ff c4 bne+ ffc09770 <_Objects_Extend_information+0x274> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc097b0: a0 1f 00 14 lhz r0,20(r31) information->inactive = ffc097b4: a1 3f 00 2c lhz r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc097b8: 81 7f 00 30 lwz r11,48(r31) information->inactive = ffc097bc: 7d 20 4a 14 add r9,r0,r9 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc097c0: 54 00 04 3e clrlwi r0,r0,16 information->inactive = ffc097c4: b1 3f 00 2c sth r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc097c8: 7c 0b e1 2e stwx r0,r11,r28 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } ffc097cc: 80 01 00 4c lwz r0,76(r1) ffc097d0: 82 a1 00 1c lwz r21,28(r1) ffc097d4: 7c 08 03 a6 mtlr r0 ffc097d8: 82 c1 00 20 lwz r22,32(r1) ffc097dc: 82 e1 00 24 lwz r23,36(r1) ffc097e0: 83 01 00 28 lwz r24,40(r1) ffc097e4: 83 21 00 2c lwz r25,44(r1) ffc097e8: 83 41 00 30 lwz r26,48(r1) ffc097ec: 83 61 00 34 lwz r27,52(r1) ffc097f0: 83 81 00 38 lwz r28,56(r1) ffc097f4: 83 a1 00 3c lwz r29,60(r1) ffc097f8: 83 c1 00 40 lwz r30,64(r1) ffc097fc: 83 e1 00 44 lwz r31,68(r1) ffc09800: 38 21 00 48 addi r1,r1,72 ffc09804: 4e 80 00 20 blr ffc09be0 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09be0: 94 21 ff e8 stwu r1,-24(r1) ffc09be4: 7c 08 02 a6 mflr r0 /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / ffc09be8: 39 20 00 00 li r9,0 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09bec: 90 01 00 1c stw r0,28(r1) ffc09bf0: 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) / ffc09bf4: a1 43 00 10 lhz r10,16(r3) /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); ffc09bf8: a3 c3 00 0a lhz r30,10(r3) block_count = (information->maximum - index_base) / ffc09bfc: a1 63 00 14 lhz r11,20(r3) ffc09c00: 7d 5e 50 50 subf r10,r30,r10 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09c04: 93 e1 00 14 stw r31,20(r1) /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / ffc09c08: 7d 4a 5b 96 divwu r10,r10,r11 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09c0c: 93 81 00 08 stw r28,8(r1) ffc09c10: 93 a1 00 0c stw r29,12(r1) ffc09c14: 2f 8a 00 00 cmpwi cr7,r10,0 ffc09c18: 7c 7f 1b 78 mr r31,r3 /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / ffc09c1c: 38 0a 00 01 addi r0,r10,1 ffc09c20: 40 be 00 88 bne+ cr7,ffc09ca8 <_Objects_Shrink_information+0xc8> ffc09c24: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc09c28: 48 00 00 80 b ffc09ca8 <_Objects_Shrink_information+0xc8> <== NOT EXECUTED information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == ffc09c2c: 81 5f 00 30 lwz r10,48(r31) index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { ffc09c30: 39 29 00 01 addi r9,r9,1 if ( information->inactive_per_block[ block ] == ffc09c34: 7d 4a e8 2e lwzx r10,r10,r29 ffc09c38: 7f 8a 58 00 cmpw cr7,r10,r11 ffc09c3c: 40 be 00 68 bne+ cr7,ffc09ca4 <_Objects_Shrink_information+0xc4> information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; ffc09c40: 80 7f 00 20 lwz r3,32(r31) do { index = _Objects_Get_index( the_object->id ); ffc09c44: 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; ffc09c48: 83 83 00 00 lwz r28,0(r3) if ((index >= index_base) && ffc09c4c: 7f 80 f0 40 cmplw cr7,r0,r30 ffc09c50: 41 9c 00 18 blt- cr7,ffc09c68 <_Objects_Shrink_information+0x88> (index < (index_base + information->allocation_size))) { ffc09c54: a1 3f 00 14 lhz r9,20(r31) ffc09c58: 7d 3e 4a 14 add r9,r30,r9 ffc09c5c: 7f 80 48 40 cmplw cr7,r0,r9 ffc09c60: 40 bc 00 08 bge+ cr7,ffc09c68 <_Objects_Shrink_information+0x88> _Chain_Extract( &extract_me->Node ); ffc09c64: 48 00 3f 1d bl ffc0db80 <_Chain_Extract> } } while ( the_object ); ffc09c68: 2f 9c 00 00 cmpwi cr7,r28,0 ffc09c6c: 7f 83 e3 78 mr r3,r28 ffc09c70: 40 9e ff d4 bne+ cr7,ffc09c44 <_Objects_Shrink_information+0x64> /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); ffc09c74: 81 3f 00 34 lwz r9,52(r31) ffc09c78: 7c 69 e8 2e lwzx r3,r9,r29 ffc09c7c: 48 00 20 71 bl ffc0bcec <_Workspace_Free> information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; ffc09c80: a1 5f 00 2c lhz r10,44(r31) ffc09c84: a0 1f 00 14 lhz r0,20(r31) /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; ffc09c88: 81 3f 00 34 lwz r9,52(r31) information->inactive_per_block[ block ] = 0; ffc09c8c: 81 7f 00 30 lwz r11,48(r31) information->inactive -= information->allocation_size; ffc09c90: 7c 00 50 50 subf r0,r0,r10 ffc09c94: b0 1f 00 2c sth r0,44(r31) * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; ffc09c98: 7f 8b e9 2e stwx r28,r11,r29 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; ffc09c9c: 7f 89 e9 2e stwx r28,r9,r29 information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; ffc09ca0: 48 00 00 14 b ffc09cb4 <_Objects_Shrink_information+0xd4> } index_base += information->allocation_size; ffc09ca4: 7f de 5a 14 add r30,r30,r11 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { ffc09ca8: 34 00 ff ff addic. r0,r0,-1 ffc09cac: 55 3d 10 3a rlwinm r29,r9,2,0,29 ffc09cb0: 40 82 ff 7c bne+ ffc09c2c <_Objects_Shrink_information+0x4c> return; } index_base += information->allocation_size; } } ffc09cb4: 80 01 00 1c lwz r0,28(r1) ffc09cb8: 83 81 00 08 lwz r28,8(r1) ffc09cbc: 7c 08 03 a6 mtlr r0 ffc09cc0: 83 a1 00 0c lwz r29,12(r1) ffc09cc4: 83 c1 00 10 lwz r30,16(r1) ffc09cc8: 83 e1 00 14 lwz r31,20(r1) ffc09ccc: 38 21 00 18 addi r1,r1,24 ffc09cd0: 4e 80 00 20 blr ffc0bea8 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0bea8: 94 21 ff e8 stwu r1,-24(r1) ffc0beac: 7c 08 02 a6 mflr r0 ffc0beb0: 90 01 00 1c stw r0,28(r1) if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0beb4: 80 03 00 10 lwz r0,16(r3) bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0beb8: 93 e1 00 14 stw r31,20(r1) ffc0bebc: 7c 7f 1b 78 mr r31,r3 if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0bec0: 70 09 00 01 andi. r9,r0,1 ffc0bec4: 38 00 00 00 li r0,0 ffc0bec8: 40 a2 00 74 bne+ ffc0bf3c <_Thread_Restart+0x94> _Thread_Set_transient( the_thread ); ffc0becc: 90 81 00 08 stw r4,8(r1) ffc0bed0: 90 a1 00 0c stw r5,12(r1) ffc0bed4: 48 00 01 f5 bl ffc0c0c8 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); ffc0bed8: 7f e3 fb 78 mr r3,r31 ffc0bedc: 80 81 00 08 lwz r4,8(r1) ffc0bee0: 80 a1 00 0c lwz r5,12(r1) ffc0bee4: 48 00 39 5d bl ffc0f840 <_Thread_Reset> _Thread_Load_environment( the_thread ); ffc0bee8: 7f e3 fb 78 mr r3,r31 ffc0beec: 48 00 35 51 bl ffc0f43c <_Thread_Load_environment> _Thread_Ready( the_thread ); ffc0bef0: 7f e3 fb 78 mr r3,r31 ffc0bef4: 48 00 38 71 bl ffc0f764 <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); ffc0bef8: 7f e3 fb 78 mr r3,r31 ffc0befc: 48 00 0a 59 bl ffc0c954 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) ffc0bf00: 3d 20 00 00 lis r9,0 ffc0bf04: 81 29 27 98 lwz r9,10136(r9) ffc0bf08: 38 00 00 01 li r0,1 ffc0bf0c: 7f 9f 48 00 cmpw cr7,r31,r9 ffc0bf10: 40 be 00 2c bne+ cr7,ffc0bf3c <_Thread_Restart+0x94> */ RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void ) { #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) ffc0bf14: 80 1f 01 38 lwz r0,312(r31) ffc0bf18: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bf1c: 41 9e 00 0c beq- cr7,ffc0bf28 <_Thread_Restart+0x80> _Context_Restore_fp( &_Thread_Executing->fp_context ); ffc0bf20: 38 7f 01 38 addi r3,r31,312 ffc0bf24: 48 01 2d 5d bl ffc1ec80 <_CPU_Context_restore_fp> #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); ffc0bf28: 3d 20 00 00 lis r9,0 ffc0bf2c: 80 69 27 98 lwz r3,10136(r9) ffc0bf30: 38 63 00 d8 addi r3,r3,216 ffc0bf34: 48 01 2f 0d bl ffc1ee40 <_CPU_Context_restore> ffc0bf38: 38 00 00 01 li r0,1 <== NOT EXECUTED return true; } return false; } ffc0bf3c: 7c 03 03 78 mr r3,r0 ffc0bf40: 80 01 00 1c lwz r0,28(r1) ffc0bf44: 83 e1 00 14 lwz r31,20(r1) ffc0bf48: 38 21 00 18 addi r1,r1,24 ffc0bf4c: 7c 08 03 a6 mtlr r0 ffc0bf50: 4e 80 00 20 blr ffc0ab38 <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; ffc0ab38: 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); ffc0ab3c: 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 ) { ffc0ab40: 94 21 ff f0 stwu r1,-16(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ab44: 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 ) ) ffc0ab48: 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 ]; ffc0ab4c: 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); ffc0ab50: 91 04 00 38 stw r8,56(r4) ffc0ab54: 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 ) { ffc0ab58: 93 e1 00 0c stw r31,12(r1) the_chain->permanent_null = NULL; ffc0ab5c: 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; ffc0ab60: 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 ]; ffc0ab64: 7d 43 52 14 add r10,r3,r10 ffc0ab68: 91 04 00 3c stw r8,60(r4) the_chain->last = _Chain_Head(the_chain); ffc0ab6c: 91 64 00 40 stw r11,64(r4) block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) ffc0ab70: 40 82 00 98 bne- ffc0ac08 <_Thread_queue_Enqueue_priority+0xd0> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0ab74: 38 ca 00 04 addi r6,r10,4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ab78: 7d 00 00 a6 mfmsr r8 ffc0ab7c: 7d 70 42 a6 mfsprg r11,0 ffc0ab80: 7d 0b 58 78 andc r11,r8,r11 ffc0ab84: 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; ffc0ab88: 38 e0 ff ff li r7,-1 ffc0ab8c: 81 6a 00 00 lwz r11,0(r10) while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { ffc0ab90: 48 00 00 34 b ffc0abc4 <_Thread_queue_Enqueue_priority+0x8c> search_priority = search_thread->current_priority; ffc0ab94: 80 eb 00 14 lwz r7,20(r11) if ( priority <= search_priority ) ffc0ab98: 7f 80 38 40 cmplw cr7,r0,r7 ffc0ab9c: 40 9d 00 30 ble- cr7,ffc0abcc <_Thread_queue_Enqueue_priority+0x94> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0aba0: 7d 80 00 a6 mfmsr r12 ffc0aba4: 7d 00 01 24 mtmsr r8 ffc0aba8: 7d 80 01 24 mtmsr r12 search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { ffc0abac: 81 8b 00 10 lwz r12,16(r11) ffc0abb0: 7d 3f 60 39 and. r31,r9,r12 ffc0abb4: 40 a2 00 0c bne+ ffc0abc0 <_Thread_queue_Enqueue_priority+0x88> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0abb8: 7d 00 01 24 mtmsr r8 <== NOT EXECUTED ffc0abbc: 4b ff ff bc b ffc0ab78 <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; ffc0abc0: 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 ) ) { ffc0abc4: 7f 8b 30 00 cmpw cr7,r11,r6 ffc0abc8: 40 9e ff cc bne+ cr7,ffc0ab94 <_Thread_queue_Enqueue_priority+0x5c> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != ffc0abcc: 81 43 00 30 lwz r10,48(r3) restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { ffc0abd0: 7d 09 43 78 mr r9,r8 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != ffc0abd4: 2f 8a 00 01 cmpwi cr7,r10,1 ffc0abd8: 40 be 00 f8 bne+ cr7,ffc0acd0 <_Thread_queue_Enqueue_priority+0x198> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) ffc0abdc: 7f 80 38 00 cmpw cr7,r0,r7 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0abe0: 38 00 00 00 li r0,0 ffc0abe4: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0abe8: 41 9e 00 c4 beq- cr7,ffc0acac <_Thread_queue_Enqueue_priority+0x174> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; ffc0abec: 81 2b 00 04 lwz r9,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0abf0: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0abf4: 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; ffc0abf8: 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; ffc0abfc: 90 89 00 00 stw r4,0(r9) search_node->previous = the_node; ffc0ac00: 90 8b 00 04 stw r4,4(r11) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); ffc0ac04: 48 00 00 9c b ffc0aca0 <_Thread_queue_Enqueue_priority+0x168> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; ffc0ac08: 3c c0 00 00 lis r6,0 ffc0ac0c: 38 c6 26 64 addi r6,r6,9828 ffc0ac10: 88 e6 00 00 lbz r7,0(r6) ffc0ac14: 38 e7 00 01 addi r7,r7,1 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ac18: 7d 00 00 a6 mfmsr r8 ffc0ac1c: 7d 70 42 a6 mfsprg r11,0 ffc0ac20: 7d 0b 58 78 andc r11,r8,r11 ffc0ac24: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; ffc0ac28: 81 6a 00 08 lwz r11,8(r10) while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { ffc0ac2c: 48 00 00 34 b ffc0ac60 <_Thread_queue_Enqueue_priority+0x128> search_priority = search_thread->current_priority; ffc0ac30: 80 eb 00 14 lwz r7,20(r11) if ( priority >= search_priority ) ffc0ac34: 7f 80 38 40 cmplw cr7,r0,r7 ffc0ac38: 40 9c 00 30 bge- cr7,ffc0ac68 <_Thread_queue_Enqueue_priority+0x130> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0ac3c: 7d 80 00 a6 mfmsr r12 ffc0ac40: 7d 00 01 24 mtmsr r8 ffc0ac44: 7d 80 01 24 mtmsr r12 search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { ffc0ac48: 81 8b 00 10 lwz r12,16(r11) ffc0ac4c: 7d 3f 60 39 and. r31,r9,r12 ffc0ac50: 40 a2 00 0c bne+ ffc0ac5c <_Thread_queue_Enqueue_priority+0x124> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ac54: 7d 00 01 24 mtmsr r8 <== NOT EXECUTED ffc0ac58: 4b ff ff b8 b ffc0ac10 <_Thread_queue_Enqueue_priority+0xd8> <== NOT EXECUTED _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) ffc0ac5c: 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 ) ) { ffc0ac60: 7f 8b 50 00 cmpw cr7,r11,r10 ffc0ac64: 40 9e ff cc bne+ cr7,ffc0ac30 <_Thread_queue_Enqueue_priority+0xf8> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0ac68: 81 43 00 30 lwz r10,48(r3) restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { ffc0ac6c: 7d 09 43 78 mr r9,r8 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0ac70: 2f 8a 00 01 cmpwi cr7,r10,1 ffc0ac74: 40 be 00 5c bne+ cr7,ffc0acd0 <_Thread_queue_Enqueue_priority+0x198> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) ffc0ac78: 7f 80 38 00 cmpw cr7,r0,r7 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0ac7c: 38 00 00 00 li r0,0 ffc0ac80: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0ac84: 41 9e 00 28 beq- cr7,ffc0acac <_Thread_queue_Enqueue_priority+0x174> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; ffc0ac88: 81 2b 00 00 lwz r9,0(r11) the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; ffc0ac8c: 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; ffc0ac90: 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; ffc0ac94: 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; ffc0ac98: 90 8b 00 00 stw r4,0(r11) next_node->previous = the_node; ffc0ac9c: 90 89 00 04 stw r4,4(r9) ffc0aca0: 7d 00 01 24 mtmsr r8 ffc0aca4: 38 60 00 01 li r3,1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc0aca8: 48 00 00 30 b ffc0acd8 <_Thread_queue_Enqueue_priority+0x1a0> ffc0acac: 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; ffc0acb0: 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; ffc0acb4: 81 4b 00 04 lwz r10,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0acb8: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0acbc: 91 44 00 04 stw r10,4(r4) previous_node->next = the_node; ffc0acc0: 90 8a 00 00 stw r4,0(r10) search_node->previous = the_node; ffc0acc4: 90 8b 00 04 stw r4,4(r11) ffc0acc8: 7d 20 01 24 mtmsr r9 ffc0accc: 4b ff ff d8 b ffc0aca4 <_Thread_queue_Enqueue_priority+0x16c> * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; ffc0acd0: 91 25 00 00 stw r9,0(r5) return the_thread_queue->sync_state; ffc0acd4: 80 63 00 30 lwz r3,48(r3) } ffc0acd8: 83 e1 00 0c lwz r31,12(r1) ffc0acdc: 38 21 00 10 addi r1,r1,16 ffc0ace0: 4e 80 00 20 blr ffc19828 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19828: 94 21 ff 98 stwu r1,-104(r1) ffc1982c: 7c 08 02 a6 mflr r0 ffc19830: 92 01 00 28 stw r16,40(r1) Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc19834: 3a 01 00 08 addi r16,r1,8 ffc19838: 90 01 00 6c stw r0,108(r1) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc1983c: 38 00 00 00 li r0,0 ffc19840: 93 01 00 48 stw r24,72(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc19844: 3b 01 00 0c addi r24,r1,12 ffc19848: 93 61 00 54 stw r27,84(r1) ffc1984c: 3b 61 00 18 addi r27,r1,24 ffc19850: 93 c1 00 60 stw r30,96(r1) ffc19854: 3b c1 00 14 addi r30,r1,20 ffc19858: 92 21 00 2c stw r17,44(r1) static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; ffc1985c: 3e 20 00 00 lis r17,0 ffc19860: 3a 31 28 7c addi r17,r17,10364 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19864: 92 41 00 30 stw r18,48(r1) static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc19868: 3e 40 00 00 lis r18,0 ffc1986c: 3a 52 28 44 addi r18,r18,10308 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19870: 93 21 00 4c stw r25,76(r1) ffc19874: 3f 20 00 00 lis r25,0 ffc19878: 3b 39 28 24 addi r25,r25,10276 ffc1987c: 93 a1 00 5c stw r29,92(r1) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc19880: 90 01 00 18 stw r0,24(r1) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc19884: 93 01 00 08 stw r24,8(r1) the_chain->permanent_null = NULL; ffc19888: 90 01 00 0c stw r0,12(r1) the_chain->last = _Chain_Head(the_chain); ffc1988c: 92 01 00 10 stw r16,16(r1) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc19890: 93 61 00 14 stw r27,20(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc19894: 93 c1 00 1c stw r30,28(r1) ffc19898: 92 61 00 34 stw r19,52(r1) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc1989c: 3a 63 00 08 addi r19,r3,8 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc198a0: 92 81 00 38 stw r20,56(r1) static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc198a4: 3a 83 00 40 addi r20,r3,64 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc198a8: 92 a1 00 3c stw r21,60(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) ffc198ac: 3a a0 00 00 li r21,0 ffc198b0: 92 c1 00 40 stw r22,64(r1) * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; ffc198b4: 3a c0 00 00 li r22,0 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc198b8: 92 e1 00 44 stw r23,68(r1) _Thread_Set_state( ts->thread, STATES_DELAYING ); _Timer_server_Reset_interval_system_watchdog( ts ); _Timer_server_Reset_tod_system_watchdog( ts ); _Thread_Enable_dispatch(); ts->active = true; ffc198bc: 3a e0 00 01 li r23,1 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc198c0: 93 41 00 50 stw r26,80(r1) */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc198c4: 3b 43 00 30 addi r26,r3,48 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc198c8: 93 81 00 58 stw r28,88(r1) /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc198cc: 3b 83 00 68 addi r28,r3,104 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc198d0: 93 e1 00 64 stw r31,100(r1) ffc198d4: 7c 7f 1b 78 mr r31,r3 { /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; ffc198d8: 92 1f 00 78 stw r16,120(r31) static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; ffc198dc: 80 11 00 00 lwz r0,0(r17) */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc198e0: 7f c5 f3 78 mr r5,r30 Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; ffc198e4: 80 9f 00 3c lwz r4,60(r31) watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc198e8: 7f 43 d3 78 mr r3,r26 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; ffc198ec: 90 1f 00 3c stw r0,60(r31) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc198f0: 7c 84 00 50 subf r4,r4,r0 ffc198f4: 48 00 4d 5d bl ffc1e650 <_Watchdog_Adjust_to_chain> static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc198f8: 83 b2 00 00 lwz r29,0(r18) Watchdog_Interval last_snapshot = watchdogs->last_snapshot; ffc198fc: 80 bf 00 74 lwz r5,116(r31) /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { ffc19900: 7f 9d 28 40 cmplw cr7,r29,r5 ffc19904: 40 bd 00 18 ble+ cr7,ffc1991c <_Timer_server_Body+0xf4> /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19908: 7c 85 e8 50 subf r4,r5,r29 ffc1990c: 7f 83 e3 78 mr r3,r28 ffc19910: 7f c5 f3 78 mr r5,r30 ffc19914: 48 00 4d 3d bl ffc1e650 <_Watchdog_Adjust_to_chain> ffc19918: 48 00 00 18 b ffc19930 <_Timer_server_Body+0x108> } else if ( snapshot < last_snapshot ) { ffc1991c: 40 bc 00 14 bge+ cr7,ffc19930 <_Timer_server_Body+0x108> /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); ffc19920: 7c bd 28 50 subf r5,r29,r5 ffc19924: 7f 83 e3 78 mr r3,r28 ffc19928: 38 80 00 01 li r4,1 ffc1992c: 48 00 4c 41 bl ffc1e56c <_Watchdog_Adjust> } watchdogs->last_snapshot = snapshot; ffc19930: 93 bf 00 74 stw r29,116(r31) } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); ffc19934: 80 7f 00 78 lwz r3,120(r31) ffc19938: 48 00 0b 1d bl ffc1a454 <_Chain_Get> if ( timer == NULL ) { ffc1993c: 7c 64 1b 79 mr. r4,r3 ffc19940: 41 82 00 34 beq- ffc19974 <_Timer_server_Body+0x14c> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { ffc19944: 80 04 00 38 lwz r0,56(r4) ffc19948: 2f 00 00 01 cmpwi cr6,r0,1 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { ffc1994c: 2f 80 00 03 cmpwi cr7,r0,3 static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { ffc19950: 40 ba 00 10 bne+ cr6,ffc19960 <_Timer_server_Body+0x138> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); ffc19954: 38 84 00 10 addi r4,r4,16 ffc19958: 7f 43 d3 78 mr r3,r26 ffc1995c: 48 00 00 10 b ffc1996c <_Timer_server_Body+0x144> } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { ffc19960: 40 9e ff d4 bne+ cr7,ffc19934 <_Timer_server_Body+0x10c> _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); ffc19964: 38 84 00 10 addi r4,r4,16 ffc19968: 7f 83 e3 78 mr r3,r28 ffc1996c: 48 00 4d 9d bl ffc1e708 <_Watchdog_Insert> ffc19970: 4b ff ff c4 b ffc19934 <_Timer_server_Body+0x10c> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc19974: 7c 00 00 a6 mfmsr r0 ffc19978: 7d 30 42 a6 mfsprg r9,0 ffc1997c: 7c 09 48 78 andc r9,r0,r9 ffc19980: 7d 20 01 24 mtmsr r9 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ffc19984: 81 21 00 08 lwz r9,8(r1) ffc19988: 7f 89 c0 00 cmpw cr7,r9,r24 ffc1998c: 40 be 00 1c bne+ cr7,ffc199a8 <_Timer_server_Body+0x180> ts->insert_chain = NULL; ffc19990: 90 9f 00 78 stw r4,120(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19994: 7c 00 01 24 mtmsr r0 _Chain_Initialize_empty( &fire_chain ); while ( true ) { _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain ); if ( !_Chain_Is_empty( &fire_chain ) ) { ffc19998: 80 01 00 14 lwz r0,20(r1) ffc1999c: 7f 80 d8 00 cmpw cr7,r0,r27 ffc199a0: 40 be 00 10 bne+ cr7,ffc199b0 <_Timer_server_Body+0x188> ffc199a4: 48 00 00 64 b ffc19a08 <_Timer_server_Body+0x1e0> ffc199a8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc199ac: 4b ff ff 30 b ffc198dc <_Timer_server_Body+0xb4> <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc199b0: 7c 00 00 a6 mfmsr r0 ffc199b4: 7d 30 42 a6 mfsprg r9,0 ffc199b8: 7c 09 48 78 andc r9,r0,r9 ffc199bc: 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)); ffc199c0: 81 21 00 14 lwz r9,20(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) ffc199c4: 7f 09 d8 00 cmpw cr6,r9,r27 * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { ffc199c8: 2f 89 00 00 cmpwi cr7,r9,0 ffc199cc: 41 9a 00 34 beq- cr6,ffc19a00 <_Timer_server_Body+0x1d8> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc199d0: 81 69 00 00 lwz r11,0(r9) the_chain->first = new_first; ffc199d4: 91 61 00 14 stw r11,20(r1) new_first->previous = _Chain_Head(the_chain); ffc199d8: 93 cb 00 04 stw r30,4(r11) ffc199dc: 41 9e 00 24 beq- cr7,ffc19a00 <_Timer_server_Body+0x1d8> watchdog->state = WATCHDOG_INACTIVE; ffc199e0: 92 a9 00 08 stw r21,8(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc199e4: 7c 00 01 24 mtmsr r0 /* * The timer server may block here and wait for resources or time. * The system watchdogs are inactive and will remain inactive since * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); ffc199e8: 80 09 00 1c lwz r0,28(r9) ffc199ec: 80 89 00 24 lwz r4,36(r9) ffc199f0: 80 69 00 20 lwz r3,32(r9) ffc199f4: 7c 09 03 a6 mtctr r0 ffc199f8: 4e 80 04 21 bctrl } ffc199fc: 4b ff ff b4 b ffc199b0 <_Timer_server_Body+0x188> ffc19a00: 7c 00 01 24 mtmsr r0 ffc19a04: 4b ff fe d4 b ffc198d8 <_Timer_server_Body+0xb0> } else { ts->active = false; ffc19a08: 9a df 00 7c stb r22,124(r31) ffc19a0c: 81 39 00 00 lwz r9,0(r25) ffc19a10: 38 09 00 01 addi r0,r9,1 ffc19a14: 90 19 00 00 stw r0,0(r25) /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); ffc19a18: 80 7f 00 00 lwz r3,0(r31) ffc19a1c: 38 80 00 08 li r4,8 ffc19a20: 48 00 3f b1 bl ffc1d9d0 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); ffc19a24: 7f e3 fb 78 mr r3,r31 ffc19a28: 4b ff fd 01 bl ffc19728 <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); ffc19a2c: 7f e3 fb 78 mr r3,r31 ffc19a30: 4b ff fd 79 bl ffc197a8 <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); ffc19a34: 48 00 33 79 bl ffc1cdac <_Thread_Enable_dispatch> ts->active = true; ffc19a38: 9a ff 00 7c stb r23,124(r31) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc19a3c: 7e 63 9b 78 mr r3,r19 ffc19a40: 48 00 4e 21 bl ffc1e860 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc19a44: 7e 83 a3 78 mr r3,r20 ffc19a48: 48 00 4e 19 bl ffc1e860 <_Watchdog_Remove> ffc19a4c: 4b ff fe 8c b ffc198d8 <_Timer_server_Body+0xb0> ffc26bbc <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } ffc26bbc: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc26bc0: 4e 80 00 20 blr <== NOT EXECUTED ffc1b320 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); ffc1b320: 94 21 ff f0 stwu r1,-16(r1) ffc1b324: 7c 08 02 a6 mflr r0 ffc1b328: 90 61 00 08 stw r3,8(r1) ffc1b32c: 90 01 00 14 stw r0,20(r1) ffc1b330: 48 00 0a 51 bl ffc1bd80 <__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(); ffc1b334: 4b ff ff 65 bl ffc1b298 rtems_shutdown_executive(status); ffc1b338: 80 61 00 08 lwz r3,8(r1) ffc1b33c: 48 00 01 49 bl ffc1b484 ffc1b340: 48 00 00 00 b ffc1b340 <_exit+0x20> <== NOT EXECUTED ffc3ff38 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); ffc3ff38: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc3ff3c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc3ff40: 7c c5 33 78 mr r5,r6 <== NOT EXECUTED ffc3ff44: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc3ff48: 4b ff fd 58 b ffc3fca0 <== NOT EXECUTED ffc26b80 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } ffc26b80: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc26b84: 4e 80 00 20 blr <== NOT EXECUTED ffc0d208 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); ffc0d208: 4b ff ff 80 b ffc0d188 <== NOT EXECUTED ffc26bb4 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } ffc26bb4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc26bb8: 4e 80 00 20 blr <== NOT EXECUTED ffc2c204 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); ffc2c204: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc2c208: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc2c20c: 4b ff fd 60 b ffc2bf6c <== NOT EXECUTED ffc2c45c <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc2c45c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc2c460: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc2c464: 4b ff fe e4 b ffc2c348 <== NOT EXECUTED ffc1b430 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1b430: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc1b434: 7c 08 02 a6 mflr r0 <== NOT EXECUTED return realloc( ptr, size ); ffc1b438: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc1b43c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1b440: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED return realloc( ptr, size ); ffc1b444: 48 00 00 81 bl ffc1b4c4 <== NOT EXECUTED } ffc1b448: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc1b44c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc1b450: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1b454: 4e 80 00 20 blr <== NOT EXECUTED ffc60e74 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc60e74: 94 21 ff a0 stwu r1,-96(r1) <== NOT EXECUTED ffc60e78: 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 ); ffc60e7c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc60e80: 93 81 00 50 stw r28,80(r1) <== NOT EXECUTED ffc60e84: 93 a1 00 54 stw r29,84(r1) <== NOT EXECUTED ffc60e88: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED ffc60e8c: 93 c1 00 58 stw r30,88(r1) <== NOT EXECUTED ffc60e90: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED ffc60e94: 90 01 00 64 stw r0,100(r1) <== NOT EXECUTED ffc60e98: 93 61 00 4c stw r27,76(r1) <== NOT EXECUTED ffc60e9c: 93 e1 00 5c stw r31,92(r1) <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); ffc60ea0: 4b fa 75 11 bl ffc083b0 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) ffc60ea4: 7c 7c 1b 79 mr. r28,r3 <== NOT EXECUTED ffc60ea8: 40 82 00 8c bne- ffc60f34 <_rename_r+0xc0> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); ffc60eac: 88 1e 00 00 lbz r0,0(r30) <== NOT EXECUTED ffc60eb0: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED ffc60eb4: 41 9e 00 14 beq- cr7,ffc60ec8 <_rename_r+0x54> <== NOT EXECUTED ffc60eb8: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc60ebc: 41 9e 00 0c beq- cr7,ffc60ec8 <_rename_r+0x54> <== NOT EXECUTED ffc60ec0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc60ec4: 40 9e 00 38 bne- cr7,ffc60efc <_rename_r+0x88> <== NOT EXECUTED ffc60ec8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc60ecc: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED ffc60ed0: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc60ed4: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc60ed8: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc60edc: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc60ee0: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc60ee4: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc60ee8: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc60eec: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc60ef0: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc60ef4: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc60ef8: 48 00 00 34 b ffc60f2c <_rename_r+0xb8> <== NOT EXECUTED ffc60efc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc60f00: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED ffc60f04: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc60f08: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc60f0c: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc60f10: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc60f14: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc60f18: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc60f1c: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc60f20: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc60f24: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc60f28: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc60f2c: 90 01 00 30 stw r0,48(r1) <== NOT EXECUTED ffc60f30: 48 00 00 2c b ffc60f5c <_rename_r+0xe8> <== NOT EXECUTED else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, ffc60f34: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc60f38: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc60f3c: 38 a0 00 02 li r5,2 <== NOT EXECUTED ffc60f40: 38 c1 00 20 addi r6,r1,32 <== NOT EXECUTED ffc60f44: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc60f48: 4b fa 75 e1 bl ffc08528 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) ffc60f4c: 3b e0 00 01 li r31,1 <== NOT EXECUTED ffc60f50: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc60f54: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc60f58: 40 9e 03 90 bne- cr7,ffc612e8 <_rename_r+0x474> <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; ffc60f5c: 80 01 00 20 lwz r0,32(r1) <== NOT EXECUTED name = old + old_parent_pathlen; ffc60f60: 7f de e2 14 add r30,r30,r28 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc60f64: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; name = old + old_parent_pathlen; ffc60f68: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; ffc60f6c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc60f70: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc60f74: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED ffc60f78: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED ffc60f7c: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc60f80: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc60f84: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED ffc60f88: 80 01 00 30 lwz r0,48(r1) <== NOT EXECUTED ffc60f8c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc60f90: 4b fe cd 49 bl ffc4dcd8 <== NOT EXECUTED ffc60f94: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc60f98: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc60f9c: 4b fa 73 d9 bl ffc08374 <== NOT EXECUTED ffc60fa0: 7f de 1a 14 add r30,r30,r3 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc60fa4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc60fa8: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc60fac: 4b fe cd 2d bl ffc4dcd8 <== NOT EXECUTED ffc60fb0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc60fb4: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc60fb8: 38 c1 00 0c addi r6,r1,12 <== NOT EXECUTED ffc60fbc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc60fc0: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc60fc4: 4b fa 74 51 bl ffc08414 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { ffc60fc8: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc60fcc: 41 a2 00 3c beq+ ffc61008 <_rename_r+0x194> <== NOT EXECUTED if ( free_old_parentloc ) ffc60fd0: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc60fd4: 41 9e 00 28 beq- cr7,ffc60ffc <_rename_r+0x188> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc60fd8: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc60fdc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc60fe0: 41 9e 00 1c beq- cr7,ffc60ffc <_rename_r+0x188> <== NOT EXECUTED ffc60fe4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc60fe8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc60fec: 41 9e 00 10 beq- cr7,ffc60ffc <_rename_r+0x188> <== NOT EXECUTED ffc60ff0: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc60ff4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc60ff8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); ffc60ffc: 4b fe 4f 71 bl ffc45f6c <__errno> <== NOT EXECUTED ffc61000: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc61004: 48 00 00 f4 b ffc610f8 <_rename_r+0x284> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); ffc61008: 88 1d 00 00 lbz r0,0(r29) <== NOT EXECUTED ffc6100c: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED ffc61010: 41 9e 00 14 beq- cr7,ffc61024 <_rename_r+0x1b0> <== NOT EXECUTED ffc61014: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc61018: 41 9e 00 0c beq- cr7,ffc61024 <_rename_r+0x1b0> <== NOT EXECUTED ffc6101c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61020: 40 9e 00 38 bne- cr7,ffc61058 <_rename_r+0x1e4> <== NOT EXECUTED ffc61024: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc61028: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED ffc6102c: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc61030: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc61034: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc61038: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc6103c: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc61040: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED ffc61044: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED ffc61048: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED ffc6104c: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED ffc61050: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc61054: 48 00 00 34 b ffc61088 <_rename_r+0x214> <== NOT EXECUTED ffc61058: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc6105c: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED ffc61060: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc61064: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc61068: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc6106c: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc61070: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc61074: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED ffc61078: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED ffc6107c: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED ffc61080: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED ffc61084: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { ffc61088: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); ffc6108c: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { ffc61090: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc61094: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61098: 40 be 00 68 bne+ cr7,ffc61100 <_rename_r+0x28c> <== NOT EXECUTED if ( free_old_parentloc ) ffc6109c: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc610a0: 41 9e 00 28 beq- cr7,ffc610c8 <_rename_r+0x254> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc610a4: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc610a8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc610ac: 41 9e 00 1c beq- cr7,ffc610c8 <_rename_r+0x254> <== NOT EXECUTED ffc610b0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc610b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc610b8: 41 9e 00 10 beq- cr7,ffc610c8 <_rename_r+0x254> <== NOT EXECUTED ffc610bc: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc610c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc610c4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc610c8: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc610cc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc610d0: 41 9e 00 1c beq- cr7,ffc610ec <_rename_r+0x278> <== NOT EXECUTED ffc610d4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc610d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc610dc: 41 9e 00 10 beq- cr7,ffc610ec <_rename_r+0x278> <== NOT EXECUTED ffc610e0: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc610e4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc610e8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc610ec: 4b fe 4e 81 bl ffc45f6c <__errno> <== NOT EXECUTED ffc610f0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc610f4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc610f8: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc610fc: 48 00 01 ec b ffc612e8 <_rename_r+0x474> <== NOT EXECUTED } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); ffc61100: 3b c1 00 34 addi r30,r1,52 <== NOT EXECUTED ffc61104: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc61108: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc6110c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc61110: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc61114: 4e 80 04 21 bctrl <== NOT EXECUTED if ( result != 0 ) { ffc61118: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc6111c: 41 a2 00 84 beq+ ffc611a0 <_rename_r+0x32c> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc61120: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc61124: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc61128: 41 9e 00 1c beq- cr7,ffc61144 <_rename_r+0x2d0> <== NOT EXECUTED ffc6112c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc61130: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61134: 41 9e 00 10 beq- cr7,ffc61144 <_rename_r+0x2d0> <== NOT EXECUTED ffc61138: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc6113c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc61140: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc61144: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc61148: 41 9e 00 28 beq- cr7,ffc61170 <_rename_r+0x2fc> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc6114c: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc61150: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc61154: 41 9e 00 1c beq- cr7,ffc61170 <_rename_r+0x2fc> <== NOT EXECUTED ffc61158: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc6115c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61160: 41 9e 00 10 beq- cr7,ffc61170 <_rename_r+0x2fc> <== NOT EXECUTED ffc61164: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc61168: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc6116c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc61170: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc61174: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc61178: 41 9e 00 1c beq- cr7,ffc61194 <_rename_r+0x320> <== NOT EXECUTED ffc6117c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc61180: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61184: 41 9e 00 10 beq- cr7,ffc61194 <_rename_r+0x320> <== NOT EXECUTED ffc61188: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc6118c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc61190: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); ffc61194: 4b fe 4d d9 bl ffc45f6c <__errno> <== NOT EXECUTED ffc61198: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc6119c: 4b ff ff 5c b ffc610f8 <_rename_r+0x284> <== NOT EXECUTED /* * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { ffc611a0: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc611a4: 81 61 00 30 lwz r11,48(r1) <== NOT EXECUTED ffc611a8: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc611ac: 7f 8b 00 00 cmpw cr7,r11,r0 <== NOT EXECUTED ffc611b0: 41 be 00 80 beq+ cr7,ffc61230 <_rename_r+0x3bc> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc611b4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc611b8: 41 9e 00 1c beq- cr7,ffc611d4 <_rename_r+0x360> <== NOT EXECUTED ffc611bc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc611c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc611c4: 41 9e 00 10 beq- cr7,ffc611d4 <_rename_r+0x360> <== NOT EXECUTED ffc611c8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc611cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc611d0: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc611d4: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc611d8: 41 9e 00 28 beq- cr7,ffc61200 <_rename_r+0x38c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc611dc: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc611e0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc611e4: 41 9e 00 1c beq- cr7,ffc61200 <_rename_r+0x38c> <== NOT EXECUTED ffc611e8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc611ec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc611f0: 41 9e 00 10 beq- cr7,ffc61200 <_rename_r+0x38c> <== NOT EXECUTED ffc611f4: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc611f8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc611fc: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc61200: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc61204: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc61208: 41 9e 00 1c beq- cr7,ffc61224 <_rename_r+0x3b0> <== NOT EXECUTED ffc6120c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc61210: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61214: 41 9e 00 10 beq- cr7,ffc61224 <_rename_r+0x3b0> <== NOT EXECUTED ffc61218: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc6121c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc61220: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); ffc61224: 4b fe 4d 49 bl ffc45f6c <__errno> <== NOT EXECUTED ffc61228: 38 00 00 12 li r0,18 <== NOT EXECUTED ffc6122c: 4b ff fe c8 b ffc610f4 <_rename_r+0x280> <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { ffc61230: 80 09 00 40 lwz r0,64(r9) <== NOT EXECUTED ffc61234: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61238: 40 be 00 20 bne+ cr7,ffc61258 <_rename_r+0x3e4> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc6123c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc61240: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61244: 41 be fe 58 beq- cr7,ffc6109c <_rename_r+0x228> <== NOT EXECUTED ffc61248: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc6124c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc61250: 4e 80 04 21 bctrl <== NOT EXECUTED ffc61254: 4b ff fe 48 b ffc6109c <_rename_r+0x228> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); ffc61258: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc6125c: 80 c1 00 08 lwz r6,8(r1) <== NOT EXECUTED ffc61260: 38 81 00 0c addi r4,r1,12 <== NOT EXECUTED ffc61264: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc61268: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc6126c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc61270: 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 ); ffc61274: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc61278: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc6127c: 41 9e 00 1c beq- cr7,ffc61298 <_rename_r+0x424> <== NOT EXECUTED ffc61280: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc61284: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc61288: 41 9e 00 10 beq- cr7,ffc61298 <_rename_r+0x424> <== NOT EXECUTED ffc6128c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc61290: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc61294: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc61298: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc6129c: 41 9e 00 28 beq- cr7,ffc612c4 <_rename_r+0x450> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc612a0: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc612a4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc612a8: 41 9e 00 1c beq- cr7,ffc612c4 <_rename_r+0x450> <== NOT EXECUTED ffc612ac: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc612b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc612b4: 41 9e 00 10 beq- cr7,ffc612c4 <_rename_r+0x450> <== NOT EXECUTED ffc612b8: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc612bc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc612c0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc612c4: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc612c8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc612cc: 41 9e 00 1c beq- cr7,ffc612e8 <_rename_r+0x474> <== NOT EXECUTED ffc612d0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc612d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc612d8: 41 9e 00 10 beq- cr7,ffc612e8 <_rename_r+0x474> <== NOT EXECUTED ffc612dc: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc612e0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc612e4: 4e 80 04 21 bctrl <== NOT EXECUTED return result; } ffc612e8: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED ffc612ec: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc612f0: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED ffc612f4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc612f8: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED ffc612fc: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED ffc61300: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED ffc61304: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED ffc61308: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED ffc6130c: 4e 80 00 20 blr <== NOT EXECUTED ffc0a254 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc0a254: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc0a258: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc0a25c: 4b ff fe e4 b ffc0a140 <== NOT EXECUTED ffc1050c <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); ffc1050c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc10510: 4b ff fd 20 b ffc10230 <== NOT EXECUTED ffc2a868 : #include int chdir( const char *pathname ) { ffc2a868: 94 21 ff d0 stwu r1,-48(r1) ffc2a86c: 7c 08 02 a6 mflr r0 ffc2a870: 93 c1 00 28 stw r30,40(r1) ffc2a874: 7c 7e 1b 78 mr r30,r3 ffc2a878: 90 01 00 34 stw r0,52(r1) ffc2a87c: 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 ); ffc2a880: 48 02 34 59 bl ffc4dcd8 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc2a884: 3b e1 00 08 addi r31,r1,8 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); ffc2a888: 7c 64 1b 78 mr r4,r3 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc2a88c: 38 a0 00 01 li r5,1 ffc2a890: 7f c3 f3 78 mr r3,r30 ffc2a894: 7f e6 fb 78 mr r6,r31 ffc2a898: 38 e0 00 01 li r7,1 ffc2a89c: 4b fd dc 8d bl ffc08528 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) ffc2a8a0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2a8a4: 38 60 ff ff li r3,-1 ffc2a8a8: 40 9e 00 e4 bne- cr7,ffc2a98c /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { ffc2a8ac: 81 21 00 14 lwz r9,20(r1) ffc2a8b0: 80 09 00 10 lwz r0,16(r9) ffc2a8b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2a8b8: 40 be 00 28 bne+ cr7,ffc2a8e0 rtems_filesystem_freenode( &loc ); ffc2a8bc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2a8c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2a8c4: 41 9e 00 10 beq- cr7,ffc2a8d4 <== NOT EXECUTED ffc2a8c8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2a8cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2a8d0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2a8d4: 48 01 b6 99 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2a8d8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2a8dc: 48 00 00 44 b ffc2a920 <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { ffc2a8e0: 7f e3 fb 78 mr r3,r31 ffc2a8e4: 7c 09 03 a6 mtctr r0 ffc2a8e8: 4e 80 04 21 bctrl ffc2a8ec: 2f 83 00 01 cmpwi cr7,r3,1 ffc2a8f0: 41 be 00 3c beq+ cr7,ffc2a92c rtems_filesystem_freenode( &loc ); ffc2a8f4: 81 21 00 14 lwz r9,20(r1) ffc2a8f8: 2f 89 00 00 cmpwi cr7,r9,0 ffc2a8fc: 41 9e 00 1c beq- cr7,ffc2a918 ffc2a900: 80 09 00 1c lwz r0,28(r9) ffc2a904: 2f 80 00 00 cmpwi cr7,r0,0 ffc2a908: 41 9e 00 10 beq- cr7,ffc2a918 ffc2a90c: 7f e3 fb 78 mr r3,r31 ffc2a910: 7c 09 03 a6 mtctr r0 ffc2a914: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc2a918: 48 01 b6 55 bl ffc45f6c <__errno> ffc2a91c: 38 00 00 14 li r0,20 ffc2a920: 90 03 00 00 stw r0,0(r3) ffc2a924: 38 60 ff ff li r3,-1 ffc2a928: 48 00 00 64 b ffc2a98c } rtems_filesystem_freenode( &rtems_filesystem_current ); ffc2a92c: 3d 20 00 00 lis r9,0 ffc2a930: 80 69 34 ec lwz r3,13548(r9) ffc2a934: 81 23 00 10 lwz r9,16(r3) ffc2a938: 2f 89 00 00 cmpwi cr7,r9,0 ffc2a93c: 41 9e 00 1c beq- cr7,ffc2a958 ffc2a940: 80 09 00 1c lwz r0,28(r9) ffc2a944: 2f 80 00 00 cmpwi cr7,r0,0 ffc2a948: 41 9e 00 10 beq- cr7,ffc2a958 ffc2a94c: 38 63 00 04 addi r3,r3,4 ffc2a950: 7c 09 03 a6 mtctr r0 ffc2a954: 4e 80 04 21 bctrl rtems_filesystem_current = loc; ffc2a958: 3d 20 00 00 lis r9,0 ffc2a95c: 80 01 00 14 lwz r0,20(r1) ffc2a960: 81 29 34 ec lwz r9,13548(r9) ffc2a964: 38 60 00 00 li r3,0 ffc2a968: 81 41 00 0c lwz r10,12(r1) ffc2a96c: 81 61 00 10 lwz r11,16(r1) ffc2a970: 81 01 00 08 lwz r8,8(r1) ffc2a974: 91 49 00 08 stw r10,8(r9) ffc2a978: 91 09 00 04 stw r8,4(r9) ffc2a97c: 91 69 00 0c stw r11,12(r9) ffc2a980: 90 09 00 10 stw r0,16(r9) ffc2a984: 80 01 00 18 lwz r0,24(r1) ffc2a988: 90 09 00 14 stw r0,20(r9) return 0; } ffc2a98c: 80 01 00 34 lwz r0,52(r1) ffc2a990: 83 c1 00 28 lwz r30,40(r1) ffc2a994: 7c 08 03 a6 mtlr r0 ffc2a998: 83 e1 00 2c lwz r31,44(r1) ffc2a99c: 38 21 00 30 addi r1,r1,48 ffc2a9a0: 4e 80 00 20 blr ffc08188 : int chmod( const char *path, mode_t mode ) { ffc08188: 94 21 ff c8 stwu r1,-56(r1) ffc0818c: 7c 08 02 a6 mflr r0 ffc08190: 93 a1 00 2c stw r29,44(r1) ffc08194: 7c 7d 1b 78 mr r29,r3 ffc08198: 90 01 00 3c stw r0,60(r1) ffc0819c: 93 c1 00 30 stw r30,48(r1) ffc081a0: 7c 9e 23 78 mr r30,r4 ffc081a4: 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 ); ffc081a8: 48 04 5b 31 bl ffc4dcd8 ffc081ac: 3b e1 00 08 addi r31,r1,8 ffc081b0: 7c 64 1b 78 mr r4,r3 ffc081b4: 38 a0 00 00 li r5,0 ffc081b8: 7f a3 eb 78 mr r3,r29 ffc081bc: 7f e6 fb 78 mr r6,r31 ffc081c0: 38 e0 00 01 li r7,1 ffc081c4: 48 00 03 65 bl ffc08528 if ( status != 0 ) ffc081c8: 3b a0 ff ff li r29,-1 ffc081cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc081d0: 40 9e 00 bc bne- cr7,ffc0828c return -1; if ( !loc.handlers ){ ffc081d4: 81 21 00 10 lwz r9,16(r1) ffc081d8: 2f 89 00 00 cmpwi cr7,r9,0 ffc081dc: 40 be 00 34 bne+ cr7,ffc08210 rtems_filesystem_freenode( &loc ); ffc081e0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc081e4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc081e8: 41 9e 00 1c beq- cr7,ffc08204 <== NOT EXECUTED ffc081ec: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc081f0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc081f4: 41 9e 00 10 beq- cr7,ffc08204 <== NOT EXECUTED ffc081f8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc081fc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc08200: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); ffc08204: 48 03 dd 69 bl ffc45f6c <__errno> <== NOT EXECUTED ffc08208: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc0820c: 48 00 00 3c b ffc08248 <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ ffc08210: 80 09 00 1c lwz r0,28(r9) ffc08214: 2f 80 00 00 cmpwi cr7,r0,0 ffc08218: 40 be 00 3c bne+ cr7,ffc08254 rtems_filesystem_freenode( &loc ); ffc0821c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc08220: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc08224: 41 9e 00 1c beq- cr7,ffc08240 <== NOT EXECUTED ffc08228: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0822c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc08230: 41 9e 00 10 beq- cr7,ffc08240 <== NOT EXECUTED ffc08234: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc08238: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0823c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc08240: 48 03 dd 2d bl ffc45f6c <__errno> <== NOT EXECUTED ffc08244: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08248: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0824c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc08250: 48 00 00 3c b ffc0828c <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); ffc08254: 7f c4 f3 78 mr r4,r30 ffc08258: 7c 09 03 a6 mtctr r0 ffc0825c: 7f e3 fb 78 mr r3,r31 ffc08260: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc08264: 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 ); ffc08268: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc0826c: 2f 89 00 00 cmpwi cr7,r9,0 ffc08270: 41 9e 00 1c beq- cr7,ffc0828c ffc08274: 80 09 00 1c lwz r0,28(r9) ffc08278: 2f 80 00 00 cmpwi cr7,r0,0 ffc0827c: 41 9e 00 10 beq- cr7,ffc0828c ffc08280: 7f e3 fb 78 mr r3,r31 ffc08284: 7c 09 03 a6 mtctr r0 ffc08288: 4e 80 04 21 bctrl return result; } ffc0828c: 80 01 00 3c lwz r0,60(r1) ffc08290: 7f a3 eb 78 mr r3,r29 ffc08294: 83 c1 00 30 lwz r30,48(r1) ffc08298: 7c 08 03 a6 mtlr r0 ffc0829c: 83 a1 00 2c lwz r29,44(r1) ffc082a0: 83 e1 00 34 lwz r31,52(r1) ffc082a4: 38 21 00 38 addi r1,r1,56 ffc082a8: 4e 80 00 20 blr ffc2a9a4 : int chown( const char *path, uid_t owner, gid_t group ) { ffc2a9a4: 94 21 ff c8 stwu r1,-56(r1) ffc2a9a8: 7c 08 02 a6 mflr r0 ffc2a9ac: 93 81 00 28 stw r28,40(r1) ffc2a9b0: 7c 7c 1b 78 mr r28,r3 ffc2a9b4: 90 01 00 3c stw r0,60(r1) ffc2a9b8: 93 a1 00 2c stw r29,44(r1) ffc2a9bc: 7c 9d 23 78 mr r29,r4 ffc2a9c0: 93 c1 00 30 stw r30,48(r1) ffc2a9c4: 7c be 2b 78 mr r30,r5 ffc2a9c8: 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 ) ) ffc2a9cc: 48 02 33 0d bl ffc4dcd8 ffc2a9d0: 3b e1 00 08 addi r31,r1,8 ffc2a9d4: 7c 64 1b 78 mr r4,r3 ffc2a9d8: 38 a0 00 00 li r5,0 ffc2a9dc: 7f 83 e3 78 mr r3,r28 ffc2a9e0: 7f e6 fb 78 mr r6,r31 ffc2a9e4: 38 e0 00 01 li r7,1 ffc2a9e8: 4b fd db 41 bl ffc08528 ffc2a9ec: 3b 80 ff ff li r28,-1 ffc2a9f0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2a9f4: 40 9e 00 7c bne- cr7,ffc2aa70 return -1; if ( !loc.ops->chown_h ) { ffc2a9f8: 81 21 00 14 lwz r9,20(r1) ffc2a9fc: 80 09 00 18 lwz r0,24(r9) ffc2aa00: 2f 80 00 00 cmpwi cr7,r0,0 ffc2aa04: 40 be 00 30 bne+ cr7,ffc2aa34 rtems_filesystem_freenode( &loc ); ffc2aa08: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2aa0c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2aa10: 41 9e 00 10 beq- cr7,ffc2aa20 <== NOT EXECUTED ffc2aa14: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2aa18: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2aa1c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2aa20: 48 01 b5 4d bl ffc45f6c <__errno> <== NOT EXECUTED ffc2aa24: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2aa28: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2aa2c: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc2aa30: 48 00 00 40 b ffc2aa70 <== NOT EXECUTED } result = (*loc.ops->chown_h)( &loc, owner, group ); ffc2aa34: 7f a4 eb 78 mr r4,r29 ffc2aa38: 7c 09 03 a6 mtctr r0 ffc2aa3c: 7f c5 f3 78 mr r5,r30 ffc2aa40: 7f e3 fb 78 mr r3,r31 ffc2aa44: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc2aa48: 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 ); ffc2aa4c: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc2aa50: 2f 89 00 00 cmpwi cr7,r9,0 ffc2aa54: 41 9e 00 1c beq- cr7,ffc2aa70 ffc2aa58: 80 09 00 1c lwz r0,28(r9) ffc2aa5c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2aa60: 41 9e 00 10 beq- cr7,ffc2aa70 ffc2aa64: 7f e3 fb 78 mr r3,r31 ffc2aa68: 7c 09 03 a6 mtctr r0 ffc2aa6c: 4e 80 04 21 bctrl return result; } ffc2aa70: 80 01 00 3c lwz r0,60(r1) ffc2aa74: 7f 83 e3 78 mr r3,r28 ffc2aa78: 83 a1 00 2c lwz r29,44(r1) ffc2aa7c: 7c 08 03 a6 mtlr r0 ffc2aa80: 83 81 00 28 lwz r28,40(r1) ffc2aa84: 83 c1 00 30 lwz r30,48(r1) ffc2aa88: 83 e1 00 34 lwz r31,52(r1) ffc2aa8c: 38 21 00 38 addi r1,r1,56 ffc2aa90: 4e 80 00 20 blr ffc2aa94 : #include int chroot( const char *pathname ) { ffc2aa94: 94 21 ff c8 stwu r1,-56(r1) ffc2aa98: 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) { ffc2aa9c: 3d 20 00 00 lis r9,0 #include int chroot( const char *pathname ) { ffc2aaa0: 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) { ffc2aaa4: 3f c0 00 00 lis r30,0 #include int chroot( const char *pathname ) { ffc2aaa8: 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) { ffc2aaac: 83 fe 34 ec lwz r31,13548(r30) #include int chroot( const char *pathname ) { ffc2aab0: 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) { ffc2aab4: 38 09 63 64 addi r0,r9,25444 ffc2aab8: 7f 9f 00 00 cmpw cr7,r31,r0 #include int chroot( const char *pathname ) { ffc2aabc: 93 a1 00 2c stw r29,44(r1) ffc2aac0: 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) { ffc2aac4: 40 be 00 28 bne+ cr7,ffc2aaec rtems_libio_set_private_env(); /* try to set a new private env*/ ffc2aac8: 48 00 1d 79 bl ffc2c840 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ ffc2aacc: 80 1e 34 ec lwz r0,13548(r30) ffc2aad0: 7f 80 f8 00 cmpw cr7,r0,r31 ffc2aad4: 40 be 00 18 bne+ cr7,ffc2aaec rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2aad8: 48 01 b4 95 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2aadc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2aae0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2aae4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2aae8: 48 00 00 b4 b ffc2ab9c <== NOT EXECUTED } result = chdir(pathname); ffc2aaec: 7f a3 eb 78 mr r3,r29 ffc2aaf0: 4b ff fd 79 bl ffc2a868 if (result) { ffc2aaf4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2aaf8: 40 9e 00 28 bne- cr7,ffc2ab20 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc2aafc: 3c 60 ff c6 lis r3,-58 ffc2ab00: 38 63 41 e5 addi r3,r3,16869 ffc2ab04: 38 80 00 01 li r4,1 ffc2ab08: 38 a0 00 00 li r5,0 ffc2ab0c: 38 c1 00 08 addi r6,r1,8 ffc2ab10: 38 e0 00 00 li r7,0 ffc2ab14: 4b fd da 15 bl ffc08528 ffc2ab18: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ab1c: 41 be 00 20 beq+ cr7,ffc2ab3c /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); ffc2ab20: 48 01 b4 4d bl ffc45f6c <__errno> <== NOT EXECUTED ffc2ab24: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc2ab28: 48 01 b4 45 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2ab2c: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc2ab30: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2ab34: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED ffc2ab38: 48 00 00 64 b ffc2ab9c <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); ffc2ab3c: 3d 20 00 00 lis r9,0 ffc2ab40: 80 69 34 ec lwz r3,13548(r9) ffc2ab44: 81 23 00 24 lwz r9,36(r3) ffc2ab48: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ab4c: 41 9e 00 1c beq- cr7,ffc2ab68 ffc2ab50: 80 09 00 1c lwz r0,28(r9) ffc2ab54: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ab58: 41 9e 00 10 beq- cr7,ffc2ab68 ffc2ab5c: 38 63 00 18 addi r3,r3,24 ffc2ab60: 7c 09 03 a6 mtctr r0 ffc2ab64: 4e 80 04 21 bctrl rtems_filesystem_root = loc; ffc2ab68: 3d 20 00 00 lis r9,0 ffc2ab6c: 80 01 00 14 lwz r0,20(r1) ffc2ab70: 81 29 34 ec lwz r9,13548(r9) ffc2ab74: 38 60 00 00 li r3,0 ffc2ab78: 81 41 00 0c lwz r10,12(r1) ffc2ab7c: 81 61 00 10 lwz r11,16(r1) ffc2ab80: 81 01 00 08 lwz r8,8(r1) ffc2ab84: 91 49 00 1c stw r10,28(r9) ffc2ab88: 91 09 00 18 stw r8,24(r9) ffc2ab8c: 91 69 00 20 stw r11,32(r9) ffc2ab90: 90 09 00 24 stw r0,36(r9) ffc2ab94: 80 01 00 18 lwz r0,24(r1) ffc2ab98: 90 09 00 28 stw r0,40(r9) return 0; } ffc2ab9c: 80 01 00 3c lwz r0,60(r1) ffc2aba0: 83 a1 00 2c lwz r29,44(r1) ffc2aba4: 7c 08 03 a6 mtlr r0 ffc2aba8: 83 c1 00 30 lwz r30,48(r1) ffc2abac: 83 e1 00 34 lwz r31,52(r1) ffc2abb0: 38 21 00 38 addi r1,r1,56 ffc2abb4: 4e 80 00 20 blr ffc0bcdc : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { ffc0bcdc: 94 21 ff e8 stwu r1,-24(r1) ffc0bce0: 7c 08 02 a6 mflr r0 ffc0bce4: 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; ffc0bce8: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc0bcec: 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; ffc0bcf0: 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; ffc0bcf4: 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; ffc0bcf8: 81 23 00 3c lwz r9,60(r3) args.iop = iop; ffc0bcfc: 90 61 00 08 stw r3,8(r1) args.flags = 0; args.mode = 0; status = rtems_io_close( ffc0bd00: 80 89 00 0c lwz r4,12(r9) ffc0bd04: 80 69 00 08 lwz r3,8(r9) ffc0bd08: 48 00 0d 21 bl ffc0ca28 np->major, np->minor, (void *) &args ); if ( status ) { ffc0bd0c: 38 00 00 00 li r0,0 ffc0bd10: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bd14: 41 be 00 0c beq+ cr7,ffc0bd20 return rtems_deviceio_errno(status); ffc0bd18: 48 00 01 35 bl ffc0be4c <== NOT EXECUTED ffc0bd1c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc0bd20: 7c 03 03 78 mr r3,r0 ffc0bd24: 80 01 00 1c lwz r0,28(r1) ffc0bd28: 38 21 00 18 addi r1,r1,24 ffc0bd2c: 7c 08 03 a6 mtlr r0 ffc0bd30: 4e 80 00 20 blr ffc0bd40 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bd40: 94 21 ff d8 stwu r1,-40(r1) ffc0bd44: 7c 08 02 a6 mflr r0 ffc0bd48: 93 c1 00 20 stw r30,32(r1) assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; ffc0bd4c: 83 c6 00 00 lwz r30,0(r6) const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bd50: 93 21 00 0c stw r25,12(r1) ffc0bd54: 7c 79 1b 78 mr r25,r3 rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) ffc0bd58: 2f 9e 00 00 cmpwi cr7,r30,0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bd5c: 93 61 00 14 stw r27,20(r1) ffc0bd60: 7c 9b 23 78 mr r27,r4 ffc0bd64: 93 e1 00 24 stw r31,36(r1) ffc0bd68: 7c df 33 78 mr r31,r6 ffc0bd6c: 90 01 00 2c stw r0,44(r1) ffc0bd70: 93 41 00 10 stw r26,16(r1) ffc0bd74: 93 81 00 18 stw r28,24(r1) ffc0bd78: 93 a1 00 1c stw r29,28(r1) rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) ffc0bd7c: 41 9e 00 14 beq- cr7,ffc0bd90 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { ffc0bd80: 3f 40 00 00 lis r26,0 ffc0bd84: 3b 5a 26 70 addi r26,r26,9840 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) ffc0bd88: 3b a0 00 00 li r29,0 ffc0bd8c: 48 00 00 6c b ffc0bdf8 rtems_set_errno_and_return_minus_one( EFAULT ); ffc0bd90: 48 00 1c a5 bl ffc0da34 <__errno> <== NOT EXECUTED ffc0bd94: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0bd98: 48 00 00 80 b ffc0be18 <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) ffc0bd9c: 83 9e 00 00 lwz r28,0(r30) ffc0bda0: 2f 9c 00 00 cmpwi cr7,r28,0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0bda4: 7f 84 e3 78 mr r4,r28 device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) ffc0bda8: 41 9e 00 4c beq- cr7,ffc0bdf4 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0bdac: 48 00 2d 89 bl ffc0eb34 ffc0bdb0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bdb4: 40 9e 00 40 bne- cr7,ffc0bdf4 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') ffc0bdb8: 7c 1c d8 ae lbzx r0,r28,r27 ffc0bdbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bdc0: 40 be 00 34 bne+ cr7,ffc0bdf4 /* 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; ffc0bdc4: 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]; ffc0bdc8: 93 df 00 00 stw r30,0(r31) pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; ffc0bdcc: 81 29 26 b8 lwz r9,9912(r9) ffc0bdd0: 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; ffc0bdd4: 3d 20 00 00 lis r9,0 pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; ffc0bdd8: 90 1f 00 10 stw r0,16(r31) if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; ffc0bddc: 38 09 21 48 addi r0,r9,8520 pathloc->ops = &devFS_ops; ffc0bde0: 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; ffc0bde4: 90 1f 00 08 stw r0,8(r31) pathloc->ops = &devFS_ops; ffc0bde8: 38 09 21 80 addi r0,r9,8576 ffc0bdec: 90 1f 00 0c stw r0,12(r31) pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; ffc0bdf0: 48 00 00 30 b ffc0be20 /* 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++) { ffc0bdf4: 3b de 00 14 addi r30,r30,20 ffc0bdf8: 80 1a 00 00 lwz r0,0(r26) if (!device_name_table[i].device_name) continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0bdfc: 7f 23 cb 78 mr r3,r25 ffc0be00: 7f 65 db 78 mr r5,r27 /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { ffc0be04: 7f 9d 00 40 cmplw cr7,r29,r0 ffc0be08: 3b bd 00 01 addi r29,r29,1 ffc0be0c: 41 9c ff 90 blt+ cr7,ffc0bd9c pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); ffc0be10: 48 00 1c 25 bl ffc0da34 <__errno> ffc0be14: 38 00 00 02 li r0,2 ffc0be18: 90 03 00 00 stw r0,0(r3) ffc0be1c: 38 60 ff ff li r3,-1 } ffc0be20: 80 01 00 2c lwz r0,44(r1) ffc0be24: 83 21 00 0c lwz r25,12(r1) ffc0be28: 7c 08 03 a6 mtlr r0 ffc0be2c: 83 41 00 10 lwz r26,16(r1) ffc0be30: 83 61 00 14 lwz r27,20(r1) ffc0be34: 83 81 00 18 lwz r28,24(r1) ffc0be38: 83 a1 00 1c lwz r29,28(r1) ffc0be3c: 83 c1 00 20 lwz r30,32(r1) ffc0be40: 83 e1 00 24 lwz r31,36(r1) ffc0be44: 38 21 00 28 addi r1,r1,40 ffc0be48: 4e 80 00 20 blr ffc03858 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc03858: 94 21 ff e8 stwu r1,-24(r1) ffc0385c: 7c 08 02 a6 mflr r0 ffc03860: 93 a1 00 0c stw r29,12(r1) rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( ffc03864: 3f a0 00 00 lis r29,0 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc03868: 90 01 00 1c stw r0,28(r1) rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( ffc0386c: 80 1d 26 70 lwz r0,9840(r29) int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc03870: 93 e1 00 14 stw r31,20(r1) ffc03874: 7c 7f 1b 78 mr r31,r3 rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( ffc03878: 1c 60 00 14 mulli r3,r0,20 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc0387c: 93 c1 00 10 stw r30,16(r1) rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( ffc03880: 48 00 83 79 bl ffc0bbf8 <_Workspace_Allocate> sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) ffc03884: 7c 7e 1b 79 mr. r30,r3 ffc03888: 40 a2 00 18 bne+ ffc038a0 rtems_set_errno_and_return_minus_one( ENOMEM ); ffc0388c: 48 00 a1 a9 bl ffc0da34 <__errno> <== NOT EXECUTED ffc03890: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc03894: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03898: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0389c: 48 00 00 30 b ffc038cc <== NOT EXECUTED memset( ffc038a0: 80 bd 26 70 lwz r5,9840(r29) ffc038a4: 38 80 00 00 li r4,0 ffc038a8: 1c a5 00 14 mulli r5,r5,20 ffc038ac: 48 00 ad 61 bl ffc0e60c device_name_table, 0, sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; ffc038b0: 3d 20 00 00 lis r9,0 ffc038b4: 39 29 21 48 addi r9,r9,8520 temp_mt_entry->mt_fs_root.ops = &devFS_ops; /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; ffc038b8: 93 df 00 1c stw r30,28(r31) sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; temp_mt_entry->mt_fs_root.ops = &devFS_ops; ffc038bc: 38 09 00 38 addi r0,r9,56 ffc038c0: 90 1f 00 28 stw r0,40(r31) /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; ffc038c4: 38 60 00 00 li r3,0 device_name_table, 0, sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; ffc038c8: 91 3f 00 24 stw r9,36(r31) /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; return 0; } ffc038cc: 80 01 00 1c lwz r0,28(r1) ffc038d0: 83 a1 00 0c lwz r29,12(r1) ffc038d4: 7c 08 03 a6 mtlr r0 ffc038d8: 83 c1 00 10 lwz r30,16(r1) ffc038dc: 83 e1 00 14 lwz r31,20(r1) ffc038e0: 38 21 00 18 addi r1,r1,24 ffc038e4: 4e 80 00 20 blr ffc03a78 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc03a78: 94 21 ff e8 stwu r1,-24(r1) ffc03a7c: 7c 08 02 a6 mflr r0 ffc03a80: 7c 69 1b 78 mr r9,r3 ffc03a84: 90 01 00 1c stw r0,28(r1) rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.command = command; ffc03a88: 90 81 00 0c stw r4,12(r1) { rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; ffc03a8c: 81 63 00 3c lwz r11,60(r3) args.iop = iop; args.command = command; args.buffer = buffer; ffc03a90: 90 a1 00 10 stw r5,16(r1) status = rtems_io_control( ffc03a94: 38 a1 00 08 addi r5,r1,8 ffc03a98: 80 8b 00 0c lwz r4,12(r11) ffc03a9c: 80 6b 00 08 lwz r3,8(r11) rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; ffc03aa0: 91 21 00 08 stw r9,8(r1) args.command = command; args.buffer = buffer; status = rtems_io_control( ffc03aa4: 48 00 4a ed bl ffc08590 np->major, np->minor, (void *) &args ); if ( status ) ffc03aa8: 2f 83 00 00 cmpwi cr7,r3,0 ffc03aac: 41 be 00 0c beq+ cr7,ffc03ab8 return rtems_deviceio_errno(status); ffc03ab0: 48 00 83 9d bl ffc0be4c <== NOT EXECUTED ffc03ab4: 48 00 00 08 b ffc03abc <== NOT EXECUTED return args.ioctl_return; ffc03ab8: 80 61 00 14 lwz r3,20(r1) } ffc03abc: 80 01 00 1c lwz r0,28(r1) ffc03ac0: 38 21 00 18 addi r1,r1,24 ffc03ac4: 7c 08 03 a6 mtlr r0 ffc03ac8: 4e 80 00 20 blr ffc038e8 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { ffc038e8: 94 21 ff d8 stwu r1,-40(r1) ffc038ec: 7c 08 02 a6 mflr r0 ffc038f0: 93 81 00 18 stw r28,24(r1) ffc038f4: 7c dc 33 78 mr r28,r6 ffc038f8: 93 a1 00 1c stw r29,28(r1) ffc038fc: 7c bd 2b 78 mr r29,r5 ffc03900: 93 c1 00 20 stw r30,32(r1) ffc03904: 7c 9e 23 78 mr r30,r4 ffc03908: 93 e1 00 24 stw r31,36(r1) ffc0390c: 7c 7f 1b 78 mr r31,r3 ffc03910: 90 01 00 2c stw r0,44(r1) ffc03914: 93 01 00 08 stw r24,8(r1) ffc03918: 93 21 00 0c stw r25,12(r1) ffc0391c: 93 41 00 10 stw r26,16(r1) ffc03920: 93 61 00 14 stw r27,20(r1) * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && ffc03924: 88 03 00 00 lbz r0,0(r3) ffc03928: 2f 80 00 64 cmpwi cr7,r0,100 ffc0392c: 40 be 00 2c bne+ cr7,ffc03958 ffc03930: 88 03 00 01 lbz r0,1(r3) ffc03934: 2f 80 00 65 cmpwi cr7,r0,101 ffc03938: 40 be 00 20 bne+ cr7,ffc03958 (path[2] == 'v') && (path[3] == '\0')) ffc0393c: 88 03 00 02 lbz r0,2(r3) ffc03940: 2f 80 00 76 cmpwi cr7,r0,118 ffc03944: 40 be 00 14 bne+ cr7,ffc03958 ffc03948: 88 03 00 03 lbz r0,3(r3) ffc0394c: 38 60 00 00 li r3,0 ffc03950: 2f 80 00 00 cmpwi cr7,r0,0 ffc03954: 41 9e 00 ec beq- cr7,ffc03a40 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) ffc03958: 57 c0 04 26 rlwinm r0,r30,0,16,19 ffc0395c: 2f 80 60 00 cmpwi cr7,r0,24576 ffc03960: 41 9e 00 18 beq- cr7,ffc03978 ffc03964: 2f 80 20 00 cmpwi cr7,r0,8192 ffc03968: 41 be 00 10 beq+ cr7,ffc03978 rtems_set_errno_and_return_minus_one( EINVAL ); ffc0396c: 48 00 a0 c9 bl ffc0da34 <__errno> <== NOT EXECUTED ffc03970: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc03974: 48 00 00 2c b ffc039a0 <== NOT EXECUTED else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; ffc03978: 83 47 00 00 lwz r26,0(r7) if (!device_name_table) ffc0397c: 2f 9a 00 00 cmpwi cr7,r26,0 ffc03980: 41 9e 00 18 beq- cr7,ffc03998 rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ ffc03984: 3f 00 00 00 lis r24,0 ffc03988: 3b 18 26 70 addi r24,r24,9840 else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) ffc0398c: 3b 20 ff ff li r25,-1 ffc03990: 3b 60 00 00 li r27,0 ffc03994: 48 00 00 48 b ffc039dc rtems_set_errno_and_return_minus_one( EFAULT ); ffc03998: 48 00 a0 9d bl ffc0da34 <__errno> <== NOT EXECUTED ffc0399c: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc039a0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc039a4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc039a8: 48 00 00 98 b ffc03a40 <== NOT EXECUTED for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) ffc039ac: 7c 1a 48 2e lwzx r0,r26,r9 ffc039b0: 2f 80 00 00 cmpwi cr7,r0,0 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc039b4: 7c 04 03 78 mr r4,r0 device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) ffc039b8: 41 9e 00 1c beq- cr7,ffc039d4 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc039bc: 48 00 af bd bl ffc0e978 <== NOT EXECUTED ffc039c0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc039c4: 40 be 00 14 bne+ cr7,ffc039d8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EEXIST ); ffc039c8: 48 00 a0 6d bl ffc0da34 <__errno> <== NOT EXECUTED ffc039cc: 38 00 00 11 li r0,17 <== NOT EXECUTED ffc039d0: 4b ff ff d0 b ffc039a0 <== NOT EXECUTED ffc039d4: 7f 79 db 78 mr r25,r27 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ ffc039d8: 3b 7b 00 01 addi r27,r27,1 ffc039dc: 80 18 00 00 lwz r0,0(r24) if (device_name_table[i].device_name == NULL) ffc039e0: 1d 3b 00 14 mulli r9,r27,20 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ ffc039e4: 7f 9b 00 40 cmplw cr7,r27,r0 if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc039e8: 7f e3 fb 78 mr r3,r31 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ ffc039ec: 41 9c ff c0 blt+ cr7,ffc039ac else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) ffc039f0: 2f 99 ff ff cmpwi cr7,r25,-1 ffc039f4: 40 be 00 10 bne+ cr7,ffc03a04 rtems_set_errno_and_return_minus_one( ENOMEM ); ffc039f8: 48 00 a0 3d bl ffc0da34 <__errno> <== NOT EXECUTED ffc039fc: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc03a00: 4b ff ff a0 b ffc039a0 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc03a04: 7f 60 00 a6 mfmsr r27 ffc03a08: 7c 10 42 a6 mfsprg r0,0 ffc03a0c: 7f 60 00 78 andc r0,r27,r0 ffc03a10: 7c 00 01 24 mtmsr r0 _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; ffc03a14: 1f 39 00 14 mulli r25,r25,20 ffc03a18: 7f fa c9 2e stwx r31,r26,r25 device_name_table[slot].device_name_length = strlen(path); ffc03a1c: 7f e3 fb 78 mr r3,r31 if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; ffc03a20: 7f 5a ca 14 add r26,r26,r25 device_name_table[slot].device_name_length = strlen(path); ffc03a24: 48 00 b0 75 bl ffc0ea98 device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; ffc03a28: 93 da 00 10 stw r30,16(r26) if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; device_name_table[slot].device_name_length = strlen(path); ffc03a2c: 90 7a 00 04 stw r3,4(r26) device_name_table[slot].major = major; ffc03a30: 93 ba 00 08 stw r29,8(r26) device_name_table[slot].minor = minor; ffc03a34: 93 9a 00 0c stw r28,12(r26) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc03a38: 7f 60 01 24 mtmsr r27 ffc03a3c: 38 60 00 00 li r3,0 device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } ffc03a40: 80 01 00 2c lwz r0,44(r1) ffc03a44: 83 01 00 08 lwz r24,8(r1) ffc03a48: 7c 08 03 a6 mtlr r0 ffc03a4c: 83 21 00 0c lwz r25,12(r1) ffc03a50: 83 41 00 10 lwz r26,16(r1) ffc03a54: 83 61 00 14 lwz r27,20(r1) ffc03a58: 83 81 00 18 lwz r28,24(r1) ffc03a5c: 83 a1 00 1c lwz r29,28(r1) ffc03a60: 83 c1 00 20 lwz r30,32(r1) ffc03a64: 83 e1 00 24 lwz r31,36(r1) ffc03a68: 38 21 00 28 addi r1,r1,40 ffc03a6c: 4e 80 00 20 blr ffc03acc : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc03acc: 94 21 ff e8 stwu r1,-24(r1) ffc03ad0: 7c 08 02 a6 mflr r0 ffc03ad4: 90 01 00 1c stw r0,28(r1) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc03ad8: 38 a1 00 08 addi r5,r1,8 rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = iop->flags; ffc03adc: 80 03 00 18 lwz r0,24(r3) { rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; ffc03ae0: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = iop->flags; ffc03ae4: 90 01 00 0c stw r0,12(r1) args.mode = mode; ffc03ae8: 90 c1 00 10 stw r6,16(r1) rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; ffc03aec: 90 61 00 08 stw r3,8(r1) args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc03af0: 80 89 00 0c lwz r4,12(r9) ffc03af4: 80 69 00 08 lwz r3,8(r9) ffc03af8: 48 00 4c 59 bl ffc08750 np->major, np->minor, (void *) &args ); if ( status ) ffc03afc: 38 00 00 00 li r0,0 ffc03b00: 2f 83 00 00 cmpwi cr7,r3,0 ffc03b04: 41 be 00 0c beq+ cr7,ffc03b10 return rtems_deviceio_errno(status); ffc03b08: 48 00 83 45 bl ffc0be4c <== NOT EXECUTED ffc03b0c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED return 0; } ffc03b10: 7c 03 03 78 mr r3,r0 ffc03b14: 80 01 00 1c lwz r0,28(r1) ffc03b18: 38 21 00 18 addi r1,r1,24 ffc03b1c: 7c 08 03 a6 mtlr r0 ffc03b20: 4e 80 00 20 blr ffc03b24 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc03b24: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc03b28: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc03b2c: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED ffc03b30: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; ffc03b34: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; ffc03b38: 81 43 00 3c lwz r10,60(r3) <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; ffc03b3c: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED args.bytes_moved = 0; ffc03b40: 38 00 00 00 li r0,0 <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; ffc03b44: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc03b48: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc03b4c: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; ffc03b50: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED ffc03b54: 81 83 00 14 lwz r12,20(r3) <== NOT EXECUTED args.buffer = buffer; ffc03b58: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc03b5c: 80 6a 00 08 lwz r3,8(r10) <== NOT EXECUTED ffc03b60: 80 8a 00 0c lwz r4,12(r10) <== NOT EXECUTED rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; ffc03b64: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc03b68: 91 81 00 14 stw r12,20(r1) <== NOT EXECUTED rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; ffc03b6c: 91 21 00 08 stw r9,8(r1) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc03b70: 48 00 4c 41 bl ffc087b0 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) ffc03b74: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc03b78: 41 be 00 0c beq+ cr7,ffc03b84 <== NOT EXECUTED return rtems_deviceio_errno(status); ffc03b7c: 48 00 82 d1 bl ffc0be4c <== NOT EXECUTED ffc03b80: 48 00 00 08 b ffc03b88 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc03b84: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED } ffc03b88: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc03b8c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc03b90: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03b94: 4e 80 00 20 blr <== NOT EXECUTED ffc03b98 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { ffc03b98: 94 21 ff f8 stwu r1,-8(r1) ffc03b9c: 7c 08 02 a6 mflr r0 ffc03ba0: 90 01 00 0c stw r0,12(r1) rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; ffc03ba4: 81 23 00 00 lwz r9,0(r3) if (!the_dev) ffc03ba8: 2f 89 00 00 cmpwi cr7,r9,0 ffc03bac: 40 be 00 18 bne+ cr7,ffc03bc4 rtems_set_errno_and_return_minus_one( EFAULT ); ffc03bb0: 48 00 9e 85 bl ffc0da34 <__errno> <== NOT EXECUTED ffc03bb4: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc03bb8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03bbc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc03bc0: 48 00 00 20 b ffc03be0 <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; ffc03bc4: 81 69 00 10 lwz r11,16(r9) ffc03bc8: 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 ); ffc03bcc: 80 09 00 0c lwz r0,12(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc03bd0: 81 29 00 08 lwz r9,8(r9) buf->st_mode = the_dev->mode; ffc03bd4: 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 ); ffc03bd8: 91 24 00 18 stw r9,24(r4) ffc03bdc: 90 04 00 1c stw r0,28(r4) buf->st_mode = the_dev->mode; return 0; } ffc03be0: 80 01 00 0c lwz r0,12(r1) ffc03be4: 38 21 00 08 addi r1,r1,8 ffc03be8: 7c 08 03 a6 mtlr r0 ffc03bec: 4e 80 00 20 blr ffc03bf0 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc03bf0: 94 21 ff d8 stwu r1,-40(r1) ffc03bf4: 7c 08 02 a6 mflr r0 ffc03bf8: 7c 69 1b 78 mr r9,r3 ffc03bfc: 90 01 00 2c stw r0,44(r1) args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ffc03c00: 80 03 00 18 lwz r0,24(r3) { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; ffc03c04: 81 43 00 3c lwz r10,60(r3) args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ffc03c08: 90 01 00 20 stw r0,32(r1) args.bytes_moved = 0; ffc03c0c: 38 00 00 00 li r0,0 np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; ffc03c10: 90 a1 00 1c stw r5,28(r1) args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc03c14: 38 a1 00 08 addi r5,r1,8 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc03c18: 90 01 00 24 stw r0,36(r1) rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; ffc03c1c: 81 63 00 10 lwz r11,16(r3) ffc03c20: 81 83 00 14 lwz r12,20(r3) args.buffer = (void *) buffer; ffc03c24: 90 81 00 18 stw r4,24(r1) args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc03c28: 80 6a 00 08 lwz r3,8(r10) ffc03c2c: 80 8a 00 0c lwz r4,12(r10) rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; ffc03c30: 91 61 00 10 stw r11,16(r1) ffc03c34: 91 81 00 14 stw r12,20(r1) rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; ffc03c38: 91 21 00 08 stw r9,8(r1) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc03c3c: 48 00 4b d5 bl ffc08810 np->major, np->minor, (void *) &args ); if ( status ) ffc03c40: 2f 83 00 00 cmpwi cr7,r3,0 ffc03c44: 41 be 00 0c beq+ cr7,ffc03c50 return rtems_deviceio_errno(status); ffc03c48: 48 00 82 05 bl ffc0be4c <== NOT EXECUTED ffc03c4c: 48 00 00 08 b ffc03c54 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc03c50: 80 61 00 24 lwz r3,36(r1) } ffc03c54: 80 01 00 2c lwz r0,44(r1) ffc03c58: 38 21 00 28 addi r1,r1,40 ffc03c5c: 7c 08 03 a6 mtlr r0 ffc03c60: 4e 80 00 20 blr ffc0e868 : */ int device_close( rtems_libio_t *iop ) { ffc0e868: 94 21 ff e8 stwu r1,-24(r1) ffc0e86c: 7c 08 02 a6 mflr r0 ffc0e870: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc0e874: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc0e878: 38 a1 00 08 addi r5,r1,8 the_jnode = iop->file_info; args.iop = iop; args.flags = 0; args.mode = 0; ffc0e87c: 90 01 00 10 stw r0,16(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc0e880: 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; ffc0e884: 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; ffc0e888: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( ffc0e88c: 80 89 00 54 lwz r4,84(r9) ffc0e890: 80 69 00 50 lwz r3,80(r9) ffc0e894: 48 00 12 95 bl ffc0fb28 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { ffc0e898: 38 00 00 00 li r0,0 ffc0e89c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e8a0: 41 be 00 0c beq+ cr7,ffc0e8ac return rtems_deviceio_errno(status); ffc0e8a4: 48 00 18 e9 bl ffc1018c <== NOT EXECUTED ffc0e8a8: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc0e8ac: 7c 03 03 78 mr r3,r0 ffc0e8b0: 80 01 00 1c lwz r0,28(r1) ffc0e8b4: 38 21 00 18 addi r1,r1,24 ffc0e8b8: 7c 08 03 a6 mtlr r0 ffc0e8bc: 4e 80 00 20 blr ffc0e738 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0e738: 94 21 ff e8 stwu r1,-24(r1) ffc0e73c: 7c 08 02 a6 mflr r0 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; ffc0e740: 90 a1 00 10 stw r5,16(r1) the_jnode = iop->file_info; status = rtems_io_control( ffc0e744: 38 a1 00 08 addi r5,r1,8 int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0e748: 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; ffc0e74c: 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; ffc0e750: 90 61 00 08 stw r3,8(r1) args.command = command; args.buffer = buffer; the_jnode = iop->file_info; ffc0e754: 81 23 00 3c lwz r9,60(r3) status = rtems_io_control( ffc0e758: 80 89 00 54 lwz r4,84(r9) ffc0e75c: 80 69 00 50 lwz r3,80(r9) ffc0e760: 48 00 14 29 bl ffc0fb88 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0e764: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e768: 41 be 00 0c beq+ cr7,ffc0e774 return rtems_deviceio_errno(status); ffc0e76c: 48 00 1a 21 bl ffc1018c <== NOT EXECUTED ffc0e770: 48 00 00 08 b ffc0e778 <== NOT EXECUTED return args.ioctl_return; ffc0e774: 80 61 00 14 lwz r3,20(r1) } ffc0e778: 80 01 00 1c lwz r0,28(r1) ffc0e77c: 38 21 00 18 addi r1,r1,24 ffc0e780: 7c 08 03 a6 mtlr r0 ffc0e784: 4e 80 00 20 blr ffc0e8c0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0e8c0: 94 21 ff e8 stwu r1,-24(r1) ffc0e8c4: 7c 08 02 a6 mflr r0 ffc0e8c8: 90 01 00 1c stw r0,28(r1) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc0e8cc: 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; ffc0e8d0: 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; ffc0e8d4: 90 61 00 08 stw r3,8(r1) args.flags = iop->flags; ffc0e8d8: 90 01 00 0c stw r0,12(r1) args.mode = mode; ffc0e8dc: 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; ffc0e8e0: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc0e8e4: 80 89 00 54 lwz r4,84(r9) ffc0e8e8: 80 69 00 50 lwz r3,80(r9) ffc0e8ec: 48 00 12 fd bl ffc0fbe8 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0e8f0: 38 00 00 00 li r0,0 ffc0e8f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e8f8: 41 be 00 0c beq+ cr7,ffc0e904 return rtems_deviceio_errno(status); ffc0e8fc: 48 00 18 91 bl ffc1018c <== NOT EXECUTED ffc0e900: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED return 0; } ffc0e904: 7c 03 03 78 mr r3,r0 ffc0e908: 80 01 00 1c lwz r0,28(r1) ffc0e90c: 38 21 00 18 addi r1,r1,24 ffc0e910: 7c 08 03 a6 mtlr r0 ffc0e914: 4e 80 00 20 blr ffc0e7f8 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc0e7f8: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0e7fc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0e800: 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; ffc0e804: 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; ffc0e808: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc0e80c: 81 43 00 14 lwz r10,20(r3) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; ffc0e810: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED args.bytes_moved = 0; ffc0e814: 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; ffc0e818: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc0e81c: 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; ffc0e820: 91 21 00 10 stw r9,16(r1) <== NOT EXECUTED ffc0e824: 91 41 00 14 stw r10,20(r1) <== NOT EXECUTED args.buffer = buffer; ffc0e828: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc0e82c: 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; ffc0e830: 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; ffc0e834: 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( ffc0e838: 80 89 00 54 lwz r4,84(r9) <== NOT EXECUTED ffc0e83c: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0e840: 48 00 14 09 bl ffc0fc48 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0e844: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0e848: 41 be 00 0c beq+ cr7,ffc0e854 <== NOT EXECUTED return rtems_deviceio_errno(status); ffc0e84c: 48 00 19 41 bl ffc1018c <== NOT EXECUTED ffc0e850: 48 00 00 08 b ffc0e858 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc0e854: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED } ffc0e858: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0e85c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0e860: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0e864: 4e 80 00 20 blr <== NOT EXECUTED ffc0e788 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc0e788: 94 21 ff d8 stwu r1,-40(r1) ffc0e78c: 7c 08 02 a6 mflr r0 ffc0e790: 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; ffc0e794: 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; ffc0e798: 81 23 00 10 lwz r9,16(r3) ffc0e79c: 81 43 00 14 lwz r10,20(r3) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ffc0e7a0: 90 01 00 20 stw r0,32(r1) args.bytes_moved = 0; ffc0e7a4: 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; ffc0e7a8: 90 a1 00 1c stw r5,28(r1) args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc0e7ac: 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; ffc0e7b0: 91 21 00 10 stw r9,16(r1) ffc0e7b4: 91 41 00 14 stw r10,20(r1) args.buffer = (void *) buffer; ffc0e7b8: 90 81 00 18 stw r4,24(r1) args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc0e7bc: 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; ffc0e7c0: 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; ffc0e7c4: 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( ffc0e7c8: 80 89 00 54 lwz r4,84(r9) ffc0e7cc: 80 69 00 50 lwz r3,80(r9) ffc0e7d0: 48 00 14 d9 bl ffc0fca8 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0e7d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e7d8: 41 be 00 0c beq+ cr7,ffc0e7e4 return rtems_deviceio_errno(status); ffc0e7dc: 48 00 19 b1 bl ffc1018c <== NOT EXECUTED ffc0e7e0: 48 00 00 08 b ffc0e7e8 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc0e7e4: 80 61 00 24 lwz r3,36(r1) } ffc0e7e8: 80 01 00 2c lwz r0,44(r1) ffc0e7ec: 38 21 00 28 addi r1,r1,40 ffc0e7f0: 7c 08 03 a6 mtlr r0 ffc0e7f4: 4e 80 00 20 blr ffc06274 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc06274: 94 21 ff f0 stwu r1,-16(r1) ffc06278: 7c 08 02 a6 mflr r0 ffc0627c: 90 01 00 14 stw r0,20(r1) rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc06280: 80 03 00 b4 lwz r0,180(r3) /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc06284: 93 e1 00 0c stw r31,12(r1) ffc06288: 7c 7f 1b 78 mr r31,r3 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc0628c: 2f 80 00 00 cmpwi cr7,r0,0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc06290: 93 c1 00 08 stw r30,8(r1) rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc06294: 41 9e 00 64 beq- cr7,ffc062f8 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc06298: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc0629c: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc062a0: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc062a4: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; ffc062a8: 3b c0 00 02 li r30,2 <== NOT EXECUTED rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { ffc062ac: 48 00 00 38 b ffc062e4 <== NOT EXECUTED tty->rawOutBufState = rob_wait; ffc062b0: 93 df 00 94 stw r30,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc062b4: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, ffc062b8: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED ffc062bc: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc062c0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc062c4: 48 00 1a e5 bl ffc07da8 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc062c8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc062cc: 41 be 00 08 beq+ cr7,ffc062d4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc062d0: 48 00 23 01 bl ffc085d0 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc062d4: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc062d8: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc062dc: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc062e0: 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) { ffc062e4: 81 7f 00 84 lwz r11,132(r31) <== NOT EXECUTED ffc062e8: 81 3f 00 80 lwz r9,128(r31) <== NOT EXECUTED ffc062ec: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc062f0: 40 9e ff c0 bne+ cr7,ffc062b0 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc062f4: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); } } ffc062f8: 80 01 00 14 lwz r0,20(r1) ffc062fc: 83 c1 00 08 lwz r30,8(r1) ffc06300: 7c 08 03 a6 mtlr r0 ffc06304: 83 e1 00 0c lwz r31,12(r1) ffc06308: 38 21 00 10 addi r1,r1,16 ffc0630c: 4e 80 00 20 blr ffc0522c : int dup2( int fildes, int fildes2 ) { ffc0522c: 94 21 ff 98 stwu r1,-104(r1) ffc05230: 7c 08 02 a6 mflr r0 ffc05234: 93 c1 00 60 stw r30,96(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc05238: 3b c1 00 08 addi r30,r1,8 int dup2( int fildes, int fildes2 ) { ffc0523c: 93 e1 00 64 stw r31,100(r1) ffc05240: 7c 9f 23 78 mr r31,r4 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc05244: 7f c4 f3 78 mr r4,r30 int dup2( int fildes, int fildes2 ) { ffc05248: 93 a1 00 5c stw r29,92(r1) ffc0524c: 7c 7d 1b 78 mr r29,r3 ffc05250: 90 01 00 6c stw r0,108(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc05254: 48 00 08 19 bl ffc05a6c if ( status == -1 ) ffc05258: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0525c: 41 be 00 30 beq+ cr7,ffc0528c /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); ffc05260: 7f c4 f3 78 mr r4,r30 ffc05264: 7f e3 fb 78 mr r3,r31 ffc05268: 48 00 08 05 bl ffc05a6c if ( status == -1 ) ffc0526c: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05270: 41 9e 00 1c beq- cr7,ffc0528c /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); ffc05274: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc05278: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc0527c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05280: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc05284: 48 00 02 ed bl ffc05570 <== NOT EXECUTED ffc05288: 48 00 00 08 b ffc05290 <== NOT EXECUTED ffc0528c: 38 60 ff ff li r3,-1 } ffc05290: 80 01 00 6c lwz r0,108(r1) ffc05294: 83 a1 00 5c lwz r29,92(r1) ffc05298: 7c 08 03 a6 mtlr r0 ffc0529c: 83 c1 00 60 lwz r30,96(r1) ffc052a0: 83 e1 00 64 lwz r31,100(r1) ffc052a4: 38 21 00 68 addi r1,r1,104 ffc052a8: 4e 80 00 20 blr ffc05c44 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { ffc05c44: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc05c48: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05c4c: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc05c50: 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) { ffc05c54: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED ffc05c58: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc05c5c: 71 20 02 00 andi. r0,r9,512 <== NOT EXECUTED ffc05c60: 41 82 00 5c beq- ffc05cbc <== NOT EXECUTED ffc05c64: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05c68: 81 29 26 a0 lwz r9,9888(r9) <== NOT EXECUTED ffc05c6c: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED ffc05c70: 88 09 00 01 lbz r0,1(r9) <== NOT EXECUTED ffc05c74: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc05c78: 41 82 00 44 beq- ffc05cbc <== NOT EXECUTED ffc05c7c: 2f 83 00 09 cmpwi cr7,r3,9 <== NOT EXECUTED ffc05c80: 41 9e 00 3c beq- cr7,ffc05cbc <== NOT EXECUTED ffc05c84: 2f 83 00 0a cmpwi cr7,r3,10 <== NOT EXECUTED ffc05c88: 41 be 00 34 beq+ cr7,ffc05cbc <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; ffc05c8c: 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] = '^'; ffc05c90: 39 20 00 5e li r9,94 <== NOT EXECUTED echobuf[1] = c ^ 0x40; ffc05c94: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); ffc05c98: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc05c9c: 38 80 00 02 li r4,2 <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; ffc05ca0: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); ffc05ca4: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05ca8: 4b ff fc a5 bl ffc0594c <== NOT EXECUTED tty->column += 2; ffc05cac: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05cb0: 38 09 00 02 addi r0,r9,2 <== NOT EXECUTED ffc05cb4: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc05cb8: 48 00 00 0c b ffc05cc4 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); ffc05cbc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05cc0: 4b ff fe 05 bl ffc05ac4 <== NOT EXECUTED } } ffc05cc4: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05cc8: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05ccc: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc05cd0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05cd4: 4e 80 00 20 blr <== NOT EXECUTED ffc2b2f4 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) ffc2b2f4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc2b2f8: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2b2fc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp != NULL) ffc2b300: 80 69 5e fc lwz r3,24316(r9) <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc2b304: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (group_fp != NULL) ffc2b308: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b30c: 41 9e 00 08 beq- cr7,ffc2b314 <== NOT EXECUTED fclose(group_fp); ffc2b310: 48 01 ad fd bl ffc4610c <== NOT EXECUTED } ffc2b314: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2b318: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2b31c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b320: 4e 80 00 20 blr <== NOT EXECUTED ffc2b324 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) ffc2b324: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc2b328: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2b32c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp != NULL) ffc2b330: 80 69 5f 00 lwz r3,24320(r9) <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc2b334: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (passwd_fp != NULL) ffc2b338: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b33c: 41 9e 00 08 beq- cr7,ffc2b344 <== NOT EXECUTED fclose(passwd_fp); ffc2b340: 48 01 ad cd bl ffc4610c <== NOT EXECUTED } ffc2b344: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2b348: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2b34c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b350: 4e 80 00 20 blr <== NOT EXECUTED ffc05cd8 : * 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) { ffc05cd8: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc05cdc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05ce0: 7d 80 00 26 mfcr r12 <== NOT EXECUTED ffc05ce4: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED if (tty->ccount == 0) ffc05ce8: 80 03 00 20 lwz r0,32(r3) <== NOT EXECUTED * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { ffc05cec: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED ffc05cf0: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (tty->ccount == 0) ffc05cf4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { ffc05cf8: 93 61 00 0c stw r27,12(r1) <== NOT EXECUTED ffc05cfc: 93 81 00 10 stw r28,16(r1) <== NOT EXECUTED ffc05d00: 93 a1 00 14 stw r29,20(r1) <== NOT EXECUTED ffc05d04: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc05d08: 91 81 00 08 stw r12,8(r1) <== NOT EXECUTED if (tty->ccount == 0) ffc05d0c: 41 9e 01 f4 beq- cr7,ffc05f00 <== NOT EXECUTED return; if (lineFlag) { ffc05d10: 2f 84 00 00 cmpwi cr7,r4,0 <== NOT EXECUTED ffc05d14: 41 9e 01 c4 beq- cr7,ffc05ed8 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { ffc05d18: 80 03 00 3c lwz r0,60(r3) <== NOT EXECUTED ffc05d1c: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc05d20: 40 a2 00 0c bne+ ffc05d2c <== NOT EXECUTED tty->ccount = 0; ffc05d24: 91 23 00 20 stw r9,32(r3) <== NOT EXECUTED return; ffc05d28: 48 00 01 d8 b ffc05f00 <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { ffc05d2c: 70 00 00 10 andi. r0,r0,16 <== NOT EXECUTED ffc05d30: 40 a2 01 a8 bne+ ffc05ed8 <== NOT EXECUTED tty->ccount = 0; ffc05d34: 90 03 00 20 stw r0,32(r3) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); ffc05d38: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc05d3c: 88 63 00 44 lbz r3,68(r3) <== NOT EXECUTED ffc05d40: 4b ff ff 05 bl ffc05c44 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) ffc05d44: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED echo ('\n', tty); ffc05d48: 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) ffc05d4c: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED echo ('\n', tty); ffc05d50: 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) ffc05d54: 41 a2 01 ac beq+ ffc05f00 <== NOT EXECUTED ffc05d58: 48 00 00 34 b ffc05d8c <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { ffc05d5c: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; ffc05d60: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05d64: 91 3f 00 20 stw r9,32(r31) <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { ffc05d68: 70 0a 00 08 andi. r10,r0,8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; ffc05d6c: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc05d70: 7f cb 48 ae lbzx r30,r11,r9 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { ffc05d74: 41 82 01 5c beq- ffc05ed0 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { ffc05d78: 40 92 00 40 bne- cr4,ffc05db8 <== NOT EXECUTED ffc05d7c: 70 0b 00 10 andi. r11,r0,16 <== NOT EXECUTED ffc05d80: 40 a2 00 38 bne+ ffc05db8 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); ffc05d84: 88 7f 00 43 lbz r3,67(r31) <== NOT EXECUTED ffc05d88: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED } } if (!lineFlag) break; } } ffc05d8c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05d90: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc05d94: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05d98: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc05d9c: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc05da0: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc05da4: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc05da8: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc05dac: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05db0: 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); ffc05db4: 4b ff fe 90 b ffc05c44 <== NOT EXECUTED } else if (c == '\t') { ffc05db8: 2f 9e 00 09 cmpwi cr7,r30,9 <== NOT EXECUTED ffc05dbc: 40 be 00 94 bne+ cr7,ffc05e50 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) ffc05dc0: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { int col = tty->read_start_column; ffc05dc4: 83 df 00 2c lwz r30,44(r31) <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) ffc05dc8: 7d 29 03 a6 mtctr r9 <== NOT EXECUTED ffc05dcc: 70 0a 02 00 andi. r10,r0,512 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { ffc05dd0: 81 7d 00 00 lwz r11,0(r29) <== NOT EXECUTED ffc05dd4: 39 20 00 00 li r9,0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc05dd8: 48 00 00 44 b ffc05e1c <== NOT EXECUTED c = tty->cbuf[i++]; ffc05ddc: 81 5f 00 1c lwz r10,28(r31) <== NOT EXECUTED ffc05de0: 7c 0a 48 ae lbzx r0,r10,r9 <== NOT EXECUTED if (c == '\t') { ffc05de4: 2f 80 00 09 cmpwi cr7,r0,9 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { ffc05de8: 7d 4b 02 14 add r10,r11,r0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { ffc05dec: 40 be 00 0c bne+ cr7,ffc05df8 <== NOT EXECUTED col = (col | 7) + 1; ffc05df0: 63 de 00 07 ori r30,r30,7 <== NOT EXECUTED ffc05df4: 48 00 00 20 b ffc05e14 <== NOT EXECUTED } else if (iscntrl (c)) { ffc05df8: 88 0a 00 01 lbz r0,1(r10) <== NOT EXECUTED ffc05dfc: 54 0a df fe rlwinm r10,r0,27,31,31 <== NOT EXECUTED ffc05e00: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED ffc05e04: 41 9e 00 10 beq- cr7,ffc05e14 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) ffc05e08: 41 82 00 10 beq- ffc05e18 <== NOT EXECUTED col += 2; ffc05e0c: 3b de 00 02 addi r30,r30,2 <== NOT EXECUTED ffc05e10: 48 00 00 08 b ffc05e18 <== NOT EXECUTED } else { col++; ffc05e14: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; ffc05e18: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc05e1c: 42 00 ff c0 bdnz+ ffc05ddc <== NOT EXECUTED ffc05e20: 48 00 00 14 b ffc05e34 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05e24: 4b ff fb 29 bl ffc0594c <== NOT EXECUTED tty->column--; ffc05e28: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05e2c: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc05e30: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05e34: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); ffc05e38: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc05e3c: 38 80 00 01 li r4,1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05e40: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); ffc05e44: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05e48: 41 9d ff dc bgt+ cr7,ffc05e24 <== NOT EXECUTED ffc05e4c: 48 00 00 84 b ffc05ed0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { ffc05e50: 81 3d 00 00 lwz r9,0(r29) <== NOT EXECUTED ffc05e54: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc05e58: 7d 29 f0 ae lbzx r9,r9,r30 <== NOT EXECUTED ffc05e5c: 71 2b 00 20 andi. r11,r9,32 <== NOT EXECUTED ffc05e60: 41 82 00 30 beq- ffc05e90 <== NOT EXECUTED ffc05e64: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc05e68: 41 a2 00 28 beq+ ffc05e90 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc05e6c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc05e70: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc05e74: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05e78: 4b ff fa d5 bl ffc0594c <== NOT EXECUTED if (tty->column) ffc05e7c: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05e80: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05e84: 41 9e 00 0c beq- cr7,ffc05e90 <== NOT EXECUTED tty->column--; ffc05e88: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05e8c: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { ffc05e90: 81 3d 00 00 lwz r9,0(r29) <== NOT EXECUTED ffc05e94: 7c 09 f0 ae lbzx r0,r9,r30 <== NOT EXECUTED ffc05e98: 70 0a 00 20 andi. r10,r0,32 <== NOT EXECUTED ffc05e9c: 41 82 00 10 beq- ffc05eac <== NOT EXECUTED ffc05ea0: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc05ea4: 70 0b 02 00 andi. r11,r0,512 <== NOT EXECUTED ffc05ea8: 41 82 00 28 beq- ffc05ed0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc05eac: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc05eb0: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc05eb4: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05eb8: 4b ff fa 95 bl ffc0594c <== NOT EXECUTED if (tty->column) ffc05ebc: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05ec0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05ec4: 41 9e 00 0c beq- cr7,ffc05ed0 <== NOT EXECUTED tty->column--; ffc05ec8: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05ecc: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED } } } if (!lineFlag) ffc05ed0: 40 b2 00 24 bne+ cr4,ffc05ef4 <== NOT EXECUTED ffc05ed4: 48 00 00 2c b ffc05f00 <== 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)) { ffc05ed8: 2e 04 00 00 cmpwi cr4,r4,0 <== NOT EXECUTED ffc05edc: 3f a0 00 00 lis r29,0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); ffc05ee0: 3f 80 ff c2 lis r28,-62 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05ee4: 3f 60 ff c2 lis r27,-62 <== NOT EXECUTED ffc05ee8: 3b bd 26 a0 addi r29,r29,9888 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); ffc05eec: 3b 9c c8 65 addi r28,r28,-14235 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05ef0: 3b 7b c8 67 addi r27,r27,-14233 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { ffc05ef4: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc05ef8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05efc: 40 9e fe 60 bne+ cr7,ffc05d5c <== NOT EXECUTED } } if (!lineFlag) break; } } ffc05f00: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05f04: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc05f08: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05f0c: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc05f10: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc05f14: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc05f18: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc05f1c: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc05f20: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05f24: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc05f28: 4e 80 00 20 blr <== NOT EXECUTED ffc3fad8 : #include int fchdir( int fd ) { ffc3fad8: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc3fadc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); ffc3fae0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED #include int fchdir( int fd ) { ffc3fae4: 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 ); ffc3fae8: 80 09 34 8c lwz r0,13452(r9) <== NOT EXECUTED #include int fchdir( int fd ) { ffc3faec: 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 ); ffc3faf0: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED #include int fchdir( int fd ) { ffc3faf4: 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 ); ffc3faf8: 40 9c 00 20 bge- cr7,ffc3fb18 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc3fafc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc3fb00: 83 e9 35 b0 lwz r31,13744(r9) <== NOT EXECUTED ffc3fb04: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc3fb08: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc3fb0c: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED ffc3fb10: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc3fb14: 40 a2 00 10 bne+ ffc3fb24 <== NOT EXECUTED ffc3fb18: 48 00 64 55 bl ffc45f6c <__errno> <== NOT EXECUTED ffc3fb1c: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc3fb20: 48 00 00 58 b ffc3fb78 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc3fb24: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc3fb28: 40 a2 00 10 bne+ ffc3fb38 <== NOT EXECUTED ffc3fb2c: 48 00 64 41 bl ffc45f6c <__errno> <== NOT EXECUTED ffc3fb30: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc3fb34: 48 00 00 44 b ffc3fb78 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { ffc3fb38: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc3fb3c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc3fb40: 41 9e 00 10 beq- cr7,ffc3fb50 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { ffc3fb44: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc3fb48: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc3fb4c: 40 be 00 10 bne+ cr7,ffc3fb5c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc3fb50: 48 00 64 1d bl ffc45f6c <__errno> <== NOT EXECUTED ffc3fb54: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc3fb58: 48 00 00 20 b ffc3fb78 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != ffc3fb5c: 38 7f 00 1c addi r3,r31,28 <== NOT EXECUTED ffc3fb60: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc3fb64: 4e 80 04 21 bctrl <== NOT EXECUTED ffc3fb68: 2f 83 00 01 cmpwi cr7,r3,1 <== NOT EXECUTED ffc3fb6c: 41 be 00 18 beq+ cr7,ffc3fb84 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc3fb70: 48 00 63 fd bl ffc45f6c <__errno> <== NOT EXECUTED ffc3fb74: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc3fb78: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc3fb7c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc3fb80: 48 00 01 08 b ffc3fc88 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc3fb84: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc3fb88: 81 3e 34 ec lwz r9,13548(r30) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc3fb8c: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED ffc3fb90: 38 63 41 e5 addi r3,r3,16869 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc3fb94: 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)) { ffc3fb98: 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; ffc3fb9c: 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)) { ffc3fba0: 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; ffc3fba4: 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)) { ffc3fba8: 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; ffc3fbac: 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)) { ffc3fbb0: 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; ffc3fbb4: 91 01 00 1c stw r8,28(r1) <== NOT EXECUTED ffc3fbb8: 91 41 00 20 stw r10,32(r1) <== NOT EXECUTED ffc3fbbc: 91 61 00 24 stw r11,36(r1) <== NOT EXECUTED ffc3fbc0: 90 01 00 28 stw r0,40(r1) <== NOT EXECUTED ffc3fbc4: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc3fbc8: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; ffc3fbcc: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED ffc3fbd0: 81 1f 00 1c lwz r8,28(r31) <== NOT EXECUTED ffc3fbd4: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED ffc3fbd8: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED ffc3fbdc: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc3fbe0: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc3fbe4: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc3fbe8: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc3fbec: 80 1f 00 2c lwz r0,44(r31) <== NOT EXECUTED ffc3fbf0: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc3fbf4: 4b fc 89 35 bl ffc08528 <== NOT EXECUTED ffc3fbf8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc3fbfc: 41 be 00 34 beq+ cr7,ffc3fc30 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; ffc3fc00: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED ffc3fc04: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc3fc08: 81 3e 34 ec lwz r9,13548(r30) <== NOT EXECUTED ffc3fc0c: 81 41 00 20 lwz r10,32(r1) <== NOT EXECUTED ffc3fc10: 81 61 00 24 lwz r11,36(r1) <== NOT EXECUTED ffc3fc14: 81 01 00 1c lwz r8,28(r1) <== NOT EXECUTED ffc3fc18: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc3fc1c: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc3fc20: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc3fc24: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc3fc28: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc3fc2c: 48 00 00 58 b ffc3fc84 <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); ffc3fc30: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc3fc34: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc3fc38: 41 9e 00 1c beq- cr7,ffc3fc54 <== NOT EXECUTED ffc3fc3c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc3fc40: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc3fc44: 41 9e 00 10 beq- cr7,ffc3fc54 <== NOT EXECUTED ffc3fc48: 38 61 00 1c addi r3,r1,28 <== NOT EXECUTED ffc3fc4c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc3fc50: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_current = loc; ffc3fc54: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc3fc58: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc3fc5c: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED ffc3fc60: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc3fc64: 81 41 00 0c lwz r10,12(r1) <== NOT EXECUTED ffc3fc68: 81 61 00 10 lwz r11,16(r1) <== NOT EXECUTED ffc3fc6c: 81 01 00 08 lwz r8,8(r1) <== NOT EXECUTED ffc3fc70: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc3fc74: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc3fc78: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc3fc7c: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc3fc80: 80 01 00 18 lwz r0,24(r1) <== NOT EXECUTED ffc3fc84: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED return 0; } ffc3fc88: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc3fc8c: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc3fc90: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc3fc94: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc3fc98: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc3fc9c: 4e 80 00 20 blr <== NOT EXECUTED ffc2aeec : int fchmod( int fd, mode_t mode ) { ffc2aeec: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2aef0: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2aef4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { ffc2aef8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2aefc: 80 09 34 8c lwz r0,13452(r9) <== NOT EXECUTED ffc2af00: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2af04: 40 9c 00 20 bge- cr7,ffc2af24 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc2af08: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2af0c: 80 09 35 b0 lwz r0,13744(r9) <== NOT EXECUTED ffc2af10: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc2af14: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc2af18: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc2af1c: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc2af20: 40 a2 00 10 bne+ ffc2af30 <== NOT EXECUTED ffc2af24: 48 01 b0 49 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2af28: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2af2c: 48 00 00 30 b ffc2af5c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2af30: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc2af34: 40 a2 00 10 bne+ ffc2af44 <== NOT EXECUTED ffc2af38: 48 01 b0 35 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2af3c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2af40: 48 00 00 1c b ffc2af5c <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) ffc2af44: 81 23 00 40 lwz r9,64(r3) <== NOT EXECUTED ffc2af48: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2af4c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2af50: 40 be 00 18 bne+ cr7,ffc2af68 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2af54: 48 01 b0 19 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2af58: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2af5c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2af60: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2af64: 48 00 00 18 b ffc2af7c <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); ffc2af68: 81 23 00 24 lwz r9,36(r3) <== NOT EXECUTED ffc2af6c: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED ffc2af70: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2af74: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2af78: 4e 80 04 21 bctrl <== NOT EXECUTED } ffc2af7c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2af80: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2af84: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2af88: 4e 80 00 20 blr <== NOT EXECUTED ffc2af8c : int fchown( int fd, uid_t owner, gid_t group ) { ffc2af8c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2af90: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2af94: 3d 20 00 00 lis r9,0 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { ffc2af98: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2af9c: 80 09 34 8c lwz r0,13452(r9) <== NOT EXECUTED ffc2afa0: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2afa4: 40 9c 00 20 bge- cr7,ffc2afc4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc2afa8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2afac: 80 09 35 b0 lwz r0,13744(r9) <== NOT EXECUTED ffc2afb0: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc2afb4: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc2afb8: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc2afbc: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc2afc0: 40 a2 00 10 bne+ ffc2afd0 <== NOT EXECUTED ffc2afc4: 48 01 af a9 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2afc8: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2afcc: 48 00 00 30 b ffc2affc <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2afd0: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc2afd4: 40 a2 00 10 bne+ ffc2afe4 <== NOT EXECUTED ffc2afd8: 48 01 af 95 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2afdc: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2afe0: 48 00 00 1c b ffc2affc <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) ffc2afe4: 81 23 00 28 lwz r9,40(r3) <== NOT EXECUTED ffc2afe8: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc2afec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2aff0: 40 be 00 18 bne+ cr7,ffc2b008 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2aff4: 48 01 af 79 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2aff8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2affc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2b000: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2b004: 48 00 00 10 b ffc2b014 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); ffc2b008: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED ffc2b00c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2b010: 4e 80 04 21 bctrl <== NOT EXECUTED } ffc2b014: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2b018: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2b01c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b020: 4e 80 00 20 blr <== NOT EXECUTED ffc3fca0 : int fcntl( int fd, int cmd, ... ) { ffc3fca0: 94 21 ff c8 stwu r1,-56(r1) ffc3fca4: 7c 08 02 a6 mflr r0 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc3fca8: 3d 20 00 00 lis r9,0 int fcntl( int fd, int cmd, ... ) { ffc3fcac: 90 01 00 3c stw r0,60(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc3fcb0: 80 09 34 8c lwz r0,13452(r9) ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc3fcb4: 39 20 00 02 li r9,2 ffc3fcb8: 99 21 00 08 stb r9,8(r1) ffc3fcbc: 39 21 00 40 addi r9,r1,64 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc3fcc0: 7f 83 00 40 cmplw cr7,r3,r0 ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc3fcc4: 91 21 00 0c stw r9,12(r1) ffc3fcc8: 39 21 00 10 addi r9,r1,16 int fcntl( int fd, int cmd, ... ) { ffc3fccc: 93 e1 00 34 stw r31,52(r1) ffc3fcd0: 7c 9f 23 78 mr r31,r4 ffc3fcd4: 93 a1 00 2c stw r29,44(r1) ffc3fcd8: 93 c1 00 30 stw r30,48(r1) ffc3fcdc: 90 a1 00 18 stw r5,24(r1) ffc3fce0: 90 c1 00 1c stw r6,28(r1) ffc3fce4: 90 e1 00 20 stw r7,32(r1) int ret; va_list ap; va_start( ap, cmd ); ffc3fce8: 91 21 00 10 stw r9,16(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc3fcec: 40 9c 00 20 bge- cr7,ffc3fd0c iop = rtems_libio_iop( fd ); ffc3fcf0: 3d 20 00 00 lis r9,0 ffc3fcf4: 81 69 35 b0 lwz r11,13744(r9) ffc3fcf8: 1c 63 00 48 mulli r3,r3,72 ffc3fcfc: 7f ab 1a 14 add r29,r11,r3 rtems_libio_check_is_open(iop); ffc3fd00: 80 7d 00 18 lwz r3,24(r29) ffc3fd04: 70 69 01 00 andi. r9,r3,256 ffc3fd08: 40 a2 00 10 bne+ ffc3fd18 ffc3fd0c: 48 00 62 61 bl ffc45f6c <__errno> <== NOT EXECUTED ffc3fd10: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc3fd14: 48 00 01 c0 b ffc3fed4 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { ffc3fd18: 2b 84 00 09 cmplwi cr7,r4,9 ffc3fd1c: 41 9d 01 b0 bgt- cr7,ffc3fecc ffc3fd20: 3d 20 ff c7 lis r9,-57 ffc3fd24: 39 29 a3 f8 addi r9,r9,-23560 ffc3fd28: 54 8a 10 3a rlwinm r10,r4,2,0,29 ffc3fd2c: 7d 49 50 2e lwzx r10,r9,r10 ffc3fd30: 7d 2a 4a 14 add r9,r10,r9 ffc3fd34: 7d 29 03 a6 mtctr r9 ffc3fd38: 4e 80 04 20 bctr case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); ffc3fd3c: 89 21 00 08 lbz r9,8(r1) ffc3fd40: 2b 89 00 07 cmplwi cr7,r9,7 ffc3fd44: 41 9d 00 1c bgt- cr7,ffc3fd60 ffc3fd48: 81 01 00 10 lwz r8,16(r1) ffc3fd4c: 39 49 00 01 addi r10,r9,1 ffc3fd50: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc3fd54: 99 41 00 08 stb r10,8(r1) ffc3fd58: 7d 28 4a 14 add r9,r8,r9 ffc3fd5c: 48 00 00 10 b ffc3fd6c ffc3fd60: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc3fd64: 39 49 00 04 addi r10,r9,4 <== NOT EXECUTED ffc3fd68: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc3fd6c: 81 29 00 00 lwz r9,0(r9) if ( fd2 ) ffc3fd70: 2f 89 00 00 cmpwi cr7,r9,0 ffc3fd74: 41 9e 00 1c beq- cr7,ffc3fd90 diop = rtems_libio_iop( fd2 ); ffc3fd78: 1c 69 00 48 mulli r3,r9,72 <== NOT EXECUTED ffc3fd7c: 7c 00 48 10 subfc r0,r0,r9 <== NOT EXECUTED ffc3fd80: 7c 00 01 10 subfe r0,r0,r0 <== NOT EXECUTED ffc3fd84: 7c 6b 1a 14 add r3,r11,r3 <== NOT EXECUTED ffc3fd88: 7c 63 00 38 and r3,r3,r0 <== NOT EXECUTED ffc3fd8c: 48 00 00 14 b ffc3fda0 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); ffc3fd90: 4b fc 8c cd bl ffc08a5c if ( diop == 0 ) { ffc3fd94: 3b c0 ff ff li r30,-1 ffc3fd98: 2c 03 00 00 cmpwi r3,0 ffc3fd9c: 41 82 01 7c beq- ffc3ff18 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc3fda0: 81 3d 00 24 lwz r9,36(r29) ffc3fda4: 81 5d 00 1c lwz r10,28(r29) ffc3fda8: 81 7d 00 20 lwz r11,32(r29) ffc3fdac: 80 1d 00 28 lwz r0,40(r29) ffc3fdb0: 91 23 00 24 stw r9,36(r3) ret = (int) (diop - rtems_libio_iops); ffc3fdb4: 3d 20 00 00 lis r9,0 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc3fdb8: 91 43 00 1c stw r10,28(r3) ffc3fdbc: 91 63 00 20 stw r11,32(r3) ret = (int) (diop - rtems_libio_iops); ffc3fdc0: 83 c9 35 b0 lwz r30,13744(r9) ret = -1; break; } } diop->handlers = iop->handlers; ffc3fdc4: 81 5d 00 40 lwz r10,64(r29) diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc3fdc8: 90 03 00 28 stw r0,40(r3) ret = (int) (diop - rtems_libio_iops); ffc3fdcc: 7f de 18 50 subf r30,r30,r3 ffc3fdd0: 7f de 1e 70 srawi r30,r30,3 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; ffc3fdd4: 81 7d 00 3c lwz r11,60(r29) diop->flags = iop->flags; ffc3fdd8: 81 3d 00 18 lwz r9,24(r29) diop->pathinfo = iop->pathinfo; ffc3fddc: 80 1d 00 2c lwz r0,44(r29) ret = -1; break; } } diop->handlers = iop->handlers; ffc3fde0: 91 43 00 40 stw r10,64(r3) diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); ffc3fde4: 3d 40 38 e3 lis r10,14563 ffc3fde8: 61 4a 8e 39 ori r10,r10,36409 ffc3fdec: 7f de 51 d6 mullw r30,r30,r10 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; ffc3fdf0: 91 63 00 3c stw r11,60(r3) diop->flags = iop->flags; ffc3fdf4: 91 23 00 18 stw r9,24(r3) diop->pathinfo = iop->pathinfo; ffc3fdf8: 90 03 00 2c stw r0,44(r3) ffc3fdfc: 48 00 00 e0 b ffc3fedc ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); ffc3fe00: 54 7e af fe rlwinm r30,r3,21,31,31 ffc3fe04: 48 00 00 e0 b ffc3fee4 * 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 ) ) ffc3fe08: 89 21 00 08 lbz r9,8(r1) ffc3fe0c: 2b 89 00 07 cmplwi cr7,r9,7 ffc3fe10: 41 9d 00 1c bgt- cr7,ffc3fe2c ffc3fe14: 81 61 00 10 lwz r11,16(r1) ffc3fe18: 38 09 00 01 addi r0,r9,1 ffc3fe1c: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc3fe20: 98 01 00 08 stb r0,8(r1) ffc3fe24: 7d 2b 4a 14 add r9,r11,r9 ffc3fe28: 48 00 00 10 b ffc3fe38 ffc3fe2c: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc3fe30: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc3fe34: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc3fe38: 80 09 00 00 lwz r0,0(r9) ffc3fe3c: 2f 80 00 00 cmpwi cr7,r0,0 ffc3fe40: 41 9e 00 0c beq- cr7,ffc3fe4c iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; ffc3fe44: 60 63 08 00 ori r3,r3,2048 ffc3fe48: 48 00 00 08 b ffc3fe50 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; ffc3fe4c: 54 63 05 66 rlwinm r3,r3,0,21,19 <== NOT EXECUTED ffc3fe50: 90 7d 00 18 stw r3,24(r29) ffc3fe54: 3b c0 00 00 li r30,0 ffc3fe58: 48 00 00 8c b ffc3fee4 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); ffc3fe5c: 4b fc 89 fd bl ffc08858 ffc3fe60: 7c 7e 1b 78 mr r30,r3 ffc3fe64: 48 00 00 78 b ffc3fedc break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); ffc3fe68: 89 21 00 08 lbz r9,8(r1) ffc3fe6c: 2b 89 00 07 cmplwi cr7,r9,7 ffc3fe70: 41 9d 00 1c bgt- cr7,ffc3fe8c ffc3fe74: 81 61 00 10 lwz r11,16(r1) ffc3fe78: 38 09 00 01 addi r0,r9,1 ffc3fe7c: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc3fe80: 98 01 00 08 stb r0,8(r1) ffc3fe84: 7d 2b 4a 14 add r9,r11,r9 ffc3fe88: 48 00 00 10 b ffc3fe98 ffc3fe8c: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc3fe90: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc3fe94: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc3fe98: 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); ffc3fe9c: 3b c0 00 00 li r30,0 case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); ffc3fea0: 4b fc 8c 99 bl ffc08b38 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); ffc3fea4: 80 1d 00 18 lwz r0,24(r29) ffc3fea8: 70 63 02 01 andi. r3,r3,513 ffc3feac: 39 20 fd fe li r9,-514 ffc3feb0: 7d 20 00 38 and r0,r9,r0 ffc3feb4: 7c 63 03 78 or r3,r3,r0 ffc3feb8: 90 7d 00 18 stw r3,24(r29) ffc3febc: 48 00 00 28 b ffc3fee4 errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; ffc3fec0: 48 00 60 ad bl ffc45f6c <__errno> ffc3fec4: 38 00 00 86 li r0,134 ffc3fec8: 48 00 00 0c b ffc3fed4 ret = -1; break; default: errno = EINVAL; ffc3fecc: 48 00 60 a1 bl ffc45f6c <__errno> ffc3fed0: 38 00 00 16 li r0,22 ffc3fed4: 90 03 00 00 stw r0,0(r3) ffc3fed8: 48 00 00 3c b ffc3ff14 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { ffc3fedc: 2f 9e 00 00 cmpwi cr7,r30,0 ffc3fee0: 41 9c 00 38 blt- cr7,ffc3ff18 if (iop->handlers->fcntl_h) { ffc3fee4: 81 3d 00 40 lwz r9,64(r29) ffc3fee8: 80 09 00 30 lwz r0,48(r9) ffc3feec: 2f 80 00 00 cmpwi cr7,r0,0 ffc3fef0: 41 9e 00 28 beq- cr7,ffc3ff18 int err = (*iop->handlers->fcntl_h)( cmd, iop ); ffc3fef4: 7f e3 fb 78 mr r3,r31 ffc3fef8: 7c 09 03 a6 mtctr r0 ffc3fefc: 7f a4 eb 78 mr r4,r29 ffc3ff00: 4e 80 04 21 bctrl if (err) { ffc3ff04: 7c 7f 1b 79 mr. r31,r3 ffc3ff08: 41 a2 00 10 beq+ ffc3ff18 errno = err; ffc3ff0c: 48 00 60 61 bl ffc45f6c <__errno> <== NOT EXECUTED ffc3ff10: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc3ff14: 3b c0 ff ff li r30,-1 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } ffc3ff18: 80 01 00 3c lwz r0,60(r1) ffc3ff1c: 7f c3 f3 78 mr r3,r30 ffc3ff20: 83 a1 00 2c lwz r29,44(r1) ffc3ff24: 7c 08 03 a6 mtlr r0 ffc3ff28: 83 c1 00 30 lwz r30,48(r1) ffc3ff2c: 83 e1 00 34 lwz r31,52(r1) ffc3ff30: 38 21 00 38 addi r1,r1,56 ffc3ff34: 4e 80 00 20 blr ffc0ef94 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0ef94: 94 21 ff d0 stwu r1,-48(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0ef98: 3d 20 00 00 lis r9,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0ef9c: 7c 08 02 a6 mflr r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0efa0: 38 a0 00 00 li r5,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0efa4: 93 81 00 20 stw r28,32(r1) ffc0efa8: 7c 7c 1b 78 mr r28,r3 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0efac: 80 69 28 f8 lwz r3,10488(r9) */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0efb0: 93 61 00 1c stw r27,28(r1) ffc0efb4: 7c 9b 23 78 mr r27,r4 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0efb8: 38 80 00 00 li r4,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0efbc: 93 a1 00 24 stw r29,36(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0efc0: 3b a0 ff fc li r29,-4 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0efc4: 90 01 00 34 stw r0,52(r1) ffc0efc8: 93 c1 00 28 stw r30,40(r1) ffc0efcc: 93 e1 00 2c stw r31,44(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0efd0: 4b ff 8d d9 bl ffc07da8 ffc0efd4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0efd8: 40 9e 03 28 bne- cr7,ffc0f300 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; ffc0efdc: 83 fc 00 00 lwz r31,0(r28) <== NOT EXECUTED if (pipe == NULL) { ffc0efe0: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc0efe4: 40 be 01 04 bne+ cr7,ffc0f0e8 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); ffc0efe8: 38 60 00 34 li r3,52 <== NOT EXECUTED ffc0efec: 4b ff 55 bd bl ffc045a8 <== NOT EXECUTED if (pipe == NULL) ffc0eff0: 3b a0 ff f4 li r29,-12 <== NOT EXECUTED ffc0eff4: 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)); ffc0eff8: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc0effc: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (pipe == NULL) ffc0f000: 41 9e 01 2c beq- cr7,ffc0f12c <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); ffc0f004: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f008: 38 a0 00 34 li r5,52 <== NOT EXECUTED ffc0f00c: 48 00 22 89 bl ffc11294 <== NOT EXECUTED pipe->Size = PIPE_BUF; ffc0f010: 38 00 02 00 li r0,512 <== NOT EXECUTED ffc0f014: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); ffc0f018: 38 60 02 00 li r3,512 <== NOT EXECUTED ffc0f01c: 4b ff 55 8d bl ffc045a8 <== NOT EXECUTED if (! pipe->Buffer) ffc0f020: 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); ffc0f024: 90 7e 00 00 stw r3,0(r30) <== NOT EXECUTED if (! pipe->Buffer) ffc0f028: 41 9e 00 b4 beq- cr7,ffc0f0dc <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( ffc0f02c: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc0f030: 88 7d 21 bc lbz r3,8636(r29) <== NOT EXECUTED ffc0f034: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f038: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f03c: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0f040: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc0f044: 38 de 00 2c addi r6,r30,44 <== NOT EXECUTED ffc0f048: 48 00 06 d5 bl ffc0f71c <== NOT EXECUTED ffc0f04c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f050: 40 9e 00 80 bne- cr7,ffc0f0d0 <== 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( ffc0f054: 88 7d 21 bc lbz r3,8636(r29) <== NOT EXECUTED ffc0f058: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f05c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f060: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0f064: 60 63 77 00 ori r3,r3,30464 <== NOT EXECUTED ffc0f068: 38 de 00 30 addi r6,r30,48 <== NOT EXECUTED ffc0f06c: 48 00 06 b1 bl ffc0f71c <== NOT EXECUTED ffc0f070: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f074: 40 9e 00 54 bne- cr7,ffc0f0c8 <== 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( ffc0f078: 88 7d 21 bc lbz r3,8636(r29) <== NOT EXECUTED ffc0f07c: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc0f080: 38 a0 00 10 li r5,16 <== NOT EXECUTED ffc0f084: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0f088: 60 63 73 00 ori r3,r3,29440 <== NOT EXECUTED ffc0f08c: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc0f090: 38 fe 00 28 addi r7,r30,40 <== NOT EXECUTED ffc0f094: 4b ff 8a 45 bl ffc07ad8 <== NOT EXECUTED ffc0f098: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f09c: 40 9e 00 24 bne- cr7,ffc0f0c0 <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') ffc0f0a0: 89 3d 21 bc lbz r9,8636(r29) <== NOT EXECUTED ffc0f0a4: 2f 89 00 7a cmpwi cr7,r9,122 <== NOT EXECUTED ffc0f0a8: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED ffc0f0ac: 99 3d 21 bc stb r9,8636(r29) <== NOT EXECUTED ffc0f0b0: 40 be 00 38 bne+ cr7,ffc0f0e8 <== NOT EXECUTED c = 'a'; ffc0f0b4: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc0f0b8: 98 1d 21 bc stb r0,8636(r29) <== NOT EXECUTED ffc0f0bc: 48 00 00 2c b ffc0f0e8 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); ffc0f0c0: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc0f0c4: 48 00 07 49 bl ffc0f80c <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); ffc0f0c8: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc0f0cc: 48 00 07 41 bl ffc0f80c <== NOT EXECUTED err_rbar: free(pipe->Buffer); ffc0f0d0: 80 7e 00 00 lwz r3,0(r30) <== NOT EXECUTED ffc0f0d4: 3b a0 ff fc li r29,-4 <== NOT EXECUTED ffc0f0d8: 4b ff 51 6d bl ffc04244 <== NOT EXECUTED err_buf: free(pipe); ffc0f0dc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0f0e0: 4b ff 51 65 bl ffc04244 <== NOT EXECUTED ffc0f0e4: 48 00 00 48 b ffc0f12c <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0f0e8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f0ec: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f0f0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f0f4: 4b ff 8c b5 bl ffc07da8 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0f0f8: 80 1c 00 00 lwz r0,0(r28) <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0f0fc: 30 63 ff ff addic r3,r3,-1 <== NOT EXECUTED ffc0f100: 7c 63 19 10 subfe r3,r3,r3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0f104: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0f108: 54 7d 07 7a rlwinm r29,r3,0,29,29 <== NOT EXECUTED ffc0f10c: 3b bd ff fc addi r29,r29,-4 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0f110: 40 be 00 1c bne+ cr7,ffc0f12c <== NOT EXECUTED if (err) ffc0f114: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0f118: 41 be 00 10 beq+ cr7,ffc0f128 <== NOT EXECUTED pipe_free(pipe); ffc0f11c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0f120: 4b ff fd 05 bl ffc0ee24 <== NOT EXECUTED ffc0f124: 48 00 00 08 b ffc0f12c <== NOT EXECUTED else *pipep = pipe; ffc0f128: 93 fc 00 00 stw r31,0(r28) <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc0f12c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0f130: 80 69 28 f8 lwz r3,10488(r9) <== NOT EXECUTED ffc0f134: 4b ff 8d b9 bl ffc07eec <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) ffc0f138: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0f13c: 40 9e 01 c4 bne- cr7,ffc0f300 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { ffc0f140: 81 3b 00 18 lwz r9,24(r27) <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; ffc0f144: 83 fc 00 00 lwz r31,0(r28) <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { ffc0f148: 55 20 07 7c rlwinm r0,r9,0,29,30 <== NOT EXECUTED ffc0f14c: 2f 80 00 04 cmpwi cr7,r0,4 <== NOT EXECUTED ffc0f150: 41 9e 00 a0 beq- cr7,ffc0f1f0 <== NOT EXECUTED ffc0f154: 2f 80 00 06 cmpwi cr7,r0,6 <== NOT EXECUTED ffc0f158: 41 9e 01 34 beq- cr7,ffc0f28c <== NOT EXECUTED ffc0f15c: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0f160: 40 be 01 84 bne+ cr7,ffc0f2e4 <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc0f164: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0f168: 81 7f 00 20 lwz r11,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f16c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0f170: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f174: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0f178: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f17c: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc0f180: 40 be 00 10 bne+ cr7,ffc0f190 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0f184: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f188: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f18c: 48 00 07 09 bl ffc0f894 <== NOT EXECUTED if (pipe->Writers == 0) { ffc0f190: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0f194: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f198: 40 9e 01 4c bne- cr7,ffc0f2e4 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) ffc0f19c: 80 1b 00 18 lwz r0,24(r27) <== NOT EXECUTED ffc0f1a0: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0f1a4: 40 82 01 40 bne- ffc0f2e4 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; ffc0f1a8: 83 df 00 24 lwz r30,36(r31) <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); ffc0f1ac: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f1b0: 4b ff 8d 3d bl ffc07eec <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc0f1b4: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f1b8: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f1bc: 48 00 07 59 bl ffc0f914 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f1c0: 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)) ffc0f1c4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f1c8: 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)) ffc0f1cc: 40 9e 01 24 bne- cr7,ffc0f2f0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f1d0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f1d4: 4b ff 8b d5 bl ffc07da8 <== NOT EXECUTED ffc0f1d8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f1dc: 40 9e 01 14 bne- cr7,ffc0f2f0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); ffc0f1e0: 80 1f 00 24 lwz r0,36(r31) <== NOT EXECUTED ffc0f1e4: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc0f1e8: 41 9e ff c4 beq+ cr7,ffc0f1ac <== NOT EXECUTED ffc0f1ec: 48 00 00 f8 b ffc0f2e4 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { ffc0f1f0: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0f1f4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f1f8: 40 9e 00 14 bne- cr7,ffc0f20c <== NOT EXECUTED ffc0f1fc: 71 20 00 01 andi. r0,r9,1 <== NOT EXECUTED ffc0f200: 41 82 00 0c beq- ffc0f20c <== NOT EXECUTED ffc0f204: 3b a0 ff fa li r29,-6 <== NOT EXECUTED ffc0f208: 48 00 00 ec b ffc0f2f4 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc0f20c: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0f210: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f214: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0f218: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f21c: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0f220: 90 1f 00 24 stw r0,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f224: 91 3f 00 14 stw r9,20(r31) <== NOT EXECUTED ffc0f228: 40 be 00 10 bne+ cr7,ffc0f238 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0f22c: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f230: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f234: 48 00 06 61 bl ffc0f894 <== NOT EXECUTED if (pipe->Readers == 0) { ffc0f238: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0f23c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f240: 40 9e 00 a4 bne- cr7,ffc0f2e4 <== NOT EXECUTED prevCounter = pipe->readerCounter; ffc0f244: 83 df 00 20 lwz r30,32(r31) <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); ffc0f248: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f24c: 4b ff 8c a1 bl ffc07eec <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc0f250: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f254: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f258: 48 00 06 bd bl ffc0f914 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f25c: 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)) ffc0f260: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f264: 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)) ffc0f268: 40 9e 00 88 bne- cr7,ffc0f2f0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f26c: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f270: 4b ff 8b 39 bl ffc07da8 <== NOT EXECUTED ffc0f274: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f278: 40 9e 00 78 bne- cr7,ffc0f2f0 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); ffc0f27c: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc0f280: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc0f284: 41 9e ff c4 beq+ cr7,ffc0f248 <== NOT EXECUTED ffc0f288: 48 00 00 5c b ffc0f2e4 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc0f28c: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0f290: 81 7f 00 20 lwz r11,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f294: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0f298: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f29c: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0f2a0: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f2a4: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc0f2a8: 40 be 00 10 bne+ cr7,ffc0f2b8 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0f2ac: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f2b0: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f2b4: 48 00 05 e1 bl ffc0f894 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc0f2b8: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; ffc0f2bc: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f2c0: 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 ++; ffc0f2c4: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f2c8: 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 ++; ffc0f2cc: 90 1f 00 24 stw r0,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f2d0: 91 3f 00 14 stw r9,20(r31) <== NOT EXECUTED ffc0f2d4: 40 be 00 10 bne+ cr7,ffc0f2e4 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0f2d8: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f2dc: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f2e0: 48 00 05 b5 bl ffc0f894 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); ffc0f2e4: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f2e8: 4b ff 8c 05 bl ffc07eec <== NOT EXECUTED return 0; ffc0f2ec: 48 00 00 14 b ffc0f300 <== NOT EXECUTED ffc0f2f0: 3b a0 ff fc li r29,-4 <== NOT EXECUTED out_error: pipe_release(pipep, iop); ffc0f2f4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0f2f8: 7f 64 db 78 mr r4,r27 <== NOT EXECUTED ffc0f2fc: 4b ff fb 79 bl ffc0ee74 <== NOT EXECUTED return err; } ffc0f300: 80 01 00 34 lwz r0,52(r1) ffc0f304: 7f a3 eb 78 mr r3,r29 ffc0f308: 83 61 00 1c lwz r27,28(r1) ffc0f30c: 7c 08 03 a6 mtlr r0 ffc0f310: 83 81 00 20 lwz r28,32(r1) ffc0f314: 83 a1 00 24 lwz r29,36(r1) ffc0f318: 83 c1 00 28 lwz r30,40(r1) ffc0f31c: 83 e1 00 2c lwz r31,44(r1) ffc0f320: 38 21 00 30 addi r1,r1,48 ffc0f324: 4e 80 00 20 blr ffc0c534 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0c534: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0c538: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc0c53c: 81 29 63 58 lwz r9,25432(r9) <== NOT EXECUTED ffc0c540: 38 0b 63 5c addi r0,r11,25436 <== NOT EXECUTED ffc0c544: 48 00 00 20 b ffc0c564 <== 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 ) { ffc0c548: 81 49 00 18 lwz r10,24(r9) <== NOT EXECUTED ffc0c54c: 81 64 00 10 lwz r11,16(r4) <== NOT EXECUTED ffc0c550: 7f 8a 58 00 cmpw cr7,r10,r11 <== NOT EXECUTED ffc0c554: 40 be 00 0c bne+ cr7,ffc0c560 <== NOT EXECUTED ffc0c558: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0c55c: 4e 80 00 20 blr <== NOT EXECUTED * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { ffc0c560: 81 29 00 00 lwz r9,0(r9) <== NOT EXECUTED ffc0c564: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0c568: 40 9e ff e0 bne+ cr7,ffc0c548 <== NOT EXECUTED ffc0c56c: 38 60 00 00 li r3,0 <== NOT EXECUTED return true; } } return false; } ffc0c570: 4e 80 00 20 blr <== NOT EXECUTED ffc04244 : void free( void *ptr ) { MSBUMP(free_calls, 1); ffc04244: 94 21 ff f0 stwu r1,-16(r1) ffc04248: 7c 08 02 a6 mflr r0 ffc0424c: 3d 20 00 00 lis r9,0 ffc04250: 90 01 00 14 stw r0,20(r1) ffc04254: 39 29 2a 68 addi r9,r9,10856 ffc04258: 93 e1 00 0c stw r31,12(r1) if ( !ptr ) ffc0425c: 7c 7f 1b 79 mr. r31,r3 void free( void *ptr ) { MSBUMP(free_calls, 1); ffc04260: 81 69 00 0c lwz r11,12(r9) ffc04264: 93 c1 00 08 stw r30,8(r1) ffc04268: 38 0b 00 01 addi r0,r11,1 ffc0426c: 90 09 00 0c stw r0,12(r9) if ( !ptr ) ffc04270: 41 82 00 84 beq- ffc042f4 /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && ffc04274: 3d 20 00 00 lis r9,0 ffc04278: 80 09 27 90 lwz r0,10128(r9) ffc0427c: 2f 80 00 03 cmpwi cr7,r0,3 ffc04280: 40 be 00 1c bne+ cr7,ffc0429c ffc04284: 48 00 01 59 bl ffc043dc ffc04288: 2f 83 00 00 cmpwi cr7,r3,0 ffc0428c: 40 be 00 10 bne+ cr7,ffc0429c !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); ffc04290: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04294: 48 00 01 91 bl ffc04424 <== NOT EXECUTED return; ffc04298: 48 00 00 5c b ffc042f4 <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) ffc0429c: 3d 20 00 00 lis r9,0 ffc042a0: 81 29 26 c8 lwz r9,9928(r9) ffc042a4: 2f 89 00 00 cmpwi cr7,r9,0 ffc042a8: 41 9e 00 14 beq- cr7,ffc042bc (*rtems_malloc_statistics_helpers->at_free)(ptr); ffc042ac: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED ffc042b0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc042b4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc042b8: 4e 80 04 21 bctrl <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { ffc042bc: 3f c0 00 00 lis r30,0 ffc042c0: 80 7e 26 5c lwz r3,9820(r30) ffc042c4: 7f e4 fb 78 mr r4,r31 ffc042c8: 48 00 5a 79 bl ffc09d40 <_Protected_heap_Free> ffc042cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc042d0: 40 be 00 24 bne+ cr7,ffc042f4 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, ffc042d4: 81 3e 26 5c lwz r9,9820(r30) <== NOT EXECUTED */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_free)(ptr); if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ffc042d8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc042dc: 38 63 c8 29 addi r3,r3,-14295 <== NOT EXECUTED ffc042e0: 80 c9 00 1c lwz r6,28(r9) <== NOT EXECUTED ffc042e4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc042e8: 80 a9 00 18 lwz r5,24(r9) <== NOT EXECUTED ffc042ec: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc042f0: 48 00 0f 29 bl ffc05218 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } ffc042f4: 80 01 00 14 lwz r0,20(r1) ffc042f8: 83 c1 00 08 lwz r30,8(r1) ffc042fc: 7c 08 03 a6 mtlr r0 ffc04300: 83 e1 00 0c lwz r31,12(r1) ffc04304: 38 21 00 10 addi r1,r1,16 ffc04308: 4e 80 00 20 blr ffc2c6e0 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { ffc2c6e0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2c6e4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env ffc2c6e8: 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) { ffc2c6ec: 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 ffc2c6f0: 38 09 63 64 addi r0,r9,25444 <== NOT EXECUTED ffc2c6f4: 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) { ffc2c6f8: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc2c6fc: 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 ffc2c700: 41 9e 00 54 beq- cr7,ffc2c754 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); ffc2c704: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc2c708: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c70c: 41 9e 00 1c beq- cr7,ffc2c728 <== NOT EXECUTED ffc2c710: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c714: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c718: 41 9e 00 10 beq- cr7,ffc2c728 <== NOT EXECUTED ffc2c71c: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED ffc2c720: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c724: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); ffc2c728: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc2c72c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c730: 41 9e 00 1c beq- cr7,ffc2c74c <== NOT EXECUTED ffc2c734: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c738: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c73c: 41 9e 00 10 beq- cr7,ffc2c74c <== NOT EXECUTED ffc2c740: 38 7f 00 18 addi r3,r31,24 <== NOT EXECUTED ffc2c744: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c748: 4e 80 04 21 bctrl <== NOT EXECUTED free(env); ffc2c74c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c750: 4b fd be bd bl ffc0860c <== NOT EXECUTED } } ffc2c754: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2c758: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2c75c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2c760: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2c764: 4e 80 00 20 blr <== NOT EXECUTED ffc1b040 : int fstat( int fd, struct stat *sbuf ) { ffc1b040: 94 21 ff f0 stwu r1,-16(r1) ffc1b044: 7c 08 02 a6 mflr r0 ffc1b048: 93 c1 00 08 stw r30,8(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1b04c: 7c 9e 23 79 mr. r30,r4 int fstat( int fd, struct stat *sbuf ) { ffc1b050: 90 01 00 14 stw r0,20(r1) ffc1b054: 93 e1 00 0c stw r31,12(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1b058: 40 a2 00 10 bne+ ffc1b068 rtems_set_errno_and_return_minus_one( EFAULT ); ffc1b05c: 4b ff 55 51 bl ffc105ac <__errno> ffc1b060: 38 00 00 0e li r0,14 ffc1b064: 48 00 00 38 b ffc1b09c /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); ffc1b068: 3d 20 00 00 lis r9,0 ffc1b06c: 80 09 26 4c lwz r0,9804(r9) ffc1b070: 7f 83 00 40 cmplw cr7,r3,r0 ffc1b074: 40 9c 00 20 bge- cr7,ffc1b094 ffc1b078: 3d 20 00 00 lis r9,0 ffc1b07c: 83 e9 27 08 lwz r31,9992(r9) ffc1b080: 1c 63 00 48 mulli r3,r3,72 ffc1b084: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); ffc1b088: 80 1f 00 18 lwz r0,24(r31) ffc1b08c: 70 09 01 00 andi. r9,r0,256 ffc1b090: 40 a2 00 18 bne+ ffc1b0a8 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); ffc1b094: 4b ff 55 19 bl ffc105ac <__errno> ffc1b098: 38 00 00 09 li r0,9 ffc1b09c: 90 03 00 00 stw r0,0(r3) ffc1b0a0: 38 60 ff ff li r3,-1 ffc1b0a4: 48 00 00 50 b ffc1b0f4 rtems_libio_check_is_open(iop); if ( !iop->handlers ) ffc1b0a8: 81 3f 00 40 lwz r9,64(r31) ffc1b0ac: 2f 89 00 00 cmpwi cr7,r9,0 ffc1b0b0: 41 be ff e4 beq- cr7,ffc1b094 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) ffc1b0b4: 80 09 00 18 lwz r0,24(r9) ffc1b0b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b0bc: 40 be 00 10 bne+ cr7,ffc1b0cc rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1b0c0: 4b ff 54 ed bl ffc105ac <__errno> <== NOT EXECUTED ffc1b0c4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1b0c8: 4b ff ff d4 b ffc1b09c <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); ffc1b0cc: 38 80 00 00 li r4,0 ffc1b0d0: 38 a0 00 48 li r5,72 ffc1b0d4: 7f c3 f3 78 mr r3,r30 ffc1b0d8: 4b ff 61 bd bl ffc11294 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); ffc1b0dc: 81 3f 00 40 lwz r9,64(r31) ffc1b0e0: 38 7f 00 1c addi r3,r31,28 ffc1b0e4: 80 09 00 18 lwz r0,24(r9) ffc1b0e8: 7f c4 f3 78 mr r4,r30 ffc1b0ec: 7c 09 03 a6 mtctr r0 ffc1b0f0: 4e 80 04 21 bctrl } ffc1b0f4: 80 01 00 14 lwz r0,20(r1) ffc1b0f8: 83 c1 00 08 lwz r30,8(r1) ffc1b0fc: 7c 08 03 a6 mtlr r0 ffc1b100: 83 e1 00 0c lwz r31,12(r1) ffc1b104: 38 21 00 10 addi r1,r1,16 ffc1b108: 4e 80 00 20 blr ffc2b0fc : #include int fsync( int fd ) { ffc2b0fc: 7c 08 02 a6 mflr r0 ffc2b100: 94 21 ff f8 stwu r1,-8(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2b104: 3d 20 00 00 lis r9,0 #include int fsync( int fd ) { ffc2b108: 90 01 00 0c stw r0,12(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2b10c: 80 09 34 8c lwz r0,13452(r9) ffc2b110: 7f 83 00 40 cmplw cr7,r3,r0 ffc2b114: 40 9c 00 40 bge- cr7,ffc2b154 iop = rtems_libio_iop( fd ); ffc2b118: 3d 20 00 00 lis r9,0 ffc2b11c: 80 09 35 b0 lwz r0,13744(r9) ffc2b120: 1c 63 00 48 mulli r3,r3,72 ffc2b124: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc2b128: 80 03 00 18 lwz r0,24(r3) ffc2b12c: 70 09 01 00 andi. r9,r0,256 ffc2b130: 41 82 00 24 beq- ffc2b154 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2b134: 70 09 00 04 andi. r9,r0,4 ffc2b138: 40 a2 00 10 bne+ ffc2b148 ffc2b13c: 48 01 ae 31 bl ffc45f6c <__errno> ffc2b140: 38 00 00 16 li r0,22 ffc2b144: 48 00 00 30 b ffc2b174 /* * Now process the fsync(). */ if ( !iop->handlers ) ffc2b148: 81 23 00 40 lwz r9,64(r3) ffc2b14c: 2f 89 00 00 cmpwi cr7,r9,0 ffc2b150: 40 be 00 10 bne+ cr7,ffc2b160 rtems_set_errno_and_return_minus_one( EBADF ); ffc2b154: 48 01 ae 19 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2b158: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2b15c: 48 00 00 18 b ffc2b174 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) ffc2b160: 80 09 00 28 lwz r0,40(r9) ffc2b164: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b168: 40 be 00 18 bne+ cr7,ffc2b180 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2b16c: 48 01 ae 01 bl ffc45f6c <__errno> ffc2b170: 38 00 00 86 li r0,134 ffc2b174: 90 03 00 00 stw r0,0(r3) ffc2b178: 38 60 ff ff li r3,-1 ffc2b17c: 48 00 00 0c b ffc2b188 return (*iop->handlers->fsync_h)( iop ); ffc2b180: 7c 09 03 a6 mtctr r0 ffc2b184: 4e 80 04 21 bctrl } ffc2b188: 80 01 00 0c lwz r0,12(r1) ffc2b18c: 38 21 00 08 addi r1,r1,8 ffc2b190: 7c 08 03 a6 mtlr r0 ffc2b194: 4e 80 00 20 blr ffc0d070 : int ftruncate( int fd, off_t length ) { ffc0d070: 94 21 ff c8 stwu r1,-56(r1) ffc0d074: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d078: 3d 20 00 00 lis r9,0 int ftruncate( int fd, off_t length ) { ffc0d07c: 90 01 00 3c stw r0,60(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d080: 80 09 26 4c lwz r0,9804(r9) int ftruncate( int fd, off_t length ) { ffc0d084: 93 a1 00 2c stw r29,44(r1) ffc0d088: 7c bd 2b 78 mr r29,r5 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d08c: 7f 83 00 40 cmplw cr7,r3,r0 int ftruncate( int fd, off_t length ) { ffc0d090: 93 c1 00 30 stw r30,48(r1) ffc0d094: 7c de 33 78 mr r30,r6 ffc0d098: 93 e1 00 34 stw r31,52(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d09c: 40 9c 00 20 bge- cr7,ffc0d0bc iop = rtems_libio_iop( fd ); ffc0d0a0: 3d 20 00 00 lis r9,0 ffc0d0a4: 83 e9 27 08 lwz r31,9992(r9) ffc0d0a8: 1c 63 00 48 mulli r3,r3,72 ffc0d0ac: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc0d0b0: 80 1f 00 18 lwz r0,24(r31) ffc0d0b4: 70 09 01 00 andi. r9,r0,256 ffc0d0b8: 40 a2 00 10 bne+ ffc0d0c8 ffc0d0bc: 48 00 34 f1 bl ffc105ac <__errno> <== NOT EXECUTED ffc0d0c0: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc0d0c4: 48 00 00 88 b ffc0d14c <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d0c8: 81 3f 00 28 lwz r9,40(r31) ffc0d0cc: 81 1f 00 1c lwz r8,28(r31) if ( !loc.ops->node_type_h ) ffc0d0d0: 80 09 00 10 lwz r0,16(r9) /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d0d4: 81 5f 00 20 lwz r10,32(r31) ffc0d0d8: 81 7f 00 24 lwz r11,36(r31) if ( !loc.ops->node_type_h ) ffc0d0dc: 2f 80 00 00 cmpwi cr7,r0,0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d0e0: 91 01 00 08 stw r8,8(r1) ffc0d0e4: 91 41 00 0c stw r10,12(r1) ffc0d0e8: 91 61 00 10 stw r11,16(r1) ffc0d0ec: 91 21 00 14 stw r9,20(r1) ffc0d0f0: 81 3f 00 2c lwz r9,44(r31) ffc0d0f4: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc0d0f8: 41 9e 00 4c beq- cr7,ffc0d144 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) ffc0d0fc: 38 61 00 08 addi r3,r1,8 ffc0d100: 7c 09 03 a6 mtctr r0 ffc0d104: 4e 80 04 21 bctrl ffc0d108: 2f 83 00 01 cmpwi cr7,r3,1 ffc0d10c: 40 be 00 10 bne+ cr7,ffc0d11c rtems_set_errno_and_return_minus_one( EISDIR ); ffc0d110: 48 00 34 9d bl ffc105ac <__errno> ffc0d114: 38 00 00 15 li r0,21 ffc0d118: 48 00 00 34 b ffc0d14c rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc0d11c: 80 1f 00 18 lwz r0,24(r31) ffc0d120: 70 09 00 04 andi. r9,r0,4 ffc0d124: 40 a2 00 10 bne+ ffc0d134 ffc0d128: 48 00 34 85 bl ffc105ac <__errno> <== NOT EXECUTED ffc0d12c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0d130: 48 00 00 1c b ffc0d14c <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) ffc0d134: 81 3f 00 40 lwz r9,64(r31) ffc0d138: 80 09 00 20 lwz r0,32(r9) ffc0d13c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d140: 40 be 00 18 bne+ cr7,ffc0d158 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0d144: 48 00 34 69 bl ffc105ac <__errno> <== NOT EXECUTED ffc0d148: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0d14c: 90 03 00 00 stw r0,0(r3) ffc0d150: 38 60 ff ff li r3,-1 ffc0d154: 48 00 00 18 b ffc0d16c return (*iop->handlers->ftruncate_h)( iop, length ); ffc0d158: 7f e3 fb 78 mr r3,r31 ffc0d15c: 7c 09 03 a6 mtctr r0 ffc0d160: 7f a5 eb 78 mr r5,r29 ffc0d164: 7f c6 f3 78 mr r6,r30 ffc0d168: 4e 80 04 21 bctrl } ffc0d16c: 80 01 00 3c lwz r0,60(r1) ffc0d170: 83 a1 00 2c lwz r29,44(r1) ffc0d174: 7c 08 03 a6 mtlr r0 ffc0d178: 83 c1 00 30 lwz r30,48(r1) ffc0d17c: 83 e1 00 34 lwz r31,52(r1) ffc0d180: 38 21 00 38 addi r1,r1,56 ffc0d184: 4e 80 00 20 blr ffc60d00 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc60d00: 94 21 ff c8 stwu r1,-56(r1) ffc60d04: 7c 08 02 a6 mflr r0 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc60d08: 3d 20 00 00 lis r9,0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc60d0c: 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 ); ffc60d10: 80 09 34 8c lwz r0,13452(r9) int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc60d14: 93 e1 00 34 stw r31,52(r1) /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc60d18: 3b e0 00 00 li r31,0 ffc60d1c: 7f 83 00 40 cmplw cr7,r3,r0 ffc60d20: 40 9c 00 14 bge- cr7,ffc60d34 ffc60d24: 3d 60 00 00 lis r11,0 ffc60d28: 1d 23 00 48 mulli r9,r3,72 ffc60d2c: 83 eb 35 b0 lwz r31,13744(r11) ffc60d30: 7f ff 4a 14 add r31,r31,r9 /* * Make sure we are working on a directory */ loc = iop->pathinfo; ffc60d34: 81 3f 00 28 lwz r9,40(r31) ffc60d38: 81 1f 00 1c lwz r8,28(r31) if ( !loc.ops->node_type_h ) ffc60d3c: 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; ffc60d40: 81 5f 00 20 lwz r10,32(r31) ffc60d44: 81 7f 00 24 lwz r11,36(r31) if ( !loc.ops->node_type_h ) ffc60d48: 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; ffc60d4c: 91 01 00 08 stw r8,8(r1) ffc60d50: 91 41 00 0c stw r10,12(r1) ffc60d54: 91 61 00 10 stw r11,16(r1) ffc60d58: 91 21 00 14 stw r9,20(r1) ffc60d5c: 81 3f 00 2c lwz r9,44(r31) ffc60d60: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc60d64: 41 9e 00 4c beq- cr7,ffc60db0 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) ffc60d68: 90 81 00 28 stw r4,40(r1) ffc60d6c: 38 61 00 08 addi r3,r1,8 ffc60d70: 7c 09 03 a6 mtctr r0 ffc60d74: 90 a1 00 2c stw r5,44(r1) ffc60d78: 4e 80 04 21 bctrl ffc60d7c: 80 81 00 28 lwz r4,40(r1) ffc60d80: 2f 83 00 01 cmpwi cr7,r3,1 ffc60d84: 80 a1 00 2c lwz r5,44(r1) ffc60d88: 41 be 00 18 beq+ cr7,ffc60da0 rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc60d8c: 4b fe 51 e1 bl ffc45f6c <__errno> ffc60d90: 38 00 00 14 li r0,20 ffc60d94: 90 03 00 00 stw r0,0(r3) ffc60d98: 38 60 ff ff li r3,-1 ffc60d9c: 48 00 00 2c b ffc60dc8 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) ffc60da0: 81 3f 00 40 lwz r9,64(r31) ffc60da4: 80 09 00 08 lwz r0,8(r9) ffc60da8: 2f 80 00 00 cmpwi cr7,r0,0 ffc60dac: 40 be 00 10 bne+ cr7,ffc60dbc rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc60db0: 4b fe 51 bd bl ffc45f6c <__errno> <== NOT EXECUTED ffc60db4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc60db8: 4b ff ff dc b ffc60d94 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); ffc60dbc: 7f e3 fb 78 mr r3,r31 ffc60dc0: 7c 09 03 a6 mtctr r0 ffc60dc4: 4e 80 04 21 bctrl } ffc60dc8: 80 01 00 3c lwz r0,60(r1) ffc60dcc: 83 e1 00 34 lwz r31,52(r1) ffc60dd0: 38 21 00 38 addi r1,r1,56 ffc60dd4: 7c 08 03 a6 mtlr r0 ffc60dd8: 4e 80 00 20 blr ffc2b2d0 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { ffc2b2d0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2b2d4: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED return _POSIX_types_Gid; } ffc2b2d8: a0 69 00 34 lhz r3,52(r9) <== NOT EXECUTED ffc2b2dc: 4e 80 00 20 blr <== NOT EXECUTED ffc2ba7c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2ba7c: 94 21 ff d8 stwu r1,-40(r1) ffc2ba80: 7d 80 00 26 mfcr r12 ffc2ba84: 7c 08 02 a6 mflr r0 ffc2ba88: 93 21 00 0c stw r25,12(r1) ffc2ba8c: 7d 19 43 78 mr r25,r8 ffc2ba90: 90 01 00 2c stw r0,44(r1) ffc2ba94: 93 41 00 10 stw r26,16(r1) ffc2ba98: 93 61 00 14 stw r27,20(r1) ffc2ba9c: 7c fb 3b 78 mr r27,r7 ffc2baa0: 93 81 00 18 stw r28,24(r1) ffc2baa4: 7c dc 33 78 mr r28,r6 ffc2baa8: 93 a1 00 1c stw r29,28(r1) ffc2baac: 7c 9d 23 78 mr r29,r4 ffc2bab0: 93 c1 00 20 stw r30,32(r1) ffc2bab4: 7c 7e 1b 78 mr r30,r3 ffc2bab8: 93 e1 00 24 stw r31,36(r1) ffc2babc: 7c bf 2b 78 mr r31,r5 ffc2bac0: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc2bac4: 4b ff fe 79 bl ffc2b93c if ((fp = fopen("/etc/group", "r")) == NULL) { ffc2bac8: 3c 60 ff c6 lis r3,-58 ffc2bacc: 3c 80 ff c6 lis r4,-58 ffc2bad0: 38 63 1d a0 addi r3,r3,7584 ffc2bad4: 38 84 37 98 addi r4,r4,14232 ffc2bad8: 48 01 b1 61 bl ffc46c38 ffc2badc: 7c 7a 1b 79 mr. r26,r3 ffc2bae0: 40 a2 00 14 bne+ ffc2baf4 errno = EINVAL; ffc2bae4: 48 01 a4 89 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2bae8: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2baec: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2baf0: 48 00 00 3c b ffc2bb2c <== NOT EXECUTED if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2baf4: 2e 1e 00 00 cmpwi cr4,r30,0 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { ffc2baf8: 7f e4 fb 78 mr r4,r31 ffc2bafc: 7f 85 e3 78 mr r5,r28 ffc2bb00: 7f 66 db 78 mr r6,r27 ffc2bb04: 7f 43 d3 78 mr r3,r26 ffc2bb08: 4b ff fa b9 bl ffc2b5c0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); ffc2bb0c: 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)) { ffc2bb10: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bb14: 40 be 00 20 bne+ cr7,ffc2bb34 errno = EINVAL; ffc2bb18: 48 01 a4 55 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2bb1c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2bb20: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc2bb24: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc2bb28: 48 01 a5 e5 bl ffc4610c <== NOT EXECUTED ffc2bb2c: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc2bb30: 48 00 00 3c b ffc2bb6c <== NOT EXECUTED } if (name) { ffc2bb34: 41 92 00 10 beq- cr4,ffc2bb44 match = (strcmp(grp->gr_name, name) == 0); ffc2bb38: 80 7f 00 00 lwz r3,0(r31) ffc2bb3c: 48 02 1b bd bl ffc4d6f8 ffc2bb40: 48 00 00 0c b ffc2bb4c } else { match = (grp->gr_gid == gid); ffc2bb44: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc2bb48: 7c 63 ea 78 xor r3,r3,r29 <== NOT EXECUTED ffc2bb4c: 7c 63 00 34 cntlzw r3,r3 ffc2bb50: 54 63 d9 7e rlwinm r3,r3,27,5,31 } if (match) { ffc2bb54: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bb58: 41 9e ff a0 beq+ cr7,ffc2baf8 fclose(fp); ffc2bb5c: 7f 43 d3 78 mr r3,r26 ffc2bb60: 48 01 a5 ad bl ffc4610c *result = grp; ffc2bb64: 93 f9 00 00 stw r31,0(r25) ffc2bb68: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc2bb6c: 80 01 00 2c lwz r0,44(r1) ffc2bb70: 81 81 00 08 lwz r12,8(r1) ffc2bb74: 7c 08 03 a6 mtlr r0 ffc2bb78: 83 21 00 0c lwz r25,12(r1) ffc2bb7c: 83 41 00 10 lwz r26,16(r1) ffc2bb80: 7d 80 81 20 mtcrf 8,r12 ffc2bb84: 83 61 00 14 lwz r27,20(r1) ffc2bb88: 83 81 00 18 lwz r28,24(r1) ffc2bb8c: 83 a1 00 1c lwz r29,28(r1) ffc2bb90: 83 c1 00 20 lwz r30,32(r1) ffc2bb94: 83 e1 00 24 lwz r31,36(r1) ffc2bb98: 38 21 00 28 addi r1,r1,40 ffc2bb9c: 4e 80 00 20 blr ffc2b734 : return p; } struct group *getgrent(void) { if (group_fp == NULL) ffc2b734: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2b738: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2b73c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp == NULL) ffc2b740: 80 65 5e fc lwz r3,24316(r5) <== NOT EXECUTED ffc2b744: 38 a5 5e fc addi r5,r5,24316 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2b748: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (group_fp == NULL) ffc2b74c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2b750: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (group_fp == NULL) ffc2b754: 41 be 00 24 beq+ cr7,ffc2b778 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) ffc2b758: 3b e5 00 08 addi r31,r5,8 <== NOT EXECUTED ffc2b75c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2b760: 38 a5 00 18 addi r5,r5,24 <== NOT EXECUTED ffc2b764: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc2b768: 4b ff fe 59 bl ffc2b5c0 <== NOT EXECUTED ffc2b76c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b770: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2b774: 40 be 00 08 bne+ cr7,ffc2b77c <== NOT EXECUTED ffc2b778: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &grent; } ffc2b77c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2b780: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2b784: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2b788: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b78c: 4e 80 00 20 blr <== NOT EXECUTED ffc2bbc8 : } struct group *getgrgid( gid_t gid ) { ffc2bbc8: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2bbcc: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc2bbd0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2bbd4: 38 84 5e fc addi r4,r4,24316 <== NOT EXECUTED ffc2bbd8: 38 a4 00 18 addi r5,r4,24 <== NOT EXECUTED ffc2bbdc: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc2bbe0: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2bbe4: 38 84 00 08 addi r4,r4,8 <== NOT EXECUTED ffc2bbe8: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc2bbec: 4b ff ff b5 bl ffc2bba0 <== NOT EXECUTED ffc2bbf0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2bbf4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2bbf8: 40 9e 00 08 bne- cr7,ffc2bc00 <== NOT EXECUTED return NULL; return p; ffc2bbfc: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc2bc00: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc2bc04: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc2bc08: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2bc0c: 4e 80 00 20 blr <== NOT EXECUTED ffc2bba0 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2bba0: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc2bba4: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc2bba8: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc2bbac: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); ffc2bbb0: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2bbb4: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc2bbb8: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc2bbbc: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc2bbc0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2bbc4: 4b ff fe b8 b ffc2ba7c <== NOT EXECUTED ffc26b78 : */ pid_t getpid( void ) { return _Objects_Local_node; } ffc26b78: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc26b7c: 4e 80 00 20 blr <== NOT EXECUTED ffc2bcc8 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2bcc8: 94 21 ff d8 stwu r1,-40(r1) ffc2bccc: 7d 80 00 26 mfcr r12 ffc2bcd0: 7c 08 02 a6 mflr r0 ffc2bcd4: 93 21 00 0c stw r25,12(r1) ffc2bcd8: 7d 19 43 78 mr r25,r8 ffc2bcdc: 90 01 00 2c stw r0,44(r1) ffc2bce0: 93 41 00 10 stw r26,16(r1) ffc2bce4: 93 61 00 14 stw r27,20(r1) ffc2bce8: 7c fb 3b 78 mr r27,r7 ffc2bcec: 93 81 00 18 stw r28,24(r1) ffc2bcf0: 7c dc 33 78 mr r28,r6 ffc2bcf4: 93 a1 00 1c stw r29,28(r1) ffc2bcf8: 7c 9d 23 78 mr r29,r4 ffc2bcfc: 93 c1 00 20 stw r30,32(r1) ffc2bd00: 7c 7e 1b 78 mr r30,r3 ffc2bd04: 93 e1 00 24 stw r31,36(r1) ffc2bd08: 7c bf 2b 78 mr r31,r5 ffc2bd0c: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc2bd10: 4b ff fc 2d bl ffc2b93c if ((fp = fopen("/etc/passwd", "r")) == NULL) { ffc2bd14: 3c 60 ff c6 lis r3,-58 ffc2bd18: 3c 80 ff c6 lis r4,-58 ffc2bd1c: 38 63 1c f2 addi r3,r3,7410 ffc2bd20: 38 84 37 98 addi r4,r4,14232 ffc2bd24: 48 01 af 15 bl ffc46c38 ffc2bd28: 7c 7a 1b 79 mr. r26,r3 ffc2bd2c: 40 a2 00 14 bne+ ffc2bd40 errno = EINVAL; ffc2bd30: 48 01 a2 3d bl ffc45f6c <__errno> <== NOT EXECUTED ffc2bd34: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2bd38: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2bd3c: 48 00 00 3c b ffc2bd78 <== NOT EXECUTED if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2bd40: 2e 1e 00 00 cmpwi cr4,r30,0 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { ffc2bd44: 7f e4 fb 78 mr r4,r31 ffc2bd48: 7f 85 e3 78 mr r5,r28 ffc2bd4c: 7f 66 db 78 mr r6,r27 ffc2bd50: 7f 43 d3 78 mr r3,r26 ffc2bd54: 4b ff fa 3d bl ffc2b790 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); ffc2bd58: 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)) { ffc2bd5c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bd60: 40 be 00 20 bne+ cr7,ffc2bd80 errno = EINVAL; ffc2bd64: 48 01 a2 09 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2bd68: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2bd6c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc2bd70: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc2bd74: 48 01 a3 99 bl ffc4610c <== NOT EXECUTED ffc2bd78: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc2bd7c: 48 00 00 3c b ffc2bdb8 <== NOT EXECUTED } if (name) { ffc2bd80: 41 92 00 10 beq- cr4,ffc2bd90 match = (strcmp(pwd->pw_name, name) == 0); ffc2bd84: 80 7f 00 00 lwz r3,0(r31) ffc2bd88: 48 02 19 71 bl ffc4d6f8 ffc2bd8c: 48 00 00 0c b ffc2bd98 } else { match = (pwd->pw_uid == uid); ffc2bd90: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc2bd94: 7c 63 ea 78 xor r3,r3,r29 <== NOT EXECUTED ffc2bd98: 7c 63 00 34 cntlzw r3,r3 ffc2bd9c: 54 63 d9 7e rlwinm r3,r3,27,5,31 } if (match) { ffc2bda0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bda4: 41 9e ff a0 beq+ cr7,ffc2bd44 fclose(fp); ffc2bda8: 7f 43 d3 78 mr r3,r26 ffc2bdac: 48 01 a3 61 bl ffc4610c *result = pwd; ffc2bdb0: 93 f9 00 00 stw r31,0(r25) ffc2bdb4: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc2bdb8: 80 01 00 2c lwz r0,44(r1) ffc2bdbc: 81 81 00 08 lwz r12,8(r1) ffc2bdc0: 7c 08 03 a6 mtlr r0 ffc2bdc4: 83 21 00 0c lwz r25,12(r1) ffc2bdc8: 83 41 00 10 lwz r26,16(r1) ffc2bdcc: 7d 80 81 20 mtcrf 8,r12 ffc2bdd0: 83 61 00 14 lwz r27,20(r1) ffc2bdd4: 83 81 00 18 lwz r28,24(r1) ffc2bdd8: 83 a1 00 1c lwz r29,28(r1) ffc2bddc: 83 c1 00 20 lwz r30,32(r1) ffc2bde0: 83 e1 00 24 lwz r31,36(r1) ffc2bde4: 38 21 00 28 addi r1,r1,40 ffc2bde8: 4e 80 00 20 blr ffc2b8e0 : return NULL; return p; } struct passwd *getpwent(void) { ffc2b8e0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2b8e4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp == NULL) ffc2b8e8: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc2b8ec: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc2b8f0: 38 a5 5e fc addi r5,r5,24316 <== NOT EXECUTED ffc2b8f4: 80 65 00 04 lwz r3,4(r5) <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc2b8f8: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc2b8fc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b900: 41 be 00 24 beq+ cr7,ffc2b924 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) ffc2b904: 3b e5 00 e0 addi r31,r5,224 <== NOT EXECUTED ffc2b908: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2b90c: 38 a5 00 fc addi r5,r5,252 <== NOT EXECUTED ffc2b910: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc2b914: 4b ff fe 7d bl ffc2b790 <== NOT EXECUTED ffc2b918: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b91c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2b920: 40 be 00 08 bne+ cr7,ffc2b928 <== NOT EXECUTED ffc2b924: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &pwent; } ffc2b928: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2b92c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2b930: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2b934: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b938: 4e 80 00 20 blr <== NOT EXECUTED ffc2be14 : } struct passwd *getpwuid( uid_t uid ) { ffc2be14: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2be18: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc2be1c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2be20: 38 84 5e fc addi r4,r4,24316 <== NOT EXECUTED ffc2be24: 38 a4 00 fc addi r5,r4,252 <== NOT EXECUTED ffc2be28: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc2be2c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2be30: 38 84 00 e0 addi r4,r4,224 <== NOT EXECUTED ffc2be34: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc2be38: 4b ff ff b5 bl ffc2bdec <== NOT EXECUTED ffc2be3c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2be40: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2be44: 40 9e 00 08 bne- cr7,ffc2be4c <== NOT EXECUTED return NULL; return p; ffc2be48: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc2be4c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc2be50: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc2be54: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2be58: 4e 80 00 20 blr <== NOT EXECUTED ffc2bdec : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2bdec: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc2bdf0: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc2bdf4: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc2bdf8: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); ffc2bdfc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2be00: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc2be04: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc2be08: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc2be0c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2be10: 4b ff fe b8 b ffc2bcc8 <== NOT EXECUTED ffc0d188 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0d188: 94 21 ff e0 stwu r1,-32(r1) ffc0d18c: 7c 08 02 a6 mflr r0 ffc0d190: 93 e1 00 1c stw r31,28(r1) /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0d194: 7c 7f 1b 79 mr. r31,r3 */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0d198: 90 01 00 24 stw r0,36(r1) ffc0d19c: 93 c1 00 18 stw r30,24(r1) /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0d1a0: 40 a2 00 18 bne+ ffc0d1b8 errno = EFAULT; ffc0d1a4: 48 00 34 09 bl ffc105ac <__errno> <== NOT EXECUTED ffc0d1a8: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0d1ac: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0d1b0: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc0d1b4: 48 00 00 3c b ffc0d1f0 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0d1b8: 7f c0 00 a6 mfmsr r30 ffc0d1bc: 7c 10 42 a6 mfsprg r0,0 ffc0d1c0: 7f c0 00 78 andc r0,r30,r0 ffc0d1c4: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc0d1c8: 38 61 00 08 addi r3,r1,8 ffc0d1cc: 48 00 0b 59 bl ffc0dd24 <_TOD_Get> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0d1d0: 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; ffc0d1d4: 81 21 00 0c lwz r9,12(r1) ffc0d1d8: 38 00 03 e8 li r0,1000 ffc0d1dc: 38 60 00 00 li r3,0 ffc0d1e0: 7c 09 03 d6 divw r0,r9,r0 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; ffc0d1e4: 81 21 00 08 lwz r9,8(r1) ffc0d1e8: 91 3f 00 00 stw r9,0(r31) time->tv_usec = useconds; ffc0d1ec: 90 1f 00 04 stw r0,4(r31) * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } ffc0d1f0: 80 01 00 24 lwz r0,36(r1) ffc0d1f4: 83 c1 00 18 lwz r30,24(r1) ffc0d1f8: 7c 08 03 a6 mtlr r0 ffc0d1fc: 83 e1 00 1c lwz r31,28(r1) ffc0d200: 38 21 00 20 addi r1,r1,32 ffc0d204: 4e 80 00 20 blr ffc08764 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { ffc08764: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc08768: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED return _POSIX_types_Uid; } ffc0876c: a0 69 00 32 lhz r3,50(r9) <== NOT EXECUTED ffc08770: 4e 80 00 20 blr <== NOT EXECUTED ffc160ec : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc160ec: 94 21 ff d8 stwu r1,-40(r1) ffc160f0: 7c 08 02 a6 mflr r0 ffc160f4: 90 01 00 2c stw r0,44(r1) ffc160f8: 93 c1 00 20 stw r30,32(r1) ffc160fc: 7c 9e 23 78 mr r30,r4 ffc16100: 93 e1 00 24 stw r31,36(r1) ffc16104: 93 a1 00 1c stw r29,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc16108: 83 e4 00 00 lwz r31,0(r4) ffc1610c: 81 3f 00 50 lwz r9,80(r31) ffc16110: 38 1f 00 54 addi r0,r31,84 ffc16114: 7f 89 00 00 cmpw cr7,r9,r0 ffc16118: 41 be 00 10 beq+ cr7,ffc16128 /* * 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 ); ffc1611c: 48 00 08 21 bl ffc1693c <__errno> ffc16120: 38 00 00 5a li r0,90 ffc16124: 48 00 00 28 b ffc1614c /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) ffc16128: 81 24 00 10 lwz r9,16(r4) ffc1612c: 80 09 00 1c lwz r0,28(r9) ffc16130: 7f 80 f8 00 cmpw cr7,r0,r31 ffc16134: 41 9e 00 10 beq- cr7,ffc16144 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) ffc16138: 83 bf 00 5c lwz r29,92(r31) ffc1613c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc16140: 41 be 00 18 beq+ cr7,ffc16158 rtems_set_errno_and_return_minus_one( EBUSY ); ffc16144: 48 00 07 f9 bl ffc1693c <__errno> ffc16148: 38 00 00 10 li r0,16 ffc1614c: 90 03 00 00 stw r0,0(r3) ffc16150: 38 60 ff ff li r3,-1 ffc16154: 48 00 00 80 b ffc161d4 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { ffc16158: 80 1f 00 08 lwz r0,8(r31) ffc1615c: 2f 80 00 00 cmpwi cr7,r0,0 ffc16160: 41 9e 00 10 beq- cr7,ffc16170 ffc16164: 7f e3 fb 78 mr r3,r31 ffc16168: 4b ff 47 1d bl ffc0a884 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc1616c: 93 bf 00 08 stw r29,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc16170: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc16174: 38 80 00 00 li r4,0 ffc16178: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc1617c: 38 09 ff ff addi r0,r9,-1 ffc16180: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc16184: 4b fe f9 59 bl ffc05adc ffc16188: 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) ) { ffc1618c: 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 ); ffc16190: 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) ) { ffc16194: 4b ff cb f1 bl ffc12d84 ffc16198: 2f 83 00 00 cmpwi cr7,r3,0 ffc1619c: 40 9e 00 34 bne- cr7,ffc161d0 ffc161a0: a0 1f 00 34 lhz r0,52(r31) ffc161a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc161a8: 40 9e 00 28 bne- cr7,ffc161d0 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc161ac: 3d 20 00 00 lis r9,0 ffc161b0: 81 7e 00 00 lwz r11,0(r30) ffc161b4: 81 29 26 b4 lwz r9,9908(r9) ffc161b8: 81 49 00 04 lwz r10,4(r9) ffc161bc: 7f 8a 58 00 cmpw cr7,r10,r11 ffc161c0: 40 be 00 08 bne+ cr7,ffc161c8 rtems_filesystem_current.node_access = NULL; ffc161c4: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); ffc161c8: 7f e3 fb 78 mr r3,r31 ffc161cc: 4b fe f8 49 bl ffc05a14 ffc161d0: 38 60 00 00 li r3,0 } return 0; } ffc161d4: 80 01 00 2c lwz r0,44(r1) ffc161d8: 83 a1 00 1c lwz r29,28(r1) ffc161dc: 7c 08 03 a6 mtlr r0 ffc161e0: 83 c1 00 20 lwz r30,32(r1) ffc161e4: 83 e1 00 24 lwz r31,36(r1) ffc161e8: 38 21 00 28 addi r1,r1,40 ffc161ec: 4e 80 00 20 blr ffc086f0 : int ioctl( int fd, ioctl_command_t command, ... ) { ffc086f0: 94 21 ff e0 stwu r1,-32(r1) ffc086f4: 7c 08 02 a6 mflr r0 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); ffc086f8: 3d 20 00 00 lis r9,0 int ioctl( int fd, ioctl_command_t command, ... ) { ffc086fc: 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 ); ffc08700: 80 09 26 6c lwz r0,9836(r9) int ioctl( int fd, ioctl_command_t command, ... ) { ffc08704: 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 ); ffc08708: 7f 83 00 40 cmplw cr7,r3,r0 ffc0870c: 40 9c 00 48 bge- cr7,ffc08754 iop = rtems_libio_iop( fd ); ffc08710: 3d 20 00 00 lis r9,0 ffc08714: 80 09 27 28 lwz r0,10024(r9) ffc08718: 1c 63 00 48 mulli r3,r3,72 ffc0871c: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc08720: 80 03 00 18 lwz r0,24(r3) ffc08724: 70 09 01 00 andi. r9,r0,256 ffc08728: 41 82 00 2c beq- ffc08754 va_start(ap, command); buffer = va_arg(ap, void *); ffc0872c: 38 00 00 03 li r0,3 ffc08730: 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); ffc08734: 39 61 00 10 addi r11,r1,16 ffc08738: 38 01 00 28 addi r0,r1,40 /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc0873c: 81 23 00 40 lwz r9,64(r3) rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); ffc08740: 90 01 00 0c stw r0,12(r1) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08744: 2f 89 00 00 cmpwi cr7,r9,0 rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); ffc08748: 91 61 00 10 stw r11,16(r1) buffer = va_arg(ap, void *); ffc0874c: 80 ab 00 08 lwz r5,8(r11) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08750: 40 be 00 10 bne+ cr7,ffc08760 rtems_set_errno_and_return_minus_one( EBADF ); ffc08754: 48 00 e4 b5 bl ffc16c08 <__errno> ffc08758: 38 00 00 09 li r0,9 ffc0875c: 48 00 00 18 b ffc08774 if ( !iop->handlers->ioctl_h ) ffc08760: 80 09 00 10 lwz r0,16(r9) ffc08764: 2f 80 00 00 cmpwi cr7,r0,0 ffc08768: 40 be 00 18 bne+ cr7,ffc08780 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0876c: 48 00 e4 9d bl ffc16c08 <__errno> <== NOT EXECUTED ffc08770: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08774: 90 03 00 00 stw r0,0(r3) ffc08778: 38 60 ff ff li r3,-1 ffc0877c: 48 00 00 0c b ffc08788 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); ffc08780: 7c 09 03 a6 mtctr r0 ffc08784: 4e 80 04 21 bctrl return rc; } ffc08788: 80 01 00 24 lwz r0,36(r1) ffc0878c: 38 21 00 20 addi r1,r1,32 ffc08790: 7c 08 03 a6 mtlr r0 ffc08794: 4e 80 00 20 blr ffc05f2c : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05f2c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc05f30: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05f34: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05f38: 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) { ffc05f3c: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc05f40: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05f44: 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) { ffc05f48: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc05f4c: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05f50: 41 82 00 08 beq- ffc05f58 <== NOT EXECUTED c &= 0x7f; ffc05f54: 54 7e 06 7e clrlwi r30,r3,25 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) ffc05f58: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc05f5c: 41 82 00 2c beq- ffc05f88 <== NOT EXECUTED c = tolower (c); ffc05f60: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05f64: 81 69 26 a0 lwz r11,9888(r9) <== NOT EXECUTED ffc05f68: 7f c9 f3 78 mr r9,r30 <== NOT EXECUTED ffc05f6c: 7f cb f2 14 add r30,r11,r30 <== NOT EXECUTED ffc05f70: 89 7e 00 01 lbz r11,1(r30) <== NOT EXECUTED ffc05f74: 55 6b 07 be clrlwi r11,r11,30 <== NOT EXECUTED ffc05f78: 2f 8b 00 01 cmpwi cr7,r11,1 <== NOT EXECUTED ffc05f7c: 40 be 00 08 bne+ cr7,ffc05f84 <== NOT EXECUTED ffc05f80: 39 29 00 20 addi r9,r9,32 <== NOT EXECUTED ffc05f84: 55 3e 06 3e clrlwi r30,r9,24 <== NOT EXECUTED if (c == '\r') { ffc05f88: 2f 9e 00 0d cmpwi cr7,r30,13 <== NOT EXECUTED ffc05f8c: 40 be 00 1c bne+ cr7,ffc05fa8 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) ffc05f90: 70 09 00 80 andi. r9,r0,128 <== NOT EXECUTED ffc05f94: 40 82 01 44 bne- ffc060d8 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) ffc05f98: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc05f9c: 41 82 00 2c beq- ffc05fc8 <== NOT EXECUTED ffc05fa0: 3b c0 00 0a li r30,10 <== NOT EXECUTED ffc05fa4: 48 00 00 24 b ffc05fc8 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { ffc05fa8: 2f 9e 00 0a cmpwi cr7,r30,10 <== NOT EXECUTED ffc05fac: 40 be 00 14 bne+ cr7,ffc05fc0 <== NOT EXECUTED ffc05fb0: 70 09 00 40 andi. r9,r0,64 <== NOT EXECUTED ffc05fb4: 41 82 00 14 beq- ffc05fc8 <== NOT EXECUTED ffc05fb8: 3b c0 00 0d li r30,13 <== NOT EXECUTED ffc05fbc: 48 00 00 0c b ffc05fc8 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { ffc05fc0: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc05fc4: 41 be 00 c8 beq+ cr7,ffc0608c <== NOT EXECUTED ffc05fc8: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc05fcc: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc05fd0: 41 82 00 bc beq- ffc0608c <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { ffc05fd4: 89 3f 00 43 lbz r9,67(r31) <== NOT EXECUTED erase (tty, 0); ffc05fd8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05fdc: 38 80 00 00 li r4,0 <== NOT EXECUTED } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { ffc05fe0: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05fe4: 41 9e 00 18 beq- cr7,ffc05ffc <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { ffc05fe8: 89 3f 00 44 lbz r9,68(r31) <== NOT EXECUTED ffc05fec: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05ff0: 40 be 00 14 bne+ cr7,ffc06004 <== NOT EXECUTED erase (tty, 1); ffc05ff4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05ff8: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc05ffc: 4b ff fc dd bl ffc05cd8 <== NOT EXECUTED ffc06000: 48 00 00 d8 b ffc060d8 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { ffc06004: 89 3f 00 45 lbz r9,69(r31) <== NOT EXECUTED ffc06008: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0600c: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc06010: 41 9e 00 cc beq- cr7,ffc060dc <== NOT EXECUTED return 1; } else if (c == '\n') { ffc06014: 2f 9e 00 0a cmpwi cr7,r30,10 <== NOT EXECUTED ffc06018: 40 be 00 30 bne+ cr7,ffc06048 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) ffc0601c: 70 09 00 48 andi. r9,r0,72 <== NOT EXECUTED ffc06020: 41 a2 00 10 beq+ ffc06030 <== NOT EXECUTED echo (c, tty); ffc06024: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc06028: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc0602c: 4b ff fc 19 bl ffc05c44 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc06030: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06034: 39 40 00 0a li r10,10 <== NOT EXECUTED ffc06038: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc0603c: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc06040: 7d 4b 49 ae stbx r10,r11,r9 <== NOT EXECUTED ffc06044: 48 00 00 40 b ffc06084 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) ffc06048: 89 3f 00 4c lbz r9,76(r31) <== NOT EXECUTED ffc0604c: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc06050: 41 9e 00 10 beq- cr7,ffc06060 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { ffc06054: 89 3f 00 51 lbz r9,81(r31) <== NOT EXECUTED ffc06058: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc0605c: 40 be 00 30 bne+ cr7,ffc0608c <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) ffc06060: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc06064: 41 a2 00 10 beq+ ffc06074 <== NOT EXECUTED echo (c, tty); ffc06068: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0606c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06070: 4b ff fb d5 bl ffc05c44 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc06074: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06078: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc0607c: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc06080: 7f cb 49 ae stbx r30,r11,r9 <== NOT EXECUTED ffc06084: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06088: 48 00 00 48 b ffc060d0 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { ffc0608c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06090: 81 69 21 68 lwz r11,8552(r9) <== NOT EXECUTED ffc06094: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06098: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc0609c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc060a0: 40 9c 00 38 bge- cr7,ffc060d8 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) ffc060a4: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc060a8: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc060ac: 41 a2 00 10 beq+ ffc060bc <== NOT EXECUTED echo (c, tty); ffc060b0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc060b4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc060b8: 4b ff fb 8d bl ffc05c44 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc060bc: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc060c0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc060c4: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc060c8: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc060cc: 7f cb 49 ae stbx r30,r11,r9 <== NOT EXECUTED ffc060d0: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED ffc060d4: 48 00 00 08 b ffc060dc <== NOT EXECUTED ffc060d8: 38 60 00 00 li r3,0 <== NOT EXECUTED } return 0; } ffc060dc: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc060e0: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc060e4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc060e8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc060ec: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc060f0: 4e 80 00 20 blr <== NOT EXECUTED ffc26bac : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } ffc26bac: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc26bb0: 4e 80 00 20 blr <== NOT EXECUTED ffc2bf6c : int link( const char *existing, const char *new ) { ffc2bf6c: 94 21 ff c0 stwu r1,-64(r1) ffc2bf70: 7c 08 02 a6 mflr r0 ffc2bf74: 93 c1 00 38 stw r30,56(r1) ffc2bf78: 7c 7e 1b 78 mr r30,r3 ffc2bf7c: 90 01 00 44 stw r0,68(r1) ffc2bf80: 93 e1 00 3c stw r31,60(r1) ffc2bf84: 7c 9f 23 78 mr r31,r4 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), ffc2bf88: 48 02 1d 51 bl ffc4dcd8 ffc2bf8c: 38 a0 00 00 li r5,0 ffc2bf90: 7c 64 1b 78 mr r4,r3 ffc2bf94: 38 c1 00 0c addi r6,r1,12 ffc2bf98: 7f c3 f3 78 mr r3,r30 ffc2bf9c: 38 e0 00 01 li r7,1 ffc2bfa0: 4b fd c5 89 bl ffc08528 0, &existing_loc, true ); if ( result != 0 ) ffc2bfa4: 3b c0 ff ff li r30,-1 ffc2bfa8: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bfac: 40 9e 02 3c bne- cr7,ffc2c1e8 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); ffc2bfb0: 88 1f 00 00 lbz r0,0(r31) ffc2bfb4: 2f 80 00 2f cmpwi cr7,r0,47 ffc2bfb8: 41 9e 00 14 beq- cr7,ffc2bfcc ffc2bfbc: 2f 80 00 5c cmpwi cr7,r0,92 ffc2bfc0: 41 9e 00 0c beq- cr7,ffc2bfcc ffc2bfc4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2bfc8: 40 9e 00 38 bne- cr7,ffc2c000 ffc2bfcc: 3d 20 00 00 lis r9,0 ffc2bfd0: 81 29 34 ec lwz r9,13548(r9) ffc2bfd4: 38 60 00 01 li r3,1 ffc2bfd8: 80 09 00 24 lwz r0,36(r9) ffc2bfdc: 81 09 00 18 lwz r8,24(r9) ffc2bfe0: 81 49 00 1c lwz r10,28(r9) ffc2bfe4: 81 69 00 20 lwz r11,32(r9) ffc2bfe8: 91 01 00 20 stw r8,32(r1) ffc2bfec: 91 41 00 24 stw r10,36(r1) ffc2bff0: 91 61 00 28 stw r11,40(r1) ffc2bff4: 90 01 00 2c stw r0,44(r1) ffc2bff8: 80 09 00 28 lwz r0,40(r9) ffc2bffc: 48 00 00 34 b ffc2c030 ffc2c000: 3d 20 00 00 lis r9,0 ffc2c004: 81 29 34 ec lwz r9,13548(r9) ffc2c008: 38 60 00 00 li r3,0 ffc2c00c: 80 09 00 10 lwz r0,16(r9) ffc2c010: 81 09 00 04 lwz r8,4(r9) ffc2c014: 81 49 00 08 lwz r10,8(r9) ffc2c018: 81 69 00 0c lwz r11,12(r9) ffc2c01c: 91 01 00 20 stw r8,32(r1) ffc2c020: 91 41 00 24 stw r10,36(r1) ffc2c024: 91 61 00 28 stw r11,40(r1) ffc2c028: 90 01 00 2c stw r0,44(r1) ffc2c02c: 80 09 00 14 lwz r0,20(r9) if ( !parent_loc.ops->evalformake_h ) { ffc2c030: 81 21 00 2c lwz r9,44(r1) /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); ffc2c034: 90 01 00 30 stw r0,48(r1) if ( !parent_loc.ops->evalformake_h ) { ffc2c038: 80 09 00 04 lwz r0,4(r9) ffc2c03c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c040: 40 be 00 24 bne+ cr7,ffc2c064 rtems_filesystem_freenode( &existing_loc ); ffc2c044: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc2c048: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c04c: 41 9e 01 28 beq- cr7,ffc2c174 <== NOT EXECUTED ffc2c050: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c054: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc2c058: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c05c: 40 be 01 10 bne+ cr7,ffc2c16c <== NOT EXECUTED ffc2c060: 48 00 01 14 b ffc2c174 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); ffc2c064: 3b c1 00 20 addi r30,r1,32 ffc2c068: 7c 09 03 a6 mtctr r0 ffc2c06c: 7c 7f 1a 14 add r3,r31,r3 ffc2c070: 7f c4 f3 78 mr r4,r30 ffc2c074: 38 a1 00 08 addi r5,r1,8 ffc2c078: 4e 80 04 21 bctrl if ( result != 0 ) { ffc2c07c: 7c 7f 1b 79 mr. r31,r3 ffc2c080: 41 a2 00 38 beq+ ffc2c0b8 rtems_filesystem_freenode( &existing_loc ); ffc2c084: 81 21 00 18 lwz r9,24(r1) ffc2c088: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c08c: 41 9e 00 1c beq- cr7,ffc2c0a8 ffc2c090: 80 09 00 1c lwz r0,28(r9) ffc2c094: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c098: 41 9e 00 10 beq- cr7,ffc2c0a8 ffc2c09c: 38 61 00 0c addi r3,r1,12 ffc2c0a0: 7c 09 03 a6 mtctr r0 ffc2c0a4: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( result ); ffc2c0a8: 48 01 9e c5 bl ffc45f6c <__errno> ffc2c0ac: 93 e3 00 00 stw r31,0(r3) ffc2c0b0: 3b c0 ff ff li r30,-1 ffc2c0b4: 48 00 01 34 b ffc2c1e8 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { ffc2c0b8: 80 01 00 1c lwz r0,28(r1) ffc2c0bc: 81 21 00 30 lwz r9,48(r1) ffc2c0c0: 7f 89 00 00 cmpw cr7,r9,r0 ffc2c0c4: 41 be 00 58 beq+ cr7,ffc2c11c rtems_filesystem_freenode( &existing_loc ); ffc2c0c8: 81 21 00 18 lwz r9,24(r1) ffc2c0cc: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c0d0: 41 9e 00 1c beq- cr7,ffc2c0ec ffc2c0d4: 80 09 00 1c lwz r0,28(r9) ffc2c0d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c0dc: 41 9e 00 10 beq- cr7,ffc2c0ec ffc2c0e0: 38 61 00 0c addi r3,r1,12 ffc2c0e4: 7c 09 03 a6 mtctr r0 ffc2c0e8: 4e 80 04 21 bctrl rtems_filesystem_freenode( &parent_loc ); ffc2c0ec: 81 21 00 2c lwz r9,44(r1) ffc2c0f0: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c0f4: 41 9e 00 1c beq- cr7,ffc2c110 ffc2c0f8: 80 09 00 1c lwz r0,28(r9) ffc2c0fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c100: 41 9e 00 10 beq- cr7,ffc2c110 ffc2c104: 38 61 00 20 addi r3,r1,32 ffc2c108: 7c 09 03 a6 mtctr r0 ffc2c10c: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EXDEV ); ffc2c110: 48 01 9e 5d bl ffc45f6c <__errno> ffc2c114: 38 00 00 12 li r0,18 ffc2c118: 48 00 00 64 b ffc2c17c } if ( !parent_loc.ops->link_h ) { ffc2c11c: 81 21 00 2c lwz r9,44(r1) ffc2c120: 80 09 00 08 lwz r0,8(r9) ffc2c124: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c128: 40 be 00 5c bne+ cr7,ffc2c184 rtems_filesystem_freenode( &existing_loc ); ffc2c12c: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc2c130: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c134: 41 9e 00 1c beq- cr7,ffc2c150 <== NOT EXECUTED ffc2c138: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c13c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c140: 41 9e 00 10 beq- cr7,ffc2c150 <== NOT EXECUTED ffc2c144: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc2c148: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c14c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); ffc2c150: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc2c154: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c158: 41 9e 00 1c beq- cr7,ffc2c174 <== NOT EXECUTED ffc2c15c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c160: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c164: 41 9e 00 10 beq- cr7,ffc2c174 <== NOT EXECUTED ffc2c168: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc2c16c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c170: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2c174: 48 01 9d f9 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2c178: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2c17c: 90 03 00 00 stw r0,0(r3) ffc2c180: 4b ff ff 30 b ffc2c0b0 } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); ffc2c184: 3b e1 00 0c addi r31,r1,12 ffc2c188: 80 a1 00 08 lwz r5,8(r1) ffc2c18c: 7f c4 f3 78 mr r4,r30 ffc2c190: 7c 09 03 a6 mtctr r0 ffc2c194: 7f e3 fb 78 mr r3,r31 ffc2c198: 4e 80 04 21 bctrl rtems_filesystem_freenode( &existing_loc ); ffc2c19c: 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 ); ffc2c1a0: 7c 7e 1b 78 mr r30,r3 rtems_filesystem_freenode( &existing_loc ); ffc2c1a4: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c1a8: 41 9e 00 1c beq- cr7,ffc2c1c4 ffc2c1ac: 80 09 00 1c lwz r0,28(r9) ffc2c1b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c1b4: 41 9e 00 10 beq- cr7,ffc2c1c4 ffc2c1b8: 7f e3 fb 78 mr r3,r31 ffc2c1bc: 7c 09 03 a6 mtctr r0 ffc2c1c0: 4e 80 04 21 bctrl rtems_filesystem_freenode( &parent_loc ); ffc2c1c4: 81 21 00 2c lwz r9,44(r1) ffc2c1c8: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c1cc: 41 9e 00 1c beq- cr7,ffc2c1e8 ffc2c1d0: 80 09 00 1c lwz r0,28(r9) ffc2c1d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c1d8: 41 9e 00 10 beq- cr7,ffc2c1e8 ffc2c1dc: 38 61 00 20 addi r3,r1,32 ffc2c1e0: 7c 09 03 a6 mtctr r0 ffc2c1e4: 4e 80 04 21 bctrl return result; } ffc2c1e8: 80 01 00 44 lwz r0,68(r1) ffc2c1ec: 7f c3 f3 78 mr r3,r30 ffc2c1f0: 83 e1 00 3c lwz r31,60(r1) ffc2c1f4: 7c 08 03 a6 mtlr r0 ffc2c1f8: 83 c1 00 38 lwz r30,56(r1) ffc2c1fc: 38 21 00 40 addi r1,r1,64 ffc2c200: 4e 80 00 20 blr ffc1b13c : off_t lseek( int fd, off_t offset, int whence ) { ffc1b13c: 94 21 ff e8 stwu r1,-24(r1) ffc1b140: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1b144: 3d 20 00 00 lis r9,0 off_t lseek( int fd, off_t offset, int whence ) { ffc1b148: 90 01 00 1c stw r0,28(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1b14c: 80 09 26 4c lwz r0,9804(r9) off_t lseek( int fd, off_t offset, int whence ) { ffc1b150: 93 a1 00 0c stw r29,12(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1b154: 7f 83 00 40 cmplw cr7,r3,r0 off_t lseek( int fd, off_t offset, int whence ) { ffc1b158: 93 c1 00 10 stw r30,16(r1) ffc1b15c: 93 e1 00 14 stw r31,20(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1b160: 40 9c 00 20 bge- cr7,ffc1b180 iop = rtems_libio_iop( fd ); ffc1b164: 3d 20 00 00 lis r9,0 ffc1b168: 83 e9 27 08 lwz r31,9992(r9) ffc1b16c: 1c 63 00 48 mulli r3,r3,72 ffc1b170: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc1b174: 80 1f 00 18 lwz r0,24(r31) ffc1b178: 70 09 01 00 andi. r9,r0,256 ffc1b17c: 40 a2 00 10 bne+ ffc1b18c ffc1b180: 4b ff 54 2d bl ffc105ac <__errno> <== NOT EXECUTED ffc1b184: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1b188: 48 00 00 7c b ffc1b204 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) ffc1b18c: 81 3f 00 40 lwz r9,64(r31) ffc1b190: 80 09 00 14 lwz r0,20(r9) ffc1b194: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b198: 40 be 00 10 bne+ cr7,ffc1b1a8 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1b19c: 4b ff 54 11 bl ffc105ac <__errno> <== NOT EXECUTED ffc1b1a0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1b1a4: 48 00 00 60 b ffc1b204 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { ffc1b1a8: 2f 87 00 01 cmpwi cr7,r7,1 /* * Now process the lseek(). */ old_offset = iop->offset; ffc1b1ac: 83 bf 00 10 lwz r29,16(r31) ffc1b1b0: 83 df 00 14 lwz r30,20(r31) switch ( whence ) { ffc1b1b4: 41 9e 00 20 beq- cr7,ffc1b1d4 ffc1b1b8: 2f 87 00 02 cmpwi cr7,r7,2 ffc1b1bc: 41 9e 00 24 beq- cr7,ffc1b1e0 ffc1b1c0: 2f 87 00 00 cmpwi cr7,r7,0 ffc1b1c4: 40 9e 00 38 bne- cr7,ffc1b1fc case SEEK_SET: iop->offset = offset; ffc1b1c8: 90 bf 00 10 stw r5,16(r31) ffc1b1cc: 90 df 00 14 stw r6,20(r31) break; ffc1b1d0: 48 00 00 44 b ffc1b214 case SEEK_CUR: iop->offset += offset; ffc1b1d4: 7d 46 f0 14 addc r10,r6,r30 ffc1b1d8: 7d 25 e9 14 adde r9,r5,r29 ffc1b1dc: 48 00 00 14 b ffc1b1f0 break; case SEEK_END: iop->offset = iop->size + offset; ffc1b1e0: 81 7f 00 08 lwz r11,8(r31) ffc1b1e4: 81 9f 00 0c lwz r12,12(r31) ffc1b1e8: 7d 46 60 14 addc r10,r6,r12 ffc1b1ec: 7d 25 59 14 adde r9,r5,r11 ffc1b1f0: 91 3f 00 10 stw r9,16(r31) ffc1b1f4: 91 5f 00 14 stw r10,20(r31) break; ffc1b1f8: 48 00 00 1c b ffc1b214 default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc1b1fc: 4b ff 53 b1 bl ffc105ac <__errno> ffc1b200: 38 00 00 16 li r0,22 ffc1b204: 90 03 00 00 stw r0,0(r3) ffc1b208: 39 20 ff ff li r9,-1 ffc1b20c: 39 40 ff ff li r10,-1 ffc1b210: 48 00 00 38 b ffc1b248 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); ffc1b214: 81 3f 00 40 lwz r9,64(r31) ffc1b218: 7f e3 fb 78 mr r3,r31 ffc1b21c: 80 09 00 14 lwz r0,20(r9) ffc1b220: 7c 09 03 a6 mtctr r0 ffc1b224: 4e 80 04 21 bctrl ffc1b228: 7c 69 1b 78 mr r9,r3 if ( status == (off_t) -1 ) ffc1b22c: 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 ); ffc1b230: 7c 8a 23 78 mr r10,r4 if ( status == (off_t) -1 ) ffc1b234: 40 be 00 14 bne+ cr7,ffc1b248 ffc1b238: 2f 84 ff ff cmpwi cr7,r4,-1 ffc1b23c: 40 be 00 0c bne+ cr7,ffc1b248 iop->offset = old_offset; ffc1b240: 93 bf 00 10 stw r29,16(r31) ffc1b244: 93 df 00 14 stw r30,20(r31) /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1b248: 80 01 00 1c lwz r0,28(r1) ffc1b24c: 7d 44 53 78 mr r4,r10 ffc1b250: 7d 23 4b 78 mr r3,r9 ffc1b254: 83 a1 00 0c lwz r29,12(r1) ffc1b258: 7c 08 03 a6 mtlr r0 ffc1b25c: 83 c1 00 10 lwz r30,16(r1) ffc1b260: 83 e1 00 14 lwz r31,20(r1) ffc1b264: 38 21 00 18 addi r1,r1,24 ffc1b268: 4e 80 00 20 blr ffc2c348 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc2c348: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc2c34c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2c350: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc2c354: 7c 9e 23 79 mr. r30,r4 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { ffc2c358: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc2c35c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc2c360: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc2c364: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc2c368: 40 a2 00 10 bne+ ffc2c378 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); ffc2c36c: 48 01 9c 01 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2c370: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc2c374: 48 00 00 6c b ffc2c3e0 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc2c378: 48 02 19 61 bl ffc4dcd8 <== NOT EXECUTED ffc2c37c: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc2c380: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2c384: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc2c388: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2c38c: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc2c390: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc2c394: 4b fd c1 95 bl ffc08528 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc2c398: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2c39c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2c3a0: 40 9e 00 9c bne- cr7,ffc2c43c <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ ffc2c3a4: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED ffc2c3a8: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc2c3ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c3b0: 40 be 00 3c bne+ cr7,ffc2c3ec <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2c3b4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc2c3b8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c3bc: 41 9e 00 1c beq- cr7,ffc2c3d8 <== NOT EXECUTED ffc2c3c0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c3c4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c3c8: 41 9e 00 10 beq- cr7,ffc2c3d8 <== NOT EXECUTED ffc2c3cc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c3d0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c3d4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2c3d8: 48 01 9b 95 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2c3dc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2c3e0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2c3e4: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2c3e8: 48 00 00 54 b ffc2c43c <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc2c3ec: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc2c3f0: 38 a0 00 48 li r5,72 <== NOT EXECUTED ffc2c3f4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc2c3f8: 48 01 d9 11 bl ffc49d08 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); ffc2c3fc: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED ffc2c400: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2c404: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc2c408: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c40c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c410: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2c414: 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 ); ffc2c418: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2c41c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c420: 41 9e 00 1c beq- cr7,ffc2c43c <== NOT EXECUTED ffc2c424: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c428: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c42c: 41 9e 00 10 beq- cr7,ffc2c43c <== NOT EXECUTED ffc2c430: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c434: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c438: 4e 80 04 21 bctrl <== NOT EXECUTED return status; } ffc2c43c: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc2c440: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2c444: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc2c448: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2c44c: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc2c450: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc2c454: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc2c458: 4e 80 00 20 blr <== NOT EXECUTED ffc045a8 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); ffc045a8: 94 21 ff e8 stwu r1,-24(r1) ffc045ac: 7c 08 02 a6 mflr r0 ffc045b0: 3d 20 00 00 lis r9,0 ffc045b4: 90 01 00 1c stw r0,28(r1) ffc045b8: 39 29 2a 68 addi r9,r9,10856 ffc045bc: 81 69 00 04 lwz r11,4(r9) ffc045c0: 93 e1 00 14 stw r31,20(r1) ffc045c4: 7c 7f 1b 78 mr r31,r3 ffc045c8: 39 6b 00 01 addi r11,r11,1 ffc045cc: 91 69 00 04 stw r11,4(r9) ffc045d0: 93 a1 00 0c stw r29,12(r1) ffc045d4: 93 c1 00 10 stw r30,16(r1) /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); ffc045d8: 4b ff fe 79 bl ffc04450 /* * Validate the parameters */ if ( !size ) ffc045dc: 2f 9f 00 00 cmpwi cr7,r31,0 ffc045e0: 41 9e 00 cc beq- cr7,ffc046ac return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && ffc045e4: 3d 20 00 00 lis r9,0 ffc045e8: 80 09 27 90 lwz r0,10128(r9) ffc045ec: 2f 80 00 03 cmpwi cr7,r0,3 ffc045f0: 40 be 00 10 bne+ cr7,ffc04600 ffc045f4: 4b ff fd e9 bl ffc043dc ffc045f8: 2f 83 00 00 cmpwi cr7,r3,0 ffc045fc: 41 9e 00 b0 beq- cr7,ffc046ac RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); ffc04600: 3d 20 00 00 lis r9,0 ffc04604: 80 69 26 5c lwz r3,9820(r9) ffc04608: 7f e4 fb 78 mr r4,r31 ffc0460c: 38 a0 00 00 li r5,0 ffc04610: 38 c0 00 00 li r6,0 ffc04614: 48 00 56 c1 bl ffc09cd4 <_Protected_heap_Allocate_aligned_with_boundary> * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { ffc04618: 2f 83 00 00 cmpwi cr7,r3,0 ffc0461c: 7c 7d 1b 78 mr r29,r3 if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; return (void *) 0; ffc04620: 7c 7e 1b 78 mr r30,r3 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { ffc04624: 40 be 00 3c bne+ cr7,ffc04660 if (rtems_malloc_sbrk_helpers) ffc04628: 3d 20 00 00 lis r9,0 ffc0462c: 81 29 26 cc lwz r9,9932(r9) ffc04630: 2f 89 00 00 cmpwi cr7,r9,0 ffc04634: 41 9e 00 1c beq- cr7,ffc04650 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); ffc04638: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc0463c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04640: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04644: 4e 80 04 21 bctrl <== NOT EXECUTED if ( !return_this ) { ffc04648: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0464c: 40 a2 00 14 bne+ ffc04660 <== NOT EXECUTED errno = ENOMEM; ffc04650: 48 00 bf 5d bl ffc105ac <__errno> ffc04654: 38 00 00 0c li r0,12 ffc04658: 90 03 00 00 stw r0,0(r3) return (void *) 0; ffc0465c: 48 00 00 54 b ffc046b0 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) ffc04660: 3d 20 00 00 lis r9,0 ffc04664: 81 29 26 d0 lwz r9,9936(r9) ffc04668: 2f 89 00 00 cmpwi cr7,r9,0 ffc0466c: 41 9e 00 18 beq- cr7,ffc04684 (*rtems_malloc_dirty_helper)( return_this, size ); ffc04670: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc04674: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc04678: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0467c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04680: 4e 80 04 21 bctrl <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) ffc04684: 3d 20 00 00 lis r9,0 ffc04688: 81 29 26 c8 lwz r9,9928(r9) ffc0468c: 7f dd f3 78 mr r29,r30 ffc04690: 2f 89 00 00 cmpwi cr7,r9,0 ffc04694: 41 9e 00 1c beq- cr7,ffc046b0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); ffc04698: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc0469c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc046a0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc046a4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc046a8: 48 00 00 08 b ffc046b0 <== NOT EXECUTED ffc046ac: 3b a0 00 00 li r29,0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } ffc046b0: 80 01 00 1c lwz r0,28(r1) ffc046b4: 7f a3 eb 78 mr r3,r29 ffc046b8: 83 c1 00 10 lwz r30,16(r1) ffc046bc: 7c 08 03 a6 mtlr r0 ffc046c0: 83 a1 00 0c lwz r29,12(r1) ffc046c4: 83 e1 00 14 lwz r31,20(r1) ffc046c8: 38 21 00 18 addi r1,r1,24 ffc046cc: 4e 80 00 20 blr ffc04424 : } void malloc_deferred_free( void *pointer ) { ffc04424: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc04428: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0442c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); ffc04430: 3c 60 00 00 lis r3,0 <== NOT EXECUTED ffc04434: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc04438: 38 63 2a 58 addi r3,r3,10840 <== NOT EXECUTED ffc0443c: 48 00 45 d9 bl ffc08a14 <_Chain_Append> <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } ffc04440: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc04444: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc04448: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0444c: 4e 80 00 20 blr <== NOT EXECUTED ffc04450 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { ffc04450: 94 21 ff f0 stwu r1,-16(r1) ffc04454: 7c 08 02 a6 mflr r0 ffc04458: 93 e1 00 0c stw r31,12(r1) */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); ffc0445c: 3f e0 00 00 lis r31,0 ffc04460: 3b ff 2a 58 addi r31,r31,10840 ffc04464: 90 01 00 14 stw r0,20(r1) rtems_chain_node *to_be_freed; /* * If some free's have been deferred, then do them now. */ while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL) ffc04468: 48 00 00 08 b ffc04470 free(to_be_freed); ffc0446c: 4b ff fd d9 bl ffc04244 <== NOT EXECUTED ffc04470: 7f e3 fb 78 mr r3,r31 ffc04474: 48 00 45 d1 bl ffc08a44 <_Chain_Get> rtems_chain_node *to_be_freed; /* * If some free's have been deferred, then do them now. */ while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL) ffc04478: 2f 83 00 00 cmpwi cr7,r3,0 ffc0447c: 40 9e ff f0 bne+ cr7,ffc0446c free(to_be_freed); } ffc04480: 80 01 00 14 lwz r0,20(r1) ffc04484: 83 e1 00 0c lwz r31,12(r1) ffc04488: 38 21 00 10 addi r1,r1,16 ffc0448c: 7c 08 03 a6 mtlr r0 ffc04490: 4e 80 00 20 blr ffc14f74 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ ffc14f74: 94 21 ff f0 stwu r1,-16(r1) ffc14f78: 7c 08 02 a6 mflr r0 ffc14f7c: 93 e1 00 0c stw r31,12(r1) ffc14f80: 7c 7f 1b 78 mr r31,r3 ffc14f84: 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) ) { ffc14f88: 4b ff dd fd bl ffc12d84 ffc14f8c: 2f 83 00 00 cmpwi cr7,r3,0 ffc14f90: 40 9e 00 44 bne- cr7,ffc14fd4 ffc14f94: a0 1f 00 34 lhz r0,52(r31) ffc14f98: 2f 80 00 00 cmpwi cr7,r0,0 ffc14f9c: 40 9e 00 38 bne- cr7,ffc14fd4 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) ffc14fa0: 3d 20 00 00 lis r9,0 ffc14fa4: 81 29 26 b4 lwz r9,9908(r9) ffc14fa8: 81 69 00 04 lwz r11,4(r9) ffc14fac: 7f 8b f8 00 cmpw cr7,r11,r31 ffc14fb0: 40 be 00 08 bne+ cr7,ffc14fb8 rtems_filesystem_current.node_access = NULL; ffc14fb4: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) ffc14fb8: 80 1f 00 4c lwz r0,76(r31) ffc14fbc: 2f 80 00 06 cmpwi cr7,r0,6 ffc14fc0: 41 9e 00 0c beq- cr7,ffc14fcc IMFS_memfile_remove( the_jnode ); ffc14fc4: 7f e3 fb 78 mr r3,r31 ffc14fc8: 4b ff fd e1 bl ffc14da8 free( the_jnode ); ffc14fcc: 7f e3 fb 78 mr r3,r31 ffc14fd0: 4b ff 0a 45 bl ffc05a14 } return 0; } ffc14fd4: 80 01 00 14 lwz r0,20(r1) ffc14fd8: 38 60 00 00 li r3,0 ffc14fdc: 83 e1 00 0c lwz r31,12(r1) ffc14fe0: 38 21 00 10 addi r1,r1,16 ffc14fe4: 7c 08 03 a6 mtlr r0 ffc14fe8: 4e 80 00 20 blr ffc14c8c : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc14c8c: 94 21 ff e0 stwu r1,-32(r1) ffc14c90: 7c 08 02 a6 mflr r0 ffc14c94: 93 e1 00 1c stw r31,28(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc14c98: 7c 7f 1b 79 mr. r31,r3 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc14c9c: 93 61 00 0c stw r27,12(r1) ffc14ca0: 7c 9b 23 78 mr r27,r4 ffc14ca4: 90 01 00 24 stw r0,36(r1) ffc14ca8: 93 81 00 10 stw r28,16(r1) ffc14cac: 93 a1 00 14 stw r29,20(r1) ffc14cb0: 93 c1 00 18 stw r30,24(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc14cb4: 40 a2 00 28 bne+ ffc14cdc ffc14cb8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14cbc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14cc0: 38 a5 35 a8 addi r5,r5,13736 <== NOT EXECUTED ffc14cc4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14cc8: 38 63 36 6a addi r3,r3,13930 <== NOT EXECUTED ffc14ccc: 38 a5 00 20 addi r5,r5,32 <== NOT EXECUTED ffc14cd0: 38 c6 36 de addi r6,r6,14046 <== NOT EXECUTED ffc14cd4: 38 80 01 b3 li r4,435 <== NOT EXECUTED ffc14cd8: 4b ff 08 55 bl ffc0552c <__assert_func> <== NOT EXECUTED ffc14cdc: 83 df 00 00 lwz r30,0(r31) ffc14ce0: 3b a0 00 00 li r29,0 b = *block_table; for ( i=0 ; i if ( b[i] ) { ffc14cec: 80 7e 00 00 lwz r3,0(r30) ffc14cf0: 2f 83 00 00 cmpwi cr7,r3,0 ffc14cf4: 41 9e 00 0c beq- cr7,ffc14d00 memfile_free_block( b[i] ); ffc14cf8: 4b ff fc dd bl ffc149d4 b[i] = 0; ffc14cfc: 93 9e 00 00 stw r28,0(r30) * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); ffc14d10: 80 7f 00 00 lwz r3,0(r31) ffc14d14: 4b ff fc c1 bl ffc149d4 *block_table = 0; ffc14d18: 38 00 00 00 li r0,0 ffc14d1c: 90 1f 00 00 stw r0,0(r31) } ffc14d20: 80 01 00 24 lwz r0,36(r1) ffc14d24: 83 61 00 0c lwz r27,12(r1) ffc14d28: 7c 08 03 a6 mtlr r0 ffc14d2c: 83 81 00 10 lwz r28,16(r1) ffc14d30: 83 a1 00 14 lwz r29,20(r1) ffc14d34: 83 c1 00 18 lwz r30,24(r1) ffc14d38: 83 e1 00 1c lwz r31,28(r1) ffc14d3c: 38 21 00 20 addi r1,r1,32 ffc14d40: 4e 80 00 20 blr ffc15318 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { ffc15318: 94 21 ff e0 stwu r1,-32(r1) ffc1531c: 7c 08 02 a6 mflr r0 ffc15320: 7c 69 1b 78 mr r9,r3 ffc15324: 90 01 00 24 stw r0,36(r1) ffc15328: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc1532c: 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 ) ffc15330: 80 1f 00 50 lwz r0,80(r31) ffc15334: 7f 80 28 00 cmpw cr7,r0,r5 ffc15338: 41 9c 00 14 blt- cr7,ffc1534c ffc1533c: 40 be 00 1c bne+ cr7,ffc15358 ffc15340: 80 1f 00 54 lwz r0,84(r31) ffc15344: 7f 80 30 40 cmplw cr7,r0,r6 ffc15348: 40 9c 00 10 bge- cr7,ffc15358 return IMFS_memfile_extend( the_jnode, length ); ffc1534c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc15350: 4b ff fe 05 bl ffc15154 <== NOT EXECUTED ffc15354: 48 00 00 2c b ffc15380 <== NOT EXECUTED * The in-memory files do not currently reclaim memory until the file is * deleted. So we leave the previously allocated blocks in place for * future use and just set the length. */ the_jnode->info.file.size = length; ffc15358: 90 bf 00 50 stw r5,80(r31) iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); ffc1535c: 38 61 00 08 addi r3,r1,8 ffc15360: 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; ffc15364: 90 df 00 54 stw r6,84(r31) iop->size = the_jnode->info.file.size; ffc15368: 90 c9 00 0c stw r6,12(r9) ffc1536c: 90 a9 00 08 stw r5,8(r9) IMFS_update_atime( the_jnode ); ffc15370: 4b ff 07 6d bl ffc05adc ffc15374: 80 01 00 08 lwz r0,8(r1) ffc15378: 38 60 00 00 li r3,0 ffc1537c: 90 1f 00 40 stw r0,64(r31) return 0; } ffc15380: 80 01 00 24 lwz r0,36(r1) ffc15384: 83 e1 00 1c lwz r31,28(r1) ffc15388: 38 21 00 20 addi r1,r1,32 ffc1538c: 7c 08 03 a6 mtlr r0 ffc15390: 4e 80 00 20 blr ffc15394 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc15394: 94 21 ff f0 stwu r1,-16(r1) ffc15398: 7c 08 02 a6 mflr r0 ffc1539c: 90 01 00 14 stw r0,20(r1) ffc153a0: 93 c1 00 08 stw r30,8(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc153a4: 83 c3 00 3c lwz r30,60(r3) rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc153a8: 93 e1 00 0c stw r31,12(r1) ffc153ac: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { ffc153b0: 80 1e 00 4c lwz r0,76(r30) ffc153b4: 2f 80 00 06 cmpwi cr7,r0,6 ffc153b8: 40 9e 00 34 bne- cr7,ffc153ec if (iop->offset > the_jnode->info.linearfile.size) ffc153bc: 81 3e 00 50 lwz r9,80(r30) <== NOT EXECUTED ffc153c0: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED ffc153c4: 80 1e 00 54 lwz r0,84(r30) <== NOT EXECUTED ffc153c8: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc153cc: 41 9d 00 14 bgt- cr7,ffc153e0 <== NOT EXECUTED ffc153d0: 40 be 00 5c bne+ cr7,ffc1542c <== NOT EXECUTED ffc153d4: 81 63 00 14 lwz r11,20(r3) <== NOT EXECUTED ffc153d8: 7f 8b 00 40 cmplw cr7,r11,r0 <== NOT EXECUTED ffc153dc: 40 9d 00 50 ble- cr7,ffc1542c <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; ffc153e0: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc153e4: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED ffc153e8: 48 00 00 44 b ffc1542c <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) ffc153ec: 80 a3 00 10 lwz r5,16(r3) ffc153f0: 80 c3 00 14 lwz r6,20(r3) ffc153f4: 7f c3 f3 78 mr r3,r30 ffc153f8: 4b ff fd 5d bl ffc15154 ffc153fc: 2f 83 00 00 cmpwi cr7,r3,0 ffc15400: 41 be 00 1c beq+ cr7,ffc1541c rtems_set_errno_and_return_minus_one( ENOSPC ); ffc15404: 48 00 15 39 bl ffc1693c <__errno> <== NOT EXECUTED ffc15408: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc1540c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc15410: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc15414: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc15418: 48 00 00 1c b ffc15434 <== NOT EXECUTED iop->size = the_jnode->info.file.size; ffc1541c: 81 3e 00 50 lwz r9,80(r30) ffc15420: 81 5e 00 54 lwz r10,84(r30) ffc15424: 91 3f 00 08 stw r9,8(r31) ffc15428: 91 5f 00 0c stw r10,12(r31) } return iop->offset; ffc1542c: 81 3f 00 10 lwz r9,16(r31) ffc15430: 81 5f 00 14 lwz r10,20(r31) } ffc15434: 80 01 00 14 lwz r0,20(r1) ffc15438: 7d 44 53 78 mr r4,r10 ffc1543c: 7d 23 4b 78 mr r3,r9 ffc15440: 83 c1 00 08 lwz r30,8(r1) ffc15444: 7c 08 03 a6 mtlr r0 ffc15448: 83 e1 00 0c lwz r31,12(r1) ffc1544c: 38 21 00 10 addi r1,r1,16 ffc15450: 4e 80 00 20 blr ffc157a0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc157a0: 94 21 ff f0 stwu r1,-16(r1) ffc157a4: 7c 08 02 a6 mflr r0 ffc157a8: 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)) ffc157ac: 80 03 00 18 lwz r0,24(r3) rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc157b0: 93 c1 00 08 stw r30,8(r1) ffc157b4: 7c 7e 1b 78 mr r30,r3 the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) ffc157b8: 70 09 02 04 andi. r9,r0,516 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc157bc: 93 e1 00 0c stw r31,12(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc157c0: 83 e3 00 3c lwz r31,60(r3) /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) ffc157c4: 41 82 00 64 beq- ffc15828 && (the_jnode->type == IMFS_LINEAR_FILE)) { ffc157c8: 80 1f 00 4c lwz r0,76(r31) ffc157cc: 2f 80 00 06 cmpwi cr7,r0,6 ffc157d0: 40 be 00 58 bne+ cr7,ffc15828 uint32_t count = the_jnode->info.linearfile.size; ffc157d4: 81 1f 00 54 lwz r8,84(r31) <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; ffc157d8: 39 20 00 05 li r9,5 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; ffc157dc: 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; ffc157e0: 91 3f 00 4c stw r9,76(r31) <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) ffc157e4: 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; ffc157e8: 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; ffc157ec: 80 ff 00 58 lwz r7,88(r31) <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; ffc157f0: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc157f4: 91 3f 00 50 stw r9,80(r31) <== NOT EXECUTED ffc157f8: 91 5f 00 54 stw r10,84(r31) <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; ffc157fc: 90 1f 00 60 stw r0,96(r31) <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; ffc15800: 90 1f 00 5c stw r0,92(r31) <== NOT EXECUTED uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; ffc15804: 90 1f 00 58 stw r0,88(r31) <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) ffc15808: 41 be 00 20 beq+ cr7,ffc15828 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) ffc1580c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc15810: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc15814: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc15818: 4b ff fc 3d bl ffc15454 <== 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) ffc1581c: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED ffc15820: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc15824: 41 9e 00 34 beq- cr7,ffc15858 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) ffc15828: 80 1e 00 18 lwz r0,24(r30) ffc1582c: 70 09 02 00 andi. r9,r0,512 ffc15830: 41 82 00 14 beq- ffc15844 iop->offset = the_jnode->info.file.size; ffc15834: 81 3f 00 50 lwz r9,80(r31) ffc15838: 81 5f 00 54 lwz r10,84(r31) ffc1583c: 91 3e 00 10 stw r9,16(r30) ffc15840: 91 5e 00 14 stw r10,20(r30) iop->size = the_jnode->info.file.size; ffc15844: 81 3f 00 50 lwz r9,80(r31) ffc15848: 38 60 00 00 li r3,0 ffc1584c: 81 5f 00 54 lwz r10,84(r31) ffc15850: 91 3e 00 08 stw r9,8(r30) ffc15854: 91 5e 00 0c stw r10,12(r30) return 0; } ffc15858: 80 01 00 14 lwz r0,20(r1) ffc1585c: 83 c1 00 08 lwz r30,8(r1) ffc15860: 7c 08 03 a6 mtlr r0 ffc15864: 83 e1 00 0c lwz r31,12(r1) ffc15868: 38 21 00 10 addi r1,r1,16 ffc1586c: 4e 80 00 20 blr ffc046fc : int mknod( const char *pathname, mode_t mode, dev_t dev ) { ffc046fc: 94 21 ff c0 stwu r1,-64(r1) ffc04700: 7c 08 02 a6 mflr r0 ffc04704: 90 01 00 44 stw r0,68(r1) rtems_filesystem_location_info_t temp_loc; int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) ffc04708: 70 80 f0 00 andi. r0,r4,61440 int mknod( const char *pathname, mode_t mode, dev_t dev ) { ffc0470c: 93 61 00 2c stw r27,44(r1) ffc04710: 7c bb 2b 78 mr r27,r5 ffc04714: 93 81 00 30 stw r28,48(r1) ffc04718: 7c dc 33 78 mr r28,r6 ffc0471c: 93 c1 00 38 stw r30,56(r1) ffc04720: 7c 9e 23 78 mr r30,r4 ffc04724: 93 a1 00 34 stw r29,52(r1) ffc04728: 93 e1 00 3c stw r31,60(r1) rtems_filesystem_location_info_t temp_loc; int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) ffc0472c: 40 a2 00 10 bne+ ffc0473c rtems_set_errno_and_return_minus_one( EINVAL ); ffc04730: 48 00 be 7d bl ffc105ac <__errno> <== NOT EXECUTED ffc04734: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc04738: 48 00 00 a0 b ffc047d8 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); ffc0473c: 88 03 00 00 lbz r0,0(r3) ffc04740: 2f 80 00 2f cmpwi cr7,r0,47 ffc04744: 41 9e 00 14 beq- cr7,ffc04758 ffc04748: 2f 80 00 5c cmpwi cr7,r0,92 ffc0474c: 41 9e 00 0c beq- cr7,ffc04758 ffc04750: 2f 80 00 00 cmpwi cr7,r0,0 ffc04754: 40 9e 00 38 bne- cr7,ffc0478c ffc04758: 3d 20 00 00 lis r9,0 ffc0475c: 81 29 26 9c lwz r9,9884(r9) ffc04760: 39 60 00 01 li r11,1 ffc04764: 80 09 00 24 lwz r0,36(r9) ffc04768: 80 e9 00 18 lwz r7,24(r9) ffc0476c: 81 09 00 1c lwz r8,28(r9) ffc04770: 81 49 00 20 lwz r10,32(r9) ffc04774: 90 e1 00 0c stw r7,12(r1) ffc04778: 91 01 00 10 stw r8,16(r1) ffc0477c: 91 41 00 14 stw r10,20(r1) ffc04780: 90 01 00 18 stw r0,24(r1) ffc04784: 80 09 00 28 lwz r0,40(r9) ffc04788: 48 00 00 34 b ffc047bc ffc0478c: 3d 20 00 00 lis r9,0 ffc04790: 81 29 26 9c lwz r9,9884(r9) ffc04794: 39 60 00 00 li r11,0 ffc04798: 80 09 00 10 lwz r0,16(r9) ffc0479c: 80 e9 00 04 lwz r7,4(r9) ffc047a0: 81 09 00 08 lwz r8,8(r9) ffc047a4: 81 49 00 0c lwz r10,12(r9) ffc047a8: 90 e1 00 0c stw r7,12(r1) ffc047ac: 91 01 00 10 stw r8,16(r1) ffc047b0: 91 41 00 14 stw r10,20(r1) ffc047b4: 90 01 00 18 stw r0,24(r1) ffc047b8: 80 09 00 14 lwz r0,20(r9) if ( !temp_loc.ops->evalformake_h ) { ffc047bc: 81 21 00 18 lwz r9,24(r1) int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); ffc047c0: 90 01 00 1c stw r0,28(r1) if ( !temp_loc.ops->evalformake_h ) { ffc047c4: 80 09 00 04 lwz r0,4(r9) ffc047c8: 2f 80 00 00 cmpwi cr7,r0,0 ffc047cc: 40 be 00 18 bne+ cr7,ffc047e4 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc047d0: 48 00 bd dd bl ffc105ac <__errno> <== NOT EXECUTED ffc047d4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc047d8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc047dc: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc047e0: 48 00 00 98 b ffc04878 <== NOT EXECUTED } result = (*temp_loc.ops->evalformake_h)( ffc047e4: 3b e1 00 0c addi r31,r1,12 ffc047e8: 7c 09 03 a6 mtctr r0 ffc047ec: 7c 63 5a 14 add r3,r3,r11 ffc047f0: 7f e4 fb 78 mr r4,r31 ffc047f4: 38 a1 00 08 addi r5,r1,8 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) ffc047f8: 3b a0 ff ff li r29,-1 if ( !temp_loc.ops->evalformake_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( ffc047fc: 4e 80 04 21 bctrl &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) ffc04800: 2f 83 00 00 cmpwi cr7,r3,0 ffc04804: 40 9e 00 74 bne- cr7,ffc04878 return -1; if ( !temp_loc.ops->mknod_h ) { ffc04808: 81 21 00 18 lwz r9,24(r1) ffc0480c: 80 09 00 14 lwz r0,20(r9) ffc04810: 2f 80 00 00 cmpwi cr7,r0,0 ffc04814: 40 be 00 20 bne+ cr7,ffc04834 rtems_filesystem_freenode( &temp_loc ); ffc04818: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0481c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04820: 41 be ff b0 beq- cr7,ffc047d0 <== NOT EXECUTED ffc04824: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04828: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0482c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc04830: 4b ff ff a0 b ffc047d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); ffc04834: 7f c4 f3 78 mr r4,r30 ffc04838: 80 61 00 08 lwz r3,8(r1) ffc0483c: 7f 65 db 78 mr r5,r27 ffc04840: 7c 09 03 a6 mtctr r0 ffc04844: 7f 86 e3 78 mr r6,r28 ffc04848: 7f e7 fb 78 mr r7,r31 ffc0484c: 4e 80 04 21 bctrl rtems_filesystem_freenode( &temp_loc ); ffc04850: 81 21 00 18 lwz r9,24(r1) if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); ffc04854: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &temp_loc ); ffc04858: 2f 89 00 00 cmpwi cr7,r9,0 ffc0485c: 41 9e 00 1c beq- cr7,ffc04878 ffc04860: 80 09 00 1c lwz r0,28(r9) ffc04864: 2f 80 00 00 cmpwi cr7,r0,0 ffc04868: 41 9e 00 10 beq- cr7,ffc04878 ffc0486c: 7f e3 fb 78 mr r3,r31 ffc04870: 7c 09 03 a6 mtctr r0 ffc04874: 4e 80 04 21 bctrl return result; } ffc04878: 80 01 00 44 lwz r0,68(r1) ffc0487c: 7f a3 eb 78 mr r3,r29 ffc04880: 83 61 00 2c lwz r27,44(r1) ffc04884: 7c 08 03 a6 mtlr r0 ffc04888: 83 81 00 30 lwz r28,48(r1) ffc0488c: 83 a1 00 34 lwz r29,52(r1) ffc04890: 83 c1 00 38 lwz r30,56(r1) ffc04894: 83 e1 00 3c lwz r31,60(r1) ffc04898: 38 21 00 40 addi r1,r1,64 ffc0489c: 4e 80 00 20 blr ffc048c4 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { ffc048c4: 94 21 ff b8 stwu r1,-72(r1) ffc048c8: 7c 08 02 a6 mflr r0 ffc048cc: 93 61 00 34 stw r27,52(r1) /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { ffc048d0: 7c 9b 23 79 mr. r27,r4 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { ffc048d4: 93 21 00 2c stw r25,44(r1) ffc048d8: 7c d9 33 78 mr r25,r6 ffc048dc: 93 41 00 30 stw r26,48(r1) ffc048e0: 7c fa 3b 78 mr r26,r7 ffc048e4: 93 81 00 38 stw r28,56(r1) ffc048e8: 7c 7c 1b 78 mr r28,r3 ffc048ec: 93 c1 00 40 stw r30,64(r1) ffc048f0: 7c be 2b 78 mr r30,r5 ffc048f4: 90 01 00 4c stw r0,76(r1) ffc048f8: 93 a1 00 3c stw r29,60(r1) ffc048fc: 93 e1 00 44 stw r31,68(r1) /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { ffc04900: 41 82 00 0c beq- ffc0490c /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && ffc04904: 2b 85 00 01 cmplwi cr7,r5,1 ffc04908: 40 bd 00 10 ble+ cr7,ffc04918 options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; ffc0490c: 48 00 bc a1 bl ffc105ac <__errno> ffc04910: 38 00 00 16 li r0,22 ffc04914: 48 00 00 5c b ffc04970 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { ffc04918: 80 1b 00 24 lwz r0,36(r27) ffc0491c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04920: 40 be 00 1c bne+ cr7,ffc0493c errno = ENOTSUP; ffc04924: 48 00 bc 89 bl ffc105ac <__errno> <== NOT EXECUTED ffc04928: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0492c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04930: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc04934: 3b a0 00 00 li r29,0 <== NOT EXECUTED goto cleanup_and_bail; ffc04938: 48 00 01 d0 b ffc04b08 <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) ffc0493c: 2f 86 00 00 cmpwi cr7,r6,0 ffc04940: 38 60 00 6c li r3,108 ffc04944: 41 9e 00 10 beq- cr7,ffc04954 size += strlen( device ) + 1; ffc04948: 7c c3 33 78 mr r3,r6 <== NOT EXECUTED ffc0494c: 48 00 cf 5d bl ffc118a8 <== NOT EXECUTED ffc04950: 38 63 00 6d addi r3,r3,109 <== NOT EXECUTED temp_mt_entry = malloc( size ); ffc04954: 4b ff fc 55 bl ffc045a8 if ( !temp_mt_entry ) { ffc04958: 2f 83 00 00 cmpwi cr7,r3,0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); ffc0495c: 7c 7f 1b 78 mr r31,r3 ffc04960: 7c 7d 1b 78 mr r29,r3 if ( !temp_mt_entry ) { ffc04964: 40 be 00 14 bne+ cr7,ffc04978 errno = ENOMEM; ffc04968: 48 00 bc 45 bl ffc105ac <__errno> <== NOT EXECUTED ffc0496c: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc04970: 90 03 00 00 stw r0,0(r3) ffc04974: 48 00 01 c8 b ffc04b3c return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { ffc04978: 2f 99 00 00 cmpwi cr7,r25,0 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; ffc0497c: 93 c3 00 30 stw r30,48(r3) if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; ffc04980: 90 7f 00 2c stw r3,44(r31) temp_mt_entry->options = options; if ( device ) { ffc04984: 41 9e 00 1c beq- cr7,ffc049a0 temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); ffc04988: 38 03 00 6c addi r0,r3,108 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); ffc0498c: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = ffc04990: 90 1f 00 68 stw r0,104(r31) <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); ffc04994: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc04998: 48 00 ce 99 bl ffc11830 <== NOT EXECUTED ffc0499c: 48 00 00 08 b ffc049a4 <== NOT EXECUTED } else temp_mt_entry->dev = 0; ffc049a0: 93 23 00 68 stw r25,104(r3) /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { ffc049a4: 2f 9a 00 00 cmpwi cr7,r26,0 ffc049a8: 41 9e 00 e0 beq- cr7,ffc04a88 if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) ffc049ac: 7f 43 d3 78 mr r3,r26 ffc049b0: 48 00 ce f9 bl ffc118a8 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( ffc049b4: 3b c1 00 08 addi r30,r1,8 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) ffc049b8: 7c 64 1b 78 mr r4,r3 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( ffc049bc: 38 a0 00 07 li r5,7 ffc049c0: 7f 43 d3 78 mr r3,r26 ffc049c4: 7f c6 f3 78 mr r6,r30 ffc049c8: 38 e0 00 01 li r7,1 ffc049cc: 4b ff f7 95 bl ffc04160 ffc049d0: 2f 83 ff ff cmpwi cr7,r3,-1 ffc049d4: 41 9e 01 30 beq- cr7,ffc04b04 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { ffc049d8: 81 21 00 14 lwz r9,20(r1) ffc049dc: 80 09 00 10 lwz r0,16(r9) ffc049e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc049e4: 40 be 00 10 bne+ cr7,ffc049f4 errno = ENOTSUP; ffc049e8: 48 00 bb c5 bl ffc105ac <__errno> <== NOT EXECUTED ffc049ec: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc049f0: 48 00 00 20 b ffc04a10 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { ffc049f4: 7f c3 f3 78 mr r3,r30 ffc049f8: 7c 09 03 a6 mtctr r0 ffc049fc: 4e 80 04 21 bctrl ffc04a00: 2f 83 00 01 cmpwi cr7,r3,1 ffc04a04: 41 be 00 14 beq+ cr7,ffc04a18 errno = ENOTDIR; ffc04a08: 48 00 bb a5 bl ffc105ac <__errno> ffc04a0c: 38 00 00 14 li r0,20 ffc04a10: 90 03 00 00 stw r0,0(r3) goto cleanup_and_bail; ffc04a14: 48 00 00 f4 b ffc04b08 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc04a18: 3d 60 00 00 lis r11,0 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc04a1c: 3d 20 00 00 lis r9,0 ffc04a20: 38 0b 2a 9c addi r0,r11,10908 ffc04a24: 81 29 2a 98 lwz r9,10904(r9) !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node; if ( the_mount_entry->mt_fs_root.node_access == loc->node_access ) ffc04a28: 81 61 00 08 lwz r11,8(r1) ffc04a2c: 48 00 00 14 b ffc04a40 ffc04a30: 81 49 00 1c lwz r10,28(r9) ffc04a34: 7f 8a 58 00 cmpw cr7,r10,r11 ffc04a38: 41 9e 00 14 beq- cr7,ffc04a4c * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { ffc04a3c: 81 29 00 00 lwz r9,0(r9) ffc04a40: 7f 89 00 00 cmpw cr7,r9,r0 ffc04a44: 40 9e ff ec bne+ cr7,ffc04a30 ffc04a48: 48 00 01 24 b ffc04b6c /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; ffc04a4c: 48 00 bb 61 bl ffc105ac <__errno> ffc04a50: 38 00 00 10 li r0,16 ffc04a54: 48 00 00 0c b ffc04a60 * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ errno = ENOTSUP; ffc04a58: 48 00 bb 55 bl ffc105ac <__errno> <== NOT EXECUTED ffc04a5c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc04a60: 90 03 00 00 stw r0,0(r3) ffc04a64: 3b c1 00 08 addi r30,r1,8 goto cleanup_and_bail; ffc04a68: 48 00 00 a0 b ffc04b08 } if ( loc.ops->mount_h( temp_mt_entry ) ) { ffc04a6c: 7f e3 fb 78 mr r3,r31 ffc04a70: 7c 09 03 a6 mtctr r0 ffc04a74: 3b c1 00 08 addi r30,r1,8 ffc04a78: 4e 80 04 21 bctrl ffc04a7c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04a80: 41 be 00 28 beq+ cr7,ffc04aa8 ffc04a84: 48 00 00 84 b ffc04b08 <== NOT EXECUTED temp_mt_entry->mt_fs_root.ops = NULL; temp_mt_entry->mt_point_node.node_access = NULL; temp_mt_entry->mt_point_node.handlers = NULL; temp_mt_entry->mt_point_node.ops = NULL; temp_mt_entry->mt_point_node.mt_entry = NULL; ffc04a88: 93 5f 00 18 stw r26,24(r31) ffc04a8c: 3b c0 00 00 li r30,0 * This is a mount of the base file system --> The * mt_point_node.node_access will be set to null to indicate that this * is the root of the entire file system. */ temp_mt_entry->mt_fs_root.node_access = NULL; ffc04a90: 93 5f 00 1c stw r26,28(r31) temp_mt_entry->mt_fs_root.handlers = NULL; ffc04a94: 93 5f 00 24 stw r26,36(r31) temp_mt_entry->mt_fs_root.ops = NULL; ffc04a98: 93 5f 00 28 stw r26,40(r31) temp_mt_entry->mt_point_node.node_access = NULL; ffc04a9c: 93 5f 00 08 stw r26,8(r31) temp_mt_entry->mt_point_node.handlers = NULL; ffc04aa0: 93 5f 00 10 stw r26,16(r31) temp_mt_entry->mt_point_node.ops = NULL; ffc04aa4: 93 5f 00 14 stw r26,20(r31) temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { ffc04aa8: 80 1b 00 24 lwz r0,36(r27) ffc04aac: 7f e3 fb 78 mr r3,r31 ffc04ab0: 7c 09 03 a6 mtctr r0 ffc04ab4: 4e 80 04 21 bctrl ffc04ab8: 2f 83 00 00 cmpwi cr7,r3,0 ffc04abc: 41 be 00 24 beq+ cr7,ffc04ae0 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { ffc04ac0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc04ac4: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc04ac8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04acc: 41 9e 00 3c beq- cr7,ffc04b08 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); ffc04ad0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04ad4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04ad8: 4e 80 04 21 bctrl <== NOT EXECUTED ffc04adc: 48 00 00 2c b ffc04b08 <== NOT EXECUTED RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); ffc04ae0: 3c 60 00 00 lis r3,0 ffc04ae4: 38 63 2a 98 addi r3,r3,10904 ffc04ae8: 7f e4 fb 78 mr r4,r31 ffc04aec: 48 00 3f 29 bl ffc08a14 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) ffc04af0: 2f 9c 00 00 cmpwi cr7,r28,0 ffc04af4: 38 60 00 00 li r3,0 ffc04af8: 41 9e 00 48 beq- cr7,ffc04b40 *mt_entry = temp_mt_entry; ffc04afc: 93 fc 00 00 stw r31,0(r28) ffc04b00: 48 00 00 40 b ffc04b40 ffc04b04: 3b c0 00 00 li r30,0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); ffc04b08: 7f a3 eb 78 mr r3,r29 ffc04b0c: 4b ff f7 39 bl ffc04244 if ( loc_to_free ) ffc04b10: 2f 9e 00 00 cmpwi cr7,r30,0 ffc04b14: 41 be 00 28 beq+ cr7,ffc04b3c rtems_filesystem_freenode( loc_to_free ); ffc04b18: 81 3e 00 0c lwz r9,12(r30) ffc04b1c: 2f 89 00 00 cmpwi cr7,r9,0 ffc04b20: 41 be 00 1c beq+ cr7,ffc04b3c ffc04b24: 80 09 00 1c lwz r0,28(r9) ffc04b28: 2f 80 00 00 cmpwi cr7,r0,0 ffc04b2c: 41 be 00 10 beq+ cr7,ffc04b3c ffc04b30: 7f c3 f3 78 mr r3,r30 ffc04b34: 7c 09 03 a6 mtctr r0 ffc04b38: 4e 80 04 21 bctrl ffc04b3c: 38 60 ff ff li r3,-1 return -1; } ffc04b40: 80 01 00 4c lwz r0,76(r1) ffc04b44: 83 21 00 2c lwz r25,44(r1) ffc04b48: 7c 08 03 a6 mtlr r0 ffc04b4c: 83 41 00 30 lwz r26,48(r1) ffc04b50: 83 61 00 34 lwz r27,52(r1) ffc04b54: 83 81 00 38 lwz r28,56(r1) ffc04b58: 83 a1 00 3c lwz r29,60(r1) ffc04b5c: 83 c1 00 40 lwz r30,64(r1) ffc04b60: 83 e1 00 44 lwz r31,68(r1) ffc04b64: 38 21 00 48 addi r1,r1,72 ffc04b68: 4e 80 00 20 blr * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; ffc04b6c: 81 21 00 14 lwz r9,20(r1) * may have been allocated in loc should not be sent to freenode * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; ffc04b70: 91 7f 00 08 stw r11,8(r31) /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ ffc04b74: 80 09 00 20 lwz r0,32(r9) * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; ffc04b78: 81 61 00 10 lwz r11,16(r1) /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ ffc04b7c: 2f 80 00 00 cmpwi cr7,r0,0 * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; ffc04b80: 91 3f 00 14 stw r9,20(r31) * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; ffc04b84: 91 7f 00 10 stw r11,16(r31) temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; ffc04b88: 81 61 00 18 lwz r11,24(r1) ffc04b8c: 91 7f 00 18 stw r11,24(r31) /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ ffc04b90: 40 9e fe dc bne+ cr7,ffc04a6c ffc04b94: 4b ff fe c4 b ffc04a58 <== NOT EXECUTED ffc04c38 : */ int newlib_free_buffers( FILE *fp ) { ffc04c38: 94 21 ff f0 stwu r1,-16(r1) ffc04c3c: 7c 08 02 a6 mflr r0 ffc04c40: 93 e1 00 0c stw r31,12(r1) ffc04c44: 7c 7f 1b 78 mr r31,r3 ffc04c48: 90 01 00 14 stw r0,20(r1) switch ( fileno(fp) ) { ffc04c4c: 48 00 be 35 bl ffc10a80 ffc04c50: 2b 83 00 02 cmplwi cr7,r3,2 ffc04c54: 41 9d 00 34 bgt- cr7,ffc04c88 case 0: case 1: case 2: if (fp->_flags & __SMBF) { ffc04c58: a0 1f 00 0c lhz r0,12(r31) ffc04c5c: 70 09 00 80 andi. r9,r0,128 ffc04c60: 41 a2 00 30 beq+ ffc04c90 free( fp->_bf._base ); ffc04c64: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc04c68: 4b ff f5 dd bl ffc04244 <== NOT EXECUTED fp->_flags &= ~__SMBF; ffc04c6c: a1 3f 00 0c lhz r9,12(r31) <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; ffc04c70: 38 00 00 00 li r0,0 <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; ffc04c74: 55 29 06 6e rlwinm r9,r9,0,25,23 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; ffc04c78: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; ffc04c7c: b1 3f 00 0c sth r9,12(r31) <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; ffc04c80: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED ffc04c84: 48 00 00 0c b ffc04c90 <== NOT EXECUTED } break; default: fclose(fp); ffc04c88: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04c8c: 48 00 ba c1 bl ffc1074c <== NOT EXECUTED } return 0; } ffc04c90: 80 01 00 14 lwz r0,20(r1) ffc04c94: 38 60 00 00 li r3,0 ffc04c98: 83 e1 00 0c lwz r31,12(r1) ffc04c9c: 38 21 00 10 addi r1,r1,16 ffc04ca0: 7c 08 03 a6 mtlr r0 ffc04ca4: 4e 80 00 20 blr ffc04a0c : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04a0c: 94 21 ff f0 stwu r1,-16(r1) ffc04a10: 7c 08 02 a6 mflr r0 rtems_device_driver status; if ( !initialized ) { ffc04a14: 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)) ) { ffc04a18: 90 01 00 14 stw r0,20(r1) rtems_device_driver status; if ( !initialized ) { ffc04a1c: 88 09 28 a8 lbz r0,10408(r9) rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04a20: 93 e1 00 0c stw r31,12(r1) ffc04a24: 7c 7f 1b 78 mr r31,r3 rtems_device_driver status; if ( !initialized ) { ffc04a28: 2f 80 00 00 cmpwi cr7,r0,0 ffc04a2c: 40 be 00 34 bne+ cr7,ffc04a60 initialized = 1; status = rtems_io_register_name( ffc04a30: 3c 60 ff c2 lis r3,-62 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04a34: 38 00 00 01 li r0,1 status = rtems_io_register_name( ffc04a38: 38 63 0d 66 addi r3,r3,3430 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04a3c: 98 09 28 a8 stb r0,10408(r9) status = rtems_io_register_name( ffc04a40: 7f e4 fb 78 mr r4,r31 ffc04a44: 38 a0 00 00 li r5,0 ffc04a48: 48 00 01 79 bl ffc04bc0 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) ffc04a4c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04a50: 41 be 00 08 beq+ cr7,ffc04a58 rtems_fatal_error_occurred(status); ffc04a54: 48 00 4d c9 bl ffc0981c <== NOT EXECUTED NULL_major = major; ffc04a58: 3d 20 00 00 lis r9,0 ffc04a5c: 93 e9 27 88 stw r31,10120(r9) } return RTEMS_SUCCESSFUL; } ffc04a60: 80 01 00 14 lwz r0,20(r1) ffc04a64: 38 60 00 00 li r3,0 ffc04a68: 83 e1 00 0c lwz r31,12(r1) ffc04a6c: 38 21 00 10 addi r1,r1,16 ffc04a70: 7c 08 03 a6 mtlr r0 ffc04a74: 4e 80 00 20 blr ffc049ec : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) ffc049ec: 2c 05 00 00 cmpwi r5,0 ffc049f0: 41 82 00 0c beq- ffc049fc rw_args->bytes_moved = rw_args->count; ffc049f4: 80 05 00 14 lwz r0,20(r5) <== NOT EXECUTED ffc049f8: 90 05 00 1c stw r0,28(r5) <== NOT EXECUTED return NULL_SUCCESSFUL; } ffc049fc: 38 60 00 00 li r3,0 ffc04a00: 4e 80 00 20 blr ffc04f14 : int open( const char *pathname, int flags, ... ) { ffc04f14: 94 21 ff b0 stwu r1,-80(r1) ffc04f18: 7c 08 02 a6 mflr r0 ffc04f1c: 93 41 00 38 stw r26,56(r1) /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; ffc04f20: 3b 44 00 01 addi r26,r4,1 int open( const char *pathname, int flags, ... ) { ffc04f24: 90 01 00 54 stw r0,84(r1) eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) ffc04f28: 73 40 00 02 andi. r0,r26,2 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) ffc04f2c: 57 5a 17 7a rlwinm r26,r26,2,29,29 int open( const char *pathname, int flags, ... ) { ffc04f30: 93 a1 00 44 stw r29,68(r1) ffc04f34: 7c 7d 1b 78 mr r29,r3 ffc04f38: 93 c1 00 48 stw r30,72(r1) ffc04f3c: 7c 9e 23 78 mr r30,r4 ffc04f40: 93 21 00 34 stw r25,52(r1) ffc04f44: 93 61 00 3c stw r27,60(r1) ffc04f48: 93 81 00 40 stw r28,64(r1) ffc04f4c: 93 e1 00 4c stw r31,76(r1) ffc04f50: 90 a1 00 28 stw r5,40(r1) eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) ffc04f54: 41 82 00 08 beq- ffc04f5c eval_flags |= RTEMS_LIBIO_PERMS_WRITE; ffc04f58: 63 5a 00 02 ori r26,r26,2 va_start(ap, flags); ffc04f5c: 38 01 00 58 addi r0,r1,88 ffc04f60: 39 21 00 20 addi r9,r1,32 ffc04f64: 90 01 00 0c stw r0,12(r1) mode = va_arg( ap, int ); ffc04f68: 38 00 00 03 li r0,3 ffc04f6c: 98 01 00 08 stb r0,8(r1) * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); if ( iop == 0 ) { ffc04f70: 3b 20 00 17 li r25,23 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); ffc04f74: 91 21 00 10 stw r9,16(r1) mode = va_arg( ap, int ); ffc04f78: 83 69 00 08 lwz r27,8(r9) * code does not require changes here since network file * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); ffc04f7c: 48 00 84 a1 bl ffc0d41c if ( iop == 0 ) { ffc04f80: 7c 7f 1b 79 mr. r31,r3 ffc04f84: 41 82 02 1c beq- ffc051a0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); ffc04f88: 7f a3 eb 78 mr r3,r29 ffc04f8c: 48 00 c9 1d bl ffc118a8 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( ffc04f90: 3b 81 00 14 addi r28,r1,20 pathname, strlen( pathname ), eval_flags, &loc, true ); ffc04f94: 7c 64 1b 78 mr r4,r3 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( ffc04f98: 7f 45 d3 78 mr r5,r26 ffc04f9c: 7f a3 eb 78 mr r3,r29 ffc04fa0: 7f 86 e3 78 mr r6,r28 ffc04fa4: 38 e0 00 01 li r7,1 ffc04fa8: 4b ff f1 b9 bl ffc04160 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { ffc04fac: 2f 83 ff ff cmpwi cr7,r3,-1 ffc04fb0: 40 be 00 8c bne+ cr7,ffc0503c if ( errno != ENOENT ) { ffc04fb4: 48 00 b5 f9 bl ffc105ac <__errno> ffc04fb8: 80 03 00 00 lwz r0,0(r3) ffc04fbc: 2f 80 00 02 cmpwi cr7,r0,2 ffc04fc0: 41 9e 00 10 beq- cr7,ffc04fd0 rc = errno; ffc04fc4: 48 00 b5 e9 bl ffc105ac <__errno> ffc04fc8: 83 23 00 00 lwz r25,0(r3) ffc04fcc: 48 00 01 8c b ffc05158 goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { ffc04fd0: 73 c0 02 00 andi. r0,r30,512 ffc04fd4: 3b 20 00 02 li r25,2 ffc04fd8: 3b 40 00 00 li r26,0 ffc04fdc: 41 a2 01 88 beq+ ffc05164 rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); ffc04fe0: 7f a3 eb 78 mr r3,r29 ffc04fe4: 63 64 80 00 ori r4,r27,32768 ffc04fe8: 38 a0 00 00 li r5,0 ffc04fec: 38 c0 00 00 li r6,0 ffc04ff0: 4b ff f7 0d bl ffc046fc if ( rc ) { ffc04ff4: 2f 83 00 00 cmpwi cr7,r3,0 ffc04ff8: 41 9e 00 10 beq- cr7,ffc05008 rc = errno; ffc04ffc: 48 00 b5 b1 bl ffc105ac <__errno> <== NOT EXECUTED ffc05000: 83 23 00 00 lwz r25,0(r3) <== NOT EXECUTED goto done; ffc05004: 48 00 01 58 b ffc0515c <== 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 ); ffc05008: 7f a3 eb 78 mr r3,r29 ffc0500c: 48 00 c8 9d bl ffc118a8 ffc05010: 7f 86 e3 78 mr r6,r28 ffc05014: 7c 64 1b 78 mr r4,r3 ffc05018: 38 a0 00 00 li r5,0 ffc0501c: 7f a3 eb 78 mr r3,r29 ffc05020: 38 e0 00 01 li r7,1 ffc05024: 4b ff f1 3d bl ffc04160 if ( status != 0 ) { /* The file did not exist */ ffc05028: 3b 20 00 0d li r25,13 ffc0502c: 2f 83 00 00 cmpwi cr7,r3,0 ffc05030: 3b 40 00 00 li r26,0 ffc05034: 40 9e 01 30 bne- cr7,ffc05164 ffc05038: 48 00 00 18 b ffc05050 rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { ffc0503c: 73 c0 0a 00 andi. r0,r30,2560 ffc05040: 7f 9a e3 78 mr r26,r28 ffc05044: 3b 20 00 11 li r25,17 ffc05048: 2f 80 0a 00 cmpwi cr7,r0,2560 ffc0504c: 41 9e 01 18 beq- cr7,ffc05164 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; ffc05050: 80 01 00 1c lwz r0,28(r1) iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); ffc05054: 7f c3 f3 78 mr r3,r30 ffc05058: 83 9f 00 18 lwz r28,24(r31) /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; ffc0505c: 90 1f 00 40 stw r0,64(r31) iop->file_info = loc.node_access; ffc05060: 80 01 00 14 lwz r0,20(r1) ffc05064: 90 1f 00 3c stw r0,60(r31) iop->flags |= rtems_libio_fcntl_flags( flags ); ffc05068: 48 00 84 91 bl ffc0d4f8 iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { ffc0506c: 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; ffc05070: 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 ); ffc05074: 7c 63 e3 78 or r3,r3,r28 iop->pathinfo = loc; ffc05078: 81 41 00 18 lwz r10,24(r1) if ( !iop->handlers || !iop->handlers->open_h ) { ffc0507c: 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; ffc05080: 81 61 00 1c lwz r11,28(r1) ffc05084: 81 01 00 14 lwz r8,20(r1) ffc05088: 91 5f 00 20 stw r10,32(r31) ffc0508c: 91 1f 00 1c stw r8,28(r31) ffc05090: 91 7f 00 24 stw r11,36(r31) ffc05094: 90 1f 00 28 stw r0,40(r31) ffc05098: 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 ); ffc0509c: 90 7f 00 18 stw r3,24(r31) iop->pathinfo = loc; ffc050a0: 90 1f 00 2c stw r0,44(r31) if ( !iop->handlers || !iop->handlers->open_h ) { ffc050a4: 41 9e 01 54 beq- cr7,ffc051f8 ffc050a8: 80 09 00 00 lwz r0,0(r9) ffc050ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc050b0: 41 9e 01 48 beq- cr7,ffc051f8 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); ffc050b4: 7f a4 eb 78 mr r4,r29 ffc050b8: 7c 09 03 a6 mtctr r0 ffc050bc: 7f 66 db 78 mr r6,r27 ffc050c0: 7f e3 fb 78 mr r3,r31 ffc050c4: 7f c5 f3 78 mr r5,r30 ffc050c8: 4e 80 04 21 bctrl if ( rc ) { ffc050cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc050d0: 41 be 00 14 beq+ cr7,ffc050e4 rc = errno; ffc050d4: 48 00 b4 d9 bl ffc105ac <__errno> ffc050d8: 3b 41 00 14 addi r26,r1,20 ffc050dc: 83 23 00 00 lwz r25,0(r3) goto done; ffc050e0: 48 00 00 7c b ffc0515c /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { ffc050e4: 73 c0 04 00 andi. r0,r30,1024 ffc050e8: 41 a2 00 c8 beq+ ffc051b0 rc = ftruncate( iop - rtems_libio_iops, 0 ); ffc050ec: 3d 20 00 00 lis r9,0 ffc050f0: 80 69 27 08 lwz r3,9992(r9) ffc050f4: 3c 00 38 e3 lis r0,14563 ffc050f8: 60 00 8e 39 ori r0,r0,36409 ffc050fc: 7c 63 f8 50 subf r3,r3,r31 ffc05100: 7c 63 1e 70 srawi r3,r3,3 ffc05104: 7c 63 01 d6 mullw r3,r3,r0 ffc05108: 38 a0 00 00 li r5,0 ffc0510c: 38 c0 00 00 li r6,0 ffc05110: 48 00 7f 61 bl ffc0d070 if ( rc ) { ffc05114: 7c 79 1b 79 mr. r25,r3 ffc05118: 41 a2 00 98 beq+ ffc051b0 if(errno) rc = errno; ffc0511c: 48 00 b4 91 bl ffc105ac <__errno> <== NOT EXECUTED ffc05120: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc05124: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05128: 41 be 00 0c beq+ cr7,ffc05134 <== NOT EXECUTED ffc0512c: 48 00 b4 81 bl ffc105ac <__errno> <== NOT EXECUTED ffc05130: 83 23 00 00 lwz r25,0(r3) <== NOT EXECUTED close( iop - rtems_libio_iops ); ffc05134: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05138: 80 69 27 08 lwz r3,9992(r9) <== NOT EXECUTED ffc0513c: 3c 00 38 e3 lis r0,14563 <== NOT EXECUTED ffc05140: 60 00 8e 39 ori r0,r0,36409 <== NOT EXECUTED ffc05144: 7f e3 f8 50 subf r31,r3,r31 <== NOT EXECUTED ffc05148: 7f e3 1e 70 srawi r3,r31,3 <== NOT EXECUTED ffc0514c: 7c 63 01 d6 mullw r3,r3,r0 <== NOT EXECUTED ffc05150: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc05154: 48 00 7e 55 bl ffc0cfa8 <== NOT EXECUTED ffc05158: 3b 40 00 00 li r26,0 */ done: va_end(ap); if ( rc ) { ffc0515c: 2f 99 00 00 cmpwi cr7,r25,0 ffc05160: 41 be 00 50 beq+ cr7,ffc051b0 if ( iop ) ffc05164: 2f 9f 00 00 cmpwi cr7,r31,0 ffc05168: 41 9e 00 0c beq- cr7,ffc05174 rtems_libio_free( iop ); ffc0516c: 7f e3 fb 78 mr r3,r31 ffc05170: 48 00 82 39 bl ffc0d3a8 if ( loc_to_free ) ffc05174: 2f 9a 00 00 cmpwi cr7,r26,0 ffc05178: 41 9e 00 28 beq- cr7,ffc051a0 rtems_filesystem_freenode( loc_to_free ); ffc0517c: 81 3a 00 0c lwz r9,12(r26) ffc05180: 2f 89 00 00 cmpwi cr7,r9,0 ffc05184: 41 9e 00 1c beq- cr7,ffc051a0 ffc05188: 80 09 00 1c lwz r0,28(r9) ffc0518c: 2f 80 00 00 cmpwi cr7,r0,0 ffc05190: 41 9e 00 10 beq- cr7,ffc051a0 ffc05194: 7f 43 d3 78 mr r3,r26 ffc05198: 7c 09 03 a6 mtctr r0 ffc0519c: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( rc ); ffc051a0: 48 00 b4 0d bl ffc105ac <__errno> ffc051a4: 93 23 00 00 stw r25,0(r3) ffc051a8: 38 60 ff ff li r3,-1 ffc051ac: 48 00 00 20 b ffc051cc } return iop - rtems_libio_iops; ffc051b0: 3d 20 00 00 lis r9,0 ffc051b4: 80 69 27 08 lwz r3,9992(r9) ffc051b8: 3c 00 38 e3 lis r0,14563 ffc051bc: 60 00 8e 39 ori r0,r0,36409 ffc051c0: 7c 63 f8 50 subf r3,r3,r31 ffc051c4: 7c 63 1e 70 srawi r3,r3,3 ffc051c8: 7c 63 01 d6 mullw r3,r3,r0 } ffc051cc: 80 01 00 54 lwz r0,84(r1) ffc051d0: 83 21 00 34 lwz r25,52(r1) ffc051d4: 7c 08 03 a6 mtlr r0 ffc051d8: 83 41 00 38 lwz r26,56(r1) ffc051dc: 83 61 00 3c lwz r27,60(r1) ffc051e0: 83 81 00 40 lwz r28,64(r1) ffc051e4: 83 a1 00 44 lwz r29,68(r1) ffc051e8: 83 c1 00 48 lwz r30,72(r1) ffc051ec: 83 e1 00 4c lwz r31,76(r1) ffc051f0: 38 21 00 50 addi r1,r1,80 ffc051f4: 4e 80 00 20 blr if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; ffc051f8: 3b 20 00 86 li r25,134 <== NOT EXECUTED ffc051fc: 3b 41 00 14 addi r26,r1,20 <== NOT EXECUTED ffc05200: 4b ff ff 64 b ffc05164 <== NOT EXECUTED ffc04e7c : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc04e7c: 94 21 ff f0 stwu r1,-16(r1) ffc04e80: 7c 08 02 a6 mflr r0 int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { ffc04e84: 38 80 00 00 li r4,0 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc04e88: 93 e1 00 0c stw r31,12(r1) int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { ffc04e8c: 3f e0 ff c2 lis r31,-62 ffc04e90: 3b ff c0 30 addi r31,r31,-16336 ffc04e94: 7f e3 fb 78 mr r3,r31 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc04e98: 90 01 00 14 stw r0,20(r1) int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { ffc04e9c: 38 a0 00 00 li r5,0 ffc04ea0: 4c c6 31 82 crclr 4*cr1+eq ffc04ea4: 48 00 00 71 bl ffc04f14 ffc04ea8: 2f 83 ff ff cmpwi cr7,r3,-1 ffc04eac: 41 9e 00 54 beq- cr7,ffc04f00 /* * But if we find /dev/console once, we better find it twice more * or something is REALLY wrong. */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) ffc04eb0: 7f e3 fb 78 mr r3,r31 ffc04eb4: 38 80 00 01 li r4,1 ffc04eb8: 38 a0 00 00 li r5,0 ffc04ebc: 4c c6 31 82 crclr 4*cr1+eq ffc04ec0: 48 00 00 55 bl ffc04f14 ffc04ec4: 2f 83 ff ff cmpwi cr7,r3,-1 ffc04ec8: 40 be 00 10 bne+ cr7,ffc04ed8 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ ffc04ecc: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED ffc04ed0: 60 63 44 31 ori r3,r3,17457 <== NOT EXECUTED ffc04ed4: 48 00 00 28 b ffc04efc <== NOT EXECUTED if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) ffc04ed8: 7f e3 fb 78 mr r3,r31 ffc04edc: 38 80 00 01 li r4,1 ffc04ee0: 38 a0 00 00 li r5,0 ffc04ee4: 4c c6 31 82 crclr 4*cr1+eq ffc04ee8: 48 00 00 2d bl ffc04f14 ffc04eec: 2f 83 ff ff cmpwi cr7,r3,-1 ffc04ef0: 40 be 00 10 bne+ cr7,ffc04f00 rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ ffc04ef4: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED ffc04ef8: 60 63 44 32 ori r3,r3,17458 <== NOT EXECUTED ffc04efc: 48 00 36 d5 bl ffc085d0 <== NOT EXECUTED } ffc04f00: 80 01 00 14 lwz r0,20(r1) ffc04f04: 83 e1 00 0c lwz r31,12(r1) ffc04f08: 38 21 00 10 addi r1,r1,16 ffc04f0c: 7c 08 03 a6 mtlr r0 ffc04f10: 4e 80 00 20 blr ffc05ac4 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05ac4: 94 21 ff e8 stwu r1,-24(r1) ffc05ac8: 7c 08 02 a6 mflr r0 ffc05acc: 90 01 00 1c stw r0,28(r1) int i; if (tty->termios.c_oflag & OPOST) { ffc05ad0: 80 04 00 34 lwz r0,52(r4) /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05ad4: 93 e1 00 14 stw r31,20(r1) ffc05ad8: 7c 9f 23 78 mr r31,r4 int i; if (tty->termios.c_oflag & OPOST) { ffc05adc: 70 09 00 01 andi. r9,r0,1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05ae0: 98 61 00 08 stb r3,8(r1) int i; if (tty->termios.c_oflag & OPOST) { ffc05ae4: 41 82 01 3c beq- ffc05c20 switch (c) { ffc05ae8: 2f 83 00 09 cmpwi cr7,r3,9 ffc05aec: 41 9e 00 94 beq- cr7,ffc05b80 ffc05af0: 2b 83 00 09 cmplwi cr7,r3,9 ffc05af4: 41 9d 00 10 bgt- cr7,ffc05b04 ffc05af8: 2f 83 00 08 cmpwi cr7,r3,8 <== NOT EXECUTED ffc05afc: 40 be 00 cc bne+ cr7,ffc05bc8 <== NOT EXECUTED ffc05b00: 48 00 00 b0 b ffc05bb0 <== NOT EXECUTED ffc05b04: 2f 83 00 0a cmpwi cr7,r3,10 ffc05b08: 41 9e 00 10 beq- cr7,ffc05b18 ffc05b0c: 2f 83 00 0d cmpwi cr7,r3,13 ffc05b10: 40 be 00 b8 bne+ cr7,ffc05bc8 ffc05b14: 48 00 00 38 b ffc05b4c <== NOT EXECUTED case '\n': if (tty->termios.c_oflag & ONLRET) ffc05b18: 70 09 00 20 andi. r9,r0,32 ffc05b1c: 41 82 00 0c beq- ffc05b28 tty->column = 0; ffc05b20: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc05b24: 90 04 00 28 stw r0,40(r4) <== NOT EXECUTED if (tty->termios.c_oflag & ONLCR) { ffc05b28: 80 1f 00 34 lwz r0,52(r31) ffc05b2c: 70 09 00 04 andi. r9,r0,4 ffc05b30: 41 a2 00 f0 beq+ ffc05c20 rtems_termios_puts ("\r", 1, tty); ffc05b34: 3c 60 ff c2 lis r3,-62 ffc05b38: 38 63 c8 63 addi r3,r3,-14237 ffc05b3c: 38 80 00 01 li r4,1 ffc05b40: 7f e5 fb 78 mr r5,r31 ffc05b44: 4b ff fe 09 bl ffc0594c ffc05b48: 48 00 00 30 b ffc05b78 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) ffc05b4c: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED ffc05b50: 41 82 00 10 beq- ffc05b60 <== NOT EXECUTED ffc05b54: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED ffc05b58: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05b5c: 41 9e 00 d4 beq- cr7,ffc05c30 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { ffc05b60: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc05b64: 41 82 00 5c beq- ffc05bc0 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) ffc05b68: 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'; ffc05b6c: 38 00 00 0a li r0,10 <== NOT EXECUTED ffc05b70: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) ffc05b74: 41 82 00 ac beq- ffc05c20 <== NOT EXECUTED tty->column = 0; ffc05b78: 38 00 00 00 li r0,0 ffc05b7c: 48 00 00 a0 b ffc05c1c tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { ffc05b80: 54 00 04 e8 rlwinm r0,r0,0,19,20 ffc05b84: 2f 80 18 00 cmpwi cr7,r0,6144 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); ffc05b88: 80 04 00 28 lwz r0,40(r4) ffc05b8c: 54 04 07 7e clrlwi r4,r0,29 ffc05b90: 20 84 00 08 subfic r4,r4,8 ffc05b94: 7c 04 02 14 add r0,r4,r0 if ((tty->termios.c_oflag & TABDLY) == XTABS) { ffc05b98: 40 be 00 84 bne+ cr7,ffc05c1c tty->column += i; rtems_termios_puts ( " ", i, tty); ffc05b9c: 3c 60 ff c2 lis r3,-62 break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; ffc05ba0: 90 1f 00 28 stw r0,40(r31) rtems_termios_puts ( " ", i, tty); ffc05ba4: 38 63 c5 82 addi r3,r3,-14974 ffc05ba8: 7f e5 fb 78 mr r5,r31 ffc05bac: 48 00 00 80 b ffc05c2c } tty->column += i; break; case '\b': if (tty->column > 0) ffc05bb0: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED ffc05bb4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05bb8: 40 9d 00 68 ble- cr7,ffc05c20 <== NOT EXECUTED tty->column--; ffc05bbc: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05bc0: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED ffc05bc4: 48 00 00 5c b ffc05c20 <== NOT EXECUTED break; default: if (tty->termios.c_oflag & OLCUC) ffc05bc8: 70 09 00 02 andi. r9,r0,2 ffc05bcc: 41 82 00 2c beq- ffc05bf8 c = toupper(c); ffc05bd0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05bd4: 80 09 26 a0 lwz r0,9888(r9) <== NOT EXECUTED ffc05bd8: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED ffc05bdc: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED ffc05be0: 88 03 00 01 lbz r0,1(r3) <== NOT EXECUTED ffc05be4: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED ffc05be8: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc05bec: 40 be 00 08 bne+ cr7,ffc05bf4 <== NOT EXECUTED ffc05bf0: 39 29 ff e0 addi r9,r9,-32 <== NOT EXECUTED ffc05bf4: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED if (!iscntrl(c)) ffc05bf8: 3d 20 00 00 lis r9,0 ffc05bfc: 88 01 00 08 lbz r0,8(r1) ffc05c00: 81 29 26 a0 lwz r9,9888(r9) ffc05c04: 7d 29 02 14 add r9,r9,r0 ffc05c08: 88 09 00 01 lbz r0,1(r9) ffc05c0c: 70 09 00 20 andi. r9,r0,32 ffc05c10: 40 82 00 10 bne- ffc05c20 tty->column++; ffc05c14: 81 3f 00 28 lwz r9,40(r31) ffc05c18: 38 09 00 01 addi r0,r9,1 ffc05c1c: 90 1f 00 28 stw r0,40(r31) break; } } rtems_termios_puts (&c, 1, tty); ffc05c20: 7f e5 fb 78 mr r5,r31 ffc05c24: 38 61 00 08 addi r3,r1,8 ffc05c28: 38 80 00 01 li r4,1 ffc05c2c: 4b ff fd 21 bl ffc0594c } ffc05c30: 80 01 00 1c lwz r0,28(r1) ffc05c34: 83 e1 00 14 lwz r31,20(r1) ffc05c38: 38 21 00 18 addi r1,r1,24 ffc05c3c: 7c 08 03 a6 mtlr r0 ffc05c40: 4e 80 00 20 blr ffc0ffd4 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc0ffd4: 94 21 ff b8 stwu r1,-72(r1) ffc0ffd8: 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) ffc0ffdc: 38 80 00 03 li r4,3 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc0ffe0: 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) ffc0ffe4: 3f a0 ff c2 lis r29,-62 ffc0ffe8: 3b bd cc 38 addi r29,r29,-13256 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc0ffec: 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) ffc0fff0: 3b c1 00 18 addi r30,r1,24 ffc0fff4: 38 a0 00 07 li r5,7 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc0fff8: 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) ffc0fffc: 7f c6 f3 78 mr r6,r30 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc10000: 7c 7f 1b 78 mr r31,r3 rtems_filesystem_location_info_t loc; rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) ffc10004: 38 e0 00 01 li r7,1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc10008: 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) ffc1000c: 7f a3 eb 78 mr r3,r29 ffc10010: 4b ff 41 51 bl ffc04160 ffc10014: 2f 83 00 00 cmpwi cr7,r3,0 ffc10018: 41 be 00 2c beq+ cr7,ffc10044 != 0) { if (errno != ENOENT) ffc1001c: 48 00 05 91 bl ffc105ac <__errno> ffc10020: 80 03 00 00 lwz r0,0(r3) ffc10024: 2f 80 00 02 cmpwi cr7,r0,2 ffc10028: 40 be 01 44 bne+ cr7,ffc1016c return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) ffc1002c: 7f a3 eb 78 mr r3,r29 ffc10030: 38 80 03 ff li r4,1023 ffc10034: 4b ff 46 9d bl ffc046d0 ffc10038: 2f 83 00 00 cmpwi cr7,r3,0 ffc1003c: 41 be 00 2c beq+ cr7,ffc10068 ffc10040: 48 00 01 2c b ffc1016c <== NOT EXECUTED return -1; } else rtems_filesystem_freenode(&loc); ffc10044: 81 21 00 24 lwz r9,36(r1) <== NOT EXECUTED ffc10048: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc1004c: 41 9e 00 1c beq- cr7,ffc10068 <== NOT EXECUTED ffc10050: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc10054: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10058: 41 9e 00 10 beq- cr7,ffc10068 <== NOT EXECUTED ffc1005c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc10060: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc10064: 4e 80 04 21 bctrl <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc10068: 3d 20 00 00 lis r9,0 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc1006c: 3d 40 ff c2 lis r10,-62 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc10070: a1 09 27 b0 lhz r8,10160(r9) else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc10074: 39 6a cc 3d addi r11,r10,-13251 ffc10078: 81 4a cc 3d lwz r10,-13251(r10) ffc1007c: a0 0b 00 08 lhz r0,8(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc10080: 3c 80 ff c2 lis r4,-62 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc10084: 81 6b 00 04 lwz r11,4(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc10088: 7d 05 43 78 mr r5,r8 ffc1008c: 38 84 cc 48 addi r4,r4,-13240 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc10090: 91 41 00 08 stw r10,8(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc10094: 39 08 00 01 addi r8,r8,1 ffc10098: 38 61 00 12 addi r3,r1,18 ffc1009c: b1 09 27 b0 sth r8,10160(r9) /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { ffc100a0: 3b c1 00 08 addi r30,r1,8 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc100a4: 91 61 00 0c stw r11,12(r1) ffc100a8: b0 01 00 10 sth r0,16(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc100ac: 4c c6 31 82 crclr 4*cr1+eq ffc100b0: 48 00 13 c5 bl ffc11474 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { ffc100b4: 7f c3 f3 78 mr r3,r30 ffc100b8: 38 80 01 80 li r4,384 ffc100bc: 48 00 01 49 bl ffc10204 ffc100c0: 2f 83 00 00 cmpwi cr7,r3,0 ffc100c4: 41 be 00 0c beq+ cr7,ffc100d0 if (errno != EEXIST){ ffc100c8: 48 00 04 e5 bl ffc105ac <__errno> <== NOT EXECUTED ffc100cc: 48 00 00 a0 b ffc1016c <== NOT EXECUTED return -1; sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); ffc100d0: 7f c3 f3 78 mr r3,r30 ffc100d4: 38 80 40 00 li r4,16384 ffc100d8: 4c c6 31 82 crclr 4*cr1+eq ffc100dc: 4b ff 4e 39 bl ffc04f14 if (filsdes[0] < 0) { ffc100e0: 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); ffc100e4: 90 7f 00 00 stw r3,0(r31) if (filsdes[0] < 0) { ffc100e8: 40 bc 00 14 bge+ cr7,ffc100fc err = errno; ffc100ec: 48 00 04 c1 bl ffc105ac <__errno> ffc100f0: 83 a3 00 00 lwz r29,0(r3) /* Delete file at errors, or else if pipe is successfully created the file node will be deleted after it is closed by all. */ unlink(fifopath); ffc100f4: 7f c3 f3 78 mr r3,r30 ffc100f8: 48 00 00 68 b ffc10160 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); ffc100fc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc10100: 80 09 26 4c lwz r0,9804(r9) <== NOT EXECUTED ffc10104: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc10108: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc1010c: 40 9c 00 14 bge- cr7,ffc10120 <== NOT EXECUTED ffc10110: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc10114: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc10118: 81 29 27 08 lwz r9,9992(r9) <== NOT EXECUTED ffc1011c: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc10120: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); ffc10124: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc10128: 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; ffc1012c: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc10130: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { ffc10134: 3b a0 00 00 li r29,0 <== NOT EXECUTED else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); ffc10138: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc1013c: 4b ff 4d d9 bl ffc04f14 <== NOT EXECUTED if (filsdes[1] < 0) { ffc10140: 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); ffc10144: 90 7f 00 04 stw r3,4(r31) <== NOT EXECUTED if (filsdes[1] < 0) { ffc10148: 40 bc 00 14 bge+ cr7,ffc1015c <== NOT EXECUTED err = errno; ffc1014c: 48 00 04 61 bl ffc105ac <__errno> <== NOT EXECUTED ffc10150: 83 a3 00 00 lwz r29,0(r3) <== NOT EXECUTED close(filsdes[0]); ffc10154: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10158: 4b ff ce 51 bl ffc0cfa8 <== NOT EXECUTED } unlink(fifopath); ffc1015c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc10160: 48 00 00 d1 bl ffc10230 } rtems_set_errno_and_return_minus_one(err); ffc10164: 48 00 04 49 bl ffc105ac <__errno> ffc10168: 93 a3 00 00 stw r29,0(r3) } ffc1016c: 80 01 00 4c lwz r0,76(r1) ffc10170: 38 60 ff ff li r3,-1 ffc10174: 83 a1 00 3c lwz r29,60(r1) ffc10178: 7c 08 03 a6 mtlr r0 ffc1017c: 83 c1 00 40 lwz r30,64(r1) ffc10180: 83 e1 00 44 lwz r31,68(r1) ffc10184: 38 21 00 48 addi r1,r1,72 ffc10188: 4e 80 00 20 blr ffc0ee24 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { ffc0ee24: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0ee28: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0ee2c: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0ee30: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc0ee34: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); ffc0ee38: 80 63 00 2c lwz r3,44(r3) <== NOT EXECUTED ffc0ee3c: 48 00 09 d1 bl ffc0f80c <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); ffc0ee40: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0ee44: 48 00 09 c9 bl ffc0f80c <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); ffc0ee48: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ee4c: 4b ff 8e 91 bl ffc07cdc <== NOT EXECUTED free(pipe->Buffer); ffc0ee50: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0ee54: 4b ff 53 f1 bl ffc04244 <== NOT EXECUTED free(pipe); ffc0ee58: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0ee5c: 4b ff 53 e9 bl ffc04244 <== NOT EXECUTED } ffc0ee60: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0ee64: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0ee68: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0ee6c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ee70: 4e 80 00 20 blr <== NOT EXECUTED ffc0e990 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc0e990: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0e994: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0e998: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (cmd == FIONREAD) { ffc0e99c: 3c 00 40 04 lis r0,16388 <== NOT EXECUTED ffc0e9a0: 60 00 66 7f ori r0,r0,26239 <== NOT EXECUTED ffc0e9a4: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc0e9a8: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc0e9ac: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED ffc0e9b0: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc0e9b4: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (cmd == FIONREAD) { ffc0e9b8: 38 60 ff ea li r3,-22 <== NOT EXECUTED ffc0e9bc: 40 be 00 40 bne+ cr7,ffc0e9fc <== NOT EXECUTED if (buffer == NULL) ffc0e9c0: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc0e9c4: 38 60 ff f2 li r3,-14 <== NOT EXECUTED ffc0e9c8: 41 be 00 34 beq+ cr7,ffc0e9fc <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) ffc0e9cc: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0e9d0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0e9d4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0e9d8: 4b ff 93 d1 bl ffc07da8 <== NOT EXECUTED ffc0e9dc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0e9e0: 38 60 ff fc li r3,-4 <== NOT EXECUTED ffc0e9e4: 40 be 00 18 bne+ cr7,ffc0e9fc <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc0e9e8: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0e9ec: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc0e9f0: 90 1e 00 00 stw r0,0(r30) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0e9f4: 4b ff 94 f9 bl ffc07eec <== NOT EXECUTED ffc0e9f8: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; } return -EINVAL; } ffc0e9fc: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0ea00: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc0ea04: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ea08: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0ea0c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0ea10: 4e 80 00 20 blr <== NOT EXECUTED ffc0e918 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } ffc0e918: 38 60 ff e3 li r3,-29 <== NOT EXECUTED ffc0e91c: 4e 80 00 20 blr <== NOT EXECUTED ffc0ec34 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec34: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc0ec38: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0ec3c: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc0ec40: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED ffc0ec44: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ec48: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec4c: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc0ec50: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ec54: 38 80 00 00 li r4,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec58: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc0ec5c: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ec60: 38 a0 00 00 li r5,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec64: 93 01 00 18 stw r24,24(r1) <== NOT EXECUTED ffc0ec68: 7c d8 33 78 mr r24,r6 <== NOT EXECUTED ffc0ec6c: 93 21 00 1c stw r25,28(r1) <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); ffc0ec70: 3b 21 00 08 addi r25,r1,8 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec74: 93 81 00 28 stw r28,40(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ec78: 3b 80 00 00 li r28,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec7c: 93 41 00 20 stw r26,32(r1) <== NOT EXECUTED ffc0ec80: 93 61 00 24 stw r27,36(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ec84: 4b ff 91 25 bl ffc07da8 <== NOT EXECUTED ffc0ec88: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0ec8c: 41 be 01 44 beq+ cr7,ffc0edd0 <== NOT EXECUTED ffc0ec90: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc0ec94: 48 00 01 5c b ffc0edf0 <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) ffc0ec98: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0ec9c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0eca0: 41 9e 01 38 beq- cr7,ffc0edd8 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { ffc0eca4: 80 18 00 18 lwz r0,24(r24) <== NOT EXECUTED ffc0eca8: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0ecac: 41 a2 00 0c beq+ ffc0ecb8 <== NOT EXECUTED ffc0ecb0: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED ffc0ecb4: 48 00 01 28 b ffc0eddc <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; ffc0ecb8: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ecbc: 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 ++; ffc0ecc0: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc0ecc4: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ecc8: 4b ff 92 25 bl ffc07eec <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc0eccc: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0ecd0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0ecd4: 48 00 0c 41 bl ffc0f914 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0ecd8: 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)) ffc0ecdc: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED ffc0ece0: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0ece4: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ece8: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0ecec: 4b ff 90 bd bl ffc07da8 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ffc0ecf0: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0ecf4: 2f 03 00 00 cmpwi cr6,r3,0 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ffc0ecf8: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) ffc0ecfc: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0ed00: 41 ba 00 0c beq+ cr6,ffc0ed0c <== NOT EXECUTED ffc0ed04: 3b 60 ff fc li r27,-4 <== NOT EXECUTED ffc0ed08: 48 00 00 dc b ffc0ede4 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; ffc0ed0c: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED ffc0ed10: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0ed14: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED if (ret != 0) ffc0ed18: 40 9e 00 c4 bne- cr7,ffc0eddc <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { ffc0ed1c: 83 7f 00 0c lwz r27,12(r31) <== NOT EXECUTED ffc0ed20: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc0ed24: 41 9e ff 74 beq+ cr7,ffc0ec98 <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); ffc0ed28: 7c 1c f0 50 subf r0,r28,r30 <== NOT EXECUTED ffc0ed2c: 7f 9b 00 40 cmplw cr7,r27,r0 <== NOT EXECUTED ffc0ed30: 40 9d 00 08 ble- cr7,ffc0ed38 <== NOT EXECUTED ffc0ed34: 7c 1b 03 78 mr r27,r0 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; ffc0ed38: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc0ed3c: 7c 7d e2 14 add r3,r29,r28 <== NOT EXECUTED ffc0ed40: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED ffc0ed44: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc0ed48: 7f 40 d0 50 subf r26,r0,r26 <== NOT EXECUTED if (chunk > chunk1) { ffc0ed4c: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED ffc0ed50: 40 9d 00 24 ble- cr7,ffc0ed74 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); ffc0ed54: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc0ed58: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc0ed5c: 48 00 24 39 bl ffc11194 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); ffc0ed60: 7c 7c d2 14 add r3,r28,r26 <== NOT EXECUTED ffc0ed64: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc0ed68: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc0ed6c: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED ffc0ed70: 48 00 00 0c b ffc0ed7c <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); ffc0ed74: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc0ed78: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc0ed7c: 48 00 24 19 bl ffc11194 <== NOT EXECUTED pipe->Start += chunk; ffc0ed80: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED pipe->Start %= pipe->Size; ffc0ed84: 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; ffc0ed88: 7d 3b 4a 14 add r9,r27,r9 <== NOT EXECUTED pipe->Start %= pipe->Size; pipe->Length -= chunk; ffc0ed8c: 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; ffc0ed90: 7d 49 5b 96 divwu r10,r9,r11 <== NOT EXECUTED pipe->Length -= chunk; ffc0ed94: 7c 1b 00 50 subf r0,r27,r0 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc0ed98: 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; ffc0ed9c: 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; ffc0eda0: 7d 6a 59 d6 mullw r11,r10,r11 <== NOT EXECUTED ffc0eda4: 7d 2b 48 50 subf r9,r11,r9 <== NOT EXECUTED ffc0eda8: 91 3f 00 08 stw r9,8(r31) <== NOT EXECUTED pipe->Length -= chunk; /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc0edac: 40 9e 00 08 bne- cr7,ffc0edb4 <== NOT EXECUTED pipe->Start = 0; ffc0edb0: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED if (pipe->waitingWriters > 0) ffc0edb4: 80 1f 00 1c lwz r0,28(r31) <== NOT EXECUTED ffc0edb8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0edbc: 41 be 00 10 beq+ cr7,ffc0edcc <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0edc0: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0edc4: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc0edc8: 48 00 0a cd bl ffc0f894 <== NOT EXECUTED read += chunk; ffc0edcc: 7f 9c da 14 add r28,r28,r27 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { ffc0edd0: 7f 9c f0 40 cmplw cr7,r28,r30 <== NOT EXECUTED ffc0edd4: 41 9c ff 48 blt+ cr7,ffc0ed1c <== NOT EXECUTED ffc0edd8: 3b 60 00 00 li r27,0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); ffc0eddc: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ede0: 4b ff 91 0d bl ffc07eec <== NOT EXECUTED out_nolock: if (read > 0) ffc0ede4: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0ede8: 41 bd 00 08 bgt+ cr7,ffc0edf0 <== NOT EXECUTED ffc0edec: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED return read; return ret; } ffc0edf0: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc0edf4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0edf8: 83 01 00 18 lwz r24,24(r1) <== NOT EXECUTED ffc0edfc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ee00: 83 21 00 1c lwz r25,28(r1) <== NOT EXECUTED ffc0ee04: 83 41 00 20 lwz r26,32(r1) <== NOT EXECUTED ffc0ee08: 83 61 00 24 lwz r27,36(r1) <== NOT EXECUTED ffc0ee0c: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED ffc0ee10: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc0ee14: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc0ee18: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc0ee1c: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc0ee20: 4e 80 00 20 blr <== NOT EXECUTED ffc0ee74 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0ee74: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0ee78: 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, ffc0ee7c: 38 a0 00 00 li r5,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0ee80: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc0ee84: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED pipe_control_t *pipe = *pipep; ffc0ee88: 83 e3 00 00 lwz r31,0(r3) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0ee8c: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc0ee90: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, ffc0ee94: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0ee98: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc0ee9c: 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, ffc0eea0: 38 80 00 00 li r4,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0eea4: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, ffc0eea8: 4b ff 8f 01 bl ffc07da8 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) ffc0eeac: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0eeb0: 40 9e 00 50 bne- cr7,ffc0ef00 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); ffc0eeb4: 83 de 00 18 lwz r30,24(r30) <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc0eeb8: 73 c0 00 02 andi. r0,r30,2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); ffc0eebc: 57 de 07 7c rlwinm r30,r30,0,29,30 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc0eec0: 41 82 00 10 beq- ffc0eed0 <== NOT EXECUTED pipe->Readers --; ffc0eec4: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED ffc0eec8: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0eecc: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) ffc0eed0: 73 c0 00 04 andi. r0,r30,4 <== NOT EXECUTED ffc0eed4: 41 82 00 10 beq- ffc0eee4 <== NOT EXECUTED pipe->Writers --; ffc0eed8: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED ffc0eedc: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0eee0: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0eee4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0eee8: 80 69 28 f8 lwz r3,10488(r9) <== NOT EXECUTED ffc0eeec: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0eef0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0eef4: 4b ff 8e b5 bl ffc07da8 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) ffc0eef8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0eefc: 41 be 00 08 beq+ cr7,ffc0ef04 <== NOT EXECUTED rtems_fatal_error_occurred(sc); ffc0ef00: 4b ff 96 d1 bl ffc085d0 <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ef04: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ef08: 4b ff 8f e5 bl ffc07eec <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { ffc0ef0c: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0ef10: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ef14: 40 9e 00 30 bne- cr7,ffc0ef44 <== NOT EXECUTED ffc0ef18: 83 9f 00 14 lwz r28,20(r31) <== NOT EXECUTED ffc0ef1c: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0ef20: 40 be 00 14 bne+ cr7,ffc0ef34 <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); ffc0ef24: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0ef28: 4b ff fe fd bl ffc0ee24 <== NOT EXECUTED *pipep = NULL; ffc0ef2c: 93 9d 00 00 stw r28,0(r29) <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { ffc0ef30: 48 00 00 34 b ffc0ef64 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) ffc0ef34: 2f 9e 00 04 cmpwi cr7,r30,4 <== NOT EXECUTED ffc0ef38: 41 be 00 0c beq+ cr7,ffc0ef44 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); ffc0ef3c: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0ef40: 48 00 00 1c b ffc0ef5c <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) ffc0ef44: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0ef48: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ef4c: 40 9e 00 18 bne- cr7,ffc0ef64 <== NOT EXECUTED ffc0ef50: 2f 9e 00 02 cmpwi cr7,r30,2 <== NOT EXECUTED ffc0ef54: 41 9e 00 10 beq- cr7,ffc0ef64 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0ef58: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0ef5c: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0ef60: 48 00 09 35 bl ffc0f894 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); ffc0ef64: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0ef68: 80 69 28 f8 lwz r3,10488(r9) <== NOT EXECUTED ffc0ef6c: 4b ff 8f 81 bl ffc07eec <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc0ef70: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0ef74: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0ef78: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc0ef7c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ef80: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0ef84: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0ef88: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0ef8c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0ef90: 4e 80 00 20 blr <== NOT EXECUTED ffc0ea14 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ea14: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc0ea18: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0ea1c: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0ea20: 7c be 2b 79 mr. r30,r5 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ea24: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED ffc0ea28: 7c d7 33 78 mr r23,r6 <== NOT EXECUTED ffc0ea2c: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0ea30: 3b 80 00 00 li r28,0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ea34: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc0ea38: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED ffc0ea3c: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc0ea40: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0ea44: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc0ea48: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED ffc0ea4c: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc0ea50: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED ffc0ea54: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0ea58: 41 a2 01 a4 beq+ ffc0ebfc <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) ffc0ea5c: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED ffc0ea60: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0ea64: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0ea68: 4b ff 93 41 bl ffc07da8 <== NOT EXECUTED ffc0ea6c: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc0ea70: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0ea74: 40 9e 01 88 bne- cr7,ffc0ebfc <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { ffc0ea78: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0ea7c: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc0ea80: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc0ea84: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ea88: 41 9e 01 60 beq- cr7,ffc0ebe8 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; ffc0ea8c: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc0ea90: 7f d9 f3 78 mr r25,r30 <== NOT EXECUTED ffc0ea94: 7f 9e 00 40 cmplw cr7,r30,r0 <== NOT EXECUTED ffc0ea98: 40 9d 00 08 ble- cr7,ffc0eaa0 <== NOT EXECUTED ffc0ea9c: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc0eaa0: 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); ffc0eaa4: 3b 01 00 08 addi r24,r1,8 <== NOT EXECUTED ffc0eaa8: 48 00 01 34 b ffc0ebdc <== 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)) { ffc0eaac: 80 17 00 18 lwz r0,24(r23) <== NOT EXECUTED ffc0eab0: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0eab4: 41 a2 00 0c beq+ ffc0eac0 <== NOT EXECUTED ffc0eab8: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED ffc0eabc: 48 00 01 2c b ffc0ebe8 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; ffc0eac0: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0eac4: 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 ++; ffc0eac8: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc0eacc: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ead0: 4b ff 94 1d bl ffc07eec <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc0ead4: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0ead8: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0eadc: 48 00 0e 39 bl ffc0f914 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0eae0: 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)) ffc0eae4: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED ffc0eae8: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0eaec: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0eaf0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0eaf4: 4b ff 92 b5 bl ffc07da8 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ffc0eaf8: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0eafc: 2f 03 00 00 cmpwi cr6,r3,0 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ffc0eb00: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) ffc0eb04: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0eb08: 41 ba 00 0c beq+ cr6,ffc0eb14 <== NOT EXECUTED ffc0eb0c: 3b 60 ff fc li r27,-4 <== NOT EXECUTED ffc0eb10: 48 00 00 e0 b ffc0ebf0 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; ffc0eb14: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED ffc0eb18: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0eb1c: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED if (ret != 0) ffc0eb20: 40 9e 00 c8 bne- cr7,ffc0ebe8 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { ffc0eb24: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0eb28: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0eb2c: 40 be 00 0c bne+ cr7,ffc0eb38 <== NOT EXECUTED ffc0eb30: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc0eb34: 48 00 00 b4 b ffc0ebe8 <== 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) { ffc0eb38: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED ffc0eb3c: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED ffc0eb40: 7f 60 d0 50 subf r27,r0,r26 <== NOT EXECUTED ffc0eb44: 7f 9b c8 40 cmplw cr7,r27,r25 <== NOT EXECUTED ffc0eb48: 41 9c ff 64 blt+ cr7,ffc0eaac <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); ffc0eb4c: 7d 3c f0 50 subf r9,r28,r30 <== NOT EXECUTED ffc0eb50: 7f 9b 48 40 cmplw cr7,r27,r9 <== NOT EXECUTED ffc0eb54: 40 9d 00 08 ble- cr7,ffc0eb5c <== NOT EXECUTED ffc0eb58: 7d 3b 4b 78 mr r27,r9 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); ffc0eb5c: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED ffc0eb60: 7c 9d e2 14 add r4,r29,r28 <== NOT EXECUTED ffc0eb64: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0eb68: 7d 20 4a 14 add r9,r0,r9 <== NOT EXECUTED ffc0eb6c: 7c 09 d3 96 divwu r0,r9,r26 <== NOT EXECUTED ffc0eb70: 7c 00 d1 d6 mullw r0,r0,r26 <== NOT EXECUTED ffc0eb74: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED ffc0eb78: 7f 40 d0 50 subf r26,r0,r26 <== NOT EXECUTED if (chunk > chunk1) { ffc0eb7c: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED ffc0eb80: 40 9d 00 24 ble- cr7,ffc0eba4 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); ffc0eb84: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc0eb88: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc0eb8c: 48 00 26 09 bl ffc11194 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); ffc0eb90: 7c 9a e2 14 add r4,r26,r28 <== NOT EXECUTED ffc0eb94: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0eb98: 7c 9d 22 14 add r4,r29,r4 <== NOT EXECUTED ffc0eb9c: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED ffc0eba0: 48 00 00 0c b ffc0ebac <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); ffc0eba4: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc0eba8: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc0ebac: 48 00 25 e9 bl ffc11194 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) ffc0ebb0: 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; ffc0ebb4: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc0ebb8: 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; ffc0ebbc: 7c 00 da 14 add r0,r0,r27 <== NOT EXECUTED ffc0ebc0: 90 1f 00 0c stw r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc0ebc4: 41 be 00 10 beq+ cr7,ffc0ebd4 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0ebc8: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0ebcc: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc0ebd0: 48 00 0c c5 bl ffc0f894 <== NOT EXECUTED written += chunk; ffc0ebd4: 7f 9c da 14 add r28,r28,r27 <== NOT EXECUTED ffc0ebd8: 3b 20 00 01 li r25,1 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { ffc0ebdc: 7f 9c f0 40 cmplw cr7,r28,r30 <== NOT EXECUTED ffc0ebe0: 41 9c ff 58 blt+ cr7,ffc0eb38 <== NOT EXECUTED ffc0ebe4: 3b 60 00 00 li r27,0 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); ffc0ebe8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ebec: 4b ff 93 01 bl ffc07eec <== NOT EXECUTED /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); #endif if (written > 0) ffc0ebf0: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0ebf4: 41 bd 00 08 bgt+ cr7,ffc0ebfc <== NOT EXECUTED ffc0ebf8: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED return written; return ret; } ffc0ebfc: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc0ec00: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0ec04: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc0ec08: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ec0c: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc0ec10: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc0ec14: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc0ec18: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc0ec1c: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc0ec20: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc0ec24: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc0ec28: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc0ec2c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc0ec30: 4e 80 00 20 blr <== NOT EXECUTED ffc05218 : * printk * * Kernel printf function requiring minimal infrastrure. */ void printk(const char *fmt, ...) { ffc05218: 94 21 ff 88 stwu r1,-120(r1) ffc0521c: 7c 08 02 a6 mflr r0 ffc05220: 90 81 00 1c stw r4,28(r1) ffc05224: 90 01 00 7c stw r0,124(r1) ffc05228: 90 a1 00 20 stw r5,32(r1) ffc0522c: 90 c1 00 24 stw r6,36(r1) ffc05230: 90 e1 00 28 stw r7,40(r1) ffc05234: 91 01 00 2c stw r8,44(r1) ffc05238: 91 21 00 30 stw r9,48(r1) ffc0523c: 91 41 00 34 stw r10,52(r1) ffc05240: 40 86 00 24 bne- cr1,ffc05264 ffc05244: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc05248: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc0524c: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc05250: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc05254: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc05258: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc0525c: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc05260: 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 */ ffc05264: 38 00 00 01 li r0,1 ffc05268: 98 01 00 08 stb r0,8(r1) ffc0526c: 38 00 00 00 li r0,0 vprintk(fmt, ap); ffc05270: 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 */ ffc05274: 98 01 00 09 stb r0,9(r1) ffc05278: 38 01 00 80 addi r0,r1,128 ffc0527c: 90 01 00 0c stw r0,12(r1) ffc05280: 38 01 00 18 addi r0,r1,24 ffc05284: 90 01 00 10 stw r0,16(r1) vprintk(fmt, ap); ffc05288: 48 00 1f ed bl ffc07274 va_end(ap); /* clean up when done */ } ffc0528c: 80 01 00 7c lwz r0,124(r1) ffc05290: 38 21 00 78 addi r1,r1,120 ffc05294: 7c 08 03 a6 mtlr r0 ffc05298: 4e 80 00 20 blr ffc06a18 : int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... ) { ffc06a18: 94 21 ff 90 stwu r1,-112(r1) ffc06a1c: 7c 08 02 a6 mflr r0 ffc06a20: 90 a1 00 18 stw r5,24(r1) ffc06a24: 90 01 00 74 stw r0,116(r1) ffc06a28: 90 c1 00 1c stw r6,28(r1) ffc06a2c: 90 e1 00 20 stw r7,32(r1) ffc06a30: 91 01 00 24 stw r8,36(r1) ffc06a34: 91 21 00 28 stw r9,40(r1) ffc06a38: 91 41 00 2c stw r10,44(r1) ffc06a3c: 40 86 00 24 bne- cr1,ffc06a60 ffc06a40: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc06a44: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc06a48: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc06a4c: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc06a50: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc06a54: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc06a58: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc06a5c: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arg_pointer; va_start (arg_pointer, format); ffc06a60: 38 00 00 02 li r0,2 ffc06a64: 98 01 00 08 stb r0,8(r1) ffc06a68: 38 00 00 00 li r0,0 vprintk( format, arg_pointer ); ffc06a6c: 7c 83 23 78 mr r3,r4 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06a70: 98 01 00 09 stb r0,9(r1) ffc06a74: 38 01 00 78 addi r0,r1,120 vprintk( format, arg_pointer ); ffc06a78: 38 81 00 08 addi r4,r1,8 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06a7c: 90 01 00 0c stw r0,12(r1) ffc06a80: 38 01 00 10 addi r0,r1,16 ffc06a84: 90 01 00 10 stw r0,16(r1) vprintk( format, arg_pointer ); ffc06a88: 48 00 1f f1 bl ffc08a78 va_end(arg_pointer); /* clean up when done */ return 0; } ffc06a8c: 38 60 00 00 li r3,0 ffc06a90: 80 01 00 74 lwz r0,116(r1) ffc06a94: 38 21 00 70 addi r1,r1,112 ffc06a98: 7c 08 03 a6 mtlr r0 ffc06a9c: 4e 80 00 20 blr ffc1b344 : ssize_t read( int fd, void *buffer, size_t count ) { ffc1b344: 94 21 ff f0 stwu r1,-16(r1) ffc1b348: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b34c: 3d 20 00 00 lis r9,0 ssize_t read( int fd, void *buffer, size_t count ) { ffc1b350: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b354: 80 09 26 4c lwz r0,9804(r9) ssize_t read( int fd, void *buffer, size_t count ) { ffc1b358: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b35c: 7f 83 00 40 cmplw cr7,r3,r0 ffc1b360: 40 9c 00 20 bge- cr7,ffc1b380 iop = rtems_libio_iop( fd ); ffc1b364: 3d 40 00 00 lis r10,0 ffc1b368: 83 ea 27 08 lwz r31,9992(r10) ffc1b36c: 1c 63 00 48 mulli r3,r3,72 ffc1b370: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1b374: 80 1f 00 18 lwz r0,24(r31) ffc1b378: 70 0a 01 00 andi. r10,r0,256 ffc1b37c: 40 a2 00 10 bne+ ffc1b38c ffc1b380: 4b ff 52 2d bl ffc105ac <__errno> ffc1b384: 38 00 00 09 li r0,9 ffc1b388: 48 00 00 44 b ffc1b3cc rtems_libio_check_buffer( buffer ); ffc1b38c: 2f 84 00 00 cmpwi cr7,r4,0 ffc1b390: 41 9e 00 18 beq- cr7,ffc1b3a8 rtems_libio_check_count( count ); ffc1b394: 2f 85 00 00 cmpwi cr7,r5,0 ffc1b398: 38 60 00 00 li r3,0 ffc1b39c: 41 9e 00 70 beq- cr7,ffc1b40c rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc1b3a0: 70 09 00 02 andi. r9,r0,2 ffc1b3a4: 40 a2 00 10 bne+ ffc1b3b4 ffc1b3a8: 4b ff 52 05 bl ffc105ac <__errno> <== NOT EXECUTED ffc1b3ac: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1b3b0: 48 00 00 1c b ffc1b3cc <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) ffc1b3b4: 81 3f 00 40 lwz r9,64(r31) ffc1b3b8: 80 09 00 08 lwz r0,8(r9) ffc1b3bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b3c0: 40 be 00 18 bne+ cr7,ffc1b3d8 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1b3c4: 4b ff 51 e9 bl ffc105ac <__errno> <== NOT EXECUTED ffc1b3c8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1b3cc: 90 03 00 00 stw r0,0(r3) ffc1b3d0: 38 60 ff ff li r3,-1 ffc1b3d4: 48 00 00 38 b ffc1b40c rc = (*iop->handlers->read_h)( iop, buffer, count ); ffc1b3d8: 7f e3 fb 78 mr r3,r31 ffc1b3dc: 7c 09 03 a6 mtctr r0 ffc1b3e0: 4e 80 04 21 bctrl if ( rc > 0 ) ffc1b3e4: 2c 03 00 00 cmpwi r3,0 ffc1b3e8: 40 81 00 24 ble- ffc1b40c iop->offset += rc; ffc1b3ec: 80 ff 00 10 lwz r7,16(r31) ffc1b3f0: 7c 6a 1b 78 mr r10,r3 ffc1b3f4: 81 1f 00 14 lwz r8,20(r31) ffc1b3f8: 7c 69 fe 70 srawi r9,r3,31 ffc1b3fc: 7d 88 50 14 addc r12,r8,r10 ffc1b400: 7d 67 49 14 adde r11,r7,r9 ffc1b404: 91 7f 00 10 stw r11,16(r31) ffc1b408: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1b40c: 80 01 00 14 lwz r0,20(r1) ffc1b410: 83 e1 00 0c lwz r31,12(r1) ffc1b414: 38 21 00 10 addi r1,r1,16 ffc1b418: 7c 08 03 a6 mtlr r0 ffc1b41c: 4e 80 00 20 blr ffc2c9ec : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc2c9ec: 94 21 ff c8 stwu r1,-56(r1) ffc2c9f0: 7c 08 02 a6 mflr r0 ffc2c9f4: 93 a1 00 2c stw r29,44(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc2c9f8: 7c 9d 23 79 mr. r29,r4 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc2c9fc: 93 81 00 28 stw r28,40(r1) ffc2ca00: 7c 7c 1b 78 mr r28,r3 ffc2ca04: 93 c1 00 30 stw r30,48(r1) ffc2ca08: 7c be 2b 78 mr r30,r5 ffc2ca0c: 90 01 00 3c stw r0,60(r1) ffc2ca10: 93 e1 00 34 stw r31,52(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc2ca14: 40 a2 00 10 bne+ ffc2ca24 rtems_set_errno_and_return_minus_one( EFAULT ); ffc2ca18: 48 01 95 55 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2ca1c: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc2ca20: 48 00 00 60 b ffc2ca80 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), ffc2ca24: 48 02 12 b5 bl ffc4dcd8 ffc2ca28: 3b e1 00 08 addi r31,r1,8 ffc2ca2c: 7c 64 1b 78 mr r4,r3 ffc2ca30: 38 a0 00 00 li r5,0 ffc2ca34: 7f 83 e3 78 mr r3,r28 ffc2ca38: 7f e6 fb 78 mr r6,r31 ffc2ca3c: 38 e0 00 00 li r7,0 ffc2ca40: 4b fd ba e9 bl ffc08528 0, &loc, false ); if ( result != 0 ) ffc2ca44: 3b 80 ff ff li r28,-1 ffc2ca48: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ca4c: 40 9e 00 cc bne- cr7,ffc2cb18 return -1; if ( !loc.ops->node_type_h ){ ffc2ca50: 81 21 00 14 lwz r9,20(r1) ffc2ca54: 80 09 00 10 lwz r0,16(r9) ffc2ca58: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ca5c: 40 be 00 30 bne+ cr7,ffc2ca8c rtems_filesystem_freenode( &loc ); ffc2ca60: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2ca64: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2ca68: 41 9e 00 10 beq- cr7,ffc2ca78 <== NOT EXECUTED ffc2ca6c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2ca70: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2ca74: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2ca78: 48 01 94 f5 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2ca7c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2ca80: 90 03 00 00 stw r0,0(r3) ffc2ca84: 3b 80 ff ff li r28,-1 ffc2ca88: 48 00 00 90 b ffc2cb18 } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ ffc2ca8c: 7f e3 fb 78 mr r3,r31 ffc2ca90: 7c 09 03 a6 mtctr r0 ffc2ca94: 4e 80 04 21 bctrl ffc2ca98: 81 21 00 14 lwz r9,20(r1) ffc2ca9c: 2f 83 00 04 cmpwi cr7,r3,4 ffc2caa0: 41 be 00 30 beq+ cr7,ffc2cad0 rtems_filesystem_freenode( &loc ); ffc2caa4: 2f 89 00 00 cmpwi cr7,r9,0 ffc2caa8: 41 9e 00 1c beq- cr7,ffc2cac4 ffc2caac: 80 09 00 1c lwz r0,28(r9) ffc2cab0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cab4: 41 9e 00 10 beq- cr7,ffc2cac4 ffc2cab8: 7f e3 fb 78 mr r3,r31 ffc2cabc: 7c 09 03 a6 mtctr r0 ffc2cac0: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EINVAL ); ffc2cac4: 48 01 94 a9 bl ffc45f6c <__errno> ffc2cac8: 38 00 00 16 li r0,22 ffc2cacc: 4b ff ff b4 b ffc2ca80 } if ( !loc.ops->readlink_h ){ ffc2cad0: 80 09 00 3c lwz r0,60(r9) ffc2cad4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cad8: 41 be ff 88 beq- cr7,ffc2ca60 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); ffc2cadc: 7f a4 eb 78 mr r4,r29 ffc2cae0: 7c 09 03 a6 mtctr r0 ffc2cae4: 7f c5 f3 78 mr r5,r30 ffc2cae8: 7f e3 fb 78 mr r3,r31 ffc2caec: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc2caf0: 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 ); ffc2caf4: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc2caf8: 2f 89 00 00 cmpwi cr7,r9,0 ffc2cafc: 41 9e 00 1c beq- cr7,ffc2cb18 ffc2cb00: 80 09 00 1c lwz r0,28(r9) ffc2cb04: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cb08: 41 9e 00 10 beq- cr7,ffc2cb18 ffc2cb0c: 7f e3 fb 78 mr r3,r31 ffc2cb10: 7c 09 03 a6 mtctr r0 ffc2cb14: 4e 80 04 21 bctrl return result; } ffc2cb18: 80 01 00 3c lwz r0,60(r1) ffc2cb1c: 7f 83 e3 78 mr r3,r28 ffc2cb20: 83 a1 00 2c lwz r29,44(r1) ffc2cb24: 7c 08 03 a6 mtlr r0 ffc2cb28: 83 81 00 28 lwz r28,40(r1) ffc2cb2c: 83 c1 00 30 lwz r30,48(r1) ffc2cb30: 83 e1 00 34 lwz r31,52(r1) ffc2cb34: 38 21 00 38 addi r1,r1,56 ffc2cb38: 4e 80 00 20 blr ffc067a4 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc067a4: 94 21 ff d8 stwu r1,-40(r1) ffc067a8: 7c 08 02 a6 mflr r0 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc067ac: 3d 20 00 00 lis r9,0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc067b0: 90 01 00 2c stw r0,44(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc067b4: 80 09 26 4c lwz r0,9804(r9) ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc067b8: 93 81 00 18 stw r28,24(r1) ffc067bc: 7c bc 2b 78 mr r28,r5 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc067c0: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc067c4: 93 21 00 0c stw r25,12(r1) ffc067c8: 93 41 00 10 stw r26,16(r1) ffc067cc: 93 61 00 14 stw r27,20(r1) ffc067d0: 93 a1 00 1c stw r29,28(r1) ffc067d4: 93 c1 00 20 stw r30,32(r1) ffc067d8: 93 e1 00 24 stw r31,36(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc067dc: 40 9c 00 20 bge- cr7,ffc067fc iop = rtems_libio_iop( fd ); ffc067e0: 3d 20 00 00 lis r9,0 ffc067e4: 83 a9 27 0c lwz r29,9996(r9) ffc067e8: 1c 63 00 48 mulli r3,r3,72 ffc067ec: 7f bd 1a 14 add r29,r29,r3 rtems_libio_check_is_open( iop ); ffc067f0: 80 1d 00 18 lwz r0,24(r29) ffc067f4: 70 09 01 00 andi. r9,r0,256 ffc067f8: 40 a2 00 10 bne+ ffc06808 ffc067fc: 48 00 c9 dd bl ffc131d8 <__errno> <== NOT EXECUTED ffc06800: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc06804: 48 00 00 84 b ffc06888 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc06808: 70 09 00 02 andi. r9,r0,2 ffc0680c: 41 82 00 74 beq- ffc06880 /* * Argument validation on IO vector */ if ( !iov ) ffc06810: 2f 84 00 00 cmpwi cr7,r4,0 ffc06814: 41 9e 00 6c beq- cr7,ffc06880 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc06818: 2f 85 00 00 cmpwi cr7,r5,0 ffc0681c: 40 9d 00 64 ble- cr7,ffc06880 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc06820: 2f 85 04 00 cmpwi cr7,r5,1024 ffc06824: 41 9d 00 5c bgt- cr7,ffc06880 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) ffc06828: 81 3d 00 40 lwz r9,64(r29) ffc0682c: 80 09 00 08 lwz r0,8(r9) ffc06830: 2f 80 00 00 cmpwi cr7,r0,0 ffc06834: 40 be 00 10 bne+ cr7,ffc06844 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06838: 48 00 c9 a1 bl ffc131d8 <__errno> <== NOT EXECUTED ffc0683c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06840: 48 00 00 48 b ffc06888 <== NOT EXECUTED ffc06844: 7c a9 03 a6 mtctr r5 ffc06848: 7c 9e 23 78 mr r30,r4 ffc0684c: 7c 89 23 78 mr r9,r4 ffc06850: 38 00 00 00 li r0,0 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) ffc06854: 81 69 00 00 lwz r11,0(r9) ffc06858: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0685c: 41 9e 00 24 beq- cr7,ffc06880 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06860: 81 49 00 04 lwz r10,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++ ) { ffc06864: 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 ) ffc06868: 2f 0a 00 00 cmpwi cr6,r10,0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; ffc0686c: 7d 60 52 14 add r11,r0,r10 if ( total < old ) ffc06870: 7f 8b 00 00 cmpw cr7,r11,r0 * 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++ ) { ffc06874: 7d 60 5b 78 mr r0,r11 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06878: 41 9a 00 08 beq- cr6,ffc06880 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) ffc0687c: 40 bc 00 14 bge+ cr7,ffc06890 rtems_set_errno_and_return_minus_one( EINVAL ); ffc06880: 48 00 c9 59 bl ffc131d8 <__errno> ffc06884: 38 00 00 16 li r0,22 ffc06888: 90 03 00 00 stw r0,0(r3) ffc0688c: 48 00 00 3c b ffc068c8 * 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++ ) { ffc06890: 42 00 ff c4 bdnz+ ffc06854 ffc06894: 3b 60 00 00 li r27,0 ffc06898: 3b e0 00 00 li r31,0 /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc0689c: 81 3d 00 40 lwz r9,64(r29) ffc068a0: 7f a3 eb 78 mr r3,r29 ffc068a4: 80 9e 00 00 lwz r4,0(r30) } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc068a8: 3b 7b 00 01 addi r27,r27,1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc068ac: 80 09 00 08 lwz r0,8(r9) ffc068b0: 80 be 00 04 lwz r5,4(r30) ffc068b4: 7c 09 03 a6 mtctr r0 ffc068b8: 4e 80 04 21 bctrl } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc068bc: 7f 9b e0 00 cmpw cr7,r27,r28 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) ffc068c0: 2c 03 00 00 cmpwi r3,0 ffc068c4: 40 a0 00 0c bge+ ffc068d0 ffc068c8: 3b e0 ff ff li r31,-1 ffc068cc: 48 00 00 40 b ffc0690c return -1; if ( bytes > 0 ) { ffc068d0: 41 82 00 28 beq- ffc068f8 iop->offset += bytes; ffc068d4: 81 7d 00 10 lwz r11,16(r29) <== NOT EXECUTED ffc068d8: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED ffc068dc: 81 9d 00 14 lwz r12,20(r29) <== NOT EXECUTED ffc068e0: 7c 79 fe 70 srawi r25,r3,31 <== NOT EXECUTED total += bytes; ffc068e4: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc068e8: 7d 4c d0 14 addc r10,r12,r26 <== NOT EXECUTED ffc068ec: 7d 2b c9 14 adde r9,r11,r25 <== NOT EXECUTED ffc068f0: 91 3d 00 10 stw r9,16(r29) <== NOT EXECUTED ffc068f4: 91 5d 00 14 stw r10,20(r29) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) ffc068f8: 80 1e 00 04 lwz r0,4(r30) } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc068fc: 3b de 00 08 addi r30,r30,8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) ffc06900: 7f 03 00 00 cmpw cr6,r3,r0 ffc06904: 40 9a 00 08 bne- cr6,ffc0690c } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06908: 41 9c ff 94 blt+ cr7,ffc0689c <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } ffc0690c: 80 01 00 2c lwz r0,44(r1) ffc06910: 7f e3 fb 78 mr r3,r31 ffc06914: 83 21 00 0c lwz r25,12(r1) ffc06918: 7c 08 03 a6 mtlr r0 ffc0691c: 83 41 00 10 lwz r26,16(r1) ffc06920: 83 61 00 14 lwz r27,20(r1) ffc06924: 83 81 00 18 lwz r28,24(r1) ffc06928: 83 a1 00 1c lwz r29,28(r1) ffc0692c: 83 c1 00 20 lwz r30,32(r1) ffc06930: 83 e1 00 24 lwz r31,36(r1) ffc06934: 38 21 00 28 addi r1,r1,40 ffc06938: 4e 80 00 20 blr ffc1b4c4 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1b4c4: 94 21 ff d8 stwu r1,-40(r1) ffc1b4c8: 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())) { ffc1b4cc: 3d 20 00 00 lis r9,0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1b4d0: 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())) { ffc1b4d4: 80 09 27 90 lwz r0,10128(r9) { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1b4d8: 3d 20 00 00 lis r9,0 ffc1b4dc: 39 29 2a 68 addi r9,r9,10856 ffc1b4e0: 93 c1 00 20 stw r30,32(r1) /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { ffc1b4e4: 2f 80 00 03 cmpwi cr7,r0,3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1b4e8: 81 69 00 10 lwz r11,16(r9) ffc1b4ec: 7c 9e 23 78 mr r30,r4 ffc1b4f0: 93 e1 00 24 stw r31,36(r1) ffc1b4f4: 7c 7f 1b 78 mr r31,r3 ffc1b4f8: 39 6b 00 01 addi r11,r11,1 ffc1b4fc: 93 a1 00 1c stw r29,28(r1) ffc1b500: 91 69 00 10 stw r11,16(r9) /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { ffc1b504: 40 be 00 24 bne+ cr7,ffc1b528 if (_Thread_Dispatch_disable_level > 0) ffc1b508: 3d 20 00 00 lis r9,0 ffc1b50c: 80 09 27 2c lwz r0,10028(r9) ffc1b510: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b514: 40 be 00 d8 bne+ cr7,ffc1b5ec return (void *) 0; if (_ISR_Nest_level > 0) ffc1b518: 3d 20 00 00 lis r9,0 ffc1b51c: 80 09 27 54 lwz r0,10068(r9) ffc1b520: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b524: 40 9e 00 c8 bne- cr7,ffc1b5ec } /* * Continue with realloc(). */ if ( !ptr ) ffc1b528: 2f 9f 00 00 cmpwi cr7,r31,0 ffc1b52c: 40 be 00 14 bne+ cr7,ffc1b540 return malloc( size ); ffc1b530: 7f c3 f3 78 mr r3,r30 ffc1b534: 4b fe 90 75 bl ffc045a8 ffc1b538: 7c 7f 1b 78 mr r31,r3 ffc1b53c: 48 00 00 b4 b ffc1b5f0 if ( !size ) { ffc1b540: 2f 9e 00 00 cmpwi cr7,r30,0 ffc1b544: 40 be 00 10 bne+ cr7,ffc1b554 free( ptr ); ffc1b548: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1b54c: 4b fe 8c f9 bl ffc04244 <== NOT EXECUTED ffc1b550: 48 00 00 9c b ffc1b5ec <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { ffc1b554: 3f a0 00 00 lis r29,0 ffc1b558: 80 7d 26 5c lwz r3,9820(r29) ffc1b55c: 7f e4 fb 78 mr r4,r31 ffc1b560: 38 a1 00 08 addi r5,r1,8 ffc1b564: 48 00 01 89 bl ffc1b6ec <_Protected_heap_Get_block_size> ffc1b568: 2f 83 00 00 cmpwi cr7,r3,0 ffc1b56c: 40 be 00 14 bne+ cr7,ffc1b580 errno = EINVAL; ffc1b570: 4b ff 50 3d bl ffc105ac <__errno> ffc1b574: 38 00 00 16 li r0,22 ffc1b578: 90 03 00 00 stw r0,0(r3) ffc1b57c: 48 00 00 70 b ffc1b5ec #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 ) ) { ffc1b580: 80 7d 26 5c lwz r3,9820(r29) ffc1b584: 7f e4 fb 78 mr r4,r31 ffc1b588: 7f c5 f3 78 mr r5,r30 ffc1b58c: 48 00 01 c5 bl ffc1b750 <_Protected_heap_Resize_block> ffc1b590: 2f 83 00 00 cmpwi cr7,r3,0 ffc1b594: 40 be 00 5c bne+ cr7,ffc1b5f0 * 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 ); ffc1b598: 7f c3 f3 78 mr r3,r30 ffc1b59c: 4b fe 90 0d bl ffc045a8 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc1b5a0: 3d 20 00 00 lis r9,0 if ( !new_area ) { ffc1b5a4: 7c 7d 1b 79 mr. r29,r3 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc1b5a8: 39 29 2a 68 addi r9,r9,10856 ffc1b5ac: 81 69 00 04 lwz r11,4(r9) ffc1b5b0: 38 0b ff ff addi r0,r11,-1 ffc1b5b4: 90 09 00 04 stw r0,4(r9) if ( !new_area ) { ffc1b5b8: 41 82 00 34 beq- ffc1b5ec return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); ffc1b5bc: 80 01 00 08 lwz r0,8(r1) ffc1b5c0: 7f c5 f3 78 mr r5,r30 ffc1b5c4: 7f 9e 00 40 cmplw cr7,r30,r0 ffc1b5c8: 40 9d 00 08 ble- cr7,ffc1b5d0 ffc1b5cc: 7c 05 03 78 mr r5,r0 ffc1b5d0: 7f e4 fb 78 mr r4,r31 ffc1b5d4: 7f a3 eb 78 mr r3,r29 ffc1b5d8: 4b ff 5b bd bl ffc11194 free( ptr ); ffc1b5dc: 7f e3 fb 78 mr r3,r31 ffc1b5e0: 4b fe 8c 65 bl ffc04244 ffc1b5e4: 7f bf eb 78 mr r31,r29 return new_area; ffc1b5e8: 48 00 00 08 b ffc1b5f0 ffc1b5ec: 3b e0 00 00 li r31,0 } ffc1b5f0: 80 01 00 2c lwz r0,44(r1) ffc1b5f4: 7f e3 fb 78 mr r3,r31 ffc1b5f8: 83 a1 00 1c lwz r29,28(r1) ffc1b5fc: 7c 08 03 a6 mtlr r0 ffc1b600: 83 c1 00 20 lwz r30,32(r1) ffc1b604: 83 e1 00 24 lwz r31,36(r1) ffc1b608: 38 21 00 28 addi r1,r1,40 ffc1b60c: 4e 80 00 20 blr ffc09e54 : #include int rmdir( const char *pathname ) { ffc09e54: 94 21 ff b8 stwu r1,-72(r1) ffc09e58: 7c 08 02 a6 mflr r0 ffc09e5c: 93 a1 00 3c stw r29,60(r1) ffc09e60: 93 c1 00 40 stw r30,64(r1) ffc09e64: 7c 7e 1b 78 mr r30,r3 ffc09e68: 90 01 00 4c stw r0,76(r1) ffc09e6c: 93 e1 00 44 stw r31,68(r1) /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); ffc09e70: 4b ff e5 41 bl ffc083b0 if ( parentpathlen == 0 ) ffc09e74: 7c 7d 1b 79 mr. r29,r3 ffc09e78: 40 82 00 8c bne- ffc09f04 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); ffc09e7c: 88 1e 00 00 lbz r0,0(r30) ffc09e80: 2f 80 00 2f cmpwi cr7,r0,47 ffc09e84: 41 9e 00 14 beq- cr7,ffc09e98 ffc09e88: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc09e8c: 41 9e 00 0c beq- cr7,ffc09e98 <== NOT EXECUTED ffc09e90: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09e94: 40 9e 00 38 bne- cr7,ffc09ecc <== NOT EXECUTED ffc09e98: 3d 20 00 00 lis r9,0 ffc09e9c: 81 29 34 ec lwz r9,13548(r9) ffc09ea0: 3b e0 00 00 li r31,0 ffc09ea4: 80 09 00 24 lwz r0,36(r9) ffc09ea8: 81 09 00 18 lwz r8,24(r9) ffc09eac: 81 49 00 1c lwz r10,28(r9) ffc09eb0: 81 69 00 20 lwz r11,32(r9) ffc09eb4: 91 01 00 08 stw r8,8(r1) ffc09eb8: 91 41 00 0c stw r10,12(r1) ffc09ebc: 91 61 00 10 stw r11,16(r1) ffc09ec0: 90 01 00 14 stw r0,20(r1) ffc09ec4: 80 09 00 28 lwz r0,40(r9) ffc09ec8: 48 00 00 34 b ffc09efc ffc09ecc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc09ed0: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED ffc09ed4: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc09ed8: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc09edc: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc09ee0: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc09ee4: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc09ee8: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc09eec: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc09ef0: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc09ef4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc09ef8: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc09efc: 90 01 00 18 stw r0,24(r1) ffc09f00: 48 00 00 28 b ffc09f28 else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, ffc09f04: 7f c3 f3 78 mr r3,r30 ffc09f08: 7f a4 eb 78 mr r4,r29 ffc09f0c: 38 a0 00 02 li r5,2 ffc09f10: 38 c1 00 08 addi r6,r1,8 ffc09f14: 38 e0 00 00 li r7,0 ffc09f18: 4b ff e6 11 bl ffc08528 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc09f1c: 2f 83 00 00 cmpwi cr7,r3,0 ffc09f20: 40 9e 01 fc bne- cr7,ffc0a11c ffc09f24: 3b e0 00 01 li r31,1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc09f28: 80 01 00 08 lwz r0,8(r1) name = pathname + parentpathlen; ffc09f2c: 7f be ea 14 add r29,r30,r29 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc09f30: 7f a3 eb 78 mr r3,r29 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc09f34: 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 ), ffc09f38: 3b c1 00 1c addi r30,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc09f3c: 80 01 00 0c lwz r0,12(r1) ffc09f40: 90 01 00 20 stw r0,32(r1) ffc09f44: 80 01 00 10 lwz r0,16(r1) ffc09f48: 90 01 00 24 stw r0,36(r1) ffc09f4c: 80 01 00 14 lwz r0,20(r1) ffc09f50: 90 01 00 28 stw r0,40(r1) ffc09f54: 80 01 00 18 lwz r0,24(r1) ffc09f58: 90 01 00 2c stw r0,44(r1) name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc09f5c: 48 04 3d 7d bl ffc4dcd8 ffc09f60: 7c 64 1b 78 mr r4,r3 ffc09f64: 7f a3 eb 78 mr r3,r29 ffc09f68: 4b ff e4 0d bl ffc08374 ffc09f6c: 7f bd 1a 14 add r29,r29,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc09f70: 7f a3 eb 78 mr r3,r29 ffc09f74: 48 04 3d 65 bl ffc4dcd8 ffc09f78: 38 a0 00 00 li r5,0 ffc09f7c: 7c 64 1b 78 mr r4,r3 ffc09f80: 7f c6 f3 78 mr r6,r30 ffc09f84: 7f a3 eb 78 mr r3,r29 ffc09f88: 38 e0 00 00 li r7,0 ffc09f8c: 4b ff e4 89 bl ffc08414 0, &loc, false ); if ( result != 0 ) { ffc09f90: 2f 83 00 00 cmpwi cr7,r3,0 ffc09f94: 41 be 00 30 beq+ cr7,ffc09fc4 if ( free_parentloc ) ffc09f98: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09f9c: 41 be 01 80 beq+ cr7,ffc0a11c rtems_filesystem_freenode( &parentloc ); ffc09fa0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc09fa4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc09fa8: 41 be 01 74 beq+ cr7,ffc0a11c <== NOT EXECUTED ffc09fac: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc09fb0: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc09fb4: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc09fb8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09fbc: 41 be 01 60 beq+ cr7,ffc0a11c <== NOT EXECUTED ffc09fc0: 48 00 01 50 b ffc0a110 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ ffc09fc4: 81 21 00 28 lwz r9,40(r1) ffc09fc8: 80 09 00 10 lwz r0,16(r9) ffc09fcc: 2f 80 00 00 cmpwi cr7,r0,0 ffc09fd0: 41 9e 00 90 beq- cr7,ffc0a060 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 ){ ffc09fd4: 7f c3 f3 78 mr r3,r30 ffc09fd8: 7c 09 03 a6 mtctr r0 ffc09fdc: 4e 80 04 21 bctrl ffc09fe0: 2f 83 00 01 cmpwi cr7,r3,1 ffc09fe4: 41 be 00 60 beq+ cr7,ffc0a044 rtems_filesystem_freenode( &loc ); ffc09fe8: 81 21 00 28 lwz r9,40(r1) ffc09fec: 2f 89 00 00 cmpwi cr7,r9,0 ffc09ff0: 41 9e 00 1c beq- cr7,ffc0a00c ffc09ff4: 80 09 00 1c lwz r0,28(r9) ffc09ff8: 2f 80 00 00 cmpwi cr7,r0,0 ffc09ffc: 41 9e 00 10 beq- cr7,ffc0a00c ffc0a000: 7f c3 f3 78 mr r3,r30 ffc0a004: 7c 09 03 a6 mtctr r0 ffc0a008: 4e 80 04 21 bctrl if ( free_parentloc ) ffc0a00c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0a010: 41 9e 00 28 beq- cr7,ffc0a038 rtems_filesystem_freenode( &parentloc ); ffc0a014: 81 21 00 14 lwz r9,20(r1) ffc0a018: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a01c: 41 9e 00 1c beq- cr7,ffc0a038 ffc0a020: 80 09 00 1c lwz r0,28(r9) ffc0a024: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a028: 41 9e 00 10 beq- cr7,ffc0a038 ffc0a02c: 38 61 00 08 addi r3,r1,8 ffc0a030: 7c 09 03 a6 mtctr r0 ffc0a034: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0a038: 48 03 bf 35 bl ffc45f6c <__errno> ffc0a03c: 38 00 00 14 li r0,20 ffc0a040: 48 00 00 6c b ffc0a0ac /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ ffc0a044: 81 21 00 24 lwz r9,36(r1) ffc0a048: 80 09 00 34 lwz r0,52(r9) ffc0a04c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a050: 40 be 00 64 bne+ cr7,ffc0a0b4 rtems_filesystem_freenode( &loc ); ffc0a054: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc0a058: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0a05c: 41 9e 00 1c beq- cr7,ffc0a078 <== NOT EXECUTED ffc0a060: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0a064: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0a068: 41 9e 00 10 beq- cr7,ffc0a078 <== NOT EXECUTED ffc0a06c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a070: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0a074: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc0a078: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc0a07c: 41 9e 00 28 beq- cr7,ffc0a0a4 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc0a080: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc0a084: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0a088: 41 9e 00 1c beq- cr7,ffc0a0a4 <== NOT EXECUTED ffc0a08c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0a090: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0a094: 41 9e 00 10 beq- cr7,ffc0a0a4 <== NOT EXECUTED ffc0a098: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0a09c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0a0a0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0a0a4: 48 03 be c9 bl ffc45f6c <__errno> <== NOT EXECUTED ffc0a0a8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0a0ac: 90 03 00 00 stw r0,0(r3) ffc0a0b0: 48 00 00 6c b ffc0a11c } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); ffc0a0b4: 38 61 00 08 addi r3,r1,8 ffc0a0b8: 7c 09 03 a6 mtctr r0 ffc0a0bc: 7f c4 f3 78 mr r4,r30 ffc0a0c0: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc0a0c4: 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 ); ffc0a0c8: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc0a0cc: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a0d0: 41 9e 00 1c beq- cr7,ffc0a0ec ffc0a0d4: 80 09 00 1c lwz r0,28(r9) ffc0a0d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a0dc: 41 9e 00 10 beq- cr7,ffc0a0ec ffc0a0e0: 7f c3 f3 78 mr r3,r30 ffc0a0e4: 7c 09 03 a6 mtctr r0 ffc0a0e8: 4e 80 04 21 bctrl if ( free_parentloc ) ffc0a0ec: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0a0f0: 41 9e 00 30 beq- cr7,ffc0a120 rtems_filesystem_freenode( &parentloc ); ffc0a0f4: 81 21 00 14 lwz r9,20(r1) ffc0a0f8: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a0fc: 41 9e 00 24 beq- cr7,ffc0a120 ffc0a100: 80 09 00 1c lwz r0,28(r9) ffc0a104: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a108: 41 9e 00 18 beq- cr7,ffc0a120 ffc0a10c: 38 61 00 08 addi r3,r1,8 ffc0a110: 7c 09 03 a6 mtctr r0 ffc0a114: 4e 80 04 21 bctrl ffc0a118: 48 00 00 08 b ffc0a120 ffc0a11c: 3b a0 ff ff li r29,-1 return result; } ffc0a120: 80 01 00 4c lwz r0,76(r1) ffc0a124: 7f a3 eb 78 mr r3,r29 ffc0a128: 83 c1 00 40 lwz r30,64(r1) ffc0a12c: 7c 08 03 a6 mtlr r0 ffc0a130: 83 a1 00 3c lwz r29,60(r1) ffc0a134: 83 e1 00 44 lwz r31,68(r1) ffc0a138: 38 21 00 48 addi r1,r1,72 ffc0a13c: 4e 80 00 20 blr ffc183e8 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { ffc183e8: 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; } ffc183ec: 38 63 22 0c addi r3,r3,8716 <== NOT EXECUTED ffc183f0: 4e 80 00 20 blr <== NOT EXECUTED ffc14ce0 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc14ce0: 94 21 ff f0 stwu r1,-16(r1) ffc14ce4: 7c 08 02 a6 mflr r0 ffc14ce8: 93 e1 00 0c stw r31,12(r1) ffc14cec: 7c 9f 23 78 mr r31,r4 ffc14cf0: 90 01 00 14 stw r0,20(r1) const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc14cf4: 48 00 00 31 bl ffc14d24 if (nap) ffc14cf8: 2c 03 00 00 cmpwi r3,0 ffc14cfc: 41 82 00 0c beq- ffc14d08 return nap->name; ffc14d00: 80 63 00 00 lwz r3,0(r3) ffc14d04: 48 00 00 0c b ffc14d10 return rtems_assoc_name_bad(local_value); ffc14d08: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc14d0c: 48 00 36 dd bl ffc183e8 <== NOT EXECUTED } ffc14d10: 80 01 00 14 lwz r0,20(r1) ffc14d14: 83 e1 00 0c lwz r31,12(r1) ffc14d18: 38 21 00 10 addi r1,r1,16 ffc14d1c: 7c 08 03 a6 mtlr r0 ffc14d20: 4e 80 00 20 blr ffc101d4 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc101d4: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc101d8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc101dc: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc101e0: 48 00 03 49 bl ffc10528 <== NOT EXECUTED if (nap) ffc101e4: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc101e8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc101ec: 41 82 00 08 beq- ffc101f4 <== NOT EXECUTED return nap->remote_value; ffc101f0: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED return 0; } ffc101f4: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc101f8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc101fc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10200: 4e 80 00 20 blr <== NOT EXECUTED ffc03f3c : size_t length ) { const char *p; if ( !name ) ffc03f3c: 2f 83 00 00 cmpwi cr7,r3,0 const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { ffc03f40: 94 21 ff f0 stwu r1,-16(r1) ffc03f44: 7c 08 02 a6 mflr r0 ffc03f48: 93 c1 00 08 stw r30,8(r1) ffc03f4c: 7c be 2b 78 mr r30,r5 ffc03f50: 93 e1 00 0c stw r31,12(r1) ffc03f54: 7c 9f 23 78 mr r31,r4 ffc03f58: 90 01 00 14 stw r0,20(r1) const char *p; if ( !name ) ffc03f5c: 41 be 00 7c beq+ cr7,ffc03fd8 return NULL; if ( !value ) ffc03f60: 2f 84 00 00 cmpwi cr7,r4,0 ffc03f64: 41 be 00 78 beq+ cr7,ffc03fdc return NULL; if ( !length ) ffc03f68: 2f 85 00 00 cmpwi cr7,r5,0 ffc03f6c: 41 be 00 6c beq+ cr7,ffc03fd8 return NULL; value[0] = '\0'; ffc03f70: 38 00 00 00 li r0,0 ffc03f74: 98 04 00 00 stb r0,0(r4) p = rtems_bsp_cmdline_get_param_raw( name ); ffc03f78: 48 00 00 81 bl ffc03ff8 if ( !p ) ffc03f7c: 2c 03 00 00 cmpwi r3,0 ffc03f80: 41 82 00 58 beq- ffc03fd8 if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) break; value[i++] = *p++; value[i] = '\0'; ffc03f84: 7f c9 03 a6 mtctr r30 value[0] = '\0'; p = rtems_bsp_cmdline_get_param_raw( name ); if ( !p ) ffc03f88: 39 60 00 00 li r11,0 ffc03f8c: 39 20 00 00 li r9,0 if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) break; value[i++] = *p++; value[i] = '\0'; ffc03f90: 39 40 00 00 li r10,0 ffc03f94: 48 00 00 28 b ffc03fbc int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i quotes++; ffc03f9c: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc03fa0: 48 00 00 10 b ffc03fb0 <== NOT EXECUTED } else if ( ((quotes % 2) == 0) && *p == ' ' ) ffc03fa4: 2f 80 00 20 cmpwi cr7,r0,32 ffc03fa8: 40 82 00 08 bne- ffc03fb0 ffc03fac: 41 9e 00 30 beq- cr7,ffc03fdc break; value[i++] = *p++; ffc03fb0: 7c 1f 49 ae stbx r0,r31,r9 ffc03fb4: 39 29 00 01 addi r9,r9,1 value[i] = '\0'; ffc03fb8: 7d 5f 49 ae stbx r10,r31,r9 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i ffc03fd0: 42 00 ff c8 bdnz+ ffc03f98 ffc03fd4: 48 00 00 08 b ffc03fdc <== NOT EXECUTED ffc03fd8: 3b e0 00 00 li r31,0 return NULL; copy_string( p, value, length ); return value; } ffc03fdc: 80 01 00 14 lwz r0,20(r1) ffc03fe0: 7f e3 fb 78 mr r3,r31 ffc03fe4: 83 c1 00 08 lwz r30,8(r1) ffc03fe8: 7c 08 03 a6 mtlr r0 ffc03fec: 83 e1 00 0c lwz r31,12(r1) ffc03ff0: 38 21 00 10 addi r1,r1,16 ffc03ff4: 4e 80 00 20 blr ffc04038 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { ffc04038: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc0403c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc04040: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc04044: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc04048: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc0404c: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc04050: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED ffc04054: 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 ); ffc04058: 4b ff fe e5 bl ffc03f3c <== NOT EXECUTED if ( !p ) ffc0405c: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc04060: 41 a2 00 74 beq+ ffc040d4 <== NOT EXECUTED return NULL; rhs = &p[strlen(name)]; ffc04064: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc04068: 48 00 d9 31 bl ffc11998 <== NOT EXECUTED if ( *rhs != '=' ) ffc0406c: 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)]; ffc04070: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED if ( *rhs != '=' ) ffc04074: 2f 80 00 3d cmpwi cr7,r0,61 <== NOT EXECUTED ffc04078: 40 be 00 5c bne+ cr7,ffc040d4 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) ffc0407c: 88 1d 00 01 lbz r0,1(r29) <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; ffc04080: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED if ( *rhs == '\"' ) rhs++; ffc04084: 68 09 00 22 xori r9,r0,34 <== NOT EXECUTED ffc04088: 21 29 00 00 subfic r9,r9,0 <== NOT EXECUTED ffc0408c: 7d 3d 01 94 addze r9,r29 <== NOT EXECUTED ffc04090: 7d 3d 4b 78 mr r29,r9 <== NOT EXECUTED ffc04094: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc04098: 48 00 00 0c b ffc040a4 <== NOT EXECUTED for ( d=value ; *rhs ; ) *d++ = *rhs++; ffc0409c: 98 09 00 00 stb r0,0(r9) <== NOT EXECUTED ffc040a0: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) ffc040a4: 88 1d 00 00 lbz r0,0(r29) <== NOT EXECUTED *d++ = *rhs++; ffc040a8: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) ffc040ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc040b0: 40 9e ff ec bne+ cr7,ffc0409c <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) ffc040b4: 89 69 ff ff lbz r11,-1(r9) <== NOT EXECUTED ffc040b8: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc040bc: 2f 8b 00 22 cmpwi cr7,r11,34 <== NOT EXECUTED ffc040c0: 40 be 00 08 bne+ cr7,ffc040c8 <== NOT EXECUTED ffc040c4: 7c 09 03 78 mr r9,r0 <== NOT EXECUTED d--; *d = '\0'; ffc040c8: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc040cc: 98 09 00 00 stb r0,0(r9) <== NOT EXECUTED return value; ffc040d0: 48 00 00 08 b ffc040d8 <== NOT EXECUTED ffc040d4: 3b e0 00 00 li r31,0 <== NOT EXECUTED } ffc040d8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc040dc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc040e0: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc040e4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc040e8: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc040ec: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc040f0: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc040f4: 4e 80 00 20 blr <== NOT EXECUTED ffc1018c : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc1018c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc10190: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc10194: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc10198: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc1019c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc101a0: 38 63 cc 50 addi r3,r3,-13232 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc101a4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc101a8: 48 00 00 2d bl ffc101d4 <== NOT EXECUTED ffc101ac: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc101b0: 41 a2 00 0c beq+ ffc101bc <== NOT EXECUTED { errno = rc; ffc101b4: 48 00 03 f9 bl ffc105ac <__errno> <== NOT EXECUTED ffc101b8: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED return -1; } return -1; } ffc101bc: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc101c0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc101c4: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc101c8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc101cc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc101d0: 4e 80 00 20 blr <== NOT EXECUTED ffc0a458 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { ffc0a458: 94 21 ff 90 stwu r1,-112(r1) <== NOT EXECUTED ffc0a45c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a460: 90 a1 00 18 stw r5,24(r1) <== NOT EXECUTED ffc0a464: 90 01 00 74 stw r0,116(r1) <== NOT EXECUTED ffc0a468: 90 c1 00 1c stw r6,28(r1) <== NOT EXECUTED ffc0a46c: 90 e1 00 20 stw r7,32(r1) <== NOT EXECUTED ffc0a470: 91 01 00 24 stw r8,36(r1) <== NOT EXECUTED ffc0a474: 91 21 00 28 stw r9,40(r1) <== NOT EXECUTED ffc0a478: 91 41 00 2c stw r10,44(r1) <== NOT EXECUTED ffc0a47c: 40 86 00 24 bne- cr1,ffc0a4a0 <== NOT EXECUTED ffc0a480: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0a484: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0a488: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0a48c: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0a490: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0a494: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0a498: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0a49c: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0a4a0: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc0a4a4: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0a4a8: 38 00 00 00 li r0,0 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0a4ac: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0a4b0: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0a4b4: 38 01 00 78 addi r0,r1,120 <== NOT EXECUTED ffc0a4b8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc0a4bc: 38 01 00 10 addi r0,r1,16 <== NOT EXECUTED ffc0a4c0: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0a4c4: 4b ff fd 0d bl ffc0a1d0 <== NOT EXECUTED va_end(arglist); return chars_written; } ffc0a4c8: 80 01 00 74 lwz r0,116(r1) <== NOT EXECUTED ffc0a4cc: 38 21 00 70 addi r1,r1,112 <== NOT EXECUTED ffc0a4d0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a4d4: 4e 80 00 20 blr <== NOT EXECUTED ffc04160 : /* * Verify Input parameters. */ if ( !pathname ) ffc04160: 2c 03 00 00 cmpwi r3,0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { ffc04164: 94 21 ff f8 stwu r1,-8(r1) ffc04168: 7c 08 02 a6 mflr r0 ffc0416c: 90 01 00 0c stw r0,12(r1) /* * Verify Input parameters. */ if ( !pathname ) ffc04170: 40 a2 00 10 bne+ ffc04180 rtems_set_errno_and_return_minus_one( EFAULT ); ffc04174: 48 00 c4 39 bl ffc105ac <__errno> ffc04178: 38 00 00 0e li r0,14 ffc0417c: 48 00 00 14 b ffc04190 if ( !pathloc ) ffc04180: 2f 86 00 00 cmpwi cr7,r6,0 ffc04184: 40 be 00 24 bne+ cr7,ffc041a8 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc04188: 48 00 c4 25 bl ffc105ac <__errno> <== NOT EXECUTED ffc0418c: 38 00 00 05 li r0,5 <== NOT EXECUTED ffc04190: 90 03 00 00 stw r0,0(r3) return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } ffc04194: 38 60 ff ff li r3,-1 ffc04198: 80 01 00 0c lwz r0,12(r1) ffc0419c: 38 21 00 08 addi r1,r1,8 ffc041a0: 7c 08 03 a6 mtlr r0 ffc041a4: 4e 80 00 20 blr /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc041a8: 88 03 00 00 lbz r0,0(r3) ffc041ac: 2f 80 00 2f cmpwi cr7,r0,47 ffc041b0: 41 9e 00 14 beq- cr7,ffc041c4 ffc041b4: 2f 80 00 5c cmpwi cr7,r0,92 ffc041b8: 41 9e 00 0c beq- cr7,ffc041c4 ffc041bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc041c0: 40 9e 00 38 bne- cr7,ffc041f8 ffc041c4: 3d 20 00 00 lis r9,0 ffc041c8: 81 29 26 9c lwz r9,9884(r9) ffc041cc: 38 00 00 01 li r0,1 ffc041d0: 81 89 00 18 lwz r12,24(r9) ffc041d4: 81 09 00 1c lwz r8,28(r9) ffc041d8: 81 49 00 20 lwz r10,32(r9) ffc041dc: 81 69 00 24 lwz r11,36(r9) ffc041e0: 91 86 00 00 stw r12,0(r6) ffc041e4: 91 06 00 04 stw r8,4(r6) ffc041e8: 91 46 00 08 stw r10,8(r6) ffc041ec: 91 66 00 0c stw r11,12(r6) ffc041f0: 81 29 00 28 lwz r9,40(r9) ffc041f4: 48 00 00 34 b ffc04228 ffc041f8: 3d 20 00 00 lis r9,0 ffc041fc: 81 29 26 9c lwz r9,9884(r9) ffc04200: 38 00 00 00 li r0,0 ffc04204: 81 89 00 04 lwz r12,4(r9) ffc04208: 81 09 00 08 lwz r8,8(r9) ffc0420c: 81 49 00 0c lwz r10,12(r9) ffc04210: 81 69 00 10 lwz r11,16(r9) ffc04214: 91 86 00 00 stw r12,0(r6) ffc04218: 91 06 00 04 stw r8,4(r6) ffc0421c: 91 46 00 08 stw r10,8(r6) ffc04220: 91 66 00 0c stw r11,12(r6) ffc04224: 81 29 00 14 lwz r9,20(r9) /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], ffc04228: 7c 80 20 50 subf r4,r0,r4 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc0422c: 91 26 00 10 stw r9,16(r6) /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], ffc04230: 7c 63 02 14 add r3,r3,r0 pathnamelen - i, flags, pathloc, follow_link ); } ffc04234: 80 01 00 0c lwz r0,12(r1) ffc04238: 38 21 00 08 addi r1,r1,8 ffc0423c: 7c 08 03 a6 mtlr r0 rtems_filesystem_get_start_loc( pathname, &i, pathloc ); /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], ffc04240: 4b ff fe 0c b ffc0404c ffc0404c : /* * Verify Input parameters. */ if ( !pathname ) ffc0404c: 2f 83 00 00 cmpwi cr7,r3,0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { ffc04050: 94 21 ff e8 stwu r1,-24(r1) ffc04054: 7c 08 02 a6 mflr r0 ffc04058: 93 a1 00 0c stw r29,12(r1) ffc0405c: 7c fd 3b 78 mr r29,r7 ffc04060: 93 c1 00 10 stw r30,16(r1) ffc04064: 7c be 2b 78 mr r30,r5 ffc04068: 93 e1 00 14 stw r31,20(r1) ffc0406c: 7c df 33 78 mr r31,r6 ffc04070: 90 01 00 1c stw r0,28(r1) ffc04074: 93 81 00 08 stw r28,8(r1) /* * Verify Input parameters. */ if ( !pathname ) ffc04078: 40 be 00 10 bne+ cr7,ffc04088 rtems_set_errno_and_return_minus_one( EFAULT ); ffc0407c: 48 00 c5 31 bl ffc105ac <__errno> <== NOT EXECUTED ffc04080: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc04084: 48 00 00 14 b ffc04098 <== NOT EXECUTED if ( !pathloc ) ffc04088: 2f 86 00 00 cmpwi cr7,r6,0 ffc0408c: 40 be 00 18 bne+ cr7,ffc040a4 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc04090: 48 00 c5 1d bl ffc105ac <__errno> <== NOT EXECUTED ffc04094: 38 00 00 05 li r0,5 <== NOT EXECUTED ffc04098: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0409c: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc040a0: 48 00 00 9c b ffc0413c <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) ffc040a4: 81 26 00 0c lwz r9,12(r6) ffc040a8: 80 09 00 00 lwz r0,0(r9) ffc040ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc040b0: 41 9e 00 6c beq- cr7,ffc0411c rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); ffc040b4: 7c 09 03 a6 mtctr r0 ffc040b8: 4e 80 04 21 bctrl /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { ffc040bc: 7c 7c 1b 79 mr. r28,r3 ffc040c0: 40 82 00 7c bne- ffc0413c ffc040c4: 2f 9d 00 00 cmpwi cr7,r29,0 ffc040c8: 41 9e 00 74 beq- cr7,ffc0413c if ( !pathloc->ops->node_type_h ){ ffc040cc: 81 3f 00 0c lwz r9,12(r31) ffc040d0: 80 09 00 10 lwz r0,16(r9) ffc040d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc040d8: 41 9e 00 2c beq- cr7,ffc04104 rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); ffc040dc: 7f e3 fb 78 mr r3,r31 ffc040e0: 7c 09 03 a6 mtctr r0 ffc040e4: 4e 80 04 21 bctrl if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ffc040e8: 38 63 ff fd addi r3,r3,-3 ffc040ec: 2b 83 00 01 cmplwi cr7,r3,1 ffc040f0: 41 bd 00 4c bgt+ cr7,ffc0413c ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ ffc040f4: 81 3f 00 0c lwz r9,12(r31) ffc040f8: 80 09 00 34 lwz r0,52(r9) ffc040fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc04100: 40 be 00 28 bne+ cr7,ffc04128 rtems_filesystem_freenode( pathloc ); ffc04104: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc04108: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0410c: 41 9e 00 10 beq- cr7,ffc0411c <== NOT EXECUTED ffc04110: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04114: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04118: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0411c: 48 00 c4 91 bl ffc105ac <__errno> <== NOT EXECUTED ffc04120: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc04124: 4b ff ff 74 b ffc04098 <== NOT EXECUTED * pathloc will be passed up (and eventually released). * Hence, the (valid) originial node that we submit to * eval_link_h() should be released by the handler. */ result = (*pathloc->ops->eval_link_h)( pathloc, flags ); ffc04128: 7f e3 fb 78 mr r3,r31 ffc0412c: 7c 09 03 a6 mtctr r0 ffc04130: 7f c4 f3 78 mr r4,r30 ffc04134: 4e 80 04 21 bctrl ffc04138: 7c 7c 1b 78 mr r28,r3 } } return result; } ffc0413c: 80 01 00 1c lwz r0,28(r1) ffc04140: 7f 83 e3 78 mr r3,r28 ffc04144: 83 a1 00 0c lwz r29,12(r1) ffc04148: 7c 08 03 a6 mtlr r0 ffc0414c: 83 81 00 08 lwz r28,8(r1) ffc04150: 83 c1 00 10 lwz r30,16(r1) ffc04154: 83 e1 00 14 lwz r31,20(r1) ffc04158: 38 21 00 18 addi r1,r1,24 ffc0415c: 4e 80 00 20 blr ffc03e28 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { ffc03e28: 94 21 ff c8 stwu r1,-56(r1) ffc03e2c: 7c 08 02 a6 mflr r0 ffc03e30: 93 e1 00 34 stw r31,52(r1) /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; ffc03e34: 3f e0 00 00 lis r31,0 ffc03e38: 81 3f 26 9c lwz r9,9884(r31) * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { ffc03e3c: 90 01 00 3c stw r0,60(r1) /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; ffc03e40: 38 00 00 12 li r0,18 ffc03e44: 90 09 00 2c stw r0,44(r9) * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { ffc03e48: 93 a1 00 2c stw r29,44(r1) ffc03e4c: 93 c1 00 30 stw r30,48(r1) */ rtems_filesystem_umask = 022; init_fs_mount_table(); ffc03e50: 48 00 0a 51 bl ffc048a0 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) ffc03e54: 3d 20 00 00 lis r9,0 ffc03e58: 80 09 26 58 lwz r0,9816(r9) rtems_fatal_error_occurred( 0xABCD0001 ); ffc03e5c: 3c 60 ab cd lis r3,-21555 ffc03e60: 60 63 00 01 ori r3,r3,1 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) ffc03e64: 2f 80 00 00 cmpwi cr7,r0,0 ffc03e68: 41 9e 00 34 beq- cr7,ffc03e9c rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; ffc03e6c: 3d 20 00 00 lis r9,0 ffc03e70: 81 29 26 54 lwz r9,9812(r9) status = mount( ffc03e74: 38 61 00 08 addi r3,r1,8 ffc03e78: 80 e9 00 0c lwz r7,12(r9) ffc03e7c: 80 89 00 00 lwz r4,0(r9) ffc03e80: 80 a9 00 04 lwz r5,4(r9) ffc03e84: 80 c9 00 08 lwz r6,8(r9) ffc03e88: 48 00 0a 3d bl ffc048c4 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) ffc03e8c: 2f 83 ff ff cmpwi cr7,r3,-1 ffc03e90: 40 be 00 10 bne+ cr7,ffc03ea0 rtems_fatal_error_occurred( 0xABCD0002 ); ffc03e94: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc03e98: 60 63 00 02 ori r3,r3,2 <== NOT EXECUTED ffc03e9c: 48 00 47 35 bl ffc085d0 <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03ea0: 81 61 00 08 lwz r11,8(r1) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03ea4: 3f c0 ff c2 lis r30,-62 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; ffc03ea8: 81 3f 26 9c lwz r9,9884(r31) * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03eac: 3b de c8 22 addi r30,r30,-14302 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03eb0: 80 eb 00 1c lwz r7,28(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03eb4: 3b a1 00 0c addi r29,r1,12 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03eb8: 81 0b 00 20 lwz r8,32(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03ebc: 38 80 00 01 li r4,1 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03ec0: 81 4b 00 24 lwz r10,36(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03ec4: 38 a0 00 00 li r5,0 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03ec8: 80 0b 00 28 lwz r0,40(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03ecc: 7f a6 eb 78 mr r6,r29 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03ed0: 90 e9 00 18 stw r7,24(r9) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03ed4: 7f c3 f3 78 mr r3,r30 ffc03ed8: 38 e0 00 00 li r7,0 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03edc: 91 09 00 1c stw r8,28(r9) ffc03ee0: 91 49 00 20 stw r10,32(r9) ffc03ee4: 90 09 00 24 stw r0,36(r9) ffc03ee8: 80 0b 00 2c lwz r0,44(r11) &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; ffc03eec: 39 60 00 00 li r11,0 ffc03ef0: b1 69 00 30 sth r11,48(r9) * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03ef4: 90 09 00 28 stw r0,40(r9) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03ef8: 48 00 02 69 bl ffc04160 rtems_filesystem_root = loc; ffc03efc: 81 3f 26 9c lwz r9,9884(r31) ffc03f00: 81 41 00 10 lwz r10,16(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03f04: 7f a6 eb 78 mr r6,r29 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc03f08: 81 61 00 14 lwz r11,20(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03f0c: 38 80 00 01 li r4,1 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc03f10: 80 01 00 18 lwz r0,24(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03f14: 38 a0 00 00 li r5,0 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc03f18: 81 01 00 0c lwz r8,12(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03f1c: 38 e0 00 00 li r7,0 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc03f20: 91 49 00 1c stw r10,28(r9) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03f24: 7f c3 f3 78 mr r3,r30 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc03f28: 91 09 00 18 stw r8,24(r9) ffc03f2c: 91 69 00 20 stw r11,32(r9) ffc03f30: 90 09 00 24 stw r0,36(r9) ffc03f34: 80 01 00 1c lwz r0,28(r1) ffc03f38: 90 09 00 28 stw r0,40(r9) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03f3c: 48 00 02 25 bl ffc04160 rtems_filesystem_current = loc; ffc03f40: 80 01 00 18 lwz r0,24(r1) ffc03f44: 81 3f 26 9c lwz r9,9884(r31) * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); ffc03f48: 3c 60 ff c2 lis r3,-62 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; ffc03f4c: 81 41 00 10 lwz r10,16(r1) * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); ffc03f50: 38 63 c8 24 addi r3,r3,-14300 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; ffc03f54: 81 61 00 14 lwz r11,20(r1) * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); ffc03f58: 38 80 01 ff li r4,511 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; ffc03f5c: 81 01 00 0c lwz r8,12(r1) ffc03f60: 91 49 00 08 stw r10,8(r9) ffc03f64: 91 09 00 04 stw r8,4(r9) ffc03f68: 91 69 00 0c stw r11,12(r9) ffc03f6c: 90 09 00 10 stw r0,16(r9) ffc03f70: 80 01 00 1c lwz r0,28(r1) ffc03f74: 90 09 00 14 stw r0,20(r9) * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); ffc03f78: 48 00 07 59 bl ffc046d0 if ( status != 0 ) ffc03f7c: 2f 83 00 00 cmpwi cr7,r3,0 ffc03f80: 41 be 00 10 beq+ cr7,ffc03f90 rtems_fatal_error_occurred( 0xABCD0003 ); ffc03f84: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc03f88: 60 63 00 03 ori r3,r3,3 <== NOT EXECUTED ffc03f8c: 4b ff ff 10 b ffc03e9c <== NOT EXECUTED * it will be mounted onto is created. Moreover, if it is going to * use a device, then it is REALLY unfair to attempt this * before device drivers are initialized. So we return via a base * filesystem image and nothing auto-mounted at this point. */ } ffc03f90: 80 01 00 3c lwz r0,60(r1) ffc03f94: 83 a1 00 2c lwz r29,44(r1) ffc03f98: 7c 08 03 a6 mtlr r0 ffc03f9c: 83 c1 00 30 lwz r30,48(r1) ffc03fa0: 83 e1 00 34 lwz r31,52(r1) ffc03fa4: 38 21 00 38 addi r1,r1,56 ffc03fa8: 4e 80 00 20 blr ffc0c51c : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ ffc0c51c: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc0c520: 80 64 00 00 lwz r3,0(r4) <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } ffc0c524: 7c 03 1a 78 xor r3,r0,r3 <== NOT EXECUTED ffc0c528: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc0c52c: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED ffc0c530: 4e 80 00 20 blr <== NOT EXECUTED ffc03c4c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { ffc03c4c: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc03c50: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc03c54: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED ffc03c58: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc03c5c: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED ffc03c60: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc03c64: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc03c68: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED ffc03c6c: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED ffc03c70: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED IMFS_jnode_t *the_jnode; rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); ffc03c74: 48 00 dc 35 bl ffc118a8 <== NOT EXECUTED ffc03c78: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc03c7c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc03c80: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc03c84: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc03c88: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc03c8c: 38 e0 00 01 li r7,1 <== NOT EXECUTED ffc03c90: 48 00 04 d1 bl ffc04160 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { ffc03c94: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED IMFS_jnode_t *the_jnode; rtems_filesystem_location_info_t loc; int result; rtems_filesystem_node_types_t node_type; result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); ffc03c98: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED the_jnode = loc.node_access; ffc03c9c: 83 81 00 08 lwz r28,8(r1) <== NOT EXECUTED if ( !loc.ops->node_type_h ) { ffc03ca0: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc03ca4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03ca8: 40 9e 00 30 bne- cr7,ffc03cd8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc03cac: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03cb0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03cb4: 41 9e 00 10 beq- cr7,ffc03cc4 <== NOT EXECUTED ffc03cb8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03cbc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03cc0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc03cc4: 48 00 c8 e9 bl ffc105ac <__errno> <== NOT EXECUTED ffc03cc8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc03ccc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03cd0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc03cd4: 48 00 00 9c b ffc03d70 <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); ffc03cd8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03cdc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03ce0: 4e 80 04 21 bctrl <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { ffc03ce4: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc03ce8: 40 be 00 0c bne+ cr7,ffc03cf4 <== NOT EXECUTED ffc03cec: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED ffc03cf0: 41 9e 00 2c beq- cr7,ffc03d1c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc03cf4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc03cf8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc03cfc: 41 9e 00 68 beq- cr7,ffc03d64 <== NOT EXECUTED ffc03d00: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03d04: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03d08: 41 9e 00 5c beq- cr7,ffc03d64 <== NOT EXECUTED ffc03d0c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc03d10: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03d14: 4e 80 04 21 bctrl <== NOT EXECUTED ffc03d18: 48 00 00 4c b ffc03d64 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; ffc03d1c: 93 be 00 00 stw r29,0(r30) <== NOT EXECUTED device_info->device_name_length = strlen( name ); ffc03d20: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc03d24: 48 00 db 85 bl ffc118a8 <== NOT EXECUTED device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); ffc03d28: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); ffc03d2c: 90 7e 00 04 stw r3,4(r30) <== NOT EXECUTED device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); ffc03d30: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; ffc03d34: 80 1c 00 50 lwz r0,80(r28) <== NOT EXECUTED ffc03d38: 90 1e 00 08 stw r0,8(r30) <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; ffc03d3c: 80 1c 00 54 lwz r0,84(r28) <== NOT EXECUTED ffc03d40: 90 1e 00 0c stw r0,12(r30) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc03d44: 41 9e 00 28 beq- cr7,ffc03d6c <== NOT EXECUTED ffc03d48: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03d4c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03d50: 41 9e 00 1c beq- cr7,ffc03d6c <== NOT EXECUTED ffc03d54: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03d58: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03d5c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc03d60: 48 00 00 0c b ffc03d6c <== NOT EXECUTED ffc03d64: 38 60 00 0d li r3,13 <== NOT EXECUTED ffc03d68: 48 00 00 08 b ffc03d70 <== NOT EXECUTED ffc03d6c: 38 60 00 00 li r3,0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } ffc03d70: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc03d74: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc03d78: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03d7c: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc03d80: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc03d84: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc03d88: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc03d8c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc03d90: 4e 80 00 20 blr <== NOT EXECUTED ffc0a368 : 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 ) { ffc0a368: 94 21 ff f0 stwu r1,-16(r1) ffc0a36c: 7c 08 02 a6 mflr r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a370: 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 ) { ffc0a374: 90 01 00 14 stw r0,20(r1) rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a378: 80 09 27 74 lwz r0,10100(r9) rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; ffc0a37c: 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 ) { ffc0a380: 93 e1 00 0c stw r31,12(r1) ffc0a384: 7c 7f 1b 78 mr r31,r3 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a388: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a38c: 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; ffc0a390: 80 09 27 c0 lwz r0,10176(r9) if ( rtems_interrupt_is_in_progress() ) ffc0a394: 40 9e 01 40 bne- cr7,ffc0a4d4 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) ffc0a398: 2f 85 00 00 cmpwi cr7,r5,0 ffc0a39c: 41 9e 01 34 beq- cr7,ffc0a4d0 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) ffc0a3a0: 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; ffc0a3a4: 90 05 00 00 stw r0,0(r5) if ( driver_table == NULL ) ffc0a3a8: 41 9e 01 28 beq- cr7,ffc0a4d0 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0a3ac: 81 24 00 00 lwz r9,0(r4) ffc0a3b0: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a3b4: 40 be 01 34 bne+ cr7,ffc0a4e8 ffc0a3b8: 81 24 00 04 lwz r9,4(r4) ffc0a3bc: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a3c0: 40 be 01 28 bne+ cr7,ffc0a4e8 ffc0a3c4: 48 00 01 0c b ffc0a4d0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a3c8: 3d 20 00 00 lis r9,0 ffc0a3cc: 81 69 27 4c lwz r11,10060(r9) ffc0a3d0: 38 0b 00 01 addi r0,r11,1 ffc0a3d4: 90 09 27 4c stw r0,10060(r9) if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { ffc0a3d8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0a3dc: 3d 20 00 00 lis r9,0 ffc0a3e0: 40 9e 00 58 bne- cr7,ffc0a438 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; ffc0a3e4: 3d 60 00 00 lis r11,0 ffc0a3e8: 81 29 27 c4 lwz r9,10180(r9) ffc0a3ec: 81 6b 27 c0 lwz r11,10176(r11) ffc0a3f0: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a3f4: 38 0b 00 01 addi r0,r11,1 ffc0a3f8: 40 be 00 28 bne+ cr7,ffc0a420 ffc0a3fc: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0a400: 48 00 00 20 b ffc0a420 <== NOT EXECUTED static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0a404: 81 49 00 00 lwz r10,0(r9) ffc0a408: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0a40c: 40 be 00 ec bne+ cr7,ffc0a4f8 ffc0a410: 81 49 00 04 lwz r10,4(r9) ffc0a414: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0a418: 40 be 00 e0 bne+ cr7,ffc0a4f8 ffc0a41c: 48 00 00 0c b ffc0a428 rtems_device_major_number n = _IO_Number_of_drivers; rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { ffc0a420: 34 00 ff ff addic. r0,r0,-1 ffc0a424: 40 82 ff e0 bne+ ffc0a404 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) ffc0a428: 7f 9f 58 00 cmpw cr7,r31,r11 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; ffc0a42c: 93 e5 00 00 stw r31,0(r5) if ( m != n ) ffc0a430: 40 be 00 48 bne+ cr7,ffc0a478 ffc0a434: 48 00 00 d0 b ffc0a504 _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; ffc0a438: 1c 1f 00 18 mulli r0,r31,24 ffc0a43c: 81 29 27 c4 lwz r9,10180(r9) static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0a440: 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; ffc0a444: 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; ffc0a448: 38 00 00 00 li r0,0 ffc0a44c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a450: 40 be 00 10 bne+ cr7,ffc0a460 ffc0a454: 80 09 00 04 lwz r0,4(r9) ffc0a458: 7c 00 00 34 cntlzw r0,r0 ffc0a45c: 54 00 d9 7e rlwinm r0,r0,27,5,31 } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { ffc0a460: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a464: 40 9e 00 10 bne- cr7,ffc0a474 _Thread_Enable_dispatch(); ffc0a468: 48 00 1f 71 bl ffc0c3d8 <_Thread_Enable_dispatch> ffc0a46c: 38 60 00 0c li r3,12 return RTEMS_RESOURCE_IN_USE; ffc0a470: 48 00 00 64 b ffc0a4d4 } *registered_major = major; ffc0a474: 93 e5 00 00 stw r31,0(r5) } _IO_Driver_address_table [major] = *driver_table; ffc0a478: 3d 20 00 00 lis r9,0 ffc0a47c: 80 c4 00 00 lwz r6,0(r4) ffc0a480: 81 69 27 c4 lwz r11,10180(r9) ffc0a484: 1c 1f 00 18 mulli r0,r31,24 ffc0a488: 80 e4 00 04 lwz r7,4(r4) ffc0a48c: 81 04 00 08 lwz r8,8(r4) ffc0a490: 7d 2b 02 14 add r9,r11,r0 ffc0a494: 81 44 00 0c lwz r10,12(r4) ffc0a498: 7c cb 01 2e stwx r6,r11,r0 ffc0a49c: 90 e9 00 04 stw r7,4(r9) ffc0a4a0: 91 09 00 08 stw r8,8(r9) ffc0a4a4: 91 49 00 0c stw r10,12(r9) ffc0a4a8: 81 64 00 14 lwz r11,20(r4) ffc0a4ac: 80 04 00 10 lwz r0,16(r4) ffc0a4b0: 91 69 00 14 stw r11,20(r9) ffc0a4b4: 90 09 00 10 stw r0,16(r9) _Thread_Enable_dispatch(); ffc0a4b8: 48 00 1f 21 bl ffc0c3d8 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); ffc0a4bc: 7f e3 fb 78 mr r3,r31 ffc0a4c0: 38 80 00 00 li r4,0 ffc0a4c4: 38 a0 00 00 li r5,0 ffc0a4c8: 48 00 96 cd bl ffc13b94 ffc0a4cc: 48 00 00 08 b ffc0a4d4 ffc0a4d0: 38 60 00 09 li r3,9 } ffc0a4d4: 80 01 00 14 lwz r0,20(r1) ffc0a4d8: 83 e1 00 0c lwz r31,12(r1) ffc0a4dc: 38 21 00 10 addi r1,r1,16 ffc0a4e0: 7c 08 03 a6 mtlr r0 ffc0a4e4: 4e 80 00 20 blr return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) ffc0a4e8: 7f 9f 00 40 cmplw cr7,r31,r0 ffc0a4ec: 38 60 00 0a li r3,10 ffc0a4f0: 41 9c fe d8 blt+ cr7,ffc0a3c8 ffc0a4f4: 4b ff ff e0 b ffc0a4d4 rtems_device_major_number n = _IO_Number_of_drivers; rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { ffc0a4f8: 3b ff 00 01 addi r31,r31,1 ffc0a4fc: 39 29 00 18 addi r9,r9,24 ffc0a500: 4b ff ff 20 b ffc0a420 if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); ffc0a504: 48 00 1e d5 bl ffc0c3d8 <_Thread_Enable_dispatch> ffc0a508: 38 60 00 05 li r3,5 return sc; ffc0a50c: 4b ff ff c8 b ffc0a4d4 ffc0430c : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { ffc0430c: 94 21 ff f0 stwu r1,-16(r1) ffc04310: 7c 08 02 a6 mflr r0 ffc04314: 93 e1 00 0c stw r31,12(r1) rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) ffc04318: 3f e0 00 00 lis r31,0 ffc0431c: 80 7f 26 4c lwz r3,9804(r31) * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { ffc04320: 90 01 00 14 stw r0,20(r1) rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) ffc04324: 2f 83 00 00 cmpwi cr7,r3,0 ffc04328: 41 9e 00 5c beq- cr7,ffc04384 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, ffc0432c: 38 80 00 48 li r4,72 ffc04330: 48 00 8c 01 bl ffc0cf30 ffc04334: 3d 20 00 00 lis r9,0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) ffc04338: 2f 83 00 00 cmpwi cr7,r3,0 uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, ffc0433c: 90 69 27 08 stw r3,9992(r9) sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) ffc04340: 40 be 00 0c bne+ cr7,ffc0434c rtems_fatal_error_occurred(RTEMS_NO_MEMORY); ffc04344: 38 60 00 1a li r3,26 <== NOT EXECUTED ffc04348: 48 00 00 64 b ffc043ac <== NOT EXECUTED iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) ffc0434c: 80 1f 26 4c lwz r0,9804(r31) rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; ffc04350: 3d 20 00 00 lis r9,0 ffc04354: 90 69 27 0c stw r3,9996(r9) ffc04358: 2f 80 00 00 cmpwi cr7,r0,0 ffc0435c: 40 be 00 10 bne+ cr7,ffc0436c ffc04360: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc04364: 48 00 00 08 b ffc0436c <== NOT EXECUTED for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) iop->data1 = iop + 1; ffc04368: 90 63 ff f0 stw r3,-16(r3) sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) ffc0436c: 34 00 ff ff addic. r0,r0,-1 iop->data1 = iop + 1; ffc04370: 7c 69 1b 78 mr r9,r3 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) ffc04374: 38 63 00 48 addi r3,r3,72 ffc04378: 40 82 ff f0 bne+ ffc04368 iop->data1 = iop + 1; iop->data1 = NULL; ffc0437c: 38 00 00 00 li r0,0 ffc04380: 90 09 00 38 stw r0,56(r9) /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( ffc04384: 3c 60 4c 42 lis r3,19522 ffc04388: 3c e0 00 00 lis r7,0 ffc0438c: 60 63 49 4f ori r3,r3,18767 ffc04390: 38 e7 27 10 addi r7,r7,10000 ffc04394: 38 80 00 01 li r4,1 ffc04398: 38 a0 00 54 li r5,84 ffc0439c: 38 c0 00 00 li r6,0 ffc043a0: 48 00 37 39 bl ffc07ad8 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) ffc043a4: 2f 83 00 00 cmpwi cr7,r3,0 ffc043a8: 41 be 00 08 beq+ cr7,ffc043b0 rtems_fatal_error_occurred( rc ); ffc043ac: 48 00 42 25 bl ffc085d0 <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) ffc043b0: 3d 20 00 00 lis r9,0 ffc043b4: 80 09 26 48 lwz r0,9800(r9) ffc043b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc043bc: 41 9e 00 0c beq- cr7,ffc043c8 (* rtems_fs_init_helper)(); ffc043c0: 7c 09 03 a6 mtctr r0 ffc043c4: 4e 80 04 21 bctrl } ffc043c8: 80 01 00 14 lwz r0,20(r1) ffc043cc: 83 e1 00 0c lwz r31,12(r1) ffc043d0: 38 21 00 10 addi r1,r1,16 ffc043d4: 7c 08 03 a6 mtlr r0 ffc043d8: 4e 80 00 20 blr ffc0d268 : */ int rtems_libio_is_file_open( void *node_access ) { ffc0d268: 94 21 ff f0 stwu r1,-16(r1) rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d26c: 3d 20 00 00 lis r9,0 */ int rtems_libio_is_file_open( void *node_access ) { ffc0d270: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d274: 38 80 00 00 li r4,0 */ int rtems_libio_is_file_open( void *node_access ) { ffc0d278: 93 e1 00 0c stw r31,12(r1) ffc0d27c: 7c 7f 1b 78 mr r31,r3 rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d280: 38 a0 00 00 li r5,0 ffc0d284: 80 69 27 10 lwz r3,10000(r9) */ int rtems_libio_is_file_open( void *node_access ) { ffc0d288: 90 01 00 14 stw r0,20(r1) rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d28c: 4b ff ab 1d bl ffc07da8 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d290: 3d 20 00 00 lis r9,0 ffc0d294: 81 69 26 4c lwz r11,9804(r9) ffc0d298: 3d 20 00 00 lis r9,0 ffc0d29c: 81 29 27 08 lwz r9,9992(r9) ffc0d2a0: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0d2a4: 38 0b 00 01 addi r0,r11,1 ffc0d2a8: 40 be 00 30 bne+ cr7,ffc0d2d8 ffc0d2ac: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0d2b0: 48 00 00 28 b ffc0d2d8 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { ffc0d2b4: 81 69 00 18 lwz r11,24(r9) ffc0d2b8: 71 6a 01 00 andi. r10,r11,256 ffc0d2bc: 41 82 00 18 beq- ffc0d2d4 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { ffc0d2c0: 81 69 00 1c lwz r11,28(r9) ffc0d2c4: 7f 8b f8 00 cmpw cr7,r11,r31 ffc0d2c8: 40 be 00 0c bne+ cr7,ffc0d2d4 ffc0d2cc: 3b e0 00 01 li r31,1 ffc0d2d0: 48 00 00 14 b ffc0d2e4 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d2d4: 39 29 00 48 addi r9,r9,72 ffc0d2d8: 34 00 ff ff addic. r0,r0,-1 ffc0d2dc: 40 82 ff d8 bne+ ffc0d2b4 ffc0d2e0: 3b e0 00 00 li r31,0 break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0d2e4: 3d 20 00 00 lis r9,0 ffc0d2e8: 80 69 27 10 lwz r3,10000(r9) ffc0d2ec: 4b ff ac 01 bl ffc07eec return result; } ffc0d2f0: 80 01 00 14 lwz r0,20(r1) ffc0d2f4: 7f e3 fb 78 mr r3,r31 ffc0d2f8: 83 e1 00 0c lwz r31,12(r1) ffc0d2fc: 7c 08 03 a6 mtlr r0 ffc0d300: 38 21 00 10 addi r1,r1,16 ffc0d304: 4e 80 00 20 blr ffc0d308 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d308: 94 21 ff f0 stwu r1,-16(r1) rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d30c: 3d 20 00 00 lis r9,0 */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d310: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d314: 38 80 00 00 li r4,0 */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d318: 93 e1 00 0c stw r31,12(r1) ffc0d31c: 7c 7f 1b 78 mr r31,r3 rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d320: 38 a0 00 00 li r5,0 ffc0d324: 80 69 27 10 lwz r3,10000(r9) */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d328: 90 01 00 14 stw r0,20(r1) rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d32c: 4b ff aa 7d bl ffc07da8 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d330: 3d 20 00 00 lis r9,0 ffc0d334: 81 69 26 4c lwz r11,9804(r9) ffc0d338: 3d 20 00 00 lis r9,0 ffc0d33c: 81 29 27 08 lwz r9,9992(r9) ffc0d340: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0d344: 38 0b 00 01 addi r0,r11,1 ffc0d348: 40 be 00 30 bne+ cr7,ffc0d378 ffc0d34c: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0d350: 48 00 00 28 b ffc0d378 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { ffc0d354: 81 69 00 18 lwz r11,24(r9) ffc0d358: 71 6a 01 00 andi. r10,r11,256 ffc0d35c: 41 82 00 18 beq- ffc0d374 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { ffc0d360: 81 69 00 2c lwz r11,44(r9) ffc0d364: 7f 8b f8 00 cmpw cr7,r11,r31 ffc0d368: 40 be 00 0c bne+ cr7,ffc0d374 ffc0d36c: 3b e0 00 01 li r31,1 ffc0d370: 48 00 00 14 b ffc0d384 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d374: 39 29 00 48 addi r9,r9,72 ffc0d378: 34 00 ff ff addic. r0,r0,-1 ffc0d37c: 40 82 ff d8 bne+ ffc0d354 ffc0d380: 3b e0 00 00 li r31,0 break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0d384: 3d 20 00 00 lis r9,0 ffc0d388: 80 69 27 10 lwz r3,10000(r9) ffc0d38c: 4b ff ab 61 bl ffc07eec return result; } ffc0d390: 80 01 00 14 lwz r0,20(r1) ffc0d394: 7f e3 fb 78 mr r3,r31 ffc0d398: 83 e1 00 0c lwz r31,12(r1) ffc0d39c: 7c 08 03 a6 mtlr r0 ffc0d3a0: 38 21 00 10 addi r1,r1,16 ffc0d3a4: 4e 80 00 20 blr ffc2c840 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc2c840: 94 21 ff c0 stwu r1,-64(r1) ffc2c844: 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); ffc2c848: 38 60 00 00 li r3,0 ffc2c84c: 38 80 00 00 li r4,0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc2c850: 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); ffc2c854: 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) { ffc2c858: 90 01 00 44 stw r0,68(r1) ffc2c85c: 93 61 00 2c stw r27,44(r1) ffc2c860: 93 81 00 30 stw r28,48(r1) ffc2c864: 93 a1 00 34 stw r29,52(r1) ffc2c868: 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); ffc2c86c: 4b fe 11 71 bl ffc0d9dc if (sc != RTEMS_SUCCESSFUL) return sc; ffc2c870: 7c 7f 1b 79 mr. r31,r3 ffc2c874: 40 82 01 50 bne- ffc2c9c4 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { ffc2c878: 3f c0 00 00 lis r30,0 ffc2c87c: 81 3e 34 ec lwz r9,13548(r30) ffc2c880: 3d 60 00 00 lis r11,0 ffc2c884: 38 0b 63 64 addi r0,r11,25444 ffc2c888: 7f 89 00 00 cmpw cr7,r9,r0 ffc2c88c: 3b 9e 34 ec addi r28,r30,13548 ffc2c890: 40 be 00 4c bne+ cr7,ffc2c8dc rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); ffc2c894: 38 60 00 48 li r3,72 ffc2c898: 4b fd c4 fd bl ffc08d94 if (!tmp) ffc2c89c: 7c 7d 1b 79 mr. r29,r3 ffc2c8a0: 40 a2 00 0c bne+ ffc2c8ac ffc2c8a4: 3b e0 00 1a li r31,26 <== NOT EXECUTED ffc2c8a8: 48 00 01 1c b ffc2c9c4 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT tmp->refcnt = 1; #endif sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); ffc2c8ac: 3c a0 ff c3 lis r5,-61 ffc2c8b0: 7f 84 e3 78 mr r4,r28 ffc2c8b4: 38 a5 c6 e0 addi r5,r5,-14624 ffc2c8b8: 38 60 00 00 li r3,0 ffc2c8bc: 48 00 18 65 bl ffc2e120 if (sc != RTEMS_SUCCESSFUL) { ffc2c8c0: 7c 7c 1b 79 mr. r28,r3 ffc2c8c4: 41 a2 00 14 beq+ ffc2c8d8 /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); ffc2c8c8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2c8cc: 4b fd bd 41 bl ffc0860c <== NOT EXECUTED ffc2c8d0: 7f 9f e3 78 mr r31,r28 <== NOT EXECUTED return sc; ffc2c8d4: 48 00 00 f0 b ffc2c9c4 <== NOT EXECUTED } rtems_current_user_env = tmp; ffc2c8d8: 93 be 34 ec stw r29,13548(r30) }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ ffc2c8dc: 3f c0 00 00 lis r30,0 ffc2c8e0: 83 7e 34 ec lwz r27,13548(r30) ffc2c8e4: 3c 80 00 00 lis r4,0 ffc2c8e8: 38 84 63 64 addi r4,r4,25444 ffc2c8ec: 38 a0 00 48 li r5,72 ffc2c8f0: 7f 63 db 78 mr r3,r27 ffc2c8f4: 48 01 d1 dd bl ffc49ad0 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc2c8f8: 3d 20 00 00 lis r9,0 ffc2c8fc: 81 29 63 58 lwz r9,25432(r9) * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c900: 3f 80 ff c6 lis r28,-58 ffc2c904: 3b 9c 2d 70 addi r28,r28,11632 *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; ffc2c908: 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); ffc2c90c: 3b a1 00 0c addi r29,r1,12 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc2c910: 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); ffc2c914: 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; ffc2c918: 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); ffc2c91c: 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; ffc2c920: 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); ffc2c924: 7f a6 eb 78 mr r6,r29 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc2c928: 91 1b 00 18 stw r8,24(r27) * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c92c: 38 e0 00 00 li r7,0 ffc2c930: 7f 83 e3 78 mr r3,r28 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc2c934: 91 5b 00 1c stw r10,28(r27) ffc2c938: 91 7b 00 20 stw r11,32(r27) ffc2c93c: 90 1b 00 24 stw r0,36(r27) ffc2c940: 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*/ ffc2c944: 81 21 00 08 lwz r9,8(r1) /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc2c948: 90 1b 00 28 stw r0,40(r27) } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ ffc2c94c: 91 3b 00 00 stw r9,0(r27) * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c950: 4b fd bb d9 bl ffc08528 rtems_filesystem_root = loc; ffc2c954: 81 3e 34 ec lwz r9,13548(r30) ffc2c958: 81 41 00 10 lwz r10,16(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c95c: 7f 83 e3 78 mr r3,r28 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc2c960: 81 61 00 14 lwz r11,20(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c964: 7f a6 eb 78 mr r6,r29 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc2c968: 80 01 00 18 lwz r0,24(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c96c: 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; ffc2c970: 81 01 00 0c lwz r8,12(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c974: 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; ffc2c978: 91 49 00 1c stw r10,28(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c97c: 38 e0 00 00 li r7,0 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc2c980: 91 09 00 18 stw r8,24(r9) ffc2c984: 91 69 00 20 stw r11,32(r9) ffc2c988: 90 09 00 24 stw r0,36(r9) ffc2c98c: 80 01 00 1c lwz r0,28(r1) ffc2c990: 90 09 00 28 stw r0,40(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c994: 4b fd bb 95 bl ffc08528 rtems_filesystem_current = loc; ffc2c998: 80 01 00 18 lwz r0,24(r1) ffc2c99c: 81 3e 34 ec lwz r9,13548(r30) ffc2c9a0: 81 41 00 10 lwz r10,16(r1) ffc2c9a4: 81 61 00 14 lwz r11,20(r1) ffc2c9a8: 81 01 00 0c lwz r8,12(r1) ffc2c9ac: 91 49 00 08 stw r10,8(r9) ffc2c9b0: 91 09 00 04 stw r8,4(r9) ffc2c9b4: 91 69 00 0c stw r11,12(r9) ffc2c9b8: 90 09 00 10 stw r0,16(r9) ffc2c9bc: 80 01 00 1c lwz r0,28(r1) ffc2c9c0: 90 09 00 14 stw r0,20(r9) return RTEMS_SUCCESSFUL; } ffc2c9c4: 80 01 00 44 lwz r0,68(r1) ffc2c9c8: 7f e3 fb 78 mr r3,r31 ffc2c9cc: 83 61 00 2c lwz r27,44(r1) ffc2c9d0: 7c 08 03 a6 mtlr r0 ffc2c9d4: 83 81 00 30 lwz r28,48(r1) ffc2c9d8: 83 a1 00 34 lwz r29,52(r1) ffc2c9dc: 83 c1 00 38 lwz r30,56(r1) ffc2c9e0: 83 e1 00 3c lwz r31,60(r1) ffc2c9e4: 38 21 00 40 addi r1,r1,64 ffc2c9e8: 4e 80 00 20 blr ffc2c768 : * 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) { ffc2c768: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc2c76c: 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); ffc2c770: 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) { ffc2c774: 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); ffc2c778: 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) { ffc2c77c: 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); ffc2c780: 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) { ffc2c784: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc2c788: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc2c78c: 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); ffc2c790: 4b fe 12 4d bl ffc0d9dc <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc2c794: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc2c798: 40 82 00 88 bne- ffc2c820 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { ffc2c79c: 3c 80 00 00 lis r4,0 <== NOT EXECUTED ffc2c7a0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2c7a4: 83 e4 34 ec lwz r31,13548(r4) <== NOT EXECUTED ffc2c7a8: 38 84 34 ec addi r4,r4,13548 <== NOT EXECUTED ffc2c7ac: 81 3f 00 00 lwz r9,0(r31) <== NOT EXECUTED ffc2c7b0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc2c7b4: 40 be 00 18 bne+ cr7,ffc2c7cc <== NOT EXECUTED /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); ffc2c7b8: 48 00 1a 35 bl ffc2e1ec <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc2c7bc: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc2c7c0: 40 a2 00 60 bne+ ffc2c820 <== NOT EXECUTED free_user_env(tmp); ffc2c7c4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c7c8: 4b ff ff 19 bl ffc2c6e0 <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, ffc2c7cc: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc2c7d0: 3b df 34 ec addi r30,r31,13548 <== NOT EXECUTED ffc2c7d4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2c7d8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2c7dc: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc2c7e0: 48 00 1a ad bl ffc2e28c <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) ffc2c7e4: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc2c7e8: 40 a2 00 28 bne+ ffc2c810 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); ffc2c7ec: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc2c7f0: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2c7f4: 38 a5 c6 e0 addi r5,r5,-14624 <== NOT EXECUTED ffc2c7f8: 48 00 19 29 bl ffc2e120 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc2c7fc: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc2c800: 40 a2 00 10 bne+ ffc2c810 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; ffc2c804: 81 21 00 08 lwz r9,8(r1) <== NOT EXECUTED ffc2c808: 91 3f 34 ec stw r9,13548(r31) <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; ffc2c80c: 48 00 00 14 b ffc2c820 <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; ffc2c810: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc2c814: 39 6b 63 64 addi r11,r11,25444 <== NOT EXECUTED ffc2c818: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2c81c: 91 69 34 ec stw r11,13548(r9) <== NOT EXECUTED return sc; } ffc2c820: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED ffc2c824: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc2c828: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc2c82c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2c830: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc2c834: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc2c838: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc2c83c: 4e 80 00 20 blr <== NOT EXECUTED ffc08ebc : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { ffc08ebc: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc08ec0: 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 ) { ffc08ec4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc08ec8: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc08ecc: 80 69 34 9c lwz r3,13468(r9) <== NOT EXECUTED ffc08ed0: 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 ) { ffc08ed4: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc08ed8: 48 00 69 6d bl ffc0f844 <_Protected_heap_Get_block_size> <== NOT EXECUTED ffc08edc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc08ee0: 41 9e 00 2c beq- cr7,ffc08f0c <== NOT EXECUTED MSBUMP(lifetime_freed, size); ffc08ee4: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc08ee8: 81 41 00 08 lwz r10,8(r1) <== NOT EXECUTED ffc08eec: 39 6b 63 28 addi r11,r11,25384 <== NOT EXECUTED ffc08ef0: 80 ab 00 28 lwz r5,40(r11) <== NOT EXECUTED ffc08ef4: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc08ef8: 80 cb 00 2c lwz r6,44(r11) <== NOT EXECUTED ffc08efc: 7d 0a 30 14 addc r8,r10,r6 <== NOT EXECUTED ffc08f00: 7c e9 29 14 adde r7,r9,r5 <== NOT EXECUTED ffc08f04: 90 eb 00 28 stw r7,40(r11) <== NOT EXECUTED ffc08f08: 91 0b 00 2c stw r8,44(r11) <== NOT EXECUTED } } ffc08f0c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc08f10: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc08f14: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc08f18: 4e 80 00 20 blr <== NOT EXECUTED ffc08f1c : { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) ffc08f1c: 7c 64 1b 79 mr. r4,r3 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { ffc08f20: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc08f24: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc08f28: 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 ) ffc08f2c: 41 82 00 5c beq- ffc08f88 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; ffc08f30: 7c 25 0b 78 mr r5,r1 <== NOT EXECUTED ffc08f34: 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); ffc08f38: 3d 20 00 00 lis r9,0 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; ffc08f3c: 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); ffc08f40: 80 69 34 9c lwz r3,13468(r9) <== NOT EXECUTED ffc08f44: 48 00 69 01 bl ffc0f844 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); ffc08f48: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc08f4c: 39 29 63 28 addi r9,r9,25384 <== NOT EXECUTED ffc08f50: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc08f54: 80 a9 00 20 lwz r5,32(r9) <== NOT EXECUTED ffc08f58: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc08f5c: 80 c9 00 24 lwz r6,36(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); ffc08f60: 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); ffc08f64: 7d 0c 30 14 addc r8,r12,r6 <== NOT EXECUTED ffc08f68: 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) ffc08f6c: 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); ffc08f70: 90 e9 00 20 stw r7,32(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); ffc08f74: 7c 00 40 50 subf r0,r0,r8 <== NOT EXECUTED if (current_depth > s->max_depth) ffc08f78: 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); ffc08f7c: 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) ffc08f80: 40 9d 00 08 ble- cr7,ffc08f88 <== NOT EXECUTED s->max_depth = current_depth; ffc08f84: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED } ffc08f88: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc08f8c: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc08f90: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc08f94: 4e 80 00 20 blr <== NOT EXECUTED ffc08f98 : #include #include static void rtems_malloc_statistics_initialize( void ) { ffc08f98: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc08f9c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); ffc08fa0: 3c 60 00 00 lis r3,0 <== NOT EXECUTED ffc08fa4: 38 63 63 28 addi r3,r3,25384 <== NOT EXECUTED #include #include static void rtems_malloc_statistics_initialize( void ) { ffc08fa8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); ffc08fac: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc08fb0: 38 a0 00 30 li r5,48 <== NOT EXECUTED ffc08fb4: 48 04 0d 55 bl ffc49d08 <== NOT EXECUTED } ffc08fb8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc08fbc: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc08fc0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc08fc4: 4e 80 00 20 blr <== NOT EXECUTED ffc13074 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc13074: 94 21 ff e8 stwu r1,-24(r1) ffc13078: 7c 08 02 a6 mflr r0 ffc1307c: 93 e1 00 14 stw r31,20(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc13080: 7c 7f 1b 79 mr. r31,r3 int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc13084: 93 a1 00 0c stw r29,12(r1) ffc13088: 7c bd 2b 78 mr r29,r5 ffc1308c: 93 c1 00 10 stw r30,16(r1) ffc13090: 7c 9e 23 78 mr r30,r4 ffc13094: 90 01 00 1c stw r0,28(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc13098: 41 82 00 7c beq- ffc13114 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && ffc1309c: 3d 20 00 00 lis r9,0 ffc130a0: 80 09 27 b0 lwz r0,10160(r9) ffc130a4: 2f 80 00 03 cmpwi cr7,r0,3 * Parameter error checks */ if ( !pointer ) return EINVAL; *pointer = NULL; ffc130a8: 38 00 00 00 li r0,0 ffc130ac: 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()) && ffc130b0: 40 be 00 10 bne+ cr7,ffc130c0 ffc130b4: 4b ff 2b 89 bl ffc05c3c ffc130b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc130bc: 41 9e 00 58 beq- cr7,ffc13114 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); ffc130c0: 4b ff 2b f1 bl ffc05cb0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); ffc130c4: 3d 20 00 00 lis r9,0 ffc130c8: 80 69 26 7c lwz r3,9852(r9) ffc130cc: 7f c5 f3 78 mr r5,r30 ffc130d0: 7f a4 eb 78 mr r4,r29 ffc130d4: 38 c0 00 00 li r6,0 ffc130d8: 4b ff 8a 6d bl ffc0bb44 <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) ffc130dc: 7c 7e 1b 79 mr. r30,r3 ffc130e0: 38 60 00 0c li r3,12 ffc130e4: 41 82 00 34 beq- ffc13118 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) ffc130e8: 3d 20 00 00 lis r9,0 ffc130ec: 81 29 26 e8 lwz r9,9960(r9) ffc130f0: 2f 89 00 00 cmpwi cr7,r9,0 ffc130f4: 41 9e 00 14 beq- cr7,ffc13108 (*rtems_malloc_statistics_helpers->at_malloc)(pointer); ffc130f8: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc130fc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc13100: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc13104: 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; ffc13108: 93 df 00 00 stw r30,0(r31) ffc1310c: 38 60 00 00 li r3,0 return 0; ffc13110: 48 00 00 08 b ffc13118 ffc13114: 38 60 00 16 li r3,22 } ffc13118: 80 01 00 1c lwz r0,28(r1) ffc1311c: 83 a1 00 0c lwz r29,12(r1) ffc13120: 7c 08 03 a6 mtlr r0 ffc13124: 83 c1 00 10 lwz r30,16(r1) ffc13128: 83 e1 00 14 lwz r31,20(r1) ffc1312c: 38 21 00 18 addi r1,r1,24 ffc13130: 4e 80 00 20 blr ffc0a3cc : void rtems_panic( const char *printf_format, ... ) { ffc0a3cc: 94 21 ff 88 stwu r1,-120(r1) <== NOT EXECUTED ffc0a3d0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a3d4: 90 81 00 1c stw r4,28(r1) <== NOT EXECUTED ffc0a3d8: 90 01 00 7c stw r0,124(r1) <== NOT EXECUTED ffc0a3dc: 90 a1 00 20 stw r5,32(r1) <== NOT EXECUTED ffc0a3e0: 90 c1 00 24 stw r6,36(r1) <== NOT EXECUTED ffc0a3e4: 90 e1 00 28 stw r7,40(r1) <== NOT EXECUTED ffc0a3e8: 91 01 00 2c stw r8,44(r1) <== NOT EXECUTED ffc0a3ec: 91 21 00 30 stw r9,48(r1) <== NOT EXECUTED ffc0a3f0: 91 41 00 34 stw r10,52(r1) <== NOT EXECUTED ffc0a3f4: 40 86 00 24 bne- cr1,ffc0a418 <== NOT EXECUTED ffc0a3f8: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc0a3fc: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc0a400: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc0a404: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc0a408: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc0a40c: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc0a410: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc0a414: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0a418: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0a41c: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0a420: 38 00 00 00 li r0,0 <== NOT EXECUTED void rtems_panic( const char *printf_format, ... ) { ffc0a424: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0a428: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0a42c: 38 01 00 80 addi r0,r1,128 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a430: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0a434: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a438: 3c 60 20 00 lis r3,8192 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0a43c: 38 01 00 18 addi r0,r1,24 <== NOT EXECUTED ffc0a440: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a444: 4b ff fd 8d bl ffc0a1d0 <== NOT EXECUTED va_end(arglist); } ffc0a448: 80 01 00 7c lwz r0,124(r1) <== NOT EXECUTED ffc0a44c: 38 21 00 78 addi r1,r1,120 <== NOT EXECUTED ffc0a450: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a454: 4e 80 00 20 blr <== NOT EXECUTED ffc0e920 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc0e920: 7c 08 02 a6 mflr r0 ffc0e924: 94 21 ff f8 stwu r1,-8(r1) if (!rtems_pipe_configured) ffc0e928: 3d 20 00 00 lis r9,0 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc0e92c: 90 01 00 0c stw r0,12(r1) if (!rtems_pipe_configured) ffc0e930: 88 09 26 c4 lbz r0,9924(r9) ffc0e934: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e938: 41 9e 00 48 beq- cr7,ffc0e980 return; if (rtems_pipe_semaphore) ffc0e93c: 3c e0 00 00 lis r7,0 <== NOT EXECUTED ffc0e940: 80 07 28 f8 lwz r0,10488(r7) <== NOT EXECUTED ffc0e944: 38 e7 28 f8 addi r7,r7,10488 <== NOT EXECUTED ffc0e948: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0e94c: 40 be 00 34 bne+ cr7,ffc0e980 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( ffc0e950: 3c 60 50 49 lis r3,20553 <== NOT EXECUTED ffc0e954: 60 63 50 45 ori r3,r3,20549 <== NOT EXECUTED ffc0e958: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc0e95c: 38 a0 00 54 li r5,84 <== NOT EXECUTED ffc0e960: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc0e964: 4b ff 91 75 bl ffc07ad8 <== 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) ffc0e968: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0e96c: 41 be 00 08 beq+ cr7,ffc0e974 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc0e970: 4b ff 9c 61 bl ffc085d0 <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); ffc0e974: 4b ff 8c f1 bl ffc07664 <== NOT EXECUTED rtems_pipe_no = now; ffc0e978: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0e97c: b0 69 27 b0 sth r3,10160(r9) <== NOT EXECUTED } ffc0e980: 80 01 00 0c lwz r0,12(r1) ffc0e984: 38 21 00 08 addi r1,r1,8 ffc0e988: 7c 08 03 a6 mtlr r0 ffc0e98c: 4e 80 00 20 blr ffc40628 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { ffc40628: 94 21 ff d8 stwu r1,-40(r1) ffc4062c: 7c 08 02 a6 mflr r0 ffc40630: 93 c1 00 20 stw r30,32(r1) ffc40634: 7c 7e 1b 78 mr r30,r3 ffc40638: 3c 60 00 00 lis r3,0 ffc4063c: 93 e1 00 24 stw r31,36(r1) ffc40640: 38 63 68 c4 addi r3,r3,26820 ffc40644: 7c 9f 23 78 mr r31,r4 ffc40648: 38 a1 00 08 addi r5,r1,8 ffc4064c: 90 01 00 2c stw r0,44(r1) ffc40650: 7f c4 f3 78 mr r4,r30 ffc40654: 93 a1 00 1c stw r29,28(r1) ffc40658: 93 81 00 18 stw r28,24(r1) ffc4065c: 4b fc ee 15 bl ffc0f470 <_Objects_Get> ffc40660: 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 ) { ffc40664: 80 01 00 08 lwz r0,8(r1) ffc40668: 2f 80 00 00 cmpwi cr7,r0,0 ffc4066c: 40 9e 01 70 bne- cr7,ffc407dc case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { ffc40670: 3d 20 00 00 lis r9,0 ffc40674: 80 09 36 14 lwz r0,13844(r9) ffc40678: 81 23 00 40 lwz r9,64(r3) ffc4067c: 7f 89 00 00 cmpw cr7,r9,r0 ffc40680: 41 9e 00 10 beq- cr7,ffc40690 _Thread_Enable_dispatch(); ffc40684: 4b fc f9 e5 bl ffc10068 <_Thread_Enable_dispatch> ffc40688: 3b c0 00 17 li r30,23 return RTEMS_NOT_OWNER_OF_RESOURCE; ffc4068c: 48 00 01 54 b ffc407e0 } if ( length == RTEMS_PERIOD_STATUS ) { ffc40690: 2f 9f 00 00 cmpwi cr7,r31,0 ffc40694: 40 be 00 28 bne+ cr7,ffc406bc switch ( the_period->state ) { ffc40698: 80 03 00 38 lwz r0,56(r3) ffc4069c: 3b c0 00 00 li r30,0 ffc406a0: 2b 80 00 04 cmplwi cr7,r0,4 ffc406a4: 41 9d 01 30 bgt- cr7,ffc407d4 ffc406a8: 3d 20 ff c7 lis r9,-57 ffc406ac: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc406b0: 39 29 a4 20 addi r9,r9,-23520 ffc406b4: 7f c9 00 2e lwzx r30,r9,r0 ffc406b8: 48 00 01 1c b ffc407d4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc406bc: 7f 80 00 a6 mfmsr r28 ffc406c0: 7c 10 42 a6 mfsprg r0,0 ffc406c4: 7f 80 00 78 andc r0,r28,r0 ffc406c8: 7c 00 01 24 mtmsr r0 _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); switch ( the_period->state ) { ffc406cc: 80 03 00 38 lwz r0,56(r3) ffc406d0: 2f 80 00 02 cmpwi cr7,r0,2 ffc406d4: 41 9e 00 60 beq- cr7,ffc40734 ffc406d8: 2f 80 00 04 cmpwi cr7,r0,4 ffc406dc: 41 9e 00 cc beq- cr7,ffc407a8 ffc406e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc406e4: 40 9e 00 f8 bne- cr7,ffc407dc return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc406e8: 7f 80 01 24 mtmsr r28 _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); ffc406ec: 4b ff fc 99 bl ffc40384 <_Rate_monotonic_Initiate_statistics> the_period->state = RATE_MONOTONIC_ACTIVE; ffc406f0: 39 20 00 02 li r9,2 ffc406f4: 91 3d 00 38 stw r9,56(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc406f8: 3d 20 ff c4 lis r9,-60 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc406fc: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc40700: 39 29 08 04 addi r9,r9,2052 the_watchdog->id = id; ffc40704: 93 dd 00 30 stw r30,48(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc40708: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc4070c: 91 3d 00 2c stw r9,44(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc40710: 38 63 65 68 addi r3,r3,25960 ffc40714: 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; ffc40718: 90 1d 00 34 stw r0,52(r29) ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc4071c: 3b c0 00 00 li r30,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc40720: 93 fd 00 1c stw r31,28(r29) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc40724: 90 1d 00 18 stw r0,24(r29) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; ffc40728: 93 fd 00 3c stw r31,60(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc4072c: 4b fd 0e 41 bl ffc1156c <_Watchdog_Insert> ffc40730: 48 00 00 a4 b ffc407d4 case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); ffc40734: 4b ff fd d9 bl ffc4050c <_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; ffc40738: 38 00 00 01 li r0,1 the_period->next_length = length; ffc4073c: 93 fd 00 3c stw r31,60(r29) /* * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; ffc40740: 90 1d 00 38 stw r0,56(r29) ffc40744: 7f 80 01 24 mtmsr r28 the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; ffc40748: 3d 20 00 00 lis r9,0 ffc4074c: 80 1d 00 08 lwz r0,8(r29) ffc40750: 81 29 36 14 lwz r9,13844(r9) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc40754: 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; ffc40758: 90 09 00 20 stw r0,32(r9) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc4075c: 7d 23 4b 78 mr r3,r9 ffc40760: 4b fd 03 6d bl ffc10acc <_Thread_Set_state> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc40764: 7d 20 00 a6 mfmsr r9 ffc40768: 7c 10 42 a6 mfsprg r0,0 ffc4076c: 7d 20 00 78 andc r0,r9,r0 ffc40770: 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; ffc40774: 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; ffc40778: 80 1d 00 38 lwz r0,56(r29) the_period->state = RATE_MONOTONIC_ACTIVE; ffc4077c: 91 7d 00 38 stw r11,56(r29) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc40780: 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 ) ffc40784: 2f 80 00 03 cmpwi cr7,r0,3 ffc40788: 40 be 00 14 bne+ cr7,ffc4079c _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc4078c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc40790: 80 69 36 14 lwz r3,13844(r9) <== NOT EXECUTED ffc40794: 38 80 40 00 li r4,16384 <== NOT EXECUTED ffc40798: 4b fc f3 ed bl ffc0fb84 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Enable_dispatch(); ffc4079c: 4b fc f8 cd bl ffc10068 <_Thread_Enable_dispatch> ffc407a0: 3b c0 00 00 li r30,0 return RTEMS_SUCCESSFUL; ffc407a4: 48 00 00 3c b ffc407e0 case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); ffc407a8: 4b ff fd 65 bl ffc4050c <_Rate_monotonic_Update_statistics> ffc407ac: 7f 80 01 24 mtmsr r28 _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; ffc407b0: 38 00 00 02 li r0,2 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc407b4: 93 fd 00 1c stw r31,28(r29) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc407b8: 3c 60 00 00 lis r3,0 ffc407bc: 90 1d 00 38 stw r0,56(r29) ffc407c0: 38 63 65 68 addi r3,r3,25960 ffc407c4: 38 9d 00 10 addi r4,r29,16 the_period->next_length = length; ffc407c8: 93 fd 00 3c stw r31,60(r29) _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc407cc: 3b c0 00 06 li r30,6 ffc407d0: 4b fd 0d 9d bl ffc1156c <_Watchdog_Insert> ffc407d4: 4b fc f8 95 bl ffc10068 <_Thread_Enable_dispatch> return RTEMS_TIMEOUT; ffc407d8: 48 00 00 08 b ffc407e0 ffc407dc: 3b c0 00 04 li r30,4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc407e0: 80 01 00 2c lwz r0,44(r1) ffc407e4: 7f c3 f3 78 mr r3,r30 ffc407e8: 83 81 00 18 lwz r28,24(r1) ffc407ec: 7c 08 03 a6 mtlr r0 ffc407f0: 83 a1 00 1c lwz r29,28(r1) ffc407f4: 83 c1 00 20 lwz r30,32(r1) ffc407f8: 83 e1 00 24 lwz r31,36(r1) ffc407fc: 38 21 00 28 addi r1,r1,40 ffc40800: 4e 80 00 20 blr ffc06658 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06658: 94 21 ff f0 stwu r1,-16(r1) ffc0665c: 7c 08 02 a6 mflr r0 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc06660: 3d 20 00 00 lis r9,0 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06664: 90 01 00 14 stw r0,20(r1) Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc06668: 81 29 36 14 lwz r9,13844(r9) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc0666c: 93 e1 00 0c stw r31,12(r1) ffc06670: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06674: 80 69 00 cc lwz r3,204(r9) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06678: 93 c1 00 08 stw r30,8(r1) ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc0667c: 3b c0 00 00 li r30,0 ffc06680: 7f 9f 18 40 cmplw cr7,r31,r3 ffc06684: 41 9c 00 18 blt- cr7,ffc0669c } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) ffc06688: 83 c9 00 c8 lwz r30,200(r9) ffc0668c: 7f c3 f2 14 add r30,r3,r30 ffc06690: 7f df f0 10 subfc r30,r31,r30 ffc06694: 3b c0 00 00 li r30,0 ffc06698: 7f de f1 14 adde r30,r30,r30 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { ffc0669c: 3d 20 00 00 lis r9,0 ffc066a0: 80 09 36 f0 lwz r0,14064(r9) ffc066a4: 38 80 00 01 li r4,1 ffc066a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc066ac: 41 9e 00 20 beq- cr7,ffc066cc pattern_ok = (!memcmp( ffc066b0: 3c 80 00 00 lis r4,0 ffc066b4: 38 84 62 98 addi r4,r4,25240 ffc066b8: 38 63 00 08 addi r3,r3,8 ffc066bc: 38 a0 00 80 li r5,128 ffc066c0: 48 04 33 6d bl ffc49a2c ffc066c4: 7c 64 00 34 cntlzw r4,r3 ffc066c8: 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 ) ffc066cc: 2f 9e 00 00 cmpwi cr7,r30,0 ffc066d0: 41 9e 00 10 beq- cr7,ffc066e0 ffc066d4: 2f 84 00 00 cmpwi cr7,r4,0 ffc066d8: 38 60 00 00 li r3,0 ffc066dc: 40 9e 00 14 bne- cr7,ffc066f0 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); ffc066e0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc066e4: 80 69 36 14 lwz r3,13844(r9) <== NOT EXECUTED ffc066e8: 4b ff fe 95 bl ffc0657c <== NOT EXECUTED ffc066ec: 38 60 00 01 li r3,1 <== NOT EXECUTED return true; } ffc066f0: 39 7f 00 10 addi r11,r31,16 ffc066f4: 80 0b 00 04 lwz r0,4(r11) ffc066f8: 83 cb ff f8 lwz r30,-8(r11) ffc066fc: 7c 08 03 a6 mtlr r0 ffc06700: 83 eb ff fc lwz r31,-4(r11) ffc06704: 7d 61 5b 78 mr r1,r11 ffc06708: 4e 80 00 20 blr ffc0656c : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); ffc0656c: 3c 80 ff c1 lis r4,-63 <== NOT EXECUTED ffc06570: 38 84 9b 94 addi r4,r4,-25708 <== NOT EXECUTED ffc06574: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc06578: 4b ff ff 5c b ffc064d4 <== NOT EXECUTED ffc064d4 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc064d4: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc064d8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc064dc: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED print_context = context; ffc064e0: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc064e4: 3b ff 36 f0 addi r31,r31,14064 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc064e8: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc064ec: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc064f0: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc064f4: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc064f8: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc064fc: 38 84 2b 2c addi r4,r4,11052 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc06500: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc06504: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED print_context = context; print_handler = print; ffc06508: 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; ffc0650c: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06510: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06514: 4e 80 04 21 bctrl <== NOT EXECUTED (*print)( context, ffc06518: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc0651c: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED ffc06520: 38 84 2b 43 addi r4,r4,11075 <== NOT EXECUTED ffc06524: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc06528: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0652c: 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 ); ffc06530: 3c 60 ff c0 lis r3,-64 <== NOT EXECUTED ffc06534: 38 63 63 10 addi r3,r3,25360 <== NOT EXECUTED ffc06538: 48 00 87 c9 bl ffc0ed00 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); ffc0653c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc06540: 4b ff fd d1 bl ffc06310 <== NOT EXECUTED print_context = NULL; ffc06544: 38 00 00 00 li r0,0 <== NOT EXECUTED print_handler = NULL; ffc06548: 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; ffc0654c: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED print_handler = NULL; } ffc06550: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc06554: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc06558: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0655c: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc06560: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc06564: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc06568: 4e 80 00 20 blr <== NOT EXECUTED ffc2113c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc2113c: 94 21 ff d8 stwu r1,-40(r1) ffc21140: 7c 08 02 a6 mflr r0 ffc21144: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc21148: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc2114c: 93 a1 00 1c stw r29,28(r1) ffc21150: 7c bd 2b 78 mr r29,r5 ffc21154: 93 c1 00 20 stw r30,32(r1) ffc21158: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc2115c: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc21160: 90 01 00 2c stw r0,44(r1) ffc21164: 93 81 00 18 stw r28,24(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc21168: 41 82 00 6c beq- ffc211d4 return RTEMS_INVALID_ADDRESS; errno = 0; ffc2116c: 48 02 4e 01 bl ffc45f6c <__errno> ffc21170: 38 00 00 00 li r0,0 ffc21174: 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 ); ffc21178: 38 81 00 08 addi r4,r1,8 ffc2117c: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc21180: 90 1f 00 00 stw r0,0(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); ffc21184: 38 a0 00 10 li r5,16 ffc21188: 48 02 e0 e9 bl ffc4f270 #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 ) ffc2118c: 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 ); ffc21190: 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 ) ffc21194: 41 9e 00 0c beq- cr7,ffc211a0 *endptr = end; ffc21198: 80 01 00 08 lwz r0,8(r1) ffc2119c: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc211a0: 80 01 00 08 lwz r0,8(r1) ffc211a4: 38 60 00 0b li r3,11 ffc211a8: 7f 80 f0 00 cmpw cr7,r0,r30 ffc211ac: 41 9e 00 28 beq- cr7,ffc211d4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc211b0: 2f 9c ff ff cmpwi cr7,r28,-1 ffc211b4: 40 be 00 18 bne+ cr7,ffc211cc ffc211b8: 48 02 4d b5 bl ffc45f6c <__errno> <== NOT EXECUTED ffc211bc: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc211c0: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc211c4: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc211c8: 41 9e 00 0c beq- cr7,ffc211d4 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc211cc: 93 9f 00 00 stw r28,0(r31) ffc211d0: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc211d4: 80 01 00 2c lwz r0,44(r1) ffc211d8: 83 81 00 18 lwz r28,24(r1) ffc211dc: 7c 08 03 a6 mtlr r0 ffc211e0: 83 a1 00 1c lwz r29,28(r1) ffc211e4: 83 c1 00 20 lwz r30,32(r1) ffc211e8: 83 e1 00 24 lwz r31,36(r1) ffc211ec: 38 21 00 28 addi r1,r1,40 ffc211f0: 4e 80 00 20 blr ffc06d04 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d04: 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; ffc06d08: 38 00 00 09 li r0,9 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d0c: 41 9e 01 04 beq- cr7,ffc06e10 ffc06d10: 41 9d 00 70 bgt- cr7,ffc06d80 ffc06d14: 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; ffc06d18: 38 00 00 04 li r0,4 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d1c: 41 9e 00 f4 beq- cr7,ffc06e10 ffc06d20: 41 9d 00 38 bgt- cr7,ffc06d58 ffc06d24: 2f 83 00 01 cmpwi cr7,r3,1 ffc06d28: 38 00 00 01 li r0,1 ffc06d2c: 41 9e 00 e4 beq- cr7,ffc06e10 ffc06d30: 41 bd 00 10 bgt+ cr7,ffc06d40 ffc06d34: 2f 83 00 00 cmpwi cr7,r3,0 ffc06d38: 38 00 00 00 li r0,0 ffc06d3c: 48 00 00 b8 b ffc06df4 ffc06d40: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED ffc06d44: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc06d48: 41 9e 00 c8 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06d4c: 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; ffc06d50: 38 00 00 03 li r0,3 <== NOT EXECUTED ffc06d54: 48 00 00 a0 b ffc06df4 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d58: 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; ffc06d5c: 38 00 00 06 li r0,6 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d60: 41 9e 00 b0 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06d64: 41 9c 00 98 blt- cr7,ffc06dfc <== NOT EXECUTED ffc06d68: 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; ffc06d6c: 38 00 00 07 li r0,7 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d70: 41 9e 00 a0 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06d74: 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; ffc06d78: 38 00 00 08 li r0,8 <== NOT EXECUTED ffc06d7c: 48 00 00 78 b ffc06df4 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d80: 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; ffc06d84: 38 00 00 0e li r0,14 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d88: 41 9e 00 88 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06d8c: 41 9d 00 2c bgt- cr7,ffc06db8 <== NOT EXECUTED ffc06d90: 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; ffc06d94: 38 00 00 0b li r0,11 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d98: 41 9e 00 78 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06d9c: 41 9c 00 68 blt- cr7,ffc06e04 <== NOT EXECUTED ffc06da0: 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; ffc06da4: 38 00 00 0c li r0,12 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06da8: 41 9e 00 68 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06dac: 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; ffc06db0: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc06db4: 48 00 00 40 b ffc06df4 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06db8: 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; ffc06dbc: 38 00 00 11 li r0,17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06dc0: 41 9e 00 50 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06dc4: 41 9d 00 1c bgt- cr7,ffc06de0 <== NOT EXECUTED ffc06dc8: 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; ffc06dcc: 38 00 00 0f li r0,15 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06dd0: 41 9e 00 40 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06dd4: 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; ffc06dd8: 38 00 00 10 li r0,16 <== NOT EXECUTED ffc06ddc: 48 00 00 18 b ffc06df4 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06de0: 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; ffc06de4: 38 00 00 12 li r0,18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06de8: 41 9e 00 28 beq- cr7,ffc06e10 <== NOT EXECUTED ffc06dec: 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; ffc06df0: 38 00 00 13 li r0,19 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06df4: 40 be 00 18 bne+ cr7,ffc06e0c ffc06df8: 48 00 00 18 b ffc06e10 <== 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; ffc06dfc: 38 00 00 05 li r0,5 <== NOT EXECUTED case B150: baud_index = 5; break; ffc06e00: 48 00 00 10 b ffc06e10 <== 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; ffc06e04: 38 00 00 0a li r0,10 <== NOT EXECUTED case B1800: baud_index = 10; break; ffc06e08: 48 00 00 08 b ffc06e10 <== 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; ffc06e0c: 38 00 ff ff li r0,-1 default: baud_index = -1; break; } return baud_index; } ffc06e10: 7c 03 03 78 mr r3,r0 ffc06e14: 4e 80 00 20 blr ffc052f0 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; ffc052f0: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc052f4: 39 2b 21 68 addi r9,r11,8552 <== NOT EXECUTED ffc052f8: 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; } ffc052fc: 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; ffc05300: 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; ffc05304: 90 89 00 04 stw r4,4(r9) <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } ffc05308: 4e 80 00 20 blr <== NOT EXECUTED ffc06ae4 : } } rtems_status_code rtems_termios_close (void *arg) { ffc06ae4: 94 21 ff f0 stwu r1,-16(r1) ffc06ae8: 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); ffc06aec: 3d 20 00 00 lis r9,0 } } rtems_status_code rtems_termios_close (void *arg) { ffc06af0: 90 01 00 14 stw r0,20(r1) rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06af4: 38 80 00 00 li r4,0 ffc06af8: 38 a0 00 00 li r5,0 } } rtems_status_code rtems_termios_close (void *arg) { ffc06afc: 93 c1 00 08 stw r30,8(r1) ffc06b00: 7c 7e 1b 78 mr r30,r3 rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06b04: 80 69 27 14 lwz r3,10004(r9) rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06b08: 81 3e 00 00 lwz r9,0(r30) } } rtems_status_code rtems_termios_close (void *arg) { ffc06b0c: 93 e1 00 0c stw r31,12(r1) rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06b10: 83 e9 00 38 lwz r31,56(r9) rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06b14: 48 00 12 95 bl ffc07da8 if (sc != RTEMS_SUCCESSFUL) ffc06b18: 2f 83 00 00 cmpwi cr7,r3,0 ffc06b1c: 40 9e 00 9c bne- cr7,ffc06bb8 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { ffc06b20: 81 3f 00 08 lwz r9,8(r31) ffc06b24: 38 09 ff ff addi r0,r9,-1 ffc06b28: 2f 80 00 00 cmpwi cr7,r0,0 ffc06b2c: 90 1f 00 08 stw r0,8(r31) ffc06b30: 40 9e 01 5c bne- cr7,ffc06c8c if (rtems_termios_linesw[tty->t_line].l_close != NULL) { ffc06b34: 80 1f 00 cc lwz r0,204(r31) ffc06b38: 3d 20 00 00 lis r9,0 ffc06b3c: 39 29 27 f0 addi r9,r9,10224 ffc06b40: 54 00 28 34 rlwinm r0,r0,5,0,26 ffc06b44: 7d 29 02 14 add r9,r9,r0 ffc06b48: 80 09 00 04 lwz r0,4(r9) ffc06b4c: 2f 80 00 00 cmpwi cr7,r0,0 ffc06b50: 41 9e 00 14 beq- cr7,ffc06b64 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); ffc06b54: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06b58: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06b5c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06b60: 48 00 00 24 b ffc06b84 <== NOT EXECUTED } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06b64: 80 7f 00 18 lwz r3,24(r31) ffc06b68: 38 80 00 00 li r4,0 ffc06b6c: 38 a0 00 00 li r5,0 ffc06b70: 48 00 12 39 bl ffc07da8 if (sc != RTEMS_SUCCESSFUL) { ffc06b74: 2f 83 00 00 cmpwi cr7,r3,0 ffc06b78: 40 9e 00 40 bne- cr7,ffc06bb8 rtems_fatal_error_occurred (sc); } drainOutput (tty); ffc06b7c: 7f e3 fb 78 mr r3,r31 ffc06b80: 4b ff f6 f5 bl ffc06274 } if (tty->device.outputUsesInterrupts ffc06b84: 80 1f 00 b4 lwz r0,180(r31) ffc06b88: 2f 80 00 02 cmpwi cr7,r0,2 ffc06b8c: 40 be 00 30 bne+ cr7,ffc06bbc == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( ffc06b90: 80 7f 00 c4 lwz r3,196(r31) <== NOT EXECUTED ffc06b94: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06b98: 48 00 0c f1 bl ffc07888 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc06b9c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06ba0: 40 9e 00 18 bne- cr7,ffc06bb8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( ffc06ba4: 80 7f 00 c8 lwz r3,200(r31) <== NOT EXECUTED ffc06ba8: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06bac: 48 00 0c dd bl ffc07888 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc06bb0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06bb4: 41 be 00 08 beq+ cr7,ffc06bbc <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc06bb8: 48 00 1a 19 bl ffc085d0 <== NOT EXECUTED } if (tty->device.lastClose) ffc06bbc: 80 1f 00 9c lwz r0,156(r31) ffc06bc0: 2f 80 00 00 cmpwi cr7,r0,0 ffc06bc4: 41 9e 00 18 beq- cr7,ffc06bdc (*tty->device.lastClose)(tty->major, tty->minor, arg); ffc06bc8: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc06bcc: 80 7f 00 0c lwz r3,12(r31) <== NOT EXECUTED ffc06bd0: 80 9f 00 10 lwz r4,16(r31) <== NOT EXECUTED ffc06bd4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06bd8: 4e 80 04 21 bctrl <== NOT EXECUTED if (tty->forw == NULL) { ffc06bdc: 81 7f 00 00 lwz r11,0(r31) ffc06be0: 81 3f 00 04 lwz r9,4(r31) ffc06be4: 2f 8b 00 00 cmpwi cr7,r11,0 ffc06be8: 40 be 00 1c bne+ cr7,ffc06c04 rtems_termios_ttyTail = tty->back; if ( rtems_termios_ttyTail != NULL ) { ffc06bec: 2f 89 00 00 cmpwi cr7,r9,0 rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; ffc06bf0: 3d 40 00 00 lis r10,0 ffc06bf4: 91 2a 27 18 stw r9,10008(r10) if ( rtems_termios_ttyTail != NULL ) { ffc06bf8: 41 9e 00 10 beq- cr7,ffc06c08 rtems_termios_ttyTail->forw = NULL; ffc06bfc: 91 69 00 00 stw r11,0(r9) <== NOT EXECUTED ffc06c00: 48 00 00 08 b ffc06c08 <== NOT EXECUTED } } else { tty->forw->back = tty->back; ffc06c04: 91 2b 00 04 stw r9,4(r11) } if (tty->back == NULL) { ffc06c08: 81 7f 00 04 lwz r11,4(r31) ffc06c0c: 81 3f 00 00 lwz r9,0(r31) ffc06c10: 2f 8b 00 00 cmpwi cr7,r11,0 ffc06c14: 40 be 00 1c bne+ cr7,ffc06c30 rtems_termios_ttyHead = tty->forw; if ( rtems_termios_ttyHead != NULL ) { ffc06c18: 2f 89 00 00 cmpwi cr7,r9,0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; ffc06c1c: 3d 40 00 00 lis r10,0 ffc06c20: 91 2a 27 1c stw r9,10012(r10) if ( rtems_termios_ttyHead != NULL ) { ffc06c24: 41 9e 00 10 beq- cr7,ffc06c34 rtems_termios_ttyHead->back = NULL; ffc06c28: 91 69 00 04 stw r11,4(r9) ffc06c2c: 48 00 00 08 b ffc06c34 } } else { tty->back->forw = tty->forw; ffc06c30: 91 2b 00 00 stw r9,0(r11) <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); ffc06c34: 80 7f 00 14 lwz r3,20(r31) ffc06c38: 48 00 10 a5 bl ffc07cdc rtems_semaphore_delete (tty->osem); ffc06c3c: 80 7f 00 18 lwz r3,24(r31) ffc06c40: 48 00 10 9d bl ffc07cdc rtems_semaphore_delete (tty->rawOutBuf.Semaphore); ffc06c44: 80 7f 00 8c lwz r3,140(r31) ffc06c48: 48 00 10 95 bl ffc07cdc if ((tty->device.pollRead == NULL) || ffc06c4c: 80 1f 00 a0 lwz r0,160(r31) ffc06c50: 2f 80 00 00 cmpwi cr7,r0,0 ffc06c54: 41 9e 00 10 beq- cr7,ffc06c64 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) ffc06c58: 80 1f 00 b4 lwz r0,180(r31) ffc06c5c: 2f 80 00 02 cmpwi cr7,r0,2 ffc06c60: 40 be 00 0c bne+ cr7,ffc06c6c rtems_semaphore_delete (tty->rawInBuf.Semaphore); ffc06c64: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED ffc06c68: 48 00 10 75 bl ffc07cdc <== NOT EXECUTED free (tty->rawInBuf.theBuf); ffc06c6c: 80 7f 00 58 lwz r3,88(r31) ffc06c70: 4b ff d5 d5 bl ffc04244 free (tty->rawOutBuf.theBuf); ffc06c74: 80 7f 00 7c lwz r3,124(r31) ffc06c78: 4b ff d5 cd bl ffc04244 free (tty->cbuf); ffc06c7c: 80 7f 00 1c lwz r3,28(r31) ffc06c80: 4b ff d5 c5 bl ffc04244 free (tty); ffc06c84: 7f e3 fb 78 mr r3,r31 ffc06c88: 4b ff d5 bd bl ffc04244 } rtems_semaphore_release (rtems_termios_ttyMutex); ffc06c8c: 3d 20 00 00 lis r9,0 ffc06c90: 80 69 27 14 lwz r3,10004(r9) ffc06c94: 48 00 12 59 bl ffc07eec return RTEMS_SUCCESSFUL; } ffc06c98: 80 01 00 14 lwz r0,20(r1) ffc06c9c: 38 60 00 00 li r3,0 ffc06ca0: 83 c1 00 08 lwz r30,8(r1) ffc06ca4: 7c 08 03 a6 mtlr r0 ffc06ca8: 83 e1 00 0c lwz r31,12(r1) ffc06cac: 38 21 00 10 addi r1,r1,16 ffc06cb0: 4e 80 00 20 blr ffc05568 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { ffc05568: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0556c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05570: 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) { ffc05574: 81 63 00 b4 lwz r11,180(r3) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; ffc05578: 80 03 00 90 lwz r0,144(r3) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc0557c: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; ffc05580: 7c 00 22 14 add r0,r0,r4 <== NOT EXECUTED ffc05584: 90 03 00 90 stw r0,144(r3) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc05588: 40 be 00 1c bne+ cr7,ffc055a4 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, ffc0558c: 80 63 00 c8 lwz r3,200(r3) <== NOT EXECUTED ffc05590: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc05594: 48 00 22 f5 bl ffc07888 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc05598: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0559c: 41 be 00 40 beq+ cr7,ffc055dc <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc055a0: 48 00 30 31 bl ffc085d0 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { ffc055a4: 80 03 00 cc lwz r0,204(r3) <== NOT EXECUTED ffc055a8: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc055ac: 40 9e 00 20 bne- cr7,ffc055cc <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc055b0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc055b4: 80 09 28 a4 lwz r0,10404(r9) <== NOT EXECUTED ffc055b8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc055bc: 41 9e 00 20 beq- cr7,ffc055dc <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); ffc055c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc055c4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc055c8: 48 00 00 14 b ffc055dc <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } ffc055cc: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc055d0: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc055d4: 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); ffc055d8: 4b ff fd 5c b ffc05334 <== NOT EXECUTED } } ffc055dc: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc055e0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc055e4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc055e8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc055ec: 4e 80 00 20 blr <== NOT EXECUTED ffc055f0 : * 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) { ffc055f0: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc055f4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc055f8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc055fc: 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) { ffc05600: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED ffc05604: 81 63 00 cc lwz r11,204(r3) <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc05608: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc0560c: 7d 3c 4b 78 mr r28,r9 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc05610: 55 6b 28 34 rlwinm r11,r11,5,0,26 <== NOT EXECUTED ffc05614: 38 0b 00 10 addi r0,r11,16 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc05618: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED ffc0561c: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc05620: 7c 09 00 2e lwzx r0,r9,r0 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc05624: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc05628: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc0562c: 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) { ffc05630: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED ffc05634: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc05638: 92 c1 00 08 stw r22,8(r1) <== NOT EXECUTED ffc0563c: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED ffc05640: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED ffc05644: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED ffc05648: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED ffc0564c: 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) { ffc05650: 40 be 00 3c bne+ cr7,ffc0568c <== 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); ffc05654: 7c bb 2b 78 mr r27,r5 <== NOT EXECUTED if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; (*tty->device.write)(tty->minor, ffc05658: 3a e3 00 4a addi r23,r3,74 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc0565c: 3b 03 00 30 addi r24,r3,48 <== NOT EXECUTED ffc05660: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc05664: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc05668: 48 00 02 84 b ffc058ec <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc0566c: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; ffc05670: 88 7d 00 00 lbz r3,0(r29) <== NOT EXECUTED ffc05674: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc05678: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc0567c: 38 09 00 10 addi r0,r9,16 <== NOT EXECUTED ffc05680: 7c 1c 00 2e lwzx r0,r28,r0 <== NOT EXECUTED ffc05684: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05688: 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--) { ffc0568c: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc05690: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05694: 3b de ff ff addi r30,r30,-1 <== NOT EXECUTED int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { ffc05698: 40 9e ff d4 bne+ cr7,ffc0566c <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { ffc0569c: 80 1f 00 e4 lwz r0,228(r31) <== NOT EXECUTED ffc056a0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc056a4: 40 9e 02 68 bne- cr7,ffc0590c <== NOT EXECUTED ffc056a8: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED ffc056ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc056b0: 41 9e 02 5c beq- cr7,ffc0590c <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc056b4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc056b8: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED ffc056bc: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc056c0: 3b c0 00 00 li r30,0 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc056c4: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc056c8: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc056cc: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED ffc056d0: 48 00 02 40 b ffc05910 <== NOT EXECUTED while (len--) { c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { ffc056d4: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; ffc056d8: 8b 5d 00 00 lbz r26,0(r29) <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { ffc056dc: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc056e0: 41 82 00 58 beq- ffc05738 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { ffc056e4: 89 3f 00 4a lbz r9,74(r31) <== NOT EXECUTED ffc056e8: 88 1f 00 49 lbz r0,73(r31) <== NOT EXECUTED ffc056ec: 7f 89 d0 00 cmpw cr7,r9,r26 <== NOT EXECUTED ffc056f0: 40 be 00 30 bne+ cr7,ffc05720 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { ffc056f4: 54 00 06 3e clrlwi r0,r0,24 <== NOT EXECUTED ffc056f8: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc056fc: 40 be 00 10 bne+ cr7,ffc0570c <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; ffc05700: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05704: 68 00 00 10 xori r0,r0,16 <== NOT EXECUTED ffc05708: 48 00 00 0c b ffc05714 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; ffc0570c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05710: 60 00 00 10 ori r0,r0,16 <== NOT EXECUTED ffc05714: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; ffc05718: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc0571c: 48 00 00 24 b ffc05740 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { ffc05720: 54 00 06 3e clrlwi r0,r0,24 <== NOT EXECUTED ffc05724: 7f 80 d0 00 cmpw cr7,r0,r26 <== NOT EXECUTED ffc05728: 40 be 00 10 bne+ cr7,ffc05738 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; ffc0572c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05730: 54 00 07 34 rlwinm r0,r0,0,28,26 <== NOT EXECUTED ffc05734: 4b ff ff e0 b ffc05714 <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { ffc05738: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED ffc0573c: 41 be 00 64 beq+ cr7,ffc057a0 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { ffc05740: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05744: 54 00 06 b6 rlwinm r0,r0,0,26,27 <== NOT EXECUTED ffc05748: 2f 80 00 20 cmpwi cr7,r0,32 <== NOT EXECUTED ffc0574c: 40 be 01 98 bne+ cr7,ffc058e4 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05750: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED ffc05754: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05758: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED ffc0575c: 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) { ffc05760: 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; ffc05764: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc05768: 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; ffc0576c: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED ffc05770: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc05774: 41 be 00 24 beq+ cr7,ffc05798 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); ffc05778: 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, ffc0577c: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05780: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc05784: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05788: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc0578c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05790: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05794: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05798: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED ffc0579c: 48 00 01 48 b ffc058e4 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; ffc057a0: 83 9f 00 60 lwz r28,96(r31) <== NOT EXECUTED ffc057a4: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc057a8: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED ffc057ac: 7f 80 4b 96 divwu r28,r0,r9 <== NOT EXECUTED ffc057b0: 7f 9c 49 d6 mullw r28,r28,r9 <== NOT EXECUTED ffc057b4: 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 ( ffc057b8: 7e c0 00 a6 mfmsr r22 <== NOT EXECUTED ffc057bc: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc057c0: 7e c0 00 78 andc r0,r22,r0 <== NOT EXECUTED ffc057c4: 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) ffc057c8: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED ffc057cc: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED ffc057d0: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc057d4: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && ffc057d8: 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) ffc057dc: 7c 00 e2 14 add r0,r0,r28 <== NOT EXECUTED ffc057e0: 7d 40 4b 96 divwu r10,r0,r9 <== NOT EXECUTED ffc057e4: 7d 2a 49 d6 mullw r9,r10,r9 <== NOT EXECUTED ffc057e8: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && ffc057ec: 7f 80 58 40 cmplw cr7,r0,r11 <== NOT EXECUTED ffc057f0: 40 9d 00 a0 ble- cr7,ffc05890 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { ffc057f4: 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) ffc057f8: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc057fc: 40 82 00 94 bne- ffc05890 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; ffc05800: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05804: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc05808: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) ffc0580c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05810: 70 00 04 02 andi. r0,r0,1026 <== NOT EXECUTED ffc05814: 2f 80 04 00 cmpwi cr7,r0,1024 <== NOT EXECUTED ffc05818: 40 be 00 44 bne+ cr7,ffc0585c <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || ffc0581c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05820: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc05824: 40 82 00 10 bne- ffc05834 <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { ffc05828: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED ffc0582c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05830: 40 9e 00 60 bne- cr7,ffc05890 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; ffc05834: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05838: 7e e4 bb 78 mr r4,r23 <== NOT EXECUTED ffc0583c: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05840: 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; ffc05844: 61 29 00 02 ori r9,r9,2 <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05848: 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; ffc0584c: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05850: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05854: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05858: 48 00 00 38 b ffc05890 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) ffc0585c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05860: 70 00 01 04 andi. r0,r0,260 <== NOT EXECUTED ffc05864: 2f 80 01 00 cmpwi cr7,r0,256 <== NOT EXECUTED ffc05868: 40 be 00 28 bne+ cr7,ffc05890 <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc0586c: 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; ffc05870: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05874: 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; ffc05878: 61 29 00 04 ori r9,r9,4 <== NOT EXECUTED ffc0587c: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05880: 41 9e 00 10 beq- cr7,ffc05890 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); ffc05884: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05888: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0588c: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05890: 7e c0 01 24 mtmsr r22 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { ffc05894: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED ffc05898: 7f 9c 00 00 cmpw cr7,r28,r0 <== NOT EXECUTED ffc0589c: 40 be 00 0c bne+ cr7,ffc058a8 <== NOT EXECUTED dropped++; ffc058a0: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc058a4: 48 00 00 40 b ffc058e4 <== NOT EXECUTED } else { tty->rawInBuf.theBuf[newTail] = c; ffc058a8: 81 3f 00 58 lwz r9,88(r31) <== NOT EXECUTED ffc058ac: 7f 49 e1 ae stbx r26,r9,r28 <== NOT EXECUTED tty->rawInBuf.Tail = newTail; /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { ffc058b0: 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; ffc058b4: 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 )) { ffc058b8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc058bc: 40 9e 00 28 bne- cr7,ffc058e4 <== NOT EXECUTED ffc058c0: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED ffc058c4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc058c8: 41 9e 00 1c beq- cr7,ffc058e4 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc058cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc058d0: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED ffc058d4: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED ffc058d8: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc058dc: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc058e0: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; ffc058e4: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED ffc058e8: 3b 7b ff ff addi r27,r27,-1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { ffc058ec: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc058f0: 40 9e fd e4 bne+ cr7,ffc056d4 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; ffc058f4: 80 1f 00 78 lwz r0,120(r31) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); ffc058f8: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; ffc058fc: 7c 00 f2 14 add r0,r0,r30 <== NOT EXECUTED ffc05900: 90 1f 00 78 stw r0,120(r31) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); ffc05904: 48 00 25 e9 bl ffc07eec <== NOT EXECUTED return dropped; ffc05908: 48 00 00 08 b ffc05910 <== NOT EXECUTED ffc0590c: 3b c0 00 00 li r30,0 <== NOT EXECUTED } ffc05910: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc05914: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05918: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED ffc0591c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05920: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc05924: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc05928: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc0592c: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc05930: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc05934: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc05938: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc0593c: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc05940: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc05944: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc05948: 4e 80 00 20 blr <== NOT EXECUTED ffc0529c : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { ffc0529c: 7c 08 02 a6 mflr r0 ffc052a0: 94 21 ff f8 stwu r1,-8(r1) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { ffc052a4: 3c e0 00 00 lis r7,0 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { ffc052a8: 90 01 00 0c stw r0,12(r1) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { ffc052ac: 80 07 27 14 lwz r0,10004(r7) ffc052b0: 38 e7 27 14 addi r7,r7,10004 ffc052b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc052b8: 40 be 00 28 bne+ cr7,ffc052e0 sc = rtems_semaphore_create ( ffc052bc: 3c 60 54 52 lis r3,21586 ffc052c0: 60 63 6d 69 ori r3,r3,28009 ffc052c4: 38 80 00 01 li r4,1 ffc052c8: 38 a0 00 54 li r5,84 ffc052cc: 38 c0 00 00 li r6,0 ffc052d0: 48 00 28 09 bl ffc07ad8 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) ffc052d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc052d8: 41 be 00 08 beq+ cr7,ffc052e0 rtems_fatal_error_occurred (sc); ffc052dc: 48 00 32 f5 bl ffc085d0 <== NOT EXECUTED } } ffc052e0: 80 01 00 0c lwz r0,12(r1) ffc052e4: 38 21 00 08 addi r1,r1,8 ffc052e8: 7c 08 03 a6 mtlr r0 ffc052ec: 4e 80 00 20 blr ffc066d0 : } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc066d0: 94 21 ff e0 stwu r1,-32(r1) ffc066d4: 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); ffc066d8: 38 80 00 00 li r4,0 } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc066dc: 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; ffc066e0: 38 00 00 00 li r0,0 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc066e4: 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; ffc066e8: 81 23 00 00 lwz r9,0(r3) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc066ec: 93 e1 00 1c stw r31,28(r1) rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; ffc066f0: 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; ffc066f4: 83 e9 00 38 lwz r31,56(r9) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc066f8: 93 c1 00 18 stw r30,24(r1) ffc066fc: 7c 7e 1b 78 mr r30,r3 struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06700: 80 7f 00 18 lwz r3,24(r31) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06704: 93 81 00 10 stw r28,16(r1) ffc06708: 93 a1 00 14 stw r29,20(r1) ffc0670c: 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; ffc06710: 83 9e 00 08 lwz r28,8(r30) rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06714: 48 00 16 95 bl ffc07da8 if (sc != RTEMS_SUCCESSFUL) { ffc06718: 7c 7d 1b 79 mr. r29,r3 ffc0671c: 40 82 03 9c bne- ffc06ab8 args->ioctl_return = sc; return sc; } switch (args->command) { ffc06720: 80 1e 00 04 lwz r0,4(r30) ffc06724: 2f 80 00 04 cmpwi cr7,r0,4 ffc06728: 41 9e 02 c8 beq- cr7,ffc069f0 ffc0672c: 2b 80 00 04 cmplwi cr7,r0,4 ffc06730: 41 9d 00 20 bgt- cr7,ffc06750 ffc06734: 2f 80 00 02 cmpwi cr7,r0,2 ffc06738: 41 9e 00 a0 beq- cr7,ffc067d8 ffc0673c: 2b 80 00 02 cmplwi cr7,r0,2 ffc06740: 41 9d 02 90 bgt- cr7,ffc069d0 ffc06744: 2f 80 00 01 cmpwi cr7,r0,1 ffc06748: 40 be 00 44 bne+ cr7,ffc0678c ffc0674c: 48 00 00 78 b ffc067c4 ffc06750: 3d 20 40 04 lis r9,16388 <== NOT EXECUTED ffc06754: 61 29 66 7f ori r9,r9,26239 <== NOT EXECUTED ffc06758: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc0675c: 41 9e 03 24 beq- cr7,ffc06a80 <== NOT EXECUTED ffc06760: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED ffc06764: 41 9d 00 10 bgt- cr7,ffc06774 <== NOT EXECUTED ffc06768: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc0676c: 40 be 00 20 bne+ cr7,ffc0678c <== NOT EXECUTED ffc06770: 48 00 02 6c b ffc069dc <== NOT EXECUTED ffc06774: 6c 09 40 04 xoris r9,r0,16388 <== NOT EXECUTED ffc06778: 2f 89 74 1a cmpwi cr7,r9,29722 <== NOT EXECUTED ffc0677c: 41 9e 02 f8 beq- cr7,ffc06a74 <== NOT EXECUTED ffc06780: 6c 09 80 04 xoris r9,r0,32772 <== NOT EXECUTED ffc06784: 2f 89 74 1b cmpwi cr7,r9,29723 <== NOT EXECUTED ffc06788: 41 9e 02 7c beq- cr7,ffc06a04 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { ffc0678c: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06790: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06794: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED ffc06798: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc0679c: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc067a0: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc067a4: 3b a0 00 0a li r29,10 <== NOT EXECUTED ffc067a8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc067ac: 41 9e 03 04 beq- cr7,ffc06ab0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); ffc067b0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc067b4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc067b8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc067bc: 4e 80 04 21 bctrl <== NOT EXECUTED ffc067c0: 48 00 02 ac b ffc06a6c <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; ffc067c4: 80 7e 00 08 lwz r3,8(r30) ffc067c8: 38 9f 00 30 addi r4,r31,48 ffc067cc: 38 a0 00 24 li r5,36 ffc067d0: 48 00 a9 c5 bl ffc11194 break; ffc067d4: 48 00 02 dc b ffc06ab0 case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; ffc067d8: 80 9e 00 08 lwz r4,8(r30) ffc067dc: 38 7f 00 30 addi r3,r31,48 ffc067e0: 38 a0 00 24 li r5,36 ffc067e4: 48 00 a9 b1 bl ffc11194 /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && ffc067e8: 80 1f 00 b8 lwz r0,184(r31) ffc067ec: 70 09 02 00 andi. r9,r0,512 ffc067f0: 41 82 00 78 beq- ffc06868 ffc067f4: 80 1f 00 30 lwz r0,48(r31) ffc067f8: 70 09 04 00 andi. r9,r0,1024 ffc067fc: 40 82 00 6c bne- ffc06868 !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); ffc06800: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED ffc06804: 38 00 fd ef li r0,-529 <== NOT EXECUTED ffc06808: 7d 20 00 38 and r0,r9,r0 <== NOT EXECUTED ffc0680c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { ffc06810: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06814: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc06818: 41 82 00 50 beq- ffc06868 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0681c: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED ffc06820: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc06824: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED ffc06828: 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) { ffc0682c: 81 3f 00 94 lwz r9,148(r31) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; ffc06830: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc06834: 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; ffc06838: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED ffc0683c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc06840: 41 be 00 24 beq+ cr7,ffc06864 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); ffc06844: 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, ffc06848: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc0684c: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc06850: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc06854: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc06858: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc0685c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06860: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc06864: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && ffc06868: 80 1f 00 b8 lwz r0,184(r31) ffc0686c: 70 09 04 00 andi. r9,r0,1024 ffc06870: 41 82 00 28 beq- ffc06898 ffc06874: 80 1f 00 30 lwz r0,48(r31) <== NOT EXECUTED ffc06878: 70 09 10 00 andi. r9,r0,4096 <== NOT EXECUTED ffc0687c: 40 82 00 1c bne- ffc06898 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); ffc06880: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06884: 54 00 05 a8 rlwinm r0,r0,0,22,20 <== NOT EXECUTED ffc06888: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); ffc0688c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06890: 54 00 07 fa rlwinm r0,r0,0,31,29 <== NOT EXECUTED ffc06894: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && ffc06898: 80 1f 00 b8 lwz r0,184(r31) ffc0689c: 70 09 01 00 andi. r9,r0,256 ffc068a0: 41 82 00 4c beq- ffc068ec ffc068a4: 80 1f 00 38 lwz r0,56(r31) <== NOT EXECUTED ffc068a8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc068ac: 41 9c 00 40 blt- cr7,ffc068ec <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); ffc068b0: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc068b4: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc068b8: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && ffc068bc: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc068c0: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc068c4: 41 82 00 1c beq- ffc068e0 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { ffc068c8: 80 1f 00 b0 lwz r0,176(r31) <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && ffc068cc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc068d0: 41 9e 00 10 beq- cr7,ffc068e0 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); ffc068d4: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc068d8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc068dc: 4e 80 04 21 bctrl <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); ffc068e0: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc068e4: 54 00 07 b8 rlwinm r0,r0,0,30,28 <== NOT EXECUTED ffc068e8: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { ffc068ec: 80 1f 00 38 lwz r0,56(r31) ffc068f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc068f4: 40 bc 00 10 bge+ cr7,ffc06904 tty->flow_ctrl |= FL_MDRTS; ffc068f8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc068fc: 60 00 01 00 ori r0,r0,256 <== NOT EXECUTED ffc06900: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { ffc06904: 80 1f 00 30 lwz r0,48(r31) ffc06908: 70 09 10 00 andi. r9,r0,4096 ffc0690c: 41 82 00 10 beq- ffc0691c tty->flow_ctrl |= FL_MDXOF; ffc06910: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06914: 60 00 04 00 ori r0,r0,1024 <== NOT EXECUTED ffc06918: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { ffc0691c: 80 1f 00 30 lwz r0,48(r31) ffc06920: 70 09 04 00 andi. r9,r0,1024 ffc06924: 41 82 00 10 beq- ffc06934 tty->flow_ctrl |= FL_MDXON; ffc06928: 80 1f 00 b8 lwz r0,184(r31) ffc0692c: 60 00 02 00 ori r0,r0,512 ffc06930: 90 1f 00 b8 stw r0,184(r31) tty->termios = *(struct termios *)args->buffer; /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { ffc06934: 83 9f 00 3c lwz r28,60(r31) ffc06938: 73 9c 00 02 andi. r28,r28,2 ffc0693c: 41 82 00 0c beq- ffc06948 tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc06940: 38 00 00 00 li r0,0 ffc06944: 48 00 00 54 b ffc06998 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; ffc06948: 8b 7f 00 46 lbz r27,70(r31) <== NOT EXECUTED ffc0694c: 48 00 0d 01 bl ffc0764c <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc06950: 39 20 00 0a li r9,10 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc06954: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc06958: 7f 63 d9 d6 mullw r27,r3,r27 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc0695c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc06960: 7f 7b 4b 96 divwu r27,r27,r9 <== NOT EXECUTED ffc06964: 89 3f 00 47 lbz r9,71(r31) <== NOT EXECUTED ffc06968: 93 7f 00 54 stw r27,84(r31) <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc0696c: 41 9e 00 24 beq- cr7,ffc06990 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) ffc06970: 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; ffc06974: 93 9f 00 6c stw r28,108(r31) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; ffc06978: 93 7f 00 70 stw r27,112(r31) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) ffc0697c: 41 9e 00 0c beq- cr7,ffc06988 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc06980: 93 9f 00 74 stw r28,116(r31) <== NOT EXECUTED ffc06984: 48 00 00 2c b ffc069b0 <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; ffc06988: 93 7f 00 74 stw r27,116(r31) <== NOT EXECUTED ffc0698c: 48 00 00 24 b ffc069b0 <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { ffc06990: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06994: 41 9e 00 14 beq- cr7,ffc069a8 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc06998: 90 1f 00 74 stw r0,116(r31) else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc0699c: 90 1f 00 6c stw r0,108(r31) tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; ffc069a0: 90 1f 00 70 stw r0,112(r31) ffc069a4: 48 00 00 0c b ffc069b0 tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; ffc069a8: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc069ac: 90 1f 00 6c stw r0,108(r31) <== NOT EXECUTED } } } if (tty->device.setAttributes) ffc069b0: 80 1f 00 a8 lwz r0,168(r31) ffc069b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc069b8: 41 9e 00 f8 beq- cr7,ffc06ab0 (*tty->device.setAttributes)(tty->minor, &tty->termios); ffc069bc: 80 7f 00 10 lwz r3,16(r31) ffc069c0: 38 9f 00 30 addi r4,r31,48 ffc069c4: 7c 09 03 a6 mtctr r0 ffc069c8: 4e 80 04 21 bctrl ffc069cc: 48 00 00 e4 b ffc06ab0 break; case RTEMS_IO_TCDRAIN: drainOutput (tty); ffc069d0: 7f e3 fb 78 mr r3,r31 ffc069d4: 4b ff f8 a1 bl ffc06274 break; ffc069d8: 48 00 00 d8 b ffc06ab0 case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; ffc069dc: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc069e0: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED ffc069e4: 91 3f 00 d4 stw r9,212(r31) <== NOT EXECUTED ffc069e8: 91 5f 00 d8 stw r10,216(r31) <== NOT EXECUTED break; ffc069ec: 48 00 00 c4 b ffc06ab0 <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; ffc069f0: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc069f4: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED ffc069f8: 91 3f 00 dc stw r9,220(r31) <== NOT EXECUTED ffc069fc: 91 5f 00 e0 stw r10,224(r31) <== NOT EXECUTED break; ffc06a00: 48 00 00 b0 b ffc06ab0 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { ffc06a04: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06a08: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06a0c: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED ffc06a10: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc06a14: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc06a18: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc06a1c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06a20: 41 9e 00 14 beq- cr7,ffc06a34 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); ffc06a24: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06a28: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06a2c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06a30: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); ffc06a34: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06a38: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc06a3c: 39 6b 27 f0 addi r11,r11,10224 <== 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); ffc06a40: 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) { ffc06a44: 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); ffc06a48: 91 3f 00 cc stw r9,204(r31) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06a4c: 7c 0b 00 2e lwzx r0,r11,r0 <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ ffc06a50: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc06a54: 91 7f 00 d0 stw r11,208(r31) <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06a58: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06a5c: 41 9e 00 54 beq- cr7,ffc06ab0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); ffc06a60: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06a64: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06a68: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06a6c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc06a70: 48 00 00 40 b ffc06ab0 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; ffc06a74: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED ffc06a78: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06a7c: 48 00 00 30 b ffc06aac <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; ffc06a80: 81 3f 00 60 lwz r9,96(r31) <== NOT EXECUTED ffc06a84: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED if ( rawnc < 0 ) ffc06a88: 7c 00 48 51 subf. r0,r0,r9 <== NOT EXECUTED ffc06a8c: 40 a0 00 0c bge+ ffc06a98 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; ffc06a90: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc06a94: 7c 00 4a 14 add r0,r0,r9 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; ffc06a98: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED ffc06a9c: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED ffc06aa0: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED ffc06aa4: 7d 6b 50 50 subf r11,r11,r10 <== NOT EXECUTED ffc06aa8: 7c 0b 02 14 add r0,r11,r0 <== NOT EXECUTED ffc06aac: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); ffc06ab0: 80 7f 00 18 lwz r3,24(r31) ffc06ab4: 48 00 14 39 bl ffc07eec args->ioctl_return = sc; return sc; } ffc06ab8: 80 01 00 24 lwz r0,36(r1) ffc06abc: 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; ffc06ac0: 93 be 00 0c stw r29,12(r30) return sc; } ffc06ac4: 7c 08 03 a6 mtlr r0 ffc06ac8: 83 61 00 0c lwz r27,12(r1) ffc06acc: 83 81 00 10 lwz r28,16(r1) ffc06ad0: 83 a1 00 14 lwz r29,20(r1) ffc06ad4: 83 c1 00 18 lwz r30,24(r1) ffc06ad8: 83 e1 00 1c lwz r31,28(r1) ffc06adc: 38 21 00 20 addi r1,r1,32 ffc06ae0: 4e 80 00 20 blr ffc06cb4 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06cb4: 94 21 ff d0 stwu r1,-48(r1) struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06cb8: 3d 20 00 00 lis r9,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06cbc: 7c 08 02 a6 mflr r0 ffc06cc0: 93 61 00 1c stw r27,28(r1) ffc06cc4: 7c 7b 1b 78 mr r27,r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06cc8: 80 69 27 14 lwz r3,10004(r9) rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06ccc: 93 21 00 14 stw r25,20(r1) ffc06cd0: 7c b9 2b 78 mr r25,r5 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06cd4: 38 a0 00 00 li r5,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06cd8: 93 41 00 18 stw r26,24(r1) ffc06cdc: 7c 9a 23 78 mr r26,r4 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06ce0: 38 80 00 00 li r4,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06ce4: 93 01 00 10 stw r24,16(r1) ffc06ce8: 7c d8 33 78 mr r24,r6 ffc06cec: 93 a1 00 24 stw r29,36(r1) ffc06cf0: 90 01 00 34 stw r0,52(r1) ffc06cf4: 92 e1 00 0c stw r23,12(r1) ffc06cf8: 93 81 00 20 stw r28,32(r1) ffc06cfc: 93 c1 00 28 stw r30,40(r1) ffc06d00: 93 e1 00 2c stw r31,44(r1) struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06d04: 48 00 10 a5 bl ffc07da8 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc06d08: 7c 7d 1b 79 mr. r29,r3 ffc06d0c: 40 82 03 f8 bne- ffc07104 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { ffc06d10: 3d 20 00 00 lis r9,0 ffc06d14: 83 c9 27 1c lwz r30,10012(r9) ffc06d18: 48 00 00 20 b ffc06d38 if ((tty->major == major) && (tty->minor == minor)) ffc06d1c: 80 1e 00 0c lwz r0,12(r30) ffc06d20: 7f 80 d8 00 cmpw cr7,r0,r27 ffc06d24: 40 be 00 10 bne+ cr7,ffc06d34 ffc06d28: 80 1e 00 10 lwz r0,16(r30) ffc06d2c: 7f 80 d0 00 cmpw cr7,r0,r26 ffc06d30: 41 9e 03 44 beq- cr7,ffc07074 */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { ffc06d34: 83 de 00 00 lwz r30,0(r30) ffc06d38: 2f 9e 00 00 cmpwi cr7,r30,0 ffc06d3c: 40 9e ff e0 bne+ cr7,ffc06d1c ffc06d40: 48 00 03 fc b ffc0713c return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; ffc06d44: 3f 80 00 00 lis r28,0 ffc06d48: 3a fc 21 68 addi r23,r28,8552 ffc06d4c: 80 17 00 04 lwz r0,4(r23) ffc06d50: 90 1e 00 64 stw r0,100(r30) tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); ffc06d54: 80 7e 00 64 lwz r3,100(r30) ffc06d58: 4b ff d8 51 bl ffc045a8 if (tty->rawInBuf.theBuf == NULL) { ffc06d5c: 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); ffc06d60: 90 7e 00 58 stw r3,88(r30) if (tty->rawInBuf.theBuf == NULL) { ffc06d64: 40 be 00 1c bne+ cr7,ffc06d80 free(tty); ffc06d68: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06d6c: 4b ff d4 d9 bl ffc04244 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); ffc06d70: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06d74: 80 69 27 14 lwz r3,10004(r9) <== NOT EXECUTED ffc06d78: 3b a0 00 1a li r29,26 <== NOT EXECUTED ffc06d7c: 48 00 03 84 b ffc07100 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; ffc06d80: 80 17 00 08 lwz r0,8(r23) ffc06d84: 90 1e 00 88 stw r0,136(r30) tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); ffc06d88: 80 7e 00 88 lwz r3,136(r30) ffc06d8c: 4b ff d8 1d bl ffc045a8 if (tty->rawOutBuf.theBuf == NULL) { ffc06d90: 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); ffc06d94: 90 7e 00 7c stw r3,124(r30) if (tty->rawOutBuf.theBuf == NULL) { ffc06d98: 40 be 00 10 bne+ cr7,ffc06da8 free((void *)(tty->rawInBuf.theBuf)); ffc06d9c: 80 7e 00 58 lwz r3,88(r30) <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); ffc06da0: 3b a0 00 1a li r29,26 <== NOT EXECUTED ffc06da4: 48 00 00 28 b ffc06dcc <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); ffc06da8: 80 7c 21 68 lwz r3,8552(r28) ffc06dac: 4b ff d7 fd bl ffc045a8 if (tty->cbuf == NULL) { ffc06db0: 2f 83 00 00 cmpwi cr7,r3,0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); ffc06db4: 90 7e 00 1c stw r3,28(r30) if (tty->cbuf == NULL) { ffc06db8: 40 be 00 24 bne+ cr7,ffc06ddc free((void *)(tty->rawOutBuf.theBuf)); ffc06dbc: 80 7e 00 7c lwz r3,124(r30) <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); ffc06dc0: 3b a0 00 1a li r29,26 <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); ffc06dc4: 4b ff d4 81 bl ffc04244 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); ffc06dc8: 80 7e 00 58 lwz r3,88(r30) <== NOT EXECUTED ffc06dcc: 4b ff d4 79 bl ffc04244 <== NOT EXECUTED free(tty); ffc06dd0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06dd4: 4b ff d4 71 bl ffc04244 <== NOT EXECUTED ffc06dd8: 48 00 03 20 b ffc070f8 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc06ddc: 3d 20 00 00 lis r9,0 ffc06de0: 81 29 27 1c lwz r9,10012(r9) return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; ffc06de4: 38 00 00 00 li r0,0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; ffc06de8: 90 1e 00 04 stw r0,4(r30) if (rtems_termios_ttyHead != NULL) ffc06dec: 2f 89 00 00 cmpwi cr7,r9,0 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; ffc06df0: 90 1e 00 d4 stw r0,212(r30) tty->tty_snd.sw_arg = NULL; ffc06df4: 90 1e 00 d8 stw r0,216(r30) tty->tty_rcv.sw_pfn = NULL; ffc06df8: 90 1e 00 dc stw r0,220(r30) tty->tty_rcv.sw_arg = NULL; ffc06dfc: 90 1e 00 e0 stw r0,224(r30) tty->tty_rcvwakeup = 0; ffc06e00: 90 1e 00 e4 stw r0,228(r30) /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc06e04: 91 3e 00 00 stw r9,0(r30) tty->back = NULL; if (rtems_termios_ttyHead != NULL) ffc06e08: 41 9e 00 08 beq- cr7,ffc06e10 rtems_termios_ttyHead->back = tty; ffc06e0c: 93 c9 00 04 stw r30,4(r9) rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) ffc06e10: 3d 20 00 00 lis r9,0 ffc06e14: 80 09 27 18 lwz r0,10008(r9) */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; ffc06e18: 3d 60 00 00 lis r11,0 ffc06e1c: 93 eb 27 1c stw r31,10012(r11) if (rtems_termios_ttyTail == NULL) ffc06e20: 2f 80 00 00 cmpwi cr7,r0,0 ffc06e24: 40 be 00 08 bne+ cr7,ffc06e2c rtems_termios_ttyTail = tty; ffc06e28: 93 e9 27 18 stw r31,10008(r9) tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06e2c: 3f 80 00 00 lis r28,0 ffc06e30: 3b 9c 21 68 addi r28,r28,8552 ffc06e34: 88 7c 00 0c lbz r3,12(r28) ffc06e38: 38 80 00 01 li r4,1 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; ffc06e3c: 93 5f 00 10 stw r26,16(r31) tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06e40: 38 a0 00 54 li r5,84 ffc06e44: 64 63 54 52 oris r3,r3,21586 rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; tty->major = major; ffc06e48: 93 7f 00 0c stw r27,12(r31) /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06e4c: 60 63 69 00 ori r3,r3,26880 ffc06e50: 38 c0 00 00 li r6,0 ffc06e54: 38 ff 00 14 addi r7,r31,20 ffc06e58: 48 00 0c 81 bl ffc07ad8 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) ffc06e5c: 2f 83 00 00 cmpwi cr7,r3,0 ffc06e60: 40 9e 02 94 bne- cr7,ffc070f4 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( ffc06e64: 88 7c 00 0c lbz r3,12(r28) ffc06e68: 38 80 00 01 li r4,1 ffc06e6c: 38 a0 00 54 li r5,84 ffc06e70: 64 63 54 52 oris r3,r3,21586 ffc06e74: 60 63 6f 00 ori r3,r3,28416 ffc06e78: 38 c0 00 00 li r6,0 ffc06e7c: 38 ff 00 18 addi r7,r31,24 ffc06e80: 48 00 0c 59 bl ffc07ad8 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) ffc06e84: 2f 83 00 00 cmpwi cr7,r3,0 ffc06e88: 40 9e 02 6c bne- cr7,ffc070f4 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( ffc06e8c: 88 7c 00 0c lbz r3,12(r28) ffc06e90: 38 80 00 00 li r4,0 ffc06e94: 38 a0 00 20 li r5,32 ffc06e98: 64 63 54 52 oris r3,r3,21586 ffc06e9c: 60 63 78 00 ori r3,r3,30720 ffc06ea0: 38 c0 00 00 li r6,0 ffc06ea4: 38 ff 00 8c addi r7,r31,140 ffc06ea8: 48 00 0c 31 bl ffc07ad8 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) ffc06eac: 7c 60 1b 79 mr. r0,r3 ffc06eb0: 40 82 02 44 bne- ffc070f4 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; ffc06eb4: 81 18 00 00 lwz r8,0(r24) ffc06eb8: 81 58 00 04 lwz r10,4(r24) ffc06ebc: 81 78 00 08 lwz r11,8(r24) ffc06ec0: 81 38 00 0c lwz r9,12(r24) ffc06ec4: 91 1f 00 98 stw r8,152(r31) ffc06ec8: 91 5f 00 9c stw r10,156(r31) ffc06ecc: 91 7f 00 a0 stw r11,160(r31) ffc06ed0: 91 3f 00 a4 stw r9,164(r31) ffc06ed4: 81 38 00 1c lwz r9,28(r24) ffc06ed8: 81 18 00 10 lwz r8,16(r24) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc06edc: 2f 89 00 02 cmpwi cr7,r9,2 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; ffc06ee0: 81 58 00 14 lwz r10,20(r24) ffc06ee4: 81 78 00 18 lwz r11,24(r24) RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; ffc06ee8: 90 1f 00 94 stw r0,148(r31) /* * Set callbacks */ tty->device = *callbacks; ffc06eec: 91 1f 00 a8 stw r8,168(r31) ffc06ef0: 91 5f 00 ac stw r10,172(r31) ffc06ef4: 91 7f 00 b0 stw r11,176(r31) ffc06ef8: 91 3f 00 b4 stw r9,180(r31) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc06efc: 40 be 00 5c bne+ cr7,ffc06f58 sc = rtems_task_create ( ffc06f00: 88 7c 00 0c lbz r3,12(r28) <== NOT EXECUTED ffc06f04: 38 80 00 0a li r4,10 <== NOT EXECUTED ffc06f08: 38 a0 04 00 li r5,1024 <== NOT EXECUTED ffc06f0c: 64 63 54 78 oris r3,r3,21624 <== NOT EXECUTED ffc06f10: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED ffc06f14: 38 c0 05 00 li r6,1280 <== NOT EXECUTED ffc06f18: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc06f1c: 39 1f 00 c8 addi r8,r31,200 <== NOT EXECUTED ffc06f20: 48 00 10 95 bl ffc07fb4 <== 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) ffc06f24: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06f28: 40 9e 01 cc bne- cr7,ffc070f4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( ffc06f2c: 88 7c 00 0c lbz r3,12(r28) <== NOT EXECUTED ffc06f30: 38 80 00 09 li r4,9 <== NOT EXECUTED ffc06f34: 38 a0 04 00 li r5,1024 <== NOT EXECUTED ffc06f38: 64 63 52 78 oris r3,r3,21112 <== NOT EXECUTED ffc06f3c: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED ffc06f40: 38 c0 05 00 li r6,1280 <== NOT EXECUTED ffc06f44: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc06f48: 39 1f 00 c4 addi r8,r31,196 <== NOT EXECUTED ffc06f4c: 48 00 10 69 bl ffc07fb4 <== 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) ffc06f50: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06f54: 40 9e 01 a0 bne- cr7,ffc070f4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || ffc06f58: 80 1f 00 a0 lwz r0,160(r31) ffc06f5c: 2f 80 00 00 cmpwi cr7,r0,0 ffc06f60: 41 9e 00 10 beq- cr7,ffc06f70 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ ffc06f64: 80 1f 00 b4 lwz r0,180(r31) ffc06f68: 2f 80 00 02 cmpwi cr7,r0,2 ffc06f6c: 40 be 00 30 bne+ cr7,ffc06f9c sc = rtems_semaphore_create ( ffc06f70: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06f74: 88 69 21 74 lbz r3,8564(r9) <== NOT EXECUTED ffc06f78: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc06f7c: 38 a0 00 24 li r5,36 <== NOT EXECUTED ffc06f80: 64 63 54 52 oris r3,r3,21586 <== NOT EXECUTED ffc06f84: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc06f88: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc06f8c: 38 ff 00 68 addi r7,r31,104 <== NOT EXECUTED ffc06f90: 48 00 0b 49 bl ffc07ad8 <== 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) ffc06f94: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06f98: 40 9e 01 5c bne- cr7,ffc070f4 <== NOT EXECUTED tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; ffc06f9c: 39 60 00 7f li r11,127 ffc06fa0: 99 7f 00 43 stb r11,67(r31) tty->termios.c_cc[VKILL] = '\025'; ffc06fa4: 39 60 00 15 li r11,21 tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; ffc06fa8: 38 00 00 00 li r0,0 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; ffc06fac: 99 7f 00 44 stb r11,68(r31) tty->termios.c_cc[VEOF] = '\004'; ffc06fb0: 39 60 00 04 li r11,4 tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; ffc06fb4: 39 20 00 03 li r9,3 tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; ffc06fb8: 99 7f 00 45 stb r11,69(r31) tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; ffc06fbc: 39 60 00 11 li r11,17 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; ffc06fc0: 39 00 25 02 li r8,9474 tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; ffc06fc4: 99 7f 00 49 stb r11,73(r31) tty->termios.c_cc[VSTOP] = '\023'; ffc06fc8: 39 60 00 13 li r11,19 ffc06fcc: 99 7f 00 4a stb r11,74(r31) tty->termios.c_cc[VSUSP] = '\032'; ffc06fd0: 39 60 00 1a li r11,26 ffc06fd4: 99 7f 00 4b stb r11,75(r31) tty->termios.c_cc[VREPRINT] = '\022'; ffc06fd8: 39 60 00 12 li r11,18 tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; ffc06fdc: 98 1f 00 51 stb r0,81(r31) tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; ffc06fe0: 99 7f 00 4d stb r11,77(r31) tty->termios.c_cc[VDISCARD] = '\017'; ffc06fe4: 39 60 00 0f li r11,15 tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; ffc06fe8: 98 1f 00 4c stb r0,76(r31) tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; ffc06fec: 38 00 00 00 li r0,0 ffc06ff0: 90 1f 00 b8 stw r0,184(r31) tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; ffc06ff4: 99 7f 00 4e stb r11,78(r31) tty->termios.c_cc[VWERASE] = '\027'; ffc06ff8: 39 60 00 17 li r11,23 tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; ffc06ffc: 99 3f 00 41 stb r9,65(r31) tty->termios.c_cc[VQUIT] = '\034'; ffc07000: 39 20 00 1c li r9,28 tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; ffc07004: 99 7f 00 4f stb r11,79(r31) tty->termios.c_cc[VLNEXT] = '\026'; ffc07008: 39 60 00 16 li r11,22 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; ffc0700c: 99 3f 00 42 stb r9,66(r31) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc07010: 3d 20 00 00 lis r9,0 ffc07014: 39 29 21 68 addi r9,r9,8552 /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc07018: 80 1f 00 64 lwz r0,100(r31) tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; ffc0701c: 99 7f 00 50 stb r11,80(r31) /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc07020: 54 00 f8 7e rlwinm r0,r0,31,1,31 tty->highwater = tty->rawInBuf.Size * 3/4; ffc07024: 81 5f 00 64 lwz r10,100(r31) /* * Bump name characer */ if (c++ == 'z') ffc07028: 89 69 00 0c lbz r11,12(r9) tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; ffc0702c: 1d 4a 00 03 mulli r10,r10,3 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; ffc07030: 91 1f 00 30 stw r8,48(r31) tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; ffc07034: 55 4a f0 be rlwinm r10,r10,30,2,31 /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc07038: 90 1f 00 bc stw r0,188(r31) tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc0703c: 2f 8b 00 7a cmpwi cr7,r11,122 tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; ffc07040: 91 5f 00 c0 stw r10,192(r31) /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; ffc07044: 39 40 18 05 li r10,6149 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc07048: 39 6b 00 01 addi r11,r11,1 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; ffc0704c: 91 5f 00 34 stw r10,52(r31) tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; ffc07050: 39 40 08 bd li r10,2237 ffc07054: 91 5f 00 38 stw r10,56(r31) tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; ffc07058: 39 40 00 00 li r10,0 ffc0705c: 61 4a 82 3b ori r10,r10,33339 ffc07060: 91 5f 00 3c stw r10,60(r31) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc07064: 99 69 00 0c stb r11,12(r9) ffc07068: 40 be 00 0c bne+ cr7,ffc07074 c = 'a'; ffc0706c: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc07070: 98 09 00 0c stb r0,12(r9) <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { ffc07074: 81 3e 00 08 lwz r9,8(r30) */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; ffc07078: 81 79 00 00 lwz r11,0(r25) if (!tty->refcount++) { ffc0707c: 2f 89 00 00 cmpwi cr7,r9,0 ffc07080: 39 29 00 01 addi r9,r9,1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; ffc07084: 93 cb 00 38 stw r30,56(r11) if (!tty->refcount++) { ffc07088: 91 3e 00 08 stw r9,8(r30) ffc0708c: 40 9e 00 6c bne- cr7,ffc070f8 if (tty->device.firstOpen) ffc07090: 80 1e 00 98 lwz r0,152(r30) ffc07094: 2f 80 00 00 cmpwi cr7,r0,0 ffc07098: 41 9e 00 18 beq- cr7,ffc070b0 (*tty->device.firstOpen)(major, minor, arg); ffc0709c: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc070a0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc070a4: 7f 44 d3 78 mr r4,r26 <== NOT EXECUTED ffc070a8: 7f 25 cb 78 mr r5,r25 <== NOT EXECUTED ffc070ac: 4e 80 04 21 bctrl <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc070b0: 80 1e 00 b4 lwz r0,180(r30) ffc070b4: 2f 80 00 02 cmpwi cr7,r0,2 ffc070b8: 40 be 00 40 bne+ cr7,ffc070f8 sc = rtems_task_start(tty->rxTaskId, ffc070bc: 80 7e 00 c4 lwz r3,196(r30) <== NOT EXECUTED ffc070c0: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc070c4: 38 84 71 e8 addi r4,r4,29160 <== NOT EXECUTED ffc070c8: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc070cc: 48 00 12 21 bl ffc082ec <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) ffc070d0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc070d4: 40 9e 00 20 bne- cr7,ffc070f4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, ffc070d8: 80 7e 00 c8 lwz r3,200(r30) <== NOT EXECUTED ffc070dc: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc070e0: 38 84 71 5c addi r4,r4,29020 <== NOT EXECUTED ffc070e4: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc070e8: 48 00 12 05 bl ffc082ec <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) ffc070ec: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc070f0: 41 be 00 08 beq+ cr7,ffc070f8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc070f4: 48 00 14 dd bl ffc085d0 <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); ffc070f8: 3d 20 00 00 lis r9,0 ffc070fc: 80 69 27 14 lwz r3,10004(r9) ffc07100: 48 00 0d ed bl ffc07eec return RTEMS_SUCCESSFUL; } ffc07104: 80 01 00 34 lwz r0,52(r1) ffc07108: 7f a3 eb 78 mr r3,r29 ffc0710c: 82 e1 00 0c lwz r23,12(r1) ffc07110: 7c 08 03 a6 mtlr r0 ffc07114: 83 01 00 10 lwz r24,16(r1) ffc07118: 83 21 00 14 lwz r25,20(r1) ffc0711c: 83 41 00 18 lwz r26,24(r1) ffc07120: 83 61 00 1c lwz r27,28(r1) ffc07124: 83 81 00 20 lwz r28,32(r1) ffc07128: 83 a1 00 24 lwz r29,36(r1) ffc0712c: 83 c1 00 28 lwz r30,40(r1) ffc07130: 83 e1 00 2c lwz r31,44(r1) ffc07134: 38 21 00 30 addi r1,r1,48 ffc07138: 4e 80 00 20 blr static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); ffc0713c: 38 60 00 01 li r3,1 ffc07140: 38 80 00 e8 li r4,232 ffc07144: 48 00 5d ed bl ffc0cf30 if (tty == NULL) { ffc07148: 2f 83 00 00 cmpwi cr7,r3,0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); ffc0714c: 7c 7e 1b 78 mr r30,r3 ffc07150: 7c 7f 1b 78 mr r31,r3 if (tty == NULL) { ffc07154: 40 9e fb f0 bne+ cr7,ffc06d44 ffc07158: 4b ff fc 18 b ffc06d70 <== NOT EXECUTED ffc0594c : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { ffc0594c: 94 21 ff d8 stwu r1,-40(r1) ffc05950: 7c 08 02 a6 mflr r0 ffc05954: 90 01 00 2c stw r0,44(r1) ffc05958: 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) { ffc0595c: 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) { ffc05960: 93 81 00 18 stw r28,24(r1) const unsigned char *buf = _buf; ffc05964: 7c 7c 1b 78 mr r28,r3 unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc05968: 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) { ffc0596c: 93 a1 00 1c stw r29,28(r1) ffc05970: 7c 9d 23 78 mr r29,r4 ffc05974: 93 e1 00 24 stw r31,36(r1) ffc05978: 7c bf 2b 78 mr r31,r5 ffc0597c: 93 21 00 0c stw r25,12(r1) ffc05980: 93 41 00 10 stw r26,16(r1) ffc05984: 93 61 00 14 stw r27,20(r1) ffc05988: 93 c1 00 20 stw r30,32(r1) const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc0598c: 40 be 00 20 bne+ cr7,ffc059ac (*tty->device.write)(tty->minor, (void *)buf, len); ffc05990: 7c 04 03 78 mr r4,r0 ffc05994: 80 1f 00 a4 lwz r0,164(r31) ffc05998: 80 65 00 10 lwz r3,16(r5) ffc0599c: 7f a5 eb 78 mr r5,r29 ffc059a0: 7c 09 03 a6 mtctr r0 ffc059a4: 4e 80 04 21 bctrl return; ffc059a8: 48 00 00 f0 b ffc05a98 } newHead = tty->rawOutBuf.Head; ffc059ac: 83 c5 00 80 lwz r30,128(r5) <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; ffc059b0: 3b 20 00 02 li r25,2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; ffc059b4: 3b 40 00 01 li r26,1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { ffc059b8: 48 00 00 d8 b ffc05a90 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; ffc059bc: 80 1f 00 88 lwz r0,136(r31) <== NOT EXECUTED ffc059c0: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc059c4: 7d 3e 03 96 divwu r9,r30,r0 <== NOT EXECUTED ffc059c8: 7c 09 01 d6 mullw r0,r9,r0 <== NOT EXECUTED ffc059cc: 7f c0 f0 50 subf r30,r0,r30 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc059d0: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED ffc059d4: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc059d8: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED ffc059dc: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { ffc059e0: 48 00 00 38 b ffc05a18 <== NOT EXECUTED tty->rawOutBufState = rob_wait; ffc059e4: 93 3f 00 94 stw r25,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc059e8: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, ffc059ec: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED ffc059f0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc059f4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc059f8: 48 00 23 b1 bl ffc07da8 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc059fc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc05a00: 41 be 00 08 beq+ cr7,ffc05a08 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc05a04: 48 00 2b cd bl ffc085d0 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05a08: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED ffc05a0c: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05a10: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED ffc05a14: 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) { ffc05a18: 80 1f 00 84 lwz r0,132(r31) <== NOT EXECUTED ffc05a1c: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc05a20: 41 9e ff c4 beq+ cr7,ffc059e4 <== 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++; ffc05a24: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05a28: 89 7c 00 00 lbz r11,0(r28) <== NOT EXECUTED ffc05a2c: 81 3f 00 7c lwz r9,124(r31) <== NOT EXECUTED ffc05a30: 7d 69 01 ae stbx r11,r9,r0 <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { ffc05a34: 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; ffc05a38: 93 df 00 80 stw r30,128(r31) <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { ffc05a3c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05a40: 40 9e 00 44 bne- cr7,ffc05a84 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { ffc05a44: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05a48: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED ffc05a4c: 40 a2 00 28 bne+ ffc05a74 <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); ffc05a50: 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, ffc05a54: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05a58: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc05a5c: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05a60: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc05a64: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05a68: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05a6c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05a70: 48 00 00 10 b ffc05a80 <== NOT EXECUTED (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; ffc05a74: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05a78: 60 00 00 20 ori r0,r0,32 <== NOT EXECUTED ffc05a7c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; ffc05a80: 93 5f 00 94 stw r26,148(r31) <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; ffc05a84: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05a88: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; ffc05a8c: 3b bd ff ff addi r29,r29,-1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { ffc05a90: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc05a94: 40 9e ff 28 bne+ cr7,ffc059bc <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } ffc05a98: 80 01 00 2c lwz r0,44(r1) ffc05a9c: 83 21 00 0c lwz r25,12(r1) ffc05aa0: 7c 08 03 a6 mtlr r0 ffc05aa4: 83 41 00 10 lwz r26,16(r1) ffc05aa8: 83 61 00 14 lwz r27,20(r1) ffc05aac: 83 81 00 18 lwz r28,24(r1) ffc05ab0: 83 a1 00 1c lwz r29,28(r1) ffc05ab4: 83 c1 00 20 lwz r30,32(r1) ffc05ab8: 83 e1 00 24 lwz r31,36(r1) ffc05abc: 38 21 00 28 addi r1,r1,40 ffc05ac0: 4e 80 00 20 blr ffc06310 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06310: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc06314: 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); ffc06318: 38 80 00 00 li r4,0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc0631c: 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); ffc06320: 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; ffc06324: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06328: 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; ffc0632c: 83 e9 00 38 lwz r31,56(r9) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06330: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED ffc06334: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06338: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc0633c: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED ffc06340: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED ffc06344: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED ffc06348: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED ffc0634c: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED ffc06350: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED ffc06354: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; ffc06358: 83 9e 00 14 lwz r28,20(r30) <== NOT EXECUTED char *buffer = args->buffer; ffc0635c: 83 7e 00 10 lwz r27,16(r30) <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06360: 48 00 1a 49 bl ffc07da8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc06364: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc06368: 40 82 03 30 bne- ffc06698 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { ffc0636c: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06370: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06374: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED ffc06378: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc0637c: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc06380: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED ffc06384: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06388: 41 9e 00 1c beq- cr7,ffc063a4 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); ffc0638c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc06390: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06394: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06398: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0639c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc063a0: 48 00 02 e8 b ffc06688 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { ffc063a4: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc063a8: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc063ac: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc063b0: 40 be 02 ac bne+ cr7,ffc0665c <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL ffc063b4: 81 3f 00 a0 lwz r9,160(r31) <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; ffc063b8: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED if (tty->device.pollRead != NULL ffc063bc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; ffc063c0: 93 bf 00 20 stw r29,32(r31) <== NOT EXECUTED tty->read_start_column = tty->column; ffc063c4: 90 1f 00 2c stw r0,44(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; ffc063c8: 93 bf 00 24 stw r29,36(r31) <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL ffc063cc: 41 9e 00 fc beq- cr7,ffc064c8 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) ffc063d0: 80 1f 00 b4 lwz r0,180(r31) <== NOT EXECUTED ffc063d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc063d8: 40 be 00 f0 bne+ cr7,ffc064c8 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { ffc063dc: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc063e0: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc063e4: 41 82 00 40 beq- ffc06424 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); ffc063e8: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc063ec: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc063f0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc063f4: 4e 80 04 21 bctrl <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc063f8: 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) { ffc063fc: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc06400: 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) { ffc06404: 40 a0 00 10 bge+ ffc06414 <== NOT EXECUTED rtems_task_wake_after (1); ffc06408: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0640c: 48 00 1f c5 bl ffc083d0 <== NOT EXECUTED ffc06410: 4b ff ff d8 b ffc063e8 <== NOT EXECUTED } else { if (siproc (n, tty)) ffc06414: 4b ff fc e1 bl ffc060f4 <== NOT EXECUTED ffc06418: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0641c: 41 9e ff cc beq+ cr7,ffc063e8 <== NOT EXECUTED ffc06420: 48 00 02 3c b ffc0665c <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); ffc06424: 48 00 12 41 bl ffc07664 <== NOT EXECUTED ffc06428: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); ffc0642c: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc06430: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06434: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06438: 4e 80 04 21 bctrl <== NOT EXECUTED if (n < 0) { ffc0643c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc06440: 40 80 00 54 bge- ffc06494 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { ffc06444: 89 3f 00 47 lbz r9,71(r31) <== NOT EXECUTED ffc06448: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc0644c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06450: 41 9e 00 1c beq- cr7,ffc0646c <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { ffc06454: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06458: 41 9e 00 30 beq- cr7,ffc06488 <== NOT EXECUTED ffc0645c: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc06460: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06464: 41 be 00 24 beq+ cr7,ffc06488 <== NOT EXECUTED ffc06468: 48 00 00 0c b ffc06474 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) ffc0646c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06470: 41 9e 01 ec beq- cr7,ffc0665c <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); ffc06474: 48 00 11 f1 bl ffc07664 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { ffc06478: 80 1f 00 54 lwz r0,84(r31) <== NOT EXECUTED ffc0647c: 7c 7a 18 50 subf r3,r26,r3 <== NOT EXECUTED ffc06480: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc06484: 41 9d 01 d8 bgt- cr7,ffc0665c <== NOT EXECUTED break; } } rtems_task_wake_after (1); ffc06488: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0648c: 48 00 1f 45 bl ffc083d0 <== NOT EXECUTED ffc06490: 4b ff ff 9c b ffc0642c <== NOT EXECUTED } else { siproc (n, tty); ffc06494: 54 63 06 3e clrlwi r3,r3,24 <== NOT EXECUTED ffc06498: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc0649c: 4b ff fc 59 bl ffc060f4 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc064a0: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc064a4: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc064a8: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc064ac: 40 9c 01 b0 bge- cr7,ffc0665c <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) ffc064b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc064b4: 41 be ff 78 beq- cr7,ffc0642c <== NOT EXECUTED ffc064b8: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc064bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc064c0: 41 9e ff 6c beq+ cr7,ffc0642c <== NOT EXECUTED ffc064c4: 4b ff ff 60 b ffc06424 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc064c8: 3e e0 00 00 lis r23,0 <== NOT EXECUTED * Fill the input buffer from the raw input queue */ static rtems_status_code fillBufferQueue (struct rtems_termios_tty *tty) { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; ffc064cc: 83 5f 00 74 lwz r26,116(r31) <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc064d0: 3a f7 21 68 addi r23,r23,8552 <== NOT EXECUTED if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, ffc064d4: 3b 1f 00 49 addi r24,r31,73 <== NOT EXECUTED ffc064d8: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc064dc: 48 00 01 1c b ffc065f8 <== 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; ffc064e0: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc064e4: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED ffc064e8: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; ffc064ec: 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; ffc064f0: 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) ffc064f4: 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; ffc064f8: 7c 00 59 d6 mullw r0,r0,r11 <== NOT EXECUTED ffc064fc: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; ffc06500: 7f 48 00 ae lbzx r26,r8,r0 <== NOT EXECUTED tty->rawInBuf.Head = newHead; ffc06504: 90 1f 00 5c stw r0,92(r31) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) ffc06508: 81 7f 00 60 lwz r11,96(r31) <== NOT EXECUTED ffc0650c: 81 1f 00 64 lwz r8,100(r31) <== NOT EXECUTED ffc06510: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc06514: 7d 68 5a 14 add r11,r8,r11 <== NOT EXECUTED ffc06518: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED ffc0651c: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED ffc06520: 7d 2b 49 d6 mullw r9,r11,r9 <== NOT EXECUTED ffc06524: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED ffc06528: 7f 80 50 40 cmplw cr7,r0,r10 <== NOT EXECUTED ffc0652c: 40 9c 00 84 bge- cr7,ffc065b0 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; ffc06530: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06534: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc06538: 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)) ffc0653c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06540: 70 00 02 02 andi. r0,r0,514 <== NOT EXECUTED ffc06544: 2f 80 02 02 cmpwi cr7,r0,514 <== NOT EXECUTED ffc06548: 40 be 00 38 bne+ cr7,ffc06580 <== NOT EXECUTED ffc0654c: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED ffc06550: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06554: 41 9e 00 10 beq- cr7,ffc06564 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { ffc06558: 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)) ffc0655c: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc06560: 41 82 00 20 beq- ffc06580 <== 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, ffc06564: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc06568: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc0656c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06570: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc06574: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06578: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0657c: 48 00 00 34 b ffc065b0 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { ffc06580: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06584: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc06588: 41 82 00 28 beq- ffc065b0 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc0658c: 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; ffc06590: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc06594: 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; ffc06598: 55 29 07 b8 rlwinm r9,r9,0,30,28 <== NOT EXECUTED ffc0659c: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc065a0: 41 9e 00 10 beq- cr7,ffc065b0 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); ffc065a4: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc065a8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc065ac: 4e 80 04 21 bctrl <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { ffc065b0: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc065b4: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc065b8: 41 82 00 1c beq- ffc065d4 <== NOT EXECUTED if (siproc (c, tty)) ffc065bc: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc065c0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc065c4: 4b ff fb 31 bl ffc060f4 <== NOT EXECUTED ffc065c8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc065cc: 40 9e 00 24 bne- cr7,ffc065f0 <== NOT EXECUTED ffc065d0: 48 00 00 24 b ffc065f4 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); ffc065d4: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc065d8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc065dc: 4b ff fb 19 bl ffc060f4 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc065e0: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc065e4: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc065e8: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc065ec: 41 9c 00 08 blt- cr7,ffc065f4 <== NOT EXECUTED ffc065f0: 3b 20 00 00 li r25,0 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; ffc065f4: 83 5f 00 70 lwz r26,112(r31) <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc065f8: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc065fc: 80 1f 00 60 lwz r0,96(r31) <== NOT EXECUTED ffc06600: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06604: 41 9e 00 18 beq- cr7,ffc0661c <== NOT EXECUTED ffc06608: 81 77 00 00 lwz r11,0(r23) <== NOT EXECUTED ffc0660c: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06610: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc06614: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06618: 41 9c fe c8 blt+ cr7,ffc064e0 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { ffc0661c: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED ffc06620: 41 be 00 3c beq+ cr7,ffc0665c <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, ffc06624: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED ffc06628: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc0662c: 80 9f 00 6c lwz r4,108(r31) <== NOT EXECUTED ffc06630: 48 00 17 79 bl ffc07da8 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) ffc06634: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06638: 41 9e ff c0 beq+ cr7,ffc065f8 <== NOT EXECUTED ffc0663c: 48 00 00 20 b ffc0665c <== 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++]; ffc06640: 81 5f 00 1c lwz r10,28(r31) <== NOT EXECUTED count--; ffc06644: 3b 9c ff ff addi r28,r28,-1 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; ffc06648: 7c 0a 48 ae lbzx r0,r10,r9 <== NOT EXECUTED ffc0664c: 98 1b 00 00 stb r0,0(r27) <== NOT EXECUTED ffc06650: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED ffc06654: 91 7f 00 24 stw r11,36(r31) <== NOT EXECUTED ffc06658: 48 00 00 0c b ffc06664 <== NOT EXECUTED ffc0665c: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED ffc06660: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { ffc06664: 42 40 00 18 bdz- ffc0667c <== NOT EXECUTED ffc06668: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc0666c: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; ffc06670: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { ffc06674: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06678: 41 9c ff c8 blt+ cr7,ffc06640 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; ffc0667c: 80 1e 00 14 lwz r0,20(r30) <== NOT EXECUTED ffc06680: 7f 9c 00 50 subf r28,r28,r0 <== NOT EXECUTED ffc06684: 93 9e 00 1c stw r28,28(r30) <== NOT EXECUTED tty->tty_rcvwakeup = 0; ffc06688: 38 00 00 00 li r0,0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); ffc0668c: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; ffc06690: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED rtems_semaphore_release (tty->isem); ffc06694: 48 00 18 59 bl ffc07eec <== NOT EXECUTED return sc; } ffc06698: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc0669c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc066a0: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc066a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc066a8: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc066ac: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc066b0: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc066b4: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc066b8: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc066bc: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc066c0: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc066c4: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc066c8: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc066cc: 4e 80 00 20 blr <== NOT EXECUTED ffc05334 : * 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) { ffc05334: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc05338: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0533c: 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)) ffc05340: 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) { ffc05344: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc05348: 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)) ffc0534c: 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) { ffc05350: 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)) ffc05354: 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) { ffc05358: 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)) ffc0535c: 40 be 00 48 bne+ cr7,ffc053a4 <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, ffc05360: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED ffc05364: 38 9f 00 4a addi r4,r31,74 <== NOT EXECUTED ffc05368: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc0536c: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED ffc05370: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05374: 4e 80 04 21 bctrl <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05378: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc0537c: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc05380: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc05384: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc05388: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc0538c: 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--; ffc05390: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc05394: 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--; ffc05398: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc0539c: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED rtems_interrupt_enable(level); ffc053a0: 48 00 00 54 b ffc053f4 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) ffc053a4: 80 03 00 b8 lwz r0,184(r3) <== NOT EXECUTED ffc053a8: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED ffc053ac: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc053b0: 40 be 00 50 bne+ cr7,ffc05400 <== 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, ffc053b4: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED ffc053b8: 38 9f 00 49 addi r4,r31,73 <== NOT EXECUTED ffc053bc: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc053c0: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED ffc053c4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc053c8: 4e 80 04 21 bctrl <== NOT EXECUTED ffc053cc: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc053d0: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc053d4: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc053d8: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc053dc: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc053e0: 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--; ffc053e4: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc053e8: 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--; ffc053ec: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc053f0: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc053f4: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc053f8: 3b c0 00 01 li r30,1 <== NOT EXECUTED ffc053fc: 48 00 01 4c b ffc05548 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { ffc05400: 81 23 00 80 lwz r9,128(r3) <== NOT EXECUTED ffc05404: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED ffc05408: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0540c: 40 be 00 20 bne+ cr7,ffc0542c <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { ffc05410: 80 03 00 94 lwz r0,148(r3) <== NOT EXECUTED ffc05414: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc05418: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0541c: 40 be 01 2c bne+ cr7,ffc05548 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); ffc05420: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED ffc05424: 48 00 2a c9 bl ffc07eec <== NOT EXECUTED ffc05428: 48 00 01 20 b ffc05548 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0542c: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc05430: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc05434: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc05438: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; ffc0543c: 39 20 00 00 li r9,0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; ffc05440: 83 a3 00 90 lwz r29,144(r3) <== NOT EXECUTED tty->t_dqlen = 0; ffc05444: 91 23 00 90 stw r9,144(r3) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05448: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; ffc0544c: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED ffc05450: 81 23 00 88 lwz r9,136(r3) <== NOT EXECUTED ffc05454: 7c 1d 02 14 add r0,r29,r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { ffc05458: 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; ffc0545c: 7f a0 4b 96 divwu r29,r0,r9 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { ffc05460: 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; ffc05464: 7f bd 49 d6 mullw r29,r29,r9 <== NOT EXECUTED ffc05468: 7f bd 00 50 subf r29,r29,r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; ffc0546c: 93 a3 00 84 stw r29,132(r3) <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { ffc05470: 40 be 00 0c bne+ cr7,ffc0547c <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); ffc05474: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED ffc05478: 48 00 2a 75 bl ffc07eec <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { ffc0547c: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05480: 7f 9d 00 00 cmpw cr7,r29,r0 <== NOT EXECUTED ffc05484: 40 be 00 30 bne+ cr7,ffc054b4 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { ffc05488: 80 1f 00 d4 lwz r0,212(r31) <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; ffc0548c: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc05490: 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) { ffc05494: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc05498: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0549c: 41 9e 00 a8 beq- cr7,ffc05544 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); ffc054a0: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED ffc054a4: 80 9f 00 d8 lwz r4,216(r31) <== NOT EXECUTED ffc054a8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc054ac: 4e 80 04 21 bctrl <== NOT EXECUTED ffc054b0: 48 00 00 94 b ffc05544 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) ffc054b4: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc054b8: 70 00 02 10 andi. r0,r0,528 <== NOT EXECUTED ffc054bc: 2f 80 02 10 cmpwi cr7,r0,528 <== NOT EXECUTED ffc054c0: 40 be 00 34 bne+ cr7,ffc054f4 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc054c4: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc054c8: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc054cc: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc054d0: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; ffc054d4: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED ffc054d8: 61 29 00 20 ori r9,r9,32 <== NOT EXECUTED ffc054dc: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ ffc054e0: 39 20 00 01 li r9,1 <== NOT EXECUTED ffc054e4: 91 3f 00 94 stw r9,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc054e8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc054ec: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc054f0: 48 00 00 54 b ffc05544 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) ffc054f4: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc054f8: 7f 9d 00 40 cmplw cr7,r29,r0 <== NOT EXECUTED ffc054fc: 40 9d 00 0c ble- cr7,ffc05508 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; ffc05500: 83 df 00 88 lwz r30,136(r31) <== NOT EXECUTED ffc05504: 48 00 00 08 b ffc0550c <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; ffc05508: 83 df 00 80 lwz r30,128(r31) <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { ffc0550c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; ffc05510: 7f dd f0 50 subf r30,r29,r30 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { ffc05514: 70 09 06 00 andi. r9,r0,1536 <== NOT EXECUTED ffc05518: 41 82 00 08 beq- ffc05520 <== NOT EXECUTED ffc0551c: 3b c0 00 01 li r30,1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ ffc05520: 38 00 00 01 li r0,1 <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05524: 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*/ ffc05528: 90 1f 00 94 stw r0,148(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc0552c: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc05530: 7c 84 ea 14 add r4,r4,r29 <== NOT EXECUTED ffc05534: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05538: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc0553c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05540: 4e 80 04 21 bctrl <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ ffc05544: 93 bf 00 84 stw r29,132(r31) <== NOT EXECUTED } return nToSend; } ffc05548: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc0554c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05550: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc05554: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05558: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc0555c: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc05560: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc05564: 4e 80 00 20 blr <== NOT EXECUTED ffc071e8 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { ffc071e8: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc071ec: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc071f0: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc071f4: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | ffc071f8: 3b a1 00 0c addi r29,r1,12 <== NOT EXECUTED /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { ffc071fc: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( ffc07200: 3b c1 00 08 addi r30,r1,8 <== NOT EXECUTED /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { ffc07204: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc07208: 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 | ffc0720c: 7f a6 eb 78 mr r6,r29 <== NOT EXECUTED ffc07210: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc07214: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc07218: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc0721c: 48 00 04 c9 bl ffc076e4 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { ffc07220: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc07224: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc07228: 41 a2 00 18 beq+ ffc07240 <== NOT EXECUTED tty->rxTaskId = 0; ffc0722c: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc07230: 90 1f 00 c4 stw r0,196(r31) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); ffc07234: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc07238: 48 00 0e f5 bl ffc0812c <== NOT EXECUTED ffc0723c: 4b ff ff d0 b ffc0720c <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); ffc07240: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc07244: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc07248: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0724c: 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 ( ffc07250: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { ffc07254: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); ffc07258: 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 ( ffc0725c: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc07260: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { ffc07264: 41 be ff a8 beq- cr7,ffc0720c <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; ffc07268: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( ffc0726c: 4b ff e3 85 bl ffc055f0 <== NOT EXECUTED ffc07270: 4b ff ff 9c b ffc0720c <== NOT EXECUTED ffc0530c : * 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) { ffc0530c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05310: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); ffc05314: 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) { ffc05318: 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); ffc0531c: 80 63 00 c4 lwz r3,196(r3) <== NOT EXECUTED ffc05320: 48 00 25 69 bl ffc07888 <== NOT EXECUTED } ffc05324: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc05328: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc0532c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05330: 4e 80 00 20 blr <== NOT EXECUTED ffc0715c : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { ffc0715c: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc07160: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc07164: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc07168: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc0716c: 3b bd 27 f0 addi r29,r29,10224 <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { ffc07170: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc07174: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | ffc07178: 3b c1 00 08 addi r30,r1,8 <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { ffc0717c: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc07180: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | ffc07184: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc07188: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0718c: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc07190: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc07194: 48 00 05 51 bl ffc076e4 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { ffc07198: 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); ffc0719c: 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) { ffc071a0: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc071a4: 41 a2 00 18 beq+ ffc071bc <== NOT EXECUTED tty->txTaskId = 0; ffc071a8: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc071ac: 90 1f 00 c8 stw r0,200(r31) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); ffc071b0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc071b4: 48 00 0f 79 bl ffc0812c <== NOT EXECUTED ffc071b8: 4b ff ff cc b ffc07184 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc071bc: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED ffc071c0: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc071c4: 7d 3d 4a 14 add r9,r29,r9 <== NOT EXECUTED ffc071c8: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc071cc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc071d0: 41 9e 00 0c beq- cr7,ffc071dc <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); ffc071d4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc071d8: 4e 80 04 21 bctrl <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); ffc071dc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc071e0: 4b ff e1 55 bl ffc05334 <== NOT EXECUTED ffc071e4: 4b ff ff a0 b ffc07184 <== NOT EXECUTED ffc06178 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc06178: 94 21 ff e0 stwu r1,-32(r1) ffc0617c: 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); ffc06180: 38 80 00 00 li r4,0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc06184: 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); ffc06188: 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; ffc0618c: 81 23 00 00 lwz r9,0(r3) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc06190: 93 e1 00 1c stw r31,28(r1) rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06194: 83 e9 00 38 lwz r31,56(r9) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc06198: 93 c1 00 18 stw r30,24(r1) ffc0619c: 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); ffc061a0: 80 7f 00 18 lwz r3,24(r31) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc061a4: 93 a1 00 14 stw r29,20(r1) ffc061a8: 93 61 00 0c stw r27,12(r1) ffc061ac: 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); ffc061b0: 48 00 1b f9 bl ffc07da8 if (sc != RTEMS_SUCCESSFUL) ffc061b4: 7c 7d 1b 79 mr. r29,r3 ffc061b8: 40 82 00 94 bne- ffc0624c return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { ffc061bc: 80 1f 00 cc lwz r0,204(r31) ffc061c0: 3d 20 00 00 lis r9,0 ffc061c4: 39 29 27 f0 addi r9,r9,10224 ffc061c8: 54 00 28 34 rlwinm r0,r0,5,0,26 ffc061cc: 7d 29 02 14 add r9,r9,r0 ffc061d0: 80 09 00 0c lwz r0,12(r9) ffc061d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc061d8: 41 9e 00 1c beq- cr7,ffc061f4 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); ffc061dc: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc061e0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc061e4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc061e8: 4e 80 04 21 bctrl <== NOT EXECUTED ffc061ec: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc061f0: 48 00 00 54 b ffc06244 <== NOT EXECUTED rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { ffc061f4: 80 1f 00 34 lwz r0,52(r31) ffc061f8: 80 9e 00 14 lwz r4,20(r30) ffc061fc: 70 09 00 01 andi. r9,r0,1 ffc06200: 80 7e 00 10 lwz r3,16(r30) ffc06204: 41 82 00 30 beq- ffc06234 uint32_t count = args->count; ffc06208: 7c 9b 23 78 mr r27,r4 char *buffer = args->buffer; ffc0620c: 7c 7c 1b 78 mr r28,r3 while (count--) ffc06210: 48 00 00 10 b ffc06220 oproc (*buffer++, tty); ffc06214: 88 7c 00 00 lbz r3,0(r28) ffc06218: 3b 9c 00 01 addi r28,r28,1 ffc0621c: 4b ff f8 a9 bl ffc05ac4 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) ffc06220: 2f 9b 00 00 cmpwi cr7,r27,0 oproc (*buffer++, tty); ffc06224: 7f e4 fb 78 mr r4,r31 ffc06228: 3b 7b ff ff addi r27,r27,-1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) ffc0622c: 40 9e ff e8 bne+ cr7,ffc06214 ffc06230: 48 00 00 0c b ffc0623c oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); ffc06234: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc06238: 4b ff f7 15 bl ffc0594c <== NOT EXECUTED args->bytes_moved = args->count; ffc0623c: 80 1e 00 14 lwz r0,20(r30) ffc06240: 90 1e 00 1c stw r0,28(r30) } rtems_semaphore_release (tty->osem); ffc06244: 80 7f 00 18 lwz r3,24(r31) ffc06248: 48 00 1c a5 bl ffc07eec return sc; } ffc0624c: 80 01 00 24 lwz r0,36(r1) ffc06250: 7f a3 eb 78 mr r3,r29 ffc06254: 83 61 00 0c lwz r27,12(r1) ffc06258: 7c 08 03 a6 mtlr r0 ffc0625c: 83 81 00 10 lwz r28,16(r1) ffc06260: 83 a1 00 14 lwz r29,20(r1) ffc06264: 83 c1 00 18 lwz r30,24(r1) ffc06268: 83 e1 00 1c lwz r31,28(r1) ffc0626c: 38 21 00 20 addi r1,r1,32 ffc06270: 4e 80 00 20 blr ffc0a1d0 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { ffc0a1d0: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0a1d4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a1d8: 93 41 00 10 stw r26,16(r1) <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) ffc0a1dc: 74 7a 20 00 andis. r26,r3,8192 <== NOT EXECUTED static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { ffc0a1e0: 93 21 00 0c stw r25,12(r1) <== NOT EXECUTED ffc0a1e4: 7c 99 23 78 mr r25,r4 <== NOT EXECUTED ffc0a1e8: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc0a1ec: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc0a1f0: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc0a1f4: 7c bf 2b 78 mr r31,r5 <== NOT EXECUTED ffc0a1f8: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc0a1fc: 93 61 00 14 stw r27,20(r1) <== NOT EXECUTED ffc0a200: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED ffc0a204: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) ffc0a208: 41 82 00 3c beq- ffc0a244 <== NOT EXECUTED { if (rtems_panic_in_progress++) ffc0a20c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a210: 81 69 27 8c lwz r11,10124(r9) <== NOT EXECUTED ffc0a214: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc0a218: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc0a21c: 91 69 27 8c stw r11,10124(r9) <== NOT EXECUTED ffc0a220: 41 9e 00 14 beq- cr7,ffc0a234 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a224: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a228: 81 69 27 b4 lwz r11,10164(r9) <== NOT EXECUTED ffc0a22c: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED ffc0a230: 90 09 27 b4 stw r0,10164(r9) <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) ffc0a234: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a238: 80 09 27 8c lwz r0,10124(r9) <== NOT EXECUTED ffc0a23c: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0a240: 41 9d 01 5c bgt- cr7,ffc0a39c <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ ffc0a244: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a248: 81 29 27 24 lwz r9,10020(r9) <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; ffc0a24c: 57 bc 01 00 rlwinm r28,r29,0,4,0 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0a250: 3b c0 00 00 li r30,0 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ ffc0a254: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc0a258: 48 00 ea a5 bl ffc18cfc <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0a25c: 77 a0 40 00 andis. r0,r29,16384 <== NOT EXECUTED ffc0a260: 41 a2 00 0c beq+ ffc0a26c <== NOT EXECUTED local_errno = errno; ffc0a264: 48 00 e6 15 bl ffc18878 <__errno> <== NOT EXECUTED ffc0a268: 83 c3 00 00 lwz r30,0(r3) <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); ffc0a26c: 3f 60 00 00 lis r27,0 <== NOT EXECUTED ffc0a270: 81 3b 27 24 lwz r9,10020(r27) <== NOT EXECUTED ffc0a274: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc0a278: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc0a27c: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a280: 48 01 4e 3d bl ffc1f0bc <== NOT EXECUTED if (status) ffc0a284: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); ffc0a288: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (status) ffc0a28c: 41 be 00 30 beq+ cr7,ffc0a2bc <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); ffc0a290: 81 3b 27 24 lwz r9,10020(r27) <== NOT EXECUTED ffc0a294: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a298: 83 89 00 0c lwz r28,12(r9) <== NOT EXECUTED ffc0a29c: 4b ff ff 09 bl ffc0a1a4 <== NOT EXECUTED ffc0a2a0: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a2a4: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0a2a8: 38 84 85 d4 addi r4,r4,-31276 <== NOT EXECUTED ffc0a2ac: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a2b0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a2b4: 48 00 ee 8d bl ffc19140 <== NOT EXECUTED ffc0a2b8: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED if (local_errno) ffc0a2bc: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc0a2c0: 41 9e 00 68 beq- cr7,ffc0a328 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) ffc0a2c4: 40 9d 00 40 ble- cr7,ffc0a304 <== NOT EXECUTED ffc0a2c8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a2cc: 48 00 fe 05 bl ffc1a0d0 <== NOT EXECUTED ffc0a2d0: 88 03 00 00 lbz r0,0(r3) <== NOT EXECUTED ffc0a2d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0a2d8: 41 be 00 2c beq+ cr7,ffc0a304 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); ffc0a2dc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a2e0: 81 29 27 24 lwz r9,10020(r9) <== NOT EXECUTED ffc0a2e4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a2e8: 83 89 00 0c lwz r28,12(r9) <== NOT EXECUTED ffc0a2ec: 48 00 fd e5 bl ffc1a0d0 <== NOT EXECUTED ffc0a2f0: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a2f4: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0a2f8: 38 84 85 e2 addi r4,r4,-31262 <== NOT EXECUTED ffc0a2fc: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a300: 48 00 00 1c b ffc0a31c <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); ffc0a304: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a308: 81 29 27 24 lwz r9,10020(r9) <== NOT EXECUTED ffc0a30c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a310: 38 84 85 ef addi r4,r4,-31249 <== NOT EXECUTED ffc0a314: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a318: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc0a31c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a320: 48 00 ee 21 bl ffc19140 <== NOT EXECUTED ffc0a324: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); ffc0a328: 3f 80 00 00 lis r28,0 <== NOT EXECUTED ffc0a32c: 81 3c 27 24 lwz r9,10020(r28) <== NOT EXECUTED ffc0a330: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a334: 38 84 89 16 addi r4,r4,-30442 <== NOT EXECUTED ffc0a338: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a33c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a340: 48 00 ee 01 bl ffc19140 <== NOT EXECUTED (void) fflush(stderr); ffc0a344: 81 3c 27 24 lwz r9,10020(r28) <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); ffc0a348: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED (void) fflush(stderr); ffc0a34c: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a350: 48 00 e9 ad bl ffc18cfc <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0a354: 77 a0 30 00 andis. r0,r29,12288 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); ffc0a358: 7c 7b fa 14 add r3,r27,r31 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0a35c: 41 82 00 44 beq- ffc0a3a0 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) ffc0a360: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc0a364: 41 9e 00 20 beq- cr7,ffc0a384 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); ffc0a368: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a36c: 38 84 86 03 addi r4,r4,-31229 <== NOT EXECUTED ffc0a370: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0a374: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a378: 48 00 00 e1 bl ffc0a458 <== NOT EXECUTED _exit(local_errno); ffc0a37c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a380: 48 00 0e 5d bl ffc0b1dc <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); ffc0a384: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a388: 38 84 86 18 addi r4,r4,-31208 <== NOT EXECUTED ffc0a38c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0a390: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a394: 48 00 00 c5 bl ffc0a458 <== NOT EXECUTED abort(); ffc0a398: 48 00 e4 c5 bl ffc1885c <== NOT EXECUTED ffc0a39c: 38 60 00 00 li r3,0 <== NOT EXECUTED } } return chars_written; } ffc0a3a0: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0a3a4: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc0a3a8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a3ac: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc0a3b0: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc0a3b4: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc0a3b8: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0a3bc: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0a3c0: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0a3c4: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0a3c8: 4e 80 00 20 blr <== NOT EXECUTED ffc2b354 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2b354: 94 21 ff d8 stwu r1,-40(r1) ffc2b358: 7c 08 02 a6 mflr r0 ffc2b35c: 93 01 00 08 stw r24,8(r1) unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2b360: 3f 00 00 00 lis r24,0 ffc2b364: 3b 18 35 28 addi r24,r24,13608 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2b368: 93 21 00 0c stw r25,12(r1) limit++; continue; } sign = 1; } if (!isdigit(c)) ffc2b36c: 3f 20 00 00 lis r25,0 ffc2b370: 3b 39 35 1c addi r25,r25,13596 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2b374: 93 81 00 18 stw r28,24(r1) ffc2b378: 3f 80 7f ff lis r28,32767 ffc2b37c: 63 9c ff ff ori r28,r28,65535 ffc2b380: 90 01 00 2c stw r0,44(r1) ffc2b384: 93 41 00 10 stw r26,16(r1) sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) ffc2b388: 3b 40 00 0a li r26,10 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2b38c: 93 61 00 14 stw r27,20(r1) ffc2b390: 7c 9b 23 78 mr r27,r4 ffc2b394: 93 a1 00 1c stw r29,28(r1) ffc2b398: 3b a0 00 00 li r29,0 ffc2b39c: 93 c1 00 20 stw r30,32(r1) ffc2b3a0: 7c 7e 1b 78 mr r30,r3 ffc2b3a4: 93 e1 00 24 stw r31,36(r1) ffc2b3a8: 3b e0 00 00 li r31,0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2b3ac: 81 3e 00 04 lwz r9,4(r30) ffc2b3b0: 38 09 ff ff addi r0,r9,-1 ffc2b3b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b3b8: 90 1e 00 04 stw r0,4(r30) ffc2b3bc: 40 bc 00 14 bge+ cr7,ffc2b3d0 ffc2b3c0: 80 78 00 00 lwz r3,0(r24) <== NOT EXECUTED ffc2b3c4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2b3c8: 48 02 10 8d bl ffc4c454 <__srget_r> <== NOT EXECUTED ffc2b3cc: 48 00 00 14 b ffc2b3e0 <== NOT EXECUTED ffc2b3d0: 81 3e 00 00 lwz r9,0(r30) ffc2b3d4: 38 09 00 01 addi r0,r9,1 ffc2b3d8: 88 69 00 00 lbz r3,0(r9) ffc2b3dc: 90 1e 00 00 stw r0,0(r30) if (c == ':') ffc2b3e0: 2f 03 00 3a cmpwi cr6,r3,58 ffc2b3e4: 2f 9d 00 00 cmpwi cr7,r29,0 ffc2b3e8: 41 9a 00 68 beq- cr6,ffc2b450 break; if (sign == 0) { ffc2b3ec: 40 9e 00 1c bne- cr7,ffc2b408 if (c == '-') { ffc2b3f0: 2f 83 00 2d cmpwi cr7,r3,45 sign = -1; limit++; continue; ffc2b3f4: 3b a0 00 01 li r29,1 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { ffc2b3f8: 40 be 00 10 bne+ cr7,ffc2b408 sign = -1; limit++; ffc2b3fc: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED ffc2b400: 3b a0 ff ff li r29,-1 <== NOT EXECUTED continue; ffc2b404: 4b ff ff a8 b ffc2b3ac <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) ffc2b408: 81 39 00 00 lwz r9,0(r25) ffc2b40c: 7d 29 1a 14 add r9,r9,r3 ffc2b410: 88 09 00 01 lbz r0,1(r9) ffc2b414: 70 09 00 04 andi. r9,r0,4 ffc2b418: 41 82 00 4c beq- ffc2b464 return 0; d = c - '0'; if ((i > (limit / 10)) ffc2b41c: 7c 1c d3 96 divwu r0,r28,r26 ffc2b420: 7f 9f 00 40 cmplw cr7,r31,r0 ffc2b424: 41 9d 00 40 bgt- cr7,ffc2b464 ffc2b428: 7f 9f 00 00 cmpw cr7,r31,r0 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; ffc2b42c: 38 63 ff d0 addi r3,r3,-48 if ((i > (limit / 10)) ffc2b430: 40 be 00 14 bne+ cr7,ffc2b444 ffc2b434: 1c 1f 00 0a mulli r0,r31,10 <== NOT EXECUTED ffc2b438: 7c 00 e0 50 subf r0,r0,r28 <== NOT EXECUTED ffc2b43c: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2b440: 41 9d 00 24 bgt- cr7,ffc2b464 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; ffc2b444: 1f ff 00 0a mulli r31,r31,10 ffc2b448: 7f e3 fa 14 add r31,r3,r31 ffc2b44c: 4b ff ff 60 b ffc2b3ac } if (sign == 0) ffc2b450: 41 9e 00 14 beq- cr7,ffc2b464 return 0; *val = i * sign; ffc2b454: 7f fd f9 d6 mullw r31,r29,r31 ffc2b458: 38 60 00 01 li r3,1 ffc2b45c: 93 fb 00 00 stw r31,0(r27) return 1; ffc2b460: 48 00 00 08 b ffc2b468 ffc2b464: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2b468: 80 01 00 2c lwz r0,44(r1) ffc2b46c: 83 01 00 08 lwz r24,8(r1) ffc2b470: 7c 08 03 a6 mtlr r0 ffc2b474: 83 21 00 0c lwz r25,12(r1) ffc2b478: 83 41 00 10 lwz r26,16(r1) ffc2b47c: 83 61 00 14 lwz r27,20(r1) ffc2b480: 83 81 00 18 lwz r28,24(r1) ffc2b484: 83 a1 00 1c lwz r29,28(r1) ffc2b488: 83 c1 00 20 lwz r30,32(r1) ffc2b48c: 83 e1 00 24 lwz r31,36(r1) ffc2b490: 38 21 00 28 addi r1,r1,40 ffc2b494: 4e 80 00 20 blr ffc2b498 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { ffc2b498: 94 21 ff e0 stwu r1,-32(r1) ffc2b49c: 7c 08 02 a6 mflr r0 ffc2b4a0: 90 01 00 24 stw r0,36(r1) int c; *name = *bufp; ffc2b4a4: 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) { ffc2b4a8: 93 61 00 0c stw r27,12(r1) int c; *name = *bufp; for (;;) { c = getc(fp); ffc2b4ac: 3f 60 00 00 lis r27,0 ffc2b4b0: 3b 7b 35 28 addi r27,r27,13608 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; ffc2b4b4: 90 04 00 00 stw r0,0(r4) /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { ffc2b4b8: 93 81 00 10 stw r28,16(r1) ffc2b4bc: 7c fc 3b 78 mr r28,r7 ffc2b4c0: 93 a1 00 14 stw r29,20(r1) ffc2b4c4: 7c dd 33 78 mr r29,r6 ffc2b4c8: 93 c1 00 18 stw r30,24(r1) ffc2b4cc: 7c 7e 1b 78 mr r30,r3 ffc2b4d0: 93 e1 00 1c stw r31,28(r1) ffc2b4d4: 7c bf 2b 78 mr r31,r5 int c; *name = *bufp; for (;;) { c = getc(fp); ffc2b4d8: 81 3e 00 04 lwz r9,4(r30) ffc2b4dc: 38 09 ff ff addi r0,r9,-1 ffc2b4e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b4e4: 90 1e 00 04 stw r0,4(r30) ffc2b4e8: 40 bc 00 14 bge+ cr7,ffc2b4fc ffc2b4ec: 80 7b 00 00 lwz r3,0(r27) ffc2b4f0: 7f c4 f3 78 mr r4,r30 ffc2b4f4: 48 02 0f 61 bl ffc4c454 <__srget_r> ffc2b4f8: 48 00 00 14 b ffc2b50c ffc2b4fc: 81 3e 00 00 lwz r9,0(r30) ffc2b500: 38 09 00 01 addi r0,r9,1 ffc2b504: 88 69 00 00 lbz r3,0(r9) ffc2b508: 90 1e 00 00 stw r0,0(r30) if (c == ':') { ffc2b50c: 2c 83 00 3a cmpwi cr1,r3,58 if (nlFlag) return 0; break; } if (c == '\n') { ffc2b510: 2f 03 00 0a cmpwi cr6,r3,10 if (!nlFlag) return 0; break; } if (c == EOF) ffc2b514: 2f 83 ff ff cmpwi cr7,r3,-1 int c; *name = *bufp; for (;;) { c = getc(fp); if (c == ':') { ffc2b518: 40 a6 00 10 bne+ cr1,ffc2b528 if (nlFlag) ffc2b51c: 2f 9c 00 00 cmpwi cr7,r28,0 ffc2b520: 41 be 00 4c beq+ cr7,ffc2b56c ffc2b524: 48 00 00 74 b ffc2b598 <== NOT EXECUTED return 0; break; } if (c == '\n') { ffc2b528: 40 ba 00 10 bne+ cr6,ffc2b538 if (!nlFlag) ffc2b52c: 2f 9c 00 00 cmpwi cr7,r28,0 ffc2b530: 40 be 00 3c bne+ cr7,ffc2b56c ffc2b534: 48 00 00 64 b ffc2b598 <== NOT EXECUTED return 0; break; } if (c == EOF) ffc2b538: 41 9e 00 60 beq- cr7,ffc2b598 return 0; if (*nleft < 2) ffc2b53c: 80 1d 00 00 lwz r0,0(r29) ffc2b540: 2b 80 00 01 cmplwi cr7,r0,1 ffc2b544: 40 9d 00 54 ble- cr7,ffc2b598 return 0; **bufp = c; ffc2b548: 81 3f 00 00 lwz r9,0(r31) ffc2b54c: 98 69 00 00 stb r3,0(r9) ++(*bufp); ffc2b550: 81 3f 00 00 lwz r9,0(r31) --(*nleft); ffc2b554: 81 7d 00 00 lwz r11,0(r29) if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc2b558: 39 29 00 01 addi r9,r9,1 --(*nleft); ffc2b55c: 38 0b ff ff addi r0,r11,-1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc2b560: 91 3f 00 00 stw r9,0(r31) --(*nleft); ffc2b564: 90 1d 00 00 stw r0,0(r29) } ffc2b568: 4b ff ff 70 b ffc2b4d8 **bufp = '\0'; ffc2b56c: 81 3f 00 00 lwz r9,0(r31) ffc2b570: 38 00 00 00 li r0,0 ++(*bufp); --(*nleft); ffc2b574: 38 60 00 01 li r3,1 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ffc2b578: 98 09 00 00 stb r0,0(r9) ++(*bufp); ffc2b57c: 81 3f 00 00 lwz r9,0(r31) --(*nleft); ffc2b580: 81 7d 00 00 lwz r11,0(r29) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2b584: 39 29 00 01 addi r9,r9,1 --(*nleft); ffc2b588: 38 0b ff ff addi r0,r11,-1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2b58c: 91 3f 00 00 stw r9,0(r31) --(*nleft); ffc2b590: 90 1d 00 00 stw r0,0(r29) return 1; ffc2b594: 48 00 00 08 b ffc2b59c ffc2b598: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2b59c: 80 01 00 24 lwz r0,36(r1) ffc2b5a0: 83 61 00 0c lwz r27,12(r1) ffc2b5a4: 7c 08 03 a6 mtlr r0 ffc2b5a8: 83 81 00 10 lwz r28,16(r1) ffc2b5ac: 83 a1 00 14 lwz r29,20(r1) ffc2b5b0: 83 c1 00 18 lwz r30,24(r1) ffc2b5b4: 83 e1 00 1c lwz r31,28(r1) ffc2b5b8: 38 21 00 20 addi r1,r1,32 ffc2b5bc: 4e 80 00 20 blr ffc2b5c0 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b5c0: 94 21 ff d0 stwu r1,-48(r1) ffc2b5c4: 7c 08 02 a6 mflr r0 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b5c8: 38 e0 00 00 li r7,0 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b5cc: 93 a1 00 24 stw r29,36(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b5d0: 3b a1 00 18 addi r29,r1,24 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b5d4: 93 c1 00 28 stw r30,40(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b5d8: 3b c1 00 1c addi r30,r1,28 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b5dc: 90 a1 00 18 stw r5,24(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b5e0: 7f a5 eb 78 mr r5,r29 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b5e4: 90 c1 00 1c stw r6,28(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b5e8: 7f c6 f3 78 mr r6,r30 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b5ec: 93 81 00 20 stw r28,32(r1) ffc2b5f0: 7c 7c 1b 78 mr r28,r3 ffc2b5f4: 93 e1 00 2c stw r31,44(r1) ffc2b5f8: 7c 9f 23 78 mr r31,r4 ffc2b5fc: 90 01 00 34 stw r0,52(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b600: 4b ff fe 99 bl ffc2b498 ffc2b604: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b608: 41 be 01 08 beq+ cr7,ffc2b710 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) ffc2b60c: 7f 83 e3 78 mr r3,r28 ffc2b610: 38 9f 00 04 addi r4,r31,4 ffc2b614: 7f a5 eb 78 mr r5,r29 ffc2b618: 7f c6 f3 78 mr r6,r30 ffc2b61c: 38 e0 00 00 li r7,0 ffc2b620: 4b ff fe 79 bl ffc2b498 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b624: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b628: 41 be 00 e8 beq+ cr7,ffc2b710 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) ffc2b62c: 7f 83 e3 78 mr r3,r28 ffc2b630: 38 81 00 08 addi r4,r1,8 ffc2b634: 4b ff fd 21 bl ffc2b354 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b638: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b63c: 41 be 00 d4 beq+ cr7,ffc2b710 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) ffc2b640: 7f 83 e3 78 mr r3,r28 ffc2b644: 7f a5 eb 78 mr r5,r29 ffc2b648: 7f c6 f3 78 mr r6,r30 ffc2b64c: 38 81 00 0c addi r4,r1,12 ffc2b650: 38 e0 00 01 li r7,1 ffc2b654: 4b ff fe 45 bl ffc2b498 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b658: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b65c: 41 9e 00 b4 beq- cr7,ffc2b710 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; ffc2b660: 80 01 00 08 lwz r0,8(r1) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2b664: 81 41 00 0c lwz r10,12(r1) if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; ffc2b668: b0 1f 00 08 sth r0,8(r31) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2b66c: 38 00 00 01 li r0,1 ffc2b670: 7d 49 53 78 mr r9,r10 ffc2b674: 48 00 00 14 b ffc2b688 if(*cp == ',') memcount++; ffc2b678: 69 68 00 2c xori r8,r11,44 ffc2b67c: 21 08 00 00 subfic r8,r8,0 ffc2b680: 7d 00 01 94 addze r8,r0 ffc2b684: 7d 00 43 78 mr r0,r8 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2b688: 89 69 00 00 lbz r11,0(r9) ffc2b68c: 39 29 00 01 addi r9,r9,1 ffc2b690: 2f 8b 00 00 cmpwi cr7,r11,0 ffc2b694: 40 9e ff e4 bne+ cr7,ffc2b678 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) ffc2b698: 54 09 10 3a rlwinm r9,r0,2,0,29 ffc2b69c: 38 09 00 13 addi r0,r9,19 ffc2b6a0: 81 21 00 1c lwz r9,28(r1) ffc2b6a4: 7f 89 00 40 cmplw cr7,r9,r0 ffc2b6a8: 41 9c 00 68 blt- cr7,ffc2b710 return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); ffc2b6ac: 81 21 00 18 lwz r9,24(r1) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc2b6b0: 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); ffc2b6b4: 39 29 00 0f addi r9,r9,15 ffc2b6b8: 55 29 00 36 rlwinm r9,r9,0,0,27 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc2b6bc: 91 49 00 00 stw r10,0(r9) for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; ffc2b6c0: 39 40 00 00 li r10,0 /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); ffc2b6c4: 91 3f 00 0c stw r9,12(r31) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc2b6c8: 81 21 00 0c lwz r9,12(r1) ffc2b6cc: 48 00 00 1c b ffc2b6e8 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { ffc2b6d0: 40 ba 00 18 bne+ cr6,ffc2b6e8 *cp = '\0'; ffc2b6d4: 99 49 ff ff stb r10,-1(r9) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; ffc2b6d8: 55 60 10 3a rlwinm r0,r11,2,0,29 <== NOT EXECUTED ffc2b6dc: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc2b6e0: 81 1f 00 0c lwz r8,12(r31) <== NOT EXECUTED ffc2b6e4: 7d 28 01 2e stwx r9,r8,r0 <== NOT EXECUTED ffc2b6e8: 39 29 00 01 addi r9,r9,1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2b6ec: 88 09 ff ff lbz r0,-1(r9) ffc2b6f0: 2f 80 00 00 cmpwi cr7,r0,0 if(*cp == ',') { ffc2b6f4: 2f 00 00 2c cmpwi cr6,r0,44 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2b6f8: 40 9e ff d8 bne+ cr7,ffc2b6d0 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; ffc2b6fc: 81 3f 00 0c lwz r9,12(r31) ffc2b700: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc2b704: 38 60 00 01 li r3,1 ffc2b708: 7c 09 59 2e stwx r0,r9,r11 return 1; ffc2b70c: 48 00 00 08 b ffc2b714 ffc2b710: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2b714: 80 01 00 34 lwz r0,52(r1) ffc2b718: 83 81 00 20 lwz r28,32(r1) ffc2b71c: 7c 08 03 a6 mtlr r0 ffc2b720: 83 a1 00 24 lwz r29,36(r1) ffc2b724: 83 c1 00 28 lwz r30,40(r1) ffc2b728: 83 e1 00 2c lwz r31,44(r1) ffc2b72c: 38 21 00 30 addi r1,r1,48 ffc2b730: 4e 80 00 20 blr ffc2b790 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b790: 94 21 ff d0 stwu r1,-48(r1) ffc2b794: 7c 08 02 a6 mflr r0 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b798: 38 e0 00 00 li r7,0 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b79c: 93 81 00 20 stw r28,32(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b7a0: 3b 81 00 18 addi r28,r1,24 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b7a4: 93 a1 00 24 stw r29,36(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b7a8: 3b a1 00 1c addi r29,r1,28 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b7ac: 90 a1 00 18 stw r5,24(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b7b0: 7f 85 e3 78 mr r5,r28 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b7b4: 90 c1 00 1c stw r6,28(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b7b8: 7f a6 eb 78 mr r6,r29 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b7bc: 93 c1 00 28 stw r30,40(r1) ffc2b7c0: 7c 7e 1b 78 mr r30,r3 ffc2b7c4: 93 e1 00 2c stw r31,44(r1) ffc2b7c8: 7c 9f 23 78 mr r31,r4 ffc2b7cc: 90 01 00 34 stw r0,52(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b7d0: 4b ff fc c9 bl ffc2b498 ffc2b7d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b7d8: 41 be 00 e4 beq+ cr7,ffc2b8bc || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) ffc2b7dc: 7f c3 f3 78 mr r3,r30 ffc2b7e0: 38 9f 00 04 addi r4,r31,4 ffc2b7e4: 7f 85 e3 78 mr r5,r28 ffc2b7e8: 7f a6 eb 78 mr r6,r29 ffc2b7ec: 38 e0 00 00 li r7,0 ffc2b7f0: 4b ff fc a9 bl ffc2b498 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b7f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b7f8: 41 be 00 c4 beq+ cr7,ffc2b8bc || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) ffc2b7fc: 7f c3 f3 78 mr r3,r30 ffc2b800: 38 81 00 08 addi r4,r1,8 ffc2b804: 4b ff fb 51 bl ffc2b354 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b808: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b80c: 41 be 00 b0 beq+ cr7,ffc2b8bc || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) ffc2b810: 7f c3 f3 78 mr r3,r30 ffc2b814: 38 81 00 0c addi r4,r1,12 ffc2b818: 4b ff fb 3d bl ffc2b354 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b81c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b820: 41 be 00 9c beq+ cr7,ffc2b8bc || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) ffc2b824: 7f c3 f3 78 mr r3,r30 ffc2b828: 38 9f 00 0c addi r4,r31,12 ffc2b82c: 7f 85 e3 78 mr r5,r28 ffc2b830: 7f a6 eb 78 mr r6,r29 ffc2b834: 38 e0 00 00 li r7,0 ffc2b838: 4b ff fc 61 bl ffc2b498 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b83c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b840: 41 be 00 7c beq+ cr7,ffc2b8bc || !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) ffc2b844: 7f c3 f3 78 mr r3,r30 ffc2b848: 38 9f 00 10 addi r4,r31,16 ffc2b84c: 7f 85 e3 78 mr r5,r28 ffc2b850: 7f a6 eb 78 mr r6,r29 ffc2b854: 38 e0 00 00 li r7,0 ffc2b858: 4b ff fc 41 bl ffc2b498 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b85c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b860: 41 be 00 5c beq+ cr7,ffc2b8bc || !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) ffc2b864: 7f c3 f3 78 mr r3,r30 ffc2b868: 38 9f 00 14 addi r4,r31,20 ffc2b86c: 7f 85 e3 78 mr r5,r28 ffc2b870: 7f a6 eb 78 mr r6,r29 ffc2b874: 38 e0 00 00 li r7,0 ffc2b878: 4b ff fc 21 bl ffc2b498 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b87c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b880: 41 be 00 3c beq+ cr7,ffc2b8bc || !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)) ffc2b884: 7f c3 f3 78 mr r3,r30 ffc2b888: 7f 85 e3 78 mr r5,r28 ffc2b88c: 7f a6 eb 78 mr r6,r29 ffc2b890: 38 9f 00 18 addi r4,r31,24 ffc2b894: 38 e0 00 01 li r7,1 ffc2b898: 4b ff fc 01 bl ffc2b498 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b89c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b8a0: 41 9e 00 1c beq- cr7,ffc2b8bc || !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; ffc2b8a4: 80 01 00 08 lwz r0,8(r1) pwd->pw_gid = pwgid; ffc2b8a8: 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; ffc2b8ac: b0 1f 00 08 sth r0,8(r31) pwd->pw_gid = pwgid; ffc2b8b0: 80 01 00 0c lwz r0,12(r1) ffc2b8b4: b0 1f 00 0a sth r0,10(r31) return 1; ffc2b8b8: 48 00 00 08 b ffc2b8c0 ffc2b8bc: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2b8c0: 80 01 00 34 lwz r0,52(r1) ffc2b8c4: 83 81 00 20 lwz r28,32(r1) ffc2b8c8: 7c 08 03 a6 mtlr r0 ffc2b8cc: 83 a1 00 24 lwz r29,36(r1) ffc2b8d0: 83 c1 00 28 lwz r30,40(r1) ffc2b8d4: 83 e1 00 2c lwz r31,44(r1) ffc2b8d8: 38 21 00 30 addi r1,r1,48 ffc2b8dc: 4e 80 00 20 blr ffc2b2e0 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; ffc2b2e0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2b2e4: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED ffc2b2e8: b0 69 00 34 sth r3,52(r9) <== NOT EXECUTED return 0; } ffc2b2ec: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2b2f0: 4e 80 00 20 blr <== NOT EXECUTED ffc2ba2c : return NULL; return &grent; } void setgrent(void) { ffc2ba2c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2ba30: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2ba34: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc2ba38: 4b ff ff 05 bl ffc2b93c <== NOT EXECUTED if (group_fp != NULL) ffc2ba3c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2ba40: 80 69 5e fc lwz r3,24316(r9) <== NOT EXECUTED ffc2ba44: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2ba48: 41 9e 00 08 beq- cr7,ffc2ba50 <== NOT EXECUTED fclose(group_fp); ffc2ba4c: 48 01 a6 c1 bl ffc4610c <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); ffc2ba50: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED ffc2ba54: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc2ba58: 38 63 1d a0 addi r3,r3,7584 <== NOT EXECUTED ffc2ba5c: 38 84 37 98 addi r4,r4,14232 <== NOT EXECUTED ffc2ba60: 48 01 b1 d9 bl ffc46c38 <== NOT EXECUTED } ffc2ba64: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED { init_etc_passwd_group(); if (group_fp != NULL) fclose(group_fp); group_fp = fopen("/etc/group", "r"); ffc2ba68: 3d 20 00 00 lis r9,0 <== NOT EXECUTED } ffc2ba6c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED { init_etc_passwd_group(); if (group_fp != NULL) fclose(group_fp); group_fp = fopen("/etc/group", "r"); ffc2ba70: 90 69 5e fc stw r3,24316(r9) <== NOT EXECUTED } ffc2ba74: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2ba78: 4e 80 00 20 blr <== NOT EXECUTED ffc2bc78 : return NULL; return &pwent; } void setpwent(void) { ffc2bc78: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2bc7c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2bc80: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc2bc84: 4b ff fc b9 bl ffc2b93c <== NOT EXECUTED if (passwd_fp != NULL) ffc2bc88: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2bc8c: 80 69 5f 00 lwz r3,24320(r9) <== NOT EXECUTED ffc2bc90: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2bc94: 41 9e 00 08 beq- cr7,ffc2bc9c <== NOT EXECUTED fclose(passwd_fp); ffc2bc98: 48 01 a4 75 bl ffc4610c <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); ffc2bc9c: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED ffc2bca0: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc2bca4: 38 63 1c f2 addi r3,r3,7410 <== NOT EXECUTED ffc2bca8: 38 84 37 98 addi r4,r4,14232 <== NOT EXECUTED ffc2bcac: 48 01 af 8d bl ffc46c38 <== NOT EXECUTED } ffc2bcb0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED { init_etc_passwd_group(); if (passwd_fp != NULL) fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); ffc2bcb4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED } ffc2bcb8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED { init_etc_passwd_group(); if (passwd_fp != NULL) fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); ffc2bcbc: 90 69 5f 00 stw r3,24320(r9) <== NOT EXECUTED } ffc2bcc0: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2bcc4: 4e 80 00 20 blr <== NOT EXECUTED ffc08774 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; ffc08774: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc08778: 81 29 34 ec lwz r9,13548(r9) <== NOT EXECUTED ffc0877c: b0 69 00 32 sth r3,50(r9) <== NOT EXECUTED return 0; } ffc08780: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc08784: 4e 80 00 20 blr <== NOT EXECUTED ffc060f4 : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { ffc060f4: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc060f8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc060fc: 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)) { ffc06100: 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) { ffc06104: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc06108: 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)) { ffc0610c: 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) { ffc06110: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc06114: 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)) { ffc06118: 41 a2 00 48 beq+ ffc06160 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc0611c: 80 64 00 18 lwz r3,24(r4) <== NOT EXECUTED ffc06120: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc06124: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc06128: 48 00 1c 81 bl ffc07da8 <== NOT EXECUTED i = iproc (c, tty); ffc0612c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06130: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06134: 4b ff fd f9 bl ffc05f2c <== NOT EXECUTED ffc06138: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED rtems_semaphore_release (tty->osem); ffc0613c: 80 7f 00 18 lwz r3,24(r31) <== NOT EXECUTED ffc06140: 48 00 1d ad bl ffc07eec <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } ffc06144: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc06148: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0614c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc06150: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06154: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc06158: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0615c: 4e 80 00 20 blr <== NOT EXECUTED ffc06160: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc06164: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc06168: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0616c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc06170: 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); ffc06174: 4b ff fd b8 b ffc05f2c <== NOT EXECUTED ffc0a140 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc0a140: 94 21 ff c8 stwu r1,-56(r1) ffc0a144: 7c 08 02 a6 mflr r0 ffc0a148: 93 c1 00 30 stw r30,48(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc0a14c: 7c 9e 23 79 mr. r30,r4 int _STAT_NAME( const char *path, struct stat *buf ) { ffc0a150: 93 a1 00 2c stw r29,44(r1) ffc0a154: 7c 7d 1b 78 mr r29,r3 ffc0a158: 90 01 00 3c stw r0,60(r1) ffc0a15c: 93 e1 00 34 stw r31,52(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc0a160: 40 a2 00 10 bne+ ffc0a170 rtems_set_errno_and_return_minus_one( EFAULT ); ffc0a164: 48 03 be 09 bl ffc45f6c <__errno> ffc0a168: 38 00 00 0e li r0,14 ffc0a16c: 48 00 00 6c b ffc0a1d8 status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc0a170: 48 04 3b 69 bl ffc4dcd8 ffc0a174: 3b e1 00 08 addi r31,r1,8 ffc0a178: 7c 64 1b 78 mr r4,r3 ffc0a17c: 38 a0 00 00 li r5,0 ffc0a180: 7f a3 eb 78 mr r3,r29 ffc0a184: 7f e6 fb 78 mr r6,r31 ffc0a188: 38 e0 00 01 li r7,1 ffc0a18c: 4b ff e3 9d bl ffc08528 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc0a190: 3b a0 ff ff li r29,-1 ffc0a194: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a198: 40 9e 00 9c bne- cr7,ffc0a234 return -1; if ( !loc.handlers->fstat_h ){ ffc0a19c: 81 21 00 10 lwz r9,16(r1) ffc0a1a0: 80 09 00 18 lwz r0,24(r9) ffc0a1a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a1a8: 40 be 00 3c bne+ cr7,ffc0a1e4 rtems_filesystem_freenode( &loc ); ffc0a1ac: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc0a1b0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0a1b4: 41 9e 00 1c beq- cr7,ffc0a1d0 <== NOT EXECUTED ffc0a1b8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0a1bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0a1c0: 41 9e 00 10 beq- cr7,ffc0a1d0 <== NOT EXECUTED ffc0a1c4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0a1c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0a1cc: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0a1d0: 48 03 bd 9d bl ffc45f6c <__errno> <== NOT EXECUTED ffc0a1d4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0a1d8: 90 03 00 00 stw r0,0(r3) ffc0a1dc: 3b a0 ff ff li r29,-1 ffc0a1e0: 48 00 00 54 b ffc0a234 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc0a1e4: 38 80 00 00 li r4,0 ffc0a1e8: 38 a0 00 48 li r5,72 ffc0a1ec: 7f c3 f3 78 mr r3,r30 ffc0a1f0: 48 03 fb 19 bl ffc49d08 status = (*loc.handlers->fstat_h)( &loc, buf ); ffc0a1f4: 81 21 00 10 lwz r9,16(r1) ffc0a1f8: 7f c4 f3 78 mr r4,r30 ffc0a1fc: 80 09 00 18 lwz r0,24(r9) ffc0a200: 7f e3 fb 78 mr r3,r31 ffc0a204: 7c 09 03 a6 mtctr r0 ffc0a208: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc0a20c: 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 ); ffc0a210: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc0a214: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a218: 41 9e 00 1c beq- cr7,ffc0a234 ffc0a21c: 80 09 00 1c lwz r0,28(r9) ffc0a220: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a224: 41 9e 00 10 beq- cr7,ffc0a234 ffc0a228: 7f e3 fb 78 mr r3,r31 ffc0a22c: 7c 09 03 a6 mtctr r0 ffc0a230: 4e 80 04 21 bctrl return status; } ffc0a234: 80 01 00 3c lwz r0,60(r1) ffc0a238: 7f a3 eb 78 mr r3,r29 ffc0a23c: 83 c1 00 30 lwz r30,48(r1) ffc0a240: 7c 08 03 a6 mtlr r0 ffc0a244: 83 a1 00 2c lwz r29,44(r1) ffc0a248: 83 e1 00 34 lwz r31,52(r1) ffc0a24c: 38 21 00 38 addi r1,r1,56 ffc0a250: 4e 80 00 20 blr ffc2cbfc : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { ffc2cbfc: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc2cc00: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2cc04: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc2cc08: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc2cc0c: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc2cc10: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc2cc14: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED ffc2cc18: 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 ) ) ffc2cc1c: 48 02 10 bd bl ffc4dcd8 <== NOT EXECUTED ffc2cc20: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc2cc24: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2cc28: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc2cc2c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2cc30: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc2cc34: 38 e0 00 01 li r7,1 <== NOT EXECUTED ffc2cc38: 4b fd b8 f1 bl ffc08528 <== NOT EXECUTED ffc2cc3c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2cc40: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2cc44: 40 9e 00 7c bne- cr7,ffc2ccc0 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; ffc2cc48: 83 a1 00 18 lwz r29,24(r1) <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; ffc2cc4c: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED ffc2cc50: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED ffc2cc54: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2cc58: 40 be 00 18 bne+ cr7,ffc2cc70 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2cc5c: 48 01 93 11 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2cc60: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2cc64: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2cc68: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2cc6c: 48 00 00 54 b ffc2ccc0 <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); ffc2cc70: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc2cc74: 38 a0 00 38 li r5,56 <== NOT EXECUTED ffc2cc78: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc2cc7c: 48 01 d0 8d bl ffc49d08 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); ffc2cc80: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED ffc2cc84: 38 7d 00 1c addi r3,r29,28 <== NOT EXECUTED ffc2cc88: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED ffc2cc8c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2cc90: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2cc94: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2cc98: 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 ); ffc2cc9c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2cca0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2cca4: 41 9e 00 1c beq- cr7,ffc2ccc0 <== NOT EXECUTED ffc2cca8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2ccac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2ccb0: 41 9e 00 10 beq- cr7,ffc2ccc0 <== NOT EXECUTED ffc2ccb4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2ccb8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2ccbc: 4e 80 04 21 bctrl <== NOT EXECUTED return result; } ffc2ccc0: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc2ccc4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2ccc8: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc2cccc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2ccd0: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc2ccd4: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc2ccd8: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc2ccdc: 4e 80 00 20 blr <== NOT EXECUTED ffc2cce0 : int symlink( const char *actualpath, const char *sympath ) { ffc2cce0: 94 21 ff c8 stwu r1,-56(r1) ffc2cce4: 7c 08 02 a6 mflr r0 ffc2cce8: 93 a1 00 2c stw r29,44(r1) ffc2ccec: 7c 7d 1b 78 mr r29,r3 ffc2ccf0: 90 01 00 3c stw r0,60(r1) ffc2ccf4: 93 c1 00 30 stw r30,48(r1) ffc2ccf8: 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 ); ffc2ccfc: 88 04 00 00 lbz r0,0(r4) ffc2cd00: 2f 80 00 2f cmpwi cr7,r0,47 ffc2cd04: 41 9e 00 14 beq- cr7,ffc2cd18 ffc2cd08: 2f 80 00 5c cmpwi cr7,r0,92 ffc2cd0c: 41 9e 00 0c beq- cr7,ffc2cd18 ffc2cd10: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cd14: 40 9e 00 38 bne- cr7,ffc2cd4c ffc2cd18: 3d 20 00 00 lis r9,0 ffc2cd1c: 81 29 34 ec lwz r9,13548(r9) ffc2cd20: 38 60 00 01 li r3,1 ffc2cd24: 80 09 00 24 lwz r0,36(r9) ffc2cd28: 81 09 00 18 lwz r8,24(r9) ffc2cd2c: 81 49 00 1c lwz r10,28(r9) ffc2cd30: 81 69 00 20 lwz r11,32(r9) ffc2cd34: 91 01 00 0c stw r8,12(r1) ffc2cd38: 91 41 00 10 stw r10,16(r1) ffc2cd3c: 91 61 00 14 stw r11,20(r1) ffc2cd40: 90 01 00 18 stw r0,24(r1) ffc2cd44: 80 09 00 28 lwz r0,40(r9) ffc2cd48: 48 00 00 34 b ffc2cd7c ffc2cd4c: 3d 20 00 00 lis r9,0 ffc2cd50: 81 29 34 ec lwz r9,13548(r9) ffc2cd54: 38 60 00 00 li r3,0 ffc2cd58: 80 09 00 10 lwz r0,16(r9) ffc2cd5c: 81 09 00 04 lwz r8,4(r9) ffc2cd60: 81 49 00 08 lwz r10,8(r9) ffc2cd64: 81 69 00 0c lwz r11,12(r9) ffc2cd68: 91 01 00 0c stw r8,12(r1) ffc2cd6c: 91 41 00 10 stw r10,16(r1) ffc2cd70: 91 61 00 14 stw r11,20(r1) ffc2cd74: 90 01 00 18 stw r0,24(r1) ffc2cd78: 80 09 00 14 lwz r0,20(r9) if ( !loc.ops->evalformake_h ) { ffc2cd7c: 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 ); ffc2cd80: 90 01 00 1c stw r0,28(r1) if ( !loc.ops->evalformake_h ) { ffc2cd84: 80 09 00 04 lwz r0,4(r9) ffc2cd88: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cd8c: 41 9e 00 50 beq- cr7,ffc2cddc rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); ffc2cd90: 3b c1 00 0c addi r30,r1,12 ffc2cd94: 7c 09 03 a6 mtctr r0 ffc2cd98: 7c 64 1a 14 add r3,r4,r3 ffc2cd9c: 38 a1 00 08 addi r5,r1,8 ffc2cda0: 7f c4 f3 78 mr r4,r30 if ( result != 0 ) ffc2cda4: 3b e0 ff ff li r31,-1 if ( !loc.ops->evalformake_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); ffc2cda8: 4e 80 04 21 bctrl if ( result != 0 ) ffc2cdac: 2f 83 00 00 cmpwi cr7,r3,0 ffc2cdb0: 40 9e 00 7c bne- cr7,ffc2ce2c return -1; if ( !loc.ops->symlink_h ) { ffc2cdb4: 81 21 00 18 lwz r9,24(r1) ffc2cdb8: 80 09 00 38 lwz r0,56(r9) ffc2cdbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cdc0: 40 be 00 30 bne+ cr7,ffc2cdf0 rtems_filesystem_freenode( &loc ); ffc2cdc4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2cdc8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2cdcc: 41 9e 00 10 beq- cr7,ffc2cddc <== NOT EXECUTED ffc2cdd0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc2cdd4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2cdd8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2cddc: 48 01 91 91 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2cde0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2cde4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2cde8: 3b e0 ff ff li r31,-1 <== NOT EXECUTED ffc2cdec: 48 00 00 40 b ffc2ce2c <== NOT EXECUTED } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); ffc2cdf0: 7f a4 eb 78 mr r4,r29 ffc2cdf4: 80 a1 00 08 lwz r5,8(r1) ffc2cdf8: 7f c3 f3 78 mr r3,r30 ffc2cdfc: 7c 09 03 a6 mtctr r0 ffc2ce00: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc2ce04: 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); ffc2ce08: 7c 7f 1b 78 mr r31,r3 rtems_filesystem_freenode( &loc ); ffc2ce0c: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ce10: 41 9e 00 1c beq- cr7,ffc2ce2c ffc2ce14: 80 09 00 1c lwz r0,28(r9) ffc2ce18: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ce1c: 41 9e 00 10 beq- cr7,ffc2ce2c ffc2ce20: 7f c3 f3 78 mr r3,r30 ffc2ce24: 7c 09 03 a6 mtctr r0 ffc2ce28: 4e 80 04 21 bctrl return result; } ffc2ce2c: 80 01 00 3c lwz r0,60(r1) ffc2ce30: 7f e3 fb 78 mr r3,r31 ffc2ce34: 83 a1 00 2c lwz r29,44(r1) ffc2ce38: 7c 08 03 a6 mtlr r0 ffc2ce3c: 83 c1 00 30 lwz r30,48(r1) ffc2ce40: 83 e1 00 34 lwz r31,52(r1) ffc2ce44: 38 21 00 38 addi r1,r1,56 ffc2ce48: 4e 80 00 20 blr ffc15784 : int fd, int opt, struct termios *tp ) { switch (opt) { ffc15784: 2c 04 00 00 cmpwi r4,0 int tcsetattr( int fd, int opt, struct termios *tp ) { ffc15788: 94 21 ff f0 stwu r1,-16(r1) ffc1578c: 7c 08 02 a6 mflr r0 ffc15790: 93 c1 00 08 stw r30,8(r1) ffc15794: 7c 7e 1b 78 mr r30,r3 ffc15798: 93 e1 00 0c stw r31,12(r1) ffc1579c: 7c bf 2b 78 mr r31,r5 ffc157a0: 90 01 00 14 stw r0,20(r1) switch (opt) { ffc157a4: 41 82 00 3c beq- ffc157e0 ffc157a8: 2f 84 00 01 cmpwi cr7,r4,1 <== NOT EXECUTED ffc157ac: 41 9e 00 18 beq- cr7,ffc157c4 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc157b0: 48 00 47 b1 bl ffc19f60 <__errno> <== NOT EXECUTED ffc157b4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc157b8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc157bc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc157c0: 48 00 00 34 b ffc157f4 <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) ffc157c4: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc157c8: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc157cc: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc157d0: 48 00 37 85 bl ffc18f54 <== NOT EXECUTED ffc157d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc157d8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc157dc: 41 9c 00 18 blt- cr7,ffc157f4 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); ffc157e0: 7f c3 f3 78 mr r3,r30 ffc157e4: 7f e5 fb 78 mr r5,r31 ffc157e8: 38 80 00 02 li r4,2 ffc157ec: 4c c6 31 82 crclr 4*cr1+eq ffc157f0: 48 00 37 65 bl ffc18f54 } } ffc157f4: 80 01 00 14 lwz r0,20(r1) ffc157f8: 83 c1 00 08 lwz r30,8(r1) ffc157fc: 7c 08 03 a6 mtlr r0 ffc15800: 83 e1 00 0c lwz r31,12(r1) ffc15804: 38 21 00 10 addi r1,r1,16 ffc15808: 4e 80 00 20 blr ffc10230 : #include int unlink( const char *path ) { ffc10230: 94 21 ff b8 stwu r1,-72(r1) ffc10234: 7c 08 02 a6 mflr r0 ffc10238: 93 a1 00 3c stw r29,60(r1) ffc1023c: 93 c1 00 40 stw r30,64(r1) ffc10240: 7c 7e 1b 78 mr r30,r3 ffc10244: 90 01 00 4c stw r0,76(r1) ffc10248: 93 e1 00 44 stw r31,68(r1) /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); ffc1024c: 4b ff 3d 9d bl ffc03fe8 if ( parentpathlen == 0 ) ffc10250: 7c 7d 1b 79 mr. r29,r3 ffc10254: 40 82 00 8c bne- ffc102e0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); ffc10258: 88 1e 00 00 lbz r0,0(r30) ffc1025c: 2f 80 00 2f cmpwi cr7,r0,47 ffc10260: 41 9e 00 14 beq- cr7,ffc10274 ffc10264: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc10268: 41 9e 00 0c beq- cr7,ffc10274 <== NOT EXECUTED ffc1026c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10270: 40 9e 00 38 bne- cr7,ffc102a8 <== NOT EXECUTED ffc10274: 3d 20 00 00 lis r9,0 ffc10278: 81 29 26 9c lwz r9,9884(r9) ffc1027c: 3b e0 00 00 li r31,0 ffc10280: 80 09 00 24 lwz r0,36(r9) ffc10284: 81 09 00 18 lwz r8,24(r9) ffc10288: 81 49 00 1c lwz r10,28(r9) ffc1028c: 81 69 00 20 lwz r11,32(r9) ffc10290: 91 01 00 08 stw r8,8(r1) ffc10294: 91 41 00 0c stw r10,12(r1) ffc10298: 91 61 00 10 stw r11,16(r1) ffc1029c: 90 01 00 14 stw r0,20(r1) ffc102a0: 80 09 00 28 lwz r0,40(r9) ffc102a4: 48 00 00 34 b ffc102d8 ffc102a8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc102ac: 81 29 26 9c lwz r9,9884(r9) <== NOT EXECUTED ffc102b0: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc102b4: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc102b8: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc102bc: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc102c0: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc102c4: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc102c8: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc102cc: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc102d0: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc102d4: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc102d8: 90 01 00 18 stw r0,24(r1) ffc102dc: 48 00 00 28 b ffc10304 else { result = rtems_filesystem_evaluate_path( path, parentpathlen, ffc102e0: 7f c3 f3 78 mr r3,r30 ffc102e4: 7f a4 eb 78 mr r4,r29 ffc102e8: 38 a0 00 02 li r5,2 ffc102ec: 38 c1 00 08 addi r6,r1,8 ffc102f0: 38 e0 00 00 li r7,0 ffc102f4: 4b ff 3e 6d bl ffc04160 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc102f8: 2f 83 00 00 cmpwi cr7,r3,0 ffc102fc: 40 9e 01 ec bne- cr7,ffc104e8 ffc10300: 3b e0 00 01 li r31,1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc10304: 80 01 00 08 lwz r0,8(r1) name = path + parentpathlen; ffc10308: 7f be ea 14 add r29,r30,r29 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc1030c: 7f a3 eb 78 mr r3,r29 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc10310: 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 ), ffc10314: 3b c1 00 1c addi r30,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc10318: 80 01 00 0c lwz r0,12(r1) ffc1031c: 90 01 00 20 stw r0,32(r1) ffc10320: 80 01 00 10 lwz r0,16(r1) ffc10324: 90 01 00 24 stw r0,36(r1) ffc10328: 80 01 00 14 lwz r0,20(r1) ffc1032c: 90 01 00 28 stw r0,40(r1) ffc10330: 80 01 00 18 lwz r0,24(r1) ffc10334: 90 01 00 2c stw r0,44(r1) name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc10338: 48 00 15 71 bl ffc118a8 ffc1033c: 7c 64 1b 78 mr r4,r3 ffc10340: 7f a3 eb 78 mr r3,r29 ffc10344: 4b ff 3c 69 bl ffc03fac ffc10348: 7f bd 1a 14 add r29,r29,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc1034c: 7f a3 eb 78 mr r3,r29 ffc10350: 48 00 15 59 bl ffc118a8 ffc10354: 38 a0 00 00 li r5,0 ffc10358: 7c 64 1b 78 mr r4,r3 ffc1035c: 7f c6 f3 78 mr r6,r30 ffc10360: 7f a3 eb 78 mr r3,r29 ffc10364: 38 e0 00 00 li r7,0 ffc10368: 4b ff 3c e5 bl ffc0404c 0, &loc, false ); if ( result != 0 ) { ffc1036c: 2f 83 00 00 cmpwi cr7,r3,0 ffc10370: 41 be 00 30 beq+ cr7,ffc103a0 if ( free_parentloc ) ffc10374: 2f 9f 00 00 cmpwi cr7,r31,0 ffc10378: 41 be 01 70 beq+ cr7,ffc104e8 rtems_filesystem_freenode( &parentloc ); ffc1037c: 81 21 00 14 lwz r9,20(r1) ffc10380: 2f 89 00 00 cmpwi cr7,r9,0 ffc10384: 41 be 01 64 beq+ cr7,ffc104e8 ffc10388: 80 09 00 1c lwz r0,28(r9) ffc1038c: 38 61 00 08 addi r3,r1,8 ffc10390: 3b a0 ff ff li r29,-1 ffc10394: 2f 80 00 00 cmpwi cr7,r0,0 ffc10398: 41 be 01 50 beq+ cr7,ffc104e8 ffc1039c: 48 00 01 40 b ffc104dc return -1; } if ( !loc.ops->node_type_h ) { ffc103a0: 81 21 00 28 lwz r9,40(r1) ffc103a4: 80 09 00 10 lwz r0,16(r9) ffc103a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc103ac: 41 9e 00 80 beq- cr7,ffc1042c 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 ) { ffc103b0: 7f c3 f3 78 mr r3,r30 ffc103b4: 7c 09 03 a6 mtctr r0 ffc103b8: 4e 80 04 21 bctrl ffc103bc: 81 21 00 28 lwz r9,40(r1) ffc103c0: 2f 83 00 01 cmpwi cr7,r3,1 ffc103c4: 40 be 00 5c bne+ cr7,ffc10420 rtems_filesystem_freenode( &loc ); ffc103c8: 2f 89 00 00 cmpwi cr7,r9,0 ffc103cc: 41 9e 00 1c beq- cr7,ffc103e8 ffc103d0: 80 09 00 1c lwz r0,28(r9) ffc103d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc103d8: 41 9e 00 10 beq- cr7,ffc103e8 ffc103dc: 7f c3 f3 78 mr r3,r30 ffc103e0: 7c 09 03 a6 mtctr r0 ffc103e4: 4e 80 04 21 bctrl if ( free_parentloc ) ffc103e8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc103ec: 41 9e 00 28 beq- cr7,ffc10414 rtems_filesystem_freenode( &parentloc ); ffc103f0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc103f4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc103f8: 41 9e 00 1c beq- cr7,ffc10414 <== NOT EXECUTED ffc103fc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc10400: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10404: 41 9e 00 10 beq- cr7,ffc10414 <== NOT EXECUTED ffc10408: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc1040c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc10410: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); ffc10414: 48 00 01 99 bl ffc105ac <__errno> ffc10418: 38 00 00 15 li r0,21 ffc1041c: 48 00 00 5c b ffc10478 } if ( !loc.ops->unlink_h ) { ffc10420: 80 09 00 0c lwz r0,12(r9) ffc10424: 2f 80 00 00 cmpwi cr7,r0,0 ffc10428: 40 be 00 58 bne+ cr7,ffc10480 rtems_filesystem_freenode( &loc ); ffc1042c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc10430: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10434: 41 9e 00 10 beq- cr7,ffc10444 <== NOT EXECUTED ffc10438: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc1043c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc10440: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc10444: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc10448: 41 9e 00 28 beq- cr7,ffc10470 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc1044c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc10450: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc10454: 41 9e 00 1c beq- cr7,ffc10470 <== NOT EXECUTED ffc10458: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc1045c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10460: 41 9e 00 10 beq- cr7,ffc10470 <== NOT EXECUTED ffc10464: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc10468: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc1046c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc10470: 48 00 01 3d bl ffc105ac <__errno> <== NOT EXECUTED ffc10474: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc10478: 90 03 00 00 stw r0,0(r3) ffc1047c: 48 00 00 6c b ffc104e8 } result = (*loc.ops->unlink_h)( &parentloc, &loc ); ffc10480: 38 61 00 08 addi r3,r1,8 ffc10484: 7c 09 03 a6 mtctr r0 ffc10488: 7f c4 f3 78 mr r4,r30 ffc1048c: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc10490: 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 ); ffc10494: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc10498: 2f 89 00 00 cmpwi cr7,r9,0 ffc1049c: 41 9e 00 1c beq- cr7,ffc104b8 ffc104a0: 80 09 00 1c lwz r0,28(r9) ffc104a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc104a8: 41 9e 00 10 beq- cr7,ffc104b8 ffc104ac: 7f c3 f3 78 mr r3,r30 ffc104b0: 7c 09 03 a6 mtctr r0 ffc104b4: 4e 80 04 21 bctrl if ( free_parentloc ) ffc104b8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc104bc: 41 9e 00 30 beq- cr7,ffc104ec rtems_filesystem_freenode( &parentloc ); ffc104c0: 81 21 00 14 lwz r9,20(r1) ffc104c4: 2f 89 00 00 cmpwi cr7,r9,0 ffc104c8: 41 9e 00 24 beq- cr7,ffc104ec ffc104cc: 80 09 00 1c lwz r0,28(r9) ffc104d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc104d4: 41 9e 00 18 beq- cr7,ffc104ec ffc104d8: 38 61 00 08 addi r3,r1,8 ffc104dc: 7c 09 03 a6 mtctr r0 ffc104e0: 4e 80 04 21 bctrl ffc104e4: 48 00 00 08 b ffc104ec ffc104e8: 3b a0 ff ff li r29,-1 return result; } ffc104ec: 80 01 00 4c lwz r0,76(r1) ffc104f0: 7f a3 eb 78 mr r3,r29 ffc104f4: 83 c1 00 40 lwz r30,64(r1) ffc104f8: 7c 08 03 a6 mtlr r0 ffc104fc: 83 a1 00 3c lwz r29,60(r1) ffc10500: 83 e1 00 44 lwz r31,68(r1) ffc10504: 38 21 00 48 addi r1,r1,72 ffc10508: 4e 80 00 20 blr ffc0c574 : */ int unmount( const char *path ) { ffc0c574: 94 21 ff d0 stwu r1,-48(r1) ffc0c578: 7c 08 02 a6 mflr r0 ffc0c57c: 93 c1 00 28 stw r30,40(r1) ffc0c580: 7c 7e 1b 78 mr r30,r3 ffc0c584: 90 01 00 34 stw r0,52(r1) ffc0c588: 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 ) ) ffc0c58c: 48 04 17 4d bl ffc4dcd8 ffc0c590: 3b e1 00 08 addi r31,r1,8 ffc0c594: 7c 64 1b 78 mr r4,r3 ffc0c598: 38 a0 00 00 li r5,0 ffc0c59c: 7f c3 f3 78 mr r3,r30 ffc0c5a0: 7f e6 fb 78 mr r6,r31 ffc0c5a4: 38 e0 00 01 li r7,1 ffc0c5a8: 4b ff bf 81 bl ffc08528 ffc0c5ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c5b0: 40 9e 01 84 bne- cr7,ffc0c734 return -1; mt_entry = loc.mt_entry; ffc0c5b4: 83 c1 00 18 lwz r30,24(r1) fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; ffc0c5b8: 80 01 00 08 lwz r0,8(r1) ffc0c5bc: 81 7e 00 1c lwz r11,28(r30) ffc0c5c0: 81 21 00 14 lwz r9,20(r1) ffc0c5c4: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0c5c8: 41 be 00 30 beq+ cr7,ffc0c5f8 /* * 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 ); ffc0c5cc: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c5d0: 41 9e 00 1c beq- cr7,ffc0c5ec ffc0c5d4: 80 09 00 1c lwz r0,28(r9) ffc0c5d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c5dc: 41 9e 00 10 beq- cr7,ffc0c5ec ffc0c5e0: 7f e3 fb 78 mr r3,r31 ffc0c5e4: 7c 09 03 a6 mtctr r0 ffc0c5e8: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EACCES ); ffc0c5ec: 48 03 99 81 bl ffc45f6c <__errno> ffc0c5f0: 38 00 00 0d li r0,13 ffc0c5f4: 48 00 00 a0 b ffc0c694 /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); ffc0c5f8: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c5fc: 41 9e 00 1c beq- cr7,ffc0c618 ffc0c600: 80 09 00 1c lwz r0,28(r9) ffc0c604: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c608: 41 9e 00 10 beq- cr7,ffc0c618 ffc0c60c: 7f e3 fb 78 mr r3,r31 ffc0c610: 7c 09 03 a6 mtctr r0 ffc0c614: 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; ffc0c618: 81 3e 00 14 lwz r9,20(r30) ffc0c61c: 80 09 00 28 lwz r0,40(r9) ffc0c620: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c624: 41 9e 00 14 beq- cr7,ffc0c638 fs_root_loc = &mt_entry->mt_fs_root; ffc0c628: 81 3e 00 28 lwz r9,40(r30) ffc0c62c: 80 09 00 2c lwz r0,44(r9) ffc0c630: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c634: 40 be 00 10 bne+ cr7,ffc0c644 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 ); ffc0c638: 48 03 99 35 bl ffc45f6c <__errno> <== NOT EXECUTED ffc0c63c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0c640: 48 00 00 54 b ffc0c694 <== NOT EXECUTED * that made the current node thread based instead * of system based? I thought it was but it doesn't * look like it in this version. */ if ( rtems_filesystem_current.mt_entry == mt_entry ) ffc0c644: 3d 20 00 00 lis r9,0 ffc0c648: 81 29 34 ec lwz r9,13548(r9) ffc0c64c: 80 09 00 14 lwz r0,20(r9) ffc0c650: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0c654: 41 9e 00 38 beq- cr7,ffc0c68c /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0c658: 3d 20 00 00 lis r9,0 ffc0c65c: 3d 60 00 00 lis r11,0 ffc0c660: 81 29 63 58 lwz r9,25432(r9) ffc0c664: 38 0b 63 5c addi r0,r11,25436 ffc0c668: 48 00 00 18 b ffc0c680 if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; ffc0c66c: 81 49 00 18 lwz r10,24(r9) ffc0c670: 81 7e 00 2c lwz r11,44(r30) ffc0c674: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0c678: 41 9e 00 14 beq- cr7,ffc0c68c * 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 ) { ffc0c67c: 81 29 00 00 lwz r9,0(r9) ffc0c680: 7f 89 00 00 cmpw cr7,r9,r0 ffc0c684: 40 9e ff e8 bne+ cr7,ffc0c66c ffc0c688: 48 00 00 c8 b ffc0c750 * 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 ); ffc0c68c: 48 03 98 e1 bl ffc45f6c <__errno> ffc0c690: 38 00 00 10 li r0,16 ffc0c694: 90 03 00 00 stw r0,0(r3) ffc0c698: 48 00 00 9c b ffc0c734 * 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 ) ffc0c69c: 81 3e 00 14 lwz r9,20(r30) ffc0c6a0: 7f c3 f3 78 mr r3,r30 ffc0c6a4: 80 09 00 28 lwz r0,40(r9) ffc0c6a8: 7c 09 03 a6 mtctr r0 ffc0c6ac: 4e 80 04 21 bctrl ffc0c6b0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c6b4: 40 be 00 80 bne+ cr7,ffc0c734 * 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){ ffc0c6b8: 81 3e 00 28 lwz r9,40(r30) ffc0c6bc: 7f c3 f3 78 mr r3,r30 ffc0c6c0: 80 09 00 2c lwz r0,44(r9) ffc0c6c4: 7c 09 03 a6 mtctr r0 ffc0c6c8: 4e 80 04 21 bctrl ffc0c6cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c6d0: 41 be 00 28 beq+ cr7,ffc0c6f8 if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) ffc0c6d4: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED ffc0c6d8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c6dc: 80 09 00 20 lwz r0,32(r9) <== NOT EXECUTED ffc0c6e0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0c6e4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0c6e8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0c6ec: 41 be 00 48 beq+ cr7,ffc0c734 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); ffc0c6f0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0c6f4: 48 00 16 f5 bl ffc0dde8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0c6f8: 7f c3 f3 78 mr r3,r30 ffc0c6fc: 48 00 1b 61 bl ffc0e25c <_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 ); ffc0c700: 81 3e 00 14 lwz r9,20(r30) ffc0c704: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c708: 41 9e 00 1c beq- cr7,ffc0c724 ffc0c70c: 80 09 00 1c lwz r0,28(r9) ffc0c710: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c714: 41 9e 00 10 beq- cr7,ffc0c724 ffc0c718: 38 7e 00 08 addi r3,r30,8 ffc0c71c: 7c 09 03 a6 mtctr r0 ffc0c720: 4e 80 04 21 bctrl free( mt_entry ); ffc0c724: 7f c3 f3 78 mr r3,r30 ffc0c728: 4b ff be e5 bl ffc0860c ffc0c72c: 38 60 00 00 li r3,0 return 0; ffc0c730: 48 00 00 08 b ffc0c738 ffc0c734: 38 60 ff ff li r3,-1 } ffc0c738: 80 01 00 34 lwz r0,52(r1) ffc0c73c: 83 c1 00 28 lwz r30,40(r1) ffc0c740: 7c 08 03 a6 mtlr r0 ffc0c744: 83 e1 00 2c lwz r31,44(r1) ffc0c748: 38 21 00 30 addi r1,r1,48 ffc0c74c: 4e 80 00 20 blr * Run the file descriptor table to determine if there are any file * descriptors that are currently active and reference nodes in the * file system that we are trying to unmount */ if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 ) ffc0c750: 7f c3 f3 78 mr r3,r30 ffc0c754: 4b ff c1 f5 bl ffc08948 ffc0c758: 2f 83 00 01 cmpwi cr7,r3,1 ffc0c75c: 40 9e ff 40 bne+ cr7,ffc0c69c ffc0c760: 4b ff ff 2c b ffc0c68c ffc2cf44 : int utime( const char *path, const struct utimbuf *times ) { ffc2cf44: 94 21 ff c8 stwu r1,-56(r1) ffc2cf48: 7c 08 02 a6 mflr r0 ffc2cf4c: 93 a1 00 2c stw r29,44(r1) ffc2cf50: 7c 7d 1b 78 mr r29,r3 ffc2cf54: 90 01 00 3c stw r0,60(r1) ffc2cf58: 93 c1 00 30 stw r30,48(r1) ffc2cf5c: 7c 9e 23 78 mr r30,r4 ffc2cf60: 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 ) ) ffc2cf64: 48 02 0d 75 bl ffc4dcd8 ffc2cf68: 3b e1 00 08 addi r31,r1,8 ffc2cf6c: 7c 64 1b 78 mr r4,r3 ffc2cf70: 38 a0 00 00 li r5,0 ffc2cf74: 7f a3 eb 78 mr r3,r29 ffc2cf78: 7f e6 fb 78 mr r6,r31 ffc2cf7c: 38 e0 00 01 li r7,1 ffc2cf80: 4b fd b5 a9 bl ffc08528 ffc2cf84: 3b a0 ff ff li r29,-1 ffc2cf88: 2f 83 00 00 cmpwi cr7,r3,0 ffc2cf8c: 40 9e 00 7c bne- cr7,ffc2d008 return -1; if ( !temp_loc.ops->utime_h ){ ffc2cf90: 81 21 00 14 lwz r9,20(r1) ffc2cf94: 80 09 00 30 lwz r0,48(r9) ffc2cf98: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cf9c: 40 be 00 30 bne+ cr7,ffc2cfcc rtems_filesystem_freenode( &temp_loc ); ffc2cfa0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2cfa4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2cfa8: 41 9e 00 10 beq- cr7,ffc2cfb8 <== NOT EXECUTED ffc2cfac: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2cfb0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2cfb4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2cfb8: 48 01 8f b5 bl ffc45f6c <__errno> <== NOT EXECUTED ffc2cfbc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2cfc0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2cfc4: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2cfc8: 48 00 00 40 b ffc2d008 <== NOT EXECUTED } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); ffc2cfcc: 80 be 00 04 lwz r5,4(r30) ffc2cfd0: 7f e3 fb 78 mr r3,r31 ffc2cfd4: 80 9e 00 00 lwz r4,0(r30) ffc2cfd8: 7c 09 03 a6 mtctr r0 ffc2cfdc: 4e 80 04 21 bctrl rtems_filesystem_freenode( &temp_loc ); ffc2cfe0: 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 ); ffc2cfe4: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &temp_loc ); ffc2cfe8: 2f 89 00 00 cmpwi cr7,r9,0 ffc2cfec: 41 9e 00 1c beq- cr7,ffc2d008 ffc2cff0: 80 09 00 1c lwz r0,28(r9) ffc2cff4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cff8: 41 9e 00 10 beq- cr7,ffc2d008 ffc2cffc: 7f e3 fb 78 mr r3,r31 ffc2d000: 7c 09 03 a6 mtctr r0 ffc2d004: 4e 80 04 21 bctrl return result; } ffc2d008: 80 01 00 3c lwz r0,60(r1) ffc2d00c: 7f a3 eb 78 mr r3,r29 ffc2d010: 83 c1 00 30 lwz r30,48(r1) ffc2d014: 7c 08 03 a6 mtlr r0 ffc2d018: 83 a1 00 2c lwz r29,44(r1) ffc2d01c: 83 e1 00 34 lwz r31,52(r1) ffc2d020: 38 21 00 38 addi r1,r1,56 ffc2d024: 4e 80 00 20 blr ffc07274 : */ void vprintk( const char *fmt, va_list ap ) { ffc07274: 94 21 ff a8 stwu r1,-88(r1) ffc07278: 7c 08 02 a6 mflr r0 ffc0727c: 92 a1 00 2c stw r21,44(r1) for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc07280: 3e a0 ff c2 lis r21,-62 ffc07284: 3a b5 c8 69 addi r21,r21,-14231 */ void vprintk( const char *fmt, va_list ap ) { ffc07288: 92 c1 00 30 stw r22,48(r1) unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { ffc0728c: 3e c0 ff c2 lis r22,-62 ffc07290: 3a d6 c8 68 addi r22,r22,-14232 */ void vprintk( const char *fmt, va_list ap ) { ffc07294: 93 81 00 48 stw r28,72(r1) unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); ffc07298: 3f 80 00 00 lis r28,0 ffc0729c: 3b 9c 26 94 addi r28,r28,9876 */ void vprintk( const char *fmt, va_list ap ) { ffc072a0: 92 e1 00 34 stw r23,52(r1) toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) ffc072a4: 3a e1 00 08 addi r23,r1,8 */ void vprintk( const char *fmt, va_list ap ) { ffc072a8: 93 c1 00 50 stw r30,80(r1) ffc072ac: 7c 9e 23 78 mr r30,r4 ffc072b0: 93 e1 00 54 stw r31,84(r1) ffc072b4: 7c 7f 1b 78 mr r31,r3 ffc072b8: 90 01 00 5c stw r0,92(r1) ffc072bc: 93 01 00 38 stw r24,56(r1) ffc072c0: 93 21 00 3c stw r25,60(r1) ffc072c4: 93 41 00 40 stw r26,64(r1) ffc072c8: 93 61 00 44 stw r27,68(r1) ffc072cc: 93 a1 00 4c stw r29,76(r1) for (; *fmt != '\0'; fmt++) { ffc072d0: 48 00 03 34 b ffc07604 bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { ffc072d4: 2f 83 00 25 cmpwi cr7,r3,37 ffc072d8: 40 9e 01 f4 bne- cr7,ffc074cc BSP_output_char(*fmt); continue; } fmt++; if (*fmt == '0' ) { ffc072dc: 8c 1f 00 01 lbzu r0,1(r31) ffc072e0: 3b 00 00 20 li r24,32 ffc072e4: 2f 80 00 30 cmpwi cr7,r0,48 ffc072e8: 40 be 00 0c bne+ cr7,ffc072f4 lead = '0'; fmt++; ffc072ec: 3b ff 00 01 addi r31,r31,1 ffc072f0: 3b 00 00 30 li r24,48 } if (*fmt == '-' ) { ffc072f4: 88 1f 00 00 lbz r0,0(r31) ffc072f8: 3b 20 00 00 li r25,0 ffc072fc: 2f 80 00 2d cmpwi cr7,r0,45 ffc07300: 40 be 00 0c bne+ cr7,ffc0730c minus = true; fmt++; ffc07304: 3b ff 00 01 addi r31,r31,1 ffc07308: 3b 20 00 01 li r25,1 ffc0730c: 3b a0 00 00 li r29,0 ffc07310: 48 00 00 0c b ffc0731c } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += ((unsigned) *fmt - '0'); ffc07314: 7f a0 5a 14 add r29,r0,r11 fmt++; ffc07318: 3b ff 00 01 addi r31,r31,1 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc0731c: 88 7f 00 00 lbz r3,0(r31) width *= 10; ffc07320: 1d 7d 00 0a mulli r11,r29,10 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc07324: 38 03 ff d0 addi r0,r3,-48 ffc07328: 54 09 06 3e clrlwi r9,r0,24 ffc0732c: 2b 89 00 09 cmplwi cr7,r9,9 ffc07330: 40 9d ff e4 ble+ cr7,ffc07314 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { ffc07334: 2f 83 00 6c cmpwi cr7,r3,108 ffc07338: 40 be 00 08 bne+ cr7,ffc07340 lflag = true; c = *++fmt; ffc0733c: 8c 7f 00 01 lbzu r3,1(r31) } if ( c == 'c' ) { ffc07340: 2f 83 00 63 cmpwi cr7,r3,99 ffc07344: 40 be 00 3c bne+ cr7,ffc07380 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); ffc07348: 89 7e 00 00 lbz r11,0(r30) ffc0734c: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07350: 41 9d 00 1c bgt- cr7,ffc0736c ffc07354: 81 3e 00 08 lwz r9,8(r30) ffc07358: 38 0b 00 01 addi r0,r11,1 ffc0735c: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc07360: 98 1e 00 00 stb r0,0(r30) ffc07364: 7d 29 5a 14 add r9,r9,r11 ffc07368: 48 00 00 10 b ffc07378 ffc0736c: 81 3e 00 04 lwz r9,4(r30) <== NOT EXECUTED ffc07370: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc07374: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED BSP_output_char(chr); ffc07378: 88 69 00 03 lbz r3,3(r9) ffc0737c: 48 00 01 50 b ffc074cc continue; } if ( c == 's' ) { ffc07380: 2f 83 00 73 cmpwi cr7,r3,115 ffc07384: 40 be 00 e8 bne+ cr7,ffc0746c unsigned i, len; char *s, *str; str = va_arg(ap, char *); ffc07388: 89 7e 00 00 lbz r11,0(r30) ffc0738c: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07390: 41 9d 00 1c bgt- cr7,ffc073ac ffc07394: 81 3e 00 08 lwz r9,8(r30) ffc07398: 38 0b 00 01 addi r0,r11,1 ffc0739c: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc073a0: 98 1e 00 00 stb r0,0(r30) ffc073a4: 7d 29 5a 14 add r9,r9,r11 ffc073a8: 48 00 00 10 b ffc073b8 ffc073ac: 81 3e 00 04 lwz r9,4(r30) <== NOT EXECUTED ffc073b0: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc073b4: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED ffc073b8: 83 49 00 00 lwz r26,0(r9) if ( str == NULL ) { ffc073bc: 2f 9a 00 00 cmpwi cr7,r26,0 ffc073c0: 40 be 00 08 bne+ cr7,ffc073c8 ffc073c4: 7e da b3 78 mr r26,r22 ffc073c8: 3b 60 00 00 li r27,0 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) ffc073cc: 48 00 00 08 b ffc073d4 ffc073d0: 3b 7b 00 01 addi r27,r27,1 ffc073d4: 7c 1a d8 ae lbzx r0,r26,r27 ffc073d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc073dc: 40 9e ff f4 bne+ cr7,ffc073d0 ; /* leading spaces */ if ( !minus ) ffc073e0: 2f 99 00 00 cmpwi cr7,r25,0 ffc073e4: 7f 78 db 78 mr r24,r27 ffc073e8: 41 9e 00 14 beq- cr7,ffc073fc ffc073ec: 48 00 00 20 b ffc0740c for ( i=len ; i BSP_output_char(' '); /* no width option */ if (width == 0) { ffc0740c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc07410: 40 9e 00 08 bne- cr7,ffc07418 ffc07414: 7f 7d db 78 mr r29,r27 width = len; } /* output the string */ for ( i=0 ; i ffc07420: 48 00 00 10 b ffc07430 BSP_output_char(*str); ffc07424: 80 1c 00 00 lwz r0,0(r28) ffc07428: 7c 09 03 a6 mtctr r0 ffc0742c: 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 ) ffc07440: 2f 99 00 00 cmpwi cr7,r25,0 ffc07444: 40 9e 00 14 bne- cr7,ffc07458 ffc07448: 48 00 01 b8 b ffc07600 for ( i=len ; i ffc07468: 48 00 01 98 b ffc07600 continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { ffc0746c: 2f 83 00 6f cmpwi cr7,r3,111 ffc07470: 41 9e 00 6c beq- cr7,ffc074dc ffc07474: 2f 83 00 4f cmpwi cr7,r3,79 ffc07478: 41 9e 00 64 beq- cr7,ffc074dc base = 8; sign = false; } else if ( c == 'i' || c == 'I' || ffc0747c: 2f 83 00 69 cmpwi cr7,r3,105 ffc07480: 41 9e 00 68 beq- cr7,ffc074e8 ffc07484: 2f 83 00 49 cmpwi cr7,r3,73 ffc07488: 41 9e 00 60 beq- cr7,ffc074e8 ffc0748c: 2f 83 00 64 cmpwi cr7,r3,100 ffc07490: 41 9e 00 58 beq- cr7,ffc074e8 ffc07494: 2f 83 00 44 cmpwi cr7,r3,68 ffc07498: 41 9e 00 50 beq- cr7,ffc074e8 c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { ffc0749c: 2f 83 00 75 cmpwi cr7,r3,117 ffc074a0: 41 9e 00 50 beq- cr7,ffc074f0 ffc074a4: 2f 83 00 55 cmpwi cr7,r3,85 ffc074a8: 41 9e 00 48 beq- cr7,ffc074f0 base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { ffc074ac: 2f 83 00 78 cmpwi cr7,r3,120 ffc074b0: 41 9e 00 4c beq- cr7,ffc074fc ffc074b4: 2f 83 00 58 cmpwi cr7,r3,88 ffc074b8: 41 9e 00 44 beq- cr7,ffc074fc base = 16; sign = false; } else if ( c == 'p' ) { ffc074bc: 2f 83 00 70 cmpwi cr7,r3,112 ffc074c0: 38 00 00 00 li r0,0 ffc074c4: 3b 60 00 10 li r27,16 ffc074c8: 41 9e 00 3c beq- cr7,ffc07504 base = 16; sign = false; lflag = true; } else { BSP_output_char(c); ffc074cc: 80 1c 00 00 lwz r0,0(r28) ffc074d0: 7c 09 03 a6 mtctr r0 ffc074d4: 4e 80 04 21 bctrl continue; ffc074d8: 48 00 01 28 b ffc07600 ffc074dc: 38 00 00 00 li r0,0 ffc074e0: 3b 60 00 08 li r27,8 ffc074e4: 48 00 00 20 b ffc07504 ffc074e8: 38 00 00 01 li r0,1 ffc074ec: 48 00 00 08 b ffc074f4 ffc074f0: 38 00 00 00 li r0,0 ffc074f4: 3b 60 00 0a li r27,10 ffc074f8: 48 00 00 0c b ffc07504 ffc074fc: 38 00 00 00 li r0,0 ffc07500: 3b 60 00 10 li r27,16 } printNum( lflag ? va_arg(ap, long) : (long) va_arg(ap, int), ffc07504: 89 7e 00 00 lbz r11,0(r30) ffc07508: 2b 8b 00 07 cmplwi cr7,r11,7 ffc0750c: 41 9d 00 1c bgt- cr7,ffc07528 ffc07510: 81 3e 00 08 lwz r9,8(r30) ffc07514: 39 4b 00 01 addi r10,r11,1 ffc07518: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc0751c: 99 5e 00 00 stb r10,0(r30) ffc07520: 7d 29 5a 14 add r9,r9,r11 } else { BSP_output_char(c); continue; } printNum( ffc07524: 48 00 00 10 b ffc07534 lflag ? va_arg(ap, long) : (long) va_arg(ap, int), ffc07528: 81 3e 00 04 lwz r9,4(r30) ffc0752c: 39 69 00 04 addi r11,r9,4 ffc07530: 91 7e 00 04 stw r11,4(r30) unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { ffc07534: 2f 80 00 00 cmpwi cr7,r0,0 } else { BSP_output_char(c); continue; } printNum( ffc07538: 83 49 00 00 lwz r26,0(r9) unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { ffc0753c: 41 9e 00 3c beq- cr7,ffc07578 ffc07540: 2f 9a 00 00 cmpwi cr7,r26,0 ffc07544: 40 bc 00 34 bge+ cr7,ffc07578 BSP_output_char('-'); ffc07548: 80 1c 00 00 lwz r0,0(r28) ffc0754c: 38 60 00 2d li r3,45 ffc07550: 7c 09 03 a6 mtctr r0 ffc07554: 4e 80 04 21 bctrl unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; ffc07558: 7f a9 fe 70 srawi r9,r29,31 ffc0755c: 7d 20 ea 78 xor r0,r9,r29 ffc07560: 7c 09 00 50 subf r0,r9,r0 ffc07564: 7c 00 00 d0 neg r0,r0 ffc07568: 54 00 0f fe rlwinm r0,r0,1,31,31 ffc0756c: 7f a0 e8 50 subf r29,r0,r29 unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); unsigned_num = (unsigned long) -num; ffc07570: 7c 1a 00 d0 neg r0,r26 ffc07574: 48 00 00 08 b ffc0757c if (maxwidth) maxwidth--; } else { unsigned_num = (unsigned long) num; ffc07578: 7f 40 d3 78 mr r0,r26 ffc0757c: 3b 40 00 00 li r26,0 ffc07580: 48 00 00 10 b ffc07590 } count = 0; while ((n = unsigned_num / base) > 0) { toPrint[count++] = (char) (unsigned_num - (n * base)); ffc07584: 99 4b 00 08 stb r10,8(r11) ffc07588: 7f 3a cb 78 mr r26,r25 ffc0758c: 7d 20 4b 78 mr r0,r9 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { ffc07590: 7d 20 db 96 divwu r9,r0,r27 ffc07594: 2f 89 00 00 cmpwi cr7,r9,0 toPrint[count++] = (char) (unsigned_num - (n * base)); ffc07598: 7d 49 d9 d6 mullw r10,r9,r27 ffc0759c: 7d 61 d2 14 add r11,r1,r26 ffc075a0: 7d 4a 00 50 subf r10,r10,r0 ffc075a4: 3b 3a 00 01 addi r25,r26,1 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { ffc075a8: 40 9e ff dc bne+ cr7,ffc07584 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; ffc075ac: 98 0b 00 08 stb r0,8(r11) ffc075b0: 48 00 00 10 b ffc075c0 for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); ffc075b4: 80 1c 00 00 lwz r0,0(r28) ffc075b8: 7c 09 03 a6 mtctr r0 ffc075bc: 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-- ) ffc075c0: 7f 9d c8 40 cmplw cr7,r29,r25 BSP_output_char(lead); ffc075c4: 7f 03 c3 78 mr r3,r24 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) ffc075c8: 3b bd ff ff addi r29,r29,-1 ffc075cc: 41 9d ff e8 bgt+ cr7,ffc075b4 ffc075d0: 7f 57 d2 14 add r26,r23,r26 ffc075d4: 3b a0 00 00 li r29,0 ffc075d8: 48 00 00 1c b ffc075f4 BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc075dc: 89 3a 00 00 lbz r9,0(r26) toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { ffc075e0: 3b 5a ff ff addi r26,r26,-1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc075e4: 80 1c 00 00 lwz r0,0(r28) ffc075e8: 7c 75 48 ae lbzx r3,r21,r9 ffc075ec: 7c 09 03 a6 mtctr r0 ffc075f0: 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++) { ffc075f4: 7f 9d c8 40 cmplw cr7,r29,r25 ffc075f8: 3b bd 00 01 addi r29,r29,1 ffc075fc: 41 9c ff e0 blt+ cr7,ffc075dc void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { ffc07600: 3b ff 00 01 addi r31,r31,1 ffc07604: 88 7f 00 00 lbz r3,0(r31) ffc07608: 2f 83 00 00 cmpwi cr7,r3,0 ffc0760c: 40 9e fc c8 bne+ cr7,ffc072d4 sign, width, lead ); } } ffc07610: 80 01 00 5c lwz r0,92(r1) ffc07614: 82 a1 00 2c lwz r21,44(r1) ffc07618: 7c 08 03 a6 mtlr r0 ffc0761c: 82 c1 00 30 lwz r22,48(r1) ffc07620: 82 e1 00 34 lwz r23,52(r1) ffc07624: 83 01 00 38 lwz r24,56(r1) ffc07628: 83 21 00 3c lwz r25,60(r1) ffc0762c: 83 41 00 40 lwz r26,64(r1) ffc07630: 83 61 00 44 lwz r27,68(r1) ffc07634: 83 81 00 48 lwz r28,72(r1) ffc07638: 83 a1 00 4c lwz r29,76(r1) ffc0763c: 83 c1 00 50 lwz r30,80(r1) ffc07640: 83 e1 00 54 lwz r31,84(r1) ffc07644: 38 21 00 58 addi r1,r1,88 ffc07648: 4e 80 00 20 blr ffc1b610 : ssize_t write( int fd, const void *buffer, size_t count ) { ffc1b610: 94 21 ff f0 stwu r1,-16(r1) ffc1b614: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b618: 3d 20 00 00 lis r9,0 ssize_t write( int fd, const void *buffer, size_t count ) { ffc1b61c: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b620: 80 09 26 4c lwz r0,9804(r9) ssize_t write( int fd, const void *buffer, size_t count ) { ffc1b624: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b628: 7f 83 00 40 cmplw cr7,r3,r0 ffc1b62c: 40 9c 00 20 bge- cr7,ffc1b64c iop = rtems_libio_iop( fd ); ffc1b630: 3d 40 00 00 lis r10,0 ffc1b634: 83 ea 27 08 lwz r31,9992(r10) ffc1b638: 1c 63 00 48 mulli r3,r3,72 ffc1b63c: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1b640: 80 1f 00 18 lwz r0,24(r31) ffc1b644: 70 0a 01 00 andi. r10,r0,256 ffc1b648: 40 a2 00 10 bne+ ffc1b658 ffc1b64c: 4b ff 4f 61 bl ffc105ac <__errno> <== NOT EXECUTED ffc1b650: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1b654: 48 00 00 44 b ffc1b698 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); ffc1b658: 2f 84 00 00 cmpwi cr7,r4,0 ffc1b65c: 41 9e 00 18 beq- cr7,ffc1b674 rtems_libio_check_count( count ); ffc1b660: 2f 85 00 00 cmpwi cr7,r5,0 ffc1b664: 38 60 00 00 li r3,0 ffc1b668: 41 9e 00 70 beq- cr7,ffc1b6d8 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc1b66c: 70 09 00 04 andi. r9,r0,4 ffc1b670: 40 a2 00 10 bne+ ffc1b680 ffc1b674: 4b ff 4f 39 bl ffc105ac <__errno> <== NOT EXECUTED ffc1b678: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1b67c: 48 00 00 1c b ffc1b698 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) ffc1b680: 81 3f 00 40 lwz r9,64(r31) ffc1b684: 80 09 00 0c lwz r0,12(r9) ffc1b688: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b68c: 40 be 00 18 bne+ cr7,ffc1b6a4 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1b690: 4b ff 4f 1d bl ffc105ac <__errno> <== NOT EXECUTED ffc1b694: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1b698: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1b69c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1b6a0: 48 00 00 38 b ffc1b6d8 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); ffc1b6a4: 7f e3 fb 78 mr r3,r31 ffc1b6a8: 7c 09 03 a6 mtctr r0 ffc1b6ac: 4e 80 04 21 bctrl if ( rc > 0 ) ffc1b6b0: 2c 03 00 00 cmpwi r3,0 ffc1b6b4: 40 81 00 24 ble- ffc1b6d8 iop->offset += rc; ffc1b6b8: 80 ff 00 10 lwz r7,16(r31) ffc1b6bc: 7c 6a 1b 78 mr r10,r3 ffc1b6c0: 81 1f 00 14 lwz r8,20(r31) ffc1b6c4: 7c 69 fe 70 srawi r9,r3,31 ffc1b6c8: 7d 88 50 14 addc r12,r8,r10 ffc1b6cc: 7d 67 49 14 adde r11,r7,r9 ffc1b6d0: 91 7f 00 10 stw r11,16(r31) ffc1b6d4: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1b6d8: 80 01 00 14 lwz r0,20(r1) ffc1b6dc: 83 e1 00 0c lwz r31,12(r1) ffc1b6e0: 38 21 00 10 addi r1,r1,16 ffc1b6e4: 7c 08 03 a6 mtlr r0 ffc1b6e8: 4e 80 00 20 blr ffc08fd0 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08fd0: 94 21 ff d8 stwu r1,-40(r1) ffc08fd4: 7c 08 02 a6 mflr r0 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc08fd8: 3d 20 00 00 lis r9,0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08fdc: 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 ); ffc08fe0: 80 09 26 4c lwz r0,9804(r9) ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08fe4: 93 81 00 18 stw r28,24(r1) ffc08fe8: 7c bc 2b 78 mr r28,r5 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc08fec: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08ff0: 93 21 00 0c stw r25,12(r1) ffc08ff4: 93 41 00 10 stw r26,16(r1) ffc08ff8: 93 61 00 14 stw r27,20(r1) ffc08ffc: 93 a1 00 1c stw r29,28(r1) ffc09000: 93 c1 00 20 stw r30,32(r1) ffc09004: 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 ); ffc09008: 40 9c 00 20 bge- cr7,ffc09028 iop = rtems_libio_iop( fd ); ffc0900c: 3d 20 00 00 lis r9,0 ffc09010: 83 a9 27 0c lwz r29,9996(r9) ffc09014: 1c 63 00 48 mulli r3,r3,72 ffc09018: 7f bd 1a 14 add r29,r29,r3 rtems_libio_check_is_open( iop ); ffc0901c: 80 1d 00 18 lwz r0,24(r29) ffc09020: 70 09 01 00 andi. r9,r0,256 ffc09024: 40 a2 00 10 bne+ ffc09034 ffc09028: 48 00 a1 b1 bl ffc131d8 <__errno> ffc0902c: 38 00 00 09 li r0,9 ffc09030: 48 00 00 14 b ffc09044 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc09034: 70 09 00 04 andi. r9,r0,4 ffc09038: 40 a2 00 14 bne+ ffc0904c ffc0903c: 48 00 a1 9d bl ffc131d8 <__errno> ffc09040: 38 00 00 16 li r0,22 ffc09044: 90 03 00 00 stw r0,0(r3) ffc09048: 48 00 00 cc b ffc09114 /* * Argument validation on IO vector */ if ( !iov ) ffc0904c: 2f 84 00 00 cmpwi cr7,r4,0 ffc09050: 41 be ff ec beq- cr7,ffc0903c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc09054: 2f 85 00 00 cmpwi cr7,r5,0 ffc09058: 40 bd ff e4 ble- cr7,ffc0903c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc0905c: 2f 85 04 00 cmpwi cr7,r5,1024 ffc09060: 41 bd ff dc bgt- cr7,ffc0903c rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) ffc09064: 81 3d 00 40 lwz r9,64(r29) ffc09068: 80 09 00 0c lwz r0,12(r9) ffc0906c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09070: 40 be 00 10 bne+ cr7,ffc09080 rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc09074: 48 00 a1 65 bl ffc131d8 <__errno> <== NOT EXECUTED ffc09078: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0907c: 4b ff ff c8 b ffc09044 <== NOT EXECUTED ffc09080: 7c a9 03 a6 mtctr r5 ffc09084: 7c 9e 23 78 mr r30,r4 ffc09088: 7c 89 23 78 mr r9,r4 ffc0908c: 38 00 00 01 li r0,1 ffc09090: 39 60 00 00 li r11,0 * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { if ( !iov[v].iov_base ) ffc09094: 81 49 00 00 lwz r10,0(r9) ffc09098: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0909c: 41 be ff a0 beq- cr7,ffc0903c 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 ) ffc090a0: 81 09 00 04 lwz r8,4(r9) * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { ffc090a4: 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; ffc090a8: 7d 4b 42 14 add r10,r11,r8 if ( total < old || total > SSIZE_MAX ) ffc090ac: 7f 0a 58 00 cmpw cr6,r10,r11 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) ffc090b0: 31 08 ff ff addic r8,r8,-1 ffc090b4: 7d 08 41 10 subfe r8,r8,r8 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) ffc090b8: 2f 8a 7f ff cmpwi cr7,r10,32767 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) ffc090bc: 7c 00 40 38 and r0,r0,r8 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) ffc090c0: 41 b8 ff 7c blt- cr6,ffc0903c ffc090c4: 41 bd ff 78 bgt- cr7,ffc0903c * 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++ ) { ffc090c8: 42 40 00 0c bdz- ffc090d4 ffc090cc: 7d 4b 53 78 mr r11,r10 ffc090d0: 4b ff ff c4 b ffc09094 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { ffc090d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc090d8: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc090dc: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc090e0: 40 9e 00 7c bne- cr7,ffc0915c <== 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 ) ffc090e4: 80 be 00 04 lwz r5,4(r30) <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc090e8: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc090ec: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc090f0: 41 be 00 60 beq+ cr7,ffc09150 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc090f4: 81 3d 00 40 lwz r9,64(r29) <== NOT EXECUTED ffc090f8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc090fc: 80 9e 00 00 lwz r4,0(r30) <== NOT EXECUTED ffc09100: 80 09 00 0c lwz r0,12(r9) <== NOT EXECUTED ffc09104: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc09108: 4e 80 04 21 bctrl <== NOT EXECUTED if ( bytes < 0 ) ffc0910c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc09110: 40 a0 00 0c bge+ ffc0911c <== NOT EXECUTED ffc09114: 3b e0 ff ff li r31,-1 ffc09118: 48 00 00 44 b ffc0915c return -1; if ( bytes > 0 ) { ffc0911c: 41 82 00 28 beq- ffc09144 <== NOT EXECUTED iop->offset += bytes; ffc09120: 81 7d 00 10 lwz r11,16(r29) <== NOT EXECUTED ffc09124: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED ffc09128: 81 9d 00 14 lwz r12,20(r29) <== NOT EXECUTED ffc0912c: 7c 79 fe 70 srawi r25,r3,31 <== NOT EXECUTED total += bytes; ffc09130: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc09134: 7d 4c d0 14 addc r10,r12,r26 <== NOT EXECUTED ffc09138: 7d 2b c9 14 adde r9,r11,r25 <== NOT EXECUTED ffc0913c: 91 3d 00 10 stw r9,16(r29) <== NOT EXECUTED ffc09140: 91 5d 00 14 stw r10,20(r29) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) ffc09144: 80 1e 00 04 lwz r0,4(r30) <== NOT EXECUTED ffc09148: 7f 83 00 00 cmpw cr7,r3,r0 <== NOT EXECUTED ffc0914c: 40 9e 00 10 bne- cr7,ffc0915c <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc09150: 7f 9b e0 00 cmpw cr7,r27,r28 <== NOT EXECUTED ffc09154: 3b de 00 08 addi r30,r30,8 <== NOT EXECUTED ffc09158: 41 9c ff 8c blt+ cr7,ffc090e4 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } ffc0915c: 80 01 00 2c lwz r0,44(r1) ffc09160: 7f e3 fb 78 mr r3,r31 ffc09164: 83 21 00 0c lwz r25,12(r1) ffc09168: 7c 08 03 a6 mtlr r0 ffc0916c: 83 41 00 10 lwz r26,16(r1) ffc09170: 83 61 00 14 lwz r27,20(r1) ffc09174: 83 81 00 18 lwz r28,24(r1) ffc09178: 83 a1 00 1c lwz r29,28(r1) ffc0917c: 83 c1 00 20 lwz r30,32(r1) ffc09180: 83 e1 00 24 lwz r31,36(r1) ffc09184: 38 21 00 28 addi r1,r1,40 ffc09188: 4e 80 00 20 blr