ffc0bdd8 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { ffc0bdd8: 81 63 00 00 lwz r11,0(r3) ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; ffc0bddc: 81 23 00 10 lwz r9,16(r3) switch( node->type ) { ffc0bde0: 81 6b 00 4c lwz r11,76(r11) ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; ffc0bde4: 81 29 00 34 lwz r9,52(r9) switch( node->type ) { ffc0bde8: 38 0b ff ff addi r0,r11,-1 ffc0bdec: 2b 80 00 06 cmplwi cr7,r0,6 ffc0bdf0: 41 9d 00 54 bgt- cr7,ffc0be44 <== NEVER TAKEN ffc0bdf4: 3d 60 ff c2 lis r11,-62 ffc0bdf8: 39 6b c9 a4 addi r11,r11,-13916 ffc0bdfc: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0be00: 7c 0b 00 2e lwzx r0,r11,r0 ffc0be04: 7d 60 5a 14 add r11,r0,r11 ffc0be08: 7d 69 03 a6 mtctr r11 ffc0be0c: 4e 80 04 20 bctr case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; ffc0be10: 80 09 00 0c lwz r0,12(r9) ffc0be14: 48 00 00 2c b ffc0be40 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; ffc0be18: 3d 20 ff c2 lis r9,-62 ffc0be1c: 38 09 ca 70 addi r0,r9,-13712 ffc0be20: 48 00 00 20 b ffc0be40 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; ffc0be24: 3d 20 ff c2 lis r9,-62 ffc0be28: 38 09 ca a8 addi r0,r9,-13656 ffc0be2c: 48 00 00 14 b ffc0be40 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; ffc0be30: 80 09 00 08 lwz r0,8(r9) ffc0be34: 48 00 00 0c b ffc0be40 break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; ffc0be38: 3d 20 ff c2 lis r9,-62 ffc0be3c: 38 09 c9 c0 addi r0,r9,-13888 ffc0be40: 90 03 00 08 stw r0,8(r3) break; } return 0; } ffc0be44: 38 60 00 00 li r3,0 ffc0be48: 4e 80 00 20 blr ffc0f364 : IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc0f364: 94 21 ff d8 stwu r1,-40(r1) ffc0f368: 7c 08 02 a6 mflr r0 ffc0f36c: 93 81 00 18 stw r28,24(r1) ffc0f370: 7c 9c 23 78 mr r28,r4 struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc0f374: 38 80 00 68 li r4,104 IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc0f378: 93 a1 00 1c stw r29,28(r1) ffc0f37c: 7c 7d 1b 78 mr r29,r3 struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc0f380: 38 60 00 01 li r3,1 IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc0f384: 93 c1 00 20 stw r30,32(r1) ffc0f388: 7c be 2b 78 mr r30,r5 ffc0f38c: 93 e1 00 24 stw r31,36(r1) ffc0f390: 90 01 00 2c stw r0,44(r1) struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc0f394: 4b ff db d9 bl ffc0cf6c if ( !node ) ffc0f398: 7c 7f 1b 79 mr. r31,r3 ffc0f39c: 41 82 00 4c beq- ffc0f3e8 <== NEVER TAKEN return NULL; /* * Fill in the basic information */ node->st_nlink = 1; ffc0f3a0: 38 00 00 01 li r0,1 node->type = type; ffc0f3a4: 93 bf 00 4c stw r29,76(r31) strncpy( node->name, name, IMFS_NAME_MAX ); ffc0f3a8: 7f 84 e3 78 mr r4,r28 return NULL; /* * Fill in the basic information */ node->st_nlink = 1; ffc0f3ac: b0 1f 00 34 sth r0,52(r31) node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); ffc0f3b0: 38 a0 00 20 li r5,32 ffc0f3b4: 38 7f 00 0c addi r3,r31,12 ffc0f3b8: 48 00 25 c9 bl ffc11980 node->st_mode = mode; #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; ffc0f3bc: 38 00 00 00 li r0,0 node->st_gid = 0; ffc0f3c0: b0 1f 00 3e sth r0,62(r31) #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); ffc0f3c4: 38 61 00 08 addi r3,r1,8 ffc0f3c8: 38 80 00 00 li r4,0 node->st_mode = mode; #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); #else node->st_uid = 0; ffc0f3cc: b0 1f 00 3c sth r0,60(r31) strncpy( node->name, name, IMFS_NAME_MAX ); /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; ffc0f3d0: 93 df 00 30 stw r30,48(r31) #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); ffc0f3d4: 4b ff dd f1 bl ffc0d1c4 node->stat_atime = (time_t) tv.tv_sec; ffc0f3d8: 80 01 00 08 lwz r0,8(r1) node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; ffc0f3dc: 90 1f 00 48 stw r0,72(r31) /* * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; ffc0f3e0: 90 1f 00 40 stw r0,64(r31) node->stat_mtime = (time_t) tv.tv_sec; ffc0f3e4: 90 1f 00 44 stw r0,68(r31) node->stat_ctime = (time_t) tv.tv_sec; return node; } ffc0f3e8: 80 01 00 2c lwz r0,44(r1) ffc0f3ec: 7f e3 fb 78 mr r3,r31 ffc0f3f0: 83 81 00 18 lwz r28,24(r1) ffc0f3f4: 7c 08 03 a6 mtlr r0 ffc0f3f8: 83 a1 00 1c lwz r29,28(r1) ffc0f3fc: 83 c1 00 20 lwz r30,32(r1) ffc0f400: 83 e1 00 24 lwz r31,36(r1) ffc0f404: 38 21 00 28 addi r1,r1,40 ffc0f408: 4e 80 00 20 blr ffc0f45c : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0f45c: 94 21 ff e8 stwu r1,-24(r1) ffc0f460: 7c 08 02 a6 mflr r0 ffc0f464: 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 ) ffc0f468: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0f46c: 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 ) ffc0f470: 3b 80 00 00 li r28,0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0f474: 93 a1 00 0c stw r29,12(r1) ffc0f478: 7c fd 3b 78 mr r29,r7 ffc0f47c: 93 c1 00 10 stw r30,16(r1) ffc0f480: 7c 9e 23 78 mr r30,r4 ffc0f484: 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 ) ffc0f488: 41 a2 01 18 beq+ ffc0f5a0 <== NEVER TAKEN return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); ffc0f48c: 3d 20 00 00 lis r9,0 ffc0f490: 81 29 26 9c lwz r9,9884(r9) ffc0f494: 7c a4 2b 78 mr r4,r5 ffc0f498: 7f c3 f3 78 mr r3,r30 ffc0f49c: 80 a9 00 2c lwz r5,44(r9) ffc0f4a0: 7c c5 28 78 andc r5,r6,r5 ffc0f4a4: 4b ff fe c1 bl ffc0f364 if ( !node ) ffc0f4a8: 7c 7c 1b 79 mr. r28,r3 ffc0f4ac: 41 82 00 f4 beq- ffc0f5a0 <== NEVER TAKEN return NULL; /* * Set the type specific information */ switch (type) { ffc0f4b0: 3b de ff ff addi r30,r30,-1 ffc0f4b4: 2b 9e 00 06 cmplwi cr7,r30,6 ffc0f4b8: 41 9d 00 9c bgt- cr7,ffc0f554 <== NEVER TAKEN ffc0f4bc: 3d 20 ff c2 lis r9,-62 ffc0f4c0: 39 29 cb f8 addi r9,r9,-13320 ffc0f4c4: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc0f4c8: 7c 09 f0 2e lwzx r0,r9,r30 ffc0f4cc: 7d 20 4a 14 add r9,r0,r9 ffc0f4d0: 7d 29 03 a6 mtctr r9 ffc0f4d4: 4e 80 04 20 bctr */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0f4d8: 39 3c 00 54 addi r9,r28,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0f4dc: 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); ffc0f4e0: 91 3c 00 50 stw r9,80(r28) the_chain->permanent_null = NULL; ffc0f4e4: 39 20 00 00 li r9,0 ffc0f4e8: 91 3c 00 54 stw r9,84(r28) the_chain->last = _Chain_Head(the_chain); ffc0f4ec: 90 1c 00 58 stw r0,88(r28) ffc0f4f0: 48 00 00 84 b ffc0f574 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; ffc0f4f4: 80 1d 00 00 lwz r0,0(r29) ffc0f4f8: 48 00 00 54 b ffc0f54c break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; ffc0f4fc: 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; ffc0f500: 80 1d 00 00 lwz r0,0(r29) node->info.device.minor = info->device.minor; ffc0f504: 91 3c 00 54 stw r9,84(r28) ffc0f508: 48 00 00 44 b ffc0f54c break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; ffc0f50c: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc0f510: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc0f514: 91 3c 00 50 stw r9,80(r28) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc0f518: 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; ffc0f51c: 91 5c 00 54 stw r10,84(r28) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc0f520: 90 1c 00 58 stw r0,88(r28) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; ffc0f524: 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; ffc0f528: 39 20 00 00 li r9,0 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; ffc0f52c: 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; ffc0f530: 39 40 00 00 li r10,0 ffc0f534: 91 3c 00 50 stw r9,80(r28) ffc0f538: 91 5c 00 54 stw r10,84(r28) node->info.file.indirect = 0; ffc0f53c: 90 1c 00 58 stw r0,88(r28) node->info.file.doubly_indirect = 0; ffc0f540: 90 1c 00 5c stw r0,92(r28) node->info.file.triply_indirect = 0; break; ffc0f544: 48 00 00 30 b ffc0f574 case IMFS_FIFO: node->info.fifo.pipe = NULL; ffc0f548: 38 00 00 00 li r0,0 ffc0f54c: 90 1c 00 50 stw r0,80(r28) break; ffc0f550: 48 00 00 24 b ffc0f574 default: assert(0); ffc0f554: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0f558: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc0f55c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0f560: 38 63 cc 25 addi r3,r3,-13275 <== NOT EXECUTED ffc0f564: 38 a5 cc 14 addi r5,r5,-13292 <== NOT EXECUTED ffc0f568: 38 c6 c1 67 addi r6,r6,-16025 <== NOT EXECUTED ffc0f56c: 38 80 00 5c li r4,92 <== NOT EXECUTED ffc0f570: 4b ff 48 65 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; ffc0f574: 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 ); ffc0f578: 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; ffc0f57c: 80 7f 00 00 lwz r3,0(r31) fs_info = parent_loc->mt_entry->fs_info; ffc0f580: 81 29 00 34 lwz r9,52(r9) node->Parent = parent; ffc0f584: 90 7c 00 08 stw r3,8(r28) ffc0f588: 38 63 00 50 addi r3,r3,80 node->st_ino = ++fs_info->ino_count; ffc0f58c: 81 69 00 04 lwz r11,4(r9) ffc0f590: 38 0b 00 01 addi r0,r11,1 ffc0f594: 90 09 00 04 stw r0,4(r9) ffc0f598: 90 1c 00 38 stw r0,56(r28) ffc0f59c: 4b ff 94 7d bl ffc08a18 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } ffc0f5a0: 80 01 00 1c lwz r0,28(r1) ffc0f5a4: 7f 83 e3 78 mr r3,r28 ffc0f5a8: 83 a1 00 0c lwz r29,12(r1) ffc0f5ac: 7c 08 03 a6 mtlr r0 ffc0f5b0: 83 81 00 08 lwz r28,8(r1) ffc0f5b4: 83 c1 00 10 lwz r30,16(r1) ffc0f5b8: 83 e1 00 14 lwz r31,20(r1) ffc0f5bc: 38 21 00 18 addi r1,r1,24 ffc0f5c0: 4e 80 00 20 blr ffc0f40c : IMFS_jnode_t *IMFS_create_root_node(void) { ffc0f40c: 94 21 ff f8 stwu r1,-8(r1) ffc0f410: 7c 08 02 a6 mflr r0 IMFS_jnode_t *node; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( IMFS_DIRECTORY, "", (S_IFDIR | 0755) ); ffc0f414: 3c 80 ff c2 lis r4,-62 ffc0f418: 38 84 c8 a8 addi r4,r4,-14168 return node; } IMFS_jnode_t *IMFS_create_root_node(void) { ffc0f41c: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( IMFS_DIRECTORY, "", (S_IFDIR | 0755) ); ffc0f420: 38 60 00 01 li r3,1 ffc0f424: 38 a0 41 ed li r5,16877 ffc0f428: 4b ff ff 3d bl ffc0f364 if ( !node ) ffc0f42c: 2c 03 00 00 cmpwi r3,0 ffc0f430: 41 82 00 1c beq- ffc0f44c <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0f434: 39 23 00 54 addi r9,r3,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0f438: 38 03 00 50 addi r0,r3,80 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0f43c: 91 23 00 50 stw r9,80(r3) the_chain->permanent_null = NULL; ffc0f440: 39 20 00 00 li r9,0 ffc0f444: 91 23 00 54 stw r9,84(r3) the_chain->last = _Chain_Head(the_chain); ffc0f448: 90 03 00 58 stw r0,88(r3) * NOTE: Root node is always a directory. */ rtems_chain_initialize_empty(&node->info.directory.Entries); return node; } ffc0f44c: 80 01 00 0c lwz r0,12(r1) ffc0f450: 38 21 00 08 addi r1,r1,8 ffc0f454: 7c 08 03 a6 mtlr r0 ffc0f458: 4e 80 00 20 blr ffc06bc4 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); ffc06bc4: 2c 03 00 00 cmpwi r3,0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { ffc06bc8: 94 21 ff d8 stwu r1,-40(r1) ffc06bcc: 7c 08 02 a6 mflr r0 ffc06bd0: 93 c1 00 20 stw r30,32(r1) ffc06bd4: 7c 9e 23 78 mr r30,r4 ffc06bd8: 90 01 00 2c stw r0,44(r1) ffc06bdc: 93 21 00 0c stw r25,12(r1) ffc06be0: 93 41 00 10 stw r26,16(r1) ffc06be4: 93 61 00 14 stw r27,20(r1) ffc06be8: 93 81 00 18 stw r28,24(r1) ffc06bec: 93 a1 00 1c stw r29,28(r1) ffc06bf0: 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 ); ffc06bf4: 40 a2 00 24 bne+ ffc06c18 <== ALWAYS TAKEN ffc06bf8: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06bfc: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06c00: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06c04: 38 63 80 b0 addi r3,r3,-32592 <== NOT EXECUTED ffc06c08: 38 a5 80 9c addi r5,r5,-32612 <== NOT EXECUTED ffc06c0c: 38 c6 81 66 addi r6,r6,-32410 <== NOT EXECUTED ffc06c10: 38 80 00 84 li r4,132 <== NOT EXECUTED ffc06c14: 48 00 00 28 b ffc06c3c <== NOT EXECUTED assert( level >= 0 ); ffc06c18: 2f 84 00 00 cmpwi cr7,r4,0 ffc06c1c: 40 bc 00 24 bge+ cr7,ffc06c40 <== ALWAYS TAKEN ffc06c20: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06c24: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06c28: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06c2c: 38 63 80 b0 addi r3,r3,-32592 <== NOT EXECUTED ffc06c30: 38 a5 80 9c addi r5,r5,-32612 <== NOT EXECUTED ffc06c34: 38 c6 81 74 addi r6,r6,-32396 <== NOT EXECUTED ffc06c38: 38 80 00 86 li r4,134 <== NOT EXECUTED ffc06c3c: 48 00 0a 71 bl ffc076ac <__assert_func> <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); ffc06c40: 80 03 00 4c lwz r0,76(r3) ffc06c44: 2f 80 00 01 cmpwi cr7,r0,1 ffc06c48: 41 be 00 24 beq+ cr7,ffc06c6c <== ALWAYS TAKEN ffc06c4c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06c50: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06c54: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06c58: 38 63 80 b0 addi r3,r3,-32592 <== NOT EXECUTED ffc06c5c: 38 a5 80 9c addi r5,r5,-32612 <== NOT EXECUTED ffc06c60: 38 c6 81 7f addi r6,r6,-32385 <== NOT EXECUTED ffc06c64: 38 80 00 88 li r4,136 <== NOT EXECUTED ffc06c68: 4b ff ff d4 b ffc06c3c <== NOT EXECUTED the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc06c6c: 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; ffc06c70: 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, "...." ); ffc06c74: 3f 60 ff c3 lis r27,-61 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc06c78: 3b 23 00 54 addi r25,r3,84 ffc06c7c: 3b 5a 27 0c addi r26,r26,9996 ffc06c80: 3b 7b 81 a5 addi r27,r27,-32347 IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); ffc06c84: 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; ffc06c88: 48 00 00 48 b ffc06cd0 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; ffc06c8c: 3b a0 00 00 li r29,0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc06c90: 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++ ) ffc06c94: 3b bd 00 01 addi r29,r29,1 fprintf(stdout, "...." ); ffc06c98: 7f 63 db 78 mr r3,r27 ffc06c9c: 80 89 00 08 lwz r4,8(r9) ffc06ca0: 48 01 09 01 bl ffc175a0 !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++ ) ffc06ca4: 7f 9d f0 00 cmpw cr7,r29,r30 ffc06ca8: 40 9d ff e8 ble+ cr7,ffc06c90 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); ffc06cac: 7f e3 fb 78 mr r3,r31 ffc06cb0: 4b ff fd 2d bl ffc069dc if ( the_jnode->type == IMFS_DIRECTORY ) ffc06cb4: 80 1f 00 4c lwz r0,76(r31) ffc06cb8: 2f 80 00 01 cmpwi cr7,r0,1 ffc06cbc: 40 be 00 10 bne+ cr7,ffc06ccc IMFS_dump_directory( the_jnode, level + 1 ); ffc06cc0: 7f e3 fb 78 mr r3,r31 ffc06cc4: 7f 84 e3 78 mr r4,r28 ffc06cc8: 4b ff fe fd bl ffc06bc4 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 ) { ffc06ccc: 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; ffc06cd0: 7f 9f c8 00 cmpw cr7,r31,r25 ffc06cd4: 40 9e ff b8 bne+ cr7,ffc06c8c fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } ffc06cd8: 80 01 00 2c lwz r0,44(r1) ffc06cdc: 83 21 00 0c lwz r25,12(r1) ffc06ce0: 7c 08 03 a6 mtlr r0 ffc06ce4: 83 41 00 10 lwz r26,16(r1) ffc06ce8: 83 61 00 14 lwz r27,20(r1) ffc06cec: 83 81 00 18 lwz r28,24(r1) ffc06cf0: 83 a1 00 1c lwz r29,28(r1) ffc06cf4: 83 c1 00 20 lwz r30,32(r1) ffc06cf8: 83 e1 00 24 lwz r31,36(r1) ffc06cfc: 38 21 00 28 addi r1,r1,40 ffc06d00: 4e 80 00 20 blr ffc0c014 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0c014: 94 21 ff 90 stwu r1,-112(r1) ffc0c018: 7c 08 02 a6 mflr r0 ffc0c01c: 90 01 00 74 stw r0,116(r1) ffc0c020: 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 ) ffc0c024: 3e e0 00 00 lis r23,0 ffc0c028: 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 */ ) { ffc0c02c: 93 c1 00 68 stw r30,104(r1) ffc0c030: 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; ffc0c034: 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 */ ) { ffc0c038: 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 ); ffc0c03c: 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 */ ) { ffc0c040: 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 ); ffc0c044: 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 */ ) { ffc0c048: 93 41 00 58 stw r26,88(r1) ffc0c04c: 7c 7a 1b 78 mr r26,r3 ffc0c050: 93 61 00 5c stw r27,92(r1) ffc0c054: 7c bb 2b 78 mr r27,r5 ffc0c058: 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; ffc0c05c: 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 */ ) { ffc0c060: 93 a1 00 64 stw r29,100(r1) ffc0c064: 7c 9d 23 78 mr r29,r4 ffc0c068: 93 e1 00 6c stw r31,108(r1) ffc0c06c: 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 ); ffc0c070: 7f a4 eb 78 mr r4,r29 ffc0c074: 7c 7a e2 14 add r3,r26,r28 ffc0c078: 7f 25 cb 78 mr r5,r25 ffc0c07c: 7f 06 c3 78 mr r6,r24 ffc0c080: 48 00 0a 05 bl ffc0ca84 pathnamelen -= len; i += len; if ( !pathloc->node_access ) ffc0c084: 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 ); ffc0c088: 7c 76 1b 78 mr r22,r3 pathnamelen -= len; ffc0c08c: 80 81 00 08 lwz r4,8(r1) i += len; if ( !pathloc->node_access ) ffc0c090: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c094: 41 9e 01 44 beq- cr7,ffc0c1d8 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) ffc0c098: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c09c: 41 9e 00 1c beq- cr7,ffc0c0b8 if ( node->type == IMFS_DIRECTORY ) ffc0c0a0: 80 1e 00 4c lwz r0,76(r30) ffc0c0a4: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c0a8: 40 be 00 10 bne+ cr7,ffc0c0b8 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0c0ac: 80 09 00 30 lwz r0,48(r9) ffc0c0b0: 70 0b 00 40 andi. r11,r0,64 ffc0c0b4: 41 a2 02 24 beq+ ffc0c2d8 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0c0b8: 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; ffc0c0bc: 7f a4 e8 50 subf r29,r4,r29 i += len; ffc0c0c0: 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; ffc0c0c4: 7d 3e 4b 78 mr r30,r9 switch( type ) { ffc0c0c8: 41 9e 00 90 beq- cr7,ffc0c158 ffc0c0cc: 2f 96 00 04 cmpwi cr7,r22,4 ffc0c0d0: 41 9e 01 1c beq- cr7,ffc0c1ec ffc0c0d4: 2f 16 00 02 cmpwi cr6,r22,2 ffc0c0d8: 40 ba 01 20 bne+ cr6,ffc0c1f8 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0c0dc: 81 77 00 00 lwz r11,0(r23) ffc0c0e0: 80 0b 00 18 lwz r0,24(r11) ffc0c0e4: 7f 89 00 00 cmpw cr7,r9,r0 ffc0c0e8: 41 be ff 88 beq- cr7,ffc0c070 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { ffc0c0ec: 81 1f 00 10 lwz r8,16(r31) /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == ffc0c0f0: 80 08 00 1c lwz r0,28(r8) ffc0c0f4: 7f 89 00 00 cmpw cr7,r9,r0 ffc0c0f8: 40 be 00 48 bne+ cr7,ffc0c140 */ 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: 81 28 00 14 lwz r9,20(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c100: 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; ffc0c104: 80 e8 00 08 lwz r7,8(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c108: 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; ffc0c10c: 81 48 00 0c lwz r10,12(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c110: 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; ffc0c114: 81 68 00 10 lwz r11,16(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c118: 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; ffc0c11c: 90 e1 00 0c stw r7,12(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c120: 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; ffc0c124: 91 41 00 10 stw r10,16(r1) ffc0c128: 91 61 00 14 stw r11,20(r1) ffc0c12c: 91 21 00 18 stw r9,24(r1) ffc0c130: 80 08 00 18 lwz r0,24(r8) *pathloc = newloc; ffc0c134: 90 ff 00 00 stw r7,0(r31) ffc0c138: 91 5f 00 04 stw r10,4(r31) ffc0c13c: 48 00 01 24 b ffc0c260 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) ffc0c140: 83 c9 00 08 lwz r30,8(r9) ffc0c144: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0c148: 40 be 00 9c bne+ cr7,ffc0c1e4 rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c14c: 48 00 44 9d bl ffc105e8 <__errno> ffc0c150: 92 c3 00 00 stw r22,0(r3) ffc0c154: 48 00 01 90 b ffc0c2e4 case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { ffc0c158: 80 09 00 4c lwz r0,76(r9) ffc0c15c: 2f 80 00 03 cmpwi cr7,r0,3 ffc0c160: 40 be 00 20 bne+ cr7,ffc0c180 IMFS_evaluate_hard_link( pathloc, 0 ); ffc0c164: 7f e3 fb 78 mr r3,r31 ffc0c168: 38 80 00 00 li r4,0 ffc0c16c: 4b ff fd 01 bl ffc0be6c node = pathloc->node_access; ffc0c170: 83 df 00 00 lwz r30,0(r31) if ( !node ) ffc0c174: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0c178: 40 be 00 28 bne+ cr7,ffc0c1a0 <== ALWAYS TAKEN ffc0c17c: 48 00 00 30 b ffc0c1ac <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { ffc0c180: 2f 80 00 04 cmpwi cr7,r0,4 ffc0c184: 40 be 00 1c bne+ cr7,ffc0c1a0 result = IMFS_evaluate_sym_link( pathloc, 0 ); ffc0c188: 7f e3 fb 78 mr r3,r31 ffc0c18c: 38 80 00 00 li r4,0 ffc0c190: 4b ff fd 65 bl ffc0bef4 node = pathloc->node_access; ffc0c194: 83 df 00 00 lwz r30,0(r31) if ( result == -1 ) ffc0c198: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0c19c: 41 9e 01 04 beq- cr7,ffc0c2a0 <== NEVER TAKEN /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) ffc0c1a0: 80 1e 00 4c lwz r0,76(r30) ffc0c1a4: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c1a8: 41 be 00 10 beq+ cr7,ffc0c1b8 rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0c1ac: 48 00 44 3d bl ffc105e8 <__errno> ffc0c1b0: 38 00 00 14 li r0,20 ffc0c1b4: 48 00 01 2c b ffc0c2e0 /* * 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 ) { ffc0c1b8: 81 1e 00 5c lwz r8,92(r30) ffc0c1bc: 2f 88 00 00 cmpwi cr7,r8,0 ffc0c1c0: 40 9e 00 5c bne- cr7,ffc0c21c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); ffc0c1c4: 7f c3 f3 78 mr r3,r30 ffc0c1c8: 7f 24 cb 78 mr r4,r25 ffc0c1cc: 48 00 07 e5 bl ffc0c9b0 if ( !node ) ffc0c1d0: 7c 7e 1b 79 mr. r30,r3 ffc0c1d4: 40 a2 00 10 bne+ ffc0c1e4 rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c1d8: 48 00 44 11 bl ffc105e8 <__errno> ffc0c1dc: 38 00 00 02 li r0,2 ffc0c1e0: 48 00 01 00 b ffc0c2e0 /* * Set the node access to the point we have found. */ pathloc->node_access = node; ffc0c1e4: 93 df 00 00 stw r30,0(r31) break; ffc0c1e8: 4b ff fe 88 b ffc0c070 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc0c1ec: 48 00 43 fd bl ffc105e8 <__errno> ffc0c1f0: 38 00 00 5b li r0,91 ffc0c1f4: 48 00 00 ec b ffc0c2e0 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { ffc0c1f8: 2f 16 00 00 cmpwi cr6,r22,0 ffc0c1fc: 41 9a 00 08 beq- cr6,ffc0c204 ffc0c200: 40 9e fe 70 bne+ cr7,ffc0c070 <== ALWAYS TAKEN * 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 ) { ffc0c204: 80 09 00 4c lwz r0,76(r9) ffc0c208: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c20c: 40 9e 00 74 bne- cr7,ffc0c280 if ( node->info.directory.mt_fs != NULL ) { ffc0c210: 81 09 00 5c lwz r8,92(r9) ffc0c214: 2f 88 00 00 cmpwi cr7,r8,0 ffc0c218: 41 9e 00 68 beq- cr7,ffc0c280 newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c21c: 81 28 00 28 lwz r9,40(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c220: 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; ffc0c224: 80 e8 00 1c lwz r7,28(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c228: 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; ffc0c22c: 81 48 00 20 lwz r10,32(r8) ffc0c230: 81 68 00 24 lwz r11,36(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c234: 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; ffc0c238: 90 e1 00 0c stw r7,12(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c23c: 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; ffc0c240: 91 41 00 10 stw r10,16(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c244: 7c 7a 1a 14 add r3,r26,r3 ffc0c248: 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; ffc0c24c: 91 61 00 14 stw r11,20(r1) ffc0c250: 91 21 00 18 stw r9,24(r1) ffc0c254: 80 08 00 2c lwz r0,44(r8) *pathloc = newloc; ffc0c258: 90 ff 00 00 stw r7,0(r31) ffc0c25c: 91 5f 00 04 stw r10,4(r31) ffc0c260: 90 1f 00 10 stw r0,16(r31) ffc0c264: 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; ffc0c268: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c26c: 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; ffc0c270: 91 3f 00 0c stw r9,12(r31) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c274: 7c 09 03 a6 mtctr r0 ffc0c278: 4e 80 04 21 bctrl ffc0c27c: 48 00 00 24 b ffc0c2a0 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); ffc0c280: 7f e3 fb 78 mr r3,r31 ffc0c284: 4b ff fb 55 bl ffc0bdd8 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0c288: 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 ) ffc0c28c: 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; ffc0c290: 80 09 00 30 lwz r0,48(r9) ffc0c294: 7f 60 00 38 and r0,r27,r0 ffc0c298: 7f 80 d8 00 cmpw cr7,r0,r27 ffc0c29c: 40 be 00 3c bne+ cr7,ffc0c2d8 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0c2a0: 80 01 00 74 lwz r0,116(r1) ffc0c2a4: 82 c1 00 48 lwz r22,72(r1) ffc0c2a8: 7c 08 03 a6 mtlr r0 ffc0c2ac: 82 e1 00 4c lwz r23,76(r1) ffc0c2b0: 83 01 00 50 lwz r24,80(r1) ffc0c2b4: 83 21 00 54 lwz r25,84(r1) ffc0c2b8: 83 41 00 58 lwz r26,88(r1) ffc0c2bc: 83 61 00 5c lwz r27,92(r1) ffc0c2c0: 83 81 00 60 lwz r28,96(r1) ffc0c2c4: 83 a1 00 64 lwz r29,100(r1) ffc0c2c8: 83 c1 00 68 lwz r30,104(r1) ffc0c2cc: 83 e1 00 6c lwz r31,108(r1) ffc0c2d0: 38 21 00 70 addi r1,r1,112 ffc0c2d4: 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 ); ffc0c2d8: 48 00 43 11 bl ffc105e8 <__errno> ffc0c2dc: 38 00 00 0d li r0,13 ffc0c2e0: 90 03 00 00 stw r0,0(r3) ffc0c2e4: 38 60 ff ff li r3,-1 ffc0c2e8: 4b ff ff b8 b ffc0c2a0 ffc0c3d0 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0c3d0: 94 21 ff 90 stwu r1,-112(r1) ffc0c3d4: 7c 08 02 a6 mflr r0 ffc0c3d8: 90 01 00 74 stw r0,116(r1) ffc0c3dc: 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 ) ffc0c3e0: 3e e0 00 00 lis r23,0 ffc0c3e4: 3a f7 26 9c addi r23,r23,9884 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0c3e8: 93 01 00 50 stw r24,80(r1) * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); ffc0c3ec: 3b 01 00 08 addi r24,r1,8 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0c3f0: 93 21 00 54 stw r25,84(r1) * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); ffc0c3f4: 3b 21 00 20 addi r25,r1,32 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0c3f8: 93 41 00 58 stw r26,88(r1) ffc0c3fc: 93 61 00 5c stw r27,92(r1) ffc0c400: 7c bb 2b 78 mr r27,r5 ffc0c404: 93 81 00 60 stw r28,96(r1) ffc0c408: 7c 7c 1b 78 mr r28,r3 ffc0c40c: 93 a1 00 64 stw r29,100(r1) ffc0c410: 93 c1 00 68 stw r30,104(r1) node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); ffc0c414: 3b c0 00 00 li r30,0 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0c418: 93 e1 00 6c stw r31,108(r1) ffc0c41c: 7c 9f 23 78 mr r31,r4 ffc0c420: 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; ffc0c424: 83 a4 00 00 lwz r29,0(r4) /* * Get the path length. */ pathlen = strlen( path ); ffc0c428: 48 00 54 bd bl ffc118e4 ffc0c42c: 7c 7a 1b 78 mr r26,r3 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); ffc0c430: 7f 44 d3 78 mr r4,r26 ffc0c434: 7c 7c f2 14 add r3,r28,r30 ffc0c438: 7f 25 cb 78 mr r5,r25 ffc0c43c: 7f 06 c3 78 mr r6,r24 ffc0c440: 48 00 06 45 bl ffc0ca84 pathlen -= len; i += len; if ( !pathloc->node_access ) ffc0c444: 81 7f 00 00 lwz r11,0(r31) * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); ffc0c448: 7c 76 1b 78 mr r22,r3 pathlen -= len; ffc0c44c: 80 61 00 08 lwz r3,8(r1) i += len; if ( !pathloc->node_access ) ffc0c450: 2f 8b 00 00 cmpwi cr7,r11,0 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; ffc0c454: 7f 43 d0 50 subf r26,r3,r26 i += len; if ( !pathloc->node_access ) ffc0c458: 41 9e 01 e4 beq- cr7,ffc0c63c <== NEVER TAKEN /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) ffc0c45c: 2f 96 00 00 cmpwi cr7,r22,0 ffc0c460: 41 9e 00 1c beq- cr7,ffc0c47c if ( node->type == IMFS_DIRECTORY ) ffc0c464: 80 1d 00 4c lwz r0,76(r29) ffc0c468: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c46c: 40 be 00 10 bne+ cr7,ffc0c47c /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0c470: 80 0b 00 30 lwz r0,48(r11) ffc0c474: 70 09 00 40 andi. r9,r0,64 ffc0c478: 41 a2 02 54 beq+ ffc0c6cc if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0c47c: 2f 96 00 02 cmpwi cr7,r22,2 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; ffc0c480: 7f de 1a 14 add r30,r30,r3 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; ffc0c484: 7d 7d 5b 78 mr r29,r11 switch( type ) { ffc0c488: 41 9e 00 2c beq- cr7,ffc0c4b4 ffc0c48c: 2b 96 00 02 cmplwi cr7,r22,2 ffc0c490: 41 9d 00 10 bgt- cr7,ffc0c4a0 ffc0c494: 2f 96 00 00 cmpwi cr7,r22,0 ffc0c498: 41 9e 01 6c beq- cr7,ffc0c604 ffc0c49c: 4b ff ff 94 b ffc0c430 ffc0c4a0: 2f 96 00 03 cmpwi cr7,r22,3 ffc0c4a4: 41 9e 00 9c beq- cr7,ffc0c540 ffc0c4a8: 2f 96 00 04 cmpwi cr7,r22,4 ffc0c4ac: 40 9e ff 84 bne+ cr7,ffc0c430 <== NEVER TAKEN ffc0c4b0: 48 00 01 60 b ffc0c610 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0c4b4: 81 37 00 00 lwz r9,0(r23) ffc0c4b8: 80 09 00 18 lwz r0,24(r9) ffc0c4bc: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0c4c0: 41 be ff 70 beq- cr7,ffc0c430 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ ffc0c4c4: 81 3f 00 10 lwz r9,16(r31) ffc0c4c8: 80 09 00 1c lwz r0,28(r9) ffc0c4cc: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0c4d0: 40 be 00 58 bne+ cr7,ffc0c528 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c4d4: 81 69 00 14 lwz r11,20(r9) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c4d8: 7c 63 f0 50 subf r3,r3,r30 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c4dc: 80 e9 00 08 lwz r7,8(r9) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c4e0: 7c 7c 1a 14 add r3,r28,r3 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c4e4: 81 09 00 0c lwz r8,12(r9) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c4e8: 7f e4 fb 78 mr r4,r31 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c4ec: 81 49 00 10 lwz r10,16(r9) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c4f0: 7f 65 db 78 mr r5,r27 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c4f4: 90 e1 00 0c stw r7,12(r1) ffc0c4f8: 91 01 00 10 stw r8,16(r1) ffc0c4fc: 91 41 00 14 stw r10,20(r1) ffc0c500: 91 61 00 18 stw r11,24(r1) ffc0c504: 80 09 00 18 lwz r0,24(r9) *pathloc = newloc; ffc0c508: 90 ff 00 00 stw r7,0(r31) ffc0c50c: 90 1f 00 10 stw r0,16(r31) ffc0c510: 91 1f 00 04 stw r8,4(r31) ffc0c514: 91 5f 00 08 stw r10,8(r31) if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c518: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; ffc0c51c: 91 7f 00 0c stw r11,12(r31) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c520: 80 0b 00 04 lwz r0,4(r11) ffc0c524: 48 00 00 bc b ffc0c5e0 } } else { if ( !node->Parent ) ffc0c528: 83 ab 00 08 lwz r29,8(r11) ffc0c52c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0c530: 40 be 00 cc bne+ cr7,ffc0c5fc rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c534: 48 00 40 b5 bl ffc105e8 <__errno> ffc0c538: 92 c3 00 00 stw r22,0(r3) ffc0c53c: 48 00 01 9c b ffc0c6d8 pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { ffc0c540: 80 0b 00 4c lwz r0,76(r11) ffc0c544: 2f 80 00 03 cmpwi cr7,r0,3 ffc0c548: 41 9e 00 0c beq- cr7,ffc0c554 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { ffc0c54c: 2f 80 00 04 cmpwi cr7,r0,4 ffc0c550: 40 be 00 18 bne+ cr7,ffc0c568 result = IMFS_evaluate_link( pathloc, 0 ); ffc0c554: 7f e3 fb 78 mr r3,r31 ffc0c558: 38 80 00 00 li r4,0 ffc0c55c: 4b ff fd 91 bl ffc0c2ec if ( result == -1 ) ffc0c560: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0c564: 41 9e 01 30 beq- cr7,ffc0c694 <== NEVER TAKEN return -1; } node = pathloc->node_access; ffc0c568: 80 7f 00 00 lwz r3,0(r31) if ( !node ) ffc0c56c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c570: 41 9e 01 08 beq- cr7,ffc0c678 <== NEVER TAKEN /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) ffc0c574: 80 03 00 4c lwz r0,76(r3) ffc0c578: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c57c: 40 9e 00 fc bne- cr7,ffc0c678 /* * 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 ) { ffc0c580: 81 03 00 5c lwz r8,92(r3) ffc0c584: 2f 88 00 00 cmpwi cr7,r8,0 ffc0c588: 41 be 00 64 beq+ cr7,ffc0c5ec newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c58c: 81 28 00 28 lwz r9,40(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c590: 7f e4 fb 78 mr r4,r31 * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c594: 80 e8 00 1c lwz r7,28(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c598: 7f 65 db 78 mr r5,r27 * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c59c: 81 48 00 20 lwz r10,32(r8) ffc0c5a0: 81 68 00 24 lwz r11,36(r8) ffc0c5a4: 90 e1 00 0c stw r7,12(r1) ffc0c5a8: 91 41 00 10 stw r10,16(r1) ffc0c5ac: 91 61 00 14 stw r11,20(r1) ffc0c5b0: 91 21 00 18 stw r9,24(r1) ffc0c5b4: 80 08 00 2c lwz r0,44(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c5b8: 81 01 00 08 lwz r8,8(r1) * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; ffc0c5bc: 90 1f 00 10 stw r0,16(r31) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c5c0: 7f c8 f0 50 subf r30,r8,r30 * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; ffc0c5c4: 90 ff 00 00 stw r7,0(r31) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c5c8: 7c 7c f2 14 add r3,r28,r30 * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; ffc0c5cc: 91 5f 00 04 stw r10,4(r31) ffc0c5d0: 91 7f 00 08 stw r11,8(r31) * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c5d4: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; ffc0c5d8: 91 3f 00 0c stw r9,12(r31) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c5dc: 80 09 00 04 lwz r0,4(r9) ffc0c5e0: 7c 09 03 a6 mtctr r0 ffc0c5e4: 4e 80 04 21 bctrl ffc0c5e8: 48 00 00 ac b ffc0c694 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); ffc0c5ec: 7f 24 cb 78 mr r4,r25 ffc0c5f0: 48 00 03 c1 bl ffc0c9b0 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) ffc0c5f4: 7c 7d 1b 79 mr. r29,r3 ffc0c5f8: 41 82 00 24 beq- ffc0c61c done = true; else pathloc->node_access = node; ffc0c5fc: 93 bf 00 00 stw r29,0(r31) ffc0c600: 4b ff fe 30 b ffc0c430 break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); ffc0c604: 48 00 3f e5 bl ffc105e8 <__errno> ffc0c608: 38 00 00 11 li r0,17 ffc0c60c: 48 00 00 c8 b ffc0c6d4 break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc0c610: 48 00 3f d9 bl ffc105e8 <__errno> ffc0c614: 38 00 00 5b li r0,91 ffc0c618: 48 00 00 bc b ffc0c6d4 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; ffc0c61c: 80 01 00 08 lwz r0,8(r1) ffc0c620: 7d 3c f2 14 add r9,r28,r30 ffc0c624: 7f c0 f0 50 subf r30,r0,r30 ffc0c628: 7f 9c f2 14 add r28,r28,r30 ffc0c62c: 93 9b 00 00 stw r28,0(r27) /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { ffc0c630: 48 00 00 18 b ffc0c648 if ( !IMFS_is_separator( path[ i ] ) ) ffc0c634: 41 9a 00 14 beq- cr6,ffc0c648 ffc0c638: 41 86 00 10 beq- cr1,ffc0c648 rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c63c: 48 00 3f ad bl ffc105e8 <__errno> ffc0c640: 38 00 00 02 li r0,2 ffc0c644: 48 00 00 90 b ffc0c6d4 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { ffc0c648: 88 09 00 00 lbz r0,0(r9) if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c64c: 39 29 00 01 addi r9,r9,1 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { ffc0c650: 2f 80 00 00 cmpwi cr7,r0,0 if ( !IMFS_is_separator( path[ i ] ) ) ffc0c654: 2c 80 00 5c cmpwi cr1,r0,92 ffc0c658: 2f 00 00 2f cmpwi cr6,r0,47 /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { ffc0c65c: 40 9e ff d8 bne+ cr7,ffc0c634 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); ffc0c660: 7f e3 fb 78 mr r3,r31 ffc0c664: 4b ff f7 75 bl ffc0bdd8 /* * The returned node must be a directory */ node = pathloc->node_access; ffc0c668: 81 3f 00 00 lwz r9,0(r31) if ( node->type != IMFS_DIRECTORY ) ffc0c66c: 80 09 00 4c lwz r0,76(r9) ffc0c670: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c674: 41 be 00 10 beq+ cr7,ffc0c684 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0c678: 48 00 3f 71 bl ffc105e8 <__errno> ffc0c67c: 38 00 00 14 li r0,20 ffc0c680: 48 00 00 54 b ffc0c6d4 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0c684: 80 09 00 30 lwz r0,48(r9) ffc0c688: 54 00 06 32 rlwinm r0,r0,0,24,25 ffc0c68c: 2f 80 00 c0 cmpwi cr7,r0,192 ffc0c690: 40 be 00 3c bne+ cr7,ffc0c6cc if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0c694: 80 01 00 74 lwz r0,116(r1) ffc0c698: 82 c1 00 48 lwz r22,72(r1) ffc0c69c: 7c 08 03 a6 mtlr r0 ffc0c6a0: 82 e1 00 4c lwz r23,76(r1) ffc0c6a4: 83 01 00 50 lwz r24,80(r1) ffc0c6a8: 83 21 00 54 lwz r25,84(r1) ffc0c6ac: 83 41 00 58 lwz r26,88(r1) ffc0c6b0: 83 61 00 5c lwz r27,92(r1) ffc0c6b4: 83 81 00 60 lwz r28,96(r1) ffc0c6b8: 83 a1 00 64 lwz r29,100(r1) ffc0c6bc: 83 c1 00 68 lwz r30,104(r1) ffc0c6c0: 83 e1 00 6c lwz r31,108(r1) ffc0c6c4: 38 21 00 70 addi r1,r1,112 ffc0c6c8: 4e 80 00 20 blr */ 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 ); ffc0c6cc: 48 00 3f 1d bl ffc105e8 <__errno> ffc0c6d0: 38 00 00 0d li r0,13 ffc0c6d4: 90 03 00 00 stw r0,0(r3) ffc0c6d8: 38 60 ff ff li r3,-1 ffc0c6dc: 4b ff ff b8 b ffc0c694 ffc0be6c : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be6c: 94 21 ff f0 stwu r1,-16(r1) ffc0be70: 7c 08 02 a6 mflr r0 ffc0be74: 90 01 00 14 stw r0,20(r1) IMFS_jnode_t *jnode = node->node_access; ffc0be78: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be7c: 93 c1 00 08 stw r30,8(r1) ffc0be80: 7c 9e 23 78 mr r30,r4 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) ffc0be84: 80 09 00 4c lwz r0,76(r9) int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be88: 93 e1 00 0c stw r31,12(r1) ffc0be8c: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) ffc0be90: 2f 80 00 03 cmpwi cr7,r0,3 ffc0be94: 41 be 00 0c beq+ cr7,ffc0bea0 <== ALWAYS TAKEN rtems_fatal_error_occurred (0xABCD0000); ffc0be98: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc0be9c: 4b ff c7 39 bl ffc085d4 <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; ffc0bea0: 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 ) ffc0bea4: 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; ffc0bea8: 90 03 00 00 stw r0,0(r3) IMFS_Set_handlers( node ); ffc0beac: 4b ff ff 2d bl ffc0bdd8 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0beb0: 81 3f 00 00 lwz r9,0(r31) ffc0beb4: 80 09 00 30 lwz r0,48(r9) ffc0beb8: 7f c0 00 38 and r0,r30,r0 ffc0bebc: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0bec0: 40 be 00 20 bne+ cr7,ffc0bee0 <== NEVER TAKEN ffc0bec4: 38 60 00 00 li r3,0 if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0bec8: 80 01 00 14 lwz r0,20(r1) ffc0becc: 83 c1 00 08 lwz r30,8(r1) ffc0bed0: 7c 08 03 a6 mtlr r0 ffc0bed4: 83 e1 00 0c lwz r31,12(r1) ffc0bed8: 38 21 00 10 addi r1,r1,16 ffc0bedc: 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 ); ffc0bee0: 48 00 47 09 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0bee4: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0bee8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0beec: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0bef0: 4b ff ff d8 b ffc0bec8 <== NOT EXECUTED ffc0be4c : /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0be4c: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED ffc0be50: 54 84 30 32 rlwinm r4,r4,6,0,25 <== NOT EXECUTED ffc0be54: 80 69 00 30 lwz r3,48(r9) <== NOT EXECUTED ffc0be58: 7c 83 18 38 and r3,r4,r3 <== NOT EXECUTED return 1; return 0; } ffc0be5c: 7c 63 22 78 xor r3,r3,r4 <== NOT EXECUTED ffc0be60: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc0be64: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED ffc0be68: 4e 80 00 20 blr <== NOT EXECUTED ffc0bef4 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0bef4: 94 21 ff e8 stwu r1,-24(r1) ffc0bef8: 7c 08 02 a6 mflr r0 ffc0befc: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode = node->node_access; ffc0bf00: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0bf04: 93 c1 00 10 stw r30,16(r1) ffc0bf08: 7c 9e 23 78 mr r30,r4 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0bf0c: 80 09 00 4c lwz r0,76(r9) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0bf10: 93 e1 00 14 stw r31,20(r1) ffc0bf14: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0bf18: 2f 80 00 04 cmpwi cr7,r0,4 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0bf1c: 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); ffc0bf20: 3c 60 ab cd lis r3,-21555 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0bf24: 40 9e 00 14 bne- cr7,ffc0bf38 <== NEVER TAKEN rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) ffc0bf28: 80 09 00 08 lwz r0,8(r9) ffc0bf2c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bf30: 40 be 00 0c bne+ cr7,ffc0bf3c <== ALWAYS TAKEN rtems_fatal_error_occurred( 0xBAD00000 ); ffc0bf34: 3c 60 ba d0 lis r3,-17712 <== NOT EXECUTED ffc0bf38: 4b ff c6 9d bl ffc085d4 <== 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; ffc0bf3c: 90 1f 00 00 stw r0,0(r31) rtems_filesystem_get_sym_start_loc( ffc0bf40: 81 69 00 50 lwz r11,80(r9) ffc0bf44: 88 0b 00 00 lbz r0,0(r11) ffc0bf48: 2f 80 00 2f cmpwi cr7,r0,47 ffc0bf4c: 41 9e 00 18 beq- cr7,ffc0bf64 ffc0bf50: 2f 80 00 5c cmpwi cr7,r0,92 ffc0bf54: 41 9e 00 10 beq- cr7,ffc0bf64 <== NEVER TAKEN ffc0bf58: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bf5c: 38 00 00 00 li r0,0 ffc0bf60: 40 9e 00 38 bne- cr7,ffc0bf98 <== ALWAYS TAKEN ffc0bf64: 3d 60 00 00 lis r11,0 ffc0bf68: 81 6b 26 9c lwz r11,9884(r11) ffc0bf6c: 38 00 00 01 li r0,1 ffc0bf70: 80 cb 00 18 lwz r6,24(r11) ffc0bf74: 80 eb 00 1c lwz r7,28(r11) ffc0bf78: 81 0b 00 20 lwz r8,32(r11) ffc0bf7c: 81 4b 00 24 lwz r10,36(r11) ffc0bf80: 90 df 00 00 stw r6,0(r31) ffc0bf84: 90 ff 00 04 stw r7,4(r31) ffc0bf88: 91 1f 00 08 stw r8,8(r31) ffc0bf8c: 91 5f 00 0c stw r10,12(r31) ffc0bf90: 81 6b 00 28 lwz r11,40(r11) ffc0bf94: 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] ), ffc0bf98: 83 a9 00 50 lwz r29,80(r9) ffc0bf9c: 7f bd 02 14 add r29,r29,r0 ffc0bfa0: 7f a3 eb 78 mr r3,r29 ffc0bfa4: 48 00 59 41 bl ffc118e4 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0bfa8: 7f c5 f3 78 mr r5,r30 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), ffc0bfac: 7c 64 1b 78 mr r4,r3 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0bfb0: 7f e6 fb 78 mr r6,r31 ffc0bfb4: 7f a3 eb 78 mr r3,r29 ffc0bfb8: 48 00 00 5d bl ffc0c014 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0bfbc: 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( ffc0bfc0: 7c 7d 1b 78 mr r29,r3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); ffc0bfc4: 7f e3 fb 78 mr r3,r31 ffc0bfc8: 4b ff fe 11 bl ffc0bdd8 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0bfcc: 81 3f 00 00 lwz r9,0(r31) ffc0bfd0: 80 09 00 30 lwz r0,48(r9) ffc0bfd4: 7f c0 00 38 and r0,r30,r0 ffc0bfd8: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0bfdc: 40 be 00 24 bne+ cr7,ffc0c000 <== NEVER TAKEN if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0bfe0: 80 01 00 1c lwz r0,28(r1) ffc0bfe4: 7f a3 eb 78 mr r3,r29 ffc0bfe8: 83 c1 00 10 lwz r30,16(r1) ffc0bfec: 7c 08 03 a6 mtlr r0 ffc0bff0: 83 a1 00 0c lwz r29,12(r1) ffc0bff4: 83 e1 00 14 lwz r31,20(r1) ffc0bff8: 38 21 00 18 addi r1,r1,24 ffc0bffc: 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 ); ffc0c000: 48 00 45 e9 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0c004: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0c008: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0c00c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc0c010: 4b ff ff d0 b ffc0bfe0 <== NOT EXECUTED ffc0c8c4 : } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c8c4: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc0c8c8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c8cc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c8d0: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED ffc0c8d4: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c8d8: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c8dc: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc0c8e0: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c8e4: 38 7f 00 50 addi r3,r31,80 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c8e8: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c8ec: 48 00 25 c5 bl ffc0eeb0 <== NOT EXECUTED if (! err) { ffc0c8f0: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc0c8f4: 40 a2 00 38 bne+ ffc0c92c <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0c8f8: 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) ffc0c8fc: 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; ffc0c900: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc0c904: 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) ffc0c908: 48 00 09 9d bl ffc0d2a4 <== NOT EXECUTED ffc0c90c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0c910: 40 9e 00 30 bne- cr7,ffc0c940 <== NOT EXECUTED ffc0c914: a0 1f 00 34 lhz r0,52(r31) <== NOT EXECUTED ffc0c918: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0c91c: 40 be 00 24 bne+ cr7,ffc0c940 <== NOT EXECUTED free(jnode); ffc0c920: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0c924: 4b ff 79 21 bl ffc04244 <== NOT EXECUTED ffc0c928: 48 00 00 18 b ffc0c940 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); ffc0c92c: 40 a0 00 14 bge+ ffc0c940 <== NOT EXECUTED ffc0c930: 7f bd 00 d0 neg r29,r29 <== NOT EXECUTED ffc0c934: 48 00 3c b5 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0c938: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc0c93c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED } ffc0c940: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc0c944: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0c948: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc0c94c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c950: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0c954: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc0c958: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0c95c: 4e 80 00 20 blr <== NOT EXECUTED ffc0c744 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0c744: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0c748: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c74c: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0c750: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0c754: 3c 00 80 04 lis r0,-32764 <== NOT EXECUTED ffc0c758: 60 00 66 7e ori r0,r0,26238 <== NOT EXECUTED ffc0c75c: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0c760: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0c764: 40 9e 00 38 bne- cr7,ffc0c79c <== NOT EXECUTED if (buffer == NULL) ffc0c768: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc0c76c: 3b e0 ff f2 li r31,-14 <== NOT EXECUTED ffc0c770: 41 9e 00 40 beq- cr7,ffc0c7b0 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) ffc0c774: 81 25 00 00 lwz r9,0(r5) <== NOT EXECUTED ffc0c778: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc0c77c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0c780: 41 9e 00 0c beq- cr7,ffc0c78c <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; ffc0c784: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc0c788: 48 00 00 08 b ffc0c790 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc0c78c: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc0c790: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED ffc0c794: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc0c798: 48 00 00 28 b ffc0c7c0 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); ffc0c79c: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0c7a0: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0c7a4: 48 00 22 29 bl ffc0e9cc <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c7a8: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc0c7ac: 40 a0 00 14 bge+ ffc0c7c0 <== NOT EXECUTED ffc0c7b0: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED ffc0c7b4: 48 00 3e 35 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0c7b8: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0c7bc: 3b e0 ff ff li r31,-1 <== NOT EXECUTED } ffc0c7c0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0c7c4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0c7c8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0c7cc: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0c7d0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c7d4: 4e 80 00 20 blr <== NOT EXECUTED ffc0c6e0 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc0c6e0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0c6e4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c6e8: 7c 68 1b 78 mr r8,r3 <== NOT EXECUTED ffc0c6ec: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0c6f0: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); ffc0c6f4: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0c6f8: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0c6fc: 48 00 22 59 bl ffc0e954 <== NOT EXECUTED ffc0c700: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c704: 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); ffc0c708: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0c70c: 7c 6a 1b 78 mr r10,r3 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c710: 40 bc 00 18 bge+ cr7,ffc0c728 <== NOT EXECUTED ffc0c714: 48 00 3e d5 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0c718: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED ffc0c71c: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0c720: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc0c724: 39 40 ff ff li r10,-1 <== NOT EXECUTED } ffc0c728: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0c72c: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED ffc0c730: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc0c734: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0c738: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c73c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0c740: 4e 80 00 20 blr <== NOT EXECUTED ffc0c960 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0c960: 94 21 ff f0 stwu r1,-16(r1) ffc0c964: 7c 08 02 a6 mflr r0 ffc0c968: 7c 64 1b 78 mr r4,r3 ffc0c96c: 90 01 00 14 stw r0,20(r1) IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); ffc0c970: 81 23 00 3c lwz r9,60(r3) rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0c974: 93 e1 00 0c stw r31,12(r1) IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); ffc0c978: 38 69 00 50 addi r3,r9,80 ffc0c97c: 48 00 26 55 bl ffc0efd0 IMFS_FIFO_RETURN(err); ffc0c980: 7c 7f 1b 79 mr. r31,r3 ffc0c984: 40 a0 00 14 bge+ ffc0c998 <== NEVER TAKEN ffc0c988: 7f ff 00 d0 neg r31,r31 ffc0c98c: 48 00 3c 5d bl ffc105e8 <__errno> ffc0c990: 93 e3 00 00 stw r31,0(r3) ffc0c994: 3b e0 ff ff li r31,-1 } ffc0c998: 80 01 00 14 lwz r0,20(r1) ffc0c99c: 7f e3 fb 78 mr r3,r31 ffc0c9a0: 83 e1 00 0c lwz r31,12(r1) ffc0c9a4: 38 21 00 10 addi r1,r1,16 ffc0c9a8: 7c 08 03 a6 mtlr r0 ffc0c9ac: 4e 80 00 20 blr ffc0c850 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc0c850: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0c854: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c858: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0c85c: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0c860: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0c864: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c868: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); ffc0c86c: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0c870: 48 00 24 01 bl ffc0ec70 <== NOT EXECUTED if (err > 0) ffc0c874: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0c878: 40 81 00 1c ble- ffc0c894 <== NOT EXECUTED IMFS_update_atime(jnode); ffc0c87c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0c880: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0c884: 48 00 09 41 bl ffc0d1c4 <== NOT EXECUTED ffc0c888: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0c88c: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED ffc0c890: 48 00 00 18 b ffc0c8a8 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c894: 41 a2 00 14 beq+ ffc0c8a8 <== NOT EXECUTED ffc0c898: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0c89c: 48 00 3d 4d bl ffc105e8 <__errno> <== NOT EXECUTED ffc0c8a0: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0c8a4: 3b c0 ff ff li r30,-1 <== NOT EXECUTED } ffc0c8a8: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0c8ac: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c8b0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0c8b4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c8b8: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0c8bc: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0c8c0: 4e 80 00 20 blr <== NOT EXECUTED ffc0c7d8 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc0c7d8: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0c7dc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c7e0: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0c7e4: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0c7e8: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0c7ec: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c7f0: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); ffc0c7f4: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0c7f8: 48 00 22 59 bl ffc0ea50 <== NOT EXECUTED if (err > 0) { ffc0c7fc: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0c800: 40 81 00 20 ble- ffc0c820 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); ffc0c804: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0c808: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0c80c: 48 00 09 b9 bl ffc0d1c4 <== NOT EXECUTED ffc0c810: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0c814: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED ffc0c818: 90 1f 00 44 stw r0,68(r31) <== NOT EXECUTED ffc0c81c: 48 00 00 18 b ffc0c834 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); ffc0c820: 41 a2 00 14 beq+ ffc0c834 <== NOT EXECUTED ffc0c824: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0c828: 48 00 3d c1 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0c82c: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0c830: 3b c0 ff ff li r30,-1 <== NOT EXECUTED } ffc0c834: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0c838: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c83c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0c840: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c844: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0c848: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0c84c: 4e 80 00 20 blr <== NOT EXECUTED ffc0c9b0 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0c9b0: 94 21 ff e8 stwu r1,-24(r1) ffc0c9b4: 7c 08 02 a6 mflr r0 ffc0c9b8: 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 ); ffc0c9bc: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0c9c0: 93 c1 00 10 stw r30,16(r1) ffc0c9c4: 7c 9e 23 78 mr r30,r4 ffc0c9c8: 90 01 00 1c stw r0,28(r1) ffc0c9cc: 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 ); ffc0c9d0: 40 a2 00 24 bne+ ffc0c9f4 <== ALWAYS TAKEN ffc0c9d4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0c9d8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc0c9dc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0c9e0: 38 63 ca 17 addi r3,r3,-13801 <== NOT EXECUTED ffc0c9e4: 38 a5 c9 f8 addi r5,r5,-13832 <== NOT EXECUTED ffc0c9e8: 38 c6 ca 63 addi r6,r6,-13725 <== NOT EXECUTED ffc0c9ec: 38 80 00 2a li r4,42 <== NOT EXECUTED ffc0c9f0: 4b ff 73 e5 bl ffc03dd4 <__assert_func> <== NOT EXECUTED if ( !name ) ffc0c9f4: 2f 84 00 00 cmpwi cr7,r4,0 ffc0c9f8: 41 9e 00 68 beq- cr7,ffc0ca60 <== NEVER TAKEN /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) ffc0c9fc: 3f a0 ff c2 lis r29,-62 ffc0ca00: 3b bd c9 f8 addi r29,r29,-13832 ffc0ca04: 7c 83 23 78 mr r3,r4 ffc0ca08: 38 9d 00 18 addi r4,r29,24 ffc0ca0c: 48 00 4d b9 bl ffc117c4 ffc0ca10: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ca14: 41 9e 00 50 beq- cr7,ffc0ca64 <== NEVER TAKEN return directory; if ( !strcmp( name, dotdotname ) ) ffc0ca18: 38 9d 00 1c addi r4,r29,28 ffc0ca1c: 7f c3 f3 78 mr r3,r30 ffc0ca20: 48 00 4d a5 bl ffc117c4 ffc0ca24: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ca28: 40 9e 00 0c bne- cr7,ffc0ca34 <== ALWAYS TAKEN return directory->Parent; ffc0ca2c: 83 ff 00 08 lwz r31,8(r31) <== NOT EXECUTED ffc0ca30: 48 00 00 34 b ffc0ca64 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0ca34: 3b bf 00 54 addi r29,r31,84 the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0ca38: 83 ff 00 50 lwz r31,80(r31) ffc0ca3c: 48 00 00 1c b ffc0ca58 !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 ) ) ffc0ca40: 7f c3 f3 78 mr r3,r30 ffc0ca44: 38 9f 00 0c addi r4,r31,12 ffc0ca48: 48 00 4d 7d bl ffc117c4 ffc0ca4c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ca50: 41 9e 00 14 beq- cr7,ffc0ca64 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 ) { ffc0ca54: 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; ffc0ca58: 7f 9f e8 00 cmpw cr7,r31,r29 ffc0ca5c: 40 9e ff e4 bne+ cr7,ffc0ca40 ffc0ca60: 3b e0 00 00 li r31,0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } ffc0ca64: 80 01 00 1c lwz r0,28(r1) ffc0ca68: 7f e3 fb 78 mr r3,r31 ffc0ca6c: 83 a1 00 0c lwz r29,12(r1) ffc0ca70: 7c 08 03 a6 mtlr r0 ffc0ca74: 83 c1 00 10 lwz r30,16(r1) ffc0ca78: 83 e1 00 14 lwz r31,20(r1) ffc0ca7c: 38 21 00 18 addi r1,r1,24 ffc0ca80: 4e 80 00 20 blr ffc1280c : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc1280c: 94 21 ff c8 stwu r1,-56(r1) ffc12810: 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; ffc12814: 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 ) { ffc12818: 90 01 00 3c stw r0,60(r1) ffc1281c: 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; ffc12820: 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; ffc12824: 83 a3 00 1c lwz r29,28(r3) loc = temp_mt_entry->mt_fs_root; ffc12828: 81 63 00 24 lwz r11,36(r3) ffc1282c: 81 23 00 28 lwz r9,40(r3) ffc12830: 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; ffc12834: 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 ) { ffc12838: 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; ffc1283c: 91 41 00 0c stw r10,12(r1) ffc12840: 91 61 00 10 stw r11,16(r1) ffc12844: 91 21 00 14 stw r9,20(r1) ffc12848: 90 01 00 18 stw r0,24(r1) ffc1284c: 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 ) { ffc12850: 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 ); ffc12854: 3b e1 00 08 addi r31,r1,8 ffc12858: 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; ffc1285c: 93 a1 00 08 stw r29,8(r1) */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; ffc12860: 83 dd 00 08 lwz r30,8(r29) loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); ffc12864: 4b ff f3 c9 bl ffc11c2c if ( jnode->type != IMFS_DIRECTORY ) { ffc12868: 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; ffc1286c: 38 1d 00 54 addi r0,r29,84 ffc12870: 2f 89 00 01 cmpwi cr7,r9,1 ffc12874: 40 9e 00 10 bne- cr7,ffc12884 ffc12878: 81 3d 00 50 lwz r9,80(r29) ffc1287c: 7f 89 00 00 cmpw cr7,r9,r0 ffc12880: 40 be 00 1c bne+ cr7,ffc1289c result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); ffc12884: 38 60 00 00 li r3,0 ffc12888: 7f e4 fb 78 mr r4,r31 ffc1288c: 4b ff 2a 2d bl ffc052b8 if (result != 0) ffc12890: 2f 83 00 00 cmpwi cr7,r3,0 ffc12894: 40 9e 00 3c bne- cr7,ffc128d0 <== NEVER TAKEN ffc12898: 7f dd f3 78 mr r29,r30 return -1; jnode = next; } if ( jnode != NULL ) { ffc1289c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc128a0: 41 9e 00 38 beq- cr7,ffc128d8 if ( jnode->type == IMFS_DIRECTORY ) { ffc128a4: 80 1d 00 4c lwz r0,76(r29) ffc128a8: 2f 80 00 01 cmpwi cr7,r0,1 ffc128ac: 40 9e ff ac bne+ cr7,ffc12858 <== NEVER TAKEN ffc128b0: 80 1d 00 50 lwz r0,80(r29) ffc128b4: 39 3d 00 54 addi r9,r29,84 ffc128b8: 7f 80 48 00 cmpw cr7,r0,r9 ffc128bc: 41 be ff 9c beq- cr7,ffc12858 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); ffc128c0: 2f 80 00 00 cmpwi cr7,r0,0 ffc128c4: 7c 1d 03 78 mr r29,r0 ffc128c8: 40 9e ff 90 bne+ cr7,ffc12858 <== ALWAYS TAKEN ffc128cc: 48 00 00 0c b ffc128d8 <== NOT EXECUTED ffc128d0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc128d4: 48 00 00 08 b ffc128dc <== NOT EXECUTED ffc128d8: 38 60 00 00 li r3,0 return 0; } ffc128dc: 80 01 00 3c lwz r0,60(r1) ffc128e0: 83 a1 00 2c lwz r29,44(r1) ffc128e4: 7c 08 03 a6 mtlr r0 ffc128e8: 83 c1 00 30 lwz r30,48(r1) ffc128ec: 83 e1 00 34 lwz r31,52(r1) ffc128f0: 38 21 00 38 addi r1,r1,56 ffc128f4: 4e 80 00 20 blr ffc0ca84 : const char *path, int pathlen, char *token, int *token_len ) { ffc0ca84: 94 21 ff f0 stwu r1,-16(r1) ffc0ca88: 7c 08 02 a6 mflr r0 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0ca8c: 39 60 00 21 li r11,33 const char *path, int pathlen, char *token, int *token_len ) { ffc0ca90: 93 e1 00 0c stw r31,12(r1) register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0ca94: 39 20 00 00 li r9,0 const char *path, int pathlen, char *token, int *token_len ) { ffc0ca98: 7c bf 2b 78 mr r31,r5 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0ca9c: 7d 69 03 a6 mtctr r11 const char *path, int pathlen, char *token, int *token_len ) { ffc0caa0: 90 01 00 14 stw r0,20(r1) ffc0caa4: 93 c1 00 08 stw r30,8(r1) register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0caa8: 88 03 00 00 lbz r0,0(r3) while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { ffc0caac: 48 00 00 1c b ffc0cac8 token[i] = c; ffc0cab0: 7c 1f 49 ae stbx r0,r31,r9 return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; ffc0cab4: 39 29 00 01 addi r9,r9,1 c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { token[i] = c; if ( i == IMFS_NAME_MAX ) ffc0cab8: 42 00 00 0c bdnz- ffc0cac4 ffc0cabc: 3b c0 00 04 li r30,4 ffc0cac0: 48 00 00 bc b ffc0cb7c return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; ffc0cac4: 7c 03 48 ae lbzx r0,r3,r9 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { ffc0cac8: 2c 00 00 2f cmpwi r0,47 ffc0cacc: 2c 80 00 5c cmpwi cr1,r0,92 ffc0cad0: 2f 00 00 00 cmpwi cr6,r0,0 ffc0cad4: 7f 89 20 00 cmpw cr7,r9,r4 ffc0cad8: 41 82 00 10 beq- ffc0cae8 ffc0cadc: 41 86 00 0c beq- cr1,ffc0cae8 ffc0cae0: 41 9a 00 08 beq- cr6,ffc0cae8 ffc0cae4: 41 9c ff cc blt+ cr7,ffc0cab0 /* * Copy a seperator into token. */ if ( i == 0 ) { ffc0cae8: 2f 89 00 00 cmpwi cr7,r9,0 ffc0caec: 40 9e 00 24 bne- cr7,ffc0cb10 token[i] = c; if ( (token[i] != '\0') && pathlen ) { ffc0caf0: 2f 80 00 00 cmpwi cr7,r0,0 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; ffc0caf4: 98 1f 00 00 stb r0,0(r31) if ( (token[i] != '\0') && pathlen ) { ffc0caf8: 41 9e 00 38 beq- cr7,ffc0cb30 ffc0cafc: 2f 84 00 00 cmpwi cr7,r4,0 ffc0cb00: 41 9e 00 30 beq- cr7,ffc0cb30 ffc0cb04: 3b c0 00 01 li r30,1 ffc0cb08: 39 20 00 01 li r9,1 ffc0cb0c: 48 00 00 28 b ffc0cb34 i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { ffc0cb10: 7d 7f 4a 14 add r11,r31,r9 ffc0cb14: 88 0b ff ff lbz r0,-1(r11) ffc0cb18: 3b c0 00 03 li r30,3 ffc0cb1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cb20: 41 9e 00 14 beq- cr7,ffc0cb34 <== NEVER TAKEN token[i] = '\0'; ffc0cb24: 38 00 00 00 li r0,0 ffc0cb28: 7c 1f 49 ae stbx r0,r31,r9 ffc0cb2c: 48 00 00 08 b ffc0cb34 ffc0cb30: 3b c0 00 00 li r30,0 /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { ffc0cb34: 2f 9e 00 03 cmpwi cr7,r30,3 /* * Set token_len to the number of characters copied. */ *token_len = i; ffc0cb38: 91 26 00 00 stw r9,0(r6) /* * If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { ffc0cb3c: 40 be 00 40 bne+ cr7,ffc0cb7c if ( strcmp( token, "..") == 0 ) ffc0cb40: 3c 80 ff c2 lis r4,-62 ffc0cb44: 38 84 ca 6d addi r4,r4,-13715 ffc0cb48: 7f e3 fb 78 mr r3,r31 ffc0cb4c: 48 00 4c 79 bl ffc117c4 ffc0cb50: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cb54: 40 9e 00 0c bne- cr7,ffc0cb60 ffc0cb58: 3b c0 00 02 li r30,2 ffc0cb5c: 48 00 00 20 b ffc0cb7c type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) ffc0cb60: 3c 80 ff c2 lis r4,-62 ffc0cb64: 7f e3 fb 78 mr r3,r31 ffc0cb68: 38 84 ca 6e addi r4,r4,-13714 ffc0cb6c: 48 00 4c 59 bl ffc117c4 ffc0cb70: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cb74: 40 9e 00 08 bne- cr7,ffc0cb7c ffc0cb78: 3b c0 00 01 li r30,1 type = IMFS_CURRENT_DIR; } return type; } ffc0cb7c: 80 01 00 14 lwz r0,20(r1) ffc0cb80: 7f c3 f3 78 mr r3,r30 ffc0cb84: 83 e1 00 0c lwz r31,12(r1) ffc0cb88: 7c 08 03 a6 mtlr r0 ffc0cb8c: 83 c1 00 08 lwz r30,8(r1) ffc0cb90: 38 21 00 10 addi r1,r1,16 ffc0cb94: 4e 80 00 20 blr ffc0cb98 : IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, ffc0cb98: 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 ) { ffc0cb9c: 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, ffc0cba0: 7d 69 03 a6 mtctr r11 ffc0cba4: 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 ) { ffc0cba8: 7c 08 02 a6 mflr r0 ffc0cbac: 93 81 00 08 stw r28,8(r1) ffc0cbb0: 7c 9c 23 78 mr r28,r4 ffc0cbb4: 90 01 00 1c stw r0,28(r1) ffc0cbb8: 93 a1 00 0c stw r29,12(r1) ffc0cbbc: 7c dd 33 78 mr r29,r6 ffc0cbc0: 93 c1 00 10 stw r30,16(r1) ffc0cbc4: 7c be 2b 78 mr r30,r5 ffc0cbc8: 93 e1 00 14 stw r31,20(r1) ffc0cbcc: 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, ffc0cbd0: 80 09 26 50 lwz r0,9808(r9) ffc0cbd4: 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) { ffc0cbd8: 7f 89 00 00 cmpw cr7,r9,r0 ffc0cbdc: 41 9e 00 10 beq- cr7,ffc0cbec ffc0cbe0: 55 29 08 3c rlwinm r9,r9,1,0,30 ffc0cbe4: 42 00 ff f4 bdnz+ ffc0cbd8 ffc0cbe8: 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) ffc0cbec: 3d 60 00 00 lis r11,0 ffc0cbf0: 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(); ffc0cbf4: 48 00 28 19 bl ffc0f40c 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: 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(); ffc0cbfc: 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; ffc0cc00: 38 84 cb c8 addi r4,r4,-13368 ffc0cc04: 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; ffc0cc08: 93 9f 00 28 stw r28,40(r31) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; ffc0cc0c: 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; ffc0cc10: 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; ffc0cc14: 48 00 45 bd bl ffc111d0 /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); ffc0cc18: 38 60 00 01 li r3,1 ffc0cc1c: 38 80 00 10 li r4,16 ffc0cc20: 48 00 03 4d bl ffc0cf6c if ( !fs_info ) { ffc0cc24: 7c 69 1b 79 mr. r9,r3 ffc0cc28: 80 7f 00 1c lwz r3,28(r31) ffc0cc2c: 40 a2 00 1c bne+ ffc0cc48 <== ALWAYS TAKEN free(temp_mt_entry->mt_fs_root.node_access); ffc0cc30: 4b ff 76 15 bl ffc04244 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc0cc34: 48 00 39 b5 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0cc38: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0cc3c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cc40: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0cc44: 48 00 00 38 b ffc0cc7c <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; ffc0cc48: 3d 60 00 00 lis r11,0 fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; ffc0cc4c: 93 a9 00 0c stw r29,12(r9) /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; ffc0cc50: 38 00 00 01 li r0,1 /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; ffc0cc54: 81 4b 28 f8 lwz r10,10488(r11) fs_info->ino_count = 1; ffc0cc58: 90 09 00 04 stw r0,4(r9) /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; ffc0cc5c: 39 0a 00 01 addi r8,r10,1 ffc0cc60: 91 49 00 00 stw r10,0(r9) fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; ffc0cc64: 90 03 00 38 stw r0,56(r3) fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); rtems_set_errno_and_return_minus_one(ENOMEM); } temp_mt_entry->fs_info = fs_info; ffc0cc68: 91 3f 00 34 stw r9,52(r31) * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; ffc0cc6c: 93 c9 00 08 stw r30,8(r9) /* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++; ffc0cc70: 91 0b 28 f8 stw r8,10488(r11) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); ffc0cc74: 48 00 1c e9 bl ffc0e95c ffc0cc78: 38 60 00 00 li r3,0 return 0; } ffc0cc7c: 80 01 00 1c lwz r0,28(r1) ffc0cc80: 83 81 00 08 lwz r28,8(r1) ffc0cc84: 7c 08 03 a6 mtlr r0 ffc0cc88: 83 a1 00 0c lwz r29,12(r1) ffc0cc8c: 83 c1 00 10 lwz r30,16(r1) ffc0cc90: 83 e1 00 14 lwz r31,20(r1) ffc0cc94: 38 21 00 18 addi r1,r1,24 ffc0cc98: 4e 80 00 20 blr ffc04ed0 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { ffc04ed0: 94 21 ff 98 stwu r1,-104(r1) ffc04ed4: 7c 08 02 a6 mflr r0 ffc04ed8: 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; ffc04edc: 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 */ ) { ffc04ee0: 93 a1 00 5c stw r29,92(r1) ffc04ee4: 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; ffc04ee8: 91 21 00 18 stw r9,24(r1) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) ffc04eec: 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 */ ) { ffc04ef0: 93 c1 00 60 stw r30,96(r1) ffc04ef4: 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 ) ffc04ef8: 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 */ ) { ffc04efc: 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 ) ffc04f00: 40 bd 00 10 ble+ cr7,ffc04f10 rtems_set_errno_and_return_minus_one( EMLINK ); ffc04f04: 48 01 1b 85 bl ffc16a88 <__errno> ffc04f08: 38 00 00 1f li r0,31 ffc04f0c: 48 00 00 50 b ffc04f5c /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); ffc04f10: 7c a3 2b 78 mr r3,r5 ffc04f14: 48 01 2e 35 bl ffc17d48 ffc04f18: 3b e1 00 30 addi r31,r1,48 ffc04f1c: 7c 64 1b 78 mr r4,r3 ffc04f20: 7f e5 fb 78 mr r5,r31 ffc04f24: 38 c1 00 08 addi r6,r1,8 ffc04f28: 7f a3 eb 78 mr r3,r29 ffc04f2c: 48 00 da a1 bl ffc129cc * 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( ffc04f30: 38 c0 00 00 li r6,0 ffc04f34: 7f c3 f3 78 mr r3,r30 ffc04f38: 7f e5 fb 78 mr r5,r31 ffc04f3c: 60 c6 a1 ff ori r6,r6,41471 ffc04f40: 38 80 00 03 li r4,3 ffc04f44: 38 e1 00 18 addi r7,r1,24 ffc04f48: 48 00 cb 7d bl ffc11ac4 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) ffc04f4c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04f50: 40 be 00 18 bne+ cr7,ffc04f68 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc04f54: 48 01 1b 35 bl ffc16a88 <__errno> <== NOT EXECUTED ffc04f58: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc04f5c: 90 03 00 00 stw r0,0(r3) ffc04f60: 38 60 ff ff li r3,-1 ffc04f64: 48 00 00 30 b ffc04f94 /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; ffc04f68: 81 21 00 18 lwz r9,24(r1) IMFS_update_ctime( info.hard_link.link_node ); ffc04f6c: 38 61 00 0c addi r3,r1,12 ffc04f70: 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++; ffc04f74: a1 69 00 34 lhz r11,52(r9) ffc04f78: 38 0b 00 01 addi r0,r11,1 ffc04f7c: b0 09 00 34 sth r0,52(r9) IMFS_update_ctime( info.hard_link.link_node ); ffc04f80: 48 00 0b fd bl ffc05b7c ffc04f84: 80 01 00 0c lwz r0,12(r1) ffc04f88: 81 21 00 18 lwz r9,24(r1) ffc04f8c: 38 60 00 00 li r3,0 ffc04f90: 90 09 00 48 stw r0,72(r9) return 0; } ffc04f94: 80 01 00 6c lwz r0,108(r1) ffc04f98: 83 a1 00 5c lwz r29,92(r1) ffc04f9c: 7c 08 03 a6 mtlr r0 ffc04fa0: 83 c1 00 60 lwz r30,96(r1) ffc04fa4: 83 e1 00 64 lwz r31,100(r1) ffc04fa8: 38 21 00 68 addi r1,r1,104 ffc04fac: 4e 80 00 20 blr ffc151f4 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc151f4: 7c 69 1b 79 mr. r9,r3 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc151f8: 94 21 ff f0 stwu r1,-16(r1) ffc151fc: 7c 08 02 a6 mflr r0 ffc15200: 93 e1 00 0c stw r31,12(r1) ffc15204: 90 01 00 14 stw r0,20(r1) block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc15208: 40 a2 00 28 bne+ ffc15230 <== ALWAYS TAKEN ffc1520c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15210: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15214: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15218: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1521c: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15220: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc15224: 38 c6 38 10 addi r6,r6,14352 <== NOT EXECUTED ffc15228: 38 80 01 69 li r4,361 <== NOT EXECUTED ffc1522c: 48 00 00 30 b ffc1525c <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc15230: 80 09 00 4c lwz r0,76(r9) ffc15234: 2f 80 00 05 cmpwi cr7,r0,5 ffc15238: 41 be 00 28 beq+ cr7,ffc15260 <== ALWAYS TAKEN ffc1523c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15240: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15244: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15248: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1524c: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15250: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc15254: 38 c6 38 1a addi r6,r6,14362 <== NOT EXECUTED ffc15258: 38 80 01 6d li r4,365 <== NOT EXECUTED ffc1525c: 4b ff 03 71 bl ffc055cc <__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 ); ffc15260: 38 a0 00 01 li r5,1 ffc15264: 4b ff f9 39 bl ffc14b9c if ( *block_entry_ptr ) ffc15268: 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 ); ffc1526c: 7c 7f 1b 78 mr r31,r3 if ( *block_entry_ptr ) ffc15270: 38 60 00 00 li r3,0 ffc15274: 2f 80 00 00 cmpwi cr7,r0,0 ffc15278: 40 be 00 1c bne+ cr7,ffc15294 #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); ffc1527c: 4b ff f8 dd bl ffc14b58 if ( !memory ) ffc15280: 7c 60 1b 79 mr. r0,r3 ffc15284: 38 60 00 01 li r3,1 ffc15288: 41 82 00 0c beq- ffc15294 <== NEVER TAKEN return 1; *block_entry_ptr = memory; ffc1528c: 90 1f 00 00 stw r0,0(r31) ffc15290: 38 60 00 00 li r3,0 return 0; } ffc15294: 80 01 00 14 lwz r0,20(r1) ffc15298: 83 e1 00 0c lwz r31,12(r1) ffc1529c: 38 21 00 10 addi r1,r1,16 ffc152a0: 7c 08 03 a6 mtlr r0 ffc152a4: 4e 80 00 20 blr ffc152a8 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc152a8: 94 21 ff d8 stwu r1,-40(r1) ffc152ac: 7c 08 02 a6 mflr r0 ffc152b0: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc152b4: 7c 7f 1b 79 mr. r31,r3 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc152b8: 93 81 00 18 stw r28,24(r1) ffc152bc: 7c dc 33 78 mr r28,r6 ffc152c0: 93 a1 00 1c stw r29,28(r1) ffc152c4: 7c bd 2b 78 mr r29,r5 ffc152c8: 90 01 00 2c stw r0,44(r1) ffc152cc: 93 01 00 08 stw r24,8(r1) ffc152d0: 93 21 00 0c stw r25,12(r1) ffc152d4: 93 41 00 10 stw r26,16(r1) ffc152d8: 93 61 00 14 stw r27,20(r1) ffc152dc: 93 c1 00 20 stw r30,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc152e0: 40 a2 00 28 bne+ ffc15308 <== ALWAYS TAKEN ffc152e4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc152e8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc152ec: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc152f0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc152f4: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc152f8: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc152fc: 38 c6 38 10 addi r6,r6,14352 <== NOT EXECUTED ffc15300: 38 80 01 31 li r4,305 <== NOT EXECUTED ffc15304: 48 00 00 30 b ffc15334 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc15308: 80 1f 00 4c lwz r0,76(r31) ffc1530c: 2f 80 00 05 cmpwi cr7,r0,5 ffc15310: 41 be 00 28 beq+ cr7,ffc15338 <== ALWAYS TAKEN ffc15314: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15318: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1531c: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15320: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15324: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15328: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc1532c: 38 c6 38 1a addi r6,r6,14362 <== NOT EXECUTED ffc15330: 38 80 01 35 li r4,309 <== NOT EXECUTED ffc15334: 4b ff 02 99 bl ffc055cc <__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 ) ffc15338: 3d 20 00 00 lis r9,0 ffc1533c: 83 c9 27 24 lwz r30,10020(r9) ffc15340: 38 00 00 00 li r0,0 ffc15344: 7f 80 28 00 cmpw cr7,r0,r5 ffc15348: 57 c9 f0 be rlwinm r9,r30,30,2,31 ffc1534c: 39 69 00 01 addi r11,r9,1 ffc15350: 7d 6b 49 d6 mullw r11,r11,r9 ffc15354: 38 0b 00 01 addi r0,r11,1 ffc15358: 7d 20 49 d6 mullw r9,r0,r9 ffc1535c: 39 29 ff ff addi r9,r9,-1 ffc15360: 7d 29 f1 d6 mullw r9,r9,r30 ffc15364: 41 bd 00 1c bgt+ cr7,ffc15380 <== NEVER TAKEN ffc15368: 40 9e 00 0c bne- cr7,ffc15374 <== NEVER TAKEN ffc1536c: 7f 89 30 40 cmplw cr7,r9,r6 ffc15370: 41 bd 00 10 bgt+ cr7,ffc15380 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc15374: 48 00 17 15 bl ffc16a88 <__errno> <== NOT EXECUTED ffc15378: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1537c: 48 00 00 9c b ffc15418 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) ffc15380: 83 3f 00 50 lwz r25,80(r31) ffc15384: 83 5f 00 54 lwz r26,84(r31) ffc15388: 7f 9d c8 00 cmpw cr7,r29,r25 ffc1538c: 41 bd 00 18 bgt+ cr7,ffc153a4 <== NEVER TAKEN ffc15390: 40 9e 00 0c bne- cr7,ffc1539c <== NEVER TAKEN ffc15394: 7f 9c d0 40 cmplw cr7,r28,r26 ffc15398: 41 bd 00 0c bgt+ cr7,ffc153a4 ffc1539c: 38 60 00 00 li r3,0 ffc153a0: 48 00 00 9c b ffc1543c /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc153a4: 7f db fe 70 srawi r27,r30,31 ffc153a8: 7f 65 db 78 mr r5,r27 ffc153ac: 7f c6 f3 78 mr r6,r30 ffc153b0: 7f a3 eb 78 mr r3,r29 ffc153b4: 7f 84 e3 78 mr r4,r28 ffc153b8: 48 00 b5 85 bl ffc2093c <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc153bc: 7f 65 db 78 mr r5,r27 ffc153c0: 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; ffc153c4: 7c 98 23 78 mr r24,r4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc153c8: 7f 23 cb 78 mr r3,r25 ffc153cc: 7f 44 d3 78 mr r4,r26 ffc153d0: 48 00 b5 6d bl ffc2093c <__divdi3> ffc153d4: 7c 9b 23 78 mr r27,r4 ffc153d8: 7c 9e 23 78 mr r30,r4 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc153dc: 48 00 00 4c b ffc15428 if ( IMFS_memfile_addblock( the_jnode, block ) ) { ffc153e0: 7f e3 fb 78 mr r3,r31 ffc153e4: 7f c4 f3 78 mr r4,r30 ffc153e8: 4b ff fe 0d bl ffc151f4 ffc153ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc153f0: 41 be 00 34 beq+ cr7,ffc15424 <== ALWAYS TAKEN ffc153f4: 48 00 00 14 b ffc15408 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); ffc153f8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc153fc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc15400: 4b ff fa 99 bl ffc14e98 <== 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-- ) { ffc15404: 3b de ff ff addi r30,r30,-1 <== NOT EXECUTED ffc15408: 7f 9e d8 40 cmplw cr7,r30,r27 <== NOT EXECUTED ffc1540c: 40 9c ff ec bge+ cr7,ffc153f8 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); ffc15410: 48 00 16 79 bl ffc16a88 <__errno> <== NOT EXECUTED ffc15414: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc15418: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1541c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc15420: 48 00 00 1c b ffc1543c <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc15424: 3b de 00 01 addi r30,r30,1 ffc15428: 7f 9e c0 40 cmplw cr7,r30,r24 ffc1542c: 40 9d ff b4 ble+ cr7,ffc153e0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; ffc15430: 93 9f 00 54 stw r28,84(r31) ffc15434: 38 60 00 00 li r3,0 ffc15438: 93 bf 00 50 stw r29,80(r31) return 0; } ffc1543c: 80 01 00 2c lwz r0,44(r1) ffc15440: 83 01 00 08 lwz r24,8(r1) ffc15444: 7c 08 03 a6 mtlr r0 ffc15448: 83 21 00 0c lwz r25,12(r1) ffc1544c: 83 41 00 10 lwz r26,16(r1) ffc15450: 83 61 00 14 lwz r27,20(r1) ffc15454: 83 81 00 18 lwz r28,24(r1) ffc15458: 83 a1 00 1c lwz r29,28(r1) ffc1545c: 83 c1 00 20 lwz r30,32(r1) ffc15460: 83 e1 00 24 lwz r31,36(r1) ffc15464: 38 21 00 28 addi r1,r1,40 ffc15468: 4e 80 00 20 blr ffc14b9c : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc14b9c: 94 21 ff e8 stwu r1,-24(r1) ffc14ba0: 7c 08 02 a6 mflr r0 ffc14ba4: 93 e1 00 14 stw r31,20(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc14ba8: 7c 7f 1b 79 mr. r31,r3 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc14bac: 93 c1 00 10 stw r30,16(r1) ffc14bb0: 7c 9e 23 78 mr r30,r4 ffc14bb4: 90 01 00 1c stw r0,28(r1) ffc14bb8: 93 81 00 08 stw r28,8(r1) ffc14bbc: 93 a1 00 0c stw r29,12(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc14bc0: 40 a2 00 24 bne+ ffc14be4 <== ALWAYS TAKEN ffc14bc4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14bc8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14bcc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14bd0: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc14bd4: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc14bd8: 38 c6 38 10 addi r6,r6,14352 <== NOT EXECUTED ffc14bdc: 38 80 03 88 li r4,904 <== NOT EXECUTED ffc14be0: 48 00 00 2c b ffc14c0c <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc14be4: 80 1f 00 4c lwz r0,76(r31) ffc14be8: 2f 80 00 05 cmpwi cr7,r0,5 ffc14bec: 41 be 00 24 beq+ cr7,ffc14c10 <== ALWAYS TAKEN ffc14bf0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14bf4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14bf8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14bfc: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc14c00: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc14c04: 38 c6 38 1a addi r6,r6,14362 <== NOT EXECUTED ffc14c08: 38 80 03 8c li r4,908 <== NOT EXECUTED ffc14c0c: 4b ff 09 c1 bl ffc055cc <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { ffc14c10: 3d 20 00 00 lis r9,0 ffc14c14: 81 29 27 24 lwz r9,10020(r9) ffc14c18: 55 29 f0 be rlwinm r9,r9,30,2,31 ffc14c1c: 38 09 ff ff addi r0,r9,-1 ffc14c20: 7f 84 00 40 cmplw cr7,r4,r0 ffc14c24: 41 9d 00 40 bgt- cr7,ffc14c64 <== NEVER TAKEN fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { ffc14c28: 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; ffc14c2c: 80 1f 00 58 lwz r0,88(r31) ffc14c30: 2f 80 00 00 cmpwi cr7,r0,0 if ( malloc_it ) { ffc14c34: 41 9a 00 20 beq- cr6,ffc14c54 if ( !p ) { ffc14c38: 40 be 00 14 bne+ cr7,ffc14c4c p = memfile_alloc_block(); ffc14c3c: 4b ff ff 1d bl ffc14b58 if ( !p ) ffc14c40: 2c 03 00 00 cmpwi r3,0 ffc14c44: 41 82 01 78 beq- ffc14dbc <== NEVER TAKEN return 0; info->indirect = p; ffc14c48: 90 7f 00 58 stw r3,88(r31) } return &info->indirect[ my_block ]; ffc14c4c: 80 7f 00 58 lwz r3,88(r31) ffc14c50: 48 00 01 60 b ffc14db0 } if ( !p ) ffc14c54: 41 9e 01 68 beq- cr7,ffc14dbc <== NEVER TAKEN return 0; return &info->indirect[ my_block ]; ffc14c58: 54 9e 10 3a rlwinm r30,r4,2,0,29 ffc14c5c: 7c 60 f2 14 add r3,r0,r30 ffc14c60: 48 00 01 60 b ffc14dc0 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { ffc14c64: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED ffc14c68: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED ffc14c6c: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc14c70: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc14c74: 41 9d 00 80 bgt- cr7,ffc14cf4 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; ffc14c78: 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; ffc14c7c: 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; ffc14c80: 7f be 4b 96 divwu r29,r30,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc14c84: 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; ffc14c88: 7d 3d 49 d6 mullw r9,r29,r9 <== NOT EXECUTED ffc14c8c: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc14c90: 7f c9 f0 50 subf r30,r9,r30 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc14c94: 41 9a 00 40 beq- cr6,ffc14cd4 <== NOT EXECUTED if ( !p ) { ffc14c98: 40 be 00 14 bne+ cr7,ffc14cac <== NOT EXECUTED p = memfile_alloc_block(); ffc14c9c: 4b ff fe bd bl ffc14b58 <== NOT EXECUTED if ( !p ) ffc14ca0: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED ffc14ca4: 41 82 01 18 beq- ffc14dbc <== NOT EXECUTED return 0; info->doubly_indirect = p; ffc14ca8: 91 7f 00 5c stw r11,92(r31) <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; ffc14cac: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc14cb0: 7c 6b e8 2e lwzx r3,r11,r29 <== NOT EXECUTED ffc14cb4: 7f ab ea 14 add r29,r11,r29 <== NOT EXECUTED if ( !p1 ) { ffc14cb8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc14cbc: 40 be 00 f4 bne+ cr7,ffc14db0 <== NOT EXECUTED p1 = memfile_alloc_block(); ffc14cc0: 4b ff fe 99 bl ffc14b58 <== NOT EXECUTED if ( !p1 ) ffc14cc4: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc14cc8: 41 82 00 f4 beq- ffc14dbc <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; ffc14ccc: 90 7d 00 00 stw r3,0(r29) <== NOT EXECUTED ffc14cd0: 48 00 00 e0 b ffc14db0 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) ffc14cd4: 41 be 00 e8 beq+ cr7,ffc14dbc <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; ffc14cd8: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc14cdc: 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 ]; ffc14ce0: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc14ce4: 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 ]; ffc14ce8: 7c 60 f2 14 add r3,r0,r30 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc14cec: 40 be 00 d4 bne+ cr7,ffc14dc0 <== NOT EXECUTED ffc14cf0: 48 00 00 cc b ffc14dbc <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { ffc14cf4: 39 4b 00 01 addi r10,r11,1 <== NOT EXECUTED ffc14cf8: 7d 4a 49 d6 mullw r10,r10,r9 <== NOT EXECUTED ffc14cfc: 38 0a ff ff addi r0,r10,-1 <== NOT EXECUTED ffc14d00: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc14d04: 41 9d 00 b8 bgt- cr7,ffc14dbc <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; ffc14d08: 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; ffc14d0c: 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; ffc14d10: 7c 1e 4b 96 divwu r0,r30,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; ffc14d14: 7f a0 4b 96 divwu r29,r0,r9 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { ffc14d18: 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; ffc14d1c: 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; ffc14d20: 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; ffc14d24: 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; ffc14d28: 7f c9 f0 50 subf r30,r9,r30 <== NOT EXECUTED ffc14d2c: 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 ) { ffc14d30: 41 9a 00 64 beq- cr6,ffc14d94 <== NOT EXECUTED if ( !p ) { ffc14d34: 40 be 00 14 bne+ cr7,ffc14d48 <== NOT EXECUTED p = memfile_alloc_block(); ffc14d38: 4b ff fe 21 bl ffc14b58 <== NOT EXECUTED if ( !p ) ffc14d3c: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED ffc14d40: 41 82 00 7c beq- ffc14dbc <== NOT EXECUTED return 0; info->triply_indirect = p; ffc14d44: 91 7f 00 60 stw r11,96(r31) <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; ffc14d48: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc14d4c: 7d 2b e8 2e lwzx r9,r11,r29 <== NOT EXECUTED ffc14d50: 7f ab ea 14 add r29,r11,r29 <== NOT EXECUTED if ( !p1 ) { ffc14d54: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc14d58: 40 be 00 14 bne+ cr7,ffc14d6c <== NOT EXECUTED p1 = memfile_alloc_block(); ffc14d5c: 4b ff fd fd bl ffc14b58 <== NOT EXECUTED if ( !p1 ) ffc14d60: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc14d64: 41 82 00 58 beq- ffc14dbc <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; ffc14d68: 91 3d 00 00 stw r9,0(r29) <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; ffc14d6c: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED ffc14d70: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED ffc14d74: 7f 89 e2 14 add r28,r9,r28 <== NOT EXECUTED if ( !p2 ) { ffc14d78: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc14d7c: 40 be 00 34 bne+ cr7,ffc14db0 <== NOT EXECUTED p2 = memfile_alloc_block(); ffc14d80: 4b ff fd d9 bl ffc14b58 <== NOT EXECUTED if ( !p2 ) ffc14d84: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc14d88: 41 82 00 34 beq- ffc14dbc <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; ffc14d8c: 90 7c 00 00 stw r3,0(r28) <== NOT EXECUTED ffc14d90: 48 00 00 20 b ffc14db0 <== NOT EXECUTED } return (block_p *)&p2[ singly ]; } if ( !p ) ffc14d94: 41 be 00 28 beq+ cr7,ffc14dbc <== 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 ]; ffc14d98: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc14d9c: 7d 2b e8 2e lwzx r9,r11,r29 <== NOT EXECUTED if ( !p1 ) ffc14da0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc14da4: 41 be 00 18 beq+ cr7,ffc14dbc <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc14da8: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED ffc14dac: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED ffc14db0: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc14db4: 7c 63 f2 14 add r3,r3,r30 ffc14db8: 48 00 00 08 b ffc14dc0 ffc14dbc: 38 60 00 00 li r3,0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc14dc0: 80 01 00 1c lwz r0,28(r1) ffc14dc4: 83 81 00 08 lwz r28,8(r1) ffc14dc8: 7c 08 03 a6 mtlr r0 ffc14dcc: 83 a1 00 0c lwz r29,12(r1) ffc14dd0: 83 c1 00 10 lwz r30,16(r1) ffc14dd4: 83 e1 00 14 lwz r31,20(r1) ffc14dd8: 38 21 00 18 addi r1,r1,24 ffc14ddc: 4e 80 00 20 blr ffc159c4 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc159c4: 94 21 ff c8 stwu r1,-56(r1) ffc159c8: 7c 08 02 a6 mflr r0 ffc159cc: 93 e1 00 34 stw r31,52(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc159d0: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc159d4: 93 61 00 24 stw r27,36(r1) ffc159d8: 7c bb 2b 78 mr r27,r5 ffc159dc: 93 81 00 28 stw r28,40(r1) ffc159e0: 7c dc 33 78 mr r28,r6 ffc159e4: 93 c1 00 30 stw r30,48(r1) ffc159e8: 7c fe 3b 78 mr r30,r7 ffc159ec: 90 01 00 3c stw r0,60(r1) ffc159f0: 93 01 00 18 stw r24,24(r1) ffc159f4: 93 21 00 1c stw r25,28(r1) ffc159f8: 93 41 00 20 stw r26,32(r1) ffc159fc: 93 a1 00 2c stw r29,44(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15a00: 40 a2 00 28 bne+ ffc15a28 <== ALWAYS TAKEN ffc15a04: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15a08: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15a0c: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15a10: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15a14: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15a18: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15a1c: 38 c6 38 10 addi r6,r6,14352 <== NOT EXECUTED ffc15a20: 38 80 02 4c li r4,588 <== NOT EXECUTED ffc15a24: 48 00 00 34 b ffc15a58 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || ffc15a28: 81 3f 00 4c lwz r9,76(r31) ffc15a2c: 38 09 ff fb addi r0,r9,-5 ffc15a30: 2b 80 00 01 cmplwi cr7,r0,1 ffc15a34: 40 bd 00 28 ble+ cr7,ffc15a5c <== ALWAYS TAKEN ffc15a38: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15a3c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15a40: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15a44: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15a48: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15a4c: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15a50: 38 c6 38 84 addi r6,r6,14468 <== NOT EXECUTED ffc15a54: 38 80 02 51 li r4,593 <== NOT EXECUTED ffc15a58: 4b fe fb 75 bl ffc055cc <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); ffc15a5c: 2f 87 00 00 cmpwi cr7,r7,0 ffc15a60: 40 be 00 28 bne+ cr7,ffc15a88 <== ALWAYS TAKEN ffc15a64: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15a68: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15a6c: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15a70: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15a74: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15a78: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15a7c: 38 c6 38 cf addi r6,r6,14543 <== NOT EXECUTED ffc15a80: 38 80 02 5a li r4,602 <== NOT EXECUTED ffc15a84: 4b ff ff d4 b ffc15a58 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) ffc15a88: 2f 88 00 00 cmpwi cr7,r8,0 ffc15a8c: 40 be 00 18 bne+ cr7,ffc15aa4 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc15a90: 48 00 0f f9 bl ffc16a88 <__errno> <== NOT EXECUTED ffc15a94: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc15a98: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc15a9c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc15aa0: 48 00 02 3c b ffc15cdc <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { ffc15aa4: 2f 89 00 06 cmpwi cr7,r9,6 ffc15aa8: 40 be 00 60 bne+ cr7,ffc15b08 <== ALWAYS TAKEN unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) ffc15aac: 81 3f 00 50 lwz r9,80(r31) <== NOT EXECUTED ffc15ab0: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc15ab4: 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; ffc15ab8: 80 9f 00 58 lwz r4,88(r31) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) ffc15abc: 7d 9c 50 10 subfc r12,r28,r10 <== NOT EXECUTED ffc15ac0: 7d 7b 49 10 subfe r11,r27,r9 <== NOT EXECUTED ffc15ac4: 7f 80 58 00 cmpw cr7,r0,r11 <== NOT EXECUTED ffc15ac8: 41 bd 00 18 bgt+ cr7,ffc15ae0 <== NOT EXECUTED ffc15acc: 40 9e 00 0c bne- cr7,ffc15ad8 <== NOT EXECUTED ffc15ad0: 7f 88 60 40 cmplw cr7,r8,r12 <== NOT EXECUTED ffc15ad4: 41 bd 00 0c bgt+ cr7,ffc15ae0 <== NOT EXECUTED ffc15ad8: 7d 1d 43 78 mr r29,r8 <== NOT EXECUTED ffc15adc: 48 00 00 08 b ffc15ae4 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; ffc15ae0: 7f bc 50 50 subf r29,r28,r10 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); ffc15ae4: 7c 84 e2 14 add r4,r4,r28 <== NOT EXECUTED ffc15ae8: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED ffc15aec: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc15af0: 48 00 1b 81 bl ffc17670 <== NOT EXECUTED IMFS_update_atime( the_jnode ); ffc15af4: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc15af8: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc15afc: 4b ff 00 81 bl ffc05b7c <== NOT EXECUTED return my_length; ffc15b00: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc15b04: 48 00 01 d0 b ffc15cd4 <== 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 ) ffc15b08: 80 1f 00 50 lwz r0,80(r31) ffc15b0c: 39 20 00 00 li r9,0 ffc15b10: 83 bf 00 54 lwz r29,84(r31) ffc15b14: 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; ffc15b18: 7c c0 33 78 mr r0,r6 if ( last_byte > the_jnode->info.file.size ) ffc15b1c: 7d 28 32 14 add r9,r8,r6 ffc15b20: 41 9d 00 18 bgt- cr7,ffc15b38 <== NEVER TAKEN ffc15b24: 40 9e 00 0c bne- cr7,ffc15b30 <== NEVER TAKEN ffc15b28: 7f 89 e8 40 cmplw cr7,r9,r29 ffc15b2c: 41 9d 00 0c bgt- cr7,ffc15b38 ffc15b30: 7d 1d 43 78 mr r29,r8 ffc15b34: 48 00 00 08 b ffc15b3c my_length = the_jnode->info.file.size - start; ffc15b38: 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; ffc15b3c: 3d 20 00 00 lis r9,0 ffc15b40: 83 49 27 24 lwz r26,10020(r9) ffc15b44: 7f 63 db 78 mr r3,r27 ffc15b48: 7f 84 e3 78 mr r4,r28 ffc15b4c: 7f 58 fe 70 srawi r24,r26,31 ffc15b50: 7f 05 c3 78 mr r5,r24 ffc15b54: 7f 46 d3 78 mr r6,r26 ffc15b58: 48 00 b1 e9 bl ffc20d40 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15b5c: 7f 63 db 78 mr r3,r27 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15b60: 7c 99 23 78 mr r25,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15b64: 7f 05 c3 78 mr r5,r24 ffc15b68: 7f 84 e3 78 mr r4,r28 ffc15b6c: 7f 46 d3 78 mr r6,r26 ffc15b70: 48 00 ad cd bl ffc2093c <__divdi3> if ( start_offset ) { ffc15b74: 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; ffc15b78: 7c 98 23 78 mr r24,r4 if ( start_offset ) { ffc15b7c: 7f dc f3 78 mr r28,r30 ffc15b80: 3b 60 00 00 li r27,0 ffc15b84: 41 9e 00 70 beq- cr7,ffc15bf4 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 ); ffc15b88: 7f e3 fb 78 mr r3,r31 ffc15b8c: 38 a0 00 00 li r5,0 ffc15b90: 4b ff f0 0d bl ffc14b9c assert( block_ptr ); ffc15b94: 2c 03 00 00 cmpwi r3,0 ffc15b98: 40 a2 00 28 bne+ ffc15bc0 <== ALWAYS TAKEN ffc15b9c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15ba0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15ba4: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15ba8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15bac: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15bb0: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15bb4: 38 c6 38 4a addi r6,r6,14410 <== NOT EXECUTED ffc15bb8: 38 80 02 96 li r4,662 <== NOT EXECUTED ffc15bbc: 4b ff fe 9c b ffc15a58 <== 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; ffc15bc0: 7f 59 d0 50 subf r26,r25,r26 ffc15bc4: 7f 9d d0 40 cmplw cr7,r29,r26 ffc15bc8: 7f bb eb 78 mr r27,r29 ffc15bcc: 40 9d 00 08 ble- cr7,ffc15bd4 ffc15bd0: 7f 5b d3 78 mr r27,r26 to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); ffc15bd4: 80 83 00 00 lwz r4,0(r3) ffc15bd8: 7f 65 db 78 mr r5,r27 ffc15bdc: 7f c3 f3 78 mr r3,r30 ffc15be0: 7c 84 ca 14 add r4,r4,r25 ffc15be4: 48 00 1a 8d bl ffc17670 dest += to_copy; ffc15be8: 7f 9e da 14 add r28,r30,r27 block++; ffc15bec: 3b 18 00 01 addi r24,r24,1 my_length -= to_copy; ffc15bf0: 7f bb e8 50 subf r29,r27,r29 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15bf4: 3d 20 00 00 lis r9,0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15bf8: 3b 49 27 24 addi r26,r9,10020 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15bfc: 83 c9 27 24 lwz r30,10020(r9) while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15c00: 48 00 00 60 b ffc15c60 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc15c04: 7f e3 fb 78 mr r3,r31 ffc15c08: 7f 04 c3 78 mr r4,r24 ffc15c0c: 38 a0 00 00 li r5,0 ffc15c10: 4b ff ef 8d bl ffc14b9c assert( block_ptr ); ffc15c14: 2c 03 00 00 cmpwi r3,0 ffc15c18: 40 a2 00 28 bne+ ffc15c40 <== ALWAYS TAKEN ffc15c1c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15c20: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15c24: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15c28: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15c2c: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15c30: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15c34: 38 c6 38 4a addi r6,r6,14410 <== NOT EXECUTED ffc15c38: 38 80 02 a7 li r4,679 <== NOT EXECUTED ffc15c3c: 4b ff fe 1c b ffc15a58 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); ffc15c40: 80 83 00 00 lwz r4,0(r3) ffc15c44: 7f c5 f3 78 mr r5,r30 ffc15c48: 7f 83 e3 78 mr r3,r28 ffc15c4c: 48 00 1a 25 bl ffc17670 dest += to_copy; ffc15c50: 7f 9c f2 14 add r28,r28,r30 block++; ffc15c54: 3b 18 00 01 addi r24,r24,1 my_length -= to_copy; ffc15c58: 7f be e8 50 subf r29,r30,r29 copied += to_copy; ffc15c5c: 7f 7b f2 14 add r27,r27,r30 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15c60: 80 1a 00 00 lwz r0,0(r26) ffc15c64: 7f 9d 00 40 cmplw cr7,r29,r0 ffc15c68: 40 9c ff 9c bge+ cr7,ffc15c04 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { ffc15c6c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc15c70: 41 9e 00 54 beq- cr7,ffc15cc4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc15c74: 7f 04 c3 78 mr r4,r24 ffc15c78: 7f e3 fb 78 mr r3,r31 ffc15c7c: 38 a0 00 00 li r5,0 ffc15c80: 4b ff ef 1d bl ffc14b9c assert( block_ptr ); ffc15c84: 2c 03 00 00 cmpwi r3,0 ffc15c88: 40 a2 00 28 bne+ ffc15cb0 <== ALWAYS TAKEN ffc15c8c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15c90: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15c94: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15c98: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15c9c: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15ca0: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc15ca4: 38 c6 38 4a addi r6,r6,14410 <== NOT EXECUTED ffc15ca8: 38 80 02 b9 li r4,697 <== NOT EXECUTED ffc15cac: 4b ff fd ac b ffc15a58 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); ffc15cb0: 80 83 00 00 lwz r4,0(r3) ffc15cb4: 7f a5 eb 78 mr r5,r29 ffc15cb8: 7f 83 e3 78 mr r3,r28 ffc15cbc: 48 00 19 b5 bl ffc17670 copied += my_length; ffc15cc0: 7f 7b ea 14 add r27,r27,r29 } IMFS_update_atime( the_jnode ); ffc15cc4: 38 61 00 08 addi r3,r1,8 ffc15cc8: 38 80 00 00 li r4,0 ffc15ccc: 4b fe fe b1 bl ffc05b7c return copied; ffc15cd0: 7f 63 db 78 mr r3,r27 return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); ffc15cd4: 80 01 00 08 lwz r0,8(r1) ffc15cd8: 90 1f 00 40 stw r0,64(r31) return copied; } ffc15cdc: 80 01 00 3c lwz r0,60(r1) ffc15ce0: 83 01 00 18 lwz r24,24(r1) ffc15ce4: 7c 08 03 a6 mtlr r0 ffc15ce8: 83 21 00 1c lwz r25,28(r1) ffc15cec: 83 41 00 20 lwz r26,32(r1) ffc15cf0: 83 61 00 24 lwz r27,36(r1) ffc15cf4: 83 81 00 28 lwz r28,40(r1) ffc15cf8: 83 a1 00 2c lwz r29,44(r1) ffc15cfc: 83 c1 00 30 lwz r30,48(r1) ffc15d00: 83 e1 00 34 lwz r31,52(r1) ffc15d04: 38 21 00 38 addi r1,r1,56 ffc15d08: 4e 80 00 20 blr ffc14efc : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc14efc: 94 21 ff d8 stwu r1,-40(r1) ffc14f00: 7c 08 02 a6 mflr r0 ffc14f04: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc14f08: 7c 7f 1b 79 mr. r31,r3 */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc14f0c: 90 01 00 2c stw r0,44(r1) ffc14f10: 93 21 00 0c stw r25,12(r1) ffc14f14: 93 41 00 10 stw r26,16(r1) ffc14f18: 93 61 00 14 stw r27,20(r1) ffc14f1c: 93 81 00 18 stw r28,24(r1) ffc14f20: 93 a1 00 1c stw r29,28(r1) ffc14f24: 93 c1 00 20 stw r30,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc14f28: 40 a2 00 28 bne+ ffc14f50 <== ALWAYS TAKEN ffc14f2c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14f30: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14f34: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc14f38: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14f3c: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc14f40: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc14f44: 38 c6 38 10 addi r6,r6,14352 <== NOT EXECUTED ffc14f48: 38 80 01 ee li r4,494 <== NOT EXECUTED ffc14f4c: 48 00 00 30 b ffc14f7c <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc14f50: 80 1f 00 4c lwz r0,76(r31) ffc14f54: 2f 80 00 05 cmpwi cr7,r0,5 ffc14f58: 41 be 00 28 beq+ cr7,ffc14f80 <== ALWAYS TAKEN ffc14f5c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14f60: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14f64: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc14f68: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14f6c: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc14f70: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc14f74: 38 c6 38 1a addi r6,r6,14362 <== NOT EXECUTED ffc14f78: 38 80 01 f2 li r4,498 <== NOT EXECUTED ffc14f7c: 4b ff 06 51 bl ffc055cc <__assert_func> <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14f80: 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; ffc14f84: 3d 20 00 00 lis r9,0 ffc14f88: 83 c9 27 24 lwz r30,10020(r9) * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14f8c: 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; ffc14f90: 57 de f0 be rlwinm r30,r30,30,2,31 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14f94: 41 9e 00 10 beq- cr7,ffc14fa4 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); ffc14f98: 38 7f 00 58 addi r3,r31,88 ffc14f9c: 7f c4 f3 78 mr r4,r30 ffc14fa0: 4b ff fe 41 bl ffc14de0 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc14fa4: 80 1f 00 5c lwz r0,92(r31) ffc14fa8: 2f 80 00 00 cmpwi cr7,r0,0 ffc14fac: 41 9e 00 54 beq- cr7,ffc15000 <== ALWAYS TAKEN memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; iinfo.file; ffc14fb8: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc14fbc: 48 00 00 28 b ffc14fe4 <== NOT EXECUTED } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { ffc14fc0: 80 7f 00 5c lwz r3,92(r31) <== NOT EXECUTED ffc14fc4: 57 a0 10 3a rlwinm r0,r29,2,0,29 <== NOT EXECUTED ffc14fc8: 7d 23 00 2e lwzx r9,r3,r0 <== NOT EXECUTED ffc14fcc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc14fd0: 41 9e 00 10 beq- cr7,ffc14fe0 <== NOT EXECUTED memfile_free_blocks_in_table( ffc14fd4: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc14fd8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc14fdc: 4b ff fe 05 bl ffc14de0 <== 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 ); ffc14ff4: 38 7f 00 5c addi r3,r31,92 <== NOT EXECUTED ffc14ff8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc14ffc: 4b ff fd e5 bl ffc14de0 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc15000: 80 1f 00 60 lwz r0,96(r31) ffc15004: 2f 80 00 00 cmpwi cr7,r0,0 ffc15008: 41 9e 00 90 beq- cr7,ffc15098 <== ALWAYS TAKEN memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; iinfo.file; ffc15014: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc15018: 48 00 00 64 b ffc1507c <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; ffc1501c: 81 3f 00 60 lwz r9,96(r31) <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc15020: 57 b9 10 3a rlwinm r25,r29,2,0,29 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; ffc15024: 7f 89 c8 2e lwzx r28,r9,r25 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc15028: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc1502c: 41 9e 00 60 beq- cr7,ffc1508c <== NOT EXECUTED ffc15030: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc15034: 48 00 00 24 b ffc15058 <== NOT EXECUTED break; for ( j=0 ; j<== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); ffc15044: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc15048: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc1504c: 4b ff fd 95 bl ffc14de0 <== 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( ffc15068: 80 7f 00 60 lwz r3,96(r31) <== NOT EXECUTED ffc1506c: 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( ffc1508c: 38 7f 00 60 addi r3,r31,96 <== NOT EXECUTED ffc15090: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc15094: 4b ff fd 4d bl ffc14de0 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } ffc15098: 80 01 00 2c lwz r0,44(r1) ffc1509c: 38 60 00 00 li r3,0 ffc150a0: 83 21 00 0c lwz r25,12(r1) ffc150a4: 7c 08 03 a6 mtlr r0 ffc150a8: 83 41 00 10 lwz r26,16(r1) ffc150ac: 83 61 00 14 lwz r27,20(r1) ffc150b0: 83 81 00 18 lwz r28,24(r1) ffc150b4: 83 a1 00 1c lwz r29,28(r1) ffc150b8: 83 c1 00 20 lwz r30,32(r1) ffc150bc: 83 e1 00 24 lwz r31,36(r1) ffc150c0: 38 21 00 28 addi r1,r1,40 ffc150c4: 4e 80 00 20 blr ffc14e98 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc14e98: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc14e9c: 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 ); ffc14ea0: 38 a0 00 00 li r5,0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc14ea4: 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 ); ffc14ea8: 4b ff fc f5 bl ffc14b9c <== NOT EXECUTED assert( block_ptr ); ffc14eac: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc14eb0: 40 a2 00 28 bne+ ffc14ed8 <== NOT EXECUTED ffc14eb4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14eb8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14ebc: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc14ec0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14ec4: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc14ec8: 38 a5 00 40 addi r5,r5,64 <== NOT EXECUTED ffc14ecc: 38 c6 38 4a addi r6,r6,14410 <== NOT EXECUTED ffc14ed0: 38 80 01 96 li r4,406 <== NOT EXECUTED ffc14ed4: 4b ff 06 f9 bl ffc055cc <__assert_func> <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; ffc14ed8: 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; ffc14edc: 80 69 00 00 lwz r3,0(r9) <== NOT EXECUTED *block_ptr = 0; ffc14ee0: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED memfile_free_block( ptr ); ffc14ee4: 4b ff fc 45 bl ffc14b28 <== NOT EXECUTED } return 1; } ffc14ee8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc14eec: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc14ef0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc14ef4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc14ef8: 4e 80 00 20 blr <== NOT EXECUTED ffc155a8 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc155a8: 94 21 ff c8 stwu r1,-56(r1) ffc155ac: 7c 08 02 a6 mflr r0 ffc155b0: 93 e1 00 34 stw r31,52(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc155b4: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc155b8: 93 61 00 24 stw r27,36(r1) ffc155bc: 7d 1b 43 78 mr r27,r8 ffc155c0: 93 81 00 28 stw r28,40(r1) ffc155c4: 7c fc 3b 78 mr r28,r7 ffc155c8: 93 a1 00 2c stw r29,44(r1) ffc155cc: 7c bd 2b 78 mr r29,r5 ffc155d0: 93 c1 00 30 stw r30,48(r1) ffc155d4: 7c de 33 78 mr r30,r6 ffc155d8: 90 01 00 3c stw r0,60(r1) ffc155dc: 93 01 00 18 stw r24,24(r1) ffc155e0: 93 21 00 1c stw r25,28(r1) ffc155e4: 93 41 00 20 stw r26,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc155e8: 40 a2 00 28 bne+ ffc15610 <== ALWAYS TAKEN ffc155ec: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc155f0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc155f4: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc155f8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc155fc: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15600: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc15604: 38 c6 38 10 addi r6,r6,14352 <== NOT EXECUTED ffc15608: 38 80 02 e3 li r4,739 <== NOT EXECUTED ffc1560c: 48 00 00 30 b ffc1563c <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc15610: 80 1f 00 4c lwz r0,76(r31) ffc15614: 2f 80 00 05 cmpwi cr7,r0,5 ffc15618: 41 be 00 28 beq+ cr7,ffc15640 <== ALWAYS TAKEN ffc1561c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15620: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15624: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15628: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1562c: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15630: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc15634: 38 c6 38 1a addi r6,r6,14362 <== NOT EXECUTED ffc15638: 38 80 02 e7 li r4,743 <== NOT EXECUTED ffc1563c: 4b fe ff 91 bl ffc055cc <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); ffc15640: 2f 87 00 00 cmpwi cr7,r7,0 ffc15644: 40 be 00 28 bne+ cr7,ffc1566c <== ALWAYS TAKEN ffc15648: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1564c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15650: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15654: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15658: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc1565c: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc15660: 38 c6 38 54 addi r6,r6,14420 <== NOT EXECUTED ffc15664: 38 80 02 ef li r4,751 <== NOT EXECUTED ffc15668: 4b ff ff d4 b ffc1563c <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) ffc1566c: 2f 88 00 00 cmpwi cr7,r8,0 ffc15670: 40 be 00 10 bne+ cr7,ffc15680 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc15674: 48 00 14 15 bl ffc16a88 <__errno> <== NOT EXECUTED ffc15678: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1567c: 48 00 00 40 b ffc156bc <== 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 ) { ffc15680: 80 1f 00 50 lwz r0,80(r31) ffc15684: 7c c8 32 14 add r6,r8,r6 ffc15688: 2f 80 00 00 cmpwi cr7,r0,0 ffc1568c: 41 9c 00 14 blt- cr7,ffc156a0 <== NEVER TAKEN ffc15690: 40 be 00 38 bne+ cr7,ffc156c8 <== NEVER TAKEN ffc15694: 80 1f 00 54 lwz r0,84(r31) ffc15698: 7f 80 30 40 cmplw cr7,r0,r6 ffc1569c: 40 bc 00 2c bge+ cr7,ffc156c8 <== NEVER TAKEN status = IMFS_memfile_extend( the_jnode, last_byte ); ffc156a0: 7f e3 fb 78 mr r3,r31 ffc156a4: 38 a0 00 00 li r5,0 ffc156a8: 4b ff fc 01 bl ffc152a8 if ( status ) ffc156ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc156b0: 41 be 00 18 beq+ cr7,ffc156c8 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc156b4: 48 00 13 d5 bl ffc16a88 <__errno> <== NOT EXECUTED ffc156b8: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc156bc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc156c0: 3b 40 ff ff li r26,-1 <== NOT EXECUTED ffc156c4: 48 00 01 a0 b ffc15864 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc156c8: 3d 20 00 00 lis r9,0 ffc156cc: 83 49 27 24 lwz r26,10020(r9) ffc156d0: 7f c4 f3 78 mr r4,r30 ffc156d4: 7f a3 eb 78 mr r3,r29 ffc156d8: 7f 58 fe 70 srawi r24,r26,31 ffc156dc: 7f 05 c3 78 mr r5,r24 ffc156e0: 7f 46 d3 78 mr r6,r26 ffc156e4: 48 00 b6 5d bl ffc20d40 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc156e8: 7f a3 eb 78 mr r3,r29 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc156ec: 7c 99 23 78 mr r25,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc156f0: 7f 05 c3 78 mr r5,r24 ffc156f4: 7f c4 f3 78 mr r4,r30 ffc156f8: 7f 46 d3 78 mr r6,r26 ffc156fc: 48 00 b2 41 bl ffc2093c <__divdi3> if ( start_offset ) { ffc15700: 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; ffc15704: 7c 9e 23 78 mr r30,r4 if ( start_offset ) { ffc15708: 40 9e 00 0c bne- cr7,ffc15714 ffc1570c: 3b 40 00 00 li r26,0 ffc15710: 48 00 00 6c b ffc1577c 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 ); ffc15714: 7f e3 fb 78 mr r3,r31 ffc15718: 38 a0 00 00 li r5,0 ffc1571c: 4b ff f4 81 bl ffc14b9c assert( block_ptr ); ffc15720: 2c 03 00 00 cmpwi r3,0 ffc15724: 40 a2 00 28 bne+ ffc1574c <== ALWAYS TAKEN ffc15728: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1572c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15730: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15734: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15738: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc1573c: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc15740: 38 c6 38 4a addi r6,r6,14410 <== NOT EXECUTED ffc15744: 38 80 03 1c li r4,796 <== NOT EXECUTED ffc15748: 4b ff fe f4 b ffc1563c <== 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; ffc1574c: 7f 59 d0 50 subf r26,r25,r26 ffc15750: 7f 9a d8 40 cmplw cr7,r26,r27 ffc15754: 40 9d 00 08 ble- cr7,ffc1575c ffc15758: 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 ); ffc1575c: 80 63 00 00 lwz r3,0(r3) ffc15760: 7f 84 e3 78 mr r4,r28 ffc15764: 7f 45 d3 78 mr r5,r26 ffc15768: 7c 63 ca 14 add r3,r3,r25 ffc1576c: 48 00 1f 05 bl ffc17670 src += to_copy; ffc15770: 7f 9c d2 14 add r28,r28,r26 block++; ffc15774: 3b de 00 01 addi r30,r30,1 my_length -= to_copy; ffc15778: 7f 7a d8 50 subf r27,r26,r27 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc1577c: 3d 20 00 00 lis r9,0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15780: 3b 29 27 24 addi r25,r9,10020 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15784: 83 a9 27 24 lwz r29,10020(r9) while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc15788: 48 00 00 60 b ffc157e8 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc1578c: 7f e3 fb 78 mr r3,r31 ffc15790: 7f c4 f3 78 mr r4,r30 ffc15794: 38 a0 00 00 li r5,0 ffc15798: 4b ff f4 05 bl ffc14b9c assert( block_ptr ); ffc1579c: 2c 03 00 00 cmpwi r3,0 ffc157a0: 40 a2 00 28 bne+ ffc157c8 <== ALWAYS TAKEN ffc157a4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc157a8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc157ac: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc157b0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc157b4: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc157b8: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc157bc: 38 c6 38 4a addi r6,r6,14410 <== NOT EXECUTED ffc157c0: 38 80 03 30 li r4,816 <== NOT EXECUTED ffc157c4: 4b ff fe 78 b ffc1563c <== 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 ); ffc157c8: 80 63 00 00 lwz r3,0(r3) ffc157cc: 7f 84 e3 78 mr r4,r28 ffc157d0: 7f a5 eb 78 mr r5,r29 ffc157d4: 48 00 1e 9d bl ffc17670 src += to_copy; ffc157d8: 7f 9c ea 14 add r28,r28,r29 block++; ffc157dc: 3b de 00 01 addi r30,r30,1 my_length -= to_copy; ffc157e0: 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( ffc157e4: 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 ) { ffc157e8: 80 19 00 00 lwz r0,0(r25) ffc157ec: 7f 9b 00 40 cmplw cr7,r27,r0 ffc157f0: 40 9c ff 9c bge+ cr7,ffc1578c */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { ffc157f4: 2f 9b 00 00 cmpwi cr7,r27,0 ffc157f8: 41 9e 00 54 beq- cr7,ffc1584c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc157fc: 7f c4 f3 78 mr r4,r30 ffc15800: 7f e3 fb 78 mr r3,r31 ffc15804: 38 a0 00 00 li r5,0 ffc15808: 4b ff f3 95 bl ffc14b9c assert( block_ptr ); ffc1580c: 2c 03 00 00 cmpwi r3,0 ffc15810: 40 a2 00 28 bne+ ffc15838 <== ALWAYS TAKEN ffc15814: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15818: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1581c: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc15820: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15824: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc15828: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc1582c: 38 c6 38 4a addi r6,r6,14410 <== NOT EXECUTED ffc15830: 38 80 03 46 li r4,838 <== NOT EXECUTED ffc15834: 4b ff fe 08 b ffc1563c <== 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 ); ffc15838: 80 63 00 00 lwz r3,0(r3) ffc1583c: 7f 84 e3 78 mr r4,r28 ffc15840: 7f 65 db 78 mr r5,r27 ffc15844: 48 00 1e 2d bl ffc17670 my_length = 0; copied += to_copy; ffc15848: 7f 5a da 14 add r26,r26,r27 } IMFS_mtime_ctime_update( the_jnode ); ffc1584c: 38 61 00 08 addi r3,r1,8 ffc15850: 38 80 00 00 li r4,0 ffc15854: 4b ff 03 29 bl ffc05b7c ffc15858: 80 01 00 08 lwz r0,8(r1) ffc1585c: 90 1f 00 48 stw r0,72(r31) ffc15860: 90 1f 00 44 stw r0,68(r31) return copied; } ffc15864: 80 01 00 3c lwz r0,60(r1) ffc15868: 7f 43 d3 78 mr r3,r26 ffc1586c: 83 01 00 18 lwz r24,24(r1) ffc15870: 7c 08 03 a6 mtlr r0 ffc15874: 83 21 00 1c lwz r25,28(r1) ffc15878: 83 41 00 20 lwz r26,32(r1) ffc1587c: 83 61 00 24 lwz r27,36(r1) ffc15880: 83 81 00 28 lwz r28,40(r1) ffc15884: 83 a1 00 2c lwz r29,44(r1) ffc15888: 83 c1 00 30 lwz r30,48(r1) ffc1588c: 83 e1 00 34 lwz r31,52(r1) ffc15890: 38 21 00 38 addi r1,r1,56 ffc15894: 4e 80 00 20 blr ffc0cc9c : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0cc9c: 94 21 ff 90 stwu r1,-112(r1) ffc0cca0: 7c 08 02 a6 mflr r0 ffc0cca4: 93 61 00 5c stw r27,92(r1) ffc0cca8: 7c fb 3b 78 mr r27,r7 ffc0ccac: 90 01 00 74 stw r0,116(r1) ffc0ccb0: 93 81 00 60 stw r28,96(r1) ffc0ccb4: 7c 7c 1b 78 mr r28,r3 ffc0ccb8: 93 a1 00 64 stw r29,100(r1) ffc0ccbc: 7c bd 2b 78 mr r29,r5 ffc0ccc0: 93 c1 00 68 stw r30,104(r1) ffc0ccc4: 7c de 33 78 mr r30,r6 ffc0ccc8: 93 e1 00 6c stw r31,108(r1) ffc0cccc: 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 ); ffc0ccd0: 48 00 4c 15 bl ffc118e4 ffc0ccd4: 38 a1 00 28 addi r5,r1,40 ffc0ccd8: 7c 64 1b 78 mr r4,r3 ffc0ccdc: 38 c1 00 08 addi r6,r1,8 ffc0cce0: 7f 83 e3 78 mr r3,r28 ffc0cce4: 4b ff fd a1 bl ffc0ca84 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) ffc0cce8: 57 e0 04 26 rlwinm r0,r31,0,16,19 ffc0ccec: 2f 80 40 00 cmpwi cr7,r0,16384 ffc0ccf0: 41 9e 00 50 beq- cr7,ffc0cd40 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) ffc0ccf4: 39 20 00 00 li r9,0 ffc0ccf8: 61 29 80 00 ori r9,r9,32768 ffc0ccfc: 7f 80 48 00 cmpw cr7,r0,r9 ffc0cd00: 38 80 00 05 li r4,5 ffc0cd04: 41 9e 00 40 beq- cr7,ffc0cd44 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { ffc0cd08: 2f 80 60 00 cmpwi cr7,r0,24576 ffc0cd0c: 41 9e 00 0c beq- cr7,ffc0cd18 ffc0cd10: 2f 80 20 00 cmpwi cr7,r0,8192 ffc0cd14: 40 be 00 14 bne+ cr7,ffc0cd28 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); ffc0cd18: 93 a1 00 10 stw r29,16(r1) ffc0cd1c: 38 80 00 02 li r4,2 ffc0cd20: 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) ) { ffc0cd24: 48 00 00 20 b ffc0cd44 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) ffc0cd28: 2f 80 10 00 cmpwi cr7,r0,4096 ffc0cd2c: 38 80 00 07 li r4,7 ffc0cd30: 41 be 00 14 beq+ cr7,ffc0cd44 <== ALWAYS TAKEN type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); ffc0cd34: 48 00 38 b5 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0cd38: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0cd3c: 48 00 00 30 b ffc0cd6c <== NOT EXECUTED ffc0cd40: 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( ffc0cd44: 7f 63 db 78 mr r3,r27 ffc0cd48: 7f e6 fb 78 mr r6,r31 ffc0cd4c: 38 a1 00 28 addi r5,r1,40 ffc0cd50: 38 e1 00 10 addi r7,r1,16 ffc0cd54: 48 00 27 09 bl ffc0f45c new_name, mode, &info ); if ( !new_node ) ffc0cd58: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cd5c: 38 60 00 00 li r3,0 ffc0cd60: 40 be 00 14 bne+ cr7,ffc0cd74 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc0cd64: 48 00 38 85 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0cd68: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0cd6c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cd70: 38 60 ff ff li r3,-1 <== NOT EXECUTED return 0; } ffc0cd74: 80 01 00 74 lwz r0,116(r1) ffc0cd78: 83 61 00 5c lwz r27,92(r1) ffc0cd7c: 7c 08 03 a6 mtlr r0 ffc0cd80: 83 81 00 60 lwz r28,96(r1) ffc0cd84: 83 a1 00 64 lwz r29,100(r1) ffc0cd88: 83 c1 00 68 lwz r30,104(r1) ffc0cd8c: 83 e1 00 6c lwz r31,108(r1) ffc0cd90: 38 21 00 70 addi r1,r1,112 ffc0cd94: 4e 80 00 20 blr ffc050ac : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc050ac: 7c 08 02 a6 mflr r0 ffc050b0: 94 21 ff f8 stwu r1,-8(r1) ffc050b4: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc050b8: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc050bc: 80 09 00 4c lwz r0,76(r9) ffc050c0: 2f 80 00 01 cmpwi cr7,r0,1 ffc050c4: 41 be 00 18 beq+ cr7,ffc050dc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc050c8: 48 01 19 c1 bl ffc16a88 <__errno> <== NOT EXECUTED ffc050cc: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc050d0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc050d4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc050d8: 48 00 00 0c b ffc050e4 <== 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; ffc050dc: 90 69 00 5c stw r3,92(r9) ffc050e0: 38 60 00 00 li r3,0 return 0; } ffc050e4: 80 01 00 0c lwz r0,12(r1) ffc050e8: 38 21 00 08 addi r1,r1,8 ffc050ec: 7c 08 03 a6 mtlr r0 ffc050f0: 4e 80 00 20 blr ffc069dc : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc069dc: 94 21 ff f0 stwu r1,-16(r1) ffc069e0: 7c 08 02 a6 mflr r0 ffc069e4: 93 e1 00 0c stw r31,12(r1) assert( the_jnode ); ffc069e8: 7c 7f 1b 79 mr. r31,r3 */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc069ec: 90 01 00 14 stw r0,20(r1) ffc069f0: 93 c1 00 08 stw r30,8(r1) assert( the_jnode ); ffc069f4: 40 a2 00 24 bne+ ffc06a18 <== ALWAYS TAKEN ffc069f8: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc069fc: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06a00: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06a04: 38 63 80 b0 addi r3,r3,-32592 <== NOT EXECUTED ffc06a08: 38 a5 80 88 addi r5,r5,-32632 <== NOT EXECUTED ffc06a0c: 38 c6 80 f9 addi r6,r6,-32519 <== NOT EXECUTED ffc06a10: 38 80 00 38 li r4,56 <== NOT EXECUTED ffc06a14: 48 00 00 e8 b ffc06afc <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); ffc06a18: 3f c0 00 00 lis r30,0 ffc06a1c: 81 3e 27 0c lwz r9,9996(r30) ffc06a20: 38 7f 00 0c addi r3,r31,12 ffc06a24: 80 89 00 08 lwz r4,8(r9) ffc06a28: 48 01 0b 79 bl ffc175a0 switch( the_jnode->type ) { ffc06a2c: 80 bf 00 4c lwz r5,76(r31) ffc06a30: 38 05 ff ff addi r0,r5,-1 ffc06a34: 2b 80 00 06 cmplwi cr7,r0,6 ffc06a38: 41 9d 01 30 bgt- cr7,ffc06b68 <== NEVER TAKEN ffc06a3c: 3d 20 ff c3 lis r9,-61 ffc06a40: 39 29 80 6c addi r9,r9,-32660 ffc06a44: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc06a48: 7c 09 00 2e lwzx r0,r9,r0 ffc06a4c: 7d 20 4a 14 add r9,r0,r9 ffc06a50: 7d 29 03 a6 mtctr r9 ffc06a54: 4e 80 04 20 bctr case IMFS_DIRECTORY: fprintf(stdout, "/" ); ffc06a58: 81 3e 27 0c lwz r9,9996(r30) ffc06a5c: 38 60 00 2f li r3,47 ffc06a60: 80 89 00 08 lwz r4,8(r9) ffc06a64: 48 01 09 d1 bl ffc17434 break; ffc06a68: 48 00 01 38 b ffc06ba0 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", ffc06a6c: 81 3e 27 0c lwz r9,9996(r30) ffc06a70: 3c 80 ff c3 lis r4,-61 ffc06a74: 80 df 00 54 lwz r6,84(r31) ffc06a78: 38 84 81 03 addi r4,r4,-32509 ffc06a7c: 80 69 00 08 lwz r3,8(r9) ffc06a80: 80 bf 00 50 lwz r5,80(r31) ffc06a84: 48 00 00 1c b ffc06aa0 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", ffc06a88: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc06a8c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc06a90: 80 df 00 58 lwz r6,88(r31) <== NOT EXECUTED ffc06a94: 38 84 81 16 addi r4,r4,-32490 <== NOT EXECUTED ffc06a98: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc06a9c: 80 bf 00 54 lwz r5,84(r31) <== NOT EXECUTED ffc06aa0: 4c c6 31 82 crclr 4*cr1+eq ffc06aa4: 48 01 08 81 bl ffc17324 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; ffc06aa8: 48 00 00 f8 b ffc06ba0 the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", ffc06aac: 81 3e 27 0c lwz r9,9996(r30) ffc06ab0: 3c 80 ff c3 lis r4,-61 ffc06ab4: 80 bf 00 54 lwz r5,84(r31) ffc06ab8: 38 84 81 25 addi r4,r4,-32475 ffc06abc: 80 69 00 08 lwz r3,8(r9) ffc06ac0: 4c c6 31 82 crclr 4*cr1+eq ffc06ac4: 48 01 08 61 bl ffc17324 (uint32_t)the_jnode->info.file.size ); #endif break; ffc06ac8: 48 00 00 d8 b ffc06ba0 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); ffc06acc: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc06ad0: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06ad4: 38 63 81 31 addi r3,r3,-32463 <== NOT EXECUTED ffc06ad8: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc06adc: 48 01 0a c5 bl ffc175a0 <== NOT EXECUTED assert(0); ffc06ae0: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06ae4: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06ae8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc06aec: 38 63 80 b0 addi r3,r3,-32592 <== NOT EXECUTED ffc06af0: 38 a5 80 88 addi r5,r5,-32632 <== NOT EXECUTED ffc06af4: 38 c6 6c ad addi r6,r6,27821 <== NOT EXECUTED ffc06af8: 38 80 00 5d li r4,93 <== NOT EXECUTED ffc06afc: 48 00 0b b1 bl ffc076ac <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); ffc06b00: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc06b04: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06b08: 38 63 81 31 addi r3,r3,-32463 <== NOT EXECUTED ffc06b0c: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc06b10: 48 01 0a 91 bl ffc175a0 <== NOT EXECUTED assert(0); ffc06b14: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06b18: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06b1c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc06b20: 38 63 80 b0 addi r3,r3,-32592 <== NOT EXECUTED ffc06b24: 38 a5 80 88 addi r5,r5,-32632 <== NOT EXECUTED ffc06b28: 38 c6 6c ad addi r6,r6,27821 <== NOT EXECUTED ffc06b2c: 38 80 00 62 li r4,98 <== NOT EXECUTED ffc06b30: 4b ff ff cc b ffc06afc <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); ffc06b34: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc06b38: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06b3c: 38 63 81 45 addi r3,r3,-32443 <== NOT EXECUTED ffc06b40: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc06b44: 48 01 0a 5d bl ffc175a0 <== NOT EXECUTED assert(0); ffc06b48: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06b4c: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06b50: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc06b54: 38 63 80 b0 addi r3,r3,-32592 <== NOT EXECUTED ffc06b58: 38 a5 80 88 addi r5,r5,-32632 <== NOT EXECUTED ffc06b5c: 38 c6 6c ad addi r6,r6,27821 <== NOT EXECUTED ffc06b60: 38 80 00 67 li r4,103 <== NOT EXECUTED ffc06b64: 4b ff ff 98 b ffc06afc <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); ffc06b68: 81 3e 27 0c lwz r9,9996(r30) <== NOT EXECUTED ffc06b6c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc06b70: 38 84 81 58 addi r4,r4,-32424 <== NOT EXECUTED ffc06b74: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc06b78: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06b7c: 48 01 07 a9 bl ffc17324 <== NOT EXECUTED assert(0); ffc06b80: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06b84: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06b88: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc06b8c: 38 63 80 b0 addi r3,r3,-32592 <== NOT EXECUTED ffc06b90: 38 a5 80 88 addi r5,r5,-32632 <== NOT EXECUTED ffc06b94: 38 c6 6c ad addi r6,r6,27821 <== NOT EXECUTED ffc06b98: 38 80 00 6c li r4,108 <== NOT EXECUTED ffc06b9c: 4b ff ff 60 b ffc06afc <== NOT EXECUTED break; } puts(""); ffc06ba0: 3c 60 ff c3 lis r3,-61 ffc06ba4: 38 63 84 12 addi r3,r3,-31726 ffc06ba8: 48 01 29 b5 bl ffc1955c } ffc06bac: 80 01 00 14 lwz r0,20(r1) ffc06bb0: 83 c1 00 08 lwz r30,8(r1) ffc06bb4: 7c 08 03 a6 mtlr r0 ffc06bb8: 83 e1 00 0c lwz r31,12(r1) ffc06bbc: 38 21 00 10 addi r1,r1,16 ffc06bc0: 4e 80 00 20 blr ffc05100 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { ffc05100: 7c 08 02 a6 mflr r0 ffc05104: 94 21 ff f8 stwu r1,-8(r1) ffc05108: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; int i; node = loc->node_access; ffc0510c: 81 23 00 00 lwz r9,0(r3) if ( node->type != IMFS_SYM_LINK ) ffc05110: 80 09 00 4c lwz r0,76(r9) ffc05114: 2f 80 00 04 cmpwi cr7,r0,4 ffc05118: 40 9e 00 1c bne- cr7,ffc05134 <== NEVER TAKEN ffc0511c: 2f 85 00 00 cmpwi cr7,r5,0 ffc05120: 38 60 00 00 li r3,0 ffc05124: 38 a5 00 01 addi r5,r5,1 ffc05128: 40 be 00 28 bne+ cr7,ffc05150 <== ALWAYS TAKEN ffc0512c: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05130: 48 00 00 20 b ffc05150 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); ffc05134: 48 01 19 55 bl ffc16a88 <__errno> <== NOT EXECUTED ffc05138: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0513c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05140: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05144: 48 00 00 24 b ffc05168 <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; ffc05148: 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++ ) ffc0514c: 38 63 00 01 addi r3,r3,1 ffc05150: 34 a5 ff ff addic. r5,r5,-1 ffc05154: 41 82 00 14 beq- ffc05168 ffc05158: 81 69 00 50 lwz r11,80(r9) ffc0515c: 7c 0b 18 ae lbzx r0,r11,r3 ffc05160: 2f 80 00 00 cmpwi cr7,r0,0 ffc05164: 40 9e ff e4 bne+ cr7,ffc05148 buf[i] = node->info.sym_link.name[i]; return i; } ffc05168: 80 01 00 0c lwz r0,12(r1) ffc0516c: 38 21 00 08 addi r1,r1,8 ffc05170: 7c 08 03 a6 mtlr r0 ffc05174: 4e 80 00 20 blr ffc05178 : 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 */ ) { ffc05178: 94 21 ff e0 stwu r1,-32(r1) ffc0517c: 7c 08 02 a6 mflr r0 ffc05180: 90 01 00 24 stw r0,36(r1) ffc05184: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; ffc05188: 83 e4 00 00 lwz r31,0(r4) strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); ffc0518c: 7c c4 33 78 mr r4,r6 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 */ ) { ffc05190: 93 c1 00 18 stw r30,24(r1) ffc05194: 7c be 2b 78 mr r30,r5 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 ); ffc05198: 38 7f 00 0c addi r3,r31,12 ffc0519c: 38 a0 00 20 li r5,32 ffc051a0: 48 01 2c 45 bl ffc17de4 if ( the_jnode->Parent != NULL ) ffc051a4: 80 1f 00 08 lwz r0,8(r31) ffc051a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc051ac: 41 9e 00 0c beq- cr7,ffc051b8 <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc051b0: 7f e3 fb 78 mr r3,r31 ffc051b4: 48 00 57 75 bl ffc0a928 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; ffc051b8: 80 7e 00 00 lwz r3,0(r30) RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); ffc051bc: 7f e4 fb 78 mr r4,r31 the_jnode->Parent = new_parent; ffc051c0: 90 7f 00 08 stw r3,8(r31) ffc051c4: 38 63 00 50 addi r3,r3,80 ffc051c8: 48 00 57 31 bl ffc0a8f8 <_Chain_Append> rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); ffc051cc: 38 61 00 08 addi r3,r1,8 ffc051d0: 38 80 00 00 li r4,0 ffc051d4: 48 00 09 a9 bl ffc05b7c ffc051d8: 80 01 00 08 lwz r0,8(r1) return 0; } ffc051dc: 38 60 00 00 li r3,0 ffc051e0: 83 c1 00 18 lwz r30,24(r1) rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); ffc051e4: 90 1f 00 48 stw r0,72(r31) return 0; } ffc051e8: 80 01 00 24 lwz r0,36(r1) ffc051ec: 83 e1 00 1c lwz r31,28(r1) ffc051f0: 38 21 00 20 addi r1,r1,32 ffc051f4: 7c 08 03 a6 mtlr r0 ffc051f8: 4e 80 00 20 blr ffc0cda4 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc0cda4: 94 21 ff e0 stwu r1,-32(r1) ffc0cda8: 7c 08 02 a6 mflr r0 ffc0cdac: 90 01 00 24 stw r0,36(r1) ffc0cdb0: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc0cdb4: 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 */ ) { ffc0cdb8: 93 c1 00 18 stw r30,24(r1) ffc0cdbc: 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 ) { ffc0cdc0: 80 1f 00 08 lwz r0,8(r31) ffc0cdc4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cdc8: 41 9e 00 14 beq- cr7,ffc0cddc <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0cdcc: 7f e3 fb 78 mr r3,r31 ffc0cdd0: 48 00 0d ed bl ffc0dbbc <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc0cdd4: 38 00 00 00 li r0,0 ffc0cdd8: 90 1f 00 08 stw r0,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0cddc: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc0cde0: 38 80 00 00 li r4,0 ffc0cde4: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0cde8: 38 09 ff ff addi r0,r9,-1 ffc0cdec: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc0cdf0: 48 00 03 d5 bl ffc0d1c4 ffc0cdf4: 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) ) { ffc0cdf8: 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 ); ffc0cdfc: 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) ) { ffc0ce00: 48 00 04 a5 bl ffc0d2a4 ffc0ce04: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ce08: 40 9e 00 50 bne- cr7,ffc0ce58 <== NEVER TAKEN ffc0ce0c: a0 1f 00 34 lhz r0,52(r31) ffc0ce10: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ce14: 40 9e 00 44 bne- cr7,ffc0ce58 <== NEVER TAKEN /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc0ce18: 3d 20 00 00 lis r9,0 ffc0ce1c: 81 7e 00 00 lwz r11,0(r30) ffc0ce20: 81 29 26 9c lwz r9,9884(r9) ffc0ce24: 81 49 00 04 lwz r10,4(r9) ffc0ce28: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0ce2c: 40 be 00 08 bne+ cr7,ffc0ce34 <== ALWAYS TAKEN rtems_filesystem_current.node_access = NULL; ffc0ce30: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { ffc0ce34: 80 1f 00 4c lwz r0,76(r31) ffc0ce38: 2f 80 00 04 cmpwi cr7,r0,4 ffc0ce3c: 40 be 00 14 bne+ cr7,ffc0ce50 if ( the_jnode->info.sym_link.name ) ffc0ce40: 80 7f 00 50 lwz r3,80(r31) ffc0ce44: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ce48: 41 9e 00 08 beq- cr7,ffc0ce50 <== NEVER TAKEN free( (void*) the_jnode->info.sym_link.name ); ffc0ce4c: 4b ff 73 f9 bl ffc04244 } free( the_jnode ); ffc0ce50: 7f e3 fb 78 mr r3,r31 ffc0ce54: 4b ff 73 f1 bl ffc04244 } return 0; } ffc0ce58: 80 01 00 24 lwz r0,36(r1) ffc0ce5c: 38 60 00 00 li r3,0 ffc0ce60: 83 c1 00 18 lwz r30,24(r1) ffc0ce64: 7c 08 03 a6 mtlr r0 ffc0ce68: 83 e1 00 1c lwz r31,28(r1) ffc0ce6c: 38 21 00 20 addi r1,r1,32 ffc0ce70: 4e 80 00 20 blr ffc0ce74 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { ffc0ce74: 7c 08 02 a6 mflr r0 ffc0ce78: 94 21 ff f8 stwu r1,-8(r1) ffc0ce7c: 7c 6b 1b 78 mr r11,r3 ffc0ce80: 90 01 00 0c stw r0,12(r1) IMFS_fs_info_t *fs_info; IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; ffc0ce84: 81 23 00 00 lwz r9,0(r3) switch ( the_jnode->type ) { ffc0ce88: 81 49 00 4c lwz r10,76(r9) ffc0ce8c: 38 0a ff fe addi r0,r10,-2 ffc0ce90: 2b 80 00 05 cmplwi cr7,r0,5 ffc0ce94: 41 9d 00 54 bgt- cr7,ffc0cee8 <== NEVER TAKEN ffc0ce98: 3d 40 ff c2 lis r10,-62 ffc0ce9c: 39 4a ca e0 addi r10,r10,-13600 ffc0cea0: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0cea4: 7c 0a 00 2e lwzx r0,r10,r0 ffc0cea8: 7d 40 52 14 add r10,r0,r10 ffc0ceac: 7d 49 03 a6 mtctr r10 ffc0ceb0: 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 ); ffc0ceb4: 81 49 00 54 lwz r10,84(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc0ceb8: 80 09 00 50 lwz r0,80(r9) ffc0cebc: 91 44 00 1c stw r10,28(r4) ffc0cec0: 90 04 00 18 stw r0,24(r4) break; ffc0cec4: 48 00 00 38 b ffc0cefc case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; ffc0cec8: 80 e9 00 50 lwz r7,80(r9) ffc0cecc: 81 09 00 54 lwz r8,84(r9) ffc0ced0: 48 00 00 0c b ffc0cedc case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; ffc0ced4: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc0ced8: 39 00 00 00 li r8,0 <== NOT EXECUTED ffc0cedc: 90 e4 00 20 stw r7,32(r4) ffc0cee0: 91 04 00 24 stw r8,36(r4) break; ffc0cee4: 48 00 00 18 b ffc0cefc default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0cee8: 48 00 37 01 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0ceec: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0cef0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cef4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0cef8: 48 00 00 64 b ffc0cf5c <== NOT EXECUTED */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; ffc0cefc: 80 09 00 30 lwz r0,48(r9) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0cf00: 38 60 00 00 li r3,0 fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc0cf04: a1 49 00 34 lhz r10,52(r9) */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; ffc0cf08: 90 04 00 0c stw r0,12(r4) buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; ffc0cf0c: 80 09 00 38 lwz r0,56(r9) fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc0cf10: b1 44 00 10 sth r10,16(r4) buf->st_ino = the_jnode->st_ino; ffc0cf14: 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; ffc0cf18: 80 09 00 40 lwz r0,64(r9) rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; ffc0cf1c: a1 49 00 3c lhz r10,60(r9) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; ffc0cf20: 90 04 00 28 stw r0,40(r4) * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); ffc0cf24: 81 6b 00 10 lwz r11,16(r11) buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc0cf28: 80 09 00 44 lwz r0,68(r9) rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; ffc0cf2c: b1 44 00 12 sth r10,18(r4) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc0cf30: 90 04 00 30 stw r0,48(r4) * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); ffc0cf34: 81 6b 00 34 lwz r11,52(r11) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0cf38: 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; ffc0cf3c: a0 09 00 3e lhz r0,62(r9) /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = ffc0cf40: 39 20 00 00 li r9,0 rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance ); ffc0cf44: 81 6b 00 00 lwz r11,0(r11) /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = ffc0cf48: 61 29 ff fe ori r9,r9,65534 buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0cf4c: 91 44 00 38 stw r10,56(r4) /* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev = ffc0cf50: 91 24 00 00 stw r9,0(r4) ffc0cf54: 91 64 00 04 stw r11,4(r4) buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; ffc0cf58: 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; } ffc0cf5c: 80 01 00 0c lwz r0,12(r1) ffc0cf60: 38 21 00 08 addi r1,r1,8 ffc0cf64: 7c 08 03 a6 mtlr r0 ffc0cf68: 4e 80 00 20 blr ffc051fc : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { ffc051fc: 94 21 ff 98 stwu r1,-104(r1) ffc05200: 7c 08 02 a6 mflr r0 ffc05204: 93 c1 00 60 stw r30,96(r1) ffc05208: 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 ); ffc0520c: 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 ) { ffc05210: 90 01 00 6c stw r0,108(r1) ffc05214: 93 81 00 58 stw r28,88(r1) ffc05218: 7c bc 2b 78 mr r28,r5 ffc0521c: 93 a1 00 5c stw r29,92(r1) ffc05220: 7c 9d 23 78 mr r29,r4 ffc05224: 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 ); ffc05228: 48 01 2b 21 bl ffc17d48 ffc0522c: 3b e1 00 28 addi r31,r1,40 ffc05230: 7c 64 1b 78 mr r4,r3 ffc05234: 7f e5 fb 78 mr r5,r31 ffc05238: 38 c1 00 08 addi r6,r1,8 ffc0523c: 7f 83 e3 78 mr r3,r28 ffc05240: 48 00 d7 8d bl ffc129cc /* * Duplicate link name */ info.sym_link.name = strdup(link_name); ffc05244: 7f a3 eb 78 mr r3,r29 ffc05248: 48 01 2a 69 bl ffc17cb0 if (info.sym_link.name == NULL) { ffc0524c: 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); ffc05250: 90 61 00 10 stw r3,16(r1) if (info.sym_link.name == NULL) { ffc05254: 41 9e 00 34 beq- cr7,ffc05288 <== NEVER TAKEN * 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( ffc05258: 38 c0 00 00 li r6,0 ffc0525c: 7f c3 f3 78 mr r3,r30 ffc05260: 7f e5 fb 78 mr r5,r31 ffc05264: 60 c6 a1 ff ori r6,r6,41471 ffc05268: 38 80 00 04 li r4,4 ffc0526c: 38 e1 00 10 addi r7,r1,16 ffc05270: 48 00 c8 55 bl ffc11ac4 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { ffc05274: 2f 83 00 00 cmpwi cr7,r3,0 ffc05278: 38 60 00 00 li r3,0 ffc0527c: 40 be 00 1c bne+ cr7,ffc05298 <== ALWAYS TAKEN free(info.sym_link.name); ffc05280: 80 61 00 10 lwz r3,16(r1) <== NOT EXECUTED ffc05284: 48 00 08 31 bl ffc05ab4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc05288: 48 01 18 01 bl ffc16a88 <__errno> <== NOT EXECUTED ffc0528c: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc05290: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05294: 38 60 ff ff li r3,-1 <== NOT EXECUTED } return 0; } ffc05298: 80 01 00 6c lwz r0,108(r1) ffc0529c: 83 81 00 58 lwz r28,88(r1) ffc052a0: 7c 08 03 a6 mtlr r0 ffc052a4: 83 a1 00 5c lwz r29,92(r1) ffc052a8: 83 c1 00 60 lwz r30,96(r1) ffc052ac: 83 e1 00 64 lwz r31,100(r1) ffc052b0: 38 21 00 68 addi r1,r1,104 ffc052b4: 4e 80 00 20 blr ffc052b8 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { ffc052b8: 94 21 ff c8 stwu r1,-56(r1) ffc052bc: 7c 08 02 a6 mflr r0 ffc052c0: 90 01 00 3c stw r0,60(r1) ffc052c4: 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; ffc052c8: 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 */ ) { ffc052cc: 93 a1 00 2c stw r29,44(r1) ffc052d0: 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 ) { ffc052d4: 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 */ ) { ffc052d8: 93 e1 00 34 stw r31,52(r1) ffc052dc: 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 ) { ffc052e0: 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 */ ) { ffc052e4: 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 ) { ffc052e8: 40 9e 00 ac bne- cr7,ffc05394 if ( !node->info.hard_link.link_node ) ffc052ec: 80 1e 00 50 lwz r0,80(r30) ffc052f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc052f4: 40 be 00 18 bne+ cr7,ffc0530c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc052f8: 48 01 17 91 bl ffc16a88 <__errno> <== NOT EXECUTED ffc052fc: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05300: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05304: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05308: 48 00 00 a4 b ffc053ac <== NOT EXECUTED the_link = *loc; the_link.node_access = node->info.hard_link.link_node; ffc0530c: 7c 3c 0b 78 mr r28,r1 ffc05310: 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; ffc05314: 81 64 00 08 lwz r11,8(r4) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc05318: 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; ffc0531c: 81 24 00 0c lwz r9,12(r4) ffc05320: 81 44 00 04 lwz r10,4(r4) ffc05324: 80 04 00 10 lwz r0,16(r4) ffc05328: 91 61 00 18 stw r11,24(r1) ffc0532c: 91 21 00 1c stw r9,28(r1) ffc05330: 91 41 00 14 stw r10,20(r1) ffc05334: 90 01 00 20 stw r0,32(r1) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc05338: 48 00 c8 f5 bl ffc11c2c /* * 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) ffc0533c: 81 3e 00 50 lwz r9,80(r30) ffc05340: a1 69 00 34 lhz r11,52(r9) ffc05344: 2f 8b 00 01 cmpwi cr7,r11,1 ffc05348: 40 be 00 2c bne+ cr7,ffc05374 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); ffc0534c: 81 21 00 18 lwz r9,24(r1) ffc05350: 7f 84 e3 78 mr r4,r28 ffc05354: 7f a3 eb 78 mr r3,r29 ffc05358: 80 09 00 34 lwz r0,52(r9) ffc0535c: 7c 09 03 a6 mtctr r0 ffc05360: 4e 80 04 21 bctrl if ( result != 0 ) ffc05364: 2f 83 00 00 cmpwi cr7,r3,0 ffc05368: 38 60 ff ff li r3,-1 ffc0536c: 41 be 00 28 beq+ cr7,ffc05394 ffc05370: 48 00 00 3c b ffc053ac return -1; } else { node->info.hard_link.link_node->st_nlink --; ffc05374: 39 6b ff ff addi r11,r11,-1 ffc05378: b1 69 00 34 sth r11,52(r9) IMFS_update_ctime( node->info.hard_link.link_node ); ffc0537c: 38 61 00 08 addi r3,r1,8 ffc05380: 38 80 00 00 li r4,0 ffc05384: 48 00 07 f9 bl ffc05b7c ffc05388: 81 3e 00 50 lwz r9,80(r30) ffc0538c: 80 01 00 08 lwz r0,8(r1) ffc05390: 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 ); ffc05394: 81 3f 00 08 lwz r9,8(r31) ffc05398: 7f a3 eb 78 mr r3,r29 ffc0539c: 7f e4 fb 78 mr r4,r31 ffc053a0: 80 09 00 34 lwz r0,52(r9) ffc053a4: 7c 09 03 a6 mtctr r0 ffc053a8: 4e 80 04 21 bctrl return result; } ffc053ac: 80 01 00 3c lwz r0,60(r1) ffc053b0: 83 81 00 28 lwz r28,40(r1) ffc053b4: 7c 08 03 a6 mtlr r0 ffc053b8: 83 a1 00 2c lwz r29,44(r1) ffc053bc: 83 c1 00 30 lwz r30,48(r1) ffc053c0: 83 e1 00 34 lwz r31,52(r1) ffc053c4: 38 21 00 38 addi r1,r1,56 ffc053c8: 4e 80 00 20 blr ffc053cc : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc053cc: 7c 08 02 a6 mflr r0 ffc053d0: 94 21 ff f8 stwu r1,-8(r1) ffc053d4: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc053d8: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc053dc: 80 09 00 4c lwz r0,76(r9) ffc053e0: 2f 80 00 01 cmpwi cr7,r0,1 ffc053e4: 41 be 00 10 beq+ cr7,ffc053f4 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc053e8: 48 01 16 a1 bl ffc16a88 <__errno> <== NOT EXECUTED ffc053ec: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc053f0: 48 00 00 18 b ffc05408 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) ffc053f4: 80 09 00 5c lwz r0,92(r9) ffc053f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc053fc: 40 be 00 18 bne+ cr7,ffc05414 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ ffc05400: 48 01 16 89 bl ffc16a88 <__errno> <== NOT EXECUTED ffc05404: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05408: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0540c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05410: 48 00 00 10 b ffc05420 <== 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; ffc05414: 38 00 00 00 li r0,0 ffc05418: 90 09 00 5c stw r0,92(r9) ffc0541c: 38 60 00 00 li r3,0 return 0; } ffc05420: 80 01 00 0c lwz r0,12(r1) ffc05424: 38 21 00 08 addi r1,r1,8 ffc05428: 7c 08 03 a6 mtlr r0 ffc0542c: 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 <== ALWAYS TAKEN (*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 <== ALWAYS TAKEN 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 9d bl ffc112d0 * 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 9d bl ffc08ff8 <_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 <== ALWAYS TAKEN rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); ffc04568: 38 60 00 1a li r3,26 <== NOT EXECUTED ffc0456c: 48 00 40 69 bl ffc085d4 <== 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 21 bl ffc09da0 <_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 ffc039a4 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { ffc039a4: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc039a8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc039ac: 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 ) ffc039b0: 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 ) { ffc039b4: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc039b8: 93 21 00 1c stw r25,28(r1) <== NOT EXECUTED ffc039bc: 93 61 00 24 stw r27,36(r1) <== NOT EXECUTED ffc039c0: 93 81 00 28 stw r28,40(r1) <== NOT EXECUTED ffc039c4: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc039c8: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc039cc: 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 ) ffc039d0: 41 82 01 6c beq- ffc03b3c <== NOT EXECUTED return; if ( !print_handler ) ffc039d4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc039d8: 83 a9 28 10 lwz r29,10256(r9) <== NOT EXECUTED ffc039dc: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc039e0: 41 9e 01 5c beq- cr7,ffc03b3c <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { ffc039e4: 2f 9a ff ff cmpwi cr7,r26,-1 <== NOT EXECUTED ffc039e8: 40 be 00 24 bne+ cr7,ffc03a0c <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { ffc039ec: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc039f0: 3b ff 27 04 addi r31,r31,9988 <== NOT EXECUTED ffc039f4: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc039f8: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc039fc: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc03a00: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03a04: 40 be 00 10 bne+ cr7,ffc03a14 <== NOT EXECUTED ffc03a08: 48 00 01 34 b ffc03b3c <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); ffc03a0c: 83 7a 00 d8 lwz r27,216(r26) <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; ffc03a10: 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); ffc03a14: 83 3f 00 04 lwz r25,4(r31) <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc03a18: 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); ffc03a1c: 3b 39 00 80 addi r25,r25,128 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc03a20: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); ffc03a24: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc03a28: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc03a2c: 4b ff ff 41 bl ffc0396c <== NOT EXECUTED if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { ffc03a30: 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 ) ffc03a34: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED ffc03a38: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED ffc03a3c: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc03a40: 7f d9 e2 14 add r30,r25,r28 <== NOT EXECUTED ffc03a44: 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 ) ffc03a48: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED ffc03a4c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc03a50: 7f de 00 38 and r30,r30,r0 <== NOT EXECUTED ffc03a54: 39 29 28 0c addi r9,r9,10252 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { ffc03a58: 41 9e 00 40 beq- cr7,ffc03a98 <== NOT EXECUTED (*print_handler)( ffc03a5c: 83 5a 00 08 lwz r26,8(r26) <== NOT EXECUTED ffc03a60: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc03a64: 83 29 00 08 lwz r25,8(r9) <== NOT EXECUTED ffc03a68: 38 80 00 05 li r4,5 <== NOT EXECUTED ffc03a6c: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc03a70: 48 00 42 d1 bl ffc07d40 <== NOT EXECUTED ffc03a74: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc03a78: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc03a7c: 7f a9 03 a6 mtctr r29 <== NOT EXECUTED ffc03a80: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc03a84: 38 84 c8 c8 addi r4,r4,-14136 <== NOT EXECUTED ffc03a88: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc03a8c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc03a90: 4e 80 04 21 bctrl <== NOT EXECUTED ffc03a94: 48 00 00 20 b ffc03ab4 <== 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 ); ffc03a98: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc03a9c: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc03aa0: 38 84 c8 d5 addi r4,r4,-14123 <== NOT EXECUTED ffc03aa4: 7f a9 03 a6 mtctr r29 <== NOT EXECUTED ffc03aa8: 38 a0 ff ff li r5,-1 <== NOT EXECUTED ffc03aac: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc03ab0: 4e 80 04 21 bctrl <== NOT EXECUTED } (*print_handler)( ffc03ab4: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc03ab8: 80 df 00 00 lwz r6,0(r31) <== NOT EXECUTED ffc03abc: 80 bf 00 04 lwz r5,4(r31) <== NOT EXECUTED ffc03ac0: 3b fd 28 0c addi r31,r29,10252 <== NOT EXECUTED ffc03ac4: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc03ac8: 38 c6 ff ff addi r6,r6,-1 <== NOT EXECUTED ffc03acc: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc03ad0: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc03ad4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03ad8: 38 84 c8 e3 addi r4,r4,-14109 <== NOT EXECUTED ffc03adc: 7c c5 32 14 add r6,r5,r6 <== NOT EXECUTED ffc03ae0: 7f 67 db 78 mr r7,r27 <== NOT EXECUTED ffc03ae4: 7f 88 e3 78 mr r8,r28 <== NOT EXECUTED ffc03ae8: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc03aec: 4e 80 04 21 bctrl <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { ffc03af0: 80 1d 28 0c lwz r0,10252(r29) <== NOT EXECUTED ffc03af4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03af8: 40 be 00 24 bne+ cr7,ffc03b1c <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); ffc03afc: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc03b00: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc03b04: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc03b08: 38 84 c9 01 addi r4,r4,-14079 <== NOT EXECUTED ffc03b0c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03b10: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc03b14: 4e 80 04 21 bctrl <== NOT EXECUTED ffc03b18: 48 00 00 24 b ffc03b3c <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); ffc03b1c: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc03b20: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc03b24: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc03b28: 38 84 c9 0e addi r4,r4,-14066 <== NOT EXECUTED ffc03b2c: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc03b30: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03b34: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc03b38: 4e 80 04 21 bctrl <== NOT EXECUTED } } ffc03b3c: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc03b40: 83 21 00 1c lwz r25,28(r1) <== NOT EXECUTED ffc03b44: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03b48: 83 41 00 20 lwz r26,32(r1) <== NOT EXECUTED ffc03b4c: 83 61 00 24 lwz r27,36(r1) <== NOT EXECUTED ffc03b50: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED ffc03b54: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc03b58: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc03b5c: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc03b60: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc03b64: 4e 80 00 20 blr <== NOT EXECUTED ffc0396c : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; ffc0396c: 38 63 00 80 addi r3,r3,128 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) ffc03970: 54 84 00 3a rlwinm r4,r4,0,0,29 <== NOT EXECUTED if (*base != U32_PATTERN) ffc03974: 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++) ffc03978: 7c 83 22 14 add r4,r3,r4 <== NOT EXECUTED if (*base != U32_PATTERN) ffc0397c: 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++) ffc03980: 48 00 00 14 b ffc03994 <== NOT EXECUTED if (*base != U32_PATTERN) ffc03984: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED ffc03988: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0398c: 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++) ffc03990: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED ffc03994: 7f 83 20 40 cmplw cr7,r3,r4 <== NOT EXECUTED ffc03998: 41 9c ff ec blt+ cr7,ffc03984 <== NOT EXECUTED ffc0399c: 38 60 00 00 li r3,0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } ffc039a0: 4e 80 00 20 blr <== NOT EXECUTED ffc03c10 : * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { ffc03c10: 94 21 ff c8 stwu r1,-56(r1) ffc03c14: 7c 08 02 a6 mflr r0 ffc03c18: 93 a1 00 2c stw r29,44(r1) ffc03c1c: 7c 7d 1b 78 mr r29,r3 Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); char name [32]; printk("BLOWN STACK!!!\n"); ffc03c20: 3c 60 ff c2 lis r3,-62 * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { ffc03c24: 90 01 00 3c stw r0,60(r1) Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); char name [32]; printk("BLOWN STACK!!!\n"); ffc03c28: 38 63 c9 75 addi r3,r3,-13963 * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { ffc03c2c: 93 c1 00 30 stw r30,48(r1) ffc03c30: 7c 9e 23 78 mr r30,r4 ffc03c34: 93 e1 00 34 stw r31,52(r1) Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); ffc03c38: 83 fd 00 cc lwz r31,204(r29) char name [32]; printk("BLOWN STACK!!!\n"); ffc03c3c: 4c c6 31 82 crclr 4*cr1+eq ffc03c40: 48 00 18 2d bl ffc0546c printk("task control block: 0x%08" PRIxPTR "\n", running); ffc03c44: 3c 60 ff c2 lis r3,-62 ffc03c48: 38 63 c9 85 addi r3,r3,-13947 ffc03c4c: 7f a4 eb 78 mr r4,r29 ffc03c50: 4c c6 31 82 crclr 4*cr1+eq ffc03c54: 48 00 18 19 bl ffc0546c printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); ffc03c58: 80 9d 00 08 lwz r4,8(r29) ffc03c5c: 3c 60 ff c2 lis r3,-62 ffc03c60: 38 63 c9 a2 addi r3,r3,-13918 ffc03c64: 4c c6 31 82 crclr 4*cr1+eq ffc03c68: 48 00 18 05 bl ffc0546c printk( ffc03c6c: 80 9d 00 0c lwz r4,12(r29) ffc03c70: 3c 60 ff c2 lis r3,-62 ffc03c74: 38 63 c9 b4 addi r3,r3,-13900 ffc03c78: 4c c6 31 82 crclr 4*cr1+eq ffc03c7c: 48 00 17 f1 bl ffc0546c "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( ffc03c80: 80 7d 00 08 lwz r3,8(r29) ffc03c84: 38 a1 00 08 addi r5,r1,8 ffc03c88: 38 80 00 20 li r4,32 ffc03c8c: 48 00 40 b5 bl ffc07d40 ffc03c90: 7c 64 1b 78 mr r4,r3 ffc03c94: 3c 60 ff c2 lis r3,-62 ffc03c98: 38 63 c9 c8 addi r3,r3,-13880 ffc03c9c: 4c c6 31 82 crclr 4*cr1+eq ffc03ca0: 48 00 17 cd bl ffc0546c "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( ffc03ca4: 80 9d 00 c8 lwz r4,200(r29) ffc03ca8: 80 bd 00 cc lwz r5,204(r29) ffc03cac: 3c 60 ff c2 lis r3,-62 ffc03cb0: 38 63 c9 de addi r3,r3,-13858 ffc03cb4: 7c c5 22 14 add r6,r5,r4 ffc03cb8: 4c c6 31 82 crclr 4*cr1+eq ffc03cbc: 48 00 17 b1 bl ffc0546c "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n", (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { ffc03cc0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc03cc4: 40 be 00 20 bne+ cr7,ffc03ce4 <== NEVER TAKEN printk( ffc03cc8: 3c 60 ff c2 lis r3,-62 ffc03ccc: 38 63 ca 0f addi r3,r3,-13809 ffc03cd0: 38 df 00 88 addi r6,r31,136 ffc03cd4: 38 80 00 80 li r4,128 ffc03cd8: 38 bf 00 08 addi r5,r31,8 ffc03cdc: 4c c6 31 82 crclr 4*cr1+eq ffc03ce0: 48 00 17 8d bl ffc0546c rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); ffc03ce4: 38 60 00 81 li r3,129 ffc03ce8: 48 00 4b 71 bl ffc08858 ffc1a9b4 <_CORE_message_queue_Broadcast>: Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { ffc1a9b4: 94 21 ff e0 stwu r1,-32(r1) ffc1a9b8: 7c 08 02 a6 mflr r0 ffc1a9bc: 90 01 00 24 stw r0,36(r1) Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { ffc1a9c0: 80 03 00 4c lwz r0,76(r3) Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { ffc1a9c4: 93 61 00 0c stw r27,12(r1) ffc1a9c8: 7d 1b 43 78 mr r27,r8 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { ffc1a9cc: 7f 85 00 40 cmplw cr7,r5,r0 Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { ffc1a9d0: 93 a1 00 14 stw r29,20(r1) ffc1a9d4: 7c 9d 23 78 mr r29,r4 ffc1a9d8: 93 c1 00 18 stw r30,24(r1) ffc1a9dc: 7c be 2b 78 mr r30,r5 ffc1a9e0: 93 e1 00 1c stw r31,28(r1) ffc1a9e4: 7c 7f 1b 78 mr r31,r3 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { ffc1a9e8: 38 60 00 01 li r3,1 Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { ffc1a9ec: 93 41 00 08 stw r26,8(r1) ffc1a9f0: 93 81 00 10 stw r28,16(r1) Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { ffc1a9f4: 41 9d 00 54 bgt- cr7,ffc1aa48 <_CORE_message_queue_Broadcast+0x94><== NEVER TAKEN * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { ffc1a9f8: 80 1f 00 48 lwz r0,72(r31) * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { ffc1a9fc: 3b 80 00 00 li r28,0 * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { ffc1aa00: 2f 80 00 00 cmpwi cr7,r0,0 ffc1aa04: 41 be 00 28 beq+ cr7,ffc1aa2c <_CORE_message_queue_Broadcast+0x78> *count = 0; ffc1aa08: 38 00 00 00 li r0,0 ffc1aa0c: 90 08 00 00 stw r0,0(r8) ffc1aa10: 38 60 00 00 li r3,0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; ffc1aa14: 48 00 00 34 b ffc1aa48 <_CORE_message_queue_Broadcast+0x94> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc1aa18: 80 7a 00 2c lwz r3,44(r26) */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; ffc1aa1c: 3b 9c 00 01 addi r28,r28,1 ffc1aa20: 48 00 95 05 bl ffc23f24 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; ffc1aa24: 81 3a 00 28 lwz r9,40(r26) ffc1aa28: 93 c9 00 00 stw r30,0(r9) * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { ffc1aa2c: 7f e3 fb 78 mr r3,r31 ffc1aa30: 48 00 2c c9 bl ffc1d6f8 <_Thread_queue_Dequeue> ffc1aa34: 7f a4 eb 78 mr r4,r29 /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = ffc1aa38: 7c 7a 1b 79 mr. r26,r3 ffc1aa3c: 7f c5 f3 78 mr r5,r30 ffc1aa40: 40 82 ff d8 bne+ ffc1aa18 <_CORE_message_queue_Broadcast+0x64> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; ffc1aa44: 93 9b 00 00 stw r28,0(r27) return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } ffc1aa48: 80 01 00 24 lwz r0,36(r1) ffc1aa4c: 83 41 00 08 lwz r26,8(r1) ffc1aa50: 7c 08 03 a6 mtlr r0 ffc1aa54: 83 61 00 0c lwz r27,12(r1) ffc1aa58: 83 81 00 10 lwz r28,16(r1) ffc1aa5c: 83 a1 00 14 lwz r29,20(r1) ffc1aa60: 83 c1 00 18 lwz r30,24(r1) ffc1aa64: 83 e1 00 1c lwz r31,28(r1) ffc1aa68: 38 21 00 20 addi r1,r1,32 ffc1aa6c: 4e 80 00 20 blr ffc12f50 <_CORE_message_queue_Initialize>: CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) { ffc12f50: 94 21 ff e0 stwu r1,-32(r1) ffc12f54: 7c 08 02 a6 mflr r0 /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { ffc12f58: 7c c9 33 78 mr r9,r6 CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) { ffc12f5c: 90 01 00 24 stw r0,36(r1) /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { ffc12f60: 70 c0 00 03 andi. r0,r6,3 { size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; the_message_queue->number_of_pending_messages = 0; ffc12f64: 38 00 00 00 li r0,0 CORE_message_queue_Control *the_message_queue, CORE_message_queue_Attributes *the_message_queue_attributes, uint32_t maximum_pending_messages, size_t maximum_message_size ) { ffc12f68: 93 c1 00 18 stw r30,24(r1) ffc12f6c: 7c 9e 23 78 mr r30,r4 ffc12f70: 93 e1 00 1c stw r31,28(r1) ffc12f74: 7c 7f 1b 78 mr r31,r3 ffc12f78: 93 a1 00 14 stw r29,20(r1) size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; the_message_queue->number_of_pending_messages = 0; ffc12f7c: 90 03 00 48 stw r0,72(r3) ) { size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; ffc12f80: 90 a3 00 44 stw r5,68(r3) the_message_queue->number_of_pending_messages = 0; the_message_queue->maximum_message_size = maximum_message_size; ffc12f84: 90 c3 00 4c stw r6,76(r3) /* * Round size up to multiple of a pointer for chain init and * check for overflow on adding overhead to each message. */ allocated_message_size = maximum_message_size; if (allocated_message_size & (sizeof(uint32_t) - 1)) { ffc12f88: 41 82 00 14 beq- ffc12f9c <_CORE_message_queue_Initialize+0x4c> allocated_message_size += sizeof(uint32_t); ffc12f8c: 39 26 00 04 addi r9,r6,4 allocated_message_size &= ~(sizeof(uint32_t) - 1); ffc12f90: 55 29 00 3a rlwinm r9,r9,0,0,29 } if (allocated_message_size < maximum_message_size) ffc12f94: 7f 89 30 40 cmplw cr7,r9,r6 ffc12f98: 41 bc 00 7c blt+ cr7,ffc13014 <_CORE_message_queue_Initialize+0xc4><== NEVER TAKEN /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); ffc12f9c: 3b a9 00 10 addi r29,r9,16 /* * Calculate how much total memory is required for message buffering and * check for overflow on the multiplication. */ message_buffering_required = (size_t) maximum_pending_messages * ffc12fa0: 7c 7d 29 d6 mullw r3,r29,r5 (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) ffc12fa4: 7f 83 48 40 cmplw cr7,r3,r9 ffc12fa8: 41 bc 00 6c blt+ cr7,ffc13014 <_CORE_message_queue_Initialize+0xc4><== NEVER TAKEN return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) ffc12fac: 90 a1 00 08 stw r5,8(r1) ffc12fb0: 48 00 35 d1 bl ffc16580 <_Workspace_Allocate> _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) ffc12fb4: 2f 83 00 00 cmpwi cr7,r3,0 return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) ffc12fb8: 7c 64 1b 78 mr r4,r3 ffc12fbc: 90 7f 00 5c stw r3,92(r31) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) ffc12fc0: 80 a1 00 08 lwz r5,8(r1) ffc12fc4: 41 9e 00 50 beq- cr7,ffc13014 <_CORE_message_queue_Initialize+0xc4> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( ffc12fc8: 7f a6 eb 78 mr r6,r29 ffc12fcc: 38 7f 00 60 addi r3,r31,96 ffc12fd0: 48 00 54 5d bl ffc1842c <_Chain_Initialize> allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( ffc12fd4: 80 9e 00 00 lwz r4,0(r30) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc12fd8: 39 3f 00 54 addi r9,r31,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc12fdc: 38 1f 00 50 addi r0,r31,80 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc12fe0: 91 3f 00 50 stw r9,80(r31) ffc12fe4: 68 84 00 01 xori r4,r4,1 the_chain->permanent_null = NULL; ffc12fe8: 39 20 00 00 li r9,0 the_chain->last = _Chain_Head(the_chain); ffc12fec: 90 1f 00 58 stw r0,88(r31) ffc12ff0: 7c 84 00 34 cntlzw r4,r4 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc12ff4: 91 3f 00 54 stw r9,84(r31) ffc12ff8: 7f e3 fb 78 mr r3,r31 ffc12ffc: 54 84 d9 7e rlwinm r4,r4,27,5,31 ffc13000: 38 a0 00 80 li r5,128 ffc13004: 38 c0 00 06 li r6,6 ffc13008: 48 00 26 3d bl ffc15644 <_Thread_queue_Initialize> ffc1300c: 38 60 00 01 li r3,1 THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; ffc13010: 48 00 00 08 b ffc13018 <_CORE_message_queue_Initialize+0xc8> ffc13014: 38 60 00 00 li r3,0 } ffc13018: 80 01 00 24 lwz r0,36(r1) ffc1301c: 83 a1 00 14 lwz r29,20(r1) ffc13020: 7c 08 03 a6 mtlr r0 ffc13024: 83 c1 00 18 lwz r30,24(r1) ffc13028: 83 e1 00 1c lwz r31,28(r1) ffc1302c: 38 21 00 20 addi r1,r1,32 ffc13030: 4e 80 00 20 blr ffc13034 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc13034: 94 21 ff f0 stwu r1,-16(r1) ffc13038: 7c 08 02 a6 mflr r0 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; ffc1303c: 3d 20 00 00 lis r9,0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc13040: 90 01 00 14 stw r0,20(r1) ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; ffc13044: 38 00 00 00 li r0,0 { ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; ffc13048: 81 29 28 2c lwz r9,10284(r9) void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc1304c: 93 e1 00 0c stw r31,12(r1) ffc13050: 7c 7f 1b 78 mr r31,r3 ffc13054: 7c a3 2b 78 mr r3,r5 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; ffc13058: 90 09 00 34 stw r0,52(r9) void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc1305c: 7c 80 23 78 mr r0,r4 ffc13060: 93 c1 00 08 stw r30,8(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc13064: 7d 60 00 a6 mfmsr r11 ffc13068: 7d 50 42 a6 mfsprg r10,0 ffc1306c: 7d 6a 50 78 andc r10,r11,r10 ffc13070: 7d 40 01 24 mtmsr r10 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc13074: 83 df 00 50 lwz r30,80(r31) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc13078: 39 5f 00 54 addi r10,r31,84 ffc1307c: 7f 9e 50 00 cmpw cr7,r30,r10 ffc13080: 41 9e 00 5c beq- cr7,ffc130dc <_CORE_message_queue_Seize+0xa8> executing = _Thread_Executing; executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; _ISR_Disable( level ); the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { ffc13084: 2f 9e 00 00 cmpwi cr7,r30,0 { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc13088: 80 be 00 00 lwz r5,0(r30) the_chain->first = new_first; ffc1308c: 7f ea fb 78 mr r10,r31 ffc13090: 94 aa 00 50 stwu r5,80(r10) new_first->previous = _Chain_Head(the_chain); ffc13094: 91 45 00 04 stw r10,4(r5) ffc13098: 41 9e 00 44 beq- cr7,ffc130dc <_CORE_message_queue_Seize+0xa8><== NEVER TAKEN the_message_queue->number_of_pending_messages -= 1; ffc1309c: 81 3f 00 48 lwz r9,72(r31) ffc130a0: 38 09 ff ff addi r0,r9,-1 ffc130a4: 90 1f 00 48 stw r0,72(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc130a8: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = ffc130ac: 3d 20 00 00 lis r9,0 the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; ffc130b0: 80 be 00 08 lwz r5,8(r30) _Thread_Executing->Wait.count = ffc130b4: 81 29 28 2c lwz r9,10284(r9) ffc130b8: 38 00 00 00 li r0,0 the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; ffc130bc: 90 a6 00 00 stw r5,0(r6) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc130c0: 38 9e 00 0c addi r4,r30,12 _Thread_Executing->Wait.count = ffc130c4: 90 09 00 24 stw r0,36(r9) ffc130c8: 48 00 85 d5 bl ffc1b69c RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node ); ffc130cc: 38 7f 00 60 addi r3,r31,96 ffc130d0: 7f c4 f3 78 mr r4,r30 ffc130d4: 4b ff fd b9 bl ffc12e8c <_Chain_Append> /* * There is not an API with blocking sends enabled. * So return immediately. */ _CORE_message_queue_Free_message_buffer(the_message_queue, the_message); return; ffc130d8: 48 00 00 4c b ffc13124 <_CORE_message_queue_Seize+0xf0> return; } #endif } if ( !wait ) { ffc130dc: 2f 87 00 00 cmpwi cr7,r7,0 ffc130e0: 40 9e 00 14 bne- cr7,ffc130f4 <_CORE_message_queue_Seize+0xc0> ffc130e4: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; ffc130e8: 38 00 00 04 li r0,4 ffc130ec: 90 09 00 34 stw r0,52(r9) return; ffc130f0: 48 00 00 34 b ffc13124 <_CORE_message_queue_Seize+0xf0> RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc130f4: 39 40 00 01 li r10,1 _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; ffc130f8: 90 c9 00 28 stw r6,40(r9) ffc130fc: 91 5f 00 30 stw r10,48(r31) return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; ffc13100: 90 09 00 20 stw r0,32(r9) executing->Wait.return_argument_second.mutable_object = buffer; ffc13104: 90 69 00 2c stw r3,44(r9) executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; ffc13108: 93 e9 00 44 stw r31,68(r9) ffc1310c: 7d 60 01 24 mtmsr r11 executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); ffc13110: 3c a0 ff c1 lis r5,-63 ffc13114: 7f e3 fb 78 mr r3,r31 ffc13118: 7d 04 43 78 mr r4,r8 ffc1311c: 38 a5 57 28 addi r5,r5,22312 ffc13120: 48 00 22 11 bl ffc15330 <_Thread_queue_Enqueue_with_handler> } ffc13124: 80 01 00 14 lwz r0,20(r1) ffc13128: 83 c1 00 08 lwz r30,8(r1) ffc1312c: 7c 08 03 a6 mtlr r0 ffc13130: 83 e1 00 0c lwz r31,12(r1) ffc13134: 38 21 00 10 addi r1,r1,16 ffc13138: 4e 80 00 20 blr ffc08c00 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc08c00: 94 21 ff e0 stwu r1,-32(r1) ffc08c04: 7c 08 02 a6 mflr r0 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc08c08: 3d 20 00 00 lis r9,0 Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc08c0c: 90 01 00 24 stw r0,36(r1) _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc08c10: 80 09 27 2c lwz r0,10028(r9) Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc08c14: 93 81 00 10 stw r28,16(r1) ffc08c18: 7c dc 33 78 mr r28,r6 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc08c1c: 2f 80 00 00 cmpwi cr7,r0,0 Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc08c20: 93 a1 00 14 stw r29,20(r1) ffc08c24: 7c bd 2b 78 mr r29,r5 ffc08c28: 93 c1 00 18 stw r30,24(r1) ffc08c2c: 7c 9e 23 78 mr r30,r4 ffc08c30: 93 e1 00 1c stw r31,28(r1) ffc08c34: 7c 7f 1b 78 mr r31,r3 ffc08c38: 90 e1 00 08 stw r7,8(r1) _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc08c3c: 41 9e 00 2c beq- cr7,ffc08c68 <_CORE_mutex_Seize+0x68> ffc08c40: 2f 85 00 00 cmpwi cr7,r5,0 ffc08c44: 41 9e 00 24 beq- cr7,ffc08c68 <_CORE_mutex_Seize+0x68> <== NEVER TAKEN ffc08c48: 3d 20 00 00 lis r9,0 ffc08c4c: 80 09 27 90 lwz r0,10128(r9) ffc08c50: 2b 80 00 01 cmplwi cr7,r0,1 ffc08c54: 40 bd 00 14 ble+ cr7,ffc08c68 <_CORE_mutex_Seize+0x68> ffc08c58: 38 60 00 00 li r3,0 ffc08c5c: 38 80 00 00 li r4,0 ffc08c60: 38 a0 00 13 li r5,19 ffc08c64: 48 00 07 5d bl ffc093c0 <_Internal_error_Occurred> ffc08c68: 7f e3 fb 78 mr r3,r31 ffc08c6c: 38 81 00 08 addi r4,r1,8 ffc08c70: 48 00 4f b1 bl ffc0dc20 <_CORE_mutex_Seize_interrupt_trylock> ffc08c74: 2f 83 00 00 cmpwi cr7,r3,0 ffc08c78: 41 9e 00 60 beq- cr7,ffc08cd8 <_CORE_mutex_Seize+0xd8> ffc08c7c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc08c80: 3d 60 00 00 lis r11,0 ffc08c84: 40 9e 00 1c bne- cr7,ffc08ca0 <_CORE_mutex_Seize+0xa0> ffc08c88: 80 01 00 08 lwz r0,8(r1) ffc08c8c: 7c 00 01 24 mtmsr r0 ffc08c90: 81 2b 27 6c lwz r9,10092(r11) ffc08c94: 38 00 00 01 li r0,1 ffc08c98: 90 09 00 34 stw r0,52(r9) ffc08c9c: 48 00 00 3c b ffc08cd8 <_CORE_mutex_Seize+0xd8> ffc08ca0: 3d 20 00 00 lis r9,0 ffc08ca4: 81 6b 27 6c lwz r11,10092(r11) ffc08ca8: 81 49 27 2c lwz r10,10028(r9) ffc08cac: 93 cb 00 20 stw r30,32(r11) ffc08cb0: 38 0a 00 01 addi r0,r10,1 RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc08cb4: 39 40 00 01 li r10,1 ffc08cb8: 93 eb 00 44 stw r31,68(r11) ffc08cbc: 91 5f 00 30 stw r10,48(r31) ffc08cc0: 90 09 27 2c stw r0,10028(r9) ffc08cc4: 80 01 00 08 lwz r0,8(r1) ffc08cc8: 7c 00 01 24 mtmsr r0 ffc08ccc: 7f e3 fb 78 mr r3,r31 ffc08cd0: 7f 84 e3 78 mr r4,r28 ffc08cd4: 4b ff fe a5 bl ffc08b78 <_CORE_mutex_Seize_interrupt_blocking> } ffc08cd8: 80 01 00 24 lwz r0,36(r1) ffc08cdc: 83 81 00 10 lwz r28,16(r1) ffc08ce0: 7c 08 03 a6 mtlr r0 ffc08ce4: 83 a1 00 14 lwz r29,20(r1) ffc08ce8: 83 c1 00 18 lwz r30,24(r1) ffc08cec: 83 e1 00 1c lwz r31,28(r1) ffc08cf0: 38 21 00 20 addi r1,r1,32 ffc08cf4: 4e 80 00 20 blr ffc0dc20 <_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 ) { ffc0dc20: 7c 08 02 a6 mflr r0 ffc0dc24: 94 21 ff f8 stwu r1,-8(r1) { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; ffc0dc28: 3d 20 00 00 lis r9,0 ffc0dc2c: 81 29 27 6c lwz r9,10092(r9) ffc0dc30: 90 01 00 0c stw r0,12(r1) executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; ffc0dc34: 38 00 00 00 li r0,0 ffc0dc38: 90 09 00 34 stw r0,52(r9) if ( !_CORE_mutex_Is_locked( the_mutex ) ) { ffc0dc3c: 81 63 00 50 lwz r11,80(r3) ffc0dc40: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0dc44: 41 9e 00 bc beq- cr7,ffc0dd00 <_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; ffc0dc48: 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; ffc0dc4c: 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 ) || ffc0dc50: 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; ffc0dc54: 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; ffc0dc58: 91 23 00 5c stw r9,92(r3) the_mutex->holder_id = executing->Object.id; ffc0dc5c: 90 03 00 60 stw r0,96(r3) the_mutex->nest_count = 1; ffc0dc60: 38 00 00 01 li r0,1 ffc0dc64: 90 03 00 54 stw r0,84(r3) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc0dc68: 41 9e 00 0c beq- cr7,ffc0dc74 <_CORE_mutex_Seize_interrupt_trylock+0x54> ffc0dc6c: 2f 8b 00 03 cmpwi cr7,r11,3 ffc0dc70: 40 be 00 18 bne+ cr7,ffc0dc88 <_CORE_mutex_Seize_interrupt_trylock+0x68> #endif executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { ffc0dc74: 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++; ffc0dc78: 81 69 00 1c lwz r11,28(r9) ffc0dc7c: 38 0b 00 01 addi r0,r11,1 ffc0dc80: 90 09 00 1c stw r0,28(r9) } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { ffc0dc84: 41 be 00 08 beq+ cr7,ffc0dc8c <_CORE_mutex_Seize_interrupt_trylock+0x6c> _ISR_Enable( *level_p ); ffc0dc88: 48 00 00 a8 b ffc0dd30 <_CORE_mutex_Seize_interrupt_trylock+0x110> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; ffc0dc8c: 80 03 00 4c lwz r0,76(r3) current = executing->current_priority; ffc0dc90: 81 69 00 14 lwz r11,20(r9) if ( current == ceiling ) { ffc0dc94: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0dc98: 40 be 00 08 bne+ cr7,ffc0dca0 <_CORE_mutex_Seize_interrupt_trylock+0x80> _ISR_Enable( *level_p ); ffc0dc9c: 48 00 00 94 b ffc0dd30 <_CORE_mutex_Seize_interrupt_trylock+0x110> return 0; } if ( current > ceiling ) { ffc0dca0: 7f 8b 00 40 cmplw cr7,r11,r0 ffc0dca4: 40 bd 00 34 ble+ cr7,ffc0dcd8 <_CORE_mutex_Seize_interrupt_trylock+0xb8> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0dca8: 3d 20 00 00 lis r9,0 ffc0dcac: 81 69 27 2c lwz r11,10028(r9) ffc0dcb0: 38 0b 00 01 addi r0,r11,1 ffc0dcb4: 90 09 27 2c stw r0,10028(r9) ffc0dcb8: 80 04 00 00 lwz r0,0(r4) ffc0dcbc: 7c 00 01 24 mtmsr r0 _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); _Thread_Change_priority( ffc0dcc0: 80 83 00 4c lwz r4,76(r3) ffc0dcc4: 38 a0 00 00 li r5,0 ffc0dcc8: 80 63 00 5c lwz r3,92(r3) ffc0dccc: 4b ff c1 45 bl ffc09e10 <_Thread_Change_priority> the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); ffc0dcd0: 4b ff c7 c9 bl ffc0a498 <_Thread_Enable_dispatch> ffc0dcd4: 48 00 00 64 b ffc0dd38 <_CORE_mutex_Seize_interrupt_trylock+0x118> return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; ffc0dcd8: 38 00 00 06 li r0,6 ffc0dcdc: 90 09 00 34 stw r0,52(r9) the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ ffc0dce0: 38 00 00 00 li r0,0 ffc0dce4: 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; ffc0dce8: 38 00 00 01 li r0,1 ffc0dcec: 90 03 00 50 stw r0,80(r3) the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ ffc0dcf0: 81 69 00 1c lwz r11,28(r9) ffc0dcf4: 38 0b ff ff addi r0,r11,-1 ffc0dcf8: 90 09 00 1c stw r0,28(r9) _ISR_Enable( *level_p ); ffc0dcfc: 48 00 00 34 b ffc0dd30 <_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 ) ) { ffc0dd00: 81 63 00 5c lwz r11,92(r3) ffc0dd04: 7f 8b 48 00 cmpw cr7,r11,r9 ffc0dd08: 40 be 00 44 bne+ cr7,ffc0dd4c <_CORE_mutex_Seize_interrupt_trylock+0x12c> switch ( the_mutex->Attributes.lock_nesting_behavior ) { ffc0dd0c: 80 03 00 40 lwz r0,64(r3) ffc0dd10: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dd14: 41 9e 00 10 beq- cr7,ffc0dd24 <_CORE_mutex_Seize_interrupt_trylock+0x104> ffc0dd18: 2f 80 00 01 cmpwi cr7,r0,1 ffc0dd1c: 40 be 00 30 bne+ cr7,ffc0dd4c <_CORE_mutex_Seize_interrupt_trylock+0x12c><== ALWAYS TAKEN ffc0dd20: 48 00 00 20 b ffc0dd40 <_CORE_mutex_Seize_interrupt_trylock+0x120><== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; ffc0dd24: 81 23 00 54 lwz r9,84(r3) ffc0dd28: 38 09 00 01 addi r0,r9,1 ffc0dd2c: 90 03 00 54 stw r0,84(r3) ffc0dd30: 80 04 00 00 lwz r0,0(r4) ffc0dd34: 7c 00 01 24 mtmsr r0 ffc0dd38: 38 60 00 00 li r3,0 ffc0dd3c: 48 00 00 14 b ffc0dd50 <_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; ffc0dd40: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc0dd44: 90 0b 00 34 stw r0,52(r11) <== NOT EXECUTED _ISR_Enable( *level_p ); ffc0dd48: 4b ff ff e8 b ffc0dd30 <_CORE_mutex_Seize_interrupt_trylock+0x110><== NOT EXECUTED ffc0dd4c: 38 60 00 01 li r3,1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } ffc0dd50: 80 01 00 0c lwz r0,12(r1) ffc0dd54: 38 21 00 08 addi r1,r1,8 ffc0dd58: 7c 08 03 a6 mtlr r0 ffc0dd5c: 4e 80 00 20 blr ffc08eb8 <_CORE_semaphore_Surrender>: CORE_semaphore_Status _CORE_semaphore_Surrender( CORE_semaphore_Control *the_semaphore, Objects_Id id, CORE_semaphore_API_mp_support_callout api_semaphore_mp_support ) { ffc08eb8: 94 21 ff f0 stwu r1,-16(r1) ffc08ebc: 7c 08 02 a6 mflr r0 ffc08ec0: 93 e1 00 0c stw r31,12(r1) ffc08ec4: 7c 7f 1b 78 mr r31,r3 ffc08ec8: 90 01 00 14 stw r0,20(r1) ISR_Level level; CORE_semaphore_Status status; status = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) { ffc08ecc: 48 00 19 e9 bl ffc0a8b4 <_Thread_queue_Dequeue> ffc08ed0: 2f 83 00 00 cmpwi cr7,r3,0 ffc08ed4: 38 60 00 00 li r3,0 ffc08ed8: 40 be 00 38 bne+ cr7,ffc08f10 <_CORE_semaphore_Surrender+0x58> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08edc: 7c 00 00 a6 mfmsr r0 ffc08ee0: 7d 30 42 a6 mfsprg r9,0 ffc08ee4: 7c 09 48 78 andc r9,r0,r9 ffc08ee8: 7d 20 01 24 mtmsr r9 (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) ffc08eec: 81 3f 00 48 lwz r9,72(r31) ffc08ef0: 38 60 00 04 li r3,4 ffc08ef4: 81 7f 00 40 lwz r11,64(r31) ffc08ef8: 7f 89 58 40 cmplw cr7,r9,r11 ffc08efc: 40 9c 00 10 bge- cr7,ffc08f0c <_CORE_semaphore_Surrender+0x54><== NEVER TAKEN the_semaphore->count += 1; ffc08f00: 39 29 00 01 addi r9,r9,1 ffc08f04: 91 3f 00 48 stw r9,72(r31) ffc08f08: 38 60 00 00 li r3,0 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc08f0c: 7c 00 01 24 mtmsr r0 status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } ffc08f10: 80 01 00 14 lwz r0,20(r1) ffc08f14: 83 e1 00 0c lwz r31,12(r1) ffc08f18: 38 21 00 10 addi r1,r1,16 ffc08f1c: 7c 08 03 a6 mtlr r0 ffc08f20: 4e 80 00 20 blr ffc07760 <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07760: 94 21 ff f0 stwu r1,-16(r1) ffc07764: 7c 08 02 a6 mflr r0 rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; ffc07768: 3d 20 00 00 lis r9,0 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc0776c: 93 e1 00 0c stw r31,12(r1) rtems_event_set pending_events; ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; ffc07770: 83 e9 27 6c lwz r31,10092(r9) rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07774: 90 01 00 14 stw r0,20(r1) ISR_Level level; RTEMS_API_Control *api; Thread_blocking_operation_States sync_state; executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; ffc07778: 38 00 00 00 li r0,0 ffc0777c: 90 1f 00 34 stw r0,52(r31) api = executing->API_Extensions[ THREAD_API_RTEMS ]; ffc07780: 81 5f 01 40 lwz r10,320(r31) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07784: 7d 20 00 a6 mfmsr r9 ffc07788: 7c 10 42 a6 mfsprg r0,0 ffc0778c: 7d 20 00 78 andc r0,r9,r0 ffc07790: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); pending_events = api->pending_events; ffc07794: 81 6a 00 00 lwz r11,0(r10) seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && ffc07798: 7c 60 58 39 and. r0,r3,r11 ffc0779c: 41 82 00 24 beq- ffc077c0 <_Event_Seize+0x60> ffc077a0: 7f 80 18 00 cmpw cr7,r0,r3 ffc077a4: 41 9e 00 0c beq- cr7,ffc077b0 <_Event_Seize+0x50> ffc077a8: 70 88 00 02 andi. r8,r4,2 ffc077ac: 41 a2 00 14 beq+ ffc077c0 <_Event_Seize+0x60> <== NEVER TAKEN (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = ffc077b0: 7d 6b 00 78 andc r11,r11,r0 ffc077b4: 91 6a 00 00 stw r11,0(r10) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc077b8: 7d 20 01 24 mtmsr r9 ffc077bc: 48 00 00 18 b ffc077d4 <_Event_Seize+0x74> _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { ffc077c0: 70 8b 00 01 andi. r11,r4,1 ffc077c4: 41 a2 00 18 beq+ ffc077dc <_Event_Seize+0x7c> ffc077c8: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; ffc077cc: 39 20 00 0d li r9,13 ffc077d0: 91 3f 00 34 stw r9,52(r31) *event_out = seized_events; ffc077d4: 90 06 00 00 stw r0,0(r6) return; ffc077d8: 48 00 00 a0 b ffc07878 <_Event_Seize+0x118> */ executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in; executing->Wait.return_argument = event_out; _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc077dc: 38 00 00 01 li r0,1 * set properly when we are marked as in the event critical section. * * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; ffc077e0: 90 9f 00 30 stw r4,48(r31) executing->Wait.count = (uint32_t) event_in; executing->Wait.return_argument = event_out; _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc077e4: 3d 60 00 00 lis r11,0 ffc077e8: 90 0b 27 a0 stw r0,10144(r11) * * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in; ffc077ec: 90 7f 00 24 stw r3,36(r31) executing->Wait.return_argument = event_out; ffc077f0: 90 df 00 28 stw r6,40(r31) ffc077f4: 7d 20 01 24 mtmsr r9 _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { ffc077f8: 2f 85 00 00 cmpwi cr7,r5,0 ffc077fc: 41 be 00 38 beq+ cr7,ffc07834 <_Event_Seize+0xd4> _Watchdog_Initialize( ffc07800: 81 3f 00 08 lwz r9,8(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc07804: 3d 60 ff c0 lis r11,-64 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc07808: 38 00 00 00 li r0,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0780c: 90 bf 00 54 stw r5,84(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc07810: 39 6b 7a 48 addi r11,r11,31304 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07814: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc07818: 91 7f 00 64 stw r11,100(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0781c: 38 63 2c a8 addi r3,r3,11432 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc07820: 91 3f 00 68 stw r9,104(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07824: 38 9f 00 48 addi r4,r31,72 ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc07828: 90 1f 00 6c stw r0,108(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0782c: 90 1f 00 50 stw r0,80(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07830: 48 00 41 71 bl ffc0b9a0 <_Watchdog_Insert> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); ffc07834: 7f e3 fb 78 mr r3,r31 ffc07838: 38 80 01 00 li r4,256 ffc0783c: 48 00 36 cd bl ffc0af08 <_Thread_Set_state> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07840: 7c a0 00 a6 mfmsr r5 ffc07844: 7c 10 42 a6 mfsprg r0,0 ffc07848: 7c a0 00 78 andc r0,r5,r0 ffc0784c: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); sync_state = _Event_Sync_state; ffc07850: 3d 20 00 00 lis r9,0 ffc07854: 80 69 27 a0 lwz r3,10144(r9) _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc07858: 38 00 00 00 li r0,0 ffc0785c: 90 09 27 a0 stw r0,10144(r9) if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { ffc07860: 2f 83 00 01 cmpwi cr7,r3,1 ffc07864: 40 be 00 0c bne+ cr7,ffc07870 <_Event_Seize+0x110> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc07868: 7c a0 01 24 mtmsr r5 ffc0786c: 48 00 00 0c b ffc07878 <_Event_Seize+0x118> * An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); ffc07870: 7f e4 fb 78 mr r4,r31 ffc07874: 48 00 25 35 bl ffc09da8 <_Thread_blocking_operation_Cancel> } ffc07878: 80 01 00 14 lwz r0,20(r1) ffc0787c: 83 e1 00 0c lwz r31,12(r1) ffc07880: 38 21 00 10 addi r1,r1,16 ffc07884: 7c 08 03 a6 mtlr r0 ffc07888: 4e 80 00 20 blr ffc07900 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { ffc07900: 94 21 ff f0 stwu r1,-16(r1) ffc07904: 7c 08 02 a6 mflr r0 ffc07908: 90 01 00 14 stw r0,20(r1) ffc0790c: 93 e1 00 0c stw r31,12(r1) ffc07910: 7c 7f 1b 78 mr r31,r3 rtems_event_set event_condition; rtems_event_set seized_events; rtems_option option_set; RTEMS_API_Control *api; api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; ffc07914: 81 03 01 40 lwz r8,320(r3) option_set = (rtems_option) the_thread->Wait.option; ffc07918: 80 e3 00 30 lwz r7,48(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0791c: 7c 00 00 a6 mfmsr r0 ffc07920: 7d 30 42 a6 mfsprg r9,0 ffc07924: 7c 09 48 78 andc r9,r0,r9 ffc07928: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); pending_events = api->pending_events; ffc0792c: 81 68 00 00 lwz r11,0(r8) event_condition = (rtems_event_set) the_thread->Wait.count; ffc07930: 81 43 00 24 lwz r10,36(r3) seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { ffc07934: 7d 49 58 39 and. r9,r10,r11 ffc07938: 40 a2 00 08 bne+ ffc07940 <_Event_Surrender+0x40> _ISR_Enable( level ); ffc0793c: 48 00 00 f4 b ffc07a30 <_Event_Surrender+0x130> /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && ffc07940: 3c c0 00 00 lis r6,0 ffc07944: 80 c6 27 54 lwz r6,10068(r6) ffc07948: 2f 86 00 00 cmpwi cr7,r6,0 ffc0794c: 41 9e 00 68 beq- cr7,ffc079b4 <_Event_Surrender+0xb4> ffc07950: 3c c0 00 00 lis r6,0 ffc07954: 80 c6 27 6c lwz r6,10092(r6) ffc07958: 7f 83 30 00 cmpw cr7,r3,r6 ffc0795c: 40 be 00 58 bne+ cr7,ffc079b4 <_Event_Surrender+0xb4> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || ffc07960: 3c c0 00 00 lis r6,0 ffc07964: 80 a6 27 a0 lwz r5,10144(r6) /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && ffc07968: 2f 85 00 02 cmpwi cr7,r5,2 ffc0796c: 41 9e 00 10 beq- cr7,ffc0797c <_Event_Surrender+0x7c> <== NEVER TAKEN _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { ffc07970: 80 c6 27 a0 lwz r6,10144(r6) /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && ffc07974: 2f 86 00 01 cmpwi cr7,r6,1 ffc07978: 40 be 00 3c bne+ cr7,ffc079b4 <_Event_Surrender+0xb4> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { ffc0797c: 7f 89 50 00 cmpw cr7,r9,r10 ffc07980: 41 9e 00 0c beq- cr7,ffc0798c <_Event_Surrender+0x8c> ffc07984: 70 e5 00 02 andi. r5,r7,2 ffc07988: 41 82 00 28 beq- ffc079b0 <_Event_Surrender+0xb0> <== NEVER TAKEN api->pending_events = _Event_sets_Clear( pending_events,seized_events ); ffc0798c: 7d 6b 48 78 andc r11,r11,r9 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc07990: 81 5f 00 28 lwz r10,40(r31) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); ffc07994: 91 68 00 00 stw r11,0(r8) the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; ffc07998: 3d 60 00 00 lis r11,0 ffc0799c: 39 00 00 03 li r8,3 ffc079a0: 91 0b 27 a0 stw r8,10144(r11) _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; ffc079a4: 39 60 00 00 li r11,0 ffc079a8: 91 7f 00 24 stw r11,36(r31) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc079ac: 91 2a 00 00 stw r9,0(r10) _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; } _ISR_Enable( level ); ffc079b0: 48 00 00 80 b ffc07a30 <_Event_Surrender+0x130> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { ffc079b4: 80 df 00 10 lwz r6,16(r31) ffc079b8: 70 c5 01 00 andi. r5,r6,256 ffc079bc: 41 82 00 74 beq- ffc07a30 <_Event_Surrender+0x130> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { ffc079c0: 7f 89 50 00 cmpw cr7,r9,r10 ffc079c4: 41 9e 00 0c beq- cr7,ffc079d0 <_Event_Surrender+0xd0> ffc079c8: 70 ea 00 02 andi. r10,r7,2 ffc079cc: 41 82 00 64 beq- ffc07a30 <_Event_Surrender+0x130> <== NEVER TAKEN api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc079d0: 81 5f 00 28 lwz r10,40(r31) /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); ffc079d4: 7d 6b 48 78 andc r11,r11,r9 ffc079d8: 91 68 00 00 stw r11,0(r8) the_thread->Wait.count = 0; ffc079dc: 39 60 00 00 li r11,0 ffc079e0: 91 7f 00 24 stw r11,36(r31) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc079e4: 91 2a 00 00 stw r9,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc079e8: 7d 20 00 a6 mfmsr r9 ffc079ec: 7c 00 01 24 mtmsr r0 ffc079f0: 7d 20 01 24 mtmsr r9 _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc079f4: 81 3f 00 50 lwz r9,80(r31) ffc079f8: 2f 89 00 02 cmpwi cr7,r9,2 ffc079fc: 41 9e 00 0c beq- cr7,ffc07a08 <_Event_Surrender+0x108> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc07a00: 7c 00 01 24 mtmsr r0 ffc07a04: 48 00 00 18 b ffc07a1c <_Event_Surrender+0x11c> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc07a08: 39 20 00 03 li r9,3 ffc07a0c: 91 3f 00 50 stw r9,80(r31) ffc07a10: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc07a14: 38 7f 00 48 addi r3,r31,72 ffc07a18: 48 00 40 e1 bl ffc0baf8 <_Watchdog_Remove> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc07a1c: 3c 80 10 03 lis r4,4099 ffc07a20: 7f e3 fb 78 mr r3,r31 ffc07a24: 60 84 ff f8 ori r4,r4,65528 ffc07a28: 48 00 25 8d bl ffc09fb4 <_Thread_Clear_state> ffc07a2c: 48 00 00 08 b ffc07a34 <_Event_Surrender+0x134> ffc07a30: 7c 00 01 24 mtmsr r0 } return; } } _ISR_Enable( level ); } ffc07a34: 80 01 00 14 lwz r0,20(r1) ffc07a38: 83 e1 00 0c lwz r31,12(r1) ffc07a3c: 38 21 00 10 addi r1,r1,16 ffc07a40: 7c 08 03 a6 mtlr r0 ffc07a44: 4e 80 00 20 blr ffc07a48 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { ffc07a48: 94 21 ff e8 stwu r1,-24(r1) ffc07a4c: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); ffc07a50: 38 81 00 08 addi r4,r1,8 void _Event_Timeout( Objects_Id id, void *ignored ) { ffc07a54: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); ffc07a58: 48 00 2a 61 bl ffc0a4b8 <_Thread_Get> switch ( location ) { ffc07a5c: 80 01 00 08 lwz r0,8(r1) ffc07a60: 2f 80 00 00 cmpwi cr7,r0,0 ffc07a64: 40 9e 00 68 bne- cr7,ffc07acc <_Event_Timeout+0x84> <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07a68: 7d 60 00 a6 mfmsr r11 ffc07a6c: 7d 30 42 a6 mfsprg r9,0 ffc07a70: 7d 69 48 78 andc r9,r11,r9 ffc07a74: 7d 20 01 24 mtmsr r9 return; } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { ffc07a78: 3d 20 00 00 lis r9,0 _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; ffc07a7c: 90 03 00 24 stw r0,36(r3) if ( _Thread_Is_executing( the_thread ) ) { ffc07a80: 81 29 27 6c lwz r9,10092(r9) ffc07a84: 7f 83 48 00 cmpw cr7,r3,r9 ffc07a88: 40 be 00 1c bne+ cr7,ffc07aa4 <_Event_Timeout+0x5c> if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) ffc07a8c: 3d 20 00 00 lis r9,0 ffc07a90: 80 09 27 a0 lwz r0,10144(r9) ffc07a94: 2f 80 00 01 cmpwi cr7,r0,1 ffc07a98: 40 be 00 0c bne+ cr7,ffc07aa4 <_Event_Timeout+0x5c> _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; ffc07a9c: 38 00 00 02 li r0,2 ffc07aa0: 90 09 27 a0 stw r0,10144(r9) } the_thread->Wait.return_code = RTEMS_TIMEOUT; ffc07aa4: 38 00 00 06 li r0,6 ffc07aa8: 90 03 00 34 stw r0,52(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc07aac: 7d 60 01 24 mtmsr r11 ffc07ab0: 3c 80 10 03 lis r4,4099 ffc07ab4: 60 84 ff f8 ori r4,r4,65528 ffc07ab8: 48 00 24 fd bl ffc09fb4 <_Thread_Clear_state> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc07abc: 3d 20 00 00 lis r9,0 ffc07ac0: 81 69 27 2c lwz r11,10028(r9) ffc07ac4: 38 0b ff ff addi r0,r11,-1 ffc07ac8: 90 09 27 2c stw r0,10028(r9) case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } ffc07acc: 80 01 00 1c lwz r0,28(r1) ffc07ad0: 38 21 00 18 addi r1,r1,24 ffc07ad4: 7c 08 03 a6 mtlr r0 ffc07ad8: 4e 80 00 20 blr ffc0dea8 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { ffc0dea8: 94 21 ff d8 stwu r1,-40(r1) ffc0deac: 7c 08 02 a6 mflr r0 ffc0deb0: 7d 80 00 26 mfcr r12 ffc0deb4: 7c 89 23 78 mr r9,r4 ffc0deb8: 90 01 00 2c stw r0,44(r1) Heap_Statistics *const stats = &heap->stats; Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); Heap_Block *block = _Heap_Free_list_first( heap ); uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_BLOCK_SIZE_OFFSET; ffc0debc: 38 04 00 04 addi r0,r4,4 uintptr_t const page_size = heap->page_size; uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { ffc0dec0: 7f 80 20 40 cmplw cr7,r0,r4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { ffc0dec4: 93 c1 00 20 stw r30,32(r1) ffc0dec8: 7c 7e 1b 78 mr r30,r3 ffc0decc: 93 41 00 10 stw r26,16(r1) ffc0ded0: 93 61 00 14 stw r27,20(r1) ffc0ded4: 93 81 00 18 stw r28,24(r1) ffc0ded8: 93 a1 00 1c stw r29,28(r1) ffc0dedc: 93 e1 00 24 stw r31,36(r1) ffc0dee0: 91 81 00 0c stw r12,12(r1) return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0dee4: 80 83 00 08 lwz r4,8(r3) Heap_Statistics *const stats = &heap->stats; Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); Heap_Block *block = _Heap_Free_list_first( heap ); uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; ffc0dee8: 81 43 00 10 lwz r10,16(r3) uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { ffc0deec: 41 9c 01 48 blt- cr7,ffc0e034 <_Heap_Allocate_aligned_with_boundary+0x18c> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { ffc0def0: 2f 86 00 00 cmpwi cr7,r6,0 ffc0def4: 41 be 00 18 beq+ cr7,ffc0df0c <_Heap_Allocate_aligned_with_boundary+0x64> if ( boundary < alloc_size ) { ffc0def8: 7f 86 48 40 cmplw cr7,r6,r9 ffc0defc: 41 9c 01 38 blt- cr7,ffc0e034 <_Heap_Allocate_aligned_with_boundary+0x18c> return NULL; } if ( alignment == 0 ) { ffc0df00: 2f 85 00 00 cmpwi cr7,r5,0 ffc0df04: 40 9e 00 08 bne- cr7,ffc0df0c <_Heap_Allocate_aligned_with_boundary+0x64> ffc0df08: 7d 45 53 78 mr r5,r10 ffc0df0c: 3b a0 00 00 li r29,0 * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { if ( alignment == 0 ) { ffc0df10: 2f 05 00 00 cmpwi cr6,r5,0 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; ffc0df14: 3b 8a 00 07 addi r28,r10,7 uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; ffc0df18: 21 89 00 04 subfic r12,r9,4 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { ffc0df1c: 2f 86 00 00 cmpwi cr7,r6,0 ffc0df20: 48 00 00 d0 b ffc0dff0 <_Heap_Allocate_aligned_with_boundary+0x148> /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { ffc0df24: 81 64 00 04 lwz r11,4(r4) while ( block != free_list_tail ) { _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; ffc0df28: 3b bd 00 01 addi r29,r29,1 /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { ffc0df2c: 7c 8b 00 40 cmplw cr1,r11,r0 ffc0df30: 40 85 00 bc ble- cr1,ffc0dfec <_Heap_Allocate_aligned_with_boundary+0x144> ffc0df34: 38 e4 00 08 addi r7,r4,8 if ( alignment == 0 ) { ffc0df38: 40 9a 00 0c bne- cr6,ffc0df44 <_Heap_Allocate_aligned_with_boundary+0x9c> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; ffc0df3c: 7c ff 3b 78 mr r31,r7 ffc0df40: 48 00 00 a4 b ffc0dfe4 <_Heap_Allocate_aligned_with_boundary+0x13c> uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; ffc0df44: 55 6b 00 3c rlwinm r11,r11,0,0,30 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; ffc0df48: 80 7e 00 14 lwz r3,20(r30) uintptr_t const block_begin = (uintptr_t) block; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; ffc0df4c: 7d 64 5a 14 add r11,r4,r11 uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; ffc0df50: 7f ec 5a 14 add r31,r12,r11 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); ffc0df54: 7f ff 2b 96 divwu r31,r31,r5 ffc0df58: 7f ff 29 d6 mullw r31,r31,r5 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; ffc0df5c: 7d 03 e0 50 subf r8,r3,r28 ffc0df60: 7d 68 5a 14 add r11,r8,r11 uintptr_t alloc_begin = alloc_end - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { ffc0df64: 7c 9f 58 40 cmplw cr1,r31,r11 ffc0df68: 40 85 00 0c ble- cr1,ffc0df74 <_Heap_Allocate_aligned_with_boundary+0xcc> ffc0df6c: 7f eb 2b 96 divwu r31,r11,r5 ffc0df70: 7f ff 29 d6 mullw r31,r31,r5 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { ffc0df74: 41 9e 00 48 beq- cr7,ffc0dfbc <_Heap_Allocate_aligned_with_boundary+0x114> /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); } alloc_end = alloc_begin + alloc_size; ffc0df78: 7d 1f 4a 14 add r8,r31,r9 ffc0df7c: 7d 68 33 96 divwu r11,r8,r6 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; ffc0df80: 7f 67 4a 14 add r27,r7,r9 ffc0df84: 7d 6b 31 d6 mullw r11,r11,r6 ffc0df88: 48 00 00 1c b ffc0dfa4 <_Heap_Allocate_aligned_with_boundary+0xfc> uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { ffc0df8c: 41 80 00 60 blt- ffc0dfec <_Heap_Allocate_aligned_with_boundary+0x144> ffc0df90: 7f fa 2b 96 divwu r31,r26,r5 ffc0df94: 7f ff 29 d6 mullw r31,r31,r5 return 0; } alloc_begin = boundary_line - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; ffc0df98: 7d 1f 4a 14 add r8,r31,r9 ffc0df9c: 7d 68 33 96 divwu r11,r8,r6 ffc0dfa0: 7d 6b 31 d6 mullw r11,r11,r6 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { ffc0dfa4: 7e 1f 58 40 cmplw cr4,r31,r11 if ( boundary_line < boundary_floor ) { return 0; } alloc_begin = boundary_line - alloc_size; ffc0dfa8: 7f 49 58 50 subf r26,r9,r11 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { ffc0dfac: 7c 8b 40 40 cmplw cr1,r11,r8 if ( boundary_line < boundary_floor ) { ffc0dfb0: 7c 0b d8 40 cmplw r11,r27 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { ffc0dfb4: 40 90 00 08 bge- cr4,ffc0dfbc <_Heap_Allocate_aligned_with_boundary+0x114> ffc0dfb8: 41 84 ff d4 blt+ cr1,ffc0df8c <_Heap_Allocate_aligned_with_boundary+0xe4> boundary_line = _Heap_Align_down( alloc_end, boundary ); } } /* Ensure that the we have a valid new block at the beginning */ if ( alloc_begin >= alloc_begin_floor ) { ffc0dfbc: 7c 9f 38 40 cmplw cr1,r31,r7 ffc0dfc0: 41 84 00 2c blt- cr1,ffc0dfec <_Heap_Allocate_aligned_with_boundary+0x144> uintptr_t const alloc_block_begin = (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size ); uintptr_t const free_size = alloc_block_begin - block_begin; ffc0dfc4: 7d 7f 53 96 divwu r11,r31,r10 ffc0dfc8: 7d 6b 51 d6 mullw r11,r11,r10 ffc0dfcc: 21 04 ff f8 subfic r8,r4,-8 ffc0dfd0: 7d 68 5a 14 add r11,r8,r11 if ( free_size >= min_block_size || free_size == 0 ) { ffc0dfd4: 7c 8b 18 40 cmplw cr1,r11,r3 ffc0dfd8: 40 84 00 0c bge- cr1,ffc0dfe4 <_Heap_Allocate_aligned_with_boundary+0x13c> ffc0dfdc: 2c 8b 00 00 cmpwi cr1,r11,0 ffc0dfe0: 40 86 00 0c bne- cr1,ffc0dfec <_Heap_Allocate_aligned_with_boundary+0x144> boundary ); } } if ( alloc_begin != 0 ) { ffc0dfe4: 2c 9f 00 00 cmpwi cr1,r31,0 ffc0dfe8: 40 86 00 18 bne- cr1,ffc0e000 <_Heap_Allocate_aligned_with_boundary+0x158><== ALWAYS TAKEN break; } block = block->next; ffc0dfec: 80 84 00 08 lwz r4,8(r4) if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { ffc0dff0: 7c 84 f0 00 cmpw cr1,r4,r30 ffc0dff4: 40 86 ff 30 bne+ cr1,ffc0df24 <_Heap_Allocate_aligned_with_boundary+0x7c> ffc0dff8: 3b e0 00 00 li r31,0 ffc0dffc: 48 00 00 20 b ffc0e01c <_Heap_Allocate_aligned_with_boundary+0x174> block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; ffc0e000: 80 1e 00 4c lwz r0,76(r30) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); ffc0e004: 7d 26 4b 78 mr r6,r9 ffc0e008: 7f c3 f3 78 mr r3,r30 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; ffc0e00c: 7c 00 ea 14 add r0,r0,r29 ffc0e010: 90 1e 00 4c stw r0,76(r30) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); ffc0e014: 7f e5 fb 78 mr r5,r31 ffc0e018: 4b ff b2 31 bl ffc09248 <_Heap_Block_allocate> uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; ffc0e01c: 80 1e 00 44 lwz r0,68(r30) ffc0e020: 7f 80 e8 40 cmplw cr7,r0,r29 ffc0e024: 40 9c 00 08 bge- cr7,ffc0e02c <_Heap_Allocate_aligned_with_boundary+0x184> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; ffc0e028: 93 be 00 44 stw r29,68(r30) } return (void *) alloc_begin; ffc0e02c: 7f e3 fb 78 mr r3,r31 ffc0e030: 48 00 00 08 b ffc0e038 <_Heap_Allocate_aligned_with_boundary+0x190> ffc0e034: 38 60 00 00 li r3,0 } ffc0e038: 80 01 00 2c lwz r0,44(r1) ffc0e03c: 81 81 00 0c lwz r12,12(r1) ffc0e040: 7c 08 03 a6 mtlr r0 ffc0e044: 83 41 00 10 lwz r26,16(r1) ffc0e048: 83 61 00 14 lwz r27,20(r1) ffc0e04c: 7d 80 81 20 mtcrf 8,r12 ffc0e050: 83 81 00 18 lwz r28,24(r1) ffc0e054: 83 a1 00 1c lwz r29,28(r1) ffc0e058: 83 c1 00 20 lwz r30,32(r1) ffc0e05c: 83 e1 00 24 lwz r31,36(r1) ffc0e060: 38 21 00 28 addi r1,r1,40 ffc0e064: 4e 80 00 20 blr ffc12b18 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { ffc12b18: 7c 08 02 a6 mflr r0 ffc12b1c: 94 21 ff f8 stwu r1,-8(r1) ffc12b20: 7c 69 1b 78 mr r9,r3 ffc12b24: 90 01 00 0c stw r0,12(r1) Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; ffc12b28: 80 03 00 18 lwz r0,24(r3) uintptr_t const heap_area_end = heap->area_end; uintptr_t const new_heap_area_end = heap_area_end + area_size; uintptr_t extend_size = 0; Heap_Block *const last_block = heap->last_block; ffc12b2c: 81 43 00 24 lwz r10,36(r3) uintptr_t *amount_extended ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; ffc12b30: 7f 84 00 40 cmplw cr7,r4,r0 uintptr_t const heap_area_end = heap->area_end; ffc12b34: 80 03 00 1c lwz r0,28(r3) uintptr_t *amount_extended ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; ffc12b38: 41 bc 00 10 blt+ cr7,ffc12b48 <_Heap_Extend+0x30> * 5. non-contiguous higher address (NOT SUPPORTED) * * As noted, this code only supports (4). */ if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) { ffc12b3c: 7f 84 00 40 cmplw cr7,r4,r0 ffc12b40: 38 60 00 01 li r3,1 ffc12b44: 41 9c 00 9c blt- cr7,ffc12be0 <_Heap_Extend+0xc8> return HEAP_EXTEND_ERROR; /* case 3 */ } else if ( area_begin != heap_area_end ) { ffc12b48: 7f 84 00 00 cmpw cr7,r4,r0 ffc12b4c: 38 60 00 02 li r3,2 ffc12b50: 40 be 00 90 bne+ cr7,ffc12be0 <_Heap_Extend+0xc8> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); ffc12b54: 81 69 00 10 lwz r11,16(r9) { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; uintptr_t const new_heap_area_end = heap_area_end + area_size; ffc12b58: 7c 84 2a 14 add r4,r4,r5 * block and free it. */ heap->area_end = new_heap_area_end; extend_size = new_heap_area_end ffc12b5c: 20 0a ff f8 subfic r0,r10,-8 * Currently only case 4 should make it to this point. * The basic trick is to make the extend area look like a used * block and free it. */ heap->area_end = new_heap_area_end; ffc12b60: 90 89 00 1c stw r4,28(r9) extend_size = new_heap_area_end ffc12b64: 7c 00 22 14 add r0,r0,r4 ffc12b68: 7c 00 5b 96 divwu r0,r0,r11 ffc12b6c: 7c 00 59 d6 mullw r0,r0,r11 - (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE; extend_size = _Heap_Align_down( extend_size, heap->page_size ); *amount_extended = extend_size; if( extend_size >= heap->min_block_size ) { ffc12b70: 38 60 00 00 li r3,0 extend_size = new_heap_area_end - (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE; extend_size = _Heap_Align_down( extend_size, heap->page_size ); *amount_extended = extend_size; ffc12b74: 90 06 00 00 stw r0,0(r6) if( extend_size >= heap->min_block_size ) { ffc12b78: 81 69 00 14 lwz r11,20(r9) ffc12b7c: 7f 80 58 40 cmplw cr7,r0,r11 ffc12b80: 41 bc 00 60 blt+ cr7,ffc12be0 <_Heap_Extend+0xc8> <== NEVER TAKEN uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc12b84: 80 ea 00 04 lwz r7,4(r10) RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc12b88: 7d 60 52 14 add r11,r0,r10 Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size ); _Heap_Block_set_size( last_block, extend_size ); new_last_block->size_and_flag = ffc12b8c: 81 09 00 20 lwz r8,32(r9) /* Statistics */ stats->size += extend_size; ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); ffc12b90: 38 8a 00 08 addi r4,r10,8 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc12b94: 54 e7 07 fe clrlwi r7,r7,31 new_last_block->size_and_flag = ((uintptr_t) heap->first_block - (uintptr_t) new_last_block) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; ffc12b98: 91 69 00 24 stw r11,36(r9) if( extend_size >= heap->min_block_size ) { Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size ); _Heap_Block_set_size( last_block, extend_size ); new_last_block->size_and_flag = ffc12b9c: 7d 0b 40 50 subf r8,r11,r8 ffc12ba0: 7c 07 3b 78 or r7,r0,r7 ffc12ba4: 61 08 00 01 ori r8,r8,1 ffc12ba8: 90 ea 00 04 stw r7,4(r10) /* Statistics */ stats->size += extend_size; ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); ffc12bac: 7d 23 4b 78 mr r3,r9 if( extend_size >= heap->min_block_size ) { Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size ); _Heap_Block_set_size( last_block, extend_size ); new_last_block->size_and_flag = ffc12bb0: 91 0b 00 04 stw r8,4(r11) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc12bb4: 80 e9 00 2c lwz r7,44(r9) ++stats->used_blocks; ffc12bb8: 81 09 00 40 lwz r8,64(r9) --stats->frees; /* Do not count subsequent call as actual free() */ ffc12bbc: 81 49 00 50 lwz r10,80(r9) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc12bc0: 7c 07 02 14 add r0,r7,r0 ++stats->used_blocks; ffc12bc4: 39 08 00 01 addi r8,r8,1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc12bc8: 90 09 00 2c stw r0,44(r9) ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ ffc12bcc: 39 4a ff ff addi r10,r10,-1 heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ++stats->used_blocks; ffc12bd0: 91 09 00 40 stw r8,64(r9) --stats->frees; /* Do not count subsequent call as actual free() */ ffc12bd4: 91 49 00 50 stw r10,80(r9) _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); ffc12bd8: 4b ff a3 61 bl ffc0cf38 <_Heap_Free> ffc12bdc: 38 60 00 00 li r3,0 } return HEAP_EXTEND_SUCCESSFUL; } ffc12be0: 80 01 00 0c lwz r0,12(r1) ffc12be4: 38 21 00 08 addi r1,r1,8 ffc12be8: 7c 08 03 a6 mtlr r0 ffc12bec: 4e 80 00 20 blr ffc0e068 <_Heap_Free>: RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) ffc0e068: 81 63 00 10 lwz r11,16(r3) #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { ffc0e06c: 7c 69 1b 78 mr r9,r3 const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; ffc0e070: 80 03 00 20 lwz r0,32(r3) RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0e074: 39 40 00 00 li r10,0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) ffc0e078: 7c 84 5b 96 divwu r4,r4,r11 ffc0e07c: 7d 64 59 d6 mullw r11,r4,r11 ffc0e080: 39 6b ff f8 addi r11,r11,-8 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0e084: 7f 8b 00 40 cmplw cr7,r11,r0 ffc0e088: 41 9c 00 14 blt- cr7,ffc0e09c <_Heap_Free+0x34> ffc0e08c: 81 43 00 24 lwz r10,36(r3) ffc0e090: 7d 4b 50 10 subfc r10,r11,r10 ffc0e094: 39 40 00 00 li r10,0 ffc0e098: 7d 4a 51 14 adde r10,r10,r10 Heap_Block *next_block = NULL; uintptr_t block_size = 0; uintptr_t next_block_size = 0; bool next_is_free = false; if ( !_Heap_Is_block_in_heap( heap, block ) ) { ffc0e09c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0e0a0: 41 9e 01 a8 beq- cr7,ffc0e248 <_Heap_Free+0x1e0> - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; ffc0e0a4: 80 ab 00 04 lwz r5,4(r11) RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0e0a8: 38 e0 00 00 li r7,0 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; ffc0e0ac: 54 a8 00 3c rlwinm r8,r5,0,0,30 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc0e0b0: 7d 4b 42 14 add r10,r11,r8 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0e0b4: 7f 8a 00 40 cmplw cr7,r10,r0 ffc0e0b8: 41 9c 00 14 blt- cr7,ffc0e0cc <_Heap_Free+0x64> <== NEVER TAKEN ffc0e0bc: 80 e9 00 24 lwz r7,36(r9) ffc0e0c0: 7c ea 38 10 subfc r7,r10,r7 ffc0e0c4: 38 e0 00 00 li r7,0 ffc0e0c8: 7c e7 39 14 adde r7,r7,r7 } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { ffc0e0cc: 2f 87 00 00 cmpwi cr7,r7,0 ffc0e0d0: 41 9e 01 78 beq- cr7,ffc0e248 <_Heap_Free+0x1e0> <== NEVER TAKEN block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; ffc0e0d4: 80 ca 00 04 lwz r6,4(r10) _HAssert( false ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { ffc0e0d8: 70 c3 00 01 andi. r3,r6,1 ffc0e0dc: 41 82 01 6c beq- ffc0e248 <_Heap_Free+0x1e0> <== NEVER TAKEN return false; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); ffc0e0e0: 81 89 00 24 lwz r12,36(r9) - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; ffc0e0e4: 54 c6 00 3c rlwinm r6,r6,0,0,30 _HAssert( false ); return false; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block ffc0e0e8: 38 80 00 00 li r4,0 ffc0e0ec: 7f 8a 60 00 cmpw cr7,r10,r12 ffc0e0f0: 41 9e 00 14 beq- cr7,ffc0e104 <_Heap_Free+0x9c> ffc0e0f4: 7c ea 32 14 add r7,r10,r6 ffc0e0f8: 80 87 00 04 lwz r4,4(r7) ffc0e0fc: 54 84 07 fe clrlwi r4,r4,31 ffc0e100: 68 84 00 01 xori r4,r4,1 && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); if ( !_Heap_Is_prev_used( block ) ) { ffc0e104: 70 a7 00 01 andi. r7,r5,1 _HAssert( false ); return false; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block ffc0e108: 54 84 06 3e clrlwi r4,r4,24 && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size )); if ( !_Heap_Is_prev_used( block ) ) { ffc0e10c: 40 82 00 94 bne- ffc0e1a0 <_Heap_Free+0x138> uintptr_t const prev_size = block->prev_size; ffc0e110: 80 ab 00 00 lwz r5,0(r11) RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0e114: 38 60 00 00 li r3,0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc0e118: 7c e5 58 50 subf r7,r5,r11 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0e11c: 7f 87 00 40 cmplw cr7,r7,r0 ffc0e120: 41 9c 00 10 blt- cr7,ffc0e130 <_Heap_Free+0xc8> <== NEVER TAKEN ffc0e124: 7c 67 60 10 subfc r3,r7,r12 ffc0e128: 38 60 00 00 li r3,0 ffc0e12c: 7c 63 19 14 adde r3,r3,r3 Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size ); if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) { ffc0e130: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e134: 41 9e 01 14 beq- cr7,ffc0e248 <_Heap_Free+0x1e0> <== NEVER TAKEN return( false ); } /* As we always coalesce free blocks, the block that preceedes prev_block must have been used. */ if ( !_Heap_Is_prev_used ( prev_block) ) { ffc0e138: 80 07 00 04 lwz r0,4(r7) ffc0e13c: 70 03 00 01 andi. r3,r0,1 ffc0e140: 41 82 01 08 beq- ffc0e248 <_Heap_Free+0x1e0> <== NEVER TAKEN _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ ffc0e144: 2f 84 00 00 cmpwi cr7,r4,0 ffc0e148: 41 9e 00 38 beq- cr7,ffc0e180 <_Heap_Free+0x118> uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; ffc0e14c: 80 89 00 38 lwz r4,56(r9) _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; ffc0e150: 7c c8 32 14 add r6,r8,r6 ffc0e154: 7c a6 2a 14 add r5,r6,r5 } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; ffc0e158: 81 6a 00 0c lwz r11,12(r10) return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; ffc0e15c: 81 4a 00 08 lwz r10,8(r10) _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; ffc0e160: 38 c4 ff ff addi r6,r4,-1 prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0e164: 60 a0 00 01 ori r0,r5,1 } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; ffc0e168: 90 c9 00 38 stw r6,56(r9) Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; ffc0e16c: 91 6a 00 0c stw r11,12(r10) prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; ffc0e170: 7c a7 29 2e stwx r5,r7,r5 if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0e174: 90 07 00 04 stw r0,4(r7) RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; ffc0e178: 91 4b 00 08 stw r10,8(r11) ffc0e17c: 48 00 00 a0 b ffc0e21c <_Heap_Free+0x1b4> next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; ffc0e180: 7c a8 2a 14 add r5,r8,r5 prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0e184: 60 a0 00 01 ori r0,r5,1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; ffc0e188: 7c ab 41 2e stwx r5,r11,r8 next_block = _Heap_Block_at( prev_block, size ); _HAssert(!_Heap_Is_prev_used( next_block)); next_block->prev_size = size; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0e18c: 90 07 00 04 stw r0,4(r7) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc0e190: 80 0a 00 04 lwz r0,4(r10) ffc0e194: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc0e198: 90 0a 00 04 stw r0,4(r10) ffc0e19c: 48 00 00 80 b ffc0e21c <_Heap_Free+0x1b4> next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ ffc0e1a0: 2f 84 00 00 cmpwi cr7,r4,0 ffc0e1a4: 41 9e 00 30 beq- cr7,ffc0e1d4 <_Heap_Free+0x16c> Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; ffc0e1a8: 80 aa 00 0c lwz r5,12(r10) uintptr_t const size = block_size + next_block_size; ffc0e1ac: 7c e6 42 14 add r7,r6,r8 RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; ffc0e1b0: 81 4a 00 08 lwz r10,8(r10) _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0e1b4: 60 e0 00 01 ori r0,r7,1 Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; ffc0e1b8: 90 ab 00 0c stw r5,12(r11) ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; ffc0e1bc: 91 4b 00 08 stw r10,8(r11) next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; ffc0e1c0: 7c eb 39 2e stwx r7,r11,r7 next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ uintptr_t const size = block_size + next_block_size; _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0e1c4: 90 0b 00 04 stw r0,4(r11) new_block->prev = prev; next->prev = new_block; prev->next = new_block; ffc0e1c8: 91 65 00 08 stw r11,8(r5) Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; ffc0e1cc: 91 6a 00 0c stw r11,12(r10) ffc0e1d0: 48 00 00 4c b ffc0e21c <_Heap_Free+0x1b4> next_block->prev_size = size; } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; ffc0e1d4: 61 00 00 01 ori r0,r8,1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; ffc0e1d8: 7d 0b 41 2e stwx r8,r11,r8 next_block->prev_size = size; } else { /* no coalesce */ /* Add 'block' to the head of the free blocks list as it tends to produce less fragmentation than adding to the tail. */ _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block ); block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; ffc0e1dc: 90 0b 00 04 stw r0,4(r11) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc0e1e0: 80 0a 00 04 lwz r0,4(r10) ) { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; ffc0e1e4: 91 2b 00 0c stw r9,12(r11) ffc0e1e8: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc0e1ec: 90 0a 00 04 stw r0,4(r10) next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; ffc0e1f0: 80 e9 00 38 lwz r7,56(r9) #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; ffc0e1f4: 81 49 00 3c lwz r10,60(r9) block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; ffc0e1f8: 38 07 00 01 addi r0,r7,1 #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; ffc0e1fc: 7f 8a 00 40 cmplw cr7,r10,r0 RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; ffc0e200: 81 49 00 08 lwz r10,8(r9) block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; ffc0e204: 90 09 00 38 stw r0,56(r9) new_block->next = next; ffc0e208: 91 4b 00 08 stw r10,8(r11) new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; ffc0e20c: 91 6a 00 0c stw r11,12(r10) { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; ffc0e210: 91 69 00 08 stw r11,8(r9) #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; ffc0e214: 40 9c 00 08 bge- cr7,ffc0e21c <_Heap_Free+0x1b4> next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; if ( stats->max_free_blocks < stats->free_blocks ) { stats->max_free_blocks = stats->free_blocks; ffc0e218: 90 09 00 3c stw r0,60(r9) } /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; ffc0e21c: 80 09 00 30 lwz r0,48(r9) ffc0e220: 38 60 00 01 li r3,1 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0e224: 81 69 00 40 lwz r11,64(r9) ++stats->frees; ffc0e228: 81 49 00 50 lwz r10,80(r9) stats->free_size += block_size; ffc0e22c: 7d 00 42 14 add r8,r0,r8 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0e230: 39 6b ff ff addi r11,r11,-1 ++stats->frees; stats->free_size += block_size; ffc0e234: 91 09 00 30 stw r8,48(r9) } } /* Statistics */ --stats->used_blocks; ++stats->frees; ffc0e238: 38 0a 00 01 addi r0,r10,1 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0e23c: 91 69 00 40 stw r11,64(r9) ++stats->frees; ffc0e240: 90 09 00 50 stw r0,80(r9) stats->free_size += block_size; return( true ); ffc0e244: 4e 80 00 20 blr ffc0e248: 38 60 00 00 li r3,0 } ffc0e24c: 4e 80 00 20 blr ffc1b958 <_Heap_Size_of_alloc_area>: RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) ffc1b958: 80 03 00 10 lwz r0,16(r3) const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; ffc1b95c: 81 23 00 20 lwz r9,32(r3) RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) ffc1b960: 7d 64 03 96 divwu r11,r4,r0 ffc1b964: 7d 6b 01 d6 mullw r11,r11,r0 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc1b968: 38 00 00 00 li r0,0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area( uintptr_t alloc_begin, uintptr_t page_size ) { return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size ) ffc1b96c: 39 6b ff f8 addi r11,r11,-8 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc1b970: 7f 8b 48 40 cmplw cr7,r11,r9 ffc1b974: 41 9c 00 14 blt- cr7,ffc1b988 <_Heap_Size_of_alloc_area+0x30><== NEVER TAKEN ffc1b978: 80 03 00 24 lwz r0,36(r3) ffc1b97c: 7c 0b 00 10 subfc r0,r11,r0 ffc1b980: 38 00 00 00 li r0,0 ffc1b984: 7c 00 01 14 adde r0,r0,r0 uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr; Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size ); Heap_Block *next_block = NULL; uintptr_t block_size = 0; if ( !_Heap_Is_block_in_heap( heap, block ) ) { ffc1b988: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b98c: 41 9e 00 54 beq- cr7,ffc1b9e0 <_Heap_Size_of_alloc_area+0x88> RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc1b990: 80 0b 00 04 lwz r0,4(r11) RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc1b994: 39 40 00 00 li r10,0 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc1b998: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc1b99c: 7d 6b 02 14 add r11,r11,r0 RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc1b9a0: 7f 8b 48 40 cmplw cr7,r11,r9 ffc1b9a4: 41 9c 00 14 blt- cr7,ffc1b9b8 <_Heap_Size_of_alloc_area+0x60><== NEVER TAKEN ffc1b9a8: 81 43 00 24 lwz r10,36(r3) ffc1b9ac: 7d 4b 50 10 subfc r10,r11,r10 ffc1b9b0: 39 40 00 00 li r10,0 ffc1b9b4: 7d 4a 51 14 adde r10,r10,r10 } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( ffc1b9b8: 2f 8a 00 00 cmpwi cr7,r10,0 ffc1b9bc: 41 9e 00 24 beq- cr7,ffc1b9e0 <_Heap_Size_of_alloc_area+0x88><== NEVER TAKEN ffc1b9c0: 80 0b 00 04 lwz r0,4(r11) ffc1b9c4: 70 09 00 01 andi. r9,r0,1 ffc1b9c8: 41 82 00 18 beq- ffc1b9e0 <_Heap_Size_of_alloc_area+0x88><== NEVER TAKEN || !_Heap_Is_prev_used( next_block ) ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin; ffc1b9cc: 20 84 00 04 subfic r4,r4,4 ffc1b9d0: 7d 64 5a 14 add r11,r4,r11 ffc1b9d4: 91 65 00 00 stw r11,0(r5) ffc1b9d8: 38 60 00 01 li r3,1 return true; ffc1b9dc: 4e 80 00 20 blr ffc1b9e0: 38 60 00 00 li r3,0 } ffc1b9e4: 4e 80 00 20 blr ffc0a044 <_Heap_Walk>: uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; ffc0a044: 2f 85 00 00 cmpwi cr7,r5,0 bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { ffc0a048: 94 21 ff 98 stwu r1,-104(r1) ffc0a04c: 7c 08 02 a6 mflr r0 ffc0a050: 93 21 00 4c stw r25,76(r1) ffc0a054: 90 01 00 6c stw r0,108(r1) ffc0a058: 93 61 00 54 stw r27,84(r1) ffc0a05c: 93 81 00 58 stw r28,88(r1) ffc0a060: 93 a1 00 5c stw r29,92(r1) ffc0a064: 7c 7d 1b 78 mr r29,r3 ffc0a068: 93 c1 00 60 stw r30,96(r1) ffc0a06c: 7c 9e 23 78 mr r30,r4 ffc0a070: 93 e1 00 64 stw r31,100(r1) ffc0a074: 91 c1 00 20 stw r14,32(r1) ffc0a078: 91 e1 00 24 stw r15,36(r1) ffc0a07c: 92 01 00 28 stw r16,40(r1) ffc0a080: 92 21 00 2c stw r17,44(r1) ffc0a084: 92 41 00 30 stw r18,48(r1) ffc0a088: 92 61 00 34 stw r19,52(r1) ffc0a08c: 92 81 00 38 stw r20,56(r1) ffc0a090: 92 a1 00 3c stw r21,60(r1) ffc0a094: 92 c1 00 40 stw r22,64(r1) ffc0a098: 92 e1 00 44 stw r23,68(r1) ffc0a09c: 93 01 00 48 stw r24,72(r1) ffc0a0a0: 93 41 00 50 stw r26,80(r1) uintptr_t const page_size = heap->page_size; ffc0a0a4: 83 83 00 10 lwz r28,16(r3) uintptr_t const min_block_size = heap->min_block_size; ffc0a0a8: 83 63 00 14 lwz r27,20(r3) Heap_Block *const last_block = heap->last_block; ffc0a0ac: 83 23 00 24 lwz r25,36(r3) Heap_Block *block = heap->first_block; ffc0a0b0: 83 e3 00 20 lwz r31,32(r3) Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; ffc0a0b4: 40 9e 00 10 bne- cr7,ffc0a0c4 <_Heap_Walk+0x80> ffc0a0b8: 3d 20 ff c1 lis r9,-63 ffc0a0bc: 39 29 a0 40 addi r9,r9,-24512 ffc0a0c0: 48 00 00 0c b ffc0a0cc <_Heap_Walk+0x88> ffc0a0c4: 3d 20 ff c1 lis r9,-63 ffc0a0c8: 39 29 a5 dc addi r9,r9,-23076 ffc0a0cc: 91 21 00 18 stw r9,24(r1) if ( !_System_state_Is_up( _System_state_Get() ) ) { ffc0a0d0: 3d 20 00 00 lis r9,0 ffc0a0d4: 80 09 27 90 lwz r0,10128(r9) ffc0a0d8: 2f 80 00 03 cmpwi cr7,r0,3 ffc0a0dc: 40 be 04 94 bne+ cr7,ffc0a570 <_Heap_Walk+0x52c> Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block; (*printer)( ffc0a0e0: 80 1d 00 0c lwz r0,12(r29) ffc0a0e4: 3c a0 ff c2 lis r5,-62 ffc0a0e8: 81 1d 00 18 lwz r8,24(r29) ffc0a0ec: 38 a5 dd 70 addi r5,r5,-8848 ffc0a0f0: 81 3d 00 1c lwz r9,28(r29) ffc0a0f4: 7f c3 f3 78 mr r3,r30 ffc0a0f8: 81 7d 00 08 lwz r11,8(r29) ffc0a0fc: 38 80 00 00 li r4,0 ffc0a100: 90 01 00 10 stw r0,16(r1) ffc0a104: 7f 86 e3 78 mr r6,r28 ffc0a108: 7f 67 db 78 mr r7,r27 ffc0a10c: 80 01 00 18 lwz r0,24(r1) ffc0a110: 7f ea fb 78 mr r10,r31 ffc0a114: 91 61 00 0c stw r11,12(r1) ffc0a118: 7c 09 03 a6 mtctr r0 ffc0a11c: 93 21 00 08 stw r25,8(r1) ffc0a120: 4c c6 31 82 crclr 4*cr1+eq ffc0a124: 4e 80 04 21 bctrl heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { ffc0a128: 2f 9c 00 00 cmpwi cr7,r28,0 ffc0a12c: 40 be 00 14 bne+ cr7,ffc0a140 <_Heap_Walk+0xfc> (*printer)( source, true, "page size is zero\n" ); ffc0a130: 3c a0 ff c2 lis r5,-62 ffc0a134: 7f c3 f3 78 mr r3,r30 ffc0a138: 38 a5 de 01 addi r5,r5,-8703 ffc0a13c: 48 00 00 c8 b ffc0a204 <_Heap_Walk+0x1c0> return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { ffc0a140: 73 89 00 07 andi. r9,r28,7 ffc0a144: 41 a2 00 18 beq+ ffc0a15c <_Heap_Walk+0x118> (*printer)( ffc0a148: 3c a0 ff c2 lis r5,-62 ffc0a14c: 7f c3 f3 78 mr r3,r30 ffc0a150: 38 a5 de 14 addi r5,r5,-8684 ffc0a154: 7f 86 e3 78 mr r6,r28 ffc0a158: 48 00 03 8c b ffc0a4e4 <_Heap_Walk+0x4a0> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { ffc0a15c: 7c 1b e3 96 divwu r0,r27,r28 ffc0a160: 7c 00 e1 d6 mullw r0,r0,r28 ffc0a164: 7f 9b 00 00 cmpw cr7,r27,r0 ffc0a168: 41 be 00 18 beq+ cr7,ffc0a180 <_Heap_Walk+0x13c> (*printer)( ffc0a16c: 3c a0 ff c2 lis r5,-62 ffc0a170: 7f c3 f3 78 mr r3,r30 ffc0a174: 38 a5 de 32 addi r5,r5,-8654 ffc0a178: 7f 66 db 78 mr r6,r27 ffc0a17c: 48 00 03 68 b ffc0a4e4 <_Heap_Walk+0x4a0> ); return false; } if ( ffc0a180: 38 1f 00 08 addi r0,r31,8 ffc0a184: 7d 20 e3 96 divwu r9,r0,r28 ffc0a188: 7d 29 e1 d6 mullw r9,r9,r28 ffc0a18c: 7f 80 48 00 cmpw cr7,r0,r9 ffc0a190: 41 be 00 14 beq+ cr7,ffc0a1a4 <_Heap_Walk+0x160> !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( ffc0a194: 3c a0 ff c2 lis r5,-62 ffc0a198: 7f c3 f3 78 mr r3,r30 ffc0a19c: 38 a5 de 56 addi r5,r5,-8618 ffc0a1a0: 48 00 03 40 b ffc0a4e0 <_Heap_Walk+0x49c> ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { ffc0a1a4: 80 1f 00 04 lwz r0,4(r31) ffc0a1a8: 70 09 00 01 andi. r9,r0,1 ffc0a1ac: 40 a2 00 14 bne+ ffc0a1c0 <_Heap_Walk+0x17c> (*printer)( ffc0a1b0: 3c a0 ff c2 lis r5,-62 ffc0a1b4: 7f c3 f3 78 mr r3,r30 ffc0a1b8: 38 a5 de 87 addi r5,r5,-8569 ffc0a1bc: 48 00 00 48 b ffc0a204 <_Heap_Walk+0x1c0> ); return false; } if ( first_block->prev_size != page_size ) { ffc0a1c0: 83 5f 00 00 lwz r26,0(r31) ffc0a1c4: 7f 9a e0 00 cmpw cr7,r26,r28 ffc0a1c8: 41 be 00 18 beq+ cr7,ffc0a1e0 <_Heap_Walk+0x19c> (*printer)( ffc0a1cc: 3c a0 ff c2 lis r5,-62 ffc0a1d0: 7f c3 f3 78 mr r3,r30 ffc0a1d4: 38 a5 de b5 addi r5,r5,-8523 ffc0a1d8: 7f 46 d3 78 mr r6,r26 ffc0a1dc: 48 00 02 18 b ffc0a3f4 <_Heap_Walk+0x3b0> ); return false; } if ( _Heap_Is_free( last_block ) ) { ffc0a1e0: 81 39 00 04 lwz r9,4(r25) ffc0a1e4: 55 29 00 3c rlwinm r9,r9,0,0,30 ffc0a1e8: 7d 39 4a 14 add r9,r25,r9 ffc0a1ec: 80 09 00 04 lwz r0,4(r9) ffc0a1f0: 70 09 00 01 andi. r9,r0,1 ffc0a1f4: 40 a2 00 28 bne+ ffc0a21c <_Heap_Walk+0x1d8> (*printer)( ffc0a1f8: 3c a0 ff c2 lis r5,-62 ffc0a1fc: 7f c3 f3 78 mr r3,r30 ffc0a200: 38 a5 de e0 addi r5,r5,-8480 ffc0a204: 80 01 00 18 lwz r0,24(r1) ffc0a208: 38 80 00 01 li r4,1 ffc0a20c: 7c 09 03 a6 mtctr r0 ffc0a210: 4c c6 31 82 crclr 4*cr1+eq ffc0a214: 4e 80 04 21 bctrl ffc0a218: 48 00 02 e0 b ffc0a4f8 <_Heap_Walk+0x4b4> int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; ffc0a21c: 81 3d 00 10 lwz r9,16(r29) return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0a220: 7f a0 eb 78 mr r0,r29 ffc0a224: 80 dd 00 08 lwz r6,8(r29) ffc0a228: 48 00 00 a4 b ffc0a2cc <_Heap_Walk+0x288> RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0a22c: 81 1d 00 20 lwz r8,32(r29) ffc0a230: 7f 88 30 40 cmplw cr7,r8,r6 ffc0a234: 41 9d 00 14 bgt- cr7,ffc0a248 <_Heap_Walk+0x204> ffc0a238: 81 7d 00 24 lwz r11,36(r29) ffc0a23c: 7d 66 58 10 subfc r11,r6,r11 ffc0a240: 39 60 00 00 li r11,0 ffc0a244: 7d 6b 59 14 adde r11,r11,r11 const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { ffc0a248: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a24c: 40 be 00 14 bne+ cr7,ffc0a260 <_Heap_Walk+0x21c> (*printer)( ffc0a250: 3c a0 ff c2 lis r5,-62 ffc0a254: 7f c3 f3 78 mr r3,r30 ffc0a258: 38 a5 de f5 addi r5,r5,-8459 ffc0a25c: 48 00 02 88 b ffc0a4e4 <_Heap_Walk+0x4a0> ); return false; } if ( ffc0a260: 7d 6a 4b 96 divwu r11,r10,r9 ffc0a264: 7d 6b 49 d6 mullw r11,r11,r9 ffc0a268: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0a26c: 41 be 00 14 beq+ cr7,ffc0a280 <_Heap_Walk+0x23c> !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( ffc0a270: 3c a0 ff c2 lis r5,-62 ffc0a274: 7f c3 f3 78 mr r3,r30 ffc0a278: 38 a5 df 15 addi r5,r5,-8427 ffc0a27c: 48 00 02 68 b ffc0a4e4 <_Heap_Walk+0x4a0> ); return false; } if ( _Heap_Is_used( free_block ) ) { ffc0a280: 81 66 00 04 lwz r11,4(r6) ffc0a284: 55 6b 00 3c rlwinm r11,r11,0,0,30 ffc0a288: 7d 66 5a 14 add r11,r6,r11 ffc0a28c: 81 6b 00 04 lwz r11,4(r11) ffc0a290: 71 6a 00 01 andi. r10,r11,1 ffc0a294: 41 a2 00 14 beq+ ffc0a2a8 <_Heap_Walk+0x264> (*printer)( ffc0a298: 3c a0 ff c2 lis r5,-62 ffc0a29c: 7f c3 f3 78 mr r3,r30 ffc0a2a0: 38 a5 df 45 addi r5,r5,-8379 ffc0a2a4: 48 00 02 40 b ffc0a4e4 <_Heap_Walk+0x4a0> ); return false; } if ( free_block->prev != prev_block ) { ffc0a2a8: 80 e6 00 0c lwz r7,12(r6) ffc0a2ac: 7f 87 00 00 cmpw cr7,r7,r0 return false; } prev_block = free_block; free_block = free_block->next; ffc0a2b0: 7c c0 33 78 mr r0,r6 ); return false; } if ( free_block->prev != prev_block ) { ffc0a2b4: 41 be 00 14 beq+ cr7,ffc0a2c8 <_Heap_Walk+0x284> (*printer)( ffc0a2b8: 3c a0 ff c2 lis r5,-62 ffc0a2bc: 7f c3 f3 78 mr r3,r30 ffc0a2c0: 38 a5 df 61 addi r5,r5,-8351 ffc0a2c4: 48 00 01 34 b ffc0a3f8 <_Heap_Walk+0x3b4> return false; } prev_block = free_block; free_block = free_block->next; ffc0a2c8: 80 c6 00 08 lwz r6,8(r6) const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { ffc0a2cc: 7f 86 e8 00 cmpw cr7,r6,r29 ); return false; } if ( ffc0a2d0: 39 46 00 08 addi r10,r6,8 ffc0a2d4: 39 60 00 00 li r11,0 const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { ffc0a2d8: 40 9e ff 54 bne+ cr7,ffc0a22c <_Heap_Walk+0x1e8> ffc0a2dc: 48 00 02 4c b ffc0a528 <_Heap_Walk+0x4e4> - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; ffc0a2e0: 83 1f 00 04 lwz r24,4(r31) uintptr_t const block_size = _Heap_Block_size( block ); bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { ffc0a2e4: 73 09 00 01 andi. r9,r24,1 ffc0a2e8: 57 18 00 3c rlwinm r24,r24,0,0,30 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc0a2ec: 7f 9f c2 14 add r28,r31,r24 ffc0a2f0: 41 82 00 2c beq- ffc0a31c <_Heap_Walk+0x2d8> (*printer)( ffc0a2f4: 80 01 00 18 lwz r0,24(r1) ffc0a2f8: 7f c3 f3 78 mr r3,r30 ffc0a2fc: 38 80 00 00 li r4,0 ffc0a300: 7e 85 a3 78 mr r5,r20 ffc0a304: 7c 09 03 a6 mtctr r0 ffc0a308: 7f e6 fb 78 mr r6,r31 ffc0a30c: 7f 07 c3 78 mr r7,r24 ffc0a310: 4c c6 31 82 crclr 4*cr1+eq ffc0a314: 4e 80 04 21 bctrl ffc0a318: 48 00 00 2c b ffc0a344 <_Heap_Walk+0x300> "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0a31c: 80 01 00 18 lwz r0,24(r1) ffc0a320: 7f c3 f3 78 mr r3,r30 ffc0a324: 38 80 00 00 li r4,0 ffc0a328: 81 1f 00 00 lwz r8,0(r31) ffc0a32c: 7e 65 9b 78 mr r5,r19 ffc0a330: 7c 09 03 a6 mtctr r0 ffc0a334: 7f e6 fb 78 mr r6,r31 ffc0a338: 7f 07 c3 78 mr r7,r24 ffc0a33c: 4c c6 31 82 crclr 4*cr1+eq ffc0a340: 4e 80 04 21 bctrl RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0a344: 81 3d 00 20 lwz r9,32(r29) ffc0a348: 38 00 00 00 li r0,0 ffc0a34c: 7f 89 e0 40 cmplw cr7,r9,r28 ffc0a350: 41 9d 00 14 bgt- cr7,ffc0a364 <_Heap_Walk+0x320> <== NEVER TAKEN ffc0a354: 80 1d 00 24 lwz r0,36(r29) ffc0a358: 7c 1c 00 10 subfc r0,r28,r0 ffc0a35c: 38 00 00 00 li r0,0 ffc0a360: 7c 00 01 14 adde r0,r0,r0 block_size, block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { ffc0a364: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a368: 40 be 00 14 bne+ cr7,ffc0a37c <_Heap_Walk+0x338> (*printer)( ffc0a36c: 3c a0 ff c2 lis r5,-62 ffc0a370: 7f c3 f3 78 mr r3,r30 ffc0a374: 38 a5 df cf addi r5,r5,-8241 ffc0a378: 48 00 00 78 b ffc0a3f0 <_Heap_Walk+0x3ac> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { ffc0a37c: 7c 18 d3 96 divwu r0,r24,r26 ffc0a380: 7c 00 d1 d6 mullw r0,r0,r26 ffc0a384: 7f 98 00 00 cmpw cr7,r24,r0 ffc0a388: 41 be 00 1c beq+ cr7,ffc0a3a4 <_Heap_Walk+0x360> (*printer)( ffc0a38c: 3c a0 ff c2 lis r5,-62 ffc0a390: 7f c3 f3 78 mr r3,r30 ffc0a394: 38 a5 df fc addi r5,r5,-8196 ffc0a398: 7f e6 fb 78 mr r6,r31 ffc0a39c: 7f 07 c3 78 mr r7,r24 ffc0a3a0: 48 00 00 58 b ffc0a3f8 <_Heap_Walk+0x3b4> ); return false; } if ( block_size < min_block_size ) { ffc0a3a4: 7f 98 d8 40 cmplw cr7,r24,r27 ffc0a3a8: 40 bc 00 34 bge+ cr7,ffc0a3dc <_Heap_Walk+0x398> (*printer)( ffc0a3ac: 80 01 00 18 lwz r0,24(r1) ffc0a3b0: 3c a0 ff c2 lis r5,-62 ffc0a3b4: 7f c3 f3 78 mr r3,r30 ffc0a3b8: 38 a5 e0 2a addi r5,r5,-8150 ffc0a3bc: 7c 09 03 a6 mtctr r0 ffc0a3c0: 7f e6 fb 78 mr r6,r31 ffc0a3c4: 7f 07 c3 78 mr r7,r24 ffc0a3c8: 7f 68 db 78 mr r8,r27 ffc0a3cc: 38 80 00 01 li r4,1 ffc0a3d0: 4c c6 31 82 crclr 4*cr1+eq ffc0a3d4: 4e 80 04 21 bctrl ffc0a3d8: 48 00 01 20 b ffc0a4f8 <_Heap_Walk+0x4b4> ); return false; } if ( next_block_begin <= block_begin ) { ffc0a3dc: 7f 9c f8 40 cmplw cr7,r28,r31 ffc0a3e0: 41 bd 00 30 bgt+ cr7,ffc0a410 <_Heap_Walk+0x3cc> (*printer)( ffc0a3e4: 3c a0 ff c2 lis r5,-62 ffc0a3e8: 7f c3 f3 78 mr r3,r30 ffc0a3ec: 38 a5 e0 55 addi r5,r5,-8107 ffc0a3f0: 7f e6 fb 78 mr r6,r31 ffc0a3f4: 7f 87 e3 78 mr r7,r28 ffc0a3f8: 80 01 00 18 lwz r0,24(r1) ffc0a3fc: 38 80 00 01 li r4,1 ffc0a400: 7c 09 03 a6 mtctr r0 ffc0a404: 4c c6 31 82 crclr 4*cr1+eq ffc0a408: 4e 80 04 21 bctrl ffc0a40c: 48 00 00 ec b ffc0a4f8 <_Heap_Walk+0x4b4> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { ffc0a410: 80 1c 00 04 lwz r0,4(r28) ffc0a414: 70 09 00 01 andi. r9,r0,1 ffc0a418: 40 82 01 08 bne- ffc0a520 <_Heap_Walk+0x4dc> return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0a41c: 80 1d 00 08 lwz r0,8(r29) ffc0a420: 7d c8 73 78 mr r8,r14 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0a424: 80 ff 00 0c lwz r7,12(r31) block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; ffc0a428: 82 bf 00 04 lwz r21,4(r31) return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0a42c: 7f 87 00 00 cmpw cr7,r7,r0 } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; ffc0a430: 80 1d 00 0c lwz r0,12(r29) - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; ffc0a434: 56 b8 00 3c rlwinm r24,r21,0,0,30 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc0a438: 7e df c2 14 add r22,r31,r24 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0a43c: 41 9e 00 14 beq- cr7,ffc0a450 <_Heap_Walk+0x40c> "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), ffc0a440: 7f 87 e8 00 cmpw cr7,r7,r29 ffc0a444: 7e e8 bb 78 mr r8,r23 ffc0a448: 40 be 00 08 bne+ cr7,ffc0a450 <_Heap_Walk+0x40c> ffc0a44c: 7d e8 7b 78 mr r8,r15 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0a450: 81 3f 00 08 lwz r9,8(r31) ffc0a454: 7e 0a 83 78 mr r10,r16 ffc0a458: 7f 89 00 00 cmpw cr7,r9,r0 ffc0a45c: 41 9e 00 14 beq- cr7,ffc0a470 <_Heap_Walk+0x42c> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0a460: 7f 89 e8 00 cmpw cr7,r9,r29 ffc0a464: 7e ea bb 78 mr r10,r23 ffc0a468: 40 be 00 08 bne+ cr7,ffc0a470 <_Heap_Walk+0x42c> ffc0a46c: 7e 2a 8b 78 mr r10,r17 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0a470: 80 01 00 18 lwz r0,24(r1) ffc0a474: 7f c3 f3 78 mr r3,r30 ffc0a478: 38 80 00 00 li r4,0 ffc0a47c: 7e 45 93 78 mr r5,r18 ffc0a480: 7c 09 03 a6 mtctr r0 ffc0a484: 7f e6 fb 78 mr r6,r31 ffc0a488: 4c c6 31 82 crclr 4*cr1+eq ffc0a48c: 4e 80 04 21 bctrl block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { ffc0a490: 81 16 00 00 lwz r8,0(r22) ffc0a494: 7f 98 40 00 cmpw cr7,r24,r8 ffc0a498: 41 9e 00 34 beq- cr7,ffc0a4cc <_Heap_Walk+0x488> (*printer)( ffc0a49c: 80 01 00 18 lwz r0,24(r1) ffc0a4a0: 3c a0 ff c2 lis r5,-62 ffc0a4a4: 7f c3 f3 78 mr r3,r30 ffc0a4a8: 38 a5 e0 de addi r5,r5,-7970 ffc0a4ac: 7c 09 03 a6 mtctr r0 ffc0a4b0: 7f e6 fb 78 mr r6,r31 ffc0a4b4: 7f 07 c3 78 mr r7,r24 ffc0a4b8: 7e c9 b3 78 mr r9,r22 ffc0a4bc: 38 80 00 01 li r4,1 ffc0a4c0: 4c c6 31 82 crclr 4*cr1+eq ffc0a4c4: 4e 80 04 21 bctrl ffc0a4c8: 48 00 00 30 b ffc0a4f8 <_Heap_Walk+0x4b4> ); return false; } if ( !prev_used ) { ffc0a4cc: 72 a9 00 01 andi. r9,r21,1 ffc0a4d0: 40 a2 00 30 bne+ ffc0a500 <_Heap_Walk+0x4bc> (*printer)( ffc0a4d4: 3c a0 ff c2 lis r5,-62 ffc0a4d8: 7f c3 f3 78 mr r3,r30 ffc0a4dc: 38 a5 e1 17 addi r5,r5,-7913 ffc0a4e0: 7f e6 fb 78 mr r6,r31 ffc0a4e4: 80 01 00 18 lwz r0,24(r1) ffc0a4e8: 38 80 00 01 li r4,1 ffc0a4ec: 7c 09 03 a6 mtctr r0 ffc0a4f0: 4c c6 31 82 crclr 4*cr1+eq ffc0a4f4: 4e 80 04 21 bctrl ffc0a4f8: 38 60 00 00 li r3,0 ffc0a4fc: 48 00 00 78 b ffc0a574 <_Heap_Walk+0x530> ffc0a500: 81 3d 00 08 lwz r9,8(r29) ffc0a504: 48 00 00 0c b ffc0a510 <_Heap_Walk+0x4cc> { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { if ( free_block == block ) { ffc0a508: 41 9a 00 18 beq- cr6,ffc0a520 <_Heap_Walk+0x4dc> return true; } free_block = free_block->next; ffc0a50c: 81 29 00 08 lwz r9,8(r9) ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { ffc0a510: 7f 89 e8 00 cmpw cr7,r9,r29 if ( free_block == block ) { ffc0a514: 7f 09 f8 00 cmpw cr6,r9,r31 ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { ffc0a518: 40 9e ff f0 bne+ cr7,ffc0a508 <_Heap_Walk+0x4c4> ffc0a51c: 48 00 00 b0 b ffc0a5cc <_Heap_Walk+0x588> ffc0a520: 7f 9f e3 78 mr r31,r28 ffc0a524: 48 00 00 44 b ffc0a568 <_Heap_Walk+0x524> "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0a528: 3e 60 ff c2 lis r19,-62 bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { (*printer)( ffc0a52c: 3e 80 ff c2 lis r20,-62 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0a530: 3e 40 ff c2 lis r18,-62 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0a534: 3e 20 ff c2 lis r17,-62 ffc0a538: 3e e0 ff c2 lis r23,-62 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0a53c: 3e 00 ff c2 lis r16,-62 "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), ffc0a540: 3d e0 ff c2 lis r15,-62 ffc0a544: 3d c0 ff c2 lis r14,-62 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0a548: 3a 73 df aa addi r19,r19,-8278 bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { (*printer)( ffc0a54c: 3a 94 df 93 addi r20,r20,-8301 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0a550: 3a 52 e0 b2 addi r18,r18,-8014 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0a554: 3a 31 e0 a8 addi r17,r17,-8024 ffc0a558: 3a f7 dc bc addi r23,r23,-9028 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0a55c: 3a 10 e0 9e addi r16,r16,-8034 "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), ffc0a560: 39 ef e0 94 addi r15,r15,-8044 ffc0a564: 39 ce e0 89 addi r14,r14,-8055 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { ffc0a568: 7f 9f c8 00 cmpw cr7,r31,r25 ffc0a56c: 40 9e fd 74 bne+ cr7,ffc0a2e0 <_Heap_Walk+0x29c> ffc0a570: 38 60 00 01 li r3,1 block = next_block; } return true; } ffc0a574: 80 01 00 6c lwz r0,108(r1) ffc0a578: 81 c1 00 20 lwz r14,32(r1) ffc0a57c: 7c 08 03 a6 mtlr r0 ffc0a580: 81 e1 00 24 lwz r15,36(r1) ffc0a584: 82 01 00 28 lwz r16,40(r1) ffc0a588: 82 21 00 2c lwz r17,44(r1) ffc0a58c: 82 41 00 30 lwz r18,48(r1) ffc0a590: 82 61 00 34 lwz r19,52(r1) ffc0a594: 82 81 00 38 lwz r20,56(r1) ffc0a598: 82 a1 00 3c lwz r21,60(r1) ffc0a59c: 82 c1 00 40 lwz r22,64(r1) ffc0a5a0: 82 e1 00 44 lwz r23,68(r1) ffc0a5a4: 83 01 00 48 lwz r24,72(r1) ffc0a5a8: 83 21 00 4c lwz r25,76(r1) ffc0a5ac: 83 41 00 50 lwz r26,80(r1) ffc0a5b0: 83 61 00 54 lwz r27,84(r1) ffc0a5b4: 83 81 00 58 lwz r28,88(r1) ffc0a5b8: 83 a1 00 5c lwz r29,92(r1) ffc0a5bc: 83 c1 00 60 lwz r30,96(r1) ffc0a5c0: 83 e1 00 64 lwz r31,100(r1) ffc0a5c4: 38 21 00 68 addi r1,r1,104 ffc0a5c8: 4e 80 00 20 blr return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( ffc0a5cc: 3c a0 ff c2 lis r5,-62 ffc0a5d0: 7f c3 f3 78 mr r3,r30 ffc0a5d4: 38 a5 e1 46 addi r5,r5,-7866 ffc0a5d8: 4b ff ff 08 b ffc0a4e0 <_Heap_Walk+0x49c> ffc0a5dc <_Heap_Walk_print>: { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0a5dc: 94 21 ff 88 stwu r1,-120(r1) ffc0a5e0: 7c 08 02 a6 mflr r0 ffc0a5e4: 93 e1 00 74 stw r31,116(r1) ffc0a5e8: 90 01 00 7c stw r0,124(r1) ffc0a5ec: 7c 60 1b 78 mr r0,r3 ffc0a5f0: 90 c1 00 1c stw r6,28(r1) ffc0a5f4: 90 e1 00 20 stw r7,32(r1) ffc0a5f8: 91 01 00 24 stw r8,36(r1) ffc0a5fc: 91 21 00 28 stw r9,40(r1) ffc0a600: 91 41 00 2c stw r10,44(r1) ffc0a604: 40 86 00 24 bne- cr1,ffc0a628 <_Heap_Walk_print+0x4c> <== ALWAYS TAKEN ffc0a608: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0a60c: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0a610: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0a614: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0a618: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0a61c: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0a620: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0a624: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list ap; if ( error ) { ffc0a628: 2f 84 00 00 cmpwi cr7,r4,0 { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0a62c: 7c bf 2b 78 mr r31,r5 va_list ap; if ( error ) { ffc0a630: 41 be 00 10 beq+ cr7,ffc0a640 <_Heap_Walk_print+0x64> printk( "FAIL[%d]: ", source ); ffc0a634: 3c 60 ff c2 lis r3,-62 ffc0a638: 38 63 e1 71 addi r3,r3,-7823 ffc0a63c: 48 00 00 0c b ffc0a648 <_Heap_Walk_print+0x6c> } else { printk( "PASS[%d]: ", source ); ffc0a640: 3c 60 ff c2 lis r3,-62 ffc0a644: 38 63 e1 7c addi r3,r3,-7812 ffc0a648: 7c 04 03 78 mr r4,r0 ffc0a64c: 4c c6 31 82 crclr 4*cr1+eq ffc0a650: 4b ff b4 a5 bl ffc05af4 } va_start( ap, fmt ); ffc0a654: 38 00 00 03 li r0,3 ffc0a658: 98 01 00 08 stb r0,8(r1) ffc0a65c: 38 00 00 00 li r0,0 vprintk( fmt, ap ); ffc0a660: 7f e3 fb 78 mr r3,r31 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0a664: 98 01 00 09 stb r0,9(r1) ffc0a668: 38 01 00 80 addi r0,r1,128 vprintk( fmt, ap ); ffc0a66c: 38 81 00 08 addi r4,r1,8 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0a670: 90 01 00 0c stw r0,12(r1) ffc0a674: 38 01 00 10 addi r0,r1,16 ffc0a678: 90 01 00 10 stw r0,16(r1) vprintk( fmt, ap ); ffc0a67c: 4b ff d4 d5 bl ffc07b50 va_end( ap ); } ffc0a680: 80 01 00 7c lwz r0,124(r1) ffc0a684: 83 e1 00 74 lwz r31,116(r1) ffc0a688: 38 21 00 78 addi r1,r1,120 ffc0a68c: 7c 08 03 a6 mtlr r0 ffc0a690: 4e 80 00 20 blr ffc0864c <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { ffc0864c: 94 21 ff d8 stwu r1,-40(r1) ffc08650: 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; ffc08654: 3d 20 00 00 lis r9,0 * workspace. * */ void _IO_Manager_initialization(void) { ffc08658: 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; ffc0865c: 39 29 20 a0 addi r9,r9,8352 * workspace. * */ void _IO_Manager_initialization(void) { ffc08660: 93 c1 00 20 stw r30,32(r1) ffc08664: 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; ffc08668: 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; ffc0866c: 83 e9 00 30 lwz r31,48(r9) * workspace. * */ void _IO_Manager_initialization(void) { ffc08670: 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 ) ffc08674: 7f 9e f8 40 cmplw cr7,r30,r31 * workspace. * */ void _IO_Manager_initialization(void) { ffc08678: 93 81 00 18 stw r28,24(r1) ffc0867c: 3f 80 00 00 lis r28,0 ffc08680: 93 a1 00 1c stw r29,28(r1) ffc08684: 3f a0 00 00 lis r29,0 ffc08688: 93 21 00 0c stw r25,12(r1) ffc0868c: 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; ffc08690: 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 ) ffc08694: 40 9d 00 40 ble- cr7,ffc086d4 <_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 ) ffc08698: 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 *) ffc0869c: 7f 23 cb 78 mr r3,r25 ffc086a0: 48 00 35 d9 bl ffc0bc78 <_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( ffc086a4: 7f 25 cb 78 mr r5,r25 ffc086a8: 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; ffc086ac: 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 *) ffc086b0: 7c 7a 1b 78 mr r26,r3 ffc086b4: 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( ffc086b8: 48 00 8c 19 bl ffc112d0 ffc086bc: 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]; ffc086c0: 39 40 00 00 li r10,0 ffc086c4: 3b ff 00 01 addi r31,r31,1 ffc086c8: 40 be 00 4c bne+ cr7,ffc08714 <_IO_Manager_initialization+0xc8><== ALWAYS TAKEN ffc086cc: 3b e0 00 01 li r31,1 <== NOT EXECUTED ffc086d0: 48 00 00 44 b ffc08714 <_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; ffc086d4: 93 7c 27 a8 stw r27,10152(r28) _IO_Number_of_drivers = number_of_drivers; ffc086d8: 93 fd 27 a4 stw r31,10148(r29) return; ffc086dc: 48 00 00 48 b ffc08724 <_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]; ffc086e0: 7c c9 50 6e lwzux r6,r9,r10 ffc086e4: 81 09 00 08 lwz r8,8(r9) ffc086e8: 80 09 00 0c lwz r0,12(r9) ffc086ec: 80 e9 00 04 lwz r7,4(r9) ffc086f0: 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++ ) ffc086f4: 39 4a 00 18 addi r10,r10,24 _IO_Driver_address_table[index] = driver_table[index]; ffc086f8: 90 eb 00 04 stw r7,4(r11) ffc086fc: 91 0b 00 08 stw r8,8(r11) ffc08700: 90 0b 00 0c stw r0,12(r11) ffc08704: 81 09 00 14 lwz r8,20(r9) ffc08708: 80 09 00 10 lwz r0,16(r9) ffc0870c: 91 0b 00 14 stw r8,20(r11) ffc08710: 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++ ) ffc08714: 37 ff ff ff addic. r31,r31,-1 _IO_Driver_address_table[index] = driver_table[index]; ffc08718: 7f 69 db 78 mr r9,r27 ffc0871c: 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++ ) ffc08720: 40 82 ff c0 bne+ ffc086e0 <_IO_Manager_initialization+0x94> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } ffc08724: 80 01 00 2c lwz r0,44(r1) ffc08728: 83 21 00 0c lwz r25,12(r1) ffc0872c: 7c 08 03 a6 mtlr r0 ffc08730: 83 41 00 10 lwz r26,16(r1) ffc08734: 83 61 00 14 lwz r27,20(r1) ffc08738: 83 81 00 18 lwz r28,24(r1) ffc0873c: 83 a1 00 1c lwz r29,28(r1) ffc08740: 83 c1 00 20 lwz r30,32(r1) ffc08744: 83 e1 00 24 lwz r31,36(r1) ffc08748: 38 21 00 28 addi r1,r1,40 ffc0874c: 4e 80 00 20 blr ffc093c0 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc093c0: 94 21 ff f0 stwu r1,-16(r1) ffc093c4: 7c 08 02 a6 mflr r0 _Internal_errors_What_happened.the_source = the_source; ffc093c8: 3d 60 00 00 lis r11,0 ffc093cc: 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 ) { ffc093d0: 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; ffc093d4: 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; ffc093d8: 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 ) { ffc093dc: 93 e1 00 0c stw r31,12(r1) ffc093e0: 7c bf 2b 78 mr r31,r5 _Internal_errors_What_happened.the_source = the_source; ffc093e4: 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 ); ffc093e8: 48 00 23 19 bl ffc0b700 <_User_extensions_Fatal> RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; ffc093ec: 38 00 00 05 li r0,5 ffc093f0: 3d 20 00 00 lis r9,0 _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); ffc093f4: 7f e3 fb 78 mr r3,r31 ffc093f8: 90 09 27 90 stw r0,10128(r9) ffc093fc: 4b ff a3 55 bl ffc03750 <_BSP_Fatal_error> ffc09400: 48 00 00 00 b ffc09400 <_Internal_error_Occurred+0x40><== NOT EXECUTED ffc09420 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc09420: 94 21 ff f0 stwu r1,-16(r1) ffc09424: 7c 08 02 a6 mflr r0 ffc09428: 90 01 00 14 stw r0,20(r1) * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) ffc0942c: 80 03 00 18 lwz r0,24(r3) */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc09430: 93 e1 00 0c stw r31,12(r1) ffc09434: 7c 7f 1b 78 mr r31,r3 * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) ffc09438: 2f 80 00 00 cmpwi cr7,r0,0 */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc0943c: 93 c1 00 08 stw r30,8(r1) * If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 ) ffc09440: 38 60 00 00 li r3,0 ffc09444: 41 be 00 70 beq+ cr7,ffc094b4 <_Objects_Allocate+0x94> <== NEVER TAKEN /* * OK. The manager should be initialized and configured to have objects. * With any luck, it is safe to attempt to allocate an object. */ the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); ffc09448: 3b df 00 20 addi r30,r31,32 ffc0944c: 7f c3 f3 78 mr r3,r30 ffc09450: 4b ff f5 f9 bl ffc08a48 <_Chain_Get> if ( information->auto_extend ) { ffc09454: 88 1f 00 12 lbz r0,18(r31) ffc09458: 2f 80 00 00 cmpwi cr7,r0,0 ffc0945c: 41 9e 00 58 beq- cr7,ffc094b4 <_Objects_Allocate+0x94> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { ffc09460: 2f 83 00 00 cmpwi cr7,r3,0 ffc09464: 40 be 00 1c bne+ cr7,ffc09480 <_Objects_Allocate+0x60> _Objects_Extend_information( information ); ffc09468: 7f e3 fb 78 mr r3,r31 ffc0946c: 48 00 00 95 bl ffc09500 <_Objects_Extend_information> the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); ffc09470: 7f c3 f3 78 mr r3,r30 ffc09474: 4b ff f5 d5 bl ffc08a48 <_Chain_Get> } if ( the_object ) { ffc09478: 2c 03 00 00 cmpwi r3,0 ffc0947c: 41 a2 00 38 beq+ ffc094b4 <_Objects_Allocate+0x94> uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - ffc09480: a1 63 00 0a lhz r11,10(r3) ffc09484: a0 1f 00 0a lhz r0,10(r31) _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; ffc09488: a1 3f 00 14 lhz r9,20(r31) } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - ffc0948c: 7c 00 58 50 subf r0,r0,r11 _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; information->inactive--; ffc09490: a1 7f 00 2c lhz r11,44(r31) block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; ffc09494: 7c 00 4b 96 divwu r0,r0,r9 ffc09498: 81 3f 00 30 lwz r9,48(r31) ffc0949c: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc094a0: 7d 49 00 2e lwzx r10,r9,r0 information->inactive--; ffc094a4: 39 6b ff ff addi r11,r11,-1 ffc094a8: b1 7f 00 2c sth r11,44(r31) block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; ffc094ac: 39 4a ff ff addi r10,r10,-1 ffc094b0: 7d 49 01 2e stwx r10,r9,r0 information->inactive--; } } return the_object; } ffc094b4: 80 01 00 14 lwz r0,20(r1) ffc094b8: 83 c1 00 08 lwz r30,8(r1) ffc094bc: 7c 08 03 a6 mtlr r0 ffc094c0: 83 e1 00 0c lwz r31,12(r1) ffc094c4: 38 21 00 10 addi r1,r1,16 ffc094c8: 4e 80 00 20 blr ffc09500 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { ffc09500: 94 21 ff b8 stwu r1,-72(r1) ffc09504: 7c 08 02 a6 mflr r0 ffc09508: 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 ) ffc0950c: 81 63 00 34 lwz r11,52(r3) */ void _Objects_Extend_information( Objects_Information *information ) { ffc09510: 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 ) ffc09514: 2f 8b 00 00 cmpwi cr7,r11,0 */ void _Objects_Extend_information( Objects_Information *information ) { ffc09518: 93 e1 00 44 stw r31,68(r1) ffc0951c: 7c 7f 1b 78 mr r31,r3 ffc09520: 92 a1 00 1c stw r21,28(r1) ffc09524: 92 c1 00 20 stw r22,32(r1) ffc09528: 92 e1 00 24 stw r23,36(r1) ffc0952c: 93 01 00 28 stw r24,40(r1) ffc09530: 93 21 00 2c stw r25,44(r1) ffc09534: 93 41 00 30 stw r26,48(r1) ffc09538: 93 81 00 38 stw r28,56(r1) ffc0953c: 93 a1 00 3c stw r29,60(r1) ffc09540: 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 ); ffc09544: a3 63 00 0a lhz r27,10(r3) index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) ffc09548: 40 be 00 14 bne+ cr7,ffc0955c <_Objects_Extend_information+0x5c> ffc0954c: 7f 7e db 78 mr r30,r27 ffc09550: 3b 80 00 00 li r28,0 ffc09554: 3b 40 00 00 li r26,0 ffc09558: 48 00 00 4c b ffc095a4 <_Objects_Extend_information+0xa4> block_count = 0; else { block_count = information->maximum / information->allocation_size; ffc0955c: a1 23 00 14 lhz r9,20(r3) ffc09560: 7f 7e db 78 mr r30,r27 ffc09564: a3 43 00 10 lhz r26,16(r3) ffc09568: 3b 80 00 00 li r28,0 ffc0956c: 7f 5a 4b 96 divwu r26,r26,r9 ffc09570: 2f 9a 00 00 cmpwi cr7,r26,0 ffc09574: 38 1a 00 01 addi r0,r26,1 ffc09578: 40 be 00 20 bne+ cr7,ffc09598 <_Objects_Extend_information+0x98><== ALWAYS TAKEN ffc0957c: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc09580: 48 00 00 18 b ffc09598 <_Objects_Extend_information+0x98><== NOT EXECUTED for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) ffc09584: 7d 4b 50 2e lwzx r10,r11,r10 ffc09588: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0958c: 41 9e 00 18 beq- cr7,ffc095a4 <_Objects_Extend_information+0xa4> ffc09590: 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++ ) { ffc09594: 3b 9c 00 01 addi r28,r28,1 ffc09598: 34 00 ff ff addic. r0,r0,-1 if ( information->object_blocks[ block ] == NULL ) ffc0959c: 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++ ) { ffc095a0: 40 82 ff e4 bne+ ffc09584 <_Objects_Extend_information+0x84> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; ffc095a4: a0 1f 00 14 lhz r0,20(r31) ffc095a8: a2 df 00 10 lhz r22,16(r31) ffc095ac: 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 ) { ffc095b0: 2b 96 ff ff cmplwi cr7,r22,65535 ffc095b4: 41 9d 02 1c bgt- cr7,ffc097d0 <_Objects_Extend_information+0x2d0><== NEVER TAKEN /* * 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 ) { ffc095b8: 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; ffc095bc: 80 7f 00 18 lwz r3,24(r31) if ( information->auto_extend ) { ffc095c0: 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; ffc095c4: 7c 60 19 d6 mullw r3,r0,r3 if ( information->auto_extend ) { ffc095c8: 41 9e 00 14 beq- cr7,ffc095dc <_Objects_Extend_information+0xdc> new_object_block = _Workspace_Allocate( block_size ); ffc095cc: 48 00 26 f5 bl ffc0bcc0 <_Workspace_Allocate> if ( !new_object_block ) ffc095d0: 7c 7d 1b 79 mr. r29,r3 ffc095d4: 40 a2 00 10 bne+ ffc095e4 <_Objects_Extend_information+0xe4> ffc095d8: 48 00 01 f8 b ffc097d0 <_Objects_Extend_information+0x2d0> return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); ffc095dc: 48 00 26 9d bl ffc0bc78 <_Workspace_Allocate_or_fatal_error> ffc095e0: 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 ) { ffc095e4: a0 1f 00 10 lhz r0,16(r31) ffc095e8: 7f 9e 00 40 cmplw cr7,r30,r0 ffc095ec: 41 9c 01 5c blt- cr7,ffc09748 <_Objects_Extend_information+0x248> */ /* * Up the block count and maximum */ block_count++; ffc095f0: 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 ); ffc095f4: 1c 19 00 03 mulli r0,r25,3 ffc095f8: 7c 76 da 14 add r3,r22,r27 ffc095fc: 7c 63 02 14 add r3,r3,r0 ffc09600: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc09604: 48 00 26 bd bl ffc0bcc0 <_Workspace_Allocate> if ( !object_blocks ) { ffc09608: 7c 77 1b 79 mr. r23,r3 ffc0960c: 40 a2 00 10 bne+ ffc0961c <_Objects_Extend_information+0x11c> _Workspace_Free( new_object_block ); ffc09610: 7f a3 eb 78 mr r3,r29 ffc09614: 48 00 26 e1 bl ffc0bcf4 <_Workspace_Free> return; ffc09618: 48 00 01 b8 b ffc097d0 <_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 ) { ffc0961c: a0 1f 00 10 lhz r0,16(r31) } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( ffc09620: 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); ffc09624: 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 ) { ffc09628: 7f 80 d8 40 cmplw cr7,r0,r27 ffc0962c: 7f 38 ca 14 add r25,r24,r25 ffc09630: 41 9d 00 20 bgt- cr7,ffc09650 <_Objects_Extend_information+0x150> ffc09634: 2f 9b 00 00 cmpwi cr7,r27,0 ffc09638: 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; ffc0963c: 38 00 00 00 li r0,0 ffc09640: 3b 7b 00 01 addi r27,r27,1 ffc09644: 40 be 00 50 bne+ cr7,ffc09694 <_Objects_Extend_information+0x194><== ALWAYS TAKEN ffc09648: 3b 60 00 01 li r27,1 <== NOT EXECUTED ffc0964c: 48 00 00 48 b ffc09694 <_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*) ); ffc09650: 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, ffc09654: 80 9f 00 34 lwz r4,52(r31) ffc09658: 7e a5 ab 78 mr r5,r21 ffc0965c: 48 00 7b 75 bl ffc111d0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, ffc09660: 80 9f 00 30 lwz r4,48(r31) ffc09664: 7e a5 ab 78 mr r5,r21 ffc09668: 7f 03 c3 78 mr r3,r24 ffc0966c: 48 00 7b 65 bl ffc111d0 information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, ffc09670: a0 1f 00 10 lhz r0,16(r31) ffc09674: 80 9f 00 1c lwz r4,28(r31) ffc09678: 7f 23 cb 78 mr r3,r25 ffc0967c: 7f 7b 02 14 add r27,r27,r0 ffc09680: 57 65 10 3a rlwinm r5,r27,2,0,29 ffc09684: 48 00 7b 4d bl ffc111d0 ffc09688: 48 00 00 18 b ffc096a0 <_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; ffc0968c: 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++ ) { ffc09690: 39 29 00 01 addi r9,r9,1 ffc09694: 37 7b ff ff addic. r27,r27,-1 local_table[ index ] = NULL; ffc09698: 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++ ) { ffc0969c: 40 82 ff f0 bne+ ffc0968c <_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 ); ffc096a0: a1 5f 00 14 lhz r10,20(r31) } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc096a4: 38 00 00 00 li r0,0 ffc096a8: 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; ffc096ac: 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; ffc096b0: 7c 18 d1 2e stwx r0,r24,r26 ffc096b4: 7f 9e 58 40 cmplw cr7,r30,r11 for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc096b8: 57 c9 10 3a rlwinm r9,r30,2,0,29 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc096bc: 7c 17 d1 2e stwx r0,r23,r26 inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc096c0: 7d 39 4a 14 add r9,r25,r9 index++ ) { local_table[ index ] = NULL; ffc096c4: 38 0a 00 01 addi r0,r10,1 ffc096c8: 39 40 00 00 li r10,0 ffc096cc: 41 9d 00 0c bgt- cr7,ffc096d8 <_Objects_Extend_information+0x1d8><== NEVER TAKEN ffc096d0: 2f 8b 00 00 cmpwi cr7,r11,0 ffc096d4: 40 be 00 14 bne+ cr7,ffc096e8 <_Objects_Extend_information+0x1e8><== ALWAYS TAKEN ffc096d8: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc096dc: 48 00 00 0c b ffc096e8 <_Objects_Extend_information+0x1e8><== NOT EXECUTED ffc096e0: 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++ ) { ffc096e4: 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 ; ffc096e8: 34 00 ff ff addic. r0,r0,-1 ffc096ec: 40 82 ff f4 bne+ ffc096e0 <_Objects_Extend_information+0x1e0> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc096f0: 7c 00 00 a6 mfmsr r0 ffc096f4: 7d 30 42 a6 mfsprg r9,0 ffc096f8: 7c 09 48 78 andc r9,r0,r9 ffc096fc: 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( ffc09700: 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; ffc09704: 56 d6 04 3e clrlwi r22,r22,16 information->maximum_id = _Objects_Build_id( ffc09708: a1 3f 00 04 lhz r9,4(r31) ffc0970c: 55 6b c0 0e rlwinm r11,r11,24,0,7 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; ffc09710: 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( ffc09714: 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; ffc09718: 93 1f 00 30 stw r24,48(r31) information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc0971c: 55 29 d8 08 rlwinm r9,r9,27,0,4 ffc09720: 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; ffc09724: 93 3f 00 1c stw r25,28(r31) information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc09728: 7d 29 b3 78 or r9,r9,r22 ffc0972c: 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; ffc09730: b2 df 00 10 sth r22,16(r31) _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; ffc09734: 92 ff 00 34 stw r23,52(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09738: 7c 00 01 24 mtmsr r0 information->maximum ); _ISR_Enable( level ); if ( old_tables ) ffc0973c: 2f 83 00 00 cmpwi cr7,r3,0 ffc09740: 41 9e 00 08 beq- cr7,ffc09748 <_Objects_Extend_information+0x248> _Workspace_Free( old_tables ); ffc09744: 48 00 25 b1 bl ffc0bcf4 <_Workspace_Free> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; ffc09748: 81 3f 00 34 lwz r9,52(r31) ffc0974c: 57 9c 10 3a rlwinm r28,r28,2,0,29 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc09750: 3b 61 00 08 addi r27,r1,8 ffc09754: 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; ffc09758: 7f a9 e1 2e stwx r29,r9,r28 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc0975c: 7f a4 eb 78 mr r4,r29 ffc09760: 7f 63 db 78 mr r3,r27 ffc09764: 80 df 00 18 lwz r6,24(r31) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc09768: 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( ffc0976c: 48 00 44 79 bl ffc0dbe4 <_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 ) { ffc09770: 48 00 00 2c b ffc0979c <_Objects_Extend_information+0x29c> the_object->id = _Objects_Build_id( ffc09774: 81 7f 00 00 lwz r11,0(r31) ffc09778: a0 1f 00 04 lhz r0,4(r31) ffc0977c: 55 6b c0 0e rlwinm r11,r11,24,0,7 ffc09780: 65 6b 00 01 oris r11,r11,1 ffc09784: 54 00 d8 08 rlwinm r0,r0,27,0,4 ffc09788: 7d 60 03 78 or r0,r11,r0 ffc0978c: 7c 00 f3 78 or r0,r0,r30 ffc09790: 90 09 00 08 stw r0,8(r9) index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; ffc09794: 3b de 00 01 addi r30,r30,1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc09798: 4b ff f2 81 bl ffc08a18 <_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 ) { ffc0979c: 7f 63 db 78 mr r3,r27 ffc097a0: 4b ff f2 a9 bl ffc08a48 <_Chain_Get> ffc097a4: 7c 69 1b 79 mr. r9,r3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc097a8: 7f a3 eb 78 mr r3,r29 ffc097ac: 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 ) { ffc097b0: 40 82 ff c4 bne+ ffc09774 <_Objects_Extend_information+0x274> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc097b4: a0 1f 00 14 lhz r0,20(r31) information->inactive = ffc097b8: a1 3f 00 2c lhz r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc097bc: 81 7f 00 30 lwz r11,48(r31) information->inactive = ffc097c0: 7d 20 4a 14 add r9,r0,r9 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc097c4: 54 00 04 3e clrlwi r0,r0,16 information->inactive = ffc097c8: b1 3f 00 2c sth r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc097cc: 7c 0b e1 2e stwx r0,r11,r28 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } ffc097d0: 80 01 00 4c lwz r0,76(r1) ffc097d4: 82 a1 00 1c lwz r21,28(r1) ffc097d8: 7c 08 03 a6 mtlr r0 ffc097dc: 82 c1 00 20 lwz r22,32(r1) ffc097e0: 82 e1 00 24 lwz r23,36(r1) ffc097e4: 83 01 00 28 lwz r24,40(r1) ffc097e8: 83 21 00 2c lwz r25,44(r1) ffc097ec: 83 41 00 30 lwz r26,48(r1) ffc097f0: 83 61 00 34 lwz r27,52(r1) ffc097f4: 83 81 00 38 lwz r28,56(r1) ffc097f8: 83 a1 00 3c lwz r29,60(r1) ffc097fc: 83 c1 00 40 lwz r30,64(r1) ffc09800: 83 e1 00 44 lwz r31,68(r1) ffc09804: 38 21 00 48 addi r1,r1,72 ffc09808: 4e 80 00 20 blr ffc098d8 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { ffc098d8: 94 21 ff f0 stwu r1,-16(r1) ffc098dc: 7c 08 02 a6 mflr r0 ffc098e0: 93 e1 00 0c stw r31,12(r1) Objects_Information *info; int the_class_api_maximum; if ( !the_class ) ffc098e4: 7c 9f 23 79 mr. r31,r4 Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { ffc098e8: 93 c1 00 08 stw r30,8(r1) ffc098ec: 7c 7e 1b 78 mr r30,r3 ffc098f0: 90 01 00 14 stw r0,20(r1) Objects_Information *info; int the_class_api_maximum; if ( !the_class ) ffc098f4: 41 a2 00 4c beq+ ffc09940 <_Objects_Get_information+0x68> /* * This call implicitly validates the_api so we do not call * _Objects_Is_api_valid above here. */ the_class_api_maximum = _Objects_API_maximum_class( the_api ); ffc098f8: 48 00 49 59 bl ffc0e250 <_Objects_API_maximum_class> if ( the_class_api_maximum == 0 ) ffc098fc: 2c 03 00 00 cmpwi r3,0 ffc09900: 41 a2 00 40 beq+ ffc09940 <_Objects_Get_information+0x68> return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) ffc09904: 7f 9f 18 40 cmplw cr7,r31,r3 ffc09908: 41 bd 00 38 bgt+ cr7,ffc09940 <_Objects_Get_information+0x68> return NULL; if ( !_Objects_Information_table[ the_api ] ) ffc0990c: 3d 20 00 00 lis r9,0 ffc09910: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc09914: 39 29 2b 80 addi r9,r9,11136 ffc09918: 7d 29 f0 2e lwzx r9,r9,r30 ffc0991c: 2f 89 00 00 cmpwi cr7,r9,0 ffc09920: 41 be 00 20 beq+ cr7,ffc09940 <_Objects_Get_information+0x68><== NEVER TAKEN return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; ffc09924: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc09928: 7c 69 f8 2e lwzx r3,r9,r31 if ( !info ) ffc0992c: 2f 83 00 00 cmpwi cr7,r3,0 ffc09930: 41 be 00 14 beq+ cr7,ffc09944 <_Objects_Get_information+0x6c><== NEVER TAKEN * In a multprocessing configuration, we may access remote objects. * Thus we may have 0 local instances and still have a valid object * pointer. */ #if !defined(RTEMS_MULTIPROCESSING) if ( info->maximum == 0 ) ffc09934: a0 03 00 10 lhz r0,16(r3) ffc09938: 2f 80 00 00 cmpwi cr7,r0,0 ffc0993c: 40 be 00 08 bne+ cr7,ffc09944 <_Objects_Get_information+0x6c> ffc09940: 38 60 00 00 li r3,0 return NULL; #endif return info; } ffc09944: 80 01 00 14 lwz r0,20(r1) ffc09948: 83 c1 00 08 lwz r30,8(r1) ffc0994c: 7c 08 03 a6 mtlr r0 ffc09950: 83 e1 00 0c lwz r31,12(r1) ffc09954: 38 21 00 10 addi r1,r1,16 ffc09958: 4e 80 00 20 blr ffc1c6d0 <_Objects_Get_no_protection>: /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; ffc1c6d0: 81 23 00 08 lwz r9,8(r3) if ( information->maximum >= index ) { ffc1c6d4: a0 03 00 10 lhz r0,16(r3) /* * You can't just extract the index portion or you can get tricked * by a value between 1 and maximum. */ index = id - information->minimum_id + 1; ffc1c6d8: 21 29 00 01 subfic r9,r9,1 ffc1c6dc: 7d 29 22 14 add r9,r9,r4 if ( information->maximum >= index ) { ffc1c6e0: 7f 80 48 40 cmplw cr7,r0,r9 ffc1c6e4: 41 9c 00 24 blt- cr7,ffc1c708 <_Objects_Get_no_protection+0x38> if ( (the_object = information->local_table[ index ]) != NULL ) { ffc1c6e8: 81 63 00 1c lwz r11,28(r3) ffc1c6ec: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc1c6f0: 7c 6b 48 2e lwzx r3,r11,r9 ffc1c6f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc1c6f8: 41 9e 00 10 beq- cr7,ffc1c708 <_Objects_Get_no_protection+0x38><== NEVER TAKEN *location = OBJECTS_LOCAL; ffc1c6fc: 38 00 00 00 li r0,0 ffc1c700: 90 05 00 00 stw r0,0(r5) return the_object; ffc1c704: 4e 80 00 20 blr /* * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; ffc1c708: 38 00 00 01 li r0,1 ffc1c70c: 90 05 00 00 stw r0,0(r5) ffc1c710: 38 60 00 00 li r3,0 return NULL; } ffc1c714: 4e 80 00 20 blr ffc0b3b0 <_Objects_Id_to_name>: /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc0b3b0: 2c 03 00 00 cmpwi r3,0 */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { ffc0b3b4: 94 21 ff e0 stwu r1,-32(r1) ffc0b3b8: 7c 08 02 a6 mflr r0 ffc0b3bc: 93 e1 00 1c stw r31,28(r1) ffc0b3c0: 7c 9f 23 78 mr r31,r4 ffc0b3c4: 90 01 00 24 stw r0,36(r1) /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc0b3c8: 41 82 00 0c beq- ffc0b3d4 <_Objects_Id_to_name+0x24> ffc0b3cc: 7c 64 1b 78 mr r4,r3 ffc0b3d0: 48 00 00 10 b ffc0b3e0 <_Objects_Id_to_name+0x30> ffc0b3d4: 3d 20 00 00 lis r9,0 ffc0b3d8: 81 29 27 98 lwz r9,10136(r9) ffc0b3dc: 80 89 00 08 lwz r4,8(r9) */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); ffc0b3e0: 54 89 47 7e rlwinm r9,r4,8,29,31 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) ffc0b3e4: 38 09 ff ff addi r0,r9,-1 ffc0b3e8: 2b 80 00 03 cmplwi cr7,r0,3 ffc0b3ec: 41 9d 00 3c bgt- cr7,ffc0b428 <_Objects_Id_to_name+0x78> ffc0b3f0: 48 00 00 50 b ffc0b440 <_Objects_Id_to_name+0x90> if ( !_Objects_Information_table[ the_api ] ) return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; ffc0b3f4: 54 80 3e 7a rlwinm r0,r4,7,25,29 ffc0b3f8: 7c 69 00 2e lwzx r3,r9,r0 if ( !information ) ffc0b3fc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b400: 41 9e 00 28 beq- cr7,ffc0b428 <_Objects_Id_to_name+0x78><== NEVER TAKEN #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); ffc0b404: 38 a1 00 08 addi r5,r1,8 ffc0b408: 4b ff ff 19 bl ffc0b320 <_Objects_Get> if ( !the_object ) ffc0b40c: 2c 03 00 00 cmpwi r3,0 ffc0b410: 41 82 00 18 beq- ffc0b428 <_Objects_Id_to_name+0x78> return OBJECTS_INVALID_ID; *name = the_object->name; ffc0b414: 80 03 00 0c lwz r0,12(r3) ffc0b418: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc0b41c: 48 00 0a 7d bl ffc0be98 <_Thread_Enable_dispatch> ffc0b420: 38 60 00 00 li r3,0 return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; ffc0b424: 48 00 00 08 b ffc0b42c <_Objects_Id_to_name+0x7c> ffc0b428: 38 60 00 03 li r3,3 } ffc0b42c: 80 01 00 24 lwz r0,36(r1) ffc0b430: 83 e1 00 1c lwz r31,28(r1) ffc0b434: 38 21 00 20 addi r1,r1,32 ffc0b438: 7c 08 03 a6 mtlr r0 ffc0b43c: 4e 80 00 20 blr the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) ffc0b440: 3d 60 00 00 lis r11,0 ffc0b444: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc0b448: 39 6b 2b e0 addi r11,r11,11232 ffc0b44c: 7d 2b 48 2e lwzx r9,r11,r9 ffc0b450: 2f 89 00 00 cmpwi cr7,r9,0 ffc0b454: 40 9e ff a0 bne+ cr7,ffc0b3f4 <_Objects_Id_to_name+0x44> ffc0b458: 4b ff ff d0 b ffc0b428 <_Objects_Id_to_name+0x78> ffc09a5c <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { ffc09a5c: 7c 08 02 a6 mflr r0 ffc09a60: 94 21 ff f8 stwu r1,-8(r1) information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; ffc09a64: 3d 40 00 00 lis r10,0 , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { ffc09a68: 90 01 00 0c stw r0,12(r1) /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; ffc09a6c: 54 c0 0f fe rlwinm r0,r6,1,31,31 maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { ffc09a70: 2f 80 00 00 cmpwi cr7,r0,0 information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; ffc09a74: 39 4a 2b 80 addi r10,r10,11136 uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->size = size; ffc09a78: 90 e3 00 18 stw r7,24(r3) information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; ffc09a7c: 54 8b 10 3a rlwinm r11,r4,2,0,29 ffc09a80: 7d 6a 58 2e lwzx r11,r10,r11 ffc09a84: 54 a8 10 3a rlwinm r8,r5,2,0,29 #endif information->the_api = the_api; information->the_class = the_class; information->size = size; information->local_table = 0; ffc09a88: 39 40 00 00 li r10,0 uint32_t maximum_per_allocation; #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; ffc09a8c: 90 83 00 00 stw r4,0(r3) /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; ffc09a90: 54 c6 00 7e clrlwi r6,r6,1 information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; ffc09a94: 7c 6b 41 2e stwx r3,r11,r8 /* * Set the maximum value to 0. It will be updated when objects are * added to the inactive set from _Objects_Extend_information() */ information->maximum = 0; ffc09a98: b1 43 00 10 sth r10,16(r3) #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; ffc09a9c: b0 a3 00 04 sth r5,4(r3) information->size = size; information->local_table = 0; ffc09aa0: 91 43 00 1c stw r10,28(r3) information->inactive_per_block = 0; ffc09aa4: 91 43 00 30 stw r10,48(r3) information->object_blocks = 0; ffc09aa8: 91 43 00 34 stw r10,52(r3) information->inactive = 0; ffc09aac: b1 43 00 2c sth r10,44(r3) _Objects_Information_table[ the_api ][ the_class ] = information; /* * Are we operating in limited or unlimited (e.g. auto-extend) mode. */ information->auto_extend = ffc09ab0: 98 03 00 12 stb r0,18(r3) maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { ffc09ab4: 41 9e 00 1c beq- cr7,ffc09ad0 <_Objects_Initialize_information+0x74> ffc09ab8: 2f 86 00 00 cmpwi cr7,r6,0 ffc09abc: 40 be 00 14 bne+ cr7,ffc09ad0 <_Objects_Initialize_information+0x74> _Internal_error_Occurred( ffc09ac0: 38 60 00 00 li r3,0 ffc09ac4: 38 80 00 01 li r4,1 ffc09ac8: 38 a0 00 14 li r5,20 ffc09acc: 4b ff f8 f5 bl ffc093c0 <_Internal_error_Occurred> /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) ffc09ad0: 71 20 00 03 andi. r0,r9,3 } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; ffc09ad4: b0 c3 00 14 sth r6,20(r3) /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = ffc09ad8: 54 84 c0 0e rlwinm r4,r4,24,0,7 ffc09adc: 64 84 00 01 oris r4,r4,1 ffc09ae0: 54 a5 d8 08 rlwinm r5,r5,27,0,4 ffc09ae4: 7c 06 00 d0 neg r0,r6 ffc09ae8: 54 00 0f fe rlwinm r0,r0,1,31,31 ffc09aec: 7c 85 2b 78 or r5,r4,r5 information->allocation_size = maximum_per_allocation; /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; ffc09af0: 3d 60 00 00 lis r11,0 /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = ffc09af4: 7c a5 03 78 or r5,r5,r0 information->allocation_size = maximum_per_allocation; /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; ffc09af8: 39 6b 28 f4 addi r11,r11,10484 /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = ffc09afc: 90 a3 00 08 stw r5,8(r3) * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ffc09b00: 38 09 00 04 addi r0,r9,4 information->allocation_size = maximum_per_allocation; /* * Provide a null local table entry for the case of any empty table. */ information->local_table = &null_local_table; ffc09b04: 91 63 00 1c stw r11,28(r3) * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ffc09b08: 54 00 00 3a rlwinm r0,r0,0,0,29 /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) ffc09b0c: 40 82 00 08 bne- ffc09b14 <_Objects_Initialize_information+0xb8><== NEVER TAKEN ffc09b10: 7d 20 4b 78 mr r0,r9 _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { ffc09b14: 2f 86 00 00 cmpwi cr7,r6,0 if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; ffc09b18: b0 03 00 38 sth r0,56(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc09b1c: 39 63 00 24 addi r11,r3,36 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc09b20: 39 23 00 20 addi r9,r3,32 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc09b24: 91 63 00 20 stw r11,32(r3) the_chain->permanent_null = NULL; ffc09b28: 38 00 00 00 li r0,0 ffc09b2c: 90 03 00 24 stw r0,36(r3) the_chain->last = _Chain_Head(the_chain); ffc09b30: 91 23 00 28 stw r9,40(r3) _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { ffc09b34: 41 be 00 08 beq+ cr7,ffc09b3c <_Objects_Initialize_information+0xe0> /* * Always have the maximum size available so the current performance * figures are create are met. If the user moves past the maximum * number then a performance hit is taken. */ _Objects_Extend_information( information ); ffc09b38: 4b ff f9 c9 bl ffc09500 <_Objects_Extend_information> _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } ffc09b3c: 80 01 00 0c lwz r0,12(r1) ffc09b40: 38 21 00 08 addi r1,r1,8 ffc09b44: 7c 08 03 a6 mtlr r0 ffc09b48: 4e 80 00 20 blr ffc09be4 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09be4: 94 21 ff e8 stwu r1,-24(r1) ffc09be8: 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) / ffc09bec: 39 20 00 00 li r9,0 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09bf0: 90 01 00 1c stw r0,28(r1) ffc09bf4: 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) / ffc09bf8: 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 ); ffc09bfc: a3 c3 00 0a lhz r30,10(r3) block_count = (information->maximum - index_base) / ffc09c00: a1 63 00 14 lhz r11,20(r3) ffc09c04: 7d 5e 50 50 subf r10,r30,r10 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09c08: 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) / ffc09c0c: 7d 4a 5b 96 divwu r10,r10,r11 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09c10: 93 81 00 08 stw r28,8(r1) ffc09c14: 93 a1 00 0c stw r29,12(r1) ffc09c18: 2f 8a 00 00 cmpwi cr7,r10,0 ffc09c1c: 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) / ffc09c20: 38 0a 00 01 addi r0,r10,1 ffc09c24: 40 be 00 88 bne+ cr7,ffc09cac <_Objects_Shrink_information+0xc8><== ALWAYS TAKEN ffc09c28: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc09c2c: 48 00 00 80 b ffc09cac <_Objects_Shrink_information+0xc8><== NOT EXECUTED information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == ffc09c30: 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++ ) { ffc09c34: 39 29 00 01 addi r9,r9,1 if ( information->inactive_per_block[ block ] == ffc09c38: 7d 4a e8 2e lwzx r10,r10,r29 ffc09c3c: 7f 8a 58 00 cmpw cr7,r10,r11 ffc09c40: 40 be 00 68 bne+ cr7,ffc09ca8 <_Objects_Shrink_information+0xc4> information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; ffc09c44: 80 7f 00 20 lwz r3,32(r31) do { index = _Objects_Get_index( the_object->id ); ffc09c48: 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; ffc09c4c: 83 83 00 00 lwz r28,0(r3) if ((index >= index_base) && ffc09c50: 7f 80 f0 40 cmplw cr7,r0,r30 ffc09c54: 41 9c 00 18 blt- cr7,ffc09c6c <_Objects_Shrink_information+0x88> (index < (index_base + information->allocation_size))) { ffc09c58: a1 3f 00 14 lhz r9,20(r31) ffc09c5c: 7d 3e 4a 14 add r9,r30,r9 ffc09c60: 7f 80 48 40 cmplw cr7,r0,r9 ffc09c64: 40 bc 00 08 bge+ cr7,ffc09c6c <_Objects_Shrink_information+0x88> _Chain_Extract( &extract_me->Node ); ffc09c68: 48 00 3f 55 bl ffc0dbbc <_Chain_Extract> } } while ( the_object ); ffc09c6c: 2f 9c 00 00 cmpwi cr7,r28,0 ffc09c70: 7f 83 e3 78 mr r3,r28 ffc09c74: 40 9e ff d4 bne+ cr7,ffc09c48 <_Objects_Shrink_information+0x64> /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); ffc09c78: 81 3f 00 34 lwz r9,52(r31) ffc09c7c: 7c 69 e8 2e lwzx r3,r9,r29 ffc09c80: 48 00 20 75 bl ffc0bcf4 <_Workspace_Free> information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; ffc09c84: a1 5f 00 2c lhz r10,44(r31) ffc09c88: 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; ffc09c8c: 81 3f 00 34 lwz r9,52(r31) information->inactive_per_block[ block ] = 0; ffc09c90: 81 7f 00 30 lwz r11,48(r31) information->inactive -= information->allocation_size; ffc09c94: 7c 00 50 50 subf r0,r0,r10 ffc09c98: 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; ffc09c9c: 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; ffc09ca0: 7f 89 e9 2e stwx r28,r9,r29 information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; ffc09ca4: 48 00 00 14 b ffc09cb8 <_Objects_Shrink_information+0xd4> } index_base += information->allocation_size; ffc09ca8: 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++ ) { ffc09cac: 34 00 ff ff addic. r0,r0,-1 ffc09cb0: 55 3d 10 3a rlwinm r29,r9,2,0,29 ffc09cb4: 40 82 ff 7c bne+ ffc09c30 <_Objects_Shrink_information+0x4c> return; } index_base += information->allocation_size; } } ffc09cb8: 80 01 00 1c lwz r0,28(r1) ffc09cbc: 83 81 00 08 lwz r28,8(r1) ffc09cc0: 7c 08 03 a6 mtlr r0 ffc09cc4: 83 a1 00 0c lwz r29,12(r1) ffc09cc8: 83 c1 00 10 lwz r30,16(r1) ffc09ccc: 83 e1 00 14 lwz r31,20(r1) ffc09cd0: 38 21 00 18 addi r1,r1,24 ffc09cd4: 4e 80 00 20 blr ffc0d8d0 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0d8d0: 94 21 ff d8 stwu r1,-40(r1) ffc0d8d4: 7c 08 02 a6 mflr r0 ffc0d8d8: 90 01 00 2c stw r0,44(r1) ffc0d8dc: 93 e1 00 24 stw r31,36(r1) RTEMS_API_Control *api; ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; ffc0d8e0: 83 e3 01 40 lwz r31,320(r3) */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0d8e4: 93 a1 00 1c stw r29,28(r1) ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; if ( !api ) ffc0d8e8: 2f 9f 00 00 cmpwi cr7,r31,0 */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0d8ec: 93 c1 00 20 stw r30,32(r1) ASR_Information *asr; rtems_signal_set signal_set; Modes_Control prev_mode; api = executing->API_Extensions[ THREAD_API_RTEMS ]; if ( !api ) ffc0d8f0: 41 9e 00 80 beq- cr7,ffc0d970 <_RTEMS_tasks_Post_switch_extension+0xa0><== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0d8f4: 7c 00 00 a6 mfmsr r0 ffc0d8f8: 7d 30 42 a6 mfsprg r9,0 ffc0d8fc: 7c 09 48 78 andc r9,r0,r9 ffc0d900: 7d 20 01 24 mtmsr r9 asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; asr->signals_posted = 0; ffc0d904: 39 20 00 00 li r9,0 */ asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; ffc0d908: 83 bf 00 14 lwz r29,20(r31) asr->signals_posted = 0; ffc0d90c: 91 3f 00 14 stw r9,20(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0d910: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ ffc0d914: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0d918: 41 be 00 58 beq+ cr7,ffc0d970 <_RTEMS_tasks_Post_switch_extension+0xa0><== NEVER TAKEN return; asr->nest_level += 1; ffc0d91c: 81 3f 00 1c lwz r9,28(r31) rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0d920: 3b c1 00 08 addi r30,r1,8 ffc0d924: 80 7f 00 10 lwz r3,16(r31) ffc0d928: 38 80 00 00 li r4,0 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; ffc0d92c: 38 09 00 01 addi r0,r9,1 ffc0d930: 90 1f 00 1c stw r0,28(r31) rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0d934: 60 84 ff ff ori r4,r4,65535 ffc0d938: 7f c5 f3 78 mr r5,r30 ffc0d93c: 48 00 20 9d bl ffc0f9d8 (*asr->handler)( signal_set ); ffc0d940: 80 1f 00 0c lwz r0,12(r31) ffc0d944: 7f a3 eb 78 mr r3,r29 ffc0d948: 7c 09 03 a6 mtctr r0 ffc0d94c: 4e 80 04 21 bctrl asr->nest_level -= 1; ffc0d950: 81 3f 00 1c lwz r9,28(r31) rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0d954: 38 80 00 00 li r4,0 asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); (*asr->handler)( signal_set ); asr->nest_level -= 1; ffc0d958: 38 09 ff ff addi r0,r9,-1 ffc0d95c: 90 1f 00 1c stw r0,28(r31) rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0d960: 60 84 ff ff ori r4,r4,65535 ffc0d964: 7f c5 f3 78 mr r5,r30 ffc0d968: 80 61 00 08 lwz r3,8(r1) ffc0d96c: 48 00 20 6d bl ffc0f9d8 } ffc0d970: 80 01 00 2c lwz r0,44(r1) ffc0d974: 83 a1 00 1c lwz r29,28(r1) ffc0d978: 7c 08 03 a6 mtlr r0 ffc0d97c: 83 c1 00 20 lwz r30,32(r1) ffc0d980: 83 e1 00 24 lwz r31,36(r1) ffc0d984: 38 21 00 28 addi r1,r1,40 ffc0d988: 4e 80 00 20 blr ffc09844 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { ffc09844: 94 21 ff e0 stwu r1,-32(r1) ffc09848: 7c 08 02 a6 mflr r0 ffc0984c: 7c 64 1b 78 mr r4,r3 ffc09850: 3c 60 00 00 lis r3,0 ffc09854: 90 01 00 24 stw r0,36(r1) ffc09858: 38 63 2b ec addi r3,r3,11244 ffc0985c: 38 a1 00 08 addi r5,r1,8 ffc09860: 93 e1 00 1c stw r31,28(r1) ffc09864: 48 00 23 3d bl ffc0bba0 <_Objects_Get> /* * When we get here, the Timer is already off the chain so we do not * have to worry about that -- hence no _Watchdog_Remove(). */ the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc09868: 80 01 00 08 lwz r0,8(r1) ffc0986c: 7c 7f 1b 78 mr r31,r3 ffc09870: 2f 80 00 00 cmpwi cr7,r0,0 ffc09874: 40 9e 00 84 bne- cr7,ffc098f8 <_Rate_monotonic_Timeout+0xb4><== NEVER TAKEN case OBJECTS_LOCAL: the_thread = the_period->owner; ffc09878: 80 63 00 40 lwz r3,64(r3) if ( _States_Is_waiting_for_period( the_thread->current_state ) && ffc0987c: 80 03 00 10 lwz r0,16(r3) ffc09880: 70 09 40 00 andi. r9,r0,16384 ffc09884: 41 82 00 24 beq- ffc098a8 <_Rate_monotonic_Timeout+0x64> the_thread->Wait.id == the_period->Object.id ) { ffc09888: 81 23 00 20 lwz r9,32(r3) ffc0988c: 80 1f 00 08 lwz r0,8(r31) ffc09890: 7f 89 00 00 cmpw cr7,r9,r0 ffc09894: 40 be 00 14 bne+ cr7,ffc098a8 <_Rate_monotonic_Timeout+0x64> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc09898: 3c 80 10 03 lis r4,4099 ffc0989c: 60 84 ff f8 ori r4,r4,65528 ffc098a0: 48 00 28 e9 bl ffc0c188 <_Thread_Clear_state> ffc098a4: 48 00 00 18 b ffc098bc <_Rate_monotonic_Timeout+0x78> _Thread_Unblock( the_thread ); _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) { ffc098a8: 80 1f 00 38 lwz r0,56(r31) ffc098ac: 2f 80 00 01 cmpwi cr7,r0,1 ffc098b0: 40 be 00 30 bne+ cr7,ffc098e0 <_Rate_monotonic_Timeout+0x9c> the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; ffc098b4: 38 00 00 03 li r0,3 ffc098b8: 90 1f 00 38 stw r0,56(r31) _Rate_monotonic_Initiate_statistics( the_period ); ffc098bc: 7f e3 fb 78 mr r3,r31 ffc098c0: 4b ff f7 75 bl ffc09034 <_Rate_monotonic_Initiate_statistics> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc098c4: 80 1f 00 3c lwz r0,60(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc098c8: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc098cc: 90 1f 00 1c stw r0,28(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc098d0: 38 63 2d e8 addi r3,r3,11752 ffc098d4: 38 9f 00 10 addi r4,r31,16 ffc098d8: 48 00 44 0d bl ffc0dce4 <_Watchdog_Insert> ffc098dc: 48 00 00 0c b ffc098e8 <_Rate_monotonic_Timeout+0xa4> _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; ffc098e0: 38 00 00 04 li r0,4 ffc098e4: 90 1f 00 38 stw r0,56(r31) */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc098e8: 3d 20 00 00 lis r9,0 ffc098ec: 81 69 27 b0 lwz r11,10160(r9) ffc098f0: 38 0b ff ff addi r0,r11,-1 ffc098f4: 90 09 27 b0 stw r0,10160(r9) case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } ffc098f8: 80 01 00 24 lwz r0,36(r1) ffc098fc: 83 e1 00 1c lwz r31,28(r1) ffc09900: 38 21 00 20 addi r1,r1,32 ffc09904: 7c 08 03 a6 mtlr r0 ffc09908: 4e 80 00 20 blr ffc09184 <_TOD_Validate>: uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || ffc09184: 2c 03 00 00 cmpwi r3,0 { uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); ffc09188: 3d 20 00 00 lis r9,0 ffc0918c: 81 29 20 cc lwz r9,8396(r9) if ((!the_tod) || ffc09190: 41 82 00 98 beq- ffc09228 <_TOD_Validate+0xa4> <== NEVER TAKEN (the_tod->ticks >= ticks_per_second) || ffc09194: 3c 00 00 0f lis r0,15 ffc09198: 60 00 42 40 ori r0,r0,16960 ffc0919c: 7c 00 4b 96 divwu r0,r0,r9 ffc091a0: 81 23 00 18 lwz r9,24(r3) ffc091a4: 7f 89 00 40 cmplw cr7,r9,r0 ffc091a8: 40 9c 00 80 bge- cr7,ffc09228 <_TOD_Validate+0xa4> (the_tod->second >= TOD_SECONDS_PER_MINUTE) || ffc091ac: 80 03 00 14 lwz r0,20(r3) ffc091b0: 2b 80 00 3b cmplwi cr7,r0,59 ffc091b4: 41 9d 00 74 bgt- cr7,ffc09228 <_TOD_Validate+0xa4> (the_tod->minute >= TOD_MINUTES_PER_HOUR) || ffc091b8: 80 03 00 10 lwz r0,16(r3) ffc091bc: 2b 80 00 3b cmplwi cr7,r0,59 ffc091c0: 41 9d 00 68 bgt- cr7,ffc09228 <_TOD_Validate+0xa4> (the_tod->hour >= TOD_HOURS_PER_DAY) || ffc091c4: 80 03 00 0c lwz r0,12(r3) ffc091c8: 2b 80 00 17 cmplwi cr7,r0,23 ffc091cc: 41 9d 00 5c bgt- cr7,ffc09228 <_TOD_Validate+0xa4> (the_tod->month == 0) || ffc091d0: 81 23 00 04 lwz r9,4(r3) uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || ffc091d4: 2f 89 00 00 cmpwi cr7,r9,0 ffc091d8: 41 9e 00 50 beq- cr7,ffc09228 <_TOD_Validate+0xa4> <== NEVER TAKEN ffc091dc: 2b 89 00 0c cmplwi cr7,r9,12 ffc091e0: 41 9d 00 48 bgt- cr7,ffc09228 <_TOD_Validate+0xa4> (the_tod->second >= TOD_SECONDS_PER_MINUTE) || (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || ffc091e4: 80 03 00 00 lwz r0,0(r3) uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || ffc091e8: 2b 80 07 c3 cmplwi cr7,r0,1987 ffc091ec: 40 9d 00 3c ble- cr7,ffc09228 <_TOD_Validate+0xa4> (the_tod->minute >= TOD_MINUTES_PER_HOUR) || (the_tod->hour >= TOD_HOURS_PER_DAY) || (the_tod->month == 0) || (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) ffc091f0: 80 63 00 08 lwz r3,8(r3) uint32_t days_in_month; uint32_t ticks_per_second; ticks_per_second = TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) || ffc091f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc091f8: 41 9e 00 30 beq- cr7,ffc09228 <_TOD_Validate+0xa4> <== NEVER TAKEN (the_tod->month > TOD_MONTHS_PER_YEAR) || (the_tod->year < TOD_BASE_YEAR) || (the_tod->day == 0) ) return false; if ( (the_tod->year % 4) == 0 ) ffc091fc: 70 0b 00 03 andi. r11,r0,3 ffc09200: 3d 60 ff c2 lis r11,-62 ffc09204: 39 6b 28 38 addi r11,r11,10296 ffc09208: 40 82 00 08 bne- ffc09210 <_TOD_Validate+0x8c> days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; ffc0920c: 39 29 00 0d addi r9,r9,13 else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; ffc09210: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc09214: 7c 0b 48 2e lwzx r0,r11,r9 * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( ffc09218: 7c 63 00 10 subfc r3,r3,r0 ffc0921c: 38 60 00 00 li r3,0 ffc09220: 7c 63 19 14 adde r3,r3,r3 ffc09224: 4e 80 00 20 blr ffc09228: 38 60 00 00 li r3,0 if ( the_tod->day > days_in_month ) return false; return true; } ffc0922c: 4e 80 00 20 blr ffc09e10 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { ffc09e10: 94 21 ff e0 stwu r1,-32(r1) ffc09e14: 7c 08 02 a6 mflr r0 ffc09e18: 90 01 00 24 stw r0,36(r1) ffc09e1c: 93 e1 00 1c stw r31,28(r1) ffc09e20: 7c 7f 1b 78 mr r31,r3 ffc09e24: 93 a1 00 14 stw r29,20(r1) ffc09e28: 93 c1 00 18 stw r30,24(r1) ffc09e2c: 7c be 2b 78 mr r30,r5 /* * Set a transient state for the thread so it is pulled off the Ready chains. * This will prevent it from being scheduled no matter what happens in an * ISR. */ _Thread_Set_transient( the_thread ); ffc09e30: 90 81 00 08 stw r4,8(r1) */ /* * Save original state */ original_state = the_thread->current_state; ffc09e34: 83 a3 00 10 lwz r29,16(r3) /* * Set a transient state for the thread so it is pulled off the Ready chains. * This will prevent it from being scheduled no matter what happens in an * ISR. */ _Thread_Set_transient( the_thread ); ffc09e38: 48 00 11 e9 bl ffc0b020 <_Thread_Set_transient> /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) ffc09e3c: 80 1f 00 14 lwz r0,20(r31) ffc09e40: 80 81 00 08 lwz r4,8(r1) ffc09e44: 7f 80 20 00 cmpw cr7,r0,r4 ffc09e48: 41 9e 00 0c beq- cr7,ffc09e54 <_Thread_Change_priority+0x44> _Thread_Set_priority( the_thread, new_priority ); ffc09e4c: 7f e3 fb 78 mr r3,r31 ffc09e50: 48 00 10 5d bl ffc0aeac <_Thread_Set_priority> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09e54: 7d 60 00 a6 mfmsr r11 ffc09e58: 7c 10 42 a6 mfsprg r0,0 ffc09e5c: 7d 60 00 78 andc r0,r11,r0 ffc09e60: 7c 00 01 24 mtmsr r0 /* * If the thread has more than STATES_TRANSIENT set, then it is blocked, * If it is blocked on a thread queue, then we need to requeue it. */ state = the_thread->current_state; ffc09e64: 80 1f 00 10 lwz r0,16(r31) ffc09e68: 57 bd 07 7a rlwinm r29,r29,0,29,29 if ( state != STATES_TRANSIENT ) { ffc09e6c: 2f 80 00 04 cmpwi cr7,r0,4 ffc09e70: 41 9e 00 38 beq- cr7,ffc09ea8 <_Thread_Change_priority+0x98> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) ffc09e74: 2f 9d 00 00 cmpwi cr7,r29,0 ffc09e78: 40 9e 00 0c bne- cr7,ffc09e84 <_Thread_Change_priority+0x74><== NEVER TAKEN the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); ffc09e7c: 54 09 07 b8 rlwinm r9,r0,0,30,28 ffc09e80: 91 3f 00 10 stw r9,16(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09e84: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { ffc09e88: 3d 20 00 03 lis r9,3 ffc09e8c: 61 29 be e0 ori r9,r9,48864 ffc09e90: 7c 0b 48 39 and. r11,r0,r9 ffc09e94: 41 a2 01 04 beq+ ffc09f98 <_Thread_Change_priority+0x188> _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); ffc09e98: 80 7f 00 44 lwz r3,68(r31) ffc09e9c: 7f e4 fb 78 mr r4,r31 ffc09ea0: 48 00 0f 39 bl ffc0add8 <_Thread_queue_Requeue> ffc09ea4: 48 00 00 f4 b ffc09f98 <_Thread_Change_priority+0x188> } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { ffc09ea8: 2f 9d 00 00 cmpwi cr7,r29,0 ffc09eac: 40 9e 00 6c bne- cr7,ffc09f18 <_Thread_Change_priority+0x108><== NEVER TAKEN * Interrupts are STILL disabled. * We now know the thread will be in the READY state when we remove * the TRANSIENT state. So we have to place it on the appropriate * Ready Queue with interrupts off. */ the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); ffc09eb0: 93 bf 00 10 stw r29,16(r31) _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) ffc09eb4: 2f 9e 00 00 cmpwi cr7,r30,0 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; _Priority_Major_bit_map |= the_priority_map->ready_major; ffc09eb8: 3d 40 00 00 lis r10,0 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; ffc09ebc: 81 3f 00 90 lwz r9,144(r31) ffc09ec0: 80 1f 00 98 lwz r0,152(r31) ffc09ec4: 81 09 00 00 lwz r8,0(r9) ffc09ec8: 7d 00 03 78 or r0,r8,r0 ffc09ecc: 90 09 00 00 stw r0,0(r9) _Priority_Major_bit_map |= the_priority_map->ready_major; ffc09ed0: 81 0a 27 60 lwz r8,10080(r10) ffc09ed4: 80 1f 00 94 lwz r0,148(r31) ffc09ed8: 81 3f 00 8c lwz r9,140(r31) ffc09edc: 7d 00 03 78 or r0,r8,r0 ffc09ee0: 90 0a 27 60 stw r0,10080(r10) ffc09ee4: 41 9e 00 1c beq- cr7,ffc09f00 <_Thread_Change_priority+0xf0> ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc09ee8: 81 49 00 00 lwz r10,0(r9) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc09eec: 91 3f 00 04 stw r9,4(r31) before_node = after_node->next; after_node->next = the_node; ffc09ef0: 93 e9 00 00 stw r31,0(r9) the_node->next = before_node; before_node->previous = the_node; ffc09ef4: 93 ea 00 04 stw r31,4(r10) Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; ffc09ef8: 91 5f 00 00 stw r10,0(r31) ffc09efc: 48 00 00 1c b ffc09f18 <_Thread_Change_priority+0x108> Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc09f00: 38 09 00 04 addi r0,r9,4 ffc09f04: 90 1f 00 00 stw r0,0(r31) old_last_node = the_chain->last; ffc09f08: 81 49 00 08 lwz r10,8(r9) the_chain->last = the_node; ffc09f0c: 93 e9 00 08 stw r31,8(r9) old_last_node->next = the_node; the_node->previous = old_last_node; ffc09f10: 91 5f 00 04 stw r10,4(r31) Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; ffc09f14: 93 ea 00 00 stw r31,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc09f18: 7c 00 00 a6 mfmsr r0 ffc09f1c: 7d 60 01 24 mtmsr r11 ffc09f20: 7c 00 01 24 mtmsr r0 RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); ffc09f24: 3c c0 00 00 lis r6,0 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_Get_highest() ].first; ffc09f28: 3d 40 00 00 lis r10,0 ffc09f2c: 81 26 27 60 lwz r9,10080(r6) ffc09f30: 80 aa 27 20 lwz r5,10016(r10) ffc09f34: 7d 27 00 34 cntlzw r7,r9 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc09f38: 3d 00 00 00 lis r8,0 RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); ffc09f3c: 91 26 27 60 stw r9,10080(r6) _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc09f40: 39 08 2d 00 addi r8,r8,11520 ffc09f44: 54 ea 10 3a rlwinm r10,r7,2,0,29 ffc09f48: 7c 08 50 2e lwzx r0,r8,r10 ffc09f4c: 7c 09 00 34 cntlzw r9,r0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc09f50: 54 e7 20 36 rlwinm r7,r7,4,0,27 ffc09f54: 7c 08 51 2e stwx r0,r8,r10 ffc09f58: 7c e7 4a 14 add r7,r7,r9 ffc09f5c: 1c e7 00 0c mulli r7,r7,12 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); ffc09f60: 3d 20 00 00 lis r9,0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc09f64: 7c 05 38 2e lwzx r0,r5,r7 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); ffc09f68: 81 29 27 6c lwz r9,10092(r9) * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc09f6c: 3d 40 00 00 lis r10,0 ffc09f70: 90 0a 27 48 stw r0,10056(r10) * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ _Thread_Calculate_heir(); if ( !_Thread_Is_executing_also_the_heir() && ffc09f74: 7f 89 00 00 cmpw cr7,r9,r0 ffc09f78: 41 9e 00 1c beq- cr7,ffc09f94 <_Thread_Change_priority+0x184> _Thread_Executing->is_preemptible ) ffc09f7c: 88 09 00 75 lbz r0,117(r9) ffc09f80: 2f 80 00 00 cmpwi cr7,r0,0 ffc09f84: 41 9e 00 10 beq- cr7,ffc09f94 <_Thread_Change_priority+0x184> _Context_Switch_necessary = true; ffc09f88: 38 00 00 01 li r0,1 ffc09f8c: 3d 20 00 00 lis r9,0 ffc09f90: 98 09 27 7c stb r0,10108(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09f94: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); } ffc09f98: 80 01 00 24 lwz r0,36(r1) ffc09f9c: 83 a1 00 14 lwz r29,20(r1) ffc09fa0: 7c 08 03 a6 mtlr r0 ffc09fa4: 83 c1 00 18 lwz r30,24(r1) ffc09fa8: 83 e1 00 1c lwz r31,28(r1) ffc09fac: 38 21 00 20 addi r1,r1,32 ffc09fb0: 4e 80 00 20 blr ffc09fb4 <_Thread_Clear_state>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09fb4: 7c 00 00 a6 mfmsr r0 ffc09fb8: 7d 30 42 a6 mfsprg r9,0 ffc09fbc: 7c 09 48 78 andc r9,r0,r9 ffc09fc0: 7d 20 01 24 mtmsr r9 { ISR_Level level; States_Control current_state; _ISR_Disable( level ); current_state = the_thread->current_state; ffc09fc4: 81 23 00 10 lwz r9,16(r3) if ( current_state & state ) { ffc09fc8: 7c 8b 48 39 and. r11,r4,r9 ffc09fcc: 41 82 00 a8 beq- ffc0a074 <_Thread_Clear_state+0xc0> RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); ffc09fd0: 7d 24 20 78 andc r4,r9,r4 current_state = the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { ffc09fd4: 2f 84 00 00 cmpwi cr7,r4,0 _ISR_Disable( level ); current_state = the_thread->current_state; if ( current_state & state ) { current_state = ffc09fd8: 90 83 00 10 stw r4,16(r3) the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { ffc09fdc: 40 9e 00 98 bne- cr7,ffc0a074 <_Thread_Clear_state+0xc0> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; ffc09fe0: 81 63 00 90 lwz r11,144(r3) ffc09fe4: 81 43 00 98 lwz r10,152(r3) ffc09fe8: 81 0b 00 00 lwz r8,0(r11) _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); ffc09fec: 81 23 00 8c lwz r9,140(r3) ffc09ff0: 7d 0a 53 78 or r10,r8,r10 ffc09ff4: 91 4b 00 00 stw r10,0(r11) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc09ff8: 39 69 00 04 addi r11,r9,4 _Priority_Major_bit_map |= the_priority_map->ready_major; ffc09ffc: 3d 40 00 00 lis r10,0 ffc0a000: 91 63 00 00 stw r11,0(r3) ffc0a004: 80 ea 27 60 lwz r7,10080(r10) ffc0a008: 81 03 00 94 lwz r8,148(r3) old_last_node = the_chain->last; ffc0a00c: 81 69 00 08 lwz r11,8(r9) ffc0a010: 7c e8 43 78 or r8,r7,r8 the_chain->last = the_node; ffc0a014: 90 69 00 08 stw r3,8(r9) ffc0a018: 91 0a 27 60 stw r8,10080(r10) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0a01c: 91 63 00 04 stw r11,4(r3) Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; ffc0a020: 90 6b 00 00 stw r3,0(r11) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0a024: 7d 20 00 a6 mfmsr r9 ffc0a028: 7c 00 01 24 mtmsr r0 ffc0a02c: 7d 20 01 24 mtmsr r9 * a context switch. * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { ffc0a030: 3d 60 00 00 lis r11,0 ffc0a034: 81 23 00 14 lwz r9,20(r3) ffc0a038: 81 4b 27 48 lwz r10,10056(r11) ffc0a03c: 81 4a 00 14 lwz r10,20(r10) ffc0a040: 7f 89 50 40 cmplw cr7,r9,r10 ffc0a044: 40 9c 00 30 bge- cr7,ffc0a074 <_Thread_Clear_state+0xc0> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || ffc0a048: 3d 40 00 00 lis r10,0 * Pseudo-ISR case: * Even if the thread isn't preemptible, if the new heir is * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; ffc0a04c: 90 6b 27 48 stw r3,10056(r11) if ( _Thread_Executing->is_preemptible || ffc0a050: 81 4a 27 6c lwz r10,10092(r10) ffc0a054: 89 6a 00 75 lbz r11,117(r10) ffc0a058: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a05c: 40 9e 00 0c bne- cr7,ffc0a068 <_Thread_Clear_state+0xb4> ffc0a060: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a064: 40 9e 00 10 bne- cr7,ffc0a074 <_Thread_Clear_state+0xc0><== ALWAYS TAKEN the_thread->current_priority == 0 ) _Context_Switch_necessary = true; ffc0a068: 39 60 00 01 li r11,1 ffc0a06c: 3d 20 00 00 lis r9,0 ffc0a070: 99 69 27 7c stb r11,10108(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a074: 7c 00 01 24 mtmsr r0 } } } _ISR_Enable( level ); } ffc0a078: 4e 80 00 20 blr ffc0a07c <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { ffc0a07c: 94 21 ff e8 stwu r1,-24(r1) ffc0a080: 7c 08 02 a6 mflr r0 ffc0a084: 39 60 00 00 li r11,0 ffc0a088: 90 01 00 1c stw r0,28(r1) ffc0a08c: a0 04 00 0a lhz r0,10(r4) ffc0a090: 81 23 00 1c lwz r9,28(r3) ffc0a094: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0a098: 93 a1 00 0c stw r29,12(r1) ffc0a09c: 7c 7d 1b 78 mr r29,r3 ffc0a0a0: 93 e1 00 14 stw r31,20(r1) ffc0a0a4: 7c 9f 23 78 mr r31,r4 ffc0a0a8: 93 c1 00 10 stw r30,16(r1) ffc0a0ac: 7d 69 01 2e stwx r11,r9,r0 */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0a0b0: 3f c0 00 00 lis r30,0 ffc0a0b4: 81 3e 27 2c lwz r9,10028(r30) * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); ffc0a0b8: 7c 83 23 78 mr r3,r4 ffc0a0bc: 38 09 ff ff addi r0,r9,-1 ffc0a0c0: 90 1e 27 2c stw r0,10028(r30) ffc0a0c4: 48 00 17 5d bl ffc0b820 <_User_extensions_Thread_delete> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a0c8: 81 3e 27 2c lwz r9,10028(r30) ffc0a0cc: 38 09 00 01 addi r0,r9,1 ffc0a0d0: 90 1e 27 2c stw r0,10028(r30) /* * Now we are in a dispatching critical section again and we * can take the thread OUT of the published set. It is invalid * to use this thread's Id OR name after this call. */ _Objects_Close( information, &the_thread->Object ); ffc0a0d4: 7f a3 eb 78 mr r3,r29 ffc0a0d8: 7f e4 fb 78 mr r4,r31 ffc0a0dc: 4b ff f3 f1 bl ffc094cc <_Objects_Close> /* * By setting the dormant state, the thread will not be considered * for scheduling when we remove any blocking states. */ _Thread_Set_state( the_thread, STATES_DORMANT ); ffc0a0e0: 7f e3 fb 78 mr r3,r31 ffc0a0e4: 38 80 00 01 li r4,1 ffc0a0e8: 48 00 0e 21 bl ffc0af08 <_Thread_Set_state> if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { ffc0a0ec: 7f e3 fb 78 mr r3,r31 ffc0a0f0: 48 00 0c 05 bl ffc0acf4 <_Thread_queue_Extract_with_proxy> ffc0a0f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a0f8: 40 9e 00 18 bne- cr7,ffc0a110 <_Thread_Close+0x94> if ( _Watchdog_Is_active( &the_thread->Timer ) ) ffc0a0fc: 80 1f 00 50 lwz r0,80(r31) ffc0a100: 2f 80 00 02 cmpwi cr7,r0,2 ffc0a104: 40 be 00 0c bne+ cr7,ffc0a110 <_Thread_Close+0x94> (void) _Watchdog_Remove( &the_thread->Timer ); ffc0a108: 38 7f 00 48 addi r3,r31,72 ffc0a10c: 48 00 19 ed bl ffc0baf8 <_Watchdog_Remove> if ( _Thread_Is_allocated_fp( the_thread ) ) _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; if ( the_thread->Start.fp_context ) ffc0a110: 80 7f 00 d0 lwz r3,208(r31) #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( _Thread_Is_allocated_fp( the_thread ) ) _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; ffc0a114: 38 00 00 00 li r0,0 ffc0a118: 90 1f 01 38 stw r0,312(r31) if ( the_thread->Start.fp_context ) ffc0a11c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a120: 41 9e 00 08 beq- cr7,ffc0a128 <_Thread_Close+0xac> <== NEVER TAKEN (void) _Workspace_Free( the_thread->Start.fp_context ); ffc0a124: 48 00 1b d1 bl ffc0bcf4 <_Workspace_Free> /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); ffc0a128: 7f e3 fb 78 mr r3,r31 ffc0a12c: 48 00 10 15 bl ffc0b140 <_Thread_Stack_Free> the_thread->Start.stack = NULL; if ( the_thread->extensions ) ffc0a130: 80 7f 01 4c lwz r3,332(r31) /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); the_thread->Start.stack = NULL; ffc0a134: 38 00 00 00 li r0,0 if ( the_thread->extensions ) ffc0a138: 2f 83 00 00 cmpwi cr7,r3,0 /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); the_thread->Start.stack = NULL; ffc0a13c: 90 1f 00 d4 stw r0,212(r31) if ( the_thread->extensions ) ffc0a140: 41 9e 00 08 beq- cr7,ffc0a148 <_Thread_Close+0xcc> (void) _Workspace_Free( the_thread->extensions ); ffc0a144: 48 00 1b b1 bl ffc0bcf4 <_Workspace_Free> the_thread->extensions = NULL; ffc0a148: 38 00 00 00 li r0,0 } ffc0a14c: 83 a1 00 0c lwz r29,12(r1) _Thread_Stack_Free( the_thread ); the_thread->Start.stack = NULL; if ( the_thread->extensions ) (void) _Workspace_Free( the_thread->extensions ); the_thread->extensions = NULL; ffc0a150: 90 1f 01 4c stw r0,332(r31) } ffc0a154: 80 01 00 1c lwz r0,28(r1) ffc0a158: 83 c1 00 10 lwz r30,16(r1) ffc0a15c: 7c 08 03 a6 mtlr r0 ffc0a160: 83 e1 00 14 lwz r31,20(r1) ffc0a164: 38 21 00 18 addi r1,r1,24 ffc0a168: 4e 80 00 20 blr ffc0a25c <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0a25c: 94 21 ff e8 stwu r1,-24(r1) ffc0a260: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0a264: 38 81 00 08 addi r4,r1,8 void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0a268: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0a26c: 48 00 02 4d bl ffc0a4b8 <_Thread_Get> switch ( location ) { ffc0a270: 80 01 00 08 lwz r0,8(r1) ffc0a274: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a278: 40 9e 00 20 bne- cr7,ffc0a298 <_Thread_Delay_ended+0x3c><== NEVER TAKEN #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( ffc0a27c: 3c 80 10 00 lis r4,4096 ffc0a280: 60 84 00 18 ori r4,r4,24 ffc0a284: 4b ff fd 31 bl ffc09fb4 <_Thread_Clear_state> ffc0a288: 3d 20 00 00 lis r9,0 ffc0a28c: 81 69 27 2c lwz r11,10028(r9) ffc0a290: 38 0b ff ff addi r0,r11,-1 ffc0a294: 90 09 27 2c stw r0,10028(r9) | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } } ffc0a298: 80 01 00 1c lwz r0,28(r1) ffc0a29c: 38 21 00 18 addi r1,r1,24 ffc0a2a0: 7c 08 03 a6 mtlr r0 ffc0a2a4: 4e 80 00 20 blr ffc0a2a8 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { ffc0a2a8: 94 21 ff b0 stwu r1,-80(r1) ffc0a2ac: 7c 08 02 a6 mflr r0 ffc0a2b0: 93 41 00 38 stw r26,56(r1) Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; ffc0a2b4: 3f 40 00 00 lis r26,0 * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { ffc0a2b8: 93 e1 00 4c stw r31,76(r1) ffc0a2bc: 90 01 00 54 stw r0,84(r1) ffc0a2c0: 92 61 00 1c stw r19,28(r1) ffc0a2c4: 92 81 00 20 stw r20,32(r1) ffc0a2c8: 92 a1 00 24 stw r21,36(r1) ffc0a2cc: 92 c1 00 28 stw r22,40(r1) ffc0a2d0: 92 e1 00 2c stw r23,44(r1) ffc0a2d4: 93 01 00 30 stw r24,48(r1) ffc0a2d8: 93 21 00 34 stw r25,52(r1) ffc0a2dc: 93 61 00 3c stw r27,60(r1) ffc0a2e0: 93 81 00 40 stw r28,64(r1) ffc0a2e4: 93 a1 00 44 stw r29,68(r1) ffc0a2e8: 93 c1 00 48 stw r30,72(r1) Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; ffc0a2ec: 83 fa 27 6c lwz r31,10092(r26) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a2f0: 7c 00 00 a6 mfmsr r0 ffc0a2f4: 7d 30 42 a6 mfsprg r9,0 ffc0a2f8: 7c 09 48 78 andc r9,r0,r9 ffc0a2fc: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0a300: 3f 20 00 00 lis r25,0 heir = _Thread_Heir; ffc0a304: 3e 60 00 00 lis r19,0 _Thread_Dispatch_disable_level = 1; ffc0a308: 3e 80 00 00 lis r20,0 #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) heir->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0a30c: 3e a0 00 00 lis r21,0 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( ffc0a310: 3f 60 00 00 lis r27,0 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a314: 3e c0 00 00 lis r22,0 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0a318: 3b 39 27 7c addi r25,r25,10108 heir = _Thread_Heir; ffc0a31c: 3a 73 27 48 addi r19,r19,10056 _Thread_Dispatch_disable_level = 1; ffc0a320: 3a 94 27 2c addi r20,r20,10028 _Context_Switch_necessary = false; _Thread_Executing = heir; ffc0a324: 3b 5a 27 6c addi r26,r26,10092 #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) heir->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0a328: 3a b5 27 24 addi r21,r21,10020 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( ffc0a32c: 3b 7b 27 74 addi r27,r27,10100 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a330: 3a d6 27 44 addi r22,r22,10052 executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; ffc0a334: 3a e0 00 01 li r23,1 _Context_Switch_necessary = false; ffc0a338: 3b 00 00 00 li r24,0 _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); ffc0a33c: 3b 81 00 08 addi r28,r1,8 _Timestamp_Subtract( ffc0a340: 3b a1 00 10 addi r29,r1,16 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0a344: 48 00 00 d0 b ffc0a414 <_Thread_Dispatch+0x16c> heir = _Thread_Heir; ffc0a348: 83 d3 00 00 lwz r30,0(r19) _Thread_Dispatch_disable_level = 1; ffc0a34c: 92 f4 00 00 stw r23,0(r20) _Thread_Executing = heir; #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) ffc0a350: 81 3e 00 7c lwz r9,124(r30) executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Context_Switch_necessary = false; ffc0a354: 9b 19 00 00 stb r24,0(r25) _Thread_Executing = heir; #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) ffc0a358: 2f 89 00 01 cmpwi cr7,r9,1 _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Context_Switch_necessary = false; _Thread_Executing = heir; ffc0a35c: 93 da 00 00 stw r30,0(r26) #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) ffc0a360: 40 be 00 0c bne+ cr7,ffc0a36c <_Thread_Dispatch+0xc4> heir->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0a364: 81 35 00 00 lwz r9,0(r21) ffc0a368: 91 3e 00 78 stw r9,120(r30) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a36c: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); ffc0a370: 7f 83 e3 78 mr r3,r28 ffc0a374: 48 00 3a 91 bl ffc0de04 <_TOD_Get_uptime> _Timestamp_Subtract( ffc0a378: 7f 63 db 78 mr r3,r27 ffc0a37c: 7f 84 e3 78 mr r4,r28 ffc0a380: 7f a5 eb 78 mr r5,r29 ffc0a384: 48 00 11 59 bl ffc0b4dc <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); ffc0a388: 7f a4 eb 78 mr r4,r29 ffc0a38c: 38 7f 00 84 addi r3,r31,132 ffc0a390: 48 00 10 f1 bl ffc0b480 <_Timespec_Add_to> #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a394: 81 36 00 00 lwz r9,0(r22) &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; ffc0a398: 81 61 00 08 lwz r11,8(r1) if ( _Thread_libc_reent ) { executing->libc_reent = *_Thread_libc_reent; *_Thread_libc_reent = heir->libc_reent; } _User_extensions_Thread_switch( executing, heir ); ffc0a39c: 7f e3 fb 78 mr r3,r31 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a3a0: 2f 89 00 00 cmpwi cr7,r9,0 &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; ffc0a3a4: 81 81 00 0c lwz r12,12(r1) if ( _Thread_libc_reent ) { executing->libc_reent = *_Thread_libc_reent; *_Thread_libc_reent = heir->libc_reent; } _User_extensions_Thread_switch( executing, heir ); ffc0a3a8: 7f c4 f3 78 mr r4,r30 &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; ffc0a3ac: 91 7b 00 00 stw r11,0(r27) ffc0a3b0: 91 9b 00 04 stw r12,4(r27) #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a3b4: 41 9e 00 14 beq- cr7,ffc0a3c8 <_Thread_Dispatch+0x120> <== NEVER TAKEN executing->libc_reent = *_Thread_libc_reent; ffc0a3b8: 80 09 00 00 lwz r0,0(r9) ffc0a3bc: 90 1f 01 3c stw r0,316(r31) *_Thread_libc_reent = heir->libc_reent; ffc0a3c0: 80 1e 01 3c lwz r0,316(r30) ffc0a3c4: 90 09 00 00 stw r0,0(r9) } _User_extensions_Thread_switch( executing, heir ); ffc0a3c8: 48 00 15 61 bl ffc0b928 <_User_extensions_Thread_switch> * operations. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE ) if ( executing->fp_context != NULL ) ffc0a3cc: 80 1f 01 38 lwz r0,312(r31) _Context_Save_fp( &executing->fp_context ); ffc0a3d0: 38 7f 01 38 addi r3,r31,312 * operations. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE ) if ( executing->fp_context != NULL ) ffc0a3d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a3d8: 41 9e 00 08 beq- cr7,ffc0a3e0 <_Thread_Dispatch+0x138> _Context_Save_fp( &executing->fp_context ); ffc0a3dc: 48 01 09 65 bl ffc1ad40 <_CPU_Context_save_fp> #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); ffc0a3e0: 38 7f 00 d8 addi r3,r31,216 ffc0a3e4: 38 9e 00 d8 addi r4,r30,216 ffc0a3e8: 48 01 0a d9 bl ffc1aec0 <_CPU_Context_switch> _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); _Context_Restore_fp( &executing->fp_context ); _Thread_Allocated_fp = executing; } #else if ( executing->fp_context != NULL ) ffc0a3ec: 80 1f 01 38 lwz r0,312(r31) _Context_Restore_fp( &executing->fp_context ); ffc0a3f0: 38 7f 01 38 addi r3,r31,312 _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); _Context_Restore_fp( &executing->fp_context ); _Thread_Allocated_fp = executing; } #else if ( executing->fp_context != NULL ) ffc0a3f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a3f8: 41 9e 00 08 beq- cr7,ffc0a400 <_Thread_Dispatch+0x158> _Context_Restore_fp( &executing->fp_context ); ffc0a3fc: 48 01 0a 05 bl ffc1ae00 <_CPU_Context_restore_fp> #endif #endif executing = _Thread_Executing; ffc0a400: 83 fa 00 00 lwz r31,0(r26) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a404: 7c 00 00 a6 mfmsr r0 ffc0a408: 7d 30 42 a6 mfsprg r9,0 ffc0a40c: 7c 09 48 78 andc r9,r0,r9 ffc0a410: 7d 20 01 24 mtmsr r9 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0a414: 89 39 00 00 lbz r9,0(r25) ffc0a418: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a41c: 40 9e ff 2c bne+ cr7,ffc0a348 <_Thread_Dispatch+0xa0> executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; ffc0a420: 3d 60 00 00 lis r11,0 ffc0a424: 91 2b 27 2c stw r9,10028(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a428: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); if ( _Thread_Do_post_task_switch_extension || ffc0a42c: 3d 20 00 00 lis r9,0 ffc0a430: 80 09 27 5c lwz r0,10076(r9) ffc0a434: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a438: 40 9e 00 10 bne- cr7,ffc0a448 <_Thread_Dispatch+0x1a0> <== NEVER TAKEN executing->do_post_task_switch_extension ) { ffc0a43c: 88 1f 00 74 lbz r0,116(r31) ffc0a440: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a444: 41 9e 00 10 beq- cr7,ffc0a454 <_Thread_Dispatch+0x1ac> executing->do_post_task_switch_extension = false; ffc0a448: 38 00 00 00 li r0,0 ffc0a44c: 98 1f 00 74 stb r0,116(r31) _API_extensions_Run_postswitch(); ffc0a450: 4b ff e3 d1 bl ffc08820 <_API_extensions_Run_postswitch> } } ffc0a454: 80 01 00 54 lwz r0,84(r1) ffc0a458: 82 61 00 1c lwz r19,28(r1) ffc0a45c: 7c 08 03 a6 mtlr r0 ffc0a460: 82 81 00 20 lwz r20,32(r1) ffc0a464: 82 a1 00 24 lwz r21,36(r1) ffc0a468: 82 c1 00 28 lwz r22,40(r1) ffc0a46c: 82 e1 00 2c lwz r23,44(r1) ffc0a470: 83 01 00 30 lwz r24,48(r1) ffc0a474: 83 21 00 34 lwz r25,52(r1) ffc0a478: 83 41 00 38 lwz r26,56(r1) ffc0a47c: 83 61 00 3c lwz r27,60(r1) ffc0a480: 83 81 00 40 lwz r28,64(r1) ffc0a484: 83 a1 00 44 lwz r29,68(r1) ffc0a488: 83 c1 00 48 lwz r30,72(r1) ffc0a48c: 83 e1 00 4c lwz r31,76(r1) ffc0a490: 38 21 00 50 addi r1,r1,80 ffc0a494: 4e 80 00 20 blr ffc0fe78 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; ffc0fe78: 3d 20 00 00 lis r9,0 ffc0fe7c: 81 29 27 6c lwz r9,10092(r9) if ( !_States_Is_ready( executing->current_state ) || ffc0fe80: 80 09 00 10 lwz r0,16(r9) ffc0fe84: 2f 80 00 00 cmpwi cr7,r0,0 ffc0fe88: 40 9e 00 20 bne- cr7,ffc0fea8 <_Thread_Evaluate_mode+0x30><== NEVER TAKEN ffc0fe8c: 3d 60 00 00 lis r11,0 ffc0fe90: 80 0b 27 48 lwz r0,10056(r11) ffc0fe94: 7f 89 00 00 cmpw cr7,r9,r0 ffc0fe98: 41 9e 00 24 beq- cr7,ffc0febc <_Thread_Evaluate_mode+0x44> ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { ffc0fe9c: 88 09 00 75 lbz r0,117(r9) ffc0fea0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0fea4: 41 9e 00 18 beq- cr7,ffc0febc <_Thread_Evaluate_mode+0x44><== NEVER TAKEN _Context_Switch_necessary = true; ffc0fea8: 38 00 00 01 li r0,1 ffc0feac: 3d 20 00 00 lis r9,0 ffc0feb0: 98 09 27 7c stb r0,10108(r9) ffc0feb4: 38 60 00 01 li r3,1 return true; ffc0feb8: 4e 80 00 20 blr ffc0febc: 38 60 00 00 li r3,0 } return false; } ffc0fec0: 4e 80 00 20 blr ffc0fec4 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc0fec4: 94 21 ff f0 stwu r1,-16(r1) ffc0fec8: 7c 08 02 a6 mflr r0 #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; ffc0fecc: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc0fed0: 90 01 00 14 stw r0,20(r1) ffc0fed4: 93 e1 00 0c stw r31,12(r1) #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; ffc0fed8: 83 e9 27 6c lwz r31,10092(r9) * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc0fedc: 93 c1 00 08 stw r30,8(r1) /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; ffc0fee0: 81 3f 00 c0 lwz r9,192(r31) } static inline void _CPU_ISR_Set_level( uint32_t level ) { register unsigned int msr; _CPU_MSR_GET(msr); ffc0fee4: 38 00 00 00 li r0,0 ffc0fee8: 7c 00 00 a6 mfmsr r0 if (!(level & CPU_MODES_INTERRUPT_MASK)) { ffc0feec: 71 2b 00 01 andi. r11,r9,1 ffc0fef0: 40 82 00 10 bne- ffc0ff00 <_Thread_Handler+0x3c> static inline uint32_t ppc_interrupt_get_disable_mask( void ) { uint32_t mask; asm volatile ( ffc0fef4: 7d 30 42 a6 mfsprg r9,0 msr |= ppc_interrupt_get_disable_mask(); ffc0fef8: 7d 20 03 78 or r0,r9,r0 ffc0fefc: 48 00 00 0c b ffc0ff08 <_Thread_Handler+0x44> ffc0ff00: 7d 30 42 a6 mfsprg r9,0 } else { msr &= ~ppc_interrupt_get_disable_mask(); ffc0ff04: 7c 00 48 78 andc r0,r0,r9 } _CPU_MSR_SET(msr); ffc0ff08: 7c 00 01 24 mtmsr r0 _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; ffc0ff0c: 3d 20 00 00 lis r9,0 ffc0ff10: 8b c9 29 00 lbz r30,10496(r9) doneConstructors = 1; ffc0ff14: 38 00 00 01 li r0,1 /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); ffc0ff18: 7f e3 fb 78 mr r3,r31 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; doneConstructors = 1; ffc0ff1c: 98 09 29 00 stb r0,10496(r9) /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); ffc0ff20: 4b ff b7 01 bl ffc0b620 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); ffc0ff24: 4b ff a5 75 bl ffc0a498 <_Thread_Enable_dispatch> /* * _init could be a weak symbol and we SHOULD test it but it isn't * in any configuration I know of and it generates a warning on every * RTEMS target configuration. --joel (12 May 2007) */ if (!doneCons) /* && (volatile void *)_init) */ { ffc0ff28: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0ff2c: 40 be 00 08 bne+ cr7,ffc0ff34 <_Thread_Handler+0x70> INIT_NAME (); ffc0ff30: 48 00 be 6d bl ffc1bd9c <_init> } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { ffc0ff34: 80 1f 00 a8 lwz r0,168(r31) ffc0ff38: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ff3c: 40 be 00 18 bne+ cr7,ffc0ff54 <_Thread_Handler+0x90> <== NEVER TAKEN executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( ffc0ff40: 80 1f 00 a4 lwz r0,164(r31) ffc0ff44: 80 7f 00 b0 lwz r3,176(r31) ffc0ff48: 7c 09 03 a6 mtctr r0 ffc0ff4c: 4e 80 04 21 bctrl INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = ffc0ff50: 90 7f 00 28 stw r3,40(r31) * was placed in return_argument. This assumed that if it returned * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ _User_extensions_Thread_exitted( executing ); ffc0ff54: 7f e3 fb 78 mr r3,r31 ffc0ff58: 4b ff b7 39 bl ffc0b690 <_User_extensions_Thread_exitted> _Internal_error_Occurred( ffc0ff5c: 38 60 00 00 li r3,0 ffc0ff60: 38 80 00 01 li r4,1 ffc0ff64: 38 a0 00 06 li r5,6 ffc0ff68: 4b ff 94 59 bl ffc093c0 <_Internal_error_Occurred> ffc0a56c <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { ffc0a56c: 94 21 ff d0 stwu r1,-48(r1) ffc0a570: 7c 08 02 a6 mflr r0 ffc0a574: 90 01 00 34 stw r0,52(r1) /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; ffc0a578: 38 00 00 00 li r0,0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { ffc0a57c: 93 41 00 18 stw r26,24(r1) ffc0a580: 7d 3a 4b 78 mr r26,r9 */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; extensions_area = NULL; the_thread->libc_reent = NULL; ffc0a584: 90 04 01 3c stw r0,316(r4) /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; ffc0a588: 90 04 01 40 stw r0,320(r4) ffc0a58c: 90 04 01 44 stw r0,324(r4) ffc0a590: 90 04 01 48 stw r0,328(r4) Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { ffc0a594: 81 21 00 40 lwz r9,64(r1) ffc0a598: 93 a1 00 24 stw r29,36(r1) ffc0a59c: 7c 7d 1b 78 mr r29,r3 /* * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); ffc0a5a0: 7c 83 23 78 mr r3,r4 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { ffc0a5a4: 93 e1 00 2c stw r31,44(r1) ffc0a5a8: 7c 9f 23 78 mr r31,r4 /* * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); ffc0a5ac: 7c c4 33 78 mr r4,r6 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { ffc0a5b0: 92 e1 00 0c stw r23,12(r1) ffc0a5b4: 7d 57 53 78 mr r23,r10 ffc0a5b8: 93 01 00 10 stw r24,16(r1) ffc0a5bc: 93 61 00 1c stw r27,28(r1) ffc0a5c0: 7d 1b 43 78 mr r27,r8 ffc0a5c4: 93 81 00 20 stw r28,32(r1) ffc0a5c8: 7c fc 3b 78 mr r28,r7 ffc0a5cc: 93 c1 00 28 stw r30,40(r1) ffc0a5d0: 7c de 33 78 mr r30,r6 ffc0a5d4: 93 21 00 14 stw r25,20(r1) ffc0a5d8: 83 09 00 00 lwz r24,0(r9) /* * Allocate and Initialize the stack for this thread. */ #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); ffc0a5dc: 48 00 0a d9 bl ffc0b0b4 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) ffc0a5e0: 2c 03 00 00 cmpwi r3,0 ffc0a5e4: 41 82 01 90 beq- ffc0a774 <_Thread_Initialize+0x208> ffc0a5e8: 7f 83 f0 40 cmplw cr7,r3,r30 ffc0a5ec: 41 9c 01 88 blt- cr7,ffc0a774 <_Thread_Initialize+0x208><== NEVER TAKEN /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { ffc0a5f0: 2f 9c 00 00 cmpwi cr7,r28,0 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; ffc0a5f4: 80 1f 00 d4 lwz r0,212(r31) the_stack->size = size; ffc0a5f8: 90 7f 00 c8 stw r3,200(r31) ffc0a5fc: 3b 80 00 00 li r28,0 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; ffc0a600: 90 1f 00 cc stw r0,204(r31) ffc0a604: 41 be 00 1c beq+ cr7,ffc0a620 <_Thread_Initialize+0xb4> fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); ffc0a608: 38 60 01 08 li r3,264 ffc0a60c: 48 00 16 b5 bl ffc0bcc0 <_Workspace_Allocate> if ( !fp_area ) ffc0a610: 7c 7c 1b 79 mr. r28,r3 ffc0a614: 40 a2 00 0c bne+ ffc0a620 <_Thread_Initialize+0xb4> ffc0a618: 3b c0 00 00 li r30,0 ffc0a61c: 48 00 00 f0 b ffc0a70c <_Thread_Initialize+0x1a0> #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0a620: 3d 20 00 00 lis r9,0 fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; ffc0a624: 93 9f 01 38 stw r28,312(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0a628: 38 00 00 00 li r0,0 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0a62c: 80 69 27 58 lwz r3,10072(r9) ffc0a630: 3b c0 00 00 li r30,0 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0a634: 90 1f 00 6c stw r0,108(r31) ffc0a638: 2f 83 00 00 cmpwi cr7,r3,0 if ( !fp_area ) goto failed; fp_area = _Context_Fp_start( fp_area, 0 ); } the_thread->fp_context = fp_area; the_thread->Start.fp_context = fp_area; ffc0a63c: 93 9f 00 d0 stw r28,208(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0a640: 90 1f 00 50 stw r0,80(r31) the_watchdog->routine = routine; ffc0a644: 90 1f 00 64 stw r0,100(r31) the_watchdog->id = id; ffc0a648: 90 1f 00 68 stw r0,104(r31) #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0a64c: 41 be 00 18 beq+ cr7,ffc0a664 <_Thread_Initialize+0xf8> extensions_area = _Workspace_Allocate( ffc0a650: 38 63 00 01 addi r3,r3,1 ffc0a654: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc0a658: 48 00 16 69 bl ffc0bcc0 <_Workspace_Allocate> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) ffc0a65c: 7c 7e 1b 79 mr. r30,r3 ffc0a660: 41 82 00 ac beq- ffc0a70c <_Thread_Initialize+0x1a0> * if they are linked to the thread. An extension user may * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { ffc0a664: 2f 9e 00 00 cmpwi cr7,r30,0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; ffc0a668: 93 df 01 4c stw r30,332(r31) * if they are linked to the thread. An extension user may * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { ffc0a66c: 41 9e 00 30 beq- cr7,ffc0a69c <_Thread_Initialize+0x130> for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) ffc0a670: 3d 20 00 00 lis r9,0 ffc0a674: 81 69 27 58 lwz r11,10072(r9) the_thread->extensions[i] = NULL; ffc0a678: 38 00 00 00 li r0,0 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) ffc0a67c: 39 20 00 00 li r9,0 ffc0a680: 48 00 00 0c b ffc0a68c <_Thread_Initialize+0x120> the_thread->extensions[i] = NULL; ffc0a684: 81 1f 01 4c lwz r8,332(r31) ffc0a688: 7c 08 51 2e stwx r0,r8,r10 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) ffc0a68c: 7f 89 58 40 cmplw cr7,r9,r11 the_thread->extensions[i] = NULL; ffc0a690: 55 2a 10 3a rlwinm r10,r9,2,0,29 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) ffc0a694: 39 29 00 01 addi r9,r9,1 ffc0a698: 40 9d ff ec ble+ cr7,ffc0a684 <_Thread_Initialize+0x118> * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; ffc0a69c: 80 01 00 38 lwz r0,56(r1) } the_thread->Start.isr_level = isr_level; the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; ffc0a6a0: 3b 20 00 00 li r25,0 /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; ffc0a6a4: 9b 5f 00 b4 stb r26,180(r31) #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); ffc0a6a8: 7f 64 db 78 mr r4,r27 ffc0a6ac: 7f e3 fb 78 mr r3,r31 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; ffc0a6b0: 90 1f 00 bc stw r0,188(r31) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; ffc0a6b4: 80 01 00 3c lwz r0,60(r1) /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; ffc0a6b8: 92 ff 00 b8 stw r23,184(r31) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; ffc0a6bc: 90 1f 00 c0 stw r0,192(r31) the_thread->current_state = STATES_DORMANT; ffc0a6c0: 38 00 00 01 li r0,1 ffc0a6c4: 90 1f 00 10 stw r0,16(r31) the_thread->Wait.queue = NULL; ffc0a6c8: 93 3f 00 44 stw r25,68(r31) the_thread->resource_count = 0; ffc0a6cc: 93 3f 00 1c stw r25,28(r31) #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; ffc0a6d0: 93 7f 00 18 stw r27,24(r31) the_thread->Start.initial_priority = priority; ffc0a6d4: 93 7f 00 c4 stw r27,196(r31) _Thread_Set_priority( the_thread, priority ); ffc0a6d8: 48 00 07 d5 bl ffc0aeac <_Thread_Set_priority> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0a6dc: a0 1f 00 0a lhz r0,10(r31) ffc0a6e0: 81 3d 00 1c lwz r9,28(r29) * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); ffc0a6e4: 7f e3 fb 78 mr r3,r31 ffc0a6e8: 54 00 10 3a rlwinm r0,r0,2,0,29 /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); ffc0a6ec: 93 3f 00 88 stw r25,136(r31) ffc0a6f0: 7f e9 01 2e stwx r31,r9,r0 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc0a6f4: 93 1f 00 0c stw r24,12(r31) ffc0a6f8: 93 3f 00 84 stw r25,132(r31) * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); ffc0a6fc: 48 00 10 95 bl ffc0b790 <_User_extensions_Thread_create> if ( extension_status ) ffc0a700: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a704: 38 60 00 01 li r3,1 ffc0a708: 40 9e 00 70 bne- cr7,ffc0a778 <_Thread_Initialize+0x20c> return true; failed: if ( the_thread->libc_reent ) ffc0a70c: 80 7f 01 3c lwz r3,316(r31) ffc0a710: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a714: 41 9e 00 08 beq- cr7,ffc0a71c <_Thread_Initialize+0x1b0> _Workspace_Free( the_thread->libc_reent ); ffc0a718: 48 00 15 dd bl ffc0bcf4 <_Workspace_Free> for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) ffc0a71c: 80 7f 01 40 lwz r3,320(r31) ffc0a720: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a724: 41 9e 00 08 beq- cr7,ffc0a72c <_Thread_Initialize+0x1c0> _Workspace_Free( the_thread->API_Extensions[i] ); ffc0a728: 48 00 15 cd bl ffc0bcf4 <_Workspace_Free> failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) ffc0a72c: 80 7f 01 44 lwz r3,324(r31) ffc0a730: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a734: 41 9e 00 08 beq- cr7,ffc0a73c <_Thread_Initialize+0x1d0><== ALWAYS TAKEN _Workspace_Free( the_thread->API_Extensions[i] ); ffc0a738: 48 00 15 bd bl ffc0bcf4 <_Workspace_Free> <== NOT EXECUTED failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) ffc0a73c: 80 7f 01 48 lwz r3,328(r31) ffc0a740: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a744: 41 9e 00 08 beq- cr7,ffc0a74c <_Thread_Initialize+0x1e0><== ALWAYS TAKEN _Workspace_Free( the_thread->API_Extensions[i] ); ffc0a748: 48 00 15 ad bl ffc0bcf4 <_Workspace_Free> <== NOT EXECUTED if ( extensions_area ) ffc0a74c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0a750: 41 9e 00 0c beq- cr7,ffc0a75c <_Thread_Initialize+0x1f0> (void) _Workspace_Free( extensions_area ); ffc0a754: 7f c3 f3 78 mr r3,r30 ffc0a758: 48 00 15 9d bl ffc0bcf4 <_Workspace_Free> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) ffc0a75c: 2f 9c 00 00 cmpwi cr7,r28,0 ffc0a760: 41 9e 00 0c beq- cr7,ffc0a76c <_Thread_Initialize+0x200> (void) _Workspace_Free( fp_area ); ffc0a764: 7f 83 e3 78 mr r3,r28 ffc0a768: 48 00 15 8d bl ffc0bcf4 <_Workspace_Free> #endif _Thread_Stack_Free( the_thread ); ffc0a76c: 7f e3 fb 78 mr r3,r31 ffc0a770: 48 00 09 d1 bl ffc0b140 <_Thread_Stack_Free> return false; ffc0a774: 38 60 00 00 li r3,0 } ffc0a778: 80 01 00 34 lwz r0,52(r1) ffc0a77c: 82 e1 00 0c lwz r23,12(r1) ffc0a780: 7c 08 03 a6 mtlr r0 ffc0a784: 83 01 00 10 lwz r24,16(r1) ffc0a788: 83 21 00 14 lwz r25,20(r1) ffc0a78c: 83 41 00 18 lwz r26,24(r1) ffc0a790: 83 61 00 1c lwz r27,28(r1) ffc0a794: 83 81 00 20 lwz r28,32(r1) ffc0a798: 83 a1 00 24 lwz r29,36(r1) ffc0a79c: 83 c1 00 28 lwz r30,40(r1) ffc0a7a0: 83 e1 00 2c lwz r31,44(r1) ffc0a7a4: 38 21 00 30 addi r1,r1,48 ffc0a7a8: 4e 80 00 20 blr ffc0e678 <_Thread_Reset_timeslice>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ffc0e678: 3d 20 00 00 lis r9,0 ffc0e67c: 81 29 27 6c lwz r9,10092(r9) ready = executing->ready; ffc0e680: 81 69 00 8c lwz r11,140(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e684: 7c 00 00 a6 mfmsr r0 ffc0e688: 7d 50 42 a6 mfsprg r10,0 ffc0e68c: 7c 0a 50 78 andc r10,r0,r10 ffc0e690: 7d 40 01 24 mtmsr r10 _ISR_Disable( level ); if ( _Chain_Has_only_one_node( ready ) ) { ffc0e694: 81 0b 00 00 lwz r8,0(r11) ffc0e698: 81 4b 00 08 lwz r10,8(r11) ffc0e69c: 7f 88 50 00 cmpw cr7,r8,r10 ffc0e6a0: 40 be 00 08 bne+ cr7,ffc0e6a8 <_Thread_Reset_timeslice+0x30> _ISR_Enable( level ); ffc0e6a4: 48 00 00 5c b ffc0e700 <_Thread_Reset_timeslice+0x88> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0e6a8: 81 49 00 00 lwz r10,0(r9) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0e6ac: 38 eb 00 04 addi r7,r11,4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0e6b0: 81 09 00 04 lwz r8,4(r9) next->previous = previous; previous->next = next; ffc0e6b4: 91 48 00 00 stw r10,0(r8) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc0e6b8: 91 0a 00 04 stw r8,4(r10) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0e6bc: 90 e9 00 00 stw r7,0(r9) old_last_node = the_chain->last; ffc0e6c0: 81 4b 00 08 lwz r10,8(r11) the_chain->last = the_node; ffc0e6c4: 91 2b 00 08 stw r9,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0e6c8: 91 49 00 04 stw r10,4(r9) Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; ffc0e6cc: 91 2a 00 00 stw r9,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0e6d0: 7d 40 00 a6 mfmsr r10 ffc0e6d4: 7c 00 01 24 mtmsr r0 ffc0e6d8: 7d 40 01 24 mtmsr r10 _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) ffc0e6dc: 3d 40 00 00 lis r10,0 ffc0e6e0: 81 0a 27 48 lwz r8,10056(r10) ffc0e6e4: 7f 89 40 00 cmpw cr7,r9,r8 ffc0e6e8: 40 be 00 0c bne+ cr7,ffc0e6f4 <_Thread_Reset_timeslice+0x7c><== NEVER TAKEN _Thread_Heir = (Thread_Control *) ready->first; ffc0e6ec: 81 2b 00 00 lwz r9,0(r11) ffc0e6f0: 91 2a 27 48 stw r9,10056(r10) _Context_Switch_necessary = true; ffc0e6f4: 39 60 00 01 li r11,1 ffc0e6f8: 3d 20 00 00 lis r9,0 ffc0e6fc: 99 69 27 7c stb r11,10108(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e700: 7c 00 01 24 mtmsr r0 ffc0e704: 4e 80 00 20 blr ffc0bf0c <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0bf0c: 94 21 ff e8 stwu r1,-24(r1) ffc0bf10: 7c 08 02 a6 mflr r0 ffc0bf14: 90 01 00 1c stw r0,28(r1) if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0bf18: 80 03 00 10 lwz r0,16(r3) bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0bf1c: 93 e1 00 14 stw r31,20(r1) ffc0bf20: 7c 7f 1b 78 mr r31,r3 if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0bf24: 70 09 00 01 andi. r9,r0,1 ffc0bf28: 38 00 00 00 li r0,0 ffc0bf2c: 40 a2 00 74 bne+ ffc0bfa0 <_Thread_Restart+0x94> _Thread_Set_transient( the_thread ); ffc0bf30: 90 81 00 08 stw r4,8(r1) ffc0bf34: 90 a1 00 0c stw r5,12(r1) ffc0bf38: 48 00 01 f5 bl ffc0c12c <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); ffc0bf3c: 7f e3 fb 78 mr r3,r31 ffc0bf40: 80 81 00 08 lwz r4,8(r1) ffc0bf44: 80 a1 00 0c lwz r5,12(r1) ffc0bf48: 48 00 39 89 bl ffc0f8d0 <_Thread_Reset> _Thread_Load_environment( the_thread ); ffc0bf4c: 7f e3 fb 78 mr r3,r31 ffc0bf50: 48 00 35 7d bl ffc0f4cc <_Thread_Load_environment> _Thread_Ready( the_thread ); ffc0bf54: 7f e3 fb 78 mr r3,r31 ffc0bf58: 48 00 38 9d bl ffc0f7f4 <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); ffc0bf5c: 7f e3 fb 78 mr r3,r31 ffc0bf60: 48 00 0a 51 bl ffc0c9b0 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) ffc0bf64: 3d 20 00 00 lis r9,0 ffc0bf68: 81 29 27 98 lwz r9,10136(r9) ffc0bf6c: 38 00 00 01 li r0,1 ffc0bf70: 7f 9f 48 00 cmpw cr7,r31,r9 ffc0bf74: 40 be 00 2c bne+ cr7,ffc0bfa0 <_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 ) ffc0bf78: 80 1f 01 38 lwz r0,312(r31) ffc0bf7c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bf80: 41 9e 00 0c beq- cr7,ffc0bf8c <_Thread_Restart+0x80> <== NEVER TAKEN _Context_Restore_fp( &_Thread_Executing->fp_context ); ffc0bf84: 38 7f 01 38 addi r3,r31,312 ffc0bf88: 48 01 2d 99 bl ffc1ed20 <_CPU_Context_restore_fp> #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); ffc0bf8c: 3d 20 00 00 lis r9,0 ffc0bf90: 80 69 27 98 lwz r3,10136(r9) ffc0bf94: 38 63 00 d8 addi r3,r3,216 ffc0bf98: 48 01 2f 49 bl ffc1eee0 <_CPU_Context_restore> ffc0bf9c: 38 00 00 01 li r0,1 <== NOT EXECUTED return true; } return false; } ffc0bfa0: 7c 03 03 78 mr r3,r0 ffc0bfa4: 80 01 00 1c lwz r0,28(r1) ffc0bfa8: 83 e1 00 14 lwz r31,20(r1) ffc0bfac: 38 21 00 18 addi r1,r1,24 ffc0bfb0: 7c 08 03 a6 mtlr r0 ffc0bfb4: 4e 80 00 20 blr ffc0f5e4 <_Thread_Resume>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0f5e4: 7c 00 00 a6 mfmsr r0 ffc0f5e8: 7d 30 42 a6 mfsprg r9,0 ffc0f5ec: 7c 09 48 78 andc r9,r0,r9 ffc0f5f0: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; ffc0f5f4: 81 23 00 10 lwz r9,16(r3) if ( current_state & STATES_SUSPENDED ) { ffc0f5f8: 71 2b 00 02 andi. r11,r9,2 ffc0f5fc: 41 82 00 a8 beq- ffc0f6a4 <_Thread_Resume+0xc0> <== NEVER TAKEN ffc0f600: 55 29 07 fa rlwinm r9,r9,0,31,29 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { ffc0f604: 2f 89 00 00 cmpwi cr7,r9,0 } #endif current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { current_state = ffc0f608: 91 23 00 10 stw r9,16(r3) the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { ffc0f60c: 40 9e 00 98 bne- cr7,ffc0f6a4 <_Thread_Resume+0xc0> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; ffc0f610: 81 63 00 90 lwz r11,144(r3) ffc0f614: 81 43 00 98 lwz r10,152(r3) ffc0f618: 81 0b 00 00 lwz r8,0(r11) _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); ffc0f61c: 81 23 00 8c lwz r9,140(r3) ffc0f620: 7d 0a 53 78 or r10,r8,r10 ffc0f624: 91 4b 00 00 stw r10,0(r11) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0f628: 39 69 00 04 addi r11,r9,4 _Priority_Major_bit_map |= the_priority_map->ready_major; ffc0f62c: 3d 40 00 00 lis r10,0 ffc0f630: 91 63 00 00 stw r11,0(r3) ffc0f634: 80 ea 27 80 lwz r7,10112(r10) ffc0f638: 81 03 00 94 lwz r8,148(r3) old_last_node = the_chain->last; ffc0f63c: 81 69 00 08 lwz r11,8(r9) ffc0f640: 7c e8 43 78 or r8,r7,r8 the_chain->last = the_node; ffc0f644: 90 69 00 08 stw r3,8(r9) ffc0f648: 91 0a 27 80 stw r8,10112(r10) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0f64c: 91 63 00 04 stw r11,4(r3) Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; ffc0f650: 90 6b 00 00 stw r3,0(r11) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0f654: 7d 20 00 a6 mfmsr r9 ffc0f658: 7c 00 01 24 mtmsr r0 ffc0f65c: 7d 20 01 24 mtmsr r9 _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { ffc0f660: 3d 60 00 00 lis r11,0 ffc0f664: 81 23 00 14 lwz r9,20(r3) ffc0f668: 81 4b 27 68 lwz r10,10088(r11) ffc0f66c: 81 4a 00 14 lwz r10,20(r10) ffc0f670: 7f 89 50 40 cmplw cr7,r9,r10 ffc0f674: 40 9c 00 30 bge- cr7,ffc0f6a4 <_Thread_Resume+0xc0> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || ffc0f678: 3d 40 00 00 lis r10,0 _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; ffc0f67c: 90 6b 27 68 stw r3,10088(r11) if ( _Thread_Executing->is_preemptible || ffc0f680: 81 4a 27 8c lwz r10,10124(r10) ffc0f684: 89 6a 00 75 lbz r11,117(r10) ffc0f688: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0f68c: 40 9e 00 0c bne- cr7,ffc0f698 <_Thread_Resume+0xb4> ffc0f690: 2f 89 00 00 cmpwi cr7,r9,0 ffc0f694: 40 9e 00 10 bne- cr7,ffc0f6a4 <_Thread_Resume+0xc0> <== ALWAYS TAKEN the_thread->current_priority == 0 ) _Context_Switch_necessary = true; ffc0f698: 39 60 00 01 li r11,1 ffc0f69c: 3d 20 00 00 lis r9,0 ffc0f6a0: 99 69 27 9c stb r11,10140(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0f6a4: 7c 00 01 24 mtmsr r0 } } } _ISR_Enable( level ); } ffc0f6a8: 4e 80 00 20 blr ffc0b3e4 <_Thread_Yield_processor>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ffc0b3e4: 3d 20 00 00 lis r9,0 ffc0b3e8: 81 29 27 6c lwz r9,10092(r9) ready = executing->ready; ffc0b3ec: 81 69 00 8c lwz r11,140(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b3f0: 7c 00 00 a6 mfmsr r0 ffc0b3f4: 7d 50 42 a6 mfsprg r10,0 ffc0b3f8: 7c 0a 50 78 andc r10,r0,r10 ffc0b3fc: 7d 40 01 24 mtmsr r10 _ISR_Disable( level ); if ( !_Chain_Has_only_one_node( ready ) ) { ffc0b400: 80 eb 00 00 lwz r7,0(r11) ffc0b404: 3d 40 00 00 lis r10,0 ffc0b408: 81 0b 00 08 lwz r8,8(r11) ffc0b40c: 7f 87 40 00 cmpw cr7,r7,r8 ffc0b410: 41 9e 00 50 beq- cr7,ffc0b460 <_Thread_Yield_processor+0x7c> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0b414: 81 09 00 00 lwz r8,0(r9) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0b418: 38 cb 00 04 addi r6,r11,4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0b41c: 80 e9 00 04 lwz r7,4(r9) next->previous = previous; previous->next = next; ffc0b420: 91 07 00 00 stw r8,0(r7) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc0b424: 90 e8 00 04 stw r7,4(r8) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0b428: 90 c9 00 00 stw r6,0(r9) old_last_node = the_chain->last; ffc0b42c: 81 0b 00 08 lwz r8,8(r11) the_chain->last = the_node; ffc0b430: 91 2b 00 08 stw r9,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0b434: 91 09 00 04 stw r8,4(r9) Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; ffc0b438: 91 28 00 00 stw r9,0(r8) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0b43c: 7d 00 00 a6 mfmsr r8 ffc0b440: 7c 00 01 24 mtmsr r0 ffc0b444: 7d 00 01 24 mtmsr r8 _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) ffc0b448: 81 0a 27 48 lwz r8,10056(r10) ffc0b44c: 7f 89 40 00 cmpw cr7,r9,r8 ffc0b450: 40 be 00 1c bne+ cr7,ffc0b46c <_Thread_Yield_processor+0x88><== NEVER TAKEN _Thread_Heir = (Thread_Control *) ready->first; ffc0b454: 81 2b 00 00 lwz r9,0(r11) ffc0b458: 91 2a 27 48 stw r9,10056(r10) ffc0b45c: 48 00 00 10 b ffc0b46c <_Thread_Yield_processor+0x88> _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) ffc0b460: 81 6a 27 48 lwz r11,10056(r10) ffc0b464: 7f 89 58 00 cmpw cr7,r9,r11 ffc0b468: 41 9e 00 10 beq- cr7,ffc0b478 <_Thread_Yield_processor+0x94><== ALWAYS TAKEN _Context_Switch_necessary = true; ffc0b46c: 39 60 00 01 li r11,1 ffc0b470: 3d 20 00 00 lis r9,0 ffc0b474: 99 69 27 7c stb r11,10108(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b478: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); } ffc0b47c: 4e 80 00 20 blr ffc0ab48 <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; ffc0ab48: 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); ffc0ab4c: 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 ) { ffc0ab50: 94 21 ff f0 stwu r1,-16(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ab54: 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 ) ) ffc0ab58: 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 ]; ffc0ab5c: 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); ffc0ab60: 91 04 00 38 stw r8,56(r4) ffc0ab64: 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 ) { ffc0ab68: 93 e1 00 0c stw r31,12(r1) the_chain->permanent_null = NULL; ffc0ab6c: 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; ffc0ab70: 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 ]; ffc0ab74: 7d 43 52 14 add r10,r3,r10 ffc0ab78: 91 04 00 3c stw r8,60(r4) the_chain->last = _Chain_Head(the_chain); ffc0ab7c: 91 64 00 40 stw r11,64(r4) block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) ffc0ab80: 40 82 00 98 bne- ffc0ac18 <_Thread_queue_Enqueue_priority+0xd0> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0ab84: 38 ca 00 04 addi r6,r10,4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ab88: 7d 00 00 a6 mfmsr r8 ffc0ab8c: 7d 70 42 a6 mfsprg r11,0 ffc0ab90: 7d 0b 58 78 andc r11,r8,r11 ffc0ab94: 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; ffc0ab98: 38 e0 ff ff li r7,-1 ffc0ab9c: 81 6a 00 00 lwz r11,0(r10) while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { ffc0aba0: 48 00 00 34 b ffc0abd4 <_Thread_queue_Enqueue_priority+0x8c> search_priority = search_thread->current_priority; ffc0aba4: 80 eb 00 14 lwz r7,20(r11) if ( priority <= search_priority ) ffc0aba8: 7f 80 38 40 cmplw cr7,r0,r7 ffc0abac: 40 9d 00 30 ble- cr7,ffc0abdc <_Thread_queue_Enqueue_priority+0x94> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0abb0: 7d 80 00 a6 mfmsr r12 ffc0abb4: 7d 00 01 24 mtmsr r8 ffc0abb8: 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) ) { ffc0abbc: 81 8b 00 10 lwz r12,16(r11) ffc0abc0: 7d 3f 60 39 and. r31,r9,r12 ffc0abc4: 40 a2 00 0c bne+ ffc0abd0 <_Thread_queue_Enqueue_priority+0x88><== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0abc8: 7d 00 01 24 mtmsr r8 <== NOT EXECUTED ffc0abcc: 4b ff ff bc b ffc0ab88 <_Thread_queue_Enqueue_priority+0x40><== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; ffc0abd0: 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 ) ) { ffc0abd4: 7f 8b 30 00 cmpw cr7,r11,r6 ffc0abd8: 40 9e ff cc bne+ cr7,ffc0aba4 <_Thread_queue_Enqueue_priority+0x5c> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != ffc0abdc: 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 ) ) { ffc0abe0: 7d 09 43 78 mr r9,r8 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != ffc0abe4: 2f 8a 00 01 cmpwi cr7,r10,1 ffc0abe8: 40 be 00 f8 bne+ cr7,ffc0ace0 <_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 ) ffc0abec: 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; ffc0abf0: 38 00 00 00 li r0,0 ffc0abf4: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0abf8: 41 9e 00 c4 beq- cr7,ffc0acbc <_Thread_queue_Enqueue_priority+0x174> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; ffc0abfc: 81 2b 00 04 lwz r9,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0ac00: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0ac04: 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; ffc0ac08: 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; ffc0ac0c: 90 89 00 00 stw r4,0(r9) search_node->previous = the_node; ffc0ac10: 90 8b 00 04 stw r4,4(r11) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); ffc0ac14: 48 00 00 9c b ffc0acb0 <_Thread_queue_Enqueue_priority+0x168> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; ffc0ac18: 3c c0 00 00 lis r6,0 ffc0ac1c: 38 c6 26 64 addi r6,r6,9828 ffc0ac20: 88 e6 00 00 lbz r7,0(r6) ffc0ac24: 38 e7 00 01 addi r7,r7,1 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ac28: 7d 00 00 a6 mfmsr r8 ffc0ac2c: 7d 70 42 a6 mfsprg r11,0 ffc0ac30: 7d 0b 58 78 andc r11,r8,r11 ffc0ac34: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; ffc0ac38: 81 6a 00 08 lwz r11,8(r10) while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { ffc0ac3c: 48 00 00 34 b ffc0ac70 <_Thread_queue_Enqueue_priority+0x128> search_priority = search_thread->current_priority; ffc0ac40: 80 eb 00 14 lwz r7,20(r11) if ( priority >= search_priority ) ffc0ac44: 7f 80 38 40 cmplw cr7,r0,r7 ffc0ac48: 40 9c 00 30 bge- cr7,ffc0ac78 <_Thread_queue_Enqueue_priority+0x130> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0ac4c: 7d 80 00 a6 mfmsr r12 ffc0ac50: 7d 00 01 24 mtmsr r8 ffc0ac54: 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) ) { ffc0ac58: 81 8b 00 10 lwz r12,16(r11) ffc0ac5c: 7d 3f 60 39 and. r31,r9,r12 ffc0ac60: 40 a2 00 0c bne+ ffc0ac6c <_Thread_queue_Enqueue_priority+0x124> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ac64: 7d 00 01 24 mtmsr r8 ffc0ac68: 4b ff ff b8 b ffc0ac20 <_Thread_queue_Enqueue_priority+0xd8> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) ffc0ac6c: 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 ) ) { ffc0ac70: 7f 8b 50 00 cmpw cr7,r11,r10 ffc0ac74: 40 9e ff cc bne+ cr7,ffc0ac40 <_Thread_queue_Enqueue_priority+0xf8> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0ac78: 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 ) ) { ffc0ac7c: 7d 09 43 78 mr r9,r8 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0ac80: 2f 8a 00 01 cmpwi cr7,r10,1 ffc0ac84: 40 be 00 5c bne+ cr7,ffc0ace0 <_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 ) ffc0ac88: 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; ffc0ac8c: 38 00 00 00 li r0,0 ffc0ac90: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0ac94: 41 9e 00 28 beq- cr7,ffc0acbc <_Thread_queue_Enqueue_priority+0x174> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; ffc0ac98: 81 2b 00 00 lwz r9,0(r11) the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; ffc0ac9c: 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; ffc0aca0: 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; ffc0aca4: 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; ffc0aca8: 90 8b 00 00 stw r4,0(r11) next_node->previous = the_node; ffc0acac: 90 89 00 04 stw r4,4(r9) ffc0acb0: 7d 00 01 24 mtmsr r8 ffc0acb4: 38 60 00 01 li r3,1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc0acb8: 48 00 00 30 b ffc0ace8 <_Thread_queue_Enqueue_priority+0x1a0> ffc0acbc: 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; ffc0acc0: 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; ffc0acc4: 81 4b 00 04 lwz r10,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0acc8: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0accc: 91 44 00 04 stw r10,4(r4) previous_node->next = the_node; ffc0acd0: 90 8a 00 00 stw r4,0(r10) search_node->previous = the_node; ffc0acd4: 90 8b 00 04 stw r4,4(r11) ffc0acd8: 7d 20 01 24 mtmsr r9 ffc0acdc: 4b ff ff d8 b ffc0acb4 <_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; ffc0ace0: 91 25 00 00 stw r9,0(r5) return the_thread_queue->sync_state; ffc0ace4: 80 63 00 30 lwz r3,48(r3) } ffc0ace8: 83 e1 00 0c lwz r31,12(r1) ffc0acec: 38 21 00 10 addi r1,r1,16 ffc0acf0: 4e 80 00 20 blr ffc0add8 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0add8: 94 21 ff d8 stwu r1,-40(r1) ffc0addc: 7c 08 02 a6 mflr r0 ffc0ade0: 93 e1 00 24 stw r31,36(r1) /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) ffc0ade4: 7c 7f 1b 79 mr. r31,r3 void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0ade8: 93 c1 00 20 stw r30,32(r1) ffc0adec: 7c 9e 23 78 mr r30,r4 ffc0adf0: 90 01 00 2c stw r0,44(r1) ffc0adf4: 93 a1 00 1c stw r29,28(r1) /* * Just in case the thread really wasn't blocked on a thread queue * when we get here. */ if ( !the_thread_queue ) ffc0adf8: 41 82 00 54 beq- ffc0ae4c <_Thread_queue_Requeue+0x74> <== NEVER TAKEN /* * If queueing by FIFO, there is nothing to do. This only applies to * priority blocking discipline. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { ffc0adfc: 80 1f 00 34 lwz r0,52(r31) ffc0ae00: 2f 80 00 01 cmpwi cr7,r0,1 ffc0ae04: 40 be 00 48 bne+ cr7,ffc0ae4c <_Thread_queue_Requeue+0x74><== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ae08: 7f a0 00 a6 mfmsr r29 ffc0ae0c: 7d 30 42 a6 mfsprg r9,0 ffc0ae10: 7f a9 48 78 andc r9,r29,r9 ffc0ae14: 7d 20 01 24 mtmsr r9 Thread_queue_Control *tq = the_thread_queue; ISR_Level level; ISR_Level level_ignored; _ISR_Disable( level ); if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { ffc0ae18: 3d 60 00 03 lis r11,3 ffc0ae1c: 81 24 00 10 lwz r9,16(r4) ffc0ae20: 61 6b be e0 ori r11,r11,48864 ffc0ae24: 7d 6a 48 39 and. r10,r11,r9 ffc0ae28: 41 a2 00 20 beq+ ffc0ae48 <_Thread_queue_Requeue+0x70> <== NEVER TAKEN ffc0ae2c: 90 1f 00 30 stw r0,48(r31) _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); ffc0ae30: 38 a0 00 01 li r5,1 ffc0ae34: 48 00 36 01 bl ffc0e434 <_Thread_queue_Extract_priority_helper> (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); ffc0ae38: 7f e3 fb 78 mr r3,r31 ffc0ae3c: 7f c4 f3 78 mr r4,r30 ffc0ae40: 38 a1 00 08 addi r5,r1,8 ffc0ae44: 4b ff fd 05 bl ffc0ab48 <_Thread_queue_Enqueue_priority> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ae48: 7f a0 01 24 mtmsr r29 } _ISR_Enable( level ); } } ffc0ae4c: 80 01 00 2c lwz r0,44(r1) ffc0ae50: 83 a1 00 1c lwz r29,28(r1) ffc0ae54: 7c 08 03 a6 mtlr r0 ffc0ae58: 83 c1 00 20 lwz r30,32(r1) ffc0ae5c: 83 e1 00 24 lwz r31,36(r1) ffc0ae60: 38 21 00 28 addi r1,r1,40 ffc0ae64: 4e 80 00 20 blr ffc0ae68 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0ae68: 94 21 ff e8 stwu r1,-24(r1) ffc0ae6c: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0ae70: 38 81 00 08 addi r4,r1,8 void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0ae74: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0ae78: 4b ff f6 41 bl ffc0a4b8 <_Thread_Get> switch ( location ) { ffc0ae7c: 80 01 00 08 lwz r0,8(r1) ffc0ae80: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ae84: 40 9e 00 18 bne- cr7,ffc0ae9c <_Thread_queue_Timeout+0x34><== NEVER TAKEN #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); ffc0ae88: 48 00 36 a9 bl ffc0e530 <_Thread_queue_Process_timeout> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0ae8c: 3d 20 00 00 lis r9,0 ffc0ae90: 81 69 27 2c lwz r11,10028(r9) ffc0ae94: 38 0b ff ff addi r0,r11,-1 ffc0ae98: 90 09 27 2c stw r0,10028(r9) _Thread_Unnest_dispatch(); break; } } ffc0ae9c: 80 01 00 1c lwz r0,28(r1) ffc0aea0: 38 21 00 18 addi r1,r1,24 ffc0aea4: 7c 08 03 a6 mtlr r0 ffc0aea8: 4e 80 00 20 blr ffc19d0c <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19d0c: 94 21 ff 98 stwu r1,-104(r1) ffc19d10: 7c 08 02 a6 mflr r0 ffc19d14: 92 01 00 28 stw r16,40(r1) Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc19d18: 3a 01 00 08 addi r16,r1,8 ffc19d1c: 90 01 00 6c stw r0,108(r1) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc19d20: 38 00 00 00 li r0,0 ffc19d24: 93 01 00 48 stw r24,72(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc19d28: 3b 01 00 0c addi r24,r1,12 ffc19d2c: 93 61 00 54 stw r27,84(r1) ffc19d30: 3b 61 00 18 addi r27,r1,24 ffc19d34: 93 c1 00 60 stw r30,96(r1) ffc19d38: 3b c1 00 14 addi r30,r1,20 ffc19d3c: 92 21 00 2c stw r17,44(r1) static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; ffc19d40: 3e 20 00 00 lis r17,0 ffc19d44: 3a 31 28 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 ) { ffc19d48: 92 41 00 30 stw r18,48(r1) static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc19d4c: 3e 40 00 00 lis r18,0 ffc19d50: 3a 52 28 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 ) { ffc19d54: 93 21 00 4c stw r25,76(r1) ffc19d58: 3f 20 00 00 lis r25,0 ffc19d5c: 3b 39 28 24 addi r25,r25,10276 ffc19d60: 93 a1 00 5c stw r29,92(r1) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc19d64: 90 01 00 18 stw r0,24(r1) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc19d68: 93 01 00 08 stw r24,8(r1) the_chain->permanent_null = NULL; ffc19d6c: 90 01 00 0c stw r0,12(r1) the_chain->last = _Chain_Head(the_chain); ffc19d70: 92 01 00 10 stw r16,16(r1) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc19d74: 93 61 00 14 stw r27,20(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc19d78: 93 c1 00 1c stw r30,28(r1) ffc19d7c: 92 61 00 34 stw r19,52(r1) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc19d80: 3a 63 00 08 addi r19,r3,8 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19d84: 92 81 00 38 stw r20,56(r1) static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc19d88: 3a 83 00 40 addi r20,r3,64 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19d8c: 92 a1 00 3c stw r21,60(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) ffc19d90: 3a a0 00 00 li r21,0 ffc19d94: 92 c1 00 40 stw r22,64(r1) * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; ffc19d98: 3a c0 00 00 li r22,0 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19d9c: 92 e1 00 44 stw r23,68(r1) _Thread_Set_state( ts->thread, STATES_DELAYING ); _Timer_server_Reset_interval_system_watchdog( ts ); _Timer_server_Reset_tod_system_watchdog( ts ); _Thread_Enable_dispatch(); ts->active = true; ffc19da0: 3a e0 00 01 li r23,1 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19da4: 93 41 00 50 stw r26,80(r1) */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19da8: 3b 43 00 30 addi r26,r3,48 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19dac: 93 81 00 58 stw r28,88(r1) /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19db0: 3b 83 00 68 addi r28,r3,104 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19db4: 93 e1 00 64 stw r31,100(r1) ffc19db8: 7c 7f 1b 78 mr r31,r3 { /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; ffc19dbc: 92 1f 00 78 stw r16,120(r31) static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; ffc19dc0: 80 11 00 00 lwz r0,0(r17) */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19dc4: 7f c5 f3 78 mr r5,r30 Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; ffc19dc8: 80 9f 00 3c lwz r4,60(r31) watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19dcc: 7f 43 d3 78 mr r3,r26 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; ffc19dd0: 90 1f 00 3c stw r0,60(r31) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19dd4: 7c 84 00 50 subf r4,r4,r0 ffc19dd8: 48 00 4d 61 bl ffc1eb38 <_Watchdog_Adjust_to_chain> static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc19ddc: 83 b2 00 00 lwz r29,0(r18) Watchdog_Interval last_snapshot = watchdogs->last_snapshot; ffc19de0: 80 bf 00 74 lwz r5,116(r31) /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { ffc19de4: 7f 9d 28 40 cmplw cr7,r29,r5 ffc19de8: 40 bd 00 18 ble+ cr7,ffc19e00 <_Timer_server_Body+0xf4> /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19dec: 7c 85 e8 50 subf r4,r5,r29 ffc19df0: 7f 83 e3 78 mr r3,r28 ffc19df4: 7f c5 f3 78 mr r5,r30 ffc19df8: 48 00 4d 41 bl ffc1eb38 <_Watchdog_Adjust_to_chain> ffc19dfc: 48 00 00 18 b ffc19e14 <_Timer_server_Body+0x108> } else if ( snapshot < last_snapshot ) { ffc19e00: 40 bc 00 14 bge+ cr7,ffc19e14 <_Timer_server_Body+0x108> /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); ffc19e04: 7c bd 28 50 subf r5,r29,r5 ffc19e08: 7f 83 e3 78 mr r3,r28 ffc19e0c: 38 80 00 01 li r4,1 ffc19e10: 48 00 4c 45 bl ffc1ea54 <_Watchdog_Adjust> } watchdogs->last_snapshot = snapshot; ffc19e14: 93 bf 00 74 stw r29,116(r31) } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); ffc19e18: 80 7f 00 78 lwz r3,120(r31) ffc19e1c: 48 00 0b 1d bl ffc1a938 <_Chain_Get> if ( timer == NULL ) { ffc19e20: 7c 64 1b 79 mr. r4,r3 ffc19e24: 41 82 00 34 beq- ffc19e58 <_Timer_server_Body+0x14c> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { ffc19e28: 80 04 00 38 lwz r0,56(r4) ffc19e2c: 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 ) { ffc19e30: 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 ) { ffc19e34: 40 ba 00 10 bne+ cr6,ffc19e44 <_Timer_server_Body+0x138> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); ffc19e38: 38 84 00 10 addi r4,r4,16 ffc19e3c: 7f 43 d3 78 mr r3,r26 ffc19e40: 48 00 00 10 b ffc19e50 <_Timer_server_Body+0x144> } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { ffc19e44: 40 9e ff d4 bne+ cr7,ffc19e18 <_Timer_server_Body+0x10c><== NEVER TAKEN _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); ffc19e48: 38 84 00 10 addi r4,r4,16 ffc19e4c: 7f 83 e3 78 mr r3,r28 ffc19e50: 48 00 4d a1 bl ffc1ebf0 <_Watchdog_Insert> ffc19e54: 4b ff ff c4 b ffc19e18 <_Timer_server_Body+0x10c> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc19e58: 7c 00 00 a6 mfmsr r0 ffc19e5c: 7d 30 42 a6 mfsprg r9,0 ffc19e60: 7c 09 48 78 andc r9,r0,r9 ffc19e64: 7d 20 01 24 mtmsr r9 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ffc19e68: 81 21 00 08 lwz r9,8(r1) ffc19e6c: 7f 89 c0 00 cmpw cr7,r9,r24 ffc19e70: 40 be 00 1c bne+ cr7,ffc19e8c <_Timer_server_Body+0x180><== NEVER TAKEN ts->insert_chain = NULL; ffc19e74: 90 9f 00 78 stw r4,120(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19e78: 7c 00 01 24 mtmsr r0 _Chain_Initialize_empty( &fire_chain ); while ( true ) { _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain ); if ( !_Chain_Is_empty( &fire_chain ) ) { ffc19e7c: 80 01 00 14 lwz r0,20(r1) ffc19e80: 7f 80 d8 00 cmpw cr7,r0,r27 ffc19e84: 40 be 00 10 bne+ cr7,ffc19e94 <_Timer_server_Body+0x188> ffc19e88: 48 00 00 64 b ffc19eec <_Timer_server_Body+0x1e0> ffc19e8c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc19e90: 4b ff ff 30 b ffc19dc0 <_Timer_server_Body+0xb4> <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc19e94: 7c 00 00 a6 mfmsr r0 ffc19e98: 7d 30 42 a6 mfsprg r9,0 ffc19e9c: 7c 09 48 78 andc r9,r0,r9 ffc19ea0: 7d 20 01 24 mtmsr r9 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc19ea4: 81 21 00 14 lwz r9,20(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) ffc19ea8: 7f 09 d8 00 cmpw cr6,r9,r27 * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { ffc19eac: 2f 89 00 00 cmpwi cr7,r9,0 ffc19eb0: 41 9a 00 34 beq- cr6,ffc19ee4 <_Timer_server_Body+0x1d8> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc19eb4: 81 69 00 00 lwz r11,0(r9) the_chain->first = new_first; ffc19eb8: 91 61 00 14 stw r11,20(r1) new_first->previous = _Chain_Head(the_chain); ffc19ebc: 93 cb 00 04 stw r30,4(r11) ffc19ec0: 41 9e 00 24 beq- cr7,ffc19ee4 <_Timer_server_Body+0x1d8><== NEVER TAKEN watchdog->state = WATCHDOG_INACTIVE; ffc19ec4: 92 a9 00 08 stw r21,8(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19ec8: 7c 00 01 24 mtmsr r0 /* * The timer server may block here and wait for resources or time. * The system watchdogs are inactive and will remain inactive since * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); ffc19ecc: 80 09 00 1c lwz r0,28(r9) ffc19ed0: 80 89 00 24 lwz r4,36(r9) ffc19ed4: 80 69 00 20 lwz r3,32(r9) ffc19ed8: 7c 09 03 a6 mtctr r0 ffc19edc: 4e 80 04 21 bctrl } ffc19ee0: 4b ff ff b4 b ffc19e94 <_Timer_server_Body+0x188> ffc19ee4: 7c 00 01 24 mtmsr r0 ffc19ee8: 4b ff fe d4 b ffc19dbc <_Timer_server_Body+0xb0> } else { ts->active = false; ffc19eec: 9a df 00 7c stb r22,124(r31) ffc19ef0: 81 39 00 00 lwz r9,0(r25) ffc19ef4: 38 09 00 01 addi r0,r9,1 ffc19ef8: 90 19 00 00 stw r0,0(r25) /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); ffc19efc: 80 7f 00 00 lwz r3,0(r31) ffc19f00: 38 80 00 08 li r4,8 ffc19f04: 48 00 3f bd bl ffc1dec0 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); ffc19f08: 7f e3 fb 78 mr r3,r31 ffc19f0c: 4b ff fd 01 bl ffc19c0c <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); ffc19f10: 7f e3 fb 78 mr r3,r31 ffc19f14: 4b ff fd 79 bl ffc19c8c <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); ffc19f18: 48 00 33 79 bl ffc1d290 <_Thread_Enable_dispatch> ts->active = true; ffc19f1c: 9a ff 00 7c stb r23,124(r31) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc19f20: 7e 63 9b 78 mr r3,r19 ffc19f24: 48 00 4e 25 bl ffc1ed48 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc19f28: 7e 83 a3 78 mr r3,r20 ffc19f2c: 48 00 4e 1d bl ffc1ed48 <_Watchdog_Remove> ffc19f30: 4b ff fe 8c b ffc19dbc <_Timer_server_Body+0xb0> ffc0de30 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { ffc0de30: 94 21 ff e0 stwu r1,-32(r1) ffc0de34: 7c 08 02 a6 mflr r0 ffc0de38: 90 01 00 24 stw r0,36(r1) ffc0de3c: 93 c1 00 18 stw r30,24(r1) ffc0de40: 7c be 2b 78 mr r30,r5 ffc0de44: 93 e1 00 1c stw r31,28(r1) ffc0de48: 7c 7f 1b 78 mr r31,r3 ffc0de4c: 93 61 00 0c stw r27,12(r1) ffc0de50: 93 81 00 10 stw r28,16(r1) ffc0de54: 93 a1 00 14 stw r29,20(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0de58: 7c 00 00 a6 mfmsr r0 ffc0de5c: 7d 30 42 a6 mfsprg r9,0 ffc0de60: 7c 09 48 78 andc r9,r0,r9 ffc0de64: 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)); ffc0de68: 81 23 00 00 lwz r9,0(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0de6c: 3b 83 00 04 addi r28,r3,4 * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { ffc0de70: 7f 89 e0 00 cmpw cr7,r9,r28 ffc0de74: 41 9e 00 78 beq- cr7,ffc0deec <_Watchdog_Adjust+0xbc> switch ( direction ) { ffc0de78: 2f 84 00 00 cmpwi cr7,r4,0 if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; ffc0de7c: 3b 60 00 01 li r27,1 * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { ffc0de80: 41 9e 00 64 beq- cr7,ffc0dee4 <_Watchdog_Adjust+0xb4> ffc0de84: 2f 84 00 01 cmpwi cr7,r4,1 ffc0de88: 40 be 00 64 bne+ cr7,ffc0deec <_Watchdog_Adjust+0xbc> <== NEVER TAKEN case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; ffc0de8c: 81 69 00 10 lwz r11,16(r9) ffc0de90: 7f cb 2a 14 add r30,r11,r5 ffc0de94: 48 00 00 18 b ffc0deac <_Watchdog_Adjust+0x7c> RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); ffc0de98: 81 3f 00 00 lwz r9,0(r31) break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { ffc0de9c: 83 a9 00 10 lwz r29,16(r9) ffc0dea0: 7f 9e e8 40 cmplw cr7,r30,r29 ffc0dea4: 40 bc 00 10 bge+ cr7,ffc0deb4 <_Watchdog_Adjust+0x84> _Watchdog_First( header )->delta_interval -= units; ffc0dea8: 7f de e8 50 subf r30,r30,r29 ffc0deac: 93 c9 00 10 stw r30,16(r9) break; ffc0deb0: 48 00 00 3c b ffc0deec <_Watchdog_Adjust+0xbc> } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; ffc0deb4: 93 69 00 10 stw r27,16(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0deb8: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); _Watchdog_Tickle( header ); ffc0debc: 7f e3 fb 78 mr r3,r31 ffc0dec0: 48 00 02 59 bl ffc0e118 <_Watchdog_Tickle> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0dec4: 7c 00 00 a6 mfmsr r0 ffc0dec8: 7d 30 42 a6 mfsprg r9,0 ffc0decc: 7c 09 48 78 andc r9,r0,r9 ffc0ded0: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) ffc0ded4: 81 3f 00 00 lwz r9,0(r31) while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; ffc0ded8: 7f dd f0 50 subf r30,r29,r30 _Watchdog_Tickle( header ); _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) ffc0dedc: 7f 89 e0 00 cmpw cr7,r9,r28 ffc0dee0: 41 9e 00 0c beq- cr7,ffc0deec <_Watchdog_Adjust+0xbc> switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { ffc0dee4: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0dee8: 40 9e ff b0 bne+ cr7,ffc0de98 <_Watchdog_Adjust+0x68> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0deec: 7c 00 01 24 mtmsr r0 } } _ISR_Enable( level ); } ffc0def0: 80 01 00 24 lwz r0,36(r1) ffc0def4: 83 61 00 0c lwz r27,12(r1) ffc0def8: 7c 08 03 a6 mtlr r0 ffc0defc: 83 81 00 10 lwz r28,16(r1) ffc0df00: 83 a1 00 14 lwz r29,20(r1) ffc0df04: 83 c1 00 18 lwz r30,24(r1) ffc0df08: 83 e1 00 1c lwz r31,28(r1) ffc0df0c: 38 21 00 20 addi r1,r1,32 ffc0df10: 4e 80 00 20 blr ffc1eb38 <_Watchdog_Adjust_to_chain>: { Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { ffc1eb38: 2c 04 00 00 cmpwi r4,0 ffc1eb3c: 4d 82 00 20 beqlr static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1eb40: 7d 40 00 a6 mfmsr r10 ffc1eb44: 7c 10 42 a6 mfsprg r0,0 ffc1eb48: 7d 40 00 78 andc r0,r10,r0 ffc1eb4c: 7c 00 01 24 mtmsr r0 /* * The first set happens in less than units, so take all of them * off the chain and adjust units to reflect this. */ units -= first->delta_interval; first->delta_interval = 0; ffc1eb50: 38 c0 00 00 li r6,0 ffc1eb54: 39 03 00 04 addi r8,r3,4 ffc1eb58: 39 85 00 04 addi r12,r5,4 ffc1eb5c: 48 00 00 0c b ffc1eb68 <_Watchdog_Adjust_to_chain+0x30> } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { ffc1eb60: 2f 84 00 00 cmpwi cr7,r4,0 ffc1eb64: 41 9e 00 84 beq- cr7,ffc1ebe8 <_Watchdog_Adjust_to_chain+0xb0> */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc1eb68: 81 63 00 00 lwz r11,0(r3) break; } if ( _Chain_Is_empty( header ) ) { ffc1eb6c: 7f 8b 40 00 cmpw cr7,r11,r8 ffc1eb70: 41 9e 00 78 beq- cr7,ffc1ebe8 <_Watchdog_Adjust_to_chain+0xb0> /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { ffc1eb74: 80 0b 00 10 lwz r0,16(r11) ffc1eb78: 7d 69 5b 78 mr r9,r11 ffc1eb7c: 7f 84 00 40 cmplw cr7,r4,r0 ffc1eb80: 40 bc 00 10 bge+ cr7,ffc1eb90 <_Watchdog_Adjust_to_chain+0x58> first->delta_interval -= units; ffc1eb84: 7c 84 00 50 subf r4,r4,r0 ffc1eb88: 90 8b 00 10 stw r4,16(r11) break; ffc1eb8c: 48 00 00 5c b ffc1ebe8 <_Watchdog_Adjust_to_chain+0xb0> /* * The first set happens in less than units, so take all of them * off the chain and adjust units to reflect this. */ units -= first->delta_interval; first->delta_interval = 0; ffc1eb90: 90 cb 00 10 stw r6,16(r11) /* * The first set happens in less than units, so take all of them * off the chain and adjust units to reflect this. */ units -= first->delta_interval; ffc1eb94: 7c 80 20 50 subf r4,r0,r4 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc1eb98: 81 69 00 00 lwz r11,0(r9) previous = the_node->previous; ffc1eb9c: 80 e9 00 04 lwz r7,4(r9) next->previous = previous; previous->next = next; ffc1eba0: 91 67 00 00 stw r11,0(r7) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc1eba4: 90 eb 00 04 stw r7,4(r11) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc1eba8: 91 89 00 00 stw r12,0(r9) old_last_node = the_chain->last; ffc1ebac: 81 65 00 08 lwz r11,8(r5) the_chain->last = the_node; ffc1ebb0: 91 25 00 08 stw r9,8(r5) old_last_node->next = the_node; the_node->previous = old_last_node; ffc1ebb4: 91 69 00 04 stw r11,4(r9) Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; ffc1ebb8: 91 2b 00 00 stw r9,0(r11) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc1ebbc: 7c 00 00 a6 mfmsr r0 ffc1ebc0: 7d 40 01 24 mtmsr r10 ffc1ebc4: 7c 00 01 24 mtmsr r0 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc1ebc8: 80 03 00 00 lwz r0,0(r3) _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); if ( _Chain_Is_empty( header ) ) ffc1ebcc: 7f 80 40 00 cmpw cr7,r0,r8 ffc1ebd0: 7c 09 03 78 mr r9,r0 ffc1ebd4: 41 be ff 8c beq- cr7,ffc1eb60 <_Watchdog_Adjust_to_chain+0x28> break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) ffc1ebd8: 80 09 00 10 lwz r0,16(r9) ffc1ebdc: 2f 80 00 00 cmpwi cr7,r0,0 ffc1ebe0: 41 9e ff b8 beq+ cr7,ffc1eb98 <_Watchdog_Adjust_to_chain+0x60><== NEVER TAKEN ffc1ebe4: 4b ff ff 7c b ffc1eb60 <_Watchdog_Adjust_to_chain+0x28> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1ebe8: 7d 40 01 24 mtmsr r10 ffc1ebec: 4e 80 00 20 blr ffc0baf8 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { ffc0baf8: 7c 69 1b 78 mr r9,r3 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0bafc: 7c 00 00 a6 mfmsr r0 ffc0bb00: 7d 70 42 a6 mfsprg r11,0 ffc0bb04: 7c 0b 58 78 andc r11,r0,r11 ffc0bb08: 7d 60 01 24 mtmsr r11 ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; ffc0bb0c: 80 63 00 08 lwz r3,8(r3) switch ( previous_state ) { ffc0bb10: 2f 83 00 01 cmpwi cr7,r3,1 ffc0bb14: 41 9e 00 18 beq- cr7,ffc0bb2c <_Watchdog_Remove+0x34> ffc0bb18: 2b 83 00 01 cmplwi cr7,r3,1 ffc0bb1c: 41 9c 00 74 blt- cr7,ffc0bb90 <_Watchdog_Remove+0x98> ffc0bb20: 2b 83 00 03 cmplwi cr7,r3,3 ffc0bb24: 41 9d 00 6c bgt- cr7,ffc0bb90 <_Watchdog_Remove+0x98> <== NEVER TAKEN ffc0bb28: 48 00 00 10 b ffc0bb38 <_Watchdog_Remove+0x40> /* * It is not actually on the chain so just change the state and * the Insert operation we interrupted will be aborted. */ the_watchdog->state = WATCHDOG_INACTIVE; ffc0bb2c: 39 60 00 00 li r11,0 ffc0bb30: 91 69 00 08 stw r11,8(r9) break; ffc0bb34: 48 00 00 5c b ffc0bb90 <_Watchdog_Remove+0x98> RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); ffc0bb38: 81 69 00 00 lwz r11,0(r9) case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; ffc0bb3c: 39 00 00 00 li r8,0 ffc0bb40: 91 09 00 08 stw r8,8(r9) next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) ffc0bb44: 81 4b 00 00 lwz r10,0(r11) ffc0bb48: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0bb4c: 41 9e 00 14 beq- cr7,ffc0bb60 <_Watchdog_Remove+0x68> next_watchdog->delta_interval += the_watchdog->delta_interval; ffc0bb50: 81 0b 00 10 lwz r8,16(r11) ffc0bb54: 81 49 00 10 lwz r10,16(r9) ffc0bb58: 7d 48 52 14 add r10,r8,r10 ffc0bb5c: 91 4b 00 10 stw r10,16(r11) if ( _Watchdog_Sync_count ) ffc0bb60: 3d 60 00 00 lis r11,0 ffc0bb64: 81 6b 27 80 lwz r11,10112(r11) ffc0bb68: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0bb6c: 41 9e 00 14 beq- cr7,ffc0bb80 <_Watchdog_Remove+0x88> _Watchdog_Sync_level = _ISR_Nest_level; ffc0bb70: 3d 60 00 00 lis r11,0 ffc0bb74: 81 4b 27 54 lwz r10,10068(r11) ffc0bb78: 3d 60 00 00 lis r11,0 ffc0bb7c: 91 4b 27 68 stw r10,10088(r11) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0bb80: 81 69 00 00 lwz r11,0(r9) previous = the_node->previous; ffc0bb84: 81 49 00 04 lwz r10,4(r9) next->previous = previous; previous->next = next; ffc0bb88: 91 6a 00 00 stw r11,0(r10) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc0bb8c: 91 4b 00 04 stw r10,4(r11) _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; ffc0bb90: 3d 60 00 00 lis r11,0 ffc0bb94: 81 6b 27 84 lwz r11,10116(r11) ffc0bb98: 91 69 00 18 stw r11,24(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0bb9c: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); return( previous_state ); } ffc0bba0: 4e 80 00 20 blr ffc0d53c <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { ffc0d53c: 94 21 ff e8 stwu r1,-24(r1) ffc0d540: 7c 08 02 a6 mflr r0 ffc0d544: 93 c1 00 10 stw r30,16(r1) ffc0d548: 7c 7e 1b 78 mr r30,r3 ffc0d54c: 93 e1 00 14 stw r31,20(r1) ffc0d550: 7c 9f 23 78 mr r31,r4 ffc0d554: 90 01 00 1c stw r0,28(r1) ffc0d558: 93 81 00 08 stw r28,8(r1) ffc0d55c: 93 a1 00 0c stw r29,12(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0d560: 7f a0 00 a6 mfmsr r29 ffc0d564: 7c 10 42 a6 mfsprg r0,0 ffc0d568: 7f a0 00 78 andc r0,r29,r0 ffc0d56c: 7c 00 01 24 mtmsr r0 ISR_Level level; Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); ffc0d570: 3c 60 ff c2 lis r3,-62 ffc0d574: 7f e5 fb 78 mr r5,r31 ffc0d578: 38 63 1f d0 addi r3,r3,8144 ffc0d57c: 7f c4 f3 78 mr r4,r30 ffc0d580: 4c c6 31 82 crclr 4*cr1+eq ffc0d584: 4b ff 8c c9 bl ffc0624c */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc0d588: 83 9f 00 00 lwz r28,0(r31) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0d58c: 3b ff 00 04 addi r31,r31,4 if ( !_Chain_Is_empty( header ) ) { ffc0d590: 7f 9c f8 00 cmpw cr7,r28,r31 ffc0d594: 41 9e 00 34 beq- cr7,ffc0d5c8 <_Watchdog_Report_chain+0x8c> node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); ffc0d598: 7f 84 e3 78 mr r4,r28 ffc0d59c: 38 60 00 00 li r3,0 ffc0d5a0: 48 00 00 5d bl ffc0d5fc <_Watchdog_Report> _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = header->first ; node != _Chain_Tail(header) ; node = node->next ) ffc0d5a4: 83 9c 00 00 lwz r28,0(r28) Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); if ( !_Chain_Is_empty( header ) ) { for ( node = header->first ; ffc0d5a8: 7f 9c f8 00 cmpw cr7,r28,r31 ffc0d5ac: 40 9e ff ec bne+ cr7,ffc0d598 <_Watchdog_Report_chain+0x5c><== NEVER TAKEN { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); ffc0d5b0: 3c 60 ff c2 lis r3,-62 ffc0d5b4: 38 63 1f e7 addi r3,r3,8167 ffc0d5b8: 7f c4 f3 78 mr r4,r30 ffc0d5bc: 4c c6 31 82 crclr 4*cr1+eq ffc0d5c0: 4b ff 8c 8d bl ffc0624c ffc0d5c4: 48 00 00 14 b ffc0d5d8 <_Watchdog_Report_chain+0x9c> } else { printk( "Chain is empty\n" ); ffc0d5c8: 3c 60 ff c2 lis r3,-62 ffc0d5cc: 38 63 1f f6 addi r3,r3,8182 ffc0d5d0: 4c c6 31 82 crclr 4*cr1+eq ffc0d5d4: 4b ff 8c 79 bl ffc0624c return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0d5d8: 7f a0 01 24 mtmsr r29 } _ISR_Enable( level ); } ffc0d5dc: 80 01 00 1c lwz r0,28(r1) ffc0d5e0: 83 81 00 08 lwz r28,8(r1) ffc0d5e4: 7c 08 03 a6 mtlr r0 ffc0d5e8: 83 a1 00 0c lwz r29,12(r1) ffc0d5ec: 83 c1 00 10 lwz r30,16(r1) ffc0d5f0: 83 e1 00 14 lwz r31,20(r1) ffc0d5f4: 38 21 00 18 addi r1,r1,24 ffc0d5f8: 4e 80 00 20 blr ffc26cdc <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } ffc26cdc: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc26ce0: 4e 80 00 20 blr <== NOT EXECUTED ffc1b360 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); ffc1b360: 94 21 ff f0 stwu r1,-16(r1) ffc1b364: 7c 08 02 a6 mflr r0 ffc1b368: 90 61 00 08 stw r3,8(r1) ffc1b36c: 90 01 00 14 stw r0,20(r1) ffc1b370: 48 00 0a 51 bl ffc1bdc0 <__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(); ffc1b374: 4b ff ff 65 bl ffc1b2d8 rtems_shutdown_executive(status); ffc1b378: 80 61 00 08 lwz r3,8(r1) ffc1b37c: 48 00 01 49 bl ffc1b4c4 ffc1b380: 48 00 00 00 b ffc1b380 <_exit+0x20> <== NOT EXECUTED ffc0581c <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); ffc0581c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc05820: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc05824: 7c c5 33 78 mr r5,r6 <== NOT EXECUTED ffc05828: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0582c: 4b ff fd 58 b ffc05584 <== NOT EXECUTED ffc26ca0 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } ffc26ca0: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc26ca4: 4e 80 00 20 blr <== NOT EXECUTED ffc0d244 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); ffc0d244: 4b ff ff 80 b ffc0d1c4 <== NOT EXECUTED ffc26cd4 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } ffc26cd4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc26cd8: 4e 80 00 20 blr <== NOT EXECUTED ffc061d8 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); ffc061d8: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc061dc: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc061e0: 4b ff fd 60 b ffc05f40 <== NOT EXECUTED ffc1b470 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1b470: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc1b474: 7c 08 02 a6 mflr r0 <== NOT EXECUTED return realloc( ptr, size ); ffc1b478: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc1b47c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1b480: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED return realloc( ptr, size ); ffc1b484: 48 00 00 81 bl ffc1b504 <== NOT EXECUTED } ffc1b488: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc1b48c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc1b490: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1b494: 4e 80 00 20 blr <== NOT EXECUTED ffc09424 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc09424: 94 21 ff a8 stwu r1,-88(r1) ffc09428: 7c 08 02 a6 mflr r0 /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); ffc0942c: 7c 83 23 78 mr r3,r4 int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc09430: 93 81 00 48 stw r28,72(r1) ffc09434: 93 a1 00 4c stw r29,76(r1) ffc09438: 7c bd 2b 78 mr r29,r5 ffc0943c: 93 c1 00 50 stw r30,80(r1) ffc09440: 7c 9e 23 78 mr r30,r4 ffc09444: 90 01 00 5c stw r0,92(r1) ffc09448: 93 e1 00 54 stw r31,84(r1) /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); ffc0944c: 4b ff e7 01 bl ffc07b4c if ( old_parent_pathlen == 0 ) ffc09450: 7c 7c 1b 79 mr. r28,r3 ffc09454: 40 82 00 8c bne- ffc094e0 <_rename_r+0xbc> rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); ffc09458: 88 1e 00 00 lbz r0,0(r30) ffc0945c: 2f 80 00 2f cmpwi cr7,r0,47 ffc09460: 41 9e 00 14 beq- cr7,ffc09474 <_rename_r+0x50> <== NEVER TAKEN ffc09464: 2f 80 00 5c cmpwi cr7,r0,92 ffc09468: 41 9e 00 0c beq- cr7,ffc09474 <_rename_r+0x50> <== NEVER TAKEN ffc0946c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09470: 40 9e 00 38 bne- cr7,ffc094a8 <_rename_r+0x84> <== ALWAYS TAKEN ffc09474: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc09478: 81 29 26 fc lwz r9,9980(r9) <== NOT EXECUTED ffc0947c: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc09480: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc09484: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc09488: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc0948c: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc09490: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc09494: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc09498: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc0949c: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc094a0: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc094a4: 48 00 00 34 b ffc094d8 <_rename_r+0xb4> <== NOT EXECUTED ffc094a8: 3d 20 00 00 lis r9,0 ffc094ac: 81 29 26 fc lwz r9,9980(r9) ffc094b0: 3b e0 00 00 li r31,0 ffc094b4: 80 09 00 10 lwz r0,16(r9) ffc094b8: 81 09 00 04 lwz r8,4(r9) ffc094bc: 81 49 00 08 lwz r10,8(r9) ffc094c0: 81 69 00 0c lwz r11,12(r9) ffc094c4: 91 01 00 20 stw r8,32(r1) ffc094c8: 91 41 00 24 stw r10,36(r1) ffc094cc: 91 61 00 28 stw r11,40(r1) ffc094d0: 90 01 00 2c stw r0,44(r1) ffc094d4: 80 09 00 14 lwz r0,20(r9) ffc094d8: 90 01 00 30 stw r0,48(r1) ffc094dc: 48 00 00 28 b ffc09504 <_rename_r+0xe0> else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, ffc094e0: 7f c3 f3 78 mr r3,r30 ffc094e4: 7f 84 e3 78 mr r4,r28 ffc094e8: 38 a0 00 02 li r5,2 ffc094ec: 38 c1 00 20 addi r6,r1,32 ffc094f0: 38 e0 00 00 li r7,0 ffc094f4: 4b ff e7 d1 bl ffc07cc4 RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) ffc094f8: 2f 83 00 00 cmpwi cr7,r3,0 ffc094fc: 40 9e 03 74 bne- cr7,ffc09870 <_rename_r+0x44c> <== NEVER TAKEN ffc09500: 3b e0 00 01 li r31,1 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; ffc09504: 80 01 00 20 lwz r0,32(r1) name = old + old_parent_pathlen; ffc09508: 7f de e2 14 add r30,r30,r28 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc0950c: 7f c3 f3 78 mr r3,r30 /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; name = old + old_parent_pathlen; ffc09510: 93 c1 00 08 stw r30,8(r1) /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; ffc09514: 90 01 00 0c stw r0,12(r1) ffc09518: 80 01 00 24 lwz r0,36(r1) ffc0951c: 90 01 00 10 stw r0,16(r1) ffc09520: 80 01 00 28 lwz r0,40(r1) ffc09524: 90 01 00 14 stw r0,20(r1) ffc09528: 80 01 00 2c lwz r0,44(r1) ffc0952c: 90 01 00 18 stw r0,24(r1) ffc09530: 80 01 00 30 lwz r0,48(r1) ffc09534: 90 01 00 1c stw r0,28(r1) name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc09538: 48 01 0b 6d bl ffc1a0a4 ffc0953c: 7c 64 1b 78 mr r4,r3 ffc09540: 7f c3 f3 78 mr r3,r30 ffc09544: 4b ff e5 cd bl ffc07b10 ffc09548: 7f de 1a 14 add r30,r30,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc0954c: 7f c3 f3 78 mr r3,r30 * 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 ) ); ffc09550: 93 c1 00 08 stw r30,8(r1) result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc09554: 48 01 0b 51 bl ffc1a0a4 ffc09558: 38 a0 00 00 li r5,0 ffc0955c: 7c 64 1b 78 mr r4,r3 ffc09560: 38 c1 00 0c addi r6,r1,12 ffc09564: 7f c3 f3 78 mr r3,r30 ffc09568: 38 e0 00 00 li r7,0 ffc0956c: 4b ff e6 45 bl ffc07bb0 0, &old_loc, false ); if ( result != 0 ) { ffc09570: 2f 83 00 00 cmpwi cr7,r3,0 ffc09574: 41 be 00 2c beq+ cr7,ffc095a0 <_rename_r+0x17c> if ( free_old_parentloc ) ffc09578: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0957c: 41 be 02 f4 beq+ cr7,ffc09870 <_rename_r+0x44c> <== NEVER TAKEN rtems_filesystem_freenode( &old_parent_loc ); ffc09580: 81 21 00 2c lwz r9,44(r1) ffc09584: 2f 89 00 00 cmpwi cr7,r9,0 ffc09588: 41 be 02 e8 beq+ cr7,ffc09870 <_rename_r+0x44c> <== NEVER TAKEN ffc0958c: 80 09 00 1c lwz r0,28(r9) ffc09590: 38 61 00 20 addi r3,r1,32 ffc09594: 2f 80 00 00 cmpwi cr7,r0,0 ffc09598: 41 be 02 d8 beq+ cr7,ffc09870 <_rename_r+0x44c> <== NEVER TAKEN ffc0959c: 48 00 01 24 b ffc096c0 <_rename_r+0x29c> /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); ffc095a0: 88 1d 00 00 lbz r0,0(r29) ffc095a4: 2f 80 00 2f cmpwi cr7,r0,47 ffc095a8: 41 9e 00 14 beq- cr7,ffc095bc <_rename_r+0x198> ffc095ac: 2f 80 00 5c cmpwi cr7,r0,92 ffc095b0: 41 9e 00 0c beq- cr7,ffc095bc <_rename_r+0x198> <== NEVER TAKEN ffc095b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc095b8: 40 9e 00 38 bne- cr7,ffc095f0 <_rename_r+0x1cc> <== ALWAYS TAKEN ffc095bc: 3d 20 00 00 lis r9,0 ffc095c0: 81 29 26 fc lwz r9,9980(r9) ffc095c4: 38 60 00 01 li r3,1 ffc095c8: 80 09 00 24 lwz r0,36(r9) ffc095cc: 81 09 00 18 lwz r8,24(r9) ffc095d0: 81 49 00 1c lwz r10,28(r9) ffc095d4: 81 69 00 20 lwz r11,32(r9) ffc095d8: 91 01 00 34 stw r8,52(r1) ffc095dc: 91 41 00 38 stw r10,56(r1) ffc095e0: 91 61 00 3c stw r11,60(r1) ffc095e4: 90 01 00 40 stw r0,64(r1) ffc095e8: 80 09 00 28 lwz r0,40(r9) ffc095ec: 48 00 00 34 b ffc09620 <_rename_r+0x1fc> ffc095f0: 3d 20 00 00 lis r9,0 ffc095f4: 81 29 26 fc lwz r9,9980(r9) ffc095f8: 38 60 00 00 li r3,0 ffc095fc: 80 09 00 10 lwz r0,16(r9) ffc09600: 81 09 00 04 lwz r8,4(r9) ffc09604: 81 49 00 08 lwz r10,8(r9) ffc09608: 81 69 00 0c lwz r11,12(r9) ffc0960c: 91 01 00 34 stw r8,52(r1) ffc09610: 91 41 00 38 stw r10,56(r1) ffc09614: 91 61 00 3c stw r11,60(r1) ffc09618: 90 01 00 40 stw r0,64(r1) ffc0961c: 80 09 00 14 lwz r0,20(r9) if ( !new_parent_loc.ops->evalformake_h ) { ffc09620: 81 21 00 40 lwz r9,64(r1) /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); ffc09624: 90 01 00 44 stw r0,68(r1) if ( !new_parent_loc.ops->evalformake_h ) { ffc09628: 80 09 00 04 lwz r0,4(r9) ffc0962c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09630: 41 9e 01 54 beq- cr7,ffc09784 <_rename_r+0x360> rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); ffc09634: 3b c1 00 34 addi r30,r1,52 ffc09638: 7c 09 03 a6 mtctr r0 ffc0963c: 7c 7d 1a 14 add r3,r29,r3 ffc09640: 7f c4 f3 78 mr r4,r30 ffc09644: 38 a1 00 08 addi r5,r1,8 ffc09648: 4e 80 04 21 bctrl if ( result != 0 ) { ffc0964c: 2f 83 00 00 cmpwi cr7,r3,0 ffc09650: 41 be 00 80 beq+ cr7,ffc096d0 <_rename_r+0x2ac> rtems_filesystem_freenode( &new_parent_loc ); ffc09654: 81 21 00 40 lwz r9,64(r1) ffc09658: 2f 89 00 00 cmpwi cr7,r9,0 ffc0965c: 41 9e 00 1c beq- cr7,ffc09678 <_rename_r+0x254> <== NEVER TAKEN ffc09660: 80 09 00 1c lwz r0,28(r9) ffc09664: 2f 80 00 00 cmpwi cr7,r0,0 ffc09668: 41 9e 00 10 beq- cr7,ffc09678 <_rename_r+0x254> <== NEVER TAKEN ffc0966c: 7f c3 f3 78 mr r3,r30 ffc09670: 7c 09 03 a6 mtctr r0 ffc09674: 4e 80 04 21 bctrl if ( free_old_parentloc ) ffc09678: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0967c: 41 9e 00 28 beq- cr7,ffc096a4 <_rename_r+0x280> <== NEVER TAKEN rtems_filesystem_freenode( &old_parent_loc ); ffc09680: 81 21 00 2c lwz r9,44(r1) ffc09684: 2f 89 00 00 cmpwi cr7,r9,0 ffc09688: 41 9e 00 1c beq- cr7,ffc096a4 <_rename_r+0x280> <== NEVER TAKEN ffc0968c: 80 09 00 1c lwz r0,28(r9) ffc09690: 2f 80 00 00 cmpwi cr7,r0,0 ffc09694: 41 9e 00 10 beq- cr7,ffc096a4 <_rename_r+0x280> <== NEVER TAKEN ffc09698: 38 61 00 20 addi r3,r1,32 ffc0969c: 7c 09 03 a6 mtctr r0 ffc096a0: 4e 80 04 21 bctrl rtems_filesystem_freenode( &old_loc ); ffc096a4: 81 21 00 18 lwz r9,24(r1) ffc096a8: 2f 89 00 00 cmpwi cr7,r9,0 ffc096ac: 41 be 01 c4 beq+ cr7,ffc09870 <_rename_r+0x44c> <== NEVER TAKEN ffc096b0: 80 09 00 1c lwz r0,28(r9) ffc096b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc096b8: 41 be 01 b8 beq+ cr7,ffc09870 <_rename_r+0x44c> <== NEVER TAKEN ffc096bc: 38 61 00 0c addi r3,r1,12 ffc096c0: 3b a0 ff ff li r29,-1 ffc096c4: 7c 09 03 a6 mtctr r0 ffc096c8: 4e 80 04 21 bctrl ffc096cc: 48 00 01 a8 b ffc09874 <_rename_r+0x450> /* * 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 ) { ffc096d0: 80 01 00 44 lwz r0,68(r1) ffc096d4: 81 61 00 30 lwz r11,48(r1) ffc096d8: 81 21 00 40 lwz r9,64(r1) ffc096dc: 7f 8b 00 00 cmpw cr7,r11,r0 ffc096e0: 41 be 00 80 beq+ cr7,ffc09760 <_rename_r+0x33c> rtems_filesystem_freenode( &new_parent_loc ); ffc096e4: 2f 89 00 00 cmpwi cr7,r9,0 ffc096e8: 41 9e 00 1c beq- cr7,ffc09704 <_rename_r+0x2e0> <== NEVER TAKEN ffc096ec: 80 09 00 1c lwz r0,28(r9) ffc096f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc096f4: 41 9e 00 10 beq- cr7,ffc09704 <_rename_r+0x2e0> <== NEVER TAKEN ffc096f8: 7f c3 f3 78 mr r3,r30 ffc096fc: 7c 09 03 a6 mtctr r0 ffc09700: 4e 80 04 21 bctrl if ( free_old_parentloc ) ffc09704: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09708: 41 9e 00 28 beq- cr7,ffc09730 <_rename_r+0x30c> rtems_filesystem_freenode( &old_parent_loc ); ffc0970c: 81 21 00 2c lwz r9,44(r1) ffc09710: 2f 89 00 00 cmpwi cr7,r9,0 ffc09714: 41 9e 00 1c beq- cr7,ffc09730 <_rename_r+0x30c> <== NEVER TAKEN ffc09718: 80 09 00 1c lwz r0,28(r9) ffc0971c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09720: 41 9e 00 10 beq- cr7,ffc09730 <_rename_r+0x30c> <== NEVER TAKEN ffc09724: 38 61 00 20 addi r3,r1,32 ffc09728: 7c 09 03 a6 mtctr r0 ffc0972c: 4e 80 04 21 bctrl rtems_filesystem_freenode( &old_loc ); ffc09730: 81 21 00 18 lwz r9,24(r1) ffc09734: 2f 89 00 00 cmpwi cr7,r9,0 ffc09738: 41 9e 00 1c beq- cr7,ffc09754 <_rename_r+0x330> <== NEVER TAKEN ffc0973c: 80 09 00 1c lwz r0,28(r9) ffc09740: 2f 80 00 00 cmpwi cr7,r0,0 ffc09744: 41 9e 00 10 beq- cr7,ffc09754 <_rename_r+0x330> <== NEVER TAKEN ffc09748: 38 61 00 0c addi r3,r1,12 ffc0974c: 7c 09 03 a6 mtctr r0 ffc09750: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EXDEV ); ffc09754: 48 00 ce f1 bl ffc16644 <__errno> ffc09758: 38 00 00 12 li r0,18 ffc0975c: 48 00 00 80 b ffc097dc <_rename_r+0x3b8> } if ( !new_parent_loc.ops->rename_h ) { ffc09760: 80 09 00 40 lwz r0,64(r9) ffc09764: 2f 80 00 00 cmpwi cr7,r0,0 ffc09768: 40 be 00 7c bne+ cr7,ffc097e4 <_rename_r+0x3c0> rtems_filesystem_freenode( &new_parent_loc ); ffc0976c: 80 09 00 1c lwz r0,28(r9) ffc09770: 2f 80 00 00 cmpwi cr7,r0,0 ffc09774: 41 9e 00 10 beq- cr7,ffc09784 <_rename_r+0x360> <== NEVER TAKEN ffc09778: 7f c3 f3 78 mr r3,r30 ffc0977c: 7c 09 03 a6 mtctr r0 ffc09780: 4e 80 04 21 bctrl if ( free_old_parentloc ) ffc09784: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09788: 41 9e 00 28 beq- cr7,ffc097b0 <_rename_r+0x38c> <== NEVER TAKEN rtems_filesystem_freenode( &old_parent_loc ); ffc0978c: 81 21 00 2c lwz r9,44(r1) ffc09790: 2f 89 00 00 cmpwi cr7,r9,0 ffc09794: 41 9e 00 1c beq- cr7,ffc097b0 <_rename_r+0x38c> <== NEVER TAKEN ffc09798: 80 09 00 1c lwz r0,28(r9) ffc0979c: 2f 80 00 00 cmpwi cr7,r0,0 ffc097a0: 41 9e 00 10 beq- cr7,ffc097b0 <_rename_r+0x38c> <== NEVER TAKEN ffc097a4: 38 61 00 20 addi r3,r1,32 ffc097a8: 7c 09 03 a6 mtctr r0 ffc097ac: 4e 80 04 21 bctrl rtems_filesystem_freenode( &old_loc ); ffc097b0: 81 21 00 18 lwz r9,24(r1) ffc097b4: 2f 89 00 00 cmpwi cr7,r9,0 ffc097b8: 41 9e 00 1c beq- cr7,ffc097d4 <_rename_r+0x3b0> <== NEVER TAKEN ffc097bc: 80 09 00 1c lwz r0,28(r9) ffc097c0: 2f 80 00 00 cmpwi cr7,r0,0 ffc097c4: 41 9e 00 10 beq- cr7,ffc097d4 <_rename_r+0x3b0> <== NEVER TAKEN ffc097c8: 38 61 00 0c addi r3,r1,12 ffc097cc: 7c 09 03 a6 mtctr r0 ffc097d0: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc097d4: 48 00 ce 71 bl ffc16644 <__errno> ffc097d8: 38 00 00 86 li r0,134 ffc097dc: 90 03 00 00 stw r0,0(r3) ffc097e0: 48 00 00 90 b ffc09870 <_rename_r+0x44c> } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); ffc097e4: 38 61 00 20 addi r3,r1,32 ffc097e8: 80 c1 00 08 lwz r6,8(r1) ffc097ec: 38 81 00 0c addi r4,r1,12 ffc097f0: 7c 09 03 a6 mtctr r0 ffc097f4: 7f c5 f3 78 mr r5,r30 ffc097f8: 4e 80 04 21 bctrl rtems_filesystem_freenode( &new_parent_loc ); ffc097fc: 81 21 00 40 lwz r9,64(r1) 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 ); ffc09800: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &new_parent_loc ); ffc09804: 2f 89 00 00 cmpwi cr7,r9,0 ffc09808: 41 9e 00 1c beq- cr7,ffc09824 <_rename_r+0x400> <== NEVER TAKEN ffc0980c: 80 09 00 1c lwz r0,28(r9) ffc09810: 2f 80 00 00 cmpwi cr7,r0,0 ffc09814: 41 9e 00 10 beq- cr7,ffc09824 <_rename_r+0x400> <== NEVER TAKEN ffc09818: 7f c3 f3 78 mr r3,r30 ffc0981c: 7c 09 03 a6 mtctr r0 ffc09820: 4e 80 04 21 bctrl if ( free_old_parentloc ) ffc09824: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09828: 41 9e 00 28 beq- cr7,ffc09850 <_rename_r+0x42c> rtems_filesystem_freenode( &old_parent_loc ); ffc0982c: 81 21 00 2c lwz r9,44(r1) ffc09830: 2f 89 00 00 cmpwi cr7,r9,0 ffc09834: 41 9e 00 1c beq- cr7,ffc09850 <_rename_r+0x42c> <== NEVER TAKEN ffc09838: 80 09 00 1c lwz r0,28(r9) ffc0983c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09840: 41 9e 00 10 beq- cr7,ffc09850 <_rename_r+0x42c> <== NEVER TAKEN ffc09844: 38 61 00 20 addi r3,r1,32 ffc09848: 7c 09 03 a6 mtctr r0 ffc0984c: 4e 80 04 21 bctrl rtems_filesystem_freenode( &old_loc ); ffc09850: 81 21 00 18 lwz r9,24(r1) ffc09854: 2f 89 00 00 cmpwi cr7,r9,0 ffc09858: 41 9e 00 1c beq- cr7,ffc09874 <_rename_r+0x450> <== NEVER TAKEN ffc0985c: 80 09 00 1c lwz r0,28(r9) ffc09860: 38 61 00 0c addi r3,r1,12 ffc09864: 2f 80 00 00 cmpwi cr7,r0,0 ffc09868: 40 9e fe 5c bne+ cr7,ffc096c4 <_rename_r+0x2a0> <== ALWAYS TAKEN ffc0986c: 48 00 00 08 b ffc09874 <_rename_r+0x450> <== NOT EXECUTED ffc09870: 3b a0 ff ff li r29,-1 return result; } ffc09874: 80 01 00 5c lwz r0,92(r1) ffc09878: 7f a3 eb 78 mr r3,r29 ffc0987c: 83 81 00 48 lwz r28,72(r1) ffc09880: 7c 08 03 a6 mtlr r0 ffc09884: 83 a1 00 4c lwz r29,76(r1) ffc09888: 83 c1 00 50 lwz r30,80(r1) ffc0988c: 83 e1 00 54 lwz r31,84(r1) ffc09890: 38 21 00 58 addi r1,r1,88 ffc09894: 4e 80 00 20 blr ffc0724c <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc0724c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc07250: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc07254: 4b ff fe e4 b ffc07138 <== NOT EXECUTED ffc10548 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); ffc10548: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc1054c: 4b ff fd 20 b ffc1026c <== NOT EXECUTED ffc0cf6c : ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0cf6c: 94 21 ff f0 stwu r1,-16(r1) ffc0cf70: 7c 08 02 a6 mflr r0 ffc0cf74: 3d 20 00 00 lis r9,0 ffc0cf78: 90 01 00 14 stw r0,20(r1) ffc0cf7c: 39 29 2a 68 addi r9,r9,10856 ffc0cf80: 81 69 00 14 lwz r11,20(r9) ffc0cf84: 93 c1 00 08 stw r30,8(r1) length = nelem * elsize; ffc0cf88: 7f c4 19 d6 mullw r30,r4,r3 ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0cf8c: 38 0b 00 01 addi r0,r11,1 ffc0cf90: 93 e1 00 0c stw r31,12(r1) length = nelem * elsize; cptr = malloc( length ); ffc0cf94: 7f c3 f3 78 mr r3,r30 ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0cf98: 90 09 00 14 stw r0,20(r9) length = nelem * elsize; cptr = malloc( length ); ffc0cf9c: 4b ff 76 0d bl ffc045a8 if ( cptr ) ffc0cfa0: 7c 7f 1b 79 mr. r31,r3 ffc0cfa4: 41 82 00 10 beq- ffc0cfb4 <== NEVER TAKEN memset( cptr, '\0', length ); ffc0cfa8: 7f c5 f3 78 mr r5,r30 ffc0cfac: 38 80 00 00 li r4,0 ffc0cfb0: 48 00 43 21 bl ffc112d0 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc0cfb4: 3d 20 00 00 lis r9,0 return cptr; } ffc0cfb8: 83 c1 00 08 lwz r30,8(r1) length = nelem * elsize; cptr = malloc( length ); if ( cptr ) memset( cptr, '\0', length ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc0cfbc: 39 29 2a 68 addi r9,r9,10856 ffc0cfc0: 81 69 00 04 lwz r11,4(r9) return cptr; } ffc0cfc4: 7f e3 fb 78 mr r3,r31 ffc0cfc8: 83 e1 00 0c lwz r31,12(r1) length = nelem * elsize; cptr = malloc( length ); if ( cptr ) memset( cptr, '\0', length ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc0cfcc: 38 0b ff ff addi r0,r11,-1 ffc0cfd0: 90 09 00 04 stw r0,4(r9) return cptr; } ffc0cfd4: 80 01 00 14 lwz r0,20(r1) ffc0cfd8: 38 21 00 10 addi r1,r1,16 ffc0cfdc: 7c 08 03 a6 mtlr r0 ffc0cfe0: 4e 80 00 20 blr ffc0edac : #include int chdir( const char *pathname ) { ffc0edac: 94 21 ff d0 stwu r1,-48(r1) ffc0edb0: 7c 08 02 a6 mflr r0 ffc0edb4: 93 c1 00 28 stw r30,40(r1) rtems_filesystem_location_info_t loc; int result; if ( !pathname ) ffc0edb8: 7c 7e 1b 79 mr. r30,r3 #include int chdir( const char *pathname ) { ffc0edbc: 90 01 00 34 stw r0,52(r1) ffc0edc0: 93 e1 00 2c stw r31,44(r1) rtems_filesystem_location_info_t loc; int result; if ( !pathname ) ffc0edc4: 40 a2 00 10 bne+ ffc0edd4 rtems_set_errno_and_return_minus_one( EFAULT ); ffc0edc8: 48 00 38 ed bl ffc126b4 <__errno> ffc0edcc: 38 00 00 0e li r0,14 ffc0edd0: 48 00 00 60 b ffc0ee30 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); ffc0edd4: 48 00 4b a1 bl ffc13974 rtems_set_errno_and_return_minus_one( EFAULT ); /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc0edd8: 3b e1 00 08 addi r31,r1,8 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); ffc0eddc: 7c 64 1b 78 mr r4,r3 rtems_set_errno_and_return_minus_one( EFAULT ); /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc0ede0: 38 a0 00 01 li r5,1 ffc0ede4: 7f c3 f3 78 mr r3,r30 ffc0ede8: 7f e6 fb 78 mr r6,r31 ffc0edec: 38 e0 00 01 li r7,1 ffc0edf0: 4b ff 5c 2d bl ffc04a1c pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) ffc0edf4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0edf8: 38 60 ff ff li r3,-1 ffc0edfc: 40 9e 00 e4 bne- cr7,ffc0eee0 return -1; /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { ffc0ee00: 81 21 00 14 lwz r9,20(r1) ffc0ee04: 80 09 00 10 lwz r0,16(r9) ffc0ee08: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ee0c: 40 be 00 30 bne+ cr7,ffc0ee3c <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc0ee10: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0ee14: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ee18: 41 9e 00 10 beq- cr7,ffc0ee28 <== NOT EXECUTED ffc0ee1c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0ee20: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0ee24: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0ee28: 48 00 38 8d bl ffc126b4 <__errno> <== NOT EXECUTED ffc0ee2c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0ee30: 90 03 00 00 stw r0,0(r3) ffc0ee34: 38 60 ff ff li r3,-1 ffc0ee38: 48 00 00 a8 b ffc0eee0 } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { ffc0ee3c: 7f e3 fb 78 mr r3,r31 ffc0ee40: 7c 09 03 a6 mtctr r0 ffc0ee44: 4e 80 04 21 bctrl ffc0ee48: 2f 83 00 01 cmpwi cr7,r3,1 ffc0ee4c: 41 be 00 34 beq+ cr7,ffc0ee80 rtems_filesystem_freenode( &loc ); ffc0ee50: 81 21 00 14 lwz r9,20(r1) ffc0ee54: 2f 89 00 00 cmpwi cr7,r9,0 ffc0ee58: 41 9e 00 1c beq- cr7,ffc0ee74 <== NEVER TAKEN ffc0ee5c: 80 09 00 1c lwz r0,28(r9) ffc0ee60: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ee64: 41 9e 00 10 beq- cr7,ffc0ee74 <== NEVER TAKEN ffc0ee68: 7f e3 fb 78 mr r3,r31 ffc0ee6c: 7c 09 03 a6 mtctr r0 ffc0ee70: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0ee74: 48 00 38 41 bl ffc126b4 <__errno> ffc0ee78: 38 00 00 14 li r0,20 ffc0ee7c: 4b ff ff b4 b ffc0ee30 } rtems_filesystem_freenode( &rtems_filesystem_current ); ffc0ee80: 3d 20 00 00 lis r9,0 ffc0ee84: 80 69 26 74 lwz r3,9844(r9) ffc0ee88: 81 23 00 10 lwz r9,16(r3) ffc0ee8c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0ee90: 41 9e 00 1c beq- cr7,ffc0eeac <== NEVER TAKEN ffc0ee94: 80 09 00 1c lwz r0,28(r9) ffc0ee98: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ee9c: 41 9e 00 10 beq- cr7,ffc0eeac <== NEVER TAKEN ffc0eea0: 38 63 00 04 addi r3,r3,4 ffc0eea4: 7c 09 03 a6 mtctr r0 ffc0eea8: 4e 80 04 21 bctrl rtems_filesystem_current = loc; ffc0eeac: 3d 20 00 00 lis r9,0 ffc0eeb0: 80 01 00 14 lwz r0,20(r1) ffc0eeb4: 81 29 26 74 lwz r9,9844(r9) ffc0eeb8: 38 60 00 00 li r3,0 ffc0eebc: 81 41 00 0c lwz r10,12(r1) ffc0eec0: 81 61 00 10 lwz r11,16(r1) ffc0eec4: 81 01 00 08 lwz r8,8(r1) ffc0eec8: 91 49 00 08 stw r10,8(r9) ffc0eecc: 91 09 00 04 stw r8,4(r9) ffc0eed0: 91 69 00 0c stw r11,12(r9) ffc0eed4: 90 09 00 10 stw r0,16(r9) ffc0eed8: 80 01 00 18 lwz r0,24(r1) ffc0eedc: 90 09 00 14 stw r0,20(r9) return 0; } ffc0eee0: 80 01 00 34 lwz r0,52(r1) ffc0eee4: 83 c1 00 28 lwz r30,40(r1) ffc0eee8: 7c 08 03 a6 mtlr r0 ffc0eeec: 83 e1 00 2c lwz r31,44(r1) ffc0eef0: 38 21 00 30 addi r1,r1,48 ffc0eef4: 4e 80 00 20 blr ffc06b3c : int chmod( const char *path, mode_t mode ) { ffc06b3c: 94 21 ff c8 stwu r1,-56(r1) ffc06b40: 7c 08 02 a6 mflr r0 ffc06b44: 93 a1 00 2c stw r29,44(r1) ffc06b48: 7c 7d 1b 78 mr r29,r3 ffc06b4c: 90 01 00 3c stw r0,60(r1) ffc06b50: 93 c1 00 30 stw r30,48(r1) ffc06b54: 7c 9e 23 78 mr r30,r4 ffc06b58: 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 ); ffc06b5c: 48 01 0d 49 bl ffc178a4 ffc06b60: 3b e1 00 08 addi r31,r1,8 ffc06b64: 7c 64 1b 78 mr r4,r3 ffc06b68: 38 a0 00 00 li r5,0 ffc06b6c: 7f a3 eb 78 mr r3,r29 ffc06b70: 7f e6 fb 78 mr r6,r31 ffc06b74: 38 e0 00 01 li r7,1 ffc06b78: 48 00 03 8d bl ffc06f04 if ( status != 0 ) ffc06b7c: 3b a0 ff ff li r29,-1 ffc06b80: 2f 83 00 00 cmpwi cr7,r3,0 ffc06b84: 40 9e 00 bc bne- cr7,ffc06c40 return -1; if ( !loc.handlers ){ ffc06b88: 81 21 00 10 lwz r9,16(r1) ffc06b8c: 2f 89 00 00 cmpwi cr7,r9,0 ffc06b90: 40 be 00 34 bne+ cr7,ffc06bc4 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc06b94: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc06b98: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06b9c: 41 9e 00 1c beq- cr7,ffc06bb8 <== NOT EXECUTED ffc06ba0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc06ba4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06ba8: 41 9e 00 10 beq- cr7,ffc06bb8 <== NOT EXECUTED ffc06bac: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06bb0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06bb4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); ffc06bb8: 48 00 ec fd bl ffc158b4 <__errno> <== NOT EXECUTED ffc06bbc: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc06bc0: 48 00 00 3c b ffc06bfc <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ ffc06bc4: 80 09 00 1c lwz r0,28(r9) ffc06bc8: 2f 80 00 00 cmpwi cr7,r0,0 ffc06bcc: 40 be 00 3c bne+ cr7,ffc06c08 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc06bd0: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc06bd4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06bd8: 41 9e 00 1c beq- cr7,ffc06bf4 <== NOT EXECUTED ffc06bdc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc06be0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06be4: 41 9e 00 10 beq- cr7,ffc06bf4 <== NOT EXECUTED ffc06be8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06bec: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06bf0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06bf4: 48 00 ec c1 bl ffc158b4 <__errno> <== NOT EXECUTED ffc06bf8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06bfc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc06c00: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc06c04: 48 00 00 3c b ffc06c40 <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); ffc06c08: 7f c4 f3 78 mr r4,r30 ffc06c0c: 7c 09 03 a6 mtctr r0 ffc06c10: 7f e3 fb 78 mr r3,r31 ffc06c14: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc06c18: 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 ); ffc06c1c: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc06c20: 2f 89 00 00 cmpwi cr7,r9,0 ffc06c24: 41 9e 00 1c beq- cr7,ffc06c40 <== NEVER TAKEN ffc06c28: 80 09 00 1c lwz r0,28(r9) ffc06c2c: 2f 80 00 00 cmpwi cr7,r0,0 ffc06c30: 41 9e 00 10 beq- cr7,ffc06c40 <== NEVER TAKEN ffc06c34: 7f e3 fb 78 mr r3,r31 ffc06c38: 7c 09 03 a6 mtctr r0 ffc06c3c: 4e 80 04 21 bctrl return result; } ffc06c40: 80 01 00 3c lwz r0,60(r1) ffc06c44: 7f a3 eb 78 mr r3,r29 ffc06c48: 83 c1 00 30 lwz r30,48(r1) ffc06c4c: 7c 08 03 a6 mtlr r0 ffc06c50: 83 a1 00 2c lwz r29,44(r1) ffc06c54: 83 e1 00 34 lwz r31,52(r1) ffc06c58: 38 21 00 38 addi r1,r1,56 ffc06c5c: 4e 80 00 20 blr ffc06c60 : int chown( const char *path, uid_t owner, gid_t group ) { ffc06c60: 94 21 ff c8 stwu r1,-56(r1) ffc06c64: 7c 08 02 a6 mflr r0 ffc06c68: 93 81 00 28 stw r28,40(r1) ffc06c6c: 7c 7c 1b 78 mr r28,r3 ffc06c70: 90 01 00 3c stw r0,60(r1) ffc06c74: 93 a1 00 2c stw r29,44(r1) ffc06c78: 7c 9d 23 78 mr r29,r4 ffc06c7c: 93 c1 00 30 stw r30,48(r1) ffc06c80: 7c be 2b 78 mr r30,r5 ffc06c84: 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 ) ) ffc06c88: 48 01 0c 1d bl ffc178a4 ffc06c8c: 3b e1 00 08 addi r31,r1,8 ffc06c90: 7c 64 1b 78 mr r4,r3 ffc06c94: 38 a0 00 00 li r5,0 ffc06c98: 7f 83 e3 78 mr r3,r28 ffc06c9c: 7f e6 fb 78 mr r6,r31 ffc06ca0: 38 e0 00 01 li r7,1 ffc06ca4: 48 00 02 61 bl ffc06f04 ffc06ca8: 3b 80 ff ff li r28,-1 ffc06cac: 2f 83 00 00 cmpwi cr7,r3,0 ffc06cb0: 40 9e 00 7c bne- cr7,ffc06d2c return -1; if ( !loc.ops->chown_h ) { ffc06cb4: 81 21 00 14 lwz r9,20(r1) ffc06cb8: 80 09 00 18 lwz r0,24(r9) ffc06cbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc06cc0: 40 be 00 30 bne+ cr7,ffc06cf0 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc06cc4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc06cc8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06ccc: 41 9e 00 10 beq- cr7,ffc06cdc <== NOT EXECUTED ffc06cd0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06cd4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06cd8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06cdc: 48 00 eb d9 bl ffc158b4 <__errno> <== NOT EXECUTED ffc06ce0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06ce4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc06ce8: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc06cec: 48 00 00 40 b ffc06d2c <== NOT EXECUTED } result = (*loc.ops->chown_h)( &loc, owner, group ); ffc06cf0: 7f a4 eb 78 mr r4,r29 ffc06cf4: 7c 09 03 a6 mtctr r0 ffc06cf8: 7f c5 f3 78 mr r5,r30 ffc06cfc: 7f e3 fb 78 mr r3,r31 ffc06d00: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc06d04: 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 ); ffc06d08: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc06d0c: 2f 89 00 00 cmpwi cr7,r9,0 ffc06d10: 41 9e 00 1c beq- cr7,ffc06d2c <== NEVER TAKEN ffc06d14: 80 09 00 1c lwz r0,28(r9) ffc06d18: 2f 80 00 00 cmpwi cr7,r0,0 ffc06d1c: 41 9e 00 10 beq- cr7,ffc06d2c <== NEVER TAKEN ffc06d20: 7f e3 fb 78 mr r3,r31 ffc06d24: 7c 09 03 a6 mtctr r0 ffc06d28: 4e 80 04 21 bctrl return result; } ffc06d2c: 80 01 00 3c lwz r0,60(r1) ffc06d30: 7f 83 e3 78 mr r3,r28 ffc06d34: 83 a1 00 2c lwz r29,44(r1) ffc06d38: 7c 08 03 a6 mtlr r0 ffc06d3c: 83 81 00 28 lwz r28,40(r1) ffc06d40: 83 c1 00 30 lwz r30,48(r1) ffc06d44: 83 e1 00 34 lwz r31,52(r1) ffc06d48: 38 21 00 38 addi r1,r1,56 ffc06d4c: 4e 80 00 20 blr ffc0467c : #include int chroot( const char *pathname ) { ffc0467c: 94 21 ff c8 stwu r1,-56(r1) ffc04680: 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) { ffc04684: 3d 20 00 00 lis r9,0 #include int chroot( const char *pathname ) { ffc04688: 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) { ffc0468c: 3f c0 00 00 lis r30,0 #include int chroot( const char *pathname ) { ffc04690: 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) { ffc04694: 83 fe 26 74 lwz r31,9844(r30) #include int chroot( const char *pathname ) { ffc04698: 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) { ffc0469c: 38 09 2a 84 addi r0,r9,10884 ffc046a0: 7f 9f 00 00 cmpw cr7,r31,r0 #include int chroot( const char *pathname ) { ffc046a4: 93 a1 00 2c stw r29,44(r1) ffc046a8: 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) { ffc046ac: 40 be 00 28 bne+ cr7,ffc046d4 <== NEVER TAKEN rtems_libio_set_private_env(); /* try to set a new private env*/ ffc046b0: 48 00 19 dd bl ffc0608c if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ ffc046b4: 80 1e 26 74 lwz r0,9844(r30) ffc046b8: 7f 80 f8 00 cmpw cr7,r0,r31 ffc046bc: 40 be 00 18 bne+ cr7,ffc046d4 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc046c0: 48 00 df f5 bl ffc126b4 <__errno> <== NOT EXECUTED ffc046c4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc046c8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc046cc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc046d0: 48 00 00 b4 b ffc04784 <== NOT EXECUTED } result = chdir(pathname); ffc046d4: 7f a3 eb 78 mr r3,r29 ffc046d8: 48 00 a6 d5 bl ffc0edac if (result) { ffc046dc: 2f 83 00 00 cmpwi cr7,r3,0 ffc046e0: 40 9e 00 28 bne- cr7,ffc04708 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc046e4: 3c 60 ff c2 lis r3,-62 ffc046e8: 38 63 f4 da addi r3,r3,-2854 ffc046ec: 38 80 00 01 li r4,1 ffc046f0: 38 a0 00 00 li r5,0 ffc046f4: 38 c1 00 08 addi r6,r1,8 ffc046f8: 38 e0 00 00 li r7,0 ffc046fc: 48 00 03 21 bl ffc04a1c ffc04700: 2f 83 00 00 cmpwi cr7,r3,0 ffc04704: 41 be 00 20 beq+ cr7,ffc04724 <== ALWAYS TAKEN /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); ffc04708: 48 00 df ad bl ffc126b4 <__errno> <== NOT EXECUTED ffc0470c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc04710: 48 00 df a5 bl ffc126b4 <__errno> <== NOT EXECUTED ffc04714: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc04718: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0471c: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED ffc04720: 48 00 00 64 b ffc04784 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); ffc04724: 3d 20 00 00 lis r9,0 ffc04728: 80 69 26 74 lwz r3,9844(r9) ffc0472c: 81 23 00 24 lwz r9,36(r3) ffc04730: 2f 89 00 00 cmpwi cr7,r9,0 ffc04734: 41 9e 00 1c beq- cr7,ffc04750 <== NEVER TAKEN ffc04738: 80 09 00 1c lwz r0,28(r9) ffc0473c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04740: 41 9e 00 10 beq- cr7,ffc04750 <== NEVER TAKEN ffc04744: 38 63 00 18 addi r3,r3,24 ffc04748: 7c 09 03 a6 mtctr r0 ffc0474c: 4e 80 04 21 bctrl rtems_filesystem_root = loc; ffc04750: 3d 20 00 00 lis r9,0 ffc04754: 80 01 00 14 lwz r0,20(r1) ffc04758: 81 29 26 74 lwz r9,9844(r9) ffc0475c: 38 60 00 00 li r3,0 ffc04760: 81 41 00 0c lwz r10,12(r1) ffc04764: 81 61 00 10 lwz r11,16(r1) ffc04768: 81 01 00 08 lwz r8,8(r1) ffc0476c: 91 49 00 1c stw r10,28(r9) ffc04770: 91 09 00 18 stw r8,24(r9) ffc04774: 91 69 00 20 stw r11,32(r9) ffc04778: 90 09 00 24 stw r0,36(r9) ffc0477c: 80 01 00 18 lwz r0,24(r1) ffc04780: 90 09 00 28 stw r0,40(r9) return 0; } ffc04784: 80 01 00 3c lwz r0,60(r1) ffc04788: 83 a1 00 2c lwz r29,44(r1) ffc0478c: 7c 08 03 a6 mtlr r0 ffc04790: 83 c1 00 30 lwz r30,48(r1) ffc04794: 83 e1 00 34 lwz r31,52(r1) ffc04798: 38 21 00 38 addi r1,r1,56 ffc0479c: 4e 80 00 20 blr ffc0cfe4 : #include int close( int fd ) { ffc0cfe4: 94 21 ff f0 stwu r1,-16(r1) ffc0cfe8: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0cfec: 3d 20 00 00 lis r9,0 #include int close( int fd ) { ffc0cff0: 90 01 00 14 stw r0,20(r1) rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0cff4: 80 09 26 4c lwz r0,9804(r9) #include int close( int fd ) { ffc0cff8: 93 c1 00 08 stw r30,8(r1) rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0cffc: 7f 83 00 40 cmplw cr7,r3,r0 #include int close( int fd ) { ffc0d000: 93 e1 00 0c stw r31,12(r1) rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0d004: 40 9c 00 20 bge- cr7,ffc0d024 iop = rtems_libio_iop(fd); ffc0d008: 3d 20 00 00 lis r9,0 ffc0d00c: 83 e9 27 08 lwz r31,9992(r9) ffc0d010: 1c 63 00 48 mulli r3,r3,72 ffc0d014: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc0d018: 80 1f 00 18 lwz r0,24(r31) ffc0d01c: 70 09 01 00 andi. r9,r0,256 ffc0d020: 40 a2 00 18 bne+ ffc0d038 ffc0d024: 48 00 35 c5 bl ffc105e8 <__errno> ffc0d028: 38 00 00 09 li r0,9 ffc0d02c: 90 03 00 00 stw r0,0(r3) ffc0d030: 38 60 ff ff li r3,-1 ffc0d034: 48 00 00 58 b ffc0d08c rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) ffc0d038: 81 3f 00 40 lwz r9,64(r31) ffc0d03c: 3b c0 00 00 li r30,0 ffc0d040: 80 09 00 04 lwz r0,4(r9) ffc0d044: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d048: 41 9e 00 14 beq- cr7,ffc0d05c <== NEVER TAKEN rc = (*iop->handlers->close_h)( iop ); ffc0d04c: 7f e3 fb 78 mr r3,r31 ffc0d050: 7c 09 03 a6 mtctr r0 ffc0d054: 4e 80 04 21 bctrl ffc0d058: 7c 7e 1b 78 mr r30,r3 rtems_filesystem_freenode( &iop->pathinfo ); ffc0d05c: 81 3f 00 28 lwz r9,40(r31) ffc0d060: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d064: 41 9e 00 1c beq- cr7,ffc0d080 <== NEVER TAKEN ffc0d068: 80 09 00 1c lwz r0,28(r9) ffc0d06c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d070: 41 9e 00 10 beq- cr7,ffc0d080 ffc0d074: 38 7f 00 1c addi r3,r31,28 ffc0d078: 7c 09 03 a6 mtctr r0 ffc0d07c: 4e 80 04 21 bctrl rtems_libio_free( iop ); ffc0d080: 7f e3 fb 78 mr r3,r31 ffc0d084: 48 00 03 61 bl ffc0d3e4 return rc; ffc0d088: 7f c3 f3 78 mr r3,r30 } ffc0d08c: 80 01 00 14 lwz r0,20(r1) ffc0d090: 83 c1 00 08 lwz r30,8(r1) ffc0d094: 7c 08 03 a6 mtlr r0 ffc0d098: 83 e1 00 0c lwz r31,12(r1) ffc0d09c: 38 21 00 10 addi r1,r1,16 ffc0d0a0: 4e 80 00 20 blr ffc0bce4 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { ffc0bce4: 94 21 ff e8 stwu r1,-24(r1) ffc0bce8: 7c 08 02 a6 mflr r0 ffc0bcec: 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; ffc0bcf0: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc0bcf4: 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; ffc0bcf8: 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; ffc0bcfc: 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; ffc0bd00: 81 23 00 3c lwz r9,60(r3) args.iop = iop; ffc0bd04: 90 61 00 08 stw r3,8(r1) args.flags = 0; args.mode = 0; status = rtems_io_close( ffc0bd08: 80 89 00 0c lwz r4,12(r9) ffc0bd0c: 80 69 00 08 lwz r3,8(r9) ffc0bd10: 48 00 0d 21 bl ffc0ca30 np->major, np->minor, (void *) &args ); if ( status ) { ffc0bd14: 38 00 00 00 li r0,0 ffc0bd18: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bd1c: 41 be 00 0c beq+ cr7,ffc0bd28 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0bd20: 48 00 01 35 bl ffc0be54 <== NOT EXECUTED ffc0bd24: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc0bd28: 7c 03 03 78 mr r3,r0 ffc0bd2c: 80 01 00 1c lwz r0,28(r1) ffc0bd30: 38 21 00 18 addi r1,r1,24 ffc0bd34: 7c 08 03 a6 mtlr r0 ffc0bd38: 4e 80 00 20 blr ffc0bd48 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bd48: 94 21 ff d8 stwu r1,-40(r1) ffc0bd4c: 7c 08 02 a6 mflr r0 ffc0bd50: 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; ffc0bd54: 83 c6 00 00 lwz r30,0(r6) const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bd58: 93 21 00 0c stw r25,12(r1) ffc0bd5c: 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) ffc0bd60: 2f 9e 00 00 cmpwi cr7,r30,0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bd64: 93 61 00 14 stw r27,20(r1) ffc0bd68: 7c 9b 23 78 mr r27,r4 ffc0bd6c: 93 e1 00 24 stw r31,36(r1) ffc0bd70: 7c df 33 78 mr r31,r6 ffc0bd74: 90 01 00 2c stw r0,44(r1) ffc0bd78: 93 41 00 10 stw r26,16(r1) ffc0bd7c: 93 81 00 18 stw r28,24(r1) ffc0bd80: 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) ffc0bd84: 41 9e 00 14 beq- cr7,ffc0bd98 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { ffc0bd88: 3f 40 00 00 lis r26,0 ffc0bd8c: 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) ffc0bd90: 3b a0 00 00 li r29,0 ffc0bd94: 48 00 00 6c b ffc0be00 rtems_set_errno_and_return_minus_one( EFAULT ); ffc0bd98: 48 00 1c a5 bl ffc0da3c <__errno> <== NOT EXECUTED ffc0bd9c: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0bda0: 48 00 00 80 b ffc0be20 <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) ffc0bda4: 83 9e 00 00 lwz r28,0(r30) ffc0bda8: 2f 9c 00 00 cmpwi cr7,r28,0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0bdac: 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) ffc0bdb0: 41 9e 00 4c beq- cr7,ffc0bdfc continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0bdb4: 48 00 2d 89 bl ffc0eb3c ffc0bdb8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bdbc: 40 9e 00 40 bne- cr7,ffc0bdfc <== NEVER TAKEN continue; if (device_name_table[i].device_name[pathnamelen] != '\0') ffc0bdc0: 7c 1c d8 ae lbzx r0,r28,r27 ffc0bdc4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bdc8: 40 be 00 34 bne+ cr7,ffc0bdfc <== NEVER TAKEN /* 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; ffc0bdcc: 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]; ffc0bdd0: 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; ffc0bdd4: 81 29 26 b8 lwz r9,9912(r9) ffc0bdd8: 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; ffc0bddc: 3d 20 00 00 lis r9,0 pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; ffc0bde0: 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; ffc0bde4: 38 09 21 48 addi r0,r9,8520 pathloc->ops = &devFS_ops; ffc0bde8: 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; ffc0bdec: 90 1f 00 08 stw r0,8(r31) pathloc->ops = &devFS_ops; ffc0bdf0: 38 09 21 80 addi r0,r9,8576 ffc0bdf4: 90 1f 00 0c stw r0,12(r31) pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; ffc0bdf8: 48 00 00 30 b ffc0be28 /* 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++) { ffc0bdfc: 3b de 00 14 addi r30,r30,20 ffc0be00: 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) ffc0be04: 7f 23 cb 78 mr r3,r25 ffc0be08: 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++) { ffc0be0c: 7f 9d 00 40 cmplw cr7,r29,r0 ffc0be10: 3b bd 00 01 addi r29,r29,1 ffc0be14: 41 9c ff 90 blt+ cr7,ffc0bda4 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); ffc0be18: 48 00 1c 25 bl ffc0da3c <__errno> ffc0be1c: 38 00 00 02 li r0,2 ffc0be20: 90 03 00 00 stw r0,0(r3) ffc0be24: 38 60 ff ff li r3,-1 } ffc0be28: 80 01 00 2c lwz r0,44(r1) ffc0be2c: 83 21 00 0c lwz r25,12(r1) ffc0be30: 7c 08 03 a6 mtlr r0 ffc0be34: 83 41 00 10 lwz r26,16(r1) ffc0be38: 83 61 00 14 lwz r27,20(r1) ffc0be3c: 83 81 00 18 lwz r28,24(r1) ffc0be40: 83 a1 00 1c lwz r29,28(r1) ffc0be44: 83 c1 00 20 lwz r30,32(r1) ffc0be48: 83 e1 00 24 lwz r31,36(r1) ffc0be4c: 38 21 00 28 addi r1,r1,40 ffc0be50: 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 81 bl ffc0bc00 <_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 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc0388c: 48 00 a1 b1 bl ffc0da3c <__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 69 bl ffc0e614 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 f1 bl ffc08594 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 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc03ab0: 48 00 83 a5 bl ffc0be54 <== 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 <== NEVER TAKEN 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 <== NEVER TAKEN (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 <== NEVER TAKEN 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 <== NEVER TAKEN ffc03964: 2f 80 20 00 cmpwi cr7,r0,8192 ffc03968: 41 be 00 10 beq+ cr7,ffc03978 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc0396c: 48 00 a0 d1 bl ffc0da3c <__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 <== NEVER TAKEN 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 a5 bl ffc0da3c <__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 <== ALWAYS TAKEN slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc039bc: 48 00 af c5 bl ffc0e980 <== 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 75 bl ffc0da3c <__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 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc039f8: 48 00 a0 45 bl ffc0da3c <__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 7d bl ffc0eaa0 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 5d bl ffc08754 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 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc03b08: 48 00 83 4d bl ffc0be54 <== 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 45 bl ffc087b4 <== 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 d9 bl ffc0be54 <== 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 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc03bb0: 48 00 9e 8d bl ffc0da3c <__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 ); ffc03bc4: 80 09 00 0c lwz r0,12(r9) buf->st_mode = the_dev->mode; ffc03bc8: 38 60 00 00 li r3,0 ffc03bcc: 81 69 00 10 lwz r11,16(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc03bd0: 81 29 00 08 lwz r9,8(r9) the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); ffc03bd4: 90 04 00 1c stw r0,28(r4) buf->st_mode = the_dev->mode; ffc03bd8: 91 64 00 0c stw r11,12(r4) the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); ffc03bdc: 91 24 00 18 stw r9,24(r4) buf->st_mode = the_dev->mode; return 0; } ffc03be0: 80 01 00 0c lwz r0,12(r1) ffc03be4: 38 21 00 08 addi r1,r1,8 ffc03be8: 7c 08 03 a6 mtlr r0 ffc03bec: 4e 80 00 20 blr ffc03bf0 : 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 d9 bl ffc08814 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 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc03c48: 48 00 82 0d bl ffc0be54 <== 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 ffc0e8a4 : */ int device_close( rtems_libio_t *iop ) { ffc0e8a4: 94 21 ff e8 stwu r1,-24(r1) ffc0e8a8: 7c 08 02 a6 mflr r0 ffc0e8ac: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc0e8b0: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc0e8b4: 38 a1 00 08 addi r5,r1,8 the_jnode = iop->file_info; args.iop = iop; args.flags = 0; args.mode = 0; ffc0e8b8: 90 01 00 10 stw r0,16(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc0e8bc: 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; ffc0e8c0: 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; ffc0e8c4: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( ffc0e8c8: 80 89 00 54 lwz r4,84(r9) ffc0e8cc: 80 69 00 50 lwz r3,80(r9) ffc0e8d0: 48 00 12 95 bl ffc0fb64 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { ffc0e8d4: 38 00 00 00 li r0,0 ffc0e8d8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e8dc: 41 be 00 0c beq+ cr7,ffc0e8e8 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0e8e0: 48 00 18 e9 bl ffc101c8 <== NOT EXECUTED ffc0e8e4: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc0e8e8: 7c 03 03 78 mr r3,r0 ffc0e8ec: 80 01 00 1c lwz r0,28(r1) ffc0e8f0: 38 21 00 18 addi r1,r1,24 ffc0e8f4: 7c 08 03 a6 mtlr r0 ffc0e8f8: 4e 80 00 20 blr ffc0e774 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0e774: 94 21 ff e8 stwu r1,-24(r1) ffc0e778: 7c 08 02 a6 mflr r0 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; ffc0e77c: 90 a1 00 10 stw r5,16(r1) the_jnode = iop->file_info; status = rtems_io_control( ffc0e780: 38 a1 00 08 addi r5,r1,8 int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0e784: 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; ffc0e788: 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; ffc0e78c: 90 61 00 08 stw r3,8(r1) args.command = command; args.buffer = buffer; the_jnode = iop->file_info; ffc0e790: 81 23 00 3c lwz r9,60(r3) status = rtems_io_control( ffc0e794: 80 89 00 54 lwz r4,84(r9) ffc0e798: 80 69 00 50 lwz r3,80(r9) ffc0e79c: 48 00 14 29 bl ffc0fbc4 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0e7a0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e7a4: 41 be 00 0c beq+ cr7,ffc0e7b0 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0e7a8: 48 00 1a 21 bl ffc101c8 <== NOT EXECUTED ffc0e7ac: 48 00 00 08 b ffc0e7b4 <== NOT EXECUTED return args.ioctl_return; ffc0e7b0: 80 61 00 14 lwz r3,20(r1) } ffc0e7b4: 80 01 00 1c lwz r0,28(r1) ffc0e7b8: 38 21 00 18 addi r1,r1,24 ffc0e7bc: 7c 08 03 a6 mtlr r0 ffc0e7c0: 4e 80 00 20 blr ffc0e8fc : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0e8fc: 94 21 ff e8 stwu r1,-24(r1) ffc0e900: 7c 08 02 a6 mflr r0 ffc0e904: 90 01 00 1c stw r0,28(r1) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc0e908: 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; ffc0e90c: 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; ffc0e910: 90 61 00 08 stw r3,8(r1) args.flags = iop->flags; ffc0e914: 90 01 00 0c stw r0,12(r1) args.mode = mode; ffc0e918: 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; ffc0e91c: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc0e920: 80 89 00 54 lwz r4,84(r9) ffc0e924: 80 69 00 50 lwz r3,80(r9) ffc0e928: 48 00 12 fd bl ffc0fc24 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0e92c: 38 00 00 00 li r0,0 ffc0e930: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e934: 41 be 00 0c beq+ cr7,ffc0e940 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0e938: 48 00 18 91 bl ffc101c8 <== NOT EXECUTED ffc0e93c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED return 0; } ffc0e940: 7c 03 03 78 mr r3,r0 ffc0e944: 80 01 00 1c lwz r0,28(r1) ffc0e948: 38 21 00 18 addi r1,r1,24 ffc0e94c: 7c 08 03 a6 mtlr r0 ffc0e950: 4e 80 00 20 blr ffc0e834 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc0e834: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0e838: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0e83c: 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; ffc0e840: 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; ffc0e844: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc0e848: 81 43 00 14 lwz r10,20(r3) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; ffc0e84c: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED args.bytes_moved = 0; ffc0e850: 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; ffc0e854: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc0e858: 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; ffc0e85c: 91 21 00 10 stw r9,16(r1) <== NOT EXECUTED ffc0e860: 91 41 00 14 stw r10,20(r1) <== NOT EXECUTED args.buffer = buffer; ffc0e864: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc0e868: 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; ffc0e86c: 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; ffc0e870: 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( ffc0e874: 80 89 00 54 lwz r4,84(r9) <== NOT EXECUTED ffc0e878: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0e87c: 48 00 14 09 bl ffc0fc84 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0e880: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0e884: 41 be 00 0c beq+ cr7,ffc0e890 <== NOT EXECUTED return rtems_deviceio_errno(status); ffc0e888: 48 00 19 41 bl ffc101c8 <== NOT EXECUTED ffc0e88c: 48 00 00 08 b ffc0e894 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc0e890: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED } ffc0e894: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0e898: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0e89c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0e8a0: 4e 80 00 20 blr <== NOT EXECUTED ffc0e7c4 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc0e7c4: 94 21 ff d8 stwu r1,-40(r1) ffc0e7c8: 7c 08 02 a6 mflr r0 ffc0e7cc: 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; ffc0e7d0: 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; ffc0e7d4: 81 23 00 10 lwz r9,16(r3) ffc0e7d8: 81 43 00 14 lwz r10,20(r3) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ffc0e7dc: 90 01 00 20 stw r0,32(r1) args.bytes_moved = 0; ffc0e7e0: 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; ffc0e7e4: 90 a1 00 1c stw r5,28(r1) args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc0e7e8: 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; ffc0e7ec: 91 21 00 10 stw r9,16(r1) ffc0e7f0: 91 41 00 14 stw r10,20(r1) args.buffer = (void *) buffer; ffc0e7f4: 90 81 00 18 stw r4,24(r1) args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc0e7f8: 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; ffc0e7fc: 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; ffc0e800: 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( ffc0e804: 80 89 00 54 lwz r4,84(r9) ffc0e808: 80 69 00 50 lwz r3,80(r9) ffc0e80c: 48 00 14 d9 bl ffc0fce4 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0e810: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e814: 41 be 00 0c beq+ cr7,ffc0e820 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0e818: 48 00 19 b1 bl ffc101c8 <== NOT EXECUTED ffc0e81c: 48 00 00 08 b ffc0e824 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc0e820: 80 61 00 24 lwz r3,36(r1) } ffc0e824: 80 01 00 2c lwz r0,44(r1) ffc0e828: 38 21 00 28 addi r1,r1,40 ffc0e82c: 7c 08 03 a6 mtlr r0 ffc0e830: 4e 80 00 20 blr ffc06278 : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc06278: 94 21 ff f0 stwu r1,-16(r1) ffc0627c: 7c 08 02 a6 mflr r0 ffc06280: 90 01 00 14 stw r0,20(r1) rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc06284: 80 03 00 b4 lwz r0,180(r3) /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc06288: 93 e1 00 0c stw r31,12(r1) ffc0628c: 7c 7f 1b 78 mr r31,r3 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc06290: 2f 80 00 00 cmpwi cr7,r0,0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc06294: 93 c1 00 08 stw r30,8(r1) rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc06298: 41 9e 00 64 beq- cr7,ffc062fc <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0629c: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc062a0: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc062a4: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc062a8: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; ffc062ac: 3b c0 00 02 li r30,2 <== NOT EXECUTED rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { ffc062b0: 48 00 00 38 b ffc062e8 <== NOT EXECUTED tty->rawOutBufState = rob_wait; ffc062b4: 93 df 00 94 stw r30,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc062b8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, ffc062bc: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED ffc062c0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc062c4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc062c8: 48 00 1a e5 bl ffc07dac <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc062cc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc062d0: 41 be 00 08 beq+ cr7,ffc062d8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc062d4: 48 00 23 01 bl ffc085d4 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc062d8: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc062dc: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc062e0: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc062e4: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { ffc062e8: 81 7f 00 84 lwz r11,132(r31) <== NOT EXECUTED ffc062ec: 81 3f 00 80 lwz r9,128(r31) <== NOT EXECUTED ffc062f0: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc062f4: 40 9e ff c0 bne+ cr7,ffc062b4 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc062f8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); } } ffc062fc: 80 01 00 14 lwz r0,20(r1) ffc06300: 83 c1 00 08 lwz r30,8(r1) ffc06304: 7c 08 03 a6 mtlr r0 ffc06308: 83 e1 00 0c lwz r31,12(r1) ffc0630c: 38 21 00 10 addi r1,r1,16 ffc06310: 4e 80 00 20 blr ffc05240 : int dup2( int fildes, int fildes2 ) { ffc05240: 94 21 ff 98 stwu r1,-104(r1) ffc05244: 7c 08 02 a6 mflr r0 ffc05248: 93 c1 00 60 stw r30,96(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc0524c: 3b c1 00 08 addi r30,r1,8 int dup2( int fildes, int fildes2 ) { ffc05250: 93 e1 00 64 stw r31,100(r1) ffc05254: 7c 9f 23 78 mr r31,r4 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc05258: 7f c4 f3 78 mr r4,r30 int dup2( int fildes, int fildes2 ) { ffc0525c: 93 a1 00 5c stw r29,92(r1) ffc05260: 7c 7d 1b 78 mr r29,r3 ffc05264: 90 01 00 6c stw r0,108(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc05268: 48 00 08 19 bl ffc05a80 if ( status == -1 ) ffc0526c: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05270: 41 be 00 30 beq+ cr7,ffc052a0 <== NEVER TAKEN /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); ffc05274: 7f c4 f3 78 mr r4,r30 ffc05278: 7f e3 fb 78 mr r3,r31 ffc0527c: 48 00 08 05 bl ffc05a80 if ( status == -1 ) ffc05280: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05284: 41 9e 00 1c beq- cr7,ffc052a0 <== ALWAYS TAKEN /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); ffc05288: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0528c: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05290: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05294: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc05298: 48 00 02 ed bl ffc05584 <== NOT EXECUTED ffc0529c: 48 00 00 08 b ffc052a4 <== NOT EXECUTED ffc052a0: 38 60 ff ff li r3,-1 } ffc052a4: 80 01 00 6c lwz r0,108(r1) ffc052a8: 83 a1 00 5c lwz r29,92(r1) ffc052ac: 7c 08 03 a6 mtlr r0 ffc052b0: 83 c1 00 60 lwz r30,96(r1) ffc052b4: 83 e1 00 64 lwz r31,100(r1) ffc052b8: 38 21 00 68 addi r1,r1,104 ffc052bc: 4e 80 00 20 blr ffc05c48 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { ffc05c48: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc05c4c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05c50: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc05c54: 81 24 00 3c lwz r9,60(r4) <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { ffc05c58: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED ffc05c5c: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc05c60: 71 20 02 00 andi. r0,r9,512 <== NOT EXECUTED ffc05c64: 41 82 00 5c beq- ffc05cc0 <== NOT EXECUTED ffc05c68: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05c6c: 81 29 26 a0 lwz r9,9888(r9) <== NOT EXECUTED ffc05c70: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED ffc05c74: 88 09 00 01 lbz r0,1(r9) <== NOT EXECUTED ffc05c78: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc05c7c: 41 82 00 44 beq- ffc05cc0 <== NOT EXECUTED ffc05c80: 2f 83 00 09 cmpwi cr7,r3,9 <== NOT EXECUTED ffc05c84: 41 9e 00 3c beq- cr7,ffc05cc0 <== NOT EXECUTED ffc05c88: 2f 83 00 0a cmpwi cr7,r3,10 <== NOT EXECUTED ffc05c8c: 41 be 00 34 beq+ cr7,ffc05cc0 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; ffc05c90: 68 60 00 40 xori r0,r3,64 <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; ffc05c94: 39 20 00 5e li r9,94 <== NOT EXECUTED echobuf[1] = c ^ 0x40; ffc05c98: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); ffc05c9c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc05ca0: 38 80 00 02 li r4,2 <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; ffc05ca4: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); ffc05ca8: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05cac: 4b ff fc a5 bl ffc05950 <== NOT EXECUTED tty->column += 2; ffc05cb0: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05cb4: 38 09 00 02 addi r0,r9,2 <== NOT EXECUTED ffc05cb8: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc05cbc: 48 00 00 0c b ffc05cc8 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); ffc05cc0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05cc4: 4b ff fe 05 bl ffc05ac8 <== NOT EXECUTED } } ffc05cc8: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05ccc: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05cd0: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc05cd4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05cd8: 4e 80 00 20 blr <== NOT EXECUTED ffc04bdc : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) ffc04bdc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc04be0: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc04be4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp != NULL) ffc04be8: 80 69 28 14 lwz r3,10260(r9) <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc04bec: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (group_fp != NULL) ffc04bf0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc04bf4: 41 9e 00 08 beq- cr7,ffc04bfc <== NOT EXECUTED fclose(group_fp); ffc04bf8: 48 00 e4 75 bl ffc1306c <== NOT EXECUTED } ffc04bfc: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc04c00: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc04c04: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04c08: 4e 80 00 20 blr <== NOT EXECUTED ffc04c0c : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) ffc04c0c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc04c10: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc04c14: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp != NULL) ffc04c18: 80 69 28 18 lwz r3,10264(r9) <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc04c1c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (passwd_fp != NULL) ffc04c20: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc04c24: 41 9e 00 08 beq- cr7,ffc04c2c <== NOT EXECUTED fclose(passwd_fp); ffc04c28: 48 00 e4 45 bl ffc1306c <== NOT EXECUTED } ffc04c2c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc04c30: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc04c34: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04c38: 4e 80 00 20 blr <== NOT EXECUTED ffc05cdc : * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { ffc05cdc: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc05ce0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05ce4: 7d 80 00 26 mfcr r12 <== NOT EXECUTED ffc05ce8: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED if (tty->ccount == 0) ffc05cec: 80 03 00 20 lwz r0,32(r3) <== NOT EXECUTED * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { ffc05cf0: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED ffc05cf4: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (tty->ccount == 0) ffc05cf8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { ffc05cfc: 93 61 00 0c stw r27,12(r1) <== NOT EXECUTED ffc05d00: 93 81 00 10 stw r28,16(r1) <== NOT EXECUTED ffc05d04: 93 a1 00 14 stw r29,20(r1) <== NOT EXECUTED ffc05d08: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc05d0c: 91 81 00 08 stw r12,8(r1) <== NOT EXECUTED if (tty->ccount == 0) ffc05d10: 41 9e 01 f4 beq- cr7,ffc05f04 <== NOT EXECUTED return; if (lineFlag) { ffc05d14: 2f 84 00 00 cmpwi cr7,r4,0 <== NOT EXECUTED ffc05d18: 41 9e 01 c4 beq- cr7,ffc05edc <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { ffc05d1c: 80 03 00 3c lwz r0,60(r3) <== NOT EXECUTED ffc05d20: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc05d24: 40 a2 00 0c bne+ ffc05d30 <== NOT EXECUTED tty->ccount = 0; ffc05d28: 91 23 00 20 stw r9,32(r3) <== NOT EXECUTED return; ffc05d2c: 48 00 01 d8 b ffc05f04 <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { ffc05d30: 70 00 00 10 andi. r0,r0,16 <== NOT EXECUTED ffc05d34: 40 a2 01 a8 bne+ ffc05edc <== NOT EXECUTED tty->ccount = 0; ffc05d38: 90 03 00 20 stw r0,32(r3) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); ffc05d3c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc05d40: 88 63 00 44 lbz r3,68(r3) <== NOT EXECUTED ffc05d44: 4b ff ff 05 bl ffc05c48 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) ffc05d48: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED echo ('\n', tty); ffc05d4c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) ffc05d50: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED echo ('\n', tty); ffc05d54: 38 60 00 0a li r3,10 <== NOT EXECUTED return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) ffc05d58: 41 a2 01 ac beq+ ffc05f04 <== NOT EXECUTED ffc05d5c: 48 00 00 34 b ffc05d90 <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { ffc05d60: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; ffc05d64: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05d68: 91 3f 00 20 stw r9,32(r31) <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { ffc05d6c: 70 0a 00 08 andi. r10,r0,8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; ffc05d70: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc05d74: 7f cb 48 ae lbzx r30,r11,r9 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { ffc05d78: 41 82 01 5c beq- ffc05ed4 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { ffc05d7c: 40 92 00 40 bne- cr4,ffc05dbc <== NOT EXECUTED ffc05d80: 70 0b 00 10 andi. r11,r0,16 <== NOT EXECUTED ffc05d84: 40 a2 00 38 bne+ ffc05dbc <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); ffc05d88: 88 7f 00 43 lbz r3,67(r31) <== NOT EXECUTED ffc05d8c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED } } if (!lineFlag) break; } } ffc05d90: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05d94: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc05d98: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05d9c: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc05da0: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc05da4: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc05da8: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc05dac: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc05db0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05db4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); ffc05db8: 4b ff fe 90 b ffc05c48 <== NOT EXECUTED } else if (c == '\t') { ffc05dbc: 2f 9e 00 09 cmpwi cr7,r30,9 <== NOT EXECUTED ffc05dc0: 40 be 00 94 bne+ cr7,ffc05e54 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) ffc05dc4: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { int col = tty->read_start_column; ffc05dc8: 83 df 00 2c lwz r30,44(r31) <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) ffc05dcc: 7d 29 03 a6 mtctr r9 <== NOT EXECUTED ffc05dd0: 70 0a 02 00 andi. r10,r0,512 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { ffc05dd4: 81 7d 00 00 lwz r11,0(r29) <== NOT EXECUTED ffc05dd8: 39 20 00 00 li r9,0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc05ddc: 48 00 00 44 b ffc05e20 <== NOT EXECUTED c = tty->cbuf[i++]; ffc05de0: 81 5f 00 1c lwz r10,28(r31) <== NOT EXECUTED ffc05de4: 7c 0a 48 ae lbzx r0,r10,r9 <== NOT EXECUTED if (c == '\t') { ffc05de8: 2f 80 00 09 cmpwi cr7,r0,9 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { ffc05dec: 7d 4b 02 14 add r10,r11,r0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { ffc05df0: 40 be 00 0c bne+ cr7,ffc05dfc <== NOT EXECUTED col = (col | 7) + 1; ffc05df4: 63 de 00 07 ori r30,r30,7 <== NOT EXECUTED ffc05df8: 48 00 00 20 b ffc05e18 <== NOT EXECUTED } else if (iscntrl (c)) { ffc05dfc: 88 0a 00 01 lbz r0,1(r10) <== NOT EXECUTED ffc05e00: 54 0a df fe rlwinm r10,r0,27,31,31 <== NOT EXECUTED ffc05e04: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED ffc05e08: 41 9e 00 10 beq- cr7,ffc05e18 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) ffc05e0c: 41 82 00 10 beq- ffc05e1c <== NOT EXECUTED col += 2; ffc05e10: 3b de 00 02 addi r30,r30,2 <== NOT EXECUTED ffc05e14: 48 00 00 08 b ffc05e1c <== NOT EXECUTED } else { col++; ffc05e18: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; ffc05e1c: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc05e20: 42 00 ff c0 bdnz+ ffc05de0 <== NOT EXECUTED ffc05e24: 48 00 00 14 b ffc05e38 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05e28: 4b ff fb 29 bl ffc05950 <== NOT EXECUTED tty->column--; ffc05e2c: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05e30: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc05e34: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05e38: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); ffc05e3c: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc05e40: 38 80 00 01 li r4,1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05e44: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); ffc05e48: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05e4c: 41 9d ff dc bgt+ cr7,ffc05e28 <== NOT EXECUTED ffc05e50: 48 00 00 84 b ffc05ed4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { ffc05e54: 81 3d 00 00 lwz r9,0(r29) <== NOT EXECUTED ffc05e58: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc05e5c: 7d 29 f0 ae lbzx r9,r9,r30 <== NOT EXECUTED ffc05e60: 71 2b 00 20 andi. r11,r9,32 <== NOT EXECUTED ffc05e64: 41 82 00 30 beq- ffc05e94 <== NOT EXECUTED ffc05e68: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc05e6c: 41 a2 00 28 beq+ ffc05e94 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc05e70: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc05e74: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc05e78: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05e7c: 4b ff fa d5 bl ffc05950 <== NOT EXECUTED if (tty->column) ffc05e80: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05e84: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05e88: 41 9e 00 0c beq- cr7,ffc05e94 <== NOT EXECUTED tty->column--; ffc05e8c: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05e90: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { ffc05e94: 81 3d 00 00 lwz r9,0(r29) <== NOT EXECUTED ffc05e98: 7c 09 f0 ae lbzx r0,r9,r30 <== NOT EXECUTED ffc05e9c: 70 0a 00 20 andi. r10,r0,32 <== NOT EXECUTED ffc05ea0: 41 82 00 10 beq- ffc05eb0 <== NOT EXECUTED ffc05ea4: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc05ea8: 70 0b 02 00 andi. r11,r0,512 <== NOT EXECUTED ffc05eac: 41 82 00 28 beq- ffc05ed4 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc05eb0: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc05eb4: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc05eb8: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05ebc: 4b ff fa 95 bl ffc05950 <== NOT EXECUTED if (tty->column) ffc05ec0: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05ec4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05ec8: 41 9e 00 0c beq- cr7,ffc05ed4 <== NOT EXECUTED tty->column--; ffc05ecc: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05ed0: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED } } } if (!lineFlag) ffc05ed4: 40 b2 00 24 bne+ cr4,ffc05ef8 <== NOT EXECUTED ffc05ed8: 48 00 00 2c b ffc05f04 <== NOT EXECUTED } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { ffc05edc: 2e 04 00 00 cmpwi cr4,r4,0 <== NOT EXECUTED ffc05ee0: 3f a0 00 00 lis r29,0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); ffc05ee4: 3f 80 ff c2 lis r28,-62 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05ee8: 3f 60 ff c2 lis r27,-62 <== NOT EXECUTED ffc05eec: 3b bd 26 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); ffc05ef0: 3b 9c c8 a5 addi r28,r28,-14171 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05ef4: 3b 7b c8 a7 addi r27,r27,-14169 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { ffc05ef8: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc05efc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05f00: 40 9e fe 60 bne+ cr7,ffc05d60 <== NOT EXECUTED } } if (!lineFlag) break; } } ffc05f04: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05f08: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc05f0c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05f10: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc05f14: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc05f18: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc05f1c: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc05f20: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc05f24: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05f28: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc05f2c: 4e 80 00 20 blr <== NOT EXECUTED ffc05584 : int fcntl( int fd, int cmd, ... ) { ffc05584: 94 21 ff c8 stwu r1,-56(r1) ffc05588: 7c 08 02 a6 mflr r0 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc0558c: 3d 20 00 00 lis r9,0 int fcntl( int fd, int cmd, ... ) { ffc05590: 90 01 00 3c stw r0,60(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc05594: 80 09 26 4c lwz r0,9804(r9) ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc05598: 39 20 00 02 li r9,2 ffc0559c: 99 21 00 08 stb r9,8(r1) ffc055a0: 39 21 00 40 addi r9,r1,64 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc055a4: 7f 83 00 40 cmplw cr7,r3,r0 ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc055a8: 91 21 00 0c stw r9,12(r1) ffc055ac: 39 21 00 10 addi r9,r1,16 int fcntl( int fd, int cmd, ... ) { ffc055b0: 93 e1 00 34 stw r31,52(r1) ffc055b4: 7c 9f 23 78 mr r31,r4 ffc055b8: 93 a1 00 2c stw r29,44(r1) ffc055bc: 93 c1 00 30 stw r30,48(r1) ffc055c0: 90 a1 00 18 stw r5,24(r1) ffc055c4: 90 c1 00 1c stw r6,28(r1) ffc055c8: 90 e1 00 20 stw r7,32(r1) int ret; va_list ap; va_start( ap, cmd ); ffc055cc: 91 21 00 10 stw r9,16(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc055d0: 40 9c 00 20 bge- cr7,ffc055f0 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc055d4: 3d 20 00 00 lis r9,0 ffc055d8: 81 69 27 0c lwz r11,9996(r9) ffc055dc: 1c 63 00 48 mulli r3,r3,72 ffc055e0: 7f ab 1a 14 add r29,r11,r3 rtems_libio_check_is_open(iop); ffc055e4: 80 7d 00 18 lwz r3,24(r29) ffc055e8: 70 69 01 00 andi. r9,r3,256 ffc055ec: 40 a2 00 10 bne+ ffc055fc <== ALWAYS TAKEN ffc055f0: 48 00 e1 dd bl ffc137cc <__errno> <== NOT EXECUTED ffc055f4: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc055f8: 48 00 01 c0 b ffc057b8 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { ffc055fc: 2b 84 00 09 cmplwi cr7,r4,9 ffc05600: 41 9d 01 b0 bgt- cr7,ffc057b0 ffc05604: 3d 20 ff c2 lis r9,-62 ffc05608: 39 29 10 a4 addi r9,r9,4260 ffc0560c: 54 8a 10 3a rlwinm r10,r4,2,0,29 ffc05610: 7d 49 50 2e lwzx r10,r9,r10 ffc05614: 7d 2a 4a 14 add r9,r10,r9 ffc05618: 7d 29 03 a6 mtctr r9 ffc0561c: 4e 80 04 20 bctr case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); ffc05620: 89 21 00 08 lbz r9,8(r1) ffc05624: 2b 89 00 07 cmplwi cr7,r9,7 ffc05628: 41 9d 00 1c bgt- cr7,ffc05644 <== NEVER TAKEN ffc0562c: 81 01 00 10 lwz r8,16(r1) ffc05630: 39 49 00 01 addi r10,r9,1 ffc05634: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc05638: 99 41 00 08 stb r10,8(r1) ffc0563c: 7d 28 4a 14 add r9,r8,r9 ffc05640: 48 00 00 10 b ffc05650 ffc05644: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc05648: 39 49 00 04 addi r10,r9,4 <== NOT EXECUTED ffc0564c: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc05650: 81 29 00 00 lwz r9,0(r9) if ( fd2 ) ffc05654: 2f 89 00 00 cmpwi cr7,r9,0 ffc05658: 41 9e 00 1c beq- cr7,ffc05674 <== ALWAYS TAKEN diop = rtems_libio_iop( fd2 ); ffc0565c: 1c 69 00 48 mulli r3,r9,72 <== NOT EXECUTED ffc05660: 7c 00 48 10 subfc r0,r0,r9 <== NOT EXECUTED ffc05664: 7c 00 01 10 subfe r0,r0,r0 <== NOT EXECUTED ffc05668: 7c 6b 1a 14 add r3,r11,r3 <== NOT EXECUTED ffc0566c: 7c 63 00 38 and r3,r3,r0 <== NOT EXECUTED ffc05670: 48 00 00 14 b ffc05684 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); ffc05674: 48 00 08 e5 bl ffc05f58 if ( diop == 0 ) { ffc05678: 3b c0 ff ff li r30,-1 ffc0567c: 2c 03 00 00 cmpwi r3,0 ffc05680: 41 82 01 7c beq- ffc057fc <== NEVER TAKEN } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc05684: 81 3d 00 24 lwz r9,36(r29) ffc05688: 81 5d 00 1c lwz r10,28(r29) ffc0568c: 81 7d 00 20 lwz r11,32(r29) ffc05690: 80 1d 00 28 lwz r0,40(r29) ffc05694: 91 23 00 24 stw r9,36(r3) ret = (int) (diop - rtems_libio_iops); ffc05698: 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; ffc0569c: 91 43 00 1c stw r10,28(r3) ffc056a0: 91 63 00 20 stw r11,32(r3) ret = (int) (diop - rtems_libio_iops); ffc056a4: 83 c9 27 0c lwz r30,9996(r9) ret = -1; break; } } diop->handlers = iop->handlers; ffc056a8: 81 5d 00 40 lwz r10,64(r29) diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc056ac: 90 03 00 28 stw r0,40(r3) ret = (int) (diop - rtems_libio_iops); ffc056b0: 7f de 18 50 subf r30,r30,r3 ffc056b4: 7f de 1e 70 srawi r30,r30,3 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; ffc056b8: 81 7d 00 3c lwz r11,60(r29) diop->flags = iop->flags; ffc056bc: 81 3d 00 18 lwz r9,24(r29) diop->pathinfo = iop->pathinfo; ffc056c0: 80 1d 00 2c lwz r0,44(r29) ret = -1; break; } } diop->handlers = iop->handlers; ffc056c4: 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); ffc056c8: 3d 40 38 e3 lis r10,14563 ffc056cc: 61 4a 8e 39 ori r10,r10,36409 ffc056d0: 7f de 51 d6 mullw r30,r30,r10 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; ffc056d4: 91 63 00 3c stw r11,60(r3) diop->flags = iop->flags; ffc056d8: 91 23 00 18 stw r9,24(r3) diop->pathinfo = iop->pathinfo; ffc056dc: 90 03 00 2c stw r0,44(r3) ffc056e0: 48 00 00 e0 b ffc057c0 ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); ffc056e4: 54 7e af fe rlwinm r30,r3,21,31,31 ffc056e8: 48 00 00 e0 b ffc057c8 * 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 ) ) ffc056ec: 89 21 00 08 lbz r9,8(r1) ffc056f0: 2b 89 00 07 cmplwi cr7,r9,7 ffc056f4: 41 9d 00 1c bgt- cr7,ffc05710 <== NEVER TAKEN ffc056f8: 81 61 00 10 lwz r11,16(r1) ffc056fc: 38 09 00 01 addi r0,r9,1 ffc05700: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc05704: 98 01 00 08 stb r0,8(r1) ffc05708: 7d 2b 4a 14 add r9,r11,r9 ffc0570c: 48 00 00 10 b ffc0571c ffc05710: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc05714: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc05718: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc0571c: 80 09 00 00 lwz r0,0(r9) ffc05720: 2f 80 00 00 cmpwi cr7,r0,0 ffc05724: 41 9e 00 0c beq- cr7,ffc05730 <== NEVER TAKEN iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; ffc05728: 60 63 08 00 ori r3,r3,2048 ffc0572c: 48 00 00 08 b ffc05734 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; ffc05730: 54 63 05 66 rlwinm r3,r3,0,21,19 <== NOT EXECUTED ffc05734: 90 7d 00 18 stw r3,24(r29) ffc05738: 3b c0 00 00 li r30,0 ffc0573c: 48 00 00 8c b ffc057c8 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); ffc05740: 48 00 06 15 bl ffc05d54 ffc05744: 7c 7e 1b 78 mr r30,r3 ffc05748: 48 00 00 78 b ffc057c0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); ffc0574c: 89 21 00 08 lbz r9,8(r1) ffc05750: 2b 89 00 07 cmplwi cr7,r9,7 ffc05754: 41 9d 00 1c bgt- cr7,ffc05770 <== NEVER TAKEN ffc05758: 81 61 00 10 lwz r11,16(r1) ffc0575c: 38 09 00 01 addi r0,r9,1 ffc05760: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc05764: 98 01 00 08 stb r0,8(r1) ffc05768: 7d 2b 4a 14 add r9,r11,r9 ffc0576c: 48 00 00 10 b ffc0577c ffc05770: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc05774: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc05778: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc0577c: 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); ffc05780: 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 ) ); ffc05784: 48 00 08 b1 bl ffc06034 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); ffc05788: 80 1d 00 18 lwz r0,24(r29) ffc0578c: 70 63 02 01 andi. r3,r3,513 ffc05790: 39 20 fd fe li r9,-514 ffc05794: 7d 20 00 38 and r0,r9,r0 ffc05798: 7c 63 03 78 or r3,r3,r0 ffc0579c: 90 7d 00 18 stw r3,24(r29) ffc057a0: 48 00 00 28 b ffc057c8 errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; ffc057a4: 48 00 e0 29 bl ffc137cc <__errno> ffc057a8: 38 00 00 86 li r0,134 ffc057ac: 48 00 00 0c b ffc057b8 ret = -1; break; default: errno = EINVAL; ffc057b0: 48 00 e0 1d bl ffc137cc <__errno> ffc057b4: 38 00 00 16 li r0,22 ffc057b8: 90 03 00 00 stw r0,0(r3) ffc057bc: 48 00 00 3c b ffc057f8 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { ffc057c0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc057c4: 41 9c 00 38 blt- cr7,ffc057fc <== NEVER TAKEN if (iop->handlers->fcntl_h) { ffc057c8: 81 3d 00 40 lwz r9,64(r29) ffc057cc: 80 09 00 30 lwz r0,48(r9) ffc057d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc057d4: 41 9e 00 28 beq- cr7,ffc057fc <== NEVER TAKEN int err = (*iop->handlers->fcntl_h)( cmd, iop ); ffc057d8: 7f e3 fb 78 mr r3,r31 ffc057dc: 7c 09 03 a6 mtctr r0 ffc057e0: 7f a4 eb 78 mr r4,r29 ffc057e4: 4e 80 04 21 bctrl if (err) { ffc057e8: 7c 7f 1b 79 mr. r31,r3 ffc057ec: 41 a2 00 10 beq+ ffc057fc <== ALWAYS TAKEN errno = err; ffc057f0: 48 00 df dd bl ffc137cc <__errno> <== NOT EXECUTED ffc057f4: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc057f8: 3b c0 ff ff li r30,-1 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } ffc057fc: 80 01 00 3c lwz r0,60(r1) ffc05800: 7f c3 f3 78 mr r3,r30 ffc05804: 83 a1 00 2c lwz r29,44(r1) ffc05808: 7c 08 03 a6 mtlr r0 ffc0580c: 83 c1 00 30 lwz r30,48(r1) ffc05810: 83 e1 00 34 lwz r31,52(r1) ffc05814: 38 21 00 38 addi r1,r1,56 ffc05818: 4e 80 00 20 blr ffc05830 : #include int fdatasync( int fd ) { ffc05830: 7c 08 02 a6 mflr r0 ffc05834: 94 21 ff f8 stwu r1,-8(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc05838: 3d 20 00 00 lis r9,0 #include int fdatasync( int fd ) { ffc0583c: 90 01 00 0c stw r0,12(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc05840: 80 09 26 4c lwz r0,9804(r9) ffc05844: 7f 83 00 40 cmplw cr7,r3,r0 ffc05848: 40 9c 00 20 bge- cr7,ffc05868 iop = rtems_libio_iop( fd ); ffc0584c: 3d 20 00 00 lis r9,0 ffc05850: 80 09 27 0c lwz r0,9996(r9) ffc05854: 1c 63 00 48 mulli r3,r3,72 ffc05858: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc0585c: 80 03 00 18 lwz r0,24(r3) ffc05860: 70 09 01 00 andi. r9,r0,256 ffc05864: 40 a2 00 10 bne+ ffc05874 <== ALWAYS TAKEN ffc05868: 48 00 df 65 bl ffc137cc <__errno> ffc0586c: 38 00 00 09 li r0,9 ffc05870: 48 00 00 30 b ffc058a0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc05874: 70 09 00 04 andi. r9,r0,4 ffc05878: 40 a2 00 10 bne+ ffc05888 ffc0587c: 48 00 df 51 bl ffc137cc <__errno> ffc05880: 38 00 00 16 li r0,22 ffc05884: 48 00 00 1c b ffc058a0 /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) ffc05888: 81 23 00 40 lwz r9,64(r3) ffc0588c: 80 09 00 2c lwz r0,44(r9) ffc05890: 2f 80 00 00 cmpwi cr7,r0,0 ffc05894: 40 be 00 18 bne+ cr7,ffc058ac rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc05898: 48 00 df 35 bl ffc137cc <__errno> ffc0589c: 38 00 00 86 li r0,134 ffc058a0: 90 03 00 00 stw r0,0(r3) ffc058a4: 38 60 ff ff li r3,-1 ffc058a8: 48 00 00 0c b ffc058b4 return (*iop->handlers->fdatasync_h)( iop ); ffc058ac: 7c 09 03 a6 mtctr r0 ffc058b0: 4e 80 04 21 bctrl } ffc058b4: 80 01 00 0c lwz r0,12(r1) ffc058b8: 38 21 00 08 addi r1,r1,8 ffc058bc: 7c 08 03 a6 mtlr r0 ffc058c0: 4e 80 00 20 blr ffc0efd0 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0efd0: 94 21 ff d0 stwu r1,-48(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0efd4: 3d 20 00 00 lis r9,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0efd8: 7c 08 02 a6 mflr r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0efdc: 38 a0 00 00 li r5,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0efe0: 93 81 00 20 stw r28,32(r1) ffc0efe4: 7c 7c 1b 78 mr r28,r3 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0efe8: 80 69 28 fc lwz r3,10492(r9) */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0efec: 93 61 00 1c stw r27,28(r1) ffc0eff0: 7c 9b 23 78 mr r27,r4 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0eff4: 38 80 00 00 li r4,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0eff8: 93 a1 00 24 stw r29,36(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0effc: 3b a0 ff fc li r29,-4 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0f000: 90 01 00 34 stw r0,52(r1) ffc0f004: 93 c1 00 28 stw r30,40(r1) ffc0f008: 93 e1 00 2c stw r31,44(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0f00c: 4b ff 8d a1 bl ffc07dac ffc0f010: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f014: 40 9e 03 28 bne- cr7,ffc0f33c <== ALWAYS TAKEN RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; ffc0f018: 83 fc 00 00 lwz r31,0(r28) <== NOT EXECUTED if (pipe == NULL) { ffc0f01c: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc0f020: 40 be 01 04 bne+ cr7,ffc0f124 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); ffc0f024: 38 60 00 34 li r3,52 <== NOT EXECUTED ffc0f028: 4b ff 55 81 bl ffc045a8 <== NOT EXECUTED if (pipe == NULL) ffc0f02c: 3b a0 ff f4 li r29,-12 <== NOT EXECUTED ffc0f030: 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)); ffc0f034: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc0f038: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (pipe == NULL) ffc0f03c: 41 9e 01 2c beq- cr7,ffc0f168 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); ffc0f040: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f044: 38 a0 00 34 li r5,52 <== NOT EXECUTED ffc0f048: 48 00 22 89 bl ffc112d0 <== NOT EXECUTED pipe->Size = PIPE_BUF; ffc0f04c: 38 00 02 00 li r0,512 <== NOT EXECUTED ffc0f050: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); ffc0f054: 38 60 02 00 li r3,512 <== NOT EXECUTED ffc0f058: 4b ff 55 51 bl ffc045a8 <== NOT EXECUTED if (! pipe->Buffer) ffc0f05c: 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); ffc0f060: 90 7e 00 00 stw r3,0(r30) <== NOT EXECUTED if (! pipe->Buffer) ffc0f064: 41 9e 00 b4 beq- cr7,ffc0f118 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( ffc0f068: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc0f06c: 88 7d 21 bc lbz r3,8636(r29) <== NOT EXECUTED ffc0f070: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f074: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f078: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0f07c: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc0f080: 38 de 00 2c addi r6,r30,44 <== NOT EXECUTED ffc0f084: 48 00 06 d5 bl ffc0f758 <== NOT EXECUTED ffc0f088: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f08c: 40 9e 00 80 bne- cr7,ffc0f10c <== 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( ffc0f090: 88 7d 21 bc lbz r3,8636(r29) <== NOT EXECUTED ffc0f094: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f098: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f09c: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0f0a0: 60 63 77 00 ori r3,r3,30464 <== NOT EXECUTED ffc0f0a4: 38 de 00 30 addi r6,r30,48 <== NOT EXECUTED ffc0f0a8: 48 00 06 b1 bl ffc0f758 <== NOT EXECUTED ffc0f0ac: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f0b0: 40 9e 00 54 bne- cr7,ffc0f104 <== 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( ffc0f0b4: 88 7d 21 bc lbz r3,8636(r29) <== NOT EXECUTED ffc0f0b8: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc0f0bc: 38 a0 00 10 li r5,16 <== NOT EXECUTED ffc0f0c0: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0f0c4: 60 63 73 00 ori r3,r3,29440 <== NOT EXECUTED ffc0f0c8: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc0f0cc: 38 fe 00 28 addi r7,r30,40 <== NOT EXECUTED ffc0f0d0: 4b ff 8a 0d bl ffc07adc <== NOT EXECUTED ffc0f0d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f0d8: 40 9e 00 24 bne- cr7,ffc0f0fc <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') ffc0f0dc: 89 3d 21 bc lbz r9,8636(r29) <== NOT EXECUTED ffc0f0e0: 2f 89 00 7a cmpwi cr7,r9,122 <== NOT EXECUTED ffc0f0e4: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED ffc0f0e8: 99 3d 21 bc stb r9,8636(r29) <== NOT EXECUTED ffc0f0ec: 40 be 00 38 bne+ cr7,ffc0f124 <== NOT EXECUTED c = 'a'; ffc0f0f0: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc0f0f4: 98 1d 21 bc stb r0,8636(r29) <== NOT EXECUTED ffc0f0f8: 48 00 00 2c b ffc0f124 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); ffc0f0fc: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc0f100: 48 00 07 49 bl ffc0f848 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); ffc0f104: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc0f108: 48 00 07 41 bl ffc0f848 <== NOT EXECUTED err_rbar: free(pipe->Buffer); ffc0f10c: 80 7e 00 00 lwz r3,0(r30) <== NOT EXECUTED ffc0f110: 3b a0 ff fc li r29,-4 <== NOT EXECUTED ffc0f114: 4b ff 51 31 bl ffc04244 <== NOT EXECUTED err_buf: free(pipe); ffc0f118: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0f11c: 4b ff 51 29 bl ffc04244 <== NOT EXECUTED ffc0f120: 48 00 00 48 b ffc0f168 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0f124: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f128: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f12c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f130: 4b ff 8c 7d bl ffc07dac <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0f134: 80 1c 00 00 lwz r0,0(r28) <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0f138: 30 63 ff ff addic r3,r3,-1 <== NOT EXECUTED ffc0f13c: 7c 63 19 10 subfe r3,r3,r3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0f140: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0f144: 54 7d 07 7a rlwinm r29,r3,0,29,29 <== NOT EXECUTED ffc0f148: 3b bd ff fc addi r29,r29,-4 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0f14c: 40 be 00 1c bne+ cr7,ffc0f168 <== NOT EXECUTED if (err) ffc0f150: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0f154: 41 be 00 10 beq+ cr7,ffc0f164 <== NOT EXECUTED pipe_free(pipe); ffc0f158: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0f15c: 4b ff fd 05 bl ffc0ee60 <== NOT EXECUTED ffc0f160: 48 00 00 08 b ffc0f168 <== NOT EXECUTED else *pipep = pipe; ffc0f164: 93 fc 00 00 stw r31,0(r28) <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc0f168: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0f16c: 80 69 28 fc lwz r3,10492(r9) <== NOT EXECUTED ffc0f170: 4b ff 8d 81 bl ffc07ef0 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) ffc0f174: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0f178: 40 9e 01 c4 bne- cr7,ffc0f33c <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { ffc0f17c: 81 3b 00 18 lwz r9,24(r27) <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; ffc0f180: 83 fc 00 00 lwz r31,0(r28) <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { ffc0f184: 55 20 07 7c rlwinm r0,r9,0,29,30 <== NOT EXECUTED ffc0f188: 2f 80 00 04 cmpwi cr7,r0,4 <== NOT EXECUTED ffc0f18c: 41 9e 00 a0 beq- cr7,ffc0f22c <== NOT EXECUTED ffc0f190: 2f 80 00 06 cmpwi cr7,r0,6 <== NOT EXECUTED ffc0f194: 41 9e 01 34 beq- cr7,ffc0f2c8 <== NOT EXECUTED ffc0f198: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0f19c: 40 be 01 84 bne+ cr7,ffc0f320 <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc0f1a0: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0f1a4: 81 7f 00 20 lwz r11,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f1a8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0f1ac: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f1b0: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0f1b4: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f1b8: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc0f1bc: 40 be 00 10 bne+ cr7,ffc0f1cc <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0f1c0: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f1c4: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f1c8: 48 00 07 09 bl ffc0f8d0 <== NOT EXECUTED if (pipe->Writers == 0) { ffc0f1cc: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0f1d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f1d4: 40 9e 01 4c bne- cr7,ffc0f320 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) ffc0f1d8: 80 1b 00 18 lwz r0,24(r27) <== NOT EXECUTED ffc0f1dc: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0f1e0: 40 82 01 40 bne- ffc0f320 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; ffc0f1e4: 83 df 00 24 lwz r30,36(r31) <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); ffc0f1e8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f1ec: 4b ff 8d 05 bl ffc07ef0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc0f1f0: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f1f4: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f1f8: 48 00 07 59 bl ffc0f950 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f1fc: 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)) ffc0f200: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f204: 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)) ffc0f208: 40 9e 01 24 bne- cr7,ffc0f32c <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f20c: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f210: 4b ff 8b 9d bl ffc07dac <== NOT EXECUTED ffc0f214: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f218: 40 9e 01 14 bne- cr7,ffc0f32c <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); ffc0f21c: 80 1f 00 24 lwz r0,36(r31) <== NOT EXECUTED ffc0f220: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc0f224: 41 9e ff c4 beq+ cr7,ffc0f1e8 <== NOT EXECUTED ffc0f228: 48 00 00 f8 b ffc0f320 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { ffc0f22c: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0f230: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f234: 40 9e 00 14 bne- cr7,ffc0f248 <== NOT EXECUTED ffc0f238: 71 20 00 01 andi. r0,r9,1 <== NOT EXECUTED ffc0f23c: 41 82 00 0c beq- ffc0f248 <== NOT EXECUTED ffc0f240: 3b a0 ff fa li r29,-6 <== NOT EXECUTED ffc0f244: 48 00 00 ec b ffc0f330 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc0f248: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0f24c: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f250: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0f254: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f258: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0f25c: 90 1f 00 24 stw r0,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f260: 91 3f 00 14 stw r9,20(r31) <== NOT EXECUTED ffc0f264: 40 be 00 10 bne+ cr7,ffc0f274 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0f268: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f26c: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f270: 48 00 06 61 bl ffc0f8d0 <== NOT EXECUTED if (pipe->Readers == 0) { ffc0f274: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0f278: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f27c: 40 9e 00 a4 bne- cr7,ffc0f320 <== NOT EXECUTED prevCounter = pipe->readerCounter; ffc0f280: 83 df 00 20 lwz r30,32(r31) <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); ffc0f284: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f288: 4b ff 8c 69 bl ffc07ef0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc0f28c: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f290: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f294: 48 00 06 bd bl ffc0f950 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f298: 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)) ffc0f29c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f2a0: 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)) ffc0f2a4: 40 9e 00 88 bne- cr7,ffc0f32c <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0f2a8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f2ac: 4b ff 8b 01 bl ffc07dac <== NOT EXECUTED ffc0f2b0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f2b4: 40 9e 00 78 bne- cr7,ffc0f32c <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); ffc0f2b8: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc0f2bc: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc0f2c0: 41 9e ff c4 beq+ cr7,ffc0f284 <== NOT EXECUTED ffc0f2c4: 48 00 00 5c b ffc0f320 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc0f2c8: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0f2cc: 81 7f 00 20 lwz r11,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f2d0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0f2d4: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f2d8: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0f2dc: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0f2e0: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc0f2e4: 40 be 00 10 bne+ cr7,ffc0f2f4 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0f2e8: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f2ec: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f2f0: 48 00 05 e1 bl ffc0f8d0 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc0f2f4: 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 ++; ffc0f2f8: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f2fc: 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 ++; ffc0f300: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f304: 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 ++; ffc0f308: 90 1f 00 24 stw r0,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0f30c: 91 3f 00 14 stw r9,20(r31) <== NOT EXECUTED ffc0f310: 40 be 00 10 bne+ cr7,ffc0f320 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0f314: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f318: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f31c: 48 00 05 b5 bl ffc0f8d0 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); ffc0f320: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f324: 4b ff 8b cd bl ffc07ef0 <== NOT EXECUTED return 0; ffc0f328: 48 00 00 14 b ffc0f33c <== NOT EXECUTED ffc0f32c: 3b a0 ff fc li r29,-4 <== NOT EXECUTED out_error: pipe_release(pipep, iop); ffc0f330: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0f334: 7f 64 db 78 mr r4,r27 <== NOT EXECUTED ffc0f338: 4b ff fb 79 bl ffc0eeb0 <== NOT EXECUTED return err; } ffc0f33c: 80 01 00 34 lwz r0,52(r1) ffc0f340: 7f a3 eb 78 mr r3,r29 ffc0f344: 83 61 00 1c lwz r27,28(r1) ffc0f348: 7c 08 03 a6 mtlr r0 ffc0f34c: 83 81 00 20 lwz r28,32(r1) ffc0f350: 83 a1 00 24 lwz r29,36(r1) ffc0f354: 83 c1 00 28 lwz r30,40(r1) ffc0f358: 83 e1 00 2c lwz r31,44(r1) ffc0f35c: 38 21 00 30 addi r1,r1,48 ffc0f360: 4e 80 00 20 blr ffc0c020 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0c020: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0c024: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc0c028: 81 29 33 c8 lwz r9,13256(r9) <== NOT EXECUTED ffc0c02c: 38 0b 33 cc addi r0,r11,13260 <== NOT EXECUTED ffc0c030: 48 00 00 20 b ffc0c050 <== 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 ) { ffc0c034: 81 49 00 18 lwz r10,24(r9) <== NOT EXECUTED ffc0c038: 81 64 00 10 lwz r11,16(r4) <== NOT EXECUTED ffc0c03c: 7f 8a 58 00 cmpw cr7,r10,r11 <== NOT EXECUTED ffc0c040: 40 be 00 0c bne+ cr7,ffc0c04c <== NOT EXECUTED ffc0c044: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0c048: 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 ) { ffc0c04c: 81 29 00 00 lwz r9,0(r9) <== NOT EXECUTED ffc0c050: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0c054: 40 9e ff e0 bne+ cr7,ffc0c034 <== NOT EXECUTED ffc0c058: 38 60 00 00 li r3,0 <== NOT EXECUTED return true; } } return false; } ffc0c05c: 4e 80 00 20 blr <== NOT EXECUTED ffc058c4 : long fpathconf( int fd, int name ) { ffc058c4: 7c 08 02 a6 mflr r0 ffc058c8: 94 21 ff f8 stwu r1,-8(r1) long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); ffc058cc: 3d 20 00 00 lis r9,0 long fpathconf( int fd, int name ) { ffc058d0: 90 01 00 0c stw r0,12(r1) long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); ffc058d4: 80 09 26 4c lwz r0,9804(r9) ffc058d8: 7f 83 00 40 cmplw cr7,r3,r0 ffc058dc: 40 9c 00 20 bge- cr7,ffc058fc iop = rtems_libio_iop(fd); ffc058e0: 3d 20 00 00 lis r9,0 ffc058e4: 80 09 27 0c lwz r0,9996(r9) ffc058e8: 1c 63 00 48 mulli r3,r3,72 ffc058ec: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc058f0: 80 03 00 18 lwz r0,24(r3) ffc058f4: 70 09 01 00 andi. r9,r0,256 ffc058f8: 40 a2 00 10 bne+ ffc05908 <== ALWAYS TAKEN ffc058fc: 48 00 de d1 bl ffc137cc <__errno> ffc05900: 38 00 00 09 li r0,9 ffc05904: 48 00 00 9c b ffc059a0 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); ffc05908: 70 09 00 02 andi. r9,r0,2 ffc0590c: 41 82 00 8c beq- ffc05998 <== NEVER TAKEN * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { ffc05910: 2b 84 00 0b cmplwi cr7,r4,11 /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; ffc05914: 81 23 00 2c lwz r9,44(r3) switch ( name ) { ffc05918: 41 9d 00 80 bgt- cr7,ffc05998 ffc0591c: 3d 60 ff c2 lis r11,-62 ffc05920: 39 6b 10 cc addi r11,r11,4300 ffc05924: 54 84 10 3a rlwinm r4,r4,2,0,29 ffc05928: 7c 0b 20 2e lwzx r0,r11,r4 ffc0592c: 7d 60 5a 14 add r11,r0,r11 ffc05930: 7d 69 03 a6 mtctr r11 ffc05934: 4e 80 04 20 bctr case _PC_LINK_MAX: return_value = the_limits->link_max; ffc05938: 80 69 00 38 lwz r3,56(r9) break; ffc0593c: 48 00 00 6c b ffc059a8 case _PC_MAX_CANON: return_value = the_limits->max_canon; ffc05940: 80 69 00 3c lwz r3,60(r9) break; ffc05944: 48 00 00 64 b ffc059a8 case _PC_MAX_INPUT: return_value = the_limits->max_input; ffc05948: 80 69 00 40 lwz r3,64(r9) break; ffc0594c: 48 00 00 5c b ffc059a8 case _PC_NAME_MAX: return_value = the_limits->name_max; ffc05950: 80 69 00 44 lwz r3,68(r9) break; ffc05954: 48 00 00 54 b ffc059a8 case _PC_PATH_MAX: return_value = the_limits->path_max; ffc05958: 80 69 00 48 lwz r3,72(r9) break; ffc0595c: 48 00 00 4c b ffc059a8 case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; ffc05960: 80 69 00 4c lwz r3,76(r9) break; ffc05964: 48 00 00 44 b ffc059a8 case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; ffc05968: 80 69 00 54 lwz r3,84(r9) break; ffc0596c: 48 00 00 3c b ffc059a8 case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; ffc05970: 80 69 00 58 lwz r3,88(r9) break; ffc05974: 48 00 00 34 b ffc059a8 case _PC_VDISABLE: return_value = the_limits->posix_vdisable; ffc05978: 80 69 00 64 lwz r3,100(r9) break; ffc0597c: 48 00 00 2c b ffc059a8 case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; ffc05980: 80 69 00 50 lwz r3,80(r9) break; ffc05984: 48 00 00 24 b ffc059a8 case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; ffc05988: 80 69 00 5c lwz r3,92(r9) break; ffc0598c: 48 00 00 1c b ffc059a8 case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; ffc05990: 80 69 00 60 lwz r3,96(r9) break; ffc05994: 48 00 00 14 b ffc059a8 default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc05998: 48 00 de 35 bl ffc137cc <__errno> ffc0599c: 38 00 00 16 li r0,22 ffc059a0: 90 03 00 00 stw r0,0(r3) ffc059a4: 38 60 ff ff li r3,-1 break; } return return_value; } ffc059a8: 80 01 00 0c lwz r0,12(r1) ffc059ac: 38 21 00 08 addi r1,r1,8 ffc059b0: 7c 08 03 a6 mtlr r0 ffc059b4: 4e 80 00 20 blr 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 <== NEVER TAKEN ffc04284: 48 00 01 59 bl ffc043dc ffc04288: 2f 83 00 00 cmpwi cr7,r3,0 ffc0428c: 40 be 00 10 bne+ cr7,ffc0429c <== ALWAYS TAKEN !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 <== ALWAYS TAKEN (*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 7d bl ffc09d44 <_Protected_heap_Free> ffc042cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc042d0: 40 be 00 24 bne+ cr7,ffc042f4 <== ALWAYS TAKEN 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 69 addi r3,r3,-14231 <== NOT EXECUTED ffc042e0: 80 c9 00 1c lwz r6,28(r9) <== NOT EXECUTED ffc042e4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc042e8: 80 a9 00 18 lwz r5,24(r9) <== NOT EXECUTED ffc042ec: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc042f0: 48 00 0f 2d bl ffc0521c <== 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 ffc05f2c : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { ffc05f2c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc05f30: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env ffc05f34: 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) { ffc05f38: 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 ffc05f3c: 38 09 2a 84 addi r0,r9,10884 <== NOT EXECUTED ffc05f40: 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) { ffc05f44: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc05f48: 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 ffc05f4c: 41 9e 00 54 beq- cr7,ffc05fa0 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); ffc05f50: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc05f54: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05f58: 41 9e 00 1c beq- cr7,ffc05f74 <== NOT EXECUTED ffc05f5c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc05f60: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05f64: 41 9e 00 10 beq- cr7,ffc05f74 <== NOT EXECUTED ffc05f68: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED ffc05f6c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05f70: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); ffc05f74: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc05f78: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05f7c: 41 9e 00 1c beq- cr7,ffc05f98 <== NOT EXECUTED ffc05f80: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc05f84: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05f88: 41 9e 00 10 beq- cr7,ffc05f98 <== NOT EXECUTED ffc05f8c: 38 7f 00 18 addi r3,r31,24 <== NOT EXECUTED ffc05f90: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05f94: 4e 80 04 21 bctrl <== NOT EXECUTED free(env); ffc05f98: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05f9c: 4b ff eb 65 bl ffc04b00 <== NOT EXECUTED } } ffc05fa0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc05fa4: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc05fa8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc05fac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05fb0: 4e 80 00 20 blr <== NOT EXECUTED ffc1b080 : int fstat( int fd, struct stat *sbuf ) { ffc1b080: 94 21 ff f0 stwu r1,-16(r1) ffc1b084: 7c 08 02 a6 mflr r0 ffc1b088: 93 c1 00 08 stw r30,8(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1b08c: 7c 9e 23 79 mr. r30,r4 int fstat( int fd, struct stat *sbuf ) { ffc1b090: 90 01 00 14 stw r0,20(r1) ffc1b094: 93 e1 00 0c stw r31,12(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1b098: 40 a2 00 10 bne+ ffc1b0a8 rtems_set_errno_and_return_minus_one( EFAULT ); ffc1b09c: 4b ff 55 4d bl ffc105e8 <__errno> ffc1b0a0: 38 00 00 0e li r0,14 ffc1b0a4: 48 00 00 38 b ffc1b0dc /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); ffc1b0a8: 3d 20 00 00 lis r9,0 ffc1b0ac: 80 09 26 4c lwz r0,9804(r9) ffc1b0b0: 7f 83 00 40 cmplw cr7,r3,r0 ffc1b0b4: 40 9c 00 20 bge- cr7,ffc1b0d4 ffc1b0b8: 3d 20 00 00 lis r9,0 ffc1b0bc: 83 e9 27 08 lwz r31,9992(r9) ffc1b0c0: 1c 63 00 48 mulli r3,r3,72 ffc1b0c4: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); ffc1b0c8: 80 1f 00 18 lwz r0,24(r31) ffc1b0cc: 70 09 01 00 andi. r9,r0,256 ffc1b0d0: 40 a2 00 18 bne+ ffc1b0e8 <== ALWAYS TAKEN /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); ffc1b0d4: 4b ff 55 15 bl ffc105e8 <__errno> ffc1b0d8: 38 00 00 09 li r0,9 ffc1b0dc: 90 03 00 00 stw r0,0(r3) ffc1b0e0: 38 60 ff ff li r3,-1 ffc1b0e4: 48 00 00 50 b ffc1b134 rtems_libio_check_is_open(iop); if ( !iop->handlers ) ffc1b0e8: 81 3f 00 40 lwz r9,64(r31) ffc1b0ec: 2f 89 00 00 cmpwi cr7,r9,0 ffc1b0f0: 41 be ff e4 beq- cr7,ffc1b0d4 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) ffc1b0f4: 80 09 00 18 lwz r0,24(r9) ffc1b0f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b0fc: 40 be 00 10 bne+ cr7,ffc1b10c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1b100: 4b ff 54 e9 bl ffc105e8 <__errno> <== NOT EXECUTED ffc1b104: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1b108: 4b ff ff d4 b ffc1b0dc <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); ffc1b10c: 38 80 00 00 li r4,0 ffc1b110: 38 a0 00 48 li r5,72 ffc1b114: 7f c3 f3 78 mr r3,r30 ffc1b118: 4b ff 61 b9 bl ffc112d0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); ffc1b11c: 81 3f 00 40 lwz r9,64(r31) ffc1b120: 38 7f 00 1c addi r3,r31,28 ffc1b124: 80 09 00 18 lwz r0,24(r9) ffc1b128: 7f c4 f3 78 mr r4,r30 ffc1b12c: 7c 09 03 a6 mtctr r0 ffc1b130: 4e 80 04 21 bctrl } ffc1b134: 80 01 00 14 lwz r0,20(r1) ffc1b138: 83 c1 00 08 lwz r30,8(r1) ffc1b13c: 7c 08 03 a6 mtlr r0 ffc1b140: 83 e1 00 0c lwz r31,12(r1) ffc1b144: 38 21 00 10 addi r1,r1,16 ffc1b148: 4e 80 00 20 blr ffc05b58 : #include int fsync( int fd ) { ffc05b58: 7c 08 02 a6 mflr r0 ffc05b5c: 94 21 ff f8 stwu r1,-8(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc05b60: 3d 20 00 00 lis r9,0 #include int fsync( int fd ) { ffc05b64: 90 01 00 0c stw r0,12(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc05b68: 80 09 26 4c lwz r0,9804(r9) ffc05b6c: 7f 83 00 40 cmplw cr7,r3,r0 ffc05b70: 40 9c 00 40 bge- cr7,ffc05bb0 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc05b74: 3d 20 00 00 lis r9,0 ffc05b78: 80 09 27 0c lwz r0,9996(r9) ffc05b7c: 1c 63 00 48 mulli r3,r3,72 ffc05b80: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc05b84: 80 03 00 18 lwz r0,24(r3) ffc05b88: 70 09 01 00 andi. r9,r0,256 ffc05b8c: 41 82 00 24 beq- ffc05bb0 <== NEVER TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc05b90: 70 09 00 04 andi. r9,r0,4 ffc05b94: 40 a2 00 10 bne+ ffc05ba4 ffc05b98: 48 00 dc 35 bl ffc137cc <__errno> ffc05b9c: 38 00 00 16 li r0,22 ffc05ba0: 48 00 00 30 b ffc05bd0 /* * Now process the fsync(). */ if ( !iop->handlers ) ffc05ba4: 81 23 00 40 lwz r9,64(r3) ffc05ba8: 2f 89 00 00 cmpwi cr7,r9,0 ffc05bac: 40 be 00 10 bne+ cr7,ffc05bbc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); ffc05bb0: 48 00 dc 1d bl ffc137cc <__errno> <== NOT EXECUTED ffc05bb4: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc05bb8: 48 00 00 18 b ffc05bd0 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) ffc05bbc: 80 09 00 28 lwz r0,40(r9) ffc05bc0: 2f 80 00 00 cmpwi cr7,r0,0 ffc05bc4: 40 be 00 18 bne+ cr7,ffc05bdc rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc05bc8: 48 00 dc 05 bl ffc137cc <__errno> ffc05bcc: 38 00 00 86 li r0,134 ffc05bd0: 90 03 00 00 stw r0,0(r3) ffc05bd4: 38 60 ff ff li r3,-1 ffc05bd8: 48 00 00 0c b ffc05be4 return (*iop->handlers->fsync_h)( iop ); ffc05bdc: 7c 09 03 a6 mtctr r0 ffc05be0: 4e 80 04 21 bctrl } ffc05be4: 80 01 00 0c lwz r0,12(r1) ffc05be8: 38 21 00 08 addi r1,r1,8 ffc05bec: 7c 08 03 a6 mtlr r0 ffc05bf0: 4e 80 00 20 blr ffc0d0ac : int ftruncate( int fd, off_t length ) { ffc0d0ac: 94 21 ff c8 stwu r1,-56(r1) ffc0d0b0: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d0b4: 3d 20 00 00 lis r9,0 int ftruncate( int fd, off_t length ) { ffc0d0b8: 90 01 00 3c stw r0,60(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d0bc: 80 09 26 4c lwz r0,9804(r9) int ftruncate( int fd, off_t length ) { ffc0d0c0: 93 a1 00 2c stw r29,44(r1) ffc0d0c4: 7c bd 2b 78 mr r29,r5 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d0c8: 7f 83 00 40 cmplw cr7,r3,r0 int ftruncate( int fd, off_t length ) { ffc0d0cc: 93 c1 00 30 stw r30,48(r1) ffc0d0d0: 7c de 33 78 mr r30,r6 ffc0d0d4: 93 e1 00 34 stw r31,52(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d0d8: 40 9c 00 20 bge- cr7,ffc0d0f8 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc0d0dc: 3d 20 00 00 lis r9,0 ffc0d0e0: 83 e9 27 08 lwz r31,9992(r9) ffc0d0e4: 1c 63 00 48 mulli r3,r3,72 ffc0d0e8: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc0d0ec: 80 1f 00 18 lwz r0,24(r31) ffc0d0f0: 70 09 01 00 andi. r9,r0,256 ffc0d0f4: 40 a2 00 10 bne+ ffc0d104 <== ALWAYS TAKEN ffc0d0f8: 48 00 34 f1 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0d0fc: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc0d100: 48 00 00 88 b ffc0d188 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d104: 81 3f 00 28 lwz r9,40(r31) ffc0d108: 81 1f 00 1c lwz r8,28(r31) if ( !loc.ops->node_type_h ) ffc0d10c: 80 09 00 10 lwz r0,16(r9) /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d110: 81 5f 00 20 lwz r10,32(r31) ffc0d114: 81 7f 00 24 lwz r11,36(r31) if ( !loc.ops->node_type_h ) ffc0d118: 2f 80 00 00 cmpwi cr7,r0,0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d11c: 91 01 00 08 stw r8,8(r1) ffc0d120: 91 41 00 0c stw r10,12(r1) ffc0d124: 91 61 00 10 stw r11,16(r1) ffc0d128: 91 21 00 14 stw r9,20(r1) ffc0d12c: 81 3f 00 2c lwz r9,44(r31) ffc0d130: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc0d134: 41 9e 00 4c beq- cr7,ffc0d180 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) ffc0d138: 38 61 00 08 addi r3,r1,8 ffc0d13c: 7c 09 03 a6 mtctr r0 ffc0d140: 4e 80 04 21 bctrl ffc0d144: 2f 83 00 01 cmpwi cr7,r3,1 ffc0d148: 40 be 00 10 bne+ cr7,ffc0d158 rtems_set_errno_and_return_minus_one( EISDIR ); ffc0d14c: 48 00 34 9d bl ffc105e8 <__errno> ffc0d150: 38 00 00 15 li r0,21 ffc0d154: 48 00 00 34 b ffc0d188 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc0d158: 80 1f 00 18 lwz r0,24(r31) ffc0d15c: 70 09 00 04 andi. r9,r0,4 ffc0d160: 40 a2 00 10 bne+ ffc0d170 <== ALWAYS TAKEN ffc0d164: 48 00 34 85 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0d168: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0d16c: 48 00 00 1c b ffc0d188 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) ffc0d170: 81 3f 00 40 lwz r9,64(r31) ffc0d174: 80 09 00 20 lwz r0,32(r9) ffc0d178: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d17c: 40 be 00 18 bne+ cr7,ffc0d194 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0d180: 48 00 34 69 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0d184: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0d188: 90 03 00 00 stw r0,0(r3) ffc0d18c: 38 60 ff ff li r3,-1 ffc0d190: 48 00 00 18 b ffc0d1a8 return (*iop->handlers->ftruncate_h)( iop, length ); ffc0d194: 7f e3 fb 78 mr r3,r31 ffc0d198: 7c 09 03 a6 mtctr r0 ffc0d19c: 7f a5 eb 78 mr r5,r29 ffc0d1a0: 7f c6 f3 78 mr r6,r30 ffc0d1a4: 4e 80 04 21 bctrl } ffc0d1a8: 80 01 00 3c lwz r0,60(r1) ffc0d1ac: 83 a1 00 2c lwz r29,44(r1) ffc0d1b0: 7c 08 03 a6 mtlr r0 ffc0d1b4: 83 c1 00 30 lwz r30,48(r1) ffc0d1b8: 83 e1 00 34 lwz r31,52(r1) ffc0d1bc: 38 21 00 38 addi r1,r1,56 ffc0d1c0: 4e 80 00 20 blr ffc1f844 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc1f844: 94 21 ff c8 stwu r1,-56(r1) ffc1f848: 7c 08 02 a6 mflr r0 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc1f84c: 3d 20 00 00 lis r9,0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc1f850: 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 ); ffc1f854: 80 09 26 cc lwz r0,9932(r9) int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc1f858: 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 ); ffc1f85c: 3b e0 00 00 li r31,0 ffc1f860: 7f 83 00 40 cmplw cr7,r3,r0 ffc1f864: 40 9c 00 14 bge- cr7,ffc1f878 <== NEVER TAKEN ffc1f868: 3d 60 00 00 lis r11,0 ffc1f86c: 1d 23 00 48 mulli r9,r3,72 ffc1f870: 83 eb 27 98 lwz r31,10136(r11) ffc1f874: 7f ff 4a 14 add r31,r31,r9 /* * Make sure we are working on a directory */ loc = iop->pathinfo; ffc1f878: 81 3f 00 28 lwz r9,40(r31) ffc1f87c: 81 1f 00 1c lwz r8,28(r31) if ( !loc.ops->node_type_h ) ffc1f880: 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; ffc1f884: 81 5f 00 20 lwz r10,32(r31) ffc1f888: 81 7f 00 24 lwz r11,36(r31) if ( !loc.ops->node_type_h ) ffc1f88c: 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; ffc1f890: 91 01 00 08 stw r8,8(r1) ffc1f894: 91 41 00 0c stw r10,12(r1) ffc1f898: 91 61 00 10 stw r11,16(r1) ffc1f89c: 91 21 00 14 stw r9,20(r1) ffc1f8a0: 81 3f 00 2c lwz r9,44(r31) ffc1f8a4: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc1f8a8: 41 9e 00 4c beq- cr7,ffc1f8f4 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) ffc1f8ac: 90 81 00 28 stw r4,40(r1) ffc1f8b0: 38 61 00 08 addi r3,r1,8 ffc1f8b4: 7c 09 03 a6 mtctr r0 ffc1f8b8: 90 a1 00 2c stw r5,44(r1) ffc1f8bc: 4e 80 04 21 bctrl ffc1f8c0: 80 81 00 28 lwz r4,40(r1) ffc1f8c4: 2f 83 00 01 cmpwi cr7,r3,1 ffc1f8c8: 80 a1 00 2c lwz r5,44(r1) ffc1f8cc: 41 be 00 18 beq+ cr7,ffc1f8e4 rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc1f8d0: 4b ff 3d 39 bl ffc13608 <__errno> ffc1f8d4: 38 00 00 14 li r0,20 ffc1f8d8: 90 03 00 00 stw r0,0(r3) ffc1f8dc: 38 60 ff ff li r3,-1 ffc1f8e0: 48 00 00 2c b ffc1f90c /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) ffc1f8e4: 81 3f 00 40 lwz r9,64(r31) ffc1f8e8: 80 09 00 08 lwz r0,8(r9) ffc1f8ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc1f8f0: 40 be 00 10 bne+ cr7,ffc1f900 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1f8f4: 4b ff 3d 15 bl ffc13608 <__errno> <== NOT EXECUTED ffc1f8f8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1f8fc: 4b ff ff dc b ffc1f8d8 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); ffc1f900: 7f e3 fb 78 mr r3,r31 ffc1f904: 7c 09 03 a6 mtctr r0 ffc1f908: 4e 80 04 21 bctrl } ffc1f90c: 80 01 00 3c lwz r0,60(r1) ffc1f910: 83 e1 00 34 lwz r31,52(r1) ffc1f914: 38 21 00 38 addi r1,r1,56 ffc1f918: 7c 08 03 a6 mtlr r0 ffc1f91c: 4e 80 00 20 blr ffc05364 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc05364: 94 21 ff d8 stwu r1,-40(r1) ffc05368: 7d 80 00 26 mfcr r12 ffc0536c: 7c 08 02 a6 mflr r0 ffc05370: 93 21 00 0c stw r25,12(r1) ffc05374: 7d 19 43 78 mr r25,r8 ffc05378: 90 01 00 2c stw r0,44(r1) ffc0537c: 93 41 00 10 stw r26,16(r1) ffc05380: 93 61 00 14 stw r27,20(r1) ffc05384: 7c fb 3b 78 mr r27,r7 ffc05388: 93 81 00 18 stw r28,24(r1) ffc0538c: 7c dc 33 78 mr r28,r6 ffc05390: 93 a1 00 1c stw r29,28(r1) ffc05394: 7c 9d 23 78 mr r29,r4 ffc05398: 93 c1 00 20 stw r30,32(r1) ffc0539c: 7c 7e 1b 78 mr r30,r3 ffc053a0: 93 e1 00 24 stw r31,36(r1) ffc053a4: 7c bf 2b 78 mr r31,r5 ffc053a8: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc053ac: 4b ff fe 79 bl ffc05224 if ((fp = fopen("/etc/group", "r")) == NULL) { ffc053b0: 3c 60 ff c2 lis r3,-62 ffc053b4: 3c 80 ff c2 lis r4,-62 ffc053b8: 38 63 07 a7 addi r3,r3,1959 ffc053bc: 38 84 ff d4 addi r4,r4,-44 ffc053c0: 48 00 e5 e9 bl ffc139a8 ffc053c4: 7c 7a 1b 79 mr. r26,r3 ffc053c8: 40 a2 00 14 bne+ ffc053dc <== ALWAYS TAKEN errno = EINVAL; ffc053cc: 48 00 db 01 bl ffc12ecc <__errno> <== NOT EXECUTED ffc053d0: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc053d4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc053d8: 48 00 00 3c b ffc05414 <== NOT EXECUTED if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc053dc: 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)) { ffc053e0: 7f e4 fb 78 mr r4,r31 ffc053e4: 7f 85 e3 78 mr r5,r28 ffc053e8: 7f 66 db 78 mr r6,r27 ffc053ec: 7f 43 d3 78 mr r3,r26 ffc053f0: 4b ff fa b9 bl ffc04ea8 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); ffc053f4: 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)) { ffc053f8: 2f 83 00 00 cmpwi cr7,r3,0 ffc053fc: 40 be 00 20 bne+ cr7,ffc0541c <== ALWAYS TAKEN errno = EINVAL; ffc05400: 48 00 da cd bl ffc12ecc <__errno> <== NOT EXECUTED ffc05404: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05408: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc0540c: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc05410: 48 00 dc 5d bl ffc1306c <== NOT EXECUTED ffc05414: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc05418: 48 00 00 3c b ffc05454 <== NOT EXECUTED } if (name) { ffc0541c: 41 92 00 10 beq- cr4,ffc0542c <== NEVER TAKEN match = (strcmp(grp->gr_name, name) == 0); ffc05420: 80 7f 00 00 lwz r3,0(r31) ffc05424: 48 01 00 11 bl ffc15434 ffc05428: 48 00 00 0c b ffc05434 } else { match = (grp->gr_gid == gid); ffc0542c: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc05430: 7c 63 ea 78 xor r3,r3,r29 <== NOT EXECUTED ffc05434: 7c 63 00 34 cntlzw r3,r3 ffc05438: 54 63 d9 7e rlwinm r3,r3,27,5,31 } if (match) { ffc0543c: 2f 83 00 00 cmpwi cr7,r3,0 ffc05440: 41 9e ff a0 beq+ cr7,ffc053e0 fclose(fp); ffc05444: 7f 43 d3 78 mr r3,r26 ffc05448: 48 00 dc 25 bl ffc1306c *result = grp; ffc0544c: 93 f9 00 00 stw r31,0(r25) ffc05450: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc05454: 80 01 00 2c lwz r0,44(r1) ffc05458: 81 81 00 08 lwz r12,8(r1) ffc0545c: 7c 08 03 a6 mtlr r0 ffc05460: 83 21 00 0c lwz r25,12(r1) ffc05464: 83 41 00 10 lwz r26,16(r1) ffc05468: 7d 80 81 20 mtcrf 8,r12 ffc0546c: 83 61 00 14 lwz r27,20(r1) ffc05470: 83 81 00 18 lwz r28,24(r1) ffc05474: 83 a1 00 1c lwz r29,28(r1) ffc05478: 83 c1 00 20 lwz r30,32(r1) ffc0547c: 83 e1 00 24 lwz r31,36(r1) ffc05480: 38 21 00 28 addi r1,r1,40 ffc05484: 4e 80 00 20 blr ffc0501c : return p; } struct group *getgrent(void) { if (group_fp == NULL) ffc0501c: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc05020: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc05024: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp == NULL) ffc05028: 80 65 28 14 lwz r3,10260(r5) <== NOT EXECUTED ffc0502c: 38 a5 28 14 addi r5,r5,10260 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc05030: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (group_fp == NULL) ffc05034: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc05038: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (group_fp == NULL) ffc0503c: 41 be 00 24 beq+ cr7,ffc05060 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) ffc05040: 3b e5 00 08 addi r31,r5,8 <== NOT EXECUTED ffc05044: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05048: 38 a5 00 18 addi r5,r5,24 <== NOT EXECUTED ffc0504c: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc05050: 4b ff fe 59 bl ffc04ea8 <== NOT EXECUTED ffc05054: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc05058: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0505c: 40 be 00 08 bne+ cr7,ffc05064 <== NOT EXECUTED ffc05060: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &grent; } ffc05064: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc05068: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0506c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc05070: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05074: 4e 80 00 20 blr <== NOT EXECUTED ffc054b0 : } struct group *getgrgid( gid_t gid ) { ffc054b0: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc054b4: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc054b8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc054bc: 38 84 28 14 addi r4,r4,10260 <== NOT EXECUTED ffc054c0: 38 a4 00 18 addi r5,r4,24 <== NOT EXECUTED ffc054c4: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc054c8: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc054cc: 38 84 00 08 addi r4,r4,8 <== NOT EXECUTED ffc054d0: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc054d4: 4b ff ff b5 bl ffc05488 <== NOT EXECUTED ffc054d8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc054dc: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc054e0: 40 9e 00 08 bne- cr7,ffc054e8 <== NOT EXECUTED return NULL; return p; ffc054e4: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc054e8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc054ec: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc054f0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc054f4: 4e 80 00 20 blr <== NOT EXECUTED ffc05488 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc05488: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc0548c: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc05490: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc05494: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); ffc05498: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc0549c: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc054a0: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc054a4: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc054a8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc054ac: 4b ff fe b8 b ffc05364 <== NOT EXECUTED ffc05518 : } struct group *getgrnam( const char *name ) { ffc05518: 94 21 ff e8 stwu r1,-24(r1) struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc0551c: 3c 80 00 00 lis r4,0 } struct group *getgrnam( const char *name ) { ffc05520: 7c 08 02 a6 mflr r0 struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc05524: 38 84 28 14 addi r4,r4,10260 ffc05528: 38 a4 00 18 addi r5,r4,24 ffc0552c: 38 c0 00 c8 li r6,200 } struct group *getgrnam( const char *name ) { ffc05530: 90 01 00 1c stw r0,28(r1) struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc05534: 38 84 00 08 addi r4,r4,8 ffc05538: 38 e1 00 08 addi r7,r1,8 ffc0553c: 4b ff ff bd bl ffc054f8 ffc05540: 2f 83 00 00 cmpwi cr7,r3,0 ffc05544: 38 60 00 00 li r3,0 ffc05548: 40 9e 00 08 bne- cr7,ffc05550 <== NEVER TAKEN return NULL; return p; ffc0554c: 80 61 00 08 lwz r3,8(r1) } ffc05550: 80 01 00 1c lwz r0,28(r1) ffc05554: 38 21 00 18 addi r1,r1,24 ffc05558: 7c 08 03 a6 mtlr r0 ffc0555c: 4e 80 00 20 blr ffc26c98 : */ pid_t getpid( void ) { return _Objects_Local_node; } ffc26c98: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc26c9c: 4e 80 00 20 blr <== NOT EXECUTED ffc055b0 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc055b0: 94 21 ff d8 stwu r1,-40(r1) ffc055b4: 7d 80 00 26 mfcr r12 ffc055b8: 7c 08 02 a6 mflr r0 ffc055bc: 93 21 00 0c stw r25,12(r1) ffc055c0: 7d 19 43 78 mr r25,r8 ffc055c4: 90 01 00 2c stw r0,44(r1) ffc055c8: 93 41 00 10 stw r26,16(r1) ffc055cc: 93 61 00 14 stw r27,20(r1) ffc055d0: 7c fb 3b 78 mr r27,r7 ffc055d4: 93 81 00 18 stw r28,24(r1) ffc055d8: 7c dc 33 78 mr r28,r6 ffc055dc: 93 a1 00 1c stw r29,28(r1) ffc055e0: 7c 9d 23 78 mr r29,r4 ffc055e4: 93 c1 00 20 stw r30,32(r1) ffc055e8: 7c 7e 1b 78 mr r30,r3 ffc055ec: 93 e1 00 24 stw r31,36(r1) ffc055f0: 7c bf 2b 78 mr r31,r5 ffc055f4: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc055f8: 4b ff fc 2d bl ffc05224 if ((fp = fopen("/etc/passwd", "r")) == NULL) { ffc055fc: 3c 60 ff c2 lis r3,-62 ffc05600: 3c 80 ff c2 lis r4,-62 ffc05604: 38 63 07 34 addi r3,r3,1844 ffc05608: 38 84 ff d4 addi r4,r4,-44 ffc0560c: 48 00 e3 9d bl ffc139a8 ffc05610: 7c 7a 1b 79 mr. r26,r3 ffc05614: 40 a2 00 14 bne+ ffc05628 <== ALWAYS TAKEN errno = EINVAL; ffc05618: 48 00 d8 b5 bl ffc12ecc <__errno> <== NOT EXECUTED ffc0561c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05620: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05624: 48 00 00 3c b ffc05660 <== NOT EXECUTED if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc05628: 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)) { ffc0562c: 7f e4 fb 78 mr r4,r31 ffc05630: 7f 85 e3 78 mr r5,r28 ffc05634: 7f 66 db 78 mr r6,r27 ffc05638: 7f 43 d3 78 mr r3,r26 ffc0563c: 4b ff fa 3d bl ffc05078 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); ffc05640: 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)) { ffc05644: 2f 83 00 00 cmpwi cr7,r3,0 ffc05648: 40 be 00 20 bne+ cr7,ffc05668 <== ALWAYS TAKEN errno = EINVAL; ffc0564c: 48 00 d8 81 bl ffc12ecc <__errno> <== NOT EXECUTED ffc05650: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05654: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc05658: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc0565c: 48 00 da 11 bl ffc1306c <== NOT EXECUTED ffc05660: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc05664: 48 00 00 3c b ffc056a0 <== NOT EXECUTED } if (name) { ffc05668: 41 92 00 10 beq- cr4,ffc05678 <== NEVER TAKEN match = (strcmp(pwd->pw_name, name) == 0); ffc0566c: 80 7f 00 00 lwz r3,0(r31) ffc05670: 48 00 fd c5 bl ffc15434 ffc05674: 48 00 00 0c b ffc05680 } else { match = (pwd->pw_uid == uid); ffc05678: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc0567c: 7c 63 ea 78 xor r3,r3,r29 <== NOT EXECUTED ffc05680: 7c 63 00 34 cntlzw r3,r3 ffc05684: 54 63 d9 7e rlwinm r3,r3,27,5,31 } if (match) { ffc05688: 2f 83 00 00 cmpwi cr7,r3,0 ffc0568c: 41 9e ff a0 beq+ cr7,ffc0562c fclose(fp); ffc05690: 7f 43 d3 78 mr r3,r26 ffc05694: 48 00 d9 d9 bl ffc1306c *result = pwd; ffc05698: 93 f9 00 00 stw r31,0(r25) ffc0569c: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc056a0: 80 01 00 2c lwz r0,44(r1) ffc056a4: 81 81 00 08 lwz r12,8(r1) ffc056a8: 7c 08 03 a6 mtlr r0 ffc056ac: 83 21 00 0c lwz r25,12(r1) ffc056b0: 83 41 00 10 lwz r26,16(r1) ffc056b4: 7d 80 81 20 mtcrf 8,r12 ffc056b8: 83 61 00 14 lwz r27,20(r1) ffc056bc: 83 81 00 18 lwz r28,24(r1) ffc056c0: 83 a1 00 1c lwz r29,28(r1) ffc056c4: 83 c1 00 20 lwz r30,32(r1) ffc056c8: 83 e1 00 24 lwz r31,36(r1) ffc056cc: 38 21 00 28 addi r1,r1,40 ffc056d0: 4e 80 00 20 blr ffc051c8 : return NULL; return p; } struct passwd *getpwent(void) { ffc051c8: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc051cc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp == NULL) ffc051d0: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc051d4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc051d8: 38 a5 28 14 addi r5,r5,10260 <== NOT EXECUTED ffc051dc: 80 65 00 04 lwz r3,4(r5) <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc051e0: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc051e4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc051e8: 41 be 00 24 beq+ cr7,ffc0520c <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) ffc051ec: 3b e5 00 e0 addi r31,r5,224 <== NOT EXECUTED ffc051f0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc051f4: 38 a5 00 fc addi r5,r5,252 <== NOT EXECUTED ffc051f8: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc051fc: 4b ff fe 7d bl ffc05078 <== NOT EXECUTED ffc05200: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc05204: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05208: 40 be 00 08 bne+ cr7,ffc05210 <== NOT EXECUTED ffc0520c: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &pwent; } ffc05210: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc05214: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc05218: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0521c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05220: 4e 80 00 20 blr <== NOT EXECUTED ffc05764 : } struct passwd *getpwnam( const char *name ) { ffc05764: 94 21 ff e8 stwu r1,-24(r1) struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc05768: 3c 80 00 00 lis r4,0 } struct passwd *getpwnam( const char *name ) { ffc0576c: 7c 08 02 a6 mflr r0 struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc05770: 38 84 28 14 addi r4,r4,10260 ffc05774: 38 a4 00 fc addi r5,r4,252 ffc05778: 38 c0 00 c8 li r6,200 } struct passwd *getpwnam( const char *name ) { ffc0577c: 90 01 00 1c stw r0,28(r1) struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc05780: 38 84 00 e0 addi r4,r4,224 ffc05784: 38 e1 00 08 addi r7,r1,8 ffc05788: 4b ff ff bd bl ffc05744 ffc0578c: 2f 83 00 00 cmpwi cr7,r3,0 ffc05790: 38 60 00 00 li r3,0 ffc05794: 40 9e 00 08 bne- cr7,ffc0579c <== NEVER TAKEN return NULL; return p; ffc05798: 80 61 00 08 lwz r3,8(r1) } ffc0579c: 80 01 00 1c lwz r0,28(r1) ffc057a0: 38 21 00 18 addi r1,r1,24 ffc057a4: 7c 08 03 a6 mtlr r0 ffc057a8: 4e 80 00 20 blr ffc056fc : } struct passwd *getpwuid( uid_t uid ) { ffc056fc: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc05700: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc05704: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc05708: 38 84 28 14 addi r4,r4,10260 <== NOT EXECUTED ffc0570c: 38 a4 00 fc addi r5,r4,252 <== NOT EXECUTED ffc05710: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc05714: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc05718: 38 84 00 e0 addi r4,r4,224 <== NOT EXECUTED ffc0571c: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc05720: 4b ff ff b5 bl ffc056d4 <== NOT EXECUTED ffc05724: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc05728: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0572c: 40 9e 00 08 bne- cr7,ffc05734 <== NOT EXECUTED return NULL; return p; ffc05730: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc05734: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc05738: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0573c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05740: 4e 80 00 20 blr <== NOT EXECUTED ffc056d4 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc056d4: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc056d8: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc056dc: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc056e0: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); ffc056e4: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc056e8: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc056ec: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc056f0: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc056f4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc056f8: 4b ff fe b8 b ffc055b0 <== NOT EXECUTED ffc0d1c4 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0d1c4: 94 21 ff e0 stwu r1,-32(r1) ffc0d1c8: 7c 08 02 a6 mflr r0 ffc0d1cc: 93 e1 00 1c stw r31,28(r1) /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0d1d0: 7c 7f 1b 79 mr. r31,r3 */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0d1d4: 90 01 00 24 stw r0,36(r1) ffc0d1d8: 93 c1 00 18 stw r30,24(r1) /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0d1dc: 40 a2 00 18 bne+ ffc0d1f4 <== ALWAYS TAKEN errno = EFAULT; ffc0d1e0: 48 00 34 09 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0d1e4: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0d1e8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0d1ec: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc0d1f0: 48 00 00 3c b ffc0d22c <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0d1f4: 7f c0 00 a6 mfmsr r30 ffc0d1f8: 7c 10 42 a6 mfsprg r0,0 ffc0d1fc: 7f c0 00 78 andc r0,r30,r0 ffc0d200: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc0d204: 38 61 00 08 addi r3,r1,8 ffc0d208: 48 00 0b 59 bl ffc0dd60 <_TOD_Get> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0d20c: 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; ffc0d210: 81 21 00 0c lwz r9,12(r1) ffc0d214: 38 00 03 e8 li r0,1000 ffc0d218: 38 60 00 00 li r3,0 ffc0d21c: 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; ffc0d220: 81 21 00 08 lwz r9,8(r1) ffc0d224: 91 3f 00 00 stw r9,0(r31) time->tv_usec = useconds; ffc0d228: 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; } ffc0d22c: 80 01 00 24 lwz r0,36(r1) ffc0d230: 83 c1 00 18 lwz r30,24(r1) ffc0d234: 7c 08 03 a6 mtlr r0 ffc0d238: 83 e1 00 1c lwz r31,28(r1) ffc0d23c: 38 21 00 20 addi r1,r1,32 ffc0d240: 4e 80 00 20 blr ffc160d0 : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; ffc160d0: 81 23 00 3c lwz r9,60(r3) ffc160d4: 38 00 ff ff li r0,-1 ffc160d8: 81 29 00 4c lwz r9,76(r9) ffc160dc: 2f 89 00 01 cmpwi cr7,r9,1 ffc160e0: 40 be 00 18 bne+ cr7,ffc160f8 <== NEVER TAKEN if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; ffc160e4: 39 20 00 00 li r9,0 ffc160e8: 39 40 00 00 li r10,0 ffc160ec: 91 23 00 10 stw r9,16(r3) ffc160f0: 38 00 00 00 li r0,0 ffc160f4: 91 43 00 14 stw r10,20(r3) return 0; } ffc160f8: 7c 03 03 78 mr r3,r0 ffc160fc: 4e 80 00 20 blr ffc16238 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc16238: 94 21 ff d8 stwu r1,-40(r1) ffc1623c: 7c 08 02 a6 mflr r0 ffc16240: 90 01 00 2c stw r0,44(r1) ffc16244: 93 c1 00 20 stw r30,32(r1) ffc16248: 7c 9e 23 78 mr r30,r4 ffc1624c: 93 e1 00 24 stw r31,36(r1) ffc16250: 93 a1 00 1c stw r29,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc16254: 83 e4 00 00 lwz r31,0(r4) ffc16258: 81 3f 00 50 lwz r9,80(r31) ffc1625c: 38 1f 00 54 addi r0,r31,84 ffc16260: 7f 89 00 00 cmpw cr7,r9,r0 ffc16264: 41 be 00 10 beq+ cr7,ffc16274 /* * 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 ); ffc16268: 48 00 08 21 bl ffc16a88 <__errno> ffc1626c: 38 00 00 5a li r0,90 ffc16270: 48 00 00 28 b ffc16298 /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) ffc16274: 81 24 00 10 lwz r9,16(r4) ffc16278: 80 09 00 1c lwz r0,28(r9) ffc1627c: 7f 80 f8 00 cmpw cr7,r0,r31 ffc16280: 41 9e 00 10 beq- cr7,ffc16290 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) ffc16284: 83 bf 00 5c lwz r29,92(r31) ffc16288: 2f 9d 00 00 cmpwi cr7,r29,0 ffc1628c: 41 be 00 18 beq+ cr7,ffc162a4 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBUSY ); ffc16290: 48 00 07 f9 bl ffc16a88 <__errno> ffc16294: 38 00 00 10 li r0,16 ffc16298: 90 03 00 00 stw r0,0(r3) ffc1629c: 38 60 ff ff li r3,-1 ffc162a0: 48 00 00 80 b ffc16320 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { ffc162a4: 80 1f 00 08 lwz r0,8(r31) ffc162a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc162ac: 41 9e 00 10 beq- cr7,ffc162bc ffc162b0: 7f e3 fb 78 mr r3,r31 ffc162b4: 4b ff 46 75 bl ffc0a928 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc162b8: 93 bf 00 08 stw r29,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc162bc: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc162c0: 38 80 00 00 li r4,0 ffc162c4: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc162c8: 38 09 ff ff addi r0,r9,-1 ffc162cc: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc162d0: 4b fe f8 ad bl ffc05b7c ffc162d4: 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) ) { ffc162d8: 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 ); ffc162dc: 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) ) { ffc162e0: 4b ff cb f9 bl ffc12ed8 ffc162e4: 2f 83 00 00 cmpwi cr7,r3,0 ffc162e8: 40 9e 00 34 bne- cr7,ffc1631c ffc162ec: a0 1f 00 34 lhz r0,52(r31) ffc162f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc162f4: 40 9e 00 28 bne- cr7,ffc1631c /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc162f8: 3d 20 00 00 lis r9,0 ffc162fc: 81 7e 00 00 lwz r11,0(r30) ffc16300: 81 29 26 b4 lwz r9,9908(r9) ffc16304: 81 49 00 04 lwz r10,4(r9) ffc16308: 7f 8a 58 00 cmpw cr7,r10,r11 ffc1630c: 40 be 00 08 bne+ cr7,ffc16314 <== ALWAYS TAKEN rtems_filesystem_current.node_access = NULL; ffc16310: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); ffc16314: 7f e3 fb 78 mr r3,r31 ffc16318: 4b fe f7 9d bl ffc05ab4 ffc1631c: 38 60 00 00 li r3,0 } return 0; } ffc16320: 80 01 00 2c lwz r0,44(r1) ffc16324: 83 a1 00 1c lwz r29,28(r1) ffc16328: 7c 08 03 a6 mtlr r0 ffc1632c: 83 c1 00 20 lwz r30,32(r1) ffc16330: 83 e1 00 24 lwz r31,36(r1) ffc16334: 38 21 00 28 addi r1,r1,40 ffc16338: 4e 80 00 20 blr ffc05224 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc05224: 94 21 ff f0 stwu r1,-16(r1) ffc05228: 7c 08 02 a6 mflr r0 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc0522c: 3d 20 00 00 lis r9,0 /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc05230: 90 01 00 14 stw r0,20(r1) FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc05234: 39 29 28 14 addi r9,r9,10260 /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc05238: 93 e1 00 0c stw r31,12(r1) FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc0523c: 88 09 01 c4 lbz r0,452(r9) ffc05240: 2f 80 00 00 cmpwi cr7,r0,0 ffc05244: 40 be 00 bc bne+ cr7,ffc05300 return; etc_passwd_initted = 1; ffc05248: 38 00 00 01 li r0,1 ffc0524c: 98 09 01 c4 stb r0,452(r9) mkdir("/etc", 0777); ffc05250: 3c 60 ff c2 lis r3,-62 ffc05254: 38 80 01 ff li r4,511 ffc05258: 38 63 07 2f addi r3,r3,1839 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc0525c: 3f e0 ff c2 lis r31,-62 static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); ffc05260: 48 00 09 a1 bl ffc05c00 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc05264: 3b ff 07 34 addi r31,r31,1844 ffc05268: 3c 80 ff c2 lis r4,-62 ffc0526c: 38 84 ff d4 addi r4,r4,-44 ffc05270: 7f e3 fb 78 mr r3,r31 ffc05274: 48 00 e7 35 bl ffc139a8 ffc05278: 2f 83 00 00 cmpwi cr7,r3,0 ffc0527c: 40 be 00 30 bne+ cr7,ffc052ac <== NEVER TAKEN fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { ffc05280: 3c 80 ff c2 lis r4,-62 ffc05284: 7f e3 fb 78 mr r3,r31 ffc05288: 38 84 fc 92 addi r4,r4,-878 ffc0528c: 48 00 e7 1d bl ffc139a8 ffc05290: 7c 7f 1b 79 mr. r31,r3 ffc05294: 41 82 00 1c beq- ffc052b0 <== NEVER TAKEN fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" ffc05298: 3c 60 ff c2 lis r3,-62 ffc0529c: 38 63 07 40 addi r3,r3,1856 ffc052a0: 7f e4 fb 78 mr r4,r31 ffc052a4: 48 00 e7 c5 bl ffc13a68 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); ffc052a8: 7f e3 fb 78 mr r3,r31 ffc052ac: 48 00 dd c1 bl ffc1306c } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { ffc052b0: 3f e0 ff c2 lis r31,-62 ffc052b4: 3b ff 07 a7 addi r31,r31,1959 ffc052b8: 3c 80 ff c2 lis r4,-62 ffc052bc: 38 84 ff d4 addi r4,r4,-44 ffc052c0: 7f e3 fb 78 mr r3,r31 ffc052c4: 48 00 e6 e5 bl ffc139a8 ffc052c8: 2f 83 00 00 cmpwi cr7,r3,0 ffc052cc: 40 be 00 30 bne+ cr7,ffc052fc <== NEVER TAKEN fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { ffc052d0: 3c 80 ff c2 lis r4,-62 ffc052d4: 7f e3 fb 78 mr r3,r31 ffc052d8: 38 84 fc 92 addi r4,r4,-878 ffc052dc: 48 00 e6 cd bl ffc139a8 ffc052e0: 7c 7f 1b 79 mr. r31,r3 ffc052e4: 41 82 00 1c beq- ffc05300 <== NEVER TAKEN fprintf( fp, "root:x:0:root\n" ffc052e8: 3c 60 ff c2 lis r3,-62 ffc052ec: 38 63 07 b2 addi r3,r3,1970 ffc052f0: 7f e4 fb 78 mr r4,r31 ffc052f4: 48 00 e7 75 bl ffc13a68 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); ffc052f8: 7f e3 fb 78 mr r3,r31 ffc052fc: 48 00 dd 71 bl ffc1306c } } ffc05300: 80 01 00 14 lwz r0,20(r1) ffc05304: 83 e1 00 0c lwz r31,12(r1) ffc05308: 38 21 00 10 addi r1,r1,16 ffc0530c: 7c 08 03 a6 mtlr r0 ffc05310: 4e 80 00 20 blr ffc0881c : int ioctl( int fd, ioctl_command_t command, ... ) { ffc0881c: 94 21 ff e0 stwu r1,-32(r1) ffc08820: 7c 08 02 a6 mflr r0 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); ffc08824: 3d 20 00 00 lis r9,0 int ioctl( int fd, ioctl_command_t command, ... ) { ffc08828: 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 ); ffc0882c: 80 09 26 6c lwz r0,9836(r9) int ioctl( int fd, ioctl_command_t command, ... ) { ffc08830: 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 ); ffc08834: 7f 83 00 40 cmplw cr7,r3,r0 ffc08838: 40 9c 00 48 bge- cr7,ffc08880 iop = rtems_libio_iop( fd ); ffc0883c: 3d 20 00 00 lis r9,0 ffc08840: 80 09 27 28 lwz r0,10024(r9) ffc08844: 1c 63 00 48 mulli r3,r3,72 ffc08848: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc0884c: 80 03 00 18 lwz r0,24(r3) ffc08850: 70 09 01 00 andi. r9,r0,256 ffc08854: 41 82 00 2c beq- ffc08880 <== NEVER TAKEN va_start(ap, command); buffer = va_arg(ap, void *); ffc08858: 38 00 00 03 li r0,3 ffc0885c: 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); ffc08860: 39 61 00 10 addi r11,r1,16 ffc08864: 38 01 00 28 addi r0,r1,40 /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08868: 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); ffc0886c: 90 01 00 0c stw r0,12(r1) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08870: 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); ffc08874: 91 61 00 10 stw r11,16(r1) buffer = va_arg(ap, void *); ffc08878: 80 ab 00 08 lwz r5,8(r11) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc0887c: 40 be 00 10 bne+ cr7,ffc0888c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); ffc08880: 48 00 e4 d5 bl ffc16d54 <__errno> ffc08884: 38 00 00 09 li r0,9 ffc08888: 48 00 00 18 b ffc088a0 if ( !iop->handlers->ioctl_h ) ffc0888c: 80 09 00 10 lwz r0,16(r9) ffc08890: 2f 80 00 00 cmpwi cr7,r0,0 ffc08894: 40 be 00 18 bne+ cr7,ffc088ac <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc08898: 48 00 e4 bd bl ffc16d54 <__errno> <== NOT EXECUTED ffc0889c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc088a0: 90 03 00 00 stw r0,0(r3) ffc088a4: 38 60 ff ff li r3,-1 ffc088a8: 48 00 00 0c b ffc088b4 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); ffc088ac: 7c 09 03 a6 mtctr r0 ffc088b0: 4e 80 04 21 bctrl return rc; } ffc088b4: 80 01 00 24 lwz r0,36(r1) ffc088b8: 38 21 00 20 addi r1,r1,32 ffc088bc: 7c 08 03 a6 mtlr r0 ffc088c0: 4e 80 00 20 blr ffc05f30 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05f30: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc05f34: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05f38: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05f3c: 80 04 00 30 lwz r0,48(r4) <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05f40: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc05f44: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05f48: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05f4c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc05f50: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05f54: 41 82 00 08 beq- ffc05f5c <== NOT EXECUTED c &= 0x7f; ffc05f58: 54 7e 06 7e clrlwi r30,r3,25 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) ffc05f5c: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc05f60: 41 82 00 2c beq- ffc05f8c <== NOT EXECUTED c = tolower (c); ffc05f64: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05f68: 81 69 26 a0 lwz r11,9888(r9) <== NOT EXECUTED ffc05f6c: 7f c9 f3 78 mr r9,r30 <== NOT EXECUTED ffc05f70: 7f cb f2 14 add r30,r11,r30 <== NOT EXECUTED ffc05f74: 89 7e 00 01 lbz r11,1(r30) <== NOT EXECUTED ffc05f78: 55 6b 07 be clrlwi r11,r11,30 <== NOT EXECUTED ffc05f7c: 2f 8b 00 01 cmpwi cr7,r11,1 <== NOT EXECUTED ffc05f80: 40 be 00 08 bne+ cr7,ffc05f88 <== NOT EXECUTED ffc05f84: 39 29 00 20 addi r9,r9,32 <== NOT EXECUTED ffc05f88: 55 3e 06 3e clrlwi r30,r9,24 <== NOT EXECUTED if (c == '\r') { ffc05f8c: 2f 9e 00 0d cmpwi cr7,r30,13 <== NOT EXECUTED ffc05f90: 40 be 00 1c bne+ cr7,ffc05fac <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) ffc05f94: 70 09 00 80 andi. r9,r0,128 <== NOT EXECUTED ffc05f98: 40 82 01 44 bne- ffc060dc <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) ffc05f9c: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc05fa0: 41 82 00 2c beq- ffc05fcc <== NOT EXECUTED ffc05fa4: 3b c0 00 0a li r30,10 <== NOT EXECUTED ffc05fa8: 48 00 00 24 b ffc05fcc <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { ffc05fac: 2f 9e 00 0a cmpwi cr7,r30,10 <== NOT EXECUTED ffc05fb0: 40 be 00 14 bne+ cr7,ffc05fc4 <== NOT EXECUTED ffc05fb4: 70 09 00 40 andi. r9,r0,64 <== NOT EXECUTED ffc05fb8: 41 82 00 14 beq- ffc05fcc <== NOT EXECUTED ffc05fbc: 3b c0 00 0d li r30,13 <== NOT EXECUTED ffc05fc0: 48 00 00 0c b ffc05fcc <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { ffc05fc4: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc05fc8: 41 be 00 c8 beq+ cr7,ffc06090 <== NOT EXECUTED ffc05fcc: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc05fd0: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc05fd4: 41 82 00 bc beq- ffc06090 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { ffc05fd8: 89 3f 00 43 lbz r9,67(r31) <== NOT EXECUTED erase (tty, 0); ffc05fdc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05fe0: 38 80 00 00 li r4,0 <== NOT EXECUTED } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { ffc05fe4: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05fe8: 41 9e 00 18 beq- cr7,ffc06000 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { ffc05fec: 89 3f 00 44 lbz r9,68(r31) <== NOT EXECUTED ffc05ff0: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05ff4: 40 be 00 14 bne+ cr7,ffc06008 <== NOT EXECUTED erase (tty, 1); ffc05ff8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05ffc: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06000: 4b ff fc dd bl ffc05cdc <== NOT EXECUTED ffc06004: 48 00 00 d8 b ffc060dc <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { ffc06008: 89 3f 00 45 lbz r9,69(r31) <== NOT EXECUTED ffc0600c: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06010: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc06014: 41 9e 00 cc beq- cr7,ffc060e0 <== NOT EXECUTED return 1; } else if (c == '\n') { ffc06018: 2f 9e 00 0a cmpwi cr7,r30,10 <== NOT EXECUTED ffc0601c: 40 be 00 30 bne+ cr7,ffc0604c <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) ffc06020: 70 09 00 48 andi. r9,r0,72 <== NOT EXECUTED ffc06024: 41 a2 00 10 beq+ ffc06034 <== NOT EXECUTED echo (c, tty); ffc06028: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc0602c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06030: 4b ff fc 19 bl ffc05c48 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc06034: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06038: 39 40 00 0a li r10,10 <== NOT EXECUTED ffc0603c: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc06040: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc06044: 7d 4b 49 ae stbx r10,r11,r9 <== NOT EXECUTED ffc06048: 48 00 00 40 b ffc06088 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) ffc0604c: 89 3f 00 4c lbz r9,76(r31) <== NOT EXECUTED ffc06050: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc06054: 41 9e 00 10 beq- cr7,ffc06064 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { ffc06058: 89 3f 00 51 lbz r9,81(r31) <== NOT EXECUTED ffc0605c: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc06060: 40 be 00 30 bne+ cr7,ffc06090 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) ffc06064: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc06068: 41 a2 00 10 beq+ ffc06078 <== NOT EXECUTED echo (c, tty); ffc0606c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06070: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06074: 4b ff fb d5 bl ffc05c48 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc06078: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc0607c: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc06080: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc06084: 7f cb 49 ae stbx r30,r11,r9 <== NOT EXECUTED ffc06088: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0608c: 48 00 00 48 b ffc060d4 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { ffc06090: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06094: 81 69 21 68 lwz r11,8552(r9) <== NOT EXECUTED ffc06098: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc0609c: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc060a0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc060a4: 40 9c 00 38 bge- cr7,ffc060dc <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) ffc060a8: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc060ac: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc060b0: 41 a2 00 10 beq+ ffc060c0 <== NOT EXECUTED echo (c, tty); ffc060b4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc060b8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc060bc: 4b ff fb 8d bl ffc05c48 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc060c0: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc060c4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc060c8: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc060cc: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc060d0: 7f cb 49 ae stbx r30,r11,r9 <== NOT EXECUTED ffc060d4: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED ffc060d8: 48 00 00 08 b ffc060e0 <== NOT EXECUTED ffc060dc: 38 60 00 00 li r3,0 <== NOT EXECUTED } return 0; } ffc060e0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc060e4: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc060e8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc060ec: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc060f0: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc060f4: 4e 80 00 20 blr <== NOT EXECUTED ffc26ccc : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } ffc26ccc: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc26cd0: 4e 80 00 20 blr <== NOT EXECUTED ffc05f40 : int link( const char *existing, const char *new ) { ffc05f40: 94 21 ff c0 stwu r1,-64(r1) ffc05f44: 7c 08 02 a6 mflr r0 ffc05f48: 93 c1 00 38 stw r30,56(r1) ffc05f4c: 7c 7e 1b 78 mr r30,r3 ffc05f50: 90 01 00 44 stw r0,68(r1) ffc05f54: 93 e1 00 3c stw r31,60(r1) ffc05f58: 7c 9f 23 78 mr r31,r4 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), ffc05f5c: 48 00 ee 71 bl ffc14dcc ffc05f60: 38 a0 00 00 li r5,0 ffc05f64: 7c 64 1b 78 mr r4,r3 ffc05f68: 38 c1 00 0c addi r6,r1,12 ffc05f6c: 7f c3 f3 78 mr r3,r30 ffc05f70: 38 e0 00 01 li r7,1 ffc05f74: 4b ff f9 81 bl ffc058f4 0, &existing_loc, true ); if ( result != 0 ) ffc05f78: 3b c0 ff ff li r30,-1 ffc05f7c: 2f 83 00 00 cmpwi cr7,r3,0 ffc05f80: 40 9e 02 3c bne- cr7,ffc061bc /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); ffc05f84: 88 1f 00 00 lbz r0,0(r31) ffc05f88: 2f 80 00 2f cmpwi cr7,r0,47 ffc05f8c: 41 9e 00 14 beq- cr7,ffc05fa0 ffc05f90: 2f 80 00 5c cmpwi cr7,r0,92 ffc05f94: 41 9e 00 0c beq- cr7,ffc05fa0 <== NEVER TAKEN ffc05f98: 2f 80 00 00 cmpwi cr7,r0,0 ffc05f9c: 40 9e 00 38 bne- cr7,ffc05fd4 <== ALWAYS TAKEN ffc05fa0: 3d 20 00 00 lis r9,0 ffc05fa4: 81 29 27 14 lwz r9,10004(r9) ffc05fa8: 38 60 00 01 li r3,1 ffc05fac: 80 09 00 24 lwz r0,36(r9) ffc05fb0: 81 09 00 18 lwz r8,24(r9) ffc05fb4: 81 49 00 1c lwz r10,28(r9) ffc05fb8: 81 69 00 20 lwz r11,32(r9) ffc05fbc: 91 01 00 20 stw r8,32(r1) ffc05fc0: 91 41 00 24 stw r10,36(r1) ffc05fc4: 91 61 00 28 stw r11,40(r1) ffc05fc8: 90 01 00 2c stw r0,44(r1) ffc05fcc: 80 09 00 28 lwz r0,40(r9) ffc05fd0: 48 00 00 34 b ffc06004 ffc05fd4: 3d 20 00 00 lis r9,0 ffc05fd8: 81 29 27 14 lwz r9,10004(r9) ffc05fdc: 38 60 00 00 li r3,0 ffc05fe0: 80 09 00 10 lwz r0,16(r9) ffc05fe4: 81 09 00 04 lwz r8,4(r9) ffc05fe8: 81 49 00 08 lwz r10,8(r9) ffc05fec: 81 69 00 0c lwz r11,12(r9) ffc05ff0: 91 01 00 20 stw r8,32(r1) ffc05ff4: 91 41 00 24 stw r10,36(r1) ffc05ff8: 91 61 00 28 stw r11,40(r1) ffc05ffc: 90 01 00 2c stw r0,44(r1) ffc06000: 80 09 00 14 lwz r0,20(r9) if ( !parent_loc.ops->evalformake_h ) { ffc06004: 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 ); ffc06008: 90 01 00 30 stw r0,48(r1) if ( !parent_loc.ops->evalformake_h ) { ffc0600c: 80 09 00 04 lwz r0,4(r9) ffc06010: 2f 80 00 00 cmpwi cr7,r0,0 ffc06014: 40 be 00 24 bne+ cr7,ffc06038 <== ALWAYS TAKEN rtems_filesystem_freenode( &existing_loc ); ffc06018: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc0601c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06020: 41 9e 01 28 beq- cr7,ffc06148 <== NOT EXECUTED ffc06024: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc06028: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc0602c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06030: 40 be 01 10 bne+ cr7,ffc06140 <== NOT EXECUTED ffc06034: 48 00 01 14 b ffc06148 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); ffc06038: 3b c1 00 20 addi r30,r1,32 ffc0603c: 7c 09 03 a6 mtctr r0 ffc06040: 7c 7f 1a 14 add r3,r31,r3 ffc06044: 7f c4 f3 78 mr r4,r30 ffc06048: 38 a1 00 08 addi r5,r1,8 ffc0604c: 4e 80 04 21 bctrl if ( result != 0 ) { ffc06050: 7c 7f 1b 79 mr. r31,r3 ffc06054: 41 a2 00 38 beq+ ffc0608c rtems_filesystem_freenode( &existing_loc ); ffc06058: 81 21 00 18 lwz r9,24(r1) ffc0605c: 2f 89 00 00 cmpwi cr7,r9,0 ffc06060: 41 9e 00 1c beq- cr7,ffc0607c <== NEVER TAKEN ffc06064: 80 09 00 1c lwz r0,28(r9) ffc06068: 2f 80 00 00 cmpwi cr7,r0,0 ffc0606c: 41 9e 00 10 beq- cr7,ffc0607c <== NEVER TAKEN ffc06070: 38 61 00 0c addi r3,r1,12 ffc06074: 7c 09 03 a6 mtctr r0 ffc06078: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( result ); ffc0607c: 48 00 d5 8d bl ffc13608 <__errno> ffc06080: 93 e3 00 00 stw r31,0(r3) ffc06084: 3b c0 ff ff li r30,-1 ffc06088: 48 00 01 34 b ffc061bc /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { ffc0608c: 80 01 00 1c lwz r0,28(r1) ffc06090: 81 21 00 30 lwz r9,48(r1) ffc06094: 7f 89 00 00 cmpw cr7,r9,r0 ffc06098: 41 be 00 58 beq+ cr7,ffc060f0 rtems_filesystem_freenode( &existing_loc ); ffc0609c: 81 21 00 18 lwz r9,24(r1) ffc060a0: 2f 89 00 00 cmpwi cr7,r9,0 ffc060a4: 41 9e 00 1c beq- cr7,ffc060c0 <== NEVER TAKEN ffc060a8: 80 09 00 1c lwz r0,28(r9) ffc060ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc060b0: 41 9e 00 10 beq- cr7,ffc060c0 <== NEVER TAKEN ffc060b4: 38 61 00 0c addi r3,r1,12 ffc060b8: 7c 09 03 a6 mtctr r0 ffc060bc: 4e 80 04 21 bctrl rtems_filesystem_freenode( &parent_loc ); ffc060c0: 81 21 00 2c lwz r9,44(r1) ffc060c4: 2f 89 00 00 cmpwi cr7,r9,0 ffc060c8: 41 9e 00 1c beq- cr7,ffc060e4 <== NEVER TAKEN ffc060cc: 80 09 00 1c lwz r0,28(r9) ffc060d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc060d4: 41 9e 00 10 beq- cr7,ffc060e4 <== NEVER TAKEN ffc060d8: 38 61 00 20 addi r3,r1,32 ffc060dc: 7c 09 03 a6 mtctr r0 ffc060e0: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EXDEV ); ffc060e4: 48 00 d5 25 bl ffc13608 <__errno> ffc060e8: 38 00 00 12 li r0,18 ffc060ec: 48 00 00 64 b ffc06150 } if ( !parent_loc.ops->link_h ) { ffc060f0: 81 21 00 2c lwz r9,44(r1) ffc060f4: 80 09 00 08 lwz r0,8(r9) ffc060f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc060fc: 40 be 00 5c bne+ cr7,ffc06158 <== ALWAYS TAKEN rtems_filesystem_freenode( &existing_loc ); ffc06100: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc06104: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06108: 41 9e 00 1c beq- cr7,ffc06124 <== NOT EXECUTED ffc0610c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc06110: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06114: 41 9e 00 10 beq- cr7,ffc06124 <== NOT EXECUTED ffc06118: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc0611c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06120: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); ffc06124: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc06128: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0612c: 41 9e 00 1c beq- cr7,ffc06148 <== NOT EXECUTED ffc06130: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc06134: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06138: 41 9e 00 10 beq- cr7,ffc06148 <== NOT EXECUTED ffc0613c: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc06140: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06144: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06148: 48 00 d4 c1 bl ffc13608 <__errno> <== NOT EXECUTED ffc0614c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06150: 90 03 00 00 stw r0,0(r3) ffc06154: 4b ff ff 30 b ffc06084 } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); ffc06158: 3b e1 00 0c addi r31,r1,12 ffc0615c: 80 a1 00 08 lwz r5,8(r1) ffc06160: 7f c4 f3 78 mr r4,r30 ffc06164: 7c 09 03 a6 mtctr r0 ffc06168: 7f e3 fb 78 mr r3,r31 ffc0616c: 4e 80 04 21 bctrl rtems_filesystem_freenode( &existing_loc ); ffc06170: 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 ); ffc06174: 7c 7e 1b 78 mr r30,r3 rtems_filesystem_freenode( &existing_loc ); ffc06178: 2f 89 00 00 cmpwi cr7,r9,0 ffc0617c: 41 9e 00 1c beq- cr7,ffc06198 <== NEVER TAKEN ffc06180: 80 09 00 1c lwz r0,28(r9) ffc06184: 2f 80 00 00 cmpwi cr7,r0,0 ffc06188: 41 9e 00 10 beq- cr7,ffc06198 <== NEVER TAKEN ffc0618c: 7f e3 fb 78 mr r3,r31 ffc06190: 7c 09 03 a6 mtctr r0 ffc06194: 4e 80 04 21 bctrl rtems_filesystem_freenode( &parent_loc ); ffc06198: 81 21 00 2c lwz r9,44(r1) ffc0619c: 2f 89 00 00 cmpwi cr7,r9,0 ffc061a0: 41 9e 00 1c beq- cr7,ffc061bc <== NEVER TAKEN ffc061a4: 80 09 00 1c lwz r0,28(r9) ffc061a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc061ac: 41 9e 00 10 beq- cr7,ffc061bc <== NEVER TAKEN ffc061b0: 38 61 00 20 addi r3,r1,32 ffc061b4: 7c 09 03 a6 mtctr r0 ffc061b8: 4e 80 04 21 bctrl return result; } ffc061bc: 80 01 00 44 lwz r0,68(r1) ffc061c0: 7f c3 f3 78 mr r3,r30 ffc061c4: 83 e1 00 3c lwz r31,60(r1) ffc061c8: 7c 08 03 a6 mtlr r0 ffc061cc: 83 c1 00 38 lwz r30,56(r1) ffc061d0: 38 21 00 40 addi r1,r1,64 ffc061d4: 4e 80 00 20 blr ffc1b17c : off_t lseek( int fd, off_t offset, int whence ) { ffc1b17c: 94 21 ff e8 stwu r1,-24(r1) ffc1b180: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1b184: 3d 20 00 00 lis r9,0 off_t lseek( int fd, off_t offset, int whence ) { ffc1b188: 90 01 00 1c stw r0,28(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1b18c: 80 09 26 4c lwz r0,9804(r9) off_t lseek( int fd, off_t offset, int whence ) { ffc1b190: 93 a1 00 0c stw r29,12(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1b194: 7f 83 00 40 cmplw cr7,r3,r0 off_t lseek( int fd, off_t offset, int whence ) { ffc1b198: 93 c1 00 10 stw r30,16(r1) ffc1b19c: 93 e1 00 14 stw r31,20(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1b1a0: 40 9c 00 20 bge- cr7,ffc1b1c0 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1b1a4: 3d 20 00 00 lis r9,0 ffc1b1a8: 83 e9 27 08 lwz r31,9992(r9) ffc1b1ac: 1c 63 00 48 mulli r3,r3,72 ffc1b1b0: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc1b1b4: 80 1f 00 18 lwz r0,24(r31) ffc1b1b8: 70 09 01 00 andi. r9,r0,256 ffc1b1bc: 40 a2 00 10 bne+ ffc1b1cc <== ALWAYS TAKEN ffc1b1c0: 4b ff 54 29 bl ffc105e8 <__errno> <== NOT EXECUTED ffc1b1c4: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1b1c8: 48 00 00 7c b ffc1b244 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) ffc1b1cc: 81 3f 00 40 lwz r9,64(r31) ffc1b1d0: 80 09 00 14 lwz r0,20(r9) ffc1b1d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b1d8: 40 be 00 10 bne+ cr7,ffc1b1e8 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1b1dc: 4b ff 54 0d bl ffc105e8 <__errno> <== NOT EXECUTED ffc1b1e0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1b1e4: 48 00 00 60 b ffc1b244 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { ffc1b1e8: 2f 87 00 01 cmpwi cr7,r7,1 /* * Now process the lseek(). */ old_offset = iop->offset; ffc1b1ec: 83 bf 00 10 lwz r29,16(r31) ffc1b1f0: 83 df 00 14 lwz r30,20(r31) switch ( whence ) { ffc1b1f4: 41 9e 00 20 beq- cr7,ffc1b214 ffc1b1f8: 2f 87 00 02 cmpwi cr7,r7,2 ffc1b1fc: 41 9e 00 24 beq- cr7,ffc1b220 ffc1b200: 2f 87 00 00 cmpwi cr7,r7,0 ffc1b204: 40 9e 00 38 bne- cr7,ffc1b23c case SEEK_SET: iop->offset = offset; ffc1b208: 90 bf 00 10 stw r5,16(r31) ffc1b20c: 90 df 00 14 stw r6,20(r31) break; ffc1b210: 48 00 00 44 b ffc1b254 case SEEK_CUR: iop->offset += offset; ffc1b214: 7d 46 f0 14 addc r10,r6,r30 ffc1b218: 7d 25 e9 14 adde r9,r5,r29 ffc1b21c: 48 00 00 14 b ffc1b230 break; case SEEK_END: iop->offset = iop->size + offset; ffc1b220: 81 7f 00 08 lwz r11,8(r31) ffc1b224: 81 9f 00 0c lwz r12,12(r31) ffc1b228: 7d 46 60 14 addc r10,r6,r12 ffc1b22c: 7d 25 59 14 adde r9,r5,r11 ffc1b230: 91 3f 00 10 stw r9,16(r31) ffc1b234: 91 5f 00 14 stw r10,20(r31) break; ffc1b238: 48 00 00 1c b ffc1b254 default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc1b23c: 4b ff 53 ad bl ffc105e8 <__errno> ffc1b240: 38 00 00 16 li r0,22 ffc1b244: 90 03 00 00 stw r0,0(r3) ffc1b248: 39 20 ff ff li r9,-1 ffc1b24c: 39 40 ff ff li r10,-1 ffc1b250: 48 00 00 38 b ffc1b288 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); ffc1b254: 81 3f 00 40 lwz r9,64(r31) ffc1b258: 7f e3 fb 78 mr r3,r31 ffc1b25c: 80 09 00 14 lwz r0,20(r9) ffc1b260: 7c 09 03 a6 mtctr r0 ffc1b264: 4e 80 04 21 bctrl ffc1b268: 7c 69 1b 78 mr r9,r3 if ( status == (off_t) -1 ) ffc1b26c: 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 ); ffc1b270: 7c 8a 23 78 mr r10,r4 if ( status == (off_t) -1 ) ffc1b274: 40 be 00 14 bne+ cr7,ffc1b288 ffc1b278: 2f 84 ff ff cmpwi cr7,r4,-1 ffc1b27c: 40 be 00 0c bne+ cr7,ffc1b288 <== NEVER TAKEN iop->offset = old_offset; ffc1b280: 93 bf 00 10 stw r29,16(r31) ffc1b284: 93 df 00 14 stw r30,20(r31) /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1b288: 80 01 00 1c lwz r0,28(r1) ffc1b28c: 7d 44 53 78 mr r4,r10 ffc1b290: 7d 23 4b 78 mr r3,r9 ffc1b294: 83 a1 00 0c lwz r29,12(r1) ffc1b298: 7c 08 03 a6 mtlr r0 ffc1b29c: 83 c1 00 10 lwz r30,16(r1) ffc1b2a0: 83 e1 00 14 lwz r31,20(r1) ffc1b2a4: 38 21 00 18 addi r1,r1,24 ffc1b2a8: 4e 80 00 20 blr 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 <== NEVER TAKEN 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 <== NEVER TAKEN 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 c5 bl ffc09cd8 <_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 <== ALWAYS TAKEN 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 99 bl ffc105e8 <__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 <== ALWAYS TAKEN (*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 <== ALWAYS TAKEN (*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 5c addi r3,r3,10844 <== NOT EXECUTED ffc0443c: 48 00 45 dd bl ffc08a18 <_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 5c addi r31,r31,10844 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 d5 bl ffc08a48 <_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 <== NEVER TAKEN 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 ffc14b58 : void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc14b58: 3d 20 00 00 lis r9,0 */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { ffc14b5c: 94 21 ff f8 stwu r1,-8(r1) ffc14b60: 7c 08 02 a6 mflr r0 void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc14b64: 38 60 00 01 li r3,1 ffc14b68: 80 89 27 24 lwz r4,10020(r9) */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { ffc14b6c: 90 01 00 0c stw r0,12(r1) void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc14b70: 4b ff 0c 35 bl ffc057a4 if ( memory ) ffc14b74: 2c 03 00 00 cmpwi r3,0 ffc14b78: 41 82 00 14 beq- ffc14b8c <== NEVER TAKEN memfile_blocks_allocated++; ffc14b7c: 3d 20 00 00 lis r9,0 ffc14b80: 81 69 27 c8 lwz r11,10184(r9) ffc14b84: 38 0b 00 01 addi r0,r11,1 ffc14b88: 90 09 27 c8 stw r0,10184(r9) return memory; } ffc14b8c: 80 01 00 0c lwz r0,12(r1) ffc14b90: 38 21 00 08 addi r1,r1,8 ffc14b94: 7c 08 03 a6 mtlr r0 ffc14b98: 4e 80 00 20 blr ffc150c8 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ ffc150c8: 94 21 ff f0 stwu r1,-16(r1) ffc150cc: 7c 08 02 a6 mflr r0 ffc150d0: 93 e1 00 0c stw r31,12(r1) ffc150d4: 7c 7f 1b 78 mr r31,r3 ffc150d8: 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) ) { ffc150dc: 4b ff dd fd bl ffc12ed8 ffc150e0: 2f 83 00 00 cmpwi cr7,r3,0 ffc150e4: 40 9e 00 44 bne- cr7,ffc15128 ffc150e8: a0 1f 00 34 lhz r0,52(r31) ffc150ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc150f0: 40 9e 00 38 bne- cr7,ffc15128 <== NEVER TAKEN /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) ffc150f4: 3d 20 00 00 lis r9,0 ffc150f8: 81 29 26 b4 lwz r9,9908(r9) ffc150fc: 81 69 00 04 lwz r11,4(r9) ffc15100: 7f 8b f8 00 cmpw cr7,r11,r31 ffc15104: 40 be 00 08 bne+ cr7,ffc1510c <== ALWAYS TAKEN rtems_filesystem_current.node_access = NULL; ffc15108: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) ffc1510c: 80 1f 00 4c lwz r0,76(r31) ffc15110: 2f 80 00 06 cmpwi cr7,r0,6 ffc15114: 41 9e 00 0c beq- cr7,ffc15120 <== NEVER TAKEN IMFS_memfile_remove( the_jnode ); ffc15118: 7f e3 fb 78 mr r3,r31 ffc1511c: 4b ff fd e1 bl ffc14efc free( the_jnode ); ffc15120: 7f e3 fb 78 mr r3,r31 ffc15124: 4b ff 09 91 bl ffc05ab4 } return 0; } ffc15128: 80 01 00 14 lwz r0,20(r1) ffc1512c: 38 60 00 00 li r3,0 ffc15130: 83 e1 00 0c lwz r31,12(r1) ffc15134: 38 21 00 10 addi r1,r1,16 ffc15138: 7c 08 03 a6 mtlr r0 ffc1513c: 4e 80 00 20 blr ffc14de0 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc14de0: 94 21 ff e0 stwu r1,-32(r1) ffc14de4: 7c 08 02 a6 mflr r0 ffc14de8: 93 e1 00 1c stw r31,28(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc14dec: 7c 7f 1b 79 mr. r31,r3 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc14df0: 93 61 00 0c stw r27,12(r1) ffc14df4: 7c 9b 23 78 mr r27,r4 ffc14df8: 90 01 00 24 stw r0,36(r1) ffc14dfc: 93 81 00 10 stw r28,16(r1) ffc14e00: 93 a1 00 14 stw r29,20(r1) ffc14e04: 93 c1 00 18 stw r30,24(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc14e08: 40 a2 00 28 bne+ ffc14e30 <== ALWAYS TAKEN ffc14e0c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc14e10: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc14e14: 38 a5 37 08 addi r5,r5,14088 <== NOT EXECUTED ffc14e18: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc14e1c: 38 63 37 ca addi r3,r3,14282 <== NOT EXECUTED ffc14e20: 38 a5 00 20 addi r5,r5,32 <== NOT EXECUTED ffc14e24: 38 c6 38 3e addi r6,r6,14398 <== NOT EXECUTED ffc14e28: 38 80 01 b3 li r4,435 <== NOT EXECUTED ffc14e2c: 4b ff 07 a1 bl ffc055cc <__assert_func> <== NOT EXECUTED ffc14e30: 83 df 00 00 lwz r30,0(r31) ffc14e34: 3b a0 00 00 li r29,0 b = *block_table; for ( i=0 ; i if ( b[i] ) { ffc14e40: 80 7e 00 00 lwz r3,0(r30) ffc14e44: 2f 83 00 00 cmpwi cr7,r3,0 ffc14e48: 41 9e 00 0c beq- cr7,ffc14e54 memfile_free_block( b[i] ); ffc14e4c: 4b ff fc dd bl ffc14b28 b[i] = 0; ffc14e50: 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 ); ffc14e64: 80 7f 00 00 lwz r3,0(r31) ffc14e68: 4b ff fc c1 bl ffc14b28 *block_table = 0; ffc14e6c: 38 00 00 00 li r0,0 ffc14e70: 90 1f 00 00 stw r0,0(r31) } ffc14e74: 80 01 00 24 lwz r0,36(r1) ffc14e78: 83 61 00 0c lwz r27,12(r1) ffc14e7c: 7c 08 03 a6 mtlr r0 ffc14e80: 83 81 00 10 lwz r28,16(r1) ffc14e84: 83 a1 00 14 lwz r29,20(r1) ffc14e88: 83 c1 00 18 lwz r30,24(r1) ffc14e8c: 83 e1 00 1c lwz r31,28(r1) ffc14e90: 38 21 00 20 addi r1,r1,32 ffc14e94: 4e 80 00 20 blr ffc1546c : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { ffc1546c: 94 21 ff e0 stwu r1,-32(r1) ffc15470: 7c 08 02 a6 mflr r0 ffc15474: 7c 69 1b 78 mr r9,r3 ffc15478: 90 01 00 24 stw r0,36(r1) ffc1547c: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc15480: 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 ) ffc15484: 80 1f 00 50 lwz r0,80(r31) ffc15488: 7f 80 28 00 cmpw cr7,r0,r5 ffc1548c: 41 9c 00 14 blt- cr7,ffc154a0 <== NEVER TAKEN ffc15490: 40 be 00 1c bne+ cr7,ffc154ac <== NEVER TAKEN ffc15494: 80 1f 00 54 lwz r0,84(r31) ffc15498: 7f 80 30 40 cmplw cr7,r0,r6 ffc1549c: 40 bc 00 10 bge+ cr7,ffc154ac <== ALWAYS TAKEN return IMFS_memfile_extend( the_jnode, length ); ffc154a0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc154a4: 4b ff fe 05 bl ffc152a8 <== NOT EXECUTED ffc154a8: 48 00 00 2c b ffc154d4 <== 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; ffc154ac: 90 bf 00 50 stw r5,80(r31) iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); ffc154b0: 38 61 00 08 addi r3,r1,8 ffc154b4: 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; ffc154b8: 90 df 00 54 stw r6,84(r31) iop->size = the_jnode->info.file.size; ffc154bc: 90 c9 00 0c stw r6,12(r9) ffc154c0: 90 a9 00 08 stw r5,8(r9) IMFS_update_atime( the_jnode ); ffc154c4: 4b ff 06 b9 bl ffc05b7c ffc154c8: 80 01 00 08 lwz r0,8(r1) ffc154cc: 38 60 00 00 li r3,0 ffc154d0: 90 1f 00 40 stw r0,64(r31) return 0; } ffc154d4: 80 01 00 24 lwz r0,36(r1) ffc154d8: 83 e1 00 1c lwz r31,28(r1) ffc154dc: 38 21 00 20 addi r1,r1,32 ffc154e0: 7c 08 03 a6 mtlr r0 ffc154e4: 4e 80 00 20 blr ffc154e8 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc154e8: 94 21 ff f0 stwu r1,-16(r1) ffc154ec: 7c 08 02 a6 mflr r0 ffc154f0: 90 01 00 14 stw r0,20(r1) ffc154f4: 93 c1 00 08 stw r30,8(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc154f8: 83 c3 00 3c lwz r30,60(r3) rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc154fc: 93 e1 00 0c stw r31,12(r1) ffc15500: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { ffc15504: 80 1e 00 4c lwz r0,76(r30) ffc15508: 2f 80 00 06 cmpwi cr7,r0,6 ffc1550c: 40 9e 00 34 bne- cr7,ffc15540 <== ALWAYS TAKEN if (iop->offset > the_jnode->info.linearfile.size) ffc15510: 81 3e 00 50 lwz r9,80(r30) <== NOT EXECUTED ffc15514: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED ffc15518: 80 1e 00 54 lwz r0,84(r30) <== NOT EXECUTED ffc1551c: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc15520: 41 9d 00 14 bgt- cr7,ffc15534 <== NOT EXECUTED ffc15524: 40 9e 00 5c bne- cr7,ffc15580 <== NOT EXECUTED ffc15528: 81 63 00 14 lwz r11,20(r3) <== NOT EXECUTED ffc1552c: 7f 8b 00 40 cmplw cr7,r11,r0 <== NOT EXECUTED ffc15530: 40 9d 00 50 ble- cr7,ffc15580 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; ffc15534: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc15538: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED ffc1553c: 48 00 00 44 b ffc15580 <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) ffc15540: 80 a3 00 10 lwz r5,16(r3) ffc15544: 80 c3 00 14 lwz r6,20(r3) ffc15548: 7f c3 f3 78 mr r3,r30 ffc1554c: 4b ff fd 5d bl ffc152a8 ffc15550: 2f 83 00 00 cmpwi cr7,r3,0 ffc15554: 41 be 00 1c beq+ cr7,ffc15570 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc15558: 48 00 15 31 bl ffc16a88 <__errno> <== NOT EXECUTED ffc1555c: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc15560: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc15564: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc15568: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc1556c: 48 00 00 1c b ffc15588 <== NOT EXECUTED iop->size = the_jnode->info.file.size; ffc15570: 81 3e 00 50 lwz r9,80(r30) ffc15574: 81 5e 00 54 lwz r10,84(r30) ffc15578: 91 3f 00 08 stw r9,8(r31) ffc1557c: 91 5f 00 0c stw r10,12(r31) } return iop->offset; ffc15580: 81 3f 00 10 lwz r9,16(r31) ffc15584: 81 5f 00 14 lwz r10,20(r31) } ffc15588: 80 01 00 14 lwz r0,20(r1) ffc1558c: 7d 44 53 78 mr r4,r10 ffc15590: 7d 23 4b 78 mr r3,r9 ffc15594: 83 c1 00 08 lwz r30,8(r1) ffc15598: 7c 08 03 a6 mtlr r0 ffc1559c: 83 e1 00 0c lwz r31,12(r1) ffc155a0: 38 21 00 10 addi r1,r1,16 ffc155a4: 4e 80 00 20 blr ffc158f4 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc158f4: 94 21 ff f0 stwu r1,-16(r1) ffc158f8: 7c 08 02 a6 mflr r0 ffc158fc: 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)) ffc15900: 80 03 00 18 lwz r0,24(r3) rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc15904: 93 c1 00 08 stw r30,8(r1) ffc15908: 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)) ffc1590c: 70 09 02 04 andi. r9,r0,516 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc15910: 93 e1 00 0c stw r31,12(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc15914: 83 e3 00 3c lwz r31,60(r3) /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) ffc15918: 41 82 00 64 beq- ffc1597c && (the_jnode->type == IMFS_LINEAR_FILE)) { ffc1591c: 80 1f 00 4c lwz r0,76(r31) ffc15920: 2f 80 00 06 cmpwi cr7,r0,6 ffc15924: 40 be 00 58 bne+ cr7,ffc1597c <== ALWAYS TAKEN uint32_t count = the_jnode->info.linearfile.size; ffc15928: 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; ffc1592c: 39 20 00 05 li r9,5 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; ffc15930: 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; ffc15934: 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) ffc15938: 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; ffc1593c: 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; ffc15940: 80 ff 00 58 lwz r7,88(r31) <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; ffc15944: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc15948: 91 3f 00 50 stw r9,80(r31) <== NOT EXECUTED ffc1594c: 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; ffc15950: 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; ffc15954: 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; ffc15958: 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) ffc1595c: 41 be 00 20 beq+ cr7,ffc1597c <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) ffc15960: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc15964: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc15968: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc1596c: 4b ff fc 3d bl ffc155a8 <== 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) ffc15970: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED ffc15974: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc15978: 41 9e 00 34 beq- cr7,ffc159ac <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) ffc1597c: 80 1e 00 18 lwz r0,24(r30) ffc15980: 70 09 02 00 andi. r9,r0,512 ffc15984: 41 82 00 14 beq- ffc15998 iop->offset = the_jnode->info.file.size; ffc15988: 81 3f 00 50 lwz r9,80(r31) ffc1598c: 81 5f 00 54 lwz r10,84(r31) ffc15990: 91 3e 00 10 stw r9,16(r30) ffc15994: 91 5e 00 14 stw r10,20(r30) iop->size = the_jnode->info.file.size; ffc15998: 81 3f 00 50 lwz r9,80(r31) ffc1599c: 38 60 00 00 li r3,0 ffc159a0: 81 5f 00 54 lwz r10,84(r31) ffc159a4: 91 3e 00 08 stw r9,8(r30) ffc159a8: 91 5e 00 0c stw r10,12(r30) return 0; } ffc159ac: 80 01 00 14 lwz r0,20(r1) ffc159b0: 83 c1 00 08 lwz r30,8(r1) ffc159b4: 7c 08 03 a6 mtlr r0 ffc159b8: 83 e1 00 0c lwz r31,12(r1) ffc159bc: 38 21 00 10 addi r1,r1,16 ffc159c0: 4e 80 00 20 blr ffc15140 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc15140: 94 21 ff e0 stwu r1,-32(r1) ffc15144: 7c 08 02 a6 mflr r0 ffc15148: 90 01 00 24 stw r0,36(r1) ffc1514c: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc15150: 83 e4 00 00 lwz r31,0(r4) /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { ffc15154: 80 1f 00 08 lwz r0,8(r31) ffc15158: 2f 80 00 00 cmpwi cr7,r0,0 ffc1515c: 41 9e 00 14 beq- cr7,ffc15170 <== NEVER TAKEN ffc15160: 7f e3 fb 78 mr r3,r31 ffc15164: 4b ff 57 c5 bl ffc0a928 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc15168: 38 00 00 00 li r0,0 ffc1516c: 90 1f 00 08 stw r0,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc15170: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc15174: 38 61 00 08 addi r3,r1,8 ffc15178: 38 80 00 00 li r4,0 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc1517c: 38 09 ff ff addi r0,r9,-1 ffc15180: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc15184: 4b ff 09 f9 bl ffc05b7c ffc15188: 80 01 00 08 lwz r0,8(r1) return memfile_check_rmnod( the_jnode ); ffc1518c: 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 ); ffc15190: 90 1f 00 48 stw r0,72(r31) return memfile_check_rmnod( the_jnode ); ffc15194: 4b ff ff 35 bl ffc150c8 } ffc15198: 80 01 00 24 lwz r0,36(r1) ffc1519c: 83 e1 00 1c lwz r31,28(r1) ffc151a0: 38 21 00 20 addi r1,r1,32 ffc151a4: 7c 08 03 a6 mtlr r0 ffc151a8: 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 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc04730: 48 00 be b9 bl ffc105e8 <__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 <== NEVER TAKEN ffc04750: 2f 80 00 00 cmpwi cr7,r0,0 ffc04754: 40 9e 00 38 bne- cr7,ffc0478c <== ALWAYS TAKEN 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 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc047d0: 48 00 be 19 bl ffc105e8 <__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 <== ALWAYS TAKEN 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 <== NEVER TAKEN 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 dd bl ffc105e8 <__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 <== ALWAYS TAKEN errno = ENOTSUP; ffc04924: 48 00 bc c5 bl ffc105e8 <__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 <== ALWAYS TAKEN size += strlen( device ) + 1; ffc04948: 7c c3 33 78 mr r3,r6 <== NOT EXECUTED ffc0494c: 48 00 cf 99 bl ffc118e4 <== 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 <== ALWAYS TAKEN errno = ENOMEM; ffc04968: 48 00 bc 81 bl ffc105e8 <__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 <== ALWAYS TAKEN 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 d5 bl ffc1186c <== 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 cf 35 bl ffc118e4 * 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 <== NEVER TAKEN /* * 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 <== ALWAYS TAKEN errno = ENOTSUP; ffc049e8: 48 00 bc 01 bl ffc105e8 <__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 e1 bl ffc105e8 <__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 9d bl ffc105e8 <__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 91 bl ffc105e8 <__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 <== ALWAYS TAKEN 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 <== ALWAYS TAKEN /* 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 2d bl ffc08a18 <_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 <== NEVER TAKEN *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 <== NEVER TAKEN 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 <== NEVER TAKEN 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 <== NEVER TAKEN 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 <== ALWAYS TAKEN ffc04b94: 4b ff fe c4 b ffc04a58 <== NOT EXECUTED ffc04b9c : /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ffc04b9c: 7f 83 20 00 cmpw cr7,r3,r4 void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) { ffc04ba0: 94 21 ff e8 stwu r1,-24(r1) ffc04ba4: 7c 08 02 a6 mflr r0 ffc04ba8: 93 a1 00 0c stw r29,12(r1) ffc04bac: 7c 7d 1b 78 mr r29,r3 ffc04bb0: 93 c1 00 10 stw r30,16(r1) ffc04bb4: 7c 9e 23 78 mr r30,r4 ffc04bb8: 90 01 00 1c stw r0,28(r1) ffc04bbc: 93 e1 00 14 stw r31,20(r1) /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ffc04bc0: 40 be 00 10 bne+ cr7,ffc04bd0 ptr = _REENT; ffc04bc4: 3d 20 00 00 lis r9,0 ffc04bc8: 83 e9 26 a4 lwz r31,9892(r9) ffc04bcc: 48 00 00 08 b ffc04bd4 } else { ptr = deleted_task->libc_reent; ffc04bd0: 83 e4 01 3c lwz r31,316(r4) } if (ptr && ptr != _global_impure_ptr) { ffc04bd4: 2f 9f 00 00 cmpwi cr7,r31,0 ffc04bd8: 41 9e 00 2c beq- cr7,ffc04c04 <== NEVER TAKEN ffc04bdc: 3d 20 00 00 lis r9,0 ffc04be0: 80 09 26 a8 lwz r0,9896(r9) ffc04be4: 7f 9f 00 00 cmpw cr7,r31,r0 ffc04be8: 41 9e 00 1c beq- cr7,ffc04c04 _reclaim_reent(ptr); */ /* * Just in case there are some buffers lying around. */ _fwalk(ptr, newlib_free_buffers); ffc04bec: 3c 80 ff c0 lis r4,-64 ffc04bf0: 38 84 4c 38 addi r4,r4,19512 ffc04bf4: 7f e3 fb 78 mr r3,r31 ffc04bf8: 48 00 c4 85 bl ffc1107c <_fwalk> #if REENT_MALLOCED free(ptr); #else _Workspace_Free(ptr); ffc04bfc: 7f e3 fb 78 mr r3,r31 ffc04c00: 48 00 70 f5 bl ffc0bcf4 <_Workspace_Free> /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { ffc04c04: 7f 9d f0 00 cmpw cr7,r29,r30 #else _Workspace_Free(ptr); #endif } deleted_task->libc_reent = NULL; ffc04c08: 38 00 00 00 li r0,0 ffc04c0c: 90 1e 01 3c stw r0,316(r30) /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { ffc04c10: 40 be 00 0c bne+ cr7,ffc04c1c _REENT = 0; ffc04c14: 3d 20 00 00 lis r9,0 ffc04c18: 90 09 26 a4 stw r0,9892(r9) } } ffc04c1c: 80 01 00 1c lwz r0,28(r1) ffc04c20: 83 a1 00 0c lwz r29,12(r1) ffc04c24: 7c 08 03 a6 mtlr r0 ffc04c28: 83 c1 00 10 lwz r30,16(r1) ffc04c2c: 83 e1 00 14 lwz r31,20(r1) ffc04c30: 38 21 00 18 addi r1,r1,24 ffc04c34: 4e 80 00 20 blr 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 71 bl ffc10abc ffc04c50: 2b 83 00 02 cmplwi cr7,r3,2 ffc04c54: 41 9d 00 34 bgt- cr7,ffc04c88 <== NEVER TAKEN 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 <== ALWAYS TAKEN 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 fd bl ffc10788 <== NOT EXECUTED } return 0; } ffc04c90: 80 01 00 14 lwz r0,20(r1) ffc04c94: 38 60 00 00 li r3,0 ffc04c98: 83 e1 00 0c lwz r31,12(r1) ffc04c9c: 38 21 00 10 addi r1,r1,16 ffc04ca0: 7c 08 03 a6 mtlr r0 ffc04ca4: 4e 80 00 20 blr ffc04a70 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04a70: 94 21 ff f0 stwu r1,-16(r1) ffc04a74: 7c 08 02 a6 mflr r0 rtems_device_driver status; if ( !initialized ) { ffc04a78: 3d 20 00 00 lis r9,0 rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04a7c: 90 01 00 14 stw r0,20(r1) rtems_device_driver status; if ( !initialized ) { ffc04a80: 88 09 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)) ) { ffc04a84: 93 e1 00 0c stw r31,12(r1) ffc04a88: 7c 7f 1b 78 mr r31,r3 rtems_device_driver status; if ( !initialized ) { ffc04a8c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04a90: 40 be 00 34 bne+ cr7,ffc04ac4 initialized = 1; status = rtems_io_register_name( ffc04a94: 3c 60 ff c2 lis r3,-62 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04a98: 38 00 00 01 li r0,1 status = rtems_io_register_name( ffc04a9c: 38 63 0e 26 addi r3,r3,3622 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04aa0: 98 09 28 a8 stb r0,10408(r9) status = rtems_io_register_name( ffc04aa4: 7f e4 fb 78 mr r4,r31 ffc04aa8: 38 a0 00 00 li r5,0 ffc04aac: 48 00 01 79 bl ffc04c24 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) ffc04ab0: 2f 83 00 00 cmpwi cr7,r3,0 ffc04ab4: 41 be 00 08 beq+ cr7,ffc04abc <== ALWAYS TAKEN rtems_fatal_error_occurred(status); ffc04ab8: 48 00 4d cd bl ffc09884 <== NOT EXECUTED NULL_major = major; ffc04abc: 3d 20 00 00 lis r9,0 ffc04ac0: 93 e9 27 88 stw r31,10120(r9) } return RTEMS_SUCCESSFUL; } ffc04ac4: 80 01 00 14 lwz r0,20(r1) ffc04ac8: 38 60 00 00 li r3,0 ffc04acc: 83 e1 00 0c lwz r31,12(r1) ffc04ad0: 38 21 00 10 addi r1,r1,16 ffc04ad4: 7c 08 03 a6 mtlr r0 ffc04ad8: 4e 80 00 20 blr ffc04a50 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) ffc04a50: 2c 05 00 00 cmpwi r5,0 ffc04a54: 41 82 00 0c beq- ffc04a60 <== ALWAYS TAKEN rw_args->bytes_moved = rw_args->count; ffc04a58: 80 05 00 14 lwz r0,20(r5) <== NOT EXECUTED ffc04a5c: 90 05 00 1c stw r0,28(r5) <== NOT EXECUTED return NULL_SUCCESSFUL; } ffc04a60: 38 60 00 00 li r3,0 ffc04a64: 4e 80 00 20 blr ffc04f14 : 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 dd bl ffc0d458 if ( iop == 0 ) { ffc04f80: 7c 7f 1b 79 mr. r31,r3 ffc04f84: 41 82 02 20 beq- ffc051a4 /* * 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 59 bl ffc118e4 /* * 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 90 bne+ cr7,ffc05040 if ( errno != ENOENT ) { ffc04fb4: 48 00 b6 35 bl ffc105e8 <__errno> ffc04fb8: 80 03 00 00 lwz r0,0(r3) ffc04fbc: 2f 80 00 02 cmpwi cr7,r0,2 ffc04fc0: 41 9e 00 14 beq- cr7,ffc04fd4 rc = errno; ffc04fc4: 48 00 b6 25 bl ffc105e8 <__errno> ffc04fc8: 3b 40 00 00 li r26,0 ffc04fcc: 83 23 00 00 lwz r25,0(r3) goto done; ffc04fd0: 48 00 01 90 b ffc05160 } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { ffc04fd4: 73 c0 02 00 andi. r0,r30,512 ffc04fd8: 3b 40 00 00 li r26,0 ffc04fdc: 3b 20 00 02 li r25,2 ffc04fe0: 41 a2 01 88 beq+ ffc05168 rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); ffc04fe4: 7f a3 eb 78 mr r3,r29 ffc04fe8: 63 64 80 00 ori r4,r27,32768 ffc04fec: 38 a0 00 00 li r5,0 ffc04ff0: 38 c0 00 00 li r6,0 ffc04ff4: 4b ff f7 09 bl ffc046fc if ( rc ) { ffc04ff8: 2f 83 00 00 cmpwi cr7,r3,0 ffc04ffc: 41 9e 00 10 beq- cr7,ffc0500c <== ALWAYS TAKEN rc = errno; ffc05000: 48 00 b5 e9 bl ffc105e8 <__errno> <== NOT EXECUTED ffc05004: 83 23 00 00 lwz r25,0(r3) <== NOT EXECUTED goto done; ffc05008: 48 00 01 58 b ffc05160 <== NOT EXECUTED } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true ); ffc0500c: 7f a3 eb 78 mr r3,r29 ffc05010: 48 00 c8 d5 bl ffc118e4 ffc05014: 7f 86 e3 78 mr r6,r28 ffc05018: 7c 64 1b 78 mr r4,r3 ffc0501c: 38 a0 00 00 li r5,0 ffc05020: 7f a3 eb 78 mr r3,r29 ffc05024: 38 e0 00 01 li r7,1 ffc05028: 4b ff f1 39 bl ffc04160 if ( status != 0 ) { /* The file did not exist */ ffc0502c: 3b 40 00 00 li r26,0 ffc05030: 2f 83 00 00 cmpwi cr7,r3,0 ffc05034: 3b 20 00 0d li r25,13 ffc05038: 40 9e 01 30 bne- cr7,ffc05168 <== NEVER TAKEN ffc0503c: 48 00 00 18 b ffc05054 rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { ffc05040: 73 c0 0a 00 andi. r0,r30,2560 ffc05044: 7f 9a e3 78 mr r26,r28 ffc05048: 3b 20 00 11 li r25,17 ffc0504c: 2f 80 0a 00 cmpwi cr7,r0,2560 ffc05050: 41 9e 01 18 beq- cr7,ffc05168 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; ffc05054: 80 01 00 1c lwz r0,28(r1) iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); ffc05058: 7f c3 f3 78 mr r3,r30 ffc0505c: 83 9f 00 18 lwz r28,24(r31) /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; ffc05060: 90 1f 00 40 stw r0,64(r31) iop->file_info = loc.node_access; ffc05064: 80 01 00 14 lwz r0,20(r1) ffc05068: 90 1f 00 3c stw r0,60(r31) iop->flags |= rtems_libio_fcntl_flags( flags ); ffc0506c: 48 00 84 c9 bl ffc0d534 iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { ffc05070: 81 3f 00 40 lwz r9,64(r31) */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; ffc05074: 80 01 00 20 lwz r0,32(r1) * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); ffc05078: 7c 63 e3 78 or r3,r3,r28 iop->pathinfo = loc; ffc0507c: 81 41 00 18 lwz r10,24(r1) if ( !iop->handlers || !iop->handlers->open_h ) { ffc05080: 2f 89 00 00 cmpwi cr7,r9,0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; ffc05084: 81 61 00 1c lwz r11,28(r1) ffc05088: 81 01 00 14 lwz r8,20(r1) ffc0508c: 91 5f 00 20 stw r10,32(r31) ffc05090: 91 1f 00 1c stw r8,28(r31) ffc05094: 91 7f 00 24 stw r11,36(r31) ffc05098: 90 1f 00 28 stw r0,40(r31) ffc0509c: 80 01 00 24 lwz r0,36(r1) * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); ffc050a0: 90 7f 00 18 stw r3,24(r31) iop->pathinfo = loc; ffc050a4: 90 1f 00 2c stw r0,44(r31) if ( !iop->handlers || !iop->handlers->open_h ) { ffc050a8: 41 9e 01 54 beq- cr7,ffc051fc <== NEVER TAKEN ffc050ac: 80 09 00 00 lwz r0,0(r9) ffc050b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc050b4: 41 9e 01 48 beq- cr7,ffc051fc <== NEVER TAKEN rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); ffc050b8: 7f a4 eb 78 mr r4,r29 ffc050bc: 7c 09 03 a6 mtctr r0 ffc050c0: 7f 66 db 78 mr r6,r27 ffc050c4: 7f e3 fb 78 mr r3,r31 ffc050c8: 7f c5 f3 78 mr r5,r30 ffc050cc: 4e 80 04 21 bctrl if ( rc ) { ffc050d0: 2f 83 00 00 cmpwi cr7,r3,0 ffc050d4: 41 be 00 14 beq+ cr7,ffc050e8 rc = errno; ffc050d8: 48 00 b5 11 bl ffc105e8 <__errno> ffc050dc: 3b 41 00 14 addi r26,r1,20 ffc050e0: 83 23 00 00 lwz r25,0(r3) goto done; ffc050e4: 48 00 00 7c b ffc05160 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { ffc050e8: 73 c0 04 00 andi. r0,r30,1024 ffc050ec: 41 a2 00 c8 beq+ ffc051b4 rc = ftruncate( iop - rtems_libio_iops, 0 ); ffc050f0: 3d 20 00 00 lis r9,0 ffc050f4: 80 69 27 08 lwz r3,9992(r9) ffc050f8: 3c 00 38 e3 lis r0,14563 ffc050fc: 60 00 8e 39 ori r0,r0,36409 ffc05100: 7c 63 f8 50 subf r3,r3,r31 ffc05104: 7c 63 1e 70 srawi r3,r3,3 ffc05108: 7c 63 01 d6 mullw r3,r3,r0 ffc0510c: 38 a0 00 00 li r5,0 ffc05110: 38 c0 00 00 li r6,0 ffc05114: 48 00 7f 99 bl ffc0d0ac if ( rc ) { ffc05118: 7c 79 1b 79 mr. r25,r3 ffc0511c: 41 a2 00 98 beq+ ffc051b4 <== ALWAYS TAKEN if(errno) rc = errno; ffc05120: 48 00 b4 c9 bl ffc105e8 <__errno> <== NOT EXECUTED ffc05124: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc05128: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0512c: 41 be 00 0c beq+ cr7,ffc05138 <== NOT EXECUTED ffc05130: 48 00 b4 b9 bl ffc105e8 <__errno> <== NOT EXECUTED ffc05134: 83 23 00 00 lwz r25,0(r3) <== NOT EXECUTED close( iop - rtems_libio_iops ); ffc05138: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0513c: 80 69 27 08 lwz r3,9992(r9) <== NOT EXECUTED ffc05140: 3c 00 38 e3 lis r0,14563 <== NOT EXECUTED ffc05144: 60 00 8e 39 ori r0,r0,36409 <== NOT EXECUTED ffc05148: 7f e3 f8 50 subf r31,r3,r31 <== NOT EXECUTED ffc0514c: 7f e3 1e 70 srawi r3,r31,3 <== NOT EXECUTED ffc05150: 7c 63 01 d6 mullw r3,r3,r0 <== NOT EXECUTED ffc05154: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc05158: 48 00 7e 8d bl ffc0cfe4 <== NOT EXECUTED ffc0515c: 3b e0 00 00 li r31,0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { ffc05160: 2f 99 00 00 cmpwi cr7,r25,0 ffc05164: 41 be 00 50 beq+ cr7,ffc051b4 <== NEVER TAKEN if ( iop ) ffc05168: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0516c: 41 9e 00 0c beq- cr7,ffc05178 <== NEVER TAKEN rtems_libio_free( iop ); ffc05170: 7f e3 fb 78 mr r3,r31 ffc05174: 48 00 82 71 bl ffc0d3e4 if ( loc_to_free ) ffc05178: 2f 9a 00 00 cmpwi cr7,r26,0 ffc0517c: 41 9e 00 28 beq- cr7,ffc051a4 rtems_filesystem_freenode( loc_to_free ); ffc05180: 81 3a 00 0c lwz r9,12(r26) ffc05184: 2f 89 00 00 cmpwi cr7,r9,0 ffc05188: 41 9e 00 1c beq- cr7,ffc051a4 <== NEVER TAKEN ffc0518c: 80 09 00 1c lwz r0,28(r9) ffc05190: 2f 80 00 00 cmpwi cr7,r0,0 ffc05194: 41 9e 00 10 beq- cr7,ffc051a4 <== NEVER TAKEN ffc05198: 7f 43 d3 78 mr r3,r26 ffc0519c: 7c 09 03 a6 mtctr r0 ffc051a0: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( rc ); ffc051a4: 48 00 b4 45 bl ffc105e8 <__errno> ffc051a8: 93 23 00 00 stw r25,0(r3) ffc051ac: 38 60 ff ff li r3,-1 ffc051b0: 48 00 00 20 b ffc051d0 } return iop - rtems_libio_iops; ffc051b4: 3d 20 00 00 lis r9,0 ffc051b8: 80 69 27 08 lwz r3,9992(r9) ffc051bc: 3c 00 38 e3 lis r0,14563 ffc051c0: 60 00 8e 39 ori r0,r0,36409 ffc051c4: 7c 63 f8 50 subf r3,r3,r31 ffc051c8: 7c 63 1e 70 srawi r3,r3,3 ffc051cc: 7c 63 01 d6 mullw r3,r3,r0 } ffc051d0: 80 01 00 54 lwz r0,84(r1) ffc051d4: 83 21 00 34 lwz r25,52(r1) ffc051d8: 7c 08 03 a6 mtlr r0 ffc051dc: 83 41 00 38 lwz r26,56(r1) ffc051e0: 83 61 00 3c lwz r27,60(r1) ffc051e4: 83 81 00 40 lwz r28,64(r1) ffc051e8: 83 a1 00 44 lwz r29,68(r1) ffc051ec: 83 c1 00 48 lwz r30,72(r1) ffc051f0: 83 e1 00 4c lwz r31,76(r1) ffc051f4: 38 21 00 50 addi r1,r1,80 ffc051f8: 4e 80 00 20 blr if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; ffc051fc: 3b 41 00 14 addi r26,r1,20 <== NOT EXECUTED ffc05200: 3b 20 00 86 li r25,134 <== NOT EXECUTED ffc05204: 4b ff ff 64 b ffc05168 <== 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 70 addi r31,r31,-16272 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 <== ALWAYS TAKEN 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 <== ALWAYS TAKEN 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 d9 bl ffc085d4 <== NOT EXECUTED } ffc04f00: 80 01 00 14 lwz r0,20(r1) ffc04f04: 83 e1 00 0c lwz r31,12(r1) ffc04f08: 38 21 00 10 addi r1,r1,16 ffc04f0c: 7c 08 03 a6 mtlr r0 ffc04f10: 4e 80 00 20 blr ffc05ac8 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05ac8: 94 21 ff e8 stwu r1,-24(r1) ffc05acc: 7c 08 02 a6 mflr r0 ffc05ad0: 90 01 00 1c stw r0,28(r1) int i; if (tty->termios.c_oflag & OPOST) { ffc05ad4: 80 04 00 34 lwz r0,52(r4) /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05ad8: 93 e1 00 14 stw r31,20(r1) ffc05adc: 7c 9f 23 78 mr r31,r4 int i; if (tty->termios.c_oflag & OPOST) { ffc05ae0: 70 09 00 01 andi. r9,r0,1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05ae4: 98 61 00 08 stb r3,8(r1) int i; if (tty->termios.c_oflag & OPOST) { ffc05ae8: 41 82 01 3c beq- ffc05c24 <== NEVER TAKEN switch (c) { ffc05aec: 2f 83 00 09 cmpwi cr7,r3,9 ffc05af0: 41 9e 00 94 beq- cr7,ffc05b84 ffc05af4: 2b 83 00 09 cmplwi cr7,r3,9 ffc05af8: 41 9d 00 10 bgt- cr7,ffc05b08 <== ALWAYS TAKEN ffc05afc: 2f 83 00 08 cmpwi cr7,r3,8 <== NOT EXECUTED ffc05b00: 40 be 00 cc bne+ cr7,ffc05bcc <== NOT EXECUTED ffc05b04: 48 00 00 b0 b ffc05bb4 <== NOT EXECUTED ffc05b08: 2f 83 00 0a cmpwi cr7,r3,10 ffc05b0c: 41 9e 00 10 beq- cr7,ffc05b1c ffc05b10: 2f 83 00 0d cmpwi cr7,r3,13 ffc05b14: 40 be 00 b8 bne+ cr7,ffc05bcc <== ALWAYS TAKEN ffc05b18: 48 00 00 38 b ffc05b50 <== NOT EXECUTED case '\n': if (tty->termios.c_oflag & ONLRET) ffc05b1c: 70 09 00 20 andi. r9,r0,32 ffc05b20: 41 82 00 0c beq- ffc05b2c <== ALWAYS TAKEN tty->column = 0; ffc05b24: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc05b28: 90 04 00 28 stw r0,40(r4) <== NOT EXECUTED if (tty->termios.c_oflag & ONLCR) { ffc05b2c: 80 1f 00 34 lwz r0,52(r31) ffc05b30: 70 09 00 04 andi. r9,r0,4 ffc05b34: 41 a2 00 f0 beq+ ffc05c24 <== NEVER TAKEN rtems_termios_puts ("\r", 1, tty); ffc05b38: 3c 60 ff c2 lis r3,-62 ffc05b3c: 38 63 c8 a3 addi r3,r3,-14173 ffc05b40: 38 80 00 01 li r4,1 ffc05b44: 7f e5 fb 78 mr r5,r31 ffc05b48: 4b ff fe 09 bl ffc05950 ffc05b4c: 48 00 00 30 b ffc05b7c tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) ffc05b50: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED ffc05b54: 41 82 00 10 beq- ffc05b64 <== NOT EXECUTED ffc05b58: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED ffc05b5c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05b60: 41 9e 00 d4 beq- cr7,ffc05c34 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { ffc05b64: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc05b68: 41 82 00 5c beq- ffc05bc4 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) ffc05b6c: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) return; if (tty->termios.c_oflag & OCRNL) { c = '\n'; ffc05b70: 38 00 00 0a li r0,10 <== NOT EXECUTED ffc05b74: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) ffc05b78: 41 82 00 ac beq- ffc05c24 <== NOT EXECUTED tty->column = 0; ffc05b7c: 38 00 00 00 li r0,0 ffc05b80: 48 00 00 a0 b ffc05c20 tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { ffc05b84: 54 00 04 e8 rlwinm r0,r0,0,19,20 ffc05b88: 2f 80 18 00 cmpwi cr7,r0,6144 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); ffc05b8c: 80 04 00 28 lwz r0,40(r4) ffc05b90: 54 04 07 7e clrlwi r4,r0,29 ffc05b94: 20 84 00 08 subfic r4,r4,8 ffc05b98: 7c 04 02 14 add r0,r4,r0 if ((tty->termios.c_oflag & TABDLY) == XTABS) { ffc05b9c: 40 be 00 84 bne+ cr7,ffc05c20 <== NEVER TAKEN tty->column += i; rtems_termios_puts ( " ", i, tty); ffc05ba0: 3c 60 ff c2 lis r3,-62 break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; ffc05ba4: 90 1f 00 28 stw r0,40(r31) rtems_termios_puts ( " ", i, tty); ffc05ba8: 38 63 c5 c2 addi r3,r3,-14910 ffc05bac: 7f e5 fb 78 mr r5,r31 ffc05bb0: 48 00 00 80 b ffc05c30 } tty->column += i; break; case '\b': if (tty->column > 0) ffc05bb4: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED ffc05bb8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05bbc: 40 9d 00 68 ble- cr7,ffc05c24 <== NOT EXECUTED tty->column--; ffc05bc0: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05bc4: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED ffc05bc8: 48 00 00 5c b ffc05c24 <== NOT EXECUTED break; default: if (tty->termios.c_oflag & OLCUC) ffc05bcc: 70 09 00 02 andi. r9,r0,2 ffc05bd0: 41 82 00 2c beq- ffc05bfc <== ALWAYS TAKEN c = toupper(c); ffc05bd4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05bd8: 80 09 26 a0 lwz r0,9888(r9) <== NOT EXECUTED ffc05bdc: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED ffc05be0: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED ffc05be4: 88 03 00 01 lbz r0,1(r3) <== NOT EXECUTED ffc05be8: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED ffc05bec: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc05bf0: 40 be 00 08 bne+ cr7,ffc05bf8 <== NOT EXECUTED ffc05bf4: 39 29 ff e0 addi r9,r9,-32 <== NOT EXECUTED ffc05bf8: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED if (!iscntrl(c)) ffc05bfc: 3d 20 00 00 lis r9,0 ffc05c00: 88 01 00 08 lbz r0,8(r1) ffc05c04: 81 29 26 a0 lwz r9,9888(r9) ffc05c08: 7d 29 02 14 add r9,r9,r0 ffc05c0c: 88 09 00 01 lbz r0,1(r9) ffc05c10: 70 09 00 20 andi. r9,r0,32 ffc05c14: 40 82 00 10 bne- ffc05c24 <== NEVER TAKEN tty->column++; ffc05c18: 81 3f 00 28 lwz r9,40(r31) ffc05c1c: 38 09 00 01 addi r0,r9,1 ffc05c20: 90 1f 00 28 stw r0,40(r31) break; } } rtems_termios_puts (&c, 1, tty); ffc05c24: 7f e5 fb 78 mr r5,r31 ffc05c28: 38 61 00 08 addi r3,r1,8 ffc05c2c: 38 80 00 01 li r4,1 ffc05c30: 4b ff fd 21 bl ffc05950 } ffc05c34: 80 01 00 1c lwz r0,28(r1) ffc05c38: 83 e1 00 14 lwz r31,20(r1) ffc05c3c: 38 21 00 18 addi r1,r1,24 ffc05c40: 7c 08 03 a6 mtlr r0 ffc05c44: 4e 80 00 20 blr ffc10010 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc10010: 94 21 ff b8 stwu r1,-72(r1) ffc10014: 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) ffc10018: 38 80 00 03 li r4,3 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc1001c: 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) ffc10020: 3f a0 ff c2 lis r29,-62 ffc10024: 3b bd cc 78 addi r29,r29,-13192 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc10028: 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) ffc1002c: 3b c1 00 18 addi r30,r1,24 ffc10030: 38 a0 00 07 li r5,7 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc10034: 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) ffc10038: 7f c6 f3 78 mr r6,r30 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc1003c: 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) ffc10040: 38 e0 00 01 li r7,1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc10044: 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) ffc10048: 7f a3 eb 78 mr r3,r29 ffc1004c: 4b ff 41 15 bl ffc04160 ffc10050: 2f 83 00 00 cmpwi cr7,r3,0 ffc10054: 41 be 00 2c beq+ cr7,ffc10080 <== NEVER TAKEN != 0) { if (errno != ENOENT) ffc10058: 48 00 05 91 bl ffc105e8 <__errno> ffc1005c: 80 03 00 00 lwz r0,0(r3) ffc10060: 2f 80 00 02 cmpwi cr7,r0,2 ffc10064: 40 be 01 44 bne+ cr7,ffc101a8 <== NEVER TAKEN return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) ffc10068: 7f a3 eb 78 mr r3,r29 ffc1006c: 38 80 03 ff li r4,1023 ffc10070: 4b ff 46 61 bl ffc046d0 ffc10074: 2f 83 00 00 cmpwi cr7,r3,0 ffc10078: 41 be 00 2c beq+ cr7,ffc100a4 <== ALWAYS TAKEN ffc1007c: 48 00 01 2c b ffc101a8 <== NOT EXECUTED return -1; } else rtems_filesystem_freenode(&loc); ffc10080: 81 21 00 24 lwz r9,36(r1) <== NOT EXECUTED ffc10084: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc10088: 41 9e 00 1c beq- cr7,ffc100a4 <== NOT EXECUTED ffc1008c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc10090: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10094: 41 9e 00 10 beq- cr7,ffc100a4 <== NOT EXECUTED ffc10098: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc1009c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc100a0: 4e 80 04 21 bctrl <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc100a4: 3d 20 00 00 lis r9,0 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc100a8: 3d 40 ff c2 lis r10,-62 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc100ac: a1 09 27 b0 lhz r8,10160(r9) else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc100b0: 39 6a cc 7d addi r11,r10,-13187 ffc100b4: 81 4a cc 7d lwz r10,-13187(r10) ffc100b8: a0 0b 00 08 lhz r0,8(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc100bc: 3c 80 ff c2 lis r4,-62 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc100c0: 81 6b 00 04 lwz r11,4(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc100c4: 7d 05 43 78 mr r5,r8 ffc100c8: 38 84 cc 88 addi r4,r4,-13176 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc100cc: 91 41 00 08 stw r10,8(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc100d0: 39 08 00 01 addi r8,r8,1 ffc100d4: 38 61 00 12 addi r3,r1,18 ffc100d8: 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) { ffc100dc: 3b c1 00 08 addi r30,r1,8 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc100e0: 91 61 00 0c stw r11,12(r1) ffc100e4: b0 01 00 10 sth r0,16(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc100e8: 4c c6 31 82 crclr 4*cr1+eq ffc100ec: 48 00 13 c5 bl ffc114b0 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { ffc100f0: 7f c3 f3 78 mr r3,r30 ffc100f4: 38 80 01 80 li r4,384 ffc100f8: 48 00 01 49 bl ffc10240 ffc100fc: 2f 83 00 00 cmpwi cr7,r3,0 ffc10100: 41 be 00 0c beq+ cr7,ffc1010c <== ALWAYS TAKEN if (errno != EEXIST){ ffc10104: 48 00 04 e5 bl ffc105e8 <__errno> <== NOT EXECUTED ffc10108: 48 00 00 a0 b ffc101a8 <== 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); ffc1010c: 7f c3 f3 78 mr r3,r30 ffc10110: 38 80 40 00 li r4,16384 ffc10114: 4c c6 31 82 crclr 4*cr1+eq ffc10118: 4b ff 4d fd bl ffc04f14 if (filsdes[0] < 0) { ffc1011c: 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); ffc10120: 90 7f 00 00 stw r3,0(r31) if (filsdes[0] < 0) { ffc10124: 40 bc 00 14 bge+ cr7,ffc10138 <== NEVER TAKEN err = errno; ffc10128: 48 00 04 c1 bl ffc105e8 <__errno> ffc1012c: 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); ffc10130: 7f c3 f3 78 mr r3,r30 ffc10134: 48 00 00 68 b ffc1019c } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); ffc10138: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc1013c: 80 09 26 4c lwz r0,9804(r9) <== NOT EXECUTED ffc10140: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc10144: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc10148: 40 9c 00 14 bge- cr7,ffc1015c <== NOT EXECUTED ffc1014c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc10150: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc10154: 81 29 27 08 lwz r9,9992(r9) <== NOT EXECUTED ffc10158: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc1015c: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); ffc10160: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc10164: 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; ffc10168: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc1016c: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { ffc10170: 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); ffc10174: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc10178: 4b ff 4d 9d bl ffc04f14 <== NOT EXECUTED if (filsdes[1] < 0) { ffc1017c: 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); ffc10180: 90 7f 00 04 stw r3,4(r31) <== NOT EXECUTED if (filsdes[1] < 0) { ffc10184: 40 bc 00 14 bge+ cr7,ffc10198 <== NOT EXECUTED err = errno; ffc10188: 48 00 04 61 bl ffc105e8 <__errno> <== NOT EXECUTED ffc1018c: 83 a3 00 00 lwz r29,0(r3) <== NOT EXECUTED close(filsdes[0]); ffc10190: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10194: 4b ff ce 51 bl ffc0cfe4 <== NOT EXECUTED } unlink(fifopath); ffc10198: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc1019c: 48 00 00 d1 bl ffc1026c } rtems_set_errno_and_return_minus_one(err); ffc101a0: 48 00 04 49 bl ffc105e8 <__errno> ffc101a4: 93 a3 00 00 stw r29,0(r3) } ffc101a8: 80 01 00 4c lwz r0,76(r1) ffc101ac: 38 60 ff ff li r3,-1 ffc101b0: 83 a1 00 3c lwz r29,60(r1) ffc101b4: 7c 08 03 a6 mtlr r0 ffc101b8: 83 c1 00 40 lwz r30,64(r1) ffc101bc: 83 e1 00 44 lwz r31,68(r1) ffc101c0: 38 21 00 48 addi r1,r1,72 ffc101c4: 4e 80 00 20 blr ffc0ee60 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { ffc0ee60: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0ee64: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0ee68: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0ee6c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc0ee70: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); ffc0ee74: 80 63 00 2c lwz r3,44(r3) <== NOT EXECUTED ffc0ee78: 48 00 09 d1 bl ffc0f848 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); ffc0ee7c: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0ee80: 48 00 09 c9 bl ffc0f848 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); ffc0ee84: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ee88: 4b ff 8e 59 bl ffc07ce0 <== NOT EXECUTED free(pipe->Buffer); ffc0ee8c: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0ee90: 4b ff 53 b5 bl ffc04244 <== NOT EXECUTED free(pipe); ffc0ee94: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0ee98: 4b ff 53 ad bl ffc04244 <== NOT EXECUTED } ffc0ee9c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0eea0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0eea4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0eea8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0eeac: 4e 80 00 20 blr <== NOT EXECUTED ffc0e9cc : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc0e9cc: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0e9d0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0e9d4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (cmd == FIONREAD) { ffc0e9d8: 3c 00 40 04 lis r0,16388 <== NOT EXECUTED ffc0e9dc: 60 00 66 7f ori r0,r0,26239 <== NOT EXECUTED ffc0e9e0: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc0e9e4: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc0e9e8: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED ffc0e9ec: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc0e9f0: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (cmd == FIONREAD) { ffc0e9f4: 38 60 ff ea li r3,-22 <== NOT EXECUTED ffc0e9f8: 40 be 00 40 bne+ cr7,ffc0ea38 <== NOT EXECUTED if (buffer == NULL) ffc0e9fc: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc0ea00: 38 60 ff f2 li r3,-14 <== NOT EXECUTED ffc0ea04: 41 be 00 34 beq+ cr7,ffc0ea38 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) ffc0ea08: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ea0c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0ea10: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0ea14: 4b ff 93 99 bl ffc07dac <== NOT EXECUTED ffc0ea18: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0ea1c: 38 60 ff fc li r3,-4 <== NOT EXECUTED ffc0ea20: 40 be 00 18 bne+ cr7,ffc0ea38 <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc0ea24: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ea28: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc0ea2c: 90 1e 00 00 stw r0,0(r30) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ea30: 4b ff 94 c1 bl ffc07ef0 <== NOT EXECUTED ffc0ea34: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; } return -EINVAL; } ffc0ea38: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0ea3c: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc0ea40: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ea44: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0ea48: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0ea4c: 4e 80 00 20 blr <== NOT EXECUTED ffc0e954 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } ffc0e954: 38 60 ff e3 li r3,-29 <== NOT EXECUTED ffc0e958: 4e 80 00 20 blr <== NOT EXECUTED ffc0ec70 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec70: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc0ec74: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0ec78: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc0ec7c: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED ffc0ec80: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ec84: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec88: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc0ec8c: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ec90: 38 80 00 00 li r4,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ec94: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc0ec98: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ec9c: 38 a0 00 00 li r5,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0eca0: 93 01 00 18 stw r24,24(r1) <== NOT EXECUTED ffc0eca4: 7c d8 33 78 mr r24,r6 <== NOT EXECUTED ffc0eca8: 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); ffc0ecac: 3b 21 00 08 addi r25,r1,8 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ecb0: 93 81 00 28 stw r28,40(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ecb4: 3b 80 00 00 li r28,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ecb8: 93 41 00 20 stw r26,32(r1) <== NOT EXECUTED ffc0ecbc: 93 61 00 24 stw r27,36(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0ecc0: 4b ff 90 ed bl ffc07dac <== NOT EXECUTED ffc0ecc4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0ecc8: 41 be 01 44 beq+ cr7,ffc0ee0c <== NOT EXECUTED ffc0eccc: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc0ecd0: 48 00 01 5c b ffc0ee2c <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) ffc0ecd4: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0ecd8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ecdc: 41 9e 01 38 beq- cr7,ffc0ee14 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { ffc0ece0: 80 18 00 18 lwz r0,24(r24) <== NOT EXECUTED ffc0ece4: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0ece8: 41 a2 00 0c beq+ ffc0ecf4 <== NOT EXECUTED ffc0ecec: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED ffc0ecf0: 48 00 01 28 b ffc0ee18 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; ffc0ecf4: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ecf8: 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 ++; ffc0ecfc: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc0ed00: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ed04: 4b ff 91 ed bl ffc07ef0 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc0ed08: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0ed0c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0ed10: 48 00 0c 41 bl ffc0f950 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0ed14: 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)) ffc0ed18: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED ffc0ed1c: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0ed20: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ed24: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0ed28: 4b ff 90 85 bl ffc07dac <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ffc0ed2c: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0ed30: 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)) ffc0ed34: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) ffc0ed38: 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)) { ffc0ed3c: 41 ba 00 0c beq+ cr6,ffc0ed48 <== NOT EXECUTED ffc0ed40: 3b 60 ff fc li r27,-4 <== NOT EXECUTED ffc0ed44: 48 00 00 dc b ffc0ee20 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; ffc0ed48: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED ffc0ed4c: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0ed50: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED if (ret != 0) ffc0ed54: 40 9e 00 c4 bne- cr7,ffc0ee18 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { ffc0ed58: 83 7f 00 0c lwz r27,12(r31) <== NOT EXECUTED ffc0ed5c: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc0ed60: 41 9e ff 74 beq+ cr7,ffc0ecd4 <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); ffc0ed64: 7c 1c f0 50 subf r0,r28,r30 <== NOT EXECUTED ffc0ed68: 7f 9b 00 40 cmplw cr7,r27,r0 <== NOT EXECUTED ffc0ed6c: 40 9d 00 08 ble- cr7,ffc0ed74 <== NOT EXECUTED ffc0ed70: 7c 1b 03 78 mr r27,r0 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; ffc0ed74: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc0ed78: 7c 7d e2 14 add r3,r29,r28 <== NOT EXECUTED ffc0ed7c: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED ffc0ed80: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc0ed84: 7f 40 d0 50 subf r26,r0,r26 <== NOT EXECUTED if (chunk > chunk1) { ffc0ed88: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED ffc0ed8c: 40 9d 00 24 ble- cr7,ffc0edb0 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); ffc0ed90: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc0ed94: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc0ed98: 48 00 24 39 bl ffc111d0 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); ffc0ed9c: 7c 7c d2 14 add r3,r28,r26 <== NOT EXECUTED ffc0eda0: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc0eda4: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc0eda8: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED ffc0edac: 48 00 00 0c b ffc0edb8 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); ffc0edb0: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc0edb4: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc0edb8: 48 00 24 19 bl ffc111d0 <== NOT EXECUTED pipe->Start += chunk; ffc0edbc: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED pipe->Start %= pipe->Size; ffc0edc0: 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; ffc0edc4: 7d 3b 4a 14 add r9,r27,r9 <== NOT EXECUTED pipe->Start %= pipe->Size; pipe->Length -= chunk; ffc0edc8: 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; ffc0edcc: 7d 49 5b 96 divwu r10,r9,r11 <== NOT EXECUTED pipe->Length -= chunk; ffc0edd0: 7c 1b 00 50 subf r0,r27,r0 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc0edd4: 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; ffc0edd8: 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; ffc0eddc: 7d 6a 59 d6 mullw r11,r10,r11 <== NOT EXECUTED ffc0ede0: 7d 2b 48 50 subf r9,r11,r9 <== NOT EXECUTED ffc0ede4: 91 3f 00 08 stw r9,8(r31) <== NOT EXECUTED pipe->Length -= chunk; /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc0ede8: 40 9e 00 08 bne- cr7,ffc0edf0 <== NOT EXECUTED pipe->Start = 0; ffc0edec: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED if (pipe->waitingWriters > 0) ffc0edf0: 80 1f 00 1c lwz r0,28(r31) <== NOT EXECUTED ffc0edf4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0edf8: 41 be 00 10 beq+ cr7,ffc0ee08 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0edfc: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0ee00: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc0ee04: 48 00 0a cd bl ffc0f8d0 <== NOT EXECUTED read += chunk; ffc0ee08: 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) { ffc0ee0c: 7f 9c f0 40 cmplw cr7,r28,r30 <== NOT EXECUTED ffc0ee10: 41 9c ff 48 blt+ cr7,ffc0ed58 <== NOT EXECUTED ffc0ee14: 3b 60 00 00 li r27,0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); ffc0ee18: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ee1c: 4b ff 90 d5 bl ffc07ef0 <== NOT EXECUTED out_nolock: if (read > 0) ffc0ee20: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0ee24: 41 bd 00 08 bgt+ cr7,ffc0ee2c <== NOT EXECUTED ffc0ee28: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED return read; return ret; } ffc0ee2c: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc0ee30: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0ee34: 83 01 00 18 lwz r24,24(r1) <== NOT EXECUTED ffc0ee38: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ee3c: 83 21 00 1c lwz r25,28(r1) <== NOT EXECUTED ffc0ee40: 83 41 00 20 lwz r26,32(r1) <== NOT EXECUTED ffc0ee44: 83 61 00 24 lwz r27,36(r1) <== NOT EXECUTED ffc0ee48: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED ffc0ee4c: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc0ee50: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc0ee54: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc0ee58: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc0ee5c: 4e 80 00 20 blr <== NOT EXECUTED ffc0eeb0 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0eeb0: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0eeb4: 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, ffc0eeb8: 38 a0 00 00 li r5,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0eebc: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc0eec0: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED pipe_control_t *pipe = *pipep; ffc0eec4: 83 e3 00 00 lwz r31,0(r3) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0eec8: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc0eecc: 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, ffc0eed0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0eed4: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc0eed8: 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, ffc0eedc: 38 80 00 00 li r4,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0eee0: 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, ffc0eee4: 4b ff 8e c9 bl ffc07dac <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) ffc0eee8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0eeec: 40 9e 00 50 bne- cr7,ffc0ef3c <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); ffc0eef0: 83 de 00 18 lwz r30,24(r30) <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc0eef4: 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); ffc0eef8: 57 de 07 7c rlwinm r30,r30,0,29,30 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc0eefc: 41 82 00 10 beq- ffc0ef0c <== NOT EXECUTED pipe->Readers --; ffc0ef00: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED ffc0ef04: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0ef08: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) ffc0ef0c: 73 c0 00 04 andi. r0,r30,4 <== NOT EXECUTED ffc0ef10: 41 82 00 10 beq- ffc0ef20 <== NOT EXECUTED pipe->Writers --; ffc0ef14: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED ffc0ef18: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0ef1c: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0ef20: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0ef24: 80 69 28 fc lwz r3,10492(r9) <== NOT EXECUTED ffc0ef28: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0ef2c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0ef30: 4b ff 8e 7d bl ffc07dac <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) ffc0ef34: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0ef38: 41 be 00 08 beq+ cr7,ffc0ef40 <== NOT EXECUTED rtems_fatal_error_occurred(sc); ffc0ef3c: 4b ff 96 99 bl ffc085d4 <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0ef40: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ef44: 4b ff 8f ad bl ffc07ef0 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { ffc0ef48: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0ef4c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ef50: 40 9e 00 30 bne- cr7,ffc0ef80 <== NOT EXECUTED ffc0ef54: 83 9f 00 14 lwz r28,20(r31) <== NOT EXECUTED ffc0ef58: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0ef5c: 40 be 00 14 bne+ cr7,ffc0ef70 <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); ffc0ef60: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0ef64: 4b ff fe fd bl ffc0ee60 <== NOT EXECUTED *pipep = NULL; ffc0ef68: 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) { ffc0ef6c: 48 00 00 34 b ffc0efa0 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) ffc0ef70: 2f 9e 00 04 cmpwi cr7,r30,4 <== NOT EXECUTED ffc0ef74: 41 be 00 0c beq+ cr7,ffc0ef80 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); ffc0ef78: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0ef7c: 48 00 00 1c b ffc0ef98 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) ffc0ef80: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0ef84: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ef88: 40 9e 00 18 bne- cr7,ffc0efa0 <== NOT EXECUTED ffc0ef8c: 2f 9e 00 02 cmpwi cr7,r30,2 <== NOT EXECUTED ffc0ef90: 41 9e 00 10 beq- cr7,ffc0efa0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0ef94: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0ef98: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0ef9c: 48 00 09 35 bl ffc0f8d0 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); ffc0efa0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0efa4: 80 69 28 fc lwz r3,10492(r9) <== NOT EXECUTED ffc0efa8: 4b ff 8f 49 bl ffc07ef0 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc0efac: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0efb0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0efb4: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc0efb8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0efbc: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0efc0: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0efc4: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0efc8: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0efcc: 4e 80 00 20 blr <== NOT EXECUTED ffc0ea50 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ea50: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc0ea54: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0ea58: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0ea5c: 7c be 2b 79 mr. r30,r5 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ea60: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED ffc0ea64: 7c d7 33 78 mr r23,r6 <== NOT EXECUTED ffc0ea68: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0ea6c: 3b 80 00 00 li r28,0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0ea70: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc0ea74: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED ffc0ea78: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc0ea7c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0ea80: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc0ea84: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED ffc0ea88: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc0ea8c: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED ffc0ea90: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0ea94: 41 a2 01 a4 beq+ ffc0ec38 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) ffc0ea98: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED ffc0ea9c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0eaa0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0eaa4: 4b ff 93 09 bl ffc07dac <== NOT EXECUTED ffc0eaa8: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc0eaac: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0eab0: 40 9e 01 88 bne- cr7,ffc0ec38 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { ffc0eab4: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0eab8: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc0eabc: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc0eac0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0eac4: 41 9e 01 60 beq- cr7,ffc0ec24 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; ffc0eac8: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc0eacc: 7f d9 f3 78 mr r25,r30 <== NOT EXECUTED ffc0ead0: 7f 9e 00 40 cmplw cr7,r30,r0 <== NOT EXECUTED ffc0ead4: 40 9d 00 08 ble- cr7,ffc0eadc <== NOT EXECUTED ffc0ead8: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc0eadc: 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); ffc0eae0: 3b 01 00 08 addi r24,r1,8 <== NOT EXECUTED ffc0eae4: 48 00 01 34 b ffc0ec18 <== 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)) { ffc0eae8: 80 17 00 18 lwz r0,24(r23) <== NOT EXECUTED ffc0eaec: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0eaf0: 41 a2 00 0c beq+ ffc0eafc <== NOT EXECUTED ffc0eaf4: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED ffc0eaf8: 48 00 01 2c b ffc0ec24 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; ffc0eafc: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0eb00: 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 ++; ffc0eb04: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc0eb08: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0eb0c: 4b ff 93 e5 bl ffc07ef0 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc0eb10: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0eb14: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0eb18: 48 00 0e 39 bl ffc0f950 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0eb1c: 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)) ffc0eb20: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED ffc0eb24: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0eb28: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0eb2c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0eb30: 4b ff 92 7d bl ffc07dac <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ffc0eb34: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0eb38: 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)) ffc0eb3c: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) ffc0eb40: 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)) { ffc0eb44: 41 ba 00 0c beq+ cr6,ffc0eb50 <== NOT EXECUTED ffc0eb48: 3b 60 ff fc li r27,-4 <== NOT EXECUTED ffc0eb4c: 48 00 00 e0 b ffc0ec2c <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; ffc0eb50: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED ffc0eb54: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0eb58: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED if (ret != 0) ffc0eb5c: 40 9e 00 c8 bne- cr7,ffc0ec24 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { ffc0eb60: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0eb64: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0eb68: 40 be 00 0c bne+ cr7,ffc0eb74 <== NOT EXECUTED ffc0eb6c: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc0eb70: 48 00 00 b4 b ffc0ec24 <== 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) { ffc0eb74: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED ffc0eb78: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED ffc0eb7c: 7f 60 d0 50 subf r27,r0,r26 <== NOT EXECUTED ffc0eb80: 7f 9b c8 40 cmplw cr7,r27,r25 <== NOT EXECUTED ffc0eb84: 41 9c ff 64 blt+ cr7,ffc0eae8 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); ffc0eb88: 7d 3c f0 50 subf r9,r28,r30 <== NOT EXECUTED ffc0eb8c: 7f 9b 48 40 cmplw cr7,r27,r9 <== NOT EXECUTED ffc0eb90: 40 9d 00 08 ble- cr7,ffc0eb98 <== NOT EXECUTED ffc0eb94: 7d 3b 4b 78 mr r27,r9 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); ffc0eb98: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED ffc0eb9c: 7c 9d e2 14 add r4,r29,r28 <== NOT EXECUTED ffc0eba0: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0eba4: 7d 20 4a 14 add r9,r0,r9 <== NOT EXECUTED ffc0eba8: 7c 09 d3 96 divwu r0,r9,r26 <== NOT EXECUTED ffc0ebac: 7c 00 d1 d6 mullw r0,r0,r26 <== NOT EXECUTED ffc0ebb0: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED ffc0ebb4: 7f 40 d0 50 subf r26,r0,r26 <== NOT EXECUTED if (chunk > chunk1) { ffc0ebb8: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED ffc0ebbc: 40 9d 00 24 ble- cr7,ffc0ebe0 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); ffc0ebc0: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc0ebc4: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc0ebc8: 48 00 26 09 bl ffc111d0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); ffc0ebcc: 7c 9a e2 14 add r4,r26,r28 <== NOT EXECUTED ffc0ebd0: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0ebd4: 7c 9d 22 14 add r4,r29,r4 <== NOT EXECUTED ffc0ebd8: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED ffc0ebdc: 48 00 00 0c b ffc0ebe8 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); ffc0ebe0: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc0ebe4: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc0ebe8: 48 00 25 e9 bl ffc111d0 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) ffc0ebec: 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; ffc0ebf0: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc0ebf4: 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; ffc0ebf8: 7c 00 da 14 add r0,r0,r27 <== NOT EXECUTED ffc0ebfc: 90 1f 00 0c stw r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc0ec00: 41 be 00 10 beq+ cr7,ffc0ec10 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0ec04: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0ec08: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc0ec0c: 48 00 0c c5 bl ffc0f8d0 <== NOT EXECUTED written += chunk; ffc0ec10: 7f 9c da 14 add r28,r28,r27 <== NOT EXECUTED ffc0ec14: 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) { ffc0ec18: 7f 9c f0 40 cmplw cr7,r28,r30 <== NOT EXECUTED ffc0ec1c: 41 9c ff 58 blt+ cr7,ffc0eb74 <== NOT EXECUTED ffc0ec20: 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); ffc0ec24: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0ec28: 4b ff 92 c9 bl ffc07ef0 <== NOT EXECUTED /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); #endif if (written > 0) ffc0ec2c: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0ec30: 41 bd 00 08 bgt+ cr7,ffc0ec38 <== NOT EXECUTED ffc0ec34: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED return written; return ret; } ffc0ec38: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc0ec3c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0ec40: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc0ec44: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ec48: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc0ec4c: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc0ec50: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc0ec54: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc0ec58: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc0ec5c: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc0ec60: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc0ec64: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc0ec68: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc0ec6c: 4e 80 00 20 blr <== NOT EXECUTED ffc088a4 : int posix_memalign( void **pointer, size_t alignment, size_t size ) { ffc088a4: 7c 08 02 a6 mflr r0 ffc088a8: 94 21 ff f8 stwu r1,-8(r1) ffc088ac: 90 01 00 0c stw r0,12(r1) /* * Update call statistics */ MSBUMP(memalign_calls, 1); if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) ffc088b0: 38 04 ff ff addi r0,r4,-1 ffc088b4: 7c 0b 20 39 and. r11,r0,r4 ) { /* * Update call statistics */ MSBUMP(memalign_calls, 1); ffc088b8: 3d 60 00 00 lis r11,0 ffc088bc: 39 6b 33 90 addi r11,r11,13200 ffc088c0: 81 4b 00 08 lwz r10,8(r11) ffc088c4: 38 0a 00 01 addi r0,r10,1 ffc088c8: 90 0b 00 08 stw r0,8(r11) if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) ffc088cc: 40 82 00 14 bne- ffc088e0 <== NEVER TAKEN ffc088d0: 2b 84 00 03 cmplwi cr7,r4,3 ffc088d4: 40 bd 00 0c ble+ cr7,ffc088e0 /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); ffc088d8: 48 00 02 75 bl ffc08b4c ffc088dc: 48 00 00 08 b ffc088e4 ffc088e0: 38 60 00 16 li r3,22 } ffc088e4: 80 01 00 0c lwz r0,12(r1) ffc088e8: 38 21 00 08 addi r1,r1,8 ffc088ec: 7c 08 03 a6 mtlr r0 ffc088f0: 4e 80 00 20 blr ffc0521c : * printk * * Kernel printf function requiring minimal infrastrure. */ void printk(const char *fmt, ...) { ffc0521c: 94 21 ff 88 stwu r1,-120(r1) ffc05220: 7c 08 02 a6 mflr r0 ffc05224: 90 81 00 1c stw r4,28(r1) ffc05228: 90 01 00 7c stw r0,124(r1) ffc0522c: 90 a1 00 20 stw r5,32(r1) ffc05230: 90 c1 00 24 stw r6,36(r1) ffc05234: 90 e1 00 28 stw r7,40(r1) ffc05238: 91 01 00 2c stw r8,44(r1) ffc0523c: 91 21 00 30 stw r9,48(r1) ffc05240: 91 41 00 34 stw r10,52(r1) ffc05244: 40 86 00 24 bne- cr1,ffc05268 <== ALWAYS TAKEN ffc05248: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc0524c: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc05250: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc05254: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc05258: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc0525c: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc05260: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc05264: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED va_list ap; /* points to each unnamed argument in turn */ va_start(ap, fmt); /* make ap point to 1st unnamed arg */ ffc05268: 38 00 00 01 li r0,1 ffc0526c: 98 01 00 08 stb r0,8(r1) ffc05270: 38 00 00 00 li r0,0 vprintk(fmt, ap); ffc05274: 38 81 00 08 addi r4,r1,8 */ void printk(const char *fmt, ...) { va_list ap; /* points to each unnamed argument in turn */ va_start(ap, fmt); /* make ap point to 1st unnamed arg */ ffc05278: 98 01 00 09 stb r0,9(r1) ffc0527c: 38 01 00 80 addi r0,r1,128 ffc05280: 90 01 00 0c stw r0,12(r1) ffc05284: 38 01 00 18 addi r0,r1,24 ffc05288: 90 01 00 10 stw r0,16(r1) vprintk(fmt, ap); ffc0528c: 48 00 1f ed bl ffc07278 va_end(ap); /* clean up when done */ } ffc05290: 80 01 00 7c lwz r0,124(r1) ffc05294: 38 21 00 78 addi r1,r1,120 ffc05298: 7c 08 03 a6 mtlr r0 ffc0529c: 4e 80 00 20 blr ffc06a90 : int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... ) { ffc06a90: 94 21 ff 90 stwu r1,-112(r1) ffc06a94: 7c 08 02 a6 mflr r0 ffc06a98: 90 a1 00 18 stw r5,24(r1) ffc06a9c: 90 01 00 74 stw r0,116(r1) ffc06aa0: 90 c1 00 1c stw r6,28(r1) ffc06aa4: 90 e1 00 20 stw r7,32(r1) ffc06aa8: 91 01 00 24 stw r8,36(r1) ffc06aac: 91 21 00 28 stw r9,40(r1) ffc06ab0: 91 41 00 2c stw r10,44(r1) ffc06ab4: 40 86 00 24 bne- cr1,ffc06ad8 <== ALWAYS TAKEN ffc06ab8: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc06abc: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc06ac0: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc06ac4: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc06ac8: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc06acc: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc06ad0: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc06ad4: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arg_pointer; va_start (arg_pointer, format); ffc06ad8: 38 00 00 02 li r0,2 ffc06adc: 98 01 00 08 stb r0,8(r1) ffc06ae0: 38 00 00 00 li r0,0 vprintk( format, arg_pointer ); ffc06ae4: 7c 83 23 78 mr r3,r4 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06ae8: 98 01 00 09 stb r0,9(r1) ffc06aec: 38 01 00 78 addi r0,r1,120 vprintk( format, arg_pointer ); ffc06af0: 38 81 00 08 addi r4,r1,8 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06af4: 90 01 00 0c stw r0,12(r1) ffc06af8: 38 01 00 10 addi r0,r1,16 ffc06afc: 90 01 00 10 stw r0,16(r1) vprintk( format, arg_pointer ); ffc06b00: 48 00 1f f1 bl ffc08af0 va_end(arg_pointer); /* clean up when done */ return 0; } ffc06b04: 38 60 00 00 li r3,0 ffc06b08: 80 01 00 74 lwz r0,116(r1) ffc06b0c: 38 21 00 70 addi r1,r1,112 ffc06b10: 7c 08 03 a6 mtlr r0 ffc06b14: 4e 80 00 20 blr ffc1b384 : ssize_t read( int fd, void *buffer, size_t count ) { ffc1b384: 94 21 ff f0 stwu r1,-16(r1) ffc1b388: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b38c: 3d 20 00 00 lis r9,0 ssize_t read( int fd, void *buffer, size_t count ) { ffc1b390: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b394: 80 09 26 4c lwz r0,9804(r9) ssize_t read( int fd, void *buffer, size_t count ) { ffc1b398: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b39c: 7f 83 00 40 cmplw cr7,r3,r0 ffc1b3a0: 40 9c 00 20 bge- cr7,ffc1b3c0 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1b3a4: 3d 40 00 00 lis r10,0 ffc1b3a8: 83 ea 27 08 lwz r31,9992(r10) ffc1b3ac: 1c 63 00 48 mulli r3,r3,72 ffc1b3b0: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1b3b4: 80 1f 00 18 lwz r0,24(r31) ffc1b3b8: 70 0a 01 00 andi. r10,r0,256 ffc1b3bc: 40 a2 00 10 bne+ ffc1b3cc ffc1b3c0: 4b ff 52 29 bl ffc105e8 <__errno> ffc1b3c4: 38 00 00 09 li r0,9 ffc1b3c8: 48 00 00 44 b ffc1b40c rtems_libio_check_buffer( buffer ); ffc1b3cc: 2f 84 00 00 cmpwi cr7,r4,0 ffc1b3d0: 41 9e 00 18 beq- cr7,ffc1b3e8 <== NEVER TAKEN rtems_libio_check_count( count ); ffc1b3d4: 2f 85 00 00 cmpwi cr7,r5,0 ffc1b3d8: 38 60 00 00 li r3,0 ffc1b3dc: 41 9e 00 70 beq- cr7,ffc1b44c <== NEVER TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc1b3e0: 70 09 00 02 andi. r9,r0,2 ffc1b3e4: 40 a2 00 10 bne+ ffc1b3f4 <== ALWAYS TAKEN ffc1b3e8: 4b ff 52 01 bl ffc105e8 <__errno> <== NOT EXECUTED ffc1b3ec: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1b3f0: 48 00 00 1c b ffc1b40c <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) ffc1b3f4: 81 3f 00 40 lwz r9,64(r31) ffc1b3f8: 80 09 00 08 lwz r0,8(r9) ffc1b3fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b400: 40 be 00 18 bne+ cr7,ffc1b418 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1b404: 4b ff 51 e5 bl ffc105e8 <__errno> <== NOT EXECUTED ffc1b408: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1b40c: 90 03 00 00 stw r0,0(r3) ffc1b410: 38 60 ff ff li r3,-1 ffc1b414: 48 00 00 38 b ffc1b44c rc = (*iop->handlers->read_h)( iop, buffer, count ); ffc1b418: 7f e3 fb 78 mr r3,r31 ffc1b41c: 7c 09 03 a6 mtctr r0 ffc1b420: 4e 80 04 21 bctrl if ( rc > 0 ) ffc1b424: 2c 03 00 00 cmpwi r3,0 ffc1b428: 40 81 00 24 ble- ffc1b44c iop->offset += rc; ffc1b42c: 80 ff 00 10 lwz r7,16(r31) ffc1b430: 7c 6a 1b 78 mr r10,r3 ffc1b434: 81 1f 00 14 lwz r8,20(r31) ffc1b438: 7c 69 fe 70 srawi r9,r3,31 ffc1b43c: 7d 88 50 14 addc r12,r8,r10 ffc1b440: 7d 67 49 14 adde r11,r7,r9 ffc1b444: 91 7f 00 10 stw r11,16(r31) ffc1b448: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1b44c: 80 01 00 14 lwz r0,20(r1) ffc1b450: 83 e1 00 0c lwz r31,12(r1) ffc1b454: 38 21 00 10 addi r1,r1,16 ffc1b458: 7c 08 03 a6 mtlr r0 ffc1b45c: 4e 80 00 20 blr ffc08470 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc08470: 94 21 ff c8 stwu r1,-56(r1) ffc08474: 7c 08 02 a6 mflr r0 ffc08478: 93 a1 00 2c stw r29,44(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc0847c: 7c 9d 23 79 mr. r29,r4 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc08480: 93 81 00 28 stw r28,40(r1) ffc08484: 7c 7c 1b 78 mr r28,r3 ffc08488: 93 c1 00 30 stw r30,48(r1) ffc0848c: 7c be 2b 78 mr r30,r5 ffc08490: 90 01 00 3c stw r0,60(r1) ffc08494: 93 e1 00 34 stw r31,52(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc08498: 40 a2 00 10 bne+ ffc084a8 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc0849c: 48 00 d4 19 bl ffc158b4 <__errno> <== NOT EXECUTED ffc084a0: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc084a4: 48 00 00 60 b ffc08504 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), ffc084a8: 48 00 f3 fd bl ffc178a4 ffc084ac: 3b e1 00 08 addi r31,r1,8 ffc084b0: 7c 64 1b 78 mr r4,r3 ffc084b4: 38 a0 00 00 li r5,0 ffc084b8: 7f 83 e3 78 mr r3,r28 ffc084bc: 7f e6 fb 78 mr r6,r31 ffc084c0: 38 e0 00 00 li r7,0 ffc084c4: 4b ff ea 41 bl ffc06f04 0, &loc, false ); if ( result != 0 ) ffc084c8: 3b 80 ff ff li r28,-1 ffc084cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc084d0: 40 9e 00 cc bne- cr7,ffc0859c <== NEVER TAKEN return -1; if ( !loc.ops->node_type_h ){ ffc084d4: 81 21 00 14 lwz r9,20(r1) ffc084d8: 80 09 00 10 lwz r0,16(r9) ffc084dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc084e0: 40 be 00 30 bne+ cr7,ffc08510 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc084e4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc084e8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc084ec: 41 9e 00 10 beq- cr7,ffc084fc <== NOT EXECUTED ffc084f0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc084f4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc084f8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc084fc: 48 00 d3 b9 bl ffc158b4 <__errno> <== NOT EXECUTED ffc08500: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08504: 90 03 00 00 stw r0,0(r3) ffc08508: 3b 80 ff ff li r28,-1 ffc0850c: 48 00 00 90 b ffc0859c } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ ffc08510: 7f e3 fb 78 mr r3,r31 ffc08514: 7c 09 03 a6 mtctr r0 ffc08518: 4e 80 04 21 bctrl ffc0851c: 81 21 00 14 lwz r9,20(r1) ffc08520: 2f 83 00 04 cmpwi cr7,r3,4 ffc08524: 41 be 00 30 beq+ cr7,ffc08554 rtems_filesystem_freenode( &loc ); ffc08528: 2f 89 00 00 cmpwi cr7,r9,0 ffc0852c: 41 9e 00 1c beq- cr7,ffc08548 <== NEVER TAKEN ffc08530: 80 09 00 1c lwz r0,28(r9) ffc08534: 2f 80 00 00 cmpwi cr7,r0,0 ffc08538: 41 9e 00 10 beq- cr7,ffc08548 <== NEVER TAKEN ffc0853c: 7f e3 fb 78 mr r3,r31 ffc08540: 7c 09 03 a6 mtctr r0 ffc08544: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EINVAL ); ffc08548: 48 00 d3 6d bl ffc158b4 <__errno> ffc0854c: 38 00 00 16 li r0,22 ffc08550: 4b ff ff b4 b ffc08504 } if ( !loc.ops->readlink_h ){ ffc08554: 80 09 00 3c lwz r0,60(r9) ffc08558: 2f 80 00 00 cmpwi cr7,r0,0 ffc0855c: 41 be ff 88 beq- cr7,ffc084e4 <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); ffc08560: 7f a4 eb 78 mr r4,r29 ffc08564: 7c 09 03 a6 mtctr r0 ffc08568: 7f c5 f3 78 mr r5,r30 ffc0856c: 7f e3 fb 78 mr r3,r31 ffc08570: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc08574: 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 ); ffc08578: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc0857c: 2f 89 00 00 cmpwi cr7,r9,0 ffc08580: 41 9e 00 1c beq- cr7,ffc0859c <== NEVER TAKEN ffc08584: 80 09 00 1c lwz r0,28(r9) ffc08588: 2f 80 00 00 cmpwi cr7,r0,0 ffc0858c: 41 9e 00 10 beq- cr7,ffc0859c <== NEVER TAKEN ffc08590: 7f e3 fb 78 mr r3,r31 ffc08594: 7c 09 03 a6 mtctr r0 ffc08598: 4e 80 04 21 bctrl return result; } ffc0859c: 80 01 00 3c lwz r0,60(r1) ffc085a0: 7f 83 e3 78 mr r3,r28 ffc085a4: 83 a1 00 2c lwz r29,44(r1) ffc085a8: 7c 08 03 a6 mtlr r0 ffc085ac: 83 81 00 28 lwz r28,40(r1) ffc085b0: 83 c1 00 30 lwz r30,48(r1) ffc085b4: 83 e1 00 34 lwz r31,52(r1) ffc085b8: 38 21 00 38 addi r1,r1,56 ffc085bc: 4e 80 00 20 blr ffc067b4 : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc067b4: 94 21 ff d8 stwu r1,-40(r1) ffc067b8: 7c 08 02 a6 mflr r0 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc067bc: 3d 20 00 00 lis r9,0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc067c0: 90 01 00 2c stw r0,44(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc067c4: 80 09 26 4c lwz r0,9804(r9) ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc067c8: 93 81 00 18 stw r28,24(r1) ffc067cc: 7c bc 2b 78 mr r28,r5 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc067d0: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc067d4: 93 21 00 0c stw r25,12(r1) ffc067d8: 93 41 00 10 stw r26,16(r1) ffc067dc: 93 61 00 14 stw r27,20(r1) ffc067e0: 93 a1 00 1c stw r29,28(r1) ffc067e4: 93 c1 00 20 stw r30,32(r1) ffc067e8: 93 e1 00 24 stw r31,36(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc067ec: 40 9c 00 20 bge- cr7,ffc0680c <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc067f0: 3d 20 00 00 lis r9,0 ffc067f4: 83 a9 27 0c lwz r29,9996(r9) ffc067f8: 1c 63 00 48 mulli r3,r3,72 ffc067fc: 7f bd 1a 14 add r29,r29,r3 rtems_libio_check_is_open( iop ); ffc06800: 80 1d 00 18 lwz r0,24(r29) ffc06804: 70 09 01 00 andi. r9,r0,256 ffc06808: 40 a2 00 10 bne+ ffc06818 <== ALWAYS TAKEN ffc0680c: 48 00 ca 09 bl ffc13214 <__errno> <== NOT EXECUTED ffc06810: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc06814: 48 00 00 14 b ffc06828 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc06818: 70 09 00 02 andi. r9,r0,2 ffc0681c: 40 a2 00 14 bne+ ffc06830 <== ALWAYS TAKEN ffc06820: 48 00 c9 f5 bl ffc13214 <__errno> ffc06824: 38 00 00 16 li r0,22 ffc06828: 90 03 00 00 stw r0,0(r3) ffc0682c: 48 00 00 bc b ffc068e8 /* * Argument validation on IO vector */ if ( !iov ) ffc06830: 2f 84 00 00 cmpwi cr7,r4,0 ffc06834: 41 be ff ec beq- cr7,ffc06820 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc06838: 2f 85 00 00 cmpwi cr7,r5,0 ffc0683c: 40 bd ff e4 ble- cr7,ffc06820 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc06840: 2f 85 04 00 cmpwi cr7,r5,1024 ffc06844: 41 bd ff dc bgt- cr7,ffc06820 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) ffc06848: 81 3d 00 40 lwz r9,64(r29) ffc0684c: 80 09 00 08 lwz r0,8(r9) ffc06850: 2f 80 00 00 cmpwi cr7,r0,0 ffc06854: 40 be 00 10 bne+ cr7,ffc06864 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06858: 48 00 c9 bd bl ffc13214 <__errno> <== NOT EXECUTED ffc0685c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06860: 4b ff ff c8 b ffc06828 <== NOT EXECUTED ffc06864: 7c a9 03 a6 mtctr r5 ffc06868: 7c 9e 23 78 mr r30,r4 ffc0686c: 7c 89 23 78 mr r9,r4 ffc06870: 38 00 00 01 li r0,1 ffc06874: 39 60 00 00 li r11,0 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) ffc06878: 81 49 00 00 lwz r10,0(r9) ffc0687c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc06880: 41 be ff a0 beq- cr7,ffc06820 if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; ffc06884: 81 09 00 04 lwz r8,4(r9) * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06888: 39 29 00 08 addi r9,r9,8 if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; ffc0688c: 7d 4b 42 14 add r10,r11,r8 if ( total < old ) ffc06890: 7f 8a 58 00 cmpw cr7,r10,r11 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) ffc06894: 31 08 ff ff addic r8,r8,-1 ffc06898: 7d 08 41 10 subfe r8,r8,r8 ffc0689c: 7c 00 40 38 and r0,r0,r8 * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc068a0: 7d 4b 53 78 mr r11,r10 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) ffc068a4: 41 bc ff 7c blt- cr7,ffc06820 * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc068a8: 42 00 ff d0 bdnz+ ffc06878 /* * A readv with all zeros logically has no effect. Even though * OpenGroup didn't address this case as they did with writev(), * we will handle it the same way for symmetry. */ if ( all_zeros == true ) { ffc068ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc068b0: 3b 60 00 00 li r27,0 ffc068b4: 3b e0 00 00 li r31,0 ffc068b8: 40 9e 00 74 bne- cr7,ffc0692c /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc068bc: 81 3d 00 40 lwz r9,64(r29) ffc068c0: 7f a3 eb 78 mr r3,r29 ffc068c4: 80 9e 00 00 lwz r4,0(r30) } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc068c8: 3b 7b 00 01 addi r27,r27,1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc068cc: 80 09 00 08 lwz r0,8(r9) ffc068d0: 80 be 00 04 lwz r5,4(r30) ffc068d4: 7c 09 03 a6 mtctr r0 ffc068d8: 4e 80 04 21 bctrl } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc068dc: 7f 9b e0 00 cmpw cr7,r27,r28 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) ffc068e0: 2c 03 00 00 cmpwi r3,0 ffc068e4: 40 a0 00 0c bge+ ffc068f0 <== ALWAYS TAKEN ffc068e8: 3b e0 ff ff li r31,-1 ffc068ec: 48 00 00 40 b ffc0692c return -1; if ( bytes > 0 ) { ffc068f0: 41 82 00 28 beq- ffc06918 <== NEVER TAKEN iop->offset += bytes; ffc068f4: 81 7d 00 10 lwz r11,16(r29) ffc068f8: 7c 7a 1b 78 mr r26,r3 ffc068fc: 81 9d 00 14 lwz r12,20(r29) ffc06900: 7c 79 fe 70 srawi r25,r3,31 total += bytes; ffc06904: 7f ff 1a 14 add r31,r31,r3 if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc06908: 7d 4c d0 14 addc r10,r12,r26 ffc0690c: 7d 2b c9 14 adde r9,r11,r25 ffc06910: 91 3d 00 10 stw r9,16(r29) ffc06914: 91 5d 00 14 stw r10,20(r29) total += bytes; } if (bytes != iov[ v ].iov_len) ffc06918: 80 1e 00 04 lwz r0,4(r30) } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc0691c: 3b de 00 08 addi r30,r30,8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) ffc06920: 7f 03 00 00 cmpw cr6,r3,r0 ffc06924: 40 9a 00 08 bne- cr6,ffc0692c <== NEVER TAKEN } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06928: 41 9c ff 94 blt+ cr7,ffc068bc if (bytes != iov[ v ].iov_len) break; } return total; } ffc0692c: 80 01 00 2c lwz r0,44(r1) ffc06930: 7f e3 fb 78 mr r3,r31 ffc06934: 83 21 00 0c lwz r25,12(r1) ffc06938: 7c 08 03 a6 mtlr r0 ffc0693c: 83 41 00 10 lwz r26,16(r1) ffc06940: 83 61 00 14 lwz r27,20(r1) ffc06944: 83 81 00 18 lwz r28,24(r1) ffc06948: 83 a1 00 1c lwz r29,28(r1) ffc0694c: 83 c1 00 20 lwz r30,32(r1) ffc06950: 83 e1 00 24 lwz r31,36(r1) ffc06954: 38 21 00 28 addi r1,r1,40 ffc06958: 4e 80 00 20 blr ffc1b504 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1b504: 94 21 ff d8 stwu r1,-40(r1) ffc1b508: 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())) { ffc1b50c: 3d 20 00 00 lis r9,0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1b510: 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())) { ffc1b514: 80 09 27 90 lwz r0,10128(r9) { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1b518: 3d 20 00 00 lis r9,0 ffc1b51c: 39 29 2a 68 addi r9,r9,10856 ffc1b520: 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())) { ffc1b524: 2f 80 00 03 cmpwi cr7,r0,3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1b528: 81 69 00 10 lwz r11,16(r9) ffc1b52c: 7c 9e 23 78 mr r30,r4 ffc1b530: 93 e1 00 24 stw r31,36(r1) ffc1b534: 7c 7f 1b 78 mr r31,r3 ffc1b538: 39 6b 00 01 addi r11,r11,1 ffc1b53c: 93 a1 00 1c stw r29,28(r1) ffc1b540: 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())) { ffc1b544: 40 be 00 24 bne+ cr7,ffc1b568 <== NEVER TAKEN if (_Thread_Dispatch_disable_level > 0) ffc1b548: 3d 20 00 00 lis r9,0 ffc1b54c: 80 09 27 2c lwz r0,10028(r9) ffc1b550: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b554: 40 be 00 d8 bne+ cr7,ffc1b62c <== NEVER TAKEN return (void *) 0; if (_ISR_Nest_level > 0) ffc1b558: 3d 20 00 00 lis r9,0 ffc1b55c: 80 09 27 54 lwz r0,10068(r9) ffc1b560: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b564: 40 9e 00 c8 bne- cr7,ffc1b62c <== NEVER TAKEN } /* * Continue with realloc(). */ if ( !ptr ) ffc1b568: 2f 9f 00 00 cmpwi cr7,r31,0 ffc1b56c: 40 be 00 14 bne+ cr7,ffc1b580 return malloc( size ); ffc1b570: 7f c3 f3 78 mr r3,r30 ffc1b574: 4b fe 90 35 bl ffc045a8 ffc1b578: 7c 7f 1b 78 mr r31,r3 ffc1b57c: 48 00 00 b4 b ffc1b630 if ( !size ) { ffc1b580: 2f 9e 00 00 cmpwi cr7,r30,0 ffc1b584: 40 be 00 10 bne+ cr7,ffc1b594 <== ALWAYS TAKEN free( ptr ); ffc1b588: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1b58c: 4b fe 8c b9 bl ffc04244 <== NOT EXECUTED ffc1b590: 48 00 00 9c b ffc1b62c <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { ffc1b594: 3f a0 00 00 lis r29,0 ffc1b598: 80 7d 26 5c lwz r3,9820(r29) ffc1b59c: 7f e4 fb 78 mr r4,r31 ffc1b5a0: 38 a1 00 08 addi r5,r1,8 ffc1b5a4: 48 00 01 89 bl ffc1b72c <_Protected_heap_Get_block_size> ffc1b5a8: 2f 83 00 00 cmpwi cr7,r3,0 ffc1b5ac: 40 be 00 14 bne+ cr7,ffc1b5c0 errno = EINVAL; ffc1b5b0: 4b ff 50 39 bl ffc105e8 <__errno> ffc1b5b4: 38 00 00 16 li r0,22 ffc1b5b8: 90 03 00 00 stw r0,0(r3) ffc1b5bc: 48 00 00 70 b ffc1b62c #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 ) ) { ffc1b5c0: 80 7d 26 5c lwz r3,9820(r29) ffc1b5c4: 7f e4 fb 78 mr r4,r31 ffc1b5c8: 7f c5 f3 78 mr r5,r30 ffc1b5cc: 48 00 01 c5 bl ffc1b790 <_Protected_heap_Resize_block> ffc1b5d0: 2f 83 00 00 cmpwi cr7,r3,0 ffc1b5d4: 40 be 00 5c bne+ cr7,ffc1b630 * 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 ); ffc1b5d8: 7f c3 f3 78 mr r3,r30 ffc1b5dc: 4b fe 8f cd bl ffc045a8 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc1b5e0: 3d 20 00 00 lis r9,0 if ( !new_area ) { ffc1b5e4: 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 */ ffc1b5e8: 39 29 2a 68 addi r9,r9,10856 ffc1b5ec: 81 69 00 04 lwz r11,4(r9) ffc1b5f0: 38 0b ff ff addi r0,r11,-1 ffc1b5f4: 90 09 00 04 stw r0,4(r9) if ( !new_area ) { ffc1b5f8: 41 82 00 34 beq- ffc1b62c return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); ffc1b5fc: 80 01 00 08 lwz r0,8(r1) ffc1b600: 7f c5 f3 78 mr r5,r30 ffc1b604: 7f 9e 00 40 cmplw cr7,r30,r0 ffc1b608: 40 9d 00 08 ble- cr7,ffc1b610 <== NEVER TAKEN ffc1b60c: 7c 05 03 78 mr r5,r0 ffc1b610: 7f e4 fb 78 mr r4,r31 ffc1b614: 7f a3 eb 78 mr r3,r29 ffc1b618: 4b ff 5b b9 bl ffc111d0 free( ptr ); ffc1b61c: 7f e3 fb 78 mr r3,r31 ffc1b620: 4b fe 8c 25 bl ffc04244 ffc1b624: 7f bf eb 78 mr r31,r29 return new_area; ffc1b628: 48 00 00 08 b ffc1b630 ffc1b62c: 3b e0 00 00 li r31,0 } ffc1b630: 80 01 00 2c lwz r0,44(r1) ffc1b634: 7f e3 fb 78 mr r3,r31 ffc1b638: 83 a1 00 1c lwz r29,28(r1) ffc1b63c: 7c 08 03 a6 mtlr r0 ffc1b640: 83 c1 00 20 lwz r30,32(r1) ffc1b644: 83 e1 00 24 lwz r31,36(r1) ffc1b648: 38 21 00 28 addi r1,r1,40 ffc1b64c: 4e 80 00 20 blr ffc09898 : #include int rmdir( const char *pathname ) { ffc09898: 94 21 ff b8 stwu r1,-72(r1) ffc0989c: 7c 08 02 a6 mflr r0 ffc098a0: 93 a1 00 3c stw r29,60(r1) ffc098a4: 93 c1 00 40 stw r30,64(r1) ffc098a8: 7c 7e 1b 78 mr r30,r3 ffc098ac: 90 01 00 4c stw r0,76(r1) ffc098b0: 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 ); ffc098b4: 4b ff e2 99 bl ffc07b4c if ( parentpathlen == 0 ) ffc098b8: 7c 7d 1b 79 mr. r29,r3 ffc098bc: 40 82 00 8c bne- ffc09948 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); ffc098c0: 88 1e 00 00 lbz r0,0(r30) ffc098c4: 2f 80 00 2f cmpwi cr7,r0,47 ffc098c8: 41 9e 00 14 beq- cr7,ffc098dc <== ALWAYS TAKEN ffc098cc: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc098d0: 41 9e 00 0c beq- cr7,ffc098dc <== NOT EXECUTED ffc098d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc098d8: 40 9e 00 38 bne- cr7,ffc09910 <== NOT EXECUTED ffc098dc: 3d 20 00 00 lis r9,0 ffc098e0: 81 29 26 fc lwz r9,9980(r9) ffc098e4: 3b e0 00 00 li r31,0 ffc098e8: 80 09 00 24 lwz r0,36(r9) ffc098ec: 81 09 00 18 lwz r8,24(r9) ffc098f0: 81 49 00 1c lwz r10,28(r9) ffc098f4: 81 69 00 20 lwz r11,32(r9) ffc098f8: 91 01 00 08 stw r8,8(r1) ffc098fc: 91 41 00 0c stw r10,12(r1) ffc09900: 91 61 00 10 stw r11,16(r1) ffc09904: 90 01 00 14 stw r0,20(r1) ffc09908: 80 09 00 28 lwz r0,40(r9) ffc0990c: 48 00 00 34 b ffc09940 ffc09910: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc09914: 81 29 26 fc lwz r9,9980(r9) <== NOT EXECUTED ffc09918: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc0991c: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc09920: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc09924: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc09928: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc0992c: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc09930: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc09934: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc09938: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0993c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc09940: 90 01 00 18 stw r0,24(r1) ffc09944: 48 00 00 28 b ffc0996c else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, ffc09948: 7f c3 f3 78 mr r3,r30 ffc0994c: 7f a4 eb 78 mr r4,r29 ffc09950: 38 a0 00 02 li r5,2 ffc09954: 38 c1 00 08 addi r6,r1,8 ffc09958: 38 e0 00 00 li r7,0 ffc0995c: 4b ff e3 69 bl ffc07cc4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc09960: 2f 83 00 00 cmpwi cr7,r3,0 ffc09964: 40 9e 01 fc bne- cr7,ffc09b60 <== NEVER TAKEN ffc09968: 3b e0 00 01 li r31,1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc0996c: 80 01 00 08 lwz r0,8(r1) name = pathname + parentpathlen; ffc09970: 7f be ea 14 add r29,r30,r29 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc09974: 7f a3 eb 78 mr r3,r29 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc09978: 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 ), ffc0997c: 3b c1 00 1c addi r30,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc09980: 80 01 00 0c lwz r0,12(r1) ffc09984: 90 01 00 20 stw r0,32(r1) ffc09988: 80 01 00 10 lwz r0,16(r1) ffc0998c: 90 01 00 24 stw r0,36(r1) ffc09990: 80 01 00 14 lwz r0,20(r1) ffc09994: 90 01 00 28 stw r0,40(r1) ffc09998: 80 01 00 18 lwz r0,24(r1) ffc0999c: 90 01 00 2c stw r0,44(r1) name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc099a0: 48 01 07 05 bl ffc1a0a4 ffc099a4: 7c 64 1b 78 mr r4,r3 ffc099a8: 7f a3 eb 78 mr r3,r29 ffc099ac: 4b ff e1 65 bl ffc07b10 ffc099b0: 7f bd 1a 14 add r29,r29,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc099b4: 7f a3 eb 78 mr r3,r29 ffc099b8: 48 01 06 ed bl ffc1a0a4 ffc099bc: 38 a0 00 00 li r5,0 ffc099c0: 7c 64 1b 78 mr r4,r3 ffc099c4: 7f c6 f3 78 mr r6,r30 ffc099c8: 7f a3 eb 78 mr r3,r29 ffc099cc: 38 e0 00 00 li r7,0 ffc099d0: 4b ff e1 e1 bl ffc07bb0 0, &loc, false ); if ( result != 0 ) { ffc099d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc099d8: 41 be 00 30 beq+ cr7,ffc09a08 if ( free_parentloc ) ffc099dc: 2f 9f 00 00 cmpwi cr7,r31,0 ffc099e0: 41 be 01 80 beq+ cr7,ffc09b60 <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); ffc099e4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc099e8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc099ec: 41 be 01 74 beq+ cr7,ffc09b60 <== NOT EXECUTED ffc099f0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc099f4: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc099f8: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc099fc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09a00: 41 be 01 60 beq+ cr7,ffc09b60 <== NOT EXECUTED ffc09a04: 48 00 01 50 b ffc09b54 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ ffc09a08: 81 21 00 28 lwz r9,40(r1) ffc09a0c: 80 09 00 10 lwz r0,16(r9) ffc09a10: 2f 80 00 00 cmpwi cr7,r0,0 ffc09a14: 41 9e 00 90 beq- cr7,ffc09aa4 <== NEVER TAKEN 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 ){ ffc09a18: 7f c3 f3 78 mr r3,r30 ffc09a1c: 7c 09 03 a6 mtctr r0 ffc09a20: 4e 80 04 21 bctrl ffc09a24: 2f 83 00 01 cmpwi cr7,r3,1 ffc09a28: 41 be 00 60 beq+ cr7,ffc09a88 rtems_filesystem_freenode( &loc ); ffc09a2c: 81 21 00 28 lwz r9,40(r1) ffc09a30: 2f 89 00 00 cmpwi cr7,r9,0 ffc09a34: 41 9e 00 1c beq- cr7,ffc09a50 <== NEVER TAKEN ffc09a38: 80 09 00 1c lwz r0,28(r9) ffc09a3c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09a40: 41 9e 00 10 beq- cr7,ffc09a50 <== NEVER TAKEN ffc09a44: 7f c3 f3 78 mr r3,r30 ffc09a48: 7c 09 03 a6 mtctr r0 ffc09a4c: 4e 80 04 21 bctrl if ( free_parentloc ) ffc09a50: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09a54: 41 9e 00 28 beq- cr7,ffc09a7c <== NEVER TAKEN rtems_filesystem_freenode( &parentloc ); ffc09a58: 81 21 00 14 lwz r9,20(r1) ffc09a5c: 2f 89 00 00 cmpwi cr7,r9,0 ffc09a60: 41 9e 00 1c beq- cr7,ffc09a7c <== NEVER TAKEN ffc09a64: 80 09 00 1c lwz r0,28(r9) ffc09a68: 2f 80 00 00 cmpwi cr7,r0,0 ffc09a6c: 41 9e 00 10 beq- cr7,ffc09a7c <== NEVER TAKEN ffc09a70: 38 61 00 08 addi r3,r1,8 ffc09a74: 7c 09 03 a6 mtctr r0 ffc09a78: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc09a7c: 48 00 cb c9 bl ffc16644 <__errno> ffc09a80: 38 00 00 14 li r0,20 ffc09a84: 48 00 00 6c b ffc09af0 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ ffc09a88: 81 21 00 24 lwz r9,36(r1) ffc09a8c: 80 09 00 34 lwz r0,52(r9) ffc09a90: 2f 80 00 00 cmpwi cr7,r0,0 ffc09a94: 40 be 00 64 bne+ cr7,ffc09af8 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc09a98: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc09a9c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc09aa0: 41 9e 00 1c beq- cr7,ffc09abc <== NOT EXECUTED ffc09aa4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc09aa8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09aac: 41 9e 00 10 beq- cr7,ffc09abc <== NOT EXECUTED ffc09ab0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc09ab4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc09ab8: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc09abc: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc09ac0: 41 9e 00 28 beq- cr7,ffc09ae8 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc09ac4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc09ac8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc09acc: 41 9e 00 1c beq- cr7,ffc09ae8 <== NOT EXECUTED ffc09ad0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc09ad4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09ad8: 41 9e 00 10 beq- cr7,ffc09ae8 <== NOT EXECUTED ffc09adc: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc09ae0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc09ae4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc09ae8: 48 00 cb 5d bl ffc16644 <__errno> <== NOT EXECUTED ffc09aec: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc09af0: 90 03 00 00 stw r0,0(r3) ffc09af4: 48 00 00 6c b ffc09b60 } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); ffc09af8: 38 61 00 08 addi r3,r1,8 ffc09afc: 7c 09 03 a6 mtctr r0 ffc09b00: 7f c4 f3 78 mr r4,r30 ffc09b04: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc09b08: 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 ); ffc09b0c: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc09b10: 2f 89 00 00 cmpwi cr7,r9,0 ffc09b14: 41 9e 00 1c beq- cr7,ffc09b30 <== NEVER TAKEN ffc09b18: 80 09 00 1c lwz r0,28(r9) ffc09b1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09b20: 41 9e 00 10 beq- cr7,ffc09b30 <== NEVER TAKEN ffc09b24: 7f c3 f3 78 mr r3,r30 ffc09b28: 7c 09 03 a6 mtctr r0 ffc09b2c: 4e 80 04 21 bctrl if ( free_parentloc ) ffc09b30: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09b34: 41 9e 00 30 beq- cr7,ffc09b64 rtems_filesystem_freenode( &parentloc ); ffc09b38: 81 21 00 14 lwz r9,20(r1) ffc09b3c: 2f 89 00 00 cmpwi cr7,r9,0 ffc09b40: 41 9e 00 24 beq- cr7,ffc09b64 <== NEVER TAKEN ffc09b44: 80 09 00 1c lwz r0,28(r9) ffc09b48: 2f 80 00 00 cmpwi cr7,r0,0 ffc09b4c: 41 9e 00 18 beq- cr7,ffc09b64 <== NEVER TAKEN ffc09b50: 38 61 00 08 addi r3,r1,8 ffc09b54: 7c 09 03 a6 mtctr r0 ffc09b58: 4e 80 04 21 bctrl ffc09b5c: 48 00 00 08 b ffc09b64 ffc09b60: 3b a0 ff ff li r29,-1 return result; } ffc09b64: 80 01 00 4c lwz r0,76(r1) ffc09b68: 7f a3 eb 78 mr r3,r29 ffc09b6c: 83 c1 00 40 lwz r30,64(r1) ffc09b70: 7c 08 03 a6 mtlr r0 ffc09b74: 83 a1 00 3c lwz r29,60(r1) ffc09b78: 83 e1 00 44 lwz r31,68(r1) ffc09b7c: 38 21 00 48 addi r1,r1,72 ffc09b80: 4e 80 00 20 blr ffc184f4 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { ffc184f4: 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; } ffc184f8: 38 63 22 0c addi r3,r3,8716 <== NOT EXECUTED ffc184fc: 4e 80 00 20 blr <== NOT EXECUTED ffc14df4 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc14df4: 94 21 ff f0 stwu r1,-16(r1) ffc14df8: 7c 08 02 a6 mflr r0 ffc14dfc: 93 e1 00 0c stw r31,12(r1) ffc14e00: 7c 9f 23 78 mr r31,r4 ffc14e04: 90 01 00 14 stw r0,20(r1) const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc14e08: 48 00 00 31 bl ffc14e38 if (nap) ffc14e0c: 2c 03 00 00 cmpwi r3,0 ffc14e10: 41 82 00 0c beq- ffc14e1c <== NEVER TAKEN return nap->name; ffc14e14: 80 63 00 00 lwz r3,0(r3) ffc14e18: 48 00 00 0c b ffc14e24 return rtems_assoc_name_bad(local_value); ffc14e1c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc14e20: 48 00 36 d5 bl ffc184f4 <== NOT EXECUTED } ffc14e24: 80 01 00 14 lwz r0,20(r1) ffc14e28: 83 e1 00 0c lwz r31,12(r1) ffc14e2c: 38 21 00 10 addi r1,r1,16 ffc14e30: 7c 08 03 a6 mtlr r0 ffc14e34: 4e 80 00 20 blr ffc10564 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc10564: 94 21 ff f0 stwu r1,-16(r1) ffc10568: 7c 08 02 a6 mflr r0 ffc1056c: 90 01 00 14 stw r0,20(r1) ffc10570: 93 e1 00 0c stw r31,12(r1) ffc10574: 7c 7f 1b 78 mr r31,r3 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc10578: 80 63 00 00 lwz r3,0(r3) const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc1057c: 93 c1 00 08 stw r30,8(r1) ffc10580: 7c 9e 23 78 mr r30,r4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc10584: 2f 83 00 00 cmpwi cr7,r3,0 ffc10588: 41 9e 00 1c beq- cr7,ffc105a4 <== NEVER TAKEN ffc1058c: 3c 80 ff c2 lis r4,-62 ffc10590: 38 84 cc 6e addi r4,r4,-13202 ffc10594: 48 00 12 31 bl ffc117c4 default_ap = ap++; ffc10598: 7f e0 fb 78 mr r0,r31 uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc1059c: 2f 83 00 00 cmpwi cr7,r3,0 ffc105a0: 41 9e 00 18 beq- cr7,ffc105b8 <== NEVER TAKEN default_ap = ap++; ffc105a4: 38 00 00 00 li r0,0 ffc105a8: 48 00 00 14 b ffc105bc for ( ; ap->name; ap++) if (ap->local_value == local_value) ffc105ac: 81 3f 00 04 lwz r9,4(r31) ffc105b0: 7f 89 f0 00 cmpw cr7,r9,r30 ffc105b4: 41 9e 00 18 beq- cr7,ffc105cc const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc105b8: 3b ff 00 0c addi r31,r31,12 ffc105bc: 81 3f 00 00 lwz r9,0(r31) ffc105c0: 2f 89 00 00 cmpwi cr7,r9,0 ffc105c4: 40 9e ff e8 bne+ cr7,ffc105ac ffc105c8: 7c 1f 03 78 mr r31,r0 if (ap->local_value == local_value) return ap; return default_ap; } ffc105cc: 80 01 00 14 lwz r0,20(r1) ffc105d0: 7f e3 fb 78 mr r3,r31 ffc105d4: 83 c1 00 08 lwz r30,8(r1) ffc105d8: 7c 08 03 a6 mtlr r0 ffc105dc: 83 e1 00 0c lwz r31,12(r1) ffc105e0: 38 21 00 10 addi r1,r1,16 ffc105e4: 4e 80 00 20 blr ffc0f6d4 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc0f6d4: 94 21 ff f0 stwu r1,-16(r1) ffc0f6d8: 7c 08 02 a6 mflr r0 ffc0f6dc: 90 01 00 14 stw r0,20(r1) ffc0f6e0: 93 e1 00 0c stw r31,12(r1) ffc0f6e4: 7c 7f 1b 78 mr r31,r3 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc0f6e8: 80 63 00 00 lwz r3,0(r3) const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc0f6ec: 93 c1 00 08 stw r30,8(r1) ffc0f6f0: 7c 9e 23 78 mr r30,r4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc0f6f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f6f8: 41 9e 00 1c beq- cr7,ffc0f714 <== NEVER TAKEN ffc0f6fc: 3c 80 ff c2 lis r4,-62 ffc0f700: 38 84 cc 6e addi r4,r4,-13202 ffc0f704: 48 00 20 c1 bl ffc117c4 default_ap = ap++; ffc0f708: 7f e0 fb 78 mr r0,r31 uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc0f70c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f710: 41 9e 00 18 beq- cr7,ffc0f728 <== NEVER TAKEN default_ap = ap++; ffc0f714: 38 00 00 00 li r0,0 ffc0f718: 48 00 00 14 b ffc0f72c for ( ; ap->name; ap++) if (ap->remote_value == remote_value) ffc0f71c: 81 3f 00 08 lwz r9,8(r31) ffc0f720: 7f 89 f0 00 cmpw cr7,r9,r30 ffc0f724: 41 9e 00 18 beq- cr7,ffc0f73c const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc0f728: 3b ff 00 0c addi r31,r31,12 ffc0f72c: 81 3f 00 00 lwz r9,0(r31) ffc0f730: 2f 89 00 00 cmpwi cr7,r9,0 ffc0f734: 40 9e ff e8 bne+ cr7,ffc0f71c ffc0f738: 7c 1f 03 78 mr r31,r0 if (ap->remote_value == remote_value) return ap; return default_ap; } ffc0f73c: 80 01 00 14 lwz r0,20(r1) ffc0f740: 7f e3 fb 78 mr r3,r31 ffc0f744: 83 c1 00 08 lwz r30,8(r1) ffc0f748: 7c 08 03 a6 mtlr r0 ffc0f74c: 83 e1 00 0c lwz r31,12(r1) ffc0f750: 38 21 00 10 addi r1,r1,16 ffc0f754: 4e 80 00 20 blr ffc10210 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc10210: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc10214: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc10218: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc1021c: 48 00 03 49 bl ffc10564 <== NOT EXECUTED if (nap) ffc10220: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc10224: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc10228: 41 82 00 08 beq- ffc10230 <== NOT EXECUTED return nap->remote_value; ffc1022c: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED return 0; } ffc10230: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc10234: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc10238: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1023c: 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 ffc03fa0: 48 00 00 10 b ffc03fb0 } 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) ffc0403c: 7c 08 02 a6 mflr r0 ffc04040: 93 a1 00 0c stw r29,12(r1) ffc04044: 93 c1 00 10 stw r30,16(r1) ffc04048: 7c 7e 1b 78 mr r30,r3 ffc0404c: 93 e1 00 14 stw r31,20(r1) ffc04050: 7c 9f 23 78 mr r31,r4 ffc04054: 90 01 00 1c stw r0,28(r1) const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); ffc04058: 4b ff fe e5 bl ffc03f3c if ( !p ) ffc0405c: 7c 7d 1b 79 mr. r29,r3 ffc04060: 41 a2 00 74 beq+ ffc040d4 return NULL; rhs = &p[strlen(name)]; ffc04064: 7f c3 f3 78 mr r3,r30 ffc04068: 48 00 d9 6d bl ffc119d4 if ( *rhs != '=' ) ffc0406c: 7c 1d 18 ae lbzx r0,r29,r3 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 if ( *rhs != '=' ) ffc04074: 2f 80 00 3d cmpwi cr7,r0,61 ffc04078: 40 be 00 5c bne+ cr7,ffc040d4 <== NEVER TAKEN return NULL; rhs++; if ( *rhs == '\"' ) ffc0407c: 88 1d 00 01 lbz r0,1(r29) rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; ffc04080: 3b bd 00 01 addi r29,r29,1 if ( *rhs == '\"' ) rhs++; ffc04084: 68 09 00 22 xori r9,r0,34 ffc04088: 21 29 00 00 subfic r9,r9,0 ffc0408c: 7d 3d 01 94 addze r9,r29 ffc04090: 7d 3d 4b 78 mr r29,r9 ffc04094: 7f e9 fb 78 mr r9,r31 ffc04098: 48 00 00 0c b ffc040a4 for ( d=value ; *rhs ; ) *d++ = *rhs++; ffc0409c: 98 09 00 00 stb r0,0(r9) ffc040a0: 39 29 00 01 addi r9,r9,1 return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) ffc040a4: 88 1d 00 00 lbz r0,0(r29) *d++ = *rhs++; ffc040a8: 3b bd 00 01 addi r29,r29,1 return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) ffc040ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc040b0: 40 9e ff ec bne+ cr7,ffc0409c *d++ = *rhs++; if ( *(d-1) == '\"' ) ffc040b4: 89 69 ff ff lbz r11,-1(r9) ffc040b8: 38 09 ff ff addi r0,r9,-1 ffc040bc: 2f 8b 00 22 cmpwi cr7,r11,34 ffc040c0: 40 be 00 08 bne+ cr7,ffc040c8 ffc040c4: 7c 09 03 78 mr r9,r0 d--; *d = '\0'; ffc040c8: 38 00 00 00 li r0,0 ffc040cc: 98 09 00 00 stb r0,0(r9) return value; ffc040d0: 48 00 00 08 b ffc040d8 ffc040d4: 3b e0 00 00 li r31,0 } ffc040d8: 80 01 00 1c lwz r0,28(r1) ffc040dc: 7f e3 fb 78 mr r3,r31 ffc040e0: 83 a1 00 0c lwz r29,12(r1) ffc040e4: 7c 08 03 a6 mtlr r0 ffc040e8: 83 c1 00 10 lwz r30,16(r1) ffc040ec: 83 e1 00 14 lwz r31,20(r1) ffc040f0: 38 21 00 18 addi r1,r1,24 ffc040f4: 4e 80 00 20 blr ffc04d78 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc04d78: 94 21 ff 68 stwu r1,-152(r1) ffc04d7c: 7c 08 02 a6 mflr r0 ffc04d80: 90 01 00 9c stw r0,156(r1) Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) ffc04d84: 7c 80 23 79 mr. r0,r4 void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc04d88: 93 c1 00 90 stw r30,144(r1) ffc04d8c: 7c 7e 1b 78 mr r30,r3 ffc04d90: 91 c1 00 50 stw r14,80(r1) ffc04d94: 91 e1 00 54 stw r15,84(r1) ffc04d98: 92 01 00 58 stw r16,88(r1) ffc04d9c: 92 21 00 5c stw r17,92(r1) ffc04da0: 92 41 00 60 stw r18,96(r1) ffc04da4: 92 61 00 64 stw r19,100(r1) ffc04da8: 92 81 00 68 stw r20,104(r1) ffc04dac: 92 a1 00 6c stw r21,108(r1) ffc04db0: 92 c1 00 70 stw r22,112(r1) ffc04db4: 92 e1 00 74 stw r23,116(r1) ffc04db8: 93 01 00 78 stw r24,120(r1) ffc04dbc: 93 21 00 7c stw r25,124(r1) ffc04dc0: 93 41 00 80 stw r26,128(r1) ffc04dc4: 93 61 00 84 stw r27,132(r1) ffc04dc8: 93 81 00 88 stw r28,136(r1) ffc04dcc: 93 a1 00 8c stw r29,140(r1) ffc04dd0: 93 e1 00 94 stw r31,148(r1) Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) ffc04dd4: 90 01 00 48 stw r0,72(r1) ffc04dd8: 41 82 01 b4 beq- ffc04f8c <== NEVER TAKEN * When not using nanosecond CPU usage resolution, we have to count * the number of "ticks" we gave credit for to give the user a rough * guideline as to what each number means proportionally. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); ffc04ddc: 3a 21 00 10 addi r17,r1,16 ffc04de0: 7e 23 8b 78 mr r3,r17 ffc04de4: 48 00 60 79 bl ffc0ae5c <_TOD_Get_uptime> _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); ffc04de8: 3a 01 00 18 addi r16,r1,24 ffc04dec: 3c 60 00 00 lis r3,0 ffc04df0: 38 63 28 48 addi r3,r3,10312 ffc04df4: 7e 24 8b 78 mr r4,r17 ffc04df8: 7e 05 83 78 mr r5,r16 ffc04dfc: 48 00 8b 19 bl ffc0d914 <_Timespec_Subtract> } } } #endif (*print)( ffc04e00: 80 01 00 48 lwz r0,72(r1) ffc04e04: 3c 80 ff c2 lis r4,-62 ffc04e08: 38 84 20 6e addi r4,r4,8302 ffc04e0c: 7c 09 03 a6 mtctr r0 ffc04e10: 7f c3 f3 78 mr r3,r30 ffc04e14: 3f e0 00 01 lis r31,1 ffc04e18: 3b ff a9 84 addi r31,r31,-22140 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { ffc04e1c: 3e 40 00 00 lis r18,0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( ffc04e20: 3e 60 ff c2 lis r19,-62 } } } #endif (*print)( ffc04e24: 4c c6 31 82 crclr 4*cr1+eq ffc04e28: 4e 80 04 21 bctrl /* * Print the information */ (*print)( context, ffc04e2c: 3e 80 ff c2 lis r20,-62 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { Timestamp_Control used; _Timestamp_Subtract( ffc04e30: 3e a0 00 00 lis r21,0 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc04e34: 3b 41 00 30 addi r26,r1,48 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { ffc04e38: 3a 52 28 18 addi r18,r18,10264 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( ffc04e3c: 3a 73 21 e0 addi r19,r19,8672 /* * Print the information */ (*print)( context, ffc04e40: 3a 94 21 f3 addi r20,r20,8691 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { Timestamp_Control used; _Timestamp_Subtract( ffc04e44: 3a b5 28 20 addi r21,r21,10272 /*PAGE * * rtems_cpu_usage_report */ void rtems_cpu_usage_report_with_plugin( ffc04e48: 3a df 00 10 addi r22,r31,16 _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); ffc04e4c: 3b 61 00 20 addi r27,r1,32 ffc04e50: 3a e1 00 0c addi r23,r1,12 ffc04e54: 3b 01 00 08 addi r24,r1,8 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) ffc04e58: 81 3f 00 00 lwz r9,0(r31) ffc04e5c: 2f 89 00 00 cmpwi cr7,r9,0 ffc04e60: 41 9e 00 f4 beq- cr7,ffc04f54 continue; information = _Objects_Information_table[ api_index ][ 1 ]; ffc04e64: 83 89 00 04 lwz r28,4(r9) if ( information ) { ffc04e68: 2f 9c 00 00 cmpwi cr7,r28,0 ffc04e6c: 41 9e 00 e8 beq- cr7,ffc04f54 <== NEVER TAKEN ffc04e70: 3b a0 00 01 li r29,1 /* * Print the information */ (*print)( context, ffc04e74: 39 e0 03 e8 li r15,1000 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { Timestamp_Control used; _Timestamp_Subtract( ffc04e78: 3b 21 00 28 addi r25,r1,40 ffc04e7c: 48 00 00 bc b ffc04f38 if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; ffc04e80: 81 7c 00 1c lwz r11,28(r28) ffc04e84: 7d cb 48 2e lwzx r14,r11,r9 if ( !the_thread ) ffc04e88: 2f 8e 00 00 cmpwi cr7,r14,0 ffc04e8c: 41 9e 00 ac beq- cr7,ffc04f38 <== NEVER TAKEN continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc04e90: 80 6e 00 08 lwz r3,8(r14) ffc04e94: 48 00 47 91 bl ffc09624 (*print)( ffc04e98: 80 01 00 48 lwz r0,72(r1) ffc04e9c: 7f c3 f3 78 mr r3,r30 ffc04ea0: 80 ae 00 08 lwz r5,8(r14) ffc04ea4: 7c 09 03 a6 mtctr r0 ffc04ea8: 7e 64 9b 78 mr r4,r19 ffc04eac: 7f 46 d3 78 mr r6,r26 ffc04eb0: 4c c6 31 82 crclr 4*cr1+eq ffc04eb4: 4e 80 04 21 bctrl #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; ffc04eb8: 81 2e 00 84 lwz r9,132(r14) ffc04ebc: 81 4e 00 88 lwz r10,136(r14) ffc04ec0: 91 21 00 20 stw r9,32(r1) ffc04ec4: 91 41 00 24 stw r10,36(r1) if ( _Thread_Executing->Object.id == the_thread->Object.id ) { ffc04ec8: 81 32 00 00 lwz r9,0(r18) ffc04ecc: 80 0e 00 08 lwz r0,8(r14) ffc04ed0: 81 29 00 08 lwz r9,8(r9) ffc04ed4: 7f 89 00 00 cmpw cr7,r9,r0 ffc04ed8: 40 be 00 20 bne+ cr7,ffc04ef8 Timestamp_Control used; _Timestamp_Subtract( ffc04edc: 7e a3 ab 78 mr r3,r21 ffc04ee0: 7e 24 8b 78 mr r4,r17 ffc04ee4: 7f 25 cb 78 mr r5,r25 ffc04ee8: 48 00 8a 2d bl ffc0d914 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); ffc04eec: 7f 63 db 78 mr r3,r27 ffc04ef0: 7f 24 cb 78 mr r4,r25 ffc04ef4: 48 00 88 d5 bl ffc0d7c8 <_Timespec_Add_to> }; _Timestamp_Divide( &ran, &total, &ival, &fval ); ffc04ef8: 7f 63 db 78 mr r3,r27 ffc04efc: 7e 04 83 78 mr r4,r16 ffc04f00: 7f 05 c3 78 mr r5,r24 ffc04f04: 7e e6 bb 78 mr r6,r23 ffc04f08: 48 00 89 1d bl ffc0d824 <_Timespec_Divide> /* * Print the information */ (*print)( context, ffc04f0c: 80 c1 00 24 lwz r6,36(r1) ffc04f10: 80 01 00 48 lwz r0,72(r1) ffc04f14: 7f c3 f3 78 mr r3,r30 ffc04f18: 7c c6 7b 96 divwu r6,r6,r15 ffc04f1c: 80 a1 00 20 lwz r5,32(r1) ffc04f20: 80 e1 00 08 lwz r7,8(r1) ffc04f24: 7c 09 03 a6 mtctr r0 ffc04f28: 81 01 00 0c lwz r8,12(r1) ffc04f2c: 7e 84 a3 78 mr r4,r20 ffc04f30: 4c c6 31 82 crclr 4*cr1+eq ffc04f34: 4e 80 04 21 bctrl api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { ffc04f38: a0 1c 00 10 lhz r0,16(r28) the_thread = (Thread_Control *)information->local_table[ i ]; ffc04f3c: 57 a9 10 3a rlwinm r9,r29,2,0,29 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc04f40: 7f 45 d3 78 mr r5,r26 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { ffc04f44: 7f 9d 00 40 cmplw cr7,r29,r0 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc04f48: 38 80 00 0d li r4,13 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { ffc04f4c: 3b bd 00 01 addi r29,r29,1 ffc04f50: 40 9d ff 30 ble+ cr7,ffc04e80 ffc04f54: 3b ff 00 04 addi r31,r31,4 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; ffc04f58: 7f 9f b0 00 cmpw cr7,r31,r22 ffc04f5c: 40 9e fe fc bne+ cr7,ffc04e58 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( ffc04f60: 80 c1 00 1c lwz r6,28(r1) ffc04f64: 38 00 03 e8 li r0,1000 ffc04f68: 3c 80 ff c2 lis r4,-62 ffc04f6c: 80 a1 00 18 lwz r5,24(r1) ffc04f70: 7c c6 03 96 divwu r6,r6,r0 ffc04f74: 80 01 00 48 lwz r0,72(r1) ffc04f78: 7c 09 03 a6 mtctr r0 ffc04f7c: 7f c3 f3 78 mr r3,r30 ffc04f80: 38 84 22 0b addi r4,r4,8715 ffc04f84: 4c c6 31 82 crclr 4*cr1+eq ffc04f88: 4e 80 04 21 bctrl "-------------------------------------------------------------------------------\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset, total_units ); #endif } ffc04f8c: 80 01 00 9c lwz r0,156(r1) ffc04f90: 81 c1 00 50 lwz r14,80(r1) ffc04f94: 7c 08 03 a6 mtlr r0 ffc04f98: 81 e1 00 54 lwz r15,84(r1) ffc04f9c: 82 01 00 58 lwz r16,88(r1) ffc04fa0: 82 21 00 5c lwz r17,92(r1) ffc04fa4: 82 41 00 60 lwz r18,96(r1) ffc04fa8: 82 61 00 64 lwz r19,100(r1) ffc04fac: 82 81 00 68 lwz r20,104(r1) ffc04fb0: 82 a1 00 6c lwz r21,108(r1) ffc04fb4: 82 c1 00 70 lwz r22,112(r1) ffc04fb8: 82 e1 00 74 lwz r23,116(r1) ffc04fbc: 83 01 00 78 lwz r24,120(r1) ffc04fc0: 83 21 00 7c lwz r25,124(r1) ffc04fc4: 83 41 00 80 lwz r26,128(r1) ffc04fc8: 83 61 00 84 lwz r27,132(r1) ffc04fcc: 83 81 00 88 lwz r28,136(r1) ffc04fd0: 83 a1 00 8c lwz r29,140(r1) ffc04fd4: 83 c1 00 90 lwz r30,144(r1) ffc04fd8: 83 e1 00 94 lwz r31,148(r1) ffc04fdc: 38 21 00 98 addi r1,r1,152 ffc04fe0: 4e 80 00 20 blr ffc101c8 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc101c8: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc101cc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc101d0: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc101d4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc101d8: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc101dc: 38 63 cc 90 addi r3,r3,-13168 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc101e0: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc101e4: 48 00 00 2d bl ffc10210 <== NOT EXECUTED ffc101e8: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc101ec: 41 a2 00 0c beq+ ffc101f8 <== NOT EXECUTED { errno = rc; ffc101f0: 48 00 03 f9 bl ffc105e8 <__errno> <== NOT EXECUTED ffc101f4: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED return -1; } return -1; } ffc101f8: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc101fc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc10200: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc10204: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc10208: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1020c: 4e 80 00 20 blr <== NOT EXECUTED ffc0a544 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { ffc0a544: 94 21 ff 90 stwu r1,-112(r1) <== NOT EXECUTED ffc0a548: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a54c: 90 a1 00 18 stw r5,24(r1) <== NOT EXECUTED ffc0a550: 90 01 00 74 stw r0,116(r1) <== NOT EXECUTED ffc0a554: 90 c1 00 1c stw r6,28(r1) <== NOT EXECUTED ffc0a558: 90 e1 00 20 stw r7,32(r1) <== NOT EXECUTED ffc0a55c: 91 01 00 24 stw r8,36(r1) <== NOT EXECUTED ffc0a560: 91 21 00 28 stw r9,40(r1) <== NOT EXECUTED ffc0a564: 91 41 00 2c stw r10,44(r1) <== NOT EXECUTED ffc0a568: 40 86 00 24 bne- cr1,ffc0a58c <== NOT EXECUTED ffc0a56c: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0a570: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0a574: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0a578: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0a57c: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0a580: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0a584: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0a588: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0a58c: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc0a590: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0a594: 38 00 00 00 li r0,0 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0a598: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0a59c: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0a5a0: 38 01 00 78 addi r0,r1,120 <== NOT EXECUTED ffc0a5a4: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc0a5a8: 38 01 00 10 addi r0,r1,16 <== NOT EXECUTED ffc0a5ac: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0a5b0: 4b ff fd 0d bl ffc0a2bc <== NOT EXECUTED va_end(arglist); return chars_written; } ffc0a5b4: 80 01 00 74 lwz r0,116(r1) <== NOT EXECUTED ffc0a5b8: 38 21 00 70 addi r1,r1,112 <== NOT EXECUTED ffc0a5bc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a5c0: 4e 80 00 20 blr <== NOT EXECUTED ffc03fe8 : } int rtems_filesystem_dirname( const char *pathname ) { ffc03fe8: 94 21 ff f0 stwu r1,-16(r1) ffc03fec: 7c 08 02 a6 mflr r0 ffc03ff0: 93 e1 00 0c stw r31,12(r1) ffc03ff4: 7c 7f 1b 78 mr r31,r3 ffc03ff8: 90 01 00 14 stw r0,20(r1) int len = strlen( pathname ); ffc03ffc: 48 00 d8 e9 bl ffc118e4 ffc04000: 38 03 00 01 addi r0,r3,1 ffc04004: 7f ff 1a 14 add r31,r31,r3 ffc04008: 7c 09 03 a6 mtctr r0 while ( len ) { ffc0400c: 48 00 00 28 b ffc04034 len--; if ( rtems_filesystem_is_separator( pathname[len] ) ) ffc04010: 88 1f ff ff lbz r0,-1(r31) ) { int len = strlen( pathname ); while ( len ) { len--; ffc04014: 38 63 ff ff addi r3,r3,-1 if ( rtems_filesystem_is_separator( pathname[len] ) ) ffc04018: 3b ff ff ff addi r31,r31,-1 ffc0401c: 2c 80 00 2f cmpwi cr1,r0,47 ffc04020: 2f 80 00 00 cmpwi cr7,r0,0 ffc04024: 2f 00 00 5c cmpwi cr6,r0,92 ffc04028: 41 86 00 10 beq- cr1,ffc04038 ffc0402c: 41 9a 00 0c beq- cr6,ffc04038 <== NEVER TAKEN ffc04030: 41 9e 00 08 beq- cr7,ffc04038 <== NEVER TAKEN const char *pathname ) { int len = strlen( pathname ); while ( len ) { ffc04034: 42 00 ff dc bdnz+ ffc04010 if ( rtems_filesystem_is_separator( pathname[len] ) ) break; } return len; } ffc04038: 80 01 00 14 lwz r0,20(r1) ffc0403c: 83 e1 00 0c lwz r31,12(r1) ffc04040: 38 21 00 10 addi r1,r1,16 ffc04044: 7c 08 03 a6 mtlr r0 ffc04048: 4e 80 00 20 blr 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 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc04174: 48 00 c4 75 bl ffc105e8 <__errno> <== NOT EXECUTED ffc04178: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0417c: 48 00 00 14 b ffc04190 <== NOT EXECUTED if ( !pathloc ) ffc04180: 2f 86 00 00 cmpwi cr7,r6,0 ffc04184: 40 be 00 24 bne+ cr7,ffc041a8 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc04188: 48 00 c4 61 bl ffc105e8 <__errno> <== NOT EXECUTED ffc0418c: 38 00 00 05 li r0,5 <== NOT EXECUTED ffc04190: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } ffc04194: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc04198: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0419c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc041a0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc041a4: 4e 80 00 20 blr <== NOT EXECUTED /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc041a8: 88 03 00 00 lbz r0,0(r3) ffc041ac: 2f 80 00 2f cmpwi cr7,r0,47 ffc041b0: 41 9e 00 14 beq- cr7,ffc041c4 ffc041b4: 2f 80 00 5c cmpwi cr7,r0,92 ffc041b8: 41 9e 00 0c beq- cr7,ffc041c4 <== NEVER TAKEN ffc041bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc041c0: 40 9e 00 38 bne- cr7,ffc041f8 <== ALWAYS TAKEN 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 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc0407c: 48 00 c5 6d bl ffc105e8 <__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 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc04090: 48 00 c5 59 bl ffc105e8 <__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 <== NEVER TAKEN 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 <== NEVER TAKEN 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 <== ALWAYS TAKEN 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 cd bl ffc105e8 <__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 <== NEVER TAKEN 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 <== ALWAYS TAKEN 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 39 bl ffc085d4 <== 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 62 addi r30,r30,-14238 * 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 64 addi r3,r3,-14236 /* 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 <== ALWAYS TAKEN 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 ffc0c008 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ ffc0c008: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc0c00c: 80 64 00 00 lwz r3,0(r4) <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } ffc0c010: 7c 03 1a 78 xor r3,r0,r3 <== NOT EXECUTED ffc0c014: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc0c018: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED ffc0c01c: 4e 80 00 20 blr <== NOT EXECUTED ffc03fac : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { ffc03fac: 38 84 00 01 addi r4,r4,1 ffc03fb0: 7c 69 1b 78 mr r9,r3 ffc03fb4: 7c 89 03 a6 mtctr r4 ffc03fb8: 38 60 00 00 li r3,0 /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) ffc03fbc: 48 00 00 08 b ffc03fc4 { pathname++; pathnamelen--; stripped++; ffc03fc0: 38 63 00 01 addi r3,r3,1 { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) ffc03fc4: 7c 09 18 ae lbzx r0,r9,r3 ffc03fc8: 2c 80 00 00 cmpwi cr1,r0,0 ffc03fcc: 2f 80 00 5c cmpwi cr7,r0,92 ffc03fd0: 2f 00 00 2f cmpwi cr6,r0,47 ffc03fd4: 4d 86 00 20 beqlr cr1 ffc03fd8: 42 40 00 0c bdz- ffc03fe4 ffc03fdc: 41 ba ff e4 beq- cr6,ffc03fc0 ffc03fe0: 41 be ff e0 beq- cr7,ffc03fc0 <== NEVER TAKEN pathname++; pathnamelen--; stripped++; } return stripped; } ffc03fe4: 4e 80 00 20 blr 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 71 bl ffc118e4 <== 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 c9 25 bl ffc105e8 <__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 c1 bl ffc118e4 <== 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 ffc0a40c : 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 ) { ffc0a40c: 94 21 ff f0 stwu r1,-16(r1) ffc0a410: 7c 08 02 a6 mflr r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a414: 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 ) { ffc0a418: 90 01 00 14 stw r0,20(r1) rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a41c: 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; ffc0a420: 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 ) { ffc0a424: 93 e1 00 0c stw r31,12(r1) ffc0a428: 7c 7f 1b 78 mr r31,r3 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a42c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a430: 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; ffc0a434: 80 09 27 c0 lwz r0,10176(r9) if ( rtems_interrupt_is_in_progress() ) ffc0a438: 40 9e 01 40 bne- cr7,ffc0a578 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) ffc0a43c: 2f 85 00 00 cmpwi cr7,r5,0 ffc0a440: 41 9e 01 34 beq- cr7,ffc0a574 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) ffc0a444: 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; ffc0a448: 90 05 00 00 stw r0,0(r5) if ( driver_table == NULL ) ffc0a44c: 41 9e 01 28 beq- cr7,ffc0a574 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0a450: 81 24 00 00 lwz r9,0(r4) ffc0a454: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a458: 40 be 01 34 bne+ cr7,ffc0a58c ffc0a45c: 81 24 00 04 lwz r9,4(r4) ffc0a460: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a464: 40 be 01 28 bne+ cr7,ffc0a58c ffc0a468: 48 00 01 0c b ffc0a574 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a46c: 3d 20 00 00 lis r9,0 ffc0a470: 81 69 27 4c lwz r11,10060(r9) ffc0a474: 38 0b 00 01 addi r0,r11,1 ffc0a478: 90 09 27 4c stw r0,10060(r9) if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { ffc0a47c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0a480: 3d 20 00 00 lis r9,0 ffc0a484: 40 9e 00 58 bne- cr7,ffc0a4dc static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; ffc0a488: 3d 60 00 00 lis r11,0 ffc0a48c: 81 29 27 c4 lwz r9,10180(r9) ffc0a490: 81 6b 27 c0 lwz r11,10176(r11) ffc0a494: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a498: 38 0b 00 01 addi r0,r11,1 ffc0a49c: 40 be 00 28 bne+ cr7,ffc0a4c4 <== ALWAYS TAKEN ffc0a4a0: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0a4a4: 48 00 00 20 b ffc0a4c4 <== 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; ffc0a4a8: 81 49 00 00 lwz r10,0(r9) ffc0a4ac: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0a4b0: 40 be 00 ec bne+ cr7,ffc0a59c ffc0a4b4: 81 49 00 04 lwz r10,4(r9) ffc0a4b8: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0a4bc: 40 be 00 e0 bne+ cr7,ffc0a59c ffc0a4c0: 48 00 00 0c b ffc0a4cc 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 ) { ffc0a4c4: 34 00 ff ff addic. r0,r0,-1 ffc0a4c8: 40 82 ff e0 bne+ ffc0a4a8 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) ffc0a4cc: 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; ffc0a4d0: 93 e5 00 00 stw r31,0(r5) if ( m != n ) ffc0a4d4: 40 be 00 48 bne+ cr7,ffc0a51c ffc0a4d8: 48 00 00 d0 b ffc0a5a8 _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; ffc0a4dc: 1c 1f 00 18 mulli r0,r31,24 ffc0a4e0: 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; ffc0a4e4: 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; ffc0a4e8: 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; ffc0a4ec: 38 00 00 00 li r0,0 ffc0a4f0: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a4f4: 40 be 00 10 bne+ cr7,ffc0a504 ffc0a4f8: 80 09 00 04 lwz r0,4(r9) ffc0a4fc: 7c 00 00 34 cntlzw r0,r0 ffc0a500: 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 ) ) { ffc0a504: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a508: 40 9e 00 10 bne- cr7,ffc0a518 _Thread_Enable_dispatch(); ffc0a50c: 48 00 1f 71 bl ffc0c47c <_Thread_Enable_dispatch> ffc0a510: 38 60 00 0c li r3,12 return RTEMS_RESOURCE_IN_USE; ffc0a514: 48 00 00 64 b ffc0a578 } *registered_major = major; ffc0a518: 93 e5 00 00 stw r31,0(r5) } _IO_Driver_address_table [major] = *driver_table; ffc0a51c: 3d 20 00 00 lis r9,0 ffc0a520: 80 c4 00 00 lwz r6,0(r4) ffc0a524: 81 69 27 c4 lwz r11,10180(r9) ffc0a528: 1c 1f 00 18 mulli r0,r31,24 ffc0a52c: 80 e4 00 04 lwz r7,4(r4) ffc0a530: 81 04 00 08 lwz r8,8(r4) ffc0a534: 7d 2b 02 14 add r9,r11,r0 ffc0a538: 81 44 00 0c lwz r10,12(r4) ffc0a53c: 7c cb 01 2e stwx r6,r11,r0 ffc0a540: 90 e9 00 04 stw r7,4(r9) ffc0a544: 91 09 00 08 stw r8,8(r9) ffc0a548: 91 49 00 0c stw r10,12(r9) ffc0a54c: 81 64 00 14 lwz r11,20(r4) ffc0a550: 80 04 00 10 lwz r0,16(r4) ffc0a554: 91 69 00 14 stw r11,20(r9) ffc0a558: 90 09 00 10 stw r0,16(r9) _Thread_Enable_dispatch(); ffc0a55c: 48 00 1f 21 bl ffc0c47c <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); ffc0a560: 7f e3 fb 78 mr r3,r31 ffc0a564: 38 80 00 00 li r4,0 ffc0a568: 38 a0 00 00 li r5,0 ffc0a56c: 48 00 97 7d bl ffc13ce8 ffc0a570: 48 00 00 08 b ffc0a578 ffc0a574: 38 60 00 09 li r3,9 } ffc0a578: 80 01 00 14 lwz r0,20(r1) ffc0a57c: 83 e1 00 0c lwz r31,12(r1) ffc0a580: 38 21 00 10 addi r1,r1,16 ffc0a584: 7c 08 03 a6 mtlr r0 ffc0a588: 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 ) ffc0a58c: 7f 9f 00 40 cmplw cr7,r31,r0 ffc0a590: 38 60 00 0a li r3,10 ffc0a594: 41 9c fe d8 blt+ cr7,ffc0a46c ffc0a598: 4b ff ff e0 b ffc0a578 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 ) { ffc0a59c: 3b ff 00 01 addi r31,r31,1 ffc0a5a0: 39 29 00 18 addi r9,r9,24 ffc0a5a4: 4b ff ff 20 b ffc0a4c4 if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); ffc0a5a8: 48 00 1e d5 bl ffc0c47c <_Thread_Enable_dispatch> ffc0a5ac: 38 60 00 05 li r3,5 return sc; ffc0a5b0: 4b ff ff c8 b ffc0a578 ffc0b490 : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { ffc0b490: 94 21 ff e0 stwu r1,-32(r1) ffc0b494: 7c 08 02 a6 mflr r0 ffc0b498: 93 61 00 0c stw r27,12(r1) uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) ffc0b49c: 7c 7b 1b 79 mr. r27,r3 #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { ffc0b4a0: 90 01 00 24 stw r0,36(r1) ffc0b4a4: 93 81 00 10 stw r28,16(r1) ffc0b4a8: 93 a1 00 14 stw r29,20(r1) ffc0b4ac: 93 c1 00 18 stw r30,24(r1) ffc0b4b0: 93 e1 00 1c stw r31,28(r1) uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) ffc0b4b4: 41 82 00 68 beq- ffc0b51c <== NEVER TAKEN ffc0b4b8: 3f e0 00 01 lis r31,1 ffc0b4bc: 3b ff a9 84 addi r31,r31,-22140 #endif #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) ffc0b4c0: 3b 9f 00 10 addi r28,r31,16 if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) ffc0b4c4: 81 3f 00 00 lwz r9,0(r31) ffc0b4c8: 2f 89 00 00 cmpwi cr7,r9,0 ffc0b4cc: 41 9e 00 44 beq- cr7,ffc0b510 continue; information = _Objects_Information_table[ api_index ][ 1 ]; ffc0b4d0: 83 a9 00 04 lwz r29,4(r9) if ( !information ) ffc0b4d4: 3b c0 00 01 li r30,1 ffc0b4d8: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0b4dc: 40 be 00 20 bne+ cr7,ffc0b4fc ffc0b4e0: 48 00 00 30 b ffc0b510 continue; for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; ffc0b4e4: 81 7d 00 1c lwz r11,28(r29) ffc0b4e8: 7c 6b 48 2e lwzx r3,r11,r9 if ( !the_thread ) ffc0b4ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b4f0: 41 9e 00 0c beq- cr7,ffc0b4fc <== NEVER TAKEN continue; (*routine)(the_thread); ffc0b4f4: 7f 69 03 a6 mtctr r27 ffc0b4f8: 4e 80 04 21 bctrl information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { ffc0b4fc: a0 1d 00 10 lhz r0,16(r29) the_thread = (Thread_Control *)information->local_table[ i ]; ffc0b500: 57 c9 10 3a rlwinm r9,r30,2,0,29 information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { ffc0b504: 7f 9e 00 40 cmplw cr7,r30,r0 ffc0b508: 3b de 00 01 addi r30,r30,1 ffc0b50c: 40 9d ff d8 ble+ cr7,ffc0b4e4 ffc0b510: 3b ff 00 04 addi r31,r31,4 Objects_Information *information; if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { ffc0b514: 7f 9f e0 00 cmpw cr7,r31,r28 ffc0b518: 40 9e ff ac bne+ cr7,ffc0b4c4 (*routine)(the_thread); } } } ffc0b51c: 80 01 00 24 lwz r0,36(r1) ffc0b520: 83 61 00 0c lwz r27,12(r1) ffc0b524: 7c 08 03 a6 mtlr r0 ffc0b528: 83 81 00 10 lwz r28,16(r1) ffc0b52c: 83 a1 00 14 lwz r29,20(r1) ffc0b530: 83 c1 00 18 lwz r30,24(r1) ffc0b534: 83 e1 00 1c lwz r31,28(r1) ffc0b538: 38 21 00 20 addi r1,r1,32 ffc0b53c: 4e 80 00 20 blr ffc0d458 : * This routine searches the IOP Table for an unused entry. If it * finds one, it returns it. Otherwise, it returns NULL. */ rtems_libio_t *rtems_libio_allocate( void ) { ffc0d458: 94 21 ff d8 stwu r1,-40(r1) rtems_status_code rtems_libio_set_private_env(void); rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ; static inline void rtems_libio_lock( void ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d45c: 3d 20 00 00 lis r9,0 ffc0d460: 7c 08 02 a6 mflr r0 ffc0d464: 38 80 00 00 li r4,0 ffc0d468: 80 69 27 10 lwz r3,10000(r9) ffc0d46c: 38 a0 00 00 li r5,0 ffc0d470: 93 e1 00 24 stw r31,36(r1) rtems_status_code rc; rtems_id sema; rtems_libio_lock(); if (rtems_libio_iop_freelist) { ffc0d474: 3f e0 00 00 lis r31,0 * This routine searches the IOP Table for an unused entry. If it * finds one, it returns it. Otherwise, it returns NULL. */ rtems_libio_t *rtems_libio_allocate( void ) { ffc0d478: 90 01 00 2c stw r0,44(r1) ffc0d47c: 93 a1 00 1c stw r29,28(r1) ffc0d480: 93 c1 00 20 stw r30,32(r1) ffc0d484: 4b ff a9 29 bl ffc07dac rtems_status_code rc; rtems_id sema; rtems_libio_lock(); if (rtems_libio_iop_freelist) { ffc0d488: 80 1f 27 0c lwz r0,9996(r31) ffc0d48c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d490: 41 be 00 74 beq+ cr7,ffc0d504 rc = rtems_semaphore_create( ffc0d494: 3d 20 00 00 lis r9,0 ffc0d498: 80 69 27 08 lwz r3,9992(r9) ffc0d49c: 3d 20 38 e3 lis r9,14563 ffc0d4a0: 61 29 8e 39 ori r9,r9,36409 ffc0d4a4: 7c 63 00 50 subf r3,r3,r0 ffc0d4a8: 7c 63 1e 70 srawi r3,r3,3 ffc0d4ac: 7c 63 49 d6 mullw r3,r3,r9 ffc0d4b0: 38 80 00 01 li r4,1 ffc0d4b4: 64 63 4c 42 oris r3,r3,19522 ffc0d4b8: 60 63 49 00 ori r3,r3,18688 ffc0d4bc: 38 a0 00 54 li r5,84 ffc0d4c0: 38 c0 00 00 li r6,0 ffc0d4c4: 38 e1 00 08 addi r7,r1,8 ffc0d4c8: 4b ff a6 15 bl ffc07adc 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 0, &sema ); if (rc != RTEMS_SUCCESSFUL) ffc0d4cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d4d0: 40 be 00 34 bne+ cr7,ffc0d504 <== NEVER TAKEN goto failed; iop = rtems_libio_iop_freelist; ffc0d4d4: 83 df 27 0c lwz r30,9996(r31) next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); ffc0d4d8: 38 80 00 00 li r4,0 ffc0d4dc: 38 a0 00 48 li r5,72 ffc0d4e0: 7f c3 f3 78 mr r3,r30 &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; ffc0d4e4: 83 be 00 38 lwz r29,56(r30) (void) memset( iop, 0, sizeof(rtems_libio_t) ); ffc0d4e8: 48 00 3d e9 bl ffc112d0 iop->flags = LIBIO_FLAGS_OPEN; ffc0d4ec: 38 00 01 00 li r0,256 ffc0d4f0: 90 1e 00 18 stw r0,24(r30) iop->sem = sema; ffc0d4f4: 80 01 00 08 lwz r0,8(r1) rtems_libio_iop_freelist = next; ffc0d4f8: 93 bf 27 0c stw r29,9996(r31) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; ffc0d4fc: 90 1e 00 30 stw r0,48(r30) rtems_libio_iop_freelist = next; goto done; ffc0d500: 48 00 00 08 b ffc0d508 ffc0d504: 3b c0 00 00 li r30,0 } static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore ); ffc0d508: 3d 20 00 00 lis r9,0 ffc0d50c: 80 69 27 10 lwz r3,10000(r9) ffc0d510: 4b ff a9 e1 bl ffc07ef0 iop = 0; done: rtems_libio_unlock(); return iop; } ffc0d514: 80 01 00 2c lwz r0,44(r1) ffc0d518: 7f c3 f3 78 mr r3,r30 ffc0d51c: 83 a1 00 1c lwz r29,28(r1) ffc0d520: 7c 08 03 a6 mtlr r0 ffc0d524: 83 c1 00 20 lwz r30,32(r1) ffc0d528: 83 e1 00 24 lwz r31,36(r1) ffc0d52c: 38 21 00 28 addi r1,r1,40 ffc0d530: 4e 80 00 20 blr ffc0d3e4 : */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0d3e4: 94 21 ff f0 stwu r1,-16(r1) rtems_status_code rtems_libio_set_private_env(void); rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ; static inline void rtems_libio_lock( void ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d3e8: 3d 20 00 00 lis r9,0 ffc0d3ec: 7c 08 02 a6 mflr r0 ffc0d3f0: 38 80 00 00 li r4,0 ffc0d3f4: 93 e1 00 0c stw r31,12(r1) ffc0d3f8: 7c 7f 1b 78 mr r31,r3 ffc0d3fc: 38 a0 00 00 li r5,0 ffc0d400: 80 69 27 10 lwz r3,10000(r9) ffc0d404: 90 01 00 14 stw r0,20(r1) ffc0d408: 4b ff a9 a5 bl ffc07dac rtems_libio_lock(); if (iop->sem) ffc0d40c: 80 7f 00 30 lwz r3,48(r31) ffc0d410: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d414: 41 be 00 08 beq+ cr7,ffc0d41c <== NEVER TAKEN rtems_semaphore_delete(iop->sem); ffc0d418: 4b ff a8 c9 bl ffc07ce0 iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0d41c: 81 7f 00 18 lwz r11,24(r31) iop->data1 = rtems_libio_iop_freelist; ffc0d420: 3d 20 00 00 lis r9,0 ffc0d424: 80 09 27 0c lwz r0,9996(r9) rtems_libio_lock(); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0d428: 55 6b 06 2c rlwinm r11,r11,0,24,22 iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; ffc0d42c: 93 e9 27 0c stw r31,9996(r9) rtems_libio_lock(); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0d430: 91 7f 00 18 stw r11,24(r31) } static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore ); ffc0d434: 3d 60 00 00 lis r11,0 iop->data1 = rtems_libio_iop_freelist; ffc0d438: 90 1f 00 38 stw r0,56(r31) ffc0d43c: 80 6b 27 10 lwz r3,10000(r11) ffc0d440: 4b ff aa b1 bl ffc07ef0 rtems_libio_iop_freelist = iop; rtems_libio_unlock(); } ffc0d444: 80 01 00 14 lwz r0,20(r1) ffc0d448: 83 e1 00 0c lwz r31,12(r1) ffc0d44c: 38 21 00 10 addi r1,r1,16 ffc0d450: 7c 08 03 a6 mtlr r0 ffc0d454: 4e 80 00 20 blr 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 <== NEVER TAKEN { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, ffc0432c: 38 80 00 48 li r4,72 ffc04330: 48 00 8c 3d bl ffc0cf6c 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 <== ALWAYS TAKEN 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 <== ALWAYS TAKEN 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 3d bl ffc07adc 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 <== ALWAYS TAKEN rtems_fatal_error_occurred( rc ); ffc043ac: 48 00 42 29 bl ffc085d4 <== 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 <== NEVER TAKEN (* 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 ffc0d2a4 : */ int rtems_libio_is_file_open( void *node_access ) { ffc0d2a4: 94 21 ff f0 stwu r1,-16(r1) rtems_status_code rtems_libio_set_private_env(void); rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ; static inline void rtems_libio_lock( void ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d2a8: 3d 20 00 00 lis r9,0 ffc0d2ac: 7c 08 02 a6 mflr r0 ffc0d2b0: 38 80 00 00 li r4,0 ffc0d2b4: 93 e1 00 0c stw r31,12(r1) ffc0d2b8: 7c 7f 1b 78 mr r31,r3 ffc0d2bc: 38 a0 00 00 li r5,0 ffc0d2c0: 80 69 27 10 lwz r3,10000(r9) ffc0d2c4: 90 01 00 14 stw r0,20(r1) ffc0d2c8: 4b ff aa e5 bl ffc07dac /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d2cc: 3d 20 00 00 lis r9,0 ffc0d2d0: 81 69 26 4c lwz r11,9804(r9) ffc0d2d4: 3d 20 00 00 lis r9,0 ffc0d2d8: 81 29 27 08 lwz r9,9992(r9) ffc0d2dc: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0d2e0: 38 0b 00 01 addi r0,r11,1 ffc0d2e4: 40 be 00 30 bne+ cr7,ffc0d314 <== ALWAYS TAKEN ffc0d2e8: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0d2ec: 48 00 00 28 b ffc0d314 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { ffc0d2f0: 81 69 00 18 lwz r11,24(r9) ffc0d2f4: 71 6a 01 00 andi. r10,r11,256 ffc0d2f8: 41 82 00 18 beq- ffc0d310 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { ffc0d2fc: 81 69 00 1c lwz r11,28(r9) ffc0d300: 7f 8b f8 00 cmpw cr7,r11,r31 ffc0d304: 40 be 00 0c bne+ cr7,ffc0d310 ffc0d308: 3b e0 00 01 li r31,1 ffc0d30c: 48 00 00 14 b ffc0d320 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d310: 39 29 00 48 addi r9,r9,72 ffc0d314: 34 00 ff ff addic. r0,r0,-1 ffc0d318: 40 82 ff d8 bne+ ffc0d2f0 ffc0d31c: 3b e0 00 00 li r31,0 } static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore ); ffc0d320: 3d 20 00 00 lis r9,0 ffc0d324: 80 69 27 10 lwz r3,10000(r9) ffc0d328: 4b ff ab c9 bl ffc07ef0 } rtems_libio_unlock(); return result; } ffc0d32c: 80 01 00 14 lwz r0,20(r1) ffc0d330: 7f e3 fb 78 mr r3,r31 ffc0d334: 83 e1 00 0c lwz r31,12(r1) ffc0d338: 7c 08 03 a6 mtlr r0 ffc0d33c: 38 21 00 10 addi r1,r1,16 ffc0d340: 4e 80 00 20 blr ffc0d344 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d344: 94 21 ff f0 stwu r1,-16(r1) rtems_status_code rtems_libio_set_private_env(void); rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ; static inline void rtems_libio_lock( void ) { rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d348: 3d 20 00 00 lis r9,0 ffc0d34c: 7c 08 02 a6 mflr r0 ffc0d350: 38 80 00 00 li r4,0 ffc0d354: 93 e1 00 0c stw r31,12(r1) ffc0d358: 7c 7f 1b 78 mr r31,r3 ffc0d35c: 38 a0 00 00 li r5,0 ffc0d360: 80 69 27 10 lwz r3,10000(r9) ffc0d364: 90 01 00 14 stw r0,20(r1) ffc0d368: 4b ff aa 45 bl ffc07dac /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d36c: 3d 20 00 00 lis r9,0 ffc0d370: 81 69 26 4c lwz r11,9804(r9) ffc0d374: 3d 20 00 00 lis r9,0 ffc0d378: 81 29 27 08 lwz r9,9992(r9) ffc0d37c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0d380: 38 0b 00 01 addi r0,r11,1 ffc0d384: 40 be 00 30 bne+ cr7,ffc0d3b4 <== ALWAYS TAKEN ffc0d388: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0d38c: 48 00 00 28 b ffc0d3b4 <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { ffc0d390: 81 69 00 18 lwz r11,24(r9) ffc0d394: 71 6a 01 00 andi. r10,r11,256 ffc0d398: 41 82 00 18 beq- ffc0d3b0 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { ffc0d39c: 81 69 00 2c lwz r11,44(r9) ffc0d3a0: 7f 8b f8 00 cmpw cr7,r11,r31 ffc0d3a4: 40 be 00 0c bne+ cr7,ffc0d3b0 ffc0d3a8: 3b e0 00 01 li r31,1 ffc0d3ac: 48 00 00 14 b ffc0d3c0 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d3b0: 39 29 00 48 addi r9,r9,72 ffc0d3b4: 34 00 ff ff addic. r0,r0,-1 ffc0d3b8: 40 82 ff d8 bne+ ffc0d390 ffc0d3bc: 3b e0 00 00 li r31,0 } static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore ); ffc0d3c0: 3d 20 00 00 lis r9,0 ffc0d3c4: 80 69 27 10 lwz r3,10000(r9) ffc0d3c8: 4b ff ab 29 bl ffc07ef0 } rtems_libio_unlock(); return result; } ffc0d3cc: 80 01 00 14 lwz r0,20(r1) ffc0d3d0: 7f e3 fb 78 mr r3,r31 ffc0d3d4: 83 e1 00 0c lwz r31,12(r1) ffc0d3d8: 7c 08 03 a6 mtlr r0 ffc0d3dc: 38 21 00 10 addi r1,r1,16 ffc0d3e0: 4e 80 00 20 blr ffc0608c : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc0608c: 94 21 ff c0 stwu r1,-64(r1) ffc06090: 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); ffc06094: 38 60 00 00 li r3,0 ffc06098: 38 80 00 00 li r4,0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc0609c: 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); ffc060a0: 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) { ffc060a4: 90 01 00 44 stw r0,68(r1) ffc060a8: 93 61 00 2c stw r27,44(r1) ffc060ac: 93 81 00 30 stw r28,48(r1) ffc060b0: 93 a1 00 34 stw r29,52(r1) ffc060b4: 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); ffc060b8: 48 00 31 55 bl ffc0920c if (sc != RTEMS_SUCCESSFUL) return sc; ffc060bc: 7c 7f 1b 79 mr. r31,r3 ffc060c0: 40 82 01 50 bne- ffc06210 <== NEVER TAKEN /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { ffc060c4: 3f c0 00 00 lis r30,0 ffc060c8: 81 3e 26 74 lwz r9,9844(r30) ffc060cc: 3d 60 00 00 lis r11,0 ffc060d0: 38 0b 2a 84 addi r0,r11,10884 ffc060d4: 7f 89 00 00 cmpw cr7,r9,r0 ffc060d8: 3b 9e 26 74 addi r28,r30,9844 ffc060dc: 40 be 00 4c bne+ cr7,ffc06128 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); ffc060e0: 38 60 00 48 li r3,72 ffc060e4: 4b ff f1 51 bl ffc05234 if (!tmp) ffc060e8: 7c 7d 1b 79 mr. r29,r3 ffc060ec: 40 a2 00 0c bne+ ffc060f8 <== ALWAYS TAKEN ffc060f0: 3b e0 00 1a li r31,26 <== NOT EXECUTED ffc060f4: 48 00 01 1c b ffc06210 <== 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); ffc060f8: 3c a0 ff c0 lis r5,-64 ffc060fc: 7f 84 e3 78 mr r4,r28 ffc06100: 38 a5 5f 2c addi r5,r5,24364 ffc06104: 38 60 00 00 li r3,0 ffc06108: 48 00 33 11 bl ffc09418 if (sc != RTEMS_SUCCESSFUL) { ffc0610c: 7c 7c 1b 79 mr. r28,r3 ffc06110: 41 a2 00 14 beq+ ffc06124 <== ALWAYS TAKEN /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); ffc06114: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc06118: 4b ff e9 e9 bl ffc04b00 <== NOT EXECUTED ffc0611c: 7f 9f e3 78 mr r31,r28 <== NOT EXECUTED return sc; ffc06120: 48 00 00 f0 b ffc06210 <== NOT EXECUTED } rtems_current_user_env = tmp; ffc06124: 93 be 26 74 stw r29,9844(r30) }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ ffc06128: 3f c0 00 00 lis r30,0 ffc0612c: 83 7e 26 74 lwz r27,9844(r30) ffc06130: 3c 80 00 00 lis r4,0 ffc06134: 38 84 2a 84 addi r4,r4,10884 ffc06138: 38 a0 00 48 li r5,72 ffc0613c: 7f 63 db 78 mr r3,r27 ffc06140: 48 00 d1 5d bl ffc1329c rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc06144: 3d 20 00 00 lis r9,0 ffc06148: 81 29 2a 78 lwz r9,10872(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); ffc0614c: 3f 80 ff c2 lis r28,-62 ffc06150: 3b 9c f1 e8 addi r28,r28,-3608 *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; ffc06154: 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); ffc06158: 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; ffc0615c: 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); ffc06160: 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; ffc06164: 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); ffc06168: 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; ffc0616c: 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); ffc06170: 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; ffc06174: 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); ffc06178: 38 e0 00 00 li r7,0 ffc0617c: 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; ffc06180: 91 5b 00 1c stw r10,28(r27) ffc06184: 91 7b 00 20 stw r11,32(r27) ffc06188: 90 1b 00 24 stw r0,36(r27) ffc0618c: 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*/ ffc06190: 81 21 00 08 lwz r9,8(r1) /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc06194: 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*/ ffc06198: 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); ffc0619c: 4b ff e8 81 bl ffc04a1c rtems_filesystem_root = loc; ffc061a0: 81 3e 26 74 lwz r9,9844(r30) ffc061a4: 81 41 00 10 lwz r10,16(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc061a8: 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; ffc061ac: 81 61 00 14 lwz r11,20(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc061b0: 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; ffc061b4: 80 01 00 18 lwz r0,24(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc061b8: 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; ffc061bc: 81 01 00 0c lwz r8,12(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc061c0: 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; ffc061c4: 91 49 00 1c stw r10,28(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc061c8: 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; ffc061cc: 91 09 00 18 stw r8,24(r9) ffc061d0: 91 69 00 20 stw r11,32(r9) ffc061d4: 90 09 00 24 stw r0,36(r9) ffc061d8: 80 01 00 1c lwz r0,28(r1) ffc061dc: 90 09 00 28 stw r0,40(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc061e0: 4b ff e8 3d bl ffc04a1c rtems_filesystem_current = loc; ffc061e4: 80 01 00 18 lwz r0,24(r1) ffc061e8: 81 3e 26 74 lwz r9,9844(r30) ffc061ec: 81 41 00 10 lwz r10,16(r1) ffc061f0: 81 61 00 14 lwz r11,20(r1) ffc061f4: 81 01 00 0c lwz r8,12(r1) ffc061f8: 91 49 00 08 stw r10,8(r9) ffc061fc: 91 09 00 04 stw r8,4(r9) ffc06200: 91 69 00 0c stw r11,12(r9) ffc06204: 90 09 00 10 stw r0,16(r9) ffc06208: 80 01 00 1c lwz r0,28(r1) ffc0620c: 90 09 00 14 stw r0,20(r9) return RTEMS_SUCCESSFUL; } ffc06210: 80 01 00 44 lwz r0,68(r1) ffc06214: 7f e3 fb 78 mr r3,r31 ffc06218: 83 61 00 2c lwz r27,44(r1) ffc0621c: 7c 08 03 a6 mtlr r0 ffc06220: 83 81 00 30 lwz r28,48(r1) ffc06224: 83 a1 00 34 lwz r29,52(r1) ffc06228: 83 c1 00 38 lwz r30,56(r1) ffc0622c: 83 e1 00 3c lwz r31,60(r1) ffc06230: 38 21 00 40 addi r1,r1,64 ffc06234: 4e 80 00 20 blr ffc05fb4 : * 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) { ffc05fb4: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc05fb8: 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); ffc05fbc: 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) { ffc05fc0: 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); ffc05fc4: 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) { ffc05fc8: 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); ffc05fcc: 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) { ffc05fd0: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc05fd4: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc05fd8: 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); ffc05fdc: 48 00 32 31 bl ffc0920c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc05fe0: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc05fe4: 40 82 00 88 bne- ffc0606c <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { ffc05fe8: 3c 80 00 00 lis r4,0 <== NOT EXECUTED ffc05fec: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc05ff0: 83 e4 26 74 lwz r31,9844(r4) <== NOT EXECUTED ffc05ff4: 38 84 26 74 addi r4,r4,9844 <== NOT EXECUTED ffc05ff8: 81 3f 00 00 lwz r9,0(r31) <== NOT EXECUTED ffc05ffc: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06000: 40 be 00 18 bne+ cr7,ffc06018 <== 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); ffc06004: 48 00 34 e1 bl ffc094e4 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc06008: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc0600c: 40 a2 00 60 bne+ ffc0606c <== NOT EXECUTED free_user_env(tmp); ffc06010: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06014: 4b ff ff 19 bl ffc05f2c <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, ffc06018: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc0601c: 3b df 26 74 addi r30,r31,9844 <== NOT EXECUTED ffc06020: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc06024: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc06028: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc0602c: 48 00 35 59 bl ffc09584 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) ffc06030: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc06034: 40 a2 00 28 bne+ ffc0605c <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); ffc06038: 3c a0 ff c0 lis r5,-64 <== NOT EXECUTED ffc0603c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc06040: 38 a5 5f 2c addi r5,r5,24364 <== NOT EXECUTED ffc06044: 48 00 33 d5 bl ffc09418 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc06048: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc0604c: 40 a2 00 10 bne+ ffc0605c <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; ffc06050: 81 21 00 08 lwz r9,8(r1) <== NOT EXECUTED ffc06054: 91 3f 26 74 stw r9,9844(r31) <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; ffc06058: 48 00 00 14 b ffc0606c <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; ffc0605c: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc06060: 39 6b 2a 84 addi r11,r11,10884 <== NOT EXECUTED ffc06064: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06068: 91 69 26 74 stw r11,9844(r9) <== NOT EXECUTED return sc; } ffc0606c: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED ffc06070: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc06074: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc06078: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0607c: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc06080: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc06084: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc06088: 4e 80 00 20 blr <== NOT EXECUTED ffc0d254 : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { ffc0d254: 54 60 07 7c rlwinm r0,r3,0,29,30 ffc0d258: 2f 80 00 06 cmpwi cr7,r0,6 ffc0d25c: 38 00 00 02 li r0,2 ffc0d260: 41 9e 00 18 beq- cr7,ffc0d278 <== NEVER TAKEN fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { ffc0d264: 54 69 ff fe rlwinm r9,r3,31,31,31 ffc0d268: 31 29 ff ff addic r9,r9,-1 ffc0d26c: 7d 29 49 10 subfe r9,r9,r9 ffc0d270: 54 60 f7 fe rlwinm r0,r3,30,31,31 ffc0d274: 7c 00 48 38 and r0,r0,r9 fcntl_flags |= O_RDONLY; } else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) { fcntl_flags |= O_WRONLY; } if ( (flags & LIBIO_FLAGS_NO_DELAY) == LIBIO_FLAGS_NO_DELAY ) { ffc0d278: 70 69 00 01 andi. r9,r3,1 ffc0d27c: 41 82 00 08 beq- ffc0d284 fcntl_flags |= O_NONBLOCK; ffc0d280: 60 00 40 00 ori r0,r0,16384 } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { ffc0d284: 70 69 02 00 andi. r9,r3,512 ffc0d288: 41 82 00 08 beq- ffc0d290 fcntl_flags |= O_APPEND; ffc0d28c: 60 00 00 08 ori r0,r0,8 } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { ffc0d290: 70 69 04 00 andi. r9,r3,1024 ffc0d294: 41 82 00 08 beq- ffc0d29c fcntl_flags |= O_CREAT; ffc0d298: 60 00 02 00 ori r0,r0,512 } return fcntl_flags; } ffc0d29c: 7c 03 03 78 mr r3,r0 ffc0d2a0: 4e 80 00 20 blr ffc131c8 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc131c8: 94 21 ff e8 stwu r1,-24(r1) ffc131cc: 7c 08 02 a6 mflr r0 ffc131d0: 93 e1 00 14 stw r31,20(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc131d4: 7c 7f 1b 79 mr. r31,r3 int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc131d8: 93 a1 00 0c stw r29,12(r1) ffc131dc: 7c bd 2b 78 mr r29,r5 ffc131e0: 93 c1 00 10 stw r30,16(r1) ffc131e4: 7c 9e 23 78 mr r30,r4 ffc131e8: 90 01 00 1c stw r0,28(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc131ec: 41 82 00 7c beq- ffc13268 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && ffc131f0: 3d 20 00 00 lis r9,0 ffc131f4: 80 09 27 b0 lwz r0,10160(r9) ffc131f8: 2f 80 00 03 cmpwi cr7,r0,3 * Parameter error checks */ if ( !pointer ) return EINVAL; *pointer = NULL; ffc131fc: 38 00 00 00 li r0,0 ffc13200: 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()) && ffc13204: 40 be 00 10 bne+ cr7,ffc13214 <== NEVER TAKEN ffc13208: 4b ff 2a d5 bl ffc05cdc ffc1320c: 2f 83 00 00 cmpwi cr7,r3,0 ffc13210: 41 9e 00 58 beq- cr7,ffc13268 <== NEVER TAKEN /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); ffc13214: 4b ff 2b 3d bl ffc05d50 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); ffc13218: 3d 20 00 00 lis r9,0 ffc1321c: 80 69 26 7c lwz r3,9852(r9) ffc13220: 7f c5 f3 78 mr r5,r30 ffc13224: 7f a4 eb 78 mr r4,r29 ffc13228: 38 c0 00 00 li r6,0 ffc1322c: 4b ff 89 bd bl ffc0bbe8 <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) ffc13230: 7c 7e 1b 79 mr. r30,r3 ffc13234: 38 60 00 0c li r3,12 ffc13238: 41 82 00 34 beq- ffc1326c return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) ffc1323c: 3d 20 00 00 lis r9,0 ffc13240: 81 29 26 e8 lwz r9,9960(r9) ffc13244: 2f 89 00 00 cmpwi cr7,r9,0 ffc13248: 41 9e 00 14 beq- cr7,ffc1325c <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->at_malloc)(pointer); ffc1324c: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc13250: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc13254: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc13258: 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; ffc1325c: 93 df 00 00 stw r30,0(r31) ffc13260: 38 60 00 00 li r3,0 return 0; ffc13264: 48 00 00 08 b ffc1326c ffc13268: 38 60 00 16 li r3,22 } ffc1326c: 80 01 00 1c lwz r0,28(r1) ffc13270: 83 a1 00 0c lwz r29,12(r1) ffc13274: 7c 08 03 a6 mtlr r0 ffc13278: 83 c1 00 10 lwz r30,16(r1) ffc1327c: 83 e1 00 14 lwz r31,20(r1) ffc13280: 38 21 00 18 addi r1,r1,24 ffc13284: 4e 80 00 20 blr ffc0a4b8 : void rtems_panic( const char *printf_format, ... ) { ffc0a4b8: 94 21 ff 88 stwu r1,-120(r1) <== NOT EXECUTED ffc0a4bc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a4c0: 90 81 00 1c stw r4,28(r1) <== NOT EXECUTED ffc0a4c4: 90 01 00 7c stw r0,124(r1) <== NOT EXECUTED ffc0a4c8: 90 a1 00 20 stw r5,32(r1) <== NOT EXECUTED ffc0a4cc: 90 c1 00 24 stw r6,36(r1) <== NOT EXECUTED ffc0a4d0: 90 e1 00 28 stw r7,40(r1) <== NOT EXECUTED ffc0a4d4: 91 01 00 2c stw r8,44(r1) <== NOT EXECUTED ffc0a4d8: 91 21 00 30 stw r9,48(r1) <== NOT EXECUTED ffc0a4dc: 91 41 00 34 stw r10,52(r1) <== NOT EXECUTED ffc0a4e0: 40 86 00 24 bne- cr1,ffc0a504 <== NOT EXECUTED ffc0a4e4: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc0a4e8: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc0a4ec: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc0a4f0: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc0a4f4: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc0a4f8: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc0a4fc: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc0a500: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0a504: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0a508: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0a50c: 38 00 00 00 li r0,0 <== NOT EXECUTED void rtems_panic( const char *printf_format, ... ) { ffc0a510: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0a514: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0a518: 38 01 00 80 addi r0,r1,128 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a51c: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0a520: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a524: 3c 60 20 00 lis r3,8192 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0a528: 38 01 00 18 addi r0,r1,24 <== NOT EXECUTED ffc0a52c: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a530: 4b ff fd 8d bl ffc0a2bc <== NOT EXECUTED va_end(arglist); } ffc0a534: 80 01 00 7c lwz r0,124(r1) <== NOT EXECUTED ffc0a538: 38 21 00 78 addi r1,r1,120 <== NOT EXECUTED ffc0a53c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a540: 4e 80 00 20 blr <== NOT EXECUTED ffc16c0c : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { ffc16c0c: 94 21 ff d0 stwu r1,-48(r1) ffc16c10: 7c 08 02 a6 mflr r0 ffc16c14: 93 e1 00 2c stw r31,44(r1) register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) ffc16c18: 7c 7f 1b 79 mr. r31,r3 ffc16c1c: 38 60 00 03 li r3,3 uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { ffc16c20: 93 41 00 18 stw r26,24(r1) ffc16c24: 7c fa 3b 78 mr r26,r7 ffc16c28: 93 81 00 20 stw r28,32(r1) ffc16c2c: 7d 1c 43 78 mr r28,r8 ffc16c30: 93 c1 00 28 stw r30,40(r1) ffc16c34: 7c be 2b 78 mr r30,r5 ffc16c38: 90 01 00 34 stw r0,52(r1) ffc16c3c: 93 21 00 14 stw r25,20(r1) ffc16c40: 93 61 00 1c stw r27,28(r1) ffc16c44: 93 a1 00 24 stw r29,36(r1) register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) ffc16c48: 41 82 00 d0 beq- ffc16d18 return RTEMS_INVALID_NAME; if ( !starting_address ) ffc16c4c: 2f 84 00 00 cmpwi cr7,r4,0 ffc16c50: 41 9e 00 bc beq- cr7,ffc16d0c return RTEMS_INVALID_ADDRESS; if ( !id ) ffc16c54: 2f 88 00 00 cmpwi cr7,r8,0 ffc16c58: 41 9e 00 b4 beq- cr7,ffc16d0c <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || ffc16c5c: 2f 85 00 00 cmpwi cr7,r5,0 ffc16c60: 41 9e 00 b4 beq- cr7,ffc16d14 ffc16c64: 2f 86 00 00 cmpwi cr7,r6,0 ffc16c68: 41 9e 00 ac beq- cr7,ffc16d14 ffc16c6c: 7f 85 30 40 cmplw cr7,r5,r6 ffc16c70: 41 9c 00 a4 blt- cr7,ffc16d14 ffc16c74: 70 c0 00 07 andi. r0,r6,7 ffc16c78: 40 82 00 9c bne- ffc16d14 !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) ffc16c7c: 70 99 00 07 andi. r25,r4,7 ffc16c80: 40 a2 00 8c bne+ ffc16d0c ffc16c84: 3d 20 00 00 lis r9,0 ffc16c88: 81 69 28 24 lwz r11,10276(r9) ffc16c8c: 38 0b 00 01 addi r0,r11,1 ffc16c90: 90 09 28 24 stw r0,10276(r9) * This function allocates a partition control block from * the inactive chain of free partition control blocks. */ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void ) { return (Partition_Control *) _Objects_Allocate( &_Partition_Information ); ffc16c94: 3f 60 00 00 lis r27,0 ffc16c98: 90 81 00 08 stw r4,8(r1) ffc16c9c: 3b 7b 6e 6c addi r27,r27,28268 ffc16ca0: 7f 63 db 78 mr r3,r27 ffc16ca4: 90 c1 00 0c stw r6,12(r1) ffc16ca8: 48 00 54 7d bl ffc1c124 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { ffc16cac: 7c 7d 1b 79 mr. r29,r3 ffc16cb0: 80 81 00 08 lwz r4,8(r1) ffc16cb4: 80 c1 00 0c lwz r6,12(r1) ffc16cb8: 40 a2 00 10 bne+ ffc16cc8 _Thread_Enable_dispatch(); ffc16cbc: 48 00 65 d5 bl ffc1d290 <_Thread_Enable_dispatch> ffc16cc0: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc16cc4: 48 00 00 54 b ffc16d18 the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; _Chain_Initialize( &the_partition->Memory, starting_address, ffc16cc8: 7c be 33 96 divwu r5,r30,r6 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; ffc16ccc: 90 9d 00 10 stw r4,16(r29) the_partition->length = length; the_partition->buffer_size = buffer_size; ffc16cd0: 90 dd 00 18 stw r6,24(r29) the_partition->attribute_set = attribute_set; ffc16cd4: 93 5d 00 1c stw r26,28(r29) the_partition->number_of_used_blocks = 0; ffc16cd8: 93 3d 00 20 stw r25,32(r29) return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; ffc16cdc: 93 dd 00 14 stw r30,20(r29) the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; _Chain_Initialize( &the_partition->Memory, starting_address, ffc16ce0: 38 7d 00 24 addi r3,r29,36 ffc16ce4: 48 00 3c 95 bl ffc1a978 <_Chain_Initialize> ffc16ce8: 80 1d 00 08 lwz r0,8(r29) ffc16cec: 81 7b 00 1c lwz r11,28(r27) ffc16cf0: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc16cf4: 93 fd 00 0c stw r31,12(r29) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc16cf8: 7f ab 49 2e stwx r29,r11,r9 &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; ffc16cfc: 90 1c 00 00 stw r0,0(r28) name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); ffc16d00: 48 00 65 91 bl ffc1d290 <_Thread_Enable_dispatch> ffc16d04: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc16d08: 48 00 00 10 b ffc16d18 ffc16d0c: 38 60 00 09 li r3,9 ffc16d10: 48 00 00 08 b ffc16d18 ffc16d14: 38 60 00 08 li r3,8 } ffc16d18: 80 01 00 34 lwz r0,52(r1) ffc16d1c: 83 21 00 14 lwz r25,20(r1) ffc16d20: 7c 08 03 a6 mtlr r0 ffc16d24: 83 41 00 18 lwz r26,24(r1) ffc16d28: 83 61 00 1c lwz r27,28(r1) ffc16d2c: 83 81 00 20 lwz r28,32(r1) ffc16d30: 83 a1 00 24 lwz r29,36(r1) ffc16d34: 83 c1 00 28 lwz r30,40(r1) ffc16d38: 83 e1 00 2c lwz r31,44(r1) ffc16d3c: 38 21 00 30 addi r1,r1,48 ffc16d40: 4e 80 00 20 blr ffc16ebc : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { ffc16ebc: 94 21 ff e0 stwu r1,-32(r1) ffc16ec0: 7c 08 02 a6 mflr r0 ffc16ec4: 90 01 00 24 stw r0,36(r1) ffc16ec8: 7c 60 1b 78 mr r0,r3 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) ffc16ecc: 3c 60 00 00 lis r3,0 ffc16ed0: 93 e1 00 1c stw r31,28(r1) ffc16ed4: 38 63 6e 6c addi r3,r3,28268 ffc16ed8: 7c 9f 23 78 mr r31,r4 ffc16edc: 38 a1 00 08 addi r5,r1,8 ffc16ee0: 93 c1 00 18 stw r30,24(r1) ffc16ee4: 7c 04 03 78 mr r4,r0 ffc16ee8: 48 00 58 31 bl ffc1c718 <_Objects_Get> register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { ffc16eec: 80 01 00 08 lwz r0,8(r1) ffc16ef0: 7c 7e 1b 78 mr r30,r3 ffc16ef4: 2f 80 00 00 cmpwi cr7,r0,0 ffc16ef8: 38 60 00 04 li r3,4 ffc16efc: 40 9e 00 58 bne- cr7,ffc16f54 ) { void *starting; void *ending; starting = the_partition->starting_address; ffc16f00: 80 1e 00 10 lwz r0,16(r30) ending = _Addresses_Add_offset( starting, the_partition->length ); ffc16f04: 81 3e 00 14 lwz r9,20(r30) const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); ffc16f08: 7f 9f 00 40 cmplw cr7,r31,r0 ffc16f0c: 41 9c 00 60 blt- cr7,ffc16f6c ffc16f10: 7d 20 4a 14 add r9,r0,r9 ffc16f14: 7f 9f 48 40 cmplw cr7,r31,r9 ffc16f18: 41 9d 00 54 bgt- cr7,ffc16f6c <== NEVER TAKEN return ( ffc16f1c: 81 3e 00 18 lwz r9,24(r30) ffc16f20: 7c 00 f8 50 subf r0,r0,r31 ffc16f24: 7d 60 4b 96 divwu r11,r0,r9 ffc16f28: 7d 2b 49 d6 mullw r9,r11,r9 ffc16f2c: 7f 80 48 00 cmpw cr7,r0,r9 ffc16f30: 40 9e 00 3c bne- cr7,ffc16f6c RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); ffc16f34: 38 7e 00 24 addi r3,r30,36 ffc16f38: 7f e4 fb 78 mr r4,r31 ffc16f3c: 48 00 39 cd bl ffc1a908 <_Chain_Append> case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; ffc16f40: 81 3e 00 20 lwz r9,32(r30) ffc16f44: 38 09 ff ff addi r0,r9,-1 ffc16f48: 90 1e 00 20 stw r0,32(r30) _Thread_Enable_dispatch(); ffc16f4c: 48 00 63 45 bl ffc1d290 <_Thread_Enable_dispatch> ffc16f50: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc16f54: 80 01 00 24 lwz r0,36(r1) ffc16f58: 83 c1 00 18 lwz r30,24(r1) ffc16f5c: 7c 08 03 a6 mtlr r0 ffc16f60: 83 e1 00 1c lwz r31,28(r1) ffc16f64: 38 21 00 20 addi r1,r1,32 ffc16f68: 4e 80 00 20 blr _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc16f6c: 48 00 63 25 bl ffc1d290 <_Thread_Enable_dispatch> ffc16f70: 38 60 00 09 li r3,9 return RTEMS_INVALID_ADDRESS; ffc16f74: 4b ff ff e0 b ffc16f54 ffc0e95c : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc0e95c: 7c 08 02 a6 mflr r0 ffc0e960: 94 21 ff f8 stwu r1,-8(r1) if (!rtems_pipe_configured) ffc0e964: 3d 20 00 00 lis r9,0 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc0e968: 90 01 00 0c stw r0,12(r1) if (!rtems_pipe_configured) ffc0e96c: 88 09 26 c4 lbz r0,9924(r9) ffc0e970: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e974: 41 9e 00 48 beq- cr7,ffc0e9bc <== ALWAYS TAKEN return; if (rtems_pipe_semaphore) ffc0e978: 3c e0 00 00 lis r7,0 <== NOT EXECUTED ffc0e97c: 80 07 28 fc lwz r0,10492(r7) <== NOT EXECUTED ffc0e980: 38 e7 28 fc addi r7,r7,10492 <== NOT EXECUTED ffc0e984: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0e988: 40 be 00 34 bne+ cr7,ffc0e9bc <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( ffc0e98c: 3c 60 50 49 lis r3,20553 <== NOT EXECUTED ffc0e990: 60 63 50 45 ori r3,r3,20549 <== NOT EXECUTED ffc0e994: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc0e998: 38 a0 00 54 li r5,84 <== NOT EXECUTED ffc0e99c: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc0e9a0: 4b ff 91 3d bl ffc07adc <== 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) ffc0e9a4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0e9a8: 41 be 00 08 beq+ cr7,ffc0e9b0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc0e9ac: 4b ff 9c 29 bl ffc085d4 <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); ffc0e9b0: 4b ff 8c b9 bl ffc07668 <== NOT EXECUTED rtems_pipe_no = now; ffc0e9b4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0e9b8: b0 69 27 b0 sth r3,10160(r9) <== NOT EXECUTED } ffc0e9bc: 80 01 00 0c lwz r0,12(r1) ffc0e9c0: 38 21 00 08 addi r1,r1,8 ffc0e9c4: 7c 08 03 a6 mtlr r0 ffc0e9c8: 4e 80 00 20 blr ffc092d8 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { ffc092d8: 94 21 ff d8 stwu r1,-40(r1) ffc092dc: 7c 08 02 a6 mflr r0 ffc092e0: 93 c1 00 20 stw r30,32(r1) ffc092e4: 7c 7e 1b 78 mr r30,r3 RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) ffc092e8: 3c 60 00 00 lis r3,0 ffc092ec: 93 e1 00 24 stw r31,36(r1) ffc092f0: 38 63 2b ec addi r3,r3,11244 ffc092f4: 7c 9f 23 78 mr r31,r4 ffc092f8: 38 a1 00 08 addi r5,r1,8 ffc092fc: 90 01 00 2c stw r0,44(r1) ffc09300: 7f c4 f3 78 mr r4,r30 ffc09304: 93 a1 00 1c stw r29,28(r1) ffc09308: 93 81 00 18 stw r28,24(r1) ffc0930c: 48 00 28 95 bl ffc0bba0 <_Objects_Get> ffc09310: 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 ) { ffc09314: 80 01 00 08 lwz r0,8(r1) ffc09318: 2f 80 00 00 cmpwi cr7,r0,0 ffc0931c: 40 9e 01 70 bne- cr7,ffc0948c case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { ffc09320: 3d 20 00 00 lis r9,0 ffc09324: 80 09 27 f0 lwz r0,10224(r9) ffc09328: 81 23 00 40 lwz r9,64(r3) ffc0932c: 7f 89 00 00 cmpw cr7,r9,r0 ffc09330: 41 9e 00 10 beq- cr7,ffc09340 _Thread_Enable_dispatch(); ffc09334: 48 00 33 39 bl ffc0c66c <_Thread_Enable_dispatch> ffc09338: 3b c0 00 17 li r30,23 return RTEMS_NOT_OWNER_OF_RESOURCE; ffc0933c: 48 00 01 54 b ffc09490 } if ( length == RTEMS_PERIOD_STATUS ) { ffc09340: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09344: 40 be 00 28 bne+ cr7,ffc0936c switch ( the_period->state ) { ffc09348: 80 03 00 38 lwz r0,56(r3) ffc0934c: 3b c0 00 00 li r30,0 ffc09350: 2b 80 00 04 cmplwi cr7,r0,4 ffc09354: 41 9d 01 30 bgt- cr7,ffc09484 <== NEVER TAKEN ffc09358: 3d 20 ff c2 lis r9,-62 ffc0935c: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc09360: 39 29 1d 94 addi r9,r9,7572 ffc09364: 7f c9 00 2e lwzx r30,r9,r0 ffc09368: 48 00 01 1c b ffc09484 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0936c: 7f 80 00 a6 mfmsr r28 ffc09370: 7c 10 42 a6 mfsprg r0,0 ffc09374: 7f 80 00 78 andc r0,r28,r0 ffc09378: 7c 00 01 24 mtmsr r0 _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); switch ( the_period->state ) { ffc0937c: 80 03 00 38 lwz r0,56(r3) ffc09380: 2f 80 00 02 cmpwi cr7,r0,2 ffc09384: 41 9e 00 60 beq- cr7,ffc093e4 ffc09388: 2f 80 00 04 cmpwi cr7,r0,4 ffc0938c: 41 9e 00 cc beq- cr7,ffc09458 ffc09390: 2f 80 00 00 cmpwi cr7,r0,0 ffc09394: 40 9e 00 f8 bne- cr7,ffc0948c <== NEVER TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09398: 7f 80 01 24 mtmsr r28 _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); ffc0939c: 4b ff fc 99 bl ffc09034 <_Rate_monotonic_Initiate_statistics> the_period->state = RATE_MONOTONIC_ACTIVE; ffc093a0: 39 20 00 02 li r9,2 ffc093a4: 91 3d 00 38 stw r9,56(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc093a8: 3d 20 ff c1 lis r9,-63 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc093ac: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc093b0: 39 29 98 44 addi r9,r9,-26556 the_watchdog->id = id; ffc093b4: 93 dd 00 30 stw r30,48(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc093b8: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc093bc: 91 3d 00 2c stw r9,44(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc093c0: 38 63 2d e8 addi r3,r3,11752 ffc093c4: 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; ffc093c8: 90 1d 00 34 stw r0,52(r29) ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc093cc: 3b c0 00 00 li r30,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc093d0: 93 fd 00 1c stw r31,28(r29) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc093d4: 90 1d 00 18 stw r0,24(r29) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; ffc093d8: 93 fd 00 3c stw r31,60(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc093dc: 48 00 49 09 bl ffc0dce4 <_Watchdog_Insert> ffc093e0: 48 00 00 a4 b ffc09484 case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); ffc093e4: 4b ff fd d9 bl ffc091bc <_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; ffc093e8: 38 00 00 01 li r0,1 the_period->next_length = length; ffc093ec: 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; ffc093f0: 90 1d 00 38 stw r0,56(r29) ffc093f4: 7f 80 01 24 mtmsr r28 the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; ffc093f8: 3d 20 00 00 lis r9,0 ffc093fc: 80 1d 00 08 lwz r0,8(r29) ffc09400: 81 29 27 f0 lwz r9,10224(r9) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc09404: 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; ffc09408: 90 09 00 20 stw r0,32(r9) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc0940c: 7d 23 4b 78 mr r3,r9 ffc09410: 48 00 3d 19 bl ffc0d128 <_Thread_Set_state> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09414: 7d 20 00 a6 mfmsr r9 ffc09418: 7c 10 42 a6 mfsprg r0,0 ffc0941c: 7d 20 00 78 andc r0,r9,r0 ffc09420: 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; ffc09424: 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; ffc09428: 80 1d 00 38 lwz r0,56(r29) the_period->state = RATE_MONOTONIC_ACTIVE; ffc0942c: 91 7d 00 38 stw r11,56(r29) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09430: 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 ) ffc09434: 2f 80 00 03 cmpwi cr7,r0,3 ffc09438: 40 be 00 14 bne+ cr7,ffc0944c <== ALWAYS TAKEN _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc0943c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc09440: 80 69 27 f0 lwz r3,10224(r9) <== NOT EXECUTED ffc09444: 38 80 40 00 li r4,16384 <== NOT EXECUTED ffc09448: 48 00 2d 41 bl ffc0c188 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Enable_dispatch(); ffc0944c: 48 00 32 21 bl ffc0c66c <_Thread_Enable_dispatch> ffc09450: 3b c0 00 00 li r30,0 return RTEMS_SUCCESSFUL; ffc09454: 48 00 00 3c b ffc09490 case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); ffc09458: 4b ff fd 65 bl ffc091bc <_Rate_monotonic_Update_statistics> ffc0945c: 7f 80 01 24 mtmsr r28 _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; ffc09460: 38 00 00 02 li r0,2 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc09464: 93 fd 00 1c stw r31,28(r29) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc09468: 3c 60 00 00 lis r3,0 ffc0946c: 90 1d 00 38 stw r0,56(r29) ffc09470: 38 63 2d e8 addi r3,r3,11752 ffc09474: 38 9d 00 10 addi r4,r29,16 the_period->next_length = length; ffc09478: 93 fd 00 3c stw r31,60(r29) _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc0947c: 3b c0 00 06 li r30,6 ffc09480: 48 00 48 65 bl ffc0dce4 <_Watchdog_Insert> ffc09484: 48 00 31 e9 bl ffc0c66c <_Thread_Enable_dispatch> return RTEMS_TIMEOUT; ffc09488: 48 00 00 08 b ffc09490 ffc0948c: 3b c0 00 04 li r30,4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc09490: 80 01 00 2c lwz r0,44(r1) ffc09494: 7f c3 f3 78 mr r3,r30 ffc09498: 83 81 00 18 lwz r28,24(r1) ffc0949c: 7c 08 03 a6 mtlr r0 ffc094a0: 83 a1 00 1c lwz r29,28(r1) ffc094a4: 83 c1 00 20 lwz r30,32(r1) ffc094a8: 83 e1 00 24 lwz r31,36(r1) ffc094ac: 38 21 00 28 addi r1,r1,40 ffc094b0: 4e 80 00 20 blr ffc094b4 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc094b4: 94 21 ff 58 stwu r1,-168(r1) ffc094b8: 7c 08 02 a6 mflr r0 ffc094bc: 90 01 00 ac stw r0,172(r1) rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) ffc094c0: 7c 80 23 79 mr. r0,r4 */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc094c4: 93 e1 00 a4 stw r31,164(r1) ffc094c8: 7c 7f 1b 78 mr r31,r3 ffc094cc: 92 41 00 70 stw r18,112(r1) ffc094d0: 92 61 00 74 stw r19,116(r1) ffc094d4: 92 81 00 78 stw r20,120(r1) ffc094d8: 92 a1 00 7c stw r21,124(r1) ffc094dc: 92 c1 00 80 stw r22,128(r1) ffc094e0: 92 e1 00 84 stw r23,132(r1) ffc094e4: 93 01 00 88 stw r24,136(r1) ffc094e8: 93 21 00 8c stw r25,140(r1) ffc094ec: 93 41 00 90 stw r26,144(r1) ffc094f0: 93 61 00 94 stw r27,148(r1) ffc094f4: 93 81 00 98 stw r28,152(r1) ffc094f8: 93 a1 00 9c stw r29,156(r1) ffc094fc: 93 c1 00 a0 stw r30,160(r1) rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) ffc09500: 90 01 00 68 stw r0,104(r1) ffc09504: 41 82 02 00 beq- ffc09704 <== NEVER TAKEN return; (*print)( context, "Period information by period\n" ); ffc09508: 3c 80 ff c2 lis r4,-62 ffc0950c: 7c 09 03 a6 mtctr r0 ffc09510: 38 84 1d a8 addi r4,r4,7592 rtems_object_get_name( the_status.owner, sizeof(name), name ); /* * Print part of report line that is not dependent on granularity */ (*print)( context, ffc09514: 3f 00 ff c2 lis r24,-62 struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); (*print)( context, ffc09518: 3f 20 ff c2 lis r25,-62 struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); (*print)( context, ffc0951c: 3f 40 ff c2 lis r26,-62 char name[5]; if ( !print ) return; (*print)( context, "Period information by period\n" ); ffc09520: 4c c6 31 82 crclr 4*cr1+eq ffc09524: 4e 80 04 21 bctrl #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); ffc09528: 80 01 00 68 lwz r0,104(r1) ffc0952c: 3c 80 ff c2 lis r4,-62 ffc09530: 7c 09 03 a6 mtctr r0 ffc09534: 38 84 1d c6 addi r4,r4,7622 ffc09538: 7f e3 fb 78 mr r3,r31 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc0953c: 3e 40 ff c2 lis r18,-62 * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); ffc09540: 3a 61 00 30 addi r19,r1,48 if ( status != RTEMS_SUCCESSFUL ) continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); ffc09544: 3a 81 00 18 addi r20,r1,24 if ( !print ) return; (*print)( context, "Period information by period\n" ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); ffc09548: 4c c6 31 82 crclr 4*cr1+eq ffc0954c: 4e 80 04 21 bctrl (*print)( context, "--- Wall times are in seconds ---\n" ); ffc09550: 80 01 00 68 lwz r0,104(r1) ffc09554: 3c 80 ff c2 lis r4,-62 ffc09558: 7c 09 03 a6 mtctr r0 ffc0955c: 38 84 1d e8 addi r4,r4,7656 ffc09560: 7f e3 fb 78 mr r3,r31 #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); ffc09564: 3b 61 00 08 addi r27,r1,8 struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); ffc09568: 3a a1 00 48 addi r21,r1,72 ffc0956c: 3b 81 00 10 addi r28,r1,16 return; (*print)( context, "Period information by period\n" ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); (*print)( context, "--- Wall times are in seconds ---\n" ); ffc09570: 4c c6 31 82 crclr 4*cr1+eq ffc09574: 4e 80 04 21 bctrl Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " ffc09578: 80 01 00 68 lwz r0,104(r1) ffc0957c: 3c 80 ff c2 lis r4,-62 ffc09580: 7c 09 03 a6 mtctr r0 ffc09584: 38 84 1e 0b addi r4,r4,7691 ffc09588: 7f e3 fb 78 mr r3,r31 struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); (*print)( context, ffc0958c: 3b a0 03 e8 li r29,1000 struct timespec wall_average; struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); ffc09590: 3a c1 00 60 addi r22,r1,96 rtems_object_get_name( the_status.owner, sizeof(name), name ); /* * Print part of report line that is not dependent on granularity */ (*print)( context, ffc09594: 3b 18 1e a2 addi r24,r24,7842 Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " ffc09598: 4c c6 31 82 crclr 4*cr1+eq ffc0959c: 4e 80 04 21 bctrl #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " ffc095a0: 80 01 00 68 lwz r0,104(r1) ffc095a4: 3c 80 ff c2 lis r4,-62 ffc095a8: 38 84 1e 56 addi r4,r4,7766 ffc095ac: 7c 09 03 a6 mtctr r0 ffc095b0: 7f e3 fb 78 mr r3,r31 struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); (*print)( context, ffc095b4: 3b 39 1e b9 addi r25,r25,7865 struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); (*print)( context, ffc095b8: 3b 5a 1e d8 addi r26,r26,7896 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc095bc: 3a 52 1d 76 addi r18,r18,7542 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " ffc095c0: 4c c6 31 82 crclr 4*cr1+eq ffc095c4: 4e 80 04 21 bctrl /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; ffc095c8: 3d 20 00 00 lis r9,0 ffc095cc: 39 29 2b ec addi r9,r9,11244 ffc095d0: 7d 37 4b 78 mr r23,r9 ffc095d4: 83 c9 00 08 lwz r30,8(r9) ffc095d8: 48 00 01 18 b ffc096f0 id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); ffc095dc: 48 00 65 6d bl ffc0fb48 if ( status != RTEMS_SUCCESSFUL ) ffc095e0: 2f 83 00 00 cmpwi cr7,r3,0 ffc095e4: 40 be 01 08 bne+ cr7,ffc096ec continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); ffc095e8: 7e 84 a3 78 mr r4,r20 ffc095ec: 7f c3 f3 78 mr r3,r30 ffc095f0: 48 00 66 29 bl ffc0fc18 #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); ffc095f4: 80 61 00 18 lwz r3,24(r1) ffc095f8: 7f 65 db 78 mr r5,r27 ffc095fc: 38 80 00 05 li r4,5 ffc09600: 48 00 03 0d bl ffc0990c /* * Print part of report line that is not dependent on granularity */ (*print)( context, ffc09604: 80 01 00 68 lwz r0,104(r1) ffc09608: 7f 04 c3 78 mr r4,r24 ffc0960c: 80 e1 00 30 lwz r7,48(r1) ffc09610: 7f c5 f3 78 mr r5,r30 ffc09614: 7c 09 03 a6 mtctr r0 ffc09618: 7f e3 fb 78 mr r3,r31 ffc0961c: 81 01 00 34 lwz r8,52(r1) ffc09620: 7f 66 db 78 mr r6,r27 ffc09624: 4c c6 31 82 crclr 4*cr1+eq ffc09628: 4e 80 04 21 bctrl ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc0962c: 80 01 00 30 lwz r0,48(r1) struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); ffc09630: 7e a3 ab 78 mr r3,r21 ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc09634: 2f 80 00 00 cmpwi cr7,r0,0 struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); ffc09638: 7f 85 e3 78 mr r5,r28 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc0963c: 7e 44 93 78 mr r4,r18 ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc09640: 40 9e 00 1c bne- cr7,ffc0965c (*print)( context, "\n" ); ffc09644: 80 01 00 68 lwz r0,104(r1) ffc09648: 7f e3 fb 78 mr r3,r31 ffc0964c: 7c 09 03 a6 mtctr r0 ffc09650: 4c c6 31 82 crclr 4*cr1+eq ffc09654: 4e 80 04 21 bctrl continue; ffc09658: 48 00 00 94 b ffc096ec struct timespec cpu_average; struct timespec *min_cpu = &the_stats.min_cpu_time; struct timespec *max_cpu = &the_stats.max_cpu_time; struct timespec *total_cpu = &the_stats.total_cpu_time; _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average ); ffc0965c: 7c 04 03 78 mr r4,r0 ffc09660: 48 00 40 9d bl ffc0d6fc <_Timespec_Divide_by_integer> (*print)( context, ffc09664: 80 01 00 68 lwz r0,104(r1) ffc09668: 80 c1 00 3c lwz r6,60(r1) ffc0966c: 7f 24 cb 78 mr r4,r25 ffc09670: 81 01 00 44 lwz r8,68(r1) ffc09674: 7c 09 03 a6 mtctr r0 ffc09678: 81 41 00 14 lwz r10,20(r1) ffc0967c: 7c c6 eb d6 divw r6,r6,r29 ffc09680: 80 e1 00 40 lwz r7,64(r1) ffc09684: 81 21 00 10 lwz r9,16(r1) ffc09688: 80 a1 00 38 lwz r5,56(r1) ffc0968c: 7d 08 eb d6 divw r8,r8,r29 ffc09690: 7d 4a eb d6 divw r10,r10,r29 ffc09694: 7f e3 fb 78 mr r3,r31 ffc09698: 4c c6 31 82 crclr 4*cr1+eq ffc0969c: 4e 80 04 21 bctrl struct timespec wall_average; struct timespec *min_wall = &the_stats.min_wall_time; struct timespec *max_wall = &the_stats.max_wall_time; struct timespec *total_wall = &the_stats.total_wall_time; _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average); ffc096a0: 80 81 00 30 lwz r4,48(r1) ffc096a4: 7e c3 b3 78 mr r3,r22 ffc096a8: 7f 85 e3 78 mr r5,r28 ffc096ac: 48 00 40 51 bl ffc0d6fc <_Timespec_Divide_by_integer> (*print)( context, ffc096b0: 80 c1 00 54 lwz r6,84(r1) ffc096b4: 81 01 00 5c lwz r8,92(r1) ffc096b8: 7f e3 fb 78 mr r3,r31 ffc096bc: 81 41 00 14 lwz r10,20(r1) ffc096c0: 7c c6 eb d6 divw r6,r6,r29 ffc096c4: 80 01 00 68 lwz r0,104(r1) ffc096c8: 80 a1 00 50 lwz r5,80(r1) ffc096cc: 80 e1 00 58 lwz r7,88(r1) ffc096d0: 7c 09 03 a6 mtctr r0 ffc096d4: 81 21 00 10 lwz r9,16(r1) ffc096d8: 7d 08 eb d6 divw r8,r8,r29 ffc096dc: 7d 4a eb d6 divw r10,r10,r29 ffc096e0: 7f 44 d3 78 mr r4,r26 ffc096e4: 4c c6 31 82 crclr 4*cr1+eq ffc096e8: 4e 80 04 21 bctrl * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; id <= _Rate_monotonic_Information.maximum_id ; id++ ) { ffc096ec: 3b de 00 01 addi r30,r30,1 /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; ffc096f0: 80 17 00 0c lwz r0,12(r23) id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); ffc096f4: 7f c3 f3 78 mr r3,r30 ffc096f8: 7e 64 9b 78 mr r4,r19 /* * Cycle through all possible ids and try to report on each one. If it * is a period that is inactive, we just get an error back. No big deal. */ for ( id=_Rate_monotonic_Information.minimum_id ; ffc096fc: 7f 9e 00 40 cmplw cr7,r30,r0 ffc09700: 40 9d fe dc ble+ cr7,ffc095dc the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } ffc09704: 80 01 00 ac lwz r0,172(r1) ffc09708: 82 41 00 70 lwz r18,112(r1) ffc0970c: 7c 08 03 a6 mtlr r0 ffc09710: 82 61 00 74 lwz r19,116(r1) ffc09714: 82 81 00 78 lwz r20,120(r1) ffc09718: 82 a1 00 7c lwz r21,124(r1) ffc0971c: 82 c1 00 80 lwz r22,128(r1) ffc09720: 82 e1 00 84 lwz r23,132(r1) ffc09724: 83 01 00 88 lwz r24,136(r1) ffc09728: 83 21 00 8c lwz r25,140(r1) ffc0972c: 83 41 00 90 lwz r26,144(r1) ffc09730: 83 61 00 94 lwz r27,148(r1) ffc09734: 83 81 00 98 lwz r28,152(r1) ffc09738: 83 a1 00 9c lwz r29,156(r1) ffc0973c: 83 c1 00 a0 lwz r30,160(r1) ffc09740: 83 e1 00 a4 lwz r31,164(r1) ffc09744: 38 21 00 a8 addi r1,r1,168 ffc09748: 4e 80 00 20 blr ffc186fc : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { ffc186fc: 94 21 ff e0 stwu r1,-32(r1) ffc18700: 7c 08 02 a6 mflr r0 ffc18704: 93 e1 00 1c stw r31,28(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) ffc18708: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { ffc1870c: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; ASR_Information *asr; if ( !signal_set ) ffc18710: 38 00 00 0a li r0,10 ffc18714: 41 82 00 c0 beq- ffc187d4 return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); ffc18718: 38 81 00 08 addi r4,r1,8 ffc1871c: 48 00 4b e1 bl ffc1d2fc <_Thread_Get> switch ( location ) { ffc18720: 81 21 00 08 lwz r9,8(r1) ffc18724: 38 00 00 04 li r0,4 ffc18728: 2f 89 00 00 cmpwi cr7,r9,0 ffc1872c: 40 9e 00 a8 bne- cr7,ffc187d4 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; ffc18730: 81 23 01 40 lwz r9,320(r3) asr = &api->Signal; ffc18734: 80 09 00 0c lwz r0,12(r9) ffc18738: 2f 80 00 00 cmpwi cr7,r0,0 ffc1873c: 41 9e 00 90 beq- cr7,ffc187cc if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) { ffc18740: 88 09 00 08 lbz r0,8(r9) ffc18744: 2f 80 00 00 cmpwi cr7,r0,0 ffc18748: 41 9e 00 58 beq- cr7,ffc187a0 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1874c: 7c 00 00 a6 mfmsr r0 ffc18750: 7d 70 42 a6 mfsprg r11,0 ffc18754: 7c 0b 58 78 andc r11,r0,r11 ffc18758: 7d 60 01 24 mtmsr r11 ) { ISR_Level _level; _ISR_Disable( _level ); *signal_set |= signals; ffc1875c: 81 69 00 14 lwz r11,20(r9) ffc18760: 7d 7f fb 78 or r31,r11,r31 ffc18764: 93 e9 00 14 stw r31,20(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc18768: 7c 00 01 24 mtmsr r0 _ASR_Post_signals( signal_set, &asr->signals_posted ); the_thread->do_post_task_switch_extension = true; if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc1876c: 3d 20 00 00 lis r9,0 ffc18770: 81 29 28 4c lwz r9,10316(r9) if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) { _ASR_Post_signals( signal_set, &asr->signals_posted ); the_thread->do_post_task_switch_extension = true; ffc18774: 38 00 00 01 li r0,1 ffc18778: 98 03 00 74 stb r0,116(r3) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc1877c: 2f 89 00 00 cmpwi cr7,r9,0 ffc18780: 41 9e 00 40 beq- cr7,ffc187c0 ffc18784: 3d 20 00 00 lis r9,0 ffc18788: 81 29 28 64 lwz r9,10340(r9) ffc1878c: 7f 83 48 00 cmpw cr7,r3,r9 ffc18790: 40 be 00 30 bne+ cr7,ffc187c0 <== NEVER TAKEN _ISR_Signals_to_thread_executing = true; ffc18794: 3d 20 00 00 lis r9,0 ffc18798: 98 09 28 80 stb r0,10368(r9) ffc1879c: 48 00 00 24 b ffc187c0 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc187a0: 7c 00 00 a6 mfmsr r0 ffc187a4: 7d 70 42 a6 mfsprg r11,0 ffc187a8: 7c 0b 58 78 andc r11,r0,r11 ffc187ac: 7d 60 01 24 mtmsr r11 ffc187b0: 81 69 00 18 lwz r11,24(r9) ffc187b4: 7d 7f fb 78 or r31,r11,r31 ffc187b8: 93 e9 00 18 stw r31,24(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc187bc: 7c 00 01 24 mtmsr r0 } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); ffc187c0: 48 00 4a d1 bl ffc1d290 <_Thread_Enable_dispatch> ffc187c4: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc187c8: 48 00 00 0c b ffc187d4 } _Thread_Enable_dispatch(); ffc187cc: 48 00 4a c5 bl ffc1d290 <_Thread_Enable_dispatch> ffc187d0: 38 00 00 0b li r0,11 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc187d4: 7c 03 03 78 mr r3,r0 ffc187d8: 80 01 00 24 lwz r0,36(r1) ffc187dc: 83 e1 00 1c lwz r31,28(r1) ffc187e0: 38 21 00 20 addi r1,r1,32 ffc187e4: 7c 08 03 a6 mtlr r0 ffc187e8: 4e 80 00 20 blr ffc0392c : * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) { ffc0392c: 7c 08 02 a6 mflr r0 ffc03930: 94 21 ff f8 stwu r1,-8(r1) ffc03934: 90 01 00 0c stw r0,12(r1) Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */ ffc03938: 80 03 00 08 lwz r0,8(r3) ffc0393c: 2f 80 00 00 cmpwi cr7,r0,0 ffc03940: 41 9e 00 1c beq- cr7,ffc0395c <== NEVER TAKEN return; the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack); *the_pattern = Stack_check_Pattern; ffc03944: 80 63 00 cc lwz r3,204(r3) ffc03948: 3c 80 00 00 lis r4,0 ffc0394c: 38 84 2a 84 addi r4,r4,10884 ffc03950: 38 63 00 08 addi r3,r3,8 ffc03954: 38 a0 00 80 li r5,128 ffc03958: 48 00 da 4d bl ffc113a4 } ffc0395c: 80 01 00 0c lwz r0,12(r1) ffc03960: 38 21 00 08 addi r1,r1,8 ffc03964: 7c 08 03 a6 mtlr r0 ffc03968: 4e 80 00 20 blr ffc03e54 : */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) { ffc03e54: 94 21 ff f0 stwu r1,-16(r1) ffc03e58: 7c 08 02 a6 mflr r0 ffc03e5c: 93 e1 00 0c stw r31,12(r1) ffc03e60: 7c 9f 23 78 mr r31,r4 ffc03e64: 90 01 00 14 stw r0,20(r1) Stack_check_Initialize(); ffc03e68: 4b ff fa 71 bl ffc038d8 if (the_thread) ffc03e6c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc03e70: 41 9e 00 14 beq- cr7,ffc03e84 <== NEVER TAKEN Stack_check_Dope_stack(&the_thread->Start.Initial_stack); ffc03e74: 80 bf 00 c8 lwz r5,200(r31) ffc03e78: 38 80 00 a5 li r4,165 ffc03e7c: 80 7f 00 cc lwz r3,204(r31) ffc03e80: 48 00 d6 25 bl ffc114a4 return true; } ffc03e84: 80 01 00 14 lwz r0,20(r1) ffc03e88: 38 60 00 01 li r3,1 ffc03e8c: 83 e1 00 0c lwz r31,12(r1) ffc03e90: 38 21 00 10 addi r1,r1,16 ffc03e94: 7c 08 03 a6 mtlr r0 ffc03e98: 4e 80 00 20 blr ffc03cec : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc03cec: 94 21 ff f0 stwu r1,-16(r1) ffc03cf0: 7c 08 02 a6 mflr r0 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc03cf4: 3d 20 00 00 lis r9,0 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc03cf8: 90 01 00 14 stw r0,20(r1) Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc03cfc: 81 29 27 70 lwz r9,10096(r9) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc03d00: 93 e1 00 0c stw r31,12(r1) ffc03d04: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc03d08: 80 69 00 cc lwz r3,204(r9) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc03d0c: 93 c1 00 08 stw r30,8(r1) ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc03d10: 3b c0 00 00 li r30,0 ffc03d14: 7f 9f 18 40 cmplw cr7,r31,r3 ffc03d18: 41 9c 00 18 blt- cr7,ffc03d30 <== NEVER TAKEN } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) ffc03d1c: 83 c9 00 c8 lwz r30,200(r9) ffc03d20: 7f c3 f2 14 add r30,r3,r30 ffc03d24: 7f df f0 10 subfc r30,r31,r30 ffc03d28: 3b c0 00 00 li r30,0 ffc03d2c: 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 ) { ffc03d30: 3d 20 00 00 lis r9,0 ffc03d34: 80 09 28 0c lwz r0,10252(r9) ffc03d38: 38 80 00 01 li r4,1 ffc03d3c: 2f 80 00 00 cmpwi cr7,r0,0 ffc03d40: 41 9e 00 20 beq- cr7,ffc03d60 <== NEVER TAKEN pattern_ok = (!memcmp( ffc03d44: 3c 80 00 00 lis r4,0 ffc03d48: 38 84 2a 84 addi r4,r4,10884 ffc03d4c: 38 63 00 08 addi r3,r3,8 ffc03d50: 38 a0 00 80 li r5,128 ffc03d54: 48 00 d5 ad bl ffc11300 ffc03d58: 7c 64 00 34 cntlzw r4,r3 ffc03d5c: 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 ) ffc03d60: 2f 9e 00 00 cmpwi cr7,r30,0 ffc03d64: 41 9e 00 10 beq- cr7,ffc03d74 <== NEVER TAKEN ffc03d68: 2f 84 00 00 cmpwi cr7,r4,0 ffc03d6c: 38 60 00 00 li r3,0 ffc03d70: 40 9e 00 14 bne- cr7,ffc03d84 <== ALWAYS TAKEN return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); ffc03d74: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc03d78: 80 69 27 70 lwz r3,10096(r9) <== NOT EXECUTED ffc03d7c: 4b ff fe 95 bl ffc03c10 <== NOT EXECUTED ffc03d80: 38 60 00 01 li r3,1 <== NOT EXECUTED return true; } ffc03d84: 39 7f 00 10 addi r11,r31,16 ffc03d88: 80 0b 00 04 lwz r0,4(r11) ffc03d8c: 83 cb ff f8 lwz r30,-8(r11) ffc03d90: 7c 08 03 a6 mtlr r0 ffc03d94: 83 eb ff fc lwz r31,-4(r11) ffc03d98: 7d 61 5b 78 mr r1,r11 ffc03d9c: 4e 80 00 20 blr ffc03c00 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); ffc03c00: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc03c04: 38 84 54 f0 addi r4,r4,21744 <== NOT EXECUTED ffc03c08: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc03c0c: 4b ff ff 5c b ffc03b68 <== NOT EXECUTED ffc03b68 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc03b68: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc03b6c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc03b70: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED print_context = context; ffc03b74: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc03b78: 3b ff 28 0c addi r31,r31,10252 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc03b7c: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc03b80: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc03b84: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc03b88: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc03b8c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc03b90: 38 84 c9 14 addi r4,r4,-14060 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc03b94: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc03b98: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED print_context = context; print_handler = print; ffc03b9c: 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; ffc03ba0: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc03ba4: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc03ba8: 4e 80 04 21 bctrl <== NOT EXECUTED (*print)( context, ffc03bac: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc03bb0: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED ffc03bb4: 38 84 c9 2b addi r4,r4,-14037 <== NOT EXECUTED ffc03bb8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc03bbc: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc03bc0: 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 ); ffc03bc4: 3c 60 ff c0 lis r3,-64 <== NOT EXECUTED ffc03bc8: 38 63 39 a4 addi r3,r3,14756 <== NOT EXECUTED ffc03bcc: 48 00 5a 3d bl ffc09608 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); ffc03bd0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc03bd4: 4b ff fd d1 bl ffc039a4 <== NOT EXECUTED print_context = NULL; ffc03bd8: 38 00 00 00 li r0,0 <== NOT EXECUTED print_handler = NULL; ffc03bdc: 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; ffc03be0: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED print_handler = NULL; } ffc03be4: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc03be8: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc03bec: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03bf0: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc03bf4: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc03bf8: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc03bfc: 4e 80 00 20 blr <== NOT EXECUTED ffc03da0 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc03da0: 94 21 ff e8 stwu r1,-24(r1) ffc03da4: 7c 08 02 a6 mflr r0 ffc03da8: 90 01 00 1c stw r0,28(r1) ffc03dac: 93 c1 00 10 stw r30,16(r1) ffc03db0: 7c 7e 1b 78 mr r30,r3 Stack_Control *the_stack = &running->Start.Initial_stack; void *pattern; bool sp_ok; bool pattern_ok = true; pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern; ffc03db4: 80 63 00 cc lwz r3,204(r3) */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc03db8: 93 e1 00 14 stw r31,20(r1) ffc03dbc: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc03dc0: 7f 9f 18 40 cmplw cr7,r31,r3 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc03dc4: 93 a1 00 0c stw r29,12(r1) ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc03dc8: 3b a0 00 00 li r29,0 ffc03dcc: 41 9c 00 18 blt- cr7,ffc03de4 <== NEVER TAKEN } /* * rtems_stack_checker_switch_extension */ void rtems_stack_checker_switch_extension( ffc03dd0: 83 be 00 c8 lwz r29,200(r30) ffc03dd4: 7f a3 ea 14 add r29,r3,r29 ffc03dd8: 7f bf e8 10 subfc r29,r31,r29 ffc03ddc: 3b a0 00 00 li r29,0 ffc03de0: 7f bd e9 14 adde r29,r29,r29 /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, ffc03de4: 3c 80 00 00 lis r4,0 ffc03de8: 38 84 2a 84 addi r4,r4,10884 ffc03dec: 38 63 00 08 addi r3,r3,8 ffc03df0: 38 a0 00 80 li r5,128 ffc03df4: 48 00 d5 0d bl ffc11300 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { ffc03df8: 2f 9d 00 00 cmpwi cr7,r29,0 /* * Check for an out of bounds stack pointer or an overwrite */ sp_ok = Stack_check_Frame_pointer_in_range( the_stack ); pattern_ok = (!memcmp( pattern, ffc03dfc: 7c 64 00 34 cntlzw r4,r3 ffc03e00: 54 84 d9 7e rlwinm r4,r4,27,5,31 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { ffc03e04: 41 9e 00 0c beq- cr7,ffc03e10 <== NEVER TAKEN ffc03e08: 2f 84 00 00 cmpwi cr7,r4,0 ffc03e0c: 40 9e 00 28 bne- cr7,ffc03e34 Stack_check_report_blown_task( running, pattern_ok ); } } ffc03e10: 39 7f 00 18 addi r11,r31,24 ffc03e14: 80 0b 00 04 lwz r0,4(r11) pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); ffc03e18: 7f c3 f3 78 mr r3,r30 } } ffc03e1c: 83 ab ff f4 lwz r29,-12(r11) ffc03e20: 7c 08 03 a6 mtlr r0 ffc03e24: 83 cb ff f8 lwz r30,-8(r11) ffc03e28: 83 eb ff fc lwz r31,-4(r11) ffc03e2c: 7d 61 5b 78 mr r1,r11 pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); ffc03e30: 4b ff fd e0 b ffc03c10 } } ffc03e34: 39 7f 00 18 addi r11,r31,24 ffc03e38: 80 0b 00 04 lwz r0,4(r11) ffc03e3c: 83 ab ff f4 lwz r29,-12(r11) ffc03e40: 7c 08 03 a6 mtlr r0 ffc03e44: 83 cb ff f8 lwz r30,-8(r11) ffc03e48: 83 eb ff fc lwz r31,-4(r11) ffc03e4c: 7d 61 5b 78 mr r1,r11 ffc03e50: 4e 80 00 20 blr ffc0ef00 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0ef00: 94 21 ff d0 stwu r1,-48(r1) ffc0ef04: 7c 08 02 a6 mflr r0 ffc0ef08: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0ef0c: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0ef10: 93 a1 00 1c stw r29,28(r1) ffc0ef14: 7c bd 2b 78 mr r29,r5 ffc0ef18: 93 c1 00 20 stw r30,32(r1) ffc0ef1c: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0ef20: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0ef24: 90 01 00 34 stw r0,52(r1) ffc0ef28: db e1 00 28 stfd f31,40(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0ef2c: 41 82 00 78 beq- ffc0efa4 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0ef30: 48 00 25 4d bl ffc1147c <__errno> *n = 0; ffc0ef34: 3d 20 ff c2 lis r9,-62 ffc0ef38: c8 09 e4 f8 lfd f0,-6920(r9) char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc0ef3c: 38 00 00 00 li r0,0 ffc0ef40: 90 03 00 00 stw r0,0(r3) *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0ef44: 38 81 00 08 addi r4,r1,8 ffc0ef48: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0ef4c: d8 1f 00 00 stfd f0,0(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0ef50: 48 00 52 61 bl ffc141b0 #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 ) ffc0ef54: 2f 9d 00 00 cmpwi cr7,r29,0 errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0ef58: ff e0 08 90 fmr f31,f1 #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 ) ffc0ef5c: 41 9e 00 0c beq- cr7,ffc0ef68 *endptr = end; ffc0ef60: 80 01 00 08 lwz r0,8(r1) ffc0ef64: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0ef68: 80 01 00 08 lwz r0,8(r1) ffc0ef6c: 38 60 00 0b li r3,11 ffc0ef70: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0ef74: 41 9e 00 30 beq- cr7,ffc0efa4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0ef78: 3d 20 ff c2 lis r9,-62 ffc0ef7c: c8 09 07 f8 lfd f0,2040(r9) ffc0ef80: ff 9f 00 00 fcmpu cr7,f31,f0 ffc0ef84: 40 9d 00 18 ble- cr7,ffc0ef9c ffc0ef88: 48 00 24 f5 bl ffc1147c <__errno> ffc0ef8c: 80 03 00 00 lwz r0,0(r3) ffc0ef90: 38 60 00 0a li r3,10 ffc0ef94: 2f 80 00 22 cmpwi cr7,r0,34 ffc0ef98: 41 9e 00 0c beq- cr7,ffc0efa4 <== ALWAYS TAKEN #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; ffc0ef9c: db ff 00 00 stfd f31,0(r31) ffc0efa0: 38 60 00 00 li r3,0 #endif return RTEMS_SUCCESSFUL; } ffc0efa4: 80 01 00 34 lwz r0,52(r1) ffc0efa8: 83 a1 00 1c lwz r29,28(r1) ffc0efac: 7c 08 03 a6 mtlr r0 ffc0efb0: 83 c1 00 20 lwz r30,32(r1) ffc0efb4: 83 e1 00 24 lwz r31,36(r1) ffc0efb8: cb e1 00 28 lfd f31,40(r1) ffc0efbc: 38 21 00 30 addi r1,r1,48 ffc0efc0: 4e 80 00 20 blr ffc0efc4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0efc4: 94 21 ff d0 stwu r1,-48(r1) ffc0efc8: 7c 08 02 a6 mflr r0 ffc0efcc: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0efd0: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0efd4: 93 a1 00 1c stw r29,28(r1) ffc0efd8: 7c bd 2b 78 mr r29,r5 ffc0efdc: 93 c1 00 20 stw r30,32(r1) ffc0efe0: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0efe4: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0efe8: 90 01 00 34 stw r0,52(r1) ffc0efec: db e1 00 28 stfd f31,40(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0eff0: 41 82 00 74 beq- ffc0f064 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0eff4: 48 00 24 89 bl ffc1147c <__errno> ffc0eff8: 38 00 00 00 li r0,0 ffc0effc: 90 03 00 00 stw r0,0(r3) *n = 0; ffc0f000: 38 00 00 00 li r0,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0f004: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f008: 90 1f 00 00 stw r0,0(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0f00c: 38 81 00 08 addi r4,r1,8 ffc0f010: 48 00 51 39 bl ffc14148 #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 ) ffc0f014: 2f 9d 00 00 cmpwi cr7,r29,0 errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0f018: ff e0 08 90 fmr f31,f1 #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 ) ffc0f01c: 41 9e 00 0c beq- cr7,ffc0f028 *endptr = end; ffc0f020: 80 01 00 08 lwz r0,8(r1) ffc0f024: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f028: 80 01 00 08 lwz r0,8(r1) ffc0f02c: 38 60 00 0b li r3,11 ffc0f030: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f034: 41 9e 00 30 beq- cr7,ffc0f064 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f038: 3d 20 ff c2 lis r9,-62 ffc0f03c: c0 09 08 00 lfs f0,2048(r9) ffc0f040: ff 9f 00 00 fcmpu cr7,f31,f0 ffc0f044: 40 9d 00 18 ble- cr7,ffc0f05c ffc0f048: 48 00 24 35 bl ffc1147c <__errno> ffc0f04c: 80 03 00 00 lwz r0,0(r3) ffc0f050: 38 60 00 0a li r3,10 ffc0f054: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f058: 41 9e 00 0c beq- cr7,ffc0f064 <== ALWAYS TAKEN #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; ffc0f05c: d3 ff 00 00 stfs f31,0(r31) ffc0f060: 38 60 00 00 li r3,0 #endif return RTEMS_SUCCESSFUL; } ffc0f064: 80 01 00 34 lwz r0,52(r1) ffc0f068: 83 a1 00 1c lwz r29,28(r1) ffc0f06c: 7c 08 03 a6 mtlr r0 ffc0f070: 83 c1 00 20 lwz r30,32(r1) ffc0f074: 83 e1 00 24 lwz r31,36(r1) ffc0f078: cb e1 00 28 lfd f31,40(r1) ffc0f07c: 38 21 00 30 addi r1,r1,48 ffc0f080: 4e 80 00 20 blr ffc0f084 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f084: 94 21 ff d8 stwu r1,-40(r1) ffc0f088: 7c 08 02 a6 mflr r0 ffc0f08c: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f090: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f094: 93 81 00 18 stw r28,24(r1) ffc0f098: 7c dc 33 78 mr r28,r6 ffc0f09c: 93 a1 00 1c stw r29,28(r1) ffc0f0a0: 7c bd 2b 78 mr r29,r5 ffc0f0a4: 93 c1 00 20 stw r30,32(r1) ffc0f0a8: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f0ac: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f0b0: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f0b4: 41 82 00 70 beq- ffc0f124 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f0b8: 48 00 23 c5 bl ffc1147c <__errno> ffc0f0bc: 38 00 00 00 li r0,0 ffc0f0c0: 90 03 00 00 stw r0,0(r3) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f0c4: 7f 85 e3 78 mr r5,r28 ffc0f0c8: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f0cc: 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 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f0d0: 38 81 00 08 addi r4,r1,8 ffc0f0d4: 48 00 52 f5 bl ffc143c8 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f0d8: 2f 9d 00 00 cmpwi cr7,r29,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f0dc: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f0e0: 41 9e 00 0c beq- cr7,ffc0f0ec *endptr = end; ffc0f0e4: 80 01 00 08 lwz r0,8(r1) ffc0f0e8: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f0ec: 80 01 00 08 lwz r0,8(r1) ffc0f0f0: 38 60 00 0b li r3,11 ffc0f0f4: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f0f8: 41 9e 00 2c beq- cr7,ffc0f124 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f0fc: 6f 80 80 00 xoris r0,r28,32768 ffc0f100: 2f 80 ff ff cmpwi cr7,r0,-1 ffc0f104: 40 9e 00 18 bne- cr7,ffc0f11c ffc0f108: 48 00 23 75 bl ffc1147c <__errno> ffc0f10c: 80 03 00 00 lwz r0,0(r3) ffc0f110: 38 60 00 0a li r3,10 ffc0f114: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f118: 41 9e 00 0c beq- cr7,ffc0f124 <== ALWAYS TAKEN #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; ffc0f11c: 93 9f 00 00 stw r28,0(r31) ffc0f120: 38 60 00 00 li r3,0 #endif return RTEMS_SUCCESSFUL; } ffc0f124: 80 01 00 2c lwz r0,44(r1) ffc0f128: 83 81 00 18 lwz r28,24(r1) ffc0f12c: 7c 08 03 a6 mtlr r0 ffc0f130: 83 a1 00 1c lwz r29,28(r1) ffc0f134: 83 c1 00 20 lwz r30,32(r1) ffc0f138: 83 e1 00 24 lwz r31,36(r1) ffc0f13c: 38 21 00 28 addi r1,r1,40 ffc0f140: 4e 80 00 20 blr ffc0f23c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f23c: 94 21 ff d8 stwu r1,-40(r1) ffc0f240: 7c 08 02 a6 mflr r0 ffc0f244: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f248: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f24c: 93 81 00 18 stw r28,24(r1) ffc0f250: 7c dc 33 78 mr r28,r6 ffc0f254: 93 a1 00 1c stw r29,28(r1) ffc0f258: 7c bd 2b 78 mr r29,r5 ffc0f25c: 93 c1 00 20 stw r30,32(r1) ffc0f260: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f264: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f268: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f26c: 41 82 00 7c beq- ffc0f2e8 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f270: 48 00 22 0d bl ffc1147c <__errno> ffc0f274: 38 00 00 00 li r0,0 ffc0f278: 90 03 00 00 stw r0,0(r3) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f27c: 7f 85 e3 78 mr r5,r28 ffc0f280: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f284: 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 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f288: 38 81 00 08 addi r4,r1,8 ffc0f28c: 48 00 51 3d bl ffc143c8 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f290: 2f 9d 00 00 cmpwi cr7,r29,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f294: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f298: 41 9e 00 0c beq- cr7,ffc0f2a4 *endptr = end; ffc0f29c: 80 01 00 08 lwz r0,8(r1) ffc0f2a0: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f2a4: 80 01 00 08 lwz r0,8(r1) ffc0f2a8: 38 60 00 0b li r3,11 ffc0f2ac: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f2b0: 41 9e 00 38 beq- cr7,ffc0f2e8 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f2b4: 6f 80 80 00 xoris r0,r28,32768 ffc0f2b8: 2f 80 ff ff cmpwi cr7,r0,-1 ffc0f2bc: 41 9e 00 10 beq- cr7,ffc0f2cc return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc0f2c0: 3c 00 80 00 lis r0,-32768 ffc0f2c4: 7f 9c 00 00 cmpw cr7,r28,r0 ffc0f2c8: 40 be 00 18 bne+ cr7,ffc0f2e0 ffc0f2cc: 48 00 21 b1 bl ffc1147c <__errno> ffc0f2d0: 80 03 00 00 lwz r0,0(r3) #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; ffc0f2d4: 38 60 00 0a li r3,10 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc0f2d8: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f2dc: 41 9e 00 0c beq- cr7,ffc0f2e8 <== ALWAYS TAKEN #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; ffc0f2e0: 93 9f 00 00 stw r28,0(r31) ffc0f2e4: 38 60 00 00 li r3,0 #endif return RTEMS_SUCCESSFUL; } ffc0f2e8: 80 01 00 2c lwz r0,44(r1) ffc0f2ec: 83 81 00 18 lwz r28,24(r1) ffc0f2f0: 7c 08 03 a6 mtlr r0 ffc0f2f4: 83 a1 00 1c lwz r29,28(r1) ffc0f2f8: 83 c1 00 20 lwz r30,32(r1) ffc0f2fc: 83 e1 00 24 lwz r31,36(r1) ffc0f300: 38 21 00 28 addi r1,r1,40 ffc0f304: 4e 80 00 20 blr ffc0f144 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f144: 94 21 ff d0 stwu r1,-48(r1) ffc0f148: 7c 08 02 a6 mflr r0 ffc0f14c: 93 e1 00 2c stw r31,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f150: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f154: 93 81 00 20 stw r28,32(r1) ffc0f158: 7c dc 33 78 mr r28,r6 ffc0f15c: 93 a1 00 24 stw r29,36(r1) ffc0f160: 7c bd 2b 78 mr r29,r5 ffc0f164: 93 c1 00 28 stw r30,40(r1) ffc0f168: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f16c: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f170: 90 01 00 34 stw r0,52(r1) ffc0f174: 93 61 00 1c stw r27,28(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f178: 41 82 00 a0 beq- ffc0f218 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f17c: 48 00 23 01 bl ffc1147c <__errno> ffc0f180: 38 00 00 00 li r0,0 *n = 0; ffc0f184: 39 20 00 00 li r9,0 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f188: 90 03 00 00 stw r0,0(r3) *n = 0; ffc0f18c: 39 40 00 00 li r10,0 ffc0f190: 91 3f 00 00 stw r9,0(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f194: 7f 85 e3 78 mr r5,r28 ffc0f198: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f19c: 91 5f 00 04 stw r10,4(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f1a0: 38 81 00 08 addi r4,r1,8 ffc0f1a4: 48 00 52 45 bl ffc143e8 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f1a8: 2f 9d 00 00 cmpwi cr7,r29,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f1ac: 7c 7c 1b 78 mr r28,r3 ffc0f1b0: 7c 9b 23 78 mr r27,r4 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f1b4: 41 9e 00 0c beq- cr7,ffc0f1c0 *endptr = end; ffc0f1b8: 80 01 00 08 lwz r0,8(r1) ffc0f1bc: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f1c0: 80 01 00 08 lwz r0,8(r1) ffc0f1c4: 38 60 00 0b li r3,11 ffc0f1c8: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f1cc: 41 9e 00 4c beq- cr7,ffc0f218 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f1d0: 6f 80 80 00 xoris r0,r28,32768 ffc0f1d4: 2f 80 ff ff cmpwi cr7,r0,-1 ffc0f1d8: 40 9e 00 0c bne- cr7,ffc0f1e4 ffc0f1dc: 2f 9b ff ff cmpwi cr7,r27,-1 ffc0f1e0: 41 9e 00 18 beq- cr7,ffc0f1f8 <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc0f1e4: 3c 00 80 00 lis r0,-32768 ffc0f1e8: 7f 9c 00 00 cmpw cr7,r28,r0 ffc0f1ec: 40 be 00 20 bne+ cr7,ffc0f20c ffc0f1f0: 2f 9b 00 00 cmpwi cr7,r27,0 ffc0f1f4: 40 be 00 18 bne+ cr7,ffc0f20c <== NEVER TAKEN ffc0f1f8: 48 00 22 85 bl ffc1147c <__errno> ffc0f1fc: 80 03 00 00 lwz r0,0(r3) #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; ffc0f200: 38 60 00 0a li r3,10 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc0f204: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f208: 41 9e 00 10 beq- cr7,ffc0f218 <== ALWAYS TAKEN #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; ffc0f20c: 93 7f 00 04 stw r27,4(r31) ffc0f210: 38 60 00 00 li r3,0 ffc0f214: 93 9f 00 00 stw r28,0(r31) #endif return RTEMS_SUCCESSFUL; } ffc0f218: 80 01 00 34 lwz r0,52(r1) ffc0f21c: 83 61 00 1c lwz r27,28(r1) ffc0f220: 7c 08 03 a6 mtlr r0 ffc0f224: 83 81 00 20 lwz r28,32(r1) ffc0f228: 83 a1 00 24 lwz r29,36(r1) ffc0f22c: 83 c1 00 28 lwz r30,40(r1) ffc0f230: 83 e1 00 2c lwz r31,44(r1) ffc0f234: 38 21 00 30 addi r1,r1,48 ffc0f238: 4e 80 00 20 blr ffc0f308 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f308: 94 21 ff d8 stwu r1,-40(r1) ffc0f30c: 7c 08 02 a6 mflr r0 ffc0f310: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f314: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f318: 93 a1 00 1c stw r29,28(r1) ffc0f31c: 7c bd 2b 78 mr r29,r5 ffc0f320: 93 c1 00 20 stw r30,32(r1) ffc0f324: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f328: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f32c: 90 01 00 2c stw r0,44(r1) ffc0f330: 93 81 00 18 stw r28,24(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f334: 41 82 00 6c beq- ffc0f3a0 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f338: 48 00 21 45 bl ffc1147c <__errno> ffc0f33c: 38 00 00 00 li r0,0 ffc0f340: 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 ); ffc0f344: 38 81 00 08 addi r4,r1,8 ffc0f348: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f34c: 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 ); ffc0f350: 38 a0 00 10 li r5,16 ffc0f354: 48 00 55 c1 bl ffc14914 #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 ) ffc0f358: 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 ); ffc0f35c: 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 ) ffc0f360: 41 9e 00 0c beq- cr7,ffc0f36c *endptr = end; ffc0f364: 80 01 00 08 lwz r0,8(r1) ffc0f368: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f36c: 80 01 00 08 lwz r0,8(r1) ffc0f370: 38 60 00 0b li r3,11 ffc0f374: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f378: 41 9e 00 28 beq- cr7,ffc0f3a0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f37c: 2f 9c ff ff cmpwi cr7,r28,-1 ffc0f380: 40 be 00 18 bne+ cr7,ffc0f398 <== ALWAYS TAKEN ffc0f384: 48 00 20 f9 bl ffc1147c <__errno> <== NOT EXECUTED ffc0f388: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc0f38c: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc0f390: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc0f394: 41 9e 00 0c beq- cr7,ffc0f3a0 <== NOT EXECUTED if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; ffc0f398: 93 9f 00 00 stw r28,0(r31) ffc0f39c: 38 60 00 00 li r3,0 #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; } ffc0f3a0: 80 01 00 2c lwz r0,44(r1) ffc0f3a4: 83 81 00 18 lwz r28,24(r1) ffc0f3a8: 7c 08 03 a6 mtlr r0 ffc0f3ac: 83 a1 00 1c lwz r29,28(r1) ffc0f3b0: 83 c1 00 20 lwz r30,32(r1) ffc0f3b4: 83 e1 00 24 lwz r31,36(r1) ffc0f3b8: 38 21 00 28 addi r1,r1,40 ffc0f3bc: 4e 80 00 20 blr ffc0f460 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f460: 94 21 ff d8 stwu r1,-40(r1) ffc0f464: 7c 08 02 a6 mflr r0 ffc0f468: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f46c: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f470: 93 81 00 18 stw r28,24(r1) ffc0f474: 7c dc 33 78 mr r28,r6 ffc0f478: 93 a1 00 1c stw r29,28(r1) ffc0f47c: 7c bd 2b 78 mr r29,r5 ffc0f480: 93 c1 00 20 stw r30,32(r1) ffc0f484: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f488: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f48c: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f490: 41 82 00 6c beq- ffc0f4fc return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f494: 48 00 1f e9 bl ffc1147c <__errno> ffc0f498: 38 00 00 00 li r0,0 ffc0f49c: 90 03 00 00 stw r0,0(r3) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f4a0: 7f 85 e3 78 mr r5,r28 ffc0f4a4: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f4a8: 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 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f4ac: 38 81 00 08 addi r4,r1,8 ffc0f4b0: 48 00 54 65 bl ffc14914 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f4b4: 2f 9d 00 00 cmpwi cr7,r29,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f4b8: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f4bc: 41 9e 00 0c beq- cr7,ffc0f4c8 *endptr = end; ffc0f4c0: 80 01 00 08 lwz r0,8(r1) ffc0f4c4: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f4c8: 80 01 00 08 lwz r0,8(r1) ffc0f4cc: 38 60 00 0b li r3,11 ffc0f4d0: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f4d4: 41 9e 00 28 beq- cr7,ffc0f4fc return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f4d8: 2f 9c ff ff cmpwi cr7,r28,-1 ffc0f4dc: 40 be 00 18 bne+ cr7,ffc0f4f4 ffc0f4e0: 48 00 1f 9d bl ffc1147c <__errno> ffc0f4e4: 80 03 00 00 lwz r0,0(r3) ffc0f4e8: 38 60 00 0a li r3,10 ffc0f4ec: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f4f0: 41 9e 00 0c beq- cr7,ffc0f4fc <== ALWAYS TAKEN #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; ffc0f4f4: 93 9f 00 00 stw r28,0(r31) ffc0f4f8: 38 60 00 00 li r3,0 #endif return RTEMS_SUCCESSFUL; } ffc0f4fc: 80 01 00 2c lwz r0,44(r1) ffc0f500: 83 81 00 18 lwz r28,24(r1) ffc0f504: 7c 08 03 a6 mtlr r0 ffc0f508: 83 a1 00 1c lwz r29,28(r1) ffc0f50c: 83 c1 00 20 lwz r30,32(r1) ffc0f510: 83 e1 00 24 lwz r31,36(r1) ffc0f514: 38 21 00 28 addi r1,r1,40 ffc0f518: 4e 80 00 20 blr ffc0f5fc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f5fc: 94 21 ff d8 stwu r1,-40(r1) ffc0f600: 7c 08 02 a6 mflr r0 ffc0f604: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f608: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f60c: 93 81 00 18 stw r28,24(r1) ffc0f610: 7c dc 33 78 mr r28,r6 ffc0f614: 93 a1 00 1c stw r29,28(r1) ffc0f618: 7c bd 2b 78 mr r29,r5 ffc0f61c: 93 c1 00 20 stw r30,32(r1) ffc0f620: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f624: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f628: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f62c: 41 82 00 6c beq- ffc0f698 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f630: 48 00 1e 4d bl ffc1147c <__errno> ffc0f634: 38 00 00 00 li r0,0 ffc0f638: 90 03 00 00 stw r0,0(r3) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f63c: 7f 85 e3 78 mr r5,r28 ffc0f640: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f644: 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 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f648: 38 81 00 08 addi r4,r1,8 ffc0f64c: 48 00 52 c9 bl ffc14914 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f650: 2f 9d 00 00 cmpwi cr7,r29,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f654: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f658: 41 9e 00 0c beq- cr7,ffc0f664 *endptr = end; ffc0f65c: 80 01 00 08 lwz r0,8(r1) ffc0f660: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f664: 80 01 00 08 lwz r0,8(r1) ffc0f668: 38 60 00 0b li r3,11 ffc0f66c: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f670: 41 9e 00 28 beq- cr7,ffc0f698 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f674: 2f 9c ff ff cmpwi cr7,r28,-1 ffc0f678: 40 be 00 18 bne+ cr7,ffc0f690 ffc0f67c: 48 00 1e 01 bl ffc1147c <__errno> ffc0f680: 80 03 00 00 lwz r0,0(r3) ffc0f684: 38 60 00 0a li r3,10 ffc0f688: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f68c: 41 9e 00 0c beq- cr7,ffc0f698 <== ALWAYS TAKEN #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; ffc0f690: 93 9f 00 00 stw r28,0(r31) ffc0f694: 38 60 00 00 li r3,0 #endif return RTEMS_SUCCESSFUL; } ffc0f698: 80 01 00 2c lwz r0,44(r1) ffc0f69c: 83 81 00 18 lwz r28,24(r1) ffc0f6a0: 7c 08 03 a6 mtlr r0 ffc0f6a4: 83 a1 00 1c lwz r29,28(r1) ffc0f6a8: 83 c1 00 20 lwz r30,32(r1) ffc0f6ac: 83 e1 00 24 lwz r31,36(r1) ffc0f6b0: 38 21 00 28 addi r1,r1,40 ffc0f6b4: 4e 80 00 20 blr ffc0f51c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f51c: 94 21 ff d0 stwu r1,-48(r1) ffc0f520: 7c 08 02 a6 mflr r0 ffc0f524: 93 e1 00 2c stw r31,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f528: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f52c: 93 81 00 20 stw r28,32(r1) ffc0f530: 7c dc 33 78 mr r28,r6 ffc0f534: 93 a1 00 24 stw r29,36(r1) ffc0f538: 7c bd 2b 78 mr r29,r5 ffc0f53c: 93 c1 00 28 stw r30,40(r1) ffc0f540: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f544: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f548: 90 01 00 34 stw r0,52(r1) ffc0f54c: 93 61 00 1c stw r27,28(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f550: 41 82 00 88 beq- ffc0f5d8 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f554: 48 00 1f 29 bl ffc1147c <__errno> ffc0f558: 38 00 00 00 li r0,0 *n = 0; ffc0f55c: 39 20 00 00 li r9,0 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f560: 90 03 00 00 stw r0,0(r3) *n = 0; ffc0f564: 39 40 00 00 li r10,0 ffc0f568: 91 3f 00 00 stw r9,0(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f56c: 7f 85 e3 78 mr r5,r28 ffc0f570: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f574: 91 5f 00 04 stw r10,4(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f578: 38 81 00 08 addi r4,r1,8 ffc0f57c: 48 00 53 b9 bl ffc14934 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f580: 2f 9d 00 00 cmpwi cr7,r29,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc0f584: 7c 7c 1b 78 mr r28,r3 ffc0f588: 7c 9b 23 78 mr r27,r4 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f58c: 41 9e 00 0c beq- cr7,ffc0f598 *endptr = end; ffc0f590: 80 01 00 08 lwz r0,8(r1) ffc0f594: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f598: 80 01 00 08 lwz r0,8(r1) ffc0f59c: 38 60 00 0b li r3,11 ffc0f5a0: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f5a4: 41 9e 00 34 beq- cr7,ffc0f5d8 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f5a8: 2f 9c ff ff cmpwi cr7,r28,-1 ffc0f5ac: 40 be 00 20 bne+ cr7,ffc0f5cc ffc0f5b0: 2f 9b ff ff cmpwi cr7,r27,-1 ffc0f5b4: 40 be 00 18 bne+ cr7,ffc0f5cc <== NEVER TAKEN ffc0f5b8: 48 00 1e c5 bl ffc1147c <__errno> ffc0f5bc: 80 03 00 00 lwz r0,0(r3) ffc0f5c0: 38 60 00 0a li r3,10 ffc0f5c4: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f5c8: 41 9e 00 10 beq- cr7,ffc0f5d8 <== ALWAYS TAKEN #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; ffc0f5cc: 93 7f 00 04 stw r27,4(r31) ffc0f5d0: 38 60 00 00 li r3,0 ffc0f5d4: 93 9f 00 00 stw r28,0(r31) #endif return RTEMS_SUCCESSFUL; } ffc0f5d8: 80 01 00 34 lwz r0,52(r1) ffc0f5dc: 83 61 00 1c lwz r27,28(r1) ffc0f5e0: 7c 08 03 a6 mtlr r0 ffc0f5e4: 83 81 00 20 lwz r28,32(r1) ffc0f5e8: 83 a1 00 24 lwz r29,36(r1) ffc0f5ec: 83 c1 00 28 lwz r30,40(r1) ffc0f5f0: 83 e1 00 2c lwz r31,44(r1) ffc0f5f4: 38 21 00 30 addi r1,r1,48 ffc0f5f8: 4e 80 00 20 blr ffc0f9d8 : ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) ffc0f9d8: 2c 05 00 00 cmpwi r5,0 rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { ffc0f9dc: 94 21 ff f0 stwu r1,-16(r1) ffc0f9e0: 7c 08 02 a6 mflr r0 ffc0f9e4: 93 e1 00 0c stw r31,12(r1) ffc0f9e8: 90 01 00 14 stw r0,20(r1) ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) ffc0f9ec: 38 00 00 09 li r0,9 ffc0f9f0: 41 82 01 5c beq- ffc0fb4c return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; ffc0f9f4: 3d 20 00 00 lis r9,0 ffc0f9f8: 81 29 27 6c lwz r9,10092(r9) api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) ffc0f9fc: 80 09 00 7c lwz r0,124(r9) executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; ffc0fa00: 89 49 00 75 lbz r10,117(r9) if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) ffc0fa04: 2f 80 00 00 cmpwi cr7,r0,0 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; ffc0fa08: 81 69 01 40 lwz r11,320(r9) asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; ffc0fa0c: 7d 4a 00 34 cntlzw r10,r10 ffc0fa10: 55 4a d9 7e rlwinm r10,r10,27,5,31 ffc0fa14: 55 4a 40 2e rlwinm r10,r10,8,0,23 if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) ffc0fa18: 41 9e 00 08 beq- cr7,ffc0fa20 old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; ffc0fa1c: 61 4a 02 00 ori r10,r10,512 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; ffc0fa20: 89 0b 00 08 lbz r8,8(r11) #ifndef ASM static inline uint32_t _CPU_ISR_Get_level( void ) { register unsigned int msr; _CPU_MSR_GET(msr); ffc0fa24: 38 00 00 00 li r0,0 ffc0fa28: 7d 08 00 34 cntlzw r8,r8 ffc0fa2c: 55 08 d9 7e rlwinm r8,r8,27,5,31 ffc0fa30: 55 08 50 2a rlwinm r8,r8,10,0,21 if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; ffc0fa34: 7d 0a 53 78 or r10,r8,r10 ffc0fa38: 7c 00 00 a6 mfmsr r0 /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) ffc0fa3c: 70 88 01 00 andi. r8,r4,256 old_mode |= RTEMS_TIMESLICE; old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR; old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode; ffc0fa40: 68 00 80 00 xori r0,r0,32768 ffc0fa44: 54 00 8f fe rlwinm r0,r0,17,31,31 ffc0fa48: 7d 4a 03 78 or r10,r10,r0 ffc0fa4c: 91 45 00 00 stw r10,0(r5) /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) ffc0fa50: 41 82 00 10 beq- ffc0fa60 executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; ffc0fa54: 68 60 01 00 xori r0,r3,256 ffc0fa58: 54 00 c7 fe rlwinm r0,r0,24,31,31 ffc0fa5c: 98 09 00 75 stb r0,117(r9) if ( mask & RTEMS_TIMESLICE_MASK ) { ffc0fa60: 70 8a 02 00 andi. r10,r4,512 ffc0fa64: 41 82 00 28 beq- ffc0fa8c if ( _Modes_Is_timeslice(mode_set) ) { ffc0fa68: 70 60 02 00 andi. r0,r3,512 ffc0fa6c: 41 82 00 1c beq- ffc0fa88 executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; executing->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0fa70: 3d 40 00 00 lis r10,0 ffc0fa74: 80 0a 27 24 lwz r0,10020(r10) if ( mask & RTEMS_PREEMPT_MASK ) executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; if ( mask & RTEMS_TIMESLICE_MASK ) { if ( _Modes_Is_timeslice(mode_set) ) { executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; ffc0fa78: 39 40 00 01 li r10,1 ffc0fa7c: 91 49 00 7c stw r10,124(r9) executing->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0fa80: 90 09 00 78 stw r0,120(r9) ffc0fa84: 48 00 00 08 b ffc0fa8c } else executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; ffc0fa88: 90 09 00 7c stw r0,124(r9) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) ffc0fa8c: 70 80 00 01 andi. r0,r4,1 ffc0fa90: 41 82 00 2c beq- ffc0fabc } static inline void _CPU_ISR_Set_level( uint32_t level ) { register unsigned int msr; _CPU_MSR_GET(msr); ffc0fa94: 38 00 00 00 li r0,0 ffc0fa98: 7c 00 00 a6 mfmsr r0 if (!(level & CPU_MODES_INTERRUPT_MASK)) { ffc0fa9c: 70 68 00 01 andi. r8,r3,1 ffc0faa0: 40 82 00 10 bne- ffc0fab0 static inline uint32_t ppc_interrupt_get_disable_mask( void ) { uint32_t mask; asm volatile ( ffc0faa4: 7d 50 42 a6 mfsprg r10,0 msr |= ppc_interrupt_get_disable_mask(); ffc0faa8: 7d 40 03 78 or r0,r10,r0 ffc0faac: 48 00 00 0c b ffc0fab8 ffc0fab0: 7d 50 42 a6 mfsprg r10,0 } else { msr &= ~ppc_interrupt_get_disable_mask(); ffc0fab4: 7c 00 50 78 andc r0,r0,r10 } _CPU_MSR_SET(msr); ffc0fab8: 7c 00 01 24 mtmsr r0 */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { ffc0fabc: 70 8a 04 00 andi. r10,r4,1024 ffc0fac0: 41 82 00 5c beq- ffc0fb1c * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( ffc0fac4: 68 63 04 00 xori r3,r3,1024 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; ffc0fac8: 88 0b 00 08 lbz r0,8(r11) * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( ffc0facc: 54 63 b7 fe rlwinm r3,r3,22,31,31 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; ffc0fad0: 7f 80 18 00 cmpw cr7,r0,r3 ffc0fad4: 41 9e 00 48 beq- cr7,ffc0fb1c needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true; if ( is_asr_enabled != asr->is_enabled ) { asr->is_enabled = is_asr_enabled; ffc0fad8: 98 6b 00 08 stb r3,8(r11) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0fadc: 7c 00 00 a6 mfmsr r0 ffc0fae0: 7d 50 42 a6 mfsprg r10,0 ffc0fae4: 7c 0a 50 78 andc r10,r0,r10 ffc0fae8: 7d 40 01 24 mtmsr r10 { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; ffc0faec: 81 0b 00 18 lwz r8,24(r11) information->signals_pending = information->signals_posted; ffc0faf0: 81 4b 00 14 lwz r10,20(r11) information->signals_posted = _signals; ffc0faf4: 91 0b 00 14 stw r8,20(r11) rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; information->signals_pending = information->signals_posted; ffc0faf8: 91 4b 00 18 stw r10,24(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0fafc: 7c 00 01 24 mtmsr r0 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; ffc0fb00: 80 0b 00 14 lwz r0,20(r11) ffc0fb04: 2f 80 00 00 cmpwi cr7,r0,0 ffc0fb08: 41 9e 00 14 beq- cr7,ffc0fb1c if ( is_asr_enabled != asr->is_enabled ) { asr->is_enabled = is_asr_enabled; _ASR_Swap_signals( asr ); if ( _ASR_Are_signals_pending( asr ) ) { needs_asr_dispatching = true; executing->do_post_task_switch_extension = true; ffc0fb0c: 38 00 00 01 li r0,1 ffc0fb10: 98 09 00 74 stb r0,116(r9) ffc0fb14: 3b e0 00 01 li r31,1 ffc0fb18: 48 00 00 08 b ffc0fb20 ffc0fb1c: 3b e0 00 00 li r31,0 } } } if ( _System_state_Is_up( _System_state_Get() ) ) ffc0fb20: 3d 20 00 00 lis r9,0 ffc0fb24: 80 09 27 90 lwz r0,10128(r9) ffc0fb28: 2f 80 00 03 cmpwi cr7,r0,3 ffc0fb2c: 40 be 00 1c bne+ cr7,ffc0fb48 <== NEVER TAKEN if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) ffc0fb30: 48 00 03 49 bl ffc0fe78 <_Thread_Evaluate_mode> ffc0fb34: 2f 83 00 00 cmpwi cr7,r3,0 ffc0fb38: 40 9e 00 0c bne- cr7,ffc0fb44 ffc0fb3c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0fb40: 41 9e 00 08 beq- cr7,ffc0fb48 _Thread_Dispatch(); ffc0fb44: 4b ff a7 65 bl ffc0a2a8 <_Thread_Dispatch> ffc0fb48: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc0fb4c: 7c 03 03 78 mr r3,r0 ffc0fb50: 80 01 00 14 lwz r0,20(r1) ffc0fb54: 83 e1 00 0c lwz r31,12(r1) ffc0fb58: 38 21 00 10 addi r1,r1,16 ffc0fb5c: 7c 08 03 a6 mtlr r0 ffc0fb60: 4e 80 00 20 blr ffc0dce8 : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { ffc0dce8: 94 21 ff e0 stwu r1,-32(r1) ffc0dcec: 7c 08 02 a6 mflr r0 ffc0dcf0: 93 e1 00 1c stw r31,28(r1) register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && ffc0dcf4: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { ffc0dcf8: 93 c1 00 18 stw r30,24(r1) ffc0dcfc: 7c be 2b 78 mr r30,r5 ffc0dd00: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && ffc0dd04: 41 82 00 18 beq- ffc0dd1c ffc0dd08: 3d 20 00 00 lis r9,0 ffc0dd0c: 89 29 26 a4 lbz r9,9892(r9) ffc0dd10: 38 00 00 13 li r0,19 ffc0dd14: 7f 9f 48 40 cmplw cr7,r31,r9 ffc0dd18: 41 9d 00 68 bgt- cr7,ffc0dd80 !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) ffc0dd1c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0dd20: 38 00 00 09 li r0,9 ffc0dd24: 41 9e 00 5c beq- cr7,ffc0dd80 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); ffc0dd28: 38 81 00 08 addi r4,r1,8 ffc0dd2c: 48 00 25 f9 bl ffc10324 <_Thread_Get> switch ( location ) { ffc0dd30: 81 21 00 08 lwz r9,8(r1) ffc0dd34: 38 00 00 04 li r0,4 ffc0dd38: 2f 89 00 00 cmpwi cr7,r9,0 ffc0dd3c: 40 9e 00 44 bne- cr7,ffc0dd80 case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; if ( new_priority != RTEMS_CURRENT_PRIORITY ) { ffc0dd40: 2f 9f 00 00 cmpwi cr7,r31,0 the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; ffc0dd44: 80 03 00 14 lwz r0,20(r3) ffc0dd48: 90 1e 00 00 stw r0,0(r30) if ( new_priority != RTEMS_CURRENT_PRIORITY ) { ffc0dd4c: 41 9e 00 2c beq- cr7,ffc0dd78 the_thread->real_priority = new_priority; if ( the_thread->resource_count == 0 || ffc0dd50: 80 03 00 1c lwz r0,28(r3) case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; if ( new_priority != RTEMS_CURRENT_PRIORITY ) { the_thread->real_priority = new_priority; ffc0dd54: 93 e3 00 18 stw r31,24(r3) if ( the_thread->resource_count == 0 || ffc0dd58: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dd5c: 41 9e 00 10 beq- cr7,ffc0dd6c the_thread->current_priority > new_priority ) ffc0dd60: 80 03 00 14 lwz r0,20(r3) ffc0dd64: 7f 80 f8 40 cmplw cr7,r0,r31 ffc0dd68: 40 9d 00 10 ble- cr7,ffc0dd78 <== ALWAYS TAKEN _Thread_Change_priority( the_thread, new_priority, false ); ffc0dd6c: 7f e4 fb 78 mr r4,r31 ffc0dd70: 38 a0 00 00 li r5,0 ffc0dd74: 48 00 1e bd bl ffc0fc30 <_Thread_Change_priority> } _Thread_Enable_dispatch(); ffc0dd78: 48 00 25 41 bl ffc102b8 <_Thread_Enable_dispatch> ffc0dd7c: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0dd80: 7c 03 03 78 mr r3,r0 ffc0dd84: 80 01 00 24 lwz r0,36(r1) ffc0dd88: 83 c1 00 18 lwz r30,24(r1) ffc0dd8c: 7c 08 03 a6 mtlr r0 ffc0dd90: 83 e1 00 1c lwz r31,28(r1) ffc0dd94: 38 21 00 20 addi r1,r1,32 ffc0dd98: 4e 80 00 20 blr ffc06d14 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d14: 2f 83 00 09 cmpwi cr7,r3,9 case B110: baud_index = 3; break; case B134: baud_index = 4; break; case B150: baud_index = 5; break; case B200: baud_index = 6; break; case B300: baud_index = 7; break; case B600: baud_index = 8; break; ffc06d18: 38 00 00 09 li r0,9 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d1c: 41 9e 01 04 beq- cr7,ffc06e20 <== NEVER TAKEN ffc06d20: 41 9d 00 70 bgt- cr7,ffc06d90 <== NEVER TAKEN ffc06d24: 2f 83 00 04 cmpwi cr7,r3,4 case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; case B110: baud_index = 3; break; ffc06d28: 38 00 00 04 li r0,4 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d2c: 41 9e 00 f4 beq- cr7,ffc06e20 <== NEVER TAKEN ffc06d30: 41 9d 00 38 bgt- cr7,ffc06d68 <== NEVER TAKEN ffc06d34: 2f 83 00 01 cmpwi cr7,r3,1 ffc06d38: 38 00 00 01 li r0,1 ffc06d3c: 41 9e 00 e4 beq- cr7,ffc06e20 <== NEVER TAKEN ffc06d40: 41 bd 00 10 bgt+ cr7,ffc06d50 <== NEVER TAKEN ffc06d44: 2f 83 00 00 cmpwi cr7,r3,0 ffc06d48: 38 00 00 00 li r0,0 ffc06d4c: 48 00 00 b8 b ffc06e04 ffc06d50: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED ffc06d54: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc06d58: 41 9e 00 c8 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06d5c: 2f 83 00 03 cmpwi cr7,r3,3 <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; ffc06d60: 38 00 00 03 li r0,3 <== NOT EXECUTED ffc06d64: 48 00 00 a0 b ffc06e04 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d68: 2f 83 00 06 cmpwi cr7,r3,6 <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; case B110: baud_index = 3; break; case B134: baud_index = 4; break; case B150: baud_index = 5; break; ffc06d6c: 38 00 00 06 li r0,6 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d70: 41 9e 00 b0 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06d74: 41 9c 00 98 blt- cr7,ffc06e0c <== NOT EXECUTED ffc06d78: 2f 83 00 07 cmpwi cr7,r3,7 <== NOT EXECUTED case B50: baud_index = 1; break; case B75: baud_index = 2; break; case B110: baud_index = 3; break; case B134: baud_index = 4; break; case B150: baud_index = 5; break; case B200: baud_index = 6; break; ffc06d7c: 38 00 00 07 li r0,7 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d80: 41 9e 00 a0 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06d84: 2f 83 00 08 cmpwi cr7,r3,8 <== NOT EXECUTED case B75: baud_index = 2; break; case B110: baud_index = 3; break; case B134: baud_index = 4; break; case B150: baud_index = 5; break; case B200: baud_index = 6; break; case B300: baud_index = 7; break; ffc06d88: 38 00 00 08 li r0,8 <== NOT EXECUTED ffc06d8c: 48 00 00 78 b ffc06e04 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d90: 2f 83 00 0e cmpwi cr7,r3,14 <== NOT EXECUTED case B600: baud_index = 8; break; case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; ffc06d94: 38 00 00 0e li r0,14 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06d98: 41 9e 00 88 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06d9c: 41 9d 00 2c bgt- cr7,ffc06dc8 <== NOT EXECUTED ffc06da0: 2f 83 00 0b cmpwi cr7,r3,11 <== NOT EXECUTED case B150: baud_index = 5; break; case B200: baud_index = 6; break; case B300: baud_index = 7; break; case B600: baud_index = 8; break; case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; ffc06da4: 38 00 00 0b li r0,11 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06da8: 41 9e 00 78 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06dac: 41 9c 00 68 blt- cr7,ffc06e14 <== NOT EXECUTED ffc06db0: 2f 83 00 0c cmpwi cr7,r3,12 <== NOT EXECUTED case B200: baud_index = 6; break; case B300: baud_index = 7; break; case B600: baud_index = 8; break; case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; ffc06db4: 38 00 00 0c li r0,12 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06db8: 41 9e 00 68 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06dbc: 2f 83 00 0d cmpwi cr7,r3,13 <== NOT EXECUTED case B300: baud_index = 7; break; case B600: baud_index = 8; break; case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; ffc06dc0: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc06dc4: 48 00 00 40 b ffc06e04 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06dc8: 2f 83 10 02 cmpwi cr7,r3,4098 <== NOT EXECUTED case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; ffc06dcc: 38 00 00 11 li r0,17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06dd0: 41 9e 00 50 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06dd4: 41 9d 00 1c bgt- cr7,ffc06df0 <== NOT EXECUTED ffc06dd8: 2f 83 00 0f cmpwi cr7,r3,15 <== NOT EXECUTED case B1200: baud_index = 9; break; case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; ffc06ddc: 38 00 00 0f li r0,15 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06de0: 41 9e 00 40 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06de4: 2f 83 10 01 cmpwi cr7,r3,4097 <== NOT EXECUTED case B1800: baud_index = 10; break; case B2400: baud_index = 11; break; case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; ffc06de8: 38 00 00 10 li r0,16 <== NOT EXECUTED ffc06dec: 48 00 00 18 b ffc06e04 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06df0: 2f 83 10 03 cmpwi cr7,r3,4099 <== NOT EXECUTED case B4800: baud_index = 12; break; case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; ffc06df4: 38 00 00 12 li r0,18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06df8: 41 9e 00 28 beq- cr7,ffc06e20 <== NOT EXECUTED ffc06dfc: 2f 83 10 04 cmpwi cr7,r3,4100 <== NOT EXECUTED case B9600: baud_index = 13; break; case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; ffc06e00: 38 00 00 13 li r0,19 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06e04: 40 be 00 18 bne+ cr7,ffc06e1c <== ALWAYS TAKEN ffc06e08: 48 00 00 18 b ffc06e20 <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; case B110: baud_index = 3; break; case B134: baud_index = 4; break; ffc06e0c: 38 00 00 05 li r0,5 <== NOT EXECUTED case B150: baud_index = 5; break; ffc06e10: 48 00 00 10 b ffc06e20 <== NOT EXECUTED case B200: baud_index = 6; break; case B300: baud_index = 7; break; case B600: baud_index = 8; break; case B1200: baud_index = 9; break; ffc06e14: 38 00 00 0a li r0,10 <== NOT EXECUTED case B1800: baud_index = 10; break; ffc06e18: 48 00 00 08 b ffc06e20 <== NOT EXECUTED case B19200: baud_index = 14; break; case B38400: baud_index = 15; break; case B57600: baud_index = 16; break; case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; case B460800: baud_index = 19; break; ffc06e1c: 38 00 ff ff li r0,-1 default: baud_index = -1; break; } return baud_index; } ffc06e20: 7c 03 03 78 mr r3,r0 ffc06e24: 4e 80 00 20 blr ffc06e28 : int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06e28: 2f 83 00 09 cmpwi cr7,r3,9 #include int32_t rtems_termios_baud_to_number( int termios_baud ) { ffc06e2c: 7c 60 1b 78 mr r0,r3 case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; ffc06e30: 38 60 04 b0 li r3,1200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06e34: 4d 9e 00 20 beqlr cr7 ffc06e38: 41 9d 00 7c bgt- cr7,ffc06eb4 ffc06e3c: 2f 80 00 04 cmpwi cr7,r0,4 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; ffc06e40: 38 60 00 86 li r3,134 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06e44: 4d 9e 00 20 beqlr cr7 ffc06e48: 41 9d 00 40 bgt- cr7,ffc06e88 ffc06e4c: 2f 80 00 01 cmpwi cr7,r0,1 ffc06e50: 38 60 00 32 li r3,50 ffc06e54: 4d 9e 00 20 beqlr cr7 ffc06e58: 41 bd 00 14 bgt+ cr7,ffc06e6c ffc06e5c: 2f 80 00 00 cmpwi cr7,r0,0 ffc06e60: 38 60 00 00 li r3,0 ffc06e64: 4d 9e 00 20 beqlr cr7 ffc06e68: 48 00 00 f4 b ffc06f5c ffc06e6c: 2f 80 00 02 cmpwi cr7,r0,2 ffc06e70: 38 60 00 4b li r3,75 ffc06e74: 4d 9e 00 20 beqlr cr7 ffc06e78: 2f 80 00 03 cmpwi cr7,r0,3 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; ffc06e7c: 38 60 00 6e li r3,110 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06e80: 40 be 00 dc bne+ cr7,ffc06f5c <== NEVER TAKEN ffc06e84: 4e 80 00 20 blr ffc06e88: 2f 80 00 06 cmpwi cr7,r0,6 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; ffc06e8c: 38 60 00 c8 li r3,200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06e90: 4d 9e 00 20 beqlr cr7 ffc06e94: 41 9c 00 b8 blt- cr7,ffc06f4c ffc06e98: 2f 80 00 07 cmpwi cr7,r0,7 case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; ffc06e9c: 38 60 01 2c li r3,300 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06ea0: 4d 9e 00 20 beqlr cr7 ffc06ea4: 2f 80 00 08 cmpwi cr7,r0,8 case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; ffc06ea8: 38 60 02 58 li r3,600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06eac: 40 be 00 b0 bne+ cr7,ffc06f5c <== NEVER TAKEN ffc06eb0: 4e 80 00 20 blr ffc06eb4: 2f 80 00 0e cmpwi cr7,r0,14 case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; ffc06eb8: 38 60 4b 00 li r3,19200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06ebc: 4d 9e 00 20 beqlr cr7 ffc06ec0: 41 9d 00 30 bgt- cr7,ffc06ef0 ffc06ec4: 2f 80 00 0b cmpwi cr7,r0,11 case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; ffc06ec8: 38 60 09 60 li r3,2400 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06ecc: 4d 9e 00 20 beqlr cr7 ffc06ed0: 41 9c 00 84 blt- cr7,ffc06f54 ffc06ed4: 2f 80 00 0c cmpwi cr7,r0,12 case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; ffc06ed8: 38 60 12 c0 li r3,4800 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06edc: 4d 9e 00 20 beqlr cr7 ffc06ee0: 2f 80 00 0d cmpwi cr7,r0,13 case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; ffc06ee4: 38 60 25 80 li r3,9600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06ee8: 40 be 00 74 bne+ cr7,ffc06f5c <== NEVER TAKEN ffc06eec: 4e 80 00 20 blr ffc06ef0: 2f 80 10 02 cmpwi cr7,r0,4098 case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; ffc06ef4: 3c 60 00 01 lis r3,1 ffc06ef8: 60 63 c2 00 ori r3,r3,49664 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06efc: 4d 9e 00 20 beqlr cr7 ffc06f00: 41 9d 00 28 bgt- cr7,ffc06f28 ffc06f04: 2f 80 00 0f cmpwi cr7,r0,15 case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; ffc06f08: 38 60 00 00 li r3,0 ffc06f0c: 60 63 96 00 ori r3,r3,38400 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06f10: 4d 9e 00 20 beqlr cr7 ffc06f14: 2f 80 10 01 cmpwi cr7,r0,4097 case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; ffc06f18: 38 60 00 00 li r3,0 ffc06f1c: 60 63 e1 00 ori r3,r3,57600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06f20: 40 be 00 3c bne+ cr7,ffc06f5c <== NEVER TAKEN ffc06f24: 4e 80 00 20 blr ffc06f28: 2f 80 10 03 cmpwi cr7,r0,4099 case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; ffc06f2c: 3c 60 00 03 lis r3,3 ffc06f30: 60 63 84 00 ori r3,r3,33792 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06f34: 4d 9e 00 20 beqlr cr7 ffc06f38: 2f 80 10 04 cmpwi cr7,r0,4100 case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; case B230400: baud = 230400; break; ffc06f3c: 3c 60 00 07 lis r3,7 ffc06f40: 60 63 08 00 ori r3,r3,2048 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06f44: 40 be 00 18 bne+ cr7,ffc06f5c <== NEVER TAKEN ffc06f48: 4e 80 00 20 blr case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; ffc06f4c: 38 60 00 96 li r3,150 case B150: baud = 150; break; ffc06f50: 4e 80 00 20 blr case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; ffc06f54: 38 60 07 08 li r3,1800 case B1800: baud = 1800; break; ffc06f58: 4e 80 00 20 blr case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; case B230400: baud = 230400; break; case B460800: baud = 460800; break; ffc06f5c: 38 60 ff ff li r3,-1 default: baud = -1; break; } return baud; } ffc06f60: 4e 80 00 20 blr ffc052f4 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; ffc052f4: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc052f8: 39 2b 21 68 addi r9,r11,8552 <== NOT EXECUTED ffc052fc: 90 6b 21 68 stw r3,8552(r11) <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } ffc05300: 38 60 00 00 li r3,0 <== NOT EXECUTED int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; rtems_termios_raw_output_size = raw_output; ffc05304: 90 a9 00 08 stw r5,8(r9) <== NOT EXECUTED int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; rtems_termios_raw_input_size = raw_input; ffc05308: 90 89 00 04 stw r4,4(r9) <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } ffc0530c: 4e 80 00 20 blr <== NOT EXECUTED ffc06ae8 : } } rtems_status_code rtems_termios_close (void *arg) { ffc06ae8: 94 21 ff f0 stwu r1,-16(r1) ffc06aec: 7c 08 02 a6 mflr r0 rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06af0: 3d 20 00 00 lis r9,0 } } rtems_status_code rtems_termios_close (void *arg) { ffc06af4: 90 01 00 14 stw r0,20(r1) rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06af8: 38 80 00 00 li r4,0 ffc06afc: 38 a0 00 00 li r5,0 } } rtems_status_code rtems_termios_close (void *arg) { ffc06b00: 93 c1 00 08 stw r30,8(r1) ffc06b04: 7c 7e 1b 78 mr r30,r3 rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06b08: 80 69 27 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; ffc06b0c: 81 3e 00 00 lwz r9,0(r30) } } rtems_status_code rtems_termios_close (void *arg) { ffc06b10: 93 e1 00 0c stw r31,12(r1) rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06b14: 83 e9 00 38 lwz r31,56(r9) rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06b18: 48 00 12 95 bl ffc07dac if (sc != RTEMS_SUCCESSFUL) ffc06b1c: 2f 83 00 00 cmpwi cr7,r3,0 ffc06b20: 40 9e 00 9c bne- cr7,ffc06bbc <== NEVER TAKEN rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { ffc06b24: 81 3f 00 08 lwz r9,8(r31) ffc06b28: 38 09 ff ff addi r0,r9,-1 ffc06b2c: 2f 80 00 00 cmpwi cr7,r0,0 ffc06b30: 90 1f 00 08 stw r0,8(r31) ffc06b34: 40 9e 01 5c bne- cr7,ffc06c90 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { ffc06b38: 80 1f 00 cc lwz r0,204(r31) ffc06b3c: 3d 20 00 00 lis r9,0 ffc06b40: 39 29 27 f0 addi r9,r9,10224 ffc06b44: 54 00 28 34 rlwinm r0,r0,5,0,26 ffc06b48: 7d 29 02 14 add r9,r9,r0 ffc06b4c: 80 09 00 04 lwz r0,4(r9) ffc06b50: 2f 80 00 00 cmpwi cr7,r0,0 ffc06b54: 41 9e 00 14 beq- cr7,ffc06b68 <== ALWAYS TAKEN /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); ffc06b58: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06b5c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06b60: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06b64: 48 00 00 24 b ffc06b88 <== NOT EXECUTED } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06b68: 80 7f 00 18 lwz r3,24(r31) ffc06b6c: 38 80 00 00 li r4,0 ffc06b70: 38 a0 00 00 li r5,0 ffc06b74: 48 00 12 39 bl ffc07dac if (sc != RTEMS_SUCCESSFUL) { ffc06b78: 2f 83 00 00 cmpwi cr7,r3,0 ffc06b7c: 40 9e 00 40 bne- cr7,ffc06bbc <== NEVER TAKEN rtems_fatal_error_occurred (sc); } drainOutput (tty); ffc06b80: 7f e3 fb 78 mr r3,r31 ffc06b84: 4b ff f6 f5 bl ffc06278 } if (tty->device.outputUsesInterrupts ffc06b88: 80 1f 00 b4 lwz r0,180(r31) ffc06b8c: 2f 80 00 02 cmpwi cr7,r0,2 ffc06b90: 40 be 00 30 bne+ cr7,ffc06bc0 <== ALWAYS TAKEN == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( ffc06b94: 80 7f 00 c4 lwz r3,196(r31) <== NOT EXECUTED ffc06b98: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06b9c: 48 00 0c f1 bl ffc0788c <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc06ba0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06ba4: 40 9e 00 18 bne- cr7,ffc06bbc <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( ffc06ba8: 80 7f 00 c8 lwz r3,200(r31) <== NOT EXECUTED ffc06bac: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06bb0: 48 00 0c dd bl ffc0788c <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc06bb4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06bb8: 41 be 00 08 beq+ cr7,ffc06bc0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc06bbc: 48 00 1a 19 bl ffc085d4 <== NOT EXECUTED } if (tty->device.lastClose) ffc06bc0: 80 1f 00 9c lwz r0,156(r31) ffc06bc4: 2f 80 00 00 cmpwi cr7,r0,0 ffc06bc8: 41 9e 00 18 beq- cr7,ffc06be0 <== ALWAYS TAKEN (*tty->device.lastClose)(tty->major, tty->minor, arg); ffc06bcc: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc06bd0: 80 7f 00 0c lwz r3,12(r31) <== NOT EXECUTED ffc06bd4: 80 9f 00 10 lwz r4,16(r31) <== NOT EXECUTED ffc06bd8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06bdc: 4e 80 04 21 bctrl <== NOT EXECUTED if (tty->forw == NULL) { ffc06be0: 81 7f 00 00 lwz r11,0(r31) ffc06be4: 81 3f 00 04 lwz r9,4(r31) ffc06be8: 2f 8b 00 00 cmpwi cr7,r11,0 ffc06bec: 40 be 00 1c bne+ cr7,ffc06c08 rtems_termios_ttyTail = tty->back; if ( rtems_termios_ttyTail != NULL ) { ffc06bf0: 2f 89 00 00 cmpwi cr7,r9,0 rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; ffc06bf4: 3d 40 00 00 lis r10,0 ffc06bf8: 91 2a 27 18 stw r9,10008(r10) if ( rtems_termios_ttyTail != NULL ) { ffc06bfc: 41 9e 00 10 beq- cr7,ffc06c0c <== ALWAYS TAKEN rtems_termios_ttyTail->forw = NULL; ffc06c00: 91 69 00 00 stw r11,0(r9) <== NOT EXECUTED ffc06c04: 48 00 00 08 b ffc06c0c <== NOT EXECUTED } } else { tty->forw->back = tty->back; ffc06c08: 91 2b 00 04 stw r9,4(r11) } if (tty->back == NULL) { ffc06c0c: 81 7f 00 04 lwz r11,4(r31) ffc06c10: 81 3f 00 00 lwz r9,0(r31) ffc06c14: 2f 8b 00 00 cmpwi cr7,r11,0 ffc06c18: 40 be 00 1c bne+ cr7,ffc06c34 <== NEVER TAKEN rtems_termios_ttyHead = tty->forw; if ( rtems_termios_ttyHead != NULL ) { ffc06c1c: 2f 89 00 00 cmpwi cr7,r9,0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; ffc06c20: 3d 40 00 00 lis r10,0 ffc06c24: 91 2a 27 1c stw r9,10012(r10) if ( rtems_termios_ttyHead != NULL ) { ffc06c28: 41 9e 00 10 beq- cr7,ffc06c38 rtems_termios_ttyHead->back = NULL; ffc06c2c: 91 69 00 04 stw r11,4(r9) ffc06c30: 48 00 00 08 b ffc06c38 } } else { tty->back->forw = tty->forw; ffc06c34: 91 2b 00 00 stw r9,0(r11) <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); ffc06c38: 80 7f 00 14 lwz r3,20(r31) ffc06c3c: 48 00 10 a5 bl ffc07ce0 rtems_semaphore_delete (tty->osem); ffc06c40: 80 7f 00 18 lwz r3,24(r31) ffc06c44: 48 00 10 9d bl ffc07ce0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); ffc06c48: 80 7f 00 8c lwz r3,140(r31) ffc06c4c: 48 00 10 95 bl ffc07ce0 if ((tty->device.pollRead == NULL) || ffc06c50: 80 1f 00 a0 lwz r0,160(r31) ffc06c54: 2f 80 00 00 cmpwi cr7,r0,0 ffc06c58: 41 9e 00 10 beq- cr7,ffc06c68 <== NEVER TAKEN (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) ffc06c5c: 80 1f 00 b4 lwz r0,180(r31) ffc06c60: 2f 80 00 02 cmpwi cr7,r0,2 ffc06c64: 40 be 00 0c bne+ cr7,ffc06c70 <== ALWAYS TAKEN rtems_semaphore_delete (tty->rawInBuf.Semaphore); ffc06c68: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED ffc06c6c: 48 00 10 75 bl ffc07ce0 <== NOT EXECUTED free (tty->rawInBuf.theBuf); ffc06c70: 80 7f 00 58 lwz r3,88(r31) ffc06c74: 4b ff d5 d1 bl ffc04244 free (tty->rawOutBuf.theBuf); ffc06c78: 80 7f 00 7c lwz r3,124(r31) ffc06c7c: 4b ff d5 c9 bl ffc04244 free (tty->cbuf); ffc06c80: 80 7f 00 1c lwz r3,28(r31) ffc06c84: 4b ff d5 c1 bl ffc04244 free (tty); ffc06c88: 7f e3 fb 78 mr r3,r31 ffc06c8c: 4b ff d5 b9 bl ffc04244 } rtems_semaphore_release (rtems_termios_ttyMutex); ffc06c90: 3d 20 00 00 lis r9,0 ffc06c94: 80 69 27 14 lwz r3,10004(r9) ffc06c98: 48 00 12 59 bl ffc07ef0 return RTEMS_SUCCESSFUL; } ffc06c9c: 80 01 00 14 lwz r0,20(r1) ffc06ca0: 38 60 00 00 li r3,0 ffc06ca4: 83 c1 00 08 lwz r30,8(r1) ffc06ca8: 7c 08 03 a6 mtlr r0 ffc06cac: 83 e1 00 0c lwz r31,12(r1) ffc06cb0: 38 21 00 10 addi r1,r1,16 ffc06cb4: 4e 80 00 20 blr ffc0556c : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { ffc0556c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05570: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05574: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED /* * sum up character count already sent */ tty->t_dqlen += len; if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc05578: 81 63 00 b4 lwz r11,180(r3) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; ffc0557c: 80 03 00 90 lwz r0,144(r3) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc05580: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; ffc05584: 7c 00 22 14 add r0,r0,r4 <== NOT EXECUTED ffc05588: 90 03 00 90 stw r0,144(r3) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc0558c: 40 be 00 1c bne+ cr7,ffc055a8 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, ffc05590: 80 63 00 c8 lwz r3,200(r3) <== NOT EXECUTED ffc05594: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc05598: 48 00 22 f5 bl ffc0788c <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc0559c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc055a0: 41 be 00 40 beq+ cr7,ffc055e0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc055a4: 48 00 30 31 bl ffc085d4 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { ffc055a8: 80 03 00 cc lwz r0,204(r3) <== NOT EXECUTED ffc055ac: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc055b0: 40 9e 00 20 bne- cr7,ffc055d0 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc055b4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc055b8: 80 09 28 a4 lwz r0,10404(r9) <== NOT EXECUTED ffc055bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc055c0: 41 9e 00 20 beq- cr7,ffc055e0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); ffc055c4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc055c8: 4e 80 04 21 bctrl <== NOT EXECUTED ffc055cc: 48 00 00 14 b ffc055e0 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } ffc055d0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc055d4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc055d8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); ffc055dc: 4b ff fd 5c b ffc05338 <== NOT EXECUTED } } ffc055e0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc055e4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc055e8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc055ec: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc055f0: 4e 80 00 20 blr <== NOT EXECUTED ffc055f4 : * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc055f4: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc055f8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc055fc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc05600: 90 01 00 34 stw r0,52(r1) <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc05604: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED ffc05608: 81 63 00 cc lwz r11,204(r3) <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc0560c: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc05610: 7d 3c 4b 78 mr r28,r9 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc05614: 55 6b 28 34 rlwinm r11,r11,5,0,26 <== NOT EXECUTED ffc05618: 38 0b 00 10 addi r0,r11,16 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc0561c: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED ffc05620: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc05624: 7c 09 00 2e lwzx r0,r9,r0 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc05628: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc0562c: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc05630: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc05634: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED ffc05638: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0563c: 92 c1 00 08 stw r22,8(r1) <== NOT EXECUTED ffc05640: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED ffc05644: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED ffc05648: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED ffc0564c: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED ffc05650: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc05654: 40 be 00 3c bne+ cr7,ffc05690 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc05658: 7c bb 2b 78 mr r27,r5 <== NOT EXECUTED if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; (*tty->device.write)(tty->minor, ffc0565c: 3a e3 00 4a addi r23,r3,74 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc05660: 3b 03 00 30 addi r24,r3,48 <== NOT EXECUTED ffc05664: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc05668: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc0566c: 48 00 02 84 b ffc058f0 <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc05670: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; ffc05674: 88 7d 00 00 lbz r3,0(r29) <== NOT EXECUTED ffc05678: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc0567c: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc05680: 38 09 00 10 addi r0,r9,16 <== NOT EXECUTED ffc05684: 7c 1c 00 2e lwzx r0,r28,r0 <== NOT EXECUTED ffc05688: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0568c: 4e 80 04 21 bctrl <== NOT EXECUTED int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { ffc05690: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc05694: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05698: 3b de ff ff addi r30,r30,-1 <== NOT EXECUTED int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { ffc0569c: 40 9e ff d4 bne+ cr7,ffc05670 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { ffc056a0: 80 1f 00 e4 lwz r0,228(r31) <== NOT EXECUTED ffc056a4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc056a8: 40 9e 02 68 bne- cr7,ffc05910 <== NOT EXECUTED ffc056ac: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED ffc056b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc056b4: 41 9e 02 5c beq- cr7,ffc05910 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc056b8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc056bc: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED ffc056c0: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc056c4: 3b c0 00 00 li r30,0 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc056c8: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc056cc: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc056d0: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED ffc056d4: 48 00 02 40 b ffc05914 <== NOT EXECUTED while (len--) { c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { ffc056d8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; ffc056dc: 8b 5d 00 00 lbz r26,0(r29) <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { ffc056e0: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc056e4: 41 82 00 58 beq- ffc0573c <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { ffc056e8: 89 3f 00 4a lbz r9,74(r31) <== NOT EXECUTED ffc056ec: 88 1f 00 49 lbz r0,73(r31) <== NOT EXECUTED ffc056f0: 7f 89 d0 00 cmpw cr7,r9,r26 <== NOT EXECUTED ffc056f4: 40 be 00 30 bne+ cr7,ffc05724 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { ffc056f8: 54 00 06 3e clrlwi r0,r0,24 <== NOT EXECUTED ffc056fc: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc05700: 40 be 00 10 bne+ cr7,ffc05710 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; ffc05704: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05708: 68 00 00 10 xori r0,r0,16 <== NOT EXECUTED ffc0570c: 48 00 00 0c b ffc05718 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; ffc05710: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05714: 60 00 00 10 ori r0,r0,16 <== NOT EXECUTED ffc05718: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; ffc0571c: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc05720: 48 00 00 24 b ffc05744 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { ffc05724: 54 00 06 3e clrlwi r0,r0,24 <== NOT EXECUTED ffc05728: 7f 80 d0 00 cmpw cr7,r0,r26 <== NOT EXECUTED ffc0572c: 40 be 00 10 bne+ cr7,ffc0573c <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; ffc05730: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05734: 54 00 07 34 rlwinm r0,r0,0,28,26 <== NOT EXECUTED ffc05738: 4b ff ff e0 b ffc05718 <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { ffc0573c: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED ffc05740: 41 be 00 64 beq+ cr7,ffc057a4 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { ffc05744: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05748: 54 00 06 b6 rlwinm r0,r0,0,26,27 <== NOT EXECUTED ffc0574c: 2f 80 00 20 cmpwi cr7,r0,32 <== NOT EXECUTED ffc05750: 40 be 01 98 bne+ cr7,ffc058e8 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05754: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED ffc05758: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc0575c: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED ffc05760: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc05764: 81 3f 00 94 lwz r9,148(r31) <== NOT EXECUTED if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; ffc05768: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc0576c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; ffc05770: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED ffc05774: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc05778: 41 be 00 24 beq+ cr7,ffc0579c <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); ffc0577c: 81 3f 00 84 lwz r9,132(r31) <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, ffc05780: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05784: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc05788: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc0578c: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc05790: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05794: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05798: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0579c: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED ffc057a0: 48 00 01 48 b ffc058e8 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; ffc057a4: 83 9f 00 60 lwz r28,96(r31) <== NOT EXECUTED ffc057a8: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc057ac: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED ffc057b0: 7f 80 4b 96 divwu r28,r0,r9 <== NOT EXECUTED ffc057b4: 7f 9c 49 d6 mullw r28,r28,r9 <== NOT EXECUTED ffc057b8: 7f 9c 00 50 subf r28,r28,r0 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc057bc: 7e c0 00 a6 mfmsr r22 <== NOT EXECUTED ffc057c0: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc057c4: 7e c0 00 78 andc r0,r22,r0 <== NOT EXECUTED ffc057c8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) ffc057cc: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED ffc057d0: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED ffc057d4: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc057d8: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && ffc057dc: 81 7f 00 c0 lwz r11,192(r31) <== NOT EXECUTED } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) ffc057e0: 7c 00 e2 14 add r0,r0,r28 <== NOT EXECUTED ffc057e4: 7d 40 4b 96 divwu r10,r0,r9 <== NOT EXECUTED ffc057e8: 7d 2a 49 d6 mullw r9,r10,r9 <== NOT EXECUTED ffc057ec: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && ffc057f0: 7f 80 58 40 cmplw cr7,r0,r11 <== NOT EXECUTED ffc057f4: 40 9d 00 a0 ble- cr7,ffc05894 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { ffc057f8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) ffc057fc: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc05800: 40 82 00 94 bne- ffc05894 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; ffc05804: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05808: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc0580c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) ffc05810: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05814: 70 00 04 02 andi. r0,r0,1026 <== NOT EXECUTED ffc05818: 2f 80 04 00 cmpwi cr7,r0,1024 <== NOT EXECUTED ffc0581c: 40 be 00 44 bne+ cr7,ffc05860 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || ffc05820: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05824: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc05828: 40 82 00 10 bne- ffc05838 <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { ffc0582c: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED ffc05830: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05834: 40 9e 00 60 bne- cr7,ffc05894 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; ffc05838: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc0583c: 7e e4 bb 78 mr r4,r23 <== NOT EXECUTED ffc05840: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05844: 38 a0 00 01 li r5,1 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; ffc05848: 61 29 00 02 ori r9,r9,2 <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc0584c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; ffc05850: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05854: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05858: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0585c: 48 00 00 38 b ffc05894 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) ffc05860: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05864: 70 00 01 04 andi. r0,r0,260 <== NOT EXECUTED ffc05868: 2f 80 01 00 cmpwi cr7,r0,256 <== NOT EXECUTED ffc0586c: 40 be 00 28 bne+ cr7,ffc05894 <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05870: 80 1f 00 ac lwz r0,172(r31) <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; ffc05874: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05878: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; ffc0587c: 61 29 00 04 ori r9,r9,4 <== NOT EXECUTED ffc05880: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05884: 41 9e 00 10 beq- cr7,ffc05894 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); ffc05888: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc0588c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05890: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05894: 7e c0 01 24 mtmsr r22 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { ffc05898: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED ffc0589c: 7f 9c 00 00 cmpw cr7,r28,r0 <== NOT EXECUTED ffc058a0: 40 be 00 0c bne+ cr7,ffc058ac <== NOT EXECUTED dropped++; ffc058a4: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc058a8: 48 00 00 40 b ffc058e8 <== NOT EXECUTED } else { tty->rawInBuf.theBuf[newTail] = c; ffc058ac: 81 3f 00 58 lwz r9,88(r31) <== NOT EXECUTED ffc058b0: 7f 49 e1 ae stbx r26,r9,r28 <== NOT EXECUTED tty->rawInBuf.Tail = newTail; /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { ffc058b4: 80 1f 00 e4 lwz r0,228(r31) <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; ffc058b8: 93 9f 00 60 stw r28,96(r31) <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { ffc058bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc058c0: 40 9e 00 28 bne- cr7,ffc058e8 <== NOT EXECUTED ffc058c4: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED ffc058c8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc058cc: 41 9e 00 1c beq- cr7,ffc058e8 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc058d0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc058d4: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED ffc058d8: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED ffc058dc: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc058e0: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc058e4: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; ffc058e8: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED ffc058ec: 3b 7b ff ff addi r27,r27,-1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { ffc058f0: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc058f4: 40 9e fd e4 bne+ cr7,ffc056d8 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; ffc058f8: 80 1f 00 78 lwz r0,120(r31) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); ffc058fc: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; ffc05900: 7c 00 f2 14 add r0,r0,r30 <== NOT EXECUTED ffc05904: 90 1f 00 78 stw r0,120(r31) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); ffc05908: 48 00 25 e9 bl ffc07ef0 <== NOT EXECUTED return dropped; ffc0590c: 48 00 00 08 b ffc05914 <== NOT EXECUTED ffc05910: 3b c0 00 00 li r30,0 <== NOT EXECUTED } ffc05914: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc05918: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0591c: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED ffc05920: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05924: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc05928: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc0592c: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc05930: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc05934: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc05938: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc0593c: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc05940: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc05944: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc05948: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc0594c: 4e 80 00 20 blr <== NOT EXECUTED ffc052a0 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { ffc052a0: 7c 08 02 a6 mflr r0 ffc052a4: 94 21 ff f8 stwu r1,-8(r1) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { ffc052a8: 3c e0 00 00 lis r7,0 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { ffc052ac: 90 01 00 0c stw r0,12(r1) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { ffc052b0: 80 07 27 14 lwz r0,10004(r7) ffc052b4: 38 e7 27 14 addi r7,r7,10004 ffc052b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc052bc: 40 be 00 28 bne+ cr7,ffc052e4 sc = rtems_semaphore_create ( ffc052c0: 3c 60 54 52 lis r3,21586 ffc052c4: 60 63 6d 69 ori r3,r3,28009 ffc052c8: 38 80 00 01 li r4,1 ffc052cc: 38 a0 00 54 li r5,84 ffc052d0: 38 c0 00 00 li r6,0 ffc052d4: 48 00 28 09 bl ffc07adc rtems_build_name ('T', 'R', 'm', 'i'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) ffc052d8: 2f 83 00 00 cmpwi cr7,r3,0 ffc052dc: 41 be 00 08 beq+ cr7,ffc052e4 <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); ffc052e0: 48 00 32 f5 bl ffc085d4 <== NOT EXECUTED } } ffc052e4: 80 01 00 0c lwz r0,12(r1) ffc052e8: 38 21 00 08 addi r1,r1,8 ffc052ec: 7c 08 03 a6 mtlr r0 ffc052f0: 4e 80 00 20 blr ffc066d4 : } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc066d4: 94 21 ff e0 stwu r1,-32(r1) ffc066d8: 7c 08 02 a6 mflr r0 struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc066dc: 38 80 00 00 li r4,0 } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc066e0: 90 01 00 24 stw r0,36(r1) rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; ffc066e4: 38 00 00 00 li r0,0 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc066e8: 38 a0 00 00 li r5,0 rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc066ec: 81 23 00 00 lwz r9,0(r3) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc066f0: 93 e1 00 1c stw r31,28(r1) rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; ffc066f4: 90 03 00 0c stw r0,12(r3) rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc066f8: 83 e9 00 38 lwz r31,56(r9) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc066fc: 93 c1 00 18 stw r30,24(r1) ffc06700: 7c 7e 1b 78 mr r30,r3 struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06704: 80 7f 00 18 lwz r3,24(r31) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06708: 93 81 00 10 stw r28,16(r1) ffc0670c: 93 a1 00 14 stw r29,20(r1) ffc06710: 93 61 00 0c stw r27,12(r1) rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; ffc06714: 83 9e 00 08 lwz r28,8(r30) rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06718: 48 00 16 95 bl ffc07dac if (sc != RTEMS_SUCCESSFUL) { ffc0671c: 7c 7d 1b 79 mr. r29,r3 ffc06720: 40 82 03 9c bne- ffc06abc <== NEVER TAKEN args->ioctl_return = sc; return sc; } switch (args->command) { ffc06724: 80 1e 00 04 lwz r0,4(r30) ffc06728: 2f 80 00 04 cmpwi cr7,r0,4 ffc0672c: 41 9e 02 c8 beq- cr7,ffc069f4 <== NEVER TAKEN ffc06730: 2b 80 00 04 cmplwi cr7,r0,4 ffc06734: 41 9d 00 20 bgt- cr7,ffc06754 <== NEVER TAKEN ffc06738: 2f 80 00 02 cmpwi cr7,r0,2 ffc0673c: 41 9e 00 a0 beq- cr7,ffc067dc ffc06740: 2b 80 00 02 cmplwi cr7,r0,2 ffc06744: 41 9d 02 90 bgt- cr7,ffc069d4 ffc06748: 2f 80 00 01 cmpwi cr7,r0,1 ffc0674c: 40 be 00 44 bne+ cr7,ffc06790 <== NEVER TAKEN ffc06750: 48 00 00 78 b ffc067c8 ffc06754: 3d 20 40 04 lis r9,16388 <== NOT EXECUTED ffc06758: 61 29 66 7f ori r9,r9,26239 <== NOT EXECUTED ffc0675c: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc06760: 41 9e 03 24 beq- cr7,ffc06a84 <== NOT EXECUTED ffc06764: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED ffc06768: 41 9d 00 10 bgt- cr7,ffc06778 <== NOT EXECUTED ffc0676c: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc06770: 40 be 00 20 bne+ cr7,ffc06790 <== NOT EXECUTED ffc06774: 48 00 02 6c b ffc069e0 <== NOT EXECUTED ffc06778: 6c 09 40 04 xoris r9,r0,16388 <== NOT EXECUTED ffc0677c: 2f 89 74 1a cmpwi cr7,r9,29722 <== NOT EXECUTED ffc06780: 41 9e 02 f8 beq- cr7,ffc06a78 <== NOT EXECUTED ffc06784: 6c 09 80 04 xoris r9,r0,32772 <== NOT EXECUTED ffc06788: 2f 89 74 1b cmpwi cr7,r9,29723 <== NOT EXECUTED ffc0678c: 41 9e 02 7c beq- cr7,ffc06a08 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { ffc06790: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06794: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06798: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED ffc0679c: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc067a0: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc067a4: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc067a8: 3b a0 00 0a li r29,10 <== NOT EXECUTED ffc067ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc067b0: 41 9e 03 04 beq- cr7,ffc06ab4 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); ffc067b4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc067b8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc067bc: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc067c0: 4e 80 04 21 bctrl <== NOT EXECUTED ffc067c4: 48 00 02 ac b ffc06a70 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; ffc067c8: 80 7e 00 08 lwz r3,8(r30) ffc067cc: 38 9f 00 30 addi r4,r31,48 ffc067d0: 38 a0 00 24 li r5,36 ffc067d4: 48 00 a9 fd bl ffc111d0 break; ffc067d8: 48 00 02 dc b ffc06ab4 case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; ffc067dc: 80 9e 00 08 lwz r4,8(r30) ffc067e0: 38 7f 00 30 addi r3,r31,48 ffc067e4: 38 a0 00 24 li r5,36 ffc067e8: 48 00 a9 e9 bl ffc111d0 /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && ffc067ec: 80 1f 00 b8 lwz r0,184(r31) ffc067f0: 70 09 02 00 andi. r9,r0,512 ffc067f4: 41 82 00 78 beq- ffc0686c ffc067f8: 80 1f 00 30 lwz r0,48(r31) ffc067fc: 70 09 04 00 andi. r9,r0,1024 ffc06800: 40 82 00 6c bne- ffc0686c <== ALWAYS TAKEN !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); ffc06804: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED ffc06808: 38 00 fd ef li r0,-529 <== NOT EXECUTED ffc0680c: 7d 20 00 38 and r0,r9,r0 <== NOT EXECUTED ffc06810: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { ffc06814: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06818: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc0681c: 41 82 00 50 beq- ffc0686c <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc06820: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED ffc06824: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc06828: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED ffc0682c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc06830: 81 3f 00 94 lwz r9,148(r31) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; ffc06834: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc06838: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; ffc0683c: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED ffc06840: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc06844: 41 be 00 24 beq+ cr7,ffc06868 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); ffc06848: 81 3f 00 84 lwz r9,132(r31) <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, ffc0684c: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc06850: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc06854: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc06858: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc0685c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06860: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06864: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc06868: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && ffc0686c: 80 1f 00 b8 lwz r0,184(r31) ffc06870: 70 09 04 00 andi. r9,r0,1024 ffc06874: 41 82 00 28 beq- ffc0689c <== ALWAYS TAKEN ffc06878: 80 1f 00 30 lwz r0,48(r31) <== NOT EXECUTED ffc0687c: 70 09 10 00 andi. r9,r0,4096 <== NOT EXECUTED ffc06880: 40 82 00 1c bne- ffc0689c <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); ffc06884: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06888: 54 00 05 a8 rlwinm r0,r0,0,22,20 <== NOT EXECUTED ffc0688c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); ffc06890: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06894: 54 00 07 fa rlwinm r0,r0,0,31,29 <== NOT EXECUTED ffc06898: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && ffc0689c: 80 1f 00 b8 lwz r0,184(r31) ffc068a0: 70 09 01 00 andi. r9,r0,256 ffc068a4: 41 82 00 4c beq- ffc068f0 <== ALWAYS TAKEN ffc068a8: 80 1f 00 38 lwz r0,56(r31) <== NOT EXECUTED ffc068ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc068b0: 41 9c 00 40 blt- cr7,ffc068f0 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); ffc068b4: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc068b8: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc068bc: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && ffc068c0: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc068c4: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc068c8: 41 82 00 1c beq- ffc068e4 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { ffc068cc: 80 1f 00 b0 lwz r0,176(r31) <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && ffc068d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc068d4: 41 9e 00 10 beq- cr7,ffc068e4 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); ffc068d8: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc068dc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc068e0: 4e 80 04 21 bctrl <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); ffc068e4: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc068e8: 54 00 07 b8 rlwinm r0,r0,0,30,28 <== NOT EXECUTED ffc068ec: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { ffc068f0: 80 1f 00 38 lwz r0,56(r31) ffc068f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc068f8: 40 bc 00 10 bge+ cr7,ffc06908 <== ALWAYS TAKEN tty->flow_ctrl |= FL_MDRTS; ffc068fc: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06900: 60 00 01 00 ori r0,r0,256 <== NOT EXECUTED ffc06904: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { ffc06908: 80 1f 00 30 lwz r0,48(r31) ffc0690c: 70 09 10 00 andi. r9,r0,4096 ffc06910: 41 82 00 10 beq- ffc06920 <== ALWAYS TAKEN tty->flow_ctrl |= FL_MDXOF; ffc06914: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06918: 60 00 04 00 ori r0,r0,1024 <== NOT EXECUTED ffc0691c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { ffc06920: 80 1f 00 30 lwz r0,48(r31) ffc06924: 70 09 04 00 andi. r9,r0,1024 ffc06928: 41 82 00 10 beq- ffc06938 <== NEVER TAKEN tty->flow_ctrl |= FL_MDXON; ffc0692c: 80 1f 00 b8 lwz r0,184(r31) ffc06930: 60 00 02 00 ori r0,r0,512 ffc06934: 90 1f 00 b8 stw r0,184(r31) tty->termios = *(struct termios *)args->buffer; /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { ffc06938: 83 9f 00 3c lwz r28,60(r31) ffc0693c: 73 9c 00 02 andi. r28,r28,2 ffc06940: 41 82 00 0c beq- ffc0694c <== NEVER TAKEN tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc06944: 38 00 00 00 li r0,0 ffc06948: 48 00 00 54 b ffc0699c tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; ffc0694c: 8b 7f 00 46 lbz r27,70(r31) <== NOT EXECUTED ffc06950: 48 00 0d 01 bl ffc07650 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc06954: 39 20 00 0a li r9,10 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc06958: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc0695c: 7f 63 d9 d6 mullw r27,r3,r27 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc06960: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc06964: 7f 7b 4b 96 divwu r27,r27,r9 <== NOT EXECUTED ffc06968: 89 3f 00 47 lbz r9,71(r31) <== NOT EXECUTED ffc0696c: 93 7f 00 54 stw r27,84(r31) <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc06970: 41 9e 00 24 beq- cr7,ffc06994 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) ffc06974: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc06978: 93 9f 00 6c stw r28,108(r31) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; ffc0697c: 93 7f 00 70 stw r27,112(r31) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) ffc06980: 41 9e 00 0c beq- cr7,ffc0698c <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc06984: 93 9f 00 74 stw r28,116(r31) <== NOT EXECUTED ffc06988: 48 00 00 2c b ffc069b4 <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; ffc0698c: 93 7f 00 74 stw r27,116(r31) <== NOT EXECUTED ffc06990: 48 00 00 24 b ffc069b4 <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { ffc06994: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06998: 41 9e 00 14 beq- cr7,ffc069ac <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc0699c: 90 1f 00 74 stw r0,116(r31) else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc069a0: 90 1f 00 6c stw r0,108(r31) tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; ffc069a4: 90 1f 00 70 stw r0,112(r31) ffc069a8: 48 00 00 0c b ffc069b4 tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; ffc069ac: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc069b0: 90 1f 00 6c stw r0,108(r31) <== NOT EXECUTED } } } if (tty->device.setAttributes) ffc069b4: 80 1f 00 a8 lwz r0,168(r31) ffc069b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc069bc: 41 9e 00 f8 beq- cr7,ffc06ab4 <== NEVER TAKEN (*tty->device.setAttributes)(tty->minor, &tty->termios); ffc069c0: 80 7f 00 10 lwz r3,16(r31) ffc069c4: 38 9f 00 30 addi r4,r31,48 ffc069c8: 7c 09 03 a6 mtctr r0 ffc069cc: 4e 80 04 21 bctrl ffc069d0: 48 00 00 e4 b ffc06ab4 break; case RTEMS_IO_TCDRAIN: drainOutput (tty); ffc069d4: 7f e3 fb 78 mr r3,r31 ffc069d8: 4b ff f8 a1 bl ffc06278 break; ffc069dc: 48 00 00 d8 b ffc06ab4 case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; ffc069e0: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc069e4: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED ffc069e8: 91 3f 00 d4 stw r9,212(r31) <== NOT EXECUTED ffc069ec: 91 5f 00 d8 stw r10,216(r31) <== NOT EXECUTED break; ffc069f0: 48 00 00 c4 b ffc06ab4 <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; ffc069f4: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc069f8: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED ffc069fc: 91 3f 00 dc stw r9,220(r31) <== NOT EXECUTED ffc06a00: 91 5f 00 e0 stw r10,224(r31) <== NOT EXECUTED break; ffc06a04: 48 00 00 b0 b ffc06ab4 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { ffc06a08: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06a0c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06a10: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED ffc06a14: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc06a18: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc06a1c: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc06a20: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06a24: 41 9e 00 14 beq- cr7,ffc06a38 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); ffc06a28: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06a2c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06a30: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06a34: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); ffc06a38: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06a3c: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc06a40: 39 6b 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); ffc06a44: 81 29 00 00 lwz r9,0(r9) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06a48: 55 20 28 34 rlwinm r0,r9,5,0,26 <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); ffc06a4c: 91 3f 00 cc stw r9,204(r31) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06a50: 7c 0b 00 2e lwzx r0,r11,r0 <== NOT EXECUTED */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); tty->t_sc = NULL; /* ensure that no more valid data */ ffc06a54: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc06a58: 91 7f 00 d0 stw r11,208(r31) <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06a5c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06a60: 41 9e 00 54 beq- cr7,ffc06ab4 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); ffc06a64: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06a68: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06a6c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06a70: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc06a74: 48 00 00 40 b ffc06ab4 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; ffc06a78: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED ffc06a7c: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06a80: 48 00 00 30 b ffc06ab0 <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; ffc06a84: 81 3f 00 60 lwz r9,96(r31) <== NOT EXECUTED ffc06a88: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED if ( rawnc < 0 ) ffc06a8c: 7c 00 48 51 subf. r0,r0,r9 <== NOT EXECUTED ffc06a90: 40 a0 00 0c bge+ ffc06a9c <== NOT EXECUTED rawnc += tty->rawInBuf.Size; ffc06a94: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc06a98: 7c 00 4a 14 add r0,r0,r9 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; ffc06a9c: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED ffc06aa0: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED ffc06aa4: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED ffc06aa8: 7d 6b 50 50 subf r11,r11,r10 <== NOT EXECUTED ffc06aac: 7c 0b 02 14 add r0,r11,r0 <== NOT EXECUTED ffc06ab0: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); ffc06ab4: 80 7f 00 18 lwz r3,24(r31) ffc06ab8: 48 00 14 39 bl ffc07ef0 args->ioctl_return = sc; return sc; } ffc06abc: 80 01 00 24 lwz r0,36(r1) ffc06ac0: 7f a3 eb 78 mr r3,r29 *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); args->ioctl_return = sc; ffc06ac4: 93 be 00 0c stw r29,12(r30) return sc; } ffc06ac8: 7c 08 03 a6 mtlr r0 ffc06acc: 83 61 00 0c lwz r27,12(r1) ffc06ad0: 83 81 00 10 lwz r28,16(r1) ffc06ad4: 83 a1 00 14 lwz r29,20(r1) ffc06ad8: 83 c1 00 18 lwz r30,24(r1) ffc06adc: 83 e1 00 1c lwz r31,28(r1) ffc06ae0: 38 21 00 20 addi r1,r1,32 ffc06ae4: 4e 80 00 20 blr ffc06cb8 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06cb8: 94 21 ff d0 stwu r1,-48(r1) struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06cbc: 3d 20 00 00 lis r9,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06cc0: 7c 08 02 a6 mflr r0 ffc06cc4: 93 61 00 1c stw r27,28(r1) ffc06cc8: 7c 7b 1b 78 mr r27,r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06ccc: 80 69 27 14 lwz r3,10004(r9) rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06cd0: 93 21 00 14 stw r25,20(r1) ffc06cd4: 7c b9 2b 78 mr r25,r5 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06cd8: 38 a0 00 00 li r5,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06cdc: 93 41 00 18 stw r26,24(r1) ffc06ce0: 7c 9a 23 78 mr r26,r4 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06ce4: 38 80 00 00 li r4,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06ce8: 93 01 00 10 stw r24,16(r1) ffc06cec: 7c d8 33 78 mr r24,r6 ffc06cf0: 93 a1 00 24 stw r29,36(r1) ffc06cf4: 90 01 00 34 stw r0,52(r1) ffc06cf8: 92 e1 00 0c stw r23,12(r1) ffc06cfc: 93 81 00 20 stw r28,32(r1) ffc06d00: 93 c1 00 28 stw r30,40(r1) ffc06d04: 93 e1 00 2c stw r31,44(r1) struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc06d08: 48 00 10 a5 bl ffc07dac RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc06d0c: 7c 7d 1b 79 mr. r29,r3 ffc06d10: 40 82 03 f8 bne- ffc07108 <== NEVER TAKEN return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { ffc06d14: 3d 20 00 00 lis r9,0 ffc06d18: 83 c9 27 1c lwz r30,10012(r9) ffc06d1c: 48 00 00 20 b ffc06d3c if ((tty->major == major) && (tty->minor == minor)) ffc06d20: 80 1e 00 0c lwz r0,12(r30) ffc06d24: 7f 80 d8 00 cmpw cr7,r0,r27 ffc06d28: 40 be 00 10 bne+ cr7,ffc06d38 ffc06d2c: 80 1e 00 10 lwz r0,16(r30) ffc06d30: 7f 80 d0 00 cmpw cr7,r0,r26 ffc06d34: 41 9e 03 44 beq- cr7,ffc07078 <== ALWAYS TAKEN */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { ffc06d38: 83 de 00 00 lwz r30,0(r30) ffc06d3c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc06d40: 40 9e ff e0 bne+ cr7,ffc06d20 ffc06d44: 48 00 03 fc b ffc07140 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; ffc06d48: 3f 80 00 00 lis r28,0 ffc06d4c: 3a fc 21 68 addi r23,r28,8552 ffc06d50: 80 17 00 04 lwz r0,4(r23) ffc06d54: 90 1e 00 64 stw r0,100(r30) tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); ffc06d58: 80 7e 00 64 lwz r3,100(r30) ffc06d5c: 4b ff d8 4d bl ffc045a8 if (tty->rawInBuf.theBuf == NULL) { ffc06d60: 2f 83 00 00 cmpwi cr7,r3,0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); ffc06d64: 90 7e 00 58 stw r3,88(r30) if (tty->rawInBuf.theBuf == NULL) { ffc06d68: 40 be 00 1c bne+ cr7,ffc06d84 <== ALWAYS TAKEN free(tty); ffc06d6c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06d70: 4b ff d4 d5 bl ffc04244 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); ffc06d74: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06d78: 80 69 27 14 lwz r3,10004(r9) <== NOT EXECUTED ffc06d7c: 3b a0 00 1a li r29,26 <== NOT EXECUTED ffc06d80: 48 00 03 84 b ffc07104 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; ffc06d84: 80 17 00 08 lwz r0,8(r23) ffc06d88: 90 1e 00 88 stw r0,136(r30) tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); ffc06d8c: 80 7e 00 88 lwz r3,136(r30) ffc06d90: 4b ff d8 19 bl ffc045a8 if (tty->rawOutBuf.theBuf == NULL) { ffc06d94: 2f 83 00 00 cmpwi cr7,r3,0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); ffc06d98: 90 7e 00 7c stw r3,124(r30) if (tty->rawOutBuf.theBuf == NULL) { ffc06d9c: 40 be 00 10 bne+ cr7,ffc06dac <== ALWAYS TAKEN free((void *)(tty->rawInBuf.theBuf)); ffc06da0: 80 7e 00 58 lwz r3,88(r30) <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); ffc06da4: 3b a0 00 1a li r29,26 <== NOT EXECUTED ffc06da8: 48 00 00 28 b ffc06dd0 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); ffc06dac: 80 7c 21 68 lwz r3,8552(r28) ffc06db0: 4b ff d7 f9 bl ffc045a8 if (tty->cbuf == NULL) { ffc06db4: 2f 83 00 00 cmpwi cr7,r3,0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); ffc06db8: 90 7e 00 1c stw r3,28(r30) if (tty->cbuf == NULL) { ffc06dbc: 40 be 00 24 bne+ cr7,ffc06de0 <== ALWAYS TAKEN free((void *)(tty->rawOutBuf.theBuf)); ffc06dc0: 80 7e 00 7c lwz r3,124(r30) <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); ffc06dc4: 3b a0 00 1a li r29,26 <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); ffc06dc8: 4b ff d4 7d bl ffc04244 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); ffc06dcc: 80 7e 00 58 lwz r3,88(r30) <== NOT EXECUTED ffc06dd0: 4b ff d4 75 bl ffc04244 <== NOT EXECUTED free(tty); ffc06dd4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06dd8: 4b ff d4 6d bl ffc04244 <== NOT EXECUTED ffc06ddc: 48 00 03 20 b ffc070fc <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc06de0: 3d 20 00 00 lis r9,0 ffc06de4: 81 29 27 1c lwz r9,10012(r9) return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; ffc06de8: 38 00 00 00 li r0,0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; ffc06dec: 90 1e 00 04 stw r0,4(r30) if (rtems_termios_ttyHead != NULL) ffc06df0: 2f 89 00 00 cmpwi cr7,r9,0 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; ffc06df4: 90 1e 00 d4 stw r0,212(r30) tty->tty_snd.sw_arg = NULL; ffc06df8: 90 1e 00 d8 stw r0,216(r30) tty->tty_rcv.sw_pfn = NULL; ffc06dfc: 90 1e 00 dc stw r0,220(r30) tty->tty_rcv.sw_arg = NULL; ffc06e00: 90 1e 00 e0 stw r0,224(r30) tty->tty_rcvwakeup = 0; ffc06e04: 90 1e 00 e4 stw r0,228(r30) /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc06e08: 91 3e 00 00 stw r9,0(r30) tty->back = NULL; if (rtems_termios_ttyHead != NULL) ffc06e0c: 41 9e 00 08 beq- cr7,ffc06e14 rtems_termios_ttyHead->back = tty; ffc06e10: 93 c9 00 04 stw r30,4(r9) rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) ffc06e14: 3d 20 00 00 lis r9,0 ffc06e18: 80 09 27 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; ffc06e1c: 3d 60 00 00 lis r11,0 ffc06e20: 93 eb 27 1c stw r31,10012(r11) if (rtems_termios_ttyTail == NULL) ffc06e24: 2f 80 00 00 cmpwi cr7,r0,0 ffc06e28: 40 be 00 08 bne+ cr7,ffc06e30 rtems_termios_ttyTail = tty; ffc06e2c: 93 e9 27 18 stw r31,10008(r9) tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06e30: 3f 80 00 00 lis r28,0 ffc06e34: 3b 9c 21 68 addi r28,r28,8552 ffc06e38: 88 7c 00 0c lbz r3,12(r28) ffc06e3c: 38 80 00 01 li r4,1 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; ffc06e40: 93 5f 00 10 stw r26,16(r31) tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06e44: 38 a0 00 54 li r5,84 ffc06e48: 64 63 54 52 oris r3,r3,21586 rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; tty->major = major; ffc06e4c: 93 7f 00 0c stw r27,12(r31) /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06e50: 60 63 69 00 ori r3,r3,26880 ffc06e54: 38 c0 00 00 li r6,0 ffc06e58: 38 ff 00 14 addi r7,r31,20 ffc06e5c: 48 00 0c 81 bl ffc07adc rtems_build_name ('T', 'R', 'i', c), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->isem); if (sc != RTEMS_SUCCESSFUL) ffc06e60: 2f 83 00 00 cmpwi cr7,r3,0 ffc06e64: 40 9e 02 94 bne- cr7,ffc070f8 <== NEVER TAKEN rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( ffc06e68: 88 7c 00 0c lbz r3,12(r28) ffc06e6c: 38 80 00 01 li r4,1 ffc06e70: 38 a0 00 54 li r5,84 ffc06e74: 64 63 54 52 oris r3,r3,21586 ffc06e78: 60 63 6f 00 ori r3,r3,28416 ffc06e7c: 38 c0 00 00 li r6,0 ffc06e80: 38 ff 00 18 addi r7,r31,24 ffc06e84: 48 00 0c 59 bl ffc07adc rtems_build_name ('T', 'R', 'o', c), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->osem); if (sc != RTEMS_SUCCESSFUL) ffc06e88: 2f 83 00 00 cmpwi cr7,r3,0 ffc06e8c: 40 9e 02 6c bne- cr7,ffc070f8 <== NEVER TAKEN rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( ffc06e90: 88 7c 00 0c lbz r3,12(r28) ffc06e94: 38 80 00 00 li r4,0 ffc06e98: 38 a0 00 20 li r5,32 ffc06e9c: 64 63 54 52 oris r3,r3,21586 ffc06ea0: 60 63 78 00 ori r3,r3,30720 ffc06ea4: 38 c0 00 00 li r6,0 ffc06ea8: 38 ff 00 8c addi r7,r31,140 ffc06eac: 48 00 0c 31 bl ffc07adc rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) ffc06eb0: 7c 60 1b 79 mr. r0,r3 ffc06eb4: 40 82 02 44 bne- ffc070f8 <== NEVER TAKEN tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; ffc06eb8: 81 18 00 00 lwz r8,0(r24) ffc06ebc: 81 58 00 04 lwz r10,4(r24) ffc06ec0: 81 78 00 08 lwz r11,8(r24) ffc06ec4: 81 38 00 0c lwz r9,12(r24) ffc06ec8: 91 1f 00 98 stw r8,152(r31) ffc06ecc: 91 5f 00 9c stw r10,156(r31) ffc06ed0: 91 7f 00 a0 stw r11,160(r31) ffc06ed4: 91 3f 00 a4 stw r9,164(r31) ffc06ed8: 81 38 00 1c lwz r9,28(r24) ffc06edc: 81 18 00 10 lwz r8,16(r24) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc06ee0: 2f 89 00 02 cmpwi cr7,r9,2 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; ffc06ee4: 81 58 00 14 lwz r10,20(r24) ffc06ee8: 81 78 00 18 lwz r11,24(r24) RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; ffc06eec: 90 1f 00 94 stw r0,148(r31) /* * Set callbacks */ tty->device = *callbacks; ffc06ef0: 91 1f 00 a8 stw r8,168(r31) ffc06ef4: 91 5f 00 ac stw r10,172(r31) ffc06ef8: 91 7f 00 b0 stw r11,176(r31) ffc06efc: 91 3f 00 b4 stw r9,180(r31) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc06f00: 40 be 00 5c bne+ cr7,ffc06f5c <== ALWAYS TAKEN sc = rtems_task_create ( ffc06f04: 88 7c 00 0c lbz r3,12(r28) <== NOT EXECUTED ffc06f08: 38 80 00 0a li r4,10 <== NOT EXECUTED ffc06f0c: 38 a0 04 00 li r5,1024 <== NOT EXECUTED ffc06f10: 64 63 54 78 oris r3,r3,21624 <== NOT EXECUTED ffc06f14: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED ffc06f18: 38 c0 05 00 li r6,1280 <== NOT EXECUTED ffc06f1c: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc06f20: 39 1f 00 c8 addi r8,r31,200 <== NOT EXECUTED ffc06f24: 48 00 10 95 bl ffc07fb8 <== NOT EXECUTED TERMIOS_TXTASK_STACKSIZE, RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR, RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL, &tty->txTaskId); if (sc != RTEMS_SUCCESSFUL) ffc06f28: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06f2c: 40 9e 01 cc bne- cr7,ffc070f8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( ffc06f30: 88 7c 00 0c lbz r3,12(r28) <== NOT EXECUTED ffc06f34: 38 80 00 09 li r4,9 <== NOT EXECUTED ffc06f38: 38 a0 04 00 li r5,1024 <== NOT EXECUTED ffc06f3c: 64 63 52 78 oris r3,r3,21112 <== NOT EXECUTED ffc06f40: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED ffc06f44: 38 c0 05 00 li r6,1280 <== NOT EXECUTED ffc06f48: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc06f4c: 39 1f 00 c4 addi r8,r31,196 <== NOT EXECUTED ffc06f50: 48 00 10 69 bl ffc07fb8 <== NOT EXECUTED TERMIOS_RXTASK_STACKSIZE, RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR, RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL, &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) ffc06f54: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06f58: 40 9e 01 a0 bne- cr7,ffc070f8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || ffc06f5c: 80 1f 00 a0 lwz r0,160(r31) ffc06f60: 2f 80 00 00 cmpwi cr7,r0,0 ffc06f64: 41 9e 00 10 beq- cr7,ffc06f74 <== NEVER TAKEN (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ ffc06f68: 80 1f 00 b4 lwz r0,180(r31) ffc06f6c: 2f 80 00 02 cmpwi cr7,r0,2 ffc06f70: 40 be 00 30 bne+ cr7,ffc06fa0 <== ALWAYS TAKEN sc = rtems_semaphore_create ( ffc06f74: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06f78: 88 69 21 74 lbz r3,8564(r9) <== NOT EXECUTED ffc06f7c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc06f80: 38 a0 00 24 li r5,36 <== NOT EXECUTED ffc06f84: 64 63 54 52 oris r3,r3,21586 <== NOT EXECUTED ffc06f88: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc06f8c: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc06f90: 38 ff 00 68 addi r7,r31,104 <== NOT EXECUTED ffc06f94: 48 00 0b 49 bl ffc07adc <== NOT EXECUTED rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) ffc06f98: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06f9c: 40 9e 01 5c bne- cr7,ffc070f8 <== NOT EXECUTED tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; ffc06fa0: 39 60 00 7f li r11,127 ffc06fa4: 99 7f 00 43 stb r11,67(r31) tty->termios.c_cc[VKILL] = '\025'; ffc06fa8: 39 60 00 15 li r11,21 tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; ffc06fac: 38 00 00 00 li r0,0 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; ffc06fb0: 99 7f 00 44 stb r11,68(r31) tty->termios.c_cc[VEOF] = '\004'; ffc06fb4: 39 60 00 04 li r11,4 tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; ffc06fb8: 39 20 00 03 li r9,3 tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; ffc06fbc: 99 7f 00 45 stb r11,69(r31) tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; ffc06fc0: 39 60 00 11 li r11,17 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; ffc06fc4: 39 00 25 02 li r8,9474 tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; ffc06fc8: 99 7f 00 49 stb r11,73(r31) tty->termios.c_cc[VSTOP] = '\023'; ffc06fcc: 39 60 00 13 li r11,19 ffc06fd0: 99 7f 00 4a stb r11,74(r31) tty->termios.c_cc[VSUSP] = '\032'; ffc06fd4: 39 60 00 1a li r11,26 ffc06fd8: 99 7f 00 4b stb r11,75(r31) tty->termios.c_cc[VREPRINT] = '\022'; ffc06fdc: 39 60 00 12 li r11,18 tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; ffc06fe0: 98 1f 00 51 stb r0,81(r31) tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; ffc06fe4: 99 7f 00 4d stb r11,77(r31) tty->termios.c_cc[VDISCARD] = '\017'; ffc06fe8: 39 60 00 0f li r11,15 tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; ffc06fec: 98 1f 00 4c stb r0,76(r31) tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; ffc06ff0: 38 00 00 00 li r0,0 ffc06ff4: 90 1f 00 b8 stw r0,184(r31) tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; ffc06ff8: 99 7f 00 4e stb r11,78(r31) tty->termios.c_cc[VWERASE] = '\027'; ffc06ffc: 39 60 00 17 li r11,23 tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; ffc07000: 99 3f 00 41 stb r9,65(r31) tty->termios.c_cc[VQUIT] = '\034'; ffc07004: 39 20 00 1c li r9,28 tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; ffc07008: 99 7f 00 4f stb r11,79(r31) tty->termios.c_cc[VLNEXT] = '\026'; ffc0700c: 39 60 00 16 li r11,22 tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; ffc07010: 99 3f 00 42 stb r9,66(r31) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc07014: 3d 20 00 00 lis r9,0 ffc07018: 39 29 21 68 addi r9,r9,8552 /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc0701c: 80 1f 00 64 lwz r0,100(r31) tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; ffc07020: 99 7f 00 50 stb r11,80(r31) /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc07024: 54 00 f8 7e rlwinm r0,r0,31,1,31 tty->highwater = tty->rawInBuf.Size * 3/4; ffc07028: 81 5f 00 64 lwz r10,100(r31) /* * Bump name characer */ if (c++ == 'z') ffc0702c: 89 69 00 0c lbz r11,12(r9) tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; ffc07030: 1d 4a 00 03 mulli r10,r10,3 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; ffc07034: 91 1f 00 30 stw r8,48(r31) tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; ffc07038: 55 4a f0 be rlwinm r10,r10,30,2,31 /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc0703c: 90 1f 00 bc stw r0,188(r31) tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc07040: 2f 8b 00 7a cmpwi cr7,r11,122 tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; ffc07044: 91 5f 00 c0 stw r10,192(r31) /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; ffc07048: 39 40 18 05 li r10,6149 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc0704c: 39 6b 00 01 addi r11,r11,1 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; ffc07050: 91 5f 00 34 stw r10,52(r31) tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; ffc07054: 39 40 08 bd li r10,2237 ffc07058: 91 5f 00 38 stw r10,56(r31) tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; ffc0705c: 39 40 00 00 li r10,0 ffc07060: 61 4a 82 3b ori r10,r10,33339 ffc07064: 91 5f 00 3c stw r10,60(r31) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc07068: 99 69 00 0c stb r11,12(r9) ffc0706c: 40 be 00 0c bne+ cr7,ffc07078 <== ALWAYS TAKEN c = 'a'; ffc07070: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc07074: 98 09 00 0c stb r0,12(r9) <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { ffc07078: 81 3e 00 08 lwz r9,8(r30) */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; ffc0707c: 81 79 00 00 lwz r11,0(r25) if (!tty->refcount++) { ffc07080: 2f 89 00 00 cmpwi cr7,r9,0 ffc07084: 39 29 00 01 addi r9,r9,1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; ffc07088: 93 cb 00 38 stw r30,56(r11) if (!tty->refcount++) { ffc0708c: 91 3e 00 08 stw r9,8(r30) ffc07090: 40 9e 00 6c bne- cr7,ffc070fc if (tty->device.firstOpen) ffc07094: 80 1e 00 98 lwz r0,152(r30) ffc07098: 2f 80 00 00 cmpwi cr7,r0,0 ffc0709c: 41 9e 00 18 beq- cr7,ffc070b4 <== ALWAYS TAKEN (*tty->device.firstOpen)(major, minor, arg); ffc070a0: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc070a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc070a8: 7f 44 d3 78 mr r4,r26 <== NOT EXECUTED ffc070ac: 7f 25 cb 78 mr r5,r25 <== NOT EXECUTED ffc070b0: 4e 80 04 21 bctrl <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc070b4: 80 1e 00 b4 lwz r0,180(r30) ffc070b8: 2f 80 00 02 cmpwi cr7,r0,2 ffc070bc: 40 be 00 40 bne+ cr7,ffc070fc <== ALWAYS TAKEN sc = rtems_task_start(tty->rxTaskId, ffc070c0: 80 7e 00 c4 lwz r3,196(r30) <== NOT EXECUTED ffc070c4: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc070c8: 38 84 71 ec addi r4,r4,29164 <== NOT EXECUTED ffc070cc: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc070d0: 48 00 12 21 bl ffc082f0 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) ffc070d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc070d8: 40 9e 00 20 bne- cr7,ffc070f8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, ffc070dc: 80 7e 00 c8 lwz r3,200(r30) <== NOT EXECUTED ffc070e0: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc070e4: 38 84 71 60 addi r4,r4,29024 <== NOT EXECUTED ffc070e8: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc070ec: 48 00 12 05 bl ffc082f0 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) ffc070f0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc070f4: 41 be 00 08 beq+ cr7,ffc070fc <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc070f8: 48 00 14 dd bl ffc085d4 <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); ffc070fc: 3d 20 00 00 lis r9,0 ffc07100: 80 69 27 14 lwz r3,10004(r9) ffc07104: 48 00 0d ed bl ffc07ef0 return RTEMS_SUCCESSFUL; } ffc07108: 80 01 00 34 lwz r0,52(r1) ffc0710c: 7f a3 eb 78 mr r3,r29 ffc07110: 82 e1 00 0c lwz r23,12(r1) ffc07114: 7c 08 03 a6 mtlr r0 ffc07118: 83 01 00 10 lwz r24,16(r1) ffc0711c: 83 21 00 14 lwz r25,20(r1) ffc07120: 83 41 00 18 lwz r26,24(r1) ffc07124: 83 61 00 1c lwz r27,28(r1) ffc07128: 83 81 00 20 lwz r28,32(r1) ffc0712c: 83 a1 00 24 lwz r29,36(r1) ffc07130: 83 c1 00 28 lwz r30,40(r1) ffc07134: 83 e1 00 2c lwz r31,44(r1) ffc07138: 38 21 00 30 addi r1,r1,48 ffc0713c: 4e 80 00 20 blr static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); ffc07140: 38 60 00 01 li r3,1 ffc07144: 38 80 00 e8 li r4,232 ffc07148: 48 00 5e 25 bl ffc0cf6c if (tty == NULL) { ffc0714c: 2f 83 00 00 cmpwi cr7,r3,0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); ffc07150: 7c 7e 1b 78 mr r30,r3 ffc07154: 7c 7f 1b 78 mr r31,r3 if (tty == NULL) { ffc07158: 40 9e fb f0 bne+ cr7,ffc06d48 <== ALWAYS TAKEN ffc0715c: 4b ff fc 18 b ffc06d74 <== NOT EXECUTED ffc05950 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { ffc05950: 94 21 ff d8 stwu r1,-40(r1) ffc05954: 7c 08 02 a6 mflr r0 ffc05958: 90 01 00 2c stw r0,44(r1) ffc0595c: 7c 60 1b 78 mr r0,r3 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc05960: 81 25 00 b4 lwz r9,180(r5) * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { ffc05964: 93 81 00 18 stw r28,24(r1) const unsigned char *buf = _buf; ffc05968: 7c 7c 1b 78 mr r28,r3 unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc0596c: 2f 89 00 00 cmpwi cr7,r9,0 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { ffc05970: 93 a1 00 1c stw r29,28(r1) ffc05974: 7c 9d 23 78 mr r29,r4 ffc05978: 93 e1 00 24 stw r31,36(r1) ffc0597c: 7c bf 2b 78 mr r31,r5 ffc05980: 93 21 00 0c stw r25,12(r1) ffc05984: 93 41 00 10 stw r26,16(r1) ffc05988: 93 61 00 14 stw r27,20(r1) ffc0598c: 93 c1 00 20 stw r30,32(r1) const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc05990: 40 be 00 20 bne+ cr7,ffc059b0 <== NEVER TAKEN (*tty->device.write)(tty->minor, (void *)buf, len); ffc05994: 7c 04 03 78 mr r4,r0 ffc05998: 80 1f 00 a4 lwz r0,164(r31) ffc0599c: 80 65 00 10 lwz r3,16(r5) ffc059a0: 7f a5 eb 78 mr r5,r29 ffc059a4: 7c 09 03 a6 mtctr r0 ffc059a8: 4e 80 04 21 bctrl return; ffc059ac: 48 00 00 f0 b ffc05a9c } newHead = tty->rawOutBuf.Head; ffc059b0: 83 c5 00 80 lwz r30,128(r5) <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; ffc059b4: 3b 20 00 02 li r25,2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; ffc059b8: 3b 40 00 01 li r26,1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { ffc059bc: 48 00 00 d8 b ffc05a94 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; ffc059c0: 80 1f 00 88 lwz r0,136(r31) <== NOT EXECUTED ffc059c4: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc059c8: 7d 3e 03 96 divwu r9,r30,r0 <== NOT EXECUTED ffc059cc: 7c 09 01 d6 mullw r0,r9,r0 <== NOT EXECUTED ffc059d0: 7f c0 f0 50 subf r30,r0,r30 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc059d4: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED ffc059d8: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc059dc: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED ffc059e0: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { ffc059e4: 48 00 00 38 b ffc05a1c <== NOT EXECUTED tty->rawOutBufState = rob_wait; ffc059e8: 93 3f 00 94 stw r25,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc059ec: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, ffc059f0: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED ffc059f4: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc059f8: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc059fc: 48 00 23 b1 bl ffc07dac <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc05a00: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc05a04: 41 be 00 08 beq+ cr7,ffc05a0c <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc05a08: 48 00 2b cd bl ffc085d4 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05a0c: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED ffc05a10: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05a14: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED ffc05a18: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { ffc05a1c: 80 1f 00 84 lwz r0,132(r31) <== NOT EXECUTED ffc05a20: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc05a24: 41 9e ff c4 beq+ cr7,ffc059e8 <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; ffc05a28: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05a2c: 89 7c 00 00 lbz r11,0(r28) <== NOT EXECUTED ffc05a30: 81 3f 00 7c lwz r9,124(r31) <== NOT EXECUTED ffc05a34: 7d 69 01 ae stbx r11,r9,r0 <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { ffc05a38: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; ffc05a3c: 93 df 00 80 stw r30,128(r31) <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { ffc05a40: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05a44: 40 9e 00 44 bne- cr7,ffc05a88 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { ffc05a48: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05a4c: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED ffc05a50: 40 a2 00 28 bne+ ffc05a78 <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); ffc05a54: 81 3f 00 84 lwz r9,132(r31) <== NOT EXECUTED tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { (*tty->device.write)(tty->minor, ffc05a58: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05a5c: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc05a60: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05a64: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc05a68: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05a6c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05a70: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05a74: 48 00 00 10 b ffc05a84 <== NOT EXECUTED (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; ffc05a78: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05a7c: 60 00 00 20 ori r0,r0,32 <== NOT EXECUTED ffc05a80: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; ffc05a84: 93 5f 00 94 stw r26,148(r31) <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; ffc05a88: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05a8c: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; ffc05a90: 3b bd ff ff addi r29,r29,-1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { ffc05a94: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc05a98: 40 9e ff 28 bne+ cr7,ffc059c0 <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } ffc05a9c: 80 01 00 2c lwz r0,44(r1) ffc05aa0: 83 21 00 0c lwz r25,12(r1) ffc05aa4: 7c 08 03 a6 mtlr r0 ffc05aa8: 83 41 00 10 lwz r26,16(r1) ffc05aac: 83 61 00 14 lwz r27,20(r1) ffc05ab0: 83 81 00 18 lwz r28,24(r1) ffc05ab4: 83 a1 00 1c lwz r29,28(r1) ffc05ab8: 83 c1 00 20 lwz r30,32(r1) ffc05abc: 83 e1 00 24 lwz r31,36(r1) ffc05ac0: 38 21 00 28 addi r1,r1,40 ffc05ac4: 4e 80 00 20 blr ffc06314 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06314: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc06318: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc0631c: 38 80 00 00 li r4,0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06320: 90 01 00 34 stw r0,52(r1) <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06324: 38 a0 00 00 li r5,0 <== NOT EXECUTED rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06328: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc0632c: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06330: 83 e9 00 38 lwz r31,56(r9) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06334: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED ffc06338: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc0633c: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06340: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED ffc06344: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED ffc06348: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED ffc0634c: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED ffc06350: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED ffc06354: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED ffc06358: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; ffc0635c: 83 9e 00 14 lwz r28,20(r30) <== NOT EXECUTED char *buffer = args->buffer; ffc06360: 83 7e 00 10 lwz r27,16(r30) <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06364: 48 00 1a 49 bl ffc07dac <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc06368: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc0636c: 40 82 03 30 bne- ffc0669c <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { ffc06370: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06374: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06378: 39 29 27 f0 addi r9,r9,10224 <== NOT EXECUTED ffc0637c: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc06380: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc06384: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED ffc06388: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0638c: 41 9e 00 1c beq- cr7,ffc063a8 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); ffc06390: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc06394: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06398: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0639c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc063a0: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc063a4: 48 00 02 e8 b ffc0668c <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { ffc063a8: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc063ac: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc063b0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc063b4: 40 be 02 ac bne+ cr7,ffc06660 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL ffc063b8: 81 3f 00 a0 lwz r9,160(r31) <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; ffc063bc: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED if (tty->device.pollRead != NULL ffc063c0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; ffc063c4: 93 bf 00 20 stw r29,32(r31) <== NOT EXECUTED tty->read_start_column = tty->column; ffc063c8: 90 1f 00 2c stw r0,44(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; ffc063cc: 93 bf 00 24 stw r29,36(r31) <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL ffc063d0: 41 9e 00 fc beq- cr7,ffc064cc <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) ffc063d4: 80 1f 00 b4 lwz r0,180(r31) <== NOT EXECUTED ffc063d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc063dc: 40 be 00 f0 bne+ cr7,ffc064cc <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { ffc063e0: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc063e4: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc063e8: 41 82 00 40 beq- ffc06428 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); ffc063ec: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc063f0: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc063f4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc063f8: 4e 80 04 21 bctrl <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc063fc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { ffc06400: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc06404: 54 63 06 3e clrlwi r3,r3,24 <== NOT EXECUTED int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { ffc06408: 40 a0 00 10 bge+ ffc06418 <== NOT EXECUTED rtems_task_wake_after (1); ffc0640c: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06410: 48 00 1f c5 bl ffc083d4 <== NOT EXECUTED ffc06414: 4b ff ff d8 b ffc063ec <== NOT EXECUTED } else { if (siproc (n, tty)) ffc06418: 4b ff fc e1 bl ffc060f8 <== NOT EXECUTED ffc0641c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06420: 41 9e ff cc beq+ cr7,ffc063ec <== NOT EXECUTED ffc06424: 48 00 02 3c b ffc06660 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); ffc06428: 48 00 12 41 bl ffc07668 <== NOT EXECUTED ffc0642c: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); ffc06430: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc06434: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06438: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0643c: 4e 80 04 21 bctrl <== NOT EXECUTED if (n < 0) { ffc06440: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc06444: 40 80 00 54 bge- ffc06498 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { ffc06448: 89 3f 00 47 lbz r9,71(r31) <== NOT EXECUTED ffc0644c: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc06450: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06454: 41 9e 00 1c beq- cr7,ffc06470 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { ffc06458: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0645c: 41 9e 00 30 beq- cr7,ffc0648c <== NOT EXECUTED ffc06460: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc06464: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06468: 41 be 00 24 beq+ cr7,ffc0648c <== NOT EXECUTED ffc0646c: 48 00 00 0c b ffc06478 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) ffc06470: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06474: 41 9e 01 ec beq- cr7,ffc06660 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); ffc06478: 48 00 11 f1 bl ffc07668 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { ffc0647c: 80 1f 00 54 lwz r0,84(r31) <== NOT EXECUTED ffc06480: 7c 7a 18 50 subf r3,r26,r3 <== NOT EXECUTED ffc06484: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc06488: 41 9d 01 d8 bgt- cr7,ffc06660 <== NOT EXECUTED break; } } rtems_task_wake_after (1); ffc0648c: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06490: 48 00 1f 45 bl ffc083d4 <== NOT EXECUTED ffc06494: 4b ff ff 9c b ffc06430 <== NOT EXECUTED } else { siproc (n, tty); ffc06498: 54 63 06 3e clrlwi r3,r3,24 <== NOT EXECUTED ffc0649c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc064a0: 4b ff fc 59 bl ffc060f8 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc064a4: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc064a8: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc064ac: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc064b0: 40 9c 01 b0 bge- cr7,ffc06660 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) ffc064b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc064b8: 41 be ff 78 beq- cr7,ffc06430 <== NOT EXECUTED ffc064bc: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc064c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc064c4: 41 9e ff 6c beq+ cr7,ffc06430 <== NOT EXECUTED ffc064c8: 4b ff ff 60 b ffc06428 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc064cc: 3e e0 00 00 lis r23,0 <== NOT EXECUTED * Fill the input buffer from the raw input queue */ static rtems_status_code fillBufferQueue (struct rtems_termios_tty *tty) { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; ffc064d0: 83 5f 00 74 lwz r26,116(r31) <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc064d4: 3a f7 21 68 addi r23,r23,8552 <== NOT EXECUTED if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, ffc064d8: 3b 1f 00 49 addi r24,r31,73 <== NOT EXECUTED ffc064dc: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc064e0: 48 00 01 1c b ffc065fc <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; ffc064e4: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc064e8: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED ffc064ec: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; ffc064f0: 81 1f 00 58 lwz r8,88(r31) <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; ffc064f4: 7c 09 5b 96 divwu r0,r9,r11 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; tty->rawInBuf.Head = newHead; if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) ffc064f8: 81 5f 00 bc lwz r10,188(r31) <== NOT EXECUTED while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; ffc064fc: 7c 00 59 d6 mullw r0,r0,r11 <== NOT EXECUTED ffc06500: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; ffc06504: 7f 48 00 ae lbzx r26,r8,r0 <== NOT EXECUTED tty->rawInBuf.Head = newHead; ffc06508: 90 1f 00 5c stw r0,92(r31) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) ffc0650c: 81 7f 00 60 lwz r11,96(r31) <== NOT EXECUTED ffc06510: 81 1f 00 64 lwz r8,100(r31) <== NOT EXECUTED ffc06514: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc06518: 7d 68 5a 14 add r11,r8,r11 <== NOT EXECUTED ffc0651c: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED ffc06520: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED ffc06524: 7d 2b 49 d6 mullw r9,r11,r9 <== NOT EXECUTED ffc06528: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED ffc0652c: 7f 80 50 40 cmplw cr7,r0,r10 <== NOT EXECUTED ffc06530: 40 9c 00 84 bge- cr7,ffc065b4 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; ffc06534: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06538: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc0653c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) ffc06540: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06544: 70 00 02 02 andi. r0,r0,514 <== NOT EXECUTED ffc06548: 2f 80 02 02 cmpwi cr7,r0,514 <== NOT EXECUTED ffc0654c: 40 be 00 38 bne+ cr7,ffc06584 <== NOT EXECUTED ffc06550: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED ffc06554: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06558: 41 9e 00 10 beq- cr7,ffc06568 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { ffc0655c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) ffc06560: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc06564: 41 82 00 20 beq- ffc06584 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, ffc06568: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc0656c: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc06570: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06574: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc06578: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0657c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06580: 48 00 00 34 b ffc065b4 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { ffc06584: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06588: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc0658c: 41 82 00 28 beq- ffc065b4 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc06590: 80 1f 00 b0 lwz r0,176(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { tty->flow_ctrl &= ~FL_IRTSOFF; ffc06594: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc06598: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { tty->flow_ctrl &= ~FL_IRTSOFF; ffc0659c: 55 29 07 b8 rlwinm r9,r9,0,30,28 <== NOT EXECUTED ffc065a0: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc065a4: 41 9e 00 10 beq- cr7,ffc065b4 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); ffc065a8: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc065ac: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc065b0: 4e 80 04 21 bctrl <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { ffc065b4: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc065b8: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc065bc: 41 82 00 1c beq- ffc065d8 <== NOT EXECUTED if (siproc (c, tty)) ffc065c0: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc065c4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc065c8: 4b ff fb 31 bl ffc060f8 <== NOT EXECUTED ffc065cc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc065d0: 40 9e 00 24 bne- cr7,ffc065f4 <== NOT EXECUTED ffc065d4: 48 00 00 24 b ffc065f8 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); ffc065d8: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc065dc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc065e0: 4b ff fb 19 bl ffc060f8 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc065e4: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc065e8: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc065ec: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc065f0: 41 9c 00 08 blt- cr7,ffc065f8 <== NOT EXECUTED ffc065f4: 3b 20 00 00 li r25,0 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; ffc065f8: 83 5f 00 70 lwz r26,112(r31) <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc065fc: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc06600: 80 1f 00 60 lwz r0,96(r31) <== NOT EXECUTED ffc06604: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06608: 41 9e 00 18 beq- cr7,ffc06620 <== NOT EXECUTED ffc0660c: 81 77 00 00 lwz r11,0(r23) <== NOT EXECUTED ffc06610: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06614: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc06618: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0661c: 41 9c fe c8 blt+ cr7,ffc064e4 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { ffc06620: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED ffc06624: 41 be 00 3c beq+ cr7,ffc06660 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, ffc06628: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED ffc0662c: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc06630: 80 9f 00 6c lwz r4,108(r31) <== NOT EXECUTED ffc06634: 48 00 17 79 bl ffc07dac <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) ffc06638: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0663c: 41 9e ff c0 beq+ cr7,ffc065fc <== NOT EXECUTED ffc06640: 48 00 00 20 b ffc06660 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; ffc06644: 81 5f 00 1c lwz r10,28(r31) <== NOT EXECUTED count--; ffc06648: 3b 9c ff ff addi r28,r28,-1 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; ffc0664c: 7c 0a 48 ae lbzx r0,r10,r9 <== NOT EXECUTED ffc06650: 98 1b 00 00 stb r0,0(r27) <== NOT EXECUTED ffc06654: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED ffc06658: 91 7f 00 24 stw r11,36(r31) <== NOT EXECUTED ffc0665c: 48 00 00 0c b ffc06668 <== NOT EXECUTED ffc06660: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED ffc06664: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { ffc06668: 42 40 00 18 bdz- ffc06680 <== NOT EXECUTED ffc0666c: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc06670: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; ffc06674: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { ffc06678: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0667c: 41 9c ff c8 blt+ cr7,ffc06644 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; ffc06680: 80 1e 00 14 lwz r0,20(r30) <== NOT EXECUTED ffc06684: 7f 9c 00 50 subf r28,r28,r0 <== NOT EXECUTED ffc06688: 93 9e 00 1c stw r28,28(r30) <== NOT EXECUTED tty->tty_rcvwakeup = 0; ffc0668c: 38 00 00 00 li r0,0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); ffc06690: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; ffc06694: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED rtems_semaphore_release (tty->isem); ffc06698: 48 00 18 59 bl ffc07ef0 <== NOT EXECUTED return sc; } ffc0669c: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc066a0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc066a4: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc066a8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc066ac: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc066b0: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc066b4: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc066b8: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc066bc: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc066c0: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc066c4: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc066c8: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc066cc: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc066d0: 4e 80 00 20 blr <== NOT EXECUTED ffc05338 : * in task-driven mode, this function is called in Tx task context * in interrupt-driven mode, this function is called in TxIRQ context */ int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) { ffc05338: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc0533c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05340: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) ffc05344: 80 03 00 b8 lwz r0,184(r3) <== NOT EXECUTED * in task-driven mode, this function is called in Tx task context * in interrupt-driven mode, this function is called in TxIRQ context */ int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) { ffc05348: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc0534c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) ffc05350: 70 00 04 03 andi. r0,r0,1027 <== NOT EXECUTED * in task-driven mode, this function is called in Tx task context * in interrupt-driven mode, this function is called in TxIRQ context */ int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) { ffc05354: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) ffc05358: 2f 80 04 01 cmpwi cr7,r0,1025 <== NOT EXECUTED * in task-driven mode, this function is called in Tx task context * in interrupt-driven mode, this function is called in TxIRQ context */ int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) { ffc0535c: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) ffc05360: 40 be 00 48 bne+ cr7,ffc053a8 <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, ffc05364: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED ffc05368: 38 9f 00 4a addi r4,r31,74 <== NOT EXECUTED ffc0536c: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05370: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED ffc05374: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05378: 4e 80 04 21 bctrl <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0537c: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc05380: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc05384: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc05388: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc0538c: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc05390: 81 7f 00 b8 lwz r11,184(r31) <== NOT EXECUTED /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc05394: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc05398: 61 6b 00 02 ori r11,r11,2 <== NOT EXECUTED /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc0539c: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc053a0: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED rtems_interrupt_enable(level); ffc053a4: 48 00 00 54 b ffc053f8 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) ffc053a8: 80 03 00 b8 lwz r0,184(r3) <== NOT EXECUTED ffc053ac: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED ffc053b0: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc053b4: 40 be 00 50 bne+ cr7,ffc05404 <== NOT EXECUTED * FIXME: this .write call will generate another * dequeue callback. This will advance the "Tail" in the data * buffer, although the corresponding data is not yet out! * Therefore the dequeue "length" should be reduced by 1 */ (*tty->device.write)(tty->minor, ffc053b8: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED ffc053bc: 38 9f 00 49 addi r4,r31,73 <== NOT EXECUTED ffc053c0: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc053c4: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED ffc053c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc053cc: 4e 80 04 21 bctrl <== NOT EXECUTED ffc053d0: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc053d4: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc053d8: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc053dc: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc053e0: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc053e4: 81 7f 00 b8 lwz r11,184(r31) <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc053e8: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc053ec: 55 6b 07 fa rlwinm r11,r11,0,31,29 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc053f0: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc053f4: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc053f8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc053fc: 3b c0 00 01 li r30,1 <== NOT EXECUTED ffc05400: 48 00 01 4c b ffc0554c <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { ffc05404: 81 23 00 80 lwz r9,128(r3) <== NOT EXECUTED ffc05408: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED ffc0540c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc05410: 40 be 00 20 bne+ cr7,ffc05430 <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { ffc05414: 80 03 00 94 lwz r0,148(r3) <== NOT EXECUTED ffc05418: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc0541c: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc05420: 40 be 01 2c bne+ cr7,ffc0554c <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); ffc05424: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED ffc05428: 48 00 2a c9 bl ffc07ef0 <== NOT EXECUTED ffc0542c: 48 00 01 20 b ffc0554c <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05430: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc05434: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc05438: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc0543c: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; ffc05440: 39 20 00 00 li r9,0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; ffc05444: 83 a3 00 90 lwz r29,144(r3) <== NOT EXECUTED tty->t_dqlen = 0; ffc05448: 91 23 00 90 stw r9,144(r3) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0544c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; ffc05450: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED ffc05454: 81 23 00 88 lwz r9,136(r3) <== NOT EXECUTED ffc05458: 7c 1d 02 14 add r0,r29,r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { ffc0545c: 81 63 00 94 lwz r11,148(r3) <== NOT EXECUTED rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; ffc05460: 7f a0 4b 96 divwu r29,r0,r9 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { ffc05464: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; ffc05468: 7f bd 49 d6 mullw r29,r29,r9 <== NOT EXECUTED ffc0546c: 7f bd 00 50 subf r29,r29,r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; ffc05470: 93 a3 00 84 stw r29,132(r3) <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { ffc05474: 40 be 00 0c bne+ cr7,ffc05480 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); ffc05478: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED ffc0547c: 48 00 2a 75 bl ffc07ef0 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { ffc05480: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05484: 7f 9d 00 00 cmpw cr7,r29,r0 <== NOT EXECUTED ffc05488: 40 be 00 30 bne+ cr7,ffc054b8 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { ffc0548c: 80 1f 00 d4 lwz r0,212(r31) <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; ffc05490: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc05494: 91 3f 00 94 stw r9,148(r31) <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { ffc05498: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc0549c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc054a0: 41 9e 00 a8 beq- cr7,ffc05548 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); ffc054a4: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED ffc054a8: 80 9f 00 d8 lwz r4,216(r31) <== NOT EXECUTED ffc054ac: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc054b0: 4e 80 04 21 bctrl <== NOT EXECUTED ffc054b4: 48 00 00 94 b ffc05548 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) ffc054b8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc054bc: 70 00 02 10 andi. r0,r0,528 <== NOT EXECUTED ffc054c0: 2f 80 02 10 cmpwi cr7,r0,528 <== NOT EXECUTED ffc054c4: 40 be 00 34 bne+ cr7,ffc054f8 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc054c8: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc054cc: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc054d0: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc054d4: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; ffc054d8: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED ffc054dc: 61 29 00 20 ori r9,r9,32 <== NOT EXECUTED ffc054e0: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ ffc054e4: 39 20 00 01 li r9,1 <== NOT EXECUTED ffc054e8: 91 3f 00 94 stw r9,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc054ec: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc054f0: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc054f4: 48 00 00 54 b ffc05548 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) ffc054f8: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc054fc: 7f 9d 00 40 cmplw cr7,r29,r0 <== NOT EXECUTED ffc05500: 40 9d 00 0c ble- cr7,ffc0550c <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; ffc05504: 83 df 00 88 lwz r30,136(r31) <== NOT EXECUTED ffc05508: 48 00 00 08 b ffc05510 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; ffc0550c: 83 df 00 80 lwz r30,128(r31) <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { ffc05510: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; ffc05514: 7f dd f0 50 subf r30,r29,r30 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { ffc05518: 70 09 06 00 andi. r9,r0,1536 <== NOT EXECUTED ffc0551c: 41 82 00 08 beq- ffc05524 <== NOT EXECUTED ffc05520: 3b c0 00 01 li r30,1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ ffc05524: 38 00 00 01 li r0,1 <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05528: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ ffc0552c: 90 1f 00 94 stw r0,148(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05530: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc05534: 7c 84 ea 14 add r4,r4,r29 <== NOT EXECUTED ffc05538: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc0553c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05540: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05544: 4e 80 04 21 bctrl <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ ffc05548: 93 bf 00 84 stw r29,132(r31) <== NOT EXECUTED } return nToSend; } ffc0554c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc05550: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05554: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc05558: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0555c: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc05560: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc05564: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc05568: 4e 80 00 20 blr <== NOT EXECUTED ffc071ec : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { ffc071ec: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc071f0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc071f4: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc071f8: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | ffc071fc: 3b a1 00 0c addi r29,r1,12 <== NOT EXECUTED /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { ffc07200: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( ffc07204: 3b c1 00 08 addi r30,r1,8 <== NOT EXECUTED /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { ffc07208: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc0720c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | ffc07210: 7f a6 eb 78 mr r6,r29 <== NOT EXECUTED ffc07214: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc07218: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0721c: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc07220: 48 00 04 c9 bl ffc076e8 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { ffc07224: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc07228: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0722c: 41 a2 00 18 beq+ ffc07244 <== NOT EXECUTED tty->rxTaskId = 0; ffc07230: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc07234: 90 1f 00 c4 stw r0,196(r31) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); ffc07238: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0723c: 48 00 0e f5 bl ffc08130 <== NOT EXECUTED ffc07240: 4b ff ff d0 b ffc07210 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); ffc07244: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc07248: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc0724c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc07250: 4e 80 04 21 bctrl <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( ffc07254: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { ffc07258: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); ffc0725c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( ffc07260: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc07264: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { ffc07268: 41 be ff a8 beq- cr7,ffc07210 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; ffc0726c: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( ffc07270: 4b ff e3 85 bl ffc055f4 <== NOT EXECUTED ffc07274: 4b ff ff 9c b ffc07210 <== NOT EXECUTED ffc05310 : * signal receive interrupt to rx daemon * NOTE: This routine runs in the context of the * device receive interrupt handler. */ void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty) { ffc05310: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05314: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); ffc05318: 38 80 00 02 li r4,2 <== NOT EXECUTED * signal receive interrupt to rx daemon * NOTE: This routine runs in the context of the * device receive interrupt handler. */ void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty) { ffc0531c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); ffc05320: 80 63 00 c4 lwz r3,196(r3) <== NOT EXECUTED ffc05324: 48 00 25 69 bl ffc0788c <== NOT EXECUTED } ffc05328: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0532c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc05330: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05334: 4e 80 00 20 blr <== NOT EXECUTED ffc07160 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { ffc07160: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc07164: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc07168: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc0716c: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc07170: 3b bd 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) { ffc07174: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc07178: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | ffc0717c: 3b c1 00 08 addi r30,r1,8 <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { ffc07180: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc07184: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | ffc07188: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc0718c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc07190: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc07194: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc07198: 48 00 05 51 bl ffc076e8 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { ffc0719c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { rtems_termios_linesw[tty->t_line].l_start(tty); ffc071a0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED rtems_event_receive((TERMIOS_TX_START_EVENT | TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { ffc071a4: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc071a8: 41 a2 00 18 beq+ ffc071c0 <== NOT EXECUTED tty->txTaskId = 0; ffc071ac: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc071b0: 90 1f 00 c8 stw r0,200(r31) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); ffc071b4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc071b8: 48 00 0f 79 bl ffc08130 <== NOT EXECUTED ffc071bc: 4b ff ff cc b ffc07188 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc071c0: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED ffc071c4: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc071c8: 7d 3d 4a 14 add r9,r29,r9 <== NOT EXECUTED ffc071cc: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc071d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc071d4: 41 9e 00 0c beq- cr7,ffc071e0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); ffc071d8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc071dc: 4e 80 04 21 bctrl <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); ffc071e0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc071e4: 4b ff e1 55 bl ffc05338 <== NOT EXECUTED ffc071e8: 4b ff ff a0 b ffc07188 <== NOT EXECUTED ffc0617c : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc0617c: 94 21 ff e0 stwu r1,-32(r1) ffc06180: 7c 08 02 a6 mflr r0 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06184: 38 80 00 00 li r4,0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc06188: 90 01 00 24 stw r0,36(r1) rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc0618c: 38 a0 00 00 li r5,0 rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06190: 81 23 00 00 lwz r9,0(r3) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc06194: 93 e1 00 1c stw r31,28(r1) rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06198: 83 e9 00 38 lwz r31,56(r9) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc0619c: 93 c1 00 18 stw r30,24(r1) ffc061a0: 7c 7e 1b 78 mr r30,r3 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc061a4: 80 7f 00 18 lwz r3,24(r31) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc061a8: 93 a1 00 14 stw r29,20(r1) ffc061ac: 93 61 00 0c stw r27,12(r1) ffc061b0: 93 81 00 10 stw r28,16(r1) rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc061b4: 48 00 1b f9 bl ffc07dac if (sc != RTEMS_SUCCESSFUL) ffc061b8: 7c 7d 1b 79 mr. r29,r3 ffc061bc: 40 82 00 94 bne- ffc06250 <== NEVER TAKEN return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { ffc061c0: 80 1f 00 cc lwz r0,204(r31) ffc061c4: 3d 20 00 00 lis r9,0 ffc061c8: 39 29 27 f0 addi r9,r9,10224 ffc061cc: 54 00 28 34 rlwinm r0,r0,5,0,26 ffc061d0: 7d 29 02 14 add r9,r9,r0 ffc061d4: 80 09 00 0c lwz r0,12(r9) ffc061d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc061dc: 41 9e 00 1c beq- cr7,ffc061f8 <== ALWAYS TAKEN sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); ffc061e0: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc061e4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc061e8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc061ec: 4e 80 04 21 bctrl <== NOT EXECUTED ffc061f0: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc061f4: 48 00 00 54 b ffc06248 <== NOT EXECUTED rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { ffc061f8: 80 1f 00 34 lwz r0,52(r31) ffc061fc: 80 9e 00 14 lwz r4,20(r30) ffc06200: 70 09 00 01 andi. r9,r0,1 ffc06204: 80 7e 00 10 lwz r3,16(r30) ffc06208: 41 82 00 30 beq- ffc06238 <== NEVER TAKEN uint32_t count = args->count; ffc0620c: 7c 9b 23 78 mr r27,r4 char *buffer = args->buffer; ffc06210: 7c 7c 1b 78 mr r28,r3 while (count--) ffc06214: 48 00 00 10 b ffc06224 oproc (*buffer++, tty); ffc06218: 88 7c 00 00 lbz r3,0(r28) ffc0621c: 3b 9c 00 01 addi r28,r28,1 ffc06220: 4b ff f8 a9 bl ffc05ac8 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) ffc06224: 2f 9b 00 00 cmpwi cr7,r27,0 oproc (*buffer++, tty); ffc06228: 7f e4 fb 78 mr r4,r31 ffc0622c: 3b 7b ff ff addi r27,r27,-1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) ffc06230: 40 9e ff e8 bne+ cr7,ffc06218 ffc06234: 48 00 00 0c b ffc06240 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); ffc06238: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc0623c: 4b ff f7 15 bl ffc05950 <== NOT EXECUTED args->bytes_moved = args->count; ffc06240: 80 1e 00 14 lwz r0,20(r30) ffc06244: 90 1e 00 1c stw r0,28(r30) } rtems_semaphore_release (tty->osem); ffc06248: 80 7f 00 18 lwz r3,24(r31) ffc0624c: 48 00 1c a5 bl ffc07ef0 return sc; } ffc06250: 80 01 00 24 lwz r0,36(r1) ffc06254: 7f a3 eb 78 mr r3,r29 ffc06258: 83 61 00 0c lwz r27,12(r1) ffc0625c: 7c 08 03 a6 mtlr r0 ffc06260: 83 81 00 10 lwz r28,16(r1) ffc06264: 83 a1 00 14 lwz r29,20(r1) ffc06268: 83 c1 00 18 lwz r30,24(r1) ffc0626c: 83 e1 00 1c lwz r31,28(r1) ffc06270: 38 21 00 20 addi r1,r1,32 ffc06274: 4e 80 00 20 blr ffc192a4 : */ rtems_status_code rtems_timer_cancel( rtems_id id ) { ffc192a4: 94 21 ff e8 stwu r1,-24(r1) ffc192a8: 7c 08 02 a6 mflr r0 ffc192ac: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) ffc192b0: 3c 60 00 00 lis r3,0 ffc192b4: 90 01 00 1c stw r0,28(r1) ffc192b8: 38 63 72 44 addi r3,r3,29252 ffc192bc: 38 a1 00 08 addi r5,r1,8 ffc192c0: 48 00 34 59 bl ffc1c718 <_Objects_Get> Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc192c4: 81 21 00 08 lwz r9,8(r1) ffc192c8: 38 00 00 04 li r0,4 ffc192cc: 2f 89 00 00 cmpwi cr7,r9,0 ffc192d0: 40 9e 00 20 bne- cr7,ffc192f0 case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) ffc192d4: 80 03 00 38 lwz r0,56(r3) ffc192d8: 2f 80 00 04 cmpwi cr7,r0,4 ffc192dc: 41 9e 00 0c beq- cr7,ffc192e8 <== NEVER TAKEN (void) _Watchdog_Remove( &the_timer->Ticker ); ffc192e0: 38 63 00 10 addi r3,r3,16 ffc192e4: 48 00 5a 65 bl ffc1ed48 <_Watchdog_Remove> _Thread_Enable_dispatch(); ffc192e8: 48 00 3f a9 bl ffc1d290 <_Thread_Enable_dispatch> ffc192ec: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc192f0: 7c 03 03 78 mr r3,r0 ffc192f4: 80 01 00 1c lwz r0,28(r1) ffc192f8: 38 21 00 18 addi r1,r1,24 ffc192fc: 7c 08 03 a6 mtlr r0 ffc19300: 4e 80 00 20 blr ffc19914 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19914: 94 21 ff c8 stwu r1,-56(r1) Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; ffc19918: 3d 20 00 00 lis r9,0 rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1991c: 7c 08 02 a6 mflr r0 ffc19920: 93 e1 00 34 stw r31,52(r1) Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; ffc19924: 83 e9 28 a4 lwz r31,10404(r9) rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19928: 93 41 00 20 stw r26,32(r1) ffc1992c: 7c da 33 78 mr r26,r6 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc19930: 2f 9f 00 00 cmpwi cr7,r31,0 rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19934: 93 81 00 28 stw r28,40(r1) ffc19938: 7c 9c 23 78 mr r28,r4 ffc1993c: 93 a1 00 2c stw r29,44(r1) ffc19940: 7c 7d 1b 78 mr r29,r3 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc19944: 38 60 00 0e li r3,14 rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19948: 93 c1 00 30 stw r30,48(r1) ffc1994c: 7c be 2b 78 mr r30,r5 ffc19950: 90 01 00 3c stw r0,60(r1) ffc19954: 93 01 00 18 stw r24,24(r1) ffc19958: 93 21 00 1c stw r25,28(r1) ffc1995c: 93 61 00 24 stw r27,36(r1) Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc19960: 41 9e 00 c8 beq- cr7,ffc19a28 return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) ffc19964: 3d 20 00 00 lis r9,0 ffc19968: 88 09 28 2c lbz r0,10284(r9) ffc1996c: 38 60 00 0b li r3,11 ffc19970: 2f 80 00 00 cmpwi cr7,r0,0 ffc19974: 41 9e 00 b4 beq- cr7,ffc19a28 <== NEVER TAKEN return RTEMS_NOT_DEFINED; if ( !routine ) ffc19978: 2f 85 00 00 cmpwi cr7,r5,0 ffc1997c: 38 60 00 09 li r3,9 ffc19980: 41 9e 00 a8 beq- cr7,ffc19a28 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) ffc19984: 7c 83 23 78 mr r3,r4 ffc19988: 4b ff c5 75 bl ffc15efc <_TOD_Validate> ffc1998c: 2f 83 00 00 cmpwi cr7,r3,0 ffc19990: 41 9e 00 94 beq- cr7,ffc19a24 return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); ffc19994: 7f 83 e3 78 mr r3,r28 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc19998: 3f 60 00 00 lis r27,0 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); ffc1999c: 4b ff c4 d5 bl ffc15e70 <_TOD_To_seconds> if ( seconds <= _TOD_Seconds_since_epoch() ) ffc199a0: 80 1b 28 44 lwz r0,10308(r27) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); ffc199a4: 7c 7c 1b 78 mr r28,r3 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc199a8: 7f 83 00 40 cmplw cr7,r3,r0 ffc199ac: 40 9d 00 78 ble- cr7,ffc19a24 ffc199b0: 3c 60 00 00 lis r3,0 ffc199b4: 38 63 72 44 addi r3,r3,29252 ffc199b8: 7f a4 eb 78 mr r4,r29 ffc199bc: 38 a1 00 08 addi r5,r1,8 ffc199c0: 48 00 2d 59 bl ffc1c718 <_Objects_Get> return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc199c4: 83 01 00 08 lwz r24,8(r1) ffc199c8: 7c 79 1b 78 mr r25,r3 ffc199cc: 2f 98 00 00 cmpwi cr7,r24,0 ffc199d0: 38 60 00 04 li r3,4 ffc199d4: 40 9e 00 54 bne- cr7,ffc19a28 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc199d8: 38 79 00 10 addi r3,r25,16 ffc199dc: 48 00 53 6d bl ffc1ed48 <_Watchdog_Remove> void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc199e0: 93 b9 00 30 stw r29,48(r25) the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; ffc199e4: 39 20 00 03 li r9,3 _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); ffc199e8: 80 1b 28 44 lwz r0,10308(r27) (*timer_server->schedule_operation)( timer_server, the_timer ); ffc199ec: 7f e3 fb 78 mr r3,r31 the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; ffc199f0: 91 39 00 38 stw r9,56(r25) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); (*timer_server->schedule_operation)( timer_server, the_timer ); ffc199f4: 7f 24 cb 78 mr r4,r25 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); ffc199f8: 7f 80 e0 50 subf r28,r0,r28 (*timer_server->schedule_operation)( timer_server, the_timer ); ffc199fc: 80 1f 00 04 lwz r0,4(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc19a00: 93 19 00 18 stw r24,24(r25) ffc19a04: 7c 09 03 a6 mtctr r0 the_watchdog->routine = routine; ffc19a08: 93 d9 00 2c stw r30,44(r25) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc19a0c: 93 59 00 34 stw r26,52(r25) case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); ffc19a10: 93 99 00 1c stw r28,28(r25) (*timer_server->schedule_operation)( timer_server, the_timer ); ffc19a14: 4e 80 04 21 bctrl _Thread_Enable_dispatch(); ffc19a18: 48 00 38 79 bl ffc1d290 <_Thread_Enable_dispatch> ffc19a1c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc19a20: 48 00 00 08 b ffc19a28 ffc19a24: 38 60 00 14 li r3,20 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc19a28: 80 01 00 3c lwz r0,60(r1) ffc19a2c: 83 01 00 18 lwz r24,24(r1) ffc19a30: 7c 08 03 a6 mtlr r0 ffc19a34: 83 21 00 1c lwz r25,28(r1) ffc19a38: 83 41 00 20 lwz r26,32(r1) ffc19a3c: 83 61 00 24 lwz r27,36(r1) ffc19a40: 83 81 00 28 lwz r28,40(r1) ffc19a44: 83 a1 00 2c lwz r29,44(r1) ffc19a48: 83 c1 00 30 lwz r30,48(r1) ffc19a4c: 83 e1 00 34 lwz r31,52(r1) ffc19a50: 38 21 00 38 addi r1,r1,56 ffc19a54: 4e 80 00 20 blr ffc0a2bc : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { ffc0a2bc: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0a2c0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a2c4: 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) ffc0a2c8: 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 ) { ffc0a2cc: 93 21 00 0c stw r25,12(r1) <== NOT EXECUTED ffc0a2d0: 7c 99 23 78 mr r25,r4 <== NOT EXECUTED ffc0a2d4: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc0a2d8: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc0a2dc: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc0a2e0: 7c bf 2b 78 mr r31,r5 <== NOT EXECUTED ffc0a2e4: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc0a2e8: 93 61 00 14 stw r27,20(r1) <== NOT EXECUTED ffc0a2ec: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED ffc0a2f0: 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) ffc0a2f4: 41 82 00 3c beq- ffc0a330 <== NOT EXECUTED { if (rtems_panic_in_progress++) ffc0a2f8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a2fc: 81 69 27 8c lwz r11,10124(r9) <== NOT EXECUTED ffc0a300: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc0a304: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc0a308: 91 69 27 8c stw r11,10124(r9) <== NOT EXECUTED ffc0a30c: 41 9e 00 14 beq- cr7,ffc0a320 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a310: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a314: 81 69 27 b4 lwz r11,10164(r9) <== NOT EXECUTED ffc0a318: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED ffc0a31c: 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) ffc0a320: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a324: 80 09 27 8c lwz r0,10124(r9) <== NOT EXECUTED ffc0a328: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0a32c: 41 9d 01 5c bgt- cr7,ffc0a488 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ ffc0a330: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a334: 81 29 27 24 lwz r9,10020(r9) <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; ffc0a338: 57 bc 01 00 rlwinm r28,r29,0,4,0 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0a33c: 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 */ ffc0a340: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc0a344: 48 00 ea c5 bl ffc18e08 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0a348: 77 a0 40 00 andis. r0,r29,16384 <== NOT EXECUTED ffc0a34c: 41 a2 00 0c beq+ ffc0a358 <== NOT EXECUTED local_errno = errno; ffc0a350: 48 00 e6 35 bl ffc18984 <__errno> <== NOT EXECUTED ffc0a354: 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); ffc0a358: 3f 60 00 00 lis r27,0 <== NOT EXECUTED ffc0a35c: 81 3b 27 24 lwz r9,10020(r27) <== NOT EXECUTED ffc0a360: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc0a364: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc0a368: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a36c: 48 01 4e 65 bl ffc1f1d0 <== NOT EXECUTED if (status) ffc0a370: 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); ffc0a374: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (status) ffc0a378: 41 be 00 30 beq+ cr7,ffc0a3a8 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); ffc0a37c: 81 3b 27 24 lwz r9,10020(r27) <== NOT EXECUTED ffc0a380: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a384: 83 89 00 0c lwz r28,12(r9) <== NOT EXECUTED ffc0a388: 4b ff ff 09 bl ffc0a290 <== NOT EXECUTED ffc0a38c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a390: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0a394: 38 84 86 f4 addi r4,r4,-30988 <== NOT EXECUTED ffc0a398: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a39c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a3a0: 48 00 ee ad bl ffc1924c <== NOT EXECUTED ffc0a3a4: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED if (local_errno) ffc0a3a8: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc0a3ac: 41 9e 00 68 beq- cr7,ffc0a414 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) ffc0a3b0: 40 9d 00 40 ble- cr7,ffc0a3f0 <== NOT EXECUTED ffc0a3b4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a3b8: 48 00 fe 25 bl ffc1a1dc <== NOT EXECUTED ffc0a3bc: 88 03 00 00 lbz r0,0(r3) <== NOT EXECUTED ffc0a3c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0a3c4: 41 be 00 2c beq+ cr7,ffc0a3f0 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); ffc0a3c8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a3cc: 81 29 27 24 lwz r9,10020(r9) <== NOT EXECUTED ffc0a3d0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a3d4: 83 89 00 0c lwz r28,12(r9) <== NOT EXECUTED ffc0a3d8: 48 00 fe 05 bl ffc1a1dc <== NOT EXECUTED ffc0a3dc: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a3e0: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0a3e4: 38 84 87 02 addi r4,r4,-30974 <== NOT EXECUTED ffc0a3e8: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a3ec: 48 00 00 1c b ffc0a408 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); ffc0a3f0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a3f4: 81 29 27 24 lwz r9,10020(r9) <== NOT EXECUTED ffc0a3f8: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a3fc: 38 84 87 0f addi r4,r4,-30961 <== NOT EXECUTED ffc0a400: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a404: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc0a408: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a40c: 48 00 ee 41 bl ffc1924c <== NOT EXECUTED ffc0a410: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); ffc0a414: 3f 80 00 00 lis r28,0 <== NOT EXECUTED ffc0a418: 81 3c 27 24 lwz r9,10020(r28) <== NOT EXECUTED ffc0a41c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a420: 38 84 8a 36 addi r4,r4,-30154 <== NOT EXECUTED ffc0a424: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a428: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a42c: 48 00 ee 21 bl ffc1924c <== NOT EXECUTED (void) fflush(stderr); ffc0a430: 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"); ffc0a434: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED (void) fflush(stderr); ffc0a438: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a43c: 48 00 e9 cd bl ffc18e08 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0a440: 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"); ffc0a444: 7c 7b fa 14 add r3,r27,r31 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0a448: 41 82 00 44 beq- ffc0a48c <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) ffc0a44c: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc0a450: 41 9e 00 20 beq- cr7,ffc0a470 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); ffc0a454: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a458: 38 84 87 23 addi r4,r4,-30941 <== NOT EXECUTED ffc0a45c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0a460: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a464: 48 00 00 e1 bl ffc0a544 <== NOT EXECUTED _exit(local_errno); ffc0a468: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a46c: 48 00 0e 5d bl ffc0b2c8 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); ffc0a470: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a474: 38 84 87 38 addi r4,r4,-30920 <== NOT EXECUTED ffc0a478: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0a47c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a480: 48 00 00 c5 bl ffc0a544 <== NOT EXECUTED abort(); ffc0a484: 48 00 e4 e5 bl ffc18968 <== NOT EXECUTED ffc0a488: 38 60 00 00 li r3,0 <== NOT EXECUTED } } return chars_written; } ffc0a48c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0a490: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc0a494: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a498: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc0a49c: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc0a4a0: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc0a4a4: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0a4a8: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0a4ac: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0a4b0: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0a4b4: 4e 80 00 20 blr <== NOT EXECUTED ffc04c3c : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc04c3c: 94 21 ff d8 stwu r1,-40(r1) ffc04c40: 7c 08 02 a6 mflr r0 ffc04c44: 93 01 00 08 stw r24,8(r1) unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc04c48: 3f 00 00 00 lis r24,0 ffc04c4c: 3b 18 26 a4 addi r24,r24,9892 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc04c50: 93 21 00 0c stw r25,12(r1) limit++; continue; } sign = 1; } if (!isdigit(c)) ffc04c54: 3f 20 00 00 lis r25,0 ffc04c58: 3b 39 26 a0 addi r25,r25,9888 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc04c5c: 93 81 00 18 stw r28,24(r1) ffc04c60: 3f 80 7f ff lis r28,32767 ffc04c64: 63 9c ff ff ori r28,r28,65535 ffc04c68: 90 01 00 2c stw r0,44(r1) ffc04c6c: 93 41 00 10 stw r26,16(r1) sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) ffc04c70: 3b 40 00 0a li r26,10 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc04c74: 93 61 00 14 stw r27,20(r1) ffc04c78: 7c 9b 23 78 mr r27,r4 ffc04c7c: 93 a1 00 1c stw r29,28(r1) ffc04c80: 3b a0 00 00 li r29,0 ffc04c84: 93 c1 00 20 stw r30,32(r1) ffc04c88: 7c 7e 1b 78 mr r30,r3 ffc04c8c: 93 e1 00 24 stw r31,36(r1) ffc04c90: 3b e0 00 00 li r31,0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc04c94: 81 3e 00 04 lwz r9,4(r30) ffc04c98: 38 09 ff ff addi r0,r9,-1 ffc04c9c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04ca0: 90 1e 00 04 stw r0,4(r30) ffc04ca4: 40 bc 00 14 bge+ cr7,ffc04cb8 <== ALWAYS TAKEN ffc04ca8: 80 78 00 00 lwz r3,0(r24) <== NOT EXECUTED ffc04cac: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc04cb0: 48 01 03 e1 bl ffc15090 <__srget_r> <== NOT EXECUTED ffc04cb4: 48 00 00 14 b ffc04cc8 <== NOT EXECUTED ffc04cb8: 81 3e 00 00 lwz r9,0(r30) ffc04cbc: 38 09 00 01 addi r0,r9,1 ffc04cc0: 88 69 00 00 lbz r3,0(r9) ffc04cc4: 90 1e 00 00 stw r0,0(r30) if (c == ':') ffc04cc8: 2f 03 00 3a cmpwi cr6,r3,58 ffc04ccc: 2f 9d 00 00 cmpwi cr7,r29,0 ffc04cd0: 41 9a 00 68 beq- cr6,ffc04d38 break; if (sign == 0) { ffc04cd4: 40 9e 00 1c bne- cr7,ffc04cf0 <== NEVER TAKEN if (c == '-') { ffc04cd8: 2f 83 00 2d cmpwi cr7,r3,45 sign = -1; limit++; continue; ffc04cdc: 3b a0 00 01 li r29,1 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { ffc04ce0: 40 be 00 10 bne+ cr7,ffc04cf0 <== ALWAYS TAKEN sign = -1; limit++; ffc04ce4: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED ffc04ce8: 3b a0 ff ff li r29,-1 <== NOT EXECUTED continue; ffc04cec: 4b ff ff a8 b ffc04c94 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) ffc04cf0: 81 39 00 00 lwz r9,0(r25) ffc04cf4: 7d 29 1a 14 add r9,r9,r3 ffc04cf8: 88 09 00 01 lbz r0,1(r9) ffc04cfc: 70 09 00 04 andi. r9,r0,4 ffc04d00: 41 82 00 4c beq- ffc04d4c <== NEVER TAKEN return 0; d = c - '0'; if ((i > (limit / 10)) ffc04d04: 7c 1c d3 96 divwu r0,r28,r26 ffc04d08: 7f 9f 00 40 cmplw cr7,r31,r0 ffc04d0c: 41 9d 00 40 bgt- cr7,ffc04d4c <== NEVER TAKEN ffc04d10: 7f 9f 00 00 cmpw cr7,r31,r0 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; ffc04d14: 38 63 ff d0 addi r3,r3,-48 if ((i > (limit / 10)) ffc04d18: 40 be 00 14 bne+ cr7,ffc04d2c <== ALWAYS TAKEN ffc04d1c: 1c 1f 00 0a mulli r0,r31,10 <== NOT EXECUTED ffc04d20: 7c 00 e0 50 subf r0,r0,r28 <== NOT EXECUTED ffc04d24: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc04d28: 41 9d 00 24 bgt- cr7,ffc04d4c <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; ffc04d2c: 1f ff 00 0a mulli r31,r31,10 ffc04d30: 7f e3 fa 14 add r31,r3,r31 ffc04d34: 4b ff ff 60 b ffc04c94 } if (sign == 0) ffc04d38: 41 9e 00 14 beq- cr7,ffc04d4c <== NEVER TAKEN return 0; *val = i * sign; ffc04d3c: 7f fd f9 d6 mullw r31,r29,r31 ffc04d40: 38 60 00 01 li r3,1 ffc04d44: 93 fb 00 00 stw r31,0(r27) return 1; ffc04d48: 48 00 00 08 b ffc04d50 ffc04d4c: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc04d50: 80 01 00 2c lwz r0,44(r1) ffc04d54: 83 01 00 08 lwz r24,8(r1) ffc04d58: 7c 08 03 a6 mtlr r0 ffc04d5c: 83 21 00 0c lwz r25,12(r1) ffc04d60: 83 41 00 10 lwz r26,16(r1) ffc04d64: 83 61 00 14 lwz r27,20(r1) ffc04d68: 83 81 00 18 lwz r28,24(r1) ffc04d6c: 83 a1 00 1c lwz r29,28(r1) ffc04d70: 83 c1 00 20 lwz r30,32(r1) ffc04d74: 83 e1 00 24 lwz r31,36(r1) ffc04d78: 38 21 00 28 addi r1,r1,40 ffc04d7c: 4e 80 00 20 blr ffc04d80 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { ffc04d80: 94 21 ff e0 stwu r1,-32(r1) ffc04d84: 7c 08 02 a6 mflr r0 ffc04d88: 90 01 00 24 stw r0,36(r1) int c; *name = *bufp; ffc04d8c: 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) { ffc04d90: 93 61 00 0c stw r27,12(r1) int c; *name = *bufp; for (;;) { c = getc(fp); ffc04d94: 3f 60 00 00 lis r27,0 ffc04d98: 3b 7b 26 a4 addi r27,r27,9892 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; ffc04d9c: 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) { ffc04da0: 93 81 00 10 stw r28,16(r1) ffc04da4: 7c fc 3b 78 mr r28,r7 ffc04da8: 93 a1 00 14 stw r29,20(r1) ffc04dac: 7c dd 33 78 mr r29,r6 ffc04db0: 93 c1 00 18 stw r30,24(r1) ffc04db4: 7c 7e 1b 78 mr r30,r3 ffc04db8: 93 e1 00 1c stw r31,28(r1) ffc04dbc: 7c bf 2b 78 mr r31,r5 int c; *name = *bufp; for (;;) { c = getc(fp); ffc04dc0: 81 3e 00 04 lwz r9,4(r30) ffc04dc4: 38 09 ff ff addi r0,r9,-1 ffc04dc8: 2f 80 00 00 cmpwi cr7,r0,0 ffc04dcc: 90 1e 00 04 stw r0,4(r30) ffc04dd0: 40 bc 00 14 bge+ cr7,ffc04de4 ffc04dd4: 80 7b 00 00 lwz r3,0(r27) ffc04dd8: 7f c4 f3 78 mr r4,r30 ffc04ddc: 48 01 02 b5 bl ffc15090 <__srget_r> ffc04de0: 48 00 00 14 b ffc04df4 ffc04de4: 81 3e 00 00 lwz r9,0(r30) ffc04de8: 38 09 00 01 addi r0,r9,1 ffc04dec: 88 69 00 00 lbz r3,0(r9) ffc04df0: 90 1e 00 00 stw r0,0(r30) if (c == ':') { ffc04df4: 2c 83 00 3a cmpwi cr1,r3,58 if (nlFlag) return 0; break; } if (c == '\n') { ffc04df8: 2f 03 00 0a cmpwi cr6,r3,10 if (!nlFlag) return 0; break; } if (c == EOF) ffc04dfc: 2f 83 ff ff cmpwi cr7,r3,-1 int c; *name = *bufp; for (;;) { c = getc(fp); if (c == ':') { ffc04e00: 40 a6 00 10 bne+ cr1,ffc04e10 if (nlFlag) ffc04e04: 2f 9c 00 00 cmpwi cr7,r28,0 ffc04e08: 41 be 00 4c beq+ cr7,ffc04e54 <== ALWAYS TAKEN ffc04e0c: 48 00 00 74 b ffc04e80 <== NOT EXECUTED return 0; break; } if (c == '\n') { ffc04e10: 40 ba 00 10 bne+ cr6,ffc04e20 if (!nlFlag) ffc04e14: 2f 9c 00 00 cmpwi cr7,r28,0 ffc04e18: 40 be 00 3c bne+ cr7,ffc04e54 <== ALWAYS TAKEN ffc04e1c: 48 00 00 64 b ffc04e80 <== NOT EXECUTED return 0; break; } if (c == EOF) ffc04e20: 41 9e 00 60 beq- cr7,ffc04e80 <== NEVER TAKEN return 0; if (*nleft < 2) ffc04e24: 80 1d 00 00 lwz r0,0(r29) ffc04e28: 2b 80 00 01 cmplwi cr7,r0,1 ffc04e2c: 40 9d 00 54 ble- cr7,ffc04e80 <== NEVER TAKEN return 0; **bufp = c; ffc04e30: 81 3f 00 00 lwz r9,0(r31) ffc04e34: 98 69 00 00 stb r3,0(r9) ++(*bufp); ffc04e38: 81 3f 00 00 lwz r9,0(r31) --(*nleft); ffc04e3c: 81 7d 00 00 lwz r11,0(r29) if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc04e40: 39 29 00 01 addi r9,r9,1 --(*nleft); ffc04e44: 38 0b ff ff addi r0,r11,-1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc04e48: 91 3f 00 00 stw r9,0(r31) --(*nleft); ffc04e4c: 90 1d 00 00 stw r0,0(r29) } ffc04e50: 4b ff ff 70 b ffc04dc0 **bufp = '\0'; ffc04e54: 81 3f 00 00 lwz r9,0(r31) ffc04e58: 38 00 00 00 li r0,0 ++(*bufp); --(*nleft); ffc04e5c: 38 60 00 01 li r3,1 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ffc04e60: 98 09 00 00 stb r0,0(r9) ++(*bufp); ffc04e64: 81 3f 00 00 lwz r9,0(r31) --(*nleft); ffc04e68: 81 7d 00 00 lwz r11,0(r29) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc04e6c: 39 29 00 01 addi r9,r9,1 --(*nleft); ffc04e70: 38 0b ff ff addi r0,r11,-1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc04e74: 91 3f 00 00 stw r9,0(r31) --(*nleft); ffc04e78: 90 1d 00 00 stw r0,0(r29) return 1; ffc04e7c: 48 00 00 08 b ffc04e84 ffc04e80: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc04e84: 80 01 00 24 lwz r0,36(r1) ffc04e88: 83 61 00 0c lwz r27,12(r1) ffc04e8c: 7c 08 03 a6 mtlr r0 ffc04e90: 83 81 00 10 lwz r28,16(r1) ffc04e94: 83 a1 00 14 lwz r29,20(r1) ffc04e98: 83 c1 00 18 lwz r30,24(r1) ffc04e9c: 83 e1 00 1c lwz r31,28(r1) ffc04ea0: 38 21 00 20 addi r1,r1,32 ffc04ea4: 4e 80 00 20 blr ffc04ea8 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc04ea8: 94 21 ff d0 stwu r1,-48(r1) ffc04eac: 7c 08 02 a6 mflr r0 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04eb0: 38 e0 00 00 li r7,0 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc04eb4: 93 a1 00 24 stw r29,36(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04eb8: 3b a1 00 18 addi r29,r1,24 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc04ebc: 93 c1 00 28 stw r30,40(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04ec0: 3b c1 00 1c addi r30,r1,28 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc04ec4: 90 a1 00 18 stw r5,24(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04ec8: 7f a5 eb 78 mr r5,r29 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc04ecc: 90 c1 00 1c stw r6,28(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04ed0: 7f c6 f3 78 mr r6,r30 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc04ed4: 93 81 00 20 stw r28,32(r1) ffc04ed8: 7c 7c 1b 78 mr r28,r3 ffc04edc: 93 e1 00 2c stw r31,44(r1) ffc04ee0: 7c 9f 23 78 mr r31,r4 ffc04ee4: 90 01 00 34 stw r0,52(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04ee8: 4b ff fe 99 bl ffc04d80 ffc04eec: 2f 83 00 00 cmpwi cr7,r3,0 ffc04ef0: 41 be 01 08 beq+ cr7,ffc04ff8 <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) ffc04ef4: 7f 83 e3 78 mr r3,r28 ffc04ef8: 38 9f 00 04 addi r4,r31,4 ffc04efc: 7f a5 eb 78 mr r5,r29 ffc04f00: 7f c6 f3 78 mr r6,r30 ffc04f04: 38 e0 00 00 li r7,0 ffc04f08: 4b ff fe 79 bl ffc04d80 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04f0c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04f10: 41 be 00 e8 beq+ cr7,ffc04ff8 <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) ffc04f14: 7f 83 e3 78 mr r3,r28 ffc04f18: 38 81 00 08 addi r4,r1,8 ffc04f1c: 4b ff fd 21 bl ffc04c3c { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04f20: 2f 83 00 00 cmpwi cr7,r3,0 ffc04f24: 41 be 00 d4 beq+ cr7,ffc04ff8 <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) ffc04f28: 7f 83 e3 78 mr r3,r28 ffc04f2c: 7f a5 eb 78 mr r5,r29 ffc04f30: 7f c6 f3 78 mr r6,r30 ffc04f34: 38 81 00 0c addi r4,r1,12 ffc04f38: 38 e0 00 01 li r7,1 ffc04f3c: 4b ff fe 45 bl ffc04d80 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc04f40: 2f 83 00 00 cmpwi cr7,r3,0 ffc04f44: 41 9e 00 b4 beq- cr7,ffc04ff8 <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; ffc04f48: 80 01 00 08 lwz r0,8(r1) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc04f4c: 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; ffc04f50: b0 1f 00 08 sth r0,8(r31) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc04f54: 38 00 00 01 li r0,1 ffc04f58: 7d 49 53 78 mr r9,r10 ffc04f5c: 48 00 00 14 b ffc04f70 if(*cp == ',') memcount++; ffc04f60: 69 68 00 2c xori r8,r11,44 ffc04f64: 21 08 00 00 subfic r8,r8,0 ffc04f68: 7d 00 01 94 addze r8,r0 ffc04f6c: 7d 00 43 78 mr r0,r8 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc04f70: 89 69 00 00 lbz r11,0(r9) ffc04f74: 39 29 00 01 addi r9,r9,1 ffc04f78: 2f 8b 00 00 cmpwi cr7,r11,0 ffc04f7c: 40 9e ff e4 bne+ cr7,ffc04f60 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) ffc04f80: 54 09 10 3a rlwinm r9,r0,2,0,29 ffc04f84: 38 09 00 13 addi r0,r9,19 ffc04f88: 81 21 00 1c lwz r9,28(r1) ffc04f8c: 7f 89 00 40 cmplw cr7,r9,r0 ffc04f90: 41 9c 00 68 blt- cr7,ffc04ff8 <== NEVER TAKEN return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); ffc04f94: 81 21 00 18 lwz r9,24(r1) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc04f98: 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); ffc04f9c: 39 29 00 0f addi r9,r9,15 ffc04fa0: 55 29 00 36 rlwinm r9,r9,0,0,27 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc04fa4: 91 49 00 00 stw r10,0(r9) for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; ffc04fa8: 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); ffc04fac: 91 3f 00 0c stw r9,12(r31) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc04fb0: 81 21 00 0c lwz r9,12(r1) ffc04fb4: 48 00 00 1c b ffc04fd0 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { ffc04fb8: 40 ba 00 18 bne+ cr6,ffc04fd0 <== ALWAYS TAKEN *cp = '\0'; ffc04fbc: 99 49 ff ff stb r10,-1(r9) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; ffc04fc0: 55 60 10 3a rlwinm r0,r11,2,0,29 <== NOT EXECUTED ffc04fc4: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc04fc8: 81 1f 00 0c lwz r8,12(r31) <== NOT EXECUTED ffc04fcc: 7d 28 01 2e stwx r9,r8,r0 <== NOT EXECUTED ffc04fd0: 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++) { ffc04fd4: 88 09 ff ff lbz r0,-1(r9) ffc04fd8: 2f 80 00 00 cmpwi cr7,r0,0 if(*cp == ',') { ffc04fdc: 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++) { ffc04fe0: 40 9e ff d8 bne+ cr7,ffc04fb8 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; ffc04fe4: 81 3f 00 0c lwz r9,12(r31) ffc04fe8: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc04fec: 38 60 00 01 li r3,1 ffc04ff0: 7c 09 59 2e stwx r0,r9,r11 return 1; ffc04ff4: 48 00 00 08 b ffc04ffc ffc04ff8: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc04ffc: 80 01 00 34 lwz r0,52(r1) ffc05000: 83 81 00 20 lwz r28,32(r1) ffc05004: 7c 08 03 a6 mtlr r0 ffc05008: 83 a1 00 24 lwz r29,36(r1) ffc0500c: 83 c1 00 28 lwz r30,40(r1) ffc05010: 83 e1 00 2c lwz r31,44(r1) ffc05014: 38 21 00 30 addi r1,r1,48 ffc05018: 4e 80 00 20 blr ffc05078 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc05078: 94 21 ff d0 stwu r1,-48(r1) ffc0507c: 7c 08 02 a6 mflr r0 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05080: 38 e0 00 00 li r7,0 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc05084: 93 81 00 20 stw r28,32(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05088: 3b 81 00 18 addi r28,r1,24 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc0508c: 93 a1 00 24 stw r29,36(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05090: 3b a1 00 1c addi r29,r1,28 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc05094: 90 a1 00 18 stw r5,24(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05098: 7f 85 e3 78 mr r5,r28 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc0509c: 90 c1 00 1c stw r6,28(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc050a0: 7f a6 eb 78 mr r6,r29 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc050a4: 93 c1 00 28 stw r30,40(r1) ffc050a8: 7c 7e 1b 78 mr r30,r3 ffc050ac: 93 e1 00 2c stw r31,44(r1) ffc050b0: 7c 9f 23 78 mr r31,r4 ffc050b4: 90 01 00 34 stw r0,52(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc050b8: 4b ff fc c9 bl ffc04d80 ffc050bc: 2f 83 00 00 cmpwi cr7,r3,0 ffc050c0: 41 be 00 e4 beq+ cr7,ffc051a4 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) ffc050c4: 7f c3 f3 78 mr r3,r30 ffc050c8: 38 9f 00 04 addi r4,r31,4 ffc050cc: 7f 85 e3 78 mr r5,r28 ffc050d0: 7f a6 eb 78 mr r6,r29 ffc050d4: 38 e0 00 00 li r7,0 ffc050d8: 4b ff fc a9 bl ffc04d80 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc050dc: 2f 83 00 00 cmpwi cr7,r3,0 ffc050e0: 41 be 00 c4 beq+ cr7,ffc051a4 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) ffc050e4: 7f c3 f3 78 mr r3,r30 ffc050e8: 38 81 00 08 addi r4,r1,8 ffc050ec: 4b ff fb 51 bl ffc04c3c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc050f0: 2f 83 00 00 cmpwi cr7,r3,0 ffc050f4: 41 be 00 b0 beq+ cr7,ffc051a4 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) ffc050f8: 7f c3 f3 78 mr r3,r30 ffc050fc: 38 81 00 0c addi r4,r1,12 ffc05100: 4b ff fb 3d bl ffc04c3c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05104: 2f 83 00 00 cmpwi cr7,r3,0 ffc05108: 41 be 00 9c beq+ cr7,ffc051a4 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) ffc0510c: 7f c3 f3 78 mr r3,r30 ffc05110: 38 9f 00 0c addi r4,r31,12 ffc05114: 7f 85 e3 78 mr r5,r28 ffc05118: 7f a6 eb 78 mr r6,r29 ffc0511c: 38 e0 00 00 li r7,0 ffc05120: 4b ff fc 61 bl ffc04d80 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05124: 2f 83 00 00 cmpwi cr7,r3,0 ffc05128: 41 be 00 7c beq+ cr7,ffc051a4 <== NEVER TAKEN || !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) ffc0512c: 7f c3 f3 78 mr r3,r30 ffc05130: 38 9f 00 10 addi r4,r31,16 ffc05134: 7f 85 e3 78 mr r5,r28 ffc05138: 7f a6 eb 78 mr r6,r29 ffc0513c: 38 e0 00 00 li r7,0 ffc05140: 4b ff fc 41 bl ffc04d80 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05144: 2f 83 00 00 cmpwi cr7,r3,0 ffc05148: 41 be 00 5c beq+ cr7,ffc051a4 <== NEVER TAKEN || !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) ffc0514c: 7f c3 f3 78 mr r3,r30 ffc05150: 38 9f 00 14 addi r4,r31,20 ffc05154: 7f 85 e3 78 mr r5,r28 ffc05158: 7f a6 eb 78 mr r6,r29 ffc0515c: 38 e0 00 00 li r7,0 ffc05160: 4b ff fc 21 bl ffc04d80 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05164: 2f 83 00 00 cmpwi cr7,r3,0 ffc05168: 41 be 00 3c beq+ cr7,ffc051a4 <== NEVER TAKEN || !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)) ffc0516c: 7f c3 f3 78 mr r3,r30 ffc05170: 7f 85 e3 78 mr r5,r28 ffc05174: 7f a6 eb 78 mr r6,r29 ffc05178: 38 9f 00 18 addi r4,r31,24 ffc0517c: 38 e0 00 01 li r7,1 ffc05180: 4b ff fc 01 bl ffc04d80 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc05184: 2f 83 00 00 cmpwi cr7,r3,0 ffc05188: 41 9e 00 1c beq- cr7,ffc051a4 <== NEVER TAKEN || !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; ffc0518c: 80 01 00 08 lwz r0,8(r1) pwd->pw_gid = pwgid; ffc05190: 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; ffc05194: b0 1f 00 08 sth r0,8(r31) pwd->pw_gid = pwgid; ffc05198: 80 01 00 0c lwz r0,12(r1) ffc0519c: b0 1f 00 0a sth r0,10(r31) return 1; ffc051a0: 48 00 00 08 b ffc051a8 ffc051a4: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc051a8: 80 01 00 34 lwz r0,52(r1) ffc051ac: 83 81 00 20 lwz r28,32(r1) ffc051b0: 7c 08 03 a6 mtlr r0 ffc051b4: 83 a1 00 24 lwz r29,36(r1) ffc051b8: 83 c1 00 28 lwz r30,40(r1) ffc051bc: 83 e1 00 2c lwz r31,44(r1) ffc051c0: 38 21 00 30 addi r1,r1,48 ffc051c4: 4e 80 00 20 blr ffc05314 : return NULL; return &grent; } void setgrent(void) { ffc05314: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05318: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0531c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc05320: 4b ff ff 05 bl ffc05224 <== NOT EXECUTED if (group_fp != NULL) ffc05324: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05328: 80 69 28 14 lwz r3,10260(r9) <== NOT EXECUTED ffc0532c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc05330: 41 9e 00 08 beq- cr7,ffc05338 <== NOT EXECUTED fclose(group_fp); ffc05334: 48 00 dd 39 bl ffc1306c <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); ffc05338: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0533c: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc05340: 38 63 07 a7 addi r3,r3,1959 <== NOT EXECUTED ffc05344: 38 84 ff d4 addi r4,r4,-44 <== NOT EXECUTED ffc05348: 48 00 e6 61 bl ffc139a8 <== NOT EXECUTED } ffc0534c: 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"); ffc05350: 3d 20 00 00 lis r9,0 <== NOT EXECUTED } ffc05354: 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"); ffc05358: 90 69 28 14 stw r3,10260(r9) <== NOT EXECUTED } ffc0535c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc05360: 4e 80 00 20 blr <== NOT EXECUTED ffc05560 : return NULL; return &pwent; } void setpwent(void) { ffc05560: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05564: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05568: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc0556c: 4b ff fc b9 bl ffc05224 <== NOT EXECUTED if (passwd_fp != NULL) ffc05570: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05574: 80 69 28 18 lwz r3,10264(r9) <== NOT EXECUTED ffc05578: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0557c: 41 9e 00 08 beq- cr7,ffc05584 <== NOT EXECUTED fclose(passwd_fp); ffc05580: 48 00 da ed bl ffc1306c <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); ffc05584: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05588: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc0558c: 38 63 07 34 addi r3,r3,1844 <== NOT EXECUTED ffc05590: 38 84 ff d4 addi r4,r4,-44 <== NOT EXECUTED ffc05594: 48 00 e4 15 bl ffc139a8 <== NOT EXECUTED } ffc05598: 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"); ffc0559c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED } ffc055a0: 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"); ffc055a4: 90 69 28 18 stw r3,10264(r9) <== NOT EXECUTED } ffc055a8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc055ac: 4e 80 00 20 blr <== NOT EXECUTED ffc060f8 : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { ffc060f8: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc060fc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc06100: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { ffc06104: 80 04 00 3c lwz r0,60(r4) <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { ffc06108: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc0610c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { ffc06110: 70 09 0e 78 andi. r9,r0,3704 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { ffc06114: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc06118: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { ffc0611c: 41 a2 00 48 beq+ ffc06164 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06120: 80 64 00 18 lwz r3,24(r4) <== NOT EXECUTED ffc06124: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc06128: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0612c: 48 00 1c 81 bl ffc07dac <== NOT EXECUTED i = iproc (c, tty); ffc06130: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06134: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06138: 4b ff fd f9 bl ffc05f30 <== NOT EXECUTED ffc0613c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED rtems_semaphore_release (tty->osem); ffc06140: 80 7f 00 18 lwz r3,24(r31) <== NOT EXECUTED ffc06144: 48 00 1d ad bl ffc07ef0 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } ffc06148: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0614c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06150: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc06154: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06158: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc0615c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc06160: 4e 80 00 20 blr <== NOT EXECUTED ffc06164: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc06168: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc0616c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06170: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc06174: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); i = iproc (c, tty); rtems_semaphore_release (tty->osem); } else { i = iproc (c, tty); ffc06178: 4b ff fd b8 b ffc05f30 <== NOT EXECUTED ffc07138 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc07138: 94 21 ff c8 stwu r1,-56(r1) ffc0713c: 7c 08 02 a6 mflr r0 ffc07140: 93 c1 00 30 stw r30,48(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc07144: 7c 9e 23 79 mr. r30,r4 int _STAT_NAME( const char *path, struct stat *buf ) { ffc07148: 93 a1 00 2c stw r29,44(r1) ffc0714c: 7c 7d 1b 78 mr r29,r3 ffc07150: 90 01 00 3c stw r0,60(r1) ffc07154: 93 e1 00 34 stw r31,52(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc07158: 40 a2 00 10 bne+ ffc07168 rtems_set_errno_and_return_minus_one( EFAULT ); ffc0715c: 48 00 c6 71 bl ffc137cc <__errno> ffc07160: 38 00 00 0e li r0,14 ffc07164: 48 00 00 6c b ffc071d0 status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc07168: 48 00 e8 99 bl ffc15a00 ffc0716c: 3b e1 00 08 addi r31,r1,8 ffc07170: 7c 64 1b 78 mr r4,r3 ffc07174: 38 a0 00 00 li r5,0 ffc07178: 7f a3 eb 78 mr r3,r29 ffc0717c: 7f e6 fb 78 mr r6,r31 ffc07180: 38 e0 00 01 li r7,1 ffc07184: 4b ff e3 1d bl ffc054a0 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc07188: 3b a0 ff ff li r29,-1 ffc0718c: 2f 83 00 00 cmpwi cr7,r3,0 ffc07190: 40 9e 00 9c bne- cr7,ffc0722c return -1; if ( !loc.handlers->fstat_h ){ ffc07194: 81 21 00 10 lwz r9,16(r1) ffc07198: 80 09 00 18 lwz r0,24(r9) ffc0719c: 2f 80 00 00 cmpwi cr7,r0,0 ffc071a0: 40 be 00 3c bne+ cr7,ffc071dc <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc071a4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc071a8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc071ac: 41 9e 00 1c beq- cr7,ffc071c8 <== NOT EXECUTED ffc071b0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc071b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc071b8: 41 9e 00 10 beq- cr7,ffc071c8 <== NOT EXECUTED ffc071bc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc071c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc071c4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc071c8: 48 00 c6 05 bl ffc137cc <__errno> <== NOT EXECUTED ffc071cc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc071d0: 90 03 00 00 stw r0,0(r3) ffc071d4: 3b a0 ff ff li r29,-1 ffc071d8: 48 00 00 54 b ffc0722c /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc071dc: 38 80 00 00 li r4,0 ffc071e0: 38 a0 00 48 li r5,72 ffc071e4: 7f c3 f3 78 mr r3,r30 ffc071e8: 48 00 de 11 bl ffc14ff8 status = (*loc.handlers->fstat_h)( &loc, buf ); ffc071ec: 81 21 00 10 lwz r9,16(r1) ffc071f0: 7f c4 f3 78 mr r4,r30 ffc071f4: 80 09 00 18 lwz r0,24(r9) ffc071f8: 7f e3 fb 78 mr r3,r31 ffc071fc: 7c 09 03 a6 mtctr r0 ffc07200: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc07204: 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 ); ffc07208: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc0720c: 2f 89 00 00 cmpwi cr7,r9,0 ffc07210: 41 9e 00 1c beq- cr7,ffc0722c <== NEVER TAKEN ffc07214: 80 09 00 1c lwz r0,28(r9) ffc07218: 2f 80 00 00 cmpwi cr7,r0,0 ffc0721c: 41 9e 00 10 beq- cr7,ffc0722c <== NEVER TAKEN ffc07220: 7f e3 fb 78 mr r3,r31 ffc07224: 7c 09 03 a6 mtctr r0 ffc07228: 4e 80 04 21 bctrl return status; } ffc0722c: 80 01 00 3c lwz r0,60(r1) ffc07230: 7f a3 eb 78 mr r3,r29 ffc07234: 83 c1 00 30 lwz r30,48(r1) ffc07238: 7c 08 03 a6 mtlr r0 ffc0723c: 83 a1 00 2c lwz r29,44(r1) ffc07240: 83 e1 00 34 lwz r31,52(r1) ffc07244: 38 21 00 38 addi r1,r1,56 ffc07248: 4e 80 00 20 blr ffc071c8 : int symlink( const char *actualpath, const char *sympath ) { ffc071c8: 94 21 ff c8 stwu r1,-56(r1) ffc071cc: 7c 08 02 a6 mflr r0 ffc071d0: 93 a1 00 2c stw r29,44(r1) ffc071d4: 7c 7d 1b 78 mr r29,r3 ffc071d8: 90 01 00 3c stw r0,60(r1) ffc071dc: 93 c1 00 30 stw r30,48(r1) ffc071e0: 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 ); ffc071e4: 88 04 00 00 lbz r0,0(r4) ffc071e8: 2f 80 00 2f cmpwi cr7,r0,47 ffc071ec: 41 9e 00 14 beq- cr7,ffc07200 ffc071f0: 2f 80 00 5c cmpwi cr7,r0,92 ffc071f4: 41 9e 00 0c beq- cr7,ffc07200 <== NEVER TAKEN ffc071f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc071fc: 40 9e 00 38 bne- cr7,ffc07234 <== ALWAYS TAKEN ffc07200: 3d 20 00 00 lis r9,0 ffc07204: 81 29 27 14 lwz r9,10004(r9) ffc07208: 38 60 00 01 li r3,1 ffc0720c: 80 09 00 24 lwz r0,36(r9) ffc07210: 81 09 00 18 lwz r8,24(r9) ffc07214: 81 49 00 1c lwz r10,28(r9) ffc07218: 81 69 00 20 lwz r11,32(r9) ffc0721c: 91 01 00 0c stw r8,12(r1) ffc07220: 91 41 00 10 stw r10,16(r1) ffc07224: 91 61 00 14 stw r11,20(r1) ffc07228: 90 01 00 18 stw r0,24(r1) ffc0722c: 80 09 00 28 lwz r0,40(r9) ffc07230: 48 00 00 34 b ffc07264 ffc07234: 3d 20 00 00 lis r9,0 ffc07238: 81 29 27 14 lwz r9,10004(r9) ffc0723c: 38 60 00 00 li r3,0 ffc07240: 80 09 00 10 lwz r0,16(r9) ffc07244: 81 09 00 04 lwz r8,4(r9) ffc07248: 81 49 00 08 lwz r10,8(r9) ffc0724c: 81 69 00 0c lwz r11,12(r9) ffc07250: 91 01 00 0c stw r8,12(r1) ffc07254: 91 41 00 10 stw r10,16(r1) ffc07258: 91 61 00 14 stw r11,20(r1) ffc0725c: 90 01 00 18 stw r0,24(r1) ffc07260: 80 09 00 14 lwz r0,20(r9) if ( !loc.ops->evalformake_h ) { ffc07264: 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 ); ffc07268: 90 01 00 1c stw r0,28(r1) if ( !loc.ops->evalformake_h ) { ffc0726c: 80 09 00 04 lwz r0,4(r9) ffc07270: 2f 80 00 00 cmpwi cr7,r0,0 ffc07274: 41 9e 00 50 beq- cr7,ffc072c4 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); ffc07278: 3b c1 00 0c addi r30,r1,12 ffc0727c: 7c 09 03 a6 mtctr r0 ffc07280: 7c 64 1a 14 add r3,r4,r3 ffc07284: 38 a1 00 08 addi r5,r1,8 ffc07288: 7f c4 f3 78 mr r4,r30 if ( result != 0 ) ffc0728c: 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 ); ffc07290: 4e 80 04 21 bctrl if ( result != 0 ) ffc07294: 2f 83 00 00 cmpwi cr7,r3,0 ffc07298: 40 9e 00 7c bne- cr7,ffc07314 return -1; if ( !loc.ops->symlink_h ) { ffc0729c: 81 21 00 18 lwz r9,24(r1) ffc072a0: 80 09 00 38 lwz r0,56(r9) ffc072a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc072a8: 40 be 00 30 bne+ cr7,ffc072d8 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc072ac: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc072b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc072b4: 41 9e 00 10 beq- cr7,ffc072c4 <== NOT EXECUTED ffc072b8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc072bc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc072c0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc072c4: 48 00 c3 45 bl ffc13608 <__errno> <== NOT EXECUTED ffc072c8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc072cc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc072d0: 3b e0 ff ff li r31,-1 <== NOT EXECUTED ffc072d4: 48 00 00 40 b ffc07314 <== NOT EXECUTED } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); ffc072d8: 7f a4 eb 78 mr r4,r29 ffc072dc: 80 a1 00 08 lwz r5,8(r1) ffc072e0: 7f c3 f3 78 mr r3,r30 ffc072e4: 7c 09 03 a6 mtctr r0 ffc072e8: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc072ec: 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); ffc072f0: 7c 7f 1b 78 mr r31,r3 rtems_filesystem_freenode( &loc ); ffc072f4: 2f 89 00 00 cmpwi cr7,r9,0 ffc072f8: 41 9e 00 1c beq- cr7,ffc07314 <== NEVER TAKEN ffc072fc: 80 09 00 1c lwz r0,28(r9) ffc07300: 2f 80 00 00 cmpwi cr7,r0,0 ffc07304: 41 9e 00 10 beq- cr7,ffc07314 <== NEVER TAKEN ffc07308: 7f c3 f3 78 mr r3,r30 ffc0730c: 7c 09 03 a6 mtctr r0 ffc07310: 4e 80 04 21 bctrl return result; } ffc07314: 80 01 00 3c lwz r0,60(r1) ffc07318: 7f e3 fb 78 mr r3,r31 ffc0731c: 83 a1 00 2c lwz r29,44(r1) ffc07320: 7c 08 03 a6 mtlr r0 ffc07324: 83 c1 00 30 lwz r30,48(r1) ffc07328: 83 e1 00 34 lwz r31,52(r1) ffc0732c: 38 21 00 38 addi r1,r1,56 ffc07330: 4e 80 00 20 blr ffc07258 : fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) { ffc07258: 94 21 ff f0 stwu r1,-16(r1) ffc0725c: 7c 08 02 a6 mflr r0 ffc07260: 90 01 00 14 stw r0,20(r1) /* * The sync_wrapper() function will operate on the current thread's * reent structure so we will temporarily use that. */ this_reent = t->libc_reent; ffc07264: 80 03 01 3c lwz r0,316(r3) fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) { ffc07268: 93 c1 00 08 stw r30,8(r1) /* * The sync_wrapper() function will operate on the current thread's * reent structure so we will temporarily use that. */ this_reent = t->libc_reent; if ( this_reent ) { ffc0726c: 2f 80 00 00 cmpwi cr7,r0,0 fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) { ffc07270: 93 e1 00 0c stw r31,12(r1) /* * The sync_wrapper() function will operate on the current thread's * reent structure so we will temporarily use that. */ this_reent = t->libc_reent; if ( this_reent ) { ffc07274: 41 9e 00 2c beq- cr7,ffc072a0 <== NEVER TAKEN current_reent = _Thread_Executing->libc_reent; ffc07278: 3f e0 00 00 lis r31,0 ffc0727c: 81 3f 27 70 lwz r9,10096(r31) _Thread_Executing->libc_reent = this_reent; _fwalk (t->libc_reent, sync_wrapper); ffc07280: 3c 80 ff c0 lis r4,-64 ffc07284: 38 84 72 f4 addi r4,r4,29428 * The sync_wrapper() function will operate on the current thread's * reent structure so we will temporarily use that. */ this_reent = t->libc_reent; if ( this_reent ) { current_reent = _Thread_Executing->libc_reent; ffc07288: 83 c9 01 3c lwz r30,316(r9) _Thread_Executing->libc_reent = this_reent; ffc0728c: 90 09 01 3c stw r0,316(r9) _fwalk (t->libc_reent, sync_wrapper); ffc07290: 80 63 01 3c lwz r3,316(r3) ffc07294: 48 00 d8 31 bl ffc14ac4 <_fwalk> _Thread_Executing->libc_reent = current_reent; ffc07298: 81 3f 27 70 lwz r9,10096(r31) ffc0729c: 93 c9 01 3c stw r30,316(r9) } } ffc072a0: 80 01 00 14 lwz r0,20(r1) ffc072a4: 83 c1 00 08 lwz r30,8(r1) ffc072a8: 7c 08 03 a6 mtlr r0 ffc072ac: 83 e1 00 0c lwz r31,12(r1) ffc072b0: 38 21 00 10 addi r1,r1,16 ffc072b4: 4e 80 00 20 blr ffc06c8c : int fd, int opt, struct termios *tp ) { switch (opt) { ffc06c8c: 2c 04 00 00 cmpwi r4,0 int tcsetattr( int fd, int opt, struct termios *tp ) { ffc06c90: 94 21 ff f0 stwu r1,-16(r1) ffc06c94: 7c 08 02 a6 mflr r0 ffc06c98: 93 c1 00 08 stw r30,8(r1) ffc06c9c: 7c 7e 1b 78 mr r30,r3 ffc06ca0: 93 e1 00 0c stw r31,12(r1) ffc06ca4: 7c bf 2b 78 mr r31,r5 ffc06ca8: 90 01 00 14 stw r0,20(r1) switch (opt) { ffc06cac: 41 82 00 3c beq- ffc06ce8 <== ALWAYS TAKEN ffc06cb0: 2f 84 00 01 cmpwi cr7,r4,1 <== NOT EXECUTED ffc06cb4: 41 9e 00 18 beq- cr7,ffc06ccc <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06cb8: 48 00 b6 81 bl ffc12338 <__errno> <== NOT EXECUTED ffc06cbc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06cc0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc06cc4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc06cc8: 48 00 00 34 b ffc06cfc <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) ffc06ccc: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc06cd0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc06cd4: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06cd8: 48 00 86 f9 bl ffc0f3d0 <== NOT EXECUTED ffc06cdc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06ce0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc06ce4: 41 9c 00 18 blt- cr7,ffc06cfc <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); ffc06ce8: 7f c3 f3 78 mr r3,r30 ffc06cec: 7f e5 fb 78 mr r5,r31 ffc06cf0: 38 80 00 02 li r4,2 ffc06cf4: 4c c6 31 82 crclr 4*cr1+eq ffc06cf8: 48 00 86 d9 bl ffc0f3d0 } } ffc06cfc: 80 01 00 14 lwz r0,20(r1) ffc06d00: 83 c1 00 08 lwz r30,8(r1) ffc06d04: 7c 08 03 a6 mtlr r0 ffc06d08: 83 e1 00 0c lwz r31,12(r1) ffc06d0c: 38 21 00 10 addi r1,r1,16 ffc06d10: 4e 80 00 20 blr ffc1026c : #include int unlink( const char *path ) { ffc1026c: 94 21 ff b8 stwu r1,-72(r1) ffc10270: 7c 08 02 a6 mflr r0 ffc10274: 93 a1 00 3c stw r29,60(r1) ffc10278: 93 c1 00 40 stw r30,64(r1) ffc1027c: 7c 7e 1b 78 mr r30,r3 ffc10280: 90 01 00 4c stw r0,76(r1) ffc10284: 93 e1 00 44 stw r31,68(r1) /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); ffc10288: 4b ff 3d 61 bl ffc03fe8 if ( parentpathlen == 0 ) ffc1028c: 7c 7d 1b 79 mr. r29,r3 ffc10290: 40 82 00 8c bne- ffc1031c rtems_filesystem_get_start_loc( path, &i, &parentloc ); ffc10294: 88 1e 00 00 lbz r0,0(r30) ffc10298: 2f 80 00 2f cmpwi cr7,r0,47 ffc1029c: 41 9e 00 14 beq- cr7,ffc102b0 ffc102a0: 2f 80 00 5c cmpwi cr7,r0,92 ffc102a4: 41 9e 00 0c beq- cr7,ffc102b0 <== NEVER TAKEN ffc102a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc102ac: 40 9e 00 38 bne- cr7,ffc102e4 <== ALWAYS TAKEN ffc102b0: 3d 20 00 00 lis r9,0 ffc102b4: 81 29 26 9c lwz r9,9884(r9) ffc102b8: 3b e0 00 00 li r31,0 ffc102bc: 80 09 00 24 lwz r0,36(r9) ffc102c0: 81 09 00 18 lwz r8,24(r9) ffc102c4: 81 49 00 1c lwz r10,28(r9) ffc102c8: 81 69 00 20 lwz r11,32(r9) ffc102cc: 91 01 00 08 stw r8,8(r1) ffc102d0: 91 41 00 0c stw r10,12(r1) ffc102d4: 91 61 00 10 stw r11,16(r1) ffc102d8: 90 01 00 14 stw r0,20(r1) ffc102dc: 80 09 00 28 lwz r0,40(r9) ffc102e0: 48 00 00 34 b ffc10314 ffc102e4: 3d 20 00 00 lis r9,0 ffc102e8: 81 29 26 9c lwz r9,9884(r9) ffc102ec: 3b e0 00 00 li r31,0 ffc102f0: 80 09 00 10 lwz r0,16(r9) ffc102f4: 81 09 00 04 lwz r8,4(r9) ffc102f8: 81 49 00 08 lwz r10,8(r9) ffc102fc: 81 69 00 0c lwz r11,12(r9) ffc10300: 91 01 00 08 stw r8,8(r1) ffc10304: 91 41 00 0c stw r10,12(r1) ffc10308: 91 61 00 10 stw r11,16(r1) ffc1030c: 90 01 00 14 stw r0,20(r1) ffc10310: 80 09 00 14 lwz r0,20(r9) ffc10314: 90 01 00 18 stw r0,24(r1) ffc10318: 48 00 00 28 b ffc10340 else { result = rtems_filesystem_evaluate_path( path, parentpathlen, ffc1031c: 7f c3 f3 78 mr r3,r30 ffc10320: 7f a4 eb 78 mr r4,r29 ffc10324: 38 a0 00 02 li r5,2 ffc10328: 38 c1 00 08 addi r6,r1,8 ffc1032c: 38 e0 00 00 li r7,0 ffc10330: 4b ff 3e 31 bl ffc04160 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc10334: 2f 83 00 00 cmpwi cr7,r3,0 ffc10338: 40 9e 01 ec bne- cr7,ffc10524 <== NEVER TAKEN ffc1033c: 3b e0 00 01 li r31,1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc10340: 80 01 00 08 lwz r0,8(r1) name = path + parentpathlen; ffc10344: 7f be ea 14 add r29,r30,r29 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc10348: 7f a3 eb 78 mr r3,r29 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc1034c: 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 ), ffc10350: 3b c1 00 1c addi r30,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc10354: 80 01 00 0c lwz r0,12(r1) ffc10358: 90 01 00 20 stw r0,32(r1) ffc1035c: 80 01 00 10 lwz r0,16(r1) ffc10360: 90 01 00 24 stw r0,36(r1) ffc10364: 80 01 00 14 lwz r0,20(r1) ffc10368: 90 01 00 28 stw r0,40(r1) ffc1036c: 80 01 00 18 lwz r0,24(r1) ffc10370: 90 01 00 2c stw r0,44(r1) name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc10374: 48 00 15 71 bl ffc118e4 ffc10378: 7c 64 1b 78 mr r4,r3 ffc1037c: 7f a3 eb 78 mr r3,r29 ffc10380: 4b ff 3c 2d bl ffc03fac ffc10384: 7f bd 1a 14 add r29,r29,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc10388: 7f a3 eb 78 mr r3,r29 ffc1038c: 48 00 15 59 bl ffc118e4 ffc10390: 38 a0 00 00 li r5,0 ffc10394: 7c 64 1b 78 mr r4,r3 ffc10398: 7f c6 f3 78 mr r6,r30 ffc1039c: 7f a3 eb 78 mr r3,r29 ffc103a0: 38 e0 00 00 li r7,0 ffc103a4: 4b ff 3c a9 bl ffc0404c 0, &loc, false ); if ( result != 0 ) { ffc103a8: 2f 83 00 00 cmpwi cr7,r3,0 ffc103ac: 41 be 00 30 beq+ cr7,ffc103dc if ( free_parentloc ) ffc103b0: 2f 9f 00 00 cmpwi cr7,r31,0 ffc103b4: 41 be 01 70 beq+ cr7,ffc10524 <== NEVER TAKEN rtems_filesystem_freenode( &parentloc ); ffc103b8: 81 21 00 14 lwz r9,20(r1) ffc103bc: 2f 89 00 00 cmpwi cr7,r9,0 ffc103c0: 41 be 01 64 beq+ cr7,ffc10524 <== NEVER TAKEN ffc103c4: 80 09 00 1c lwz r0,28(r9) ffc103c8: 38 61 00 08 addi r3,r1,8 ffc103cc: 3b a0 ff ff li r29,-1 ffc103d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc103d4: 41 be 01 50 beq+ cr7,ffc10524 <== NEVER TAKEN ffc103d8: 48 00 01 40 b ffc10518 return -1; } if ( !loc.ops->node_type_h ) { ffc103dc: 81 21 00 28 lwz r9,40(r1) ffc103e0: 80 09 00 10 lwz r0,16(r9) ffc103e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc103e8: 41 9e 00 80 beq- cr7,ffc10468 <== NEVER TAKEN 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 ) { ffc103ec: 7f c3 f3 78 mr r3,r30 ffc103f0: 7c 09 03 a6 mtctr r0 ffc103f4: 4e 80 04 21 bctrl ffc103f8: 81 21 00 28 lwz r9,40(r1) ffc103fc: 2f 83 00 01 cmpwi cr7,r3,1 ffc10400: 40 be 00 5c bne+ cr7,ffc1045c rtems_filesystem_freenode( &loc ); ffc10404: 2f 89 00 00 cmpwi cr7,r9,0 ffc10408: 41 9e 00 1c beq- cr7,ffc10424 <== NEVER TAKEN ffc1040c: 80 09 00 1c lwz r0,28(r9) ffc10410: 2f 80 00 00 cmpwi cr7,r0,0 ffc10414: 41 9e 00 10 beq- cr7,ffc10424 <== NEVER TAKEN ffc10418: 7f c3 f3 78 mr r3,r30 ffc1041c: 7c 09 03 a6 mtctr r0 ffc10420: 4e 80 04 21 bctrl if ( free_parentloc ) ffc10424: 2f 9f 00 00 cmpwi cr7,r31,0 ffc10428: 41 9e 00 28 beq- cr7,ffc10450 <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); ffc1042c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc10430: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc10434: 41 9e 00 1c beq- cr7,ffc10450 <== NOT EXECUTED ffc10438: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc1043c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10440: 41 9e 00 10 beq- cr7,ffc10450 <== NOT EXECUTED ffc10444: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc10448: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc1044c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); ffc10450: 48 00 01 99 bl ffc105e8 <__errno> ffc10454: 38 00 00 15 li r0,21 ffc10458: 48 00 00 5c b ffc104b4 } if ( !loc.ops->unlink_h ) { ffc1045c: 80 09 00 0c lwz r0,12(r9) ffc10460: 2f 80 00 00 cmpwi cr7,r0,0 ffc10464: 40 be 00 58 bne+ cr7,ffc104bc <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc10468: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc1046c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10470: 41 9e 00 10 beq- cr7,ffc10480 <== NOT EXECUTED ffc10474: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc10478: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc1047c: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc10480: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc10484: 41 9e 00 28 beq- cr7,ffc104ac <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc10488: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc1048c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc10490: 41 9e 00 1c beq- cr7,ffc104ac <== NOT EXECUTED ffc10494: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc10498: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc1049c: 41 9e 00 10 beq- cr7,ffc104ac <== NOT EXECUTED ffc104a0: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc104a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc104a8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc104ac: 48 00 01 3d bl ffc105e8 <__errno> <== NOT EXECUTED ffc104b0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc104b4: 90 03 00 00 stw r0,0(r3) ffc104b8: 48 00 00 6c b ffc10524 } result = (*loc.ops->unlink_h)( &parentloc, &loc ); ffc104bc: 38 61 00 08 addi r3,r1,8 ffc104c0: 7c 09 03 a6 mtctr r0 ffc104c4: 7f c4 f3 78 mr r4,r30 ffc104c8: 4e 80 04 21 bctrl rtems_filesystem_freenode( &loc ); ffc104cc: 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 ); ffc104d0: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc104d4: 2f 89 00 00 cmpwi cr7,r9,0 ffc104d8: 41 9e 00 1c beq- cr7,ffc104f4 <== NEVER TAKEN ffc104dc: 80 09 00 1c lwz r0,28(r9) ffc104e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc104e4: 41 9e 00 10 beq- cr7,ffc104f4 <== NEVER TAKEN ffc104e8: 7f c3 f3 78 mr r3,r30 ffc104ec: 7c 09 03 a6 mtctr r0 ffc104f0: 4e 80 04 21 bctrl if ( free_parentloc ) ffc104f4: 2f 9f 00 00 cmpwi cr7,r31,0 ffc104f8: 41 9e 00 30 beq- cr7,ffc10528 rtems_filesystem_freenode( &parentloc ); ffc104fc: 81 21 00 14 lwz r9,20(r1) ffc10500: 2f 89 00 00 cmpwi cr7,r9,0 ffc10504: 41 9e 00 24 beq- cr7,ffc10528 <== NEVER TAKEN ffc10508: 80 09 00 1c lwz r0,28(r9) ffc1050c: 2f 80 00 00 cmpwi cr7,r0,0 ffc10510: 41 9e 00 18 beq- cr7,ffc10528 <== NEVER TAKEN ffc10514: 38 61 00 08 addi r3,r1,8 ffc10518: 7c 09 03 a6 mtctr r0 ffc1051c: 4e 80 04 21 bctrl ffc10520: 48 00 00 08 b ffc10528 ffc10524: 3b a0 ff ff li r29,-1 return result; } ffc10528: 80 01 00 4c lwz r0,76(r1) ffc1052c: 7f a3 eb 78 mr r3,r29 ffc10530: 83 c1 00 40 lwz r30,64(r1) ffc10534: 7c 08 03 a6 mtlr r0 ffc10538: 83 a1 00 3c lwz r29,60(r1) ffc1053c: 83 e1 00 44 lwz r31,68(r1) ffc10540: 38 21 00 48 addi r1,r1,72 ffc10544: 4e 80 00 20 blr ffc0c060 : */ int unmount( const char *path ) { ffc0c060: 94 21 ff d0 stwu r1,-48(r1) ffc0c064: 7c 08 02 a6 mflr r0 ffc0c068: 93 c1 00 28 stw r30,40(r1) ffc0c06c: 7c 7e 1b 78 mr r30,r3 ffc0c070: 90 01 00 34 stw r0,52(r1) ffc0c074: 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 ) ) ffc0c078: 48 00 e0 2d bl ffc1a0a4 ffc0c07c: 3b e1 00 08 addi r31,r1,8 ffc0c080: 7c 64 1b 78 mr r4,r3 ffc0c084: 38 a0 00 00 li r5,0 ffc0c088: 7f c3 f3 78 mr r3,r30 ffc0c08c: 7f e6 fb 78 mr r6,r31 ffc0c090: 38 e0 00 01 li r7,1 ffc0c094: 4b ff bc 31 bl ffc07cc4 ffc0c098: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c09c: 40 9e 01 84 bne- cr7,ffc0c220 return -1; mt_entry = loc.mt_entry; ffc0c0a0: 83 c1 00 18 lwz r30,24(r1) fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; ffc0c0a4: 80 01 00 08 lwz r0,8(r1) ffc0c0a8: 81 7e 00 1c lwz r11,28(r30) ffc0c0ac: 81 21 00 14 lwz r9,20(r1) ffc0c0b0: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0c0b4: 41 be 00 30 beq+ cr7,ffc0c0e4 /* * 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 ); ffc0c0b8: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c0bc: 41 9e 00 1c beq- cr7,ffc0c0d8 <== NEVER TAKEN ffc0c0c0: 80 09 00 1c lwz r0,28(r9) ffc0c0c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c0c8: 41 9e 00 10 beq- cr7,ffc0c0d8 <== NEVER TAKEN ffc0c0cc: 7f e3 fb 78 mr r3,r31 ffc0c0d0: 7c 09 03 a6 mtctr r0 ffc0c0d4: 4e 80 04 21 bctrl rtems_set_errno_and_return_minus_one( EACCES ); ffc0c0d8: 48 00 a5 6d bl ffc16644 <__errno> ffc0c0dc: 38 00 00 0d li r0,13 ffc0c0e0: 48 00 00 a0 b ffc0c180 /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); ffc0c0e4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c0e8: 41 9e 00 1c beq- cr7,ffc0c104 <== NEVER TAKEN ffc0c0ec: 80 09 00 1c lwz r0,28(r9) ffc0c0f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c0f4: 41 9e 00 10 beq- cr7,ffc0c104 <== NEVER TAKEN ffc0c0f8: 7f e3 fb 78 mr r3,r31 ffc0c0fc: 7c 09 03 a6 mtctr r0 ffc0c100: 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; ffc0c104: 81 3e 00 14 lwz r9,20(r30) ffc0c108: 80 09 00 28 lwz r0,40(r9) ffc0c10c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c110: 41 9e 00 14 beq- cr7,ffc0c124 <== NEVER TAKEN fs_root_loc = &mt_entry->mt_fs_root; ffc0c114: 81 3e 00 28 lwz r9,40(r30) ffc0c118: 80 09 00 2c lwz r0,44(r9) ffc0c11c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c120: 40 be 00 10 bne+ cr7,ffc0c130 <== ALWAYS TAKEN 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 ); ffc0c124: 48 00 a5 21 bl ffc16644 <__errno> <== NOT EXECUTED ffc0c128: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0c12c: 48 00 00 54 b ffc0c180 <== 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 ) ffc0c130: 3d 20 00 00 lis r9,0 ffc0c134: 81 29 26 fc lwz r9,9980(r9) ffc0c138: 80 09 00 14 lwz r0,20(r9) ffc0c13c: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0c140: 41 9e 00 38 beq- cr7,ffc0c178 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0c144: 3d 20 00 00 lis r9,0 ffc0c148: 3d 60 00 00 lis r11,0 ffc0c14c: 81 29 33 c8 lwz r9,13256(r9) ffc0c150: 38 0b 33 cc addi r0,r11,13260 ffc0c154: 48 00 00 18 b ffc0c16c 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; ffc0c158: 81 49 00 18 lwz r10,24(r9) ffc0c15c: 81 7e 00 2c lwz r11,44(r30) ffc0c160: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0c164: 41 9e 00 14 beq- cr7,ffc0c178 * 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 ) { ffc0c168: 81 29 00 00 lwz r9,0(r9) ffc0c16c: 7f 89 00 00 cmpw cr7,r9,r0 ffc0c170: 40 9e ff e8 bne+ cr7,ffc0c158 ffc0c174: 48 00 00 c8 b ffc0c23c * 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 ); ffc0c178: 48 00 a4 cd bl ffc16644 <__errno> ffc0c17c: 38 00 00 10 li r0,16 ffc0c180: 90 03 00 00 stw r0,0(r3) ffc0c184: 48 00 00 9c b ffc0c220 * 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 ) ffc0c188: 81 3e 00 14 lwz r9,20(r30) ffc0c18c: 7f c3 f3 78 mr r3,r30 ffc0c190: 80 09 00 28 lwz r0,40(r9) ffc0c194: 7c 09 03 a6 mtctr r0 ffc0c198: 4e 80 04 21 bctrl ffc0c19c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c1a0: 40 be 00 80 bne+ cr7,ffc0c220 <== NEVER TAKEN * 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){ ffc0c1a4: 81 3e 00 28 lwz r9,40(r30) ffc0c1a8: 7f c3 f3 78 mr r3,r30 ffc0c1ac: 80 09 00 2c lwz r0,44(r9) ffc0c1b0: 7c 09 03 a6 mtctr r0 ffc0c1b4: 4e 80 04 21 bctrl ffc0c1b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c1bc: 41 be 00 28 beq+ cr7,ffc0c1e4 <== ALWAYS TAKEN if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) ffc0c1c0: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED ffc0c1c4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c1c8: 80 09 00 20 lwz r0,32(r9) <== NOT EXECUTED ffc0c1cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0c1d0: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0c1d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0c1d8: 41 be 00 48 beq+ cr7,ffc0c220 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); ffc0c1dc: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0c1e0: 48 00 16 69 bl ffc0d848 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0c1e4: 7f c3 f3 78 mr r3,r30 ffc0c1e8: 48 00 1a d5 bl ffc0dcbc <_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 ); ffc0c1ec: 81 3e 00 14 lwz r9,20(r30) ffc0c1f0: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c1f4: 41 9e 00 1c beq- cr7,ffc0c210 <== NEVER TAKEN ffc0c1f8: 80 09 00 1c lwz r0,28(r9) ffc0c1fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c200: 41 9e 00 10 beq- cr7,ffc0c210 <== NEVER TAKEN ffc0c204: 38 7e 00 08 addi r3,r30,8 ffc0c208: 7c 09 03 a6 mtctr r0 ffc0c20c: 4e 80 04 21 bctrl free( mt_entry ); ffc0c210: 7f c3 f3 78 mr r3,r30 ffc0c214: 4b ff bb 95 bl ffc07da8 ffc0c218: 38 60 00 00 li r3,0 return 0; ffc0c21c: 48 00 00 08 b ffc0c224 ffc0c220: 38 60 ff ff li r3,-1 } ffc0c224: 80 01 00 34 lwz r0,52(r1) ffc0c228: 83 c1 00 28 lwz r30,40(r1) ffc0c22c: 7c 08 03 a6 mtlr r0 ffc0c230: 83 e1 00 2c lwz r31,44(r1) ffc0c234: 38 21 00 30 addi r1,r1,48 ffc0c238: 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 ) ffc0c23c: 7f c3 f3 78 mr r3,r30 ffc0c240: 4b ff be 81 bl ffc080c0 ffc0c244: 2f 83 00 01 cmpwi cr7,r3,1 ffc0c248: 40 9e ff 40 bne+ cr7,ffc0c188 ffc0c24c: 4b ff ff 2c b ffc0c178 ffc0931c : int utime( const char *path, const struct utimbuf *times ) { ffc0931c: 94 21 ff c8 stwu r1,-56(r1) ffc09320: 7c 08 02 a6 mflr r0 ffc09324: 93 a1 00 2c stw r29,44(r1) ffc09328: 7c 7d 1b 78 mr r29,r3 ffc0932c: 90 01 00 3c stw r0,60(r1) ffc09330: 93 c1 00 30 stw r30,48(r1) ffc09334: 7c 9e 23 78 mr r30,r4 ffc09338: 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 ) ) ffc0933c: 48 00 c6 c5 bl ffc15a00 ffc09340: 3b e1 00 08 addi r31,r1,8 ffc09344: 7c 64 1b 78 mr r4,r3 ffc09348: 38 a0 00 00 li r5,0 ffc0934c: 7f a3 eb 78 mr r3,r29 ffc09350: 7f e6 fb 78 mr r6,r31 ffc09354: 38 e0 00 01 li r7,1 ffc09358: 4b ff c1 49 bl ffc054a0 ffc0935c: 3b a0 ff ff li r29,-1 ffc09360: 2f 83 00 00 cmpwi cr7,r3,0 ffc09364: 40 9e 00 7c bne- cr7,ffc093e0 return -1; if ( !temp_loc.ops->utime_h ){ ffc09368: 81 21 00 14 lwz r9,20(r1) ffc0936c: 80 09 00 30 lwz r0,48(r9) ffc09370: 2f 80 00 00 cmpwi cr7,r0,0 ffc09374: 40 be 00 30 bne+ cr7,ffc093a4 <== ALWAYS TAKEN rtems_filesystem_freenode( &temp_loc ); ffc09378: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0937c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09380: 41 9e 00 10 beq- cr7,ffc09390 <== NOT EXECUTED ffc09384: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc09388: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0938c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc09390: 48 00 a4 3d bl ffc137cc <__errno> <== NOT EXECUTED ffc09394: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc09398: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0939c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc093a0: 48 00 00 40 b ffc093e0 <== NOT EXECUTED } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); ffc093a4: 80 be 00 04 lwz r5,4(r30) ffc093a8: 7f e3 fb 78 mr r3,r31 ffc093ac: 80 9e 00 00 lwz r4,0(r30) ffc093b0: 7c 09 03 a6 mtctr r0 ffc093b4: 4e 80 04 21 bctrl rtems_filesystem_freenode( &temp_loc ); ffc093b8: 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 ); ffc093bc: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &temp_loc ); ffc093c0: 2f 89 00 00 cmpwi cr7,r9,0 ffc093c4: 41 9e 00 1c beq- cr7,ffc093e0 <== NEVER TAKEN ffc093c8: 80 09 00 1c lwz r0,28(r9) ffc093cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc093d0: 41 9e 00 10 beq- cr7,ffc093e0 <== NEVER TAKEN ffc093d4: 7f e3 fb 78 mr r3,r31 ffc093d8: 7c 09 03 a6 mtctr r0 ffc093dc: 4e 80 04 21 bctrl return result; } ffc093e0: 80 01 00 3c lwz r0,60(r1) ffc093e4: 7f a3 eb 78 mr r3,r29 ffc093e8: 83 c1 00 30 lwz r30,48(r1) ffc093ec: 7c 08 03 a6 mtlr r0 ffc093f0: 83 a1 00 2c lwz r29,44(r1) ffc093f4: 83 e1 00 34 lwz r31,52(r1) ffc093f8: 38 21 00 38 addi r1,r1,56 ffc093fc: 4e 80 00 20 blr ffc07278 : */ void vprintk( const char *fmt, va_list ap ) { ffc07278: 94 21 ff a8 stwu r1,-88(r1) ffc0727c: 7c 08 02 a6 mflr r0 ffc07280: 92 a1 00 2c stw r21,44(r1) for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc07284: 3e a0 ff c2 lis r21,-62 ffc07288: 3a b5 c8 a9 addi r21,r21,-14167 */ void vprintk( const char *fmt, va_list ap ) { ffc0728c: 92 c1 00 30 stw r22,48(r1) unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { ffc07290: 3e c0 ff c2 lis r22,-62 ffc07294: 3a d6 c8 a8 addi r22,r22,-14168 */ void vprintk( const char *fmt, va_list ap ) { ffc07298: 93 81 00 48 stw r28,72(r1) unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); ffc0729c: 3f 80 00 00 lis r28,0 ffc072a0: 3b 9c 26 94 addi r28,r28,9876 */ void vprintk( const char *fmt, va_list ap ) { ffc072a4: 92 e1 00 34 stw r23,52(r1) toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) ffc072a8: 3a e1 00 08 addi r23,r1,8 */ void vprintk( const char *fmt, va_list ap ) { ffc072ac: 93 c1 00 50 stw r30,80(r1) ffc072b0: 7c 9e 23 78 mr r30,r4 ffc072b4: 93 e1 00 54 stw r31,84(r1) ffc072b8: 7c 7f 1b 78 mr r31,r3 ffc072bc: 90 01 00 5c stw r0,92(r1) ffc072c0: 93 01 00 38 stw r24,56(r1) ffc072c4: 93 21 00 3c stw r25,60(r1) ffc072c8: 93 41 00 40 stw r26,64(r1) ffc072cc: 93 61 00 44 stw r27,68(r1) ffc072d0: 93 a1 00 4c stw r29,76(r1) for (; *fmt != '\0'; fmt++) { ffc072d4: 48 00 03 34 b ffc07608 bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { ffc072d8: 2f 83 00 25 cmpwi cr7,r3,37 ffc072dc: 40 9e 01 f4 bne- cr7,ffc074d0 BSP_output_char(*fmt); continue; } fmt++; if (*fmt == '0' ) { ffc072e0: 8c 1f 00 01 lbzu r0,1(r31) ffc072e4: 3b 00 00 20 li r24,32 ffc072e8: 2f 80 00 30 cmpwi cr7,r0,48 ffc072ec: 40 be 00 0c bne+ cr7,ffc072f8 lead = '0'; fmt++; ffc072f0: 3b ff 00 01 addi r31,r31,1 ffc072f4: 3b 00 00 30 li r24,48 } if (*fmt == '-' ) { ffc072f8: 88 1f 00 00 lbz r0,0(r31) ffc072fc: 3b 20 00 00 li r25,0 ffc07300: 2f 80 00 2d cmpwi cr7,r0,45 ffc07304: 40 be 00 0c bne+ cr7,ffc07310 minus = true; fmt++; ffc07308: 3b ff 00 01 addi r31,r31,1 ffc0730c: 3b 20 00 01 li r25,1 ffc07310: 3b a0 00 00 li r29,0 ffc07314: 48 00 00 0c b ffc07320 } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += ((unsigned) *fmt - '0'); ffc07318: 7f a0 5a 14 add r29,r0,r11 fmt++; ffc0731c: 3b ff 00 01 addi r31,r31,1 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc07320: 88 7f 00 00 lbz r3,0(r31) width *= 10; ffc07324: 1d 7d 00 0a mulli r11,r29,10 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc07328: 38 03 ff d0 addi r0,r3,-48 ffc0732c: 54 09 06 3e clrlwi r9,r0,24 ffc07330: 2b 89 00 09 cmplwi cr7,r9,9 ffc07334: 40 9d ff e4 ble+ cr7,ffc07318 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { ffc07338: 2f 83 00 6c cmpwi cr7,r3,108 ffc0733c: 40 be 00 08 bne+ cr7,ffc07344 lflag = true; c = *++fmt; ffc07340: 8c 7f 00 01 lbzu r3,1(r31) } if ( c == 'c' ) { ffc07344: 2f 83 00 63 cmpwi cr7,r3,99 ffc07348: 40 be 00 3c bne+ cr7,ffc07384 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); ffc0734c: 89 7e 00 00 lbz r11,0(r30) ffc07350: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07354: 41 9d 00 1c bgt- cr7,ffc07370 <== NEVER TAKEN ffc07358: 81 3e 00 08 lwz r9,8(r30) ffc0735c: 38 0b 00 01 addi r0,r11,1 ffc07360: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc07364: 98 1e 00 00 stb r0,0(r30) ffc07368: 7d 29 5a 14 add r9,r9,r11 ffc0736c: 48 00 00 10 b ffc0737c ffc07370: 81 3e 00 04 lwz r9,4(r30) <== NOT EXECUTED ffc07374: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc07378: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED BSP_output_char(chr); ffc0737c: 88 69 00 03 lbz r3,3(r9) ffc07380: 48 00 01 50 b ffc074d0 continue; } if ( c == 's' ) { ffc07384: 2f 83 00 73 cmpwi cr7,r3,115 ffc07388: 40 be 00 e8 bne+ cr7,ffc07470 unsigned i, len; char *s, *str; str = va_arg(ap, char *); ffc0738c: 89 7e 00 00 lbz r11,0(r30) ffc07390: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07394: 41 9d 00 1c bgt- cr7,ffc073b0 <== NEVER TAKEN ffc07398: 81 3e 00 08 lwz r9,8(r30) ffc0739c: 38 0b 00 01 addi r0,r11,1 ffc073a0: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc073a4: 98 1e 00 00 stb r0,0(r30) ffc073a8: 7d 29 5a 14 add r9,r9,r11 ffc073ac: 48 00 00 10 b ffc073bc ffc073b0: 81 3e 00 04 lwz r9,4(r30) <== NOT EXECUTED ffc073b4: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc073b8: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED ffc073bc: 83 49 00 00 lwz r26,0(r9) if ( str == NULL ) { ffc073c0: 2f 9a 00 00 cmpwi cr7,r26,0 ffc073c4: 40 be 00 08 bne+ cr7,ffc073cc ffc073c8: 7e da b3 78 mr r26,r22 ffc073cc: 3b 60 00 00 li r27,0 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) ffc073d0: 48 00 00 08 b ffc073d8 ffc073d4: 3b 7b 00 01 addi r27,r27,1 ffc073d8: 7c 1a d8 ae lbzx r0,r26,r27 ffc073dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc073e0: 40 9e ff f4 bne+ cr7,ffc073d4 ; /* leading spaces */ if ( !minus ) ffc073e4: 2f 99 00 00 cmpwi cr7,r25,0 ffc073e8: 7f 78 db 78 mr r24,r27 ffc073ec: 41 9e 00 14 beq- cr7,ffc07400 ffc073f0: 48 00 00 20 b ffc07410 for ( i=len ; i BSP_output_char(' '); /* no width option */ if (width == 0) { ffc07410: 2f 9d 00 00 cmpwi cr7,r29,0 ffc07414: 40 9e 00 08 bne- cr7,ffc0741c ffc07418: 7f 7d db 78 mr r29,r27 width = len; } /* output the string */ for ( i=0 ; i ffc07424: 48 00 00 10 b ffc07434 BSP_output_char(*str); ffc07428: 80 1c 00 00 lwz r0,0(r28) ffc0742c: 7c 09 03 a6 mtctr r0 ffc07430: 4e 80 04 21 bctrl if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); /* trailing spaces */ if ( minus ) ffc07444: 2f 99 00 00 cmpwi cr7,r25,0 ffc07448: 40 9e 00 14 bne- cr7,ffc0745c ffc0744c: 48 00 01 b8 b ffc07604 for ( i=len ; i ffc0746c: 48 00 01 98 b ffc07604 continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { ffc07470: 2f 83 00 6f cmpwi cr7,r3,111 ffc07474: 41 9e 00 6c beq- cr7,ffc074e0 <== NEVER TAKEN ffc07478: 2f 83 00 4f cmpwi cr7,r3,79 ffc0747c: 41 9e 00 64 beq- cr7,ffc074e0 base = 8; sign = false; } else if ( c == 'i' || c == 'I' || ffc07480: 2f 83 00 69 cmpwi cr7,r3,105 ffc07484: 41 9e 00 68 beq- cr7,ffc074ec ffc07488: 2f 83 00 49 cmpwi cr7,r3,73 ffc0748c: 41 9e 00 60 beq- cr7,ffc074ec ffc07490: 2f 83 00 64 cmpwi cr7,r3,100 ffc07494: 41 9e 00 58 beq- cr7,ffc074ec ffc07498: 2f 83 00 44 cmpwi cr7,r3,68 ffc0749c: 41 9e 00 50 beq- cr7,ffc074ec c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { ffc074a0: 2f 83 00 75 cmpwi cr7,r3,117 ffc074a4: 41 9e 00 50 beq- cr7,ffc074f4 ffc074a8: 2f 83 00 55 cmpwi cr7,r3,85 ffc074ac: 41 9e 00 48 beq- cr7,ffc074f4 base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { ffc074b0: 2f 83 00 78 cmpwi cr7,r3,120 ffc074b4: 41 9e 00 4c beq- cr7,ffc07500 ffc074b8: 2f 83 00 58 cmpwi cr7,r3,88 ffc074bc: 41 9e 00 44 beq- cr7,ffc07500 base = 16; sign = false; } else if ( c == 'p' ) { ffc074c0: 2f 83 00 70 cmpwi cr7,r3,112 ffc074c4: 38 00 00 00 li r0,0 ffc074c8: 3b 60 00 10 li r27,16 ffc074cc: 41 9e 00 3c beq- cr7,ffc07508 base = 16; sign = false; lflag = true; } else { BSP_output_char(c); ffc074d0: 80 1c 00 00 lwz r0,0(r28) ffc074d4: 7c 09 03 a6 mtctr r0 ffc074d8: 4e 80 04 21 bctrl continue; ffc074dc: 48 00 01 28 b ffc07604 ffc074e0: 38 00 00 00 li r0,0 ffc074e4: 3b 60 00 08 li r27,8 ffc074e8: 48 00 00 20 b ffc07508 ffc074ec: 38 00 00 01 li r0,1 ffc074f0: 48 00 00 08 b ffc074f8 ffc074f4: 38 00 00 00 li r0,0 ffc074f8: 3b 60 00 0a li r27,10 ffc074fc: 48 00 00 0c b ffc07508 ffc07500: 38 00 00 00 li r0,0 ffc07504: 3b 60 00 10 li r27,16 } printNum( lflag ? va_arg(ap, long) : (long) va_arg(ap, int), ffc07508: 89 7e 00 00 lbz r11,0(r30) ffc0750c: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07510: 41 9d 00 1c bgt- cr7,ffc0752c ffc07514: 81 3e 00 08 lwz r9,8(r30) ffc07518: 39 4b 00 01 addi r10,r11,1 ffc0751c: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc07520: 99 5e 00 00 stb r10,0(r30) ffc07524: 7d 29 5a 14 add r9,r9,r11 } else { BSP_output_char(c); continue; } printNum( ffc07528: 48 00 00 10 b ffc07538 lflag ? va_arg(ap, long) : (long) va_arg(ap, int), ffc0752c: 81 3e 00 04 lwz r9,4(r30) ffc07530: 39 69 00 04 addi r11,r9,4 ffc07534: 91 7e 00 04 stw r11,4(r30) unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { ffc07538: 2f 80 00 00 cmpwi cr7,r0,0 } else { BSP_output_char(c); continue; } printNum( ffc0753c: 83 49 00 00 lwz r26,0(r9) unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { ffc07540: 41 9e 00 3c beq- cr7,ffc0757c ffc07544: 2f 9a 00 00 cmpwi cr7,r26,0 ffc07548: 40 bc 00 34 bge+ cr7,ffc0757c BSP_output_char('-'); ffc0754c: 80 1c 00 00 lwz r0,0(r28) ffc07550: 38 60 00 2d li r3,45 ffc07554: 7c 09 03 a6 mtctr r0 ffc07558: 4e 80 04 21 bctrl unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; ffc0755c: 7f a9 fe 70 srawi r9,r29,31 ffc07560: 7d 20 ea 78 xor r0,r9,r29 ffc07564: 7c 09 00 50 subf r0,r9,r0 ffc07568: 7c 00 00 d0 neg r0,r0 ffc0756c: 54 00 0f fe rlwinm r0,r0,1,31,31 ffc07570: 7f a0 e8 50 subf r29,r0,r29 unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); unsigned_num = (unsigned long) -num; ffc07574: 7c 1a 00 d0 neg r0,r26 ffc07578: 48 00 00 08 b ffc07580 if (maxwidth) maxwidth--; } else { unsigned_num = (unsigned long) num; ffc0757c: 7f 40 d3 78 mr r0,r26 ffc07580: 3b 40 00 00 li r26,0 ffc07584: 48 00 00 10 b ffc07594 } count = 0; while ((n = unsigned_num / base) > 0) { toPrint[count++] = (char) (unsigned_num - (n * base)); ffc07588: 99 4b 00 08 stb r10,8(r11) ffc0758c: 7f 3a cb 78 mr r26,r25 ffc07590: 7d 20 4b 78 mr r0,r9 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { ffc07594: 7d 20 db 96 divwu r9,r0,r27 ffc07598: 2f 89 00 00 cmpwi cr7,r9,0 toPrint[count++] = (char) (unsigned_num - (n * base)); ffc0759c: 7d 49 d9 d6 mullw r10,r9,r27 ffc075a0: 7d 61 d2 14 add r11,r1,r26 ffc075a4: 7d 4a 00 50 subf r10,r10,r0 ffc075a8: 3b 3a 00 01 addi r25,r26,1 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { ffc075ac: 40 9e ff dc bne+ cr7,ffc07588 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; ffc075b0: 98 0b 00 08 stb r0,8(r11) ffc075b4: 48 00 00 10 b ffc075c4 for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); ffc075b8: 80 1c 00 00 lwz r0,0(r28) ffc075bc: 7c 09 03 a6 mtctr r0 ffc075c0: 4e 80 04 21 bctrl toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) ffc075c4: 7f 9d c8 40 cmplw cr7,r29,r25 BSP_output_char(lead); ffc075c8: 7f 03 c3 78 mr r3,r24 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) ffc075cc: 3b bd ff ff addi r29,r29,-1 ffc075d0: 41 9d ff e8 bgt+ cr7,ffc075b8 ffc075d4: 7f 57 d2 14 add r26,r23,r26 ffc075d8: 3b a0 00 00 li r29,0 ffc075dc: 48 00 00 1c b ffc075f8 BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc075e0: 89 3a 00 00 lbz r9,0(r26) toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { ffc075e4: 3b 5a ff ff addi r26,r26,-1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc075e8: 80 1c 00 00 lwz r0,0(r28) ffc075ec: 7c 75 48 ae lbzx r3,r21,r9 ffc075f0: 7c 09 03 a6 mtctr r0 ffc075f4: 4e 80 04 21 bctrl toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { ffc075f8: 7f 9d c8 40 cmplw cr7,r29,r25 ffc075fc: 3b bd 00 01 addi r29,r29,1 ffc07600: 41 9c ff e0 blt+ cr7,ffc075e0 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { ffc07604: 3b ff 00 01 addi r31,r31,1 ffc07608: 88 7f 00 00 lbz r3,0(r31) ffc0760c: 2f 83 00 00 cmpwi cr7,r3,0 ffc07610: 40 9e fc c8 bne+ cr7,ffc072d8 sign, width, lead ); } } ffc07614: 80 01 00 5c lwz r0,92(r1) ffc07618: 82 a1 00 2c lwz r21,44(r1) ffc0761c: 7c 08 03 a6 mtlr r0 ffc07620: 82 c1 00 30 lwz r22,48(r1) ffc07624: 82 e1 00 34 lwz r23,52(r1) ffc07628: 83 01 00 38 lwz r24,56(r1) ffc0762c: 83 21 00 3c lwz r25,60(r1) ffc07630: 83 41 00 40 lwz r26,64(r1) ffc07634: 83 61 00 44 lwz r27,68(r1) ffc07638: 83 81 00 48 lwz r28,72(r1) ffc0763c: 83 a1 00 4c lwz r29,76(r1) ffc07640: 83 c1 00 50 lwz r30,80(r1) ffc07644: 83 e1 00 54 lwz r31,84(r1) ffc07648: 38 21 00 58 addi r1,r1,88 ffc0764c: 4e 80 00 20 blr ffc1b650 : ssize_t write( int fd, const void *buffer, size_t count ) { ffc1b650: 94 21 ff f0 stwu r1,-16(r1) ffc1b654: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b658: 3d 20 00 00 lis r9,0 ssize_t write( int fd, const void *buffer, size_t count ) { ffc1b65c: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b660: 80 09 26 4c lwz r0,9804(r9) ssize_t write( int fd, const void *buffer, size_t count ) { ffc1b664: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1b668: 7f 83 00 40 cmplw cr7,r3,r0 ffc1b66c: 40 9c 00 20 bge- cr7,ffc1b68c <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1b670: 3d 40 00 00 lis r10,0 ffc1b674: 83 ea 27 08 lwz r31,9992(r10) ffc1b678: 1c 63 00 48 mulli r3,r3,72 ffc1b67c: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1b680: 80 1f 00 18 lwz r0,24(r31) ffc1b684: 70 0a 01 00 andi. r10,r0,256 ffc1b688: 40 a2 00 10 bne+ ffc1b698 <== ALWAYS TAKEN ffc1b68c: 4b ff 4f 5d bl ffc105e8 <__errno> <== NOT EXECUTED ffc1b690: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1b694: 48 00 00 44 b ffc1b6d8 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); ffc1b698: 2f 84 00 00 cmpwi cr7,r4,0 ffc1b69c: 41 9e 00 18 beq- cr7,ffc1b6b4 <== NEVER TAKEN rtems_libio_check_count( count ); ffc1b6a0: 2f 85 00 00 cmpwi cr7,r5,0 ffc1b6a4: 38 60 00 00 li r3,0 ffc1b6a8: 41 9e 00 70 beq- cr7,ffc1b718 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc1b6ac: 70 09 00 04 andi. r9,r0,4 ffc1b6b0: 40 a2 00 10 bne+ ffc1b6c0 <== ALWAYS TAKEN ffc1b6b4: 4b ff 4f 35 bl ffc105e8 <__errno> <== NOT EXECUTED ffc1b6b8: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1b6bc: 48 00 00 1c b ffc1b6d8 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) ffc1b6c0: 81 3f 00 40 lwz r9,64(r31) ffc1b6c4: 80 09 00 0c lwz r0,12(r9) ffc1b6c8: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b6cc: 40 be 00 18 bne+ cr7,ffc1b6e4 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1b6d0: 4b ff 4f 19 bl ffc105e8 <__errno> <== NOT EXECUTED ffc1b6d4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1b6d8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1b6dc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1b6e0: 48 00 00 38 b ffc1b718 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); ffc1b6e4: 7f e3 fb 78 mr r3,r31 ffc1b6e8: 7c 09 03 a6 mtctr r0 ffc1b6ec: 4e 80 04 21 bctrl if ( rc > 0 ) ffc1b6f0: 2c 03 00 00 cmpwi r3,0 ffc1b6f4: 40 81 00 24 ble- ffc1b718 <== NEVER TAKEN iop->offset += rc; ffc1b6f8: 80 ff 00 10 lwz r7,16(r31) ffc1b6fc: 7c 6a 1b 78 mr r10,r3 ffc1b700: 81 1f 00 14 lwz r8,20(r31) ffc1b704: 7c 69 fe 70 srawi r9,r3,31 ffc1b708: 7d 88 50 14 addc r12,r8,r10 ffc1b70c: 7d 67 49 14 adde r11,r7,r9 ffc1b710: 91 7f 00 10 stw r11,16(r31) ffc1b714: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1b718: 80 01 00 14 lwz r0,20(r1) ffc1b71c: 83 e1 00 0c lwz r31,12(r1) ffc1b720: 38 21 00 10 addi r1,r1,16 ffc1b724: 7c 08 03 a6 mtlr r0 ffc1b728: 4e 80 00 20 blr ffc08ff0 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08ff0: 94 21 ff d8 stwu r1,-40(r1) ffc08ff4: 7c 08 02 a6 mflr r0 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc08ff8: 3d 20 00 00 lis r9,0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08ffc: 90 01 00 2c stw r0,44(r1) int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc09000: 80 09 26 4c lwz r0,9804(r9) ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc09004: 93 81 00 18 stw r28,24(r1) ffc09008: 7c bc 2b 78 mr r28,r5 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc0900c: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc09010: 93 21 00 0c stw r25,12(r1) ffc09014: 93 41 00 10 stw r26,16(r1) ffc09018: 93 61 00 14 stw r27,20(r1) ffc0901c: 93 a1 00 1c stw r29,28(r1) ffc09020: 93 c1 00 20 stw r30,32(r1) ffc09024: 93 e1 00 24 stw r31,36(r1) int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc09028: 40 9c 00 20 bge- cr7,ffc09048 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc0902c: 3d 20 00 00 lis r9,0 ffc09030: 83 a9 27 0c lwz r29,9996(r9) ffc09034: 1c 63 00 48 mulli r3,r3,72 ffc09038: 7f bd 1a 14 add r29,r29,r3 rtems_libio_check_is_open( iop ); ffc0903c: 80 1d 00 18 lwz r0,24(r29) ffc09040: 70 09 01 00 andi. r9,r0,256 ffc09044: 40 a2 00 10 bne+ ffc09054 ffc09048: 48 00 a1 cd bl ffc13214 <__errno> ffc0904c: 38 00 00 09 li r0,9 ffc09050: 48 00 00 14 b ffc09064 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc09054: 70 09 00 04 andi. r9,r0,4 ffc09058: 40 a2 00 14 bne+ ffc0906c <== ALWAYS TAKEN ffc0905c: 48 00 a1 b9 bl ffc13214 <__errno> ffc09060: 38 00 00 16 li r0,22 ffc09064: 90 03 00 00 stw r0,0(r3) ffc09068: 48 00 00 cc b ffc09134 /* * Argument validation on IO vector */ if ( !iov ) ffc0906c: 2f 84 00 00 cmpwi cr7,r4,0 ffc09070: 41 be ff ec beq- cr7,ffc0905c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc09074: 2f 85 00 00 cmpwi cr7,r5,0 ffc09078: 40 bd ff e4 ble- cr7,ffc0905c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc0907c: 2f 85 04 00 cmpwi cr7,r5,1024 ffc09080: 41 bd ff dc bgt- cr7,ffc0905c <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) ffc09084: 81 3d 00 40 lwz r9,64(r29) ffc09088: 80 09 00 0c lwz r0,12(r9) ffc0908c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09090: 40 be 00 10 bne+ cr7,ffc090a0 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc09094: 48 00 a1 81 bl ffc13214 <__errno> <== NOT EXECUTED ffc09098: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0909c: 4b ff ff c8 b ffc09064 <== NOT EXECUTED ffc090a0: 7c a9 03 a6 mtctr r5 ffc090a4: 7c 9e 23 78 mr r30,r4 ffc090a8: 7c 89 23 78 mr r9,r4 ffc090ac: 38 00 00 01 li r0,1 ffc090b0: 39 60 00 00 li r11,0 * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { if ( !iov[v].iov_base ) ffc090b4: 81 49 00 00 lwz r10,0(r9) ffc090b8: 2f 8a 00 00 cmpwi cr7,r10,0 ffc090bc: 41 be ff a0 beq- cr7,ffc0905c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) ffc090c0: 81 09 00 04 lwz r8,4(r9) * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { ffc090c4: 39 29 00 08 addi r9,r9,8 if ( iov[v].iov_len ) all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; ffc090c8: 7d 4b 42 14 add r10,r11,r8 if ( total < old || total > SSIZE_MAX ) ffc090cc: 7f 0a 58 00 cmpw cr6,r10,r11 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) ffc090d0: 31 08 ff ff addic r8,r8,-1 ffc090d4: 7d 08 41 10 subfe r8,r8,r8 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) ffc090d8: 2f 8a 7f ff cmpwi cr7,r10,32767 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) ffc090dc: 7c 00 40 38 and r0,r0,r8 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) ffc090e0: 41 b8 ff 7c blt- cr6,ffc0905c ffc090e4: 41 bd ff 78 bgt- cr7,ffc0905c <== NEVER TAKEN * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { ffc090e8: 42 40 00 0c bdz- ffc090f4 ffc090ec: 7d 4b 53 78 mr r11,r10 ffc090f0: 4b ff ff c4 b ffc090b4 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { ffc090f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc090f8: 3b 60 00 00 li r27,0 ffc090fc: 3b e0 00 00 li r31,0 ffc09100: 40 9e 00 7c bne- cr7,ffc0917c /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc09104: 80 be 00 04 lwz r5,4(r30) } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc09108: 3b 7b 00 01 addi r27,r27,1 /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc0910c: 2f 85 00 00 cmpwi cr7,r5,0 ffc09110: 41 be 00 60 beq+ cr7,ffc09170 <== NEVER TAKEN continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc09114: 81 3d 00 40 lwz r9,64(r29) ffc09118: 7f a3 eb 78 mr r3,r29 ffc0911c: 80 9e 00 00 lwz r4,0(r30) ffc09120: 80 09 00 0c lwz r0,12(r9) ffc09124: 7c 09 03 a6 mtctr r0 ffc09128: 4e 80 04 21 bctrl if ( bytes < 0 ) ffc0912c: 2c 03 00 00 cmpwi r3,0 ffc09130: 40 a0 00 0c bge+ ffc0913c <== ALWAYS TAKEN ffc09134: 3b e0 ff ff li r31,-1 ffc09138: 48 00 00 44 b ffc0917c return -1; if ( bytes > 0 ) { ffc0913c: 41 82 00 28 beq- ffc09164 <== NEVER TAKEN iop->offset += bytes; ffc09140: 81 7d 00 10 lwz r11,16(r29) ffc09144: 7c 7a 1b 78 mr r26,r3 ffc09148: 81 9d 00 14 lwz r12,20(r29) ffc0914c: 7c 79 fe 70 srawi r25,r3,31 total += bytes; ffc09150: 7f ff 1a 14 add r31,r31,r3 if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc09154: 7d 4c d0 14 addc r10,r12,r26 ffc09158: 7d 2b c9 14 adde r9,r11,r25 ffc0915c: 91 3d 00 10 stw r9,16(r29) ffc09160: 91 5d 00 14 stw r10,20(r29) total += bytes; } if (bytes != iov[ v ].iov_len) ffc09164: 80 1e 00 04 lwz r0,4(r30) ffc09168: 7f 83 00 00 cmpw cr7,r3,r0 ffc0916c: 40 9e 00 10 bne- cr7,ffc0917c <== NEVER TAKEN } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc09170: 7f 9b e0 00 cmpw cr7,r27,r28 ffc09174: 3b de 00 08 addi r30,r30,8 ffc09178: 41 9c ff 8c blt+ cr7,ffc09104 if (bytes != iov[ v ].iov_len) break; } return total; } ffc0917c: 80 01 00 2c lwz r0,44(r1) ffc09180: 7f e3 fb 78 mr r3,r31 ffc09184: 83 21 00 0c lwz r25,12(r1) ffc09188: 7c 08 03 a6 mtlr r0 ffc0918c: 83 41 00 10 lwz r26,16(r1) ffc09190: 83 61 00 14 lwz r27,20(r1) ffc09194: 83 81 00 18 lwz r28,24(r1) ffc09198: 83 a1 00 1c lwz r29,28(r1) ffc0919c: 83 c1 00 20 lwz r30,32(r1) ffc091a0: 83 e1 00 24 lwz r31,36(r1) ffc091a4: 38 21 00 28 addi r1,r1,40 ffc091a8: 4e 80 00 20 blr