ffc04d94 : static void CPU_usage_Per_thread_handler( Thread_Control *the_thread ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); ffc04d94: 38 00 00 00 li r0,0 ffc04d98: 90 03 00 88 stw r0,136(r3) ffc04d9c: 90 03 00 84 stw r0,132(r3) #else the_thread->cpu_time_used = 0; #endif } ffc04da0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bcf8 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { ffc0bcf8: 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; ffc0bcfc: 81 23 00 10 lwz r9,16(r3) <== ALWAYS TAKEN switch( node->type ) { ffc0bd00: 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; ffc0bd04: 81 29 00 34 lwz r9,52(r9) <== ALWAYS TAKEN switch( node->type ) { ffc0bd08: 38 0b ff ff addi r0,r11,-1 ffc0bd0c: 2b 80 00 06 cmplwi cr7,r0,6 ffc0bd10: 41 9d 00 54 bgt- cr7,ffc0bd64 <== NEVER TAKEN ffc0bd14: 3d 60 ff c2 lis r11,-62 ffc0bd18: 39 6b df a8 addi r11,r11,-8280 <== ALWAYS TAKEN ffc0bd1c: 54 00 10 3a rlwinm r0,r0,2,0,29 <== ALWAYS TAKEN ffc0bd20: 7c 0b 00 2e lwzx r0,r11,r0 ffc0bd24: 7d 60 5a 14 add r11,r0,r11 ffc0bd28: 7d 69 03 a6 mtctr r11 <== ALWAYS TAKEN ffc0bd2c: 4e 80 04 20 bctr <== ALWAYS TAKEN case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; ffc0bd30: 80 09 00 08 lwz r0,8(r9) ffc0bd34: 48 00 00 2c b ffc0bd60 <== ALWAYS TAKEN break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; ffc0bd38: 3d 20 ff c2 lis r9,-62 <== ALWAYS TAKEN ffc0bd3c: 38 09 e0 74 addi r0,r9,-8076 ffc0bd40: 48 00 00 20 b ffc0bd60 <== ALWAYS TAKEN break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; ffc0bd44: 3d 20 ff c2 lis r9,-62 ffc0bd48: 38 09 e0 ac addi r0,r9,-8020 ffc0bd4c: 48 00 00 14 b ffc0bd60 <== ALWAYS TAKEN break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; ffc0bd50: 80 09 00 04 lwz r0,4(r9) ffc0bd54: 48 00 00 0c b ffc0bd60 <== ALWAYS TAKEN break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; ffc0bd58: 3d 20 ff c2 lis r9,-62 ffc0bd5c: 38 09 df c4 addi r0,r9,-8252 ffc0bd60: 90 03 00 08 stw r0,8(r3) break; } return 0; } ffc0bd64: 38 60 00 00 li r3,0 ffc0bd68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0fde0 : IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc0fde0: 94 21 ff d8 stwu r1,-40(r1) ffc0fde4: 7c 08 02 a6 mflr r0 ffc0fde8: 93 81 00 18 stw r28,24(r1) ffc0fdec: 7c 9c 23 78 mr r28,r4 struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc0fdf0: 38 80 00 68 li r4,104 IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc0fdf4: 93 a1 00 1c stw r29,28(r1) ffc0fdf8: 7c 7d 1b 78 mr r29,r3 struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc0fdfc: 38 60 00 01 li r3,1 IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc0fe00: 93 c1 00 20 stw r30,32(r1) <== ALWAYS TAKEN ffc0fe04: 7c be 2b 78 mr r30,r5 ffc0fe08: 93 e1 00 24 stw r31,36(r1) ffc0fe0c: 90 01 00 2c stw r0,44(r1) struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc0fe10: 4b ff d0 95 bl ffc0cea4 <== ALWAYS TAKEN if ( !node ) ffc0fe14: 7c 7f 1b 79 mr. r31,r3 ffc0fe18: 41 82 00 50 beq- ffc0fe68 <== NEVER TAKEN return NULL; /* * Fill in the basic information */ node->st_nlink = 1; ffc0fe1c: 38 00 00 01 li r0,1 <== ALWAYS TAKEN node->type = type; ffc0fe20: 93 bf 00 4c stw r29,76(r31) <== ALWAYS TAKEN strncpy( node->name, name, IMFS_NAME_MAX ); ffc0fe24: 7f 84 e3 78 mr r4,r28 return NULL; /* * Fill in the basic information */ node->st_nlink = 1; ffc0fe28: b0 1f 00 34 sth r0,52(r31) node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); ffc0fe2c: 38 a0 00 20 li r5,32 ffc0fe30: 38 7f 00 0c addi r3,r31,12 ffc0fe34: 48 00 31 71 bl ffc12fa4 <== ALWAYS TAKEN /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; ffc0fe38: 93 df 00 30 stw r30,48(r31) #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); ffc0fe3c: 4b ff d2 d1 bl ffc0d10c <== ALWAYS TAKEN ffc0fe40: b0 7f 00 3c sth r3,60(r31) <== ALWAYS TAKEN node->st_gid = getegid(); ffc0fe44: 4b ff d2 b9 bl ffc0d0fc <== ALWAYS TAKEN #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); ffc0fe48: 38 80 00 00 li r4,0 * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); node->st_gid = getegid(); ffc0fe4c: b0 7f 00 3e sth r3,62(r31) #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); ffc0fe50: 38 61 00 08 addi r3,r1,8 ffc0fe54: 4b ff d2 c9 bl ffc0d11c <== ALWAYS TAKEN node->stat_atime = (time_t) tv.tv_sec; ffc0fe58: 80 01 00 08 lwz r0,8(r1) node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; ffc0fe5c: 90 1f 00 48 stw r0,72(r31) <== ALWAYS TAKEN /* * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; ffc0fe60: 90 1f 00 40 stw r0,64(r31) node->stat_mtime = (time_t) tv.tv_sec; ffc0fe64: 90 1f 00 44 stw r0,68(r31) node->stat_ctime = (time_t) tv.tv_sec; return node; } ffc0fe68: 80 01 00 2c lwz r0,44(r1) ffc0fe6c: 7f e3 fb 78 mr r3,r31 ffc0fe70: 83 81 00 18 lwz r28,24(r1) <== ALWAYS TAKEN ffc0fe74: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0fe78: 83 a1 00 1c lwz r29,28(r1) ffc0fe7c: 83 c1 00 20 lwz r30,32(r1) <== ALWAYS TAKEN ffc0fe80: 83 e1 00 24 lwz r31,36(r1) <== ALWAYS TAKEN ffc0fe84: 38 21 00 28 addi r1,r1,40 <== ALWAYS TAKEN ffc0fe88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11818 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { ffc11818: 94 21 ff d8 stwu r1,-40(r1) ffc1181c: 7c 08 02 a6 mflr r0 ffc11820: 90 01 00 2c stw r0,44(r1) ffc11824: 93 e1 00 24 stw r31,36(r1) IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; ffc11828: 83 e3 00 00 lwz r31,0(r3) int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { ffc1182c: 93 a1 00 1c stw r29,28(r1) ffc11830: 7c bd 2b 78 mr r29,r5 ffc11834: 93 c1 00 20 stw r30,32(r1) ffc11838: 7c 9e 23 78 mr r30,r4 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); ffc1183c: 48 00 15 65 bl ffc12da0 <== ALWAYS TAKEN if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) ffc11840: a0 1f 00 3c lhz r0,60(r31) ffc11844: 7f 80 18 00 cmpw cr7,r0,r3 ffc11848: 41 9e 00 20 beq- cr7,ffc11868 <== ALWAYS TAKEN ffc1184c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc11850: 41 be 00 18 beq+ cr7,ffc11868 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); ffc11854: 48 00 67 bd bl ffc18010 <__errno> <== NOT EXECUTED ffc11858: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc1185c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc11860: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc11864: 48 00 00 24 b ffc11888 <== NOT EXECUTED #endif jnode->st_uid = owner; ffc11868: b3 df 00 3c sth r30,60(r31) jnode->st_gid = group; IMFS_update_ctime( jnode ); ffc1186c: 38 61 00 08 addi r3,r1,8 ffc11870: 38 80 00 00 li r4,0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; jnode->st_gid = group; ffc11874: b3 bf 00 3e sth r29,62(r31) IMFS_update_ctime( jnode ); ffc11878: 4b ff 40 79 bl ffc058f0 <== ALWAYS TAKEN ffc1187c: 80 01 00 08 lwz r0,8(r1) ffc11880: 38 60 00 00 li r3,0 ffc11884: 90 1f 00 48 stw r0,72(r31) return 0; } ffc11888: 80 01 00 2c lwz r0,44(r1) ffc1188c: 83 a1 00 1c lwz r29,28(r1) ffc11890: 7c 08 03 a6 mtlr r0 ffc11894: 83 c1 00 20 lwz r30,32(r1) ffc11898: 83 e1 00 24 lwz r31,36(r1) ffc1189c: 38 21 00 28 addi r1,r1,40 ffc118a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0fedc : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0fedc: 94 21 ff e8 stwu r1,-24(r1) ffc0fee0: 7c 08 02 a6 mflr r0 ffc0fee4: 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 ) ffc0fee8: 7c 7f 1b 79 mr. r31,r3 <== ALWAYS TAKEN IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0feec: 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 ) ffc0fef0: 3b 80 00 00 li r28,0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc0fef4: 93 a1 00 0c stw r29,12(r1) <== ALWAYS TAKEN ffc0fef8: 7c fd 3b 78 mr r29,r7 ffc0fefc: 93 c1 00 10 stw r30,16(r1) ffc0ff00: 7c 9e 23 78 mr r30,r4 ffc0ff04: 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 ) ffc0ff08: 41 a2 01 18 beq+ ffc10020 <== NEVER TAKEN return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); ffc0ff0c: 3d 20 00 00 lis r9,0 ffc0ff10: 81 29 26 dc lwz r9,9948(r9) <== ALWAYS TAKEN ffc0ff14: 7c a4 2b 78 mr r4,r5 <== ALWAYS TAKEN ffc0ff18: 7f c3 f3 78 mr r3,r30 ffc0ff1c: 80 a9 00 2c lwz r5,44(r9) ffc0ff20: 7c c5 28 78 andc r5,r6,r5 ffc0ff24: 4b ff fe bd bl ffc0fde0 <== ALWAYS TAKEN if ( !node ) ffc0ff28: 7c 7c 1b 79 mr. r28,r3 ffc0ff2c: 41 82 00 f4 beq- ffc10020 <== NEVER TAKEN return NULL; /* * Set the type specific information */ switch (type) { ffc0ff30: 3b de ff ff addi r30,r30,-1 ffc0ff34: 2b 9e 00 06 cmplwi cr7,r30,6 ffc0ff38: 41 9d 00 9c bgt- cr7,ffc0ffd4 <== NEVER TAKEN ffc0ff3c: 3d 20 ff c2 lis r9,-62 ffc0ff40: 39 29 e3 b4 addi r9,r9,-7244 ffc0ff44: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc0ff48: 7c 09 f0 2e lwzx r0,r9,r30 ffc0ff4c: 7d 20 4a 14 add r9,r0,r9 ffc0ff50: 7d 29 03 a6 mtctr r9 ffc0ff54: 4e 80 04 20 bctr <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ff58: 39 3c 00 54 addi r9,r28,84 <== ALWAYS TAKEN the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ff5c: 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); ffc0ff60: 91 3c 00 50 stw r9,80(r28) <== ALWAYS TAKEN the_chain->permanent_null = NULL; ffc0ff64: 39 20 00 00 li r9,0 <== ALWAYS TAKEN ffc0ff68: 91 3c 00 54 stw r9,84(r28) the_chain->last = _Chain_Head(the_chain); ffc0ff6c: 90 1c 00 58 stw r0,88(r28) ffc0ff70: 48 00 00 84 b ffc0fff4 <== ALWAYS TAKEN 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; ffc0ff74: 80 1d 00 00 lwz r0,0(r29) ffc0ff78: 48 00 00 54 b ffc0ffcc <== ALWAYS TAKEN break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; ffc0ff7c: 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; ffc0ff80: 80 1d 00 00 lwz r0,0(r29) node->info.device.minor = info->device.minor; ffc0ff84: 91 3c 00 54 stw r9,84(r28) ffc0ff88: 48 00 00 44 b ffc0ffcc <== ALWAYS TAKEN break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; ffc0ff8c: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc0ff90: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc0ff94: 91 3c 00 50 stw r9,80(r28) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc0ff98: 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; ffc0ff9c: 91 5c 00 54 stw r10,84(r28) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc0ffa0: 90 1c 00 58 stw r0,88(r28) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; ffc0ffa4: 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; ffc0ffa8: 39 20 00 00 li r9,0 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; ffc0ffac: 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; ffc0ffb0: 39 40 00 00 li r10,0 ffc0ffb4: 91 3c 00 50 stw r9,80(r28) ffc0ffb8: 91 5c 00 54 stw r10,84(r28) node->info.file.indirect = 0; ffc0ffbc: 90 1c 00 58 stw r0,88(r28) node->info.file.doubly_indirect = 0; ffc0ffc0: 90 1c 00 5c stw r0,92(r28) node->info.file.triply_indirect = 0; break; ffc0ffc4: 48 00 00 30 b ffc0fff4 <== ALWAYS TAKEN case IMFS_FIFO: node->info.fifo.pipe = NULL; ffc0ffc8: 38 00 00 00 li r0,0 ffc0ffcc: 90 1c 00 50 stw r0,80(r28) break; ffc0ffd0: 48 00 00 24 b ffc0fff4 <== ALWAYS TAKEN default: assert(0); ffc0ffd4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0ffd8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc0ffdc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0ffe0: 38 63 e3 e1 addi r3,r3,-7199 <== NOT EXECUTED ffc0ffe4: 38 a5 e3 d0 addi r5,r5,-7216 <== NOT EXECUTED ffc0ffe8: 38 c6 d7 79 addi r6,r6,-10375 <== NOT EXECUTED ffc0ffec: 38 80 00 5c li r4,92 <== NOT EXECUTED ffc0fff0: 4b ff 3b f9 bl ffc03be8 <__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; ffc0fff4: 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 ); ffc0fff8: 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; ffc0fffc: 80 7f 00 00 lwz r3,0(r31) fs_info = parent_loc->mt_entry->fs_info; ffc10000: 81 29 00 34 lwz r9,52(r9) <== ALWAYS TAKEN node->Parent = parent; ffc10004: 90 7c 00 08 stw r3,8(r28) ffc10008: 38 63 00 50 addi r3,r3,80 node->st_ino = ++fs_info->ino_count; ffc1000c: 81 69 00 00 lwz r11,0(r9) ffc10010: 38 0b 00 01 addi r0,r11,1 ffc10014: 90 09 00 00 stw r0,0(r9) ffc10018: 90 1c 00 38 stw r0,56(r28) ffc1001c: 4b ff 88 6d bl ffc08888 <_Chain_Append> <== ALWAYS TAKEN rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } ffc10020: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc10024: 7f 83 e3 78 mr r3,r28 ffc10028: 83 a1 00 0c lwz r29,12(r1) ffc1002c: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc10030: 83 81 00 08 lwz r28,8(r1) ffc10034: 83 c1 00 10 lwz r30,16(r1) ffc10038: 83 e1 00 14 lwz r31,20(r1) ffc1003c: 38 21 00 18 addi r1,r1,24 ffc10040: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0fe8c : IMFS_jnode_t *IMFS_create_root_node(void) { ffc0fe8c: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc0fe90: 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) ); ffc0fe94: 3c 80 ff c2 lis r4,-62 ffc0fe98: 38 84 de ac addi r4,r4,-8532 return node; } IMFS_jnode_t *IMFS_create_root_node(void) { ffc0fe9c: 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) ); ffc0fea0: 38 60 00 01 li r3,1 ffc0fea4: 38 a0 41 ed li r5,16877 ffc0fea8: 4b ff ff 39 bl ffc0fde0 <== ALWAYS TAKEN if ( !node ) ffc0feac: 2c 03 00 00 cmpwi r3,0 <== ALWAYS TAKEN ffc0feb0: 41 82 00 1c beq- ffc0fecc <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0feb4: 39 23 00 54 addi r9,r3,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0feb8: 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); ffc0febc: 91 23 00 50 stw r9,80(r3) the_chain->permanent_null = NULL; ffc0fec0: 39 20 00 00 li r9,0 ffc0fec4: 91 23 00 54 stw r9,84(r3) the_chain->last = _Chain_Head(the_chain); ffc0fec8: 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; } ffc0fecc: 80 01 00 0c lwz r0,12(r1) ffc0fed0: 38 21 00 08 addi r1,r1,8 ffc0fed4: 7c 08 03 a6 mtlr r0 ffc0fed8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05ecc : * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { ffc05ecc: 94 21 ff f0 stwu r1,-16(r1) ffc05ed0: 7c 08 02 a6 mflr r0 fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); ffc05ed4: 3c 60 ff c2 lis r3,-62 * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { ffc05ed8: 93 e1 00 0c stw r31,12(r1) fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); ffc05edc: 3f e0 00 00 lis r31,0 ffc05ee0: 38 63 7f fa addi r3,r3,32762 * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { ffc05ee4: 90 01 00 14 stw r0,20(r1) fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); ffc05ee8: 81 3f 27 4c lwz r9,10060(r31) ffc05eec: 80 89 00 08 lwz r4,8(r9) ffc05ef0: 48 01 1a 01 bl ffc178f0 <== ALWAYS TAKEN fprintf(stdout, "/\n" ); ffc05ef4: 81 3f 27 4c lwz r9,10060(r31) ffc05ef8: 3c 60 ff c3 lis r3,-61 ffc05efc: 80 89 00 08 lwz r4,8(r9) ffc05f00: 38 63 80 2f addi r3,r3,-32721 ffc05f04: 48 01 19 ed bl ffc178f0 <== ALWAYS TAKEN IMFS_dump_directory( rtems_filesystem_root.node_access, 0 ); ffc05f08: 3d 20 00 00 lis r9,0 ffc05f0c: 81 29 27 3c lwz r9,10044(r9) ffc05f10: 38 80 00 00 li r4,0 ffc05f14: 80 69 00 18 lwz r3,24(r9) ffc05f18: 4b ff fe 75 bl ffc05d8c <== ALWAYS TAKEN fprintf(stdout, "*************** End of Dump ***************\n" ); ffc05f1c: 81 3f 27 4c lwz r9,10060(r31) ffc05f20: 3c 60 ff c3 lis r3,-61 ffc05f24: 80 89 00 08 lwz r4,8(r9) ffc05f28: 38 63 80 32 addi r3,r3,-32718 ffc05f2c: 48 01 19 c5 bl ffc178f0 <== ALWAYS TAKEN } ffc05f30: 80 01 00 14 lwz r0,20(r1) ffc05f34: 83 e1 00 0c lwz r31,12(r1) ffc05f38: 38 21 00 10 addi r1,r1,16 ffc05f3c: 7c 08 03 a6 mtlr r0 ffc05f40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05d8c : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); ffc05d8c: 2c 03 00 00 cmpwi r3,0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { ffc05d90: 94 21 ff d8 stwu r1,-40(r1) ffc05d94: 7c 08 02 a6 mflr r0 ffc05d98: 93 c1 00 20 stw r30,32(r1) ffc05d9c: 7c 9e 23 78 mr r30,r4 ffc05da0: 90 01 00 2c stw r0,44(r1) ffc05da4: 93 21 00 0c stw r25,12(r1) ffc05da8: 93 41 00 10 stw r26,16(r1) ffc05dac: 93 61 00 14 stw r27,20(r1) ffc05db0: 93 81 00 18 stw r28,24(r1) ffc05db4: 93 a1 00 1c stw r29,28(r1) ffc05db8: 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 ); ffc05dbc: 40 a2 00 24 bne+ ffc05de0 <== ALWAYS TAKEN ffc05dc0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05dc4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05dc8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05dcc: 38 63 7f 00 addi r3,r3,32512 <== NOT EXECUTED ffc05dd0: 38 a5 7e ec addi r5,r5,32492 <== NOT EXECUTED ffc05dd4: 38 c6 7f b6 addi r6,r6,32694 <== NOT EXECUTED ffc05dd8: 38 80 00 84 li r4,132 <== NOT EXECUTED ffc05ddc: 48 00 00 28 b ffc05e04 <== NOT EXECUTED assert( level >= 0 ); ffc05de0: 2f 84 00 00 cmpwi cr7,r4,0 ffc05de4: 40 bc 00 24 bge+ cr7,ffc05e08 <== ALWAYS TAKEN ffc05de8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05dec: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05df0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05df4: 38 63 7f 00 addi r3,r3,32512 <== NOT EXECUTED ffc05df8: 38 a5 7e ec addi r5,r5,32492 <== NOT EXECUTED ffc05dfc: 38 c6 7f c4 addi r6,r6,32708 <== NOT EXECUTED ffc05e00: 38 80 00 86 li r4,134 <== NOT EXECUTED ffc05e04: 48 00 09 65 bl ffc06768 <__assert_func> <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); ffc05e08: 80 03 00 4c lwz r0,76(r3) ffc05e0c: 2f 80 00 01 cmpwi cr7,r0,1 ffc05e10: 41 be 00 24 beq+ cr7,ffc05e34 <== ALWAYS TAKEN ffc05e14: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05e18: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05e1c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05e20: 38 63 7f 00 addi r3,r3,32512 <== NOT EXECUTED ffc05e24: 38 a5 7e ec addi r5,r5,32492 <== NOT EXECUTED ffc05e28: 38 c6 7f cf addi r6,r6,32719 <== NOT EXECUTED ffc05e2c: 38 80 00 88 li r4,136 <== NOT EXECUTED ffc05e30: 4b ff ff d4 b ffc05e04 <== NOT EXECUTED the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc05e34: 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; ffc05e38: 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, "...." ); ffc05e3c: 3f 60 ff c2 lis r27,-62 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc05e40: 3b 23 00 54 addi r25,r3,84 ffc05e44: 3b 5a 27 4c addi r26,r26,10060 ffc05e48: 3b 7b 7f f5 addi r27,r27,32757 IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); ffc05e4c: 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; ffc05e50: 48 00 00 48 b ffc05e98 <== ALWAYS TAKEN !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; ffc05e54: 3b a0 00 00 li r29,0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc05e58: 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++ ) ffc05e5c: 3b bd 00 01 addi r29,r29,1 fprintf(stdout, "...." ); ffc05e60: 7f 63 db 78 mr r3,r27 ffc05e64: 80 89 00 08 lwz r4,8(r9) ffc05e68: 48 01 1a 89 bl ffc178f0 <== ALWAYS TAKEN !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++ ) ffc05e6c: 7f 9d f0 00 cmpw cr7,r29,r30 ffc05e70: 40 9d ff e8 ble+ cr7,ffc05e58 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); ffc05e74: 7f e3 fb 78 mr r3,r31 ffc05e78: 4b ff fd 2d bl ffc05ba4 <== ALWAYS TAKEN if ( the_jnode->type == IMFS_DIRECTORY ) ffc05e7c: 80 1f 00 4c lwz r0,76(r31) ffc05e80: 2f 80 00 01 cmpwi cr7,r0,1 ffc05e84: 40 be 00 10 bne+ cr7,ffc05e94 IMFS_dump_directory( the_jnode, level + 1 ); ffc05e88: 7f e3 fb 78 mr r3,r31 ffc05e8c: 7f 84 e3 78 mr r4,r28 ffc05e90: 4b ff fe fd bl ffc05d8c <== ALWAYS TAKEN 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 ) { ffc05e94: 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; ffc05e98: 7f 9f c8 00 cmpw cr7,r31,r25 ffc05e9c: 40 9e ff b8 bne+ cr7,ffc05e54 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } ffc05ea0: 80 01 00 2c lwz r0,44(r1) ffc05ea4: 83 21 00 0c lwz r25,12(r1) ffc05ea8: 7c 08 03 a6 mtlr r0 ffc05eac: 83 41 00 10 lwz r26,16(r1) ffc05eb0: 83 61 00 14 lwz r27,20(r1) ffc05eb4: 83 81 00 18 lwz r28,24(r1) ffc05eb8: 83 a1 00 1c lwz r29,28(r1) ffc05ebc: 83 c1 00 20 lwz r30,32(r1) ffc05ec0: 83 e1 00 24 lwz r31,36(r1) ffc05ec4: 38 21 00 28 addi r1,r1,40 ffc05ec8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bf7c : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0bf7c: 94 21 ff 88 stwu r1,-120(r1) ffc0bf80: 7c 08 02 a6 mflr r0 ffc0bf84: 90 01 00 7c stw r0,124(r1) ffc0bf88: 92 e1 00 54 stw r23,84(r1) case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0bf8c: 3e e0 00 00 lis r23,0 ffc0bf90: 3a f7 26 dc addi r23,r23,9948 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0bf94: 93 c1 00 70 stw r30,112(r1) ffc0bf98: 92 a1 00 4c stw r21,76(r1) <== ALWAYS TAKEN ffc0bf9c: 92 c1 00 50 stw r22,80(r1) /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; ffc0bfa0: 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 */ ) { ffc0bfa4: 93 01 00 58 stw r24,88(r1) * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); ffc0bfa8: 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 */ ) { ffc0bfac: 93 21 00 5c stw r25,92(r1) * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); ffc0bfb0: 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 */ ) { ffc0bfb4: 93 41 00 60 stw r26,96(r1) ffc0bfb8: 7c 7a 1b 78 mr r26,r3 ffc0bfbc: 93 61 00 64 stw r27,100(r1) ffc0bfc0: 7c bb 2b 78 mr r27,r5 ffc0bfc4: 93 81 00 68 stw r28,104(r1) <== ALWAYS TAKEN /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; ffc0bfc8: 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 */ ) { ffc0bfcc: 93 a1 00 6c stw r29,108(r1) ffc0bfd0: 7c 9d 23 78 mr r29,r4 ffc0bfd4: 93 e1 00 74 stw r31,116(r1) ffc0bfd8: 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 ); ffc0bfdc: 7c 7a e2 14 add r3,r26,r28 <== ALWAYS TAKEN ffc0bfe0: 7f a4 eb 78 mr r4,r29 ffc0bfe4: 7f 25 cb 78 mr r5,r25 ffc0bfe8: 7f 06 c3 78 mr r6,r24 ffc0bfec: 48 00 0a 05 bl ffc0c9f0 <== ALWAYS TAKEN pathnamelen -= len; i += len; if ( !pathloc->node_access ) ffc0bff0: 80 1f 00 00 lwz r0,0(r31) * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); ffc0bff4: 7c 76 1b 78 mr r22,r3 <== ALWAYS TAKEN pathnamelen -= len; ffc0bff8: 82 a1 00 08 lwz r21,8(r1) i += len; if ( !pathloc->node_access ) ffc0bffc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c000: 41 9e 01 40 beq- cr7,ffc0c140 <== 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 ) ffc0c004: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c008: 41 9e 00 24 beq- cr7,ffc0c02c if ( node->type == IMFS_DIRECTORY ) ffc0c00c: 80 1e 00 4c lwz r0,76(r30) ffc0c010: 2f 80 00 01 cmpwi cr7,r0,1 <== ALWAYS TAKEN ffc0c014: 40 be 00 18 bne+ cr7,ffc0c02c if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) ffc0c018: 7f e3 fb 78 mr r3,r31 ffc0c01c: 38 80 00 01 li r4,1 ffc0c020: 4b ff fd 4d bl ffc0bd6c <== ALWAYS TAKEN ffc0c024: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc0c028: 41 9e 01 e4 beq- cr7,ffc0c20c rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0c02c: 2f 96 00 03 cmpwi cr7,r22,3 if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; ffc0c030: 83 df 00 00 lwz r30,0(r31) while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; ffc0c034: 7f 9c aa 14 add r28,r28,r21 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; ffc0c038: 7f b5 e8 50 subf r29,r21,r29 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0c03c: 41 9e 00 80 beq- cr7,ffc0c0bc ffc0c040: 2f 96 00 04 cmpwi cr7,r22,4 <== ALWAYS TAKEN ffc0c044: 41 9e 01 10 beq- cr7,ffc0c154 ffc0c048: 2f 16 00 02 cmpwi cr6,r22,2 <== ALWAYS TAKEN ffc0c04c: 40 ba 01 14 bne+ cr6,ffc0c160 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0c050: 81 37 00 00 lwz r9,0(r23) ffc0c054: 80 09 00 18 lwz r0,24(r9) ffc0c058: 7f 9e 00 00 cmpw cr7,r30,r0 ffc0c05c: 41 be ff 80 beq- cr7,ffc0bfdc /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { ffc0c060: 81 1f 00 10 lwz r8,16(r31) /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == ffc0c064: 80 08 00 1c lwz r0,28(r8) ffc0c068: 7f 9e 00 00 cmpw cr7,r30,r0 ffc0c06c: 40 be 00 38 bne+ cr7,ffc0c0a4 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c070: 81 28 00 14 lwz r9,20(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c074: 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; ffc0c078: 80 e8 00 08 lwz r7,8(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c07c: 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; ffc0c080: 81 48 00 0c lwz r10,12(r8) ffc0c084: 81 68 00 10 lwz r11,16(r8) ffc0c088: 90 e1 00 0c stw r7,12(r1) ffc0c08c: 91 41 00 10 stw r10,16(r1) ffc0c090: 91 61 00 14 stw r11,20(r1) ffc0c094: 91 21 00 18 stw r9,24(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0c098: 80 81 00 08 lwz r4,8(r1) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c09c: 80 08 00 18 lwz r0,24(r8) ffc0c0a0: 48 00 01 14 b ffc0c1b4 <== ALWAYS TAKEN pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) ffc0c0a4: 83 de 00 08 lwz r30,8(r30) ffc0c0a8: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0c0ac: 40 be 00 a0 bne+ cr7,ffc0c14c rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c0b0: 48 00 5b 5d bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c0b4: 92 c3 00 00 stw r22,0(r3) ffc0c0b8: 48 00 01 60 b ffc0c218 <== ALWAYS TAKEN case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { ffc0c0bc: 80 1e 00 4c lwz r0,76(r30) <== ALWAYS TAKEN ffc0c0c0: 2f 80 00 03 cmpwi cr7,r0,3 ffc0c0c4: 40 be 00 20 bne+ cr7,ffc0c0e4 IMFS_evaluate_hard_link( pathloc, 0 ); ffc0c0c8: 7f e3 fb 78 mr r3,r31 ffc0c0cc: 38 80 00 00 li r4,0 ffc0c0d0: 4b ff fd 1d bl ffc0bdec <== ALWAYS TAKEN node = pathloc->node_access; ffc0c0d4: 83 df 00 00 lwz r30,0(r31) if ( !node ) ffc0c0d8: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0c0dc: 40 be 00 2c bne+ cr7,ffc0c108 <== ALWAYS TAKEN ffc0c0e0: 48 00 00 34 b ffc0c114 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { ffc0c0e4: 2f 80 00 04 cmpwi cr7,r0,4 ffc0c0e8: 40 be 00 20 bne+ cr7,ffc0c108 result = IMFS_evaluate_sym_link( pathloc, 0 ); ffc0c0ec: 7f e3 fb 78 mr r3,r31 ffc0c0f0: 38 80 00 00 li r4,0 ffc0c0f4: 4b ff fd 71 bl ffc0be64 <== ALWAYS TAKEN node = pathloc->node_access; ffc0c0f8: 83 df 00 00 lwz r30,0(r31) if ( result == -1 ) ffc0c0fc: 2f 83 ff ff cmpwi cr7,r3,-1 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); ffc0c100: 7c 76 1b 78 mr r22,r3 node = pathloc->node_access; if ( result == -1 ) ffc0c104: 41 9e 01 18 beq- cr7,ffc0c21c <== NEVER TAKEN /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) ffc0c108: 80 1e 00 4c lwz r0,76(r30) <== ALWAYS TAKEN ffc0c10c: 2f 80 00 01 cmpwi cr7,r0,1 <== ALWAYS TAKEN ffc0c110: 41 be 00 10 beq+ cr7,ffc0c120 rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0c114: 48 00 5a f9 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c118: 38 00 00 14 li r0,20 ffc0c11c: 48 00 00 f8 b ffc0c214 <== ALWAYS TAKEN /* * 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 ) { ffc0c120: 81 1e 00 5c lwz r8,92(r30) <== ALWAYS TAKEN ffc0c124: 2f 88 00 00 cmpwi cr7,r8,0 ffc0c128: 40 9e 00 5c bne- cr7,ffc0c184 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); ffc0c12c: 7f c3 f3 78 mr r3,r30 ffc0c130: 7f 24 cb 78 mr r4,r25 ffc0c134: 48 00 07 e9 bl ffc0c91c <== ALWAYS TAKEN if ( !node ) ffc0c138: 7c 7e 1b 79 mr. r30,r3 ffc0c13c: 40 a2 00 10 bne+ ffc0c14c rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c140: 48 00 5a cd bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c144: 38 00 00 02 li r0,2 ffc0c148: 48 00 00 cc b ffc0c214 <== ALWAYS TAKEN /* * Set the node access to the point we have found. */ pathloc->node_access = node; ffc0c14c: 93 df 00 00 stw r30,0(r31) break; ffc0c150: 4b ff fe 8c b ffc0bfdc <== ALWAYS TAKEN case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc0c154: 48 00 5a b9 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c158: 38 00 00 5b li r0,91 ffc0c15c: 48 00 00 b8 b ffc0c214 <== ALWAYS TAKEN /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { ffc0c160: 2f 16 00 00 cmpwi cr6,r22,0 ffc0c164: 41 9a 00 08 beq- cr6,ffc0c16c ffc0c168: 40 9e fe 74 bne+ cr7,ffc0bfdc <== 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 ) { ffc0c16c: 80 1e 00 4c lwz r0,76(r30) ffc0c170: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c174: 40 9e 00 78 bne- cr7,ffc0c1ec if ( node->info.directory.mt_fs != NULL ) { ffc0c178: 81 1e 00 5c lwz r8,92(r30) ffc0c17c: 2f 88 00 00 cmpwi cr7,r8,0 <== ALWAYS TAKEN ffc0c180: 41 9e 00 6c beq- cr7,ffc0c1ec newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c184: 81 28 00 28 lwz r9,40(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c188: 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; ffc0c18c: 80 e8 00 1c lwz r7,28(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c190: 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; ffc0c194: 81 48 00 20 lwz r10,32(r8) ffc0c198: 81 68 00 24 lwz r11,36(r8) ffc0c19c: 90 e1 00 0c stw r7,12(r1) ffc0c1a0: 91 41 00 10 stw r10,16(r1) ffc0c1a4: 91 61 00 14 stw r11,20(r1) ffc0c1a8: 91 21 00 18 stw r9,24(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c1ac: 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; ffc0c1b0: 80 08 00 2c lwz r0,44(r8) *pathloc = newloc; ffc0c1b4: 90 1f 00 10 stw r0,16(r31) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c1b8: 7c 64 e0 50 subf r3,r4,r28 ffc0c1bc: 7c 7a 1a 14 add r3,r26,r3 */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; ffc0c1c0: 90 ff 00 00 stw r7,0(r31) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c1c4: 7c 9d 22 14 add r4,r29,r4 */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; ffc0c1c8: 91 5f 00 04 stw r10,4(r31) ffc0c1cc: 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; ffc0c1d0: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c1d4: 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; ffc0c1d8: 91 3f 00 0c stw r9,12(r31) <== ALWAYS TAKEN return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0c1dc: 7c 09 03 a6 mtctr r0 ffc0c1e0: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0c1e4: 7c 76 1b 78 mr r22,r3 ffc0c1e8: 48 00 00 34 b ffc0c21c <== ALWAYS TAKEN flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); ffc0c1ec: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0c1f0: 4b ff fb 09 bl ffc0bcf8 <== ALWAYS TAKEN /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) ffc0c1f4: 7f 64 db 78 mr r4,r27 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); ffc0c1f8: 7c 76 1b 78 mr r22,r3 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) ffc0c1fc: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0c200: 4b ff fb 6d bl ffc0bd6c <== ALWAYS TAKEN ffc0c204: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c208: 40 be 00 14 bne+ cr7,ffc0c21c rtems_set_errno_and_return_minus_one( EACCES ); ffc0c20c: 48 00 5a 01 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c210: 38 00 00 0d li r0,13 ffc0c214: 90 03 00 00 stw r0,0(r3) ffc0c218: 3a c0 ff ff li r22,-1 return result; } ffc0c21c: 80 01 00 7c lwz r0,124(r1) ffc0c220: 7e c3 b3 78 mr r3,r22 ffc0c224: 82 a1 00 4c lwz r21,76(r1) ffc0c228: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0c22c: 82 c1 00 50 lwz r22,80(r1) ffc0c230: 82 e1 00 54 lwz r23,84(r1) ffc0c234: 83 01 00 58 lwz r24,88(r1) <== ALWAYS TAKEN ffc0c238: 83 21 00 5c lwz r25,92(r1) ffc0c23c: 83 41 00 60 lwz r26,96(r1) ffc0c240: 83 61 00 64 lwz r27,100(r1) ffc0c244: 83 81 00 68 lwz r28,104(r1) ffc0c248: 83 a1 00 6c lwz r29,108(r1) <== ALWAYS TAKEN ffc0c24c: 83 c1 00 70 lwz r30,112(r1) ffc0c250: 83 e1 00 74 lwz r31,116(r1) ffc0c254: 38 21 00 78 addi r1,r1,120 ffc0c258: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c340 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0c340: 94 21 ff 88 stwu r1,-120(r1) <== ALWAYS TAKEN ffc0c344: 7c 08 02 a6 mflr r0 ffc0c348: 90 01 00 7c stw r0,124(r1) ffc0c34c: 92 e1 00 54 stw r23,84(r1) case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0c350: 3e e0 00 00 lis r23,0 ffc0c354: 3a f7 26 dc addi r23,r23,9948 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0c358: 93 01 00 58 stw r24,88(r1) <== ALWAYS TAKEN * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); ffc0c35c: 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 */ ) { ffc0c360: 93 21 00 5c stw r25,92(r1) * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); ffc0c364: 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 */ ) { ffc0c368: 93 41 00 60 stw r26,96(r1) ffc0c36c: 93 61 00 64 stw r27,100(r1) ffc0c370: 7c bb 2b 78 mr r27,r5 ffc0c374: 93 81 00 68 stw r28,104(r1) ffc0c378: 7c 7c 1b 78 mr r28,r3 ffc0c37c: 93 a1 00 6c stw r29,108(r1) node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); ffc0c380: 3b a0 00 00 li r29,0 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0c384: 93 c1 00 70 stw r30,112(r1) ffc0c388: 93 e1 00 74 stw r31,116(r1) <== ALWAYS TAKEN ffc0c38c: 7c 9f 23 78 mr r31,r4 ffc0c390: 92 a1 00 4c stw r21,76(r1) ffc0c394: 92 c1 00 50 stw r22,80(r1) /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; ffc0c398: 83 c4 00 00 lwz r30,0(r4) /* * Get the path length. */ pathlen = strlen( path ); ffc0c39c: 48 00 6b 6d bl ffc12f08 <== ALWAYS TAKEN ffc0c3a0: 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 ); ffc0c3a4: 7f 44 d3 78 mr r4,r26 ffc0c3a8: 7c 7c ea 14 add r3,r28,r29 <== ALWAYS TAKEN ffc0c3ac: 7f 25 cb 78 mr r5,r25 <== ALWAYS TAKEN ffc0c3b0: 7f 06 c3 78 mr r6,r24 ffc0c3b4: 48 00 06 3d bl ffc0c9f0 <== ALWAYS TAKEN pathlen -= len; i += len; if ( !pathloc->node_access ) ffc0c3b8: 80 1f 00 00 lwz r0,0(r31) */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; ffc0c3bc: 82 a1 00 08 lwz r21,8(r1) * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); ffc0c3c0: 7c 76 1b 78 mr r22,r3 <== ALWAYS TAKEN pathlen -= len; i += len; if ( !pathloc->node_access ) ffc0c3c4: 2f 80 00 00 cmpwi cr7,r0,0 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; ffc0c3c8: 7f 55 d0 50 subf r26,r21,r26 i += len; if ( !pathloc->node_access ) ffc0c3cc: 41 9e 01 d0 beq- cr7,ffc0c59c <== NEVER TAKEN /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) ffc0c3d0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c3d4: 41 9e 00 24 beq- cr7,ffc0c3f8 if ( node->type == IMFS_DIRECTORY ) ffc0c3d8: 80 1e 00 4c lwz r0,76(r30) ffc0c3dc: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c3e0: 40 be 00 18 bne+ cr7,ffc0c3f8 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) ffc0c3e4: 7f e3 fb 78 mr r3,r31 ffc0c3e8: 38 80 00 01 li r4,1 ffc0c3ec: 4b ff f9 81 bl ffc0bd6c <== ALWAYS TAKEN ffc0c3f0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c3f4: 41 9e 02 08 beq- cr7,ffc0c5fc rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0c3f8: 2f 96 00 02 cmpwi cr7,r22,2 <== ALWAYS TAKEN 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; ffc0c3fc: 83 df 00 00 lwz r30,0(r31) <== ALWAYS TAKEN while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; ffc0c400: 7f bd aa 14 add r29,r29,r21 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0c404: 41 9e 00 2c beq- cr7,ffc0c430 ffc0c408: 2b 96 00 02 cmplwi cr7,r22,2 ffc0c40c: 41 9d 00 10 bgt- cr7,ffc0c41c ffc0c410: 2f 96 00 00 cmpwi cr7,r22,0 ffc0c414: 41 9e 01 50 beq- cr7,ffc0c564 ffc0c418: 4b ff ff 8c b ffc0c3a4 <== ALWAYS TAKEN ffc0c41c: 2f 96 00 03 cmpwi cr7,r22,3 ffc0c420: 41 9e 00 78 beq- cr7,ffc0c498 ffc0c424: 2f 96 00 04 cmpwi cr7,r22,4 ffc0c428: 40 9e ff 7c bne+ cr7,ffc0c3a4 <== NEVER TAKEN ffc0c42c: 48 00 01 44 b ffc0c570 <== ALWAYS TAKEN case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0c430: 81 37 00 00 lwz r9,0(r23) ffc0c434: 80 09 00 18 lwz r0,24(r9) ffc0c438: 7f 9e 00 00 cmpw cr7,r30,r0 ffc0c43c: 41 be ff 68 beq- cr7,ffc0c3a4 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ ffc0c440: 81 1f 00 10 lwz r8,16(r31) ffc0c444: 80 08 00 1c lwz r0,28(r8) ffc0c448: 7f 9e 00 00 cmpw cr7,r30,r0 ffc0c44c: 40 be 00 34 bne+ cr7,ffc0c480 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0c450: 81 28 00 14 lwz r9,20(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c454: 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; ffc0c458: 80 e8 00 08 lwz r7,8(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c45c: 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; ffc0c460: 81 48 00 0c lwz r10,12(r8) ffc0c464: 81 68 00 10 lwz r11,16(r8) ffc0c468: 90 e1 00 0c stw r7,12(r1) ffc0c46c: 91 41 00 10 stw r10,16(r1) ffc0c470: 91 61 00 14 stw r11,20(r1) ffc0c474: 91 21 00 18 stw r9,24(r1) ffc0c478: 80 08 00 18 lwz r0,24(r8) ffc0c47c: 48 00 00 98 b ffc0c514 <== ALWAYS TAKEN *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) ffc0c480: 83 de 00 08 lwz r30,8(r30) ffc0c484: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0c488: 40 be 00 d4 bne+ cr7,ffc0c55c rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c48c: 48 00 57 81 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c490: 92 c3 00 00 stw r22,0(r3) ffc0c494: 48 00 01 74 b ffc0c608 <== ALWAYS TAKEN pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { ffc0c498: 80 1e 00 4c lwz r0,76(r30) ffc0c49c: 2f 80 00 03 cmpwi cr7,r0,3 ffc0c4a0: 41 9e 00 0c beq- cr7,ffc0c4ac result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { ffc0c4a4: 2f 80 00 04 cmpwi cr7,r0,4 ffc0c4a8: 40 be 00 1c bne+ cr7,ffc0c4c4 result = IMFS_evaluate_link( pathloc, 0 ); ffc0c4ac: 7f e3 fb 78 mr r3,r31 ffc0c4b0: 38 80 00 00 li r4,0 ffc0c4b4: 4b ff fd a9 bl ffc0c25c <== ALWAYS TAKEN if ( result == -1 ) ffc0c4b8: 2f 83 ff ff cmpwi cr7,r3,-1 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); ffc0c4bc: 7c 7e 1b 78 mr r30,r3 if ( result == -1 ) ffc0c4c0: 41 9e 01 4c beq- cr7,ffc0c60c <== NEVER TAKEN return -1; } node = pathloc->node_access; ffc0c4c4: 80 7f 00 00 lwz r3,0(r31) if ( !node ) ffc0c4c8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c4cc: 41 9e 01 10 beq- cr7,ffc0c5dc <== NEVER TAKEN /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) ffc0c4d0: 80 03 00 4c lwz r0,76(r3) ffc0c4d4: 2f 80 00 01 cmpwi cr7,r0,1 <== ALWAYS TAKEN ffc0c4d8: 40 9e 01 04 bne- cr7,ffc0c5dc /* * 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 ) { ffc0c4dc: 81 03 00 5c lwz r8,92(r3) ffc0c4e0: 2f 88 00 00 cmpwi cr7,r8,0 ffc0c4e4: 41 be 00 68 beq+ cr7,ffc0c54c newloc = node->info.directory.mt_fs->mt_fs_root; ffc0c4e8: 81 28 00 28 lwz r9,40(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c4ec: 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; ffc0c4f0: 80 e8 00 1c lwz r7,28(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c4f4: 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; ffc0c4f8: 81 48 00 20 lwz r10,32(r8) ffc0c4fc: 81 68 00 24 lwz r11,36(r8) ffc0c500: 90 e1 00 0c stw r7,12(r1) ffc0c504: 91 41 00 10 stw r10,16(r1) ffc0c508: 91 61 00 14 stw r11,20(r1) ffc0c50c: 91 21 00 18 stw r9,24(r1) ffc0c510: 80 08 00 2c lwz r0,44(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c514: 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; ffc0c518: 90 1f 00 10 stw r0,16(r31) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c51c: 7f a8 e8 50 subf r29,r8,r29 * 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; ffc0c520: 90 ff 00 00 stw r7,0(r31) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c524: 7c 7c ea 14 add r3,r28,r29 * 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; ffc0c528: 91 5f 00 04 stw r10,4(r31) ffc0c52c: 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; ffc0c530: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c534: 80 09 00 04 lwz r0,4(r9) * 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; ffc0c538: 91 3f 00 0c stw r9,12(r31) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0c53c: 7c 09 03 a6 mtctr r0 ffc0c540: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0c544: 7c 7e 1b 78 mr r30,r3 ffc0c548: 48 00 00 c4 b ffc0c60c <== ALWAYS TAKEN /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); ffc0c54c: 7f 24 cb 78 mr r4,r25 ffc0c550: 48 00 03 cd bl ffc0c91c <== ALWAYS TAKEN /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) ffc0c554: 7c 7e 1b 79 mr. r30,r3 ffc0c558: 41 82 00 24 beq- ffc0c57c done = true; else pathloc->node_access = node; ffc0c55c: 93 df 00 00 stw r30,0(r31) ffc0c560: 4b ff fe 44 b ffc0c3a4 <== ALWAYS TAKEN break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); ffc0c564: 48 00 56 a9 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c568: 38 00 00 11 li r0,17 ffc0c56c: 48 00 00 98 b ffc0c604 <== ALWAYS TAKEN break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc0c570: 48 00 56 9d bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c574: 38 00 00 5b li r0,91 ffc0c578: 48 00 00 8c b ffc0c604 <== ALWAYS TAKEN case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; ffc0c57c: 80 01 00 08 lwz r0,8(r1) ffc0c580: 7d 3c ea 14 add r9,r28,r29 ffc0c584: 7f a0 e8 50 subf r29,r0,r29 ffc0c588: 7f 9c ea 14 add r28,r28,r29 ffc0c58c: 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++) { ffc0c590: 48 00 00 18 b ffc0c5a8 <== ALWAYS TAKEN if ( !IMFS_is_separator( path[ i ] ) ) ffc0c594: 41 9a 00 14 beq- cr6,ffc0c5a8 ffc0c598: 41 86 00 10 beq- cr1,ffc0c5a8 rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c59c: 48 00 56 71 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c5a0: 38 00 00 02 li r0,2 ffc0c5a4: 48 00 00 60 b ffc0c604 <== ALWAYS TAKEN /* * 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++) { ffc0c5a8: 88 09 00 00 lbz r0,0(r9) if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); ffc0c5ac: 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++) { ffc0c5b0: 2f 80 00 00 cmpwi cr7,r0,0 if ( !IMFS_is_separator( path[ i ] ) ) ffc0c5b4: 2c 80 00 5c cmpwi cr1,r0,92 <== ALWAYS TAKEN ffc0c5b8: 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++) { ffc0c5bc: 40 9e ff d8 bne+ cr7,ffc0c594 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); ffc0c5c0: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0c5c4: 4b ff f7 35 bl ffc0bcf8 <== ALWAYS TAKEN /* * The returned node must be a directory */ node = pathloc->node_access; ffc0c5c8: 81 3f 00 00 lwz r9,0(r31) /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); ffc0c5cc: 7c 7e 1b 78 mr r30,r3 <== ALWAYS TAKEN /* * The returned node must be a directory */ node = pathloc->node_access; ffc0c5d0: 80 09 00 4c lwz r0,76(r9) <== ALWAYS TAKEN ffc0c5d4: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c5d8: 41 be 00 10 beq+ cr7,ffc0c5e8 <== ALWAYS TAKEN if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0c5dc: 48 00 56 31 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c5e0: 38 00 00 14 li r0,20 ffc0c5e4: 48 00 00 20 b ffc0c604 <== ALWAYS TAKEN /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) ffc0c5e8: 7f e3 fb 78 mr r3,r31 ffc0c5ec: 38 80 00 03 li r4,3 ffc0c5f0: 4b ff f7 7d bl ffc0bd6c <== ALWAYS TAKEN ffc0c5f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c5f8: 40 be 00 14 bne+ cr7,ffc0c60c rtems_set_errno_and_return_minus_one( EACCES ); ffc0c5fc: 48 00 56 11 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c600: 38 00 00 0d li r0,13 ffc0c604: 90 03 00 00 stw r0,0(r3) ffc0c608: 3b c0 ff ff li r30,-1 return result; } ffc0c60c: 80 01 00 7c lwz r0,124(r1) ffc0c610: 7f c3 f3 78 mr r3,r30 ffc0c614: 82 a1 00 4c lwz r21,76(r1) ffc0c618: 7c 08 03 a6 mtlr r0 ffc0c61c: 82 c1 00 50 lwz r22,80(r1) ffc0c620: 82 e1 00 54 lwz r23,84(r1) <== ALWAYS TAKEN ffc0c624: 83 01 00 58 lwz r24,88(r1) ffc0c628: 83 21 00 5c lwz r25,92(r1) ffc0c62c: 83 41 00 60 lwz r26,96(r1) <== ALWAYS TAKEN ffc0c630: 83 61 00 64 lwz r27,100(r1) ffc0c634: 83 81 00 68 lwz r28,104(r1) ffc0c638: 83 a1 00 6c lwz r29,108(r1) ffc0c63c: 83 c1 00 70 lwz r30,112(r1) ffc0c640: 83 e1 00 74 lwz r31,116(r1) <== ALWAYS TAKEN ffc0c644: 38 21 00 78 addi r1,r1,120 <== ALWAYS TAKEN ffc0c648: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bdec : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0bdec: 94 21 ff e8 stwu r1,-24(r1) ffc0bdf0: 7c 08 02 a6 mflr r0 ffc0bdf4: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode = node->node_access; ffc0bdf8: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0bdfc: 93 e1 00 14 stw r31,20(r1) ffc0be00: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) ffc0be04: 80 09 00 4c lwz r0,76(r9) ffc0be08: 2f 80 00 03 cmpwi cr7,r0,3 ffc0be0c: 41 be 00 0c beq+ cr7,ffc0be18 <== ALWAYS TAKEN rtems_fatal_error_occurred (0xABCD0000); ffc0be10: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc0be14: 4b ff c5 d9 bl ffc083ec <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; ffc0be18: 80 09 00 50 lwz r0,80(r9) IMFS_Set_handlers( node ); ffc0be1c: 90 81 00 08 stw r4,8(r1) /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; ffc0be20: 90 03 00 00 stw r0,0(r3) IMFS_Set_handlers( node ); ffc0be24: 4b ff fe d5 bl ffc0bcf8 <== ALWAYS TAKEN /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) ffc0be28: 80 81 00 08 lwz r4,8(r1) ffc0be2c: 7f e3 fb 78 mr r3,r31 ffc0be30: 4b ff ff 3d bl ffc0bd6c <== ALWAYS TAKEN ffc0be34: 2f 83 00 00 cmpwi cr7,r3,0 ffc0be38: 38 60 00 00 li r3,0 ffc0be3c: 40 be 00 14 bne+ cr7,ffc0be50 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EACCES ); ffc0be40: 48 00 5d cd bl ffc11c0c <__errno> <== NOT EXECUTED ffc0be44: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0be48: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0be4c: 38 60 ff ff li r3,-1 <== NOT EXECUTED return result; } ffc0be50: 80 01 00 1c lwz r0,28(r1) ffc0be54: 83 e1 00 14 lwz r31,20(r1) ffc0be58: 38 21 00 18 addi r1,r1,24 ffc0be5c: 7c 08 03 a6 mtlr r0 ffc0be60: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c25c : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0c25c: 94 21 ff e8 stwu r1,-24(r1) ffc0c260: 7c 08 02 a6 mflr r0 ffc0c264: 93 81 00 08 stw r28,8(r1) /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; ffc0c268: 3f 80 00 00 lis r28,0 ffc0c26c: 3b 9c 26 dc addi r28,r28,9948 int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0c270: 90 01 00 1c stw r0,28(r1) ffc0c274: 93 a1 00 0c stw r29,12(r1) ffc0c278: 93 c1 00 10 stw r30,16(r1) ffc0c27c: 7c 9e 23 78 mr r30,r4 ffc0c280: 93 e1 00 14 stw r31,20(r1) ffc0c284: 7c 7f 1b 78 mr r31,r3 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; ffc0c288: 81 3c 00 00 lwz r9,0(r28) { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; ffc0c28c: 83 bf 00 00 lwz r29,0(r31) /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; ffc0c290: a1 69 00 30 lhz r11,48(r9) ffc0c294: 38 0b 00 01 addi r0,r11,1 ffc0c298: 54 00 04 3e clrlwi r0,r0,16 if ( rtems_filesystem_link_counts > MAXSYMLINK ) { ffc0c29c: 2b 80 00 05 cmplwi cr7,r0,5 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; ffc0c2a0: b0 09 00 30 sth r0,48(r9) if ( rtems_filesystem_link_counts > MAXSYMLINK ) { ffc0c2a4: 40 bd 00 20 ble+ cr7,ffc0c2c4 rtems_filesystem_link_counts = 0; ffc0c2a8: 38 00 00 00 li r0,0 ffc0c2ac: b0 09 00 30 sth r0,48(r9) rtems_set_errno_and_return_minus_one( ELOOP ); ffc0c2b0: 48 00 59 5d bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c2b4: 38 00 00 5c li r0,92 ffc0c2b8: 90 03 00 00 stw r0,0(r3) ffc0c2bc: 38 60 ff ff li r3,-1 ffc0c2c0: 48 00 00 60 b ffc0c320 <== ALWAYS TAKEN /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) ffc0c2c4: 80 1d 00 4c lwz r0,76(r29) ffc0c2c8: 2f 00 00 03 cmpwi cr6,r0,3 result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) ffc0c2cc: 2f 80 00 04 cmpwi cr7,r0,4 /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) ffc0c2d0: 40 ba 00 14 bne+ cr6,ffc0c2e4 result = IMFS_evaluate_hard_link( node, flags ); ffc0c2d4: 7f e3 fb 78 mr r3,r31 ffc0c2d8: 7f c4 f3 78 mr r4,r30 ffc0c2dc: 4b ff fb 11 bl ffc0bdec <== ALWAYS TAKEN ffc0c2e0: 48 00 00 14 b ffc0c2f4 <== ALWAYS TAKEN else if (jnode->type == IMFS_SYM_LINK ) ffc0c2e4: 40 be 00 18 bne+ cr7,ffc0c2fc result = IMFS_evaluate_sym_link( node, flags ); ffc0c2e8: 7f e3 fb 78 mr r3,r31 ffc0c2ec: 7f c4 f3 78 mr r4,r30 ffc0c2f0: 4b ff fb 75 bl ffc0be64 <== ALWAYS TAKEN } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); ffc0c2f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c2f8: 40 9e 00 18 bne- cr7,ffc0c310 result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ffc0c2fc: 81 3d 00 4c lwz r9,76(r29) ffc0c300: 38 09 ff fd addi r0,r9,-3 ffc0c304: 2b 80 00 01 cmplwi cr7,r0,1 ffc0c308: 40 9d ff 80 ble+ cr7,ffc0c288 ffc0c30c: 38 60 00 00 li r3,0 /* * Clear link counter. */ rtems_filesystem_link_counts = 0; ffc0c310: 3d 20 00 00 lis r9,0 ffc0c314: 81 29 26 dc lwz r9,9948(r9) ffc0c318: 38 00 00 00 li r0,0 ffc0c31c: b0 09 00 30 sth r0,48(r9) return result; } ffc0c320: 80 01 00 1c lwz r0,28(r1) ffc0c324: 83 81 00 08 lwz r28,8(r1) ffc0c328: 7c 08 03 a6 mtlr r0 ffc0c32c: 83 a1 00 0c lwz r29,12(r1) ffc0c330: 83 c1 00 10 lwz r30,16(r1) ffc0c334: 83 e1 00 14 lwz r31,20(r1) ffc0c338: 38 21 00 18 addi r1,r1,24 ffc0c33c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bd6c : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { ffc0bd6c: 94 21 ff e8 stwu r1,-24(r1) ffc0bd70: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0bd74: 90 01 00 1c stw r0,28(r1) ffc0bd78: 93 e1 00 14 stw r31,20(r1) if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; ffc0bd7c: 83 e3 00 00 lwz r31,0(r3) int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { ffc0bd80: 93 a1 00 0c stw r29,12(r1) <== ALWAYS TAKEN ffc0bd84: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc0bd88: 7c 9e 23 78 mr r30,r4 <== ALWAYS TAKEN } jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); ffc0bd8c: 48 00 13 81 bl ffc0d10c <== ALWAYS TAKEN ffc0bd90: 7c 7d 1b 78 mr r29,r3 st_gid = getegid(); ffc0bd94: 48 00 13 69 bl ffc0d0fc <== ALWAYS TAKEN * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) ffc0bd98: a1 3f 00 3c lhz r9,60(r31) <== ALWAYS TAKEN flags_to_test <<= 6; ffc0bd9c: 57 c0 30 32 rlwinm r0,r30,6,0,25 * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) ffc0bda0: 7f 89 e8 00 cmpw cr7,r9,r29 ffc0bda4: 41 9e 00 18 beq- cr7,ffc0bdbc flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) ffc0bda8: a1 3f 00 3e lhz r9,62(r31) flags_to_test <<= 3; ffc0bdac: 57 c0 18 38 rlwinm r0,r30,3,0,28 flags_to_test = flags; if ( st_uid == jnode->st_uid ) flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) ffc0bdb0: 7f 89 18 00 cmpw cr7,r9,r3 ffc0bdb4: 41 9e 00 08 beq- cr7,ffc0bdbc <== ALWAYS TAKEN ffc0bdb8: 7f c0 f3 78 mr r0,r30 <== NOT EXECUTED /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0bdbc: 80 7f 00 30 lwz r3,48(r31) return 1; return 0; } ffc0bdc0: 83 a1 00 0c lwz r29,12(r1) /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) ffc0bdc4: 7c 03 18 38 and r3,r0,r3 return 1; return 0; } ffc0bdc8: 83 c1 00 10 lwz r30,16(r1) ffc0bdcc: 7c 63 02 78 xor r3,r3,r0 ffc0bdd0: 80 01 00 1c lwz r0,28(r1) ffc0bdd4: 7c 63 00 34 cntlzw r3,r3 ffc0bdd8: 83 e1 00 14 lwz r31,20(r1) ffc0bddc: 7c 08 03 a6 mtlr r0 ffc0bde0: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc0bde4: 38 21 00 18 addi r1,r1,24 <== ALWAYS TAKEN ffc0bde8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0be64 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be64: 94 21 ff e8 stwu r1,-24(r1) ffc0be68: 7c 08 02 a6 mflr r0 ffc0be6c: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode = node->node_access; ffc0be70: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be74: 93 c1 00 10 stw r30,16(r1) ffc0be78: 7c 9e 23 78 mr r30,r4 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0be7c: 80 09 00 4c lwz r0,76(r9) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be80: 93 e1 00 14 stw r31,20(r1) ffc0be84: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0be88: 2f 80 00 04 cmpwi cr7,r0,4 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0be8c: 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); ffc0be90: 3c 60 ab cd lis r3,-21555 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0be94: 40 9e 00 14 bne- cr7,ffc0bea8 <== NEVER TAKEN rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) ffc0be98: 80 09 00 08 lwz r0,8(r9) ffc0be9c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bea0: 40 be 00 0c bne+ cr7,ffc0beac <== ALWAYS TAKEN rtems_fatal_error_occurred( 0xBAD00000 ); ffc0bea4: 3c 60 ba d0 lis r3,-17712 <== NOT EXECUTED ffc0bea8: 4b ff c5 45 bl ffc083ec <== 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; ffc0beac: 90 1f 00 00 stw r0,0(r31) rtems_filesystem_get_sym_start_loc( ffc0beb0: 81 69 00 50 lwz r11,80(r9) ffc0beb4: 88 0b 00 00 lbz r0,0(r11) ffc0beb8: 2f 80 00 2f cmpwi cr7,r0,47 ffc0bebc: 41 9e 00 18 beq- cr7,ffc0bed4 ffc0bec0: 2f 80 00 5c cmpwi cr7,r0,92 ffc0bec4: 41 9e 00 10 beq- cr7,ffc0bed4 <== NEVER TAKEN ffc0bec8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0becc: 38 00 00 00 li r0,0 ffc0bed0: 40 9e 00 38 bne- cr7,ffc0bf08 <== ALWAYS TAKEN ffc0bed4: 3d 60 00 00 lis r11,0 ffc0bed8: 81 6b 26 dc lwz r11,9948(r11) ffc0bedc: 38 00 00 01 li r0,1 ffc0bee0: 80 cb 00 18 lwz r6,24(r11) ffc0bee4: 80 eb 00 1c lwz r7,28(r11) ffc0bee8: 81 0b 00 20 lwz r8,32(r11) ffc0beec: 81 4b 00 24 lwz r10,36(r11) ffc0bef0: 90 df 00 00 stw r6,0(r31) ffc0bef4: 90 ff 00 04 stw r7,4(r31) ffc0bef8: 91 1f 00 08 stw r8,8(r31) ffc0befc: 91 5f 00 0c stw r10,12(r31) ffc0bf00: 81 6b 00 28 lwz r11,40(r11) ffc0bf04: 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] ), ffc0bf08: 83 a9 00 50 lwz r29,80(r9) ffc0bf0c: 7f bd 02 14 add r29,r29,r0 ffc0bf10: 7f a3 eb 78 mr r3,r29 ffc0bf14: 48 00 6f f5 bl ffc12f08 <== ALWAYS TAKEN /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0bf18: 7f c5 f3 78 mr r5,r30 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), ffc0bf1c: 7c 64 1b 78 mr r4,r3 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0bf20: 7f e6 fb 78 mr r6,r31 ffc0bf24: 7f a3 eb 78 mr r3,r29 ffc0bf28: 48 00 00 55 bl ffc0bf7c <== ALWAYS TAKEN ffc0bf2c: 7c 7d 1b 78 mr r29,r3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); ffc0bf30: 7f e3 fb 78 mr r3,r31 ffc0bf34: 4b ff fd c5 bl ffc0bcf8 <== ALWAYS TAKEN /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) ffc0bf38: 7f e3 fb 78 mr r3,r31 ffc0bf3c: 7f c4 f3 78 mr r4,r30 ffc0bf40: 4b ff fe 2d bl ffc0bd6c <== ALWAYS TAKEN ffc0bf44: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bf48: 40 be 00 14 bne+ cr7,ffc0bf5c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EACCES ); ffc0bf4c: 48 00 5c c1 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0bf50: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0bf54: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0bf58: 3b a0 ff ff li r29,-1 <== NOT EXECUTED return result; } ffc0bf5c: 80 01 00 1c lwz r0,28(r1) ffc0bf60: 7f a3 eb 78 mr r3,r29 ffc0bf64: 83 c1 00 10 lwz r30,16(r1) ffc0bf68: 7c 08 03 a6 mtlr r0 ffc0bf6c: 83 a1 00 0c lwz r29,12(r1) ffc0bf70: 83 e1 00 14 lwz r31,20(r1) ffc0bf74: 38 21 00 18 addi r1,r1,24 ffc0bf78: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10044 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { ffc10044: 94 21 ff e0 stwu r1,-32(r1) ffc10048: 7c 08 02 a6 mflr r0 ffc1004c: 90 01 00 24 stw r0,36(r1) ffc10050: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; ffc10054: 83 e3 00 00 lwz r31,0(r3) int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { ffc10058: 93 c1 00 18 stw r30,24(r1) ffc1005c: 7c 9e 23 78 mr r30,r4 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); ffc10060: 4b ff d0 ad bl ffc0d10c <== ALWAYS TAKEN if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) ffc10064: a0 1f 00 3c lhz r0,60(r31) ffc10068: 7f 80 18 00 cmpw cr7,r0,r3 ffc1006c: 41 9e 00 20 beq- cr7,ffc1008c <== ALWAYS TAKEN ffc10070: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10074: 41 be 00 18 beq+ cr7,ffc1008c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); ffc10078: 48 00 1b 95 bl ffc11c0c <__errno> <== NOT EXECUTED ffc1007c: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc10080: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc10084: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc10088: 48 00 00 30 b ffc100b8 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); ffc1008c: 80 1f 00 30 lwz r0,48(r31) ffc10090: 57 de 05 3e clrlwi r30,r30,20 IMFS_update_ctime( jnode ); ffc10094: 38 61 00 08 addi r3,r1,8 /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); ffc10098: 54 00 00 26 rlwinm r0,r0,0,0,19 ffc1009c: 7f de 03 78 or r30,r30,r0 ffc100a0: 93 df 00 30 stw r30,48(r31) IMFS_update_ctime( jnode ); ffc100a4: 38 80 00 00 li r4,0 ffc100a8: 4b ff d0 75 bl ffc0d11c <== ALWAYS TAKEN ffc100ac: 80 01 00 08 lwz r0,8(r1) ffc100b0: 38 60 00 00 li r3,0 ffc100b4: 90 1f 00 48 stw r0,72(r31) return 0; } ffc100b8: 80 01 00 24 lwz r0,36(r1) ffc100bc: 83 c1 00 18 lwz r30,24(r1) ffc100c0: 7c 08 03 a6 mtlr r0 ffc100c4: 83 e1 00 1c lwz r31,28(r1) ffc100c8: 38 21 00 20 addi r1,r1,32 ffc100cc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc100d0 : int cmd, rtems_libio_t *iop ) { return 0; } ffc100d0: 38 60 00 00 li r3,0 ffc100d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16f30 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } ffc16f30: 38 60 00 00 li r3,0 ffc16f34: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c830 : } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c830: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc0c834: 7c 08 02 a6 mflr r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c838: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c83c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED ffc0c840: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c844: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c848: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc0c84c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c850: 38 7f 00 50 addi r3,r31,80 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0c854: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0c858: 48 00 30 81 bl ffc0f8d8 <== NOT EXECUTED if (! err) { ffc0c85c: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc0c860: 40 a2 00 38 bne+ ffc0c898 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0c864: 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) ffc0c868: 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; ffc0c86c: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc0c870: 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) ffc0c874: 48 00 09 89 bl ffc0d1fc <== NOT EXECUTED ffc0c878: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0c87c: 40 9e 00 30 bne- cr7,ffc0c8ac <== NOT EXECUTED ffc0c880: a0 1f 00 34 lhz r0,52(r31) <== NOT EXECUTED ffc0c884: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0c888: 40 be 00 24 bne+ cr7,ffc0c8ac <== NOT EXECUTED free(jnode); ffc0c88c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0c890: 4b ff 77 c9 bl ffc04058 <== NOT EXECUTED ffc0c894: 48 00 00 18 b ffc0c8ac <== NOT EXECUTED } IMFS_FIFO_RETURN(err); ffc0c898: 40 a0 00 14 bge+ ffc0c8ac <== NOT EXECUTED ffc0c89c: 7f bd 00 d0 neg r29,r29 <== NOT EXECUTED ffc0c8a0: 48 00 53 6d bl ffc11c0c <__errno> <== NOT EXECUTED ffc0c8a4: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc0c8a8: 3b a0 ff ff li r29,-1 <== NOT EXECUTED } ffc0c8ac: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc0c8b0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0c8b4: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc0c8b8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c8bc: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0c8c0: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc0c8c4: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0c8c8: 4e 80 00 20 blr <== NOT EXECUTED ffc0c6b0 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0c6b0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0c6b4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c6b8: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0c6bc: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0c6c0: 3c 00 80 04 lis r0,-32764 <== NOT EXECUTED ffc0c6c4: 60 00 66 7e ori r0,r0,26238 <== NOT EXECUTED ffc0c6c8: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0c6cc: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0c6d0: 40 9e 00 38 bne- cr7,ffc0c708 <== NOT EXECUTED if (buffer == NULL) ffc0c6d4: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc0c6d8: 3b e0 ff f2 li r31,-14 <== NOT EXECUTED ffc0c6dc: 41 9e 00 40 beq- cr7,ffc0c71c <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) ffc0c6e0: 81 25 00 00 lwz r9,0(r5) <== NOT EXECUTED ffc0c6e4: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc0c6e8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0c6ec: 41 9e 00 0c beq- cr7,ffc0c6f8 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; ffc0c6f0: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc0c6f4: 48 00 00 08 b ffc0c6fc <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc0c6f8: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc0c6fc: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED ffc0c700: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc0c704: 48 00 00 28 b ffc0c72c <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); ffc0c708: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0c70c: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0c710: 48 00 2c d1 bl ffc0f3e0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c714: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc0c718: 40 a0 00 14 bge+ ffc0c72c <== NOT EXECUTED ffc0c71c: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED ffc0c720: 48 00 54 ed bl ffc11c0c <__errno> <== NOT EXECUTED ffc0c724: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0c728: 3b e0 ff ff li r31,-1 <== NOT EXECUTED } ffc0c72c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0c730: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0c734: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0c738: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0c73c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c740: 4e 80 00 20 blr <== NOT EXECUTED ffc0c64c : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc0c64c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0c650: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c654: 7c 68 1b 78 mr r8,r3 <== NOT EXECUTED ffc0c658: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0c65c: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); ffc0c660: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0c664: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0c668: 48 00 2d 01 bl ffc0f368 <== NOT EXECUTED ffc0c66c: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c670: 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); ffc0c674: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0c678: 7c 6a 1b 78 mr r10,r3 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c67c: 40 bc 00 18 bge+ cr7,ffc0c694 <== NOT EXECUTED ffc0c680: 48 00 55 8d bl ffc11c0c <__errno> <== NOT EXECUTED ffc0c684: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED ffc0c688: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0c68c: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc0c690: 39 40 ff ff li r10,-1 <== NOT EXECUTED } ffc0c694: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0c698: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED ffc0c69c: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc0c6a0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0c6a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c6a8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0c6ac: 4e 80 00 20 blr <== NOT EXECUTED ffc0c8cc : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0c8cc: 94 21 ff f0 stwu r1,-16(r1) ffc0c8d0: 7c 08 02 a6 mflr r0 ffc0c8d4: 7c 64 1b 78 mr r4,r3 ffc0c8d8: 90 01 00 14 stw r0,20(r1) IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); ffc0c8dc: 81 23 00 3c lwz r9,60(r3) rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0c8e0: 93 e1 00 0c stw r31,12(r1) IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); ffc0c8e4: 38 69 00 50 addi r3,r9,80 ffc0c8e8: 48 00 31 11 bl ffc0f9f8 <== ALWAYS TAKEN IMFS_FIFO_RETURN(err); ffc0c8ec: 7c 7f 1b 79 mr. r31,r3 ffc0c8f0: 40 a0 00 14 bge+ ffc0c904 <== NEVER TAKEN ffc0c8f4: 7f ff 00 d0 neg r31,r31 ffc0c8f8: 48 00 53 15 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0c8fc: 93 e3 00 00 stw r31,0(r3) ffc0c900: 3b e0 ff ff li r31,-1 } ffc0c904: 80 01 00 14 lwz r0,20(r1) ffc0c908: 7f e3 fb 78 mr r3,r31 ffc0c90c: 83 e1 00 0c lwz r31,12(r1) ffc0c910: 38 21 00 10 addi r1,r1,16 ffc0c914: 7c 08 03 a6 mtlr r0 ffc0c918: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c7bc : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc0c7bc: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0c7c0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0c7c4: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0c7c8: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0c7cc: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0c7d0: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c7d4: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); ffc0c7d8: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0c7dc: 48 00 2c 89 bl ffc0f464 <== NOT EXECUTED if (err > 0) ffc0c7e0: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0c7e4: 40 81 00 1c ble- ffc0c800 <== NOT EXECUTED IMFS_update_atime(jnode); ffc0c7e8: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0c7ec: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0c7f0: 48 00 09 2d bl ffc0d11c <== NOT EXECUTED ffc0c7f4: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0c7f8: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED ffc0c7fc: 48 00 00 18 b ffc0c814 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0c800: 41 a2 00 14 beq+ ffc0c814 <== NOT EXECUTED ffc0c804: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0c808: 48 00 54 05 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0c80c: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0c810: 3b c0 ff ff li r30,-1 <== NOT EXECUTED } ffc0c814: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0c818: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c81c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0c820: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c824: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0c828: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0c82c: 4e 80 00 20 blr <== NOT EXECUTED ffc0c744 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc0c744: 94 21 ff e0 stwu r1,-32(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 24 stw r0,36(r1) <== NOT EXECUTED ffc0c754: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0c758: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0c75c: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); ffc0c760: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0c764: 48 00 2e f1 bl ffc0f654 <== NOT EXECUTED if (err > 0) { ffc0c768: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0c76c: 40 81 00 20 ble- ffc0c78c <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); ffc0c770: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0c774: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0c778: 48 00 09 a5 bl ffc0d11c <== NOT EXECUTED ffc0c77c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0c780: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED ffc0c784: 90 1f 00 44 stw r0,68(r31) <== NOT EXECUTED ffc0c788: 48 00 00 18 b ffc0c7a0 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); ffc0c78c: 41 a2 00 14 beq+ ffc0c7a0 <== NOT EXECUTED ffc0c790: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0c794: 48 00 54 79 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0c798: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0c79c: 3b c0 ff ff li r30,-1 <== NOT EXECUTED } ffc0c7a0: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0c7a4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c7a8: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0c7ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0c7b0: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0c7b4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0c7b8: 4e 80 00 20 blr <== NOT EXECUTED ffc0c91c : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0c91c: 94 21 ff e8 stwu r1,-24(r1) <== ALWAYS TAKEN ffc0c920: 7c 08 02 a6 mflr r0 ffc0c924: 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 ); ffc0c928: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0c92c: 93 c1 00 10 stw r30,16(r1) ffc0c930: 7c 9e 23 78 mr r30,r4 ffc0c934: 90 01 00 1c stw r0,28(r1) ffc0c938: 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 ); ffc0c93c: 40 a2 00 24 bne+ ffc0c960 <== ALWAYS TAKEN ffc0c940: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0c944: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc0c948: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0c94c: 38 63 e0 1b addi r3,r3,-8165 <== NOT EXECUTED ffc0c950: 38 a5 df fc addi r5,r5,-8196 <== NOT EXECUTED ffc0c954: 38 c6 e0 67 addi r6,r6,-8089 <== NOT EXECUTED ffc0c958: 38 80 00 2a li r4,42 <== NOT EXECUTED ffc0c95c: 4b ff 72 8d bl ffc03be8 <__assert_func> <== NOT EXECUTED if ( !name ) ffc0c960: 2f 84 00 00 cmpwi cr7,r4,0 ffc0c964: 41 9e 00 68 beq- cr7,ffc0c9cc <== NEVER TAKEN /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) ffc0c968: 3f a0 ff c2 lis r29,-62 ffc0c96c: 3b bd df fc addi r29,r29,-8196 <== ALWAYS TAKEN ffc0c970: 7c 83 23 78 mr r3,r4 ffc0c974: 38 9d 00 18 addi r4,r29,24 ffc0c978: 48 00 64 71 bl ffc12de8 <== ALWAYS TAKEN ffc0c97c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c980: 41 9e 00 50 beq- cr7,ffc0c9d0 <== NEVER TAKEN return directory; if ( !strcmp( name, dotdotname ) ) ffc0c984: 38 9d 00 1c addi r4,r29,28 ffc0c988: 7f c3 f3 78 mr r3,r30 ffc0c98c: 48 00 64 5d bl ffc12de8 <== ALWAYS TAKEN ffc0c990: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c994: 40 9e 00 0c bne- cr7,ffc0c9a0 <== ALWAYS TAKEN return directory->Parent; ffc0c998: 83 ff 00 08 lwz r31,8(r31) <== NOT EXECUTED ffc0c99c: 48 00 00 34 b ffc0c9d0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0c9a0: 3b bf 00 54 addi r29,r31,84 the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0c9a4: 83 ff 00 50 lwz r31,80(r31) ffc0c9a8: 48 00 00 1c b ffc0c9c4 <== ALWAYS TAKEN !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 ) ) ffc0c9ac: 7f c3 f3 78 mr r3,r30 ffc0c9b0: 38 9f 00 0c addi r4,r31,12 ffc0c9b4: 48 00 64 35 bl ffc12de8 <== ALWAYS TAKEN ffc0c9b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c9bc: 41 9e 00 14 beq- cr7,ffc0c9d0 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 ) { ffc0c9c0: 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; ffc0c9c4: 7f 9f e8 00 cmpw cr7,r31,r29 <== ALWAYS TAKEN ffc0c9c8: 40 9e ff e4 bne+ cr7,ffc0c9ac ffc0c9cc: 3b e0 00 00 li r31,0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } ffc0c9d0: 80 01 00 1c lwz r0,28(r1) ffc0c9d4: 7f e3 fb 78 mr r3,r31 ffc0c9d8: 83 a1 00 0c lwz r29,12(r1) ffc0c9dc: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0c9e0: 83 c1 00 10 lwz r30,16(r1) <== ALWAYS TAKEN ffc0c9e4: 83 e1 00 14 lwz r31,20(r1) ffc0c9e8: 38 21 00 18 addi r1,r1,24 ffc0c9ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1272c : int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { return 0; } ffc1272c: 38 60 00 00 li r3,0 ffc12730: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12734 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc12734: 94 21 ff c8 stwu r1,-56(r1) ffc12738: 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; ffc1273c: 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 ) { ffc12740: 90 01 00 3c stw r0,60(r1) ffc12744: 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; ffc12748: 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; ffc1274c: 83 a3 00 1c lwz r29,28(r3) loc = temp_mt_entry->mt_fs_root; ffc12750: 81 63 00 24 lwz r11,36(r3) ffc12754: 81 23 00 28 lwz r9,40(r3) ffc12758: 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; ffc1275c: 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 ) { ffc12760: 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; ffc12764: 91 41 00 0c stw r10,12(r1) ffc12768: 91 61 00 10 stw r11,16(r1) ffc1276c: 91 21 00 14 stw r9,20(r1) ffc12770: 90 01 00 18 stw r0,24(r1) ffc12774: 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 ) { ffc12778: 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 ); ffc1277c: 3b e1 00 08 addi r31,r1,8 ffc12780: 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; ffc12784: 93 a1 00 08 stw r29,8(r1) */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; ffc12788: 83 dd 00 08 lwz r30,8(r29) loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); ffc1278c: 4b ff f3 7d bl ffc11b08 <== ALWAYS TAKEN if ( jnode->type != IMFS_DIRECTORY ) { ffc12790: 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; ffc12794: 38 1d 00 54 addi r0,r29,84 ffc12798: 2f 89 00 01 cmpwi cr7,r9,1 ffc1279c: 40 9e 00 10 bne- cr7,ffc127ac ffc127a0: 81 3d 00 50 lwz r9,80(r29) ffc127a4: 7f 89 00 00 cmpw cr7,r9,r0 ffc127a8: 40 be 00 1c bne+ cr7,ffc127c4 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); ffc127ac: 38 60 00 00 li r3,0 ffc127b0: 7f e4 fb 78 mr r4,r31 ffc127b4: 4b ff 28 79 bl ffc0502c <== ALWAYS TAKEN if (result != 0) ffc127b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc127bc: 40 9e 00 3c bne- cr7,ffc127f8 <== NEVER TAKEN ffc127c0: 7f dd f3 78 mr r29,r30 return -1; jnode = next; } if ( jnode != NULL ) { ffc127c4: 2f 9d 00 00 cmpwi cr7,r29,0 ffc127c8: 41 9e 00 38 beq- cr7,ffc12800 if ( jnode->type == IMFS_DIRECTORY ) { ffc127cc: 80 1d 00 4c lwz r0,76(r29) ffc127d0: 2f 80 00 01 cmpwi cr7,r0,1 ffc127d4: 40 9e ff ac bne+ cr7,ffc12780 <== NEVER TAKEN ffc127d8: 80 1d 00 50 lwz r0,80(r29) ffc127dc: 39 3d 00 54 addi r9,r29,84 ffc127e0: 7f 80 48 00 cmpw cr7,r0,r9 ffc127e4: 41 be ff 9c beq- cr7,ffc12780 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); ffc127e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc127ec: 7c 1d 03 78 mr r29,r0 ffc127f0: 40 9e ff 90 bne+ cr7,ffc12780 <== ALWAYS TAKEN ffc127f4: 48 00 00 0c b ffc12800 <== NOT EXECUTED ffc127f8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc127fc: 48 00 00 08 b ffc12804 <== NOT EXECUTED ffc12800: 38 60 00 00 li r3,0 return 0; } ffc12804: 80 01 00 3c lwz r0,60(r1) ffc12808: 83 a1 00 2c lwz r29,44(r1) ffc1280c: 7c 08 03 a6 mtlr r0 ffc12810: 83 c1 00 30 lwz r30,48(r1) ffc12814: 83 e1 00 34 lwz r31,52(r1) ffc12818: 38 21 00 38 addi r1,r1,56 ffc1281c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c9f0 : const char *path, int pathlen, char *token, int *token_len ) { ffc0c9f0: 94 21 ff f0 stwu r1,-16(r1) ffc0c9f4: 7c 08 02 a6 mflr r0 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0c9f8: 39 60 00 21 li r11,33 const char *path, int pathlen, char *token, int *token_len ) { ffc0c9fc: 93 e1 00 0c stw r31,12(r1) register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0ca00: 39 20 00 00 li r9,0 <== ALWAYS TAKEN const char *path, int pathlen, char *token, int *token_len ) { ffc0ca04: 7c bf 2b 78 mr r31,r5 register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0ca08: 7d 69 03 a6 mtctr r11 const char *path, int pathlen, char *token, int *token_len ) { ffc0ca0c: 90 01 00 14 stw r0,20(r1) ffc0ca10: 93 c1 00 08 stw r30,8(r1) register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0ca14: 88 03 00 00 lbz r0,0(r3) <== ALWAYS TAKEN while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { ffc0ca18: 48 00 00 1c b ffc0ca34 <== ALWAYS TAKEN token[i] = c; ffc0ca1c: 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]; ffc0ca20: 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 ) ffc0ca24: 42 00 00 0c bdnz- ffc0ca30 ffc0ca28: 3b c0 00 04 li r30,4 ffc0ca2c: 48 00 00 bc b ffc0cae8 <== ALWAYS TAKEN return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; ffc0ca30: 7c 03 48 ae lbzx r0,r3,r9 <== ALWAYS TAKEN /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { ffc0ca34: 2c 00 00 2f cmpwi r0,47 ffc0ca38: 2c 80 00 5c cmpwi cr1,r0,92 ffc0ca3c: 2f 00 00 00 cmpwi cr6,r0,0 ffc0ca40: 7f 89 20 00 cmpw cr7,r9,r4 ffc0ca44: 41 82 00 10 beq- ffc0ca54 ffc0ca48: 41 86 00 0c beq- cr1,ffc0ca54 ffc0ca4c: 41 9a 00 08 beq- cr6,ffc0ca54 ffc0ca50: 41 9c ff cc blt+ cr7,ffc0ca1c /* * Copy a seperator into token. */ if ( i == 0 ) { ffc0ca54: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc0ca58: 40 9e 00 24 bne- cr7,ffc0ca7c token[i] = c; if ( (token[i] != '\0') && pathlen ) { ffc0ca5c: 2f 80 00 00 cmpwi cr7,r0,0 /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; ffc0ca60: 98 1f 00 00 stb r0,0(r31) if ( (token[i] != '\0') && pathlen ) { ffc0ca64: 41 9e 00 38 beq- cr7,ffc0ca9c ffc0ca68: 2f 84 00 00 cmpwi cr7,r4,0 ffc0ca6c: 41 9e 00 30 beq- cr7,ffc0ca9c ffc0ca70: 3b c0 00 01 li r30,1 ffc0ca74: 39 20 00 01 li r9,1 ffc0ca78: 48 00 00 28 b ffc0caa0 <== ALWAYS TAKEN i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { ffc0ca7c: 7d 7f 4a 14 add r11,r31,r9 ffc0ca80: 88 0b ff ff lbz r0,-1(r11) ffc0ca84: 3b c0 00 03 li r30,3 ffc0ca88: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ca8c: 41 9e 00 14 beq- cr7,ffc0caa0 <== NEVER TAKEN token[i] = '\0'; ffc0ca90: 38 00 00 00 li r0,0 ffc0ca94: 7c 1f 49 ae stbx r0,r31,r9 <== ALWAYS TAKEN ffc0ca98: 48 00 00 08 b ffc0caa0 <== ALWAYS TAKEN ffc0ca9c: 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 ) { ffc0caa0: 2f 9e 00 03 cmpwi cr7,r30,3 /* * Set token_len to the number of characters copied. */ *token_len = i; ffc0caa4: 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 ) { ffc0caa8: 40 be 00 40 bne+ cr7,ffc0cae8 if ( strcmp( token, "..") == 0 ) ffc0caac: 3c 80 ff c2 lis r4,-62 ffc0cab0: 38 84 e0 71 addi r4,r4,-8079 <== ALWAYS TAKEN ffc0cab4: 7f e3 fb 78 mr r3,r31 ffc0cab8: 48 00 63 31 bl ffc12de8 <== ALWAYS TAKEN ffc0cabc: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc0cac0: 40 9e 00 0c bne- cr7,ffc0cacc ffc0cac4: 3b c0 00 02 li r30,2 ffc0cac8: 48 00 00 20 b ffc0cae8 <== ALWAYS TAKEN type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) ffc0cacc: 3c 80 ff c2 lis r4,-62 ffc0cad0: 7f e3 fb 78 mr r3,r31 ffc0cad4: 38 84 e0 72 addi r4,r4,-8078 <== ALWAYS TAKEN ffc0cad8: 48 00 63 11 bl ffc12de8 <== ALWAYS TAKEN ffc0cadc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cae0: 40 9e 00 08 bne- cr7,ffc0cae8 ffc0cae4: 3b c0 00 01 li r30,1 type = IMFS_CURRENT_DIR; } return type; } ffc0cae8: 80 01 00 14 lwz r0,20(r1) ffc0caec: 7f c3 f3 78 mr r3,r30 ffc0caf0: 83 e1 00 0c lwz r31,12(r1) ffc0caf4: 7c 08 03 a6 mtlr r0 ffc0caf8: 83 c1 00 08 lwz r30,8(r1) ffc0cafc: 38 21 00 10 addi r1,r1,16 ffc0cb00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04b1c : */ int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc04b1c: 94 21 ff f8 stwu r1,-8(r1) ffc04b20: 7c 08 02 a6 mflr r0 return IMFS_initialize_support( ffc04b24: 3c 80 ff c2 lis r4,-62 ffc04b28: 3c a0 ff c2 lis r5,-62 */ int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc04b2c: 90 01 00 0c stw r0,12(r1) return IMFS_initialize_support( ffc04b30: 3c c0 ff c2 lis r6,-62 ffc04b34: 38 84 47 34 addi r4,r4,18228 ffc04b38: 38 a5 4b 64 addi r5,r5,19300 ffc04b3c: 38 c6 4a f4 addi r6,r6,19188 ffc04b40: 48 00 00 15 bl ffc04b54 <== ALWAYS TAKEN temp_mt_entry, &IMFS_ops, &IMFS_memfile_handlers, &IMFS_directory_handlers ); } ffc04b44: 80 01 00 0c lwz r0,12(r1) ffc04b48: 38 21 00 08 addi r1,r1,8 ffc04b4c: 7c 08 03 a6 mtlr r0 ffc04b50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cb04 : IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, ffc0cb04: 39 60 00 06 li r11,6 <== ALWAYS TAKEN 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 ) { ffc0cb08: 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, ffc0cb0c: 7d 69 03 a6 mtctr r11 ffc0cb10: 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 ) { ffc0cb14: 7c 08 02 a6 mflr r0 ffc0cb18: 93 81 00 08 stw r28,8(r1) ffc0cb1c: 7c 9c 23 78 mr r28,r4 ffc0cb20: 90 01 00 1c stw r0,28(r1) ffc0cb24: 93 a1 00 0c stw r29,12(r1) <== ALWAYS TAKEN ffc0cb28: 7c dd 33 78 mr r29,r6 ffc0cb2c: 93 c1 00 10 stw r30,16(r1) ffc0cb30: 7c be 2b 78 mr r30,r5 <== ALWAYS TAKEN ffc0cb34: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN ffc0cb38: 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, ffc0cb3c: 80 09 26 90 lwz r0,9872(r9) ffc0cb40: 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) { ffc0cb44: 7f 89 00 00 cmpw cr7,r9,r0 ffc0cb48: 41 9e 00 10 beq- cr7,ffc0cb58 ffc0cb4c: 55 29 08 3c rlwinm r9,r9,1,0,30 ffc0cb50: 42 00 ff f4 bdnz+ ffc0cb44 <== ALWAYS TAKEN ffc0cb54: 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) ffc0cb58: 3d 60 00 00 lis r11,0 ffc0cb5c: 91 2b 27 e0 stw r9,10208(r11) <== ALWAYS TAKEN /* * 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(); ffc0cb60: 48 00 33 2d bl ffc0fe8c <== ALWAYS TAKEN 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; ffc0cb64: 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(); ffc0cb68: 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; ffc0cb6c: 38 84 e3 84 addi r4,r4,-7292 ffc0cb70: 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; ffc0cb74: 93 9f 00 28 stw r28,40(r31) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; ffc0cb78: 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; ffc0cb7c: 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; ffc0cb80: 48 00 5c 75 bl ffc127f4 <== ALWAYS TAKEN /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); ffc0cb84: 38 60 00 01 li r3,1 <== ALWAYS TAKEN ffc0cb88: 38 80 00 0c li r4,12 <== ALWAYS TAKEN ffc0cb8c: 48 00 03 19 bl ffc0cea4 <== ALWAYS TAKEN if ( !fs_info ) { ffc0cb90: 7c 69 1b 79 mr. r9,r3 ffc0cb94: 80 7f 00 1c lwz r3,28(r31) ffc0cb98: 40 a2 00 1c bne+ ffc0cbb4 <== ALWAYS TAKEN free(temp_mt_entry->mt_fs_root.node_access); ffc0cb9c: 4b ff 74 bd bl ffc04058 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc0cba0: 48 00 50 6d bl ffc11c0c <__errno> <== NOT EXECUTED ffc0cba4: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0cba8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cbac: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0cbb0: 48 00 00 24 b ffc0cbd4 <== NOT EXECUTED /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; ffc0cbb4: 38 00 00 01 li r0,1 fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; ffc0cbb8: 93 a9 00 08 stw r29,8(r9) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; ffc0cbbc: 90 09 00 00 stw r0,0(r9) fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); rtems_set_errno_and_return_minus_one(ENOMEM); } temp_mt_entry->fs_info = fs_info; ffc0cbc0: 91 3f 00 34 stw r9,52(r31) fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; ffc0cbc4: 90 03 00 38 stw r0,56(r3) <== ALWAYS TAKEN /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; ffc0cbc8: 93 c9 00 04 stw r30,4(r9) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); ffc0cbcc: 48 00 27 a5 bl ffc0f370 <== ALWAYS TAKEN ffc0cbd0: 38 60 00 00 li r3,0 return 0; } ffc0cbd4: 80 01 00 1c lwz r0,28(r1) ffc0cbd8: 83 81 00 08 lwz r28,8(r1) <== ALWAYS TAKEN ffc0cbdc: 7c 08 03 a6 mtlr r0 ffc0cbe0: 83 a1 00 0c lwz r29,12(r1) ffc0cbe4: 83 c1 00 10 lwz r30,16(r1) ffc0cbe8: 83 e1 00 14 lwz r31,20(r1) ffc0cbec: 38 21 00 18 addi r1,r1,24 ffc0cbf0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04c44 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { ffc04c44: 94 21 ff 98 stwu r1,-104(r1) ffc04c48: 7c 08 02 a6 mflr r0 ffc04c4c: 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; ffc04c50: 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 */ ) { ffc04c54: 93 a1 00 5c stw r29,92(r1) ffc04c58: 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; ffc04c5c: 91 21 00 18 stw r9,24(r1) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) ffc04c60: 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 */ ) { ffc04c64: 93 c1 00 60 stw r30,96(r1) ffc04c68: 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 ) ffc04c6c: 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 */ ) { ffc04c70: 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 ) ffc04c74: 40 bd 00 10 ble+ cr7,ffc04c84 rtems_set_errno_and_return_minus_one( EMLINK ); ffc04c78: 48 01 33 99 bl ffc18010 <__errno> <== ALWAYS TAKEN ffc04c7c: 38 00 00 1f li r0,31 ffc04c80: 48 00 00 50 b ffc04cd0 <== ALWAYS TAKEN /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); ffc04c84: 7c a3 2b 78 mr r3,r5 ffc04c88: 48 01 46 49 bl ffc192d0 <== ALWAYS TAKEN ffc04c8c: 3b e1 00 30 addi r31,r1,48 ffc04c90: 7c 64 1b 78 mr r4,r3 ffc04c94: 7f e5 fb 78 mr r5,r31 ffc04c98: 38 c1 00 08 addi r6,r1,8 ffc04c9c: 7f a3 eb 78 mr r3,r29 ffc04ca0: 48 00 dc 55 bl ffc128f4 <== ALWAYS 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( ffc04ca4: 38 c0 00 00 li r6,0 ffc04ca8: 7f c3 f3 78 mr r3,r30 ffc04cac: 7f e5 fb 78 mr r5,r31 ffc04cb0: 60 c6 a1 ff ori r6,r6,41471 ffc04cb4: 38 80 00 03 li r4,3 ffc04cb8: 38 e1 00 18 addi r7,r1,24 ffc04cbc: 48 00 cc e5 bl ffc119a0 <== ALWAYS TAKEN new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) ffc04cc0: 2f 83 00 00 cmpwi cr7,r3,0 ffc04cc4: 40 be 00 18 bne+ cr7,ffc04cdc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc04cc8: 48 01 33 49 bl ffc18010 <__errno> <== NOT EXECUTED ffc04ccc: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc04cd0: 90 03 00 00 stw r0,0(r3) ffc04cd4: 38 60 ff ff li r3,-1 ffc04cd8: 48 00 00 30 b ffc04d08 <== ALWAYS TAKEN /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; ffc04cdc: 81 21 00 18 lwz r9,24(r1) IMFS_update_ctime( info.hard_link.link_node ); ffc04ce0: 38 61 00 0c addi r3,r1,12 ffc04ce4: 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++; ffc04ce8: a1 69 00 34 lhz r11,52(r9) ffc04cec: 38 0b 00 01 addi r0,r11,1 ffc04cf0: b0 09 00 34 sth r0,52(r9) IMFS_update_ctime( info.hard_link.link_node ); ffc04cf4: 48 00 0b fd bl ffc058f0 <== ALWAYS TAKEN ffc04cf8: 80 01 00 0c lwz r0,12(r1) ffc04cfc: 81 21 00 18 lwz r9,24(r1) ffc04d00: 38 60 00 00 li r3,0 ffc04d04: 90 09 00 48 stw r0,72(r9) return 0; } ffc04d08: 80 01 00 6c lwz r0,108(r1) ffc04d0c: 83 a1 00 5c lwz r29,92(r1) ffc04d10: 7c 08 03 a6 mtlr r0 ffc04d14: 83 c1 00 60 lwz r30,96(r1) ffc04d18: 83 e1 00 64 lwz r31,100(r1) ffc04d1c: 38 21 00 68 addi r1,r1,104 ffc04d20: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15c0c : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc15c0c: 7c 69 1b 79 mr. r9,r3 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc15c10: 94 21 ff f0 stwu r1,-16(r1) ffc15c14: 7c 08 02 a6 mflr r0 ffc15c18: 93 e1 00 0c stw r31,12(r1) ffc15c1c: 90 01 00 14 stw r0,20(r1) block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc15c20: 40 a2 00 28 bne+ ffc15c48 <== ALWAYS TAKEN ffc15c24: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15c28: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15c2c: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc15c30: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15c34: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc15c38: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc15c3c: 38 c6 4f 0c addi r6,r6,20236 <== NOT EXECUTED ffc15c40: 38 80 01 69 li r4,361 <== NOT EXECUTED ffc15c44: 48 00 00 30 b ffc15c74 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc15c48: 80 09 00 4c lwz r0,76(r9) ffc15c4c: 2f 80 00 05 cmpwi cr7,r0,5 ffc15c50: 41 be 00 28 beq+ cr7,ffc15c78 <== ALWAYS TAKEN ffc15c54: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15c58: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15c5c: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc15c60: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15c64: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc15c68: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc15c6c: 38 c6 4f 16 addi r6,r6,20246 <== NOT EXECUTED ffc15c70: 38 80 01 6d li r4,365 <== NOT EXECUTED ffc15c74: 4b fe f6 cd bl ffc05340 <__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 ); ffc15c78: 38 a0 00 01 li r5,1 ffc15c7c: 4b ff f9 39 bl ffc155b4 <== ALWAYS TAKEN if ( *block_entry_ptr ) ffc15c80: 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 ); ffc15c84: 7c 7f 1b 78 mr r31,r3 if ( *block_entry_ptr ) ffc15c88: 38 60 00 00 li r3,0 ffc15c8c: 2f 80 00 00 cmpwi cr7,r0,0 ffc15c90: 40 be 00 1c bne+ cr7,ffc15cac #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); ffc15c94: 4b ff f8 dd bl ffc15570 <== ALWAYS TAKEN if ( !memory ) ffc15c98: 7c 60 1b 79 mr. r0,r3 ffc15c9c: 38 60 00 01 li r3,1 ffc15ca0: 41 82 00 0c beq- ffc15cac <== NEVER TAKEN return 1; *block_entry_ptr = memory; ffc15ca4: 90 1f 00 00 stw r0,0(r31) ffc15ca8: 38 60 00 00 li r3,0 return 0; } ffc15cac: 80 01 00 14 lwz r0,20(r1) ffc15cb0: 83 e1 00 0c lwz r31,12(r1) ffc15cb4: 38 21 00 10 addi r1,r1,16 ffc15cb8: 7c 08 03 a6 mtlr r0 ffc15cbc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15cc0 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc15cc0: 94 21 ff d8 stwu r1,-40(r1) ffc15cc4: 7c 08 02 a6 mflr r0 ffc15cc8: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15ccc: 7c 7f 1b 79 mr. r31,r3 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc15cd0: 93 81 00 18 stw r28,24(r1) ffc15cd4: 7c dc 33 78 mr r28,r6 ffc15cd8: 93 a1 00 1c stw r29,28(r1) ffc15cdc: 7c bd 2b 78 mr r29,r5 ffc15ce0: 90 01 00 2c stw r0,44(r1) ffc15ce4: 93 01 00 08 stw r24,8(r1) ffc15ce8: 93 21 00 0c stw r25,12(r1) ffc15cec: 93 41 00 10 stw r26,16(r1) ffc15cf0: 93 61 00 14 stw r27,20(r1) ffc15cf4: 93 c1 00 20 stw r30,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15cf8: 40 a2 00 28 bne+ ffc15d20 <== ALWAYS TAKEN ffc15cfc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15d00: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15d04: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc15d08: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15d0c: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc15d10: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc15d14: 38 c6 4f 0c addi r6,r6,20236 <== NOT EXECUTED ffc15d18: 38 80 01 31 li r4,305 <== NOT EXECUTED ffc15d1c: 48 00 00 30 b ffc15d4c <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc15d20: 80 1f 00 4c lwz r0,76(r31) ffc15d24: 2f 80 00 05 cmpwi cr7,r0,5 ffc15d28: 41 be 00 28 beq+ cr7,ffc15d50 <== ALWAYS TAKEN ffc15d2c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15d30: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc15d34: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc15d38: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15d3c: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc15d40: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc15d44: 38 c6 4f 16 addi r6,r6,20246 <== NOT EXECUTED ffc15d48: 38 80 01 35 li r4,309 <== NOT EXECUTED ffc15d4c: 4b fe f5 f5 bl ffc05340 <__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 ) ffc15d50: 3d 20 00 00 lis r9,0 ffc15d54: 83 c9 27 68 lwz r30,10088(r9) ffc15d58: 38 00 00 00 li r0,0 ffc15d5c: 7f 80 28 00 cmpw cr7,r0,r5 ffc15d60: 57 c9 f0 be rlwinm r9,r30,30,2,31 ffc15d64: 39 69 00 01 addi r11,r9,1 ffc15d68: 7d 6b 49 d6 mullw r11,r11,r9 ffc15d6c: 38 0b 00 01 addi r0,r11,1 ffc15d70: 7d 20 49 d6 mullw r9,r0,r9 ffc15d74: 39 29 ff ff addi r9,r9,-1 ffc15d78: 7d 29 f1 d6 mullw r9,r9,r30 ffc15d7c: 41 9d 00 1c bgt- cr7,ffc15d98 <== NEVER TAKEN ffc15d80: 40 be 00 0c bne+ cr7,ffc15d8c <== NEVER TAKEN ffc15d84: 7f 89 30 40 cmplw cr7,r9,r6 ffc15d88: 41 9d 00 10 bgt- cr7,ffc15d98 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc15d8c: 48 00 22 85 bl ffc18010 <__errno> <== NOT EXECUTED ffc15d90: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc15d94: 48 00 00 9c b ffc15e30 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) ffc15d98: 83 3f 00 50 lwz r25,80(r31) ffc15d9c: 83 5f 00 54 lwz r26,84(r31) ffc15da0: 7f 9d c8 00 cmpw cr7,r29,r25 ffc15da4: 41 9d 00 18 bgt- cr7,ffc15dbc <== NEVER TAKEN ffc15da8: 40 be 00 0c bne+ cr7,ffc15db4 <== NEVER TAKEN ffc15dac: 7f 9c d0 40 cmplw cr7,r28,r26 ffc15db0: 41 9d 00 0c bgt- cr7,ffc15dbc ffc15db4: 38 60 00 00 li r3,0 ffc15db8: 48 00 00 9c b ffc15e54 <== ALWAYS TAKEN /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15dbc: 7f db fe 70 srawi r27,r30,31 ffc15dc0: 7f 65 db 78 mr r5,r27 ffc15dc4: 7f c6 f3 78 mr r6,r30 ffc15dc8: 7f a3 eb 78 mr r3,r29 ffc15dcc: 7f 84 e3 78 mr r4,r28 ffc15dd0: 48 00 c0 e5 bl ffc21eb4 <__divdi3> <== ALWAYS TAKEN old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15dd4: 7f 65 db 78 mr r5,r27 ffc15dd8: 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; ffc15ddc: 7c 98 23 78 mr r24,r4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc15de0: 7f 23 cb 78 mr r3,r25 ffc15de4: 7f 44 d3 78 mr r4,r26 ffc15de8: 48 00 c0 cd bl ffc21eb4 <__divdi3> <== ALWAYS TAKEN ffc15dec: 7c 9b 23 78 mr r27,r4 ffc15df0: 7c 9e 23 78 mr r30,r4 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc15df4: 48 00 00 4c b ffc15e40 <== ALWAYS TAKEN if ( IMFS_memfile_addblock( the_jnode, block ) ) { ffc15df8: 7f e3 fb 78 mr r3,r31 ffc15dfc: 7f c4 f3 78 mr r4,r30 ffc15e00: 4b ff fe 0d bl ffc15c0c <== ALWAYS TAKEN ffc15e04: 2f 83 00 00 cmpwi cr7,r3,0 ffc15e08: 41 be 00 34 beq+ cr7,ffc15e3c <== ALWAYS TAKEN ffc15e0c: 48 00 00 14 b ffc15e20 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); ffc15e10: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc15e14: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc15e18: 4b ff fa 99 bl ffc158b0 <== 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-- ) { ffc15e1c: 3b de ff ff addi r30,r30,-1 <== NOT EXECUTED ffc15e20: 7f 9e d8 40 cmplw cr7,r30,r27 <== NOT EXECUTED ffc15e24: 40 9c ff ec bge+ cr7,ffc15e10 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); ffc15e28: 48 00 21 e9 bl ffc18010 <__errno> <== NOT EXECUTED ffc15e2c: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc15e30: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc15e34: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc15e38: 48 00 00 1c b ffc15e54 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc15e3c: 3b de 00 01 addi r30,r30,1 ffc15e40: 7f 9e c0 40 cmplw cr7,r30,r24 ffc15e44: 40 9d ff b4 ble+ cr7,ffc15df8 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; ffc15e48: 93 9f 00 54 stw r28,84(r31) ffc15e4c: 38 60 00 00 li r3,0 ffc15e50: 93 bf 00 50 stw r29,80(r31) return 0; } ffc15e54: 80 01 00 2c lwz r0,44(r1) ffc15e58: 83 01 00 08 lwz r24,8(r1) ffc15e5c: 7c 08 03 a6 mtlr r0 ffc15e60: 83 21 00 0c lwz r25,12(r1) ffc15e64: 83 41 00 10 lwz r26,16(r1) ffc15e68: 83 61 00 14 lwz r27,20(r1) ffc15e6c: 83 81 00 18 lwz r28,24(r1) ffc15e70: 83 a1 00 1c lwz r29,28(r1) ffc15e74: 83 c1 00 20 lwz r30,32(r1) ffc15e78: 83 e1 00 24 lwz r31,36(r1) ffc15e7c: 38 21 00 28 addi r1,r1,40 ffc15e80: 4e 80 00 20 blr <== ALWAYS TAKEN ffc155b4 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc155b4: 94 21 ff e8 stwu r1,-24(r1) ffc155b8: 7c 08 02 a6 mflr r0 ffc155bc: 93 e1 00 14 stw r31,20(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc155c0: 7c 7f 1b 79 mr. r31,r3 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc155c4: 93 c1 00 10 stw r30,16(r1) ffc155c8: 7c 9e 23 78 mr r30,r4 ffc155cc: 90 01 00 1c stw r0,28(r1) ffc155d0: 93 81 00 08 stw r28,8(r1) ffc155d4: 93 a1 00 0c stw r29,12(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc155d8: 40 a2 00 24 bne+ ffc155fc <== ALWAYS TAKEN ffc155dc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc155e0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc155e4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc155e8: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc155ec: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc155f0: 38 c6 4f 0c addi r6,r6,20236 <== NOT EXECUTED ffc155f4: 38 80 03 88 li r4,904 <== NOT EXECUTED ffc155f8: 48 00 00 2c b ffc15624 <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc155fc: 80 1f 00 4c lwz r0,76(r31) ffc15600: 2f 80 00 05 cmpwi cr7,r0,5 ffc15604: 41 be 00 24 beq+ cr7,ffc15628 <== ALWAYS TAKEN ffc15608: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1560c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15610: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15614: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc15618: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc1561c: 38 c6 4f 16 addi r6,r6,20246 <== NOT EXECUTED ffc15620: 38 80 03 8c li r4,908 <== NOT EXECUTED ffc15624: 4b fe fd 1d bl ffc05340 <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { ffc15628: 3d 20 00 00 lis r9,0 ffc1562c: 81 29 27 68 lwz r9,10088(r9) ffc15630: 55 29 f0 be rlwinm r9,r9,30,2,31 ffc15634: 38 09 ff ff addi r0,r9,-1 ffc15638: 7f 84 00 40 cmplw cr7,r4,r0 ffc1563c: 41 9d 00 40 bgt- cr7,ffc1567c <== NEVER TAKEN fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { ffc15640: 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; ffc15644: 80 1f 00 58 lwz r0,88(r31) ffc15648: 2f 80 00 00 cmpwi cr7,r0,0 if ( malloc_it ) { ffc1564c: 41 9a 00 20 beq- cr6,ffc1566c if ( !p ) { ffc15650: 40 be 00 14 bne+ cr7,ffc15664 p = memfile_alloc_block(); ffc15654: 4b ff ff 1d bl ffc15570 <== ALWAYS TAKEN if ( !p ) ffc15658: 2c 03 00 00 cmpwi r3,0 ffc1565c: 41 82 01 78 beq- ffc157d4 <== NEVER TAKEN return 0; info->indirect = p; ffc15660: 90 7f 00 58 stw r3,88(r31) } return &info->indirect[ my_block ]; ffc15664: 80 7f 00 58 lwz r3,88(r31) ffc15668: 48 00 01 60 b ffc157c8 <== ALWAYS TAKEN } if ( !p ) ffc1566c: 41 9e 01 68 beq- cr7,ffc157d4 <== NEVER TAKEN return 0; return &info->indirect[ my_block ]; ffc15670: 54 9e 10 3a rlwinm r30,r4,2,0,29 ffc15674: 7c 60 f2 14 add r3,r0,r30 ffc15678: 48 00 01 60 b ffc157d8 <== ALWAYS TAKEN /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { ffc1567c: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED ffc15680: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED ffc15684: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc15688: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc1568c: 41 9d 00 80 bgt- cr7,ffc1570c <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; ffc15690: 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; ffc15694: 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; ffc15698: 7f be 4b 96 divwu r29,r30,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc1569c: 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; ffc156a0: 7d 3d 49 d6 mullw r9,r29,r9 <== NOT EXECUTED ffc156a4: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc156a8: 7f c9 f0 50 subf r30,r9,r30 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc156ac: 41 9a 00 40 beq- cr6,ffc156ec <== NOT EXECUTED if ( !p ) { ffc156b0: 40 be 00 14 bne+ cr7,ffc156c4 <== NOT EXECUTED p = memfile_alloc_block(); ffc156b4: 4b ff fe bd bl ffc15570 <== NOT EXECUTED if ( !p ) ffc156b8: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED ffc156bc: 41 82 01 18 beq- ffc157d4 <== NOT EXECUTED return 0; info->doubly_indirect = p; ffc156c0: 91 7f 00 5c stw r11,92(r31) <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; ffc156c4: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc156c8: 7c 6b e8 2e lwzx r3,r11,r29 <== NOT EXECUTED ffc156cc: 7f ab ea 14 add r29,r11,r29 <== NOT EXECUTED if ( !p1 ) { ffc156d0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc156d4: 40 be 00 f4 bne+ cr7,ffc157c8 <== NOT EXECUTED p1 = memfile_alloc_block(); ffc156d8: 4b ff fe 99 bl ffc15570 <== NOT EXECUTED if ( !p1 ) ffc156dc: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc156e0: 41 82 00 f4 beq- ffc157d4 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; ffc156e4: 90 7d 00 00 stw r3,0(r29) <== NOT EXECUTED ffc156e8: 48 00 00 e0 b ffc157c8 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) ffc156ec: 41 be 00 e8 beq+ cr7,ffc157d4 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; ffc156f0: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc156f4: 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 ]; ffc156f8: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc156fc: 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 ]; ffc15700: 7c 60 f2 14 add r3,r0,r30 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc15704: 40 be 00 d4 bne+ cr7,ffc157d8 <== NOT EXECUTED ffc15708: 48 00 00 cc b ffc157d4 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { ffc1570c: 39 4b 00 01 addi r10,r11,1 <== NOT EXECUTED ffc15710: 7d 4a 49 d6 mullw r10,r10,r9 <== NOT EXECUTED ffc15714: 38 0a ff ff addi r0,r10,-1 <== NOT EXECUTED ffc15718: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc1571c: 41 9d 00 b8 bgt- cr7,ffc157d4 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; ffc15720: 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; ffc15724: 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; ffc15728: 7c 1e 4b 96 divwu r0,r30,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; ffc1572c: 7f a0 4b 96 divwu r29,r0,r9 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { ffc15730: 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; ffc15734: 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; ffc15738: 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; ffc1573c: 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; ffc15740: 7f c9 f0 50 subf r30,r9,r30 <== NOT EXECUTED ffc15744: 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 ) { ffc15748: 41 9a 00 64 beq- cr6,ffc157ac <== NOT EXECUTED if ( !p ) { ffc1574c: 40 be 00 14 bne+ cr7,ffc15760 <== NOT EXECUTED p = memfile_alloc_block(); ffc15750: 4b ff fe 21 bl ffc15570 <== NOT EXECUTED if ( !p ) ffc15754: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED ffc15758: 41 82 00 7c beq- ffc157d4 <== NOT EXECUTED return 0; info->triply_indirect = p; ffc1575c: 91 7f 00 60 stw r11,96(r31) <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; ffc15760: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc15764: 7d 2b e8 2e lwzx r9,r11,r29 <== NOT EXECUTED ffc15768: 7f ab ea 14 add r29,r11,r29 <== NOT EXECUTED if ( !p1 ) { ffc1576c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc15770: 40 be 00 14 bne+ cr7,ffc15784 <== NOT EXECUTED p1 = memfile_alloc_block(); ffc15774: 4b ff fd fd bl ffc15570 <== NOT EXECUTED if ( !p1 ) ffc15778: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc1577c: 41 82 00 58 beq- ffc157d4 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; ffc15780: 91 3d 00 00 stw r9,0(r29) <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; ffc15784: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED ffc15788: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED ffc1578c: 7f 89 e2 14 add r28,r9,r28 <== NOT EXECUTED if ( !p2 ) { ffc15790: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc15794: 40 be 00 34 bne+ cr7,ffc157c8 <== NOT EXECUTED p2 = memfile_alloc_block(); ffc15798: 4b ff fd d9 bl ffc15570 <== NOT EXECUTED if ( !p2 ) ffc1579c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc157a0: 41 82 00 34 beq- ffc157d4 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; ffc157a4: 90 7c 00 00 stw r3,0(r28) <== NOT EXECUTED ffc157a8: 48 00 00 20 b ffc157c8 <== NOT EXECUTED } return (block_p *)&p2[ singly ]; } if ( !p ) ffc157ac: 41 be 00 28 beq+ cr7,ffc157d4 <== 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 ]; ffc157b0: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc157b4: 7d 2b e8 2e lwzx r9,r11,r29 <== NOT EXECUTED if ( !p1 ) ffc157b8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc157bc: 41 be 00 18 beq+ cr7,ffc157d4 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc157c0: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED ffc157c4: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED ffc157c8: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc157cc: 7c 63 f2 14 add r3,r3,r30 ffc157d0: 48 00 00 08 b ffc157d8 <== ALWAYS TAKEN ffc157d4: 38 60 00 00 li r3,0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc157d8: 80 01 00 1c lwz r0,28(r1) ffc157dc: 83 81 00 08 lwz r28,8(r1) ffc157e0: 7c 08 03 a6 mtlr r0 ffc157e4: 83 a1 00 0c lwz r29,12(r1) ffc157e8: 83 c1 00 10 lwz r30,16(r1) ffc157ec: 83 e1 00 14 lwz r31,20(r1) ffc157f0: 38 21 00 18 addi r1,r1,24 ffc157f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05b7c : * */ int IMFS_memfile_maximum_size( void ) { return IMFS_MEMFILE_MAXIMUM_SIZE; ffc05b7c: 3d 20 00 00 lis r9,0 ffc05b80: 80 09 27 cc lwz r0,10188(r9) ffc05b84: 54 09 f0 be rlwinm r9,r0,30,2,31 ffc05b88: 38 69 00 01 addi r3,r9,1 ffc05b8c: 7c 63 49 d6 mullw r3,r3,r9 ffc05b90: 38 63 00 01 addi r3,r3,1 ffc05b94: 7d 23 49 d6 mullw r9,r3,r9 ffc05b98: 38 69 ff ff addi r3,r9,-1 } ffc05b9c: 7c 63 01 d6 mullw r3,r3,r0 ffc05ba0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc163dc : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc163dc: 94 21 ff c8 stwu r1,-56(r1) ffc163e0: 7c 08 02 a6 mflr r0 ffc163e4: 93 e1 00 34 stw r31,52(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc163e8: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc163ec: 93 61 00 24 stw r27,36(r1) ffc163f0: 7c bb 2b 78 mr r27,r5 ffc163f4: 93 81 00 28 stw r28,40(r1) ffc163f8: 7c dc 33 78 mr r28,r6 ffc163fc: 93 c1 00 30 stw r30,48(r1) ffc16400: 7c fe 3b 78 mr r30,r7 ffc16404: 90 01 00 3c stw r0,60(r1) ffc16408: 93 01 00 18 stw r24,24(r1) ffc1640c: 93 21 00 1c stw r25,28(r1) ffc16410: 93 41 00 20 stw r26,32(r1) ffc16414: 93 a1 00 2c stw r29,44(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc16418: 40 a2 00 28 bne+ ffc16440 <== ALWAYS TAKEN ffc1641c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16420: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc16424: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc16428: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1642c: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16430: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc16434: 38 c6 4f 0c addi r6,r6,20236 <== NOT EXECUTED ffc16438: 38 80 02 4c li r4,588 <== NOT EXECUTED ffc1643c: 48 00 00 34 b ffc16470 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || ffc16440: 81 3f 00 4c lwz r9,76(r31) ffc16444: 38 09 ff fb addi r0,r9,-5 ffc16448: 2b 80 00 01 cmplwi cr7,r0,1 ffc1644c: 40 bd 00 28 ble+ cr7,ffc16474 <== ALWAYS TAKEN ffc16450: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16454: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc16458: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc1645c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc16460: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16464: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc16468: 38 c6 4f 80 addi r6,r6,20352 <== NOT EXECUTED ffc1646c: 38 80 02 51 li r4,593 <== NOT EXECUTED ffc16470: 4b fe ee d1 bl ffc05340 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); ffc16474: 2f 87 00 00 cmpwi cr7,r7,0 ffc16478: 40 be 00 28 bne+ cr7,ffc164a0 <== ALWAYS TAKEN ffc1647c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16480: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc16484: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc16488: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1648c: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16490: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc16494: 38 c6 4f cb addi r6,r6,20427 <== NOT EXECUTED ffc16498: 38 80 02 5a li r4,602 <== NOT EXECUTED ffc1649c: 4b ff ff d4 b ffc16470 <== NOT EXECUTED /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) ffc164a0: 2f 88 00 00 cmpwi cr7,r8,0 ffc164a4: 40 be 00 18 bne+ cr7,ffc164bc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc164a8: 48 00 1b 69 bl ffc18010 <__errno> <== NOT EXECUTED ffc164ac: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc164b0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc164b4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc164b8: 48 00 02 3c b ffc166f4 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { ffc164bc: 2f 89 00 06 cmpwi cr7,r9,6 ffc164c0: 40 be 00 60 bne+ cr7,ffc16520 <== ALWAYS TAKEN unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) ffc164c4: 81 3f 00 50 lwz r9,80(r31) <== NOT EXECUTED ffc164c8: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc164cc: 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; ffc164d0: 80 9f 00 58 lwz r4,88(r31) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) ffc164d4: 7d 9c 50 10 subfc r12,r28,r10 <== NOT EXECUTED ffc164d8: 7d 7b 49 10 subfe r11,r27,r9 <== NOT EXECUTED ffc164dc: 7f 80 58 00 cmpw cr7,r0,r11 <== NOT EXECUTED ffc164e0: 41 9d 00 18 bgt- cr7,ffc164f8 <== NOT EXECUTED ffc164e4: 40 be 00 0c bne+ cr7,ffc164f0 <== NOT EXECUTED ffc164e8: 7f 88 60 40 cmplw cr7,r8,r12 <== NOT EXECUTED ffc164ec: 41 9d 00 0c bgt- cr7,ffc164f8 <== NOT EXECUTED ffc164f0: 7d 1d 43 78 mr r29,r8 <== NOT EXECUTED ffc164f4: 48 00 00 08 b ffc164fc <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; ffc164f8: 7f bc 50 50 subf r29,r28,r10 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); ffc164fc: 7c 84 e2 14 add r4,r4,r28 <== NOT EXECUTED ffc16500: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED ffc16504: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc16508: 48 00 26 f1 bl ffc18bf8 <== NOT EXECUTED IMFS_update_atime( the_jnode ); ffc1650c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc16510: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc16514: 4b fe f3 dd bl ffc058f0 <== NOT EXECUTED return my_length; ffc16518: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc1651c: 48 00 01 d0 b ffc166ec <== 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 ) ffc16520: 80 1f 00 50 lwz r0,80(r31) ffc16524: 39 20 00 00 li r9,0 ffc16528: 83 bf 00 54 lwz r29,84(r31) ffc1652c: 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; ffc16530: 7c c0 33 78 mr r0,r6 if ( last_byte > the_jnode->info.file.size ) ffc16534: 7d 28 32 14 add r9,r8,r6 ffc16538: 41 9d 00 18 bgt- cr7,ffc16550 <== NEVER TAKEN ffc1653c: 40 be 00 0c bne+ cr7,ffc16548 <== NEVER TAKEN ffc16540: 7f 89 e8 40 cmplw cr7,r9,r29 ffc16544: 41 9d 00 0c bgt- cr7,ffc16550 <== ALWAYS TAKEN ffc16548: 7d 1d 43 78 mr r29,r8 <== NOT EXECUTED ffc1654c: 48 00 00 08 b ffc16554 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; ffc16550: 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; ffc16554: 3d 20 00 00 lis r9,0 ffc16558: 83 49 27 68 lwz r26,10088(r9) ffc1655c: 7f 63 db 78 mr r3,r27 ffc16560: 7f 84 e3 78 mr r4,r28 ffc16564: 7f 58 fe 70 srawi r24,r26,31 ffc16568: 7f 05 c3 78 mr r5,r24 ffc1656c: 7f 46 d3 78 mr r6,r26 ffc16570: 48 00 bd 49 bl ffc222b8 <__moddi3> <== ALWAYS TAKEN block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc16574: 7f 63 db 78 mr r3,r27 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc16578: 7c 99 23 78 mr r25,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc1657c: 7f 05 c3 78 mr r5,r24 ffc16580: 7f 84 e3 78 mr r4,r28 ffc16584: 7f 46 d3 78 mr r6,r26 ffc16588: 48 00 b9 2d bl ffc21eb4 <__divdi3> <== ALWAYS TAKEN if ( start_offset ) { ffc1658c: 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; ffc16590: 7c 98 23 78 mr r24,r4 if ( start_offset ) { ffc16594: 7f dc f3 78 mr r28,r30 ffc16598: 3b 60 00 00 li r27,0 ffc1659c: 41 9e 00 70 beq- cr7,ffc1660c 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 ); ffc165a0: 7f e3 fb 78 mr r3,r31 ffc165a4: 38 a0 00 00 li r5,0 ffc165a8: 4b ff f0 0d bl ffc155b4 <== ALWAYS TAKEN assert( block_ptr ); ffc165ac: 2c 03 00 00 cmpwi r3,0 ffc165b0: 40 a2 00 28 bne+ ffc165d8 <== ALWAYS TAKEN ffc165b4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc165b8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc165bc: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc165c0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc165c4: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc165c8: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc165cc: 38 c6 4f 46 addi r6,r6,20294 <== NOT EXECUTED ffc165d0: 38 80 02 96 li r4,662 <== NOT EXECUTED ffc165d4: 4b ff fe 9c b ffc16470 <== 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; ffc165d8: 7f 59 d0 50 subf r26,r25,r26 ffc165dc: 7f 9d d0 40 cmplw cr7,r29,r26 ffc165e0: 7f bb eb 78 mr r27,r29 ffc165e4: 40 9d 00 08 ble- cr7,ffc165ec ffc165e8: 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 ); ffc165ec: 80 83 00 00 lwz r4,0(r3) ffc165f0: 7f 65 db 78 mr r5,r27 ffc165f4: 7f c3 f3 78 mr r3,r30 ffc165f8: 7c 84 ca 14 add r4,r4,r25 ffc165fc: 48 00 25 fd bl ffc18bf8 <== ALWAYS TAKEN dest += to_copy; ffc16600: 7f 9e da 14 add r28,r30,r27 block++; ffc16604: 3b 18 00 01 addi r24,r24,1 my_length -= to_copy; ffc16608: 7f bb e8 50 subf r29,r27,r29 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc1660c: 3d 20 00 00 lis r9,0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc16610: 3b 49 27 68 addi r26,r9,10088 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc16614: 83 c9 27 68 lwz r30,10088(r9) while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc16618: 48 00 00 60 b ffc16678 <== ALWAYS TAKEN block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc1661c: 7f e3 fb 78 mr r3,r31 ffc16620: 7f 04 c3 78 mr r4,r24 ffc16624: 38 a0 00 00 li r5,0 ffc16628: 4b ff ef 8d bl ffc155b4 <== ALWAYS TAKEN assert( block_ptr ); ffc1662c: 2c 03 00 00 cmpwi r3,0 ffc16630: 40 a2 00 28 bne+ ffc16658 <== ALWAYS TAKEN ffc16634: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16638: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1663c: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc16640: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc16644: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16648: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc1664c: 38 c6 4f 46 addi r6,r6,20294 <== NOT EXECUTED ffc16650: 38 80 02 a7 li r4,679 <== NOT EXECUTED ffc16654: 4b ff fe 1c b ffc16470 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); ffc16658: 80 83 00 00 lwz r4,0(r3) ffc1665c: 7f c5 f3 78 mr r5,r30 ffc16660: 7f 83 e3 78 mr r3,r28 ffc16664: 48 00 25 95 bl ffc18bf8 <== ALWAYS TAKEN dest += to_copy; ffc16668: 7f 9c f2 14 add r28,r28,r30 block++; ffc1666c: 3b 18 00 01 addi r24,r24,1 my_length -= to_copy; ffc16670: 7f be e8 50 subf r29,r30,r29 copied += to_copy; ffc16674: 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 ) { ffc16678: 80 1a 00 00 lwz r0,0(r26) ffc1667c: 7f 9d 00 40 cmplw cr7,r29,r0 ffc16680: 40 9c ff 9c bge+ cr7,ffc1661c * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { ffc16684: 2f 9d 00 00 cmpwi cr7,r29,0 ffc16688: 41 9e 00 54 beq- cr7,ffc166dc block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc1668c: 7f 04 c3 78 mr r4,r24 ffc16690: 7f e3 fb 78 mr r3,r31 ffc16694: 38 a0 00 00 li r5,0 ffc16698: 4b ff ef 1d bl ffc155b4 <== ALWAYS TAKEN assert( block_ptr ); ffc1669c: 2c 03 00 00 cmpwi r3,0 ffc166a0: 40 a2 00 28 bne+ ffc166c8 <== ALWAYS TAKEN ffc166a4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc166a8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc166ac: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc166b0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc166b4: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc166b8: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc166bc: 38 c6 4f 46 addi r6,r6,20294 <== NOT EXECUTED ffc166c0: 38 80 02 b9 li r4,697 <== NOT EXECUTED ffc166c4: 4b ff fd ac b ffc16470 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); ffc166c8: 80 83 00 00 lwz r4,0(r3) ffc166cc: 7f a5 eb 78 mr r5,r29 ffc166d0: 7f 83 e3 78 mr r3,r28 ffc166d4: 48 00 25 25 bl ffc18bf8 <== ALWAYS TAKEN copied += my_length; ffc166d8: 7f 7d da 14 add r27,r29,r27 } IMFS_update_atime( the_jnode ); ffc166dc: 38 61 00 08 addi r3,r1,8 ffc166e0: 38 80 00 00 li r4,0 ffc166e4: 4b fe f2 0d bl ffc058f0 <== ALWAYS TAKEN return copied; ffc166e8: 7f 63 db 78 mr r3,r27 return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); ffc166ec: 80 01 00 08 lwz r0,8(r1) ffc166f0: 90 1f 00 40 stw r0,64(r31) return copied; } ffc166f4: 80 01 00 3c lwz r0,60(r1) ffc166f8: 83 01 00 18 lwz r24,24(r1) ffc166fc: 7c 08 03 a6 mtlr r0 ffc16700: 83 21 00 1c lwz r25,28(r1) ffc16704: 83 41 00 20 lwz r26,32(r1) ffc16708: 83 61 00 24 lwz r27,36(r1) ffc1670c: 83 81 00 28 lwz r28,40(r1) ffc16710: 83 a1 00 2c lwz r29,44(r1) <== ALWAYS TAKEN ffc16714: 83 c1 00 30 lwz r30,48(r1) ffc16718: 83 e1 00 34 lwz r31,52(r1) ffc1671c: 38 21 00 38 addi r1,r1,56 ffc16720: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15914 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc15914: 94 21 ff d8 stwu r1,-40(r1) ffc15918: 7c 08 02 a6 mflr r0 ffc1591c: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15920: 7c 7f 1b 79 mr. r31,r3 */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc15924: 90 01 00 2c stw r0,44(r1) ffc15928: 93 21 00 0c stw r25,12(r1) ffc1592c: 93 41 00 10 stw r26,16(r1) ffc15930: 93 61 00 14 stw r27,20(r1) ffc15934: 93 81 00 18 stw r28,24(r1) ffc15938: 93 a1 00 1c stw r29,28(r1) ffc1593c: 93 c1 00 20 stw r30,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15940: 40 a2 00 28 bne+ ffc15968 <== ALWAYS TAKEN ffc15944: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15948: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1594c: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc15950: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15954: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc15958: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc1595c: 38 c6 4f 0c addi r6,r6,20236 <== NOT EXECUTED ffc15960: 38 80 01 ee li r4,494 <== NOT EXECUTED ffc15964: 48 00 00 30 b ffc15994 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc15968: 80 1f 00 4c lwz r0,76(r31) ffc1596c: 2f 80 00 05 cmpwi cr7,r0,5 ffc15970: 41 be 00 28 beq+ cr7,ffc15998 <== ALWAYS TAKEN ffc15974: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15978: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1597c: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc15980: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15984: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc15988: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc1598c: 38 c6 4f 16 addi r6,r6,20246 <== NOT EXECUTED ffc15990: 38 80 01 f2 li r4,498 <== NOT EXECUTED ffc15994: 4b fe f9 ad bl ffc05340 <__assert_func> <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc15998: 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; ffc1599c: 3d 20 00 00 lis r9,0 ffc159a0: 83 c9 27 68 lwz r30,10088(r9) * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc159a4: 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; ffc159a8: 57 de f0 be rlwinm r30,r30,30,2,31 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc159ac: 41 9e 00 10 beq- cr7,ffc159bc if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); ffc159b0: 38 7f 00 58 addi r3,r31,88 ffc159b4: 7f c4 f3 78 mr r4,r30 ffc159b8: 4b ff fe 41 bl ffc157f8 <== ALWAYS TAKEN * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc159bc: 80 1f 00 5c lwz r0,92(r31) ffc159c0: 2f 80 00 00 cmpwi cr7,r0,0 ffc159c4: 41 9e 00 54 beq- cr7,ffc15a18 <== ALWAYS TAKEN memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; iinfo.file; ffc159d0: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc159d4: 48 00 00 28 b ffc159fc <== NOT EXECUTED } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { ffc159d8: 80 7f 00 5c lwz r3,92(r31) <== NOT EXECUTED ffc159dc: 57 a0 10 3a rlwinm r0,r29,2,0,29 <== NOT EXECUTED ffc159e0: 7d 23 00 2e lwzx r9,r3,r0 <== NOT EXECUTED ffc159e4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc159e8: 41 9e 00 10 beq- cr7,ffc159f8 <== NOT EXECUTED memfile_free_blocks_in_table( ffc159ec: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc159f0: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc159f4: 4b ff fe 05 bl ffc157f8 <== 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 ); ffc15a0c: 38 7f 00 5c addi r3,r31,92 <== NOT EXECUTED ffc15a10: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc15a14: 4b ff fd e5 bl ffc157f8 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc15a18: 80 1f 00 60 lwz r0,96(r31) ffc15a1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc15a20: 41 9e 00 90 beq- cr7,ffc15ab0 <== ALWAYS TAKEN memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; iinfo.file; ffc15a2c: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc15a30: 48 00 00 64 b ffc15a94 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; ffc15a34: 81 3f 00 60 lwz r9,96(r31) <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc15a38: 57 b9 10 3a rlwinm r25,r29,2,0,29 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; ffc15a3c: 7f 89 c8 2e lwzx r28,r9,r25 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc15a40: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc15a44: 41 9e 00 60 beq- cr7,ffc15aa4 <== NOT EXECUTED ffc15a48: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc15a4c: 48 00 00 24 b ffc15a70 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); ffc15a5c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc15a60: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc15a64: 4b ff fd 95 bl ffc157f8 <== 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( ffc15a80: 80 7f 00 60 lwz r3,96(r31) <== NOT EXECUTED ffc15a84: 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( ffc15aa4: 38 7f 00 60 addi r3,r31,96 <== NOT EXECUTED ffc15aa8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc15aac: 4b ff fd 4d bl ffc157f8 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } ffc15ab0: 80 01 00 2c lwz r0,44(r1) ffc15ab4: 38 60 00 00 li r3,0 ffc15ab8: 83 21 00 0c lwz r25,12(r1) ffc15abc: 7c 08 03 a6 mtlr r0 ffc15ac0: 83 41 00 10 lwz r26,16(r1) ffc15ac4: 83 61 00 14 lwz r27,20(r1) ffc15ac8: 83 81 00 18 lwz r28,24(r1) ffc15acc: 83 a1 00 1c lwz r29,28(r1) ffc15ad0: 83 c1 00 20 lwz r30,32(r1) ffc15ad4: 83 e1 00 24 lwz r31,36(r1) ffc15ad8: 38 21 00 28 addi r1,r1,40 ffc15adc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc158b0 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc158b0: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc158b4: 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 ); ffc158b8: 38 a0 00 00 li r5,0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc158bc: 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 ); ffc158c0: 4b ff fc f5 bl ffc155b4 <== NOT EXECUTED assert( block_ptr ); ffc158c4: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc158c8: 40 a2 00 28 bne+ ffc158f0 <== NOT EXECUTED ffc158cc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc158d0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc158d4: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc158d8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc158dc: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc158e0: 38 a5 00 40 addi r5,r5,64 <== NOT EXECUTED ffc158e4: 38 c6 4f 46 addi r6,r6,20294 <== NOT EXECUTED ffc158e8: 38 80 01 96 li r4,406 <== NOT EXECUTED ffc158ec: 4b fe fa 55 bl ffc05340 <__assert_func> <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; ffc158f0: 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; ffc158f4: 80 69 00 00 lwz r3,0(r9) <== NOT EXECUTED *block_ptr = 0; ffc158f8: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED memfile_free_block( ptr ); ffc158fc: 4b ff fc 45 bl ffc15540 <== NOT EXECUTED } return 1; } ffc15900: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc15904: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc15908: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1590c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc15910: 4e 80 00 20 blr <== NOT EXECUTED ffc15fc0 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc15fc0: 94 21 ff c8 stwu r1,-56(r1) ffc15fc4: 7c 08 02 a6 mflr r0 ffc15fc8: 93 e1 00 34 stw r31,52(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc15fcc: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc15fd0: 93 61 00 24 stw r27,36(r1) ffc15fd4: 7d 1b 43 78 mr r27,r8 ffc15fd8: 93 81 00 28 stw r28,40(r1) ffc15fdc: 7c fc 3b 78 mr r28,r7 ffc15fe0: 93 a1 00 2c stw r29,44(r1) ffc15fe4: 7c bd 2b 78 mr r29,r5 ffc15fe8: 93 c1 00 30 stw r30,48(r1) ffc15fec: 7c de 33 78 mr r30,r6 ffc15ff0: 90 01 00 3c stw r0,60(r1) ffc15ff4: 93 01 00 18 stw r24,24(r1) ffc15ff8: 93 21 00 1c stw r25,28(r1) ffc15ffc: 93 41 00 20 stw r26,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc16000: 40 a2 00 28 bne+ ffc16028 <== ALWAYS TAKEN ffc16004: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16008: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1600c: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc16010: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc16014: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16018: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc1601c: 38 c6 4f 0c addi r6,r6,20236 <== NOT EXECUTED ffc16020: 38 80 02 e3 li r4,739 <== NOT EXECUTED ffc16024: 48 00 00 30 b ffc16054 <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc16028: 80 1f 00 4c lwz r0,76(r31) ffc1602c: 2f 80 00 05 cmpwi cr7,r0,5 ffc16030: 41 be 00 28 beq+ cr7,ffc16058 <== ALWAYS TAKEN ffc16034: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16038: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1603c: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc16040: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc16044: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16048: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc1604c: 38 c6 4f 16 addi r6,r6,20246 <== NOT EXECUTED ffc16050: 38 80 02 e7 li r4,743 <== NOT EXECUTED ffc16054: 4b fe f2 ed bl ffc05340 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); ffc16058: 2f 87 00 00 cmpwi cr7,r7,0 ffc1605c: 40 be 00 28 bne+ cr7,ffc16084 <== ALWAYS TAKEN ffc16060: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16064: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc16068: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc1606c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc16070: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16074: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc16078: 38 c6 4f 50 addi r6,r6,20304 <== NOT EXECUTED ffc1607c: 38 80 02 ef li r4,751 <== NOT EXECUTED ffc16080: 4b ff ff d4 b ffc16054 <== NOT EXECUTED /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) ffc16084: 2f 88 00 00 cmpwi cr7,r8,0 ffc16088: 40 be 00 10 bne+ cr7,ffc16098 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc1608c: 48 00 1f 85 bl ffc18010 <__errno> <== NOT EXECUTED ffc16090: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc16094: 48 00 00 40 b ffc160d4 <== 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 ) { ffc16098: 80 1f 00 50 lwz r0,80(r31) ffc1609c: 7c c8 32 14 add r6,r8,r6 ffc160a0: 2f 80 00 00 cmpwi cr7,r0,0 ffc160a4: 41 9c 00 14 blt- cr7,ffc160b8 <== NEVER TAKEN ffc160a8: 40 be 00 38 bne+ cr7,ffc160e0 <== NEVER TAKEN ffc160ac: 80 1f 00 54 lwz r0,84(r31) ffc160b0: 7f 80 30 40 cmplw cr7,r0,r6 ffc160b4: 40 9c 00 2c bge- cr7,ffc160e0 <== NEVER TAKEN status = IMFS_memfile_extend( the_jnode, last_byte ); ffc160b8: 7f e3 fb 78 mr r3,r31 ffc160bc: 38 a0 00 00 li r5,0 ffc160c0: 4b ff fc 01 bl ffc15cc0 <== ALWAYS TAKEN if ( status ) ffc160c4: 2f 83 00 00 cmpwi cr7,r3,0 ffc160c8: 41 be 00 18 beq+ cr7,ffc160e0 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc160cc: 48 00 1f 45 bl ffc18010 <__errno> <== NOT EXECUTED ffc160d0: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc160d4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc160d8: 3b 40 ff ff li r26,-1 <== NOT EXECUTED ffc160dc: 48 00 01 a0 b ffc1627c <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc160e0: 3d 20 00 00 lis r9,0 ffc160e4: 83 49 27 68 lwz r26,10088(r9) ffc160e8: 7f c4 f3 78 mr r4,r30 ffc160ec: 7f a3 eb 78 mr r3,r29 ffc160f0: 7f 58 fe 70 srawi r24,r26,31 ffc160f4: 7f 05 c3 78 mr r5,r24 ffc160f8: 7f 46 d3 78 mr r6,r26 ffc160fc: 48 00 c1 bd bl ffc222b8 <__moddi3> <== ALWAYS TAKEN block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc16100: 7f a3 eb 78 mr r3,r29 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc16104: 7c 99 23 78 mr r25,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc16108: 7f 05 c3 78 mr r5,r24 ffc1610c: 7f c4 f3 78 mr r4,r30 ffc16110: 7f 46 d3 78 mr r6,r26 ffc16114: 48 00 bd a1 bl ffc21eb4 <__divdi3> <== ALWAYS TAKEN if ( start_offset ) { ffc16118: 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; ffc1611c: 7c 9e 23 78 mr r30,r4 if ( start_offset ) { ffc16120: 40 9e 00 0c bne- cr7,ffc1612c ffc16124: 3b 40 00 00 li r26,0 ffc16128: 48 00 00 6c b ffc16194 <== ALWAYS TAKEN 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 ); ffc1612c: 7f e3 fb 78 mr r3,r31 ffc16130: 38 a0 00 00 li r5,0 ffc16134: 4b ff f4 81 bl ffc155b4 <== ALWAYS TAKEN assert( block_ptr ); ffc16138: 2c 03 00 00 cmpwi r3,0 ffc1613c: 40 a2 00 28 bne+ ffc16164 <== ALWAYS TAKEN ffc16140: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16144: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc16148: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc1614c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc16150: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16154: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc16158: 38 c6 4f 46 addi r6,r6,20294 <== NOT EXECUTED ffc1615c: 38 80 03 1c li r4,796 <== NOT EXECUTED ffc16160: 4b ff fe f4 b ffc16054 <== 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; ffc16164: 7f 59 d0 50 subf r26,r25,r26 ffc16168: 7f 9a d8 40 cmplw cr7,r26,r27 ffc1616c: 40 9d 00 08 ble- cr7,ffc16174 <== NEVER TAKEN ffc16170: 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 ); ffc16174: 80 63 00 00 lwz r3,0(r3) ffc16178: 7f 84 e3 78 mr r4,r28 ffc1617c: 7f 45 d3 78 mr r5,r26 ffc16180: 7c 63 ca 14 add r3,r3,r25 ffc16184: 48 00 2a 75 bl ffc18bf8 <== ALWAYS TAKEN src += to_copy; ffc16188: 7f 9c d2 14 add r28,r28,r26 block++; ffc1618c: 3b de 00 01 addi r30,r30,1 my_length -= to_copy; ffc16190: 7f 7a d8 50 subf r27,r26,r27 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc16194: 3d 20 00 00 lis r9,0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc16198: 3b 29 27 68 addi r25,r9,10088 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; ffc1619c: 83 a9 27 68 lwz r29,10088(r9) while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc161a0: 48 00 00 60 b ffc16200 <== ALWAYS TAKEN block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc161a4: 7f e3 fb 78 mr r3,r31 ffc161a8: 7f c4 f3 78 mr r4,r30 ffc161ac: 38 a0 00 00 li r5,0 ffc161b0: 4b ff f4 05 bl ffc155b4 <== ALWAYS TAKEN assert( block_ptr ); ffc161b4: 2c 03 00 00 cmpwi r3,0 ffc161b8: 40 a2 00 28 bne+ ffc161e0 <== ALWAYS TAKEN ffc161bc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc161c0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc161c4: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc161c8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc161cc: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc161d0: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc161d4: 38 c6 4f 46 addi r6,r6,20294 <== NOT EXECUTED ffc161d8: 38 80 03 30 li r4,816 <== NOT EXECUTED ffc161dc: 4b ff fe 78 b ffc16054 <== 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 ); ffc161e0: 80 63 00 00 lwz r3,0(r3) ffc161e4: 7f 84 e3 78 mr r4,r28 ffc161e8: 7f a5 eb 78 mr r5,r29 ffc161ec: 48 00 2a 0d bl ffc18bf8 <== ALWAYS TAKEN src += to_copy; ffc161f0: 7f 9c ea 14 add r28,r28,r29 block++; ffc161f4: 3b de 00 01 addi r30,r30,1 my_length -= to_copy; ffc161f8: 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( ffc161fc: 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 ) { ffc16200: 80 19 00 00 lwz r0,0(r25) ffc16204: 7f 9b 00 40 cmplw cr7,r27,r0 ffc16208: 40 9c ff 9c bge+ cr7,ffc161a4 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { ffc1620c: 2f 9b 00 00 cmpwi cr7,r27,0 ffc16210: 41 9e 00 54 beq- cr7,ffc16264 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc16214: 7f c4 f3 78 mr r4,r30 ffc16218: 7f e3 fb 78 mr r3,r31 ffc1621c: 38 a0 00 00 li r5,0 ffc16220: 4b ff f3 95 bl ffc155b4 <== ALWAYS TAKEN assert( block_ptr ); ffc16224: 2c 03 00 00 cmpwi r3,0 ffc16228: 40 a2 00 28 bne+ ffc16250 <== ALWAYS TAKEN ffc1622c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc16230: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc16234: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc16238: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1623c: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc16240: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc16244: 38 c6 4f 46 addi r6,r6,20294 <== NOT EXECUTED ffc16248: 38 80 03 46 li r4,838 <== NOT EXECUTED ffc1624c: 4b ff fe 08 b ffc16054 <== 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 ); ffc16250: 80 63 00 00 lwz r3,0(r3) ffc16254: 7f 84 e3 78 mr r4,r28 ffc16258: 7f 65 db 78 mr r5,r27 ffc1625c: 48 00 29 9d bl ffc18bf8 <== ALWAYS TAKEN my_length = 0; copied += to_copy; ffc16260: 7f 5a da 14 add r26,r26,r27 } IMFS_mtime_ctime_update( the_jnode ); ffc16264: 38 61 00 08 addi r3,r1,8 ffc16268: 38 80 00 00 li r4,0 ffc1626c: 4b fe f6 85 bl ffc058f0 <== ALWAYS TAKEN ffc16270: 80 01 00 08 lwz r0,8(r1) ffc16274: 90 1f 00 48 stw r0,72(r31) ffc16278: 90 1f 00 44 stw r0,68(r31) return copied; } ffc1627c: 80 01 00 3c lwz r0,60(r1) ffc16280: 7f 43 d3 78 mr r3,r26 ffc16284: 83 01 00 18 lwz r24,24(r1) ffc16288: 7c 08 03 a6 mtlr r0 ffc1628c: 83 21 00 1c lwz r25,28(r1) ffc16290: 83 41 00 20 lwz r26,32(r1) ffc16294: 83 61 00 24 lwz r27,36(r1) ffc16298: 83 81 00 28 lwz r28,40(r1) ffc1629c: 83 a1 00 2c lwz r29,44(r1) ffc162a0: 83 c1 00 30 lwz r30,48(r1) ffc162a4: 83 e1 00 34 lwz r31,52(r1) ffc162a8: 38 21 00 38 addi r1,r1,56 ffc162ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cbf4 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0cbf4: 94 21 ff 90 stwu r1,-112(r1) ffc0cbf8: 7c 08 02 a6 mflr r0 ffc0cbfc: 93 61 00 5c stw r27,92(r1) ffc0cc00: 7c fb 3b 78 mr r27,r7 ffc0cc04: 90 01 00 74 stw r0,116(r1) ffc0cc08: 93 81 00 60 stw r28,96(r1) ffc0cc0c: 7c 7c 1b 78 mr r28,r3 ffc0cc10: 93 a1 00 64 stw r29,100(r1) ffc0cc14: 7c bd 2b 78 mr r29,r5 ffc0cc18: 93 c1 00 68 stw r30,104(r1) <== ALWAYS TAKEN ffc0cc1c: 7c de 33 78 mr r30,r6 ffc0cc20: 93 e1 00 6c stw r31,108(r1) ffc0cc24: 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 ); ffc0cc28: 48 00 62 e1 bl ffc12f08 <== ALWAYS TAKEN ffc0cc2c: 38 a1 00 28 addi r5,r1,40 ffc0cc30: 7c 64 1b 78 mr r4,r3 ffc0cc34: 38 c1 00 08 addi r6,r1,8 ffc0cc38: 7f 83 e3 78 mr r3,r28 <== ALWAYS TAKEN ffc0cc3c: 4b ff fd b5 bl ffc0c9f0 <== ALWAYS TAKEN /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) ffc0cc40: 57 e0 04 26 rlwinm r0,r31,0,16,19 ffc0cc44: 2f 80 40 00 cmpwi cr7,r0,16384 ffc0cc48: 41 9e 00 50 beq- cr7,ffc0cc98 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) ffc0cc4c: 39 20 00 00 li r9,0 ffc0cc50: 61 29 80 00 ori r9,r9,32768 ffc0cc54: 7f 80 48 00 cmpw cr7,r0,r9 ffc0cc58: 38 80 00 05 li r4,5 ffc0cc5c: 41 9e 00 40 beq- cr7,ffc0cc9c type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { ffc0cc60: 2f 80 60 00 cmpwi cr7,r0,24576 ffc0cc64: 41 9e 00 0c beq- cr7,ffc0cc70 ffc0cc68: 2f 80 20 00 cmpwi cr7,r0,8192 ffc0cc6c: 40 be 00 14 bne+ cr7,ffc0cc80 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); ffc0cc70: 93 a1 00 10 stw r29,16(r1) ffc0cc74: 38 80 00 02 li r4,2 ffc0cc78: 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) ) { ffc0cc7c: 48 00 00 20 b ffc0cc9c <== ALWAYS TAKEN type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) ffc0cc80: 2f 80 10 00 cmpwi cr7,r0,4096 ffc0cc84: 38 80 00 07 li r4,7 ffc0cc88: 41 be 00 14 beq+ cr7,ffc0cc9c <== ALWAYS TAKEN type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); ffc0cc8c: 48 00 4f 81 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0cc90: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0cc94: 48 00 00 30 b ffc0ccc4 <== NOT EXECUTED ffc0cc98: 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( ffc0cc9c: 7f 63 db 78 mr r3,r27 ffc0cca0: 7f e6 fb 78 mr r6,r31 <== ALWAYS TAKEN ffc0cca4: 38 a1 00 28 addi r5,r1,40 ffc0cca8: 38 e1 00 10 addi r7,r1,16 ffc0ccac: 48 00 32 31 bl ffc0fedc <== ALWAYS TAKEN new_name, mode, &info ); if ( !new_node ) ffc0ccb0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ccb4: 38 60 00 00 li r3,0 ffc0ccb8: 40 be 00 14 bne+ cr7,ffc0cccc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc0ccbc: 48 00 4f 51 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0ccc0: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0ccc4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ccc8: 38 60 ff ff li r3,-1 <== NOT EXECUTED return 0; } ffc0cccc: 80 01 00 74 lwz r0,116(r1) ffc0ccd0: 83 61 00 5c lwz r27,92(r1) ffc0ccd4: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0ccd8: 83 81 00 60 lwz r28,96(r1) ffc0ccdc: 83 a1 00 64 lwz r29,100(r1) ffc0cce0: 83 c1 00 68 lwz r30,104(r1) ffc0cce4: 83 e1 00 6c lwz r31,108(r1) ffc0cce8: 38 21 00 70 addi r1,r1,112 <== ALWAYS TAKEN ffc0ccec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04e20 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc04e20: 7c 08 02 a6 mflr r0 ffc04e24: 94 21 ff f8 stwu r1,-8(r1) ffc04e28: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc04e2c: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc04e30: 80 09 00 4c lwz r0,76(r9) ffc04e34: 2f 80 00 01 cmpwi cr7,r0,1 ffc04e38: 41 be 00 18 beq+ cr7,ffc04e50 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc04e3c: 48 01 31 d5 bl ffc18010 <__errno> <== NOT EXECUTED ffc04e40: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc04e44: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04e48: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc04e4c: 48 00 00 0c b ffc04e58 <== 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; ffc04e50: 90 69 00 5c stw r3,92(r9) ffc04e54: 38 60 00 00 li r3,0 return 0; } ffc04e58: 80 01 00 0c lwz r0,12(r1) ffc04e5c: 38 21 00 08 addi r1,r1,8 ffc04e60: 7c 08 03 a6 mtlr r0 ffc04e64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ccf0 : #include "imfs.h" rtems_filesystem_node_types_t IMFS_node_type( rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc0ccf0: 81 23 00 00 lwz r9,0(r3) <== ALWAYS TAKEN IMFS_jnode_t *node; node = pathloc->node_access; return node->type; } ffc0ccf4: 80 69 00 4c lwz r3,76(r9) ffc0ccf8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05ba4 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc05ba4: 94 21 ff f0 stwu r1,-16(r1) ffc05ba8: 7c 08 02 a6 mflr r0 ffc05bac: 93 e1 00 0c stw r31,12(r1) assert( the_jnode ); ffc05bb0: 7c 7f 1b 79 mr. r31,r3 */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc05bb4: 90 01 00 14 stw r0,20(r1) ffc05bb8: 93 c1 00 08 stw r30,8(r1) assert( the_jnode ); ffc05bbc: 40 a2 00 24 bne+ ffc05be0 <== ALWAYS TAKEN ffc05bc0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05bc4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05bc8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05bcc: 38 63 7f 00 addi r3,r3,32512 <== NOT EXECUTED ffc05bd0: 38 a5 7e d8 addi r5,r5,32472 <== NOT EXECUTED ffc05bd4: 38 c6 7f 49 addi r6,r6,32585 <== NOT EXECUTED ffc05bd8: 38 80 00 38 li r4,56 <== NOT EXECUTED ffc05bdc: 48 00 00 e8 b ffc05cc4 <== NOT EXECUTED fprintf(stdout, "%s", the_jnode->name ); ffc05be0: 3f c0 00 00 lis r30,0 ffc05be4: 81 3e 27 4c lwz r9,10060(r30) ffc05be8: 38 7f 00 0c addi r3,r31,12 ffc05bec: 80 89 00 08 lwz r4,8(r9) ffc05bf0: 48 01 1d 01 bl ffc178f0 <== ALWAYS TAKEN switch( the_jnode->type ) { ffc05bf4: 80 bf 00 4c lwz r5,76(r31) ffc05bf8: 38 05 ff ff addi r0,r5,-1 ffc05bfc: 2b 80 00 06 cmplwi cr7,r0,6 ffc05c00: 41 9d 01 30 bgt- cr7,ffc05d30 <== NEVER TAKEN ffc05c04: 3d 20 ff c2 lis r9,-62 ffc05c08: 39 29 7e bc addi r9,r9,32444 ffc05c0c: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc05c10: 7c 09 00 2e lwzx r0,r9,r0 ffc05c14: 7d 20 4a 14 add r9,r0,r9 ffc05c18: 7d 29 03 a6 mtctr r9 ffc05c1c: 4e 80 04 20 bctr <== ALWAYS TAKEN case IMFS_DIRECTORY: fprintf(stdout, "/" ); ffc05c20: 81 3e 27 4c lwz r9,10060(r30) ffc05c24: 38 60 00 2f li r3,47 ffc05c28: 80 89 00 08 lwz r4,8(r9) ffc05c2c: 48 01 1b 59 bl ffc17784 <== ALWAYS TAKEN break; ffc05c30: 48 00 01 38 b ffc05d68 <== ALWAYS TAKEN case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", ffc05c34: 81 3e 27 4c lwz r9,10060(r30) ffc05c38: 3c 80 ff c2 lis r4,-62 ffc05c3c: 80 df 00 54 lwz r6,84(r31) ffc05c40: 38 84 7f 53 addi r4,r4,32595 ffc05c44: 80 69 00 08 lwz r3,8(r9) ffc05c48: 80 bf 00 50 lwz r5,80(r31) ffc05c4c: 48 00 00 1c b ffc05c68 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", ffc05c50: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc05c54: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc05c58: 80 df 00 58 lwz r6,88(r31) <== NOT EXECUTED ffc05c5c: 38 84 7f 66 addi r4,r4,32614 <== NOT EXECUTED ffc05c60: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc05c64: 80 bf 00 54 lwz r5,84(r31) <== NOT EXECUTED ffc05c68: 4c c6 31 82 crclr 4*cr1+eq ffc05c6c: 48 01 1a 09 bl ffc17674 <== ALWAYS TAKEN (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; ffc05c70: 48 00 00 f8 b ffc05d68 <== ALWAYS TAKEN the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", ffc05c74: 81 3e 27 4c lwz r9,10060(r30) ffc05c78: 3c 80 ff c2 lis r4,-62 ffc05c7c: 80 bf 00 54 lwz r5,84(r31) ffc05c80: 38 84 7f 75 addi r4,r4,32629 ffc05c84: 80 69 00 08 lwz r3,8(r9) ffc05c88: 4c c6 31 82 crclr 4*cr1+eq ffc05c8c: 48 01 19 e9 bl ffc17674 <== ALWAYS TAKEN (uint32_t)the_jnode->info.file.size ); #endif break; ffc05c90: 48 00 00 d8 b ffc05d68 <== ALWAYS TAKEN case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); ffc05c94: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc05c98: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05c9c: 38 63 7f 81 addi r3,r3,32641 <== NOT EXECUTED ffc05ca0: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc05ca4: 48 01 1c 4d bl ffc178f0 <== NOT EXECUTED assert(0); ffc05ca8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05cac: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05cb0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05cb4: 38 63 7f 00 addi r3,r3,32512 <== NOT EXECUTED ffc05cb8: 38 a5 7e d8 addi r5,r5,32472 <== NOT EXECUTED ffc05cbc: 38 c6 6f dd addi r6,r6,28637 <== NOT EXECUTED ffc05cc0: 38 80 00 5d li r4,93 <== NOT EXECUTED ffc05cc4: 48 00 0a a5 bl ffc06768 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); ffc05cc8: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc05ccc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05cd0: 38 63 7f 81 addi r3,r3,32641 <== NOT EXECUTED ffc05cd4: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc05cd8: 48 01 1c 19 bl ffc178f0 <== NOT EXECUTED assert(0); ffc05cdc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05ce0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05ce4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05ce8: 38 63 7f 00 addi r3,r3,32512 <== NOT EXECUTED ffc05cec: 38 a5 7e d8 addi r5,r5,32472 <== NOT EXECUTED ffc05cf0: 38 c6 6f dd addi r6,r6,28637 <== NOT EXECUTED ffc05cf4: 38 80 00 62 li r4,98 <== NOT EXECUTED ffc05cf8: 4b ff ff cc b ffc05cc4 <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); ffc05cfc: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc05d00: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05d04: 38 63 7f 95 addi r3,r3,32661 <== NOT EXECUTED ffc05d08: 80 89 00 08 lwz r4,8(r9) <== NOT EXECUTED ffc05d0c: 48 01 1b e5 bl ffc178f0 <== NOT EXECUTED assert(0); ffc05d10: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05d14: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05d18: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05d1c: 38 63 7f 00 addi r3,r3,32512 <== NOT EXECUTED ffc05d20: 38 a5 7e d8 addi r5,r5,32472 <== NOT EXECUTED ffc05d24: 38 c6 6f dd addi r6,r6,28637 <== NOT EXECUTED ffc05d28: 38 80 00 67 li r4,103 <== NOT EXECUTED ffc05d2c: 4b ff ff 98 b ffc05cc4 <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); ffc05d30: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc05d34: 3c 80 ff c2 lis r4,-62 <== NOT EXECUTED ffc05d38: 38 84 7f a8 addi r4,r4,32680 <== NOT EXECUTED ffc05d3c: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc05d40: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc05d44: 48 01 19 31 bl ffc17674 <== NOT EXECUTED assert(0); ffc05d48: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc05d4c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc05d50: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc05d54: 38 63 7f 00 addi r3,r3,32512 <== NOT EXECUTED ffc05d58: 38 a5 7e d8 addi r5,r5,32472 <== NOT EXECUTED ffc05d5c: 38 c6 6f dd addi r6,r6,28637 <== NOT EXECUTED ffc05d60: 38 80 00 6c li r4,108 <== NOT EXECUTED ffc05d64: 4b ff ff 60 b ffc05cc4 <== NOT EXECUTED break; } puts(""); ffc05d68: 3c 60 ff c3 lis r3,-61 ffc05d6c: 38 63 81 da addi r3,r3,-32294 ffc05d70: 48 01 3b 3d bl ffc198ac <== ALWAYS TAKEN } ffc05d74: 80 01 00 14 lwz r0,20(r1) ffc05d78: 83 c1 00 08 lwz r30,8(r1) ffc05d7c: 7c 08 03 a6 mtlr r0 ffc05d80: 83 e1 00 0c lwz r31,12(r1) ffc05d84: 38 21 00 10 addi r1,r1,16 ffc05d88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04e74 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { ffc04e74: 7c 08 02 a6 mflr r0 ffc04e78: 94 21 ff f8 stwu r1,-8(r1) ffc04e7c: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; int i; node = loc->node_access; ffc04e80: 81 23 00 00 lwz r9,0(r3) if ( node->type != IMFS_SYM_LINK ) ffc04e84: 80 09 00 4c lwz r0,76(r9) ffc04e88: 2f 80 00 04 cmpwi cr7,r0,4 ffc04e8c: 40 9e 00 1c bne- cr7,ffc04ea8 <== NEVER TAKEN ffc04e90: 2f 85 00 00 cmpwi cr7,r5,0 ffc04e94: 38 60 00 00 li r3,0 ffc04e98: 38 a5 00 01 addi r5,r5,1 ffc04e9c: 40 be 00 28 bne+ cr7,ffc04ec4 <== ALWAYS TAKEN ffc04ea0: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc04ea4: 48 00 00 20 b ffc04ec4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EINVAL ); ffc04ea8: 48 01 31 69 bl ffc18010 <__errno> <== NOT EXECUTED ffc04eac: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc04eb0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04eb4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc04eb8: 48 00 00 24 b ffc04edc <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; ffc04ebc: 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++ ) ffc04ec0: 38 63 00 01 addi r3,r3,1 ffc04ec4: 34 a5 ff ff addic. r5,r5,-1 ffc04ec8: 41 82 00 14 beq- ffc04edc ffc04ecc: 81 69 00 50 lwz r11,80(r9) ffc04ed0: 7c 0b 18 ae lbzx r0,r11,r3 ffc04ed4: 2f 80 00 00 cmpwi cr7,r0,0 ffc04ed8: 40 9e ff e4 bne+ cr7,ffc04ebc buf[i] = node->info.sym_link.name[i]; return i; } ffc04edc: 80 01 00 0c lwz r0,12(r1) ffc04ee0: 38 21 00 08 addi r1,r1,8 ffc04ee4: 7c 08 03 a6 mtlr r0 ffc04ee8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04eec : 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 */ ) { ffc04eec: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc04ef0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc04ef4: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc04ef8: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; ffc04efc: 83 e4 00 00 lwz r31,0(r4) <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); ffc04f00: 7c c4 33 78 mr r4,r6 <== NOT EXECUTED rtems_filesystem_location_info_t *old_parent_loc, /* IN */ rtems_filesystem_location_info_t *old_loc, /* IN */ rtems_filesystem_location_info_t *new_parent_loc, /* IN */ const char *new_name /* IN */ ) { ffc04f04: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc04f08: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); ffc04f0c: 38 7f 00 0c addi r3,r31,12 <== NOT EXECUTED ffc04f10: 38 a0 00 20 li r5,32 <== NOT EXECUTED ffc04f14: 48 01 44 59 bl ffc1936c <== NOT EXECUTED if ( the_jnode->Parent != NULL ) ffc04f18: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc04f1c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04f20: 41 9e 00 0c beq- cr7,ffc04f2c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc04f24: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04f28: 48 00 57 d1 bl ffc0a6f8 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; ffc04f2c: 80 7e 00 00 lwz r3,0(r30) <== NOT EXECUTED RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); ffc04f30: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED the_jnode->Parent = new_parent; ffc04f34: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED ffc04f38: 38 63 00 50 addi r3,r3,80 <== NOT EXECUTED ffc04f3c: 48 00 57 8d bl ffc0a6c8 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); ffc04f40: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc04f44: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc04f48: 48 00 09 a9 bl ffc058f0 <== NOT EXECUTED ffc04f4c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED return 0; } ffc04f50: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc04f54: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); ffc04f58: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED return 0; } ffc04f5c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc04f60: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc04f64: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc04f68: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04f6c: 4e 80 00 20 blr <== NOT EXECUTED ffc0ccfc : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc0ccfc: 94 21 ff e0 stwu r1,-32(r1) ffc0cd00: 7c 08 02 a6 mflr r0 ffc0cd04: 90 01 00 24 stw r0,36(r1) ffc0cd08: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc0cd0c: 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 */ ) { ffc0cd10: 93 c1 00 18 stw r30,24(r1) ffc0cd14: 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 ) { ffc0cd18: 80 1f 00 08 lwz r0,8(r31) ffc0cd1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cd20: 41 9e 00 14 beq- cr7,ffc0cd34 <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0cd24: 7f e3 fb 78 mr r3,r31 ffc0cd28: 48 00 18 05 bl ffc0e52c <_Chain_Extract> <== ALWAYS TAKEN rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc0cd2c: 38 00 00 00 li r0,0 ffc0cd30: 90 1f 00 08 stw r0,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0cd34: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc0cd38: 38 80 00 00 li r4,0 ffc0cd3c: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0cd40: 38 09 ff ff addi r0,r9,-1 ffc0cd44: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc0cd48: 48 00 03 d5 bl ffc0d11c <== ALWAYS TAKEN ffc0cd4c: 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) ) { ffc0cd50: 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 ); ffc0cd54: 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) ) { ffc0cd58: 48 00 04 a5 bl ffc0d1fc <== ALWAYS TAKEN ffc0cd5c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cd60: 40 9e 00 50 bne- cr7,ffc0cdb0 <== NEVER TAKEN ffc0cd64: a0 1f 00 34 lhz r0,52(r31) ffc0cd68: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cd6c: 40 9e 00 44 bne- cr7,ffc0cdb0 <== NEVER TAKEN /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc0cd70: 3d 20 00 00 lis r9,0 ffc0cd74: 81 7e 00 00 lwz r11,0(r30) ffc0cd78: 81 29 26 dc lwz r9,9948(r9) ffc0cd7c: 81 49 00 04 lwz r10,4(r9) ffc0cd80: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0cd84: 40 be 00 08 bne+ cr7,ffc0cd8c <== ALWAYS TAKEN rtems_filesystem_current.node_access = NULL; ffc0cd88: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { ffc0cd8c: 80 1f 00 4c lwz r0,76(r31) ffc0cd90: 2f 80 00 04 cmpwi cr7,r0,4 ffc0cd94: 40 be 00 14 bne+ cr7,ffc0cda8 if ( the_jnode->info.sym_link.name ) ffc0cd98: 80 7f 00 50 lwz r3,80(r31) ffc0cd9c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cda0: 41 9e 00 08 beq- cr7,ffc0cda8 <== NEVER TAKEN free( (void*) the_jnode->info.sym_link.name ); ffc0cda4: 4b ff 72 b5 bl ffc04058 <== ALWAYS TAKEN } free( the_jnode ); ffc0cda8: 7f e3 fb 78 mr r3,r31 ffc0cdac: 4b ff 72 ad bl ffc04058 <== ALWAYS TAKEN } return 0; } ffc0cdb0: 80 01 00 24 lwz r0,36(r1) ffc0cdb4: 38 60 00 00 li r3,0 ffc0cdb8: 83 c1 00 18 lwz r30,24(r1) ffc0cdbc: 7c 08 03 a6 mtlr r0 ffc0cdc0: 83 e1 00 1c lwz r31,28(r1) ffc0cdc4: 38 21 00 20 addi r1,r1,32 ffc0cdc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cdcc : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { ffc0cdcc: 7c 08 02 a6 mflr r0 ffc0cdd0: 94 21 ff f8 stwu r1,-8(r1) ffc0cdd4: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; ffc0cdd8: 81 23 00 00 lwz r9,0(r3) switch ( the_jnode->type ) { ffc0cddc: 81 69 00 4c lwz r11,76(r9) ffc0cde0: 38 0b ff fe addi r0,r11,-2 ffc0cde4: 2b 80 00 05 cmplwi cr7,r0,5 <== ALWAYS TAKEN ffc0cde8: 41 9d 00 54 bgt- cr7,ffc0ce3c <== NEVER TAKEN ffc0cdec: 3d 60 ff c2 lis r11,-62 ffc0cdf0: 39 6b e0 e4 addi r11,r11,-7964 ffc0cdf4: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0cdf8: 7c 0b 00 2e lwzx r0,r11,r0 ffc0cdfc: 7d 60 5a 14 add r11,r0,r11 ffc0ce00: 7d 69 03 a6 mtctr r11 ffc0ce04: 4e 80 04 20 bctr <== ALWAYS TAKEN case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); ffc0ce08: 81 69 00 54 lwz r11,84(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc0ce0c: 80 09 00 50 lwz r0,80(r9) ffc0ce10: 91 64 00 1c stw r11,28(r4) ffc0ce14: 90 04 00 18 stw r0,24(r4) break; ffc0ce18: 48 00 00 38 b ffc0ce50 <== ALWAYS TAKEN case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; ffc0ce1c: 81 69 00 50 lwz r11,80(r9) ffc0ce20: 81 89 00 54 lwz r12,84(r9) ffc0ce24: 48 00 00 0c b ffc0ce30 <== ALWAYS TAKEN case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; ffc0ce28: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc0ce2c: 39 80 00 00 li r12,0 <== NOT EXECUTED ffc0ce30: 91 64 00 20 stw r11,32(r4) ffc0ce34: 91 84 00 24 stw r12,36(r4) break; ffc0ce38: 48 00 00 18 b ffc0ce50 <== ALWAYS TAKEN default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0ce3c: 48 00 4d d1 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0ce40: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0ce44: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ce48: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0ce4c: 48 00 00 48 b ffc0ce94 <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; ffc0ce50: 80 09 00 38 lwz r0,56(r9) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0ce54: 38 60 00 00 li r3,0 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc0ce58: a1 69 00 34 lhz r11,52(r9) buf->st_ino = the_jnode->st_ino; ffc0ce5c: 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; ffc0ce60: 80 09 00 40 lwz r0,64(r9) rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc0ce64: b1 64 00 10 sth r11,16(r4) buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; ffc0ce68: 90 04 00 28 stw r0,40(r4) } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; ffc0ce6c: a1 69 00 3c lhz r11,60(r9) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc0ce70: 80 09 00 44 lwz r0,68(r9) } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; ffc0ce74: b1 64 00 12 sth r11,18(r4) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc0ce78: 90 04 00 30 stw r0,48(r4) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; ffc0ce7c: 81 69 00 30 lwz r11,48(r9) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0ce80: 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; ffc0ce84: a0 09 00 3e lhz r0,62(r9) buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0ce88: 91 44 00 38 stw r10,56(r4) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; ffc0ce8c: 91 64 00 0c stw r11,12(r4) buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; ffc0ce90: 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; } ffc0ce94: 80 01 00 0c lwz r0,12(r1) ffc0ce98: 38 21 00 08 addi r1,r1,8 ffc0ce9c: 7c 08 03 a6 mtlr r0 ffc0cea0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04f70 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { ffc04f70: 94 21 ff 98 stwu r1,-104(r1) ffc04f74: 7c 08 02 a6 mflr r0 ffc04f78: 93 c1 00 60 stw r30,96(r1) ffc04f7c: 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 ); ffc04f80: 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 ) { ffc04f84: 90 01 00 6c stw r0,108(r1) ffc04f88: 93 81 00 58 stw r28,88(r1) ffc04f8c: 7c bc 2b 78 mr r28,r5 ffc04f90: 93 a1 00 5c stw r29,92(r1) ffc04f94: 7c 9d 23 78 mr r29,r4 ffc04f98: 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 ); ffc04f9c: 48 01 43 35 bl ffc192d0 <== ALWAYS TAKEN ffc04fa0: 3b e1 00 28 addi r31,r1,40 ffc04fa4: 7c 64 1b 78 mr r4,r3 ffc04fa8: 7f e5 fb 78 mr r5,r31 ffc04fac: 38 c1 00 08 addi r6,r1,8 ffc04fb0: 7f 83 e3 78 mr r3,r28 ffc04fb4: 48 00 d9 41 bl ffc128f4 <== ALWAYS TAKEN /* * Duplicate link name */ info.sym_link.name = strdup(link_name); ffc04fb8: 7f a3 eb 78 mr r3,r29 ffc04fbc: 48 01 42 7d bl ffc19238 <== ALWAYS TAKEN if (info.sym_link.name == NULL) { ffc04fc0: 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); ffc04fc4: 90 61 00 10 stw r3,16(r1) if (info.sym_link.name == NULL) { ffc04fc8: 41 9e 00 34 beq- cr7,ffc04ffc <== 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( ffc04fcc: 38 c0 00 00 li r6,0 ffc04fd0: 7f c3 f3 78 mr r3,r30 ffc04fd4: 7f e5 fb 78 mr r5,r31 ffc04fd8: 60 c6 a1 ff ori r6,r6,41471 ffc04fdc: 38 80 00 04 li r4,4 ffc04fe0: 38 e1 00 10 addi r7,r1,16 ffc04fe4: 48 00 c9 bd bl ffc119a0 <== ALWAYS TAKEN new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { ffc04fe8: 2f 83 00 00 cmpwi cr7,r3,0 ffc04fec: 38 60 00 00 li r3,0 ffc04ff0: 40 be 00 1c bne+ cr7,ffc0500c <== ALWAYS TAKEN free(info.sym_link.name); ffc04ff4: 80 61 00 10 lwz r3,16(r1) <== NOT EXECUTED ffc04ff8: 48 00 08 31 bl ffc05828 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc04ffc: 48 01 30 15 bl ffc18010 <__errno> <== NOT EXECUTED ffc05000: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc05004: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05008: 38 60 ff ff li r3,-1 <== NOT EXECUTED } return 0; } ffc0500c: 80 01 00 6c lwz r0,108(r1) ffc05010: 83 81 00 58 lwz r28,88(r1) ffc05014: 7c 08 03 a6 mtlr r0 ffc05018: 83 a1 00 5c lwz r29,92(r1) ffc0501c: 83 c1 00 60 lwz r30,96(r1) ffc05020: 83 e1 00 64 lwz r31,100(r1) ffc05024: 38 21 00 68 addi r1,r1,104 ffc05028: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0502c : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { ffc0502c: 94 21 ff c8 stwu r1,-56(r1) ffc05030: 7c 08 02 a6 mflr r0 ffc05034: 90 01 00 3c stw r0,60(r1) ffc05038: 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; ffc0503c: 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 */ ) { ffc05040: 93 a1 00 2c stw r29,44(r1) ffc05044: 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 ) { ffc05048: 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 */ ) { ffc0504c: 93 e1 00 34 stw r31,52(r1) ffc05050: 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 ) { ffc05054: 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 */ ) { ffc05058: 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 ) { ffc0505c: 40 9e 00 ac bne- cr7,ffc05108 if ( !node->info.hard_link.link_node ) ffc05060: 80 1e 00 50 lwz r0,80(r30) ffc05064: 2f 80 00 00 cmpwi cr7,r0,0 ffc05068: 40 be 00 18 bne+ cr7,ffc05080 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc0506c: 48 01 2f a5 bl ffc18010 <__errno> <== NOT EXECUTED ffc05070: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05074: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05078: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0507c: 48 00 00 a4 b ffc05120 <== NOT EXECUTED the_link = *loc; the_link.node_access = node->info.hard_link.link_node; ffc05080: 7c 3c 0b 78 mr r28,r1 ffc05084: 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; ffc05088: 81 64 00 08 lwz r11,8(r4) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc0508c: 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; ffc05090: 81 24 00 0c lwz r9,12(r4) ffc05094: 81 44 00 04 lwz r10,4(r4) ffc05098: 80 04 00 10 lwz r0,16(r4) ffc0509c: 91 61 00 18 stw r11,24(r1) ffc050a0: 91 21 00 1c stw r9,28(r1) ffc050a4: 91 41 00 14 stw r10,20(r1) ffc050a8: 90 01 00 20 stw r0,32(r1) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc050ac: 48 00 ca 5d bl ffc11b08 <== ALWAYS TAKEN /* * 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) ffc050b0: 81 3e 00 50 lwz r9,80(r30) ffc050b4: a1 69 00 34 lhz r11,52(r9) ffc050b8: 2f 8b 00 01 cmpwi cr7,r11,1 ffc050bc: 40 be 00 2c bne+ cr7,ffc050e8 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); ffc050c0: 81 21 00 18 lwz r9,24(r1) ffc050c4: 7f 84 e3 78 mr r4,r28 ffc050c8: 7f a3 eb 78 mr r3,r29 ffc050cc: 80 09 00 34 lwz r0,52(r9) ffc050d0: 7c 09 03 a6 mtctr r0 ffc050d4: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( result != 0 ) ffc050d8: 2f 83 00 00 cmpwi cr7,r3,0 ffc050dc: 38 60 ff ff li r3,-1 ffc050e0: 41 be 00 28 beq+ cr7,ffc05108 ffc050e4: 48 00 00 3c b ffc05120 <== ALWAYS TAKEN return -1; } else { node->info.hard_link.link_node->st_nlink --; ffc050e8: 39 6b ff ff addi r11,r11,-1 ffc050ec: b1 69 00 34 sth r11,52(r9) IMFS_update_ctime( node->info.hard_link.link_node ); ffc050f0: 38 61 00 08 addi r3,r1,8 ffc050f4: 38 80 00 00 li r4,0 ffc050f8: 48 00 07 f9 bl ffc058f0 <== ALWAYS TAKEN ffc050fc: 81 3e 00 50 lwz r9,80(r30) ffc05100: 80 01 00 08 lwz r0,8(r1) ffc05104: 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 ); ffc05108: 81 3f 00 08 lwz r9,8(r31) ffc0510c: 7f a3 eb 78 mr r3,r29 ffc05110: 7f e4 fb 78 mr r4,r31 ffc05114: 80 09 00 34 lwz r0,52(r9) ffc05118: 7c 09 03 a6 mtctr r0 ffc0511c: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc05120: 80 01 00 3c lwz r0,60(r1) ffc05124: 83 81 00 28 lwz r28,40(r1) ffc05128: 7c 08 03 a6 mtlr r0 ffc0512c: 83 a1 00 2c lwz r29,44(r1) ffc05130: 83 c1 00 30 lwz r30,48(r1) ffc05134: 83 e1 00 34 lwz r31,52(r1) ffc05138: 38 21 00 38 addi r1,r1,56 ffc0513c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05140 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc05140: 7c 08 02 a6 mflr r0 ffc05144: 94 21 ff f8 stwu r1,-8(r1) ffc05148: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc0514c: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc05150: 80 09 00 4c lwz r0,76(r9) ffc05154: 2f 80 00 01 cmpwi cr7,r0,1 ffc05158: 41 be 00 10 beq+ cr7,ffc05168 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0515c: 48 01 2e b5 bl ffc18010 <__errno> <== NOT EXECUTED ffc05160: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc05164: 48 00 00 18 b ffc0517c <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) ffc05168: 80 09 00 5c lwz r0,92(r9) ffc0516c: 2f 80 00 00 cmpwi cr7,r0,0 ffc05170: 40 be 00 18 bne+ cr7,ffc05188 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ ffc05174: 48 01 2e 9d bl ffc18010 <__errno> <== NOT EXECUTED ffc05178: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0517c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05180: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05184: 48 00 00 10 b ffc05194 <== 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; ffc05188: 38 00 00 00 li r0,0 ffc0518c: 90 09 00 5c stw r0,92(r9) ffc05190: 38 60 00 00 li r3,0 return 0; } ffc05194: 80 01 00 0c lwz r0,12(r1) ffc05198: 38 21 00 08 addi r1,r1,8 ffc0519c: 7c 08 03 a6 mtlr r0 ffc051a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc051a4 : time_t modtime /* IN */ ) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc051a4: 81 23 00 00 lwz r9,0(r3) the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; return 0; } ffc051a8: 38 60 00 00 li r3,0 IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; ffc051ac: 90 a9 00 44 stw r5,68(r9) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; the_jnode->stat_atime = actime; ffc051b0: 90 89 00 40 stw r4,64(r9) the_jnode->stat_mtime = modtime; return 0; } ffc051b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc042a8 : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc042a8: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc042ac: 94 21 ff e8 stwu r1,-24(r1) ffc042b0: 7c 08 02 a6 mflr r0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc042b4: 81 29 27 08 lwz r9,9992(r9) void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc042b8: 93 a1 00 0c stw r29,12(r1) ffc042bc: 7c bd 2b 78 mr r29,r5 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc042c0: 2f 89 00 00 cmpwi cr7,r9,0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc042c4: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc042c8: 7c 9e 23 78 mr r30,r4 ffc042cc: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN ffc042d0: 7c 7f 1b 78 mr r31,r3 ffc042d4: 90 01 00 1c stw r0,28(r1) #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc042d8: 41 9e 00 10 beq- cr7,ffc042e8 <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->initialize)(); ffc042dc: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc042e0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc042e4: 4e 80 04 21 bctrl <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); ffc042e8: 4b ff ff 31 bl ffc04218 <== ALWAYS TAKEN /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { ffc042ec: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc042f0: 81 29 27 0c lwz r9,9996(r9) ffc042f4: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc042f8: 41 9e 00 24 beq- cr7,ffc0431c <== ALWAYS TAKEN void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( ffc042fc: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc04300: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04304: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED ffc04308: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; ffc0430c: 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)( ffc04310: 4e 80 04 21 bctrl <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; ffc04314: 7f c3 f0 50 subf r30,r3,r30 <== NOT EXECUTED ffc04318: 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 ( ffc0431c: 3d 20 00 00 lis r9,0 ffc04320: 88 09 27 05 lbz r0,9989(r9) ffc04324: 2f 80 00 00 cmpwi cr7,r0,0 ffc04328: 40 9e 00 24 bne- cr7,ffc0434c !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ffc0432c: 3d 20 00 00 lis r9,0 ffc04330: 88 09 20 c8 lbz r0,8392(r9) <== ALWAYS TAKEN ffc04334: 2f 80 00 00 cmpwi cr7,r0,0 ffc04338: 41 be 00 14 beq+ cr7,ffc0434c ) { memset( heap_begin, 0, heap_size ); ffc0433c: 7f e3 fb 78 mr r3,r31 ffc04340: 38 80 00 00 li r4,0 ffc04344: 7f c5 f3 78 mr r5,r30 ffc04348: 48 00 e5 ad bl ffc128f4 <== ALWAYS TAKEN * 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 ) { ffc0434c: 3d 20 00 00 lis r9,0 ffc04350: 88 09 27 05 lbz r0,9989(r9) ffc04354: 2f 80 00 00 cmpwi cr7,r0,0 ffc04358: 40 9e 00 2c bne- cr7,ffc04384 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); ffc0435c: 3d 20 00 00 lis r9,0 ffc04360: 80 69 26 9c lwz r3,9884(r9) ffc04364: 7f e4 fb 78 mr r4,r31 ffc04368: 7f c5 f3 78 mr r5,r30 ffc0436c: 38 c0 00 08 li r6,8 ffc04370: 48 00 4a f9 bl ffc08e68 <_Heap_Initialize> <== ALWAYS TAKEN RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { ffc04374: 2f 83 00 00 cmpwi cr7,r3,0 ffc04378: 40 be 00 0c bne+ cr7,ffc04384 <== ALWAYS TAKEN rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); ffc0437c: 38 60 00 1a li r3,26 <== NOT EXECUTED ffc04380: 48 00 40 6d bl ffc083ec <== NOT EXECUTED } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); ffc04384: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc04388: 80 69 26 9c lwz r3,9884(r9) ffc0438c: 3f e0 00 00 lis r31,0 ffc04390: 83 df 2b 00 lwz r30,11008(r31) ffc04394: 48 00 58 c1 bl ffc09c54 <_Protected_heap_Get_size> <== ALWAYS TAKEN printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } ffc04398: 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) ); ffc0439c: 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 } ffc043a0: 83 a1 00 0c lwz r29,12(r1) ffc043a4: 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) ); ffc043a8: 90 7f 2b 00 stw r3,11008(r31) printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } ffc043ac: 83 c1 00 10 lwz r30,16(r1) <== ALWAYS TAKEN ffc043b0: 83 e1 00 14 lwz r31,20(r1) ffc043b4: 38 21 00 18 addi r1,r1,24 ffc043b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06124 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { ffc06124: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc06128: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0612c: 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 ) ffc06130: 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 ) { ffc06134: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc06138: 93 21 00 1c stw r25,28(r1) <== NOT EXECUTED ffc0613c: 93 61 00 24 stw r27,36(r1) <== NOT EXECUTED ffc06140: 93 81 00 28 stw r28,40(r1) <== NOT EXECUTED ffc06144: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc06148: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc0614c: 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 ) ffc06150: 41 82 01 6c beq- ffc062bc <== NOT EXECUTED return; if ( !print_handler ) ffc06154: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06158: 83 a9 37 6c lwz r29,14188(r9) <== NOT EXECUTED ffc0615c: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc06160: 41 9e 01 5c beq- cr7,ffc062bc <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { ffc06164: 2f 9a ff ff cmpwi cr7,r26,-1 <== NOT EXECUTED ffc06168: 40 be 00 24 bne+ cr7,ffc0618c <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { ffc0616c: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc06170: 3b ff 35 e8 addi r31,r31,13800 <== NOT EXECUTED ffc06174: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06178: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc0617c: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc06180: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06184: 40 be 00 10 bne+ cr7,ffc06194 <== NOT EXECUTED ffc06188: 48 00 01 34 b ffc062bc <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); ffc0618c: 83 7a 00 dc lwz r27,220(r26) <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; ffc06190: 3b fa 00 cc addi r31,r26,204 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); ffc06194: 83 3f 00 04 lwz r25,4(r31) <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc06198: 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); ffc0619c: 3b 39 00 80 addi r25,r25,128 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc061a0: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); ffc061a4: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc061a8: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc061ac: 4b ff ff 41 bl ffc060ec <== NOT EXECUTED if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { ffc061b0: 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 ) ffc061b4: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED ffc061b8: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED ffc061bc: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc061c0: 7f d9 e2 14 add r30,r25,r28 <== NOT EXECUTED ffc061c4: 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 ) ffc061c8: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED ffc061cc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc061d0: 7f de 00 38 and r30,r30,r0 <== NOT EXECUTED ffc061d4: 39 29 37 68 addi r9,r9,14184 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { ffc061d8: 41 9e 00 40 beq- cr7,ffc06218 <== NOT EXECUTED (*print_handler)( ffc061dc: 83 5a 00 08 lwz r26,8(r26) <== NOT EXECUTED ffc061e0: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc061e4: 83 29 00 08 lwz r25,8(r9) <== NOT EXECUTED ffc061e8: 38 80 00 05 li r4,5 <== NOT EXECUTED ffc061ec: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc061f0: 48 00 6e f9 bl ffc0d0e8 <== NOT EXECUTED ffc061f4: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc061f8: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc061fc: 7f a9 03 a6 mtctr r29 <== NOT EXECUTED ffc06200: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc06204: 38 84 42 04 addi r4,r4,16900 <== NOT EXECUTED ffc06208: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc0620c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06210: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06214: 48 00 00 20 b ffc06234 <== 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 ); ffc06218: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc0621c: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc06220: 38 84 42 11 addi r4,r4,16913 <== NOT EXECUTED ffc06224: 7f a9 03 a6 mtctr r29 <== NOT EXECUTED ffc06228: 38 a0 ff ff li r5,-1 <== NOT EXECUTED ffc0622c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06230: 4e 80 04 21 bctrl <== NOT EXECUTED } (*print_handler)( ffc06234: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc06238: 80 df 00 00 lwz r6,0(r31) <== NOT EXECUTED ffc0623c: 80 bf 00 04 lwz r5,4(r31) <== NOT EXECUTED ffc06240: 3b fd 37 68 addi r31,r29,14184 <== NOT EXECUTED ffc06244: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06248: 38 c6 ff ff addi r6,r6,-1 <== NOT EXECUTED ffc0624c: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc06250: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06254: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06258: 38 84 42 1f addi r4,r4,16927 <== NOT EXECUTED ffc0625c: 7c c5 32 14 add r6,r5,r6 <== NOT EXECUTED ffc06260: 7f 67 db 78 mr r7,r27 <== NOT EXECUTED ffc06264: 7f 88 e3 78 mr r8,r28 <== NOT EXECUTED ffc06268: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0626c: 4e 80 04 21 bctrl <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { ffc06270: 80 1d 37 68 lwz r0,14184(r29) <== NOT EXECUTED ffc06274: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06278: 40 be 00 24 bne+ cr7,ffc0629c <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); ffc0627c: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06280: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc06284: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06288: 38 84 42 3d addi r4,r4,16957 <== NOT EXECUTED ffc0628c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06290: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06294: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06298: 48 00 00 24 b ffc062bc <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); ffc0629c: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc062a0: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc062a4: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc062a8: 38 84 42 4a addi r4,r4,16970 <== NOT EXECUTED ffc062ac: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc062b0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc062b4: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc062b8: 4e 80 04 21 bctrl <== NOT EXECUTED } } ffc062bc: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc062c0: 83 21 00 1c lwz r25,28(r1) <== NOT EXECUTED ffc062c4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc062c8: 83 41 00 20 lwz r26,32(r1) <== NOT EXECUTED ffc062cc: 83 61 00 24 lwz r27,36(r1) <== NOT EXECUTED ffc062d0: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED ffc062d4: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc062d8: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc062dc: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc062e0: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc062e4: 4e 80 00 20 blr <== NOT EXECUTED ffc06058 : static uint32_t pattern[ 4 ] = { 0xFEEDF00D, 0x0BAD0D06, /* FEED FOOD to BAD DOG */ 0xDEADF00D, 0x600D0D06 /* DEAD FOOD but GOOD DOG */ }; if (Stack_check_Initialized) ffc06058: 3d 20 00 00 lis r9,0 ffc0605c: 80 09 37 68 lwz r0,14184(r9) ffc06060: 2f 80 00 00 cmpwi cr7,r0,0 ffc06064: 4c 9e 00 20 bnelr cr7 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { p[i] = pattern[ i%4 ]; ffc06068: 38 00 00 20 li r0,32 ffc0606c: 7c 09 03 a6 mtctr r0 ffc06070: 3d 40 00 00 lis r10,0 ffc06074: 3d 60 ff c6 lis r11,-58 ffc06078: 39 4a 63 14 addi r10,r10,25364 ffc0607c: 39 6b 41 f4 addi r11,r11,16884 static uint32_t pattern[ 4 ] = { 0xFEEDF00D, 0x0BAD0D06, /* FEED FOOD to BAD DOG */ 0xDEADF00D, 0x600D0D06 /* DEAD FOOD but GOOD DOG */ }; if (Stack_check_Initialized) ffc06080: 39 20 00 00 li r9,0 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { p[i] = pattern[ i%4 ]; ffc06084: 55 20 17 3a rlwinm r0,r9,2,28,29 ffc06088: 7d 0b 00 2e lwzx r8,r11,r0 ffc0608c: 55 20 10 3a rlwinm r0,r9,2,0,29 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { ffc06090: 39 29 00 01 addi r9,r9,1 p[i] = pattern[ i%4 ]; ffc06094: 7d 0a 01 2e stwx r8,r10,r0 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { ffc06098: 42 00 ff ec bdnz+ ffc06084 (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); } #endif Stack_check_Initialized = 1; ffc0609c: 38 00 00 01 li r0,1 ffc060a0: 3d 20 00 00 lis r9,0 ffc060a4: 90 09 37 68 stw r0,14184(r9) ffc060a8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc060ec : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; ffc060ec: 38 63 00 80 addi r3,r3,128 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) ffc060f0: 54 84 00 3a rlwinm r4,r4,0,0,29 <== NOT EXECUTED if (*base != U32_PATTERN) ffc060f4: 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++) ffc060f8: 7c 83 22 14 add r4,r3,r4 <== NOT EXECUTED if (*base != U32_PATTERN) ffc060fc: 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++) ffc06100: 48 00 00 14 b ffc06114 <== NOT EXECUTED if (*base != U32_PATTERN) ffc06104: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED ffc06108: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0610c: 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++) ffc06110: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED ffc06114: 7f 83 20 40 cmplw cr7,r3,r4 <== NOT EXECUTED ffc06118: 41 9c ff ec blt+ cr7,ffc06104 <== NOT EXECUTED ffc0611c: 38 60 00 00 li r3,0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } ffc06120: 4e 80 00 20 blr <== NOT EXECUTED ffc06390 : * * 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) { ffc06390: 94 21 ff c8 stwu r1,-56(r1) ffc06394: 7c 08 02 a6 mflr r0 ffc06398: 93 a1 00 2c stw r29,44(r1) ffc0639c: 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"); ffc063a0: 3c 60 ff c6 lis r3,-58 * * 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) { ffc063a4: 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"); ffc063a8: 38 63 42 b1 addi r3,r3,17073 * * 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) { ffc063ac: 93 c1 00 30 stw r30,48(r1) ffc063b0: 7c 9e 23 78 mr r30,r4 ffc063b4: 93 e1 00 34 stw r31,52(r1) Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); ffc063b8: 83 fd 00 d0 lwz r31,208(r29) char name [32]; printk("BLOWN STACK!!!\n"); ffc063bc: 4c c6 31 82 crclr 4*cr1+eq ffc063c0: 48 00 35 69 bl ffc09928 <== ALWAYS TAKEN printk("task control block: 0x%08lx\n", (unsigned long) running); ffc063c4: 3c 60 ff c6 lis r3,-58 ffc063c8: 38 63 42 c1 addi r3,r3,17089 ffc063cc: 7f a4 eb 78 mr r4,r29 ffc063d0: 4c c6 31 82 crclr 4*cr1+eq ffc063d4: 48 00 35 55 bl ffc09928 <== ALWAYS TAKEN printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); ffc063d8: 80 9d 00 08 lwz r4,8(r29) ffc063dc: 3c 60 ff c6 lis r3,-58 ffc063e0: 38 63 42 de addi r3,r3,17118 ffc063e4: 4c c6 31 82 crclr 4*cr1+eq ffc063e8: 48 00 35 41 bl ffc09928 <== ALWAYS TAKEN printk( ffc063ec: 80 9d 00 0c lwz r4,12(r29) ffc063f0: 3c 60 ff c6 lis r3,-58 ffc063f4: 38 63 42 f0 addi r3,r3,17136 ffc063f8: 4c c6 31 82 crclr 4*cr1+eq ffc063fc: 48 00 35 2d bl ffc09928 <== ALWAYS TAKEN "task name: 0x%08lx\n", (unsigned long) running->Object.name.name_u32 ); printk( ffc06400: 80 7d 00 08 lwz r3,8(r29) ffc06404: 38 a1 00 08 addi r5,r1,8 ffc06408: 38 80 00 20 li r4,32 ffc0640c: 48 00 6c dd bl ffc0d0e8 <== ALWAYS TAKEN ffc06410: 7c 64 1b 78 mr r4,r3 ffc06414: 3c 60 ff c6 lis r3,-58 ffc06418: 38 63 43 04 addi r3,r3,17156 ffc0641c: 4c c6 31 82 crclr 4*cr1+eq ffc06420: 48 00 35 09 bl ffc09928 <== ALWAYS TAKEN ); printk( "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) ffc06424: 80 9d 00 cc lwz r4,204(r29) ); printk( "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( ffc06428: 80 bd 00 d0 lwz r5,208(r29) ffc0642c: 3c 60 ff c6 lis r3,-58 ffc06430: 38 63 43 1a addi r3,r3,17178 ffc06434: 7c c5 22 14 add r6,r5,r4 ffc06438: 4c c6 31 82 crclr 4*cr1+eq ffc0643c: 48 00 34 ed bl ffc09928 <== ALWAYS TAKEN "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) ); if (!pattern_ok) { ffc06440: 2f 9e 00 00 cmpwi cr7,r30,0 ffc06444: 40 be 00 20 bne+ cr7,ffc06464 <== NEVER TAKEN printk( ffc06448: 3c 60 ff c6 lis r3,-58 ffc0644c: 38 63 43 4b addi r3,r3,17227 ffc06450: 38 df 00 88 addi r6,r31,136 ffc06454: 38 80 00 80 li r4,128 ffc06458: 38 bf 00 08 addi r5,r31,8 ffc0645c: 4c c6 31 82 crclr 4*cr1+eq ffc06460: 48 00 34 c9 bl ffc09928 <== ALWAYS TAKEN rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); ffc06464: 38 60 00 81 li r3,129 ffc06468: 48 00 77 9d bl ffc0dc04 <== ALWAYS TAKEN ffc0ffdc : #include uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { ffc0ffdc: 3d 20 00 00 lis r9,0 ffc0ffe0: 80 09 20 c4 lwz r0,8388(r9) return (microseconds / rtems_configuration_get_microseconds_per_tick()); } ffc0ffe4: 7c 63 03 96 divwu r3,r3,r0 ffc0ffe8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09d80 : #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { ffc09d80: 3d 20 00 00 lis r9,0 ffc09d84: 81 29 20 ac lwz r9,8364(r9) ffc09d88: 38 00 03 e8 li r0,1000 ffc09d8c: 7c 09 03 96 divwu r0,r9,r0 return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); } ffc09d90: 7c 63 03 96 divwu r3,r3,r0 ffc09d94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10ea8 : #include #include #include uint32_t TOD_TICKS_PER_SECOND_method(void) { ffc10ea8: 3d 20 00 00 lis r9,0 ffc10eac: 80 09 20 ac lwz r0,8364(r9) ffc10eb0: 3c 60 00 0f lis r3,15 ffc10eb4: 60 63 42 40 ori r3,r3,16960 return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); } ffc10eb8: 7c 63 03 96 divwu r3,r3,r0 ffc10ebc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08728 <_API_Mutex_Allocate>: #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc08728: 94 21 ff d8 stwu r1,-40(r1) <== ALWAYS TAKEN ffc0872c: 7c 08 02 a6 mflr r0 CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc08730: 3d 60 ff c2 lis r11,-62 #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc08734: 93 c1 00 20 stw r30,32(r1) CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc08738: 39 2b df 50 addi r9,r11,-8368 mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); ffc0873c: 3f c0 00 00 lis r30,0 CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc08740: 81 4b df 50 lwz r10,-8368(r11) mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); ffc08744: 3b de 2d 54 addi r30,r30,11604 CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc08748: 81 69 00 04 lwz r11,4(r9) #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc0874c: 90 01 00 2c stw r0,44(r1) CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc08750: 80 09 00 0c lwz r0,12(r9) ffc08754: 81 29 00 08 lwz r9,8(r9) #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc08758: 93 a1 00 1c stw r29,28(r1) ffc0875c: 7c 7d 1b 78 mr r29,r3 false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); ffc08760: 7f c3 f3 78 mr r3,r30 CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc08764: 91 21 00 10 stw r9,16(r1) ffc08768: 90 01 00 14 stw r0,20(r1) #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc0876c: 93 e1 00 24 stw r31,36(r1) CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc08770: 91 41 00 08 stw r10,8(r1) ffc08774: 91 61 00 0c stw r11,12(r1) <== ALWAYS TAKEN mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); ffc08778: 48 00 0b 19 bl ffc09290 <_Objects_Allocate> <== ALWAYS TAKEN ffc0877c: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN _CORE_mutex_Initialize( &mutex->Mutex, &attr, CORE_MUTEX_UNLOCKED ); ffc08780: 38 81 00 08 addi r4,r1,8 ffc08784: 38 63 00 10 addi r3,r3,16 ffc08788: 38 a0 00 01 li r5,1 ffc0878c: 48 00 01 8d bl ffc08918 <_CORE_mutex_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc08790: a0 1f 00 0a lhz r0,10(r31) ffc08794: 81 3e 00 1c lwz r9,28(r30) <== ALWAYS TAKEN ffc08798: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0879c: 7f e9 01 2e stwx r31,r9,r0 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc087a0: 38 00 00 01 li r0,1 ffc087a4: 90 1f 00 0c stw r0,12(r31) _Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 ); *the_mutex = mutex; } ffc087a8: 80 01 00 2c lwz r0,44(r1) _CORE_mutex_Initialize( &mutex->Mutex, &attr, CORE_MUTEX_UNLOCKED ); _Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 ); *the_mutex = mutex; ffc087ac: 93 fd 00 00 stw r31,0(r29) <== ALWAYS TAKEN } ffc087b0: 7c 08 03 a6 mtlr r0 ffc087b4: 83 a1 00 1c lwz r29,28(r1) ffc087b8: 83 c1 00 20 lwz r30,32(r1) ffc087bc: 83 e1 00 24 lwz r31,36(r1) <== ALWAYS TAKEN ffc087c0: 38 21 00 28 addi r1,r1,40 <== ALWAYS TAKEN ffc087c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08808 <_API_Mutex_Initialization>: #include void _API_Mutex_Initialization( uint32_t maximum_mutexes ) { ffc08808: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc0880c: 7c 08 02 a6 mflr r0 ffc08810: 7c 66 1b 78 mr r6,r3 _Objects_Initialize_information( ffc08814: 3c 60 00 00 lis r3,0 #include void _API_Mutex_Initialization( uint32_t maximum_mutexes ) { ffc08818: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0881c: 38 63 2d 54 addi r3,r3,11604 ffc08820: 38 80 00 01 li r4,1 ffc08824: 38 a0 00 02 li r5,2 ffc08828: 38 e0 00 74 li r7,116 ffc0882c: 39 00 00 00 li r8,0 ffc08830: 39 20 00 00 li r9,0 ffc08834: 48 00 10 99 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , true, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc08838: 80 01 00 0c lwz r0,12(r1) ffc0883c: 38 21 00 08 addi r1,r1,8 ffc08840: 7c 08 03 a6 mtlr r0 ffc08844: 4e 80 00 20 blr <== ALWAYS TAKEN ffc087c8 <_API_Mutex_Lock>: #include void _API_Mutex_Lock( API_Mutex_Control *the_mutex ) { ffc087c8: 94 21 ff f8 stwu r1,-8(r1) ffc087cc: 7c 08 02 a6 mflr r0 ffc087d0: 90 01 00 0c stw r0,12(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc087d4: 7c e0 00 a6 mfmsr r7 ffc087d8: 7c 10 42 a6 mfsprg r0,0 ffc087dc: 7c e0 00 78 andc r0,r7,r0 ffc087e0: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); _CORE_mutex_Seize( ffc087e4: 80 83 00 08 lwz r4,8(r3) <== ALWAYS TAKEN ffc087e8: 38 a0 00 01 li r5,1 <== ALWAYS TAKEN ffc087ec: 38 63 00 10 addi r3,r3,16 ffc087f0: 38 c0 00 00 li r6,0 ffc087f4: 48 00 02 7d bl ffc08a70 <_CORE_mutex_Seize> <== ALWAYS TAKEN the_mutex->Object.id, true, 0, level ); } ffc087f8: 80 01 00 0c lwz r0,12(r1) ffc087fc: 38 21 00 08 addi r1,r1,8 ffc08800: 7c 08 03 a6 mtlr r0 ffc08804: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08848 <_API_Mutex_Unlock>: #include void _API_Mutex_Unlock( API_Mutex_Control *the_mutex ) { ffc08848: 94 21 ff f8 stwu r1,-8(r1) rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0884c: 3d 20 00 00 lis r9,0 ffc08850: 7c 08 02 a6 mflr r0 ffc08854: 81 69 27 70 lwz r11,10096(r9) ffc08858: 90 01 00 0c stw r0,12(r1) ffc0885c: 39 6b 00 01 addi r11,r11,1 ffc08860: 91 69 27 70 stw r11,10096(r9) _Thread_Disable_dispatch(); _CORE_mutex_Surrender( ffc08864: 80 83 00 08 lwz r4,8(r3) ffc08868: 38 a0 00 00 li r5,0 ffc0886c: 38 63 00 10 addi r3,r3,16 ffc08870: 48 00 02 f9 bl ffc08b68 <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); ffc08874: 48 00 1a d9 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc08878: 80 01 00 0c lwz r0,12(r1) ffc0887c: 38 21 00 08 addi r1,r1,8 ffc08880: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc08884: 4e 80 00 20 blr <== ALWAYS TAKEN ffc086fc <_API_extensions_Add>: */ void _API_extensions_Add( API_extensions_Control *the_extension ) { ffc086fc: 94 21 ff f8 stwu r1,-8(r1) ffc08700: 7c 08 02 a6 mflr r0 ffc08704: 7c 64 1b 78 mr r4,r3 _Chain_Append( &_API_extensions_List, &the_extension->Node ); ffc08708: 3c 60 00 00 lis r3,0 */ void _API_extensions_Add( API_extensions_Control *the_extension ) { ffc0870c: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Chain_Append( &_API_extensions_List, &the_extension->Node ); ffc08710: 38 63 2e 2c addi r3,r3,11820 ffc08714: 48 00 01 75 bl ffc08888 <_Chain_Append> <== ALWAYS TAKEN } ffc08718: 80 01 00 0c lwz r0,12(r1) ffc0871c: 38 21 00 08 addi r1,r1,8 ffc08720: 7c 08 03 a6 mtlr r0 ffc08724: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08618 <_API_extensions_Initialization>: */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc08618: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc0861c: 39 2b 2e 2c addi r9,r11,11820 ffc08620: 38 09 00 04 addi r0,r9,4 <== ALWAYS TAKEN the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc08624: 91 29 00 08 stw r9,8(r9) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc08628: 90 0b 2e 2c stw r0,11820(r11) the_chain->permanent_null = NULL; ffc0862c: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc08630: 90 09 00 04 stw r0,4(r9) <== ALWAYS TAKEN */ void _API_extensions_Initialization( void ) { _Chain_Initialize_empty( &_API_extensions_List ); } ffc08634: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08638 <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { ffc08638: 94 21 ff f0 stwu r1,-16(r1) ffc0863c: 7c 08 02 a6 mflr r0 Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc08640: 3d 20 00 00 lis r9,0 * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { ffc08644: 93 c1 00 08 stw r30,8(r1) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc08648: 3f c0 00 00 lis r30,0 ffc0864c: 3b de 2e 30 addi r30,r30,11824 ffc08650: 93 e1 00 0c stw r31,12(r1) ffc08654: 90 01 00 14 stw r0,20(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc08658: 83 e9 2e 2c lwz r31,11820(r9) ffc0865c: 48 00 00 14 b ffc08670 <_API_extensions_Run_postdriver+0x38> <== ALWAYS TAKEN * Currently all APIs configure this hook so it is always non-NULL. */ #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) if ( the_extension->postdriver_hook ) #endif (*the_extension->postdriver_hook)(); ffc08660: 80 1f 00 08 lwz r0,8(r31) ffc08664: 7c 09 03 a6 mtctr r0 ffc08668: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { ffc0866c: 83 ff 00 00 lwz r31,0(r31) <== ALWAYS TAKEN ffc08670: 7f 9f f0 00 cmpw cr7,r31,r30 ffc08674: 40 9e ff ec bne+ cr7,ffc08660 <_API_extensions_Run_postdriver+0x28> #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) if ( the_extension->postdriver_hook ) #endif (*the_extension->postdriver_hook)(); } } ffc08678: 80 01 00 14 lwz r0,20(r1) ffc0867c: 83 c1 00 08 lwz r30,8(r1) ffc08680: 7c 08 03 a6 mtlr r0 ffc08684: 83 e1 00 0c lwz r31,12(r1) ffc08688: 38 21 00 10 addi r1,r1,16 ffc0868c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08690 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { ffc08690: 94 21 ff e8 stwu r1,-24(r1) ffc08694: 7c 08 02 a6 mflr r0 Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc08698: 3d 20 00 00 lis r9,0 * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { ffc0869c: 93 a1 00 0c stw r29,12(r1) ffc086a0: 3f a0 00 00 lis r29,0 ffc086a4: 3b bd 2e 30 addi r29,r29,11824 ffc086a8: 93 c1 00 10 stw r30,16(r1) * provide this hook. */ #if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) #endif (*the_extension->postswitch_hook)( _Thread_Executing ); ffc086ac: 3f c0 00 00 lis r30,0 ffc086b0: 3b de 27 b0 addi r30,r30,10160 * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { ffc086b4: 93 e1 00 14 stw r31,20(r1) ffc086b8: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc086bc: 83 e9 2e 2c lwz r31,11820(r9) ffc086c0: 48 00 00 18 b ffc086d8 <_API_extensions_Run_postswitch+0x48> <== ALWAYS TAKEN * provide this hook. */ #if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) #endif (*the_extension->postswitch_hook)( _Thread_Executing ); ffc086c4: 80 1f 00 0c lwz r0,12(r31) ffc086c8: 80 7e 00 00 lwz r3,0(r30) ffc086cc: 7c 09 03 a6 mtctr r0 ffc086d0: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; !_Chain_Is_tail( &_API_extensions_List, the_node ) ; the_node = the_node->next ) { ffc086d4: 83 ff 00 00 lwz r31,0(r31) ffc086d8: 7f 9f e8 00 cmpw cr7,r31,r29 ffc086dc: 40 9e ff e8 bne+ cr7,ffc086c4 <_API_extensions_Run_postswitch+0x34> #if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) #endif (*the_extension->postswitch_hook)( _Thread_Executing ); } } ffc086e0: 80 01 00 1c lwz r0,28(r1) ffc086e4: 83 a1 00 0c lwz r29,12(r1) ffc086e8: 7c 08 03 a6 mtlr r0 ffc086ec: 83 c1 00 10 lwz r30,16(r1) ffc086f0: 83 e1 00 14 lwz r31,20(r1) ffc086f4: 38 21 00 18 addi r1,r1,24 ffc086f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0df04 <_Barrier_Manager_initialization>: * Output parameters: NONE */ void _Barrier_Manager_initialization(void) { _Objects_Initialize_information( ffc0df04: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Barrier_Manager_initialization(void) { ffc0df08: 94 21 ff f8 stwu r1,-8(r1) ffc0df0c: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0df10: 3c 60 00 00 lis r3,0 ffc0df14: 80 c9 20 94 lwz r6,8340(r9) <== ALWAYS TAKEN ffc0df18: 38 63 35 4c addi r3,r3,13644 ffc0df1c: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Barrier_Manager_initialization(void) { ffc0df20: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0df24: 38 a0 00 0a li r5,10 ffc0df28: 38 e0 00 60 li r7,96 ffc0df2c: 39 00 00 00 li r8,0 <== ALWAYS TAKEN ffc0df30: 39 20 00 04 li r9,4 ffc0df34: 4b ff b9 99 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0df38: 80 01 00 0c lwz r0,12(r1) ffc0df3c: 38 21 00 08 addi r1,r1,8 ffc0df40: 7c 08 03 a6 mtlr r0 ffc0df44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11b74 <_Barrier_Translate_core_barrier_return_code>: #if defined(RTEMS_DEBUG) if ( the_barrier_status > CORE_BARRIER_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Barrier_Translate_core_barrier_return_code_[the_barrier_status]; } ffc11b74: 3d 20 00 00 lis r9,0 ffc11b78: 39 29 22 04 addi r9,r9,8708 }; rtems_status_code _Barrier_Translate_core_barrier_return_code ( CORE_barrier_Status the_barrier_status ) { ffc11b7c: 54 63 10 3a rlwinm r3,r3,2,0,29 #if defined(RTEMS_DEBUG) if ( the_barrier_status > CORE_BARRIER_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Barrier_Translate_core_barrier_return_code_[the_barrier_status]; } ffc11b80: 7c 69 18 2e lwzx r3,r9,r3 ffc11b84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b544 <_CORE_RWLock_Initialize>: void _CORE_RWLock_Initialize( CORE_RWLock_Control *the_rwlock, CORE_RWLock_Attributes *the_rwlock_attributes ) { ffc0b544: 94 21 ff f8 stwu r1,-8(r1) ffc0b548: 7c 08 02 a6 mflr r0 the_rwlock->number_of_waiting_threads = 0; */ the_rwlock->number_of_readers = 0; the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; _Thread_queue_Initialize( ffc0b54c: 3c a0 00 02 lis r5,2 void _CORE_RWLock_Initialize( CORE_RWLock_Control *the_rwlock, CORE_RWLock_Attributes *the_rwlock_attributes ) { ffc0b550: 90 01 00 0c stw r0,12(r1) the_rwlock->Attributes = *the_rwlock_attributes; /* the_rwlock->number_of_waiting_threads = 0; */ the_rwlock->number_of_readers = 0; ffc0b554: 38 00 00 00 li r0,0 the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; _Thread_queue_Initialize( ffc0b558: 38 c0 00 03 li r6,3 CORE_RWLock_Control *the_rwlock, CORE_RWLock_Attributes *the_rwlock_attributes ) { the_rwlock->Attributes = *the_rwlock_attributes; ffc0b55c: 81 64 00 00 lwz r11,0(r4) the_rwlock->number_of_waiting_threads = 0; */ the_rwlock->number_of_readers = 0; the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; _Thread_queue_Initialize( ffc0b560: 38 80 00 00 li r4,0 the_rwlock->Attributes = *the_rwlock_attributes; /* the_rwlock->number_of_waiting_threads = 0; */ the_rwlock->number_of_readers = 0; the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; ffc0b564: 90 03 00 44 stw r0,68(r3) the_rwlock->Attributes = *the_rwlock_attributes; /* the_rwlock->number_of_waiting_threads = 0; */ the_rwlock->number_of_readers = 0; ffc0b568: 90 03 00 48 stw r0,72(r3) CORE_RWLock_Control *the_rwlock, CORE_RWLock_Attributes *the_rwlock_attributes ) { the_rwlock->Attributes = *the_rwlock_attributes; ffc0b56c: 91 63 00 40 stw r11,64(r3) the_rwlock->number_of_waiting_threads = 0; */ the_rwlock->number_of_readers = 0; the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; _Thread_queue_Initialize( ffc0b570: 48 00 25 45 bl ffc0dab4 <_Thread_queue_Initialize> <== ALWAYS TAKEN &the_rwlock->Wait_queue, THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_RWLOCK, CORE_RWLOCK_TIMEOUT ); } ffc0b574: 80 01 00 0c lwz r0,12(r1) ffc0b578: 38 21 00 08 addi r1,r1,8 ffc0b57c: 7c 08 03 a6 mtlr r0 ffc0b580: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b584 <_CORE_RWLock_Obtain_for_reading>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { ffc0b584: 94 21 ff e0 stwu r1,-32(r1) ffc0b588: 7c 08 02 a6 mflr r0 ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0b58c: 3d 20 00 00 lis r9,0 Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { ffc0b590: 90 01 00 24 stw r0,36(r1) ffc0b594: 93 41 00 08 stw r26,8(r1) ffc0b598: 7c da 33 78 mr r26,r6 ffc0b59c: 93 81 00 10 stw r28,16(r1) ffc0b5a0: 7c 7c 1b 78 mr r28,r3 ffc0b5a4: 93 a1 00 14 stw r29,20(r1) ffc0b5a8: 7c bd 2b 78 mr r29,r5 ffc0b5ac: 93 c1 00 18 stw r30,24(r1) ffc0b5b0: 7c 9e 23 78 mr r30,r4 ffc0b5b4: 93 e1 00 1c stw r31,28(r1) ffc0b5b8: 93 61 00 0c stw r27,12(r1) ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0b5bc: 83 e9 27 fc lwz r31,10236(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b5c0: 7f 60 00 a6 mfmsr r27 ffc0b5c4: 7c 10 42 a6 mfsprg r0,0 ffc0b5c8: 7f 60 00 78 andc r0,r27,r0 ffc0b5cc: 7c 00 01 24 mtmsr r0 * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); switch ( the_rwlock->current_state ) { ffc0b5d0: 80 03 00 44 lwz r0,68(r3) ffc0b5d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b5d8: 41 9e 00 10 beq- cr7,ffc0b5e8 <_CORE_RWLock_Obtain_for_reading+0x64> ffc0b5dc: 2f 80 00 01 cmpwi cr7,r0,1 ffc0b5e0: 40 be 00 44 bne+ cr7,ffc0b624 <_CORE_RWLock_Obtain_for_reading+0xa0> ffc0b5e4: 48 00 00 1c b ffc0b600 <_CORE_RWLock_Obtain_for_reading+0x7c> <== ALWAYS TAKEN case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; the_rwlock->number_of_readers += 1; ffc0b5e8: 81 23 00 48 lwz r9,72(r3) ffc0b5ec: 38 09 00 01 addi r0,r9,1 ffc0b5f0: 90 03 00 48 stw r0,72(r3) */ _ISR_Disable( level ); switch ( the_rwlock->current_state ) { case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; ffc0b5f4: 38 00 00 01 li r0,1 ffc0b5f8: 90 03 00 44 stw r0,68(r3) the_rwlock->number_of_readers += 1; _ISR_Enable( level ); ffc0b5fc: 48 00 00 1c b ffc0b618 <_CORE_RWLock_Obtain_for_reading+0x94> <== ALWAYS TAKEN executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; return; case CORE_RWLOCK_LOCKED_FOR_READING: { Thread_Control *waiter; waiter = _Thread_queue_First( &the_rwlock->Wait_queue ); ffc0b600: 48 00 23 e5 bl ffc0d9e4 <_Thread_queue_First> <== ALWAYS TAKEN if ( !waiter ) { ffc0b604: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b608: 40 be 00 1c bne+ cr7,ffc0b624 <_CORE_RWLock_Obtain_for_reading+0xa0> <== NEVER TAKEN the_rwlock->number_of_readers += 1; ffc0b60c: 81 3c 00 48 lwz r9,72(r28) ffc0b610: 38 09 00 01 addi r0,r9,1 ffc0b614: 90 1c 00 48 stw r0,72(r28) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b618: 7f 60 01 24 mtmsr r27 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0b61c: 38 00 00 00 li r0,0 ffc0b620: 48 00 00 14 b ffc0b634 <_CORE_RWLock_Obtain_for_reading+0xb0> <== ALWAYS TAKEN /* * If the thread is not willing to wait, then return immediately. */ if ( !wait ) { ffc0b624: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0b628: 40 9e 00 14 bne- cr7,ffc0b63c <_CORE_RWLock_Obtain_for_reading+0xb8> ffc0b62c: 7f 60 01 24 mtmsr r27 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; ffc0b630: 38 00 00 02 li r0,2 ffc0b634: 90 1f 00 34 stw r0,52(r31) return; ffc0b638: 48 00 00 38 b ffc0b670 <_CORE_RWLock_Obtain_for_reading+0xec> <== ALWAYS TAKEN */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; ffc0b63c: 38 00 00 00 li r0,0 * We need to wait to enter this critical section */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; executing->Wait.id = id; ffc0b640: 93 df 00 20 stw r30,32(r31) ffc0b644: 39 20 00 01 li r9,1 executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0b648: 90 1f 00 34 stw r0,52(r31) ffc0b64c: 91 3c 00 30 stw r9,48(r28) /* * We need to wait to enter this critical section */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; ffc0b650: 93 9f 00 44 stw r28,68(r31) executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; ffc0b654: 90 1f 00 30 stw r0,48(r31) ffc0b658: 7f 60 01 24 mtmsr r27 executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; _ISR_Enable( level ); _Thread_queue_Enqueue_with_handler( ffc0b65c: 3c a0 ff c1 lis r5,-63 ffc0b660: 7f 83 e3 78 mr r3,r28 ffc0b664: 7f 44 d3 78 mr r4,r26 ffc0b668: 38 a5 b8 3c addi r5,r5,-18372 ffc0b66c: 48 00 1f 7d bl ffc0d5e8 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN timeout, _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0b670: 80 01 00 24 lwz r0,36(r1) ffc0b674: 83 41 00 08 lwz r26,8(r1) ffc0b678: 7c 08 03 a6 mtlr r0 ffc0b67c: 83 61 00 0c lwz r27,12(r1) ffc0b680: 83 81 00 10 lwz r28,16(r1) ffc0b684: 83 a1 00 14 lwz r29,20(r1) ffc0b688: 83 c1 00 18 lwz r30,24(r1) ffc0b68c: 83 e1 00 1c lwz r31,28(r1) ffc0b690: 38 21 00 20 addi r1,r1,32 ffc0b694: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b698 <_CORE_RWLock_Obtain_for_writing>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { ffc0b698: 94 21 ff f8 stwu r1,-8(r1) ffc0b69c: 7c 08 02 a6 mflr r0 ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0b6a0: 3d 20 00 00 lis r9,0 Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { ffc0b6a4: 90 01 00 0c stw r0,12(r1) ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0b6a8: 81 29 27 fc lwz r9,10236(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b6ac: 7d 60 00 a6 mfmsr r11 ffc0b6b0: 7d 50 42 a6 mfsprg r10,0 ffc0b6b4: 7d 6a 50 78 andc r10,r11,r10 ffc0b6b8: 7d 40 01 24 mtmsr r10 * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); switch ( the_rwlock->current_state ) { ffc0b6bc: 81 43 00 44 lwz r10,68(r3) ffc0b6c0: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0b6c4: 40 9e 00 18 bne- cr7,ffc0b6dc <_CORE_RWLock_Obtain_for_writing+0x44> case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING; ffc0b6c8: 38 00 00 02 li r0,2 ffc0b6cc: 90 03 00 44 stw r0,68(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b6d0: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0b6d4: 38 00 00 00 li r0,0 ffc0b6d8: 48 00 00 14 b ffc0b6ec <_CORE_RWLock_Obtain_for_writing+0x54> <== ALWAYS TAKEN /* * If the thread is not willing to wait, then return immediately. */ if ( !wait ) { ffc0b6dc: 2f 85 00 00 cmpwi cr7,r5,0 ffc0b6e0: 40 9e 00 14 bne- cr7,ffc0b6f4 <_CORE_RWLock_Obtain_for_writing+0x5c> ffc0b6e4: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; ffc0b6e8: 38 00 00 02 li r0,2 ffc0b6ec: 90 09 00 34 stw r0,52(r9) return; ffc0b6f0: 48 00 00 34 b ffc0b724 <_CORE_RWLock_Obtain_for_writing+0x8c> <== ALWAYS TAKEN ffc0b6f4: 39 40 00 01 li r10,1 * We need to wait to enter this critical section */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; executing->Wait.id = id; ffc0b6f8: 90 89 00 20 stw r4,32(r9) executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0b6fc: 39 00 00 00 li r8,0 ffc0b700: 91 09 00 34 stw r8,52(r9) */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE; ffc0b704: 91 49 00 30 stw r10,48(r9) ffc0b708: 91 43 00 30 stw r10,48(r3) /* * We need to wait to enter this critical section */ _Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue ); executing->Wait.queue = &the_rwlock->Wait_queue; ffc0b70c: 90 69 00 44 stw r3,68(r9) ffc0b710: 7d 60 01 24 mtmsr r11 executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; _ISR_Enable( level ); _Thread_queue_Enqueue_with_handler( ffc0b714: 3c a0 ff c1 lis r5,-63 ffc0b718: 7c c4 33 78 mr r4,r6 ffc0b71c: 38 a5 b8 3c addi r5,r5,-18372 ffc0b720: 48 00 1e c9 bl ffc0d5e8 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0b724: 80 01 00 0c lwz r0,12(r1) ffc0b728: 38 21 00 08 addi r1,r1,8 ffc0b72c: 7c 08 03 a6 mtlr r0 ffc0b730: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b734 <_CORE_RWLock_Release>: */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) { ffc0b734: 94 21 ff f0 stwu r1,-16(r1) ffc0b738: 7c 08 02 a6 mflr r0 ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0b73c: 3d 20 00 00 lis r9,0 */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) { ffc0b740: 90 01 00 14 stw r0,20(r1) ffc0b744: 93 e1 00 0c stw r31,12(r1) ffc0b748: 7c 7f 1b 78 mr r31,r3 ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0b74c: 81 29 27 fc lwz r9,10236(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b750: 7c 00 00 a6 mfmsr r0 ffc0b754: 7d 70 42 a6 mfsprg r11,0 ffc0b758: 7c 0b 58 78 andc r11,r0,r11 ffc0b75c: 7d 60 01 24 mtmsr r11 * If locked for reading and no waiters, then OK to read. * If any thread is waiting, then we wait. */ _ISR_Disable( level ); if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){ ffc0b760: 81 63 00 44 lwz r11,68(r3) ffc0b764: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0b768: 40 be 00 14 bne+ cr7,ffc0b77c <_CORE_RWLock_Release+0x48> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b76c: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; ffc0b770: 38 00 00 02 li r0,2 ffc0b774: 90 09 00 34 stw r0,52(r9) return CORE_RWLOCK_SUCCESSFUL; ffc0b778: 48 00 00 ac b ffc0b824 <_CORE_RWLock_Release+0xf0> <== ALWAYS TAKEN } if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) { ffc0b77c: 2f 8b 00 01 cmpwi cr7,r11,1 ffc0b780: 40 9e 00 20 bne- cr7,ffc0b7a0 <_CORE_RWLock_Release+0x6c> the_rwlock->number_of_readers -= 1; ffc0b784: 81 63 00 48 lwz r11,72(r3) ffc0b788: 39 6b ff ff addi r11,r11,-1 if ( the_rwlock->number_of_readers != 0 ) { ffc0b78c: 2f 8b 00 00 cmpwi cr7,r11,0 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; return CORE_RWLOCK_SUCCESSFUL; } if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) { the_rwlock->number_of_readers -= 1; ffc0b790: 91 63 00 48 stw r11,72(r3) if ( the_rwlock->number_of_readers != 0 ) { ffc0b794: 41 be 00 0c beq+ cr7,ffc0b7a0 <_CORE_RWLock_Release+0x6c> ffc0b798: 7c 00 01 24 mtmsr r0 /* must be unlocked again */ _ISR_Enable( level ); return CORE_RWLOCK_SUCCESSFUL; ffc0b79c: 48 00 00 88 b ffc0b824 <_CORE_RWLock_Release+0xf0> <== ALWAYS TAKEN } } /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */ executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0b7a0: 39 60 00 00 li r11,0 ffc0b7a4: 91 69 00 34 stw r11,52(r9) /* * Implicitly transition to "unlocked" and find another thread interested * in obtaining this rwlock. */ the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; ffc0b7a8: 91 7f 00 44 stw r11,68(r31) ffc0b7ac: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue ); ffc0b7b0: 7f e3 fb 78 mr r3,r31 ffc0b7b4: 48 00 1c 79 bl ffc0d42c <_Thread_queue_Dequeue> <== ALWAYS TAKEN if ( next ) { ffc0b7b8: 2c 03 00 00 cmpwi r3,0 ffc0b7bc: 41 82 00 68 beq- ffc0b824 <_CORE_RWLock_Release+0xf0> if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) { ffc0b7c0: 80 03 00 30 lwz r0,48(r3) ffc0b7c4: 2f 80 00 01 cmpwi cr7,r0,1 ffc0b7c8: 40 be 00 10 bne+ cr7,ffc0b7d8 <_CORE_RWLock_Release+0xa4> the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING; ffc0b7cc: 38 00 00 02 li r0,2 ffc0b7d0: 90 1f 00 44 stw r0,68(r31) return CORE_RWLOCK_SUCCESSFUL; ffc0b7d4: 48 00 00 50 b ffc0b824 <_CORE_RWLock_Release+0xf0> <== ALWAYS TAKEN } /* * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING */ the_rwlock->number_of_readers += 1; ffc0b7d8: 81 3f 00 48 lwz r9,72(r31) ffc0b7dc: 38 09 00 01 addi r0,r9,1 ffc0b7e0: 90 1f 00 48 stw r0,72(r31) the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; ffc0b7e4: 38 00 00 01 li r0,1 ffc0b7e8: 90 1f 00 44 stw r0,68(r31) /* * Now see if more readers can be let go. */ while ( 1 ) { next = _Thread_queue_First( &the_rwlock->Wait_queue ); ffc0b7ec: 7f e3 fb 78 mr r3,r31 ffc0b7f0: 48 00 21 f5 bl ffc0d9e4 <_Thread_queue_First> <== ALWAYS TAKEN if ( !next || ffc0b7f4: 7c 69 1b 79 mr. r9,r3 next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) return CORE_RWLOCK_SUCCESSFUL; the_rwlock->number_of_readers += 1; _Thread_queue_Extract( &the_rwlock->Wait_queue, next ); ffc0b7f8: 7f e3 fb 78 mr r3,r31 ffc0b7fc: 7d 24 4b 78 mr r4,r9 /* * Now see if more readers can be let go. */ while ( 1 ) { next = _Thread_queue_First( &the_rwlock->Wait_queue ); if ( !next || ffc0b800: 41 82 00 24 beq- ffc0b824 <_CORE_RWLock_Release+0xf0> next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) ffc0b804: 80 09 00 30 lwz r0,48(r9) ffc0b808: 2f 80 00 01 cmpwi cr7,r0,1 ffc0b80c: 41 9e 00 18 beq- cr7,ffc0b824 <_CORE_RWLock_Release+0xf0> <== NEVER TAKEN return CORE_RWLOCK_SUCCESSFUL; the_rwlock->number_of_readers += 1; ffc0b810: 81 3f 00 48 lwz r9,72(r31) ffc0b814: 38 09 00 01 addi r0,r9,1 ffc0b818: 90 1f 00 48 stw r0,72(r31) _Thread_queue_Extract( &the_rwlock->Wait_queue, next ); ffc0b81c: 48 00 20 51 bl ffc0d86c <_Thread_queue_Extract> <== ALWAYS TAKEN } ffc0b820: 4b ff ff cc b ffc0b7ec <_CORE_RWLock_Release+0xb8> <== ALWAYS TAKEN } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } ffc0b824: 80 01 00 14 lwz r0,20(r1) ffc0b828: 38 60 00 00 li r3,0 ffc0b82c: 83 e1 00 0c lwz r31,12(r1) ffc0b830: 38 21 00 10 addi r1,r1,16 ffc0b834: 7c 08 03 a6 mtlr r0 ffc0b838: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b83c <_CORE_RWLock_Timeout>: void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) { ffc0b83c: 94 21 ff e8 stwu r1,-24(r1) ffc0b840: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0b844: 38 81 00 08 addi r4,r1,8 void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) { ffc0b848: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0b84c: 48 00 17 c9 bl ffc0d014 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0b850: 80 01 00 08 lwz r0,8(r1) ffc0b854: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b858: 40 9e 00 18 bne- cr7,ffc0b870 <_CORE_RWLock_Timeout+0x34> <== NEVER TAKEN #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread ); ffc0b85c: 48 00 22 ad bl ffc0db08 <_Thread_queue_Process_timeout> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0b860: 3d 20 00 00 lis r9,0 ffc0b864: 81 69 27 bc lwz r11,10172(r9) ffc0b868: 38 0b ff ff addi r0,r11,-1 ffc0b86c: 90 09 27 bc stw r0,10172(r9) _Thread_Unnest_dispatch(); break; } } ffc0b870: 80 01 00 1c lwz r0,28(r1) ffc0b874: 38 21 00 18 addi r1,r1,24 ffc0b878: 7c 08 03 a6 mtlr r0 ffc0b87c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10d74 <_CORE_barrier_Initialize>: void _CORE_barrier_Initialize( CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { ffc10d74: 94 21 ff f8 stwu r1,-8(r1) ffc10d78: 7c 08 02 a6 mflr r0 the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( ffc10d7c: 3c a0 00 01 lis r5,1 void _CORE_barrier_Initialize( CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { ffc10d80: 90 01 00 0c stw r0,12(r1) the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; ffc10d84: 38 00 00 00 li r0,0 _Thread_queue_Initialize( ffc10d88: 38 c0 00 03 li r6,3 CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; ffc10d8c: 81 64 00 00 lwz r11,0(r4) ffc10d90: 81 84 00 04 lwz r12,4(r4) the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( ffc10d94: 38 80 00 00 li r4,0 CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; ffc10d98: 90 03 00 48 stw r0,72(r3) CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; ffc10d9c: 91 63 00 40 stw r11,64(r3) ffc10da0: 91 83 00 44 stw r12,68(r3) the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( ffc10da4: 4b ff 9e b1 bl ffc0ac54 <_Thread_queue_Initialize> <== ALWAYS TAKEN &the_barrier->Wait_queue, THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_BARRIER, CORE_BARRIER_TIMEOUT ); } ffc10da8: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc10dac: 38 21 00 08 addi r1,r1,8 ffc10db0: 7c 08 03 a6 mtlr r0 ffc10db4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10db8 <_CORE_barrier_Release>: #else Objects_Id id __attribute__((unused)), CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused)) #endif ) { ffc10db8: 94 21 ff f0 stwu r1,-16(r1) ffc10dbc: 7c 08 02 a6 mflr r0 ffc10dc0: 93 c1 00 08 stw r30,8(r1) ffc10dc4: 7c 7e 1b 78 mr r30,r3 ffc10dc8: 93 e1 00 0c stw r31,12(r1) Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { ffc10dcc: 3b e0 00 00 li r31,0 #else Objects_Id id __attribute__((unused)), CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused)) #endif ) { ffc10dd0: 90 01 00 14 stw r0,20(r1) Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { ffc10dd4: 48 00 00 08 b ffc10ddc <_CORE_barrier_Release+0x24> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; ffc10dd8: 3b ff 00 01 addi r31,r31,1 { Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { ffc10ddc: 7f c3 f3 78 mr r3,r30 ffc10de0: 4b ff 99 a5 bl ffc0a784 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc10de4: 2c 03 00 00 cmpwi r3,0 ffc10de8: 40 82 ff f0 bne+ ffc10dd8 <_CORE_barrier_Release+0x20> #endif count++; } the_barrier->number_of_waiting_threads = 0; return count; } ffc10dec: 80 01 00 14 lwz r0,20(r1) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; } the_barrier->number_of_waiting_threads = 0; ffc10df0: 90 7e 00 48 stw r3,72(r30) return count; } ffc10df4: 7f e3 fb 78 mr r3,r31 ffc10df8: 7c 08 03 a6 mtlr r0 ffc10dfc: 83 c1 00 08 lwz r30,8(r1) ffc10e00: 83 e1 00 0c lwz r31,12(r1) ffc10e04: 38 21 00 10 addi r1,r1,16 ffc10e08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10e0c <_CORE_barrier_Wait>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { ffc10e0c: 94 21 ff f8 stwu r1,-8(r1) ffc10e10: 7c 08 02 a6 mflr r0 Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; ffc10e14: 3d 20 00 00 lis r9,0 Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { ffc10e18: 90 01 00 0c stw r0,12(r1) Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; ffc10e1c: 38 00 00 00 li r0,0 ) { Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; ffc10e20: 81 29 27 b0 lwz r9,10160(r9) executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; ffc10e24: 90 09 00 34 stw r0,52(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc10e28: 7c 00 00 a6 mfmsr r0 ffc10e2c: 7d 70 42 a6 mfsprg r11,0 ffc10e30: 7c 0b 58 78 andc r11,r0,r11 ffc10e34: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { ffc10e38: 81 43 00 40 lwz r10,64(r3) ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; ffc10e3c: 81 63 00 48 lwz r11,72(r3) if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { ffc10e40: 2f 8a 00 00 cmpwi cr7,r10,0 ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; ffc10e44: 39 6b 00 01 addi r11,r11,1 ffc10e48: 91 63 00 48 stw r11,72(r3) if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { ffc10e4c: 40 9e 00 28 bne- cr7,ffc10e74 <_CORE_barrier_Wait+0x68> if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { ffc10e50: 81 43 00 44 lwz r10,68(r3) ffc10e54: 7f 8b 50 00 cmpw cr7,r11,r10 ffc10e58: 40 be 00 1c bne+ cr7,ffc10e74 <_CORE_barrier_Wait+0x68> executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; ffc10e5c: 39 60 00 01 li r11,1 ffc10e60: 91 69 00 34 stw r11,52(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc10e64: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); ffc10e68: 7c e5 3b 78 mr r5,r7 ffc10e6c: 4b ff ff 4d bl ffc10db8 <_CORE_barrier_Release> <== ALWAYS TAKEN return; ffc10e70: 48 00 00 28 b ffc10e98 <_CORE_barrier_Wait+0x8c> <== ALWAYS TAKEN ffc10e74: 39 60 00 01 li r11,1 } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; ffc10e78: 90 89 00 20 stw r4,32(r9) ffc10e7c: 91 63 00 30 stw r11,48(r3) return; } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; ffc10e80: 90 69 00 44 stw r3,68(r9) ffc10e84: 7c 00 01 24 mtmsr r0 executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); ffc10e88: 3c a0 ff c1 lis r5,-63 ffc10e8c: 7c c4 33 78 mr r4,r6 ffc10e90: 38 a5 ad 38 addi r5,r5,-21192 ffc10e94: 4b ff 9a ad bl ffc0a940 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN } ffc10e98: 80 01 00 0c lwz r0,12(r1) ffc10e9c: 38 21 00 08 addi r1,r1,8 ffc10ea0: 7c 08 03 a6 mtlr r0 ffc10ea4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1a344 <_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 ) { ffc1a344: 94 21 ff e0 stwu r1,-32(r1) ffc1a348: 7c 08 02 a6 mflr r0 ffc1a34c: 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 ) { ffc1a350: 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 ) { ffc1a354: 93 61 00 0c stw r27,12(r1) ffc1a358: 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 ) { ffc1a35c: 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 ) { ffc1a360: 93 a1 00 14 stw r29,20(r1) ffc1a364: 7c 9d 23 78 mr r29,r4 ffc1a368: 93 c1 00 18 stw r30,24(r1) ffc1a36c: 7c be 2b 78 mr r30,r5 ffc1a370: 93 e1 00 1c stw r31,28(r1) ffc1a374: 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 ) { ffc1a378: 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 ) { ffc1a37c: 93 41 00 08 stw r26,8(r1) ffc1a380: 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 ) { ffc1a384: 41 9d 00 54 bgt- cr7,ffc1a3d8 <_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 ) { ffc1a388: 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))) { ffc1a38c: 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 ) { ffc1a390: 2f 80 00 00 cmpwi cr7,r0,0 ffc1a394: 41 be 00 28 beq+ cr7,ffc1a3bc <_CORE_message_queue_Broadcast+0x78> *count = 0; ffc1a398: 38 00 00 00 li r0,0 ffc1a39c: 90 08 00 00 stw r0,0(r8) ffc1a3a0: 38 60 00 00 li r3,0 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; ffc1a3a4: 48 00 00 34 b ffc1a3d8 <_CORE_message_queue_Broadcast+0x94> <== ALWAYS TAKEN const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc1a3a8: 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; ffc1a3ac: 3b 9c 00 01 addi r28,r28,1 ffc1a3b0: 48 00 ae 6d bl ffc2521c <== ALWAYS TAKEN buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; ffc1a3b4: 81 3a 00 28 lwz r9,40(r26) ffc1a3b8: 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))) { ffc1a3bc: 7f e3 fb 78 mr r3,r31 ffc1a3c0: 48 00 2e 25 bl ffc1d1e4 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc1a3c4: 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 = ffc1a3c8: 7c 7a 1b 79 mr. r26,r3 ffc1a3cc: 7f c5 f3 78 mr r5,r30 ffc1a3d0: 40 82 ff d8 bne+ ffc1a3a8 <_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; ffc1a3d4: 93 9b 00 00 stw r28,0(r27) return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } ffc1a3d8: 80 01 00 24 lwz r0,36(r1) ffc1a3dc: 83 41 00 08 lwz r26,8(r1) ffc1a3e0: 7c 08 03 a6 mtlr r0 ffc1a3e4: 83 61 00 0c lwz r27,12(r1) ffc1a3e8: 83 81 00 10 lwz r28,16(r1) ffc1a3ec: 83 a1 00 14 lwz r29,20(r1) ffc1a3f0: 83 c1 00 18 lwz r30,24(r1) ffc1a3f4: 83 e1 00 1c lwz r31,28(r1) ffc1a3f8: 38 21 00 20 addi r1,r1,32 ffc1a3fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16a98 <_CORE_message_queue_Close>: void _CORE_message_queue_Close( CORE_message_queue_Control *the_message_queue, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { ffc16a98: 94 21 ff f0 stwu r1,-16(r1) ffc16a9c: 7c 08 02 a6 mflr r0 ffc16aa0: 93 e1 00 0c stw r31,12(r1) ffc16aa4: 7c 7f 1b 78 mr r31,r3 ffc16aa8: 90 01 00 14 stw r0,20(r1) /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( ffc16aac: 4b ff 90 e5 bl ffc0fb90 <_Thread_queue_Flush> <== ALWAYS TAKEN * This removes all messages from the pending message queue. Since * we just flushed all waiting threads, we don't have to worry about * the flush satisfying any blocked senders as a side-effect. */ if ( the_message_queue->number_of_pending_messages != 0 ) ffc16ab0: 80 1f 00 48 lwz r0,72(r31) ffc16ab4: 2f 80 00 00 cmpwi cr7,r0,0 ffc16ab8: 41 be 00 0c beq+ cr7,ffc16ac4 <_CORE_message_queue_Close+0x2c> (void) _CORE_message_queue_Flush_support( the_message_queue ); ffc16abc: 7f e3 fb 78 mr r3,r31 ffc16ac0: 48 00 00 21 bl ffc16ae0 <_CORE_message_queue_Flush_support> <== ALWAYS TAKEN (void) _Workspace_Free( the_message_queue->message_buffers ); ffc16ac4: 80 7f 00 5c lwz r3,92(r31) ffc16ac8: 4b ff a1 6d bl ffc10c34 <_Workspace_Free> <== ALWAYS TAKEN } ffc16acc: 80 01 00 14 lwz r0,20(r1) ffc16ad0: 83 e1 00 0c lwz r31,12(r1) ffc16ad4: 38 21 00 10 addi r1,r1,16 ffc16ad8: 7c 08 03 a6 mtlr r0 ffc16adc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1a448 <_CORE_message_queue_Flush>: */ uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { ffc1a448: 7c 08 02 a6 mflr r0 ffc1a44c: 94 21 ff f8 stwu r1,-8(r1) ffc1a450: 90 01 00 0c stw r0,12(r1) if ( the_message_queue->number_of_pending_messages != 0 ) ffc1a454: 38 00 00 00 li r0,0 ffc1a458: 81 23 00 48 lwz r9,72(r3) ffc1a45c: 2f 89 00 00 cmpwi cr7,r9,0 ffc1a460: 41 be 00 0c beq+ cr7,ffc1a46c <_CORE_message_queue_Flush+0x24> return _CORE_message_queue_Flush_support( the_message_queue ); ffc1a464: 48 00 00 1d bl ffc1a480 <_CORE_message_queue_Flush_support> <== ALWAYS TAKEN ffc1a468: 7c 60 1b 78 mr r0,r3 else return 0; } ffc1a46c: 7c 03 03 78 mr r3,r0 ffc1a470: 80 01 00 0c lwz r0,12(r1) ffc1a474: 38 21 00 08 addi r1,r1,8 ffc1a478: 7c 08 03 a6 mtlr r0 ffc1a47c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16ae0 <_CORE_message_queue_Flush_support>: */ uint32_t _CORE_message_queue_Flush_support( CORE_message_queue_Control *the_message_queue ) { ffc16ae0: 7c 69 1b 78 mr r9,r3 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc16ae4: 7c c0 00 a6 mfmsr r6 ffc16ae8: 7c 10 42 a6 mfsprg r0,0 ffc16aec: 7c c0 00 78 andc r0,r6,r0 ffc16af0: 7c 00 01 24 mtmsr r0 * fixed execution time that only deals with pending messages. */ _ISR_Disable( level ); inactive_first = the_message_queue->Inactive_messages.first; message_queue_first = the_message_queue->Pending_messages.first; ffc16af4: 80 e3 00 50 lwz r7,80(r3) message_queue_last = the_message_queue->Pending_messages.last; the_message_queue->Inactive_messages.first = message_queue_first; ffc16af8: 7c 6b 1b 78 mr r11,r3 * For now, though, we are very happy to have a small routine with * fixed execution time that only deals with pending messages. */ _ISR_Disable( level ); inactive_first = the_message_queue->Inactive_messages.first; ffc16afc: 81 03 00 68 lwz r8,104(r3) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc16b00: 38 00 00 00 li r0,0 <== ALWAYS TAKEN message_queue_first = the_message_queue->Pending_messages.first; message_queue_last = the_message_queue->Pending_messages.last; ffc16b04: 81 43 00 58 lwz r10,88(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc16b08: 38 83 00 54 addi r4,r3,84 the_message_queue->Inactive_messages.first = message_queue_first; ffc16b0c: 94 eb 00 68 stwu r7,104(r11) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc16b10: 38 a3 00 50 addi r5,r3,80 message_queue_last->next = inactive_first; inactive_first->previous = message_queue_last; ffc16b14: 91 48 00 04 stw r10,4(r8) inactive_first = the_message_queue->Inactive_messages.first; message_queue_first = the_message_queue->Pending_messages.first; message_queue_last = the_message_queue->Pending_messages.last; the_message_queue->Inactive_messages.first = message_queue_first; message_queue_last->next = inactive_first; ffc16b18: 91 0a 00 00 stw r8,0(r10) inactive_first->previous = message_queue_last; message_queue_first->previous = ffc16b1c: 91 67 00 04 stw r11,4(r7) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc16b20: 90 83 00 50 stw r4,80(r3) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc16b24: 90 a3 00 58 stw r5,88(r3) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc16b28: 90 03 00 54 stw r0,84(r3) _Chain_Head( &the_message_queue->Inactive_messages ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); count = the_message_queue->number_of_pending_messages; ffc16b2c: 80 63 00 48 lwz r3,72(r3) the_message_queue->number_of_pending_messages = 0; ffc16b30: 90 09 00 48 stw r0,72(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc16b34: 7c c0 01 24 mtmsr r6 _ISR_Enable( level ); return count; } ffc16b38: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12d1c <_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 ) { ffc12d1c: 94 21 ff e0 stwu r1,-32(r1) ffc12d20: 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)) { ffc12d24: 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 ) { ffc12d28: 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)) { ffc12d2c: 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; ffc12d30: 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 ) { ffc12d34: 93 c1 00 18 stw r30,24(r1) ffc12d38: 7c 9e 23 78 mr r30,r4 ffc12d3c: 93 e1 00 1c stw r31,28(r1) ffc12d40: 7c 7f 1b 78 mr r31,r3 ffc12d44: 93 a1 00 14 stw r29,20(r1) CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; the_message_queue->notify_argument = the_argument; ffc12d48: 90 03 00 64 stw r0,100(r3) size_t message_buffering_required; size_t allocated_message_size; the_message_queue->maximum_pending_messages = maximum_pending_messages; ffc12d4c: 90 a3 00 44 stw r5,68(r3) the_message_queue->number_of_pending_messages = 0; ffc12d50: 90 03 00 48 stw r0,72(r3) the_message_queue->maximum_message_size = maximum_message_size; ffc12d54: 90 c3 00 4c stw r6,76(r3) CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; ffc12d58: 90 03 00 60 stw r0,96(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)) { ffc12d5c: 41 82 00 14 beq- ffc12d70 <_CORE_message_queue_Initialize+0x54> allocated_message_size += sizeof(uint32_t); ffc12d60: 39 26 00 04 addi r9,r6,4 allocated_message_size &= ~(sizeof(uint32_t) - 1); ffc12d64: 55 29 00 3a rlwinm r9,r9,0,0,29 } if (allocated_message_size < maximum_message_size) ffc12d68: 7f 89 30 40 cmplw cr7,r9,r6 ffc12d6c: 41 bc 00 7c blt+ cr7,ffc12de8 <_CORE_message_queue_Initialize+0xcc> <== 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)); ffc12d70: 3b a9 00 14 addi r29,r9,20 /* * 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 * ffc12d74: 7c 7d 29 d6 mullw r3,r29,r5 (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) ffc12d78: 7f 83 48 40 cmplw cr7,r3,r9 ffc12d7c: 41 bc 00 6c blt+ cr7,ffc12de8 <_CORE_message_queue_Initialize+0xcc> <== NEVER TAKEN return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) ffc12d80: 90 a1 00 08 stw r5,8(r1) ffc12d84: 48 00 37 69 bl ffc164ec <_Workspace_Allocate> <== ALWAYS TAKEN _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) ffc12d88: 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 *) ffc12d8c: 7c 64 1b 78 mr r4,r3 ffc12d90: 90 7f 00 5c stw r3,92(r31) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) ffc12d94: 80 a1 00 08 lwz r5,8(r1) ffc12d98: 41 9e 00 50 beq- cr7,ffc12de8 <_CORE_message_queue_Initialize+0xcc> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( ffc12d9c: 7f a6 eb 78 mr r6,r29 ffc12da0: 38 7f 00 68 addi r3,r31,104 ffc12da4: 48 00 60 45 bl ffc18de8 <_Chain_Initialize> <== ALWAYS TAKEN allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( ffc12da8: 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); ffc12dac: 39 3f 00 54 addi r9,r31,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc12db0: 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); ffc12db4: 91 3f 00 50 stw r9,80(r31) ffc12db8: 68 84 00 01 xori r4,r4,1 the_chain->permanent_null = NULL; ffc12dbc: 39 20 00 00 li r9,0 the_chain->last = _Chain_Head(the_chain); ffc12dc0: 90 1f 00 58 stw r0,88(r31) ffc12dc4: 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; ffc12dc8: 91 3f 00 54 stw r9,84(r31) ffc12dcc: 7f e3 fb 78 mr r3,r31 ffc12dd0: 54 84 d9 7e rlwinm r4,r4,27,5,31 ffc12dd4: 38 a0 00 80 li r5,128 ffc12dd8: 38 c0 00 06 li r6,6 ffc12ddc: 48 00 27 85 bl ffc15560 <_Thread_queue_Initialize> <== ALWAYS TAKEN ffc12de0: 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; ffc12de4: 48 00 00 08 b ffc12dec <_CORE_message_queue_Initialize+0xd0> <== ALWAYS TAKEN ffc12de8: 38 60 00 00 li r3,0 } ffc12dec: 80 01 00 24 lwz r0,36(r1) ffc12df0: 83 a1 00 14 lwz r29,20(r1) ffc12df4: 7c 08 03 a6 mtlr r0 ffc12df8: 83 c1 00 18 lwz r30,24(r1) ffc12dfc: 83 e1 00 1c lwz r31,28(r1) ffc12e00: 38 21 00 20 addi r1,r1,32 ffc12e04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18e24 <_CORE_message_queue_Insert_message>: void _CORE_message_queue_Insert_message( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message, CORE_message_queue_Submit_types submit_type ) { ffc18e24: 7c 08 02 a6 mflr r0 ffc18e28: 94 21 ff f8 stwu r1,-8(r1) ffc18e2c: 90 01 00 0c stw r0,12(r1) _CORE_message_queue_Append_unprotected(the_message_queue, the_message); else _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); #else if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) { ffc18e30: 3c 00 7f ff lis r0,32767 ffc18e34: 60 00 ff ff ori r0,r0,65535 ffc18e38: 7f 85 00 00 cmpw cr7,r5,r0 ffc18e3c: 90 a4 00 08 stw r5,8(r4) ffc18e40: 40 be 00 3c bne+ cr7,ffc18e7c <_CORE_message_queue_Insert_message+0x58> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc18e44: 7c 00 00 a6 mfmsr r0 ffc18e48: 7d 30 42 a6 mfsprg r9,0 ffc18e4c: 7c 09 48 78 andc r9,r0,r9 ffc18e50: 7d 20 01 24 mtmsr r9 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc18e54: 39 23 00 54 addi r9,r3,84 _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; ffc18e58: 81 63 00 48 lwz r11,72(r3) ffc18e5c: 91 24 00 00 stw r9,0(r4) ffc18e60: 39 6b 00 01 addi r11,r11,1 old_last_node = the_chain->last; ffc18e64: 81 23 00 58 lwz r9,88(r3) ffc18e68: 91 63 00 48 stw r11,72(r3) the_chain->last = the_node; ffc18e6c: 90 83 00 58 stw r4,88(r3) old_last_node->next = the_node; the_node->previous = old_last_node; ffc18e70: 91 24 00 04 stw r9,4(r4) 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; ffc18e74: 90 89 00 00 stw r4,0(r9) _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); ffc18e78: 48 00 00 a0 b ffc18f18 <_CORE_message_queue_Insert_message+0xf4> <== ALWAYS TAKEN } else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) { ffc18e7c: 3c 00 80 00 lis r0,-32768 ffc18e80: 7f 85 00 00 cmpw cr7,r5,r0 ffc18e84: 40 be 00 3c bne+ cr7,ffc18ec0 <_CORE_message_queue_Insert_message+0x9c> ffc18e88: 7c 00 00 a6 mfmsr r0 ffc18e8c: 7d 30 42 a6 mfsprg r9,0 ffc18e90: 7c 09 48 78 andc r9,r0,r9 ffc18e94: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; ffc18e98: 81 63 00 48 lwz r11,72(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; ffc18e9c: 39 43 00 50 addi r10,r3,80 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc18ea0: 81 23 00 50 lwz r9,80(r3) ffc18ea4: 39 6b 00 01 addi r11,r11,1 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc18ea8: 91 44 00 04 stw r10,4(r4) before_node = after_node->next; after_node->next = the_node; ffc18eac: 90 83 00 50 stw r4,80(r3) the_node->next = before_node; before_node->previous = the_node; ffc18eb0: 90 89 00 04 stw r4,4(r9) ffc18eb4: 91 63 00 48 stw r11,72(r3) Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; ffc18eb8: 91 24 00 00 stw r9,0(r4) _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level ); ffc18ebc: 48 00 00 5c b ffc18f18 <_CORE_message_queue_Insert_message+0xf4> <== ALWAYS TAKEN Chain_Control *the_header; int the_priority; the_priority = _CORE_message_queue_Get_message_priority(the_message); the_header = &the_message_queue->Pending_messages; the_node = the_header->first; ffc18ec0: 81 23 00 50 lwz r9,80(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc18ec4: 38 03 00 54 addi r0,r3,84 while ( !_Chain_Is_tail( the_header, the_node ) ) { ffc18ec8: 48 00 00 14 b ffc18edc <_CORE_message_queue_Insert_message+0xb8> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE int _CORE_message_queue_Get_message_priority ( CORE_message_queue_Buffer_control *the_message ) { #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) return the_message->priority; ffc18ecc: 81 69 00 08 lwz r11,8(r9) ffc18ed0: 7f 8b 28 00 cmpw cr7,r11,r5 ffc18ed4: 41 9d 00 10 bgt- cr7,ffc18ee4 <_CORE_message_queue_Insert_message+0xc0> this_message = (CORE_message_queue_Buffer_control *) the_node; this_priority = _CORE_message_queue_Get_message_priority(this_message); if ( this_priority <= the_priority ) { the_node = the_node->next; ffc18ed8: 81 29 00 00 lwz r9,0(r9) int the_priority; the_priority = _CORE_message_queue_Get_message_priority(the_message); the_header = &the_message_queue->Pending_messages; the_node = the_header->first; while ( !_Chain_Is_tail( the_header, the_node ) ) { ffc18edc: 7f 89 00 00 cmpw cr7,r9,r0 ffc18ee0: 40 9e ff ec bne+ cr7,ffc18ecc <_CORE_message_queue_Insert_message+0xa8> ffc18ee4: 7c 00 00 a6 mfmsr r0 ffc18ee8: 7d 70 42 a6 mfsprg r11,0 ffc18eec: 7c 0b 58 78 andc r11,r0,r11 ffc18ef0: 7d 60 01 24 mtmsr r11 break; } _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; _Chain_Insert_unprotected( the_node->previous, &the_message->Node ); ffc18ef4: 81 29 00 04 lwz r9,4(r9) } break; } _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; ffc18ef8: 81 43 00 48 lwz r10,72(r3) ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc18efc: 81 69 00 00 lwz r11,0(r9) ffc18f00: 39 4a 00 01 addi r10,r10,1 after_node->next = the_node; ffc18f04: 90 89 00 00 stw r4,0(r9) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc18f08: 91 24 00 04 stw r9,4(r4) ffc18f0c: 91 43 00 48 stw r10,72(r3) before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; ffc18f10: 90 8b 00 04 stw r4,4(r11) Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; ffc18f14: 91 64 00 00 stw r11,0(r4) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc18f18: 7c 00 01 24 mtmsr r0 /* * According to POSIX, does this happen before or after the message * is actually enqueued. It is logical to think afterwards, because * the message is actually in the queue at this point. */ if ( notify && the_message_queue->notify_handler ) ffc18f1c: 80 03 00 60 lwz r0,96(r3) ffc18f20: 2f 80 00 00 cmpwi cr7,r0,0 ffc18f24: 41 9e 00 10 beq- cr7,ffc18f34 <_CORE_message_queue_Insert_message+0x110> (*the_message_queue->notify_handler)(the_message_queue->notify_argument); ffc18f28: 80 63 00 64 lwz r3,100(r3) ffc18f2c: 7c 09 03 a6 mtctr r0 ffc18f30: 4e 80 04 21 bctrl <== ALWAYS TAKEN #endif } ffc18f34: 80 01 00 0c lwz r0,12(r1) ffc18f38: 38 21 00 08 addi r1,r1,8 ffc18f3c: 7c 08 03 a6 mtlr r0 ffc18f40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12e08 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc12e08: 94 21 ff e8 stwu r1,-24(r1) ffc12e0c: 7c 08 02 a6 mflr r0 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; ffc12e10: 3d 20 00 00 lis r9,0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc12e14: 90 01 00 1c stw r0,28(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; ffc12e18: 38 00 00 00 li r0,0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc12e1c: 7c 8b 23 78 mr r11,r4 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; ffc12e20: 81 29 28 50 lwz r9,10320(r9) void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc12e24: 93 e1 00 14 stw r31,20(r1) ffc12e28: 7c 7f 1b 78 mr r31,r3 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; ffc12e2c: 90 09 00 34 stw r0,52(r9) void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc12e30: 7c a0 2b 78 mr r0,r5 ffc12e34: 93 a1 00 0c stw r29,12(r1) ffc12e38: 93 c1 00 10 stw r30,16(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc12e3c: 7d 40 00 a6 mfmsr r10 ffc12e40: 7c b0 42 a6 mfsprg r5,0 ffc12e44: 7d 45 28 78 andc r5,r10,r5 ffc12e48: 7c a0 01 24 mtmsr r5 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc12e4c: 83 c3 00 50 lwz r30,80(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc12e50: 38 a3 00 54 addi r5,r3,84 ffc12e54: 7f 9e 28 00 cmpw cr7,r30,r5 ffc12e58: 41 9e 00 a4 beq- cr7,ffc12efc <_CORE_message_queue_Seize+0xf4> 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 ) { ffc12e5c: 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; ffc12e60: 80 9e 00 00 lwz r4,0(r30) the_chain->first = new_first; ffc12e64: 7c 65 1b 78 mr r5,r3 ffc12e68: 94 85 00 50 stwu r4,80(r5) new_first->previous = _Chain_Head(the_chain); ffc12e6c: 90 a4 00 04 stw r5,4(r4) ffc12e70: 41 9e 00 8c beq- cr7,ffc12efc <_CORE_message_queue_Seize+0xf4> <== NEVER TAKEN the_message_queue->number_of_pending_messages -= 1; ffc12e74: 81 23 00 48 lwz r9,72(r3) ffc12e78: 39 29 ff ff addi r9,r9,-1 ffc12e7c: 91 23 00 48 stw r9,72(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc12e80: 7d 40 01 24 mtmsr r10 _ISR_Enable( level ); *size_p = the_message->Contents.size; ffc12e84: 80 be 00 0c lwz r5,12(r30) _Thread_Executing->Wait.count = ffc12e88: 3d 20 00 00 lis r9,0 ffc12e8c: 81 29 28 50 lwz r9,10320(r9) _CORE_message_queue_Get_message_priority( the_message ); _CORE_message_queue_Copy_buffer( the_message->Contents.buffer, ffc12e90: 3b be 00 10 addi r29,r30,16 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; ffc12e94: 90 a6 00 00 stw r5,0(r6) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc12e98: 7c 03 03 78 mr r3,r0 ffc12e9c: 7f a4 eb 78 mr r4,r29 _Thread_Executing->Wait.count = ffc12ea0: 81 7e 00 08 lwz r11,8(r30) ffc12ea4: 91 69 00 24 stw r11,36(r9) ffc12ea8: 48 00 9f 1d bl ffc1cdc4 <== ALWAYS TAKEN * is not, then we can go ahead and free the buffer. * * NOTE: If we note that the queue was not full before this receive, * then we can avoid this dequeue. */ the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); ffc12eac: 7f e3 fb 78 mr r3,r31 ffc12eb0: 48 00 21 e1 bl ffc15090 <_Thread_queue_Dequeue> <== ALWAYS TAKEN if ( !the_thread ) { ffc12eb4: 7c 69 1b 79 mr. r9,r3 ffc12eb8: 40 a2 00 14 bne+ ffc12ecc <_CORE_message_queue_Seize+0xc4> 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 ); ffc12ebc: 38 7f 00 68 addi r3,r31,104 ffc12ec0: 7f c4 f3 78 mr r4,r30 ffc12ec4: 4b ff fd 95 bl ffc12c58 <_Chain_Append> <== ALWAYS TAKEN _CORE_message_queue_Free_message_buffer( the_message_queue, the_message ); return; ffc12ec8: 48 00 00 7c b ffc12f44 <_CORE_message_queue_Seize+0x13c> <== ALWAYS TAKEN */ _CORE_message_queue_Set_message_priority( the_message, the_thread->Wait.count ); the_message->Contents.size = (size_t) the_thread->Wait.option; ffc12ecc: 80 a9 00 30 lwz r5,48(r9) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc12ed0: 7f a3 eb 78 mr r3,r29 CORE_message_queue_Buffer_control *the_message, int priority ) { #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) the_message->priority = priority; ffc12ed4: 80 09 00 24 lwz r0,36(r9) ffc12ed8: 90 be 00 0c stw r5,12(r30) ffc12edc: 90 1e 00 08 stw r0,8(r30) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc12ee0: 80 89 00 2c lwz r4,44(r9) ffc12ee4: 48 00 9e e1 bl ffc1cdc4 <== ALWAYS TAKEN the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( ffc12ee8: 80 be 00 08 lwz r5,8(r30) ffc12eec: 7f e3 fb 78 mr r3,r31 ffc12ef0: 7f c4 f3 78 mr r4,r30 ffc12ef4: 48 00 5f 31 bl ffc18e24 <_CORE_message_queue_Insert_message> <== ALWAYS TAKEN the_message_queue, the_message, _CORE_message_queue_Get_message_priority( the_message ) ); return; ffc12ef8: 48 00 00 4c b ffc12f44 <_CORE_message_queue_Seize+0x13c> <== ALWAYS TAKEN } #endif } if ( !wait ) { ffc12efc: 2f 87 00 00 cmpwi cr7,r7,0 ffc12f00: 40 9e 00 14 bne- cr7,ffc12f14 <_CORE_message_queue_Seize+0x10c> ffc12f04: 7d 40 01 24 mtmsr r10 _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; ffc12f08: 38 00 00 04 li r0,4 ffc12f0c: 90 09 00 34 stw r0,52(r9) return; ffc12f10: 48 00 00 34 b ffc12f44 <_CORE_message_queue_Seize+0x13c> <== ALWAYS TAKEN 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; ffc12f14: 38 e0 00 01 li r7,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; ffc12f18: 90 c9 00 28 stw r6,40(r9) ffc12f1c: 90 ff 00 30 stw r7,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; ffc12f20: 91 69 00 20 stw r11,32(r9) executing->Wait.return_argument_second.mutable_object = buffer; ffc12f24: 90 09 00 2c stw r0,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; ffc12f28: 93 e9 00 44 stw r31,68(r9) ffc12f2c: 7d 40 01 24 mtmsr r10 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 ); ffc12f30: 3c a0 ff c1 lis r5,-63 ffc12f34: 7f e3 fb 78 mr r3,r31 ffc12f38: 7d 04 43 78 mr r4,r8 ffc12f3c: 38 a5 56 44 addi r5,r5,22084 ffc12f40: 48 00 23 0d bl ffc1524c <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN } ffc12f44: 80 01 00 1c lwz r0,28(r1) ffc12f48: 83 a1 00 0c lwz r29,12(r1) ffc12f4c: 7c 08 03 a6 mtlr r0 ffc12f50: 83 c1 00 10 lwz r30,16(r1) ffc12f54: 83 e1 00 14 lwz r31,20(r1) ffc12f58: 38 21 00 18 addi r1,r1,24 ffc12f5c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12f60 <_CORE_message_queue_Submit>: #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { ffc12f60: 94 21 ff d8 stwu r1,-40(r1) ffc12f64: 7c 08 02 a6 mflr r0 ffc12f68: 90 01 00 2c stw r0,44(r1) CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { ffc12f6c: 80 03 00 4c lwz r0,76(r3) #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { ffc12f70: 93 01 00 08 stw r24,8(r1) ffc12f74: 7d 58 53 78 mr r24,r10 CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { ffc12f78: 7f 85 00 40 cmplw cr7,r5,r0 #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { ffc12f7c: 93 21 00 0c stw r25,12(r1) CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { ffc12f80: 38 00 00 01 li r0,1 #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { ffc12f84: 7d 39 4b 78 mr r25,r9 ffc12f88: 93 61 00 14 stw r27,20(r1) ffc12f8c: 7c db 33 78 mr r27,r6 ffc12f90: 93 81 00 18 stw r28,24(r1) ffc12f94: 7c 9c 23 78 mr r28,r4 ffc12f98: 93 a1 00 1c stw r29,28(r1) ffc12f9c: 7d 1d 43 78 mr r29,r8 ffc12fa0: 93 c1 00 20 stw r30,32(r1) ffc12fa4: 7c be 2b 78 mr r30,r5 ffc12fa8: 93 e1 00 24 stw r31,36(r1) ffc12fac: 7c 7f 1b 78 mr r31,r3 ffc12fb0: 93 41 00 10 stw r26,16(r1) CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { ffc12fb4: 41 9d 00 fc bgt- cr7,ffc130b0 <_CORE_message_queue_Submit+0x150> } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { ffc12fb8: 80 03 00 48 lwz r0,72(r3) ffc12fbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc12fc0: 40 be 00 34 bne+ cr7,ffc12ff4 <_CORE_message_queue_Submit+0x94> the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); ffc12fc4: 48 00 20 cd bl ffc15090 <_Thread_queue_Dequeue> <== ALWAYS TAKEN if ( the_thread ) { ffc12fc8: 7c 7a 1b 79 mr. r26,r3 ffc12fcc: 41 82 00 28 beq- ffc12ff4 <_CORE_message_queue_Submit+0x94> ffc12fd0: 80 7a 00 2c lwz r3,44(r26) ffc12fd4: 7f 84 e3 78 mr r4,r28 ffc12fd8: 7f c5 f3 78 mr r5,r30 ffc12fdc: 48 00 9d e9 bl ffc1cdc4 <== ALWAYS TAKEN _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; ffc12fe0: 81 3a 00 28 lwz r9,40(r26) the_thread->Wait.count = (uint32_t) submit_type; ffc12fe4: 93 ba 00 24 stw r29,36(r26) ffc12fe8: 38 00 00 00 li r0,0 _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; ffc12fec: 93 c9 00 00 stw r30,0(r9) #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; ffc12ff0: 48 00 00 c0 b ffc130b0 <_CORE_message_queue_Submit+0x150> <== ALWAYS TAKEN /* * No one waiting on the message queue at this time, so attempt to * queue the message up for a future receive. */ if ( the_message_queue->number_of_pending_messages < the_message_queue->maximum_pending_messages ) { ffc12ff4: 81 3f 00 48 lwz r9,72(r31) ffc12ff8: 80 1f 00 44 lwz r0,68(r31) ffc12ffc: 7f 89 00 40 cmplw cr7,r9,r0 <== ALWAYS TAKEN ffc13000: 40 bc 00 40 bge+ cr7,ffc13040 <_CORE_message_queue_Submit+0xe0> RTEMS_INLINE_ROUTINE CORE_message_queue_Buffer_control * _CORE_message_queue_Allocate_message_buffer ( CORE_message_queue_Control *the_message_queue ) { return (CORE_message_queue_Buffer_control *) ffc13004: 38 7f 00 68 addi r3,r31,104 ffc13008: 4b ff fc a9 bl ffc12cb0 <_Chain_Get> <== ALWAYS TAKEN const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc1300c: 7f 84 e3 78 mr r4,r28 RTEMS_INLINE_ROUTINE CORE_message_queue_Buffer_control * _CORE_message_queue_Allocate_message_buffer ( CORE_message_queue_Control *the_message_queue ) { return (CORE_message_queue_Buffer_control *) ffc13010: 7c 7b 1b 78 mr r27,r3 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc13014: 7f c5 f3 78 mr r5,r30 ffc13018: 38 63 00 10 addi r3,r3,16 ffc1301c: 48 00 9d a9 bl ffc1cdc4 <== ALWAYS TAKEN _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; ffc13020: 93 db 00 0c stw r30,12(r27) _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( ffc13024: 7f e3 fb 78 mr r3,r31 CORE_message_queue_Buffer_control *the_message, int priority ) { #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) the_message->priority = priority; ffc13028: 93 bb 00 08 stw r29,8(r27) ffc1302c: 7f 64 db 78 mr r4,r27 ffc13030: 7f a5 eb 78 mr r5,r29 ffc13034: 48 00 5d f1 bl ffc18e24 <_CORE_message_queue_Insert_message> <== ALWAYS TAKEN ffc13038: 38 00 00 00 li r0,0 the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; ffc1303c: 48 00 00 74 b ffc130b0 <_CORE_message_queue_Submit+0x150> <== ALWAYS TAKEN /* * No message buffers were available so we may need to return an * overflow error or block the sender until the message is placed * on the queue. */ if ( !wait ) { ffc13040: 2f 99 00 00 cmpwi cr7,r25,0 ffc13044: 38 00 00 02 li r0,2 ffc13048: 41 9e 00 68 beq- cr7,ffc130b0 <_CORE_message_queue_Submit+0x150> /* * Do NOT block on a send if the caller is in an ISR. It is * deadly to block in an ISR. */ if ( _ISR_Is_in_progress() ) { ffc1304c: 3d 20 00 00 lis r9,0 ffc13050: 81 29 28 38 lwz r9,10296(r9) ffc13054: 38 00 00 03 li r0,3 ffc13058: 2f 89 00 00 cmpwi cr7,r9,0 ffc1305c: 40 9e 00 54 bne- cr7,ffc130b0 <_CORE_message_queue_Submit+0x150> * Thus the unusual choice to open a new scope and declare * it as a variable. Doing this emphasizes how dangerous it * would be to use this variable prior to here. */ { Thread_Control *executing = _Thread_Executing; ffc13060: 3d 20 00 00 lis r9,0 ffc13064: 81 29 28 50 lwz r9,10320(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc13068: 7c 00 00 a6 mfmsr r0 ffc1306c: 7d 70 42 a6 mfsprg r11,0 ffc13070: 7c 0b 58 78 andc r11,r0,r11 ffc13074: 7d 60 01 24 mtmsr r11 ffc13078: 39 60 00 01 li r11,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.immutable_object = buffer; executing->Wait.option = (uint32_t) size; executing->Wait.count = submit_type; ffc1307c: 93 a9 00 24 stw r29,36(r9) ffc13080: 91 7f 00 30 stw r11,48(r31) ISR_Level level; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; executing->Wait.id = id; ffc13084: 93 69 00 20 stw r27,32(r9) executing->Wait.return_argument_second.immutable_object = buffer; ffc13088: 93 89 00 2c stw r28,44(r9) executing->Wait.option = (uint32_t) size; ffc1308c: 93 c9 00 30 stw r30,48(r9) Thread_Control *executing = _Thread_Executing; ISR_Level level; _ISR_Disable( level ); _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue; ffc13090: 93 e9 00 44 stw r31,68(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc13094: 7c 00 01 24 mtmsr r0 executing->Wait.return_argument_second.immutable_object = buffer; executing->Wait.option = (uint32_t) size; executing->Wait.count = submit_type; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); ffc13098: 3c a0 ff c1 lis r5,-63 ffc1309c: 7f e3 fb 78 mr r3,r31 ffc130a0: 7f 04 c3 78 mr r4,r24 ffc130a4: 38 a5 56 44 addi r5,r5,22084 ffc130a8: 48 00 21 a5 bl ffc1524c <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN ffc130ac: 38 00 00 07 li r0,7 } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } ffc130b0: 7c 03 03 78 mr r3,r0 ffc130b4: 80 01 00 2c lwz r0,44(r1) ffc130b8: 83 01 00 08 lwz r24,8(r1) ffc130bc: 7c 08 03 a6 mtlr r0 ffc130c0: 83 21 00 0c lwz r25,12(r1) ffc130c4: 83 41 00 10 lwz r26,16(r1) ffc130c8: 83 61 00 14 lwz r27,20(r1) ffc130cc: 83 81 00 18 lwz r28,24(r1) ffc130d0: 83 a1 00 1c lwz r29,28(r1) ffc130d4: 83 c1 00 20 lwz r30,32(r1) ffc130d8: 83 e1 00 24 lwz r31,36(r1) ffc130dc: 38 21 00 28 addi r1,r1,40 ffc130e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc088f8 <_CORE_mutex_Flush>: void _CORE_mutex_Flush( CORE_mutex_Control *the_mutex, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { ffc088f8: 94 21 ff f8 stwu r1,-8(r1) ffc088fc: 7c 08 02 a6 mflr r0 ffc08900: 90 01 00 0c stw r0,12(r1) _Thread_queue_Flush( ffc08904: 48 00 23 05 bl ffc0ac08 <_Thread_queue_Flush> <== ALWAYS TAKEN &the_mutex->Wait_queue, remote_extract_callout, status ); } ffc08908: 80 01 00 0c lwz r0,12(r1) ffc0890c: 38 21 00 08 addi r1,r1,8 ffc08910: 7c 08 03 a6 mtlr r0 ffc08914: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08918 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { ffc08918: 7c 08 02 a6 mflr r0 ffc0891c: 94 21 ff f8 stwu r1,-8(r1) the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { ffc08920: 2f 85 00 00 cmpwi cr7,r5,0 CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { ffc08924: 90 01 00 0c stw r0,12(r1) initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; ffc08928: 39 00 00 00 li r8,0 /* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; ffc0892c: 81 44 00 00 lwz r10,0(r4) ffc08930: 81 64 00 04 lwz r11,4(r4) ffc08934: 80 04 00 08 lwz r0,8(r4) <== ALWAYS TAKEN ffc08938: 81 24 00 0c lwz r9,12(r4) ffc0893c: 91 43 00 40 stw r10,64(r3) ffc08940: 91 63 00 44 stw r11,68(r3) <== ALWAYS TAKEN ffc08944: 91 23 00 4c stw r9,76(r3) ffc08948: 90 03 00 48 stw r0,72(r3) the_mutex->lock = initial_lock; ffc0894c: 90 a3 00 50 stw r5,80(r3) the_mutex->blocked_count = 0; ffc08950: 91 03 00 58 stw r8,88(r3) <== ALWAYS TAKEN if ( initial_lock == CORE_MUTEX_LOCKED ) { ffc08954: 40 9e 00 54 bne- cr7,ffc089a8 <_CORE_mutex_Initialize+0x90> the_mutex->nest_count = 1; ffc08958: 39 20 00 01 li r9,1 ffc0895c: 91 23 00 54 stw r9,84(r3) the_mutex->holder = _Thread_Executing; the_mutex->holder_id = _Thread_Executing->Object.id; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc08960: 2f 80 00 02 cmpwi cr7,r0,2 <== ALWAYS TAKEN the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; ffc08964: 3d 20 00 00 lis r9,0 ffc08968: 81 29 27 b0 lwz r9,10160(r9) the_mutex->holder_id = _Thread_Executing->Object.id; ffc0896c: 81 69 00 08 lwz r11,8(r9) <== ALWAYS TAKEN the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; if ( initial_lock == CORE_MUTEX_LOCKED ) { the_mutex->nest_count = 1; the_mutex->holder = _Thread_Executing; ffc08970: 91 23 00 5c stw r9,92(r3) the_mutex->holder_id = _Thread_Executing->Object.id; ffc08974: 91 63 00 60 stw r11,96(r3) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc08978: 41 9e 00 0c beq- cr7,ffc08984 <_CORE_mutex_Initialize+0x6c> ffc0897c: 2f 80 00 03 cmpwi cr7,r0,3 ffc08980: 40 be 00 34 bne+ cr7,ffc089b4 <_CORE_mutex_Initialize+0x9c> _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < the_mutex->Attributes.priority_ceiling ) ffc08984: 81 49 00 14 lwz r10,20(r9) ffc08988: 38 00 00 06 li r0,6 ffc0898c: 81 63 00 4c lwz r11,76(r3) ffc08990: 7f 8a 58 40 cmplw cr7,r10,r11 ffc08994: 41 9c 00 40 blt- cr7,ffc089d4 <_CORE_mutex_Initialize+0xbc> _Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = _Thread_Executing->current_priority; #endif _Thread_Executing->resource_count++; ffc08998: 81 69 00 1c lwz r11,28(r9) ffc0899c: 38 0b 00 01 addi r0,r11,1 ffc089a0: 90 09 00 1c stw r0,28(r9) ffc089a4: 48 00 00 10 b ffc089b4 <_CORE_mutex_Initialize+0x9c> <== ALWAYS TAKEN } } else { the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; ffc089a8: 91 03 00 60 stw r8,96(r3) #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; ffc089ac: 91 03 00 54 stw r8,84(r3) <== ALWAYS TAKEN the_mutex->holder = NULL; ffc089b0: 91 03 00 5c stw r8,92(r3) the_mutex->holder_id = 0; } _Thread_queue_Initialize( ffc089b4: 80 84 00 08 lwz r4,8(r4) <== ALWAYS TAKEN ffc089b8: 38 a0 04 00 li r5,1024 ffc089bc: 38 c0 00 05 li r6,5 ffc089c0: 31 24 ff ff addic r9,r4,-1 ffc089c4: 7c 09 21 10 subfe r0,r9,r4 ffc089c8: 7c 04 03 78 mr r4,r0 ffc089cc: 48 00 22 89 bl ffc0ac54 <_Thread_queue_Initialize> <== ALWAYS TAKEN ffc089d0: 38 00 00 00 li r0,0 STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } ffc089d4: 7c 03 03 78 mr r3,r0 ffc089d8: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc089dc: 38 21 00 08 addi r1,r1,8 ffc089e0: 7c 08 03 a6 mtlr r0 ffc089e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08a70 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc08a70: 94 21 ff e0 stwu r1,-32(r1) ffc08a74: 7c 08 02 a6 mflr r0 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc08a78: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc08a7c: 90 01 00 24 stw r0,36(r1) _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc08a80: 80 09 27 70 lwz r0,10096(r9) Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc08a84: 93 81 00 10 stw r28,16(r1) ffc08a88: 7c dc 33 78 mr r28,r6 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc08a8c: 2f 80 00 00 cmpwi cr7,r0,0 Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc08a90: 93 a1 00 14 stw r29,20(r1) <== ALWAYS TAKEN ffc08a94: 7c bd 2b 78 mr r29,r5 ffc08a98: 93 c1 00 18 stw r30,24(r1) <== ALWAYS TAKEN ffc08a9c: 7c 9e 23 78 mr r30,r4 <== ALWAYS TAKEN ffc08aa0: 93 e1 00 1c stw r31,28(r1) ffc08aa4: 7c 7f 1b 78 mr r31,r3 ffc08aa8: 90 e1 00 08 stw r7,8(r1) _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc08aac: 41 9e 00 2c beq- cr7,ffc08ad8 <_CORE_mutex_Seize+0x68> ffc08ab0: 2f 85 00 00 cmpwi cr7,r5,0 ffc08ab4: 41 9e 00 24 beq- cr7,ffc08ad8 <_CORE_mutex_Seize+0x68> <== NEVER TAKEN ffc08ab8: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc08abc: 80 09 27 d4 lwz r0,10196(r9) ffc08ac0: 2b 80 00 01 cmplwi cr7,r0,1 ffc08ac4: 40 bd 00 14 ble+ cr7,ffc08ad8 <_CORE_mutex_Seize+0x68> ffc08ac8: 38 60 00 00 li r3,0 ffc08acc: 38 80 00 00 li r4,0 ffc08ad0: 38 a0 00 13 li r5,19 ffc08ad4: 48 00 07 5d bl ffc09230 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc08ad8: 7f e3 fb 78 mr r3,r31 ffc08adc: 38 81 00 08 addi r4,r1,8 <== ALWAYS TAKEN ffc08ae0: 48 00 5a b1 bl ffc0e590 <_CORE_mutex_Seize_interrupt_trylock> <== ALWAYS TAKEN ffc08ae4: 2f 83 00 00 cmpwi cr7,r3,0 ffc08ae8: 41 9e 00 60 beq- cr7,ffc08b48 <_CORE_mutex_Seize+0xd8> ffc08aec: 2f 9d 00 00 cmpwi cr7,r29,0 ffc08af0: 3d 60 00 00 lis r11,0 ffc08af4: 40 9e 00 1c bne- cr7,ffc08b10 <_CORE_mutex_Seize+0xa0> ffc08af8: 80 01 00 08 lwz r0,8(r1) ffc08afc: 7c 00 01 24 mtmsr r0 ffc08b00: 81 2b 27 b0 lwz r9,10160(r11) ffc08b04: 38 00 00 01 li r0,1 ffc08b08: 90 09 00 34 stw r0,52(r9) ffc08b0c: 48 00 00 3c b ffc08b48 <_CORE_mutex_Seize+0xd8> <== ALWAYS TAKEN ffc08b10: 3d 20 00 00 lis r9,0 ffc08b14: 81 6b 27 b0 lwz r11,10160(r11) ffc08b18: 81 49 27 70 lwz r10,10096(r9) <== ALWAYS TAKEN ffc08b1c: 93 cb 00 20 stw r30,32(r11) ffc08b20: 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; ffc08b24: 39 40 00 01 li r10,1 ffc08b28: 93 eb 00 44 stw r31,68(r11) ffc08b2c: 91 5f 00 30 stw r10,48(r31) ffc08b30: 90 09 27 70 stw r0,10096(r9) ffc08b34: 80 01 00 08 lwz r0,8(r1) ffc08b38: 7c 00 01 24 mtmsr r0 ffc08b3c: 7f e3 fb 78 mr r3,r31 ffc08b40: 7f 84 e3 78 mr r4,r28 ffc08b44: 4b ff fe a5 bl ffc089e8 <_CORE_mutex_Seize_interrupt_blocking> <== ALWAYS TAKEN } ffc08b48: 80 01 00 24 lwz r0,36(r1) ffc08b4c: 83 81 00 10 lwz r28,16(r1) ffc08b50: 7c 08 03 a6 mtlr r0 ffc08b54: 83 a1 00 14 lwz r29,20(r1) ffc08b58: 83 c1 00 18 lwz r30,24(r1) ffc08b5c: 83 e1 00 1c lwz r31,28(r1) ffc08b60: 38 21 00 20 addi r1,r1,32 ffc08b64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc089e8 <_CORE_mutex_Seize_interrupt_blocking>: void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { ffc089e8: 94 21 ff f0 stwu r1,-16(r1) ffc089ec: 7c 08 02 a6 mflr r0 Thread_Control *executing; executing = _Thread_Executing; ffc089f0: 3d 20 00 00 lis r9,0 void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { ffc089f4: 90 01 00 14 stw r0,20(r1) Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { ffc089f8: 80 03 00 48 lwz r0,72(r3) void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { ffc089fc: 93 c1 00 08 stw r30,8(r1) ffc08a00: 7c 9e 23 78 mr r30,r4 Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { ffc08a04: 2f 80 00 02 cmpwi cr7,r0,2 void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { ffc08a08: 93 e1 00 0c stw r31,12(r1) ffc08a0c: 7c 7f 1b 78 mr r31,r3 Thread_Control *executing; executing = _Thread_Executing; ffc08a10: 81 29 27 b0 lwz r9,10160(r9) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { ffc08a14: 40 be 00 20 bne+ cr7,ffc08a34 <_CORE_mutex_Seize_interrupt_blocking+0x4c> if ( the_mutex->holder->current_priority > executing->current_priority ) { ffc08a18: 80 63 00 5c lwz r3,92(r3) ffc08a1c: 80 89 00 14 lwz r4,20(r9) ffc08a20: 80 03 00 14 lwz r0,20(r3) ffc08a24: 7f 80 20 40 cmplw cr7,r0,r4 ffc08a28: 40 bd 00 0c ble+ cr7,ffc08a34 <_CORE_mutex_Seize_interrupt_blocking+0x4c> _Thread_Change_priority( ffc08a2c: 38 a0 00 00 li r5,0 ffc08a30: 48 00 12 95 bl ffc09cc4 <_Thread_Change_priority> <== ALWAYS TAKEN false ); } } the_mutex->blocked_count++; ffc08a34: 81 3f 00 58 lwz r9,88(r31) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); ffc08a38: 3c a0 ff c1 lis r5,-63 ffc08a3c: 7f e3 fb 78 mr r3,r31 false ); } } the_mutex->blocked_count++; ffc08a40: 38 09 00 01 addi r0,r9,1 ffc08a44: 90 1f 00 58 stw r0,88(r31) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); ffc08a48: 7f c4 f3 78 mr r4,r30 ffc08a4c: 38 a5 ad 38 addi r5,r5,-21192 ffc08a50: 48 00 1e f1 bl ffc0a940 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08a54: 48 00 18 f9 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc08a58: 80 01 00 14 lwz r0,20(r1) ffc08a5c: 83 c1 00 08 lwz r30,8(r1) ffc08a60: 7c 08 03 a6 mtlr r0 ffc08a64: 83 e1 00 0c lwz r31,12(r1) ffc08a68: 38 21 00 10 addi r1,r1,16 ffc08a6c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e590 <_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 ) { ffc0e590: 7c 08 02 a6 mflr r0 ffc0e594: 94 21 ff f8 stwu r1,-8(r1) { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; ffc0e598: 3d 20 00 00 lis r9,0 ffc0e59c: 81 29 27 b0 lwz r9,10160(r9) ffc0e5a0: 90 01 00 0c stw r0,12(r1) executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; ffc0e5a4: 38 00 00 00 li r0,0 ffc0e5a8: 90 09 00 34 stw r0,52(r9) <== ALWAYS TAKEN if ( !_CORE_mutex_Is_locked( the_mutex ) ) { ffc0e5ac: 81 63 00 50 lwz r11,80(r3) <== ALWAYS TAKEN ffc0e5b0: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0e5b4: 41 9e 00 bc beq- cr7,ffc0e670 <_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; ffc0e5b8: 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; ffc0e5bc: 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 ) || ffc0e5c0: 2f 8b 00 02 cmpwi cr7,r11,2 <== ALWAYS TAKEN 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; ffc0e5c4: 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; ffc0e5c8: 91 23 00 5c stw r9,92(r3) the_mutex->holder_id = executing->Object.id; ffc0e5cc: 90 03 00 60 stw r0,96(r3) <== ALWAYS TAKEN the_mutex->nest_count = 1; ffc0e5d0: 38 00 00 01 li r0,1 ffc0e5d4: 90 03 00 54 stw r0,84(r3) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc0e5d8: 41 9e 00 0c beq- cr7,ffc0e5e4 <_CORE_mutex_Seize_interrupt_trylock+0x54> ffc0e5dc: 2f 8b 00 03 cmpwi cr7,r11,3 ffc0e5e0: 40 be 00 18 bne+ cr7,ffc0e5f8 <_CORE_mutex_Seize_interrupt_trylock+0x68> #endif executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { ffc0e5e4: 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++; ffc0e5e8: 81 69 00 1c lwz r11,28(r9) <== ALWAYS TAKEN ffc0e5ec: 38 0b 00 01 addi r0,r11,1 <== ALWAYS TAKEN ffc0e5f0: 90 09 00 1c stw r0,28(r9) } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { ffc0e5f4: 41 be 00 08 beq+ cr7,ffc0e5fc <_CORE_mutex_Seize_interrupt_trylock+0x6c> _ISR_Enable( *level_p ); ffc0e5f8: 48 00 00 a8 b ffc0e6a0 <_CORE_mutex_Seize_interrupt_trylock+0x110> <== ALWAYS TAKEN */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; ffc0e5fc: 80 03 00 4c lwz r0,76(r3) current = executing->current_priority; ffc0e600: 81 69 00 14 lwz r11,20(r9) if ( current == ceiling ) { ffc0e604: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0e608: 40 be 00 08 bne+ cr7,ffc0e610 <_CORE_mutex_Seize_interrupt_trylock+0x80> _ISR_Enable( *level_p ); ffc0e60c: 48 00 00 94 b ffc0e6a0 <_CORE_mutex_Seize_interrupt_trylock+0x110> <== ALWAYS TAKEN return 0; } if ( current > ceiling ) { ffc0e610: 7f 8b 00 40 cmplw cr7,r11,r0 ffc0e614: 40 bd 00 34 ble+ cr7,ffc0e648 <_CORE_mutex_Seize_interrupt_trylock+0xb8> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0e618: 3d 20 00 00 lis r9,0 ffc0e61c: 81 69 27 70 lwz r11,10096(r9) ffc0e620: 38 0b 00 01 addi r0,r11,1 ffc0e624: 90 09 27 70 stw r0,10096(r9) ffc0e628: 80 04 00 00 lwz r0,0(r4) ffc0e62c: 7c 00 01 24 mtmsr r0 _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); _Thread_Change_priority( ffc0e630: 80 83 00 4c lwz r4,76(r3) ffc0e634: 38 a0 00 00 li r5,0 ffc0e638: 80 63 00 5c lwz r3,92(r3) ffc0e63c: 4b ff b6 89 bl ffc09cc4 <_Thread_Change_priority> <== ALWAYS TAKEN the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); ffc0e640: 4b ff bd 0d bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0e644: 48 00 00 64 b ffc0e6a8 <_CORE_mutex_Seize_interrupt_trylock+0x118> <== ALWAYS TAKEN return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; ffc0e648: 38 00 00 06 li r0,6 ffc0e64c: 90 09 00 34 stw r0,52(r9) the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ ffc0e650: 38 00 00 00 li r0,0 ffc0e654: 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; ffc0e658: 38 00 00 01 li r0,1 ffc0e65c: 90 03 00 50 stw r0,80(r3) the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ ffc0e660: 81 69 00 1c lwz r11,28(r9) ffc0e664: 38 0b ff ff addi r0,r11,-1 ffc0e668: 90 09 00 1c stw r0,28(r9) _ISR_Enable( *level_p ); ffc0e66c: 48 00 00 34 b ffc0e6a0 <_CORE_mutex_Seize_interrupt_trylock+0x110> <== ALWAYS TAKEN /* * 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 ) ) { ffc0e670: 81 63 00 5c lwz r11,92(r3) ffc0e674: 7f 8b 48 00 cmpw cr7,r11,r9 ffc0e678: 40 be 00 44 bne+ cr7,ffc0e6bc <_CORE_mutex_Seize_interrupt_trylock+0x12c> switch ( the_mutex->Attributes.lock_nesting_behavior ) { ffc0e67c: 80 03 00 40 lwz r0,64(r3) ffc0e680: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e684: 41 9e 00 10 beq- cr7,ffc0e694 <_CORE_mutex_Seize_interrupt_trylock+0x104> ffc0e688: 2f 80 00 01 cmpwi cr7,r0,1 ffc0e68c: 40 be 00 30 bne+ cr7,ffc0e6bc <_CORE_mutex_Seize_interrupt_trylock+0x12c> ffc0e690: 48 00 00 20 b ffc0e6b0 <_CORE_mutex_Seize_interrupt_trylock+0x120> <== ALWAYS TAKEN case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; ffc0e694: 81 23 00 54 lwz r9,84(r3) ffc0e698: 38 09 00 01 addi r0,r9,1 ffc0e69c: 90 03 00 54 stw r0,84(r3) ffc0e6a0: 80 04 00 00 lwz r0,0(r4) <== ALWAYS TAKEN ffc0e6a4: 7c 00 01 24 mtmsr r0 ffc0e6a8: 38 60 00 00 li r3,0 <== ALWAYS TAKEN ffc0e6ac: 48 00 00 14 b ffc0e6c0 <_CORE_mutex_Seize_interrupt_trylock+0x130> <== ALWAYS TAKEN _ISR_Enable( *level_p ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; ffc0e6b0: 38 00 00 02 li r0,2 ffc0e6b4: 90 0b 00 34 stw r0,52(r11) _ISR_Enable( *level_p ); ffc0e6b8: 4b ff ff e8 b ffc0e6a0 <_CORE_mutex_Seize_interrupt_trylock+0x110> <== ALWAYS TAKEN ffc0e6bc: 38 60 00 01 li r3,1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } ffc0e6c0: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0e6c4: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc0e6c8: 7c 08 03 a6 mtlr r0 ffc0e6cc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08b68 <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { ffc08b68: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc08b6c: 7c 08 02 a6 mflr r0 ffc08b70: 90 01 00 14 stw r0,20(r1) * allowed when the mutex in quetion is FIFO or simple Priority * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { ffc08b74: 88 03 00 44 lbz r0,68(r3) #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { ffc08b78: 93 e1 00 0c stw r31,12(r1) ffc08b7c: 7c 7f 1b 78 mr r31,r3 * allowed when the mutex in quetion is FIFO or simple Priority * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { ffc08b80: 2f 80 00 00 cmpwi cr7,r0,0 Thread_Control *the_thread; Thread_Control *holder; #ifdef __RTEMS_STRICT_ORDER_MUTEX__ Chain_Node *first_node; #endif holder = the_mutex->holder; ffc08b84: 81 23 00 5c lwz r9,92(r3) * allowed when the mutex in quetion is FIFO or simple Priority * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. */ if ( the_mutex->Attributes.only_owner_release ) { ffc08b88: 41 9e 00 18 beq- cr7,ffc08ba0 <_CORE_mutex_Surrender+0x38> if ( !_Thread_Is_executing( holder ) ) ffc08b8c: 3d 60 00 00 lis r11,0 ffc08b90: 80 0b 27 b0 lwz r0,10160(r11) ffc08b94: 38 60 00 03 li r3,3 ffc08b98: 7f 89 00 00 cmpw cr7,r9,r0 ffc08b9c: 40 be 01 0c bne+ cr7,ffc08ca8 <_CORE_mutex_Surrender+0x140> return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) ffc08ba0: 81 7f 00 54 lwz r11,84(r31) <== ALWAYS TAKEN ffc08ba4: 2f 8b 00 00 cmpwi cr7,r11,0 ffc08ba8: 41 9e 00 fc beq- cr7,ffc08ca4 <_CORE_mutex_Surrender+0x13c> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; ffc08bac: 38 0b ff ff addi r0,r11,-1 if ( the_mutex->nest_count != 0 ) { ffc08bb0: 2f 80 00 00 cmpwi cr7,r0,0 /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; ffc08bb4: 90 1f 00 54 stw r0,84(r31) <== ALWAYS TAKEN if ( the_mutex->nest_count != 0 ) { ffc08bb8: 40 9e 00 ec bne- cr7,ffc08ca4 <_CORE_mutex_Surrender+0x13c> */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; ffc08bbc: 80 1f 00 48 lwz r0,72(r31) /* * Formally release the mutex before possibly transferring it to a * blocked thread. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc08bc0: 2f 80 00 02 cmpwi cr7,r0,2 ffc08bc4: 41 9e 00 0c beq- cr7,ffc08bd0 <_CORE_mutex_Surrender+0x68> ffc08bc8: 2f 80 00 03 cmpwi cr7,r0,3 ffc08bcc: 40 be 00 10 bne+ cr7,ffc08bdc <_CORE_mutex_Surrender+0x74> the_mutex->nest_count++; return CORE_MUTEX_RELEASE_NOT_ORDER; } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; ffc08bd0: 81 69 00 1c lwz r11,28(r9) ffc08bd4: 38 0b ff ff addi r0,r11,-1 ffc08bd8: 90 09 00 1c stw r0,28(r9) ffc08bdc: 80 1f 00 48 lwz r0,72(r31) } the_mutex->holder = NULL; ffc08be0: 39 60 00 00 li r11,0 <== ALWAYS TAKEN the_mutex->holder_id = 0; ffc08be4: 91 7f 00 60 stw r11,96(r31) /* * Whether or not someone is waiting for the mutex, an * inherited priority must be lowered if this is the last * mutex (i.e. resource) this task has. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc08be8: 2f 80 00 02 cmpwi cr7,r0,2 } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; ffc08bec: 91 7f 00 5c stw r11,92(r31) /* * Whether or not someone is waiting for the mutex, an * inherited priority must be lowered if this is the last * mutex (i.e. resource) this task has. */ if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc08bf0: 41 9e 00 0c beq- cr7,ffc08bfc <_CORE_mutex_Surrender+0x94> ffc08bf4: 2f 80 00 03 cmpwi cr7,r0,3 ffc08bf8: 40 be 00 2c bne+ cr7,ffc08c24 <_CORE_mutex_Surrender+0xbc> _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { #ifdef __RTEMS_STRICT_ORDER_MUTEX__ if(the_mutex->queue.priority_before != holder->current_priority) _Thread_Change_priority(holder,the_mutex->queue.priority_before,true); #endif if ( holder->resource_count == 0 && ffc08bfc: 80 09 00 1c lwz r0,28(r9) ffc08c00: 2f 80 00 00 cmpwi cr7,r0,0 ffc08c04: 40 9e 00 20 bne- cr7,ffc08c24 <_CORE_mutex_Surrender+0xbc> holder->real_priority != holder->current_priority ) { ffc08c08: 80 89 00 18 lwz r4,24(r9) ffc08c0c: 80 09 00 14 lwz r0,20(r9) ffc08c10: 7f 84 00 00 cmpw cr7,r4,r0 ffc08c14: 41 9e 00 10 beq- cr7,ffc08c24 <_CORE_mutex_Surrender+0xbc> _Thread_Change_priority( holder, holder->real_priority, true ); ffc08c18: 7d 23 4b 78 mr r3,r9 ffc08c1c: 38 a0 00 01 li r5,1 ffc08c20: 48 00 10 a5 bl ffc09cc4 <_Thread_Change_priority> <== ALWAYS TAKEN /* * Now we check if another thread was waiting for this mutex. If so, * transfer the mutex to that thread. */ if ( ( the_thread = _Thread_queue_Dequeue( &the_mutex->Wait_queue ) ) ) { ffc08c24: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc08c28: 48 00 1b 5d bl ffc0a784 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc08c2c: 7c 69 1b 79 mr. r9,r3 ffc08c30: 41 82 00 6c beq- ffc08c9c <_CORE_mutex_Surrender+0x134> the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { ffc08c34: 80 1f 00 48 lwz r0,72(r31) } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; ffc08c38: 81 69 00 08 lwz r11,8(r9) the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { ffc08c3c: 2f 80 00 02 cmpwi cr7,r0,2 } else #endif { the_mutex->holder = the_thread; ffc08c40: 91 3f 00 5c stw r9,92(r31) the_mutex->holder_id = the_thread->Object.id; ffc08c44: 91 7f 00 60 stw r11,96(r31) the_mutex->nest_count = 1; ffc08c48: 39 60 00 01 li r11,1 ffc08c4c: 91 7f 00 54 stw r11,84(r31) switch ( the_mutex->Attributes.discipline ) { ffc08c50: 41 9e 00 10 beq- cr7,ffc08c60 <_CORE_mutex_Surrender+0xf8> ffc08c54: 2f 80 00 03 cmpwi cr7,r0,3 ffc08c58: 40 be 00 4c bne+ cr7,ffc08ca4 <_CORE_mutex_Surrender+0x13c> ffc08c5c: 48 00 00 18 b ffc08c74 <_CORE_mutex_Surrender+0x10c> <== ALWAYS TAKEN case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: #ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; ffc08c60: 81 69 00 1c lwz r11,28(r9) ffc08c64: 38 60 00 00 li r3,0 ffc08c68: 38 0b 00 01 addi r0,r11,1 ffc08c6c: 90 09 00 1c stw r0,28(r9) break; ffc08c70: 48 00 00 38 b ffc08ca8 <_CORE_mutex_Surrender+0x140> <== ALWAYS TAKEN case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: #ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; ffc08c74: 81 69 00 1c lwz r11,28(r9) if (the_mutex->Attributes.priority_ceiling < the_thread->current_priority){ ffc08c78: 80 09 00 14 lwz r0,20(r9) case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING: #ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; ffc08c7c: 39 6b 00 01 addi r11,r11,1 ffc08c80: 91 69 00 1c stw r11,28(r9) if (the_mutex->Attributes.priority_ceiling < ffc08c84: 80 9f 00 4c lwz r4,76(r31) the_thread->current_priority){ ffc08c88: 7f 84 00 40 cmplw cr7,r4,r0 ffc08c8c: 40 bc 00 18 bge+ cr7,ffc08ca4 <_CORE_mutex_Surrender+0x13c> _Thread_Change_priority( ffc08c90: 38 a0 00 00 li r5,0 ffc08c94: 48 00 10 31 bl ffc09cc4 <_Thread_Change_priority> <== ALWAYS TAKEN ffc08c98: 48 00 00 0c b ffc08ca4 <_CORE_mutex_Surrender+0x13c> <== ALWAYS TAKEN } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; ffc08c9c: 38 00 00 01 li r0,1 ffc08ca0: 90 1f 00 50 stw r0,80(r31) ffc08ca4: 38 60 00 00 li r3,0 return CORE_MUTEX_STATUS_SUCCESSFUL; } ffc08ca8: 80 01 00 14 lwz r0,20(r1) ffc08cac: 83 e1 00 0c lwz r31,12(r1) ffc08cb0: 38 21 00 10 addi r1,r1,16 ffc08cb4: 7c 08 03 a6 mtlr r0 ffc08cb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cbc <_CORE_semaphore_Flush>: void _CORE_semaphore_Flush( CORE_semaphore_Control *the_semaphore, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { ffc08cbc: 94 21 ff f8 stwu r1,-8(r1) ffc08cc0: 7c 08 02 a6 mflr r0 ffc08cc4: 90 01 00 0c stw r0,12(r1) _Thread_queue_Flush( ffc08cc8: 48 00 1f 41 bl ffc0ac08 <_Thread_queue_Flush> <== ALWAYS TAKEN &the_semaphore->Wait_queue, remote_extract_callout, status ); } ffc08ccc: 80 01 00 0c lwz r0,12(r1) ffc08cd0: 38 21 00 08 addi r1,r1,8 ffc08cd4: 7c 08 03 a6 mtlr r0 ffc08cd8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cdc <_CORE_semaphore_Initialize>: void _CORE_semaphore_Initialize( CORE_semaphore_Control *the_semaphore, CORE_semaphore_Attributes *the_semaphore_attributes, uint32_t initial_value ) { ffc08cdc: 94 21 ff f8 stwu r1,-8(r1) ffc08ce0: 7c 08 02 a6 mflr r0 the_semaphore->Attributes = *the_semaphore_attributes; the_semaphore->count = initial_value; _Thread_queue_Initialize( ffc08ce4: 38 c0 00 03 li r6,3 void _CORE_semaphore_Initialize( CORE_semaphore_Control *the_semaphore, CORE_semaphore_Attributes *the_semaphore_attributes, uint32_t initial_value ) { ffc08ce8: 90 01 00 0c stw r0,12(r1) the_semaphore->Attributes = *the_semaphore_attributes; ffc08cec: 81 64 00 00 lwz r11,0(r4) ffc08cf0: 81 84 00 04 lwz r12,4(r4) ffc08cf4: 91 63 00 40 stw r11,64(r3) ffc08cf8: 91 83 00 44 stw r12,68(r3) the_semaphore->count = initial_value; _Thread_queue_Initialize( ffc08cfc: 80 84 00 04 lwz r4,4(r4) uint32_t initial_value ) { the_semaphore->Attributes = *the_semaphore_attributes; the_semaphore->count = initial_value; ffc08d00: 90 a3 00 48 stw r5,72(r3) _Thread_queue_Initialize( ffc08d04: 38 a0 02 00 li r5,512 <== ALWAYS TAKEN ffc08d08: 68 84 00 01 xori r4,r4,1 ffc08d0c: 7c 84 00 34 cntlzw r4,r4 ffc08d10: 54 84 d9 7e rlwinm r4,r4,27,5,31 ffc08d14: 48 00 1f 41 bl ffc0ac54 <_Thread_queue_Initialize> <== ALWAYS TAKEN _CORE_semaphore_Is_priority( the_semaphore_attributes ) ? THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_SEMAPHORE, CORE_SEMAPHORE_TIMEOUT ); } ffc08d18: 80 01 00 0c lwz r0,12(r1) ffc08d1c: 38 21 00 08 addi r1,r1,8 ffc08d20: 7c 08 03 a6 mtlr r0 ffc08d24: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12da0 <_CORE_semaphore_Seize>: CORE_semaphore_Control *the_semaphore, Objects_Id id, bool wait, Watchdog_Interval timeout ) { ffc12da0: 94 21 ff f8 stwu r1,-8(r1) ffc12da4: 7c 08 02 a6 mflr r0 Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; ffc12da8: 3d 20 00 00 lis r9,0 ffc12dac: 81 29 27 d0 lwz r9,10192(r9) CORE_semaphore_Control *the_semaphore, Objects_Id id, bool wait, Watchdog_Interval timeout ) { ffc12db0: 90 01 00 0c stw r0,12(r1) Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; ffc12db4: 38 00 00 00 li r0,0 ffc12db8: 90 09 00 34 stw r0,52(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc12dbc: 7d 60 00 a6 mfmsr r11 ffc12dc0: 7d 50 42 a6 mfsprg r10,0 ffc12dc4: 7d 6a 50 78 andc r10,r11,r10 ffc12dc8: 7d 40 01 24 mtmsr r10 _ISR_Disable( level ); if ( the_semaphore->count != 0 ) { ffc12dcc: 81 43 00 48 lwz r10,72(r3) ffc12dd0: 2f 8a 00 00 cmpwi cr7,r10,0 ffc12dd4: 41 be 00 14 beq+ cr7,ffc12de8 <_CORE_semaphore_Seize+0x48> the_semaphore->count -= 1; ffc12dd8: 39 4a ff ff addi r10,r10,-1 ffc12ddc: 91 43 00 48 stw r10,72(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc12de0: 7d 60 01 24 mtmsr r11 ffc12de4: 48 00 00 40 b ffc12e24 <_CORE_semaphore_Seize+0x84> <== ALWAYS TAKEN /* * If the semaphore was not available and the caller was not willing * to block, then return immediately with a status indicating that * the semaphore was not available and the caller never blocked. */ if ( !wait ) { ffc12de8: 2f 85 00 00 cmpwi cr7,r5,0 ffc12dec: 40 9e 00 14 bne- cr7,ffc12e00 <_CORE_semaphore_Seize+0x60> ffc12df0: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; ffc12df4: 38 00 00 01 li r0,1 ffc12df8: 90 09 00 34 stw r0,52(r9) return; ffc12dfc: 48 00 00 28 b ffc12e24 <_CORE_semaphore_Seize+0x84> <== ALWAYS TAKEN ffc12e00: 38 00 00 01 li r0,1 * If the semaphore is not available and the caller is willing to * block, then we now block the caller with optional timeout. */ _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; executing->Wait.id = id; ffc12e04: 90 89 00 20 stw r4,32(r9) ffc12e08: 90 03 00 30 stw r0,48(r3) /* * If the semaphore is not available and the caller is willing to * block, then we now block the caller with optional timeout. */ _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; ffc12e0c: 90 69 00 44 stw r3,68(r9) ffc12e10: 7d 60 01 24 mtmsr r11 executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); ffc12e14: 3c a0 ff c1 lis r5,-63 ffc12e18: 7c c4 33 78 mr r4,r6 ffc12e1c: 38 a5 ec d4 addi r5,r5,-4908 ffc12e20: 4b ff ba bd bl ffc0e8dc <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN } ffc12e24: 80 01 00 0c lwz r0,12(r1) ffc12e28: 38 21 00 08 addi r1,r1,8 ffc12e2c: 7c 08 03 a6 mtlr r0 ffc12e30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d28 <_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 ) { ffc08d28: 94 21 ff f0 stwu r1,-16(r1) ffc08d2c: 7c 08 02 a6 mflr r0 ffc08d30: 93 e1 00 0c stw r31,12(r1) ffc08d34: 7c 7f 1b 78 mr r31,r3 ffc08d38: 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)) ) { ffc08d3c: 48 00 1a 49 bl ffc0a784 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc08d40: 2f 83 00 00 cmpwi cr7,r3,0 ffc08d44: 38 60 00 00 li r3,0 ffc08d48: 40 be 00 38 bne+ cr7,ffc08d80 <_CORE_semaphore_Surrender+0x58> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08d4c: 7c 00 00 a6 mfmsr r0 ffc08d50: 7d 30 42 a6 mfsprg r9,0 ffc08d54: 7c 09 48 78 andc r9,r0,r9 ffc08d58: 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 ) ffc08d5c: 81 3f 00 48 lwz r9,72(r31) ffc08d60: 38 60 00 04 li r3,4 ffc08d64: 81 7f 00 40 lwz r11,64(r31) ffc08d68: 7f 89 58 40 cmplw cr7,r9,r11 ffc08d6c: 40 9c 00 10 bge- cr7,ffc08d7c <_CORE_semaphore_Surrender+0x54> <== NEVER TAKEN the_semaphore->count += 1; ffc08d70: 39 29 00 01 addi r9,r9,1 ffc08d74: 91 3f 00 48 stw r9,72(r31) ffc08d78: 38 60 00 00 li r3,0 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc08d7c: 7c 00 01 24 mtmsr r0 status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } ffc08d80: 80 01 00 14 lwz r0,20(r1) ffc08d84: 83 e1 00 0c lwz r31,12(r1) ffc08d88: 38 21 00 10 addi r1,r1,16 ffc08d8c: 7c 08 03 a6 mtlr r0 ffc08d90: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09aec <_CORE_spinlock_Initialize>: CORE_spinlock_Control *the_spinlock, CORE_spinlock_Attributes *the_spinlock_attributes ) { the_spinlock->Attributes = *the_spinlock_attributes; ffc09aec: 80 04 00 00 lwz r0,0(r4) the_spinlock->lock = 0; ffc09af0: 39 20 00 00 li r9,0 ffc09af4: 91 23 00 04 stw r9,4(r3) CORE_spinlock_Control *the_spinlock, CORE_spinlock_Attributes *the_spinlock_attributes ) { the_spinlock->Attributes = *the_spinlock_attributes; ffc09af8: 90 03 00 00 stw r0,0(r3) the_spinlock->lock = 0; the_spinlock->users = 0; ffc09afc: 91 23 00 08 stw r9,8(r3) the_spinlock->holder = 0; ffc09b00: 91 23 00 0c stw r9,12(r3) } ffc09b04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09b08 <_CORE_spinlock_Release>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09b08: 7c 00 00 a6 mfmsr r0 ffc09b0c: 7d 30 42 a6 mfsprg r9,0 ffc09b10: 7c 09 48 78 andc r9,r0,r9 ffc09b14: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); /* * It must locked before it can be unlocked. */ if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) { ffc09b18: 81 23 00 04 lwz r9,4(r3) ffc09b1c: 2f 89 00 00 cmpwi cr7,r9,0 ffc09b20: 40 9e 00 10 bne- cr7,ffc09b30 <_CORE_spinlock_Release+0x28> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09b24: 7c 00 01 24 mtmsr r0 ffc09b28: 38 60 00 06 li r3,6 _ISR_Enable( level ); return CORE_SPINLOCK_NOT_LOCKED; ffc09b2c: 4e 80 00 20 blr <== ALWAYS TAKEN } /* * It must locked by the current thread before it can be unlocked. */ if ( the_spinlock->holder != _Thread_Executing->Object.id ) { ffc09b30: 3d 20 00 00 lis r9,0 ffc09b34: 81 63 00 0c lwz r11,12(r3) ffc09b38: 81 29 27 f8 lwz r9,10232(r9) ffc09b3c: 81 29 00 08 lwz r9,8(r9) ffc09b40: 7f 8b 48 00 cmpw cr7,r11,r9 ffc09b44: 41 9e 00 10 beq- cr7,ffc09b54 <_CORE_spinlock_Release+0x4c> ffc09b48: 7c 00 01 24 mtmsr r0 ffc09b4c: 38 60 00 02 li r3,2 _ISR_Enable( level ); return CORE_SPINLOCK_NOT_HOLDER; ffc09b50: 4e 80 00 20 blr <== ALWAYS TAKEN } /* * Let it be unlocked. */ the_spinlock->users -= 1; ffc09b54: 81 63 00 08 lwz r11,8(r3) the_spinlock->lock = CORE_SPINLOCK_UNLOCKED; ffc09b58: 39 20 00 00 li r9,0 } /* * Let it be unlocked. */ the_spinlock->users -= 1; ffc09b5c: 39 6b ff ff addi r11,r11,-1 ffc09b60: 91 63 00 08 stw r11,8(r3) the_spinlock->lock = CORE_SPINLOCK_UNLOCKED; ffc09b64: 91 23 00 04 stw r9,4(r3) the_spinlock->holder = 0; ffc09b68: 91 23 00 0c stw r9,12(r3) ffc09b6c: 7c 00 01 24 mtmsr r0 ffc09b70: 38 60 00 00 li r3,0 _ISR_Enable( level ); return CORE_SPINLOCK_SUCCESSFUL; } ffc09b74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09b78 <_CORE_spinlock_Wait>: CORE_spinlock_Status _CORE_spinlock_Wait( CORE_spinlock_Control *the_spinlock, bool wait, Watchdog_Interval timeout ) { ffc09b78: 94 21 ff e8 stwu r1,-24(r1) ffc09b7c: 7c 08 02 a6 mflr r0 ffc09b80: 7d 80 00 26 mfcr r12 ffc09b84: 90 01 00 1c stw r0,28(r1) ffc09b88: 93 e1 00 14 stw r31,20(r1) ffc09b8c: 7c 7f 1b 78 mr r31,r3 ffc09b90: 93 c1 00 10 stw r30,16(r1) ffc09b94: 91 81 00 0c stw r12,12(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09b98: 7c 00 00 a6 mfmsr r0 ffc09b9c: 7d 30 42 a6 mfsprg r9,0 ffc09ba0: 7c 09 48 78 andc r9,r0,r9 ffc09ba4: 7d 20 01 24 mtmsr r9 #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout; #endif _ISR_Disable( level ); if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) && ffc09ba8: 81 23 00 04 lwz r9,4(r3) ffc09bac: 2f 89 00 01 cmpwi cr7,r9,1 ffc09bb0: 40 be 00 28 bne+ cr7,ffc09bd8 <_CORE_spinlock_Wait+0x60> (the_spinlock->holder == _Thread_Executing->Object.id) ) { ffc09bb4: 3d 20 00 00 lis r9,0 ffc09bb8: 81 63 00 0c lwz r11,12(r3) ffc09bbc: 81 29 27 f8 lwz r9,10232(r9) ffc09bc0: 81 29 00 08 lwz r9,8(r9) ffc09bc4: 7f 8b 48 00 cmpw cr7,r11,r9 ffc09bc8: 40 be 00 10 bne+ cr7,ffc09bd8 <_CORE_spinlock_Wait+0x60> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09bcc: 7c 00 01 24 mtmsr r0 ffc09bd0: 38 60 00 01 li r3,1 _ISR_Enable( level ); return CORE_SPINLOCK_HOLDER_RELOCKING; ffc09bd4: 48 00 00 90 b ffc09c64 <_CORE_spinlock_Wait+0xec> <== ALWAYS TAKEN } the_spinlock->users += 1; ffc09bd8: 81 3f 00 08 lwz r9,8(r31) } /* * Spinlock is unavailable. If not willing to wait, return. */ if ( !wait ) { ffc09bdc: 2e 04 00 00 cmpwi cr4,r4,0 ffc09be0: 3f c0 00 00 lis r30,0 if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) && (the_spinlock->holder == _Thread_Executing->Object.id) ) { _ISR_Enable( level ); return CORE_SPINLOCK_HOLDER_RELOCKING; } the_spinlock->users += 1; ffc09be4: 39 29 00 01 addi r9,r9,1 ffc09be8: 91 3f 00 08 stw r9,8(r31) ffc09bec: 3b de 27 b8 addi r30,r30,10168 for ( ;; ) { if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) { ffc09bf0: 81 3f 00 04 lwz r9,4(r31) ffc09bf4: 2f 89 00 00 cmpwi cr7,r9,0 ffc09bf8: 40 be 00 28 bne+ cr7,ffc09c20 <_CORE_spinlock_Wait+0xa8> the_spinlock->lock = CORE_SPINLOCK_LOCKED; ffc09bfc: 39 20 00 01 li r9,1 ffc09c00: 91 3f 00 04 stw r9,4(r31) the_spinlock->holder = _Thread_Executing->Object.id; ffc09c04: 3d 20 00 00 lis r9,0 ffc09c08: 81 29 27 f8 lwz r9,10232(r9) ffc09c0c: 81 29 00 08 lwz r9,8(r9) ffc09c10: 91 3f 00 0c stw r9,12(r31) ffc09c14: 7c 00 01 24 mtmsr r0 ffc09c18: 38 60 00 00 li r3,0 _ISR_Enable( level ); return CORE_SPINLOCK_SUCCESSFUL; ffc09c1c: 48 00 00 48 b ffc09c64 <_CORE_spinlock_Wait+0xec> <== ALWAYS TAKEN } /* * Spinlock is unavailable. If not willing to wait, return. */ if ( !wait ) { ffc09c20: 40 b2 00 1c bne+ cr4,ffc09c3c <_CORE_spinlock_Wait+0xc4> the_spinlock->users -= 1; ffc09c24: 81 3f 00 08 lwz r9,8(r31) ffc09c28: 39 29 ff ff addi r9,r9,-1 ffc09c2c: 91 3f 00 08 stw r9,8(r31) ffc09c30: 7c 00 01 24 mtmsr r0 ffc09c34: 38 60 00 05 li r3,5 _ISR_Enable( level ); return CORE_SPINLOCK_UNAVAILABLE; ffc09c38: 48 00 00 2c b ffc09c64 <_CORE_spinlock_Wait+0xec> <== ALWAYS TAKEN ffc09c3c: 7c 00 01 24 mtmsr r0 */ _ISR_Enable( level ); /* An ISR could occur here */ _Thread_Enable_dispatch(); ffc09c40: 48 00 15 fd bl ffc0b23c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09c44: 81 3e 00 00 lwz r9,0(r30) ffc09c48: 38 09 00 01 addi r0,r9,1 ffc09c4c: 90 1e 00 00 stw r0,0(r30) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09c50: 7c 00 00 a6 mfmsr r0 ffc09c54: 7d 30 42 a6 mfsprg r9,0 ffc09c58: 7c 09 48 78 andc r9,r0,r9 ffc09c5c: 7d 20 01 24 mtmsr r9 /* Reenter the critical sections so we can attempt the lock again. */ _Thread_Disable_dispatch(); _ISR_Disable( level ); } ffc09c60: 4b ff ff 90 b ffc09bf0 <_CORE_spinlock_Wait+0x78> <== ALWAYS TAKEN } ffc09c64: 80 01 00 1c lwz r0,28(r1) ffc09c68: 81 81 00 0c lwz r12,12(r1) ffc09c6c: 7c 08 03 a6 mtlr r0 ffc09c70: 83 c1 00 10 lwz r30,16(r1) ffc09c74: 83 e1 00 14 lwz r31,20(r1) ffc09c78: 7d 80 81 20 mtcrf 8,r12 ffc09c7c: 38 21 00 18 addi r1,r1,24 ffc09c80: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08888 <_Chain_Append>: ffc08888: 7c 00 00 a6 mfmsr r0 ffc0888c: 7d 30 42 a6 mfsprg r9,0 ffc08890: 7c 09 48 78 andc r9,r0,r9 <== ALWAYS TAKEN ffc08894: 7d 20 01 24 mtmsr r9 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc08898: 39 23 00 04 addi r9,r3,4 <== ALWAYS TAKEN ffc0889c: 91 24 00 00 stw r9,0(r4) old_last_node = the_chain->last; ffc088a0: 81 23 00 08 lwz r9,8(r3) the_chain->last = the_node; ffc088a4: 90 83 00 08 stw r4,8(r3) old_last_node->next = the_node; the_node->previous = old_last_node; ffc088a8: 91 24 00 04 stw r9,4(r4) 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; ffc088ac: 90 89 00 00 stw r4,0(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc088b0: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); _Chain_Append_unprotected( the_chain, node ); _ISR_Enable( level ); } ffc088b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e52c <_Chain_Extract>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e52c: 7c 00 00 a6 mfmsr r0 ffc0e530: 7d 30 42 a6 mfsprg r9,0 ffc0e534: 7c 09 48 78 andc r9,r0,r9 ffc0e538: 7d 20 01 24 mtmsr r9 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0e53c: 81 63 00 04 lwz r11,4(r3) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0e540: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; next->previous = previous; previous->next = next; ffc0e544: 91 2b 00 00 stw r9,0(r11) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc0e548: 91 69 00 04 stw r11,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e54c: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); _Chain_Extract_unprotected( node ); _ISR_Enable( level ); } ffc0e550: 4e 80 00 20 blr <== ALWAYS TAKEN ffc088b8 <_Chain_Get>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc088b8: 7c 00 00 a6 mfmsr r0 <== ALWAYS TAKEN ffc088bc: 7d 30 42 a6 mfsprg r9,0 ffc088c0: 7c 09 48 78 andc r9,r0,r9 <== ALWAYS TAKEN ffc088c4: 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)); ffc088c8: 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; ffc088cc: 39 63 00 04 addi r11,r3,4 ffc088d0: 7f 89 58 00 cmpw cr7,r9,r11 <== ALWAYS TAKEN ffc088d4: 40 be 00 0c bne+ cr7,ffc088e0 <_Chain_Get+0x28> ffc088d8: 39 20 00 00 li r9,0 ffc088dc: 48 00 00 10 b ffc088ec <_Chain_Get+0x34> <== ALWAYS TAKEN { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc088e0: 81 69 00 00 lwz r11,0(r9) the_chain->first = new_first; ffc088e4: 91 63 00 00 stw r11,0(r3) new_first->previous = _Chain_Head(the_chain); ffc088e8: 90 6b 00 04 stw r3,4(r11) <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc088ec: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); if ( !_Chain_Is_empty( the_chain ) ) return_node = _Chain_Get_first_unprotected( the_chain ); _ISR_Enable( level ); return return_node; } ffc088f0: 7d 23 4b 78 mr r3,r9 ffc088f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e554 <_Chain_Initialize>: Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; ffc0e554: 38 00 00 00 li r0,0 next = starting_address; ffc0e558: 38 a5 00 01 addi r5,r5,1 <== ALWAYS TAKEN Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; ffc0e55c: 90 03 00 04 stw r0,4(r3) <== ALWAYS TAKEN next = starting_address; ffc0e560: 7c a9 03 a6 mtctr r5 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; ffc0e564: 7c 69 1b 78 mr r9,r3 while ( count-- ) { ffc0e568: 48 00 00 14 b ffc0e57c <_Chain_Initialize+0x28> <== ALWAYS TAKEN current->next = next; next->previous = current; ffc0e56c: 91 24 00 04 stw r9,4(r4) count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { current->next = next; ffc0e570: 90 89 00 00 stw r4,0(r9) next->previous = current; current = next; next = (Chain_Node *) ffc0e574: 7c 89 23 78 mr r9,r4 ffc0e578: 7c 84 32 14 add r4,r4,r6 count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { ffc0e57c: 42 00 ff f0 bdnz+ ffc0e56c <_Chain_Initialize+0x18> next->previous = current; current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain ); ffc0e580: 38 03 00 04 addi r0,r3,4 ffc0e584: 90 09 00 00 stw r0,0(r9) the_chain->last = current; ffc0e588: 91 23 00 08 stw r9,8(r3) } ffc0e58c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc146b8 <_Chain_Insert>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc146b8: 7c 00 00 a6 mfmsr r0 ffc146bc: 7d 30 42 a6 mfsprg r9,0 ffc146c0: 7c 09 48 78 andc r9,r0,r9 ffc146c4: 7d 20 01 24 mtmsr r9 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc146c8: 81 23 00 00 lwz r9,0(r3) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc146cc: 90 64 00 04 stw r3,4(r4) before_node = after_node->next; after_node->next = the_node; ffc146d0: 90 83 00 00 stw r4,0(r3) the_node->next = before_node; before_node->previous = the_node; ffc146d4: 90 89 00 04 stw r4,4(r9) Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; ffc146d8: 91 24 00 00 stw r9,0(r4) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc146dc: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); } ffc146e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e47c <_Debug_Manager_initialization>: */ void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { _Debug_Level &= ~to_be_disabled; ffc0e47c: 38 00 00 00 li r0,0 ffc0e480: 3d 20 00 00 lis r9,0 ffc0e484: 90 09 27 b4 stw r0,10164(r9) * _Debug_Manager_initialization */ void _Debug_Manager_initialization( void ) { rtems_debug_disable( RTEMS_DEBUG_ALL_MASK ); } ffc0e488: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0df48 <_Dual_ported_memory_Manager_initialization>: * Output parameters: NONE */ void _Dual_ported_memory_Manager_initialization(void) { _Objects_Initialize_information( ffc0df48: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _Dual_ported_memory_Manager_initialization(void) { ffc0df4c: 94 21 ff f8 stwu r1,-8(r1) ffc0df50: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0df54: 3c 60 00 00 lis r3,0 ffc0df58: 80 c9 20 8c lwz r6,8332(r9) <== ALWAYS TAKEN ffc0df5c: 38 63 35 8c addi r3,r3,13708 ffc0df60: 38 80 00 02 li r4,2 <== ALWAYS TAKEN * * Output parameters: NONE */ void _Dual_ported_memory_Manager_initialization(void) { ffc0df64: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0df68: 38 a0 00 07 li r5,7 ffc0df6c: 38 e0 00 1c li r7,28 ffc0df70: 39 00 00 00 li r8,0 ffc0df74: 39 20 00 04 li r9,4 ffc0df78: 4b ff b9 55 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0df7c: 80 01 00 0c lwz r0,12(r1) ffc0df80: 38 21 00 08 addi r1,r1,8 ffc0df84: 7c 08 03 a6 mtlr r0 ffc0df88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0df8c <_Event_Manager_initialization>: * This routine performs the initialization necessary for this manager. */ void _Event_Manager_initialization( void ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0df8c: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc0df90: 3d 20 00 00 lis r9,0 ffc0df94: 90 09 27 e8 stw r0,10216(r9) */ #if defined(RTEMS_MULTIPROCESSING) _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); #endif } ffc0df98: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07574 <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07574: 94 21 ff f0 stwu r1,-16(r1) ffc07578: 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; ffc0757c: 3d 20 00 00 lis r9,0 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07580: 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; ffc07584: 83 e9 27 b0 lwz r31,10160(r9) rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07588: 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; ffc0758c: 38 00 00 00 li r0,0 ffc07590: 90 1f 00 34 stw r0,52(r31) api = executing->API_Extensions[ THREAD_API_RTEMS ]; ffc07594: 81 5f 01 44 lwz r10,324(r31) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07598: 7d 20 00 a6 mfmsr r9 ffc0759c: 7c 10 42 a6 mfsprg r0,0 ffc075a0: 7d 20 00 78 andc r0,r9,r0 ffc075a4: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); pending_events = api->pending_events; ffc075a8: 81 6a 00 00 lwz r11,0(r10) seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && ffc075ac: 7c 60 58 39 and. r0,r3,r11 ffc075b0: 41 82 00 24 beq- ffc075d4 <_Event_Seize+0x60> ffc075b4: 7f 80 18 00 cmpw cr7,r0,r3 ffc075b8: 41 9e 00 0c beq- cr7,ffc075c4 <_Event_Seize+0x50> ffc075bc: 70 88 00 02 andi. r8,r4,2 ffc075c0: 41 a2 00 14 beq+ ffc075d4 <_Event_Seize+0x60> <== NEVER TAKEN (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = ffc075c4: 7d 6b 00 78 andc r11,r11,r0 ffc075c8: 91 6a 00 00 stw r11,0(r10) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc075cc: 7d 20 01 24 mtmsr r9 ffc075d0: 48 00 00 18 b ffc075e8 <_Event_Seize+0x74> <== ALWAYS TAKEN _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { ffc075d4: 70 8b 00 01 andi. r11,r4,1 ffc075d8: 41 a2 00 18 beq+ ffc075f0 <_Event_Seize+0x7c> ffc075dc: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; ffc075e0: 39 20 00 0d li r9,13 ffc075e4: 91 3f 00 34 stw r9,52(r31) *event_out = seized_events; ffc075e8: 90 06 00 00 stw r0,0(r6) return; ffc075ec: 48 00 00 a0 b ffc0768c <_Event_Seize+0x118> <== ALWAYS TAKEN */ 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; ffc075f0: 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; ffc075f4: 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; ffc075f8: 3d 60 00 00 lis r11,0 ffc075fc: 90 0b 27 e8 stw r0,10216(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; ffc07600: 90 7f 00 24 stw r3,36(r31) executing->Wait.return_argument = event_out; ffc07604: 90 df 00 28 stw r6,40(r31) ffc07608: 7d 20 01 24 mtmsr r9 _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { ffc0760c: 2f 85 00 00 cmpwi cr7,r5,0 ffc07610: 41 be 00 38 beq+ cr7,ffc07648 <_Event_Seize+0xd4> _Watchdog_Initialize( ffc07614: 81 3f 00 08 lwz r9,8(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc07618: 3d 60 ff c0 lis r11,-64 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0761c: 38 00 00 00 li r0,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc07620: 90 bf 00 54 stw r5,84(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc07624: 39 6b 78 5c addi r11,r11,30812 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07628: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0762c: 91 7f 00 64 stw r11,100(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07630: 38 63 2d 48 addi r3,r3,11592 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc07634: 91 3f 00 68 stw r9,104(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07638: 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; ffc0763c: 90 1f 00 6c stw r0,108(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc07640: 90 1f 00 50 stw r0,80(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07644: 48 00 42 7d bl ffc0b8c0 <_Watchdog_Insert> <== ALWAYS TAKEN NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); ffc07648: 7f e3 fb 78 mr r3,r31 ffc0764c: 38 80 01 00 li r4,256 ffc07650: 48 00 37 89 bl ffc0add8 <_Thread_Set_state> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07654: 7c a0 00 a6 mfmsr r5 ffc07658: 7c 10 42 a6 mfsprg r0,0 ffc0765c: 7c a0 00 78 andc r0,r5,r0 ffc07660: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); sync_state = _Event_Sync_state; ffc07664: 3d 20 00 00 lis r9,0 ffc07668: 80 69 27 e8 lwz r3,10216(r9) _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0766c: 38 00 00 00 li r0,0 ffc07670: 90 09 27 e8 stw r0,10216(r9) if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { ffc07674: 2f 83 00 01 cmpwi cr7,r3,1 ffc07678: 40 be 00 0c bne+ cr7,ffc07684 <_Event_Seize+0x110> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0767c: 7c a0 01 24 mtmsr r5 ffc07680: 48 00 00 0c b ffc0768c <_Event_Seize+0x118> <== ALWAYS TAKEN * 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 ); ffc07684: 7f e4 fb 78 mr r4,r31 ffc07688: 48 00 25 d5 bl ffc09c5c <_Thread_blocking_operation_Cancel> <== ALWAYS TAKEN } ffc0768c: 80 01 00 14 lwz r0,20(r1) ffc07690: 83 e1 00 0c lwz r31,12(r1) ffc07694: 38 21 00 10 addi r1,r1,16 ffc07698: 7c 08 03 a6 mtlr r0 ffc0769c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07714 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { ffc07714: 94 21 ff f0 stwu r1,-16(r1) ffc07718: 7c 08 02 a6 mflr r0 ffc0771c: 90 01 00 14 stw r0,20(r1) ffc07720: 93 e1 00 0c stw r31,12(r1) ffc07724: 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 ]; ffc07728: 81 03 01 44 lwz r8,324(r3) option_set = (rtems_option) the_thread->Wait.option; ffc0772c: 80 e3 00 30 lwz r7,48(r3) <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07730: 7c 00 00 a6 mfmsr r0 ffc07734: 7d 30 42 a6 mfsprg r9,0 ffc07738: 7c 09 48 78 andc r9,r0,r9 ffc0773c: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); pending_events = api->pending_events; ffc07740: 81 68 00 00 lwz r11,0(r8) event_condition = (rtems_event_set) the_thread->Wait.count; ffc07744: 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 ) ) { ffc07748: 7d 49 58 39 and. r9,r10,r11 ffc0774c: 40 a2 00 08 bne+ ffc07754 <_Event_Surrender+0x40> _ISR_Enable( level ); ffc07750: 48 00 00 f4 b ffc07844 <_Event_Surrender+0x130> <== ALWAYS TAKEN /* * 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() && ffc07754: 3c c0 00 00 lis r6,0 ffc07758: 80 c6 27 98 lwz r6,10136(r6) ffc0775c: 2f 86 00 00 cmpwi cr7,r6,0 ffc07760: 41 9e 00 68 beq- cr7,ffc077c8 <_Event_Surrender+0xb4> ffc07764: 3c c0 00 00 lis r6,0 ffc07768: 80 c6 27 b0 lwz r6,10160(r6) ffc0776c: 7f 83 30 00 cmpw cr7,r3,r6 ffc07770: 40 be 00 58 bne+ cr7,ffc077c8 <_Event_Surrender+0xb4> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || ffc07774: 3c c0 00 00 lis r6,0 ffc07778: 80 a6 27 e8 lwz r5,10216(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() && ffc0777c: 2f 85 00 02 cmpwi cr7,r5,2 ffc07780: 41 9e 00 10 beq- cr7,ffc07790 <_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)) ) { ffc07784: 80 c6 27 e8 lwz r6,10216(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() && ffc07788: 2f 86 00 01 cmpwi cr7,r6,1 ffc0778c: 40 be 00 3c bne+ cr7,ffc077c8 <_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) ) { ffc07790: 7f 89 50 00 cmpw cr7,r9,r10 ffc07794: 41 9e 00 0c beq- cr7,ffc077a0 <_Event_Surrender+0x8c> ffc07798: 70 e5 00 02 andi. r5,r7,2 ffc0779c: 41 82 00 28 beq- ffc077c4 <_Event_Surrender+0xb0> <== NEVER TAKEN api->pending_events = _Event_sets_Clear( pending_events,seized_events ); ffc077a0: 7d 6b 48 78 andc r11,r11,r9 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc077a4: 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 ); ffc077a8: 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; ffc077ac: 3d 60 00 00 lis r11,0 ffc077b0: 39 00 00 03 li r8,3 ffc077b4: 91 0b 27 e8 stw r8,10216(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; ffc077b8: 39 60 00 00 li r11,0 ffc077bc: 91 7f 00 24 stw r11,36(r31) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc077c0: 91 2a 00 00 stw r9,0(r10) _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; } _ISR_Enable( level ); ffc077c4: 48 00 00 80 b ffc07844 <_Event_Surrender+0x130> <== ALWAYS TAKEN } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { ffc077c8: 80 df 00 10 lwz r6,16(r31) ffc077cc: 70 c5 01 00 andi. r5,r6,256 ffc077d0: 41 82 00 74 beq- ffc07844 <_Event_Surrender+0x130> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { ffc077d4: 7f 89 50 00 cmpw cr7,r9,r10 ffc077d8: 41 9e 00 0c beq- cr7,ffc077e4 <_Event_Surrender+0xd0> ffc077dc: 70 ea 00 02 andi. r10,r7,2 ffc077e0: 41 82 00 64 beq- ffc07844 <_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; ffc077e4: 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 ); ffc077e8: 7d 6b 48 78 andc r11,r11,r9 ffc077ec: 91 68 00 00 stw r11,0(r8) the_thread->Wait.count = 0; ffc077f0: 39 60 00 00 li r11,0 ffc077f4: 91 7f 00 24 stw r11,36(r31) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc077f8: 91 2a 00 00 stw r9,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc077fc: 7d 20 00 a6 mfmsr r9 ffc07800: 7c 00 01 24 mtmsr r0 ffc07804: 7d 20 01 24 mtmsr r9 _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc07808: 81 3f 00 50 lwz r9,80(r31) ffc0780c: 2f 89 00 02 cmpwi cr7,r9,2 ffc07810: 41 9e 00 0c beq- cr7,ffc0781c <_Event_Surrender+0x108> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc07814: 7c 00 01 24 mtmsr r0 ffc07818: 48 00 00 18 b ffc07830 <_Event_Surrender+0x11c> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc0781c: 39 20 00 03 li r9,3 ffc07820: 91 3f 00 50 stw r9,80(r31) ffc07824: 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 ); ffc07828: 38 7f 00 48 addi r3,r31,72 ffc0782c: 48 00 41 ed bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc07830: 3c 80 10 03 lis r4,4099 ffc07834: 7f e3 fb 78 mr r3,r31 ffc07838: 60 84 ff f8 ori r4,r4,65528 ffc0783c: 48 00 26 2d bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN ffc07840: 48 00 00 08 b ffc07848 <_Event_Surrender+0x134> <== ALWAYS TAKEN ffc07844: 7c 00 01 24 mtmsr r0 } return; } } _ISR_Enable( level ); } ffc07848: 80 01 00 14 lwz r0,20(r1) ffc0784c: 83 e1 00 0c lwz r31,12(r1) ffc07850: 38 21 00 10 addi r1,r1,16 ffc07854: 7c 08 03 a6 mtlr r0 ffc07858: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0785c <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { ffc0785c: 94 21 ff e8 stwu r1,-24(r1) ffc07860: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); ffc07864: 38 81 00 08 addi r4,r1,8 void _Event_Timeout( Objects_Id id, void *ignored ) { ffc07868: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); ffc0786c: 48 00 2b 01 bl ffc0a36c <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc07870: 80 01 00 08 lwz r0,8(r1) ffc07874: 2f 80 00 00 cmpwi cr7,r0,0 ffc07878: 40 9e 00 68 bne- cr7,ffc078e0 <_Event_Timeout+0x84> <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0787c: 7d 60 00 a6 mfmsr r11 ffc07880: 7d 30 42 a6 mfsprg r9,0 ffc07884: 7d 69 48 78 andc r9,r11,r9 ffc07888: 7d 20 01 24 mtmsr r9 return; } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { ffc0788c: 3d 20 00 00 lis r9,0 _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; ffc07890: 90 03 00 24 stw r0,36(r3) if ( _Thread_Is_executing( the_thread ) ) { ffc07894: 81 29 27 b0 lwz r9,10160(r9) ffc07898: 7f 83 48 00 cmpw cr7,r3,r9 ffc0789c: 40 be 00 1c bne+ cr7,ffc078b8 <_Event_Timeout+0x5c> if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) ffc078a0: 3d 20 00 00 lis r9,0 ffc078a4: 80 09 27 e8 lwz r0,10216(r9) ffc078a8: 2f 80 00 01 cmpwi cr7,r0,1 ffc078ac: 40 be 00 0c bne+ cr7,ffc078b8 <_Event_Timeout+0x5c> _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; ffc078b0: 38 00 00 02 li r0,2 ffc078b4: 90 09 27 e8 stw r0,10216(r9) } the_thread->Wait.return_code = RTEMS_TIMEOUT; ffc078b8: 38 00 00 06 li r0,6 ffc078bc: 90 03 00 34 stw r0,52(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc078c0: 7d 60 01 24 mtmsr r11 ffc078c4: 3c 80 10 03 lis r4,4099 ffc078c8: 60 84 ff f8 ori r4,r4,65528 ffc078cc: 48 00 25 9d bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc078d0: 3d 20 00 00 lis r9,0 ffc078d4: 81 69 27 70 lwz r11,10096(r9) ffc078d8: 38 0b ff ff addi r0,r11,-1 ffc078dc: 90 09 27 70 stw r0,10096(r9) case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } ffc078e0: 80 01 00 1c lwz r0,28(r1) ffc078e4: 38 21 00 18 addi r1,r1,24 ffc078e8: 7c 08 03 a6 mtlr r0 ffc078ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc083a8 <_Extension_Manager_initialization>: * Output parameters: NONE */ void _Extension_Manager_initialization(void) { _Objects_Initialize_information( ffc083a8: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Extension_Manager_initialization(void) { ffc083ac: 94 21 ff f8 stwu r1,-8(r1) ffc083b0: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc083b4: 3c 60 00 00 lis r3,0 ffc083b8: 80 c9 20 a8 lwz r6,8360(r9) ffc083bc: 38 63 34 e4 addi r3,r3,13540 <== ALWAYS TAKEN ffc083c0: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Extension_Manager_initialization(void) { ffc083c4: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc083c8: 38 a0 00 09 li r5,9 ffc083cc: 38 e0 00 44 li r7,68 ffc083d0: 39 00 00 00 li r8,0 ffc083d4: 39 20 00 04 li r9,4 ffc083d8: 48 00 14 f5 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc083dc: 80 01 00 0c lwz r0,12(r1) ffc083e0: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc083e4: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc083e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e818 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { ffc0e818: 94 21 ff d8 stwu r1,-40(r1) ffc0e81c: 7c 08 02 a6 mflr r0 ffc0e820: 7d 80 00 26 mfcr r12 ffc0e824: 7c 89 23 78 mr r9,r4 ffc0e828: 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; ffc0e82c: 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 ) { ffc0e830: 7f 80 20 40 cmplw cr7,r0,r4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { ffc0e834: 93 c1 00 20 stw r30,32(r1) ffc0e838: 7c 7e 1b 78 mr r30,r3 ffc0e83c: 93 41 00 10 stw r26,16(r1) ffc0e840: 93 61 00 14 stw r27,20(r1) <== ALWAYS TAKEN ffc0e844: 93 81 00 18 stw r28,24(r1) ffc0e848: 93 a1 00 1c stw r29,28(r1) ffc0e84c: 93 e1 00 24 stw r31,36(r1) ffc0e850: 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; ffc0e854: 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; ffc0e858: 81 43 00 10 lwz r10,16(r3) uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { ffc0e85c: 41 9c 01 48 blt- cr7,ffc0e9a4 <_Heap_Allocate_aligned_with_boundary+0x18c> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { ffc0e860: 2f 86 00 00 cmpwi cr7,r6,0 ffc0e864: 41 be 00 18 beq+ cr7,ffc0e87c <_Heap_Allocate_aligned_with_boundary+0x64> if ( boundary < alloc_size ) { ffc0e868: 7f 86 48 40 cmplw cr7,r6,r9 ffc0e86c: 41 9c 01 38 blt- cr7,ffc0e9a4 <_Heap_Allocate_aligned_with_boundary+0x18c> return NULL; } if ( alignment == 0 ) { ffc0e870: 2f 85 00 00 cmpwi cr7,r5,0 ffc0e874: 40 9e 00 08 bne- cr7,ffc0e87c <_Heap_Allocate_aligned_with_boundary+0x64> ffc0e878: 7d 45 53 78 mr r5,r10 ffc0e87c: 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 ) { ffc0e880: 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; ffc0e884: 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; ffc0e888: 21 89 00 04 subfic r12,r9,4 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { ffc0e88c: 2f 86 00 00 cmpwi cr7,r6,0 ffc0e890: 48 00 00 d0 b ffc0e960 <_Heap_Allocate_aligned_with_boundary+0x148> <== ALWAYS TAKEN /* * 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 ) { ffc0e894: 81 64 00 04 lwz r11,4(r4) while ( block != free_list_tail ) { _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; ffc0e898: 3b bd 00 01 addi r29,r29,1 <== ALWAYS TAKEN /* * 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 ) { ffc0e89c: 7c 8b 00 40 cmplw cr1,r11,r0 ffc0e8a0: 40 85 00 bc ble- cr1,ffc0e95c <_Heap_Allocate_aligned_with_boundary+0x144> ffc0e8a4: 38 e4 00 08 addi r7,r4,8 <== ALWAYS TAKEN if ( alignment == 0 ) { ffc0e8a8: 40 9a 00 0c bne- cr6,ffc0e8b4 <_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; ffc0e8ac: 7c ff 3b 78 mr r31,r7 ffc0e8b0: 48 00 00 a4 b ffc0e954 <_Heap_Allocate_aligned_with_boundary+0x13c> <== ALWAYS TAKEN 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; ffc0e8b4: 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; ffc0e8b8: 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; ffc0e8bc: 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; ffc0e8c0: 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); ffc0e8c4: 7f ff 2b 96 divwu r31,r31,r5 ffc0e8c8: 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; ffc0e8cc: 7d 03 e0 50 subf r8,r3,r28 ffc0e8d0: 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 ) { ffc0e8d4: 7c 9f 58 40 cmplw cr1,r31,r11 ffc0e8d8: 40 85 00 0c ble- cr1,ffc0e8e4 <_Heap_Allocate_aligned_with_boundary+0xcc> ffc0e8dc: 7f eb 2b 96 divwu r31,r11,r5 ffc0e8e0: 7f ff 29 d6 mullw r31,r31,r5 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { ffc0e8e4: 41 9e 00 48 beq- cr7,ffc0e92c <_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; ffc0e8e8: 7d 1f 4a 14 add r8,r31,r9 ffc0e8ec: 7d 68 33 96 divwu r11,r8,r6 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; ffc0e8f0: 7f 67 4a 14 add r27,r7,r9 ffc0e8f4: 7d 6b 31 d6 mullw r11,r11,r6 ffc0e8f8: 48 00 00 1c b ffc0e914 <_Heap_Allocate_aligned_with_boundary+0xfc> <== ALWAYS TAKEN uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { ffc0e8fc: 41 80 00 60 blt- ffc0e95c <_Heap_Allocate_aligned_with_boundary+0x144> ffc0e900: 7f fa 2b 96 divwu r31,r26,r5 ffc0e904: 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; ffc0e908: 7d 1f 4a 14 add r8,r31,r9 ffc0e90c: 7d 68 33 96 divwu r11,r8,r6 ffc0e910: 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 ) { ffc0e914: 7e 1f 58 40 cmplw cr4,r31,r11 if ( boundary_line < boundary_floor ) { return 0; } alloc_begin = boundary_line - alloc_size; ffc0e918: 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 ) { ffc0e91c: 7c 8b 40 40 cmplw cr1,r11,r8 if ( boundary_line < boundary_floor ) { ffc0e920: 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 ) { ffc0e924: 40 90 00 08 bge- cr4,ffc0e92c <_Heap_Allocate_aligned_with_boundary+0x114> ffc0e928: 41 84 ff d4 blt+ cr1,ffc0e8fc <_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 ) { ffc0e92c: 7c 9f 38 40 cmplw cr1,r31,r7 ffc0e930: 41 84 00 2c blt- cr1,ffc0e95c <_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; ffc0e934: 7d 7f 53 96 divwu r11,r31,r10 ffc0e938: 7d 6b 51 d6 mullw r11,r11,r10 ffc0e93c: 21 04 ff f8 subfic r8,r4,-8 ffc0e940: 7d 68 5a 14 add r11,r8,r11 if ( free_size >= min_block_size || free_size == 0 ) { ffc0e944: 7c 8b 18 40 cmplw cr1,r11,r3 ffc0e948: 40 84 00 0c bge- cr1,ffc0e954 <_Heap_Allocate_aligned_with_boundary+0x13c> ffc0e94c: 2c 8b 00 00 cmpwi cr1,r11,0 ffc0e950: 40 86 00 0c bne- cr1,ffc0e95c <_Heap_Allocate_aligned_with_boundary+0x144> boundary ); } } if ( alloc_begin != 0 ) { ffc0e954: 2c 9f 00 00 cmpwi cr1,r31,0 ffc0e958: 40 86 00 18 bne- cr1,ffc0e970 <_Heap_Allocate_aligned_with_boundary+0x158> <== ALWAYS TAKEN break; } block = block->next; ffc0e95c: 80 84 00 08 lwz r4,8(r4) if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { ffc0e960: 7c 84 f0 00 cmpw cr1,r4,r30 ffc0e964: 40 86 ff 30 bne+ cr1,ffc0e894 <_Heap_Allocate_aligned_with_boundary+0x7c> ffc0e968: 3b e0 00 00 li r31,0 ffc0e96c: 48 00 00 20 b ffc0e98c <_Heap_Allocate_aligned_with_boundary+0x174> <== ALWAYS TAKEN block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; ffc0e970: 80 1e 00 4c lwz r0,76(r30) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); ffc0e974: 7d 26 4b 78 mr r6,r9 ffc0e978: 7f c3 f3 78 mr r3,r30 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; ffc0e97c: 7c 00 ea 14 add r0,r0,r29 ffc0e980: 90 1e 00 4c stw r0,76(r30) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); ffc0e984: 7f e5 fb 78 mr r5,r31 ffc0e988: 4b ff a7 31 bl ffc090b8 <_Heap_Block_allocate> <== ALWAYS TAKEN uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; ffc0e98c: 80 1e 00 44 lwz r0,68(r30) <== ALWAYS TAKEN ffc0e990: 7f 80 e8 40 cmplw cr7,r0,r29 ffc0e994: 40 9c 00 08 bge- cr7,ffc0e99c <_Heap_Allocate_aligned_with_boundary+0x184> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; ffc0e998: 93 be 00 44 stw r29,68(r30) } return (void *) alloc_begin; ffc0e99c: 7f e3 fb 78 mr r3,r31 ffc0e9a0: 48 00 00 08 b ffc0e9a8 <_Heap_Allocate_aligned_with_boundary+0x190> <== ALWAYS TAKEN ffc0e9a4: 38 60 00 00 li r3,0 } ffc0e9a8: 80 01 00 2c lwz r0,44(r1) ffc0e9ac: 81 81 00 0c lwz r12,12(r1) <== ALWAYS TAKEN ffc0e9b0: 7c 08 03 a6 mtlr r0 ffc0e9b4: 83 41 00 10 lwz r26,16(r1) <== ALWAYS TAKEN ffc0e9b8: 83 61 00 14 lwz r27,20(r1) ffc0e9bc: 7d 80 81 20 mtcrf 8,r12 ffc0e9c0: 83 81 00 18 lwz r28,24(r1) <== ALWAYS TAKEN ffc0e9c4: 83 a1 00 1c lwz r29,28(r1) ffc0e9c8: 83 c1 00 20 lwz r30,32(r1) ffc0e9cc: 83 e1 00 24 lwz r31,36(r1) <== ALWAYS TAKEN ffc0e9d0: 38 21 00 28 addi r1,r1,40 <== ALWAYS TAKEN ffc0e9d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc090b8 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { ffc090b8: 94 21 ff e8 stwu r1,-24(r1) ffc090bc: 7c 08 02 a6 mflr r0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; ffc090c0: 39 45 ff f8 addi r10,r5,-8 ffc090c4: 90 01 00 1c stw r0,28(r1) ffc090c8: 7c a9 2b 78 mr r9,r5 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc090cc: 80 04 00 04 lwz r0,4(r4) <== ALWAYS TAKEN Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { ffc090d0: 93 e1 00 14 stw r31,20(r1) ffc090d4: 7c 9f 23 78 mr r31,r4 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc090d8: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc090dc: 7d 64 02 14 add r11,r4,r0 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { ffc090e0: 93 c1 00 10 stw r30,16(r1) Heap_Statistics *const stats = &heap->stats; uintptr_t const alloc_area_begin = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_area_offset = alloc_begin - alloc_area_begin; ffc090e4: 7c ff 50 50 subf r7,r31,r10 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc090e8: 80 0b 00 04 lwz r0,4(r11) Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { ffc090ec: 7c 7e 1b 78 mr r30,r3 ffc090f0: 93 a1 00 0c stw r29,12(r1) /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap ); ffc090f4: 7c 6b 1b 78 mr r11,r3 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc090f8: 70 08 00 01 andi. r8,r0,1 ffc090fc: 40 82 00 40 bne- ffc0913c <_Heap_Block_allocate+0x84> _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ++stats->used_blocks; ffc09100: 81 03 00 40 lwz r8,64(r3) free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ffc09104: 81 63 00 38 lwz r11,56(r3) ++stats->used_blocks; ffc09108: 38 08 00 01 addi r0,r8,1 stats->free_size -= _Heap_Block_size( block ); ffc0910c: 80 a3 00 30 lwz r5,48(r3) <== ALWAYS TAKEN free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ffc09110: 39 6b ff ff addi r11,r11,-1 ++stats->used_blocks; ffc09114: 90 03 00 40 stw r0,64(r3) free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ffc09118: 91 63 00 38 stw r11,56(r3) ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); ffc0911c: 80 1f 00 04 lwz r0,4(r31) <== ALWAYS TAKEN Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { free_list_anchor = block->prev; ffc09120: 81 7f 00 0c lwz r11,12(r31) return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; ffc09124: 81 1f 00 08 lwz r8,8(r31) _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); ffc09128: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc0912c: 7c 00 28 50 subf r0,r0,r5 Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; ffc09130: 91 68 00 0c stw r11,12(r8) ffc09134: 90 03 00 30 stw r0,48(r3) RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; ffc09138: 91 0b 00 08 stw r8,8(r11) <== ALWAYS TAKEN } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { ffc0913c: 81 1e 00 10 lwz r8,16(r30) ffc09140: 7f 87 40 40 cmplw cr7,r7,r8 ffc09144: 40 bc 00 1c bge+ cr7,ffc09160 <_Heap_Block_allocate+0xa8> Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { _Heap_Block_split( heap, block, free_list_anchor, alloc_size ); ffc09148: 7c c7 32 14 add r6,r7,r6 ffc0914c: 7d 65 5b 78 mr r5,r11 ffc09150: 7f c3 f3 78 mr r3,r30 ffc09154: 7f e4 fb 78 mr r4,r31 ffc09158: 4b ff fe 6d bl ffc08fc4 <_Heap_Block_split> <== ALWAYS TAKEN ffc0915c: 48 00 00 a0 b ffc091fc <_Heap_Block_allocate+0x144> <== ALWAYS TAKEN 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 ) ffc09160: 7f a9 43 96 divwu r29,r9,r8 _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; ffc09164: 80 fe 00 30 lwz r7,48(r30) - 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; ffc09168: 80 1f 00 04 lwz r0,4(r31) 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 ) ffc0916c: 7f bd 41 d6 mullw r29,r29,r8 ffc09170: 7f bd 48 50 subf r29,r29,r9 ffc09174: 7f bd 50 50 subf r29,r29,r10 _Heap_Block_of_alloc_area( alloc_begin, heap->page_size ); uintptr_t const new_block_begin = (uintptr_t) new_block; uintptr_t const new_block_size = block_end - new_block_begin; block_end = new_block_begin; block_size = block_end - block_begin; ffc09178: 7d 3f e8 50 subf r9,r31,r29 _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; ffc0917c: 7d 47 4a 14 add r10,r7,r9 ffc09180: 91 5e 00 30 stw r10,48(r30) if ( _Heap_Is_prev_used( block ) ) { ffc09184: 81 5f 00 04 lwz r10,4(r31) ffc09188: 71 48 00 01 andi. r8,r10,1 ffc0918c: 41 82 00 2c beq- ffc091b8 <_Heap_Block_allocate+0x100> _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; ffc09190: 81 1e 00 38 lwz r8,56(r30) ffc09194: 7f e5 fb 78 mr r5,r31 RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; ffc09198: 81 4b 00 08 lwz r10,8(r11) ffc0919c: 39 08 00 01 addi r8,r8,1 new_block->next = next; new_block->prev = block_before; ffc091a0: 91 7f 00 0c stw r11,12(r31) Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; ffc091a4: 91 5f 00 08 stw r10,8(r31) ffc091a8: 91 1e 00 38 stw r8,56(r30) new_block->prev = block_before; block_before->next = new_block; ffc091ac: 93 eb 00 08 stw r31,8(r11) next->prev = new_block; ffc091b0: 93 ea 00 0c stw r31,12(r10) ffc091b4: 48 00 00 1c b ffc091d0 <_Heap_Block_allocate+0x118> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block( const Heap_Block *block ) { return (Heap_Block *) ((uintptr_t) block - block->prev_size); ffc091b8: 81 5f 00 00 lwz r10,0(r31) Heap_Block *const prev_block = _Heap_Prev_block( block ); uintptr_t const prev_block_size = _Heap_Block_size( prev_block ); block = prev_block; block_begin = (uintptr_t) block; block_size += prev_block_size; ffc091bc: 7d 65 5b 78 mr r5,r11 ffc091c0: 7f ea f8 50 subf r31,r10,r31 ffc091c4: 81 7f 00 04 lwz r11,4(r31) ffc091c8: 55 6b 00 3c rlwinm r11,r11,0,0,30 ffc091cc: 7d 29 5a 14 add r9,r9,r11 } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; ffc091d0: 54 00 00 3c rlwinm r0,r0,0,0,30 block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; new_block->prev_size = block_size; ffc091d4: 91 3d 00 00 stw r9,0(r29) new_block->size_and_flag = new_block_size; ffc091d8: 7c 04 02 14 add r0,r4,r0 ffc091dc: 7c 1d 00 50 subf r0,r29,r0 block = prev_block; block_begin = (uintptr_t) block; block_size += prev_block_size; } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; ffc091e0: 61 2b 00 01 ori r11,r9,1 ffc091e4: 91 7f 00 04 stw r11,4(r31) new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); ffc091e8: 7f c3 f3 78 mr r3,r30 ffc091ec: 7f a4 eb 78 mr r4,r29 } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; ffc091f0: 90 1d 00 04 stw r0,4(r29) _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); ffc091f4: 7f bf eb 78 mr r31,r29 ffc091f8: 4b ff fd cd bl ffc08fc4 <_Heap_Block_split> <== ALWAYS TAKEN alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { ffc091fc: 80 1e 00 30 lwz r0,48(r30) Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; ffc09200: 81 3e 00 34 lwz r9,52(r30) ffc09204: 7f 89 00 40 cmplw cr7,r9,r0 ffc09208: 40 9d 00 08 ble- cr7,ffc09210 <_Heap_Block_allocate+0x158> ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { stats->min_free_size = stats->free_size; ffc0920c: 90 1e 00 34 stw r0,52(r30) } return block; } ffc09210: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc09214: 7f e3 fb 78 mr r3,r31 ffc09218: 83 a1 00 0c lwz r29,12(r1) ffc0921c: 7c 08 03 a6 mtlr r0 ffc09220: 83 c1 00 10 lwz r30,16(r1) ffc09224: 83 e1 00 14 lwz r31,20(r1) ffc09228: 38 21 00 18 addi r1,r1,24 <== ALWAYS TAKEN ffc0922c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08fc4 <_Heap_Block_split>: ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; ffc08fc4: 81 23 00 14 lwz r9,20(r3) <== ALWAYS TAKEN - 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; ffc08fc8: 81 64 00 04 lwz r11,4(r4) uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const used_size = _Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE; ffc08fcc: 38 09 ff f8 addi r0,r9,-8 uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; ffc08fd0: 80 e3 00 10 lwz r7,16(r3) uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE; uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const used_size = _Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE; ffc08fd4: 7f 86 00 40 cmplw cr7,r6,r0 ffc08fd8: 55 68 00 3c rlwinm r8,r11,0,0,30 <== ALWAYS TAKEN ffc08fdc: 40 9c 00 08 bge- cr7,ffc08fe4 <_Heap_Block_split+0x20> ffc08fe0: 7c 06 03 78 mr r6,r0 ffc08fe4: 38 c6 00 08 addi r6,r6,8 <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; ffc08fe8: 7d 46 3b 96 divwu r10,r6,r7 ffc08fec: 7d 4a 39 d6 mullw r10,r10,r7 if ( remainder != 0 ) { ffc08ff0: 7f 86 50 00 cmpw cr7,r6,r10 <== ALWAYS TAKEN return value - remainder + alignment; ffc08ff4: 7d 4a 3a 14 add r10,r10,r7 uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { ffc08ff8: 40 9e 00 08 bne- cr7,ffc09000 <_Heap_Block_split+0x3c> ffc08ffc: 7c ca 33 78 mr r10,r6 Heap_Block *next_block = _Heap_Block_at( block, block_size ); _HAssert( used_size <= block_size + HEAP_BLOCK_SIZE_OFFSET ); _HAssert( used_size + free_size == block_size + HEAP_BLOCK_SIZE_OFFSET ); if ( free_size >= free_size_limit ) { ffc09000: 38 08 00 04 addi r0,r8,4 <== ALWAYS TAKEN ffc09004: 39 29 00 04 addi r9,r9,4 ffc09008: 7c c6 00 50 subf r6,r6,r0 <== ALWAYS TAKEN ffc0900c: 7f 86 48 40 cmplw cr7,r6,r9 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc09010: 7d 24 42 14 add r9,r4,r8 ffc09014: 41 9c 00 94 blt- cr7,ffc090a8 <_Heap_Block_split+0xe4> uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc09018: 55 6b 07 fe clrlwi r11,r11,31 ffc0901c: 7d 4b 5b 78 or r11,r10,r11 ffc09020: 91 64 00 04 stw r11,4(r4) <== ALWAYS TAKEN Heap_Block *const free_block = _Heap_Block_at( block, used_block_size ); uintptr_t free_block_size = block_size - used_block_size; ffc09024: 7c 0a 40 50 subf r0,r10,r8 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc09028: 7c 8a 22 14 add r4,r10,r4 <== ALWAYS TAKEN _HAssert( used_block_size + free_block_size == block_size ); _Heap_Block_set_size( block, used_block_size ); /* Statistics */ stats->free_size += free_block_size; ffc0902c: 81 63 00 30 lwz r11,48(r3) ffc09030: 7d 6b 02 14 add r11,r11,r0 <== ALWAYS TAKEN ffc09034: 91 63 00 30 stw r11,48(r3) - 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; ffc09038: 81 09 00 04 lwz r8,4(r9) ffc0903c: 55 08 00 3c rlwinm r8,r8,0,0,30 if ( _Heap_Is_used( next_block ) ) { ffc09040: 7d 69 42 14 add r11,r9,r8 <== ALWAYS TAKEN ffc09044: 81 6b 00 04 lwz r11,4(r11) ffc09048: 71 6a 00 01 andi. r10,r11,1 ffc0904c: 41 82 00 24 beq- ffc09070 <_Heap_Block_split+0xac> _Heap_Free_list_insert_after( free_list_anchor, free_block ); /* Statistics */ ++stats->free_blocks; ffc09050: 81 43 00 38 lwz r10,56(r3) RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; ffc09054: 81 65 00 08 lwz r11,8(r5) ffc09058: 39 4a 00 01 addi r10,r10,1 new_block->next = next; new_block->prev = block_before; ffc0905c: 90 a4 00 0c stw r5,12(r4) Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; ffc09060: 91 64 00 08 stw r11,8(r4) ffc09064: 91 43 00 38 stw r10,56(r3) new_block->prev = block_before; block_before->next = new_block; ffc09068: 90 85 00 08 stw r4,8(r5) ffc0906c: 48 00 00 20 b ffc0908c <_Heap_Block_split+0xc8> <== ALWAYS TAKEN Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; ffc09070: 81 49 00 0c lwz r10,12(r9) } else { uintptr_t const next_block_size = _Heap_Block_size( next_block ); _Heap_Free_list_replace( next_block, free_block ); free_block_size += next_block_size; ffc09074: 7c 00 42 14 add r0,r0,r8 RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; ffc09078: 81 69 00 08 lwz r11,8(r9) RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc0907c: 7d 20 22 14 add r9,r0,r4 { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; ffc09080: 91 44 00 0c stw r10,12(r4) ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; ffc09084: 91 64 00 08 stw r11,8(r4) new_block->prev = prev; next->prev = new_block; prev->next = new_block; ffc09088: 90 8a 00 08 stw r4,8(r10) Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; ffc0908c: 90 8b 00 0c stw r4,12(r11) next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; ffc09090: 60 0b 00 01 ori r11,r0,1 ffc09094: 91 64 00 04 stw r11,4(r4) next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc09098: 81 69 00 04 lwz r11,4(r9) next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; next_block->prev_size = free_block_size; ffc0909c: 90 09 00 00 stw r0,0(r9) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc090a0: 55 60 00 3c rlwinm r0,r11,0,0,30 <== ALWAYS TAKEN ffc090a4: 48 00 00 0c b ffc090b0 <_Heap_Block_split+0xec> <== ALWAYS TAKEN } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; ffc090a8: 80 09 00 04 lwz r0,4(r9) ffc090ac: 60 00 00 01 ori r0,r0,1 ffc090b0: 90 09 00 04 stw r0,4(r9) ffc090b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc13440 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { ffc13440: 7c 08 02 a6 mflr r0 ffc13444: 94 21 ff f8 stwu r1,-8(r1) ffc13448: 7c 69 1b 78 mr r9,r3 ffc1344c: 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; ffc13450: 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; ffc13454: 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; ffc13458: 7f 84 00 40 cmplw cr7,r4,r0 uintptr_t const heap_area_end = heap->area_end; ffc1345c: 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; ffc13460: 41 bc 00 10 blt+ cr7,ffc13470 <_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 ) { ffc13464: 7f 84 00 40 cmplw cr7,r4,r0 ffc13468: 38 60 00 01 li r3,1 ffc1346c: 41 9c 00 9c blt- cr7,ffc13508 <_Heap_Extend+0xc8> return HEAP_EXTEND_ERROR; /* case 3 */ } else if ( area_begin != heap_area_end ) { ffc13470: 7f 84 00 00 cmpw cr7,r4,r0 ffc13474: 38 60 00 02 li r3,2 ffc13478: 40 be 00 90 bne+ cr7,ffc13508 <_Heap_Extend+0xc8> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); ffc1347c: 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; ffc13480: 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 ffc13484: 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; ffc13488: 90 89 00 1c stw r4,28(r9) extend_size = new_heap_area_end ffc1348c: 7c 00 22 14 add r0,r0,r4 ffc13490: 7c 00 5b 96 divwu r0,r0,r11 ffc13494: 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 ) { ffc13498: 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; ffc1349c: 90 06 00 00 stw r0,0(r6) if( extend_size >= heap->min_block_size ) { ffc134a0: 81 69 00 14 lwz r11,20(r9) ffc134a4: 7f 80 58 40 cmplw cr7,r0,r11 ffc134a8: 41 bc 00 60 blt+ cr7,ffc13508 <_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; ffc134ac: 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); ffc134b0: 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 = ffc134b4: 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 )); ffc134b8: 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; ffc134bc: 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; ffc134c0: 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 = ffc134c4: 7d 0b 40 50 subf r8,r11,r8 ffc134c8: 7c 07 3b 78 or r7,r0,r7 ffc134cc: 61 08 00 01 ori r8,r8,1 ffc134d0: 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 )); ffc134d4: 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 = ffc134d8: 91 0b 00 04 stw r8,4(r11) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc134dc: 80 e9 00 2c lwz r7,44(r9) ++stats->used_blocks; ffc134e0: 81 09 00 40 lwz r8,64(r9) --stats->frees; /* Do not count subsequent call as actual free() */ ffc134e4: 81 49 00 50 lwz r10,80(r9) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc134e8: 7c 07 02 14 add r0,r7,r0 ++stats->used_blocks; ffc134ec: 39 08 00 01 addi r8,r8,1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc134f0: 90 09 00 2c stw r0,44(r9) ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ ffc134f4: 39 4a ff ff addi r10,r10,-1 heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ++stats->used_blocks; ffc134f8: 91 09 00 40 stw r8,64(r9) --stats->frees; /* Do not count subsequent call as actual free() */ ffc134fc: 91 49 00 50 stw r10,80(r9) _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); ffc13500: 4b ff 98 61 bl ffc0cd60 <_Heap_Free> <== ALWAYS TAKEN ffc13504: 38 60 00 00 li r3,0 } return HEAP_EXTEND_SUCCESSFUL; } ffc13508: 80 01 00 0c lwz r0,12(r1) ffc1350c: 38 21 00 08 addi r1,r1,8 ffc13510: 7c 08 03 a6 mtlr r0 ffc13514: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e9d8 <_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 ) ffc0e9d8: 81 63 00 10 lwz r11,16(r3) #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { ffc0e9dc: 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; ffc0e9e0: 80 03 00 20 lwz r0,32(r3) <== ALWAYS TAKEN 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 ffc0e9e4: 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 ) ffc0e9e8: 7c 84 5b 96 divwu r4,r4,r11 <== ALWAYS TAKEN ffc0e9ec: 7d 64 59 d6 mullw r11,r4,r11 ffc0e9f0: 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 ffc0e9f4: 7f 8b 00 40 cmplw cr7,r11,r0 <== ALWAYS TAKEN ffc0e9f8: 41 9c 00 14 blt- cr7,ffc0ea0c <_Heap_Free+0x34> ffc0e9fc: 81 43 00 24 lwz r10,36(r3) <== ALWAYS TAKEN ffc0ea00: 7d 4b 50 10 subfc r10,r11,r10 ffc0ea04: 39 40 00 00 li r10,0 ffc0ea08: 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 ) ) { ffc0ea0c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0ea10: 41 9e 01 a8 beq- cr7,ffc0ebb8 <_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; ffc0ea14: 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 ffc0ea18: 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; ffc0ea1c: 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); ffc0ea20: 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 ffc0ea24: 7f 8a 00 40 cmplw cr7,r10,r0 ffc0ea28: 41 9c 00 14 blt- cr7,ffc0ea3c <_Heap_Free+0x64> <== NEVER TAKEN ffc0ea2c: 80 e9 00 24 lwz r7,36(r9) ffc0ea30: 7c ea 38 10 subfc r7,r10,r7 ffc0ea34: 38 e0 00 00 li r7,0 ffc0ea38: 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 ) ) { ffc0ea3c: 2f 87 00 00 cmpwi cr7,r7,0 <== ALWAYS TAKEN ffc0ea40: 41 9e 01 78 beq- cr7,ffc0ebb8 <_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; ffc0ea44: 80 ca 00 04 lwz r6,4(r10) _HAssert( false ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { ffc0ea48: 70 c3 00 01 andi. r3,r6,1 ffc0ea4c: 41 82 01 6c beq- ffc0ebb8 <_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 )); ffc0ea50: 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; ffc0ea54: 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 ffc0ea58: 38 80 00 00 li r4,0 ffc0ea5c: 7f 8a 60 00 cmpw cr7,r10,r12 <== ALWAYS TAKEN ffc0ea60: 41 9e 00 14 beq- cr7,ffc0ea74 <_Heap_Free+0x9c> ffc0ea64: 7c ea 32 14 add r7,r10,r6 ffc0ea68: 80 87 00 04 lwz r4,4(r7) ffc0ea6c: 54 84 07 fe clrlwi r4,r4,31 ffc0ea70: 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 ) ) { ffc0ea74: 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 ffc0ea78: 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 ) ) { ffc0ea7c: 40 82 00 94 bne- ffc0eb10 <_Heap_Free+0x138> uintptr_t const prev_size = block->prev_size; ffc0ea80: 80 ab 00 00 lwz r5,0(r11) <== ALWAYS TAKEN 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 ffc0ea84: 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); ffc0ea88: 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 ffc0ea8c: 7f 87 00 40 cmplw cr7,r7,r0 ffc0ea90: 41 9c 00 10 blt- cr7,ffc0eaa0 <_Heap_Free+0xc8> <== NEVER TAKEN ffc0ea94: 7c 67 60 10 subfc r3,r7,r12 ffc0ea98: 38 60 00 00 li r3,0 ffc0ea9c: 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 ) ) { ffc0eaa0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0eaa4: 41 9e 01 14 beq- cr7,ffc0ebb8 <_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) ) { ffc0eaa8: 80 07 00 04 lwz r0,4(r7) ffc0eaac: 70 03 00 01 andi. r3,r0,1 ffc0eab0: 41 82 01 08 beq- ffc0ebb8 <_Heap_Free+0x1e0> <== NEVER TAKEN _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ ffc0eab4: 2f 84 00 00 cmpwi cr7,r4,0 ffc0eab8: 41 9e 00 38 beq- cr7,ffc0eaf0 <_Heap_Free+0x118> uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; ffc0eabc: 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; ffc0eac0: 7c c8 32 14 add r6,r8,r6 <== ALWAYS TAKEN ffc0eac4: 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; ffc0eac8: 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; ffc0eacc: 81 4a 00 08 lwz r10,8(r10) _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; ffc0ead0: 38 c4 ff ff addi r6,r4,-1 <== ALWAYS TAKEN prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0ead4: 60 a0 00 01 ori r0,r5,1 <== ALWAYS TAKEN } 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; ffc0ead8: 90 c9 00 38 stw r6,56(r9) Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; ffc0eadc: 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; ffc0eae0: 7c a7 29 2e stwx r5,r7,r5 <== ALWAYS TAKEN 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; ffc0eae4: 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; ffc0eae8: 91 4b 00 08 stw r10,8(r11) ffc0eaec: 48 00 00 a0 b ffc0eb8c <_Heap_Free+0x1b4> <== ALWAYS TAKEN 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; ffc0eaf0: 7c a8 2a 14 add r5,r8,r5 prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0eaf4: 60 a0 00 01 ori r0,r5,1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; ffc0eaf8: 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; ffc0eafc: 90 07 00 04 stw r0,4(r7) <== ALWAYS TAKEN next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc0eb00: 80 0a 00 04 lwz r0,4(r10) ffc0eb04: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc0eb08: 90 0a 00 04 stw r0,4(r10) ffc0eb0c: 48 00 00 80 b ffc0eb8c <_Heap_Free+0x1b4> <== ALWAYS TAKEN next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ ffc0eb10: 2f 84 00 00 cmpwi cr7,r4,0 <== ALWAYS TAKEN ffc0eb14: 41 9e 00 30 beq- cr7,ffc0eb44 <_Heap_Free+0x16c> Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; ffc0eb18: 80 aa 00 0c lwz r5,12(r10) uintptr_t const size = block_size + next_block_size; ffc0eb1c: 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; ffc0eb20: 81 4a 00 08 lwz r10,8(r10) _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0eb24: 60 e0 00 01 ori r0,r7,1 Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; ffc0eb28: 90 ab 00 0c stw r5,12(r11) ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; ffc0eb2c: 91 4b 00 08 stw r10,8(r11) next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; ffc0eb30: 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; ffc0eb34: 90 0b 00 04 stw r0,4(r11) new_block->prev = prev; next->prev = new_block; prev->next = new_block; ffc0eb38: 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; ffc0eb3c: 91 6a 00 0c stw r11,12(r10) ffc0eb40: 48 00 00 4c b ffc0eb8c <_Heap_Free+0x1b4> <== ALWAYS TAKEN 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; ffc0eb44: 61 00 00 01 ori r0,r8,1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; ffc0eb48: 7d 0b 41 2e stwx r8,r11,r8 <== ALWAYS TAKEN 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; ffc0eb4c: 90 0b 00 04 stw r0,4(r11) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc0eb50: 80 0a 00 04 lwz r0,4(r10) <== ALWAYS TAKEN ) { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; ffc0eb54: 91 2b 00 0c stw r9,12(r11) <== ALWAYS TAKEN ffc0eb58: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc0eb5c: 90 0a 00 04 stw r0,4(r10) next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; ffc0eb60: 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; ffc0eb64: 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; ffc0eb68: 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; ffc0eb6c: 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; ffc0eb70: 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; ffc0eb74: 90 09 00 38 stw r0,56(r9) new_block->next = next; ffc0eb78: 91 4b 00 08 stw r10,8(r11) new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; ffc0eb7c: 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; ffc0eb80: 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; ffc0eb84: 40 9c 00 08 bge- cr7,ffc0eb8c <_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; ffc0eb88: 90 09 00 3c stw r0,60(r9) <== ALWAYS TAKEN } /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; ffc0eb8c: 80 09 00 30 lwz r0,48(r9) ffc0eb90: 38 60 00 01 li r3,1 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0eb94: 81 69 00 40 lwz r11,64(r9) <== ALWAYS TAKEN ++stats->frees; ffc0eb98: 81 49 00 50 lwz r10,80(r9) stats->free_size += block_size; ffc0eb9c: 7d 00 42 14 add r8,r0,r8 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0eba0: 39 6b ff ff addi r11,r11,-1 ++stats->frees; stats->free_size += block_size; ffc0eba4: 91 09 00 30 stw r8,48(r9) } } /* Statistics */ --stats->used_blocks; ++stats->frees; ffc0eba8: 38 0a 00 01 addi r0,r10,1 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0ebac: 91 69 00 40 stw r11,64(r9) ++stats->frees; ffc0ebb0: 90 09 00 50 stw r0,80(r9) stats->free_size += block_size; return( true ); ffc0ebb4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ebb8: 38 60 00 00 li r3,0 } ffc0ebbc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2f72c <_Heap_Get_free_information>: ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; ffc2f72c: 38 00 00 00 li r0,0 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc2f730: 81 23 00 08 lwz r9,8(r3) info->largest = 0; info->total = 0; ffc2f734: 90 04 00 08 stw r0,8(r4) ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; ffc2f738: 90 04 00 00 stw r0,0(r4) info->largest = 0; ffc2f73c: 90 04 00 04 stw r0,4(r4) info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); ffc2f740: 48 00 00 38 b ffc2f778 <_Heap_Get_free_information+0x4c> <== ALWAYS TAKEN - 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; ffc2f744: 80 09 00 04 lwz r0,4(r9) /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; info->total += the_size; if ( info->largest < the_size ) ffc2f748: 81 64 00 04 lwz r11,4(r4) ffc2f74c: 54 00 00 3c rlwinm r0,r0,0,0,30 uint32_t const the_size = _Heap_Block_size(the_block); /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; ffc2f750: 81 44 00 00 lwz r10,0(r4) info->total += the_size; if ( info->largest < the_size ) ffc2f754: 7f 8b 00 40 cmplw cr7,r11,r0 /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; info->total += the_size; ffc2f758: 81 64 00 08 lwz r11,8(r4) uint32_t const the_size = _Heap_Block_size(the_block); /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; ffc2f75c: 39 4a 00 01 addi r10,r10,1 info->total += the_size; ffc2f760: 7d 6b 02 14 add r11,r11,r0 uint32_t const the_size = _Heap_Block_size(the_block); /* As we always coalesce free blocks, prev block must have been used. */ _HAssert(_Heap_Is_prev_used(the_block)); info->number++; ffc2f764: 91 44 00 00 stw r10,0(r4) info->total += the_size; ffc2f768: 91 64 00 08 stw r11,8(r4) if ( info->largest < the_size ) ffc2f76c: 40 9c 00 08 bge- cr7,ffc2f774 <_Heap_Get_free_information+0x48> info->largest = the_size; ffc2f770: 90 04 00 04 stw r0,4(r4) info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); the_block != tail; the_block = the_block->next) ffc2f774: 81 29 00 08 lwz r9,8(r9) info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); ffc2f778: 7f 89 18 00 cmpw cr7,r9,r3 ffc2f77c: 40 9e ff c8 bne+ cr7,ffc2f744 <_Heap_Get_free_information+0x18> info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } ffc2f780: 4e 80 00 20 blr <== ALWAYS TAKEN ffc42334 <_Heap_Get_information>: Heap_Block *const end = the_heap->last_block; _HAssert(the_block->prev_size == the_heap->page_size); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; ffc42334: 38 00 00 00 li r0,0 Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->first_block; Heap_Block *const end = the_heap->last_block; ffc42338: 81 43 00 24 lwz r10,36(r3) the_info->Free.number = 0; the_info->Free.total = 0; the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; ffc4233c: 90 04 00 10 stw r0,16(r4) uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; ffc42340: 39 04 00 0c addi r8,r4,12 Heap_Block *const end = the_heap->last_block; _HAssert(the_block->prev_size == the_heap->page_size); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; ffc42344: 90 04 00 00 stw r0,0(r4) the_info->Free.total = 0; ffc42348: 90 04 00 08 stw r0,8(r4) the_info->Free.largest = 0; ffc4234c: 90 04 00 04 stw r0,4(r4) the_info->Used.number = 0; ffc42350: 90 04 00 0c stw r0,12(r4) the_info->Used.total = 0; ffc42354: 90 04 00 14 stw r0,20(r4) void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->first_block; ffc42358: 81 63 00 20 lwz r11,32(r3) the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { ffc4235c: 48 00 00 48 b ffc423a4 <_Heap_Get_information+0x70> <== ALWAYS TAKEN - 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; ffc42360: 80 0b 00 04 lwz r0,4(r11) ffc42364: 54 00 00 3c rlwinm r0,r0,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); ffc42368: 7d 6b 02 14 add r11,r11,r0 uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) ffc4236c: 80 eb 00 04 lwz r7,4(r11) ffc42370: 70 e6 00 01 andi. r6,r7,1 ffc42374: 41 82 00 08 beq- ffc4237c <_Heap_Get_information+0x48> ffc42378: 7d 09 43 78 mr r9,r8 else info = &the_info->Free; info->number++; info->total += the_size; if ( info->largest < the_size ) ffc4237c: 80 e9 00 04 lwz r7,4(r9) if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; ffc42380: 80 c9 00 00 lwz r6,0(r9) info->total += the_size; if ( info->largest < the_size ) ffc42384: 7f 87 00 40 cmplw cr7,r7,r0 info = &the_info->Used; else info = &the_info->Free; info->number++; info->total += the_size; ffc42388: 80 e9 00 08 lwz r7,8(r9) if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; ffc4238c: 38 c6 00 01 addi r6,r6,1 info->total += the_size; ffc42390: 7c e7 02 14 add r7,r7,r0 if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; ffc42394: 90 c9 00 00 stw r6,0(r9) info->total += the_size; ffc42398: 90 e9 00 08 stw r7,8(r9) if ( info->largest < the_size ) ffc4239c: 40 9c 00 08 bge- cr7,ffc423a4 <_Heap_Get_information+0x70> info->largest = the_size; ffc423a0: 90 09 00 04 stw r0,4(r9) the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { ffc423a4: 7f 8b 50 00 cmpw cr7,r11,r10 uintptr_t const the_size = _Heap_Block_size(the_block); Heap_Block *const next_block = _Heap_Block_at(the_block, the_size); Heap_Information *info; if ( _Heap_Is_prev_used(next_block) ) ffc423a8: 7c 89 23 78 mr r9,r4 the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { ffc423ac: 40 9e ff b4 bne+ cr7,ffc42360 <_Heap_Get_information+0x2c> /* * Handle the last dummy block. Don't consider this block to be * "used" as client never allocated it. Make 'Used.total' contain this * blocks' overhead though. */ the_info->Used.total += HEAP_BLOCK_HEADER_SIZE; ffc423b0: 81 24 00 14 lwz r9,20(r4) ffc423b4: 38 09 00 08 addi r0,r9,8 ffc423b8: 90 04 00 14 stw r0,20(r4) <== ALWAYS TAKEN } ffc423bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08e68 <_Heap_Initialize>: uintptr_t min_block_size = 0; uintptr_t overhead = 0; Heap_Block *first_block = NULL; Heap_Block *last_block = NULL; if ( page_size == 0 ) { ffc08e68: 2c 06 00 00 cmpwi r6,0 Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { ffc08e6c: 94 21 ff e8 stwu r1,-24(r1) ffc08e70: 7c 69 1b 78 mr r9,r3 <== ALWAYS TAKEN ffc08e74: 93 81 00 08 stw r28,8(r1) <== ALWAYS TAKEN ffc08e78: 93 a1 00 0c stw r29,12(r1) <== ALWAYS TAKEN ffc08e7c: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc08e80: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN uintptr_t min_block_size = 0; uintptr_t overhead = 0; Heap_Block *first_block = NULL; Heap_Block *last_block = NULL; if ( page_size == 0 ) { ffc08e84: 40 82 00 0c bne- ffc08e90 <_Heap_Initialize+0x28> ffc08e88: 38 c0 00 08 li r6,8 ffc08e8c: 48 00 00 1c b ffc08ea8 <_Heap_Initialize+0x40> <== ALWAYS TAKEN uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { ffc08e90: 70 c0 00 07 andi. r0,r6,7 ffc08e94: 41 82 00 0c beq- ffc08ea0 <_Heap_Initialize+0x38> return value - remainder + alignment; ffc08e98: 38 c6 00 08 addi r6,r6,8 ffc08e9c: 7c c0 30 50 subf r6,r0,r6 page_size = CPU_ALIGNMENT; } else { page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT ); if ( page_size < CPU_ALIGNMENT ) { ffc08ea0: 2b 86 00 07 cmplwi cr7,r6,7 ffc08ea4: 40 9d 01 04 ble- cr7,ffc08fa8 <_Heap_Initialize+0x140> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; ffc08ea8: 39 00 00 10 li r8,16 ffc08eac: 7d 08 33 96 divwu r8,r8,r6 <== ALWAYS TAKEN ffc08eb0: 7d 08 31 d6 mullw r8,r8,r6 if ( remainder != 0 ) { return value - remainder + alignment; ffc08eb4: 20 08 00 10 subfic r0,r8,16 uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { ffc08eb8: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN return value - remainder + alignment; ffc08ebc: 7d 06 42 14 add r8,r6,r8 uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { ffc08ec0: 40 9e 00 08 bne- cr7,ffc08ec8 <_Heap_Initialize+0x60> ffc08ec4: 39 00 00 10 li r8,16 ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const heap_area_begin = (uintptr_t) heap_area_begin_ptr; uintptr_t const heap_area_end = heap_area_begin + heap_area_size; uintptr_t alloc_area_begin = heap_area_begin + HEAP_BLOCK_HEADER_SIZE; ffc08ec8: 39 64 00 08 addi r11,r4,8 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; ffc08ecc: 7c 0b 33 96 divwu r0,r11,r6 ffc08ed0: 7c 00 31 d6 mullw r0,r0,r6 if ( remainder != 0 ) { ffc08ed4: 7c 00 58 51 subf. r0,r0,r11 ffc08ed8: 41 82 00 0c beq- ffc08ee4 <_Heap_Initialize+0x7c> return value - remainder + alignment; ffc08edc: 7d 66 5a 14 add r11,r6,r11 ffc08ee0: 7d 60 58 50 subf r11,r0,r11 uintptr_t page_size ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const heap_area_begin = (uintptr_t) heap_area_begin_ptr; uintptr_t const heap_area_end = heap_area_begin + heap_area_size; ffc08ee4: 7f c4 2a 14 add r30,r4,r5 overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); first_block_size = heap_area_size - overhead; first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; if ( ffc08ee8: 7f 9e 20 40 cmplw cr7,r30,r4 <== ALWAYS TAKEN ffc08eec: 41 9c 00 bc blt- cr7,ffc08fa8 <_Heap_Initialize+0x140> } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); alloc_area_begin = _Heap_Align_up( alloc_area_begin, page_size ); first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); ffc08ef0: 7c 04 58 50 subf r0,r4,r11 first_block_size = heap_area_size - overhead; first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; if ( ffc08ef4: 7f 85 00 40 cmplw cr7,r5,r0 } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); alloc_area_begin = _Heap_Align_up( alloc_area_begin, page_size ); first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); ffc08ef8: 39 6b ff f8 addi r11,r11,-8 first_block_size = heap_area_size - overhead; first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; if ( ffc08efc: 40 9d 00 ac ble- cr7,ffc08fa8 <_Heap_Initialize+0x140> min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); alloc_area_begin = _Heap_Align_up( alloc_area_begin, page_size ); first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); first_block_size = heap_area_size - overhead; ffc08f00: 7c a0 28 50 subf r5,r0,r5 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); ffc08f04: 7c a5 33 96 divwu r5,r5,r6 ffc08f08: 7c a5 31 d6 mullw r5,r5,r6 first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; if ( ffc08f0c: 7f 85 40 40 cmplw cr7,r5,r8 ffc08f10: 41 9c 00 98 blt- cr7,ffc08fa8 <_Heap_Initialize+0x140> stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc08f14: 3c e0 00 00 lis r7,0 /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size; first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; first_block->next = _Heap_Free_list_tail( heap ); ffc08f18: 91 2b 00 08 stw r9,8(r11) <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc08f1c: 7d 45 5a 14 add r10,r5,r11 <== ALWAYS TAKEN stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc08f20: 83 e7 29 88 lwz r31,10632(r7) <== ALWAYS TAKEN stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; stats->free_blocks = 1; stats->max_free_blocks = 1; stats->used_blocks = 0; ffc08f24: 38 00 00 00 li r0,0 <== ALWAYS TAKEN /* Statistics */ stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; stats->free_blocks = 1; ffc08f28: 39 80 00 01 li r12,1 return 0; } /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size; ffc08f2c: 90 cb 00 00 stw r6,0(r11) first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; ffc08f30: 60 a3 00 01 ori r3,r5,1 stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc08f34: 3b bf 00 01 addi r29,r31,1 } /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size; first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; ffc08f38: 90 6b 00 04 stw r3,4(r11) * last block appears as used for the _Heap_Is_used() and _Heap_Is_free() * functions. */ last_block = _Heap_Block_at( first_block, first_block_size ); last_block->prev_size = first_block_size; last_block->size_and_flag = first_block_begin - (uintptr_t) last_block; ffc08f3c: 7f 8a 58 50 subf r28,r10,r11 ffc08f40: 93 8a 00 04 stw r28,4(r10) <== ALWAYS TAKEN alloc_area_begin = _Heap_Align_up( alloc_area_begin, page_size ); first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); first_block_size = heap_area_size - overhead; first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; ffc08f44: 38 65 ff f8 addi r3,r5,-8 * block indicates that the previous block is used, this ensures that the * last block appears as used for the _Heap_Is_used() and _Heap_Is_free() * functions. */ last_block = _Heap_Block_at( first_block, first_block_size ); last_block->prev_size = first_block_size; ffc08f48: 7c a5 59 2e stwx r5,r5,r11 /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size; first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; first_block->next = _Heap_Free_list_tail( heap ); first_block->prev = _Heap_Free_list_head( heap ); ffc08f4c: 91 2b 00 0c stw r9,12(r11) last_block = _Heap_Block_at( first_block, first_block_size ); last_block->prev_size = first_block_size; last_block->size_and_flag = first_block_begin - (uintptr_t) last_block; /* Heap control */ heap->page_size = page_size; ffc08f50: 90 c9 00 10 stw r6,16(r9) heap->min_block_size = min_block_size; ffc08f54: 91 09 00 14 stw r8,20(r9) <== ALWAYS TAKEN heap->area_begin = heap_area_begin; ffc08f58: 90 89 00 18 stw r4,24(r9) heap->area_end = heap_area_end; ffc08f5c: 93 c9 00 1c stw r30,28(r9) <== ALWAYS TAKEN _Heap_Free_list_tail( heap )->prev = first_block; /* Statistics */ stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; ffc08f60: 90 a9 00 34 stw r5,52(r9) <== ALWAYS TAKEN stats->free_blocks = 1; stats->max_free_blocks = 1; ffc08f64: 91 89 00 3c stw r12,60(r9) <== ALWAYS TAKEN stats->used_blocks = 0; stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; ffc08f68: 90 09 00 54 stw r0,84(r9) stats->instance = instance++; ffc08f6c: 93 e9 00 28 stw r31,40(r9) <== ALWAYS TAKEN heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; _Heap_Free_list_tail( heap )->prev = first_block; /* Statistics */ stats->size = first_block_size; ffc08f70: 90 a9 00 2c stw r5,44(r9) stats->free_size = first_block_size; ffc08f74: 90 a9 00 30 stw r5,48(r9) <== ALWAYS TAKEN stats->min_free_size = first_block_size; stats->free_blocks = 1; ffc08f78: 91 89 00 38 stw r12,56(r9) stats->max_free_blocks = 1; stats->used_blocks = 0; ffc08f7c: 90 09 00 40 stw r0,64(r9) stats->max_search = 0; ffc08f80: 90 09 00 44 stw r0,68(r9) stats->allocs = 0; ffc08f84: 90 09 00 48 stw r0,72(r9) stats->searches = 0; ffc08f88: 90 09 00 4c stw r0,76(r9) stats->frees = 0; ffc08f8c: 90 09 00 50 stw r0,80(r9) heap->page_size = page_size; heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block; heap->last_block = last_block; ffc08f90: 91 49 00 24 stw r10,36(r9) _Heap_Free_list_head( heap )->next = first_block; _Heap_Free_list_tail( heap )->prev = first_block; ffc08f94: 91 69 00 0c stw r11,12(r9) stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc08f98: 93 a7 29 88 stw r29,10632(r7) /* Heap control */ heap->page_size = page_size; heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block; ffc08f9c: 91 69 00 20 stw r11,32(r9) heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; ffc08fa0: 91 69 00 08 stw r11,8(r9) ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; ffc08fa4: 48 00 00 08 b ffc08fac <_Heap_Initialize+0x144> <== ALWAYS TAKEN ffc08fa8: 38 60 00 00 li r3,0 } ffc08fac: 83 81 00 08 lwz r28,8(r1) ffc08fb0: 83 a1 00 0c lwz r29,12(r1) ffc08fb4: 83 c1 00 10 lwz r30,16(r1) ffc08fb8: 83 e1 00 14 lwz r31,20(r1) ffc08fbc: 38 21 00 18 addi r1,r1,24 <== ALWAYS TAKEN ffc08fc0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1ce20 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { ffc1ce20: 94 21 ff e8 stwu r1,-24(r1) ffc1ce24: 7c 08 02 a6 mflr r0 ffc1ce28: 7c cb 33 78 mr r11,r6 ffc1ce2c: 90 01 00 1c stw r0,28(r1) 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 ) ffc1ce30: 80 03 00 10 lwz r0,16(r3) ffc1ce34: 93 c1 00 10 stw r30,16(r1) ffc1ce38: 7c 9e 23 78 mr r30,r4 ffc1ce3c: 7c 84 03 96 divwu r4,r4,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 ffc1ce40: 81 23 00 20 lwz r9,32(r3) ffc1ce44: 93 a1 00 0c stw r29,12(r1) ffc1ce48: 93 e1 00 14 stw r31,20(r1) 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 ) ffc1ce4c: 7c 84 01 d6 mullw r4,r4,r0 uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr; Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size ); *old_size = 0; ffc1ce50: 38 00 00 00 li r0,0 ffc1ce54: 38 84 ff f8 addi r4,r4,-8 ffc1ce58: 90 06 00 00 stw r0,0(r6) 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 ffc1ce5c: 7f 89 20 40 cmplw cr7,r9,r4 void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { ffc1ce60: 7c 7f 1b 78 mr r31,r3 uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr; Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size ); *old_size = 0; *new_size = 0; ffc1ce64: 90 07 00 00 stw r0,0(r7) void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { ffc1ce68: 7c fd 3b 78 mr r29,r7 ffc1ce6c: 7c a6 2b 78 mr r6,r5 ffc1ce70: 41 9d 00 e4 bgt- cr7,ffc1cf54 <_Heap_Resize_block+0x134> ffc1ce74: 80 03 00 24 lwz r0,36(r3) ffc1ce78: 7f 80 20 40 cmplw cr7,r0,r4 ffc1ce7c: 41 9c 00 d8 blt- cr7,ffc1cf54 <_Heap_Resize_block+0x134> - 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; ffc1ce80: 80 04 00 04 lwz r0,4(r4) uintptr_t const block_begin = (uintptr_t) block; uintptr_t block_size = _Heap_Block_size( block ); uintptr_t block_end = block_begin + block_size; uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; ffc1ce84: 21 1e 00 04 subfic r8,r30,4 ffc1ce88: 54 00 00 3c rlwinm r0,r0,0,0,30 { Heap_Statistics *const stats = &heap->stats; uintptr_t const block_begin = (uintptr_t) block; uintptr_t block_size = _Heap_Block_size( block ); uintptr_t block_end = block_begin + block_size; ffc1ce8c: 7d 24 02 14 add r9,r4,r0 ffc1ce90: 81 49 00 04 lwz r10,4(r9) uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; ffc1ce94: 7d 08 4a 14 add r8,r8,r9 ffc1ce98: 55 4a 00 3c rlwinm r10,r10,0,0,30 RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); ffc1ce9c: 7c e9 52 14 add r7,r9,r10 ffc1cea0: 80 e7 00 04 lwz r7,4(r7) bool next_block_is_free = _Heap_Is_free( next_block );; _HAssert( _Heap_Is_block_in_heap( heap, next_block ) ); _HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; ffc1cea4: 91 0b 00 00 stw r8,0(r11) ffc1cea8: 54 e7 07 fe clrlwi r7,r7,31 ffc1ceac: 68 e7 00 01 xori r7,r7,1 if ( next_block_is_free ) { ffc1ceb0: 2f 87 00 00 cmpwi cr7,r7,0 ffc1ceb4: 41 9e 00 0c beq- cr7,ffc1cec0 <_Heap_Resize_block+0xa0> block_size += next_block_size; ffc1ceb8: 7c 00 52 14 add r0,r0,r10 alloc_size += next_block_size; ffc1cebc: 7d 08 52 14 add r8,r8,r10 } if ( new_alloc_size > alloc_size ) { ffc1cec0: 7f 86 40 40 cmplw cr7,r6,r8 ffc1cec4: 39 60 00 01 li r11,1 ffc1cec8: 41 9d 00 90 bgt- cr7,ffc1cf58 <_Heap_Resize_block+0x138> return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { ffc1cecc: 2f 87 00 00 cmpwi cr7,r7,0 ffc1ced0: 41 9e 00 4c beq- cr7,ffc1cf1c <_Heap_Resize_block+0xfc> uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc1ced4: 81 64 00 04 lwz r11,4(r4) RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc1ced8: 7d 00 22 14 add r8,r0,r4 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc1cedc: 55 6b 07 fe clrlwi r11,r11,31 ffc1cee0: 7c 00 5b 78 or r0,r0,r11 } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; ffc1cee4: 81 69 00 0c lwz r11,12(r9) uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc1cee8: 90 04 00 04 stw r0,4(r4) _Heap_Block_set_size( block, block_size ); _Heap_Free_list_remove( next_block ); next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; ffc1ceec: 80 08 00 04 lwz r0,4(r8) return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; ffc1cef0: 81 29 00 08 lwz r9,8(r9) ffc1cef4: 60 00 00 01 ori r0,r0,1 ffc1cef8: 90 08 00 04 stw r0,4(r8) /* Statistics */ --stats->free_blocks; stats->free_size -= next_block_size; ffc1cefc: 80 1f 00 30 lwz r0,48(r31) next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; /* Statistics */ --stats->free_blocks; ffc1cf00: 81 1f 00 38 lwz r8,56(r31) stats->free_size -= next_block_size; ffc1cf04: 7d 4a 00 50 subf r10,r10,r0 Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; ffc1cf08: 91 69 00 0c stw r11,12(r9) next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; /* Statistics */ --stats->free_blocks; ffc1cf0c: 38 08 ff ff addi r0,r8,-1 ffc1cf10: 90 1f 00 38 stw r0,56(r31) stats->free_size -= next_block_size; ffc1cf14: 91 5f 00 30 stw r10,48(r31) RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; ffc1cf18: 91 2b 00 08 stw r9,8(r11) } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); ffc1cf1c: 7f c5 f3 78 mr r5,r30 ffc1cf20: 7f e3 fb 78 mr r3,r31 ffc1cf24: 4b fe c1 95 bl ffc090b8 <_Heap_Block_allocate> <== ALWAYS TAKEN block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; /* Statistics */ ++stats->resizes; ffc1cf28: 39 60 00 00 li r11,0 block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; ffc1cf2c: 81 23 00 04 lwz r9,4(r3) ffc1cf30: 55 29 00 3c rlwinm r9,r9,0,0,30 ffc1cf34: 38 09 00 04 addi r0,r9,4 ffc1cf38: 7f de 00 50 subf r30,r30,r0 ffc1cf3c: 7c 63 f2 14 add r3,r3,r30 ffc1cf40: 90 7d 00 00 stw r3,0(r29) /* Statistics */ ++stats->resizes; ffc1cf44: 81 3f 00 54 lwz r9,84(r31) ffc1cf48: 38 09 00 01 addi r0,r9,1 ffc1cf4c: 90 1f 00 54 stw r0,84(r31) ffc1cf50: 48 00 00 08 b ffc1cf58 <_Heap_Resize_block+0x138> <== ALWAYS TAKEN ffc1cf54: 39 60 00 02 li r11,2 new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } ffc1cf58: 80 01 00 1c lwz r0,28(r1) ffc1cf5c: 7d 63 5b 78 mr r3,r11 ffc1cf60: 83 a1 00 0c lwz r29,12(r1) ffc1cf64: 7c 08 03 a6 mtlr r0 ffc1cf68: 83 c1 00 10 lwz r30,16(r1) ffc1cf6c: 83 e1 00 14 lwz r31,20(r1) ffc1cf70: 38 21 00 18 addi r1,r1,24 ffc1cf74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1cf78 <_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 ) ffc1cf78: 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; ffc1cf7c: 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 ) ffc1cf80: 7d 64 03 96 divwu r11,r4,r0 ffc1cf84: 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 ffc1cf88: 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 ) ffc1cf8c: 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 ffc1cf90: 7f 8b 48 40 cmplw cr7,r11,r9 ffc1cf94: 41 9c 00 14 blt- cr7,ffc1cfa8 <_Heap_Size_of_alloc_area+0x30> <== NEVER TAKEN ffc1cf98: 80 03 00 24 lwz r0,36(r3) ffc1cf9c: 7c 0b 00 10 subfc r0,r11,r0 ffc1cfa0: 38 00 00 00 li r0,0 ffc1cfa4: 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 ) ) { ffc1cfa8: 2f 80 00 00 cmpwi cr7,r0,0 ffc1cfac: 41 9e 00 54 beq- cr7,ffc1d000 <_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); ffc1cfb0: 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 ffc1cfb4: 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); ffc1cfb8: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc1cfbc: 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 ffc1cfc0: 7f 8b 48 40 cmplw cr7,r11,r9 ffc1cfc4: 41 9c 00 14 blt- cr7,ffc1cfd8 <_Heap_Size_of_alloc_area+0x60> <== NEVER TAKEN ffc1cfc8: 81 43 00 24 lwz r10,36(r3) ffc1cfcc: 7d 4b 50 10 subfc r10,r11,r10 ffc1cfd0: 39 40 00 00 li r10,0 ffc1cfd4: 7d 4a 51 14 adde r10,r10,r10 } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( ffc1cfd8: 2f 8a 00 00 cmpwi cr7,r10,0 ffc1cfdc: 41 9e 00 24 beq- cr7,ffc1d000 <_Heap_Size_of_alloc_area+0x88> <== NEVER TAKEN ffc1cfe0: 80 0b 00 04 lwz r0,4(r11) ffc1cfe4: 70 09 00 01 andi. r9,r0,1 ffc1cfe8: 41 82 00 18 beq- ffc1d000 <_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; ffc1cfec: 20 84 00 04 subfic r4,r4,4 ffc1cff0: 7d 64 5a 14 add r11,r4,r11 ffc1cff4: 91 65 00 00 stw r11,0(r5) ffc1cff8: 38 60 00 01 li r3,1 return true; ffc1cffc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1d000: 38 60 00 00 li r3,0 } ffc1d004: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09eb4 <_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; ffc09eb4: 2f 85 00 00 cmpwi cr7,r5,0 bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { ffc09eb8: 94 21 ff 98 stwu r1,-104(r1) ffc09ebc: 7c 08 02 a6 mflr r0 ffc09ec0: 93 21 00 4c stw r25,76(r1) ffc09ec4: 90 01 00 6c stw r0,108(r1) ffc09ec8: 93 61 00 54 stw r27,84(r1) ffc09ecc: 93 81 00 58 stw r28,88(r1) ffc09ed0: 93 a1 00 5c stw r29,92(r1) ffc09ed4: 7c 7d 1b 78 mr r29,r3 ffc09ed8: 93 c1 00 60 stw r30,96(r1) ffc09edc: 7c 9e 23 78 mr r30,r4 ffc09ee0: 93 e1 00 64 stw r31,100(r1) ffc09ee4: 91 c1 00 20 stw r14,32(r1) ffc09ee8: 91 e1 00 24 stw r15,36(r1) ffc09eec: 92 01 00 28 stw r16,40(r1) ffc09ef0: 92 21 00 2c stw r17,44(r1) ffc09ef4: 92 41 00 30 stw r18,48(r1) ffc09ef8: 92 61 00 34 stw r19,52(r1) ffc09efc: 92 81 00 38 stw r20,56(r1) ffc09f00: 92 a1 00 3c stw r21,60(r1) ffc09f04: 92 c1 00 40 stw r22,64(r1) ffc09f08: 92 e1 00 44 stw r23,68(r1) ffc09f0c: 93 01 00 48 stw r24,72(r1) ffc09f10: 93 41 00 50 stw r26,80(r1) uintptr_t const page_size = heap->page_size; ffc09f14: 83 83 00 10 lwz r28,16(r3) uintptr_t const min_block_size = heap->min_block_size; ffc09f18: 83 63 00 14 lwz r27,20(r3) Heap_Block *const last_block = heap->last_block; ffc09f1c: 83 23 00 24 lwz r25,36(r3) Heap_Block *block = heap->first_block; ffc09f20: 83 e3 00 20 lwz r31,32(r3) Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; ffc09f24: 40 9e 00 10 bne- cr7,ffc09f34 <_Heap_Walk+0x80> ffc09f28: 3d 20 ff c1 lis r9,-63 ffc09f2c: 39 29 9e b0 addi r9,r9,-24912 ffc09f30: 48 00 00 0c b ffc09f3c <_Heap_Walk+0x88> <== ALWAYS TAKEN ffc09f34: 3d 20 ff c1 lis r9,-63 ffc09f38: 39 29 a4 4c addi r9,r9,-23476 ffc09f3c: 91 21 00 18 stw r9,24(r1) if ( !_System_state_Is_up( _System_state_Get() ) ) { ffc09f40: 3d 20 00 00 lis r9,0 ffc09f44: 80 09 27 d4 lwz r0,10196(r9) ffc09f48: 2f 80 00 03 cmpwi cr7,r0,3 ffc09f4c: 40 be 04 94 bne+ cr7,ffc0a3e0 <_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)( ffc09f50: 80 1d 00 0c lwz r0,12(r29) ffc09f54: 3c a0 ff c2 lis r5,-62 ffc09f58: 81 1d 00 18 lwz r8,24(r29) ffc09f5c: 38 a5 f3 74 addi r5,r5,-3212 ffc09f60: 81 3d 00 1c lwz r9,28(r29) ffc09f64: 7f c3 f3 78 mr r3,r30 ffc09f68: 81 7d 00 08 lwz r11,8(r29) ffc09f6c: 38 80 00 00 li r4,0 ffc09f70: 90 01 00 10 stw r0,16(r1) ffc09f74: 7f 86 e3 78 mr r6,r28 ffc09f78: 7f 67 db 78 mr r7,r27 ffc09f7c: 80 01 00 18 lwz r0,24(r1) ffc09f80: 7f ea fb 78 mr r10,r31 ffc09f84: 91 61 00 0c stw r11,12(r1) ffc09f88: 7c 09 03 a6 mtctr r0 ffc09f8c: 93 21 00 08 stw r25,8(r1) ffc09f90: 4c c6 31 82 crclr 4*cr1+eq ffc09f94: 4e 80 04 21 bctrl <== ALWAYS TAKEN heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { ffc09f98: 2f 9c 00 00 cmpwi cr7,r28,0 ffc09f9c: 40 be 00 14 bne+ cr7,ffc09fb0 <_Heap_Walk+0xfc> (*printer)( source, true, "page size is zero\n" ); ffc09fa0: 3c a0 ff c2 lis r5,-62 ffc09fa4: 7f c3 f3 78 mr r3,r30 ffc09fa8: 38 a5 f4 05 addi r5,r5,-3067 ffc09fac: 48 00 00 c8 b ffc0a074 <_Heap_Walk+0x1c0> <== ALWAYS TAKEN return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { ffc09fb0: 73 89 00 07 andi. r9,r28,7 ffc09fb4: 41 a2 00 18 beq+ ffc09fcc <_Heap_Walk+0x118> (*printer)( ffc09fb8: 3c a0 ff c2 lis r5,-62 ffc09fbc: 7f c3 f3 78 mr r3,r30 ffc09fc0: 38 a5 f4 18 addi r5,r5,-3048 ffc09fc4: 7f 86 e3 78 mr r6,r28 ffc09fc8: 48 00 03 8c b ffc0a354 <_Heap_Walk+0x4a0> <== ALWAYS TAKEN ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { ffc09fcc: 7c 1b e3 96 divwu r0,r27,r28 ffc09fd0: 7c 00 e1 d6 mullw r0,r0,r28 ffc09fd4: 7f 9b 00 00 cmpw cr7,r27,r0 ffc09fd8: 41 be 00 18 beq+ cr7,ffc09ff0 <_Heap_Walk+0x13c> (*printer)( ffc09fdc: 3c a0 ff c2 lis r5,-62 ffc09fe0: 7f c3 f3 78 mr r3,r30 ffc09fe4: 38 a5 f4 36 addi r5,r5,-3018 ffc09fe8: 7f 66 db 78 mr r6,r27 ffc09fec: 48 00 03 68 b ffc0a354 <_Heap_Walk+0x4a0> <== ALWAYS TAKEN ); return false; } if ( ffc09ff0: 38 1f 00 08 addi r0,r31,8 ffc09ff4: 7d 20 e3 96 divwu r9,r0,r28 ffc09ff8: 7d 29 e1 d6 mullw r9,r9,r28 ffc09ffc: 7f 80 48 00 cmpw cr7,r0,r9 <== ALWAYS TAKEN ffc0a000: 41 be 00 14 beq+ cr7,ffc0a014 <_Heap_Walk+0x160> !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( ffc0a004: 3c a0 ff c2 lis r5,-62 ffc0a008: 7f c3 f3 78 mr r3,r30 ffc0a00c: 38 a5 f4 5a addi r5,r5,-2982 ffc0a010: 48 00 03 40 b ffc0a350 <_Heap_Walk+0x49c> <== ALWAYS TAKEN ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { ffc0a014: 80 1f 00 04 lwz r0,4(r31) ffc0a018: 70 09 00 01 andi. r9,r0,1 ffc0a01c: 40 a2 00 14 bne+ ffc0a030 <_Heap_Walk+0x17c> (*printer)( ffc0a020: 3c a0 ff c2 lis r5,-62 ffc0a024: 7f c3 f3 78 mr r3,r30 ffc0a028: 38 a5 f4 8b addi r5,r5,-2933 ffc0a02c: 48 00 00 48 b ffc0a074 <_Heap_Walk+0x1c0> <== ALWAYS TAKEN ); return false; } if ( first_block->prev_size != page_size ) { ffc0a030: 83 5f 00 00 lwz r26,0(r31) ffc0a034: 7f 9a e0 00 cmpw cr7,r26,r28 ffc0a038: 41 be 00 18 beq+ cr7,ffc0a050 <_Heap_Walk+0x19c> (*printer)( ffc0a03c: 3c a0 ff c2 lis r5,-62 ffc0a040: 7f c3 f3 78 mr r3,r30 ffc0a044: 38 a5 f4 b9 addi r5,r5,-2887 ffc0a048: 7f 46 d3 78 mr r6,r26 ffc0a04c: 48 00 02 18 b ffc0a264 <_Heap_Walk+0x3b0> <== ALWAYS TAKEN ); return false; } if ( _Heap_Is_free( last_block ) ) { ffc0a050: 81 39 00 04 lwz r9,4(r25) ffc0a054: 55 29 00 3c rlwinm r9,r9,0,0,30 ffc0a058: 7d 39 4a 14 add r9,r25,r9 ffc0a05c: 80 09 00 04 lwz r0,4(r9) ffc0a060: 70 09 00 01 andi. r9,r0,1 ffc0a064: 40 a2 00 28 bne+ ffc0a08c <_Heap_Walk+0x1d8> (*printer)( ffc0a068: 3c a0 ff c2 lis r5,-62 ffc0a06c: 7f c3 f3 78 mr r3,r30 ffc0a070: 38 a5 f4 e4 addi r5,r5,-2844 ffc0a074: 80 01 00 18 lwz r0,24(r1) ffc0a078: 38 80 00 01 li r4,1 ffc0a07c: 7c 09 03 a6 mtctr r0 ffc0a080: 4c c6 31 82 crclr 4*cr1+eq ffc0a084: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0a088: 48 00 02 e0 b ffc0a368 <_Heap_Walk+0x4b4> <== ALWAYS TAKEN int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; ffc0a08c: 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; ffc0a090: 7f a0 eb 78 mr r0,r29 ffc0a094: 80 dd 00 08 lwz r6,8(r29) ffc0a098: 48 00 00 a4 b ffc0a13c <_Heap_Walk+0x288> <== ALWAYS TAKEN 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 ffc0a09c: 81 1d 00 20 lwz r8,32(r29) ffc0a0a0: 7f 88 30 40 cmplw cr7,r8,r6 ffc0a0a4: 41 9d 00 14 bgt- cr7,ffc0a0b8 <_Heap_Walk+0x204> ffc0a0a8: 81 7d 00 24 lwz r11,36(r29) ffc0a0ac: 7d 66 58 10 subfc r11,r6,r11 ffc0a0b0: 39 60 00 00 li r11,0 ffc0a0b4: 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 ) ) { ffc0a0b8: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a0bc: 40 be 00 14 bne+ cr7,ffc0a0d0 <_Heap_Walk+0x21c> (*printer)( ffc0a0c0: 3c a0 ff c2 lis r5,-62 ffc0a0c4: 7f c3 f3 78 mr r3,r30 ffc0a0c8: 38 a5 f4 f9 addi r5,r5,-2823 ffc0a0cc: 48 00 02 88 b ffc0a354 <_Heap_Walk+0x4a0> <== ALWAYS TAKEN ); return false; } if ( ffc0a0d0: 7d 6a 4b 96 divwu r11,r10,r9 ffc0a0d4: 7d 6b 49 d6 mullw r11,r11,r9 ffc0a0d8: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0a0dc: 41 be 00 14 beq+ cr7,ffc0a0f0 <_Heap_Walk+0x23c> !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( ffc0a0e0: 3c a0 ff c2 lis r5,-62 ffc0a0e4: 7f c3 f3 78 mr r3,r30 ffc0a0e8: 38 a5 f5 19 addi r5,r5,-2791 ffc0a0ec: 48 00 02 68 b ffc0a354 <_Heap_Walk+0x4a0> <== ALWAYS TAKEN ); return false; } if ( _Heap_Is_used( free_block ) ) { ffc0a0f0: 81 66 00 04 lwz r11,4(r6) ffc0a0f4: 55 6b 00 3c rlwinm r11,r11,0,0,30 ffc0a0f8: 7d 66 5a 14 add r11,r6,r11 ffc0a0fc: 81 6b 00 04 lwz r11,4(r11) ffc0a100: 71 6a 00 01 andi. r10,r11,1 ffc0a104: 41 a2 00 14 beq+ ffc0a118 <_Heap_Walk+0x264> (*printer)( ffc0a108: 3c a0 ff c2 lis r5,-62 ffc0a10c: 7f c3 f3 78 mr r3,r30 ffc0a110: 38 a5 f5 49 addi r5,r5,-2743 ffc0a114: 48 00 02 40 b ffc0a354 <_Heap_Walk+0x4a0> <== ALWAYS TAKEN ); return false; } if ( free_block->prev != prev_block ) { ffc0a118: 80 e6 00 0c lwz r7,12(r6) ffc0a11c: 7f 87 00 00 cmpw cr7,r7,r0 return false; } prev_block = free_block; free_block = free_block->next; ffc0a120: 7c c0 33 78 mr r0,r6 ); return false; } if ( free_block->prev != prev_block ) { ffc0a124: 41 be 00 14 beq+ cr7,ffc0a138 <_Heap_Walk+0x284> (*printer)( ffc0a128: 3c a0 ff c2 lis r5,-62 ffc0a12c: 7f c3 f3 78 mr r3,r30 ffc0a130: 38 a5 f5 65 addi r5,r5,-2715 ffc0a134: 48 00 01 34 b ffc0a268 <_Heap_Walk+0x3b4> <== ALWAYS TAKEN return false; } prev_block = free_block; free_block = free_block->next; ffc0a138: 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 ) { ffc0a13c: 7f 86 e8 00 cmpw cr7,r6,r29 ); return false; } if ( ffc0a140: 39 46 00 08 addi r10,r6,8 ffc0a144: 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 ) { ffc0a148: 40 9e ff 54 bne+ cr7,ffc0a09c <_Heap_Walk+0x1e8> ffc0a14c: 48 00 02 4c b ffc0a398 <_Heap_Walk+0x4e4> <== ALWAYS TAKEN - 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; ffc0a150: 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 ) { ffc0a154: 73 09 00 01 andi. r9,r24,1 ffc0a158: 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); ffc0a15c: 7f 9f c2 14 add r28,r31,r24 ffc0a160: 41 82 00 2c beq- ffc0a18c <_Heap_Walk+0x2d8> (*printer)( ffc0a164: 80 01 00 18 lwz r0,24(r1) ffc0a168: 7f c3 f3 78 mr r3,r30 ffc0a16c: 38 80 00 00 li r4,0 ffc0a170: 7e 85 a3 78 mr r5,r20 ffc0a174: 7c 09 03 a6 mtctr r0 ffc0a178: 7f e6 fb 78 mr r6,r31 ffc0a17c: 7f 07 c3 78 mr r7,r24 ffc0a180: 4c c6 31 82 crclr 4*cr1+eq ffc0a184: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0a188: 48 00 00 2c b ffc0a1b4 <_Heap_Walk+0x300> <== ALWAYS TAKEN "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0a18c: 80 01 00 18 lwz r0,24(r1) ffc0a190: 7f c3 f3 78 mr r3,r30 ffc0a194: 38 80 00 00 li r4,0 ffc0a198: 81 1f 00 00 lwz r8,0(r31) ffc0a19c: 7e 65 9b 78 mr r5,r19 ffc0a1a0: 7c 09 03 a6 mtctr r0 ffc0a1a4: 7f e6 fb 78 mr r6,r31 ffc0a1a8: 7f 07 c3 78 mr r7,r24 ffc0a1ac: 4c c6 31 82 crclr 4*cr1+eq ffc0a1b0: 4e 80 04 21 bctrl <== ALWAYS TAKEN 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 ffc0a1b4: 81 3d 00 20 lwz r9,32(r29) ffc0a1b8: 38 00 00 00 li r0,0 ffc0a1bc: 7f 89 e0 40 cmplw cr7,r9,r28 ffc0a1c0: 41 9d 00 14 bgt- cr7,ffc0a1d4 <_Heap_Walk+0x320> <== NEVER TAKEN ffc0a1c4: 80 1d 00 24 lwz r0,36(r29) ffc0a1c8: 7c 1c 00 10 subfc r0,r28,r0 ffc0a1cc: 38 00 00 00 li r0,0 ffc0a1d0: 7c 00 01 14 adde r0,r0,r0 block_size, block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { ffc0a1d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a1d8: 40 be 00 14 bne+ cr7,ffc0a1ec <_Heap_Walk+0x338> (*printer)( ffc0a1dc: 3c a0 ff c2 lis r5,-62 ffc0a1e0: 7f c3 f3 78 mr r3,r30 ffc0a1e4: 38 a5 f5 d3 addi r5,r5,-2605 ffc0a1e8: 48 00 00 78 b ffc0a260 <_Heap_Walk+0x3ac> <== ALWAYS TAKEN ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { ffc0a1ec: 7c 18 d3 96 divwu r0,r24,r26 ffc0a1f0: 7c 00 d1 d6 mullw r0,r0,r26 ffc0a1f4: 7f 98 00 00 cmpw cr7,r24,r0 ffc0a1f8: 41 be 00 1c beq+ cr7,ffc0a214 <_Heap_Walk+0x360> (*printer)( ffc0a1fc: 3c a0 ff c2 lis r5,-62 ffc0a200: 7f c3 f3 78 mr r3,r30 ffc0a204: 38 a5 f6 00 addi r5,r5,-2560 ffc0a208: 7f e6 fb 78 mr r6,r31 ffc0a20c: 7f 07 c3 78 mr r7,r24 ffc0a210: 48 00 00 58 b ffc0a268 <_Heap_Walk+0x3b4> <== ALWAYS TAKEN ); return false; } if ( block_size < min_block_size ) { ffc0a214: 7f 98 d8 40 cmplw cr7,r24,r27 ffc0a218: 40 bc 00 34 bge+ cr7,ffc0a24c <_Heap_Walk+0x398> (*printer)( ffc0a21c: 80 01 00 18 lwz r0,24(r1) ffc0a220: 3c a0 ff c2 lis r5,-62 ffc0a224: 7f c3 f3 78 mr r3,r30 ffc0a228: 38 a5 f6 2e addi r5,r5,-2514 ffc0a22c: 7c 09 03 a6 mtctr r0 ffc0a230: 7f e6 fb 78 mr r6,r31 ffc0a234: 7f 07 c3 78 mr r7,r24 ffc0a238: 7f 68 db 78 mr r8,r27 ffc0a23c: 38 80 00 01 li r4,1 ffc0a240: 4c c6 31 82 crclr 4*cr1+eq ffc0a244: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0a248: 48 00 01 20 b ffc0a368 <_Heap_Walk+0x4b4> <== ALWAYS TAKEN ); return false; } if ( next_block_begin <= block_begin ) { ffc0a24c: 7f 9c f8 40 cmplw cr7,r28,r31 ffc0a250: 41 bd 00 30 bgt+ cr7,ffc0a280 <_Heap_Walk+0x3cc> (*printer)( ffc0a254: 3c a0 ff c2 lis r5,-62 ffc0a258: 7f c3 f3 78 mr r3,r30 ffc0a25c: 38 a5 f6 59 addi r5,r5,-2471 ffc0a260: 7f e6 fb 78 mr r6,r31 ffc0a264: 7f 87 e3 78 mr r7,r28 ffc0a268: 80 01 00 18 lwz r0,24(r1) ffc0a26c: 38 80 00 01 li r4,1 ffc0a270: 7c 09 03 a6 mtctr r0 ffc0a274: 4c c6 31 82 crclr 4*cr1+eq ffc0a278: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0a27c: 48 00 00 ec b ffc0a368 <_Heap_Walk+0x4b4> <== ALWAYS TAKEN ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { ffc0a280: 80 1c 00 04 lwz r0,4(r28) ffc0a284: 70 09 00 01 andi. r9,r0,1 ffc0a288: 40 82 01 08 bne- ffc0a390 <_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; ffc0a28c: 80 1d 00 08 lwz r0,8(r29) ffc0a290: 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)( ffc0a294: 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; ffc0a298: 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; ffc0a29c: 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; ffc0a2a0: 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; ffc0a2a4: 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); ffc0a2a8: 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; ffc0a2ac: 41 9e 00 14 beq- cr7,ffc0a2c0 <_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)" : ""), ffc0a2b0: 7f 87 e8 00 cmpw cr7,r7,r29 ffc0a2b4: 7e e8 bb 78 mr r8,r23 ffc0a2b8: 40 be 00 08 bne+ cr7,ffc0a2c0 <_Heap_Walk+0x40c> ffc0a2bc: 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)( ffc0a2c0: 81 3f 00 08 lwz r9,8(r31) ffc0a2c4: 7e 0a 83 78 mr r10,r16 ffc0a2c8: 7f 89 00 00 cmpw cr7,r9,r0 ffc0a2cc: 41 9e 00 14 beq- cr7,ffc0a2e0 <_Heap_Walk+0x42c> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0a2d0: 7f 89 e8 00 cmpw cr7,r9,r29 ffc0a2d4: 7e ea bb 78 mr r10,r23 ffc0a2d8: 40 be 00 08 bne+ cr7,ffc0a2e0 <_Heap_Walk+0x42c> ffc0a2dc: 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)( ffc0a2e0: 80 01 00 18 lwz r0,24(r1) ffc0a2e4: 7f c3 f3 78 mr r3,r30 ffc0a2e8: 38 80 00 00 li r4,0 ffc0a2ec: 7e 45 93 78 mr r5,r18 ffc0a2f0: 7c 09 03 a6 mtctr r0 ffc0a2f4: 7f e6 fb 78 mr r6,r31 ffc0a2f8: 4c c6 31 82 crclr 4*cr1+eq ffc0a2fc: 4e 80 04 21 bctrl <== ALWAYS TAKEN block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { ffc0a300: 81 16 00 00 lwz r8,0(r22) ffc0a304: 7f 98 40 00 cmpw cr7,r24,r8 ffc0a308: 41 9e 00 34 beq- cr7,ffc0a33c <_Heap_Walk+0x488> (*printer)( ffc0a30c: 80 01 00 18 lwz r0,24(r1) ffc0a310: 3c a0 ff c2 lis r5,-62 ffc0a314: 7f c3 f3 78 mr r3,r30 ffc0a318: 38 a5 f6 e2 addi r5,r5,-2334 ffc0a31c: 7c 09 03 a6 mtctr r0 ffc0a320: 7f e6 fb 78 mr r6,r31 ffc0a324: 7f 07 c3 78 mr r7,r24 ffc0a328: 7e c9 b3 78 mr r9,r22 ffc0a32c: 38 80 00 01 li r4,1 ffc0a330: 4c c6 31 82 crclr 4*cr1+eq ffc0a334: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0a338: 48 00 00 30 b ffc0a368 <_Heap_Walk+0x4b4> <== ALWAYS TAKEN ); return false; } if ( !prev_used ) { ffc0a33c: 72 a9 00 01 andi. r9,r21,1 ffc0a340: 40 a2 00 30 bne+ ffc0a370 <_Heap_Walk+0x4bc> (*printer)( ffc0a344: 3c a0 ff c2 lis r5,-62 ffc0a348: 7f c3 f3 78 mr r3,r30 ffc0a34c: 38 a5 f7 1b addi r5,r5,-2277 ffc0a350: 7f e6 fb 78 mr r6,r31 ffc0a354: 80 01 00 18 lwz r0,24(r1) ffc0a358: 38 80 00 01 li r4,1 ffc0a35c: 7c 09 03 a6 mtctr r0 ffc0a360: 4c c6 31 82 crclr 4*cr1+eq ffc0a364: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0a368: 38 60 00 00 li r3,0 ffc0a36c: 48 00 00 78 b ffc0a3e4 <_Heap_Walk+0x530> <== ALWAYS TAKEN ffc0a370: 81 3d 00 08 lwz r9,8(r29) ffc0a374: 48 00 00 0c b ffc0a380 <_Heap_Walk+0x4cc> <== ALWAYS TAKEN { 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 ) { ffc0a378: 41 9a 00 18 beq- cr6,ffc0a390 <_Heap_Walk+0x4dc> return true; } free_block = free_block->next; ffc0a37c: 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 ) { ffc0a380: 7f 89 e8 00 cmpw cr7,r9,r29 if ( free_block == block ) { ffc0a384: 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 ) { ffc0a388: 40 9e ff f0 bne+ cr7,ffc0a378 <_Heap_Walk+0x4c4> ffc0a38c: 48 00 00 b0 b ffc0a43c <_Heap_Walk+0x588> <== ALWAYS TAKEN ffc0a390: 7f 9f e3 78 mr r31,r28 ffc0a394: 48 00 00 44 b ffc0a3d8 <_Heap_Walk+0x524> <== ALWAYS TAKEN "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0a398: 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)( ffc0a39c: 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)( ffc0a3a0: 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)" : "") ffc0a3a4: 3e 20 ff c2 lis r17,-62 ffc0a3a8: 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)( ffc0a3ac: 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)" : ""), ffc0a3b0: 3d e0 ff c2 lis r15,-62 ffc0a3b4: 3d c0 ff c2 lis r14,-62 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0a3b8: 3a 73 f5 ae addi r19,r19,-2642 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)( ffc0a3bc: 3a 94 f5 97 addi r20,r20,-2665 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)( ffc0a3c0: 3a 52 f6 b6 addi r18,r18,-2378 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0a3c4: 3a 31 f6 ac addi r17,r17,-2388 ffc0a3c8: 3a f7 f2 c0 addi r23,r23,-3392 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)( ffc0a3cc: 3a 10 f6 a2 addi r16,r16,-2398 "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)" : ""), ffc0a3d0: 39 ef f6 98 addi r15,r15,-2408 ffc0a3d4: 39 ce f6 8d addi r14,r14,-2419 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { ffc0a3d8: 7f 9f c8 00 cmpw cr7,r31,r25 ffc0a3dc: 40 9e fd 74 bne+ cr7,ffc0a150 <_Heap_Walk+0x29c> ffc0a3e0: 38 60 00 01 li r3,1 block = next_block; } return true; } ffc0a3e4: 80 01 00 6c lwz r0,108(r1) ffc0a3e8: 81 c1 00 20 lwz r14,32(r1) ffc0a3ec: 7c 08 03 a6 mtlr r0 ffc0a3f0: 81 e1 00 24 lwz r15,36(r1) ffc0a3f4: 82 01 00 28 lwz r16,40(r1) ffc0a3f8: 82 21 00 2c lwz r17,44(r1) ffc0a3fc: 82 41 00 30 lwz r18,48(r1) ffc0a400: 82 61 00 34 lwz r19,52(r1) ffc0a404: 82 81 00 38 lwz r20,56(r1) ffc0a408: 82 a1 00 3c lwz r21,60(r1) ffc0a40c: 82 c1 00 40 lwz r22,64(r1) ffc0a410: 82 e1 00 44 lwz r23,68(r1) ffc0a414: 83 01 00 48 lwz r24,72(r1) ffc0a418: 83 21 00 4c lwz r25,76(r1) ffc0a41c: 83 41 00 50 lwz r26,80(r1) ffc0a420: 83 61 00 54 lwz r27,84(r1) ffc0a424: 83 81 00 58 lwz r28,88(r1) ffc0a428: 83 a1 00 5c lwz r29,92(r1) ffc0a42c: 83 c1 00 60 lwz r30,96(r1) ffc0a430: 83 e1 00 64 lwz r31,100(r1) ffc0a434: 38 21 00 68 addi r1,r1,104 ffc0a438: 4e 80 00 20 blr <== ALWAYS TAKEN return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( ffc0a43c: 3c a0 ff c2 lis r5,-62 ffc0a440: 7f c3 f3 78 mr r3,r30 ffc0a444: 38 a5 f7 4a addi r5,r5,-2230 ffc0a448: 4b ff ff 08 b ffc0a350 <_Heap_Walk+0x49c> <== ALWAYS TAKEN ffc0a44c <_Heap_Walk_print>: { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0a44c: 94 21 ff 88 stwu r1,-120(r1) ffc0a450: 7c 08 02 a6 mflr r0 ffc0a454: 93 e1 00 74 stw r31,116(r1) ffc0a458: 90 01 00 7c stw r0,124(r1) ffc0a45c: 7c 60 1b 78 mr r0,r3 ffc0a460: 90 c1 00 1c stw r6,28(r1) ffc0a464: 90 e1 00 20 stw r7,32(r1) ffc0a468: 91 01 00 24 stw r8,36(r1) ffc0a46c: 91 21 00 28 stw r9,40(r1) ffc0a470: 91 41 00 2c stw r10,44(r1) ffc0a474: 40 86 00 24 bne- cr1,ffc0a498 <_Heap_Walk_print+0x4c> <== ALWAYS TAKEN ffc0a478: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0a47c: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0a480: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0a484: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0a488: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0a48c: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0a490: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0a494: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list ap; if ( error ) { ffc0a498: 2f 84 00 00 cmpwi cr7,r4,0 { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0a49c: 7c bf 2b 78 mr r31,r5 va_list ap; if ( error ) { ffc0a4a0: 41 be 00 10 beq+ cr7,ffc0a4b0 <_Heap_Walk_print+0x64> printk( "FAIL[%d]: ", source ); ffc0a4a4: 3c 60 ff c2 lis r3,-62 ffc0a4a8: 38 63 f7 75 addi r3,r3,-2187 ffc0a4ac: 48 00 00 0c b ffc0a4b8 <_Heap_Walk_print+0x6c> <== ALWAYS TAKEN } else { printk( "PASS[%d]: ", source ); ffc0a4b0: 3c 60 ff c2 lis r3,-62 ffc0a4b4: 38 63 f7 80 addi r3,r3,-2176 ffc0a4b8: 7c 04 03 78 mr r4,r0 ffc0a4bc: 4c c6 31 82 crclr 4*cr1+eq ffc0a4c0: 4b ff b4 49 bl ffc05908 <== ALWAYS TAKEN } va_start( ap, fmt ); ffc0a4c4: 38 00 00 03 li r0,3 ffc0a4c8: 98 01 00 08 stb r0,8(r1) ffc0a4cc: 38 00 00 00 li r0,0 vprintk( fmt, ap ); ffc0a4d0: 7f e3 fb 78 mr r3,r31 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0a4d4: 98 01 00 09 stb r0,9(r1) ffc0a4d8: 38 01 00 80 addi r0,r1,128 vprintk( fmt, ap ); ffc0a4dc: 38 81 00 08 addi r4,r1,8 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0a4e0: 90 01 00 0c stw r0,12(r1) ffc0a4e4: 38 01 00 10 addi r0,r1,16 ffc0a4e8: 90 01 00 10 stw r0,16(r1) vprintk( fmt, ap ); ffc0a4ec: 4b ff d4 79 bl ffc07964 <== ALWAYS TAKEN va_end( ap ); } ffc0a4f0: 80 01 00 7c lwz r0,124(r1) ffc0a4f4: 83 e1 00 74 lwz r31,116(r1) ffc0a4f8: 38 21 00 78 addi r1,r1,120 ffc0a4fc: 7c 08 03 a6 mtlr r0 ffc0a500: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09eb0 <_Heap_Walk_print_nothing>: const char *fmt, ... ) { /* Do nothing */ } ffc09eb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08408 <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { ffc08408: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0840c: 7c 08 02 a6 mflr r0 ffc08410: 93 c1 00 08 stw r30,8(r1) rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc08414: 3f c0 00 00 lis r30,0 ffc08418: 3b de 27 ec addi r30,r30,10220 * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { ffc0841c: 93 e1 00 0c stw r31,12(r1) ffc08420: 3b e0 00 00 li r31,0 <== ALWAYS TAKEN ffc08424: 90 01 00 14 stw r0,20(r1) rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc08428: 48 00 00 08 b ffc08430 <_IO_Initialize_all_drivers+0x28> <== ALWAYS TAKEN (void) rtems_io_initialize( major, 0, NULL ); ffc0842c: 48 00 60 a5 bl ffc0e4d0 <== ALWAYS TAKEN void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc08430: 80 1e 00 00 lwz r0,0(r30) (void) rtems_io_initialize( major, 0, NULL ); ffc08434: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc08438: 38 80 00 00 li r4,0 void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc0843c: 7f 9f 00 40 cmplw cr7,r31,r0 (void) rtems_io_initialize( major, 0, NULL ); ffc08440: 38 a0 00 00 li r5,0 void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc08444: 3b ff 00 01 addi r31,r31,1 ffc08448: 41 9c ff e4 blt+ cr7,ffc0842c <_IO_Initialize_all_drivers+0x24> (void) rtems_io_initialize( major, 0, NULL ); } ffc0844c: 80 01 00 14 lwz r0,20(r1) ffc08450: 83 c1 00 08 lwz r30,8(r1) ffc08454: 7c 08 03 a6 mtlr r0 ffc08458: 83 e1 00 0c lwz r31,12(r1) ffc0845c: 38 21 00 10 addi r1,r1,16 ffc08460: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08464 <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { ffc08464: 94 21 ff d8 stwu r1,-40(r1) ffc08468: 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; ffc0846c: 3d 20 00 00 lis r9,0 * workspace. * */ void _IO_Manager_initialization(void) { ffc08470: 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; ffc08474: 39 29 20 a0 addi r9,r9,8352 * workspace. * */ void _IO_Manager_initialization(void) { ffc08478: 93 c1 00 20 stw r30,32(r1) ffc0847c: 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; ffc08480: 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; ffc08484: 83 e9 00 30 lwz r31,48(r9) <== ALWAYS TAKEN * workspace. * */ void _IO_Manager_initialization(void) { ffc08488: 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 ) ffc0848c: 7f 9e f8 40 cmplw cr7,r30,r31 * workspace. * */ void _IO_Manager_initialization(void) { ffc08490: 93 81 00 18 stw r28,24(r1) ffc08494: 3f 80 00 00 lis r28,0 ffc08498: 93 a1 00 1c stw r29,28(r1) ffc0849c: 3f a0 00 00 lis r29,0 ffc084a0: 93 21 00 0c stw r25,12(r1) ffc084a4: 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; ffc084a8: 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 ) ffc084ac: 40 9d 00 40 ble- cr7,ffc084ec <_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 ) ffc084b0: 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 *) ffc084b4: 7f 23 cb 78 mr r3,r25 ffc084b8: 48 00 36 e1 bl ffc0bb98 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( ffc084bc: 7f 25 cb 78 mr r5,r25 ffc084c0: 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; ffc084c4: 93 dd 27 ec stw r30,10220(r29) /* * The application requested extra slots in the driver table, so we * have to allocate a new driver table and copy theirs to it. */ _IO_Driver_address_table = (rtems_driver_address_table *) ffc084c8: 7c 7a 1b 78 mr r26,r3 ffc084cc: 90 7c 27 f0 stw r3,10224(r28) _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; memset( ffc084d0: 48 00 a4 25 bl ffc128f4 <== ALWAYS TAKEN ffc084d4: 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]; ffc084d8: 39 40 00 00 li r10,0 ffc084dc: 3b ff 00 01 addi r31,r31,1 ffc084e0: 40 be 00 4c bne+ cr7,ffc0852c <_IO_Manager_initialization+0xc8> <== ALWAYS TAKEN ffc084e4: 3b e0 00 01 li r31,1 <== NOT EXECUTED ffc084e8: 48 00 00 44 b ffc0852c <_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; ffc084ec: 93 7c 27 f0 stw r27,10224(r28) _IO_Number_of_drivers = number_of_drivers; ffc084f0: 93 fd 27 ec stw r31,10220(r29) return; ffc084f4: 48 00 00 48 b ffc0853c <_IO_Manager_initialization+0xd8> <== ALWAYS TAKEN _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]; ffc084f8: 7c c9 50 6e lwzux r6,r9,r10 ffc084fc: 81 09 00 08 lwz r8,8(r9) ffc08500: 80 09 00 0c lwz r0,12(r9) ffc08504: 80 e9 00 04 lwz r7,4(r9) ffc08508: 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++ ) ffc0850c: 39 4a 00 18 addi r10,r10,24 _IO_Driver_address_table[index] = driver_table[index]; ffc08510: 90 eb 00 04 stw r7,4(r11) ffc08514: 91 0b 00 08 stw r8,8(r11) ffc08518: 90 0b 00 0c stw r0,12(r11) ffc0851c: 81 09 00 14 lwz r8,20(r9) ffc08520: 80 09 00 10 lwz r0,16(r9) ffc08524: 91 0b 00 14 stw r8,20(r11) <== ALWAYS TAKEN ffc08528: 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++ ) ffc0852c: 37 ff ff ff addic. r31,r31,-1 _IO_Driver_address_table[index] = driver_table[index]; ffc08530: 7f 69 db 78 mr r9,r27 ffc08534: 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++ ) ffc08538: 40 82 ff c0 bne+ ffc084f8 <_IO_Manager_initialization+0x94> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } ffc0853c: 80 01 00 2c lwz r0,44(r1) ffc08540: 83 21 00 0c lwz r25,12(r1) ffc08544: 7c 08 03 a6 mtlr r0 ffc08548: 83 41 00 10 lwz r26,16(r1) ffc0854c: 83 61 00 14 lwz r27,20(r1) ffc08550: 83 81 00 18 lwz r28,24(r1) ffc08554: 83 a1 00 1c lwz r29,28(r1) ffc08558: 83 c1 00 20 lwz r30,32(r1) ffc0855c: 83 e1 00 24 lwz r31,36(r1) ffc08560: 38 21 00 28 addi r1,r1,40 ffc08564: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09274 <_ISR_Handler_initialization>: * Output parameters: NONE */ void _ISR_Handler_initialization( void ) { _ISR_Signals_to_thread_executing = false; ffc09274: 38 00 00 00 li r0,0 ffc09278: 3d 20 00 00 lis r9,0 ffc0927c: 98 09 27 cc stb r0,10188(r9) _ISR_Nest_level = 0; ffc09280: 38 00 00 00 li r0,0 ffc09284: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc09288: 90 09 27 98 stw r0,10136(r9) #if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE ) _CPU_Install_interrupt_stack(); #endif } ffc0928c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09230 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc09230: 94 21 ff f0 stwu r1,-16(r1) ffc09234: 7c 08 02 a6 mflr r0 _Internal_errors_What_happened.the_source = the_source; ffc09238: 3d 60 00 00 lis r11,0 ffc0923c: 39 2b 2d 30 addi r9,r11,11568 <== ALWAYS TAKEN void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc09240: 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; ffc09244: 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; ffc09248: 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 ) { ffc0924c: 93 e1 00 0c stw r31,12(r1) ffc09250: 7c bf 2b 78 mr r31,r5 _Internal_errors_What_happened.the_source = the_source; ffc09254: 90 6b 2d 30 stw r3,11568(r11) _Internal_errors_What_happened.is_internal = is_internal; _Internal_errors_What_happened.the_error = the_error; _User_extensions_Fatal( the_source, is_internal, the_error ); ffc09258: 48 00 23 c9 bl ffc0b620 <_User_extensions_Fatal> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; ffc0925c: 38 00 00 05 li r0,5 ffc09260: 3d 20 00 00 lis r9,0 _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); ffc09264: 7f e3 fb 78 mr r3,r31 ffc09268: 90 09 27 d4 stw r0,10196(r9) ffc0926c: 4b ff a2 f9 bl ffc03564 <_BSP_Fatal_error> <== ALWAYS TAKEN ffc09270: 48 00 00 00 b ffc09270 <_Internal_error_Occurred+0x40> <== NOT EXECUTED ffc18874 <_Message_queue_Allocate>: * Output parameters: * the_message_queue - set if successful, NULL otherwise */ Message_queue_Control *_Message_queue_Allocate(void) { ffc18874: 94 21 ff f8 stwu r1,-8(r1) ffc18878: 7c 08 02 a6 mflr r0 return (Message_queue_Control *) ffc1887c: 3c 60 00 00 lis r3,0 ffc18880: 38 63 36 64 addi r3,r3,13924 * Output parameters: * the_message_queue - set if successful, NULL otherwise */ Message_queue_Control *_Message_queue_Allocate(void) { ffc18884: 90 01 00 0c stw r0,12(r1) return (Message_queue_Control *) ffc18888: 4b ff b1 f5 bl ffc13a7c <_Objects_Allocate> <== ALWAYS TAKEN _Objects_Allocate(&_Message_queue_Information); } ffc1888c: 80 01 00 0c lwz r0,12(r1) ffc18890: 38 21 00 08 addi r1,r1,8 ffc18894: 7c 08 03 a6 mtlr r0 ffc18898: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0df9c <_Message_queue_Manager_initialization>: * Output parameters: NONE */ void _Message_queue_Manager_initialization(void) { _Objects_Initialize_information( ffc0df9c: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Message_queue_Manager_initialization(void) { ffc0dfa0: 94 21 ff f8 stwu r1,-8(r1) ffc0dfa4: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0dfa8: 3c 60 00 00 lis r3,0 ffc0dfac: 80 c9 20 80 lwz r6,8320(r9) <== ALWAYS TAKEN ffc0dfb0: 38 63 35 cc addi r3,r3,13772 ffc0dfb4: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Message_queue_Manager_initialization(void) { ffc0dfb8: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0dfbc: 38 a0 00 04 li r5,4 <== ALWAYS TAKEN ffc0dfc0: 38 e0 00 88 li r7,136 <== ALWAYS TAKEN ffc0dfc4: 39 00 00 00 li r8,0 <== ALWAYS TAKEN ffc0dfc8: 39 20 00 04 li r9,4 ffc0dfcc: 4b ff b9 01 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN MP_PACKET_MESSAGE_QUEUE, _Message_queue_MP_Process_packet ); #endif } ffc0dfd0: 80 01 00 0c lwz r0,12(r1) ffc0dfd4: 38 21 00 08 addi r1,r1,8 ffc0dfd8: 7c 08 03 a6 mtlr r0 ffc0dfdc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1183c <_Message_queue_Translate_core_message_queue_return_code>: if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ) return RTEMS_INTERNAL_ERROR; #endif return _Message_queue_Translate_core_return_code_[status]; } ffc1183c: 3d 20 00 00 lis r9,0 ffc11840: 39 29 21 d8 addi r9,r9,8664 }; rtems_status_code _Message_queue_Translate_core_message_queue_return_code ( uint32_t status ) { ffc11844: 54 63 10 3a rlwinm r3,r3,2,0,29 if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ) return RTEMS_INTERNAL_ERROR; #endif return _Message_queue_Translate_core_return_code_[status]; } ffc11848: 7c 69 18 2e lwzx r3,r9,r3 ffc1184c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ebc0 <_Objects_API_maximum_class>: case OBJECTS_NO_API: default: break; } return 0; } ffc0ebc0: 38 03 ff ff addi r0,r3,-1 ffc0ebc4: 2b 80 00 03 cmplwi cr7,r0,3 <== ALWAYS TAKEN ffc0ebc8: 38 60 00 00 li r3,0 ffc0ebcc: 4d 9d 00 20 bgtlr cr7 ffc0ebd0: 3d 20 ff c2 lis r9,-62 ffc0ebd4: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0ebd8: 39 29 e3 74 addi r9,r9,-7308 ffc0ebdc: 7c 69 00 2e lwzx r3,r9,r0 ffc0ebe0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09290 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc09290: 94 21 ff f0 stwu r1,-16(r1) ffc09294: 7c 08 02 a6 mflr r0 ffc09298: 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 ) ffc0929c: 80 03 00 18 lwz r0,24(r3) <== ALWAYS TAKEN */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc092a0: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc092a4: 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 ) ffc092a8: 2f 80 00 00 cmpwi cr7,r0,0 */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc092ac: 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 ) ffc092b0: 38 60 00 00 li r3,0 ffc092b4: 41 be 00 70 beq+ cr7,ffc09324 <_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 ); ffc092b8: 3b df 00 20 addi r30,r31,32 ffc092bc: 7f c3 f3 78 mr r3,r30 ffc092c0: 4b ff f5 f9 bl ffc088b8 <_Chain_Get> <== ALWAYS TAKEN if ( information->auto_extend ) { ffc092c4: 88 1f 00 12 lbz r0,18(r31) <== ALWAYS TAKEN ffc092c8: 2f 80 00 00 cmpwi cr7,r0,0 ffc092cc: 41 9e 00 58 beq- cr7,ffc09324 <_Objects_Allocate+0x94> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { ffc092d0: 2f 83 00 00 cmpwi cr7,r3,0 ffc092d4: 40 be 00 1c bne+ cr7,ffc092f0 <_Objects_Allocate+0x60> _Objects_Extend_information( information ); ffc092d8: 7f e3 fb 78 mr r3,r31 ffc092dc: 48 00 00 95 bl ffc09370 <_Objects_Extend_information> <== ALWAYS TAKEN the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); ffc092e0: 7f c3 f3 78 mr r3,r30 ffc092e4: 4b ff f5 d5 bl ffc088b8 <_Chain_Get> <== ALWAYS TAKEN } if ( the_object ) { ffc092e8: 2c 03 00 00 cmpwi r3,0 ffc092ec: 41 a2 00 38 beq+ ffc09324 <_Objects_Allocate+0x94> uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - ffc092f0: a1 63 00 0a lhz r11,10(r3) ffc092f4: a0 1f 00 0a lhz r0,10(r31) _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; ffc092f8: a1 3f 00 14 lhz r9,20(r31) } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - ffc092fc: 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--; ffc09300: 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 ]--; ffc09304: 7c 00 4b 96 divwu r0,r0,r9 ffc09308: 81 3f 00 30 lwz r9,48(r31) ffc0930c: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc09310: 7d 49 00 2e lwzx r10,r9,r0 information->inactive--; ffc09314: 39 6b ff ff addi r11,r11,-1 ffc09318: 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 ]--; ffc0931c: 39 4a ff ff addi r10,r10,-1 ffc09320: 7d 49 01 2e stwx r10,r9,r0 information->inactive--; } } return the_object; } ffc09324: 80 01 00 14 lwz r0,20(r1) ffc09328: 83 c1 00 08 lwz r30,8(r1) ffc0932c: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc09330: 83 e1 00 0c lwz r31,12(r1) ffc09334: 38 21 00 10 addi r1,r1,16 ffc09338: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0933c <_Objects_Close>: void _Objects_Close( Objects_Information *information, Objects_Control *the_object ) { ffc0933c: 94 21 ff f8 stwu r1,-8(r1) ffc09340: 7c 08 02 a6 mflr r0 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc09344: 39 60 00 00 li r11,0 ffc09348: 90 01 00 0c stw r0,12(r1) ffc0934c: a0 04 00 0a lhz r0,10(r4) ffc09350: 81 23 00 1c lwz r9,28(r3) <== ALWAYS TAKEN ffc09354: 54 00 10 3a rlwinm r0,r0,2,0,29 <== ALWAYS TAKEN ffc09358: 7d 69 01 2e stwx r11,r9,r0 <== ALWAYS TAKEN _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); ffc0935c: 48 00 06 65 bl ffc099c0 <_Objects_Namespace_remove> <== ALWAYS TAKEN } ffc09360: 80 01 00 0c lwz r0,12(r1) ffc09364: 38 21 00 08 addi r1,r1,8 ffc09368: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0936c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09370 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { ffc09370: 94 21 ff b8 stwu r1,-72(r1) ffc09374: 7c 08 02 a6 mflr r0 ffc09378: 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 ) ffc0937c: 81 63 00 34 lwz r11,52(r3) */ void _Objects_Extend_information( Objects_Information *information ) { ffc09380: 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 ) ffc09384: 2f 8b 00 00 cmpwi cr7,r11,0 */ void _Objects_Extend_information( Objects_Information *information ) { ffc09388: 93 e1 00 44 stw r31,68(r1) ffc0938c: 7c 7f 1b 78 mr r31,r3 ffc09390: 92 a1 00 1c stw r21,28(r1) ffc09394: 92 c1 00 20 stw r22,32(r1) ffc09398: 92 e1 00 24 stw r23,36(r1) ffc0939c: 93 01 00 28 stw r24,40(r1) ffc093a0: 93 21 00 2c stw r25,44(r1) ffc093a4: 93 41 00 30 stw r26,48(r1) ffc093a8: 93 81 00 38 stw r28,56(r1) <== ALWAYS TAKEN ffc093ac: 93 a1 00 3c stw r29,60(r1) ffc093b0: 93 c1 00 40 stw r30,64(r1) <== ALWAYS TAKEN /* * 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 ); ffc093b4: a3 63 00 0a lhz r27,10(r3) index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) ffc093b8: 40 be 00 14 bne+ cr7,ffc093cc <_Objects_Extend_information+0x5c> ffc093bc: 7f 7e db 78 mr r30,r27 ffc093c0: 3b 80 00 00 li r28,0 ffc093c4: 3b 40 00 00 li r26,0 ffc093c8: 48 00 00 4c b ffc09414 <_Objects_Extend_information+0xa4> <== ALWAYS TAKEN block_count = 0; else { block_count = information->maximum / information->allocation_size; ffc093cc: a1 23 00 14 lhz r9,20(r3) ffc093d0: 7f 7e db 78 mr r30,r27 ffc093d4: a3 43 00 10 lhz r26,16(r3) ffc093d8: 3b 80 00 00 li r28,0 ffc093dc: 7f 5a 4b 96 divwu r26,r26,r9 ffc093e0: 2f 9a 00 00 cmpwi cr7,r26,0 ffc093e4: 38 1a 00 01 addi r0,r26,1 ffc093e8: 40 be 00 20 bne+ cr7,ffc09408 <_Objects_Extend_information+0x98> <== ALWAYS TAKEN ffc093ec: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc093f0: 48 00 00 18 b ffc09408 <_Objects_Extend_information+0x98> <== NOT EXECUTED for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) ffc093f4: 7d 4b 50 2e lwzx r10,r11,r10 ffc093f8: 2f 8a 00 00 cmpwi cr7,r10,0 ffc093fc: 41 9e 00 18 beq- cr7,ffc09414 <_Objects_Extend_information+0xa4> ffc09400: 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++ ) { ffc09404: 3b 9c 00 01 addi r28,r28,1 ffc09408: 34 00 ff ff addic. r0,r0,-1 if ( information->object_blocks[ block ] == NULL ) ffc0940c: 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++ ) { ffc09410: 40 82 ff e4 bne+ ffc093f4 <_Objects_Extend_information+0x84> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; ffc09414: a0 1f 00 14 lhz r0,20(r31) ffc09418: a2 df 00 10 lhz r22,16(r31) <== ALWAYS TAKEN ffc0941c: 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 ) { ffc09420: 2b 96 ff ff cmplwi cr7,r22,65535 ffc09424: 41 9d 02 1c bgt- cr7,ffc09640 <_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 ) { ffc09428: 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; ffc0942c: 80 7f 00 18 lwz r3,24(r31) if ( information->auto_extend ) { ffc09430: 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; ffc09434: 7c 60 19 d6 mullw r3,r0,r3 <== ALWAYS TAKEN if ( information->auto_extend ) { ffc09438: 41 9e 00 14 beq- cr7,ffc0944c <_Objects_Extend_information+0xdc> new_object_block = _Workspace_Allocate( block_size ); ffc0943c: 48 00 27 a5 bl ffc0bbe0 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !new_object_block ) ffc09440: 7c 7d 1b 79 mr. r29,r3 ffc09444: 40 a2 00 10 bne+ ffc09454 <_Objects_Extend_information+0xe4> ffc09448: 48 00 01 f8 b ffc09640 <_Objects_Extend_information+0x2d0> <== ALWAYS TAKEN return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); ffc0944c: 48 00 27 4d bl ffc0bb98 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN ffc09450: 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 ) { ffc09454: a0 1f 00 10 lhz r0,16(r31) ffc09458: 7f 9e 00 40 cmplw cr7,r30,r0 ffc0945c: 41 9c 01 5c blt- cr7,ffc095b8 <_Objects_Extend_information+0x248> */ /* * Up the block count and maximum */ block_count++; ffc09460: 3b 3a 00 01 addi r25,r26,1 <== ALWAYS TAKEN * 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 ); ffc09464: 1c 19 00 03 mulli r0,r25,3 ffc09468: 7c 76 da 14 add r3,r22,r27 ffc0946c: 7c 63 02 14 add r3,r3,r0 ffc09470: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc09474: 48 00 27 6d bl ffc0bbe0 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !object_blocks ) { ffc09478: 7c 77 1b 79 mr. r23,r3 ffc0947c: 40 a2 00 10 bne+ ffc0948c <_Objects_Extend_information+0x11c> _Workspace_Free( new_object_block ); ffc09480: 7f a3 eb 78 mr r3,r29 ffc09484: 48 00 27 91 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN return; ffc09488: 48 00 01 b8 b ffc09640 <_Objects_Extend_information+0x2d0> <== ALWAYS TAKEN * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { ffc0948c: a0 1f 00 10 lhz r0,16(r31) } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( ffc09490: 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); ffc09494: 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 ) { ffc09498: 7f 80 d8 40 cmplw cr7,r0,r27 ffc0949c: 7f 38 ca 14 add r25,r24,r25 ffc094a0: 41 9d 00 20 bgt- cr7,ffc094c0 <_Objects_Extend_information+0x150> ffc094a4: 2f 9b 00 00 cmpwi cr7,r27,0 ffc094a8: 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; ffc094ac: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc094b0: 3b 7b 00 01 addi r27,r27,1 ffc094b4: 40 be 00 50 bne+ cr7,ffc09504 <_Objects_Extend_information+0x194> <== ALWAYS TAKEN ffc094b8: 3b 60 00 01 li r27,1 <== NOT EXECUTED ffc094bc: 48 00 00 48 b ffc09504 <_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*) ); ffc094c0: 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, ffc094c4: 80 9f 00 34 lwz r4,52(r31) ffc094c8: 7e a5 ab 78 mr r5,r21 ffc094cc: 48 00 93 29 bl ffc127f4 <== ALWAYS TAKEN information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, ffc094d0: 80 9f 00 30 lwz r4,48(r31) ffc094d4: 7e a5 ab 78 mr r5,r21 ffc094d8: 7f 03 c3 78 mr r3,r24 ffc094dc: 48 00 93 19 bl ffc127f4 <== ALWAYS TAKEN information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, ffc094e0: a0 1f 00 10 lhz r0,16(r31) ffc094e4: 80 9f 00 1c lwz r4,28(r31) ffc094e8: 7f 23 cb 78 mr r3,r25 ffc094ec: 7f 7b 02 14 add r27,r27,r0 ffc094f0: 57 65 10 3a rlwinm r5,r27,2,0,29 ffc094f4: 48 00 93 01 bl ffc127f4 <== ALWAYS TAKEN ffc094f8: 48 00 00 18 b ffc09510 <_Objects_Extend_information+0x1a0> <== ALWAYS TAKEN /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; ffc094fc: 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++ ) { ffc09500: 39 29 00 01 addi r9,r9,1 ffc09504: 37 7b ff ff addic. r27,r27,-1 local_table[ index ] = NULL; ffc09508: 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++ ) { ffc0950c: 40 82 ff f0 bne+ ffc094fc <_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 ); ffc09510: a1 5f 00 14 lhz r10,20(r31) } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc09514: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc09518: 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; ffc0951c: 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; ffc09520: 7c 18 d1 2e stwx r0,r24,r26 <== ALWAYS TAKEN ffc09524: 7f 9e 58 40 cmplw cr7,r30,r11 for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc09528: 57 c9 10 3a rlwinm r9,r30,2,0,29 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc0952c: 7c 17 d1 2e stwx r0,r23,r26 <== ALWAYS TAKEN inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc09530: 7d 39 4a 14 add r9,r25,r9 index++ ) { local_table[ index ] = NULL; ffc09534: 38 0a 00 01 addi r0,r10,1 ffc09538: 39 40 00 00 li r10,0 <== ALWAYS TAKEN ffc0953c: 41 9d 00 0c bgt- cr7,ffc09548 <_Objects_Extend_information+0x1d8> <== NEVER TAKEN ffc09540: 2f 8b 00 00 cmpwi cr7,r11,0 ffc09544: 40 be 00 14 bne+ cr7,ffc09558 <_Objects_Extend_information+0x1e8> <== ALWAYS TAKEN ffc09548: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0954c: 48 00 00 0c b ffc09558 <_Objects_Extend_information+0x1e8> <== NOT EXECUTED ffc09550: 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++ ) { ffc09554: 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 ; ffc09558: 34 00 ff ff addic. r0,r0,-1 ffc0955c: 40 82 ff f4 bne+ ffc09550 <_Objects_Extend_information+0x1e0> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09560: 7c 00 00 a6 mfmsr r0 ffc09564: 7d 30 42 a6 mfsprg r9,0 ffc09568: 7c 09 48 78 andc r9,r0,r9 ffc0956c: 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( ffc09570: 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; ffc09574: 56 d6 04 3e clrlwi r22,r22,16 information->maximum_id = _Objects_Build_id( ffc09578: a1 3f 00 04 lhz r9,4(r31) ffc0957c: 55 6b c0 0e rlwinm r11,r11,24,0,7 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; ffc09580: 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( ffc09584: 65 6b 00 01 oris r11,r11,1 <== ALWAYS TAKEN _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; ffc09588: 93 1f 00 30 stw r24,48(r31) information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc0958c: 55 29 d8 08 rlwinm r9,r9,27,0,4 ffc09590: 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; ffc09594: 93 3f 00 1c stw r25,28(r31) <== ALWAYS TAKEN information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc09598: 7d 29 b3 78 or r9,r9,r22 ffc0959c: 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; ffc095a0: b2 df 00 10 sth r22,16(r31) _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; ffc095a4: 92 ff 00 34 stw r23,52(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc095a8: 7c 00 01 24 mtmsr r0 information->maximum ); _ISR_Enable( level ); if ( old_tables ) ffc095ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc095b0: 41 9e 00 08 beq- cr7,ffc095b8 <_Objects_Extend_information+0x248> _Workspace_Free( old_tables ); ffc095b4: 48 00 26 61 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; ffc095b8: 81 3f 00 34 lwz r9,52(r31) ffc095bc: 57 9c 10 3a rlwinm r28,r28,2,0,29 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc095c0: 3b 61 00 08 addi r27,r1,8 ffc095c4: a0 bf 00 14 lhz r5,20(r31) <== ALWAYS TAKEN } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; ffc095c8: 7f a9 e1 2e stwx r29,r9,r28 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc095cc: 7f a4 eb 78 mr r4,r29 <== ALWAYS TAKEN ffc095d0: 7f 63 db 78 mr r3,r27 ffc095d4: 80 df 00 18 lwz r6,24(r31) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc095d8: 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( ffc095dc: 48 00 4f 79 bl ffc0e554 <_Chain_Initialize> <== ALWAYS TAKEN /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { ffc095e0: 48 00 00 2c b ffc0960c <_Objects_Extend_information+0x29c> <== ALWAYS TAKEN the_object->id = _Objects_Build_id( ffc095e4: 81 7f 00 00 lwz r11,0(r31) ffc095e8: a0 1f 00 04 lhz r0,4(r31) ffc095ec: 55 6b c0 0e rlwinm r11,r11,24,0,7 ffc095f0: 65 6b 00 01 oris r11,r11,1 ffc095f4: 54 00 d8 08 rlwinm r0,r0,27,0,4 ffc095f8: 7d 60 03 78 or r0,r11,r0 <== ALWAYS TAKEN ffc095fc: 7c 00 f3 78 or r0,r0,r30 ffc09600: 90 09 00 08 stw r0,8(r9) index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; ffc09604: 3b de 00 01 addi r30,r30,1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc09608: 4b ff f2 81 bl ffc08888 <_Chain_Append> <== ALWAYS TAKEN /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { ffc0960c: 7f 63 db 78 mr r3,r27 ffc09610: 4b ff f2 a9 bl ffc088b8 <_Chain_Get> <== ALWAYS TAKEN ffc09614: 7c 69 1b 79 mr. r9,r3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc09618: 7f a3 eb 78 mr r3,r29 ffc0961c: 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 ) { ffc09620: 40 82 ff c4 bne+ ffc095e4 <_Objects_Extend_information+0x274> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc09624: a0 1f 00 14 lhz r0,20(r31) information->inactive = ffc09628: a1 3f 00 2c lhz r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0962c: 81 7f 00 30 lwz r11,48(r31) <== ALWAYS TAKEN information->inactive = ffc09630: 7d 20 4a 14 add r9,r0,r9 <== ALWAYS TAKEN _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc09634: 54 00 04 3e clrlwi r0,r0,16 information->inactive = ffc09638: b1 3f 00 2c sth r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0963c: 7c 0b e1 2e stwx r0,r11,r28 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } ffc09640: 80 01 00 4c lwz r0,76(r1) ffc09644: 82 a1 00 1c lwz r21,28(r1) <== ALWAYS TAKEN ffc09648: 7c 08 03 a6 mtlr r0 ffc0964c: 82 c1 00 20 lwz r22,32(r1) ffc09650: 82 e1 00 24 lwz r23,36(r1) ffc09654: 83 01 00 28 lwz r24,40(r1) ffc09658: 83 21 00 2c lwz r25,44(r1) ffc0965c: 83 41 00 30 lwz r26,48(r1) ffc09660: 83 61 00 34 lwz r27,52(r1) ffc09664: 83 81 00 38 lwz r28,56(r1) ffc09668: 83 a1 00 3c lwz r29,60(r1) ffc0966c: 83 c1 00 40 lwz r30,64(r1) ffc09670: 83 e1 00 44 lwz r31,68(r1) ffc09674: 38 21 00 48 addi r1,r1,72 ffc09678: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0967c <_Objects_Free>: void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { ffc0967c: 94 21 ff e8 stwu r1,-24(r1) ffc09680: 7c 08 02 a6 mflr r0 ffc09684: 90 01 00 1c stw r0,28(r1) ffc09688: 93 e1 00 14 stw r31,20(r1) ffc0968c: 7c 7f 1b 78 mr r31,r3 uint32_t allocation_size = information->allocation_size; _Chain_Append( &information->Inactive, &the_object->Node ); ffc09690: 38 63 00 20 addi r3,r3,32 void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { ffc09694: 93 a1 00 0c stw r29,12(r1) ffc09698: 7c 9d 23 78 mr r29,r4 ffc0969c: 93 c1 00 10 stw r30,16(r1) uint32_t allocation_size = information->allocation_size; ffc096a0: a3 df 00 14 lhz r30,20(r31) _Chain_Append( &information->Inactive, &the_object->Node ); ffc096a4: 4b ff f1 e5 bl ffc08888 <_Chain_Append> <== ALWAYS TAKEN if ( information->auto_extend ) { ffc096a8: 88 1f 00 12 lbz r0,18(r31) ffc096ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc096b0: 41 9e 00 54 beq- cr7,ffc09704 <_Objects_Free+0x88> uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - ffc096b4: a1 7d 00 0a lhz r11,10(r29) /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { ffc096b8: 57 ca f8 7e rlwinm r10,r30,31,1,31 _Chain_Append( &information->Inactive, &the_object->Node ); if ( information->auto_extend ) { uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - ffc096bc: a0 1f 00 0a lhz r0,10(r31) /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { ffc096c0: 7f ca f2 14 add r30,r10,r30 block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; ffc096c4: a1 3f 00 14 lhz r9,20(r31) _Chain_Append( &information->Inactive, &the_object->Node ); if ( information->auto_extend ) { uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - ffc096c8: 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++; ffc096cc: 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 ]++; ffc096d0: 7c 00 4b 96 divwu r0,r0,r9 ffc096d4: 81 3f 00 30 lwz r9,48(r31) information->inactive++; ffc096d8: 39 6b 00 01 addi r11,r11,1 ffc096dc: 55 6b 04 3e clrlwi r11,r11,16 /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { ffc096e0: 7f 8b f0 40 cmplw cr7,r11,r30 block = (uint32_t) (_Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; information->inactive++; ffc096e4: 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 ]++; ffc096e8: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc096ec: 7d 49 00 2e lwzx r10,r9,r0 ffc096f0: 39 6a 00 01 addi r11,r10,1 ffc096f4: 7d 69 01 2e stwx r11,r9,r0 /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { ffc096f8: 40 bd 00 0c ble+ cr7,ffc09704 <_Objects_Free+0x88> _Objects_Shrink_information( information ); ffc096fc: 7f e3 fb 78 mr r3,r31 ffc09700: 48 00 03 99 bl ffc09a98 <_Objects_Shrink_information> <== ALWAYS TAKEN } } } ffc09704: 80 01 00 1c lwz r0,28(r1) ffc09708: 83 a1 00 0c lwz r29,12(r1) ffc0970c: 7c 08 03 a6 mtlr r0 ffc09710: 83 c1 00 10 lwz r30,16(r1) ffc09714: 83 e1 00 14 lwz r31,20(r1) ffc09718: 38 21 00 18 addi r1,r1,24 ffc0971c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0983c <_Objects_Get>: Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { ffc0983c: 94 21 ff f0 stwu r1,-16(r1) ffc09840: 7c 08 02 a6 mflr r0 ffc09844: 90 01 00 14 stw r0,20(r1) * always NULL. * * If the Id is valid but the object has not been created yet, then * the local_table entry will be NULL. */ index = id - information->minimum_id + 1; ffc09848: 81 23 00 08 lwz r9,8(r3) <== ALWAYS TAKEN /* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { ffc0984c: a0 03 00 10 lhz r0,16(r3) <== ALWAYS TAKEN * always NULL. * * If the Id is valid but the object has not been created yet, then * the local_table entry will be NULL. */ index = id - information->minimum_id + 1; ffc09850: 21 29 00 01 subfic r9,r9,1 Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { ffc09854: 93 c1 00 08 stw r30,8(r1) * always NULL. * * If the Id is valid but the object has not been created yet, then * the local_table entry will be NULL. */ index = id - information->minimum_id + 1; ffc09858: 7d 29 22 14 add r9,r9,r4 <== ALWAYS TAKEN /* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { ffc0985c: 7f 89 00 40 cmplw cr7,r9,r0 <== ALWAYS TAKEN Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { ffc09860: 93 e1 00 0c stw r31,12(r1) ffc09864: 7c be 2b 78 mr r30,r5 /* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { ffc09868: 41 9d 00 3c bgt- cr7,ffc098a4 <_Objects_Get+0x68> ffc0986c: 3d 60 00 00 lis r11,0 ffc09870: 81 4b 27 70 lwz r10,10096(r11) ffc09874: 38 0a 00 01 addi r0,r10,1 ffc09878: 90 0b 27 70 stw r0,10096(r11) _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { ffc0987c: 81 63 00 1c lwz r11,28(r3) <== ALWAYS TAKEN ffc09880: 55 29 10 3a rlwinm r9,r9,2,0,29 <== ALWAYS TAKEN *location = OBJECTS_LOCAL; ffc09884: 38 00 00 00 li r0,0 * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) { _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { ffc09888: 7f eb 48 2e lwzx r31,r11,r9 ffc0988c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09890: 40 be 00 0c bne+ cr7,ffc0989c <_Objects_Get+0x60> /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); ffc09894: 48 00 0a b9 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN *location = OBJECTS_ERROR; ffc09898: 38 00 00 01 li r0,1 ffc0989c: 90 1e 00 00 stw r0,0(r30) return NULL; ffc098a0: 48 00 00 10 b ffc098b0 <_Objects_Get+0x74> <== ALWAYS TAKEN /* * Object Id is not within this API and Class on this node. So * it may be global in a multiprocessing system. But it is clearly * invalid on a single processor system. */ *location = OBJECTS_ERROR; ffc098a4: 38 00 00 01 li r0,1 ffc098a8: 90 05 00 00 stw r0,0(r5) ffc098ac: 3b e0 00 00 li r31,0 _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } ffc098b0: 80 01 00 14 lwz r0,20(r1) ffc098b4: 7f e3 fb 78 mr r3,r31 ffc098b8: 83 c1 00 08 lwz r30,8(r1) <== ALWAYS TAKEN ffc098bc: 7c 08 03 a6 mtlr r0 ffc098c0: 83 e1 00 0c lwz r31,12(r1) ffc098c4: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc098c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09748 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { ffc09748: 94 21 ff f0 stwu r1,-16(r1) ffc0974c: 7c 08 02 a6 mflr r0 ffc09750: 93 e1 00 0c stw r31,12(r1) Objects_Information *info; int the_class_api_maximum; if ( !the_class ) ffc09754: 7c 9f 23 79 mr. r31,r4 Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { ffc09758: 93 c1 00 08 stw r30,8(r1) ffc0975c: 7c 7e 1b 78 mr r30,r3 ffc09760: 90 01 00 14 stw r0,20(r1) Objects_Information *info; int the_class_api_maximum; if ( !the_class ) ffc09764: 41 a2 00 4c beq+ ffc097b0 <_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 ); ffc09768: 48 00 54 59 bl ffc0ebc0 <_Objects_API_maximum_class> <== ALWAYS TAKEN if ( the_class_api_maximum == 0 ) ffc0976c: 2c 03 00 00 cmpwi r3,0 ffc09770: 41 a2 00 40 beq+ ffc097b0 <_Objects_Get_information+0x68> return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) ffc09774: 7f 9f 18 40 cmplw cr7,r31,r3 ffc09778: 41 bd 00 38 bgt+ cr7,ffc097b0 <_Objects_Get_information+0x68> return NULL; if ( !_Objects_Information_table[ the_api ] ) ffc0977c: 3d 20 00 00 lis r9,0 ffc09780: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc09784: 39 29 2c 20 addi r9,r9,11296 ffc09788: 7d 29 f0 2e lwzx r9,r9,r30 ffc0978c: 2f 89 00 00 cmpwi cr7,r9,0 ffc09790: 41 be 00 20 beq+ cr7,ffc097b0 <_Objects_Get_information+0x68> <== NEVER TAKEN return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; ffc09794: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc09798: 7c 69 f8 2e lwzx r3,r9,r31 if ( !info ) ffc0979c: 2f 83 00 00 cmpwi cr7,r3,0 ffc097a0: 41 be 00 14 beq+ cr7,ffc097b4 <_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 ) ffc097a4: a0 03 00 10 lhz r0,16(r3) ffc097a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc097ac: 40 be 00 08 bne+ cr7,ffc097b4 <_Objects_Get_information+0x6c> ffc097b0: 38 60 00 00 li r3,0 return NULL; #endif return info; } ffc097b4: 80 01 00 14 lwz r0,20(r1) ffc097b8: 83 c1 00 08 lwz r30,8(r1) ffc097bc: 7c 08 03 a6 mtlr r0 ffc097c0: 83 e1 00 0c lwz r31,12(r1) ffc097c4: 38 21 00 10 addi r1,r1,16 ffc097c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09720 <_Objects_Get_information_id>: #include Objects_Information *_Objects_Get_information_id( Objects_Id id ) { ffc09720: 94 21 ff f8 stwu r1,-8(r1) ffc09724: 7c 08 02 a6 mflr r0 return _Objects_Get_information( ffc09728: 54 64 2e fe rlwinm r4,r3,5,27,31 <== ALWAYS TAKEN ffc0972c: 54 63 47 7e rlwinm r3,r3,8,29,31 #include Objects_Information *_Objects_Get_information_id( Objects_Id id ) { ffc09730: 90 01 00 0c stw r0,12(r1) return _Objects_Get_information( ffc09734: 48 00 00 15 bl ffc09748 <_Objects_Get_information> <== ALWAYS TAKEN _Objects_Get_API( id ), _Objects_Get_class( id ) ); } ffc09738: 80 01 00 0c lwz r0,12(r1) ffc0973c: 38 21 00 08 addi r1,r1,8 ffc09740: 7c 08 03 a6 mtlr r0 ffc09744: 4e 80 00 20 blr <== ALWAYS TAKEN ffc097cc <_Objects_Get_isr_disable>: { Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; ffc097cc: 80 03 00 08 lwz r0,8(r3) ffc097d0: 20 00 00 01 subfic r0,r0,1 ffc097d4: 7c 00 22 14 add r0,r0,r4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc097d8: 7d 20 00 a6 mfmsr r9 ffc097dc: 7d 70 42 a6 mfsprg r11,0 ffc097e0: 7d 2b 58 78 andc r11,r9,r11 <== ALWAYS TAKEN ffc097e4: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); if ( information->maximum >= index ) { ffc097e8: a1 63 00 10 lhz r11,16(r3) <== ALWAYS TAKEN ffc097ec: 7f 8b 00 40 cmplw cr7,r11,r0 ffc097f0: 41 9c 00 38 blt- cr7,ffc09828 <_Objects_Get_isr_disable+0x5c> if ( (the_object = information->local_table[ index ]) != NULL ) { ffc097f4: 81 63 00 1c lwz r11,28(r3) ffc097f8: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc097fc: 7c 6b 00 2e lwzx r3,r11,r0 <== ALWAYS TAKEN ffc09800: 2f 83 00 00 cmpwi cr7,r3,0 ffc09804: 41 9e 00 14 beq- cr7,ffc09818 <_Objects_Get_isr_disable+0x4c> *location = OBJECTS_LOCAL; ffc09808: 38 00 00 00 li r0,0 *level_p = level; ffc0980c: 91 26 00 00 stw r9,0(r6) index = id - information->minimum_id + 1; _ISR_Disable( level ); if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; ffc09810: 90 05 00 00 stw r0,0(r5) <== ALWAYS TAKEN *level_p = level; return the_object; ffc09814: 4e 80 00 20 blr <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09818: 7d 20 01 24 mtmsr r9 } _ISR_Enable( level ); *location = OBJECTS_ERROR; ffc0981c: 38 00 00 01 li r0,1 ffc09820: 90 05 00 00 stw r0,0(r5) return NULL; ffc09824: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09828: 7d 20 01 24 mtmsr r9 } _ISR_Enable( level ); *location = OBJECTS_ERROR; ffc0982c: 38 00 00 01 li r0,1 ffc09830: 90 05 00 00 stw r0,0(r5) ffc09834: 38 60 00 00 li r3,0 _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } ffc09838: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1746c <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { ffc1746c: 94 21 ff d8 stwu r1,-40(r1) ffc17470: 7c 08 02 a6 mflr r0 ffc17474: 93 c1 00 20 stw r30,32(r1) char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) ffc17478: 7c 9e 23 79 mr. r30,r4 char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { ffc1747c: 93 e1 00 24 stw r31,36(r1) ffc17480: 7c bf 2b 78 mr r31,r5 ffc17484: 90 01 00 2c stw r0,44(r1) ffc17488: 93 81 00 18 stw r28,24(r1) ffc1748c: 93 a1 00 1c stw r29,28(r1) char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) ffc17490: 41 a2 00 f0 beq+ ffc17580 <_Objects_Get_name_as_string+0x114> return NULL; if ( name == NULL ) ffc17494: 2f 85 00 00 cmpwi cr7,r5,0 ffc17498: 41 be 00 ec beq+ cr7,ffc17584 <_Objects_Get_name_as_string+0x118> return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc1749c: 2f 83 00 00 cmpwi cr7,r3,0 ffc174a0: 7c 7c 1b 78 mr r28,r3 ffc174a4: 40 9e 00 10 bne- cr7,ffc174b4 <_Objects_Get_name_as_string+0x48> ffc174a8: 3d 20 00 00 lis r9,0 ffc174ac: 81 29 29 b4 lwz r9,10676(r9) ffc174b0: 83 89 00 08 lwz r28,8(r9) information = _Objects_Get_information_id( tmpId ); ffc174b4: 7f 83 e3 78 mr r3,r28 ffc174b8: 4b ff 70 ed bl ffc0e5a4 <_Objects_Get_information_id> <== ALWAYS TAKEN if ( !information ) ffc174bc: 7c 7d 1b 79 mr. r29,r3 ffc174c0: 41 a2 00 c0 beq+ ffc17580 <_Objects_Get_name_as_string+0x114> return NULL; the_object = _Objects_Get( information, tmpId, &location ); ffc174c4: 7f 84 e3 78 mr r4,r28 ffc174c8: 38 a1 00 08 addi r5,r1,8 ffc174cc: 4b ff 71 f5 bl ffc0e6c0 <_Objects_Get> <== ALWAYS TAKEN switch ( location ) { ffc174d0: 80 01 00 08 lwz r0,8(r1) ffc174d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc174d8: 40 9e 00 a8 bne- cr7,ffc17580 <_Objects_Get_name_as_string+0x114> return NULL; case OBJECTS_LOCAL: #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { ffc174dc: 89 3d 00 38 lbz r9,56(r29) ffc174e0: 2f 89 00 00 cmpwi cr7,r9,0 ffc174e4: 41 9e 00 18 beq- cr7,ffc174fc <_Objects_Get_name_as_string+0x90> s = the_object->name.name_p; ffc174e8: 81 43 00 0c lwz r10,12(r3) lname[ 4 ] = '\0'; s = lname; } d = name; if ( s ) { ffc174ec: 7f e9 fb 78 mr r9,r31 ffc174f0: 2f 8a 00 00 cmpwi cr7,r10,0 ffc174f4: 40 be 00 30 bne+ cr7,ffc17524 <_Objects_Get_name_as_string+0xb8> ffc174f8: 48 00 00 78 b ffc17570 <_Objects_Get_name_as_string+0x104> <== ALWAYS TAKEN if ( information->is_string ) { s = the_object->name.name_p; } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; ffc174fc: 80 03 00 0c lwz r0,12(r3) lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; ffc17500: 99 21 00 10 stb r9,16(r1) #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; ffc17504: 54 0b 84 3e rlwinm r11,r0,16,16,31 lname[ 2 ] = (u32_name >> 8) & 0xff; ffc17508: 54 09 c2 3e rlwinm r9,r0,24,8,31 #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; ffc1750c: 99 61 00 0d stb r11,13(r1) } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; ffc17510: 54 0a 46 3e rlwinm r10,r0,8,24,31 lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; ffc17514: 99 21 00 0e stb r9,14(r1) lname[ 3 ] = (u32_name >> 0) & 0xff; ffc17518: 98 01 00 0f stb r0,15(r1) } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; ffc1751c: 99 41 00 0c stb r10,12(r1) lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; ffc17520: 39 41 00 0c addi r10,r1,12 } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { *d = (isprint((unsigned char)*s)) ? *s : '*'; ffc17524: 3d 00 00 00 lis r8,0 ffc17528: 7f c9 03 a6 mtctr r30 ffc1752c: 39 08 28 e4 addi r8,r8,10468 lname[ 0 ] = (u32_name >> 24) & 0xff; lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; lname[ 3 ] = (u32_name >> 0) & 0xff; lname[ 4 ] = '\0'; ffc17530: 7f e9 fb 78 mr r9,r31 ffc17534: 39 60 00 00 li r11,0 ffc17538: 48 00 00 24 b ffc1755c <_Objects_Get_name_as_string+0xf0> <== ALWAYS TAKEN } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { *d = (isprint((unsigned char)*s)) ? *s : '*'; ffc1753c: 80 e8 00 00 lwz r7,0(r8) ffc17540: 7c e7 02 14 add r7,r7,r0 ffc17544: 88 e7 00 01 lbz r7,1(r7) ffc17548: 70 e6 00 97 andi. r6,r7,151 ffc1754c: 40 82 00 08 bne- ffc17554 <_Objects_Get_name_as_string+0xe8> ffc17550: 38 00 00 2a li r0,42 ffc17554: 98 09 00 00 stb r0,0(r9) s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { ffc17558: 39 29 00 01 addi r9,r9,1 ffc1755c: 42 40 00 14 bdz- ffc17570 <_Objects_Get_name_as_string+0x104> ffc17560: 7c 0a 58 ae lbzx r0,r10,r11 ffc17564: 39 6b 00 01 addi r11,r11,1 ffc17568: 2f 80 00 00 cmpwi cr7,r0,0 ffc1756c: 40 9e ff d0 bne+ cr7,ffc1753c <_Objects_Get_name_as_string+0xd0> *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; ffc17570: 38 00 00 00 li r0,0 ffc17574: 98 09 00 00 stb r0,0(r9) _Thread_Enable_dispatch(); ffc17578: 4b ff 7d 11 bl ffc0f288 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return name; ffc1757c: 48 00 00 08 b ffc17584 <_Objects_Get_name_as_string+0x118> <== ALWAYS TAKEN ffc17580: 3b e0 00 00 li r31,0 } return NULL; /* unreachable path */ } ffc17584: 80 01 00 2c lwz r0,44(r1) ffc17588: 7f e3 fb 78 mr r3,r31 ffc1758c: 83 81 00 18 lwz r28,24(r1) ffc17590: 7c 08 03 a6 mtlr r0 ffc17594: 83 a1 00 1c lwz r29,28(r1) ffc17598: 83 c1 00 20 lwz r30,32(r1) ffc1759c: 83 e1 00 24 lwz r31,36(r1) ffc175a0: 38 21 00 28 addi r1,r1,40 ffc175a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1aa14 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { ffc1aa14: 94 21 ff e8 stwu r1,-24(r1) ffc1aa18: 7c 08 02 a6 mflr r0 ffc1aa1c: 93 c1 00 10 stw r30,16(r1) Objects_Control *object; Objects_Id next_id; if ( !information ) ffc1aa20: 7c 7e 1b 79 mr. r30,r3 Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { ffc1aa24: 93 81 00 08 stw r28,8(r1) ffc1aa28: 7c dc 33 78 mr r28,r6 ffc1aa2c: 93 e1 00 14 stw r31,20(r1) ffc1aa30: 7c bf 2b 78 mr r31,r5 ffc1aa34: 90 01 00 1c stw r0,28(r1) ffc1aa38: 93 a1 00 0c stw r29,12(r1) Objects_Control *object; Objects_Id next_id; if ( !information ) ffc1aa3c: 41 a2 00 78 beq+ ffc1aab4 <_Objects_Get_next+0xa0> return NULL; if ( !location_p ) ffc1aa40: 2f 85 00 00 cmpwi cr7,r5,0 ffc1aa44: 41 be 00 70 beq+ cr7,ffc1aab4 <_Objects_Get_next+0xa0> return NULL; if ( !next_id_p ) ffc1aa48: 2f 86 00 00 cmpwi cr7,r6,0 ffc1aa4c: 41 9e 00 68 beq- cr7,ffc1aab4 <_Objects_Get_next+0xa0> return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) ffc1aa50: 54 80 04 3e clrlwi r0,r4,16 ffc1aa54: 2f 80 00 00 cmpwi cr7,r0,0 ffc1aa58: 7c 9d 23 78 mr r29,r4 ffc1aa5c: 40 9e 00 08 bne- cr7,ffc1aa64 <_Objects_Get_next+0x50> next_id = information->minimum_id; ffc1aa60: 83 be 00 08 lwz r29,8(r30) else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) ffc1aa64: a1 3e 00 10 lhz r9,16(r30) ffc1aa68: 57 a0 04 3e clrlwi r0,r29,16 *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); ffc1aa6c: 7f a4 eb 78 mr r4,r29 else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) ffc1aa70: 7f 89 00 40 cmplw cr7,r9,r0 *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); ffc1aa74: 7f c3 f3 78 mr r3,r30 ffc1aa78: 7f e5 fb 78 mr r5,r31 next_id++; ffc1aa7c: 3b bd 00 01 addi r29,r29,1 else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) ffc1aa80: 40 bc 00 1c bge+ cr7,ffc1aa9c <_Objects_Get_next+0x88> { *location_p = OBJECTS_ERROR; ffc1aa84: 38 00 00 01 li r0,1 ffc1aa88: 90 1f 00 00 stw r0,0(r31) *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; ffc1aa8c: 38 00 ff ff li r0,-1 ffc1aa90: 38 60 00 00 li r3,0 ffc1aa94: 90 1c 00 00 stw r0,0(r28) return 0; ffc1aa98: 48 00 00 20 b ffc1aab8 <_Objects_Get_next+0xa4> <== ALWAYS TAKEN *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); ffc1aa9c: 4b ff 3c 25 bl ffc0e6c0 <_Objects_Get> <== ALWAYS TAKEN next_id++; } while (*location_p != OBJECTS_LOCAL); ffc1aaa0: 80 1f 00 00 lwz r0,0(r31) ffc1aaa4: 2f 80 00 00 cmpwi cr7,r0,0 ffc1aaa8: 40 9e ff bc bne+ cr7,ffc1aa64 <_Objects_Get_next+0x50> *next_id_p = next_id; ffc1aaac: 93 bc 00 00 stw r29,0(r28) return object; ffc1aab0: 48 00 00 08 b ffc1aab8 <_Objects_Get_next+0xa4> <== ALWAYS TAKEN final: *next_id_p = OBJECTS_ID_FINAL; return 0; ffc1aab4: 38 60 00 00 li r3,0 } ffc1aab8: 80 01 00 1c lwz r0,28(r1) ffc1aabc: 83 81 00 08 lwz r28,8(r1) ffc1aac0: 7c 08 03 a6 mtlr r0 ffc1aac4: 83 a1 00 0c lwz r29,12(r1) ffc1aac8: 83 c1 00 10 lwz r30,16(r1) ffc1aacc: 83 e1 00 14 lwz r31,20(r1) ffc1aad0: 38 21 00 18 addi r1,r1,24 ffc1aad4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1c150 <_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; ffc1c150: 81 23 00 08 lwz r9,8(r3) if ( information->maximum >= index ) { ffc1c154: 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; ffc1c158: 21 29 00 01 subfic r9,r9,1 ffc1c15c: 7d 29 22 14 add r9,r9,r4 if ( information->maximum >= index ) { ffc1c160: 7f 80 48 40 cmplw cr7,r0,r9 ffc1c164: 41 9c 00 24 blt- cr7,ffc1c188 <_Objects_Get_no_protection+0x38> if ( (the_object = information->local_table[ index ]) != NULL ) { ffc1c168: 81 63 00 1c lwz r11,28(r3) ffc1c16c: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc1c170: 7c 6b 48 2e lwzx r3,r11,r9 ffc1c174: 2f 83 00 00 cmpwi cr7,r3,0 ffc1c178: 41 9e 00 10 beq- cr7,ffc1c188 <_Objects_Get_no_protection+0x38> <== NEVER TAKEN *location = OBJECTS_LOCAL; ffc1c17c: 38 00 00 00 li r0,0 ffc1c180: 90 05 00 00 stw r0,0(r5) return the_object; ffc1c184: 4e 80 00 20 blr <== ALWAYS TAKEN /* * This isn't supported or required yet for Global objects so * if it isn't local, we don't find it. */ *location = OBJECTS_ERROR; ffc1c188: 38 00 00 01 li r0,1 ffc1c18c: 90 05 00 00 stw r0,0(r5) ffc1c190: 38 60 00 00 li r3,0 return NULL; } ffc1c194: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e750 <_Objects_Id_to_name>: /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc0e750: 2c 03 00 00 cmpwi r3,0 */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { ffc0e754: 94 21 ff e0 stwu r1,-32(r1) ffc0e758: 7c 08 02 a6 mflr r0 ffc0e75c: 93 e1 00 1c stw r31,28(r1) ffc0e760: 7c 9f 23 78 mr r31,r4 ffc0e764: 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; ffc0e768: 41 82 00 0c beq- ffc0e774 <_Objects_Id_to_name+0x24> ffc0e76c: 7c 64 1b 78 mr r4,r3 ffc0e770: 48 00 00 10 b ffc0e780 <_Objects_Id_to_name+0x30> <== ALWAYS TAKEN ffc0e774: 3d 20 00 00 lis r9,0 ffc0e778: 81 29 29 b4 lwz r9,10676(r9) ffc0e77c: 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); ffc0e780: 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 ) ffc0e784: 38 09 ff ff addi r0,r9,-1 ffc0e788: 2b 80 00 03 cmplwi cr7,r0,3 ffc0e78c: 41 9d 00 48 bgt- cr7,ffc0e7d4 <_Objects_Id_to_name+0x84> ffc0e790: 48 00 00 5c b ffc0e7ec <_Objects_Id_to_name+0x9c> <== ALWAYS TAKEN if ( !_Objects_Information_table[ the_api ] ) return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; ffc0e794: 54 80 3e 7a rlwinm r0,r4,7,25,29 ffc0e798: 7c 69 00 2e lwzx r3,r9,r0 if ( !information ) ffc0e79c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e7a0: 41 9e 00 34 beq- cr7,ffc0e7d4 <_Objects_Id_to_name+0x84> <== NEVER TAKEN return OBJECTS_INVALID_ID; #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) ffc0e7a4: 88 03 00 38 lbz r0,56(r3) ffc0e7a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e7ac: 40 9e 00 28 bne- cr7,ffc0e7d4 <_Objects_Id_to_name+0x84> <== NEVER TAKEN return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); ffc0e7b0: 38 a1 00 08 addi r5,r1,8 ffc0e7b4: 4b ff ff 0d bl ffc0e6c0 <_Objects_Get> <== ALWAYS TAKEN if ( !the_object ) ffc0e7b8: 2c 03 00 00 cmpwi r3,0 ffc0e7bc: 41 82 00 18 beq- ffc0e7d4 <_Objects_Id_to_name+0x84> return OBJECTS_INVALID_ID; *name = the_object->name; ffc0e7c0: 80 03 00 0c lwz r0,12(r3) ffc0e7c4: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc0e7c8: 48 00 0a c1 bl ffc0f288 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0e7cc: 38 60 00 00 li r3,0 return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; ffc0e7d0: 48 00 00 08 b ffc0e7d8 <_Objects_Id_to_name+0x88> <== ALWAYS TAKEN ffc0e7d4: 38 60 00 03 li r3,3 } ffc0e7d8: 80 01 00 24 lwz r0,36(r1) ffc0e7dc: 83 e1 00 1c lwz r31,28(r1) ffc0e7e0: 38 21 00 20 addi r1,r1,32 ffc0e7e4: 7c 08 03 a6 mtlr r0 ffc0e7e8: 4e 80 00 20 blr <== ALWAYS TAKEN the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) ffc0e7ec: 3d 60 00 00 lis r11,0 ffc0e7f0: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc0e7f4: 39 6b 35 20 addi r11,r11,13600 ffc0e7f8: 7d 2b 48 2e lwzx r9,r11,r9 ffc0e7fc: 2f 89 00 00 cmpwi cr7,r9,0 ffc0e800: 40 9e ff 94 bne+ cr7,ffc0e794 <_Objects_Id_to_name+0x44> ffc0e804: 4b ff ff d0 b ffc0e7d4 <_Objects_Id_to_name+0x84> <== ALWAYS TAKEN ffc098cc <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { ffc098cc: 7c 08 02 a6 mflr r0 ffc098d0: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; ffc098d4: 3d 40 00 00 lis r10,0 , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { ffc098d8: 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; ffc098dc: 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) { ffc098e0: 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; ffc098e4: 39 4a 2c 20 addi r10,r10,11296 uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->size = size; ffc098e8: 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; ffc098ec: 54 8b 10 3a rlwinm r11,r4,2,0,29 ffc098f0: 7d 6a 58 2e lwzx r11,r10,r11 ffc098f4: 54 ac 10 3a rlwinm r12,r5,2,0,29 #endif information->the_api = the_api; information->the_class = the_class; information->size = size; information->local_table = 0; ffc098f8: 39 40 00 00 li r10,0 information->inactive_per_block = 0; information->object_blocks = 0; information->inactive = 0; #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) information->is_string = is_string; ffc098fc: 99 03 00 38 stb r8,56(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; ffc09900: 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; ffc09904: 7c 6b 61 2e stwx r3,r11,r12 /* * 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; ffc09908: b1 43 00 10 sth r10,16(r3) <== ALWAYS TAKEN uint32_t maximum_per_allocation; #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; ffc0990c: 90 83 00 00 stw r4,0(r3) information->the_class = the_class; ffc09910: b0 a3 00 04 sth r5,4(r3) <== ALWAYS TAKEN information->size = size; information->local_table = 0; ffc09914: 91 43 00 1c stw r10,28(r3) information->inactive_per_block = 0; ffc09918: 91 43 00 30 stw r10,48(r3) information->object_blocks = 0; ffc0991c: 91 43 00 34 stw r10,52(r3) <== ALWAYS TAKEN information->inactive = 0; ffc09920: 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 = ffc09924: 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) { ffc09928: 41 9e 00 1c beq- cr7,ffc09944 <_Objects_Initialize_information+0x78> ffc0992c: 2f 86 00 00 cmpwi cr7,r6,0 ffc09930: 40 be 00 14 bne+ cr7,ffc09944 <_Objects_Initialize_information+0x78> _Internal_error_Occurred( ffc09934: 38 60 00 00 li r3,0 ffc09938: 38 80 00 01 li r4,1 ffc0993c: 38 a0 00 14 li r5,20 ffc09940: 4b ff f8 f1 bl ffc09230 <_Internal_error_Occurred> <== ALWAYS TAKEN /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) ffc09944: 71 20 00 03 andi. r0,r9,3 } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; ffc09948: 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 = ffc0994c: 54 84 c0 0e rlwinm r4,r4,24,0,7 ffc09950: 64 84 00 01 oris r4,r4,1 <== ALWAYS TAKEN ffc09954: 54 a5 d8 08 rlwinm r5,r5,27,0,4 <== ALWAYS TAKEN ffc09958: 7c 06 00 d0 neg r0,r6 ffc0995c: 54 00 0f fe rlwinm r0,r0,1,31,31 ffc09960: 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; ffc09964: 3d 60 00 00 lis r11,0 /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = ffc09968: 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; ffc0996c: 39 6b 29 8c addi r11,r11,10636 <== ALWAYS TAKEN /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = ffc09970: 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) & ffc09974: 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; ffc09978: 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) & ffc0997c: 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) ) ffc09980: 40 82 00 08 bne- ffc09988 <_Objects_Initialize_information+0xbc> ffc09984: 7d 20 4b 78 mr r0,r9 _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { ffc09988: 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; ffc0998c: b0 03 00 3a sth r0,58(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc09990: 39 63 00 24 addi r11,r3,36 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc09994: 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); ffc09998: 91 63 00 20 stw r11,32(r3) the_chain->permanent_null = NULL; ffc0999c: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc099a0: 90 03 00 24 stw r0,36(r3) <== ALWAYS TAKEN the_chain->last = _Chain_Head(the_chain); ffc099a4: 91 23 00 28 stw r9,40(r3) _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { ffc099a8: 41 be 00 08 beq+ cr7,ffc099b0 <_Objects_Initialize_information+0xe4> /* * 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 ); ffc099ac: 4b ff f9 c5 bl ffc09370 <_Objects_Extend_information> <== ALWAYS TAKEN _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } ffc099b0: 80 01 00 0c lwz r0,12(r1) ffc099b4: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc099b8: 7c 08 03 a6 mtlr r0 ffc099bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1695c <_Objects_Name_to_id_string>: Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( Objects_Information *information, const char *name, Objects_Id *id ) { ffc1695c: 94 21 ff e0 stwu r1,-32(r1) ffc16960: 7c 08 02 a6 mflr r0 ffc16964: 93 41 00 08 stw r26,8(r1) uint32_t index; uint32_t name_length; /* ASSERT: information->is_string == true */ if ( !id ) ffc16968: 7c ba 2b 79 mr. r26,r5 Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( Objects_Information *information, const char *name, Objects_Id *id ) { ffc1696c: 93 61 00 0c stw r27,12(r1) ffc16970: 7c 9b 23 78 mr r27,r4 ffc16974: 93 a1 00 14 stw r29,20(r1) ffc16978: 7c 7d 1b 78 mr r29,r3 uint32_t index; uint32_t name_length; /* ASSERT: information->is_string == true */ if ( !id ) ffc1697c: 38 60 00 02 li r3,2 Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( Objects_Information *information, const char *name, Objects_Id *id ) { ffc16980: 90 01 00 24 stw r0,36(r1) ffc16984: 93 81 00 10 stw r28,16(r1) ffc16988: 93 c1 00 18 stw r30,24(r1) ffc1698c: 93 e1 00 1c stw r31,28(r1) uint32_t index; uint32_t name_length; /* ASSERT: information->is_string == true */ if ( !id ) ffc16990: 41 82 00 74 beq- ffc16a04 <_Objects_Name_to_id_string+0xa8> return OBJECTS_INVALID_ADDRESS; if ( !name ) ffc16994: 2f 84 00 00 cmpwi cr7,r4,0 ffc16998: 41 9e 00 68 beq- cr7,ffc16a00 <_Objects_Name_to_id_string+0xa4> return OBJECTS_INVALID_NAME; if ( information->maximum != 0 ) { ffc1699c: a3 9d 00 10 lhz r28,16(r29) ffc169a0: 3b e0 00 01 li r31,1 ffc169a4: 2f 9c 00 00 cmpwi cr7,r28,0 ffc169a8: 40 be 00 44 bne+ cr7,ffc169ec <_Objects_Name_to_id_string+0x90> ffc169ac: 48 00 00 54 b ffc16a00 <_Objects_Name_to_id_string+0xa4> <== ALWAYS TAKEN name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; ffc169b0: 81 3d 00 1c lwz r9,28(r29) ffc169b4: 7f c9 00 2e lwzx r30,r9,r0 if ( !the_object ) ffc169b8: 2f 9e 00 00 cmpwi cr7,r30,0 ffc169bc: 41 9e 00 30 beq- cr7,ffc169ec <_Objects_Name_to_id_string+0x90> continue; if ( !the_object->name.name_p ) ffc169c0: 80 1e 00 0c lwz r0,12(r30) ffc169c4: 2f 80 00 00 cmpwi cr7,r0,0 continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { ffc169c8: 7c 04 03 78 mr r4,r0 for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( !the_object->name.name_p ) ffc169cc: 41 9e 00 20 beq- cr7,ffc169ec <_Objects_Name_to_id_string+0x90> continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { ffc169d0: a0 bd 00 3a lhz r5,58(r29) ffc169d4: 48 00 4b c9 bl ffc1b59c <== ALWAYS TAKEN ffc169d8: 2f 83 00 00 cmpwi cr7,r3,0 ffc169dc: 40 be 00 10 bne+ cr7,ffc169ec <_Objects_Name_to_id_string+0x90> *id = the_object->id; ffc169e0: 80 1e 00 08 lwz r0,8(r30) ffc169e4: 90 1a 00 00 stw r0,0(r26) return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; ffc169e8: 48 00 00 1c b ffc16a04 <_Objects_Name_to_id_string+0xa8> <== ALWAYS TAKEN return OBJECTS_INVALID_NAME; if ( information->maximum != 0 ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc169ec: 7f 9f e0 40 cmplw cr7,r31,r28 the_object = information->local_table[ index ]; ffc169f0: 57 e0 10 3a rlwinm r0,r31,2,0,29 continue; if ( !the_object->name.name_p ) continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { ffc169f4: 7f 63 db 78 mr r3,r27 return OBJECTS_INVALID_NAME; if ( information->maximum != 0 ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc169f8: 3b ff 00 01 addi r31,r31,1 ffc169fc: 40 9d ff b4 ble+ cr7,ffc169b0 <_Objects_Name_to_id_string+0x54> ffc16a00: 38 60 00 01 li r3,1 } } } return OBJECTS_INVALID_NAME; } ffc16a04: 80 01 00 24 lwz r0,36(r1) ffc16a08: 83 41 00 08 lwz r26,8(r1) ffc16a0c: 7c 08 03 a6 mtlr r0 ffc16a10: 83 61 00 0c lwz r27,12(r1) ffc16a14: 83 81 00 10 lwz r28,16(r1) ffc16a18: 83 a1 00 14 lwz r29,20(r1) ffc16a1c: 83 c1 00 18 lwz r30,24(r1) ffc16a20: 83 e1 00 1c lwz r31,28(r1) ffc16a24: 38 21 00 20 addi r1,r1,32 ffc16a28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09a0c <_Objects_Name_to_id_u32>: Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) ffc09a0c: 2c 06 00 00 cmpwi r6,0 Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { ffc09a10: 7c 69 1b 78 mr r9,r3 Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) ffc09a14: 38 60 00 02 li r3,2 ffc09a18: 4d 82 00 20 beqlr return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) ffc09a1c: 2f 84 00 00 cmpwi cr7,r4,0 ffc09a20: 41 9e 00 70 beq- cr7,ffc09a90 <_Objects_Name_to_id_u32+0x84> return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && ffc09a24: a0 09 00 10 lhz r0,16(r9) ffc09a28: 2f 80 00 00 cmpwi cr7,r0,0 ffc09a2c: 41 9e 00 64 beq- cr7,ffc09a90 <_Objects_Name_to_id_u32+0x84> ffc09a30: 2f 85 00 00 cmpwi cr7,r5,0 ffc09a34: 41 9e 00 48 beq- cr7,ffc09a7c <_Objects_Name_to_id_u32+0x70> ffc09a38: 6c ab 80 00 xoris r11,r5,32768 ffc09a3c: 2f 8b ff ff cmpwi cr7,r11,-1 ffc09a40: 41 9e 00 3c beq- cr7,ffc09a7c <_Objects_Name_to_id_u32+0x70> ffc09a44: 2f 85 00 01 cmpwi cr7,r5,1 ffc09a48: 40 be 00 48 bne+ cr7,ffc09a90 <_Objects_Name_to_id_u32+0x84> ffc09a4c: 48 00 00 30 b ffc09a7c <_Objects_Name_to_id_u32+0x70> <== ALWAYS TAKEN if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { the_object = information->local_table[ index ]; ffc09a50: 81 09 00 1c lwz r8,28(r9) ffc09a54: 7d 48 50 2e lwzx r10,r8,r10 if ( !the_object ) ffc09a58: 2f 8a 00 00 cmpwi cr7,r10,0 ffc09a5c: 41 9e 00 24 beq- cr7,ffc09a80 <_Objects_Name_to_id_u32+0x74> continue; if ( name == the_object->name.name_u32 ) { ffc09a60: 81 0a 00 0c lwz r8,12(r10) ffc09a64: 7f 84 40 00 cmpw cr7,r4,r8 ffc09a68: 40 be 00 18 bne+ cr7,ffc09a80 <_Objects_Name_to_id_u32+0x74> *id = the_object->id; ffc09a6c: 80 0a 00 08 lwz r0,8(r10) ffc09a70: 38 60 00 00 li r3,0 ffc09a74: 90 06 00 00 stw r0,0(r6) return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; ffc09a78: 4e 80 00 20 blr <== ALWAYS TAKEN search_local_node = true; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc09a7c: 39 60 00 01 li r11,1 ffc09a80: 7f 8b 00 40 cmplw cr7,r11,r0 the_object = information->local_table[ index ]; ffc09a84: 55 6a 10 3a rlwinm r10,r11,2,0,29 search_local_node = true; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc09a88: 39 6b 00 01 addi r11,r11,1 ffc09a8c: 40 9d ff c4 ble+ cr7,ffc09a50 <_Objects_Name_to_id_u32+0x44> ffc09a90: 38 60 00 01 li r3,1 name_for_mp.name_u32 = name; return _Objects_MP_Global_name_search( information, name_for_mp, node, id ); #else return OBJECTS_INVALID_NAME; #endif } ffc09a94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc099c0 <_Objects_Namespace_remove>: void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { ffc099c0: 94 21 ff f0 stwu r1,-16(r1) ffc099c4: 7c 08 02 a6 mflr r0 ffc099c8: 90 01 00 14 stw r0,20(r1) #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) ffc099cc: 88 03 00 38 lbz r0,56(r3) void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { ffc099d0: 93 e1 00 0c stw r31,12(r1) ffc099d4: 7c 9f 23 78 mr r31,r4 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* * If this is a string format name, then free the memory. */ if ( information->is_string && the_object->name.name_p ) ffc099d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc099dc: 41 9e 00 14 beq- cr7,ffc099f0 <_Objects_Namespace_remove+0x30> ffc099e0: 80 64 00 0c lwz r3,12(r4) ffc099e4: 2f 83 00 00 cmpwi cr7,r3,0 ffc099e8: 41 9e 00 08 beq- cr7,ffc099f0 <_Objects_Namespace_remove+0x30> _Workspace_Free( (void *)the_object->name.name_p ); ffc099ec: 48 00 22 29 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN /* * Clear out either format. */ #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) the_object->name.name_p = NULL; ffc099f0: 38 00 00 00 li r0,0 #endif the_object->name.name_u32 = 0; ffc099f4: 90 1f 00 0c stw r0,12(r31) } ffc099f8: 80 01 00 14 lwz r0,20(r1) ffc099fc: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc09a00: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc09a04: 7c 08 03 a6 mtlr r0 ffc09a08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a3ec <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { ffc0a3ec: 94 21 ff e8 stwu r1,-24(r1) ffc0a3f0: 7c 08 02 a6 mflr r0 ffc0a3f4: 90 01 00 1c stw r0,28(r1) ffc0a3f8: 93 c1 00 10 stw r30,16(r1) ffc0a3fc: 7c 9e 23 78 mr r30,r4 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); ffc0a400: a0 83 00 3a lhz r4,58(r3) bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { ffc0a404: 93 a1 00 0c stw r29,12(r1) ffc0a408: 7c 7d 1b 78 mr r29,r3 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); ffc0a40c: 7c a3 2b 78 mr r3,r5 bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { ffc0a410: 93 81 00 08 stw r28,8(r1) ffc0a414: 7c bc 2b 78 mr r28,r5 ffc0a418: 93 e1 00 14 stw r31,20(r1) size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); ffc0a41c: 48 00 a2 9d bl ffc146b8 <== ALWAYS TAKEN ffc0a420: 7c 7f 1b 78 mr r31,r3 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { ffc0a424: 88 1d 00 38 lbz r0,56(r29) ffc0a428: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a42c: 41 be 00 54 beq+ cr7,ffc0a480 <_Objects_Set_name+0x94> char *d; d = _Workspace_Allocate( length + 1 ); ffc0a430: 38 63 00 01 addi r3,r3,1 ffc0a434: 48 00 22 11 bl ffc0c644 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !d ) ffc0a438: 7c 7d 1b 79 mr. r29,r3 ffc0a43c: 38 60 00 00 li r3,0 ffc0a440: 41 82 00 8c beq- ffc0a4cc <_Objects_Set_name+0xe0> <== NEVER TAKEN return false; if ( the_object->name.name_p ) { ffc0a444: 80 7e 00 0c lwz r3,12(r30) ffc0a448: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a44c: 41 9e 00 10 beq- cr7,ffc0a45c <_Objects_Set_name+0x70> _Workspace_Free( (void *)the_object->name.name_p ); ffc0a450: 48 00 22 29 bl ffc0c678 <_Workspace_Free> <== ALWAYS TAKEN the_object->name.name_p = NULL; ffc0a454: 38 00 00 00 li r0,0 ffc0a458: 90 1e 00 0c stw r0,12(r30) } strncpy( d, name, length ); ffc0a45c: 7f 84 e3 78 mr r4,r28 ffc0a460: 7f a3 eb 78 mr r3,r29 ffc0a464: 7f e5 fb 78 mr r5,r31 ffc0a468: 48 00 a1 71 bl ffc145d8 <== ALWAYS TAKEN d[length] = '\0'; ffc0a46c: 38 00 00 00 li r0,0 ffc0a470: 7c 1d f9 ae stbx r0,r29,r31 the_object->name.name_p = d; ffc0a474: 38 60 00 01 li r3,1 ffc0a478: 93 be 00 0c stw r29,12(r30) ffc0a47c: 48 00 00 50 b ffc0a4cc <_Objects_Set_name+0xe0> <== ALWAYS TAKEN } else #endif { the_object->name.name_u32 = _Objects_Build_name( ffc0a480: 2b 83 00 01 cmplwi cr7,r3,1 ffc0a484: 89 5c 00 00 lbz r10,0(r28) ffc0a488: 40 9d 00 64 ble- cr7,ffc0a4ec <_Objects_Set_name+0x100> ffc0a48c: 2b 83 00 02 cmplwi cr7,r3,2 ffc0a490: 89 7c 00 01 lbz r11,1(r28) ffc0a494: 55 6b 80 1e rlwinm r11,r11,16,0,15 ffc0a498: 40 9d 00 58 ble- cr7,ffc0a4f0 <_Objects_Set_name+0x104> ffc0a49c: 2b 83 00 03 cmplwi cr7,r3,3 ffc0a4a0: 89 3c 00 02 lbz r9,2(r28) ffc0a4a4: 38 00 00 20 li r0,32 ffc0a4a8: 55 29 40 2e rlwinm r9,r9,8,0,23 ffc0a4ac: 40 9d 00 08 ble- cr7,ffc0a4b4 <_Objects_Set_name+0xc8> ffc0a4b0: 88 1c 00 03 lbz r0,3(r28) ffc0a4b4: 55 4a c0 0e rlwinm r10,r10,24,0,7 ffc0a4b8: 7d 6b 53 78 or r11,r11,r10 ffc0a4bc: 7d 69 4b 78 or r9,r11,r9 ffc0a4c0: 7d 20 03 78 or r0,r9,r0 ffc0a4c4: 90 1e 00 0c stw r0,12(r30) ffc0a4c8: 38 60 00 01 li r3,1 ); } return true; } ffc0a4cc: 80 01 00 1c lwz r0,28(r1) ffc0a4d0: 83 81 00 08 lwz r28,8(r1) ffc0a4d4: 7c 08 03 a6 mtlr r0 ffc0a4d8: 83 a1 00 0c lwz r29,12(r1) ffc0a4dc: 83 c1 00 10 lwz r30,16(r1) ffc0a4e0: 83 e1 00 14 lwz r31,20(r1) ffc0a4e4: 38 21 00 18 addi r1,r1,24 ffc0a4e8: 4e 80 00 20 blr <== ALWAYS TAKEN d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( ffc0a4ec: 3d 60 00 20 lis r11,32 ffc0a4f0: 39 20 20 00 li r9,8192 ffc0a4f4: 38 00 00 20 li r0,32 ffc0a4f8: 4b ff ff bc b ffc0a4b4 <_Objects_Set_name+0xc8> <== ALWAYS TAKEN ffc09a98 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09a98: 94 21 ff e8 stwu r1,-24(r1) ffc09a9c: 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) / ffc09aa0: 39 20 00 00 li r9,0 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09aa4: 90 01 00 1c stw r0,28(r1) ffc09aa8: 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) / ffc09aac: 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 ); ffc09ab0: a3 c3 00 0a lhz r30,10(r3) block_count = (information->maximum - index_base) / ffc09ab4: a1 63 00 14 lhz r11,20(r3) ffc09ab8: 7d 5e 50 50 subf r10,r30,r10 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09abc: 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) / ffc09ac0: 7d 4a 5b 96 divwu r10,r10,r11 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc09ac4: 93 81 00 08 stw r28,8(r1) ffc09ac8: 93 a1 00 0c stw r29,12(r1) ffc09acc: 2f 8a 00 00 cmpwi cr7,r10,0 ffc09ad0: 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) / ffc09ad4: 38 0a 00 01 addi r0,r10,1 ffc09ad8: 40 be 00 88 bne+ cr7,ffc09b60 <_Objects_Shrink_information+0xc8> <== ALWAYS TAKEN ffc09adc: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc09ae0: 48 00 00 80 b ffc09b60 <_Objects_Shrink_information+0xc8> <== NOT EXECUTED information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == ffc09ae4: 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++ ) { ffc09ae8: 39 29 00 01 addi r9,r9,1 if ( information->inactive_per_block[ block ] == ffc09aec: 7d 4a e8 2e lwzx r10,r10,r29 ffc09af0: 7f 8a 58 00 cmpw cr7,r10,r11 ffc09af4: 40 be 00 68 bne+ cr7,ffc09b5c <_Objects_Shrink_information+0xc4> information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; ffc09af8: 80 7f 00 20 lwz r3,32(r31) do { index = _Objects_Get_index( the_object->id ); ffc09afc: 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; ffc09b00: 83 83 00 00 lwz r28,0(r3) if ((index >= index_base) && ffc09b04: 7f 80 f0 40 cmplw cr7,r0,r30 ffc09b08: 41 9c 00 18 blt- cr7,ffc09b20 <_Objects_Shrink_information+0x88> (index < (index_base + information->allocation_size))) { ffc09b0c: a1 3f 00 14 lhz r9,20(r31) ffc09b10: 7d 3e 4a 14 add r9,r30,r9 ffc09b14: 7f 80 48 40 cmplw cr7,r0,r9 ffc09b18: 40 bc 00 08 bge+ cr7,ffc09b20 <_Objects_Shrink_information+0x88> _Chain_Extract( &extract_me->Node ); ffc09b1c: 48 00 4a 11 bl ffc0e52c <_Chain_Extract> <== ALWAYS TAKEN } } while ( the_object ); ffc09b20: 2f 9c 00 00 cmpwi cr7,r28,0 ffc09b24: 7f 83 e3 78 mr r3,r28 ffc09b28: 40 9e ff d4 bne+ cr7,ffc09afc <_Objects_Shrink_information+0x64> /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); ffc09b2c: 81 3f 00 34 lwz r9,52(r31) ffc09b30: 7c 69 e8 2e lwzx r3,r9,r29 ffc09b34: 48 00 20 e1 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; ffc09b38: a1 5f 00 2c lhz r10,44(r31) ffc09b3c: 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; ffc09b40: 81 3f 00 34 lwz r9,52(r31) information->inactive_per_block[ block ] = 0; ffc09b44: 81 7f 00 30 lwz r11,48(r31) information->inactive -= information->allocation_size; ffc09b48: 7c 00 50 50 subf r0,r0,r10 ffc09b4c: 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; ffc09b50: 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; ffc09b54: 7f 89 e9 2e stwx r28,r9,r29 information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; ffc09b58: 48 00 00 14 b ffc09b6c <_Objects_Shrink_information+0xd4> <== ALWAYS TAKEN } index_base += information->allocation_size; ffc09b5c: 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++ ) { ffc09b60: 34 00 ff ff addic. r0,r0,-1 ffc09b64: 55 3d 10 3a rlwinm r29,r9,2,0,29 ffc09b68: 40 82 ff 7c bne+ ffc09ae4 <_Objects_Shrink_information+0x4c> return; } index_base += information->allocation_size; } } ffc09b6c: 80 01 00 1c lwz r0,28(r1) ffc09b70: 83 81 00 08 lwz r28,8(r1) ffc09b74: 7c 08 03 a6 mtlr r0 ffc09b78: 83 a1 00 0c lwz r29,12(r1) ffc09b7c: 83 c1 00 10 lwz r30,16(r1) ffc09b80: 83 e1 00 14 lwz r31,20(r1) ffc09b84: 38 21 00 18 addi r1,r1,24 ffc09b88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08568 <_POSIX_API_Initialize>: */ Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ]; void _POSIX_API_Initialize(void) { ffc08568: 94 21 ff f8 stwu r1,-8(r1) ffc0856c: 7c 08 02 a6 mflr r0 /* * Install our API Object Management Table and initialize the * various managers. */ _Objects_Information_table[OBJECTS_POSIX_API] = _POSIX_Objects; ffc08570: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN */ Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ]; void _POSIX_API_Initialize(void) { ffc08574: 90 01 00 0c stw r0,12(r1) /* * Install our API Object Management Table and initialize the * various managers. */ _Objects_Information_table[OBJECTS_POSIX_API] = _POSIX_Objects; ffc08578: 38 09 30 d0 addi r0,r9,12496 ffc0857c: 3d 20 00 00 lis r9,0 ffc08580: 90 09 2c 2c stw r0,11308(r9) _POSIX_signals_Manager_Initialization(); ffc08584: 48 00 51 71 bl ffc0d6f4 <_POSIX_signals_Manager_Initialization> <== ALWAYS TAKEN _POSIX_Threads_Manager_initialization(); ffc08588: 48 00 53 e1 bl ffc0d968 <_POSIX_Threads_Manager_initialization> <== ALWAYS TAKEN _POSIX_Condition_variables_Manager_initialization(); ffc0858c: 48 00 4f 61 bl ffc0d4ec <_POSIX_Condition_variables_Manager_initialization> <== ALWAYS TAKEN _POSIX_Key_Manager_initialization(); ffc08590: 48 00 4f a1 bl ffc0d530 <_POSIX_Key_Manager_initialization> <== ALWAYS TAKEN _POSIX_Mutex_Manager_initialization(); ffc08594: 48 00 50 55 bl ffc0d5e8 <_POSIX_Mutex_Manager_initialization> <== ALWAYS TAKEN _POSIX_Message_queue_Manager_initialization(); ffc08598: 48 00 4f dd bl ffc0d574 <_POSIX_Message_queue_Manager_initialization> <== ALWAYS TAKEN _POSIX_Semaphore_Manager_initialization(); ffc0859c: 48 00 57 79 bl ffc0dd14 <_POSIX_Semaphore_Manager_initialization> <== ALWAYS TAKEN _POSIX_Timer_Manager_initialization(); ffc085a0: 48 00 57 31 bl ffc0dcd0 <_POSIX_Timer_Manager_initialization> <== ALWAYS TAKEN _POSIX_Barrier_Manager_initialization(); ffc085a4: 48 00 50 c9 bl ffc0d66c <_POSIX_Barrier_Manager_initialization> <== ALWAYS TAKEN _POSIX_RWLock_Manager_initialization(); ffc085a8: 48 00 51 09 bl ffc0d6b0 <_POSIX_RWLock_Manager_initialization> <== ALWAYS TAKEN _POSIX_Spinlock_Manager_initialization(); ffc085ac: 48 00 53 45 bl ffc0d8f0 <_POSIX_Spinlock_Manager_initialization> <== ALWAYS TAKEN } ffc085b0: 80 01 00 0c lwz r0,12(r1) ffc085b4: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc085b8: 7c 08 03 a6 mtlr r0 ffc085bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a96c <_POSIX_Absolute_timeout_to_ticks>: */ POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks( const struct timespec *abstime, Watchdog_Interval *ticks_out ) { ffc0a96c: 94 21 ff d8 stwu r1,-40(r1) ffc0a970: 7c 08 02 a6 mflr r0 ffc0a974: 90 01 00 2c stw r0,44(r1) /* * Make sure there is always a value returned. */ *ticks_out = 0; ffc0a978: 38 00 00 00 li r0,0 ffc0a97c: 90 04 00 00 stw r0,0(r4) */ POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks( const struct timespec *abstime, Watchdog_Interval *ticks_out ) { ffc0a980: 93 81 00 18 stw r28,24(r1) ffc0a984: 7c 7c 1b 78 mr r28,r3 ffc0a988: 93 e1 00 24 stw r31,36(r1) ffc0a98c: 7c 9f 23 78 mr r31,r4 ffc0a990: 93 a1 00 1c stw r29,28(r1) ffc0a994: 93 c1 00 20 stw r30,32(r1) *ticks_out = 0; /* * Is the absolute time even valid? */ if ( !_Timespec_Is_valid(abstime) ) ffc0a998: 48 00 4b 49 bl ffc0f4e0 <_Timespec_Is_valid> <== ALWAYS TAKEN ffc0a99c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a9a0: 38 60 00 00 li r3,0 ffc0a9a4: 41 be 00 54 beq+ cr7,ffc0a9f8 <_POSIX_Absolute_timeout_to_ticks+0x8c> return POSIX_ABSOLUTE_TIMEOUT_INVALID; /* * Is the absolute time in the past? */ _TOD_Get( ¤t_time ); ffc0a9a8: 3b a1 00 08 addi r29,r1,8 ffc0a9ac: 7f a3 eb 78 mr r3,r29 ffc0a9b0: 48 00 23 91 bl ffc0cd40 <_TOD_Get> <== ALWAYS TAKEN if ( _Timespec_Less_than( abstime, ¤t_time ) ) ffc0a9b4: 7f 83 e3 78 mr r3,r28 ffc0a9b8: 7f a4 eb 78 mr r4,r29 ffc0a9bc: 48 00 4b 61 bl ffc0f51c <_Timespec_Less_than> <== ALWAYS TAKEN ffc0a9c0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a9c4: 38 60 00 01 li r3,1 ffc0a9c8: 40 9e 00 30 bne- cr7,ffc0a9f8 <_POSIX_Absolute_timeout_to_ticks+0x8c> return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST; /* * How long until the requested absolute time? */ _Timespec_Subtract( ¤t_time, abstime, &difference ); ffc0a9cc: 3b c1 00 10 addi r30,r1,16 ffc0a9d0: 7f 84 e3 78 mr r4,r28 ffc0a9d4: 7f a3 eb 78 mr r3,r29 ffc0a9d8: 7f c5 f3 78 mr r5,r30 ffc0a9dc: 48 00 4b 7d bl ffc0f558 <_Timespec_Subtract> <== ALWAYS TAKEN /* * Internally the SuperCore uses ticks, so convert to them. */ *ticks_out = _Timespec_To_ticks( &difference ); ffc0a9e0: 7f c3 f3 78 mr r3,r30 ffc0a9e4: 48 00 4b ad bl ffc0f590 <_Timespec_To_ticks> <== ALWAYS TAKEN /* * If the difference was 0, then the future is now. It is so bright * we better wear shades. */ if ( !*ticks_out ) ffc0a9e8: 7c 60 00 34 cntlzw r0,r3 _Timespec_Subtract( ¤t_time, abstime, &difference ); /* * Internally the SuperCore uses ticks, so convert to them. */ *ticks_out = _Timespec_To_ticks( &difference ); ffc0a9ec: 90 7f 00 00 stw r3,0(r31) /* * If the difference was 0, then the future is now. It is so bright * we better wear shades. */ if ( !*ticks_out ) ffc0a9f0: 54 00 d9 7e rlwinm r0,r0,27,5,31 ffc0a9f4: 20 60 00 03 subfic r3,r0,3 /* * This is the case we were expecting and it took this long to * get here. */ return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE; } ffc0a9f8: 80 01 00 2c lwz r0,44(r1) ffc0a9fc: 83 81 00 18 lwz r28,24(r1) ffc0aa00: 7c 08 03 a6 mtlr r0 ffc0aa04: 83 a1 00 1c lwz r29,28(r1) ffc0aa08: 83 c1 00 20 lwz r30,32(r1) ffc0aa0c: 83 e1 00 24 lwz r31,36(r1) ffc0aa10: 38 21 00 28 addi r1,r1,40 ffc0aa14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d66c <_POSIX_Barrier_Manager_initialization>: * @brief _POSIX_Barrier_Manager_initialization */ void _POSIX_Barrier_Manager_initialization(void) { _Objects_Initialize_information( ffc0d66c: 3d 20 00 00 lis r9,0 /** * @brief _POSIX_Barrier_Manager_initialization */ void _POSIX_Barrier_Manager_initialization(void) { ffc0d670: 94 21 ff f8 stwu r1,-8(r1) ffc0d674: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0d678: 3c 60 00 00 lis r3,0 ffc0d67c: 80 c9 28 64 lwz r6,10340(r9) ffc0d680: 38 63 2f f8 addi r3,r3,12280 <== ALWAYS TAKEN ffc0d684: 38 80 00 03 li r4,3 /** * @brief _POSIX_Barrier_Manager_initialization */ void _POSIX_Barrier_Manager_initialization(void) { ffc0d688: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0d68c: 38 a0 00 0a li r5,10 ffc0d690: 38 e0 00 5c li r7,92 ffc0d694: 39 00 00 01 li r8,1 ffc0d698: 39 20 00 ff li r9,255 ffc0d69c: 4b ff c2 31 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0d6a0: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0d6a4: 38 21 00 08 addi r1,r1,8 ffc0d6a8: 7c 08 03 a6 mtlr r0 ffc0d6ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f0b4 <_POSIX_Barrier_Translate_core_barrier_return_code>: #if defined(RTEMS_DEBUG) if ( the_barrier_status > CORE_BARRIER_STATUS_LAST ) return EINVAL; #endif return _POSIX_Barrier_Return_codes[the_barrier_status]; } ffc0f0b4: 3d 20 ff c2 lis r9,-62 ffc0f0b8: 39 29 fe 50 addi r9,r9,-432 int _POSIX_Barrier_Translate_core_barrier_return_code( CORE_barrier_Status the_barrier_status ) { ffc0f0bc: 54 63 10 3a rlwinm r3,r3,2,0,29 #if defined(RTEMS_DEBUG) if ( the_barrier_status > CORE_BARRIER_STATUS_LAST ) return EINVAL; #endif return _POSIX_Barrier_Return_codes[the_barrier_status]; } ffc0f0c0: 7c 69 18 2e lwzx r3,r9,r3 ffc0f0c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d48 <_POSIX_Condition_variables_Get>: POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( pthread_cond_t *cond, Objects_Locations *location ) { ffc08d48: 94 21 ff f0 stwu r1,-16(r1) ffc08d4c: 7c 08 02 a6 mflr r0 ffc08d50: 93 c1 00 08 stw r30,8(r1) int status; if ( !cond ) { ffc08d54: 7c 7e 1b 79 mr. r30,r3 POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( pthread_cond_t *cond, Objects_Locations *location ) { ffc08d58: 93 e1 00 0c stw r31,12(r1) ffc08d5c: 7c 9f 23 78 mr r31,r4 ffc08d60: 90 01 00 14 stw r0,20(r1) int status; if ( !cond ) { ffc08d64: 40 a2 00 10 bne+ ffc08d74 <_POSIX_Condition_variables_Get+0x2c> *location = OBJECTS_ERROR; ffc08d68: 38 00 00 01 li r0,1 ffc08d6c: 90 04 00 00 stw r0,0(r4) return (POSIX_Condition_variables_Control *) 0; ffc08d70: 48 00 00 44 b ffc08db4 <_POSIX_Condition_variables_Get+0x6c> <== ALWAYS TAKEN } if ( *cond == PTHREAD_COND_INITIALIZER ) { ffc08d74: 80 1e 00 00 lwz r0,0(r30) ffc08d78: 2f 80 ff ff cmpwi cr7,r0,-1 ffc08d7c: 40 be 00 24 bne+ cr7,ffc08da0 <_POSIX_Condition_variables_Get+0x58> /* * Do an "auto-create" here. */ status = pthread_cond_init( cond, 0 ); ffc08d80: 38 80 00 00 li r4,0 ffc08d84: 48 00 00 49 bl ffc08dcc <== ALWAYS TAKEN if ( status ) { ffc08d88: 2f 83 00 00 cmpwi cr7,r3,0 ffc08d8c: 41 be 00 14 beq+ cr7,ffc08da0 <_POSIX_Condition_variables_Get+0x58> *location = OBJECTS_ERROR; ffc08d90: 38 00 00 01 li r0,1 ffc08d94: 90 1f 00 00 stw r0,0(r31) ffc08d98: 38 60 00 00 li r3,0 return (POSIX_Condition_variables_Control *) 0; ffc08d9c: 48 00 00 18 b ffc08db4 <_POSIX_Condition_variables_Get+0x6c> <== ALWAYS TAKEN } /* * Now call Objects_Get() */ return (POSIX_Condition_variables_Control *)_Objects_Get( ffc08da0: 3c 60 00 00 lis r3,0 ffc08da4: 80 9e 00 00 lwz r4,0(r30) ffc08da8: 38 63 30 90 addi r3,r3,12432 ffc08dac: 7f e5 fb 78 mr r5,r31 ffc08db0: 48 00 34 c5 bl ffc0c274 <_Objects_Get> <== ALWAYS TAKEN &_POSIX_Condition_variables_Information, (Objects_Id) *cond, location ); } ffc08db4: 80 01 00 14 lwz r0,20(r1) ffc08db8: 83 c1 00 08 lwz r30,8(r1) ffc08dbc: 7c 08 03 a6 mtlr r0 ffc08dc0: 83 e1 00 0c lwz r31,12(r1) ffc08dc4: 38 21 00 10 addi r1,r1,16 ffc08dc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d4ec <_POSIX_Condition_variables_Manager_initialization>: * Output parameters: NONE */ void _POSIX_Condition_variables_Manager_initialization(void) { _Objects_Initialize_information( ffc0d4ec: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _POSIX_Condition_variables_Manager_initialization(void) { ffc0d4f0: 94 21 ff f8 stwu r1,-8(r1) ffc0d4f4: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0d4f8: 3c 60 00 00 lis r3,0 ffc0d4fc: 80 c9 28 48 lwz r6,10312(r9) ffc0d500: 38 63 30 90 addi r3,r3,12432 ffc0d504: 38 80 00 03 li r4,3 * * Output parameters: NONE */ void _POSIX_Condition_variables_Manager_initialization(void) { ffc0d508: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0d50c: 38 a0 00 08 li r5,8 <== ALWAYS TAKEN ffc0d510: 38 e0 00 58 li r7,88 ffc0d514: 39 00 00 01 li r8,1 ffc0d518: 39 20 00 ff li r9,255 ffc0d51c: 4b ff c3 b1 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0d520: 80 01 00 0c lwz r0,12(r1) ffc0d524: 38 21 00 08 addi r1,r1,8 ffc0d528: 7c 08 03 a6 mtlr r0 ffc0d52c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08ed8 <_POSIX_Condition_variables_Signal_support>: int _POSIX_Condition_variables_Signal_support( pthread_cond_t *cond, bool is_broadcast ) { ffc08ed8: 94 21 ff d8 stwu r1,-40(r1) ffc08edc: 7c 08 02 a6 mflr r0 ffc08ee0: 7d 80 00 26 mfcr r12 ffc08ee4: 93 e1 00 24 stw r31,36(r1) ffc08ee8: 7c 9f 23 78 mr r31,r4 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; Thread_Control *the_thread; the_cond = _POSIX_Condition_variables_Get( cond, &location ); ffc08eec: 38 81 00 08 addi r4,r1,8 int _POSIX_Condition_variables_Signal_support( pthread_cond_t *cond, bool is_broadcast ) { ffc08ef0: 90 01 00 2c stw r0,44(r1) ffc08ef4: 93 a1 00 1c stw r29,28(r1) ffc08ef8: 93 c1 00 20 stw r30,32(r1) ffc08efc: 91 81 00 18 stw r12,24(r1) register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; Thread_Control *the_thread; the_cond = _POSIX_Condition_variables_Get( cond, &location ); ffc08f00: 4b ff fe 49 bl ffc08d48 <_POSIX_Condition_variables_Get> <== ALWAYS TAKEN ffc08f04: 7c 7e 1b 78 mr r30,r3 <== ALWAYS TAKEN switch ( location ) { ffc08f08: 80 01 00 08 lwz r0,8(r1) case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); ffc08f0c: 3b a3 00 18 addi r29,r3,24 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; Thread_Control *the_thread; the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { ffc08f10: 38 60 00 16 li r3,22 ffc08f14: 2f 80 00 00 cmpwi cr7,r0,0 ffc08f18: 40 9e 00 30 bne- cr7,ffc08f48 <_POSIX_Condition_variables_Signal_support+0x70> case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); if ( !the_thread ) the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; } while ( is_broadcast && the_thread ); ffc08f1c: 2e 1f 00 00 cmpwi cr4,r31,0 the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); ffc08f20: 7f a3 eb 78 mr r3,r29 ffc08f24: 48 00 42 99 bl ffc0d1bc <_Thread_queue_Dequeue> <== ALWAYS TAKEN if ( !the_thread ) ffc08f28: 2c 03 00 00 cmpwi r3,0 the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; } while ( is_broadcast && the_thread ); ffc08f2c: 4f 80 00 00 mcrf cr7,cr0 switch ( location ) { case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); if ( !the_thread ) ffc08f30: 40 a2 00 08 bne+ ffc08f38 <_POSIX_Condition_variables_Signal_support+0x60> the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; ffc08f34: 90 7e 00 14 stw r3,20(r30) } while ( is_broadcast && the_thread ); ffc08f38: 41 92 00 08 beq- cr4,ffc08f40 <_POSIX_Condition_variables_Signal_support+0x68> ffc08f3c: 40 9e ff e4 bne+ cr7,ffc08f20 <_POSIX_Condition_variables_Signal_support+0x48> _Thread_Enable_dispatch(); ffc08f40: 48 00 3e 45 bl ffc0cd84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08f44: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc08f48: 80 01 00 2c lwz r0,44(r1) ffc08f4c: 81 81 00 18 lwz r12,24(r1) ffc08f50: 7c 08 03 a6 mtlr r0 ffc08f54: 83 a1 00 1c lwz r29,28(r1) ffc08f58: 83 c1 00 20 lwz r30,32(r1) ffc08f5c: 7d 80 81 20 mtcrf 8,r12 ffc08f60: 83 e1 00 24 lwz r31,36(r1) ffc08f64: 38 21 00 28 addi r1,r1,40 ffc08f68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08ffc <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { ffc08ffc: 94 21 ff d0 stwu r1,-48(r1) <== ALWAYS TAKEN ffc09000: 7c 08 02 a6 mflr r0 ffc09004: 93 a1 00 24 stw r29,36(r1) register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { ffc09008: 3b a1 00 08 addi r29,r1,8 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { ffc0900c: 93 e1 00 2c stw r31,44(r1) ffc09010: 7c 9f 23 78 mr r31,r4 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { ffc09014: 7f a4 eb 78 mr r4,r29 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { ffc09018: 93 c1 00 28 stw r30,40(r1) ffc0901c: 7c 7e 1b 78 mr r30,r3 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { ffc09020: 7f e3 fb 78 mr r3,r31 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { ffc09024: 93 61 00 1c stw r27,28(r1) ffc09028: 7c db 33 78 mr r27,r6 ffc0902c: 93 81 00 20 stw r28,32(r1) ffc09030: 7c bc 2b 78 mr r28,r5 ffc09034: 90 01 00 34 stw r0,52(r1) ffc09038: 93 41 00 18 stw r26,24(r1) register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { ffc0903c: 48 00 02 3d bl ffc09278 <_POSIX_Mutex_Get> <== ALWAYS TAKEN ffc09040: 2f 83 00 00 cmpwi cr7,r3,0 ffc09044: 41 9e 00 d8 beq- cr7,ffc0911c <_POSIX_Condition_variables_Wait_support+0x120> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc09048: 3d 20 00 00 lis r9,0 ffc0904c: 81 69 27 c8 lwz r11,10184(r9) return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); ffc09050: 7f a4 eb 78 mr r4,r29 ffc09054: 7f c3 f3 78 mr r3,r30 ffc09058: 38 0b ff ff addi r0,r11,-1 ffc0905c: 90 09 27 c8 stw r0,10184(r9) ffc09060: 4b ff fc e9 bl ffc08d48 <_POSIX_Condition_variables_Get> <== ALWAYS TAKEN ffc09064: 7c 7a 1b 78 mr r26,r3 switch ( location ) { ffc09068: 80 01 00 08 lwz r0,8(r1) ffc0906c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09070: 40 9e 00 ac bne- cr7,ffc0911c <_POSIX_Condition_variables_Wait_support+0x120> case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { ffc09074: 80 03 00 14 lwz r0,20(r3) ffc09078: 2f 80 00 00 cmpwi cr7,r0,0 ffc0907c: 41 9e 00 18 beq- cr7,ffc09094 <_POSIX_Condition_variables_Wait_support+0x98> ffc09080: 81 3f 00 00 lwz r9,0(r31) ffc09084: 7f 80 48 00 cmpw cr7,r0,r9 ffc09088: 41 9e 00 0c beq- cr7,ffc09094 <_POSIX_Condition_variables_Wait_support+0x98> _Thread_Enable_dispatch(); ffc0908c: 48 00 3c f9 bl ffc0cd84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09090: 48 00 00 8c b ffc0911c <_POSIX_Condition_variables_Wait_support+0x120> <== ALWAYS TAKEN return EINVAL; } (void) pthread_mutex_unlock( mutex ); ffc09094: 7f e3 fb 78 mr r3,r31 ffc09098: 48 00 04 99 bl ffc09530 <== ALWAYS TAKEN _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { ffc0909c: 2f 9b 00 00 cmpwi cr7,r27,0 ffc090a0: 40 be 00 64 bne+ cr7,ffc09104 <_POSIX_Condition_variables_Wait_support+0x108> the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; ffc090a4: 3f a0 00 00 lis r29,0 return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; ffc090a8: 80 1f 00 00 lwz r0,0(r31) _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; ffc090ac: 81 3d 28 08 lwz r9,10248(r29) 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; ffc090b0: 39 40 00 01 li r10,1 return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; ffc090b4: 90 1a 00 14 stw r0,20(r26) <== ALWAYS TAKEN _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; ffc090b8: 38 1a 00 18 addi r0,r26,24 _Thread_Executing->Wait.id = *cond; _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); ffc090bc: 3c a0 ff c1 lis r5,-63 if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; ffc090c0: 93 69 00 34 stw r27,52(r9) _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); ffc090c4: 7c 03 03 78 mr r3,r0 ffc090c8: 7f 84 e3 78 mr r4,r28 the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; ffc090cc: 81 7e 00 00 lwz r11,0(r30) _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); ffc090d0: 38 a5 d7 f4 addi r5,r5,-10252 if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; ffc090d4: 90 09 00 44 stw r0,68(r9) _Thread_Executing->Wait.id = *cond; ffc090d8: 91 69 00 20 stw r11,32(r9) ffc090dc: 91 5a 00 48 stw r10,72(r26) _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); ffc090e0: 48 00 42 99 bl ffc0d378 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc090e4: 48 00 3c a1 bl ffc0cd84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; ffc090e8: 81 3d 28 08 lwz r9,10248(r29) ffc090ec: 83 c9 00 34 lwz r30,52(r9) if ( status && status != ETIMEDOUT ) ffc090f0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc090f4: 41 be 00 18 beq+ cr7,ffc0910c <_POSIX_Condition_variables_Wait_support+0x110> ffc090f8: 2f 9e 00 74 cmpwi cr7,r30,116 ffc090fc: 40 be 00 24 bne+ cr7,ffc09120 <_POSIX_Condition_variables_Wait_support+0x124> <== NEVER TAKEN ffc09100: 48 00 00 0c b ffc0910c <_POSIX_Condition_variables_Wait_support+0x110> <== ALWAYS TAKEN return status; } else { _Thread_Enable_dispatch(); ffc09104: 48 00 3c 81 bl ffc0cd84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09108: 3b c0 00 74 li r30,116 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); ffc0910c: 7f e3 fb 78 mr r3,r31 ffc09110: 48 00 03 69 bl ffc09478 <== ALWAYS TAKEN if ( mutex_status ) ffc09114: 2f 83 00 00 cmpwi cr7,r3,0 ffc09118: 41 be 00 08 beq+ cr7,ffc09120 <_POSIX_Condition_variables_Wait_support+0x124> ffc0911c: 3b c0 00 16 li r30,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09120: 80 01 00 34 lwz r0,52(r1) ffc09124: 7f c3 f3 78 mr r3,r30 ffc09128: 83 41 00 18 lwz r26,24(r1) ffc0912c: 7c 08 03 a6 mtlr r0 ffc09130: 83 61 00 1c lwz r27,28(r1) ffc09134: 83 81 00 20 lwz r28,32(r1) ffc09138: 83 a1 00 24 lwz r29,36(r1) ffc0913c: 83 c1 00 28 lwz r30,40(r1) ffc09140: 83 e1 00 2c lwz r31,44(r1) ffc09144: 38 21 00 30 addi r1,r1,48 ffc09148: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d530 <_POSIX_Key_Manager_initialization>: * Output parameters: NONE */ void _POSIX_Key_Manager_initialization(void) { _Objects_Initialize_information( ffc0d530: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _POSIX_Key_Manager_initialization(void) { ffc0d534: 94 21 ff f8 stwu r1,-8(r1) ffc0d538: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0d53c: 3c 60 00 00 lis r3,0 ffc0d540: 80 c9 28 4c lwz r6,10316(r9) ffc0d544: 38 63 30 50 addi r3,r3,12368 ffc0d548: 38 80 00 03 li r4,3 * * Output parameters: NONE */ void _POSIX_Key_Manager_initialization(void) { ffc0d54c: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0d550: 38 a0 00 02 li r5,2 ffc0d554: 38 e0 00 28 li r7,40 ffc0d558: 39 00 00 01 li r8,1 <== ALWAYS TAKEN ffc0d55c: 39 20 00 ff li r9,255 ffc0d560: 4b ff c3 6d bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0d564: 80 01 00 0c lwz r0,12(r1) ffc0d568: 38 21 00 08 addi r1,r1,8 ffc0d56c: 7c 08 03 a6 mtlr r0 ffc0d570: 4e 80 00 20 blr <== ALWAYS TAKEN ffc103a4 <_POSIX_Keys_Run_destructors>: */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc103a4: 94 21 ff d8 stwu r1,-40(r1) ffc103a8: 7c 08 02 a6 mflr r0 ffc103ac: 90 01 00 2c stw r0,44(r1) ffc103b0: 93 81 00 18 stw r28,24(r1) uint32_t iterations; bool are_all_null; POSIX_Keys_Control *the_key; void *value; thread_index = _Objects_Get_index( thread->Object.id ); ffc103b4: 83 83 00 08 lwz r28,8(r3) */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc103b8: 93 21 00 0c stw r25,12(r1) if ( !the_key ) continue; if ( !the_key->destructor ) continue; value = the_key->Values[ thread_api ][ thread_index ]; ffc103bc: 57 99 56 fa rlwinm r25,r28,10,27,29 */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc103c0: 93 61 00 14 stw r27,20(r1) for ( ; ; ) { are_all_null = true; for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { ffc103c4: 3f 60 00 00 lis r27,0 ffc103c8: 3b 7b 30 50 addi r27,r27,12368 */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc103cc: 93 41 00 10 stw r26,16(r1) if ( !the_key ) continue; if ( !the_key->destructor ) continue; value = the_key->Values[ thread_api ][ thread_index ]; ffc103d0: 3b 39 00 10 addi r25,r25,16 ffc103d4: 57 9c 13 ba rlwinm r28,r28,2,14,29 */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc103d8: 93 a1 00 1c stw r29,28(r1) ffc103dc: 93 e1 00 24 stw r31,36(r1) ffc103e0: 93 c1 00 20 stw r30,32(r1) if ( !the_key ) continue; if ( !the_key->destructor ) continue; value = the_key->Values[ thread_api ][ thread_index ]; ffc103e4: 3b c0 00 00 li r30,0 ffc103e8: 3b e0 00 01 li r31,1 ffc103ec: 3b a0 00 01 li r29,1 for ( ; ; ) { are_all_null = true; for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { ffc103f0: 48 00 00 54 b ffc10444 <_POSIX_Keys_Run_destructors+0xa0> <== ALWAYS TAKEN the_key = (POSIX_Keys_Control *) ffc103f4: 81 7b 00 1c lwz r11,28(r27) ffc103f8: 7d 2b 48 2e lwzx r9,r11,r9 _POSIX_Keys_Information.local_table[ index ]; if ( !the_key ) ffc103fc: 2f 89 00 00 cmpwi cr7,r9,0 continue; if ( !the_key->destructor ) continue; value = the_key->Values[ thread_api ][ thread_index ]; ffc10400: 7f 49 ca 14 add r26,r9,r25 for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { the_key = (POSIX_Keys_Control *) _POSIX_Keys_Information.local_table[ index ]; if ( !the_key ) ffc10404: 41 9e 00 40 beq- cr7,ffc10444 <_POSIX_Keys_Run_destructors+0xa0> continue; if ( !the_key->destructor ) ffc10408: 80 09 00 10 lwz r0,16(r9) ffc1040c: 2f 80 00 00 cmpwi cr7,r0,0 ffc10410: 41 9e 00 34 beq- cr7,ffc10444 <_POSIX_Keys_Run_destructors+0xa0> continue; value = the_key->Values[ thread_api ][ thread_index ]; ffc10414: 81 3a 00 04 lwz r9,4(r26) ffc10418: 7d 29 e0 2e lwzx r9,r9,r28 if ( value ) { ffc1041c: 2f 89 00 00 cmpwi cr7,r9,0 (*the_key->destructor)( value ); ffc10420: 7d 23 4b 78 mr r3,r9 continue; if ( !the_key->destructor ) continue; value = the_key->Values[ thread_api ][ thread_index ]; if ( value ) { ffc10424: 41 9e 00 20 beq- cr7,ffc10444 <_POSIX_Keys_Run_destructors+0xa0> (*the_key->destructor)( value ); ffc10428: 7c 09 03 a6 mtctr r0 ffc1042c: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( the_key->Values[ thread_api ][ thread_index ] ) ffc10430: 81 3a 00 04 lwz r9,4(r26) ffc10434: 7c 09 e0 2e lwzx r0,r9,r28 ffc10438: 30 00 ff ff addic r0,r0,-1 ffc1043c: 7c 00 01 10 subfe r0,r0,r0 ffc10440: 7f bd 00 38 and r29,r29,r0 for ( ; ; ) { are_all_null = true; for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { ffc10444: a0 1b 00 10 lhz r0,16(r27) the_key = (POSIX_Keys_Control *) ffc10448: 57 e9 10 3a rlwinm r9,r31,2,0,29 for ( ; ; ) { are_all_null = true; for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { ffc1044c: 7f 9f 00 40 cmplw cr7,r31,r0 ffc10450: 3b ff 00 01 addi r31,r31,1 <== ALWAYS TAKEN ffc10454: 40 9d ff a0 ble+ cr7,ffc103f4 <_POSIX_Keys_Run_destructors+0x50> if ( the_key->Values[ thread_api ][ thread_index ] ) are_all_null = false; } } if ( are_all_null == true ) ffc10458: 2f 9d 00 00 cmpwi cr7,r29,0 ffc1045c: 40 9e 00 10 bne- cr7,ffc1046c <_POSIX_Keys_Run_destructors+0xc8> * loop. It seems rude to unnecessarily lock up a system. * * Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99. */ if ( iterations >= PTHREAD_DESTRUCTOR_ITERATIONS ) ffc10460: 2f 9e 00 03 cmpwi cr7,r30,3 ffc10464: 3b de 00 01 addi r30,r30,1 ffc10468: 40 9e ff 80 bne+ cr7,ffc103e8 <_POSIX_Keys_Run_destructors+0x44> return; } } ffc1046c: 80 01 00 2c lwz r0,44(r1) ffc10470: 83 21 00 0c lwz r25,12(r1) ffc10474: 7c 08 03 a6 mtlr r0 ffc10478: 83 41 00 10 lwz r26,16(r1) ffc1047c: 83 61 00 14 lwz r27,20(r1) ffc10480: 83 81 00 18 lwz r28,24(r1) ffc10484: 83 a1 00 1c lwz r29,28(r1) ffc10488: 83 c1 00 20 lwz r30,32(r1) ffc1048c: 83 e1 00 24 lwz r31,36(r1) ffc10490: 38 21 00 28 addi r1,r1,40 <== ALWAYS TAKEN ffc10494: 4e 80 00 20 blr <== ALWAYS TAKEN ffc14f14 <_POSIX_Message_queue_Create_support>: const char *name_arg, int pshared, struct mq_attr *attr_ptr, POSIX_Message_queue_Control **message_queue ) { ffc14f14: 94 21 ff c8 stwu r1,-56(r1) ffc14f18: 7c 08 02 a6 mflr r0 ffc14f1c: 93 a1 00 2c stw r29,44(r1) ffc14f20: 7c 9d 23 78 mr r29,r4 CORE_message_queue_Attributes *the_mq_attr; struct mq_attr attr; char *name; size_t n; n = strnlen( name_arg, NAME_MAX ); ffc14f24: 38 80 00 ff li r4,255 const char *name_arg, int pshared, struct mq_attr *attr_ptr, POSIX_Message_queue_Control **message_queue ) { ffc14f28: 90 01 00 3c stw r0,60(r1) ffc14f2c: 93 01 00 18 stw r24,24(r1) ffc14f30: 7c 78 1b 78 mr r24,r3 ffc14f34: 93 21 00 1c stw r25,28(r1) ffc14f38: 93 81 00 28 stw r28,40(r1) ffc14f3c: 7c dc 33 78 mr r28,r6 <== ALWAYS TAKEN ffc14f40: 93 e1 00 34 stw r31,52(r1) ffc14f44: 7c bf 2b 78 mr r31,r5 ffc14f48: 93 41 00 20 stw r26,32(r1) ffc14f4c: 93 61 00 24 stw r27,36(r1) ffc14f50: 93 c1 00 30 stw r30,48(r1) CORE_message_queue_Attributes *the_mq_attr; struct mq_attr attr; char *name; size_t n; n = strnlen( name_arg, NAME_MAX ); ffc14f54: 48 00 68 65 bl ffc1b7b8 <== ALWAYS TAKEN ffc14f58: 3d 20 00 00 lis r9,0 ffc14f5c: 81 69 29 f8 lwz r11,10744(r9) ffc14f60: 7c 79 1b 78 mr r25,r3 ffc14f64: 38 0b 00 01 addi r0,r11,1 ffc14f68: 90 09 29 f8 stw r0,10744(r9) * There is no real basis for the default values. They will work * but were not compared against any existing implementation for * compatibility. See README.mqueue for an example program we * think will print out the defaults. Report anything you find with it. */ if ( attr_ptr == NULL ) { ffc14f6c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc14f70: 3b 40 00 0a li r26,10 ffc14f74: 3b 60 00 10 li r27,16 ffc14f78: 41 9e 00 4c beq- cr7,ffc14fc4 <_POSIX_Message_queue_Create_support+0xb0> attr.mq_maxmsg = 10; attr.mq_msgsize = 16; } else { if ( attr_ptr->mq_maxmsg <= 0 ){ ffc14f7c: 81 3f 00 04 lwz r9,4(r31) ffc14f80: 2f 89 00 00 cmpwi cr7,r9,0 ffc14f84: 40 9d 00 10 ble- cr7,ffc14f94 <_POSIX_Message_queue_Create_support+0x80> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( attr_ptr->mq_msgsize <= 0 ){ ffc14f88: 80 1f 00 08 lwz r0,8(r31) ffc14f8c: 2f 80 00 00 cmpwi cr7,r0,0 ffc14f90: 41 bd 00 14 bgt+ cr7,ffc14fa4 <_POSIX_Message_queue_Create_support+0x90> _Thread_Enable_dispatch(); ffc14f94: 4b ff ca e9 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc14f98: 48 00 46 59 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc14f9c: 38 00 00 16 li r0,22 ffc14fa0: 48 00 00 e4 b ffc15084 <_POSIX_Message_queue_Create_support+0x170> <== ALWAYS TAKEN } attr = *attr_ptr; ffc14fa4: 81 5f 00 0c lwz r10,12(r31) ffc14fa8: 7d 3a 4b 78 mr r26,r9 ffc14fac: 81 7f 00 00 lwz r11,0(r31) ffc14fb0: 7c 1b 03 78 mr r27,r0 ffc14fb4: 91 41 00 14 stw r10,20(r1) ffc14fb8: 91 61 00 08 stw r11,8(r1) ffc14fbc: 91 21 00 0c stw r9,12(r1) ffc14fc0: 90 01 00 10 stw r0,16(r1) */ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Allocate( void ) { return (POSIX_Message_queue_Control *) ffc14fc4: 3f c0 00 00 lis r30,0 ffc14fc8: 3b de 34 b8 addi r30,r30,13496 ffc14fcc: 7f c3 f3 78 mr r3,r30 ffc14fd0: 4b ff b9 85 bl ffc10954 <_Objects_Allocate> <== ALWAYS TAKEN } the_mq = _POSIX_Message_queue_Allocate(); if ( !the_mq ) { ffc14fd4: 7c 7f 1b 79 mr. r31,r3 ffc14fd8: 40 a2 00 14 bne+ ffc14fec <_POSIX_Message_queue_Create_support+0xd8> _Thread_Enable_dispatch(); ffc14fdc: 4b ff ca a1 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENFILE ); ffc14fe0: 48 00 46 11 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc14fe4: 38 00 00 17 li r0,23 ffc14fe8: 48 00 00 9c b ffc15084 <_POSIX_Message_queue_Create_support+0x170> <== ALWAYS TAKEN } the_mq->process_shared = pshared; the_mq->named = true; the_mq->open_count = 1; ffc14fec: 38 00 00 01 li r0,1 if ( !the_mq ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENFILE ); } the_mq->process_shared = pshared; ffc14ff0: 93 bf 00 10 stw r29,16(r31) the_mq->named = true; ffc14ff4: 39 20 00 01 li r9,1 /* * Make a copy of the user's string for name just in case it was * dynamically constructed. */ name = _Workspace_Allocate(n+1); ffc14ff8: 3b 39 00 01 addi r25,r25,1 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENFILE ); } the_mq->process_shared = pshared; the_mq->named = true; ffc14ffc: 99 3f 00 14 stb r9,20(r31) <== ALWAYS TAKEN /* * Make a copy of the user's string for name just in case it was * dynamically constructed. */ name = _Workspace_Allocate(n+1); ffc15000: 7f 23 cb 78 mr r3,r25 } the_mq->process_shared = pshared; the_mq->named = true; the_mq->open_count = 1; the_mq->linked = true; ffc15004: 98 1f 00 15 stb r0,21(r31) rtems_set_errno_and_return_minus_one( ENFILE ); } the_mq->process_shared = pshared; the_mq->named = true; the_mq->open_count = 1; ffc15008: 90 1f 00 18 stw r0,24(r31) /* * Make a copy of the user's string for name just in case it was * dynamically constructed. */ name = _Workspace_Allocate(n+1); ffc1500c: 4b ff e4 49 bl ffc13454 <_Workspace_Allocate> <== ALWAYS TAKEN if (!name) { ffc15010: 7c 7d 1b 79 mr. r29,r3 ffc15014: 40 a2 00 20 bne+ ffc15034 <_POSIX_Message_queue_Create_support+0x120> RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free ( POSIX_Message_queue_Control *the_mq ) { _Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object ); ffc15018: 7f c3 f3 78 mr r3,r30 ffc1501c: 7f e4 fb 78 mr r4,r31 ffc15020: 4b ff bd 21 bl ffc10d40 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Message_queue_Free( the_mq ); _Thread_Enable_dispatch(); ffc15024: 4b ff ca 59 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc15028: 48 00 45 c9 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc1502c: 38 00 00 0c li r0,12 ffc15030: 48 00 00 54 b ffc15084 <_POSIX_Message_queue_Create_support+0x170> <== ALWAYS TAKEN } strncpy( name, name_arg, n+1 ); ffc15034: 7f 04 c3 78 mr r4,r24 ffc15038: 7f 25 cb 78 mr r5,r25 ffc1503c: 48 00 66 9d bl ffc1b6d8 <== ALWAYS TAKEN * * Joel: Cite POSIX or OpenGroup on above statement so we can determine * if it is a real requirement. */ the_mq_attr = &the_mq->Message_queue.Attributes; the_mq_attr->discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; ffc15040: 38 00 00 00 li r0,0 ffc15044: 90 1f 00 5c stw r0,92(r31) if ( !_CORE_message_queue_Initialize( ffc15048: 7f 45 d3 78 mr r5,r26 ffc1504c: 7f 66 db 78 mr r6,r27 ffc15050: 38 7f 00 1c addi r3,r31,28 ffc15054: 38 9f 00 5c addi r4,r31,92 ffc15058: 48 00 11 c5 bl ffc1621c <_CORE_message_queue_Initialize> <== ALWAYS TAKEN ffc1505c: 2f 83 00 00 cmpwi cr7,r3,0 ffc15060: 40 be 00 30 bne+ cr7,ffc15090 <_POSIX_Message_queue_Create_support+0x17c> ffc15064: 7f e4 fb 78 mr r4,r31 ffc15068: 7f c3 f3 78 mr r3,r30 ffc1506c: 4b ff bc d5 bl ffc10d40 <_Objects_Free> <== ALWAYS TAKEN attr.mq_maxmsg, attr.mq_msgsize ) ) { _POSIX_Message_queue_Free( the_mq ); _Workspace_Free(name); ffc15070: 7f a3 eb 78 mr r3,r29 ffc15074: 4b ff e4 15 bl ffc13488 <_Workspace_Free> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc15078: 4b ff ca 05 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc1507c: 48 00 45 75 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc15080: 38 00 00 1c li r0,28 ffc15084: 90 03 00 00 stw r0,0(r3) ffc15088: 38 60 ff ff li r3,-1 ffc1508c: 48 00 00 24 b ffc150b0 <_POSIX_Message_queue_Create_support+0x19c> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc15090: a0 1f 00 0a lhz r0,10(r31) ffc15094: 81 3e 00 1c lwz r9,28(r30) ffc15098: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc1509c: 7f e9 01 2e stwx r31,r9,r0 the_object ); #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* ASSERT: information->is_string */ the_object->name.name_p = name; ffc150a0: 93 bf 00 0c stw r29,12(r31) &_POSIX_Message_queue_Information, &the_mq->Object, name ); *message_queue = the_mq; ffc150a4: 93 fc 00 00 stw r31,0(r28) _Thread_Enable_dispatch(); ffc150a8: 4b ff c9 d5 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc150ac: 38 60 00 00 li r3,0 return 0; } ffc150b0: 80 01 00 3c lwz r0,60(r1) ffc150b4: 83 01 00 18 lwz r24,24(r1) ffc150b8: 7c 08 03 a6 mtlr r0 ffc150bc: 83 21 00 1c lwz r25,28(r1) ffc150c0: 83 41 00 20 lwz r26,32(r1) ffc150c4: 83 61 00 24 lwz r27,36(r1) ffc150c8: 83 81 00 28 lwz r28,40(r1) ffc150cc: 83 a1 00 2c lwz r29,44(r1) ffc150d0: 83 c1 00 30 lwz r30,48(r1) ffc150d4: 83 e1 00 34 lwz r31,52(r1) ffc150d8: 38 21 00 38 addi r1,r1,56 ffc150dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d00c <_POSIX_Message_queue_Delete>: */ void _POSIX_Message_queue_Delete( POSIX_Message_queue_Control *the_mq ) { ffc0d00c: 94 21 ff f0 stwu r1,-16(r1) ffc0d010: 7c 08 02 a6 mflr r0 ffc0d014: 90 01 00 14 stw r0,20(r1) if ( !the_mq->linked && !the_mq->open_count ) { ffc0d018: 88 03 00 15 lbz r0,21(r3) */ void _POSIX_Message_queue_Delete( POSIX_Message_queue_Control *the_mq ) { ffc0d01c: 93 e1 00 0c stw r31,12(r1) ffc0d020: 7c 7f 1b 78 mr r31,r3 if ( !the_mq->linked && !the_mq->open_count ) { ffc0d024: 2f 80 00 00 cmpwi cr7,r0,0 */ void _POSIX_Message_queue_Delete( POSIX_Message_queue_Control *the_mq ) { ffc0d028: 93 c1 00 08 stw r30,8(r1) if ( !the_mq->linked && !the_mq->open_count ) { ffc0d02c: 40 9e 00 40 bne- cr7,ffc0d06c <_POSIX_Message_queue_Delete+0x60> ffc0d030: 80 03 00 18 lwz r0,24(r3) ffc0d034: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d038: 40 be 00 34 bne+ cr7,ffc0d06c <_POSIX_Message_queue_Delete+0x60> ); _Workspace_Free( (void *)the_object->name.name_p ); } #endif _Objects_Close( &_POSIX_Message_queue_Information, the_object ); ffc0d03c: 3f c0 00 00 lis r30,0 ffc0d040: 3b de 34 b8 addi r30,r30,13496 ffc0d044: 7f c3 f3 78 mr r3,r30 ffc0d048: 7f e4 fb 78 mr r4,r31 ffc0d04c: 48 00 39 b5 bl ffc10a00 <_Objects_Close> <== ALWAYS TAKEN _CORE_message_queue_Close( ffc0d050: 38 7f 00 1c addi r3,r31,28 ffc0d054: 38 80 00 00 li r4,0 ffc0d058: 38 a0 00 05 li r5,5 ffc0d05c: 48 00 2a fd bl ffc0fb58 <_CORE_message_queue_Close> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free ( POSIX_Message_queue_Control *the_mq ) { _Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object ); ffc0d060: 7f c3 f3 78 mr r3,r30 ffc0d064: 7f e4 fb 78 mr r4,r31 ffc0d068: 48 00 3c d9 bl ffc10d40 <_Objects_Free> <== ALWAYS TAKEN ); _POSIX_Message_queue_Free( the_mq ); } } ffc0d06c: 80 01 00 14 lwz r0,20(r1) ffc0d070: 83 c1 00 08 lwz r30,8(r1) ffc0d074: 7c 08 03 a6 mtlr r0 ffc0d078: 83 e1 00 0c lwz r31,12(r1) ffc0d07c: 38 21 00 10 addi r1,r1,16 ffc0d080: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d574 <_POSIX_Message_queue_Manager_initialization>: * * Output parameters: NONE */ void _POSIX_Message_queue_Manager_initialization(void) { ffc0d574: 94 21 ff f0 stwu r1,-16(r1) ffc0d578: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0d57c: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _POSIX_Message_queue_Manager_initialization(void) { ffc0d580: 90 01 00 14 stw r0,20(r1) _Objects_Initialize_information( ffc0d584: 38 63 2f 78 addi r3,r3,12152 ffc0d588: 38 80 00 03 li r4,3 * * Output parameters: NONE */ void _POSIX_Message_queue_Manager_initialization(void) { ffc0d58c: 93 e1 00 0c stw r31,12(r1) _Objects_Initialize_information( ffc0d590: 3f e0 00 00 lis r31,0 ffc0d594: 3b ff 28 40 addi r31,r31,10304 ffc0d598: 80 df 00 18 lwz r6,24(r31) ffc0d59c: 38 a0 00 05 li r5,5 ffc0d5a0: 38 e0 00 a4 li r7,164 ffc0d5a4: 39 00 00 01 li r8,1 ffc0d5a8: 39 20 00 ff li r9,255 <== ALWAYS TAKEN ffc0d5ac: 4b ff c3 21 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); _Objects_Initialize_information( ffc0d5b0: 80 df 00 1c lwz r6,28(r31) ffc0d5b4: 3c 60 00 00 lis r3,0 ffc0d5b8: 38 63 31 04 addi r3,r3,12548 ffc0d5bc: 38 80 00 03 li r4,3 ffc0d5c0: 38 a0 00 04 li r5,4 <== ALWAYS TAKEN ffc0d5c4: 38 e0 00 18 li r7,24 ffc0d5c8: 39 00 00 01 li r8,1 ffc0d5cc: 39 20 00 ff li r9,255 <== ALWAYS TAKEN ffc0d5d0: 4b ff c2 fd bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0d5d4: 80 01 00 14 lwz r0,20(r1) ffc0d5d8: 83 e1 00 0c lwz r31,12(r1) ffc0d5dc: 38 21 00 10 addi r1,r1,16 ffc0d5e0: 7c 08 03 a6 mtlr r0 ffc0d5e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc150e0 <_POSIX_Message_queue_Name_to_id>: */ int _POSIX_Message_queue_Name_to_id( const char *name, Objects_Id *id ) { ffc150e0: 94 21 ff e0 stwu r1,-32(r1) ffc150e4: 7c 08 02 a6 mflr r0 ffc150e8: 93 c1 00 18 stw r30,24(r1) Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) ffc150ec: 7c 7e 1b 79 mr. r30,r3 */ int _POSIX_Message_queue_Name_to_id( const char *name, Objects_Id *id ) { ffc150f0: 93 e1 00 1c stw r31,28(r1) ffc150f4: 7c 9f 23 78 mr r31,r4 ffc150f8: 90 01 00 24 stw r0,36(r1) Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) ffc150fc: 41 82 00 54 beq- ffc15150 <_POSIX_Message_queue_Name_to_id+0x70> return EINVAL; if ( !name[0] ) ffc15100: 88 1e 00 00 lbz r0,0(r30) ffc15104: 2f 80 00 00 cmpwi cr7,r0,0 ffc15108: 41 9e 00 48 beq- cr7,ffc15150 <_POSIX_Message_queue_Name_to_id+0x70> return EINVAL; if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) ffc1510c: 38 80 00 ff li r4,255 ffc15110: 48 00 66 a9 bl ffc1b7b8 <== ALWAYS TAKEN ffc15114: 2b 83 00 fe cmplwi cr7,r3,254 ffc15118: 38 60 00 5b li r3,91 ffc1511c: 41 bd 00 38 bgt+ cr7,ffc15154 <_POSIX_Message_queue_Name_to_id+0x74> return ENAMETOOLONG; status = _Objects_Name_to_id_string( ffc15120: 3c 60 00 00 lis r3,0 ffc15124: 38 63 34 b8 addi r3,r3,13496 ffc15128: 7f c4 f3 78 mr r4,r30 ffc1512c: 38 a1 00 08 addi r5,r1,8 ffc15130: 48 00 18 2d bl ffc1695c <_Objects_Name_to_id_string> <== ALWAYS TAKEN name, &the_id ); *id = the_id; if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc15134: 31 23 ff ff addic r9,r3,-1 ffc15138: 7c 09 19 10 subfe r0,r9,r3 ffc1513c: 7c 03 03 78 mr r3,r0 status = _Objects_Name_to_id_string( &_POSIX_Message_queue_Information, name, &the_id ); *id = the_id; ffc15140: 80 01 00 08 lwz r0,8(r1) if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc15144: 54 63 08 3c rlwinm r3,r3,1,0,30 status = _Objects_Name_to_id_string( &_POSIX_Message_queue_Information, name, &the_id ); *id = the_id; ffc15148: 90 1f 00 00 stw r0,0(r31) ffc1514c: 48 00 00 08 b ffc15154 <_POSIX_Message_queue_Name_to_id+0x74> <== ALWAYS TAKEN if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc15150: 38 60 00 16 li r3,22 return 0; return ENOENT; } ffc15154: 80 01 00 24 lwz r0,36(r1) ffc15158: 83 c1 00 18 lwz r30,24(r1) ffc1515c: 7c 08 03 a6 mtlr r0 ffc15160: 83 e1 00 1c lwz r31,28(r1) ffc15164: 38 21 00 20 addi r1,r1,32 ffc15168: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d1f4 <_POSIX_Message_queue_Notify_handler>: */ void _POSIX_Message_queue_Notify_handler( void *user_data ) { ffc0d1f4: 94 21 ff f0 stwu r1,-16(r1) ffc0d1f8: 7c 08 02 a6 mflr r0 ffc0d1fc: 93 e1 00 0c stw r31,12(r1) ffc0d200: 7c 7f 1b 78 mr r31,r3 ffc0d204: 90 01 00 14 stw r0,20(r1) POSIX_Message_queue_Control *the_mq; the_mq = user_data; kill( getpid(), the_mq->notification.sigev_signo ); ffc0d208: 48 00 77 89 bl ffc14990 <== ALWAYS TAKEN ffc0d20c: 80 9f 00 94 lwz r4,148(r31) ffc0d210: 48 00 7c e1 bl ffc14ef0 <== ALWAYS TAKEN ffc0d214: 38 00 00 00 li r0,0 the_message_queue->notify_argument = the_argument; ffc0d218: 90 1f 00 80 stw r0,128(r31) CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; ffc0d21c: 90 1f 00 7c stw r0,124(r31) _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); } ffc0d220: 80 01 00 14 lwz r0,20(r1) ffc0d224: 83 e1 00 0c lwz r31,12(r1) ffc0d228: 38 21 00 10 addi r1,r1,16 ffc0d22c: 7c 08 03 a6 mtlr r0 ffc0d230: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d438 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) { ffc0d438: 94 21 ff c8 stwu r1,-56(r1) ffc0d43c: 7c 08 02 a6 mflr r0 ffc0d440: 93 e1 00 34 stw r31,52(r1) ffc0d444: 7c 7f 1b 78 mr r31,r3 RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd ( mqd_t id, Objects_Locations *location ) { return (POSIX_Message_queue_Control_fd *) _Objects_Get( ffc0d448: 3c 60 00 00 lis r3,0 ffc0d44c: 93 81 00 28 stw r28,40(r1) ffc0d450: 38 63 36 44 addi r3,r3,13892 ffc0d454: 7c bc 2b 78 mr r28,r5 ffc0d458: 93 a1 00 2c stw r29,44(r1) ffc0d45c: 38 a1 00 08 addi r5,r1,8 ffc0d460: 7c 9d 23 78 mr r29,r4 ffc0d464: 7f e4 fb 78 mr r4,r31 ffc0d468: 90 01 00 3c stw r0,60(r1) ffc0d46c: 93 61 00 24 stw r27,36(r1) ffc0d470: 7c fb 3b 78 mr r27,r7 ffc0d474: 93 c1 00 30 stw r30,48(r1) ffc0d478: 7c de 33 78 mr r30,r6 ffc0d47c: 91 01 00 18 stw r8,24(r1) ffc0d480: 48 00 3a 81 bl ffc10f00 <_Objects_Get> <== ALWAYS TAKEN Objects_Locations location; size_t length_out; bool do_wait; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { ffc0d484: 80 01 00 08 lwz r0,8(r1) ffc0d488: 81 01 00 18 lwz r8,24(r1) ffc0d48c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d490: 40 9e 00 bc bne- cr7,ffc0d54c <_POSIX_Message_queue_Receive_support+0x114> case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { ffc0d494: 80 03 00 14 lwz r0,20(r3) ffc0d498: 54 09 07 be clrlwi r9,r0,30 ffc0d49c: 2f 89 00 01 cmpwi cr7,r9,1 ffc0d4a0: 40 be 00 0c bne+ cr7,ffc0d4ac <_POSIX_Message_queue_Receive_support+0x74> _Thread_Enable_dispatch(); ffc0d4a4: 48 00 45 d9 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d4a8: 48 00 00 a4 b ffc0d54c <_POSIX_Message_queue_Receive_support+0x114> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); } the_mq = the_mq_fd->Queue; ffc0d4ac: 80 63 00 10 lwz r3,16(r3) if ( msg_len < the_mq->Message_queue.maximum_message_size ) { ffc0d4b0: 81 23 00 68 lwz r9,104(r3) ffc0d4b4: 7f 9c 48 40 cmplw cr7,r28,r9 ffc0d4b8: 40 bc 00 14 bge+ cr7,ffc0d4cc <_POSIX_Message_queue_Receive_support+0x94> _Thread_Enable_dispatch(); ffc0d4bc: 48 00 45 c1 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EMSGSIZE ); ffc0d4c0: 48 00 c1 31 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d4c4: 38 00 00 7a li r0,122 ffc0d4c8: 48 00 00 8c b ffc0d554 <_POSIX_Message_queue_Receive_support+0x11c> <== ALWAYS TAKEN length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) ffc0d4cc: 2f 9b 00 00 cmpwi cr7,r27,0 ffc0d4d0: 38 e0 00 00 li r7,0 ffc0d4d4: 41 9e 00 0c beq- cr7,ffc0d4e0 <_POSIX_Message_queue_Receive_support+0xa8> <== NEVER TAKEN do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; ffc0d4d8: 68 07 40 00 xori r7,r0,16384 ffc0d4dc: 54 e7 97 fe rlwinm r7,r7,18,31,31 /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; ffc0d4e0: 38 00 ff ff li r0,-1 ffc0d4e4: 7c 26 0b 78 mr r6,r1 ffc0d4e8: 94 06 00 0c stwu r0,12(r6) do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( ffc0d4ec: 7f e4 fb 78 mr r4,r31 ffc0d4f0: 38 63 00 1c addi r3,r3,28 ffc0d4f4: 7f a5 eb 78 mr r5,r29 timeout ); _Thread_Enable_dispatch(); *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); ffc0d4f8: 3f e0 00 00 lis r31,0 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( ffc0d4fc: 48 00 27 01 bl ffc0fbfc <_CORE_message_queue_Seize> <== ALWAYS TAKEN &length_out, do_wait, timeout ); _Thread_Enable_dispatch(); ffc0d500: 48 00 45 7d bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); ffc0d504: 81 3f 2a 38 lwz r9,10808(r31) if ( !_Thread_Executing->Wait.return_code ) ffc0d508: 80 09 00 34 lwz r0,52(r9) do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = ffc0d50c: 81 29 00 24 lwz r9,36(r9) _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) ffc0d510: 2f 80 00 00 cmpwi cr7,r0,0 do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = ffc0d514: 7d 2b fe 70 srawi r11,r9,31 ffc0d518: 7d 60 4a 78 xor r0,r11,r9 ffc0d51c: 7c 0b 00 50 subf r0,r11,r0 ffc0d520: 90 1e 00 00 stw r0,0(r30) _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) ffc0d524: 40 9e 00 0c bne- cr7,ffc0d530 <_POSIX_Message_queue_Receive_support+0xf8> return length_out; ffc0d528: 80 61 00 0c lwz r3,12(r1) ffc0d52c: 48 00 00 30 b ffc0d55c <_POSIX_Message_queue_Receive_support+0x124> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ffc0d530: 48 00 c0 c1 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d534: 81 3f 2a 38 lwz r9,10808(r31) ffc0d538: 7c 7e 1b 78 mr r30,r3 ffc0d53c: 80 69 00 34 lwz r3,52(r9) ffc0d540: 48 00 03 29 bl ffc0d868 <_POSIX_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN ffc0d544: 90 7e 00 00 stw r3,0(r30) ffc0d548: 48 00 00 10 b ffc0d558 <_POSIX_Message_queue_Receive_support+0x120> <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0d54c: 48 00 c0 a5 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d550: 38 00 00 09 li r0,9 ffc0d554: 90 03 00 00 stw r0,0(r3) ffc0d558: 38 60 ff ff li r3,-1 } ffc0d55c: 80 01 00 3c lwz r0,60(r1) ffc0d560: 83 61 00 24 lwz r27,36(r1) ffc0d564: 7c 08 03 a6 mtlr r0 ffc0d568: 83 81 00 28 lwz r28,40(r1) ffc0d56c: 83 a1 00 2c lwz r29,44(r1) ffc0d570: 83 c1 00 30 lwz r30,48(r1) ffc0d574: 83 e1 00 34 lwz r31,52(r1) ffc0d578: 38 21 00 38 addi r1,r1,56 ffc0d57c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d5a8 <_POSIX_Message_queue_Send_support>: /* * Validate the priority. * XXX - Do not validate msg_prio is not less than 0. */ if ( msg_prio > MQ_PRIO_MAX ) ffc0d5a8: 2b 86 00 20 cmplwi cr7,r6,32 size_t msg_len, uint32_t msg_prio, bool wait, Watchdog_Interval timeout ) { ffc0d5ac: 94 21 ff d0 stwu r1,-48(r1) ffc0d5b0: 7c 08 02 a6 mflr r0 ffc0d5b4: 93 41 00 18 stw r26,24(r1) ffc0d5b8: 7c fa 3b 78 mr r26,r7 ffc0d5bc: 93 61 00 1c stw r27,28(r1) ffc0d5c0: 7c 9b 23 78 mr r27,r4 ffc0d5c4: 93 81 00 20 stw r28,32(r1) ffc0d5c8: 7c bc 2b 78 mr r28,r5 ffc0d5cc: 93 a1 00 24 stw r29,36(r1) ffc0d5d0: 7c 7d 1b 78 mr r29,r3 ffc0d5d4: 93 c1 00 28 stw r30,40(r1) ffc0d5d8: 7d 1e 43 78 mr r30,r8 ffc0d5dc: 93 e1 00 2c stw r31,44(r1) ffc0d5e0: 7c df 33 78 mr r31,r6 ffc0d5e4: 90 01 00 34 stw r0,52(r1) /* * Validate the priority. * XXX - Do not validate msg_prio is not less than 0. */ if ( msg_prio > MQ_PRIO_MAX ) ffc0d5e8: 40 bd 00 10 ble+ cr7,ffc0d5f8 <_POSIX_Message_queue_Send_support+0x50> rtems_set_errno_and_return_minus_one( EINVAL ); ffc0d5ec: 48 00 c0 05 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d5f0: 38 00 00 16 li r0,22 ffc0d5f4: 48 00 00 b8 b ffc0d6ac <_POSIX_Message_queue_Send_support+0x104> <== ALWAYS TAKEN ffc0d5f8: 3c 60 00 00 lis r3,0 ffc0d5fc: 38 63 36 44 addi r3,r3,13892 ffc0d600: 7f a4 eb 78 mr r4,r29 ffc0d604: 38 a1 00 08 addi r5,r1,8 ffc0d608: 48 00 38 f9 bl ffc10f00 <_Objects_Get> <== ALWAYS TAKEN the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { ffc0d60c: 80 01 00 08 lwz r0,8(r1) ffc0d610: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d614: 40 9e 00 90 bne- cr7,ffc0d6a4 <_POSIX_Message_queue_Send_support+0xfc> case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) { ffc0d618: 80 03 00 14 lwz r0,20(r3) ffc0d61c: 70 09 00 03 andi. r9,r0,3 ffc0d620: 40 a2 00 0c bne+ ffc0d62c <_POSIX_Message_queue_Send_support+0x84> _Thread_Enable_dispatch(); ffc0d624: 48 00 44 59 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d628: 48 00 00 7c b ffc0d6a4 <_POSIX_Message_queue_Send_support+0xfc> <== ALWAYS TAKEN the_mq = the_mq_fd->Queue; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) ffc0d62c: 2f 9a 00 00 cmpwi cr7,r26,0 if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EBADF ); } the_mq = the_mq_fd->Queue; ffc0d630: 81 63 00 10 lwz r11,16(r3) /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) ffc0d634: 39 20 00 00 li r9,0 ffc0d638: 41 9e 00 0c beq- cr7,ffc0d644 <_POSIX_Message_queue_Send_support+0x9c> do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; ffc0d63c: 68 09 40 00 xori r9,r0,16384 ffc0d640: 55 29 97 fe rlwinm r9,r9,18,31,31 do_wait = wait; /* * Now perform the actual message receive */ msg_status = _CORE_message_queue_Submit( ffc0d644: 7d 1f 00 d0 neg r8,r31 ffc0d648: 7f 64 db 78 mr r4,r27 ffc0d64c: 7f 85 e3 78 mr r5,r28 ffc0d650: 7f a6 eb 78 mr r6,r29 ffc0d654: 7f ca f3 78 mr r10,r30 ffc0d658: 38 6b 00 1c addi r3,r11,28 ffc0d65c: 38 e0 00 00 li r7,0 ffc0d660: 48 00 26 f5 bl ffc0fd54 <_CORE_message_queue_Submit> <== ALWAYS TAKEN ffc0d664: 7c 7f 1b 78 mr r31,r3 _POSIX_Message_queue_Priority_to_core( msg_prio ), do_wait, timeout /* no timeout */ ); _Thread_Enable_dispatch(); ffc0d668: 48 00 44 15 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN * after it wakes up. The returned status is correct for * non-blocking operations but if we blocked, then we need * to look at the status in our TCB. */ if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT ) ffc0d66c: 2f 9f 00 07 cmpwi cr7,r31,7 ffc0d670: 40 be 00 10 bne+ cr7,ffc0d680 <_POSIX_Message_queue_Send_support+0xd8> msg_status = _Thread_Executing->Wait.return_code; ffc0d674: 3d 20 00 00 lis r9,0 ffc0d678: 81 29 2a 38 lwz r9,10808(r9) ffc0d67c: 83 e9 00 34 lwz r31,52(r9) if ( !msg_status ) ffc0d680: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0d684: 38 60 00 00 li r3,0 ffc0d688: 41 be 00 2c beq+ cr7,ffc0d6b4 <_POSIX_Message_queue_Send_support+0x10c> return msg_status; rtems_set_errno_and_return_minus_one( ffc0d68c: 48 00 bf 65 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d690: 7c 7e 1b 78 mr r30,r3 ffc0d694: 7f e3 fb 78 mr r3,r31 ffc0d698: 48 00 01 d1 bl ffc0d868 <_POSIX_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN ffc0d69c: 90 7e 00 00 stw r3,0(r30) ffc0d6a0: 48 00 00 10 b ffc0d6b0 <_POSIX_Message_queue_Send_support+0x108> <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0d6a4: 48 00 bf 4d bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d6a8: 38 00 00 09 li r0,9 ffc0d6ac: 90 03 00 00 stw r0,0(r3) ffc0d6b0: 38 60 ff ff li r3,-1 } ffc0d6b4: 80 01 00 34 lwz r0,52(r1) ffc0d6b8: 83 41 00 18 lwz r26,24(r1) <== ALWAYS TAKEN ffc0d6bc: 7c 08 03 a6 mtlr r0 ffc0d6c0: 83 61 00 1c lwz r27,28(r1) ffc0d6c4: 83 81 00 20 lwz r28,32(r1) ffc0d6c8: 83 a1 00 24 lwz r29,36(r1) ffc0d6cc: 83 c1 00 28 lwz r30,40(r1) ffc0d6d0: 83 e1 00 2c lwz r31,44(r1) ffc0d6d4: 38 21 00 30 addi r1,r1,48 ffc0d6d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d868 <_POSIX_Message_queue_Translate_core_message_queue_return_code>: #if defined(RTEMS_DEBUG) if ( the_message_queue_status > CORE_MESSAGE_QUEUE_STATUS_LAST ) return EINVAL; #endif return _POSIX_Message_queue_Return_codes[the_message_queue_status]; } ffc0d868: 3d 20 ff c2 lis r9,-62 ffc0d86c: 39 29 7a 94 addi r9,r9,31380 int _POSIX_Message_queue_Translate_core_message_queue_return_code( uint32_t the_message_queue_status ) { ffc0d870: 54 63 10 3a rlwinm r3,r3,2,0,29 #if defined(RTEMS_DEBUG) if ( the_message_queue_status > CORE_MESSAGE_QUEUE_STATUS_LAST ) return EINVAL; #endif return _POSIX_Message_queue_Return_codes[the_message_queue_status]; } ffc0d874: 7c 69 18 2e lwzx r3,r9,r3 ffc0d878: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a4bc <_POSIX_Mutex_Get>: POSIX_Mutex_Control *_POSIX_Mutex_Get ( pthread_mutex_t *mutex, Objects_Locations *location ) { ffc0a4bc: 94 21 ff f0 stwu r1,-16(r1) ffc0a4c0: 7c 08 02 a6 mflr r0 ffc0a4c4: 93 c1 00 08 stw r30,8(r1) ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0a4c8: 7c 7e 1b 79 mr. r30,r3 POSIX_Mutex_Control *_POSIX_Mutex_Get ( pthread_mutex_t *mutex, Objects_Locations *location ) { ffc0a4cc: 93 e1 00 0c stw r31,12(r1) ffc0a4d0: 7c 9f 23 78 mr r31,r4 ffc0a4d4: 90 01 00 14 stw r0,20(r1) ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0a4d8: 40 a2 00 10 bne+ ffc0a4e8 <_POSIX_Mutex_Get+0x2c> ffc0a4dc: 38 00 00 01 li r0,1 ffc0a4e0: 90 04 00 00 stw r0,0(r4) ffc0a4e4: 48 00 00 44 b ffc0a528 <_POSIX_Mutex_Get+0x6c> <== ALWAYS TAKEN ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); ffc0a4e8: 80 1e 00 00 lwz r0,0(r30) ffc0a4ec: 2f 80 ff ff cmpwi cr7,r0,-1 ffc0a4f0: 40 be 00 24 bne+ cr7,ffc0a514 <_POSIX_Mutex_Get+0x58> ffc0a4f4: 38 80 00 00 li r4,0 ffc0a4f8: 48 00 00 ad bl ffc0a5a4 <== ALWAYS TAKEN ffc0a4fc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a500: 41 be 00 14 beq+ cr7,ffc0a514 <_POSIX_Mutex_Get+0x58> ffc0a504: 38 00 00 01 li r0,1 ffc0a508: 90 1f 00 00 stw r0,0(r31) ffc0a50c: 38 60 00 00 li r3,0 ffc0a510: 48 00 00 18 b ffc0a528 <_POSIX_Mutex_Get+0x6c> <== ALWAYS TAKEN return (POSIX_Mutex_Control *) ffc0a514: 3c 60 00 00 lis r3,0 ffc0a518: 80 9e 00 00 lwz r4,0(r30) ffc0a51c: 38 63 30 18 addi r3,r3,12312 ffc0a520: 7f e5 fb 78 mr r5,r31 ffc0a524: 48 00 33 fd bl ffc0d920 <_Objects_Get> <== ALWAYS TAKEN _Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location ); } ffc0a528: 80 01 00 14 lwz r0,20(r1) ffc0a52c: 83 c1 00 08 lwz r30,8(r1) ffc0a530: 7c 08 03 a6 mtlr r0 ffc0a534: 83 e1 00 0c lwz r31,12(r1) ffc0a538: 38 21 00 10 addi r1,r1,16 ffc0a53c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a428 <_POSIX_Mutex_Get_interrupt_disable>: POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable ( pthread_mutex_t *mutex, Objects_Locations *location, ISR_Level *level ) { ffc0a428: 94 21 ff e8 stwu r1,-24(r1) ffc0a42c: 7c 08 02 a6 mflr r0 ffc0a430: 93 c1 00 10 stw r30,16(r1) ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0a434: 7c 7e 1b 79 mr. r30,r3 POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable ( pthread_mutex_t *mutex, Objects_Locations *location, ISR_Level *level ) { ffc0a438: 93 a1 00 0c stw r29,12(r1) ffc0a43c: 7c bd 2b 78 mr r29,r5 ffc0a440: 93 e1 00 14 stw r31,20(r1) ffc0a444: 7c 9f 23 78 mr r31,r4 ffc0a448: 90 01 00 1c stw r0,28(r1) ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0a44c: 40 a2 00 10 bne+ ffc0a45c <_POSIX_Mutex_Get_interrupt_disable+0x34> ffc0a450: 38 00 00 01 li r0,1 ffc0a454: 90 04 00 00 stw r0,0(r4) ffc0a458: 48 00 00 48 b ffc0a4a0 <_POSIX_Mutex_Get_interrupt_disable+0x78> <== ALWAYS TAKEN ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); ffc0a45c: 80 1e 00 00 lwz r0,0(r30) ffc0a460: 2f 80 ff ff cmpwi cr7,r0,-1 ffc0a464: 40 be 00 24 bne+ cr7,ffc0a488 <_POSIX_Mutex_Get_interrupt_disable+0x60> ffc0a468: 38 80 00 00 li r4,0 ffc0a46c: 48 00 01 39 bl ffc0a5a4 <== ALWAYS TAKEN ffc0a470: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a474: 41 be 00 14 beq+ cr7,ffc0a488 <_POSIX_Mutex_Get_interrupt_disable+0x60> ffc0a478: 38 00 00 01 li r0,1 ffc0a47c: 90 1f 00 00 stw r0,0(r31) ffc0a480: 38 60 00 00 li r3,0 ffc0a484: 48 00 00 1c b ffc0a4a0 <_POSIX_Mutex_Get_interrupt_disable+0x78> <== ALWAYS TAKEN return (POSIX_Mutex_Control *) _Objects_Get_isr_disable( ffc0a488: 3c 60 00 00 lis r3,0 ffc0a48c: 80 9e 00 00 lwz r4,0(r30) ffc0a490: 38 63 30 18 addi r3,r3,12312 ffc0a494: 7f e5 fb 78 mr r5,r31 ffc0a498: 7f a6 eb 78 mr r6,r29 ffc0a49c: 48 00 34 15 bl ffc0d8b0 <_Objects_Get_isr_disable> <== ALWAYS TAKEN &_POSIX_Mutex_Information, (Objects_Id) *mutex, location, level ); } ffc0a4a0: 80 01 00 1c lwz r0,28(r1) ffc0a4a4: 83 a1 00 0c lwz r29,12(r1) ffc0a4a8: 7c 08 03 a6 mtlr r0 ffc0a4ac: 83 c1 00 10 lwz r30,16(r1) ffc0a4b0: 83 e1 00 14 lwz r31,20(r1) ffc0a4b4: 38 21 00 18 addi r1,r1,24 ffc0a4b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a748 <_POSIX_Mutex_Lock_support>: int _POSIX_Mutex_Lock_support( pthread_mutex_t *mutex, bool blocking, Watchdog_Interval timeout ) { ffc0a748: 94 21 ff e0 stwu r1,-32(r1) ffc0a74c: 7c 08 02 a6 mflr r0 ffc0a750: 93 c1 00 18 stw r30,24(r1) ffc0a754: 7c 9e 23 78 mr r30,r4 register POSIX_Mutex_Control *the_mutex; Objects_Locations location; ISR_Level level; the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level ); ffc0a758: 38 81 00 08 addi r4,r1,8 int _POSIX_Mutex_Lock_support( pthread_mutex_t *mutex, bool blocking, Watchdog_Interval timeout ) { ffc0a75c: 93 e1 00 1c stw r31,28(r1) ffc0a760: 7c bf 2b 78 mr r31,r5 register POSIX_Mutex_Control *the_mutex; Objects_Locations location; ISR_Level level; the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level ); ffc0a764: 38 a1 00 0c addi r5,r1,12 int _POSIX_Mutex_Lock_support( pthread_mutex_t *mutex, bool blocking, Watchdog_Interval timeout ) { ffc0a768: 90 01 00 24 stw r0,36(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; ISR_Level level; the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level ); ffc0a76c: 4b ff fc bd bl ffc0a428 <_POSIX_Mutex_Get_interrupt_disable> <== ALWAYS TAKEN ffc0a770: 7c 69 1b 78 mr r9,r3 switch ( location ) { ffc0a774: 80 01 00 08 lwz r0,8(r1) ffc0a778: 38 60 00 16 li r3,22 ffc0a77c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a780: 40 9e 00 2c bne- cr7,ffc0a7ac <_POSIX_Mutex_Lock_support+0x64> case OBJECTS_LOCAL: _CORE_mutex_Seize( ffc0a784: 80 89 00 08 lwz r4,8(r9) ffc0a788: 38 69 00 14 addi r3,r9,20 ffc0a78c: 80 e1 00 0c lwz r7,12(r1) ffc0a790: 7f c5 f3 78 mr r5,r30 ffc0a794: 7f e6 fb 78 mr r6,r31 ffc0a798: 48 00 22 85 bl ffc0ca1c <_CORE_mutex_Seize> <== ALWAYS TAKEN the_mutex->Object.id, blocking, timeout, level ); return _POSIX_Mutex_Translate_core_mutex_return_code( ffc0a79c: 3d 20 00 00 lis r9,0 ffc0a7a0: 81 29 28 50 lwz r9,10320(r9) ffc0a7a4: 80 69 00 34 lwz r3,52(r9) ffc0a7a8: 48 00 01 31 bl ffc0a8d8 <_POSIX_Mutex_Translate_core_mutex_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0a7ac: 80 01 00 24 lwz r0,36(r1) ffc0a7b0: 83 c1 00 18 lwz r30,24(r1) ffc0a7b4: 7c 08 03 a6 mtlr r0 ffc0a7b8: 83 e1 00 1c lwz r31,28(r1) ffc0a7bc: 38 21 00 20 addi r1,r1,32 ffc0a7c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d5e8 <_POSIX_Mutex_Manager_initialization>: * * Output parameters: NONE */ void _POSIX_Mutex_Manager_initialization(void) { ffc0d5e8: 94 21 ff f0 stwu r1,-16(r1) * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; ffc0d5ec: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _POSIX_Mutex_Manager_initialization(void) { ffc0d5f0: 7c 08 02 a6 mflr r0 /* * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; ffc0d5f4: 3d 40 00 00 lis r10,0 default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; ffc0d5f8: 89 89 26 a4 lbz r12,9892(r9) <== ALWAYS TAKEN #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0d5fc: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _POSIX_Mutex_Manager_initialization(void) { ffc0d600: 93 e1 00 0c stw r31,12(r1) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0d604: 3c 60 00 00 lis r3,0 /* * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; ffc0d608: 3b e0 00 01 li r31,1 #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0d60c: 80 c9 28 44 lwz r6,10308(r9) /* * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; ffc0d610: 39 6a 30 38 addi r11,r10,12344 * * Output parameters: NONE */ void _POSIX_Mutex_Manager_initialization(void) { ffc0d614: 90 01 00 14 stw r0,20(r1) * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; ffc0d618: 39 8c ff ff addi r12,r12,-1 /* * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc0d61c: 38 00 00 00 li r0,0 <== ALWAYS TAKEN /* * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; ffc0d620: 93 ea 30 38 stw r31,12344(r10) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0d624: 38 63 2f b8 addi r3,r3,12216 <== ALWAYS TAKEN default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; default_attr->protocol = PTHREAD_PRIO_NONE; default_attr->recursive = false; #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) default_attr->type = PTHREAD_MUTEX_DEFAULT; ffc0d628: 39 40 00 03 li r10,3 <== ALWAYS TAKEN #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0d62c: 38 80 00 03 li r4,3 <== ALWAYS TAKEN */ default_attr->is_initialized = true; default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; default_attr->protocol = PTHREAD_PRIO_NONE; default_attr->recursive = false; ffc0d630: 90 0b 00 14 stw r0,20(r11) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0d634: 38 a0 00 06 li r5,6 <== ALWAYS TAKEN ffc0d638: 38 e0 00 78 li r7,120 /* * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc0d63c: 90 0b 00 04 stw r0,4(r11) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0d640: 39 00 00 01 li r8,1 <== ALWAYS TAKEN ffc0d644: 39 20 00 ff li r9,255 * structure cannot be initialized statically. */ default_attr->is_initialized = true; default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; default_attr->protocol = PTHREAD_PRIO_NONE; ffc0d648: 90 0b 00 0c stw r0,12(r11) default_attr->recursive = false; #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) default_attr->type = PTHREAD_MUTEX_DEFAULT; ffc0d64c: 91 4b 00 10 stw r10,16(r11) * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; ffc0d650: 91 8b 00 08 stw r12,8(r11) <== ALWAYS TAKEN #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0d654: 4b ff c2 79 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0d658: 80 01 00 14 lwz r0,20(r1) ffc0d65c: 83 e1 00 0c lwz r31,12(r1) ffc0d660: 38 21 00 10 addi r1,r1,16 ffc0d664: 7c 08 03 a6 mtlr r0 ffc0d668: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a8d8 <_POSIX_Mutex_Translate_core_mutex_return_code>: #if defined(RTEMS_DEBUG) if ( the_mutex_status > CORE_MUTEX_STATUS_LAST ) return EINVAL; #endif return _POSIX_Mutex_Return_codes[the_mutex_status]; } ffc0a8d8: 3d 20 ff c2 lis r9,-62 ffc0a8dc: 39 29 40 8c addi r9,r9,16524 int _POSIX_Mutex_Translate_core_mutex_return_code( CORE_mutex_Status the_mutex_status ) { ffc0a8e0: 54 63 10 3a rlwinm r3,r3,2,0,29 #if defined(RTEMS_DEBUG) if ( the_mutex_status > CORE_MUTEX_STATUS_LAST ) return EINVAL; #endif return _POSIX_Mutex_Return_codes[the_mutex_status]; } ffc0a8e4: 7c 69 18 2e lwzx r3,r9,r3 ffc0a8e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f164 <_POSIX_Priority_Is_valid>: bool _POSIX_Priority_Is_valid( int priority ) { return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) && ffc0f164: 7c 60 1b 79 mr. r0,r3 ffc0f168: 38 60 00 00 li r3,0 ffc0f16c: 4c 81 00 20 blelr ffc0f170: 3d 20 00 00 lis r9,0 ffc0f174: 89 29 26 cc lbz r9,9932(r9) ffc0f178: 7f 89 00 00 cmpw cr7,r9,r0 ffc0f17c: 7c 60 00 26 mfcr r3 ffc0f180: 54 63 f7 fe rlwinm r3,r3,30,31,31 (priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY)); } ffc0f184: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d6b0 <_POSIX_RWLock_Manager_initialization>: * @brief _POSIX_RWLock_Manager_initialization */ void _POSIX_RWLock_Manager_initialization(void) { _Objects_Initialize_information( ffc0d6b0: 3d 20 00 00 lis r9,0 /** * @brief _POSIX_RWLock_Manager_initialization */ void _POSIX_RWLock_Manager_initialization(void) { ffc0d6b4: 94 21 ff f8 stwu r1,-8(r1) ffc0d6b8: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0d6bc: 3c 60 00 00 lis r3,0 ffc0d6c0: 80 c9 28 68 lwz r6,10344(r9) <== ALWAYS TAKEN ffc0d6c4: 38 63 2e 38 addi r3,r3,11832 <== ALWAYS TAKEN ffc0d6c8: 38 80 00 03 li r4,3 /** * @brief _POSIX_RWLock_Manager_initialization */ void _POSIX_RWLock_Manager_initialization(void) { ffc0d6cc: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0d6d0: 38 a0 00 0b li r5,11 ffc0d6d4: 38 e0 00 5c li r7,92 ffc0d6d8: 39 00 00 01 li r8,1 ffc0d6dc: 39 20 00 ff li r9,255 ffc0d6e0: 4b ff c1 ed bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0d6e4: 80 01 00 0c lwz r0,12(r1) ffc0d6e8: 38 21 00 08 addi r1,r1,8 ffc0d6ec: 7c 08 03 a6 mtlr r0 ffc0d6f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc093b0 <_POSIX_RWLock_Translate_core_RWLock_return_code>: #if defined(RTEMS_DEBUG) if ( the_rwlock_status > CORE_RWLOCK_STATUS_LAST ) return EINVAL; #endif return _POSIX_RWLock_Return_codes[the_rwlock_status]; } ffc093b0: 3d 20 ff c2 lis r9,-62 ffc093b4: 39 29 16 68 addi r9,r9,5736 int _POSIX_RWLock_Translate_core_RWLock_return_code( CORE_RWLock_Status the_rwlock_status ) { ffc093b8: 54 63 10 3a rlwinm r3,r3,2,0,29 #if defined(RTEMS_DEBUG) if ( the_rwlock_status > CORE_RWLOCK_STATUS_LAST ) return EINVAL; #endif return _POSIX_RWLock_Return_codes[the_rwlock_status]; } ffc093bc: 7c 69 18 2e lwzx r3,r9,r3 ffc093c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12114 <_POSIX_Semaphore_Create_support>: POSIX_Semaphore_Control *the_semaphore; CORE_semaphore_Attributes *the_sem_attr; char *name_p = (char *)name; /* Sharing semaphores among processes is not currently supported */ if (pshared != 0) ffc12114: 2f 84 00 00 cmpwi cr7,r4,0 const char *name, int pshared, unsigned int value, POSIX_Semaphore_Control **the_sem ) { ffc12118: 94 21 ff e8 stwu r1,-24(r1) ffc1211c: 7c 08 02 a6 mflr r0 ffc12120: 93 81 00 08 stw r28,8(r1) ffc12124: 7c bc 2b 78 mr r28,r5 ffc12128: 93 a1 00 0c stw r29,12(r1) ffc1212c: 7c dd 33 78 mr r29,r6 ffc12130: 93 c1 00 10 stw r30,16(r1) ffc12134: 7c 7e 1b 78 mr r30,r3 ffc12138: 90 01 00 1c stw r0,28(r1) ffc1213c: 93 e1 00 14 stw r31,20(r1) POSIX_Semaphore_Control *the_semaphore; CORE_semaphore_Attributes *the_sem_attr; char *name_p = (char *)name; /* Sharing semaphores among processes is not currently supported */ if (pshared != 0) ffc12140: 41 be 00 10 beq+ cr7,ffc12150 <_POSIX_Semaphore_Create_support+0x3c> rtems_set_errno_and_return_minus_one( ENOSYS ); ffc12144: 48 00 45 59 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc12148: 38 00 00 58 li r0,88 ffc1214c: 48 00 00 24 b ffc12170 <_POSIX_Semaphore_Create_support+0x5c> <== ALWAYS TAKEN if ( name ) { ffc12150: 2f 83 00 00 cmpwi cr7,r3,0 ffc12154: 41 9e 00 28 beq- cr7,ffc1217c <_POSIX_Semaphore_Create_support+0x68> if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) ffc12158: 38 80 00 ff li r4,255 ffc1215c: 48 00 5e 75 bl ffc17fd0 <== ALWAYS TAKEN ffc12160: 2b 83 00 fe cmplwi cr7,r3,254 ffc12164: 40 bd 00 18 ble+ cr7,ffc1217c <_POSIX_Semaphore_Create_support+0x68> rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc12168: 48 00 45 35 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc1216c: 38 00 00 5b li r0,91 ffc12170: 90 03 00 00 stw r0,0(r3) ffc12174: 38 60 ff ff li r3,-1 ffc12178: 48 00 00 b0 b ffc12228 <_POSIX_Semaphore_Create_support+0x114> <== ALWAYS TAKEN ffc1217c: 3d 20 00 00 lis r9,0 ffc12180: 81 69 27 90 lwz r11,10128(r9) ffc12184: 38 0b 00 01 addi r0,r11,1 ffc12188: 90 09 27 90 stw r0,10128(r9) * _POSIX_Semaphore_Allocate */ RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Allocate( void ) { return (POSIX_Semaphore_Control *) ffc1218c: 3c 60 00 00 lis r3,0 ffc12190: 38 63 30 d8 addi r3,r3,12504 ffc12194: 4b ff b0 2d bl ffc0d1c0 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_semaphore = _POSIX_Semaphore_Allocate(); if ( !the_semaphore ) { ffc12198: 7c 7f 1b 79 mr. r31,r3 ffc1219c: 40 a2 00 14 bne+ ffc121b0 <_POSIX_Semaphore_Create_support+0x9c> _Thread_Enable_dispatch(); ffc121a0: 4b ff c1 49 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc121a4: 48 00 44 f9 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc121a8: 38 00 00 1c li r0,28 ffc121ac: 4b ff ff c4 b ffc12170 <_POSIX_Semaphore_Create_support+0x5c> <== ALWAYS TAKEN } the_semaphore->process_shared = pshared; if ( name ) { ffc121b0: 2f 9e 00 00 cmpwi cr7,r30,0 if ( !the_semaphore ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENOSPC ); } the_semaphore->process_shared = pshared; ffc121b4: 38 00 00 00 li r0,0 ffc121b8: 90 1f 00 10 stw r0,16(r31) if ( name ) { ffc121bc: 41 9e 00 1c beq- cr7,ffc121d8 <_POSIX_Semaphore_Create_support+0xc4> the_semaphore->named = true; the_semaphore->open_count = 1; ffc121c0: 38 00 00 01 li r0,1 } the_semaphore->process_shared = pshared; if ( name ) { the_semaphore->named = true; ffc121c4: 39 20 00 01 li r9,1 the_semaphore->open_count = 1; the_semaphore->linked = true; ffc121c8: 98 1f 00 15 stb r0,21(r31) } the_semaphore->process_shared = pshared; if ( name ) { the_semaphore->named = true; ffc121cc: 99 3f 00 14 stb r9,20(r31) the_semaphore->open_count = 1; ffc121d0: 90 1f 00 18 stw r0,24(r31) ffc121d4: 48 00 00 10 b ffc121e4 <_POSIX_Semaphore_Create_support+0xd0> <== ALWAYS TAKEN the_semaphore->linked = true; } else { the_semaphore->named = false; ffc121d8: 9b df 00 14 stb r30,20(r31) the_semaphore->open_count = 0; ffc121dc: 93 df 00 18 stw r30,24(r31) the_semaphore->linked = false; ffc121e0: 9b df 00 15 stb r30,21(r31) * blocking tasks on this semaphore should be. It could somehow * be derived from the current scheduling policy. One * thing is certain, no matter what we decide, it won't be * the same as all other POSIX implementations. :) */ the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; ffc121e4: 38 00 00 00 li r0,0 ffc121e8: 90 1f 00 60 stw r0,96(r31) /* * This effectively disables limit checking. */ the_sem_attr->maximum_count = 0xFFFFFFFF; ffc121ec: 38 00 ff ff li r0,-1 _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value ); ffc121f0: 38 7f 00 1c addi r3,r31,28 the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; /* * This effectively disables limit checking. */ the_sem_attr->maximum_count = 0xFFFFFFFF; ffc121f4: 90 1f 00 5c stw r0,92(r31) _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value ); ffc121f8: 7f 85 e3 78 mr r5,r28 ffc121fc: 38 9f 00 5c addi r4,r31,92 ffc12200: 4b ff aa 0d bl ffc0cc0c <_CORE_semaphore_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc12204: a0 1f 00 0a lhz r0,10(r31) ffc12208: 3d 20 00 00 lis r9,0 ffc1220c: 81 29 30 f4 lwz r9,12532(r9) ffc12210: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc12214: 7f e9 01 2e stwx r31,r9,r0 the_object ); #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* ASSERT: information->is_string */ the_object->name.name_p = name; ffc12218: 93 df 00 0c stw r30,12(r31) &_POSIX_Semaphore_Information, &the_semaphore->Object, name_p ); *the_sem = the_semaphore; ffc1221c: 93 fd 00 00 stw r31,0(r29) _Thread_Enable_dispatch(); ffc12220: 4b ff c0 c9 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc12224: 38 60 00 00 li r3,0 return 0; } ffc12228: 80 01 00 1c lwz r0,28(r1) ffc1222c: 83 81 00 08 lwz r28,8(r1) ffc12230: 7c 08 03 a6 mtlr r0 ffc12234: 83 a1 00 0c lwz r29,12(r1) ffc12238: 83 c1 00 10 lwz r30,16(r1) ffc1223c: 83 e1 00 14 lwz r31,20(r1) ffc12240: 38 21 00 18 addi r1,r1,24 ffc12244: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12248 <_POSIX_Semaphore_Delete>: */ void _POSIX_Semaphore_Delete( POSIX_Semaphore_Control *the_semaphore ) { ffc12248: 94 21 ff f0 stwu r1,-16(r1) ffc1224c: 7c 08 02 a6 mflr r0 ffc12250: 90 01 00 14 stw r0,20(r1) if ( !the_semaphore->linked && !the_semaphore->open_count ) { ffc12254: 88 03 00 15 lbz r0,21(r3) */ void _POSIX_Semaphore_Delete( POSIX_Semaphore_Control *the_semaphore ) { ffc12258: 93 e1 00 0c stw r31,12(r1) ffc1225c: 7c 7f 1b 78 mr r31,r3 if ( !the_semaphore->linked && !the_semaphore->open_count ) { ffc12260: 2f 80 00 00 cmpwi cr7,r0,0 */ void _POSIX_Semaphore_Delete( POSIX_Semaphore_Control *the_semaphore ) { ffc12264: 93 c1 00 08 stw r30,8(r1) if ( !the_semaphore->linked && !the_semaphore->open_count ) { ffc12268: 40 9e 00 40 bne- cr7,ffc122a8 <_POSIX_Semaphore_Delete+0x60> ffc1226c: 80 03 00 18 lwz r0,24(r3) ffc12270: 2f 80 00 00 cmpwi cr7,r0,0 ffc12274: 40 be 00 34 bne+ cr7,ffc122a8 <_POSIX_Semaphore_Delete+0x60> _Objects_Close( &_POSIX_Semaphore_Information, &the_semaphore->Object ); ffc12278: 3f c0 00 00 lis r30,0 ffc1227c: 3b de 30 d8 addi r30,r30,12504 ffc12280: 7f c3 f3 78 mr r3,r30 ffc12284: 7f e4 fb 78 mr r4,r31 ffc12288: 4b ff af e5 bl ffc0d26c <_Objects_Close> <== ALWAYS TAKEN _CORE_semaphore_Flush( ffc1228c: 38 7f 00 1c addi r3,r31,28 ffc12290: 38 80 00 00 li r4,0 ffc12294: 38 a0 ff ff li r5,-1 ffc12298: 4b ff a9 55 bl ffc0cbec <_CORE_semaphore_Flush> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Free ( POSIX_Semaphore_Control *the_semaphore ) { _Objects_Free( &_POSIX_Semaphore_Information, &the_semaphore->Object ); ffc1229c: 7f c3 f3 78 mr r3,r30 ffc122a0: 7f e4 fb 78 mr r4,r31 ffc122a4: 4b ff b3 09 bl ffc0d5ac <_Objects_Free> <== ALWAYS TAKEN -1 ); _POSIX_Semaphore_Free( the_semaphore ); } } ffc122a8: 80 01 00 14 lwz r0,20(r1) ffc122ac: 83 c1 00 08 lwz r30,8(r1) ffc122b0: 7c 08 03 a6 mtlr r0 ffc122b4: 83 e1 00 0c lwz r31,12(r1) ffc122b8: 38 21 00 10 addi r1,r1,16 ffc122bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dd14 <_POSIX_Semaphore_Manager_initialization>: * Output parameters: NONE */ void _POSIX_Semaphore_Manager_initialization(void) { _Objects_Initialize_information( ffc0dd14: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _POSIX_Semaphore_Manager_initialization(void) { ffc0dd18: 94 21 ff f8 stwu r1,-8(r1) ffc0dd1c: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0dd20: 3c 60 00 00 lis r3,0 ffc0dd24: 80 c9 28 60 lwz r6,10336(r9) ffc0dd28: 38 63 2e f8 addi r3,r3,12024 <== ALWAYS TAKEN ffc0dd2c: 38 80 00 03 li r4,3 * * Output parameters: NONE */ void _POSIX_Semaphore_Manager_initialization(void) { ffc0dd30: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0dd34: 38 a0 00 07 li r5,7 <== ALWAYS TAKEN ffc0dd38: 38 e0 00 68 li r7,104 <== ALWAYS TAKEN ffc0dd3c: 39 00 00 01 li r8,1 ffc0dd40: 39 20 00 ff li r9,255 ffc0dd44: 4b ff bb 89 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0dd48: 80 01 00 0c lwz r0,12(r1) ffc0dd4c: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc0dd50: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0dd54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc122c0 <_POSIX_Semaphore_Name_to_id>: ) { Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) ffc122c0: 7c 69 1b 79 mr. r9,r3 int _POSIX_Semaphore_Name_to_id( const char *name, sem_t *id ) { ffc122c4: 94 21 ff e0 stwu r1,-32(r1) ffc122c8: 7c 08 02 a6 mflr r0 ffc122cc: 93 e1 00 1c stw r31,28(r1) ffc122d0: 7c 9f 23 78 mr r31,r4 ffc122d4: 90 01 00 24 stw r0,36(r1) Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) ffc122d8: 41 82 00 40 beq- ffc12318 <_POSIX_Semaphore_Name_to_id+0x58> return EINVAL; if ( !name[0] ) ffc122dc: 88 09 00 00 lbz r0,0(r9) ffc122e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc122e4: 41 be 00 34 beq+ cr7,ffc12318 <_POSIX_Semaphore_Name_to_id+0x58> return EINVAL; status = _Objects_Name_to_id_string( ffc122e8: 3c 60 00 00 lis r3,0 ffc122ec: 7d 24 4b 78 mr r4,r9 ffc122f0: 38 63 30 d8 addi r3,r3,12504 ffc122f4: 38 a1 00 08 addi r5,r1,8 ffc122f8: 48 00 10 dd bl ffc133d4 <_Objects_Name_to_id_string> <== ALWAYS TAKEN name, &the_id ); *id = the_id; if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc122fc: 31 23 ff ff addic r9,r3,-1 ffc12300: 7c 09 19 10 subfe r0,r9,r3 ffc12304: 7c 03 03 78 mr r3,r0 status = _Objects_Name_to_id_string( &_POSIX_Semaphore_Information, name, &the_id ); *id = the_id; ffc12308: 80 01 00 08 lwz r0,8(r1) if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc1230c: 54 63 08 3c rlwinm r3,r3,1,0,30 status = _Objects_Name_to_id_string( &_POSIX_Semaphore_Information, name, &the_id ); *id = the_id; ffc12310: 90 1f 00 00 stw r0,0(r31) ffc12314: 48 00 00 08 b ffc1231c <_POSIX_Semaphore_Name_to_id+0x5c> <== ALWAYS TAKEN if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc12318: 38 60 00 16 li r3,22 return 0; return ENOENT; } ffc1231c: 80 01 00 24 lwz r0,36(r1) ffc12320: 83 e1 00 1c lwz r31,28(r1) ffc12324: 38 21 00 20 addi r1,r1,32 ffc12328: 7c 08 03 a6 mtlr r0 ffc1232c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15204 <_POSIX_Semaphore_Translate_core_semaphore_return_code>: #if defined(RTEMS_DEBUG) if ( the_semaphore_status > CORE_SEMAPHORE_STATUS_LAST ) return EINVAL; #endif return _POSIX_Semaphore_Return_codes[the_semaphore_status]; } ffc15204: 3d 20 ff c2 lis r9,-62 ffc15208: 39 29 42 40 addi r9,r9,16960 int _POSIX_Semaphore_Translate_core_semaphore_return_code( CORE_semaphore_Status the_semaphore_status ) { ffc1520c: 54 63 10 3a rlwinm r3,r3,2,0,29 #if defined(RTEMS_DEBUG) if ( the_semaphore_status > CORE_SEMAPHORE_STATUS_LAST ) return EINVAL; #endif return _POSIX_Semaphore_Return_codes[the_semaphore_status]; } ffc15210: 7c 69 18 2e lwzx r3,r9,r3 ffc15214: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12374 <_POSIX_Semaphore_Wait_support>: int _POSIX_Semaphore_Wait_support( sem_t *sem, bool blocking, Watchdog_Interval timeout ) { ffc12374: 94 21 ff e0 stwu r1,-32(r1) ffc12378: 7c 08 02 a6 mflr r0 ffc1237c: 90 01 00 24 stw r0,36(r1) RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( sem_t *id, Objects_Locations *location ) { return (POSIX_Semaphore_Control *) ffc12380: 80 03 00 00 lwz r0,0(r3) ffc12384: 3c 60 00 00 lis r3,0 ffc12388: 93 c1 00 18 stw r30,24(r1) ffc1238c: 38 63 30 d8 addi r3,r3,12504 ffc12390: 7c 9e 23 78 mr r30,r4 ffc12394: 93 e1 00 1c stw r31,28(r1) ffc12398: 7c 04 03 78 mr r4,r0 ffc1239c: 7c bf 2b 78 mr r31,r5 ffc123a0: 38 a1 00 08 addi r5,r1,8 ffc123a4: 4b ff b3 c9 bl ffc0d76c <_Objects_Get> <== ALWAYS TAKEN POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc123a8: 80 01 00 08 lwz r0,8(r1) ffc123ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc123b0: 40 9e 00 50 bne- cr7,ffc12400 <_POSIX_Semaphore_Wait_support+0x8c> case OBJECTS_LOCAL: _CORE_semaphore_Seize( ffc123b4: 80 83 00 08 lwz r4,8(r3) ffc123b8: 7f e6 fb 78 mr r6,r31 ffc123bc: 38 63 00 1c addi r3,r3,28 ffc123c0: 7f c5 f3 78 mr r5,r30 blocking, timeout ); _Thread_Enable_dispatch(); if ( !_Thread_Executing->Wait.return_code ) ffc123c4: 3f e0 00 00 lis r31,0 the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_semaphore_Seize( ffc123c8: 48 00 09 d9 bl ffc12da0 <_CORE_semaphore_Seize> <== ALWAYS TAKEN &the_semaphore->Semaphore, the_semaphore->Object.id, blocking, timeout ); _Thread_Enable_dispatch(); ffc123cc: 4b ff bf 1d bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( !_Thread_Executing->Wait.return_code ) ffc123d0: 81 3f 27 d0 lwz r9,10192(r31) ffc123d4: 38 60 00 00 li r3,0 ffc123d8: 80 09 00 34 lwz r0,52(r9) ffc123dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc123e0: 41 be 00 30 beq+ cr7,ffc12410 <_POSIX_Semaphore_Wait_support+0x9c> return 0; rtems_set_errno_and_return_minus_one( ffc123e4: 48 00 42 b9 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc123e8: 81 3f 27 d0 lwz r9,10192(r31) ffc123ec: 7c 7e 1b 78 mr r30,r3 ffc123f0: 80 69 00 34 lwz r3,52(r9) ffc123f4: 48 00 2e 11 bl ffc15204 <_POSIX_Semaphore_Translate_core_semaphore_return_code> <== ALWAYS TAKEN ffc123f8: 90 7e 00 00 stw r3,0(r30) ffc123fc: 48 00 00 10 b ffc1240c <_POSIX_Semaphore_Wait_support+0x98> <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc12400: 48 00 42 9d bl ffc1669c <__errno> <== ALWAYS TAKEN ffc12404: 38 00 00 16 li r0,22 ffc12408: 90 03 00 00 stw r0,0(r3) ffc1240c: 38 60 ff ff li r3,-1 } ffc12410: 80 01 00 24 lwz r0,36(r1) ffc12414: 83 c1 00 18 lwz r30,24(r1) ffc12418: 7c 08 03 a6 mtlr r0 ffc1241c: 83 e1 00 1c lwz r31,28(r1) ffc12420: 38 21 00 20 addi r1,r1,32 ffc12424: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d8f0 <_POSIX_Spinlock_Manager_initialization>: * @brief _POSIX_Spinlock_Manager_initialization */ void _POSIX_Spinlock_Manager_initialization(void) { _Objects_Initialize_information( ffc0d8f0: 3d 20 00 00 lis r9,0 /** * @brief _POSIX_Spinlock_Manager_initialization */ void _POSIX_Spinlock_Manager_initialization(void) { ffc0d8f4: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc0d8f8: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0d8fc: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN ffc0d900: 80 c9 28 6c lwz r6,10348(r9) ffc0d904: 38 63 2e b8 addi r3,r3,11960 ffc0d908: 38 80 00 03 li r4,3 /** * @brief _POSIX_Spinlock_Manager_initialization */ void _POSIX_Spinlock_Manager_initialization(void) { ffc0d90c: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0d910: 38 a0 00 0b li r5,11 ffc0d914: 38 e0 00 20 li r7,32 <== ALWAYS TAKEN ffc0d918: 39 00 00 01 li r8,1 <== ALWAYS TAKEN ffc0d91c: 39 20 00 ff li r9,255 <== ALWAYS TAKEN ffc0d920: 4b ff bf ad bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0d924: 80 01 00 0c lwz r0,12(r1) ffc0d928: 38 21 00 08 addi r1,r1,8 ffc0d92c: 7c 08 03 a6 mtlr r0 ffc0d930: 4e 80 00 20 blr <== ALWAYS TAKEN ffc080d8 <_POSIX_Spinlock_Translate_core_spinlock_return_code>: #if defined(RTEMS_DEBUG) if ( the_spinlock_status > CORE_SPINLOCK_STATUS_LAST ) return EINVAL; #endif return _POSIX_Spinlock_Return_codes[the_spinlock_status]; } ffc080d8: 3d 20 ff c2 lis r9,-62 ffc080dc: 39 29 f3 f4 addi r9,r9,-3084 int _POSIX_Spinlock_Translate_core_spinlock_return_code( CORE_spinlock_Status the_spinlock_status ) { ffc080e0: 54 63 10 3a rlwinm r3,r3,2,0,29 #if defined(RTEMS_DEBUG) if ( the_spinlock_status > CORE_SPINLOCK_STATUS_LAST ) return EINVAL; #endif return _POSIX_Spinlock_Return_codes[the_spinlock_status]; } ffc080e4: 7c 69 18 2e lwzx r3,r9,r3 ffc080e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0da70 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>: #include void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( Thread_Control *the_thread ) { ffc0da70: 7c 08 02 a6 mflr r0 ffc0da74: 94 21 ff f8 stwu r1,-8(r1) ffc0da78: 90 01 00 0c stw r0,12(r1) POSIX_API_Control *thread_support; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0da7c: 81 23 01 48 lwz r9,328(r3) if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && ffc0da80: 80 09 00 cc lwz r0,204(r9) ffc0da84: 2f 80 00 00 cmpwi cr7,r0,0 ffc0da88: 40 9e 00 38 bne- cr7,ffc0dac0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x50> <== NEVER TAKEN thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS && ffc0da8c: 80 09 00 d0 lwz r0,208(r9) ffc0da90: 2f 80 00 01 cmpwi cr7,r0,1 ffc0da94: 40 be 00 2c bne+ cr7,ffc0dac0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x50> thread_support->cancelation_requested ) { ffc0da98: 80 09 00 d4 lwz r0,212(r9) ffc0da9c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0daa0: 41 be 00 20 beq+ cr7,ffc0dac0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x50> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0daa4: 3d 20 00 00 lis r9,0 ffc0daa8: 81 69 27 9c lwz r11,10140(r9) _Thread_Unnest_dispatch(); _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED ); ffc0daac: 38 80 ff ff li r4,-1 ffc0dab0: 38 0b ff ff addi r0,r11,-1 ffc0dab4: 90 09 27 9c stw r0,10140(r9) ffc0dab8: 48 00 08 1d bl ffc0e2d4 <_POSIX_Thread_Exit> <== ALWAYS TAKEN { POSIX_API_Control *thread_support; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && ffc0dabc: 48 00 00 08 b ffc0dac4 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54> <== ALWAYS TAKEN thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS && thread_support->cancelation_requested ) { _Thread_Unnest_dispatch(); _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED ); } else _Thread_Enable_dispatch(); ffc0dac0: 4b ff ce 11 bl ffc0a8d0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc0dac4: 80 01 00 0c lwz r0,12(r1) ffc0dac8: 38 21 00 08 addi r1,r1,8 ffc0dacc: 7c 08 03 a6 mtlr r0 ffc0dad0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc106e0 <_POSIX_Thread_Exit>: void _POSIX_Thread_Exit( Thread_Control *the_thread, void *value_ptr ) { ffc106e0: 94 21 ff e8 stwu r1,-24(r1) ffc106e4: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc106e8: 90 01 00 1c stw r0,28(r1) ffc106ec: 93 e1 00 14 stw r31,20(r1) ffc106f0: 7c 7f 1b 78 mr r31,r3 Objects_Information *the_information; the_information = _Objects_Get_information_id( the_thread->Object.id ); ffc106f4: 80 63 00 08 lwz r3,8(r3) void _POSIX_Thread_Exit( Thread_Control *the_thread, void *value_ptr ) { ffc106f8: 93 81 00 08 stw r28,8(r1) ffc106fc: 7c 9c 23 78 mr r28,r4 ffc10700: 93 a1 00 0c stw r29,12(r1) ffc10704: 93 c1 00 10 stw r30,16(r1) Objects_Information *the_information; the_information = _Objects_Get_information_id( the_thread->Object.id ); ffc10708: 4b ff 90 19 bl ffc09720 <_Objects_Get_information_id> <== ALWAYS TAKEN * are ready to be switched out. Otherwise, an ISR could * occur and preempt us out while we still hold the * allocator mutex. */ _RTEMS_Lock_allocator(); ffc1070c: 3f c0 00 00 lis r30,0 void *value_ptr ) { Objects_Information *the_information; the_information = _Objects_Get_information_id( the_thread->Object.id ); ffc10710: 7c 7d 1b 78 mr r29,r3 * are ready to be switched out. Otherwise, an ISR could * occur and preempt us out while we still hold the * allocator mutex. */ _RTEMS_Lock_allocator(); ffc10714: 80 7e 27 a8 lwz r3,10152(r30) ffc10718: 4b ff 80 b1 bl ffc087c8 <_API_Mutex_Lock> <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc1071c: 3d 20 00 00 lis r9,0 ffc10720: 81 69 27 70 lwz r11,10096(r9) ffc10724: 38 0b 00 01 addi r0,r11,1 <== ALWAYS TAKEN ffc10728: 90 09 27 70 stw r0,10096(r9) _Thread_Disable_dispatch(); the_thread->Wait.return_argument = value_ptr; ffc1072c: 93 9f 00 28 stw r28,40(r31) _Thread_Close( the_information, the_thread ); ffc10730: 7f a3 eb 78 mr r3,r29 ffc10734: 7f e4 fb 78 mr r4,r31 ffc10738: 4b ff 97 f9 bl ffc09f30 <_Thread_Close> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free ( Thread_Control *the_pthread ) { _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); ffc1073c: 3c 60 00 00 lis r3,0 ffc10740: 7f e4 fb 78 mr r4,r31 ffc10744: 38 63 2e 78 addi r3,r3,11896 ffc10748: 4b ff 8f 35 bl ffc0967c <_Objects_Free> <== ALWAYS TAKEN _POSIX_Threads_Free( the_thread ); _RTEMS_Unlock_allocator(); ffc1074c: 80 7e 27 a8 lwz r3,10152(r30) ffc10750: 4b ff 80 f9 bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc10754: 4b ff 9b f9 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc10758: 80 01 00 1c lwz r0,28(r1) ffc1075c: 83 81 00 08 lwz r28,8(r1) ffc10760: 7c 08 03 a6 mtlr r0 ffc10764: 83 a1 00 0c lwz r29,12(r1) ffc10768: 83 c1 00 10 lwz r30,16(r1) ffc1076c: 83 e1 00 14 lwz r31,20(r1) ffc10770: 38 21 00 18 addi r1,r1,24 ffc10774: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f188 <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) { ffc0f188: 94 21 ff e8 stwu r1,-24(r1) ffc0f18c: 7c 08 02 a6 mflr r0 ffc0f190: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc0f194: 7c 7e 1b 78 mr r30,r3 if ( !_POSIX_Priority_Is_valid( param->sched_priority ) ) ffc0f198: 80 64 00 00 lwz r3,0(r4) int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) { ffc0f19c: 93 81 00 08 stw r28,8(r1) ffc0f1a0: 7c dc 33 78 mr r28,r6 ffc0f1a4: 93 a1 00 0c stw r29,12(r1) ffc0f1a8: 7c bd 2b 78 mr r29,r5 ffc0f1ac: 93 e1 00 14 stw r31,20(r1) ffc0f1b0: 7c 9f 23 78 mr r31,r4 ffc0f1b4: 90 01 00 1c stw r0,28(r1) if ( !_POSIX_Priority_Is_valid( param->sched_priority ) ) ffc0f1b8: 4b ff ff ad bl ffc0f164 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc0f1bc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f1c0: 41 9e 00 c4 beq- cr7,ffc0f284 <_POSIX_Thread_Translate_sched_param+0xfc> <== NEVER TAKEN return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; *budget_callout = NULL; if ( policy == SCHED_OTHER ) { ffc0f1c4: 2f 9e 00 00 cmpwi cr7,r30,0 ) { if ( !_POSIX_Priority_Is_valid( param->sched_priority ) ) return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; ffc0f1c8: 38 00 00 00 li r0,0 ffc0f1cc: 90 1d 00 00 stw r0,0(r29) *budget_callout = NULL; ffc0f1d0: 90 1c 00 00 stw r0,0(r28) if ( policy == SCHED_OTHER ) { ffc0f1d4: 40 be 00 0c bne+ cr7,ffc0f1e0 <_POSIX_Thread_Translate_sched_param+0x58> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; ffc0f1d8: 38 00 00 01 li r0,1 ffc0f1dc: 48 00 00 0c b ffc0f1e8 <_POSIX_Thread_Translate_sched_param+0x60> <== ALWAYS TAKEN return 0; } if ( policy == SCHED_FIFO ) { ffc0f1e0: 2f 9e 00 01 cmpwi cr7,r30,1 ffc0f1e4: 40 be 00 0c bne+ cr7,ffc0f1f0 <_POSIX_Thread_Translate_sched_param+0x68> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; ffc0f1e8: 90 1d 00 00 stw r0,0(r29) ffc0f1ec: 48 00 00 10 b ffc0f1fc <_POSIX_Thread_Translate_sched_param+0x74> <== ALWAYS TAKEN return 0; } if ( policy == SCHED_RR ) { ffc0f1f0: 2f 9e 00 02 cmpwi cr7,r30,2 ffc0f1f4: 40 be 00 10 bne+ cr7,ffc0f204 <_POSIX_Thread_Translate_sched_param+0x7c> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE; ffc0f1f8: 93 dd 00 00 stw r30,0(r29) ffc0f1fc: 38 60 00 00 li r3,0 return 0; ffc0f200: 48 00 00 88 b ffc0f288 <_POSIX_Thread_Translate_sched_param+0x100> <== ALWAYS TAKEN } if ( policy == SCHED_SPORADIC ) { ffc0f204: 2f 9e 00 03 cmpwi cr7,r30,3 ffc0f208: 40 be 00 7c bne+ cr7,ffc0f284 <_POSIX_Thread_Translate_sched_param+0xfc> if ( (param->ss_replenish_period.tv_sec == 0) && ffc0f20c: 80 1f 00 08 lwz r0,8(r31) ffc0f210: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f214: 40 9e 00 10 bne- cr7,ffc0f224 <_POSIX_Thread_Translate_sched_param+0x9c> (param->ss_replenish_period.tv_nsec == 0) ) ffc0f218: 80 1f 00 0c lwz r0,12(r31) ffc0f21c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f220: 41 9e 00 64 beq- cr7,ffc0f284 <_POSIX_Thread_Translate_sched_param+0xfc> return EINVAL; if ( (param->ss_initial_budget.tv_sec == 0) && ffc0f224: 80 1f 00 10 lwz r0,16(r31) ffc0f228: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f22c: 40 9e 00 10 bne- cr7,ffc0f23c <_POSIX_Thread_Translate_sched_param+0xb4> (param->ss_initial_budget.tv_nsec == 0) ) ffc0f230: 80 1f 00 14 lwz r0,20(r31) ffc0f234: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f238: 41 9e 00 4c beq- cr7,ffc0f284 <_POSIX_Thread_Translate_sched_param+0xfc> return EINVAL; if ( _Timespec_To_ticks( ¶m->ss_replenish_period ) < ffc0f23c: 38 7f 00 08 addi r3,r31,8 ffc0f240: 4b ff d7 d1 bl ffc0ca10 <_Timespec_To_ticks> <== ALWAYS TAKEN ffc0f244: 7c 7e 1b 78 mr r30,r3 ffc0f248: 38 7f 00 10 addi r3,r31,16 ffc0f24c: 4b ff d7 c5 bl ffc0ca10 <_Timespec_To_ticks> <== ALWAYS TAKEN ffc0f250: 7f 9e 18 40 cmplw cr7,r30,r3 ffc0f254: 41 9c 00 30 blt- cr7,ffc0f284 <_POSIX_Thread_Translate_sched_param+0xfc> _Timespec_To_ticks( ¶m->ss_initial_budget ) ) return EINVAL; if ( !_POSIX_Priority_Is_valid( param->ss_low_priority ) ) ffc0f258: 80 7f 00 04 lwz r3,4(r31) ffc0f25c: 4b ff ff 09 bl ffc0f164 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc0f260: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f264: 41 9e 00 20 beq- cr7,ffc0f284 <_POSIX_Thread_Translate_sched_param+0xfc> return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT; ffc0f268: 38 00 00 03 li r0,3 *budget_callout = _POSIX_Threads_Sporadic_budget_callout; ffc0f26c: 3d 20 ff c1 lis r9,-63 return EINVAL; if ( !_POSIX_Priority_Is_valid( param->ss_low_priority ) ) return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT; ffc0f270: 90 1d 00 00 stw r0,0(r29) *budget_callout = _POSIX_Threads_Sporadic_budget_callout; ffc0f274: 38 09 86 28 addi r0,r9,-31192 ffc0f278: 38 60 00 00 li r3,0 ffc0f27c: 90 1c 00 00 stw r0,0(r28) return 0; ffc0f280: 48 00 00 08 b ffc0f288 <_POSIX_Thread_Translate_sched_param+0x100> <== ALWAYS TAKEN ffc0f284: 38 60 00 16 li r3,22 } return EINVAL; } ffc0f288: 80 01 00 1c lwz r0,28(r1) ffc0f28c: 83 81 00 08 lwz r28,8(r1) ffc0f290: 7c 08 03 a6 mtlr r0 ffc0f294: 83 a1 00 0c lwz r29,12(r1) ffc0f298: 83 c1 00 10 lwz r30,16(r1) ffc0f29c: 83 e1 00 14 lwz r31,20(r1) ffc0f2a0: 38 21 00 18 addi r1,r1,24 ffc0f2a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0da9c <_POSIX_Threads_Create_extension>: bool _POSIX_Threads_Create_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *created ) { ffc0da9c: 94 21 ff e8 stwu r1,-24(r1) ffc0daa0: 7c 08 02 a6 mflr r0 POSIX_API_Control *api; POSIX_API_Control *executing_api; api = _Workspace_Allocate( sizeof( POSIX_API_Control ) ); ffc0daa4: 38 60 00 e4 li r3,228 bool _POSIX_Threads_Create_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *created ) { ffc0daa8: 90 01 00 1c stw r0,28(r1) ffc0daac: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc0dab0: 7c 9e 23 78 mr r30,r4 ffc0dab4: 93 e1 00 14 stw r31,20(r1) ffc0dab8: 93 a1 00 0c stw r29,12(r1) <== ALWAYS TAKEN POSIX_API_Control *api; POSIX_API_Control *executing_api; api = _Workspace_Allocate( sizeof( POSIX_API_Control ) ); ffc0dabc: 4b ff e1 25 bl ffc0bbe0 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !api ) ffc0dac0: 7c 7f 1b 79 mr. r31,r3 <== ALWAYS TAKEN ffc0dac4: 38 00 00 00 li r0,0 ffc0dac8: 41 82 00 f8 beq- ffc0dbc0 <_POSIX_Threads_Create_extension+0x124> return false; created->API_Extensions[ THREAD_API_POSIX ] = api; /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; ffc0dacc: 3f a0 ff c2 lis r29,-62 api = _Workspace_Allocate( sizeof( POSIX_API_Control ) ); if ( !api ) return false; created->API_Extensions[ THREAD_API_POSIX ] = api; ffc0dad0: 93 fe 01 48 stw r31,328(r30) <== ALWAYS TAKEN /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; ffc0dad4: 3b bd e3 3c addi r29,r29,-7364 <== ALWAYS TAKEN ffc0dad8: 7f a4 eb 78 mr r4,r29 ffc0dadc: 38 a0 00 38 li r5,56 ffc0dae0: 48 00 4d 15 bl ffc127f4 <== ALWAYS TAKEN api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam; ffc0dae4: 81 1d 00 2c lwz r8,44(r29) ffc0dae8: 80 1d 00 18 lwz r0,24(r29) ffc0daec: 80 fd 00 1c lwz r7,28(r29) ffc0daf0: 81 3d 00 20 lwz r9,32(r29) ffc0daf4: 81 5d 00 24 lwz r10,36(r29) ffc0daf8: 81 7d 00 28 lwz r11,40(r29) ffc0dafc: 90 1f 00 80 stw r0,128(r31) <== ALWAYS TAKEN _POSIX_Priority_From_core( created->current_priority ); /* * POSIX 1003.1 1996, 18.2.2.2 */ api->cancelation_requested = 0; ffc0db00: 38 00 00 00 li r0,0 /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam; ffc0db04: 90 ff 00 84 stw r7,132(r31) ffc0db08: 91 3f 00 88 stw r9,136(r31) <== ALWAYS TAKEN created->API_Extensions[ THREAD_API_POSIX ] = api; /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; api->detachstate = _POSIX_Threads_Default_attributes.detachstate; ffc0db0c: 39 20 00 01 li r9,1 api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam; ffc0db10: 91 5f 00 8c stw r10,140(r31) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0db14: 39 5f 00 dc addi r10,r31,220 ffc0db18: 91 7f 00 90 stw r11,144(r31) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0db1c: 39 7f 00 d8 addi r11,r31,216 ffc0db20: 91 1f 00 94 stw r8,148(r31) <== ALWAYS TAKEN api->schedparam.sched_priority = ffc0db24: 3d 00 00 00 lis r8,0 ffc0db28: 88 e8 26 a4 lbz r7,9892(r8) ffc0db2c: 81 1e 00 14 lwz r8,20(r30) * * The check for class == 1 is debug. Should never really happen. */ /* XXX use signal constants */ api->signals_pending = 0; ffc0db30: 90 1f 00 c8 stw r0,200(r31) <== ALWAYS TAKEN /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam; api->schedparam.sched_priority = ffc0db34: 7d 08 38 50 subf r8,r8,r7 * The check for class == 1 is debug. Should never really happen. */ /* XXX use signal constants */ api->signals_pending = 0; if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API ffc0db38: 88 fe 00 08 lbz r7,8(r30) created->API_Extensions[ THREAD_API_POSIX ] = api; /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; ffc0db3c: 91 3f 00 7c stw r9,124(r31) * The check for class == 1 is debug. Should never really happen. */ /* XXX use signal constants */ api->signals_pending = 0; if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API ffc0db40: 54 e7 07 7e clrlwi r7,r7,29 ffc0db44: 2f 87 00 03 cmpwi cr7,r7,3 /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam; api->schedparam.sched_priority = ffc0db48: 91 1f 00 80 stw r8,128(r31) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0db4c: 91 5f 00 d8 stw r10,216(r31) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0db50: 91 7f 00 e0 stw r11,224(r31) <== ALWAYS TAKEN created->API_Extensions[ THREAD_API_POSIX ] = api; /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; api->detachstate = _POSIX_Threads_Default_attributes.detachstate; ffc0db54: 91 3f 00 38 stw r9,56(r31) _POSIX_Priority_From_core( created->current_priority ); /* * POSIX 1003.1 1996, 18.2.2.2 */ api->cancelation_requested = 0; ffc0db58: 90 1f 00 d4 stw r0,212(r31) api->cancelability_state = PTHREAD_CANCEL_ENABLE; ffc0db5c: 90 1f 00 cc stw r0,204(r31) <== ALWAYS TAKEN api->cancelability_type = PTHREAD_CANCEL_DEFERRED; ffc0db60: 90 1f 00 d0 stw r0,208(r31) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc0db64: 90 1f 00 dc stw r0,220(r31) * The check for class == 1 is debug. Should never really happen. */ /* XXX use signal constants */ api->signals_pending = 0; if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API ffc0db68: 40 be 00 18 bne+ cr7,ffc0db80 <_POSIX_Threads_Create_extension+0xe4> #if defined(RTEMS_DEBUG) && _Objects_Get_class( created->Object.id ) == 1 #endif ) { executing_api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; api->signals_blocked = executing_api->signals_blocked; ffc0db6c: 3d 20 00 00 lis r9,0 ffc0db70: 81 29 27 b0 lwz r9,10160(r9) ffc0db74: 81 29 01 48 lwz r9,328(r9) ffc0db78: 80 09 00 c4 lwz r0,196(r9) ffc0db7c: 48 00 00 08 b ffc0db84 <_POSIX_Threads_Create_extension+0xe8> <== ALWAYS TAKEN } else { api->signals_blocked = 0xffffffff; ffc0db80: 38 00 ff ff li r0,-1 ffc0db84: 90 1f 00 c4 stw r0,196(r31) } _Thread_queue_Initialize( ffc0db88: 38 7f 00 3c addi r3,r31,60 ffc0db8c: 38 80 00 00 li r4,0 ffc0db90: 38 a0 10 00 li r5,4096 ffc0db94: 38 c0 00 00 li r6,0 ffc0db98: 4b ff d0 bd bl ffc0ac54 <_Thread_queue_Initialize> <== ALWAYS TAKEN Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0db9c: 39 60 00 00 li r11,0 THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_JOIN_AT_EXIT, 0 ); _Watchdog_Initialize( ffc0dba0: 81 3e 00 08 lwz r9,8(r30) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0dba4: 38 00 00 01 li r0,1 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0dba8: 91 7f 00 a4 stw r11,164(r31) the_watchdog->routine = routine; ffc0dbac: 3d 60 ff c1 lis r11,-63 ffc0dbb0: 39 6b dc 3c addi r11,r11,-9156 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0dbb4: 93 df 00 c0 stw r30,192(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0dbb8: 91 7f 00 b8 stw r11,184(r31) the_watchdog->id = id; ffc0dbbc: 91 3f 00 bc stw r9,188(r31) created->Object.id, created ); return true; } ffc0dbc0: 7c 03 03 78 mr r3,r0 ffc0dbc4: 80 01 00 1c lwz r0,28(r1) ffc0dbc8: 83 a1 00 0c lwz r29,12(r1) ffc0dbcc: 7c 08 03 a6 mtlr r0 ffc0dbd0: 83 c1 00 10 lwz r30,16(r1) ffc0dbd4: 83 e1 00 14 lwz r31,20(r1) ffc0dbd8: 38 21 00 18 addi r1,r1,24 ffc0dbdc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0da00 <_POSIX_Threads_Delete_extension>: */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { ffc0da00: 94 21 ff e8 stwu r1,-24(r1) ffc0da04: 7c 08 02 a6 mflr r0 api = deleted->API_Extensions[ THREAD_API_POSIX ]; /* * Run the POSIX cancellation handlers */ _POSIX_Threads_cancel_run( deleted ); ffc0da08: 7c 83 23 78 mr r3,r4 */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { ffc0da0c: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc0da10: 93 e1 00 14 stw r31,20(r1) ffc0da14: 7c 9f 23 78 mr r31,r4 Thread_Control *the_thread; POSIX_API_Control *api; void **value_ptr; api = deleted->API_Extensions[ THREAD_API_POSIX ]; ffc0da18: 83 c4 01 48 lwz r30,328(r4) */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { ffc0da1c: 90 01 00 1c stw r0,28(r1) ffc0da20: 93 81 00 08 stw r28,8(r1) /* * Wakeup all the tasks which joined with this one */ value_ptr = (void **) deleted->Wait.return_argument; while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) ffc0da24: 3b 9e 00 3c addi r28,r30,60 */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { ffc0da28: 93 a1 00 0c stw r29,12(r1) api = deleted->API_Extensions[ THREAD_API_POSIX ]; /* * Run the POSIX cancellation handlers */ _POSIX_Threads_cancel_run( deleted ); ffc0da2c: 48 00 28 e5 bl ffc10310 <_POSIX_Threads_cancel_run> <== ALWAYS TAKEN /* * Run all the key destructors */ _POSIX_Keys_Run_destructors( deleted ); ffc0da30: 7f e3 fb 78 mr r3,r31 ffc0da34: 48 00 29 71 bl ffc103a4 <_POSIX_Keys_Run_destructors> <== ALWAYS TAKEN /* * Wakeup all the tasks which joined with this one */ value_ptr = (void **) deleted->Wait.return_argument; ffc0da38: 83 bf 00 28 lwz r29,40(r31) while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) ffc0da3c: 48 00 00 0c b ffc0da48 <_POSIX_Threads_Delete_extension+0x48> <== ALWAYS TAKEN *(void **)the_thread->Wait.return_argument = value_ptr; ffc0da40: 81 23 00 28 lwz r9,40(r3) ffc0da44: 93 a9 00 00 stw r29,0(r9) /* * Wakeup all the tasks which joined with this one */ value_ptr = (void **) deleted->Wait.return_argument; while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) ffc0da48: 7f 83 e3 78 mr r3,r28 ffc0da4c: 4b ff cd 39 bl ffc0a784 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc0da50: 2c 03 00 00 cmpwi r3,0 ffc0da54: 40 82 ff ec bne+ ffc0da40 <_POSIX_Threads_Delete_extension+0x40> *(void **)the_thread->Wait.return_argument = value_ptr; if ( api->schedpolicy == SCHED_SPORADIC ) ffc0da58: 80 1e 00 7c lwz r0,124(r30) ffc0da5c: 2f 80 00 03 cmpwi cr7,r0,3 <== ALWAYS TAKEN ffc0da60: 40 be 00 0c bne+ cr7,ffc0da6c <_POSIX_Threads_Delete_extension+0x6c> (void) _Watchdog_Remove( &api->Sporadic_timer ); ffc0da64: 38 7e 00 9c addi r3,r30,156 ffc0da68: 4b ff df b1 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN deleted->API_Extensions[ THREAD_API_POSIX ] = NULL; ffc0da6c: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc0da70: 90 1f 01 48 stw r0,328(r31) (void) _Workspace_Free( api ); ffc0da74: 7f c3 f3 78 mr r3,r30 ffc0da78: 4b ff e1 9d bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN } ffc0da7c: 80 01 00 1c lwz r0,28(r1) ffc0da80: 83 81 00 08 lwz r28,8(r1) ffc0da84: 7c 08 03 a6 mtlr r0 ffc0da88: 83 a1 00 0c lwz r29,12(r1) ffc0da8c: 83 c1 00 10 lwz r30,16(r1) ffc0da90: 83 e1 00 14 lwz r31,20(r1) ffc0da94: 38 21 00 18 addi r1,r1,24 ffc0da98: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d9cc <_POSIX_Threads_Exitted_extension>: * This method is invoked each time a thread exits. */ void _POSIX_Threads_Exitted_extension( Thread_Control *executing ) { ffc0d9cc: 7c 08 02 a6 mflr r0 ffc0d9d0: 94 21 ff f8 stwu r1,-8(r1) ffc0d9d4: 90 01 00 0c stw r0,12(r1) /* * If the executing thread was not created with the POSIX API, then this * API do not get to define its exit behavior. */ if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API ) ffc0d9d8: 88 03 00 08 lbz r0,8(r3) ffc0d9dc: 54 00 07 7e clrlwi r0,r0,29 ffc0d9e0: 2f 80 00 03 cmpwi cr7,r0,3 ffc0d9e4: 40 be 00 0c bne+ cr7,ffc0d9f0 <_POSIX_Threads_Exitted_extension+0x24> pthread_exit( executing->Wait.return_argument ); ffc0d9e8: 80 63 00 28 lwz r3,40(r3) ffc0d9ec: 48 00 2d 8d bl ffc10778 <== ALWAYS TAKEN } ffc0d9f0: 80 01 00 0c lwz r0,12(r1) ffc0d9f4: 38 21 00 08 addi r1,r1,8 ffc0d9f8: 7c 08 03 a6 mtlr r0 ffc0d9fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d934 <_POSIX_Threads_Initialize_user_threads>: * * This routine creates and starts all configured user * initialzation threads. */ void _POSIX_Threads_Initialize_user_threads( void ) { ffc0d934: 7c 08 02 a6 mflr r0 ffc0d938: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN if ( _POSIX_Threads_Initialize_user_threads_p ) ffc0d93c: 3d 20 00 00 lis r9,0 * * This routine creates and starts all configured user * initialzation threads. */ void _POSIX_Threads_Initialize_user_threads( void ) { ffc0d940: 90 01 00 0c stw r0,12(r1) if ( _POSIX_Threads_Initialize_user_threads_p ) ffc0d944: 80 09 27 14 lwz r0,10004(r9) ffc0d948: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d94c: 41 9e 00 0c beq- cr7,ffc0d958 <_POSIX_Threads_Initialize_user_threads+0x24> (*_POSIX_Threads_Initialize_user_threads_p)(); ffc0d950: 7c 09 03 a6 mtctr r0 ffc0d954: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0d958: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0d95c: 38 21 00 08 addi r1,r1,8 ffc0d960: 7c 08 03 a6 mtlr r0 ffc0d964: 4e 80 00 20 blr <== ALWAYS TAKEN ffc082b4 <_POSIX_Threads_Initialize_user_threads_body>: * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc082b4: 94 21 ff a0 stwu r1,-96(r1) ffc082b8: 7c 08 02 a6 mflr r0 uint32_t maximum; posix_initialization_threads_table *user_threads; pthread_t thread_id; pthread_attr_t attr; user_threads = Configuration_POSIX_API.User_initialization_threads_table; ffc082bc: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc082c0: 90 01 00 64 stw r0,100(r1) uint32_t maximum; posix_initialization_threads_table *user_threads; pthread_t thread_id; pthread_attr_t attr; user_threads = Configuration_POSIX_API.User_initialization_threads_table; ffc082c4: 39 29 20 84 addi r9,r9,8324 * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc082c8: 93 c1 00 58 stw r30,88(r1) uint32_t maximum; posix_initialization_threads_table *user_threads; pthread_t thread_id; pthread_attr_t attr; user_threads = Configuration_POSIX_API.User_initialization_threads_table; ffc082cc: 83 c9 00 34 lwz r30,52(r9) <== ALWAYS TAKEN * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc082d0: 93 81 00 50 stw r28,80(r1) pthread_attr_t attr; user_threads = Configuration_POSIX_API.User_initialization_threads_table; maximum = Configuration_POSIX_API.number_of_initialization_threads; if ( !user_threads || maximum == 0 ) ffc082d4: 2f 9e 00 00 cmpwi cr7,r30,0 * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc082d8: 93 61 00 4c stw r27,76(r1) ffc082dc: 93 a1 00 54 stw r29,84(r1) ffc082e0: 93 e1 00 5c stw r31,92(r1) posix_initialization_threads_table *user_threads; pthread_t thread_id; pthread_attr_t attr; user_threads = Configuration_POSIX_API.User_initialization_threads_table; maximum = Configuration_POSIX_API.number_of_initialization_threads; ffc082e4: 83 89 00 30 lwz r28,48(r9) if ( !user_threads || maximum == 0 ) ffc082e8: 41 9e 00 70 beq- cr7,ffc08358 <_POSIX_Threads_Initialize_user_threads_body+0xa4> <== NEVER TAKEN ffc082ec: 2f 9c 00 00 cmpwi cr7,r28,0 ffc082f0: 41 9e 00 68 beq- cr7,ffc08358 <_POSIX_Threads_Initialize_user_threads_body+0xa4> <== NEVER TAKEN ffc082f4: 3b a0 00 00 li r29,0 for ( index=0 ; index < maximum ; index++ ) { /* * There is no way for these calls to fail in this situation. */ (void) pthread_attr_init( &attr ); ffc082f8: 3b e1 00 0c addi r31,r1,12 (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size); status = pthread_create( ffc082fc: 3b 61 00 08 addi r27,r1,8 for ( index=0 ; index < maximum ; index++ ) { /* * There is no way for these calls to fail in this situation. */ (void) pthread_attr_init( &attr ); ffc08300: 7f e3 fb 78 mr r3,r31 ffc08304: 48 00 6f a5 bl ffc0f2a8 <== ALWAYS TAKEN (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); ffc08308: 38 80 00 02 li r4,2 ffc0830c: 7f e3 fb 78 mr r3,r31 ffc08310: 48 00 6f d9 bl ffc0f2e8 <== ALWAYS TAKEN (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size); ffc08314: 80 9e 00 04 lwz r4,4(r30) ffc08318: 7f e3 fb 78 mr r3,r31 ffc0831c: 48 00 70 05 bl ffc0f320 <== ALWAYS TAKEN status = pthread_create( ffc08320: 80 be 00 00 lwz r5,0(r30) ffc08324: 7f 63 db 78 mr r3,r27 ffc08328: 7f e4 fb 78 mr r4,r31 ffc0832c: 38 c0 00 00 li r6,0 ffc08330: 4b ff fb d1 bl ffc07f00 <== ALWAYS TAKEN &thread_id, &attr, user_threads[ index ].thread_entry, NULL ); if ( status ) ffc08334: 7c 65 1b 79 mr. r5,r3 ffc08338: 41 a2 00 10 beq+ ffc08348 <_POSIX_Threads_Initialize_user_threads_body+0x94> _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status ); ffc0833c: 38 60 00 02 li r3,2 ffc08340: 38 80 00 01 li r4,1 ffc08344: 48 00 24 4d bl ffc0a790 <_Internal_error_Occurred> <== ALWAYS TAKEN * * Setting the attributes explicitly is critical, since we don't want * to inherit the idle tasks attributes. */ for ( index=0 ; index < maximum ; index++ ) { ffc08348: 3b bd 00 01 addi r29,r29,1 ffc0834c: 7f 9d e0 40 cmplw cr7,r29,r28 ffc08350: 3b de 00 08 addi r30,r30,8 ffc08354: 41 9c ff ac blt+ cr7,ffc08300 <_POSIX_Threads_Initialize_user_threads_body+0x4c> <== NEVER TAKEN NULL ); if ( status ) _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status ); } } ffc08358: 80 01 00 64 lwz r0,100(r1) <== ALWAYS TAKEN ffc0835c: 83 61 00 4c lwz r27,76(r1) ffc08360: 7c 08 03 a6 mtlr r0 ffc08364: 83 81 00 50 lwz r28,80(r1) ffc08368: 83 a1 00 54 lwz r29,84(r1) ffc0836c: 83 c1 00 58 lwz r30,88(r1) ffc08370: 83 e1 00 5c lwz r31,92(r1) ffc08374: 38 21 00 60 addi r1,r1,96 <== ALWAYS TAKEN ffc08378: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d968 <_POSIX_Threads_Manager_initialization>: * _POSIX_Threads_Manager_initialization * * This routine initializes all threads manager related data structures. */ void _POSIX_Threads_Manager_initialization(void) { ffc0d968: 94 21 ff f0 stwu r1,-16(r1) _Objects_Initialize_information( ffc0d96c: 3d 20 00 00 lis r9,0 * _POSIX_Threads_Manager_initialization * * This routine initializes all threads manager related data structures. */ void _POSIX_Threads_Manager_initialization(void) { ffc0d970: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0d974: 3c 60 00 00 lis r3,0 ffc0d978: 80 c9 28 40 lwz r6,10304(r9) ffc0d97c: 38 80 00 03 li r4,3 * _POSIX_Threads_Manager_initialization * * This routine initializes all threads manager related data structures. */ void _POSIX_Threads_Manager_initialization(void) { ffc0d980: 93 e1 00 0c stw r31,12(r1) RTEMS_INLINE_ROUTINE void _User_extensions_Add_API_set( User_extensions_Control *extension ) { _User_extensions_Add_set( extension ); ffc0d984: 3f e0 00 00 lis r31,0 _Objects_Initialize_information( ffc0d988: 38 a0 00 01 li r5,1 ffc0d98c: 38 e0 01 58 li r7,344 <== ALWAYS TAKEN * _POSIX_Threads_Manager_initialization * * This routine initializes all threads manager related data structures. */ void _POSIX_Threads_Manager_initialization(void) { ffc0d990: 90 01 00 14 stw r0,20(r1) _Objects_Initialize_information( ffc0d994: 39 00 00 01 li r8,1 ffc0d998: 39 20 00 ff li r9,255 ffc0d99c: 3b ff 21 78 addi r31,r31,8568 ffc0d9a0: 38 63 2e 78 addi r3,r3,11896 ffc0d9a4: 4b ff bf 29 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN ffc0d9a8: 7f e3 fb 78 mr r3,r31 ffc0d9ac: 48 00 17 71 bl ffc0f11c <_User_extensions_Add_set> <== ALWAYS TAKEN /* * Add all the extensions for this API */ _User_extensions_Add_API_set( &_POSIX_Threads_User_extensions ); _API_extensions_Add( &_POSIX_Threads_API_extensions ); ffc0d9b0: 38 7f 00 34 addi r3,r31,52 ffc0d9b4: 4b ff ad 49 bl ffc086fc <_API_extensions_Add> <== ALWAYS TAKEN /* * If we supported MP, then here we would ... * Register the MP Process Packet routine. */ } ffc0d9b8: 80 01 00 14 lwz r0,20(r1) ffc0d9bc: 83 e1 00 0c lwz r31,12(r1) ffc0d9c0: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0d9c4: 7c 08 03 a6 mtlr r0 ffc0d9c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dc3c <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) { ffc0dc3c: 94 21 ff f0 stwu r1,-16(r1) ffc0dc40: 7c 08 02 a6 mflr r0 ffc0dc44: 90 01 00 14 stw r0,20(r1) ffc0dc48: 93 e1 00 0c stw r31,12(r1) Thread_Control *the_thread; POSIX_API_Control *api; the_thread = argument; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0dc4c: 83 e4 01 48 lwz r31,328(r4) */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) { ffc0dc50: 93 c1 00 08 stw r30,8(r1) ffc0dc54: 7c 9e 23 78 mr r30,r4 the_thread = argument; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.ss_initial_budget ); ffc0dc58: 38 7f 00 90 addi r3,r31,144 ffc0dc5c: 48 00 14 4d bl ffc0f0a8 <_Timespec_To_ticks> <== ALWAYS TAKEN */ #if 0 printk( "TSR %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { ffc0dc60: 80 1e 00 1c lwz r0,28(r30) ffc0dc64: 3d 20 00 00 lis r9,0 ffc0dc68: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dc6c: 88 89 26 a4 lbz r4,9892(r9) ffc0dc70: 80 1f 00 98 lwz r0,152(r31) api = the_thread->API_Extensions[ THREAD_API_POSIX ]; /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.ss_initial_budget ); the_thread->cpu_time_budget = ticks; ffc0dc74: 90 7e 00 78 stw r3,120(r30) ffc0dc78: 7c 80 20 50 subf r4,r0,r4 new_priority = _POSIX_Priority_To_core( api->ss_high_priority ); the_thread->real_priority = new_priority; ffc0dc7c: 90 9e 00 18 stw r4,24(r30) */ #if 0 printk( "TSR %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { ffc0dc80: 40 9e 00 1c bne- cr7,ffc0dc9c <_POSIX_Threads_Sporadic_budget_TSR+0x60> <== NEVER TAKEN /* * If this would make them less important, then do not change it. */ if ( the_thread->current_priority > new_priority ) { ffc0dc84: 80 1e 00 14 lwz r0,20(r30) ffc0dc88: 7f 80 20 40 cmplw cr7,r0,r4 ffc0dc8c: 40 bd 00 10 ble+ cr7,ffc0dc9c <_POSIX_Threads_Sporadic_budget_TSR+0x60> _Thread_Change_priority( the_thread, new_priority, true ); ffc0dc90: 7f c3 f3 78 mr r3,r30 ffc0dc94: 38 a0 00 01 li r5,1 ffc0dc98: 4b ff c0 2d bl ffc09cc4 <_Thread_Change_priority> <== ALWAYS TAKEN #endif } } /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.ss_replenish_period ); ffc0dc9c: 38 7f 00 88 addi r3,r31,136 ffc0dca0: 48 00 14 09 bl ffc0f0a8 <_Timespec_To_ticks> <== ALWAYS TAKEN ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0dca4: 38 9f 00 9c addi r4,r31,156 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0dca8: 90 7f 00 a8 stw r3,168(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0dcac: 3c 60 00 00 lis r3,0 ffc0dcb0: 38 63 2d 48 addi r3,r3,11592 ffc0dcb4: 4b ff dc 0d bl ffc0b8c0 <_Watchdog_Insert> <== ALWAYS TAKEN _Watchdog_Insert_ticks( &api->Sporadic_timer, ticks ); } ffc0dcb8: 80 01 00 14 lwz r0,20(r1) ffc0dcbc: 83 c1 00 08 lwz r30,8(r1) ffc0dcc0: 7c 08 03 a6 mtlr r0 ffc0dcc4: 83 e1 00 0c lwz r31,12(r1) ffc0dcc8: 38 21 00 10 addi r1,r1,16 ffc0dccc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dbe0 <_POSIX_Threads_Sporadic_budget_callout>: * _POSIX_Threads_Sporadic_budget_callout */ void _POSIX_Threads_Sporadic_budget_callout( Thread_Control *the_thread ) { ffc0dbe0: 7c 08 02 a6 mflr r0 ffc0dbe4: 94 21 ff f8 stwu r1,-8(r1) RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); ffc0dbe8: 3d 40 00 00 lis r10,0 ffc0dbec: 90 01 00 0c stw r0,12(r1) */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { ffc0dbf0: 80 03 00 1c lwz r0,28(r3) ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0dbf4: 81 63 01 48 lwz r11,328(r3) */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { ffc0dbf8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dbfc: 88 8a 26 a4 lbz r4,9892(r10) ffc0dc00: 80 0b 00 84 lwz r0,132(r11) ffc0dc04: 7c 80 20 50 subf r4,r0,r4 /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ ffc0dc08: 38 00 ff ff li r0,-1 new_priority = _POSIX_Priority_To_core( api->schedparam.ss_low_priority ); the_thread->real_priority = new_priority; ffc0dc0c: 90 83 00 18 stw r4,24(r3) /* * This will prevent the thread from consuming its entire "budget" * while at low priority. */ the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */ ffc0dc10: 90 03 00 78 stw r0,120(r3) */ #if 0 printk( "callout %d %d %d\n", the_thread->resource_count, the_thread->current_priority, new_priority ); #endif if ( the_thread->resource_count == 0 ) { ffc0dc14: 40 9e 00 18 bne- cr7,ffc0dc2c <_POSIX_Threads_Sporadic_budget_callout+0x4c> <== NEVER TAKEN /* * Make sure we are actually lowering it. If they have lowered it * to logically lower than ss_low_priority, then we do not want to * change it. */ if ( the_thread->current_priority < new_priority ) { ffc0dc18: 80 03 00 14 lwz r0,20(r3) ffc0dc1c: 7f 80 20 40 cmplw cr7,r0,r4 ffc0dc20: 40 bc 00 0c bge+ cr7,ffc0dc2c <_POSIX_Threads_Sporadic_budget_callout+0x4c> _Thread_Change_priority( the_thread, new_priority, true ); ffc0dc24: 38 a0 00 01 li r5,1 ffc0dc28: 4b ff c0 9d bl ffc09cc4 <_Thread_Change_priority> <== ALWAYS TAKEN #if 0 printk( "lower priority\n" ); #endif } } } ffc0dc2c: 80 01 00 0c lwz r0,12(r1) ffc0dc30: 38 21 00 08 addi r1,r1,8 ffc0dc34: 7c 08 03 a6 mtlr r0 ffc0dc38: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10310 <_POSIX_Threads_cancel_run>: #include void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) { ffc10310: 94 21 ff e8 stwu r1,-24(r1) ffc10314: 7c 08 02 a6 mflr r0 ffc10318: 90 01 00 1c stw r0,28(r1) thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE; ffc1031c: 38 00 00 01 li r0,1 #include void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) { ffc10320: 93 c1 00 10 stw r30,16(r1) POSIX_Cancel_Handler_control *handler; Chain_Control *handler_stack; POSIX_API_Control *thread_support; ISR_Level level; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc10324: 83 c3 01 48 lwz r30,328(r3) #include void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) { ffc10328: 93 a1 00 0c stw r29,12(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc1032c: 3b be 00 dc addi r29,r30,220 ffc10330: 93 e1 00 14 stw r31,20(r1) thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE; ffc10334: 90 1e 00 cc stw r0,204(r30) while ( !_Chain_Is_empty( handler_stack ) ) { ffc10338: 48 00 00 44 b ffc1037c <_POSIX_Threads_cancel_run+0x6c> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1033c: 7c 00 00 a6 mfmsr r0 ffc10340: 7d 30 42 a6 mfsprg r9,0 ffc10344: 7c 09 48 78 andc r9,r0,r9 ffc10348: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); handler = (POSIX_Cancel_Handler_control *) ffc1034c: 83 fd 00 04 lwz r31,4(r29) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc10350: 81 3f 00 00 lwz r9,0(r31) previous = the_node->previous; ffc10354: 81 7f 00 04 lwz r11,4(r31) next->previous = previous; previous->next = next; ffc10358: 91 2b 00 00 stw r9,0(r11) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc1035c: 91 69 00 04 stw r11,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc10360: 7c 00 01 24 mtmsr r0 _Chain_Tail( handler_stack )->previous; _Chain_Extract_unprotected( &handler->Node ); _ISR_Enable( level ); (*handler->routine)( handler->arg ); ffc10364: 80 1f 00 08 lwz r0,8(r31) ffc10368: 80 7f 00 0c lwz r3,12(r31) ffc1036c: 7c 09 03 a6 mtctr r0 ffc10370: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Workspace_Free( handler ); ffc10374: 7f e3 fb 78 mr r3,r31 ffc10378: 4b ff b8 9d bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN POSIX_API_Control *thread_support; ISR_Level level; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; ffc1037c: 80 1e 00 d8 lwz r0,216(r30) ffc10380: 7f 80 e8 00 cmpw cr7,r0,r29 <== ALWAYS TAKEN ffc10384: 40 9e ff b8 bne+ cr7,ffc1033c <_POSIX_Threads_cancel_run+0x2c> (*handler->routine)( handler->arg ); _Workspace_Free( handler ); } } ffc10388: 80 01 00 1c lwz r0,28(r1) ffc1038c: 83 a1 00 0c lwz r29,12(r1) ffc10390: 7c 08 03 a6 mtlr r0 ffc10394: 83 c1 00 10 lwz r30,16(r1) ffc10398: 83 e1 00 14 lwz r31,20(r1) ffc1039c: 38 21 00 18 addi r1,r1,24 ffc103a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ee7c <_POSIX_Timer_Insert_helper>: Watchdog_Interval ticks, Objects_Id id, Watchdog_Service_routine_entry TSR, void *arg ) { ffc0ee7c: 94 21 ff e0 stwu r1,-32(r1) ffc0ee80: 7c 08 02 a6 mflr r0 ffc0ee84: 93 41 00 08 stw r26,8(r1) ffc0ee88: 7c da 33 78 mr r26,r6 ffc0ee8c: 93 61 00 0c stw r27,12(r1) ffc0ee90: 7c fb 3b 78 mr r27,r7 ffc0ee94: 93 a1 00 14 stw r29,20(r1) ffc0ee98: 7c 7d 1b 78 mr r29,r3 ffc0ee9c: 93 c1 00 18 stw r30,24(r1) ffc0eea0: 7c be 2b 78 mr r30,r5 ffc0eea4: 93 e1 00 1c stw r31,28(r1) ffc0eea8: 7c 9f 23 78 mr r31,r4 ffc0eeac: 90 01 00 24 stw r0,36(r1) ffc0eeb0: 93 81 00 10 stw r28,16(r1) ISR_Level level; (void) _Watchdog_Remove( timer ); ffc0eeb4: 4b ff da 75 bl ffc0c928 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0eeb8: 7f 80 00 a6 mfmsr r28 ffc0eebc: 7c 10 42 a6 mfsprg r0,0 ffc0eec0: 7f 80 00 78 andc r0,r28,r0 ffc0eec4: 7c 00 01 24 mtmsr r0 /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( timer->state != WATCHDOG_INACTIVE ) { ffc0eec8: 80 1d 00 08 lwz r0,8(r29) ffc0eecc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0eed0: 41 9e 00 10 beq- cr7,ffc0eee0 <_POSIX_Timer_Insert_helper+0x64> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0eed4: 7f 80 01 24 mtmsr r28 ffc0eed8: 38 60 00 00 li r3,0 _ISR_Enable( level ); return false; ffc0eedc: 48 00 00 30 b ffc0ef0c <_POSIX_Timer_Insert_helper+0x90> <== ALWAYS TAKEN Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0eee0: 90 1d 00 08 stw r0,8(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0eee4: 3c 60 00 00 lis r3,0 ffc0eee8: 38 63 2d 88 addi r3,r3,11656 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0eeec: 93 5d 00 1c stw r26,28(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0eef0: 7f a4 eb 78 mr r4,r29 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc0eef4: 93 dd 00 20 stw r30,32(r29) the_watchdog->user_data = user_data; ffc0eef8: 93 7d 00 24 stw r27,36(r29) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0eefc: 93 fd 00 0c stw r31,12(r29) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0ef00: 4b ff d8 d1 bl ffc0c7d0 <_Watchdog_Insert> <== ALWAYS TAKEN ffc0ef04: 7f 80 01 24 mtmsr r28 ffc0ef08: 38 60 00 01 li r3,1 */ _Watchdog_Initialize( timer, TSR, id, arg ); _Watchdog_Insert_ticks( timer, ticks ); _ISR_Enable( level ); return true; } ffc0ef0c: 80 01 00 24 lwz r0,36(r1) ffc0ef10: 83 41 00 08 lwz r26,8(r1) ffc0ef14: 7c 08 03 a6 mtlr r0 ffc0ef18: 83 61 00 0c lwz r27,12(r1) ffc0ef1c: 83 81 00 10 lwz r28,16(r1) ffc0ef20: 83 a1 00 14 lwz r29,20(r1) ffc0ef24: 83 c1 00 18 lwz r30,24(r1) ffc0ef28: 83 e1 00 1c lwz r31,28(r1) ffc0ef2c: 38 21 00 20 addi r1,r1,32 ffc0ef30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dcd0 <_POSIX_Timer_Manager_initialization>: * the timers are stored */ void _POSIX_Timer_Manager_initialization(void) { _Objects_Initialize_information( ffc0dcd0: 3d 20 00 00 lis r9,0 * Initialize the internal structure in which the data of all * the timers are stored */ void _POSIX_Timer_Manager_initialization(void) { ffc0dcd4: 94 21 ff f8 stwu r1,-8(r1) ffc0dcd8: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0dcdc: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN ffc0dce0: 80 c9 28 50 lwz r6,10320(r9) <== ALWAYS TAKEN ffc0dce4: 38 63 2f 38 addi r3,r3,12088 ffc0dce8: 38 80 00 03 li r4,3 <== ALWAYS TAKEN * Initialize the internal structure in which the data of all * the timers are stored */ void _POSIX_Timer_Manager_initialization(void) { ffc0dcec: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0dcf0: 38 a0 00 09 li r5,9 ffc0dcf4: 38 e0 00 74 li r7,116 ffc0dcf8: 39 00 00 01 li r8,1 ffc0dcfc: 39 20 00 ff li r9,255 ffc0dd00: 4b ff bb cd bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0dd04: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0dd08: 38 21 00 08 addi r1,r1,8 ffc0dd0c: 7c 08 03 a6 mtlr r0 ffc0dd10: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07f78 <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { ffc07f78: 94 21 ff f0 stwu r1,-16(r1) ffc07f7c: 7c 08 02 a6 mflr r0 ffc07f80: 90 01 00 14 stw r0,20(r1) /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc07f84: 80 04 00 54 lwz r0,84(r4) bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; ffc07f88: 81 24 00 68 lwz r9,104(r4) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc07f8c: 2f 80 00 00 cmpwi cr7,r0,0 * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { ffc07f90: 93 e1 00 0c stw r31,12(r1) bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; ffc07f94: 38 09 00 01 addi r0,r9,1 * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) { ffc07f98: 7c 9f 23 78 mr r31,r4 bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; ffc07f9c: 90 04 00 68 stw r0,104(r4) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc07fa0: 40 9e 00 10 bne- cr7,ffc07fb0 <_POSIX_Timer_TSR+0x38> ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { ffc07fa4: 80 04 00 58 lwz r0,88(r4) ffc07fa8: 2f 80 00 00 cmpwi cr7,r0,0 ffc07fac: 41 9e 00 38 beq- cr7,ffc07fe4 <_POSIX_Timer_TSR+0x6c> <== NEVER TAKEN activated = _POSIX_Timer_Insert_helper( ffc07fb0: 80 9f 00 64 lwz r4,100(r31) ffc07fb4: 3c c0 ff c0 lis r6,-64 ffc07fb8: 80 bf 00 08 lwz r5,8(r31) ffc07fbc: 38 c6 7f 78 addi r6,r6,32632 ffc07fc0: 38 7f 00 10 addi r3,r31,16 ffc07fc4: 7f e7 fb 78 mr r7,r31 ffc07fc8: 48 00 6e b5 bl ffc0ee7c <_POSIX_Timer_Insert_helper> <== ALWAYS TAKEN ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) ffc07fcc: 2f 83 00 00 cmpwi cr7,r3,0 ffc07fd0: 41 be 00 30 beq+ cr7,ffc08000 <_POSIX_Timer_TSR+0x88> <== NEVER TAKEN return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); ffc07fd4: 38 7f 00 6c addi r3,r31,108 ffc07fd8: 48 00 1b 79 bl ffc09b50 <_TOD_Get> <== ALWAYS TAKEN /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; ffc07fdc: 38 00 00 03 li r0,3 ffc07fe0: 48 00 00 08 b ffc07fe8 <_POSIX_Timer_TSR+0x70> <== ALWAYS TAKEN } else { /* Indicates that the timer is stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; ffc07fe4: 38 00 00 04 li r0,4 <== NOT EXECUTED ffc07fe8: 98 1f 00 3c stb r0,60(r31) /* * The sending of the signal to the process running the handling function * specified for that signal is simulated */ if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) { ffc07fec: 80 7f 00 38 lwz r3,56(r31) ffc07ff0: 80 9f 00 44 lwz r4,68(r31) ffc07ff4: 48 00 69 19 bl ffc0e90c <== ALWAYS TAKEN } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; ffc07ff8: 38 00 00 00 li r0,0 ffc07ffc: 90 1f 00 68 stw r0,104(r31) } ffc08000: 80 01 00 14 lwz r0,20(r1) ffc08004: 83 e1 00 0c lwz r31,12(r1) ffc08008: 38 21 00 10 addi r1,r1,16 ffc0800c: 7c 08 03 a6 mtlr r0 ffc08010: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d8dc <_POSIX_signals_Abnormal_termination_handler>: sigset_t _POSIX_signals_Pending; void _POSIX_signals_Abnormal_termination_handler( int signo __attribute__((unused)) ) { ffc0d8dc: 94 21 ff f8 stwu r1,-8(r1) ffc0d8e0: 7c 08 02 a6 mflr r0 exit( 1 ); ffc0d8e4: 38 60 00 01 li r3,1 sigset_t _POSIX_signals_Pending; void _POSIX_signals_Abnormal_termination_handler( int signo __attribute__((unused)) ) { ffc0d8e8: 90 01 00 0c stw r0,12(r1) exit( 1 ); ffc0d8ec: 48 00 43 2d bl ffc11c18 <== ALWAYS TAKEN ffc102e8 <_POSIX_signals_Alarm_TSR>: void _POSIX_signals_Alarm_TSR( Objects_Id id __attribute__((unused)), void *argument __attribute__((unused)) ) { ffc102e8: 94 21 ff f8 stwu r1,-8(r1) ffc102ec: 7c 08 02 a6 mflr r0 ffc102f0: 90 01 00 0c stw r0,12(r1) int status; status = kill( getpid(), SIGALRM ); ffc102f4: 4b ff ff 1d bl ffc10210 <== ALWAYS TAKEN ffc102f8: 38 80 00 0e li r4,14 ffc102fc: 48 00 01 9d bl ffc10498 <== ALWAYS TAKEN /* XXX can't print from an ISR, should this be fatal? */ } ffc10300: 80 01 00 0c lwz r0,12(r1) ffc10304: 38 21 00 08 addi r1,r1,8 ffc10308: 7c 08 03 a6 mtlr r0 ffc1030c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc104bc <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) { ffc104bc: 94 21 ff d8 stwu r1,-40(r1) ffc104c0: 7c 08 02 a6 mflr r0 ffc104c4: 7c a6 2b 78 mr r6,r5 ffc104c8: 93 a1 00 1c stw r29,28(r1) siginfo_t siginfo_struct; sigset_t saved_signals_blocked; if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct, ffc104cc: 3b a1 00 08 addi r29,r1,8 ffc104d0: 7f a5 eb 78 mr r5,r29 ffc104d4: 38 e0 00 01 li r7,1 bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) { ffc104d8: 93 c1 00 20 stw r30,32(r1) ffc104dc: 7c 9e 23 78 mr r30,r4 ffc104e0: 93 e1 00 24 stw r31,36(r1) ffc104e4: 7c 7f 1b 78 mr r31,r3 ffc104e8: 90 01 00 2c stw r0,44(r1) ffc104ec: 93 81 00 18 stw r28,24(r1) siginfo_t siginfo_struct; sigset_t saved_signals_blocked; if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct, ffc104f0: 48 00 00 9d bl ffc1058c <_POSIX_signals_Clear_signals> <== ALWAYS TAKEN ffc104f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc104f8: 41 9e 00 70 beq- cr7,ffc10568 <_POSIX_signals_Check_signal+0xac> #endif /* * Just to prevent sending a signal which is currently being ignored. */ if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN ) ffc104fc: 1d 7e 00 0c mulli r11,r30,12 ffc10500: 3d 40 00 00 lis r10,0 ffc10504: 39 4a 31 70 addi r10,r10,12656 ffc10508: 7d 2a 5a 14 add r9,r10,r11 ffc1050c: 80 09 00 08 lwz r0,8(r9) ffc10510: 2f 80 00 01 cmpwi cr7,r0,1 ffc10514: 41 9e 00 54 beq- cr7,ffc10568 <_POSIX_signals_Check_signal+0xac> <== NEVER TAKEN api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { ffc10518: 7d 6a 58 2e lwzx r11,r10,r11 /* * Block the signals requested in sa_mask */ saved_signals_blocked = api->signals_blocked; api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; ffc1051c: 81 29 00 04 lwz r9,4(r9) /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { ffc10520: 2f 8b 00 02 cmpwi cr7,r11,2 return false; /* * Block the signals requested in sa_mask */ saved_signals_blocked = api->signals_blocked; ffc10524: 83 9f 00 c4 lwz r28,196(r31) api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; ffc10528: 7d 29 e3 78 or r9,r9,r28 ffc1052c: 91 3f 00 c4 stw r9,196(r31) /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { ffc10530: 40 be 00 1c bne+ cr7,ffc1054c <_POSIX_signals_Check_signal+0x90> case SA_SIGINFO: (*_POSIX_signals_Vectors[ signo ].sa_sigaction)( ffc10534: 7f c3 f3 78 mr r3,r30 ffc10538: 7c 09 03 a6 mtctr r0 ffc1053c: 7f a4 eb 78 mr r4,r29 ffc10540: 38 a0 00 00 li r5,0 ffc10544: 4e 80 04 21 bctrl <== ALWAYS TAKEN signo, &siginfo_struct, NULL /* context is undefined per 1003.1b-1993, p. 66 */ ); break; ffc10548: 48 00 00 14 b ffc1055c <_POSIX_signals_Check_signal+0xa0> <== ALWAYS TAKEN default: (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo ); ffc1054c: 7f c3 f3 78 mr r3,r30 ffc10550: 7c 09 03 a6 mtctr r0 ffc10554: 4c c6 31 82 crclr 4*cr1+eq ffc10558: 4e 80 04 21 bctrl <== ALWAYS TAKEN } /* * Restore the previous set of blocked signals */ api->signals_blocked = saved_signals_blocked; ffc1055c: 93 9f 00 c4 stw r28,196(r31) ffc10560: 38 60 00 01 li r3,1 return true; ffc10564: 48 00 00 08 b ffc1056c <_POSIX_signals_Check_signal+0xb0> <== ALWAYS TAKEN ffc10568: 38 60 00 00 li r3,0 } ffc1056c: 80 01 00 2c lwz r0,44(r1) ffc10570: 83 81 00 18 lwz r28,24(r1) ffc10574: 7c 08 03 a6 mtlr r0 ffc10578: 83 a1 00 1c lwz r29,28(r1) ffc1057c: 83 c1 00 20 lwz r30,32(r1) ffc10580: 83 e1 00 24 lwz r31,36(r1) <== ALWAYS TAKEN ffc10584: 38 21 00 28 addi r1,r1,40 ffc10588: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11860 <_POSIX_signals_Clear_process_signals>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc11860: 7d 60 00 a6 mfmsr r11 ffc11864: 7c 10 42 a6 mfsprg r0,0 ffc11868: 7d 60 00 78 andc r0,r11,r0 ffc1186c: 7c 00 01 24 mtmsr r0 mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { ffc11870: 3d 20 00 00 lis r9,0 ffc11874: 1c 03 00 0c mulli r0,r3,12 ffc11878: 39 29 31 70 addi r9,r9,12656 ffc1187c: 7d 29 00 2e lwzx r9,r9,r0 ffc11880: 2f 89 00 02 cmpwi cr7,r9,2 ffc11884: 40 be 00 20 bne+ cr7,ffc118a4 <_POSIX_signals_Clear_process_signals+0x44> if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) ffc11888: 3d 20 00 00 lis r9,0 ffc1188c: 39 29 33 3c addi r9,r9,13116 ffc11890: 7d 49 00 2e lwzx r10,r9,r0 ffc11894: 7d 29 02 14 add r9,r9,r0 ffc11898: 38 09 00 04 addi r0,r9,4 ffc1189c: 7f 8a 00 00 cmpw cr7,r10,r0 ffc118a0: 40 be 00 38 bne+ cr7,ffc118d8 <_POSIX_signals_Clear_process_signals+0x78> <== NEVER TAKEN clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; ffc118a4: 3d 20 00 00 lis r9,0 ffc118a8: 80 09 27 e4 lwz r0,10212(r9) ffc118ac: 38 63 ff ff addi r3,r3,-1 <== ALWAYS TAKEN ffc118b0: 39 40 ff fe li r10,-2 ffc118b4: 5d 43 18 3e rotlw r3,r10,r3 ffc118b8: 7c 63 00 38 and r3,r3,r0 if ( !_POSIX_signals_Pending ) ffc118bc: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; ffc118c0: 90 69 27 e4 stw r3,10212(r9) if ( !_POSIX_signals_Pending ) ffc118c4: 40 9e 00 14 bne- cr7,ffc118d8 <_POSIX_signals_Clear_process_signals+0x78> <== NEVER TAKEN _Thread_Do_post_task_switch_extension--; ffc118c8: 3d 20 00 00 lis r9,0 ffc118cc: 81 49 27 a0 lwz r10,10144(r9) ffc118d0: 38 0a ff ff addi r0,r10,-1 ffc118d4: 90 09 27 a0 stw r0,10144(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc118d8: 7d 60 01 24 mtmsr r11 } _ISR_Enable( level ); } ffc118dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1058c <_POSIX_signals_Clear_signals>: /* set blocked signals based on if checking for them, SIGNAL_ALL_MASK * insures that no signals are blocked and all are checked. */ if ( check_blocked ) ffc1058c: 2f 87 00 00 cmpwi cr7,r7,0 int signo, siginfo_t *info, bool is_global, bool check_blocked ) { ffc10590: 94 21 ff e8 stwu r1,-24(r1) ffc10594: 7c 08 02 a6 mflr r0 static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); ffc10598: 39 20 00 01 li r9,1 ffc1059c: 93 c1 00 10 stw r30,16(r1) ffc105a0: 7c be 2b 78 mr r30,r5 ffc105a4: 90 01 00 1c stw r0,28(r1) ffc105a8: 38 04 ff ff addi r0,r4,-1 ffc105ac: 7d 20 00 30 slw r0,r9,r0 ffc105b0: 93 e1 00 14 stw r31,20(r1) /* set blocked signals based on if checking for them, SIGNAL_ALL_MASK * insures that no signals are blocked and all are checked. */ if ( check_blocked ) ffc105b4: 39 20 ff ff li r9,-1 int signo, siginfo_t *info, bool is_global, bool check_blocked ) { ffc105b8: 7c 9f 23 78 mr r31,r4 ffc105bc: 93 81 00 08 stw r28,8(r1) ffc105c0: 93 a1 00 0c stw r29,12(r1) /* set blocked signals based on if checking for them, SIGNAL_ALL_MASK * insures that no signals are blocked and all are checked. */ if ( check_blocked ) ffc105c4: 41 9e 00 0c beq- cr7,ffc105d0 <_POSIX_signals_Clear_signals+0x44> signals_blocked = ~api->signals_blocked; ffc105c8: 81 23 00 c4 lwz r9,196(r3) ffc105cc: 7d 29 48 f8 not r9,r9 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc105d0: 7f 80 00 a6 mfmsr r28 ffc105d4: 7d 70 42 a6 mfsprg r11,0 ffc105d8: 7f 8b 58 78 andc r11,r28,r11 ffc105dc: 7d 60 01 24 mtmsr r11 /* XXX is this right for siginfo type signals? */ /* XXX are we sure they can be cleared the same way? */ _ISR_Disable( level ); if ( is_global ) { ffc105e0: 2f 86 00 00 cmpwi cr7,r6,0 ffc105e4: 41 9e 00 b4 beq- cr7,ffc10698 <_POSIX_signals_Clear_signals+0x10c> if ( mask & (_POSIX_signals_Pending & signals_blocked) ) { ffc105e8: 3d 60 00 00 lis r11,0 ffc105ec: 81 6b 27 e4 lwz r11,10212(r11) ffc105f0: 7c 00 58 38 and r0,r0,r11 ffc105f4: 7c 08 48 39 and. r8,r0,r9 ffc105f8: 41 82 00 c0 beq- ffc106b8 <_POSIX_signals_Clear_signals+0x12c> if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { ffc105fc: 1c 1f 00 0c mulli r0,r31,12 ffc10600: 3d 20 00 00 lis r9,0 ffc10604: 39 29 31 70 addi r9,r9,12656 ffc10608: 7d 29 00 2e lwzx r9,r9,r0 ffc1060c: 2f 89 00 02 cmpwi cr7,r9,2 ffc10610: 40 be 00 7c bne+ cr7,ffc1068c <_POSIX_signals_Clear_signals+0x100> psiginfo = (POSIX_signals_Siginfo_node *) ffc10614: 3d 20 00 00 lis r9,0 ffc10618: 39 29 33 3c addi r9,r9,13116 ffc1061c: 7d 49 02 14 add r10,r9,r0 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc10620: 7f a9 00 2e lwzx r29,r9,r0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc10624: 39 6a 00 04 addi r11,r10,4 ffc10628: 7f 9d 58 00 cmpw cr7,r29,r11 ffc1062c: 40 be 00 0c bne+ cr7,ffc10638 <_POSIX_signals_Clear_signals+0xac> ffc10630: 3b a0 00 00 li r29,0 ffc10634: 48 00 00 10 b ffc10644 <_POSIX_signals_Clear_signals+0xb8> <== ALWAYS TAKEN { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc10638: 81 7d 00 00 lwz r11,0(r29) the_chain->first = new_first; ffc1063c: 7d 69 01 2e stwx r11,r9,r0 new_first->previous = _Chain_Head(the_chain); ffc10640: 91 4b 00 04 stw r10,4(r11) _Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] ); _POSIX_signals_Clear_process_signals( signo ); ffc10644: 7f e3 fb 78 mr r3,r31 ffc10648: 48 00 12 19 bl ffc11860 <_POSIX_signals_Clear_process_signals> <== ALWAYS TAKEN /* * It may be impossible to get here with an empty chain * BUT until that is proven we need to be defensive and * protect against it. */ if ( psiginfo ) { ffc1064c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc10650: 41 9e 00 3c beq- cr7,ffc1068c <_POSIX_signals_Clear_signals+0x100> Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc10654: 3d 60 00 00 lis r11,0 *info = psiginfo->Info; ffc10658: 81 5d 00 08 lwz r10,8(r29) ffc1065c: 39 6b 32 f4 addi r11,r11,13044 ffc10660: 80 1d 00 0c lwz r0,12(r29) ffc10664: 91 7d 00 00 stw r11,0(r29) old_last_node = the_chain->last; ffc10668: 39 6b ff fc addi r11,r11,-4 ffc1066c: 81 1d 00 10 lwz r8,16(r29) ffc10670: 81 2b 00 08 lwz r9,8(r11) ffc10674: 91 1e 00 08 stw r8,8(r30) the_chain->last = the_node; ffc10678: 93 ab 00 08 stw r29,8(r11) ffc1067c: 91 5e 00 00 stw r10,0(r30) old_last_node->next = the_node; the_node->previous = old_last_node; ffc10680: 91 3d 00 04 stw r9,4(r29) ffc10684: 90 1e 00 04 stw r0,4(r30) 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; ffc10688: 93 a9 00 00 stw r29,0(r9) &psiginfo->Node ); } else do_callout = false; } _POSIX_signals_Clear_process_signals( signo ); ffc1068c: 7f e3 fb 78 mr r3,r31 ffc10690: 48 00 11 d1 bl ffc11860 <_POSIX_signals_Clear_process_signals> <== ALWAYS TAKEN ffc10694: 48 00 00 1c b ffc106b0 <_POSIX_signals_Clear_signals+0x124> <== ALWAYS TAKEN do_callout = true; } } else { if ( mask & (api->signals_pending & signals_blocked) ) { ffc10698: 81 63 00 c8 lwz r11,200(r3) ffc1069c: 7c 0a 58 38 and r10,r0,r11 ffc106a0: 7d 48 48 39 and. r8,r10,r9 ffc106a4: 41 82 00 14 beq- ffc106b8 <_POSIX_signals_Clear_signals+0x12c> api->signals_pending &= ~mask; ffc106a8: 7d 60 00 78 andc r0,r11,r0 ffc106ac: 90 03 00 c8 stw r0,200(r3) ffc106b0: 38 60 00 01 li r3,1 ffc106b4: 48 00 00 08 b ffc106bc <_POSIX_signals_Clear_signals+0x130> <== ALWAYS TAKEN ffc106b8: 38 60 00 00 li r3,0 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc106bc: 7f 80 01 24 mtmsr r28 do_callout = true; } } _ISR_Enable( level ); return do_callout; } ffc106c0: 80 01 00 1c lwz r0,28(r1) ffc106c4: 83 81 00 08 lwz r28,8(r1) ffc106c8: 7c 08 03 a6 mtlr r0 ffc106cc: 83 a1 00 0c lwz r29,12(r1) ffc106d0: 83 c1 00 10 lwz r30,16(r1) ffc106d4: 83 e1 00 14 lwz r31,20(r1) ffc106d8: 38 21 00 18 addi r1,r1,24 ffc106dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08bd8 <_POSIX_signals_Get_highest>: ) { int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { if ( set & signo_to_mask( signo ) ) { ffc08bd8: 39 40 00 05 li r10,5 ffc08bdc: 7d 49 03 a6 mtctr r10 #include int _POSIX_signals_Get_highest( sigset_t set ) { ffc08be0: 39 20 00 1b li r9,27 int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { if ( set & signo_to_mask( signo ) ) { ffc08be4: 38 00 00 01 li r0,1 ffc08be8: 39 69 ff ff addi r11,r9,-1 ffc08bec: 7c 0b 58 30 slw r11,r0,r11 ffc08bf0: 7d 6a 18 39 and. r10,r11,r3 ffc08bf4: 40 82 00 34 bne- ffc08c28 <_POSIX_signals_Get_highest+0x50> <== NEVER TAKEN sigset_t set ) { int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { ffc08bf8: 39 29 00 01 addi r9,r9,1 ffc08bfc: 42 00 ff ec bdnz+ ffc08be8 <_POSIX_signals_Get_highest+0x10> #if (SIGHUP != 1) #error "Assumption that SIGHUP==1 violated!!" #endif for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { if ( set & signo_to_mask( signo ) ) { ffc08c00: 39 60 00 1a li r11,26 ffc08c04: 7d 69 03 a6 mtctr r11 sigset_t set ) { int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { ffc08c08: 39 20 00 01 li r9,1 #if (SIGHUP != 1) #error "Assumption that SIGHUP==1 violated!!" #endif for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { if ( set & signo_to_mask( signo ) ) { ffc08c0c: 38 00 00 01 li r0,1 ffc08c10: 39 69 ff ff addi r11,r9,-1 ffc08c14: 7c 0b 58 30 slw r11,r0,r11 ffc08c18: 7d 6a 18 39 and. r10,r11,r3 ffc08c1c: 40 82 00 0c bne- ffc08c28 <_POSIX_signals_Get_highest+0x50> */ #if (SIGHUP != 1) #error "Assumption that SIGHUP==1 violated!!" #endif for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { ffc08c20: 39 29 00 01 addi r9,r9,1 ffc08c24: 42 00 ff ec bdnz+ ffc08c10 <_POSIX_signals_Get_highest+0x38> <== ALWAYS TAKEN * a return 0. This routine will NOT be called unless a signal * is pending in the set passed in. */ found_it: return signo; } ffc08c28: 7d 23 4b 78 mr r3,r9 ffc08c2c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d6f4 <_POSIX_signals_Manager_Initialization>: * * _POSIX_signals_Manager_Initialization */ void _POSIX_signals_Manager_Initialization(void) { ffc0d6f4: 94 21 ff f0 stwu r1,-16(r1) ffc0d6f8: 7c 08 02 a6 mflr r0 assert( sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) ); #endif memcpy( ffc0d6fc: 3c 80 ff c2 lis r4,-62 ffc0d700: 3c 60 00 00 lis r3,0 * * _POSIX_signals_Manager_Initialization */ void _POSIX_signals_Manager_Initialization(void) { ffc0d704: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN uint32_t signo; uint32_t maximum_queued_signals; maximum_queued_signals = Configuration_POSIX_API.maximum_queued_signals; ffc0d708: 3d 20 00 00 lis r9,0 assert( sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) ); #endif memcpy( ffc0d70c: 38 84 e1 bc addi r4,r4,-7748 <== ALWAYS TAKEN * * _POSIX_signals_Manager_Initialization */ void _POSIX_signals_Manager_Initialization(void) { ffc0d710: 93 e1 00 0c stw r31,12(r1) assert( sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) ); #endif memcpy( ffc0d714: 38 a0 01 80 li r5,384 ffc0d718: 38 63 31 70 addi r3,r3,12656 void _POSIX_signals_Manager_Initialization(void) { uint32_t signo; uint32_t maximum_queued_signals; maximum_queued_signals = Configuration_POSIX_API.maximum_queued_signals; ffc0d71c: 83 e9 28 54 lwz r31,10324(r9) * * _POSIX_signals_Manager_Initialization */ void _POSIX_signals_Manager_Initialization(void) { ffc0d720: 93 c1 00 08 stw r30,8(r1) assert( sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) ); #endif memcpy( ffc0d724: 48 00 50 d1 bl ffc127f4 <== ALWAYS TAKEN ); /* * Initialize the set of pending signals for the entire process */ sigemptyset( &_POSIX_signals_Pending ); ffc0d728: 3c 60 00 00 lis r3,0 ffc0d72c: 38 63 27 e4 addi r3,r3,10212 ffc0d730: 48 00 06 29 bl ffc0dd58 <== ALWAYS TAKEN /* * Initialize the queue we use to block for signals */ _Thread_queue_Initialize( ffc0d734: 3c 60 00 00 lis r3,0 ffc0d738: 3c a0 10 00 lis r5,4096 ffc0d73c: 38 63 32 fc addi r3,r3,13052 ffc0d740: 60 a5 80 00 ori r5,r5,32768 ffc0d744: 38 80 00 00 li r4,0 ffc0d748: 38 c0 00 0b li r6,11 ffc0d74c: 4b ff d5 09 bl ffc0ac54 <_Thread_queue_Initialize> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc0d750: 39 60 00 1f li r11,31 ffc0d754: 7d 69 03 a6 mtctr r11 ffc0d758: 3d 20 00 00 lis r9,0 ffc0d75c: 39 29 33 48 addi r9,r9,13128 ffc0d760: 38 00 00 00 li r0,0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0d764: 39 69 00 04 addi r11,r9,4 the_chain->permanent_null = NULL; ffc0d768: 90 09 00 04 stw r0,4(r9) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0d76c: 91 69 00 00 stw r11,0(r9) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0d770: 91 29 00 08 stw r9,8(r9) ffc0d774: 39 29 00 0c addi r9,r9,12 /* XXX status codes */ /* * Allocate the siginfo pools. */ for ( signo=1 ; signo<= SIGRTMAX ; signo++ ) ffc0d778: 42 00 ff ec bdnz+ ffc0d764 <_POSIX_signals_Manager_Initialization+0x70> _Chain_Initialize_empty( &_POSIX_signals_Siginfo[ signo ] ); if ( maximum_queued_signals ) { ffc0d77c: 2f 9f 00 00 cmpwi cr7,r31,0 <== ALWAYS TAKEN ffc0d780: 3d 20 00 00 lis r9,0 ffc0d784: 3b c9 32 f0 addi r30,r9,13040 ffc0d788: 41 be 00 24 beq+ cr7,ffc0d7ac <_POSIX_signals_Manager_Initialization+0xb8> _Chain_Initialize( ffc0d78c: 1c 7f 00 14 mulli r3,r31,20 ffc0d790: 4b ff e4 09 bl ffc0bb98 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN ffc0d794: 7f e5 fb 78 mr r5,r31 ffc0d798: 7c 64 1b 78 mr r4,r3 ffc0d79c: 38 c0 00 14 li r6,20 ffc0d7a0: 7f c3 f3 78 mr r3,r30 ffc0d7a4: 48 00 0d b1 bl ffc0e554 <_Chain_Initialize> <== ALWAYS TAKEN ffc0d7a8: 48 00 00 14 b ffc0d7bc <_POSIX_signals_Manager_Initialization+0xc8> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0d7ac: 38 1e 00 04 addi r0,r30,4 the_chain->permanent_null = NULL; ffc0d7b0: 93 fe 00 04 stw r31,4(r30) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0d7b4: 90 09 32 f0 stw r0,13040(r9) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0d7b8: 93 de 00 08 stw r30,8(r30) <== ALWAYS TAKEN Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0d7bc: 3d 60 00 00 lis r11,0 /* * Initialize the Alarm Timer */ _Watchdog_Initialize( &_POSIX_signals_Alarm_timer, NULL, 0, NULL ); _Watchdog_Initialize( &_POSIX_signals_Ualarm_timer, NULL, 0, NULL ); } ffc0d7c0: 83 c1 00 08 lwz r30,8(r1) ffc0d7c4: 3d 20 00 00 lis r9,0 ffc0d7c8: 83 e1 00 0c lwz r31,12(r1) ffc0d7cc: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc0d7d0: 39 6b 35 24 addi r11,r11,13604 ffc0d7d4: 39 29 34 bc addi r9,r9,13500 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0d7d8: 90 0b 00 24 stw r0,36(r11) ffc0d7dc: 90 09 00 24 stw r0,36(r9) <== ALWAYS TAKEN Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0d7e0: 90 0b 00 08 stw r0,8(r11) the_watchdog->routine = routine; ffc0d7e4: 90 0b 00 1c stw r0,28(r11) the_watchdog->id = id; ffc0d7e8: 90 0b 00 20 stw r0,32(r11) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0d7ec: 90 09 00 08 stw r0,8(r9) the_watchdog->routine = routine; ffc0d7f0: 90 09 00 1c stw r0,28(r9) <== ALWAYS TAKEN the_watchdog->id = id; ffc0d7f4: 90 09 00 20 stw r0,32(r9) ffc0d7f8: 80 01 00 14 lwz r0,20(r1) ffc0d7fc: 38 21 00 10 addi r1,r1,16 ffc0d800: 7c 08 03 a6 mtlr r0 ffc0d804: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d808 <_POSIX_signals_Post_switch_extension>: */ void _POSIX_signals_Post_switch_extension( Thread_Control *the_thread ) { ffc0d808: 94 21 ff e8 stwu r1,-24(r1) ffc0d80c: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0d810: 90 01 00 1c stw r0,28(r1) ffc0d814: 93 a1 00 0c stw r29,12(r1) * The first thing done is to check there are any signals to be * processed at all. No point in doing this loop otherwise. */ while (1) { _ISR_Disable( level ); if ( !(~api->signals_blocked & ffc0d818: 3f a0 00 00 lis r29,0 ffc0d81c: 3b bd 27 e4 addi r29,r29,10212 */ void _POSIX_signals_Post_switch_extension( Thread_Control *the_thread ) { ffc0d820: 93 e1 00 14 stw r31,20(r1) ffc0d824: 93 c1 00 10 stw r30,16(r1) POSIX_API_Control *api; int signo; ISR_Level level; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0d828: 83 e3 01 48 lwz r31,328(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0d82c: 7c 00 00 a6 mfmsr r0 ffc0d830: 7d 30 42 a6 mfsprg r9,0 ffc0d834: 7c 09 48 78 andc r9,r0,r9 ffc0d838: 7d 20 01 24 mtmsr r9 * processed at all. No point in doing this loop otherwise. */ while (1) { _ISR_Disable( level ); if ( !(~api->signals_blocked & (api->signals_pending | _POSIX_signals_Pending)) ) { ffc0d83c: 81 5d 00 00 lwz r10,0(r29) ffc0d840: 81 3f 00 c8 lwz r9,200(r31) * The first thing done is to check there are any signals to be * processed at all. No point in doing this loop otherwise. */ while (1) { _ISR_Disable( level ); if ( !(~api->signals_blocked & ffc0d844: 81 7f 00 c4 lwz r11,196(r31) (api->signals_pending | _POSIX_signals_Pending)) ) { ffc0d848: 7d 49 4b 78 or r9,r10,r9 * The first thing done is to check there are any signals to be * processed at all. No point in doing this loop otherwise. */ while (1) { _ISR_Disable( level ); if ( !(~api->signals_blocked & ffc0d84c: 7d 2a 58 79 andc. r10,r9,r11 ffc0d850: 40 a2 00 24 bne+ ffc0d874 <_POSIX_signals_Post_switch_extension+0x6c> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0d854: 7c 00 01 24 mtmsr r0 for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { _POSIX_signals_Check_signal( api, signo, false ); _POSIX_signals_Check_signal( api, signo, true ); } } } ffc0d858: 80 01 00 1c lwz r0,28(r1) ffc0d85c: 83 a1 00 0c lwz r29,12(r1) ffc0d860: 7c 08 03 a6 mtlr r0 ffc0d864: 83 c1 00 10 lwz r30,16(r1) ffc0d868: 83 e1 00 14 lwz r31,20(r1) ffc0d86c: 38 21 00 18 addi r1,r1,24 ffc0d870: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d874: 7c 00 01 24 mtmsr r0 ffc0d878: 3b c0 00 1b li r30,27 break; } _ISR_Enable( level ); for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { _POSIX_signals_Check_signal( api, signo, false ); ffc0d87c: 7f c4 f3 78 mr r4,r30 ffc0d880: 38 a0 00 00 li r5,0 ffc0d884: 7f e3 fb 78 mr r3,r31 ffc0d888: 48 00 2c 35 bl ffc104bc <_POSIX_signals_Check_signal> <== ALWAYS TAKEN _POSIX_signals_Check_signal( api, signo, true ); ffc0d88c: 7f c4 f3 78 mr r4,r30 ffc0d890: 7f e3 fb 78 mr r3,r31 ffc0d894: 38 a0 00 01 li r5,1 ffc0d898: 48 00 2c 25 bl ffc104bc <_POSIX_signals_Check_signal> <== ALWAYS TAKEN _ISR_Enable( level ); break; } _ISR_Enable( level ); for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { ffc0d89c: 2f 9e 00 1f cmpwi cr7,r30,31 ffc0d8a0: 3b de 00 01 addi r30,r30,1 ffc0d8a4: 40 9e ff d8 bne+ cr7,ffc0d87c <_POSIX_signals_Post_switch_extension+0x74> ffc0d8a8: 3b c0 00 01 li r30,1 _POSIX_signals_Check_signal( api, signo, true ); } /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */ for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { _POSIX_signals_Check_signal( api, signo, false ); ffc0d8ac: 7f c4 f3 78 mr r4,r30 ffc0d8b0: 38 a0 00 00 li r5,0 ffc0d8b4: 7f e3 fb 78 mr r3,r31 ffc0d8b8: 48 00 2c 05 bl ffc104bc <_POSIX_signals_Check_signal> <== ALWAYS TAKEN _POSIX_signals_Check_signal( api, signo, true ); ffc0d8bc: 7f c4 f3 78 mr r4,r30 ffc0d8c0: 7f e3 fb 78 mr r3,r31 ffc0d8c4: 38 a0 00 01 li r5,1 ffc0d8c8: 48 00 2b f5 bl ffc104bc <_POSIX_signals_Check_signal> <== ALWAYS TAKEN _POSIX_signals_Check_signal( api, signo, false ); _POSIX_signals_Check_signal( api, signo, true ); } /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */ for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { ffc0d8cc: 2f 9e 00 1a cmpwi cr7,r30,26 ffc0d8d0: 3b de 00 01 addi r30,r30,1 ffc0d8d4: 40 9e ff d8 bne+ cr7,ffc0d8ac <_POSIX_signals_Post_switch_extension+0xa4> ffc0d8d8: 4b ff ff 54 b ffc0d82c <_POSIX_signals_Post_switch_extension+0x24> <== ALWAYS TAKEN ffc118e0 <_POSIX_signals_Set_process_signals>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc118e0: 7d 60 00 a6 mfmsr r11 ffc118e4: 7c 10 42 a6 mfsprg r0,0 ffc118e8: 7d 60 00 78 andc r0,r11,r0 ffc118ec: 7c 00 01 24 mtmsr r0 ) { ISR_Level level; _ISR_Disable( level ); if ( !_POSIX_signals_Pending ) ffc118f0: 3d 20 00 00 lis r9,0 ffc118f4: 80 09 27 e4 lwz r0,10212(r9) ffc118f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc118fc: 40 9e 00 14 bne- cr7,ffc11910 <_POSIX_signals_Set_process_signals+0x30> _Thread_Do_post_task_switch_extension++; ffc11900: 3d 20 00 00 lis r9,0 ffc11904: 81 49 27 a0 lwz r10,10144(r9) ffc11908: 39 4a 00 01 addi r10,r10,1 ffc1190c: 91 49 27 a0 stw r10,10144(r9) _POSIX_signals_Pending |= mask; ffc11910: 7c 60 03 78 or r0,r3,r0 ffc11914: 3d 20 00 00 lis r9,0 ffc11918: 90 09 27 e4 stw r0,10212(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1191c: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); } ffc11920: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0deb4 <_POSIX_signals_Ualarm_TSR>: void _POSIX_signals_Ualarm_TSR( Objects_Id id __attribute__((unused)), void *argument __attribute__((unused)) ) { ffc0deb4: 94 21 ff f0 stwu r1,-16(r1) ffc0deb8: 7c 08 02 a6 mflr r0 ffc0debc: 93 e1 00 0c stw r31,12(r1) RTEMS_INLINE_ROUTINE void _Watchdog_Reset( Watchdog_Control *the_watchdog ) { (void) _Watchdog_Remove( the_watchdog ); ffc0dec0: 3f e0 00 00 lis r31,0 ffc0dec4: 3b ff 34 bc addi r31,r31,13500 ffc0dec8: 90 01 00 14 stw r0,20(r1) /* * Send a SIGALRM but if there is a problem, ignore it. * It's OK, there isn't a way this should fail. */ (void) kill( getpid(), SIGALRM ); ffc0decc: 48 00 23 45 bl ffc10210 <== ALWAYS TAKEN ffc0ded0: 38 80 00 0e li r4,14 ffc0ded4: 48 00 25 c5 bl ffc10498 <== ALWAYS TAKEN ffc0ded8: 7f e3 fb 78 mr r3,r31 ffc0dedc: 4b ff db 3d bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0dee0: 3c 60 00 00 lis r3,0 ffc0dee4: 7f e4 fb 78 mr r4,r31 ffc0dee8: 38 63 2d 48 addi r3,r3,11592 ffc0deec: 4b ff d9 d5 bl ffc0b8c0 <_Watchdog_Insert> <== ALWAYS TAKEN /* * If the reset interval is non-zero, reschedule ourselves. */ _Watchdog_Reset( &_POSIX_signals_Ualarm_timer ); } ffc0def0: 80 01 00 14 lwz r0,20(r1) ffc0def4: 83 e1 00 0c lwz r31,12(r1) ffc0def8: 38 21 00 10 addi r1,r1,16 ffc0defc: 7c 08 03 a6 mtlr r0 ffc0df00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11924 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { ffc11924: 94 21 ff f0 stwu r1,-16(r1) ffc11928: 7c 08 02 a6 mflr r0 /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { ffc1192c: 3d 20 10 00 lis r9,4096 bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { ffc11930: 90 01 00 14 stw r0,20(r1) /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { ffc11934: 61 29 80 00 ori r9,r9,32768 ffc11938: 80 03 00 10 lwz r0,16(r3) bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { ffc1193c: 93 e1 00 0c stw r31,12(r1) ffc11940: 7c 7f 1b 78 mr r31,r3 /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { ffc11944: 7d 2b 00 38 and r11,r9,r0 ffc11948: 7f 8b 48 00 cmpw cr7,r11,r9 { POSIX_API_Control *api; sigset_t mask; siginfo_t *the_info = NULL; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc1194c: 81 43 01 48 lwz r10,328(r3) ffc11950: 39 64 ff ff addi r11,r4,-1 ffc11954: 39 20 00 01 li r9,1 ffc11958: 7d 2b 58 30 slw r11,r9,r11 /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { ffc1195c: 40 be 00 68 bne+ cr7,ffc119c4 <_POSIX_signals_Unblock_thread+0xa0> if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { ffc11960: 80 03 00 30 lwz r0,48(r3) ffc11964: 7d 68 00 39 and. r8,r11,r0 ffc11968: 40 82 00 10 bne- ffc11978 <_POSIX_signals_Unblock_thread+0x54> ffc1196c: 80 0a 00 c4 lwz r0,196(r10) ffc11970: 7d 69 00 79 andc. r9,r11,r0 ffc11974: 41 82 00 d0 beq- ffc11a44 <_POSIX_signals_Unblock_thread+0x120> the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { ffc11978: 2f 85 00 00 cmpwi cr7,r5,0 if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; ffc1197c: 81 3f 00 28 lwz r9,40(r31) */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { the_thread->Wait.return_code = EINTR; ffc11980: 38 00 00 04 li r0,4 ffc11984: 90 1f 00 34 stw r0,52(r31) the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { ffc11988: 40 be 00 14 bne+ cr7,ffc1199c <_POSIX_signals_Unblock_thread+0x78> the_info->si_signo = signo; the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; ffc1198c: 90 a9 00 08 stw r5,8(r9) the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; the_info->si_code = SI_USER; ffc11990: 38 00 00 01 li r0,1 the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; ffc11994: 90 89 00 00 stw r4,0(r9) ffc11998: 48 00 00 18 b ffc119b0 <_POSIX_signals_Unblock_thread+0x8c> <== ALWAYS TAKEN the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; } else { *the_info = *info; ffc1199c: 81 45 00 08 lwz r10,8(r5) ffc119a0: 81 65 00 00 lwz r11,0(r5) ffc119a4: 80 05 00 04 lwz r0,4(r5) ffc119a8: 91 49 00 08 stw r10,8(r9) ffc119ac: 91 69 00 00 stw r11,0(r9) ffc119b0: 90 09 00 04 stw r0,4(r9) } _Thread_queue_Extract_with_proxy( the_thread ); ffc119b4: 7f e3 fb 78 mr r3,r31 ffc119b8: 4b ff 92 0d bl ffc0abc4 <_Thread_queue_Extract_with_proxy> <== ALWAYS TAKEN ffc119bc: 38 60 00 01 li r3,1 return true; ffc119c0: 48 00 00 88 b ffc11a48 <_POSIX_signals_Unblock_thread+0x124> <== ALWAYS TAKEN } /* * Thread is not waiting due to a sigwait. */ if ( ~api->signals_blocked & mask ) { ffc119c4: 81 4a 00 c4 lwz r10,196(r10) ffc119c8: 7d 68 50 79 andc. r8,r11,r10 ffc119cc: 41 82 00 78 beq- ffc11a44 <_POSIX_signals_Unblock_thread+0x120> * + Any other combination, do nothing. */ the_thread->do_post_task_switch_extension = true; if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { ffc119d0: 74 0b 10 00 andis. r11,r0,4096 * it is not blocked, THEN * we need to dispatch at the end of this ISR. * + Any other combination, do nothing. */ the_thread->do_post_task_switch_extension = true; ffc119d4: 99 23 00 74 stb r9,116(r3) if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { ffc119d8: 41 82 00 3c beq- ffc11a14 <_POSIX_signals_Unblock_thread+0xf0> #if 0 if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ ffc119dc: 70 08 00 08 andi. r8,r0,8 */ the_thread->do_post_task_switch_extension = true; if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { the_thread->Wait.return_code = EINTR; ffc119e0: 38 00 00 04 li r0,4 ffc119e4: 90 03 00 34 stw r0,52(r3) #if 0 if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) ) _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ ffc119e8: 41 82 00 5c beq- ffc11a44 <_POSIX_signals_Unblock_thread+0x120> <== NEVER TAKEN if ( _Watchdog_Is_active( &the_thread->Timer ) ) ffc119ec: 80 03 00 50 lwz r0,80(r3) ffc119f0: 2f 80 00 02 cmpwi cr7,r0,2 ffc119f4: 40 be 00 0c bne+ cr7,ffc11a00 <_POSIX_signals_Unblock_thread+0xdc> <== NEVER TAKEN (void) _Watchdog_Remove( &the_thread->Timer ); ffc119f8: 38 63 00 48 addi r3,r3,72 ffc119fc: 4b ff a0 1d bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc11a00: 3c 80 10 03 lis r4,4099 ffc11a04: 7f e3 fb 78 mr r3,r31 ffc11a08: 60 84 ff f8 ori r4,r4,65528 ffc11a0c: 4b ff 84 5d bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN ffc11a10: 48 00 00 34 b ffc11a44 <_POSIX_signals_Unblock_thread+0x120> <== ALWAYS TAKEN _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { ffc11a14: 2f 80 00 00 cmpwi cr7,r0,0 ffc11a18: 40 9e 00 2c bne- cr7,ffc11a44 <_POSIX_signals_Unblock_thread+0x120> <== NEVER TAKEN if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc11a1c: 3d 60 00 00 lis r11,0 ffc11a20: 80 0b 27 98 lwz r0,10136(r11) ffc11a24: 2f 80 00 00 cmpwi cr7,r0,0 ffc11a28: 41 9e 00 1c beq- cr7,ffc11a44 <_POSIX_signals_Unblock_thread+0x120> ffc11a2c: 3d 60 00 00 lis r11,0 ffc11a30: 80 0b 27 b0 lwz r0,10160(r11) ffc11a34: 7f 83 00 00 cmpw cr7,r3,r0 ffc11a38: 40 be 00 0c bne+ cr7,ffc11a44 <_POSIX_signals_Unblock_thread+0x120> <== NEVER TAKEN _ISR_Signals_to_thread_executing = true; ffc11a3c: 3d 60 00 00 lis r11,0 ffc11a40: 99 2b 27 cc stb r9,10188(r11) ffc11a44: 38 60 00 00 li r3,0 } } return false; } ffc11a48: 80 01 00 14 lwz r0,20(r1) ffc11a4c: 83 e1 00 0c lwz r31,12(r1) ffc11a50: 38 21 00 10 addi r1,r1,16 ffc11a54: 7c 08 03 a6 mtlr r0 ffc11a58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dfe0 <_Partition_Manager_initialization>: * Output parameters: NONE */ void _Partition_Manager_initialization(void) { _Objects_Initialize_information( ffc0dfe0: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _Partition_Manager_initialization(void) { ffc0dfe4: 94 21 ff f8 stwu r1,-8(r1) ffc0dfe8: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN _Objects_Initialize_information( ffc0dfec: 3c 60 00 00 lis r3,0 ffc0dff0: 80 c9 20 84 lwz r6,8324(r9) ffc0dff4: 38 63 36 0c addi r3,r3,13836 ffc0dff8: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Partition_Manager_initialization(void) { ffc0dffc: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0e000: 38 a0 00 05 li r5,5 <== ALWAYS TAKEN ffc0e004: 38 e0 00 30 li r7,48 ffc0e008: 39 00 00 00 li r8,0 ffc0e00c: 39 20 00 04 li r9,4 ffc0e010: 4b ff b8 bd bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN MP_PACKET_PARTITION, _Partition_MP_Process_packet ); #endif } ffc0e014: 80 01 00 0c lwz r0,12(r1) ffc0e018: 38 21 00 08 addi r1,r1,8 ffc0e01c: 7c 08 03 a6 mtlr r0 ffc0e020: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09b8c <_Protected_heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t size, uintptr_t alignment, uintptr_t boundary ) { ffc09b8c: 94 21 ff e0 stwu r1,-32(r1) ffc09b90: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc09b94: 93 e1 00 1c stw r31,28(r1) void *p; _RTEMS_Lock_allocator(); ffc09b98: 3f e0 00 00 lis r31,0 Heap_Control *heap, uintptr_t size, uintptr_t alignment, uintptr_t boundary ) { ffc09b9c: 93 c1 00 18 stw r30,24(r1) ffc09ba0: 7c 7e 1b 78 mr r30,r3 void *p; _RTEMS_Lock_allocator(); ffc09ba4: 80 7f 27 a8 lwz r3,10152(r31) Heap_Control *heap, uintptr_t size, uintptr_t alignment, uintptr_t boundary ) { ffc09ba8: 90 01 00 24 stw r0,36(r1) void *p; _RTEMS_Lock_allocator(); ffc09bac: 90 81 00 08 stw r4,8(r1) ffc09bb0: 90 a1 00 0c stw r5,12(r1) ffc09bb4: 90 c1 00 10 stw r6,16(r1) ffc09bb8: 4b ff ec 11 bl ffc087c8 <_API_Mutex_Lock> <== ALWAYS TAKEN p = _Heap_Allocate_aligned_with_boundary( ffc09bbc: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc09bc0: 80 81 00 08 lwz r4,8(r1) ffc09bc4: 80 a1 00 0c lwz r5,12(r1) ffc09bc8: 80 c1 00 10 lwz r6,16(r1) ffc09bcc: 48 00 4c 4d bl ffc0e818 <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN ffc09bd0: 7c 7e 1b 78 mr r30,r3 heap, size, alignment, boundary ); _RTEMS_Unlock_allocator(); ffc09bd4: 80 7f 27 a8 lwz r3,10152(r31) ffc09bd8: 4b ff ec 71 bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN return p; } ffc09bdc: 80 01 00 24 lwz r0,36(r1) ffc09be0: 7f c3 f3 78 mr r3,r30 ffc09be4: 83 e1 00 1c lwz r31,28(r1) ffc09be8: 7c 08 03 a6 mtlr r0 ffc09bec: 83 c1 00 18 lwz r30,24(r1) ffc09bf0: 38 21 00 20 addi r1,r1,32 ffc09bf4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e484 <_Protected_heap_Extend>: bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc0e484: 94 21 ff d8 stwu r1,-40(r1) ffc0e488: 7c 08 02 a6 mflr r0 ffc0e48c: 93 e1 00 24 stw r31,36(r1) Heap_Extend_status status; uintptr_t amount_extended; _RTEMS_Lock_allocator(); ffc0e490: 3f e0 00 00 lis r31,0 bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc0e494: 93 c1 00 20 stw r30,32(r1) ffc0e498: 7c 7e 1b 78 mr r30,r3 Heap_Extend_status status; uintptr_t amount_extended; _RTEMS_Lock_allocator(); ffc0e49c: 80 7f 28 4c lwz r3,10316(r31) bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc0e4a0: 90 01 00 2c stw r0,44(r1) Heap_Extend_status status; uintptr_t amount_extended; _RTEMS_Lock_allocator(); ffc0e4a4: 90 81 00 18 stw r4,24(r1) ffc0e4a8: 90 a1 00 1c stw r5,28(r1) ffc0e4ac: 4b ff df 1d bl ffc0c3c8 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Extend(the_heap, starting_address, size, &amount_extended); ffc0e4b0: 38 c1 00 08 addi r6,r1,8 ffc0e4b4: 80 81 00 18 lwz r4,24(r1) ffc0e4b8: 7f c3 f3 78 mr r3,r30 ffc0e4bc: 80 a1 00 1c lwz r5,28(r1) ffc0e4c0: 48 00 4f 81 bl ffc13440 <_Heap_Extend> <== ALWAYS TAKEN ffc0e4c4: 7c 7e 1b 78 mr r30,r3 _RTEMS_Unlock_allocator(); ffc0e4c8: 80 7f 28 4c lwz r3,10316(r31) ffc0e4cc: 4b ff df 7d bl ffc0c448 <_API_Mutex_Unlock> <== ALWAYS TAKEN return (status == HEAP_EXTEND_SUCCESSFUL); } ffc0e4d0: 80 01 00 2c lwz r0,44(r1) ffc0e4d4: 7f c3 00 34 cntlzw r3,r30 ffc0e4d8: 83 e1 00 24 lwz r31,36(r1) ffc0e4dc: 7c 08 03 a6 mtlr r0 ffc0e4e0: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc0e4e4: 83 c1 00 20 lwz r30,32(r1) ffc0e4e8: 38 21 00 28 addi r1,r1,40 ffc0e4ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09bf8 <_Protected_heap_Free>: bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { ffc09bf8: 94 21 ff e8 stwu r1,-24(r1) ffc09bfc: 7c 08 02 a6 mflr r0 ffc09c00: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN bool status; _RTEMS_Lock_allocator(); ffc09c04: 3f e0 00 00 lis r31,0 <== ALWAYS TAKEN bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { ffc09c08: 93 c1 00 10 stw r30,16(r1) ffc09c0c: 7c 7e 1b 78 mr r30,r3 bool status; _RTEMS_Lock_allocator(); ffc09c10: 80 7f 27 a8 lwz r3,10152(r31) bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { ffc09c14: 90 01 00 1c stw r0,28(r1) bool status; _RTEMS_Lock_allocator(); ffc09c18: 90 81 00 08 stw r4,8(r1) ffc09c1c: 4b ff eb ad bl ffc087c8 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Free( the_heap, start_address ); ffc09c20: 7f c3 f3 78 mr r3,r30 ffc09c24: 80 81 00 08 lwz r4,8(r1) ffc09c28: 48 00 4d b1 bl ffc0e9d8 <_Heap_Free> <== ALWAYS TAKEN ffc09c2c: 7c 7e 1b 78 mr r30,r3 _RTEMS_Unlock_allocator(); ffc09c30: 80 7f 27 a8 lwz r3,10152(r31) ffc09c34: 4b ff ec 15 bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN return status; } ffc09c38: 80 01 00 1c lwz r0,28(r1) ffc09c3c: 7f c3 f3 78 mr r3,r30 ffc09c40: 83 e1 00 14 lwz r31,20(r1) ffc09c44: 7c 08 03 a6 mtlr r0 ffc09c48: 83 c1 00 10 lwz r30,16(r1) ffc09c4c: 38 21 00 18 addi r1,r1,24 ffc09c50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1cd4c <_Protected_heap_Get_block_size>: bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, uintptr_t *size ) { ffc1cd4c: 94 21 ff e8 stwu r1,-24(r1) ffc1cd50: 7c 08 02 a6 mflr r0 ffc1cd54: 93 e1 00 14 stw r31,20(r1) bool status; _RTEMS_Lock_allocator(); ffc1cd58: 3f e0 00 00 lis r31,0 bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, uintptr_t *size ) { ffc1cd5c: 93 c1 00 10 stw r30,16(r1) ffc1cd60: 7c 7e 1b 78 mr r30,r3 bool status; _RTEMS_Lock_allocator(); ffc1cd64: 80 7f 27 a8 lwz r3,10152(r31) bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, uintptr_t *size ) { ffc1cd68: 90 01 00 1c stw r0,28(r1) bool status; _RTEMS_Lock_allocator(); ffc1cd6c: 90 81 00 08 stw r4,8(r1) ffc1cd70: 90 a1 00 0c stw r5,12(r1) ffc1cd74: 4b fe ba 55 bl ffc087c8 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Size_of_alloc_area( the_heap, starting_address, size ); ffc1cd78: 7f c3 f3 78 mr r3,r30 ffc1cd7c: 80 81 00 08 lwz r4,8(r1) ffc1cd80: 80 a1 00 0c lwz r5,12(r1) ffc1cd84: 48 00 01 f5 bl ffc1cf78 <_Heap_Size_of_alloc_area> <== ALWAYS TAKEN ffc1cd88: 7c 7e 1b 78 mr r30,r3 _RTEMS_Unlock_allocator(); ffc1cd8c: 80 7f 27 a8 lwz r3,10152(r31) ffc1cd90: 4b fe ba b9 bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN return status; } ffc1cd94: 80 01 00 1c lwz r0,28(r1) ffc1cd98: 7f c3 f3 78 mr r3,r30 ffc1cd9c: 83 e1 00 14 lwz r31,20(r1) ffc1cda0: 7c 08 03 a6 mtlr r0 ffc1cda4: 83 c1 00 10 lwz r30,16(r1) ffc1cda8: 38 21 00 18 addi r1,r1,24 ffc1cdac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f788 <_Protected_heap_Get_free_information>: bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { ffc0f788: 94 21 ff e8 stwu r1,-24(r1) ffc0f78c: 7c 08 02 a6 mflr r0 ffc0f790: 93 e1 00 14 stw r31,20(r1) /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); ffc0f794: 3f e0 00 00 lis r31,0 bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { ffc0f798: 93 c1 00 10 stw r30,16(r1) ffc0f79c: 7c 7e 1b 78 mr r30,r3 /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); ffc0f7a0: 80 7f 36 50 lwz r3,13904(r31) bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { ffc0f7a4: 90 01 00 1c stw r0,28(r1) /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); ffc0f7a8: 90 81 00 08 stw r4,8(r1) ffc0f7ac: 4b ff e8 35 bl ffc0dfe0 <_API_Mutex_Lock> <== ALWAYS TAKEN _Heap_Get_free_information( the_heap, info ); ffc0f7b0: 7f c3 f3 78 mr r3,r30 ffc0f7b4: 80 81 00 08 lwz r4,8(r1) ffc0f7b8: 48 01 ff 75 bl ffc2f72c <_Heap_Get_free_information> <== ALWAYS TAKEN _RTEMS_Unlock_allocator(); ffc0f7bc: 80 7f 36 50 lwz r3,13904(r31) ffc0f7c0: 4b ff e8 a1 bl ffc0e060 <_API_Mutex_Unlock> <== ALWAYS TAKEN return true; } ffc0f7c4: 80 01 00 1c lwz r0,28(r1) ffc0f7c8: 38 60 00 01 li r3,1 ffc0f7cc: 83 c1 00 10 lwz r30,16(r1) ffc0f7d0: 7c 08 03 a6 mtlr r0 ffc0f7d4: 83 e1 00 14 lwz r31,20(r1) ffc0f7d8: 38 21 00 18 addi r1,r1,24 ffc0f7dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2f990 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { ffc2f990: 94 21 ff e8 stwu r1,-24(r1) ffc2f994: 7c 08 02 a6 mflr r0 ffc2f998: 93 c1 00 10 stw r30,16(r1) if ( !the_heap ) ffc2f99c: 7c 7e 1b 79 mr. r30,r3 bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { ffc2f9a0: 90 01 00 1c stw r0,28(r1) ffc2f9a4: 93 e1 00 14 stw r31,20(r1) if ( !the_heap ) ffc2f9a8: 41 82 00 38 beq- ffc2f9e0 <_Protected_heap_Get_information+0x50> return false; if ( !the_info ) ffc2f9ac: 2f 84 00 00 cmpwi cr7,r4,0 ffc2f9b0: 41 9e 00 30 beq- cr7,ffc2f9e0 <_Protected_heap_Get_information+0x50> return false; _RTEMS_Lock_allocator(); ffc2f9b4: 3f e0 00 00 lis r31,0 ffc2f9b8: 90 81 00 08 stw r4,8(r1) ffc2f9bc: 80 7f 36 50 lwz r3,13904(r31) ffc2f9c0: 4b fd e6 21 bl ffc0dfe0 <_API_Mutex_Lock> <== ALWAYS TAKEN _Heap_Get_information( the_heap, the_info ); ffc2f9c4: 80 81 00 08 lwz r4,8(r1) ffc2f9c8: 7f c3 f3 78 mr r3,r30 ffc2f9cc: 48 01 29 69 bl ffc42334 <_Heap_Get_information> <== ALWAYS TAKEN _RTEMS_Unlock_allocator(); ffc2f9d0: 80 7f 36 50 lwz r3,13904(r31) ffc2f9d4: 4b fd e6 8d bl ffc0e060 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc2f9d8: 38 60 00 01 li r3,1 return true; ffc2f9dc: 48 00 00 08 b ffc2f9e4 <_Protected_heap_Get_information+0x54> <== ALWAYS TAKEN ffc2f9e0: 38 60 00 00 li r3,0 } ffc2f9e4: 80 01 00 1c lwz r0,28(r1) ffc2f9e8: 83 c1 00 10 lwz r30,16(r1) ffc2f9ec: 7c 08 03 a6 mtlr r0 ffc2f9f0: 83 e1 00 14 lwz r31,20(r1) ffc2f9f4: 38 21 00 18 addi r1,r1,24 ffc2f9f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c54 <_Protected_heap_Get_size>: uintptr_t _Protected_heap_Get_size( Heap_Control *the_heap ) { return _Heap_Get_size( the_heap ); } ffc09c54: 80 63 00 2c lwz r3,44(r3) ffc09c58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1cdb0 <_Protected_heap_Resize_block>: bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc1cdb0: 94 21 ff d8 stwu r1,-40(r1) ffc1cdb4: 7c 08 02 a6 mflr r0 ffc1cdb8: 93 e1 00 24 stw r31,36(r1) Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); ffc1cdbc: 3f e0 00 00 lis r31,0 bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc1cdc0: 93 c1 00 20 stw r30,32(r1) ffc1cdc4: 7c 7e 1b 78 mr r30,r3 Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); ffc1cdc8: 80 7f 27 a8 lwz r3,10152(r31) bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc1cdcc: 90 01 00 2c stw r0,44(r1) Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); ffc1cdd0: 90 81 00 18 stw r4,24(r1) ffc1cdd4: 90 a1 00 1c stw r5,28(r1) ffc1cdd8: 4b fe b9 f1 bl ffc087c8 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Resize_block( ffc1cddc: 38 c1 00 08 addi r6,r1,8 ffc1cde0: 80 81 00 18 lwz r4,24(r1) ffc1cde4: 38 e1 00 0c addi r7,r1,12 ffc1cde8: 80 a1 00 1c lwz r5,28(r1) ffc1cdec: 7f c3 f3 78 mr r3,r30 ffc1cdf0: 48 00 00 31 bl ffc1ce20 <_Heap_Resize_block> <== ALWAYS TAKEN ffc1cdf4: 7c 7e 1b 78 mr r30,r3 the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); ffc1cdf8: 80 7f 27 a8 lwz r3,10152(r31) ffc1cdfc: 4b fe ba 4d bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN return (status == HEAP_RESIZE_SUCCESSFUL); } ffc1ce00: 80 01 00 2c lwz r0,44(r1) ffc1ce04: 7f c3 00 34 cntlzw r3,r30 ffc1ce08: 83 e1 00 24 lwz r31,36(r1) ffc1ce0c: 7c 08 03 a6 mtlr r0 ffc1ce10: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc1ce14: 83 c1 00 20 lwz r30,32(r1) ffc1ce18: 38 21 00 28 addi r1,r1,40 ffc1ce1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e6ec <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { ffc0e6ec: 94 21 ff e8 stwu r1,-24(r1) ffc0e6f0: 7c 08 02 a6 mflr r0 * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { ffc0e6f4: 3d 20 00 00 lis r9,0 bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { ffc0e6f8: 90 01 00 1c stw r0,28(r1) * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { ffc0e6fc: 80 09 28 14 lwz r0,10260(r9) bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { ffc0e700: 93 81 00 08 stw r28,8(r1) ffc0e704: 7c 7c 1b 78 mr r28,r3 * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { ffc0e708: 2f 80 00 00 cmpwi cr7,r0,0 bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { ffc0e70c: 93 a1 00 0c stw r29,12(r1) ffc0e710: 7c 9d 23 78 mr r29,r4 ffc0e714: 93 c1 00 10 stw r30,16(r1) ffc0e718: 7c be 2b 78 mr r30,r5 ffc0e71c: 93 e1 00 14 stw r31,20(r1) * then it is forbidden to lock a mutex. But since we are inside * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { ffc0e720: 40 be 00 30 bne+ cr7,ffc0e750 <_Protected_heap_Walk+0x64> _RTEMS_Lock_allocator(); ffc0e724: 3f e0 00 00 lis r31,0 ffc0e728: 80 7f 28 4c lwz r3,10316(r31) ffc0e72c: 4b ff dc 9d bl ffc0c3c8 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Walk( the_heap, source, do_dump ); ffc0e730: 7f c5 f3 78 mr r5,r30 ffc0e734: 7f 83 e3 78 mr r3,r28 ffc0e738: 7f a4 eb 78 mr r4,r29 ffc0e73c: 4b ff ed 31 bl ffc0d46c <_Heap_Walk> <== ALWAYS TAKEN ffc0e740: 7c 7e 1b 78 mr r30,r3 _RTEMS_Unlock_allocator(); ffc0e744: 80 7f 28 4c lwz r3,10316(r31) ffc0e748: 4b ff dd 01 bl ffc0c448 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc0e74c: 48 00 00 0c b ffc0e758 <_Protected_heap_Walk+0x6c> <== ALWAYS TAKEN } else { status = _Heap_Walk( the_heap, source, do_dump ); ffc0e750: 4b ff ed 1d bl ffc0d46c <_Heap_Walk> <== ALWAYS TAKEN ffc0e754: 7c 7e 1b 78 mr r30,r3 } return status; } ffc0e758: 80 01 00 1c lwz r0,28(r1) ffc0e75c: 7f c3 f3 78 mr r3,r30 ffc0e760: 83 81 00 08 lwz r28,8(r1) ffc0e764: 7c 08 03 a6 mtlr r0 ffc0e768: 83 a1 00 0c lwz r29,12(r1) ffc0e76c: 83 c1 00 10 lwz r30,16(r1) ffc0e770: 83 e1 00 14 lwz r31,20(r1) ffc0e774: 38 21 00 18 addi r1,r1,24 ffc0e778: 4e 80 00 20 blr <== ALWAYS TAKEN ffc085c0 <_RTEMS_API_Initialize>: * * XXX */ void _RTEMS_API_Initialize(void) { ffc085c0: 94 21 ff f8 stwu r1,-8(r1) ffc085c4: 7c 08 02 a6 mflr r0 /* * Install our API Object Management Table and initialize the * various managers. */ _Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects; ffc085c8: 3d 20 00 00 lis r9,0 * * XXX */ void _RTEMS_API_Initialize(void) { ffc085cc: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN /* * Install our API Object Management Table and initialize the * various managers. */ _Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects; ffc085d0: 38 09 31 44 addi r0,r9,12612 ffc085d4: 3d 20 00 00 lis r9,0 ffc085d8: 90 09 2c 28 stw r0,11304(r9) #if defined(RTEMS_MULTIPROCESSING) _Multiprocessing_Manager_initialization(); #endif _RTEMS_tasks_Manager_initialization(); ffc085dc: 48 00 5c 01 bl ffc0e1dc <_RTEMS_tasks_Manager_initialization> <== ALWAYS TAKEN _Timer_Manager_initialization(); ffc085e0: 48 00 5a cd bl ffc0e0ac <_Timer_Manager_initialization> <== ALWAYS TAKEN _Signal_Manager_initialization(); ffc085e4: 48 00 5b 5d bl ffc0e140 <_Signal_Manager_initialization> <== ALWAYS TAKEN _Event_Manager_initialization(); ffc085e8: 48 00 59 a5 bl ffc0df8c <_Event_Manager_initialization> <== ALWAYS TAKEN _Message_queue_Manager_initialization(); ffc085ec: 48 00 59 b1 bl ffc0df9c <_Message_queue_Manager_initialization> <== ALWAYS TAKEN _Semaphore_Manager_initialization(); ffc085f0: 48 00 5b 0d bl ffc0e0fc <_Semaphore_Manager_initialization> <== ALWAYS TAKEN _Partition_Manager_initialization(); ffc085f4: 48 00 59 ed bl ffc0dfe0 <_Partition_Manager_initialization> <== ALWAYS TAKEN _Region_Manager_initialization(); ffc085f8: 48 00 5a 71 bl ffc0e068 <_Region_Manager_initialization> <== ALWAYS TAKEN _Dual_ported_memory_Manager_initialization(); ffc085fc: 48 00 59 4d bl ffc0df48 <_Dual_ported_memory_Manager_initialization> <== ALWAYS TAKEN _Rate_monotonic_Manager_initialization(); ffc08600: 48 00 5a 25 bl ffc0e024 <_Rate_monotonic_Manager_initialization> <== ALWAYS TAKEN _Barrier_Manager_initialization(); ffc08604: 48 00 59 01 bl ffc0df04 <_Barrier_Manager_initialization> <== ALWAYS TAKEN } ffc08608: 80 01 00 0c lwz r0,12(r1) ffc0860c: 38 21 00 08 addi r1,r1,8 ffc08610: 7c 08 03 a6 mtlr r0 ffc08614: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e410 <_RTEMS_Tasks_Invoke_task_variable_dtor>: void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { ffc0e410: 94 21 ff f0 stwu r1,-16(r1) ffc0e414: 7c 08 02 a6 mflr r0 void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { ffc0e418: 3d 20 00 00 lis r9,0 void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { ffc0e41c: 90 01 00 14 stw r0,20(r1) void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { ffc0e420: 80 09 27 b0 lwz r0,10160(r9) void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { ffc0e424: 93 e1 00 0c stw r31,12(r1) ffc0e428: 7c 9f 23 78 mr r31,r4 void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { ffc0e42c: 7f 80 18 00 cmpw cr7,r0,r3 ) { void (*dtor)(void *); void *value; dtor = tvp->dtor; ffc0e430: 80 04 00 10 lwz r0,16(r4) if (_Thread_Is_executing(the_thread)) { ffc0e434: 40 be 00 18 bne+ cr7,ffc0e44c <_RTEMS_Tasks_Invoke_task_variable_dtor+0x3c> value = *tvp->ptr; ffc0e438: 81 24 00 04 lwz r9,4(r4) *tvp->ptr = tvp->gval; ffc0e43c: 81 64 00 08 lwz r11,8(r4) void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { value = *tvp->ptr; ffc0e440: 80 69 00 00 lwz r3,0(r9) *tvp->ptr = tvp->gval; ffc0e444: 91 69 00 00 stw r11,0(r9) ffc0e448: 48 00 00 08 b ffc0e450 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x40> <== ALWAYS TAKEN } else { value = tvp->tval; ffc0e44c: 80 64 00 0c lwz r3,12(r4) } if ( dtor ) ffc0e450: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e454: 41 9e 00 0c beq- cr7,ffc0e460 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x50> (*dtor)(value); ffc0e458: 7c 09 03 a6 mtctr r0 ffc0e45c: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Workspace_Free(tvp); ffc0e460: 7f e3 fb 78 mr r3,r31 ffc0e464: 4b ff d7 b1 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN } ffc0e468: 80 01 00 14 lwz r0,20(r1) ffc0e46c: 83 e1 00 0c lwz r31,12(r1) ffc0e470: 38 21 00 10 addi r1,r1,16 ffc0e474: 7c 08 03 a6 mtlr r0 ffc0e478: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e360 <_RTEMS_tasks_Create_extension>: bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { ffc0e360: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0e364: 7c 08 02 a6 mflr r0 ffc0e368: 93 e1 00 0c stw r31,12(r1) /* * Notepads must be the last entry in the structure and they * can be left off if disabled in the configuration. */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) ffc0e36c: 3f e0 00 00 lis r31,0 <== ALWAYS TAKEN ffc0e370: 3b ff 20 70 addi r31,r31,8304 bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { ffc0e374: 90 01 00 14 stw r0,20(r1) /* * Notepads must be the last entry in the structure and they * can be left off if disabled in the configuration. */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) ffc0e378: 88 1f 00 04 lbz r0,4(r31) bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { ffc0e37c: 93 c1 00 08 stw r30,8(r1) ffc0e380: 7c 9e 23 78 mr r30,r4 /* * Notepads must be the last entry in the structure and they * can be left off if disabled in the configuration. */ to_allocate = sizeof( RTEMS_API_Control ); if ( !rtems_configuration_get_notepads_enabled() ) ffc0e384: 7c 00 00 d0 neg r0,r0 ffc0e388: 54 03 3e 72 rlwinm r3,r0,7,25,25 <== ALWAYS TAKEN to_allocate -= (RTEMS_NUMBER_NOTEPADS * sizeof(uint32_t)); api = _Workspace_Allocate( to_allocate ); ffc0e38c: 38 63 00 20 addi r3,r3,32 <== ALWAYS TAKEN ffc0e390: 4b ff d8 51 bl ffc0bbe0 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !api ) ffc0e394: 7c 69 1b 79 mr. r9,r3 ffc0e398: 38 60 00 00 li r3,0 ffc0e39c: 41 82 00 5c beq- ffc0e3f8 <_RTEMS_tasks_Create_extension+0x98> return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; api->pending_events = EVENT_SETS_NONE_PENDING; ffc0e3a0: 38 00 00 00 li r0,0 api = _Workspace_Allocate( to_allocate ); if ( !api ) return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; ffc0e3a4: 91 3e 01 44 stw r9,324(r30) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; ffc0e3a8: 98 09 00 08 stb r0,8(r9) api->pending_events = EVENT_SETS_NONE_PENDING; api->event_condition = 0; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { ffc0e3ac: 89 7f 00 04 lbz r11,4(r31) created->API_Extensions[ THREAD_API_RTEMS ] = api; api->pending_events = EVENT_SETS_NONE_PENDING; api->event_condition = 0; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; ffc0e3b0: 90 1e 01 54 stw r0,340(r30) if ( rtems_configuration_get_notepads_enabled() ) { ffc0e3b4: 2f 8b 00 00 cmpwi cr7,r11,0 <== ALWAYS TAKEN if ( !api ) return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; api->pending_events = EVENT_SETS_NONE_PENDING; ffc0e3b8: 90 09 00 00 stw r0,0(r9) api->event_condition = 0; ffc0e3bc: 90 09 00 04 stw r0,4(r9) <== ALWAYS TAKEN information->handler = NULL; ffc0e3c0: 90 09 00 0c stw r0,12(r9) information->mode_set = RTEMS_DEFAULT_MODES; ffc0e3c4: 90 09 00 10 stw r0,16(r9) information->signals_posted = 0; ffc0e3c8: 90 09 00 14 stw r0,20(r9) information->signals_pending = 0; ffc0e3cc: 90 09 00 18 stw r0,24(r9) information->nest_level = 0; ffc0e3d0: 90 09 00 1c stw r0,28(r9) _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { ffc0e3d4: 41 9e 00 20 beq- cr7,ffc0e3f4 <_RTEMS_tasks_Create_extension+0x94> for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; ffc0e3d8: 39 40 00 10 li r10,16 <== ALWAYS TAKEN ffc0e3dc: 7d 49 03 a6 mtctr r10 api->pending_events = EVENT_SETS_NONE_PENDING; api->event_condition = 0; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { ffc0e3e0: 39 60 00 00 li r11,0 for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; ffc0e3e4: 7d 49 5a 14 add r10,r9,r11 ffc0e3e8: 90 0a 00 20 stw r0,32(r10) ffc0e3ec: 39 6b 00 04 addi r11,r11,4 api->event_condition = 0; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) ffc0e3f0: 42 00 ff f4 bdnz+ ffc0e3e4 <_RTEMS_tasks_Create_extension+0x84> ffc0e3f4: 38 60 00 01 li r3,1 api->Notepads[i] = 0; } return true; } ffc0e3f8: 80 01 00 14 lwz r0,20(r1) ffc0e3fc: 83 c1 00 08 lwz r30,8(r1) ffc0e400: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e404: 83 e1 00 0c lwz r31,12(r1) ffc0e408: 38 21 00 10 addi r1,r1,16 ffc0e40c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e2fc <_RTEMS_tasks_Delete_extension>: void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { ffc0e2fc: 94 21 ff f0 stwu r1,-16(r1) ffc0e300: 7c 08 02 a6 mflr r0 ffc0e304: 90 01 00 14 stw r0,20(r1) /* * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; ffc0e308: 38 00 00 00 li r0,0 void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { ffc0e30c: 93 c1 00 08 stw r30,8(r1) ffc0e310: 93 e1 00 0c stw r31,12(r1) ffc0e314: 7c 9f 23 78 mr r31,r4 /* * Free per task variable memory */ tvp = deleted->task_variables; ffc0e318: 83 c4 01 54 lwz r30,340(r4) deleted->task_variables = NULL; ffc0e31c: 90 04 01 54 stw r0,340(r4) while (tvp) { ffc0e320: 48 00 00 0c b ffc0e32c <_RTEMS_tasks_Delete_extension+0x30> <== ALWAYS TAKEN next = (rtems_task_variable_t *)tvp->next; ffc0e324: 83 de 00 00 lwz r30,0(r30) _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); ffc0e328: 48 00 00 e9 bl ffc0e410 <_RTEMS_Tasks_Invoke_task_variable_dtor> <== ALWAYS TAKEN * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { ffc0e32c: 2f 9e 00 00 cmpwi cr7,r30,0 next = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); ffc0e330: 7f c4 f3 78 mr r4,r30 <== ALWAYS TAKEN ffc0e334: 7f e3 fb 78 mr r3,r31 * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { ffc0e338: 40 9e ff ec bne+ cr7,ffc0e324 <_RTEMS_tasks_Delete_extension+0x28> /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); ffc0e33c: 80 7f 01 44 lwz r3,324(r31) ffc0e340: 4b ff d8 d5 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; } ffc0e344: 80 01 00 14 lwz r0,20(r1) /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; ffc0e348: 93 df 01 44 stw r30,324(r31) } ffc0e34c: 7c 08 03 a6 mtlr r0 ffc0e350: 83 c1 00 08 lwz r30,8(r1) ffc0e354: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc0e358: 38 21 00 10 addi r1,r1,16 ffc0e35c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e1a8 <_RTEMS_tasks_Initialize_user_tasks>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { ffc0e1a8: 7c 08 02 a6 mflr r0 ffc0e1ac: 94 21 ff f8 stwu r1,-8(r1) if ( _RTEMS_tasks_Initialize_user_tasks_p ) ffc0e1b0: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { ffc0e1b4: 90 01 00 0c stw r0,12(r1) if ( _RTEMS_tasks_Initialize_user_tasks_p ) ffc0e1b8: 80 09 26 a8 lwz r0,9896(r9) ffc0e1bc: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc0e1c0: 41 9e 00 0c beq- cr7,ffc0e1cc <_RTEMS_tasks_Initialize_user_tasks+0x24> (*_RTEMS_tasks_Initialize_user_tasks_p)(); ffc0e1c4: 7c 09 03 a6 mtctr r0 ffc0e1c8: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0e1cc: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0e1d0: 38 21 00 08 addi r1,r1,8 ffc0e1d4: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e1d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0804c <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc0804c: 94 21 ff d8 stwu r1,-40(r1) ffc08050: 7c 08 02 a6 mflr r0 rtems_initialization_tasks_table *user_tasks; /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; ffc08054: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08058: 90 01 00 2c stw r0,44(r1) <== ALWAYS TAKEN rtems_initialization_tasks_table *user_tasks; /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; ffc0805c: 39 29 20 70 addi r9,r9,8304 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08060: 93 e1 00 24 stw r31,36(r1) rtems_initialization_tasks_table *user_tasks; /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; ffc08064: 83 e9 00 2c lwz r31,44(r9) * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08068: 93 81 00 18 stw r28,24(r1) maximum = Configuration_RTEMS_API.number_of_initialization_tasks; /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) ffc0806c: 2f 9f 00 00 cmpwi cr7,r31,0 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08070: 93 a1 00 1c stw r29,28(r1) /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( ffc08074: 3b a1 00 08 addi r29,r1,8 <== ALWAYS TAKEN * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08078: 93 c1 00 20 stw r30,32(r1) maximum = Configuration_RTEMS_API.number_of_initialization_tasks; /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) ffc0807c: 3b c0 00 00 li r30,0 /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; maximum = Configuration_RTEMS_API.number_of_initialization_tasks; ffc08080: 83 89 00 28 lwz r28,40(r9) /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) ffc08084: 40 be 00 58 bne+ cr7,ffc080dc <_RTEMS_tasks_Initialize_user_tasks_body+0x90> ffc08088: 48 00 00 5c b ffc080e4 <_RTEMS_tasks_Initialize_user_tasks_body+0x98> <== ALWAYS TAKEN /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { return_value = rtems_task_create( ffc0808c: 80 bf 00 04 lwz r5,4(r31) ffc08090: 7f a8 eb 78 mr r8,r29 ffc08094: 80 7f 00 00 lwz r3,0(r31) ffc08098: 80 9f 00 08 lwz r4,8(r31) ffc0809c: 80 df 00 14 lwz r6,20(r31) ffc080a0: 80 ff 00 0c lwz r7,12(r31) ffc080a4: 4b ff fd 29 bl ffc07dcc <== ALWAYS TAKEN user_tasks[ index ].stack_size, user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) ffc080a8: 7c 65 1b 79 mr. r5,r3 ffc080ac: 40 82 00 20 bne- ffc080cc <_RTEMS_tasks_Initialize_user_tasks_body+0x80> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( ffc080b0: 80 bf 00 18 lwz r5,24(r31) ffc080b4: 80 9f 00 10 lwz r4,16(r31) ffc080b8: 3b ff 00 1c addi r31,r31,28 ffc080bc: 80 61 00 08 lwz r3,8(r1) ffc080c0: 48 00 00 45 bl ffc08104 <== ALWAYS TAKEN id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) ffc080c4: 7c 65 1b 79 mr. r5,r3 <== ALWAYS TAKEN ffc080c8: 41 a2 00 10 beq+ ffc080d8 <_RTEMS_tasks_Initialize_user_tasks_body+0x8c> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); ffc080cc: 38 60 00 01 li r3,1 ffc080d0: 38 80 00 01 li r4,1 ffc080d4: 48 00 11 5d bl ffc09230 <_Internal_error_Occurred> <== ALWAYS TAKEN return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { ffc080d8: 3b de 00 01 addi r30,r30,1 ffc080dc: 7f 9e e0 40 cmplw cr7,r30,r28 ffc080e0: 41 9c ff ac blt+ cr7,ffc0808c <_RTEMS_tasks_Initialize_user_tasks_body+0x40> user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); } } ffc080e4: 80 01 00 2c lwz r0,44(r1) ffc080e8: 83 81 00 18 lwz r28,24(r1) ffc080ec: 7c 08 03 a6 mtlr r0 ffc080f0: 83 a1 00 1c lwz r29,28(r1) ffc080f4: 83 c1 00 20 lwz r30,32(r1) <== ALWAYS TAKEN ffc080f8: 83 e1 00 24 lwz r31,36(r1) ffc080fc: 38 21 00 28 addi r1,r1,40 ffc08100: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e1dc <_RTEMS_tasks_Manager_initialization>: * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { ffc0e1dc: 94 21 ff f0 stwu r1,-16(r1) _Objects_Initialize_information( ffc0e1e0: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { ffc0e1e4: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e1e8: 3c 60 00 00 lis r3,0 ffc0e1ec: 80 c9 20 70 lwz r6,8304(r9) ffc0e1f0: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { ffc0e1f4: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _User_extensions_Add_API_set( User_extensions_Control *extension ) { _User_extensions_Add_set( extension ); ffc0e1f8: 3f e0 00 00 lis r31,0 _Objects_Initialize_information( ffc0e1fc: 38 a0 00 01 li r5,1 ffc0e200: 38 e0 01 58 li r7,344 * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { ffc0e204: 90 01 00 14 stw r0,20(r1) _Objects_Initialize_information( ffc0e208: 39 00 00 00 li r8,0 ffc0e20c: 39 20 00 04 li r9,4 ffc0e210: 3b ff 21 bc addi r31,r31,8636 ffc0e214: 38 63 2b c4 addi r3,r3,11204 ffc0e218: 4b ff b6 b5 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN ffc0e21c: 7f e3 fb 78 mr r3,r31 ffc0e220: 48 00 0e fd bl ffc0f11c <_User_extensions_Add_set> <== ALWAYS TAKEN * Add all the extensions for this API */ _User_extensions_Add_API_set( &_RTEMS_tasks_User_extensions ); _API_extensions_Add( &_RTEMS_tasks_API_extensions ); ffc0e224: 38 7f 00 34 addi r3,r31,52 ffc0e228: 4b ff a4 d5 bl ffc086fc <_API_extensions_Add> <== ALWAYS TAKEN MP_PACKET_TASKS, _RTEMS_tasks_MP_Process_packet ); #endif } ffc0e22c: 80 01 00 14 lwz r0,20(r1) ffc0e230: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc0e234: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0e238: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e23c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e240 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0e240: 94 21 ff d8 stwu r1,-40(r1) ffc0e244: 7c 08 02 a6 mflr r0 ffc0e248: 90 01 00 2c stw r0,44(r1) ffc0e24c: 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 ]; ffc0e250: 83 e3 01 44 lwz r31,324(r3) */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0e254: 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 ) ffc0e258: 2f 9f 00 00 cmpwi cr7,r31,0 */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0e25c: 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 ) ffc0e260: 41 9e 00 80 beq- cr7,ffc0e2e0 <_RTEMS_tasks_Post_switch_extension+0xa0> <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e264: 7c 00 00 a6 mfmsr r0 ffc0e268: 7d 30 42 a6 mfsprg r9,0 ffc0e26c: 7c 09 48 78 andc r9,r0,r9 ffc0e270: 7d 20 01 24 mtmsr r9 asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; asr->signals_posted = 0; ffc0e274: 39 20 00 00 li r9,0 */ asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; ffc0e278: 83 bf 00 14 lwz r29,20(r31) asr->signals_posted = 0; ffc0e27c: 91 3f 00 14 stw r9,20(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e280: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ ffc0e284: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0e288: 41 be 00 58 beq+ cr7,ffc0e2e0 <_RTEMS_tasks_Post_switch_extension+0xa0> return; asr->nest_level += 1; ffc0e28c: 81 3f 00 1c lwz r9,28(r31) rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0e290: 3b c1 00 08 addi r30,r1,8 ffc0e294: 80 7f 00 10 lwz r3,16(r31) ffc0e298: 38 80 00 00 li r4,0 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; ffc0e29c: 38 09 00 01 addi r0,r9,1 ffc0e2a0: 90 1f 00 1c stw r0,28(r31) rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0e2a4: 60 84 ff ff ori r4,r4,65535 ffc0e2a8: 7f c5 f3 78 mr r5,r30 ffc0e2ac: 48 00 27 5d bl ffc10a08 <== ALWAYS TAKEN (*asr->handler)( signal_set ); ffc0e2b0: 80 1f 00 0c lwz r0,12(r31) ffc0e2b4: 7f a3 eb 78 mr r3,r29 ffc0e2b8: 7c 09 03 a6 mtctr r0 ffc0e2bc: 4e 80 04 21 bctrl <== ALWAYS TAKEN asr->nest_level -= 1; ffc0e2c0: 81 3f 00 1c lwz r9,28(r31) rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0e2c4: 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; ffc0e2c8: 38 09 ff ff addi r0,r9,-1 ffc0e2cc: 90 1f 00 1c stw r0,28(r31) rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0e2d0: 60 84 ff ff ori r4,r4,65535 ffc0e2d4: 7f c5 f3 78 mr r5,r30 ffc0e2d8: 80 61 00 08 lwz r3,8(r1) ffc0e2dc: 48 00 27 2d bl ffc10a08 <== ALWAYS TAKEN } ffc0e2e0: 80 01 00 2c lwz r0,44(r1) ffc0e2e4: 83 a1 00 1c lwz r29,28(r1) ffc0e2e8: 7c 08 03 a6 mtlr r0 ffc0e2ec: 83 c1 00 20 lwz r30,32(r1) ffc0e2f0: 83 e1 00 24 lwz r31,36(r1) ffc0e2f4: 38 21 00 28 addi r1,r1,40 ffc0e2f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e144 <_RTEMS_tasks_Start_extension>: { RTEMS_API_Control *api; api = started->API_Extensions[ THREAD_API_RTEMS ]; api->pending_events = EVENT_SETS_NONE_PENDING; ffc0e144: 81 24 01 44 lwz r9,324(r4) ffc0e148: 38 00 00 00 li r0,0 ffc0e14c: 90 09 00 00 stw r0,0(r9) } ffc0e150: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e154 <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables; ffc0e154: 81 23 01 54 lwz r9,340(r3) while (tvp) { ffc0e158: 48 00 00 1c b ffc0e174 <_RTEMS_tasks_Switch_extension+0x20> <== ALWAYS TAKEN tvp->tval = *tvp->ptr; ffc0e15c: 81 69 00 04 lwz r11,4(r9) *tvp->ptr = tvp->gval; ffc0e160: 80 09 00 08 lwz r0,8(r9) * Per Task Variables */ tvp = executing->task_variables; while (tvp) { tvp->tval = *tvp->ptr; ffc0e164: 81 4b 00 00 lwz r10,0(r11) ffc0e168: 91 49 00 0c stw r10,12(r9) *tvp->ptr = tvp->gval; ffc0e16c: 90 0b 00 00 stw r0,0(r11) tvp = (rtems_task_variable_t *)tvp->next; ffc0e170: 81 29 00 00 lwz r9,0(r9) /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { ffc0e174: 2f 89 00 00 cmpwi cr7,r9,0 ffc0e178: 40 9e ff e4 bne+ cr7,ffc0e15c <_RTEMS_tasks_Switch_extension+0x8> tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; ffc0e17c: 81 24 01 54 lwz r9,340(r4) while (tvp) { ffc0e180: 48 00 00 1c b ffc0e19c <_RTEMS_tasks_Switch_extension+0x48> <== ALWAYS TAKEN tvp->gval = *tvp->ptr; ffc0e184: 81 69 00 04 lwz r11,4(r9) *tvp->ptr = tvp->tval; ffc0e188: 80 09 00 0c lwz r0,12(r9) tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { tvp->gval = *tvp->ptr; ffc0e18c: 81 4b 00 00 lwz r10,0(r11) ffc0e190: 91 49 00 08 stw r10,8(r9) *tvp->ptr = tvp->tval; ffc0e194: 90 0b 00 00 stw r0,0(r11) tvp = (rtems_task_variable_t *)tvp->next; ffc0e198: 81 29 00 00 lwz r9,0(r9) *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { ffc0e19c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0e1a0: 40 9e ff e4 bne+ cr7,ffc0e184 <_RTEMS_tasks_Switch_extension+0x30> tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; } } ffc0e1a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc41910 <_Rate_monotonic_Get_status>: bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) { ffc41910: 94 21 ff c0 stwu r1,-64(r1) ffc41914: 7c 08 02 a6 mflr r0 ffc41918: 93 e1 00 3c stw r31,60(r1) /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); ffc4191c: 3b e1 00 08 addi r31,r1,8 bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) { ffc41920: 90 01 00 44 stw r0,68(r1) ffc41924: 93 61 00 2c stw r27,44(r1) ffc41928: 7c 9b 23 78 mr r27,r4 ffc4192c: 93 c1 00 38 stw r30,56(r1) ffc41930: 7c 7e 1b 78 mr r30,r3 /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); ffc41934: 7f e3 fb 78 mr r3,r31 bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) { ffc41938: 93 81 00 30 stw r28,48(r1) ffc4193c: 7c bc 2b 78 mr r28,r5 ffc41940: 93 a1 00 34 stw r29,52(r1) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner; ffc41944: 83 be 00 40 lwz r29,64(r30) /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); ffc41948: 4b fe d8 c5 bl ffc2f20c <_TOD_Get_uptime> <== ALWAYS TAKEN _Timestamp_Subtract( ffc4194c: 38 7e 00 4c addi r3,r30,76 ffc41950: 7f 65 db 78 mr r5,r27 ffc41954: 7f e4 fb 78 mr r4,r31 ffc41958: 4b fc f6 a1 bl ffc10ff8 <_Timespec_Subtract> <== ALWAYS TAKEN * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc4195c: 3d 20 00 00 lis r9,0 ffc41960: 80 09 36 58 lwz r0,13912(r9) ffc41964: 38 60 00 01 li r3,1 #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; ffc41968: 81 3d 00 84 lwz r9,132(r29) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc4196c: 7f 9d 00 00 cmpw cr7,r29,r0 #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; ffc41970: 81 5d 00 88 lwz r10,136(r29) ffc41974: 91 21 00 10 stw r9,16(r1) ffc41978: 91 41 00 14 stw r10,20(r1) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc4197c: 40 be 00 5c bne+ cr7,ffc419d8 <_Rate_monotonic_Get_status+0xc8> Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( ffc41980: 3b a1 00 18 addi r29,r1,24 ffc41984: 3c 60 00 00 lis r3,0 ffc41988: 7f e4 fb 78 mr r4,r31 ffc4198c: 7f a5 eb 78 mr r5,r29 ffc41990: 38 63 36 60 addi r3,r3,13920 &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); ffc41994: 3b e1 00 10 addi r31,r1,16 if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( ffc41998: 4b fc f6 61 bl ffc10ff8 <_Timespec_Subtract> <== ALWAYS TAKEN /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) ffc4199c: 3b de 00 44 addi r30,r30,68 _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); ffc419a0: 7f a4 eb 78 mr r4,r29 ffc419a4: 7f e3 fb 78 mr r3,r31 ffc419a8: 4b fc f5 ed bl ffc10f94 <_Timespec_Add_to> <== ALWAYS TAKEN /* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated)) ffc419ac: 7f e3 fb 78 mr r3,r31 ffc419b0: 7f c4 f3 78 mr r4,r30 ffc419b4: 48 00 0b a9 bl ffc4255c <_Timespec_Less_than> <== ALWAYS TAKEN ffc419b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc419bc: 38 60 00 00 li r3,0 ffc419c0: 40 be 00 18 bne+ cr7,ffc419d8 <_Rate_monotonic_Get_status+0xc8> return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract( ffc419c4: 7f c3 f3 78 mr r3,r30 ffc419c8: 7f e4 fb 78 mr r4,r31 ffc419cc: 7f 85 e3 78 mr r5,r28 ffc419d0: 4b fc f6 29 bl ffc10ff8 <_Timespec_Subtract> <== ALWAYS TAKEN ffc419d4: 38 60 00 01 li r3,1 return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } ffc419d8: 80 01 00 44 lwz r0,68(r1) ffc419dc: 83 61 00 2c lwz r27,44(r1) ffc419e0: 7c 08 03 a6 mtlr r0 ffc419e4: 83 81 00 30 lwz r28,48(r1) ffc419e8: 83 a1 00 34 lwz r29,52(r1) ffc419ec: 83 c1 00 38 lwz r30,56(r1) ffc419f0: 83 e1 00 3c lwz r31,60(r1) ffc419f4: 38 21 00 40 addi r1,r1,64 ffc419f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc41874 <_Rate_monotonic_Initiate_statistics>: } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { ffc41874: 94 21 ff d8 stwu r1,-40(r1) ffc41878: 7c 08 02 a6 mflr r0 ffc4187c: 93 a1 00 1c stw r29,28(r1) * If using nanosecond statistics, we need to obtain the uptime. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; _TOD_Get_uptime( &uptime ); ffc41880: 3b a1 00 08 addi r29,r1,8 } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { ffc41884: 90 01 00 2c stw r0,44(r1) ffc41888: 93 e1 00 24 stw r31,36(r1) ffc4188c: 7c 7f 1b 78 mr r31,r3 * If using nanosecond statistics, we need to obtain the uptime. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; _TOD_Get_uptime( &uptime ); ffc41890: 7f a3 eb 78 mr r3,r29 } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { ffc41894: 93 c1 00 20 stw r30,32(r1) Thread_Control *owning_thread = the_period->owner; ffc41898: 83 df 00 40 lwz r30,64(r31) * If using nanosecond statistics, we need to obtain the uptime. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; _TOD_Get_uptime( &uptime ); ffc4189c: 4b fe d9 71 bl ffc2f20c <_TOD_Get_uptime> <== ALWAYS TAKEN * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc418a0: 3d 20 00 00 lis r9,0 /* * Set the starting point and the CPU time used for the statistics. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ the_period->time_period_initiated = uptime; ffc418a4: 81 41 00 0c lwz r10,12(r1) * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc418a8: 80 09 36 58 lwz r0,13912(r9) /* * Set the starting point and the CPU time used for the statistics. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ the_period->time_period_initiated = uptime; ffc418ac: 81 21 00 08 lwz r9,8(r1) * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc418b0: 7f 9e 00 00 cmpw cr7,r30,r0 /* * Set the starting point and the CPU time used for the statistics. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ the_period->time_period_initiated = uptime; ffc418b4: 91 5f 00 50 stw r10,80(r31) ffc418b8: 91 3f 00 4c stw r9,76(r31) #else the_period->time_period_initiated = _Watchdog_Ticks_since_boot; #endif the_period->cpu_usage_period_initiated = owning_thread->cpu_time_used; ffc418bc: 81 3e 00 84 lwz r9,132(r30) ffc418c0: 81 5e 00 88 lwz r10,136(r30) ffc418c4: 91 3f 00 44 stw r9,68(r31) ffc418c8: 91 5f 00 48 stw r10,72(r31) * routine is invoked from rtems_rate_monotonic_period, the owner will * be the executing thread. When this routine is invoked from * _Rate_monotonic_Timeout, it will not. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc418cc: 40 be 00 28 bne+ cr7,ffc418f4 <_Rate_monotonic_Initiate_statistics+0x80> /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( ffc418d0: 3b c1 00 10 addi r30,r1,16 ffc418d4: 3c 60 00 00 lis r3,0 ffc418d8: 38 63 36 60 addi r3,r3,13920 ffc418dc: 7f a4 eb 78 mr r4,r29 ffc418e0: 7f c5 f3 78 mr r5,r30 ffc418e4: 4b fc f7 15 bl ffc10ff8 <_Timespec_Subtract> <== ALWAYS TAKEN &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); ffc418e8: 38 7f 00 44 addi r3,r31,68 ffc418ec: 7f c4 f3 78 mr r4,r30 ffc418f0: 4b fc f6 a5 bl ffc10f94 <_Timespec_Add_to> <== ALWAYS TAKEN } #endif } ffc418f4: 80 01 00 2c lwz r0,44(r1) ffc418f8: 83 a1 00 1c lwz r29,28(r1) ffc418fc: 7c 08 03 a6 mtlr r0 ffc41900: 83 c1 00 20 lwz r30,32(r1) ffc41904: 83 e1 00 24 lwz r31,36(r1) ffc41908: 38 21 00 28 addi r1,r1,40 ffc4190c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e024 <_Rate_monotonic_Manager_initialization>: * Handler. */ void _Rate_monotonic_Manager_initialization(void) { _Objects_Initialize_information( ffc0e024: 3d 20 00 00 lis r9,0 * NOTE: The Rate Monotonic Manager is built on top of the Watchdog * Handler. */ void _Rate_monotonic_Manager_initialization(void) { ffc0e028: 94 21 ff f8 stwu r1,-8(r1) ffc0e02c: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e030: 3c 60 00 00 lis r3,0 ffc0e034: 80 c9 20 90 lwz r6,8336(r9) ffc0e038: 38 63 36 4c addi r3,r3,13900 ffc0e03c: 38 80 00 02 li r4,2 * NOTE: The Rate Monotonic Manager is built on top of the Watchdog * Handler. */ void _Rate_monotonic_Manager_initialization(void) { ffc0e040: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0e044: 38 a0 00 08 li r5,8 <== ALWAYS TAKEN ffc0e048: 38 e0 00 8c li r7,140 ffc0e04c: 39 00 00 00 li r8,0 ffc0e050: 39 20 00 04 li r9,4 ffc0e054: 4b ff b8 79 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0e058: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0e05c: 38 21 00 08 addi r1,r1,8 ffc0e060: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e064: 4e 80 00 20 blr <== ALWAYS TAKEN ffc41cf4 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { ffc41cf4: 94 21 ff e0 stwu r1,-32(r1) ffc41cf8: 7c 08 02 a6 mflr r0 ffc41cfc: 7c 64 1b 78 mr r4,r3 ffc41d00: 3c 60 00 00 lis r3,0 ffc41d04: 90 01 00 24 stw r0,36(r1) ffc41d08: 38 63 6f ec addi r3,r3,28652 ffc41d0c: 38 a1 00 08 addi r5,r1,8 ffc41d10: 93 e1 00 1c stw r31,28(r1) ffc41d14: 4b fc d5 f9 bl ffc0f30c <_Objects_Get> <== ALWAYS TAKEN /* * 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 ) { ffc41d18: 80 01 00 08 lwz r0,8(r1) ffc41d1c: 7c 7f 1b 78 mr r31,r3 ffc41d20: 2f 80 00 00 cmpwi cr7,r0,0 ffc41d24: 40 9e 00 84 bne- cr7,ffc41da8 <_Rate_monotonic_Timeout+0xb4> <== NEVER TAKEN case OBJECTS_LOCAL: the_thread = the_period->owner; ffc41d28: 80 63 00 40 lwz r3,64(r3) if ( _States_Is_waiting_for_period( the_thread->current_state ) && ffc41d2c: 80 03 00 10 lwz r0,16(r3) ffc41d30: 70 09 40 00 andi. r9,r0,16384 ffc41d34: 41 82 00 24 beq- ffc41d58 <_Rate_monotonic_Timeout+0x64> the_thread->Wait.id == the_period->Object.id ) { ffc41d38: 81 23 00 20 lwz r9,32(r3) ffc41d3c: 80 1f 00 08 lwz r0,8(r31) ffc41d40: 7f 89 00 00 cmpw cr7,r9,r0 ffc41d44: 40 be 00 14 bne+ cr7,ffc41d58 <_Rate_monotonic_Timeout+0x64> RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc41d48: 3c 80 10 03 lis r4,4099 ffc41d4c: 60 84 ff f8 ori r4,r4,65528 ffc41d50: 4b fc dd 15 bl ffc0fa64 <_Thread_Clear_state> <== ALWAYS TAKEN ffc41d54: 48 00 00 18 b ffc41d6c <_Rate_monotonic_Timeout+0x78> <== ALWAYS TAKEN _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 ) { ffc41d58: 80 1f 00 38 lwz r0,56(r31) ffc41d5c: 2f 80 00 01 cmpwi cr7,r0,1 ffc41d60: 40 be 00 30 bne+ cr7,ffc41d90 <_Rate_monotonic_Timeout+0x9c> the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; ffc41d64: 38 00 00 03 li r0,3 ffc41d68: 90 1f 00 38 stw r0,56(r31) _Rate_monotonic_Initiate_statistics( the_period ); ffc41d6c: 7f e3 fb 78 mr r3,r31 ffc41d70: 4b ff fb 05 bl ffc41874 <_Rate_monotonic_Initiate_statistics> <== ALWAYS TAKEN Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc41d74: 80 1f 00 3c lwz r0,60(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc41d78: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc41d7c: 90 1f 00 1c stw r0,28(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc41d80: 38 63 65 e8 addi r3,r3,26088 ffc41d84: 38 9f 00 10 addi r4,r31,16 ffc41d88: 4b fc f7 35 bl ffc114bc <_Watchdog_Insert> <== ALWAYS TAKEN ffc41d8c: 48 00 00 0c b ffc41d98 <_Rate_monotonic_Timeout+0xa4> <== ALWAYS TAKEN _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; ffc41d90: 38 00 00 04 li r0,4 ffc41d94: 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; ffc41d98: 3d 20 00 00 lis r9,0 ffc41d9c: 81 69 36 18 lwz r11,13848(r9) ffc41da0: 38 0b ff ff addi r0,r11,-1 ffc41da4: 90 09 36 18 stw r0,13848(r9) case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } ffc41da8: 80 01 00 24 lwz r0,36(r1) ffc41dac: 83 e1 00 1c lwz r31,28(r1) ffc41db0: 38 21 00 20 addi r1,r1,32 ffc41db4: 7c 08 03 a6 mtlr r0 ffc41db8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc419fc <_Rate_monotonic_Update_statistics>: } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { ffc419fc: 94 21 ff e0 stwu r1,-32(r1) ffc41a00: 7c 08 02 a6 mflr r0 ffc41a04: 90 01 00 24 stw r0,36(r1) * Update the counts. */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) ffc41a08: 80 03 00 38 lwz r0,56(r3) /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; ffc41a0c: 81 23 00 54 lwz r9,84(r3) if ( the_period->state == RATE_MONOTONIC_EXPIRED ) ffc41a10: 2f 80 00 04 cmpwi cr7,r0,4 } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { ffc41a14: 93 e1 00 1c stw r31,28(r1) /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; ffc41a18: 38 09 00 01 addi r0,r9,1 } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { ffc41a1c: 93 c1 00 18 stw r30,24(r1) ffc41a20: 7c 7f 1b 78 mr r31,r3 /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; ffc41a24: 90 03 00 54 stw r0,84(r3) if ( the_period->state == RATE_MONOTONIC_EXPIRED ) ffc41a28: 40 be 00 10 bne+ cr7,ffc41a38 <_Rate_monotonic_Update_statistics+0x3c> stats->missed_count++; ffc41a2c: 81 23 00 58 lwz r9,88(r3) ffc41a30: 38 09 00 01 addi r0,r9,1 ffc41a34: 90 03 00 58 stw r0,88(r3) /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); ffc41a38: 3b c1 00 08 addi r30,r1,8 ffc41a3c: 7f e3 fb 78 mr r3,r31 ffc41a40: 38 81 00 10 addi r4,r1,16 ffc41a44: 7f c5 f3 78 mr r5,r30 ffc41a48: 4b ff fe c9 bl ffc41910 <_Rate_monotonic_Get_status> <== ALWAYS TAKEN if (!valid_status) ffc41a4c: 2f 83 00 00 cmpwi cr7,r3,0 ffc41a50: 41 be 00 b0 beq+ cr7,ffc41b00 <_Rate_monotonic_Update_statistics+0x104> /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); ffc41a54: 7f c4 f3 78 mr r4,r30 ffc41a58: 38 7f 00 6c addi r3,r31,108 <== ALWAYS TAKEN ffc41a5c: 4b fc f5 39 bl ffc10f94 <_Timespec_Add_to> <== ALWAYS TAKEN if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) ffc41a60: 7f c3 f3 78 mr r3,r30 ffc41a64: 38 9f 00 5c addi r4,r31,92 ffc41a68: 48 00 0a f5 bl ffc4255c <_Timespec_Less_than> <== ALWAYS TAKEN ffc41a6c: 2f 83 00 00 cmpwi cr7,r3,0 ffc41a70: 41 9e 00 14 beq- cr7,ffc41a84 <_Rate_monotonic_Update_statistics+0x88> stats->min_cpu_time = executed; ffc41a74: 81 21 00 08 lwz r9,8(r1) ffc41a78: 81 41 00 0c lwz r10,12(r1) ffc41a7c: 91 3f 00 5c stw r9,92(r31) ffc41a80: 91 5f 00 60 stw r10,96(r31) if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) ffc41a84: 38 61 00 08 addi r3,r1,8 ffc41a88: 38 9f 00 64 addi r4,r31,100 ffc41a8c: 48 00 0a 95 bl ffc42520 <_Timespec_Greater_than> <== ALWAYS TAKEN ffc41a90: 2f 83 00 00 cmpwi cr7,r3,0 ffc41a94: 41 9e 00 14 beq- cr7,ffc41aa8 <_Rate_monotonic_Update_statistics+0xac> stats->max_cpu_time = executed; ffc41a98: 81 21 00 08 lwz r9,8(r1) ffc41a9c: 81 41 00 0c lwz r10,12(r1) ffc41aa0: 91 3f 00 64 stw r9,100(r31) ffc41aa4: 91 5f 00 68 stw r10,104(r31) /* * Update Wall time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); ffc41aa8: 3b c1 00 10 addi r30,r1,16 ffc41aac: 7f c4 f3 78 mr r4,r30 ffc41ab0: 38 7f 00 84 addi r3,r31,132 ffc41ab4: 4b fc f4 e1 bl ffc10f94 <_Timespec_Add_to> <== ALWAYS TAKEN if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) ffc41ab8: 7f c3 f3 78 mr r3,r30 ffc41abc: 38 9f 00 74 addi r4,r31,116 ffc41ac0: 48 00 0a 9d bl ffc4255c <_Timespec_Less_than> <== ALWAYS TAKEN ffc41ac4: 2f 83 00 00 cmpwi cr7,r3,0 ffc41ac8: 41 9e 00 14 beq- cr7,ffc41adc <_Rate_monotonic_Update_statistics+0xe0> stats->min_wall_time = since_last_period; ffc41acc: 81 21 00 10 lwz r9,16(r1) ffc41ad0: 81 41 00 14 lwz r10,20(r1) ffc41ad4: 91 3f 00 74 stw r9,116(r31) ffc41ad8: 91 5f 00 78 stw r10,120(r31) if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) ffc41adc: 38 61 00 10 addi r3,r1,16 ffc41ae0: 38 9f 00 7c addi r4,r31,124 ffc41ae4: 48 00 0a 3d bl ffc42520 <_Timespec_Greater_than> <== ALWAYS TAKEN ffc41ae8: 2f 83 00 00 cmpwi cr7,r3,0 ffc41aec: 41 9e 00 14 beq- cr7,ffc41b00 <_Rate_monotonic_Update_statistics+0x104> stats->max_wall_time = since_last_period; ffc41af0: 81 21 00 10 lwz r9,16(r1) ffc41af4: 81 41 00 14 lwz r10,20(r1) ffc41af8: 91 3f 00 7c stw r9,124(r31) ffc41afc: 91 5f 00 80 stw r10,128(r31) stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #endif } ffc41b00: 80 01 00 24 lwz r0,36(r1) ffc41b04: 83 c1 00 18 lwz r30,24(r1) ffc41b08: 7c 08 03 a6 mtlr r0 ffc41b0c: 83 e1 00 1c lwz r31,28(r1) ffc41b10: 38 21 00 20 addi r1,r1,32 ffc41b14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e068 <_Region_Manager_initialization>: * Output parameters: NONE */ void _Region_Manager_initialization(void) { _Objects_Initialize_information( ffc0e068: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Region_Manager_initialization(void) { ffc0e06c: 94 21 ff f8 stwu r1,-8(r1) ffc0e070: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e074: 3c 60 00 00 lis r3,0 ffc0e078: 80 c9 20 88 lwz r6,8328(r9) ffc0e07c: 38 63 36 8c addi r3,r3,13964 ffc0e080: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Region_Manager_initialization(void) { ffc0e084: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0e088: 38 a0 00 06 li r5,6 ffc0e08c: 38 e0 00 c0 li r7,192 <== ALWAYS TAKEN ffc0e090: 39 00 00 00 li r8,0 ffc0e094: 39 20 00 04 li r9,4 ffc0e098: 4b ff b8 35 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN MP_PACKET_REGION, 0 /* XXX _Region_MP_Process_packet */ ); #endif } ffc0e09c: 80 01 00 0c lwz r0,12(r1) ffc0e0a0: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc0e0a4: 7c 08 03 a6 mtlr r0 ffc0e0a8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc21008 <_Region_Process_queue>: ffc21008: 3d 20 00 00 lis r9,0 */ void _Region_Process_queue( Region_Control *the_region ) { ffc2100c: 94 21 ff e8 stwu r1,-24(r1) ffc21010: 7c 08 02 a6 mflr r0 ffc21014: 81 69 28 68 lwz r11,10344(r9) ffc21018: 93 e1 00 14 stw r31,20(r1) ffc2101c: 7c 7f 1b 78 mr r31,r3 ffc21020: 39 6b 00 01 addi r11,r11,1 ffc21024: 90 01 00 1c stw r0,28(r1) ffc21028: 93 81 00 08 stw r28,8(r1) ffc2102c: 93 a1 00 0c stw r29,12(r1) ffc21030: 93 c1 00 10 stw r30,16(r1) ffc21034: 91 69 28 68 stw r11,10344(r9) * NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); ffc21038: 3d 20 00 00 lis r9,0 ffc2103c: 80 69 28 a0 lwz r3,10400(r9) /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); ffc21040: 3b bf 00 10 addi r29,r31,16 RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uintptr_t size ) { return _Heap_Allocate( &the_region->Memory, size ); ffc21044: 3b 9f 00 68 addi r28,r31,104 * NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); ffc21048: 4b ff 92 11 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); ffc2104c: 7f a3 eb 78 mr r3,r29 ffc21050: 48 00 09 b1 bl ffc21a00 <_Thread_queue_First> <== ALWAYS TAKEN ffc21054: 38 a0 00 00 li r5,0 if ( the_thread == NULL ) ffc21058: 7c 7e 1b 79 mr. r30,r3 ffc2105c: 38 c0 00 00 li r6,0 ffc21060: 7f 83 e3 78 mr r3,r28 ffc21064: 41 82 00 40 beq- ffc210a4 <_Region_Process_queue+0x9c> ffc21068: 80 9e 00 24 lwz r4,36(r30) ffc2106c: 4b ff 9f c5 bl ffc1b030 <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); ffc21070: 7f c4 f3 78 mr r4,r30 the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) ffc21074: 7c 6b 1b 79 mr. r11,r3 break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); ffc21078: 7f a3 eb 78 mr r3,r29 the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) ffc2107c: 41 82 00 28 beq- ffc210a4 <_Region_Process_queue+0x9c> break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; ffc21080: 81 5f 00 64 lwz r10,100(r31) ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; ffc21084: 81 3e 00 28 lwz r9,40(r30) the_region->number_of_used_blocks += 1; ffc21088: 38 0a 00 01 addi r0,r10,1 ffc2108c: 90 1f 00 64 stw r0,100(r31) ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; ffc21090: 91 69 00 00 stw r11,0(r9) the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); ffc21094: 48 00 08 39 bl ffc218cc <_Thread_queue_Extract> <== ALWAYS TAKEN the_thread->Wait.return_code = RTEMS_SUCCESSFUL; ffc21098: 38 00 00 00 li r0,0 ffc2109c: 90 1e 00 34 stw r0,52(r30) } ffc210a0: 4b ff ff ac b ffc2104c <_Region_Process_queue+0x44> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc210a4: 4b ff bc bd bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc210a8: 80 01 00 1c lwz r0,28(r1) ffc210ac: 83 81 00 08 lwz r28,8(r1) ffc210b0: 7c 08 03 a6 mtlr r0 ffc210b4: 83 a1 00 0c lwz r29,12(r1) ffc210b8: 83 c1 00 10 lwz r30,16(r1) ffc210bc: 83 e1 00 14 lwz r31,20(r1) ffc210c0: 38 21 00 18 addi r1,r1,24 ffc210c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e0fc <_Semaphore_Manager_initialization>: * Output parameters: NONE */ void _Semaphore_Manager_initialization(void) { _Objects_Initialize_information( ffc0e0fc: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Semaphore_Manager_initialization(void) { ffc0e100: 94 21 ff f8 stwu r1,-8(r1) ffc0e104: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e108: 3c 60 00 00 lis r3,0 ffc0e10c: 80 c9 20 7c lwz r6,8316(r9) <== ALWAYS TAKEN ffc0e110: 38 63 2b 84 addi r3,r3,11140 ffc0e114: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Semaphore_Manager_initialization(void) { ffc0e118: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0e11c: 38 a0 00 03 li r5,3 ffc0e120: 38 e0 00 78 li r7,120 ffc0e124: 39 00 00 00 li r8,0 <== ALWAYS TAKEN ffc0e128: 39 20 00 04 li r9,4 <== ALWAYS TAKEN ffc0e12c: 4b ff b7 a1 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN MP_PACKET_SEMAPHORE, _Semaphore_MP_Process_packet ); #endif } ffc0e130: 80 01 00 0c lwz r0,12(r1) ffc0e134: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc0e138: 7c 08 03 a6 mtlr r0 ffc0e13c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07da0 <_Semaphore_Translate_core_mutex_return_code>: #if defined(RTEMS_DEBUG) if ( status > CORE_MUTEX_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_mutex_return_code_[status]; } ffc07da0: 3d 20 ff c2 lis r9,-62 ffc07da4: 39 29 de c0 addi r9,r9,-8512 }; rtems_status_code _Semaphore_Translate_core_mutex_return_code ( uint32_t status ) { ffc07da8: 54 63 10 3a rlwinm r3,r3,2,0,29 <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( status > CORE_MUTEX_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_mutex_return_code_[status]; } ffc07dac: 7c 69 18 2e lwzx r3,r9,r3 ffc07db0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07db4 <_Semaphore_Translate_core_semaphore_return_code>: }; rtems_status_code _Semaphore_Translate_core_semaphore_return_code ( uint32_t status ) { ffc07db4: 3d 20 ff c2 lis r9,-62 ffc07db8: 38 09 de c0 addi r0,r9,-8512 ffc07dbc: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc07dc0: 7c 60 1a 14 add r3,r0,r3 #if defined(RTEMS_DEBUG) if ( status > CORE_SEMAPHORE_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_semaphore_return_code_[status]; } ffc07dc4: 80 63 00 1c lwz r3,28(r3) ffc07dc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e140 <_Signal_Manager_initialization>: _MPCI_Register_packet_processor( MP_PACKET_SIGNAL, _Signal_MP_Process_packet ); #endif } ffc0e140: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e6d0 <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) { ffc0e6d0: 94 21 ff e0 stwu r1,-32(r1) ffc0e6d4: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0e6d8: 93 e1 00 1c stw r31,28(r1) ffc0e6dc: 7c 7f 1b 78 mr r31,r3 ffc0e6e0: 90 01 00 24 stw r0,36(r1) ffc0e6e4: 93 c1 00 18 stw r30,24(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e6e8: 7f c0 00 a6 mfmsr r30 ffc0e6ec: 7c 10 42 a6 mfsprg r0,0 ffc0e6f0: 7f c0 00 78 andc r0,r30,r0 ffc0e6f4: 7c 00 01 24 mtmsr r0 /* _TOD_Now is the native current time */ nanoseconds = 0; _ISR_Disable( level ); now = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0e6f8: 3d 20 00 00 lis r9,0 ffc0e6fc: 81 29 27 d8 lwz r9,10200(r9) /* assume time checked for NULL by caller */ /* _TOD_Now is the native current time */ nanoseconds = 0; _ISR_Disable( level ); now = _TOD_Now; ffc0e700: 3d 60 00 00 lis r11,0 ffc0e704: 39 6b 27 90 addi r11,r11,10128 if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0e708: 2f 89 00 00 cmpwi cr7,r9,0 /* assume time checked for NULL by caller */ /* _TOD_Now is the native current time */ nanoseconds = 0; _ISR_Disable( level ); now = _TOD_Now; ffc0e70c: 81 8b 00 04 lwz r12,4(r11) <== ALWAYS TAKEN ffc0e710: 81 6b 00 00 lwz r11,0(r11) if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0e714: 38 00 00 00 li r0,0 /* assume time checked for NULL by caller */ /* _TOD_Now is the native current time */ nanoseconds = 0; _ISR_Disable( level ); now = _TOD_Now; ffc0e718: 91 81 00 14 stw r12,20(r1) ffc0e71c: 91 61 00 10 stw r11,16(r1) if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0e720: 41 9e 00 10 beq- cr7,ffc0e730 <_TOD_Get+0x60> nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); ffc0e724: 7d 29 03 a6 mtctr r9 ffc0e728: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0e72c: 7c 60 1b 78 mr r0,r3 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e730: 7f c0 01 24 mtmsr r30 _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); ffc0e734: 39 20 00 00 li r9,0 ffc0e738: 90 01 00 0c stw r0,12(r1) _Timestamp_Add_to( &now, &offset ); ffc0e73c: 38 61 00 10 addi r3,r1,16 ffc0e740: 38 81 00 08 addi r4,r1,8 <== ALWAYS TAKEN now = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); ffc0e744: 91 21 00 08 stw r9,8(r1) _Timestamp_Add_to( &now, &offset ); ffc0e748: 4b ff cc 51 bl ffc0b398 <_Timespec_Add_to> <== ALWAYS TAKEN _Timestamp_To_timespec( &now, time ); } ffc0e74c: 80 01 00 24 lwz r0,36(r1) nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); _Timestamp_Add_to( &now, &offset ); _Timestamp_To_timespec( &now, time ); ffc0e750: 81 21 00 10 lwz r9,16(r1) <== ALWAYS TAKEN } ffc0e754: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); _Timestamp_Add_to( &now, &offset ); _Timestamp_To_timespec( &now, time ); ffc0e758: 81 41 00 14 lwz r10,20(r1) } ffc0e75c: 83 c1 00 18 lwz r30,24(r1) <== ALWAYS TAKEN nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); _Timestamp_Add_to( &now, &offset ); _Timestamp_To_timespec( &now, time ); ffc0e760: 91 3f 00 00 stw r9,0(r31) ffc0e764: 91 5f 00 04 stw r10,4(r31) } ffc0e768: 83 e1 00 1c lwz r31,28(r1) ffc0e76c: 38 21 00 20 addi r1,r1,32 ffc0e770: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e774 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( Timestamp_Control *uptime ) { ffc0e774: 94 21 ff e0 stwu r1,-32(r1) ffc0e778: 7c 08 02 a6 mflr r0 ffc0e77c: 93 e1 00 1c stw r31,28(r1) ffc0e780: 7c 7f 1b 78 mr r31,r3 ffc0e784: 90 01 00 24 stw r0,36(r1) ffc0e788: 93 c1 00 18 stw r30,24(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e78c: 7f c0 00 a6 mfmsr r30 ffc0e790: 7c 10 42 a6 mfsprg r0,0 ffc0e794: 7f c0 00 78 andc r0,r30,r0 ffc0e798: 7c 00 01 24 mtmsr r0 /* _TOD_Uptime is in native timestamp format */ nanoseconds = 0; _ISR_Disable( level ); up = _TOD_Uptime; if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0e79c: 3d 20 00 00 lis r9,0 ffc0e7a0: 81 29 27 d8 lwz r9,10200(r9) /* assume time checked for NULL by caller */ /* _TOD_Uptime is in native timestamp format */ nanoseconds = 0; _ISR_Disable( level ); up = _TOD_Uptime; ffc0e7a4: 3d 60 00 00 lis r11,0 ffc0e7a8: 39 6b 27 7c addi r11,r11,10108 if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0e7ac: 2f 89 00 00 cmpwi cr7,r9,0 /* assume time checked for NULL by caller */ /* _TOD_Uptime is in native timestamp format */ nanoseconds = 0; _ISR_Disable( level ); up = _TOD_Uptime; ffc0e7b0: 81 8b 00 04 lwz r12,4(r11) ffc0e7b4: 81 6b 00 00 lwz r11,0(r11) if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0e7b8: 38 00 00 00 li r0,0 <== ALWAYS TAKEN /* assume time checked for NULL by caller */ /* _TOD_Uptime is in native timestamp format */ nanoseconds = 0; _ISR_Disable( level ); up = _TOD_Uptime; ffc0e7bc: 91 81 00 14 stw r12,20(r1) ffc0e7c0: 91 61 00 10 stw r11,16(r1) if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0e7c4: 41 9e 00 10 beq- cr7,ffc0e7d4 <_TOD_Get_uptime+0x60> nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); ffc0e7c8: 7d 29 03 a6 mtctr r9 ffc0e7cc: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0e7d0: 7c 60 1b 78 mr r0,r3 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e7d4: 7f c0 01 24 mtmsr r30 _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); ffc0e7d8: 39 20 00 00 li r9,0 ffc0e7dc: 90 01 00 0c stw r0,12(r1) _Timestamp_Add_to( &up, &offset ); ffc0e7e0: 38 61 00 10 addi r3,r1,16 ffc0e7e4: 38 81 00 08 addi r4,r1,8 up = _TOD_Uptime; if ( _Watchdog_Nanoseconds_since_tick_handler ) nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); ffc0e7e8: 91 21 00 08 stw r9,8(r1) _Timestamp_Add_to( &up, &offset ); ffc0e7ec: 4b ff cb ad bl ffc0b398 <_Timespec_Add_to> <== ALWAYS TAKEN *uptime = up; } ffc0e7f0: 80 01 00 24 lwz r0,36(r1) nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); _Timestamp_Add_to( &up, &offset ); *uptime = up; ffc0e7f4: 81 21 00 10 lwz r9,16(r1) } ffc0e7f8: 7c 08 03 a6 mtlr r0 nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); _Timestamp_Add_to( &up, &offset ); *uptime = up; ffc0e7fc: 81 41 00 14 lwz r10,20(r1) } ffc0e800: 83 c1 00 18 lwz r30,24(r1) nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); _Timestamp_Add_to( &up, &offset ); *uptime = up; ffc0e804: 91 3f 00 00 stw r9,0(r31) ffc0e808: 91 5f 00 04 stw r10,4(r31) } ffc0e80c: 83 e1 00 1c lwz r31,28(r1) ffc0e810: 38 21 00 20 addi r1,r1,32 ffc0e814: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2f2b0 <_TOD_Get_uptime_as_timespec>: */ void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { ffc2f2b0: 94 21 ff e0 stwu r1,-32(r1) ffc2f2b4: 7c 08 02 a6 mflr r0 ffc2f2b8: 93 e1 00 1c stw r31,28(r1) ffc2f2bc: 7c 7f 1b 78 mr r31,r3 Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); ffc2f2c0: 38 61 00 08 addi r3,r1,8 */ void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { ffc2f2c4: 90 01 00 24 stw r0,36(r1) Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); ffc2f2c8: 4b ff ff 45 bl ffc2f20c <_TOD_Get_uptime> <== ALWAYS TAKEN _Timestamp_To_timespec( &uptime_ts, uptime ); } ffc2f2cc: 80 01 00 24 lwz r0,36(r1) { Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); _Timestamp_To_timespec( &uptime_ts, uptime ); ffc2f2d0: 81 21 00 08 lwz r9,8(r1) } ffc2f2d4: 7c 08 03 a6 mtlr r0 { Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); _Timestamp_To_timespec( &uptime_ts, uptime ); ffc2f2d8: 81 41 00 0c lwz r10,12(r1) ffc2f2dc: 91 3f 00 00 stw r9,0(r31) ffc2f2e0: 91 5f 00 04 stw r10,4(r31) } ffc2f2e4: 83 e1 00 1c lwz r31,28(r1) ffc2f2e8: 38 21 00 20 addi r1,r1,32 ffc2f2ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d94 <_TOD_Handler_initialization>: */ void _TOD_Handler_initialization(void) { /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, TOD_SECONDS_1970_THROUGH_1988, 0 ); ffc08d94: 3c e0 21 da lis r7,8666 <== ALWAYS TAKEN ffc08d98: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN /* Uptime (timespec) */ _Timestamp_Set_to_zero( &_TOD_Uptime ); ffc08d9c: 3d 20 00 00 lis r9,0 */ void _TOD_Handler_initialization(void) { /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, TOD_SECONDS_1970_THROUGH_1988, 0 ); ffc08da0: 60 e7 e5 00 ori r7,r7,58624 ffc08da4: 38 00 00 00 li r0,0 ffc08da8: 90 eb 27 90 stw r7,10128(r11) ffc08dac: 39 0b 27 90 addi r8,r11,10128 /* Uptime (timespec) */ _Timestamp_Set_to_zero( &_TOD_Uptime ); ffc08db0: 39 49 27 7c addi r10,r9,10108 */ void _TOD_Handler_initialization(void) { /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, TOD_SECONDS_1970_THROUGH_1988, 0 ); ffc08db4: 90 08 00 04 stw r0,4(r8) <== ALWAYS TAKEN /* Uptime (timespec) */ _Timestamp_Set_to_zero( &_TOD_Uptime ); /* TOD has not been set */ _TOD_Is_set = false; ffc08db8: 3d 60 00 00 lis r11,0 ffc08dbc: 98 0b 27 78 stb r0,10104(r11) <== ALWAYS TAKEN { /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, TOD_SECONDS_1970_THROUGH_1988, 0 ); /* Uptime (timespec) */ _Timestamp_Set_to_zero( &_TOD_Uptime ); ffc08dc0: 90 09 27 7c stw r0,10108(r9) ffc08dc4: 90 0a 00 04 stw r0,4(r10) /* TOD has not been set */ _TOD_Is_set = false; _TOD_Activate(); } ffc08dc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ad34 <_TOD_Set>: ffc0ad34: 3d 20 00 00 lis r9,0 */ void _TOD_Set( const struct timespec *time ) { ffc0ad38: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0ad3c: 7c 08 02 a6 mflr r0 ffc0ad40: 81 69 28 3c lwz r11,10300(r9) ffc0ad44: 90 01 00 14 stw r0,20(r1) ffc0ad48: 39 6b 00 01 addi r11,r11,1 ffc0ad4c: 93 e1 00 0c stw r31,12(r1) ffc0ad50: 7c 7f 1b 78 mr r31,r3 ffc0ad54: 91 69 28 3c stw r11,10300(r9) long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); ffc0ad58: 3d 20 00 00 lis r9,0 if ( time->tv_sec < seconds ) ffc0ad5c: 80 a3 00 00 lwz r5,0(r3) long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); ffc0ad60: 80 09 28 5c lwz r0,10332(r9) ffc0ad64: 3c 60 00 01 lis r3,1 ffc0ad68: 38 63 ab 5c addi r3,r3,-21668 if ( time->tv_sec < seconds ) ffc0ad6c: 7f 85 00 00 cmpw cr7,r5,r0 ffc0ad70: 40 bc 00 10 bge+ cr7,ffc0ad80 <_TOD_Set+0x4c> Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); ffc0ad74: 7c a5 00 50 subf r5,r5,r0 ffc0ad78: 38 80 00 01 li r4,1 ffc0ad7c: 48 00 00 0c b ffc0ad88 <_TOD_Set+0x54> <== ALWAYS TAKEN ffc0ad80: 7c a0 28 50 subf r5,r0,r5 ffc0ad84: 38 80 00 00 li r4,0 ffc0ad88: 48 00 2f 7d bl ffc0dd04 <_Watchdog_Adjust> <== ALWAYS TAKEN _Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec ); else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds ); /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); ffc0ad8c: 80 1f 00 04 lwz r0,4(r31) ffc0ad90: 3d 20 00 00 lis r9,0 ffc0ad94: 81 5f 00 00 lwz r10,0(r31) ffc0ad98: 39 69 28 5c addi r11,r9,10332 ffc0ad9c: 90 0b 00 04 stw r0,4(r11) _TOD_Is_set = true; ffc0ada0: 38 00 00 01 li r0,1 _Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec ); else _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds ); /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); ffc0ada4: 91 49 28 5c stw r10,10332(r9) _TOD_Is_set = true; ffc0ada8: 3d 20 00 00 lis r9,0 ffc0adac: 98 09 28 44 stb r0,10308(r9) _TOD_Activate(); _Thread_Enable_dispatch(); ffc0adb0: 48 00 17 85 bl ffc0c534 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc0adb4: 80 01 00 14 lwz r0,20(r1) ffc0adb8: 83 e1 00 0c lwz r31,12(r1) ffc0adbc: 38 21 00 10 addi r1,r1,16 ffc0adc0: 7c 08 03 a6 mtlr r0 ffc0adc4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08dcc <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { ffc08dcc: 94 21 ff e0 stwu r1,-32(r1) ffc08dd0: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); ffc08dd4: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { ffc08dd8: 90 01 00 24 stw r0,36(r1) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); ffc08ddc: 3c 60 00 00 lis r3,0 ffc08de0: 38 63 27 7c addi r3,r3,10108 { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); ffc08de4: 80 09 20 ac lwz r0,8364(r9) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; ffc08de8: 3d 20 00 00 lis r9,0 ffc08dec: 81 69 27 c8 lwz r11,10184(r9) { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); ffc08df0: 1c 00 03 e8 mulli r0,r0,1000 * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { ffc08df4: 93 e1 00 1c stw r31,28(r1) /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; ffc08df8: 39 6b 00 01 addi r11,r11,1 * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { ffc08dfc: 93 c1 00 18 stw r30,24(r1) <== ALWAYS TAKEN /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); ffc08e00: 3b e1 00 08 addi r31,r1,8 <== ALWAYS TAKEN ffc08e04: 7f e4 fb 78 mr r4,r31 /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; ffc08e08: 91 69 27 c8 stw r11,10184(r9) { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); ffc08e0c: 39 20 00 00 li r9,0 ffc08e10: 91 21 00 08 stw r9,8(r1) */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); ffc08e14: 3f c0 00 00 lis r30,0 ffc08e18: 3b de 2d 3c addi r30,r30,11580 ffc08e1c: 90 01 00 0c stw r0,12(r1) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); ffc08e20: 48 00 25 79 bl ffc0b398 <_Timespec_Add_to> <== ALWAYS TAKEN /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); ffc08e24: 3c 60 00 00 lis r3,0 ffc08e28: 7f e4 fb 78 mr r4,r31 ffc08e2c: 38 63 27 90 addi r3,r3,10128 ffc08e30: 48 00 25 69 bl ffc0b398 <_Timespec_Add_to> <== ALWAYS TAKEN ffc08e34: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN while ( seconds ) { ffc08e38: 48 00 00 08 b ffc08e40 <_TOD_Tickle_ticks+0x74> <== ALWAYS TAKEN ffc08e3c: 48 00 2c 89 bl ffc0bac4 <_Watchdog_Tickle> <== ALWAYS TAKEN ffc08e40: 2f 9f 00 00 cmpwi cr7,r31,0 ffc08e44: 7f c3 f3 78 mr r3,r30 _Watchdog_Tickle_seconds(); seconds--; ffc08e48: 3b ff ff ff addi r31,r31,-1 _Timestamp_Add_to( &_TOD_Uptime, &tick ); /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); while ( seconds ) { ffc08e4c: 40 9e ff f0 bne+ cr7,ffc08e3c <_TOD_Tickle_ticks+0x70> _Watchdog_Tickle_seconds(); seconds--; } } ffc08e50: 80 01 00 24 lwz r0,36(r1) ffc08e54: 83 c1 00 18 lwz r30,24(r1) ffc08e58: 7c 08 03 a6 mtlr r0 ffc08e5c: 83 e1 00 1c lwz r31,28(r1) <== ALWAYS TAKEN ffc08e60: 38 21 00 20 addi r1,r1,32 <== ALWAYS TAKEN ffc08e64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08e98 <_TOD_To_seconds>: { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; ffc08e98: 81 23 00 00 lwz r9,0(r3) ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; ffc08e9c: 81 63 00 08 lwz r11,8(r3) year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) ffc08ea0: 71 28 00 03 andi. r8,r9,3 ffc08ea4: 81 43 00 04 lwz r10,4(r3) ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; ffc08ea8: 38 0b ff ff addi r0,r11,-1 ffc08eac: 3d 60 ff c2 lis r11,-62 ffc08eb0: 39 6b 3d a6 addi r11,r11,15782 year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) ffc08eb4: 40 a2 00 08 bne+ ffc08ebc <_TOD_To_seconds+0x24> time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; ffc08eb8: 39 4a 00 0d addi r10,r10,13 else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; ffc08ebc: 55 4a 08 3c rlwinm r10,r10,1,0,30 ffc08ec0: 7d 6b 52 2e lhzx r11,r11,r10 time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ffc08ec4: 39 49 f8 3c addi r10,r9,-1988 time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc08ec8: 81 23 00 0c lwz r9,12(r3) if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ffc08ecc: 55 4a f0 be rlwinm r10,r10,30,2,31 year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; ffc08ed0: 7c 0b 02 14 add r0,r11,r0 time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ffc08ed4: 55 0b 08 3c rlwinm r11,r8,1,0,30 ffc08ed8: 3d 00 00 00 lis r8,0 ffc08edc: 39 08 27 80 addi r8,r8,10112 ffc08ee0: 7d 08 5a 2e lhzx r8,r8,r11 ffc08ee4: 1d 4a 05 b5 mulli r10,r10,1461 time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc08ee8: 81 63 00 10 lwz r11,16(r3) ffc08eec: 1d 29 00 3c mulli r9,r9,60 time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) ffc08ef0: 80 63 00 14 lwz r3,20(r3) if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ffc08ef4: 7d 48 52 14 add r10,r8,r10 time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc08ef8: 7d 29 5a 14 add r9,r9,r11 time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; ffc08efc: 3d 60 00 01 lis r11,1 time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; ffc08f00: 7c 0a 02 14 add r0,r10,r0 time *= TOD_SECONDS_PER_DAY; ffc08f04: 61 6b 51 80 ori r11,r11,20864 ffc08f08: 7c 00 59 d6 mullw r0,r0,r11 time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc08f0c: 1d 29 00 3c mulli r9,r9,60 time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) ffc08f10: 3c 63 21 db addis r3,r3,8667 <== ALWAYS TAKEN ffc08f14: 38 63 e5 00 addi r3,r3,-6912 * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc08f18: 7c 63 4a 14 add r3,r3,r9 time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } ffc08f1c: 7c 63 02 14 add r3,r3,r0 <== ALWAYS TAKEN ffc08f20: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08f24 <_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) || ffc08f24: 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(); ffc08f28: 3d 20 00 00 lis r9,0 ffc08f2c: 81 29 20 cc lwz r9,8396(r9) if ((!the_tod) || ffc08f30: 41 82 00 98 beq- ffc08fc8 <_TOD_Validate+0xa4> <== NEVER TAKEN (the_tod->ticks >= ticks_per_second) || ffc08f34: 3c 00 00 0f lis r0,15 ffc08f38: 60 00 42 40 ori r0,r0,16960 ffc08f3c: 7c 00 4b 96 divwu r0,r0,r9 ffc08f40: 81 23 00 18 lwz r9,24(r3) ffc08f44: 7f 89 00 40 cmplw cr7,r9,r0 ffc08f48: 40 9c 00 80 bge- cr7,ffc08fc8 <_TOD_Validate+0xa4> (the_tod->second >= TOD_SECONDS_PER_MINUTE) || ffc08f4c: 80 03 00 14 lwz r0,20(r3) ffc08f50: 2b 80 00 3b cmplwi cr7,r0,59 ffc08f54: 41 9d 00 74 bgt- cr7,ffc08fc8 <_TOD_Validate+0xa4> (the_tod->minute >= TOD_MINUTES_PER_HOUR) || ffc08f58: 80 03 00 10 lwz r0,16(r3) ffc08f5c: 2b 80 00 3b cmplwi cr7,r0,59 ffc08f60: 41 9d 00 68 bgt- cr7,ffc08fc8 <_TOD_Validate+0xa4> (the_tod->hour >= TOD_HOURS_PER_DAY) || ffc08f64: 80 03 00 0c lwz r0,12(r3) ffc08f68: 2b 80 00 17 cmplwi cr7,r0,23 ffc08f6c: 41 9d 00 5c bgt- cr7,ffc08fc8 <_TOD_Validate+0xa4> (the_tod->month == 0) || ffc08f70: 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) || ffc08f74: 2f 89 00 00 cmpwi cr7,r9,0 ffc08f78: 41 9e 00 50 beq- cr7,ffc08fc8 <_TOD_Validate+0xa4> <== NEVER TAKEN ffc08f7c: 2b 89 00 0c cmplwi cr7,r9,12 <== ALWAYS TAKEN ffc08f80: 41 9d 00 48 bgt- cr7,ffc08fc8 <_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) || ffc08f84: 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) || ffc08f88: 2b 80 07 c3 cmplwi cr7,r0,1987 ffc08f8c: 40 9d 00 3c ble- cr7,ffc08fc8 <_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) ) ffc08f90: 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) || ffc08f94: 2f 83 00 00 cmpwi cr7,r3,0 ffc08f98: 41 9e 00 30 beq- cr7,ffc08fc8 <_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 ) ffc08f9c: 70 0b 00 03 andi. r11,r0,3 ffc08fa0: 3d 60 ff c2 lis r11,-62 ffc08fa4: 39 6b 3d dc addi r11,r11,15836 ffc08fa8: 40 82 00 08 bne- ffc08fb0 <_TOD_Validate+0x8c> days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; ffc08fac: 39 29 00 0d addi r9,r9,13 else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; ffc08fb0: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc08fb4: 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( ffc08fb8: 7c 63 00 10 subfc r3,r3,r0 ffc08fbc: 38 60 00 00 li r3,0 ffc08fc0: 7c 63 19 14 adde r3,r3,r3 ffc08fc4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08fc8: 38 60 00 00 li r3,0 if ( the_tod->day > days_in_month ) return false; return true; } ffc08fcc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09cc4 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { ffc09cc4: 94 21 ff e0 stwu r1,-32(r1) ffc09cc8: 7c 08 02 a6 mflr r0 ffc09ccc: 90 01 00 24 stw r0,36(r1) ffc09cd0: 93 e1 00 1c stw r31,28(r1) ffc09cd4: 7c 7f 1b 78 mr r31,r3 ffc09cd8: 93 a1 00 14 stw r29,20(r1) ffc09cdc: 93 c1 00 18 stw r30,24(r1) ffc09ce0: 7c be 2b 78 mr r30,r5 <== ALWAYS TAKEN /* * 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 ); ffc09ce4: 90 81 00 08 stw r4,8(r1) */ /* * Save original state */ original_state = the_thread->current_state; ffc09ce8: 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 ); ffc09cec: 48 00 12 05 bl ffc0aef0 <_Thread_Set_transient> <== ALWAYS TAKEN /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) ffc09cf0: 80 1f 00 14 lwz r0,20(r31) ffc09cf4: 80 81 00 08 lwz r4,8(r1) ffc09cf8: 7f 80 20 00 cmpw cr7,r0,r4 ffc09cfc: 41 9e 00 0c beq- cr7,ffc09d08 <_Thread_Change_priority+0x44> _Thread_Set_priority( the_thread, new_priority ); ffc09d00: 7f e3 fb 78 mr r3,r31 ffc09d04: 48 00 10 79 bl ffc0ad7c <_Thread_Set_priority> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09d08: 7d 60 00 a6 mfmsr r11 ffc09d0c: 7c 10 42 a6 mfsprg r0,0 ffc09d10: 7d 60 00 78 andc r0,r11,r0 ffc09d14: 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; ffc09d18: 80 1f 00 10 lwz r0,16(r31) ffc09d1c: 57 bd 07 7a rlwinm r29,r29,0,29,29 if ( state != STATES_TRANSIENT ) { ffc09d20: 2f 80 00 04 cmpwi cr7,r0,4 ffc09d24: 41 9e 00 38 beq- cr7,ffc09d5c <_Thread_Change_priority+0x98> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) ffc09d28: 2f 9d 00 00 cmpwi cr7,r29,0 ffc09d2c: 40 9e 00 0c bne- cr7,ffc09d38 <_Thread_Change_priority+0x74> <== NEVER TAKEN the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); ffc09d30: 54 09 07 b8 rlwinm r9,r0,0,30,28 ffc09d34: 91 3f 00 10 stw r9,16(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09d38: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { ffc09d3c: 3d 20 00 03 lis r9,3 ffc09d40: 61 29 be e0 ori r9,r9,48864 ffc09d44: 7c 0b 48 39 and. r11,r0,r9 ffc09d48: 41 a2 01 04 beq+ ffc09e4c <_Thread_Change_priority+0x188> _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); ffc09d4c: 80 7f 00 44 lwz r3,68(r31) ffc09d50: 7f e4 fb 78 mr r4,r31 ffc09d54: 48 00 0f 55 bl ffc0aca8 <_Thread_queue_Requeue> <== ALWAYS TAKEN ffc09d58: 48 00 00 f4 b ffc09e4c <_Thread_Change_priority+0x188> <== ALWAYS TAKEN } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { ffc09d5c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc09d60: 40 9e 00 6c bne- cr7,ffc09dcc <_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 ); ffc09d64: 93 bf 00 10 stw r29,16(r31) _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) ffc09d68: 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; ffc09d6c: 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; ffc09d70: 81 3f 00 90 lwz r9,144(r31) <== ALWAYS TAKEN ffc09d74: 80 1f 00 98 lwz r0,152(r31) ffc09d78: 81 09 00 00 lwz r8,0(r9) ffc09d7c: 7d 00 03 78 or r0,r8,r0 ffc09d80: 90 09 00 00 stw r0,0(r9) _Priority_Major_bit_map |= the_priority_map->ready_major; ffc09d84: 81 0a 27 a4 lwz r8,10148(r10) <== ALWAYS TAKEN ffc09d88: 80 1f 00 94 lwz r0,148(r31) ffc09d8c: 81 3f 00 8c lwz r9,140(r31) ffc09d90: 7d 00 03 78 or r0,r8,r0 ffc09d94: 90 0a 27 a4 stw r0,10148(r10) ffc09d98: 41 9e 00 1c beq- cr7,ffc09db4 <_Thread_Change_priority+0xf0> ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc09d9c: 81 49 00 00 lwz r10,0(r9) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc09da0: 91 3f 00 04 stw r9,4(r31) before_node = after_node->next; after_node->next = the_node; ffc09da4: 93 e9 00 00 stw r31,0(r9) <== ALWAYS TAKEN the_node->next = before_node; before_node->previous = the_node; ffc09da8: 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; ffc09dac: 91 5f 00 00 stw r10,0(r31) ffc09db0: 48 00 00 1c b ffc09dcc <_Thread_Change_priority+0x108> <== ALWAYS TAKEN Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc09db4: 38 09 00 04 addi r0,r9,4 ffc09db8: 90 1f 00 00 stw r0,0(r31) old_last_node = the_chain->last; ffc09dbc: 81 49 00 08 lwz r10,8(r9) the_chain->last = the_node; ffc09dc0: 93 e9 00 08 stw r31,8(r9) old_last_node->next = the_node; the_node->previous = old_last_node; ffc09dc4: 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; ffc09dc8: 93 ea 00 00 stw r31,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc09dcc: 7c 00 00 a6 mfmsr r0 ffc09dd0: 7d 60 01 24 mtmsr r11 ffc09dd4: 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 ); ffc09dd8: 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; ffc09ddc: 3d 40 00 00 lis r10,0 ffc09de0: 81 26 27 a4 lwz r9,10148(r6) ffc09de4: 80 aa 27 64 lwz r5,10084(r10) ffc09de8: 7d 27 00 34 cntlzw r7,r9 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc09dec: 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 ); ffc09df0: 91 26 27 a4 stw r9,10148(r6) _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc09df4: 39 08 2d a0 addi r8,r8,11680 ffc09df8: 54 ea 10 3a rlwinm r10,r7,2,0,29 ffc09dfc: 7c 08 50 2e lwzx r0,r8,r10 <== ALWAYS TAKEN ffc09e00: 7c 09 00 34 cntlzw r9,r0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc09e04: 54 e7 20 36 rlwinm r7,r7,4,0,27 ffc09e08: 7c 08 51 2e stwx r0,r8,r10 ffc09e0c: 7c e7 4a 14 add r7,r7,r9 ffc09e10: 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 ); ffc09e14: 3d 20 00 00 lis r9,0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc09e18: 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 ); ffc09e1c: 81 29 27 b0 lwz r9,10160(r9) * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc09e20: 3d 40 00 00 lis r10,0 ffc09e24: 90 0a 27 8c stw r0,10124(r10) * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ _Thread_Calculate_heir(); if ( !_Thread_Is_executing_also_the_heir() && ffc09e28: 7f 89 00 00 cmpw cr7,r9,r0 ffc09e2c: 41 9e 00 1c beq- cr7,ffc09e48 <_Thread_Change_priority+0x184> _Thread_Executing->is_preemptible ) ffc09e30: 88 09 00 75 lbz r0,117(r9) ffc09e34: 2f 80 00 00 cmpwi cr7,r0,0 ffc09e38: 41 9e 00 10 beq- cr7,ffc09e48 <_Thread_Change_priority+0x184> _Context_Switch_necessary = true; ffc09e3c: 38 00 00 01 li r0,1 ffc09e40: 3d 20 00 00 lis r9,0 ffc09e44: 98 09 27 c0 stb r0,10176(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09e48: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); } ffc09e4c: 80 01 00 24 lwz r0,36(r1) ffc09e50: 83 a1 00 14 lwz r29,20(r1) ffc09e54: 7c 08 03 a6 mtlr r0 ffc09e58: 83 c1 00 18 lwz r30,24(r1) ffc09e5c: 83 e1 00 1c lwz r31,28(r1) ffc09e60: 38 21 00 20 addi r1,r1,32 ffc09e64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09e68 <_Thread_Clear_state>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09e68: 7c 00 00 a6 mfmsr r0 ffc09e6c: 7d 30 42 a6 mfsprg r9,0 ffc09e70: 7c 09 48 78 andc r9,r0,r9 ffc09e74: 7d 20 01 24 mtmsr r9 { ISR_Level level; States_Control current_state; _ISR_Disable( level ); current_state = the_thread->current_state; ffc09e78: 81 23 00 10 lwz r9,16(r3) <== ALWAYS TAKEN if ( current_state & state ) { ffc09e7c: 7c 8b 48 39 and. r11,r4,r9 ffc09e80: 41 82 00 a8 beq- ffc09f28 <_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); ffc09e84: 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 ) ) { ffc09e88: 2f 84 00 00 cmpwi cr7,r4,0 <== ALWAYS TAKEN _ISR_Disable( level ); current_state = the_thread->current_state; if ( current_state & state ) { current_state = ffc09e8c: 90 83 00 10 stw r4,16(r3) the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { ffc09e90: 40 9e 00 98 bne- cr7,ffc09f28 <_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; ffc09e94: 81 63 00 90 lwz r11,144(r3) ffc09e98: 81 43 00 98 lwz r10,152(r3) ffc09e9c: 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); ffc09ea0: 81 23 00 8c lwz r9,140(r3) ffc09ea4: 7d 0a 53 78 or r10,r8,r10 ffc09ea8: 91 4b 00 00 stw r10,0(r11) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc09eac: 39 69 00 04 addi r11,r9,4 _Priority_Major_bit_map |= the_priority_map->ready_major; ffc09eb0: 3d 40 00 00 lis r10,0 ffc09eb4: 91 63 00 00 stw r11,0(r3) ffc09eb8: 80 ea 27 a4 lwz r7,10148(r10) <== ALWAYS TAKEN ffc09ebc: 81 03 00 94 lwz r8,148(r3) old_last_node = the_chain->last; ffc09ec0: 81 69 00 08 lwz r11,8(r9) ffc09ec4: 7c e8 43 78 or r8,r7,r8 the_chain->last = the_node; ffc09ec8: 90 69 00 08 stw r3,8(r9) ffc09ecc: 91 0a 27 a4 stw r8,10148(r10) old_last_node->next = the_node; the_node->previous = old_last_node; ffc09ed0: 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; ffc09ed4: 90 6b 00 00 stw r3,0(r11) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc09ed8: 7d 20 00 a6 mfmsr r9 ffc09edc: 7c 00 01 24 mtmsr r0 ffc09ee0: 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 ) { ffc09ee4: 3d 60 00 00 lis r11,0 ffc09ee8: 81 23 00 14 lwz r9,20(r3) <== ALWAYS TAKEN ffc09eec: 81 4b 27 8c lwz r10,10124(r11) ffc09ef0: 81 4a 00 14 lwz r10,20(r10) ffc09ef4: 7f 89 50 40 cmplw cr7,r9,r10 ffc09ef8: 40 9c 00 30 bge- cr7,ffc09f28 <_Thread_Clear_state+0xc0> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || ffc09efc: 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; ffc09f00: 90 6b 27 8c stw r3,10124(r11) if ( _Thread_Executing->is_preemptible || ffc09f04: 81 4a 27 b0 lwz r10,10160(r10) ffc09f08: 89 6a 00 75 lbz r11,117(r10) ffc09f0c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc09f10: 40 9e 00 0c bne- cr7,ffc09f1c <_Thread_Clear_state+0xb4> ffc09f14: 2f 89 00 00 cmpwi cr7,r9,0 ffc09f18: 40 9e 00 10 bne- cr7,ffc09f28 <_Thread_Clear_state+0xc0> <== ALWAYS TAKEN the_thread->current_priority == 0 ) _Context_Switch_necessary = true; ffc09f1c: 39 60 00 01 li r11,1 ffc09f20: 3d 20 00 00 lis r9,0 ffc09f24: 99 69 27 c0 stb r11,10176(r9) <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09f28: 7c 00 01 24 mtmsr r0 } } } _ISR_Enable( level ); } ffc09f2c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09f30 <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { ffc09f30: 94 21 ff e8 stwu r1,-24(r1) ffc09f34: 7c 08 02 a6 mflr r0 ffc09f38: 39 60 00 00 li r11,0 ffc09f3c: 90 01 00 1c stw r0,28(r1) ffc09f40: a0 04 00 0a lhz r0,10(r4) ffc09f44: 81 23 00 1c lwz r9,28(r3) ffc09f48: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc09f4c: 93 a1 00 0c stw r29,12(r1) ffc09f50: 7c 7d 1b 78 mr r29,r3 ffc09f54: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN ffc09f58: 7c 9f 23 78 mr r31,r4 ffc09f5c: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc09f60: 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; ffc09f64: 3f c0 00 00 lis r30,0 <== ALWAYS TAKEN ffc09f68: 81 3e 27 70 lwz r9,10096(r30) * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); ffc09f6c: 7c 83 23 78 mr r3,r4 ffc09f70: 38 09 ff ff addi r0,r9,-1 ffc09f74: 90 1e 27 70 stw r0,10096(r30) ffc09f78: 48 00 17 c9 bl ffc0b740 <_User_extensions_Thread_delete> <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc09f7c: 81 3e 27 70 lwz r9,10096(r30) ffc09f80: 38 09 00 01 addi r0,r9,1 ffc09f84: 90 1e 27 70 stw r0,10096(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 ); ffc09f88: 7f a3 eb 78 mr r3,r29 ffc09f8c: 7f e4 fb 78 mr r4,r31 ffc09f90: 4b ff f3 ad bl ffc0933c <_Objects_Close> <== ALWAYS TAKEN /* * 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 ); ffc09f94: 7f e3 fb 78 mr r3,r31 ffc09f98: 38 80 00 01 li r4,1 ffc09f9c: 48 00 0e 3d bl ffc0add8 <_Thread_Set_state> <== ALWAYS TAKEN if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { ffc09fa0: 7f e3 fb 78 mr r3,r31 ffc09fa4: 48 00 0c 21 bl ffc0abc4 <_Thread_queue_Extract_with_proxy> <== ALWAYS TAKEN ffc09fa8: 2f 83 00 00 cmpwi cr7,r3,0 ffc09fac: 40 9e 00 18 bne- cr7,ffc09fc4 <_Thread_Close+0x94> if ( _Watchdog_Is_active( &the_thread->Timer ) ) ffc09fb0: 80 1f 00 50 lwz r0,80(r31) ffc09fb4: 2f 80 00 02 cmpwi cr7,r0,2 ffc09fb8: 40 be 00 0c bne+ cr7,ffc09fc4 <_Thread_Close+0x94> (void) _Watchdog_Remove( &the_thread->Timer ); ffc09fbc: 38 7f 00 48 addi r3,r31,72 ffc09fc0: 48 00 1a 59 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN if ( _Thread_Is_allocated_fp( the_thread ) ) _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; if ( the_thread->Start.fp_context ) ffc09fc4: 80 7f 00 d4 lwz r3,212(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; ffc09fc8: 38 00 00 00 li r0,0 ffc09fcc: 90 1f 01 3c stw r0,316(r31) if ( the_thread->Start.fp_context ) ffc09fd0: 2f 83 00 00 cmpwi cr7,r3,0 ffc09fd4: 41 9e 00 08 beq- cr7,ffc09fdc <_Thread_Close+0xac> <== NEVER TAKEN (void) _Workspace_Free( the_thread->Start.fp_context ); ffc09fd8: 48 00 1c 3d bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN /* * Free the rest of the memory associated with this task * and set the associated pointers to NULL for safety. */ _Thread_Stack_Free( the_thread ); ffc09fdc: 7f e3 fb 78 mr r3,r31 ffc09fe0: 48 00 10 31 bl ffc0b010 <_Thread_Stack_Free> <== ALWAYS TAKEN the_thread->Start.stack = NULL; if ( the_thread->extensions ) ffc09fe4: 80 7f 01 50 lwz r3,336(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; ffc09fe8: 38 00 00 00 li r0,0 if ( the_thread->extensions ) ffc09fec: 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; ffc09ff0: 90 1f 00 d8 stw r0,216(r31) <== ALWAYS TAKEN if ( the_thread->extensions ) ffc09ff4: 41 9e 00 08 beq- cr7,ffc09ffc <_Thread_Close+0xcc> (void) _Workspace_Free( the_thread->extensions ); ffc09ff8: 48 00 1c 1d bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN the_thread->extensions = NULL; ffc09ffc: 38 00 00 00 li r0,0 } ffc0a000: 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; ffc0a004: 90 1f 01 50 stw r0,336(r31) } ffc0a008: 80 01 00 1c lwz r0,28(r1) ffc0a00c: 83 c1 00 10 lwz r30,16(r1) ffc0a010: 7c 08 03 a6 mtlr r0 ffc0a014: 83 e1 00 14 lwz r31,20(r1) ffc0a018: 38 21 00 18 addi r1,r1,24 ffc0a01c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a020 <_Thread_Create_idle>: * * _Thread_Create_idle */ void _Thread_Create_idle( void ) { ffc0a020: 94 21 ff d8 stwu r1,-40(r1) <== ALWAYS TAKEN ffc0a024: 7c 08 02 a6 mflr r0 ffc0a028: 93 e1 00 24 stw r31,36(r1) * This routine allocates an internal thread. */ RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Internal_allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_Thread_Internal_information ); ffc0a02c: 3f e0 00 00 lis r31,0 ffc0a030: 3b ff 2d e0 addi r31,r31,11744 ffc0a034: 7f e3 fb 78 mr r3,r31 ffc0a038: 90 01 00 2c stw r0,44(r1) ffc0a03c: 4b ff f2 55 bl ffc09290 <_Objects_Allocate> <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a040: 3d 60 00 00 lis r11,0 ffc0a044: 81 4b 27 70 lwz r10,10096(r11) /* * The entire workspace is zeroed during its initialization. Thus, all * fields not explicitly assigned were explicitly zeroed by * _Workspace_Initialization. */ _Thread_Idle = _Thread_Internal_allocate(); ffc0a048: 3d 20 00 00 lis r9,0 ffc0a04c: 90 69 27 dc stw r3,10204(r9) <== ALWAYS TAKEN ffc0a050: 38 0a 00 01 addi r0,r10,1 ffc0a054: 90 0b 27 70 stw r0,10096(r11) <== ALWAYS TAKEN _Thread_Initialize( &_Thread_Internal_information, _Thread_Idle, NULL, /* allocate the stack */ _Stack_Ensure_minimum( Configuration.idle_task_stack_size ), ffc0a058: 3d 60 00 00 lis r11,0 * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( ffc0a05c: 80 89 27 dc lwz r4,10204(r9) &_Thread_Internal_information, _Thread_Idle, NULL, /* allocate the stack */ _Stack_Ensure_minimum( Configuration.idle_task_stack_size ), ffc0a060: 80 0b 20 b8 lwz r0,8376(r11) <== ALWAYS TAKEN * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( ffc0a064: 3d 60 00 00 lis r11,0 ffc0a068: 80 cb 26 a0 lwz r6,9888(r11) ffc0a06c: 3d 60 49 44 lis r11,18756 ffc0a070: 61 6b 4c 45 ori r11,r11,19525 ffc0a074: 7f 86 00 40 cmplw cr7,r6,r0 <== ALWAYS TAKEN ffc0a078: 91 61 00 18 stw r11,24(r1) ffc0a07c: 40 9c 00 08 bge- cr7,ffc0a084 <_Thread_Create_idle+0x64> ffc0a080: 7c 06 03 78 mr r6,r0 ffc0a084: 3d 20 00 00 lis r9,0 ffc0a088: 89 09 26 a4 lbz r8,9892(r9) ffc0a08c: 38 00 00 00 li r0,0 ffc0a090: 39 61 00 18 addi r11,r1,24 ffc0a094: 90 01 00 0c stw r0,12(r1) ffc0a098: 7f e3 fb 78 mr r3,r31 ffc0a09c: 38 a0 00 00 li r5,0 ffc0a0a0: 91 61 00 10 stw r11,16(r1) <== ALWAYS TAKEN ffc0a0a4: 38 e0 00 00 li r7,0 ffc0a0a8: 39 20 00 01 li r9,1 ffc0a0ac: 90 01 00 08 stw r0,8(r1) ffc0a0b0: 39 40 00 00 li r10,0 <== ALWAYS TAKEN ffc0a0b4: 48 00 03 6d bl ffc0a420 <_Thread_Initialize> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0a0b8: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = _Thread_Executing = _Thread_Idle; ffc0a0bc: 3d 60 00 00 lis r11,0 ffc0a0c0: 80 0b 27 dc lwz r0,10204(r11) _Thread_Start( ffc0a0c4: 3d 40 00 00 lis r10,0 ffc0a0c8: 81 69 27 70 lwz r11,10096(r9) ffc0a0cc: 38 80 00 00 li r4,0 ffc0a0d0: 80 aa 20 b4 lwz r5,8372(r10) ffc0a0d4: 7c 03 03 78 mr r3,r0 ffc0a0d8: 39 6b ff ff addi r11,r11,-1 ffc0a0dc: 91 69 27 70 stw r11,10096(r9) /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = ffc0a0e0: 3d 20 00 00 lis r9,0 _Thread_Executing = _Thread_Idle; _Thread_Start( ffc0a0e4: 38 c0 00 00 li r6,0 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = ffc0a0e8: 90 09 27 b0 stw r0,10160(r9) _Thread_Executing = _Thread_Idle; _Thread_Start( ffc0a0ec: 38 e0 00 00 li r7,0 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = ffc0a0f0: 3d 20 00 00 lis r9,0 ffc0a0f4: 90 09 27 8c stw r0,10124(r9) _Thread_Executing = _Thread_Idle; _Thread_Start( ffc0a0f8: 48 00 0f d5 bl ffc0b0cc <_Thread_Start> <== ALWAYS TAKEN Configuration.idle_task, NULL, 0 ); } ffc0a0fc: 80 01 00 2c lwz r0,44(r1) ffc0a100: 83 e1 00 24 lwz r31,36(r1) ffc0a104: 38 21 00 28 addi r1,r1,40 ffc0a108: 7c 08 03 a6 mtlr r0 ffc0a10c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a110 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0a110: 94 21 ff e8 stwu r1,-24(r1) ffc0a114: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0a118: 38 81 00 08 addi r4,r1,8 void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0a11c: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0a120: 48 00 02 4d bl ffc0a36c <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0a124: 80 01 00 08 lwz r0,8(r1) ffc0a128: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a12c: 40 9e 00 20 bne- cr7,ffc0a14c <_Thread_Delay_ended+0x3c> <== NEVER TAKEN #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( ffc0a130: 3c 80 10 00 lis r4,4096 ffc0a134: 60 84 00 18 ori r4,r4,24 ffc0a138: 4b ff fd 31 bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN ffc0a13c: 3d 20 00 00 lis r9,0 ffc0a140: 81 69 27 70 lwz r11,10096(r9) ffc0a144: 38 0b ff ff addi r0,r11,-1 ffc0a148: 90 09 27 70 stw r0,10096(r9) | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } } ffc0a14c: 80 01 00 1c lwz r0,28(r1) ffc0a150: 38 21 00 18 addi r1,r1,24 ffc0a154: 7c 08 03 a6 mtlr r0 ffc0a158: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a15c <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { ffc0a15c: 94 21 ff b0 stwu r1,-80(r1) ffc0a160: 7c 08 02 a6 mflr r0 ffc0a164: 93 41 00 38 stw r26,56(r1) Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; ffc0a168: 3f 40 00 00 lis r26,0 * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { ffc0a16c: 93 e1 00 4c stw r31,76(r1) ffc0a170: 90 01 00 54 stw r0,84(r1) ffc0a174: 92 61 00 1c stw r19,28(r1) ffc0a178: 92 81 00 20 stw r20,32(r1) <== ALWAYS TAKEN ffc0a17c: 92 a1 00 24 stw r21,36(r1) ffc0a180: 92 c1 00 28 stw r22,40(r1) ffc0a184: 92 e1 00 2c stw r23,44(r1) ffc0a188: 93 01 00 30 stw r24,48(r1) ffc0a18c: 93 21 00 34 stw r25,52(r1) ffc0a190: 93 61 00 3c stw r27,60(r1) ffc0a194: 93 81 00 40 stw r28,64(r1) ffc0a198: 93 a1 00 44 stw r29,68(r1) ffc0a19c: 93 c1 00 48 stw r30,72(r1) <== ALWAYS TAKEN Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; ffc0a1a0: 83 fa 27 b0 lwz r31,10160(r26) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a1a4: 7c 00 00 a6 mfmsr r0 ffc0a1a8: 7d 30 42 a6 mfsprg r9,0 ffc0a1ac: 7c 09 48 78 andc r9,r0,r9 ffc0a1b0: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0a1b4: 3f 20 00 00 lis r25,0 heir = _Thread_Heir; ffc0a1b8: 3e 60 00 00 lis r19,0 _Thread_Dispatch_disable_level = 1; ffc0a1bc: 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; ffc0a1c0: 3e a0 00 00 lis r21,0 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( ffc0a1c4: 3f 60 00 00 lis r27,0 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a1c8: 3e c0 00 00 lis r22,0 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0a1cc: 3b 39 27 c0 addi r25,r25,10176 heir = _Thread_Heir; ffc0a1d0: 3a 73 27 8c addi r19,r19,10124 _Thread_Dispatch_disable_level = 1; ffc0a1d4: 3a 94 27 70 addi r20,r20,10096 _Context_Switch_necessary = false; _Thread_Executing = heir; ffc0a1d8: 3b 5a 27 b0 addi r26,r26,10160 #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; ffc0a1dc: 3a b5 27 68 addi r21,r21,10088 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); _Timestamp_Subtract( ffc0a1e0: 3b 7b 27 b8 addi r27,r27,10168 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a1e4: 3a d6 27 88 addi r22,r22,10120 <== ALWAYS TAKEN executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; ffc0a1e8: 3a e0 00 01 li r23,1 _Context_Switch_necessary = false; ffc0a1ec: 3b 00 00 00 li r24,0 <== ALWAYS TAKEN _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); ffc0a1f0: 3b 81 00 08 addi r28,r1,8 _Timestamp_Subtract( ffc0a1f4: 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 ) { ffc0a1f8: 48 00 00 d0 b ffc0a2c8 <_Thread_Dispatch+0x16c> <== ALWAYS TAKEN heir = _Thread_Heir; ffc0a1fc: 83 d3 00 00 lwz r30,0(r19) _Thread_Dispatch_disable_level = 1; ffc0a200: 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 ) ffc0a204: 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; ffc0a208: 9b 19 00 00 stb r24,0(r25) <== ALWAYS TAKEN _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 ) ffc0a20c: 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; ffc0a210: 93 da 00 00 stw r30,0(r26) <== ALWAYS TAKEN #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 ) ffc0a214: 40 be 00 0c bne+ cr7,ffc0a220 <_Thread_Dispatch+0xc4> heir->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0a218: 81 35 00 00 lwz r9,0(r21) ffc0a21c: 91 3e 00 78 stw r9,120(r30) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a220: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); ffc0a224: 7f 83 e3 78 mr r3,r28 ffc0a228: 48 00 45 4d bl ffc0e774 <_TOD_Get_uptime> <== ALWAYS TAKEN _Timestamp_Subtract( ffc0a22c: 7f 63 db 78 mr r3,r27 ffc0a230: 7f 84 e3 78 mr r4,r28 ffc0a234: 7f a5 eb 78 mr r5,r29 ffc0a238: 48 00 11 c5 bl ffc0b3fc <_Timespec_Subtract> <== ALWAYS TAKEN &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); ffc0a23c: 7f a4 eb 78 mr r4,r29 <== ALWAYS TAKEN ffc0a240: 38 7f 00 84 addi r3,r31,132 ffc0a244: 48 00 11 55 bl ffc0b398 <_Timespec_Add_to> <== ALWAYS TAKEN #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a248: 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; ffc0a24c: 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 ); ffc0a250: 7f e3 fb 78 mr r3,r31 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a254: 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; ffc0a258: 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 ); ffc0a25c: 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; ffc0a260: 91 7b 00 00 stw r11,0(r27) ffc0a264: 91 9b 00 04 stw r12,4(r27) #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0a268: 41 9e 00 14 beq- cr7,ffc0a27c <_Thread_Dispatch+0x120> <== NEVER TAKEN executing->libc_reent = *_Thread_libc_reent; ffc0a26c: 80 09 00 00 lwz r0,0(r9) ffc0a270: 90 1f 01 40 stw r0,320(r31) *_Thread_libc_reent = heir->libc_reent; ffc0a274: 80 1e 01 40 lwz r0,320(r30) ffc0a278: 90 09 00 00 stw r0,0(r9) } _User_extensions_Thread_switch( executing, heir ); ffc0a27c: 48 00 15 cd bl ffc0b848 <_User_extensions_Thread_switch> <== ALWAYS TAKEN * operations. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE ) if ( executing->fp_context != NULL ) ffc0a280: 80 1f 01 3c lwz r0,316(r31) _Context_Save_fp( &executing->fp_context ); ffc0a284: 38 7f 01 3c addi r3,r31,316 <== ALWAYS TAKEN * operations. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE ) if ( executing->fp_context != NULL ) ffc0a288: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a28c: 41 9e 00 08 beq- cr7,ffc0a294 <_Thread_Dispatch+0x138> _Context_Save_fp( &executing->fp_context ); ffc0a290: 48 01 20 d1 bl ffc1c360 <_CPU_Context_save_fp> <== ALWAYS TAKEN #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); ffc0a294: 38 7f 00 dc addi r3,r31,220 <== ALWAYS TAKEN ffc0a298: 38 9e 00 dc addi r4,r30,220 ffc0a29c: 48 01 22 45 bl ffc1c4e0 <_CPU_Context_switch> <== ALWAYS TAKEN _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); _Context_Restore_fp( &executing->fp_context ); _Thread_Allocated_fp = executing; } #else if ( executing->fp_context != NULL ) ffc0a2a0: 80 1f 01 3c lwz r0,316(r31) _Context_Restore_fp( &executing->fp_context ); ffc0a2a4: 38 7f 01 3c addi r3,r31,316 _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); _Context_Restore_fp( &executing->fp_context ); _Thread_Allocated_fp = executing; } #else if ( executing->fp_context != NULL ) ffc0a2a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a2ac: 41 9e 00 08 beq- cr7,ffc0a2b4 <_Thread_Dispatch+0x158> _Context_Restore_fp( &executing->fp_context ); ffc0a2b0: 48 01 21 71 bl ffc1c420 <_CPU_Context_restore_fp> <== ALWAYS TAKEN #endif #endif executing = _Thread_Executing; ffc0a2b4: 83 fa 00 00 lwz r31,0(r26) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a2b8: 7c 00 00 a6 mfmsr r0 ffc0a2bc: 7d 30 42 a6 mfsprg r9,0 ffc0a2c0: 7c 09 48 78 andc r9,r0,r9 <== ALWAYS TAKEN ffc0a2c4: 7d 20 01 24 mtmsr r9 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0a2c8: 89 39 00 00 lbz r9,0(r25) ffc0a2cc: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc0a2d0: 40 9e ff 2c bne+ cr7,ffc0a1fc <_Thread_Dispatch+0xa0> executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; ffc0a2d4: 3d 60 00 00 lis r11,0 ffc0a2d8: 91 2b 27 70 stw r9,10096(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a2dc: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); if ( _Thread_Do_post_task_switch_extension || ffc0a2e0: 3d 20 00 00 lis r9,0 ffc0a2e4: 80 09 27 a0 lwz r0,10144(r9) <== ALWAYS TAKEN ffc0a2e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a2ec: 40 9e 00 10 bne- cr7,ffc0a2fc <_Thread_Dispatch+0x1a0> executing->do_post_task_switch_extension ) { ffc0a2f0: 88 1f 00 74 lbz r0,116(r31) <== ALWAYS TAKEN ffc0a2f4: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc0a2f8: 41 9e 00 10 beq- cr7,ffc0a308 <_Thread_Dispatch+0x1ac> executing->do_post_task_switch_extension = false; ffc0a2fc: 38 00 00 00 li r0,0 ffc0a300: 98 1f 00 74 stb r0,116(r31) _API_extensions_Run_postswitch(); ffc0a304: 4b ff e3 8d bl ffc08690 <_API_extensions_Run_postswitch> <== ALWAYS TAKEN } } ffc0a308: 80 01 00 54 lwz r0,84(r1) ffc0a30c: 82 61 00 1c lwz r19,28(r1) ffc0a310: 7c 08 03 a6 mtlr r0 ffc0a314: 82 81 00 20 lwz r20,32(r1) ffc0a318: 82 a1 00 24 lwz r21,36(r1) ffc0a31c: 82 c1 00 28 lwz r22,40(r1) ffc0a320: 82 e1 00 2c lwz r23,44(r1) ffc0a324: 83 01 00 30 lwz r24,48(r1) ffc0a328: 83 21 00 34 lwz r25,52(r1) ffc0a32c: 83 41 00 38 lwz r26,56(r1) <== ALWAYS TAKEN ffc0a330: 83 61 00 3c lwz r27,60(r1) ffc0a334: 83 81 00 40 lwz r28,64(r1) ffc0a338: 83 a1 00 44 lwz r29,68(r1) ffc0a33c: 83 c1 00 48 lwz r30,72(r1) ffc0a340: 83 e1 00 4c lwz r31,76(r1) ffc0a344: 38 21 00 50 addi r1,r1,80 ffc0a348: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a34c <_Thread_Enable_dispatch>: #if ( (defined(CPU_INLINE_ENABLE_DISPATCH) && \ (CPU_INLINE_ENABLE_DISPATCH == FALSE)) || \ (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) void _Thread_Enable_dispatch( void ) { if ( --_Thread_Dispatch_disable_level ) ffc0a34c: 3d 20 00 00 lis r9,0 ffc0a350: 81 69 27 70 lwz r11,10096(r9) ffc0a354: 38 0b ff ff addi r0,r11,-1 <== ALWAYS TAKEN ffc0a358: 90 09 27 70 stw r0,10096(r9) <== ALWAYS TAKEN ffc0a35c: 80 09 27 70 lwz r0,10096(r9) ffc0a360: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a364: 4c be 00 20 bnelr+ cr7 return; _Thread_Dispatch(); ffc0a368: 4b ff fd f4 b ffc0a15c <_Thread_Dispatch> <== ALWAYS TAKEN ffc10ec0 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; ffc10ec0: 3d 20 00 00 lis r9,0 ffc10ec4: 81 29 27 b0 lwz r9,10160(r9) if ( !_States_Is_ready( executing->current_state ) || ffc10ec8: 80 09 00 10 lwz r0,16(r9) ffc10ecc: 2f 80 00 00 cmpwi cr7,r0,0 ffc10ed0: 40 9e 00 20 bne- cr7,ffc10ef0 <_Thread_Evaluate_mode+0x30> <== NEVER TAKEN ffc10ed4: 3d 60 00 00 lis r11,0 ffc10ed8: 80 0b 27 8c lwz r0,10124(r11) ffc10edc: 7f 89 00 00 cmpw cr7,r9,r0 ffc10ee0: 41 9e 00 24 beq- cr7,ffc10f04 <_Thread_Evaluate_mode+0x44> ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { ffc10ee4: 88 09 00 75 lbz r0,117(r9) ffc10ee8: 2f 80 00 00 cmpwi cr7,r0,0 ffc10eec: 41 9e 00 18 beq- cr7,ffc10f04 <_Thread_Evaluate_mode+0x44> <== NEVER TAKEN _Context_Switch_necessary = true; ffc10ef0: 38 00 00 01 li r0,1 ffc10ef4: 3d 20 00 00 lis r9,0 ffc10ef8: 98 09 27 c0 stb r0,10176(r9) ffc10efc: 38 60 00 01 li r3,1 return true; ffc10f00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10f04: 38 60 00 00 li r3,0 <== ALWAYS TAKEN } return false; } ffc10f08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a36c <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { ffc0a36c: 7c 08 02 a6 mflr r0 ffc0a370: 94 21 ff f8 stwu r1,-8(r1) ffc0a374: 7c 85 23 78 mr r5,r4 ffc0a378: 90 01 00 0c stw r0,12(r1) uint32_t the_class; Objects_Information **api_information; Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { ffc0a37c: 7c 60 1b 79 mr. r0,r3 ffc0a380: 40 a2 00 24 bne+ ffc0a3a4 <_Thread_Get+0x38> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a384: 3d 20 00 00 lis r9,0 ffc0a388: 81 69 27 70 lwz r11,10096(r9) ffc0a38c: 39 6b 00 01 addi r11,r11,1 ffc0a390: 91 69 27 70 stw r11,10096(r9) _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; ffc0a394: 3d 20 00 00 lis r9,0 Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; ffc0a398: 90 04 00 00 stw r0,0(r4) tp = _Thread_Executing; ffc0a39c: 80 69 27 b0 lwz r3,10160(r9) goto done; ffc0a3a0: 48 00 00 60 b ffc0a400 <_Thread_Get+0x94> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); ffc0a3a4: 54 0b 47 7e rlwinm r11,r0,8,29,31 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) ffc0a3a8: 39 2b ff ff addi r9,r11,-1 <== ALWAYS TAKEN ffc0a3ac: 2b 89 00 03 cmplwi cr7,r9,3 ffc0a3b0: 40 9d 00 60 ble- cr7,ffc0a410 <_Thread_Get+0xa4> goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; ffc0a3b4: 38 00 00 01 li r0,1 ffc0a3b8: 90 05 00 00 stw r0,0(r5) ffc0a3bc: 48 00 00 20 b ffc0a3dc <_Thread_Get+0x70> <== ALWAYS TAKEN goto done; } api_information = _Objects_Information_table[ the_api ]; ffc0a3c0: 3d 40 00 00 lis r10,0 <== ALWAYS TAKEN ffc0a3c4: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc0a3c8: 39 4a 2c 20 addi r10,r10,11296 ffc0a3cc: 7d 6a 58 2e lwzx r11,r10,r11 if ( !api_information ) { ffc0a3d0: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a3d4: 40 be 00 10 bne+ cr7,ffc0a3e4 <_Thread_Get+0x78> *location = OBJECTS_ERROR; ffc0a3d8: 91 25 00 00 stw r9,0(r5) ffc0a3dc: 38 60 00 00 li r3,0 goto done; ffc0a3e0: 48 00 00 20 b ffc0a400 <_Thread_Get+0x94> <== ALWAYS TAKEN } information = api_information[ the_class ]; ffc0a3e4: 80 6b 00 04 lwz r3,4(r11) if ( !information ) { ffc0a3e8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a3ec: 40 be 00 0c bne+ cr7,ffc0a3f8 <_Thread_Get+0x8c> *location = OBJECTS_ERROR; ffc0a3f0: 91 25 00 00 stw r9,0(r5) goto done; ffc0a3f4: 48 00 00 0c b ffc0a400 <_Thread_Get+0x94> <== ALWAYS TAKEN } tp = (Thread_Control *) _Objects_Get( information, id, location ); ffc0a3f8: 7c 04 03 78 mr r4,r0 ffc0a3fc: 4b ff f4 41 bl ffc0983c <_Objects_Get> <== ALWAYS TAKEN done: return tp; } ffc0a400: 80 01 00 0c lwz r0,12(r1) ffc0a404: 38 21 00 08 addi r1,r1,8 ffc0a408: 7c 08 03 a6 mtlr r0 ffc0a40c: 4e 80 00 20 blr <== ALWAYS TAKEN *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ ffc0a410: 54 09 2e fe rlwinm r9,r0,5,27,31 ffc0a414: 2f 89 00 01 cmpwi cr7,r9,1 ffc0a418: 41 9e ff a8 beq+ cr7,ffc0a3c0 <_Thread_Get+0x54> ffc0a41c: 4b ff ff 98 b ffc0a3b4 <_Thread_Get+0x48> <== ALWAYS TAKEN ffc10f0c <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc10f0c: 94 21 ff f0 stwu r1,-16(r1) ffc10f10: 7c 08 02 a6 mflr r0 #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; ffc10f14: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc10f18: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN ffc10f1c: 93 e1 00 0c stw r31,12(r1) #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; ffc10f20: 83 e9 27 b0 lwz r31,10160(r9) * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc10f24: 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; ffc10f28: 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); ffc10f2c: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc10f30: 7c 00 00 a6 mfmsr r0 if (!(level & CPU_MODES_INTERRUPT_MASK)) { ffc10f34: 71 2b 00 01 andi. r11,r9,1 ffc10f38: 40 82 00 10 bne- ffc10f48 <_Thread_Handler+0x3c> static inline uint32_t ppc_interrupt_get_disable_mask( void ) { uint32_t mask; asm volatile ( ffc10f3c: 7d 30 42 a6 mfsprg r9,0 <== ALWAYS TAKEN msr |= ppc_interrupt_get_disable_mask(); ffc10f40: 7d 20 03 78 or r0,r9,r0 ffc10f44: 48 00 00 0c b ffc10f50 <_Thread_Handler+0x44> <== ALWAYS TAKEN ffc10f48: 7d 30 42 a6 mfsprg r9,0 } else { msr &= ~ppc_interrupt_get_disable_mask(); ffc10f4c: 7c 00 48 78 andc r0,r0,r9 } _CPU_MSR_SET(msr); ffc10f50: 7c 00 01 24 mtmsr r0 _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; ffc10f54: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc10f58: 8b c9 29 94 lbz r30,10644(r9) <== ALWAYS TAKEN doneConstructors = 1; ffc10f5c: 38 00 00 01 li r0,1 <== ALWAYS TAKEN /* * 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 ); ffc10f60: 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; ffc10f64: 98 09 29 94 stb r0,10644(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 ); ffc10f68: 4b ff a5 d9 bl ffc0b540 <_User_extensions_Thread_begin> <== ALWAYS TAKEN /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); ffc10f6c: 4b ff 93 e1 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* * _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) */ { ffc10f70: 2f 9e 00 00 cmpwi cr7,r30,0 ffc10f74: 40 be 00 08 bne+ cr7,ffc10f7c <_Thread_Handler+0x70> INIT_NAME (); ffc10f78: 48 00 c4 45 bl ffc1d3bc <_init> <== ALWAYS TAKEN } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { ffc10f7c: 80 1f 00 a8 lwz r0,168(r31) ffc10f80: 2f 80 00 00 cmpwi cr7,r0,0 ffc10f84: 40 be 00 10 bne+ cr7,ffc10f94 <_Thread_Handler+0x88> executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( ffc10f88: 80 1f 00 a4 lwz r0,164(r31) ffc10f8c: 80 7f 00 b0 lwz r3,176(r31) ffc10f90: 48 00 00 14 b ffc10fa4 <_Thread_Handler+0x98> <== ALWAYS TAKEN executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { ffc10f94: 2f 80 00 01 cmpwi cr7,r0,1 ffc10f98: 40 be 00 18 bne+ cr7,ffc10fb0 <_Thread_Handler+0xa4> <== NEVER TAKEN executing->Wait.return_argument = (*(Thread_Entry_pointer) executing->Start.entry_point)( ffc10f9c: 80 1f 00 a4 lwz r0,164(r31) ffc10fa0: 80 7f 00 ac lwz r3,172(r31) ffc10fa4: 7c 09 03 a6 mtctr r0 ffc10fa8: 4e 80 04 21 bctrl <== ALWAYS TAKEN executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { executing->Wait.return_argument = ffc10fac: 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 ); ffc10fb0: 7f e3 fb 78 mr r3,r31 ffc10fb4: 4b ff a5 fd bl ffc0b5b0 <_User_extensions_Thread_exitted> <== ALWAYS TAKEN _Internal_error_Occurred( ffc10fb8: 38 60 00 00 li r3,0 ffc10fbc: 38 80 00 01 li r4,1 ffc10fc0: 38 a0 00 06 li r5,6 ffc10fc4: 4b ff 82 6d bl ffc09230 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc0a67c <_Thread_Handler_initialization>: * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { ffc0a67c: 94 21 ff f0 stwu r1,-16(r1) ffc0a680: 7c 08 02 a6 mflr r0 uint32_t maximum_extensions; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; ffc0a684: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { ffc0a688: 90 01 00 14 stw r0,20(r1) uint32_t maximum_extensions; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; ffc0a68c: 39 29 20 a0 addi r9,r9,8352 #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) ffc0a690: 81 69 00 20 lwz r11,32(r9) ffc0a694: 80 09 00 24 lwz r0,36(r9) ffc0a698: 7d 6b 00 34 cntlzw r11,r11 * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { ffc0a69c: 93 e1 00 0c stw r31,12(r1) #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) ffc0a6a0: 7c 00 00 34 cntlzw r0,r0 ffc0a6a4: 55 6b d9 7e rlwinm r11,r11,27,5,31 #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; maximum_extensions = Configuration.maximum_extensions; ffc0a6a8: 81 49 00 08 lwz r10,8(r9) #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) ffc0a6ac: 54 00 d9 7e rlwinm r0,r0,27,5,31 ffc0a6b0: 7c 00 5a 79 xor. r0,r0,r11 uint32_t maximum_extensions; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; ffc0a6b4: 81 69 00 10 lwz r11,16(r9) <== ALWAYS TAKEN #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) ffc0a6b8: 41 a2 00 14 beq+ ffc0a6cc <_Thread_Handler_initialization+0x50> == (!Configuration.stack_free_hook) ) ) _Internal_error_Occurred( ffc0a6bc: 38 60 00 00 li r3,0 ffc0a6c0: 38 80 00 01 li r4,1 ffc0a6c4: 38 a0 00 0f li r5,15 ffc0a6c8: 4b ff eb 69 bl ffc09230 <_Internal_error_Occurred> <== ALWAYS TAKEN INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = false; ffc0a6cc: 3d 20 00 00 lis r9,0 ffc0a6d0: 98 09 27 c0 stb r0,10176(r9) <== ALWAYS TAKEN _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0a6d4: 3f e0 00 00 lis r31,0 _Thread_Heir = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; #endif _Thread_Do_post_task_switch_extension = 0; ffc0a6d8: 3d 20 00 00 lis r9,0 ffc0a6dc: 90 09 27 a0 stw r0,10144(r9) _Thread_Maximum_extensions = maximum_extensions; ffc0a6e0: 3d 20 00 00 lis r9,0 _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0a6e4: 88 7f 26 a4 lbz r3,9892(r31) _Thread_Allocated_fp = NULL; #endif _Thread_Do_post_task_switch_extension = 0; _Thread_Maximum_extensions = maximum_extensions; ffc0a6e8: 91 49 27 9c stw r10,10140(r9) <== ALWAYS TAKEN _Thread_Ticks_per_timeslice = ticks_per_timeslice; ffc0a6ec: 3d 20 00 00 lis r9,0 _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0a6f0: 38 63 00 01 addi r3,r3,1 <== ALWAYS TAKEN _Thread_Do_post_task_switch_extension = 0; _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; ffc0a6f4: 91 69 27 68 stw r11,10088(r9) true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = false; _Thread_Executing = NULL; ffc0a6f8: 3d 20 00 00 lis r9,0 _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0a6fc: 1c 63 00 0c mulli r3,r3,12 true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = false; _Thread_Executing = NULL; ffc0a700: 90 09 27 b0 stw r0,10160(r9) _Thread_Heir = NULL; ffc0a704: 3d 20 00 00 lis r9,0 ffc0a708: 90 09 27 8c stw r0,10124(r9) #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; ffc0a70c: 3d 20 00 00 lis r9,0 ffc0a710: 90 09 27 84 stw r0,10116(r9) _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0a714: 48 00 14 85 bl ffc0bb98 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN ffc0a718: 3d 20 00 00 lis r9,0 (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) ffc0a71c: 89 7f 26 a4 lbz r11,9892(r31) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc0a720: 38 00 00 00 li r0,0 _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0a724: 90 69 27 64 stw r3,10084(r9) (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) ffc0a728: 39 20 00 00 li r9,0 ffc0a72c: 39 29 00 01 addi r9,r9,1 ffc0a730: 90 03 00 04 stw r0,4(r3) ffc0a734: 7f 89 58 40 cmplw cr7,r9,r11 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0a738: 39 43 00 04 addi r10,r3,4 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0a73c: 90 63 00 08 stw r3,8(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0a740: 91 43 00 00 stw r10,0(r3) ffc0a744: 38 63 00 0c addi r3,r3,12 ffc0a748: 40 9d ff e4 ble+ cr7,ffc0a72c <_Thread_Handler_initialization+0xb0> /* * Initialize this class of objects. */ _Objects_Initialize_information( ffc0a74c: 3c 60 00 00 lis r3,0 ffc0a750: 38 63 2d e0 addi r3,r3,11744 ffc0a754: 38 80 00 01 li r4,1 ffc0a758: 38 a0 00 01 li r5,1 ffc0a75c: 38 c0 00 01 li r6,1 ffc0a760: 38 e0 01 58 li r7,344 ffc0a764: 39 00 00 00 li r8,0 ffc0a768: 39 20 00 08 li r9,8 <== ALWAYS TAKEN ffc0a76c: 4b ff f1 61 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0a770: 80 01 00 14 lwz r0,20(r1) ffc0a774: 83 e1 00 0c lwz r31,12(r1) ffc0a778: 38 21 00 10 addi r1,r1,16 ffc0a77c: 7c 08 03 a6 mtlr r0 ffc0a780: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a420 <_Thread_Initialize>: if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { ffc0a420: 2c 05 00 00 cmpwi r5,0 Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { ffc0a424: 94 21 ff d8 stwu r1,-40(r1) ffc0a428: 7c 08 02 a6 mflr r0 ffc0a42c: 93 41 00 10 stw r26,16(r1) ffc0a430: 7d 3a 4b 78 mr r26,r9 ffc0a434: 90 01 00 2c stw r0,44(r1) <== ALWAYS TAKEN /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; ffc0a438: 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 ) { ffc0a43c: 81 21 00 38 lwz r9,56(r1) <== ALWAYS TAKEN ffc0a440: 93 01 00 08 stw r24,8(r1) ffc0a444: 93 21 00 0c stw r25,12(r1) ffc0a448: 7d 59 53 78 mr r25,r10 ffc0a44c: 93 61 00 14 stw r27,20(r1) ffc0a450: 7d 1b 43 78 mr r27,r8 ffc0a454: 93 81 00 18 stw r28,24(r1) ffc0a458: 7c fc 3b 78 mr r28,r7 ffc0a45c: 93 a1 00 1c stw r29,28(r1) ffc0a460: 7c dd 33 78 mr r29,r6 <== ALWAYS TAKEN ffc0a464: 93 c1 00 20 stw r30,32(r1) ffc0a468: 7c 7e 1b 78 mr r30,r3 ffc0a46c: 93 e1 00 24 stw r31,36(r1) ffc0a470: 7c 9f 23 78 mr r31,r4 ffc0a474: 83 09 00 00 lwz r24,0(r9) /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; ffc0a478: 90 04 01 44 stw r0,324(r4) ffc0a47c: 90 04 01 48 stw r0,328(r4) ffc0a480: 90 04 01 4c stw r0,332(r4) extensions_area = NULL; the_thread->libc_reent = NULL; ffc0a484: 90 04 01 40 stw r0,320(r4) <== ALWAYS TAKEN if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { ffc0a488: 40 a2 00 30 bne+ ffc0a4b8 <_Thread_Initialize+0x98> actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); ffc0a48c: 7c 83 23 78 mr r3,r4 ffc0a490: 7c c4 33 78 mr r4,r6 ffc0a494: 48 00 0a f1 bl ffc0af84 <_Thread_Stack_Allocate> <== ALWAYS TAKEN if ( !actual_stack_size || actual_stack_size < stack_size ) ffc0a498: 2c 03 00 00 cmpwi r3,0 ffc0a49c: 41 82 01 ac beq- ffc0a648 <_Thread_Initialize+0x228> ffc0a4a0: 7f 83 e8 40 cmplw cr7,r3,r29 ffc0a4a4: 41 9c 01 a4 blt- cr7,ffc0a648 <_Thread_Initialize+0x228> <== NEVER TAKEN return false; /* stack allocation failed */ stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = true; ffc0a4a8: 38 00 00 01 li r0,1 if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; ffc0a4ac: 80 bf 00 d8 lwz r5,216(r31) <== ALWAYS TAKEN the_thread->Start.core_allocated_stack = true; ffc0a4b0: 98 1f 00 c8 stb r0,200(r31) ffc0a4b4: 48 00 00 0c b ffc0a4c0 <_Thread_Initialize+0xa0> <== ALWAYS TAKEN } else { stack = stack_area; actual_stack_size = stack_size; the_thread->Start.core_allocated_stack = false; ffc0a4b8: 98 04 00 c8 stb r0,200(r4) ffc0a4bc: 7c c3 33 78 mr r3,r6 /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { ffc0a4c0: 2f 9c 00 00 cmpwi cr7,r28,0 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; ffc0a4c4: 90 bf 00 d0 stw r5,208(r31) ffc0a4c8: 3b 80 00 00 li r28,0 the_stack->size = size; ffc0a4cc: 90 7f 00 cc stw r3,204(r31) ffc0a4d0: 41 be 00 1c beq+ cr7,ffc0a4ec <_Thread_Initialize+0xcc> fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); ffc0a4d4: 38 60 01 08 li r3,264 ffc0a4d8: 48 00 17 09 bl ffc0bbe0 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !fp_area ) ffc0a4dc: 7c 7c 1b 79 mr. r28,r3 <== ALWAYS TAKEN ffc0a4e0: 40 a2 00 0c bne+ ffc0a4ec <_Thread_Initialize+0xcc> ffc0a4e4: 3b a0 00 00 li r29,0 ffc0a4e8: 48 00 01 04 b ffc0a5ec <_Thread_Initialize+0x1cc> <== ALWAYS TAKEN #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0a4ec: 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; ffc0a4f0: 93 9f 01 3c stw r28,316(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0a4f4: 38 00 00 00 li r0,0 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0a4f8: 80 69 27 9c lwz r3,10140(r9) ffc0a4fc: 3b a0 00 00 li r29,0 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0a500: 90 1f 00 6c stw r0,108(r31) ffc0a504: 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; ffc0a508: 93 9f 00 d4 stw r28,212(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0a50c: 90 1f 00 50 stw r0,80(r31) the_watchdog->routine = routine; ffc0a510: 90 1f 00 64 stw r0,100(r31) the_watchdog->id = id; ffc0a514: 90 1f 00 68 stw r0,104(r31) <== ALWAYS TAKEN #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0a518: 41 be 00 18 beq+ cr7,ffc0a530 <_Thread_Initialize+0x110> extensions_area = _Workspace_Allocate( ffc0a51c: 38 63 00 01 addi r3,r3,1 ffc0a520: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc0a524: 48 00 16 bd bl ffc0bbe0 <_Workspace_Allocate> <== ALWAYS TAKEN (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) ffc0a528: 7c 7d 1b 79 mr. r29,r3 ffc0a52c: 41 82 00 c0 beq- ffc0a5ec <_Thread_Initialize+0x1cc> * if they are linked to the thread. An extension user may * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { ffc0a530: 2f 9d 00 00 cmpwi cr7,r29,0 (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; ffc0a534: 93 bf 01 50 stw r29,336(r31) * if they are linked to the thread. An extension user may * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { ffc0a538: 41 9e 00 30 beq- cr7,ffc0a568 <_Thread_Initialize+0x148> for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) ffc0a53c: 3d 20 00 00 lis r9,0 ffc0a540: 81 69 27 9c lwz r11,10140(r9) the_thread->extensions[i] = NULL; ffc0a544: 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++ ) ffc0a548: 39 20 00 00 li r9,0 ffc0a54c: 48 00 00 0c b ffc0a558 <_Thread_Initialize+0x138> <== ALWAYS TAKEN the_thread->extensions[i] = NULL; ffc0a550: 81 1f 01 50 lwz r8,336(r31) ffc0a554: 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++ ) ffc0a558: 7f 89 58 40 cmplw cr7,r9,r11 the_thread->extensions[i] = NULL; ffc0a55c: 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++ ) ffc0a560: 39 29 00 01 addi r9,r9,1 ffc0a564: 40 9d ff ec ble+ cr7,ffc0a550 <_Thread_Initialize+0x130> the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; switch ( budget_algorithm ) { ffc0a568: 2f 99 00 02 cmpwi cr7,r25,2 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; ffc0a56c: 80 01 00 30 lwz r0,48(r1) <== ALWAYS TAKEN /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; ffc0a570: 9b 5f 00 b4 stb r26,180(r31) the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; ffc0a574: 90 1f 00 bc stw r0,188(r31) /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; ffc0a578: 93 3f 00 b8 stw r25,184(r31) the_thread->Start.budget_callout = budget_callout; switch ( budget_algorithm ) { ffc0a57c: 40 be 00 10 bne+ cr7,ffc0a58c <_Thread_Initialize+0x16c> case THREAD_CPU_BUDGET_ALGORITHM_NONE: case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: break; #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0a580: 3d 20 00 00 lis r9,0 ffc0a584: 80 09 27 68 lwz r0,10088(r9) ffc0a588: 90 1f 00 78 stw r0,120(r31) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; ffc0a58c: 80 01 00 34 lwz r0,52(r1) the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; ffc0a590: 3b 40 00 00 li r26,0 ffc0a594: 93 5f 00 44 stw r26,68(r31) <== ALWAYS TAKEN #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 ); ffc0a598: 7f 64 db 78 mr r4,r27 <== ALWAYS TAKEN ffc0a59c: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; ffc0a5a0: 90 1f 00 c0 stw r0,192(r31) the_thread->current_state = STATES_DORMANT; ffc0a5a4: 38 00 00 01 li r0,1 ffc0a5a8: 90 1f 00 10 stw r0,16(r31) the_thread->Wait.queue = NULL; the_thread->resource_count = 0; ffc0a5ac: 93 5f 00 1c stw r26,28(r31) #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; ffc0a5b0: 93 7f 00 18 stw r27,24(r31) the_thread->Start.initial_priority = priority; ffc0a5b4: 93 7f 00 c4 stw r27,196(r31) <== ALWAYS TAKEN _Thread_Set_priority( the_thread, priority ); ffc0a5b8: 48 00 07 c5 bl ffc0ad7c <_Thread_Set_priority> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0a5bc: a0 1f 00 0a lhz r0,10(r31) ffc0a5c0: 81 3e 00 1c lwz r9,28(r30) * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); ffc0a5c4: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0a5c8: 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 ); ffc0a5cc: 93 5f 00 88 stw r26,136(r31) <== ALWAYS TAKEN ffc0a5d0: 7f e9 01 2e stwx r31,r9,r0 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc0a5d4: 93 1f 00 0c stw r24,12(r31) ffc0a5d8: 93 5f 00 84 stw r26,132(r31) * enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread ); ffc0a5dc: 48 00 10 d5 bl ffc0b6b0 <_User_extensions_Thread_create> <== ALWAYS TAKEN if ( extension_status ) ffc0a5e0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a5e4: 38 60 00 01 li r3,1 ffc0a5e8: 40 9e 00 64 bne- cr7,ffc0a64c <_Thread_Initialize+0x22c> return true; failed: if ( the_thread->libc_reent ) ffc0a5ec: 80 7f 01 40 lwz r3,320(r31) ffc0a5f0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a5f4: 41 9e 00 08 beq- cr7,ffc0a5fc <_Thread_Initialize+0x1dc> _Workspace_Free( the_thread->libc_reent ); ffc0a5f8: 48 00 16 1d bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN ffc0a5fc: 3b c0 00 00 li r30,0 for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) ffc0a600: 7d 3f f2 14 add r9,r31,r30 ffc0a604: 80 69 01 44 lwz r3,324(r9) ffc0a608: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a60c: 41 9e 00 08 beq- cr7,ffc0a614 <_Thread_Initialize+0x1f4> _Workspace_Free( the_thread->API_Extensions[i] ); ffc0a610: 48 00 16 05 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) ffc0a614: 2f 9e 00 08 cmpwi cr7,r30,8 ffc0a618: 3b de 00 04 addi r30,r30,4 ffc0a61c: 40 9e ff e4 bne+ cr7,ffc0a600 <_Thread_Initialize+0x1e0> if ( the_thread->API_Extensions[i] ) _Workspace_Free( the_thread->API_Extensions[i] ); if ( extensions_area ) ffc0a620: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0a624: 41 9e 00 0c beq- cr7,ffc0a630 <_Thread_Initialize+0x210> (void) _Workspace_Free( extensions_area ); ffc0a628: 7f a3 eb 78 mr r3,r29 ffc0a62c: 48 00 15 e9 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) ffc0a630: 2f 9c 00 00 cmpwi cr7,r28,0 ffc0a634: 41 9e 00 0c beq- cr7,ffc0a640 <_Thread_Initialize+0x220> (void) _Workspace_Free( fp_area ); ffc0a638: 7f 83 e3 78 mr r3,r28 ffc0a63c: 48 00 15 d9 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN #endif _Thread_Stack_Free( the_thread ); ffc0a640: 7f e3 fb 78 mr r3,r31 ffc0a644: 48 00 09 cd bl ffc0b010 <_Thread_Stack_Free> <== ALWAYS TAKEN return false; ffc0a648: 38 60 00 00 li r3,0 } ffc0a64c: 80 01 00 2c lwz r0,44(r1) ffc0a650: 83 01 00 08 lwz r24,8(r1) ffc0a654: 7c 08 03 a6 mtlr r0 ffc0a658: 83 21 00 0c lwz r25,12(r1) ffc0a65c: 83 41 00 10 lwz r26,16(r1) ffc0a660: 83 61 00 14 lwz r27,20(r1) ffc0a664: 83 81 00 18 lwz r28,24(r1) ffc0a668: 83 a1 00 1c lwz r29,28(r1) ffc0a66c: 83 c1 00 20 lwz r30,32(r1) ffc0a670: 83 e1 00 24 lwz r31,36(r1) <== ALWAYS TAKEN ffc0a674: 38 21 00 28 addi r1,r1,40 <== ALWAYS TAKEN ffc0a678: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ebe4 <_Thread_Load_environment>: */ void _Thread_Load_environment( Thread_Control *the_thread ) { ffc0ebe4: 94 21 ff f0 stwu r1,-16(r1) ffc0ebe8: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN bool is_fp; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( the_thread->Start.fp_context ) { ffc0ebec: 39 00 00 00 li r8,0 */ void _Thread_Load_environment( Thread_Control *the_thread ) { ffc0ebf0: 90 01 00 14 stw r0,20(r1) ffc0ebf4: 93 e1 00 0c stw r31,12(r1) ffc0ebf8: 7c 7f 1b 78 mr r31,r3 bool is_fp; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( the_thread->Start.fp_context ) { ffc0ebfc: 80 63 00 d4 lwz r3,212(r3) ffc0ec00: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ec04: 41 9e 00 18 beq- cr7,ffc0ec1c <_Thread_Load_environment+0x38> the_thread->fp_context = the_thread->Start.fp_context; ffc0ec08: 90 7f 01 3c stw r3,316(r31) _Context_Initialize_fp( &the_thread->fp_context ); ffc0ec0c: 38 80 00 00 li r4,0 ffc0ec10: 38 a0 01 08 li r5,264 ffc0ec14: 48 00 3c e1 bl ffc128f4 <== ALWAYS TAKEN ffc0ec18: 39 00 00 01 li r8,1 the_thread->do_post_task_switch_extension = false; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; ffc0ec1c: 80 1f 00 bc lwz r0,188(r31) } else #endif is_fp = false; the_thread->do_post_task_switch_extension = false; ffc0ec20: 39 40 00 00 li r10,0 the_thread->is_preemptible = the_thread->Start.is_preemptible; ffc0ec24: 89 7f 00 b4 lbz r11,180(r31) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; _Context_Initialize( ffc0ec28: 3c e0 ff c1 lis r7,-63 is_fp = false; the_thread->do_post_task_switch_extension = false; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; ffc0ec2c: 81 3f 00 b8 lwz r9,184(r31) the_thread->budget_callout = the_thread->Start.budget_callout; _Context_Initialize( ffc0ec30: 38 7f 00 dc addi r3,r31,220 the_thread->do_post_task_switch_extension = false; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; ffc0ec34: 90 1f 00 80 stw r0,128(r31) <== ALWAYS TAKEN _Context_Initialize( ffc0ec38: 38 e7 0f 0c addi r7,r7,3852 } else #endif is_fp = false; the_thread->do_post_task_switch_extension = false; ffc0ec3c: 99 5f 00 74 stb r10,116(r31) the_thread->is_preemptible = the_thread->Start.is_preemptible; ffc0ec40: 99 7f 00 75 stb r11,117(r31) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; ffc0ec44: 91 3f 00 7c stw r9,124(r31) the_thread->budget_callout = the_thread->Start.budget_callout; _Context_Initialize( ffc0ec48: 80 df 00 c0 lwz r6,192(r31) ffc0ec4c: 80 9f 00 d0 lwz r4,208(r31) ffc0ec50: 80 bf 00 cc lwz r5,204(r31) ffc0ec54: 48 00 d6 71 bl ffc1c2c4 <_CPU_Context_Initialize> <== ALWAYS TAKEN the_thread->Start.isr_level, _Thread_Handler, is_fp ); } ffc0ec58: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc0ec5c: 83 e1 00 0c lwz r31,12(r1) ffc0ec60: 38 21 00 10 addi r1,r1,16 ffc0ec64: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0ec68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ef0c <_Thread_Ready>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ef0c: 7d 40 00 a6 mfmsr r10 <== ALWAYS TAKEN ffc0ef10: 7c 10 42 a6 mfsprg r0,0 ffc0ef14: 7d 40 00 78 andc r0,r10,r0 <== ALWAYS TAKEN ffc0ef18: 7c 00 01 24 mtmsr r0 ISR_Level level; Thread_Control *heir; _ISR_Disable( level ); the_thread->current_state = STATES_READY; ffc0ef1c: 38 00 00 00 li r0,0 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; ffc0ef20: 81 03 00 90 lwz r8,144(r3) ffc0ef24: 90 03 00 10 stw r0,16(r3) <== ALWAYS TAKEN _Priority_Major_bit_map |= the_priority_map->ready_major; ffc0ef28: 3d 20 00 00 lis r9,0 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; ffc0ef2c: 80 e8 00 00 lwz r7,0(r8) ffc0ef30: 80 03 00 98 lwz r0,152(r3) _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); ffc0ef34: 81 63 00 8c lwz r11,140(r3) ffc0ef38: 7c e0 03 78 or r0,r7,r0 ffc0ef3c: 90 08 00 00 stw r0,0(r8) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0ef40: 38 eb 00 04 addi r7,r11,4 _Priority_Major_bit_map |= the_priority_map->ready_major; ffc0ef44: 81 09 27 a4 lwz r8,10148(r9) ffc0ef48: 80 03 00 94 lwz r0,148(r3) <== ALWAYS TAKEN ffc0ef4c: 90 e3 00 00 stw r7,0(r3) ffc0ef50: 7d 00 03 78 or r0,r8,r0 old_last_node = the_chain->last; ffc0ef54: 81 0b 00 08 lwz r8,8(r11) ffc0ef58: 90 09 27 a4 stw r0,10148(r9) <== ALWAYS TAKEN the_chain->last = the_node; ffc0ef5c: 90 6b 00 08 stw r3,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0ef60: 91 03 00 04 stw r8,4(r3) <== ALWAYS TAKEN 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; ffc0ef64: 90 68 00 00 stw r3,0(r8) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0ef68: 7c 00 00 a6 mfmsr r0 ffc0ef6c: 7d 40 01 24 mtmsr r10 ffc0ef70: 7c 00 01 24 mtmsr r0 */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_Get_highest() ].first; ffc0ef74: 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 ); ffc0ef78: 81 69 27 a4 lwz r11,10148(r9) ffc0ef7c: 80 a8 27 64 lwz r5,10084(r8) ffc0ef80: 7d 66 00 34 cntlzw r6,r11 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0ef84: 3c e0 00 00 lis r7,0 RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); ffc0ef88: 91 69 27 a4 stw r11,10148(r9) _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0ef8c: 38 e7 2d a0 addi r7,r7,11680 ffc0ef90: 54 c8 10 3a rlwinm r8,r6,2,0,29 ffc0ef94: 7c 07 40 2e lwzx r0,r7,r8 <== ALWAYS TAKEN ffc0ef98: 7c 09 00 34 cntlzw r9,r0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0ef9c: 54 c6 20 36 rlwinm r6,r6,4,0,27 ffc0efa0: 7c 07 41 2e stwx r0,r7,r8 ffc0efa4: 7c c6 4a 14 add r6,r6,r9 ffc0efa8: 1c c6 00 0c mulli r6,r6,12 RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); ffc0efac: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0efb0: 7c 05 30 2e lwzx r0,r5,r6 RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); ffc0efb4: 81 29 27 b0 lwz r9,10160(r9) * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0efb8: 3d 60 00 00 lis r11,0 ffc0efbc: 90 0b 27 8c stw r0,10124(r11) <== ALWAYS TAKEN _Thread_Calculate_heir(); heir = _Thread_Heir; if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible ) ffc0efc0: 7f 80 48 00 cmpw cr7,r0,r9 ffc0efc4: 41 9e 00 1c beq- cr7,ffc0efe0 <_Thread_Ready+0xd4> ffc0efc8: 88 09 00 75 lbz r0,117(r9) ffc0efcc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0efd0: 41 9e 00 10 beq- cr7,ffc0efe0 <_Thread_Ready+0xd4> _Context_Switch_necessary = true; ffc0efd4: 38 00 00 01 li r0,1 ffc0efd8: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0efdc: 98 09 27 c0 stb r0,10176(r9) <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0efe0: 7d 40 01 24 mtmsr r10 _ISR_Enable( level ); } ffc0efe4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc101ec <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc101ec: 94 21 ff f0 stwu r1,-16(r1) ffc101f0: 7c 08 02 a6 mflr r0 the_thread->resource_count = 0; ffc101f4: 39 40 00 00 li r10,0 void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc101f8: 90 01 00 14 stw r0,20(r1) the_thread->resource_count = 0; #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->is_preemptible = the_thread->Start.is_preemptible; ffc101fc: 89 63 00 b4 lbz r11,180(r3) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; ffc10200: 81 23 00 b8 lwz r9,184(r3) the_thread->budget_callout = the_thread->Start.budget_callout; ffc10204: 80 03 00 bc lwz r0,188(r3) Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { the_thread->resource_count = 0; ffc10208: 91 43 00 1c stw r10,28(r3) #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->is_preemptible = the_thread->Start.is_preemptible; ffc1020c: 99 63 00 75 stb r11,117(r3) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; ffc10210: 91 23 00 7c stw r9,124(r3) the_thread->budget_callout = the_thread->Start.budget_callout; ffc10214: 90 03 00 80 stw r0,128(r3) the_thread->Start.pointer_argument = pointer_argument; ffc10218: 90 83 00 ac stw r4,172(r3) the_thread->Start.numeric_argument = numeric_argument; ffc1021c: 90 a3 00 b0 stw r5,176(r3) void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc10220: 93 e1 00 0c stw r31,12(r1) ffc10224: 7c 7f 1b 78 mr r31,r3 the_thread->budget_callout = the_thread->Start.budget_callout; the_thread->Start.pointer_argument = pointer_argument; the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { ffc10228: 4b ff b9 a9 bl ffc0bbd0 <_Thread_queue_Extract_with_proxy> <== ALWAYS TAKEN ffc1022c: 2f 83 00 00 cmpwi cr7,r3,0 ffc10230: 40 9e 00 18 bne- cr7,ffc10248 <_Thread_Reset+0x5c> if ( _Watchdog_Is_active( &the_thread->Timer ) ) ffc10234: 80 1f 00 50 lwz r0,80(r31) ffc10238: 2f 80 00 02 cmpwi cr7,r0,2 ffc1023c: 40 be 00 0c bne+ cr7,ffc10248 <_Thread_Reset+0x5c> (void) _Watchdog_Remove( &the_thread->Timer ); ffc10240: 38 7f 00 48 addi r3,r31,72 ffc10244: 4b ff c9 11 bl ffc0cb54 <_Watchdog_Remove> <== ALWAYS TAKEN } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { ffc10248: 80 9f 00 c4 lwz r4,196(r31) <== ALWAYS TAKEN ffc1024c: 80 1f 00 14 lwz r0,20(r31) ffc10250: 7f 80 20 00 cmpw cr7,r0,r4 ffc10254: 41 9e 00 10 beq- cr7,ffc10264 <_Thread_Reset+0x78> the_thread->real_priority = the_thread->Start.initial_priority; ffc10258: 90 9f 00 18 stw r4,24(r31) _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); ffc1025c: 7f e3 fb 78 mr r3,r31 ffc10260: 4b ff bb d5 bl ffc0be34 <_Thread_Set_priority> <== ALWAYS TAKEN } } ffc10264: 80 01 00 14 lwz r0,20(r1) ffc10268: 83 e1 00 0c lwz r31,12(r1) ffc1026c: 38 21 00 10 addi r1,r1,16 ffc10270: 7c 08 03 a6 mtlr r0 ffc10274: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0efe8 <_Thread_Reset_timeslice>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ffc0efe8: 3d 20 00 00 lis r9,0 ffc0efec: 81 29 27 b0 lwz r9,10160(r9) ready = executing->ready; ffc0eff0: 81 69 00 8c lwz r11,140(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0eff4: 7c 00 00 a6 mfmsr r0 ffc0eff8: 7d 50 42 a6 mfsprg r10,0 ffc0effc: 7c 0a 50 78 andc r10,r0,r10 ffc0f000: 7d 40 01 24 mtmsr r10 _ISR_Disable( level ); if ( _Chain_Has_only_one_node( ready ) ) { ffc0f004: 81 0b 00 00 lwz r8,0(r11) ffc0f008: 81 4b 00 08 lwz r10,8(r11) ffc0f00c: 7f 88 50 00 cmpw cr7,r8,r10 ffc0f010: 40 be 00 08 bne+ cr7,ffc0f018 <_Thread_Reset_timeslice+0x30> _ISR_Enable( level ); ffc0f014: 48 00 00 5c b ffc0f070 <_Thread_Reset_timeslice+0x88> <== ALWAYS TAKEN ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0f018: 81 49 00 00 lwz r10,0(r9) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0f01c: 38 eb 00 04 addi r7,r11,4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0f020: 81 09 00 04 lwz r8,4(r9) next->previous = previous; previous->next = next; ffc0f024: 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; ffc0f028: 91 0a 00 04 stw r8,4(r10) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0f02c: 90 e9 00 00 stw r7,0(r9) old_last_node = the_chain->last; ffc0f030: 81 4b 00 08 lwz r10,8(r11) the_chain->last = the_node; ffc0f034: 91 2b 00 08 stw r9,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0f038: 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; ffc0f03c: 91 2a 00 00 stw r9,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0f040: 7d 40 00 a6 mfmsr r10 ffc0f044: 7c 00 01 24 mtmsr r0 ffc0f048: 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 ) ) ffc0f04c: 3d 40 00 00 lis r10,0 ffc0f050: 81 0a 27 8c lwz r8,10124(r10) ffc0f054: 7f 89 40 00 cmpw cr7,r9,r8 ffc0f058: 40 be 00 0c bne+ cr7,ffc0f064 <_Thread_Reset_timeslice+0x7c> <== NEVER TAKEN _Thread_Heir = (Thread_Control *) ready->first; ffc0f05c: 81 2b 00 00 lwz r9,0(r11) ffc0f060: 91 2a 27 8c stw r9,10124(r10) _Context_Switch_necessary = true; ffc0f064: 39 60 00 01 li r11,1 ffc0f068: 3d 20 00 00 lis r9,0 ffc0f06c: 99 69 27 c0 stb r11,10176(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0f070: 7c 00 01 24 mtmsr r0 ffc0f074: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bd88 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0bd88: 94 21 ff e8 stwu r1,-24(r1) ffc0bd8c: 7c 08 02 a6 mflr r0 ffc0bd90: 90 01 00 1c stw r0,28(r1) if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0bd94: 80 03 00 10 lwz r0,16(r3) bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0bd98: 93 e1 00 14 stw r31,20(r1) ffc0bd9c: 7c 7f 1b 78 mr r31,r3 if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0bda0: 70 09 00 01 andi. r9,r0,1 ffc0bda4: 38 00 00 00 li r0,0 ffc0bda8: 40 a2 00 74 bne+ ffc0be1c <_Thread_Restart+0x94> _Thread_Set_transient( the_thread ); ffc0bdac: 90 81 00 08 stw r4,8(r1) ffc0bdb0: 90 a1 00 0c stw r5,12(r1) ffc0bdb4: 48 00 01 f5 bl ffc0bfa8 <_Thread_Set_transient> <== ALWAYS TAKEN _Thread_Reset( the_thread, pointer_argument, numeric_argument ); ffc0bdb8: 7f e3 fb 78 mr r3,r31 ffc0bdbc: 80 81 00 08 lwz r4,8(r1) ffc0bdc0: 80 a1 00 0c lwz r5,12(r1) ffc0bdc4: 48 00 44 29 bl ffc101ec <_Thread_Reset> <== ALWAYS TAKEN _Thread_Load_environment( the_thread ); ffc0bdc8: 7f e3 fb 78 mr r3,r31 ffc0bdcc: 48 00 40 1d bl ffc0fde8 <_Thread_Load_environment> <== ALWAYS TAKEN _Thread_Ready( the_thread ); ffc0bdd0: 7f e3 fb 78 mr r3,r31 ffc0bdd4: 48 00 43 3d bl ffc10110 <_Thread_Ready> <== ALWAYS TAKEN _User_extensions_Thread_restart( the_thread ); ffc0bdd8: 7f e3 fb 78 mr r3,r31 ffc0bddc: 48 00 0a a1 bl ffc0c87c <_User_extensions_Thread_restart> <== ALWAYS TAKEN if ( _Thread_Is_executing ( the_thread ) ) ffc0bde0: 3d 20 00 00 lis r9,0 ffc0bde4: 81 29 27 fc lwz r9,10236(r9) ffc0bde8: 38 00 00 01 li r0,1 ffc0bdec: 7f 9f 48 00 cmpw cr7,r31,r9 ffc0bdf0: 40 be 00 2c bne+ cr7,ffc0be1c <_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 ) ffc0bdf4: 80 1f 01 3c lwz r0,316(r31) ffc0bdf8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bdfc: 41 9e 00 0c beq- cr7,ffc0be08 <_Thread_Restart+0x80> <== NEVER TAKEN _Context_Restore_fp( &_Thread_Executing->fp_context ); ffc0be00: 38 7f 01 3c addi r3,r31,316 ffc0be04: 48 01 44 dd bl ffc202e0 <_CPU_Context_restore_fp> <== ALWAYS TAKEN #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); ffc0be08: 3d 20 00 00 lis r9,0 ffc0be0c: 80 69 27 fc lwz r3,10236(r9) ffc0be10: 38 63 00 dc addi r3,r3,220 ffc0be14: 48 01 46 8d bl ffc204a0 <_CPU_Context_restore> <== ALWAYS TAKEN ffc0be18: 38 00 00 01 li r0,1 <== NOT EXECUTED return true; } return false; } ffc0be1c: 7c 03 03 78 mr r3,r0 ffc0be20: 80 01 00 1c lwz r0,28(r1) ffc0be24: 83 e1 00 14 lwz r31,20(r1) ffc0be28: 38 21 00 18 addi r1,r1,24 ffc0be2c: 7c 08 03 a6 mtlr r0 ffc0be30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f388 <_Thread_Resume>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0f388: 7c 00 00 a6 mfmsr r0 ffc0f38c: 7d 30 42 a6 mfsprg r9,0 ffc0f390: 7c 09 48 78 andc r9,r0,r9 ffc0f394: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; ffc0f398: 81 23 00 10 lwz r9,16(r3) if ( current_state & STATES_SUSPENDED ) { ffc0f39c: 71 2b 00 02 andi. r11,r9,2 ffc0f3a0: 41 82 00 a8 beq- ffc0f448 <_Thread_Resume+0xc0> <== NEVER TAKEN ffc0f3a4: 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 ) ) { ffc0f3a8: 2f 89 00 00 cmpwi cr7,r9,0 } #endif current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { current_state = ffc0f3ac: 91 23 00 10 stw r9,16(r3) the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { ffc0f3b0: 40 9e 00 98 bne- cr7,ffc0f448 <_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; ffc0f3b4: 81 63 00 90 lwz r11,144(r3) ffc0f3b8: 81 43 00 98 lwz r10,152(r3) ffc0f3bc: 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); ffc0f3c0: 81 23 00 8c lwz r9,140(r3) ffc0f3c4: 7d 0a 53 78 or r10,r8,r10 ffc0f3c8: 91 4b 00 00 stw r10,0(r11) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0f3cc: 39 69 00 04 addi r11,r9,4 _Priority_Major_bit_map |= the_priority_map->ready_major; ffc0f3d0: 3d 40 00 00 lis r10,0 ffc0f3d4: 91 63 00 00 stw r11,0(r3) <== ALWAYS TAKEN ffc0f3d8: 80 ea 27 c4 lwz r7,10180(r10) ffc0f3dc: 81 03 00 94 lwz r8,148(r3) old_last_node = the_chain->last; ffc0f3e0: 81 69 00 08 lwz r11,8(r9) ffc0f3e4: 7c e8 43 78 or r8,r7,r8 the_chain->last = the_node; ffc0f3e8: 90 69 00 08 stw r3,8(r9) ffc0f3ec: 91 0a 27 c4 stw r8,10180(r10) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0f3f0: 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; ffc0f3f4: 90 6b 00 00 stw r3,0(r11) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0f3f8: 7d 20 00 a6 mfmsr r9 ffc0f3fc: 7c 00 01 24 mtmsr r0 ffc0f400: 7d 20 01 24 mtmsr r9 _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { ffc0f404: 3d 60 00 00 lis r11,0 ffc0f408: 81 23 00 14 lwz r9,20(r3) ffc0f40c: 81 4b 27 ac lwz r10,10156(r11) ffc0f410: 81 4a 00 14 lwz r10,20(r10) ffc0f414: 7f 89 50 40 cmplw cr7,r9,r10 ffc0f418: 40 9c 00 30 bge- cr7,ffc0f448 <_Thread_Resume+0xc0> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || ffc0f41c: 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; ffc0f420: 90 6b 27 ac stw r3,10156(r11) if ( _Thread_Executing->is_preemptible || ffc0f424: 81 4a 27 d0 lwz r10,10192(r10) ffc0f428: 89 6a 00 75 lbz r11,117(r10) ffc0f42c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0f430: 40 9e 00 0c bne- cr7,ffc0f43c <_Thread_Resume+0xb4> ffc0f434: 2f 89 00 00 cmpwi cr7,r9,0 ffc0f438: 40 9e 00 10 bne- cr7,ffc0f448 <_Thread_Resume+0xc0> <== ALWAYS TAKEN the_thread->current_priority == 0 ) _Context_Switch_necessary = true; ffc0f43c: 39 60 00 01 li r11,1 ffc0f440: 3d 20 00 00 lis r9,0 ffc0f444: 99 69 27 e0 stb r11,10208(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0f448: 7c 00 01 24 mtmsr r0 } } } _ISR_Enable( level ); } ffc0f44c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ad7c <_Thread_Set_priority>: Thread_Control *the_thread, Priority_Control new_priority ) { the_thread->current_priority = new_priority; the_thread->ready = &_Thread_Ready_chain[ new_priority ]; ffc0ad7c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN void _Thread_Set_priority( Thread_Control *the_thread, Priority_Control new_priority ) { the_thread->current_priority = new_priority; ffc0ad80: 90 83 00 14 stw r4,20(r3) the_thread->ready = &_Thread_Ready_chain[ new_priority ]; ffc0ad84: 1d 44 00 0c mulli r10,r4,12 <== ALWAYS TAKEN ffc0ad88: 81 09 27 64 lwz r8,10084(r9) <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Priority_Bit_map_control _Priority_Major ( Priority_Control the_priority ) { return (Priority_Bit_map_control)( the_priority / 16 ); ffc0ad8c: 54 8b e1 3e rlwinm r11,r4,28,4,31 minor = _Priority_Minor( new_priority ); the_priority_map->minor = &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); ffc0ad90: 3d 20 80 00 lis r9,-32768 ffc0ad94: 7d 48 52 14 add r10,r8,r10 <== ALWAYS TAKEN the_priority_map->ready_major = mask; /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */ the_priority_map->block_major = (Priority_Bit_map_control)(~((uint32_t)mask)); mask = _Priority_Mask( minor ); ffc0ad98: 54 80 07 3e clrlwi r0,r4,28 <== ALWAYS TAKEN ffc0ad9c: 91 43 00 8c stw r10,140(r3) <== ALWAYS TAKEN Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = ffc0ada0: 3d 00 00 00 lis r8,0 mask = _Priority_Mask( major ); the_priority_map->ready_major = mask; /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */ the_priority_map->block_major = (Priority_Bit_map_control)(~((uint32_t)mask)); mask = _Priority_Mask( minor ); ffc0ada4: 7d 20 04 30 srw r0,r9,r0 Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = ffc0ada8: 39 08 2d a0 addi r8,r8,11680 the_priority_map->ready_major = mask; /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */ the_priority_map->block_major = (Priority_Bit_map_control)(~((uint32_t)mask)); mask = _Priority_Mask( minor ); the_priority_map->ready_minor = mask; ffc0adac: 90 03 00 98 stw r0,152(r3) minor = _Priority_Minor( new_priority ); the_priority_map->minor = &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); ffc0adb0: 7d 29 5c 30 srw r9,r9,r11 <== ALWAYS TAKEN Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = ffc0adb4: 55 6b 10 3a rlwinm r11,r11,2,0,29 <== ALWAYS TAKEN &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); the_priority_map->ready_major = mask; ffc0adb8: 91 23 00 94 stw r9,148(r3) Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = ffc0adbc: 7d 68 5a 14 add r11,r8,r11 the_priority_map->block_major = (Priority_Bit_map_control)(~((uint32_t)mask)); mask = _Priority_Mask( minor ); the_priority_map->ready_minor = mask; /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */ the_priority_map->block_minor = (Priority_Bit_map_control)(~((uint32_t)mask)); ffc0adc0: 7c 07 00 f8 not r7,r0 Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = ffc0adc4: 91 63 00 90 stw r11,144(r3) &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); the_priority_map->ready_major = mask; /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */ the_priority_map->block_major = (Priority_Bit_map_control)(~((uint32_t)mask)); ffc0adc8: 7d 28 48 f8 not r8,r9 mask = _Priority_Mask( minor ); the_priority_map->ready_minor = mask; /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */ the_priority_map->block_minor = (Priority_Bit_map_control)(~((uint32_t)mask)); ffc0adcc: 90 e3 00 a0 stw r7,160(r3) &_Priority_Bit_map[ _Priority_Bits_index(major) ]; mask = _Priority_Mask( major ); the_priority_map->ready_major = mask; /* Add _Priority_Mask_invert to non-generic bitfield then change this code. */ the_priority_map->block_major = (Priority_Bit_map_control)(~((uint32_t)mask)); ffc0add0: 91 03 00 9c stw r8,156(r3) _Priority_Initialize_information( &the_thread->Priority_map, new_priority ); } ffc0add4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0add8 <_Thread_Set_state>: ) { ISR_Level level; Chain_Control *ready; ready = the_thread->ready; ffc0add8: 81 23 00 8c lwz r9,140(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0addc: 7d 60 00 a6 mfmsr r11 ffc0ade0: 7c 10 42 a6 mfsprg r0,0 ffc0ade4: 7d 60 00 78 andc r0,r11,r0 <== ALWAYS TAKEN ffc0ade8: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { ffc0adec: 80 03 00 10 lwz r0,16(r3) ffc0adf0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0adf4: 41 be 00 10 beq+ cr7,ffc0ae04 <_Thread_Set_state+0x2c> the_thread->current_state = ffc0adf8: 7c 80 03 78 or r0,r4,r0 ffc0adfc: 90 03 00 10 stw r0,16(r3) _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); ffc0ae00: 48 00 00 e8 b ffc0aee8 <_Thread_Set_state+0x110> <== ALWAYS TAKEN return; } the_thread->current_state = state; if ( _Chain_Has_only_one_node( ready ) ) { ffc0ae04: 81 09 00 00 lwz r8,0(r9) ffc0ae08: 81 49 00 08 lwz r10,8(r9) _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; ffc0ae0c: 90 83 00 10 stw r4,16(r3) if ( _Chain_Has_only_one_node( ready ) ) { ffc0ae10: 7f 88 50 00 cmpw cr7,r8,r10 ffc0ae14: 40 be 00 48 bne+ cr7,ffc0ae5c <_Thread_Set_state+0x84> RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; ffc0ae18: 81 43 00 90 lwz r10,144(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ae1c: 38 e9 00 04 addi r7,r9,4 ffc0ae20: 81 03 00 a0 lwz r8,160(r3) ffc0ae24: 80 ca 00 00 lwz r6,0(r10) ffc0ae28: 90 e9 00 00 stw r7,0(r9) ffc0ae2c: 7c c8 40 38 and r8,r6,r8 _Chain_Initialize_empty( ready ); _Priority_Remove_from_bit_map( &the_thread->Priority_map ); ffc0ae30: 2f 88 00 00 cmpwi cr7,r8,0 the_chain->permanent_null = NULL; ffc0ae34: 90 09 00 04 stw r0,4(r9) the_chain->last = _Chain_Head(the_chain); ffc0ae38: 91 29 00 08 stw r9,8(r9) ffc0ae3c: 91 0a 00 00 stw r8,0(r10) <== ALWAYS TAKEN ffc0ae40: 40 9e 00 2c bne- cr7,ffc0ae6c <_Thread_Set_state+0x94> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; ffc0ae44: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0ae48: 80 03 00 9c lwz r0,156(r3) ffc0ae4c: 81 49 27 a4 lwz r10,10148(r9) ffc0ae50: 7d 40 00 38 and r0,r10,r0 ffc0ae54: 90 09 27 a4 stw r0,10148(r9) ffc0ae58: 48 00 00 14 b ffc0ae6c <_Thread_Set_state+0x94> <== ALWAYS TAKEN ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0ae5c: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; ffc0ae60: 81 43 00 04 lwz r10,4(r3) next->previous = previous; previous->next = next; ffc0ae64: 91 2a 00 00 stw r9,0(r10) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc0ae68: 91 49 00 04 stw r10,4(r9) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0ae6c: 7c 00 00 a6 mfmsr r0 ffc0ae70: 7d 60 01 24 mtmsr r11 ffc0ae74: 7c 00 01 24 mtmsr r0 } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( the_thread ) ) ffc0ae78: 3d 40 00 00 lis r10,0 ffc0ae7c: 80 0a 27 8c lwz r0,10124(r10) ffc0ae80: 7f 83 00 00 cmpw cr7,r3,r0 ffc0ae84: 40 be 00 48 bne+ cr7,ffc0aecc <_Thread_Set_state+0xf4> 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 ); ffc0ae88: 3c a0 00 00 lis r5,0 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) _Thread_Ready_chain[ _Priority_Get_highest() ].first; ffc0ae8c: 3d 00 00 00 lis r8,0 ffc0ae90: 81 25 27 a4 lwz r9,10148(r5) ffc0ae94: 80 88 27 64 lwz r4,10084(r8) ffc0ae98: 7d 26 00 34 cntlzw r6,r9 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0ae9c: 3c e0 00 00 lis r7,0 RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); ffc0aea0: 91 25 27 a4 stw r9,10148(r5) _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0aea4: 38 e7 2d a0 addi r7,r7,11680 ffc0aea8: 54 c8 10 3a rlwinm r8,r6,2,0,29 ffc0aeac: 7c 07 40 2e lwzx r0,r7,r8 ffc0aeb0: 7c 09 00 34 cntlzw r9,r0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0aeb4: 54 c6 20 36 rlwinm r6,r6,4,0,27 ffc0aeb8: 7c 07 41 2e stwx r0,r7,r8 <== ALWAYS TAKEN ffc0aebc: 7c c6 4a 14 add r6,r6,r9 ffc0aec0: 1c c6 00 0c mulli r6,r6,12 ffc0aec4: 7c 04 30 2e lwzx r0,r4,r6 ffc0aec8: 90 0a 27 8c stw r0,10124(r10) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) ffc0aecc: 3d 20 00 00 lis r9,0 ffc0aed0: 80 09 27 b0 lwz r0,10160(r9) ffc0aed4: 7f 83 00 00 cmpw cr7,r3,r0 ffc0aed8: 40 be 00 10 bne+ cr7,ffc0aee8 <_Thread_Set_state+0x110> _Context_Switch_necessary = true; ffc0aedc: 38 00 00 01 li r0,1 ffc0aee0: 3d 20 00 00 lis r9,0 ffc0aee4: 98 09 27 c0 stb r0,10176(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0aee8: 7d 60 01 24 mtmsr r11 ffc0aeec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aef0 <_Thread_Set_transient>: { ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; ffc0aef0: 81 23 00 8c lwz r9,140(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0aef4: 7d 00 00 a6 mfmsr r8 ffc0aef8: 7c 10 42 a6 mfsprg r0,0 ffc0aefc: 7d 00 00 78 andc r0,r8,r0 ffc0af00: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); old_state = the_thread->current_state; ffc0af04: 80 03 00 10 lwz r0,16(r3) the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); if ( _States_Is_ready( old_state ) ) { ffc0af08: 2f 80 00 00 cmpwi cr7,r0,0 ready = the_thread->ready; _ISR_Disable( level ); old_state = the_thread->current_state; the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); ffc0af0c: 60 0b 00 04 ori r11,r0,4 ffc0af10: 91 63 00 10 stw r11,16(r3) if ( _States_Is_ready( old_state ) ) { ffc0af14: 40 9e 00 68 bne- cr7,ffc0af7c <_Thread_Set_transient+0x8c> if ( _Chain_Has_only_one_node( ready ) ) { ffc0af18: 81 49 00 00 lwz r10,0(r9) <== ALWAYS TAKEN ffc0af1c: 81 69 00 08 lwz r11,8(r9) ffc0af20: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0af24: 40 be 00 48 bne+ cr7,ffc0af6c <_Thread_Set_transient+0x7c> RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; ffc0af28: 81 63 00 90 lwz r11,144(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0af2c: 38 e9 00 04 addi r7,r9,4 ffc0af30: 81 43 00 a0 lwz r10,160(r3) ffc0af34: 80 cb 00 00 lwz r6,0(r11) ffc0af38: 90 e9 00 00 stw r7,0(r9) ffc0af3c: 7c ca 50 38 and r10,r6,r10 _Chain_Initialize_empty( ready ); _Priority_Remove_from_bit_map( &the_thread->Priority_map ); ffc0af40: 2f 8a 00 00 cmpwi cr7,r10,0 the_chain->permanent_null = NULL; ffc0af44: 90 09 00 04 stw r0,4(r9) <== ALWAYS TAKEN the_chain->last = _Chain_Head(the_chain); ffc0af48: 91 29 00 08 stw r9,8(r9) ffc0af4c: 91 4b 00 00 stw r10,0(r11) ffc0af50: 40 9e 00 2c bne- cr7,ffc0af7c <_Thread_Set_transient+0x8c> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; ffc0af54: 3d 20 00 00 lis r9,0 ffc0af58: 80 03 00 9c lwz r0,156(r3) ffc0af5c: 81 69 27 a4 lwz r11,10148(r9) ffc0af60: 7d 60 00 38 and r0,r11,r0 ffc0af64: 90 09 27 a4 stw r0,10148(r9) ffc0af68: 48 00 00 14 b ffc0af7c <_Thread_Set_transient+0x8c> <== ALWAYS TAKEN { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0af6c: 81 63 00 04 lwz r11,4(r3) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0af70: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; next->previous = previous; previous->next = next; ffc0af74: 91 2b 00 00 stw r9,0(r11) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc0af78: 91 69 00 04 stw r11,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0af7c: 7d 00 01 24 mtmsr r8 _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); } ffc0af80: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af84 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { ffc0af84: 94 21 ff f0 stwu r1,-16(r1) ffc0af88: 7c 08 02 a6 mflr r0 ffc0af8c: 3d 20 00 00 lis r9,0 ffc0af90: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN ffc0af94: 80 09 26 a0 lwz r0,9888(r9) ffc0af98: 93 c1 00 08 stw r30,8(r1) ffc0af9c: 7c 7e 1b 78 mr r30,r3 ffc0afa0: 7f 84 00 40 cmplw cr7,r4,r0 ffc0afa4: 93 e1 00 0c stw r31,12(r1) ffc0afa8: 7c 9f 23 78 mr r31,r4 <== ALWAYS TAKEN ffc0afac: 40 9c 00 08 bge- cr7,ffc0afb4 <_Thread_Stack_Allocate+0x30> ffc0afb0: 7c 1f 03 78 mr r31,r0 * Call ONLY the CPU table stack allocate hook, _or_ the * the RTEMS workspace allocate. This is so the stack free * routine can call the correct deallocation routine. */ if ( Configuration.stack_allocate_hook ) { ffc0afb4: 3d 20 00 00 lis r9,0 ffc0afb8: 80 09 20 c0 lwz r0,8384(r9) ffc0afbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0afc0: 41 9e 00 14 beq- cr7,ffc0afd4 <_Thread_Stack_Allocate+0x50> stack_addr = (*Configuration.stack_allocate_hook)( the_stack_size ); ffc0afc4: 7f e3 fb 78 mr r3,r31 ffc0afc8: 7c 09 03 a6 mtctr r0 ffc0afcc: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0afd0: 48 00 00 10 b ffc0afe0 <_Thread_Stack_Allocate+0x5c> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; ffc0afd4: 3b ff 00 10 addi r31,r31,16 * get and keep the stack adjust factor, the stack alignment, and * the context initialization sequence in sync. */ the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); ffc0afd8: 7f e3 fb 78 mr r3,r31 ffc0afdc: 48 00 0c 05 bl ffc0bbe0 <_Workspace_Allocate> <== ALWAYS TAKEN } if ( !stack_addr ) ffc0afe0: 7c 69 fe 70 srawi r9,r3,31 the_stack_size = 0; the_thread->Start.stack = stack_addr; ffc0afe4: 90 7e 00 d8 stw r3,216(r30) <== ALWAYS TAKEN the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) ffc0afe8: 7d 20 1a 78 xor r0,r9,r3 ffc0afec: 7c 00 48 50 subf r0,r0,r9 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } ffc0aff0: 83 c1 00 08 lwz r30,8(r1) the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) ffc0aff4: 7c 00 fe 70 srawi r0,r0,31 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } ffc0aff8: 7f e3 00 38 and r3,r31,r0 ffc0affc: 80 01 00 14 lwz r0,20(r1) ffc0b000: 83 e1 00 0c lwz r31,12(r1) ffc0b004: 38 21 00 10 addi r1,r1,16 ffc0b008: 7c 08 03 a6 mtlr r0 ffc0b00c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b010 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { ffc0b010: 7c 08 02 a6 mflr r0 ffc0b014: 94 21 ff f8 stwu r1,-8(r1) ffc0b018: 90 01 00 0c stw r0,12(r1) #if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) /* * If the API provided the stack space, then don't free it. */ if ( !the_thread->Start.core_allocated_stack ) ffc0b01c: 88 03 00 c8 lbz r0,200(r3) ffc0b020: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b024: 41 9e 00 28 beq- cr7,ffc0b04c <_Thread_Stack_Free+0x3c> * Call ONLY the CPU table stack free hook, or the * the RTEMS workspace free. This is so the free * routine properly matches the allocation of the stack. */ if ( Configuration.stack_free_hook ) ffc0b028: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0b02c: 80 63 00 d0 lwz r3,208(r3) ffc0b030: 80 09 20 c4 lwz r0,8388(r9) ffc0b034: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b038: 41 9e 00 10 beq- cr7,ffc0b048 <_Thread_Stack_Free+0x38> (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); ffc0b03c: 7c 09 03 a6 mtctr r0 ffc0b040: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0b044: 48 00 00 08 b ffc0b04c <_Thread_Stack_Free+0x3c> <== ALWAYS TAKEN else _Workspace_Free( the_thread->Start.Initial_stack.area ); ffc0b048: 48 00 0b cd bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN } ffc0b04c: 80 01 00 0c lwz r0,12(r1) ffc0b050: 38 21 00 08 addi r1,r1,8 ffc0b054: 7c 08 03 a6 mtlr r0 ffc0b058: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b0cc <_Thread_Start>: Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0b0cc: 94 21 ff f0 stwu r1,-16(r1) ffc0b0d0: 7c 08 02 a6 mflr r0 ffc0b0d4: 90 01 00 14 stw r0,20(r1) if ( _States_Is_dormant( the_thread->current_state ) ) { ffc0b0d8: 80 03 00 10 lwz r0,16(r3) Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0b0dc: 93 e1 00 0c stw r31,12(r1) ffc0b0e0: 7c 7f 1b 78 mr r31,r3 if ( _States_Is_dormant( the_thread->current_state ) ) { ffc0b0e4: 70 09 00 01 andi. r9,r0,1 <== ALWAYS TAKEN ffc0b0e8: 38 00 00 00 li r0,0 ffc0b0ec: 41 a2 00 2c beq+ ffc0b118 <_Thread_Start+0x4c> the_thread->Start.entry_point = (Thread_Entry) entry_point; ffc0b0f0: 90 a3 00 a4 stw r5,164(r3) the_thread->Start.prototype = the_prototype; ffc0b0f4: 90 83 00 a8 stw r4,168(r3) the_thread->Start.pointer_argument = pointer_argument; ffc0b0f8: 90 c3 00 ac stw r6,172(r3) the_thread->Start.numeric_argument = numeric_argument; ffc0b0fc: 90 e3 00 b0 stw r7,176(r3) _Thread_Load_environment( the_thread ); ffc0b100: 48 00 3a e5 bl ffc0ebe4 <_Thread_Load_environment> <== ALWAYS TAKEN _Thread_Ready( the_thread ); ffc0b104: 7f e3 fb 78 mr r3,r31 ffc0b108: 48 00 3e 05 bl ffc0ef0c <_Thread_Ready> <== ALWAYS TAKEN _User_extensions_Thread_start( the_thread ); ffc0b10c: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0b110: 48 00 06 b5 bl ffc0b7c4 <_User_extensions_Thread_start> <== ALWAYS TAKEN ffc0b114: 38 00 00 01 li r0,1 return true; } return false; } ffc0b118: 7c 03 03 78 mr r3,r0 ffc0b11c: 80 01 00 14 lwz r0,20(r1) ffc0b120: 83 e1 00 0c lwz r31,12(r1) ffc0b124: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0b128: 7c 08 03 a6 mtlr r0 ffc0b12c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b05c <_Thread_Start_multitasking>: * ready chain * select heir */ void _Thread_Start_multitasking( void ) { ffc0b05c: 7c 08 02 a6 mflr r0 ffc0b060: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN _System_state_Set( SYSTEM_STATE_UP ); _Context_Switch_necessary = false; _Thread_Executing = _Thread_Heir; ffc0b064: 3d 20 00 00 lis r9,0 ffc0b068: 80 69 27 8c lwz r3,10124(r9) ffc0b06c: 3d 20 00 00 lis r9,0 * ready chain * select heir */ void _Thread_Start_multitasking( void ) { ffc0b070: 90 01 00 0c stw r0,12(r1) #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) /* * don't need to worry about saving BSP's floating point state */ if ( _Thread_Heir->fp_context != NULL ) ffc0b074: 80 03 01 3c lwz r0,316(r3) ffc0b078: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b07c: 38 00 00 03 li r0,3 ffc0b080: 90 09 27 d4 stw r0,10196(r9) * the system is shut down. */ _System_state_Set( SYSTEM_STATE_UP ); _Context_Switch_necessary = false; ffc0b084: 3d 20 00 00 lis r9,0 ffc0b088: 38 00 00 00 li r0,0 ffc0b08c: 98 09 27 c0 stb r0,10176(r9) _Thread_Executing = _Thread_Heir; ffc0b090: 3d 20 00 00 lis r9,0 ffc0b094: 90 69 27 b0 stw r3,10160(r9) #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) /* * don't need to worry about saving BSP's floating point state */ if ( _Thread_Heir->fp_context != NULL ) ffc0b098: 41 9e 00 0c beq- cr7,ffc0b0a4 <_Thread_Start_multitasking+0x48> _Context_Restore_fp( &_Thread_Heir->fp_context ); ffc0b09c: 38 63 01 3c addi r3,r3,316 ffc0b0a0: 48 01 13 81 bl ffc1c420 <_CPU_Context_restore_fp> <== ALWAYS TAKEN #endif _Context_Switch( &_Thread_BSP_context, &_Thread_Heir->Registers ); ffc0b0a4: 3d 20 00 00 lis r9,0 ffc0b0a8: 80 89 27 8c lwz r4,10124(r9) ffc0b0ac: 3c 60 00 00 lis r3,0 ffc0b0b0: 38 63 2c 34 addi r3,r3,11316 <== ALWAYS TAKEN ffc0b0b4: 38 84 00 dc addi r4,r4,220 ffc0b0b8: 48 01 14 29 bl ffc1c4e0 <_CPU_Context_switch> <== ALWAYS TAKEN } ffc0b0bc: 80 01 00 0c lwz r0,12(r1) ffc0b0c0: 38 21 00 08 addi r1,r1,8 ffc0b0c4: 7c 08 03 a6 mtlr r0 ffc0b0c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b130 <_Thread_Suspend>: ) { ISR_Level level; Chain_Control *ready; ready = the_thread->ready; ffc0b130: 81 23 00 8c lwz r9,140(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b134: 7d 60 00 a6 mfmsr r11 ffc0b138: 7c 10 42 a6 mfsprg r0,0 <== ALWAYS TAKEN ffc0b13c: 7d 60 00 78 andc r0,r11,r0 ffc0b140: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); #if defined(RTEMS_ITRON_API) the_thread->suspend_count++; #endif if ( !_States_Is_ready( the_thread->current_state ) ) { ffc0b144: 80 03 00 10 lwz r0,16(r3) ffc0b148: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b14c: 41 be 00 10 beq+ cr7,ffc0b15c <_Thread_Suspend+0x2c> the_thread->current_state = ffc0b150: 60 00 00 02 ori r0,r0,2 ffc0b154: 90 03 00 10 stw r0,16(r3) _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); ffc0b158: 48 00 00 ec b ffc0b244 <_Thread_Suspend+0x114> <== ALWAYS TAKEN return; } the_thread->current_state = STATES_SUSPENDED; if ( _Chain_Has_only_one_node( ready ) ) { ffc0b15c: 81 49 00 08 lwz r10,8(r9) ffc0b160: 81 09 00 00 lwz r8,0(r9) ffc0b164: 7f 88 50 00 cmpw cr7,r8,r10 _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED; ffc0b168: 39 40 00 02 li r10,2 ffc0b16c: 91 43 00 10 stw r10,16(r3) if ( _Chain_Has_only_one_node( ready ) ) { ffc0b170: 40 be 00 48 bne+ cr7,ffc0b1b8 <_Thread_Suspend+0x88> RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; ffc0b174: 81 43 00 90 lwz r10,144(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0b178: 38 e9 00 04 addi r7,r9,4 ffc0b17c: 81 03 00 a0 lwz r8,160(r3) ffc0b180: 80 ca 00 00 lwz r6,0(r10) <== ALWAYS TAKEN ffc0b184: 90 e9 00 00 stw r7,0(r9) ffc0b188: 7c c8 40 38 and r8,r6,r8 _Chain_Initialize_empty( ready ); _Priority_Remove_from_bit_map( &the_thread->Priority_map ); ffc0b18c: 2f 88 00 00 cmpwi cr7,r8,0 the_chain->permanent_null = NULL; ffc0b190: 90 09 00 04 stw r0,4(r9) the_chain->last = _Chain_Head(the_chain); ffc0b194: 91 29 00 08 stw r9,8(r9) ffc0b198: 91 0a 00 00 stw r8,0(r10) ffc0b19c: 40 9e 00 2c bne- cr7,ffc0b1c8 <_Thread_Suspend+0x98> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; ffc0b1a0: 3d 20 00 00 lis r9,0 ffc0b1a4: 80 03 00 9c lwz r0,156(r3) ffc0b1a8: 81 49 27 a4 lwz r10,10148(r9) ffc0b1ac: 7d 40 00 38 and r0,r10,r0 ffc0b1b0: 90 09 27 a4 stw r0,10148(r9) ffc0b1b4: 48 00 00 14 b ffc0b1c8 <_Thread_Suspend+0x98> <== ALWAYS TAKEN ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0b1b8: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; ffc0b1bc: 81 43 00 04 lwz r10,4(r3) next->previous = previous; previous->next = next; ffc0b1c0: 91 2a 00 00 stw r9,0(r10) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc0b1c4: 91 49 00 04 stw r10,4(r9) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0b1c8: 7c 00 00 a6 mfmsr r0 ffc0b1cc: 7d 60 01 24 mtmsr r11 ffc0b1d0: 7c 00 01 24 mtmsr r0 } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( the_thread ) ) ffc0b1d4: 3d 40 00 00 lis r10,0 ffc0b1d8: 80 0a 27 8c lwz r0,10124(r10) ffc0b1dc: 7f 83 00 00 cmpw cr7,r3,r0 ffc0b1e0: 40 be 00 48 bne+ cr7,ffc0b228 <_Thread_Suspend+0xf8> 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 ); ffc0b1e4: 3c a0 00 00 lis r5,0 _Thread_Ready_chain[ _Priority_Get_highest() ].first; ffc0b1e8: 3d 00 00 00 lis r8,0 ffc0b1ec: 81 25 27 a4 lwz r9,10148(r5) ffc0b1f0: 80 88 27 64 lwz r4,10084(r8) ffc0b1f4: 7d 26 00 34 cntlzw r6,r9 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0b1f8: 3c e0 00 00 lis r7,0 RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void ) { Priority_Bit_map_control minor; Priority_Bit_map_control major; _Bitfield_Find_first_bit( _Priority_Major_bit_map, major ); ffc0b1fc: 91 25 27 a4 stw r9,10148(r5) <== ALWAYS TAKEN _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0b200: 38 e7 2d a0 addi r7,r7,11680 ffc0b204: 54 c8 10 3a rlwinm r8,r6,2,0,29 ffc0b208: 7c 07 40 2e lwzx r0,r7,r8 ffc0b20c: 7c 09 00 34 cntlzw r9,r0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0b210: 54 c6 20 36 rlwinm r6,r6,4,0,27 ffc0b214: 7c 07 41 2e stwx r0,r7,r8 ffc0b218: 7c c6 4a 14 add r6,r6,r9 ffc0b21c: 1c c6 00 0c mulli r6,r6,12 ffc0b220: 7c 04 30 2e lwzx r0,r4,r6 ffc0b224: 90 0a 27 8c stw r0,10124(r10) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) ffc0b228: 3d 20 00 00 lis r9,0 ffc0b22c: 80 09 27 b0 lwz r0,10160(r9) ffc0b230: 7f 83 00 00 cmpw cr7,r3,r0 ffc0b234: 40 be 00 10 bne+ cr7,ffc0b244 <_Thread_Suspend+0x114> _Context_Switch_necessary = true; ffc0b238: 38 00 00 01 li r0,1 ffc0b23c: 3d 20 00 00 lis r9,0 ffc0b240: 98 09 27 c0 stb r0,10176(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b244: 7d 60 01 24 mtmsr r11 ffc0b248: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b24c <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { ffc0b24c: 94 21 ff f0 stwu r1,-16(r1) ffc0b250: 7c 08 02 a6 mflr r0 Thread_Control *executing; executing = _Thread_Executing; ffc0b254: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { ffc0b258: 90 01 00 14 stw r0,20(r1) ffc0b25c: 93 e1 00 0c stw r31,12(r1) Thread_Control *executing; executing = _Thread_Executing; ffc0b260: 83 e9 27 b0 lwz r31,10160(r9) /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) ffc0b264: 88 1f 00 75 lbz r0,117(r31) ffc0b268: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b26c: 41 9e 00 7c beq- cr7,ffc0b2e8 <_Thread_Tickle_timeslice+0x9c> return; if ( !_States_Is_ready( executing->current_state ) ) ffc0b270: 80 1f 00 10 lwz r0,16(r31) ffc0b274: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b278: 40 9e 00 70 bne- cr7,ffc0b2e8 <_Thread_Tickle_timeslice+0x9c> /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { ffc0b27c: 80 1f 00 7c lwz r0,124(r31) ffc0b280: 2b 80 00 01 cmplwi cr7,r0,1 ffc0b284: 41 9c 00 64 blt- cr7,ffc0b2e8 <_Thread_Tickle_timeslice+0x9c> ffc0b288: 2b 80 00 02 cmplwi cr7,r0,2 ffc0b28c: 40 9d 00 10 ble- cr7,ffc0b29c <_Thread_Tickle_timeslice+0x50> ffc0b290: 2f 80 00 03 cmpwi cr7,r0,3 ffc0b294: 40 be 00 54 bne+ cr7,ffc0b2e8 <_Thread_Tickle_timeslice+0x9c> <== NEVER TAKEN ffc0b298: 48 00 00 2c b ffc0b2c4 <_Thread_Tickle_timeslice+0x78> <== ALWAYS TAKEN case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: #endif if ( (int)(--executing->cpu_time_budget) <= 0 ) { ffc0b29c: 81 3f 00 78 lwz r9,120(r31) <== ALWAYS TAKEN ffc0b2a0: 38 09 ff ff addi r0,r9,-1 ffc0b2a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b2a8: 90 1f 00 78 stw r0,120(r31) ffc0b2ac: 41 bd 00 3c bgt+ cr7,ffc0b2e8 <_Thread_Tickle_timeslice+0x9c> _Thread_Reset_timeslice(); ffc0b2b0: 48 00 3d 39 bl ffc0efe8 <_Thread_Reset_timeslice> <== ALWAYS TAKEN executing->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0b2b4: 3d 20 00 00 lis r9,0 ffc0b2b8: 80 09 27 68 lwz r0,10088(r9) ffc0b2bc: 90 1f 00 78 stw r0,120(r31) ffc0b2c0: 48 00 00 28 b ffc0b2e8 <_Thread_Tickle_timeslice+0x9c> <== ALWAYS TAKEN } break; #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) ffc0b2c4: 81 3f 00 78 lwz r9,120(r31) ffc0b2c8: 38 09 ff ff addi r0,r9,-1 ffc0b2cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b2d0: 90 1f 00 78 stw r0,120(r31) ffc0b2d4: 40 be 00 14 bne+ cr7,ffc0b2e8 <_Thread_Tickle_timeslice+0x9c> (*executing->budget_callout)( executing ); ffc0b2d8: 80 1f 00 80 lwz r0,128(r31) ffc0b2dc: 7f e3 fb 78 mr r3,r31 ffc0b2e0: 7c 09 03 a6 mtctr r0 ffc0b2e4: 4e 80 04 21 bctrl <== ALWAYS TAKEN break; #endif } } ffc0b2e8: 80 01 00 14 lwz r0,20(r1) ffc0b2ec: 83 e1 00 0c lwz r31,12(r1) ffc0b2f0: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0b2f4: 7c 08 03 a6 mtlr r0 ffc0b2f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b2fc <_Thread_Yield_processor>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ffc0b2fc: 3d 20 00 00 lis r9,0 ffc0b300: 81 29 27 b0 lwz r9,10160(r9) ready = executing->ready; ffc0b304: 81 69 00 8c lwz r11,140(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b308: 7c 00 00 a6 mfmsr r0 ffc0b30c: 7d 50 42 a6 mfsprg r10,0 ffc0b310: 7c 0a 50 78 andc r10,r0,r10 ffc0b314: 7d 40 01 24 mtmsr r10 _ISR_Disable( level ); if ( !_Chain_Has_only_one_node( ready ) ) { ffc0b318: 80 eb 00 00 lwz r7,0(r11) ffc0b31c: 3d 40 00 00 lis r10,0 ffc0b320: 81 0b 00 08 lwz r8,8(r11) ffc0b324: 7f 87 40 00 cmpw cr7,r7,r8 ffc0b328: 41 9e 00 50 beq- cr7,ffc0b378 <_Thread_Yield_processor+0x7c> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0b32c: 81 09 00 00 lwz r8,0(r9) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0b330: 38 cb 00 04 addi r6,r11,4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0b334: 80 e9 00 04 lwz r7,4(r9) next->previous = previous; previous->next = next; ffc0b338: 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; ffc0b33c: 90 e8 00 04 stw r7,4(r8) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0b340: 90 c9 00 00 stw r6,0(r9) old_last_node = the_chain->last; ffc0b344: 81 0b 00 08 lwz r8,8(r11) the_chain->last = the_node; ffc0b348: 91 2b 00 08 stw r9,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0b34c: 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; ffc0b350: 91 28 00 00 stw r9,0(r8) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0b354: 7d 00 00 a6 mfmsr r8 ffc0b358: 7c 00 01 24 mtmsr r0 ffc0b35c: 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 ) ) ffc0b360: 81 0a 27 8c lwz r8,10124(r10) ffc0b364: 7f 89 40 00 cmpw cr7,r9,r8 ffc0b368: 40 be 00 1c bne+ cr7,ffc0b384 <_Thread_Yield_processor+0x88> <== NEVER TAKEN _Thread_Heir = (Thread_Control *) ready->first; ffc0b36c: 81 2b 00 00 lwz r9,0(r11) ffc0b370: 91 2a 27 8c stw r9,10124(r10) ffc0b374: 48 00 00 10 b ffc0b384 <_Thread_Yield_processor+0x88> <== ALWAYS TAKEN _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) ffc0b378: 81 6a 27 8c lwz r11,10124(r10) ffc0b37c: 7f 89 58 00 cmpw cr7,r9,r11 ffc0b380: 41 9e 00 10 beq- cr7,ffc0b390 <_Thread_Yield_processor+0x94> <== ALWAYS TAKEN _Context_Switch_necessary = true; ffc0b384: 39 60 00 01 li r11,1 ffc0b388: 3d 20 00 00 lis r9,0 ffc0b38c: 99 69 27 c0 stb r11,10176(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b390: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); } ffc0b394: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c5c <_Thread_blocking_operation_Cancel>: Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { ffc09c5c: 94 21 ff f0 stwu r1,-16(r1) ffc09c60: 7c 08 02 a6 mflr r0 ffc09c64: 90 01 00 14 stw r0,20(r1) /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { ffc09c68: 80 04 00 50 lwz r0,80(r4) Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { ffc09c6c: 93 e1 00 0c stw r31,12(r1) ffc09c70: 7c 9f 23 78 mr r31,r4 /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { ffc09c74: 2f 80 00 02 cmpwi cr7,r0,2 #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; ffc09c78: 38 00 00 00 li r0,0 ffc09c7c: 90 04 00 44 stw r0,68(r4) /* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { ffc09c80: 40 be 00 1c bne+ cr7,ffc09c9c <_Thread_blocking_operation_Cancel+0x40> RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc09c84: 38 00 00 03 li r0,3 ffc09c88: 90 04 00 50 stw r0,80(r4) ffc09c8c: 7c a0 01 24 mtmsr r5 _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc09c90: 38 64 00 48 addi r3,r4,72 ffc09c94: 48 00 1d 85 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN ffc09c98: 48 00 00 08 b ffc09ca0 <_Thread_blocking_operation_Cancel+0x44> <== ALWAYS TAKEN ffc09c9c: 7c a0 01 24 mtmsr r5 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc09ca0: 3c 80 10 03 lis r4,4099 ffc09ca4: 7f e3 fb 78 mr r3,r31 ffc09ca8: 60 84 ff f8 ori r4,r4,65528 ffc09cac: 48 00 01 bd bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } ffc09cb0: 80 01 00 14 lwz r0,20(r1) ffc09cb4: 83 e1 00 0c lwz r31,12(r1) ffc09cb8: 38 21 00 10 addi r1,r1,16 ffc09cbc: 7c 08 03 a6 mtlr r0 ffc09cc0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a784 <_Thread_queue_Dequeue>: */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { ffc0a784: 94 21 ff f0 stwu r1,-16(r1) ffc0a788: 7c 08 02 a6 mflr r0 ffc0a78c: 90 01 00 14 stw r0,20(r1) Thread_Control *(*dequeue_p)( Thread_queue_Control * ); Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0a790: 80 03 00 34 lwz r0,52(r3) */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { ffc0a794: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc0a798: 7c 7f 1b 78 mr r31,r3 Thread_Control *(*dequeue_p)( Thread_queue_Control * ); Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0a79c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0a7a0: 41 9e 00 10 beq- cr7,ffc0a7b0 <_Thread_queue_Dequeue+0x2c> ffc0a7a4: 3d 20 ff c1 lis r9,-63 ffc0a7a8: 38 09 ec 6c addi r0,r9,-5012 ffc0a7ac: 48 00 00 0c b ffc0a7b8 <_Thread_queue_Dequeue+0x34> <== ALWAYS TAKEN ffc0a7b0: 3d 20 ff c1 lis r9,-63 ffc0a7b4: 38 09 a8 14 addi r0,r9,-22508 dequeue_p = _Thread_queue_Dequeue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ dequeue_p = _Thread_queue_Dequeue_fifo; the_thread = (*dequeue_p)( the_thread_queue ); ffc0a7b8: 7f e3 fb 78 mr r3,r31 ffc0a7bc: 7c 09 03 a6 mtctr r0 ffc0a7c0: 4e 80 04 21 bctrl <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a7c4: 7c 00 00 a6 mfmsr r0 ffc0a7c8: 7d 30 42 a6 mfsprg r9,0 ffc0a7cc: 7c 09 48 78 andc r9,r0,r9 ffc0a7d0: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); if ( !the_thread ) { ffc0a7d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a7d8: 40 be 00 24 bne+ cr7,ffc0a7fc <_Thread_queue_Dequeue+0x78> sync_state = the_thread_queue->sync_state; ffc0a7dc: 81 3f 00 30 lwz r9,48(r31) ffc0a7e0: 39 29 ff ff addi r9,r9,-1 <== ALWAYS TAKEN ffc0a7e4: 2b 89 00 01 cmplwi cr7,r9,1 ffc0a7e8: 41 bd 00 14 bgt+ cr7,ffc0a7fc <_Thread_queue_Dequeue+0x78> if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; ffc0a7ec: 39 20 00 03 li r9,3 ffc0a7f0: 91 3f 00 30 stw r9,48(r31) the_thread = _Thread_Executing; ffc0a7f4: 3d 20 00 00 lis r9,0 ffc0a7f8: 80 69 27 b0 lwz r3,10160(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a7fc: 7c 00 01 24 mtmsr r0 } } _ISR_Enable( level ); return the_thread; } ffc0a800: 80 01 00 14 lwz r0,20(r1) ffc0a804: 83 e1 00 0c lwz r31,12(r1) ffc0a808: 38 21 00 10 addi r1,r1,16 ffc0a80c: 7c 08 03 a6 mtlr r0 ffc0a810: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ec6c <_Thread_queue_Dequeue_fifo>: */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { ffc0ec6c: 94 21 ff f0 stwu r1,-16(r1) ffc0ec70: 7c 08 02 a6 mflr r0 ffc0ec74: 93 c1 00 08 stw r30,8(r1) ffc0ec78: 90 01 00 14 stw r0,20(r1) ffc0ec7c: 93 e1 00 0c stw r31,12(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ec80: 7c 00 00 a6 mfmsr r0 ffc0ec84: 7d 30 42 a6 mfsprg r9,0 ffc0ec88: 7c 09 48 78 andc r9,r0,r9 ffc0ec8c: 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)); ffc0ec90: 83 c3 00 00 lwz r30,0(r3) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0ec94: 39 23 00 04 addi r9,r3,4 ffc0ec98: 7f 9e 48 00 cmpw cr7,r30,r9 <== ALWAYS TAKEN ffc0ec9c: 41 9e 00 58 beq- cr7,ffc0ecf4 <_Thread_queue_Dequeue_fifo+0x88> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc0eca0: 81 3e 00 00 lwz r9,0(r30) Thread_Control *the_thread; _ISR_Disable( level ); if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { the_thread = (Thread_Control *) ffc0eca4: 7f df f3 78 mr r31,r30 the_chain->first = new_first; ffc0eca8: 91 23 00 00 stw r9,0(r3) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc0ecac: 81 7e 00 50 lwz r11,80(r30) new_first->previous = _Chain_Head(the_chain); ffc0ecb0: 90 69 00 04 stw r3,4(r9) if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { the_thread = (Thread_Control *) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; ffc0ecb4: 39 20 00 00 li r9,0 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc0ecb8: 2f 8b 00 02 cmpwi cr7,r11,2 if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { the_thread = (Thread_Control *) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; ffc0ecbc: 91 3e 00 44 stw r9,68(r30) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc0ecc0: 41 9e 00 0c beq- cr7,ffc0eccc <_Thread_queue_Dequeue_fifo+0x60> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ecc4: 7c 00 01 24 mtmsr r0 ffc0ecc8: 48 00 00 18 b ffc0ece0 <_Thread_queue_Dequeue_fifo+0x74> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc0eccc: 39 20 00 03 li r9,3 ffc0ecd0: 91 3e 00 50 stw r9,80(r30) ffc0ecd4: 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 ); ffc0ecd8: 38 7e 00 48 addi r3,r30,72 ffc0ecdc: 4b ff cd 3d bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc0ece0: 3c 80 10 03 lis r4,4099 ffc0ece4: 7f c3 f3 78 mr r3,r30 ffc0ece8: 60 84 ff f8 ori r4,r4,65528 ffc0ecec: 4b ff b1 7d bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN ffc0ecf0: 48 00 00 0c b ffc0ecfc <_Thread_queue_Dequeue_fifo+0x90> <== ALWAYS TAKEN ffc0ecf4: 7c 00 01 24 mtmsr r0 ffc0ecf8: 3b e0 00 00 li r31,0 return the_thread; } _ISR_Enable( level ); return NULL; } ffc0ecfc: 80 01 00 14 lwz r0,20(r1) ffc0ed00: 7f e3 fb 78 mr r3,r31 ffc0ed04: 83 c1 00 08 lwz r30,8(r1) <== ALWAYS TAKEN ffc0ed08: 7c 08 03 a6 mtlr r0 ffc0ed0c: 83 e1 00 0c lwz r31,12(r1) ffc0ed10: 38 21 00 10 addi r1,r1,16 ffc0ed14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a814 <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { ffc0a814: 94 21 ff f0 stwu r1,-16(r1) ffc0a818: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0a81c: 93 e1 00 0c stw r31,12(r1) ffc0a820: 90 01 00 14 stw r0,20(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a824: 7c 00 00 a6 mfmsr r0 ffc0a828: 7d 30 42 a6 mfsprg r9,0 ffc0a82c: 7c 09 48 78 andc r9,r0,r9 ffc0a830: 7d 20 01 24 mtmsr r9 Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); ffc0a834: 39 40 00 04 li r10,4 ffc0a838: 7d 49 03 a6 mtctr r10 ffc0a83c: 39 60 00 00 li r11,0 ffc0a840: 7c 69 1b 78 mr r9,r3 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0a844: 81 09 00 00 lwz r8,0(r9) ffc0a848: 39 49 00 04 addi r10,r9,4 <== ALWAYS TAKEN for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { ffc0a84c: 39 29 00 0c addi r9,r9,12 <== ALWAYS TAKEN ffc0a850: 7f 88 50 00 cmpw cr7,r8,r10 ffc0a854: 41 be 00 30 beq+ cr7,ffc0a884 <_Thread_queue_Dequeue_priority+0x70> if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { the_thread = (Thread_Control *) ffc0a858: 1d 6b 00 0c mulli r11,r11,12 ffc0a85c: 7f e3 58 2e lwzx r31,r3,r11 _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; new_first_node = the_thread->Wait.Block2n.first; ffc0a860: 81 3f 00 38 lwz r9,56(r31) ffc0a864: 39 7f 00 3c addi r11,r31,60 new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; ffc0a868: 81 5f 00 00 lwz r10,0(r31) ffc0a86c: 7f 89 58 00 cmpw cr7,r9,r11 */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; ffc0a870: 39 60 00 00 li r11,0 ffc0a874: 91 7f 00 44 stw r11,68(r31) new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; ffc0a878: 81 7f 00 04 lwz r11,4(r31) ffc0a87c: 40 be 00 1c bne+ cr7,ffc0a898 <_Thread_queue_Dequeue_priority+0x84> ffc0a880: 48 00 00 5c b ffc0a8dc <_Thread_queue_Dequeue_priority+0xc8> <== ALWAYS TAKEN Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { ffc0a884: 39 6b 00 01 addi r11,r11,1 Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; ffc0a888: 42 00 ff bc bdnz+ ffc0a844 <_Thread_queue_Dequeue_priority+0x30> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a88c: 7c 00 01 24 mtmsr r0 ffc0a890: 3b e0 00 00 li r31,0 /* * We did not find a thread to unblock. */ _ISR_Enable( level ); return NULL; ffc0a894: 48 00 00 94 b ffc0a928 <_Thread_queue_Dequeue_priority+0x114> <== ALWAYS TAKEN new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; previous_node = the_thread->Object.Node.previous; if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = the_thread->Wait.Block2n.last; ffc0a898: 81 1f 00 40 lwz r8,64(r31) new_second_node = new_first_node->next; ffc0a89c: 80 e9 00 00 lwz r7,0(r9) previous_node->next = new_first_node; next_node->previous = new_first_node; ffc0a8a0: 91 2a 00 04 stw r9,4(r10) if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; ffc0a8a4: 91 2b 00 00 stw r9,0(r11) next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; ffc0a8a8: 91 69 00 04 stw r11,4(r9) last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; next_node->previous = new_first_node; new_first_node->next = next_node; ffc0a8ac: 91 49 00 00 stw r10,0(r9) new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { ffc0a8b0: 81 5f 00 38 lwz r10,56(r31) ffc0a8b4: 81 7f 00 40 lwz r11,64(r31) ffc0a8b8: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0a8bc: 41 9e 00 28 beq- cr7,ffc0a8e4 <_Thread_queue_Dequeue_priority+0xd0> _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); ffc0a8c0: 39 69 00 3c addi r11,r9,60 new_first_node->next = next_node; new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ new_second_node->previous = ffc0a8c4: 39 49 00 38 addi r10,r9,56 ffc0a8c8: 91 47 00 04 stw r10,4(r7) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; ffc0a8cc: 90 e9 00 38 stw r7,56(r9) new_first_thread->Wait.Block2n.last = last_node; ffc0a8d0: 91 09 00 40 stw r8,64(r9) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); ffc0a8d4: 91 68 00 00 stw r11,0(r8) ffc0a8d8: 48 00 00 0c b ffc0a8e4 <_Thread_queue_Dequeue_priority+0xd0> <== ALWAYS TAKEN } } else { previous_node->next = next_node; next_node->previous = previous_node; ffc0a8dc: 91 6a 00 04 stw r11,4(r10) new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; ffc0a8e0: 91 4b 00 00 stw r10,0(r11) next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc0a8e4: 81 3f 00 50 lwz r9,80(r31) ffc0a8e8: 2f 89 00 02 cmpwi cr7,r9,2 ffc0a8ec: 41 9e 00 18 beq- cr7,ffc0a904 <_Thread_queue_Dequeue_priority+0xf0> ffc0a8f0: 7c 00 01 24 mtmsr r0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc0a8f4: 3c 80 10 03 lis r4,4099 ffc0a8f8: 60 84 ff f8 ori r4,r4,65528 ffc0a8fc: 7f e3 fb 78 mr r3,r31 ffc0a900: 48 00 00 24 b ffc0a924 <_Thread_queue_Dequeue_priority+0x110> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc0a904: 39 20 00 03 li r9,3 ffc0a908: 91 3f 00 50 stw r9,80(r31) ffc0a90c: 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 ); ffc0a910: 38 7f 00 48 addi r3,r31,72 ffc0a914: 48 00 11 05 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN ffc0a918: 3c 80 10 03 lis r4,4099 ffc0a91c: 7f e3 fb 78 mr r3,r31 ffc0a920: 60 84 ff f8 ori r4,r4,65528 ffc0a924: 4b ff f5 45 bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } ffc0a928: 80 01 00 14 lwz r0,20(r1) ffc0a92c: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0a930: 83 e1 00 0c lwz r31,12(r1) ffc0a934: 38 21 00 10 addi r1,r1,16 ffc0a938: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0a93c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ed18 <_Thread_queue_Enqueue_fifo>: Thread_blocking_operation_States _Thread_queue_Enqueue_fifo ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { ffc0ed18: 7c 69 1b 78 mr r9,r3 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ed1c: 7c 00 00 a6 mfmsr r0 ffc0ed20: 7d 70 42 a6 mfsprg r11,0 ffc0ed24: 7c 0b 58 78 andc r11,r0,r11 ffc0ed28: 7d 60 01 24 mtmsr r11 Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); sync_state = the_thread_queue->sync_state; ffc0ed2c: 80 63 00 30 lwz r3,48(r3) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0ed30: 39 40 00 00 li r10,0 ffc0ed34: 91 49 00 30 stw r10,48(r9) <== ALWAYS TAKEN if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { ffc0ed38: 2f 83 00 01 cmpwi cr7,r3,1 ffc0ed3c: 40 be 00 28 bne+ cr7,ffc0ed64 <_Thread_queue_Enqueue_fifo+0x4c> Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0ed40: 39 69 00 04 addi r11,r9,4 ffc0ed44: 91 64 00 00 stw r11,0(r4) old_last_node = the_chain->last; ffc0ed48: 81 69 00 08 lwz r11,8(r9) the_chain->last = the_node; ffc0ed4c: 90 89 00 08 stw r4,8(r9) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0ed50: 91 64 00 04 stw r11,4(r4) _Chain_Append_unprotected( &the_thread_queue->Queues.Fifo, &the_thread->Object.Node ); the_thread->Wait.queue = the_thread_queue; ffc0ed54: 91 24 00 44 stw r9,68(r4) 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; ffc0ed58: 90 8b 00 00 stw r4,0(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ed5c: 7c 00 01 24 mtmsr r0 the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc0ed60: 4e 80 00 20 blr <== ALWAYS TAKEN * 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; ffc0ed64: 90 05 00 00 stw r0,0(r5) return sync_state; } ffc0ed68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aa18 <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; ffc0aa18: 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); ffc0aa1c: 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 ) { ffc0aa20: 94 21 ff f0 stwu r1,-16(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0aa24: 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 ) ) ffc0aa28: 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 ]; ffc0aa2c: 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); ffc0aa30: 91 04 00 38 stw r8,56(r4) ffc0aa34: 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 ) { ffc0aa38: 93 e1 00 0c stw r31,12(r1) the_chain->permanent_null = NULL; ffc0aa3c: 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; ffc0aa40: 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 ]; ffc0aa44: 7d 43 52 14 add r10,r3,r10 ffc0aa48: 91 04 00 3c stw r8,60(r4) the_chain->last = _Chain_Head(the_chain); ffc0aa4c: 91 64 00 40 stw r11,64(r4) block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) ffc0aa50: 40 82 00 98 bne- ffc0aae8 <_Thread_queue_Enqueue_priority+0xd0> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0aa54: 38 ca 00 04 addi r6,r10,4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0aa58: 7d 00 00 a6 mfmsr r8 ffc0aa5c: 7d 70 42 a6 mfsprg r11,0 ffc0aa60: 7d 0b 58 78 andc r11,r8,r11 ffc0aa64: 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; ffc0aa68: 38 e0 ff ff li r7,-1 ffc0aa6c: 81 6a 00 00 lwz r11,0(r10) while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { ffc0aa70: 48 00 00 34 b ffc0aaa4 <_Thread_queue_Enqueue_priority+0x8c> <== ALWAYS TAKEN search_priority = search_thread->current_priority; ffc0aa74: 80 eb 00 14 lwz r7,20(r11) if ( priority <= search_priority ) ffc0aa78: 7f 80 38 40 cmplw cr7,r0,r7 ffc0aa7c: 40 9d 00 30 ble- cr7,ffc0aaac <_Thread_queue_Enqueue_priority+0x94> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0aa80: 7d 80 00 a6 mfmsr r12 ffc0aa84: 7d 00 01 24 mtmsr r8 ffc0aa88: 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) ) { ffc0aa8c: 81 8b 00 10 lwz r12,16(r11) ffc0aa90: 7d 3f 60 39 and. r31,r9,r12 ffc0aa94: 40 a2 00 0c bne+ ffc0aaa0 <_Thread_queue_Enqueue_priority+0x88> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0aa98: 7d 00 01 24 mtmsr r8 <== NOT EXECUTED ffc0aa9c: 4b ff ff bc b ffc0aa58 <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; ffc0aaa0: 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 ) ) { ffc0aaa4: 7f 8b 30 00 cmpw cr7,r11,r6 ffc0aaa8: 40 9e ff cc bne+ cr7,ffc0aa74 <_Thread_queue_Enqueue_priority+0x5c> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != ffc0aaac: 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 ) ) { ffc0aab0: 7d 09 43 78 mr r9,r8 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != ffc0aab4: 2f 8a 00 01 cmpwi cr7,r10,1 ffc0aab8: 40 be 00 f8 bne+ cr7,ffc0abb0 <_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 ) ffc0aabc: 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; ffc0aac0: 38 00 00 00 li r0,0 ffc0aac4: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0aac8: 41 9e 00 c4 beq- cr7,ffc0ab8c <_Thread_queue_Enqueue_priority+0x174> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; ffc0aacc: 81 2b 00 04 lwz r9,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0aad0: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0aad4: 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; ffc0aad8: 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; ffc0aadc: 90 89 00 00 stw r4,0(r9) search_node->previous = the_node; ffc0aae0: 90 8b 00 04 stw r4,4(r11) the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); ffc0aae4: 48 00 00 9c b ffc0ab80 <_Thread_queue_Enqueue_priority+0x168> <== ALWAYS TAKEN return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; ffc0aae8: 3c c0 00 00 lis r6,0 ffc0aaec: 38 c6 26 a4 addi r6,r6,9892 ffc0aaf0: 88 e6 00 00 lbz r7,0(r6) ffc0aaf4: 38 e7 00 01 addi r7,r7,1 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0aaf8: 7d 00 00 a6 mfmsr r8 ffc0aafc: 7d 70 42 a6 mfsprg r11,0 ffc0ab00: 7d 0b 58 78 andc r11,r8,r11 ffc0ab04: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; ffc0ab08: 81 6a 00 08 lwz r11,8(r10) while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { ffc0ab0c: 48 00 00 34 b ffc0ab40 <_Thread_queue_Enqueue_priority+0x128> <== ALWAYS TAKEN search_priority = search_thread->current_priority; ffc0ab10: 80 eb 00 14 lwz r7,20(r11) if ( priority >= search_priority ) ffc0ab14: 7f 80 38 40 cmplw cr7,r0,r7 ffc0ab18: 40 9c 00 30 bge- cr7,ffc0ab48 <_Thread_queue_Enqueue_priority+0x130> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0ab1c: 7d 80 00 a6 mfmsr r12 ffc0ab20: 7d 00 01 24 mtmsr r8 ffc0ab24: 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) ) { ffc0ab28: 81 8b 00 10 lwz r12,16(r11) ffc0ab2c: 7d 3f 60 39 and. r31,r9,r12 ffc0ab30: 40 a2 00 0c bne+ ffc0ab3c <_Thread_queue_Enqueue_priority+0x124> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ab34: 7d 00 01 24 mtmsr r8 ffc0ab38: 4b ff ff b8 b ffc0aaf0 <_Thread_queue_Enqueue_priority+0xd8> <== ALWAYS TAKEN _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) ffc0ab3c: 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 ) ) { ffc0ab40: 7f 8b 50 00 cmpw cr7,r11,r10 ffc0ab44: 40 9e ff cc bne+ cr7,ffc0ab10 <_Thread_queue_Enqueue_priority+0xf8> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0ab48: 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 ) ) { ffc0ab4c: 7d 09 43 78 mr r9,r8 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0ab50: 2f 8a 00 01 cmpwi cr7,r10,1 ffc0ab54: 40 be 00 5c bne+ cr7,ffc0abb0 <_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 ) ffc0ab58: 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; ffc0ab5c: 38 00 00 00 li r0,0 ffc0ab60: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0ab64: 41 9e 00 28 beq- cr7,ffc0ab8c <_Thread_queue_Enqueue_priority+0x174> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; ffc0ab68: 81 2b 00 00 lwz r9,0(r11) the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; ffc0ab6c: 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; ffc0ab70: 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; ffc0ab74: 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; ffc0ab78: 90 8b 00 00 stw r4,0(r11) next_node->previous = the_node; ffc0ab7c: 90 89 00 04 stw r4,4(r9) ffc0ab80: 7d 00 01 24 mtmsr r8 ffc0ab84: 38 60 00 01 li r3,1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc0ab88: 48 00 00 30 b ffc0abb8 <_Thread_queue_Enqueue_priority+0x1a0> <== ALWAYS TAKEN ffc0ab8c: 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; ffc0ab90: 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; ffc0ab94: 81 4b 00 04 lwz r10,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0ab98: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0ab9c: 91 44 00 04 stw r10,4(r4) previous_node->next = the_node; ffc0aba0: 90 8a 00 00 stw r4,0(r10) search_node->previous = the_node; ffc0aba4: 90 8b 00 04 stw r4,4(r11) ffc0aba8: 7d 20 01 24 mtmsr r9 ffc0abac: 4b ff ff d8 b ffc0ab84 <_Thread_queue_Enqueue_priority+0x16c> <== ALWAYS TAKEN * 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; ffc0abb0: 91 25 00 00 stw r9,0(r5) return the_thread_queue->sync_state; ffc0abb4: 80 63 00 30 lwz r3,48(r3) } ffc0abb8: 83 e1 00 0c lwz r31,12(r1) ffc0abbc: 38 21 00 10 addi r1,r1,16 ffc0abc0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a940 <_Thread_queue_Enqueue_with_handler>: void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { ffc0a940: 94 21 ff d8 stwu r1,-40(r1) ffc0a944: 7c 08 02 a6 mflr r0 Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; ffc0a948: 3d 20 00 00 lis r9,0 void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { ffc0a94c: 90 01 00 2c stw r0,44(r1) ffc0a950: 93 e1 00 24 stw r31,36(r1) Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; ffc0a954: 83 e9 27 b0 lwz r31,10160(r9) void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { ffc0a958: 93 a1 00 1c stw r29,28(r1) ffc0a95c: 7c 9d 23 78 mr r29,r4 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); ffc0a960: 80 83 00 38 lwz r4,56(r3) void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { ffc0a964: 93 c1 00 20 stw r30,32(r1) ffc0a968: 7c 7e 1b 78 mr r30,r3 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); ffc0a96c: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { ffc0a970: 93 81 00 18 stw r28,24(r1) ffc0a974: 7c bc 2b 78 mr r28,r5 else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); ffc0a978: 48 00 04 61 bl ffc0add8 <_Thread_Set_state> <== ALWAYS TAKEN /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { ffc0a97c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0a980: 41 be 00 30 beq+ cr7,ffc0a9b0 <_Thread_queue_Enqueue_with_handler+0x70> _Watchdog_Initialize( ffc0a984: 81 3f 00 08 lwz r9,8(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0a988: 38 00 00 00 li r0,0 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0a98c: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0a990: 93 9f 00 64 stw r28,100(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0a994: 38 63 2d 48 addi r3,r3,11592 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc0a998: 91 3f 00 68 stw r9,104(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0a99c: 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; ffc0a9a0: 90 1f 00 6c stw r0,108(r31) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0a9a4: 93 bf 00 54 stw r29,84(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0a9a8: 90 1f 00 50 stw r0,80(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0a9ac: 48 00 0f 15 bl ffc0b8c0 <_Watchdog_Insert> <== ALWAYS TAKEN } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0a9b0: 80 1e 00 34 lwz r0,52(r30) ffc0a9b4: 2f 80 00 01 cmpwi cr7,r0,1 ffc0a9b8: 41 9e 00 10 beq- cr7,ffc0a9c8 <_Thread_queue_Enqueue_with_handler+0x88> ffc0a9bc: 3d 20 ff c1 lis r9,-63 ffc0a9c0: 38 09 ed 18 addi r0,r9,-4840 ffc0a9c4: 48 00 00 0c b ffc0a9d0 <_Thread_queue_Enqueue_with_handler+0x90> <== ALWAYS TAKEN ffc0a9c8: 3d 20 ff c1 lis r9,-63 ffc0a9cc: 38 09 aa 18 addi r0,r9,-21992 enqueue_p = _Thread_queue_Enqueue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ enqueue_p = _Thread_queue_Enqueue_fifo; sync_state = (*enqueue_p)( the_thread_queue, the_thread, &level ); ffc0a9d0: 7f c3 f3 78 mr r3,r30 ffc0a9d4: 7c 09 03 a6 mtctr r0 ffc0a9d8: 7f e4 fb 78 mr r4,r31 ffc0a9dc: 38 a1 00 08 addi r5,r1,8 ffc0a9e0: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) ffc0a9e4: 2f 83 00 01 cmpwi cr7,r3,1 ffc0a9e8: 41 9e 00 10 beq- cr7,ffc0a9f8 <_Thread_queue_Enqueue_with_handler+0xb8> _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); ffc0a9ec: 80 a1 00 08 lwz r5,8(r1) ffc0a9f0: 7f e4 fb 78 mr r4,r31 ffc0a9f4: 4b ff f2 69 bl ffc09c5c <_Thread_blocking_operation_Cancel> <== ALWAYS TAKEN } ffc0a9f8: 80 01 00 2c lwz r0,44(r1) ffc0a9fc: 83 81 00 18 lwz r28,24(r1) ffc0aa00: 7c 08 03 a6 mtlr r0 ffc0aa04: 83 a1 00 1c lwz r29,28(r1) ffc0aa08: 83 c1 00 20 lwz r30,32(r1) ffc0aa0c: 83 e1 00 24 lwz r31,36(r1) ffc0aa10: 38 21 00 28 addi r1,r1,40 ffc0aa14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ed6c <_Thread_queue_Extract>: void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0ed6c: 7c 08 02 a6 mflr r0 ffc0ed70: 94 21 ff f8 stwu r1,-8(r1) ffc0ed74: 90 01 00 0c stw r0,12(r1) /* * Can not use indirect function pointer here since Extract priority * is a macro and the underlying methods do not have the same signature. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0ed78: 80 03 00 34 lwz r0,52(r3) ffc0ed7c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0ed80: 40 be 00 10 bne+ cr7,ffc0ed90 <_Thread_queue_Extract+0x24> _Thread_queue_Extract_priority( the_thread_queue, the_thread ); ffc0ed84: 38 a0 00 00 li r5,0 ffc0ed88: 48 00 00 1d bl ffc0eda4 <_Thread_queue_Extract_priority_helper> <== ALWAYS TAKEN ffc0ed8c: 48 00 00 08 b ffc0ed94 <_Thread_queue_Extract+0x28> <== ALWAYS TAKEN else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); ffc0ed90: 48 00 22 39 bl ffc10fc8 <_Thread_queue_Extract_fifo> <== ALWAYS TAKEN } ffc0ed94: 80 01 00 0c lwz r0,12(r1) ffc0ed98: 38 21 00 08 addi r1,r1,8 ffc0ed9c: 7c 08 03 a6 mtlr r0 ffc0eda0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10fc8 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { ffc10fc8: 94 21 ff f0 stwu r1,-16(r1) ffc10fcc: 7c 08 02 a6 mflr r0 ffc10fd0: 90 01 00 14 stw r0,20(r1) ffc10fd4: 93 e1 00 0c stw r31,12(r1) ffc10fd8: 7c 9f 23 78 mr r31,r4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc10fdc: 7c 00 00 a6 mfmsr r0 ffc10fe0: 7d 30 42 a6 mfsprg r9,0 ffc10fe4: 7c 09 48 78 andc r9,r0,r9 ffc10fe8: 7d 20 01 24 mtmsr r9 ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { ffc10fec: 3d 60 00 03 lis r11,3 ffc10ff0: 81 24 00 10 lwz r9,16(r4) ffc10ff4: 61 6b be e0 ori r11,r11,48864 <== ALWAYS TAKEN ffc10ff8: 7d 6a 48 39 and. r10,r11,r9 ffc10ffc: 40 a2 00 0c bne+ ffc11008 <_Thread_queue_Extract_fifo+0x40> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc11000: 7c 00 01 24 mtmsr r0 ffc11004: 48 00 00 54 b ffc11058 <_Thread_queue_Extract_fifo+0x90> <== ALWAYS TAKEN _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc11008: 81 64 00 50 lwz r11,80(r4) return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; ffc1100c: 39 40 00 00 li r10,0 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc11010: 81 24 00 00 lwz r9,0(r4) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc11014: 2f 8b 00 02 cmpwi cr7,r11,2 previous = the_node->previous; ffc11018: 81 64 00 04 lwz r11,4(r4) return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; ffc1101c: 91 44 00 44 stw r10,68(r4) next->previous = previous; previous->next = next; ffc11020: 91 2b 00 00 stw r9,0(r11) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc11024: 91 69 00 04 stw r11,4(r9) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc11028: 41 9e 00 0c beq- cr7,ffc11034 <_Thread_queue_Extract_fifo+0x6c> ffc1102c: 7c 00 01 24 mtmsr r0 ffc11030: 48 00 00 18 b ffc11048 <_Thread_queue_Extract_fifo+0x80> <== ALWAYS TAKEN ffc11034: 39 20 00 03 li r9,3 ffc11038: 91 24 00 50 stw r9,80(r4) ffc1103c: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc11040: 38 64 00 48 addi r3,r4,72 ffc11044: 4b ff a9 d5 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc11048: 3c 80 10 03 lis r4,4099 ffc1104c: 7f e3 fb 78 mr r3,r31 ffc11050: 60 84 ff f8 ori r4,r4,65528 ffc11054: 4b ff 8e 15 bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } ffc11058: 80 01 00 14 lwz r0,20(r1) ffc1105c: 83 e1 00 0c lwz r31,12(r1) ffc11060: 38 21 00 10 addi r1,r1,16 ffc11064: 7c 08 03 a6 mtlr r0 ffc11068: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0eda4 <_Thread_queue_Extract_priority_helper>: void _Thread_queue_Extract_priority_helper( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread, bool requeuing ) { ffc0eda4: 94 21 ff f0 stwu r1,-16(r1) ffc0eda8: 7c 08 02 a6 mflr r0 ffc0edac: 90 01 00 14 stw r0,20(r1) ffc0edb0: 93 e1 00 0c stw r31,12(r1) ffc0edb4: 7c 9f 23 78 mr r31,r4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0edb8: 7c 00 00 a6 mfmsr r0 ffc0edbc: 7d 30 42 a6 mfsprg r9,0 ffc0edc0: 7c 09 48 78 andc r9,r0,r9 ffc0edc4: 7d 20 01 24 mtmsr r9 Chain_Node *new_second_node; Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { ffc0edc8: 3d 60 00 03 lis r11,3 ffc0edcc: 81 24 00 10 lwz r9,16(r4) ffc0edd0: 61 6b be e0 ori r11,r11,48864 ffc0edd4: 7d 6a 48 39 and. r10,r11,r9 ffc0edd8: 40 a2 00 08 bne+ ffc0ede0 <_Thread_queue_Extract_priority_helper+0x3c> _ISR_Enable( level ); ffc0eddc: 48 00 00 70 b ffc0ee4c <_Thread_queue_Extract_priority_helper+0xa8> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc0ede0: 81 24 00 38 lwz r9,56(r4) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0ede4: 39 64 00 3c addi r11,r4,60 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; ffc0ede8: 81 44 00 00 lwz r10,0(r4) ffc0edec: 7f 89 58 00 cmpw cr7,r9,r11 previous_node = the_node->previous; ffc0edf0: 81 64 00 04 lwz r11,4(r4) ffc0edf4: 41 9e 00 48 beq- cr7,ffc0ee3c <_Thread_queue_Extract_priority_helper+0x98> if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; ffc0edf8: 81 04 00 40 lwz r8,64(r4) new_second_node = new_first_node->next; ffc0edfc: 80 e9 00 00 lwz r7,0(r9) previous_node->next = new_first_node; next_node->previous = new_first_node; ffc0ee00: 91 2a 00 04 stw r9,4(r10) new_first_node = the_thread->Wait.Block2n.first; new_first_thread = (Thread_Control *) new_first_node; last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; ffc0ee04: 91 2b 00 00 stw r9,0(r11) next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; ffc0ee08: 91 69 00 04 stw r11,4(r9) last_node = the_thread->Wait.Block2n.last; new_second_node = new_first_node->next; previous_node->next = new_first_node; next_node->previous = new_first_node; new_first_node->next = next_node; ffc0ee0c: 91 49 00 00 stw r10,0(r9) new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { ffc0ee10: 81 44 00 38 lwz r10,56(r4) ffc0ee14: 81 64 00 40 lwz r11,64(r4) ffc0ee18: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0ee1c: 41 9e 00 28 beq- cr7,ffc0ee44 <_Thread_queue_Extract_priority_helper+0xa0> new_second_node->previous = _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); ffc0ee20: 39 69 00 3c addi r11,r9,60 new_first_node->next = next_node; new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { /* > two threads on 2-n */ new_second_node->previous = ffc0ee24: 39 49 00 38 addi r10,r9,56 ffc0ee28: 91 47 00 04 stw r10,4(r7) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; ffc0ee2c: 90 e9 00 38 stw r7,56(r9) new_first_thread->Wait.Block2n.last = last_node; ffc0ee30: 91 09 00 40 stw r8,64(r9) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); ffc0ee34: 91 68 00 00 stw r11,0(r8) ffc0ee38: 48 00 00 0c b ffc0ee44 <_Thread_queue_Extract_priority_helper+0xa0> <== ALWAYS TAKEN } } else { previous_node->next = next_node; next_node->previous = previous_node; ffc0ee3c: 91 6a 00 04 stw r11,4(r10) new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; ffc0ee40: 91 4b 00 00 stw r10,0(r11) /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { ffc0ee44: 2f 85 00 00 cmpwi cr7,r5,0 <== ALWAYS TAKEN ffc0ee48: 41 be 00 0c beq+ cr7,ffc0ee54 <_Thread_queue_Extract_priority_helper+0xb0> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ee4c: 7c 00 01 24 mtmsr r0 ffc0ee50: 48 00 00 3c b ffc0ee8c <_Thread_queue_Extract_priority_helper+0xe8> <== ALWAYS TAKEN _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc0ee54: 81 3f 00 50 lwz r9,80(r31) ffc0ee58: 2f 89 00 02 cmpwi cr7,r9,2 ffc0ee5c: 41 9e 00 0c beq- cr7,ffc0ee68 <_Thread_queue_Extract_priority_helper+0xc4> ffc0ee60: 7c 00 01 24 mtmsr r0 ffc0ee64: 48 00 00 18 b ffc0ee7c <_Thread_queue_Extract_priority_helper+0xd8> <== ALWAYS TAKEN ffc0ee68: 39 20 00 03 li r9,3 ffc0ee6c: 91 3f 00 50 stw r9,80(r31) ffc0ee70: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc0ee74: 38 7f 00 48 addi r3,r31,72 ffc0ee78: 4b ff cb a1 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN ffc0ee7c: 3c 80 10 03 lis r4,4099 ffc0ee80: 7f e3 fb 78 mr r3,r31 ffc0ee84: 60 84 ff f8 ori r4,r4,65528 ffc0ee88: 4b ff af e1 bl ffc09e68 <_Thread_Clear_state> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } ffc0ee8c: 80 01 00 14 lwz r0,20(r1) ffc0ee90: 83 e1 00 0c lwz r31,12(r1) ffc0ee94: 38 21 00 10 addi r1,r1,16 ffc0ee98: 7c 08 03 a6 mtlr r0 ffc0ee9c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0abc4 <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { ffc0abc4: 7c 08 02 a6 mflr r0 ffc0abc8: 94 21 ff f8 stwu r1,-8(r1) States_Control state; state = the_thread->current_state; ffc0abcc: 3d 20 00 03 lis r9,3 */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { ffc0abd0: 90 01 00 0c stw r0,12(r1) States_Control state; state = the_thread->current_state; ffc0abd4: 61 29 be e0 ori r9,r9,48864 */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { ffc0abd8: 7c 64 1b 78 mr r4,r3 States_Control state; state = the_thread->current_state; ffc0abdc: 80 03 00 10 lwz r0,16(r3) ffc0abe0: 38 60 00 00 li r3,0 ffc0abe4: 7d 2b 00 39 and. r11,r9,r0 ffc0abe8: 41 a2 00 10 beq+ ffc0abf8 <_Thread_queue_Extract_with_proxy+0x34> if ( proxy_extract_callout ) (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); ffc0abec: 80 64 00 44 lwz r3,68(r4) ffc0abf0: 48 00 41 7d bl ffc0ed6c <_Thread_queue_Extract> <== ALWAYS TAKEN ffc0abf4: 38 60 00 01 li r3,1 return true; } return false; } ffc0abf8: 80 01 00 0c lwz r0,12(r1) ffc0abfc: 38 21 00 08 addi r1,r1,8 ffc0ac00: 7c 08 03 a6 mtlr r0 ffc0ac04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d640 <_Thread_queue_First>: */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { ffc0d640: 7c 08 02 a6 mflr r0 ffc0d644: 94 21 ff f8 stwu r1,-8(r1) ffc0d648: 90 01 00 0c stw r0,12(r1) Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0d64c: 80 03 00 34 lwz r0,52(r3) ffc0d650: 2f 80 00 01 cmpwi cr7,r0,1 ffc0d654: 41 9e 00 10 beq- cr7,ffc0d664 <_Thread_queue_First+0x24> ffc0d658: 3d 20 ff c1 lis r9,-63 ffc0d65c: 38 09 19 dc addi r0,r9,6620 ffc0d660: 48 00 00 0c b ffc0d66c <_Thread_queue_First+0x2c> <== ALWAYS TAKEN ffc0d664: 3d 20 ff c1 lis r9,-63 ffc0d668: 38 09 d6 84 addi r0,r9,-10620 first_p = _Thread_queue_First_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ first_p = _Thread_queue_First_fifo; return (*first_p)( the_thread_queue ); ffc0d66c: 7c 09 03 a6 mtctr r0 ffc0d670: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0d674: 80 01 00 0c lwz r0,12(r1) ffc0d678: 38 21 00 08 addi r1,r1,8 ffc0d67c: 7c 08 03 a6 mtlr r0 ffc0d680: 4e 80 00 20 blr <== ALWAYS TAKEN ffc119dc <_Thread_queue_First_fifo>: */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc119dc: 80 03 00 00 lwz r0,0(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc119e0: 38 63 00 04 addi r3,r3,4 ffc119e4: 7c 09 1a 78 xor r9,r0,r3 ffc119e8: 7d 2b fe 70 srawi r11,r9,31 ffc119ec: 7d 63 4a 78 xor r3,r11,r9 ffc119f0: 7c 63 58 50 subf r3,r3,r11 ffc119f4: 7c 63 fe 70 srawi r3,r3,31 { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) return (Thread_Control *) the_thread_queue->Queues.Fifo.first; return NULL; } ffc119f8: 7c 03 18 38 and r3,r0,r3 ffc119fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d684 <_Thread_queue_First_priority>: */ Thread_Control *_Thread_queue_First_priority ( Thread_queue_Control *the_thread_queue ) { ffc0d684: 38 00 00 04 li r0,4 ffc0d688: 7c 09 03 a6 mtctr r0 ffc0d68c: 7c 69 1b 78 mr r9,r3 ffc0d690: 39 60 00 00 li r11,0 ffc0d694: 81 49 00 00 lwz r10,0(r9) ffc0d698: 38 09 00 04 addi r0,r9,4 uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { ffc0d69c: 39 29 00 0c addi r9,r9,12 ffc0d6a0: 7f 8a 00 00 cmpw cr7,r10,r0 ffc0d6a4: 41 be 00 10 beq+ cr7,ffc0d6b4 <_Thread_queue_First_priority+0x30> if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) ffc0d6a8: 1d 6b 00 0c mulli r11,r11,12 ffc0d6ac: 7c 63 58 2e lwzx r3,r3,r11 ffc0d6b0: 4e 80 00 20 blr <== ALWAYS TAKEN { uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { ffc0d6b4: 39 6b 00 01 addi r11,r11,1 Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; ffc0d6b8: 42 00 ff dc bdnz+ ffc0d694 <_Thread_queue_First_priority+0x10> ffc0d6bc: 38 60 00 00 li r3,0 if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) the_thread_queue->Queues.Priority[ index ].first; } return NULL; } ffc0d6c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ac08 <_Thread_queue_Flush>: #else Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)), #endif uint32_t status ) { ffc0ac08: 94 21 ff f0 stwu r1,-16(r1) ffc0ac0c: 7c 08 02 a6 mflr r0 ffc0ac10: 93 c1 00 08 stw r30,8(r1) ffc0ac14: 7c be 2b 78 mr r30,r5 ffc0ac18: 93 e1 00 0c stw r31,12(r1) ffc0ac1c: 7c 7f 1b 78 mr r31,r3 ffc0ac20: 90 01 00 14 stw r0,20(r1) Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { ffc0ac24: 48 00 00 08 b ffc0ac2c <_Thread_queue_Flush+0x24> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; ffc0ac28: 93 c3 00 34 stw r30,52(r3) uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { ffc0ac2c: 7f e3 fb 78 mr r3,r31 ffc0ac30: 4b ff fb 55 bl ffc0a784 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc0ac34: 2c 03 00 00 cmpwi r3,0 ffc0ac38: 40 82 ff f0 bne+ ffc0ac28 <_Thread_queue_Flush+0x20> ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } } ffc0ac3c: 80 01 00 14 lwz r0,20(r1) ffc0ac40: 83 c1 00 08 lwz r30,8(r1) ffc0ac44: 7c 08 03 a6 mtlr r0 ffc0ac48: 83 e1 00 0c lwz r31,12(r1) ffc0ac4c: 38 21 00 10 addi r1,r1,16 ffc0ac50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ac54 <_Thread_queue_Initialize>: the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { ffc0ac54: 2f 84 00 01 cmpwi cr7,r4,1 Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) { the_thread_queue->state = state; ffc0ac58: 90 a3 00 38 stw r5,56(r3) the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0ac5c: 38 00 00 00 li r0,0 uint32_t timeout_status ) { the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; the_thread_queue->timeout_status = timeout_status; ffc0ac60: 90 c3 00 3c stw r6,60(r3) <== ALWAYS TAKEN States_Control state, uint32_t timeout_status ) { the_thread_queue->state = state; the_thread_queue->discipline = the_discipline; ffc0ac64: 90 83 00 34 stw r4,52(r3) the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0ac68: 90 03 00 30 stw r0,48(r3) if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { ffc0ac6c: 40 be 00 28 bne+ cr7,ffc0ac94 <_Thread_queue_Initialize+0x40> RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc0ac70: 39 20 00 04 li r9,4 ffc0ac74: 7d 29 03 a6 mtctr r9 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ac78: 39 23 00 04 addi r9,r3,4 the_chain->permanent_null = NULL; ffc0ac7c: 90 03 00 04 stw r0,4(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ac80: 91 23 00 00 stw r9,0(r3) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ac84: 90 63 00 08 stw r3,8(r3) ffc0ac88: 38 63 00 0c addi r3,r3,12 uint32_t index; for( index=0 ; ffc0ac8c: 42 00 ff ec bdnz+ ffc0ac78 <_Thread_queue_Initialize+0x24> ffc0ac90: 4e 80 00 20 blr <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ac94: 39 23 00 04 addi r9,r3,4 <== ALWAYS TAKEN the_chain->permanent_null = NULL; ffc0ac98: 90 03 00 04 stw r0,4(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ac9c: 91 23 00 00 stw r9,0(r3) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0aca0: 90 63 00 08 stw r3,8(r3) <== ALWAYS TAKEN ffc0aca4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0eea0 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { ffc0eea0: 7c 08 02 a6 mflr r0 ffc0eea4: 94 21 ff f8 stwu r1,-8(r1) ffc0eea8: 7c 64 1b 78 mr r4,r3 ffc0eeac: 90 01 00 0c stw r0,12(r1) Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; ffc0eeb0: 81 23 00 44 lwz r9,68(r3) * If it is not satisfied, then it is "nothing happened" and * this is the "timeout" transition. After a request is satisfied, * a timeout is not allowed to occur. */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && ffc0eeb4: 80 09 00 30 lwz r0,48(r9) ffc0eeb8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0eebc: 41 9e 00 30 beq- cr7,ffc0eeec <_Thread_queue_Process_timeout+0x4c> ffc0eec0: 3d 60 00 00 lis r11,0 ffc0eec4: 81 6b 27 b0 lwz r11,10160(r11) ffc0eec8: 7f 83 58 00 cmpw cr7,r3,r11 ffc0eecc: 40 be 00 20 bne+ cr7,ffc0eeec <_Thread_queue_Process_timeout+0x4c> _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { ffc0eed0: 2f 80 00 03 cmpwi cr7,r0,3 ffc0eed4: 41 9e 00 28 beq- cr7,ffc0eefc <_Thread_queue_Process_timeout+0x5c> the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; ffc0eed8: 80 09 00 3c lwz r0,60(r9) ffc0eedc: 90 03 00 34 stw r0,52(r3) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; ffc0eee0: 38 00 00 02 li r0,2 ffc0eee4: 90 09 00 30 stw r0,48(r9) ffc0eee8: 48 00 00 14 b ffc0eefc <_Thread_queue_Process_timeout+0x5c> <== ALWAYS TAKEN } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; ffc0eeec: 80 09 00 3c lwz r0,60(r9) _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); ffc0eef0: 80 64 00 44 lwz r3,68(r4) if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } } else { the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; ffc0eef4: 90 04 00 34 stw r0,52(r4) _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); ffc0eef8: 4b ff fe 75 bl ffc0ed6c <_Thread_queue_Extract> <== ALWAYS TAKEN } } ffc0eefc: 80 01 00 0c lwz r0,12(r1) ffc0ef00: 38 21 00 08 addi r1,r1,8 ffc0ef04: 7c 08 03 a6 mtlr r0 ffc0ef08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aca8 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0aca8: 94 21 ff d8 stwu r1,-40(r1) ffc0acac: 7c 08 02 a6 mflr r0 ffc0acb0: 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 ) ffc0acb4: 7c 7f 1b 79 mr. r31,r3 void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0acb8: 93 c1 00 20 stw r30,32(r1) ffc0acbc: 7c 9e 23 78 mr r30,r4 ffc0acc0: 90 01 00 2c stw r0,44(r1) ffc0acc4: 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 ) ffc0acc8: 41 82 00 54 beq- ffc0ad1c <_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 ) { ffc0accc: 80 1f 00 34 lwz r0,52(r31) ffc0acd0: 2f 80 00 01 cmpwi cr7,r0,1 ffc0acd4: 40 be 00 48 bne+ cr7,ffc0ad1c <_Thread_queue_Requeue+0x74> <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0acd8: 7f a0 00 a6 mfmsr r29 ffc0acdc: 7d 30 42 a6 mfsprg r9,0 ffc0ace0: 7f a9 48 78 andc r9,r29,r9 ffc0ace4: 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 ) ) { ffc0ace8: 3d 60 00 03 lis r11,3 ffc0acec: 81 24 00 10 lwz r9,16(r4) ffc0acf0: 61 6b be e0 ori r11,r11,48864 ffc0acf4: 7d 6a 48 39 and. r10,r11,r9 ffc0acf8: 41 a2 00 20 beq+ ffc0ad18 <_Thread_queue_Requeue+0x70> <== NEVER TAKEN ffc0acfc: 90 1f 00 30 stw r0,48(r31) _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); ffc0ad00: 38 a0 00 01 li r5,1 ffc0ad04: 48 00 40 a1 bl ffc0eda4 <_Thread_queue_Extract_priority_helper> <== ALWAYS TAKEN (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); ffc0ad08: 7f e3 fb 78 mr r3,r31 ffc0ad0c: 7f c4 f3 78 mr r4,r30 ffc0ad10: 38 a1 00 08 addi r5,r1,8 ffc0ad14: 4b ff fd 05 bl ffc0aa18 <_Thread_queue_Enqueue_priority> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ad18: 7f a0 01 24 mtmsr r29 } _ISR_Enable( level ); } } ffc0ad1c: 80 01 00 2c lwz r0,44(r1) ffc0ad20: 83 a1 00 1c lwz r29,28(r1) ffc0ad24: 7c 08 03 a6 mtlr r0 ffc0ad28: 83 c1 00 20 lwz r30,32(r1) ffc0ad2c: 83 e1 00 24 lwz r31,36(r1) ffc0ad30: 38 21 00 28 addi r1,r1,40 ffc0ad34: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ad38 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0ad38: 94 21 ff e8 stwu r1,-24(r1) ffc0ad3c: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0ad40: 38 81 00 08 addi r4,r1,8 void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0ad44: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0ad48: 4b ff f6 25 bl ffc0a36c <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0ad4c: 80 01 00 08 lwz r0,8(r1) ffc0ad50: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ad54: 40 9e 00 18 bne- cr7,ffc0ad6c <_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 ); ffc0ad58: 48 00 41 49 bl ffc0eea0 <_Thread_queue_Process_timeout> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0ad5c: 3d 20 00 00 lis r9,0 ffc0ad60: 81 69 27 70 lwz r11,10096(r9) ffc0ad64: 38 0b ff ff addi r0,r11,-1 ffc0ad68: 90 09 27 70 stw r0,10096(r9) _Thread_Unnest_dispatch(); break; } } ffc0ad6c: 80 01 00 1c lwz r0,28(r1) ffc0ad70: 38 21 00 18 addi r1,r1,24 ffc0ad74: 7c 08 03 a6 mtlr r0 ffc0ad78: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e0ac <_Timer_Manager_initialization>: * Output parameters: NONE */ void _Timer_Manager_initialization(void) { _Objects_Initialize_information( ffc0e0ac: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Timer_Manager_initialization(void) { ffc0e0b0: 94 21 ff f8 stwu r1,-8(r1) ffc0e0b4: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e0b8: 3c 60 00 00 lis r3,0 ffc0e0bc: 80 c9 20 78 lwz r6,8312(r9) <== ALWAYS TAKEN ffc0e0c0: 38 63 36 cc addi r3,r3,14028 ffc0e0c4: 39 20 00 04 li r9,4 * * Output parameters: NONE */ void _Timer_Manager_initialization(void) { ffc0e0c8: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0e0cc: 38 80 00 02 li r4,2 ffc0e0d0: 38 a0 00 02 li r5,2 <== ALWAYS TAKEN ffc0e0d4: 38 e0 00 3c li r7,60 ffc0e0d8: 39 00 00 00 li r8,0 ffc0e0dc: 4b ff b7 f1 bl ffc098cc <_Objects_Initialize_information> <== ALWAYS TAKEN /* * Initialize the pointer to the default timer server control block to NULL * indicating that task-based timer support is not initialized. */ _Timer_server = NULL; ffc0e0e0: 38 00 00 00 li r0,0 ffc0e0e4: 3d 20 00 00 lis r9,0 ffc0e0e8: 90 09 27 f4 stw r0,10228(r9) } ffc0e0ec: 80 01 00 0c lwz r0,12(r1) ffc0e0f0: 38 21 00 08 addi r1,r1,8 ffc0e0f4: 7c 08 03 a6 mtlr r0 ffc0e0f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19640 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19640: 94 21 ff 98 stwu r1,-104(r1) ffc19644: 7c 08 02 a6 mflr r0 ffc19648: 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); ffc1964c: 3a 01 00 08 addi r16,r1,8 ffc19650: 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; ffc19654: 38 00 00 00 li r0,0 ffc19658: 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; ffc1965c: 3b 01 00 0c addi r24,r1,12 ffc19660: 93 61 00 54 stw r27,84(r1) ffc19664: 3b 61 00 18 addi r27,r1,24 ffc19668: 93 c1 00 60 stw r30,96(r1) ffc1966c: 3b c1 00 14 addi r30,r1,20 ffc19670: 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; ffc19674: 3e 20 00 00 lis r17,0 ffc19678: 3a 31 28 c0 addi r17,r17,10432 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1967c: 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(); ffc19680: 3e 40 00 00 lis r18,0 ffc19684: 3a 52 28 88 addi r18,r18,10376 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc19688: 93 21 00 4c stw r25,76(r1) ffc1968c: 3f 20 00 00 lis r25,0 ffc19690: 3b 39 28 68 addi r25,r25,10344 ffc19694: 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; ffc19698: 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); ffc1969c: 93 01 00 08 stw r24,8(r1) the_chain->permanent_null = NULL; ffc196a0: 90 01 00 0c stw r0,12(r1) the_chain->last = _Chain_Head(the_chain); ffc196a4: 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); ffc196a8: 93 61 00 14 stw r27,20(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc196ac: 93 c1 00 1c stw r30,28(r1) ffc196b0: 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 ); ffc196b4: 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 ) { ffc196b8: 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 ); ffc196bc: 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 ) { ffc196c0: 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)) ffc196c4: 3a a0 00 00 li r21,0 ffc196c8: 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; ffc196cc: 3a c0 00 00 li r22,0 <== ALWAYS TAKEN * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc196d0: 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; ffc196d4: 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 ) { ffc196d8: 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 ); ffc196dc: 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 ) { ffc196e0: 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 ); ffc196e4: 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 ) { ffc196e8: 93 e1 00 64 stw r31,100(r1) ffc196ec: 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; ffc196f0: 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; ffc196f4: 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 ); ffc196f8: 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; ffc196fc: 80 9f 00 3c lwz r4,60(r31) watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19700: 7f 43 d3 78 mr r3,r26 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; ffc19704: 90 1f 00 3c stw r0,60(r31) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc19708: 7c 84 00 50 subf r4,r4,r0 ffc1970c: 48 00 4f 69 bl ffc1e674 <_Watchdog_Adjust_to_chain> <== ALWAYS TAKEN static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc19710: 83 b2 00 00 lwz r29,0(r18) Watchdog_Interval last_snapshot = watchdogs->last_snapshot; ffc19714: 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 ) { ffc19718: 7f 9d 28 40 cmplw cr7,r29,r5 ffc1971c: 40 bd 00 18 ble+ cr7,ffc19734 <_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 ); ffc19720: 7c 85 e8 50 subf r4,r5,r29 ffc19724: 7f 83 e3 78 mr r3,r28 ffc19728: 7f c5 f3 78 mr r5,r30 ffc1972c: 48 00 4f 49 bl ffc1e674 <_Watchdog_Adjust_to_chain> <== ALWAYS TAKEN ffc19730: 48 00 00 18 b ffc19748 <_Timer_server_Body+0x108> <== ALWAYS TAKEN } else if ( snapshot < last_snapshot ) { ffc19734: 40 bc 00 14 bge+ cr7,ffc19748 <_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 ); ffc19738: 7c bd 28 50 subf r5,r29,r5 ffc1973c: 7f 83 e3 78 mr r3,r28 ffc19740: 38 80 00 01 li r4,1 ffc19744: 48 00 4e 4d bl ffc1e590 <_Watchdog_Adjust> <== ALWAYS TAKEN } watchdogs->last_snapshot = snapshot; ffc19748: 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 ); ffc1974c: 80 7f 00 78 lwz r3,120(r31) ffc19750: 48 00 0b 79 bl ffc1a2c8 <_Chain_Get> <== ALWAYS TAKEN if ( timer == NULL ) { ffc19754: 7c 64 1b 79 mr. r4,r3 ffc19758: 41 82 00 34 beq- ffc1978c <_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 ) { ffc1975c: 80 04 00 38 lwz r0,56(r4) ffc19760: 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 ) { ffc19764: 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 ) { ffc19768: 40 ba 00 10 bne+ cr6,ffc19778 <_Timer_server_Body+0x138> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); ffc1976c: 38 84 00 10 addi r4,r4,16 ffc19770: 7f 43 d3 78 mr r3,r26 ffc19774: 48 00 00 10 b ffc19784 <_Timer_server_Body+0x144> <== ALWAYS TAKEN } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { ffc19778: 40 9e ff d4 bne+ cr7,ffc1974c <_Timer_server_Body+0x10c> <== NEVER TAKEN _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); ffc1977c: 38 84 00 10 addi r4,r4,16 ffc19780: 7f 83 e3 78 mr r3,r28 ffc19784: 48 00 4f a9 bl ffc1e72c <_Watchdog_Insert> <== ALWAYS TAKEN ffc19788: 4b ff ff c4 b ffc1974c <_Timer_server_Body+0x10c> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1978c: 7c 00 00 a6 mfmsr r0 ffc19790: 7d 30 42 a6 mfsprg r9,0 ffc19794: 7c 09 48 78 andc r9,r0,r9 ffc19798: 7d 20 01 24 mtmsr r9 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ffc1979c: 81 21 00 08 lwz r9,8(r1) ffc197a0: 7f 89 c0 00 cmpw cr7,r9,r24 ffc197a4: 40 be 00 1c bne+ cr7,ffc197c0 <_Timer_server_Body+0x180> ts->insert_chain = NULL; ffc197a8: 90 9f 00 78 stw r4,120(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc197ac: 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 ) ) { ffc197b0: 80 01 00 14 lwz r0,20(r1) ffc197b4: 7f 80 d8 00 cmpw cr7,r0,r27 ffc197b8: 40 be 00 10 bne+ cr7,ffc197c8 <_Timer_server_Body+0x188> ffc197bc: 48 00 00 64 b ffc19820 <_Timer_server_Body+0x1e0> <== ALWAYS TAKEN ffc197c0: 7c 00 01 24 mtmsr r0 ffc197c4: 4b ff ff 30 b ffc196f4 <_Timer_server_Body+0xb4> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc197c8: 7c 00 00 a6 mfmsr r0 ffc197cc: 7d 30 42 a6 mfsprg r9,0 ffc197d0: 7c 09 48 78 andc r9,r0,r9 ffc197d4: 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)); ffc197d8: 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)) ffc197dc: 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 ) { ffc197e0: 2f 89 00 00 cmpwi cr7,r9,0 ffc197e4: 41 9a 00 34 beq- cr6,ffc19818 <_Timer_server_Body+0x1d8> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc197e8: 81 69 00 00 lwz r11,0(r9) the_chain->first = new_first; ffc197ec: 91 61 00 14 stw r11,20(r1) new_first->previous = _Chain_Head(the_chain); ffc197f0: 93 cb 00 04 stw r30,4(r11) ffc197f4: 41 9e 00 24 beq- cr7,ffc19818 <_Timer_server_Body+0x1d8> <== NEVER TAKEN watchdog->state = WATCHDOG_INACTIVE; ffc197f8: 92 a9 00 08 stw r21,8(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc197fc: 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 ); ffc19800: 80 09 00 1c lwz r0,28(r9) ffc19804: 80 89 00 24 lwz r4,36(r9) ffc19808: 80 69 00 20 lwz r3,32(r9) ffc1980c: 7c 09 03 a6 mtctr r0 ffc19810: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc19814: 4b ff ff b4 b ffc197c8 <_Timer_server_Body+0x188> <== ALWAYS TAKEN ffc19818: 7c 00 01 24 mtmsr r0 ffc1981c: 4b ff fe d4 b ffc196f0 <_Timer_server_Body+0xb0> <== ALWAYS TAKEN } else { ts->active = false; ffc19820: 9a df 00 7c stb r22,124(r31) ffc19824: 81 39 00 00 lwz r9,0(r25) ffc19828: 38 09 00 01 addi r0,r9,1 ffc1982c: 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 ); ffc19830: 80 7f 00 00 lwz r3,0(r31) ffc19834: 38 80 00 08 li r4,8 ffc19838: 48 00 41 75 bl ffc1d9ac <_Thread_Set_state> <== ALWAYS TAKEN _Timer_server_Reset_interval_system_watchdog( ts ); ffc1983c: 7f e3 fb 78 mr r3,r31 ffc19840: 4b ff fd 01 bl ffc19540 <_Timer_server_Reset_interval_system_watchdog> <== ALWAYS TAKEN _Timer_server_Reset_tod_system_watchdog( ts ); ffc19844: 7f e3 fb 78 mr r3,r31 ffc19848: 4b ff fd 79 bl ffc195c0 <_Timer_server_Reset_tod_system_watchdog> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc1984c: 48 00 35 15 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ts->active = true; ffc19850: 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 ); ffc19854: 7e 63 9b 78 mr r3,r19 ffc19858: 48 00 50 2d bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc1985c: 7e 83 a3 78 mr r3,r20 ffc19860: 48 00 50 25 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN ffc19864: 4b ff fe 8c b ffc196f0 <_Timer_server_Body+0xb0> <== ALWAYS TAKEN ffc19540 <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { ffc19540: 94 21 ff f0 stwu r1,-16(r1) ffc19544: 7c 08 02 a6 mflr r0 ffc19548: 93 c1 00 08 stw r30,8(r1) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc1954c: 3b c3 00 08 addi r30,r3,8 } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { ffc19550: 93 e1 00 0c stw r31,12(r1) ffc19554: 7c 7f 1b 78 mr r31,r3 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc19558: 7f c3 f3 78 mr r3,r30 } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { ffc1955c: 90 01 00 14 stw r0,20(r1) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc19560: 48 00 53 25 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc19564: 7c 00 00 a6 mfmsr r0 ffc19568: 7d 30 42 a6 mfsprg r9,0 ffc1956c: 7c 09 48 78 andc r9,r0,r9 ffc19570: 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)); ffc19574: 81 3f 00 30 lwz r9,48(r31) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc19578: 39 7f 00 34 addi r11,r31,52 ffc1957c: 7f 89 58 00 cmpw cr7,r9,r11 ffc19580: 41 9e 00 24 beq- cr7,ffc195a4 <_Timer_server_Reset_interval_system_watchdog+0x64> _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level ); if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { Watchdog_Interval delta_interval = _Watchdog_First( &ts->Interval_watchdogs.Chain )->delta_interval; ffc19584: 81 29 00 10 lwz r9,16(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19588: 7c 00 01 24 mtmsr r0 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc1958c: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc19590: 91 3f 00 14 stw r9,20(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc19594: 38 63 71 68 addi r3,r3,29032 ffc19598: 7f c4 f3 78 mr r4,r30 ffc1959c: 48 00 51 91 bl ffc1e72c <_Watchdog_Insert> <== ALWAYS TAKEN ffc195a0: 48 00 00 08 b ffc195a8 <_Timer_server_Reset_interval_system_watchdog+0x68> <== ALWAYS TAKEN ffc195a4: 7c 00 01 24 mtmsr r0 delta_interval ); } else { _ISR_Enable( level ); } } ffc195a8: 80 01 00 14 lwz r0,20(r1) ffc195ac: 83 c1 00 08 lwz r30,8(r1) ffc195b0: 7c 08 03 a6 mtlr r0 ffc195b4: 83 e1 00 0c lwz r31,12(r1) ffc195b8: 38 21 00 10 addi r1,r1,16 ffc195bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc195c0 <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { ffc195c0: 94 21 ff f0 stwu r1,-16(r1) ffc195c4: 7c 08 02 a6 mflr r0 ffc195c8: 93 c1 00 08 stw r30,8(r1) static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc195cc: 3b c3 00 40 addi r30,r3,64 } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { ffc195d0: 93 e1 00 0c stw r31,12(r1) ffc195d4: 7c 7f 1b 78 mr r31,r3 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc195d8: 7f c3 f3 78 mr r3,r30 } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { ffc195dc: 90 01 00 14 stw r0,20(r1) static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc195e0: 48 00 52 a5 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc195e4: 7c 00 00 a6 mfmsr r0 ffc195e8: 7d 30 42 a6 mfsprg r9,0 ffc195ec: 7c 09 48 78 andc r9,r0,r9 ffc195f0: 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)); ffc195f4: 81 3f 00 68 lwz r9,104(r31) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc195f8: 39 7f 00 6c addi r11,r31,108 ffc195fc: 7f 89 58 00 cmpw cr7,r9,r11 ffc19600: 41 9e 00 24 beq- cr7,ffc19624 <_Timer_server_Reset_tod_system_watchdog+0x64> _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level ); if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { Watchdog_Interval delta_interval = _Watchdog_First( &ts->TOD_watchdogs.Chain )->delta_interval; ffc19604: 81 29 00 10 lwz r9,16(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19608: 7c 00 01 24 mtmsr r0 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc1960c: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc19610: 91 3f 00 4c stw r9,76(r31) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc19614: 38 63 71 5c addi r3,r3,29020 ffc19618: 7f c4 f3 78 mr r4,r30 ffc1961c: 48 00 51 11 bl ffc1e72c <_Watchdog_Insert> <== ALWAYS TAKEN ffc19620: 48 00 00 08 b ffc19628 <_Timer_server_Reset_tod_system_watchdog+0x68> <== ALWAYS TAKEN ffc19624: 7c 00 01 24 mtmsr r0 delta_interval ); } else { _ISR_Enable( level ); } } ffc19628: 80 01 00 14 lwz r0,20(r1) ffc1962c: 83 c1 00 08 lwz r30,8(r1) ffc19630: 7c 08 03 a6 mtlr r0 ffc19634: 83 e1 00 0c lwz r31,12(r1) ffc19638: 38 21 00 10 addi r1,r1,16 ffc1963c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19868 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { ffc19868: 94 21 ff f0 stwu r1,-16(r1) ffc1986c: 7c 08 02 a6 mflr r0 ffc19870: 7c 89 23 78 mr r9,r4 ffc19874: 90 01 00 14 stw r0,20(r1) if ( ts->insert_chain == NULL ) { ffc19878: 80 03 00 78 lwz r0,120(r3) static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { ffc1987c: 93 e1 00 0c stw r31,12(r1) ffc19880: 7c 7f 1b 78 mr r31,r3 if ( ts->insert_chain == NULL ) { ffc19884: 2f 80 00 00 cmpwi cr7,r0,0 ffc19888: 40 be 01 24 bne+ cr7,ffc199ac <_Timer_server_Schedule_operation_method+0x144> ffc1988c: 3d 60 00 00 lis r11,0 ffc19890: 81 4b 28 68 lwz r10,10344(r11) ffc19894: 38 0a 00 01 addi r0,r10,1 ffc19898: 90 0b 28 68 stw r0,10344(r11) * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { ffc1989c: 80 04 00 38 lwz r0,56(r4) ffc198a0: 2f 80 00 01 cmpwi cr7,r0,1 ffc198a4: 40 be 00 78 bne+ cr7,ffc1991c <_Timer_server_Schedule_operation_method+0xb4> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc198a8: 7c e0 00 a6 mfmsr r7 ffc198ac: 7c 10 42 a6 mfsprg r0,0 ffc198b0: 7c e0 00 78 andc r0,r7,r0 ffc198b4: 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)); ffc198b8: 81 63 00 30 lwz r11,48(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc198bc: 38 03 00 34 addi r0,r3,52 /* * We have to advance the last known ticks value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = _Watchdog_Ticks_since_boot; ffc198c0: 3d 40 00 00 lis r10,0 ffc198c4: 7f 8b 00 00 cmpw cr7,r11,r0 ffc198c8: 81 4a 28 c0 lwz r10,10432(r10) last_snapshot = ts->Interval_watchdogs.last_snapshot; ffc198cc: 80 03 00 3c lwz r0,60(r3) ffc198d0: 41 9e 00 20 beq- cr7,ffc198f0 <_Timer_server_Schedule_operation_method+0x88> /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; ffc198d4: 81 0b 00 10 lwz r8,16(r11) first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; ffc198d8: 7c 00 50 50 subf r0,r0,r10 delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { ffc198dc: 7c c8 00 10 subfc r6,r8,r0 ffc198e0: 7c c6 31 10 subfe r6,r6,r6 delta_interval -= delta; ffc198e4: 7c 00 40 50 subf r0,r0,r8 * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { ffc198e8: 7c 00 30 38 and r0,r0,r6 delta_interval -= delta; } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; ffc198ec: 90 0b 00 10 stw r0,16(r11) } ts->Interval_watchdogs.last_snapshot = snapshot; ffc198f0: 91 5f 00 3c stw r10,60(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc198f4: 7c e0 01 24 mtmsr r7 _ISR_Enable( level ); _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); ffc198f8: 38 89 00 10 addi r4,r9,16 ffc198fc: 38 7f 00 30 addi r3,r31,48 ffc19900: 48 00 4e 2d bl ffc1e72c <_Watchdog_Insert> <== ALWAYS TAKEN if ( !ts->active ) { ffc19904: 88 1f 00 7c lbz r0,124(r31) ffc19908: 2f 80 00 00 cmpwi cr7,r0,0 ffc1990c: 40 be 00 98 bne+ cr7,ffc199a4 <_Timer_server_Schedule_operation_method+0x13c> _Timer_server_Reset_interval_system_watchdog( ts ); ffc19910: 7f e3 fb 78 mr r3,r31 ffc19914: 4b ff fc 2d bl ffc19540 <_Timer_server_Reset_interval_system_watchdog> <== ALWAYS TAKEN ffc19918: 48 00 00 8c b ffc199a4 <_Timer_server_Schedule_operation_method+0x13c> <== ALWAYS TAKEN } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { ffc1991c: 2f 80 00 03 cmpwi cr7,r0,3 ffc19920: 40 be 00 84 bne+ cr7,ffc199a4 <_Timer_server_Schedule_operation_method+0x13c> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc19924: 7c c0 00 a6 mfmsr r6 ffc19928: 7c 10 42 a6 mfsprg r0,0 ffc1992c: 7c c0 00 78 andc r0,r6,r0 ffc19930: 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)); ffc19934: 81 43 00 68 lwz r10,104(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc19938: 38 03 00 6c addi r0,r3,108 /* * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc1993c: 3d 60 00 00 lis r11,0 last_snapshot = ts->TOD_watchdogs.last_snapshot; ffc19940: 80 e3 00 74 lwz r7,116(r3) ffc19944: 7f 8a 00 00 cmpw cr7,r10,r0 /* * We have to advance the last known seconds value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc19948: 80 0b 28 88 lwz r0,10376(r11) ffc1994c: 41 9e 00 30 beq- cr7,ffc1997c <_Timer_server_Schedule_operation_method+0x114> last_snapshot = ts->TOD_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; if ( snapshot > last_snapshot ) { ffc19950: 7f 80 38 40 cmplw cr7,r0,r7 _ISR_Disable( level ); snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); last_snapshot = ts->TOD_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; ffc19954: 81 0a 00 10 lwz r8,16(r10) } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; ffc19958: 7d 68 3a 14 add r11,r8,r7 delta_interval += delta; ffc1995c: 7d 60 58 50 subf r11,r0,r11 snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); last_snapshot = ts->TOD_watchdogs.last_snapshot; if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain ); delta_interval = first_watchdog->delta_interval; if ( snapshot > last_snapshot ) { ffc19960: 40 9d 00 18 ble- cr7,ffc19978 <_Timer_server_Schedule_operation_method+0x110> /* * We advanced in time. */ delta = snapshot - last_snapshot; ffc19964: 7d 67 00 50 subf r11,r7,r0 if (delta_interval > delta) { ffc19968: 7c e8 58 10 subfc r7,r8,r11 ffc1996c: 7c e7 39 10 subfe r7,r7,r7 delta_interval -= delta; ffc19970: 7d 6b 40 50 subf r11,r11,r8 if ( snapshot > last_snapshot ) { /* * We advanced in time. */ delta = snapshot - last_snapshot; if (delta_interval > delta) { ffc19974: 7d 6b 38 38 and r11,r11,r7 * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; ffc19978: 91 6a 00 10 stw r11,16(r10) } ts->TOD_watchdogs.last_snapshot = snapshot; ffc1997c: 90 1f 00 74 stw r0,116(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19980: 7c c0 01 24 mtmsr r6 _ISR_Enable( level ); _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); ffc19984: 38 89 00 10 addi r4,r9,16 ffc19988: 38 7f 00 68 addi r3,r31,104 ffc1998c: 48 00 4d a1 bl ffc1e72c <_Watchdog_Insert> <== ALWAYS TAKEN if ( !ts->active ) { ffc19990: 88 1f 00 7c lbz r0,124(r31) ffc19994: 2f 80 00 00 cmpwi cr7,r0,0 ffc19998: 40 be 00 0c bne+ cr7,ffc199a4 <_Timer_server_Schedule_operation_method+0x13c> _Timer_server_Reset_tod_system_watchdog( ts ); ffc1999c: 7f e3 fb 78 mr r3,r31 ffc199a0: 4b ff fc 21 bl ffc195c0 <_Timer_server_Reset_tod_system_watchdog> <== ALWAYS TAKEN } } _Thread_Enable_dispatch(); ffc199a4: 48 00 33 bd bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc199a8: 48 00 00 0c b ffc199b4 <_Timer_server_Schedule_operation_method+0x14c> <== ALWAYS TAKEN * server is not preemptible, so we must be in interrupt context here. No * thread dispatch will happen until the timer server finishes its * critical section. We have to use the protected chain methods because * we may be interrupted by a higher priority interrupt. */ _Chain_Append( ts->insert_chain, &timer->Object.Node ); ffc199ac: 80 63 00 78 lwz r3,120(r3) ffc199b0: 48 00 08 e9 bl ffc1a298 <_Chain_Append> <== ALWAYS TAKEN } } ffc199b4: 80 01 00 14 lwz r0,20(r1) ffc199b8: 83 e1 00 0c lwz r31,12(r1) ffc199bc: 38 21 00 10 addi r1,r1,16 ffc199c0: 7c 08 03 a6 mtlr r0 ffc199c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b398 <_Timespec_Add_to>: { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; ffc0b398: 81 64 00 04 lwz r11,4(r4) /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0b39c: 3d 40 3b 9a lis r10,15258 { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; ffc0b3a0: 80 03 00 04 lwz r0,4(r3) <== ALWAYS TAKEN /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0b3a4: 61 4a ca 00 ori r10,r10,51712 <== ALWAYS TAKEN uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { ffc0b3a8: 7c 69 1b 78 mr r9,r3 <== ALWAYS TAKEN uint32_t seconds = add->tv_sec; ffc0b3ac: 80 64 00 00 lwz r3,0(r4) /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; ffc0b3b0: 7c 0b 02 14 add r0,r11,r0 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; ffc0b3b4: 81 09 00 00 lwz r8,0(r9) <== ALWAYS TAKEN time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0b3b8: 7d 40 53 96 divwu r10,r0,r10 { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; ffc0b3bc: 90 09 00 04 stw r0,4(r9) ffc0b3c0: 7c 0b 03 78 mr r11,r0 <== ALWAYS TAKEN /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0b3c4: 39 4a 00 01 addi r10,r10,1 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; ffc0b3c8: 7c 08 1a 14 add r0,r8,r3 time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0b3cc: 7d 49 03 a6 mtctr r10 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; ffc0b3d0: 90 09 00 00 stw r0,0(r9) time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0b3d4: 48 00 00 18 b ffc0b3ec <_Timespec_Add_to+0x54> <== ALWAYS TAKEN time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; time->tv_sec++; ffc0b3d8: 81 69 00 00 lwz r11,0(r9) seconds++; ffc0b3dc: 38 63 00 01 addi r3,r3,1 time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; time->tv_sec++; ffc0b3e0: 38 0b 00 01 addi r0,r11,1 ffc0b3e4: 90 09 00 00 stw r0,0(r9) <== ALWAYS TAKEN seconds++; ffc0b3e8: 39 6a 36 00 addi r11,r10,13824 ffc0b3ec: 3d 4b c4 65 addis r10,r11,-15259 /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0b3f0: 42 00 ff e8 bdnz+ ffc0b3d8 <_Timespec_Add_to+0x40> ffc0b3f4: 91 69 00 04 stw r11,4(r9) <== ALWAYS TAKEN time->tv_sec++; seconds++; } return seconds; } ffc0b3f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d6f8 <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0d6f8: 94 21 ff e8 stwu r1,-24(r1) ffc0d6fc: 7c 08 02 a6 mflr r0 ffc0d700: 90 01 00 1c stw r0,28(r1) * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; ffc0d704: 3c 00 3b 9a lis r0,15258 ffc0d708: 60 00 ca 00 ori r0,r0,51712 ffc0d70c: 81 04 00 00 lwz r8,0(r4) right += rhs->tv_nsec; ffc0d710: 81 44 00 04 lwz r10,4(r4) * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; ffc0d714: 7d 60 40 96 mulhw r11,r0,r8 const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0d718: 93 c1 00 10 stw r30,16(r1) * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; ffc0d71c: 7d 80 41 d6 mullw r12,r0,r8 const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0d720: 93 e1 00 14 stw r31,20(r1) * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; ffc0d724: 7d 49 fe 70 srawi r9,r10,31 const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0d728: 93 81 00 08 stw r28,8(r1) * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; ffc0d72c: 7d 0c 50 14 addc r8,r12,r10 ffc0d730: 7c eb 49 14 adde r7,r11,r9 const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0d734: 93 a1 00 0c stw r29,12(r1) left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { ffc0d738: 7c eb 43 79 or. r11,r7,r8 /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; left += lhs->tv_nsec; ffc0d73c: 81 23 00 04 lwz r9,4(r3) const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0d740: 7c be 2b 78 mr r30,r5 ffc0d744: 7c df 33 78 mr r31,r6 /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; ffc0d748: 81 43 00 00 lwz r10,0(r3) left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { ffc0d74c: 40 a2 00 10 bne+ ffc0d75c <_Timespec_Divide+0x64> *ival_percentage = 0; ffc0d750: 91 65 00 00 stw r11,0(r5) *fval_percentage = 0; ffc0d754: 91 66 00 00 stw r11,0(r6) return; ffc0d758: 48 00 00 70 b ffc0d7c8 <_Timespec_Divide+0xd0> <== ALWAYS TAKEN /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; ffc0d75c: 7c aa 00 96 mulhw r5,r10,r0 ffc0d760: 7c ca 01 d6 mullw r6,r10,r0 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; ffc0d764: 7d 2c 4b 78 mr r12,r9 ffc0d768: 7d 2b fe 70 srawi r11,r9,31 ffc0d76c: 3c 00 00 01 lis r0,1 ffc0d770: 7d 46 60 14 addc r10,r6,r12 ffc0d774: 7d 25 59 14 adde r9,r5,r11 ffc0d778: 60 00 86 a0 ori r0,r0,34464 ffc0d77c: 7c 60 50 16 mulhwu r3,r0,r10 ffc0d780: 7c 80 51 d6 mullw r4,r0,r10 ffc0d784: 7c 00 49 d6 mullw r0,r0,r9 ffc0d788: 7c e5 3b 78 mr r5,r7 ffc0d78c: 7d 06 43 78 mr r6,r8 ffc0d790: 7c 60 1a 14 add r3,r0,r3 ffc0d794: 48 01 3a a1 bl ffc21234 <__udivdi3> <== ALWAYS TAKEN *ival_percentage = answer / 1000; ffc0d798: 38 a0 00 00 li r5,0 ffc0d79c: 38 c0 03 e8 li r6,1000 * Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right; ffc0d7a0: 7c 7c 1b 78 mr r28,r3 ffc0d7a4: 7c 9d 23 78 mr r29,r4 *ival_percentage = answer / 1000; ffc0d7a8: 48 01 3a 8d bl ffc21234 <__udivdi3> <== ALWAYS TAKEN ffc0d7ac: 90 9e 00 00 stw r4,0(r30) *fval_percentage = answer % 1000; ffc0d7b0: 7f 83 e3 78 mr r3,r28 ffc0d7b4: 7f a4 eb 78 mr r4,r29 ffc0d7b8: 38 a0 00 00 li r5,0 ffc0d7bc: 38 c0 03 e8 li r6,1000 ffc0d7c0: 48 01 3e 51 bl ffc21610 <__umoddi3> <== ALWAYS TAKEN ffc0d7c4: 90 9f 00 00 stw r4,0(r31) } ffc0d7c8: 80 01 00 1c lwz r0,28(r1) ffc0d7cc: 83 81 00 08 lwz r28,8(r1) ffc0d7d0: 7c 08 03 a6 mtlr r0 ffc0d7d4: 83 a1 00 0c lwz r29,12(r1) ffc0d7d8: 83 c1 00 10 lwz r30,16(r1) ffc0d7dc: 83 e1 00 14 lwz r31,20(r1) ffc0d7e0: 38 21 00 18 addi r1,r1,24 ffc0d7e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2fedc <_Timespec_Divide_by_integer>: void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { ffc2fedc: 94 21 ff e8 stwu r1,-24(r1) ffc2fee0: 7c 08 02 a6 mflr r0 ffc2fee4: 7c 86 23 78 mr r6,r4 ffc2fee8: 90 01 00 1c stw r0,28(r1) /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; ffc2feec: 3c 00 3b 9a lis r0,15258 ffc2fef0: 60 00 ca 00 ori r0,r0,51712 /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; ffc2fef4: 81 23 00 00 lwz r9,0(r3) void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { ffc2fef8: 93 e1 00 14 stw r31,20(r1) ffc2fefc: 7c bf 2b 78 mr r31,r5 /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; ffc2ff00: 7d 2a fe 70 srawi r10,r9,31 t *= TOD_NANOSECONDS_PER_SECOND; ffc2ff04: 7d 80 49 d6 mullw r12,r0,r9 void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { ffc2ff08: 93 a1 00 0c stw r29,12(r1) /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; ffc2ff0c: 7d 60 48 16 mulhwu r11,r0,r9 void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { ffc2ff10: 93 c1 00 10 stw r30,16(r1) /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; ffc2ff14: 7c 00 51 d6 mullw r0,r0,r10 t += time->tv_nsec; ffc2ff18: 81 43 00 04 lwz r10,4(r3) ffc2ff1c: 7d 49 fe 70 srawi r9,r10,31 /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ t = time->tv_sec; t *= TOD_NANOSECONDS_PER_SECOND; ffc2ff20: 7d 60 5a 14 add r11,r0,r11 /* * Divide to get nanoseconds per iteration */ t /= iterations; ffc2ff24: 7c 8c 50 14 addc r4,r12,r10 ffc2ff28: 7c 6b 49 14 adde r3,r11,r9 ffc2ff2c: 38 a0 00 00 li r5,0 ffc2ff30: 48 03 19 65 bl ffc61894 <__udivdi3> <== ALWAYS TAKEN /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; ffc2ff34: 3c c0 3b 9a lis r6,15258 ffc2ff38: 38 a0 00 00 li r5,0 ffc2ff3c: 60 c6 ca 00 ori r6,r6,51712 /* * Divide to get nanoseconds per iteration */ t /= iterations; ffc2ff40: 7c 7d 1b 78 mr r29,r3 ffc2ff44: 7c 9e 23 78 mr r30,r4 /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; ffc2ff48: 48 03 19 4d bl ffc61894 <__udivdi3> <== ALWAYS TAKEN ffc2ff4c: 90 9f 00 00 stw r4,0(r31) result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; ffc2ff50: 3c c0 3b 9a lis r6,15258 ffc2ff54: 7f a3 eb 78 mr r3,r29 ffc2ff58: 7f c4 f3 78 mr r4,r30 ffc2ff5c: 38 a0 00 00 li r5,0 ffc2ff60: 60 c6 ca 00 ori r6,r6,51712 ffc2ff64: 48 03 1d 0d bl ffc61c70 <__umoddi3> <== ALWAYS TAKEN } ffc2ff68: 80 01 00 1c lwz r0,28(r1) /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; ffc2ff6c: 90 9f 00 04 stw r4,4(r31) } ffc2ff70: 7c 08 03 a6 mtlr r0 ffc2ff74: 83 a1 00 0c lwz r29,12(r1) ffc2ff78: 83 c1 00 10 lwz r30,16(r1) ffc2ff7c: 83 e1 00 14 lwz r31,20(r1) ffc2ff80: 38 21 00 18 addi r1,r1,24 ffc2ff84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f078 <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); ffc0f078: 3d 20 00 00 lis r9,0 ffc0f07c: 80 09 20 ac lwz r0,8364(r9) ffc0f080: 7c 63 01 d6 mullw r3,r3,r0 time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; ffc0f084: 3c 00 00 0f lis r0,15 ffc0f088: 60 00 42 40 ori r0,r0,16960 ffc0f08c: 7d 23 03 96 divwu r9,r3,r0 time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * ffc0f090: 7c 09 01 d6 mullw r0,r9,r0 { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; ffc0f094: 91 24 00 00 stw r9,0(r4) time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * ffc0f098: 7c 00 18 50 subf r0,r0,r3 ffc0f09c: 1c 00 03 e8 mulli r0,r0,1000 ffc0f0a0: 90 04 00 04 stw r0,4(r4) TOD_NANOSECONDS_PER_MICROSECOND; } ffc0f0a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc42520 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) ffc42520: 81 63 00 00 lwz r11,0(r3) bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { ffc42524: 7c 69 1b 78 mr r9,r3 if ( lhs->tv_sec > rhs->tv_sec ) ffc42528: 80 04 00 00 lwz r0,0(r4) ffc4252c: 38 60 00 01 li r3,1 ffc42530: 7f 8b 00 00 cmpw cr7,r11,r0 ffc42534: 4d 9d 00 20 bgtlr cr7 return true; if ( lhs->tv_sec < rhs->tv_sec ) ffc42538: 40 bc 00 0c bge+ cr7,ffc42544 <_Timespec_Greater_than+0x24> ffc4253c: 38 60 00 00 li r3,0 ffc42540: 4e 80 00 20 blr <== ALWAYS TAKEN #include #include #include bool _Timespec_Greater_than( ffc42544: 81 29 00 04 lwz r9,4(r9) ffc42548: 80 04 00 04 lwz r0,4(r4) ffc4254c: 7f 89 00 00 cmpw cr7,r9,r0 <== ALWAYS TAKEN ffc42550: 7c 60 00 26 mfcr r3 ffc42554: 54 63 f7 fe rlwinm r3,r3,30,31,31 /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } ffc42558: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b600 <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) ffc2b600: 2c 03 00 00 cmpwi r3,0 ffc2b604: 41 82 00 30 beq- ffc2b634 <_Timespec_Is_valid+0x34> return false; if ( time->tv_sec < 0 ) ffc2b608: 80 03 00 00 lwz r0,0(r3) ffc2b60c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b610: 41 9c 00 24 blt- cr7,ffc2b634 <_Timespec_Is_valid+0x34> return false; if ( time->tv_nsec < 0 ) ffc2b614: 80 03 00 04 lwz r0,4(r3) #include #include #include bool _Timespec_Is_valid( ffc2b618: 3c 60 3b 9a lis r3,15258 ffc2b61c: 60 63 c9 ff ori r3,r3,51711 return false; if ( time->tv_sec < 0 ) return false; if ( time->tv_nsec < 0 ) ffc2b620: 2f 80 00 00 cmpwi cr7,r0,0 #include #include #include bool _Timespec_Is_valid( ffc2b624: 7c 60 18 10 subfc r3,r0,r3 ffc2b628: 38 60 00 00 li r3,0 ffc2b62c: 7c 63 19 14 adde r3,r3,r3 return false; if ( time->tv_sec < 0 ) return false; if ( time->tv_nsec < 0 ) ffc2b630: 4c bc 00 20 bgelr+ cr7 #include #include #include bool _Timespec_Is_valid( ffc2b634: 38 60 00 00 li r3,0 if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } ffc2b638: 4e 80 00 20 blr <== ALWAYS TAKEN ffc4255c <_Timespec_Less_than>: bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec < rhs->tv_sec ) ffc4255c: 81 63 00 00 lwz r11,0(r3) bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { ffc42560: 7c 69 1b 78 mr r9,r3 if ( lhs->tv_sec < rhs->tv_sec ) ffc42564: 80 04 00 00 lwz r0,0(r4) ffc42568: 38 60 00 01 li r3,1 ffc4256c: 7f 8b 00 00 cmpw cr7,r11,r0 ffc42570: 4d 9c 00 20 bltlr cr7 return true; if ( lhs->tv_sec > rhs->tv_sec ) ffc42574: 40 bd 00 0c ble+ cr7,ffc42580 <_Timespec_Less_than+0x24> ffc42578: 38 60 00 00 li r3,0 ffc4257c: 4e 80 00 20 blr <== ALWAYS TAKEN #include #include #include bool _Timespec_Less_than( ffc42580: 81 29 00 04 lwz r9,4(r9) ffc42584: 80 04 00 04 lwz r0,4(r4) ffc42588: 7f 89 00 00 cmpw cr7,r9,r0 ffc4258c: 7c 60 00 26 mfcr r3 ffc42590: 54 63 ef fe rlwinm r3,r3,29,31,31 /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec < rhs->tv_nsec ) return true; return false; } ffc42594: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b3fc <_Timespec_Subtract>: const struct timespec *end, struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { ffc0b3fc: 81 24 00 04 lwz r9,4(r4) ffc0b400: 80 03 00 04 lwz r0,4(r3) <== ALWAYS TAKEN ffc0b404: 81 44 00 00 lwz r10,0(r4) ffc0b408: 7f 89 00 00 cmpw cr7,r9,r0 ffc0b40c: 81 63 00 00 lwz r11,0(r3) ffc0b410: 40 bc 00 10 bge+ cr7,ffc0b420 <_Timespec_Subtract+0x24> result->tv_sec = end->tv_sec - start->tv_sec - 1; result->tv_nsec = ffc0b414: 3d 29 3b 9b addis r9,r9,15259 struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; ffc0b418: 39 4a ff ff addi r10,r10,-1 result->tv_nsec = ffc0b41c: 39 29 ca 00 addi r9,r9,-13824 (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; } else { result->tv_sec = end->tv_sec - start->tv_sec; ffc0b420: 7d 6b 50 50 subf r11,r11,r10 result->tv_nsec = end->tv_nsec - start->tv_nsec; ffc0b424: 7c 00 48 50 subf r0,r0,r9 if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; result->tv_nsec = (TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec; } else { result->tv_sec = end->tv_sec - start->tv_sec; ffc0b428: 91 65 00 00 stw r11,0(r5) result->tv_nsec = end->tv_nsec - start->tv_nsec; ffc0b42c: 90 05 00 04 stw r0,4(r5) ffc0b430: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f0a8 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { ffc0f0a8: 94 21 ff f0 stwu r1,-16(r1) ffc0f0ac: 7c 08 02 a6 mflr r0 ffc0f0b0: 90 01 00 14 stw r0,20(r1) ffc0f0b4: 93 c1 00 08 stw r30,8(r1) uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) ffc0f0b8: 83 c3 00 00 lwz r30,0(r3) */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { ffc0f0bc: 93 e1 00 0c stw r31,12(r1) ffc0f0c0: 7c 7f 1b 78 mr r31,r3 uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) ffc0f0c4: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0f0c8: 40 9e 00 14 bne- cr7,ffc0f0dc <_Timespec_To_ticks+0x34> ffc0f0cc: 80 03 00 04 lwz r0,4(r3) ffc0f0d0: 38 60 00 00 li r3,0 ffc0f0d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f0d8: 41 9e 00 2c beq- cr7,ffc0f104 <_Timespec_To_ticks+0x5c> return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; ffc0f0dc: 48 00 1d cd bl ffc10ea8 <== ALWAYS TAKEN ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); ffc0f0e0: 3d 20 00 00 lis r9,0 ffc0f0e4: 80 09 20 ac lwz r0,8364(r9) uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; ffc0f0e8: 7c 63 f1 d6 mullw r3,r3,r30 ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); ffc0f0ec: 81 3f 00 04 lwz r9,4(r31) <== ALWAYS TAKEN ffc0f0f0: 1c 00 03 e8 mulli r0,r0,1000 ffc0f0f4: 7c 09 03 96 divwu r0,r9,r0 if (ticks) ffc0f0f8: 7c 63 02 15 add. r3,r3,r0 ffc0f0fc: 40 a2 00 08 bne+ ffc0f104 <_Timespec_To_ticks+0x5c> ffc0f100: 38 60 00 01 li r3,1 return ticks; return 1; } ffc0f104: 80 01 00 14 lwz r0,20(r1) ffc0f108: 83 c1 00 08 lwz r30,8(r1) ffc0f10c: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0f110: 83 e1 00 0c lwz r31,12(r1) ffc0f114: 38 21 00 10 addi r1,r1,16 ffc0f118: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f11c <_User_extensions_Add_set>: #include void _User_extensions_Add_set( User_extensions_Control *the_extension ) { ffc0f11c: 94 21 ff f0 stwu r1,-16(r1) ffc0f120: 7c 08 02 a6 mflr r0 ffc0f124: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc0f128: 7c 7f 1b 78 mr r31,r3 _Chain_Append( &_User_extensions_List, &the_extension->Node ); ffc0f12c: 3c 60 00 00 lis r3,0 ffc0f130: 38 63 2e 20 addi r3,r3,11808 #include void _User_extensions_Add_set( User_extensions_Control *the_extension ) { ffc0f134: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN _Chain_Append( &_User_extensions_List, &the_extension->Node ); ffc0f138: 7f e4 fb 78 mr r4,r31 ffc0f13c: 4b ff 97 4d bl ffc08888 <_Chain_Append> <== ALWAYS TAKEN /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { ffc0f140: 80 1f 00 24 lwz r0,36(r31) <== ALWAYS TAKEN ffc0f144: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f148: 41 9e 00 18 beq- cr7,ffc0f160 <_User_extensions_Add_set+0x44> the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; _Chain_Append( ffc0f14c: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { the_extension->Switch.thread_switch = ffc0f150: 90 1f 00 10 stw r0,16(r31) <== ALWAYS TAKEN the_extension->Callouts.thread_switch; _Chain_Append( ffc0f154: 38 63 2c 94 addi r3,r3,11412 <== ALWAYS TAKEN ffc0f158: 38 9f 00 08 addi r4,r31,8 ffc0f15c: 4b ff 97 2d bl ffc08888 <_Chain_Append> <== ALWAYS TAKEN &_User_extensions_Switches_list, &the_extension->Switch.Node ); } } ffc0f160: 80 01 00 14 lwz r0,20(r1) ffc0f164: 83 e1 00 0c lwz r31,12(r1) ffc0f168: 38 21 00 10 addi r1,r1,16 ffc0f16c: 7c 08 03 a6 mtlr r0 ffc0f170: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b620 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc0b620: 94 21 ff e0 stwu r1,-32(r1) ffc0b624: 7c 08 02 a6 mflr r0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b628: 3d 20 00 00 lis r9,0 void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc0b62c: 90 01 00 24 stw r0,36(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b630: 39 29 2e 20 addi r9,r9,11808 void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc0b634: 93 61 00 0c stw r27,12(r1) ffc0b638: 7c 7b 1b 78 mr r27,r3 ffc0b63c: 93 81 00 10 stw r28,16(r1) <== ALWAYS TAKEN ffc0b640: 7c 9c 23 78 mr r28,r4 ffc0b644: 93 a1 00 14 stw r29,20(r1) ffc0b648: 7c bd 2b 78 mr r29,r5 ffc0b64c: 93 c1 00 18 stw r30,24(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b650: 7d 3e 4b 78 mr r30,r9 void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc0b654: 93 e1 00 1c stw r31,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b658: 83 e9 00 08 lwz r31,8(r9) ffc0b65c: 48 00 00 1c b ffc0b678 <_User_extensions_Fatal+0x58> <== ALWAYS TAKEN !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) ffc0b660: 80 1f 00 30 lwz r0,48(r31) ffc0b664: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b668: 41 9e 00 0c beq- cr7,ffc0b674 <_User_extensions_Fatal+0x54> (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); ffc0b66c: 7c 09 03 a6 mtctr r0 ffc0b670: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { ffc0b674: 83 ff 00 04 lwz r31,4(r31) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b678: 7f 9f f0 00 cmpw cr7,r31,r30 the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); ffc0b67c: 7f 63 db 78 mr r3,r27 ffc0b680: 7f 84 e3 78 mr r4,r28 ffc0b684: 7f a5 eb 78 mr r5,r29 { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b688: 40 9e ff d8 bne+ cr7,ffc0b660 <_User_extensions_Fatal+0x40> the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.fatal != NULL ) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); } } ffc0b68c: 80 01 00 24 lwz r0,36(r1) ffc0b690: 83 61 00 0c lwz r27,12(r1) ffc0b694: 7c 08 03 a6 mtlr r0 ffc0b698: 83 81 00 10 lwz r28,16(r1) ffc0b69c: 83 a1 00 14 lwz r29,20(r1) ffc0b6a0: 83 c1 00 18 lwz r30,24(r1) ffc0b6a4: 83 e1 00 1c lwz r31,28(r1) ffc0b6a8: 38 21 00 20 addi r1,r1,32 ffc0b6ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b434 <_User_extensions_Handler_initialization>: #include #include #include void _User_extensions_Handler_initialization(void) { ffc0b434: 94 21 ff e8 stwu r1,-24(r1) <== ALWAYS TAKEN ffc0b438: 7c 08 02 a6 mflr r0 User_extensions_Control *extension; uint32_t i; uint32_t number_of_extensions; User_extensions_Table *initial_extensions; number_of_extensions = Configuration.number_of_initial_extensions; ffc0b43c: 3d 40 00 00 lis r10,0 #include #include #include void _User_extensions_Handler_initialization(void) { ffc0b440: 90 01 00 1c stw r0,28(r1) User_extensions_Control *extension; uint32_t i; uint32_t number_of_extensions; User_extensions_Table *initial_extensions; number_of_extensions = Configuration.number_of_initial_extensions; ffc0b444: 39 4a 20 a0 addi r10,r10,8352 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0b448: 3c e0 00 00 lis r7,0 #include #include #include void _User_extensions_Handler_initialization(void) { ffc0b44c: 93 a1 00 0c stw r29,12(r1) ffc0b450: 3d 00 00 00 lis r8,0 ffc0b454: 39 27 2e 20 addi r9,r7,11808 uint32_t i; uint32_t number_of_extensions; User_extensions_Table *initial_extensions; number_of_extensions = Configuration.number_of_initial_extensions; initial_extensions = Configuration.User_extension_table; ffc0b458: 83 aa 00 3c lwz r29,60(r10) <== ALWAYS TAKEN ffc0b45c: 39 68 2c 94 addi r11,r8,11412 the_chain->permanent_null = NULL; ffc0b460: 38 00 00 00 li r0,0 #include #include #include void _User_extensions_Handler_initialization(void) { ffc0b464: 93 c1 00 10 stw r30,16(r1) initial_extensions = Configuration.User_extension_table; _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { ffc0b468: 2f 9d 00 00 cmpwi cr7,r29,0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0b46c: 38 a9 00 04 addi r5,r9,4 #include #include #include void _User_extensions_Handler_initialization(void) { ffc0b470: 93 81 00 08 stw r28,8(r1) ffc0b474: 38 cb 00 04 addi r6,r11,4 ffc0b478: 93 e1 00 14 stw r31,20(r1) ffc0b47c: 90 a7 2e 20 stw r5,11808(r7) ffc0b480: 90 c8 2c 94 stw r6,11412(r8) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0b484: 91 29 00 08 stw r9,8(r9) <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc0b488: 90 0b 00 04 stw r0,4(r11) the_chain->last = _Chain_Head(the_chain); ffc0b48c: 91 6b 00 08 stw r11,8(r11) <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc0b490: 90 09 00 04 stw r0,4(r9) User_extensions_Control *extension; uint32_t i; uint32_t number_of_extensions; User_extensions_Table *initial_extensions; number_of_extensions = Configuration.number_of_initial_extensions; ffc0b494: 83 ca 00 38 lwz r30,56(r10) initial_extensions = Configuration.User_extension_table; _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { ffc0b498: 41 9e 00 88 beq- cr7,ffc0b520 <_User_extensions_Handler_initialization+0xec> extension = (User_extensions_Control *) _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ffc0b49c: 1f 9e 00 34 mulli r28,r30,52 _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { extension = (User_extensions_Control *) ffc0b4a0: 7f 83 e3 78 mr r3,r28 ffc0b4a4: 48 00 06 f5 bl ffc0bb98 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( ffc0b4a8: 7f 85 e3 78 mr r5,r28 ffc0b4ac: 38 80 00 00 li r4,0 _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { extension = (User_extensions_Control *) ffc0b4b0: 7c 7f 1b 78 mr r31,r3 _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( ffc0b4b4: 48 00 74 41 bl ffc128f4 <== ALWAYS TAKEN ffc0b4b8: 3b 80 00 00 li r28,0 extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { ffc0b4bc: 48 00 00 4c b ffc0b508 <_User_extensions_Handler_initialization+0xd4> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; ffc0b4c0: 7d 09 00 6e lwzux r8,r9,r0 ffc0b4c4: 81 49 00 04 lwz r10,4(r9) ffc0b4c8: 81 69 00 08 lwz r11,8(r9) ffc0b4cc: 80 09 00 0c lwz r0,12(r9) ffc0b4d0: 91 1f 00 14 stw r8,20(r31) ffc0b4d4: 91 5f 00 18 stw r10,24(r31) ffc0b4d8: 91 7f 00 1c stw r11,28(r31) ffc0b4dc: 90 1f 00 20 stw r0,32(r31) <== ALWAYS TAKEN ffc0b4e0: 80 09 00 1c lwz r0,28(r9) ffc0b4e4: 81 49 00 10 lwz r10,16(r9) ffc0b4e8: 81 69 00 14 lwz r11,20(r9) ffc0b4ec: 81 29 00 18 lwz r9,24(r9) <== ALWAYS TAKEN ffc0b4f0: 91 5f 00 24 stw r10,36(r31) ffc0b4f4: 91 7f 00 28 stw r11,40(r31) ffc0b4f8: 91 3f 00 2c stw r9,44(r31) ffc0b4fc: 90 1f 00 30 stw r0,48(r31) _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; ffc0b500: 3b ff 00 34 addi r31,r31,52 _User_extensions_Add_set( extension ); ffc0b504: 48 00 3c 19 bl ffc0f11c <_User_extensions_Add_set> <== ALWAYS TAKEN extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { ffc0b508: 7f 9c f0 40 cmplw cr7,r28,r30 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; ffc0b50c: 57 80 28 34 rlwinm r0,r28,5,0,26 ffc0b510: 7f a9 eb 78 mr r9,r29 _User_extensions_Add_set( extension ); ffc0b514: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0b518: 3b 9c 00 01 addi r28,r28,1 ffc0b51c: 41 9c ff a4 blt+ cr7,ffc0b4c0 <_User_extensions_Handler_initialization+0x8c> _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; } } } ffc0b520: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc0b524: 83 81 00 08 lwz r28,8(r1) ffc0b528: 7c 08 03 a6 mtlr r0 ffc0b52c: 83 a1 00 0c lwz r29,12(r1) <== ALWAYS TAKEN ffc0b530: 83 c1 00 10 lwz r30,16(r1) ffc0b534: 83 e1 00 14 lwz r31,20(r1) ffc0b538: 38 21 00 18 addi r1,r1,24 <== ALWAYS TAKEN ffc0b53c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10520 <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { ffc10520: 94 21 ff f0 stwu r1,-16(r1) ffc10524: 7c 08 02 a6 mflr r0 ffc10528: 93 e1 00 0c stw r31,12(r1) ffc1052c: 7c 7f 1b 78 mr r31,r3 ffc10530: 90 01 00 14 stw r0,20(r1) _Chain_Extract( &the_extension->Node ); ffc10534: 48 00 65 01 bl ffc16a34 <_Chain_Extract> <== ALWAYS TAKEN /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) ffc10538: 80 1f 00 24 lwz r0,36(r31) ffc1053c: 2f 80 00 00 cmpwi cr7,r0,0 ffc10540: 41 9e 00 0c beq- cr7,ffc1054c <_User_extensions_Remove_set+0x2c> _Chain_Extract( &the_extension->Switch.Node ); ffc10544: 38 7f 00 08 addi r3,r31,8 ffc10548: 48 00 64 ed bl ffc16a34 <_Chain_Extract> <== ALWAYS TAKEN } ffc1054c: 80 01 00 14 lwz r0,20(r1) ffc10550: 83 e1 00 0c lwz r31,12(r1) ffc10554: 38 21 00 10 addi r1,r1,16 ffc10558: 7c 08 03 a6 mtlr r0 ffc1055c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b540 <_User_extensions_Thread_begin>: #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { ffc0b540: 94 21 ff e8 stwu r1,-24(r1) ffc0b544: 7c 08 02 a6 mflr r0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0b548: 3d 20 00 00 lis r9,0 #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { ffc0b54c: 93 c1 00 10 stw r30,16(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0b550: 3f c0 00 00 lis r30,0 ffc0b554: 3b de 2e 24 addi r30,r30,11812 ffc0b558: 93 a1 00 0c stw r29,12(r1) ffc0b55c: 7c 7d 1b 78 mr r29,r3 ffc0b560: 93 e1 00 14 stw r31,20(r1) ffc0b564: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0b568: 83 e9 2e 20 lwz r31,11808(r9) <== ALWAYS TAKEN ffc0b56c: 48 00 00 1c b ffc0b588 <_User_extensions_Thread_begin+0x48> <== ALWAYS TAKEN !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) ffc0b570: 80 1f 00 28 lwz r0,40(r31) ffc0b574: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b578: 41 9e 00 0c beq- cr7,ffc0b584 <_User_extensions_Thread_begin+0x44> (*the_extension->Callouts.thread_begin)( executing ); ffc0b57c: 7c 09 03 a6 mtctr r0 ffc0b580: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { ffc0b584: 83 ff 00 00 lwz r31,0(r31) <== ALWAYS TAKEN ffc0b588: 7f 9f f0 00 cmpw cr7,r31,r30 the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) (*the_extension->Callouts.thread_begin)( executing ); ffc0b58c: 7f a3 eb 78 mr r3,r29 ffc0b590: 40 9e ff e0 bne+ cr7,ffc0b570 <_User_extensions_Thread_begin+0x30> } } ffc0b594: 80 01 00 1c lwz r0,28(r1) ffc0b598: 83 a1 00 0c lwz r29,12(r1) <== ALWAYS TAKEN ffc0b59c: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0b5a0: 83 c1 00 10 lwz r30,16(r1) ffc0b5a4: 83 e1 00 14 lwz r31,20(r1) ffc0b5a8: 38 21 00 18 addi r1,r1,24 ffc0b5ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b6b0 <_User_extensions_Thread_create>: #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { ffc0b6b0: 94 21 ff e8 stwu r1,-24(r1) ffc0b6b4: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; ffc0b6b8: 3d 20 00 00 lis r9,0 #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { ffc0b6bc: 93 a1 00 0c stw r29,12(r1) ffc0b6c0: 3f a0 00 00 lis r29,0 ffc0b6c4: 3b bd 2e 24 addi r29,r29,11812 ffc0b6c8: 93 c1 00 10 stw r30,16(r1) the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { status = (*the_extension->Callouts.thread_create)( ffc0b6cc: 3f c0 00 00 lis r30,0 ffc0b6d0: 3b de 27 b0 addi r30,r30,10160 #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { ffc0b6d4: 93 81 00 08 stw r28,8(r1) ffc0b6d8: 7c 7c 1b 78 mr r28,r3 ffc0b6dc: 93 e1 00 14 stw r31,20(r1) ffc0b6e0: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; ffc0b6e4: 83 e9 2e 20 lwz r31,11808(r9) <== ALWAYS TAKEN ffc0b6e8: 48 00 00 28 b ffc0b710 <_User_extensions_Thread_create+0x60> <== ALWAYS TAKEN !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { ffc0b6ec: 80 1f 00 14 lwz r0,20(r31) ffc0b6f0: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc0b6f4: 41 9e 00 18 beq- cr7,ffc0b70c <_User_extensions_Thread_create+0x5c> status = (*the_extension->Callouts.thread_create)( ffc0b6f8: 80 7e 00 00 lwz r3,0(r30) ffc0b6fc: 7c 09 03 a6 mtctr r0 ffc0b700: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Thread_Executing, the_thread ); if ( !status ) ffc0b704: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b708: 41 9e 00 18 beq- cr7,ffc0b720 <_User_extensions_Thread_create+0x70> User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { ffc0b70c: 83 ff 00 00 lwz r31,0(r31) ffc0b710: 7f 9f e8 00 cmpw cr7,r31,r29 the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_create != NULL ) { status = (*the_extension->Callouts.thread_create)( ffc0b714: 7f 84 e3 78 mr r4,r28 ffc0b718: 40 9e ff d4 bne+ cr7,ffc0b6ec <_User_extensions_Thread_create+0x3c> ffc0b71c: 38 60 00 01 li r3,1 return false; } } return true; } ffc0b720: 80 01 00 1c lwz r0,28(r1) ffc0b724: 83 81 00 08 lwz r28,8(r1) ffc0b728: 7c 08 03 a6 mtlr r0 ffc0b72c: 83 a1 00 0c lwz r29,12(r1) ffc0b730: 83 c1 00 10 lwz r30,16(r1) ffc0b734: 83 e1 00 14 lwz r31,20(r1) ffc0b738: 38 21 00 18 addi r1,r1,24 ffc0b73c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b740 <_User_extensions_Thread_delete>: #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0b740: 94 21 ff e8 stwu r1,-24(r1) ffc0b744: 7c 08 02 a6 mflr r0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b748: 3d 20 00 00 lis r9,0 #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0b74c: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b750: 39 29 2e 20 addi r9,r9,11808 #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0b754: 93 c1 00 10 stw r30,16(r1) the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) (*the_extension->Callouts.thread_delete)( ffc0b758: 3f c0 00 00 lis r30,0 ffc0b75c: 3b de 27 b0 addi r30,r30,10160 #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0b760: 93 81 00 08 stw r28,8(r1) ffc0b764: 7c 7c 1b 78 mr r28,r3 ffc0b768: 93 a1 00 0c stw r29,12(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b76c: 7d 3d 4b 78 mr r29,r9 #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0b770: 93 e1 00 14 stw r31,20(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b774: 83 e9 00 08 lwz r31,8(r9) ffc0b778: 48 00 00 20 b ffc0b798 <_User_extensions_Thread_delete+0x58> <== ALWAYS TAKEN !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) ffc0b77c: 80 1f 00 20 lwz r0,32(r31) ffc0b780: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc0b784: 41 9e 00 10 beq- cr7,ffc0b794 <_User_extensions_Thread_delete+0x54> (*the_extension->Callouts.thread_delete)( ffc0b788: 80 7e 00 00 lwz r3,0(r30) <== ALWAYS TAKEN ffc0b78c: 7c 09 03 a6 mtctr r0 ffc0b790: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { ffc0b794: 83 ff 00 04 lwz r31,4(r31) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b798: 7f 9f e8 00 cmpw cr7,r31,r29 the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) (*the_extension->Callouts.thread_delete)( ffc0b79c: 7f 84 e3 78 mr r4,r28 { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b7a0: 40 9e ff dc bne+ cr7,ffc0b77c <_User_extensions_Thread_delete+0x3c> (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } ffc0b7a4: 80 01 00 1c lwz r0,28(r1) ffc0b7a8: 83 81 00 08 lwz r28,8(r1) ffc0b7ac: 7c 08 03 a6 mtlr r0 ffc0b7b0: 83 a1 00 0c lwz r29,12(r1) ffc0b7b4: 83 c1 00 10 lwz r30,16(r1) ffc0b7b8: 83 e1 00 14 lwz r31,20(r1) ffc0b7bc: 38 21 00 18 addi r1,r1,24 ffc0b7c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b5b0 <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) { ffc0b5b0: 94 21 ff e8 stwu r1,-24(r1) ffc0b5b4: 7c 08 02 a6 mflr r0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b5b8: 3d 20 00 00 lis r9,0 } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { ffc0b5bc: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b5c0: 39 29 2e 20 addi r9,r9,11808 } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { ffc0b5c4: 93 a1 00 0c stw r29,12(r1) ffc0b5c8: 7c 7d 1b 78 mr r29,r3 ffc0b5cc: 93 c1 00 10 stw r30,16(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b5d0: 7d 3e 4b 78 mr r30,r9 } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { ffc0b5d4: 93 e1 00 14 stw r31,20(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0b5d8: 83 e9 00 08 lwz r31,8(r9) ffc0b5dc: 48 00 00 1c b ffc0b5f8 <_User_extensions_Thread_exitted+0x48> <== ALWAYS TAKEN !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) ffc0b5e0: 80 1f 00 2c lwz r0,44(r31) ffc0b5e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b5e8: 41 9e 00 0c beq- cr7,ffc0b5f4 <_User_extensions_Thread_exitted+0x44> (*the_extension->Callouts.thread_exitted)( executing ); ffc0b5ec: 7c 09 03 a6 mtctr r0 ffc0b5f0: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; the_node = the_node->previous ) { ffc0b5f4: 83 ff 00 04 lwz r31,4(r31) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b5f8: 7f 9f f0 00 cmpw cr7,r31,r30 the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) (*the_extension->Callouts.thread_exitted)( executing ); ffc0b5fc: 7f a3 eb 78 mr r3,r29 { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; !_Chain_Is_head( &_User_extensions_List, the_node ) ; ffc0b600: 40 9e ff e0 bne+ cr7,ffc0b5e0 <_User_extensions_Thread_exitted+0x30> the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_exitted != NULL ) (*the_extension->Callouts.thread_exitted)( executing ); } } ffc0b604: 80 01 00 1c lwz r0,28(r1) ffc0b608: 83 a1 00 0c lwz r29,12(r1) ffc0b60c: 7c 08 03 a6 mtlr r0 ffc0b610: 83 c1 00 10 lwz r30,16(r1) ffc0b614: 83 e1 00 14 lwz r31,20(r1) ffc0b618: 38 21 00 18 addi r1,r1,24 ffc0b61c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c87c <_User_extensions_Thread_restart>: #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { ffc0c87c: 94 21 ff e8 stwu r1,-24(r1) ffc0c880: 7c 08 02 a6 mflr r0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c884: 3d 20 00 00 lis r9,0 #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { ffc0c888: 93 a1 00 0c stw r29,12(r1) ffc0c88c: 3f a0 00 00 lis r29,0 ffc0c890: 3b bd 2e 84 addi r29,r29,11908 ffc0c894: 93 c1 00 10 stw r30,16(r1) the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) (*the_extension->Callouts.thread_restart)( ffc0c898: 3f c0 00 00 lis r30,0 ffc0c89c: 3b de 27 fc addi r30,r30,10236 #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { ffc0c8a0: 93 81 00 08 stw r28,8(r1) ffc0c8a4: 7c 7c 1b 78 mr r28,r3 ffc0c8a8: 93 e1 00 14 stw r31,20(r1) ffc0c8ac: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c8b0: 83 e9 2e 80 lwz r31,11904(r9) ffc0c8b4: 48 00 00 20 b ffc0c8d4 <_User_extensions_Thread_restart+0x58> <== ALWAYS TAKEN !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) ffc0c8b8: 80 1f 00 1c lwz r0,28(r31) ffc0c8bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c8c0: 41 9e 00 10 beq- cr7,ffc0c8d0 <_User_extensions_Thread_restart+0x54> (*the_extension->Callouts.thread_restart)( ffc0c8c4: 80 7e 00 00 lwz r3,0(r30) <== ALWAYS TAKEN ffc0c8c8: 7c 09 03 a6 mtctr r0 ffc0c8cc: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { ffc0c8d0: 83 ff 00 00 lwz r31,0(r31) ffc0c8d4: 7f 9f e8 00 cmpw cr7,r31,r29 the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) (*the_extension->Callouts.thread_restart)( ffc0c8d8: 7f 84 e3 78 mr r4,r28 ffc0c8dc: 40 9e ff dc bne+ cr7,ffc0c8b8 <_User_extensions_Thread_restart+0x3c> _Thread_Executing, the_thread ); } } ffc0c8e0: 80 01 00 1c lwz r0,28(r1) ffc0c8e4: 83 81 00 08 lwz r28,8(r1) ffc0c8e8: 7c 08 03 a6 mtlr r0 ffc0c8ec: 83 a1 00 0c lwz r29,12(r1) ffc0c8f0: 83 c1 00 10 lwz r30,16(r1) ffc0c8f4: 83 e1 00 14 lwz r31,20(r1) ffc0c8f8: 38 21 00 18 addi r1,r1,24 ffc0c8fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b7c4 <_User_extensions_Thread_start>: #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { ffc0b7c4: 94 21 ff e8 stwu r1,-24(r1) ffc0b7c8: 7c 08 02 a6 mflr r0 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0b7cc: 3d 20 00 00 lis r9,0 #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { ffc0b7d0: 93 a1 00 0c stw r29,12(r1) ffc0b7d4: 3f a0 00 00 lis r29,0 ffc0b7d8: 3b bd 2e 24 addi r29,r29,11812 ffc0b7dc: 93 c1 00 10 stw r30,16(r1) the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_start != NULL ) (*the_extension->Callouts.thread_start)( ffc0b7e0: 3f c0 00 00 lis r30,0 ffc0b7e4: 3b de 27 b0 addi r30,r30,10160 #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { ffc0b7e8: 93 81 00 08 stw r28,8(r1) ffc0b7ec: 7c 7c 1b 78 mr r28,r3 ffc0b7f0: 93 e1 00 14 stw r31,20(r1) ffc0b7f4: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0b7f8: 83 e9 2e 20 lwz r31,11808(r9) ffc0b7fc: 48 00 00 20 b ffc0b81c <_User_extensions_Thread_start+0x58> <== ALWAYS TAKEN !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_start != NULL ) ffc0b800: 80 1f 00 18 lwz r0,24(r31) ffc0b804: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc0b808: 41 9e 00 10 beq- cr7,ffc0b818 <_User_extensions_Thread_start+0x54> (*the_extension->Callouts.thread_start)( ffc0b80c: 80 7e 00 00 lwz r3,0(r30) ffc0b810: 7c 09 03 a6 mtctr r0 ffc0b814: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; !_Chain_Is_tail( &_User_extensions_List, the_node ) ; the_node = the_node->next ) { ffc0b818: 83 ff 00 00 lwz r31,0(r31) ffc0b81c: 7f 9f e8 00 cmpw cr7,r31,r29 the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_start != NULL ) (*the_extension->Callouts.thread_start)( ffc0b820: 7f 84 e3 78 mr r4,r28 <== ALWAYS TAKEN ffc0b824: 40 9e ff dc bne+ cr7,ffc0b800 <_User_extensions_Thread_start+0x3c> _Thread_Executing, the_thread ); } } ffc0b828: 80 01 00 1c lwz r0,28(r1) ffc0b82c: 83 81 00 08 lwz r28,8(r1) ffc0b830: 7c 08 03 a6 mtlr r0 ffc0b834: 83 a1 00 0c lwz r29,12(r1) ffc0b838: 83 c1 00 10 lwz r30,16(r1) ffc0b83c: 83 e1 00 14 lwz r31,20(r1) ffc0b840: 38 21 00 18 addi r1,r1,24 ffc0b844: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b848 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { ffc0b848: 94 21 ff e8 stwu r1,-24(r1) ffc0b84c: 7c 08 02 a6 mflr r0 Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; ffc0b850: 3d 20 00 00 lis r9,0 void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { ffc0b854: 93 c1 00 10 stw r30,16(r1) ffc0b858: 3f c0 00 00 lis r30,0 ffc0b85c: 3b de 2c 98 addi r30,r30,11416 ffc0b860: 93 81 00 08 stw r28,8(r1) ffc0b864: 7c 7c 1b 78 mr r28,r3 ffc0b868: 93 a1 00 0c stw r29,12(r1) ffc0b86c: 7c 9d 23 78 mr r29,r4 ffc0b870: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN ffc0b874: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; ffc0b878: 83 e9 2c 94 lwz r31,11412(r9) ffc0b87c: 48 00 00 14 b ffc0b890 <_User_extensions_Thread_switch+0x48> <== ALWAYS TAKEN !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); ffc0b880: 80 1f 00 08 lwz r0,8(r31) <== ALWAYS TAKEN ffc0b884: 7c 09 03 a6 mtctr r0 ffc0b888: 4e 80 04 21 bctrl <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ; the_node = the_node->next ) { ffc0b88c: 83 ff 00 00 lwz r31,0(r31) ffc0b890: 7f 9f f0 00 cmpw cr7,r31,r30 the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); ffc0b894: 7f 83 e3 78 mr r3,r28 ffc0b898: 7f a4 eb 78 mr r4,r29 ffc0b89c: 40 9e ff e4 bne+ cr7,ffc0b880 <_User_extensions_Thread_switch+0x38> } } ffc0b8a0: 80 01 00 1c lwz r0,28(r1) ffc0b8a4: 83 81 00 08 lwz r28,8(r1) ffc0b8a8: 7c 08 03 a6 mtlr r0 ffc0b8ac: 83 a1 00 0c lwz r29,12(r1) ffc0b8b0: 83 c1 00 10 lwz r30,16(r1) ffc0b8b4: 83 e1 00 14 lwz r31,20(r1) ffc0b8b8: 38 21 00 18 addi r1,r1,24 ffc0b8bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dd04 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { ffc0dd04: 94 21 ff e0 stwu r1,-32(r1) ffc0dd08: 7c 08 02 a6 mflr r0 ffc0dd0c: 90 01 00 24 stw r0,36(r1) ffc0dd10: 93 c1 00 18 stw r30,24(r1) ffc0dd14: 7c be 2b 78 mr r30,r5 ffc0dd18: 93 e1 00 1c stw r31,28(r1) ffc0dd1c: 7c 7f 1b 78 mr r31,r3 ffc0dd20: 93 61 00 0c stw r27,12(r1) ffc0dd24: 93 81 00 10 stw r28,16(r1) ffc0dd28: 93 a1 00 14 stw r29,20(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0dd2c: 7c 00 00 a6 mfmsr r0 <== ALWAYS TAKEN ffc0dd30: 7d 30 42 a6 mfsprg r9,0 <== ALWAYS TAKEN ffc0dd34: 7c 09 48 78 andc r9,r0,r9 ffc0dd38: 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)); ffc0dd3c: 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; ffc0dd40: 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 ) ) { ffc0dd44: 7f 89 e0 00 cmpw cr7,r9,r28 ffc0dd48: 41 9e 00 78 beq- cr7,ffc0ddc0 <_Watchdog_Adjust+0xbc> switch ( direction ) { ffc0dd4c: 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; ffc0dd50: 3b 60 00 01 li r27,1 * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { ffc0dd54: 41 9e 00 64 beq- cr7,ffc0ddb8 <_Watchdog_Adjust+0xb4> ffc0dd58: 2f 84 00 01 cmpwi cr7,r4,1 ffc0dd5c: 40 be 00 64 bne+ cr7,ffc0ddc0 <_Watchdog_Adjust+0xbc> <== NEVER TAKEN case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; ffc0dd60: 81 69 00 10 lwz r11,16(r9) ffc0dd64: 7f cb 2a 14 add r30,r11,r5 ffc0dd68: 48 00 00 18 b ffc0dd80 <_Watchdog_Adjust+0x7c> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); ffc0dd6c: 81 3f 00 00 lwz r9,0(r31) break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { ffc0dd70: 83 a9 00 10 lwz r29,16(r9) ffc0dd74: 7f 9e e8 40 cmplw cr7,r30,r29 ffc0dd78: 40 bc 00 10 bge+ cr7,ffc0dd88 <_Watchdog_Adjust+0x84> _Watchdog_First( header )->delta_interval -= units; ffc0dd7c: 7f de e8 50 subf r30,r30,r29 ffc0dd80: 93 c9 00 10 stw r30,16(r9) break; ffc0dd84: 48 00 00 3c b ffc0ddc0 <_Watchdog_Adjust+0xbc> <== ALWAYS TAKEN } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; ffc0dd88: 93 69 00 10 stw r27,16(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0dd8c: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); _Watchdog_Tickle( header ); ffc0dd90: 7f e3 fb 78 mr r3,r31 ffc0dd94: 48 00 02 59 bl ffc0dfec <_Watchdog_Tickle> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0dd98: 7c 00 00 a6 mfmsr r0 ffc0dd9c: 7d 30 42 a6 mfsprg r9,0 ffc0dda0: 7c 09 48 78 andc r9,r0,r9 ffc0dda4: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) ffc0dda8: 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; ffc0ddac: 7f dd f0 50 subf r30,r29,r30 _Watchdog_Tickle( header ); _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) ffc0ddb0: 7f 89 e0 00 cmpw cr7,r9,r28 ffc0ddb4: 41 9e 00 0c beq- cr7,ffc0ddc0 <_Watchdog_Adjust+0xbc> switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { ffc0ddb8: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0ddbc: 40 9e ff b0 bne+ cr7,ffc0dd6c <_Watchdog_Adjust+0x68> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ddc0: 7c 00 01 24 mtmsr r0 } } _ISR_Enable( level ); } ffc0ddc4: 80 01 00 24 lwz r0,36(r1) ffc0ddc8: 83 61 00 0c lwz r27,12(r1) ffc0ddcc: 7c 08 03 a6 mtlr r0 ffc0ddd0: 83 81 00 10 lwz r28,16(r1) ffc0ddd4: 83 a1 00 14 lwz r29,20(r1) ffc0ddd8: 83 c1 00 18 lwz r30,24(r1) ffc0dddc: 83 e1 00 1c lwz r31,28(r1) ffc0dde0: 38 21 00 20 addi r1,r1,32 ffc0dde4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e674 <_Watchdog_Adjust_to_chain>: { Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { ffc1e674: 2c 04 00 00 cmpwi r4,0 ffc1e678: 4d 82 00 20 beqlr static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1e67c: 7d 40 00 a6 mfmsr r10 ffc1e680: 7c 10 42 a6 mfsprg r0,0 ffc1e684: 7d 40 00 78 andc r0,r10,r0 ffc1e688: 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; ffc1e68c: 38 c0 00 00 li r6,0 ffc1e690: 39 03 00 04 addi r8,r3,4 ffc1e694: 39 85 00 04 addi r12,r5,4 ffc1e698: 48 00 00 0c b ffc1e6a4 <_Watchdog_Adjust_to_chain+0x30> <== ALWAYS TAKEN } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { ffc1e69c: 2f 84 00 00 cmpwi cr7,r4,0 ffc1e6a0: 41 9e 00 84 beq- cr7,ffc1e724 <_Watchdog_Adjust_to_chain+0xb0> */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc1e6a4: 81 63 00 00 lwz r11,0(r3) break; } if ( _Chain_Is_empty( header ) ) { ffc1e6a8: 7f 8b 40 00 cmpw cr7,r11,r8 ffc1e6ac: 41 9e 00 78 beq- cr7,ffc1e724 <_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 ) { ffc1e6b0: 80 0b 00 10 lwz r0,16(r11) ffc1e6b4: 7d 69 5b 78 mr r9,r11 ffc1e6b8: 7f 84 00 40 cmplw cr7,r4,r0 ffc1e6bc: 40 bc 00 10 bge+ cr7,ffc1e6cc <_Watchdog_Adjust_to_chain+0x58> first->delta_interval -= units; ffc1e6c0: 7c 84 00 50 subf r4,r4,r0 ffc1e6c4: 90 8b 00 10 stw r4,16(r11) break; ffc1e6c8: 48 00 00 5c b ffc1e724 <_Watchdog_Adjust_to_chain+0xb0> <== ALWAYS TAKEN /* * 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; ffc1e6cc: 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; ffc1e6d0: 7c 80 20 50 subf r4,r0,r4 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc1e6d4: 81 69 00 00 lwz r11,0(r9) previous = the_node->previous; ffc1e6d8: 80 e9 00 04 lwz r7,4(r9) next->previous = previous; previous->next = next; ffc1e6dc: 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; ffc1e6e0: 90 eb 00 04 stw r7,4(r11) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc1e6e4: 91 89 00 00 stw r12,0(r9) old_last_node = the_chain->last; ffc1e6e8: 81 65 00 08 lwz r11,8(r5) the_chain->last = the_node; ffc1e6ec: 91 25 00 08 stw r9,8(r5) old_last_node->next = the_node; the_node->previous = old_last_node; ffc1e6f0: 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; ffc1e6f4: 91 2b 00 00 stw r9,0(r11) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc1e6f8: 7c 00 00 a6 mfmsr r0 ffc1e6fc: 7d 40 01 24 mtmsr r10 ffc1e700: 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)); ffc1e704: 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 ) ) ffc1e708: 7f 80 40 00 cmpw cr7,r0,r8 ffc1e70c: 7c 09 03 78 mr r9,r0 ffc1e710: 41 be ff 8c beq- cr7,ffc1e69c <_Watchdog_Adjust_to_chain+0x28> break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) ffc1e714: 80 09 00 10 lwz r0,16(r9) ffc1e718: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e71c: 41 9e ff b8 beq+ cr7,ffc1e6d4 <_Watchdog_Adjust_to_chain+0x60> <== NEVER TAKEN ffc1e720: 4b ff ff 7c b ffc1e69c <_Watchdog_Adjust_to_chain+0x28> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1e724: 7d 40 01 24 mtmsr r10 ffc1e728: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b9c8 <_Watchdog_Handler_initialization>: */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0b9c8: 3d 40 00 00 lis r10,0 ffc0b9cc: 39 6a 2d 3c addi r11,r10,11580 ffc0b9d0: 38 eb 00 04 addi r7,r11,4 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0b9d4: 91 6b 00 08 stw r11,8(r11) * Output parameters: NONE */ void _Watchdog_Handler_initialization( void ) { _Watchdog_Sync_count = 0; ffc0b9d8: 38 00 00 00 li r0,0 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0b9dc: 3d 00 00 00 lis r8,0 <== ALWAYS TAKEN ffc0b9e0: 90 ea 2d 3c stw r7,11580(r10) <== ALWAYS TAKEN ffc0b9e4: 3d 40 00 00 lis r10,0 ffc0b9e8: 39 28 2d 48 addi r9,r8,11592 <== ALWAYS TAKEN ffc0b9ec: 90 0a 27 c4 stw r0,10180(r10) _Watchdog_Sync_level = 0; ffc0b9f0: 3d 40 00 00 lis r10,0 ffc0b9f4: 90 0a 27 ac stw r0,10156(r10) ffc0b9f8: 38 c9 00 04 addi r6,r9,4 _Watchdog_Ticks_since_boot = 0; ffc0b9fc: 3d 40 00 00 lis r10,0 ffc0ba00: 90 c8 2d 48 stw r6,11592(r8) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ba04: 91 29 00 08 stw r9,8(r9) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc0ba08: 90 0b 00 04 stw r0,4(r11) ffc0ba0c: 90 0a 27 c8 stw r0,10184(r10) ffc0ba10: 90 09 00 04 stw r0,4(r9) _Chain_Initialize_empty( &_Watchdog_Ticks_chain ); _Chain_Initialize_empty( &_Watchdog_Seconds_chain ); } ffc0ba14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b8c0 <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; ffc0b8c0: 3d 20 00 00 lis r9,0 ffc0b8c4: 80 09 27 98 lwz r0,10136(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b8c8: 7d 40 00 a6 mfmsr r10 <== ALWAYS TAKEN ffc0b8cc: 7d 30 42 a6 mfsprg r9,0 ffc0b8d0: 7d 49 48 78 andc r9,r10,r9 ffc0b8d4: 7d 20 01 24 mtmsr r9 /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_watchdog->state != WATCHDOG_INACTIVE ) { ffc0b8d8: 81 24 00 08 lwz r9,8(r4) ffc0b8dc: 2f 89 00 00 cmpwi cr7,r9,0 ffc0b8e0: 41 be 00 08 beq+ cr7,ffc0b8e8 <_Watchdog_Insert+0x28> _ISR_Enable( level ); ffc0b8e4: 48 00 00 dc b ffc0b9c0 <_Watchdog_Insert+0x100> <== ALWAYS TAKEN return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; ffc0b8e8: 3d 20 00 00 lis r9,0 ffc0b8ec: 81 69 27 c4 lwz r11,10180(r9) if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { ffc0b8f0: 3c e0 00 00 lis r7,0 ffc0b8f4: 38 e7 27 ac addi r7,r7,10156 _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; ffc0b8f8: 39 6b 00 01 addi r11,r11,1 ffc0b8fc: 91 69 27 c4 stw r11,10180(r9) if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; ffc0b900: 39 20 00 01 li r9,1 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { ffc0b904: 7c e6 3b 78 mr r6,r7 if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; ffc0b908: 91 24 00 08 stw r9,8(r4) _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; ffc0b90c: 81 24 00 0c lwz r9,12(r4) * cache *header!! * * Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc) * */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ffc0b910: 81 63 00 00 lwz r11,0(r3) ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) ffc0b914: 2f 89 00 00 cmpwi cr7,r9,0 ffc0b918: 41 9e 00 60 beq- cr7,ffc0b978 <_Watchdog_Insert+0xb8> ffc0b91c: 81 0b 00 00 lwz r8,0(r11) <== ALWAYS TAKEN ffc0b920: 2f 88 00 00 cmpwi cr7,r8,0 ffc0b924: 41 9e 00 54 beq- cr7,ffc0b978 <_Watchdog_Insert+0xb8> break; if ( delta_interval < after->delta_interval ) { ffc0b928: 81 0b 00 10 lwz r8,16(r11) ffc0b92c: 7f 89 40 40 cmplw cr7,r9,r8 ffc0b930: 40 bc 00 10 bge+ cr7,ffc0b940 <_Watchdog_Insert+0x80> after->delta_interval -= delta_interval; ffc0b934: 7d 09 40 50 subf r8,r9,r8 ffc0b938: 91 0b 00 10 stw r8,16(r11) break; ffc0b93c: 48 00 00 3c b ffc0b978 <_Watchdog_Insert+0xb8> <== ALWAYS TAKEN static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0b940: 7c a0 00 a6 mfmsr r5 ffc0b944: 7d 40 01 24 mtmsr r10 ffc0b948: 7c a0 01 24 mtmsr r5 * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { ffc0b94c: 80 a4 00 08 lwz r5,8(r4) if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; ffc0b950: 7d 28 48 50 subf r9,r8,r9 * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { ffc0b954: 2f 85 00 01 cmpwi cr7,r5,1 ffc0b958: 40 9e 00 50 bne- cr7,ffc0b9a8 <_Watchdog_Insert+0xe8> goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { ffc0b95c: 81 07 00 00 lwz r8,0(r7) ffc0b960: 7f 88 00 40 cmplw cr7,r8,r0 ffc0b964: 40 bd 00 0c ble+ cr7,ffc0b970 <_Watchdog_Insert+0xb0> _Watchdog_Sync_level = insert_isr_nest_level; ffc0b968: 90 06 00 00 stw r0,0(r6) goto restart; ffc0b96c: 4b ff ff a0 b ffc0b90c <_Watchdog_Insert+0x4c> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); ffc0b970: 81 6b 00 00 lwz r11,0(r11) } } ffc0b974: 4b ff ff a0 b ffc0b914 <_Watchdog_Insert+0x54> <== ALWAYS TAKEN _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); ffc0b978: 81 6b 00 04 lwz r11,4(r11) the_watchdog->start_time = _Watchdog_Ticks_since_boot; ffc0b97c: 3d 00 00 00 lis r8,0 ffc0b980: 80 e8 27 c8 lwz r7,10184(r8) ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc0b984: 81 0b 00 00 lwz r8,0(r11) ffc0b988: 90 e4 00 14 stw r7,20(r4) RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; ffc0b98c: 38 e0 00 02 li r7,2 after_node->next = the_node; ffc0b990: 90 8b 00 00 stw r4,0(r11) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc0b994: 91 64 00 04 stw r11,4(r4) ffc0b998: 90 e4 00 08 stw r7,8(r4) } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; ffc0b99c: 91 24 00 10 stw r9,16(r4) before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; before_node->previous = the_node; ffc0b9a0: 90 88 00 04 stw r4,4(r8) Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; ffc0b9a4: 91 04 00 00 stw r8,0(r4) _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; ffc0b9a8: 3d 20 00 00 lis r9,0 ffc0b9ac: 90 09 27 ac stw r0,10156(r9) _Watchdog_Sync_count--; ffc0b9b0: 3d 20 00 00 lis r9,0 ffc0b9b4: 81 69 27 c4 lwz r11,10180(r9) ffc0b9b8: 38 0b ff ff addi r0,r11,-1 ffc0b9bc: 90 09 27 c4 stw r0,10180(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b9c0: 7d 40 01 24 mtmsr r10 ffc0b9c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ba18 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { ffc0ba18: 7c 69 1b 78 mr r9,r3 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ba1c: 7c 00 00 a6 mfmsr r0 ffc0ba20: 7d 70 42 a6 mfsprg r11,0 ffc0ba24: 7c 0b 58 78 andc r11,r0,r11 ffc0ba28: 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; ffc0ba2c: 80 63 00 08 lwz r3,8(r3) switch ( previous_state ) { ffc0ba30: 2f 83 00 01 cmpwi cr7,r3,1 ffc0ba34: 41 9e 00 18 beq- cr7,ffc0ba4c <_Watchdog_Remove+0x34> ffc0ba38: 2b 83 00 01 cmplwi cr7,r3,1 ffc0ba3c: 41 9c 00 74 blt- cr7,ffc0bab0 <_Watchdog_Remove+0x98> ffc0ba40: 2b 83 00 03 cmplwi cr7,r3,3 ffc0ba44: 41 9d 00 6c bgt- cr7,ffc0bab0 <_Watchdog_Remove+0x98> <== NEVER TAKEN ffc0ba48: 48 00 00 10 b ffc0ba58 <_Watchdog_Remove+0x40> <== ALWAYS TAKEN /* * 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; ffc0ba4c: 39 60 00 00 li r11,0 ffc0ba50: 91 69 00 08 stw r11,8(r9) break; ffc0ba54: 48 00 00 5c b ffc0bab0 <_Watchdog_Remove+0x98> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); ffc0ba58: 81 69 00 00 lwz r11,0(r9) case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; ffc0ba5c: 39 00 00 00 li r8,0 ffc0ba60: 91 09 00 08 stw r8,8(r9) next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) ffc0ba64: 81 4b 00 00 lwz r10,0(r11) ffc0ba68: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0ba6c: 41 9e 00 14 beq- cr7,ffc0ba80 <_Watchdog_Remove+0x68> next_watchdog->delta_interval += the_watchdog->delta_interval; ffc0ba70: 81 0b 00 10 lwz r8,16(r11) ffc0ba74: 81 49 00 10 lwz r10,16(r9) ffc0ba78: 7d 48 52 14 add r10,r8,r10 ffc0ba7c: 91 4b 00 10 stw r10,16(r11) if ( _Watchdog_Sync_count ) ffc0ba80: 3d 60 00 00 lis r11,0 ffc0ba84: 81 6b 27 c4 lwz r11,10180(r11) ffc0ba88: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0ba8c: 41 9e 00 14 beq- cr7,ffc0baa0 <_Watchdog_Remove+0x88> _Watchdog_Sync_level = _ISR_Nest_level; ffc0ba90: 3d 60 00 00 lis r11,0 ffc0ba94: 81 4b 27 98 lwz r10,10136(r11) ffc0ba98: 3d 60 00 00 lis r11,0 ffc0ba9c: 91 4b 27 ac stw r10,10156(r11) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0baa0: 81 69 00 00 lwz r11,0(r9) previous = the_node->previous; ffc0baa4: 81 49 00 04 lwz r10,4(r9) next->previous = previous; previous->next = next; ffc0baa8: 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; ffc0baac: 91 4b 00 04 stw r10,4(r11) _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; ffc0bab0: 3d 60 00 00 lis r11,0 ffc0bab4: 81 6b 27 c8 lwz r11,10184(r11) ffc0bab8: 91 69 00 18 stw r11,24(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0babc: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); return( previous_state ); } ffc0bac0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d4e0 <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk( ffc0d4e0: 7c 6b 1b 79 mr. r11,r3 void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { ffc0d4e4: 94 21 ff f0 stwu r1,-16(r1) ffc0d4e8: 7c 08 02 a6 mflr r0 ffc0d4ec: 7c 88 23 78 mr r8,r4 ffc0d4f0: 90 01 00 14 stw r0,20(r1) printk( ffc0d4f4: 41 82 00 10 beq- ffc0d504 <_Watchdog_Report+0x24> ffc0d4f8: 3c a0 ff c2 lis r5,-62 ffc0d4fc: 38 a5 2b 13 addi r5,r5,11027 ffc0d500: 48 00 00 10 b ffc0d510 <_Watchdog_Report+0x30> <== ALWAYS TAKEN ffc0d504: 3d 60 ff c2 lis r11,-62 ffc0d508: 39 6b 34 43 addi r11,r11,13379 ffc0d50c: 7d 65 5b 78 mr r5,r11 ffc0d510: 80 08 00 24 lwz r0,36(r8) ffc0d514: 3c 60 ff c2 lis r3,-62 ffc0d518: 80 c8 00 10 lwz r6,16(r8) ffc0d51c: 38 63 35 ca addi r3,r3,13770 ffc0d520: 80 e8 00 0c lwz r7,12(r8) ffc0d524: 7d 64 5b 78 mr r4,r11 ffc0d528: 81 28 00 1c lwz r9,28(r8) ffc0d52c: 81 48 00 20 lwz r10,32(r8) ffc0d530: 90 01 00 08 stw r0,8(r1) ffc0d534: 4c c6 31 82 crclr 4*cr1+eq ffc0d538: 4b ff 8a ed bl ffc06024 <== ALWAYS TAKEN watch, watch->routine, watch->id, watch->user_data ); } ffc0d53c: 80 01 00 14 lwz r0,20(r1) ffc0d540: 38 21 00 10 addi r1,r1,16 ffc0d544: 7c 08 03 a6 mtlr r0 ffc0d548: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d420 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { ffc0d420: 94 21 ff e8 stwu r1,-24(r1) ffc0d424: 7c 08 02 a6 mflr r0 ffc0d428: 93 c1 00 10 stw r30,16(r1) ffc0d42c: 7c 7e 1b 78 mr r30,r3 ffc0d430: 93 e1 00 14 stw r31,20(r1) ffc0d434: 7c 9f 23 78 mr r31,r4 ffc0d438: 90 01 00 1c stw r0,28(r1) ffc0d43c: 93 81 00 08 stw r28,8(r1) ffc0d440: 93 a1 00 0c stw r29,12(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0d444: 7f a0 00 a6 mfmsr r29 ffc0d448: 7c 10 42 a6 mfsprg r0,0 ffc0d44c: 7f a0 00 78 andc r0,r29,r0 ffc0d450: 7c 00 01 24 mtmsr r0 ISR_Level level; Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); ffc0d454: 3c 60 ff c2 lis r3,-62 ffc0d458: 7f e5 fb 78 mr r5,r31 ffc0d45c: 38 63 35 94 addi r3,r3,13716 ffc0d460: 7f c4 f3 78 mr r4,r30 ffc0d464: 4c c6 31 82 crclr 4*cr1+eq ffc0d468: 4b ff 8b bd bl ffc06024 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc0d46c: 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; ffc0d470: 3b ff 00 04 addi r31,r31,4 if ( !_Chain_Is_empty( header ) ) { ffc0d474: 7f 9c f8 00 cmpw cr7,r28,r31 ffc0d478: 41 9e 00 34 beq- cr7,ffc0d4ac <_Watchdog_Report_chain+0x8c> node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); ffc0d47c: 7f 84 e3 78 mr r4,r28 ffc0d480: 38 60 00 00 li r3,0 ffc0d484: 48 00 00 5d bl ffc0d4e0 <_Watchdog_Report> <== ALWAYS TAKEN _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 ) ffc0d488: 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 ; ffc0d48c: 7f 9c f8 00 cmpw cr7,r28,r31 ffc0d490: 40 9e ff ec bne+ cr7,ffc0d47c <_Watchdog_Report_chain+0x5c> <== NEVER TAKEN { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); ffc0d494: 3c 60 ff c2 lis r3,-62 ffc0d498: 38 63 35 ab addi r3,r3,13739 ffc0d49c: 7f c4 f3 78 mr r4,r30 ffc0d4a0: 4c c6 31 82 crclr 4*cr1+eq ffc0d4a4: 4b ff 8b 81 bl ffc06024 <== ALWAYS TAKEN ffc0d4a8: 48 00 00 14 b ffc0d4bc <_Watchdog_Report_chain+0x9c> <== ALWAYS TAKEN } else { printk( "Chain is empty\n" ); ffc0d4ac: 3c 60 ff c2 lis r3,-62 ffc0d4b0: 38 63 35 ba addi r3,r3,13754 ffc0d4b4: 4c c6 31 82 crclr 4*cr1+eq ffc0d4b8: 4b ff 8b 6d bl ffc06024 <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0d4bc: 7f a0 01 24 mtmsr r29 } _ISR_Enable( level ); } ffc0d4c0: 80 01 00 1c lwz r0,28(r1) ffc0d4c4: 83 81 00 08 lwz r28,8(r1) ffc0d4c8: 7c 08 03 a6 mtlr r0 ffc0d4cc: 83 a1 00 0c lwz r29,12(r1) ffc0d4d0: 83 c1 00 10 lwz r30,16(r1) ffc0d4d4: 83 e1 00 14 lwz r31,20(r1) ffc0d4d8: 38 21 00 18 addi r1,r1,24 ffc0d4dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bac4 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) { ffc0bac4: 94 21 ff e8 stwu r1,-24(r1) <== ALWAYS TAKEN ffc0bac8: 7c 08 02 a6 mflr r0 ffc0bacc: 90 01 00 1c stw r0,28(r1) ffc0bad0: 93 c1 00 10 stw r30,16(r1) ffc0bad4: 7c 7e 1b 78 mr r30,r3 <== ALWAYS TAKEN ffc0bad8: 93 81 00 08 stw r28,8(r1) ffc0badc: 93 a1 00 0c stw r29,12(r1) ffc0bae0: 93 e1 00 14 stw r31,20(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0bae4: 7f 80 00 a6 mfmsr r28 ffc0bae8: 7c 10 42 a6 mfsprg r0,0 ffc0baec: 7f 80 00 78 andc r0,r28,r0 ffc0baf0: 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)); ffc0baf4: 83 e3 00 00 lwz r31,0(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0baf8: 3b a3 00 04 addi r29,r3,4 * volatile data - till, 2003/7 */ _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) ffc0bafc: 7f 9f e8 00 cmpw cr7,r31,r29 ffc0bb00: 41 9e 00 74 beq- cr7,ffc0bb74 <_Watchdog_Tickle+0xb0> * to be inserted has already had its delta_interval adjusted to 0, and * so is added to the head of the chain with a delta_interval of 0. * * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc) */ if (the_watchdog->delta_interval != 0) { ffc0bb04: 81 3f 00 10 lwz r9,16(r31) ffc0bb08: 2f 89 00 00 cmpwi cr7,r9,0 ffc0bb0c: 41 9e 00 14 beq- cr7,ffc0bb20 <_Watchdog_Tickle+0x5c> the_watchdog->delta_interval--; ffc0bb10: 38 09 ff ff addi r0,r9,-1 if ( the_watchdog->delta_interval != 0 ) ffc0bb14: 2f 80 00 00 cmpwi cr7,r0,0 * so is added to the head of the chain with a delta_interval of 0. * * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc) */ if (the_watchdog->delta_interval != 0) { the_watchdog->delta_interval--; ffc0bb18: 90 1f 00 10 stw r0,16(r31) if ( the_watchdog->delta_interval != 0 ) ffc0bb1c: 40 9e 00 58 bne- cr7,ffc0bb74 <_Watchdog_Tickle+0xb0> goto leave; } do { watchdog_state = _Watchdog_Remove( the_watchdog ); ffc0bb20: 7f e3 fb 78 mr r3,r31 ffc0bb24: 4b ff fe f5 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0bb28: 7f 80 01 24 mtmsr r28 _ISR_Enable( level ); switch( watchdog_state ) { ffc0bb2c: 2f 83 00 02 cmpwi cr7,r3,2 ffc0bb30: 40 be 00 18 bne+ cr7,ffc0bb48 <_Watchdog_Tickle+0x84> <== NEVER TAKEN case WATCHDOG_ACTIVE: (*the_watchdog->routine)( ffc0bb34: 80 1f 00 1c lwz r0,28(r31) <== ALWAYS TAKEN ffc0bb38: 80 9f 00 24 lwz r4,36(r31) ffc0bb3c: 80 7f 00 20 lwz r3,32(r31) ffc0bb40: 7c 09 03 a6 mtctr r0 ffc0bb44: 4e 80 04 21 bctrl <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0bb48: 7f 80 00 a6 mfmsr r28 ffc0bb4c: 7c 10 42 a6 mfsprg r0,0 ffc0bb50: 7f 80 00 78 andc r0,r28,r0 ffc0bb54: 7c 00 01 24 mtmsr r0 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); ffc0bb58: 80 1e 00 00 lwz r0,0(r30) _ISR_Disable( level ); the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); ffc0bb5c: 7f 80 e8 00 cmpw cr7,r0,r29 <== ALWAYS TAKEN ffc0bb60: 7c 1f 03 78 mr r31,r0 ffc0bb64: 41 9e 00 10 beq- cr7,ffc0bb74 <_Watchdog_Tickle+0xb0> ffc0bb68: 80 1f 00 10 lwz r0,16(r31) ffc0bb6c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bb70: 4b ff ff ac b ffc0bb1c <_Watchdog_Tickle+0x58> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0bb74: 7f 80 01 24 mtmsr r28 leave: _ISR_Enable(level); } ffc0bb78: 80 01 00 1c lwz r0,28(r1) ffc0bb7c: 83 81 00 08 lwz r28,8(r1) ffc0bb80: 7c 08 03 a6 mtlr r0 ffc0bb84: 83 a1 00 0c lwz r29,12(r1) ffc0bb88: 83 c1 00 10 lwz r30,16(r1) ffc0bb8c: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc0bb90: 38 21 00 18 addi r1,r1,24 ffc0bb94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bbe0 <_Workspace_Allocate>: * _Workspace_Allocate */ void *_Workspace_Allocate( size_t size ) { ffc0bbe0: 94 21 ff f8 stwu r1,-8(r1) ffc0bbe4: 7c 08 02 a6 mflr r0 ffc0bbe8: 7c 64 1b 78 mr r4,r3 ffc0bbec: 3c 60 00 00 lis r3,0 ffc0bbf0: 90 01 00 0c stw r0,12(r1) ffc0bbf4: 38 63 2c ac addi r3,r3,11436 ffc0bbf8: 38 a0 00 00 li r5,0 ffc0bbfc: 38 c0 00 00 li r6,0 ffc0bc00: 48 00 2c 19 bl ffc0e818 <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN __builtin_return_address( 1 ), memory ); #endif return memory; } ffc0bc04: 80 01 00 0c lwz r0,12(r1) ffc0bc08: 38 21 00 08 addi r1,r1,8 ffc0bc0c: 7c 08 03 a6 mtlr r0 ffc0bc10: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bb98 <_Workspace_Allocate_or_fatal_error>: * _Workspace_Allocate_or_fatal_error */ void *_Workspace_Allocate_or_fatal_error( size_t size ) { ffc0bb98: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc0bb9c: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0bba0: 7c 64 1b 78 mr r4,r3 * @brief See _Heap_Allocate_aligned_with_boundary() with alignment and * boundary equals zero. */ RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); ffc0bba4: 3c 60 00 00 lis r3,0 ffc0bba8: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN ffc0bbac: 38 63 2c ac addi r3,r3,11436 ffc0bbb0: 38 a0 00 00 li r5,0 ffc0bbb4: 38 c0 00 00 li r6,0 ffc0bbb8: 48 00 2c 61 bl ffc0e818 <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN __builtin_return_address( 1 ), memory ); #endif if ( memory == NULL ) ffc0bbbc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bbc0: 40 be 00 10 bne+ cr7,ffc0bbd0 <_Workspace_Allocate_or_fatal_error+0x38> _Internal_error_Occurred( ffc0bbc4: 38 80 00 01 li r4,1 ffc0bbc8: 38 a0 00 04 li r5,4 ffc0bbcc: 4b ff d6 65 bl ffc09230 <_Internal_error_Occurred> <== ALWAYS TAKEN true, INTERNAL_ERROR_WORKSPACE_ALLOCATION ); return memory; } ffc0bbd0: 80 01 00 0c lwz r0,12(r1) ffc0bbd4: 38 21 00 08 addi r1,r1,8 ffc0bbd8: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0bbdc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bc14 <_Workspace_Free>: * _Workspace_Free */ bool _Workspace_Free( void *block ) { ffc0bc14: 94 21 ff f8 stwu r1,-8(r1) ffc0bc18: 7c 08 02 a6 mflr r0 ffc0bc1c: 7c 64 1b 78 mr r4,r3 block, __builtin_return_address( 0 ), __builtin_return_address( 1 ) ); #endif return _Heap_Free( &_Workspace_Area, block ); ffc0bc20: 3c 60 00 00 lis r3,0 * _Workspace_Free */ bool _Workspace_Free( void *block ) { ffc0bc24: 90 01 00 0c stw r0,12(r1) block, __builtin_return_address( 0 ), __builtin_return_address( 1 ) ); #endif return _Heap_Free( &_Workspace_Area, block ); ffc0bc28: 38 63 2c ac addi r3,r3,11436 ffc0bc2c: 48 00 2d ad bl ffc0e9d8 <_Heap_Free> <== ALWAYS TAKEN } ffc0bc30: 80 01 00 0c lwz r0,12(r1) ffc0bc34: 38 21 00 08 addi r1,r1,8 ffc0bc38: 7c 08 03 a6 mtlr r0 ffc0bc3c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bc40 <_Workspace_Handler_initialization>: /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { ffc0bc40: 94 21 ff f0 stwu r1,-16(r1) ffc0bc44: 7c 08 02 a6 mflr r0 uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; ffc0bc48: 3d 60 00 00 lis r11,0 /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { ffc0bc4c: 90 01 00 14 stw r0,20(r1) uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; ffc0bc50: 39 2b 20 a0 addi r9,r11,8352 uintptr_t size = Configuration.work_space_size; if ( Configuration.do_zero_of_workspace ) ffc0bc54: 88 09 00 28 lbz r0,40(r9) /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { ffc0bc58: 93 c1 00 08 stw r30,8(r1) uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; uintptr_t size = Configuration.work_space_size; if ( Configuration.do_zero_of_workspace ) ffc0bc5c: 2f 80 00 00 cmpwi cr7,r0,0 /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { ffc0bc60: 93 e1 00 0c stw r31,12(r1) uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; ffc0bc64: 83 cb 20 a0 lwz r30,8352(r11) uintptr_t size = Configuration.work_space_size; ffc0bc68: 83 e9 00 04 lwz r31,4(r9) if ( Configuration.do_zero_of_workspace ) ffc0bc6c: 41 be 00 14 beq+ cr7,ffc0bc80 <_Workspace_Handler_initialization+0x40> memset( starting_address, 0, size ); ffc0bc70: 7f c3 f3 78 mr r3,r30 ffc0bc74: 38 80 00 00 li r4,0 ffc0bc78: 7f e5 fb 78 mr r5,r31 ffc0bc7c: 48 00 6c 79 bl ffc128f4 <== ALWAYS TAKEN memory_available = _Heap_Initialize( ffc0bc80: 3c 60 00 00 lis r3,0 ffc0bc84: 38 63 2c ac addi r3,r3,11436 ffc0bc88: 7f c4 f3 78 mr r4,r30 ffc0bc8c: 7f e5 fb 78 mr r5,r31 ffc0bc90: 38 c0 00 08 li r6,8 <== ALWAYS TAKEN ffc0bc94: 4b ff d1 d5 bl ffc08e68 <_Heap_Initialize> <== ALWAYS TAKEN starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) ffc0bc98: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bc9c: 40 be 00 10 bne+ cr7,ffc0bcac <_Workspace_Handler_initialization+0x6c> _Internal_error_Occurred( ffc0bca0: 38 80 00 01 li r4,1 ffc0bca4: 38 a0 00 03 li r5,3 ffc0bca8: 4b ff d5 89 bl ffc09230 <_Internal_error_Occurred> <== ALWAYS TAKEN INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_TOO_LITTLE_WORKSPACE ); } ffc0bcac: 80 01 00 14 lwz r0,20(r1) ffc0bcb0: 83 c1 00 08 lwz r30,8(r1) ffc0bcb4: 7c 08 03 a6 mtlr r0 ffc0bcb8: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc0bcbc: 38 21 00 10 addi r1,r1,16 ffc0bcc0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03be8 <__assert_func>: int line, const char *func, const char *failedexpr ) { printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", ffc03be8: 7c a8 2b 79 mr. r8,r5 const char *file, int line, const char *func, const char *failedexpr ) { ffc03bec: 7c 08 02 a6 mflr r0 ffc03bf0: 94 21 ff f8 stwu r1,-8(r1) ffc03bf4: 7c 65 1b 78 mr r5,r3 ffc03bf8: 90 01 00 0c stw r0,12(r1) ffc03bfc: 7c 80 23 78 mr r0,r4 printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", ffc03c00: 41 82 00 10 beq- ffc03c10 <__assert_func+0x28> ffc03c04: 3c e0 ff c2 lis r7,-62 ffc03c08: 38 e7 de 2a addi r7,r7,-8662 ffc03c0c: 48 00 00 10 b ffc03c1c <__assert_func+0x34> <== ALWAYS TAKEN ffc03c10: 3c e0 ff c2 lis r7,-62 ffc03c14: 38 e7 de ac addi r7,r7,-8532 ffc03c18: 7c e8 3b 78 mr r8,r7 ffc03c1c: 3c 60 ff c2 lis r3,-62 ffc03c20: 38 63 de 37 addi r3,r3,-8649 ffc03c24: 7c c4 33 78 mr r4,r6 ffc03c28: 7c 06 03 78 mr r6,r0 ffc03c2c: 4c c6 31 82 crclr 4*cr1+eq ffc03c30: 48 00 14 01 bl ffc05030 <== ALWAYS TAKEN file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); ffc03c34: 38 60 00 00 li r3,0 ffc03c38: 48 00 47 b5 bl ffc083ec <== ALWAYS TAKEN ffc260a0 <__env_lock>: ffc260a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc260a4 <__env_unlock>: ffc260a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1c654 <_calloc_r>: void *_calloc_r( struct _reent *ignored __attribute__((unused)), size_t elements, size_t size ) { ffc1c654: 94 21 ff f8 stwu r1,-8(r1) ffc1c658: 7c 08 02 a6 mflr r0 return calloc( elements, size ); ffc1c65c: 7c 83 23 78 mr r3,r4 ffc1c660: 7c a4 2b 78 mr r4,r5 void *_calloc_r( struct _reent *ignored __attribute__((unused)), size_t elements, size_t size ) { ffc1c664: 90 01 00 0c stw r0,12(r1) return calloc( elements, size ); ffc1c668: 4b ff 08 3d bl ffc0cea4 <== ALWAYS TAKEN } ffc1c66c: 80 01 00 0c lwz r0,12(r1) ffc1c670: 38 21 00 08 addi r1,r1,8 ffc1c674: 7c 08 03 a6 mtlr r0 ffc1c678: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cfdc <_close_r>: int _close_r( struct _reent *ptr __attribute__((unused)), int fd ) { return close( fd ); ffc0cfdc: 7c 83 23 78 mr r3,r4 ffc0cfe0: 4b ff ff 3c b ffc0cf1c <== ALWAYS TAKEN ffc1e624 <_execve>: int _execve( const char *path __attribute__((unused)), char *const argv[] __attribute__((unused)), char *const envp[] __attribute__((unused)) ) { ffc1e624: 94 21 ff f8 stwu r1,-8(r1) ffc1e628: 7c 08 02 a6 mflr r0 ffc1e62c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc1e630: 4b ff 44 a9 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc1e634: 38 00 00 58 li r0,88 ffc1e638: 90 03 00 00 stw r0,0(r3) } ffc1e63c: 38 60 ff ff li r3,-1 ffc1e640: 80 01 00 0c lwz r0,12(r1) ffc1e644: 38 21 00 08 addi r1,r1,8 ffc1e648: 7c 08 03 a6 mtlr r0 ffc1e64c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1c980 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); ffc1c980: 94 21 ff f0 stwu r1,-16(r1) ffc1c984: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc1c988: 90 61 00 08 stw r3,8(r1) <== ALWAYS TAKEN ffc1c98c: 90 01 00 14 stw r0,20(r1) ffc1c990: 48 00 0a 51 bl ffc1d3e0 <__fini> <== ALWAYS TAKEN * 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(); ffc1c994: 4b ff ff 65 bl ffc1c8f8 <== ALWAYS TAKEN rtems_shutdown_executive(status); ffc1c998: 80 61 00 08 lwz r3,8(r1) ffc1c99c: 48 00 01 49 bl ffc1cae4 <== ALWAYS TAKEN ffc1c9a0: 48 00 00 00 b ffc1c9a0 <_exit+0x20> <== NOT EXECUTED ffc409d4 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); ffc409d4: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc409d8: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc409dc: 7c c5 33 78 mr r5,r6 <== NOT EXECUTED ffc409e0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc409e4: 4b ff fd 58 b ffc4073c <== NOT EXECUTED ffc1c67c <_free_r>: void _free_r( struct _reent *ignored __attribute__((unused)), void *ptr ) { ffc1c67c: 94 21 ff f8 stwu r1,-8(r1) ffc1c680: 7c 08 02 a6 mflr r0 free( ptr ); ffc1c684: 7c 83 23 78 mr r3,r4 void _free_r( struct _reent *ignored __attribute__((unused)), void *ptr ) { ffc1c688: 90 01 00 0c stw r0,12(r1) free( ptr ); ffc1c68c: 4b fe 79 cd bl ffc04058 <== ALWAYS TAKEN } ffc1c690: 80 01 00 0c lwz r0,12(r1) ffc1c694: 38 21 00 08 addi r1,r1,8 ffc1c698: 7c 08 03 a6 mtlr r0 ffc1c69c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1c76c <_fstat_r>: struct _reent *ptr __attribute__((unused)), int fd, struct stat *buf ) { return fstat( fd, buf ); ffc1c76c: 7c 83 23 78 mr r3,r4 ffc1c770: 7c a4 2b 78 mr r4,r5 ffc1c774: 4b ff ff 2c b ffc1c6a0 <== ALWAYS TAKEN ffc10218 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } ffc10218: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc1021c: 4e 80 00 20 blr <== NOT EXECUTED ffc0d19c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); ffc0d19c: 4b ff ff 80 b ffc0d11c <== NOT EXECUTED ffc0d1a0 <_gettimeofday_r>: struct _reent *ignored_reentrancy_stuff __attribute__((unused)), struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); ffc0d1a0: 7c 83 23 78 mr r3,r4 ffc0d1a4: 7c a4 2b 78 mr r4,r5 ffc0d1a8: 4b ff ff 74 b ffc0d11c <== ALWAYS TAKEN ffc1c778 <_isatty_r>: int _isatty_r( struct _reent *ptr __attribute__((unused)), int fd ) { ffc1c778: 94 21 ff f8 stwu r1,-8(r1) ffc1c77c: 7c 08 02 a6 mflr r0 return isatty( fd ); ffc1c780: 7c 83 23 78 mr r3,r4 int _isatty_r( struct _reent *ptr __attribute__((unused)), int fd ) { ffc1c784: 90 01 00 0c stw r0,12(r1) return isatty( fd ); ffc1c788: 48 00 08 81 bl ffc1d008 <== ALWAYS TAKEN } ffc1c78c: 80 01 00 0c lwz r0,12(r1) ffc1c790: 38 21 00 08 addi r1,r1,8 ffc1c794: 7c 08 03 a6 mtlr r0 ffc1c798: 4e 80 00 20 blr <== ALWAYS TAKEN ffc28538 <_kill_r>: int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { ffc28538: 94 21 ff f8 stwu r1,-8(r1) ffc2853c: 7c 08 02 a6 mflr r0 return killinfo( pid, sig, NULL ); ffc28540: 7c 83 23 78 mr r3,r4 ffc28544: 7c a4 2b 78 mr r4,r5 int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { ffc28548: 90 01 00 0c stw r0,12(r1) return killinfo( pid, sig, NULL ); ffc2854c: 38 a0 00 00 li r5,0 ffc28550: 4b ff 0d a5 bl ffc192f4 <== ALWAYS TAKEN } ffc28554: 80 01 00 0c lwz r0,12(r1) ffc28558: 38 21 00 08 addi r1,r1,8 ffc2855c: 7c 08 03 a6 mtlr r0 ffc28560: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2c260 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); ffc2c260: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc2c264: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc2c268: 4b ff fd 60 b ffc2bfc8 <== NOT EXECUTED ffc1c8cc <_lseek_r>: int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); ffc1c8cc: 7c 83 23 78 mr r3,r4 ffc1c8d0: 4b ff fe cc b ffc1c79c <== ALWAYS TAKEN ffc2c4b8 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc2c4b8: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc2c4bc: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc2c4c0: 4b ff fe e4 b ffc2c3a4 <== NOT EXECUTED ffc1c8d4 <_malloc_r>: void *_malloc_r( struct _reent *ignored __attribute__((unused)), size_t size ) { ffc1c8d4: 94 21 ff f8 stwu r1,-8(r1) ffc1c8d8: 7c 08 02 a6 mflr r0 return malloc( size ); ffc1c8dc: 7c 83 23 78 mr r3,r4 void *_malloc_r( struct _reent *ignored __attribute__((unused)), size_t size ) { ffc1c8e0: 90 01 00 0c stw r0,12(r1) return malloc( size ); ffc1c8e4: 4b fe 7a d9 bl ffc043bc <== ALWAYS TAKEN } ffc1c8e8: 80 01 00 0c lwz r0,12(r1) ffc1c8ec: 38 21 00 08 addi r1,r1,8 ffc1c8f0: 7c 08 03 a6 mtlr r0 ffc1c8f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0501c <_open_r>: const char *buf, int flags, int mode ) { return open( buf, flags, mode ); ffc0501c: 7c 83 23 78 mr r3,r4 ffc05020: 7c a4 2b 78 mr r4,r5 ffc05024: 7c c5 33 78 mr r5,r6 ffc05028: 4c c6 31 82 crclr 4*cr1+eq ffc0502c: 4b ff fc fc b ffc04d28 <== ALWAYS TAKEN ffc1ca80 <_read_r>: int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); ffc1ca80: 7c 83 23 78 mr r3,r4 ffc1ca84: 7c a4 2b 78 mr r4,r5 ffc1ca88: 7c c5 33 78 mr r5,r6 ffc1ca8c: 4b ff ff 18 b ffc1c9a4 <== ALWAYS TAKEN ffc1ca90 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1ca90: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc1ca94: 7c 08 02 a6 mflr r0 <== NOT EXECUTED return realloc( ptr, size ); ffc1ca98: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc1ca9c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1caa0: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED return realloc( ptr, size ); ffc1caa4: 48 00 00 81 bl ffc1cb24 <== NOT EXECUTED } ffc1caa8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc1caac: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc1cab0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1cab4: 4e 80 00 20 blr <== NOT EXECUTED ffc6258c <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc6258c: 94 21 ff a0 stwu r1,-96(r1) <== NOT EXECUTED ffc62590: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); ffc62594: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc62598: 93 81 00 50 stw r28,80(r1) <== NOT EXECUTED ffc6259c: 93 a1 00 54 stw r29,84(r1) <== NOT EXECUTED ffc625a0: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED ffc625a4: 93 c1 00 58 stw r30,88(r1) <== NOT EXECUTED ffc625a8: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED ffc625ac: 90 01 00 64 stw r0,100(r1) <== NOT EXECUTED ffc625b0: 93 61 00 4c stw r27,76(r1) <== NOT EXECUTED ffc625b4: 93 e1 00 5c stw r31,92(r1) <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); ffc625b8: 4b fa 5c 0d bl ffc081c4 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) ffc625bc: 7c 7c 1b 79 mr. r28,r3 <== NOT EXECUTED ffc625c0: 40 82 00 8c bne- ffc6264c <_rename_r+0xc0> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); ffc625c4: 88 1e 00 00 lbz r0,0(r30) <== NOT EXECUTED ffc625c8: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED ffc625cc: 41 9e 00 14 beq- cr7,ffc625e0 <_rename_r+0x54> <== NOT EXECUTED ffc625d0: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc625d4: 41 9e 00 0c beq- cr7,ffc625e0 <_rename_r+0x54> <== NOT EXECUTED ffc625d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc625dc: 40 9e 00 38 bne- cr7,ffc62614 <_rename_r+0x88> <== NOT EXECUTED ffc625e0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc625e4: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc625e8: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc625ec: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc625f0: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc625f4: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc625f8: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc625fc: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc62600: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc62604: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc62608: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc6260c: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc62610: 48 00 00 34 b ffc62644 <_rename_r+0xb8> <== NOT EXECUTED ffc62614: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc62618: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc6261c: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc62620: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc62624: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc62628: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc6262c: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc62630: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc62634: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc62638: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc6263c: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc62640: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc62644: 90 01 00 30 stw r0,48(r1) <== NOT EXECUTED ffc62648: 48 00 00 2c b ffc62674 <_rename_r+0xe8> <== NOT EXECUTED else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, ffc6264c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc62650: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc62654: 38 a0 00 02 li r5,2 <== NOT EXECUTED ffc62658: 38 c1 00 20 addi r6,r1,32 <== NOT EXECUTED ffc6265c: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc62660: 4b fa 5c dd bl ffc0833c <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) ffc62664: 3b e0 00 01 li r31,1 <== NOT EXECUTED ffc62668: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc6266c: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc62670: 40 9e 03 90 bne- cr7,ffc62a00 <_rename_r+0x474> <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; ffc62674: 80 01 00 20 lwz r0,32(r1) <== NOT EXECUTED name = old + old_parent_pathlen; ffc62678: 7f de e2 14 add r30,r30,r28 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc6267c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; name = old + old_parent_pathlen; ffc62680: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; ffc62684: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc62688: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc6268c: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED ffc62690: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED ffc62694: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc62698: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc6269c: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED ffc626a0: 80 01 00 30 lwz r0,48(r1) <== NOT EXECUTED ffc626a4: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc626a8: 4b fe cd ad bl ffc4f454 <== NOT EXECUTED ffc626ac: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc626b0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc626b4: 4b fa 5a d5 bl ffc08188 <== NOT EXECUTED ffc626b8: 7f de 1a 14 add r30,r30,r3 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc626bc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc626c0: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc626c4: 4b fe cd 91 bl ffc4f454 <== NOT EXECUTED ffc626c8: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc626cc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc626d0: 38 c1 00 0c addi r6,r1,12 <== NOT EXECUTED ffc626d4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc626d8: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc626dc: 4b fa 5b 4d bl ffc08228 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { ffc626e0: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc626e4: 41 a2 00 3c beq+ ffc62720 <_rename_r+0x194> <== NOT EXECUTED if ( free_old_parentloc ) ffc626e8: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc626ec: 41 9e 00 28 beq- cr7,ffc62714 <_rename_r+0x188> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc626f0: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc626f4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc626f8: 41 9e 00 1c beq- cr7,ffc62714 <_rename_r+0x188> <== NOT EXECUTED ffc626fc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc62700: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc62704: 41 9e 00 10 beq- cr7,ffc62714 <_rename_r+0x188> <== NOT EXECUTED ffc62708: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc6270c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62710: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); ffc62714: 4b fe 4f 79 bl ffc4768c <__errno> <== NOT EXECUTED ffc62718: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc6271c: 48 00 00 f4 b ffc62810 <_rename_r+0x284> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); ffc62720: 88 1d 00 00 lbz r0,0(r29) <== NOT EXECUTED ffc62724: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED ffc62728: 41 9e 00 14 beq- cr7,ffc6273c <_rename_r+0x1b0> <== NOT EXECUTED ffc6272c: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc62730: 41 9e 00 0c beq- cr7,ffc6273c <_rename_r+0x1b0> <== NOT EXECUTED ffc62734: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc62738: 40 9e 00 38 bne- cr7,ffc62770 <_rename_r+0x1e4> <== NOT EXECUTED ffc6273c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc62740: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc62744: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc62748: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc6274c: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc62750: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc62754: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc62758: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED ffc6275c: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED ffc62760: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED ffc62764: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED ffc62768: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc6276c: 48 00 00 34 b ffc627a0 <_rename_r+0x214> <== NOT EXECUTED ffc62770: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc62774: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc62778: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc6277c: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc62780: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc62784: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc62788: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc6278c: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED ffc62790: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED ffc62794: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED ffc62798: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED ffc6279c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { ffc627a0: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); ffc627a4: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { ffc627a8: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc627ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc627b0: 40 be 00 68 bne+ cr7,ffc62818 <_rename_r+0x28c> <== NOT EXECUTED if ( free_old_parentloc ) ffc627b4: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc627b8: 41 9e 00 28 beq- cr7,ffc627e0 <_rename_r+0x254> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc627bc: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc627c0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc627c4: 41 9e 00 1c beq- cr7,ffc627e0 <_rename_r+0x254> <== NOT EXECUTED ffc627c8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc627cc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc627d0: 41 9e 00 10 beq- cr7,ffc627e0 <_rename_r+0x254> <== NOT EXECUTED ffc627d4: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc627d8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc627dc: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc627e0: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc627e4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc627e8: 41 9e 00 1c beq- cr7,ffc62804 <_rename_r+0x278> <== NOT EXECUTED ffc627ec: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc627f0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc627f4: 41 9e 00 10 beq- cr7,ffc62804 <_rename_r+0x278> <== NOT EXECUTED ffc627f8: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc627fc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62800: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc62804: 4b fe 4e 89 bl ffc4768c <__errno> <== NOT EXECUTED ffc62808: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc6280c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc62810: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc62814: 48 00 01 ec b ffc62a00 <_rename_r+0x474> <== NOT EXECUTED } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); ffc62818: 3b c1 00 34 addi r30,r1,52 <== NOT EXECUTED ffc6281c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62820: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc62824: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc62828: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc6282c: 4e 80 04 21 bctrl <== NOT EXECUTED if ( result != 0 ) { ffc62830: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc62834: 41 a2 00 84 beq+ ffc628b8 <_rename_r+0x32c> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc62838: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc6283c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc62840: 41 9e 00 1c beq- cr7,ffc6285c <_rename_r+0x2d0> <== NOT EXECUTED ffc62844: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc62848: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6284c: 41 9e 00 10 beq- cr7,ffc6285c <_rename_r+0x2d0> <== NOT EXECUTED ffc62850: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc62854: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62858: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc6285c: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc62860: 41 9e 00 28 beq- cr7,ffc62888 <_rename_r+0x2fc> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc62864: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc62868: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc6286c: 41 9e 00 1c beq- cr7,ffc62888 <_rename_r+0x2fc> <== NOT EXECUTED ffc62870: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc62874: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc62878: 41 9e 00 10 beq- cr7,ffc62888 <_rename_r+0x2fc> <== NOT EXECUTED ffc6287c: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc62880: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62884: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc62888: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc6288c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc62890: 41 9e 00 1c beq- cr7,ffc628ac <_rename_r+0x320> <== NOT EXECUTED ffc62894: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc62898: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6289c: 41 9e 00 10 beq- cr7,ffc628ac <_rename_r+0x320> <== NOT EXECUTED ffc628a0: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc628a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc628a8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); ffc628ac: 4b fe 4d e1 bl ffc4768c <__errno> <== NOT EXECUTED ffc628b0: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc628b4: 4b ff ff 5c b ffc62810 <_rename_r+0x284> <== NOT EXECUTED /* * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { ffc628b8: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc628bc: 81 61 00 30 lwz r11,48(r1) <== NOT EXECUTED ffc628c0: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc628c4: 7f 8b 00 00 cmpw cr7,r11,r0 <== NOT EXECUTED ffc628c8: 41 be 00 80 beq+ cr7,ffc62948 <_rename_r+0x3bc> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc628cc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc628d0: 41 9e 00 1c beq- cr7,ffc628ec <_rename_r+0x360> <== NOT EXECUTED ffc628d4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc628d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc628dc: 41 9e 00 10 beq- cr7,ffc628ec <_rename_r+0x360> <== NOT EXECUTED ffc628e0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc628e4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc628e8: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc628ec: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc628f0: 41 9e 00 28 beq- cr7,ffc62918 <_rename_r+0x38c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc628f4: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc628f8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc628fc: 41 9e 00 1c beq- cr7,ffc62918 <_rename_r+0x38c> <== NOT EXECUTED ffc62900: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc62904: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc62908: 41 9e 00 10 beq- cr7,ffc62918 <_rename_r+0x38c> <== NOT EXECUTED ffc6290c: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc62910: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62914: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc62918: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc6291c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc62920: 41 9e 00 1c beq- cr7,ffc6293c <_rename_r+0x3b0> <== NOT EXECUTED ffc62924: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc62928: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6292c: 41 9e 00 10 beq- cr7,ffc6293c <_rename_r+0x3b0> <== NOT EXECUTED ffc62930: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc62934: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62938: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); ffc6293c: 4b fe 4d 51 bl ffc4768c <__errno> <== NOT EXECUTED ffc62940: 38 00 00 12 li r0,18 <== NOT EXECUTED ffc62944: 4b ff fe c8 b ffc6280c <_rename_r+0x280> <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { ffc62948: 80 09 00 40 lwz r0,64(r9) <== NOT EXECUTED ffc6294c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc62950: 40 be 00 20 bne+ cr7,ffc62970 <_rename_r+0x3e4> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc62954: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc62958: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6295c: 41 be fe 58 beq- cr7,ffc627b4 <_rename_r+0x228> <== NOT EXECUTED ffc62960: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc62964: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62968: 4e 80 04 21 bctrl <== NOT EXECUTED ffc6296c: 4b ff fe 48 b ffc627b4 <_rename_r+0x228> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); ffc62970: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc62974: 80 c1 00 08 lwz r6,8(r1) <== NOT EXECUTED ffc62978: 38 81 00 0c addi r4,r1,12 <== NOT EXECUTED ffc6297c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc62980: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc62984: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc62988: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); ffc6298c: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc62990: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc62994: 41 9e 00 1c beq- cr7,ffc629b0 <_rename_r+0x424> <== NOT EXECUTED ffc62998: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc6299c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc629a0: 41 9e 00 10 beq- cr7,ffc629b0 <_rename_r+0x424> <== NOT EXECUTED ffc629a4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc629a8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc629ac: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc629b0: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc629b4: 41 9e 00 28 beq- cr7,ffc629dc <_rename_r+0x450> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc629b8: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc629bc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc629c0: 41 9e 00 1c beq- cr7,ffc629dc <_rename_r+0x450> <== NOT EXECUTED ffc629c4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc629c8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc629cc: 41 9e 00 10 beq- cr7,ffc629dc <_rename_r+0x450> <== NOT EXECUTED ffc629d0: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc629d4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc629d8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc629dc: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc629e0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc629e4: 41 9e 00 1c beq- cr7,ffc62a00 <_rename_r+0x474> <== NOT EXECUTED ffc629e8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc629ec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc629f0: 41 9e 00 10 beq- cr7,ffc62a00 <_rename_r+0x474> <== NOT EXECUTED ffc629f4: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc629f8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc629fc: 4e 80 04 21 bctrl <== NOT EXECUTED return result; } ffc62a00: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED ffc62a04: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc62a08: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED ffc62a0c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc62a10: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED ffc62a14: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED ffc62a18: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED ffc62a1c: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED ffc62a20: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED ffc62a24: 4e 80 00 20 blr <== NOT EXECUTED ffc0a06c <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc0a06c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc0a070: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc0a074: 4b ff fe e4 b ffc09f58 <== NOT EXECUTED ffc115a4 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); ffc115a4: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc115a8: 4b ff fd 20 b ffc112c8 <== NOT EXECUTED ffc1cab8 <_write_r>: struct _reent *ptr __attribute__((unused)), int fd, const void *buf, size_t nbytes ) { ffc1cab8: 94 21 ff f8 stwu r1,-8(r1) ffc1cabc: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN return write( fd, buf, nbytes ); ffc1cac0: 7c 83 23 78 mr r3,r4 ffc1cac4: 7c a4 2b 78 mr r4,r5 struct _reent *ptr __attribute__((unused)), int fd, const void *buf, size_t nbytes ) { ffc1cac8: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN return write( fd, buf, nbytes ); ffc1cacc: 7c c5 33 78 mr r5,r6 ffc1cad0: 48 00 01 a1 bl ffc1cc70 <== ALWAYS TAKEN } ffc1cad4: 80 01 00 0c lwz r0,12(r1) ffc1cad8: 38 21 00 08 addi r1,r1,8 ffc1cadc: 7c 08 03 a6 mtlr r0 ffc1cae0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2a6fc : int access( const char *path, int amode ) { ffc2a6fc: 94 21 ff a0 stwu r1,-96(r1) ffc2a700: 7c 08 02 a6 mflr r0 ffc2a704: 93 e1 00 5c stw r31,92(r1) ffc2a708: 7c 9f 23 78 mr r31,r4 struct stat statbuf; if ( stat(path, &statbuf) ) ffc2a70c: 38 81 00 08 addi r4,r1,8 int access( const char *path, int amode ) { ffc2a710: 90 01 00 64 stw r0,100(r1) struct stat statbuf; if ( stat(path, &statbuf) ) ffc2a714: 4b fd f8 45 bl ffc09f58 <== ALWAYS TAKEN ffc2a718: 2f 83 00 00 cmpwi cr7,r3,0 ffc2a71c: 40 9e 00 40 bne- cr7,ffc2a75c return -1; if ( amode & R_OK ) { ffc2a720: 73 e0 00 04 andi. r0,r31,4 ffc2a724: 41 a2 00 10 beq+ ffc2a734 if (!( statbuf.st_mode & S_IREAD )) ffc2a728: 80 01 00 14 lwz r0,20(r1) ffc2a72c: 70 09 01 00 andi. r9,r0,256 ffc2a730: 41 82 00 2c beq- ffc2a75c return -1; } if ( amode & W_OK ) { ffc2a734: 73 e0 00 02 andi. r0,r31,2 ffc2a738: 41 a2 00 10 beq+ ffc2a748 if ( !( statbuf.st_mode & S_IWRITE ) ) ffc2a73c: 80 01 00 14 lwz r0,20(r1) ffc2a740: 70 09 00 80 andi. r9,r0,128 ffc2a744: 41 82 00 18 beq- ffc2a75c return -1; } if ( amode & X_OK ) { ffc2a748: 73 e0 00 01 andi. r0,r31,1 ffc2a74c: 41 a2 00 18 beq+ ffc2a764 if ( !( statbuf.st_mode & S_IEXEC ) ) ffc2a750: 80 01 00 14 lwz r0,20(r1) ffc2a754: 70 09 00 40 andi. r9,r0,64 ffc2a758: 40 a2 00 0c bne+ ffc2a764 ffc2a75c: 38 60 ff ff li r3,-1 ffc2a760: 48 00 00 08 b ffc2a768 <== ALWAYS TAKEN ffc2a764: 38 60 00 00 li r3,0 return -1; } return 0; } ffc2a768: 80 01 00 64 lwz r0,100(r1) ffc2a76c: 83 e1 00 5c lwz r31,92(r1) ffc2a770: 38 21 00 60 addi r1,r1,96 ffc2a774: 7c 08 03 a6 mtlr r0 ffc2a778: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07cb0 : int adjtime( struct timeval *delta, struct timeval *olddelta ) { ffc07cb0: 94 21 ff e0 stwu r1,-32(r1) ffc07cb4: 7c 08 02 a6 mflr r0 ffc07cb8: 93 e1 00 1c stw r31,28(r1) long adjustment; /* * Simple validations */ if ( !delta ) ffc07cbc: 7c 7f 1b 79 mr. r31,r3 int adjtime( struct timeval *delta, struct timeval *olddelta ) { ffc07cc0: 93 c1 00 18 stw r30,24(r1) ffc07cc4: 7c 9e 23 78 mr r30,r4 ffc07cc8: 90 01 00 24 stw r0,36(r1) long adjustment; /* * Simple validations */ if ( !delta ) ffc07ccc: 41 82 00 18 beq- ffc07ce4 rtems_set_errno_and_return_minus_one( EINVAL ); if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND ) ffc07cd0: 81 3f 00 04 lwz r9,4(r31) ffc07cd4: 3c 00 00 0f lis r0,15 ffc07cd8: 60 00 42 3f ori r0,r0,16959 ffc07cdc: 7f 89 00 40 cmplw cr7,r9,r0 ffc07ce0: 40 bd 00 18 ble+ cr7,ffc07cf8 rtems_set_errno_and_return_minus_one( EINVAL ); ffc07ce4: 48 00 ad 21 bl ffc12a04 <__errno> <== ALWAYS TAKEN ffc07ce8: 38 00 00 16 li r0,22 ffc07cec: 90 03 00 00 stw r0,0(r3) ffc07cf0: 38 60 ff ff li r3,-1 ffc07cf4: 48 00 00 fc b ffc07df0 <== ALWAYS TAKEN if ( olddelta ) { ffc07cf8: 2f 84 00 00 cmpwi cr7,r4,0 ffc07cfc: 41 9e 00 10 beq- cr7,ffc07d0c olddelta->tv_sec = 0; ffc07d00: 38 00 00 00 li r0,0 olddelta->tv_usec = 0; ffc07d04: 90 04 00 04 stw r0,4(r4) if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( olddelta ) { olddelta->tv_sec = 0; ffc07d08: 90 04 00 00 stw r0,0(r4) olddelta->tv_usec = 0; } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); ffc07d0c: 80 1f 00 00 lwz r0,0(r31) ffc07d10: 3d 20 00 0f lis r9,15 ffc07d14: 61 29 42 40 ori r9,r9,16960 adjustment += delta->tv_usec; ffc07d18: 81 7f 00 04 lwz r11,4(r31) olddelta->tv_sec = 0; olddelta->tv_usec = 0; } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); ffc07d1c: 7d 29 01 d6 mullw r9,r9,r0 adjustment += delta->tv_usec; /* too small to account for */ if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) ffc07d20: 3d 40 00 00 lis r10,0 ffc07d24: 80 0a 20 ac lwz r0,8364(r10) olddelta->tv_usec = 0; } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); adjustment += delta->tv_usec; ffc07d28: 7d 29 5a 14 add r9,r9,r11 /* too small to account for */ if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) ffc07d2c: 7f 89 00 40 cmplw cr7,r9,r0 ffc07d30: 41 bc 00 bc blt+ cr7,ffc07dec rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc07d34: 3d 20 00 00 lis r9,0 ffc07d38: 81 69 28 b0 lwz r11,10416(r9) ffc07d3c: 38 0b 00 01 addi r0,r11,1 ffc07d40: 90 09 28 b0 stw r0,10416(r9) * This prevents context switches while we are adjusting the TOD */ _Thread_Disable_dispatch(); _TOD_Get( &ts ); ffc07d44: 38 61 00 08 addi r3,r1,8 ffc07d48: 48 00 1c 8d bl ffc099d4 <_TOD_Get> <== ALWAYS TAKEN ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; ffc07d4c: 81 3f 00 04 lwz r9,4(r31) ffc07d50: 80 01 00 0c lwz r0,12(r1) /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc07d54: 3d 60 3b 9a lis r11,15258 _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; ffc07d58: 1d 29 03 e8 mulli r9,r9,1000 ffc07d5c: 81 41 00 08 lwz r10,8(r1) ffc07d60: 7d 29 02 14 add r9,r9,r0 _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; ffc07d64: 80 1f 00 00 lwz r0,0(r31) ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc07d68: 61 6b ca 00 ori r11,r11,51712 ffc07d6c: 7d 69 5b 96 divwu r11,r9,r11 ffc07d70: 39 6b 00 01 addi r11,r11,1 _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; ffc07d74: 7d 4a 02 14 add r10,r10,r0 /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc07d78: 7d 69 03 a6 mtctr r11 ffc07d7c: 48 00 00 08 b ffc07d84 <== ALWAYS TAKEN ffc07d80: 39 28 36 00 addi r9,r8,13824 ffc07d84: 7d 4b 53 78 mr r11,r10 ffc07d88: 3d 09 c4 65 addis r8,r9,-15259 ffc07d8c: 39 4a 00 01 addi r10,r10,1 ffc07d90: 42 00 ff f0 bdnz+ ffc07d80 ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { ffc07d94: 3d 40 c4 65 lis r10,-15259 ffc07d98: 61 4a 36 00 ori r10,r10,13824 ffc07d9c: 48 00 00 08 b ffc07da4 <== ALWAYS TAKEN ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc07da0: 39 28 ca 00 addi r9,r8,-13824 ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { ffc07da4: 7f 89 50 40 cmplw cr7,r9,r10 ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc07da8: 7d 60 5b 78 mr r0,r11 ffc07dac: 3d 09 3b 9b addis r8,r9,15259 ffc07db0: 39 6b ff ff addi r11,r11,-1 ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ts.tv_sec++; } /* if adjustment is too much negative */ while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) { ffc07db4: 40 9d ff ec ble+ cr7,ffc07da0 ffc07db8: 7c 23 0b 78 mr r3,r1 ffc07dbc: 91 21 00 0c stw r9,12(r1) ffc07dc0: 94 03 00 08 stwu r0,8(r3) ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND; ts.tv_sec--; } _TOD_Set( &ts ); ffc07dc4: 48 00 1c ed bl ffc09ab0 <_TOD_Set> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc07dc8: 48 00 32 fd bl ffc0b0c4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* set the user's output */ if ( olddelta ) ffc07dcc: 2f 9e 00 00 cmpwi cr7,r30,0 ffc07dd0: 41 9e 00 1c beq- cr7,ffc07dec <== NEVER TAKEN *olddelta = *delta; ffc07dd4: 81 3f 00 00 lwz r9,0(r31) ffc07dd8: 38 60 00 00 li r3,0 ffc07ddc: 81 5f 00 04 lwz r10,4(r31) ffc07de0: 91 3e 00 00 stw r9,0(r30) ffc07de4: 91 5e 00 04 stw r10,4(r30) ffc07de8: 48 00 00 08 b ffc07df0 <== ALWAYS TAKEN ffc07dec: 38 60 00 00 li r3,0 return 0; } ffc07df0: 80 01 00 24 lwz r0,36(r1) ffc07df4: 83 c1 00 18 lwz r30,24(r1) ffc07df8: 7c 08 03 a6 mtlr r0 ffc07dfc: 83 e1 00 1c lwz r31,28(r1) ffc07e00: 38 21 00 20 addi r1,r1,32 ffc07e04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07a78 : int aio_cancel( int filedes __attribute__((unused)), struct aiocb *aiocbp __attribute__((unused)) ) { ffc07a78: 94 21 ff f8 stwu r1,-8(r1) ffc07a7c: 7c 08 02 a6 mflr r0 ffc07a80: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07a84: 48 00 b0 55 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07a88: 38 00 00 58 li r0,88 ffc07a8c: 90 03 00 00 stw r0,0(r3) } ffc07a90: 38 60 ff ff li r3,-1 ffc07a94: 80 01 00 0c lwz r0,12(r1) ffc07a98: 38 21 00 08 addi r1,r1,8 ffc07a9c: 7c 08 03 a6 mtlr r0 ffc07aa0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07aa4 : #include int aio_error( const struct aiocb *aiocbp __attribute__((unused)) ) { ffc07aa4: 94 21 ff f8 stwu r1,-8(r1) ffc07aa8: 7c 08 02 a6 mflr r0 ffc07aac: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07ab0: 48 00 b0 29 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07ab4: 38 00 00 58 li r0,88 ffc07ab8: 90 03 00 00 stw r0,0(r3) } ffc07abc: 38 60 ff ff li r3,-1 ffc07ac0: 80 01 00 0c lwz r0,12(r1) ffc07ac4: 38 21 00 08 addi r1,r1,8 ffc07ac8: 7c 08 03 a6 mtlr r0 ffc07acc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07ad0 : int aio_fsync( int op __attribute__((unused)), struct aiocb *aiocbp __attribute__((unused)) ) { ffc07ad0: 94 21 ff f8 stwu r1,-8(r1) ffc07ad4: 7c 08 02 a6 mflr r0 ffc07ad8: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07adc: 48 00 af fd bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07ae0: 38 00 00 58 li r0,88 ffc07ae4: 90 03 00 00 stw r0,0(r3) } ffc07ae8: 38 60 ff ff li r3,-1 ffc07aec: 80 01 00 0c lwz r0,12(r1) ffc07af0: 38 21 00 08 addi r1,r1,8 ffc07af4: 7c 08 03 a6 mtlr r0 ffc07af8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07afc : #include int aio_read( struct aiocb *aiocbp __attribute__((unused)) ) { ffc07afc: 94 21 ff f8 stwu r1,-8(r1) ffc07b00: 7c 08 02 a6 mflr r0 ffc07b04: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07b08: 48 00 af d1 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07b0c: 38 00 00 58 li r0,88 ffc07b10: 90 03 00 00 stw r0,0(r3) } ffc07b14: 38 60 ff ff li r3,-1 ffc07b18: 80 01 00 0c lwz r0,12(r1) ffc07b1c: 38 21 00 08 addi r1,r1,8 ffc07b20: 7c 08 03 a6 mtlr r0 ffc07b24: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07b28 : #include int aio_return( const struct aiocb *aiocbp __attribute__((unused)) ) { ffc07b28: 94 21 ff f8 stwu r1,-8(r1) ffc07b2c: 7c 08 02 a6 mflr r0 ffc07b30: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07b34: 48 00 af a5 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07b38: 38 00 00 58 li r0,88 ffc07b3c: 90 03 00 00 stw r0,0(r3) } ffc07b40: 38 60 ff ff li r3,-1 ffc07b44: 80 01 00 0c lwz r0,12(r1) ffc07b48: 38 21 00 08 addi r1,r1,8 ffc07b4c: 7c 08 03 a6 mtlr r0 ffc07b50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07b54 : int aio_suspend( const struct aiocb * const list[] __attribute__((unused)), int nent __attribute__((unused)), const struct timespec *timeout __attribute__((unused)) ) { ffc07b54: 94 21 ff f8 stwu r1,-8(r1) ffc07b58: 7c 08 02 a6 mflr r0 ffc07b5c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07b60: 48 00 af 79 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07b64: 38 00 00 58 li r0,88 ffc07b68: 90 03 00 00 stw r0,0(r3) } ffc07b6c: 38 60 ff ff li r3,-1 ffc07b70: 80 01 00 0c lwz r0,12(r1) ffc07b74: 38 21 00 08 addi r1,r1,8 ffc07b78: 7c 08 03 a6 mtlr r0 ffc07b7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07b80 : #include int aio_write( struct aiocb *aiocbp __attribute__((unused)) ) { ffc07b80: 94 21 ff f8 stwu r1,-8(r1) ffc07b84: 7c 08 02 a6 mflr r0 ffc07b88: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07b8c: 48 00 af 4d bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07b90: 38 00 00 58 li r0,88 ffc07b94: 90 03 00 00 stw r0,0(r3) } ffc07b98: 38 60 ff ff li r3,-1 ffc07b9c: 80 01 00 0c lwz r0,12(r1) ffc07ba0: 38 21 00 08 addi r1,r1,8 ffc07ba4: 7c 08 03 a6 mtlr r0 ffc07ba8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10220 : } unsigned int alarm( unsigned int seconds ) { ffc10220: 94 21 ff e8 stwu r1,-24(r1) ffc10224: 7c 08 02 a6 mflr r0 ffc10228: 93 a1 00 0c stw r29,12(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc1022c: 3f a0 00 00 lis r29,0 ffc10230: 3b bd 35 24 addi r29,r29,13604 } unsigned int alarm( unsigned int seconds ) { ffc10234: 90 01 00 1c stw r0,28(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc10238: 80 1d 00 1c lwz r0,28(r29) } unsigned int alarm( unsigned int seconds ) { ffc1023c: 93 c1 00 10 stw r30,16(r1) ffc10240: 7c 7e 1b 78 mr r30,r3 /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc10244: 2f 80 00 00 cmpwi cr7,r0,0 } unsigned int alarm( unsigned int seconds ) { ffc10248: 93 e1 00 14 stw r31,20(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc1024c: 40 be 00 24 bne+ cr7,ffc10270 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc10250: 3d 20 ff c1 lis r9,-63 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc10254: 90 1d 00 24 stw r0,36(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc10258: 39 29 02 e8 addi r9,r9,744 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc1025c: 3b e0 00 00 li r31,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc10260: 91 3d 00 1c stw r9,28(r29) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc10264: 90 1d 00 08 stw r0,8(r29) the_watchdog->routine = routine; the_watchdog->id = id; ffc10268: 90 1d 00 20 stw r0,32(r29) ffc1026c: 48 00 00 38 b ffc102a4 <== ALWAYS TAKEN _Watchdog_Initialize( the_timer, _POSIX_signals_Alarm_TSR, 0, NULL ); } else { Watchdog_States state; state = _Watchdog_Remove( the_timer ); ffc10270: 7f a3 eb 78 mr r3,r29 ffc10274: 4b ff b7 a5 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) { ffc10278: 3b e0 00 00 li r31,0 ffc1027c: 38 63 ff fe addi r3,r3,-2 ffc10280: 2b 83 00 01 cmplwi cr7,r3,1 ffc10284: 41 bd 00 20 bgt+ cr7,ffc102a4 * boot. Since alarm() is dealing in seconds, we must account for * this. */ remaining = the_timer->initial - ((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND); ffc10288: 80 1d 00 14 lwz r0,20(r29) ffc1028c: 83 fd 00 18 lwz r31,24(r29) * The stop_time and start_time fields are snapshots of ticks since * boot. Since alarm() is dealing in seconds, we must account for * this. */ remaining = the_timer->initial - ffc10290: 83 bd 00 0c lwz r29,12(r29) ((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND); ffc10294: 7f e0 f8 50 subf r31,r0,r31 ffc10298: 48 00 0c 11 bl ffc10ea8 <== ALWAYS TAKEN * The stop_time and start_time fields are snapshots of ticks since * boot. Since alarm() is dealing in seconds, we must account for * this. */ remaining = the_timer->initial - ffc1029c: 7f ff 1b 96 divwu r31,r31,r3 ffc102a0: 7f ff e8 50 subf r31,r31,r29 ((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND); } } if ( seconds ) ffc102a4: 2f 9e 00 00 cmpwi cr7,r30,0 ffc102a8: 41 be 00 20 beq+ cr7,ffc102c8 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc102ac: 3d 20 00 00 lis r9,0 ffc102b0: 39 29 35 24 addi r9,r9,13604 _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc102b4: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc102b8: 93 c9 00 0c stw r30,12(r9) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc102bc: 38 63 2d 3c addi r3,r3,11580 ffc102c0: 7d 24 4b 78 mr r4,r9 ffc102c4: 4b ff b5 fd bl ffc0b8c0 <_Watchdog_Insert> <== ALWAYS TAKEN _Watchdog_Insert_seconds( the_timer, seconds ); return remaining; } ffc102c8: 80 01 00 1c lwz r0,28(r1) ffc102cc: 7f e3 fb 78 mr r3,r31 ffc102d0: 83 a1 00 0c lwz r29,12(r1) ffc102d4: 7c 08 03 a6 mtlr r0 ffc102d8: 83 c1 00 10 lwz r30,16(r1) ffc102dc: 83 e1 00 14 lwz r31,20(r1) ffc102e0: 38 21 00 18 addi r1,r1,24 ffc102e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cea4 : ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0cea4: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0cea8: 7c 08 02 a6 mflr r0 ffc0ceac: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0ceb0: 90 01 00 14 stw r0,20(r1) ffc0ceb4: 39 29 2b 00 addi r9,r9,11008 ffc0ceb8: 81 69 00 14 lwz r11,20(r9) ffc0cebc: 93 c1 00 08 stw r30,8(r1) length = nelem * elsize; ffc0cec0: 7f c4 19 d6 mullw r30,r4,r3 ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0cec4: 38 0b 00 01 addi r0,r11,1 ffc0cec8: 93 e1 00 0c stw r31,12(r1) length = nelem * elsize; cptr = malloc( length ); ffc0cecc: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0ced0: 90 09 00 14 stw r0,20(r9) <== ALWAYS TAKEN length = nelem * elsize; cptr = malloc( length ); ffc0ced4: 4b ff 74 e9 bl ffc043bc <== ALWAYS TAKEN if ( cptr ) ffc0ced8: 7c 7f 1b 79 mr. r31,r3 ffc0cedc: 41 82 00 10 beq- ffc0ceec <== NEVER TAKEN memset( cptr, '\0', length ); ffc0cee0: 7f c5 f3 78 mr r5,r30 ffc0cee4: 38 80 00 00 li r4,0 ffc0cee8: 48 00 5a 0d bl ffc128f4 <== ALWAYS TAKEN MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc0ceec: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN return cptr; } ffc0cef0: 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 */ ffc0cef4: 39 29 2b 00 addi r9,r9,11008 ffc0cef8: 81 69 00 04 lwz r11,4(r9) return cptr; } ffc0cefc: 7f e3 fb 78 mr r3,r31 ffc0cf00: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN length = nelem * elsize; cptr = malloc( length ); if ( cptr ) memset( cptr, '\0', length ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc0cf04: 38 0b ff ff addi r0,r11,-1 ffc0cf08: 90 09 00 04 stw r0,4(r9) return cptr; } ffc0cf0c: 80 01 00 14 lwz r0,20(r1) ffc0cf10: 38 21 00 10 addi r1,r1,16 ffc0cf14: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0cf18: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2a8b4 : #include int chdir( const char *pathname ) { ffc2a8b4: 94 21 ff d0 stwu r1,-48(r1) ffc2a8b8: 7c 08 02 a6 mflr r0 ffc2a8bc: 93 c1 00 28 stw r30,40(r1) ffc2a8c0: 7c 7e 1b 78 mr r30,r3 ffc2a8c4: 90 01 00 34 stw r0,52(r1) ffc2a8c8: 93 e1 00 2c stw r31,44(r1) /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); ffc2a8cc: 48 02 4b 89 bl ffc4f454 <== ALWAYS TAKEN /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc2a8d0: 3b e1 00 08 addi r31,r1,8 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); ffc2a8d4: 7c 64 1b 78 mr r4,r3 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc2a8d8: 38 a0 00 01 li r5,1 ffc2a8dc: 7f c3 f3 78 mr r3,r30 ffc2a8e0: 7f e6 fb 78 mr r6,r31 ffc2a8e4: 38 e0 00 01 li r7,1 ffc2a8e8: 4b fd da 55 bl ffc0833c <== ALWAYS TAKEN pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) ffc2a8ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc2a8f0: 38 60 ff ff li r3,-1 ffc2a8f4: 40 9e 00 e4 bne- cr7,ffc2a9d8 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { ffc2a8f8: 81 21 00 14 lwz r9,20(r1) ffc2a8fc: 80 09 00 10 lwz r0,16(r9) ffc2a900: 2f 80 00 00 cmpwi cr7,r0,0 ffc2a904: 40 be 00 28 bne+ cr7,ffc2a92c <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc2a908: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2a90c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2a910: 41 9e 00 10 beq- cr7,ffc2a920 <== NOT EXECUTED ffc2a914: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2a918: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2a91c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2a920: 48 01 cd 6d bl ffc4768c <__errno> <== NOT EXECUTED ffc2a924: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2a928: 48 00 00 44 b ffc2a96c <== NOT EXECUTED } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { ffc2a92c: 7f e3 fb 78 mr r3,r31 ffc2a930: 7c 09 03 a6 mtctr r0 ffc2a934: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc2a938: 2f 83 00 01 cmpwi cr7,r3,1 ffc2a93c: 41 be 00 3c beq+ cr7,ffc2a978 rtems_filesystem_freenode( &loc ); ffc2a940: 81 21 00 14 lwz r9,20(r1) ffc2a944: 2f 89 00 00 cmpwi cr7,r9,0 ffc2a948: 41 9e 00 1c beq- cr7,ffc2a964 <== NEVER TAKEN ffc2a94c: 80 09 00 1c lwz r0,28(r9) ffc2a950: 2f 80 00 00 cmpwi cr7,r0,0 ffc2a954: 41 9e 00 10 beq- cr7,ffc2a964 <== NEVER TAKEN ffc2a958: 7f e3 fb 78 mr r3,r31 ffc2a95c: 7c 09 03 a6 mtctr r0 ffc2a960: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc2a964: 48 01 cd 29 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2a968: 38 00 00 14 li r0,20 ffc2a96c: 90 03 00 00 stw r0,0(r3) ffc2a970: 38 60 ff ff li r3,-1 ffc2a974: 48 00 00 64 b ffc2a9d8 <== ALWAYS TAKEN } rtems_filesystem_freenode( &rtems_filesystem_current ); ffc2a978: 3d 20 00 00 lis r9,0 ffc2a97c: 80 69 35 2c lwz r3,13612(r9) ffc2a980: 81 23 00 10 lwz r9,16(r3) ffc2a984: 2f 89 00 00 cmpwi cr7,r9,0 ffc2a988: 41 9e 00 1c beq- cr7,ffc2a9a4 <== NEVER TAKEN ffc2a98c: 80 09 00 1c lwz r0,28(r9) ffc2a990: 2f 80 00 00 cmpwi cr7,r0,0 ffc2a994: 41 9e 00 10 beq- cr7,ffc2a9a4 <== NEVER TAKEN ffc2a998: 38 63 00 04 addi r3,r3,4 ffc2a99c: 7c 09 03 a6 mtctr r0 ffc2a9a0: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_current = loc; ffc2a9a4: 3d 20 00 00 lis r9,0 ffc2a9a8: 80 01 00 14 lwz r0,20(r1) ffc2a9ac: 81 29 35 2c lwz r9,13612(r9) ffc2a9b0: 38 60 00 00 li r3,0 ffc2a9b4: 81 41 00 0c lwz r10,12(r1) ffc2a9b8: 81 61 00 10 lwz r11,16(r1) ffc2a9bc: 81 01 00 08 lwz r8,8(r1) ffc2a9c0: 91 49 00 08 stw r10,8(r9) ffc2a9c4: 91 09 00 04 stw r8,4(r9) ffc2a9c8: 91 69 00 0c stw r11,12(r9) ffc2a9cc: 90 09 00 10 stw r0,16(r9) ffc2a9d0: 80 01 00 18 lwz r0,24(r1) ffc2a9d4: 90 09 00 14 stw r0,20(r9) return 0; } ffc2a9d8: 80 01 00 34 lwz r0,52(r1) ffc2a9dc: 83 c1 00 28 lwz r30,40(r1) ffc2a9e0: 7c 08 03 a6 mtlr r0 ffc2a9e4: 83 e1 00 2c lwz r31,44(r1) ffc2a9e8: 38 21 00 30 addi r1,r1,48 ffc2a9ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07f9c : int chmod( const char *path, mode_t mode ) { ffc07f9c: 94 21 ff c8 stwu r1,-56(r1) ffc07fa0: 7c 08 02 a6 mflr r0 ffc07fa4: 93 a1 00 2c stw r29,44(r1) ffc07fa8: 7c 7d 1b 78 mr r29,r3 ffc07fac: 90 01 00 3c stw r0,60(r1) ffc07fb0: 93 c1 00 30 stw r30,48(r1) ffc07fb4: 7c 9e 23 78 mr r30,r4 ffc07fb8: 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 ); ffc07fbc: 48 04 74 99 bl ffc4f454 <== ALWAYS TAKEN ffc07fc0: 3b e1 00 08 addi r31,r1,8 ffc07fc4: 7c 64 1b 78 mr r4,r3 ffc07fc8: 38 a0 00 00 li r5,0 ffc07fcc: 7f a3 eb 78 mr r3,r29 ffc07fd0: 7f e6 fb 78 mr r6,r31 ffc07fd4: 38 e0 00 01 li r7,1 ffc07fd8: 48 00 03 65 bl ffc0833c <== ALWAYS TAKEN if ( status != 0 ) ffc07fdc: 3b a0 ff ff li r29,-1 ffc07fe0: 2f 83 00 00 cmpwi cr7,r3,0 ffc07fe4: 40 9e 00 bc bne- cr7,ffc080a0 return -1; if ( !loc.handlers ){ ffc07fe8: 81 21 00 10 lwz r9,16(r1) ffc07fec: 2f 89 00 00 cmpwi cr7,r9,0 ffc07ff0: 40 be 00 34 bne+ cr7,ffc08024 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc07ff4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc07ff8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc07ffc: 41 9e 00 1c beq- cr7,ffc08018 <== NOT EXECUTED ffc08000: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc08004: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc08008: 41 9e 00 10 beq- cr7,ffc08018 <== NOT EXECUTED ffc0800c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc08010: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc08014: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); ffc08018: 48 03 f6 75 bl ffc4768c <__errno> <== NOT EXECUTED ffc0801c: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc08020: 48 00 00 3c b ffc0805c <== NOT EXECUTED } if ( !loc.handlers->fchmod_h ){ ffc08024: 80 09 00 1c lwz r0,28(r9) ffc08028: 2f 80 00 00 cmpwi cr7,r0,0 ffc0802c: 40 be 00 3c bne+ cr7,ffc08068 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc08030: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc08034: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc08038: 41 9e 00 1c beq- cr7,ffc08054 <== NOT EXECUTED ffc0803c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc08040: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc08044: 41 9e 00 10 beq- cr7,ffc08054 <== NOT EXECUTED ffc08048: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0804c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc08050: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc08054: 48 03 f6 39 bl ffc4768c <__errno> <== NOT EXECUTED ffc08058: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0805c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc08060: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc08064: 48 00 00 3c b ffc080a0 <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); ffc08068: 7f c4 f3 78 mr r4,r30 ffc0806c: 7c 09 03 a6 mtctr r0 ffc08070: 7f e3 fb 78 mr r3,r31 ffc08074: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc08078: 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 ); ffc0807c: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc08080: 2f 89 00 00 cmpwi cr7,r9,0 ffc08084: 41 9e 00 1c beq- cr7,ffc080a0 <== NEVER TAKEN ffc08088: 80 09 00 1c lwz r0,28(r9) ffc0808c: 2f 80 00 00 cmpwi cr7,r0,0 ffc08090: 41 9e 00 10 beq- cr7,ffc080a0 <== NEVER TAKEN ffc08094: 7f e3 fb 78 mr r3,r31 ffc08098: 7c 09 03 a6 mtctr r0 ffc0809c: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc080a0: 80 01 00 3c lwz r0,60(r1) ffc080a4: 7f a3 eb 78 mr r3,r29 ffc080a8: 83 c1 00 30 lwz r30,48(r1) ffc080ac: 7c 08 03 a6 mtlr r0 ffc080b0: 83 a1 00 2c lwz r29,44(r1) ffc080b4: 83 e1 00 34 lwz r31,52(r1) ffc080b8: 38 21 00 38 addi r1,r1,56 ffc080bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2a9f0 : int chown( const char *path, uid_t owner, gid_t group ) { ffc2a9f0: 94 21 ff c8 stwu r1,-56(r1) ffc2a9f4: 7c 08 02 a6 mflr r0 ffc2a9f8: 93 81 00 28 stw r28,40(r1) ffc2a9fc: 7c 7c 1b 78 mr r28,r3 ffc2aa00: 90 01 00 3c stw r0,60(r1) ffc2aa04: 93 a1 00 2c stw r29,44(r1) ffc2aa08: 7c 9d 23 78 mr r29,r4 ffc2aa0c: 93 c1 00 30 stw r30,48(r1) ffc2aa10: 7c be 2b 78 mr r30,r5 ffc2aa14: 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 ) ) ffc2aa18: 48 02 4a 3d bl ffc4f454 <== ALWAYS TAKEN ffc2aa1c: 3b e1 00 08 addi r31,r1,8 ffc2aa20: 7c 64 1b 78 mr r4,r3 ffc2aa24: 38 a0 00 00 li r5,0 ffc2aa28: 7f 83 e3 78 mr r3,r28 ffc2aa2c: 7f e6 fb 78 mr r6,r31 ffc2aa30: 38 e0 00 01 li r7,1 ffc2aa34: 4b fd d9 09 bl ffc0833c <== ALWAYS TAKEN ffc2aa38: 3b 80 ff ff li r28,-1 ffc2aa3c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2aa40: 40 9e 00 7c bne- cr7,ffc2aabc return -1; if ( !loc.ops->chown_h ) { ffc2aa44: 81 21 00 14 lwz r9,20(r1) ffc2aa48: 80 09 00 18 lwz r0,24(r9) ffc2aa4c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2aa50: 40 be 00 30 bne+ cr7,ffc2aa80 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc2aa54: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2aa58: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2aa5c: 41 9e 00 10 beq- cr7,ffc2aa6c <== NOT EXECUTED ffc2aa60: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2aa64: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2aa68: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2aa6c: 48 01 cc 21 bl ffc4768c <__errno> <== NOT EXECUTED ffc2aa70: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2aa74: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2aa78: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc2aa7c: 48 00 00 40 b ffc2aabc <== NOT EXECUTED } result = (*loc.ops->chown_h)( &loc, owner, group ); ffc2aa80: 7f a4 eb 78 mr r4,r29 ffc2aa84: 7c 09 03 a6 mtctr r0 ffc2aa88: 7f c5 f3 78 mr r5,r30 ffc2aa8c: 7f e3 fb 78 mr r3,r31 ffc2aa90: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc2aa94: 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 ); ffc2aa98: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc2aa9c: 2f 89 00 00 cmpwi cr7,r9,0 ffc2aaa0: 41 9e 00 1c beq- cr7,ffc2aabc <== NEVER TAKEN ffc2aaa4: 80 09 00 1c lwz r0,28(r9) ffc2aaa8: 2f 80 00 00 cmpwi cr7,r0,0 ffc2aaac: 41 9e 00 10 beq- cr7,ffc2aabc <== NEVER TAKEN ffc2aab0: 7f e3 fb 78 mr r3,r31 ffc2aab4: 7c 09 03 a6 mtctr r0 ffc2aab8: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc2aabc: 80 01 00 3c lwz r0,60(r1) ffc2aac0: 7f 83 e3 78 mr r3,r28 ffc2aac4: 83 a1 00 2c lwz r29,44(r1) ffc2aac8: 7c 08 03 a6 mtlr r0 ffc2aacc: 83 81 00 28 lwz r28,40(r1) ffc2aad0: 83 c1 00 30 lwz r30,48(r1) ffc2aad4: 83 e1 00 34 lwz r31,52(r1) ffc2aad8: 38 21 00 38 addi r1,r1,56 ffc2aadc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2aae0 : #include int chroot( const char *pathname ) { ffc2aae0: 94 21 ff c8 stwu r1,-56(r1) ffc2aae4: 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) { ffc2aae8: 3d 20 00 00 lis r9,0 #include int chroot( const char *pathname ) { ffc2aaec: 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) { ffc2aaf0: 3f c0 00 00 lis r30,0 #include int chroot( const char *pathname ) { ffc2aaf4: 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) { ffc2aaf8: 83 fe 35 2c lwz r31,13612(r30) #include int chroot( const char *pathname ) { ffc2aafc: 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) { ffc2ab00: 38 09 63 dc addi r0,r9,25564 ffc2ab04: 7f 9f 00 00 cmpw cr7,r31,r0 #include int chroot( const char *pathname ) { ffc2ab08: 93 a1 00 2c stw r29,44(r1) ffc2ab0c: 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) { ffc2ab10: 40 be 00 28 bne+ cr7,ffc2ab38 <== NEVER TAKEN rtems_libio_set_private_env(); /* try to set a new private env*/ ffc2ab14: 48 00 1d 89 bl ffc2c89c <== ALWAYS TAKEN if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ ffc2ab18: 80 1e 35 2c lwz r0,13612(r30) ffc2ab1c: 7f 80 f8 00 cmpw cr7,r0,r31 ffc2ab20: 40 be 00 18 bne+ cr7,ffc2ab38 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2ab24: 48 01 cb 69 bl ffc4768c <__errno> <== NOT EXECUTED ffc2ab28: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2ab2c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2ab30: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2ab34: 48 00 00 b4 b ffc2abe8 <== NOT EXECUTED } result = chdir(pathname); ffc2ab38: 7f a3 eb 78 mr r3,r29 ffc2ab3c: 4b ff fd 79 bl ffc2a8b4 <== ALWAYS TAKEN if (result) { ffc2ab40: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ab44: 40 9e 00 28 bne- cr7,ffc2ab6c <== NEVER TAKEN rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc2ab48: 3c 60 ff c6 lis r3,-58 ffc2ab4c: 38 63 59 05 addi r3,r3,22789 ffc2ab50: 38 80 00 01 li r4,1 ffc2ab54: 38 a0 00 00 li r5,0 ffc2ab58: 38 c1 00 08 addi r6,r1,8 ffc2ab5c: 38 e0 00 00 li r7,0 ffc2ab60: 4b fd d7 dd bl ffc0833c <== ALWAYS TAKEN ffc2ab64: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ab68: 41 be 00 20 beq+ cr7,ffc2ab88 <== ALWAYS TAKEN /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); ffc2ab6c: 48 01 cb 21 bl ffc4768c <__errno> <== NOT EXECUTED ffc2ab70: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc2ab74: 48 01 cb 19 bl ffc4768c <__errno> <== NOT EXECUTED ffc2ab78: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc2ab7c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2ab80: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED ffc2ab84: 48 00 00 64 b ffc2abe8 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); ffc2ab88: 3d 20 00 00 lis r9,0 ffc2ab8c: 80 69 35 2c lwz r3,13612(r9) ffc2ab90: 81 23 00 24 lwz r9,36(r3) ffc2ab94: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ab98: 41 9e 00 1c beq- cr7,ffc2abb4 <== NEVER TAKEN ffc2ab9c: 80 09 00 1c lwz r0,28(r9) ffc2aba0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2aba4: 41 9e 00 10 beq- cr7,ffc2abb4 <== NEVER TAKEN ffc2aba8: 38 63 00 18 addi r3,r3,24 ffc2abac: 7c 09 03 a6 mtctr r0 ffc2abb0: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_root = loc; ffc2abb4: 3d 20 00 00 lis r9,0 ffc2abb8: 80 01 00 14 lwz r0,20(r1) ffc2abbc: 81 29 35 2c lwz r9,13612(r9) ffc2abc0: 38 60 00 00 li r3,0 ffc2abc4: 81 41 00 0c lwz r10,12(r1) ffc2abc8: 81 61 00 10 lwz r11,16(r1) ffc2abcc: 81 01 00 08 lwz r8,8(r1) ffc2abd0: 91 49 00 1c stw r10,28(r9) ffc2abd4: 91 09 00 18 stw r8,24(r9) ffc2abd8: 91 69 00 20 stw r11,32(r9) ffc2abdc: 90 09 00 24 stw r0,36(r9) ffc2abe0: 80 01 00 18 lwz r0,24(r1) ffc2abe4: 90 09 00 28 stw r0,40(r9) return 0; } ffc2abe8: 80 01 00 3c lwz r0,60(r1) ffc2abec: 83 a1 00 2c lwz r29,44(r1) ffc2abf0: 7c 08 03 a6 mtlr r0 ffc2abf4: 83 c1 00 30 lwz r30,48(r1) ffc2abf8: 83 e1 00 34 lwz r31,52(r1) ffc2abfc: 38 21 00 38 addi r1,r1,56 ffc2ac00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07bac : int clock_getcpuclockid( pid_t pid, clockid_t *clock_id ) { ffc07bac: 94 21 ff f8 stwu r1,-8(r1) ffc07bb0: 7c 08 02 a6 mflr r0 ffc07bb4: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07bb8: 48 00 af 21 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07bbc: 38 00 00 58 li r0,88 ffc07bc0: 90 03 00 00 stw r0,0(r3) } ffc07bc4: 38 60 ff ff li r3,-1 ffc07bc8: 80 01 00 0c lwz r0,12(r1) ffc07bcc: 38 21 00 08 addi r1,r1,8 ffc07bd0: 7c 08 03 a6 mtlr r0 ffc07bd4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07bd8 : int clock_getenable_attr( clockid_t clock_id, int *attr ) { ffc07bd8: 94 21 ff f8 stwu r1,-8(r1) ffc07bdc: 7c 08 02 a6 mflr r0 ffc07be0: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07be4: 48 00 ae f5 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07be8: 38 00 00 58 li r0,88 ffc07bec: 90 03 00 00 stw r0,0(r3) } ffc07bf0: 38 60 ff ff li r3,-1 ffc07bf4: 80 01 00 0c lwz r0,12(r1) ffc07bf8: 38 21 00 08 addi r1,r1,8 ffc07bfc: 7c 08 03 a6 mtlr r0 ffc07c00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc082f8 : int clock_getres( clockid_t clock_id, struct timespec *res ) { if ( !res ) ffc082f8: 2c 04 00 00 cmpwi r4,0 int clock_getres( clockid_t clock_id, struct timespec *res ) { ffc082fc: 94 21 ff f8 stwu r1,-8(r1) ffc08300: 7c 08 02 a6 mflr r0 ffc08304: 90 01 00 0c stw r0,12(r1) if ( !res ) ffc08308: 41 82 00 38 beq- ffc08340 rtems_set_errno_and_return_minus_one( EINVAL ); switch ( clock_id ) { ffc0830c: 38 63 ff ff addi r3,r3,-1 ffc08310: 2b 83 00 02 cmplwi cr7,r3,2 ffc08314: 41 9d 00 2c bgt- cr7,ffc08340 case CLOCK_REALTIME: case CLOCK_PROCESS_CPUTIME: case CLOCK_THREAD_CPUTIME: if ( res ) { res->tv_sec = rtems_configuration_get_microseconds_per_tick() / ffc08318: 3d 20 00 00 lis r9,0 ffc0831c: 80 09 20 ac lwz r0,8364(r9) ffc08320: 3d 20 00 0f lis r9,15 ffc08324: 61 29 42 40 ori r9,r9,16960 ffc08328: 7d 20 4b 96 divwu r9,r0,r9 TOD_MICROSECONDS_PER_SECOND; res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick(); ffc0832c: 1c 00 03 e8 mulli r0,r0,1000 case CLOCK_REALTIME: case CLOCK_PROCESS_CPUTIME: case CLOCK_THREAD_CPUTIME: if ( res ) { res->tv_sec = rtems_configuration_get_microseconds_per_tick() / ffc08330: 91 24 00 00 stw r9,0(r4) TOD_MICROSECONDS_PER_SECOND; res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick(); ffc08334: 38 60 00 00 li r3,0 ffc08338: 90 04 00 04 stw r0,4(r4) ffc0833c: 48 00 00 14 b ffc08350 <== ALWAYS TAKEN } break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc08340: 48 00 ac f5 bl ffc13034 <__errno> <== ALWAYS TAKEN ffc08344: 38 00 00 16 li r0,22 ffc08348: 90 03 00 00 stw r0,0(r3) ffc0834c: 38 60 ff ff li r3,-1 } return 0; } ffc08350: 80 01 00 0c lwz r0,12(r1) ffc08354: 38 21 00 08 addi r1,r1,8 ffc08358: 7c 08 03 a6 mtlr r0 ffc0835c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07b9c : int clock_gettime( clockid_t clock_id, struct timespec *tp ) { if ( !tp ) ffc07b9c: 2c 04 00 00 cmpwi r4,0 int clock_gettime( clockid_t clock_id, struct timespec *tp ) { ffc07ba0: 94 21 ff f8 stwu r1,-8(r1) ffc07ba4: 7c 08 02 a6 mflr r0 ffc07ba8: 90 01 00 0c stw r0,12(r1) if ( !tp ) ffc07bac: 41 82 00 4c beq- ffc07bf8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { ffc07bb0: 2f 83 00 01 cmpwi cr7,r3,1 ffc07bb4: 40 be 00 10 bne+ cr7,ffc07bc4 _TOD_Get(tp); ffc07bb8: 7c 83 23 78 mr r3,r4 ffc07bbc: 48 00 25 79 bl ffc0a134 <_TOD_Get> <== ALWAYS TAKEN ffc07bc0: 48 00 00 1c b ffc07bdc <== ALWAYS TAKEN return 0; } #ifdef CLOCK_MONOTONIC if ( clock_id == CLOCK_MONOTONIC ) { ffc07bc4: 2f 83 00 04 cmpwi cr7,r3,4 ffc07bc8: 41 9e 00 0c beq- cr7,ffc07bd4 <== NEVER TAKEN return 0; } #endif #ifdef _POSIX_CPUTIME if ( clock_id == CLOCK_PROCESS_CPUTIME ) { ffc07bcc: 2f 83 00 02 cmpwi cr7,r3,2 ffc07bd0: 40 be 00 14 bne+ cr7,ffc07be4 _TOD_Get_uptime_as_timespec( tp ); ffc07bd4: 7c 83 23 78 mr r3,r4 ffc07bd8: 48 00 26 01 bl ffc0a1d8 <_TOD_Get_uptime_as_timespec> <== ALWAYS TAKEN ffc07bdc: 38 60 00 00 li r3,0 return 0; ffc07be0: 48 00 00 28 b ffc07c08 <== ALWAYS TAKEN } #endif #ifdef _POSIX_THREAD_CPUTIME if ( clock_id == CLOCK_THREAD_CPUTIME ) ffc07be4: 2f 83 00 03 cmpwi cr7,r3,3 ffc07be8: 40 be 00 10 bne+ cr7,ffc07bf8 rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07bec: 48 00 b3 cd bl ffc12fb8 <__errno> <== ALWAYS TAKEN ffc07bf0: 38 00 00 58 li r0,88 ffc07bf4: 48 00 00 0c b ffc07c00 <== ALWAYS TAKEN #endif rtems_set_errno_and_return_minus_one( EINVAL ); ffc07bf8: 48 00 b3 c1 bl ffc12fb8 <__errno> <== ALWAYS TAKEN ffc07bfc: 38 00 00 16 li r0,22 ffc07c00: 90 03 00 00 stw r0,0(r3) ffc07c04: 38 60 ff ff li r3,-1 return 0; } ffc07c08: 80 01 00 0c lwz r0,12(r1) ffc07c0c: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc07c10: 7c 08 03 a6 mtlr r0 ffc07c14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07c04 : int clock_setenable_attr( clockid_t clock_id, int attr ) { ffc07c04: 94 21 ff f8 stwu r1,-8(r1) ffc07c08: 7c 08 02 a6 mflr r0 ffc07c0c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07c10: 48 00 ae c9 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07c14: 38 00 00 58 li r0,88 ffc07c18: 90 03 00 00 stw r0,0(r3) } ffc07c1c: 38 60 ff ff li r3,-1 ffc07c20: 80 01 00 0c lwz r0,12(r1) ffc07c24: 38 21 00 08 addi r1,r1,8 ffc07c28: 7c 08 03 a6 mtlr r0 ffc07c2c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2d084 : int clock_settime( clockid_t clock_id, const struct timespec *tp ) { if ( !tp ) ffc2d084: 2c 04 00 00 cmpwi r4,0 int clock_settime( clockid_t clock_id, const struct timespec *tp ) { ffc2d088: 94 21 ff f8 stwu r1,-8(r1) ffc2d08c: 7c 08 02 a6 mflr r0 ffc2d090: 90 01 00 0c stw r0,12(r1) if ( !tp ) ffc2d094: 41 82 00 60 beq- ffc2d0f4 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { ffc2d098: 2f 83 00 01 cmpwi cr7,r3,1 ffc2d09c: 40 be 00 3c bne+ cr7,ffc2d0d8 if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 ) ffc2d0a0: 81 24 00 00 lwz r9,0(r4) ffc2d0a4: 3c 00 21 da lis r0,8666 ffc2d0a8: 60 00 e4 ff ori r0,r0,58623 ffc2d0ac: 7f 89 00 40 cmplw cr7,r9,r0 ffc2d0b0: 40 9d 00 44 ble- cr7,ffc2d0f4 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc2d0b4: 3d 20 00 00 lis r9,0 ffc2d0b8: 81 69 36 18 lwz r11,13848(r9) ffc2d0bc: 38 0b 00 01 addi r0,r11,1 ffc2d0c0: 90 09 36 18 stw r0,13848(r9) rtems_set_errno_and_return_minus_one( EINVAL ); _Thread_Disable_dispatch(); _TOD_Set( tp ); ffc2d0c4: 7c 83 23 78 mr r3,r4 ffc2d0c8: 48 00 22 29 bl ffc2f2f0 <_TOD_Set> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc2d0cc: 4b fe 2e 7d bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc2d0d0: 38 60 00 00 li r3,0 rtems_set_errno_and_return_minus_one( ENOSYS ); #endif else rtems_set_errno_and_return_minus_one( EINVAL ); return 0; ffc2d0d4: 48 00 00 30 b ffc2d104 <== ALWAYS TAKEN _Thread_Disable_dispatch(); _TOD_Set( tp ); _Thread_Enable_dispatch(); } #ifdef _POSIX_CPUTIME else if ( clock_id == CLOCK_PROCESS_CPUTIME ) ffc2d0d8: 2f 83 00 02 cmpwi cr7,r3,2 ffc2d0dc: 41 9e 00 0c beq- cr7,ffc2d0e8 rtems_set_errno_and_return_minus_one( ENOSYS ); #endif #ifdef _POSIX_THREAD_CPUTIME else if ( clock_id == CLOCK_THREAD_CPUTIME ) ffc2d0e0: 2f 83 00 03 cmpwi cr7,r3,3 ffc2d0e4: 40 be 00 10 bne+ cr7,ffc2d0f4 rtems_set_errno_and_return_minus_one( ENOSYS ); ffc2d0e8: 48 01 a5 a5 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2d0ec: 38 00 00 58 li r0,88 ffc2d0f0: 48 00 00 0c b ffc2d0fc <== ALWAYS TAKEN #endif else rtems_set_errno_and_return_minus_one( EINVAL ); ffc2d0f4: 48 01 a5 99 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2d0f8: 38 00 00 16 li r0,22 ffc2d0fc: 90 03 00 00 stw r0,0(r3) ffc2d100: 38 60 ff ff li r3,-1 return 0; } ffc2d104: 80 01 00 0c lwz r0,12(r1) ffc2d108: 38 21 00 08 addi r1,r1,8 ffc2d10c: 7c 08 03 a6 mtlr r0 ffc2d110: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cf1c : #include int close( int fd ) { ffc0cf1c: 94 21 ff f0 stwu r1,-16(r1) ffc0cf20: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0cf24: 3d 20 00 00 lis r9,0 #include int close( int fd ) { ffc0cf28: 90 01 00 14 stw r0,20(r1) rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0cf2c: 80 09 26 8c lwz r0,9868(r9) <== ALWAYS TAKEN #include int close( int fd ) { ffc0cf30: 93 c1 00 08 stw r30,8(r1) rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0cf34: 7f 83 00 40 cmplw cr7,r3,r0 #include int close( int fd ) { ffc0cf38: 93 e1 00 0c stw r31,12(r1) rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0cf3c: 40 9c 00 20 bge- cr7,ffc0cf5c iop = rtems_libio_iop(fd); ffc0cf40: 3d 20 00 00 lis r9,0 ffc0cf44: 83 e9 27 4c lwz r31,10060(r9) ffc0cf48: 1c 63 00 48 mulli r3,r3,72 <== ALWAYS TAKEN ffc0cf4c: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc0cf50: 80 1f 00 18 lwz r0,24(r31) ffc0cf54: 70 09 01 00 andi. r9,r0,256 ffc0cf58: 40 a2 00 18 bne+ ffc0cf70 ffc0cf5c: 48 00 4c b1 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0cf60: 38 00 00 09 li r0,9 ffc0cf64: 90 03 00 00 stw r0,0(r3) ffc0cf68: 38 60 ff ff li r3,-1 ffc0cf6c: 48 00 00 58 b ffc0cfc4 <== ALWAYS TAKEN rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) ffc0cf70: 81 3f 00 40 lwz r9,64(r31) ffc0cf74: 3b c0 00 00 li r30,0 ffc0cf78: 80 09 00 04 lwz r0,4(r9) <== ALWAYS TAKEN ffc0cf7c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cf80: 41 9e 00 14 beq- cr7,ffc0cf94 <== NEVER TAKEN rc = (*iop->handlers->close_h)( iop ); ffc0cf84: 7f e3 fb 78 mr r3,r31 ffc0cf88: 7c 09 03 a6 mtctr r0 ffc0cf8c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0cf90: 7c 7e 1b 78 mr r30,r3 <== ALWAYS TAKEN rtems_filesystem_freenode( &iop->pathinfo ); ffc0cf94: 81 3f 00 28 lwz r9,40(r31) ffc0cf98: 2f 89 00 00 cmpwi cr7,r9,0 ffc0cf9c: 41 9e 00 1c beq- cr7,ffc0cfb8 <== NEVER TAKEN ffc0cfa0: 80 09 00 1c lwz r0,28(r9) <== ALWAYS TAKEN ffc0cfa4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cfa8: 41 9e 00 10 beq- cr7,ffc0cfb8 ffc0cfac: 38 7f 00 1c addi r3,r31,28 ffc0cfb0: 7c 09 03 a6 mtctr r0 ffc0cfb4: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_libio_free( iop ); ffc0cfb8: 7f e3 fb 78 mr r3,r31 ffc0cfbc: 48 00 03 81 bl ffc0d33c <== ALWAYS TAKEN return rc; ffc0cfc0: 7f c3 f3 78 mr r3,r30 } ffc0cfc4: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc0cfc8: 83 c1 00 08 lwz r30,8(r1) ffc0cfcc: 7c 08 03 a6 mtlr r0 ffc0cfd0: 83 e1 00 0c lwz r31,12(r1) ffc0cfd4: 38 21 00 10 addi r1,r1,16 ffc0cfd8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bbc8 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { ffc0bbc8: 94 21 ff e8 stwu r1,-24(r1) ffc0bbcc: 7c 08 02 a6 mflr r0 ffc0bbd0: 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; ffc0bbd4: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc0bbd8: 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; ffc0bbdc: 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; ffc0bbe0: 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; ffc0bbe4: 81 23 00 3c lwz r9,60(r3) args.iop = iop; ffc0bbe8: 90 61 00 08 stw r3,8(r1) args.flags = 0; args.mode = 0; status = rtems_io_close( ffc0bbec: 80 89 00 0c lwz r4,12(r9) ffc0bbf0: 80 69 00 08 lwz r3,8(r9) ffc0bbf4: 48 00 17 39 bl ffc0d32c <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) { ffc0bbf8: 38 00 00 00 li r0,0 ffc0bbfc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bc00: 41 be 00 0c beq+ cr7,ffc0bc0c <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0bc04: 48 00 01 35 bl ffc0bd38 <== NOT EXECUTED ffc0bc08: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc0bc0c: 7c 03 03 78 mr r3,r0 ffc0bc10: 80 01 00 1c lwz r0,28(r1) ffc0bc14: 38 21 00 18 addi r1,r1,24 ffc0bc18: 7c 08 03 a6 mtlr r0 ffc0bc1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bc20 : rtems_filesystem_location_info_t *pathloc, const char **name ) { /* we do nothing, just set name to path */ *name = path; ffc0bc20: 90 65 00 00 stw r3,0(r5) return 0; } ffc0bc24: 38 60 00 00 li r3,0 ffc0bc28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bc2c : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bc2c: 94 21 ff d8 stwu r1,-40(r1) ffc0bc30: 7c 08 02 a6 mflr r0 ffc0bc34: 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; ffc0bc38: 83 c6 00 00 lwz r30,0(r6) const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bc3c: 93 21 00 0c stw r25,12(r1) ffc0bc40: 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) ffc0bc44: 2f 9e 00 00 cmpwi cr7,r30,0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0bc48: 93 61 00 14 stw r27,20(r1) ffc0bc4c: 7c 9b 23 78 mr r27,r4 ffc0bc50: 93 e1 00 24 stw r31,36(r1) ffc0bc54: 7c df 33 78 mr r31,r6 ffc0bc58: 90 01 00 2c stw r0,44(r1) ffc0bc5c: 93 41 00 10 stw r26,16(r1) ffc0bc60: 93 81 00 18 stw r28,24(r1) ffc0bc64: 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) ffc0bc68: 41 9e 00 14 beq- cr7,ffc0bc7c <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { ffc0bc6c: 3f 40 00 00 lis r26,0 ffc0bc70: 3b 5a 26 b0 addi r26,r26,9904 rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) ffc0bc74: 3b a0 00 00 li r29,0 ffc0bc78: 48 00 00 6c b ffc0bce4 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc0bc7c: 48 00 32 cd bl ffc0ef48 <__errno> <== NOT EXECUTED ffc0bc80: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0bc84: 48 00 00 80 b ffc0bd04 <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) ffc0bc88: 83 9e 00 00 lwz r28,0(r30) ffc0bc8c: 2f 9c 00 00 cmpwi cr7,r28,0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0bc90: 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) ffc0bc94: 41 9e 00 4c beq- cr7,ffc0bce0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0bc98: 48 00 43 b1 bl ffc10048 <== ALWAYS TAKEN ffc0bc9c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0bca0: 40 9e 00 40 bne- cr7,ffc0bce0 <== NEVER TAKEN continue; if (device_name_table[i].device_name[pathnamelen] != '\0') ffc0bca4: 7c 1c d8 ae lbzx r0,r28,r27 ffc0bca8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bcac: 40 be 00 34 bne+ cr7,ffc0bce0 <== 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; ffc0bcb0: 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]; ffc0bcb4: 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; ffc0bcb8: 81 29 26 f8 lwz r9,9976(r9) ffc0bcbc: 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; ffc0bcc0: 3d 20 00 00 lis r9,0 pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; ffc0bcc4: 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; ffc0bcc8: 38 09 21 48 addi r0,r9,8520 pathloc->ops = &devFS_ops; ffc0bccc: 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; ffc0bcd0: 90 1f 00 08 stw r0,8(r31) pathloc->ops = &devFS_ops; ffc0bcd4: 38 09 21 80 addi r0,r9,8576 ffc0bcd8: 90 1f 00 0c stw r0,12(r31) pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; ffc0bcdc: 48 00 00 30 b ffc0bd0c <== ALWAYS TAKEN /* 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++) { ffc0bce0: 3b de 00 14 addi r30,r30,20 ffc0bce4: 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) ffc0bce8: 7f 23 cb 78 mr r3,r25 ffc0bcec: 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++) { ffc0bcf0: 7f 9d 00 40 cmplw cr7,r29,r0 ffc0bcf4: 3b bd 00 01 addi r29,r29,1 ffc0bcf8: 41 9c ff 90 blt+ cr7,ffc0bc88 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); ffc0bcfc: 48 00 32 4d bl ffc0ef48 <__errno> <== ALWAYS TAKEN ffc0bd00: 38 00 00 02 li r0,2 ffc0bd04: 90 03 00 00 stw r0,0(r3) ffc0bd08: 38 60 ff ff li r3,-1 } ffc0bd0c: 80 01 00 2c lwz r0,44(r1) ffc0bd10: 83 21 00 0c lwz r25,12(r1) ffc0bd14: 7c 08 03 a6 mtlr r0 ffc0bd18: 83 41 00 10 lwz r26,16(r1) ffc0bd1c: 83 61 00 14 lwz r27,20(r1) ffc0bd20: 83 81 00 18 lwz r28,24(r1) ffc0bd24: 83 a1 00 1c lwz r29,28(r1) ffc0bd28: 83 c1 00 20 lwz r30,32(r1) ffc0bd2c: 83 e1 00 24 lwz r31,36(r1) ffc0bd30: 38 21 00 28 addi r1,r1,40 ffc0bd34: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0366c : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc0366c: 94 21 ff e8 stwu r1,-24(r1) ffc03670: 7c 08 02 a6 mflr r0 ffc03674: 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( ffc03678: 3f a0 00 00 lis r29,0 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc0367c: 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( ffc03680: 80 1d 26 b0 lwz r0,9904(r29) int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc03684: 93 e1 00 14 stw r31,20(r1) ffc03688: 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( ffc0368c: 1c 60 00 14 mulli r3,r0,20 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc03690: 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( ffc03694: 48 00 84 51 bl ffc0bae4 <_Workspace_Allocate> <== ALWAYS TAKEN sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) ffc03698: 7c 7e 1b 79 mr. r30,r3 ffc0369c: 40 a2 00 18 bne+ ffc036b4 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc036a0: 48 00 b8 a9 bl ffc0ef48 <__errno> <== NOT EXECUTED ffc036a4: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc036a8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc036ac: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc036b0: 48 00 00 30 b ffc036e0 <== NOT EXECUTED memset( ffc036b4: 80 bd 26 b0 lwz r5,9904(r29) ffc036b8: 38 80 00 00 li r4,0 ffc036bc: 1c a5 00 14 mulli r5,r5,20 ffc036c0: 48 00 c4 61 bl ffc0fb20 <== ALWAYS TAKEN 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; ffc036c4: 3d 20 00 00 lis r9,0 ffc036c8: 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; ffc036cc: 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; ffc036d0: 38 09 00 38 addi r0,r9,56 ffc036d4: 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; ffc036d8: 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; ffc036dc: 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; } ffc036e0: 80 01 00 1c lwz r0,28(r1) ffc036e4: 83 a1 00 0c lwz r29,12(r1) ffc036e8: 7c 08 03 a6 mtlr r0 ffc036ec: 83 c1 00 10 lwz r30,16(r1) ffc036f0: 83 e1 00 14 lwz r31,20(r1) ffc036f4: 38 21 00 18 addi r1,r1,24 ffc036f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0388c : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0388c: 94 21 ff e8 stwu r1,-24(r1) ffc03890: 7c 08 02 a6 mflr r0 ffc03894: 7c 69 1b 78 mr r9,r3 ffc03898: 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; ffc0389c: 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; ffc038a0: 81 63 00 3c lwz r11,60(r3) args.iop = iop; args.command = command; args.buffer = buffer; ffc038a4: 90 a1 00 10 stw r5,16(r1) status = rtems_io_control( ffc038a8: 38 a1 00 08 addi r5,r1,8 ffc038ac: 80 8b 00 0c lwz r4,12(r11) ffc038b0: 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; ffc038b4: 91 21 00 08 stw r9,8(r1) args.command = command; args.buffer = buffer; status = rtems_io_control( ffc038b8: 48 00 4a f5 bl ffc083ac <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) ffc038bc: 2f 83 00 00 cmpwi cr7,r3,0 ffc038c0: 41 be 00 0c beq+ cr7,ffc038cc <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc038c4: 48 00 84 75 bl ffc0bd38 <== NOT EXECUTED ffc038c8: 48 00 00 08 b ffc038d0 <== NOT EXECUTED return args.ioctl_return; ffc038cc: 80 61 00 14 lwz r3,20(r1) } ffc038d0: 80 01 00 1c lwz r0,28(r1) ffc038d4: 38 21 00 18 addi r1,r1,24 ffc038d8: 7c 08 03 a6 mtlr r0 ffc038dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc036fc : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { ffc036fc: 94 21 ff d8 stwu r1,-40(r1) ffc03700: 7c 08 02 a6 mflr r0 ffc03704: 93 81 00 18 stw r28,24(r1) ffc03708: 7c dc 33 78 mr r28,r6 ffc0370c: 93 a1 00 1c stw r29,28(r1) ffc03710: 7c bd 2b 78 mr r29,r5 ffc03714: 93 c1 00 20 stw r30,32(r1) ffc03718: 7c 9e 23 78 mr r30,r4 ffc0371c: 93 e1 00 24 stw r31,36(r1) ffc03720: 7c 7f 1b 78 mr r31,r3 ffc03724: 90 01 00 2c stw r0,44(r1) ffc03728: 93 01 00 08 stw r24,8(r1) ffc0372c: 93 21 00 0c stw r25,12(r1) ffc03730: 93 41 00 10 stw r26,16(r1) ffc03734: 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') && ffc03738: 88 03 00 00 lbz r0,0(r3) ffc0373c: 2f 80 00 64 cmpwi cr7,r0,100 ffc03740: 40 be 00 2c bne+ cr7,ffc0376c <== NEVER TAKEN ffc03744: 88 03 00 01 lbz r0,1(r3) ffc03748: 2f 80 00 65 cmpwi cr7,r0,101 ffc0374c: 40 be 00 20 bne+ cr7,ffc0376c <== NEVER TAKEN (path[2] == 'v') && (path[3] == '\0')) ffc03750: 88 03 00 02 lbz r0,2(r3) ffc03754: 2f 80 00 76 cmpwi cr7,r0,118 ffc03758: 40 be 00 14 bne+ cr7,ffc0376c <== NEVER TAKEN ffc0375c: 88 03 00 03 lbz r0,3(r3) ffc03760: 38 60 00 00 li r3,0 ffc03764: 2f 80 00 00 cmpwi cr7,r0,0 ffc03768: 41 9e 00 ec beq- cr7,ffc03854 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) ffc0376c: 57 c0 04 26 rlwinm r0,r30,0,16,19 ffc03770: 2f 80 60 00 cmpwi cr7,r0,24576 ffc03774: 41 9e 00 18 beq- cr7,ffc0378c <== NEVER TAKEN ffc03778: 2f 80 20 00 cmpwi cr7,r0,8192 ffc0377c: 41 be 00 10 beq+ cr7,ffc0378c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc03780: 48 00 b7 c9 bl ffc0ef48 <__errno> <== NOT EXECUTED ffc03784: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc03788: 48 00 00 2c b ffc037b4 <== 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; ffc0378c: 83 47 00 00 lwz r26,0(r7) if (!device_name_table) ffc03790: 2f 9a 00 00 cmpwi cr7,r26,0 ffc03794: 41 9e 00 18 beq- cr7,ffc037ac <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ ffc03798: 3f 00 00 00 lis r24,0 ffc0379c: 3b 18 26 b0 addi r24,r24,9904 else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) ffc037a0: 3b 20 ff ff li r25,-1 ffc037a4: 3b 60 00 00 li r27,0 ffc037a8: 48 00 00 48 b ffc037f0 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc037ac: 48 00 b7 9d bl ffc0ef48 <__errno> <== NOT EXECUTED ffc037b0: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc037b4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc037b8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc037bc: 48 00 00 98 b ffc03854 <== NOT EXECUTED for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) ffc037c0: 7c 1a 48 2e lwzx r0,r26,r9 ffc037c4: 2f 80 00 00 cmpwi cr7,r0,0 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc037c8: 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) ffc037cc: 41 9e 00 1c beq- cr7,ffc037e8 <== ALWAYS TAKEN slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc037d0: 48 00 c6 bd bl ffc0fe8c <== NOT EXECUTED ffc037d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc037d8: 40 be 00 14 bne+ cr7,ffc037ec <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EEXIST ); ffc037dc: 48 00 b7 6d bl ffc0ef48 <__errno> <== NOT EXECUTED ffc037e0: 38 00 00 11 li r0,17 <== NOT EXECUTED ffc037e4: 4b ff ff d0 b ffc037b4 <== NOT EXECUTED ffc037e8: 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++){ ffc037ec: 3b 7b 00 01 addi r27,r27,1 ffc037f0: 80 18 00 00 lwz r0,0(r24) if (device_name_table[i].device_name == NULL) ffc037f4: 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++){ ffc037f8: 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) ffc037fc: 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++){ ffc03800: 41 9c ff c0 blt+ cr7,ffc037c0 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) ffc03804: 2f 99 ff ff cmpwi cr7,r25,-1 ffc03808: 40 be 00 10 bne+ cr7,ffc03818 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc0380c: 48 00 b7 3d bl ffc0ef48 <__errno> <== NOT EXECUTED ffc03810: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc03814: 4b ff ff a0 b ffc037b4 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc03818: 7f 60 00 a6 mfmsr r27 ffc0381c: 7c 10 42 a6 mfsprg r0,0 ffc03820: 7f 60 00 78 andc r0,r27,r0 ffc03824: 7c 00 01 24 mtmsr r0 _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; ffc03828: 1f 39 00 14 mulli r25,r25,20 ffc0382c: 7f fa c9 2e stwx r31,r26,r25 device_name_table[slot].device_name_length = strlen(path); ffc03830: 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; ffc03834: 7f 5a ca 14 add r26,r26,r25 device_name_table[slot].device_name_length = strlen(path); ffc03838: 48 00 c7 75 bl ffc0ffac <== ALWAYS TAKEN device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; ffc0383c: 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); ffc03840: 90 7a 00 04 stw r3,4(r26) device_name_table[slot].major = major; ffc03844: 93 ba 00 08 stw r29,8(r26) device_name_table[slot].minor = minor; ffc03848: 93 9a 00 0c stw r28,12(r26) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0384c: 7f 60 01 24 mtmsr r27 ffc03850: 38 60 00 00 li r3,0 device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } ffc03854: 80 01 00 2c lwz r0,44(r1) ffc03858: 83 01 00 08 lwz r24,8(r1) ffc0385c: 7c 08 03 a6 mtlr r0 ffc03860: 83 21 00 0c lwz r25,12(r1) ffc03864: 83 41 00 10 lwz r26,16(r1) ffc03868: 83 61 00 14 lwz r27,20(r1) ffc0386c: 83 81 00 18 lwz r28,24(r1) ffc03870: 83 a1 00 1c lwz r29,28(r1) ffc03874: 83 c1 00 20 lwz r30,32(r1) ffc03878: 83 e1 00 24 lwz r31,36(r1) ffc0387c: 38 21 00 28 addi r1,r1,40 ffc03880: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03884 : /* * There is only one type of node: device */ return RTEMS_FILESYSTEM_DEVICE; } ffc03884: 38 60 00 02 li r3,2 ffc03888: 4e 80 00 20 blr <== ALWAYS TAKEN ffc038e0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc038e0: 94 21 ff e8 stwu r1,-24(r1) ffc038e4: 7c 08 02 a6 mflr r0 ffc038e8: 90 01 00 1c stw r0,28(r1) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc038ec: 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; ffc038f0: 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; ffc038f4: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = iop->flags; ffc038f8: 90 01 00 0c stw r0,12(r1) args.mode = mode; ffc038fc: 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; ffc03900: 90 61 00 08 stw r3,8(r1) args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc03904: 80 89 00 0c lwz r4,12(r9) ffc03908: 80 69 00 08 lwz r3,8(r9) ffc0390c: 48 00 4c 61 bl ffc0856c <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) ffc03910: 38 00 00 00 li r0,0 ffc03914: 2f 83 00 00 cmpwi cr7,r3,0 ffc03918: 41 be 00 0c beq+ cr7,ffc03924 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0391c: 48 00 84 1d bl ffc0bd38 <== NOT EXECUTED ffc03920: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED return 0; } ffc03924: 7c 03 03 78 mr r3,r0 ffc03928: 80 01 00 1c lwz r0,28(r1) ffc0392c: 38 21 00 18 addi r1,r1,24 ffc03930: 7c 08 03 a6 mtlr r0 ffc03934: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03938 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc03938: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0393c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc03940: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED ffc03944: 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; ffc03948: 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; ffc0394c: 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; ffc03950: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED args.bytes_moved = 0; ffc03954: 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; ffc03958: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc0395c: 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; ffc03960: 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; ffc03964: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED ffc03968: 81 83 00 14 lwz r12,20(r3) <== NOT EXECUTED args.buffer = buffer; ffc0396c: 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( ffc03970: 80 6a 00 08 lwz r3,8(r10) <== NOT EXECUTED ffc03974: 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; ffc03978: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc0397c: 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; ffc03980: 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( ffc03984: 48 00 4c 49 bl ffc085cc <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) ffc03988: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0398c: 41 be 00 0c beq+ cr7,ffc03998 <== NOT EXECUTED return rtems_deviceio_errno(status); ffc03990: 48 00 83 a9 bl ffc0bd38 <== NOT EXECUTED ffc03994: 48 00 00 08 b ffc0399c <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc03998: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED } ffc0399c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc039a0: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc039a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc039a8: 4e 80 00 20 blr <== NOT EXECUTED ffc039ac : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { ffc039ac: 94 21 ff f8 stwu r1,-8(r1) ffc039b0: 7c 08 02 a6 mflr r0 ffc039b4: 90 01 00 0c stw r0,12(r1) rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; ffc039b8: 81 23 00 00 lwz r9,0(r3) if (!the_dev) ffc039bc: 2f 89 00 00 cmpwi cr7,r9,0 ffc039c0: 40 be 00 18 bne+ cr7,ffc039d8 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc039c4: 48 00 b5 85 bl ffc0ef48 <__errno> <== NOT EXECUTED ffc039c8: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc039cc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc039d0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc039d4: 48 00 00 20 b ffc039f4 <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; ffc039d8: 81 69 00 10 lwz r11,16(r9) ffc039dc: 38 60 00 00 li r3,0 the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); ffc039e0: 80 09 00 0c lwz r0,12(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc039e4: 81 29 00 08 lwz r9,8(r9) buf->st_mode = the_dev->mode; ffc039e8: 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 ); ffc039ec: 91 24 00 18 stw r9,24(r4) ffc039f0: 90 04 00 1c stw r0,28(r4) buf->st_mode = the_dev->mode; return 0; } ffc039f4: 80 01 00 0c lwz r0,12(r1) ffc039f8: 38 21 00 08 addi r1,r1,8 ffc039fc: 7c 08 03 a6 mtlr r0 ffc03a00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03a04 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc03a04: 94 21 ff d8 stwu r1,-40(r1) ffc03a08: 7c 08 02 a6 mflr r0 ffc03a0c: 7c 69 1b 78 mr r9,r3 ffc03a10: 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; ffc03a14: 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; ffc03a18: 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; ffc03a1c: 90 01 00 20 stw r0,32(r1) args.bytes_moved = 0; ffc03a20: 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; ffc03a24: 90 a1 00 1c stw r5,28(r1) args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc03a28: 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; ffc03a2c: 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; ffc03a30: 81 63 00 10 lwz r11,16(r3) ffc03a34: 81 83 00 14 lwz r12,20(r3) args.buffer = (void *) buffer; ffc03a38: 90 81 00 18 stw r4,24(r1) args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc03a3c: 80 6a 00 08 lwz r3,8(r10) ffc03a40: 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; ffc03a44: 91 61 00 10 stw r11,16(r1) ffc03a48: 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; ffc03a4c: 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( ffc03a50: 48 00 4b dd bl ffc0862c <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) ffc03a54: 2f 83 00 00 cmpwi cr7,r3,0 ffc03a58: 41 be 00 0c beq+ cr7,ffc03a64 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc03a5c: 48 00 82 dd bl ffc0bd38 <== NOT EXECUTED ffc03a60: 48 00 00 08 b ffc03a68 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc03a64: 80 61 00 24 lwz r3,36(r1) } ffc03a68: 80 01 00 2c lwz r0,44(r1) ffc03a6c: 38 21 00 28 addi r1,r1,40 ffc03a70: 7c 08 03 a6 mtlr r0 ffc03a74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07c30 : int filedes __attribute__((unused)), void *dev_data_ptr __attribute__((unused)), size_t nbyte __attribute__((unused)), int *dev_info_ptr __attribute__((unused)) ) { ffc07c30: 94 21 ff f8 stwu r1,-8(r1) ffc07c34: 7c 08 02 a6 mflr r0 ffc07c38: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07c3c: 48 00 ae 9d bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07c40: 38 00 00 58 li r0,88 ffc07c44: 90 03 00 00 stw r0,0(r3) } ffc07c48: 38 60 ff ff li r3,-1 ffc07c4c: 80 01 00 0c lwz r0,12(r1) ffc07c50: 38 21 00 08 addi r1,r1,8 ffc07c54: 7c 08 03 a6 mtlr r0 ffc07c58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f2b8 : */ int device_close( rtems_libio_t *iop ) { ffc0f2b8: 94 21 ff e8 stwu r1,-24(r1) ffc0f2bc: 7c 08 02 a6 mflr r0 ffc0f2c0: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc0f2c4: 38 00 00 00 li r0,0 <== ALWAYS TAKEN args.mode = 0; status = rtems_io_close( ffc0f2c8: 38 a1 00 08 addi r5,r1,8 the_jnode = iop->file_info; args.iop = iop; args.flags = 0; args.mode = 0; ffc0f2cc: 90 01 00 10 stw r0,16(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc0f2d0: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; ffc0f2d4: 90 61 00 08 stw r3,8(r1) <== ALWAYS TAKEN { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc0f2d8: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( ffc0f2dc: 80 89 00 54 lwz r4,84(r9) ffc0f2e0: 80 69 00 50 lwz r3,80(r9) ffc0f2e4: 48 00 18 b1 bl ffc10b94 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { ffc0f2e8: 38 00 00 00 li r0,0 ffc0f2ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f2f0: 41 be 00 0c beq+ cr7,ffc0f2fc <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0f2f4: 48 00 1f 31 bl ffc11224 <== NOT EXECUTED ffc0f2f8: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc0f2fc: 7c 03 03 78 mr r3,r0 <== ALWAYS TAKEN ffc0f300: 80 01 00 1c lwz r0,28(r1) ffc0f304: 38 21 00 18 addi r1,r1,24 ffc0f308: 7c 08 03 a6 mtlr r0 ffc0f30c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f180 : rtems_libio_t *iop, rtems_off64_t length ) { return 0; } ffc0f180: 38 60 00 00 li r3,0 ffc0f184: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f188 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0f188: 94 21 ff e8 stwu r1,-24(r1) ffc0f18c: 7c 08 02 a6 mflr r0 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; ffc0f190: 90 a1 00 10 stw r5,16(r1) the_jnode = iop->file_info; status = rtems_io_control( ffc0f194: 38 a1 00 08 addi r5,r1,8 int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0f198: 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; ffc0f19c: 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; ffc0f1a0: 90 61 00 08 stw r3,8(r1) args.command = command; args.buffer = buffer; the_jnode = iop->file_info; ffc0f1a4: 81 23 00 3c lwz r9,60(r3) status = rtems_io_control( ffc0f1a8: 80 89 00 54 lwz r4,84(r9) ffc0f1ac: 80 69 00 50 lwz r3,80(r9) ffc0f1b0: 48 00 1a 45 bl ffc10bf4 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0f1b4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f1b8: 41 be 00 0c beq+ cr7,ffc0f1c4 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0f1bc: 48 00 20 69 bl ffc11224 <== NOT EXECUTED ffc0f1c0: 48 00 00 08 b ffc0f1c8 <== NOT EXECUTED return args.ioctl_return; ffc0f1c4: 80 61 00 14 lwz r3,20(r1) } ffc0f1c8: 80 01 00 1c lwz r0,28(r1) ffc0f1cc: 38 21 00 18 addi r1,r1,24 ffc0f1d0: 7c 08 03 a6 mtlr r0 ffc0f1d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f174 : rtems_off64_t offset, int whence ) { return offset; } ffc0f174: 7c a3 2b 78 mr r3,r5 ffc0f178: 7c c4 33 78 mr r4,r6 ffc0f17c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f310 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0f310: 94 21 ff e8 stwu r1,-24(r1) ffc0f314: 7c 08 02 a6 mflr r0 ffc0f318: 90 01 00 1c stw r0,28(r1) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc0f31c: 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; ffc0f320: 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; ffc0f324: 90 61 00 08 stw r3,8(r1) args.flags = iop->flags; ffc0f328: 90 01 00 0c stw r0,12(r1) args.mode = mode; ffc0f32c: 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; ffc0f330: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc0f334: 80 89 00 54 lwz r4,84(r9) ffc0f338: 80 69 00 50 lwz r3,80(r9) ffc0f33c: 48 00 19 19 bl ffc10c54 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0f340: 38 00 00 00 li r0,0 ffc0f344: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f348: 41 be 00 0c beq+ cr7,ffc0f354 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0f34c: 48 00 1e d9 bl ffc11224 <== NOT EXECUTED ffc0f350: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED return 0; } ffc0f354: 7c 03 03 78 mr r3,r0 ffc0f358: 80 01 00 1c lwz r0,28(r1) ffc0f35c: 38 21 00 18 addi r1,r1,24 ffc0f360: 7c 08 03 a6 mtlr r0 ffc0f364: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f248 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc0f248: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0f24c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0f250: 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; ffc0f254: 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; ffc0f258: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc0f25c: 81 43 00 14 lwz r10,20(r3) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; ffc0f260: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED args.bytes_moved = 0; ffc0f264: 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; ffc0f268: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc0f26c: 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; ffc0f270: 91 21 00 10 stw r9,16(r1) <== NOT EXECUTED ffc0f274: 91 41 00 14 stw r10,20(r1) <== NOT EXECUTED args.buffer = buffer; ffc0f278: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc0f27c: 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; ffc0f280: 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; ffc0f284: 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( ffc0f288: 80 89 00 54 lwz r4,84(r9) <== NOT EXECUTED ffc0f28c: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0f290: 48 00 1a 25 bl ffc10cb4 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0f294: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f298: 41 be 00 0c beq+ cr7,ffc0f2a4 <== NOT EXECUTED return rtems_deviceio_errno(status); ffc0f29c: 48 00 1f 89 bl ffc11224 <== NOT EXECUTED ffc0f2a0: 48 00 00 08 b ffc0f2a8 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc0f2a4: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED } ffc0f2a8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0f2ac: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0f2b0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0f2b4: 4e 80 00 20 blr <== NOT EXECUTED ffc0f1d8 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc0f1d8: 94 21 ff d8 stwu r1,-40(r1) ffc0f1dc: 7c 08 02 a6 mflr r0 ffc0f1e0: 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; ffc0f1e4: 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; ffc0f1e8: 81 23 00 10 lwz r9,16(r3) ffc0f1ec: 81 43 00 14 lwz r10,20(r3) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ffc0f1f0: 90 01 00 20 stw r0,32(r1) <== ALWAYS TAKEN args.bytes_moved = 0; ffc0f1f4: 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; ffc0f1f8: 90 a1 00 1c stw r5,28(r1) args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc0f1fc: 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; ffc0f200: 91 21 00 10 stw r9,16(r1) ffc0f204: 91 41 00 14 stw r10,20(r1) <== ALWAYS TAKEN args.buffer = (void *) buffer; ffc0f208: 90 81 00 18 stw r4,24(r1) args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc0f20c: 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; ffc0f210: 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; ffc0f214: 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( ffc0f218: 80 89 00 54 lwz r4,84(r9) ffc0f21c: 80 69 00 50 lwz r3,80(r9) ffc0f220: 48 00 1a f5 bl ffc10d14 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc0f224: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc0f228: 41 be 00 0c beq+ cr7,ffc0f234 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0f22c: 48 00 1f f9 bl ffc11224 <== NOT EXECUTED ffc0f230: 48 00 00 08 b ffc0f238 <== NOT EXECUTED return (ssize_t) args.bytes_moved; ffc0f234: 80 61 00 24 lwz r3,36(r1) } ffc0f238: 80 01 00 2c lwz r0,44(r1) <== ALWAYS TAKEN ffc0f23c: 38 21 00 28 addi r1,r1,40 ffc0f240: 7c 08 03 a6 mtlr r0 ffc0f244: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0608c : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc0608c: 94 21 ff f0 stwu r1,-16(r1) ffc06090: 7c 08 02 a6 mflr r0 ffc06094: 90 01 00 14 stw r0,20(r1) rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc06098: 80 03 00 b4 lwz r0,180(r3) /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc0609c: 93 e1 00 0c stw r31,12(r1) ffc060a0: 7c 7f 1b 78 mr r31,r3 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc060a4: 2f 80 00 00 cmpwi cr7,r0,0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc060a8: 93 c1 00 08 stw r30,8(r1) rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc060ac: 41 9e 00 64 beq- cr7,ffc06110 <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc060b0: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc060b4: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc060b8: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc060bc: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; ffc060c0: 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) { ffc060c4: 48 00 00 38 b ffc060fc <== NOT EXECUTED tty->rawOutBufState = rob_wait; ffc060c8: 93 df 00 94 stw r30,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc060cc: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, ffc060d0: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED ffc060d4: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc060d8: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc060dc: 48 00 1a e5 bl ffc07bc0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc060e0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc060e4: 41 be 00 08 beq+ cr7,ffc060ec <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc060e8: 48 00 23 05 bl ffc083ec <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc060ec: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc060f0: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc060f4: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc060f8: 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) { ffc060fc: 81 7f 00 84 lwz r11,132(r31) <== NOT EXECUTED ffc06100: 81 3f 00 80 lwz r9,128(r31) <== NOT EXECUTED ffc06104: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc06108: 40 9e ff c0 bne+ cr7,ffc060c8 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0610c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); } } ffc06110: 80 01 00 14 lwz r0,20(r1) ffc06114: 83 c1 00 08 lwz r30,8(r1) ffc06118: 7c 08 03 a6 mtlr r0 ffc0611c: 83 e1 00 0c lwz r31,12(r1) ffc06120: 38 21 00 10 addi r1,r1,16 ffc06124: 4e 80 00 20 blr <== ALWAYS TAKEN ffc050c0 : #include int dup( int fildes ) { ffc050c0: 94 21 ff f8 stwu r1,-8(r1) ffc050c4: 7c 08 02 a6 mflr r0 return fcntl( fildes, F_DUPFD, 0 ); ffc050c8: 38 80 00 00 li r4,0 ffc050cc: 38 a0 00 00 li r5,0 #include int dup( int fildes ) { ffc050d0: 90 01 00 0c stw r0,12(r1) return fcntl( fildes, F_DUPFD, 0 ); ffc050d4: 4c c6 31 82 crclr 4*cr1+eq ffc050d8: 48 00 02 ad bl ffc05384 <== ALWAYS TAKEN } ffc050dc: 80 01 00 0c lwz r0,12(r1) ffc050e0: 38 21 00 08 addi r1,r1,8 ffc050e4: 7c 08 03 a6 mtlr r0 ffc050e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05040 : int dup2( int fildes, int fildes2 ) { ffc05040: 94 21 ff 98 stwu r1,-104(r1) ffc05044: 7c 08 02 a6 mflr r0 ffc05048: 93 c1 00 60 stw r30,96(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc0504c: 3b c1 00 08 addi r30,r1,8 int dup2( int fildes, int fildes2 ) { ffc05050: 93 e1 00 64 stw r31,100(r1) ffc05054: 7c 9f 23 78 mr r31,r4 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc05058: 7f c4 f3 78 mr r4,r30 int dup2( int fildes, int fildes2 ) { ffc0505c: 93 a1 00 5c stw r29,92(r1) ffc05060: 7c 7d 1b 78 mr r29,r3 ffc05064: 90 01 00 6c stw r0,108(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc05068: 48 00 08 19 bl ffc05880 <== ALWAYS TAKEN if ( status == -1 ) ffc0506c: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05070: 41 be 00 30 beq+ cr7,ffc050a0 <== NEVER TAKEN /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); ffc05074: 7f c4 f3 78 mr r4,r30 ffc05078: 7f e3 fb 78 mr r3,r31 ffc0507c: 48 00 08 05 bl ffc05880 <== ALWAYS TAKEN if ( status == -1 ) ffc05080: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05084: 41 9e 00 1c beq- cr7,ffc050a0 <== ALWAYS TAKEN /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); ffc05088: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0508c: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05090: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05094: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc05098: 48 00 02 ed bl ffc05384 <== NOT EXECUTED ffc0509c: 48 00 00 08 b ffc050a4 <== NOT EXECUTED ffc050a0: 38 60 ff ff li r3,-1 } ffc050a4: 80 01 00 6c lwz r0,108(r1) ffc050a8: 83 a1 00 5c lwz r29,92(r1) ffc050ac: 7c 08 03 a6 mtlr r0 ffc050b0: 83 c1 00 60 lwz r30,96(r1) ffc050b4: 83 e1 00 64 lwz r31,100(r1) ffc050b8: 38 21 00 68 addi r1,r1,104 ffc050bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05a5c : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { ffc05a5c: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc05a60: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05a64: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc05a68: 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) { ffc05a6c: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED ffc05a70: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc05a74: 71 20 02 00 andi. r0,r9,512 <== NOT EXECUTED ffc05a78: 41 82 00 5c beq- ffc05ad4 <== NOT EXECUTED ffc05a7c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05a80: 81 29 26 e0 lwz r9,9952(r9) <== NOT EXECUTED ffc05a84: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED ffc05a88: 88 09 00 01 lbz r0,1(r9) <== NOT EXECUTED ffc05a8c: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc05a90: 41 82 00 44 beq- ffc05ad4 <== NOT EXECUTED ffc05a94: 2f 83 00 09 cmpwi cr7,r3,9 <== NOT EXECUTED ffc05a98: 41 9e 00 3c beq- cr7,ffc05ad4 <== NOT EXECUTED ffc05a9c: 2f 83 00 0a cmpwi cr7,r3,10 <== NOT EXECUTED ffc05aa0: 41 be 00 34 beq+ cr7,ffc05ad4 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; ffc05aa4: 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] = '^'; ffc05aa8: 39 20 00 5e li r9,94 <== NOT EXECUTED echobuf[1] = c ^ 0x40; ffc05aac: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); ffc05ab0: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc05ab4: 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] = '^'; ffc05ab8: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); ffc05abc: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05ac0: 4b ff fc a5 bl ffc05764 <== NOT EXECUTED tty->column += 2; ffc05ac4: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05ac8: 38 09 00 02 addi r0,r9,2 <== NOT EXECUTED ffc05acc: 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')) { ffc05ad0: 48 00 00 0c b ffc05adc <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); ffc05ad4: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05ad8: 4b ff fe 05 bl ffc058dc <== NOT EXECUTED } } ffc05adc: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05ae0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05ae4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc05ae8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05aec: 4e 80 00 20 blr <== NOT EXECUTED ffc2b350 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) ffc2b350: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc2b354: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2b358: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp != NULL) ffc2b35c: 80 69 5f 74 lwz r3,24436(r9) <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc2b360: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (group_fp != NULL) ffc2b364: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b368: 41 9e 00 08 beq- cr7,ffc2b370 <== NOT EXECUTED fclose(group_fp); ffc2b36c: 48 01 c4 c1 bl ffc4782c <== NOT EXECUTED } ffc2b370: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2b374: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2b378: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b37c: 4e 80 00 20 blr <== NOT EXECUTED ffc2b380 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) ffc2b380: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc2b384: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2b388: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp != NULL) ffc2b38c: 80 69 5f 78 lwz r3,24440(r9) <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc2b390: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (passwd_fp != NULL) ffc2b394: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b398: 41 9e 00 08 beq- cr7,ffc2b3a0 <== NOT EXECUTED fclose(passwd_fp); ffc2b39c: 48 01 c4 91 bl ffc4782c <== NOT EXECUTED } ffc2b3a0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2b3a4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2b3a8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b3ac: 4e 80 00 20 blr <== NOT EXECUTED ffc05af0 : * 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) { ffc05af0: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc05af4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05af8: 7d 80 00 26 mfcr r12 <== NOT EXECUTED ffc05afc: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED if (tty->ccount == 0) ffc05b00: 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) { ffc05b04: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED ffc05b08: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (tty->ccount == 0) ffc05b0c: 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) { ffc05b10: 93 61 00 0c stw r27,12(r1) <== NOT EXECUTED ffc05b14: 93 81 00 10 stw r28,16(r1) <== NOT EXECUTED ffc05b18: 93 a1 00 14 stw r29,20(r1) <== NOT EXECUTED ffc05b1c: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc05b20: 91 81 00 08 stw r12,8(r1) <== NOT EXECUTED if (tty->ccount == 0) ffc05b24: 41 9e 01 f4 beq- cr7,ffc05d18 <== NOT EXECUTED return; if (lineFlag) { ffc05b28: 2f 84 00 00 cmpwi cr7,r4,0 <== NOT EXECUTED ffc05b2c: 41 9e 01 c4 beq- cr7,ffc05cf0 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { ffc05b30: 80 03 00 3c lwz r0,60(r3) <== NOT EXECUTED ffc05b34: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc05b38: 40 a2 00 0c bne+ ffc05b44 <== NOT EXECUTED tty->ccount = 0; ffc05b3c: 91 23 00 20 stw r9,32(r3) <== NOT EXECUTED return; ffc05b40: 48 00 01 d8 b ffc05d18 <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { ffc05b44: 70 00 00 10 andi. r0,r0,16 <== NOT EXECUTED ffc05b48: 40 a2 01 a8 bne+ ffc05cf0 <== NOT EXECUTED tty->ccount = 0; ffc05b4c: 90 03 00 20 stw r0,32(r3) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); ffc05b50: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc05b54: 88 63 00 44 lbz r3,68(r3) <== NOT EXECUTED ffc05b58: 4b ff ff 05 bl ffc05a5c <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) ffc05b5c: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED echo ('\n', tty); ffc05b60: 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) ffc05b64: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED echo ('\n', tty); ffc05b68: 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) ffc05b6c: 41 a2 01 ac beq+ ffc05d18 <== NOT EXECUTED ffc05b70: 48 00 00 34 b ffc05ba4 <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { ffc05b74: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; ffc05b78: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05b7c: 91 3f 00 20 stw r9,32(r31) <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { ffc05b80: 70 0a 00 08 andi. r10,r0,8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; ffc05b84: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc05b88: 7f cb 48 ae lbzx r30,r11,r9 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { ffc05b8c: 41 82 01 5c beq- ffc05ce8 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { ffc05b90: 40 92 00 40 bne- cr4,ffc05bd0 <== NOT EXECUTED ffc05b94: 70 0b 00 10 andi. r11,r0,16 <== NOT EXECUTED ffc05b98: 40 a2 00 38 bne+ ffc05bd0 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); ffc05b9c: 88 7f 00 43 lbz r3,67(r31) <== NOT EXECUTED ffc05ba0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED } } if (!lineFlag) break; } } ffc05ba4: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05ba8: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc05bac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05bb0: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc05bb4: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc05bb8: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc05bbc: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc05bc0: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc05bc4: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05bc8: 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); ffc05bcc: 4b ff fe 90 b ffc05a5c <== NOT EXECUTED } else if (c == '\t') { ffc05bd0: 2f 9e 00 09 cmpwi cr7,r30,9 <== NOT EXECUTED ffc05bd4: 40 be 00 94 bne+ cr7,ffc05c68 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) ffc05bd8: 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; ffc05bdc: 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) ffc05be0: 7d 29 03 a6 mtctr r9 <== NOT EXECUTED ffc05be4: 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)) { ffc05be8: 81 7d 00 00 lwz r11,0(r29) <== NOT EXECUTED ffc05bec: 39 20 00 00 li r9,0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc05bf0: 48 00 00 44 b ffc05c34 <== NOT EXECUTED c = tty->cbuf[i++]; ffc05bf4: 81 5f 00 1c lwz r10,28(r31) <== NOT EXECUTED ffc05bf8: 7c 0a 48 ae lbzx r0,r10,r9 <== NOT EXECUTED if (c == '\t') { ffc05bfc: 2f 80 00 09 cmpwi cr7,r0,9 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { ffc05c00: 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') { ffc05c04: 40 be 00 0c bne+ cr7,ffc05c10 <== NOT EXECUTED col = (col | 7) + 1; ffc05c08: 63 de 00 07 ori r30,r30,7 <== NOT EXECUTED ffc05c0c: 48 00 00 20 b ffc05c2c <== NOT EXECUTED } else if (iscntrl (c)) { ffc05c10: 88 0a 00 01 lbz r0,1(r10) <== NOT EXECUTED ffc05c14: 54 0a df fe rlwinm r10,r0,27,31,31 <== NOT EXECUTED ffc05c18: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED ffc05c1c: 41 9e 00 10 beq- cr7,ffc05c2c <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) ffc05c20: 41 82 00 10 beq- ffc05c30 <== NOT EXECUTED col += 2; ffc05c24: 3b de 00 02 addi r30,r30,2 <== NOT EXECUTED ffc05c28: 48 00 00 08 b ffc05c30 <== NOT EXECUTED } else { col++; ffc05c2c: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; ffc05c30: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc05c34: 42 00 ff c0 bdnz+ ffc05bf4 <== NOT EXECUTED ffc05c38: 48 00 00 14 b ffc05c4c <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05c3c: 4b ff fb 29 bl ffc05764 <== NOT EXECUTED tty->column--; ffc05c40: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05c44: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc05c48: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05c4c: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); ffc05c50: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc05c54: 38 80 00 01 li r4,1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05c58: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); ffc05c5c: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc05c60: 41 9d ff dc bgt+ cr7,ffc05c3c <== NOT EXECUTED ffc05c64: 48 00 00 84 b ffc05ce8 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { ffc05c68: 81 3d 00 00 lwz r9,0(r29) <== NOT EXECUTED ffc05c6c: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc05c70: 7d 29 f0 ae lbzx r9,r9,r30 <== NOT EXECUTED ffc05c74: 71 2b 00 20 andi. r11,r9,32 <== NOT EXECUTED ffc05c78: 41 82 00 30 beq- ffc05ca8 <== NOT EXECUTED ffc05c7c: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc05c80: 41 a2 00 28 beq+ ffc05ca8 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc05c84: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc05c88: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc05c8c: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05c90: 4b ff fa d5 bl ffc05764 <== NOT EXECUTED if (tty->column) ffc05c94: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05c98: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05c9c: 41 9e 00 0c beq- cr7,ffc05ca8 <== NOT EXECUTED tty->column--; ffc05ca0: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05ca4: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { ffc05ca8: 81 3d 00 00 lwz r9,0(r29) <== NOT EXECUTED ffc05cac: 7c 09 f0 ae lbzx r0,r9,r30 <== NOT EXECUTED ffc05cb0: 70 0a 00 20 andi. r10,r0,32 <== NOT EXECUTED ffc05cb4: 41 82 00 10 beq- ffc05cc4 <== NOT EXECUTED ffc05cb8: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc05cbc: 70 0b 02 00 andi. r11,r0,512 <== NOT EXECUTED ffc05cc0: 41 82 00 28 beq- ffc05ce8 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc05cc4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc05cc8: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc05ccc: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc05cd0: 4b ff fa 95 bl ffc05764 <== NOT EXECUTED if (tty->column) ffc05cd4: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc05cd8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05cdc: 41 9e 00 0c beq- cr7,ffc05ce8 <== NOT EXECUTED tty->column--; ffc05ce0: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05ce4: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED } } } if (!lineFlag) ffc05ce8: 40 b2 00 24 bne+ cr4,ffc05d0c <== NOT EXECUTED ffc05cec: 48 00 00 2c b ffc05d18 <== 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)) { ffc05cf0: 2e 04 00 00 cmpwi cr4,r4,0 <== NOT EXECUTED ffc05cf4: 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); ffc05cf8: 3f 80 ff c2 lis r28,-62 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05cfc: 3f 60 ff c2 lis r27,-62 <== NOT EXECUTED ffc05d00: 3b bd 26 e0 addi r29,r29,9952 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); ffc05d04: 3b 9c de a9 addi r28,r28,-8535 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); ffc05d08: 3b 7b de ab addi r27,r27,-8533 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { ffc05d0c: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc05d10: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05d14: 40 9e fe 60 bne+ cr7,ffc05b74 <== NOT EXECUTED } } if (!lineFlag) break; } } ffc05d18: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05d1c: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc05d20: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05d24: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc05d28: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc05d2c: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc05d30: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc05d34: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc05d38: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05d3c: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc05d40: 4e 80 00 20 blr <== NOT EXECUTED ffc40574 : #include int fchdir( int fd ) { ffc40574: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc40578: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); ffc4057c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED #include int fchdir( int fd ) { ffc40580: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); ffc40584: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED #include int fchdir( int fd ) { ffc40588: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); ffc4058c: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED #include int fchdir( int fd ) { ffc40590: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); ffc40594: 40 9c 00 20 bge- cr7,ffc405b4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc40598: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc4059c: 83 e9 35 f4 lwz r31,13812(r9) <== NOT EXECUTED ffc405a0: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc405a4: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc405a8: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED ffc405ac: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc405b0: 40 a2 00 10 bne+ ffc405c0 <== NOT EXECUTED ffc405b4: 48 00 70 d9 bl ffc4768c <__errno> <== NOT EXECUTED ffc405b8: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc405bc: 48 00 00 58 b ffc40614 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc405c0: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc405c4: 40 a2 00 10 bne+ ffc405d4 <== NOT EXECUTED ffc405c8: 48 00 70 c5 bl ffc4768c <__errno> <== NOT EXECUTED ffc405cc: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc405d0: 48 00 00 44 b ffc40614 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { ffc405d4: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc405d8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc405dc: 41 9e 00 10 beq- cr7,ffc405ec <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { ffc405e0: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc405e4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc405e8: 40 be 00 10 bne+ cr7,ffc405f8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc405ec: 48 00 70 a1 bl ffc4768c <__errno> <== NOT EXECUTED ffc405f0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc405f4: 48 00 00 20 b ffc40614 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != ffc405f8: 38 7f 00 1c addi r3,r31,28 <== NOT EXECUTED ffc405fc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc40600: 4e 80 04 21 bctrl <== NOT EXECUTED ffc40604: 2f 83 00 01 cmpwi cr7,r3,1 <== NOT EXECUTED ffc40608: 41 be 00 18 beq+ cr7,ffc40620 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc4060c: 48 00 70 81 bl ffc4768c <__errno> <== NOT EXECUTED ffc40610: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc40614: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc40618: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc4061c: 48 00 01 08 b ffc40724 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc40620: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc40624: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc40628: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED ffc4062c: 38 63 59 05 addi r3,r3,22789 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc40630: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc40634: 38 80 00 01 li r4,1 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc40638: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc4063c: 38 a0 00 00 li r5,0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc40640: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc40644: 38 c1 00 08 addi r6,r1,8 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc40648: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc4064c: 38 e0 00 00 li r7,0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc40650: 91 01 00 1c stw r8,28(r1) <== NOT EXECUTED ffc40654: 91 41 00 20 stw r10,32(r1) <== NOT EXECUTED ffc40658: 91 61 00 24 stw r11,36(r1) <== NOT EXECUTED ffc4065c: 90 01 00 28 stw r0,40(r1) <== NOT EXECUTED ffc40660: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc40664: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; ffc40668: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED ffc4066c: 81 1f 00 1c lwz r8,28(r31) <== NOT EXECUTED ffc40670: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED ffc40674: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED ffc40678: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc4067c: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc40680: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc40684: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc40688: 80 1f 00 2c lwz r0,44(r31) <== NOT EXECUTED ffc4068c: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc40690: 4b fc 7c ad bl ffc0833c <== NOT EXECUTED ffc40694: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc40698: 41 be 00 34 beq+ cr7,ffc406cc <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; ffc4069c: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED ffc406a0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc406a4: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED ffc406a8: 81 41 00 20 lwz r10,32(r1) <== NOT EXECUTED ffc406ac: 81 61 00 24 lwz r11,36(r1) <== NOT EXECUTED ffc406b0: 81 01 00 1c lwz r8,28(r1) <== NOT EXECUTED ffc406b4: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc406b8: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc406bc: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc406c0: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc406c4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc406c8: 48 00 00 58 b ffc40720 <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); ffc406cc: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc406d0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc406d4: 41 9e 00 1c beq- cr7,ffc406f0 <== NOT EXECUTED ffc406d8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc406dc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc406e0: 41 9e 00 10 beq- cr7,ffc406f0 <== NOT EXECUTED ffc406e4: 38 61 00 1c addi r3,r1,28 <== NOT EXECUTED ffc406e8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc406ec: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_current = loc; ffc406f0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc406f4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc406f8: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc406fc: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc40700: 81 41 00 0c lwz r10,12(r1) <== NOT EXECUTED ffc40704: 81 61 00 10 lwz r11,16(r1) <== NOT EXECUTED ffc40708: 81 01 00 08 lwz r8,8(r1) <== NOT EXECUTED ffc4070c: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc40710: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc40714: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc40718: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc4071c: 80 01 00 18 lwz r0,24(r1) <== NOT EXECUTED ffc40720: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED return 0; } ffc40724: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc40728: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc4072c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc40730: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc40734: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc40738: 4e 80 00 20 blr <== NOT EXECUTED ffc2af38 : int fchmod( int fd, mode_t mode ) { ffc2af38: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2af3c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2af40: 3d 20 00 00 lis r9,0 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { ffc2af44: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2af48: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED ffc2af4c: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2af50: 40 9c 00 20 bge- cr7,ffc2af70 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc2af54: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2af58: 80 09 35 f4 lwz r0,13812(r9) <== NOT EXECUTED ffc2af5c: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc2af60: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc2af64: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc2af68: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc2af6c: 40 a2 00 10 bne+ ffc2af7c <== NOT EXECUTED ffc2af70: 48 01 c7 1d bl ffc4768c <__errno> <== NOT EXECUTED ffc2af74: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2af78: 48 00 00 30 b ffc2afa8 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2af7c: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc2af80: 40 a2 00 10 bne+ ffc2af90 <== NOT EXECUTED ffc2af84: 48 01 c7 09 bl ffc4768c <__errno> <== NOT EXECUTED ffc2af88: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2af8c: 48 00 00 1c b ffc2afa8 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) ffc2af90: 81 23 00 40 lwz r9,64(r3) <== NOT EXECUTED ffc2af94: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2af98: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2af9c: 40 be 00 18 bne+ cr7,ffc2afb4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2afa0: 48 01 c6 ed bl ffc4768c <__errno> <== NOT EXECUTED ffc2afa4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2afa8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2afac: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2afb0: 48 00 00 18 b ffc2afc8 <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); ffc2afb4: 81 23 00 24 lwz r9,36(r3) <== NOT EXECUTED ffc2afb8: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED ffc2afbc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2afc0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2afc4: 4e 80 04 21 bctrl <== NOT EXECUTED } ffc2afc8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2afcc: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2afd0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2afd4: 4e 80 00 20 blr <== NOT EXECUTED ffc2afd8 : int fchown( int fd, uid_t owner, gid_t group ) { ffc2afd8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2afdc: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2afe0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { ffc2afe4: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2afe8: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED ffc2afec: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2aff0: 40 9c 00 20 bge- cr7,ffc2b010 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc2aff4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2aff8: 80 09 35 f4 lwz r0,13812(r9) <== NOT EXECUTED ffc2affc: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc2b000: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc2b004: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc2b008: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc2b00c: 40 a2 00 10 bne+ ffc2b01c <== NOT EXECUTED ffc2b010: 48 01 c6 7d bl ffc4768c <__errno> <== NOT EXECUTED ffc2b014: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2b018: 48 00 00 30 b ffc2b048 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2b01c: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc2b020: 40 a2 00 10 bne+ ffc2b030 <== NOT EXECUTED ffc2b024: 48 01 c6 69 bl ffc4768c <__errno> <== NOT EXECUTED ffc2b028: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2b02c: 48 00 00 1c b ffc2b048 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) ffc2b030: 81 23 00 28 lwz r9,40(r3) <== NOT EXECUTED ffc2b034: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc2b038: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2b03c: 40 be 00 18 bne+ cr7,ffc2b054 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2b040: 48 01 c6 4d bl ffc4768c <__errno> <== NOT EXECUTED ffc2b044: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2b048: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2b04c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2b050: 48 00 00 10 b ffc2b060 <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); ffc2b054: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED ffc2b058: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2b05c: 4e 80 04 21 bctrl <== NOT EXECUTED } ffc2b060: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2b064: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2b068: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b06c: 4e 80 00 20 blr <== NOT EXECUTED ffc4073c : int fcntl( int fd, int cmd, ... ) { ffc4073c: 94 21 ff c8 stwu r1,-56(r1) ffc40740: 7c 08 02 a6 mflr r0 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc40744: 3d 20 00 00 lis r9,0 int fcntl( int fd, int cmd, ... ) { ffc40748: 90 01 00 3c stw r0,60(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc4074c: 80 09 34 cc lwz r0,13516(r9) ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc40750: 39 20 00 02 li r9,2 ffc40754: 99 21 00 08 stb r9,8(r1) ffc40758: 39 21 00 40 addi r9,r1,64 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc4075c: 7f 83 00 40 cmplw cr7,r3,r0 ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc40760: 91 21 00 0c stw r9,12(r1) ffc40764: 39 21 00 10 addi r9,r1,16 int fcntl( int fd, int cmd, ... ) { ffc40768: 93 e1 00 34 stw r31,52(r1) ffc4076c: 7c 9f 23 78 mr r31,r4 ffc40770: 93 a1 00 2c stw r29,44(r1) ffc40774: 93 c1 00 30 stw r30,48(r1) ffc40778: 90 a1 00 18 stw r5,24(r1) ffc4077c: 90 c1 00 1c stw r6,28(r1) ffc40780: 90 e1 00 20 stw r7,32(r1) int ret; va_list ap; va_start( ap, cmd ); ffc40784: 91 21 00 10 stw r9,16(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc40788: 40 9c 00 20 bge- cr7,ffc407a8 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc4078c: 3d 20 00 00 lis r9,0 ffc40790: 81 69 35 f4 lwz r11,13812(r9) ffc40794: 1c 63 00 48 mulli r3,r3,72 ffc40798: 7f ab 1a 14 add r29,r11,r3 rtems_libio_check_is_open(iop); ffc4079c: 80 7d 00 18 lwz r3,24(r29) ffc407a0: 70 69 01 00 andi. r9,r3,256 ffc407a4: 40 a2 00 10 bne+ ffc407b4 <== ALWAYS TAKEN ffc407a8: 48 00 6e e5 bl ffc4768c <__errno> <== NOT EXECUTED ffc407ac: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc407b0: 48 00 01 c0 b ffc40970 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { ffc407b4: 2b 84 00 09 cmplwi cr7,r4,9 ffc407b8: 41 9d 01 b0 bgt- cr7,ffc40968 ffc407bc: 3d 20 ff c7 lis r9,-57 ffc407c0: 39 29 bd 60 addi r9,r9,-17056 ffc407c4: 54 8a 10 3a rlwinm r10,r4,2,0,29 ffc407c8: 7d 49 50 2e lwzx r10,r9,r10 ffc407cc: 7d 2a 4a 14 add r9,r10,r9 ffc407d0: 7d 29 03 a6 mtctr r9 ffc407d4: 4e 80 04 20 bctr <== ALWAYS TAKEN case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); ffc407d8: 89 21 00 08 lbz r9,8(r1) ffc407dc: 2b 89 00 07 cmplwi cr7,r9,7 ffc407e0: 41 9d 00 1c bgt- cr7,ffc407fc <== NEVER TAKEN ffc407e4: 81 01 00 10 lwz r8,16(r1) ffc407e8: 39 49 00 01 addi r10,r9,1 ffc407ec: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc407f0: 99 41 00 08 stb r10,8(r1) ffc407f4: 7d 28 4a 14 add r9,r8,r9 ffc407f8: 48 00 00 10 b ffc40808 <== ALWAYS TAKEN ffc407fc: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc40800: 39 49 00 04 addi r10,r9,4 <== NOT EXECUTED ffc40804: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc40808: 81 29 00 00 lwz r9,0(r9) if ( fd2 ) ffc4080c: 2f 89 00 00 cmpwi cr7,r9,0 ffc40810: 41 9e 00 1c beq- cr7,ffc4082c <== ALWAYS TAKEN diop = rtems_libio_iop( fd2 ); ffc40814: 1c 69 00 48 mulli r3,r9,72 <== NOT EXECUTED ffc40818: 7c 00 48 10 subfc r0,r0,r9 <== NOT EXECUTED ffc4081c: 7c 00 01 10 subfe r0,r0,r0 <== NOT EXECUTED ffc40820: 7c 6b 1a 14 add r3,r11,r3 <== NOT EXECUTED ffc40824: 7c 63 00 38 and r3,r3,r0 <== NOT EXECUTED ffc40828: 48 00 00 14 b ffc4083c <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); ffc4082c: 4b fc 80 45 bl ffc08870 <== ALWAYS TAKEN if ( diop == 0 ) { ffc40830: 3b c0 ff ff li r30,-1 ffc40834: 2c 03 00 00 cmpwi r3,0 ffc40838: 41 82 01 7c beq- ffc409b4 <== NEVER TAKEN } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc4083c: 81 3d 00 24 lwz r9,36(r29) ffc40840: 81 5d 00 1c lwz r10,28(r29) ffc40844: 81 7d 00 20 lwz r11,32(r29) ffc40848: 80 1d 00 28 lwz r0,40(r29) ffc4084c: 91 23 00 24 stw r9,36(r3) ret = (int) (diop - rtems_libio_iops); ffc40850: 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; ffc40854: 91 43 00 1c stw r10,28(r3) ffc40858: 91 63 00 20 stw r11,32(r3) ret = (int) (diop - rtems_libio_iops); ffc4085c: 83 c9 35 f4 lwz r30,13812(r9) ret = -1; break; } } diop->handlers = iop->handlers; ffc40860: 81 5d 00 40 lwz r10,64(r29) diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc40864: 90 03 00 28 stw r0,40(r3) ret = (int) (diop - rtems_libio_iops); ffc40868: 7f de 18 50 subf r30,r30,r3 ffc4086c: 7f de 1e 70 srawi r30,r30,3 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; ffc40870: 81 7d 00 3c lwz r11,60(r29) diop->flags = iop->flags; ffc40874: 81 3d 00 18 lwz r9,24(r29) diop->pathinfo = iop->pathinfo; ffc40878: 80 1d 00 2c lwz r0,44(r29) ret = -1; break; } } diop->handlers = iop->handlers; ffc4087c: 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); ffc40880: 3d 40 38 e3 lis r10,14563 ffc40884: 61 4a 8e 39 ori r10,r10,36409 ffc40888: 7f de 51 d6 mullw r30,r30,r10 break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; ffc4088c: 91 63 00 3c stw r11,60(r3) diop->flags = iop->flags; ffc40890: 91 23 00 18 stw r9,24(r3) diop->pathinfo = iop->pathinfo; ffc40894: 90 03 00 2c stw r0,44(r3) ffc40898: 48 00 00 e0 b ffc40978 <== ALWAYS TAKEN ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); ffc4089c: 54 7e af fe rlwinm r30,r3,21,31,31 ffc408a0: 48 00 00 e0 b ffc40980 <== ALWAYS TAKEN * 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 ) ) ffc408a4: 89 21 00 08 lbz r9,8(r1) ffc408a8: 2b 89 00 07 cmplwi cr7,r9,7 ffc408ac: 41 9d 00 1c bgt- cr7,ffc408c8 <== NEVER TAKEN ffc408b0: 81 61 00 10 lwz r11,16(r1) ffc408b4: 38 09 00 01 addi r0,r9,1 ffc408b8: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc408bc: 98 01 00 08 stb r0,8(r1) ffc408c0: 7d 2b 4a 14 add r9,r11,r9 ffc408c4: 48 00 00 10 b ffc408d4 <== ALWAYS TAKEN ffc408c8: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc408cc: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc408d0: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc408d4: 80 09 00 00 lwz r0,0(r9) ffc408d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc408dc: 41 9e 00 0c beq- cr7,ffc408e8 <== NEVER TAKEN iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; ffc408e0: 60 63 08 00 ori r3,r3,2048 ffc408e4: 48 00 00 08 b ffc408ec <== ALWAYS TAKEN else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; ffc408e8: 54 63 05 66 rlwinm r3,r3,0,21,19 <== NOT EXECUTED ffc408ec: 90 7d 00 18 stw r3,24(r29) ffc408f0: 3b c0 00 00 li r30,0 ffc408f4: 48 00 00 8c b ffc40980 <== ALWAYS TAKEN break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); ffc408f8: 4b fc 7d 75 bl ffc0866c <== ALWAYS TAKEN ffc408fc: 7c 7e 1b 78 mr r30,r3 ffc40900: 48 00 00 78 b ffc40978 <== ALWAYS TAKEN break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); ffc40904: 89 21 00 08 lbz r9,8(r1) ffc40908: 2b 89 00 07 cmplwi cr7,r9,7 ffc4090c: 41 9d 00 1c bgt- cr7,ffc40928 <== NEVER TAKEN ffc40910: 81 61 00 10 lwz r11,16(r1) ffc40914: 38 09 00 01 addi r0,r9,1 ffc40918: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc4091c: 98 01 00 08 stb r0,8(r1) ffc40920: 7d 2b 4a 14 add r9,r11,r9 ffc40924: 48 00 00 10 b ffc40934 <== ALWAYS TAKEN ffc40928: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc4092c: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc40930: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc40934: 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); ffc40938: 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 ) ); ffc4093c: 4b fc 80 11 bl ffc0894c <== ALWAYS TAKEN /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); ffc40940: 80 1d 00 18 lwz r0,24(r29) ffc40944: 70 63 02 01 andi. r3,r3,513 ffc40948: 39 20 fd fe li r9,-514 ffc4094c: 7d 20 00 38 and r0,r9,r0 ffc40950: 7c 63 03 78 or r3,r3,r0 ffc40954: 90 7d 00 18 stw r3,24(r29) ffc40958: 48 00 00 28 b ffc40980 <== ALWAYS TAKEN errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; ffc4095c: 48 00 6d 31 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc40960: 38 00 00 86 li r0,134 ffc40964: 48 00 00 0c b ffc40970 <== ALWAYS TAKEN ret = -1; break; default: errno = EINVAL; ffc40968: 48 00 6d 25 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc4096c: 38 00 00 16 li r0,22 ffc40970: 90 03 00 00 stw r0,0(r3) ffc40974: 48 00 00 3c b ffc409b0 <== ALWAYS TAKEN /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { ffc40978: 2f 9e 00 00 cmpwi cr7,r30,0 ffc4097c: 41 9c 00 38 blt- cr7,ffc409b4 <== NEVER TAKEN if (iop->handlers->fcntl_h) { ffc40980: 81 3d 00 40 lwz r9,64(r29) ffc40984: 80 09 00 30 lwz r0,48(r9) ffc40988: 2f 80 00 00 cmpwi cr7,r0,0 ffc4098c: 41 9e 00 28 beq- cr7,ffc409b4 <== NEVER TAKEN int err = (*iop->handlers->fcntl_h)( cmd, iop ); ffc40990: 7f e3 fb 78 mr r3,r31 ffc40994: 7c 09 03 a6 mtctr r0 ffc40998: 7f a4 eb 78 mr r4,r29 ffc4099c: 4e 80 04 21 bctrl <== ALWAYS TAKEN if (err) { ffc409a0: 7c 7f 1b 79 mr. r31,r3 ffc409a4: 41 a2 00 10 beq+ ffc409b4 <== ALWAYS TAKEN errno = err; ffc409a8: 48 00 6c e5 bl ffc4768c <__errno> <== NOT EXECUTED ffc409ac: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc409b0: 3b c0 ff ff li r30,-1 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } ffc409b4: 80 01 00 3c lwz r0,60(r1) ffc409b8: 7f c3 f3 78 mr r3,r30 ffc409bc: 83 a1 00 2c lwz r29,44(r1) ffc409c0: 7c 08 03 a6 mtlr r0 ffc409c4: 83 c1 00 30 lwz r30,48(r1) ffc409c8: 83 e1 00 34 lwz r31,52(r1) ffc409cc: 38 21 00 38 addi r1,r1,56 ffc409d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05630 : #include int fdatasync( int fd ) { ffc05630: 7c 08 02 a6 mflr r0 ffc05634: 94 21 ff f8 stwu r1,-8(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc05638: 3d 20 00 00 lis r9,0 #include int fdatasync( int fd ) { ffc0563c: 90 01 00 0c stw r0,12(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc05640: 80 09 26 8c lwz r0,9868(r9) ffc05644: 7f 83 00 40 cmplw cr7,r3,r0 ffc05648: 40 9c 00 20 bge- cr7,ffc05668 iop = rtems_libio_iop( fd ); ffc0564c: 3d 20 00 00 lis r9,0 ffc05650: 80 09 27 50 lwz r0,10064(r9) ffc05654: 1c 63 00 48 mulli r3,r3,72 ffc05658: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc0565c: 80 03 00 18 lwz r0,24(r3) ffc05660: 70 09 01 00 andi. r9,r0,256 ffc05664: 40 a2 00 10 bne+ ffc05674 <== ALWAYS TAKEN ffc05668: 48 00 f7 cd bl ffc14e34 <__errno> <== ALWAYS TAKEN ffc0566c: 38 00 00 09 li r0,9 ffc05670: 48 00 00 30 b ffc056a0 <== ALWAYS TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc05674: 70 09 00 04 andi. r9,r0,4 ffc05678: 40 a2 00 10 bne+ ffc05688 ffc0567c: 48 00 f7 b9 bl ffc14e34 <__errno> <== ALWAYS TAKEN ffc05680: 38 00 00 16 li r0,22 ffc05684: 48 00 00 1c b ffc056a0 <== ALWAYS TAKEN /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) ffc05688: 81 23 00 40 lwz r9,64(r3) ffc0568c: 80 09 00 2c lwz r0,44(r9) ffc05690: 2f 80 00 00 cmpwi cr7,r0,0 ffc05694: 40 be 00 18 bne+ cr7,ffc056ac rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc05698: 48 00 f7 9d bl ffc14e34 <__errno> <== ALWAYS TAKEN ffc0569c: 38 00 00 86 li r0,134 ffc056a0: 90 03 00 00 stw r0,0(r3) ffc056a4: 38 60 ff ff li r3,-1 ffc056a8: 48 00 00 0c b ffc056b4 <== ALWAYS TAKEN return (*iop->handlers->fdatasync_h)( iop ); ffc056ac: 7c 09 03 a6 mtctr r0 ffc056b0: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc056b4: 80 01 00 0c lwz r0,12(r1) ffc056b8: 38 21 00 08 addi r1,r1,8 ffc056bc: 7c 08 03 a6 mtlr r0 ffc056c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f9f8 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0f9f8: 94 21 ff d0 stwu r1,-48(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0f9fc: 3d 20 00 00 lis r9,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0fa00: 7c 08 02 a6 mflr r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0fa04: 38 a0 00 00 li r5,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0fa08: 93 81 00 20 stw r28,32(r1) ffc0fa0c: 7c 7c 1b 78 mr r28,r3 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0fa10: 80 69 29 90 lwz r3,10640(r9) */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0fa14: 93 61 00 1c stw r27,28(r1) ffc0fa18: 7c 9b 23 78 mr r27,r4 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0fa1c: 38 80 00 00 li r4,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0fa20: 93 a1 00 24 stw r29,36(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0fa24: 3b a0 ff fc li r29,-4 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0fa28: 90 01 00 34 stw r0,52(r1) ffc0fa2c: 93 41 00 18 stw r26,24(r1) ffc0fa30: 93 c1 00 28 stw r30,40(r1) ffc0fa34: 93 e1 00 2c stw r31,44(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0fa38: 4b ff 81 89 bl ffc07bc0 <== ALWAYS TAKEN ffc0fa3c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0fa40: 40 9e 03 74 bne- cr7,ffc0fdb4 <== ALWAYS TAKEN RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; ffc0fa44: 83 fc 00 00 lwz r31,0(r28) <== NOT EXECUTED if (pipe == NULL) { ffc0fa48: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc0fa4c: 40 be 01 50 bne+ cr7,ffc0fb9c <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); ffc0fa50: 38 60 00 34 li r3,52 <== NOT EXECUTED ffc0fa54: 4b ff 49 69 bl ffc043bc <== NOT EXECUTED if (pipe == NULL) ffc0fa58: 3b a0 ff f4 li r29,-12 <== NOT EXECUTED ffc0fa5c: 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)); ffc0fa60: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc0fa64: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (pipe == NULL) ffc0fa68: 41 9e 01 78 beq- cr7,ffc0fbe0 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); ffc0fa6c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0fa70: 38 a0 00 34 li r5,52 <== NOT EXECUTED ffc0fa74: 48 00 2e 81 bl ffc128f4 <== NOT EXECUTED pipe->Size = PIPE_BUF; ffc0fa78: 38 00 02 00 li r0,512 <== NOT EXECUTED ffc0fa7c: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); ffc0fa80: 38 60 02 00 li r3,512 <== NOT EXECUTED ffc0fa84: 4b ff 49 39 bl ffc043bc <== NOT EXECUTED if (! pipe->Buffer) ffc0fa88: 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); ffc0fa8c: 90 7e 00 00 stw r3,0(r30) <== NOT EXECUTED if (! pipe->Buffer) ffc0fa90: 41 9e 01 00 beq- cr7,ffc0fb90 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( ffc0fa94: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc0fa98: 88 7d 22 00 lbz r3,8704(r29) <== NOT EXECUTED ffc0fa9c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0faa0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0faa4: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0faa8: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc0faac: 38 de 00 2c addi r6,r30,44 <== NOT EXECUTED ffc0fab0: 48 00 0c d9 bl ffc10788 <== NOT EXECUTED ffc0fab4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0fab8: 40 9e 00 cc bne- cr7,ffc0fb84 <== 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( ffc0fabc: 88 7d 22 00 lbz r3,8704(r29) <== NOT EXECUTED ffc0fac0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0fac4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0fac8: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0facc: 60 63 77 00 ori r3,r3,30464 <== NOT EXECUTED ffc0fad0: 38 de 00 30 addi r6,r30,48 <== NOT EXECUTED ffc0fad4: 48 00 0c b5 bl ffc10788 <== NOT EXECUTED ffc0fad8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0fadc: 40 9e 00 a0 bne- cr7,ffc0fb7c <== 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( ffc0fae0: 88 7d 22 00 lbz r3,8704(r29) <== NOT EXECUTED ffc0fae4: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc0fae8: 38 a0 00 10 li r5,16 <== NOT EXECUTED ffc0faec: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc0faf0: 60 63 73 00 ori r3,r3,29440 <== NOT EXECUTED ffc0faf4: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc0faf8: 38 fe 00 28 addi r7,r30,40 <== NOT EXECUTED ffc0fafc: 4b ff 7d f5 bl ffc078f0 <== NOT EXECUTED ffc0fb00: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0fb04: 40 9e 00 70 bne- cr7,ffc0fb74 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) ffc0fb08: 3f 40 00 00 lis r26,0 <== NOT EXECUTED ffc0fb0c: 80 9e 00 2c lwz r4,44(r30) <== NOT EXECUTED ffc0fb10: 3b 5a 35 4c addi r26,r26,13644 <== NOT EXECUTED ffc0fb14: 3b c1 00 0c addi r30,r1,12 <== NOT EXECUTED ffc0fb18: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc0fb1c: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc0fb20: 4b ff 9d 1d bl ffc0983c <_Objects_Get> <== NOT EXECUTED /* Set barriers to be interruptible by signals. */ static void pipe_interruptible(pipe_control_t *pipe) { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state ffc0fb24: 80 03 00 4c lwz r0,76(r3) <== NOT EXECUTED ffc0fb28: 64 00 10 00 oris r0,r0,4096 <== NOT EXECUTED ffc0fb2c: 90 03 00 4c stw r0,76(r3) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); ffc0fb30: 4b ff a8 1d bl ffc0a34c <_Thread_Enable_dispatch> <== NOT EXECUTED ffc0fb34: 80 9f 00 30 lwz r4,48(r31) <== NOT EXECUTED ffc0fb38: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc0fb3c: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc0fb40: 4b ff 9c fd bl ffc0983c <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state ffc0fb44: 80 03 00 4c lwz r0,76(r3) <== NOT EXECUTED ffc0fb48: 64 00 10 00 oris r0,r0,4096 <== NOT EXECUTED ffc0fb4c: 90 03 00 4c stw r0,76(r3) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); ffc0fb50: 4b ff a7 fd bl ffc0a34c <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') ffc0fb54: 89 3d 22 00 lbz r9,8704(r29) <== NOT EXECUTED ffc0fb58: 2f 89 00 7a cmpwi cr7,r9,122 <== NOT EXECUTED ffc0fb5c: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED ffc0fb60: 99 3d 22 00 stb r9,8704(r29) <== NOT EXECUTED ffc0fb64: 40 be 00 38 bne+ cr7,ffc0fb9c <== NOT EXECUTED c = 'a'; ffc0fb68: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc0fb6c: 98 1d 22 00 stb r0,8704(r29) <== NOT EXECUTED ffc0fb70: 48 00 00 2c b ffc0fb9c <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); ffc0fb74: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc0fb78: 48 00 0d 01 bl ffc10878 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); ffc0fb7c: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc0fb80: 48 00 0c f9 bl ffc10878 <== NOT EXECUTED err_rbar: free(pipe->Buffer); ffc0fb84: 80 7e 00 00 lwz r3,0(r30) <== NOT EXECUTED ffc0fb88: 3b a0 ff fc li r29,-4 <== NOT EXECUTED ffc0fb8c: 4b ff 44 cd bl ffc04058 <== NOT EXECUTED err_buf: free(pipe); ffc0fb90: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0fb94: 4b ff 44 c5 bl ffc04058 <== NOT EXECUTED ffc0fb98: 48 00 00 48 b ffc0fbe0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0fb9c: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0fba0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0fba4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0fba8: 4b ff 80 19 bl ffc07bc0 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0fbac: 80 1c 00 00 lwz r0,0(r28) <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0fbb0: 30 63 ff ff addic r3,r3,-1 <== NOT EXECUTED ffc0fbb4: 7c 63 19 10 subfe r3,r3,r3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0fbb8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc0fbbc: 54 7d 07 7a rlwinm r29,r3,0,29,29 <== NOT EXECUTED ffc0fbc0: 3b bd ff fc addi r29,r29,-4 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc0fbc4: 40 be 00 1c bne+ cr7,ffc0fbe0 <== NOT EXECUTED if (err) ffc0fbc8: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0fbcc: 41 be 00 10 beq+ cr7,ffc0fbdc <== NOT EXECUTED pipe_free(pipe); ffc0fbd0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0fbd4: 4b ff fc b5 bl ffc0f888 <== NOT EXECUTED ffc0fbd8: 48 00 00 08 b ffc0fbe0 <== NOT EXECUTED else *pipep = pipe; ffc0fbdc: 93 fc 00 00 stw r31,0(r28) <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc0fbe0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0fbe4: 80 69 29 90 lwz r3,10640(r9) <== NOT EXECUTED ffc0fbe8: 4b ff 81 1d bl ffc07d04 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) ffc0fbec: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0fbf0: 40 9e 01 c4 bne- cr7,ffc0fdb4 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { ffc0fbf4: 81 3b 00 18 lwz r9,24(r27) <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; ffc0fbf8: 83 fc 00 00 lwz r31,0(r28) <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { ffc0fbfc: 55 20 07 7c rlwinm r0,r9,0,29,30 <== NOT EXECUTED ffc0fc00: 2f 80 00 04 cmpwi cr7,r0,4 <== NOT EXECUTED ffc0fc04: 41 9e 00 a0 beq- cr7,ffc0fca4 <== NOT EXECUTED ffc0fc08: 2f 80 00 06 cmpwi cr7,r0,6 <== NOT EXECUTED ffc0fc0c: 41 9e 01 34 beq- cr7,ffc0fd40 <== NOT EXECUTED ffc0fc10: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0fc14: 40 be 01 84 bne+ cr7,ffc0fd98 <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc0fc18: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0fc1c: 81 7f 00 20 lwz r11,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0fc20: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0fc24: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0fc28: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc0fc2c: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0fc30: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc0fc34: 40 be 00 10 bne+ cr7,ffc0fc44 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0fc38: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0fc3c: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0fc40: 48 00 0c c1 bl ffc10900 <== NOT EXECUTED if (pipe->Writers == 0) { ffc0fc44: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0fc48: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0fc4c: 40 9e 01 4c bne- cr7,ffc0fd98 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) ffc0fc50: 80 1b 00 18 lwz r0,24(r27) <== NOT EXECUTED ffc0fc54: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0fc58: 40 82 01 40 bne- ffc0fd98 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; ffc0fc5c: 83 df 00 24 lwz r30,36(r31) <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); ffc0fc60: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0fc64: 4b ff 80 a1 bl ffc07d04 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc0fc68: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0fc6c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0fc70: 48 00 0d 11 bl ffc10980 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0fc74: 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)) ffc0fc78: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0fc7c: 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)) ffc0fc80: 40 9e 01 24 bne- cr7,ffc0fda4 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0fc84: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0fc88: 4b ff 7f 39 bl ffc07bc0 <== NOT EXECUTED ffc0fc8c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0fc90: 40 9e 01 14 bne- cr7,ffc0fda4 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); ffc0fc94: 80 1f 00 24 lwz r0,36(r31) <== NOT EXECUTED ffc0fc98: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc0fc9c: 41 9e ff c4 beq+ cr7,ffc0fc60 <== NOT EXECUTED ffc0fca0: 48 00 00 f8 b ffc0fd98 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { ffc0fca4: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0fca8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0fcac: 40 9e 00 14 bne- cr7,ffc0fcc0 <== NOT EXECUTED ffc0fcb0: 71 20 00 01 andi. r0,r9,1 <== NOT EXECUTED ffc0fcb4: 41 82 00 0c beq- ffc0fcc0 <== NOT EXECUTED ffc0fcb8: 3b a0 ff fa li r29,-6 <== NOT EXECUTED ffc0fcbc: 48 00 00 ec b ffc0fda8 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc0fcc0: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0fcc4: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0fcc8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0fccc: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0fcd0: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc0fcd4: 90 1f 00 24 stw r0,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0fcd8: 91 3f 00 14 stw r9,20(r31) <== NOT EXECUTED ffc0fcdc: 40 be 00 10 bne+ cr7,ffc0fcec <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0fce0: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0fce4: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0fce8: 48 00 0c 19 bl ffc10900 <== NOT EXECUTED if (pipe->Readers == 0) { ffc0fcec: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0fcf0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0fcf4: 40 9e 00 a4 bne- cr7,ffc0fd98 <== NOT EXECUTED prevCounter = pipe->readerCounter; ffc0fcf8: 83 df 00 20 lwz r30,32(r31) <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); ffc0fcfc: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0fd00: 4b ff 80 05 bl ffc07d04 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc0fd04: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0fd08: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0fd0c: 48 00 0c 75 bl ffc10980 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0fd10: 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)) ffc0fd14: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0fd18: 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)) ffc0fd1c: 40 9e 00 88 bne- cr7,ffc0fda4 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc0fd20: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0fd24: 4b ff 7e 9d bl ffc07bc0 <== NOT EXECUTED ffc0fd28: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0fd2c: 40 9e 00 78 bne- cr7,ffc0fda4 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); ffc0fd30: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc0fd34: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc0fd38: 41 9e ff c4 beq+ cr7,ffc0fcfc <== NOT EXECUTED ffc0fd3c: 48 00 00 5c b ffc0fd98 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc0fd40: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0fd44: 81 7f 00 20 lwz r11,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0fd48: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0fd4c: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0fd50: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc0fd54: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc0fd58: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc0fd5c: 40 be 00 10 bne+ cr7,ffc0fd6c <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0fd60: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0fd64: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0fd68: 48 00 0b 99 bl ffc10900 <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc0fd6c: 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 ++; ffc0fd70: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0fd74: 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 ++; ffc0fd78: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0fd7c: 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 ++; ffc0fd80: 90 1f 00 24 stw r0,36(r31) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc0fd84: 91 3f 00 14 stw r9,20(r31) <== NOT EXECUTED ffc0fd88: 40 be 00 10 bne+ cr7,ffc0fd98 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0fd8c: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0fd90: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0fd94: 48 00 0b 6d bl ffc10900 <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); ffc0fd98: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0fd9c: 4b ff 7f 69 bl ffc07d04 <== NOT EXECUTED return 0; ffc0fda0: 48 00 00 14 b ffc0fdb4 <== NOT EXECUTED ffc0fda4: 3b a0 ff fc li r29,-4 <== NOT EXECUTED out_error: pipe_release(pipep, iop); ffc0fda8: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0fdac: 7f 64 db 78 mr r4,r27 <== NOT EXECUTED ffc0fdb0: 4b ff fb 29 bl ffc0f8d8 <== NOT EXECUTED return err; } ffc0fdb4: 80 01 00 34 lwz r0,52(r1) ffc0fdb8: 7f a3 eb 78 mr r3,r29 ffc0fdbc: 83 41 00 18 lwz r26,24(r1) ffc0fdc0: 7c 08 03 a6 mtlr r0 ffc0fdc4: 83 61 00 1c lwz r27,28(r1) ffc0fdc8: 83 81 00 20 lwz r28,32(r1) ffc0fdcc: 83 a1 00 24 lwz r29,36(r1) ffc0fdd0: 83 c1 00 28 lwz r30,40(r1) ffc0fdd4: 83 e1 00 2c lwz r31,44(r1) ffc0fdd8: 38 21 00 30 addi r1,r1,48 ffc0fddc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c34c : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0c34c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0c350: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc0c354: 81 29 63 d0 lwz r9,25552(r9) <== NOT EXECUTED ffc0c358: 38 0b 63 d4 addi r0,r11,25556 <== NOT EXECUTED ffc0c35c: 48 00 00 20 b ffc0c37c <== 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 ) { ffc0c360: 81 49 00 18 lwz r10,24(r9) <== NOT EXECUTED ffc0c364: 81 64 00 10 lwz r11,16(r4) <== NOT EXECUTED ffc0c368: 7f 8a 58 00 cmpw cr7,r10,r11 <== NOT EXECUTED ffc0c36c: 40 be 00 0c bne+ cr7,ffc0c378 <== NOT EXECUTED ffc0c370: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0c374: 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 ) { ffc0c378: 81 29 00 00 lwz r9,0(r9) <== NOT EXECUTED ffc0c37c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0c380: 40 9e ff e0 bne+ cr7,ffc0c360 <== NOT EXECUTED ffc0c384: 38 60 00 00 li r3,0 <== NOT EXECUTED return true; } } return false; } ffc0c388: 4e 80 00 20 blr <== NOT EXECUTED ffc07c5c : #include #include int fork( void ) { rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07c5c: 94 21 ff f8 stwu r1,-8(r1) ffc07c60: 7c 08 02 a6 mflr r0 ffc07c64: 90 01 00 0c stw r0,12(r1) ffc07c68: 48 00 ae 71 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07c6c: 38 00 00 58 li r0,88 ffc07c70: 90 03 00 00 stw r0,0(r3) } ffc07c74: 38 60 ff ff li r3,-1 ffc07c78: 80 01 00 0c lwz r0,12(r1) ffc07c7c: 38 21 00 08 addi r1,r1,8 ffc07c80: 7c 08 03 a6 mtlr r0 ffc07c84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc056c4 : long fpathconf( int fd, int name ) { ffc056c4: 7c 08 02 a6 mflr r0 ffc056c8: 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); ffc056cc: 3d 20 00 00 lis r9,0 long fpathconf( int fd, int name ) { ffc056d0: 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); ffc056d4: 80 09 26 8c lwz r0,9868(r9) ffc056d8: 7f 83 00 40 cmplw cr7,r3,r0 ffc056dc: 40 9c 00 20 bge- cr7,ffc056fc iop = rtems_libio_iop(fd); ffc056e0: 3d 20 00 00 lis r9,0 ffc056e4: 80 09 27 50 lwz r0,10064(r9) ffc056e8: 1c 63 00 48 mulli r3,r3,72 ffc056ec: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc056f0: 80 03 00 18 lwz r0,24(r3) ffc056f4: 70 09 01 00 andi. r9,r0,256 ffc056f8: 40 a2 00 10 bne+ ffc05708 <== ALWAYS TAKEN ffc056fc: 48 00 f7 39 bl ffc14e34 <__errno> <== ALWAYS TAKEN ffc05700: 38 00 00 09 li r0,9 ffc05704: 48 00 00 9c b ffc057a0 <== ALWAYS TAKEN rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); ffc05708: 70 09 00 02 andi. r9,r0,2 ffc0570c: 41 82 00 8c beq- ffc05798 <== NEVER TAKEN * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { ffc05710: 2b 84 00 0b cmplwi cr7,r4,11 /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; ffc05714: 81 23 00 2c lwz r9,44(r3) switch ( name ) { ffc05718: 41 9d 00 80 bgt- cr7,ffc05798 ffc0571c: 3d 60 ff c2 lis r11,-62 ffc05720: 39 6b 27 10 addi r11,r11,10000 ffc05724: 54 84 10 3a rlwinm r4,r4,2,0,29 ffc05728: 7c 0b 20 2e lwzx r0,r11,r4 ffc0572c: 7d 60 5a 14 add r11,r0,r11 ffc05730: 7d 69 03 a6 mtctr r11 ffc05734: 4e 80 04 20 bctr <== ALWAYS TAKEN case _PC_LINK_MAX: return_value = the_limits->link_max; ffc05738: 80 69 00 38 lwz r3,56(r9) break; ffc0573c: 48 00 00 6c b ffc057a8 <== ALWAYS TAKEN case _PC_MAX_CANON: return_value = the_limits->max_canon; ffc05740: 80 69 00 3c lwz r3,60(r9) break; ffc05744: 48 00 00 64 b ffc057a8 <== ALWAYS TAKEN case _PC_MAX_INPUT: return_value = the_limits->max_input; ffc05748: 80 69 00 40 lwz r3,64(r9) break; ffc0574c: 48 00 00 5c b ffc057a8 <== ALWAYS TAKEN case _PC_NAME_MAX: return_value = the_limits->name_max; ffc05750: 80 69 00 44 lwz r3,68(r9) break; ffc05754: 48 00 00 54 b ffc057a8 <== ALWAYS TAKEN case _PC_PATH_MAX: return_value = the_limits->path_max; ffc05758: 80 69 00 48 lwz r3,72(r9) break; ffc0575c: 48 00 00 4c b ffc057a8 <== ALWAYS TAKEN case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; ffc05760: 80 69 00 4c lwz r3,76(r9) break; ffc05764: 48 00 00 44 b ffc057a8 <== ALWAYS TAKEN case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; ffc05768: 80 69 00 54 lwz r3,84(r9) break; ffc0576c: 48 00 00 3c b ffc057a8 <== ALWAYS TAKEN case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; ffc05770: 80 69 00 58 lwz r3,88(r9) break; ffc05774: 48 00 00 34 b ffc057a8 <== ALWAYS TAKEN case _PC_VDISABLE: return_value = the_limits->posix_vdisable; ffc05778: 80 69 00 64 lwz r3,100(r9) break; ffc0577c: 48 00 00 2c b ffc057a8 <== ALWAYS TAKEN case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; ffc05780: 80 69 00 50 lwz r3,80(r9) break; ffc05784: 48 00 00 24 b ffc057a8 <== ALWAYS TAKEN case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; ffc05788: 80 69 00 5c lwz r3,92(r9) break; ffc0578c: 48 00 00 1c b ffc057a8 <== ALWAYS TAKEN case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; ffc05790: 80 69 00 60 lwz r3,96(r9) break; ffc05794: 48 00 00 14 b ffc057a8 <== ALWAYS TAKEN default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc05798: 48 00 f6 9d bl ffc14e34 <__errno> <== ALWAYS TAKEN ffc0579c: 38 00 00 16 li r0,22 ffc057a0: 90 03 00 00 stw r0,0(r3) ffc057a4: 38 60 ff ff li r3,-1 break; } return return_value; } ffc057a8: 80 01 00 0c lwz r0,12(r1) ffc057ac: 38 21 00 08 addi r1,r1,8 ffc057b0: 7c 08 03 a6 mtlr r0 ffc057b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04058 : void free( void *ptr ) { MSBUMP(free_calls, 1); ffc04058: 94 21 ff f0 stwu r1,-16(r1) ffc0405c: 7c 08 02 a6 mflr r0 ffc04060: 3d 20 00 00 lis r9,0 ffc04064: 90 01 00 14 stw r0,20(r1) ffc04068: 39 29 2b 00 addi r9,r9,11008 <== ALWAYS TAKEN ffc0406c: 93 e1 00 0c stw r31,12(r1) if ( !ptr ) ffc04070: 7c 7f 1b 79 mr. r31,r3 void free( void *ptr ) { MSBUMP(free_calls, 1); ffc04074: 81 69 00 0c lwz r11,12(r9) ffc04078: 93 c1 00 08 stw r30,8(r1) ffc0407c: 38 0b 00 01 addi r0,r11,1 ffc04080: 90 09 00 0c stw r0,12(r9) if ( !ptr ) ffc04084: 41 82 00 84 beq- ffc04108 /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && ffc04088: 3d 20 00 00 lis r9,0 ffc0408c: 80 09 27 d4 lwz r0,10196(r9) ffc04090: 2f 80 00 03 cmpwi cr7,r0,3 ffc04094: 40 be 00 1c bne+ cr7,ffc040b0 <== NEVER TAKEN ffc04098: 48 00 01 59 bl ffc041f0 <== ALWAYS TAKEN ffc0409c: 2f 83 00 00 cmpwi cr7,r3,0 ffc040a0: 40 be 00 10 bne+ cr7,ffc040b0 <== ALWAYS TAKEN !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); ffc040a4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc040a8: 48 00 01 91 bl ffc04238 <== NOT EXECUTED return; ffc040ac: 48 00 00 5c b ffc04108 <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) ffc040b0: 3d 20 00 00 lis r9,0 ffc040b4: 81 29 27 08 lwz r9,9992(r9) <== ALWAYS TAKEN ffc040b8: 2f 89 00 00 cmpwi cr7,r9,0 ffc040bc: 41 9e 00 14 beq- cr7,ffc040d0 <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->at_free)(ptr); ffc040c0: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED ffc040c4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc040c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc040cc: 4e 80 04 21 bctrl <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { ffc040d0: 3f c0 00 00 lis r30,0 <== ALWAYS TAKEN ffc040d4: 80 7e 26 9c lwz r3,9884(r30) ffc040d8: 7f e4 fb 78 mr r4,r31 ffc040dc: 48 00 5b 1d bl ffc09bf8 <_Protected_heap_Free> <== ALWAYS TAKEN ffc040e0: 2f 83 00 00 cmpwi cr7,r3,0 ffc040e4: 40 be 00 24 bne+ cr7,ffc04108 <== ALWAYS TAKEN printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, ffc040e8: 81 3e 26 9c lwz r9,9884(r30) <== NOT EXECUTED */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_free)(ptr); if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ffc040ec: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc040f0: 38 63 de 6d addi r3,r3,-8595 <== NOT EXECUTED ffc040f4: 80 c9 00 1c lwz r6,28(r9) <== NOT EXECUTED ffc040f8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc040fc: 80 a9 00 18 lwz r5,24(r9) <== NOT EXECUTED ffc04100: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc04104: 48 00 0f 2d bl ffc05030 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } ffc04108: 80 01 00 14 lwz r0,20(r1) ffc0410c: 83 c1 00 08 lwz r30,8(r1) ffc04110: 7c 08 03 a6 mtlr r0 ffc04114: 83 e1 00 0c lwz r31,12(r1) ffc04118: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0411c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2c73c : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { ffc2c73c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2c740: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env ffc2c744: 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) { ffc2c748: 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 ffc2c74c: 38 09 63 dc addi r0,r9,25564 <== NOT EXECUTED ffc2c750: 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) { ffc2c754: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc2c758: 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 ffc2c75c: 41 9e 00 54 beq- cr7,ffc2c7b0 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); ffc2c760: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc2c764: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c768: 41 9e 00 1c beq- cr7,ffc2c784 <== NOT EXECUTED ffc2c76c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c770: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c774: 41 9e 00 10 beq- cr7,ffc2c784 <== NOT EXECUTED ffc2c778: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED ffc2c77c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c780: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); ffc2c784: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc2c788: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c78c: 41 9e 00 1c beq- cr7,ffc2c7a8 <== NOT EXECUTED ffc2c790: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c794: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c798: 41 9e 00 10 beq- cr7,ffc2c7a8 <== NOT EXECUTED ffc2c79c: 38 7f 00 18 addi r3,r31,24 <== NOT EXECUTED ffc2c7a0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c7a4: 4e 80 04 21 bctrl <== NOT EXECUTED free(env); ffc2c7a8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c7ac: 4b fd bc 75 bl ffc08420 <== NOT EXECUTED } } ffc2c7b0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2c7b4: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2c7b8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2c7bc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2c7c0: 4e 80 00 20 blr <== NOT EXECUTED ffc1c6a0 : int fstat( int fd, struct stat *sbuf ) { ffc1c6a0: 94 21 ff f0 stwu r1,-16(r1) ffc1c6a4: 7c 08 02 a6 mflr r0 ffc1c6a8: 93 c1 00 08 stw r30,8(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1c6ac: 7c 9e 23 79 mr. r30,r4 int fstat( int fd, struct stat *sbuf ) { ffc1c6b0: 90 01 00 14 stw r0,20(r1) ffc1c6b4: 93 e1 00 0c stw r31,12(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1c6b8: 40 a2 00 10 bne+ ffc1c6c8 rtems_set_errno_and_return_minus_one( EFAULT ); ffc1c6bc: 4b ff 55 51 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc1c6c0: 38 00 00 0e li r0,14 ffc1c6c4: 48 00 00 38 b ffc1c6fc <== ALWAYS TAKEN /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); ffc1c6c8: 3d 20 00 00 lis r9,0 ffc1c6cc: 80 09 26 8c lwz r0,9868(r9) ffc1c6d0: 7f 83 00 40 cmplw cr7,r3,r0 ffc1c6d4: 40 9c 00 20 bge- cr7,ffc1c6f4 ffc1c6d8: 3d 20 00 00 lis r9,0 ffc1c6dc: 83 e9 27 4c lwz r31,10060(r9) ffc1c6e0: 1c 63 00 48 mulli r3,r3,72 ffc1c6e4: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); ffc1c6e8: 80 1f 00 18 lwz r0,24(r31) ffc1c6ec: 70 09 01 00 andi. r9,r0,256 ffc1c6f0: 40 a2 00 18 bne+ ffc1c708 <== ALWAYS TAKEN /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); ffc1c6f4: 4b ff 55 19 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc1c6f8: 38 00 00 09 li r0,9 ffc1c6fc: 90 03 00 00 stw r0,0(r3) ffc1c700: 38 60 ff ff li r3,-1 ffc1c704: 48 00 00 50 b ffc1c754 <== ALWAYS TAKEN rtems_libio_check_is_open(iop); if ( !iop->handlers ) ffc1c708: 81 3f 00 40 lwz r9,64(r31) ffc1c70c: 2f 89 00 00 cmpwi cr7,r9,0 ffc1c710: 41 be ff e4 beq- cr7,ffc1c6f4 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) ffc1c714: 80 09 00 18 lwz r0,24(r9) ffc1c718: 2f 80 00 00 cmpwi cr7,r0,0 ffc1c71c: 40 be 00 10 bne+ cr7,ffc1c72c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1c720: 4b ff 54 ed bl ffc11c0c <__errno> <== NOT EXECUTED ffc1c724: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1c728: 4b ff ff d4 b ffc1c6fc <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); ffc1c72c: 38 80 00 00 li r4,0 ffc1c730: 38 a0 00 48 li r5,72 ffc1c734: 7f c3 f3 78 mr r3,r30 ffc1c738: 4b ff 61 bd bl ffc128f4 <== ALWAYS TAKEN return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); ffc1c73c: 81 3f 00 40 lwz r9,64(r31) ffc1c740: 38 7f 00 1c addi r3,r31,28 ffc1c744: 80 09 00 18 lwz r0,24(r9) ffc1c748: 7f c4 f3 78 mr r4,r30 ffc1c74c: 7c 09 03 a6 mtctr r0 ffc1c750: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc1c754: 80 01 00 14 lwz r0,20(r1) ffc1c758: 83 c1 00 08 lwz r30,8(r1) ffc1c75c: 7c 08 03 a6 mtlr r0 ffc1c760: 83 e1 00 0c lwz r31,12(r1) ffc1c764: 38 21 00 10 addi r1,r1,16 ffc1c768: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b148 : #include int fsync( int fd ) { ffc2b148: 7c 08 02 a6 mflr r0 ffc2b14c: 94 21 ff f8 stwu r1,-8(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2b150: 3d 20 00 00 lis r9,0 #include int fsync( int fd ) { ffc2b154: 90 01 00 0c stw r0,12(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2b158: 80 09 34 cc lwz r0,13516(r9) ffc2b15c: 7f 83 00 40 cmplw cr7,r3,r0 ffc2b160: 40 9c 00 40 bge- cr7,ffc2b1a0 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc2b164: 3d 20 00 00 lis r9,0 ffc2b168: 80 09 35 f4 lwz r0,13812(r9) ffc2b16c: 1c 63 00 48 mulli r3,r3,72 ffc2b170: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc2b174: 80 03 00 18 lwz r0,24(r3) ffc2b178: 70 09 01 00 andi. r9,r0,256 ffc2b17c: 41 82 00 24 beq- ffc2b1a0 <== NEVER TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2b180: 70 09 00 04 andi. r9,r0,4 ffc2b184: 40 a2 00 10 bne+ ffc2b194 ffc2b188: 48 01 c5 05 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2b18c: 38 00 00 16 li r0,22 ffc2b190: 48 00 00 30 b ffc2b1c0 <== ALWAYS TAKEN /* * Now process the fsync(). */ if ( !iop->handlers ) ffc2b194: 81 23 00 40 lwz r9,64(r3) ffc2b198: 2f 89 00 00 cmpwi cr7,r9,0 ffc2b19c: 40 be 00 10 bne+ cr7,ffc2b1ac <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); ffc2b1a0: 48 01 c4 ed bl ffc4768c <__errno> <== NOT EXECUTED ffc2b1a4: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2b1a8: 48 00 00 18 b ffc2b1c0 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) ffc2b1ac: 80 09 00 28 lwz r0,40(r9) ffc2b1b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b1b4: 40 be 00 18 bne+ cr7,ffc2b1cc rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2b1b8: 48 01 c4 d5 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2b1bc: 38 00 00 86 li r0,134 ffc2b1c0: 90 03 00 00 stw r0,0(r3) ffc2b1c4: 38 60 ff ff li r3,-1 ffc2b1c8: 48 00 00 0c b ffc2b1d4 <== ALWAYS TAKEN return (*iop->handlers->fsync_h)( iop ); ffc2b1cc: 7c 09 03 a6 mtctr r0 ffc2b1d0: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc2b1d4: 80 01 00 0c lwz r0,12(r1) ffc2b1d8: 38 21 00 08 addi r1,r1,8 ffc2b1dc: 7c 08 03 a6 mtlr r0 ffc2b1e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cfe4 : int ftruncate( int fd, off_t length ) { ffc0cfe4: 94 21 ff c8 stwu r1,-56(r1) ffc0cfe8: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0cfec: 3d 20 00 00 lis r9,0 int ftruncate( int fd, off_t length ) { ffc0cff0: 90 01 00 3c stw r0,60(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0cff4: 80 09 26 8c lwz r0,9868(r9) int ftruncate( int fd, off_t length ) { ffc0cff8: 93 a1 00 2c stw r29,44(r1) ffc0cffc: 7c bd 2b 78 mr r29,r5 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d000: 7f 83 00 40 cmplw cr7,r3,r0 int ftruncate( int fd, off_t length ) { ffc0d004: 93 c1 00 30 stw r30,48(r1) ffc0d008: 7c de 33 78 mr r30,r6 ffc0d00c: 93 e1 00 34 stw r31,52(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0d010: 40 9c 00 20 bge- cr7,ffc0d030 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc0d014: 3d 20 00 00 lis r9,0 ffc0d018: 83 e9 27 4c lwz r31,10060(r9) ffc0d01c: 1c 63 00 48 mulli r3,r3,72 ffc0d020: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc0d024: 80 1f 00 18 lwz r0,24(r31) ffc0d028: 70 09 01 00 andi. r9,r0,256 ffc0d02c: 40 a2 00 10 bne+ ffc0d03c <== ALWAYS TAKEN ffc0d030: 48 00 4b dd bl ffc11c0c <__errno> <== NOT EXECUTED ffc0d034: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc0d038: 48 00 00 88 b ffc0d0c0 <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d03c: 81 3f 00 28 lwz r9,40(r31) ffc0d040: 81 1f 00 1c lwz r8,28(r31) if ( !loc.ops->node_type_h ) ffc0d044: 80 09 00 10 lwz r0,16(r9) /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d048: 81 5f 00 20 lwz r10,32(r31) ffc0d04c: 81 7f 00 24 lwz r11,36(r31) if ( !loc.ops->node_type_h ) ffc0d050: 2f 80 00 00 cmpwi cr7,r0,0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0d054: 91 01 00 08 stw r8,8(r1) ffc0d058: 91 41 00 0c stw r10,12(r1) ffc0d05c: 91 61 00 10 stw r11,16(r1) ffc0d060: 91 21 00 14 stw r9,20(r1) ffc0d064: 81 3f 00 2c lwz r9,44(r31) ffc0d068: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc0d06c: 41 9e 00 4c beq- cr7,ffc0d0b8 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) ffc0d070: 38 61 00 08 addi r3,r1,8 ffc0d074: 7c 09 03 a6 mtctr r0 ffc0d078: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0d07c: 2f 83 00 01 cmpwi cr7,r3,1 ffc0d080: 40 be 00 10 bne+ cr7,ffc0d090 rtems_set_errno_and_return_minus_one( EISDIR ); ffc0d084: 48 00 4b 89 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0d088: 38 00 00 15 li r0,21 ffc0d08c: 48 00 00 34 b ffc0d0c0 <== ALWAYS TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc0d090: 80 1f 00 18 lwz r0,24(r31) ffc0d094: 70 09 00 04 andi. r9,r0,4 ffc0d098: 40 a2 00 10 bne+ ffc0d0a8 <== ALWAYS TAKEN ffc0d09c: 48 00 4b 71 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0d0a0: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0d0a4: 48 00 00 1c b ffc0d0c0 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) ffc0d0a8: 81 3f 00 40 lwz r9,64(r31) ffc0d0ac: 80 09 00 20 lwz r0,32(r9) ffc0d0b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d0b4: 40 be 00 18 bne+ cr7,ffc0d0cc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0d0b8: 48 00 4b 55 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0d0bc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0d0c0: 90 03 00 00 stw r0,0(r3) ffc0d0c4: 38 60 ff ff li r3,-1 ffc0d0c8: 48 00 00 18 b ffc0d0e0 <== ALWAYS TAKEN return (*iop->handlers->ftruncate_h)( iop, length ); ffc0d0cc: 7f e3 fb 78 mr r3,r31 ffc0d0d0: 7c 09 03 a6 mtctr r0 ffc0d0d4: 7f a5 eb 78 mr r5,r29 ffc0d0d8: 7f c6 f3 78 mr r6,r30 ffc0d0dc: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0d0e0: 80 01 00 3c lwz r0,60(r1) ffc0d0e4: 83 a1 00 2c lwz r29,44(r1) ffc0d0e8: 7c 08 03 a6 mtlr r0 ffc0d0ec: 83 c1 00 30 lwz r30,48(r1) ffc0d0f0: 83 e1 00 34 lwz r31,52(r1) ffc0d0f4: 38 21 00 38 addi r1,r1,56 ffc0d0f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc62440 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc62440: 94 21 ff c8 stwu r1,-56(r1) ffc62444: 7c 08 02 a6 mflr r0 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc62448: 3d 20 00 00 lis r9,0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc6244c: 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 ); ffc62450: 80 09 34 cc lwz r0,13516(r9) int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc62454: 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 ); ffc62458: 3b e0 00 00 li r31,0 ffc6245c: 7f 83 00 40 cmplw cr7,r3,r0 ffc62460: 40 9c 00 14 bge- cr7,ffc62474 <== NEVER TAKEN ffc62464: 3d 60 00 00 lis r11,0 ffc62468: 1d 23 00 48 mulli r9,r3,72 ffc6246c: 83 eb 35 f4 lwz r31,13812(r11) ffc62470: 7f ff 4a 14 add r31,r31,r9 /* * Make sure we are working on a directory */ loc = iop->pathinfo; ffc62474: 81 3f 00 28 lwz r9,40(r31) ffc62478: 81 1f 00 1c lwz r8,28(r31) if ( !loc.ops->node_type_h ) ffc6247c: 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; ffc62480: 81 5f 00 20 lwz r10,32(r31) ffc62484: 81 7f 00 24 lwz r11,36(r31) if ( !loc.ops->node_type_h ) ffc62488: 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; ffc6248c: 91 01 00 08 stw r8,8(r1) ffc62490: 91 41 00 0c stw r10,12(r1) ffc62494: 91 61 00 10 stw r11,16(r1) ffc62498: 91 21 00 14 stw r9,20(r1) ffc6249c: 81 3f 00 2c lwz r9,44(r31) ffc624a0: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc624a4: 41 9e 00 4c beq- cr7,ffc624f0 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) ffc624a8: 90 81 00 28 stw r4,40(r1) ffc624ac: 38 61 00 08 addi r3,r1,8 ffc624b0: 7c 09 03 a6 mtctr r0 ffc624b4: 90 a1 00 2c stw r5,44(r1) ffc624b8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc624bc: 80 81 00 28 lwz r4,40(r1) ffc624c0: 2f 83 00 01 cmpwi cr7,r3,1 ffc624c4: 80 a1 00 2c lwz r5,44(r1) ffc624c8: 41 be 00 18 beq+ cr7,ffc624e0 rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc624cc: 4b fe 51 c1 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc624d0: 38 00 00 14 li r0,20 ffc624d4: 90 03 00 00 stw r0,0(r3) ffc624d8: 38 60 ff ff li r3,-1 ffc624dc: 48 00 00 2c b ffc62508 <== ALWAYS TAKEN /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) ffc624e0: 81 3f 00 40 lwz r9,64(r31) ffc624e4: 80 09 00 08 lwz r0,8(r9) ffc624e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc624ec: 40 be 00 10 bne+ cr7,ffc624fc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc624f0: 4b fe 51 9d bl ffc4768c <__errno> <== NOT EXECUTED ffc624f4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc624f8: 4b ff ff dc b ffc624d4 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); ffc624fc: 7f e3 fb 78 mr r3,r31 ffc62500: 7c 09 03 a6 mtctr r0 ffc62504: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc62508: 80 01 00 3c lwz r0,60(r1) ffc6250c: 83 e1 00 34 lwz r31,52(r1) ffc62510: 38 21 00 38 addi r1,r1,56 ffc62514: 7c 08 03 a6 mtlr r0 ffc62518: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d0fc : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { ffc0d0fc: 3d 20 00 00 lis r9,0 ffc0d100: 81 29 26 dc lwz r9,9948(r9) return _POSIX_types_Egid; } ffc0d104: a0 69 00 38 lhz r3,56(r9) ffc0d108: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d10c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { ffc0d10c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0d110: 81 29 26 dc lwz r9,9948(r9) return _POSIX_types_Euid; } ffc0d114: a0 69 00 36 lhz r3,54(r9) ffc0d118: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b31c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { ffc2b31c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2b320: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED return _POSIX_types_Gid; } ffc2b324: a0 69 00 34 lhz r3,52(r9) <== NOT EXECUTED ffc2b328: 4e 80 00 20 blr <== NOT EXECUTED ffc2bad8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2bad8: 94 21 ff d8 stwu r1,-40(r1) ffc2badc: 7d 80 00 26 mfcr r12 ffc2bae0: 7c 08 02 a6 mflr r0 ffc2bae4: 93 21 00 0c stw r25,12(r1) ffc2bae8: 7d 19 43 78 mr r25,r8 ffc2baec: 90 01 00 2c stw r0,44(r1) ffc2baf0: 93 41 00 10 stw r26,16(r1) ffc2baf4: 93 61 00 14 stw r27,20(r1) ffc2baf8: 7c fb 3b 78 mr r27,r7 ffc2bafc: 93 81 00 18 stw r28,24(r1) ffc2bb00: 7c dc 33 78 mr r28,r6 ffc2bb04: 93 a1 00 1c stw r29,28(r1) ffc2bb08: 7c 9d 23 78 mr r29,r4 ffc2bb0c: 93 c1 00 20 stw r30,32(r1) ffc2bb10: 7c 7e 1b 78 mr r30,r3 ffc2bb14: 93 e1 00 24 stw r31,36(r1) ffc2bb18: 7c bf 2b 78 mr r31,r5 ffc2bb1c: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc2bb20: 4b ff fe 79 bl ffc2b998 <== ALWAYS TAKEN if ((fp = fopen("/etc/group", "r")) == NULL) { ffc2bb24: 3c 60 ff c6 lis r3,-58 ffc2bb28: 3c 80 ff c6 lis r4,-58 ffc2bb2c: 38 63 34 e0 addi r3,r3,13536 ffc2bb30: 38 84 4e bc addi r4,r4,20156 ffc2bb34: 48 01 c8 25 bl ffc48358 <== ALWAYS TAKEN ffc2bb38: 7c 7a 1b 79 mr. r26,r3 ffc2bb3c: 40 a2 00 14 bne+ ffc2bb50 <== ALWAYS TAKEN errno = EINVAL; ffc2bb40: 48 01 bb 4d bl ffc4768c <__errno> <== NOT EXECUTED ffc2bb44: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2bb48: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2bb4c: 48 00 00 3c b ffc2bb88 <== NOT EXECUTED if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2bb50: 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)) { ffc2bb54: 7f e4 fb 78 mr r4,r31 ffc2bb58: 7f 85 e3 78 mr r5,r28 ffc2bb5c: 7f 66 db 78 mr r6,r27 ffc2bb60: 7f 43 d3 78 mr r3,r26 ffc2bb64: 4b ff fa b9 bl ffc2b61c <== ALWAYS TAKEN errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); ffc2bb68: 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)) { ffc2bb6c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bb70: 40 be 00 20 bne+ cr7,ffc2bb90 <== ALWAYS TAKEN errno = EINVAL; ffc2bb74: 48 01 bb 19 bl ffc4768c <__errno> <== NOT EXECUTED ffc2bb78: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2bb7c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc2bb80: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc2bb84: 48 01 bc a9 bl ffc4782c <== NOT EXECUTED ffc2bb88: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc2bb8c: 48 00 00 3c b ffc2bbc8 <== NOT EXECUTED } if (name) { ffc2bb90: 41 92 00 10 beq- cr4,ffc2bba0 <== NEVER TAKEN match = (strcmp(grp->gr_name, name) == 0); ffc2bb94: 80 7f 00 00 lwz r3,0(r31) ffc2bb98: 48 02 32 dd bl ffc4ee74 <== ALWAYS TAKEN ffc2bb9c: 48 00 00 0c b ffc2bba8 <== ALWAYS TAKEN } else { match = (grp->gr_gid == gid); ffc2bba0: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc2bba4: 7c 63 ea 78 xor r3,r3,r29 <== NOT EXECUTED ffc2bba8: 7c 63 00 34 cntlzw r3,r3 ffc2bbac: 54 63 d9 7e rlwinm r3,r3,27,5,31 } if (match) { ffc2bbb0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bbb4: 41 9e ff a0 beq+ cr7,ffc2bb54 fclose(fp); ffc2bbb8: 7f 43 d3 78 mr r3,r26 ffc2bbbc: 48 01 bc 71 bl ffc4782c <== ALWAYS TAKEN *result = grp; ffc2bbc0: 93 f9 00 00 stw r31,0(r25) ffc2bbc4: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc2bbc8: 80 01 00 2c lwz r0,44(r1) ffc2bbcc: 81 81 00 08 lwz r12,8(r1) ffc2bbd0: 7c 08 03 a6 mtlr r0 ffc2bbd4: 83 21 00 0c lwz r25,12(r1) ffc2bbd8: 83 41 00 10 lwz r26,16(r1) ffc2bbdc: 7d 80 81 20 mtcrf 8,r12 ffc2bbe0: 83 61 00 14 lwz r27,20(r1) ffc2bbe4: 83 81 00 18 lwz r28,24(r1) ffc2bbe8: 83 a1 00 1c lwz r29,28(r1) ffc2bbec: 83 c1 00 20 lwz r30,32(r1) ffc2bbf0: 83 e1 00 24 lwz r31,36(r1) ffc2bbf4: 38 21 00 28 addi r1,r1,40 ffc2bbf8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b790 : return p; } struct group *getgrent(void) { if (group_fp == NULL) ffc2b790: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2b794: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2b798: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp == NULL) ffc2b79c: 80 65 5f 74 lwz r3,24436(r5) <== NOT EXECUTED ffc2b7a0: 38 a5 5f 74 addi r5,r5,24436 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2b7a4: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (group_fp == NULL) ffc2b7a8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2b7ac: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (group_fp == NULL) ffc2b7b0: 41 be 00 24 beq+ cr7,ffc2b7d4 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) ffc2b7b4: 3b e5 00 08 addi r31,r5,8 <== NOT EXECUTED ffc2b7b8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2b7bc: 38 a5 00 18 addi r5,r5,24 <== NOT EXECUTED ffc2b7c0: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc2b7c4: 4b ff fe 59 bl ffc2b61c <== NOT EXECUTED ffc2b7c8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b7cc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2b7d0: 40 be 00 08 bne+ cr7,ffc2b7d8 <== NOT EXECUTED ffc2b7d4: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &grent; } ffc2b7d8: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2b7dc: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2b7e0: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2b7e4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b7e8: 4e 80 00 20 blr <== NOT EXECUTED ffc2bc24 : } struct group *getgrgid( gid_t gid ) { ffc2bc24: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2bc28: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc2bc2c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2bc30: 38 84 5f 74 addi r4,r4,24436 <== NOT EXECUTED ffc2bc34: 38 a4 00 18 addi r5,r4,24 <== NOT EXECUTED ffc2bc38: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc2bc3c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2bc40: 38 84 00 08 addi r4,r4,8 <== NOT EXECUTED ffc2bc44: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc2bc48: 4b ff ff b5 bl ffc2bbfc <== NOT EXECUTED ffc2bc4c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2bc50: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2bc54: 40 9e 00 08 bne- cr7,ffc2bc5c <== NOT EXECUTED return NULL; return p; ffc2bc58: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc2bc5c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc2bc60: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc2bc64: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2bc68: 4e 80 00 20 blr <== NOT EXECUTED ffc2bbfc : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2bbfc: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc2bc00: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc2bc04: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc2bc08: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); ffc2bc0c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2bc10: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc2bc14: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc2bc18: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc2bc1c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2bc20: 4b ff fe b8 b ffc2bad8 <== NOT EXECUTED ffc2bc8c : } struct group *getgrnam( const char *name ) { ffc2bc8c: 94 21 ff e8 stwu r1,-24(r1) struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc2bc90: 3c 80 00 00 lis r4,0 } struct group *getgrnam( const char *name ) { ffc2bc94: 7c 08 02 a6 mflr r0 struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc2bc98: 38 84 5f 74 addi r4,r4,24436 ffc2bc9c: 38 a4 00 18 addi r5,r4,24 ffc2bca0: 38 c0 00 c8 li r6,200 } struct group *getgrnam( const char *name ) { ffc2bca4: 90 01 00 1c stw r0,28(r1) struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc2bca8: 38 84 00 08 addi r4,r4,8 ffc2bcac: 38 e1 00 08 addi r7,r1,8 ffc2bcb0: 4b ff ff bd bl ffc2bc6c <== ALWAYS TAKEN ffc2bcb4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bcb8: 38 60 00 00 li r3,0 ffc2bcbc: 40 9e 00 08 bne- cr7,ffc2bcc4 <== NEVER TAKEN return NULL; return p; ffc2bcc0: 80 61 00 08 lwz r3,8(r1) } ffc2bcc4: 80 01 00 1c lwz r0,28(r1) ffc2bcc8: 38 21 00 18 addi r1,r1,24 ffc2bccc: 7c 08 03 a6 mtlr r0 ffc2bcd0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2bc6c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2bc6c: 7c a9 2b 78 mr r9,r5 ffc2bc70: 7c c0 33 78 mr r0,r6 ffc2bc74: 7c e8 3b 78 mr r8,r7 return getgr_r(name, 0, grp, buffer, bufsize, result); ffc2bc78: 7c 85 23 78 mr r5,r4 ffc2bc7c: 7d 26 4b 78 mr r6,r9 ffc2bc80: 7c 07 03 78 mr r7,r0 ffc2bc84: 38 80 00 00 li r4,0 ffc2bc88: 4b ff fe 50 b ffc2bad8 <== ALWAYS TAKEN ffc078dc : int getitimer( int which, struct itimerval *value ) { if ( !value ) ffc078dc: 2f 84 00 00 cmpwi cr7,r4,0 int getitimer( int which, struct itimerval *value ) { ffc078e0: 94 21 ff f8 stwu r1,-8(r1) ffc078e4: 7c 08 02 a6 mflr r0 ffc078e8: 90 01 00 0c stw r0,12(r1) if ( !value ) ffc078ec: 40 be 00 10 bne+ cr7,ffc078fc rtems_set_errno_and_return_minus_one( EFAULT ); ffc078f0: 48 00 ad 51 bl ffc12640 <__errno> <== ALWAYS TAKEN ffc078f4: 38 00 00 0e li r0,14 ffc078f8: 48 00 00 20 b ffc07918 <== ALWAYS TAKEN switch ( which ) { ffc078fc: 2b 83 00 02 cmplwi cr7,r3,2 ffc07900: 41 9d 00 10 bgt- cr7,ffc07910 case ITIMER_REAL: case ITIMER_VIRTUAL: case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07904: 48 00 ad 3d bl ffc12640 <__errno> <== ALWAYS TAKEN ffc07908: 38 00 00 58 li r0,88 ffc0790c: 48 00 00 0c b ffc07918 <== ALWAYS TAKEN default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc07910: 48 00 ad 31 bl ffc12640 <__errno> <== ALWAYS TAKEN ffc07914: 38 00 00 16 li r0,22 ffc07918: 90 03 00 00 stw r0,0(r3) } ffc0791c: 38 60 ff ff li r3,-1 ffc07920: 80 01 00 0c lwz r0,12(r1) ffc07924: 38 21 00 08 addi r1,r1,8 ffc07928: 7c 08 03 a6 mtlr r0 ffc0792c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc042f0 : * return a reasonable value. */ int getpagesize(void) { return PAGE_SIZE; } ffc042f0: 38 60 10 00 li r3,4096 ffc042f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10210 : */ pid_t getpid( void ) { return _Objects_Local_node; } ffc10210: 38 60 00 01 li r3,1 ffc10214: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2bd24 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2bd24: 94 21 ff d8 stwu r1,-40(r1) ffc2bd28: 7d 80 00 26 mfcr r12 ffc2bd2c: 7c 08 02 a6 mflr r0 ffc2bd30: 93 21 00 0c stw r25,12(r1) ffc2bd34: 7d 19 43 78 mr r25,r8 ffc2bd38: 90 01 00 2c stw r0,44(r1) ffc2bd3c: 93 41 00 10 stw r26,16(r1) ffc2bd40: 93 61 00 14 stw r27,20(r1) ffc2bd44: 7c fb 3b 78 mr r27,r7 ffc2bd48: 93 81 00 18 stw r28,24(r1) ffc2bd4c: 7c dc 33 78 mr r28,r6 ffc2bd50: 93 a1 00 1c stw r29,28(r1) ffc2bd54: 7c 9d 23 78 mr r29,r4 ffc2bd58: 93 c1 00 20 stw r30,32(r1) ffc2bd5c: 7c 7e 1b 78 mr r30,r3 ffc2bd60: 93 e1 00 24 stw r31,36(r1) ffc2bd64: 7c bf 2b 78 mr r31,r5 ffc2bd68: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc2bd6c: 4b ff fc 2d bl ffc2b998 <== ALWAYS TAKEN if ((fp = fopen("/etc/passwd", "r")) == NULL) { ffc2bd70: 3c 60 ff c6 lis r3,-58 ffc2bd74: 3c 80 ff c6 lis r4,-58 ffc2bd78: 38 63 34 32 addi r3,r3,13362 ffc2bd7c: 38 84 4e bc addi r4,r4,20156 ffc2bd80: 48 01 c5 d9 bl ffc48358 <== ALWAYS TAKEN ffc2bd84: 7c 7a 1b 79 mr. r26,r3 ffc2bd88: 40 a2 00 14 bne+ ffc2bd9c <== ALWAYS TAKEN errno = EINVAL; ffc2bd8c: 48 01 b9 01 bl ffc4768c <__errno> <== NOT EXECUTED ffc2bd90: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2bd94: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2bd98: 48 00 00 3c b ffc2bdd4 <== NOT EXECUTED if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2bd9c: 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)) { ffc2bda0: 7f e4 fb 78 mr r4,r31 ffc2bda4: 7f 85 e3 78 mr r5,r28 ffc2bda8: 7f 66 db 78 mr r6,r27 ffc2bdac: 7f 43 d3 78 mr r3,r26 ffc2bdb0: 4b ff fa 3d bl ffc2b7ec <== ALWAYS TAKEN errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); ffc2bdb4: 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)) { ffc2bdb8: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bdbc: 40 be 00 20 bne+ cr7,ffc2bddc <== ALWAYS TAKEN errno = EINVAL; ffc2bdc0: 48 01 b8 cd bl ffc4768c <__errno> <== NOT EXECUTED ffc2bdc4: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2bdc8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc2bdcc: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc2bdd0: 48 01 ba 5d bl ffc4782c <== NOT EXECUTED ffc2bdd4: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc2bdd8: 48 00 00 3c b ffc2be14 <== NOT EXECUTED } if (name) { ffc2bddc: 41 92 00 10 beq- cr4,ffc2bdec <== NEVER TAKEN match = (strcmp(pwd->pw_name, name) == 0); ffc2bde0: 80 7f 00 00 lwz r3,0(r31) ffc2bde4: 48 02 30 91 bl ffc4ee74 <== ALWAYS TAKEN ffc2bde8: 48 00 00 0c b ffc2bdf4 <== ALWAYS TAKEN } else { match = (pwd->pw_uid == uid); ffc2bdec: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc2bdf0: 7c 63 ea 78 xor r3,r3,r29 <== NOT EXECUTED ffc2bdf4: 7c 63 00 34 cntlzw r3,r3 ffc2bdf8: 54 63 d9 7e rlwinm r3,r3,27,5,31 } if (match) { ffc2bdfc: 2f 83 00 00 cmpwi cr7,r3,0 ffc2be00: 41 9e ff a0 beq+ cr7,ffc2bda0 fclose(fp); ffc2be04: 7f 43 d3 78 mr r3,r26 ffc2be08: 48 01 ba 25 bl ffc4782c <== ALWAYS TAKEN *result = pwd; ffc2be0c: 93 f9 00 00 stw r31,0(r25) ffc2be10: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc2be14: 80 01 00 2c lwz r0,44(r1) ffc2be18: 81 81 00 08 lwz r12,8(r1) ffc2be1c: 7c 08 03 a6 mtlr r0 ffc2be20: 83 21 00 0c lwz r25,12(r1) ffc2be24: 83 41 00 10 lwz r26,16(r1) ffc2be28: 7d 80 81 20 mtcrf 8,r12 ffc2be2c: 83 61 00 14 lwz r27,20(r1) ffc2be30: 83 81 00 18 lwz r28,24(r1) ffc2be34: 83 a1 00 1c lwz r29,28(r1) ffc2be38: 83 c1 00 20 lwz r30,32(r1) ffc2be3c: 83 e1 00 24 lwz r31,36(r1) ffc2be40: 38 21 00 28 addi r1,r1,40 ffc2be44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b93c : return NULL; return p; } struct passwd *getpwent(void) { ffc2b93c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2b940: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp == NULL) ffc2b944: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc2b948: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc2b94c: 38 a5 5f 74 addi r5,r5,24436 <== NOT EXECUTED ffc2b950: 80 65 00 04 lwz r3,4(r5) <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc2b954: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc2b958: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b95c: 41 be 00 24 beq+ cr7,ffc2b980 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) ffc2b960: 3b e5 00 e0 addi r31,r5,224 <== NOT EXECUTED ffc2b964: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2b968: 38 a5 00 fc addi r5,r5,252 <== NOT EXECUTED ffc2b96c: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc2b970: 4b ff fe 7d bl ffc2b7ec <== NOT EXECUTED ffc2b974: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2b978: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2b97c: 40 be 00 08 bne+ cr7,ffc2b984 <== NOT EXECUTED ffc2b980: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &pwent; } ffc2b984: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2b988: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2b98c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2b990: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2b994: 4e 80 00 20 blr <== NOT EXECUTED ffc2bed8 : } struct passwd *getpwnam( const char *name ) { ffc2bed8: 94 21 ff e8 stwu r1,-24(r1) struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2bedc: 3c 80 00 00 lis r4,0 } struct passwd *getpwnam( const char *name ) { ffc2bee0: 7c 08 02 a6 mflr r0 struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2bee4: 38 84 5f 74 addi r4,r4,24436 ffc2bee8: 38 a4 00 fc addi r5,r4,252 ffc2beec: 38 c0 00 c8 li r6,200 } struct passwd *getpwnam( const char *name ) { ffc2bef0: 90 01 00 1c stw r0,28(r1) struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2bef4: 38 84 00 e0 addi r4,r4,224 ffc2bef8: 38 e1 00 08 addi r7,r1,8 ffc2befc: 4b ff ff bd bl ffc2beb8 <== ALWAYS TAKEN ffc2bf00: 2f 83 00 00 cmpwi cr7,r3,0 ffc2bf04: 38 60 00 00 li r3,0 ffc2bf08: 40 9e 00 08 bne- cr7,ffc2bf10 <== NEVER TAKEN return NULL; return p; ffc2bf0c: 80 61 00 08 lwz r3,8(r1) } ffc2bf10: 80 01 00 1c lwz r0,28(r1) ffc2bf14: 38 21 00 18 addi r1,r1,24 ffc2bf18: 7c 08 03 a6 mtlr r0 ffc2bf1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2beb8 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2beb8: 7c a9 2b 78 mr r9,r5 ffc2bebc: 7c c0 33 78 mr r0,r6 ffc2bec0: 7c e8 3b 78 mr r8,r7 return getpw_r(name, 0, pwd, buffer, bufsize, result); ffc2bec4: 7c 85 23 78 mr r5,r4 ffc2bec8: 7d 26 4b 78 mr r6,r9 ffc2becc: 7c 07 03 78 mr r7,r0 ffc2bed0: 38 80 00 00 li r4,0 ffc2bed4: 4b ff fe 50 b ffc2bd24 <== ALWAYS TAKEN ffc2be70 : } struct passwd *getpwuid( uid_t uid ) { ffc2be70: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2be74: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc2be78: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2be7c: 38 84 5f 74 addi r4,r4,24436 <== NOT EXECUTED ffc2be80: 38 a4 00 fc addi r5,r4,252 <== NOT EXECUTED ffc2be84: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc2be88: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2be8c: 38 84 00 e0 addi r4,r4,224 <== NOT EXECUTED ffc2be90: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc2be94: 4b ff ff b5 bl ffc2be48 <== NOT EXECUTED ffc2be98: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2be9c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2bea0: 40 9e 00 08 bne- cr7,ffc2bea8 <== NOT EXECUTED return NULL; return p; ffc2bea4: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc2bea8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc2beac: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc2beb0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2beb4: 4e 80 00 20 blr <== NOT EXECUTED ffc2be48 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2be48: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc2be4c: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc2be50: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc2be54: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); ffc2be58: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2be5c: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc2be60: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc2be64: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc2be68: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2be6c: 4b ff fe b8 b ffc2bd24 <== NOT EXECUTED ffc0d11c : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0d11c: 94 21 ff e0 stwu r1,-32(r1) ffc0d120: 7c 08 02 a6 mflr r0 ffc0d124: 93 e1 00 1c stw r31,28(r1) <== ALWAYS TAKEN /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0d128: 7c 7f 1b 79 mr. r31,r3 */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0d12c: 90 01 00 24 stw r0,36(r1) ffc0d130: 93 c1 00 18 stw r30,24(r1) /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0d134: 40 a2 00 18 bne+ ffc0d14c <== ALWAYS TAKEN errno = EFAULT; ffc0d138: 48 00 4a d5 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0d13c: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0d140: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0d144: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc0d148: 48 00 00 3c b ffc0d184 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0d14c: 7f c0 00 a6 mfmsr r30 ffc0d150: 7c 10 42 a6 mfsprg r0,0 ffc0d154: 7f c0 00 78 andc r0,r30,r0 ffc0d158: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc0d15c: 38 61 00 08 addi r3,r1,8 ffc0d160: 48 00 15 71 bl ffc0e6d0 <_TOD_Get> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0d164: 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; ffc0d168: 81 21 00 0c lwz r9,12(r1) <== ALWAYS TAKEN ffc0d16c: 38 00 03 e8 li r0,1000 ffc0d170: 38 60 00 00 li r3,0 ffc0d174: 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; ffc0d178: 81 21 00 08 lwz r9,8(r1) ffc0d17c: 91 3f 00 00 stw r9,0(r31) time->tv_usec = useconds; ffc0d180: 90 1f 00 04 stw r0,4(r31) <== ALWAYS TAKEN * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } ffc0d184: 80 01 00 24 lwz r0,36(r1) ffc0d188: 83 c1 00 18 lwz r30,24(r1) ffc0d18c: 7c 08 03 a6 mtlr r0 ffc0d190: 83 e1 00 1c lwz r31,28(r1) ffc0d194: 38 21 00 20 addi r1,r1,32 ffc0d198: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08578 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { ffc08578: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0857c: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED return _POSIX_types_Uid; } ffc08580: a0 69 00 32 lhz r3,50(r9) <== NOT EXECUTED ffc08584: 4e 80 00 20 blr <== NOT EXECUTED ffc16b18 : * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } ffc16b18: 38 60 00 00 li r3,0 ffc16b1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16b20 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; ffc16b20: 81 23 00 00 lwz r9,0(r3) buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; ffc16b24: 38 00 00 00 li r0,0 IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; ffc16b28: 39 80 00 00 li r12,0 buf->st_ino = the_jnode->st_ino; ffc16b2c: 81 69 00 38 lwz r11,56(r9) ffc16b30: 38 e9 00 54 addi r7,r9,84 buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; ffc16b34: 90 04 00 44 stw r0,68(r4) the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; ffc16b38: 91 64 00 08 stw r11,8(r4) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; ffc16b3c: 39 60 00 00 li r11,0 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; ffc16b40: 90 04 00 40 stw r0,64(r4) the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc16b44: a1 49 00 34 lhz r10,52(r9) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; ffc16b48: 80 09 00 40 lwz r0,64(r9) the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc16b4c: b1 44 00 10 sth r10,16(r4) buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; ffc16b50: 90 04 00 28 stw r0,40(r4) buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; ffc16b54: a1 49 00 3c lhz r10,60(r9) buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc16b58: 80 09 00 44 lwz r0,68(r9) buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; ffc16b5c: b1 44 00 12 sth r10,18(r4) buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc16b60: 90 04 00 30 stw r0,48(r4) the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; ffc16b64: 81 09 00 30 lwz r8,48(r9) buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; ffc16b68: a1 49 00 3e lhz r10,62(r9) buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc16b6c: 80 09 00 48 lwz r0,72(r9) the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; ffc16b70: 91 04 00 0c stw r8,12(r4) buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; ffc16b74: b1 44 00 14 sth r10,20(r4) buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc16b78: 90 04 00 38 stw r0,56(r4) buf->st_size = 0; ffc16b7c: 91 64 00 20 stw r11,32(r4) ffc16b80: 91 84 00 24 stw r12,36(r4) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; ffc16b84: 91 64 00 00 stw r11,0(r4) ffc16b88: 91 84 00 04 stw r12,4(r4) buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_rdev = 0ll; ffc16b8c: 91 64 00 18 stw r11,24(r4) ffc16b90: 91 84 00 1c stw r12,28(r4) the_chain = &the_jnode->info.directory.Entries; /* Run through the chain and count the number of directory entries */ /* that are subordinate to this directory node */ for ( the_node = the_chain->first ; ffc16b94: 81 29 00 50 lwz r9,80(r9) ffc16b98: 48 00 00 20 b ffc16bb8 <== ALWAYS TAKEN !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { buf->st_size = buf->st_size + sizeof( struct dirent ); ffc16b9c: 80 a4 00 20 lwz r5,32(r4) ffc16ba0: 80 c4 00 24 lwz r6,36(r4) /* Run through the chain and count the number of directory entries */ /* that are subordinate to this directory node */ for ( the_node = the_chain->first ; !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { ffc16ba4: 81 29 00 00 lwz r9,0(r9) buf->st_size = buf->st_size + sizeof( struct dirent ); ffc16ba8: 31 86 01 18 addic r12,r6,280 ffc16bac: 7d 65 01 94 addze r11,r5 ffc16bb0: 91 64 00 20 stw r11,32(r4) ffc16bb4: 91 84 00 24 stw r12,36(r4) the_chain = &the_jnode->info.directory.Entries; /* Run through the chain and count the number of directory entries */ /* that are subordinate to this directory node */ for ( the_node = the_chain->first ; ffc16bb8: 7f 89 38 00 cmpw cr7,r9,r7 ffc16bbc: 40 9e ff e0 bne+ cr7,ffc16b9c buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } ffc16bc0: 38 60 00 00 li r3,0 ffc16bc4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16bc8 : rtems_libio_t *iop, rtems_off64_t offset, int whence ) { switch( whence ) { ffc16bc8: 2b 87 00 01 cmplwi cr7,r7,1 rtems_off64_t imfs_dir_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc16bcc: 94 21 ff f0 stwu r1,-16(r1) ffc16bd0: 7c 08 02 a6 mflr r0 ffc16bd4: 93 e1 00 0c stw r31,12(r1) ffc16bd8: 7c 7f 1b 78 mr r31,r3 ffc16bdc: 90 01 00 14 stw r0,20(r1) switch( whence ) { ffc16be0: 41 9d 00 40 bgt- cr7,ffc16c20 case SEEK_SET: /* absolute move from the start of the file */ case SEEK_CUR: /* relative move */ iop->offset = (iop->offset/sizeof(struct dirent)) * ffc16be4: 80 63 00 10 lwz r3,16(r3) ffc16be8: 38 a0 00 00 li r5,0 ffc16bec: 80 9f 00 14 lwz r4,20(r31) ffc16bf0: 38 c0 01 18 li r6,280 ffc16bf4: 48 00 b2 c1 bl ffc21eb4 <__divdi3> <== ALWAYS TAKEN ffc16bf8: 38 00 01 18 li r0,280 ffc16bfc: 7d 20 20 16 mulhwu r9,r0,r4 ffc16c00: 7d 40 21 d6 mullw r10,r0,r4 ffc16c04: 1c 63 01 18 mulli r3,r3,280 ffc16c08: 91 5f 00 14 stw r10,20(r31) ffc16c0c: 7c 83 4a 14 add r4,r3,r9 ffc16c10: 90 9f 00 10 stw r4,16(r31) ffc16c14: 39 20 00 00 li r9,0 ffc16c18: 39 40 00 00 li r10,0 default: rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; ffc16c1c: 48 00 00 18 b ffc16c34 <== ALWAYS TAKEN break; case SEEK_END: /* Movement past the end of the directory via lseek */ /* is not a permitted operation */ default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc16c20: 48 00 13 f1 bl ffc18010 <__errno> <== ALWAYS TAKEN ffc16c24: 38 00 00 16 li r0,22 ffc16c28: 90 03 00 00 stw r0,0(r3) ffc16c2c: 39 20 ff ff li r9,-1 ffc16c30: 39 40 ff ff li r10,-1 break; } return 0; } ffc16c34: 80 01 00 14 lwz r0,20(r1) ffc16c38: 7d 44 53 78 mr r4,r10 ffc16c3c: 7d 23 4b 78 mr r3,r9 ffc16c40: 83 e1 00 0c lwz r31,12(r1) ffc16c44: 7c 08 03 a6 mtlr r0 ffc16c48: 38 21 00 10 addi r1,r1,16 ffc16c4c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16ae8 : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; ffc16ae8: 81 23 00 3c lwz r9,60(r3) ffc16aec: 38 00 ff ff li r0,-1 ffc16af0: 81 29 00 4c lwz r9,76(r9) ffc16af4: 2f 89 00 01 cmpwi cr7,r9,1 ffc16af8: 40 be 00 18 bne+ cr7,ffc16b10 <== NEVER TAKEN if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; ffc16afc: 39 20 00 00 li r9,0 ffc16b00: 39 40 00 00 li r10,0 ffc16b04: 91 23 00 10 stw r9,16(r3) ffc16b08: 38 00 00 00 li r0,0 ffc16b0c: 91 43 00 14 stw r10,20(r3) return 0; } ffc16b10: 7c 03 03 78 mr r3,r0 ffc16b14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16d54 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc16d54: 94 21 fe a8 stwu r1,-344(r1) ffc16d58: 7c 08 02 a6 mflr r0 ffc16d5c: 90 01 01 5c stw r0,348(r1) ffc16d60: 92 a1 01 2c stw r21,300(r1) ffc16d64: 7c 95 23 78 mr r21,r4 ffc16d68: 93 41 01 40 stw r26,320(r1) ffc16d6c: 93 81 01 48 stw r28,328(r1) ffc16d70: 7c 7c 1b 78 mr r28,r3 ffc16d74: 93 a1 01 4c stw r29,332(r1) struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) ffc16d78: 3b a0 00 00 li r29,0 int current_entry; int first_entry; int last_entry; struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; ffc16d7c: 83 43 00 3c lwz r26,60(r3) ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc16d80: 92 81 01 28 stw r20,296(r1) ffc16d84: 92 c1 01 30 stw r22,304(r1) ffc16d88: 92 e1 01 34 stw r23,308(r1) ffc16d8c: 93 01 01 38 stw r24,312(r1) ffc16d90: 93 21 01 3c stw r25,316(r1) ffc16d94: 93 61 01 44 stw r27,324(r1) ffc16d98: 93 c1 01 50 stw r30,336(r1) ffc16d9c: 93 e1 01 54 stw r31,340(r1) */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc16da0: 83 da 00 50 lwz r30,80(r26) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc16da4: 3b 5a 00 54 addi r26,r26,84 struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) ffc16da8: 7f 9e d0 00 cmpw cr7,r30,r26 ffc16dac: 41 9e 00 ac beq- cr7,ffc16e58 bytes_transferred = 0; first_entry = iop->offset; /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); ffc16db0: 38 00 01 18 li r0,280 /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; ffc16db4: 83 63 00 14 lwz r27,20(r3) /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); ffc16db8: 7e c5 03 96 divwu r22,r5,r0 ffc16dbc: 1e d6 01 18 mulli r22,r22,280 ffc16dc0: 3b e0 00 00 li r31,0 ffc16dc4: 7e d6 da 14 add r22,r22,r27 } if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); ffc16dc8: 3a e0 01 18 li r23,280 the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); strcpy( tmp_dirent.d_name, the_jnode->name ); ffc16dcc: 3b 01 00 1c addi r24,r1,28 memcpy( ffc16dd0: 3b 21 00 08 addi r25,r1,8 /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); /* The directory was not empty so try to move to the desired entry in chain*/ for ( ffc16dd4: 48 00 00 74 b ffc16e48 <== ALWAYS TAKEN current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ ffc16dd8: 41 86 00 80 beq- cr1,ffc16e58 /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { ffc16ddc: 41 b8 00 64 blt+ cr6,ffc16e40 /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; ffc16de0: 80 1e 00 38 lwz r0,56(r30) tmp_dirent.d_namlen = strlen( the_jnode->name ); ffc16de4: 3a 9e 00 0c addi r20,r30,12 /* entries to return */ } if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; ffc16de8: 7f e9 fe 70 srawi r9,r31,31 ffc16dec: 93 e1 00 14 stw r31,20(r1) tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); ffc16df0: 7e 83 a3 78 mr r3,r20 /* entries to return */ } if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; ffc16df4: 91 21 00 10 stw r9,16(r1) tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; ffc16df8: 90 01 00 08 stw r0,8(r1) } if( current_entry >= first_entry ) { /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); ffc16dfc: b2 e1 00 18 sth r23,24(r1) the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); ffc16e00: 48 00 24 d1 bl ffc192d0 <== ALWAYS TAKEN strcpy( tmp_dirent.d_name, the_jnode->name ); ffc16e04: 7e 84 a3 78 mr r4,r20 /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; tmp_dirent.d_reclen = sizeof( struct dirent ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; tmp_dirent.d_namlen = strlen( the_jnode->name ); ffc16e08: b0 61 00 1a sth r3,26(r1) strcpy( tmp_dirent.d_name, the_jnode->name ); ffc16e0c: 7f 03 c3 78 mr r3,r24 ffc16e10: 48 00 23 b1 bl ffc191c0 <== ALWAYS TAKEN memcpy( ffc16e14: 7c 75 ea 14 add r3,r21,r29 ffc16e18: 7f 24 cb 78 mr r4,r25 ffc16e1c: 38 a0 01 18 li r5,280 ffc16e20: 48 00 1d d9 bl ffc18bf8 <== ALWAYS TAKEN buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); ffc16e24: 81 7c 00 10 lwz r11,16(r28) ffc16e28: 81 9c 00 14 lwz r12,20(r28) bytes_transferred = bytes_transferred + sizeof( struct dirent ); ffc16e2c: 3b bd 01 18 addi r29,r29,280 memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); ffc16e30: 31 4c 01 18 addic r10,r12,280 ffc16e34: 7d 2b 01 94 addze r9,r11 ffc16e38: 91 3c 00 10 stw r9,16(r28) ffc16e3c: 91 5c 00 14 stw r10,20(r28) bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; ffc16e40: 83 de 00 00 lwz r30,0(r30) * to the end of the exisiting file, the remaining entries will be placed in * the buffer and the returned value will be equal to -m actual- times the * size of a directory entry. */ ssize_t imfs_dir_read( ffc16e44: 3b ff 01 18 addi r31,r31,280 /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); /* The directory was not empty so try to move to the desired entry in chain*/ for ( ffc16e48: 7f 9f b0 00 cmpw cr7,r31,r22 current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ ffc16e4c: 7c 9e d0 00 cmpw cr1,r30,r26 /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { ffc16e50: 7f 1f d8 00 cmpw cr6,r31,r27 /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); /* The directory was not empty so try to move to the desired entry in chain*/ for ( ffc16e54: 41 9c ff 84 blt+ cr7,ffc16dd8 the_node = the_node->next; } /* Success */ return bytes_transferred; } ffc16e58: 80 01 01 5c lwz r0,348(r1) ffc16e5c: 7f a3 eb 78 mr r3,r29 ffc16e60: 82 81 01 28 lwz r20,296(r1) ffc16e64: 7c 08 03 a6 mtlr r0 ffc16e68: 82 a1 01 2c lwz r21,300(r1) ffc16e6c: 82 c1 01 30 lwz r22,304(r1) ffc16e70: 82 e1 01 34 lwz r23,308(r1) ffc16e74: 83 01 01 38 lwz r24,312(r1) ffc16e78: 83 21 01 3c lwz r25,316(r1) ffc16e7c: 83 41 01 40 lwz r26,320(r1) ffc16e80: 83 61 01 44 lwz r27,324(r1) ffc16e84: 83 81 01 48 lwz r28,328(r1) ffc16e88: 83 a1 01 4c lwz r29,332(r1) ffc16e8c: 83 c1 01 50 lwz r30,336(r1) ffc16e90: 83 e1 01 54 lwz r31,340(r1) ffc16e94: 38 21 01 58 addi r1,r1,344 ffc16e98: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16c50 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc16c50: 94 21 ff d8 stwu r1,-40(r1) ffc16c54: 7c 08 02 a6 mflr r0 ffc16c58: 90 01 00 2c stw r0,44(r1) ffc16c5c: 93 c1 00 20 stw r30,32(r1) ffc16c60: 7c 9e 23 78 mr r30,r4 ffc16c64: 93 e1 00 24 stw r31,36(r1) ffc16c68: 93 a1 00 1c stw r29,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc16c6c: 83 e4 00 00 lwz r31,0(r4) ffc16c70: 81 3f 00 50 lwz r9,80(r31) ffc16c74: 38 1f 00 54 addi r0,r31,84 ffc16c78: 7f 89 00 00 cmpw cr7,r9,r0 ffc16c7c: 41 be 00 10 beq+ cr7,ffc16c8c /* * 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 ); ffc16c80: 48 00 13 91 bl ffc18010 <__errno> <== ALWAYS TAKEN ffc16c84: 38 00 00 5a li r0,90 ffc16c88: 48 00 00 28 b ffc16cb0 <== ALWAYS TAKEN /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) ffc16c8c: 81 24 00 10 lwz r9,16(r4) ffc16c90: 80 09 00 1c lwz r0,28(r9) ffc16c94: 7f 80 f8 00 cmpw cr7,r0,r31 ffc16c98: 41 9e 00 10 beq- cr7,ffc16ca8 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) ffc16c9c: 83 bf 00 5c lwz r29,92(r31) ffc16ca0: 2f 9d 00 00 cmpwi cr7,r29,0 ffc16ca4: 41 be 00 18 beq+ cr7,ffc16cbc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBUSY ); ffc16ca8: 48 00 13 69 bl ffc18010 <__errno> <== ALWAYS TAKEN ffc16cac: 38 00 00 10 li r0,16 ffc16cb0: 90 03 00 00 stw r0,0(r3) ffc16cb4: 38 60 ff ff li r3,-1 ffc16cb8: 48 00 00 80 b ffc16d38 <== ALWAYS TAKEN /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { ffc16cbc: 80 1f 00 08 lwz r0,8(r31) ffc16cc0: 2f 80 00 00 cmpwi cr7,r0,0 ffc16cc4: 41 9e 00 10 beq- cr7,ffc16cd4 ffc16cc8: 7f e3 fb 78 mr r3,r31 ffc16ccc: 4b ff 3a 2d bl ffc0a6f8 <_Chain_Extract> <== ALWAYS TAKEN rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc16cd0: 93 bf 00 08 stw r29,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc16cd4: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc16cd8: 38 80 00 00 li r4,0 ffc16cdc: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc16ce0: 38 09 ff ff addi r0,r9,-1 ffc16ce4: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc16ce8: 4b fe ec 09 bl ffc058f0 <== ALWAYS TAKEN ffc16cec: 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) ) { ffc16cf0: 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 ); ffc16cf4: 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) ) { ffc16cf8: 4b ff c1 19 bl ffc12e10 <== ALWAYS TAKEN ffc16cfc: 2f 83 00 00 cmpwi cr7,r3,0 ffc16d00: 40 9e 00 34 bne- cr7,ffc16d34 ffc16d04: a0 1f 00 34 lhz r0,52(r31) ffc16d08: 2f 80 00 00 cmpwi cr7,r0,0 ffc16d0c: 40 9e 00 28 bne- cr7,ffc16d34 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc16d10: 3d 20 00 00 lis r9,0 ffc16d14: 81 7e 00 00 lwz r11,0(r30) ffc16d18: 81 29 26 f4 lwz r9,9972(r9) ffc16d1c: 81 49 00 04 lwz r10,4(r9) ffc16d20: 7f 8a 58 00 cmpw cr7,r10,r11 ffc16d24: 40 be 00 08 bne+ cr7,ffc16d2c <== ALWAYS TAKEN rtems_filesystem_current.node_access = NULL; ffc16d28: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); ffc16d2c: 7f e3 fb 78 mr r3,r31 ffc16d30: 4b fe ea f9 bl ffc05828 <== ALWAYS TAKEN ffc16d34: 38 60 00 00 li r3,0 } return 0; } ffc16d38: 80 01 00 2c lwz r0,44(r1) ffc16d3c: 83 a1 00 1c lwz r29,28(r1) ffc16d40: 7c 08 03 a6 mtlr r0 ffc16d44: 83 c1 00 20 lwz r30,32(r1) ffc16d48: 83 e1 00 24 lwz r31,36(r1) ffc16d4c: 38 21 00 28 addi r1,r1,40 ffc16d50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b998 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2b998: 94 21 ff f0 stwu r1,-16(r1) ffc2b99c: 7c 08 02 a6 mflr r0 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2b9a0: 3d 20 00 00 lis r9,0 /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2b9a4: 90 01 00 14 stw r0,20(r1) FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2b9a8: 39 29 5f 74 addi r9,r9,24436 /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2b9ac: 93 e1 00 0c stw r31,12(r1) FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2b9b0: 88 09 01 c4 lbz r0,452(r9) ffc2b9b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b9b8: 40 be 00 bc bne+ cr7,ffc2ba74 return; etc_passwd_initted = 1; ffc2b9bc: 38 00 00 01 li r0,1 ffc2b9c0: 98 09 01 c4 stb r0,452(r9) mkdir("/etc", 0777); ffc2b9c4: 3c 60 ff c6 lis r3,-58 ffc2b9c8: 38 80 01 ff li r4,511 ffc2b9cc: 38 63 33 ba addi r3,r3,13242 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc2b9d0: 3f e0 ff c6 lis r31,-58 static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); ffc2b9d4: 4b fd d4 09 bl ffc08ddc <== ALWAYS TAKEN /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc2b9d8: 3b ff 34 32 addi r31,r31,13362 ffc2b9dc: 3c 80 ff c6 lis r4,-58 ffc2b9e0: 38 84 4e bc addi r4,r4,20156 ffc2b9e4: 7f e3 fb 78 mr r3,r31 ffc2b9e8: 48 01 c9 71 bl ffc48358 <== ALWAYS TAKEN ffc2b9ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b9f0: 40 be 00 30 bne+ cr7,ffc2ba20 <== NEVER TAKEN fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { ffc2b9f4: 3c 80 ff c6 lis r4,-58 ffc2b9f8: 7f e3 fb 78 mr r3,r31 ffc2b9fc: 38 84 4b 1e addi r4,r4,19230 ffc2ba00: 48 01 c9 59 bl ffc48358 <== ALWAYS TAKEN ffc2ba04: 7c 7f 1b 79 mr. r31,r3 ffc2ba08: 41 82 00 1c beq- ffc2ba24 <== NEVER TAKEN fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" ffc2ba0c: 3c 60 ff c7 lis r3,-57 ffc2ba10: 38 63 83 e0 addi r3,r3,-31776 ffc2ba14: 7f e4 fb 78 mr r4,r31 ffc2ba18: 48 01 cb d5 bl ffc485ec <== ALWAYS TAKEN "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); ffc2ba1c: 7f e3 fb 78 mr r3,r31 ffc2ba20: 48 01 be 0d bl ffc4782c <== ALWAYS TAKEN } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { ffc2ba24: 3f e0 ff c6 lis r31,-58 ffc2ba28: 3b ff 34 e0 addi r31,r31,13536 ffc2ba2c: 3c 80 ff c6 lis r4,-58 ffc2ba30: 38 84 4e bc addi r4,r4,20156 ffc2ba34: 7f e3 fb 78 mr r3,r31 ffc2ba38: 48 01 c9 21 bl ffc48358 <== ALWAYS TAKEN ffc2ba3c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ba40: 40 be 00 30 bne+ cr7,ffc2ba70 <== NEVER TAKEN fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { ffc2ba44: 3c 80 ff c6 lis r4,-58 ffc2ba48: 7f e3 fb 78 mr r3,r31 ffc2ba4c: 38 84 4b 1e addi r4,r4,19230 ffc2ba50: 48 01 c9 09 bl ffc48358 <== ALWAYS TAKEN ffc2ba54: 7c 7f 1b 79 mr. r31,r3 ffc2ba58: 41 82 00 1c beq- ffc2ba74 <== NEVER TAKEN fprintf( fp, "root:x:0:root\n" ffc2ba5c: 3c 60 ff c7 lis r3,-57 ffc2ba60: 38 63 84 47 addi r3,r3,-31673 ffc2ba64: 7f e4 fb 78 mr r4,r31 ffc2ba68: 48 01 cb 85 bl ffc485ec <== ALWAYS TAKEN "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); ffc2ba6c: 7f e3 fb 78 mr r3,r31 ffc2ba70: 48 01 bd bd bl ffc4782c <== ALWAYS TAKEN } } ffc2ba74: 80 01 00 14 lwz r0,20(r1) ffc2ba78: 83 e1 00 0c lwz r31,12(r1) ffc2ba7c: 38 21 00 10 addi r1,r1,16 ffc2ba80: 7c 08 03 a6 mtlr r0 ffc2ba84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc046b4 : */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc046b4: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc046b8: 39 2b 2b 30 addi r9,r11,11056 <== ALWAYS TAKEN ffc046bc: 38 09 00 04 addi r0,r9,4 <== ALWAYS TAKEN the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc046c0: 91 29 00 08 stw r9,8(r9) int init_fs_mount_table(void) { rtems_chain_initialize_empty ( &rtems_filesystem_mount_table_control ); return 0; } ffc046c4: 38 60 00 00 li r3,0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc046c8: 90 0b 2b 30 stw r0,11056(r11) the_chain->permanent_null = NULL; ffc046cc: 38 00 00 00 li r0,0 ffc046d0: 90 09 00 04 stw r0,4(r9) ffc046d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08504 : int ioctl( int fd, ioctl_command_t command, ... ) { ffc08504: 94 21 ff e0 stwu r1,-32(r1) ffc08508: 7c 08 02 a6 mflr r0 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); ffc0850c: 3d 20 00 00 lis r9,0 int ioctl( int fd, ioctl_command_t command, ... ) { ffc08510: 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 ); ffc08514: 80 09 26 ac lwz r0,9900(r9) int ioctl( int fd, ioctl_command_t command, ... ) { ffc08518: 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 ); ffc0851c: 7f 83 00 40 cmplw cr7,r3,r0 ffc08520: 40 9c 00 48 bge- cr7,ffc08568 iop = rtems_libio_iop( fd ); ffc08524: 3d 20 00 00 lis r9,0 ffc08528: 80 09 27 6c lwz r0,10092(r9) ffc0852c: 1c 63 00 48 mulli r3,r3,72 ffc08530: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc08534: 80 03 00 18 lwz r0,24(r3) ffc08538: 70 09 01 00 andi. r9,r0,256 ffc0853c: 41 82 00 2c beq- ffc08568 <== NEVER TAKEN va_start(ap, command); buffer = va_arg(ap, void *); ffc08540: 38 00 00 03 li r0,3 ffc08544: 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); ffc08548: 39 61 00 10 addi r11,r1,16 ffc0854c: 38 01 00 28 addi r0,r1,40 /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08550: 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); ffc08554: 90 01 00 0c stw r0,12(r1) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08558: 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); ffc0855c: 91 61 00 10 stw r11,16(r1) buffer = va_arg(ap, void *); ffc08560: 80 ab 00 08 lwz r5,8(r11) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08564: 40 be 00 10 bne+ cr7,ffc08574 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); ffc08568: 48 00 fd 75 bl ffc182dc <__errno> <== ALWAYS TAKEN ffc0856c: 38 00 00 09 li r0,9 ffc08570: 48 00 00 18 b ffc08588 <== ALWAYS TAKEN if ( !iop->handlers->ioctl_h ) ffc08574: 80 09 00 10 lwz r0,16(r9) ffc08578: 2f 80 00 00 cmpwi cr7,r0,0 ffc0857c: 40 be 00 18 bne+ cr7,ffc08594 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc08580: 48 00 fd 5d bl ffc182dc <__errno> <== NOT EXECUTED ffc08584: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08588: 90 03 00 00 stw r0,0(r3) ffc0858c: 38 60 ff ff li r3,-1 ffc08590: 48 00 00 0c b ffc0859c <== ALWAYS TAKEN rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); ffc08594: 7c 09 03 a6 mtctr r0 ffc08598: 4e 80 04 21 bctrl <== ALWAYS TAKEN return rc; } ffc0859c: 80 01 00 24 lwz r0,36(r1) ffc085a0: 38 21 00 20 addi r1,r1,32 ffc085a4: 7c 08 03 a6 mtlr r0 ffc085a8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05d44 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05d44: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc05d48: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05d4c: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05d50: 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) { ffc05d54: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc05d58: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05d5c: 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) { ffc05d60: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc05d64: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc05d68: 41 82 00 08 beq- ffc05d70 <== NOT EXECUTED c &= 0x7f; ffc05d6c: 54 7e 06 7e clrlwi r30,r3,25 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) ffc05d70: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc05d74: 41 82 00 2c beq- ffc05da0 <== NOT EXECUTED c = tolower (c); ffc05d78: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05d7c: 81 69 26 e0 lwz r11,9952(r9) <== NOT EXECUTED ffc05d80: 7f c9 f3 78 mr r9,r30 <== NOT EXECUTED ffc05d84: 7f cb f2 14 add r30,r11,r30 <== NOT EXECUTED ffc05d88: 89 7e 00 01 lbz r11,1(r30) <== NOT EXECUTED ffc05d8c: 55 6b 07 be clrlwi r11,r11,30 <== NOT EXECUTED ffc05d90: 2f 8b 00 01 cmpwi cr7,r11,1 <== NOT EXECUTED ffc05d94: 40 be 00 08 bne+ cr7,ffc05d9c <== NOT EXECUTED ffc05d98: 39 29 00 20 addi r9,r9,32 <== NOT EXECUTED ffc05d9c: 55 3e 06 3e clrlwi r30,r9,24 <== NOT EXECUTED if (c == '\r') { ffc05da0: 2f 9e 00 0d cmpwi cr7,r30,13 <== NOT EXECUTED ffc05da4: 40 be 00 1c bne+ cr7,ffc05dc0 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) ffc05da8: 70 09 00 80 andi. r9,r0,128 <== NOT EXECUTED ffc05dac: 40 82 01 44 bne- ffc05ef0 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) ffc05db0: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc05db4: 41 82 00 2c beq- ffc05de0 <== NOT EXECUTED ffc05db8: 3b c0 00 0a li r30,10 <== NOT EXECUTED ffc05dbc: 48 00 00 24 b ffc05de0 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { ffc05dc0: 2f 9e 00 0a cmpwi cr7,r30,10 <== NOT EXECUTED ffc05dc4: 40 be 00 14 bne+ cr7,ffc05dd8 <== NOT EXECUTED ffc05dc8: 70 09 00 40 andi. r9,r0,64 <== NOT EXECUTED ffc05dcc: 41 82 00 14 beq- ffc05de0 <== NOT EXECUTED ffc05dd0: 3b c0 00 0d li r30,13 <== NOT EXECUTED ffc05dd4: 48 00 00 0c b ffc05de0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { ffc05dd8: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc05ddc: 41 be 00 c8 beq+ cr7,ffc05ea4 <== NOT EXECUTED ffc05de0: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc05de4: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc05de8: 41 82 00 bc beq- ffc05ea4 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { ffc05dec: 89 3f 00 43 lbz r9,67(r31) <== NOT EXECUTED erase (tty, 0); ffc05df0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05df4: 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]) { ffc05df8: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05dfc: 41 9e 00 18 beq- cr7,ffc05e14 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { ffc05e00: 89 3f 00 44 lbz r9,68(r31) <== NOT EXECUTED ffc05e04: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05e08: 40 be 00 14 bne+ cr7,ffc05e1c <== NOT EXECUTED erase (tty, 1); ffc05e0c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc05e10: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc05e14: 4b ff fc dd bl ffc05af0 <== NOT EXECUTED ffc05e18: 48 00 00 d8 b ffc05ef0 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { ffc05e1c: 89 3f 00 45 lbz r9,69(r31) <== NOT EXECUTED ffc05e20: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc05e24: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05e28: 41 9e 00 cc beq- cr7,ffc05ef4 <== NOT EXECUTED return 1; } else if (c == '\n') { ffc05e2c: 2f 9e 00 0a cmpwi cr7,r30,10 <== NOT EXECUTED ffc05e30: 40 be 00 30 bne+ cr7,ffc05e60 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) ffc05e34: 70 09 00 48 andi. r9,r0,72 <== NOT EXECUTED ffc05e38: 41 a2 00 10 beq+ ffc05e48 <== NOT EXECUTED echo (c, tty); ffc05e3c: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc05e40: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05e44: 4b ff fc 19 bl ffc05a5c <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc05e48: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc05e4c: 39 40 00 0a li r10,10 <== NOT EXECUTED ffc05e50: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc05e54: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc05e58: 7d 4b 49 ae stbx r10,r11,r9 <== NOT EXECUTED ffc05e5c: 48 00 00 40 b ffc05e9c <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) ffc05e60: 89 3f 00 4c lbz r9,76(r31) <== NOT EXECUTED ffc05e64: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05e68: 41 9e 00 10 beq- cr7,ffc05e78 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { ffc05e6c: 89 3f 00 51 lbz r9,81(r31) <== NOT EXECUTED ffc05e70: 7f 89 f0 00 cmpw cr7,r9,r30 <== NOT EXECUTED ffc05e74: 40 be 00 30 bne+ cr7,ffc05ea4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) ffc05e78: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc05e7c: 41 a2 00 10 beq+ ffc05e8c <== NOT EXECUTED echo (c, tty); ffc05e80: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05e84: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05e88: 4b ff fb d5 bl ffc05a5c <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc05e8c: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc05e90: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc05e94: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc05e98: 7f cb 49 ae stbx r30,r11,r9 <== NOT EXECUTED ffc05e9c: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc05ea0: 48 00 00 48 b ffc05ee8 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { ffc05ea4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05ea8: 81 69 21 68 lwz r11,8552(r9) <== NOT EXECUTED ffc05eac: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc05eb0: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc05eb4: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc05eb8: 40 9c 00 38 bge- cr7,ffc05ef0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) ffc05ebc: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc05ec0: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc05ec4: 41 a2 00 10 beq+ ffc05ed4 <== NOT EXECUTED echo (c, tty); ffc05ec8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05ecc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05ed0: 4b ff fb 8d bl ffc05a5c <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc05ed4: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc05ed8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc05edc: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc05ee0: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc05ee4: 7f cb 49 ae stbx r30,r11,r9 <== NOT EXECUTED ffc05ee8: 90 1f 00 20 stw r0,32(r31) <== NOT EXECUTED ffc05eec: 48 00 00 08 b ffc05ef4 <== NOT EXECUTED ffc05ef0: 38 60 00 00 li r3,0 <== NOT EXECUTED } return 0; } ffc05ef4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc05ef8: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc05efc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05f00: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc05f04: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc05f08: 4e 80 00 20 blr <== NOT EXECUTED ffc10498 : int kill( pid_t pid, int sig ) { ffc10498: 94 21 ff f8 stwu r1,-8(r1) ffc1049c: 7c 08 02 a6 mflr r0 return killinfo( pid, sig, NULL ); ffc104a0: 38 a0 00 00 li r5,0 int kill( pid_t pid, int sig ) { ffc104a4: 90 01 00 0c stw r0,12(r1) return killinfo( pid, sig, NULL ); ffc104a8: 48 00 11 05 bl ffc115ac <== ALWAYS TAKEN } ffc104ac: 80 01 00 0c lwz r0,12(r1) ffc104b0: 38 21 00 08 addi r1,r1,8 ffc104b4: 7c 08 03 a6 mtlr r0 ffc104b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc115ac : int killinfo( pid_t pid, int sig, const union sigval *value ) { ffc115ac: 94 21 ff d8 stwu r1,-40(r1) ffc115b0: 7c 08 02 a6 mflr r0 ffc115b4: 93 a1 00 1c stw r29,28(r1) ffc115b8: 7c bd 2b 78 mr r29,r5 ffc115bc: 93 c1 00 20 stw r30,32(r1) ffc115c0: 7c 7e 1b 78 mr r30,r3 ffc115c4: 93 e1 00 24 stw r31,36(r1) ffc115c8: 7c 9f 23 78 mr r31,r4 ffc115cc: 90 01 00 2c stw r0,44(r1) ffc115d0: 93 81 00 18 stw r28,24(r1) POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) ffc115d4: 4b ff ec 3d bl ffc10210 <== ALWAYS TAKEN ffc115d8: 7f 9e 18 00 cmpw cr7,r30,r3 ffc115dc: 41 be 00 10 beq+ cr7,ffc115ec rtems_set_errno_and_return_minus_one( ESRCH ); ffc115e0: 48 00 06 2d bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc115e4: 38 00 00 03 li r0,3 ffc115e8: 48 00 00 14 b ffc115fc <== ALWAYS TAKEN /* * Validate the signal passed. */ if ( !sig ) ffc115ec: 2f 9f 00 00 cmpwi cr7,r31,0 ffc115f0: 40 be 00 18 bne+ cr7,ffc11608 rtems_set_errno_and_return_minus_one( EINVAL ); ffc115f4: 48 00 06 19 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc115f8: 38 00 00 16 li r0,22 ffc115fc: 90 03 00 00 stw r0,0(r3) ffc11600: 38 60 ff ff li r3,-1 ffc11604: 48 00 02 3c b ffc11840 <== ALWAYS TAKEN static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); ffc11608: 38 1f ff ff addi r0,r31,-1 if ( !is_valid_signo(sig) ) ffc1160c: 2b 80 00 1f cmplwi cr7,r0,31 ffc11610: 41 bd ff e4 bgt- cr7,ffc115f4 rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) ffc11614: 1d 7f 00 0c mulli r11,r31,12 ffc11618: 3d 20 00 00 lis r9,0 ffc1161c: 39 29 31 70 addi r9,r9,12656 ffc11620: 7d 29 5a 14 add r9,r9,r11 ffc11624: 81 29 00 08 lwz r9,8(r9) ffc11628: 38 60 00 00 li r3,0 ffc1162c: 2f 89 00 01 cmpwi cr7,r9,1 ffc11630: 41 9e 02 10 beq- cr7,ffc11840 /* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) ffc11634: 2f 9f 00 08 cmpwi cr7,r31,8 ffc11638: 41 9e 00 14 beq- cr7,ffc1164c ffc1163c: 2f 9f 00 04 cmpwi cr7,r31,4 ffc11640: 41 9e 00 0c beq- cr7,ffc1164c ffc11644: 2f 9f 00 0b cmpwi cr7,r31,11 ffc11648: 40 be 00 14 bne+ cr7,ffc1165c return pthread_kill( pthread_self(), sig ); ffc1164c: 48 00 05 19 bl ffc11b64 <== ALWAYS TAKEN ffc11650: 7f e4 fb 78 mr r4,r31 ffc11654: 48 00 04 09 bl ffc11a5c <== ALWAYS TAKEN ffc11658: 48 00 01 e8 b ffc11840 <== ALWAYS TAKEN * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { ffc1165c: 2f 9d 00 00 cmpwi cr7,r29,0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; ffc11660: 93 e1 00 08 stw r31,8(r1) static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); ffc11664: 3b c0 00 01 li r30,1 siginfo->si_code = SI_USER; ffc11668: 93 c1 00 0c stw r30,12(r1) ffc1166c: 7f de 00 30 slw r30,r30,r0 if ( !value ) { ffc11670: 40 be 00 0c bne+ cr7,ffc1167c siginfo->si_value.sival_int = 0; ffc11674: 93 a1 00 10 stw r29,16(r1) ffc11678: 48 00 00 0c b ffc11684 <== ALWAYS TAKEN } else { siginfo->si_value = *value; ffc1167c: 80 1d 00 00 lwz r0,0(r29) ffc11680: 90 01 00 10 stw r0,16(r1) ffc11684: 3d 20 00 00 lis r9,0 ffc11688: 81 69 27 70 lwz r11,10096(r9) ffc1168c: 38 0b 00 01 addi r0,r11,1 ffc11690: 90 09 27 70 stw r0,10096(r9) /* * Is the currently executing thread interested? If so then it will * get it an execute it as soon as the dispatcher executes. */ the_thread = _Thread_Executing; ffc11694: 3d 20 00 00 lis r9,0 ffc11698: 80 69 27 b0 lwz r3,10160(r9) api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc1169c: 81 23 01 48 lwz r9,328(r3) ffc116a0: 80 09 00 c4 lwz r0,196(r9) ffc116a4: 7f c6 00 79 andc. r6,r30,r0 ffc116a8: 40 82 01 08 bne- ffc117b0 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; ffc116ac: 3d 20 00 00 lis r9,0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc116b0: 3d 60 00 00 lis r11,0 ffc116b4: 81 29 32 fc lwz r9,13052(r9) ffc116b8: 38 0b 33 00 addi r0,r11,13056 ffc116bc: 48 00 00 24 b ffc116e0 <== ALWAYS TAKEN #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc116c0: 81 49 00 30 lwz r10,48(r9) for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc116c4: 81 69 01 48 lwz r11,328(r9) #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc116c8: 7f c8 50 39 and. r8,r30,r10 ffc116cc: 40 82 00 e4 bne- ffc117b0 /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) ffc116d0: 81 6b 00 c4 lwz r11,196(r11) ffc116d4: 7f ca 58 79 andc. r10,r30,r11 ffc116d8: 40 82 00 d8 bne- ffc117b0 the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { ffc116dc: 81 29 00 00 lwz r9,0(r9) ffc116e0: 7f 89 00 00 cmpw cr7,r9,r0 the_thread = (Thread_Control *)the_node; ffc116e4: 7d 23 4b 78 mr r3,r9 ffc116e8: 40 9e ff d8 bne+ cr7,ffc116c0 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; ffc116ec: 3d 20 00 00 lis r9,0 ffc116f0: 89 69 26 a4 lbz r11,9892(r9) ffc116f4: 3d 20 00 00 lis r9,0 ffc116f8: 39 29 2c 28 addi r9,r9,11304 ffc116fc: 38 0b 00 01 addi r0,r11,1 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( ffc11700: 38 a9 00 0c addi r5,r9,12 ffc11704: 38 60 00 00 li r3,0 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) ffc11708: 81 69 00 00 lwz r11,0(r9) ffc1170c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc11710: 41 9e 00 8c beq- cr7,ffc1179c continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; ffc11714: 81 6b 00 04 lwz r11,4(r11) if ( !the_info ) continue; #endif maximum = the_info->maximum; object_table = the_info->local_table; ffc11718: 39 40 00 01 li r10,1 ffc1171c: 83 ab 00 1c lwz r29,28(r11) */ if ( !the_info ) continue; #endif maximum = the_info->maximum; ffc11720: a0 8b 00 10 lhz r4,16(r11) object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { ffc11724: 48 00 00 70 b ffc11794 <== ALWAYS TAKEN the_thread = (Thread_Control *) object_table[ index ]; ffc11728: 55 4b 10 3a rlwinm r11,r10,2,0,29 ffc1172c: 7d 7d 58 2e lwzx r11,r29,r11 if ( !the_thread ) ffc11730: 2f 8b 00 00 cmpwi cr7,r11,0 ffc11734: 41 9e 00 4c beq- cr7,ffc11780 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) ffc11738: 81 0b 00 14 lwz r8,20(r11) ffc1173c: 7f 88 00 40 cmplw cr7,r8,r0 ffc11740: 41 9d 00 40 bgt- cr7,ffc11780 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc11744: 80 eb 01 48 lwz r7,328(r11) ffc11748: 80 e7 00 c4 lwz r7,196(r7) ffc1174c: 7f dc 38 79 andc. r28,r30,r7 ffc11750: 41 82 00 30 beq- ffc11780 * * NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1 * so we never have to worry about deferencing a NULL * interested thread. */ if ( the_thread->current_priority < interested_priority ) { ffc11754: 41 9c 00 34 blt- cr7,ffc11788 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { ffc11758: 80 c3 00 10 lwz r6,16(r3) ffc1175c: 2f 86 00 00 cmpwi cr7,r6,0 ffc11760: 41 9e 00 20 beq- cr7,ffc11780 <== NEVER TAKEN /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { ffc11764: 80 eb 00 10 lwz r7,16(r11) ffc11768: 2f 87 00 00 cmpwi cr7,r7,0 ffc1176c: 41 9e 00 1c beq- cr7,ffc11788 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { ffc11770: 74 dc 10 00 andis. r28,r6,4096 ffc11774: 40 82 00 0c bne- ffc11780 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { ffc11778: 74 e6 10 00 andis. r6,r7,4096 ffc1177c: 40 82 00 0c bne- ffc11788 ffc11780: 7c 08 03 78 mr r8,r0 ffc11784: 48 00 00 08 b ffc1178c <== ALWAYS TAKEN ffc11788: 7d 63 5b 78 mr r3,r11 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { ffc1178c: 39 4a 00 01 addi r10,r10,1 ffc11790: 7d 00 43 78 mr r0,r8 ffc11794: 7f 8a 20 40 cmplw cr7,r10,r4 ffc11798: 40 9d ff 90 ble+ cr7,ffc11728 ffc1179c: 39 29 00 04 addi r9,r9,4 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { ffc117a0: 7f 89 28 00 cmpw cr7,r9,r5 ffc117a4: 40 9e ff 64 bne+ cr7,ffc11708 } } } } if ( interested ) { ffc117a8: 2f 83 00 00 cmpwi cr7,r3,0 ffc117ac: 41 9e 00 20 beq- cr7,ffc117cc * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; ffc117b0: 38 00 00 01 li r0,1 ffc117b4: 98 03 00 74 stb r0,116(r3) /* * Returns true if the signal was synchronously given to a thread * blocked waiting for the signal. */ if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { ffc117b8: 7f e4 fb 78 mr r4,r31 ffc117bc: 38 a1 00 08 addi r5,r1,8 ffc117c0: 48 00 01 65 bl ffc11924 <_POSIX_signals_Unblock_thread> <== ALWAYS TAKEN ffc117c4: 2f 83 00 00 cmpwi cr7,r3,0 ffc117c8: 40 9e 00 70 bne- cr7,ffc11838 /* * We may have woken up a thread but we definitely need to post the * signal to the process wide information set. */ _POSIX_signals_Set_process_signals( mask ); ffc117cc: 7f c3 f3 78 mr r3,r30 ffc117d0: 48 00 01 11 bl ffc118e0 <_POSIX_signals_Set_process_signals> <== ALWAYS TAKEN if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { ffc117d4: 1f ff 00 0c mulli r31,r31,12 ffc117d8: 3d 20 00 00 lis r9,0 ffc117dc: 39 29 31 70 addi r9,r9,12656 ffc117e0: 7c 09 f8 2e lwzx r0,r9,r31 ffc117e4: 2f 80 00 02 cmpwi cr7,r0,2 ffc117e8: 40 be 00 50 bne+ cr7,ffc11838 psiginfo = (POSIX_signals_Siginfo_node *) ffc117ec: 3c 60 00 00 lis r3,0 ffc117f0: 38 63 32 f0 addi r3,r3,13040 ffc117f4: 4b ff 70 c5 bl ffc088b8 <_Chain_Get> <== ALWAYS TAKEN _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { ffc117f8: 7c 64 1b 79 mr. r4,r3 ffc117fc: 40 a2 00 14 bne+ ffc11810 _Thread_Enable_dispatch(); ffc11800: 4b ff 8b 4d bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EAGAIN ); ffc11804: 48 00 04 09 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc11808: 38 00 00 0b li r0,11 ffc1180c: 4b ff fd f0 b ffc115fc <== ALWAYS TAKEN } psiginfo->Info = *siginfo; ffc11810: 81 21 00 0c lwz r9,12(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc11814: 3c 60 00 00 lis r3,0 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc11818: 80 01 00 10 lwz r0,16(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc1181c: 38 63 33 3c addi r3,r3,13116 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc11820: 81 61 00 08 lwz r11,8(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc11824: 7c 63 fa 14 add r3,r3,r31 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc11828: 91 24 00 0c stw r9,12(r4) ffc1182c: 91 64 00 08 stw r11,8(r4) ffc11830: 90 04 00 10 stw r0,16(r4) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc11834: 4b ff 70 55 bl ffc08888 <_Chain_Append> <== ALWAYS TAKEN } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); ffc11838: 4b ff 8b 15 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1183c: 38 60 00 00 li r3,0 return 0; } ffc11840: 80 01 00 2c lwz r0,44(r1) ffc11844: 83 81 00 18 lwz r28,24(r1) ffc11848: 7c 08 03 a6 mtlr r0 ffc1184c: 83 a1 00 1c lwz r29,28(r1) ffc11850: 83 c1 00 20 lwz r30,32(r1) ffc11854: 83 e1 00 24 lwz r31,36(r1) ffc11858: 38 21 00 28 addi r1,r1,40 ffc1185c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc049ac : void libc_init(void) { } ffc049ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1c8f8 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { ffc1c8f8: 94 21 ff f0 stwu r1,-16(r1) ffc1c8fc: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) ffc1c900: 3d 20 00 00 lis r9,0 extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { ffc1c904: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) ffc1c908: 80 09 27 d4 lwz r0,10196(r9) extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { ffc1c90c: 93 c1 00 08 stw r30,8(r1) /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) ffc1c910: 2f 80 00 03 cmpwi cr7,r0,3 extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { ffc1c914: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) ffc1c918: 40 be 00 50 bne+ cr7,ffc1c968 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { ffc1c91c: 3f c0 00 00 lis r30,0 ffc1c920: 3d 20 00 00 lis r9,0 ffc1c924: 80 1e 26 e4 lwz r0,9956(r30) <== ALWAYS TAKEN ffc1c928: 83 e9 26 e8 lwz r31,9960(r9) ffc1c92c: 7f 80 f8 00 cmpw cr7,r0,r31 <== ALWAYS TAKEN ffc1c930: 41 9e 00 10 beq- cr7,ffc1c940 _wrapup_reent(_global_impure_ptr); ffc1c934: 7f e3 fb 78 mr r3,r31 ffc1c938: 48 00 06 f5 bl ffc1d02c <_wrapup_reent> <== ALWAYS TAKEN /* Don't reclaim this one, just in case we do printfs * on the way out to ROM. */ _reclaim_reent(&libc_global_reent); #endif _REENT = _global_impure_ptr; ffc1c93c: 93 fe 26 e4 stw r31,9956(r30) * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); ffc1c940: 3f e0 00 00 lis r31,0 ffc1c944: 81 3f 26 e4 lwz r9,9956(r31) ffc1c948: 80 69 00 04 lwz r3,4(r9) ffc1c94c: 4b ff 54 61 bl ffc11dac <== ALWAYS TAKEN fclose (stdout); ffc1c950: 81 3f 26 e4 lwz r9,9956(r31) <== ALWAYS TAKEN ffc1c954: 80 69 00 08 lwz r3,8(r9) ffc1c958: 4b ff 54 55 bl ffc11dac <== ALWAYS TAKEN fclose (stderr); ffc1c95c: 81 3f 26 e4 lwz r9,9956(r31) <== ALWAYS TAKEN ffc1c960: 80 69 00 0c lwz r3,12(r9) <== ALWAYS TAKEN ffc1c964: 4b ff 54 49 bl ffc11dac <== ALWAYS TAKEN } ffc1c968: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc1c96c: 83 c1 00 08 lwz r30,8(r1) <== ALWAYS TAKEN ffc1c970: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc1c974: 83 e1 00 0c lwz r31,12(r1) ffc1c978: 38 21 00 10 addi r1,r1,16 ffc1c97c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2bfc8 : int link( const char *existing, const char *new ) { ffc2bfc8: 94 21 ff c0 stwu r1,-64(r1) ffc2bfcc: 7c 08 02 a6 mflr r0 ffc2bfd0: 93 c1 00 38 stw r30,56(r1) ffc2bfd4: 7c 7e 1b 78 mr r30,r3 ffc2bfd8: 90 01 00 44 stw r0,68(r1) ffc2bfdc: 93 e1 00 3c stw r31,60(r1) ffc2bfe0: 7c 9f 23 78 mr r31,r4 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), ffc2bfe4: 48 02 34 71 bl ffc4f454 <== ALWAYS TAKEN ffc2bfe8: 38 a0 00 00 li r5,0 ffc2bfec: 7c 64 1b 78 mr r4,r3 ffc2bff0: 38 c1 00 0c addi r6,r1,12 ffc2bff4: 7f c3 f3 78 mr r3,r30 ffc2bff8: 38 e0 00 01 li r7,1 ffc2bffc: 4b fd c3 41 bl ffc0833c <== ALWAYS TAKEN 0, &existing_loc, true ); if ( result != 0 ) ffc2c000: 3b c0 ff ff li r30,-1 ffc2c004: 2f 83 00 00 cmpwi cr7,r3,0 ffc2c008: 40 9e 02 3c bne- cr7,ffc2c244 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); ffc2c00c: 88 1f 00 00 lbz r0,0(r31) ffc2c010: 2f 80 00 2f cmpwi cr7,r0,47 ffc2c014: 41 9e 00 14 beq- cr7,ffc2c028 ffc2c018: 2f 80 00 5c cmpwi cr7,r0,92 ffc2c01c: 41 9e 00 0c beq- cr7,ffc2c028 <== NEVER TAKEN ffc2c020: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c024: 40 9e 00 38 bne- cr7,ffc2c05c <== ALWAYS TAKEN ffc2c028: 3d 20 00 00 lis r9,0 ffc2c02c: 81 29 35 2c lwz r9,13612(r9) ffc2c030: 38 60 00 01 li r3,1 ffc2c034: 80 09 00 24 lwz r0,36(r9) ffc2c038: 81 09 00 18 lwz r8,24(r9) ffc2c03c: 81 49 00 1c lwz r10,28(r9) ffc2c040: 81 69 00 20 lwz r11,32(r9) ffc2c044: 91 01 00 20 stw r8,32(r1) ffc2c048: 91 41 00 24 stw r10,36(r1) ffc2c04c: 91 61 00 28 stw r11,40(r1) ffc2c050: 90 01 00 2c stw r0,44(r1) ffc2c054: 80 09 00 28 lwz r0,40(r9) ffc2c058: 48 00 00 34 b ffc2c08c <== ALWAYS TAKEN ffc2c05c: 3d 20 00 00 lis r9,0 ffc2c060: 81 29 35 2c lwz r9,13612(r9) ffc2c064: 38 60 00 00 li r3,0 ffc2c068: 80 09 00 10 lwz r0,16(r9) ffc2c06c: 81 09 00 04 lwz r8,4(r9) ffc2c070: 81 49 00 08 lwz r10,8(r9) ffc2c074: 81 69 00 0c lwz r11,12(r9) ffc2c078: 91 01 00 20 stw r8,32(r1) ffc2c07c: 91 41 00 24 stw r10,36(r1) ffc2c080: 91 61 00 28 stw r11,40(r1) ffc2c084: 90 01 00 2c stw r0,44(r1) ffc2c088: 80 09 00 14 lwz r0,20(r9) if ( !parent_loc.ops->evalformake_h ) { ffc2c08c: 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 ); ffc2c090: 90 01 00 30 stw r0,48(r1) if ( !parent_loc.ops->evalformake_h ) { ffc2c094: 80 09 00 04 lwz r0,4(r9) ffc2c098: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c09c: 40 be 00 24 bne+ cr7,ffc2c0c0 <== ALWAYS TAKEN rtems_filesystem_freenode( &existing_loc ); ffc2c0a0: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc2c0a4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c0a8: 41 9e 01 28 beq- cr7,ffc2c1d0 <== NOT EXECUTED ffc2c0ac: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c0b0: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc2c0b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c0b8: 40 be 01 10 bne+ cr7,ffc2c1c8 <== NOT EXECUTED ffc2c0bc: 48 00 01 14 b ffc2c1d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); ffc2c0c0: 3b c1 00 20 addi r30,r1,32 ffc2c0c4: 7c 09 03 a6 mtctr r0 ffc2c0c8: 7c 7f 1a 14 add r3,r31,r3 ffc2c0cc: 7f c4 f3 78 mr r4,r30 ffc2c0d0: 38 a1 00 08 addi r5,r1,8 ffc2c0d4: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( result != 0 ) { ffc2c0d8: 7c 7f 1b 79 mr. r31,r3 ffc2c0dc: 41 a2 00 38 beq+ ffc2c114 rtems_filesystem_freenode( &existing_loc ); ffc2c0e0: 81 21 00 18 lwz r9,24(r1) ffc2c0e4: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c0e8: 41 9e 00 1c beq- cr7,ffc2c104 <== NEVER TAKEN ffc2c0ec: 80 09 00 1c lwz r0,28(r9) ffc2c0f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c0f4: 41 9e 00 10 beq- cr7,ffc2c104 <== NEVER TAKEN ffc2c0f8: 38 61 00 0c addi r3,r1,12 ffc2c0fc: 7c 09 03 a6 mtctr r0 ffc2c100: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( result ); ffc2c104: 48 01 b5 89 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2c108: 93 e3 00 00 stw r31,0(r3) ffc2c10c: 3b c0 ff ff li r30,-1 ffc2c110: 48 00 01 34 b ffc2c244 <== ALWAYS TAKEN /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { ffc2c114: 80 01 00 1c lwz r0,28(r1) ffc2c118: 81 21 00 30 lwz r9,48(r1) ffc2c11c: 7f 89 00 00 cmpw cr7,r9,r0 ffc2c120: 41 be 00 58 beq+ cr7,ffc2c178 rtems_filesystem_freenode( &existing_loc ); ffc2c124: 81 21 00 18 lwz r9,24(r1) ffc2c128: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c12c: 41 9e 00 1c beq- cr7,ffc2c148 <== NEVER TAKEN ffc2c130: 80 09 00 1c lwz r0,28(r9) ffc2c134: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c138: 41 9e 00 10 beq- cr7,ffc2c148 <== NEVER TAKEN ffc2c13c: 38 61 00 0c addi r3,r1,12 ffc2c140: 7c 09 03 a6 mtctr r0 ffc2c144: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &parent_loc ); ffc2c148: 81 21 00 2c lwz r9,44(r1) ffc2c14c: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c150: 41 9e 00 1c beq- cr7,ffc2c16c <== NEVER TAKEN ffc2c154: 80 09 00 1c lwz r0,28(r9) ffc2c158: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c15c: 41 9e 00 10 beq- cr7,ffc2c16c <== NEVER TAKEN ffc2c160: 38 61 00 20 addi r3,r1,32 ffc2c164: 7c 09 03 a6 mtctr r0 ffc2c168: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EXDEV ); ffc2c16c: 48 01 b5 21 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2c170: 38 00 00 12 li r0,18 ffc2c174: 48 00 00 64 b ffc2c1d8 <== ALWAYS TAKEN } if ( !parent_loc.ops->link_h ) { ffc2c178: 81 21 00 2c lwz r9,44(r1) ffc2c17c: 80 09 00 08 lwz r0,8(r9) ffc2c180: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c184: 40 be 00 5c bne+ cr7,ffc2c1e0 <== ALWAYS TAKEN rtems_filesystem_freenode( &existing_loc ); ffc2c188: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc2c18c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c190: 41 9e 00 1c beq- cr7,ffc2c1ac <== NOT EXECUTED ffc2c194: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c198: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c19c: 41 9e 00 10 beq- cr7,ffc2c1ac <== NOT EXECUTED ffc2c1a0: 38 61 00 0c addi r3,r1,12 <== NOT EXECUTED ffc2c1a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c1a8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); ffc2c1ac: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc2c1b0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c1b4: 41 9e 00 1c beq- cr7,ffc2c1d0 <== NOT EXECUTED ffc2c1b8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c1bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c1c0: 41 9e 00 10 beq- cr7,ffc2c1d0 <== NOT EXECUTED ffc2c1c4: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc2c1c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c1cc: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2c1d0: 48 01 b4 bd bl ffc4768c <__errno> <== NOT EXECUTED ffc2c1d4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2c1d8: 90 03 00 00 stw r0,0(r3) ffc2c1dc: 4b ff ff 30 b ffc2c10c <== ALWAYS TAKEN } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); ffc2c1e0: 3b e1 00 0c addi r31,r1,12 ffc2c1e4: 80 a1 00 08 lwz r5,8(r1) ffc2c1e8: 7f c4 f3 78 mr r4,r30 ffc2c1ec: 7c 09 03 a6 mtctr r0 ffc2c1f0: 7f e3 fb 78 mr r3,r31 ffc2c1f4: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &existing_loc ); ffc2c1f8: 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 ); ffc2c1fc: 7c 7e 1b 78 mr r30,r3 rtems_filesystem_freenode( &existing_loc ); ffc2c200: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c204: 41 9e 00 1c beq- cr7,ffc2c220 <== NEVER TAKEN ffc2c208: 80 09 00 1c lwz r0,28(r9) ffc2c20c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c210: 41 9e 00 10 beq- cr7,ffc2c220 <== NEVER TAKEN ffc2c214: 7f e3 fb 78 mr r3,r31 ffc2c218: 7c 09 03 a6 mtctr r0 ffc2c21c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &parent_loc ); ffc2c220: 81 21 00 2c lwz r9,44(r1) ffc2c224: 2f 89 00 00 cmpwi cr7,r9,0 ffc2c228: 41 9e 00 1c beq- cr7,ffc2c244 <== NEVER TAKEN ffc2c22c: 80 09 00 1c lwz r0,28(r9) ffc2c230: 2f 80 00 00 cmpwi cr7,r0,0 ffc2c234: 41 9e 00 10 beq- cr7,ffc2c244 <== NEVER TAKEN ffc2c238: 38 61 00 20 addi r3,r1,32 ffc2c23c: 7c 09 03 a6 mtctr r0 ffc2c240: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc2c244: 80 01 00 44 lwz r0,68(r1) ffc2c248: 7f c3 f3 78 mr r3,r30 ffc2c24c: 83 e1 00 3c lwz r31,60(r1) ffc2c250: 7c 08 03 a6 mtlr r0 ffc2c254: 83 c1 00 38 lwz r30,56(r1) ffc2c258: 38 21 00 40 addi r1,r1,64 ffc2c25c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07c88 : int mode __attribute__((unused)), struct aiocb * const list[] __attribute__((unused)), int nent __attribute__((unused)), struct sigevent *sig __attribute__((unused)) ) { ffc07c88: 94 21 ff f8 stwu r1,-8(r1) ffc07c8c: 7c 08 02 a6 mflr r0 ffc07c90: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07c94: 48 00 ae 45 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07c98: 38 00 00 58 li r0,88 ffc07c9c: 90 03 00 00 stw r0,0(r3) } ffc07ca0: 38 60 ff ff li r3,-1 ffc07ca4: 80 01 00 0c lwz r0,12(r1) ffc07ca8: 38 21 00 08 addi r1,r1,8 ffc07cac: 7c 08 03 a6 mtlr r0 ffc07cb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1c79c : off_t lseek( int fd, off_t offset, int whence ) { ffc1c79c: 94 21 ff e8 stwu r1,-24(r1) ffc1c7a0: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1c7a4: 3d 20 00 00 lis r9,0 off_t lseek( int fd, off_t offset, int whence ) { ffc1c7a8: 90 01 00 1c stw r0,28(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1c7ac: 80 09 26 8c lwz r0,9868(r9) off_t lseek( int fd, off_t offset, int whence ) { ffc1c7b0: 93 a1 00 0c stw r29,12(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1c7b4: 7f 83 00 40 cmplw cr7,r3,r0 off_t lseek( int fd, off_t offset, int whence ) { ffc1c7b8: 93 c1 00 10 stw r30,16(r1) ffc1c7bc: 93 e1 00 14 stw r31,20(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1c7c0: 40 9c 00 20 bge- cr7,ffc1c7e0 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1c7c4: 3d 20 00 00 lis r9,0 ffc1c7c8: 83 e9 27 4c lwz r31,10060(r9) ffc1c7cc: 1c 63 00 48 mulli r3,r3,72 ffc1c7d0: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc1c7d4: 80 1f 00 18 lwz r0,24(r31) ffc1c7d8: 70 09 01 00 andi. r9,r0,256 ffc1c7dc: 40 a2 00 10 bne+ ffc1c7ec <== ALWAYS TAKEN ffc1c7e0: 4b ff 54 2d bl ffc11c0c <__errno> <== NOT EXECUTED ffc1c7e4: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1c7e8: 48 00 00 7c b ffc1c864 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) ffc1c7ec: 81 3f 00 40 lwz r9,64(r31) ffc1c7f0: 80 09 00 14 lwz r0,20(r9) ffc1c7f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc1c7f8: 40 be 00 10 bne+ cr7,ffc1c808 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1c7fc: 4b ff 54 11 bl ffc11c0c <__errno> <== NOT EXECUTED ffc1c800: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1c804: 48 00 00 60 b ffc1c864 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { ffc1c808: 2f 87 00 01 cmpwi cr7,r7,1 /* * Now process the lseek(). */ old_offset = iop->offset; ffc1c80c: 83 bf 00 10 lwz r29,16(r31) ffc1c810: 83 df 00 14 lwz r30,20(r31) switch ( whence ) { ffc1c814: 41 9e 00 20 beq- cr7,ffc1c834 ffc1c818: 2f 87 00 02 cmpwi cr7,r7,2 ffc1c81c: 41 9e 00 24 beq- cr7,ffc1c840 ffc1c820: 2f 87 00 00 cmpwi cr7,r7,0 ffc1c824: 40 9e 00 38 bne- cr7,ffc1c85c case SEEK_SET: iop->offset = offset; ffc1c828: 90 bf 00 10 stw r5,16(r31) ffc1c82c: 90 df 00 14 stw r6,20(r31) break; ffc1c830: 48 00 00 44 b ffc1c874 <== ALWAYS TAKEN case SEEK_CUR: iop->offset += offset; ffc1c834: 7d 46 f0 14 addc r10,r6,r30 ffc1c838: 7d 25 e9 14 adde r9,r5,r29 ffc1c83c: 48 00 00 14 b ffc1c850 <== ALWAYS TAKEN break; case SEEK_END: iop->offset = iop->size + offset; ffc1c840: 81 7f 00 08 lwz r11,8(r31) ffc1c844: 81 9f 00 0c lwz r12,12(r31) ffc1c848: 7d 46 60 14 addc r10,r6,r12 ffc1c84c: 7d 25 59 14 adde r9,r5,r11 ffc1c850: 91 3f 00 10 stw r9,16(r31) ffc1c854: 91 5f 00 14 stw r10,20(r31) break; ffc1c858: 48 00 00 1c b ffc1c874 <== ALWAYS TAKEN default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc1c85c: 4b ff 53 b1 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc1c860: 38 00 00 16 li r0,22 ffc1c864: 90 03 00 00 stw r0,0(r3) ffc1c868: 39 20 ff ff li r9,-1 ffc1c86c: 39 40 ff ff li r10,-1 ffc1c870: 48 00 00 38 b ffc1c8a8 <== ALWAYS TAKEN /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); ffc1c874: 81 3f 00 40 lwz r9,64(r31) ffc1c878: 7f e3 fb 78 mr r3,r31 ffc1c87c: 80 09 00 14 lwz r0,20(r9) ffc1c880: 7c 09 03 a6 mtctr r0 ffc1c884: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc1c888: 7c 69 1b 78 mr r9,r3 if ( status == (off_t) -1 ) ffc1c88c: 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 ); ffc1c890: 7c 8a 23 78 mr r10,r4 if ( status == (off_t) -1 ) ffc1c894: 40 be 00 14 bne+ cr7,ffc1c8a8 ffc1c898: 2f 84 ff ff cmpwi cr7,r4,-1 ffc1c89c: 40 be 00 0c bne+ cr7,ffc1c8a8 <== NEVER TAKEN iop->offset = old_offset; ffc1c8a0: 93 bf 00 10 stw r29,16(r31) ffc1c8a4: 93 df 00 14 stw r30,20(r31) /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1c8a8: 80 01 00 1c lwz r0,28(r1) ffc1c8ac: 7d 44 53 78 mr r4,r10 ffc1c8b0: 7d 23 4b 78 mr r3,r9 ffc1c8b4: 83 a1 00 0c lwz r29,12(r1) ffc1c8b8: 7c 08 03 a6 mtlr r0 ffc1c8bc: 83 c1 00 10 lwz r30,16(r1) ffc1c8c0: 83 e1 00 14 lwz r31,20(r1) ffc1c8c4: 38 21 00 18 addi r1,r1,24 ffc1c8c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2c3a4 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc2c3a4: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc2c3a8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2c3ac: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc2c3b0: 7c 9e 23 79 mr. r30,r4 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { ffc2c3b4: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc2c3b8: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc2c3bc: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc2c3c0: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc2c3c4: 40 a2 00 10 bne+ ffc2c3d4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); ffc2c3c8: 48 01 b2 c5 bl ffc4768c <__errno> <== NOT EXECUTED ffc2c3cc: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc2c3d0: 48 00 00 6c b ffc2c43c <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc2c3d4: 48 02 30 81 bl ffc4f454 <== NOT EXECUTED ffc2c3d8: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc2c3dc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2c3e0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc2c3e4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2c3e8: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc2c3ec: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc2c3f0: 4b fd bf 4d bl ffc0833c <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc2c3f4: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2c3f8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2c3fc: 40 9e 00 9c bne- cr7,ffc2c498 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ ffc2c400: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED ffc2c404: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc2c408: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c40c: 40 be 00 3c bne+ cr7,ffc2c448 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2c410: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc2c414: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c418: 41 9e 00 1c beq- cr7,ffc2c434 <== NOT EXECUTED ffc2c41c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c420: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c424: 41 9e 00 10 beq- cr7,ffc2c434 <== NOT EXECUTED ffc2c428: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c42c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c430: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2c434: 48 01 b2 59 bl ffc4768c <__errno> <== NOT EXECUTED ffc2c438: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2c43c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2c440: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2c444: 48 00 00 54 b ffc2c498 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc2c448: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc2c44c: 38 a0 00 48 li r5,72 <== NOT EXECUTED ffc2c450: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc2c454: 48 01 ef d1 bl ffc4b424 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); ffc2c458: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED ffc2c45c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2c460: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc2c464: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c468: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c46c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2c470: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); ffc2c474: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2c478: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2c47c: 41 9e 00 1c beq- cr7,ffc2c498 <== NOT EXECUTED ffc2c480: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2c484: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2c488: 41 9e 00 10 beq- cr7,ffc2c498 <== NOT EXECUTED ffc2c48c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c490: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2c494: 4e 80 04 21 bctrl <== NOT EXECUTED return status; } ffc2c498: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc2c49c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2c4a0: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc2c4a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2c4a8: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc2c4ac: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc2c4b0: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc2c4b4: 4e 80 00 20 blr <== NOT EXECUTED ffc043bc : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); ffc043bc: 94 21 ff e8 stwu r1,-24(r1) <== ALWAYS TAKEN ffc043c0: 7c 08 02 a6 mflr r0 ffc043c4: 3d 20 00 00 lis r9,0 ffc043c8: 90 01 00 1c stw r0,28(r1) ffc043cc: 39 29 2b 00 addi r9,r9,11008 ffc043d0: 81 69 00 04 lwz r11,4(r9) ffc043d4: 93 e1 00 14 stw r31,20(r1) ffc043d8: 7c 7f 1b 78 mr r31,r3 ffc043dc: 39 6b 00 01 addi r11,r11,1 ffc043e0: 91 69 00 04 stw r11,4(r9) ffc043e4: 93 a1 00 0c stw r29,12(r1) ffc043e8: 93 c1 00 10 stw r30,16(r1) /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); ffc043ec: 4b ff fe 79 bl ffc04264 <== ALWAYS TAKEN /* * Validate the parameters */ if ( !size ) ffc043f0: 2f 9f 00 00 cmpwi cr7,r31,0 ffc043f4: 41 9e 00 cc beq- cr7,ffc044c0 <== 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()) && ffc043f8: 3d 20 00 00 lis r9,0 ffc043fc: 80 09 27 d4 lwz r0,10196(r9) ffc04400: 2f 80 00 03 cmpwi cr7,r0,3 ffc04404: 40 be 00 10 bne+ cr7,ffc04414 ffc04408: 4b ff fd e9 bl ffc041f0 <== ALWAYS TAKEN ffc0440c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04410: 41 9e 00 b0 beq- cr7,ffc044c0 <== 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 ); ffc04414: 3d 20 00 00 lis r9,0 ffc04418: 80 69 26 9c lwz r3,9884(r9) ffc0441c: 7f e4 fb 78 mr r4,r31 ffc04420: 38 a0 00 00 li r5,0 ffc04424: 38 c0 00 00 li r6,0 ffc04428: 48 00 57 65 bl ffc09b8c <_Protected_heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { ffc0442c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04430: 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; ffc04434: 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 ) { ffc04438: 40 be 00 3c bne+ cr7,ffc04474 if (rtems_malloc_sbrk_helpers) ffc0443c: 3d 20 00 00 lis r9,0 ffc04440: 81 29 27 0c lwz r9,9996(r9) ffc04444: 2f 89 00 00 cmpwi cr7,r9,0 ffc04448: 41 9e 00 1c beq- cr7,ffc04464 <== ALWAYS TAKEN return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); ffc0444c: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc04450: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04454: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04458: 4e 80 04 21 bctrl <== NOT EXECUTED if ( !return_this ) { ffc0445c: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc04460: 40 a2 00 14 bne+ ffc04474 <== NOT EXECUTED errno = ENOMEM; ffc04464: 48 00 d7 a9 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc04468: 38 00 00 0c li r0,12 ffc0446c: 90 03 00 00 stw r0,0(r3) return (void *) 0; ffc04470: 48 00 00 54 b ffc044c4 <== ALWAYS TAKEN } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) ffc04474: 3d 20 00 00 lis r9,0 ffc04478: 81 29 27 10 lwz r9,10000(r9) ffc0447c: 2f 89 00 00 cmpwi cr7,r9,0 ffc04480: 41 9e 00 18 beq- cr7,ffc04498 <== ALWAYS TAKEN (*rtems_malloc_dirty_helper)( return_this, size ); ffc04484: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc04488: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc0448c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc04490: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04494: 4e 80 04 21 bctrl <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) ffc04498: 3d 20 00 00 lis r9,0 ffc0449c: 81 29 27 08 lwz r9,9992(r9) <== ALWAYS TAKEN ffc044a0: 7f dd f3 78 mr r29,r30 ffc044a4: 2f 89 00 00 cmpwi cr7,r9,0 ffc044a8: 41 9e 00 1c beq- cr7,ffc044c4 <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->at_malloc)(return_this); ffc044ac: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc044b0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc044b4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc044b8: 4e 80 04 21 bctrl <== NOT EXECUTED ffc044bc: 48 00 00 08 b ffc044c4 <== NOT EXECUTED ffc044c0: 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; } ffc044c4: 80 01 00 1c lwz r0,28(r1) ffc044c8: 7f a3 eb 78 mr r3,r29 ffc044cc: 83 c1 00 10 lwz r30,16(r1) ffc044d0: 7c 08 03 a6 mtlr r0 ffc044d4: 83 a1 00 0c lwz r29,12(r1) <== ALWAYS TAKEN ffc044d8: 83 e1 00 14 lwz r31,20(r1) ffc044dc: 38 21 00 18 addi r1,r1,24 ffc044e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04238 : } void malloc_deferred_free( void *pointer ) { ffc04238: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc0423c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc04240: 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 ); ffc04244: 3c 60 00 00 lis r3,0 <== NOT EXECUTED ffc04248: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc0424c: 38 63 2a f0 addi r3,r3,10992 <== NOT EXECUTED ffc04250: 48 00 46 39 bl ffc08888 <_Chain_Append> <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } ffc04254: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc04258: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc0425c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04260: 4e 80 00 20 blr <== NOT EXECUTED ffc04218 : */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc04218: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc0421c: 39 2b 2a f0 addi r9,r11,10992 ffc04220: 38 09 00 04 addi r0,r9,4 <== ALWAYS TAKEN the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc04224: 91 29 00 08 stw r9,8(r9) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc04228: 90 0b 2a f0 stw r0,10992(r11) the_chain->permanent_null = NULL; ffc0422c: 38 00 00 00 li r0,0 ffc04230: 90 09 00 04 stw r0,4(r9) void malloc_deferred_frees_initialize(void) { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } ffc04234: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04264 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { ffc04264: 94 21 ff f0 stwu r1,-16(r1) ffc04268: 7c 08 02 a6 mflr r0 ffc0426c: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); ffc04270: 3f e0 00 00 lis r31,0 ffc04274: 3b ff 2a f0 addi r31,r31,10992 <== ALWAYS TAKEN ffc04278: 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) ffc0427c: 48 00 00 08 b ffc04284 <== ALWAYS TAKEN free(to_be_freed); ffc04280: 4b ff fd d9 bl ffc04058 <== NOT EXECUTED ffc04284: 7f e3 fb 78 mr r3,r31 ffc04288: 48 00 46 31 bl ffc088b8 <_Chain_Get> <== ALWAYS TAKEN 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) ffc0428c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04290: 40 9e ff f0 bne+ cr7,ffc04280 <== NEVER TAKEN free(to_be_freed); } ffc04294: 80 01 00 14 lwz r0,20(r1) ffc04298: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc0429c: 38 21 00 10 addi r1,r1,16 ffc042a0: 7c 08 03 a6 mtlr r0 ffc042a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08a64 : /* * Find amount of free heap remaining */ size_t malloc_free_space( void ) { ffc08a64: 94 21 ff e8 stwu r1,-24(r1) Heap_Information info; _Protected_heap_Get_free_information( RTEMS_Malloc_Heap, &info ); ffc08a68: 3d 20 00 00 lis r9,0 /* * Find amount of free heap remaining */ size_t malloc_free_space( void ) { ffc08a6c: 7c 08 02 a6 mflr r0 Heap_Information info; _Protected_heap_Get_free_information( RTEMS_Malloc_Heap, &info ); ffc08a70: 80 69 34 dc lwz r3,13532(r9) ffc08a74: 38 81 00 08 addi r4,r1,8 /* * Find amount of free heap remaining */ size_t malloc_free_space( void ) { ffc08a78: 90 01 00 1c stw r0,28(r1) Heap_Information info; _Protected_heap_Get_free_information( RTEMS_Malloc_Heap, &info ); ffc08a7c: 48 00 6d 0d bl ffc0f788 <_Protected_heap_Get_free_information> <== ALWAYS TAKEN return (size_t) info.largest; } ffc08a80: 80 01 00 1c lwz r0,28(r1) ffc08a84: 80 61 00 0c lwz r3,12(r1) ffc08a88: 38 21 00 18 addi r1,r1,24 ffc08a8c: 7c 08 03 a6 mtlr r0 ffc08a90: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2c4c4 : int malloc_info( Heap_Information_block *the_info ) { if ( !the_info ) ffc2c4c4: 7c 64 1b 79 mr. r4,r3 */ int malloc_info( Heap_Information_block *the_info ) { ffc2c4c8: 94 21 ff f8 stwu r1,-8(r1) ffc2c4cc: 7c 08 02 a6 mflr r0 if ( !the_info ) ffc2c4d0: 38 60 ff ff li r3,-1 */ int malloc_info( Heap_Information_block *the_info ) { ffc2c4d4: 90 01 00 0c stw r0,12(r1) if ( !the_info ) ffc2c4d8: 41 82 00 14 beq- ffc2c4ec return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); ffc2c4dc: 3d 20 00 00 lis r9,0 ffc2c4e0: 80 69 34 dc lwz r3,13532(r9) ffc2c4e4: 48 00 34 ad bl ffc2f990 <_Protected_heap_Get_information> <== ALWAYS TAKEN ffc2c4e8: 38 60 00 00 li r3,0 return 0; } ffc2c4ec: 80 01 00 0c lwz r0,12(r1) ffc2c4f0: 38 21 00 08 addi r1,r1,8 ffc2c4f4: 7c 08 03 a6 mtlr r0 ffc2c4f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc041f0 : rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) ffc041f0: 3d 20 00 00 lis r9,0 ffc041f4: 80 09 27 70 lwz r0,10096(r9) ffc041f8: 38 60 00 00 li r3,0 ffc041fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc04200: 4c 9e 00 20 bnelr cr7 <== NEVER TAKEN return false; if ( _ISR_Nest_level > 0 ) ffc04204: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc04208: 80 69 27 98 lwz r3,10136(r9) #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) ffc0420c: 7c 63 00 34 cntlzw r3,r3 ffc04210: 54 63 d9 7e rlwinm r3,r3,27,5,31 if ( _ISR_Nest_level > 0 ) return false; return true; } ffc04214: 4e 80 00 20 blr <== ALWAYS TAKEN ffc078ac : #ifdef RTEMS_NEWLIB #include "malloc_p.h" void malloc_report_statistics(void) { ffc078ac: 94 21 ff f8 stwu r1,-8(r1) ffc078b0: 7c 08 02 a6 mflr r0 malloc_report_statistics_with_plugin( NULL, printk_plugin ); ffc078b4: 3c 80 ff c1 lis r4,-63 ffc078b8: 38 84 87 44 addi r4,r4,-30908 #ifdef RTEMS_NEWLIB #include "malloc_p.h" void malloc_report_statistics(void) { ffc078bc: 90 01 00 0c stw r0,12(r1) malloc_report_statistics_with_plugin( NULL, printk_plugin ); ffc078c0: 38 60 00 00 li r3,0 ffc078c4: 48 00 00 15 bl ffc078d8 <== ALWAYS TAKEN } ffc078c8: 80 01 00 0c lwz r0,12(r1) ffc078cc: 38 21 00 08 addi r1,r1,8 ffc078d0: 7c 08 03 a6 mtlr r0 ffc078d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2c4fc : void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c4fc: 94 21 ff b8 stwu r1,-72(r1) ffc2c500: 7c 08 02 a6 mflr r0 rtems_malloc_statistics_t *s; uintmax_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; ffc2c504: 3d 20 00 00 lis r9,0 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c508: 90 01 00 4c stw r0,76(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc2c50c: 38 00 00 64 li r0,100 ffc2c510: 38 a0 00 00 li r5,0 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c514: 93 e1 00 44 stw r31,68(r1) rtems_malloc_statistics_t *s; uintmax_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; ffc2c518: 3b e9 63 a0 addi r31,r9,25504 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c51c: 93 61 00 34 stw r27,52(r1) ffc2c520: 93 81 00 38 stw r28,56(r1) rtems_malloc_statistics_t *s; uintmax_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; ffc2c524: 83 7f 00 20 lwz r27,32(r31) ffc2c528: 83 9f 00 24 lwz r28,36(r31) void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c52c: 93 a1 00 3c stw r29,60(r1) ffc2c530: 93 c1 00 40 stw r30,64(r1) rtems_malloc_statistics_t *s; uintmax_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; ffc2c534: 83 bf 00 28 lwz r29,40(r31) ffc2c538: 83 df 00 2c lwz r30,44(r31) void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c53c: 92 e1 00 24 stw r23,36(r1) rtems_malloc_statistics_t *s; uintmax_t allocated; s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; ffc2c540: 7d 1e e0 10 subfc r8,r30,r28 ffc2c544: 7c fd d9 10 subfe r7,r29,r27 (*print)( ffc2c548: 82 e9 63 a0 lwz r23,25504(r9) ffc2c54c: 7d 20 40 16 mulhwu r9,r0,r8 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c550: 93 21 00 2c stw r25,44(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc2c554: 7d 40 41 d6 mullw r10,r0,r8 ffc2c558: 83 3f 00 18 lwz r25,24(r31) void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c55c: 93 01 00 28 stw r24,40(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc2c560: 1c 07 00 64 mulli r0,r7,100 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c564: 93 41 00 30 stw r26,48(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc2c568: 7d 20 4a 14 add r9,r0,r9 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c56c: 7c 7a 1b 78 mr r26,r3 ffc2c570: 90 81 00 18 stw r4,24(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc2c574: 7e e6 bb 78 mr r6,r23 ffc2c578: 54 e0 b0 12 rlwinm r0,r7,22,0,9 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2c57c: 92 c1 00 20 stw r22,32(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc2c580: 55 18 b2 be rlwinm r24,r8,22,10,31 ffc2c584: 7d 23 4b 78 mr r3,r9 ffc2c588: 7d 44 53 78 mr r4,r10 ffc2c58c: 7c 18 c3 78 or r24,r0,r24 ffc2c590: 54 f6 b2 be rlwinm r22,r7,22,10,31 ffc2c594: 48 03 53 01 bl ffc61894 <__udivdi3> <== ALWAYS TAKEN ffc2c598: 1d 99 00 64 mulli r12,r25,100 ffc2c59c: 7d 8c bb 96 divwu r12,r12,r23 ffc2c5a0: 57 c0 b2 be rlwinm r0,r30,22,10,31 ffc2c5a4: 91 81 00 0c stw r12,12(r1) ffc2c5a8: 57 bd b0 12 rlwinm r29,r29,22,0,9 ffc2c5ac: 7f a0 03 78 or r0,r29,r0 ffc2c5b0: 90 01 00 14 stw r0,20(r1) ffc2c5b4: 57 8b b2 be rlwinm r11,r28,22,10,31 ffc2c5b8: 57 7b b0 12 rlwinm r27,r27,22,0,9 ffc2c5bc: 80 01 00 18 lwz r0,24(r1) ffc2c5c0: 7f 6b 5b 78 or r11,r27,r11 ffc2c5c4: 7c 8a 23 78 mr r10,r4 ffc2c5c8: 91 61 00 10 stw r11,16(r1) ffc2c5cc: 57 39 b2 be rlwinm r25,r25,22,10,31 ffc2c5d0: 7c 09 03 a6 mtctr r0 ffc2c5d4: 3c 80 ff c7 lis r4,-57 ffc2c5d8: 93 21 00 08 stw r25,8(r1) ffc2c5dc: 7c 69 1b 78 mr r9,r3 ffc2c5e0: 56 e5 b2 be rlwinm r5,r23,22,10,31 ffc2c5e4: 7e c7 b3 78 mr r7,r22 ffc2c5e8: 7f 08 c3 78 mr r8,r24 ffc2c5ec: 38 84 84 72 addi r4,r4,-31630 ffc2c5f0: 7f 43 d3 78 mr r3,r26 ffc2c5f4: 4c c6 31 82 crclr 4*cr1+eq ffc2c5f8: 4e 80 04 21 bctrl <== ALWAYS TAKEN s->max_depth / 1024, (s->max_depth * 100) / s->space_available, (uint32_t) (s->lifetime_allocated / 1024), (uint32_t) (s->lifetime_freed / 1024) ); (*print)( ffc2c5fc: 80 01 00 18 lwz r0,24(r1) ffc2c600: 3c 80 ff c7 lis r4,-57 ffc2c604: 81 3f 00 14 lwz r9,20(r31) ffc2c608: 7f 43 d3 78 mr r3,r26 ffc2c60c: 80 bf 00 04 lwz r5,4(r31) ffc2c610: 80 df 00 08 lwz r6,8(r31) ffc2c614: 7c 09 03 a6 mtctr r0 ffc2c618: 80 ff 00 0c lwz r7,12(r31) ffc2c61c: 38 84 84 d4 addi r4,r4,-31532 ffc2c620: 81 1f 00 10 lwz r8,16(r31) ffc2c624: 4c c6 31 82 crclr 4*cr1+eq ffc2c628: 4e 80 04 21 bctrl <== ALWAYS TAKEN s->memalign_calls, s->free_calls, s->realloc_calls, s->calloc_calls ); } ffc2c62c: 80 01 00 4c lwz r0,76(r1) ffc2c630: 82 c1 00 20 lwz r22,32(r1) ffc2c634: 7c 08 03 a6 mtlr r0 ffc2c638: 82 e1 00 24 lwz r23,36(r1) ffc2c63c: 83 01 00 28 lwz r24,40(r1) ffc2c640: 83 21 00 2c lwz r25,44(r1) ffc2c644: 83 41 00 30 lwz r26,48(r1) ffc2c648: 83 61 00 34 lwz r27,52(r1) ffc2c64c: 83 81 00 38 lwz r28,56(r1) ffc2c650: 83 a1 00 3c lwz r29,60(r1) ffc2c654: 83 c1 00 40 lwz r30,64(r1) ffc2c658: 83 e1 00 44 lwz r31,68(r1) ffc2c65c: 38 21 00 48 addi r1,r1,72 ffc2c660: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07a40 : #include "malloc_p.h" #include void malloc_walk(size_t source, size_t printf_enabled) { ffc07a40: 94 21 ff f8 stwu r1,-8(r1) ffc07a44: 7c 08 02 a6 mflr r0 _Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled ); ffc07a48: 31 24 ff ff addic r9,r4,-1 ffc07a4c: 7c a9 21 10 subfe r5,r9,r4 #include "malloc_p.h" #include void malloc_walk(size_t source, size_t printf_enabled) { ffc07a50: 90 01 00 0c stw r0,12(r1) _Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled ); ffc07a54: 3d 20 00 00 lis r9,0 #include "malloc_p.h" #include void malloc_walk(size_t source, size_t printf_enabled) { ffc07a58: 7c 60 1b 78 mr r0,r3 _Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled ); ffc07a5c: 80 69 27 1c lwz r3,10012(r9) ffc07a60: 7c 04 03 78 mr r4,r0 ffc07a64: 48 00 6c 89 bl ffc0e6ec <_Protected_heap_Walk> <== ALWAYS TAKEN } ffc07a68: 80 01 00 0c lwz r0,12(r1) ffc07a6c: 38 21 00 08 addi r1,r1,8 ffc07a70: 7c 08 03 a6 mtlr r0 ffc07a74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15570 : void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc15570: 3d 20 00 00 lis r9,0 */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { ffc15574: 94 21 ff f8 stwu r1,-8(r1) ffc15578: 7c 08 02 a6 mflr r0 void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc1557c: 38 60 00 01 li r3,1 ffc15580: 80 89 27 68 lwz r4,10088(r9) */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { ffc15584: 90 01 00 0c stw r0,12(r1) void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc15588: 4b fe ff 91 bl ffc05518 <== ALWAYS TAKEN if ( memory ) ffc1558c: 2c 03 00 00 cmpwi r3,0 ffc15590: 41 82 00 14 beq- ffc155a4 <== NEVER TAKEN memfile_blocks_allocated++; ffc15594: 3d 20 00 00 lis r9,0 ffc15598: 81 69 28 10 lwz r11,10256(r9) ffc1559c: 38 0b 00 01 addi r0,r11,1 ffc155a0: 90 09 28 10 stw r0,10256(r9) return memory; } ffc155a4: 80 01 00 0c lwz r0,12(r1) ffc155a8: 38 21 00 08 addi r1,r1,8 ffc155ac: 7c 08 03 a6 mtlr r0 ffc155b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15ae0 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ ffc15ae0: 94 21 ff f0 stwu r1,-16(r1) ffc15ae4: 7c 08 02 a6 mflr r0 ffc15ae8: 93 e1 00 0c stw r31,12(r1) ffc15aec: 7c 7f 1b 78 mr r31,r3 ffc15af0: 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) ) { ffc15af4: 4b ff d3 1d bl ffc12e10 <== ALWAYS TAKEN ffc15af8: 2f 83 00 00 cmpwi cr7,r3,0 ffc15afc: 40 9e 00 44 bne- cr7,ffc15b40 ffc15b00: a0 1f 00 34 lhz r0,52(r31) ffc15b04: 2f 80 00 00 cmpwi cr7,r0,0 ffc15b08: 40 9e 00 38 bne- cr7,ffc15b40 <== NEVER TAKEN /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) ffc15b0c: 3d 20 00 00 lis r9,0 ffc15b10: 81 29 26 f4 lwz r9,9972(r9) ffc15b14: 81 69 00 04 lwz r11,4(r9) ffc15b18: 7f 8b f8 00 cmpw cr7,r11,r31 ffc15b1c: 40 be 00 08 bne+ cr7,ffc15b24 <== ALWAYS TAKEN rtems_filesystem_current.node_access = NULL; ffc15b20: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) ffc15b24: 80 1f 00 4c lwz r0,76(r31) ffc15b28: 2f 80 00 06 cmpwi cr7,r0,6 ffc15b2c: 41 9e 00 0c beq- cr7,ffc15b38 <== NEVER TAKEN IMFS_memfile_remove( the_jnode ); ffc15b30: 7f e3 fb 78 mr r3,r31 ffc15b34: 4b ff fd e1 bl ffc15914 <== ALWAYS TAKEN free( the_jnode ); ffc15b38: 7f e3 fb 78 mr r3,r31 ffc15b3c: 4b fe fc ed bl ffc05828 <== ALWAYS TAKEN } return 0; } ffc15b40: 80 01 00 14 lwz r0,20(r1) ffc15b44: 38 60 00 00 li r3,0 ffc15b48: 83 e1 00 0c lwz r31,12(r1) ffc15b4c: 38 21 00 10 addi r1,r1,16 ffc15b50: 7c 08 03 a6 mtlr r0 ffc15b54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15bc4 : */ int memfile_close( rtems_libio_t *iop ) { ffc15bc4: 7c 08 02 a6 mflr r0 ffc15bc8: 94 21 ff f8 stwu r1,-8(r1) ffc15bcc: 7c 69 1b 78 mr r9,r3 ffc15bd0: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (iop->flags & LIBIO_FLAGS_APPEND) ffc15bd4: 80 03 00 18 lwz r0,24(r3) rtems_libio_t *iop ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc15bd8: 80 63 00 3c lwz r3,60(r3) if (iop->flags & LIBIO_FLAGS_APPEND) ffc15bdc: 70 0b 02 00 andi. r11,r0,512 ffc15be0: 41 82 00 14 beq- ffc15bf4 iop->offset = the_jnode->info.file.size; ffc15be4: 81 63 00 50 lwz r11,80(r3) ffc15be8: 81 83 00 54 lwz r12,84(r3) ffc15bec: 91 69 00 10 stw r11,16(r9) ffc15bf0: 91 89 00 14 stw r12,20(r9) memfile_check_rmnod( the_jnode ); ffc15bf4: 4b ff fe ed bl ffc15ae0 <== ALWAYS TAKEN return 0; } ffc15bf8: 80 01 00 0c lwz r0,12(r1) ffc15bfc: 38 60 00 00 li r3,0 ffc15c00: 7c 08 03 a6 mtlr r0 ffc15c04: 38 21 00 08 addi r1,r1,8 ffc15c08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15540 : */ void memfile_free_block( void *memory ) { ffc15540: 94 21 ff f8 stwu r1,-8(r1) ffc15544: 7c 08 02 a6 mflr r0 ffc15548: 90 01 00 0c stw r0,12(r1) #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); ffc1554c: 4b ff 02 dd bl ffc05828 <== ALWAYS TAKEN memfile_blocks_allocated--; ffc15550: 3d 20 00 00 lis r9,0 ffc15554: 81 69 28 10 lwz r11,10256(r9) ffc15558: 38 0b ff ff addi r0,r11,-1 ffc1555c: 90 09 28 10 stw r0,10256(r9) } ffc15560: 80 01 00 0c lwz r0,12(r1) ffc15564: 38 21 00 08 addi r1,r1,8 ffc15568: 7c 08 03 a6 mtlr r0 ffc1556c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc157f8 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc157f8: 94 21 ff e0 stwu r1,-32(r1) ffc157fc: 7c 08 02 a6 mflr r0 ffc15800: 93 e1 00 1c stw r31,28(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc15804: 7c 7f 1b 79 mr. r31,r3 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc15808: 93 61 00 0c stw r27,12(r1) ffc1580c: 7c 9b 23 78 mr r27,r4 ffc15810: 90 01 00 24 stw r0,36(r1) ffc15814: 93 81 00 10 stw r28,16(r1) ffc15818: 93 a1 00 14 stw r29,20(r1) ffc1581c: 93 c1 00 18 stw r30,24(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc15820: 40 a2 00 28 bne+ ffc15848 <== ALWAYS TAKEN ffc15824: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc15828: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1582c: 38 a5 4e 04 addi r5,r5,19972 <== NOT EXECUTED ffc15830: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc15834: 38 63 4e c6 addi r3,r3,20166 <== NOT EXECUTED ffc15838: 38 a5 00 20 addi r5,r5,32 <== NOT EXECUTED ffc1583c: 38 c6 4f 3a addi r6,r6,20282 <== NOT EXECUTED ffc15840: 38 80 01 b3 li r4,435 <== NOT EXECUTED ffc15844: 4b fe fa fd bl ffc05340 <__assert_func> <== NOT EXECUTED ffc15848: 83 df 00 00 lwz r30,0(r31) ffc1584c: 3b a0 00 00 li r29,0 b = *block_table; for ( i=0 ; i <== ALWAYS TAKEN if ( b[i] ) { ffc15858: 80 7e 00 00 lwz r3,0(r30) ffc1585c: 2f 83 00 00 cmpwi cr7,r3,0 ffc15860: 41 9e 00 0c beq- cr7,ffc1586c memfile_free_block( b[i] ); ffc15864: 4b ff fc dd bl ffc15540 <== ALWAYS TAKEN b[i] = 0; ffc15868: 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 ); ffc1587c: 80 7f 00 00 lwz r3,0(r31) ffc15880: 4b ff fc c1 bl ffc15540 <== ALWAYS TAKEN *block_table = 0; ffc15884: 38 00 00 00 li r0,0 ffc15888: 90 1f 00 00 stw r0,0(r31) } ffc1588c: 80 01 00 24 lwz r0,36(r1) ffc15890: 83 61 00 0c lwz r27,12(r1) ffc15894: 7c 08 03 a6 mtlr r0 ffc15898: 83 81 00 10 lwz r28,16(r1) ffc1589c: 83 a1 00 14 lwz r29,20(r1) ffc158a0: 83 c1 00 18 lwz r30,24(r1) ffc158a4: 83 e1 00 1c lwz r31,28(r1) ffc158a8: 38 21 00 20 addi r1,r1,32 ffc158ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15e84 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { ffc15e84: 94 21 ff e0 stwu r1,-32(r1) ffc15e88: 7c 08 02 a6 mflr r0 ffc15e8c: 7c 69 1b 78 mr r9,r3 ffc15e90: 90 01 00 24 stw r0,36(r1) ffc15e94: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc15e98: 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 ) ffc15e9c: 80 1f 00 50 lwz r0,80(r31) ffc15ea0: 7f 80 28 00 cmpw cr7,r0,r5 ffc15ea4: 41 9c 00 14 blt- cr7,ffc15eb8 <== NEVER TAKEN ffc15ea8: 40 be 00 1c bne+ cr7,ffc15ec4 <== NEVER TAKEN ffc15eac: 80 1f 00 54 lwz r0,84(r31) ffc15eb0: 7f 80 30 40 cmplw cr7,r0,r6 ffc15eb4: 40 9c 00 10 bge- cr7,ffc15ec4 <== ALWAYS TAKEN return IMFS_memfile_extend( the_jnode, length ); ffc15eb8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc15ebc: 4b ff fe 05 bl ffc15cc0 <== NOT EXECUTED ffc15ec0: 48 00 00 2c b ffc15eec <== 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; ffc15ec4: 90 bf 00 50 stw r5,80(r31) iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); ffc15ec8: 38 61 00 08 addi r3,r1,8 ffc15ecc: 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; ffc15ed0: 90 df 00 54 stw r6,84(r31) iop->size = the_jnode->info.file.size; ffc15ed4: 90 c9 00 0c stw r6,12(r9) ffc15ed8: 90 a9 00 08 stw r5,8(r9) IMFS_update_atime( the_jnode ); ffc15edc: 4b fe fa 15 bl ffc058f0 <== ALWAYS TAKEN ffc15ee0: 80 01 00 08 lwz r0,8(r1) ffc15ee4: 38 60 00 00 li r3,0 ffc15ee8: 90 1f 00 40 stw r0,64(r31) return 0; } ffc15eec: 80 01 00 24 lwz r0,36(r1) ffc15ef0: 83 e1 00 1c lwz r31,28(r1) ffc15ef4: 38 21 00 20 addi r1,r1,32 ffc15ef8: 7c 08 03 a6 mtlr r0 ffc15efc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15538 : IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } ffc15538: 38 60 00 00 li r3,0 ffc1553c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15f00 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc15f00: 94 21 ff f0 stwu r1,-16(r1) ffc15f04: 7c 08 02 a6 mflr r0 ffc15f08: 90 01 00 14 stw r0,20(r1) ffc15f0c: 93 c1 00 08 stw r30,8(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc15f10: 83 c3 00 3c lwz r30,60(r3) rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc15f14: 93 e1 00 0c stw r31,12(r1) ffc15f18: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { ffc15f1c: 80 1e 00 4c lwz r0,76(r30) ffc15f20: 2f 80 00 06 cmpwi cr7,r0,6 ffc15f24: 40 9e 00 34 bne- cr7,ffc15f58 <== ALWAYS TAKEN if (iop->offset > the_jnode->info.linearfile.size) ffc15f28: 81 3e 00 50 lwz r9,80(r30) <== NOT EXECUTED ffc15f2c: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED ffc15f30: 80 1e 00 54 lwz r0,84(r30) <== NOT EXECUTED ffc15f34: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc15f38: 41 9d 00 14 bgt- cr7,ffc15f4c <== NOT EXECUTED ffc15f3c: 40 be 00 5c bne+ cr7,ffc15f98 <== NOT EXECUTED ffc15f40: 81 63 00 14 lwz r11,20(r3) <== NOT EXECUTED ffc15f44: 7f 8b 00 40 cmplw cr7,r11,r0 <== NOT EXECUTED ffc15f48: 40 9d 00 50 ble- cr7,ffc15f98 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; ffc15f4c: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED ffc15f50: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED ffc15f54: 48 00 00 44 b ffc15f98 <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) ffc15f58: 80 a3 00 10 lwz r5,16(r3) ffc15f5c: 80 c3 00 14 lwz r6,20(r3) ffc15f60: 7f c3 f3 78 mr r3,r30 ffc15f64: 4b ff fd 5d bl ffc15cc0 <== ALWAYS TAKEN ffc15f68: 2f 83 00 00 cmpwi cr7,r3,0 ffc15f6c: 41 be 00 1c beq+ cr7,ffc15f88 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc15f70: 48 00 20 a1 bl ffc18010 <__errno> <== NOT EXECUTED ffc15f74: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc15f78: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc15f7c: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc15f80: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc15f84: 48 00 00 1c b ffc15fa0 <== NOT EXECUTED iop->size = the_jnode->info.file.size; ffc15f88: 81 3e 00 50 lwz r9,80(r30) ffc15f8c: 81 5e 00 54 lwz r10,84(r30) ffc15f90: 91 3f 00 08 stw r9,8(r31) ffc15f94: 91 5f 00 0c stw r10,12(r31) <== ALWAYS TAKEN } return iop->offset; ffc15f98: 81 3f 00 10 lwz r9,16(r31) ffc15f9c: 81 5f 00 14 lwz r10,20(r31) } ffc15fa0: 80 01 00 14 lwz r0,20(r1) ffc15fa4: 7d 44 53 78 mr r4,r10 ffc15fa8: 7d 23 4b 78 mr r3,r9 ffc15fac: 83 c1 00 08 lwz r30,8(r1) ffc15fb0: 7c 08 03 a6 mtlr r0 ffc15fb4: 83 e1 00 0c lwz r31,12(r1) ffc15fb8: 38 21 00 10 addi r1,r1,16 ffc15fbc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1630c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc1630c: 94 21 ff f0 stwu r1,-16(r1) ffc16310: 7c 08 02 a6 mflr r0 ffc16314: 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)) ffc16318: 80 03 00 18 lwz r0,24(r3) rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc1631c: 93 c1 00 08 stw r30,8(r1) ffc16320: 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)) ffc16324: 70 09 02 04 andi. r9,r0,516 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc16328: 93 e1 00 0c stw r31,12(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc1632c: 83 e3 00 3c lwz r31,60(r3) /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) ffc16330: 41 82 00 64 beq- ffc16394 && (the_jnode->type == IMFS_LINEAR_FILE)) { ffc16334: 80 1f 00 4c lwz r0,76(r31) ffc16338: 2f 80 00 06 cmpwi cr7,r0,6 ffc1633c: 40 be 00 58 bne+ cr7,ffc16394 <== ALWAYS TAKEN uint32_t count = the_jnode->info.linearfile.size; ffc16340: 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; ffc16344: 39 20 00 05 li r9,5 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; ffc16348: 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; ffc1634c: 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) ffc16350: 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; ffc16354: 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; ffc16358: 80 ff 00 58 lwz r7,88(r31) <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; ffc1635c: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc16360: 91 3f 00 50 stw r9,80(r31) <== NOT EXECUTED ffc16364: 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; ffc16368: 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; ffc1636c: 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; ffc16370: 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) ffc16374: 41 be 00 20 beq+ cr7,ffc16394 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) ffc16378: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1637c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc16380: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc16384: 4b ff fc 3d bl ffc15fc0 <== 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) ffc16388: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED ffc1638c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc16390: 41 9e 00 34 beq- cr7,ffc163c4 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) ffc16394: 80 1e 00 18 lwz r0,24(r30) ffc16398: 70 09 02 00 andi. r9,r0,512 ffc1639c: 41 82 00 14 beq- ffc163b0 iop->offset = the_jnode->info.file.size; ffc163a0: 81 3f 00 50 lwz r9,80(r31) ffc163a4: 81 5f 00 54 lwz r10,84(r31) ffc163a8: 91 3e 00 10 stw r9,16(r30) ffc163ac: 91 5e 00 14 stw r10,20(r30) iop->size = the_jnode->info.file.size; ffc163b0: 81 3f 00 50 lwz r9,80(r31) ffc163b4: 38 60 00 00 li r3,0 ffc163b8: 81 5f 00 54 lwz r10,84(r31) ffc163bc: 91 3e 00 08 stw r9,8(r30) ffc163c0: 91 5e 00 0c stw r10,12(r30) return 0; } ffc163c4: 80 01 00 14 lwz r0,20(r1) ffc163c8: 83 c1 00 08 lwz r30,8(r1) ffc163cc: 7c 08 03 a6 mtlr r0 ffc163d0: 83 e1 00 0c lwz r31,12(r1) ffc163d4: 38 21 00 10 addi r1,r1,16 ffc163d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16724 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc16724: 7c a8 2b 78 mr r8,r5 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return IMFS_memfile_read( the_jnode, iop->offset, buffer, count ); ffc16728: 80 c3 00 14 lwz r6,20(r3) ffc1672c: 80 a3 00 10 lwz r5,16(r3) ffc16730: 7c 87 23 78 mr r7,r4 ffc16734: 80 63 00 3c lwz r3,60(r3) ffc16738: 4b ff fc a4 b ffc163dc <== ALWAYS TAKEN ffc15b58 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc15b58: 94 21 ff e0 stwu r1,-32(r1) ffc15b5c: 7c 08 02 a6 mflr r0 ffc15b60: 90 01 00 24 stw r0,36(r1) ffc15b64: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc15b68: 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 ) { ffc15b6c: 80 1f 00 08 lwz r0,8(r31) ffc15b70: 2f 80 00 00 cmpwi cr7,r0,0 ffc15b74: 41 9e 00 14 beq- cr7,ffc15b88 <== NEVER TAKEN ffc15b78: 7f e3 fb 78 mr r3,r31 ffc15b7c: 4b ff 4b 7d bl ffc0a6f8 <_Chain_Extract> <== ALWAYS TAKEN rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc15b80: 38 00 00 00 li r0,0 ffc15b84: 90 1f 00 08 stw r0,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc15b88: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc15b8c: 38 61 00 08 addi r3,r1,8 ffc15b90: 38 80 00 00 li r4,0 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc15b94: 38 09 ff ff addi r0,r9,-1 ffc15b98: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc15b9c: 4b fe fd 55 bl ffc058f0 <== ALWAYS TAKEN ffc15ba0: 80 01 00 08 lwz r0,8(r1) return memfile_check_rmnod( the_jnode ); ffc15ba4: 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 ); ffc15ba8: 90 1f 00 48 stw r0,72(r31) return memfile_check_rmnod( the_jnode ); ffc15bac: 4b ff ff 35 bl ffc15ae0 <== ALWAYS TAKEN } ffc15bb0: 80 01 00 24 lwz r0,36(r1) ffc15bb4: 83 e1 00 1c lwz r31,28(r1) ffc15bb8: 38 21 00 20 addi r1,r1,32 ffc15bbc: 7c 08 03 a6 mtlr r0 ffc15bc0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc162b0 : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc162b0: 94 21 ff f0 stwu r1,-16(r1) ffc162b4: 7c 08 02 a6 mflr r0 ffc162b8: 7c a8 2b 78 mr r8,r5 ffc162bc: 90 01 00 14 stw r0,20(r1) IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); ffc162c0: 7c 87 23 78 mr r7,r4 ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc162c4: 93 c1 00 08 stw r30,8(r1) IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; ffc162c8: 83 c3 00 3c lwz r30,60(r3) status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); ffc162cc: 80 a3 00 10 lwz r5,16(r3) ffc162d0: 80 c3 00 14 lwz r6,20(r3) ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc162d4: 93 e1 00 0c stw r31,12(r1) ffc162d8: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); ffc162dc: 7f c3 f3 78 mr r3,r30 ffc162e0: 4b ff fc e1 bl ffc15fc0 <== ALWAYS TAKEN iop->size = the_jnode->info.file.size; return status; } ffc162e4: 80 01 00 14 lwz r0,20(r1) ssize_t status; the_jnode = iop->file_info; status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); iop->size = the_jnode->info.file.size; ffc162e8: 81 3e 00 50 lwz r9,80(r30) return status; } ffc162ec: 7c 08 03 a6 mtlr r0 ssize_t status; the_jnode = iop->file_info; status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); iop->size = the_jnode->info.file.size; ffc162f0: 81 5e 00 54 lwz r10,84(r30) ffc162f4: 91 3f 00 08 stw r9,8(r31) ffc162f8: 91 5f 00 0c stw r10,12(r31) return status; } ffc162fc: 83 c1 00 08 lwz r30,8(r1) ffc16300: 83 e1 00 0c lwz r31,12(r1) ffc16304: 38 21 00 10 addi r1,r1,16 ffc16308: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bcc4 : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( ffc0bcc4: 3c a0 ff c2 lis r5,-62 */ int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc0bcc8: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc0bccc: 7c 08 02 a6 mflr r0 return IMFS_initialize_support( ffc0bcd0: 38 a5 e0 fc addi r5,r5,-7940 ffc0bcd4: 3c 80 ff c2 lis r4,-62 <== ALWAYS TAKEN ffc0bcd8: 38 84 df 60 addi r4,r4,-8352 */ int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc0bcdc: 90 01 00 0c stw r0,12(r1) return IMFS_initialize_support( ffc0bce0: 7c a6 2b 78 mr r6,r5 ffc0bce4: 48 00 0e 21 bl ffc0cb04 <== ALWAYS TAKEN temp_mt_entry, &miniIMFS_ops, &rtems_filesystem_null_handlers, /* for memfiles */ &rtems_filesystem_null_handlers /* for directories */ ); } ffc0bce8: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0bcec: 38 21 00 08 addi r1,r1,8 ffc0bcf0: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0bcf4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc044e4 : int mkdir( const char *pathname, mode_t mode ) { ffc044e4: 94 21 ff f8 stwu r1,-8(r1) ffc044e8: 7c 08 02 a6 mflr r0 return mknod( pathname, mode | S_IFDIR, 0LL); ffc044ec: 60 84 40 00 ori r4,r4,16384 ffc044f0: 38 a0 00 00 li r5,0 int mkdir( const char *pathname, mode_t mode ) { ffc044f4: 90 01 00 0c stw r0,12(r1) return mknod( pathname, mode | S_IFDIR, 0LL); ffc044f8: 38 c0 00 00 li r6,0 ffc044fc: 48 00 00 15 bl ffc04510 <== ALWAYS TAKEN } ffc04500: 80 01 00 0c lwz r0,12(r1) ffc04504: 38 21 00 08 addi r1,r1,8 ffc04508: 7c 08 03 a6 mtlr r0 ffc0450c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1129c : int mkfifo( const char *path, mode_t mode ) { ffc1129c: 94 21 ff f8 stwu r1,-8(r1) ffc112a0: 7c 08 02 a6 mflr r0 return mknod( path, mode | S_IFIFO, 0LL ); ffc112a4: 60 84 10 00 ori r4,r4,4096 ffc112a8: 38 a0 00 00 li r5,0 int mkfifo( const char *path, mode_t mode ) { ffc112ac: 90 01 00 0c stw r0,12(r1) return mknod( path, mode | S_IFIFO, 0LL ); ffc112b0: 38 c0 00 00 li r6,0 ffc112b4: 4b ff 32 5d bl ffc04510 <== ALWAYS TAKEN } ffc112b8: 80 01 00 0c lwz r0,12(r1) ffc112bc: 38 21 00 08 addi r1,r1,8 ffc112c0: 7c 08 03 a6 mtlr r0 ffc112c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04510 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { ffc04510: 94 21 ff c0 stwu r1,-64(r1) ffc04514: 7c 08 02 a6 mflr r0 ffc04518: 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) ) ) ffc0451c: 70 80 f0 00 andi. r0,r4,61440 int mknod( const char *pathname, mode_t mode, dev_t dev ) { ffc04520: 93 61 00 2c stw r27,44(r1) ffc04524: 7c bb 2b 78 mr r27,r5 ffc04528: 93 81 00 30 stw r28,48(r1) ffc0452c: 7c dc 33 78 mr r28,r6 ffc04530: 93 c1 00 38 stw r30,56(r1) ffc04534: 7c 9e 23 78 mr r30,r4 ffc04538: 93 a1 00 34 stw r29,52(r1) ffc0453c: 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) ) ) ffc04540: 40 a2 00 10 bne+ ffc04550 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc04544: 48 00 d6 c9 bl ffc11c0c <__errno> <== NOT EXECUTED ffc04548: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0454c: 48 00 00 a0 b ffc045ec <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); ffc04550: 88 03 00 00 lbz r0,0(r3) ffc04554: 2f 80 00 2f cmpwi cr7,r0,47 ffc04558: 41 9e 00 14 beq- cr7,ffc0456c ffc0455c: 2f 80 00 5c cmpwi cr7,r0,92 ffc04560: 41 9e 00 0c beq- cr7,ffc0456c <== NEVER TAKEN ffc04564: 2f 80 00 00 cmpwi cr7,r0,0 ffc04568: 40 9e 00 38 bne- cr7,ffc045a0 <== ALWAYS TAKEN ffc0456c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc04570: 81 29 26 dc lwz r9,9948(r9) <== ALWAYS TAKEN ffc04574: 39 60 00 01 li r11,1 ffc04578: 80 09 00 24 lwz r0,36(r9) ffc0457c: 80 e9 00 18 lwz r7,24(r9) ffc04580: 81 09 00 1c lwz r8,28(r9) ffc04584: 81 49 00 20 lwz r10,32(r9) ffc04588: 90 e1 00 0c stw r7,12(r1) ffc0458c: 91 01 00 10 stw r8,16(r1) ffc04590: 91 41 00 14 stw r10,20(r1) ffc04594: 90 01 00 18 stw r0,24(r1) ffc04598: 80 09 00 28 lwz r0,40(r9) ffc0459c: 48 00 00 34 b ffc045d0 <== ALWAYS TAKEN ffc045a0: 3d 20 00 00 lis r9,0 ffc045a4: 81 29 26 dc lwz r9,9948(r9) ffc045a8: 39 60 00 00 li r11,0 ffc045ac: 80 09 00 10 lwz r0,16(r9) ffc045b0: 80 e9 00 04 lwz r7,4(r9) ffc045b4: 81 09 00 08 lwz r8,8(r9) ffc045b8: 81 49 00 0c lwz r10,12(r9) ffc045bc: 90 e1 00 0c stw r7,12(r1) ffc045c0: 91 01 00 10 stw r8,16(r1) ffc045c4: 91 41 00 14 stw r10,20(r1) ffc045c8: 90 01 00 18 stw r0,24(r1) ffc045cc: 80 09 00 14 lwz r0,20(r9) if ( !temp_loc.ops->evalformake_h ) { ffc045d0: 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 ); ffc045d4: 90 01 00 1c stw r0,28(r1) <== ALWAYS TAKEN if ( !temp_loc.ops->evalformake_h ) { ffc045d8: 80 09 00 04 lwz r0,4(r9) <== ALWAYS TAKEN ffc045dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc045e0: 40 be 00 18 bne+ cr7,ffc045f8 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc045e4: 48 00 d6 29 bl ffc11c0c <__errno> <== NOT EXECUTED ffc045e8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc045ec: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc045f0: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc045f4: 48 00 00 98 b ffc0468c <== NOT EXECUTED } result = (*temp_loc.ops->evalformake_h)( ffc045f8: 3b e1 00 0c addi r31,r1,12 ffc045fc: 7c 09 03 a6 mtctr r0 ffc04600: 7c 63 5a 14 add r3,r3,r11 ffc04604: 7f e4 fb 78 mr r4,r31 ffc04608: 38 a1 00 08 addi r5,r1,8 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) ffc0460c: 3b a0 ff ff li r29,-1 <== ALWAYS TAKEN if ( !temp_loc.ops->evalformake_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( ffc04610: 4e 80 04 21 bctrl <== ALWAYS TAKEN &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) ffc04614: 2f 83 00 00 cmpwi cr7,r3,0 ffc04618: 40 9e 00 74 bne- cr7,ffc0468c return -1; if ( !temp_loc.ops->mknod_h ) { ffc0461c: 81 21 00 18 lwz r9,24(r1) ffc04620: 80 09 00 14 lwz r0,20(r9) ffc04624: 2f 80 00 00 cmpwi cr7,r0,0 ffc04628: 40 be 00 20 bne+ cr7,ffc04648 <== ALWAYS TAKEN rtems_filesystem_freenode( &temp_loc ); ffc0462c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc04630: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04634: 41 be ff b0 beq- cr7,ffc045e4 <== NOT EXECUTED ffc04638: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0463c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04640: 4e 80 04 21 bctrl <== NOT EXECUTED ffc04644: 4b ff ff a0 b ffc045e4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); ffc04648: 7f c4 f3 78 mr r4,r30 ffc0464c: 80 61 00 08 lwz r3,8(r1) ffc04650: 7f 65 db 78 mr r5,r27 ffc04654: 7c 09 03 a6 mtctr r0 ffc04658: 7f 86 e3 78 mr r6,r28 <== ALWAYS TAKEN ffc0465c: 7f e7 fb 78 mr r7,r31 ffc04660: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &temp_loc ); ffc04664: 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 ); ffc04668: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &temp_loc ); ffc0466c: 2f 89 00 00 cmpwi cr7,r9,0 ffc04670: 41 9e 00 1c beq- cr7,ffc0468c <== NEVER TAKEN ffc04674: 80 09 00 1c lwz r0,28(r9) ffc04678: 2f 80 00 00 cmpwi cr7,r0,0 ffc0467c: 41 9e 00 10 beq- cr7,ffc0468c ffc04680: 7f e3 fb 78 mr r3,r31 ffc04684: 7c 09 03 a6 mtctr r0 ffc04688: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc0468c: 80 01 00 44 lwz r0,68(r1) ffc04690: 7f a3 eb 78 mr r3,r29 ffc04694: 83 61 00 2c lwz r27,44(r1) ffc04698: 7c 08 03 a6 mtlr r0 ffc0469c: 83 81 00 30 lwz r28,48(r1) ffc046a0: 83 a1 00 34 lwz r29,52(r1) <== ALWAYS TAKEN ffc046a4: 83 c1 00 38 lwz r30,56(r1) ffc046a8: 83 e1 00 3c lwz r31,60(r1) ffc046ac: 38 21 00 40 addi r1,r1,64 ffc046b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc046d8 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { ffc046d8: 94 21 ff b8 stwu r1,-72(r1) ffc046dc: 7c 08 02 a6 mflr r0 ffc046e0: 93 61 00 34 stw r27,52(r1) /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { ffc046e4: 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 ) { ffc046e8: 93 21 00 2c stw r25,44(r1) ffc046ec: 7c d9 33 78 mr r25,r6 ffc046f0: 93 41 00 30 stw r26,48(r1) ffc046f4: 7c fa 3b 78 mr r26,r7 <== ALWAYS TAKEN ffc046f8: 93 81 00 38 stw r28,56(r1) ffc046fc: 7c 7c 1b 78 mr r28,r3 ffc04700: 93 c1 00 40 stw r30,64(r1) ffc04704: 7c be 2b 78 mr r30,r5 ffc04708: 90 01 00 4c stw r0,76(r1) ffc0470c: 93 a1 00 3c stw r29,60(r1) ffc04710: 93 e1 00 44 stw r31,68(r1) /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { ffc04714: 41 82 00 0c beq- ffc04720 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && ffc04718: 2b 85 00 01 cmplwi cr7,r5,1 <== ALWAYS TAKEN ffc0471c: 40 bd 00 10 ble+ cr7,ffc0472c options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; ffc04720: 48 00 d4 ed bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc04724: 38 00 00 16 li r0,22 ffc04728: 48 00 00 5c b ffc04784 <== ALWAYS TAKEN return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { ffc0472c: 80 1b 00 24 lwz r0,36(r27) ffc04730: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc04734: 40 be 00 1c bne+ cr7,ffc04750 <== ALWAYS TAKEN errno = ENOTSUP; ffc04738: 48 00 d4 d5 bl ffc11c0c <__errno> <== NOT EXECUTED ffc0473c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc04740: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04744: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc04748: 3b a0 00 00 li r29,0 <== NOT EXECUTED goto cleanup_and_bail; ffc0474c: 48 00 01 d0 b ffc0491c <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) ffc04750: 2f 86 00 00 cmpwi cr7,r6,0 <== ALWAYS TAKEN ffc04754: 38 60 00 6c li r3,108 ffc04758: 41 9e 00 10 beq- cr7,ffc04768 <== ALWAYS TAKEN size += strlen( device ) + 1; ffc0475c: 7c c3 33 78 mr r3,r6 <== NOT EXECUTED ffc04760: 48 00 e7 a9 bl ffc12f08 <== NOT EXECUTED ffc04764: 38 63 00 6d addi r3,r3,109 <== NOT EXECUTED temp_mt_entry = malloc( size ); ffc04768: 4b ff fc 55 bl ffc043bc <== ALWAYS TAKEN if ( !temp_mt_entry ) { ffc0476c: 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 ); ffc04770: 7c 7f 1b 78 mr r31,r3 ffc04774: 7c 7d 1b 78 mr r29,r3 if ( !temp_mt_entry ) { ffc04778: 40 be 00 14 bne+ cr7,ffc0478c <== ALWAYS TAKEN errno = ENOMEM; ffc0477c: 48 00 d4 91 bl ffc11c0c <__errno> <== NOT EXECUTED ffc04780: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc04784: 90 03 00 00 stw r0,0(r3) ffc04788: 48 00 01 c8 b ffc04950 <== ALWAYS TAKEN return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { ffc0478c: 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; ffc04790: 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; ffc04794: 90 7f 00 2c stw r3,44(r31) temp_mt_entry->options = options; if ( device ) { ffc04798: 41 9e 00 1c beq- cr7,ffc047b4 <== ALWAYS TAKEN temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); ffc0479c: 38 03 00 6c addi r0,r3,108 <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); ffc047a0: 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 = ffc047a4: 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 ); ffc047a8: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc047ac: 48 00 e6 e5 bl ffc12e90 <== NOT EXECUTED ffc047b0: 48 00 00 08 b ffc047b8 <== NOT EXECUTED } else temp_mt_entry->dev = 0; ffc047b4: 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 ) { ffc047b8: 2f 9a 00 00 cmpwi cr7,r26,0 <== ALWAYS TAKEN ffc047bc: 41 9e 00 e0 beq- cr7,ffc0489c if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) ffc047c0: 7f 43 d3 78 mr r3,r26 ffc047c4: 48 00 e7 45 bl ffc12f08 <== ALWAYS TAKEN * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( ffc047c8: 3b c1 00 08 addi r30,r1,8 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) ffc047cc: 7c 64 1b 78 mr r4,r3 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( ffc047d0: 38 a0 00 07 li r5,7 ffc047d4: 7f 43 d3 78 mr r3,r26 ffc047d8: 7f c6 f3 78 mr r6,r30 ffc047dc: 38 e0 00 01 li r7,1 ffc047e0: 4b ff f7 95 bl ffc03f74 <== ALWAYS TAKEN ffc047e4: 2f 83 ff ff cmpwi cr7,r3,-1 ffc047e8: 41 9e 01 30 beq- cr7,ffc04918 <== NEVER TAKEN /* * Test for node_type_h */ if (!loc.ops->node_type_h) { ffc047ec: 81 21 00 14 lwz r9,20(r1) ffc047f0: 80 09 00 10 lwz r0,16(r9) ffc047f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc047f8: 40 be 00 10 bne+ cr7,ffc04808 <== ALWAYS TAKEN errno = ENOTSUP; ffc047fc: 48 00 d4 11 bl ffc11c0c <__errno> <== NOT EXECUTED ffc04800: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc04804: 48 00 00 20 b ffc04824 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { ffc04808: 7f c3 f3 78 mr r3,r30 ffc0480c: 7c 09 03 a6 mtctr r0 ffc04810: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04814: 2f 83 00 01 cmpwi cr7,r3,1 ffc04818: 41 be 00 14 beq+ cr7,ffc0482c errno = ENOTDIR; ffc0481c: 48 00 d3 f1 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc04820: 38 00 00 14 li r0,20 ffc04824: 90 03 00 00 stw r0,0(r3) goto cleanup_and_bail; ffc04828: 48 00 00 f4 b ffc0491c <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0482c: 3d 60 00 00 lis r11,0 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc04830: 3d 20 00 00 lis r9,0 ffc04834: 38 0b 2b 34 addi r0,r11,11060 ffc04838: 81 29 2b 30 lwz r9,11056(r9) !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node; if ( the_mount_entry->mt_fs_root.node_access == loc->node_access ) ffc0483c: 81 61 00 08 lwz r11,8(r1) ffc04840: 48 00 00 14 b ffc04854 <== ALWAYS TAKEN ffc04844: 81 49 00 1c lwz r10,28(r9) ffc04848: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0484c: 41 9e 00 14 beq- cr7,ffc04860 * 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 ) { ffc04850: 81 29 00 00 lwz r9,0(r9) ffc04854: 7f 89 00 00 cmpw cr7,r9,r0 ffc04858: 40 9e ff ec bne+ cr7,ffc04844 ffc0485c: 48 00 01 24 b ffc04980 <== ALWAYS TAKEN /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; ffc04860: 48 00 d3 ad bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc04864: 38 00 00 10 li r0,16 ffc04868: 48 00 00 0c b ffc04874 <== ALWAYS TAKEN * 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; ffc0486c: 48 00 d3 a1 bl ffc11c0c <__errno> <== NOT EXECUTED ffc04870: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc04874: 90 03 00 00 stw r0,0(r3) ffc04878: 3b c1 00 08 addi r30,r1,8 goto cleanup_and_bail; ffc0487c: 48 00 00 a0 b ffc0491c <== ALWAYS TAKEN } if ( loc.ops->mount_h( temp_mt_entry ) ) { ffc04880: 7f e3 fb 78 mr r3,r31 ffc04884: 7c 09 03 a6 mtctr r0 ffc04888: 3b c1 00 08 addi r30,r1,8 ffc0488c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04890: 2f 83 00 00 cmpwi cr7,r3,0 ffc04894: 41 be 00 28 beq+ cr7,ffc048bc <== ALWAYS TAKEN ffc04898: 48 00 00 84 b ffc0491c <== 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; ffc0489c: 93 5f 00 18 stw r26,24(r31) ffc048a0: 3b c0 00 00 li r30,0 <== ALWAYS TAKEN * 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; ffc048a4: 93 5f 00 1c stw r26,28(r31) temp_mt_entry->mt_fs_root.handlers = NULL; ffc048a8: 93 5f 00 24 stw r26,36(r31) <== ALWAYS TAKEN temp_mt_entry->mt_fs_root.ops = NULL; ffc048ac: 93 5f 00 28 stw r26,40(r31) temp_mt_entry->mt_point_node.node_access = NULL; ffc048b0: 93 5f 00 08 stw r26,8(r31) <== ALWAYS TAKEN temp_mt_entry->mt_point_node.handlers = NULL; ffc048b4: 93 5f 00 10 stw r26,16(r31) temp_mt_entry->mt_point_node.ops = NULL; ffc048b8: 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 ) ) { ffc048bc: 80 1b 00 24 lwz r0,36(r27) ffc048c0: 7f e3 fb 78 mr r3,r31 ffc048c4: 7c 09 03 a6 mtctr r0 <== ALWAYS TAKEN ffc048c8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc048cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc048d0: 41 be 00 24 beq+ cr7,ffc048f4 <== ALWAYS TAKEN /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { ffc048d4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc048d8: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc048dc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc048e0: 41 9e 00 3c beq- cr7,ffc0491c <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); ffc048e4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc048e8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc048ec: 4e 80 04 21 bctrl <== NOT EXECUTED ffc048f0: 48 00 00 2c b ffc0491c <== 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 ); ffc048f4: 3c 60 00 00 lis r3,0 ffc048f8: 38 63 2b 30 addi r3,r3,11056 <== ALWAYS TAKEN ffc048fc: 7f e4 fb 78 mr r4,r31 <== ALWAYS TAKEN ffc04900: 48 00 3f 89 bl ffc08888 <_Chain_Append> <== ALWAYS TAKEN */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) ffc04904: 2f 9c 00 00 cmpwi cr7,r28,0 <== ALWAYS TAKEN ffc04908: 38 60 00 00 li r3,0 <== ALWAYS TAKEN ffc0490c: 41 9e 00 48 beq- cr7,ffc04954 <== NEVER TAKEN *mt_entry = temp_mt_entry; ffc04910: 93 fc 00 00 stw r31,0(r28) ffc04914: 48 00 00 40 b ffc04954 <== ALWAYS TAKEN ffc04918: 3b c0 00 00 li r30,0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); ffc0491c: 7f a3 eb 78 mr r3,r29 ffc04920: 4b ff f7 39 bl ffc04058 <== ALWAYS TAKEN if ( loc_to_free ) ffc04924: 2f 9e 00 00 cmpwi cr7,r30,0 ffc04928: 41 be 00 28 beq+ cr7,ffc04950 <== NEVER TAKEN rtems_filesystem_freenode( loc_to_free ); ffc0492c: 81 3e 00 0c lwz r9,12(r30) ffc04930: 2f 89 00 00 cmpwi cr7,r9,0 ffc04934: 41 be 00 1c beq+ cr7,ffc04950 <== NEVER TAKEN ffc04938: 80 09 00 1c lwz r0,28(r9) ffc0493c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04940: 41 be 00 10 beq+ cr7,ffc04950 <== NEVER TAKEN ffc04944: 7f c3 f3 78 mr r3,r30 ffc04948: 7c 09 03 a6 mtctr r0 ffc0494c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04950: 38 60 ff ff li r3,-1 return -1; } ffc04954: 80 01 00 4c lwz r0,76(r1) ffc04958: 83 21 00 2c lwz r25,44(r1) ffc0495c: 7c 08 03 a6 mtlr r0 ffc04960: 83 41 00 30 lwz r26,48(r1) ffc04964: 83 61 00 34 lwz r27,52(r1) ffc04968: 83 81 00 38 lwz r28,56(r1) ffc0496c: 83 a1 00 3c lwz r29,60(r1) <== ALWAYS TAKEN ffc04970: 83 c1 00 40 lwz r30,64(r1) ffc04974: 83 e1 00 44 lwz r31,68(r1) ffc04978: 38 21 00 48 addi r1,r1,72 ffc0497c: 4e 80 00 20 blr <== ALWAYS TAKEN * 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; ffc04980: 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; ffc04984: 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 ){ ffc04988: 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; ffc0498c: 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 ){ ffc04990: 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; ffc04994: 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; ffc04998: 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; ffc0499c: 81 61 00 18 lwz r11,24(r1) ffc049a0: 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 ){ ffc049a4: 40 9e fe dc bne+ cr7,ffc04880 <== ALWAYS TAKEN ffc049a8: 4b ff fe c4 b ffc0486c <== NOT EXECUTED ffc07cb4 : const void *addr __attribute__((unused)), size_t len __attribute__((unused)), int prot __attribute__((unused)) ) { return 0; } ffc07cb4: 38 60 00 00 li r3,0 ffc07cb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cf6c : */ int mq_close( mqd_t mqdes ) { ffc0cf6c: 94 21 ff e0 stwu r1,-32(r1) ffc0cf70: 7c 08 02 a6 mflr r0 ffc0cf74: 7c 64 1b 78 mr r4,r3 ffc0cf78: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd ( mqd_t id, Objects_Locations *location ) { return (POSIX_Message_queue_Control_fd *) _Objects_Get( ffc0cf7c: 3f e0 00 00 lis r31,0 ffc0cf80: 3b ff 36 44 addi r31,r31,13892 ffc0cf84: 7f e3 fb 78 mr r3,r31 ffc0cf88: 90 01 00 24 stw r0,36(r1) ffc0cf8c: 38 a1 00 08 addi r5,r1,8 ffc0cf90: 93 c1 00 18 stw r30,24(r1) ffc0cf94: 48 00 3f 6d bl ffc10f00 <_Objects_Get> <== ALWAYS TAKEN ffc0cf98: 7c 7e 1b 78 mr r30,r3 POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); if ( location == OBJECTS_LOCAL ) { ffc0cf9c: 80 01 00 08 lwz r0,8(r1) ffc0cfa0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cfa4: 40 9e 00 40 bne- cr7,ffc0cfe4 * First update the actual message queue to reflect this descriptor * being disassociated. This may result in the queue being really * deleted. */ the_mq = the_mq_fd->Queue; ffc0cfa8: 81 23 00 10 lwz r9,16(r3) the_mq->open_count -= 1; ffc0cfac: 81 69 00 18 lwz r11,24(r9) _POSIX_Message_queue_Delete( the_mq ); ffc0cfb0: 7d 23 4b 78 mr r3,r9 * being disassociated. This may result in the queue being really * deleted. */ the_mq = the_mq_fd->Queue; the_mq->open_count -= 1; ffc0cfb4: 38 0b ff ff addi r0,r11,-1 ffc0cfb8: 90 09 00 18 stw r0,24(r9) _POSIX_Message_queue_Delete( the_mq ); ffc0cfbc: 48 00 00 51 bl ffc0d00c <_POSIX_Message_queue_Delete> <== ALWAYS TAKEN /* * Now close this file descriptor. */ _Objects_Close( ffc0cfc0: 7f e3 fb 78 mr r3,r31 ffc0cfc4: 7f c4 f3 78 mr r4,r30 ffc0cfc8: 48 00 3a 39 bl ffc10a00 <_Objects_Close> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd ( POSIX_Message_queue_Control_fd *the_mq_fd ) { _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object ); ffc0cfcc: 7f e3 fb 78 mr r3,r31 ffc0cfd0: 7f c4 f3 78 mr r4,r30 ffc0cfd4: 48 00 3d 6d bl ffc10d40 <_Objects_Free> <== ALWAYS TAKEN &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object ); _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); ffc0cfd8: 48 00 4a a5 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0cfdc: 38 60 00 00 li r3,0 return 0; ffc0cfe0: 48 00 00 14 b ffc0cff4 <== ALWAYS TAKEN /* * OBJECTS_REMOTE: * OBJECTS_ERROR: */ rtems_set_errno_and_return_minus_one( EBADF ); ffc0cfe4: 48 00 c6 0d bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0cfe8: 38 00 00 09 li r0,9 ffc0cfec: 90 03 00 00 stw r0,0(r3) ffc0cff0: 38 60 ff ff li r3,-1 } ffc0cff4: 80 01 00 24 lwz r0,36(r1) ffc0cff8: 83 c1 00 18 lwz r30,24(r1) ffc0cffc: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0d000: 83 e1 00 1c lwz r31,28(r1) ffc0d004: 38 21 00 20 addi r1,r1,32 ffc0d008: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d084 : int mq_getattr( mqd_t mqdes, struct mq_attr *mqstat ) { ffc0d084: 94 21 ff e0 stwu r1,-32(r1) ffc0d088: 7c 08 02 a6 mflr r0 ffc0d08c: 93 e1 00 1c stw r31,28(r1) POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; CORE_message_queue_Attributes *the_mq_attr; if ( !mqstat ) ffc0d090: 7c 9f 23 79 mr. r31,r4 int mq_getattr( mqd_t mqdes, struct mq_attr *mqstat ) { ffc0d094: 7c 64 1b 78 mr r4,r3 ffc0d098: 90 01 00 24 stw r0,36(r1) POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; CORE_message_queue_Attributes *the_mq_attr; if ( !mqstat ) ffc0d09c: 40 a2 00 10 bne+ ffc0d0ac rtems_set_errno_and_return_minus_one( EINVAL ); ffc0d0a0: 48 00 c5 51 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d0a4: 38 00 00 16 li r0,22 ffc0d0a8: 48 00 00 58 b ffc0d100 <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd ( mqd_t id, Objects_Locations *location ) { return (POSIX_Message_queue_Control_fd *) _Objects_Get( ffc0d0ac: 3c 60 00 00 lis r3,0 ffc0d0b0: 38 63 36 44 addi r3,r3,13892 ffc0d0b4: 38 a1 00 08 addi r5,r1,8 ffc0d0b8: 48 00 3e 49 bl ffc10f00 <_Objects_Get> <== ALWAYS TAKEN the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { ffc0d0bc: 80 01 00 08 lwz r0,8(r1) ffc0d0c0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d0c4: 40 9e 00 34 bne- cr7,ffc0d0f8 case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; ffc0d0c8: 81 23 00 10 lwz r9,16(r3) * Return the old values. */ the_mq_attr = &the_mq->Message_queue.Attributes; mqstat->mq_flags = the_mq_fd->oflag; ffc0d0cc: 81 63 00 14 lwz r11,20(r3) mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size; ffc0d0d0: 80 09 00 68 lwz r0,104(r9) * Return the old values. */ the_mq_attr = &the_mq->Message_queue.Attributes; mqstat->mq_flags = the_mq_fd->oflag; ffc0d0d4: 91 7f 00 00 stw r11,0(r31) mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size; ffc0d0d8: 90 1f 00 08 stw r0,8(r31) mqstat->mq_maxmsg = the_mq->Message_queue.maximum_pending_messages; ffc0d0dc: 80 09 00 60 lwz r0,96(r9) ffc0d0e0: 90 1f 00 04 stw r0,4(r31) mqstat->mq_curmsgs = the_mq->Message_queue.number_of_pending_messages; ffc0d0e4: 80 09 00 64 lwz r0,100(r9) ffc0d0e8: 90 1f 00 0c stw r0,12(r31) _Thread_Enable_dispatch(); ffc0d0ec: 48 00 49 91 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d0f0: 38 60 00 00 li r3,0 return 0; ffc0d0f4: 48 00 00 14 b ffc0d108 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0d0f8: 48 00 c4 f9 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d0fc: 38 00 00 09 li r0,9 ffc0d100: 90 03 00 00 stw r0,0(r3) ffc0d104: 38 60 ff ff li r3,-1 } ffc0d108: 80 01 00 24 lwz r0,36(r1) ffc0d10c: 83 e1 00 1c lwz r31,28(r1) ffc0d110: 38 21 00 20 addi r1,r1,32 ffc0d114: 7c 08 03 a6 mtlr r0 ffc0d118: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d11c : int mq_notify( mqd_t mqdes, const struct sigevent *notification ) { ffc0d11c: 94 21 ff e0 stwu r1,-32(r1) ffc0d120: 7c 08 02 a6 mflr r0 ffc0d124: 90 01 00 24 stw r0,36(r1) ffc0d128: 7c 60 1b 78 mr r0,r3 ffc0d12c: 3c 60 00 00 lis r3,0 ffc0d130: 93 e1 00 1c stw r31,28(r1) ffc0d134: 38 63 36 44 addi r3,r3,13892 ffc0d138: 7c 9f 23 78 mr r31,r4 ffc0d13c: 38 a1 00 08 addi r5,r1,8 ffc0d140: 7c 04 03 78 mr r4,r0 ffc0d144: 48 00 3d bd bl ffc10f00 <_Objects_Get> <== ALWAYS TAKEN POSIX_Message_queue_Control *the_mq; POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { ffc0d148: 80 01 00 08 lwz r0,8(r1) ffc0d14c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d150: 40 9e 00 80 bne- cr7,ffc0d1d0 case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; if ( notification ) { ffc0d154: 2f 9f 00 00 cmpwi cr7,r31,0 the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; ffc0d158: 81 23 00 10 lwz r9,16(r3) if ( notification ) { ffc0d15c: 41 9e 00 60 beq- cr7,ffc0d1bc if ( _CORE_message_queue_Is_notify_enabled( &the_mq->Message_queue ) ) { ffc0d160: 80 09 00 7c lwz r0,124(r9) ffc0d164: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d168: 41 be 00 14 beq+ cr7,ffc0d17c _Thread_Enable_dispatch(); ffc0d16c: 48 00 49 11 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBUSY ); ffc0d170: 48 00 c4 81 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d174: 38 00 00 10 li r0,16 ffc0d178: 48 00 00 60 b ffc0d1d8 <== ALWAYS TAKEN CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; the_message_queue->notify_argument = the_argument; ffc0d17c: 90 09 00 80 stw r0,128(r9) } _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); the_mq->notification = *notification; ffc0d180: 81 7f 00 08 lwz r11,8(r31) ffc0d184: 80 1f 00 0c lwz r0,12(r31) ffc0d188: 81 1f 00 00 lwz r8,0(r31) ffc0d18c: 81 5f 00 04 lwz r10,4(r31) ffc0d190: 91 69 00 98 stw r11,152(r9) CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; ffc0d194: 3d 60 ff c1 lis r11,-63 ffc0d198: 39 6b d1 f4 addi r11,r11,-11788 ffc0d19c: 91 09 00 90 stw r8,144(r9) ffc0d1a0: 91 49 00 94 stw r10,148(r9) ffc0d1a4: 90 09 00 9c stw r0,156(r9) ffc0d1a8: 80 1f 00 10 lwz r0,16(r31) ffc0d1ac: 91 69 00 7c stw r11,124(r9) ffc0d1b0: 90 09 00 a0 stw r0,160(r9) the_message_queue->notify_argument = the_argument; ffc0d1b4: 91 29 00 80 stw r9,128(r9) ffc0d1b8: 48 00 00 0c b ffc0d1c4 <== ALWAYS TAKEN ffc0d1bc: 93 e9 00 80 stw r31,128(r9) CORE_message_queue_Control *the_message_queue, CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; ffc0d1c0: 93 e9 00 7c stw r31,124(r9) _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); } _Thread_Enable_dispatch(); ffc0d1c4: 48 00 48 b9 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d1c8: 38 60 00 00 li r3,0 return 0; ffc0d1cc: 48 00 00 14 b ffc0d1e0 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0d1d0: 48 00 c4 21 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d1d4: 38 00 00 09 li r0,9 ffc0d1d8: 90 03 00 00 stw r0,0(r3) ffc0d1dc: 38 60 ff ff li r3,-1 } ffc0d1e0: 80 01 00 24 lwz r0,36(r1) ffc0d1e4: 83 e1 00 1c lwz r31,28(r1) ffc0d1e8: 38 21 00 20 addi r1,r1,32 ffc0d1ec: 7c 08 03 a6 mtlr r0 ffc0d1f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d234 : rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0d234: 3d 20 00 00 lis r9,0 int oflag, ... /* mode_t mode, */ /* struct mq_attr attr */ ) { ffc0d238: 94 21 ff b0 stwu r1,-80(r1) ffc0d23c: 7c 08 02 a6 mflr r0 ffc0d240: 81 69 29 f8 lwz r11,10744(r9) ffc0d244: 93 61 00 3c stw r27,60(r1) ffc0d248: 7c 9b 23 78 mr r27,r4 ffc0d24c: 39 6b 00 01 addi r11,r11,1 ffc0d250: 93 81 00 40 stw r28,64(r1) ffc0d254: 7c 7c 1b 78 mr r28,r3 ffc0d258: 90 01 00 54 stw r0,84(r1) ffc0d25c: 93 21 00 34 stw r25,52(r1) ffc0d260: 93 41 00 38 stw r26,56(r1) ffc0d264: 93 a1 00 44 stw r29,68(r1) ffc0d268: 93 c1 00 48 stw r30,72(r1) ffc0d26c: 93 e1 00 4c stw r31,76(r1) ffc0d270: 90 a1 00 28 stw r5,40(r1) ffc0d274: 91 69 29 f8 stw r11,10744(r9) ffc0d278: 90 c1 00 2c stw r6,44(r1) POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { ffc0d27c: 70 99 02 00 andi. r25,r4,512 ffc0d280: 40 82 00 0c bne- ffc0d28c ffc0d284: 3b 40 00 00 li r26,0 ffc0d288: 48 00 00 20 b ffc0d2a8 <== ALWAYS TAKEN va_start(arg, oflag); ffc0d28c: 38 01 00 58 addi r0,r1,88 mode = (mode_t) va_arg( arg, unsigned int ); attr = (struct mq_attr *) va_arg( arg, struct mq_attr * ); ffc0d290: 83 41 00 2c lwz r26,44(r1) Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { va_start(arg, oflag); ffc0d294: 90 01 00 18 stw r0,24(r1) ffc0d298: 38 01 00 20 addi r0,r1,32 ffc0d29c: 90 01 00 1c stw r0,28(r1) mode = (mode_t) va_arg( arg, unsigned int ); attr = (struct mq_attr *) va_arg( arg, struct mq_attr * ); ffc0d2a0: 38 00 00 04 li r0,4 ffc0d2a4: 98 01 00 14 stb r0,20(r1) */ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd * _POSIX_Message_queue_Allocate_fd( void ) { return (POSIX_Message_queue_Control_fd *) ffc0d2a8: 3f c0 00 00 lis r30,0 ffc0d2ac: 3b de 36 44 addi r30,r30,13892 ffc0d2b0: 7f c3 f3 78 mr r3,r30 ffc0d2b4: 48 00 36 a1 bl ffc10954 <_Objects_Allocate> <== ALWAYS TAKEN va_end(arg); } the_mq_fd = _POSIX_Message_queue_Allocate_fd(); if ( !the_mq_fd ) { ffc0d2b8: 7c 7f 1b 79 mr. r31,r3 ffc0d2bc: 40 a2 00 14 bne+ ffc0d2d0 _Thread_Enable_dispatch(); ffc0d2c0: 48 00 47 bd bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENFILE ); ffc0d2c4: 48 00 c3 2d bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d2c8: 38 00 00 17 li r0,23 ffc0d2cc: 48 00 00 74 b ffc0d340 <== ALWAYS TAKEN } the_mq_fd->oflag = oflag; ffc0d2d0: 93 7f 00 14 stw r27,20(r31) status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id ); ffc0d2d4: 7f 83 e3 78 mr r3,r28 ffc0d2d8: 38 81 00 08 addi r4,r1,8 ffc0d2dc: 48 00 7e 05 bl ffc150e0 <_POSIX_Message_queue_Name_to_id> <== ALWAYS TAKEN * If the name to id translation worked, then the message queue exists * and we can just return a pointer to the id. Otherwise we may * need to check to see if this is a "message queue does not exist" * or some other miscellaneous error on the name. */ if ( status ) { ffc0d2e0: 7c 7d 1b 79 mr. r29,r3 ffc0d2e4: 41 82 00 38 beq- ffc0d31c /* * Unless provided a valid name that did not already exist * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { ffc0d2e8: 2f 9d 00 02 cmpwi cr7,r29,2 ffc0d2ec: 40 be 00 0c bne+ cr7,ffc0d2f8 ffc0d2f0: 2f 99 00 00 cmpwi cr7,r25,0 ffc0d2f4: 40 9e 00 98 bne- cr7,ffc0d38c RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd ( POSIX_Message_queue_Control_fd *the_mq_fd ) { _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object ); ffc0d2f8: 3c 60 00 00 lis r3,0 ffc0d2fc: 38 63 36 44 addi r3,r3,13892 ffc0d300: 7f e4 fb 78 mr r4,r31 ffc0d304: 48 00 3a 3d bl ffc10d40 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); ffc0d308: 48 00 47 75 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one_cast( status, mqd_t ); ffc0d30c: 48 00 c2 e5 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d310: 93 a3 00 00 stw r29,0(r3) ffc0d314: 38 60 ff ff li r3,-1 ffc0d318: 48 00 00 cc b ffc0d3e4 <== ALWAYS TAKEN } else { /* name -> ID translation succeeded */ /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { ffc0d31c: 73 7b 0a 00 andi. r27,r27,2560 ffc0d320: 2f 9b 0a 00 cmpwi cr7,r27,2560 ffc0d324: 40 be 00 24 bne+ cr7,ffc0d348 ffc0d328: 7f c3 f3 78 mr r3,r30 ffc0d32c: 7f e4 fb 78 mr r4,r31 ffc0d330: 48 00 3a 11 bl ffc10d40 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); ffc0d334: 48 00 47 49 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t ); ffc0d338: 48 00 c2 b9 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d33c: 38 00 00 11 li r0,17 ffc0d340: 90 03 00 00 stw r0,0(r3) ffc0d344: 4b ff ff d0 b ffc0d314 <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (POSIX_Message_queue_Control *) ffc0d348: 80 81 00 08 lwz r4,8(r1) ffc0d34c: 3c 60 00 00 lis r3,0 ffc0d350: 38 a1 00 10 addi r5,r1,16 ffc0d354: 38 63 34 b8 addi r3,r3,13496 ffc0d358: 48 00 3b a9 bl ffc10f00 <_Objects_Get> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0d35c: 81 3e 00 1c lwz r9,28(r30) /* * In this case we need to do an ID->pointer conversion to * check the mode. */ the_mq = _POSIX_Message_queue_Get( the_mq_id, &location ); the_mq->open_count += 1; ffc0d360: 81 63 00 18 lwz r11,24(r3) /* * In this case we need to do an ID->pointer conversion to * check the mode. */ the_mq = _POSIX_Message_queue_Get( the_mq_id, &location ); ffc0d364: 90 61 00 0c stw r3,12(r1) the_mq->open_count += 1; ffc0d368: 38 0b 00 01 addi r0,r11,1 ffc0d36c: 90 03 00 18 stw r0,24(r3) ffc0d370: a0 1f 00 0a lhz r0,10(r31) the_mq_fd->Queue = the_mq; ffc0d374: 90 7f 00 10 stw r3,16(r31) ffc0d378: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0d37c: 7f e9 01 2e stwx r31,r9,r0 the_object ); #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* ASSERT: information->is_string */ the_object->name.name_p = name; ffc0d380: 93 bf 00 0c stw r29,12(r31) _Objects_Open_string( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object, NULL ); _Thread_Enable_dispatch(); ffc0d384: 48 00 46 f9 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d388: 48 00 00 54 b ffc0d3dc <== ALWAYS TAKEN /* * At this point, the message queue does not exist and everything has been * checked. We should go ahead and create a message queue. */ status = _POSIX_Message_queue_Create_support( ffc0d38c: 7f 83 e3 78 mr r3,r28 ffc0d390: 7f 45 d3 78 mr r5,r26 ffc0d394: 38 80 00 01 li r4,1 ffc0d398: 38 c1 00 0c addi r6,r1,12 ffc0d39c: 48 00 7b 79 bl ffc14f14 <_POSIX_Message_queue_Create_support> <== ALWAYS TAKEN ); /* * errno was set by Create_support, so don't set it again. */ if ( status == -1 ) { ffc0d3a0: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0d3a4: 40 be 00 18 bne+ cr7,ffc0d3bc RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd ( POSIX_Message_queue_Control_fd *the_mq_fd ) { _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object ); ffc0d3a8: 7f c3 f3 78 mr r3,r30 ffc0d3ac: 7f e4 fb 78 mr r4,r31 ffc0d3b0: 48 00 39 91 bl ffc10d40 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); ffc0d3b4: 48 00 46 c9 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d3b8: 4b ff ff 5c b ffc0d314 <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0d3bc: a0 1f 00 0a lhz r0,10(r31) ffc0d3c0: 81 3e 00 1c lwz r9,28(r30) ffc0d3c4: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0d3c8: 7f e9 01 2e stwx r31,r9,r0 return (mqd_t) -1; } the_mq_fd->Queue = the_mq; ffc0d3cc: 80 01 00 0c lwz r0,12(r1) ffc0d3d0: 90 1f 00 10 stw r0,16(r31) the_object ); #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) /* ASSERT: information->is_string */ the_object->name.name_p = name; ffc0d3d4: 38 00 00 00 li r0,0 ffc0d3d8: 90 1f 00 0c stw r0,12(r31) &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object, NULL ); _Thread_Enable_dispatch(); ffc0d3dc: 48 00 46 a1 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return (mqd_t) the_mq_fd->Object.id; ffc0d3e0: 80 7f 00 08 lwz r3,8(r31) } ffc0d3e4: 80 01 00 54 lwz r0,84(r1) ffc0d3e8: 83 21 00 34 lwz r25,52(r1) ffc0d3ec: 7c 08 03 a6 mtlr r0 ffc0d3f0: 83 41 00 38 lwz r26,56(r1) ffc0d3f4: 83 61 00 3c lwz r27,60(r1) ffc0d3f8: 83 81 00 40 lwz r28,64(r1) ffc0d3fc: 83 a1 00 44 lwz r29,68(r1) ffc0d400: 83 c1 00 48 lwz r30,72(r1) ffc0d404: 83 e1 00 4c lwz r31,76(r1) ffc0d408: 38 21 00 50 addi r1,r1,80 ffc0d40c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d410 : mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio ) { ffc0d410: 94 21 ff f8 stwu r1,-8(r1) ffc0d414: 7c 08 02 a6 mflr r0 return _POSIX_Message_queue_Receive_support( ffc0d418: 38 e0 00 01 li r7,1 ffc0d41c: 39 00 00 00 li r8,0 mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio ) { ffc0d420: 90 01 00 0c stw r0,12(r1) return _POSIX_Message_queue_Receive_support( ffc0d424: 48 00 00 15 bl ffc0d438 <_POSIX_Message_queue_Receive_support> <== ALWAYS TAKEN msg_len, msg_prio, true, THREAD_QUEUE_WAIT_FOREVER ); } ffc0d428: 80 01 00 0c lwz r0,12(r1) ffc0d42c: 38 21 00 08 addi r1,r1,8 ffc0d430: 7c 08 03 a6 mtlr r0 ffc0d434: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d580 : mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio ) { ffc0d580: 94 21 ff f8 stwu r1,-8(r1) ffc0d584: 7c 08 02 a6 mflr r0 return _POSIX_Message_queue_Send_support( ffc0d588: 38 e0 00 01 li r7,1 ffc0d58c: 39 00 00 00 li r8,0 mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio ) { ffc0d590: 90 01 00 0c stw r0,12(r1) return _POSIX_Message_queue_Send_support( ffc0d594: 48 00 00 15 bl ffc0d5a8 <_POSIX_Message_queue_Send_support> <== ALWAYS TAKEN msg_len, msg_prio, true, THREAD_QUEUE_WAIT_FOREVER ); } ffc0d598: 80 01 00 0c lwz r0,12(r1) ffc0d59c: 38 21 00 08 addi r1,r1,8 ffc0d5a0: 7c 08 03 a6 mtlr r0 ffc0d5a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d6dc : int mq_setattr( mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat ) { ffc0d6dc: 94 21 ff e0 stwu r1,-32(r1) ffc0d6e0: 7c 08 02 a6 mflr r0 ffc0d6e4: 93 c1 00 18 stw r30,24(r1) POSIX_Message_queue_Control_fd *the_mq_fd; CORE_message_queue_Control *the_core_mq; Objects_Locations location; if ( !mqstat ) ffc0d6e8: 7c 9e 23 79 mr. r30,r4 int mq_setattr( mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat ) { ffc0d6ec: 7c 64 1b 78 mr r4,r3 ffc0d6f0: 93 e1 00 1c stw r31,28(r1) ffc0d6f4: 7c bf 2b 78 mr r31,r5 ffc0d6f8: 90 01 00 24 stw r0,36(r1) POSIX_Message_queue_Control_fd *the_mq_fd; CORE_message_queue_Control *the_core_mq; Objects_Locations location; if ( !mqstat ) ffc0d6fc: 40 a2 00 10 bne+ ffc0d70c rtems_set_errno_and_return_minus_one( EINVAL ); ffc0d700: 48 00 be f1 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d704: 38 00 00 16 li r0,22 ffc0d708: 48 00 00 68 b ffc0d770 <== ALWAYS TAKEN ffc0d70c: 3c 60 00 00 lis r3,0 ffc0d710: 38 63 36 44 addi r3,r3,13892 ffc0d714: 38 a1 00 08 addi r5,r1,8 ffc0d718: 48 00 37 e9 bl ffc10f00 <_Objects_Get> <== ALWAYS TAKEN the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { ffc0d71c: 80 01 00 08 lwz r0,8(r1) ffc0d720: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d724: 40 9e 00 44 bne- cr7,ffc0d768 /* * Return the old values. */ if ( omqstat ) { ffc0d728: 2f 9f 00 00 cmpwi cr7,r31,0 the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: the_core_mq = &the_mq_fd->Queue->Message_queue; ffc0d72c: 81 23 00 10 lwz r9,16(r3) /* * Return the old values. */ if ( omqstat ) { ffc0d730: 41 9e 00 24 beq- cr7,ffc0d754 omqstat->mq_flags = the_mq_fd->oflag; omqstat->mq_msgsize = the_core_mq->maximum_message_size; ffc0d734: 80 09 00 68 lwz r0,104(r9) /* * Return the old values. */ if ( omqstat ) { omqstat->mq_flags = the_mq_fd->oflag; ffc0d738: 81 63 00 14 lwz r11,20(r3) omqstat->mq_msgsize = the_core_mq->maximum_message_size; ffc0d73c: 90 1f 00 08 stw r0,8(r31) /* * Return the old values. */ if ( omqstat ) { omqstat->mq_flags = the_mq_fd->oflag; ffc0d740: 91 7f 00 00 stw r11,0(r31) omqstat->mq_msgsize = the_core_mq->maximum_message_size; omqstat->mq_maxmsg = the_core_mq->maximum_pending_messages; ffc0d744: 80 09 00 60 lwz r0,96(r9) ffc0d748: 90 1f 00 04 stw r0,4(r31) omqstat->mq_curmsgs = the_core_mq->number_of_pending_messages; ffc0d74c: 80 09 00 64 lwz r0,100(r9) ffc0d750: 90 1f 00 0c stw r0,12(r31) } the_mq_fd->oflag = mqstat->mq_flags; ffc0d754: 80 1e 00 00 lwz r0,0(r30) ffc0d758: 90 03 00 14 stw r0,20(r3) _Thread_Enable_dispatch(); ffc0d75c: 48 00 43 21 bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d760: 38 60 00 00 li r3,0 return 0; ffc0d764: 48 00 00 14 b ffc0d778 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0d768: 48 00 be 89 bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d76c: 38 00 00 09 li r0,9 ffc0d770: 90 03 00 00 stw r0,0(r3) ffc0d774: 38 60 ff ff li r3,-1 } ffc0d778: 80 01 00 24 lwz r0,36(r1) ffc0d77c: 83 c1 00 18 lwz r30,24(r1) ffc0d780: 7c 08 03 a6 mtlr r0 ffc0d784: 83 e1 00 1c lwz r31,28(r1) ffc0d788: 38 21 00 20 addi r1,r1,32 ffc0d78c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d790 : char *msg_ptr, size_t msg_len, unsigned int *msg_prio, const struct timespec *abstime ) { ffc0d790: 94 21 ff d8 stwu r1,-40(r1) ffc0d794: 7c 08 02 a6 mflr r0 ffc0d798: 93 c1 00 20 stw r30,32(r1) ffc0d79c: 7c 7e 1b 78 mr r30,r3 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0d7a0: 7c e3 3b 78 mr r3,r7 char *msg_ptr, size_t msg_len, unsigned int *msg_prio, const struct timespec *abstime ) { ffc0d7a4: 93 e1 00 24 stw r31,36(r1) ffc0d7a8: 7c 9f 23 78 mr r31,r4 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0d7ac: 38 81 00 08 addi r4,r1,8 char *msg_ptr, size_t msg_len, unsigned int *msg_prio, const struct timespec *abstime ) { ffc0d7b0: 90 01 00 2c stw r0,44(r1) * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0d7b4: 90 a1 00 18 stw r5,24(r1) ffc0d7b8: 90 c1 00 1c stw r6,28(r1) ffc0d7bc: 48 00 01 55 bl ffc0d910 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; return _POSIX_Message_queue_Receive_support( ffc0d7c0: 68 67 00 03 xori r7,r3,3 ffc0d7c4: 81 01 00 08 lwz r8,8(r1) ffc0d7c8: 7c e7 00 34 cntlzw r7,r7 ffc0d7cc: 80 a1 00 18 lwz r5,24(r1) ffc0d7d0: 7f c3 f3 78 mr r3,r30 ffc0d7d4: 80 c1 00 1c lwz r6,28(r1) ffc0d7d8: 7f e4 fb 78 mr r4,r31 ffc0d7dc: 54 e7 d9 7e rlwinm r7,r7,27,5,31 ffc0d7e0: 4b ff fc 59 bl ffc0d438 <_POSIX_Message_queue_Receive_support> <== ALWAYS TAKEN msg_len, msg_prio, do_wait, ticks ); } ffc0d7e4: 80 01 00 2c lwz r0,44(r1) ffc0d7e8: 83 c1 00 20 lwz r30,32(r1) ffc0d7ec: 7c 08 03 a6 mtlr r0 ffc0d7f0: 83 e1 00 24 lwz r31,36(r1) ffc0d7f4: 38 21 00 28 addi r1,r1,40 ffc0d7f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d7fc : const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *abstime ) { ffc0d7fc: 94 21 ff d8 stwu r1,-40(r1) ffc0d800: 7c 08 02 a6 mflr r0 ffc0d804: 93 c1 00 20 stw r30,32(r1) ffc0d808: 7c 7e 1b 78 mr r30,r3 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0d80c: 7c e3 3b 78 mr r3,r7 const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *abstime ) { ffc0d810: 93 e1 00 24 stw r31,36(r1) ffc0d814: 7c 9f 23 78 mr r31,r4 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0d818: 38 81 00 08 addi r4,r1,8 const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *abstime ) { ffc0d81c: 90 01 00 2c stw r0,44(r1) * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0d820: 90 a1 00 18 stw r5,24(r1) ffc0d824: 90 c1 00 1c stw r6,28(r1) ffc0d828: 48 00 00 e9 bl ffc0d910 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; return _POSIX_Message_queue_Send_support( ffc0d82c: 68 67 00 03 xori r7,r3,3 ffc0d830: 81 01 00 08 lwz r8,8(r1) ffc0d834: 7c e7 00 34 cntlzw r7,r7 ffc0d838: 80 a1 00 18 lwz r5,24(r1) ffc0d83c: 7f c3 f3 78 mr r3,r30 ffc0d840: 80 c1 00 1c lwz r6,28(r1) ffc0d844: 7f e4 fb 78 mr r4,r31 ffc0d848: 54 e7 d9 7e rlwinm r7,r7,27,5,31 ffc0d84c: 4b ff fd 5d bl ffc0d5a8 <_POSIX_Message_queue_Send_support> <== ALWAYS TAKEN msg_len, msg_prio, do_wait, ticks ); } ffc0d850: 80 01 00 2c lwz r0,44(r1) ffc0d854: 83 c1 00 20 lwz r30,32(r1) ffc0d858: 7c 08 03 a6 mtlr r0 ffc0d85c: 83 e1 00 24 lwz r31,36(r1) ffc0d860: 38 21 00 28 addi r1,r1,40 ffc0d864: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d87c : ffc0d87c: 3d 20 00 00 lis r9,0 */ int mq_unlink( const char *name ) { ffc0d880: 94 21 ff e0 stwu r1,-32(r1) ffc0d884: 7c 08 02 a6 mflr r0 ffc0d888: 81 69 29 f8 lwz r11,10744(r9) ffc0d88c: 90 01 00 24 stw r0,36(r1) ffc0d890: 38 0b 00 01 addi r0,r11,1 ffc0d894: 93 c1 00 18 stw r30,24(r1) ffc0d898: 93 e1 00 1c stw r31,28(r1) ffc0d89c: 90 09 29 f8 stw r0,10744(r9) register POSIX_Message_queue_Control *the_mq; Objects_Id the_mq_id; _Thread_Disable_dispatch(); status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id ); ffc0d8a0: 38 81 00 08 addi r4,r1,8 ffc0d8a4: 48 00 78 3d bl ffc150e0 <_POSIX_Message_queue_Name_to_id> <== ALWAYS TAKEN if ( status != 0 ) { ffc0d8a8: 7c 7e 1b 79 mr. r30,r3 ffc0d8ac: 41 a2 00 18 beq+ ffc0d8c4 _Thread_Enable_dispatch(); ffc0d8b0: 48 00 41 cd bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( status ); ffc0d8b4: 48 00 bd 3d bl ffc195f0 <__errno> <== ALWAYS TAKEN ffc0d8b8: 93 c3 00 00 stw r30,0(r3) ffc0d8bc: 38 60 ff ff li r3,-1 ffc0d8c0: 48 00 00 38 b ffc0d8f8 <== ALWAYS TAKEN } the_mq = (POSIX_Message_queue_Control *) _Objects_Get_local_object( ffc0d8c4: 3c 60 00 00 lis r3,0 ffc0d8c8: a0 01 00 0a lhz r0,10(r1) ffc0d8cc: 38 63 34 b8 addi r3,r3,13496 ffc0d8d0: 81 23 00 1c lwz r9,28(r3) ffc0d8d4: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0d8d8: 7f e9 00 2e lwzx r31,r9,r0 &_POSIX_Message_queue_Information, _Objects_Get_index( the_mq_id ) ); the_mq->linked = false; ffc0d8dc: 9b df 00 15 stb r30,21(r31) RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Namespace_remove ( POSIX_Message_queue_Control *the_mq ) { _Objects_Namespace_remove( ffc0d8e0: 7f e4 fb 78 mr r4,r31 ffc0d8e4: 48 00 37 a1 bl ffc11084 <_Objects_Namespace_remove> <== ALWAYS TAKEN _POSIX_Message_queue_Namespace_remove( the_mq ); _POSIX_Message_queue_Delete( the_mq ); ffc0d8e8: 7f e3 fb 78 mr r3,r31 ffc0d8ec: 4b ff f7 21 bl ffc0d00c <_POSIX_Message_queue_Delete> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0d8f0: 48 00 41 8d bl ffc11a7c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d8f4: 38 60 00 00 li r3,0 return 0; } ffc0d8f8: 80 01 00 24 lwz r0,36(r1) ffc0d8fc: 83 c1 00 18 lwz r30,24(r1) ffc0d900: 7c 08 03 a6 mtlr r0 ffc0d904: 83 e1 00 1c lwz r31,28(r1) ffc0d908: 38 21 00 20 addi r1,r1,32 ffc0d90c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b4a4 : int nanosleep( const struct timespec *rqtp, struct timespec *rmtp ) { ffc2b4a4: 94 21 ff e8 stwu r1,-24(r1) ffc2b4a8: 7d 80 00 26 mfcr r12 ffc2b4ac: 7c 08 02 a6 mflr r0 ffc2b4b0: 93 c1 00 10 stw r30,16(r1) ffc2b4b4: 7c 9e 23 78 mr r30,r4 ffc2b4b8: 93 e1 00 14 stw r31,20(r1) ffc2b4bc: 7c 7f 1b 78 mr r31,r3 ffc2b4c0: 90 01 00 1c stw r0,28(r1) ffc2b4c4: 93 a1 00 0c stw r29,12(r1) ffc2b4c8: 91 81 00 08 stw r12,8(r1) Watchdog_Interval ticks; if ( !_Timespec_Is_valid( rqtp ) ) ffc2b4cc: 48 00 01 35 bl ffc2b600 <_Timespec_Is_valid> <== ALWAYS TAKEN ffc2b4d0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b4d4: 41 9e 00 1c beq- cr7,ffc2b4f0 * Return EINVAL if the delay interval is negative. * * NOTE: This behavior is beyond the POSIX specification. * FSU and GNU/Linux pthreads shares this behavior. */ if ( rqtp->tv_sec < 0 || rqtp->tv_nsec < 0 ) ffc2b4d8: 80 1f 00 00 lwz r0,0(r31) ffc2b4dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b4e0: 41 9c 00 10 blt- cr7,ffc2b4f0 <== NEVER TAKEN ffc2b4e4: 80 1f 00 04 lwz r0,4(r31) ffc2b4e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b4ec: 40 bc 00 10 bge+ cr7,ffc2b4fc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc2b4f0: 4b ff 02 81 bl ffc1b770 <__errno> <== ALWAYS TAKEN ffc2b4f4: 38 00 00 16 li r0,22 ffc2b4f8: 48 00 00 d4 b ffc2b5cc <== ALWAYS TAKEN ticks = _Timespec_To_ticks( rqtp ); ffc2b4fc: 7f e3 fb 78 mr r3,r31 ffc2b500: 4b fe c6 41 bl ffc17b40 <_Timespec_To_ticks> <== ALWAYS TAKEN ffc2b504: 2e 1e 00 00 cmpwi cr4,r30,0 * A nanosleep for zero time is implemented as a yield. * This behavior is also beyond the POSIX specification but is * consistent with the RTEMS API and yields desirable behavior. */ if ( !ticks ) { ffc2b508: 7c 7f 1b 79 mr. r31,r3 ffc2b50c: 3d 20 00 00 lis r9,0 ffc2b510: 40 82 00 2c bne- ffc2b53c rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc2b514: 81 69 29 74 lwz r11,10612(r9) ffc2b518: 38 0b 00 01 addi r0,r11,1 ffc2b51c: 90 09 29 74 stw r0,10612(r9) _Thread_Disable_dispatch(); _Thread_Yield_processor(); ffc2b520: 4b fe 4d 65 bl ffc10284 <_Thread_Yield_processor> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc2b524: 4b fe 3d 65 bl ffc0f288 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( rmtp ) { ffc2b528: 41 92 00 b0 beq- cr4,ffc2b5d8 rmtp->tv_sec = 0; rmtp->tv_nsec = 0; ffc2b52c: 93 fe 00 04 stw r31,4(r30) ffc2b530: 38 60 00 00 li r3,0 if ( !ticks ) { _Thread_Disable_dispatch(); _Thread_Yield_processor(); _Thread_Enable_dispatch(); if ( rmtp ) { rmtp->tv_sec = 0; ffc2b534: 93 fe 00 00 stw r31,0(r30) ffc2b538: 48 00 00 a4 b ffc2b5dc <== ALWAYS TAKEN ffc2b53c: 81 69 29 74 lwz r11,10612(r9) ffc2b540: 38 0b 00 01 addi r0,r11,1 ffc2b544: 90 09 29 74 stw r0,10612(r9) /* * Block for the desired amount of time */ _Thread_Disable_dispatch(); _Thread_Set_state( ffc2b548: 3f a0 00 00 lis r29,0 ffc2b54c: 80 7d 29 b4 lwz r3,10676(r29) ffc2b550: 3c 80 10 00 lis r4,4096 ffc2b554: 60 84 00 08 ori r4,r4,8 ffc2b558: 4b fe 48 09 bl ffc0fd60 <_Thread_Set_state> <== ALWAYS TAKEN _Thread_Executing, STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Watchdog_Initialize( &_Thread_Executing->Timer, ffc2b55c: 81 3d 29 b4 lwz r9,10676(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc2b560: 3d 40 ff c1 lis r10,-63 _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Watchdog_Initialize( ffc2b564: 81 69 00 08 lwz r11,8(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc2b568: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc2b56c: 39 4a f0 4c addi r10,r10,-4020 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc2b570: 90 09 00 6c stw r0,108(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc2b574: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc2b578: 91 49 00 64 stw r10,100(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc2b57c: 38 63 36 48 addi r3,r3,13896 ffc2b580: 38 89 00 48 addi r4,r9,72 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc2b584: 91 69 00 68 stw r11,104(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc2b588: 90 09 00 50 stw r0,80(r9) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc2b58c: 93 e9 00 54 stw r31,84(r9) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc2b590: 4b fe 53 51 bl ffc108e0 <_Watchdog_Insert> <== ALWAYS TAKEN _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); _Thread_Enable_dispatch(); ffc2b594: 4b fe 3c f5 bl ffc0f288 <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* calculate time remaining */ if ( rmtp ) { ffc2b598: 41 92 00 40 beq- cr4,ffc2b5d8 ticks -= _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time; ffc2b59c: 81 3d 29 b4 lwz r9,10676(r29) <== ALWAYS TAKEN _Timespec_From_ticks( ticks, rmtp ); ffc2b5a0: 7f c4 f3 78 mr r4,r30 _Thread_Enable_dispatch(); /* calculate time remaining */ if ( rmtp ) { ticks -= ffc2b5a4: 80 09 00 60 lwz r0,96(r9) ffc2b5a8: 81 29 00 5c lwz r9,92(r9) ffc2b5ac: 7c 00 48 50 subf r0,r0,r9 ffc2b5b0: 7f e0 fa 14 add r31,r0,r31 _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time; _Timespec_From_ticks( ticks, rmtp ); ffc2b5b4: 7f e3 fb 78 mr r3,r31 ffc2b5b8: 4b fe c5 59 bl ffc17b10 <_Timespec_From_ticks> <== ALWAYS TAKEN */ #if defined(RTEMS_POSIX_API) /* * If there is time remaining, then we were interrupted by a signal. */ if ( ticks ) ffc2b5bc: 2f 9f 00 00 cmpwi cr7,r31,0 ffc2b5c0: 41 be 00 18 beq+ cr7,ffc2b5d8 rtems_set_errno_and_return_minus_one( EINTR ); ffc2b5c4: 4b ff 01 ad bl ffc1b770 <__errno> <== ALWAYS TAKEN ffc2b5c8: 38 00 00 04 li r0,4 ffc2b5cc: 90 03 00 00 stw r0,0(r3) ffc2b5d0: 38 60 ff ff li r3,-1 ffc2b5d4: 48 00 00 08 b ffc2b5dc <== ALWAYS TAKEN ffc2b5d8: 38 60 00 00 li r3,0 #endif } return 0; } ffc2b5dc: 80 01 00 1c lwz r0,28(r1) ffc2b5e0: 81 81 00 08 lwz r12,8(r1) ffc2b5e4: 7c 08 03 a6 mtlr r0 ffc2b5e8: 83 a1 00 0c lwz r29,12(r1) ffc2b5ec: 83 c1 00 10 lwz r30,16(r1) ffc2b5f0: 7d 80 81 20 mtcrf 8,r12 ffc2b5f4: 83 e1 00 14 lwz r31,20(r1) ffc2b5f8: 38 21 00 18 addi r1,r1,24 ffc2b5fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04abc : */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { ffc04abc: 94 21 ff e8 stwu r1,-24(r1) ffc04ac0: 7c 08 02 a6 mflr r0 struct _reent *ptr; if (_Thread_libc_reent == 0) ffc04ac4: 3d 20 00 00 lis r9,0 */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { ffc04ac8: 90 01 00 1c stw r0,28(r1) struct _reent *ptr; if (_Thread_libc_reent == 0) ffc04acc: 80 09 27 88 lwz r0,10120(r9) */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { ffc04ad0: 93 81 00 08 stw r28,8(r1) ffc04ad4: 7c 9c 23 78 mr r28,r4 struct _reent *ptr; if (_Thread_libc_reent == 0) ffc04ad8: 2f 80 00 00 cmpwi cr7,r0,0 */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { ffc04adc: 93 a1 00 0c stw r29,12(r1) ffc04ae0: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc04ae4: 93 e1 00 14 stw r31,20(r1) struct _reent *ptr; if (_Thread_libc_reent == 0) ffc04ae8: 40 be 00 1c bne+ cr7,ffc04b04 { _REENT = _global_impure_ptr; ffc04aec: 3d 40 00 00 lis r10,0 ffc04af0: 3d 60 00 00 lis r11,0 ffc04af4: 81 4a 26 e8 lwz r10,9960(r10) ffc04af8: 38 0b 26 e4 addi r0,r11,9956 ffc04afc: 91 4b 26 e4 stw r10,9956(r11) RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent ( struct _reent **libc_reent ) { _Thread_libc_reent = libc_reent; ffc04b00: 90 09 27 88 stw r0,10120(r9) ptr = (struct _reent *) calloc(1, sizeof(struct _reent)); #else /* It is OK to allocate from the workspace because these * hooks run with thread dispatching disabled. */ ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent)); ffc04b04: 38 60 04 28 li r3,1064 ffc04b08: 48 00 70 d9 bl ffc0bbe0 <_Workspace_Allocate> <== ALWAYS TAKEN #endif if (ptr) { ffc04b0c: 7c 7f 1b 79 mr. r31,r3 ffc04b10: 38 60 00 00 li r3,0 ffc04b14: 41 82 01 5c beq- ffc04c70 _REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */ ffc04b18: 3b c0 00 00 li r30,0 ffc04b1c: 39 3f 03 54 addi r9,r31,852 ffc04b20: 93 df 00 00 stw r30,0(r31) ffc04b24: 38 1f 03 bc addi r0,r31,956 ffc04b28: 3b bf 02 ec addi r29,r31,748 ffc04b2c: 91 3f 00 08 stw r9,8(r31) ffc04b30: 38 80 00 00 li r4,0 ffc04b34: 90 1f 00 0c stw r0,12(r31) ffc04b38: 38 a0 00 19 li r5,25 <== ALWAYS TAKEN ffc04b3c: 38 7f 00 14 addi r3,r31,20 ffc04b40: 93 bf 00 04 stw r29,4(r31) ffc04b44: 93 df 00 10 stw r30,16(r31) ffc04b48: 48 00 dd ad bl ffc128f4 <== ALWAYS TAKEN ffc04b4c: 3d 20 ff c2 lis r9,-62 ffc04b50: 38 09 de a5 addi r0,r9,-8539 <== ALWAYS TAKEN ffc04b54: 93 df 00 30 stw r30,48(r31) ffc04b58: 38 80 00 00 li r4,0 ffc04b5c: 90 1f 00 34 stw r0,52(r31) ffc04b60: 38 a0 00 24 li r5,36 ffc04b64: 38 7f 00 7c addi r3,r31,124 <== ALWAYS TAKEN ffc04b68: 93 df 00 38 stw r30,56(r31) ffc04b6c: 93 df 00 3c stw r30,60(r31) ffc04b70: 93 df 00 40 stw r30,64(r31) ffc04b74: 93 df 00 44 stw r30,68(r31) ffc04b78: 93 df 00 48 stw r30,72(r31) ffc04b7c: 93 df 00 4c stw r30,76(r31) ffc04b80: 93 df 00 50 stw r30,80(r31) <== ALWAYS TAKEN ffc04b84: 93 df 00 54 stw r30,84(r31) <== ALWAYS TAKEN ffc04b88: 93 df 00 58 stw r30,88(r31) ffc04b8c: 93 df 00 5c stw r30,92(r31) ffc04b90: 9b df 00 60 stb r30,96(r31) ffc04b94: 48 00 dd 61 bl ffc128f4 <== ALWAYS TAKEN ffc04b98: 38 00 33 0e li r0,13070 <== ALWAYS TAKEN ffc04b9c: b0 1f 00 b0 sth r0,176(r31) ffc04ba0: 38 00 ab cd li r0,-21555 ffc04ba4: 39 20 00 00 li r9,0 <== ALWAYS TAKEN ffc04ba8: b0 1f 00 b2 sth r0,178(r31) ffc04bac: 38 00 12 34 li r0,4660 ffc04bb0: 39 40 00 01 li r10,1 ffc04bb4: b0 1f 00 b4 sth r0,180(r31) ffc04bb8: 38 00 e6 6d li r0,-6547 ffc04bbc: 7f a3 eb 78 mr r3,r29 ffc04bc0: b0 1f 00 b6 sth r0,182(r31) ffc04bc4: 38 00 de ec li r0,-8468 <== ALWAYS TAKEN ffc04bc8: 38 80 00 00 li r4,0 ffc04bcc: b0 1f 00 b8 sth r0,184(r31) ffc04bd0: 38 00 00 05 li r0,5 ffc04bd4: 38 a0 01 38 li r5,312 ffc04bd8: b0 1f 00 ba sth r0,186(r31) ffc04bdc: 38 00 00 0b li r0,11 ffc04be0: 91 3f 00 a8 stw r9,168(r31) <== ALWAYS TAKEN ffc04be4: 91 5f 00 ac stw r10,172(r31) ffc04be8: b0 1f 00 bc sth r0,188(r31) <== ALWAYS TAKEN ffc04bec: 93 df 00 a0 stw r30,160(r31) ffc04bf0: 93 df 00 c0 stw r30,192(r31) ffc04bf4: 93 df 00 c4 stw r30,196(r31) <== ALWAYS TAKEN ffc04bf8: 93 df 00 c8 stw r30,200(r31) ffc04bfc: 93 df 00 cc stw r30,204(r31) <== ALWAYS TAKEN ffc04c00: 93 df 00 d0 stw r30,208(r31) ffc04c04: 93 df 00 d4 stw r30,212(r31) ffc04c08: 93 df 00 fc stw r30,252(r31) ffc04c0c: 93 df 01 00 stw r30,256(r31) ffc04c10: 93 df 01 04 stw r30,260(r31) ffc04c14: 93 df 01 08 stw r30,264(r31) ffc04c18: 93 df 01 0c stw r30,268(r31) <== ALWAYS TAKEN ffc04c1c: 93 df 01 10 stw r30,272(r31) ffc04c20: 93 df 01 14 stw r30,276(r31) ffc04c24: 93 df 01 18 stw r30,280(r31) ffc04c28: 93 df 01 1c stw r30,284(r31) ffc04c2c: 93 df 01 20 stw r30,288(r31) ffc04c30: 9b df 00 d8 stb r30,216(r31) <== ALWAYS TAKEN ffc04c34: 9b df 00 e0 stb r30,224(r31) ffc04c38: 93 df 00 f8 stw r30,248(r31) ffc04c3c: 93 df 01 48 stw r30,328(r31) ffc04c40: 93 df 01 4c stw r30,332(r31) ffc04c44: 93 df 01 50 stw r30,336(r31) ffc04c48: 93 df 01 54 stw r30,340(r31) ffc04c4c: 93 df 02 d4 stw r30,724(r31) ffc04c50: 93 df 01 d4 stw r30,468(r31) ffc04c54: 93 df 02 e8 stw r30,744(r31) ffc04c58: 93 df 02 dc stw r30,732(r31) ffc04c5c: 93 df 02 e0 stw r30,736(r31) ffc04c60: 93 df 02 e4 stw r30,740(r31) ffc04c64: 48 00 dc 91 bl ffc128f4 <== ALWAYS TAKEN creating_task->libc_reent = ptr; ffc04c68: 93 fc 01 40 stw r31,320(r28) ffc04c6c: 38 60 00 01 li r3,1 return TRUE; } return FALSE; } ffc04c70: 80 01 00 1c lwz r0,28(r1) ffc04c74: 83 81 00 08 lwz r28,8(r1) ffc04c78: 7c 08 03 a6 mtlr r0 ffc04c7c: 83 a1 00 0c lwz r29,12(r1) ffc04c80: 83 c1 00 10 lwz r30,16(r1) ffc04c84: 83 e1 00 14 lwz r31,20(r1) ffc04c88: 38 21 00 18 addi r1,r1,24 ffc04c8c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc049b0 : /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ffc049b0: 7f 83 20 00 cmpw cr7,r3,r4 void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) { ffc049b4: 94 21 ff e8 stwu r1,-24(r1) ffc049b8: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc049bc: 93 a1 00 0c stw r29,12(r1) <== ALWAYS TAKEN ffc049c0: 7c 7d 1b 78 mr r29,r3 ffc049c4: 93 c1 00 10 stw r30,16(r1) ffc049c8: 7c 9e 23 78 mr r30,r4 ffc049cc: 90 01 00 1c stw r0,28(r1) ffc049d0: 93 e1 00 14 stw r31,20(r1) /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ffc049d4: 40 be 00 10 bne+ cr7,ffc049e4 ptr = _REENT; ffc049d8: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc049dc: 83 e9 26 e4 lwz r31,9956(r9) ffc049e0: 48 00 00 08 b ffc049e8 <== ALWAYS TAKEN } else { ptr = deleted_task->libc_reent; ffc049e4: 83 e4 01 40 lwz r31,320(r4) } if (ptr && ptr != _global_impure_ptr) { ffc049e8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc049ec: 41 9e 00 2c beq- cr7,ffc04a18 <== NEVER TAKEN ffc049f0: 3d 20 00 00 lis r9,0 ffc049f4: 80 09 26 e8 lwz r0,9960(r9) ffc049f8: 7f 9f 00 00 cmpw cr7,r31,r0 <== ALWAYS TAKEN ffc049fc: 41 9e 00 1c beq- cr7,ffc04a18 _reclaim_reent(ptr); */ /* * Just in case there are some buffers lying around. */ _fwalk(ptr, newlib_free_buffers); ffc04a00: 3c 80 ff c0 lis r4,-64 ffc04a04: 38 84 4a 4c addi r4,r4,19020 ffc04a08: 7f e3 fb 78 mr r3,r31 ffc04a0c: 48 00 dc 95 bl ffc126a0 <_fwalk> <== ALWAYS TAKEN #if REENT_MALLOCED free(ptr); #else _Workspace_Free(ptr); ffc04a10: 7f e3 fb 78 mr r3,r31 ffc04a14: 48 00 72 01 bl ffc0bc14 <_Workspace_Free> <== ALWAYS TAKEN /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { ffc04a18: 7f 9d f0 00 cmpw cr7,r29,r30 #else _Workspace_Free(ptr); #endif } deleted_task->libc_reent = NULL; ffc04a1c: 38 00 00 00 li r0,0 ffc04a20: 90 1e 01 40 stw r0,320(r30) /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { ffc04a24: 40 be 00 0c bne+ cr7,ffc04a30 _REENT = 0; ffc04a28: 3d 20 00 00 lis r9,0 ffc04a2c: 90 09 26 e4 stw r0,9956(r9) } } ffc04a30: 80 01 00 1c lwz r0,28(r1) ffc04a34: 83 a1 00 0c lwz r29,12(r1) ffc04a38: 7c 08 03 a6 mtlr r0 ffc04a3c: 83 c1 00 10 lwz r30,16(r1) <== ALWAYS TAKEN ffc04a40: 83 e1 00 14 lwz r31,20(r1) ffc04a44: 38 21 00 18 addi r1,r1,24 ffc04a48: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04a4c : */ int newlib_free_buffers( FILE *fp ) { ffc04a4c: 94 21 ff f0 stwu r1,-16(r1) ffc04a50: 7c 08 02 a6 mflr r0 ffc04a54: 93 e1 00 0c stw r31,12(r1) ffc04a58: 7c 7f 1b 78 mr r31,r3 ffc04a5c: 90 01 00 14 stw r0,20(r1) switch ( fileno(fp) ) { ffc04a60: 48 00 d6 81 bl ffc120e0 <== ALWAYS TAKEN ffc04a64: 2b 83 00 02 cmplwi cr7,r3,2 ffc04a68: 41 9d 00 34 bgt- cr7,ffc04a9c <== NEVER TAKEN case 0: case 1: case 2: if (fp->_flags & __SMBF) { ffc04a6c: a0 1f 00 0c lhz r0,12(r31) ffc04a70: 70 09 00 80 andi. r9,r0,128 ffc04a74: 41 a2 00 30 beq+ ffc04aa4 <== ALWAYS TAKEN free( fp->_bf._base ); ffc04a78: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc04a7c: 4b ff f5 dd bl ffc04058 <== NOT EXECUTED fp->_flags &= ~__SMBF; ffc04a80: a1 3f 00 0c lhz r9,12(r31) <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; ffc04a84: 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; ffc04a88: 55 29 06 6e rlwinm r9,r9,0,25,23 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; ffc04a8c: 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; ffc04a90: b1 3f 00 0c sth r9,12(r31) <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; ffc04a94: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED ffc04a98: 48 00 00 0c b ffc04aa4 <== NOT EXECUTED } break; default: fclose(fp); ffc04a9c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04aa0: 48 00 d3 0d bl ffc11dac <== NOT EXECUTED } return 0; } ffc04aa4: 80 01 00 14 lwz r0,20(r1) ffc04aa8: 38 60 00 00 li r3,0 ffc04aac: 83 e1 00 0c lwz r31,12(r1) ffc04ab0: 38 21 00 10 addi r1,r1,16 ffc04ab4: 7c 08 03 a6 mtlr r0 ffc04ab8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc047f0 : rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { return NULL_SUCCESSFUL; } ffc047f0: 38 60 00 00 li r3,0 ffc047f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04818 : rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { return NULL_SUCCESSFUL; } ffc04818: 38 60 00 00 li r3,0 ffc0481c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04820 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04820: 94 21 ff f0 stwu r1,-16(r1) ffc04824: 7c 08 02 a6 mflr r0 rtems_device_driver status; if ( !initialized ) { ffc04828: 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)) ) { ffc0482c: 90 01 00 14 stw r0,20(r1) rtems_device_driver status; if ( !initialized ) { ffc04830: 88 09 29 20 lbz r0,10528(r9) rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04834: 93 e1 00 0c stw r31,12(r1) ffc04838: 7c 7f 1b 78 mr r31,r3 rtems_device_driver status; if ( !initialized ) { ffc0483c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04840: 40 be 00 34 bne+ cr7,ffc04874 initialized = 1; status = rtems_io_register_name( ffc04844: 3c 60 ff c2 lis r3,-62 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04848: 38 00 00 01 li r0,1 status = rtems_io_register_name( ffc0484c: 38 63 23 aa addi r3,r3,9130 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04850: 98 09 29 20 stb r0,10528(r9) status = rtems_io_register_name( ffc04854: 7f e4 fb 78 mr r4,r31 ffc04858: 38 a0 00 00 li r5,0 ffc0485c: 48 00 01 79 bl ffc049d4 <== ALWAYS TAKEN "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) ffc04860: 2f 83 00 00 cmpwi cr7,r3,0 ffc04864: 41 be 00 08 beq+ cr7,ffc0486c <== ALWAYS TAKEN rtems_fatal_error_occurred(status); ffc04868: 48 00 4d d1 bl ffc09638 <== NOT EXECUTED NULL_major = major; ffc0486c: 3d 20 00 00 lis r9,0 ffc04870: 93 e9 27 cc stw r31,10188(r9) } return RTEMS_SUCCESSFUL; } ffc04874: 80 01 00 14 lwz r0,20(r1) ffc04878: 38 60 00 00 li r3,0 ffc0487c: 83 e1 00 0c lwz r31,12(r1) ffc04880: 38 21 00 10 addi r1,r1,16 ffc04884: 7c 08 03 a6 mtlr r0 ffc04888: 4e 80 00 20 blr <== ALWAYS TAKEN ffc047e8 : rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { return NULL_SUCCESSFUL; } ffc047e8: 38 60 00 00 li r3,0 ffc047ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc047f8 : rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { return NULL_SUCCESSFUL; } ffc047f8: 38 60 00 00 li r3,0 ffc047fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04800 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) ffc04800: 2c 05 00 00 cmpwi r5,0 ffc04804: 41 82 00 0c beq- ffc04810 <== ALWAYS TAKEN rw_args->bytes_moved = rw_args->count; ffc04808: 80 05 00 14 lwz r0,20(r5) <== NOT EXECUTED ffc0480c: 90 05 00 1c stw r0,28(r5) <== NOT EXECUTED return NULL_SUCCESSFUL; } ffc04810: 38 60 00 00 li r3,0 ffc04814: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04d28 : int open( const char *pathname, int flags, ... ) { ffc04d28: 94 21 ff b0 stwu r1,-80(r1) ffc04d2c: 7c 08 02 a6 mflr r0 ffc04d30: 93 41 00 38 stw r26,56(r1) /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; ffc04d34: 3b 44 00 01 addi r26,r4,1 int open( const char *pathname, int flags, ... ) { ffc04d38: 90 01 00 54 stw r0,84(r1) <== ALWAYS TAKEN eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) ffc04d3c: 73 40 00 02 andi. r0,r26,2 * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) ffc04d40: 57 5a 17 7a rlwinm r26,r26,2,29,29 int open( const char *pathname, int flags, ... ) { ffc04d44: 93 a1 00 44 stw r29,68(r1) <== ALWAYS TAKEN ffc04d48: 7c 7d 1b 78 mr r29,r3 ffc04d4c: 93 c1 00 48 stw r30,72(r1) ffc04d50: 7c 9e 23 78 mr r30,r4 ffc04d54: 93 21 00 34 stw r25,52(r1) ffc04d58: 93 61 00 3c stw r27,60(r1) <== ALWAYS TAKEN ffc04d5c: 93 81 00 40 stw r28,64(r1) <== ALWAYS TAKEN ffc04d60: 93 e1 00 4c stw r31,76(r1) <== ALWAYS TAKEN ffc04d64: 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 ) ffc04d68: 41 82 00 08 beq- ffc04d70 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; ffc04d6c: 63 5a 00 02 ori r26,r26,2 va_start(ap, flags); ffc04d70: 38 01 00 58 addi r0,r1,88 ffc04d74: 39 21 00 20 addi r9,r1,32 <== ALWAYS TAKEN ffc04d78: 90 01 00 0c stw r0,12(r1) mode = va_arg( ap, int ); ffc04d7c: 38 00 00 03 li r0,3 ffc04d80: 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 ) { ffc04d84: 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); ffc04d88: 91 21 00 10 stw r9,16(r1) <== ALWAYS TAKEN mode = va_arg( ap, int ); ffc04d8c: 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(); ffc04d90: 48 00 86 21 bl ffc0d3b0 <== ALWAYS TAKEN if ( iop == 0 ) { ffc04d94: 7c 7f 1b 79 mr. r31,r3 <== ALWAYS TAKEN ffc04d98: 41 82 02 20 beq- ffc04fb8 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); ffc04d9c: 7f a3 eb 78 mr r3,r29 ffc04da0: 48 00 e1 69 bl ffc12f08 <== ALWAYS TAKEN /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( ffc04da4: 3b 81 00 14 addi r28,r1,20 pathname, strlen( pathname ), eval_flags, &loc, true ); ffc04da8: 7c 64 1b 78 mr r4,r3 <== ALWAYS TAKEN /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( ffc04dac: 7f 45 d3 78 mr r5,r26 <== ALWAYS TAKEN ffc04db0: 7f a3 eb 78 mr r3,r29 ffc04db4: 7f 86 e3 78 mr r6,r28 ffc04db8: 38 e0 00 01 li r7,1 ffc04dbc: 4b ff f1 b9 bl ffc03f74 <== ALWAYS TAKEN pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { ffc04dc0: 2f 83 ff ff cmpwi cr7,r3,-1 <== ALWAYS TAKEN ffc04dc4: 40 be 00 90 bne+ cr7,ffc04e54 if ( errno != ENOENT ) { ffc04dc8: 48 00 ce 45 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc04dcc: 80 03 00 00 lwz r0,0(r3) ffc04dd0: 2f 80 00 02 cmpwi cr7,r0,2 ffc04dd4: 41 9e 00 14 beq- cr7,ffc04de8 rc = errno; ffc04dd8: 48 00 ce 35 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc04ddc: 3b 40 00 00 li r26,0 ffc04de0: 83 23 00 00 lwz r25,0(r3) goto done; ffc04de4: 48 00 01 90 b ffc04f74 <== ALWAYS TAKEN } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { ffc04de8: 73 c0 02 00 andi. r0,r30,512 ffc04dec: 3b 40 00 00 li r26,0 ffc04df0: 3b 20 00 02 li r25,2 ffc04df4: 41 a2 01 88 beq+ ffc04f7c rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); ffc04df8: 7f a3 eb 78 mr r3,r29 ffc04dfc: 63 64 80 00 ori r4,r27,32768 ffc04e00: 38 a0 00 00 li r5,0 ffc04e04: 38 c0 00 00 li r6,0 ffc04e08: 4b ff f7 09 bl ffc04510 <== ALWAYS TAKEN if ( rc ) { ffc04e0c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04e10: 41 9e 00 10 beq- cr7,ffc04e20 <== ALWAYS TAKEN rc = errno; ffc04e14: 48 00 cd f9 bl ffc11c0c <__errno> <== NOT EXECUTED ffc04e18: 83 23 00 00 lwz r25,0(r3) <== NOT EXECUTED goto done; ffc04e1c: 48 00 01 58 b ffc04f74 <== 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 ); ffc04e20: 7f a3 eb 78 mr r3,r29 ffc04e24: 48 00 e0 e5 bl ffc12f08 <== ALWAYS TAKEN ffc04e28: 7f 86 e3 78 mr r6,r28 ffc04e2c: 7c 64 1b 78 mr r4,r3 ffc04e30: 38 a0 00 00 li r5,0 ffc04e34: 7f a3 eb 78 mr r3,r29 ffc04e38: 38 e0 00 01 li r7,1 ffc04e3c: 4b ff f1 39 bl ffc03f74 <== ALWAYS TAKEN if ( status != 0 ) { /* The file did not exist */ ffc04e40: 3b 40 00 00 li r26,0 ffc04e44: 2f 83 00 00 cmpwi cr7,r3,0 ffc04e48: 3b 20 00 0d li r25,13 ffc04e4c: 40 9e 01 30 bne- cr7,ffc04f7c <== NEVER TAKEN ffc04e50: 48 00 00 18 b ffc04e68 <== ALWAYS TAKEN rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { ffc04e54: 73 c0 0a 00 andi. r0,r30,2560 ffc04e58: 7f 9a e3 78 mr r26,r28 ffc04e5c: 3b 20 00 11 li r25,17 <== ALWAYS TAKEN ffc04e60: 2f 80 0a 00 cmpwi cr7,r0,2560 ffc04e64: 41 9e 01 18 beq- cr7,ffc04f7c /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; ffc04e68: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); ffc04e6c: 7f c3 f3 78 mr r3,r30 ffc04e70: 83 9f 00 18 lwz r28,24(r31) <== ALWAYS TAKEN /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; ffc04e74: 90 1f 00 40 stw r0,64(r31) <== ALWAYS TAKEN iop->file_info = loc.node_access; ffc04e78: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc04e7c: 90 1f 00 3c stw r0,60(r31) <== ALWAYS TAKEN iop->flags |= rtems_libio_fcntl_flags( flags ); ffc04e80: 48 00 86 0d bl ffc0d48c <== ALWAYS TAKEN iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { ffc04e84: 81 3f 00 40 lwz r9,64(r31) <== ALWAYS TAKEN */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; ffc04e88: 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 ); ffc04e8c: 7c 63 e3 78 or r3,r3,r28 <== ALWAYS TAKEN iop->pathinfo = loc; ffc04e90: 81 41 00 18 lwz r10,24(r1) if ( !iop->handlers || !iop->handlers->open_h ) { ffc04e94: 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; ffc04e98: 81 61 00 1c lwz r11,28(r1) <== ALWAYS TAKEN ffc04e9c: 81 01 00 14 lwz r8,20(r1) ffc04ea0: 91 5f 00 20 stw r10,32(r31) ffc04ea4: 91 1f 00 1c stw r8,28(r31) ffc04ea8: 91 7f 00 24 stw r11,36(r31) ffc04eac: 90 1f 00 28 stw r0,40(r31) ffc04eb0: 80 01 00 24 lwz r0,36(r1) <== ALWAYS TAKEN * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); ffc04eb4: 90 7f 00 18 stw r3,24(r31) iop->pathinfo = loc; ffc04eb8: 90 1f 00 2c stw r0,44(r31) <== ALWAYS TAKEN if ( !iop->handlers || !iop->handlers->open_h ) { ffc04ebc: 41 9e 01 54 beq- cr7,ffc05010 <== NEVER TAKEN ffc04ec0: 80 09 00 00 lwz r0,0(r9) ffc04ec4: 2f 80 00 00 cmpwi cr7,r0,0 ffc04ec8: 41 9e 01 48 beq- cr7,ffc05010 <== NEVER TAKEN rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); ffc04ecc: 7f a4 eb 78 mr r4,r29 ffc04ed0: 7c 09 03 a6 mtctr r0 ffc04ed4: 7f 66 db 78 mr r6,r27 ffc04ed8: 7f e3 fb 78 mr r3,r31 ffc04edc: 7f c5 f3 78 mr r5,r30 ffc04ee0: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( rc ) { ffc04ee4: 2f 83 00 00 cmpwi cr7,r3,0 ffc04ee8: 41 be 00 14 beq+ cr7,ffc04efc rc = errno; ffc04eec: 48 00 cd 21 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc04ef0: 3b 41 00 14 addi r26,r1,20 ffc04ef4: 83 23 00 00 lwz r25,0(r3) goto done; ffc04ef8: 48 00 00 7c b ffc04f74 <== ALWAYS TAKEN /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { ffc04efc: 73 c0 04 00 andi. r0,r30,1024 ffc04f00: 41 a2 00 c8 beq+ ffc04fc8 rc = ftruncate( iop - rtems_libio_iops, 0 ); ffc04f04: 3d 20 00 00 lis r9,0 ffc04f08: 80 69 27 4c lwz r3,10060(r9) ffc04f0c: 3c 00 38 e3 lis r0,14563 ffc04f10: 60 00 8e 39 ori r0,r0,36409 ffc04f14: 7c 63 f8 50 subf r3,r3,r31 ffc04f18: 7c 63 1e 70 srawi r3,r3,3 ffc04f1c: 7c 63 01 d6 mullw r3,r3,r0 ffc04f20: 38 a0 00 00 li r5,0 ffc04f24: 38 c0 00 00 li r6,0 ffc04f28: 48 00 80 bd bl ffc0cfe4 <== ALWAYS TAKEN if ( rc ) { ffc04f2c: 7c 79 1b 79 mr. r25,r3 ffc04f30: 41 a2 00 98 beq+ ffc04fc8 <== ALWAYS TAKEN if(errno) rc = errno; ffc04f34: 48 00 cc d9 bl ffc11c0c <__errno> <== NOT EXECUTED ffc04f38: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc04f3c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04f40: 41 be 00 0c beq+ cr7,ffc04f4c <== NOT EXECUTED ffc04f44: 48 00 cc c9 bl ffc11c0c <__errno> <== NOT EXECUTED ffc04f48: 83 23 00 00 lwz r25,0(r3) <== NOT EXECUTED close( iop - rtems_libio_iops ); ffc04f4c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc04f50: 80 69 27 4c lwz r3,10060(r9) <== NOT EXECUTED ffc04f54: 3c 00 38 e3 lis r0,14563 <== NOT EXECUTED ffc04f58: 60 00 8e 39 ori r0,r0,36409 <== NOT EXECUTED ffc04f5c: 7f e3 f8 50 subf r31,r3,r31 <== NOT EXECUTED ffc04f60: 7f e3 1e 70 srawi r3,r31,3 <== NOT EXECUTED ffc04f64: 7c 63 01 d6 mullw r3,r3,r0 <== NOT EXECUTED ffc04f68: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc04f6c: 48 00 7f b1 bl ffc0cf1c <== NOT EXECUTED ffc04f70: 3b e0 00 00 li r31,0 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { ffc04f74: 2f 99 00 00 cmpwi cr7,r25,0 ffc04f78: 41 be 00 50 beq+ cr7,ffc04fc8 <== NEVER TAKEN if ( iop ) ffc04f7c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc04f80: 41 9e 00 0c beq- cr7,ffc04f8c <== NEVER TAKEN rtems_libio_free( iop ); ffc04f84: 7f e3 fb 78 mr r3,r31 ffc04f88: 48 00 83 b5 bl ffc0d33c <== ALWAYS TAKEN if ( loc_to_free ) ffc04f8c: 2f 9a 00 00 cmpwi cr7,r26,0 ffc04f90: 41 9e 00 28 beq- cr7,ffc04fb8 rtems_filesystem_freenode( loc_to_free ); ffc04f94: 81 3a 00 0c lwz r9,12(r26) ffc04f98: 2f 89 00 00 cmpwi cr7,r9,0 ffc04f9c: 41 9e 00 1c beq- cr7,ffc04fb8 <== NEVER TAKEN ffc04fa0: 80 09 00 1c lwz r0,28(r9) ffc04fa4: 2f 80 00 00 cmpwi cr7,r0,0 ffc04fa8: 41 9e 00 10 beq- cr7,ffc04fb8 <== NEVER TAKEN ffc04fac: 7f 43 d3 78 mr r3,r26 ffc04fb0: 7c 09 03 a6 mtctr r0 ffc04fb4: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( rc ); ffc04fb8: 48 00 cc 55 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc04fbc: 93 23 00 00 stw r25,0(r3) ffc04fc0: 38 60 ff ff li r3,-1 ffc04fc4: 48 00 00 20 b ffc04fe4 <== ALWAYS TAKEN } return iop - rtems_libio_iops; ffc04fc8: 3d 20 00 00 lis r9,0 ffc04fcc: 80 69 27 4c lwz r3,10060(r9) ffc04fd0: 3c 00 38 e3 lis r0,14563 ffc04fd4: 60 00 8e 39 ori r0,r0,36409 ffc04fd8: 7c 63 f8 50 subf r3,r3,r31 ffc04fdc: 7c 63 1e 70 srawi r3,r3,3 ffc04fe0: 7c 63 01 d6 mullw r3,r3,r0 } ffc04fe4: 80 01 00 54 lwz r0,84(r1) <== ALWAYS TAKEN ffc04fe8: 83 21 00 34 lwz r25,52(r1) ffc04fec: 7c 08 03 a6 mtlr r0 ffc04ff0: 83 41 00 38 lwz r26,56(r1) ffc04ff4: 83 61 00 3c lwz r27,60(r1) ffc04ff8: 83 81 00 40 lwz r28,64(r1) ffc04ffc: 83 a1 00 44 lwz r29,68(r1) ffc05000: 83 c1 00 48 lwz r30,72(r1) ffc05004: 83 e1 00 4c lwz r31,76(r1) <== ALWAYS TAKEN ffc05008: 38 21 00 50 addi r1,r1,80 <== ALWAYS TAKEN ffc0500c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; ffc05010: 3b 41 00 14 addi r26,r1,20 <== NOT EXECUTED ffc05014: 3b 20 00 86 li r25,134 <== NOT EXECUTED ffc05018: 4b ff ff 64 b ffc04f7c <== NOT EXECUTED ffc04c90 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc04c90: 94 21 ff f0 stwu r1,-16(r1) ffc04c94: 7c 08 02 a6 mflr r0 int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { ffc04c98: 38 80 00 00 li r4,0 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc04c9c: 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) { ffc04ca0: 3f e0 ff c2 lis r31,-62 ffc04ca4: 3b ff d6 90 addi r31,r31,-10608 ffc04ca8: 7f e3 fb 78 mr r3,r31 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc04cac: 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) { ffc04cb0: 38 a0 00 00 li r5,0 ffc04cb4: 4c c6 31 82 crclr 4*cr1+eq ffc04cb8: 48 00 00 71 bl ffc04d28 <== ALWAYS TAKEN ffc04cbc: 2f 83 ff ff cmpwi cr7,r3,-1 <== ALWAYS TAKEN ffc04cc0: 41 9e 00 54 beq- cr7,ffc04d14 /* * 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) ffc04cc4: 7f e3 fb 78 mr r3,r31 ffc04cc8: 38 80 00 01 li r4,1 ffc04ccc: 38 a0 00 00 li r5,0 <== ALWAYS TAKEN ffc04cd0: 4c c6 31 82 crclr 4*cr1+eq <== ALWAYS TAKEN ffc04cd4: 48 00 00 55 bl ffc04d28 <== ALWAYS TAKEN ffc04cd8: 2f 83 ff ff cmpwi cr7,r3,-1 ffc04cdc: 40 be 00 10 bne+ cr7,ffc04cec <== ALWAYS TAKEN rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ ffc04ce0: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED ffc04ce4: 60 63 44 31 ori r3,r3,17457 <== NOT EXECUTED ffc04ce8: 48 00 00 28 b ffc04d10 <== NOT EXECUTED if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) ffc04cec: 7f e3 fb 78 mr r3,r31 ffc04cf0: 38 80 00 01 li r4,1 ffc04cf4: 38 a0 00 00 li r5,0 ffc04cf8: 4c c6 31 82 crclr 4*cr1+eq ffc04cfc: 48 00 00 2d bl ffc04d28 <== ALWAYS TAKEN ffc04d00: 2f 83 ff ff cmpwi cr7,r3,-1 <== ALWAYS TAKEN ffc04d04: 40 be 00 10 bne+ cr7,ffc04d14 <== ALWAYS TAKEN rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ ffc04d08: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED ffc04d0c: 60 63 44 32 ori r3,r3,17458 <== NOT EXECUTED ffc04d10: 48 00 36 dd bl ffc083ec <== NOT EXECUTED } ffc04d14: 80 01 00 14 lwz r0,20(r1) ffc04d18: 83 e1 00 0c lwz r31,12(r1) ffc04d1c: 38 21 00 10 addi r1,r1,16 ffc04d20: 7c 08 03 a6 mtlr r0 ffc04d24: 4e 80 00 20 blr <== ALWAYS TAKEN ffc058dc : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc058dc: 94 21 ff e8 stwu r1,-24(r1) <== ALWAYS TAKEN ffc058e0: 7c 08 02 a6 mflr r0 ffc058e4: 90 01 00 1c stw r0,28(r1) int i; if (tty->termios.c_oflag & OPOST) { ffc058e8: 80 04 00 34 lwz r0,52(r4) /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc058ec: 93 e1 00 14 stw r31,20(r1) ffc058f0: 7c 9f 23 78 mr r31,r4 int i; if (tty->termios.c_oflag & OPOST) { ffc058f4: 70 09 00 01 andi. r9,r0,1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc058f8: 98 61 00 08 stb r3,8(r1) <== ALWAYS TAKEN int i; if (tty->termios.c_oflag & OPOST) { ffc058fc: 41 82 01 3c beq- ffc05a38 <== NEVER TAKEN switch (c) { ffc05900: 2f 83 00 09 cmpwi cr7,r3,9 ffc05904: 41 9e 00 94 beq- cr7,ffc05998 ffc05908: 2b 83 00 09 cmplwi cr7,r3,9 ffc0590c: 41 9d 00 10 bgt- cr7,ffc0591c <== ALWAYS TAKEN ffc05910: 2f 83 00 08 cmpwi cr7,r3,8 <== NOT EXECUTED ffc05914: 40 be 00 cc bne+ cr7,ffc059e0 <== NOT EXECUTED ffc05918: 48 00 00 b0 b ffc059c8 <== NOT EXECUTED ffc0591c: 2f 83 00 0a cmpwi cr7,r3,10 <== ALWAYS TAKEN ffc05920: 41 9e 00 10 beq- cr7,ffc05930 ffc05924: 2f 83 00 0d cmpwi cr7,r3,13 ffc05928: 40 be 00 b8 bne+ cr7,ffc059e0 <== ALWAYS TAKEN ffc0592c: 48 00 00 38 b ffc05964 <== NOT EXECUTED case '\n': if (tty->termios.c_oflag & ONLRET) ffc05930: 70 09 00 20 andi. r9,r0,32 ffc05934: 41 82 00 0c beq- ffc05940 <== ALWAYS TAKEN tty->column = 0; ffc05938: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc0593c: 90 04 00 28 stw r0,40(r4) <== NOT EXECUTED if (tty->termios.c_oflag & ONLCR) { ffc05940: 80 1f 00 34 lwz r0,52(r31) ffc05944: 70 09 00 04 andi. r9,r0,4 ffc05948: 41 a2 00 f0 beq+ ffc05a38 <== NEVER TAKEN rtems_termios_puts ("\r", 1, tty); ffc0594c: 3c 60 ff c2 lis r3,-62 ffc05950: 38 63 de a7 addi r3,r3,-8537 ffc05954: 38 80 00 01 li r4,1 ffc05958: 7f e5 fb 78 mr r5,r31 <== ALWAYS TAKEN ffc0595c: 4b ff fe 09 bl ffc05764 <== ALWAYS TAKEN ffc05960: 48 00 00 30 b ffc05990 <== ALWAYS TAKEN tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) ffc05964: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED ffc05968: 41 82 00 10 beq- ffc05978 <== NOT EXECUTED ffc0596c: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED ffc05970: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05974: 41 9e 00 d4 beq- cr7,ffc05a48 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { ffc05978: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc0597c: 41 82 00 5c beq- ffc059d8 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) ffc05980: 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'; ffc05984: 38 00 00 0a li r0,10 <== NOT EXECUTED ffc05988: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) ffc0598c: 41 82 00 ac beq- ffc05a38 <== NOT EXECUTED tty->column = 0; ffc05990: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc05994: 48 00 00 a0 b ffc05a34 <== ALWAYS TAKEN tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { ffc05998: 54 00 04 e8 rlwinm r0,r0,0,19,20 ffc0599c: 2f 80 18 00 cmpwi cr7,r0,6144 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); ffc059a0: 80 04 00 28 lwz r0,40(r4) ffc059a4: 54 04 07 7e clrlwi r4,r0,29 ffc059a8: 20 84 00 08 subfic r4,r4,8 ffc059ac: 7c 04 02 14 add r0,r4,r0 if ((tty->termios.c_oflag & TABDLY) == XTABS) { ffc059b0: 40 be 00 84 bne+ cr7,ffc05a34 <== NEVER TAKEN tty->column += i; rtems_termios_puts ( " ", i, tty); ffc059b4: 3c 60 ff c2 lis r3,-62 <== ALWAYS TAKEN break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; ffc059b8: 90 1f 00 28 stw r0,40(r31) rtems_termios_puts ( " ", i, tty); ffc059bc: 38 63 db c6 addi r3,r3,-9274 ffc059c0: 7f e5 fb 78 mr r5,r31 ffc059c4: 48 00 00 80 b ffc05a44 <== ALWAYS TAKEN } tty->column += i; break; case '\b': if (tty->column > 0) ffc059c8: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED ffc059cc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc059d0: 40 9d 00 68 ble- cr7,ffc05a38 <== NOT EXECUTED tty->column--; ffc059d4: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc059d8: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED ffc059dc: 48 00 00 5c b ffc05a38 <== NOT EXECUTED break; default: if (tty->termios.c_oflag & OLCUC) ffc059e0: 70 09 00 02 andi. r9,r0,2 ffc059e4: 41 82 00 2c beq- ffc05a10 <== ALWAYS TAKEN c = toupper(c); ffc059e8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc059ec: 80 09 26 e0 lwz r0,9952(r9) <== NOT EXECUTED ffc059f0: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED ffc059f4: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED ffc059f8: 88 03 00 01 lbz r0,1(r3) <== NOT EXECUTED ffc059fc: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED ffc05a00: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc05a04: 40 be 00 08 bne+ cr7,ffc05a0c <== NOT EXECUTED ffc05a08: 39 29 ff e0 addi r9,r9,-32 <== NOT EXECUTED ffc05a0c: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED if (!iscntrl(c)) ffc05a10: 3d 20 00 00 lis r9,0 ffc05a14: 88 01 00 08 lbz r0,8(r1) ffc05a18: 81 29 26 e0 lwz r9,9952(r9) ffc05a1c: 7d 29 02 14 add r9,r9,r0 ffc05a20: 88 09 00 01 lbz r0,1(r9) ffc05a24: 70 09 00 20 andi. r9,r0,32 ffc05a28: 40 82 00 10 bne- ffc05a38 <== NEVER TAKEN tty->column++; ffc05a2c: 81 3f 00 28 lwz r9,40(r31) ffc05a30: 38 09 00 01 addi r0,r9,1 ffc05a34: 90 1f 00 28 stw r0,40(r31) break; } } rtems_termios_puts (&c, 1, tty); ffc05a38: 7f e5 fb 78 mr r5,r31 ffc05a3c: 38 61 00 08 addi r3,r1,8 <== ALWAYS TAKEN ffc05a40: 38 80 00 01 li r4,1 ffc05a44: 4b ff fd 21 bl ffc05764 <== ALWAYS TAKEN } ffc05a48: 80 01 00 1c lwz r0,28(r1) ffc05a4c: 83 e1 00 14 lwz r31,20(r1) ffc05a50: 38 21 00 18 addi r1,r1,24 ffc05a54: 7c 08 03 a6 mtlr r0 ffc05a58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06e0c : long pathconf( const char *path, int name ) { ffc06e0c: 94 21 ff e8 stwu r1,-24(r1) ffc06e10: 7c 08 02 a6 mflr r0 ffc06e14: 93 c1 00 10 stw r30,16(r1) ffc06e18: 7c 9e 23 78 mr r30,r4 int status; int fd; fd = open( path, O_RDONLY ); ffc06e1c: 38 80 00 00 li r4,0 long pathconf( const char *path, int name ) { ffc06e20: 93 a1 00 0c stw r29,12(r1) int status; int fd; fd = open( path, O_RDONLY ); if ( fd == -1 ) ffc06e24: 3b a0 ff ff li r29,-1 long pathconf( const char *path, int name ) { ffc06e28: 93 e1 00 14 stw r31,20(r1) ffc06e2c: 90 01 00 1c stw r0,28(r1) int status; int fd; fd = open( path, O_RDONLY ); ffc06e30: 4c c6 31 82 crclr 4*cr1+eq ffc06e34: 4b ff fc d1 bl ffc06b04 <== ALWAYS TAKEN if ( fd == -1 ) ffc06e38: 2f 83 ff ff cmpwi cr7,r3,-1 ) { int status; int fd; fd = open( path, O_RDONLY ); ffc06e3c: 7c 7f 1b 78 mr r31,r3 if ( fd == -1 ) ffc06e40: 41 9e 00 18 beq- cr7,ffc06e58 return -1; status = fpathconf( fd, name ); ffc06e44: 7f c4 f3 78 mr r4,r30 ffc06e48: 4b ff e8 7d bl ffc056c4 <== ALWAYS TAKEN ffc06e4c: 7c 7d 1b 78 mr r29,r3 (void) close( fd ); ffc06e50: 7f e3 fb 78 mr r3,r31 ffc06e54: 4b ff e1 25 bl ffc04f78 <== ALWAYS TAKEN return status; } ffc06e58: 80 01 00 1c lwz r0,28(r1) ffc06e5c: 7f a3 eb 78 mr r3,r29 ffc06e60: 83 c1 00 10 lwz r30,16(r1) ffc06e64: 7c 08 03 a6 mtlr r0 ffc06e68: 83 a1 00 0c lwz r29,12(r1) ffc06e6c: 83 e1 00 14 lwz r31,20(r1) ffc06e70: 38 21 00 18 addi r1,r1,24 ffc06e74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a058 : /* * 3.4.2 Suspend Process Execution, P1003.1b-1993, p. 81 */ int pause( void ) { ffc0a058: 94 21 ff e0 stwu r1,-32(r1) ffc0a05c: 7c 08 02 a6 mflr r0 ffc0a060: 93 e1 00 1c stw r31,28(r1) sigset_t all_signals; int status; (void) sigfillset( &all_signals ); ffc0a064: 3b e1 00 08 addi r31,r1,8 ffc0a068: 7f e3 fb 78 mr r3,r31 /* * 3.4.2 Suspend Process Execution, P1003.1b-1993, p. 81 */ int pause( void ) { ffc0a06c: 90 01 00 24 stw r0,36(r1) sigset_t all_signals; int status; (void) sigfillset( &all_signals ); ffc0a070: 48 00 0c 4d bl ffc0acbc <== ALWAYS TAKEN status = sigtimedwait( &all_signals, NULL, NULL ); ffc0a074: 7f e3 fb 78 mr r3,r31 ffc0a078: 38 80 00 00 li r4,0 ffc0a07c: 38 a0 00 00 li r5,0 ffc0a080: 48 00 0e 65 bl ffc0aee4 <== ALWAYS TAKEN return status; } ffc0a084: 80 01 00 24 lwz r0,36(r1) ffc0a088: 83 e1 00 1c lwz r31,28(r1) ffc0a08c: 38 21 00 20 addi r1,r1,32 ffc0a090: 7c 08 03 a6 mtlr r0 ffc0a094: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06e78 : int pipe( int filsdes[2] ) { if (filsdes == NULL) { ffc06e78: 2f 83 00 00 cmpwi cr7,r3,0 extern int pipe_create(int filsdes[2]); int pipe( int filsdes[2] ) { ffc06e7c: 94 21 ff f8 stwu r1,-8(r1) ffc06e80: 7c 08 02 a6 mflr r0 ffc06e84: 90 01 00 0c stw r0,12(r1) if (filsdes == NULL) { ffc06e88: 40 be 00 18 bne+ cr7,ffc06ea0 errno = EFAULT; ffc06e8c: 48 00 df a9 bl ffc14e34 <__errno> <== ALWAYS TAKEN ffc06e90: 38 00 00 0e li r0,14 ffc06e94: 90 03 00 00 stw r0,0(r3) ffc06e98: 38 60 ff ff li r3,-1 return -1; ffc06e9c: 48 00 00 08 b ffc06ea4 <== ALWAYS TAKEN } return pipe_create(filsdes); ffc06ea0: 48 00 71 15 bl ffc0dfb4 <== ALWAYS TAKEN } ffc06ea4: 80 01 00 0c lwz r0,12(r1) ffc06ea8: 38 21 00 08 addi r1,r1,8 ffc06eac: 7c 08 03 a6 mtlr r0 ffc06eb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1106c : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc1106c: 94 21 ff b8 stwu r1,-72(r1) ffc11070: 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) ffc11074: 38 80 00 03 li r4,3 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc11078: 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) ffc1107c: 3f a0 ff c2 lis r29,-62 ffc11080: 3b bd e4 34 addi r29,r29,-7116 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc11084: 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) ffc11088: 3b c1 00 18 addi r30,r1,24 ffc1108c: 38 a0 00 07 li r5,7 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc11090: 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) ffc11094: 7f c6 f3 78 mr r6,r30 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc11098: 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) ffc1109c: 38 e0 00 01 li r7,1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc110a0: 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) ffc110a4: 7f a3 eb 78 mr r3,r29 ffc110a8: 4b ff 2e cd bl ffc03f74 <== ALWAYS TAKEN ffc110ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc110b0: 41 be 00 2c beq+ cr7,ffc110dc <== NEVER TAKEN != 0) { if (errno != ENOENT) ffc110b4: 48 00 0b 59 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc110b8: 80 03 00 00 lwz r0,0(r3) ffc110bc: 2f 80 00 02 cmpwi cr7,r0,2 ffc110c0: 40 be 01 44 bne+ cr7,ffc11204 <== NEVER TAKEN return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) ffc110c4: 7f a3 eb 78 mr r3,r29 ffc110c8: 38 80 03 ff li r4,1023 ffc110cc: 4b ff 34 19 bl ffc044e4 <== ALWAYS TAKEN ffc110d0: 2f 83 00 00 cmpwi cr7,r3,0 ffc110d4: 41 be 00 2c beq+ cr7,ffc11100 <== ALWAYS TAKEN ffc110d8: 48 00 01 2c b ffc11204 <== NOT EXECUTED return -1; } else rtems_filesystem_freenode(&loc); ffc110dc: 81 21 00 24 lwz r9,36(r1) <== NOT EXECUTED ffc110e0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc110e4: 41 9e 00 1c beq- cr7,ffc11100 <== NOT EXECUTED ffc110e8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc110ec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc110f0: 41 9e 00 10 beq- cr7,ffc11100 <== NOT EXECUTED ffc110f4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc110f8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc110fc: 4e 80 04 21 bctrl <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc11100: 3d 20 00 00 lis r9,0 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc11104: 3d 40 ff c2 lis r10,-62 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc11108: a1 09 27 f8 lhz r8,10232(r9) else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc1110c: 39 6a e4 39 addi r11,r10,-7111 ffc11110: 81 4a e4 39 lwz r10,-7111(r10) ffc11114: a0 0b 00 08 lhz r0,8(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc11118: 3c 80 ff c2 lis r4,-62 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc1111c: 81 6b 00 04 lwz r11,4(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc11120: 7d 05 43 78 mr r5,r8 ffc11124: 38 84 e4 44 addi r4,r4,-7100 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc11128: 91 41 00 08 stw r10,8(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc1112c: 39 08 00 01 addi r8,r8,1 ffc11130: 38 61 00 12 addi r3,r1,18 ffc11134: b1 09 27 f8 sth r8,10232(r9) /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { ffc11138: 3b c1 00 08 addi r30,r1,8 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc1113c: 91 61 00 0c stw r11,12(r1) ffc11140: b0 01 00 10 sth r0,16(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc11144: 4c c6 31 82 crclr 4*cr1+eq ffc11148: 48 00 19 8d bl ffc12ad4 <== ALWAYS TAKEN /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { ffc1114c: 7f c3 f3 78 mr r3,r30 ffc11150: 38 80 01 80 li r4,384 ffc11154: 48 00 01 49 bl ffc1129c <== ALWAYS TAKEN ffc11158: 2f 83 00 00 cmpwi cr7,r3,0 ffc1115c: 41 be 00 0c beq+ cr7,ffc11168 <== ALWAYS TAKEN if (errno != EEXIST){ ffc11160: 48 00 0a ad bl ffc11c0c <__errno> <== NOT EXECUTED ffc11164: 48 00 00 a0 b ffc11204 <== 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); ffc11168: 7f c3 f3 78 mr r3,r30 ffc1116c: 38 80 40 00 li r4,16384 ffc11170: 4c c6 31 82 crclr 4*cr1+eq ffc11174: 4b ff 3b b5 bl ffc04d28 <== ALWAYS TAKEN if (filsdes[0] < 0) { ffc11178: 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); ffc1117c: 90 7f 00 00 stw r3,0(r31) if (filsdes[0] < 0) { ffc11180: 40 bc 00 14 bge+ cr7,ffc11194 <== NEVER TAKEN err = errno; ffc11184: 48 00 0a 89 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc11188: 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); ffc1118c: 7f c3 f3 78 mr r3,r30 ffc11190: 48 00 00 68 b ffc111f8 <== ALWAYS TAKEN } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); ffc11194: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc11198: 80 09 26 8c lwz r0,9868(r9) <== NOT EXECUTED ffc1119c: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc111a0: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc111a4: 40 9c 00 14 bge- cr7,ffc111b8 <== NOT EXECUTED ffc111a8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc111ac: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc111b0: 81 29 27 4c lwz r9,10060(r9) <== NOT EXECUTED ffc111b4: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc111b8: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); ffc111bc: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc111c0: 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; ffc111c4: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc111c8: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { ffc111cc: 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); ffc111d0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc111d4: 4b ff 3b 55 bl ffc04d28 <== NOT EXECUTED if (filsdes[1] < 0) { ffc111d8: 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); ffc111dc: 90 7f 00 04 stw r3,4(r31) <== NOT EXECUTED if (filsdes[1] < 0) { ffc111e0: 40 bc 00 14 bge+ cr7,ffc111f4 <== NOT EXECUTED err = errno; ffc111e4: 48 00 0a 29 bl ffc11c0c <__errno> <== NOT EXECUTED ffc111e8: 83 a3 00 00 lwz r29,0(r3) <== NOT EXECUTED close(filsdes[0]); ffc111ec: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc111f0: 4b ff bd 2d bl ffc0cf1c <== NOT EXECUTED } unlink(fifopath); ffc111f4: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc111f8: 48 00 00 d1 bl ffc112c8 <== ALWAYS TAKEN } rtems_set_errno_and_return_minus_one(err); ffc111fc: 48 00 0a 11 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc11200: 93 a3 00 00 stw r29,0(r3) } ffc11204: 80 01 00 4c lwz r0,76(r1) ffc11208: 38 60 ff ff li r3,-1 ffc1120c: 83 a1 00 3c lwz r29,60(r1) ffc11210: 7c 08 03 a6 mtlr r0 ffc11214: 83 c1 00 40 lwz r30,64(r1) ffc11218: 83 e1 00 44 lwz r31,68(r1) ffc1121c: 38 21 00 48 addi r1,r1,72 ffc11220: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f888 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { ffc0f888: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0f88c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0f890: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0f894: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc0f898: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); ffc0f89c: 80 63 00 2c lwz r3,44(r3) <== NOT EXECUTED ffc0f8a0: 48 00 0f d9 bl ffc10878 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); ffc0f8a4: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f8a8: 48 00 0f d1 bl ffc10878 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); ffc0f8ac: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f8b0: 4b ff 82 45 bl ffc07af4 <== NOT EXECUTED free(pipe->Buffer); ffc0f8b4: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0f8b8: 4b ff 47 a1 bl ffc04058 <== NOT EXECUTED free(pipe); ffc0f8bc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0f8c0: 4b ff 47 99 bl ffc04058 <== NOT EXECUTED } ffc0f8c4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0f8c8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0f8cc: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0f8d0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0f8d4: 4e 80 00 20 blr <== NOT EXECUTED ffc0f3e0 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc0f3e0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0f3e4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0f3e8: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (cmd == FIONREAD) { ffc0f3ec: 3c 00 40 04 lis r0,16388 <== NOT EXECUTED ffc0f3f0: 60 00 66 7f ori r0,r0,26239 <== NOT EXECUTED ffc0f3f4: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc0f3f8: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc0f3fc: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED ffc0f400: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc0f404: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (cmd == FIONREAD) { ffc0f408: 38 60 ff ea li r3,-22 <== NOT EXECUTED ffc0f40c: 40 be 00 40 bne+ cr7,ffc0f44c <== NOT EXECUTED if (buffer == NULL) ffc0f410: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc0f414: 38 60 ff f2 li r3,-14 <== NOT EXECUTED ffc0f418: 41 be 00 34 beq+ cr7,ffc0f44c <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) ffc0f41c: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f420: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f424: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f428: 4b ff 87 99 bl ffc07bc0 <== NOT EXECUTED ffc0f42c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f430: 38 60 ff fc li r3,-4 <== NOT EXECUTED ffc0f434: 40 be 00 18 bne+ cr7,ffc0f44c <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc0f438: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0f43c: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc0f440: 90 1e 00 00 stw r0,0(r30) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0f444: 4b ff 88 c1 bl ffc07d04 <== NOT EXECUTED ffc0f448: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; } return -EINVAL; } ffc0f44c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0f450: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc0f454: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0f458: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0f45c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0f460: 4e 80 00 20 blr <== NOT EXECUTED ffc0f368 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } ffc0f368: 38 60 ff e3 li r3,-29 <== NOT EXECUTED ffc0f36c: 4e 80 00 20 blr <== NOT EXECUTED ffc0f464 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f464: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc0f468: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0f46c: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc0f470: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED ffc0f474: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0f478: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f47c: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc0f480: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0f484: 38 80 00 00 li r4,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f488: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc0f48c: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0f490: 38 a0 00 00 li r5,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f494: 93 01 00 18 stw r24,24(r1) <== NOT EXECUTED ffc0f498: 7c d8 33 78 mr r24,r6 <== NOT EXECUTED ffc0f49c: 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); ffc0f4a0: 3b 21 00 08 addi r25,r1,8 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f4a4: 93 81 00 28 stw r28,40(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0f4a8: 3b 80 00 00 li r28,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f4ac: 93 41 00 20 stw r26,32(r1) <== NOT EXECUTED ffc0f4b0: 93 61 00 24 stw r27,36(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc0f4b4: 4b ff 87 0d bl ffc07bc0 <== NOT EXECUTED ffc0f4b8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f4bc: 41 be 01 44 beq+ cr7,ffc0f600 <== NOT EXECUTED ffc0f4c0: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc0f4c4: 48 00 01 5c b ffc0f620 <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) ffc0f4c8: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0f4cc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f4d0: 41 9e 01 38 beq- cr7,ffc0f608 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { ffc0f4d4: 80 18 00 18 lwz r0,24(r24) <== NOT EXECUTED ffc0f4d8: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0f4dc: 41 a2 00 0c beq+ ffc0f4e8 <== NOT EXECUTED ffc0f4e0: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED ffc0f4e4: 48 00 01 28 b ffc0f60c <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; ffc0f4e8: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0f4ec: 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 ++; ffc0f4f0: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc0f4f4: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0f4f8: 4b ff 88 0d bl ffc07d04 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc0f4fc: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f500: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f504: 48 00 14 7d bl ffc10980 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0f508: 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)) ffc0f50c: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED ffc0f510: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0f514: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f518: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f51c: 4b ff 86 a5 bl ffc07bc0 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ffc0f520: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0f524: 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)) ffc0f528: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) ffc0f52c: 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)) { ffc0f530: 41 ba 00 0c beq+ cr6,ffc0f53c <== NOT EXECUTED ffc0f534: 3b 60 ff fc li r27,-4 <== NOT EXECUTED ffc0f538: 48 00 00 dc b ffc0f614 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; ffc0f53c: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED ffc0f540: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0f544: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED if (ret != 0) ffc0f548: 40 9e 00 c4 bne- cr7,ffc0f60c <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { ffc0f54c: 83 7f 00 0c lwz r27,12(r31) <== NOT EXECUTED ffc0f550: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc0f554: 41 9e ff 74 beq+ cr7,ffc0f4c8 <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); ffc0f558: 7c 1c f0 50 subf r0,r28,r30 <== NOT EXECUTED ffc0f55c: 7f 9b 00 40 cmplw cr7,r27,r0 <== NOT EXECUTED ffc0f560: 40 9d 00 08 ble- cr7,ffc0f568 <== NOT EXECUTED ffc0f564: 7c 1b 03 78 mr r27,r0 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; ffc0f568: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc0f56c: 7c 7d e2 14 add r3,r29,r28 <== NOT EXECUTED ffc0f570: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED ffc0f574: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc0f578: 7f 40 d0 50 subf r26,r0,r26 <== NOT EXECUTED if (chunk > chunk1) { ffc0f57c: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED ffc0f580: 40 9d 00 24 ble- cr7,ffc0f5a4 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); ffc0f584: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc0f588: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc0f58c: 48 00 32 69 bl ffc127f4 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); ffc0f590: 7c 7c d2 14 add r3,r28,r26 <== NOT EXECUTED ffc0f594: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc0f598: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc0f59c: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED ffc0f5a0: 48 00 00 0c b ffc0f5ac <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); ffc0f5a4: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc0f5a8: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc0f5ac: 48 00 32 49 bl ffc127f4 <== NOT EXECUTED pipe->Start += chunk; ffc0f5b0: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED pipe->Start %= pipe->Size; ffc0f5b4: 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; ffc0f5b8: 7d 3b 4a 14 add r9,r27,r9 <== NOT EXECUTED pipe->Start %= pipe->Size; pipe->Length -= chunk; ffc0f5bc: 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; ffc0f5c0: 7d 49 5b 96 divwu r10,r9,r11 <== NOT EXECUTED pipe->Length -= chunk; ffc0f5c4: 7c 1b 00 50 subf r0,r27,r0 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc0f5c8: 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; ffc0f5cc: 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; ffc0f5d0: 7d 6a 59 d6 mullw r11,r10,r11 <== NOT EXECUTED ffc0f5d4: 7d 2b 48 50 subf r9,r11,r9 <== NOT EXECUTED ffc0f5d8: 91 3f 00 08 stw r9,8(r31) <== NOT EXECUTED pipe->Length -= chunk; /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc0f5dc: 40 9e 00 08 bne- cr7,ffc0f5e4 <== NOT EXECUTED pipe->Start = 0; ffc0f5e0: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED if (pipe->waitingWriters > 0) ffc0f5e4: 80 1f 00 1c lwz r0,28(r31) <== NOT EXECUTED ffc0f5e8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f5ec: 41 be 00 10 beq+ cr7,ffc0f5fc <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); ffc0f5f0: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f5f4: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc0f5f8: 48 00 13 09 bl ffc10900 <== NOT EXECUTED read += chunk; ffc0f5fc: 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) { ffc0f600: 7f 9c f0 40 cmplw cr7,r28,r30 <== NOT EXECUTED ffc0f604: 41 9c ff 48 blt+ cr7,ffc0f54c <== NOT EXECUTED ffc0f608: 3b 60 00 00 li r27,0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); ffc0f60c: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f610: 4b ff 86 f5 bl ffc07d04 <== NOT EXECUTED out_nolock: if (read > 0) ffc0f614: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0f618: 41 bd 00 08 bgt+ cr7,ffc0f620 <== NOT EXECUTED ffc0f61c: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED return read; return ret; } ffc0f620: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc0f624: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0f628: 83 01 00 18 lwz r24,24(r1) <== NOT EXECUTED ffc0f62c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0f630: 83 21 00 1c lwz r25,28(r1) <== NOT EXECUTED ffc0f634: 83 41 00 20 lwz r26,32(r1) <== NOT EXECUTED ffc0f638: 83 61 00 24 lwz r27,36(r1) <== NOT EXECUTED ffc0f63c: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED ffc0f640: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc0f644: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc0f648: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc0f64c: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc0f650: 4e 80 00 20 blr <== NOT EXECUTED ffc0f8d8 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0f8d8: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0f8dc: 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, ffc0f8e0: 38 a0 00 00 li r5,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0f8e4: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc0f8e8: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED pipe_control_t *pipe = *pipep; ffc0f8ec: 83 e3 00 00 lwz r31,0(r3) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0f8f0: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc0f8f4: 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, ffc0f8f8: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0f8fc: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc0f900: 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, ffc0f904: 38 80 00 00 li r4,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc0f908: 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, ffc0f90c: 4b ff 82 b5 bl ffc07bc0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) ffc0f910: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f914: 40 9e 00 50 bne- cr7,ffc0f964 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); ffc0f918: 83 de 00 18 lwz r30,24(r30) <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc0f91c: 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); ffc0f920: 57 de 07 7c rlwinm r30,r30,0,29,30 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc0f924: 41 82 00 10 beq- ffc0f934 <== NOT EXECUTED pipe->Readers --; ffc0f928: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED ffc0f92c: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0f930: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) ffc0f934: 73 c0 00 04 andi. r0,r30,4 <== NOT EXECUTED ffc0f938: 41 82 00 10 beq- ffc0f948 <== NOT EXECUTED pipe->Writers --; ffc0f93c: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED ffc0f940: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0f944: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, ffc0f948: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0f94c: 80 69 29 90 lwz r3,10640(r9) <== NOT EXECUTED ffc0f950: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f954: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f958: 4b ff 82 69 bl ffc07bc0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) ffc0f95c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f960: 41 be 00 08 beq+ cr7,ffc0f968 <== NOT EXECUTED rtems_fatal_error_occurred(sc); ffc0f964: 4b ff 8a 89 bl ffc083ec <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0f968: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f96c: 4b ff 83 99 bl ffc07d04 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { ffc0f970: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0f974: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f978: 40 9e 00 30 bne- cr7,ffc0f9a8 <== NOT EXECUTED ffc0f97c: 83 9f 00 14 lwz r28,20(r31) <== NOT EXECUTED ffc0f980: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0f984: 40 be 00 14 bne+ cr7,ffc0f998 <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); ffc0f988: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0f98c: 4b ff fe fd bl ffc0f888 <== NOT EXECUTED *pipep = NULL; ffc0f990: 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) { ffc0f994: 48 00 00 34 b ffc0f9c8 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) ffc0f998: 2f 9e 00 04 cmpwi cr7,r30,4 <== NOT EXECUTED ffc0f99c: 41 be 00 0c beq+ cr7,ffc0f9a8 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); ffc0f9a0: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f9a4: 48 00 00 1c b ffc0f9c0 <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) ffc0f9a8: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc0f9ac: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f9b0: 40 9e 00 18 bne- cr7,ffc0f9c8 <== NOT EXECUTED ffc0f9b4: 2f 9e 00 02 cmpwi cr7,r30,2 <== NOT EXECUTED ffc0f9b8: 41 9e 00 10 beq- cr7,ffc0f9c8 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0f9bc: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f9c0: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc0f9c4: 48 00 0f 3d bl ffc10900 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); ffc0f9c8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0f9cc: 80 69 29 90 lwz r3,10640(r9) <== NOT EXECUTED ffc0f9d0: 4b ff 83 35 bl ffc07d04 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc0f9d4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0f9d8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0f9dc: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc0f9e0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0f9e4: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0f9e8: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0f9ec: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0f9f0: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0f9f4: 4e 80 00 20 blr <== NOT EXECUTED ffc0f654 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f654: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc0f658: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0f65c: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0f660: 7c be 2b 79 mr. r30,r5 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f664: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED ffc0f668: 7c d7 33 78 mr r23,r6 <== NOT EXECUTED ffc0f66c: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0f670: 3b 80 00 00 li r28,0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc0f674: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc0f678: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED ffc0f67c: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc0f680: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0f684: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc0f688: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED ffc0f68c: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc0f690: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED ffc0f694: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc0f698: 41 a2 01 b8 beq+ ffc0f850 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) ffc0f69c: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED ffc0f6a0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f6a4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f6a8: 4b ff 85 19 bl ffc07bc0 <== NOT EXECUTED ffc0f6ac: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc0f6b0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f6b4: 40 9e 01 9c bne- cr7,ffc0f850 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { ffc0f6b8: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0f6bc: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc0f6c0: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc0f6c4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f6c8: 41 9e 01 60 beq- cr7,ffc0f828 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; ffc0f6cc: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc0f6d0: 7f d9 f3 78 mr r25,r30 <== NOT EXECUTED ffc0f6d4: 7f 9e 00 40 cmplw cr7,r30,r0 <== NOT EXECUTED ffc0f6d8: 40 9d 00 08 ble- cr7,ffc0f6e0 <== NOT EXECUTED ffc0f6dc: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc0f6e0: 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); ffc0f6e4: 3b 01 00 08 addi r24,r1,8 <== NOT EXECUTED ffc0f6e8: 48 00 01 34 b ffc0f81c <== 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)) { ffc0f6ec: 80 17 00 18 lwz r0,24(r23) <== NOT EXECUTED ffc0f6f0: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0f6f4: 41 a2 00 0c beq+ ffc0f700 <== NOT EXECUTED ffc0f6f8: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED ffc0f6fc: 48 00 01 2c b ffc0f828 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; ffc0f700: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0f704: 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 ++; ffc0f708: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc0f70c: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc0f710: 4b ff 85 f5 bl ffc07d04 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc0f714: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc0f718: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0f71c: 48 00 12 65 bl ffc10980 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0f720: 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)) ffc0f724: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED ffc0f728: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0f72c: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f730: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc0f734: 4b ff 84 8d bl ffc07bc0 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ffc0f738: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc0f73c: 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)) ffc0f740: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) ffc0f744: 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)) { ffc0f748: 41 ba 00 0c beq+ cr6,ffc0f754 <== NOT EXECUTED ffc0f74c: 3b 60 ff fc li r27,-4 <== NOT EXECUTED ffc0f750: 48 00 00 f4 b ffc0f844 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; ffc0f754: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED ffc0f758: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc0f75c: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED if (ret != 0) ffc0f760: 40 9e 00 c8 bne- cr7,ffc0f828 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { ffc0f764: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc0f768: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f76c: 40 be 00 0c bne+ cr7,ffc0f778 <== NOT EXECUTED ffc0f770: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc0f774: 48 00 00 b4 b ffc0f828 <== 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) { ffc0f778: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED ffc0f77c: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED ffc0f780: 7f 60 d0 50 subf r27,r0,r26 <== NOT EXECUTED ffc0f784: 7f 9b c8 40 cmplw cr7,r27,r25 <== NOT EXECUTED ffc0f788: 41 9c ff 64 blt+ cr7,ffc0f6ec <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); ffc0f78c: 7d 3c f0 50 subf r9,r28,r30 <== NOT EXECUTED ffc0f790: 7f 9b 48 40 cmplw cr7,r27,r9 <== NOT EXECUTED ffc0f794: 40 9d 00 08 ble- cr7,ffc0f79c <== NOT EXECUTED ffc0f798: 7d 3b 4b 78 mr r27,r9 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); ffc0f79c: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED ffc0f7a0: 7c 9d e2 14 add r4,r29,r28 <== NOT EXECUTED ffc0f7a4: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0f7a8: 7d 20 4a 14 add r9,r0,r9 <== NOT EXECUTED ffc0f7ac: 7c 09 d3 96 divwu r0,r9,r26 <== NOT EXECUTED ffc0f7b0: 7c 00 d1 d6 mullw r0,r0,r26 <== NOT EXECUTED ffc0f7b4: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED ffc0f7b8: 7f 40 d0 50 subf r26,r0,r26 <== NOT EXECUTED if (chunk > chunk1) { ffc0f7bc: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED ffc0f7c0: 40 9d 00 24 ble- cr7,ffc0f7e4 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); ffc0f7c4: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc0f7c8: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc0f7cc: 48 00 30 29 bl ffc127f4 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); ffc0f7d0: 7c 9a e2 14 add r4,r26,r28 <== NOT EXECUTED ffc0f7d4: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc0f7d8: 7c 9d 22 14 add r4,r29,r4 <== NOT EXECUTED ffc0f7dc: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED ffc0f7e0: 48 00 00 0c b ffc0f7ec <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); ffc0f7e4: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc0f7e8: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc0f7ec: 48 00 30 09 bl ffc127f4 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) ffc0f7f0: 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; ffc0f7f4: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc0f7f8: 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; ffc0f7fc: 7c 00 da 14 add r0,r0,r27 <== NOT EXECUTED ffc0f800: 90 1f 00 0c stw r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc0f804: 41 be 00 10 beq+ cr7,ffc0f814 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc0f808: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc0f80c: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc0f810: 48 00 10 f1 bl ffc10900 <== NOT EXECUTED written += chunk; ffc0f814: 7f 9c da 14 add r28,r28,r27 <== NOT EXECUTED ffc0f818: 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) { ffc0f81c: 7f 9c f0 40 cmplw cr7,r28,r30 <== NOT EXECUTED ffc0f820: 41 9c ff 58 blt+ cr7,ffc0f778 <== NOT EXECUTED ffc0f824: 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); ffc0f828: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc0f82c: 4b ff 84 d9 bl ffc07d04 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) ffc0f830: 2f 9b ff e0 cmpwi cr7,r27,-32 <== NOT EXECUTED ffc0f834: 40 be 00 10 bne+ cr7,ffc0f844 <== NOT EXECUTED kill(getpid(), SIGPIPE); ffc0f838: 48 00 09 d9 bl ffc10210 <== NOT EXECUTED ffc0f83c: 38 80 00 0d li r4,13 <== NOT EXECUTED ffc0f840: 48 00 0c 59 bl ffc10498 <== NOT EXECUTED #endif if (written > 0) ffc0f844: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0f848: 41 bd 00 08 bgt+ cr7,ffc0f850 <== NOT EXECUTED ffc0f84c: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED return written; return ret; } ffc0f850: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc0f854: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0f858: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc0f85c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0f860: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc0f864: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc0f868: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc0f86c: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc0f870: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc0f874: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc0f878: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc0f87c: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc0f880: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc0f884: 4e 80 00 20 blr <== NOT EXECUTED ffc08670 : int posix_memalign( void **pointer, size_t alignment, size_t size ) { ffc08670: 7c 08 02 a6 mflr r0 ffc08674: 94 21 ff f8 stwu r1,-8(r1) ffc08678: 90 01 00 0c stw r0,12(r1) /* * Update call statistics */ MSBUMP(memalign_calls, 1); if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) ffc0867c: 38 04 ff ff addi r0,r4,-1 ffc08680: 7c 0b 20 39 and. r11,r0,r4 ) { /* * Update call statistics */ MSBUMP(memalign_calls, 1); ffc08684: 3d 60 00 00 lis r11,0 ffc08688: 39 6b 34 28 addi r11,r11,13352 ffc0868c: 81 4b 00 08 lwz r10,8(r11) ffc08690: 38 0a 00 01 addi r0,r10,1 ffc08694: 90 0b 00 08 stw r0,8(r11) if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) ffc08698: 40 82 00 14 bne- ffc086ac <== NEVER TAKEN ffc0869c: 2b 84 00 03 cmplwi cr7,r4,3 ffc086a0: 40 bd 00 0c ble+ cr7,ffc086ac /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); ffc086a4: 48 00 02 75 bl ffc08918 <== ALWAYS TAKEN ffc086a8: 48 00 00 08 b ffc086b0 <== ALWAYS TAKEN ffc086ac: 38 60 00 16 li r3,22 } ffc086b0: 80 01 00 0c lwz r0,12(r1) ffc086b4: 38 21 00 08 addi r1,r1,8 ffc086b8: 7c 08 03 a6 mtlr r0 ffc086bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05030 : * printk * * Kernel printf function requiring minimal infrastrure. */ void printk(const char *fmt, ...) { ffc05030: 94 21 ff 88 stwu r1,-120(r1) ffc05034: 7c 08 02 a6 mflr r0 ffc05038: 90 81 00 1c stw r4,28(r1) ffc0503c: 90 01 00 7c stw r0,124(r1) ffc05040: 90 a1 00 20 stw r5,32(r1) ffc05044: 90 c1 00 24 stw r6,36(r1) ffc05048: 90 e1 00 28 stw r7,40(r1) ffc0504c: 91 01 00 2c stw r8,44(r1) ffc05050: 91 21 00 30 stw r9,48(r1) ffc05054: 91 41 00 34 stw r10,52(r1) ffc05058: 40 86 00 24 bne- cr1,ffc0507c <== ALWAYS TAKEN ffc0505c: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc05060: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc05064: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc05068: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc0506c: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc05070: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc05074: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc05078: 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 */ ffc0507c: 38 00 00 01 li r0,1 ffc05080: 98 01 00 08 stb r0,8(r1) ffc05084: 38 00 00 00 li r0,0 vprintk(fmt, ap); ffc05088: 38 81 00 08 addi r4,r1,8 <== ALWAYS TAKEN */ 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 */ ffc0508c: 98 01 00 09 stb r0,9(r1) ffc05090: 38 01 00 80 addi r0,r1,128 ffc05094: 90 01 00 0c stw r0,12(r1) ffc05098: 38 01 00 18 addi r0,r1,24 ffc0509c: 90 01 00 10 stw r0,16(r1) vprintk(fmt, ap); ffc050a0: 48 00 1f ed bl ffc0708c <== ALWAYS TAKEN va_end(ap); /* clean up when done */ } ffc050a4: 80 01 00 7c lwz r0,124(r1) ffc050a8: 38 21 00 78 addi r1,r1,120 ffc050ac: 7c 08 03 a6 mtlr r0 ffc050b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06830 : int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... ) { ffc06830: 94 21 ff 90 stwu r1,-112(r1) ffc06834: 7c 08 02 a6 mflr r0 ffc06838: 90 a1 00 18 stw r5,24(r1) ffc0683c: 90 01 00 74 stw r0,116(r1) ffc06840: 90 c1 00 1c stw r6,28(r1) ffc06844: 90 e1 00 20 stw r7,32(r1) ffc06848: 91 01 00 24 stw r8,36(r1) ffc0684c: 91 21 00 28 stw r9,40(r1) ffc06850: 91 41 00 2c stw r10,44(r1) ffc06854: 40 86 00 24 bne- cr1,ffc06878 <== ALWAYS TAKEN ffc06858: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0685c: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc06860: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc06864: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc06868: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0686c: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc06870: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc06874: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arg_pointer; va_start (arg_pointer, format); ffc06878: 38 00 00 02 li r0,2 ffc0687c: 98 01 00 08 stb r0,8(r1) ffc06880: 38 00 00 00 li r0,0 vprintk( format, arg_pointer ); ffc06884: 7c 83 23 78 mr r3,r4 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06888: 98 01 00 09 stb r0,9(r1) ffc0688c: 38 01 00 78 addi r0,r1,120 vprintk( format, arg_pointer ); ffc06890: 38 81 00 08 addi r4,r1,8 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06894: 90 01 00 0c stw r0,12(r1) ffc06898: 38 01 00 10 addi r0,r1,16 ffc0689c: 90 01 00 10 stw r0,16(r1) vprintk( format, arg_pointer ); ffc068a0: 48 00 1f f1 bl ffc08890 <== ALWAYS TAKEN va_end(arg_pointer); /* clean up when done */ return 0; } ffc068a4: 38 60 00 00 li r3,0 ffc068a8: 80 01 00 74 lwz r0,116(r1) ffc068ac: 38 21 00 70 addi r1,r1,112 ffc068b0: 7c 08 03 a6 mtlr r0 ffc068b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07cbc : int pthread_atfork( void (*prepare)(void) __attribute__((unused)), void (*parent)(void) __attribute__((unused)), void (*child)(void) __attribute__((unused)) ) { ffc07cbc: 94 21 ff f8 stwu r1,-8(r1) ffc07cc0: 7c 08 02 a6 mflr r0 ffc07cc4: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07cc8: 48 00 ae 11 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07ccc: 38 00 00 58 li r0,88 ffc07cd0: 90 03 00 00 stw r0,0(r3) } ffc07cd4: 38 60 ff ff li r3,-1 ffc07cd8: 80 01 00 0c lwz r0,12(r1) ffc07cdc: 38 21 00 08 addi r1,r1,8 ffc07ce0: 7c 08 03 a6 mtlr r0 ffc07ce4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c958 : int pthread_attr_destroy( pthread_attr_t *attr ) { if ( !attr || !attr->is_initialized ) ffc0c958: 2c 03 00 00 cmpwi r3,0 ffc0c95c: 41 82 00 20 beq- ffc0c97c ffc0c960: 80 03 00 00 lwz r0,0(r3) ffc0c964: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c968: 41 9e 00 14 beq- cr7,ffc0c97c return EINVAL; attr->is_initialized = false; ffc0c96c: 38 00 00 00 li r0,0 ffc0c970: 90 03 00 00 stw r0,0(r3) ffc0c974: 38 60 00 00 li r3,0 return 0; ffc0c978: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c97c: 38 60 00 16 li r3,22 } ffc0c980: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d0a0 : int pthread_attr_getcputime( pthread_attr_t *attr, int *clock_allowed ) { if ( !attr || !attr->is_initialized || !clock_allowed ) ffc0d0a0: 2c 03 00 00 cmpwi r3,0 ffc0d0a4: 41 82 00 28 beq- ffc0d0cc ffc0d0a8: 80 03 00 00 lwz r0,0(r3) ffc0d0ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d0b0: 41 9e 00 1c beq- cr7,ffc0d0cc ffc0d0b4: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d0b8: 41 9e 00 14 beq- cr7,ffc0d0cc return EINVAL; *clock_allowed = attr->cputime_clock_allowed; ffc0d0bc: 80 03 00 30 lwz r0,48(r3) ffc0d0c0: 38 60 00 00 li r3,0 ffc0d0c4: 90 04 00 00 stw r0,0(r4) return 0; ffc0d0c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d0cc: 38 60 00 16 li r3,22 } ffc0d0d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c984 : int pthread_attr_getdetachstate( const pthread_attr_t *attr, int *detachstate ) { if ( !attr || !attr->is_initialized || !detachstate ) ffc0c984: 2c 03 00 00 cmpwi r3,0 ffc0c988: 41 82 00 28 beq- ffc0c9b0 ffc0c98c: 80 03 00 00 lwz r0,0(r3) ffc0c990: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c994: 41 9e 00 1c beq- cr7,ffc0c9b0 ffc0c998: 2f 84 00 00 cmpwi cr7,r4,0 ffc0c99c: 41 9e 00 14 beq- cr7,ffc0c9b0 return EINVAL; *detachstate = attr->detachstate; ffc0c9a0: 80 03 00 34 lwz r0,52(r3) ffc0c9a4: 38 60 00 00 li r3,0 ffc0c9a8: 90 04 00 00 stw r0,0(r4) return 0; ffc0c9ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c9b0: 38 60 00 16 li r3,22 } ffc0c9b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c9b8 : int pthread_attr_getinheritsched( const pthread_attr_t *attr, int *inheritsched ) { if ( !attr || !attr->is_initialized || !inheritsched ) ffc0c9b8: 2c 03 00 00 cmpwi r3,0 ffc0c9bc: 41 82 00 28 beq- ffc0c9e4 ffc0c9c0: 80 03 00 00 lwz r0,0(r3) ffc0c9c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c9c8: 41 9e 00 1c beq- cr7,ffc0c9e4 ffc0c9cc: 2f 84 00 00 cmpwi cr7,r4,0 ffc0c9d0: 41 9e 00 14 beq- cr7,ffc0c9e4 return EINVAL; *inheritsched = attr->inheritsched; ffc0c9d4: 80 03 00 10 lwz r0,16(r3) ffc0c9d8: 38 60 00 00 li r3,0 ffc0c9dc: 90 04 00 00 stw r0,0(r4) return 0; ffc0c9e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c9e4: 38 60 00 16 li r3,22 } ffc0c9e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c9ec : int pthread_attr_getschedparam( const pthread_attr_t *attr, struct sched_param *param ) { if ( !attr || !attr->is_initialized || !param ) ffc0c9ec: 7c 69 1b 79 mr. r9,r3 ffc0c9f0: 41 82 00 50 beq- ffc0ca40 ffc0c9f4: 80 09 00 00 lwz r0,0(r9) ffc0c9f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c9fc: 41 9e 00 44 beq- cr7,ffc0ca40 ffc0ca00: 2f 84 00 00 cmpwi cr7,r4,0 ffc0ca04: 41 9e 00 3c beq- cr7,ffc0ca40 return EINVAL; *param = attr->schedparam; ffc0ca08: 81 69 00 20 lwz r11,32(r9) ffc0ca0c: 38 60 00 00 li r3,0 ffc0ca10: 80 09 00 24 lwz r0,36(r9) ffc0ca14: 81 09 00 18 lwz r8,24(r9) ffc0ca18: 81 49 00 1c lwz r10,28(r9) ffc0ca1c: 91 04 00 00 stw r8,0(r4) ffc0ca20: 91 44 00 04 stw r10,4(r4) ffc0ca24: 91 64 00 08 stw r11,8(r4) ffc0ca28: 90 04 00 0c stw r0,12(r4) ffc0ca2c: 81 69 00 2c lwz r11,44(r9) ffc0ca30: 80 09 00 28 lwz r0,40(r9) ffc0ca34: 91 64 00 14 stw r11,20(r4) ffc0ca38: 90 04 00 10 stw r0,16(r4) return 0; ffc0ca3c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ca40: 38 60 00 16 li r3,22 } ffc0ca44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ca48 : int pthread_attr_getschedpolicy( const pthread_attr_t *attr, int *policy ) { if ( !attr || !attr->is_initialized || !policy ) ffc0ca48: 2c 03 00 00 cmpwi r3,0 ffc0ca4c: 41 82 00 28 beq- ffc0ca74 ffc0ca50: 80 03 00 00 lwz r0,0(r3) ffc0ca54: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ca58: 41 9e 00 1c beq- cr7,ffc0ca74 ffc0ca5c: 2f 84 00 00 cmpwi cr7,r4,0 ffc0ca60: 41 9e 00 14 beq- cr7,ffc0ca74 return EINVAL; *policy = attr->schedpolicy; ffc0ca64: 80 03 00 14 lwz r0,20(r3) ffc0ca68: 38 60 00 00 li r3,0 ffc0ca6c: 90 04 00 00 stw r0,0(r4) return 0; ffc0ca70: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ca74: 38 60 00 16 li r3,22 } ffc0ca78: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ca7c : int pthread_attr_getscope( const pthread_attr_t *attr, int *contentionscope ) { if ( !attr || !attr->is_initialized || !contentionscope ) ffc0ca7c: 2c 03 00 00 cmpwi r3,0 ffc0ca80: 41 82 00 28 beq- ffc0caa8 ffc0ca84: 80 03 00 00 lwz r0,0(r3) ffc0ca88: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ca8c: 41 9e 00 1c beq- cr7,ffc0caa8 ffc0ca90: 2f 84 00 00 cmpwi cr7,r4,0 ffc0ca94: 41 9e 00 14 beq- cr7,ffc0caa8 return EINVAL; *contentionscope = attr->contentionscope; ffc0ca98: 80 03 00 0c lwz r0,12(r3) ffc0ca9c: 38 60 00 00 li r3,0 ffc0caa0: 90 04 00 00 stw r0,0(r4) return 0; ffc0caa4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0caa8: 38 60 00 16 li r3,22 } ffc0caac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cab0 : int pthread_attr_getstackaddr( const pthread_attr_t *attr, void **stackaddr ) { if ( !attr || !attr->is_initialized || !stackaddr ) ffc0cab0: 2c 03 00 00 cmpwi r3,0 ffc0cab4: 41 82 00 28 beq- ffc0cadc ffc0cab8: 80 03 00 00 lwz r0,0(r3) ffc0cabc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cac0: 41 9e 00 1c beq- cr7,ffc0cadc ffc0cac4: 2f 84 00 00 cmpwi cr7,r4,0 ffc0cac8: 41 9e 00 14 beq- cr7,ffc0cadc return EINVAL; *stackaddr = attr->stackaddr; ffc0cacc: 80 03 00 04 lwz r0,4(r3) ffc0cad0: 38 60 00 00 li r3,0 ffc0cad4: 90 04 00 00 stw r0,0(r4) return 0; ffc0cad8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cadc: 38 60 00 16 li r3,22 } ffc0cae0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cae4 : int pthread_attr_getstacksize( const pthread_attr_t *attr, size_t *stacksize ) { if ( !attr || !attr->is_initialized || !stacksize ) ffc0cae4: 2c 03 00 00 cmpwi r3,0 ffc0cae8: 41 82 00 28 beq- ffc0cb10 ffc0caec: 80 03 00 00 lwz r0,0(r3) ffc0caf0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0caf4: 41 9e 00 1c beq- cr7,ffc0cb10 ffc0caf8: 2f 84 00 00 cmpwi cr7,r4,0 ffc0cafc: 41 9e 00 14 beq- cr7,ffc0cb10 return EINVAL; *stacksize = attr->stacksize; ffc0cb00: 80 03 00 08 lwz r0,8(r3) ffc0cb04: 38 60 00 00 li r3,0 ffc0cb08: 90 04 00 00 stw r0,0(r4) return 0; ffc0cb0c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cb10: 38 60 00 16 li r3,22 } ffc0cb14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f2a8 : int pthread_attr_init( pthread_attr_t *attr ) { if ( !attr ) ffc0f2a8: 2f 83 00 00 cmpwi cr7,r3,0 #include int pthread_attr_init( pthread_attr_t *attr ) { ffc0f2ac: 7c 08 02 a6 mflr r0 ffc0f2b0: 94 21 ff f8 stwu r1,-8(r1) ffc0f2b4: 90 01 00 0c stw r0,12(r1) if ( !attr ) ffc0f2b8: 38 00 00 16 li r0,22 ffc0f2bc: 41 9e 00 18 beq- cr7,ffc0f2d4 return EINVAL; *attr = _POSIX_Threads_Default_attributes; ffc0f2c0: 3c 80 ff c2 lis r4,-62 ffc0f2c4: 38 84 f4 a8 addi r4,r4,-2904 ffc0f2c8: 38 a0 00 38 li r5,56 ffc0f2cc: 48 00 46 99 bl ffc13964 <== ALWAYS TAKEN ffc0f2d0: 38 00 00 00 li r0,0 return 0; } ffc0f2d4: 7c 03 03 78 mr r3,r0 ffc0f2d8: 80 01 00 0c lwz r0,12(r1) ffc0f2dc: 38 21 00 08 addi r1,r1,8 ffc0f2e0: 7c 08 03 a6 mtlr r0 ffc0f2e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d6d8 : int pthread_attr_setcputime( pthread_attr_t *attr, int clock_allowed ) { if ( !attr || !attr->is_initialized ) ffc0d6d8: 2c 03 00 00 cmpwi r3,0 ffc0d6dc: 41 82 00 24 beq- ffc0d700 ffc0d6e0: 80 03 00 00 lwz r0,0(r3) ffc0d6e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d6e8: 41 9e 00 18 beq- cr7,ffc0d700 return EINVAL; switch ( clock_allowed ) { ffc0d6ec: 2b 84 00 01 cmplwi cr7,r4,1 ffc0d6f0: 41 9d 00 10 bgt- cr7,ffc0d700 case CLOCK_ENABLED: case CLOCK_DISABLED: attr->cputime_clock_allowed = clock_allowed; ffc0d6f4: 90 83 00 30 stw r4,48(r3) ffc0d6f8: 38 60 00 00 li r3,0 return 0; ffc0d6fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d700: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0d704: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cb58 : int pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate ) { if ( !attr || !attr->is_initialized ) ffc0cb58: 2c 03 00 00 cmpwi r3,0 ffc0cb5c: 41 82 00 24 beq- ffc0cb80 ffc0cb60: 80 03 00 00 lwz r0,0(r3) ffc0cb64: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cb68: 41 9e 00 18 beq- cr7,ffc0cb80 return EINVAL; switch ( detachstate ) { ffc0cb6c: 2b 84 00 01 cmplwi cr7,r4,1 ffc0cb70: 41 9d 00 10 bgt- cr7,ffc0cb80 case PTHREAD_CREATE_DETACHED: case PTHREAD_CREATE_JOINABLE: attr->detachstate = detachstate; ffc0cb74: 90 83 00 34 stw r4,52(r3) ffc0cb78: 38 60 00 00 li r3,0 return 0; ffc0cb7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cb80: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0cb84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f2e8 : int pthread_attr_setinheritsched( pthread_attr_t *attr, int inheritsched ) { if ( !attr || !attr->is_initialized ) ffc0f2e8: 7c 69 1b 79 mr. r9,r3 ffc0f2ec: 41 82 00 2c beq- ffc0f318 ffc0f2f0: 80 09 00 00 lwz r0,0(r9) ffc0f2f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f2f8: 41 9e 00 20 beq- cr7,ffc0f318 return EINVAL; switch ( inheritsched ) { ffc0f2fc: 38 04 ff ff addi r0,r4,-1 ffc0f300: 2b 80 00 01 cmplwi cr7,r0,1 ffc0f304: 38 60 00 86 li r3,134 ffc0f308: 4d 9d 00 20 bgtlr cr7 case PTHREAD_INHERIT_SCHED: case PTHREAD_EXPLICIT_SCHED: attr->inheritsched = inheritsched; ffc0f30c: 90 89 00 10 stw r4,16(r9) ffc0f310: 38 60 00 00 li r3,0 return 0; ffc0f314: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f318: 38 60 00 16 li r3,22 default: return ENOTSUP; } } ffc0f31c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cbc0 : int pthread_attr_setschedparam( pthread_attr_t *attr, const struct sched_param *param ) { if ( !attr || !attr->is_initialized || !param ) ffc0cbc0: 7c 69 1b 79 mr. r9,r3 ffc0cbc4: 41 82 00 50 beq- ffc0cc14 ffc0cbc8: 80 09 00 00 lwz r0,0(r9) ffc0cbcc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cbd0: 41 9e 00 44 beq- cr7,ffc0cc14 ffc0cbd4: 2f 84 00 00 cmpwi cr7,r4,0 ffc0cbd8: 41 9e 00 3c beq- cr7,ffc0cc14 return EINVAL; attr->schedparam = *param; ffc0cbdc: 81 64 00 08 lwz r11,8(r4) ffc0cbe0: 38 60 00 00 li r3,0 ffc0cbe4: 80 04 00 0c lwz r0,12(r4) ffc0cbe8: 81 04 00 00 lwz r8,0(r4) ffc0cbec: 81 44 00 04 lwz r10,4(r4) ffc0cbf0: 91 09 00 18 stw r8,24(r9) ffc0cbf4: 91 49 00 1c stw r10,28(r9) ffc0cbf8: 91 69 00 20 stw r11,32(r9) ffc0cbfc: 90 09 00 24 stw r0,36(r9) ffc0cc00: 81 64 00 14 lwz r11,20(r4) ffc0cc04: 80 04 00 10 lwz r0,16(r4) ffc0cc08: 91 69 00 2c stw r11,44(r9) ffc0cc0c: 90 09 00 28 stw r0,40(r9) return 0; ffc0cc10: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cc14: 38 60 00 16 li r3,22 } ffc0cc18: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cc1c : int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized ) ffc0cc1c: 7c 69 1b 79 mr. r9,r3 ffc0cc20: 41 82 00 28 beq- ffc0cc48 ffc0cc24: 80 09 00 00 lwz r0,0(r9) ffc0cc28: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cc2c: 41 9e 00 1c beq- cr7,ffc0cc48 return EINVAL; switch ( policy ) { ffc0cc30: 2b 84 00 03 cmplwi cr7,r4,3 ffc0cc34: 38 60 00 86 li r3,134 ffc0cc38: 4d 9d 00 20 bgtlr cr7 case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: case SCHED_SPORADIC: attr->schedpolicy = policy; ffc0cc3c: 90 89 00 14 stw r4,20(r9) ffc0cc40: 38 60 00 00 li r3,0 return 0; ffc0cc44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cc48: 38 60 00 16 li r3,22 default: return ENOTSUP; } } ffc0cc4c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cc50 : int pthread_attr_setscope( pthread_attr_t *attr, int contentionscope ) { if ( !attr || !attr->is_initialized ) ffc0cc50: 2c 03 00 00 cmpwi r3,0 ffc0cc54: 41 82 00 34 beq- ffc0cc88 ffc0cc58: 80 03 00 00 lwz r0,0(r3) ffc0cc5c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cc60: 41 9e 00 28 beq- cr7,ffc0cc88 return EINVAL; switch ( contentionscope ) { ffc0cc64: 2f 84 00 00 cmpwi cr7,r4,0 ffc0cc68: 41 9e 00 14 beq- cr7,ffc0cc7c ffc0cc6c: 2f 84 00 01 cmpwi cr7,r4,1 ffc0cc70: 38 60 00 86 li r3,134 ffc0cc74: 40 be 00 14 bne+ cr7,ffc0cc88 ffc0cc78: 4e 80 00 20 blr <== ALWAYS TAKEN case PTHREAD_SCOPE_PROCESS: attr->contentionscope = contentionscope; ffc0cc7c: 90 83 00 0c stw r4,12(r3) ffc0cc80: 38 60 00 00 li r3,0 return 0; ffc0cc84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cc88: 38 60 00 16 li r3,22 return ENOTSUP; default: return EINVAL; } } ffc0cc8c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cc90 : int pthread_attr_setstackaddr( pthread_attr_t *attr, void *stackaddr ) { if ( !attr || !attr->is_initialized ) ffc0cc90: 2c 03 00 00 cmpwi r3,0 ffc0cc94: 41 82 00 1c beq- ffc0ccb0 ffc0cc98: 80 03 00 00 lwz r0,0(r3) ffc0cc9c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cca0: 41 9e 00 10 beq- cr7,ffc0ccb0 return EINVAL; attr->stackaddr = stackaddr; ffc0cca4: 90 83 00 04 stw r4,4(r3) ffc0cca8: 38 60 00 00 li r3,0 return 0; ffc0ccac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ccb0: 38 60 00 16 li r3,22 } ffc0ccb4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f320 : int pthread_attr_setstacksize( pthread_attr_t *attr, size_t stacksize ) { if ( !attr || !attr->is_initialized ) ffc0f320: 2c 03 00 00 cmpwi r3,0 ffc0f324: 41 82 00 38 beq- ffc0f35c ffc0f328: 80 03 00 00 lwz r0,0(r3) ffc0f32c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f330: 41 9e 00 2c beq- cr7,ffc0f35c return EINVAL; if (stacksize < PTHREAD_MINIMUM_STACK_SIZE) ffc0f334: 3d 20 00 00 lis r9,0 ffc0f338: 80 09 26 c8 lwz r0,9928(r9) ffc0f33c: 54 00 08 3c rlwinm r0,r0,1,0,30 ffc0f340: 7f 84 00 40 cmplw cr7,r4,r0 ffc0f344: 40 bc 00 0c bge+ cr7,ffc0f350 attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE; ffc0f348: 90 03 00 08 stw r0,8(r3) ffc0f34c: 48 00 00 08 b ffc0f354 <== ALWAYS TAKEN else attr->stacksize = stacksize; ffc0f350: 90 83 00 08 stw r4,8(r3) ffc0f354: 38 60 00 00 li r3,0 ffc0f358: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f35c: 38 60 00 16 li r3,22 return 0; } ffc0f360: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08298 : ) { POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) ffc08298: 2c 03 00 00 cmpwi r3,0 */ int pthread_barrier_destroy( pthread_barrier_t *barrier ) { ffc0829c: 94 21 ff e0 stwu r1,-32(r1) ffc082a0: 7c 08 02 a6 mflr r0 ffc082a4: 93 c1 00 18 stw r30,24(r1) ffc082a8: 90 01 00 24 stw r0,36(r1) ffc082ac: 93 e1 00 1c stw r31,28(r1) POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) ffc082b0: 41 82 00 68 beq- ffc08318 RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get ( pthread_barrier_t *barrier, Objects_Locations *location ) { return (POSIX_Barrier_Control *) _Objects_Get( ffc082b4: 3f e0 00 00 lis r31,0 ffc082b8: 80 83 00 00 lwz r4,0(r3) ffc082bc: 3b ff 2f f8 addi r31,r31,12280 ffc082c0: 7f e3 fb 78 mr r3,r31 ffc082c4: 38 a1 00 08 addi r5,r1,8 ffc082c8: 48 00 2d 25 bl ffc0afec <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { ffc082cc: 80 01 00 08 lwz r0,8(r1) ffc082d0: 7c 7e 1b 78 mr r30,r3 ffc082d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc082d8: 40 9e 00 40 bne- cr7,ffc08318 case OBJECTS_LOCAL: if ( the_barrier->Barrier.number_of_waiting_threads != 0 ) { ffc082dc: 80 03 00 58 lwz r0,88(r3) ffc082e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc082e4: 41 9e 00 10 beq- cr7,ffc082f4 _Thread_Enable_dispatch(); ffc082e8: 48 00 38 15 bl ffc0bafc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc082ec: 38 60 00 10 li r3,16 return EBUSY; ffc082f0: 48 00 00 2c b ffc0831c <== ALWAYS TAKEN } _Objects_Close( &_POSIX_Barrier_Information, &the_barrier->Object ); ffc082f4: 7f e3 fb 78 mr r3,r31 ffc082f8: 7f c4 f3 78 mr r4,r30 ffc082fc: 48 00 27 f1 bl ffc0aaec <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _POSIX_Barrier_Free ( POSIX_Barrier_Control *the_barrier ) { _Objects_Free( &_POSIX_Barrier_Information, &the_barrier->Object ); ffc08300: 7f e3 fb 78 mr r3,r31 ffc08304: 7f c4 f3 78 mr r4,r30 ffc08308: 48 00 2b 25 bl ffc0ae2c <_Objects_Free> <== ALWAYS TAKEN _POSIX_Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); ffc0830c: 48 00 37 f1 bl ffc0bafc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08310: 38 60 00 00 li r3,0 return 0; ffc08314: 48 00 00 08 b ffc0831c <== ALWAYS TAKEN ffc08318: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0831c: 80 01 00 24 lwz r0,36(r1) ffc08320: 83 c1 00 18 lwz r30,24(r1) ffc08324: 7c 08 03 a6 mtlr r0 ffc08328: 83 e1 00 1c lwz r31,28(r1) ffc0832c: 38 21 00 20 addi r1,r1,32 ffc08330: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08334 : int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) { ffc08334: 94 21 ff d8 stwu r1,-40(r1) ffc08338: 7c 08 02 a6 mflr r0 ffc0833c: 93 e1 00 24 stw r31,36(r1) const pthread_barrierattr_t *the_attr; /* * Error check parameters */ if ( !barrier ) ffc08340: 7c 7f 1b 79 mr. r31,r3 int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) { ffc08344: 93 c1 00 20 stw r30,32(r1) ffc08348: 7c be 2b 78 mr r30,r5 ffc0834c: 90 01 00 2c stw r0,44(r1) ffc08350: 93 81 00 18 stw r28,24(r1) ffc08354: 93 a1 00 1c stw r29,28(r1) const pthread_barrierattr_t *the_attr; /* * Error check parameters */ if ( !barrier ) ffc08358: 41 82 00 a8 beq- ffc08400 return EINVAL; if ( count == 0 ) ffc0835c: 2f 85 00 00 cmpwi cr7,r5,0 ffc08360: 41 9e 00 a0 beq- cr7,ffc08400 return EINVAL; /* * If the user passed in NULL, use the default attributes */ if ( attr ) { ffc08364: 2f 84 00 00 cmpwi cr7,r4,0 ffc08368: 7c 9d 23 78 mr r29,r4 ffc0836c: 40 be 00 10 bne+ cr7,ffc0837c the_attr = attr; } else { (void) pthread_barrierattr_init( &my_attr ); ffc08370: 3b a1 00 10 addi r29,r1,16 ffc08374: 7f a3 eb 78 mr r3,r29 ffc08378: 4b ff fe cd bl ffc08244 <== ALWAYS TAKEN } /* * Now start error checking the attributes that we are going to use */ if ( !the_attr->is_initialized ) ffc0837c: 80 1d 00 00 lwz r0,0(r29) ffc08380: 2f 80 00 00 cmpwi cr7,r0,0 ffc08384: 41 9e 00 7c beq- cr7,ffc08400 return EINVAL; switch ( the_attr->process_shared ) { ffc08388: 83 bd 00 04 lwz r29,4(r29) ffc0838c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc08390: 40 9e 00 70 bne- cr7,ffc08400 <== NEVER TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08394: 3d 20 00 00 lis r9,0 /* * Convert from POSIX attributes to Core Barrier attributes */ the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; the_attributes.maximum_count = count; ffc08398: 93 c1 00 0c stw r30,12(r1) ffc0839c: 81 69 27 bc lwz r11,10172(r9) } /* * Convert from POSIX attributes to Core Barrier attributes */ the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; ffc083a0: 93 a1 00 08 stw r29,8(r1) ffc083a4: 38 0b 00 01 addi r0,r11,1 ffc083a8: 90 09 27 bc stw r0,10172(r9) * This function allocates a barrier control block from * the inactive chain of free barrier control blocks. */ RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void ) { return (POSIX_Barrier_Control *) ffc083ac: 3f 80 00 00 lis r28,0 ffc083b0: 3b 9c 2f f8 addi r28,r28,12280 ffc083b4: 7f 83 e3 78 mr r3,r28 ffc083b8: 48 00 26 89 bl ffc0aa40 <_Objects_Allocate> <== ALWAYS TAKEN */ _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _POSIX_Barrier_Allocate(); if ( !the_barrier ) { ffc083bc: 7c 7e 1b 79 mr. r30,r3 ffc083c0: 40 a2 00 10 bne+ ffc083d0 _Thread_Enable_dispatch(); ffc083c4: 48 00 37 39 bl ffc0bafc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc083c8: 38 60 00 0b li r3,11 return EAGAIN; ffc083cc: 48 00 00 38 b ffc08404 <== ALWAYS TAKEN } _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); ffc083d0: 38 7e 00 10 addi r3,r30,16 ffc083d4: 38 81 00 08 addi r4,r1,8 ffc083d8: 48 00 1b f1 bl ffc09fc8 <_CORE_barrier_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc083dc: 80 1e 00 08 lwz r0,8(r30) ffc083e0: 81 7c 00 1c lwz r11,28(r28) ffc083e4: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc083e8: 7f cb 49 2e stwx r30,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc083ec: 93 be 00 0c stw r29,12(r30) ); /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; ffc083f0: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc083f4: 48 00 37 09 bl ffc0bafc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc083f8: 38 60 00 00 li r3,0 return 0; ffc083fc: 48 00 00 08 b ffc08404 <== ALWAYS TAKEN ffc08400: 38 60 00 16 li r3,22 } ffc08404: 80 01 00 2c lwz r0,44(r1) ffc08408: 83 81 00 18 lwz r28,24(r1) ffc0840c: 7c 08 03 a6 mtlr r0 ffc08410: 83 a1 00 1c lwz r29,28(r1) ffc08414: 83 c1 00 20 lwz r30,32(r1) ffc08418: 83 e1 00 24 lwz r31,36(r1) ffc0841c: 38 21 00 28 addi r1,r1,40 ffc08420: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08424 : ) { POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) ffc08424: 2c 03 00 00 cmpwi r3,0 */ int pthread_barrier_wait( pthread_barrier_t *barrier ) { ffc08428: 94 21 ff e8 stwu r1,-24(r1) ffc0842c: 7c 08 02 a6 mflr r0 ffc08430: 90 01 00 1c stw r0,28(r1) POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) ffc08434: 41 82 00 54 beq- ffc08488 RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get ( pthread_barrier_t *barrier, Objects_Locations *location ) { return (POSIX_Barrier_Control *) _Objects_Get( ffc08438: 80 83 00 00 lwz r4,0(r3) ffc0843c: 3c 60 00 00 lis r3,0 ffc08440: 38 63 2f f8 addi r3,r3,12280 ffc08444: 38 a1 00 08 addi r5,r1,8 ffc08448: 48 00 2b a5 bl ffc0afec <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { ffc0844c: 80 01 00 08 lwz r0,8(r1) ffc08450: 2f 80 00 00 cmpwi cr7,r0,0 ffc08454: 40 9e 00 34 bne- cr7,ffc08488 case OBJECTS_LOCAL: _CORE_barrier_Wait( ffc08458: 80 83 00 08 lwz r4,8(r3) ffc0845c: 38 a0 00 01 li r5,1 ffc08460: 38 63 00 10 addi r3,r3,16 ffc08464: 38 c0 00 00 li r6,0 ffc08468: 38 e0 00 00 li r7,0 ffc0846c: 48 00 1b a1 bl ffc0a00c <_CORE_barrier_Wait> <== ALWAYS TAKEN the_barrier->Object.id, true, 0, NULL ); _Thread_Enable_dispatch(); ffc08470: 48 00 36 8d bl ffc0bafc <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Barrier_Translate_core_barrier_return_code( ffc08474: 3d 20 00 00 lis r9,0 ffc08478: 81 29 27 fc lwz r9,10236(r9) ffc0847c: 80 69 00 34 lwz r3,52(r9) ffc08480: 48 00 6c 35 bl ffc0f0b4 <_POSIX_Barrier_Translate_core_barrier_return_code> <== ALWAYS TAKEN ffc08484: 48 00 00 08 b ffc0848c <== ALWAYS TAKEN ffc08488: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0848c: 80 01 00 1c lwz r0,28(r1) ffc08490: 38 21 00 18 addi r1,r1,24 ffc08494: 7c 08 03 a6 mtlr r0 ffc08498: 4e 80 00 20 blr <== ALWAYS TAKEN ffc081ec : int pthread_barrierattr_destroy( pthread_barrierattr_t *attr ) { if ( !attr || attr->is_initialized == false ) ffc081ec: 2c 03 00 00 cmpwi r3,0 ffc081f0: 41 82 00 20 beq- ffc08210 ffc081f4: 80 03 00 00 lwz r0,0(r3) ffc081f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc081fc: 41 9e 00 14 beq- cr7,ffc08210 return EINVAL; attr->is_initialized = false; ffc08200: 38 00 00 00 li r0,0 ffc08204: 90 03 00 00 stw r0,0(r3) ffc08208: 38 60 00 00 li r3,0 return 0; ffc0820c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08210: 38 60 00 16 li r3,22 } ffc08214: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08218 : int pthread_barrierattr_getpshared( const pthread_barrierattr_t *attr, int *pshared ) { if ( !attr ) ffc08218: 2c 03 00 00 cmpwi r3,0 ffc0821c: 41 82 00 20 beq- ffc0823c return EINVAL; if ( !attr->is_initialized ) ffc08220: 80 03 00 00 lwz r0,0(r3) ffc08224: 2f 80 00 00 cmpwi cr7,r0,0 ffc08228: 41 9e 00 14 beq- cr7,ffc0823c return EINVAL; *pshared = attr->process_shared; ffc0822c: 80 03 00 04 lwz r0,4(r3) ffc08230: 38 60 00 00 li r3,0 ffc08234: 90 04 00 00 stw r0,0(r4) return 0; ffc08238: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0823c: 38 60 00 16 li r3,22 } ffc08240: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08244 : int pthread_barrierattr_init( pthread_barrierattr_t *attr ) { if ( !attr ) ffc08244: 7c 69 1b 79 mr. r9,r3 ffc08248: 38 60 00 16 li r3,22 ffc0824c: 4d 82 00 20 beqlr return EINVAL; attr->is_initialized = true; attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc08250: 38 00 00 00 li r0,0 ffc08254: 90 09 00 04 stw r0,4(r9) ) { if ( !attr ) return EINVAL; attr->is_initialized = true; ffc08258: 38 00 00 01 li r0,1 attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc0825c: 38 60 00 00 li r3,0 ) { if ( !attr ) return EINVAL; attr->is_initialized = true; ffc08260: 90 09 00 00 stw r0,0(r9) attr->process_shared = PTHREAD_PROCESS_PRIVATE; return 0; } ffc08264: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08268 : int pthread_barrierattr_setpshared( pthread_barrierattr_t *attr, int pshared ) { if ( !attr ) ffc08268: 2c 03 00 00 cmpwi r3,0 ffc0826c: 41 82 00 24 beq- ffc08290 return EINVAL; if ( !attr->is_initialized ) ffc08270: 80 03 00 00 lwz r0,0(r3) ffc08274: 2f 80 00 00 cmpwi cr7,r0,0 ffc08278: 41 9e 00 18 beq- cr7,ffc08290 return EINVAL; switch ( pshared ) { ffc0827c: 2b 84 00 01 cmplwi cr7,r4,1 ffc08280: 41 9d 00 10 bgt- cr7,ffc08290 case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; ffc08284: 90 83 00 04 stw r4,4(r3) ffc08288: 38 60 00 00 li r3,0 return 0; ffc0828c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08290: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc08294: 4e 80 00 20 blr <== ALWAYS TAKEN ffc076a0 : */ int pthread_cancel( pthread_t thread ) { ffc076a0: 7c 08 02 a6 mflr r0 ffc076a4: 94 21 ff e8 stwu r1,-24(r1) /* * Don't even think about deleting a resource from an ISR. */ if ( _ISR_Is_in_progress() ) ffc076a8: 3d 20 00 00 lis r9,0 */ int pthread_cancel( pthread_t thread ) { ffc076ac: 90 01 00 1c stw r0,28(r1) ffc076b0: 7c 64 1b 78 mr r4,r3 /* * Don't even think about deleting a resource from an ISR. */ if ( _ISR_Is_in_progress() ) ffc076b4: 80 09 27 c4 lwz r0,10180(r9) ffc076b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc076bc: 38 00 00 47 li r0,71 ffc076c0: 40 9e 00 38 bne- cr7,ffc076f8 RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) ffc076c4: 3c 60 00 00 lis r3,0 ffc076c8: 38 63 2e 58 addi r3,r3,11864 ffc076cc: 38 a1 00 08 addi r5,r1,8 ffc076d0: 48 00 26 f1 bl ffc09dc0 <_Objects_Get> <== ALWAYS TAKEN return EPROTO; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc076d4: 81 61 00 08 lwz r11,8(r1) ffc076d8: 38 00 00 16 li r0,22 ffc076dc: 2f 8b 00 00 cmpwi cr7,r11,0 ffc076e0: 40 9e 00 18 bne- cr7,ffc076f8 case OBJECTS_LOCAL: thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; thread_support->cancelation_requested = 1; ffc076e4: 81 23 01 48 lwz r9,328(r3) ffc076e8: 38 00 00 01 li r0,1 ffc076ec: 90 09 00 d4 stw r0,212(r9) /* This enables dispatch implicitly */ _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( the_thread ); ffc076f0: 48 00 63 81 bl ffc0da70 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> <== ALWAYS TAKEN ffc076f4: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc076f8: 7c 03 03 78 mr r3,r0 ffc076fc: 80 01 00 1c lwz r0,28(r1) ffc07700: 38 21 00 18 addi r1,r1,24 ffc07704: 7c 08 03 a6 mtlr r0 ffc07708: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07120 : */ void pthread_cleanup_pop( int execute ) { ffc07120: 94 21 ff d8 stwu r1,-40(r1) ffc07124: 7c 08 02 a6 mflr r0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc07128: 3d 20 00 00 lis r9,0 ffc0712c: 81 49 27 6c lwz r10,10092(r9) POSIX_Cancel_Handler_control tmp_handler; Chain_Control *handler_stack; POSIX_API_Control *thread_support; ISR_Level level; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc07130: 3d 60 00 00 lis r11,0 */ void pthread_cleanup_pop( int execute ) { ffc07134: 90 01 00 2c stw r0,44(r1) ffc07138: 38 0a 00 01 addi r0,r10,1 POSIX_Cancel_Handler_control tmp_handler; Chain_Control *handler_stack; POSIX_API_Control *thread_support; ISR_Level level; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc0713c: 81 6b 27 ac lwz r11,10156(r11) */ void pthread_cleanup_pop( int execute ) { ffc07140: 93 a1 00 1c stw r29,28(r1) ffc07144: 7c 7d 1b 78 mr r29,r3 ffc07148: 90 09 27 6c stw r0,10092(r9) ffc0714c: 93 c1 00 20 stw r30,32(r1) ffc07150: 93 e1 00 24 stw r31,36(r1) POSIX_Cancel_Handler_control tmp_handler; Chain_Control *handler_stack; POSIX_API_Control *thread_support; ISR_Level level; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc07154: 81 2b 01 48 lwz r9,328(r11) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07158: 7f e0 00 a6 mfmsr r31 ffc0715c: 7c 10 42 a6 mfsprg r0,0 ffc07160: 7f e0 00 78 andc r0,r31,r0 ffc07164: 7c 00 01 24 mtmsr r0 handler_stack = &thread_support->Cancellation_Handlers; ffc07168: 80 09 00 d8 lwz r0,216(r9) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0716c: 39 29 00 dc addi r9,r9,220 ffc07170: 7f 80 48 00 cmpw cr7,r0,r9 ffc07174: 40 be 00 10 bne+ cr7,ffc07184 _Thread_Disable_dispatch(); _ISR_Disable( level ); if ( _Chain_Is_empty( handler_stack ) ) { _Thread_Enable_dispatch(); ffc07178: 48 00 2e e1 bl ffc0a058 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0717c: 7f e0 01 24 mtmsr r31 ffc07180: 48 00 00 58 b ffc071d8 <== ALWAYS TAKEN _ISR_Enable( level ); return; } handler = (POSIX_Cancel_Handler_control *) ffc07184: 80 69 00 04 lwz r3,4(r9) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc07188: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; ffc0718c: 81 63 00 04 lwz r11,4(r3) next->previous = previous; previous->next = next; ffc07190: 91 2b 00 00 stw r9,0(r11) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc07194: 91 69 00 04 stw r11,4(r9) ffc07198: 7f e0 01 24 mtmsr r31 _Chain_Tail( handler_stack )->previous; _Chain_Extract_unprotected( &handler->Node ); _ISR_Enable( level ); tmp_handler = *handler; ffc0719c: 81 23 00 00 lwz r9,0(r3) ffc071a0: 80 03 00 04 lwz r0,4(r3) ffc071a4: 83 e3 00 08 lwz r31,8(r3) ffc071a8: 83 c3 00 0c lwz r30,12(r3) ffc071ac: 91 21 00 08 stw r9,8(r1) ffc071b0: 90 01 00 0c stw r0,12(r1) ffc071b4: 93 e1 00 10 stw r31,16(r1) ffc071b8: 93 c1 00 14 stw r30,20(r1) _Workspace_Free( handler ); ffc071bc: 48 00 45 e1 bl ffc0b79c <_Workspace_Free> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc071c0: 48 00 2e 99 bl ffc0a058 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( execute ) ffc071c4: 2f 9d 00 00 cmpwi cr7,r29,0 ffc071c8: 41 be 00 10 beq+ cr7,ffc071d8 (*tmp_handler.routine)( tmp_handler.arg ); ffc071cc: 7f c3 f3 78 mr r3,r30 ffc071d0: 7f e9 03 a6 mtctr r31 ffc071d4: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc071d8: 80 01 00 2c lwz r0,44(r1) ffc071dc: 83 a1 00 1c lwz r29,28(r1) ffc071e0: 7c 08 03 a6 mtlr r0 ffc071e4: 83 c1 00 20 lwz r30,32(r1) ffc071e8: 83 e1 00 24 lwz r31,36(r1) ffc071ec: 38 21 00 28 addi r1,r1,40 ffc071f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07908 : void pthread_cleanup_push( void (*routine)( void * ), void *arg ) { ffc07908: 94 21 ff f0 stwu r1,-16(r1) ffc0790c: 7c 08 02 a6 mflr r0 ffc07910: 93 c1 00 08 stw r30,8(r1) /* * The POSIX standard does not address what to do when the routine * is NULL. It also does not address what happens when we cannot * allocate memory or anything else bad happens. */ if ( !routine ) ffc07914: 7c 7e 1b 79 mr. r30,r3 void pthread_cleanup_push( void (*routine)( void * ), void *arg ) { ffc07918: 93 e1 00 0c stw r31,12(r1) ffc0791c: 7c 9f 23 78 mr r31,r4 ffc07920: 90 01 00 14 stw r0,20(r1) /* * The POSIX standard does not address what to do when the routine * is NULL. It also does not address what happens when we cannot * allocate memory or anything else bad happens. */ if ( !routine ) ffc07924: 41 82 00 48 beq- ffc0796c rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc07928: 3d 20 00 00 lis r9,0 ffc0792c: 81 69 27 94 lwz r11,10132(r9) ffc07930: 38 0b 00 01 addi r0,r11,1 ffc07934: 90 09 27 94 stw r0,10132(r9) return; _Thread_Disable_dispatch(); handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) ); ffc07938: 38 60 00 10 li r3,16 ffc0793c: 48 00 51 89 bl ffc0cac4 <_Workspace_Allocate> <== ALWAYS TAKEN if ( handler ) { ffc07940: 7c 69 1b 79 mr. r9,r3 ffc07944: 41 82 00 24 beq- ffc07968 <== NEVER TAKEN thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; ffc07948: 3d 60 00 00 lis r11,0 handler->routine = routine; ffc0794c: 93 c9 00 08 stw r30,8(r9) handler->arg = arg; _Chain_Append( handler_stack, &handler->Node ); ffc07950: 7d 24 4b 78 mr r4,r9 handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) ); if ( handler ) { thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; ffc07954: 81 6b 27 d4 lwz r11,10196(r11) ffc07958: 80 6b 01 48 lwz r3,328(r11) handler->routine = routine; handler->arg = arg; ffc0795c: 93 e9 00 0c stw r31,12(r9) _Chain_Append( handler_stack, &handler->Node ); ffc07960: 38 63 00 d8 addi r3,r3,216 ffc07964: 48 00 1d 3d bl ffc096a0 <_Chain_Append> <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc07968: 48 00 37 fd bl ffc0b164 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc0796c: 80 01 00 14 lwz r0,20(r1) ffc07970: 83 c1 00 08 lwz r30,8(r1) ffc07974: 7c 08 03 a6 mtlr r0 ffc07978: 83 e1 00 0c lwz r31,12(r1) ffc0797c: 38 21 00 10 addi r1,r1,16 ffc07980: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c98 : */ int pthread_cond_broadcast( pthread_cond_t *cond ) { ffc08c98: 94 21 ff f8 stwu r1,-8(r1) ffc08c9c: 7c 08 02 a6 mflr r0 return _POSIX_Condition_variables_Signal_support( cond, true ); ffc08ca0: 38 80 00 01 li r4,1 */ int pthread_cond_broadcast( pthread_cond_t *cond ) { ffc08ca4: 90 01 00 0c stw r0,12(r1) return _POSIX_Condition_variables_Signal_support( cond, true ); ffc08ca8: 48 00 02 31 bl ffc08ed8 <_POSIX_Condition_variables_Signal_support> <== ALWAYS TAKEN } ffc08cac: 80 01 00 0c lwz r0,12(r1) ffc08cb0: 38 21 00 08 addi r1,r1,8 ffc08cb4: 7c 08 03 a6 mtlr r0 ffc08cb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cbc : */ int pthread_cond_destroy( pthread_cond_t *cond ) { ffc08cbc: 94 21 ff e0 stwu r1,-32(r1) ffc08cc0: 7c 08 02 a6 mflr r0 POSIX_Condition_variables_Control *the_cond; Objects_Locations location; the_cond = _POSIX_Condition_variables_Get( cond, &location ); ffc08cc4: 38 81 00 08 addi r4,r1,8 */ int pthread_cond_destroy( pthread_cond_t *cond ) { ffc08cc8: 90 01 00 24 stw r0,36(r1) ffc08ccc: 93 e1 00 1c stw r31,28(r1) ffc08cd0: 93 c1 00 18 stw r30,24(r1) POSIX_Condition_variables_Control *the_cond; Objects_Locations location; the_cond = _POSIX_Condition_variables_Get( cond, &location ); ffc08cd4: 48 00 00 75 bl ffc08d48 <_POSIX_Condition_variables_Get> <== ALWAYS TAKEN ffc08cd8: 7c 7f 1b 78 mr r31,r3 switch ( location ) { ffc08cdc: 80 01 00 08 lwz r0,8(r1) ffc08ce0: 38 60 00 16 li r3,22 ffc08ce4: 2f 80 00 00 cmpwi cr7,r0,0 ffc08ce8: 40 9e 00 48 bne- cr7,ffc08d30 case OBJECTS_LOCAL: if ( _Thread_queue_First( &the_cond->Wait_queue ) ) { ffc08cec: 38 7f 00 18 addi r3,r31,24 ffc08cf0: 48 00 49 51 bl ffc0d640 <_Thread_queue_First> <== ALWAYS TAKEN ffc08cf4: 2f 83 00 00 cmpwi cr7,r3,0 ffc08cf8: 41 9e 00 10 beq- cr7,ffc08d08 _Thread_Enable_dispatch(); ffc08cfc: 48 00 40 89 bl ffc0cd84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08d00: 38 60 00 10 li r3,16 return EBUSY; ffc08d04: 48 00 00 2c b ffc08d30 <== ALWAYS TAKEN } _Objects_Close( ffc08d08: 3f c0 00 00 lis r30,0 ffc08d0c: 3b de 30 90 addi r30,r30,12432 ffc08d10: 7f c3 f3 78 mr r3,r30 ffc08d14: 7f e4 fb 78 mr r4,r31 ffc08d18: 48 00 30 5d bl ffc0bd74 <_Objects_Close> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free ( POSIX_Condition_variables_Control *the_condition_variable ) { _Objects_Free( ffc08d1c: 7f c3 f3 78 mr r3,r30 ffc08d20: 7f e4 fb 78 mr r4,r31 ffc08d24: 48 00 33 91 bl ffc0c0b4 <_Objects_Free> <== ALWAYS TAKEN &_POSIX_Condition_variables_Information, &the_cond->Object ); _POSIX_Condition_variables_Free( the_cond ); _Thread_Enable_dispatch(); ffc08d28: 48 00 40 5d bl ffc0cd84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08d2c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc08d30: 80 01 00 24 lwz r0,36(r1) ffc08d34: 83 c1 00 18 lwz r30,24(r1) ffc08d38: 7c 08 03 a6 mtlr r0 ffc08d3c: 83 e1 00 1c lwz r31,28(r1) ffc08d40: 38 21 00 20 addi r1,r1,32 ffc08d44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08dcc : int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) { ffc08dcc: 94 21 ff e8 stwu r1,-24(r1) ffc08dd0: 7c 08 02 a6 mflr r0 ffc08dd4: 93 c1 00 10 stw r30,16(r1) POSIX_Condition_variables_Control *the_cond; const pthread_condattr_t *the_attr; if ( attr ) the_attr = attr; ffc08dd8: 7c 9e 23 79 mr. r30,r4 int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) { ffc08ddc: 93 81 00 08 stw r28,8(r1) ffc08de0: 7c 7c 1b 78 mr r28,r3 ffc08de4: 90 01 00 1c stw r0,28(r1) ffc08de8: 93 a1 00 0c stw r29,12(r1) ffc08dec: 93 e1 00 14 stw r31,20(r1) POSIX_Condition_variables_Control *the_cond; const pthread_condattr_t *the_attr; if ( attr ) the_attr = attr; ffc08df0: 40 a2 00 0c bne+ ffc08dfc ffc08df4: 3f c0 00 00 lis r30,0 ffc08df8: 3b de 27 08 addi r30,r30,9992 /* * Be careful about attributes when global!!! */ if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED ) ffc08dfc: 80 1e 00 04 lwz r0,4(r30) ffc08e00: 2f 80 00 01 cmpwi cr7,r0,1 ffc08e04: 41 9e 00 8c beq- cr7,ffc08e90 <== NEVER TAKEN return EINVAL; if ( !the_attr->is_initialized ) ffc08e08: 80 1e 00 00 lwz r0,0(r30) ffc08e0c: 2f 80 00 00 cmpwi cr7,r0,0 ffc08e10: 41 be 00 80 beq+ cr7,ffc08e90 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08e14: 3d 20 00 00 lis r9,0 ffc08e18: 81 69 27 c8 lwz r11,10184(r9) ffc08e1c: 38 0b 00 01 addi r0,r11,1 ffc08e20: 90 09 27 c8 stw r0,10184(r9) */ RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control *_POSIX_Condition_variables_Allocate( void ) { return (POSIX_Condition_variables_Control *) ffc08e24: 3f a0 00 00 lis r29,0 ffc08e28: 3b bd 30 90 addi r29,r29,12432 ffc08e2c: 7f a3 eb 78 mr r3,r29 ffc08e30: 48 00 2e 99 bl ffc0bcc8 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_cond = _POSIX_Condition_variables_Allocate(); if ( !the_cond ) { ffc08e34: 7c 7f 1b 79 mr. r31,r3 ffc08e38: 40 a2 00 10 bne+ ffc08e48 _Thread_Enable_dispatch(); ffc08e3c: 48 00 3f 49 bl ffc0cd84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08e40: 38 60 00 0c li r3,12 return ENOMEM; ffc08e44: 48 00 00 50 b ffc08e94 <== ALWAYS TAKEN } the_cond->process_shared = the_attr->process_shared; ffc08e48: 80 1e 00 04 lwz r0,4(r30) the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; ffc08e4c: 3b c0 00 00 li r30,0 ffc08e50: 93 df 00 14 stw r30,20(r31) /* XXX some more initialization might need to go here */ _Thread_queue_Initialize( ffc08e54: 38 7f 00 18 addi r3,r31,24 ffc08e58: 38 80 00 00 li r4,0 if ( !the_cond ) { _Thread_Enable_dispatch(); return ENOMEM; } the_cond->process_shared = the_attr->process_shared; ffc08e5c: 90 1f 00 10 stw r0,16(r31) the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; /* XXX some more initialization might need to go here */ _Thread_queue_Initialize( ffc08e60: 38 a0 08 00 li r5,2048 ffc08e64: 38 c0 00 74 li r6,116 ffc08e68: 48 00 48 a9 bl ffc0d710 <_Thread_queue_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc08e6c: 80 1f 00 08 lwz r0,8(r31) ffc08e70: 81 7d 00 1c lwz r11,28(r29) ffc08e74: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc08e78: 7f eb 49 2e stwx r31,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc08e7c: 93 df 00 0c stw r30,12(r31) &_POSIX_Condition_variables_Information, &the_cond->Object, 0 ); *cond = the_cond->Object.id; ffc08e80: 90 1c 00 00 stw r0,0(r28) _Thread_Enable_dispatch(); ffc08e84: 48 00 3f 01 bl ffc0cd84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08e88: 38 60 00 00 li r3,0 return 0; ffc08e8c: 48 00 00 08 b ffc08e94 <== ALWAYS TAKEN ffc08e90: 38 60 00 16 li r3,22 } ffc08e94: 80 01 00 1c lwz r0,28(r1) ffc08e98: 83 81 00 08 lwz r28,8(r1) ffc08e9c: 7c 08 03 a6 mtlr r0 ffc08ea0: 83 a1 00 0c lwz r29,12(r1) ffc08ea4: 83 c1 00 10 lwz r30,16(r1) ffc08ea8: 83 e1 00 14 lwz r31,20(r1) ffc08eac: 38 21 00 18 addi r1,r1,24 ffc08eb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08eb4 : */ int pthread_cond_signal( pthread_cond_t *cond ) { ffc08eb4: 94 21 ff f8 stwu r1,-8(r1) ffc08eb8: 7c 08 02 a6 mflr r0 return _POSIX_Condition_variables_Signal_support( cond, false ); ffc08ebc: 38 80 00 00 li r4,0 */ int pthread_cond_signal( pthread_cond_t *cond ) { ffc08ec0: 90 01 00 0c stw r0,12(r1) return _POSIX_Condition_variables_Signal_support( cond, false ); ffc08ec4: 48 00 00 15 bl ffc08ed8 <_POSIX_Condition_variables_Signal_support> <== ALWAYS TAKEN } ffc08ec8: 80 01 00 0c lwz r0,12(r1) ffc08ecc: 38 21 00 08 addi r1,r1,8 ffc08ed0: 7c 08 03 a6 mtlr r0 ffc08ed4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08f6c : int pthread_cond_timedwait( pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc08f6c: 94 21 ff e0 stwu r1,-32(r1) ffc08f70: 7c 08 02 a6 mflr r0 ffc08f74: 93 c1 00 18 stw r30,24(r1) ffc08f78: 7c 7e 1b 78 mr r30,r3 * So we check the abstime provided, and hold on to whether it * is valid or not. If it isn't correct and in the future, * then we do a polling operation and convert the UNSATISFIED * status into the appropriate error. */ switch ( _POSIX_Absolute_timeout_to_ticks(abstime, &ticks) ) { ffc08f7c: 7c a3 2b 78 mr r3,r5 int pthread_cond_timedwait( pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc08f80: 93 e1 00 1c stw r31,28(r1) ffc08f84: 7c 9f 23 78 mr r31,r4 * So we check the abstime provided, and hold on to whether it * is valid or not. If it isn't correct and in the future, * then we do a polling operation and convert the UNSATISFIED * status into the appropriate error. */ switch ( _POSIX_Absolute_timeout_to_ticks(abstime, &ticks) ) { ffc08f88: 38 81 00 08 addi r4,r1,8 int pthread_cond_timedwait( pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc08f8c: 90 01 00 24 stw r0,36(r1) * So we check the abstime provided, and hold on to whether it * is valid or not. If it isn't correct and in the future, * then we do a polling operation and convert the UNSATISFIED * status into the appropriate error. */ switch ( _POSIX_Absolute_timeout_to_ticks(abstime, &ticks) ) { ffc08f90: 48 00 05 f9 bl ffc09588 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN ffc08f94: 7c 66 1b 79 mr. r6,r3 ffc08f98: 38 60 00 16 li r3,22 ffc08f9c: 41 82 00 20 beq- ffc08fbc default: /* only to silence warnings */ already_timedout = false; break; } return _POSIX_Condition_variables_Wait_support( ffc08fa0: 80 a1 00 08 lwz r5,8(r1) ffc08fa4: 7f c3 f3 78 mr r3,r30 ffc08fa8: 7f e4 fb 78 mr r4,r31 ffc08fac: 20 c6 00 02 subfic r6,r6,2 ffc08fb0: 38 c0 00 00 li r6,0 ffc08fb4: 7c c6 31 14 adde r6,r6,r6 ffc08fb8: 48 00 00 45 bl ffc08ffc <_POSIX_Condition_variables_Wait_support> <== ALWAYS TAKEN cond, mutex, ticks, already_timedout ); } ffc08fbc: 80 01 00 24 lwz r0,36(r1) ffc08fc0: 83 c1 00 18 lwz r30,24(r1) ffc08fc4: 7c 08 03 a6 mtlr r0 ffc08fc8: 83 e1 00 1c lwz r31,28(r1) ffc08fcc: 38 21 00 20 addi r1,r1,32 ffc08fd0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08fd4 : int pthread_cond_wait( pthread_cond_t *cond, pthread_mutex_t *mutex ) { ffc08fd4: 94 21 ff f8 stwu r1,-8(r1) ffc08fd8: 7c 08 02 a6 mflr r0 return _POSIX_Condition_variables_Wait_support( ffc08fdc: 38 a0 00 00 li r5,0 ffc08fe0: 38 c0 00 00 li r6,0 int pthread_cond_wait( pthread_cond_t *cond, pthread_mutex_t *mutex ) { ffc08fe4: 90 01 00 0c stw r0,12(r1) return _POSIX_Condition_variables_Wait_support( ffc08fe8: 48 00 00 15 bl ffc08ffc <_POSIX_Condition_variables_Wait_support> <== ALWAYS TAKEN cond, mutex, THREAD_QUEUE_WAIT_FOREVER, false ); } ffc08fec: 80 01 00 0c lwz r0,12(r1) ffc08ff0: 38 21 00 08 addi r1,r1,8 ffc08ff4: 7c 08 03 a6 mtlr r0 ffc08ff8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c00 : int pthread_condattr_destroy( pthread_condattr_t *attr ) { if ( !attr || attr->is_initialized == false ) ffc08c00: 2c 03 00 00 cmpwi r3,0 ffc08c04: 41 82 00 20 beq- ffc08c24 ffc08c08: 80 03 00 00 lwz r0,0(r3) ffc08c0c: 2f 80 00 00 cmpwi cr7,r0,0 ffc08c10: 41 9e 00 14 beq- cr7,ffc08c24 <== NEVER TAKEN return EINVAL; attr->is_initialized = false; ffc08c14: 38 00 00 00 li r0,0 ffc08c18: 90 03 00 00 stw r0,0(r3) ffc08c1c: 38 60 00 00 li r3,0 return 0; ffc08c20: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c24: 38 60 00 16 li r3,22 } ffc08c28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c2c : int pthread_condattr_getpshared( const pthread_condattr_t *attr, int *pshared ) { if ( !attr ) ffc08c2c: 7c 69 1b 79 mr. r9,r3 ffc08c30: 38 60 00 16 li r3,22 ffc08c34: 4d 82 00 20 beqlr return EINVAL; *pshared = attr->process_shared; ffc08c38: 80 09 00 04 lwz r0,4(r9) ffc08c3c: 38 60 00 00 li r3,0 ffc08c40: 90 04 00 00 stw r0,0(r4) return 0; } ffc08c44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c48 : int pthread_condattr_init( pthread_condattr_t *attr ) { if ( !attr ) ffc08c48: 7c 69 1b 79 mr. r9,r3 ffc08c4c: 38 60 00 16 li r3,22 ffc08c50: 4d 82 00 20 beqlr return EINVAL; *attr = _POSIX_Condition_variables_Default_attributes; ffc08c54: 3d 60 00 00 lis r11,0 ffc08c58: 39 6b 27 08 addi r11,r11,9992 ffc08c5c: 81 8b 00 04 lwz r12,4(r11) ffc08c60: 38 60 00 00 li r3,0 ffc08c64: 81 6b 00 00 lwz r11,0(r11) ffc08c68: 91 89 00 04 stw r12,4(r9) ffc08c6c: 91 69 00 00 stw r11,0(r9) return 0; } ffc08c70: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c74 : int pthread_condattr_setpshared( pthread_condattr_t *attr, int pshared ) { if ( !attr ) ffc08c74: 2c 03 00 00 cmpwi r3,0 ffc08c78: 41 82 00 18 beq- ffc08c90 return EINVAL; switch ( pshared ) { ffc08c7c: 2b 84 00 01 cmplwi cr7,r4,1 ffc08c80: 41 9d 00 10 bgt- cr7,ffc08c90 case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; ffc08c84: 90 83 00 04 stw r4,4(r3) ffc08c88: 38 60 00 00 li r3,0 return 0; ffc08c8c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c90: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc08c94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07f00 : pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) { ffc07f00: 94 21 ff 90 stwu r1,-112(r1) ffc07f04: 7c 08 02 a6 mflr r0 ffc07f08: 93 01 00 50 stw r24,80(r1) int schedpolicy = SCHED_RR; struct sched_param schedparam; Objects_Name name; int rc; if ( !start_routine ) ffc07f0c: 7c b8 2b 79 mr. r24,r5 pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) { ffc07f10: 93 21 00 54 stw r25,84(r1) ffc07f14: 7c d9 33 78 mr r25,r6 ffc07f18: 93 41 00 58 stw r26,88(r1) ffc07f1c: 7c 7a 1b 78 mr r26,r3 ffc07f20: 93 c1 00 68 stw r30,104(r1) int schedpolicy = SCHED_RR; struct sched_param schedparam; Objects_Name name; int rc; if ( !start_routine ) ffc07f24: 3b c0 00 0e li r30,14 <== ALWAYS TAKEN pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) { ffc07f28: 90 01 00 74 stw r0,116(r1) ffc07f2c: 92 a1 00 44 stw r21,68(r1) ffc07f30: 92 c1 00 48 stw r22,72(r1) ffc07f34: 92 e1 00 4c stw r23,76(r1) ffc07f38: 93 61 00 5c stw r27,92(r1) ffc07f3c: 93 81 00 60 stw r28,96(r1) ffc07f40: 93 a1 00 64 stw r29,100(r1) ffc07f44: 93 e1 00 6c stw r31,108(r1) int schedpolicy = SCHED_RR; struct sched_param schedparam; Objects_Name name; int rc; if ( !start_routine ) ffc07f48: 41 82 02 74 beq- ffc081bc return EFAULT; the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes; ffc07f4c: 2f 84 00 00 cmpwi cr7,r4,0 ffc07f50: 7c 9f 23 78 mr r31,r4 ffc07f54: 40 be 00 0c bne+ cr7,ffc07f60 ffc07f58: 3f e0 ff c2 lis r31,-62 ffc07f5c: 3b ff f4 a8 addi r31,r31,-2904 if ( !the_attr->is_initialized ) ffc07f60: 80 1f 00 00 lwz r0,0(r31) ffc07f64: 2f 80 00 00 cmpwi cr7,r0,0 ffc07f68: 41 9e 02 50 beq- cr7,ffc081b8 * stack space if it is allowed to allocate it itself. * * NOTE: If the user provides the stack we will let it drop below * twice the minimum. */ if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) ) ffc07f6c: 80 1f 00 04 lwz r0,4(r31) ffc07f70: 2f 80 00 00 cmpwi cr7,r0,0 ffc07f74: 41 9e 00 18 beq- cr7,ffc07f8c ffc07f78: 3d 20 00 00 lis r9,0 ffc07f7c: 80 09 26 c8 lwz r0,9928(r9) ffc07f80: 81 3f 00 08 lwz r9,8(r31) ffc07f84: 7f 89 00 40 cmplw cr7,r9,r0 ffc07f88: 41 9c 02 30 blt- cr7,ffc081b8 * If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread * inherits scheduling attributes from the creating thread. If it is * PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the * attributes structure. */ switch ( the_attr->inheritsched ) { ffc07f8c: 80 1f 00 10 lwz r0,16(r31) ffc07f90: 2f 80 00 01 cmpwi cr7,r0,1 ffc07f94: 41 9e 00 10 beq- cr7,ffc07fa4 ffc07f98: 2f 80 00 02 cmpwi cr7,r0,2 ffc07f9c: 40 be 02 1c bne+ cr7,ffc081b8 ffc07fa0: 48 00 00 48 b ffc07fe8 <== ALWAYS TAKEN case PTHREAD_INHERIT_SCHED: api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc07fa4: 3d 20 00 00 lis r9,0 ffc07fa8: 81 29 27 d8 lwz r9,10200(r9) ffc07fac: 81 29 01 48 lwz r9,328(r9) schedpolicy = api->schedpolicy; schedparam = api->schedparam; ffc07fb0: 81 69 00 88 lwz r11,136(r9) ffc07fb4: 80 09 00 8c lwz r0,140(r9) ffc07fb8: 81 09 00 80 lwz r8,128(r9) ffc07fbc: 81 49 00 84 lwz r10,132(r9) * attributes structure. */ switch ( the_attr->inheritsched ) { case PTHREAD_INHERIT_SCHED: api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; schedpolicy = api->schedpolicy; ffc07fc0: 83 89 00 7c lwz r28,124(r9) schedparam = api->schedparam; ffc07fc4: 91 01 00 20 stw r8,32(r1) ffc07fc8: 91 41 00 24 stw r10,36(r1) ffc07fcc: 91 61 00 28 stw r11,40(r1) <== ALWAYS TAKEN ffc07fd0: 90 01 00 2c stw r0,44(r1) ffc07fd4: 81 69 00 94 lwz r11,148(r9) ffc07fd8: 80 09 00 90 lwz r0,144(r9) ffc07fdc: 91 61 00 34 stw r11,52(r1) ffc07fe0: 90 01 00 30 stw r0,48(r1) break; ffc07fe4: 48 00 00 38 b ffc0801c <== ALWAYS TAKEN case PTHREAD_EXPLICIT_SCHED: schedpolicy = the_attr->schedpolicy; schedparam = the_attr->schedparam; ffc07fe8: 81 3f 00 20 lwz r9,32(r31) ffc07fec: 80 1f 00 24 lwz r0,36(r31) ffc07ff0: 81 5f 00 18 lwz r10,24(r31) ffc07ff4: 81 7f 00 1c lwz r11,28(r31) schedpolicy = api->schedpolicy; schedparam = api->schedparam; break; case PTHREAD_EXPLICIT_SCHED: schedpolicy = the_attr->schedpolicy; ffc07ff8: 83 9f 00 14 lwz r28,20(r31) schedparam = the_attr->schedparam; ffc07ffc: 91 41 00 20 stw r10,32(r1) <== ALWAYS TAKEN ffc08000: 91 61 00 24 stw r11,36(r1) ffc08004: 91 21 00 28 stw r9,40(r1) ffc08008: 90 01 00 2c stw r0,44(r1) ffc0800c: 81 3f 00 28 lwz r9,40(r31) ffc08010: 80 1f 00 2c lwz r0,44(r31) ffc08014: 91 21 00 30 stw r9,48(r1) ffc08018: 90 01 00 34 stw r0,52(r1) /* * Check the contentionscope since rtems only supports PROCESS wide * contention (i.e. no system wide contention). */ if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS ) ffc0801c: 80 1f 00 0c lwz r0,12(r31) ffc08020: 3b c0 00 86 li r30,134 ffc08024: 2f 80 00 00 cmpwi cr7,r0,0 ffc08028: 40 9e 01 94 bne- cr7,ffc081bc return ENOTSUP; /* * Interpret the scheduling parameters. */ if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) ) ffc0802c: 80 61 00 20 lwz r3,32(r1) ffc08030: 48 00 71 35 bl ffc0f164 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc08034: 2f 83 00 00 cmpwi cr7,r3,0 ffc08038: 41 be 01 80 beq+ cr7,ffc081b8 <== NEVER TAKEN return EINVAL; core_priority = _POSIX_Priority_To_core( schedparam.sched_priority ); ffc0803c: 7c 24 0b 78 mr r4,r1 ffc08040: 86 e4 00 20 lwzu r23,32(r4) RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); ffc08044: 3d 20 00 00 lis r9,0 /* * Set the core scheduling policy information. */ rc = _POSIX_Thread_Translate_sched_param( ffc08048: 7f 83 e3 78 mr r3,r28 ffc0804c: 8a c9 26 cc lbz r22,9932(r9) ffc08050: 38 a1 00 18 addi r5,r1,24 ffc08054: 38 c1 00 1c addi r6,r1,28 ffc08058: 48 00 71 31 bl ffc0f188 <_POSIX_Thread_Translate_sched_param> <== ALWAYS TAKEN schedpolicy, &schedparam, &budget_algorithm, &budget_callout ); if ( rc ) ffc0805c: 7c 7e 1b 79 mr. r30,r3 ffc08060: 40 a2 01 5c bne+ ffc081bc #endif /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); ffc08064: 3e a0 00 00 lis r21,0 ffc08068: 80 75 27 d0 lwz r3,10192(r21) * _POSIX_Threads_Allocate */ RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information ); ffc0806c: 3f 60 00 00 lis r27,0 ffc08070: 3b 7b 2e 58 addi r27,r27,11864 ffc08074: 48 00 1c b5 bl ffc09d28 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc08078: 7f 63 db 78 mr r3,r27 ffc0807c: 48 00 27 75 bl ffc0a7f0 <_Objects_Allocate> <== ALWAYS TAKEN * Allocate the thread control block. * * NOTE: Global threads are not currently supported. */ the_thread = _POSIX_Threads_Allocate(); if ( !the_thread ) { ffc08080: 7c 7d 1b 79 mr. r29,r3 ffc08084: 40 a2 00 0c bne+ ffc08090 _RTEMS_Unlock_allocator(); ffc08088: 80 75 27 d0 lwz r3,10192(r21) ffc0808c: 48 00 00 78 b ffc08104 <== ALWAYS TAKEN /* * Initialize the core thread for this task. */ name.name_p = NULL; /* posix threads don't have a name by default */ status = _Thread_Initialize( ffc08090: 3d 20 00 00 lis r9,0 ffc08094: 80 1f 00 08 lwz r0,8(r31) ffc08098: 80 c9 26 c8 lwz r6,9928(r9) ffc0809c: 93 c1 00 38 stw r30,56(r1) ffc080a0: 54 c6 08 3c rlwinm r6,r6,1,0,30 ffc080a4: 7f 86 00 40 cmplw cr7,r6,r0 <== ALWAYS TAKEN ffc080a8: 80 bf 00 04 lwz r5,4(r31) ffc080ac: 40 9c 00 08 bge- cr7,ffc080b4 ffc080b0: 7c 06 03 78 mr r6,r0 ffc080b4: 80 01 00 1c lwz r0,28(r1) ffc080b8: 7d 17 b0 50 subf r8,r23,r22 ffc080bc: 81 41 00 18 lwz r10,24(r1) ffc080c0: 7f 63 db 78 mr r3,r27 ffc080c4: 90 01 00 08 stw r0,8(r1) ffc080c8: 38 00 00 00 li r0,0 ffc080cc: 7f a4 eb 78 mr r4,r29 ffc080d0: 90 01 00 0c stw r0,12(r1) ffc080d4: 38 e0 00 01 li r7,1 ffc080d8: 38 01 00 38 addi r0,r1,56 ffc080dc: 39 20 00 01 li r9,1 ffc080e0: 90 01 00 10 stw r0,16(r1) ffc080e4: 48 00 38 e9 bl ffc0b9cc <_Thread_Initialize> <== ALWAYS TAKEN budget_callout, 0, /* isr level */ name /* posix threads don't have a name */ ); if ( !status ) { ffc080e8: 2f 83 00 00 cmpwi cr7,r3,0 ffc080ec: 40 9e 00 20 bne- cr7,ffc0810c RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free ( Thread_Control *the_pthread ) { _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); ffc080f0: 7f 63 db 78 mr r3,r27 ffc080f4: 7f a4 eb 78 mr r4,r29 ffc080f8: 48 00 2a e5 bl ffc0abdc <_Objects_Free> <== ALWAYS TAKEN _POSIX_Threads_Free( the_thread ); _RTEMS_Unlock_allocator(); ffc080fc: 3d 20 00 00 lis r9,0 ffc08100: 80 69 27 d0 lwz r3,10192(r9) ffc08104: 3b c0 00 0b li r30,11 ffc08108: 48 00 00 a8 b ffc081b0 <== ALWAYS TAKEN } /* * finish initializing the per API structure */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0810c: 83 7d 01 48 lwz r27,328(r29) api->Attributes = *the_attr; ffc08110: 7f e4 fb 78 mr r4,r31 ffc08114: 38 a0 00 38 li r5,56 ffc08118: 7f 63 db 78 mr r3,r27 ffc0811c: 48 00 b8 49 bl ffc13964 <== ALWAYS TAKEN api->detachstate = the_attr->detachstate; ffc08120: 80 1f 00 34 lwz r0,52(r31) api->schedpolicy = schedpolicy; ffc08124: 93 9b 00 7c stw r28,124(r27) the_thread->do_post_task_switch_extension = true; /* * POSIX threads are allocated and started in one operation. */ status = _Thread_Start( ffc08128: 7f 05 c3 78 mr r5,r24 ffc0812c: 7f 26 cb 78 mr r6,r25 * finish initializing the per API structure */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; api->detachstate = the_attr->detachstate; ffc08130: 90 1b 00 38 stw r0,56(r27) the_thread->do_post_task_switch_extension = true; /* * POSIX threads are allocated and started in one operation. */ status = _Thread_Start( ffc08134: 7f a3 eb 78 mr r3,r29 ffc08138: 38 80 00 01 li r4,1 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; api->detachstate = the_attr->detachstate; api->schedpolicy = schedpolicy; api->schedparam = schedparam; ffc0813c: 81 21 00 28 lwz r9,40(r1) the_thread->do_post_task_switch_extension = true; /* * POSIX threads are allocated and started in one operation. */ status = _Thread_Start( ffc08140: 38 e0 00 00 li r7,0 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; api->detachstate = the_attr->detachstate; api->schedpolicy = schedpolicy; api->schedparam = schedparam; ffc08144: 80 01 00 2c lwz r0,44(r1) ffc08148: 81 61 00 24 lwz r11,36(r1) ffc0814c: 81 41 00 20 lwz r10,32(r1) ffc08150: 91 3b 00 88 stw r9,136(r27) * This insures we evaluate the process-wide signals pending when we * first run. * * NOTE: Since the thread starts with all unblocked, this is necessary. */ the_thread->do_post_task_switch_extension = true; ffc08154: 39 20 00 01 li r9,1 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; api->detachstate = the_attr->detachstate; api->schedpolicy = schedpolicy; api->schedparam = schedparam; ffc08158: 91 5b 00 80 stw r10,128(r27) ffc0815c: 91 7b 00 84 stw r11,132(r27) <== ALWAYS TAKEN ffc08160: 90 1b 00 8c stw r0,140(r27) * This insures we evaluate the process-wide signals pending when we * first run. * * NOTE: Since the thread starts with all unblocked, this is necessary. */ the_thread->do_post_task_switch_extension = true; ffc08164: 99 3d 00 74 stb r9,116(r29) api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; api->detachstate = the_attr->detachstate; api->schedpolicy = schedpolicy; api->schedparam = schedparam; ffc08168: 80 01 00 34 lwz r0,52(r1) ffc0816c: 81 21 00 30 lwz r9,48(r1) ffc08170: 90 1b 00 94 stw r0,148(r27) ffc08174: 91 3b 00 90 stw r9,144(r27) the_thread->do_post_task_switch_extension = true; /* * POSIX threads are allocated and started in one operation. */ status = _Thread_Start( ffc08178: 48 00 45 01 bl ffc0c678 <_Thread_Start> <== ALWAYS TAKEN _RTEMS_Unlock_allocator(); return EINVAL; } #endif if ( schedpolicy == SCHED_SPORADIC ) { ffc0817c: 2f 9c 00 03 cmpwi cr7,r28,3 ffc08180: 40 be 00 20 bne+ cr7,ffc081a0 _Watchdog_Insert_ticks( ffc08184: 38 7b 00 88 addi r3,r27,136 ffc08188: 48 00 48 89 bl ffc0ca10 <_Timespec_To_ticks> <== ALWAYS TAKEN ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0818c: 38 9b 00 9c addi r4,r27,156 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc08190: 90 7b 00 a8 stw r3,168(r27) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08194: 3c 60 00 00 lis r3,0 ffc08198: 38 63 2d 28 addi r3,r3,11560 ffc0819c: 48 00 4d cd bl ffc0cf68 <_Watchdog_Insert> <== ALWAYS TAKEN } /* * Return the id and indicate we successfully created the thread */ *thread = the_thread->Object.id; ffc081a0: 80 1d 00 08 lwz r0,8(r29) _RTEMS_Unlock_allocator(); ffc081a4: 3d 20 00 00 lis r9,0 ffc081a8: 80 69 27 d0 lwz r3,10192(r9) } /* * Return the id and indicate we successfully created the thread */ *thread = the_thread->Object.id; ffc081ac: 90 1a 00 00 stw r0,0(r26) _RTEMS_Unlock_allocator(); ffc081b0: 48 00 1b f9 bl ffc09da8 <_API_Mutex_Unlock> <== ALWAYS TAKEN return 0; ffc081b4: 48 00 00 08 b ffc081bc <== ALWAYS TAKEN ffc081b8: 3b c0 00 16 li r30,22 } ffc081bc: 80 01 00 74 lwz r0,116(r1) ffc081c0: 7f c3 f3 78 mr r3,r30 ffc081c4: 82 a1 00 44 lwz r21,68(r1) ffc081c8: 7c 08 03 a6 mtlr r0 ffc081cc: 82 c1 00 48 lwz r22,72(r1) ffc081d0: 82 e1 00 4c lwz r23,76(r1) ffc081d4: 83 01 00 50 lwz r24,80(r1) ffc081d8: 83 21 00 54 lwz r25,84(r1) ffc081dc: 83 41 00 58 lwz r26,88(r1) ffc081e0: 83 61 00 5c lwz r27,92(r1) ffc081e4: 83 81 00 60 lwz r28,96(r1) <== ALWAYS TAKEN ffc081e8: 83 a1 00 64 lwz r29,100(r1) ffc081ec: 83 c1 00 68 lwz r30,104(r1) ffc081f0: 83 e1 00 6c lwz r31,108(r1) ffc081f4: 38 21 00 70 addi r1,r1,112 ffc081f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07f64 : #include int pthread_detach( pthread_t thread ) { ffc07f64: 94 21 ff e8 stwu r1,-24(r1) ffc07f68: 7c 08 02 a6 mflr r0 ffc07f6c: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) ffc07f70: 3c 60 00 00 lis r3,0 ffc07f74: 90 01 00 1c stw r0,28(r1) ffc07f78: 38 63 2e b8 addi r3,r3,11960 ffc07f7c: 38 a1 00 08 addi r5,r1,8 ffc07f80: 48 00 29 d1 bl ffc0a950 <_Objects_Get> <== ALWAYS TAKEN register Thread_Control *the_thread; POSIX_API_Control *api; Objects_Locations location; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc07f84: 81 21 00 08 lwz r9,8(r1) ffc07f88: 38 00 00 03 li r0,3 ffc07f8c: 2f 89 00 00 cmpwi cr7,r9,0 ffc07f90: 40 9e 00 14 bne- cr7,ffc07fa4 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->detachstate = PTHREAD_CREATE_DETACHED; ffc07f94: 81 63 01 48 lwz r11,328(r3) ffc07f98: 91 2b 00 38 stw r9,56(r11) _Thread_Enable_dispatch(); ffc07f9c: 48 00 34 c5 bl ffc0b460 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07fa0: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return ESRCH; } ffc07fa4: 7c 03 03 78 mr r3,r0 ffc07fa8: 80 01 00 1c lwz r0,28(r1) ffc07fac: 38 21 00 18 addi r1,r1,24 ffc07fb0: 7c 08 03 a6 mtlr r0 ffc07fb4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc081fc : break; } return status; #endif } ffc081fc: 7c 63 22 78 xor r3,r3,r4 ffc08200: 7c 63 00 34 cntlzw r3,r3 ffc08204: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc08208: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10778 : void pthread_exit( void *value_ptr ) { _POSIX_Thread_Exit( _Thread_Executing, value_ptr ); ffc10778: 3d 20 00 00 lis r9,0 } void pthread_exit( void *value_ptr ) { ffc1077c: 7c 64 1b 78 mr r4,r3 _POSIX_Thread_Exit( _Thread_Executing, value_ptr ); ffc10780: 80 69 27 b0 lwz r3,10160(r9) ffc10784: 4b ff ff 5c b ffc106e0 <_POSIX_Thread_Exit> <== ALWAYS TAKEN ffc07ce8 : int pthread_getcpuclockid( pthread_t pid, clockid_t *clock_id ) { ffc07ce8: 94 21 ff f8 stwu r1,-8(r1) ffc07cec: 7c 08 02 a6 mflr r0 ffc07cf0: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07cf4: 48 00 ad e5 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07cf8: 38 00 00 58 li r0,88 ffc07cfc: 90 03 00 00 stw r0,0(r3) } ffc07d00: 38 60 ff ff li r3,-1 ffc07d04: 80 01 00 0c lwz r0,12(r1) ffc07d08: 38 21 00 08 addi r1,r1,8 ffc07d0c: 7c 08 03 a6 mtlr r0 ffc07d10: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ade0 : int pthread_getschedparam( pthread_t thread, int *policy, struct sched_param *param ) { ffc0ade0: 94 21 ff e0 stwu r1,-32(r1) ffc0ade4: 7c 08 02 a6 mflr r0 ffc0ade8: 93 c1 00 18 stw r30,24(r1) Objects_Locations location; POSIX_API_Control *api; register Thread_Control *the_thread; if ( !policy || !param ) ffc0adec: 7c 9e 23 79 mr. r30,r4 int pthread_getschedparam( pthread_t thread, int *policy, struct sched_param *param ) { ffc0adf0: 7c 64 1b 78 mr r4,r3 ffc0adf4: 93 e1 00 1c stw r31,28(r1) ffc0adf8: 7c bf 2b 78 mr r31,r5 ffc0adfc: 90 01 00 24 stw r0,36(r1) Objects_Locations location; POSIX_API_Control *api; register Thread_Control *the_thread; if ( !policy || !param ) ffc0ae00: 41 82 00 88 beq- ffc0ae88 ffc0ae04: 2f 85 00 00 cmpwi cr7,r5,0 ffc0ae08: 41 9e 00 80 beq- cr7,ffc0ae88 RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) ffc0ae0c: 3c 60 00 00 lis r3,0 ffc0ae10: 38 63 2e d8 addi r3,r3,11992 ffc0ae14: 38 a1 00 08 addi r5,r1,8 ffc0ae18: 48 00 2b 09 bl ffc0d920 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc0ae1c: 81 21 00 08 lwz r9,8(r1) ffc0ae20: 38 00 00 03 li r0,3 ffc0ae24: 2f 89 00 00 cmpwi cr7,r9,0 ffc0ae28: 40 9e 00 64 bne- cr7,ffc0ae8c case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0ae2c: 81 23 01 48 lwz r9,328(r3) if ( policy ) *policy = api->schedpolicy; ffc0ae30: 80 09 00 7c lwz r0,124(r9) ffc0ae34: 90 1e 00 00 stw r0,0(r30) if ( param ) { *param = api->schedparam; ffc0ae38: 81 69 00 88 lwz r11,136(r9) ffc0ae3c: 80 09 00 8c lwz r0,140(r9) ffc0ae40: 81 09 00 80 lwz r8,128(r9) ffc0ae44: 81 49 00 84 lwz r10,132(r9) ffc0ae48: 91 1f 00 00 stw r8,0(r31) ffc0ae4c: 91 5f 00 04 stw r10,4(r31) ffc0ae50: 91 7f 00 08 stw r11,8(r31) ffc0ae54: 90 1f 00 0c stw r0,12(r31) ffc0ae58: 80 09 00 90 lwz r0,144(r9) ffc0ae5c: 81 69 00 94 lwz r11,148(r9) param->sched_priority = ffc0ae60: 3d 20 00 00 lis r9,0 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( policy ) *policy = api->schedpolicy; if ( param ) { *param = api->schedparam; ffc0ae64: 90 1f 00 10 stw r0,16(r31) ffc0ae68: 91 7f 00 14 stw r11,20(r31) param->sched_priority = ffc0ae6c: 89 29 27 0c lbz r9,9996(r9) ffc0ae70: 80 03 00 14 lwz r0,20(r3) ffc0ae74: 7c 00 48 50 subf r0,r0,r9 ffc0ae78: 90 1f 00 00 stw r0,0(r31) _POSIX_Priority_From_core( the_thread->current_priority ); } _Thread_Enable_dispatch(); ffc0ae7c: 48 00 35 b5 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0ae80: 38 00 00 00 li r0,0 return 0; ffc0ae84: 48 00 00 08 b ffc0ae8c <== ALWAYS TAKEN ffc0ae88: 38 00 00 16 li r0,22 break; } return ESRCH; } ffc0ae8c: 7c 03 03 78 mr r3,r0 ffc0ae90: 80 01 00 24 lwz r0,36(r1) ffc0ae94: 83 c1 00 18 lwz r30,24(r1) ffc0ae98: 7c 08 03 a6 mtlr r0 ffc0ae9c: 83 e1 00 1c lwz r31,28(r1) ffc0aea0: 38 21 00 20 addi r1,r1,32 ffc0aea4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e44 : */ void *pthread_getspecific( pthread_key_t key ) { ffc07e44: 94 21 ff e0 stwu r1,-32(r1) ffc07e48: 7c 08 02 a6 mflr r0 ffc07e4c: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get ( pthread_key_t id, Objects_Locations *location ) { return (POSIX_Keys_Control *) ffc07e50: 3c 60 00 00 lis r3,0 ffc07e54: 90 01 00 24 stw r0,36(r1) ffc07e58: 38 63 30 b0 addi r3,r3,12464 ffc07e5c: 38 a1 00 08 addi r5,r1,8 ffc07e60: 93 e1 00 1c stw r31,28(r1) ffc07e64: 48 00 2c 99 bl ffc0aafc <_Objects_Get> <== ALWAYS TAKEN uint32_t index; Objects_Locations location; void *key_data; the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { ffc07e68: 3b e0 00 00 li r31,0 ffc07e6c: 80 01 00 08 lwz r0,8(r1) ffc07e70: 2f 80 00 00 cmpwi cr7,r0,0 ffc07e74: 40 9e 00 28 bne- cr7,ffc07e9c case OBJECTS_LOCAL: api = _Objects_Get_API( _Thread_Executing->Object.id ); ffc07e78: 3d 20 00 00 lis r9,0 ffc07e7c: 81 29 28 44 lwz r9,10308(r9) ffc07e80: 80 09 00 08 lwz r0,8(r9) index = _Objects_Get_index( _Thread_Executing->Object.id ); key_data = (void *) the_key->Values[ api ][ index ]; ffc07e84: 54 09 56 fa rlwinm r9,r0,10,27,29 ffc07e88: 7c 63 4a 14 add r3,r3,r9 ffc07e8c: 81 23 00 14 lwz r9,20(r3) ffc07e90: 54 00 13 ba rlwinm r0,r0,2,14,29 ffc07e94: 7f e9 00 2e lwzx r31,r9,r0 _Thread_Enable_dispatch(); ffc07e98: 48 00 37 75 bl ffc0b60c <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return NULL; } ffc07e9c: 80 01 00 24 lwz r0,36(r1) ffc07ea0: 7f e3 fb 78 mr r3,r31 ffc07ea4: 83 e1 00 1c lwz r31,28(r1) ffc07ea8: 38 21 00 20 addi r1,r1,32 ffc07eac: 7c 08 03 a6 mtlr r0 ffc07eb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d264 : int pthread_join( pthread_t thread, void **value_ptr ) { ffc0d264: 94 21 ff e0 stwu r1,-32(r1) ffc0d268: 7c 08 02 a6 mflr r0 ffc0d26c: 90 01 00 24 stw r0,36(r1) ffc0d270: 7c 60 1b 78 mr r0,r3 ffc0d274: 3c 60 00 00 lis r3,0 ffc0d278: 93 e1 00 1c stw r31,28(r1) ffc0d27c: 38 63 2e d8 addi r3,r3,11992 ffc0d280: 7c 9f 23 78 mr r31,r4 ffc0d284: 38 a1 00 08 addi r5,r1,8 ffc0d288: 7c 04 03 78 mr r4,r0 ffc0d28c: 48 00 2a 1d bl ffc0fca8 <_Objects_Get> <== ALWAYS TAKEN POSIX_API_Control *api; Objects_Locations location; void *return_pointer; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc0d290: 81 21 00 08 lwz r9,8(r1) ffc0d294: 38 00 00 03 li r0,3 ffc0d298: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d29c: 40 9e 00 78 bne- cr7,ffc0d314 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0d2a0: 81 23 01 48 lwz r9,328(r3) if ( api->detachstate == PTHREAD_CREATE_DETACHED ) { ffc0d2a4: 80 09 00 38 lwz r0,56(r9) ffc0d2a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d2ac: 40 9e 00 10 bne- cr7,ffc0d2bc _Thread_Enable_dispatch(); ffc0d2b0: 48 00 35 09 bl ffc107b8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d2b4: 38 00 00 16 li r0,22 return EINVAL; ffc0d2b8: 48 00 00 5c b ffc0d314 <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); ffc0d2bc: 3d 60 00 00 lis r11,0 ffc0d2c0: 81 6b 28 60 lwz r11,10336(r11) } if ( _Thread_Is_executing( the_thread ) ) { ffc0d2c4: 7f 83 58 00 cmpw cr7,r3,r11 ffc0d2c8: 40 be 00 10 bne+ cr7,ffc0d2d8 _Thread_Enable_dispatch(); ffc0d2cc: 48 00 34 ed bl ffc107b8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d2d0: 38 00 00 2d li r0,45 return EDEADLK; ffc0d2d4: 48 00 00 40 b ffc0d314 <== ALWAYS TAKEN /* * Put ourself on the threads join list */ _Thread_Executing->Wait.return_argument = &return_pointer; ffc0d2d8: 38 01 00 0c addi r0,r1,12 ffc0d2dc: 90 0b 00 28 stw r0,40(r11) 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; ffc0d2e0: 38 00 00 01 li r0,1 _Thread_queue_Enter_critical_section( &api->Join_List ); _Thread_queue_Enqueue( &api->Join_List, WATCHDOG_NO_TIMEOUT ); ffc0d2e4: 3c a0 ff c1 lis r5,-63 ffc0d2e8: 90 09 00 6c stw r0,108(r9) ffc0d2ec: 38 69 00 3c addi r3,r9,60 ffc0d2f0: 38 a5 11 a4 addi r5,r5,4516 ffc0d2f4: 38 80 00 00 li r4,0 ffc0d2f8: 48 00 3a b5 bl ffc10dac <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0d2fc: 48 00 34 bd bl ffc107b8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( value_ptr ) ffc0d300: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0d304: 38 00 00 00 li r0,0 ffc0d308: 41 9e 00 0c beq- cr7,ffc0d314 *value_ptr = return_pointer; ffc0d30c: 81 21 00 0c lwz r9,12(r1) ffc0d310: 91 3f 00 00 stw r9,0(r31) case OBJECTS_ERROR: break; } return ESRCH; } ffc0d314: 7c 03 03 78 mr r3,r0 ffc0d318: 80 01 00 24 lwz r0,36(r1) ffc0d31c: 83 e1 00 1c lwz r31,28(r1) ffc0d320: 38 21 00 20 addi r1,r1,32 ffc0d324: 7c 08 03 a6 mtlr r0 ffc0d328: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07c40 : ffc07c40: 3d 20 00 00 lis r9,0 int pthread_key_create( pthread_key_t *key, void (*destructor)( void * ) ) { ffc07c44: 94 21 ff e0 stwu r1,-32(r1) ffc07c48: 7c 08 02 a6 mflr r0 ffc07c4c: 81 69 28 04 lwz r11,10244(r9) ffc07c50: 93 81 00 10 stw r28,16(r1) ffc07c54: 7c 7c 1b 78 mr r28,r3 ffc07c58: 39 6b 00 01 addi r11,r11,1 ffc07c5c: 93 c1 00 18 stw r30,24(r1) ffc07c60: 7c 9e 23 78 mr r30,r4 ffc07c64: 90 01 00 24 stw r0,36(r1) ffc07c68: 93 41 00 08 stw r26,8(r1) ffc07c6c: 93 61 00 0c stw r27,12(r1) ffc07c70: 93 a1 00 14 stw r29,20(r1) ffc07c74: 93 e1 00 1c stw r31,28(r1) ffc07c78: 91 69 28 04 stw r11,10244(r9) * the inactive chain of free keys control blocks. */ RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void ) { return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information ); ffc07c7c: 3c 60 00 00 lis r3,0 ffc07c80: 38 63 30 b0 addi r3,r3,12464 ffc07c84: 48 00 28 cd bl ffc0a550 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_key = _POSIX_Keys_Allocate(); if ( !the_key ) { ffc07c88: 7c 7f 1b 79 mr. r31,r3 ffc07c8c: 40 a2 00 10 bne+ ffc07c9c _Thread_Enable_dispatch(); ffc07c90: 48 00 39 7d bl ffc0b60c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07c94: 38 60 00 0b li r3,11 return EAGAIN; ffc07c98: 48 00 00 e4 b ffc07d7c <== ALWAYS TAKEN for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) { if ( _Objects_Information_table[ the_api ] ) { ffc07c9c: 3f 60 00 00 lis r27,0 if ( !the_key ) { _Thread_Enable_dispatch(); return EAGAIN; } the_key->destructor = destructor; ffc07ca0: 93 df 00 10 stw r30,16(r31) for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) { if ( _Objects_Information_table[ the_api ] ) { ffc07ca4: 3b 7b 2c 80 addi r27,r27,11392 if ( !the_key ) { _Thread_Enable_dispatch(); return EAGAIN; } the_key->destructor = destructor; ffc07ca8: 7f fd fb 78 mr r29,r31 ffc07cac: 3b c0 00 01 li r30,1 for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) { if ( _Objects_Information_table[ the_api ] ) { ffc07cb0: 57 c0 10 3a rlwinm r0,r30,2,0,29 ffc07cb4: 7d 3b 00 2e lwzx r9,r27,r0 ffc07cb8: 2f 89 00 00 cmpwi cr7,r9,0 ffc07cbc: 41 9e 00 84 beq- cr7,ffc07d40 INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY ); #endif bytes_to_allocate = sizeof( void * ) * ffc07cc0: 81 29 00 04 lwz r9,4(r9) ffc07cc4: a3 49 00 10 lhz r26,16(r9) ffc07cc8: 3b 5a 00 01 addi r26,r26,1 ffc07ccc: 57 5a 10 3a rlwinm r26,r26,2,0,29 (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); ffc07cd0: 7f 43 d3 78 mr r3,r26 ffc07cd4: 48 00 53 7d bl ffc0d050 <_Workspace_Allocate> <== ALWAYS TAKEN _Thread_Enable_dispatch(); return ENOMEM; } the_key->Values[ the_api ] = table; memset( table, '\0', bytes_to_allocate ); ffc07cd8: 7f 45 d3 78 mr r5,r26 ); #endif bytes_to_allocate = sizeof( void * ) * (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { ffc07cdc: 7c 60 1b 79 mr. r0,r3 _Thread_Enable_dispatch(); return ENOMEM; } the_key->Values[ the_api ] = table; memset( table, '\0', bytes_to_allocate ); ffc07ce0: 38 80 00 00 li r4,0 ); #endif bytes_to_allocate = sizeof( void * ) * (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { ffc07ce4: 40 a2 00 50 bne+ ffc07d34 for ( --the_api; ffc07ce8: 3b be 00 03 addi r29,r30,3 ffc07cec: 57 bd 10 3a rlwinm r29,r29,2,0,29 ffc07cf0: 7f bf ea 14 add r29,r31,r29 ffc07cf4: 3b bd 00 04 addi r29,r29,4 ffc07cf8: 3b de ff ff addi r30,r30,-1 ffc07cfc: 48 00 00 10 b ffc07d0c <== ALWAYS TAKEN the_api >= 1; the_api-- ) _Workspace_Free( the_key->Values[ the_api ] ); ffc07d00: 80 7d 00 00 lwz r3,0(r29) (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { for ( --the_api; the_api >= 1; the_api-- ) ffc07d04: 3b bd ff fc addi r29,r29,-4 _Workspace_Free( the_key->Values[ the_api ] ); ffc07d08: 48 00 53 7d bl ffc0d084 <_Workspace_Free> <== ALWAYS TAKEN #endif bytes_to_allocate = sizeof( void * ) * (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { for ( --the_api; ffc07d0c: 2f 9e 00 00 cmpwi cr7,r30,0 the_api >= 1; the_api-- ) ffc07d10: 3b de ff ff addi r30,r30,-1 #endif bytes_to_allocate = sizeof( void * ) * (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { for ( --the_api; ffc07d14: 40 9e ff ec bne+ cr7,ffc07d00 */ RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free ( POSIX_Keys_Control *the_key ) { _Objects_Free( &_POSIX_Keys_Information, &the_key->Object ); ffc07d18: 3c 60 00 00 lis r3,0 ffc07d1c: 38 63 30 b0 addi r3,r3,12464 ffc07d20: 7f e4 fb 78 mr r4,r31 ffc07d24: 48 00 2c 19 bl ffc0a93c <_Objects_Free> <== ALWAYS TAKEN the_api >= 1; the_api-- ) _Workspace_Free( the_key->Values[ the_api ] ); _POSIX_Keys_Free( the_key ); _Thread_Enable_dispatch(); ffc07d28: 48 00 38 e5 bl ffc0b60c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07d2c: 38 60 00 0c li r3,12 return ENOMEM; ffc07d30: 48 00 00 4c b ffc07d7c <== ALWAYS TAKEN } the_key->Values[ the_api ] = table; ffc07d34: 90 1d 00 18 stw r0,24(r29) memset( table, '\0', bytes_to_allocate ); ffc07d38: 48 00 bd 0d bl ffc13a44 <== ALWAYS TAKEN ffc07d3c: 48 00 00 08 b ffc07d44 <== ALWAYS TAKEN } else { the_key->Values[ the_api ] = NULL; ffc07d40: 91 3d 00 18 stw r9,24(r29) * This is a bit more complex than one might initially expect because * APIs are optional. Thus there may be no ITRON tasks to have keys * for. [NOTE: Currently RTEMS Classic API tasks are always enabled.] */ for ( the_api = 1; ffc07d44: 2f 9e 00 04 cmpwi cr7,r30,4 the_api <= OBJECTS_APIS_LAST; the_api++ ) { ffc07d48: 3b bd 00 04 addi r29,r29,4 * This is a bit more complex than one might initially expect because * APIs are optional. Thus there may be no ITRON tasks to have keys * for. [NOTE: Currently RTEMS Classic API tasks are always enabled.] */ for ( the_api = 1; ffc07d4c: 3b de 00 01 addi r30,r30,1 ffc07d50: 40 9e ff 60 bne+ cr7,ffc07cb0 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc07d54: 80 1f 00 08 lwz r0,8(r31) ffc07d58: 3d 20 00 00 lis r9,0 ffc07d5c: 81 69 30 cc lwz r11,12492(r9) ffc07d60: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc07d64: 7f eb 49 2e stwx r31,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc07d68: 39 20 00 00 li r9,0 ffc07d6c: 91 3f 00 0c stw r9,12(r31) } _Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 ); *key = the_key->Object.id; ffc07d70: 90 1c 00 00 stw r0,0(r28) _Thread_Enable_dispatch(); ffc07d74: 48 00 38 99 bl ffc0b60c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07d78: 38 60 00 00 li r3,0 return 0; } ffc07d7c: 80 01 00 24 lwz r0,36(r1) ffc07d80: 83 41 00 08 lwz r26,8(r1) ffc07d84: 7c 08 03 a6 mtlr r0 ffc07d88: 83 61 00 0c lwz r27,12(r1) ffc07d8c: 83 81 00 10 lwz r28,16(r1) ffc07d90: 83 a1 00 14 lwz r29,20(r1) ffc07d94: 83 c1 00 18 lwz r30,24(r1) ffc07d98: 83 e1 00 1c lwz r31,28(r1) ffc07d9c: 38 21 00 20 addi r1,r1,32 ffc07da0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07da4 : */ int pthread_key_delete( pthread_key_t key ) { ffc07da4: 94 21 ff e0 stwu r1,-32(r1) ffc07da8: 7c 08 02 a6 mflr r0 ffc07dac: 7c 64 1b 78 mr r4,r3 ffc07db0: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get ( pthread_key_t id, Objects_Locations *location ) { return (POSIX_Keys_Control *) ffc07db4: 3f e0 00 00 lis r31,0 ffc07db8: 3b ff 30 b0 addi r31,r31,12464 ffc07dbc: 7f e3 fb 78 mr r3,r31 ffc07dc0: 90 01 00 24 stw r0,36(r1) ffc07dc4: 38 a1 00 08 addi r5,r1,8 ffc07dc8: 93 c1 00 18 stw r30,24(r1) ffc07dcc: 48 00 2d 31 bl ffc0aafc <_Objects_Get> <== ALWAYS TAKEN ffc07dd0: 7c 7e 1b 78 mr r30,r3 register POSIX_Keys_Control *the_key; Objects_Locations location; uint32_t the_api; the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { ffc07dd4: 80 01 00 08 lwz r0,8(r1) ffc07dd8: 38 60 00 16 li r3,22 ffc07ddc: 2f 80 00 00 cmpwi cr7,r0,0 ffc07de0: 40 9e 00 4c bne- cr7,ffc07e2c case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Keys_Information, &the_key->Object ); ffc07de4: 7f e3 fb 78 mr r3,r31 ffc07de8: 7f c4 f3 78 mr r4,r30 ffc07dec: 48 00 28 11 bl ffc0a5fc <_Objects_Close> <== ALWAYS TAKEN ffc07df0: 3b e0 00 00 li r31,0 for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) if ( the_key->Values[ the_api ] ) ffc07df4: 7d 3e fa 14 add r9,r30,r31 ffc07df8: 80 69 00 18 lwz r3,24(r9) ffc07dfc: 2f 83 00 00 cmpwi cr7,r3,0 ffc07e00: 41 9e 00 08 beq- cr7,ffc07e08 _Workspace_Free( the_key->Values[ the_api ] ); ffc07e04: 48 00 52 81 bl ffc0d084 <_Workspace_Free> <== ALWAYS TAKEN switch ( location ) { case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Keys_Information, &the_key->Object ); for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) ffc07e08: 2f 9f 00 0c cmpwi cr7,r31,12 ffc07e0c: 3b ff 00 04 addi r31,r31,4 ffc07e10: 40 9e ff e4 bne+ cr7,ffc07df4 */ RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free ( POSIX_Keys_Control *the_key ) { _Objects_Free( &_POSIX_Keys_Information, &the_key->Object ); ffc07e14: 3c 60 00 00 lis r3,0 ffc07e18: 38 63 30 b0 addi r3,r3,12464 ffc07e1c: 7f c4 f3 78 mr r4,r30 ffc07e20: 48 00 2b 1d bl ffc0a93c <_Objects_Free> <== ALWAYS TAKEN * NOTE: The destructor is not called and it is the responsibility * of the application to free the memory. */ _POSIX_Keys_Free( the_key ); _Thread_Enable_dispatch(); ffc07e24: 48 00 37 e9 bl ffc0b60c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07e28: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc07e2c: 80 01 00 24 lwz r0,36(r1) ffc07e30: 83 c1 00 18 lwz r30,24(r1) ffc07e34: 7c 08 03 a6 mtlr r0 ffc07e38: 83 e1 00 1c lwz r31,28(r1) ffc07e3c: 38 21 00 20 addi r1,r1,32 ffc07e40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11a5c : int pthread_kill( pthread_t thread, int sig ) { ffc11a5c: 94 21 ff d8 stwu r1,-40(r1) ffc11a60: 7c 08 02 a6 mflr r0 ffc11a64: 93 a1 00 1c stw r29,28(r1) POSIX_API_Control *api; Thread_Control *the_thread; Objects_Locations location; if ( !sig ) ffc11a68: 7c 9d 23 79 mr. r29,r4 int pthread_kill( pthread_t thread, int sig ) { ffc11a6c: 7c 64 1b 78 mr r4,r3 ffc11a70: 90 01 00 2c stw r0,44(r1) ffc11a74: 93 81 00 18 stw r28,24(r1) ffc11a78: 93 c1 00 20 stw r30,32(r1) ffc11a7c: 93 e1 00 24 stw r31,36(r1) POSIX_API_Control *api; Thread_Control *the_thread; Objects_Locations location; if ( !sig ) ffc11a80: 41 82 00 10 beq- ffc11a90 static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); ffc11a84: 3b 9d ff ff addi r28,r29,-1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) ffc11a88: 2b 9c 00 1f cmplwi cr7,r28,31 ffc11a8c: 40 bd 00 10 ble+ cr7,ffc11a9c rtems_set_errno_and_return_minus_one( EINVAL ); ffc11a90: 48 00 01 7d bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc11a94: 38 00 00 16 li r0,22 ffc11a98: 48 00 00 a4 b ffc11b3c <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) ffc11a9c: 3c 60 00 00 lis r3,0 ffc11aa0: 38 63 2e 78 addi r3,r3,11896 ffc11aa4: 38 a1 00 08 addi r5,r1,8 ffc11aa8: 4b ff 7d 95 bl ffc0983c <_Objects_Get> <== ALWAYS TAKEN the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc11aac: 80 01 00 08 lwz r0,8(r1) ffc11ab0: 7c 7e 1b 78 mr r30,r3 ffc11ab4: 2f 80 00 00 cmpwi cr7,r0,0 ffc11ab8: 40 9e 00 7c bne- cr7,ffc11b34 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( sig ) { if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) { ffc11abc: 1c 1d 00 0c mulli r0,r29,12 case OBJECTS_LOCAL: /* * If sig == 0 then just validate arguments */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc11ac0: 81 23 01 48 lwz r9,328(r3) if ( sig ) { if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) { ffc11ac4: 3d 60 00 00 lis r11,0 ffc11ac8: 39 6b 31 70 addi r11,r11,12656 ffc11acc: 7d 6b 02 14 add r11,r11,r0 ffc11ad0: 80 0b 00 08 lwz r0,8(r11) ffc11ad4: 2f 80 00 01 cmpwi cr7,r0,1 ffc11ad8: 41 9e 00 50 beq- cr7,ffc11b28 return 0; } /* XXX critical section */ api->signals_pending |= signo_to_mask( sig ); ffc11adc: 80 09 00 c8 lwz r0,200(r9) ffc11ae0: 3b e0 00 01 li r31,1 ffc11ae4: 7f fc e0 30 slw r28,r31,r28 ffc11ae8: 7c 1c e3 78 or r28,r0,r28 ffc11aec: 93 89 00 c8 stw r28,200(r9) (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL ); ffc11af0: 7f a4 eb 78 mr r4,r29 ffc11af4: 38 a0 00 00 li r5,0 ffc11af8: 4b ff fe 2d bl ffc11924 <_POSIX_signals_Unblock_thread> <== ALWAYS TAKEN the_thread->do_post_task_switch_extension = true; if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc11afc: 3d 20 00 00 lis r9,0 ffc11b00: 80 09 27 98 lwz r0,10136(r9) api->signals_pending |= signo_to_mask( sig ); (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL ); the_thread->do_post_task_switch_extension = true; ffc11b04: 9b fe 00 74 stb r31,116(r30) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc11b08: 2f 80 00 00 cmpwi cr7,r0,0 ffc11b0c: 41 9e 00 1c beq- cr7,ffc11b28 ffc11b10: 3d 20 00 00 lis r9,0 ffc11b14: 80 09 27 b0 lwz r0,10160(r9) ffc11b18: 7f 9e 00 00 cmpw cr7,r30,r0 ffc11b1c: 40 be 00 0c bne+ cr7,ffc11b28 _ISR_Signals_to_thread_executing = true; ffc11b20: 3d 20 00 00 lis r9,0 ffc11b24: 9b e9 27 cc stb r31,10188(r9) } _Thread_Enable_dispatch(); ffc11b28: 4b ff 88 25 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc11b2c: 38 60 00 00 li r3,0 return 0; ffc11b30: 48 00 00 14 b ffc11b44 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( ESRCH ); ffc11b34: 48 00 00 d9 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc11b38: 38 00 00 03 li r0,3 ffc11b3c: 90 03 00 00 stw r0,0(r3) ffc11b40: 38 60 ff ff li r3,-1 } ffc11b44: 80 01 00 2c lwz r0,44(r1) ffc11b48: 83 81 00 18 lwz r28,24(r1) ffc11b4c: 7c 08 03 a6 mtlr r0 ffc11b50: 83 a1 00 1c lwz r29,28(r1) ffc11b54: 83 c1 00 20 lwz r30,32(r1) ffc11b58: 83 e1 00 24 lwz r31,36(r1) ffc11b5c: 38 21 00 28 addi r1,r1,40 ffc11b60: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a390 : */ int pthread_mutex_destroy( pthread_mutex_t *mutex ) { ffc0a390: 94 21 ff e0 stwu r1,-32(r1) ffc0a394: 7c 08 02 a6 mflr r0 register POSIX_Mutex_Control *the_mutex; Objects_Locations location; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0a398: 38 81 00 08 addi r4,r1,8 */ int pthread_mutex_destroy( pthread_mutex_t *mutex ) { ffc0a39c: 90 01 00 24 stw r0,36(r1) ffc0a3a0: 93 e1 00 1c stw r31,28(r1) ffc0a3a4: 93 c1 00 18 stw r30,24(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0a3a8: 48 00 01 15 bl ffc0a4bc <_POSIX_Mutex_Get> <== ALWAYS TAKEN ffc0a3ac: 7c 7f 1b 78 mr r31,r3 switch ( location ) { ffc0a3b0: 80 01 00 08 lwz r0,8(r1) ffc0a3b4: 38 60 00 16 li r3,22 ffc0a3b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a3bc: 40 9e 00 54 bne- cr7,ffc0a410 /* * XXX: There is an error for the mutex being locked * or being in use by a condition variable. */ if ( _CORE_mutex_Is_locked( &the_mutex->Mutex ) ) { ffc0a3c0: 80 1f 00 64 lwz r0,100(r31) ffc0a3c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a3c8: 40 9e 00 10 bne- cr7,ffc0a3d8 _Thread_Enable_dispatch(); ffc0a3cc: 48 00 40 65 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a3d0: 38 60 00 10 li r3,16 return EBUSY; ffc0a3d4: 48 00 00 3c b ffc0a410 <== ALWAYS TAKEN } _Objects_Close( &_POSIX_Mutex_Information, &the_mutex->Object ); ffc0a3d8: 3f c0 00 00 lis r30,0 ffc0a3dc: 3b de 30 18 addi r30,r30,12312 ffc0a3e0: 7f c3 f3 78 mr r3,r30 ffc0a3e4: 7f e4 fb 78 mr r4,r31 ffc0a3e8: 48 00 30 39 bl ffc0d420 <_Objects_Close> <== ALWAYS TAKEN _CORE_mutex_Flush( &the_mutex->Mutex, NULL, EINVAL ); ffc0a3ec: 38 a0 00 16 li r5,22 ffc0a3f0: 38 7f 00 14 addi r3,r31,20 ffc0a3f4: 38 80 00 00 li r4,0 ffc0a3f8: 48 00 24 ad bl ffc0c8a4 <_CORE_mutex_Flush> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Free ( POSIX_Mutex_Control *the_mutex ) { _Objects_Free( &_POSIX_Mutex_Information, &the_mutex->Object ); ffc0a3fc: 7f c3 f3 78 mr r3,r30 ffc0a400: 7f e4 fb 78 mr r4,r31 ffc0a404: 48 00 33 5d bl ffc0d760 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Mutex_Free( the_mutex ); _Thread_Enable_dispatch(); ffc0a408: 48 00 40 29 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a40c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a410: 80 01 00 24 lwz r0,36(r1) ffc0a414: 83 c1 00 18 lwz r30,24(r1) ffc0a418: 7c 08 03 a6 mtlr r0 ffc0a41c: 83 e1 00 1c lwz r31,28(r1) ffc0a420: 38 21 00 20 addi r1,r1,32 ffc0a424: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a540 : int pthread_mutex_getprioceiling( pthread_mutex_t *mutex, int *prioceiling ) { ffc0a540: 94 21 ff e0 stwu r1,-32(r1) ffc0a544: 7c 08 02 a6 mflr r0 ffc0a548: 93 e1 00 1c stw r31,28(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; if ( !prioceiling ) ffc0a54c: 7c 9f 23 79 mr. r31,r4 int pthread_mutex_getprioceiling( pthread_mutex_t *mutex, int *prioceiling ) { ffc0a550: 90 01 00 24 stw r0,36(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; if ( !prioceiling ) ffc0a554: 41 82 00 38 beq- ffc0a58c return EINVAL; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0a558: 38 81 00 08 addi r4,r1,8 ffc0a55c: 4b ff ff 61 bl ffc0a4bc <_POSIX_Mutex_Get> <== ALWAYS TAKEN switch ( location ) { ffc0a560: 80 01 00 08 lwz r0,8(r1) ffc0a564: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a568: 40 9e 00 24 bne- cr7,ffc0a58c case OBJECTS_LOCAL: *prioceiling = _POSIX_Priority_From_core( ffc0a56c: 3d 20 00 00 lis r9,0 ffc0a570: 80 03 00 60 lwz r0,96(r3) ffc0a574: 89 29 27 0c lbz r9,9996(r9) ffc0a578: 7c 00 48 50 subf r0,r0,r9 ffc0a57c: 90 1f 00 00 stw r0,0(r31) the_mutex->Mutex.Attributes.priority_ceiling ); _Thread_Enable_dispatch(); ffc0a580: 48 00 3e b1 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a584: 38 60 00 00 li r3,0 return 0; ffc0a588: 48 00 00 08 b ffc0a590 <== ALWAYS TAKEN ffc0a58c: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a590: 80 01 00 24 lwz r0,36(r1) ffc0a594: 83 e1 00 1c lwz r31,28(r1) ffc0a598: 38 21 00 20 addi r1,r1,32 ffc0a59c: 7c 08 03 a6 mtlr r0 ffc0a5a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a5a4 : int pthread_mutex_init( pthread_mutex_t *mutex, const pthread_mutexattr_t *attr ) { ffc0a5a4: 94 21 ff e8 stwu r1,-24(r1) ffc0a5a8: 7c 08 02 a6 mflr r0 ffc0a5ac: 93 a1 00 0c stw r29,12(r1) POSIX_Mutex_Control *the_mutex; CORE_mutex_Attributes *the_mutex_attr; const pthread_mutexattr_t *the_attr; CORE_mutex_Disciplines the_discipline; if ( attr ) the_attr = attr; ffc0a5b0: 7c 9d 23 79 mr. r29,r4 int pthread_mutex_init( pthread_mutex_t *mutex, const pthread_mutexattr_t *attr ) { ffc0a5b4: 93 c1 00 10 stw r30,16(r1) ffc0a5b8: 7c 7e 1b 78 mr r30,r3 ffc0a5bc: 90 01 00 1c stw r0,28(r1) ffc0a5c0: 93 81 00 08 stw r28,8(r1) ffc0a5c4: 93 e1 00 14 stw r31,20(r1) POSIX_Mutex_Control *the_mutex; CORE_mutex_Attributes *the_mutex_attr; const pthread_mutexattr_t *the_attr; CORE_mutex_Disciplines the_discipline; if ( attr ) the_attr = attr; ffc0a5c8: 40 a2 00 0c bne+ ffc0a5d4 ffc0a5cc: 3f a0 00 00 lis r29,0 ffc0a5d0: 3b bd 30 98 addi r29,r29,12440 else the_attr = &_POSIX_Mutex_Default_attributes; /* Check for NULL mutex */ if ( !mutex ) ffc0a5d4: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0a5d8: 41 9e 01 24 beq- cr7,ffc0a6fc } } } #endif if ( !the_attr->is_initialized ) ffc0a5dc: 80 1d 00 00 lwz r0,0(r29) ffc0a5e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a5e4: 41 9e 01 18 beq- cr7,ffc0a6fc return EINVAL; /* * We only support process private mutexes. */ if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED ) ffc0a5e8: 80 1d 00 04 lwz r0,4(r29) ffc0a5ec: 38 60 00 58 li r3,88 ffc0a5f0: 2f 80 00 01 cmpwi cr7,r0,1 ffc0a5f4: 41 9e 01 0c beq- cr7,ffc0a700 return ENOSYS; if ( the_attr->process_shared != PTHREAD_PROCESS_PRIVATE ) ffc0a5f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a5fc: 40 9e 01 00 bne- cr7,ffc0a6fc return EINVAL; /* * Determine the discipline of the mutex */ switch ( the_attr->protocol ) { ffc0a600: 80 1d 00 0c lwz r0,12(r29) ffc0a604: 2f 80 00 01 cmpwi cr7,r0,1 ffc0a608: 41 9e 00 1c beq- cr7,ffc0a624 ffc0a60c: 2f 80 00 02 cmpwi cr7,r0,2 ffc0a610: 41 9e 00 1c beq- cr7,ffc0a62c ffc0a614: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a618: 3b 80 00 00 li r28,0 ffc0a61c: 41 9e 00 14 beq- cr7,ffc0a630 ffc0a620: 48 00 00 dc b ffc0a6fc <== ALWAYS TAKEN ffc0a624: 3b 80 00 02 li r28,2 ffc0a628: 48 00 00 08 b ffc0a630 <== ALWAYS TAKEN ffc0a62c: 3b 80 00 03 li r28,3 } /* * Validate the priority ceiling field -- should always be valid. */ if ( !_POSIX_Priority_Is_valid( the_attr->prio_ceiling ) ) ffc0a630: 80 7d 00 08 lwz r3,8(r29) ffc0a634: 48 00 03 e5 bl ffc0aa18 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc0a638: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a63c: 41 9e 00 c0 beq- cr7,ffc0a6fc #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) /* * Validate the mutex type and set appropriate SuperCore mutex * attributes. */ switch ( the_attr->type ) { ffc0a640: 80 1d 00 10 lwz r0,16(r29) ffc0a644: 2b 80 00 03 cmplwi cr7,r0,3 ffc0a648: 41 9d 00 b4 bgt- cr7,ffc0a6fc ffc0a64c: 3d 20 00 00 lis r9,0 ffc0a650: 81 69 28 10 lwz r11,10256(r9) ffc0a654: 38 0b 00 01 addi r0,r11,1 ffc0a658: 90 09 28 10 stw r0,10256(r9) * _POSIX_Mutex_Allocate */ RTEMS_INLINE_ROUTINE POSIX_Mutex_Control *_POSIX_Mutex_Allocate( void ) { return (POSIX_Mutex_Control *) _Objects_Allocate( &_POSIX_Mutex_Information ); ffc0a65c: 3c 60 00 00 lis r3,0 ffc0a660: 38 63 30 18 addi r3,r3,12312 ffc0a664: 48 00 2d 11 bl ffc0d374 <_Objects_Allocate> <== ALWAYS TAKEN */ _Thread_Disable_dispatch(); the_mutex = _POSIX_Mutex_Allocate(); if ( !the_mutex ) { ffc0a668: 7c 7f 1b 79 mr. r31,r3 ffc0a66c: 40 a2 00 10 bne+ ffc0a67c _Thread_Enable_dispatch(); ffc0a670: 48 00 3d c1 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a674: 38 60 00 0b li r3,11 return EAGAIN; ffc0a678: 48 00 00 88 b ffc0a700 <== ALWAYS TAKEN } the_mutex->process_shared = the_attr->process_shared; ffc0a67c: 80 1d 00 04 lwz r0,4(r29) ffc0a680: 90 1f 00 10 stw r0,16(r31) the_mutex_attr = &the_mutex->Mutex.Attributes; if ( the_attr->recursive ) ffc0a684: 80 1d 00 14 lwz r0,20(r29) ffc0a688: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a68c: 41 9e 00 0c beq- cr7,ffc0a698 the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; ffc0a690: 38 00 00 00 li r0,0 ffc0a694: 48 00 00 08 b ffc0a69c <== ALWAYS TAKEN else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; ffc0a698: 38 00 00 01 li r0,1 ffc0a69c: 90 1f 00 54 stw r0,84(r31) the_mutex_attr->only_owner_release = true; ffc0a6a0: 38 00 00 01 li r0,1 the_mutex_attr->priority_ceiling = ffc0a6a4: 3d 20 00 00 lis r9,0 if ( the_attr->recursive ) the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; the_mutex_attr->only_owner_release = true; ffc0a6a8: 98 1f 00 58 stb r0,88(r31) the_mutex_attr->discipline = the_discipline; /* * Must be initialized to unlocked. */ _CORE_mutex_Initialize( ffc0a6ac: 38 9f 00 54 addi r4,r31,84 ffc0a6b0: 38 a0 00 01 li r5,1 if ( the_attr->recursive ) the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; the_mutex_attr->only_owner_release = true; the_mutex_attr->priority_ceiling = ffc0a6b4: 89 29 27 0c lbz r9,9996(r9) the_mutex_attr->discipline = the_discipline; /* * Must be initialized to unlocked. */ _CORE_mutex_Initialize( ffc0a6b8: 38 7f 00 14 addi r3,r31,20 if ( the_attr->recursive ) the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; the_mutex_attr->only_owner_release = true; the_mutex_attr->priority_ceiling = ffc0a6bc: 80 1d 00 08 lwz r0,8(r29) _POSIX_Priority_To_core( the_attr->prio_ceiling ); the_mutex_attr->discipline = the_discipline; ffc0a6c0: 93 9f 00 5c stw r28,92(r31) if ( the_attr->recursive ) the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; the_mutex_attr->only_owner_release = true; the_mutex_attr->priority_ceiling = ffc0a6c4: 7c 00 48 50 subf r0,r0,r9 ffc0a6c8: 90 1f 00 60 stw r0,96(r31) the_mutex_attr->discipline = the_discipline; /* * Must be initialized to unlocked. */ _CORE_mutex_Initialize( ffc0a6cc: 48 00 21 f9 bl ffc0c8c4 <_CORE_mutex_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0a6d0: 80 1f 00 08 lwz r0,8(r31) ffc0a6d4: 3d 20 00 00 lis r9,0 ffc0a6d8: 81 69 30 34 lwz r11,12340(r9) ffc0a6dc: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc0a6e0: 7f eb 49 2e stwx r31,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc0a6e4: 39 20 00 00 li r9,0 ffc0a6e8: 91 3f 00 0c stw r9,12(r31) CORE_MUTEX_UNLOCKED ); _Objects_Open_u32( &_POSIX_Mutex_Information, &the_mutex->Object, 0 ); *mutex = the_mutex->Object.id; ffc0a6ec: 90 1e 00 00 stw r0,0(r30) _Thread_Enable_dispatch(); ffc0a6f0: 48 00 3d 41 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a6f4: 38 60 00 00 li r3,0 return 0; ffc0a6f8: 48 00 00 08 b ffc0a700 <== ALWAYS TAKEN ffc0a6fc: 38 60 00 16 li r3,22 } ffc0a700: 80 01 00 1c lwz r0,28(r1) ffc0a704: 83 81 00 08 lwz r28,8(r1) ffc0a708: 7c 08 03 a6 mtlr r0 ffc0a70c: 83 a1 00 0c lwz r29,12(r1) ffc0a710: 83 c1 00 10 lwz r30,16(r1) ffc0a714: 83 e1 00 14 lwz r31,20(r1) ffc0a718: 38 21 00 18 addi r1,r1,24 ffc0a71c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a720 : */ int pthread_mutex_lock( pthread_mutex_t *mutex ) { ffc0a720: 94 21 ff f8 stwu r1,-8(r1) ffc0a724: 7c 08 02 a6 mflr r0 return _POSIX_Mutex_Lock_support( mutex, true, THREAD_QUEUE_WAIT_FOREVER ); ffc0a728: 38 80 00 01 li r4,1 ffc0a72c: 38 a0 00 00 li r5,0 */ int pthread_mutex_lock( pthread_mutex_t *mutex ) { ffc0a730: 90 01 00 0c stw r0,12(r1) return _POSIX_Mutex_Lock_support( mutex, true, THREAD_QUEUE_WAIT_FOREVER ); ffc0a734: 48 00 00 15 bl ffc0a748 <_POSIX_Mutex_Lock_support> <== ALWAYS TAKEN } ffc0a738: 80 01 00 0c lwz r0,12(r1) ffc0a73c: 38 21 00 08 addi r1,r1,8 ffc0a740: 7c 08 03 a6 mtlr r0 ffc0a744: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a7c4 : int pthread_mutex_setprioceiling( pthread_mutex_t *mutex, int prioceiling, int *old_ceiling ) { ffc0a7c4: 94 21 ff d0 stwu r1,-48(r1) ffc0a7c8: 7c 08 02 a6 mflr r0 ffc0a7cc: 93 81 00 20 stw r28,32(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; Priority_Control the_priority; if ( !old_ceiling ) ffc0a7d0: 7c bc 2b 79 mr. r28,r5 int pthread_mutex_setprioceiling( pthread_mutex_t *mutex, int prioceiling, int *old_ceiling ) { ffc0a7d4: 93 a1 00 24 stw r29,36(r1) ffc0a7d8: 7c 7d 1b 78 mr r29,r3 ffc0a7dc: 93 e1 00 2c stw r31,44(r1) ffc0a7e0: 7c 9f 23 78 mr r31,r4 ffc0a7e4: 90 01 00 34 stw r0,52(r1) ffc0a7e8: 93 61 00 1c stw r27,28(r1) ffc0a7ec: 93 c1 00 28 stw r30,40(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; Priority_Control the_priority; if ( !old_ceiling ) ffc0a7f0: 41 82 00 74 beq- ffc0a864 return EINVAL; if ( !_POSIX_Priority_Is_valid( prioceiling ) ) ffc0a7f4: 7c 83 23 78 mr r3,r4 ffc0a7f8: 48 00 02 21 bl ffc0aa18 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc0a7fc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a800: 41 9e 00 64 beq- cr7,ffc0a864 RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); ffc0a804: 3f c0 00 00 lis r30,0 /* * Must acquire the mutex before we can change it's ceiling. * POSIX says block until we acquire it. */ (void) pthread_mutex_lock( mutex ); ffc0a808: 7f a3 eb 78 mr r3,r29 ffc0a80c: 8b 7e 27 0c lbz r27,9996(r30) ffc0a810: 4b ff ff 11 bl ffc0a720 <== ALWAYS TAKEN * operations. * * NOTE: This makes it easier to get 100% binary coverage since the * bad Id case is handled by the switch. */ the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0a814: 7f a3 eb 78 mr r3,r29 ffc0a818: 38 81 00 08 addi r4,r1,8 ffc0a81c: 4b ff fc a1 bl ffc0a4bc <_POSIX_Mutex_Get> <== ALWAYS TAKEN switch ( location ) { ffc0a820: 80 01 00 08 lwz r0,8(r1) * operations. * * NOTE: This makes it easier to get 100% binary coverage since the * bad Id case is handled by the switch. */ the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0a824: 7c 69 1b 78 mr r9,r3 switch ( location ) { ffc0a828: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a82c: 40 9e 00 38 bne- cr7,ffc0a864 case OBJECTS_LOCAL: *old_ceiling = _POSIX_Priority_From_core( ffc0a830: 89 7e 27 0c lbz r11,9996(r30) the_mutex->Mutex.Attributes.priority_ceiling ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; ffc0a834: 7f ff d8 50 subf r31,r31,r27 */ the_mutex = _POSIX_Mutex_Get( mutex, &location ); switch ( location ) { case OBJECTS_LOCAL: *old_ceiling = _POSIX_Priority_From_core( ffc0a838: 80 03 00 60 lwz r0,96(r3) ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; /* * We are required to unlock the mutex before we return. */ _CORE_mutex_Surrender( ffc0a83c: 38 a0 00 00 li r5,0 case OBJECTS_LOCAL: *old_ceiling = _POSIX_Priority_From_core( the_mutex->Mutex.Attributes.priority_ceiling ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; ffc0a840: 93 e3 00 60 stw r31,96(r3) /* * We are required to unlock the mutex before we return. */ _CORE_mutex_Surrender( ffc0a844: 38 63 00 14 addi r3,r3,20 */ the_mutex = _POSIX_Mutex_Get( mutex, &location ); switch ( location ) { case OBJECTS_LOCAL: *old_ceiling = _POSIX_Priority_From_core( ffc0a848: 7c 00 58 50 subf r0,r0,r11 ffc0a84c: 90 1c 00 00 stw r0,0(r28) ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; /* * We are required to unlock the mutex before we return. */ _CORE_mutex_Surrender( ffc0a850: 80 89 00 08 lwz r4,8(r9) ffc0a854: 48 00 22 c1 bl ffc0cb14 <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); ffc0a858: 48 00 3b d9 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a85c: 38 60 00 00 li r3,0 return 0; ffc0a860: 48 00 00 08 b ffc0a868 <== ALWAYS TAKEN ffc0a864: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a868: 80 01 00 34 lwz r0,52(r1) ffc0a86c: 83 61 00 1c lwz r27,28(r1) ffc0a870: 7c 08 03 a6 mtlr r0 ffc0a874: 83 81 00 20 lwz r28,32(r1) ffc0a878: 83 a1 00 24 lwz r29,36(r1) ffc0a87c: 83 c1 00 28 lwz r30,40(r1) ffc0a880: 83 e1 00 2c lwz r31,44(r1) ffc0a884: 38 21 00 30 addi r1,r1,48 ffc0a888: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a88c : int pthread_mutex_timedlock( pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc0a88c: 94 21 ff e0 stwu r1,-32(r1) ffc0a890: 7c 08 02 a6 mflr r0 ffc0a894: 93 e1 00 1c stw r31,28(r1) ffc0a898: 7c 7f 1b 78 mr r31,r3 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0a89c: 7c 83 23 78 mr r3,r4 ffc0a8a0: 38 81 00 08 addi r4,r1,8 int pthread_mutex_timedlock( pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc0a8a4: 90 01 00 24 stw r0,36(r1) * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0a8a8: 48 00 00 c5 bl ffc0a96c <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks ); ffc0a8ac: 68 64 00 03 xori r4,r3,3 ffc0a8b0: 80 a1 00 08 lwz r5,8(r1) ffc0a8b4: 7c 84 00 34 cntlzw r4,r4 ffc0a8b8: 7f e3 fb 78 mr r3,r31 ffc0a8bc: 54 84 d9 7e rlwinm r4,r4,27,5,31 ffc0a8c0: 4b ff fe 89 bl ffc0a748 <_POSIX_Mutex_Lock_support> <== ALWAYS TAKEN break; } } return lock_status; } ffc0a8c4: 80 01 00 24 lwz r0,36(r1) ffc0a8c8: 83 e1 00 1c lwz r31,28(r1) ffc0a8cc: 38 21 00 20 addi r1,r1,32 ffc0a8d0: 7c 08 03 a6 mtlr r0 ffc0a8d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a8ec : */ int pthread_mutex_trylock( pthread_mutex_t *mutex ) { ffc0a8ec: 94 21 ff f8 stwu r1,-8(r1) ffc0a8f0: 7c 08 02 a6 mflr r0 return _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER ); ffc0a8f4: 38 80 00 00 li r4,0 ffc0a8f8: 38 a0 00 00 li r5,0 */ int pthread_mutex_trylock( pthread_mutex_t *mutex ) { ffc0a8fc: 90 01 00 0c stw r0,12(r1) return _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER ); ffc0a900: 4b ff fe 49 bl ffc0a748 <_POSIX_Mutex_Lock_support> <== ALWAYS TAKEN } ffc0a904: 80 01 00 0c lwz r0,12(r1) ffc0a908: 38 21 00 08 addi r1,r1,8 ffc0a90c: 7c 08 03 a6 mtlr r0 ffc0a910: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a914 : */ int pthread_mutex_unlock( pthread_mutex_t *mutex ) { ffc0a914: 94 21 ff e0 stwu r1,-32(r1) ffc0a918: 7c 08 02 a6 mflr r0 register POSIX_Mutex_Control *the_mutex; Objects_Locations location; CORE_mutex_Status status; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0a91c: 38 81 00 08 addi r4,r1,8 */ int pthread_mutex_unlock( pthread_mutex_t *mutex ) { ffc0a920: 90 01 00 24 stw r0,36(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; CORE_mutex_Status status; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0a924: 4b ff fb 99 bl ffc0a4bc <_POSIX_Mutex_Get> <== ALWAYS TAKEN switch ( location ) { ffc0a928: 80 01 00 08 lwz r0,8(r1) { register POSIX_Mutex_Control *the_mutex; Objects_Locations location; CORE_mutex_Status status; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0a92c: 7c 69 1b 78 mr r9,r3 switch ( location ) { ffc0a930: 38 60 00 16 li r3,22 ffc0a934: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a938: 40 9e 00 24 bne- cr7,ffc0a95c case OBJECTS_LOCAL: status = _CORE_mutex_Surrender( ffc0a93c: 80 89 00 08 lwz r4,8(r9) ffc0a940: 38 a0 00 00 li r5,0 ffc0a944: 38 69 00 14 addi r3,r9,20 ffc0a948: 48 00 21 cd bl ffc0cb14 <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); ffc0a94c: 90 61 00 18 stw r3,24(r1) ffc0a950: 48 00 3a e1 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Mutex_Translate_core_mutex_return_code( status ); ffc0a954: 80 61 00 18 lwz r3,24(r1) ffc0a958: 4b ff ff 81 bl ffc0a8d8 <_POSIX_Mutex_Translate_core_mutex_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0a95c: 80 01 00 24 lwz r0,36(r1) ffc0a960: 38 21 00 20 addi r1,r1,32 ffc0a964: 7c 08 03 a6 mtlr r0 ffc0a968: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a1b8 : int pthread_mutexattr_destroy( pthread_mutexattr_t *attr ) { if ( !attr || !attr->is_initialized ) ffc0a1b8: 2c 03 00 00 cmpwi r3,0 ffc0a1bc: 41 82 00 20 beq- ffc0a1dc ffc0a1c0: 80 03 00 00 lwz r0,0(r3) ffc0a1c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a1c8: 41 9e 00 14 beq- cr7,ffc0a1dc return EINVAL; attr->is_initialized = false; ffc0a1cc: 38 00 00 00 li r0,0 ffc0a1d0: 90 03 00 00 stw r0,0(r3) ffc0a1d4: 38 60 00 00 li r3,0 return 0; ffc0a1d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a1dc: 38 60 00 16 li r3,22 } ffc0a1e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a1e4 : int pthread_mutexattr_getprioceiling( const pthread_mutexattr_t *attr, int *prioceiling ) { if ( !attr || !attr->is_initialized || !prioceiling ) ffc0a1e4: 2c 03 00 00 cmpwi r3,0 ffc0a1e8: 41 82 00 28 beq- ffc0a210 ffc0a1ec: 80 03 00 00 lwz r0,0(r3) ffc0a1f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a1f4: 41 9e 00 1c beq- cr7,ffc0a210 ffc0a1f8: 2f 84 00 00 cmpwi cr7,r4,0 ffc0a1fc: 41 9e 00 14 beq- cr7,ffc0a210 return EINVAL; *prioceiling = attr->prio_ceiling; ffc0a200: 80 03 00 08 lwz r0,8(r3) ffc0a204: 38 60 00 00 li r3,0 ffc0a208: 90 04 00 00 stw r0,0(r4) return 0; ffc0a20c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a210: 38 60 00 16 li r3,22 } ffc0a214: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a218 : int pthread_mutexattr_getprotocol( const pthread_mutexattr_t *attr, int *protocol ) { if ( !attr || !attr->is_initialized || !protocol ) ffc0a218: 2c 03 00 00 cmpwi r3,0 ffc0a21c: 41 82 00 28 beq- ffc0a244 ffc0a220: 80 03 00 00 lwz r0,0(r3) ffc0a224: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a228: 41 9e 00 1c beq- cr7,ffc0a244 ffc0a22c: 2f 84 00 00 cmpwi cr7,r4,0 ffc0a230: 41 9e 00 14 beq- cr7,ffc0a244 return EINVAL; *protocol = attr->protocol; ffc0a234: 80 03 00 0c lwz r0,12(r3) ffc0a238: 38 60 00 00 li r3,0 ffc0a23c: 90 04 00 00 stw r0,0(r4) return 0; ffc0a240: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a244: 38 60 00 16 li r3,22 } ffc0a248: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a24c : int pthread_mutexattr_getpshared( const pthread_mutexattr_t *attr, int *pshared ) { if ( !attr || !attr->is_initialized || !pshared ) ffc0a24c: 2c 03 00 00 cmpwi r3,0 ffc0a250: 41 82 00 28 beq- ffc0a278 ffc0a254: 80 03 00 00 lwz r0,0(r3) ffc0a258: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a25c: 41 9e 00 1c beq- cr7,ffc0a278 ffc0a260: 2f 84 00 00 cmpwi cr7,r4,0 ffc0a264: 41 9e 00 14 beq- cr7,ffc0a278 return EINVAL; *pshared = attr->process_shared; ffc0a268: 80 03 00 04 lwz r0,4(r3) ffc0a26c: 38 60 00 00 li r3,0 ffc0a270: 90 04 00 00 stw r0,0(r4) return 0; ffc0a274: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a278: 38 60 00 16 li r3,22 } ffc0a27c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc074cc : int pthread_mutexattr_gettype( const pthread_mutexattr_t *attr, int *type ) { if ( !attr ) ffc074cc: 2c 03 00 00 cmpwi r3,0 ffc074d0: 41 82 00 28 beq- ffc074f8 return EINVAL; if ( !attr->is_initialized ) ffc074d4: 80 03 00 00 lwz r0,0(r3) ffc074d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc074dc: 41 9e 00 1c beq- cr7,ffc074f8 return EINVAL; if ( !type ) ffc074e0: 2f 84 00 00 cmpwi cr7,r4,0 ffc074e4: 41 9e 00 14 beq- cr7,ffc074f8 <== NEVER TAKEN return EINVAL; *type = attr->type; ffc074e8: 80 03 00 10 lwz r0,16(r3) ffc074ec: 38 60 00 00 li r3,0 ffc074f0: 90 04 00 00 stw r0,0(r4) return 0; ffc074f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc074f8: 38 60 00 16 li r3,22 } ffc074fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a280 : int pthread_mutexattr_init( pthread_mutexattr_t *attr ) { if ( !attr ) ffc0a280: 7c 69 1b 79 mr. r9,r3 ffc0a284: 38 60 00 16 li r3,22 ffc0a288: 4d 82 00 20 beqlr return EINVAL; *attr = _POSIX_Mutex_Default_attributes; ffc0a28c: 3d 40 00 00 lis r10,0 ffc0a290: 39 6a 30 98 addi r11,r10,12440 ffc0a294: 80 ea 30 98 lwz r7,12440(r10) ffc0a298: 80 0b 00 0c lwz r0,12(r11) ffc0a29c: 38 60 00 00 li r3,0 ffc0a2a0: 81 4b 00 08 lwz r10,8(r11) ffc0a2a4: 81 0b 00 04 lwz r8,4(r11) ffc0a2a8: 90 e9 00 00 stw r7,0(r9) ffc0a2ac: 91 09 00 04 stw r8,4(r9) ffc0a2b0: 91 49 00 08 stw r10,8(r9) ffc0a2b4: 90 09 00 0c stw r0,12(r9) ffc0a2b8: 81 4b 00 14 lwz r10,20(r11) ffc0a2bc: 80 0b 00 10 lwz r0,16(r11) ffc0a2c0: 91 49 00 14 stw r10,20(r9) ffc0a2c4: 90 09 00 10 stw r0,16(r9) return 0; } ffc0a2c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a2cc : int pthread_mutexattr_setprioceiling( pthread_mutexattr_t *attr, int prioceiling ) { ffc0a2cc: 94 21 ff f0 stwu r1,-16(r1) ffc0a2d0: 7c 08 02 a6 mflr r0 ffc0a2d4: 93 e1 00 0c stw r31,12(r1) if ( !attr || !attr->is_initialized ) ffc0a2d8: 7c 7f 1b 79 mr. r31,r3 int pthread_mutexattr_setprioceiling( pthread_mutexattr_t *attr, int prioceiling ) { ffc0a2dc: 93 c1 00 08 stw r30,8(r1) ffc0a2e0: 7c 9e 23 78 mr r30,r4 ffc0a2e4: 90 01 00 14 stw r0,20(r1) if ( !attr || !attr->is_initialized ) ffc0a2e8: 41 82 00 2c beq- ffc0a314 ffc0a2ec: 80 1f 00 00 lwz r0,0(r31) ffc0a2f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a2f4: 41 9e 00 20 beq- cr7,ffc0a314 return EINVAL; if ( !_POSIX_Priority_Is_valid( prioceiling ) ) ffc0a2f8: 7c 83 23 78 mr r3,r4 ffc0a2fc: 48 00 07 1d bl ffc0aa18 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc0a300: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a304: 41 9e 00 10 beq- cr7,ffc0a314 return EINVAL; attr->prio_ceiling = prioceiling; ffc0a308: 93 df 00 08 stw r30,8(r31) ffc0a30c: 38 60 00 00 li r3,0 return 0; ffc0a310: 48 00 00 08 b ffc0a318 <== ALWAYS TAKEN ffc0a314: 38 60 00 16 li r3,22 } ffc0a318: 80 01 00 14 lwz r0,20(r1) ffc0a31c: 83 c1 00 08 lwz r30,8(r1) ffc0a320: 7c 08 03 a6 mtlr r0 ffc0a324: 83 e1 00 0c lwz r31,12(r1) ffc0a328: 38 21 00 10 addi r1,r1,16 ffc0a32c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a330 : int pthread_mutexattr_setprotocol( pthread_mutexattr_t *attr, int protocol ) { if ( !attr || !attr->is_initialized ) ffc0a330: 2c 03 00 00 cmpwi r3,0 ffc0a334: 41 82 00 24 beq- ffc0a358 ffc0a338: 80 03 00 00 lwz r0,0(r3) ffc0a33c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a340: 41 9e 00 18 beq- cr7,ffc0a358 return EINVAL; switch ( protocol ) { ffc0a344: 2b 84 00 02 cmplwi cr7,r4,2 ffc0a348: 41 9d 00 10 bgt- cr7,ffc0a358 case PTHREAD_PRIO_NONE: case PTHREAD_PRIO_INHERIT: case PTHREAD_PRIO_PROTECT: attr->protocol = protocol; ffc0a34c: 90 83 00 0c stw r4,12(r3) ffc0a350: 38 60 00 00 li r3,0 return 0; ffc0a354: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a358: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0a35c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a360 : int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized ) ffc0a360: 2c 03 00 00 cmpwi r3,0 ffc0a364: 41 82 00 24 beq- ffc0a388 ffc0a368: 80 03 00 00 lwz r0,0(r3) ffc0a36c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a370: 41 9e 00 18 beq- cr7,ffc0a388 return EINVAL; switch ( pshared ) { ffc0a374: 2b 84 00 01 cmplwi cr7,r4,1 ffc0a378: 41 9d 00 10 bgt- cr7,ffc0a388 <== NEVER TAKEN case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; ffc0a37c: 90 83 00 04 stw r4,4(r3) ffc0a380: 38 60 00 00 li r3,0 return 0; ffc0a384: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a388: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0a38c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0754c : int pthread_mutexattr_settype( pthread_mutexattr_t *attr, int type ) { if ( !attr || !attr->is_initialized ) ffc0754c: 2c 03 00 00 cmpwi r3,0 ffc07550: 41 82 00 24 beq- ffc07574 ffc07554: 80 03 00 00 lwz r0,0(r3) ffc07558: 2f 80 00 00 cmpwi cr7,r0,0 ffc0755c: 41 9e 00 18 beq- cr7,ffc07574 <== NEVER TAKEN return EINVAL; switch ( type ) { ffc07560: 2b 84 00 03 cmplwi cr7,r4,3 ffc07564: 41 9d 00 10 bgt- cr7,ffc07574 case PTHREAD_MUTEX_NORMAL: case PTHREAD_MUTEX_RECURSIVE: case PTHREAD_MUTEX_ERRORCHECK: case PTHREAD_MUTEX_DEFAULT: attr->type = type; ffc07568: 90 83 00 10 stw r4,16(r3) ffc0756c: 38 60 00 00 li r3,0 return 0; ffc07570: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07574: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc07578: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08718 : int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { ffc08718: 94 21 ff e0 stwu r1,-32(r1) ffc0871c: 7c 08 02 a6 mflr r0 ffc08720: 93 e1 00 1c stw r31,28(r1) if ( !once_control || !init_routine ) ffc08724: 7c 7f 1b 79 mr. r31,r3 int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { ffc08728: 93 c1 00 18 stw r30,24(r1) ffc0872c: 7c 9e 23 78 mr r30,r4 ffc08730: 90 01 00 24 stw r0,36(r1) if ( !once_control || !init_routine ) ffc08734: 41 82 00 64 beq- ffc08798 ffc08738: 2f 84 00 00 cmpwi cr7,r4,0 ffc0873c: 41 9e 00 5c beq- cr7,ffc08798 return EINVAL; if ( !once_control->init_executed ) { ffc08740: 80 1f 00 04 lwz r0,4(r31) ffc08744: 38 60 00 00 li r3,0 ffc08748: 2f 80 00 00 cmpwi cr7,r0,0 ffc0874c: 40 be 00 50 bne+ cr7,ffc0879c rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); ffc08750: 38 60 01 00 li r3,256 ffc08754: 38 80 01 00 li r4,256 ffc08758: 38 a1 00 08 addi r5,r1,8 ffc0875c: 48 00 0d 7d bl ffc094d8 <== ALWAYS TAKEN if ( !once_control->init_executed ) { ffc08760: 80 1f 00 04 lwz r0,4(r31) ffc08764: 2f 80 00 00 cmpwi cr7,r0,0 ffc08768: 40 be 00 18 bne+ cr7,ffc08780 <== NEVER TAKEN once_control->is_initialized = true; ffc0876c: 38 00 00 01 li r0,1 once_control->init_executed = true; (*init_routine)(); ffc08770: 7f c9 03 a6 mtctr r30 if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); if ( !once_control->init_executed ) { once_control->is_initialized = true; once_control->init_executed = true; ffc08774: 90 1f 00 04 stw r0,4(r31) if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); if ( !once_control->init_executed ) { once_control->is_initialized = true; ffc08778: 90 1f 00 00 stw r0,0(r31) once_control->init_executed = true; (*init_routine)(); ffc0877c: 4e 80 04 21 bctrl <== ALWAYS TAKEN } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); ffc08780: 7c 25 0b 78 mr r5,r1 ffc08784: 84 65 00 08 lwzu r3,8(r5) ffc08788: 38 80 01 00 li r4,256 ffc0878c: 48 00 0d 4d bl ffc094d8 <== ALWAYS TAKEN ffc08790: 38 60 00 00 li r3,0 ffc08794: 48 00 00 08 b ffc0879c <== ALWAYS TAKEN ffc08798: 38 60 00 16 li r3,22 } return 0; } ffc0879c: 80 01 00 24 lwz r0,36(r1) ffc087a0: 83 c1 00 18 lwz r30,24(r1) ffc087a4: 7c 08 03 a6 mtlr r0 ffc087a8: 83 e1 00 1c lwz r31,28(r1) ffc087ac: 38 21 00 20 addi r1,r1,32 ffc087b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08ffc : ) { POSIX_RWLock_Control *the_rwlock = NULL; Objects_Locations location; if ( !rwlock ) ffc08ffc: 2c 03 00 00 cmpwi r3,0 <== ALWAYS TAKEN */ int pthread_rwlock_destroy( pthread_rwlock_t *rwlock ) { ffc09000: 94 21 ff e0 stwu r1,-32(r1) ffc09004: 7c 08 02 a6 mflr r0 ffc09008: 93 c1 00 18 stw r30,24(r1) ffc0900c: 90 01 00 24 stw r0,36(r1) ffc09010: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock = NULL; Objects_Locations location; if ( !rwlock ) ffc09014: 41 82 00 6c beq- ffc09080 RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get ( pthread_rwlock_t *RWLock, Objects_Locations *location ) { return (POSIX_RWLock_Control *) _Objects_Get( ffc09018: 3f e0 00 00 lis r31,0 ffc0901c: 80 83 00 00 lwz r4,0(r3) ffc09020: 3b ff 2e 38 addi r31,r31,11832 ffc09024: 7f e3 fb 78 mr r3,r31 ffc09028: 38 a1 00 08 addi r5,r1,8 ffc0902c: 48 00 34 b9 bl ffc0c4e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc09030: 80 01 00 08 lwz r0,8(r1) ffc09034: 7c 7e 1b 78 mr r30,r3 ffc09038: 2f 80 00 00 cmpwi cr7,r0,0 ffc0903c: 40 9e 00 44 bne- cr7,ffc09080 case OBJECTS_LOCAL: /* * If there is at least one thread waiting, then do not delete it. */ if ( _Thread_queue_First( &the_rwlock->RWLock.Wait_queue ) != NULL ) { ffc09040: 38 63 00 10 addi r3,r3,16 ffc09044: 48 00 49 a1 bl ffc0d9e4 <_Thread_queue_First> <== ALWAYS TAKEN ffc09048: 2f 83 00 00 cmpwi cr7,r3,0 ffc0904c: 41 9e 00 10 beq- cr7,ffc0905c _Thread_Enable_dispatch(); ffc09050: 48 00 3f a5 bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09054: 38 60 00 10 li r3,16 return EBUSY; ffc09058: 48 00 00 2c b ffc09084 <== ALWAYS TAKEN /* * POSIX doesn't require behavior when it is locked. */ _Objects_Close( &_POSIX_RWLock_Information, &the_rwlock->Object ); ffc0905c: 7f e3 fb 78 mr r3,r31 ffc09060: 7f c4 f3 78 mr r4,r30 ffc09064: 48 00 2f 81 bl ffc0bfe4 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _POSIX_RWLock_Free ( POSIX_RWLock_Control *the_RWLock ) { _Objects_Free( &_POSIX_RWLock_Information, &the_RWLock->Object ); ffc09068: 7f e3 fb 78 mr r3,r31 ffc0906c: 7f c4 f3 78 mr r4,r30 ffc09070: 48 00 32 b5 bl ffc0c324 <_Objects_Free> <== ALWAYS TAKEN _POSIX_RWLock_Free( the_rwlock ); _Thread_Enable_dispatch(); ffc09074: 48 00 3f 81 bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09078: 38 60 00 00 li r3,0 return 0; ffc0907c: 48 00 00 08 b ffc09084 <== ALWAYS TAKEN ffc09080: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09084: 80 01 00 24 lwz r0,36(r1) ffc09088: 83 c1 00 18 lwz r30,24(r1) ffc0908c: 7c 08 03 a6 mtlr r0 ffc09090: 83 e1 00 1c lwz r31,28(r1) ffc09094: 38 21 00 20 addi r1,r1,32 ffc09098: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0909c : int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) { ffc0909c: 94 21 ff d8 stwu r1,-40(r1) ffc090a0: 7c 08 02 a6 mflr r0 ffc090a4: 93 81 00 18 stw r28,24(r1) const pthread_rwlockattr_t *the_attr; /* * Error check parameters */ if ( !rwlock ) ffc090a8: 7c 7c 1b 79 mr. r28,r3 int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) { ffc090ac: 90 01 00 2c stw r0,44(r1) ffc090b0: 93 a1 00 1c stw r29,28(r1) ffc090b4: 93 c1 00 20 stw r30,32(r1) ffc090b8: 93 e1 00 24 stw r31,36(r1) const pthread_rwlockattr_t *the_attr; /* * Error check parameters */ if ( !rwlock ) ffc090bc: 41 82 00 98 beq- ffc09154 return EINVAL; /* * If the user passed in NULL, use the default attributes */ if ( attr ) { ffc090c0: 2f 84 00 00 cmpwi cr7,r4,0 ffc090c4: 7c 9f 23 78 mr r31,r4 ffc090c8: 40 be 00 10 bne+ cr7,ffc090d8 the_attr = attr; } else { (void) pthread_rwlockattr_init( &default_attr ); ffc090cc: 3b e1 00 0c addi r31,r1,12 ffc090d0: 7f e3 fb 78 mr r3,r31 ffc090d4: 48 00 0b c5 bl ffc09c98 <== ALWAYS TAKEN } /* * Now start error checking the attributes that we are going to use */ if ( !the_attr->is_initialized ) ffc090d8: 80 1f 00 00 lwz r0,0(r31) ffc090dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc090e0: 41 9e 00 74 beq- cr7,ffc09154 <== NEVER TAKEN return EINVAL; switch ( the_attr->process_shared ) { ffc090e4: 83 df 00 04 lwz r30,4(r31) ffc090e8: 2f 9e 00 00 cmpwi cr7,r30,0 ffc090ec: 40 9e 00 68 bne- cr7,ffc09154 <== NEVER TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc090f0: 3d 20 00 00 lis r9,0 ffc090f4: 81 69 27 bc lwz r11,10172(r9) ffc090f8: 38 0b 00 01 addi r0,r11,1 ffc090fc: 90 09 27 bc stw r0,10172(r9) * This function allocates a RWLock control block from * the inactive chain of free RWLock control blocks. */ RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void ) { return (POSIX_RWLock_Control *) ffc09100: 3f a0 00 00 lis r29,0 ffc09104: 3b bd 2e 38 addi r29,r29,11832 ffc09108: 7f a3 eb 78 mr r3,r29 ffc0910c: 48 00 2e 2d bl ffc0bf38 <_Objects_Allocate> <== ALWAYS TAKEN */ _Thread_Disable_dispatch(); /* prevents deletion */ the_rwlock = _POSIX_RWLock_Allocate(); if ( !the_rwlock ) { ffc09110: 7c 7f 1b 79 mr. r31,r3 ffc09114: 40 a2 00 10 bne+ ffc09124 _Thread_Enable_dispatch(); ffc09118: 48 00 3e dd bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0911c: 38 60 00 0b li r3,11 return EAGAIN; ffc09120: 48 00 00 38 b ffc09158 <== ALWAYS TAKEN } _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes ); ffc09124: 38 7f 00 10 addi r3,r31,16 ffc09128: 38 81 00 08 addi r4,r1,8 ffc0912c: 48 00 24 19 bl ffc0b544 <_CORE_RWLock_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc09130: 80 1f 00 08 lwz r0,8(r31) ffc09134: 81 7d 00 1c lwz r11,28(r29) ffc09138: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc0913c: 7f eb 49 2e stwx r31,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc09140: 93 df 00 0c stw r30,12(r31) &_POSIX_RWLock_Information, &the_rwlock->Object, 0 ); *rwlock = the_rwlock->Object.id; ffc09144: 90 1c 00 00 stw r0,0(r28) _Thread_Enable_dispatch(); ffc09148: 48 00 3e ad bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0914c: 38 60 00 00 li r3,0 return 0; ffc09150: 48 00 00 08 b ffc09158 <== ALWAYS TAKEN ffc09154: 38 60 00 16 li r3,22 } ffc09158: 80 01 00 2c lwz r0,44(r1) ffc0915c: 83 81 00 18 lwz r28,24(r1) ffc09160: 7c 08 03 a6 mtlr r0 ffc09164: 83 a1 00 1c lwz r29,28(r1) ffc09168: 83 c1 00 20 lwz r30,32(r1) ffc0916c: 83 e1 00 24 lwz r31,36(r1) ffc09170: 38 21 00 28 addi r1,r1,40 ffc09174: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09178 : */ int pthread_rwlock_rdlock( pthread_rwlock_t *rwlock ) { ffc09178: 94 21 ff e0 stwu r1,-32(r1) ffc0917c: 7c 08 02 a6 mflr r0 ffc09180: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc09184: 7c 7f 1b 79 mr. r31,r3 */ int pthread_rwlock_rdlock( pthread_rwlock_t *rwlock ) { ffc09188: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc0918c: 41 82 00 54 beq- ffc091e0 RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get ( pthread_rwlock_t *RWLock, Objects_Locations *location ) { return (POSIX_RWLock_Control *) _Objects_Get( ffc09190: 80 9f 00 00 lwz r4,0(r31) ffc09194: 3c 60 00 00 lis r3,0 ffc09198: 38 63 2e 38 addi r3,r3,11832 ffc0919c: 38 a1 00 08 addi r5,r1,8 ffc091a0: 48 00 33 45 bl ffc0c4e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc091a4: 80 01 00 08 lwz r0,8(r1) ffc091a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc091ac: 40 9e 00 34 bne- cr7,ffc091e0 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( ffc091b0: 80 9f 00 00 lwz r4,0(r31) ffc091b4: 38 63 00 10 addi r3,r3,16 ffc091b8: 38 a0 00 01 li r5,1 ffc091bc: 38 c0 00 00 li r6,0 ffc091c0: 38 e0 00 00 li r7,0 ffc091c4: 48 00 23 c1 bl ffc0b584 <_CORE_RWLock_Obtain_for_reading> <== ALWAYS TAKEN true, /* we are willing to wait forever */ 0, NULL ); _Thread_Enable_dispatch(); ffc091c8: 48 00 3e 2d bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc091cc: 3d 20 00 00 lis r9,0 ffc091d0: 81 29 27 fc lwz r9,10236(r9) ffc091d4: 80 69 00 34 lwz r3,52(r9) ffc091d8: 48 00 01 d9 bl ffc093b0 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN ffc091dc: 48 00 00 08 b ffc091e4 <== ALWAYS TAKEN ffc091e0: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc091e4: 80 01 00 24 lwz r0,36(r1) ffc091e8: 83 e1 00 1c lwz r31,28(r1) ffc091ec: 38 21 00 20 addi r1,r1,32 ffc091f0: 7c 08 03 a6 mtlr r0 ffc091f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc091f8 : int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc091f8: 94 21 ff d8 stwu r1,-40(r1) ffc091fc: 7c 08 02 a6 mflr r0 ffc09200: 93 a1 00 1c stw r29,28(r1) Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) ffc09204: 7c 7d 1b 79 mr. r29,r3 int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc09208: 90 01 00 2c stw r0,44(r1) ffc0920c: 93 c1 00 20 stw r30,32(r1) ffc09210: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) ffc09214: 41 82 00 a0 beq- ffc092b4 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc09218: 7c 83 23 78 mr r3,r4 ffc0921c: 38 81 00 0c addi r4,r1,12 ffc09220: 48 00 75 b1 bl ffc107d0 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN ffc09224: 80 9d 00 00 lwz r4,0(r29) ffc09228: 7c 7e 1b 78 mr r30,r3 ffc0922c: 3c 60 00 00 lis r3,0 ffc09230: 38 63 2e 38 addi r3,r3,11832 ffc09234: 38 a1 00 08 addi r5,r1,8 ffc09238: 48 00 32 ad bl ffc0c4e4 <_Objects_Get> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc0923c: 80 01 00 08 lwz r0,8(r1) ffc09240: 2f 80 00 00 cmpwi cr7,r0,0 ffc09244: 40 9e 00 70 bne- cr7,ffc092b4 int _EXFUN(pthread_rwlock_init, (pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr)); int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedrdlock, ffc09248: 6b df 00 03 xori r31,r30,3 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( ffc0924c: 80 9d 00 00 lwz r4,0(r29) ffc09250: 7f ff 00 34 cntlzw r31,r31 ffc09254: 80 c1 00 0c lwz r6,12(r1) ffc09258: 57 ff d9 7e rlwinm r31,r31,27,5,31 ffc0925c: 38 63 00 10 addi r3,r3,16 ffc09260: 7f e5 fb 78 mr r5,r31 ffc09264: 38 e0 00 00 li r7,0 ffc09268: 48 00 23 1d bl ffc0b584 <_CORE_RWLock_Obtain_for_reading> <== ALWAYS TAKEN do_wait, ticks, NULL ); _Thread_Enable_dispatch(); ffc0926c: 48 00 3d 89 bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( !do_wait ) { ffc09270: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09274: 40 9e 00 2c bne- cr7,ffc092a0 if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { ffc09278: 3d 20 00 00 lis r9,0 ffc0927c: 81 29 27 fc lwz r9,10236(r9) ffc09280: 80 09 00 34 lwz r0,52(r9) ffc09284: 2f 80 00 02 cmpwi cr7,r0,2 ffc09288: 40 be 00 18 bne+ cr7,ffc092a0 switch (status) { ffc0928c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc09290: 41 9e 00 24 beq- cr7,ffc092b4 <== NEVER TAKEN ffc09294: 2b 9e 00 02 cmplwi cr7,r30,2 ffc09298: 38 60 00 74 li r3,116 ffc0929c: 40 9d 00 1c ble- cr7,ffc092b8 <== ALWAYS TAKEN break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc092a0: 3d 20 00 00 lis r9,0 ffc092a4: 81 29 27 fc lwz r9,10236(r9) ffc092a8: 80 69 00 34 lwz r3,52(r9) ffc092ac: 48 00 01 05 bl ffc093b0 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN ffc092b0: 48 00 00 08 b ffc092b8 <== ALWAYS TAKEN ffc092b4: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc092b8: 80 01 00 2c lwz r0,44(r1) ffc092bc: 83 a1 00 1c lwz r29,28(r1) ffc092c0: 7c 08 03 a6 mtlr r0 ffc092c4: 83 c1 00 20 lwz r30,32(r1) ffc092c8: 83 e1 00 24 lwz r31,36(r1) ffc092cc: 38 21 00 28 addi r1,r1,40 ffc092d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc092d4 : int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc092d4: 94 21 ff d8 stwu r1,-40(r1) ffc092d8: 7c 08 02 a6 mflr r0 ffc092dc: 93 a1 00 1c stw r29,28(r1) Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) ffc092e0: 7c 7d 1b 79 mr. r29,r3 int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc092e4: 90 01 00 2c stw r0,44(r1) ffc092e8: 93 c1 00 20 stw r30,32(r1) ffc092ec: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) ffc092f0: 41 82 00 a0 beq- ffc09390 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc092f4: 7c 83 23 78 mr r3,r4 ffc092f8: 38 81 00 0c addi r4,r1,12 ffc092fc: 48 00 74 d5 bl ffc107d0 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN ffc09300: 80 9d 00 00 lwz r4,0(r29) ffc09304: 7c 7e 1b 78 mr r30,r3 ffc09308: 3c 60 00 00 lis r3,0 ffc0930c: 38 63 2e 38 addi r3,r3,11832 ffc09310: 38 a1 00 08 addi r5,r1,8 ffc09314: 48 00 31 d1 bl ffc0c4e4 <_Objects_Get> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc09318: 80 01 00 08 lwz r0,8(r1) ffc0931c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09320: 40 9e 00 70 bne- cr7,ffc09390 (pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime)); int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedwrlock, ffc09324: 6b df 00 03 xori r31,r30,3 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( ffc09328: 80 9d 00 00 lwz r4,0(r29) ffc0932c: 7f ff 00 34 cntlzw r31,r31 ffc09330: 80 c1 00 0c lwz r6,12(r1) ffc09334: 57 ff d9 7e rlwinm r31,r31,27,5,31 ffc09338: 38 63 00 10 addi r3,r3,16 ffc0933c: 7f e5 fb 78 mr r5,r31 ffc09340: 38 e0 00 00 li r7,0 ffc09344: 48 00 23 55 bl ffc0b698 <_CORE_RWLock_Obtain_for_writing> <== ALWAYS TAKEN do_wait, ticks, NULL ); _Thread_Enable_dispatch(); ffc09348: 48 00 3c ad bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( !do_wait && ffc0934c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09350: 40 9e 00 2c bne- cr7,ffc0937c (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { ffc09354: 3d 20 00 00 lis r9,0 ffc09358: 81 29 27 fc lwz r9,10236(r9) ffc0935c: 80 09 00 34 lwz r0,52(r9) ffc09360: 2f 80 00 02 cmpwi cr7,r0,2 ffc09364: 40 be 00 18 bne+ cr7,ffc0937c switch (status) { ffc09368: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0936c: 41 9e 00 24 beq- cr7,ffc09390 <== NEVER TAKEN ffc09370: 2b 9e 00 02 cmplwi cr7,r30,2 ffc09374: 38 60 00 74 li r3,116 ffc09378: 40 9d 00 1c ble- cr7,ffc09394 <== ALWAYS TAKEN case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0937c: 3d 20 00 00 lis r9,0 ffc09380: 81 29 27 fc lwz r9,10236(r9) ffc09384: 80 69 00 34 lwz r3,52(r9) ffc09388: 48 00 00 29 bl ffc093b0 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN ffc0938c: 48 00 00 08 b ffc09394 <== ALWAYS TAKEN ffc09390: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09394: 80 01 00 2c lwz r0,44(r1) ffc09398: 83 a1 00 1c lwz r29,28(r1) ffc0939c: 7c 08 03 a6 mtlr r0 ffc093a0: 83 c1 00 20 lwz r30,32(r1) ffc093a4: 83 e1 00 24 lwz r31,36(r1) ffc093a8: 38 21 00 28 addi r1,r1,40 ffc093ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc093c4 : */ int pthread_rwlock_tryrdlock( pthread_rwlock_t *rwlock ) { ffc093c4: 94 21 ff e0 stwu r1,-32(r1) ffc093c8: 7c 08 02 a6 mflr r0 ffc093cc: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc093d0: 7c 7f 1b 79 mr. r31,r3 */ int pthread_rwlock_tryrdlock( pthread_rwlock_t *rwlock ) { ffc093d4: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc093d8: 41 82 00 54 beq- ffc0942c ffc093dc: 80 9f 00 00 lwz r4,0(r31) ffc093e0: 3c 60 00 00 lis r3,0 ffc093e4: 38 63 2e 38 addi r3,r3,11832 ffc093e8: 38 a1 00 08 addi r5,r1,8 ffc093ec: 48 00 30 f9 bl ffc0c4e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc093f0: 80 01 00 08 lwz r0,8(r1) ffc093f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc093f8: 40 9e 00 34 bne- cr7,ffc0942c case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( ffc093fc: 80 9f 00 00 lwz r4,0(r31) ffc09400: 38 63 00 10 addi r3,r3,16 ffc09404: 38 a0 00 00 li r5,0 ffc09408: 38 c0 00 00 li r6,0 ffc0940c: 38 e0 00 00 li r7,0 ffc09410: 48 00 21 75 bl ffc0b584 <_CORE_RWLock_Obtain_for_reading> <== ALWAYS TAKEN 0, NULL ); _Thread_Enable_dispatch(); ffc09414: 48 00 3b e1 bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc09418: 3d 20 00 00 lis r9,0 ffc0941c: 81 29 27 fc lwz r9,10236(r9) ffc09420: 80 69 00 34 lwz r3,52(r9) ffc09424: 4b ff ff 8d bl ffc093b0 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN ffc09428: 48 00 00 08 b ffc09430 <== ALWAYS TAKEN ffc0942c: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09430: 80 01 00 24 lwz r0,36(r1) ffc09434: 83 e1 00 1c lwz r31,28(r1) ffc09438: 38 21 00 20 addi r1,r1,32 ffc0943c: 7c 08 03 a6 mtlr r0 ffc09440: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09444 : */ int pthread_rwlock_trywrlock( pthread_rwlock_t *rwlock ) { ffc09444: 94 21 ff e0 stwu r1,-32(r1) ffc09448: 7c 08 02 a6 mflr r0 ffc0944c: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc09450: 7c 7f 1b 79 mr. r31,r3 */ int pthread_rwlock_trywrlock( pthread_rwlock_t *rwlock ) { ffc09454: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc09458: 41 82 00 54 beq- ffc094ac ffc0945c: 80 9f 00 00 lwz r4,0(r31) ffc09460: 3c 60 00 00 lis r3,0 ffc09464: 38 63 2e 38 addi r3,r3,11832 ffc09468: 38 a1 00 08 addi r5,r1,8 ffc0946c: 48 00 30 79 bl ffc0c4e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc09470: 80 01 00 08 lwz r0,8(r1) ffc09474: 2f 80 00 00 cmpwi cr7,r0,0 ffc09478: 40 9e 00 34 bne- cr7,ffc094ac case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( ffc0947c: 80 9f 00 00 lwz r4,0(r31) ffc09480: 38 63 00 10 addi r3,r3,16 ffc09484: 38 a0 00 00 li r5,0 ffc09488: 38 c0 00 00 li r6,0 ffc0948c: 38 e0 00 00 li r7,0 ffc09490: 48 00 22 09 bl ffc0b698 <_CORE_RWLock_Obtain_for_writing> <== ALWAYS TAKEN false, /* we are not willing to wait */ 0, NULL ); _Thread_Enable_dispatch(); ffc09494: 48 00 3b 61 bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc09498: 3d 20 00 00 lis r9,0 ffc0949c: 81 29 27 fc lwz r9,10236(r9) ffc094a0: 80 69 00 34 lwz r3,52(r9) ffc094a4: 4b ff ff 0d bl ffc093b0 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN ffc094a8: 48 00 00 08 b ffc094b0 <== ALWAYS TAKEN ffc094ac: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc094b0: 80 01 00 24 lwz r0,36(r1) ffc094b4: 83 e1 00 1c lwz r31,28(r1) ffc094b8: 38 21 00 20 addi r1,r1,32 ffc094bc: 7c 08 03 a6 mtlr r0 ffc094c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc094c4 : { POSIX_RWLock_Control *the_rwlock; Objects_Locations location; CORE_RWLock_Status status; if ( !rwlock ) ffc094c4: 2c 03 00 00 cmpwi r3,0 */ int pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) { ffc094c8: 94 21 ff e0 stwu r1,-32(r1) ffc094cc: 7c 08 02 a6 mflr r0 ffc094d0: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; CORE_RWLock_Status status; if ( !rwlock ) ffc094d4: 41 82 00 40 beq- ffc09514 ffc094d8: 80 83 00 00 lwz r4,0(r3) ffc094dc: 3c 60 00 00 lis r3,0 ffc094e0: 38 63 2e 38 addi r3,r3,11832 ffc094e4: 38 a1 00 08 addi r5,r1,8 ffc094e8: 48 00 2f fd bl ffc0c4e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc094ec: 80 01 00 08 lwz r0,8(r1) ffc094f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc094f4: 40 9e 00 20 bne- cr7,ffc09514 case OBJECTS_LOCAL: status = _CORE_RWLock_Release( &the_rwlock->RWLock ); ffc094f8: 38 63 00 10 addi r3,r3,16 ffc094fc: 48 00 22 39 bl ffc0b734 <_CORE_RWLock_Release> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc09500: 90 61 00 18 stw r3,24(r1) ffc09504: 48 00 3a f1 bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( status ); ffc09508: 80 61 00 18 lwz r3,24(r1) ffc0950c: 4b ff fe a5 bl ffc093b0 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN ffc09510: 48 00 00 08 b ffc09518 <== ALWAYS TAKEN ffc09514: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09518: 80 01 00 24 lwz r0,36(r1) ffc0951c: 38 21 00 20 addi r1,r1,32 ffc09520: 7c 08 03 a6 mtlr r0 ffc09524: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09528 : */ int pthread_rwlock_wrlock( pthread_rwlock_t *rwlock ) { ffc09528: 94 21 ff e0 stwu r1,-32(r1) ffc0952c: 7c 08 02 a6 mflr r0 ffc09530: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc09534: 7c 7f 1b 79 mr. r31,r3 */ int pthread_rwlock_wrlock( pthread_rwlock_t *rwlock ) { ffc09538: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc0953c: 41 82 00 54 beq- ffc09590 ffc09540: 80 9f 00 00 lwz r4,0(r31) ffc09544: 3c 60 00 00 lis r3,0 ffc09548: 38 63 2e 38 addi r3,r3,11832 ffc0954c: 38 a1 00 08 addi r5,r1,8 ffc09550: 48 00 2f 95 bl ffc0c4e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc09554: 80 01 00 08 lwz r0,8(r1) ffc09558: 2f 80 00 00 cmpwi cr7,r0,0 ffc0955c: 40 9e 00 34 bne- cr7,ffc09590 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( ffc09560: 80 9f 00 00 lwz r4,0(r31) ffc09564: 38 63 00 10 addi r3,r3,16 ffc09568: 38 a0 00 01 li r5,1 ffc0956c: 38 c0 00 00 li r6,0 ffc09570: 38 e0 00 00 li r7,0 ffc09574: 48 00 21 25 bl ffc0b698 <_CORE_RWLock_Obtain_for_writing> <== ALWAYS TAKEN true, /* do not timeout -- wait forever */ 0, NULL ); _Thread_Enable_dispatch(); ffc09578: 48 00 3a 7d bl ffc0cff4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0957c: 3d 20 00 00 lis r9,0 ffc09580: 81 29 27 fc lwz r9,10236(r9) ffc09584: 80 69 00 34 lwz r3,52(r9) ffc09588: 4b ff fe 29 bl ffc093b0 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN ffc0958c: 48 00 00 08 b ffc09594 <== ALWAYS TAKEN ffc09590: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09594: 80 01 00 24 lwz r0,36(r1) ffc09598: 83 e1 00 1c lwz r31,28(r1) ffc0959c: 38 21 00 20 addi r1,r1,32 ffc095a0: 7c 08 03 a6 mtlr r0 ffc095a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c40 : int pthread_rwlockattr_destroy( pthread_rwlockattr_t *attr ) { if ( !attr || attr->is_initialized == false ) ffc09c40: 2c 03 00 00 cmpwi r3,0 ffc09c44: 41 82 00 20 beq- ffc09c64 ffc09c48: 80 03 00 00 lwz r0,0(r3) ffc09c4c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09c50: 41 9e 00 14 beq- cr7,ffc09c64 return EINVAL; attr->is_initialized = false; ffc09c54: 38 00 00 00 li r0,0 ffc09c58: 90 03 00 00 stw r0,0(r3) ffc09c5c: 38 60 00 00 li r3,0 return 0; ffc09c60: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c64: 38 60 00 16 li r3,22 } ffc09c68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c6c : int pthread_rwlockattr_getpshared( const pthread_rwlockattr_t *attr, int *pshared ) { if ( !attr ) ffc09c6c: 2c 03 00 00 cmpwi r3,0 ffc09c70: 41 82 00 20 beq- ffc09c90 return EINVAL; if ( !attr->is_initialized ) ffc09c74: 80 03 00 00 lwz r0,0(r3) ffc09c78: 2f 80 00 00 cmpwi cr7,r0,0 ffc09c7c: 41 9e 00 14 beq- cr7,ffc09c90 return EINVAL; *pshared = attr->process_shared; ffc09c80: 80 03 00 04 lwz r0,4(r3) ffc09c84: 38 60 00 00 li r3,0 ffc09c88: 90 04 00 00 stw r0,0(r4) return 0; ffc09c8c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c90: 38 60 00 16 li r3,22 } ffc09c94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c98 : int pthread_rwlockattr_init( pthread_rwlockattr_t *attr ) { if ( !attr ) ffc09c98: 7c 69 1b 79 mr. r9,r3 ffc09c9c: 38 60 00 16 li r3,22 ffc09ca0: 4d 82 00 20 beqlr return EINVAL; attr->is_initialized = true; attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc09ca4: 38 00 00 00 li r0,0 ffc09ca8: 90 09 00 04 stw r0,4(r9) ) { if ( !attr ) return EINVAL; attr->is_initialized = true; ffc09cac: 38 00 00 01 li r0,1 attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc09cb0: 38 60 00 00 li r3,0 ) { if ( !attr ) return EINVAL; attr->is_initialized = true; ffc09cb4: 90 09 00 00 stw r0,0(r9) attr->process_shared = PTHREAD_PROCESS_PRIVATE; return 0; } ffc09cb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09cbc : int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { if ( !attr ) ffc09cbc: 2c 03 00 00 cmpwi r3,0 ffc09cc0: 41 82 00 24 beq- ffc09ce4 return EINVAL; if ( !attr->is_initialized ) ffc09cc4: 80 03 00 00 lwz r0,0(r3) ffc09cc8: 2f 80 00 00 cmpwi cr7,r0,0 ffc09ccc: 41 9e 00 18 beq- cr7,ffc09ce4 return EINVAL; switch ( pshared ) { ffc09cd0: 2b 84 00 01 cmplwi cr7,r4,1 ffc09cd4: 41 9d 00 10 bgt- cr7,ffc09ce4 <== NEVER TAKEN case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; ffc09cd8: 90 83 00 04 stw r4,4(r3) ffc09cdc: 38 60 00 00 li r3,0 return 0; ffc09ce0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09ce4: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc09ce8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11b64 : #include #include pthread_t pthread_self( void ) { ffc11b64: 3d 20 00 00 lis r9,0 ffc11b68: 81 29 27 b0 lwz r9,10160(r9) return _Thread_Executing->Object.id; } ffc11b6c: 80 69 00 08 lwz r3,8(r9) ffc11b70: 4e 80 00 20 blr <== ALWAYS TAKEN ffc077e4 : * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc077e4: 3d 20 00 00 lis r9,0 int pthread_setcancelstate( int state, int *oldstate ) { ffc077e8: 7c 08 02 a6 mflr r0 * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc077ec: 81 29 27 c4 lwz r9,10180(r9) int pthread_setcancelstate( int state, int *oldstate ) { ffc077f0: 94 21 ff f8 stwu r1,-8(r1) * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc077f4: 2f 89 00 00 cmpwi cr7,r9,0 int pthread_setcancelstate( int state, int *oldstate ) { ffc077f8: 90 01 00 0c stw r0,12(r1) ffc077fc: 7c 60 1b 78 mr r0,r3 * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc07800: 38 60 00 47 li r3,71 ffc07804: 40 9e 00 50 bne- cr7,ffc07854 return EPROTO; if ( !oldstate ) ffc07808: 2f 84 00 00 cmpwi cr7,r4,0 ffc0780c: 41 9e 00 44 beq- cr7,ffc07850 return EINVAL; if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE ) ffc07810: 2b 80 00 01 cmplwi cr7,r0,1 ffc07814: 41 bd 00 3c bgt+ cr7,ffc07850 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc07818: 3d 20 00 00 lis r9,0 ffc0781c: 81 09 27 9c lwz r8,10140(r9) return EINVAL; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc07820: 3d 40 00 00 lis r10,0 ffc07824: 81 6a 27 dc lwz r11,10204(r10) ffc07828: 39 08 00 01 addi r8,r8,1 ffc0782c: 91 09 27 9c stw r8,10140(r9) ffc07830: 81 2b 01 48 lwz r9,328(r11) _Thread_Disable_dispatch(); *oldstate = thread_support->cancelability_state; ffc07834: 81 69 00 cc lwz r11,204(r9) thread_support->cancelability_state = state; _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc07838: 80 6a 27 dc lwz r3,10204(r10) return EINVAL; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; _Thread_Disable_dispatch(); *oldstate = thread_support->cancelability_state; ffc0783c: 91 64 00 00 stw r11,0(r4) thread_support->cancelability_state = state; ffc07840: 90 09 00 cc stw r0,204(r9) _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc07844: 48 00 62 2d bl ffc0da70 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> <== ALWAYS TAKEN ffc07848: 38 60 00 00 li r3,0 /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; ffc0784c: 48 00 00 08 b ffc07854 <== ALWAYS TAKEN ffc07850: 38 60 00 16 li r3,22 } ffc07854: 80 01 00 0c lwz r0,12(r1) ffc07858: 38 21 00 08 addi r1,r1,8 ffc0785c: 7c 08 03 a6 mtlr r0 ffc07860: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07864 : * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc07864: 3d 20 00 00 lis r9,0 int pthread_setcanceltype( int type, int *oldtype ) { ffc07868: 7c 08 02 a6 mflr r0 * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc0786c: 81 29 27 c4 lwz r9,10180(r9) int pthread_setcanceltype( int type, int *oldtype ) { ffc07870: 94 21 ff f8 stwu r1,-8(r1) * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc07874: 2f 89 00 00 cmpwi cr7,r9,0 int pthread_setcanceltype( int type, int *oldtype ) { ffc07878: 90 01 00 0c stw r0,12(r1) ffc0787c: 7c 60 1b 78 mr r0,r3 * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc07880: 38 60 00 47 li r3,71 ffc07884: 40 9e 00 50 bne- cr7,ffc078d4 return EPROTO; if ( !oldtype ) ffc07888: 2f 84 00 00 cmpwi cr7,r4,0 ffc0788c: 41 9e 00 44 beq- cr7,ffc078d0 return EINVAL; if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS ) ffc07890: 2b 80 00 01 cmplwi cr7,r0,1 ffc07894: 41 bd 00 3c bgt+ cr7,ffc078d0 ffc07898: 3d 20 00 00 lis r9,0 ffc0789c: 81 09 27 9c lwz r8,10140(r9) return EINVAL; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc078a0: 3d 40 00 00 lis r10,0 ffc078a4: 81 6a 27 dc lwz r11,10204(r10) ffc078a8: 39 08 00 01 addi r8,r8,1 ffc078ac: 91 09 27 9c stw r8,10140(r9) ffc078b0: 81 2b 01 48 lwz r9,328(r11) _Thread_Disable_dispatch(); *oldtype = thread_support->cancelability_type; ffc078b4: 81 69 00 d0 lwz r11,208(r9) thread_support->cancelability_type = type; _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc078b8: 80 6a 27 dc lwz r3,10204(r10) return EINVAL; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; _Thread_Disable_dispatch(); *oldtype = thread_support->cancelability_type; ffc078bc: 91 64 00 00 stw r11,0(r4) thread_support->cancelability_type = type; ffc078c0: 90 09 00 d0 stw r0,208(r9) _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc078c4: 48 00 61 ad bl ffc0da70 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> <== ALWAYS TAKEN ffc078c8: 38 60 00 00 li r3,0 /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; ffc078cc: 48 00 00 08 b ffc078d4 <== ALWAYS TAKEN ffc078d0: 38 60 00 16 li r3,22 } ffc078d4: 80 01 00 0c lwz r0,12(r1) ffc078d8: 38 21 00 08 addi r1,r1,8 ffc078dc: 7c 08 03 a6 mtlr r0 ffc078e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b31c : int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) { ffc0b31c: 94 21 ff d0 stwu r1,-48(r1) ffc0b320: 7c 08 02 a6 mflr r0 ffc0b324: 93 e1 00 2c stw r31,44(r1) int rc; /* * Check all the parameters */ if ( !param ) ffc0b328: 7c bf 2b 79 mr. r31,r5 int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) { ffc0b32c: 93 81 00 20 stw r28,32(r1) int rc; /* * Check all the parameters */ if ( !param ) ffc0b330: 3b 80 00 16 li r28,22 int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) { ffc0b334: 93 a1 00 24 stw r29,36(r1) ffc0b338: 7c 7d 1b 78 mr r29,r3 ffc0b33c: 93 c1 00 28 stw r30,40(r1) ffc0b340: 7c 9e 23 78 mr r30,r4 ffc0b344: 90 01 00 34 stw r0,52(r1) ffc0b348: 93 61 00 1c stw r27,28(r1) int rc; /* * Check all the parameters */ if ( !param ) ffc0b34c: 41 82 01 10 beq- ffc0b45c return EINVAL; rc = _POSIX_Thread_Translate_sched_param( ffc0b350: 7c 83 23 78 mr r3,r4 ffc0b354: 38 a1 00 08 addi r5,r1,8 ffc0b358: 7f e4 fb 78 mr r4,r31 ffc0b35c: 38 c1 00 0c addi r6,r1,12 ffc0b360: 48 00 69 d9 bl ffc11d38 <_POSIX_Thread_Translate_sched_param> <== ALWAYS TAKEN policy, param, &budget_algorithm, &budget_callout ); if ( rc ) ffc0b364: 7c 7c 1b 79 mr. r28,r3 ffc0b368: 40 82 00 f4 bne- ffc0b45c ffc0b36c: 3c 60 00 00 lis r3,0 ffc0b370: 38 63 2e d8 addi r3,r3,11992 ffc0b374: 7f a4 eb 78 mr r4,r29 ffc0b378: 38 a1 00 10 addi r5,r1,16 ffc0b37c: 48 00 25 a5 bl ffc0d920 <_Objects_Get> <== ALWAYS TAKEN /* * Actually change the scheduling policy and parameters */ the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc0b380: 80 01 00 10 lwz r0,16(r1) ffc0b384: 7c 7b 1b 78 mr r27,r3 ffc0b388: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b38c: 41 9e 00 0c beq- cr7,ffc0b398 ffc0b390: 3b 80 00 03 li r28,3 ffc0b394: 48 00 00 c8 b ffc0b45c <== ALWAYS TAKEN case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0b398: 83 a3 01 48 lwz r29,328(r3) if ( api->schedpolicy == SCHED_SPORADIC ) ffc0b39c: 80 1d 00 7c lwz r0,124(r29) ffc0b3a0: 2f 80 00 03 cmpwi cr7,r0,3 ffc0b3a4: 40 be 00 0c bne+ cr7,ffc0b3b0 (void) _Watchdog_Remove( &api->Sporadic_timer ); ffc0b3a8: 38 7d 00 9c addi r3,r29,156 ffc0b3ac: 48 00 49 79 bl ffc0fd24 <_Watchdog_Remove> <== ALWAYS TAKEN api->schedpolicy = policy; ffc0b3b0: 93 dd 00 7c stw r30,124(r29) api->schedparam = *param; the_thread->budget_algorithm = budget_algorithm; the_thread->budget_callout = budget_callout; switch ( api->schedpolicy ) { ffc0b3b4: 2f 9e 00 00 cmpwi cr7,r30,0 if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; api->schedparam = *param; ffc0b3b8: 81 7f 00 08 lwz r11,8(r31) ffc0b3bc: 81 3f 00 0c lwz r9,12(r31) ffc0b3c0: 80 1f 00 00 lwz r0,0(r31) ffc0b3c4: 81 5f 00 04 lwz r10,4(r31) ffc0b3c8: 91 7d 00 88 stw r11,136(r29) ffc0b3cc: 91 5d 00 84 stw r10,132(r29) ffc0b3d0: 91 3d 00 8c stw r9,140(r29) ffc0b3d4: 90 1d 00 80 stw r0,128(r29) ffc0b3d8: 81 3f 00 14 lwz r9,20(r31) ffc0b3dc: 81 7f 00 10 lwz r11,16(r31) ffc0b3e0: 91 3d 00 94 stw r9,148(r29) the_thread->budget_algorithm = budget_algorithm; ffc0b3e4: 81 21 00 08 lwz r9,8(r1) if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; api->schedparam = *param; ffc0b3e8: 91 7d 00 90 stw r11,144(r29) the_thread->budget_algorithm = budget_algorithm; ffc0b3ec: 91 3b 00 7c stw r9,124(r27) the_thread->budget_callout = budget_callout; ffc0b3f0: 81 21 00 0c lwz r9,12(r1) ffc0b3f4: 91 3b 00 80 stw r9,128(r27) switch ( api->schedpolicy ) { ffc0b3f8: 41 9c 00 60 blt- cr7,ffc0b458 <== NEVER TAKEN ffc0b3fc: 2f 9e 00 02 cmpwi cr7,r30,2 ffc0b400: 40 9d 00 10 ble- cr7,ffc0b410 ffc0b404: 2f 9e 00 03 cmpwi cr7,r30,3 ffc0b408: 40 be 00 50 bne+ cr7,ffc0b458 <== NEVER TAKEN ffc0b40c: 48 00 00 34 b ffc0b440 <== ALWAYS TAKEN ffc0b410: 3d 20 00 00 lis r9,0 ffc0b414: 88 89 27 0c lbz r4,9996(r9) case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0b418: 3d 60 00 00 lis r11,0 ffc0b41c: 81 3d 00 80 lwz r9,128(r29) the_thread->real_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority ); _Thread_Change_priority( ffc0b420: 7f 63 db 78 mr r3,r27 switch ( api->schedpolicy ) { case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0b424: 80 0b 28 08 lwz r0,10248(r11) the_thread->real_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority ); _Thread_Change_priority( ffc0b428: 38 a0 00 01 li r5,1 ffc0b42c: 7c 89 20 50 subf r4,r9,r4 switch ( api->schedpolicy ) { case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0b430: 90 1b 00 78 stw r0,120(r27) the_thread->real_priority = ffc0b434: 90 9b 00 18 stw r4,24(r27) _POSIX_Priority_To_core( api->schedparam.sched_priority ); _Thread_Change_priority( ffc0b438: 48 00 29 71 bl ffc0dda8 <_Thread_Change_priority> <== ALWAYS TAKEN the_thread, the_thread->real_priority, true ); break; ffc0b43c: 48 00 00 1c b ffc0b458 <== ALWAYS TAKEN case SCHED_SPORADIC: api->ss_high_priority = api->schedparam.sched_priority; ffc0b440: 90 1d 00 98 stw r0,152(r29) _Watchdog_Remove( &api->Sporadic_timer ); ffc0b444: 38 7d 00 9c addi r3,r29,156 ffc0b448: 48 00 48 dd bl ffc0fd24 <_Watchdog_Remove> <== ALWAYS TAKEN _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); ffc0b44c: 7f 64 db 78 mr r4,r27 ffc0b450: 38 60 00 00 li r3,0 ffc0b454: 4b ff fe 25 bl ffc0b278 <_POSIX_Threads_Sporadic_budget_TSR> <== ALWAYS TAKEN break; } _Thread_Enable_dispatch(); ffc0b458: 48 00 2f d9 bl ffc0e430 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return ESRCH; } ffc0b45c: 80 01 00 34 lwz r0,52(r1) ffc0b460: 7f 83 e3 78 mr r3,r28 ffc0b464: 83 61 00 1c lwz r27,28(r1) ffc0b468: 7c 08 03 a6 mtlr r0 ffc0b46c: 83 81 00 20 lwz r28,32(r1) ffc0b470: 83 a1 00 24 lwz r29,36(r1) ffc0b474: 83 c1 00 28 lwz r30,40(r1) ffc0b478: 83 e1 00 2c lwz r31,44(r1) ffc0b47c: 38 21 00 30 addi r1,r1,48 ffc0b480: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07eb4 : int pthread_setspecific( pthread_key_t key, const void *value ) { ffc07eb4: 94 21 ff e0 stwu r1,-32(r1) ffc07eb8: 7c 08 02 a6 mflr r0 ffc07ebc: 90 01 00 24 stw r0,36(r1) ffc07ec0: 7c 60 1b 78 mr r0,r3 ffc07ec4: 3c 60 00 00 lis r3,0 ffc07ec8: 93 e1 00 1c stw r31,28(r1) ffc07ecc: 38 63 30 b0 addi r3,r3,12464 ffc07ed0: 7c 9f 23 78 mr r31,r4 ffc07ed4: 38 a1 00 08 addi r5,r1,8 ffc07ed8: 7c 04 03 78 mr r4,r0 ffc07edc: 48 00 2c 21 bl ffc0aafc <_Objects_Get> <== ALWAYS TAKEN uint32_t api; uint32_t index; Objects_Locations location; the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { ffc07ee0: 81 21 00 08 lwz r9,8(r1) ffc07ee4: 38 00 00 16 li r0,22 ffc07ee8: 2f 89 00 00 cmpwi cr7,r9,0 ffc07eec: 40 9e 00 2c bne- cr7,ffc07f18 case OBJECTS_LOCAL: api = _Objects_Get_API( _Thread_Executing->Object.id ); ffc07ef0: 3d 20 00 00 lis r9,0 ffc07ef4: 81 29 28 44 lwz r9,10308(r9) ffc07ef8: 80 09 00 08 lwz r0,8(r9) index = _Objects_Get_index( _Thread_Executing->Object.id ); the_key->Values[ api ][ index ] = (void *) value; ffc07efc: 54 09 56 fa rlwinm r9,r0,10,27,29 ffc07f00: 7c 63 4a 14 add r3,r3,r9 ffc07f04: 81 23 00 14 lwz r9,20(r3) ffc07f08: 54 00 13 ba rlwinm r0,r0,2,14,29 ffc07f0c: 7f e9 01 2e stwx r31,r9,r0 _Thread_Enable_dispatch(); ffc07f10: 48 00 36 fd bl ffc0b60c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07f14: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc07f18: 7c 03 03 78 mr r3,r0 ffc07f1c: 80 01 00 24 lwz r0,36(r1) ffc07f20: 83 e1 00 1c lwz r31,28(r1) ffc07f24: 38 21 00 20 addi r1,r1,32 ffc07f28: 7c 08 03 a6 mtlr r0 ffc07f2c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f650 : sigset_t *oset ) { POSIX_API_Control *api; if ( !set && !oset ) ffc0f650: 2c 04 00 00 cmpwi r4,0 int pthread_sigmask( int how, const sigset_t *set, sigset_t *oset ) { ffc0f654: 94 21 ff f8 stwu r1,-8(r1) ffc0f658: 7c 08 02 a6 mflr r0 ffc0f65c: 90 01 00 0c stw r0,12(r1) POSIX_API_Control *api; if ( !set && !oset ) ffc0f660: 40 a2 00 0c bne+ ffc0f66c ffc0f664: 2f 85 00 00 cmpwi cr7,r5,0 ffc0f668: 41 9e 00 8c beq- cr7,ffc0f6f4 rtems_set_errno_and_return_minus_one( EINVAL ); api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; if ( oset ) ffc0f66c: 2f 85 00 00 cmpwi cr7,r5,0 POSIX_API_Control *api; if ( !set && !oset ) rtems_set_errno_and_return_minus_one( EINVAL ); api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc0f670: 3d 20 00 00 lis r9,0 ffc0f674: 81 69 28 40 lwz r11,10304(r9) ffc0f678: 81 2b 01 48 lwz r9,328(r11) if ( oset ) ffc0f67c: 41 9e 00 0c beq- cr7,ffc0f688 *oset = api->signals_blocked; ffc0f680: 80 09 00 c4 lwz r0,196(r9) ffc0f684: 90 05 00 00 stw r0,0(r5) if ( !set ) ffc0f688: 2f 84 00 00 cmpwi cr7,r4,0 ffc0f68c: 41 9e 00 88 beq- cr7,ffc0f714 return 0; switch ( how ) { ffc0f690: 2f 83 00 01 cmpwi cr7,r3,1 ffc0f694: 41 9e 00 18 beq- cr7,ffc0f6ac ffc0f698: 2f 83 00 02 cmpwi cr7,r3,2 ffc0f69c: 41 9e 00 20 beq- cr7,ffc0f6bc ffc0f6a0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0f6a4: 41 9e 00 28 beq- cr7,ffc0f6cc ffc0f6a8: 48 00 00 4c b ffc0f6f4 <== ALWAYS TAKEN case SIG_BLOCK: api->signals_blocked |= *set; ffc0f6ac: 80 04 00 00 lwz r0,0(r4) ffc0f6b0: 81 49 00 c4 lwz r10,196(r9) ffc0f6b4: 7d 40 03 78 or r0,r10,r0 ffc0f6b8: 48 00 00 18 b ffc0f6d0 <== ALWAYS TAKEN break; case SIG_UNBLOCK: api->signals_blocked &= ~*set; ffc0f6bc: 81 44 00 00 lwz r10,0(r4) ffc0f6c0: 80 09 00 c4 lwz r0,196(r9) ffc0f6c4: 7c 00 50 78 andc r0,r0,r10 ffc0f6c8: 48 00 00 08 b ffc0f6d0 <== ALWAYS TAKEN break; case SIG_SETMASK: api->signals_blocked = *set; ffc0f6cc: 80 04 00 00 lwz r0,0(r4) ffc0f6d0: 90 09 00 c4 stw r0,196(r9) /* XXX are there critical section problems here? */ /* XXX evaluate the new set */ if ( ~api->signals_blocked & ffc0f6d4: 3d 40 00 00 lis r10,0 (api->signals_pending | _POSIX_signals_Pending) ) { ffc0f6d8: 81 4a 28 74 lwz r10,10356(r10) ffc0f6dc: 80 09 00 c8 lwz r0,200(r9) /* XXX are there critical section problems here? */ /* XXX evaluate the new set */ if ( ~api->signals_blocked & ffc0f6e0: 81 29 00 c4 lwz r9,196(r9) (api->signals_pending | _POSIX_signals_Pending) ) { ffc0f6e4: 7d 40 03 78 or r0,r10,r0 /* XXX are there critical section problems here? */ /* XXX evaluate the new set */ if ( ~api->signals_blocked & ffc0f6e8: 7c 0a 48 79 andc. r10,r0,r9 ffc0f6ec: 41 a2 00 28 beq+ ffc0f714 ffc0f6f0: 48 00 00 18 b ffc0f708 <== ALWAYS TAKEN break; case SIG_SETMASK: api->signals_blocked = *set; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc0f6f4: 48 00 38 c5 bl ffc12fb8 <__errno> <== ALWAYS TAKEN ffc0f6f8: 38 00 00 16 li r0,22 ffc0f6fc: 90 03 00 00 stw r0,0(r3) ffc0f700: 38 60 ff ff li r3,-1 ffc0f704: 48 00 00 14 b ffc0f718 <== ALWAYS TAKEN /* XXX evaluate the new set */ if ( ~api->signals_blocked & (api->signals_pending | _POSIX_signals_Pending) ) { _Thread_Executing->do_post_task_switch_extension = true; ffc0f708: 38 00 00 01 li r0,1 ffc0f70c: 98 0b 00 74 stb r0,116(r11) _Thread_Dispatch(); ffc0f710: 4b ff bf 65 bl ffc0b674 <_Thread_Dispatch> <== ALWAYS TAKEN ffc0f714: 38 60 00 00 li r3,0 } return 0; } ffc0f718: 80 01 00 0c lwz r0,12(r1) ffc0f71c: 38 21 00 08 addi r1,r1,8 ffc0f720: 7c 08 03 a6 mtlr r0 ffc0f724: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07f18 : ) { POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; if ( !spinlock ) ffc07f18: 2c 03 00 00 cmpwi r3,0 */ int pthread_spin_destroy( pthread_spinlock_t *spinlock ) { ffc07f1c: 94 21 ff e0 stwu r1,-32(r1) ffc07f20: 7c 08 02 a6 mflr r0 ffc07f24: 93 c1 00 18 stw r30,24(r1) ffc07f28: 90 01 00 24 stw r0,36(r1) ffc07f2c: 93 e1 00 1c stw r31,28(r1) POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; if ( !spinlock ) ffc07f30: 41 82 00 68 beq- ffc07f98 RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get ( pthread_spinlock_t *spinlock, Objects_Locations *location ) { return (POSIX_Spinlock_Control *) _Objects_Get( ffc07f34: 3f e0 00 00 lis r31,0 ffc07f38: 80 83 00 00 lwz r4,0(r3) ffc07f3c: 3b ff 2e b8 addi r31,r31,11960 ffc07f40: 7f e3 fb 78 mr r3,r31 ffc07f44: 38 a1 00 08 addi r5,r1,8 ffc07f48: 48 00 27 e5 bl ffc0a72c <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { ffc07f4c: 80 01 00 08 lwz r0,8(r1) ffc07f50: 7c 7e 1b 78 mr r30,r3 ffc07f54: 2f 80 00 00 cmpwi cr7,r0,0 ffc07f58: 40 9e 00 40 bne- cr7,ffc07f98 */ RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy( CORE_spinlock_Control *the_spinlock ) { return (the_spinlock->users != 0); ffc07f5c: 80 03 00 18 lwz r0,24(r3) case OBJECTS_LOCAL: if ( _CORE_spinlock_Is_busy( &the_spinlock->Spinlock ) ) { ffc07f60: 2f 80 00 00 cmpwi cr7,r0,0 ffc07f64: 41 9e 00 10 beq- cr7,ffc07f74 _Thread_Enable_dispatch(); ffc07f68: 48 00 32 d5 bl ffc0b23c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07f6c: 38 60 00 10 li r3,16 return EBUSY; ffc07f70: 48 00 00 2c b ffc07f9c <== ALWAYS TAKEN } _Objects_Close( &_POSIX_Spinlock_Information, &the_spinlock->Object ); ffc07f74: 7f e3 fb 78 mr r3,r31 ffc07f78: 7f c4 f3 78 mr r4,r30 ffc07f7c: 48 00 22 b1 bl ffc0a22c <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _POSIX_Spinlock_Free ( POSIX_Spinlock_Control *the_spinlock ) { _Objects_Free( &_POSIX_Spinlock_Information, &the_spinlock->Object ); ffc07f80: 7f e3 fb 78 mr r3,r31 ffc07f84: 7f c4 f3 78 mr r4,r30 ffc07f88: 48 00 25 e5 bl ffc0a56c <_Objects_Free> <== ALWAYS TAKEN _POSIX_Spinlock_Free( the_spinlock ); _Thread_Enable_dispatch(); ffc07f8c: 48 00 32 b1 bl ffc0b23c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07f90: 38 60 00 00 li r3,0 return 0; ffc07f94: 48 00 00 08 b ffc07f9c <== ALWAYS TAKEN ffc07f98: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc07f9c: 80 01 00 24 lwz r0,36(r1) ffc07fa0: 83 c1 00 18 lwz r30,24(r1) ffc07fa4: 7c 08 03 a6 mtlr r0 ffc07fa8: 83 e1 00 1c lwz r31,28(r1) ffc07fac: 38 21 00 20 addi r1,r1,32 ffc07fb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07fb4 : int pthread_spin_init( pthread_spinlock_t *spinlock, int pshared ) { ffc07fb4: 94 21 ff d8 stwu r1,-40(r1) ffc07fb8: 7c 08 02 a6 mflr r0 ffc07fbc: 93 81 00 18 stw r28,24(r1) POSIX_Spinlock_Control *the_spinlock; CORE_spinlock_Attributes attributes; if ( !spinlock ) ffc07fc0: 7c 7c 1b 79 mr. r28,r3 int pthread_spin_init( pthread_spinlock_t *spinlock, int pshared ) { ffc07fc4: 93 c1 00 20 stw r30,32(r1) ffc07fc8: 7c 9e 23 78 mr r30,r4 ffc07fcc: 90 01 00 2c stw r0,44(r1) ffc07fd0: 93 a1 00 1c stw r29,28(r1) ffc07fd4: 93 e1 00 24 stw r31,36(r1) POSIX_Spinlock_Control *the_spinlock; CORE_spinlock_Attributes attributes; if ( !spinlock ) ffc07fd8: 41 82 00 70 beq- ffc08048 return EINVAL; switch ( pshared ) { ffc07fdc: 2f 84 00 00 cmpwi cr7,r4,0 ffc07fe0: 40 9e 00 68 bne- cr7,ffc08048 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc07fe4: 3d 20 00 00 lis r9,0 ffc07fe8: 81 69 27 b8 lwz r11,10168(r9) ffc07fec: 38 0b 00 01 addi r0,r11,1 ffc07ff0: 90 09 27 b8 stw r0,10168(r9) * This function allocates a spinlock control block from * the inactive chain of free spinlock control blocks. */ RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Allocate( void ) { return (POSIX_Spinlock_Control *) ffc07ff4: 3f a0 00 00 lis r29,0 ffc07ff8: 3b bd 2e b8 addi r29,r29,11960 ffc07ffc: 7f a3 eb 78 mr r3,r29 <== ALWAYS TAKEN ffc08000: 48 00 21 81 bl ffc0a180 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_spinlock = _POSIX_Spinlock_Allocate(); if ( !the_spinlock ) { ffc08004: 7c 7f 1b 79 mr. r31,r3 ffc08008: 40 a2 00 10 bne+ ffc08018 _Thread_Enable_dispatch(); ffc0800c: 48 00 32 31 bl ffc0b23c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08010: 38 60 00 0b li r3,11 return EAGAIN; ffc08014: 48 00 00 38 b ffc0804c <== ALWAYS TAKEN } _CORE_spinlock_Initialize( &the_spinlock->Spinlock, &attributes ); ffc08018: 38 7f 00 10 addi r3,r31,16 ffc0801c: 38 81 00 08 addi r4,r1,8 ffc08020: 48 00 1a cd bl ffc09aec <_CORE_spinlock_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc08024: 80 1f 00 08 lwz r0,8(r31) ffc08028: 81 7d 00 1c lwz r11,28(r29) ffc0802c: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc08030: 7f eb 49 2e stwx r31,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc08034: 93 df 00 0c stw r30,12(r31) _Objects_Open_u32( &_POSIX_Spinlock_Information, &the_spinlock->Object, 0 ); *spinlock = the_spinlock->Object.id; ffc08038: 90 1c 00 00 stw r0,0(r28) _Thread_Enable_dispatch(); ffc0803c: 48 00 32 01 bl ffc0b23c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08040: 38 60 00 00 li r3,0 return 0; ffc08044: 48 00 00 08 b ffc0804c <== ALWAYS TAKEN ffc08048: 38 60 00 16 li r3,22 } ffc0804c: 80 01 00 2c lwz r0,44(r1) ffc08050: 83 81 00 18 lwz r28,24(r1) ffc08054: 7c 08 03 a6 mtlr r0 ffc08058: 83 a1 00 1c lwz r29,28(r1) ffc0805c: 83 c1 00 20 lwz r30,32(r1) ffc08060: 83 e1 00 24 lwz r31,36(r1) ffc08064: 38 21 00 28 addi r1,r1,40 ffc08068: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0806c : { POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc0806c: 2c 03 00 00 cmpwi r3,0 */ int pthread_spin_lock( pthread_spinlock_t *spinlock ) { ffc08070: 94 21 ff e0 stwu r1,-32(r1) ffc08074: 7c 08 02 a6 mflr r0 ffc08078: 90 01 00 24 stw r0,36(r1) POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc0807c: 41 82 00 48 beq- ffc080c4 RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get ( pthread_spinlock_t *spinlock, Objects_Locations *location ) { return (POSIX_Spinlock_Control *) _Objects_Get( ffc08080: 80 83 00 00 lwz r4,0(r3) ffc08084: 3c 60 00 00 lis r3,0 ffc08088: 38 63 2e b8 addi r3,r3,11960 ffc0808c: 38 a1 00 08 addi r5,r1,8 ffc08090: 48 00 26 9d bl ffc0a72c <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { ffc08094: 80 01 00 08 lwz r0,8(r1) ffc08098: 2f 80 00 00 cmpwi cr7,r0,0 ffc0809c: 40 9e 00 28 bne- cr7,ffc080c4 case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 ); ffc080a0: 38 80 00 01 li r4,1 ffc080a4: 38 a0 00 00 li r5,0 ffc080a8: 38 63 00 10 addi r3,r3,16 ffc080ac: 48 00 1a cd bl ffc09b78 <_CORE_spinlock_Wait> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc080b0: 90 61 00 18 stw r3,24(r1) ffc080b4: 48 00 31 89 bl ffc0b23c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc080b8: 80 61 00 18 lwz r3,24(r1) ffc080bc: 48 00 00 1d bl ffc080d8 <_POSIX_Spinlock_Translate_core_spinlock_return_code> <== ALWAYS TAKEN ffc080c0: 48 00 00 08 b ffc080c8 <== ALWAYS TAKEN ffc080c4: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc080c8: 80 01 00 24 lwz r0,36(r1) ffc080cc: 38 21 00 20 addi r1,r1,32 ffc080d0: 7c 08 03 a6 mtlr r0 ffc080d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc080ec : { POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc080ec: 2c 03 00 00 cmpwi r3,0 */ int pthread_spin_trylock( pthread_spinlock_t *spinlock ) { ffc080f0: 94 21 ff e0 stwu r1,-32(r1) ffc080f4: 7c 08 02 a6 mflr r0 ffc080f8: 90 01 00 24 stw r0,36(r1) POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc080fc: 41 82 00 48 beq- ffc08144 ffc08100: 80 83 00 00 lwz r4,0(r3) ffc08104: 3c 60 00 00 lis r3,0 ffc08108: 38 63 2e b8 addi r3,r3,11960 ffc0810c: 38 a1 00 08 addi r5,r1,8 ffc08110: 48 00 26 1d bl ffc0a72c <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { ffc08114: 80 01 00 08 lwz r0,8(r1) ffc08118: 2f 80 00 00 cmpwi cr7,r0,0 ffc0811c: 40 9e 00 28 bne- cr7,ffc08144 case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 ); ffc08120: 38 80 00 00 li r4,0 ffc08124: 38 a0 00 00 li r5,0 ffc08128: 38 63 00 10 addi r3,r3,16 ffc0812c: 48 00 1a 4d bl ffc09b78 <_CORE_spinlock_Wait> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08130: 90 61 00 18 stw r3,24(r1) ffc08134: 48 00 31 09 bl ffc0b23c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc08138: 80 61 00 18 lwz r3,24(r1) ffc0813c: 4b ff ff 9d bl ffc080d8 <_POSIX_Spinlock_Translate_core_spinlock_return_code> <== ALWAYS TAKEN ffc08140: 48 00 00 08 b ffc08148 <== ALWAYS TAKEN ffc08144: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc08148: 80 01 00 24 lwz r0,36(r1) ffc0814c: 38 21 00 20 addi r1,r1,32 ffc08150: 7c 08 03 a6 mtlr r0 ffc08154: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08158 : { POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc08158: 2c 03 00 00 cmpwi r3,0 */ int pthread_spin_unlock( pthread_spinlock_t *spinlock ) { ffc0815c: 94 21 ff e0 stwu r1,-32(r1) ffc08160: 7c 08 02 a6 mflr r0 ffc08164: 90 01 00 24 stw r0,36(r1) POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc08168: 41 82 00 40 beq- ffc081a8 ffc0816c: 80 83 00 00 lwz r4,0(r3) ffc08170: 3c 60 00 00 lis r3,0 ffc08174: 38 63 2e b8 addi r3,r3,11960 ffc08178: 38 a1 00 08 addi r5,r1,8 ffc0817c: 48 00 25 b1 bl ffc0a72c <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { ffc08180: 80 01 00 08 lwz r0,8(r1) ffc08184: 2f 80 00 00 cmpwi cr7,r0,0 ffc08188: 40 9e 00 20 bne- cr7,ffc081a8 case OBJECTS_LOCAL: status = _CORE_spinlock_Release( &the_spinlock->Spinlock ); ffc0818c: 38 63 00 10 addi r3,r3,16 ffc08190: 48 00 19 79 bl ffc09b08 <_CORE_spinlock_Release> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08194: 90 61 00 18 stw r3,24(r1) ffc08198: 48 00 30 a5 bl ffc0b23c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc0819c: 80 61 00 18 lwz r3,24(r1) ffc081a0: 4b ff ff 39 bl ffc080d8 <_POSIX_Spinlock_Translate_core_spinlock_return_code> <== ALWAYS TAKEN ffc081a4: 48 00 00 08 b ffc081ac <== ALWAYS TAKEN ffc081a8: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc081ac: 80 01 00 24 lwz r0,36(r1) ffc081b0: 38 21 00 20 addi r1,r1,32 ffc081b4: 7c 08 03 a6 mtlr r0 ffc081b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc082ac : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc082ac: 94 21 ff f0 stwu r1,-16(r1) ffc082b0: 7c 08 02 a6 mflr r0 * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc082b4: 3d 20 00 00 lis r9,0 * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc082b8: 90 01 00 14 stw r0,20(r1) * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc082bc: 80 09 27 bc lwz r0,10172(r9) * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc082c0: 93 e1 00 0c stw r31,12(r1) * Don't even think about deleting a resource from an ISR. * Besides this request is supposed to be for _Thread_Executing * and the ISR context is not a thread. */ if ( _ISR_Is_in_progress() ) ffc082c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc082c8: 40 9e 00 58 bne- cr7,ffc08320 <== NEVER TAKEN ffc082cc: 3d 20 00 00 lis r9,0 ffc082d0: 81 49 27 94 lwz r10,10132(r9) return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc082d4: 3d 60 00 00 lis r11,0 ffc082d8: 81 6b 27 d4 lwz r11,10196(r11) ffc082dc: 38 0a 00 01 addi r0,r10,1 ffc082e0: 90 09 27 94 stw r0,10132(r9) ffc082e4: 81 2b 01 48 lwz r9,328(r11) _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && ffc082e8: 80 09 00 cc lwz r0,204(r9) ffc082ec: 3b e0 00 00 li r31,0 ffc082f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc082f4: 40 9e 00 10 bne- cr7,ffc08304 <== NEVER TAKEN /* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ int _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate)); int _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype)); void _EXFUN(pthread_testcancel, (void)); ffc082f8: 80 09 00 d4 lwz r0,212(r9) ffc082fc: 31 20 ff ff addic r9,r0,-1 ffc08300: 7f e9 01 10 subfe r31,r9,r0 thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); ffc08304: 48 00 2e 61 bl ffc0b164 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( cancel ) ffc08308: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0830c: 41 be 00 14 beq+ cr7,ffc08320 _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); ffc08310: 3d 20 00 00 lis r9,0 ffc08314: 80 69 27 d4 lwz r3,10196(r9) ffc08318: 38 80 ff ff li r4,-1 ffc0831c: 48 00 68 e9 bl ffc0ec04 <_POSIX_Thread_Exit> <== ALWAYS TAKEN } ffc08320: 80 01 00 14 lwz r0,20(r1) ffc08324: 83 e1 00 0c lwz r31,12(r1) ffc08328: 38 21 00 10 addi r1,r1,16 ffc0832c: 7c 08 03 a6 mtlr r0 ffc08330: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04aec : * putk * * Kernel putk (e.g. puts) function requiring minimal infrastrure. */ void putk(const char *s) { ffc04aec: 94 21 ff f0 stwu r1,-16(r1) ffc04af0: 7c 08 02 a6 mflr r0 ffc04af4: 93 c1 00 08 stw r30,8(r1) const char *p = s; for (p=s ; *p ; p++ ) BSP_output_char(*p); ffc04af8: 3f c0 00 00 lis r30,0 ffc04afc: 3b de 26 9c addi r30,r30,9884 * putk * * Kernel putk (e.g. puts) function requiring minimal infrastrure. */ void putk(const char *s) { ffc04b00: 93 e1 00 0c stw r31,12(r1) ffc04b04: 7c 7f 1b 78 mr r31,r3 ffc04b08: 90 01 00 14 stw r0,20(r1) const char *p = s; for (p=s ; *p ; p++ ) ffc04b0c: 48 00 00 10 b ffc04b1c <== ALWAYS TAKEN BSP_output_char(*p); ffc04b10: 80 1e 00 00 lwz r0,0(r30) ffc04b14: 7c 09 03 a6 mtctr r0 ffc04b18: 4e 80 04 21 bctrl <== ALWAYS TAKEN */ void putk(const char *s) { const char *p = s; for (p=s ; *p ; p++ ) ffc04b1c: 88 7f 00 00 lbz r3,0(r31) ffc04b20: 3b ff 00 01 addi r31,r31,1 ffc04b24: 2f 83 00 00 cmpwi cr7,r3,0 ffc04b28: 40 9e ff e8 bne+ cr7,ffc04b10 BSP_output_char(*p); BSP_output_char('\n'); ffc04b2c: 3d 20 00 00 lis r9,0 ffc04b30: 80 09 26 9c lwz r0,9884(r9) ffc04b34: 38 60 00 0a li r3,10 ffc04b38: 7c 09 03 a6 mtctr r0 ffc04b3c: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc04b40: 80 01 00 14 lwz r0,20(r1) ffc04b44: 83 c1 00 08 lwz r30,8(r1) ffc04b48: 7c 08 03 a6 mtlr r0 ffc04b4c: 83 e1 00 0c lwz r31,12(r1) ffc04b50: 38 21 00 10 addi r1,r1,16 ffc04b54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1c9a4 : ssize_t read( int fd, void *buffer, size_t count ) { ffc1c9a4: 94 21 ff f0 stwu r1,-16(r1) ffc1c9a8: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1c9ac: 3d 20 00 00 lis r9,0 ssize_t read( int fd, void *buffer, size_t count ) { ffc1c9b0: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1c9b4: 80 09 26 8c lwz r0,9868(r9) ssize_t read( int fd, void *buffer, size_t count ) { ffc1c9b8: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1c9bc: 7f 83 00 40 cmplw cr7,r3,r0 ffc1c9c0: 40 9c 00 20 bge- cr7,ffc1c9e0 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1c9c4: 3d 40 00 00 lis r10,0 ffc1c9c8: 83 ea 27 4c lwz r31,10060(r10) ffc1c9cc: 1c 63 00 48 mulli r3,r3,72 ffc1c9d0: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1c9d4: 80 1f 00 18 lwz r0,24(r31) ffc1c9d8: 70 0a 01 00 andi. r10,r0,256 ffc1c9dc: 40 a2 00 10 bne+ ffc1c9ec ffc1c9e0: 4b ff 52 2d bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc1c9e4: 38 00 00 09 li r0,9 ffc1c9e8: 48 00 00 44 b ffc1ca2c <== ALWAYS TAKEN rtems_libio_check_buffer( buffer ); ffc1c9ec: 2f 84 00 00 cmpwi cr7,r4,0 ffc1c9f0: 41 9e 00 18 beq- cr7,ffc1ca08 <== NEVER TAKEN rtems_libio_check_count( count ); ffc1c9f4: 2f 85 00 00 cmpwi cr7,r5,0 ffc1c9f8: 38 60 00 00 li r3,0 ffc1c9fc: 41 9e 00 70 beq- cr7,ffc1ca6c <== NEVER TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc1ca00: 70 09 00 02 andi. r9,r0,2 ffc1ca04: 40 a2 00 10 bne+ ffc1ca14 <== ALWAYS TAKEN ffc1ca08: 4b ff 52 05 bl ffc11c0c <__errno> <== NOT EXECUTED ffc1ca0c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1ca10: 48 00 00 1c b ffc1ca2c <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) ffc1ca14: 81 3f 00 40 lwz r9,64(r31) ffc1ca18: 80 09 00 08 lwz r0,8(r9) ffc1ca1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc1ca20: 40 be 00 18 bne+ cr7,ffc1ca38 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1ca24: 4b ff 51 e9 bl ffc11c0c <__errno> <== NOT EXECUTED ffc1ca28: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1ca2c: 90 03 00 00 stw r0,0(r3) ffc1ca30: 38 60 ff ff li r3,-1 ffc1ca34: 48 00 00 38 b ffc1ca6c <== ALWAYS TAKEN rc = (*iop->handlers->read_h)( iop, buffer, count ); ffc1ca38: 7f e3 fb 78 mr r3,r31 ffc1ca3c: 7c 09 03 a6 mtctr r0 ffc1ca40: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( rc > 0 ) ffc1ca44: 2c 03 00 00 cmpwi r3,0 ffc1ca48: 40 81 00 24 ble- ffc1ca6c iop->offset += rc; ffc1ca4c: 80 ff 00 10 lwz r7,16(r31) ffc1ca50: 7c 6a 1b 78 mr r10,r3 ffc1ca54: 81 1f 00 14 lwz r8,20(r31) ffc1ca58: 7c 69 fe 70 srawi r9,r3,31 ffc1ca5c: 7d 88 50 14 addc r12,r8,r10 ffc1ca60: 7d 67 49 14 adde r11,r7,r9 ffc1ca64: 91 7f 00 10 stw r11,16(r31) ffc1ca68: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1ca6c: 80 01 00 14 lwz r0,20(r1) ffc1ca70: 83 e1 00 0c lwz r31,12(r1) ffc1ca74: 38 21 00 10 addi r1,r1,16 ffc1ca78: 7c 08 03 a6 mtlr r0 ffc1ca7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2ca48 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc2ca48: 94 21 ff c8 stwu r1,-56(r1) ffc2ca4c: 7c 08 02 a6 mflr r0 ffc2ca50: 93 a1 00 2c stw r29,44(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc2ca54: 7c 9d 23 79 mr. r29,r4 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc2ca58: 93 81 00 28 stw r28,40(r1) ffc2ca5c: 7c 7c 1b 78 mr r28,r3 ffc2ca60: 93 c1 00 30 stw r30,48(r1) ffc2ca64: 7c be 2b 78 mr r30,r5 ffc2ca68: 90 01 00 3c stw r0,60(r1) ffc2ca6c: 93 e1 00 34 stw r31,52(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc2ca70: 40 a2 00 10 bne+ ffc2ca80 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc2ca74: 48 01 ac 19 bl ffc4768c <__errno> <== NOT EXECUTED ffc2ca78: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc2ca7c: 48 00 00 60 b ffc2cadc <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), ffc2ca80: 48 02 29 d5 bl ffc4f454 <== ALWAYS TAKEN ffc2ca84: 3b e1 00 08 addi r31,r1,8 ffc2ca88: 7c 64 1b 78 mr r4,r3 ffc2ca8c: 38 a0 00 00 li r5,0 ffc2ca90: 7f 83 e3 78 mr r3,r28 ffc2ca94: 7f e6 fb 78 mr r6,r31 ffc2ca98: 38 e0 00 00 li r7,0 ffc2ca9c: 4b fd b8 a1 bl ffc0833c <== ALWAYS TAKEN 0, &loc, false ); if ( result != 0 ) ffc2caa0: 3b 80 ff ff li r28,-1 ffc2caa4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2caa8: 40 9e 00 cc bne- cr7,ffc2cb74 <== NEVER TAKEN return -1; if ( !loc.ops->node_type_h ){ ffc2caac: 81 21 00 14 lwz r9,20(r1) ffc2cab0: 80 09 00 10 lwz r0,16(r9) ffc2cab4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cab8: 40 be 00 30 bne+ cr7,ffc2cae8 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc2cabc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2cac0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2cac4: 41 9e 00 10 beq- cr7,ffc2cad4 <== NOT EXECUTED ffc2cac8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2cacc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2cad0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2cad4: 48 01 ab b9 bl ffc4768c <__errno> <== NOT EXECUTED ffc2cad8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2cadc: 90 03 00 00 stw r0,0(r3) ffc2cae0: 3b 80 ff ff li r28,-1 ffc2cae4: 48 00 00 90 b ffc2cb74 <== ALWAYS TAKEN } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ ffc2cae8: 7f e3 fb 78 mr r3,r31 ffc2caec: 7c 09 03 a6 mtctr r0 ffc2caf0: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc2caf4: 81 21 00 14 lwz r9,20(r1) ffc2caf8: 2f 83 00 04 cmpwi cr7,r3,4 ffc2cafc: 41 be 00 30 beq+ cr7,ffc2cb2c rtems_filesystem_freenode( &loc ); ffc2cb00: 2f 89 00 00 cmpwi cr7,r9,0 ffc2cb04: 41 9e 00 1c beq- cr7,ffc2cb20 <== NEVER TAKEN ffc2cb08: 80 09 00 1c lwz r0,28(r9) ffc2cb0c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cb10: 41 9e 00 10 beq- cr7,ffc2cb20 <== NEVER TAKEN ffc2cb14: 7f e3 fb 78 mr r3,r31 ffc2cb18: 7c 09 03 a6 mtctr r0 ffc2cb1c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc2cb20: 48 01 ab 6d bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2cb24: 38 00 00 16 li r0,22 ffc2cb28: 4b ff ff b4 b ffc2cadc <== ALWAYS TAKEN } if ( !loc.ops->readlink_h ){ ffc2cb2c: 80 09 00 3c lwz r0,60(r9) ffc2cb30: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cb34: 41 be ff 88 beq- cr7,ffc2cabc <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); ffc2cb38: 7f a4 eb 78 mr r4,r29 ffc2cb3c: 7c 09 03 a6 mtctr r0 ffc2cb40: 7f c5 f3 78 mr r5,r30 ffc2cb44: 7f e3 fb 78 mr r3,r31 ffc2cb48: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc2cb4c: 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 ); ffc2cb50: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc2cb54: 2f 89 00 00 cmpwi cr7,r9,0 ffc2cb58: 41 9e 00 1c beq- cr7,ffc2cb74 <== NEVER TAKEN ffc2cb5c: 80 09 00 1c lwz r0,28(r9) ffc2cb60: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cb64: 41 9e 00 10 beq- cr7,ffc2cb74 <== NEVER TAKEN ffc2cb68: 7f e3 fb 78 mr r3,r31 ffc2cb6c: 7c 09 03 a6 mtctr r0 ffc2cb70: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc2cb74: 80 01 00 3c lwz r0,60(r1) ffc2cb78: 7f 83 e3 78 mr r3,r28 ffc2cb7c: 83 a1 00 2c lwz r29,44(r1) ffc2cb80: 7c 08 03 a6 mtlr r0 ffc2cb84: 83 81 00 28 lwz r28,40(r1) ffc2cb88: 83 c1 00 30 lwz r30,48(r1) ffc2cb8c: 83 e1 00 34 lwz r31,52(r1) ffc2cb90: 38 21 00 38 addi r1,r1,56 ffc2cb94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc065bc : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc065bc: 94 21 ff d8 stwu r1,-40(r1) ffc065c0: 7c 08 02 a6 mflr r0 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc065c4: 3d 20 00 00 lis r9,0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc065c8: 90 01 00 2c stw r0,44(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc065cc: 80 09 26 8c lwz r0,9868(r9) ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc065d0: 93 81 00 18 stw r28,24(r1) ffc065d4: 7c bc 2b 78 mr r28,r5 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc065d8: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc065dc: 93 21 00 0c stw r25,12(r1) ffc065e0: 93 41 00 10 stw r26,16(r1) ffc065e4: 93 61 00 14 stw r27,20(r1) ffc065e8: 93 a1 00 1c stw r29,28(r1) ffc065ec: 93 c1 00 20 stw r30,32(r1) ffc065f0: 93 e1 00 24 stw r31,36(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc065f4: 40 9c 00 20 bge- cr7,ffc06614 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc065f8: 3d 20 00 00 lis r9,0 ffc065fc: 83 a9 27 50 lwz r29,10064(r9) ffc06600: 1c 63 00 48 mulli r3,r3,72 ffc06604: 7f bd 1a 14 add r29,r29,r3 rtems_libio_check_is_open( iop ); ffc06608: 80 1d 00 18 lwz r0,24(r29) ffc0660c: 70 09 01 00 andi. r9,r0,256 ffc06610: 40 a2 00 10 bne+ ffc06620 <== ALWAYS TAKEN ffc06614: 48 00 e2 61 bl ffc14874 <__errno> <== NOT EXECUTED ffc06618: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc0661c: 48 00 00 84 b ffc066a0 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc06620: 70 09 00 02 andi. r9,r0,2 ffc06624: 41 82 00 74 beq- ffc06698 <== NEVER TAKEN /* * Argument validation on IO vector */ if ( !iov ) ffc06628: 2f 84 00 00 cmpwi cr7,r4,0 ffc0662c: 41 9e 00 6c beq- cr7,ffc06698 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc06630: 2f 85 00 00 cmpwi cr7,r5,0 ffc06634: 40 9d 00 64 ble- cr7,ffc06698 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc06638: 2f 85 04 00 cmpwi cr7,r5,1024 ffc0663c: 41 9d 00 5c bgt- cr7,ffc06698 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) ffc06640: 81 3d 00 40 lwz r9,64(r29) ffc06644: 80 09 00 08 lwz r0,8(r9) ffc06648: 2f 80 00 00 cmpwi cr7,r0,0 ffc0664c: 40 be 00 10 bne+ cr7,ffc0665c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06650: 48 00 e2 25 bl ffc14874 <__errno> <== NOT EXECUTED ffc06654: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06658: 48 00 00 48 b ffc066a0 <== NOT EXECUTED ffc0665c: 7c a9 03 a6 mtctr r5 ffc06660: 7c 9e 23 78 mr r30,r4 ffc06664: 7c 89 23 78 mr r9,r4 ffc06668: 38 00 00 00 li r0,0 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) ffc0666c: 81 69 00 00 lwz r11,0(r9) ffc06670: 2f 8b 00 00 cmpwi cr7,r11,0 ffc06674: 41 9e 00 24 beq- cr7,ffc06698 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06678: 81 49 00 04 lwz r10,4(r9) * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc0667c: 39 29 00 08 addi r9,r9,8 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06680: 2f 0a 00 00 cmpwi cr6,r10,0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; ffc06684: 7d 60 52 14 add r11,r0,r10 if ( total < old ) ffc06688: 7f 8b 00 00 cmpw cr7,r11,r0 * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc0668c: 7d 60 5b 78 mr r0,r11 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06690: 41 9a 00 08 beq- cr6,ffc06698 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) ffc06694: 40 bc 00 14 bge+ cr7,ffc066a8 rtems_set_errno_and_return_minus_one( EINVAL ); ffc06698: 48 00 e1 dd bl ffc14874 <__errno> <== ALWAYS TAKEN ffc0669c: 38 00 00 16 li r0,22 ffc066a0: 90 03 00 00 stw r0,0(r3) ffc066a4: 48 00 00 3c b ffc066e0 <== ALWAYS TAKEN * 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++ ) { ffc066a8: 42 00 ff c4 bdnz+ ffc0666c ffc066ac: 3b 60 00 00 li r27,0 ffc066b0: 3b e0 00 00 li r31,0 /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc066b4: 81 3d 00 40 lwz r9,64(r29) ffc066b8: 7f a3 eb 78 mr r3,r29 ffc066bc: 80 9e 00 00 lwz r4,0(r30) } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc066c0: 3b 7b 00 01 addi r27,r27,1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc066c4: 80 09 00 08 lwz r0,8(r9) ffc066c8: 80 be 00 04 lwz r5,4(r30) ffc066cc: 7c 09 03 a6 mtctr r0 ffc066d0: 4e 80 04 21 bctrl <== ALWAYS TAKEN } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc066d4: 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 ) ffc066d8: 2c 03 00 00 cmpwi r3,0 ffc066dc: 40 a0 00 0c bge+ ffc066e8 <== ALWAYS TAKEN ffc066e0: 3b e0 ff ff li r31,-1 ffc066e4: 48 00 00 40 b ffc06724 <== ALWAYS TAKEN return -1; if ( bytes > 0 ) { ffc066e8: 41 82 00 28 beq- ffc06710 <== ALWAYS TAKEN iop->offset += bytes; ffc066ec: 81 7d 00 10 lwz r11,16(r29) <== NOT EXECUTED ffc066f0: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED ffc066f4: 81 9d 00 14 lwz r12,20(r29) <== NOT EXECUTED ffc066f8: 7c 79 fe 70 srawi r25,r3,31 <== NOT EXECUTED total += bytes; ffc066fc: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc06700: 7d 4c d0 14 addc r10,r12,r26 <== NOT EXECUTED ffc06704: 7d 2b c9 14 adde r9,r11,r25 <== NOT EXECUTED ffc06708: 91 3d 00 10 stw r9,16(r29) <== NOT EXECUTED ffc0670c: 91 5d 00 14 stw r10,20(r29) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) ffc06710: 80 1e 00 04 lwz r0,4(r30) } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06714: 3b de 00 08 addi r30,r30,8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) ffc06718: 7f 03 00 00 cmpw cr6,r3,r0 ffc0671c: 40 9a 00 08 bne- cr6,ffc06724 <== ALWAYS TAKEN } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06720: 41 9c ff 94 blt+ cr7,ffc066b4 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } ffc06724: 80 01 00 2c lwz r0,44(r1) ffc06728: 7f e3 fb 78 mr r3,r31 ffc0672c: 83 21 00 0c lwz r25,12(r1) ffc06730: 7c 08 03 a6 mtlr r0 ffc06734: 83 41 00 10 lwz r26,16(r1) ffc06738: 83 61 00 14 lwz r27,20(r1) ffc0673c: 83 81 00 18 lwz r28,24(r1) ffc06740: 83 a1 00 1c lwz r29,28(r1) ffc06744: 83 c1 00 20 lwz r30,32(r1) ffc06748: 83 e1 00 24 lwz r31,36(r1) ffc0674c: 38 21 00 28 addi r1,r1,40 ffc06750: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1cb24 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1cb24: 94 21 ff d8 stwu r1,-40(r1) ffc1cb28: 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())) { ffc1cb2c: 3d 20 00 00 lis r9,0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1cb30: 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())) { ffc1cb34: 80 09 27 d4 lwz r0,10196(r9) { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1cb38: 3d 20 00 00 lis r9,0 ffc1cb3c: 39 29 2b 00 addi r9,r9,11008 ffc1cb40: 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())) { ffc1cb44: 2f 80 00 03 cmpwi cr7,r0,3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1cb48: 81 69 00 10 lwz r11,16(r9) ffc1cb4c: 7c 9e 23 78 mr r30,r4 ffc1cb50: 93 e1 00 24 stw r31,36(r1) ffc1cb54: 7c 7f 1b 78 mr r31,r3 ffc1cb58: 39 6b 00 01 addi r11,r11,1 ffc1cb5c: 93 a1 00 1c stw r29,28(r1) ffc1cb60: 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())) { ffc1cb64: 40 be 00 24 bne+ cr7,ffc1cb88 <== NEVER TAKEN if (_Thread_Dispatch_disable_level > 0) ffc1cb68: 3d 20 00 00 lis r9,0 ffc1cb6c: 80 09 27 70 lwz r0,10096(r9) ffc1cb70: 2f 80 00 00 cmpwi cr7,r0,0 ffc1cb74: 40 be 00 d8 bne+ cr7,ffc1cc4c <== NEVER TAKEN return (void *) 0; if (_ISR_Nest_level > 0) ffc1cb78: 3d 20 00 00 lis r9,0 ffc1cb7c: 80 09 27 98 lwz r0,10136(r9) ffc1cb80: 2f 80 00 00 cmpwi cr7,r0,0 ffc1cb84: 40 9e 00 c8 bne- cr7,ffc1cc4c <== NEVER TAKEN } /* * Continue with realloc(). */ if ( !ptr ) ffc1cb88: 2f 9f 00 00 cmpwi cr7,r31,0 ffc1cb8c: 40 be 00 14 bne+ cr7,ffc1cba0 return malloc( size ); ffc1cb90: 7f c3 f3 78 mr r3,r30 ffc1cb94: 4b fe 78 29 bl ffc043bc <== ALWAYS TAKEN ffc1cb98: 7c 7f 1b 78 mr r31,r3 ffc1cb9c: 48 00 00 b4 b ffc1cc50 <== ALWAYS TAKEN if ( !size ) { ffc1cba0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc1cba4: 40 be 00 10 bne+ cr7,ffc1cbb4 <== ALWAYS TAKEN free( ptr ); ffc1cba8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1cbac: 4b fe 74 ad bl ffc04058 <== NOT EXECUTED ffc1cbb0: 48 00 00 9c b ffc1cc4c <== NOT EXECUTED return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { ffc1cbb4: 3f a0 00 00 lis r29,0 ffc1cbb8: 80 7d 26 9c lwz r3,9884(r29) ffc1cbbc: 7f e4 fb 78 mr r4,r31 ffc1cbc0: 38 a1 00 08 addi r5,r1,8 ffc1cbc4: 48 00 01 89 bl ffc1cd4c <_Protected_heap_Get_block_size> <== ALWAYS TAKEN ffc1cbc8: 2f 83 00 00 cmpwi cr7,r3,0 ffc1cbcc: 40 be 00 14 bne+ cr7,ffc1cbe0 errno = EINVAL; ffc1cbd0: 4b ff 50 3d bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc1cbd4: 38 00 00 16 li r0,22 ffc1cbd8: 90 03 00 00 stw r0,0(r3) ffc1cbdc: 48 00 00 70 b ffc1cc4c <== ALWAYS TAKEN #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 ) ) { ffc1cbe0: 80 7d 26 9c lwz r3,9884(r29) ffc1cbe4: 7f e4 fb 78 mr r4,r31 ffc1cbe8: 7f c5 f3 78 mr r5,r30 ffc1cbec: 48 00 01 c5 bl ffc1cdb0 <_Protected_heap_Resize_block> <== ALWAYS TAKEN ffc1cbf0: 2f 83 00 00 cmpwi cr7,r3,0 ffc1cbf4: 40 be 00 5c bne+ cr7,ffc1cc50 * 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 ); ffc1cbf8: 7f c3 f3 78 mr r3,r30 ffc1cbfc: 4b fe 77 c1 bl ffc043bc <== ALWAYS TAKEN MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc1cc00: 3d 20 00 00 lis r9,0 if ( !new_area ) { ffc1cc04: 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 */ ffc1cc08: 39 29 2b 00 addi r9,r9,11008 ffc1cc0c: 81 69 00 04 lwz r11,4(r9) ffc1cc10: 38 0b ff ff addi r0,r11,-1 ffc1cc14: 90 09 00 04 stw r0,4(r9) if ( !new_area ) { ffc1cc18: 41 82 00 34 beq- ffc1cc4c return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); ffc1cc1c: 80 01 00 08 lwz r0,8(r1) ffc1cc20: 7f c5 f3 78 mr r5,r30 ffc1cc24: 7f 9e 00 40 cmplw cr7,r30,r0 ffc1cc28: 40 9d 00 08 ble- cr7,ffc1cc30 <== NEVER TAKEN ffc1cc2c: 7c 05 03 78 mr r5,r0 ffc1cc30: 7f e4 fb 78 mr r4,r31 ffc1cc34: 7f a3 eb 78 mr r3,r29 ffc1cc38: 4b ff 5b bd bl ffc127f4 <== ALWAYS TAKEN free( ptr ); ffc1cc3c: 7f e3 fb 78 mr r3,r31 ffc1cc40: 4b fe 74 19 bl ffc04058 <== ALWAYS TAKEN ffc1cc44: 7f bf eb 78 mr r31,r29 return new_area; ffc1cc48: 48 00 00 08 b ffc1cc50 <== ALWAYS TAKEN ffc1cc4c: 3b e0 00 00 li r31,0 } ffc1cc50: 80 01 00 2c lwz r0,44(r1) ffc1cc54: 7f e3 fb 78 mr r3,r31 ffc1cc58: 83 a1 00 1c lwz r29,28(r1) ffc1cc5c: 7c 08 03 a6 mtlr r0 ffc1cc60: 83 c1 00 20 lwz r30,32(r1) ffc1cc64: 83 e1 00 24 lwz r31,36(r1) ffc1cc68: 38 21 00 28 addi r1,r1,40 ffc1cc6c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c6c : #include int rmdir( const char *pathname ) { ffc09c6c: 94 21 ff b8 stwu r1,-72(r1) ffc09c70: 7c 08 02 a6 mflr r0 ffc09c74: 93 a1 00 3c stw r29,60(r1) ffc09c78: 93 c1 00 40 stw r30,64(r1) ffc09c7c: 7c 7e 1b 78 mr r30,r3 ffc09c80: 90 01 00 4c stw r0,76(r1) ffc09c84: 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 ); ffc09c88: 4b ff e5 3d bl ffc081c4 <== ALWAYS TAKEN if ( parentpathlen == 0 ) ffc09c8c: 7c 7d 1b 79 mr. r29,r3 ffc09c90: 40 82 00 8c bne- ffc09d1c rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); ffc09c94: 88 1e 00 00 lbz r0,0(r30) ffc09c98: 2f 80 00 2f cmpwi cr7,r0,47 ffc09c9c: 41 9e 00 14 beq- cr7,ffc09cb0 <== ALWAYS TAKEN ffc09ca0: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc09ca4: 41 9e 00 0c beq- cr7,ffc09cb0 <== NOT EXECUTED ffc09ca8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09cac: 40 9e 00 38 bne- cr7,ffc09ce4 <== NOT EXECUTED ffc09cb0: 3d 20 00 00 lis r9,0 ffc09cb4: 81 29 35 2c lwz r9,13612(r9) ffc09cb8: 3b e0 00 00 li r31,0 ffc09cbc: 80 09 00 24 lwz r0,36(r9) ffc09cc0: 81 09 00 18 lwz r8,24(r9) ffc09cc4: 81 49 00 1c lwz r10,28(r9) ffc09cc8: 81 69 00 20 lwz r11,32(r9) ffc09ccc: 91 01 00 08 stw r8,8(r1) ffc09cd0: 91 41 00 0c stw r10,12(r1) ffc09cd4: 91 61 00 10 stw r11,16(r1) ffc09cd8: 90 01 00 14 stw r0,20(r1) ffc09cdc: 80 09 00 28 lwz r0,40(r9) ffc09ce0: 48 00 00 34 b ffc09d14 <== ALWAYS TAKEN ffc09ce4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc09ce8: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc09cec: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc09cf0: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc09cf4: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc09cf8: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc09cfc: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc09d00: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc09d04: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc09d08: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc09d0c: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc09d10: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc09d14: 90 01 00 18 stw r0,24(r1) ffc09d18: 48 00 00 28 b ffc09d40 <== ALWAYS TAKEN else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, ffc09d1c: 7f c3 f3 78 mr r3,r30 ffc09d20: 7f a4 eb 78 mr r4,r29 ffc09d24: 38 a0 00 02 li r5,2 ffc09d28: 38 c1 00 08 addi r6,r1,8 ffc09d2c: 38 e0 00 00 li r7,0 ffc09d30: 4b ff e6 0d bl ffc0833c <== ALWAYS TAKEN RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc09d34: 2f 83 00 00 cmpwi cr7,r3,0 ffc09d38: 40 9e 01 fc bne- cr7,ffc09f34 <== NEVER TAKEN ffc09d3c: 3b e0 00 01 li r31,1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc09d40: 80 01 00 08 lwz r0,8(r1) name = pathname + parentpathlen; ffc09d44: 7f be ea 14 add r29,r30,r29 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc09d48: 7f a3 eb 78 mr r3,r29 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc09d4c: 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 ), ffc09d50: 3b c1 00 1c addi r30,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc09d54: 80 01 00 0c lwz r0,12(r1) ffc09d58: 90 01 00 20 stw r0,32(r1) ffc09d5c: 80 01 00 10 lwz r0,16(r1) ffc09d60: 90 01 00 24 stw r0,36(r1) ffc09d64: 80 01 00 14 lwz r0,20(r1) ffc09d68: 90 01 00 28 stw r0,40(r1) ffc09d6c: 80 01 00 18 lwz r0,24(r1) ffc09d70: 90 01 00 2c stw r0,44(r1) name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc09d74: 48 04 56 e1 bl ffc4f454 <== ALWAYS TAKEN ffc09d78: 7c 64 1b 78 mr r4,r3 ffc09d7c: 7f a3 eb 78 mr r3,r29 ffc09d80: 4b ff e4 09 bl ffc08188 <== ALWAYS TAKEN ffc09d84: 7f bd 1a 14 add r29,r29,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc09d88: 7f a3 eb 78 mr r3,r29 ffc09d8c: 48 04 56 c9 bl ffc4f454 <== ALWAYS TAKEN ffc09d90: 38 a0 00 00 li r5,0 ffc09d94: 7c 64 1b 78 mr r4,r3 ffc09d98: 7f c6 f3 78 mr r6,r30 ffc09d9c: 7f a3 eb 78 mr r3,r29 ffc09da0: 38 e0 00 00 li r7,0 ffc09da4: 4b ff e4 85 bl ffc08228 <== ALWAYS TAKEN 0, &loc, false ); if ( result != 0 ) { ffc09da8: 2f 83 00 00 cmpwi cr7,r3,0 ffc09dac: 41 be 00 30 beq+ cr7,ffc09ddc if ( free_parentloc ) ffc09db0: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09db4: 41 be 01 80 beq+ cr7,ffc09f34 <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); ffc09db8: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc09dbc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc09dc0: 41 be 01 74 beq+ cr7,ffc09f34 <== NOT EXECUTED ffc09dc4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc09dc8: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc09dcc: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc09dd0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09dd4: 41 be 01 60 beq+ cr7,ffc09f34 <== NOT EXECUTED ffc09dd8: 48 00 01 50 b ffc09f28 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ ffc09ddc: 81 21 00 28 lwz r9,40(r1) ffc09de0: 80 09 00 10 lwz r0,16(r9) ffc09de4: 2f 80 00 00 cmpwi cr7,r0,0 ffc09de8: 41 9e 00 90 beq- cr7,ffc09e78 <== 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 ){ ffc09dec: 7f c3 f3 78 mr r3,r30 ffc09df0: 7c 09 03 a6 mtctr r0 ffc09df4: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc09df8: 2f 83 00 01 cmpwi cr7,r3,1 ffc09dfc: 41 be 00 60 beq+ cr7,ffc09e5c rtems_filesystem_freenode( &loc ); ffc09e00: 81 21 00 28 lwz r9,40(r1) ffc09e04: 2f 89 00 00 cmpwi cr7,r9,0 ffc09e08: 41 9e 00 1c beq- cr7,ffc09e24 <== NEVER TAKEN ffc09e0c: 80 09 00 1c lwz r0,28(r9) ffc09e10: 2f 80 00 00 cmpwi cr7,r0,0 ffc09e14: 41 9e 00 10 beq- cr7,ffc09e24 <== NEVER TAKEN ffc09e18: 7f c3 f3 78 mr r3,r30 ffc09e1c: 7c 09 03 a6 mtctr r0 ffc09e20: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( free_parentloc ) ffc09e24: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09e28: 41 9e 00 28 beq- cr7,ffc09e50 <== NEVER TAKEN rtems_filesystem_freenode( &parentloc ); ffc09e2c: 81 21 00 14 lwz r9,20(r1) ffc09e30: 2f 89 00 00 cmpwi cr7,r9,0 ffc09e34: 41 9e 00 1c beq- cr7,ffc09e50 <== NEVER TAKEN ffc09e38: 80 09 00 1c lwz r0,28(r9) ffc09e3c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09e40: 41 9e 00 10 beq- cr7,ffc09e50 <== NEVER TAKEN ffc09e44: 38 61 00 08 addi r3,r1,8 ffc09e48: 7c 09 03 a6 mtctr r0 ffc09e4c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc09e50: 48 03 d8 3d bl ffc4768c <__errno> <== ALWAYS TAKEN ffc09e54: 38 00 00 14 li r0,20 ffc09e58: 48 00 00 6c b ffc09ec4 <== ALWAYS TAKEN /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ ffc09e5c: 81 21 00 24 lwz r9,36(r1) ffc09e60: 80 09 00 34 lwz r0,52(r9) ffc09e64: 2f 80 00 00 cmpwi cr7,r0,0 ffc09e68: 40 be 00 64 bne+ cr7,ffc09ecc <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc09e6c: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc09e70: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc09e74: 41 9e 00 1c beq- cr7,ffc09e90 <== NOT EXECUTED ffc09e78: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc09e7c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09e80: 41 9e 00 10 beq- cr7,ffc09e90 <== NOT EXECUTED ffc09e84: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc09e88: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc09e8c: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc09e90: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc09e94: 41 9e 00 28 beq- cr7,ffc09ebc <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc09e98: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc09e9c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc09ea0: 41 9e 00 1c beq- cr7,ffc09ebc <== NOT EXECUTED ffc09ea4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc09ea8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09eac: 41 9e 00 10 beq- cr7,ffc09ebc <== NOT EXECUTED ffc09eb0: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc09eb4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc09eb8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc09ebc: 48 03 d7 d1 bl ffc4768c <__errno> <== NOT EXECUTED ffc09ec0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc09ec4: 90 03 00 00 stw r0,0(r3) ffc09ec8: 48 00 00 6c b ffc09f34 <== ALWAYS TAKEN } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); ffc09ecc: 38 61 00 08 addi r3,r1,8 ffc09ed0: 7c 09 03 a6 mtctr r0 ffc09ed4: 7f c4 f3 78 mr r4,r30 ffc09ed8: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc09edc: 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 ); ffc09ee0: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc09ee4: 2f 89 00 00 cmpwi cr7,r9,0 ffc09ee8: 41 9e 00 1c beq- cr7,ffc09f04 <== NEVER TAKEN ffc09eec: 80 09 00 1c lwz r0,28(r9) ffc09ef0: 2f 80 00 00 cmpwi cr7,r0,0 ffc09ef4: 41 9e 00 10 beq- cr7,ffc09f04 <== NEVER TAKEN ffc09ef8: 7f c3 f3 78 mr r3,r30 ffc09efc: 7c 09 03 a6 mtctr r0 ffc09f00: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( free_parentloc ) ffc09f04: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09f08: 41 9e 00 30 beq- cr7,ffc09f38 rtems_filesystem_freenode( &parentloc ); ffc09f0c: 81 21 00 14 lwz r9,20(r1) ffc09f10: 2f 89 00 00 cmpwi cr7,r9,0 ffc09f14: 41 9e 00 24 beq- cr7,ffc09f38 <== NEVER TAKEN ffc09f18: 80 09 00 1c lwz r0,28(r9) ffc09f1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09f20: 41 9e 00 18 beq- cr7,ffc09f38 <== NEVER TAKEN ffc09f24: 38 61 00 08 addi r3,r1,8 ffc09f28: 7c 09 03 a6 mtctr r0 ffc09f2c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc09f30: 48 00 00 08 b ffc09f38 <== ALWAYS TAKEN ffc09f34: 3b a0 ff ff li r29,-1 return result; } ffc09f38: 80 01 00 4c lwz r0,76(r1) ffc09f3c: 7f a3 eb 78 mr r3,r29 ffc09f40: 83 c1 00 40 lwz r30,64(r1) ffc09f44: 7c 08 03 a6 mtlr r0 ffc09f48: 83 a1 00 3c lwz r29,60(r1) ffc09f4c: 83 e1 00 44 lwz r31,68(r1) ffc09f50: 38 21 00 48 addi r1,r1,72 ffc09f54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1015c : uint32_t rtems_assoc_local_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc1015c: 94 21 ff f8 stwu r1,-8(r1) ffc10160: 7c 08 02 a6 mflr r0 ffc10164: 90 01 00 0c stw r0,12(r1) const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_remote(ap, remote_value); ffc10168: 48 00 00 25 bl ffc1018c <== ALWAYS TAKEN if (nap) ffc1016c: 7c 69 1b 79 mr. r9,r3 ffc10170: 38 60 00 00 li r3,0 ffc10174: 41 82 00 08 beq- ffc1017c return nap->local_value; ffc10178: 80 69 00 04 lwz r3,4(r9) return 0; } ffc1017c: 80 01 00 0c lwz r0,12(r1) ffc10180: 38 21 00 08 addi r1,r1,8 ffc10184: 7c 08 03 a6 mtlr r0 ffc10188: 4e 80 00 20 blr <== ALWAYS TAKEN ffc100d8 : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc100d8: 94 21 ff e0 stwu r1,-32(r1) ffc100dc: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc100e0: 90 01 00 24 stw r0,36(r1) ffc100e4: 93 61 00 0c stw r27,12(r1) ffc100e8: 7c 7b 1b 78 mr r27,r3 ffc100ec: 93 81 00 10 stw r28,16(r1) ffc100f0: 7c 9c 23 78 mr r28,r4 ffc100f4: 93 a1 00 14 stw r29,20(r1) ffc100f8: 3b a0 00 00 li r29,0 ffc100fc: 93 c1 00 18 stw r30,24(r1) ffc10100: 3b c0 00 00 li r30,0 ffc10104: 93 e1 00 1c stw r31,28(r1) ffc10108: 3b e0 00 01 li r31,1 uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { if (b & remote_value) ffc1010c: 7f e0 e0 39 and. r0,r31,r28 <== ALWAYS TAKEN ffc10110: 41 a2 00 14 beq+ ffc10124 local_value |= rtems_assoc_local_by_remote(ap, b); ffc10114: 7f e4 fb 78 mr r4,r31 ffc10118: 7f 63 db 78 mr r3,r27 ffc1011c: 48 00 00 41 bl ffc1015c <== ALWAYS TAKEN ffc10120: 7f de 1b 78 or r30,r30,r3 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { ffc10124: 2f 9d 00 1f cmpwi cr7,r29,31 ffc10128: 57 ff 08 3c rlwinm r31,r31,1,0,30 ffc1012c: 3b bd 00 01 addi r29,r29,1 ffc10130: 40 9e ff dc bne+ cr7,ffc1010c if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } ffc10134: 80 01 00 24 lwz r0,36(r1) <== ALWAYS TAKEN ffc10138: 7f c3 f3 78 mr r3,r30 ffc1013c: 83 61 00 0c lwz r27,12(r1) <== ALWAYS TAKEN ffc10140: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc10144: 83 81 00 10 lwz r28,16(r1) ffc10148: 83 a1 00 14 lwz r29,20(r1) <== ALWAYS TAKEN ffc1014c: 83 c1 00 18 lwz r30,24(r1) <== ALWAYS TAKEN ffc10150: 83 e1 00 1c lwz r31,28(r1) ffc10154: 38 21 00 20 addi r1,r1,32 <== ALWAYS TAKEN ffc10158: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18fc0 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { ffc18fc0: 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; } ffc18fc4: 38 63 22 50 addi r3,r3,8784 <== NOT EXECUTED ffc18fc8: 4e 80 00 20 blr <== NOT EXECUTED ffc14d78 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc14d78: 94 21 ff f0 stwu r1,-16(r1) ffc14d7c: 7c 08 02 a6 mflr r0 ffc14d80: 93 e1 00 0c stw r31,12(r1) ffc14d84: 7c 9f 23 78 mr r31,r4 ffc14d88: 90 01 00 14 stw r0,20(r1) const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc14d8c: 48 00 00 31 bl ffc14dbc <== ALWAYS TAKEN if (nap) ffc14d90: 2c 03 00 00 cmpwi r3,0 ffc14d94: 41 82 00 0c beq- ffc14da0 <== NEVER TAKEN return nap->name; ffc14d98: 80 63 00 00 lwz r3,0(r3) ffc14d9c: 48 00 00 0c b ffc14da8 <== ALWAYS TAKEN return rtems_assoc_name_bad(local_value); ffc14da0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc14da4: 48 00 42 1d bl ffc18fc0 <== NOT EXECUTED } ffc14da8: 80 01 00 14 lwz r0,20(r1) ffc14dac: 83 e1 00 0c lwz r31,12(r1) ffc14db0: 38 21 00 10 addi r1,r1,16 ffc14db4: 7c 08 03 a6 mtlr r0 ffc14db8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11b88 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc11b88: 94 21 ff f0 stwu r1,-16(r1) ffc11b8c: 7c 08 02 a6 mflr r0 ffc11b90: 90 01 00 14 stw r0,20(r1) ffc11b94: 93 e1 00 0c stw r31,12(r1) ffc11b98: 7c 7f 1b 78 mr r31,r3 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc11b9c: 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 ) { ffc11ba0: 93 c1 00 08 stw r30,8(r1) ffc11ba4: 7c 9e 23 78 mr r30,r4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc11ba8: 2f 83 00 00 cmpwi cr7,r3,0 ffc11bac: 41 9e 00 1c beq- cr7,ffc11bc8 <== NEVER TAKEN ffc11bb0: 3c 80 ff c2 lis r4,-62 ffc11bb4: 38 84 e4 2a addi r4,r4,-7126 ffc11bb8: 48 00 12 31 bl ffc12de8 <== ALWAYS TAKEN default_ap = ap++; ffc11bbc: 7f e0 fb 78 mr r0,r31 uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc11bc0: 2f 83 00 00 cmpwi cr7,r3,0 ffc11bc4: 41 9e 00 18 beq- cr7,ffc11bdc <== NEVER TAKEN default_ap = ap++; ffc11bc8: 38 00 00 00 li r0,0 ffc11bcc: 48 00 00 14 b ffc11be0 <== ALWAYS TAKEN for ( ; ap->name; ap++) if (ap->local_value == local_value) ffc11bd0: 81 3f 00 04 lwz r9,4(r31) ffc11bd4: 7f 89 f0 00 cmpw cr7,r9,r30 ffc11bd8: 41 9e 00 18 beq- cr7,ffc11bf0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc11bdc: 3b ff 00 0c addi r31,r31,12 ffc11be0: 81 3f 00 00 lwz r9,0(r31) ffc11be4: 2f 89 00 00 cmpwi cr7,r9,0 ffc11be8: 40 9e ff e8 bne+ cr7,ffc11bd0 ffc11bec: 7c 1f 03 78 mr r31,r0 if (ap->local_value == local_value) return ap; return default_ap; } ffc11bf0: 80 01 00 14 lwz r0,20(r1) ffc11bf4: 7f e3 fb 78 mr r3,r31 ffc11bf8: 83 c1 00 08 lwz r30,8(r1) ffc11bfc: 7c 08 03 a6 mtlr r0 ffc11c00: 83 e1 00 0c lwz r31,12(r1) ffc11c04: 38 21 00 10 addi r1,r1,16 ffc11c08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1018c : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc1018c: 94 21 ff f0 stwu r1,-16(r1) ffc10190: 7c 08 02 a6 mflr r0 ffc10194: 90 01 00 14 stw r0,20(r1) ffc10198: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc1019c: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc101a0: 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 ) { ffc101a4: 93 c1 00 08 stw r30,8(r1) ffc101a8: 7c 9e 23 78 mr r30,r4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc101ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc101b0: 41 9e 00 1c beq- cr7,ffc101cc <== NEVER TAKEN ffc101b4: 3c 80 ff c2 lis r4,-62 ffc101b8: 38 84 e4 2a addi r4,r4,-7126 ffc101bc: 48 00 2c 2d bl ffc12de8 <== ALWAYS TAKEN default_ap = ap++; ffc101c0: 7f e0 fb 78 mr r0,r31 uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc101c4: 2f 83 00 00 cmpwi cr7,r3,0 ffc101c8: 41 9e 00 18 beq- cr7,ffc101e0 <== NEVER TAKEN default_ap = ap++; ffc101cc: 38 00 00 00 li r0,0 ffc101d0: 48 00 00 14 b ffc101e4 <== ALWAYS TAKEN for ( ; ap->name; ap++) if (ap->remote_value == remote_value) ffc101d4: 81 3f 00 08 lwz r9,8(r31) ffc101d8: 7f 89 f0 00 cmpw cr7,r9,r30 ffc101dc: 41 9e 00 18 beq- cr7,ffc101f4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc101e0: 3b ff 00 0c addi r31,r31,12 ffc101e4: 81 3f 00 00 lwz r9,0(r31) ffc101e8: 2f 89 00 00 cmpwi cr7,r9,0 ffc101ec: 40 9e ff e8 bne+ cr7,ffc101d4 ffc101f0: 7c 1f 03 78 mr r31,r0 if (ap->remote_value == remote_value) return ap; return default_ap; } ffc101f4: 80 01 00 14 lwz r0,20(r1) ffc101f8: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc101fc: 83 c1 00 08 lwz r30,8(r1) ffc10200: 7c 08 03 a6 mtlr r0 ffc10204: 83 e1 00 0c lwz r31,12(r1) ffc10208: 38 21 00 10 addi r1,r1,16 ffc1020c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1126c : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc1126c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc11270: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc11274: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc11278: 48 00 09 11 bl ffc11b88 <== NOT EXECUTED if (nap) ffc1127c: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc11280: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc11284: 41 82 00 08 beq- ffc1128c <== NOT EXECUTED return nap->remote_value; ffc11288: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED return 0; } ffc1128c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc11290: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc11294: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc11298: 4e 80 00 20 blr <== NOT EXECUTED ffc10788 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { ffc10788: 94 21 ff d0 stwu r1,-48(r1) ffc1078c: 7c 08 02 a6 mflr r0 ffc10790: 93 e1 00 2c stw r31,44(r1) Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) ffc10794: 7c 7f 1b 79 mr. r31,r3 ffc10798: 38 60 00 03 li r3,3 rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { ffc1079c: 93 81 00 20 stw r28,32(r1) ffc107a0: 7c dc 33 78 mr r28,r6 ffc107a4: 93 c1 00 28 stw r30,40(r1) ffc107a8: 7c 9e 23 78 mr r30,r4 ffc107ac: 90 01 00 34 stw r0,52(r1) ffc107b0: 93 61 00 1c stw r27,28(r1) ffc107b4: 93 a1 00 24 stw r29,36(r1) Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) ffc107b8: 41 82 00 9c beq- ffc10854 return RTEMS_INVALID_NAME; if ( !id ) ffc107bc: 2f 86 00 00 cmpwi cr7,r6,0 ffc107c0: 38 60 00 09 li r3,9 ffc107c4: 41 9e 00 90 beq- cr7,ffc10854 return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { ffc107c8: 70 80 00 10 andi. r0,r4,16 ffc107cc: 41 82 00 18 beq- ffc107e4 the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) ffc107d0: 2f 85 00 00 cmpwi cr7,r5,0 if ( !id ) return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; ffc107d4: 38 00 00 00 li r0,0 if ( maximum_waiters == 0 ) ffc107d8: 38 60 00 0a li r3,10 ffc107dc: 40 be 00 0c bne+ cr7,ffc107e8 ffc107e0: 48 00 00 74 b ffc10854 <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; ffc107e4: 38 00 00 01 li r0,1 ffc107e8: 3d 20 00 00 lis r9,0 ffc107ec: 90 01 00 08 stw r0,8(r1) ffc107f0: 81 69 27 70 lwz r11,10096(r9) the_attributes.maximum_count = maximum_waiters; ffc107f4: 90 a1 00 0c stw r5,12(r1) ffc107f8: 38 0b 00 01 addi r0,r11,1 ffc107fc: 90 09 27 70 stw r0,10096(r9) * This function allocates a barrier control block from * the inactive chain of free barrier control blocks. */ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void ) { return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information ); ffc10800: 3f 60 00 00 lis r27,0 ffc10804: 3b 7b 35 4c addi r27,r27,13644 ffc10808: 7f 63 db 78 mr r3,r27 ffc1080c: 4b ff 8a 85 bl ffc09290 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { ffc10810: 7c 7d 1b 79 mr. r29,r3 ffc10814: 40 a2 00 10 bne+ ffc10824 _Thread_Enable_dispatch(); ffc10818: 4b ff 9b 35 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1081c: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc10820: 48 00 00 34 b ffc10854 <== ALWAYS TAKEN } the_barrier->attribute_set = attribute_set; ffc10824: 93 dd 00 10 stw r30,16(r29) _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); ffc10828: 38 7d 00 14 addi r3,r29,20 ffc1082c: 38 81 00 08 addi r4,r1,8 ffc10830: 48 00 05 45 bl ffc10d74 <_CORE_barrier_Initialize> <== ALWAYS TAKEN ffc10834: 80 1d 00 08 lwz r0,8(r29) ffc10838: 81 7b 00 1c lwz r11,28(r27) ffc1083c: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc10840: 93 fd 00 0c stw r31,12(r29) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc10844: 7f ab 49 2e stwx r29,r11,r9 &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; ffc10848: 90 1c 00 00 stw r0,0(r28) _Thread_Enable_dispatch(); ffc1084c: 4b ff 9b 01 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc10850: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc10854: 80 01 00 34 lwz r0,52(r1) ffc10858: 83 61 00 1c lwz r27,28(r1) ffc1085c: 7c 08 03 a6 mtlr r0 ffc10860: 83 81 00 20 lwz r28,32(r1) ffc10864: 83 a1 00 24 lwz r29,36(r1) ffc10868: 83 c1 00 28 lwz r30,40(r1) ffc1086c: 83 e1 00 2c lwz r31,44(r1) ffc10870: 38 21 00 30 addi r1,r1,48 ffc10874: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10878 : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { ffc10878: 94 21 ff e0 stwu r1,-32(r1) ffc1087c: 7c 08 02 a6 mflr r0 ffc10880: 7c 64 1b 78 mr r4,r3 ffc10884: 93 c1 00 18 stw r30,24(r1) RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) ffc10888: 3f c0 00 00 lis r30,0 ffc1088c: 3b de 35 4c addi r30,r30,13644 ffc10890: 7f c3 f3 78 mr r3,r30 ffc10894: 90 01 00 24 stw r0,36(r1) ffc10898: 38 a1 00 08 addi r5,r1,8 ffc1089c: 93 e1 00 1c stw r31,28(r1) ffc108a0: 4b ff 8f 9d bl ffc0983c <_Objects_Get> <== ALWAYS TAKEN ffc108a4: 7c 7f 1b 78 mr r31,r3 Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { ffc108a8: 80 01 00 08 lwz r0,8(r1) ffc108ac: 38 60 00 04 li r3,4 ffc108b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc108b4: 40 9e 00 34 bne- cr7,ffc108e8 case OBJECTS_LOCAL: _CORE_barrier_Flush( ffc108b8: 38 a0 00 02 li r5,2 ffc108bc: 38 7f 00 14 addi r3,r31,20 ffc108c0: 38 80 00 00 li r4,0 ffc108c4: 4b ff a3 45 bl ffc0ac08 <_Thread_queue_Flush> <== ALWAYS TAKEN &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); ffc108c8: 7f c3 f3 78 mr r3,r30 ffc108cc: 7f e4 fb 78 mr r4,r31 ffc108d0: 4b ff 8a 6d bl ffc0933c <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); ffc108d4: 7f c3 f3 78 mr r3,r30 ffc108d8: 7f e4 fb 78 mr r4,r31 ffc108dc: 4b ff 8d a1 bl ffc0967c <_Objects_Free> <== ALWAYS TAKEN _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); ffc108e0: 4b ff 9a 6d bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc108e4: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc108e8: 80 01 00 24 lwz r0,36(r1) ffc108ec: 83 c1 00 18 lwz r30,24(r1) ffc108f0: 7c 08 03 a6 mtlr r0 ffc108f4: 83 e1 00 1c lwz r31,28(r1) ffc108f8: 38 21 00 20 addi r1,r1,32 ffc108fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c60 : rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { ffc08c60: 94 21 ff f8 stwu r1,-8(r1) ffc08c64: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc08c68: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { ffc08c6c: 90 01 00 0c stw r0,12(r1) ffc08c70: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc08c74: 3c 60 00 00 lis r3,0 rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { ffc08c78: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc08c7c: 38 63 2b c4 addi r3,r3,11204 ffc08c80: 7c 04 03 78 mr r4,r0 ffc08c84: 60 a5 ff ff ori r5,r5,65535 ffc08c88: 48 00 28 49 bl ffc0b4d0 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc08c8c: 80 01 00 0c lwz r0,12(r1) ffc08c90: 3d 20 ff c2 lis r9,-62 ffc08c94: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc08c98: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc08c9c: 39 29 2b 10 addi r9,r9,11024 ffc08ca0: 7c 69 18 2e lwzx r3,r9,r3 ffc08ca4: 38 21 00 08 addi r1,r1,8 ffc08ca8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10900 : rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { ffc10900: 94 21 ff e0 stwu r1,-32(r1) ffc10904: 7c 08 02 a6 mflr r0 ffc10908: 93 c1 00 18 stw r30,24(r1) Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) ffc1090c: 7c 9e 23 79 mr. r30,r4 rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { ffc10910: 90 01 00 24 stw r0,36(r1) Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) ffc10914: 38 00 00 09 li r0,9 rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { ffc10918: 93 e1 00 1c stw r31,28(r1) ffc1091c: 7c 7f 1b 78 mr r31,r3 Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) ffc10920: 41 82 00 44 beq- ffc10964 RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) ffc10924: 3c 60 00 00 lis r3,0 ffc10928: 38 63 35 4c addi r3,r3,13644 ffc1092c: 7f e4 fb 78 mr r4,r31 ffc10930: 38 a1 00 08 addi r5,r1,8 ffc10934: 4b ff 8f 09 bl ffc0983c <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { ffc10938: 81 21 00 08 lwz r9,8(r1) ffc1093c: 38 00 00 04 li r0,4 ffc10940: 2f 89 00 00 cmpwi cr7,r9,0 ffc10944: 40 9e 00 20 bne- cr7,ffc10964 case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); ffc10948: 7f e4 fb 78 mr r4,r31 ffc1094c: 38 a0 00 00 li r5,0 ffc10950: 38 63 00 14 addi r3,r3,20 ffc10954: 48 00 04 65 bl ffc10db8 <_CORE_barrier_Release> <== ALWAYS TAKEN ffc10958: 90 7e 00 00 stw r3,0(r30) _Thread_Enable_dispatch(); ffc1095c: 4b ff 99 f1 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc10960: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc10964: 7c 03 03 78 mr r3,r0 ffc10968: 80 01 00 24 lwz r0,36(r1) ffc1096c: 83 c1 00 18 lwz r30,24(r1) ffc10970: 7c 08 03 a6 mtlr r0 ffc10974: 83 e1 00 1c lwz r31,28(r1) ffc10978: 38 21 00 20 addi r1,r1,32 ffc1097c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10980 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { ffc10980: 94 21 ff e0 stwu r1,-32(r1) ffc10984: 7c 08 02 a6 mflr r0 ffc10988: 93 e1 00 1c stw r31,28(r1) ffc1098c: 7c 7f 1b 78 mr r31,r3 ffc10990: 3c 60 00 00 lis r3,0 ffc10994: 93 c1 00 18 stw r30,24(r1) ffc10998: 38 63 35 4c addi r3,r3,13644 ffc1099c: 7c 9e 23 78 mr r30,r4 ffc109a0: 38 a1 00 08 addi r5,r1,8 ffc109a4: 90 01 00 24 stw r0,36(r1) ffc109a8: 7f e4 fb 78 mr r4,r31 ffc109ac: 4b ff 8e 91 bl ffc0983c <_Objects_Get> <== ALWAYS TAKEN Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { ffc109b0: 80 01 00 08 lwz r0,8(r1) ffc109b4: 7c 69 1b 78 mr r9,r3 ffc109b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc109bc: 38 60 00 04 li r3,4 ffc109c0: 40 9e 00 30 bne- cr7,ffc109f0 case OBJECTS_LOCAL: _CORE_barrier_Wait( ffc109c4: 38 69 00 14 addi r3,r9,20 ffc109c8: 7f e4 fb 78 mr r4,r31 ffc109cc: 7f c6 f3 78 mr r6,r30 ffc109d0: 38 a0 00 01 li r5,1 ffc109d4: 38 e0 00 00 li r7,0 ffc109d8: 48 00 04 35 bl ffc10e0c <_CORE_barrier_Wait> <== ALWAYS TAKEN id, true, timeout, NULL ); _Thread_Enable_dispatch(); ffc109dc: 4b ff 99 71 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Barrier_Translate_core_barrier_return_code( ffc109e0: 3d 20 00 00 lis r9,0 ffc109e4: 81 29 27 b0 lwz r9,10160(r9) ffc109e8: 80 69 00 34 lwz r3,52(r9) ffc109ec: 48 00 11 89 bl ffc11b74 <_Barrier_Translate_core_barrier_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc109f0: 80 01 00 24 lwz r0,36(r1) ffc109f4: 83 c1 00 18 lwz r30,24(r1) ffc109f8: 7c 08 03 a6 mtlr r0 ffc109fc: 83 e1 00 1c lwz r31,28(r1) ffc10a00: 38 21 00 20 addi r1,r1,32 ffc10a04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03d44 : #include extern const char *bsp_boot_cmdline; const char *rtems_bsp_cmdline_get(void) { ffc03d44: 3d 20 00 00 lis r9,0 return bsp_boot_cmdline; } ffc03d48: 80 69 26 f8 lwz r3,9976(r9) ffc03d4c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03d50 : size_t length ) { const char *p; if ( !name ) ffc03d50: 2f 83 00 00 cmpwi cr7,r3,0 const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { ffc03d54: 94 21 ff f0 stwu r1,-16(r1) ffc03d58: 7c 08 02 a6 mflr r0 ffc03d5c: 93 c1 00 08 stw r30,8(r1) ffc03d60: 7c be 2b 78 mr r30,r5 ffc03d64: 93 e1 00 0c stw r31,12(r1) ffc03d68: 7c 9f 23 78 mr r31,r4 ffc03d6c: 90 01 00 14 stw r0,20(r1) const char *p; if ( !name ) ffc03d70: 41 be 00 7c beq+ cr7,ffc03dec return NULL; if ( !value ) ffc03d74: 2f 84 00 00 cmpwi cr7,r4,0 ffc03d78: 41 be 00 78 beq+ cr7,ffc03df0 return NULL; if ( !length ) ffc03d7c: 2f 85 00 00 cmpwi cr7,r5,0 ffc03d80: 41 be 00 6c beq+ cr7,ffc03dec return NULL; value[0] = '\0'; ffc03d84: 38 00 00 00 li r0,0 ffc03d88: 98 04 00 00 stb r0,0(r4) p = rtems_bsp_cmdline_get_param_raw( name ); ffc03d8c: 48 00 00 81 bl ffc03e0c <== ALWAYS TAKEN if ( !p ) ffc03d90: 2c 03 00 00 cmpwi r3,0 ffc03d94: 41 82 00 58 beq- ffc03dec if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) break; value[i++] = *p++; value[i] = '\0'; ffc03d98: 7f c9 03 a6 mtctr r30 value[0] = '\0'; p = rtems_bsp_cmdline_get_param_raw( name ); if ( !p ) ffc03d9c: 39 20 00 00 li r9,0 ffc03da0: 39 60 00 00 li r11,0 if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) break; value[i++] = *p++; value[i] = '\0'; ffc03da4: 39 40 00 00 li r10,0 ffc03da8: 48 00 00 28 b ffc03dd0 <== ALWAYS TAKEN int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i <== ALWAYS TAKEN quotes++; ffc03db0: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc03db4: 48 00 00 10 b ffc03dc4 <== NOT EXECUTED } else if ( ((quotes % 2) == 0) && *p == ' ' ) ffc03db8: 2f 80 00 20 cmpwi cr7,r0,32 ffc03dbc: 40 82 00 08 bne- ffc03dc4 <== NEVER TAKEN ffc03dc0: 41 9e 00 30 beq- cr7,ffc03df0 <== NEVER TAKEN break; value[i++] = *p++; ffc03dc4: 7c 1f 49 ae stbx r0,r31,r9 ffc03dc8: 39 29 00 01 addi r9,r9,1 value[i] = '\0'; ffc03dcc: 7d 5f 49 ae stbx r10,r31,r9 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i ffc03de4: 42 00 ff c8 bdnz+ ffc03dac <== ALWAYS TAKEN ffc03de8: 48 00 00 08 b ffc03df0 <== NOT EXECUTED ffc03dec: 3b e0 00 00 li r31,0 return NULL; copy_string( p, value, length ); return value; } ffc03df0: 80 01 00 14 lwz r0,20(r1) ffc03df4: 7f e3 fb 78 mr r3,r31 ffc03df8: 83 c1 00 08 lwz r30,8(r1) ffc03dfc: 7c 08 03 a6 mtlr r0 ffc03e00: 83 e1 00 0c lwz r31,12(r1) ffc03e04: 38 21 00 10 addi r1,r1,16 ffc03e08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03e0c : const char *name ) { const char *p; if ( !name ) ffc03e0c: 7c 64 1b 79 mr. r4,r3 extern const char *bsp_boot_cmdline; const char *rtems_bsp_cmdline_get_param_raw( const char *name ) { ffc03e10: 94 21 ff f8 stwu r1,-8(r1) ffc03e14: 7c 08 02 a6 mflr r0 ffc03e18: 90 01 00 0c stw r0,12(r1) const char *p; if ( !name ) ffc03e1c: 41 a2 00 1c beq+ ffc03e38 return NULL; if ( !bsp_boot_cmdline ) ffc03e20: 3d 20 00 00 lis r9,0 ffc03e24: 80 69 26 f8 lwz r3,9976(r9) ffc03e28: 2f 83 00 00 cmpwi cr7,r3,0 ffc03e2c: 41 9e 00 0c beq- cr7,ffc03e38 return NULL; p = strstr(bsp_boot_cmdline, name); ffc03e30: 48 00 f8 81 bl ffc136b0 <== ALWAYS TAKEN /* printf( "raw: %p (%s)\n", p, p ); */ return p; ffc03e34: 48 00 00 08 b ffc03e3c <== ALWAYS TAKEN ffc03e38: 38 60 00 00 li r3,0 } ffc03e3c: 80 01 00 0c lwz r0,12(r1) ffc03e40: 38 21 00 08 addi r1,r1,8 ffc03e44: 7c 08 03 a6 mtlr r0 ffc03e48: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03e4c : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { ffc03e4c: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc03e50: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc03e54: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc03e58: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc03e5c: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc03e60: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc03e64: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED ffc03e68: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); ffc03e6c: 4b ff fe e5 bl ffc03d50 <== NOT EXECUTED if ( !p ) ffc03e70: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc03e74: 41 a2 00 74 beq+ ffc03ee8 <== NOT EXECUTED return NULL; rhs = &p[strlen(name)]; ffc03e78: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc03e7c: 48 00 f1 41 bl ffc12fbc <== NOT EXECUTED if ( *rhs != '=' ) ffc03e80: 7c 1d 18 ae lbzx r0,r29,r3 <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; ffc03e84: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED if ( *rhs != '=' ) ffc03e88: 2f 80 00 3d cmpwi cr7,r0,61 <== NOT EXECUTED ffc03e8c: 40 be 00 5c bne+ cr7,ffc03ee8 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) ffc03e90: 88 1d 00 01 lbz r0,1(r29) <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; ffc03e94: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED if ( *rhs == '\"' ) rhs++; ffc03e98: 68 09 00 22 xori r9,r0,34 <== NOT EXECUTED ffc03e9c: 21 29 00 00 subfic r9,r9,0 <== NOT EXECUTED ffc03ea0: 7d 3d 01 94 addze r9,r29 <== NOT EXECUTED ffc03ea4: 7d 3d 4b 78 mr r29,r9 <== NOT EXECUTED ffc03ea8: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc03eac: 48 00 00 0c b ffc03eb8 <== NOT EXECUTED for ( d=value ; *rhs ; ) *d++ = *rhs++; ffc03eb0: 98 09 00 00 stb r0,0(r9) <== NOT EXECUTED ffc03eb4: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) ffc03eb8: 88 1d 00 00 lbz r0,0(r29) <== NOT EXECUTED *d++ = *rhs++; ffc03ebc: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) ffc03ec0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03ec4: 40 9e ff ec bne+ cr7,ffc03eb0 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) ffc03ec8: 89 69 ff ff lbz r11,-1(r9) <== NOT EXECUTED ffc03ecc: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc03ed0: 2f 8b 00 22 cmpwi cr7,r11,34 <== NOT EXECUTED ffc03ed4: 40 be 00 08 bne+ cr7,ffc03edc <== NOT EXECUTED ffc03ed8: 7c 09 03 78 mr r9,r0 <== NOT EXECUTED d--; *d = '\0'; ffc03edc: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc03ee0: 98 09 00 00 stb r0,0(r9) <== NOT EXECUTED return value; ffc03ee4: 48 00 00 08 b ffc03eec <== NOT EXECUTED ffc03ee8: 3b e0 00 00 li r31,0 <== NOT EXECUTED } ffc03eec: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc03ef0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03ef4: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc03ef8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03efc: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc03f00: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc03f04: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc03f08: 4e 80 00 20 blr <== NOT EXECUTED ffc09a34 : uint32_t api, uint32_t class, uint32_t node, uint32_t index ) { ffc09a34: 54 84 d8 08 rlwinm r4,r4,27,0,4 ffc09a38: 54 63 c0 0e rlwinm r3,r3,24,0,7 ffc09a3c: 7c 83 1b 78 or r3,r4,r3 ffc09a40: 7c 63 33 78 or r3,r3,r6 ffc09a44: 54 a5 80 1e rlwinm r5,r5,16,0,15 return _Objects_Build_id( api, class, node, index ); } ffc09a48: 7c 63 2b 78 or r3,r3,r5 ffc09a4c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09a50 : char C1, char C2, char C3, char C4 ) { ffc09a50: 54 84 80 1e rlwinm r4,r4,16,0,15 ffc09a54: 54 63 c0 0e rlwinm r3,r3,24,0,7 ffc09a58: 7c 83 1b 78 or r3,r4,r3 ffc09a5c: 54 a5 40 2e rlwinm r5,r5,8,0,23 ffc09a60: 7c 63 2b 78 or r3,r3,r5 return _Objects_Build_name( C1, C2, C3, C4 ); } ffc09a64: 7c 63 33 78 or r3,r3,r6 ffc09a68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ca30 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { ffc0ca30: 94 21 ff f0 stwu r1,-16(r1) ffc0ca34: 7c 08 02 a6 mflr r0 ffc0ca38: 93 e1 00 0c stw r31,12(r1) if ( !time_buffer ) ffc0ca3c: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { ffc0ca40: 90 01 00 14 stw r0,20(r1) ffc0ca44: 7c 60 1b 78 mr r0,r3 if ( !time_buffer ) ffc0ca48: 38 60 00 09 li r3,9 ffc0ca4c: 41 82 00 68 beq- ffc0cab4 return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) ffc0ca50: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ca54: 40 be 00 10 bne+ cr7,ffc0ca64 return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); ffc0ca58: 7f e3 fb 78 mr r3,r31 ffc0ca5c: 48 00 00 c5 bl ffc0cb20 <== ALWAYS TAKEN ffc0ca60: 48 00 00 54 b ffc0cab4 <== ALWAYS TAKEN if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) ffc0ca64: 2f 80 00 01 cmpwi cr7,r0,1 ffc0ca68: 40 be 00 10 bne+ cr7,ffc0ca78 return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); ffc0ca6c: 7f e3 fb 78 mr r3,r31 ffc0ca70: 48 00 00 59 bl ffc0cac8 <== ALWAYS TAKEN ffc0ca74: 48 00 00 40 b ffc0cab4 <== ALWAYS TAKEN if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { ffc0ca78: 2f 80 00 02 cmpwi cr7,r0,2 ffc0ca7c: 40 be 00 0c bne+ cr7,ffc0ca88 rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); ffc0ca80: 48 00 00 95 bl ffc0cb14 <== ALWAYS TAKEN ffc0ca84: 48 00 00 10 b ffc0ca94 <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { ffc0ca88: 2f 80 00 03 cmpwi cr7,r0,3 ffc0ca8c: 40 be 00 14 bne+ cr7,ffc0caa0 rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); ffc0ca90: 48 00 00 6d bl ffc0cafc <== ALWAYS TAKEN ffc0ca94: 90 7f 00 00 stw r3,0(r31) ffc0ca98: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc0ca9c: 48 00 00 18 b ffc0cab4 <== ALWAYS TAKEN } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) ffc0caa0: 2f 80 00 04 cmpwi cr7,r0,4 ffc0caa4: 38 60 00 0a li r3,10 ffc0caa8: 40 be 00 0c bne+ cr7,ffc0cab4 return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); ffc0caac: 7f e3 fb 78 mr r3,r31 ffc0cab0: 48 00 01 4d bl ffc0cbfc <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; } ffc0cab4: 80 01 00 14 lwz r0,20(r1) ffc0cab8: 83 e1 00 0c lwz r31,12(r1) ffc0cabc: 38 21 00 10 addi r1,r1,16 ffc0cac0: 7c 08 03 a6 mtlr r0 ffc0cac4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c68 : rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) ffc08c68: 7c 69 1b 79 mr. r9,r3 ffc08c6c: 38 60 00 09 li r3,9 ffc08c70: 4d 82 00 20 beqlr return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) ffc08c74: 3d 60 00 00 lis r11,0 ffc08c78: 88 0b 28 44 lbz r0,10308(r11) ffc08c7c: 38 60 00 0b li r3,11 ffc08c80: 2f 80 00 00 cmpwi cr7,r0,0 ffc08c84: 4d 9e 00 20 beqlr cr7 return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); ffc08c88: 3d 60 00 00 lis r11,0 ffc08c8c: 80 0b 28 5c lwz r0,10332(r11) ffc08c90: 38 60 00 00 li r3,0 ffc08c94: 90 09 00 00 stw r0,0(r9) return RTEMS_SUCCESSFUL; } ffc08c98: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07464 : #include #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { ffc07464: 3d 20 00 00 lis r9,0 ffc07468: 80 09 20 ac lwz r0,8364(r9) ffc0746c: 3c 60 00 0f lis r3,15 ffc07470: 60 63 42 40 ori r3,r3,16960 return TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); } ffc07474: 7c 63 03 96 divwu r3,r3,r0 ffc07478: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0747c : #include #include rtems_interval rtems_clock_get_ticks_since_boot(void) { return _Watchdog_Ticks_since_boot; ffc0747c: 3d 20 00 00 lis r9,0 ffc07480: 80 69 27 c8 lwz r3,10184(r9) } ffc07484: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cc0 : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { ffc08cc0: 94 21 ff b0 stwu r1,-80(r1) ffc08cc4: 7c 08 02 a6 mflr r0 ffc08cc8: 93 e1 00 4c stw r31,76(r1) rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) ffc08ccc: 7c 7f 1b 79 mr. r31,r3 ffc08cd0: 38 60 00 09 li r3,9 #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { ffc08cd4: 90 01 00 54 stw r0,84(r1) ffc08cd8: 93 c1 00 48 stw r30,72(r1) rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) ffc08cdc: 41 82 00 a8 beq- ffc08d84 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) ffc08ce0: 3d 20 00 00 lis r9,0 ffc08ce4: 88 09 28 44 lbz r0,10308(r9) ffc08ce8: 38 60 00 0b li r3,11 ffc08cec: 2f 80 00 00 cmpwi cr7,r0,0 ffc08cf0: 41 be 00 94 beq+ cr7,ffc08d84 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08cf4: 7f c0 00 a6 mfmsr r30 ffc08cf8: 7c 10 42 a6 mfsprg r0,0 ffc08cfc: 7f c0 00 78 andc r0,r30,r0 ffc08d00: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc08d04: 38 61 00 10 addi r3,r1,16 ffc08d08: 48 00 1e ad bl ffc0abb4 <_TOD_Get> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc08d0c: 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; ffc08d10: 81 21 00 14 lwz r9,20(r1) ffc08d14: 38 00 03 e8 li r0,1000 /* Obtain the current time */ _TOD_Get_timeval( &now ); /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); ffc08d18: 38 61 00 08 addi r3,r1,8 ffc08d1c: 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; ffc08d20: 81 21 00 10 lwz r9,16(r1) ffc08d24: 91 21 00 08 stw r9,8(r1) ffc08d28: 38 81 00 18 addi r4,r1,24 time->tv_usec = useconds; ffc08d2c: 90 01 00 0c stw r0,12(r1) ffc08d30: 48 00 bd 4d bl ffc14a7c <== ALWAYS TAKEN tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / ffc08d34: 38 60 00 00 li r3,0 /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; ffc08d38: 81 61 00 28 lwz r11,40(r1) /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; ffc08d3c: 81 21 00 2c lwz r9,44(r1) tmbuf->month = time.tm_mon + 1; ffc08d40: 38 0b 00 01 addi r0,r11,1 ffc08d44: 90 1f 00 04 stw r0,4(r31) /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; ffc08d48: 39 29 07 6c addi r9,r9,1900 tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; ffc08d4c: 80 01 00 24 lwz r0,36(r1) /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; ffc08d50: 91 3f 00 00 stw r9,0(r31) tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec / ffc08d54: 3d 20 00 00 lis r9,0 gmtime_r( &now.tv_sec, &time ); /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; ffc08d58: 90 1f 00 08 stw r0,8(r31) tmbuf->hour = time.tm_hour; ffc08d5c: 80 01 00 20 lwz r0,32(r1) ffc08d60: 90 1f 00 0c stw r0,12(r31) tmbuf->minute = time.tm_min; ffc08d64: 80 01 00 1c lwz r0,28(r1) ffc08d68: 90 1f 00 10 stw r0,16(r31) tmbuf->second = time.tm_sec; ffc08d6c: 80 01 00 18 lwz r0,24(r1) ffc08d70: 90 1f 00 14 stw r0,20(r31) tmbuf->ticks = now.tv_usec / ffc08d74: 80 09 20 cc lwz r0,8396(r9) ffc08d78: 81 21 00 0c lwz r9,12(r1) ffc08d7c: 7c 09 03 96 divwu r0,r9,r0 ffc08d80: 90 1f 00 18 stw r0,24(r31) rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } ffc08d84: 80 01 00 54 lwz r0,84(r1) ffc08d88: 83 c1 00 48 lwz r30,72(r1) ffc08d8c: 7c 08 03 a6 mtlr r0 ffc08d90: 83 e1 00 4c lwz r31,76(r1) ffc08d94: 38 21 00 50 addi r1,r1,80 ffc08d98: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cbfc : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { ffc0cbfc: 94 21 ff e0 stwu r1,-32(r1) ffc0cc00: 7c 08 02 a6 mflr r0 ffc0cc04: 93 e1 00 1c stw r31,28(r1) if ( !time ) ffc0cc08: 7c 7f 1b 79 mr. r31,r3 ffc0cc0c: 38 60 00 09 li r3,9 #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { ffc0cc10: 90 01 00 24 stw r0,36(r1) ffc0cc14: 93 c1 00 18 stw r30,24(r1) if ( !time ) ffc0cc18: 41 82 00 50 beq- ffc0cc68 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) ffc0cc1c: 3d 20 00 00 lis r9,0 ffc0cc20: 88 09 36 20 lbz r0,13856(r9) ffc0cc24: 38 60 00 0b li r3,11 ffc0cc28: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cc2c: 41 be 00 3c beq+ cr7,ffc0cc68 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0cc30: 7f c0 00 a6 mfmsr r30 ffc0cc34: 7c 10 42 a6 mfsprg r0,0 ffc0cc38: 7f c0 00 78 andc r0,r30,r0 ffc0cc3c: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc0cc40: 38 61 00 08 addi r3,r1,8 ffc0cc44: 48 00 19 91 bl ffc0e5d4 <_TOD_Get> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0cc48: 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; ffc0cc4c: 81 21 00 0c lwz r9,12(r1) ffc0cc50: 38 00 03 e8 li r0,1000 ffc0cc54: 38 60 00 00 li r3,0 ffc0cc58: 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; ffc0cc5c: 81 21 00 08 lwz r9,8(r1) ffc0cc60: 91 3f 00 00 stw r9,0(r31) time->tv_usec = useconds; ffc0cc64: 90 1f 00 04 stw r0,4(r31) return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } ffc0cc68: 80 01 00 24 lwz r0,36(r1) ffc0cc6c: 83 c1 00 18 lwz r30,24(r1) ffc0cc70: 7c 08 03 a6 mtlr r0 ffc0cc74: 83 e1 00 1c lwz r31,28(r1) ffc0cc78: 38 21 00 20 addi r1,r1,32 ffc0cc7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2df70 : */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) ffc2df70: 2f 83 00 00 cmpwi cr7,r3,0 * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { ffc2df74: 7c 08 02 a6 mflr r0 ffc2df78: 94 21 ff f8 stwu r1,-8(r1) ffc2df7c: 90 01 00 0c stw r0,12(r1) if ( !uptime ) ffc2df80: 38 00 00 09 li r0,9 ffc2df84: 41 9e 00 0c beq- cr7,ffc2df90 return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); ffc2df88: 48 00 13 29 bl ffc2f2b0 <_TOD_Get_uptime_as_timespec> <== ALWAYS TAKEN ffc2df8c: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc2df90: 7c 03 03 78 mr r3,r0 ffc2df94: 80 01 00 0c lwz r0,12(r1) ffc2df98: 38 21 00 08 addi r1,r1,8 ffc2df9c: 7c 08 03 a6 mtlr r0 ffc2dfa0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08db8 : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { ffc08db8: 94 21 ff e0 stwu r1,-32(r1) ffc08dbc: 7c 08 02 a6 mflr r0 ffc08dc0: 93 e1 00 1c stw r31,28(r1) struct timespec newtime; if ( !time_buffer ) ffc08dc4: 7c 7f 1b 79 mr. r31,r3 */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { ffc08dc8: 90 01 00 24 stw r0,36(r1) struct timespec newtime; if ( !time_buffer ) ffc08dcc: 38 00 00 09 li r0,9 ffc08dd0: 41 82 00 58 beq- ffc08e28 return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { ffc08dd4: 48 00 01 51 bl ffc08f24 <_TOD_Validate> <== ALWAYS TAKEN ffc08dd8: 38 00 00 14 li r0,20 ffc08ddc: 2f 83 00 00 cmpwi cr7,r3,0 ffc08de0: 41 be 00 48 beq+ cr7,ffc08e28 newtime.tv_sec = _TOD_To_seconds( time_buffer ); ffc08de4: 7f e3 fb 78 mr r3,r31 ffc08de8: 48 00 00 b1 bl ffc08e98 <_TOD_To_seconds> <== ALWAYS TAKEN newtime.tv_nsec = time_buffer->ticks * ffc08dec: 3d 20 00 00 lis r9,0 if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); ffc08df0: 90 61 00 08 stw r3,8(r1) newtime.tv_nsec = time_buffer->ticks * ffc08df4: 80 09 20 cc lwz r0,8396(r9) rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08df8: 3d 20 00 00 lis r9,0 ffc08dfc: 81 7f 00 18 lwz r11,24(r31) ffc08e00: 7c 0b 01 d6 mullw r0,r11,r0 ffc08e04: 81 69 28 3c lwz r11,10300(r9) ffc08e08: 39 6b 00 01 addi r11,r11,1 ffc08e0c: 1c 00 03 e8 mulli r0,r0,1000 ffc08e10: 91 69 28 3c stw r11,10300(r9) ffc08e14: 90 01 00 0c stw r0,12(r1) rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); ffc08e18: 38 61 00 08 addi r3,r1,8 ffc08e1c: 48 00 1f 19 bl ffc0ad34 <_TOD_Set> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08e20: 48 00 37 15 bl ffc0c534 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08e24: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } ffc08e28: 7c 03 03 78 mr r3,r0 ffc08e2c: 80 01 00 24 lwz r0,36(r1) ffc08e30: 83 e1 00 1c lwz r31,28(r1) ffc08e34: 38 21 00 20 addi r1,r1,32 ffc08e38: 7c 08 03 a6 mtlr r0 ffc08e3c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07488 : */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) ffc07488: 7c 60 1b 79 mr. r0,r3 ffc0748c: 38 60 00 09 li r3,9 ffc07490: 4d 82 00 20 beqlr return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; ffc07494: 3d 20 00 00 lis r9,0 ffc07498: 90 09 27 d8 stw r0,10200(r9) ffc0749c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc074a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc074a4 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { ffc074a4: 7c 08 02 a6 mflr r0 ffc074a8: 94 21 ff f8 stwu r1,-8(r1) ffc074ac: 90 01 00 0c stw r0,12(r1) _TOD_Tickle_ticks(); ffc074b0: 48 00 19 1d bl ffc08dcc <_TOD_Tickle_ticks> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); ffc074b4: 3c 60 00 00 lis r3,0 ffc074b8: 38 63 2d 48 addi r3,r3,11592 ffc074bc: 48 00 46 09 bl ffc0bac4 <_Watchdog_Tickle> <== ALWAYS TAKEN _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); ffc074c0: 48 00 3d 8d bl ffc0b24c <_Thread_Tickle_timeslice> <== ALWAYS TAKEN * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary ); ffc074c4: 3d 20 00 00 lis r9,0 ffc074c8: 88 09 27 c0 lbz r0,10176(r9) if ( _Thread_Is_context_switch_necessary() && ffc074cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc074d0: 41 9e 00 18 beq- cr7,ffc074e8 * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); ffc074d4: 3d 20 00 00 lis r9,0 ffc074d8: 80 09 27 70 lwz r0,10096(r9) ffc074dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc074e0: 40 be 00 08 bne+ cr7,ffc074e8 _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); ffc074e4: 48 00 2c 79 bl ffc0a15c <_Thread_Dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc074e8: 80 01 00 0c lwz r0,12(r1) ffc074ec: 38 60 00 00 li r3,0 ffc074f0: 38 21 00 08 addi r1,r1,8 ffc074f4: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc074f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04d84 : void rtems_cpu_usage_report( void ) { rtems_cpu_usage_report_with_plugin( NULL, printk_plugin ); ffc04d84: 3c 80 ff c0 lis r4,-64 ffc04d88: 38 84 68 30 addi r4,r4,26672 ffc04d8c: 38 60 00 00 li r3,0 ffc04d90: 4b ff fd 88 b ffc04b18 <== ALWAYS TAKEN ffc04b18 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc04b18: 94 21 ff 68 stwu r1,-152(r1) ffc04b1c: 7c 08 02 a6 mflr r0 ffc04b20: 90 01 00 9c stw r0,156(r1) Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) ffc04b24: 7c 80 23 79 mr. r0,r4 void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc04b28: 93 c1 00 90 stw r30,144(r1) ffc04b2c: 7c 7e 1b 78 mr r30,r3 ffc04b30: 91 c1 00 50 stw r14,80(r1) ffc04b34: 91 e1 00 54 stw r15,84(r1) ffc04b38: 92 01 00 58 stw r16,88(r1) ffc04b3c: 92 21 00 5c stw r17,92(r1) ffc04b40: 92 41 00 60 stw r18,96(r1) ffc04b44: 92 61 00 64 stw r19,100(r1) ffc04b48: 92 81 00 68 stw r20,104(r1) ffc04b4c: 92 a1 00 6c stw r21,108(r1) ffc04b50: 92 c1 00 70 stw r22,112(r1) ffc04b54: 92 e1 00 74 stw r23,116(r1) ffc04b58: 93 01 00 78 stw r24,120(r1) ffc04b5c: 93 21 00 7c stw r25,124(r1) ffc04b60: 93 41 00 80 stw r26,128(r1) ffc04b64: 93 61 00 84 stw r27,132(r1) ffc04b68: 93 81 00 88 stw r28,136(r1) ffc04b6c: 93 a1 00 8c stw r29,140(r1) ffc04b70: 93 e1 00 94 stw r31,148(r1) Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) ffc04b74: 90 01 00 48 stw r0,72(r1) ffc04b78: 41 82 01 b4 beq- ffc04d2c <== 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 ); ffc04b7c: 3a 21 00 10 addi r17,r1,16 ffc04b80: 7e 23 8b 78 mr r3,r17 ffc04b84: 48 00 60 d5 bl ffc0ac58 <_TOD_Get_uptime> <== ALWAYS TAKEN _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); ffc04b88: 3a 01 00 18 addi r16,r1,24 ffc04b8c: 3c 60 00 00 lis r3,0 ffc04b90: 38 63 28 ac addi r3,r3,10412 ffc04b94: 7e 24 8b 78 mr r4,r17 ffc04b98: 7e 05 83 78 mr r5,r16 ffc04b9c: 48 00 8c 4d bl ffc0d7e8 <_Timespec_Subtract> <== ALWAYS TAKEN } } } #endif (*print)( ffc04ba0: 80 01 00 48 lwz r0,72(r1) ffc04ba4: 3c 80 ff c2 lis r4,-62 ffc04ba8: 38 84 36 12 addi r4,r4,13842 ffc04bac: 7c 09 03 a6 mtctr r0 ffc04bb0: 7f c3 f3 78 mr r3,r30 ffc04bb4: 3f e0 00 01 lis r31,1 ffc04bb8: 3b ff aa 44 addi r31,r31,-21948 /* * 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 ) { ffc04bbc: 3e 40 00 00 lis r18,0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( ffc04bc0: 3e 60 ff c2 lis r19,-62 } } } #endif (*print)( ffc04bc4: 4c c6 31 82 crclr 4*cr1+eq ffc04bc8: 4e 80 04 21 bctrl <== ALWAYS TAKEN /* * Print the information */ (*print)( context, ffc04bcc: 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( ffc04bd0: 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 ); ffc04bd4: 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 ) { ffc04bd8: 3a 52 28 7c addi r18,r18,10364 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( ffc04bdc: 3a 73 37 84 addi r19,r19,14212 /* * Print the information */ (*print)( context, ffc04be0: 3a 94 37 97 addi r20,r20,14231 * 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( ffc04be4: 3a b5 28 84 addi r21,r21,10372 /*PAGE * * rtems_cpu_usage_report */ void rtems_cpu_usage_report_with_plugin( ffc04be8: 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 ); ffc04bec: 3b 61 00 20 addi r27,r1,32 ffc04bf0: 3a e1 00 0c addi r23,r1,12 ffc04bf4: 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 ] ) ffc04bf8: 81 3f 00 00 lwz r9,0(r31) ffc04bfc: 2f 89 00 00 cmpwi cr7,r9,0 ffc04c00: 41 9e 00 f4 beq- cr7,ffc04cf4 continue; information = _Objects_Information_table[ api_index ][ 1 ]; ffc04c04: 83 89 00 04 lwz r28,4(r9) if ( information ) { ffc04c08: 2f 9c 00 00 cmpwi cr7,r28,0 ffc04c0c: 41 9e 00 e8 beq- cr7,ffc04cf4 <== NEVER TAKEN ffc04c10: 3b a0 00 01 li r29,1 /* * Print the information */ (*print)( context, ffc04c14: 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( ffc04c18: 3b 21 00 28 addi r25,r1,40 ffc04c1c: 48 00 00 bc b ffc04cd8 <== ALWAYS TAKEN 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 ]; ffc04c20: 81 7c 00 1c lwz r11,28(r28) ffc04c24: 7d cb 48 2e lwzx r14,r11,r9 if ( !the_thread ) ffc04c28: 2f 8e 00 00 cmpwi cr7,r14,0 ffc04c2c: 41 9e 00 ac beq- cr7,ffc04cd8 <== NEVER TAKEN continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc04c30: 80 6e 00 08 lwz r3,8(r14) ffc04c34: 48 00 47 91 bl ffc093c4 <== ALWAYS TAKEN (*print)( ffc04c38: 80 01 00 48 lwz r0,72(r1) ffc04c3c: 7f c3 f3 78 mr r3,r30 ffc04c40: 80 ae 00 08 lwz r5,8(r14) ffc04c44: 7c 09 03 a6 mtctr r0 ffc04c48: 7e 64 9b 78 mr r4,r19 ffc04c4c: 7f 46 d3 78 mr r6,r26 ffc04c50: 4c c6 31 82 crclr 4*cr1+eq ffc04c54: 4e 80 04 21 bctrl <== ALWAYS TAKEN #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; ffc04c58: 81 2e 00 84 lwz r9,132(r14) ffc04c5c: 81 4e 00 88 lwz r10,136(r14) ffc04c60: 91 21 00 20 stw r9,32(r1) ffc04c64: 91 41 00 24 stw r10,36(r1) if ( _Thread_Executing->Object.id == the_thread->Object.id ) { ffc04c68: 81 32 00 00 lwz r9,0(r18) ffc04c6c: 80 0e 00 08 lwz r0,8(r14) ffc04c70: 81 29 00 08 lwz r9,8(r9) ffc04c74: 7f 89 00 00 cmpw cr7,r9,r0 ffc04c78: 40 be 00 20 bne+ cr7,ffc04c98 Timestamp_Control used; _Timestamp_Subtract( ffc04c7c: 7e a3 ab 78 mr r3,r21 ffc04c80: 7e 24 8b 78 mr r4,r17 ffc04c84: 7f 25 cb 78 mr r5,r25 ffc04c88: 48 00 8b 61 bl ffc0d7e8 <_Timespec_Subtract> <== ALWAYS TAKEN &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); ffc04c8c: 7f 63 db 78 mr r3,r27 ffc04c90: 7f 24 cb 78 mr r4,r25 ffc04c94: 48 00 8a 01 bl ffc0d694 <_Timespec_Add_to> <== ALWAYS TAKEN }; _Timestamp_Divide( &ran, &total, &ival, &fval ); ffc04c98: 7f 63 db 78 mr r3,r27 ffc04c9c: 7e 04 83 78 mr r4,r16 ffc04ca0: 7f 05 c3 78 mr r5,r24 ffc04ca4: 7e e6 bb 78 mr r6,r23 ffc04ca8: 48 00 8a 51 bl ffc0d6f8 <_Timespec_Divide> <== ALWAYS TAKEN /* * Print the information */ (*print)( context, ffc04cac: 80 c1 00 24 lwz r6,36(r1) ffc04cb0: 80 01 00 48 lwz r0,72(r1) ffc04cb4: 7f c3 f3 78 mr r3,r30 ffc04cb8: 7c c6 7b 96 divwu r6,r6,r15 ffc04cbc: 80 a1 00 20 lwz r5,32(r1) ffc04cc0: 80 e1 00 08 lwz r7,8(r1) ffc04cc4: 7c 09 03 a6 mtctr r0 ffc04cc8: 81 01 00 0c lwz r8,12(r1) ffc04ccc: 7e 84 a3 78 mr r4,r20 ffc04cd0: 4c c6 31 82 crclr 4*cr1+eq ffc04cd4: 4e 80 04 21 bctrl <== ALWAYS TAKEN 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++ ) { ffc04cd8: a0 1c 00 10 lhz r0,16(r28) the_thread = (Thread_Control *)information->local_table[ i ]; ffc04cdc: 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 ); ffc04ce0: 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++ ) { ffc04ce4: 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 ); ffc04ce8: 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++ ) { ffc04cec: 3b bd 00 01 addi r29,r29,1 ffc04cf0: 40 9d ff 30 ble+ cr7,ffc04c20 ffc04cf4: 3b ff 00 04 addi r31,r31,4 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; ffc04cf8: 7f 9f b0 00 cmpw cr7,r31,r22 ffc04cfc: 40 9e fe fc bne+ cr7,ffc04bf8 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( ffc04d00: 80 c1 00 1c lwz r6,28(r1) ffc04d04: 38 00 03 e8 li r0,1000 ffc04d08: 3c 80 ff c2 lis r4,-62 ffc04d0c: 80 a1 00 18 lwz r5,24(r1) ffc04d10: 7c c6 03 96 divwu r6,r6,r0 ffc04d14: 80 01 00 48 lwz r0,72(r1) ffc04d18: 7c 09 03 a6 mtctr r0 ffc04d1c: 7f c3 f3 78 mr r3,r30 ffc04d20: 38 84 37 af addi r4,r4,14255 ffc04d24: 4c c6 31 82 crclr 4*cr1+eq ffc04d28: 4e 80 04 21 bctrl <== ALWAYS TAKEN "-------------------------------------------------------------------------------\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset, total_units ); #endif } ffc04d2c: 80 01 00 9c lwz r0,156(r1) ffc04d30: 81 c1 00 50 lwz r14,80(r1) ffc04d34: 7c 08 03 a6 mtlr r0 ffc04d38: 81 e1 00 54 lwz r15,84(r1) ffc04d3c: 82 01 00 58 lwz r16,88(r1) ffc04d40: 82 21 00 5c lwz r17,92(r1) ffc04d44: 82 41 00 60 lwz r18,96(r1) ffc04d48: 82 61 00 64 lwz r19,100(r1) ffc04d4c: 82 81 00 68 lwz r20,104(r1) ffc04d50: 82 a1 00 6c lwz r21,108(r1) ffc04d54: 82 c1 00 70 lwz r22,112(r1) ffc04d58: 82 e1 00 74 lwz r23,116(r1) ffc04d5c: 83 01 00 78 lwz r24,120(r1) ffc04d60: 83 21 00 7c lwz r25,124(r1) ffc04d64: 83 41 00 80 lwz r26,128(r1) ffc04d68: 83 61 00 84 lwz r27,132(r1) ffc04d6c: 83 81 00 88 lwz r28,136(r1) ffc04d70: 83 a1 00 8c lwz r29,140(r1) ffc04d74: 83 c1 00 90 lwz r30,144(r1) ffc04d78: 83 e1 00 94 lwz r31,148(r1) ffc04d7c: 38 21 00 98 addi r1,r1,152 ffc04d80: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04da4 : /* * rtems_cpu_usage_reset */ void rtems_cpu_usage_reset( void ) { ffc04da4: 94 21 ff f0 stwu r1,-16(r1) ffc04da8: 7c 08 02 a6 mflr r0 ffc04dac: 93 e1 00 0c stw r31,12(r1) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); ffc04db0: 3f e0 00 00 lis r31,0 ffc04db4: 3b ff 28 ac addi r31,r31,10412 ffc04db8: 7f e3 fb 78 mr r3,r31 /* * rtems_cpu_usage_reset */ void rtems_cpu_usage_reset( void ) { ffc04dbc: 90 01 00 14 stw r0,20(r1) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); ffc04dc0: 48 00 5e 99 bl ffc0ac58 <_TOD_Get_uptime> <== ALWAYS TAKEN _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset; ffc04dc4: 3d 20 00 00 lis r9,0 ffc04dc8: 81 7f 00 00 lwz r11,0(r31) ffc04dcc: 39 29 28 84 addi r9,r9,10372 ffc04dd0: 81 9f 00 04 lwz r12,4(r31) #else CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot; #endif rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler); ffc04dd4: 3c 60 ff c0 lis r3,-64 */ void rtems_cpu_usage_reset( void ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset; ffc04dd8: 91 69 00 00 stw r11,0(r9) #else CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot; #endif rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler); ffc04ddc: 38 63 4d 94 addi r3,r3,19860 */ void rtems_cpu_usage_reset( void ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset; ffc04de0: 91 89 00 04 stw r12,4(r9) #else CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot; #endif rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler); ffc04de4: 48 00 64 a9 bl ffc0b28c <== ALWAYS TAKEN } ffc04de8: 80 01 00 14 lwz r0,20(r1) ffc04dec: 83 e1 00 0c lwz r31,12(r1) ffc04df0: 38 21 00 10 addi r1,r1,16 ffc04df4: 7c 08 03 a6 mtlr r0 ffc04df8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e4a0 : */ void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { _Debug_Level &= ~to_be_disabled; ffc0e4a0: 3d 20 00 00 lis r9,0 ffc0e4a4: 80 09 27 b4 lwz r0,10164(r9) ffc0e4a8: 7c 00 18 78 andc r0,r0,r3 ffc0e4ac: 90 09 27 b4 stw r0,10164(r9) } ffc0e4b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e48c : */ void rtems_debug_enable ( rtems_debug_control to_be_enabled ) { _Debug_Level |= to_be_enabled; ffc0e48c: 3d 20 00 00 lis r9,0 ffc0e490: 80 09 27 b4 lwz r0,10164(r9) ffc0e494: 7c 60 03 78 or r0,r3,r0 ffc0e498: 90 09 27 b4 stw r0,10164(r9) } ffc0e49c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e4b4 : * rtems_debug_is_enabled */ bool rtems_debug_is_enabled( rtems_debug_control level ) { ffc0e4b4: 3d 20 00 00 lis r9,0 ffc0e4b8: 80 09 27 b4 lwz r0,10164(r9) ffc0e4bc: 7c 63 00 38 and r3,r3,r0 return (_Debug_Level & level) ? true : false; } ffc0e4c0: 31 23 ff ff addic r9,r3,-1 ffc0e4c4: 7c 09 19 10 subfe r0,r9,r3 ffc0e4c8: 7c 03 03 78 mr r3,r0 ffc0e4cc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11224 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc11224: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc11228: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc1122c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc11230: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc11234: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc11238: 38 63 e4 4c addi r3,r3,-7092 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc1123c: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc11240: 48 00 00 2d bl ffc1126c <== NOT EXECUTED ffc11244: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc11248: 41 a2 00 0c beq+ ffc11254 <== NOT EXECUTED { errno = rc; ffc1124c: 48 00 09 c1 bl ffc11c0c <__errno> <== NOT EXECUTED ffc11250: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED return -1; } return -1; } ffc11254: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc11258: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1125c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc11260: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc11264: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc11268: 4e 80 00 20 blr <== NOT EXECUTED ffc0a2e0 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { ffc0a2e0: 94 21 ff 90 stwu r1,-112(r1) <== NOT EXECUTED ffc0a2e4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a2e8: 90 a1 00 18 stw r5,24(r1) <== NOT EXECUTED ffc0a2ec: 90 01 00 74 stw r0,116(r1) <== NOT EXECUTED ffc0a2f0: 90 c1 00 1c stw r6,28(r1) <== NOT EXECUTED ffc0a2f4: 90 e1 00 20 stw r7,32(r1) <== NOT EXECUTED ffc0a2f8: 91 01 00 24 stw r8,36(r1) <== NOT EXECUTED ffc0a2fc: 91 21 00 28 stw r9,40(r1) <== NOT EXECUTED ffc0a300: 91 41 00 2c stw r10,44(r1) <== NOT EXECUTED ffc0a304: 40 86 00 24 bne- cr1,ffc0a328 <== NOT EXECUTED ffc0a308: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0a30c: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0a310: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0a314: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0a318: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0a31c: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0a320: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0a324: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0a328: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc0a32c: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0a330: 38 00 00 00 li r0,0 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0a334: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0a338: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0a33c: 38 01 00 78 addi r0,r1,120 <== NOT EXECUTED ffc0a340: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc0a344: 38 01 00 10 addi r0,r1,16 <== NOT EXECUTED ffc0a348: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0a34c: 4b ff fd 0d bl ffc0a058 <== NOT EXECUTED va_end(arglist); return chars_written; } ffc0a350: 80 01 00 74 lwz r0,116(r1) <== NOT EXECUTED ffc0a354: 38 21 00 70 addi r1,r1,112 <== NOT EXECUTED ffc0a358: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a35c: 4e 80 00 20 blr <== NOT EXECUTED ffc074fc : rtems_event_set *event_out ) { RTEMS_API_Control *api; if ( !event_out ) ffc074fc: 7c c9 33 79 mr. r9,r6 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07500: 94 21 ff f0 stwu r1,-16(r1) ffc07504: 7c 08 02 a6 mflr r0 ffc07508: 93 e1 00 0c stw r31,12(r1) ffc0750c: 90 01 00 14 stw r0,20(r1) RTEMS_API_Control *api; if ( !event_out ) ffc07510: 38 00 00 09 li r0,9 ffc07514: 41 82 00 48 beq- ffc0755c return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; if ( _Event_sets_Is_empty( event_in ) ) { ffc07518: 2f 83 00 00 cmpwi cr7,r3,0 RTEMS_API_Control *api; if ( !event_out ) return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; ffc0751c: 3f e0 00 00 lis r31,0 ffc07520: 81 7f 27 b0 lwz r11,10160(r31) ffc07524: 81 6b 01 44 lwz r11,324(r11) if ( _Event_sets_Is_empty( event_in ) ) { ffc07528: 40 9e 00 14 bne- cr7,ffc0753c *event_out = api->pending_events; ffc0752c: 81 6b 00 00 lwz r11,0(r11) ffc07530: 38 00 00 00 li r0,0 ffc07534: 91 69 00 00 stw r11,0(r9) return RTEMS_SUCCESSFUL; ffc07538: 48 00 00 24 b ffc0755c <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0753c: 3d 20 00 00 lis r9,0 ffc07540: 81 69 27 70 lwz r11,10096(r9) ffc07544: 38 0b 00 01 addi r0,r11,1 ffc07548: 90 09 27 70 stw r0,10096(r9) } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); ffc0754c: 48 00 00 29 bl ffc07574 <_Event_Seize> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc07550: 48 00 2d fd bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return( _Thread_Executing->Wait.return_code ); ffc07554: 81 3f 27 b0 lwz r9,10160(r31) ffc07558: 80 09 00 34 lwz r0,52(r9) } ffc0755c: 7c 03 03 78 mr r3,r0 ffc07560: 80 01 00 14 lwz r0,20(r1) ffc07564: 83 e1 00 0c lwz r31,12(r1) ffc07568: 38 21 00 10 addi r1,r1,16 ffc0756c: 7c 08 03 a6 mtlr r0 ffc07570: 4e 80 00 20 blr <== ALWAYS TAKEN ffc076a0 : rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { ffc076a0: 94 21 ff e0 stwu r1,-32(r1) ffc076a4: 7c 08 02 a6 mflr r0 ffc076a8: 93 e1 00 1c stw r31,28(r1) ffc076ac: 7c 9f 23 78 mr r31,r4 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); ffc076b0: 38 81 00 08 addi r4,r1,8 rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { ffc076b4: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); ffc076b8: 48 00 2c b5 bl ffc0a36c <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc076bc: 38 00 00 04 li r0,4 ffc076c0: 81 21 00 08 lwz r9,8(r1) ffc076c4: 2f 89 00 00 cmpwi cr7,r9,0 ffc076c8: 40 9e 00 34 bne- cr7,ffc076fc case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; ffc076cc: 81 23 01 44 lwz r9,324(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc076d0: 7c 00 00 a6 mfmsr r0 ffc076d4: 7d 70 42 a6 mfsprg r11,0 ffc076d8: 7c 0b 58 78 andc r11,r0,r11 ffc076dc: 7d 60 01 24 mtmsr r11 ) { ISR_Level level; _ISR_Disable( level ); *the_event_set |= the_new_events; ffc076e0: 81 69 00 00 lwz r11,0(r9) ffc076e4: 7d 7f fb 78 or r31,r11,r31 ffc076e8: 93 e9 00 00 stw r31,0(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc076ec: 7c 00 01 24 mtmsr r0 _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); ffc076f0: 48 00 00 25 bl ffc07714 <_Event_Surrender> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc076f4: 48 00 2c 59 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc076f8: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc076fc: 7c 03 03 78 mr r3,r0 ffc07700: 80 01 00 24 lwz r0,36(r1) ffc07704: 83 e1 00 1c lwz r31,28(r1) ffc07708: 38 21 00 20 addi r1,r1,32 ffc0770c: 7c 08 03 a6 mtlr r0 ffc07710: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d0ac : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { ffc0d0ac: 94 21 ff e0 stwu r1,-32(r1) ffc0d0b0: 7c 08 02 a6 mflr r0 ffc0d0b4: 93 c1 00 18 stw r30,24(r1) Extension_Control *the_extension; if ( !id ) ffc0d0b8: 7c be 2b 79 mr. r30,r5 rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { ffc0d0bc: 93 81 00 10 stw r28,16(r1) ffc0d0c0: 7c 9c 23 78 mr r28,r4 ffc0d0c4: 93 e1 00 1c stw r31,28(r1) ffc0d0c8: 7c 7f 1b 78 mr r31,r3 Extension_Control *the_extension; if ( !id ) ffc0d0cc: 38 60 00 09 li r3,9 rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { ffc0d0d0: 90 01 00 24 stw r0,36(r1) ffc0d0d4: 93 61 00 0c stw r27,12(r1) ffc0d0d8: 93 a1 00 14 stw r29,20(r1) Extension_Control *the_extension; if ( !id ) ffc0d0dc: 41 82 00 ac beq- ffc0d188 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) ffc0d0e0: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0d0e4: 38 60 00 03 li r3,3 ffc0d0e8: 41 be 00 a0 beq+ cr7,ffc0d188 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0d0ec: 3d 20 00 00 lis r9,0 ffc0d0f0: 81 69 29 74 lwz r11,10612(r9) ffc0d0f4: 38 0b 00 01 addi r0,r11,1 ffc0d0f8: 90 09 29 74 stw r0,10612(r9) #ifndef __EXTENSION_MANAGER_inl #define __EXTENSION_MANAGER_inl RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); ffc0d0fc: 3f 60 00 00 lis r27,0 ffc0d100: 3b 7b 37 38 addi r27,r27,14136 ffc0d104: 7f 63 db 78 mr r3,r27 ffc0d108: 48 00 10 0d bl ffc0e114 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { ffc0d10c: 7c 7d 1b 79 mr. r29,r3 ffc0d110: 40 a2 00 10 bne+ ffc0d120 _Thread_Enable_dispatch(); ffc0d114: 48 00 21 75 bl ffc0f288 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d118: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc0d11c: 48 00 00 6c b ffc0d188 <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; ffc0d120: 81 5c 00 00 lwz r10,0(r28) _User_extensions_Add_set( extension ); ffc0d124: 38 7d 00 10 addi r3,r29,16 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; ffc0d128: 81 7c 00 04 lwz r11,4(r28) ffc0d12c: 81 3c 00 08 lwz r9,8(r28) ffc0d130: 80 1c 00 0c lwz r0,12(r28) ffc0d134: 91 5d 00 24 stw r10,36(r29) ffc0d138: 91 7d 00 28 stw r11,40(r29) ffc0d13c: 91 3d 00 2c stw r9,44(r29) ffc0d140: 90 1d 00 30 stw r0,48(r29) ffc0d144: 80 1c 00 1c lwz r0,28(r28) ffc0d148: 81 5c 00 10 lwz r10,16(r28) ffc0d14c: 81 7c 00 14 lwz r11,20(r28) ffc0d150: 81 3c 00 18 lwz r9,24(r28) ffc0d154: 91 5d 00 34 stw r10,52(r29) ffc0d158: 91 7d 00 38 stw r11,56(r29) ffc0d15c: 91 3d 00 3c stw r9,60(r29) ffc0d160: 90 1d 00 40 stw r0,64(r29) _User_extensions_Add_set( extension ); ffc0d164: 48 00 32 59 bl ffc103bc <_User_extensions_Add_set> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0d168: 80 1d 00 08 lwz r0,8(r29) ffc0d16c: 81 7b 00 1c lwz r11,28(r27) ffc0d170: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc0d174: 93 fd 00 0c stw r31,12(r29) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0d178: 7f ab 49 2e stwx r29,r11,r9 &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; ffc0d17c: 90 1e 00 00 stw r0,0(r30) _Thread_Enable_dispatch(); ffc0d180: 48 00 21 09 bl ffc0f288 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d184: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc0d188: 80 01 00 24 lwz r0,36(r1) ffc0d18c: 83 61 00 0c lwz r27,12(r1) ffc0d190: 7c 08 03 a6 mtlr r0 ffc0d194: 83 81 00 10 lwz r28,16(r1) ffc0d198: 83 a1 00 14 lwz r29,20(r1) ffc0d19c: 83 c1 00 18 lwz r30,24(r1) ffc0d1a0: 83 e1 00 1c lwz r31,28(r1) ffc0d1a4: 38 21 00 20 addi r1,r1,32 ffc0d1a8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d1ac : #include rtems_status_code rtems_extension_delete( rtems_id id ) { ffc0d1ac: 94 21 ff e0 stwu r1,-32(r1) ffc0d1b0: 7c 08 02 a6 mflr r0 ffc0d1b4: 7c 64 1b 78 mr r4,r3 ffc0d1b8: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) ffc0d1bc: 3f e0 00 00 lis r31,0 ffc0d1c0: 3b ff 37 38 addi r31,r31,14136 ffc0d1c4: 7f e3 fb 78 mr r3,r31 ffc0d1c8: 90 01 00 24 stw r0,36(r1) ffc0d1cc: 38 a1 00 08 addi r5,r1,8 ffc0d1d0: 93 c1 00 18 stw r30,24(r1) ffc0d1d4: 48 00 14 ed bl ffc0e6c0 <_Objects_Get> <== ALWAYS TAKEN ffc0d1d8: 7c 7e 1b 78 mr r30,r3 Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { ffc0d1dc: 80 01 00 08 lwz r0,8(r1) ffc0d1e0: 38 60 00 04 li r3,4 ffc0d1e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d1e8: 40 9e 00 2c bne- cr7,ffc0d214 case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); ffc0d1ec: 38 7e 00 10 addi r3,r30,16 ffc0d1f0: 48 00 33 31 bl ffc10520 <_User_extensions_Remove_set> <== ALWAYS TAKEN _Objects_Close( &_Extension_Information, &the_extension->Object ); ffc0d1f4: 7f e3 fb 78 mr r3,r31 ffc0d1f8: 7f c4 f3 78 mr r4,r30 ffc0d1fc: 48 00 0f c5 bl ffc0e1c0 <_Objects_Close> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); ffc0d200: 7f e3 fb 78 mr r3,r31 ffc0d204: 7f c4 f3 78 mr r4,r30 ffc0d208: 48 00 12 f9 bl ffc0e500 <_Objects_Free> <== ALWAYS TAKEN _Extension_Free( the_extension ); _Thread_Enable_dispatch(); ffc0d20c: 48 00 20 7d bl ffc0f288 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d210: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0d214: 80 01 00 24 lwz r0,36(r1) ffc0d218: 83 c1 00 18 lwz r30,24(r1) ffc0d21c: 7c 08 03 a6 mtlr r0 ffc0d220: 83 e1 00 1c lwz r31,28(r1) ffc0d224: 38 21 00 20 addi r1,r1,32 ffc0d228: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ab70 : rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { ffc0ab70: 94 21 ff f8 stwu r1,-8(r1) ffc0ab74: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0ab78: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { ffc0ab7c: 90 01 00 0c stw r0,12(r1) ffc0ab80: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0ab84: 3c 60 00 00 lis r3,0 rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { ffc0ab88: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0ab8c: 38 63 30 d8 addi r3,r3,12504 ffc0ab90: 7c 04 03 78 mr r4,r0 ffc0ab94: 60 a5 ff ff ori r5,r5,65535 ffc0ab98: 48 00 16 89 bl ffc0c220 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc0ab9c: 80 01 00 0c lwz r0,12(r1) ffc0aba0: 3d 20 ff c2 lis r9,-62 ffc0aba4: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0aba8: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc0abac: 39 29 44 6c addi r9,r9,17516 ffc0abb0: 7c 69 18 2e lwzx r3,r9,r3 ffc0abb4: 38 21 00 08 addi r1,r1,8 ffc0abb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc083ec : */ void rtems_fatal_error_occurred( uint32_t the_error ) { ffc083ec: 94 21 ff f8 stwu r1,-8(r1) ffc083f0: 7c 08 02 a6 mflr r0 ffc083f4: 7c 65 1b 78 mr r5,r3 _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, FALSE, the_error ); ffc083f8: 38 80 00 00 li r4,0 */ void rtems_fatal_error_occurred( uint32_t the_error ) { ffc083fc: 90 01 00 0c stw r0,12(r1) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, FALSE, the_error ); ffc08400: 38 60 00 01 li r3,1 ffc08404: 48 00 0e 2d bl ffc09230 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc03dfc : } int rtems_filesystem_dirname( const char *pathname ) { ffc03dfc: 94 21 ff f0 stwu r1,-16(r1) ffc03e00: 7c 08 02 a6 mflr r0 ffc03e04: 93 e1 00 0c stw r31,12(r1) ffc03e08: 7c 7f 1b 78 mr r31,r3 ffc03e0c: 90 01 00 14 stw r0,20(r1) int len = strlen( pathname ); ffc03e10: 48 00 f0 f9 bl ffc12f08 <== ALWAYS TAKEN ffc03e14: 38 03 00 01 addi r0,r3,1 ffc03e18: 7f ff 1a 14 add r31,r31,r3 ffc03e1c: 7c 09 03 a6 mtctr r0 while ( len ) { ffc03e20: 48 00 00 28 b ffc03e48 <== ALWAYS TAKEN len--; if ( rtems_filesystem_is_separator( pathname[len] ) ) ffc03e24: 88 1f ff ff lbz r0,-1(r31) ) { int len = strlen( pathname ); while ( len ) { len--; ffc03e28: 38 63 ff ff addi r3,r3,-1 if ( rtems_filesystem_is_separator( pathname[len] ) ) ffc03e2c: 3b ff ff ff addi r31,r31,-1 ffc03e30: 2c 80 00 2f cmpwi cr1,r0,47 ffc03e34: 2f 80 00 00 cmpwi cr7,r0,0 ffc03e38: 2f 00 00 5c cmpwi cr6,r0,92 ffc03e3c: 41 86 00 10 beq- cr1,ffc03e4c ffc03e40: 41 9a 00 0c beq- cr6,ffc03e4c <== NEVER TAKEN ffc03e44: 41 9e 00 08 beq- cr7,ffc03e4c <== NEVER TAKEN const char *pathname ) { int len = strlen( pathname ); while ( len ) { ffc03e48: 42 00 ff dc bdnz+ ffc03e24 <== ALWAYS TAKEN if ( rtems_filesystem_is_separator( pathname[len] ) ) break; } return len; } ffc03e4c: 80 01 00 14 lwz r0,20(r1) ffc03e50: 83 e1 00 0c lwz r31,12(r1) ffc03e54: 38 21 00 10 addi r1,r1,16 ffc03e58: 7c 08 03 a6 mtlr r0 ffc03e5c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03f74 : /* * Verify Input parameters. */ if ( !pathname ) ffc03f74: 2c 03 00 00 cmpwi r3,0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { ffc03f78: 94 21 ff f8 stwu r1,-8(r1) ffc03f7c: 7c 08 02 a6 mflr r0 ffc03f80: 90 01 00 0c stw r0,12(r1) /* * Verify Input parameters. */ if ( !pathname ) ffc03f84: 40 a2 00 10 bne+ ffc03f94 rtems_set_errno_and_return_minus_one( EFAULT ); ffc03f88: 48 00 dc 85 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc03f8c: 38 00 00 0e li r0,14 ffc03f90: 48 00 00 14 b ffc03fa4 <== ALWAYS TAKEN if ( !pathloc ) ffc03f94: 2f 86 00 00 cmpwi cr7,r6,0 <== ALWAYS TAKEN ffc03f98: 40 be 00 24 bne+ cr7,ffc03fbc <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc03f9c: 48 00 dc 71 bl ffc11c0c <__errno> <== NOT EXECUTED ffc03fa0: 38 00 00 05 li r0,5 <== NOT EXECUTED ffc03fa4: 90 03 00 00 stw r0,0(r3) return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } ffc03fa8: 38 60 ff ff li r3,-1 ffc03fac: 80 01 00 0c lwz r0,12(r1) ffc03fb0: 38 21 00 08 addi r1,r1,8 ffc03fb4: 7c 08 03 a6 mtlr r0 ffc03fb8: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc03fbc: 88 03 00 00 lbz r0,0(r3) ffc03fc0: 2f 80 00 2f cmpwi cr7,r0,47 ffc03fc4: 41 9e 00 14 beq- cr7,ffc03fd8 ffc03fc8: 2f 80 00 5c cmpwi cr7,r0,92 ffc03fcc: 41 9e 00 0c beq- cr7,ffc03fd8 <== NEVER TAKEN ffc03fd0: 2f 80 00 00 cmpwi cr7,r0,0 ffc03fd4: 40 9e 00 38 bne- cr7,ffc0400c <== ALWAYS TAKEN ffc03fd8: 3d 20 00 00 lis r9,0 ffc03fdc: 81 29 26 dc lwz r9,9948(r9) ffc03fe0: 38 00 00 01 li r0,1 ffc03fe4: 81 89 00 18 lwz r12,24(r9) <== ALWAYS TAKEN ffc03fe8: 81 09 00 1c lwz r8,28(r9) ffc03fec: 81 49 00 20 lwz r10,32(r9) ffc03ff0: 81 69 00 24 lwz r11,36(r9) <== ALWAYS TAKEN ffc03ff4: 91 86 00 00 stw r12,0(r6) ffc03ff8: 91 06 00 04 stw r8,4(r6) ffc03ffc: 91 46 00 08 stw r10,8(r6) ffc04000: 91 66 00 0c stw r11,12(r6) ffc04004: 81 29 00 28 lwz r9,40(r9) <== ALWAYS TAKEN ffc04008: 48 00 00 34 b ffc0403c <== ALWAYS TAKEN ffc0400c: 3d 20 00 00 lis r9,0 ffc04010: 81 29 26 dc lwz r9,9948(r9) ffc04014: 38 00 00 00 li r0,0 ffc04018: 81 89 00 04 lwz r12,4(r9) ffc0401c: 81 09 00 08 lwz r8,8(r9) ffc04020: 81 49 00 0c lwz r10,12(r9) ffc04024: 81 69 00 10 lwz r11,16(r9) ffc04028: 91 86 00 00 stw r12,0(r6) ffc0402c: 91 06 00 04 stw r8,4(r6) ffc04030: 91 46 00 08 stw r10,8(r6) ffc04034: 91 66 00 0c stw r11,12(r6) ffc04038: 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], ffc0403c: 7c 80 20 50 subf r4,r0,r4 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc04040: 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], ffc04044: 7c 63 02 14 add r3,r3,r0 pathnamelen - i, flags, pathloc, follow_link ); } ffc04048: 80 01 00 0c lwz r0,12(r1) ffc0404c: 38 21 00 08 addi r1,r1,8 ffc04050: 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], ffc04054: 4b ff fe 0c b ffc03e60 <== ALWAYS TAKEN ffc03e60 : /* * Verify Input parameters. */ if ( !pathname ) ffc03e60: 2f 83 00 00 cmpwi cr7,r3,0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { ffc03e64: 94 21 ff e8 stwu r1,-24(r1) ffc03e68: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc03e6c: 93 a1 00 0c stw r29,12(r1) ffc03e70: 7c fd 3b 78 mr r29,r7 <== ALWAYS TAKEN ffc03e74: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc03e78: 7c be 2b 78 mr r30,r5 ffc03e7c: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN ffc03e80: 7c df 33 78 mr r31,r6 <== ALWAYS TAKEN ffc03e84: 90 01 00 1c stw r0,28(r1) <== ALWAYS TAKEN ffc03e88: 93 81 00 08 stw r28,8(r1) /* * Verify Input parameters. */ if ( !pathname ) ffc03e8c: 40 be 00 10 bne+ cr7,ffc03e9c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); ffc03e90: 48 00 dd 7d bl ffc11c0c <__errno> <== NOT EXECUTED ffc03e94: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc03e98: 48 00 00 14 b ffc03eac <== NOT EXECUTED if ( !pathloc ) ffc03e9c: 2f 86 00 00 cmpwi cr7,r6,0 <== ALWAYS TAKEN ffc03ea0: 40 be 00 18 bne+ cr7,ffc03eb8 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc03ea4: 48 00 dd 69 bl ffc11c0c <__errno> <== NOT EXECUTED ffc03ea8: 38 00 00 05 li r0,5 <== NOT EXECUTED ffc03eac: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03eb0: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc03eb4: 48 00 00 9c b ffc03f50 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) ffc03eb8: 81 26 00 0c lwz r9,12(r6) ffc03ebc: 80 09 00 00 lwz r0,0(r9) ffc03ec0: 2f 80 00 00 cmpwi cr7,r0,0 ffc03ec4: 41 9e 00 6c beq- cr7,ffc03f30 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); ffc03ec8: 7c 09 03 a6 mtctr r0 ffc03ecc: 4e 80 04 21 bctrl <== ALWAYS TAKEN /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { ffc03ed0: 7c 7c 1b 79 mr. r28,r3 ffc03ed4: 40 82 00 7c bne- ffc03f50 ffc03ed8: 2f 9d 00 00 cmpwi cr7,r29,0 ffc03edc: 41 9e 00 74 beq- cr7,ffc03f50 if ( !pathloc->ops->node_type_h ){ ffc03ee0: 81 3f 00 0c lwz r9,12(r31) ffc03ee4: 80 09 00 10 lwz r0,16(r9) ffc03ee8: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc03eec: 41 9e 00 2c beq- cr7,ffc03f18 <== NEVER TAKEN rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); ffc03ef0: 7f e3 fb 78 mr r3,r31 ffc03ef4: 7c 09 03 a6 mtctr r0 ffc03ef8: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ffc03efc: 38 63 ff fd addi r3,r3,-3 <== ALWAYS TAKEN ffc03f00: 2b 83 00 01 cmplwi cr7,r3,1 ffc03f04: 41 bd 00 4c bgt+ cr7,ffc03f50 ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ ffc03f08: 81 3f 00 0c lwz r9,12(r31) ffc03f0c: 80 09 00 34 lwz r0,52(r9) ffc03f10: 2f 80 00 00 cmpwi cr7,r0,0 ffc03f14: 40 be 00 28 bne+ cr7,ffc03f3c <== ALWAYS TAKEN rtems_filesystem_freenode( pathloc ); ffc03f18: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03f1c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03f20: 41 9e 00 10 beq- cr7,ffc03f30 <== NOT EXECUTED ffc03f24: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03f28: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03f2c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc03f30: 48 00 dc dd bl ffc11c0c <__errno> <== NOT EXECUTED ffc03f34: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc03f38: 4b ff ff 74 b ffc03eac <== 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 ); ffc03f3c: 7f e3 fb 78 mr r3,r31 ffc03f40: 7c 09 03 a6 mtctr r0 ffc03f44: 7f c4 f3 78 mr r4,r30 ffc03f48: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc03f4c: 7c 7c 1b 78 mr r28,r3 } } return result; } ffc03f50: 80 01 00 1c lwz r0,28(r1) ffc03f54: 7f 83 e3 78 mr r3,r28 ffc03f58: 83 a1 00 0c lwz r29,12(r1) ffc03f5c: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc03f60: 83 81 00 08 lwz r28,8(r1) ffc03f64: 83 c1 00 10 lwz r30,16(r1) <== ALWAYS TAKEN ffc03f68: 83 e1 00 14 lwz r31,20(r1) ffc03f6c: 38 21 00 18 addi r1,r1,24 ffc03f70: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03c3c : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { ffc03c3c: 94 21 ff c8 stwu r1,-56(r1) <== ALWAYS TAKEN ffc03c40: 7c 08 02 a6 mflr r0 ffc03c44: 93 e1 00 34 stw r31,52(r1) /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; ffc03c48: 3f e0 00 00 lis r31,0 ffc03c4c: 81 3f 26 dc lwz r9,9948(r31) * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { ffc03c50: 90 01 00 3c stw r0,60(r1) <== ALWAYS TAKEN /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; ffc03c54: 38 00 00 12 li r0,18 ffc03c58: 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 ) { ffc03c5c: 93 a1 00 2c stw r29,44(r1) ffc03c60: 93 c1 00 30 stw r30,48(r1) <== ALWAYS TAKEN */ rtems_filesystem_umask = 022; init_fs_mount_table(); ffc03c64: 48 00 0a 51 bl ffc046b4 <== ALWAYS TAKEN /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) ffc03c68: 3d 20 00 00 lis r9,0 ffc03c6c: 80 09 26 98 lwz r0,9880(r9) rtems_fatal_error_occurred( 0xABCD0001 ); ffc03c70: 3c 60 ab cd lis r3,-21555 <== ALWAYS TAKEN ffc03c74: 60 63 00 01 ori r3,r3,1 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) ffc03c78: 2f 80 00 00 cmpwi cr7,r0,0 ffc03c7c: 41 9e 00 34 beq- cr7,ffc03cb0 <== NEVER TAKEN rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; ffc03c80: 3d 20 00 00 lis r9,0 ffc03c84: 81 29 26 94 lwz r9,9876(r9) <== ALWAYS TAKEN status = mount( ffc03c88: 38 61 00 08 addi r3,r1,8 ffc03c8c: 80 e9 00 0c lwz r7,12(r9) ffc03c90: 80 89 00 00 lwz r4,0(r9) ffc03c94: 80 a9 00 04 lwz r5,4(r9) ffc03c98: 80 c9 00 08 lwz r6,8(r9) ffc03c9c: 48 00 0a 3d bl ffc046d8 <== ALWAYS TAKEN &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) ffc03ca0: 2f 83 ff ff cmpwi cr7,r3,-1 <== ALWAYS TAKEN ffc03ca4: 40 be 00 10 bne+ cr7,ffc03cb4 <== ALWAYS TAKEN rtems_fatal_error_occurred( 0xABCD0002 ); ffc03ca8: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc03cac: 60 63 00 02 ori r3,r3,2 <== NOT EXECUTED ffc03cb0: 48 00 47 3d bl ffc083ec <== NOT EXECUTED * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03cb4: 81 61 00 08 lwz r11,8(r1) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03cb8: 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; ffc03cbc: 81 3f 26 dc lwz r9,9948(r31) * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03cc0: 3b de de 66 addi r30,r30,-8602 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03cc4: 80 eb 00 1c lwz r7,28(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03cc8: 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; ffc03ccc: 81 0b 00 20 lwz r8,32(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03cd0: 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; ffc03cd4: 81 4b 00 24 lwz r10,36(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03cd8: 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; ffc03cdc: 80 0b 00 28 lwz r0,40(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03ce0: 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; ffc03ce4: 90 e9 00 18 stw r7,24(r9) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03ce8: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc03cec: 38 e0 00 00 li r7,0 <== ALWAYS TAKEN * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc03cf0: 91 09 00 1c stw r8,28(r9) ffc03cf4: 91 49 00 20 stw r10,32(r9) ffc03cf8: 90 09 00 24 stw r0,36(r9) ffc03cfc: 80 0b 00 2c lwz r0,44(r11) <== ALWAYS TAKEN &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; ffc03d00: 39 60 00 00 li r11,0 ffc03d04: 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; ffc03d08: 90 09 00 28 stw r0,40(r9) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03d0c: 48 00 02 69 bl ffc03f74 <== ALWAYS TAKEN rtems_filesystem_root = loc; ffc03d10: 81 3f 26 dc lwz r9,9948(r31) ffc03d14: 81 41 00 10 lwz r10,16(r1) <== ALWAYS TAKEN /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03d18: 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; ffc03d1c: 81 61 00 14 lwz r11,20(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03d20: 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; ffc03d24: 80 01 00 18 lwz r0,24(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03d28: 38 a0 00 00 li r5,0 <== ALWAYS TAKEN * 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; ffc03d2c: 81 01 00 0c lwz r8,12(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03d30: 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; ffc03d34: 91 49 00 1c stw r10,28(r9) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03d38: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN * 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; ffc03d3c: 91 09 00 18 stw r8,24(r9) ffc03d40: 91 69 00 20 stw r11,32(r9) ffc03d44: 90 09 00 24 stw r0,36(r9) <== ALWAYS TAKEN ffc03d48: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc03d4c: 90 09 00 28 stw r0,40(r9) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc03d50: 48 00 02 25 bl ffc03f74 <== ALWAYS TAKEN rtems_filesystem_current = loc; ffc03d54: 80 01 00 18 lwz r0,24(r1) ffc03d58: 81 3f 26 dc lwz r9,9948(r31) <== ALWAYS TAKEN * * 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); ffc03d5c: 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; ffc03d60: 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); ffc03d64: 38 63 de 68 addi r3,r3,-8600 /* 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; ffc03d68: 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); ffc03d6c: 38 80 01 ff li r4,511 <== ALWAYS TAKEN /* 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; ffc03d70: 81 01 00 0c lwz r8,12(r1) <== ALWAYS TAKEN ffc03d74: 91 49 00 08 stw r10,8(r9) <== ALWAYS TAKEN ffc03d78: 91 09 00 04 stw r8,4(r9) ffc03d7c: 91 69 00 0c stw r11,12(r9) ffc03d80: 90 09 00 10 stw r0,16(r9) ffc03d84: 80 01 00 1c lwz r0,28(r1) ffc03d88: 90 09 00 14 stw r0,20(r9) <== ALWAYS TAKEN * * 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); ffc03d8c: 48 00 07 59 bl ffc044e4 <== ALWAYS TAKEN if ( status != 0 ) ffc03d90: 2f 83 00 00 cmpwi cr7,r3,0 ffc03d94: 41 be 00 10 beq+ cr7,ffc03da4 <== ALWAYS TAKEN rtems_fatal_error_occurred( 0xABCD0003 ); ffc03d98: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc03d9c: 60 63 00 03 ori r3,r3,3 <== NOT EXECUTED ffc03da0: 4b ff ff 10 b ffc03cb0 <== 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. */ } ffc03da4: 80 01 00 3c lwz r0,60(r1) ffc03da8: 83 a1 00 2c lwz r29,44(r1) <== ALWAYS TAKEN ffc03dac: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc03db0: 83 c1 00 30 lwz r30,48(r1) ffc03db4: 83 e1 00 34 lwz r31,52(r1) ffc03db8: 38 21 00 38 addi r1,r1,56 <== ALWAYS TAKEN ffc03dbc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c334 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ ffc0c334: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc0c338: 80 64 00 00 lwz r3,0(r4) <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } ffc0c33c: 7c 03 1a 78 xor r3,r0,r3 <== NOT EXECUTED ffc0c340: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc0c344: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED ffc0c348: 4e 80 00 20 blr <== NOT EXECUTED ffc03dc0 : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { ffc03dc0: 38 84 00 01 addi r4,r4,1 ffc03dc4: 7c 69 1b 78 mr r9,r3 ffc03dc8: 7c 89 03 a6 mtctr r4 ffc03dcc: 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 ) ) ffc03dd0: 48 00 00 08 b ffc03dd8 <== ALWAYS TAKEN { pathname++; pathnamelen--; stripped++; ffc03dd4: 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 ) ) ffc03dd8: 7c 09 18 ae lbzx r0,r9,r3 ffc03ddc: 2c 80 00 00 cmpwi cr1,r0,0 ffc03de0: 2f 80 00 5c cmpwi cr7,r0,92 ffc03de4: 2f 00 00 2f cmpwi cr6,r0,47 ffc03de8: 4d 86 00 20 beqlr cr1 <== NEVER TAKEN ffc03dec: 42 40 00 0c bdz- ffc03df8 <== NEVER TAKEN ffc03df0: 41 ba ff e4 beq- cr6,ffc03dd4 ffc03df4: 41 be ff e0 beq- cr7,ffc03dd4 <== NEVER TAKEN pathname++; pathnamelen--; stripped++; } return stripped; } ffc03df8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a968 : #endif #include const char *rtems_get_version_string(void) { ffc0a968: 3c 60 ff c2 lis r3,-62 return _RTEMS_version; } ffc0a96c: 38 63 3f 4c addi r3,r3,16204 ffc0a970: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08288 : /* * Run the API and BSPs predriver hook. */ _API_extensions_Run_predriver(); #endif } ffc08288: 4e 80 00 20 blr <== ALWAYS TAKEN ffc082dc : #endif Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; void rtems_initialize_data_structures(void) { ffc082dc: 94 21 ff f0 stwu r1,-16(r1) ffc082e0: 7c 08 02 a6 mflr r0 ffc082e4: 3d 20 00 00 lis r9,0 ffc082e8: 93 e1 00 0c stw r31,12(r1) ffc082ec: 3b e0 00 00 li r31,0 <== ALWAYS TAKEN ffc082f0: 90 01 00 14 stw r0,20(r1) ffc082f4: 93 e9 27 d4 stw r31,10196(r9) <== ALWAYS TAKEN #endif /* * Initialize any target architecture specific support as early as possible */ _CPU_Initialize(); ffc082f8: 48 01 3f c9 bl ffc1c2c0 <_CPU_Initialize> <== ALWAYS TAKEN /* * Do this as early as possible to ensure no debugging output * is even attempted to be printed. */ _Debug_Manager_initialization(); ffc082fc: 48 00 61 81 bl ffc0e47c <_Debug_Manager_initialization> <== ALWAYS TAKEN _API_extensions_Initialization(); ffc08300: 48 00 03 19 bl ffc08618 <_API_extensions_Initialization> <== ALWAYS TAKEN * This routine initializes the thread dispatching subsystem. */ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void ) { _Thread_Dispatch_disable_level = 1; ffc08304: 38 00 00 01 li r0,1 <== ALWAYS TAKEN ffc08308: 3d 20 00 00 lis r9,0 ffc0830c: 90 09 27 70 stw r0,10096(r9) /* * Before this is called, we are not allowed to allocate memory * from the Workspace because it is not initialized. */ _Workspace_Handler_initialization(); ffc08310: 48 00 39 31 bl ffc0bc40 <_Workspace_Handler_initialization> <== ALWAYS TAKEN _User_extensions_Handler_initialization(); ffc08314: 48 00 31 21 bl ffc0b434 <_User_extensions_Handler_initialization> <== ALWAYS TAKEN _ISR_Handler_initialization(); ffc08318: 48 00 0f 5d bl ffc09274 <_ISR_Handler_initialization> <== ALWAYS TAKEN /* * Initialize the internal support API and allocator Mutex */ _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; ffc0831c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc08320: 38 09 2c a0 addi r0,r9,11424 _API_Mutex_Initialization( 1 ); ffc08324: 38 60 00 01 li r3,1 _ISR_Handler_initialization(); /* * Initialize the internal support API and allocator Mutex */ _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; ffc08328: 3d 20 00 00 lis r9,0 ffc0832c: 90 09 2c 24 stw r0,11300(r9) <== ALWAYS TAKEN _API_Mutex_Initialization( 1 ); ffc08330: 48 00 04 d9 bl ffc08808 <_API_Mutex_Initialization> <== ALWAYS TAKEN _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); ffc08334: 3c 60 00 00 lis r3,0 ffc08338: 38 63 27 a8 addi r3,r3,10152 <== ALWAYS TAKEN ffc0833c: 48 00 03 ed bl ffc08728 <_API_Mutex_Allocate> <== ALWAYS TAKEN { int index; _Priority_Major_bit_map = 0; for ( index=0 ; index <16 ; index++ ) _Priority_Bit_map[ index ] = 0; ffc08340: 39 60 00 10 li r11,16 <== ALWAYS TAKEN ffc08344: 7d 69 03 a6 mtctr r11 RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { int index; _Priority_Major_bit_map = 0; ffc08348: 3d 20 00 00 lis r9,0 ffc0834c: 93 e9 27 a4 stw r31,10148(r9) ffc08350: 3d 20 00 00 lis r9,0 ffc08354: 39 29 2d a0 addi r9,r9,11680 for ( index=0 ; index <16 ; index++ ) _Priority_Bit_map[ index ] = 0; ffc08358: 38 00 00 00 li r0,0 ffc0835c: 90 09 00 00 stw r0,0(r9) ffc08360: 39 29 00 04 addi r9,r9,4 RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { int index; _Priority_Major_bit_map = 0; for ( index=0 ; index <16 ; index++ ) ffc08364: 42 00 ff f8 bdnz+ ffc0835c _Priority_Handler_initialization(); _Watchdog_Handler_initialization(); ffc08368: 48 00 36 61 bl ffc0b9c8 <_Watchdog_Handler_initialization> <== ALWAYS TAKEN _TOD_Handler_initialization(); ffc0836c: 48 00 0a 29 bl ffc08d94 <_TOD_Handler_initialization> <== ALWAYS TAKEN _Thread_Handler_initialization(); ffc08370: 48 00 23 0d bl ffc0a67c <_Thread_Handler_initialization> <== ALWAYS TAKEN _MPCI_Handler_initialization( RTEMS_TIMEOUT ); #endif /* MANAGERS */ _RTEMS_API_Initialize(); ffc08374: 48 00 02 4d bl ffc085c0 <_RTEMS_API_Initialize> <== ALWAYS TAKEN _Extension_Manager_initialization(); ffc08378: 48 00 00 31 bl ffc083a8 <_Extension_Manager_initialization> <== ALWAYS TAKEN _IO_Manager_initialization(); ffc0837c: 48 00 00 e9 bl ffc08464 <_IO_Manager_initialization> <== ALWAYS TAKEN #ifdef RTEMS_POSIX_API _POSIX_API_Initialize(); ffc08380: 48 00 01 e9 bl ffc08568 <_POSIX_API_Initialize> <== ALWAYS TAKEN ffc08384: 38 00 00 01 li r0,1 ffc08388: 3d 20 00 00 lis r9,0 ffc0838c: 90 09 27 d4 stw r0,10196(r9) * _Thread_Executing and _Thread_Heir are not set. * * At this point all API extensions are in place. After the call to * _Thread_Create_idle() _Thread_Executing and _Thread_Heir will be set. */ _Thread_Create_idle(); ffc08390: 48 00 1c 91 bl ffc0a020 <_Thread_Create_idle> <== ALWAYS TAKEN /* * Scheduling can properly occur now as long as we avoid dispatching. */ } ffc08394: 80 01 00 14 lwz r0,20(r1) ffc08398: 83 e1 00 0c lwz r31,12(r1) ffc0839c: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc083a0: 7c 08 03 a6 mtlr r0 ffc083a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc082b8 : _API_extensions_Run_predriver(); #endif } void rtems_initialize_device_drivers(void) { ffc082b8: 94 21 ff f8 stwu r1,-8(r1) ffc082bc: 7c 08 02 a6 mflr r0 ffc082c0: 90 01 00 0c stw r0,12(r1) * Initialize all the device drivers and initialize the MPCI layer. * * NOTE: The MPCI may be build upon a device driver. */ _IO_Initialize_all_drivers(); ffc082c4: 48 00 01 45 bl ffc08408 <_IO_Initialize_all_drivers> <== ALWAYS TAKEN /* * Run the APIs and BSPs postdriver hooks. * * The API extensions are supposed to create user initialization tasks. */ _API_extensions_Run_postdriver(); ffc082c8: 48 00 03 71 bl ffc08638 <_API_extensions_Run_postdriver> <== ALWAYS TAKEN } ffc082cc: 80 01 00 0c lwz r0,12(r1) ffc082d0: 38 21 00 08 addi r1,r1,8 ffc082d4: 7c 08 03 a6 mtlr r0 ffc082d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0828c : */ _API_extensions_Run_postdriver(); } void rtems_initialize_start_multitasking(void) { ffc0828c: 94 21 ff f8 stwu r1,-8(r1) ffc08290: 7c 08 02 a6 mflr r0 RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; ffc08294: 3d 20 00 00 lis r9,0 ffc08298: 90 01 00 0c stw r0,12(r1) ffc0829c: 38 00 00 02 li r0,2 ffc082a0: 90 09 27 d4 stw r0,10196(r9) _System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING ); _Thread_Start_multitasking(); ffc082a4: 48 00 2d b9 bl ffc0b05c <_Thread_Start_multitasking> <== ALWAYS TAKEN ****** APPLICATION RUNS HERE ****** ****** RETURNS WHEN SYSTEM IS SHUT DOWN ****** ******************************************************************* ******************************************************************* *******************************************************************/ } ffc082a8: 80 01 00 0c lwz r0,12(r1) ffc082ac: 38 21 00 08 addi r1,r1,8 ffc082b0: 7c 08 03 a6 mtlr r0 ffc082b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c28 : static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08c28: 7c 60 00 a6 mfmsr r3 ffc08c2c: 7c 10 42 a6 mfsprg r0,0 ffc08c30: 7c 60 00 78 andc r0,r3,r0 ffc08c34: 7c 00 01 24 mtmsr r0 rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); return previous_level; } ffc08c38: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c3c : return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc08c3c: 7c 60 01 24 mtmsr r3 void rtems_interrupt_enable( rtems_interrupt_level previous_level ) { _ISR_Enable( previous_level ); } ffc08c40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c44 : static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc08c44: 7c 00 00 a6 mfmsr r0 ffc08c48: 7c 60 01 24 mtmsr r3 ffc08c4c: 7c 00 01 24 mtmsr r0 void rtems_interrupt_flash( rtems_interrupt_level previous_level ) { _ISR_Flash( previous_level ); } ffc08c50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c54 : #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { return _ISR_Is_in_progress(); ffc08c54: 3d 20 00 00 lis r9,0 ffc08c58: 80 69 27 ec lwz r3,10220(r9) } ffc08c5c: 31 23 ff ff addic r9,r3,-1 ffc08c60: 7c 09 19 10 subfe r0,r9,r3 ffc08c64: 7c 03 03 78 mr r3,r0 ffc08c68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc085d4 : rtems_attribute rtems_interrupt_level_attribute( uint32_t level ) { return RTEMS_INTERRUPT_LEVEL(level); } ffc085d4: 54 63 07 fe clrlwi r3,r3,31 ffc085d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10b94 : rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10b94: 7c 08 02 a6 mflr r0 ffc10b98: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10b9c: 3d 20 00 00 lis r9,0 rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10ba0: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10ba4: 80 09 27 ec lwz r0,10220(r9) ffc10ba8: 7f 83 00 40 cmplw cr7,r3,r0 ffc10bac: 38 00 00 0a li r0,10 ffc10bb0: 40 9c 00 30 bge- cr7,ffc10be0 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; ffc10bb4: 3d 60 00 00 lis r11,0 ffc10bb8: 80 0b 27 f0 lwz r0,10224(r11) ffc10bbc: 1d 23 00 18 mulli r9,r3,24 ffc10bc0: 7d 20 4a 14 add r9,r0,r9 ffc10bc4: 81 29 00 08 lwz r9,8(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc10bc8: 38 00 00 00 li r0,0 ffc10bcc: 2f 89 00 00 cmpwi cr7,r9,0 ffc10bd0: 41 9e 00 10 beq- cr7,ffc10be0 ffc10bd4: 7d 29 03 a6 mtctr r9 ffc10bd8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc10bdc: 7c 60 1b 78 mr r0,r3 } ffc10be0: 7c 03 03 78 mr r3,r0 ffc10be4: 80 01 00 0c lwz r0,12(r1) ffc10be8: 38 21 00 08 addi r1,r1,8 ffc10bec: 7c 08 03 a6 mtlr r0 ffc10bf0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10bf4 : rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10bf4: 7c 08 02 a6 mflr r0 ffc10bf8: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10bfc: 3d 20 00 00 lis r9,0 rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10c00: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10c04: 80 09 27 ec lwz r0,10220(r9) ffc10c08: 7f 83 00 40 cmplw cr7,r3,r0 ffc10c0c: 38 00 00 0a li r0,10 ffc10c10: 40 9c 00 30 bge- cr7,ffc10c40 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; ffc10c14: 3d 60 00 00 lis r11,0 ffc10c18: 80 0b 27 f0 lwz r0,10224(r11) ffc10c1c: 1d 23 00 18 mulli r9,r3,24 ffc10c20: 7d 20 4a 14 add r9,r0,r9 ffc10c24: 81 29 00 14 lwz r9,20(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc10c28: 38 00 00 00 li r0,0 ffc10c2c: 2f 89 00 00 cmpwi cr7,r9,0 ffc10c30: 41 9e 00 10 beq- cr7,ffc10c40 ffc10c34: 7d 29 03 a6 mtctr r9 ffc10c38: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc10c3c: 7c 60 1b 78 mr r0,r3 } ffc10c40: 7c 03 03 78 mr r3,r0 ffc10c44: 80 01 00 0c lwz r0,12(r1) ffc10c48: 38 21 00 08 addi r1,r1,8 ffc10c4c: 7c 08 03 a6 mtlr r0 ffc10c50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e4d0 : rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc0e4d0: 7c 08 02 a6 mflr r0 ffc0e4d4: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc0e4d8: 3d 20 00 00 lis r9,0 rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc0e4dc: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc0e4e0: 80 09 27 ec lwz r0,10220(r9) ffc0e4e4: 7f 83 00 40 cmplw cr7,r3,r0 ffc0e4e8: 38 00 00 0a li r0,10 ffc0e4ec: 40 9c 00 2c bge- cr7,ffc0e518 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; ffc0e4f0: 3d 60 00 00 lis r11,0 ffc0e4f4: 81 6b 27 f0 lwz r11,10224(r11) ffc0e4f8: 1d 23 00 18 mulli r9,r3,24 ffc0e4fc: 7d 2b 48 2e lwzx r9,r11,r9 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc0e500: 38 00 00 00 li r0,0 ffc0e504: 2f 89 00 00 cmpwi cr7,r9,0 ffc0e508: 41 9e 00 10 beq- cr7,ffc0e518 ffc0e50c: 7d 29 03 a6 mtctr r9 ffc0e510: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0e514: 7c 60 1b 78 mr r0,r3 } ffc0e518: 7c 03 03 78 mr r3,r0 ffc0e51c: 80 01 00 0c lwz r0,12(r1) ffc0e520: 38 21 00 08 addi r1,r1,8 ffc0e524: 7c 08 03 a6 mtlr r0 ffc0e528: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03a60 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { ffc03a60: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc03a64: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc03a68: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED ffc03a6c: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc03a70: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED ffc03a74: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc03a78: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc03a7c: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED ffc03a80: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED ffc03a84: 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 ); ffc03a88: 48 00 f4 81 bl ffc12f08 <== NOT EXECUTED ffc03a8c: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc03a90: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc03a94: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc03a98: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc03a9c: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc03aa0: 38 e0 00 01 li r7,1 <== NOT EXECUTED ffc03aa4: 48 00 04 d1 bl ffc03f74 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { ffc03aa8: 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 ); ffc03aac: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED the_jnode = loc.node_access; ffc03ab0: 83 81 00 08 lwz r28,8(r1) <== NOT EXECUTED if ( !loc.ops->node_type_h ) { ffc03ab4: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc03ab8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03abc: 40 9e 00 30 bne- cr7,ffc03aec <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc03ac0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03ac4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03ac8: 41 9e 00 10 beq- cr7,ffc03ad8 <== NOT EXECUTED ffc03acc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03ad0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03ad4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc03ad8: 48 00 e1 35 bl ffc11c0c <__errno> <== NOT EXECUTED ffc03adc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc03ae0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03ae4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc03ae8: 48 00 00 9c b ffc03b84 <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); ffc03aec: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03af0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03af4: 4e 80 04 21 bctrl <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { ffc03af8: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc03afc: 40 be 00 0c bne+ cr7,ffc03b08 <== NOT EXECUTED ffc03b00: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED ffc03b04: 41 9e 00 2c beq- cr7,ffc03b30 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc03b08: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc03b0c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc03b10: 41 9e 00 68 beq- cr7,ffc03b78 <== NOT EXECUTED ffc03b14: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03b18: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03b1c: 41 9e 00 5c beq- cr7,ffc03b78 <== NOT EXECUTED ffc03b20: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc03b24: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03b28: 4e 80 04 21 bctrl <== NOT EXECUTED ffc03b2c: 48 00 00 4c b ffc03b78 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; ffc03b30: 93 be 00 00 stw r29,0(r30) <== NOT EXECUTED device_info->device_name_length = strlen( name ); ffc03b34: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc03b38: 48 00 f3 d1 bl ffc12f08 <== NOT EXECUTED device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); ffc03b3c: 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 ); ffc03b40: 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 ); ffc03b44: 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; ffc03b48: 80 1c 00 50 lwz r0,80(r28) <== NOT EXECUTED ffc03b4c: 90 1e 00 08 stw r0,8(r30) <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; ffc03b50: 80 1c 00 54 lwz r0,84(r28) <== NOT EXECUTED ffc03b54: 90 1e 00 0c stw r0,12(r30) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc03b58: 41 9e 00 28 beq- cr7,ffc03b80 <== NOT EXECUTED ffc03b5c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03b60: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03b64: 41 9e 00 1c beq- cr7,ffc03b80 <== NOT EXECUTED ffc03b68: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03b6c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03b70: 4e 80 04 21 bctrl <== NOT EXECUTED ffc03b74: 48 00 00 0c b ffc03b80 <== NOT EXECUTED ffc03b78: 38 60 00 0d li r3,13 <== NOT EXECUTED ffc03b7c: 48 00 00 08 b ffc03b84 <== NOT EXECUTED ffc03b80: 38 60 00 00 li r3,0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } ffc03b84: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc03b88: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc03b8c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03b90: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc03b94: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc03b98: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc03b9c: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc03ba0: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc03ba4: 4e 80 00 20 blr <== NOT EXECUTED ffc10c54 : rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10c54: 7c 08 02 a6 mflr r0 ffc10c58: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10c5c: 3d 20 00 00 lis r9,0 rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10c60: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10c64: 80 09 27 ec lwz r0,10220(r9) ffc10c68: 7f 83 00 40 cmplw cr7,r3,r0 ffc10c6c: 38 00 00 0a li r0,10 ffc10c70: 40 9c 00 30 bge- cr7,ffc10ca0 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; ffc10c74: 3d 60 00 00 lis r11,0 ffc10c78: 80 0b 27 f0 lwz r0,10224(r11) ffc10c7c: 1d 23 00 18 mulli r9,r3,24 ffc10c80: 7d 20 4a 14 add r9,r0,r9 <== ALWAYS TAKEN ffc10c84: 81 29 00 04 lwz r9,4(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc10c88: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc10c8c: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc10c90: 41 9e 00 10 beq- cr7,ffc10ca0 ffc10c94: 7d 29 03 a6 mtctr r9 ffc10c98: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc10c9c: 7c 60 1b 78 mr r0,r3 } ffc10ca0: 7c 03 03 78 mr r3,r0 <== ALWAYS TAKEN ffc10ca4: 80 01 00 0c lwz r0,12(r1) ffc10ca8: 38 21 00 08 addi r1,r1,8 ffc10cac: 7c 08 03 a6 mtlr r0 ffc10cb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10cb4 : rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10cb4: 7c 08 02 a6 mflr r0 ffc10cb8: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10cbc: 3d 20 00 00 lis r9,0 rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10cc0: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10cc4: 80 09 27 ec lwz r0,10220(r9) ffc10cc8: 7f 83 00 40 cmplw cr7,r3,r0 ffc10ccc: 38 00 00 0a li r0,10 ffc10cd0: 40 9c 00 30 bge- cr7,ffc10d00 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; ffc10cd4: 3d 60 00 00 lis r11,0 ffc10cd8: 80 0b 27 f0 lwz r0,10224(r11) ffc10cdc: 1d 23 00 18 mulli r9,r3,24 ffc10ce0: 7d 20 4a 14 add r9,r0,r9 ffc10ce4: 81 29 00 0c lwz r9,12(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc10ce8: 38 00 00 00 li r0,0 ffc10cec: 2f 89 00 00 cmpwi cr7,r9,0 ffc10cf0: 41 9e 00 10 beq- cr7,ffc10d00 ffc10cf4: 7d 29 03 a6 mtctr r9 ffc10cf8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc10cfc: 7c 60 1b 78 mr r0,r3 } ffc10d00: 7c 03 03 78 mr r3,r0 ffc10d04: 80 01 00 0c lwz r0,12(r1) ffc10d08: 38 21 00 08 addi r1,r1,8 ffc10d0c: 7c 08 03 a6 mtlr r0 ffc10d10: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a184 : 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 ) { ffc0a184: 94 21 ff f0 stwu r1,-16(r1) ffc0a188: 7c 08 02 a6 mflr r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a18c: 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 ) { ffc0a190: 90 01 00 14 stw r0,20(r1) rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a194: 80 09 27 b8 lwz r0,10168(r9) rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; ffc0a198: 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 ) { ffc0a19c: 93 e1 00 0c stw r31,12(r1) ffc0a1a0: 7c 7f 1b 78 mr r31,r3 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0a1a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a1a8: 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; ffc0a1ac: 80 09 28 08 lwz r0,10248(r9) if ( rtems_interrupt_is_in_progress() ) ffc0a1b0: 40 9e 01 40 bne- cr7,ffc0a2f0 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) ffc0a1b4: 2f 85 00 00 cmpwi cr7,r5,0 <== ALWAYS TAKEN ffc0a1b8: 41 9e 01 34 beq- cr7,ffc0a2ec return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) ffc0a1bc: 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; ffc0a1c0: 90 05 00 00 stw r0,0(r5) if ( driver_table == NULL ) ffc0a1c4: 41 9e 01 28 beq- cr7,ffc0a2ec static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0a1c8: 81 24 00 00 lwz r9,0(r4) ffc0a1cc: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a1d0: 40 be 01 34 bne+ cr7,ffc0a304 ffc0a1d4: 81 24 00 04 lwz r9,4(r4) ffc0a1d8: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a1dc: 40 be 01 28 bne+ cr7,ffc0a304 ffc0a1e0: 48 00 01 0c b ffc0a2ec <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a1e4: 3d 20 00 00 lis r9,0 ffc0a1e8: 81 69 27 90 lwz r11,10128(r9) ffc0a1ec: 38 0b 00 01 addi r0,r11,1 ffc0a1f0: 90 09 27 90 stw r0,10128(r9) if ( major >= major_limit ) return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { ffc0a1f4: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0a1f8: 3d 20 00 00 lis r9,0 ffc0a1fc: 40 9e 00 58 bne- cr7,ffc0a254 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; ffc0a200: 3d 60 00 00 lis r11,0 ffc0a204: 81 29 28 0c lwz r9,10252(r9) ffc0a208: 81 6b 28 08 lwz r11,10248(r11) ffc0a20c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a210: 38 0b 00 01 addi r0,r11,1 ffc0a214: 40 be 00 28 bne+ cr7,ffc0a23c <== ALWAYS TAKEN ffc0a218: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0a21c: 48 00 00 20 b ffc0a23c <== 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; ffc0a220: 81 49 00 00 lwz r10,0(r9) ffc0a224: 2f 8a 00 00 cmpwi cr7,r10,0 <== ALWAYS TAKEN ffc0a228: 40 be 00 ec bne+ cr7,ffc0a314 ffc0a22c: 81 49 00 04 lwz r10,4(r9) ffc0a230: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0a234: 40 be 00 e0 bne+ cr7,ffc0a314 ffc0a238: 48 00 00 0c b ffc0a244 <== ALWAYS TAKEN 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 ) { ffc0a23c: 34 00 ff ff addic. r0,r0,-1 ffc0a240: 40 82 ff e0 bne+ ffc0a220 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) ffc0a244: 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; ffc0a248: 93 e5 00 00 stw r31,0(r5) if ( m != n ) ffc0a24c: 40 be 00 48 bne+ cr7,ffc0a294 ffc0a250: 48 00 00 d0 b ffc0a320 <== ALWAYS TAKEN _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; ffc0a254: 1c 1f 00 18 mulli r0,r31,24 ffc0a258: 81 29 28 0c lwz r9,10252(r9) static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0a25c: 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; ffc0a260: 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; ffc0a264: 38 00 00 00 li r0,0 ffc0a268: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a26c: 40 be 00 10 bne+ cr7,ffc0a27c ffc0a270: 80 09 00 04 lwz r0,4(r9) ffc0a274: 7c 00 00 34 cntlzw r0,r0 ffc0a278: 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 ) ) { ffc0a27c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a280: 40 9e 00 10 bne- cr7,ffc0a290 _Thread_Enable_dispatch(); ffc0a284: 48 00 20 0d bl ffc0c290 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a288: 38 60 00 0c li r3,12 return RTEMS_RESOURCE_IN_USE; ffc0a28c: 48 00 00 64 b ffc0a2f0 <== ALWAYS TAKEN } *registered_major = major; ffc0a290: 93 e5 00 00 stw r31,0(r5) } _IO_Driver_address_table [major] = *driver_table; ffc0a294: 3d 20 00 00 lis r9,0 ffc0a298: 80 c4 00 00 lwz r6,0(r4) ffc0a29c: 81 69 28 0c lwz r11,10252(r9) ffc0a2a0: 1c 1f 00 18 mulli r0,r31,24 ffc0a2a4: 80 e4 00 04 lwz r7,4(r4) ffc0a2a8: 81 04 00 08 lwz r8,8(r4) ffc0a2ac: 7d 2b 02 14 add r9,r11,r0 ffc0a2b0: 81 44 00 0c lwz r10,12(r4) ffc0a2b4: 7c cb 01 2e stwx r6,r11,r0 ffc0a2b8: 90 e9 00 04 stw r7,4(r9) ffc0a2bc: 91 09 00 08 stw r8,8(r9) ffc0a2c0: 91 49 00 0c stw r10,12(r9) ffc0a2c4: 81 64 00 14 lwz r11,20(r4) ffc0a2c8: 80 04 00 10 lwz r0,16(r4) ffc0a2cc: 91 69 00 14 stw r11,20(r9) ffc0a2d0: 90 09 00 10 stw r0,16(r9) _Thread_Enable_dispatch(); ffc0a2d4: 48 00 1f bd bl ffc0c290 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return rtems_io_initialize( major, 0, NULL ); ffc0a2d8: 7f e3 fb 78 mr r3,r31 ffc0a2dc: 38 80 00 00 li r4,0 ffc0a2e0: 38 a0 00 00 li r5,0 ffc0a2e4: 48 00 a3 79 bl ffc1465c <== ALWAYS TAKEN ffc0a2e8: 48 00 00 08 b ffc0a2f0 <== ALWAYS TAKEN ffc0a2ec: 38 60 00 09 li r3,9 } ffc0a2f0: 80 01 00 14 lwz r0,20(r1) ffc0a2f4: 83 e1 00 0c lwz r31,12(r1) ffc0a2f8: 38 21 00 10 addi r1,r1,16 ffc0a2fc: 7c 08 03 a6 mtlr r0 ffc0a300: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) ffc0a304: 7f 9f 00 40 cmplw cr7,r31,r0 ffc0a308: 38 60 00 0a li r3,10 ffc0a30c: 41 9c fe d8 blt+ cr7,ffc0a1e4 ffc0a310: 4b ff ff e0 b ffc0a2f0 <== ALWAYS TAKEN 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 ) { ffc0a314: 3b ff 00 01 addi r31,r31,1 ffc0a318: 39 29 00 18 addi r9,r9,24 ffc0a31c: 4b ff ff 20 b ffc0a23c <== ALWAYS TAKEN if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); ffc0a320: 48 00 1f 71 bl ffc0c290 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a324: 38 60 00 05 li r3,5 return sc; ffc0a328: 4b ff ff c8 b ffc0a2f0 <== ALWAYS TAKEN ffc03ba8 : rtems_status_code rtems_io_register_name( const char *device_name, rtems_device_major_number major, rtems_device_minor_number minor ) { ffc03ba8: 94 21 ff f8 stwu r1,-8(r1) ffc03bac: 7c 08 02 a6 mflr r0 ffc03bb0: 7c a6 2b 78 mr r6,r5 <== ALWAYS TAKEN int status; dev_t dev; dev = rtems_filesystem_make_dev_t( major, minor ); status = mknod( device_name, 0777 | S_IFCHR, dev ); ffc03bb4: 7c 85 23 78 mr r5,r4 <== ALWAYS TAKEN rtems_status_code rtems_io_register_name( const char *device_name, rtems_device_major_number major, rtems_device_minor_number minor ) { ffc03bb8: 90 01 00 0c stw r0,12(r1) int status; dev_t dev; dev = rtems_filesystem_make_dev_t( major, minor ); status = mknod( device_name, 0777 | S_IFCHR, dev ); ffc03bbc: 38 80 21 ff li r4,8703 ffc03bc0: 48 00 09 51 bl ffc04510 <== ALWAYS TAKEN /* this is the only error returned by the old version */ if ( status ) ffc03bc4: 7c 60 fe 70 srawi r0,r3,31 <== ALWAYS TAKEN ffc03bc8: 7c 03 1a 78 xor r3,r0,r3 ffc03bcc: 7c 63 00 50 subf r3,r3,r0 return RTEMS_TOO_MANY; return RTEMS_SUCCESSFUL; } ffc03bd0: 80 01 00 0c lwz r0,12(r1) dev = rtems_filesystem_make_dev_t( major, minor ); status = mknod( device_name, 0777 | S_IFCHR, dev ); /* this is the only error returned by the old version */ if ( status ) ffc03bd4: 7c 63 fe 70 srawi r3,r3,31 return RTEMS_TOO_MANY; return RTEMS_SUCCESSFUL; } ffc03bd8: 7c 08 03 a6 mtlr r0 ffc03bdc: 70 63 00 05 andi. r3,r3,5 <== ALWAYS TAKEN ffc03be0: 38 21 00 08 addi r1,r1,8 ffc03be4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a32c : */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { ffc0a32c: 7c 08 02 a6 mflr r0 ffc0a330: 94 21 ff f8 stwu r1,-8(r1) if ( rtems_interrupt_is_in_progress() ) ffc0a334: 3d 20 00 00 lis r9,0 */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { ffc0a338: 90 01 00 0c stw r0,12(r1) if ( rtems_interrupt_is_in_progress() ) ffc0a33c: 80 09 27 b8 lwz r0,10168(r9) ffc0a340: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a344: 38 00 00 12 li r0,18 ffc0a348: 40 9e 00 4c bne- cr7,ffc0a394 return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { ffc0a34c: 3d 20 00 00 lis r9,0 ffc0a350: 81 29 28 08 lwz r9,10248(r9) ffc0a354: 38 00 00 0d li r0,13 ffc0a358: 7f 83 48 40 cmplw cr7,r3,r9 ffc0a35c: 40 bc 00 38 bge+ cr7,ffc0a394 ffc0a360: 3d 20 00 00 lis r9,0 ffc0a364: 81 69 27 90 lwz r11,10128(r9) ffc0a368: 38 0b 00 01 addi r0,r11,1 ffc0a36c: 90 09 27 90 stw r0,10128(r9) _Thread_Disable_dispatch(); memset( ffc0a370: 3d 20 00 00 lis r9,0 ffc0a374: 80 09 28 0c lwz r0,10252(r9) ffc0a378: 1c 63 00 18 mulli r3,r3,24 ffc0a37c: 38 80 00 00 li r4,0 ffc0a380: 7c 60 1a 14 add r3,r0,r3 ffc0a384: 38 a0 00 18 li r5,24 ffc0a388: 48 00 e9 71 bl ffc18cf8 <== ALWAYS TAKEN &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); ffc0a38c: 48 00 1f 05 bl ffc0c290 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a390: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } ffc0a394: 7c 03 03 78 mr r3,r0 ffc0a398: 80 01 00 0c lwz r0,12(r1) ffc0a39c: 38 21 00 08 addi r1,r1,8 ffc0a3a0: 7c 08 03 a6 mtlr r0 ffc0a3a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10d14 : rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10d14: 7c 08 02 a6 mflr r0 ffc10d18: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10d1c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc10d20: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc10d24: 80 09 27 ec lwz r0,10220(r9) ffc10d28: 7f 83 00 40 cmplw cr7,r3,r0 <== ALWAYS TAKEN ffc10d2c: 38 00 00 0a li r0,10 <== ALWAYS TAKEN ffc10d30: 40 9c 00 30 bge- cr7,ffc10d60 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; ffc10d34: 3d 60 00 00 lis r11,0 ffc10d38: 80 0b 27 f0 lwz r0,10224(r11) <== ALWAYS TAKEN ffc10d3c: 1d 23 00 18 mulli r9,r3,24 ffc10d40: 7d 20 4a 14 add r9,r0,r9 ffc10d44: 81 29 00 10 lwz r9,16(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc10d48: 38 00 00 00 li r0,0 ffc10d4c: 2f 89 00 00 cmpwi cr7,r9,0 ffc10d50: 41 9e 00 10 beq- cr7,ffc10d60 ffc10d54: 7d 29 03 a6 mtctr r9 ffc10d58: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc10d5c: 7c 60 1b 78 mr r0,r3 } ffc10d60: 7c 03 03 78 mr r3,r0 <== ALWAYS TAKEN ffc10d64: 80 01 00 0c lwz r0,12(r1) ffc10d68: 38 21 00 08 addi r1,r1,8 ffc10d6c: 7c 08 03 a6 mtlr r0 ffc10d70: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b28c : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { ffc0b28c: 94 21 ff e0 stwu r1,-32(r1) ffc0b290: 7c 08 02 a6 mflr r0 ffc0b294: 93 61 00 0c stw r27,12(r1) uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) ffc0b298: 7c 7b 1b 79 mr. r27,r3 #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { ffc0b29c: 90 01 00 24 stw r0,36(r1) ffc0b2a0: 93 81 00 10 stw r28,16(r1) ffc0b2a4: 93 a1 00 14 stw r29,20(r1) ffc0b2a8: 93 c1 00 18 stw r30,24(r1) ffc0b2ac: 93 e1 00 1c stw r31,28(r1) uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) ffc0b2b0: 41 82 00 68 beq- ffc0b318 <== NEVER TAKEN ffc0b2b4: 3f e0 00 01 lis r31,1 ffc0b2b8: 3b ff aa 44 addi r31,r31,-21948 #endif #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) ffc0b2bc: 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 ] ) ffc0b2c0: 81 3f 00 00 lwz r9,0(r31) ffc0b2c4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0b2c8: 41 9e 00 44 beq- cr7,ffc0b30c continue; information = _Objects_Information_table[ api_index ][ 1 ]; ffc0b2cc: 83 a9 00 04 lwz r29,4(r9) if ( !information ) ffc0b2d0: 3b c0 00 01 li r30,1 ffc0b2d4: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0b2d8: 40 be 00 20 bne+ cr7,ffc0b2f8 ffc0b2dc: 48 00 00 30 b ffc0b30c <== ALWAYS TAKEN continue; for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; ffc0b2e0: 81 7d 00 1c lwz r11,28(r29) ffc0b2e4: 7c 6b 48 2e lwzx r3,r11,r9 if ( !the_thread ) ffc0b2e8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b2ec: 41 9e 00 0c beq- cr7,ffc0b2f8 <== NEVER TAKEN continue; (*routine)(the_thread); ffc0b2f0: 7f 69 03 a6 mtctr r27 ffc0b2f4: 4e 80 04 21 bctrl <== ALWAYS TAKEN information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { ffc0b2f8: a0 1d 00 10 lhz r0,16(r29) the_thread = (Thread_Control *)information->local_table[ i ]; ffc0b2fc: 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++ ) { ffc0b300: 7f 9e 00 40 cmplw cr7,r30,r0 ffc0b304: 3b de 00 01 addi r30,r30,1 ffc0b308: 40 9d ff d8 ble+ cr7,ffc0b2e0 ffc0b30c: 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++ ) { ffc0b310: 7f 9f e0 00 cmpw cr7,r31,r28 ffc0b314: 40 9e ff ac bne+ cr7,ffc0b2c0 (*routine)(the_thread); } } } ffc0b318: 80 01 00 24 lwz r0,36(r1) ffc0b31c: 83 61 00 0c lwz r27,12(r1) ffc0b320: 7c 08 03 a6 mtlr r0 ffc0b324: 83 81 00 10 lwz r28,16(r1) ffc0b328: 83 a1 00 14 lwz r29,20(r1) ffc0b32c: 83 c1 00 18 lwz r30,24(r1) ffc0b330: 83 e1 00 1c lwz r31,28(r1) ffc0b334: 38 21 00 20 addi r1,r1,32 ffc0b338: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d3b0 : * 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 ) { ffc0d3b0: 94 21 ff d8 stwu r1,-40(r1) <== ALWAYS TAKEN rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d3b4: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * 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 ) { ffc0d3b8: 7c 08 02 a6 mflr r0 rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d3bc: 38 80 00 00 li r4,0 <== ALWAYS TAKEN ffc0d3c0: 80 69 27 54 lwz r3,10068(r9) ffc0d3c4: 38 a0 00 00 li r5,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 ) { ffc0d3c8: 93 e1 00 24 stw r31,36(r1) rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (rtems_libio_iop_freelist) { ffc0d3cc: 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 ) { ffc0d3d0: 90 01 00 2c stw r0,44(r1) ffc0d3d4: 93 a1 00 1c stw r29,28(r1) ffc0d3d8: 93 c1 00 20 stw r30,32(r1) <== ALWAYS TAKEN rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d3dc: 4b ff a7 e5 bl ffc07bc0 <== ALWAYS TAKEN if (rtems_libio_iop_freelist) { ffc0d3e0: 80 1f 27 50 lwz r0,10064(r31) ffc0d3e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d3e8: 41 be 00 74 beq+ cr7,ffc0d45c rc = rtems_semaphore_create( ffc0d3ec: 3d 20 00 00 lis r9,0 ffc0d3f0: 80 69 27 4c lwz r3,10060(r9) ffc0d3f4: 3d 20 38 e3 lis r9,14563 ffc0d3f8: 61 29 8e 39 ori r9,r9,36409 ffc0d3fc: 7c 63 00 50 subf r3,r3,r0 <== ALWAYS TAKEN ffc0d400: 7c 63 1e 70 srawi r3,r3,3 ffc0d404: 7c 63 49 d6 mullw r3,r3,r9 ffc0d408: 38 80 00 01 li r4,1 ffc0d40c: 64 63 4c 42 oris r3,r3,19522 <== ALWAYS TAKEN ffc0d410: 60 63 49 00 ori r3,r3,18688 ffc0d414: 38 a0 00 54 li r5,84 ffc0d418: 38 c0 00 00 li r6,0 ffc0d41c: 38 e1 00 08 addi r7,r1,8 ffc0d420: 4b ff a4 d1 bl ffc078f0 <== ALWAYS TAKEN 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &sema ); if (rc != RTEMS_SUCCESSFUL) ffc0d424: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc0d428: 40 be 00 34 bne+ cr7,ffc0d45c <== NEVER TAKEN goto failed; iop = rtems_libio_iop_freelist; ffc0d42c: 83 df 27 50 lwz r30,10064(r31) next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); ffc0d430: 38 80 00 00 li r4,0 ffc0d434: 38 a0 00 48 li r5,72 ffc0d438: 7f c3 f3 78 mr r3,r30 &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; ffc0d43c: 83 be 00 38 lwz r29,56(r30) (void) memset( iop, 0, sizeof(rtems_libio_t) ); ffc0d440: 48 00 54 b5 bl ffc128f4 <== ALWAYS TAKEN iop->flags = LIBIO_FLAGS_OPEN; ffc0d444: 38 00 01 00 li r0,256 ffc0d448: 90 1e 00 18 stw r0,24(r30) iop->sem = sema; ffc0d44c: 80 01 00 08 lwz r0,8(r1) <== ALWAYS TAKEN rtems_libio_iop_freelist = next; ffc0d450: 93 bf 27 50 stw r29,10064(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; ffc0d454: 90 1e 00 30 stw r0,48(r30) rtems_libio_iop_freelist = next; goto done; ffc0d458: 48 00 00 08 b ffc0d460 <== ALWAYS TAKEN ffc0d45c: 3b c0 00 00 li r30,0 failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); ffc0d460: 3d 20 00 00 lis r9,0 ffc0d464: 80 69 27 54 lwz r3,10068(r9) <== ALWAYS TAKEN ffc0d468: 4b ff a8 9d bl ffc07d04 <== ALWAYS TAKEN return iop; } ffc0d46c: 80 01 00 2c lwz r0,44(r1) ffc0d470: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc0d474: 83 a1 00 1c lwz r29,28(r1) <== ALWAYS TAKEN ffc0d478: 7c 08 03 a6 mtlr r0 ffc0d47c: 83 c1 00 20 lwz r30,32(r1) ffc0d480: 83 e1 00 24 lwz r31,36(r1) ffc0d484: 38 21 00 28 addi r1,r1,40 ffc0d488: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d48c : }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { ffc0d48c: 94 21 ff e8 stwu r1,-24(r1) ffc0d490: 7c 08 02 a6 mflr r0 * Access mode is a small integer */ access_modes = fcntl_flags & O_ACCMODE; fcntl_flags &= ~O_ACCMODE; flags = rtems_assoc_local_by_remote( access_modes_assoc, access_modes ); ffc0d494: 54 64 07 be clrlwi r4,r3,30 }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { ffc0d498: 93 e1 00 14 stw r31,20(r1) * Access mode is a small integer */ access_modes = fcntl_flags & O_ACCMODE; fcntl_flags &= ~O_ACCMODE; flags = rtems_assoc_local_by_remote( access_modes_assoc, access_modes ); ffc0d49c: 3f e0 ff c2 lis r31,-62 ffc0d4a0: 3b ff e1 34 addi r31,r31,-7884 <== ALWAYS TAKEN }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { ffc0d4a4: 93 c1 00 10 stw r30,16(r1) ffc0d4a8: 7c 7e 1b 78 mr r30,r3 * Access mode is a small integer */ access_modes = fcntl_flags & O_ACCMODE; fcntl_flags &= ~O_ACCMODE; flags = rtems_assoc_local_by_remote( access_modes_assoc, access_modes ); ffc0d4ac: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { ffc0d4b0: 90 01 00 1c stw r0,28(r1) ffc0d4b4: 93 a1 00 0c stw r29,12(r1) * Access mode is a small integer */ access_modes = fcntl_flags & O_ACCMODE; fcntl_flags &= ~O_ACCMODE; flags = rtems_assoc_local_by_remote( access_modes_assoc, access_modes ); ffc0d4b8: 48 00 2c a5 bl ffc1015c <== ALWAYS TAKEN ffc0d4bc: 7c 7d 1b 78 mr r29,r3 /* * Everything else is single bits */ flags |= rtems_assoc_local_by_remote_bitfield(status_flags_assoc, fcntl_flags); ffc0d4c0: 57 c4 00 3a rlwinm r4,r30,0,0,29 ffc0d4c4: 38 7f 00 30 addi r3,r31,48 ffc0d4c8: 48 00 2c 11 bl ffc100d8 <== ALWAYS TAKEN return flags; } ffc0d4cc: 80 01 00 1c lwz r0,28(r1) ffc0d4d0: 7c 63 eb 78 or r3,r3,r29 <== ALWAYS TAKEN ffc0d4d4: 83 c1 00 10 lwz r30,16(r1) ffc0d4d8: 7c 08 03 a6 mtlr r0 ffc0d4dc: 83 a1 00 0c lwz r29,12(r1) ffc0d4e0: 83 e1 00 14 lwz r31,20(r1) ffc0d4e4: 38 21 00 18 addi r1,r1,24 ffc0d4e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d33c : */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0d33c: 94 21 ff f0 stwu r1,-16(r1) rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d340: 3d 20 00 00 lis r9,0 */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0d344: 7c 08 02 a6 mflr r0 rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d348: 38 80 00 00 li r4,0 */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0d34c: 93 e1 00 0c stw r31,12(r1) ffc0d350: 7c 7f 1b 78 mr r31,r3 rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d354: 38 a0 00 00 li r5,0 ffc0d358: 80 69 27 54 lwz r3,10068(r9) */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0d35c: 90 01 00 14 stw r0,20(r1) rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d360: 4b ff a8 61 bl ffc07bc0 <== ALWAYS TAKEN if (iop->sem) ffc0d364: 80 7f 00 30 lwz r3,48(r31) ffc0d368: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d36c: 41 be 00 08 beq+ cr7,ffc0d374 <== NEVER TAKEN rtems_semaphore_delete(iop->sem); ffc0d370: 4b ff a7 85 bl ffc07af4 <== ALWAYS TAKEN iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0d374: 81 7f 00 18 lwz r11,24(r31) iop->data1 = rtems_libio_iop_freelist; ffc0d378: 3d 20 00 00 lis r9,0 ffc0d37c: 80 09 27 50 lwz r0,10064(r9) <== ALWAYS TAKEN rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0d380: 55 6b 06 2c rlwinm r11,r11,0,24,22 iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; ffc0d384: 93 e9 27 50 stw r31,10064(r9) rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0d388: 91 7f 00 18 stw r11,24(r31) <== ALWAYS TAKEN iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); ffc0d38c: 3d 60 00 00 lis r11,0 if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; ffc0d390: 90 1f 00 38 stw r0,56(r31) rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); ffc0d394: 80 6b 27 54 lwz r3,10068(r11) ffc0d398: 4b ff a9 6d bl ffc07d04 <== ALWAYS TAKEN } ffc0d39c: 80 01 00 14 lwz r0,20(r1) ffc0d3a0: 83 e1 00 0c lwz r31,12(r1) ffc0d3a4: 38 21 00 10 addi r1,r1,16 ffc0d3a8: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0d3ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04120 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { ffc04120: 94 21 ff f0 stwu r1,-16(r1) ffc04124: 7c 08 02 a6 mflr r0 ffc04128: 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) ffc0412c: 3f e0 00 00 lis r31,0 ffc04130: 80 7f 26 8c lwz r3,9868(r31) * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { ffc04134: 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) ffc04138: 2f 83 00 00 cmpwi cr7,r3,0 ffc0413c: 41 9e 00 5c beq- cr7,ffc04198 <== NEVER TAKEN { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, ffc04140: 38 80 00 48 li r4,72 ffc04144: 48 00 8d 61 bl ffc0cea4 <== ALWAYS TAKEN ffc04148: 3d 20 00 00 lis r9,0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) ffc0414c: 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, ffc04150: 90 69 27 4c stw r3,10060(r9) sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) ffc04154: 40 be 00 0c bne+ cr7,ffc04160 <== ALWAYS TAKEN rtems_fatal_error_occurred(RTEMS_NO_MEMORY); ffc04158: 38 60 00 1a li r3,26 <== NOT EXECUTED ffc0415c: 48 00 00 64 b ffc041c0 <== NOT EXECUTED iop = rtems_libio_iop_freelist = rtems_libio_iops; for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) ffc04160: 80 1f 26 8c lwz r0,9868(r31) rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; ffc04164: 3d 20 00 00 lis r9,0 ffc04168: 90 69 27 50 stw r3,10064(r9) <== ALWAYS TAKEN ffc0416c: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc04170: 40 be 00 10 bne+ cr7,ffc04180 <== ALWAYS TAKEN ffc04174: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc04178: 48 00 00 08 b ffc04180 <== NOT EXECUTED for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) iop->data1 = iop + 1; ffc0417c: 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++) ffc04180: 34 00 ff ff addic. r0,r0,-1 iop->data1 = iop + 1; ffc04184: 7c 69 1b 78 mr r9,r3 <== ALWAYS TAKEN 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++) ffc04188: 38 63 00 48 addi r3,r3,72 ffc0418c: 40 82 ff f0 bne+ ffc0417c iop->data1 = iop + 1; iop->data1 = NULL; ffc04190: 38 00 00 00 li r0,0 ffc04194: 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( ffc04198: 3c 60 4c 42 lis r3,19522 ffc0419c: 3c e0 00 00 lis r7,0 ffc041a0: 60 63 49 4f ori r3,r3,18767 ffc041a4: 38 e7 27 54 addi r7,r7,10068 ffc041a8: 38 80 00 01 li r4,1 ffc041ac: 38 a0 00 54 li r5,84 ffc041b0: 38 c0 00 00 li r6,0 ffc041b4: 48 00 37 3d bl ffc078f0 <== ALWAYS TAKEN 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) ffc041b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc041bc: 41 be 00 08 beq+ cr7,ffc041c4 <== ALWAYS TAKEN rtems_fatal_error_occurred( rc ); ffc041c0: 48 00 42 2d bl ffc083ec <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) ffc041c4: 3d 20 00 00 lis r9,0 ffc041c8: 80 09 26 88 lwz r0,9864(r9) ffc041cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc041d0: 41 9e 00 0c beq- cr7,ffc041dc <== NEVER TAKEN (* rtems_fs_init_helper)(); ffc041d4: 7c 09 03 a6 mtctr r0 ffc041d8: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc041dc: 80 01 00 14 lwz r0,20(r1) ffc041e0: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc041e4: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc041e8: 7c 08 03 a6 mtlr r0 ffc041ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d1fc : */ int rtems_libio_is_file_open( void *node_access ) { ffc0d1fc: 94 21 ff f0 stwu r1,-16(r1) rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d200: 3d 20 00 00 lis r9,0 */ int rtems_libio_is_file_open( void *node_access ) { ffc0d204: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d208: 38 80 00 00 li r4,0 */ int rtems_libio_is_file_open( void *node_access ) { ffc0d20c: 93 e1 00 0c stw r31,12(r1) ffc0d210: 7c 7f 1b 78 mr r31,r3 rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d214: 38 a0 00 00 li r5,0 ffc0d218: 80 69 27 54 lwz r3,10068(r9) */ int rtems_libio_is_file_open( void *node_access ) { ffc0d21c: 90 01 00 14 stw r0,20(r1) rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d220: 4b ff a9 a1 bl ffc07bc0 <== ALWAYS TAKEN /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d224: 3d 20 00 00 lis r9,0 ffc0d228: 81 69 26 8c lwz r11,9868(r9) ffc0d22c: 3d 20 00 00 lis r9,0 ffc0d230: 81 29 27 4c lwz r9,10060(r9) ffc0d234: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0d238: 38 0b 00 01 addi r0,r11,1 ffc0d23c: 40 be 00 30 bne+ cr7,ffc0d26c <== ALWAYS TAKEN ffc0d240: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0d244: 48 00 00 28 b ffc0d26c <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { ffc0d248: 81 69 00 18 lwz r11,24(r9) ffc0d24c: 71 6a 01 00 andi. r10,r11,256 ffc0d250: 41 82 00 18 beq- ffc0d268 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { ffc0d254: 81 69 00 1c lwz r11,28(r9) ffc0d258: 7f 8b f8 00 cmpw cr7,r11,r31 ffc0d25c: 40 be 00 0c bne+ cr7,ffc0d268 ffc0d260: 3b e0 00 01 li r31,1 ffc0d264: 48 00 00 14 b ffc0d278 <== ALWAYS TAKEN /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d268: 39 29 00 48 addi r9,r9,72 ffc0d26c: 34 00 ff ff addic. r0,r0,-1 ffc0d270: 40 82 ff d8 bne+ ffc0d248 ffc0d274: 3b e0 00 00 li r31,0 break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0d278: 3d 20 00 00 lis r9,0 ffc0d27c: 80 69 27 54 lwz r3,10068(r9) ffc0d280: 4b ff aa 85 bl ffc07d04 <== ALWAYS TAKEN return result; } ffc0d284: 80 01 00 14 lwz r0,20(r1) ffc0d288: 7f e3 fb 78 mr r3,r31 ffc0d28c: 83 e1 00 0c lwz r31,12(r1) ffc0d290: 7c 08 03 a6 mtlr r0 ffc0d294: 38 21 00 10 addi r1,r1,16 ffc0d298: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d29c : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d29c: 94 21 ff f0 stwu r1,-16(r1) rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d2a0: 3d 20 00 00 lis r9,0 */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d2a4: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d2a8: 38 80 00 00 li r4,0 */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d2ac: 93 e1 00 0c stw r31,12(r1) ffc0d2b0: 7c 7f 1b 78 mr r31,r3 rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d2b4: 38 a0 00 00 li r5,0 ffc0d2b8: 80 69 27 54 lwz r3,10068(r9) */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0d2bc: 90 01 00 14 stw r0,20(r1) rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0d2c0: 4b ff a9 01 bl ffc07bc0 <== ALWAYS TAKEN /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d2c4: 3d 20 00 00 lis r9,0 ffc0d2c8: 81 69 26 8c lwz r11,9868(r9) ffc0d2cc: 3d 20 00 00 lis r9,0 ffc0d2d0: 81 29 27 4c lwz r9,10060(r9) ffc0d2d4: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0d2d8: 38 0b 00 01 addi r0,r11,1 ffc0d2dc: 40 be 00 30 bne+ cr7,ffc0d30c <== ALWAYS TAKEN ffc0d2e0: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0d2e4: 48 00 00 28 b ffc0d30c <== NOT EXECUTED if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { ffc0d2e8: 81 69 00 18 lwz r11,24(r9) ffc0d2ec: 71 6a 01 00 andi. r10,r11,256 ffc0d2f0: 41 82 00 18 beq- ffc0d308 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { ffc0d2f4: 81 69 00 2c lwz r11,44(r9) ffc0d2f8: 7f 8b f8 00 cmpw cr7,r11,r31 ffc0d2fc: 40 be 00 0c bne+ cr7,ffc0d308 ffc0d300: 3b e0 00 01 li r31,1 ffc0d304: 48 00 00 14 b ffc0d318 <== ALWAYS TAKEN /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0d308: 39 29 00 48 addi r9,r9,72 ffc0d30c: 34 00 ff ff addic. r0,r0,-1 ffc0d310: 40 82 ff d8 bne+ ffc0d2e8 ffc0d314: 3b e0 00 00 li r31,0 break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0d318: 3d 20 00 00 lis r9,0 ffc0d31c: 80 69 27 54 lwz r3,10068(r9) ffc0d320: 4b ff a9 e5 bl ffc07d04 <== ALWAYS TAKEN return result; } ffc0d324: 80 01 00 14 lwz r0,20(r1) ffc0d328: 7f e3 fb 78 mr r3,r31 ffc0d32c: 83 e1 00 0c lwz r31,12(r1) ffc0d330: 7c 08 03 a6 mtlr r0 ffc0d334: 38 21 00 10 addi r1,r1,16 ffc0d338: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2c89c : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc2c89c: 94 21 ff c0 stwu r1,-64(r1) ffc2c8a0: 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); ffc2c8a4: 38 60 00 00 li r3,0 ffc2c8a8: 38 80 00 00 li r4,0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc2c8ac: 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); ffc2c8b0: 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) { ffc2c8b4: 90 01 00 44 stw r0,68(r1) ffc2c8b8: 93 61 00 2c stw r27,44(r1) ffc2c8bc: 93 81 00 30 stw r28,48(r1) ffc2c8c0: 93 a1 00 34 stw r29,52(r1) ffc2c8c4: 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); ffc2c8c8: 4b fe 0f 2d bl ffc0d7f4 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) return sc; ffc2c8cc: 7c 7f 1b 79 mr. r31,r3 ffc2c8d0: 40 82 01 50 bne- ffc2ca20 <== NEVER TAKEN /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { ffc2c8d4: 3f c0 00 00 lis r30,0 ffc2c8d8: 81 3e 35 2c lwz r9,13612(r30) ffc2c8dc: 3d 60 00 00 lis r11,0 ffc2c8e0: 38 0b 63 dc addi r0,r11,25564 ffc2c8e4: 7f 89 00 00 cmpw cr7,r9,r0 ffc2c8e8: 3b 9e 35 2c addi r28,r30,13612 ffc2c8ec: 40 be 00 4c bne+ cr7,ffc2c938 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); ffc2c8f0: 38 60 00 48 li r3,72 ffc2c8f4: 4b fd c2 b5 bl ffc08ba8 <== ALWAYS TAKEN if (!tmp) ffc2c8f8: 7c 7d 1b 79 mr. r29,r3 ffc2c8fc: 40 a2 00 0c bne+ ffc2c908 <== ALWAYS TAKEN ffc2c900: 3b e0 00 1a li r31,26 <== NOT EXECUTED ffc2c904: 48 00 01 1c b ffc2ca20 <== 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); ffc2c908: 3c a0 ff c3 lis r5,-61 ffc2c90c: 7f 84 e3 78 mr r4,r28 ffc2c910: 38 a5 c7 3c addi r5,r5,-14532 ffc2c914: 38 60 00 00 li r3,0 ffc2c918: 48 00 22 b9 bl ffc2ebd0 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) { ffc2c91c: 7c 7c 1b 79 mr. r28,r3 ffc2c920: 41 a2 00 14 beq+ ffc2c934 <== ALWAYS TAKEN /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); ffc2c924: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2c928: 4b fd ba f9 bl ffc08420 <== NOT EXECUTED ffc2c92c: 7f 9f e3 78 mr r31,r28 <== NOT EXECUTED return sc; ffc2c930: 48 00 00 f0 b ffc2ca20 <== NOT EXECUTED } rtems_current_user_env = tmp; ffc2c934: 93 be 35 2c stw r29,13612(r30) }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ ffc2c938: 3f c0 00 00 lis r30,0 ffc2c93c: 83 7e 35 2c lwz r27,13612(r30) ffc2c940: 3c 80 00 00 lis r4,0 ffc2c944: 38 84 63 dc addi r4,r4,25564 ffc2c948: 38 a0 00 48 li r5,72 ffc2c94c: 7f 63 db 78 mr r3,r27 ffc2c950: 48 01 e8 9d bl ffc4b1ec <== ALWAYS TAKEN rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc2c954: 3d 20 00 00 lis r9,0 ffc2c958: 81 29 63 d0 lwz r9,25552(r9) * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c95c: 3f 80 ff c6 lis r28,-58 ffc2c960: 3b 9c 44 94 addi r28,r28,17556 *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; ffc2c964: 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); ffc2c968: 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; ffc2c96c: 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); ffc2c970: 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; ffc2c974: 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); ffc2c978: 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; ffc2c97c: 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); ffc2c980: 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; ffc2c984: 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); ffc2c988: 38 e0 00 00 li r7,0 ffc2c98c: 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; ffc2c990: 91 5b 00 1c stw r10,28(r27) ffc2c994: 91 7b 00 20 stw r11,32(r27) ffc2c998: 90 1b 00 24 stw r0,36(r27) ffc2c99c: 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*/ ffc2c9a0: 81 21 00 08 lwz r9,8(r1) /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc2c9a4: 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*/ ffc2c9a8: 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); ffc2c9ac: 4b fd b9 91 bl ffc0833c <== ALWAYS TAKEN rtems_filesystem_root = loc; ffc2c9b0: 81 3e 35 2c lwz r9,13612(r30) ffc2c9b4: 81 41 00 10 lwz r10,16(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c9b8: 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; ffc2c9bc: 81 61 00 14 lwz r11,20(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c9c0: 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; ffc2c9c4: 80 01 00 18 lwz r0,24(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c9c8: 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; ffc2c9cc: 81 01 00 0c lwz r8,12(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c9d0: 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; ffc2c9d4: 91 49 00 1c stw r10,28(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c9d8: 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; ffc2c9dc: 91 09 00 18 stw r8,24(r9) ffc2c9e0: 91 69 00 20 stw r11,32(r9) ffc2c9e4: 90 09 00 24 stw r0,36(r9) ffc2c9e8: 80 01 00 1c lwz r0,28(r1) ffc2c9ec: 90 09 00 28 stw r0,40(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc2c9f0: 4b fd b9 4d bl ffc0833c <== ALWAYS TAKEN rtems_filesystem_current = loc; ffc2c9f4: 80 01 00 18 lwz r0,24(r1) ffc2c9f8: 81 3e 35 2c lwz r9,13612(r30) ffc2c9fc: 81 41 00 10 lwz r10,16(r1) ffc2ca00: 81 61 00 14 lwz r11,20(r1) ffc2ca04: 81 01 00 0c lwz r8,12(r1) ffc2ca08: 91 49 00 08 stw r10,8(r9) ffc2ca0c: 91 09 00 04 stw r8,4(r9) <== ALWAYS TAKEN ffc2ca10: 91 69 00 0c stw r11,12(r9) ffc2ca14: 90 09 00 10 stw r0,16(r9) ffc2ca18: 80 01 00 1c lwz r0,28(r1) ffc2ca1c: 90 09 00 14 stw r0,20(r9) return RTEMS_SUCCESSFUL; } ffc2ca20: 80 01 00 44 lwz r0,68(r1) ffc2ca24: 7f e3 fb 78 mr r3,r31 ffc2ca28: 83 61 00 2c lwz r27,44(r1) ffc2ca2c: 7c 08 03 a6 mtlr r0 ffc2ca30: 83 81 00 30 lwz r28,48(r1) ffc2ca34: 83 a1 00 34 lwz r29,52(r1) ffc2ca38: 83 c1 00 38 lwz r30,56(r1) ffc2ca3c: 83 e1 00 3c lwz r31,60(r1) ffc2ca40: 38 21 00 40 addi r1,r1,64 ffc2ca44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2c7c4 : * 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) { ffc2c7c4: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc2c7c8: 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); ffc2c7cc: 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) { ffc2c7d0: 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); ffc2c7d4: 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) { ffc2c7d8: 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); ffc2c7dc: 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) { ffc2c7e0: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc2c7e4: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc2c7e8: 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); ffc2c7ec: 4b fe 10 09 bl ffc0d7f4 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc2c7f0: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc2c7f4: 40 82 00 88 bne- ffc2c87c <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { ffc2c7f8: 3c 80 00 00 lis r4,0 <== NOT EXECUTED ffc2c7fc: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2c800: 83 e4 35 2c lwz r31,13612(r4) <== NOT EXECUTED ffc2c804: 38 84 35 2c addi r4,r4,13612 <== NOT EXECUTED ffc2c808: 81 3f 00 00 lwz r9,0(r31) <== NOT EXECUTED ffc2c80c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc2c810: 40 be 00 18 bne+ cr7,ffc2c828 <== 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); ffc2c814: 48 00 24 89 bl ffc2ec9c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc2c818: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc2c81c: 40 a2 00 60 bne+ ffc2c87c <== NOT EXECUTED free_user_env(tmp); ffc2c820: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2c824: 4b ff ff 19 bl ffc2c73c <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, ffc2c828: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc2c82c: 3b df 35 2c addi r30,r31,13612 <== NOT EXECUTED ffc2c830: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2c834: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2c838: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc2c83c: 48 00 25 01 bl ffc2ed3c <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) ffc2c840: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc2c844: 40 a2 00 28 bne+ ffc2c86c <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); ffc2c848: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc2c84c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2c850: 38 a5 c7 3c addi r5,r5,-14532 <== NOT EXECUTED ffc2c854: 48 00 23 7d bl ffc2ebd0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc2c858: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc2c85c: 40 a2 00 10 bne+ ffc2c86c <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; ffc2c860: 81 21 00 08 lwz r9,8(r1) <== NOT EXECUTED ffc2c864: 91 3f 35 2c stw r9,13612(r31) <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; ffc2c868: 48 00 00 14 b ffc2c87c <== NOT EXECUTED bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; ffc2c86c: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc2c870: 39 6b 63 dc addi r11,r11,25564 <== NOT EXECUTED ffc2c874: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2c878: 91 69 35 2c stw r11,13612(r9) <== NOT EXECUTED return sc; } ffc2c87c: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED ffc2c880: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc2c884: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc2c888: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2c88c: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc2c890: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc2c894: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc2c898: 4e 80 00 20 blr <== NOT EXECUTED ffc0d1ac : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { ffc0d1ac: 54 60 07 7c rlwinm r0,r3,0,29,30 ffc0d1b0: 2f 80 00 06 cmpwi cr7,r0,6 ffc0d1b4: 38 00 00 02 li r0,2 ffc0d1b8: 41 9e 00 18 beq- cr7,ffc0d1d0 <== NEVER TAKEN fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { ffc0d1bc: 54 69 ff fe rlwinm r9,r3,31,31,31 ffc0d1c0: 31 29 ff ff addic r9,r9,-1 ffc0d1c4: 7d 29 49 10 subfe r9,r9,r9 ffc0d1c8: 54 60 f7 fe rlwinm r0,r3,30,31,31 ffc0d1cc: 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 ) { ffc0d1d0: 70 69 00 01 andi. r9,r3,1 ffc0d1d4: 41 82 00 08 beq- ffc0d1dc fcntl_flags |= O_NONBLOCK; ffc0d1d8: 60 00 40 00 ori r0,r0,16384 } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { ffc0d1dc: 70 69 02 00 andi. r9,r3,512 ffc0d1e0: 41 82 00 08 beq- ffc0d1e8 fcntl_flags |= O_APPEND; ffc0d1e4: 60 00 00 08 ori r0,r0,8 } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { ffc0d1e8: 70 69 04 00 andi. r9,r3,1024 ffc0d1ec: 41 82 00 08 beq- ffc0d1f4 fcntl_flags |= O_CREAT; ffc0d1f0: 60 00 02 00 ori r0,r0,512 } return fcntl_flags; } ffc0d1f4: 7c 03 03 78 mr r3,r0 ffc0d1f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cd0 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { ffc08cd0: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc08cd4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { ffc08cd8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc08cdc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc08ce0: 80 69 34 dc lwz r3,13532(r9) <== NOT EXECUTED ffc08ce4: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { ffc08ce8: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc08cec: 48 00 6a 39 bl ffc0f724 <_Protected_heap_Get_block_size> <== NOT EXECUTED ffc08cf0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc08cf4: 41 9e 00 2c beq- cr7,ffc08d20 <== NOT EXECUTED MSBUMP(lifetime_freed, size); ffc08cf8: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc08cfc: 81 41 00 08 lwz r10,8(r1) <== NOT EXECUTED ffc08d00: 39 6b 63 a0 addi r11,r11,25504 <== NOT EXECUTED ffc08d04: 80 ab 00 28 lwz r5,40(r11) <== NOT EXECUTED ffc08d08: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc08d0c: 80 cb 00 2c lwz r6,44(r11) <== NOT EXECUTED ffc08d10: 7d 0a 30 14 addc r8,r10,r6 <== NOT EXECUTED ffc08d14: 7c e9 29 14 adde r7,r9,r5 <== NOT EXECUTED ffc08d18: 90 eb 00 28 stw r7,40(r11) <== NOT EXECUTED ffc08d1c: 91 0b 00 2c stw r8,44(r11) <== NOT EXECUTED } } ffc08d20: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc08d24: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc08d28: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc08d2c: 4e 80 00 20 blr <== NOT EXECUTED ffc08d30 : { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) ffc08d30: 7c 64 1b 79 mr. r4,r3 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { ffc08d34: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc08d38: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc08d3c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) ffc08d40: 41 82 00 5c beq- ffc08d9c <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; ffc08d44: 7c 25 0b 78 mr r5,r1 <== NOT EXECUTED ffc08d48: 38 00 00 00 li r0,0 <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); ffc08d4c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; ffc08d50: 94 05 00 08 stwu r0,8(r5) <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); ffc08d54: 80 69 34 dc lwz r3,13532(r9) <== NOT EXECUTED ffc08d58: 48 00 69 cd bl ffc0f724 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); ffc08d5c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc08d60: 39 29 63 a0 addi r9,r9,25504 <== NOT EXECUTED ffc08d64: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc08d68: 80 a9 00 20 lwz r5,32(r9) <== NOT EXECUTED ffc08d6c: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc08d70: 80 c9 00 24 lwz r6,36(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); ffc08d74: 80 09 00 2c lwz r0,44(r9) <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); ffc08d78: 7d 0c 30 14 addc r8,r12,r6 <== NOT EXECUTED ffc08d7c: 7c eb 29 14 adde r7,r11,r5 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) ffc08d80: 81 69 00 18 lwz r11,24(r9) <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); ffc08d84: 90 e9 00 20 stw r7,32(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); ffc08d88: 7c 00 40 50 subf r0,r0,r8 <== NOT EXECUTED if (current_depth > s->max_depth) ffc08d8c: 7f 80 58 40 cmplw cr7,r0,r11 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); ffc08d90: 91 09 00 24 stw r8,36(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) ffc08d94: 40 9d 00 08 ble- cr7,ffc08d9c <== NOT EXECUTED s->max_depth = current_depth; ffc08d98: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED } ffc08d9c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc08da0: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc08da4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc08da8: 4e 80 00 20 blr <== NOT EXECUTED ffc08dac : #include #include static void rtems_malloc_statistics_initialize( void ) { ffc08dac: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc08db0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); ffc08db4: 3c 60 00 00 lis r3,0 <== NOT EXECUTED ffc08db8: 38 63 63 a0 addi r3,r3,25504 <== NOT EXECUTED #include #include static void rtems_malloc_statistics_initialize( void ) { ffc08dbc: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); ffc08dc0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc08dc4: 38 a0 00 30 li r5,48 <== NOT EXECUTED ffc08dc8: 48 04 26 5d bl ffc4b424 <== NOT EXECUTED } ffc08dcc: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc08dd0: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc08dd4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc08dd8: 4e 80 00 20 blr <== NOT EXECUTED ffc13100 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc13100: 94 21 ff e8 stwu r1,-24(r1) ffc13104: 7c 08 02 a6 mflr r0 ffc13108: 93 e1 00 14 stw r31,20(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc1310c: 7c 7f 1b 79 mr. r31,r3 int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc13110: 93 a1 00 0c stw r29,12(r1) ffc13114: 7c bd 2b 78 mr r29,r5 ffc13118: 93 c1 00 10 stw r30,16(r1) ffc1311c: 7c 9e 23 78 mr r30,r4 ffc13120: 90 01 00 1c stw r0,28(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc13124: 41 82 00 7c beq- ffc131a0 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && ffc13128: 3d 20 00 00 lis r9,0 ffc1312c: 80 09 27 f4 lwz r0,10228(r9) ffc13130: 2f 80 00 03 cmpwi cr7,r0,3 * Parameter error checks */ if ( !pointer ) return EINVAL; *pointer = NULL; ffc13134: 38 00 00 00 li r0,0 ffc13138: 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()) && ffc1313c: 40 be 00 10 bne+ cr7,ffc1314c <== NEVER TAKEN ffc13140: 4b ff 29 11 bl ffc05a50 <== ALWAYS TAKEN ffc13144: 2f 83 00 00 cmpwi cr7,r3,0 ffc13148: 41 9e 00 58 beq- cr7,ffc131a0 <== NEVER TAKEN /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); ffc1314c: 4b ff 29 79 bl ffc05ac4 <== ALWAYS TAKEN uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); ffc13150: 3d 20 00 00 lis r9,0 ffc13154: 80 69 26 bc lwz r3,9916(r9) ffc13158: 7f c5 f3 78 mr r5,r30 ffc1315c: 7f a4 eb 78 mr r4,r29 <== ALWAYS TAKEN ffc13160: 38 c0 00 00 li r6,0 ffc13164: 4b ff 88 99 bl ffc0b9fc <_Protected_heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) ffc13168: 7c 7e 1b 79 mr. r30,r3 ffc1316c: 38 60 00 0c li r3,12 ffc13170: 41 82 00 34 beq- ffc131a4 return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) ffc13174: 3d 20 00 00 lis r9,0 ffc13178: 81 29 27 28 lwz r9,10024(r9) ffc1317c: 2f 89 00 00 cmpwi cr7,r9,0 ffc13180: 41 9e 00 14 beq- cr7,ffc13194 <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->at_malloc)(pointer); ffc13184: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc13188: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1318c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc13190: 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; ffc13194: 93 df 00 00 stw r30,0(r31) ffc13198: 38 60 00 00 li r3,0 return 0; ffc1319c: 48 00 00 08 b ffc131a4 <== ALWAYS TAKEN ffc131a0: 38 60 00 16 li r3,22 } ffc131a4: 80 01 00 1c lwz r0,28(r1) ffc131a8: 83 a1 00 0c lwz r29,12(r1) <== ALWAYS TAKEN ffc131ac: 7c 08 03 a6 mtlr r0 ffc131b0: 83 c1 00 10 lwz r30,16(r1) ffc131b4: 83 e1 00 14 lwz r31,20(r1) ffc131b8: 38 21 00 18 addi r1,r1,24 ffc131bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15fa8 : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { ffc15fa8: 94 21 ff d0 stwu r1,-48(r1) ffc15fac: 7c 08 02 a6 mflr r0 ffc15fb0: 93 81 00 20 stw r28,32(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) ffc15fb4: 7c 9c 23 79 mr. r28,r4 rtems_id id, const void *buffer, size_t size, uint32_t *count ) { ffc15fb8: 93 a1 00 24 stw r29,36(r1) ffc15fbc: 7c bd 2b 78 mr r29,r5 ffc15fc0: 93 c1 00 28 stw r30,40(r1) ffc15fc4: 7c 7e 1b 78 mr r30,r3 ffc15fc8: 93 e1 00 2c stw r31,44(r1) ffc15fcc: 7c df 33 78 mr r31,r6 ffc15fd0: 90 01 00 34 stw r0,52(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status core_status; if ( !buffer ) ffc15fd4: 41 82 00 64 beq- ffc16038 return RTEMS_INVALID_ADDRESS; if ( !count ) ffc15fd8: 2f 86 00 00 cmpwi cr7,r6,0 ffc15fdc: 41 9e 00 5c beq- cr7,ffc16038 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) ffc15fe0: 3c 60 00 00 lis r3,0 ffc15fe4: 38 63 79 04 addi r3,r3,30980 ffc15fe8: 7f c4 f3 78 mr r4,r30 ffc15fec: 38 a1 00 08 addi r5,r1,8 ffc15ff0: 48 00 61 a9 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc15ff4: 80 01 00 08 lwz r0,8(r1) ffc15ff8: 7c 69 1b 78 mr r9,r3 ffc15ffc: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc16000: 38 60 00 04 li r3,4 ffc16004: 40 9e 00 38 bne- cr7,ffc1603c case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( ffc16008: 7f 84 e3 78 mr r4,r28 ffc1600c: 7f a5 eb 78 mr r5,r29 ffc16010: 7f c6 f3 78 mr r6,r30 ffc16014: 7f e8 fb 78 mr r8,r31 ffc16018: 38 69 00 14 addi r3,r9,20 ffc1601c: 38 e0 00 00 li r7,0 ffc16020: 48 00 43 25 bl ffc1a344 <_CORE_message_queue_Broadcast> <== ALWAYS TAKEN NULL, #endif count ); _Thread_Enable_dispatch(); ffc16024: 90 61 00 18 stw r3,24(r1) ffc16028: 48 00 6d 39 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Message_queue_Translate_core_message_queue_return_code( core_status ); ffc1602c: 80 61 00 18 lwz r3,24(r1) ffc16030: 48 00 04 59 bl ffc16488 <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN #endif count ); _Thread_Enable_dispatch(); return ffc16034: 48 00 00 08 b ffc1603c <== ALWAYS TAKEN ffc16038: 38 60 00 09 li r3,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1603c: 80 01 00 34 lwz r0,52(r1) ffc16040: 83 81 00 20 lwz r28,32(r1) ffc16044: 7c 08 03 a6 mtlr r0 ffc16048: 83 a1 00 24 lwz r29,36(r1) ffc1604c: 83 c1 00 28 lwz r30,40(r1) ffc16050: 83 e1 00 2c lwz r31,44(r1) ffc16054: 38 21 00 30 addi r1,r1,48 ffc16058: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1156c : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { ffc1156c: 94 21 ff d0 stwu r1,-48(r1) ffc11570: 7c 08 02 a6 mflr r0 ffc11574: 93 e1 00 2c stw r31,44(r1) <== ALWAYS TAKEN CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) ffc11578: 7c 7f 1b 79 mr. r31,r3 ffc1157c: 38 60 00 03 li r3,3 uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { ffc11580: 93 41 00 18 stw r26,24(r1) ffc11584: 7c da 33 78 mr r26,r6 ffc11588: 93 61 00 1c stw r27,28(r1) ffc1158c: 7c 9b 23 78 mr r27,r4 ffc11590: 93 81 00 20 stw r28,32(r1) ffc11594: 7c bc 2b 78 mr r28,r5 ffc11598: 93 a1 00 24 stw r29,36(r1) ffc1159c: 7c fd 3b 78 mr r29,r7 ffc115a0: 90 01 00 34 stw r0,52(r1) ffc115a4: 93 c1 00 28 stw r30,40(r1) CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) ffc115a8: 41 82 00 bc beq- ffc11664 return RTEMS_INVALID_NAME; if ( !id ) ffc115ac: 2f 87 00 00 cmpwi cr7,r7,0 ffc115b0: 38 60 00 09 li r3,9 ffc115b4: 41 9e 00 b0 beq- cr7,ffc11664 if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) ffc115b8: 2f 84 00 00 cmpwi cr7,r4,0 ffc115bc: 38 60 00 0a li r3,10 ffc115c0: 41 9e 00 a4 beq- cr7,ffc11664 return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) ffc115c4: 2f 85 00 00 cmpwi cr7,r5,0 ffc115c8: 38 60 00 08 li r3,8 ffc115cc: 41 be 00 98 beq+ cr7,ffc11664 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc115d0: 3d 20 00 00 lis r9,0 ffc115d4: 81 69 28 10 lwz r11,10256(r9) ffc115d8: 38 0b 00 01 addi r0,r11,1 ffc115dc: 90 09 28 10 stw r0,10256(r9) #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); ffc115e0: 48 00 72 95 bl ffc18874 <_Message_queue_Allocate> <== ALWAYS TAKEN if ( !the_message_queue ) { ffc115e4: 7c 7e 1b 79 mr. r30,r3 ffc115e8: 40 a2 00 10 bne+ ffc115f8 _Thread_Enable_dispatch(); ffc115ec: 48 00 36 21 bl ffc14c0c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc115f0: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc115f4: 48 00 00 70 b ffc11664 <== ALWAYS TAKEN } #endif the_message_queue->attribute_set = attribute_set; if (_Attributes_Is_priority( attribute_set ) ) ffc115f8: 73 40 00 04 andi. r0,r26,4 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; ffc115fc: 93 5e 00 10 stw r26,16(r30) if (_Attributes_Is_priority( attribute_set ) ) ffc11600: 41 82 00 08 beq- ffc11608 the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; ffc11604: 38 00 00 01 li r0,1 else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize( ffc11608: 7f 65 db 78 mr r5,r27 the_message_queue->attribute_set = attribute_set; if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; ffc1160c: 90 01 00 08 stw r0,8(r1) if ( ! _CORE_message_queue_Initialize( ffc11610: 7f 86 e3 78 mr r6,r28 ffc11614: 38 7e 00 14 addi r3,r30,20 ffc11618: 38 81 00 08 addi r4,r1,8 ffc1161c: 48 00 17 01 bl ffc12d1c <_CORE_message_queue_Initialize> <== ALWAYS TAKEN ffc11620: 2f 83 00 00 cmpwi cr7,r3,0 ffc11624: 3c 60 00 00 lis r3,0 ffc11628: 38 63 36 64 addi r3,r3,13924 ffc1162c: 40 9e 00 18 bne- cr7,ffc11644 */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); ffc11630: 7f c4 f3 78 mr r4,r30 ffc11634: 48 00 28 35 bl ffc13e68 <_Objects_Free> <== ALWAYS TAKEN _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); ffc11638: 48 00 35 d5 bl ffc14c0c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1163c: 38 60 00 0d li r3,13 return RTEMS_UNSATISFIED; ffc11640: 48 00 00 24 b ffc11664 <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc11644: 80 1e 00 08 lwz r0,8(r30) ffc11648: 81 63 00 1c lwz r11,28(r3) ffc1164c: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc11650: 93 fe 00 0c stw r31,12(r30) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc11654: 7f cb 49 2e stwx r30,r11,r9 &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; ffc11658: 90 1d 00 00 stw r0,0(r29) name, 0 ); #endif _Thread_Enable_dispatch(); ffc1165c: 48 00 35 b1 bl ffc14c0c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc11660: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc11664: 80 01 00 34 lwz r0,52(r1) ffc11668: 83 41 00 18 lwz r26,24(r1) ffc1166c: 7c 08 03 a6 mtlr r0 ffc11670: 83 61 00 1c lwz r27,28(r1) ffc11674: 83 81 00 20 lwz r28,32(r1) ffc11678: 83 a1 00 24 lwz r29,36(r1) ffc1167c: 83 c1 00 28 lwz r30,40(r1) ffc11680: 83 e1 00 2c lwz r31,44(r1) ffc11684: 38 21 00 30 addi r1,r1,48 ffc11688: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1627c : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { ffc1627c: 94 21 ff e0 stwu r1,-32(r1) ffc16280: 7c 08 02 a6 mflr r0 ffc16284: 7c 64 1b 78 mr r4,r3 ffc16288: 93 c1 00 18 stw r30,24(r1) RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) ffc1628c: 3f c0 00 00 lis r30,0 ffc16290: 3b de 3e 24 addi r30,r30,15908 ffc16294: 7f c3 f3 78 mr r3,r30 ffc16298: 90 01 00 24 stw r0,36(r1) ffc1629c: 38 a1 00 08 addi r5,r1,8 ffc162a0: 93 e1 00 1c stw r31,28(r1) ffc162a4: 4b ff 84 1d bl ffc0e6c0 <_Objects_Get> <== ALWAYS TAKEN ffc162a8: 7c 7f 1b 78 mr r31,r3 register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc162ac: 80 01 00 08 lwz r0,8(r1) ffc162b0: 38 60 00 04 li r3,4 ffc162b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc162b8: 40 9e 00 34 bne- cr7,ffc162ec case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, ffc162bc: 7f c3 f3 78 mr r3,r30 ffc162c0: 7f e4 fb 78 mr r4,r31 ffc162c4: 4b ff 7e fd bl ffc0e1c0 <_Objects_Close> <== ALWAYS TAKEN &the_message_queue->Object ); _CORE_message_queue_Close( ffc162c8: 38 a0 00 05 li r5,5 ffc162cc: 38 7f 00 14 addi r3,r31,20 ffc162d0: 38 80 00 00 li r4,0 ffc162d4: 48 00 07 c5 bl ffc16a98 <_CORE_message_queue_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); ffc162d8: 7f c3 f3 78 mr r3,r30 ffc162dc: 7f e4 fb 78 mr r4,r31 ffc162e0: 4b ff 82 21 bl ffc0e500 <_Objects_Free> <== ALWAYS TAKEN 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); ffc162e4: 4b ff 8f a5 bl ffc0f288 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc162e8: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc162ec: 80 01 00 24 lwz r0,36(r1) ffc162f0: 83 c1 00 18 lwz r30,24(r1) ffc162f4: 7c 08 03 a6 mtlr r0 ffc162f8: 83 e1 00 1c lwz r31,28(r1) ffc162fc: 38 21 00 20 addi r1,r1,32 ffc16300: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16204 : rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { ffc16204: 94 21 ff e0 stwu r1,-32(r1) ffc16208: 7c 08 02 a6 mflr r0 ffc1620c: 93 e1 00 1c stw r31,28(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) ffc16210: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { ffc16214: 7c 64 1b 78 mr r4,r3 ffc16218: 90 01 00 24 stw r0,36(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) ffc1621c: 38 00 00 09 li r0,9 ffc16220: 41 82 00 38 beq- ffc16258 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) ffc16224: 3c 60 00 00 lis r3,0 ffc16228: 38 63 79 04 addi r3,r3,30980 ffc1622c: 38 a1 00 08 addi r5,r1,8 ffc16230: 48 00 5f 69 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc16234: 81 21 00 08 lwz r9,8(r1) ffc16238: 38 00 00 04 li r0,4 ffc1623c: 2f 89 00 00 cmpwi cr7,r9,0 ffc16240: 40 9e 00 18 bne- cr7,ffc16258 case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); ffc16244: 38 63 00 14 addi r3,r3,20 ffc16248: 48 00 42 01 bl ffc1a448 <_CORE_message_queue_Flush> <== ALWAYS TAKEN ffc1624c: 90 7f 00 00 stw r3,0(r31) _Thread_Enable_dispatch(); ffc16250: 48 00 6b 11 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16254: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc16258: 7c 03 03 78 mr r3,r0 ffc1625c: 80 01 00 24 lwz r0,36(r1) ffc16260: 83 e1 00 1c lwz r31,28(r1) ffc16264: 38 21 00 20 addi r1,r1,32 ffc16268: 7c 08 03 a6 mtlr r0 ffc1626c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16270 : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { ffc16270: 94 21 ff e0 stwu r1,-32(r1) ffc16274: 7c 08 02 a6 mflr r0 ffc16278: 93 e1 00 1c stw r31,28(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) ffc1627c: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { ffc16280: 7c 64 1b 78 mr r4,r3 ffc16284: 90 01 00 24 stw r0,36(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) ffc16288: 38 00 00 09 li r0,9 ffc1628c: 41 82 00 34 beq- ffc162c0 ffc16290: 3c 60 00 00 lis r3,0 ffc16294: 38 63 79 04 addi r3,r3,30980 ffc16298: 38 a1 00 08 addi r5,r1,8 ffc1629c: 48 00 5e fd bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc162a0: 81 21 00 08 lwz r9,8(r1) ffc162a4: 38 00 00 04 li r0,4 ffc162a8: 2f 89 00 00 cmpwi cr7,r9,0 ffc162ac: 40 9e 00 14 bne- cr7,ffc162c0 case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; ffc162b0: 80 03 00 5c lwz r0,92(r3) ffc162b4: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc162b8: 48 00 6a a9 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc162bc: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc162c0: 7c 03 03 78 mr r3,r0 ffc162c4: 80 01 00 24 lwz r0,36(r1) ffc162c8: 83 e1 00 1c lwz r31,28(r1) ffc162cc: 38 21 00 20 addi r1,r1,32 ffc162d0: 7c 08 03 a6 mtlr r0 ffc162d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1168c : rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc1168c: 94 21 ff f8 stwu r1,-8(r1) ffc11690: 7c 08 02 a6 mflr r0 ffc11694: 7c 69 1b 78 mr r9,r3 ffc11698: 90 01 00 0c stw r0,12(r1) Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1169c: 3c 60 00 00 lis r3,0 rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc116a0: 7c 80 23 78 mr r0,r4 ffc116a4: 7c a6 2b 78 mr r6,r5 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc116a8: 7d 24 4b 78 mr r4,r9 ffc116ac: 7c 05 03 78 mr r5,r0 ffc116b0: 38 63 36 64 addi r3,r3,13924 ffc116b4: 48 00 2b 45 bl ffc141f8 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN node, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc116b8: 80 01 00 0c lwz r0,12(r1) ffc116bc: 3d 20 ff c3 lis r9,-61 ffc116c0: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc116c4: 54 63 10 3a rlwinm r3,r3,2,0,29 node, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc116c8: 39 29 bc 58 addi r9,r9,-17320 ffc116cc: 7c 69 18 2e lwzx r3,r9,r3 ffc116d0: 38 21 00 08 addi r1,r1,8 ffc116d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc116d8 : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { ffc116d8: 94 21 ff d8 stwu r1,-40(r1) ffc116dc: 7c 08 02 a6 mflr r0 ffc116e0: 93 a1 00 1c stw r29,28(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) ffc116e4: 7c 9d 23 79 mr. r29,r4 void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { ffc116e8: 7c 64 1b 78 mr r4,r3 ffc116ec: 93 81 00 18 stw r28,24(r1) ffc116f0: 7c dc 33 78 mr r28,r6 ffc116f4: 93 c1 00 20 stw r30,32(r1) ffc116f8: 7c fe 3b 78 mr r30,r7 ffc116fc: 93 e1 00 24 stw r31,36(r1) ffc11700: 7c bf 2b 78 mr r31,r5 ffc11704: 90 01 00 2c stw r0,44(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) ffc11708: 41 82 00 68 beq- ffc11770 return RTEMS_INVALID_ADDRESS; if ( !size ) ffc1170c: 2f 85 00 00 cmpwi cr7,r5,0 ffc11710: 41 9e 00 60 beq- cr7,ffc11770 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) ffc11714: 3c 60 00 00 lis r3,0 ffc11718: 38 63 36 64 addi r3,r3,13924 ffc1171c: 38 a1 00 08 addi r5,r1,8 ffc11720: 48 00 29 09 bl ffc14028 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc11724: 80 01 00 08 lwz r0,8(r1) ffc11728: 7c 69 1b 78 mr r9,r3 ffc1172c: 2f 80 00 00 cmpwi cr7,r0,0 ffc11730: 38 60 00 04 li r3,4 ffc11734: 40 9e 00 40 bne- cr7,ffc11774 if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( ffc11738: 80 89 00 08 lwz r4,8(r9) ffc1173c: 6b 87 00 01 xori r7,r28,1 ffc11740: 38 69 00 14 addi r3,r9,20 ffc11744: 7f a5 eb 78 mr r5,r29 ffc11748: 7f e6 fb 78 mr r6,r31 ffc1174c: 54 e7 07 fe clrlwi r7,r7,31 ffc11750: 7f c8 f3 78 mr r8,r30 ffc11754: 48 00 16 b5 bl ffc12e08 <_CORE_message_queue_Seize> <== ALWAYS TAKEN buffer, size, wait, timeout ); _Thread_Enable_dispatch(); ffc11758: 48 00 34 b5 bl ffc14c0c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Message_queue_Translate_core_message_queue_return_code( ffc1175c: 3d 20 00 00 lis r9,0 ffc11760: 81 29 28 50 lwz r9,10320(r9) ffc11764: 80 69 00 34 lwz r3,52(r9) ffc11768: 48 00 00 d5 bl ffc1183c <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN ffc1176c: 48 00 00 08 b ffc11774 <== ALWAYS TAKEN ffc11770: 38 60 00 09 li r3,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc11774: 80 01 00 2c lwz r0,44(r1) ffc11778: 83 81 00 18 lwz r28,24(r1) ffc1177c: 7c 08 03 a6 mtlr r0 ffc11780: 83 a1 00 1c lwz r29,28(r1) ffc11784: 83 c1 00 20 lwz r30,32(r1) ffc11788: 83 e1 00 24 lwz r31,36(r1) ffc1178c: 38 21 00 28 addi r1,r1,40 ffc11790: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11794 : rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { ffc11794: 94 21 ff d0 stwu r1,-48(r1) ffc11798: 7c 08 02 a6 mflr r0 ffc1179c: 93 a1 00 24 stw r29,36(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) ffc117a0: 7c 9d 23 79 mr. r29,r4 rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { ffc117a4: 93 c1 00 28 stw r30,40(r1) ffc117a8: 7c be 2b 78 mr r30,r5 ffc117ac: 93 e1 00 2c stw r31,44(r1) ffc117b0: 7c 7f 1b 78 mr r31,r3 register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) ffc117b4: 38 60 00 09 li r3,9 rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { ffc117b8: 90 01 00 34 stw r0,52(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) ffc117bc: 41 82 00 64 beq- ffc11820 ffc117c0: 3c 60 00 00 lis r3,0 ffc117c4: 38 63 36 64 addi r3,r3,13924 ffc117c8: 7f e4 fb 78 mr r4,r31 ffc117cc: 38 a1 00 08 addi r5,r1,8 ffc117d0: 48 00 28 59 bl ffc14028 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc117d4: 80 01 00 08 lwz r0,8(r1) ffc117d8: 7c 69 1b 78 mr r9,r3 ffc117dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc117e0: 38 60 00 04 li r3,4 ffc117e4: 40 9e 00 3c bne- cr7,ffc11820 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( ffc117e8: 3d 00 7f ff lis r8,32767 ffc117ec: 7f a4 eb 78 mr r4,r29 ffc117f0: 7f c5 f3 78 mr r5,r30 ffc117f4: 7f e6 fb 78 mr r6,r31 ffc117f8: 61 08 ff ff ori r8,r8,65535 ffc117fc: 38 69 00 14 addi r3,r9,20 ffc11800: 38 e0 00 00 li r7,0 ffc11804: 39 20 00 00 li r9,0 ffc11808: 39 40 00 00 li r10,0 ffc1180c: 48 00 17 55 bl ffc12f60 <_CORE_message_queue_Submit> <== ALWAYS TAKEN MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); ffc11810: 90 61 00 18 stw r3,24(r1) ffc11814: 48 00 33 f9 bl ffc14c0c <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* * Since this API does not allow for blocking sends, we can directly * return the returned status. */ return _Message_queue_Translate_core_message_queue_return_code(status); ffc11818: 80 61 00 18 lwz r3,24(r1) ffc1181c: 48 00 00 21 bl ffc1183c <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc11820: 80 01 00 34 lwz r0,52(r1) ffc11824: 83 a1 00 24 lwz r29,36(r1) ffc11828: 7c 08 03 a6 mtlr r0 ffc1182c: 83 c1 00 28 lwz r30,40(r1) ffc11830: 83 e1 00 2c lwz r31,44(r1) ffc11834: 38 21 00 30 addi r1,r1,48 ffc11838: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1649c : rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { ffc1649c: 94 21 ff d0 stwu r1,-48(r1) ffc164a0: 7c 08 02 a6 mflr r0 ffc164a4: 93 a1 00 24 stw r29,36(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) ffc164a8: 7c 9d 23 79 mr. r29,r4 rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { ffc164ac: 93 c1 00 28 stw r30,40(r1) ffc164b0: 7c be 2b 78 mr r30,r5 ffc164b4: 93 e1 00 2c stw r31,44(r1) ffc164b8: 7c 7f 1b 78 mr r31,r3 register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) ffc164bc: 38 60 00 09 li r3,9 rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { ffc164c0: 90 01 00 34 stw r0,52(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) ffc164c4: 41 82 00 60 beq- ffc16524 ffc164c8: 3c 60 00 00 lis r3,0 ffc164cc: 38 63 79 04 addi r3,r3,30980 ffc164d0: 7f e4 fb 78 mr r4,r31 ffc164d4: 38 a1 00 08 addi r5,r1,8 ffc164d8: 48 00 5c c1 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc164dc: 80 01 00 08 lwz r0,8(r1) ffc164e0: 7c 69 1b 78 mr r9,r3 ffc164e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc164e8: 38 60 00 04 li r3,4 ffc164ec: 40 9e 00 38 bne- cr7,ffc16524 CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( ffc164f0: 7f a4 eb 78 mr r4,r29 ffc164f4: 7f c5 f3 78 mr r5,r30 ffc164f8: 7f e6 fb 78 mr r6,r31 ffc164fc: 38 69 00 14 addi r3,r9,20 ffc16500: 38 e0 00 00 li r7,0 ffc16504: 3d 00 80 00 lis r8,-32768 ffc16508: 39 20 00 00 li r9,0 ffc1650c: 39 40 00 00 li r10,0 ffc16510: 48 00 42 11 bl ffc1a720 <_CORE_message_queue_Submit> <== ALWAYS TAKEN id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); ffc16514: 90 61 00 18 stw r3,24(r1) ffc16518: 48 00 68 49 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* * Since this API does not allow for blocking sends, we can directly * return the returned status. */ return _Message_queue_Translate_core_message_queue_return_code(status); ffc1651c: 80 61 00 18 lwz r3,24(r1) ffc16520: 4b ff ff 69 bl ffc16488 <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc16524: 80 01 00 34 lwz r0,52(r1) ffc16528: 83 a1 00 24 lwz r29,36(r1) ffc1652c: 7c 08 03 a6 mtlr r0 ffc16530: 83 c1 00 28 lwz r30,40(r1) ffc16534: 83 e1 00 2c lwz r31,44(r1) ffc16538: 38 21 00 30 addi r1,r1,48 ffc1653c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07f9c : #include int rtems_object_api_maximum_class( int api ) { ffc07f9c: 94 21 ff f8 stwu r1,-8(r1) ffc07fa0: 7c 08 02 a6 mflr r0 ffc07fa4: 90 01 00 0c stw r0,12(r1) return _Objects_API_maximum_class(api); ffc07fa8: 48 00 1b 89 bl ffc09b30 <_Objects_API_maximum_class> <== ALWAYS TAKEN } ffc07fac: 80 01 00 0c lwz r0,12(r1) ffc07fb0: 38 21 00 08 addi r1,r1,8 ffc07fb4: 7c 08 03 a6 mtlr r0 ffc07fb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07fbc : */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) ffc07fbc: 38 63 ff ff addi r3,r3,-1 ffc07fc0: 20 63 00 03 subfic r3,r3,3 ffc07fc4: 7c 63 19 10 subfe r3,r3,r3 ) { if ( _Objects_Is_api_valid( api ) ) return 1; return -1; } ffc07fc8: 60 63 00 01 ori r3,r3,1 ffc07fcc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07fd0 : ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) ffc07fd0: 2f 83 00 01 cmpwi cr7,r3,1 const char *rtems_object_get_api_class_name( int the_api, int the_class ) { ffc07fd4: 94 21 ff f8 stwu r1,-8(r1) ffc07fd8: 7c 08 02 a6 mflr r0 ffc07fdc: 90 01 00 0c stw r0,12(r1) const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) ffc07fe0: 40 be 00 10 bne+ cr7,ffc07ff0 ffc07fe4: 3c 60 00 00 lis r3,0 ffc07fe8: 38 63 21 94 addi r3,r3,8596 ffc07fec: 48 00 00 3c b ffc08028 <== ALWAYS TAKEN api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) ffc07ff0: 2f 83 00 02 cmpwi cr7,r3,2 ffc07ff4: 40 be 00 14 bne+ cr7,ffc08008 ffc07ff8: 3c 60 00 00 lis r3,0 ffc07ffc: 38 63 21 94 addi r3,r3,8596 ffc08000: 38 63 00 18 addi r3,r3,24 ffc08004: 48 00 00 24 b ffc08028 <== ALWAYS TAKEN api_assoc = rtems_object_api_classic_assoc; #ifdef RTEMS_POSIX_API else if ( the_api == OBJECTS_POSIX_API ) ffc08008: 2f 83 00 03 cmpwi cr7,r3,3 ffc0800c: 41 9e 00 10 beq- cr7,ffc0801c ffc08010: 3c 60 ff c2 lis r3,-62 ffc08014: 38 63 1e 25 addi r3,r3,7717 ffc08018: 48 00 00 2c b ffc08044 <== ALWAYS TAKEN ffc0801c: 3c 60 00 00 lis r3,0 ffc08020: 38 63 21 94 addi r3,r3,8596 ffc08024: 38 63 00 90 addi r3,r3,144 else if ( the_api == OBJECTS_ITRON_API ) api_assoc = rtems_object_api_itron_assoc; #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); ffc08028: 48 00 59 25 bl ffc0d94c <== ALWAYS TAKEN if ( class_assoc ) ffc0802c: 2c 03 00 00 cmpwi r3,0 ffc08030: 40 a2 00 10 bne+ ffc08040 ffc08034: 3c 60 ff c2 lis r3,-62 ffc08038: 38 63 1e 2d addi r3,r3,7725 ffc0803c: 48 00 00 08 b ffc08044 <== ALWAYS TAKEN return class_assoc->name; ffc08040: 80 63 00 00 lwz r3,0(r3) return "BAD CLASS"; } ffc08044: 80 01 00 0c lwz r0,12(r1) ffc08048: 38 21 00 08 addi r1,r1,8 ffc0804c: 7c 08 03 a6 mtlr r0 ffc08050: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08054 : }; const char *rtems_object_get_api_name( int api ) { ffc08054: 94 21 ff f8 stwu r1,-8(r1) ffc08058: 7c 08 02 a6 mflr r0 ffc0805c: 7c 64 1b 78 mr r4,r3 const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); ffc08060: 3c 60 00 00 lis r3,0 }; const char *rtems_object_get_api_name( int api ) { ffc08064: 90 01 00 0c stw r0,12(r1) const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); ffc08068: 38 63 22 b4 addi r3,r3,8884 ffc0806c: 48 00 58 e1 bl ffc0d94c <== ALWAYS TAKEN if ( api_assoc ) ffc08070: 2c 03 00 00 cmpwi r3,0 ffc08074: 40 a2 00 10 bne+ ffc08084 ffc08078: 3c 60 ff c2 lis r3,-62 ffc0807c: 38 63 1e 2d addi r3,r3,7725 ffc08080: 48 00 00 08 b ffc08088 <== ALWAYS TAKEN return api_assoc->name; ffc08084: 80 63 00 00 lwz r3,0(r3) return "BAD CLASS"; } ffc08088: 80 01 00 0c lwz r0,12(r1) ffc0808c: 38 21 00 08 addi r1,r1,8 ffc08090: 7c 08 03 a6 mtlr r0 ffc08094: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09bbc : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { ffc09bbc: 94 21 ff f0 stwu r1,-16(r1) ffc09bc0: 7c 08 02 a6 mflr r0 ffc09bc4: 93 e1 00 0c stw r31,12(r1) int i; /* * Validate parameters and look up information structure. */ if ( !info ) ffc09bc8: 7c bf 2b 79 mr. r31,r5 rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { ffc09bcc: 90 01 00 14 stw r0,20(r1) int i; /* * Validate parameters and look up information structure. */ if ( !info ) ffc09bd0: 38 00 00 09 li r0,9 ffc09bd4: 41 82 00 6c beq- ffc09c40 return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); ffc09bd8: 48 00 21 01 bl ffc0bcd8 <_Objects_Get_information> <== ALWAYS TAKEN if ( !obj_info ) ffc09bdc: 38 00 00 0a li r0,10 ffc09be0: 2c 03 00 00 cmpwi r3,0 ffc09be4: 41 82 00 5c beq- ffc09c40 return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; ffc09be8: 80 03 00 08 lwz r0,8(r3) info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; ffc09bec: 39 20 00 01 li r9,1 /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; ffc09bf0: 89 43 00 12 lbz r10,18(r3) return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; ffc09bf4: 90 1f 00 00 stw r0,0(r31) info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; ffc09bf8: a1 63 00 10 lhz r11,16(r3) /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; ffc09bfc: 80 03 00 0c lwz r0,12(r3) info->auto_extend = obj_info->auto_extend; ffc09c00: 99 5f 00 0c stb r10,12(r31) /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; ffc09c04: 90 1f 00 04 stw r0,4(r31) info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; ffc09c08: 38 00 00 00 li r0,0 ffc09c0c: 91 7f 00 08 stw r11,8(r31) for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) ffc09c10: 48 00 00 18 b ffc09c28 <== ALWAYS TAKEN if ( !obj_info->local_table[i] ) ffc09c14: 81 03 00 1c lwz r8,28(r3) ffc09c18: 7d 48 50 2e lwzx r10,r8,r10 unallocated++; ffc09c1c: 21 0a 00 00 subfic r8,r10,0 ffc09c20: 7d 00 01 94 addze r8,r0 ffc09c24: 7d 00 43 78 mr r0,r8 info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) ffc09c28: 7f 89 58 40 cmplw cr7,r9,r11 if ( !obj_info->local_table[i] ) ffc09c2c: 55 2a 10 3a rlwinm r10,r9,2,0,29 info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) ffc09c30: 39 29 00 01 addi r9,r9,1 ffc09c34: 40 9d ff e0 ble+ cr7,ffc09c14 if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; ffc09c38: 90 1f 00 10 stw r0,16(r31) ffc09c3c: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc09c40: 7c 03 03 78 mr r3,r0 ffc09c44: 80 01 00 14 lwz r0,20(r1) ffc09c48: 83 e1 00 0c lwz r31,12(r1) ffc09c4c: 38 21 00 10 addi r1,r1,16 ffc09c50: 7c 08 03 a6 mtlr r0 ffc09c54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c320 : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { ffc0c320: 94 21 ff e0 stwu r1,-32(r1) ffc0c324: 7c 08 02 a6 mflr r0 ffc0c328: 93 e1 00 1c stw r31,28(r1) Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) ffc0c32c: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { ffc0c330: 90 01 00 24 stw r0,36(r1) Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) ffc0c334: 38 00 00 09 li r0,9 ffc0c338: 41 82 00 24 beq- ffc0c35c return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); ffc0c33c: 38 81 00 08 addi r4,r1,8 ffc0c340: 48 00 24 11 bl ffc0e750 <_Objects_Id_to_name> <== ALWAYS TAKEN *name = name_u.name_u32; ffc0c344: 80 01 00 08 lwz r0,8(r1) return _Status_Object_name_errors_to_status[ status ]; ffc0c348: 3d 20 ff c3 lis r9,-61 ffc0c34c: 54 63 10 3a rlwinm r3,r3,2,0,29 if ( !name ) return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); *name = name_u.name_u32; ffc0c350: 90 1f 00 00 stw r0,0(r31) return _Status_Object_name_errors_to_status[ status ]; ffc0c354: 39 29 d5 b8 addi r9,r9,-10824 ffc0c358: 7c 09 18 2e lwzx r0,r9,r3 } ffc0c35c: 7c 03 03 78 mr r3,r0 ffc0c360: 80 01 00 24 lwz r0,36(r1) ffc0c364: 83 e1 00 1c lwz r31,28(r1) ffc0c368: 38 21 00 20 addi r1,r1,32 ffc0c36c: 7c 08 03 a6 mtlr r0 ffc0c370: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16594 : char *rtems_object_get_name( Objects_Id id, size_t length, char *name ) { ffc16594: 94 21 ff f8 stwu r1,-8(r1) ffc16598: 7c 08 02 a6 mflr r0 ffc1659c: 90 01 00 0c stw r0,12(r1) return _Objects_Get_name_as_string( id, length, name ); ffc165a0: 48 00 0e cd bl ffc1746c <_Objects_Get_name_as_string> <== ALWAYS TAKEN } ffc165a4: 80 01 00 0c lwz r0,12(r1) ffc165a8: 38 21 00 08 addi r1,r1,8 ffc165ac: 7c 08 03 a6 mtlr r0 ffc165b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c78 : #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { return OBJECTS_ITRON_API; } ffc09c78: 38 60 00 04 li r3,4 ffc09c7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c80 : #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { return OBJECTS_INTERNAL_API; } ffc09c80: 38 60 00 01 li r3,1 ffc09c84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c88 : int rtems_object_id_get_api( rtems_id id ) { return _Objects_Get_API( id ); } ffc09c88: 54 63 47 7e rlwinm r3,r3,8,29,31 ffc09c8c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c90 : int rtems_object_id_get_class( rtems_id id ) { return _Objects_Get_class( id ); } ffc09c90: 54 63 2e fe rlwinm r3,r3,5,27,31 ffc09c94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09c98 : int rtems_object_id_get_index( rtems_id id ) { return _Objects_Get_index( id ); } ffc09c98: 54 63 04 3e clrlwi r3,r3,16 ffc09c9c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09ca0 : int rtems_object_id_get_node( rtems_id id ) { return _Objects_Get_node( id ); } ffc09ca0: 54 63 86 3e rlwinm r3,r3,16,24,31 ffc09ca4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc080b8 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { ffc080b8: 94 21 ff d8 stwu r1,-40(r1) ffc080bc: 7c 08 02 a6 mflr r0 ffc080c0: 93 c1 00 20 stw r30,32(r1) Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) ffc080c4: 7c 9e 23 79 mr. r30,r4 */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { ffc080c8: 90 01 00 2c stw r0,44(r1) Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) ffc080cc: 38 00 00 09 li r0,9 */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { ffc080d0: 93 a1 00 1c stw r29,28(r1) ffc080d4: 93 e1 00 24 stw r31,36(r1) Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) ffc080d8: 41 82 00 64 beq- ffc0813c return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc080dc: 2f 83 00 00 cmpwi cr7,r3,0 ffc080e0: 7c 7d 1b 78 mr r29,r3 ffc080e4: 40 9e 00 10 bne- cr7,ffc080f4 ffc080e8: 3d 20 00 00 lis r9,0 ffc080ec: 81 29 29 54 lwz r9,10580(r9) ffc080f0: 83 a9 00 08 lwz r29,8(r9) information = _Objects_Get_information_id( tmpId ); ffc080f4: 7f a3 eb 78 mr r3,r29 ffc080f8: 48 00 1e 41 bl ffc09f38 <_Objects_Get_information_id> <== ALWAYS TAKEN if ( !information ) ffc080fc: 7c 7f 1b 79 mr. r31,r3 ffc08100: 41 82 00 38 beq- ffc08138 return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); ffc08104: 7f a4 eb 78 mr r4,r29 ffc08108: 38 a1 00 08 addi r5,r1,8 ffc0810c: 48 00 20 85 bl ffc0a190 <_Objects_Get> <== ALWAYS TAKEN switch ( location ) { ffc08110: 80 01 00 08 lwz r0,8(r1) information = _Objects_Get_information_id( tmpId ); if ( !information ) return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); ffc08114: 7c 64 1b 78 mr r4,r3 switch ( location ) { ffc08118: 2f 80 00 00 cmpwi cr7,r0,0 ffc0811c: 40 9e 00 1c bne- cr7,ffc08138 case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); ffc08120: 7f c5 f3 78 mr r5,r30 ffc08124: 7f e3 fb 78 mr r3,r31 ffc08128: 48 00 22 c5 bl ffc0a3ec <_Objects_Set_name> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0812c: 48 00 2c 85 bl ffc0adb0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08130: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc08134: 48 00 00 08 b ffc0813c <== ALWAYS TAKEN ffc08138: 38 00 00 04 li r0,4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0813c: 7c 03 03 78 mr r3,r0 ffc08140: 80 01 00 2c lwz r0,44(r1) ffc08144: 83 a1 00 1c lwz r29,28(r1) ffc08148: 7c 08 03 a6 mtlr r0 ffc0814c: 83 c1 00 20 lwz r30,32(r1) ffc08150: 83 e1 00 24 lwz r31,36(r1) ffc08154: 38 21 00 28 addi r1,r1,40 ffc08158: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a254 : void rtems_panic( const char *printf_format, ... ) { ffc0a254: 94 21 ff 88 stwu r1,-120(r1) <== NOT EXECUTED ffc0a258: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a25c: 90 81 00 1c stw r4,28(r1) <== NOT EXECUTED ffc0a260: 90 01 00 7c stw r0,124(r1) <== NOT EXECUTED ffc0a264: 90 a1 00 20 stw r5,32(r1) <== NOT EXECUTED ffc0a268: 90 c1 00 24 stw r6,36(r1) <== NOT EXECUTED ffc0a26c: 90 e1 00 28 stw r7,40(r1) <== NOT EXECUTED ffc0a270: 91 01 00 2c stw r8,44(r1) <== NOT EXECUTED ffc0a274: 91 21 00 30 stw r9,48(r1) <== NOT EXECUTED ffc0a278: 91 41 00 34 stw r10,52(r1) <== NOT EXECUTED ffc0a27c: 40 86 00 24 bne- cr1,ffc0a2a0 <== NOT EXECUTED ffc0a280: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc0a284: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc0a288: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc0a28c: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc0a290: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc0a294: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc0a298: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc0a29c: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0a2a0: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0a2a4: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0a2a8: 38 00 00 00 li r0,0 <== NOT EXECUTED void rtems_panic( const char *printf_format, ... ) { ffc0a2ac: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0a2b0: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0a2b4: 38 01 00 80 addi r0,r1,128 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a2b8: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0a2bc: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a2c0: 3c 60 20 00 lis r3,8192 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0a2c4: 38 01 00 18 addi r0,r1,24 <== NOT EXECUTED ffc0a2c8: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0a2cc: 4b ff fd 8d bl ffc0a058 <== NOT EXECUTED va_end(arglist); } ffc0a2d0: 80 01 00 7c lwz r0,124(r1) <== NOT EXECUTED ffc0a2d4: 38 21 00 78 addi r1,r1,120 <== NOT EXECUTED ffc0a2d8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a2dc: 4e 80 00 20 blr <== NOT EXECUTED ffc16540 : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { ffc16540: 94 21 ff d0 stwu r1,-48(r1) ffc16544: 7c 08 02 a6 mflr r0 ffc16548: 93 e1 00 2c stw r31,44(r1) register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) ffc1654c: 7c 7f 1b 79 mr. r31,r3 ffc16550: 38 60 00 03 li r3,3 uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { ffc16554: 93 41 00 18 stw r26,24(r1) ffc16558: 7c fa 3b 78 mr r26,r7 ffc1655c: 93 81 00 20 stw r28,32(r1) ffc16560: 7d 1c 43 78 mr r28,r8 ffc16564: 93 c1 00 28 stw r30,40(r1) ffc16568: 7c be 2b 78 mr r30,r5 ffc1656c: 90 01 00 34 stw r0,52(r1) ffc16570: 93 21 00 14 stw r25,20(r1) ffc16574: 93 61 00 1c stw r27,28(r1) ffc16578: 93 a1 00 24 stw r29,36(r1) register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) ffc1657c: 41 82 00 d0 beq- ffc1664c return RTEMS_INVALID_NAME; if ( !starting_address ) ffc16580: 2f 84 00 00 cmpwi cr7,r4,0 ffc16584: 41 9e 00 bc beq- cr7,ffc16640 return RTEMS_INVALID_ADDRESS; if ( !id ) ffc16588: 2f 88 00 00 cmpwi cr7,r8,0 ffc1658c: 41 9e 00 b4 beq- cr7,ffc16640 <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || ffc16590: 2f 85 00 00 cmpwi cr7,r5,0 ffc16594: 41 9e 00 b4 beq- cr7,ffc16648 ffc16598: 2f 86 00 00 cmpwi cr7,r6,0 ffc1659c: 41 9e 00 ac beq- cr7,ffc16648 ffc165a0: 7f 85 30 40 cmplw cr7,r5,r6 ffc165a4: 41 9c 00 a4 blt- cr7,ffc16648 ffc165a8: 70 c0 00 07 andi. r0,r6,7 ffc165ac: 40 82 00 9c bne- ffc16648 !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) ffc165b0: 70 99 00 07 andi. r25,r4,7 ffc165b4: 40 a2 00 8c bne+ ffc16640 ffc165b8: 3d 20 00 00 lis r9,0 ffc165bc: 81 69 28 68 lwz r11,10344(r9) ffc165c0: 38 0b 00 01 addi r0,r11,1 ffc165c4: 90 09 28 68 stw r0,10344(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 ); ffc165c8: 3f 60 00 00 lis r27,0 ffc165cc: 90 81 00 08 stw r4,8(r1) ffc165d0: 3b 7b 6e ec addi r27,r27,28396 ffc165d4: 7f 63 db 78 mr r3,r27 ffc165d8: 90 c1 00 0c stw r6,12(r1) ffc165dc: 48 00 55 c9 bl ffc1bba4 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { ffc165e0: 7c 7d 1b 79 mr. r29,r3 ffc165e4: 80 81 00 08 lwz r4,8(r1) ffc165e8: 80 c1 00 0c lwz r6,12(r1) ffc165ec: 40 a2 00 10 bne+ ffc165fc _Thread_Enable_dispatch(); ffc165f0: 48 00 67 71 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc165f4: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc165f8: 48 00 00 54 b ffc1664c <== ALWAYS TAKEN 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, ffc165fc: 7c be 33 96 divwu r5,r30,r6 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; ffc16600: 90 9d 00 10 stw r4,16(r29) the_partition->length = length; the_partition->buffer_size = buffer_size; ffc16604: 90 dd 00 18 stw r6,24(r29) the_partition->attribute_set = attribute_set; ffc16608: 93 5d 00 1c stw r26,28(r29) the_partition->number_of_used_blocks = 0; ffc1660c: 93 3d 00 20 stw r25,32(r29) return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; ffc16610: 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, ffc16614: 38 7d 00 24 addi r3,r29,36 ffc16618: 48 00 3c f1 bl ffc1a308 <_Chain_Initialize> <== ALWAYS TAKEN ffc1661c: 80 1d 00 08 lwz r0,8(r29) ffc16620: 81 7b 00 1c lwz r11,28(r27) ffc16624: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc16628: 93 fd 00 0c stw r31,12(r29) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc1662c: 7f ab 49 2e stwx r29,r11,r9 &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; ffc16630: 90 1c 00 00 stw r0,0(r28) name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); ffc16634: 48 00 67 2d bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16638: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc1663c: 48 00 00 10 b ffc1664c <== ALWAYS TAKEN ffc16640: 38 60 00 09 li r3,9 ffc16644: 48 00 00 08 b ffc1664c <== ALWAYS TAKEN ffc16648: 38 60 00 08 li r3,8 } ffc1664c: 80 01 00 34 lwz r0,52(r1) ffc16650: 83 21 00 14 lwz r25,20(r1) ffc16654: 7c 08 03 a6 mtlr r0 ffc16658: 83 41 00 18 lwz r26,24(r1) ffc1665c: 83 61 00 1c lwz r27,28(r1) ffc16660: 83 81 00 20 lwz r28,32(r1) ffc16664: 83 a1 00 24 lwz r29,36(r1) ffc16668: 83 c1 00 28 lwz r30,40(r1) ffc1666c: 83 e1 00 2c lwz r31,44(r1) ffc16670: 38 21 00 30 addi r1,r1,48 ffc16674: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16678 : */ rtems_status_code rtems_partition_delete( rtems_id id ) { ffc16678: 94 21 ff e0 stwu r1,-32(r1) ffc1667c: 7c 08 02 a6 mflr r0 ffc16680: 7c 64 1b 78 mr r4,r3 ffc16684: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) ffc16688: 3f e0 00 00 lis r31,0 ffc1668c: 3b ff 6e ec addi r31,r31,28396 ffc16690: 7f e3 fb 78 mr r3,r31 ffc16694: 90 01 00 24 stw r0,36(r1) ffc16698: 38 a1 00 08 addi r5,r1,8 ffc1669c: 93 c1 00 18 stw r30,24(r1) ffc166a0: 48 00 5a f9 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN ffc166a4: 7c 7e 1b 78 mr r30,r3 register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { ffc166a8: 80 01 00 08 lwz r0,8(r1) ffc166ac: 38 60 00 04 li r3,4 ffc166b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc166b4: 40 9e 00 3c bne- cr7,ffc166f0 case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { ffc166b8: 80 1e 00 20 lwz r0,32(r30) ffc166bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc166c0: 40 be 00 28 bne+ cr7,ffc166e8 _Objects_Close( &_Partition_Information, &the_partition->Object ); ffc166c4: 7f e3 fb 78 mr r3,r31 ffc166c8: 7f c4 f3 78 mr r4,r30 ffc166cc: 48 00 55 85 bl ffc1bc50 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); ffc166d0: 7f e3 fb 78 mr r3,r31 ffc166d4: 7f c4 f3 78 mr r4,r30 ffc166d8: 48 00 58 b9 bl ffc1bf90 <_Objects_Free> <== ALWAYS TAKEN 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); ffc166dc: 48 00 66 85 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc166e0: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc166e4: 48 00 00 0c b ffc166f0 <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc166e8: 48 00 66 79 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc166ec: 38 60 00 0c li r3,12 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc166f0: 80 01 00 24 lwz r0,36(r1) ffc166f4: 83 c1 00 18 lwz r30,24(r1) ffc166f8: 7c 08 03 a6 mtlr r0 ffc166fc: 83 e1 00 1c lwz r31,28(r1) ffc16700: 38 21 00 20 addi r1,r1,32 ffc16704: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16708 : rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { ffc16708: 94 21 ff d8 stwu r1,-40(r1) ffc1670c: 7c 08 02 a6 mflr r0 ffc16710: 93 e1 00 24 stw r31,36(r1) register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) ffc16714: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { ffc16718: 7c 64 1b 78 mr r4,r3 ffc1671c: 90 01 00 2c stw r0,44(r1) register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) ffc16720: 38 60 00 09 li r3,9 rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { ffc16724: 93 a1 00 1c stw r29,28(r1) ffc16728: 93 c1 00 20 stw r30,32(r1) register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) ffc1672c: 41 82 00 5c beq- ffc16788 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) ffc16730: 3c 60 00 00 lis r3,0 ffc16734: 38 63 6e ec addi r3,r3,28396 ffc16738: 38 a1 00 08 addi r5,r1,8 ffc1673c: 48 00 5a 5d bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { ffc16740: 80 01 00 08 lwz r0,8(r1) ffc16744: 7c 7e 1b 78 mr r30,r3 ffc16748: 2f 80 00 00 cmpwi cr7,r0,0 ffc1674c: 38 60 00 04 li r3,4 ffc16750: 40 9e 00 38 bne- cr7,ffc16788 */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); ffc16754: 38 7e 00 24 addi r3,r30,36 ffc16758: 48 00 3b 71 bl ffc1a2c8 <_Chain_Get> <== ALWAYS TAKEN case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { ffc1675c: 7c 7d 1b 79 mr. r29,r3 ffc16760: 41 82 00 20 beq- ffc16780 the_partition->number_of_used_blocks += 1; ffc16764: 81 3e 00 20 lwz r9,32(r30) ffc16768: 38 09 00 01 addi r0,r9,1 ffc1676c: 90 1e 00 20 stw r0,32(r30) _Thread_Enable_dispatch(); ffc16770: 48 00 65 f1 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN *buffer = the_buffer; ffc16774: 93 bf 00 00 stw r29,0(r31) ffc16778: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc1677c: 48 00 00 0c b ffc16788 <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc16780: 48 00 65 e1 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16784: 38 60 00 0d li r3,13 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc16788: 80 01 00 2c lwz r0,44(r1) ffc1678c: 83 a1 00 1c lwz r29,28(r1) ffc16790: 7c 08 03 a6 mtlr r0 ffc16794: 83 c1 00 20 lwz r30,32(r1) ffc16798: 83 e1 00 24 lwz r31,36(r1) ffc1679c: 38 21 00 28 addi r1,r1,40 ffc167a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc167a4 : rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc167a4: 94 21 ff f8 stwu r1,-8(r1) ffc167a8: 7c 08 02 a6 mflr r0 ffc167ac: 7c 69 1b 78 mr r9,r3 ffc167b0: 90 01 00 0c stw r0,12(r1) Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id ); ffc167b4: 3c 60 00 00 lis r3,0 rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc167b8: 7c 80 23 78 mr r0,r4 ffc167bc: 7c a6 2b 78 mr r6,r5 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id ); ffc167c0: 7d 24 4b 78 mr r4,r9 ffc167c4: 7c 05 03 78 mr r5,r0 ffc167c8: 38 63 6e ec addi r3,r3,28396 ffc167cc: 48 00 5c 55 bl ffc1c420 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN return _Status_Object_name_errors_to_status[ status ]; } ffc167d0: 80 01 00 0c lwz r0,12(r1) ffc167d4: 3d 20 ff c4 lis r9,-60 ffc167d8: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id ); ffc167dc: 54 63 10 3a rlwinm r3,r3,2,0,29 return _Status_Object_name_errors_to_status[ status ]; } ffc167e0: 39 29 a9 78 addi r9,r9,-22152 ffc167e4: 7c 69 18 2e lwzx r3,r9,r3 ffc167e8: 38 21 00 08 addi r1,r1,8 ffc167ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc167f0 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { ffc167f0: 94 21 ff e0 stwu r1,-32(r1) ffc167f4: 7c 08 02 a6 mflr r0 ffc167f8: 90 01 00 24 stw r0,36(r1) ffc167fc: 7c 60 1b 78 mr r0,r3 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) ffc16800: 3c 60 00 00 lis r3,0 ffc16804: 93 e1 00 1c stw r31,28(r1) ffc16808: 38 63 6e ec addi r3,r3,28396 ffc1680c: 7c 9f 23 78 mr r31,r4 ffc16810: 38 a1 00 08 addi r5,r1,8 ffc16814: 93 c1 00 18 stw r30,24(r1) ffc16818: 7c 04 03 78 mr r4,r0 ffc1681c: 48 00 59 7d bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { ffc16820: 80 01 00 08 lwz r0,8(r1) ffc16824: 7c 7e 1b 78 mr r30,r3 ffc16828: 2f 80 00 00 cmpwi cr7,r0,0 ffc1682c: 38 60 00 04 li r3,4 ffc16830: 40 9e 00 58 bne- cr7,ffc16888 ) { void *starting; void *ending; starting = the_partition->starting_address; ffc16834: 80 1e 00 10 lwz r0,16(r30) ending = _Addresses_Add_offset( starting, the_partition->length ); ffc16838: 81 3e 00 14 lwz r9,20(r30) const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); ffc1683c: 7f 9f 00 40 cmplw cr7,r31,r0 ffc16840: 41 9c 00 60 blt- cr7,ffc168a0 ffc16844: 7d 20 4a 14 add r9,r0,r9 ffc16848: 7f 9f 48 40 cmplw cr7,r31,r9 ffc1684c: 41 9d 00 54 bgt- cr7,ffc168a0 <== NEVER TAKEN return ( ffc16850: 81 3e 00 18 lwz r9,24(r30) ffc16854: 7c 00 f8 50 subf r0,r0,r31 ffc16858: 7d 60 4b 96 divwu r11,r0,r9 ffc1685c: 7d 2b 49 d6 mullw r9,r11,r9 ffc16860: 7f 80 48 00 cmpw cr7,r0,r9 ffc16864: 40 9e 00 3c bne- cr7,ffc168a0 RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); ffc16868: 38 7e 00 24 addi r3,r30,36 ffc1686c: 7f e4 fb 78 mr r4,r31 ffc16870: 48 00 3a 29 bl ffc1a298 <_Chain_Append> <== ALWAYS TAKEN case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; ffc16874: 81 3e 00 20 lwz r9,32(r30) ffc16878: 38 09 ff ff addi r0,r9,-1 ffc1687c: 90 1e 00 20 stw r0,32(r30) _Thread_Enable_dispatch(); ffc16880: 48 00 64 e1 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16884: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc16888: 80 01 00 24 lwz r0,36(r1) ffc1688c: 83 c1 00 18 lwz r30,24(r1) ffc16890: 7c 08 03 a6 mtlr r0 ffc16894: 83 e1 00 1c lwz r31,28(r1) ffc16898: 38 21 00 20 addi r1,r1,32 ffc1689c: 4e 80 00 20 blr <== ALWAYS TAKEN _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc168a0: 48 00 64 c1 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc168a4: 38 60 00 09 li r3,9 return RTEMS_INVALID_ADDRESS; ffc168a8: 4b ff ff e0 b ffc16888 <== ALWAYS TAKEN ffc0f370 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc0f370: 7c 08 02 a6 mflr r0 ffc0f374: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN if (!rtems_pipe_configured) ffc0f378: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc0f37c: 90 01 00 0c stw r0,12(r1) if (!rtems_pipe_configured) ffc0f380: 88 09 27 04 lbz r0,9988(r9) ffc0f384: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f388: 41 9e 00 48 beq- cr7,ffc0f3d0 <== ALWAYS TAKEN return; if (rtems_pipe_semaphore) ffc0f38c: 3c e0 00 00 lis r7,0 <== NOT EXECUTED ffc0f390: 80 07 29 90 lwz r0,10640(r7) <== NOT EXECUTED ffc0f394: 38 e7 29 90 addi r7,r7,10640 <== NOT EXECUTED ffc0f398: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0f39c: 40 be 00 34 bne+ cr7,ffc0f3d0 <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( ffc0f3a0: 3c 60 50 49 lis r3,20553 <== NOT EXECUTED ffc0f3a4: 60 63 50 45 ori r3,r3,20549 <== NOT EXECUTED ffc0f3a8: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc0f3ac: 38 a0 00 54 li r5,84 <== NOT EXECUTED ffc0f3b0: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc0f3b4: 4b ff 85 3d bl ffc078f0 <== 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) ffc0f3b8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0f3bc: 41 be 00 08 beq+ cr7,ffc0f3c4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc0f3c0: 4b ff 90 2d bl ffc083ec <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); ffc0f3c4: 4b ff 80 b9 bl ffc0747c <== NOT EXECUTED rtems_pipe_no = now; ffc0f3c8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0f3cc: b0 69 27 f8 sth r3,10232(r9) <== NOT EXECUTED } ffc0f3d0: 80 01 00 0c lwz r0,12(r1) ffc0f3d4: 38 21 00 08 addi r1,r1,8 ffc0f3d8: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0f3dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc158dc : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { ffc158dc: 94 21 ff e0 stwu r1,-32(r1) ffc158e0: 7c 08 02 a6 mflr r0 ffc158e4: 93 e1 00 1c stw r31,28(r1) register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) ffc158e8: 7c 7f 1b 79 mr. r31,r3 ffc158ec: 38 60 00 03 li r3,3 void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { ffc158f0: 93 61 00 0c stw r27,12(r1) ffc158f4: 7c fb 3b 78 mr r27,r7 ffc158f8: 93 81 00 10 stw r28,16(r1) ffc158fc: 7c dc 33 78 mr r28,r6 ffc15900: 93 a1 00 14 stw r29,20(r1) ffc15904: 7c bd 2b 78 mr r29,r5 ffc15908: 93 c1 00 18 stw r30,24(r1) ffc1590c: 7c 9e 23 78 mr r30,r4 ffc15910: 90 01 00 24 stw r0,36(r1) ffc15914: 93 41 00 08 stw r26,8(r1) register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) ffc15918: 41 82 00 84 beq- ffc1599c return RTEMS_INVALID_NAME; if ( !id ) ffc1591c: 2f 87 00 00 cmpwi cr7,r7,0 ffc15920: 41 9e 00 78 beq- cr7,ffc15998 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || ffc15924: 7c a0 23 78 or r0,r5,r4 ffc15928: 70 09 00 07 andi. r9,r0,7 ffc1592c: 40 a2 00 6c bne+ ffc15998 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc15930: 3d 20 00 00 lis r9,0 ffc15934: 81 69 28 68 lwz r11,10344(r9) ffc15938: 38 0b 00 01 addi r0,r11,1 ffc1593c: 90 09 28 68 stw r0,10344(r9) * of free port control blocks. */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) ffc15940: 3f 40 00 00 lis r26,0 ffc15944: 3b 5a 6e ac addi r26,r26,28332 ffc15948: 7f 43 d3 78 mr r3,r26 ffc1594c: 48 00 62 59 bl ffc1bba4 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { ffc15950: 2c 03 00 00 cmpwi r3,0 ffc15954: 40 a2 00 10 bne+ ffc15964 _Thread_Enable_dispatch(); ffc15958: 48 00 74 09 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1595c: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc15960: 48 00 00 3c b ffc1599c <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc15964: 80 03 00 08 lwz r0,8(r3) } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; ffc15968: 3b 9c ff ff addi r28,r28,-1 ffc1596c: 81 7a 00 1c lwz r11,28(r26) ffc15970: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc15974: 93 e3 00 0c stw r31,12(r3) ffc15978: 93 83 00 18 stw r28,24(r3) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc1597c: 7c 6b 49 2e stwx r3,r11,r9 if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; ffc15980: 93 c3 00 10 stw r30,16(r3) the_port->external_base = external_start; ffc15984: 93 a3 00 14 stw r29,20(r3) &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; ffc15988: 90 1b 00 00 stw r0,0(r27) _Thread_Enable_dispatch(); ffc1598c: 48 00 73 d5 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc15990: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc15994: 48 00 00 08 b ffc1599c <== ALWAYS TAKEN ffc15998: 38 60 00 09 li r3,9 } ffc1599c: 80 01 00 24 lwz r0,36(r1) ffc159a0: 83 41 00 08 lwz r26,8(r1) ffc159a4: 7c 08 03 a6 mtlr r0 ffc159a8: 83 61 00 0c lwz r27,12(r1) ffc159ac: 83 81 00 10 lwz r28,16(r1) ffc159b0: 83 a1 00 14 lwz r29,20(r1) ffc159b4: 83 c1 00 18 lwz r30,24(r1) ffc159b8: 83 e1 00 1c lwz r31,28(r1) ffc159bc: 38 21 00 20 addi r1,r1,32 ffc159c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc159c4 : */ rtems_status_code rtems_port_delete( rtems_id id ) { ffc159c4: 94 21 ff e0 stwu r1,-32(r1) ffc159c8: 7c 08 02 a6 mflr r0 ffc159cc: 7c 64 1b 78 mr r4,r3 ffc159d0: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get ( Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) ffc159d4: 3f e0 00 00 lis r31,0 ffc159d8: 3b ff 6e ac addi r31,r31,28332 ffc159dc: 7f e3 fb 78 mr r3,r31 ffc159e0: 90 01 00 24 stw r0,36(r1) ffc159e4: 38 a1 00 08 addi r5,r1,8 ffc159e8: 93 c1 00 18 stw r30,24(r1) <== ALWAYS TAKEN ffc159ec: 48 00 67 ad bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN ffc159f0: 7c 7e 1b 78 mr r30,r3 register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { ffc159f4: 80 01 00 08 lwz r0,8(r1) ffc159f8: 38 60 00 04 li r3,4 ffc159fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc15a00: 40 9e 00 24 bne- cr7,ffc15a24 case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); ffc15a04: 7f e3 fb 78 mr r3,r31 ffc15a08: 7f c4 f3 78 mr r4,r30 ffc15a0c: 48 00 62 45 bl ffc1bc50 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Dual_ported_memory_Free ( Dual_ported_memory_Control *the_port ) { _Objects_Free( &_Dual_ported_memory_Information, &the_port->Object ); ffc15a10: 7f e3 fb 78 mr r3,r31 ffc15a14: 7f c4 f3 78 mr r4,r30 ffc15a18: 48 00 65 79 bl ffc1bf90 <_Objects_Free> <== ALWAYS TAKEN _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); ffc15a1c: 48 00 73 45 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc15a20: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc15a24: 80 01 00 24 lwz r0,36(r1) ffc15a28: 83 c1 00 18 lwz r30,24(r1) ffc15a2c: 7c 08 03 a6 mtlr r0 ffc15a30: 83 e1 00 1c lwz r31,28(r1) ffc15a34: 38 21 00 20 addi r1,r1,32 ffc15a38: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15a3c : rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { ffc15a3c: 94 21 ff e0 stwu r1,-32(r1) ffc15a40: 7c 08 02 a6 mflr r0 register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) ffc15a44: 39 20 00 09 li r9,9 rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { ffc15a48: 93 e1 00 1c stw r31,28(r1) register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) ffc15a4c: 7c bf 2b 79 mr. r31,r5 rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { ffc15a50: 90 01 00 24 stw r0,36(r1) ffc15a54: 7c 60 1b 78 mr r0,r3 ffc15a58: 93 c1 00 18 stw r30,24(r1) ffc15a5c: 7c 9e 23 78 mr r30,r4 register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) ffc15a60: 41 82 00 58 beq- ffc15ab8 RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get ( Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) ffc15a64: 3c 60 00 00 lis r3,0 ffc15a68: 7c 04 03 78 mr r4,r0 ffc15a6c: 38 63 6e ac addi r3,r3,28332 ffc15a70: 38 a1 00 08 addi r5,r1,8 ffc15a74: 48 00 67 25 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { ffc15a78: 80 01 00 08 lwz r0,8(r1) ffc15a7c: 39 20 00 04 li r9,4 ffc15a80: 2f 80 00 00 cmpwi cr7,r0,0 ffc15a84: 40 9e 00 34 bne- cr7,ffc15ab8 case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); ffc15a88: 80 03 00 14 lwz r0,20(r3) if ( ending > the_port->length ) ffc15a8c: 81 23 00 18 lwz r9,24(r3) return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); ffc15a90: 7c 00 f0 50 subf r0,r0,r30 if ( ending > the_port->length ) ffc15a94: 7f 80 48 40 cmplw cr7,r0,r9 ffc15a98: 40 9d 00 0c ble- cr7,ffc15aa4 *internal = external; ffc15a9c: 93 df 00 00 stw r30,0(r31) ffc15aa0: 48 00 00 10 b ffc15ab0 <== ALWAYS TAKEN else *internal = _Addresses_Add_offset( the_port->internal_base, ffc15aa4: 81 23 00 10 lwz r9,16(r3) ffc15aa8: 7c 09 02 14 add r0,r9,r0 ffc15aac: 90 1f 00 00 stw r0,0(r31) ending ); _Thread_Enable_dispatch(); ffc15ab0: 48 00 72 b1 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc15ab4: 39 20 00 00 li r9,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc15ab8: 80 01 00 24 lwz r0,36(r1) ffc15abc: 7d 23 4b 78 mr r3,r9 ffc15ac0: 83 c1 00 18 lwz r30,24(r1) ffc15ac4: 7c 08 03 a6 mtlr r0 ffc15ac8: 83 e1 00 1c lwz r31,28(r1) ffc15acc: 38 21 00 20 addi r1,r1,32 ffc15ad0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15ad4 : rtems_status_code rtems_port_ident( rtems_name name, rtems_id *id ) { ffc15ad4: 94 21 ff f8 stwu r1,-8(r1) ffc15ad8: 7c 08 02 a6 mflr r0 ffc15adc: 7c 86 23 78 mr r6,r4 ffc15ae0: 90 01 00 0c stw r0,12(r1) ffc15ae4: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc15ae8: 3c 60 00 00 lis r3,0 ffc15aec: 7c 04 03 78 mr r4,r0 ffc15af0: 38 63 6e ac addi r3,r3,28332 ffc15af4: 38 a0 00 00 li r5,0 ffc15af8: 48 00 69 29 bl ffc1c420 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc15afc: 80 01 00 0c lwz r0,12(r1) ffc15b00: 3d 20 ff c4 lis r9,-60 ffc15b04: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc15b08: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc15b0c: 39 29 a9 78 addi r9,r9,-22152 ffc15b10: 7c 69 18 2e lwzx r3,r9,r3 ffc15b14: 38 21 00 08 addi r1,r1,8 ffc15b18: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15b1c : rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { ffc15b1c: 94 21 ff e0 stwu r1,-32(r1) ffc15b20: 7c 08 02 a6 mflr r0 register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) ffc15b24: 39 20 00 09 li r9,9 rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { ffc15b28: 93 e1 00 1c stw r31,28(r1) register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) ffc15b2c: 7c bf 2b 79 mr. r31,r5 rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { ffc15b30: 90 01 00 24 stw r0,36(r1) ffc15b34: 7c 60 1b 78 mr r0,r3 ffc15b38: 93 c1 00 18 stw r30,24(r1) ffc15b3c: 7c 9e 23 78 mr r30,r4 register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) ffc15b40: 41 82 00 58 beq- ffc15b98 ffc15b44: 3c 60 00 00 lis r3,0 ffc15b48: 7c 04 03 78 mr r4,r0 ffc15b4c: 38 63 6e ac addi r3,r3,28332 ffc15b50: 38 a1 00 08 addi r5,r1,8 ffc15b54: 48 00 66 45 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { ffc15b58: 80 01 00 08 lwz r0,8(r1) ffc15b5c: 39 20 00 04 li r9,4 ffc15b60: 2f 80 00 00 cmpwi cr7,r0,0 ffc15b64: 40 9e 00 34 bne- cr7,ffc15b98 case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); ffc15b68: 80 03 00 10 lwz r0,16(r3) if ( ending > the_port->length ) ffc15b6c: 81 23 00 18 lwz r9,24(r3) the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); ffc15b70: 7c 00 f0 50 subf r0,r0,r30 if ( ending > the_port->length ) ffc15b74: 7f 80 48 40 cmplw cr7,r0,r9 ffc15b78: 40 9d 00 0c ble- cr7,ffc15b84 *external = internal; ffc15b7c: 93 df 00 00 stw r30,0(r31) ffc15b80: 48 00 00 10 b ffc15b90 <== ALWAYS TAKEN else *external = _Addresses_Add_offset( the_port->external_base, ffc15b84: 81 23 00 14 lwz r9,20(r3) ffc15b88: 7c 09 02 14 add r0,r9,r0 ffc15b8c: 90 1f 00 00 stw r0,0(r31) ending ); _Thread_Enable_dispatch(); ffc15b90: 48 00 71 d1 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc15b94: 39 20 00 00 li r9,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc15b98: 80 01 00 24 lwz r0,36(r1) ffc15b9c: 7d 23 4b 78 mr r3,r9 ffc15ba0: 83 c1 00 18 lwz r30,24(r1) ffc15ba4: 7c 08 03 a6 mtlr r0 ffc15ba8: 83 e1 00 1c lwz r31,28(r1) ffc15bac: 38 21 00 20 addi r1,r1,32 ffc15bb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc168ac : */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { ffc168ac: 94 21 ff e0 stwu r1,-32(r1) ffc168b0: 7c 08 02 a6 mflr r0 ffc168b4: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) ffc168b8: 3c 60 00 00 lis r3,0 ffc168bc: 93 c1 00 18 stw r30,24(r1) ffc168c0: 38 63 6f 2c addi r3,r3,28460 ffc168c4: 38 a1 00 08 addi r5,r1,8 ffc168c8: 93 e1 00 1c stw r31,28(r1) ffc168cc: 90 01 00 24 stw r0,36(r1) ffc168d0: 48 00 58 c9 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN ffc168d4: 7c 7f 1b 78 mr r31,r3 Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc168d8: 83 c1 00 08 lwz r30,8(r1) ffc168dc: 38 60 00 04 li r3,4 ffc168e0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc168e4: 40 9e 00 38 bne- cr7,ffc1691c case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { ffc168e8: 3d 20 00 00 lis r9,0 ffc168ec: 80 09 28 a8 lwz r0,10408(r9) ffc168f0: 81 3f 00 40 lwz r9,64(r31) ffc168f4: 7f 89 00 00 cmpw cr7,r9,r0 ffc168f8: 41 9e 00 10 beq- cr7,ffc16908 _Thread_Enable_dispatch(); ffc168fc: 48 00 64 65 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16900: 38 60 00 17 li r3,23 return RTEMS_NOT_OWNER_OF_RESOURCE; ffc16904: 48 00 00 18 b ffc1691c <== ALWAYS TAKEN } (void) _Watchdog_Remove( &the_period->Timer ); ffc16908: 38 7f 00 10 addi r3,r31,16 ffc1690c: 48 00 7f 79 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN the_period->state = RATE_MONOTONIC_INACTIVE; ffc16910: 93 df 00 38 stw r30,56(r31) _Thread_Enable_dispatch(); ffc16914: 48 00 64 4d bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16918: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1691c: 80 01 00 24 lwz r0,36(r1) ffc16920: 83 c1 00 18 lwz r30,24(r1) ffc16924: 7c 08 03 a6 mtlr r0 ffc16928: 83 e1 00 1c lwz r31,28(r1) ffc1692c: 38 21 00 20 addi r1,r1,32 ffc16930: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cd4 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { ffc08cd4: 94 21 ff e8 stwu r1,-24(r1) ffc08cd8: 7c 08 02 a6 mflr r0 ffc08cdc: 93 81 00 08 stw r28,8(r1) Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) ffc08ce0: 7c 7c 1b 79 mr. r28,r3 ffc08ce4: 38 60 00 03 li r3,3 rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { ffc08ce8: 93 c1 00 10 stw r30,16(r1) ffc08cec: 7c 9e 23 78 mr r30,r4 ffc08cf0: 90 01 00 1c stw r0,28(r1) ffc08cf4: 93 a1 00 0c stw r29,12(r1) ffc08cf8: 93 e1 00 14 stw r31,20(r1) Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) ffc08cfc: 41 82 00 b0 beq- ffc08dac return RTEMS_INVALID_NAME; if ( !id ) ffc08d00: 2f 84 00 00 cmpwi cr7,r4,0 ffc08d04: 38 60 00 09 li r3,9 ffc08d08: 41 9e 00 a4 beq- cr7,ffc08dac rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08d0c: 3d 20 00 00 lis r9,0 ffc08d10: 81 69 27 f4 lwz r11,10228(r9) ffc08d14: 38 0b 00 01 addi r0,r11,1 ffc08d18: 90 09 27 f4 stw r0,10228(r9) <== ALWAYS TAKEN * This function allocates a period control block from * the inactive chain of free period control blocks. */ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void ) { return (Rate_monotonic_Control *) ffc08d1c: 3f a0 00 00 lis r29,0 ffc08d20: 3b bd 2c 64 addi r29,r29,11364 ffc08d24: 7f a3 eb 78 mr r3,r29 ffc08d28: 48 00 25 f9 bl ffc0b320 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { ffc08d2c: 7c 7f 1b 79 mr. r31,r3 ffc08d30: 40 a2 00 10 bne+ ffc08d40 _Thread_Enable_dispatch(); ffc08d34: 48 00 37 e5 bl ffc0c518 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08d38: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc08d3c: 48 00 00 70 b ffc08dac <== ALWAYS TAKEN } the_period->owner = _Thread_Executing; ffc08d40: 3d 20 00 00 lis r9,0 ffc08d44: 81 29 28 34 lwz r9,10292(r9) the_period->state = RATE_MONOTONIC_INACTIVE; ffc08d48: 38 00 00 00 li r0,0 ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc08d4c: 90 1f 00 34 stw r0,52(r31) _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); ffc08d50: 38 80 00 00 li r4,0 ffc08d54: 38 a0 00 38 li r5,56 if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; ffc08d58: 91 3f 00 40 stw r9,64(r31) the_period->state = RATE_MONOTONIC_INACTIVE; _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); ffc08d5c: 38 7f 00 54 addi r3,r31,84 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; the_period->state = RATE_MONOTONIC_INACTIVE; ffc08d60: 90 1f 00 38 stw r0,56(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc08d64: 90 1f 00 18 stw r0,24(r31) the_watchdog->routine = routine; ffc08d68: 90 1f 00 2c stw r0,44(r31) the_watchdog->id = id; ffc08d6c: 90 1f 00 30 stw r0,48(r31) _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); ffc08d70: 48 00 bf e9 bl ffc14d58 <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc08d74: 81 3f 00 08 lwz r9,8(r31) ffc08d78: 81 5d 00 1c lwz r10,28(r29) ffc08d7c: 3c 00 7f ff lis r0,32767 ffc08d80: 60 00 ff ff ori r0,r0,65535 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc08d84: 93 9f 00 0c stw r28,12(r31) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc08d88: 55 2b 13 ba rlwinm r11,r9,2,14,29 ffc08d8c: 90 1f 00 78 stw r0,120(r31) ffc08d90: 90 1f 00 5c stw r0,92(r31) ffc08d94: 90 1f 00 60 stw r0,96(r31) ffc08d98: 90 1f 00 74 stw r0,116(r31) ffc08d9c: 7f ea 59 2e stwx r31,r10,r11 &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; ffc08da0: 91 3e 00 00 stw r9,0(r30) _Thread_Enable_dispatch(); ffc08da4: 48 00 37 75 bl ffc0c518 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08da8: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc08dac: 80 01 00 1c lwz r0,28(r1) ffc08db0: 83 81 00 08 lwz r28,8(r1) ffc08db4: 7c 08 03 a6 mtlr r0 ffc08db8: 83 a1 00 0c lwz r29,12(r1) ffc08dbc: 83 c1 00 10 lwz r30,16(r1) ffc08dc0: 83 e1 00 14 lwz r31,20(r1) ffc08dc4: 38 21 00 18 addi r1,r1,24 ffc08dc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16a2c : */ rtems_status_code rtems_rate_monotonic_delete( rtems_id id ) { ffc16a2c: 94 21 ff d8 stwu r1,-40(r1) ffc16a30: 7c 08 02 a6 mflr r0 ffc16a34: 7c 64 1b 78 mr r4,r3 ffc16a38: 93 e1 00 24 stw r31,36(r1) RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) ffc16a3c: 3f e0 00 00 lis r31,0 ffc16a40: 3b ff 6f 2c addi r31,r31,28460 ffc16a44: 7f e3 fb 78 mr r3,r31 ffc16a48: 93 a1 00 1c stw r29,28(r1) ffc16a4c: 38 a1 00 08 addi r5,r1,8 ffc16a50: 93 c1 00 20 stw r30,32(r1) ffc16a54: 90 01 00 2c stw r0,44(r1) ffc16a58: 48 00 57 41 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN ffc16a5c: 7c 7e 1b 78 mr r30,r3 Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc16a60: 83 a1 00 08 lwz r29,8(r1) ffc16a64: 38 60 00 04 li r3,4 ffc16a68: 2f 9d 00 00 cmpwi cr7,r29,0 ffc16a6c: 40 9e 00 30 bne- cr7,ffc16a9c case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); ffc16a70: 7f c4 f3 78 mr r4,r30 ffc16a74: 7f e3 fb 78 mr r3,r31 ffc16a78: 48 00 51 d9 bl ffc1bc50 <_Objects_Close> <== ALWAYS TAKEN (void) _Watchdog_Remove( &the_period->Timer ); ffc16a7c: 38 7e 00 10 addi r3,r30,16 ffc16a80: 48 00 7e 05 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN the_period->state = RATE_MONOTONIC_INACTIVE; ffc16a84: 93 be 00 38 stw r29,56(r30) */ RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free ( Rate_monotonic_Control *the_period ) { _Objects_Free( &_Rate_monotonic_Information, &the_period->Object ); ffc16a88: 7f e3 fb 78 mr r3,r31 ffc16a8c: 7f c4 f3 78 mr r4,r30 ffc16a90: 48 00 55 01 bl ffc1bf90 <_Objects_Free> <== ALWAYS TAKEN _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); ffc16a94: 48 00 62 cd bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16a98: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc16a9c: 80 01 00 2c lwz r0,44(r1) ffc16aa0: 83 a1 00 1c lwz r29,28(r1) ffc16aa4: 7c 08 03 a6 mtlr r0 ffc16aa8: 83 c1 00 20 lwz r30,32(r1) ffc16aac: 83 e1 00 24 lwz r31,36(r1) ffc16ab0: 38 21 00 28 addi r1,r1,40 ffc16ab4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc416d4 : rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { ffc416d4: 94 21 ff e0 stwu r1,-32(r1) ffc416d8: 7c 08 02 a6 mflr r0 ffc416dc: 93 e1 00 1c stw r31,28(r1) Objects_Locations location; Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) ffc416e0: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { ffc416e4: 7c 64 1b 78 mr r4,r3 ffc416e8: 90 01 00 24 stw r0,36(r1) Objects_Locations location; Rate_monotonic_Control *the_period; rtems_rate_monotonic_period_statistics *dst; Rate_monotonic_Statistics *src; if ( !statistics ) ffc416ec: 38 60 00 09 li r3,9 ffc416f0: 41 82 00 a0 beq- ffc41790 ffc416f4: 3c 60 00 00 lis r3,0 ffc416f8: 38 63 6f ec addi r3,r3,28652 ffc416fc: 38 a1 00 08 addi r5,r1,8 ffc41700: 4b fc dc 0d bl ffc0f30c <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc41704: 80 01 00 08 lwz r0,8(r1) ffc41708: 7c 69 1b 78 mr r9,r3 ffc4170c: 2f 80 00 00 cmpwi cr7,r0,0 ffc41710: 38 60 00 04 li r3,4 ffc41714: 40 9e 00 7c bne- cr7,ffc41790 case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; ffc41718: 80 09 00 54 lwz r0,84(r9) ffc4171c: 90 1f 00 00 stw r0,0(r31) dst->missed_count = src->missed_count; ffc41720: 80 09 00 58 lwz r0,88(r9) ffc41724: 90 1f 00 04 stw r0,4(r31) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time ); ffc41728: 81 69 00 5c lwz r11,92(r9) ffc4172c: 81 89 00 60 lwz r12,96(r9) ffc41730: 91 7f 00 08 stw r11,8(r31) ffc41734: 91 9f 00 0c stw r12,12(r31) _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); ffc41738: 81 69 00 64 lwz r11,100(r9) ffc4173c: 81 89 00 68 lwz r12,104(r9) ffc41740: 91 7f 00 10 stw r11,16(r31) ffc41744: 91 9f 00 14 stw r12,20(r31) _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); ffc41748: 81 69 00 6c lwz r11,108(r9) ffc4174c: 81 89 00 70 lwz r12,112(r9) ffc41750: 91 7f 00 18 stw r11,24(r31) ffc41754: 91 9f 00 1c stw r12,28(r31) _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); ffc41758: 81 69 00 74 lwz r11,116(r9) ffc4175c: 81 89 00 78 lwz r12,120(r9) ffc41760: 91 7f 00 20 stw r11,32(r31) ffc41764: 91 9f 00 24 stw r12,36(r31) _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); ffc41768: 81 69 00 7c lwz r11,124(r9) ffc4176c: 81 89 00 80 lwz r12,128(r9) ffc41770: 91 7f 00 28 stw r11,40(r31) ffc41774: 91 9f 00 2c stw r12,44(r31) _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); ffc41778: 81 49 00 88 lwz r10,136(r9) ffc4177c: 81 29 00 84 lwz r9,132(r9) ffc41780: 91 5f 00 34 stw r10,52(r31) ffc41784: 91 3f 00 30 stw r9,48(r31) dst->min_wall_time = src->min_wall_time; dst->max_wall_time = src->max_wall_time; dst->total_wall_time = src->total_wall_time; #endif _Thread_Enable_dispatch(); ffc41788: 4b fc e7 c1 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc4178c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc41790: 80 01 00 24 lwz r0,36(r1) ffc41794: 83 e1 00 1c lwz r31,28(r1) ffc41798: 38 21 00 20 addi r1,r1,32 ffc4179c: 7c 08 03 a6 mtlr r0 ffc417a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc417a4 : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { ffc417a4: 94 21 ff d0 stwu r1,-48(r1) ffc417a8: 7c 08 02 a6 mflr r0 ffc417ac: 93 e1 00 2c stw r31,44(r1) Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) ffc417b0: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { ffc417b4: 7c 64 1b 78 mr r4,r3 ffc417b8: 90 01 00 34 stw r0,52(r1) Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) ffc417bc: 38 00 00 09 li r0,9 ffc417c0: 41 82 00 9c beq- ffc4185c ffc417c4: 3c 60 00 00 lis r3,0 ffc417c8: 38 63 6f ec addi r3,r3,28652 ffc417cc: 38 a1 00 08 addi r5,r1,8 ffc417d0: 4b fc db 3d bl ffc0f30c <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc417d4: 81 61 00 08 lwz r11,8(r1) ffc417d8: 38 00 00 04 li r0,4 ffc417dc: 2f 8b 00 00 cmpwi cr7,r11,0 ffc417e0: 40 9e 00 7c bne- cr7,ffc4185c case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; status->state = the_period->state; ffc417e4: 80 03 00 38 lwz r0,56(r3) the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; ffc417e8: 81 23 00 40 lwz r9,64(r3) status->state = the_period->state; /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { ffc417ec: 2f 80 00 00 cmpwi cr7,r0,0 the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; status->state = the_period->state; ffc417f0: 90 1f 00 04 stw r0,4(r31) the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; ffc417f4: 81 29 00 08 lwz r9,8(r9) ffc417f8: 91 3f 00 00 stw r9,0(r31) status->state = the_period->state; /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { ffc417fc: 40 9e 00 18 bne- cr7,ffc41814 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); _Timespec_Set_to_zero( &status->executed_since_last_period ); ffc41800: 90 1f 00 14 stw r0,20(r31) /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); ffc41804: 90 1f 00 08 stw r0,8(r31) ffc41808: 90 1f 00 0c stw r0,12(r31) _Timespec_Set_to_zero( &status->executed_since_last_period ); ffc4180c: 90 1f 00 10 stw r0,16(r31) ffc41810: 48 00 00 44 b ffc41854 <== ALWAYS TAKEN /* * Grab the current status. */ valid_status = _Rate_monotonic_Get_status( ffc41814: 38 81 00 14 addi r4,r1,20 ffc41818: 38 a1 00 0c addi r5,r1,12 ffc4181c: 48 00 00 f5 bl ffc41910 <_Rate_monotonic_Get_status> <== ALWAYS TAKEN the_period, &since_last_period, &executed ); if (!valid_status) { ffc41820: 2f 83 00 00 cmpwi cr7,r3,0 ffc41824: 40 9e 00 10 bne- cr7,ffc41834 _Thread_Enable_dispatch(); ffc41828: 4b fc e7 21 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc4182c: 38 00 00 0b li r0,11 return RTEMS_NOT_DEFINED; ffc41830: 48 00 00 2c b ffc4185c <== ALWAYS TAKEN } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( ffc41834: 81 21 00 14 lwz r9,20(r1) ffc41838: 81 41 00 18 lwz r10,24(r1) ffc4183c: 91 3f 00 08 stw r9,8(r31) ffc41840: 91 5f 00 0c stw r10,12(r31) &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( ffc41844: 81 21 00 0c lwz r9,12(r1) ffc41848: 81 41 00 10 lwz r10,16(r1) ffc4184c: 91 3f 00 10 stw r9,16(r31) ffc41850: 91 5f 00 14 stw r10,20(r31) status->since_last_period = since_last_period; status->executed_since_last_period = executed; #endif } _Thread_Enable_dispatch(); ffc41854: 4b fc e6 f5 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc41858: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc4185c: 7c 03 03 78 mr r3,r0 ffc41860: 80 01 00 34 lwz r0,52(r1) ffc41864: 83 e1 00 2c lwz r31,44(r1) ffc41868: 38 21 00 30 addi r1,r1,48 ffc4186c: 7c 08 03 a6 mtlr r0 ffc41870: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08dcc : rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { ffc08dcc: 94 21 ff f8 stwu r1,-8(r1) ffc08dd0: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc08dd4: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { ffc08dd8: 90 01 00 0c stw r0,12(r1) ffc08ddc: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc08de0: 3c 60 00 00 lis r3,0 rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { ffc08de4: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc08de8: 38 63 2c 64 addi r3,r3,11364 ffc08dec: 7c 04 03 78 mr r4,r0 ffc08df0: 60 a5 ff ff ori r5,r5,65535 ffc08df4: 48 00 2d e5 bl ffc0bbd8 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc08df8: 80 01 00 0c lwz r0,12(r1) ffc08dfc: 3d 20 ff c2 lis r9,-62 ffc08e00: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc08e04: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc08e08: 39 29 35 78 addi r9,r9,13688 ffc08e0c: 7c 69 18 2e lwzx r3,r9,r3 ffc08e10: 38 21 00 08 addi r1,r1,8 ffc08e14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc41b18 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { ffc41b18: 94 21 ff d8 stwu r1,-40(r1) ffc41b1c: 7c 08 02 a6 mflr r0 ffc41b20: 93 c1 00 20 stw r30,32(r1) ffc41b24: 7c 7e 1b 78 mr r30,r3 ffc41b28: 3c 60 00 00 lis r3,0 ffc41b2c: 93 e1 00 24 stw r31,36(r1) ffc41b30: 38 63 6f ec addi r3,r3,28652 ffc41b34: 7c 9f 23 78 mr r31,r4 ffc41b38: 38 a1 00 08 addi r5,r1,8 ffc41b3c: 90 01 00 2c stw r0,44(r1) ffc41b40: 7f c4 f3 78 mr r4,r30 ffc41b44: 93 a1 00 1c stw r29,28(r1) ffc41b48: 93 81 00 18 stw r28,24(r1) ffc41b4c: 4b fc d7 c1 bl ffc0f30c <_Objects_Get> <== ALWAYS TAKEN ffc41b50: 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 ) { ffc41b54: 80 01 00 08 lwz r0,8(r1) ffc41b58: 2f 80 00 00 cmpwi cr7,r0,0 ffc41b5c: 40 9e 01 70 bne- cr7,ffc41ccc case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { ffc41b60: 3d 20 00 00 lis r9,0 ffc41b64: 80 09 36 58 lwz r0,13912(r9) ffc41b68: 81 23 00 40 lwz r9,64(r3) ffc41b6c: 7f 89 00 00 cmpw cr7,r9,r0 ffc41b70: 41 9e 00 10 beq- cr7,ffc41b80 _Thread_Enable_dispatch(); ffc41b74: 4b fc e3 d5 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc41b78: 3b c0 00 17 li r30,23 return RTEMS_NOT_OWNER_OF_RESOURCE; ffc41b7c: 48 00 01 54 b ffc41cd0 <== ALWAYS TAKEN } if ( length == RTEMS_PERIOD_STATUS ) { ffc41b80: 2f 9f 00 00 cmpwi cr7,r31,0 ffc41b84: 40 be 00 28 bne+ cr7,ffc41bac switch ( the_period->state ) { ffc41b88: 80 03 00 38 lwz r0,56(r3) ffc41b8c: 3b c0 00 00 li r30,0 ffc41b90: 2b 80 00 04 cmplwi cr7,r0,4 ffc41b94: 41 9d 01 30 bgt- cr7,ffc41cc4 <== NEVER TAKEN ffc41b98: 3d 20 ff c7 lis r9,-57 ffc41b9c: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc41ba0: 39 29 bd 88 addi r9,r9,-17016 ffc41ba4: 7f c9 00 2e lwzx r30,r9,r0 ffc41ba8: 48 00 01 1c b ffc41cc4 <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc41bac: 7f 80 00 a6 mfmsr r28 ffc41bb0: 7c 10 42 a6 mfsprg r0,0 ffc41bb4: 7f 80 00 78 andc r0,r28,r0 ffc41bb8: 7c 00 01 24 mtmsr r0 _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); switch ( the_period->state ) { ffc41bbc: 80 03 00 38 lwz r0,56(r3) ffc41bc0: 2f 80 00 02 cmpwi cr7,r0,2 ffc41bc4: 41 9e 00 60 beq- cr7,ffc41c24 ffc41bc8: 2f 80 00 04 cmpwi cr7,r0,4 ffc41bcc: 41 9e 00 cc beq- cr7,ffc41c98 ffc41bd0: 2f 80 00 00 cmpwi cr7,r0,0 ffc41bd4: 40 9e 00 f8 bne- cr7,ffc41ccc <== NEVER TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc41bd8: 7f 80 01 24 mtmsr r28 _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); ffc41bdc: 4b ff fc 99 bl ffc41874 <_Rate_monotonic_Initiate_statistics> <== ALWAYS TAKEN the_period->state = RATE_MONOTONIC_ACTIVE; ffc41be0: 39 20 00 02 li r9,2 ffc41be4: 91 3d 00 38 stw r9,56(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc41be8: 3d 20 ff c4 lis r9,-60 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc41bec: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc41bf0: 39 29 1c f4 addi r9,r9,7412 the_watchdog->id = id; ffc41bf4: 93 dd 00 30 stw r30,48(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc41bf8: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc41bfc: 91 3d 00 2c stw r9,44(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc41c00: 38 63 65 e8 addi r3,r3,26088 ffc41c04: 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; ffc41c08: 90 1d 00 34 stw r0,52(r29) ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc41c0c: 3b c0 00 00 li r30,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc41c10: 93 fd 00 1c stw r31,28(r29) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc41c14: 90 1d 00 18 stw r0,24(r29) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; ffc41c18: 93 fd 00 3c stw r31,60(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc41c1c: 4b fc f8 a1 bl ffc114bc <_Watchdog_Insert> <== ALWAYS TAKEN ffc41c20: 48 00 00 a4 b ffc41cc4 <== ALWAYS TAKEN case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); ffc41c24: 4b ff fd d9 bl ffc419fc <_Rate_monotonic_Update_statistics> <== ALWAYS TAKEN /* * 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; ffc41c28: 38 00 00 01 li r0,1 the_period->next_length = length; ffc41c2c: 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; ffc41c30: 90 1d 00 38 stw r0,56(r29) ffc41c34: 7f 80 01 24 mtmsr r28 the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; ffc41c38: 3d 20 00 00 lis r9,0 ffc41c3c: 80 1d 00 08 lwz r0,8(r29) ffc41c40: 81 29 36 58 lwz r9,13912(r9) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc41c44: 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; ffc41c48: 90 09 00 20 stw r0,32(r9) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc41c4c: 7d 23 4b 78 mr r3,r9 ffc41c50: 4b fc ed 85 bl ffc109d4 <_Thread_Set_state> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc41c54: 7d 20 00 a6 mfmsr r9 ffc41c58: 7c 10 42 a6 mfsprg r0,0 ffc41c5c: 7d 20 00 78 andc r0,r9,r0 ffc41c60: 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; ffc41c64: 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; ffc41c68: 80 1d 00 38 lwz r0,56(r29) the_period->state = RATE_MONOTONIC_ACTIVE; ffc41c6c: 91 7d 00 38 stw r11,56(r29) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc41c70: 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 ) ffc41c74: 2f 80 00 03 cmpwi cr7,r0,3 ffc41c78: 40 be 00 14 bne+ cr7,ffc41c8c <== ALWAYS TAKEN _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc41c7c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc41c80: 80 69 36 58 lwz r3,13912(r9) <== NOT EXECUTED ffc41c84: 38 80 40 00 li r4,16384 <== NOT EXECUTED ffc41c88: 4b fc dd dd bl ffc0fa64 <_Thread_Clear_state> <== NOT EXECUTED _Thread_Enable_dispatch(); ffc41c8c: 4b fc e2 bd bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc41c90: 3b c0 00 00 li r30,0 return RTEMS_SUCCESSFUL; ffc41c94: 48 00 00 3c b ffc41cd0 <== ALWAYS TAKEN case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); ffc41c98: 4b ff fd 65 bl ffc419fc <_Rate_monotonic_Update_statistics> <== ALWAYS TAKEN ffc41c9c: 7f 80 01 24 mtmsr r28 _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; ffc41ca0: 38 00 00 02 li r0,2 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc41ca4: 93 fd 00 1c stw r31,28(r29) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc41ca8: 3c 60 00 00 lis r3,0 ffc41cac: 90 1d 00 38 stw r0,56(r29) ffc41cb0: 38 63 65 e8 addi r3,r3,26088 ffc41cb4: 38 9d 00 10 addi r4,r29,16 the_period->next_length = length; ffc41cb8: 93 fd 00 3c stw r31,60(r29) _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc41cbc: 3b c0 00 06 li r30,6 ffc41cc0: 4b fc f7 fd bl ffc114bc <_Watchdog_Insert> <== ALWAYS TAKEN ffc41cc4: 4b fc e2 85 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_TIMEOUT; ffc41cc8: 48 00 00 08 b ffc41cd0 <== ALWAYS TAKEN ffc41ccc: 3b c0 00 04 li r30,4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc41cd0: 80 01 00 2c lwz r0,44(r1) ffc41cd4: 7f c3 f3 78 mr r3,r30 ffc41cd8: 83 81 00 18 lwz r28,24(r1) ffc41cdc: 7c 08 03 a6 mtlr r0 ffc41ce0: 83 a1 00 1c lwz r29,28(r1) ffc41ce4: 83 c1 00 20 lwz r30,32(r1) ffc41ce8: 83 e1 00 24 lwz r31,36(r1) ffc41cec: 38 21 00 28 addi r1,r1,40 ffc41cf0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2e51c : void rtems_rate_monotonic_report_statistics( void ) { rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); ffc2e51c: 3c 80 ff c1 lis r4,-63 ffc2e520: 38 84 99 ac addi r4,r4,-26196 ffc2e524: 38 60 00 00 li r3,0 ffc2e528: 4b ff fd 5c b ffc2e284 <== ALWAYS TAKEN ffc2e284 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2e284: 94 21 ff 58 stwu r1,-168(r1) ffc2e288: 7c 08 02 a6 mflr r0 ffc2e28c: 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 ) ffc2e290: 7c 80 23 79 mr. r0,r4 */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc2e294: 93 e1 00 a4 stw r31,164(r1) ffc2e298: 7c 7f 1b 78 mr r31,r3 ffc2e29c: 92 41 00 70 stw r18,112(r1) ffc2e2a0: 92 61 00 74 stw r19,116(r1) ffc2e2a4: 92 81 00 78 stw r20,120(r1) ffc2e2a8: 92 a1 00 7c stw r21,124(r1) ffc2e2ac: 92 c1 00 80 stw r22,128(r1) ffc2e2b0: 92 e1 00 84 stw r23,132(r1) ffc2e2b4: 93 01 00 88 stw r24,136(r1) ffc2e2b8: 93 21 00 8c stw r25,140(r1) ffc2e2bc: 93 41 00 90 stw r26,144(r1) ffc2e2c0: 93 61 00 94 stw r27,148(r1) ffc2e2c4: 93 81 00 98 stw r28,152(r1) ffc2e2c8: 93 a1 00 9c stw r29,156(r1) ffc2e2cc: 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 ) ffc2e2d0: 90 01 00 68 stw r0,104(r1) ffc2e2d4: 41 82 02 00 beq- ffc2e4d4 <== NEVER TAKEN return; (*print)( context, "Period information by period\n" ); ffc2e2d8: 3c 80 ff c7 lis r4,-57 ffc2e2dc: 7c 09 03 a6 mtctr r0 ffc2e2e0: 38 84 87 7c addi r4,r4,-30852 rtems_object_get_name( the_status.owner, sizeof(name), name ); /* * Print part of report line that is not dependent on granularity */ (*print)( context, ffc2e2e4: 3f 00 ff c7 lis r24,-57 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, ffc2e2e8: 3f 20 ff c7 lis r25,-57 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, ffc2e2ec: 3f 40 ff c7 lis r26,-57 char name[5]; if ( !print ) return; (*print)( context, "Period information by period\n" ); ffc2e2f0: 4c c6 31 82 crclr 4*cr1+eq ffc2e2f4: 4e 80 04 21 bctrl <== ALWAYS TAKEN #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); ffc2e2f8: 80 01 00 68 lwz r0,104(r1) ffc2e2fc: 3c 80 ff c7 lis r4,-57 ffc2e300: 7c 09 03 a6 mtctr r0 ffc2e304: 38 84 87 9a addi r4,r4,-30822 ffc2e308: 7f e3 fb 78 mr r3,r31 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc2e30c: 3e 40 ff c7 lis r18,-57 * 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 ); ffc2e310: 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 ); ffc2e314: 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" ); ffc2e318: 4c c6 31 82 crclr 4*cr1+eq ffc2e31c: 4e 80 04 21 bctrl <== ALWAYS TAKEN (*print)( context, "--- Wall times are in seconds ---\n" ); ffc2e320: 80 01 00 68 lwz r0,104(r1) ffc2e324: 3c 80 ff c7 lis r4,-57 ffc2e328: 7c 09 03 a6 mtctr r0 ffc2e32c: 38 84 87 bc addi r4,r4,-30788 ffc2e330: 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 ); ffc2e334: 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 ); ffc2e338: 3a a1 00 48 addi r21,r1,72 ffc2e33c: 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" ); ffc2e340: 4c c6 31 82 crclr 4*cr1+eq ffc2e344: 4e 80 04 21 bctrl <== ALWAYS TAKEN Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " ffc2e348: 80 01 00 68 lwz r0,104(r1) ffc2e34c: 3c 80 ff c7 lis r4,-57 ffc2e350: 7c 09 03 a6 mtctr r0 ffc2e354: 38 84 87 df addi r4,r4,-30753 ffc2e358: 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, ffc2e35c: 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); ffc2e360: 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, ffc2e364: 3b 18 88 76 addi r24,r24,-30602 Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " ffc2e368: 4c c6 31 82 crclr 4*cr1+eq ffc2e36c: 4e 80 04 21 bctrl <== ALWAYS TAKEN #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " ffc2e370: 80 01 00 68 lwz r0,104(r1) ffc2e374: 3c 80 ff c7 lis r4,-57 ffc2e378: 38 84 88 2a addi r4,r4,-30678 ffc2e37c: 7c 09 03 a6 mtctr r0 ffc2e380: 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, ffc2e384: 3b 39 88 8d addi r25,r25,-30579 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, ffc2e388: 3b 5a 88 ac addi r26,r26,-30548 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc2e38c: 3a 52 a4 4a addi r18,r18,-23478 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " ffc2e390: 4c c6 31 82 crclr 4*cr1+eq ffc2e394: 4e 80 04 21 bctrl <== ALWAYS TAKEN /* * 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 ; ffc2e398: 3d 20 00 00 lis r9,0 ffc2e39c: 39 29 6f ec addi r9,r9,28652 ffc2e3a0: 7d 37 4b 78 mr r23,r9 ffc2e3a4: 83 c9 00 08 lwz r30,8(r9) ffc2e3a8: 48 00 01 18 b ffc2e4c0 <== ALWAYS TAKEN id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); ffc2e3ac: 48 01 33 29 bl ffc416d4 <== ALWAYS TAKEN if ( status != RTEMS_SUCCESSFUL ) ffc2e3b0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2e3b4: 40 be 01 08 bne+ cr7,ffc2e4bc continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); ffc2e3b8: 7e 84 a3 78 mr r4,r20 ffc2e3bc: 7f c3 f3 78 mr r3,r30 ffc2e3c0: 48 01 33 e5 bl ffc417a4 <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); ffc2e3c4: 80 61 00 18 lwz r3,24(r1) ffc2e3c8: 7f 65 db 78 mr r5,r27 ffc2e3cc: 38 80 00 05 li r4,5 ffc2e3d0: 4b fd ed 19 bl ffc0d0e8 <== ALWAYS TAKEN /* * Print part of report line that is not dependent on granularity */ (*print)( context, ffc2e3d4: 80 01 00 68 lwz r0,104(r1) ffc2e3d8: 7f 04 c3 78 mr r4,r24 ffc2e3dc: 80 e1 00 30 lwz r7,48(r1) ffc2e3e0: 7f c5 f3 78 mr r5,r30 ffc2e3e4: 7c 09 03 a6 mtctr r0 ffc2e3e8: 7f e3 fb 78 mr r3,r31 ffc2e3ec: 81 01 00 34 lwz r8,52(r1) ffc2e3f0: 7f 66 db 78 mr r6,r27 ffc2e3f4: 4c c6 31 82 crclr 4*cr1+eq ffc2e3f8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc2e3fc: 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 ); ffc2e400: 7e a3 ab 78 mr r3,r21 ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc2e404: 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 ); ffc2e408: 7f 85 e3 78 mr r5,r28 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc2e40c: 7e 44 93 78 mr r4,r18 ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc2e410: 40 9e 00 1c bne- cr7,ffc2e42c (*print)( context, "\n" ); ffc2e414: 80 01 00 68 lwz r0,104(r1) ffc2e418: 7f e3 fb 78 mr r3,r31 ffc2e41c: 7c 09 03 a6 mtctr r0 ffc2e420: 4c c6 31 82 crclr 4*cr1+eq ffc2e424: 4e 80 04 21 bctrl <== ALWAYS TAKEN continue; ffc2e428: 48 00 00 94 b ffc2e4bc <== ALWAYS TAKEN 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 ); ffc2e42c: 7c 04 03 78 mr r4,r0 ffc2e430: 48 00 1a ad bl ffc2fedc <_Timespec_Divide_by_integer> <== ALWAYS TAKEN (*print)( context, ffc2e434: 80 01 00 68 lwz r0,104(r1) ffc2e438: 80 c1 00 3c lwz r6,60(r1) ffc2e43c: 7f 24 cb 78 mr r4,r25 ffc2e440: 81 01 00 44 lwz r8,68(r1) ffc2e444: 7c 09 03 a6 mtctr r0 ffc2e448: 81 41 00 14 lwz r10,20(r1) ffc2e44c: 7c c6 eb d6 divw r6,r6,r29 ffc2e450: 80 e1 00 40 lwz r7,64(r1) ffc2e454: 81 21 00 10 lwz r9,16(r1) ffc2e458: 80 a1 00 38 lwz r5,56(r1) ffc2e45c: 7d 08 eb d6 divw r8,r8,r29 ffc2e460: 7d 4a eb d6 divw r10,r10,r29 ffc2e464: 7f e3 fb 78 mr r3,r31 ffc2e468: 4c c6 31 82 crclr 4*cr1+eq ffc2e46c: 4e 80 04 21 bctrl <== ALWAYS TAKEN 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); ffc2e470: 80 81 00 30 lwz r4,48(r1) ffc2e474: 7e c3 b3 78 mr r3,r22 ffc2e478: 7f 85 e3 78 mr r5,r28 ffc2e47c: 48 00 1a 61 bl ffc2fedc <_Timespec_Divide_by_integer> <== ALWAYS TAKEN (*print)( context, ffc2e480: 80 c1 00 54 lwz r6,84(r1) ffc2e484: 81 01 00 5c lwz r8,92(r1) ffc2e488: 7f e3 fb 78 mr r3,r31 ffc2e48c: 81 41 00 14 lwz r10,20(r1) ffc2e490: 7c c6 eb d6 divw r6,r6,r29 ffc2e494: 80 01 00 68 lwz r0,104(r1) ffc2e498: 80 a1 00 50 lwz r5,80(r1) ffc2e49c: 80 e1 00 58 lwz r7,88(r1) ffc2e4a0: 7c 09 03 a6 mtctr r0 ffc2e4a4: 81 21 00 10 lwz r9,16(r1) ffc2e4a8: 7d 08 eb d6 divw r8,r8,r29 ffc2e4ac: 7d 4a eb d6 divw r10,r10,r29 ffc2e4b0: 7f 44 d3 78 mr r4,r26 ffc2e4b4: 4c c6 31 82 crclr 4*cr1+eq ffc2e4b8: 4e 80 04 21 bctrl <== ALWAYS TAKEN * 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++ ) { ffc2e4bc: 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 ; ffc2e4c0: 80 17 00 0c lwz r0,12(r23) id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); ffc2e4c4: 7f c3 f3 78 mr r3,r30 ffc2e4c8: 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 ; ffc2e4cc: 7f 9e 00 40 cmplw cr7,r30,r0 ffc2e4d0: 40 9d fe dc ble+ cr7,ffc2e3ac the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } ffc2e4d4: 80 01 00 ac lwz r0,172(r1) ffc2e4d8: 82 41 00 70 lwz r18,112(r1) ffc2e4dc: 7c 08 03 a6 mtlr r0 ffc2e4e0: 82 61 00 74 lwz r19,116(r1) ffc2e4e4: 82 81 00 78 lwz r20,120(r1) ffc2e4e8: 82 a1 00 7c lwz r21,124(r1) ffc2e4ec: 82 c1 00 80 lwz r22,128(r1) ffc2e4f0: 82 e1 00 84 lwz r23,132(r1) ffc2e4f4: 83 01 00 88 lwz r24,136(r1) ffc2e4f8: 83 21 00 8c lwz r25,140(r1) ffc2e4fc: 83 41 00 90 lwz r26,144(r1) ffc2e500: 83 61 00 94 lwz r27,148(r1) ffc2e504: 83 81 00 98 lwz r28,152(r1) ffc2e508: 83 a1 00 9c lwz r29,156(r1) ffc2e50c: 83 c1 00 a0 lwz r30,160(r1) ffc2e510: 83 e1 00 a4 lwz r31,164(r1) ffc2e514: 38 21 00 a8 addi r1,r1,168 ffc2e518: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2e52c : ffc2e52c: 3d 20 00 00 lis r9,0 /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { ffc2e530: 94 21 ff f0 stwu r1,-16(r1) ffc2e534: 7c 08 02 a6 mflr r0 ffc2e538: 81 69 36 18 lwz r11,13848(r9) ffc2e53c: 90 01 00 14 stw r0,20(r1) ffc2e540: 38 0b 00 01 addi r0,r11,1 ffc2e544: 93 c1 00 08 stw r30,8(r1) ffc2e548: 93 e1 00 0c stw r31,12(r1) ffc2e54c: 90 09 36 18 stw r0,13848(r9) /* * Cycle through all possible ids and try to reset 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 ; ffc2e550: 3d 20 00 00 lis r9,0 ffc2e554: 39 29 6f ec addi r9,r9,28652 ffc2e558: 7d 3e 4b 78 mr r30,r9 ffc2e55c: 83 e9 00 08 lwz r31,8(r9) ffc2e560: 48 00 00 08 b ffc2e568 <== ALWAYS TAKEN id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); ffc2e564: 48 00 00 35 bl ffc2e598 <== ALWAYS TAKEN /* * Cycle through all possible ids and try to reset 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 ; ffc2e568: 80 1e 00 0c lwz r0,12(r30) id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); ffc2e56c: 7f e3 fb 78 mr r3,r31 /* * Cycle through all possible ids and try to reset 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 ; ffc2e570: 7f 9f 00 40 cmplw cr7,r31,r0 id <= _Rate_monotonic_Information.maximum_id ; id++ ) { ffc2e574: 3b ff 00 01 addi r31,r31,1 /* * Cycle through all possible ids and try to reset 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 ; ffc2e578: 40 9d ff ec ble+ cr7,ffc2e564 } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); ffc2e57c: 4b fe 19 cd bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc2e580: 80 01 00 14 lwz r0,20(r1) ffc2e584: 83 c1 00 08 lwz r30,8(r1) ffc2e588: 7c 08 03 a6 mtlr r0 ffc2e58c: 83 e1 00 0c lwz r31,12(r1) ffc2e590: 38 21 00 10 addi r1,r1,16 ffc2e594: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2e598 : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { ffc2e598: 94 21 ff e0 stwu r1,-32(r1) ffc2e59c: 7c 08 02 a6 mflr r0 ffc2e5a0: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get ( Objects_Id id, Objects_Locations *location ) { return (Rate_monotonic_Control *) ffc2e5a4: 3c 60 00 00 lis r3,0 ffc2e5a8: 90 01 00 24 stw r0,36(r1) ffc2e5ac: 38 63 6f ec addi r3,r3,28652 ffc2e5b0: 38 a1 00 08 addi r5,r1,8 ffc2e5b4: 93 e1 00 1c stw r31,28(r1) ffc2e5b8: 4b fe 0d 55 bl ffc0f30c <_Objects_Get> <== ALWAYS TAKEN Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc2e5bc: 80 01 00 08 lwz r0,8(r1) ffc2e5c0: 7c 7f 1b 78 mr r31,r3 ffc2e5c4: 38 60 00 04 li r3,4 ffc2e5c8: 2f 80 00 00 cmpwi cr7,r0,0 ffc2e5cc: 40 9e 00 34 bne- cr7,ffc2e600 case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); ffc2e5d0: 38 80 00 00 li r4,0 ffc2e5d4: 38 a0 00 38 li r5,56 ffc2e5d8: 38 7f 00 54 addi r3,r31,84 ffc2e5dc: 48 01 ce 49 bl ffc4b424 <== ALWAYS TAKEN ffc2e5e0: 3c 00 7f ff lis r0,32767 ffc2e5e4: 60 00 ff ff ori r0,r0,65535 ffc2e5e8: 90 1f 00 78 stw r0,120(r31) ffc2e5ec: 90 1f 00 5c stw r0,92(r31) ffc2e5f0: 90 1f 00 60 stw r0,96(r31) ffc2e5f4: 90 1f 00 74 stw r0,116(r31) _Thread_Enable_dispatch(); ffc2e5f8: 4b fe 19 51 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc2e5fc: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc2e600: 80 01 00 24 lwz r0,36(r1) ffc2e604: 83 e1 00 1c lwz r31,28(r1) ffc2e608: 38 21 00 20 addi r1,r1,32 ffc2e60c: 7c 08 03 a6 mtlr r0 ffc2e610: 4e 80 00 20 blr <== ALWAYS TAKEN ffc171ec : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { ffc171ec: 94 21 ff d0 stwu r1,-48(r1) ffc171f0: 7c 08 02 a6 mflr r0 ffc171f4: 93 81 00 20 stw r28,32(r1) rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) ffc171f8: 7c 7c 1b 79 mr. r28,r3 uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { ffc171fc: 92 e1 00 0c stw r23,12(r1) ffc17200: 7d 17 43 78 mr r23,r8 ffc17204: 93 21 00 14 stw r25,20(r1) rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) ffc17208: 3b 20 00 03 li r25,3 uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { ffc1720c: 93 61 00 1c stw r27,28(r1) ffc17210: 7c fb 3b 78 mr r27,r7 ffc17214: 93 a1 00 24 stw r29,36(r1) ffc17218: 7c bd 2b 78 mr r29,r5 ffc1721c: 93 c1 00 28 stw r30,40(r1) ffc17220: 7c de 33 78 mr r30,r6 ffc17224: 93 e1 00 2c stw r31,44(r1) ffc17228: 7c 9f 23 78 mr r31,r4 ffc1722c: 90 01 00 34 stw r0,52(r1) ffc17230: 92 c1 00 08 stw r22,8(r1) ffc17234: 93 01 00 10 stw r24,16(r1) ffc17238: 93 41 00 18 stw r26,24(r1) rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) ffc1723c: 41 82 00 d0 beq- ffc1730c return RTEMS_INVALID_NAME; if ( !starting_address ) ffc17240: 2f 84 00 00 cmpwi cr7,r4,0 ffc17244: 41 9e 00 c4 beq- cr7,ffc17308 return RTEMS_INVALID_ADDRESS; if ( !id ) ffc17248: 2f 88 00 00 cmpwi cr7,r8,0 ffc1724c: 41 9e 00 bc beq- cr7,ffc17308 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) ffc17250: 70 96 00 07 andi. r22,r4,7 ffc17254: 40 a2 00 b4 bne+ ffc17308 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ ffc17258: 3d 20 00 00 lis r9,0 ffc1725c: 80 69 28 a0 lwz r3,10400(r9) * This function allocates a region control block from * the inactive chain of free region control blocks. */ RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void ) { return (Region_Control *) _Objects_Allocate( &_Region_Information ); ffc17260: 3f 00 00 00 lis r24,0 ffc17264: 3b 18 6f 6c addi r24,r24,28524 ffc17268: 48 00 2f 71 bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc1726c: 7f 03 c3 78 mr r3,r24 ffc17270: 48 00 49 35 bl ffc1bba4 <_Objects_Allocate> <== ALWAYS TAKEN the_region = _Region_Allocate(); if ( !the_region ) ffc17274: 3b 20 00 05 li r25,5 ffc17278: 7c 7a 1b 79 mr. r26,r3 ffc1727c: 41 82 00 7c beq- ffc172f8 return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( ffc17280: 38 7a 00 68 addi r3,r26,104 ffc17284: 7f e4 fb 78 mr r4,r31 ffc17288: 7f a5 eb 78 mr r5,r29 ffc1728c: 7f c6 f3 78 mr r6,r30 ffc17290: 48 00 43 05 bl ffc1b594 <_Heap_Initialize> <== ALWAYS TAKEN &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { ffc17294: 2f 83 00 00 cmpwi cr7,r3,0 if ( !the_region ) return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( ffc17298: 90 7a 00 5c stw r3,92(r26) &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { ffc1729c: 40 9e 00 18 bne- cr7,ffc172b4 */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); ffc172a0: 7f 03 c3 78 mr r3,r24 ffc172a4: 7f 44 d3 78 mr r4,r26 ffc172a8: 48 00 4c e9 bl ffc1bf90 <_Objects_Free> <== ALWAYS TAKEN ffc172ac: 3b 20 00 08 li r25,8 ffc172b0: 48 00 00 48 b ffc172f8 <== ALWAYS TAKEN return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address; ffc172b4: 93 fa 00 50 stw r31,80(r26) the_region->length = length; the_region->page_size = page_size; the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( ffc172b8: 57 64 f7 fe rlwinm r4,r27,30,31,31 ffc172bc: 38 7a 00 10 addi r3,r26,16 } else { the_region->starting_address = starting_address; the_region->length = length; ffc172c0: 93 ba 00 54 stw r29,84(r26) the_region->page_size = page_size; the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( ffc172c4: 38 a0 00 40 li r5,64 ffc172c8: 38 c0 00 06 li r6,6 else { the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; ffc172cc: 93 da 00 58 stw r30,88(r26) &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; ffc172d0: 3b 20 00 00 li r25,0 the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; the_region->attribute_set = attribute_set; the_region->number_of_used_blocks = 0; ffc172d4: 92 da 00 64 stw r22,100(r26) else { the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; the_region->attribute_set = attribute_set; ffc172d8: 93 7a 00 60 stw r27,96(r26) the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( ffc172dc: 48 00 63 d9 bl ffc1d6b4 <_Thread_queue_Initialize> <== ALWAYS TAKEN ffc172e0: 80 1a 00 08 lwz r0,8(r26) ffc172e4: 81 78 00 1c lwz r11,28(r24) ffc172e8: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc172ec: 93 9a 00 0c stw r28,12(r26) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc172f0: 7f 4b 49 2e stwx r26,r11,r9 &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; ffc172f4: 90 17 00 00 stw r0,0(r23) return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); ffc172f8: 3d 20 00 00 lis r9,0 ffc172fc: 80 69 28 a0 lwz r3,10400(r9) ffc17300: 48 00 2f 59 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; ffc17304: 48 00 00 08 b ffc1730c <== ALWAYS TAKEN ffc17308: 3b 20 00 09 li r25,9 } ffc1730c: 80 01 00 34 lwz r0,52(r1) ffc17310: 7f 23 cb 78 mr r3,r25 ffc17314: 82 c1 00 08 lwz r22,8(r1) ffc17318: 7c 08 03 a6 mtlr r0 ffc1731c: 82 e1 00 0c lwz r23,12(r1) ffc17320: 83 01 00 10 lwz r24,16(r1) ffc17324: 83 21 00 14 lwz r25,20(r1) ffc17328: 83 41 00 18 lwz r26,24(r1) ffc1732c: 83 61 00 1c lwz r27,28(r1) ffc17330: 83 81 00 20 lwz r28,32(r1) ffc17334: 83 a1 00 24 lwz r29,36(r1) ffc17338: 83 c1 00 28 lwz r30,40(r1) ffc1733c: 83 e1 00 2c lwz r31,44(r1) ffc17340: 38 21 00 30 addi r1,r1,48 ffc17344: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17348 : */ rtems_status_code rtems_region_delete( rtems_id id ) { ffc17348: 94 21 ff d8 stwu r1,-40(r1) Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); ffc1734c: 3d 20 00 00 lis r9,0 */ rtems_status_code rtems_region_delete( rtems_id id ) { ffc17350: 7c 08 02 a6 mflr r0 ffc17354: 93 a1 00 1c stw r29,28(r1) ffc17358: 7c 7d 1b 78 mr r29,r3 ffc1735c: 93 c1 00 20 stw r30,32(r1) RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) ffc17360: 3f c0 00 00 lis r30,0 ffc17364: 3b de 6f 6c addi r30,r30,28524 Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); ffc17368: 80 69 28 a0 lwz r3,10400(r9) */ rtems_status_code rtems_region_delete( rtems_id id ) { ffc1736c: 90 01 00 2c stw r0,44(r1) ffc17370: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); ffc17374: 48 00 2e 65 bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc17378: 7f a4 eb 78 mr r4,r29 ffc1737c: 7f c3 f3 78 mr r3,r30 ffc17380: 38 a1 00 08 addi r5,r1,8 ffc17384: 48 00 4d cd bl ffc1c150 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc17388: 80 01 00 08 lwz r0,8(r1) ffc1738c: 3b e0 00 04 li r31,4 ffc17390: 2f 80 00 00 cmpwi cr7,r0,0 ffc17394: 7c 7d 1b 78 mr r29,r3 ffc17398: 40 9e 00 30 bne- cr7,ffc173c8 case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) ffc1739c: 80 03 00 64 lwz r0,100(r3) ffc173a0: 3b e0 00 0c li r31,12 ffc173a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc173a8: 40 be 00 20 bne+ cr7,ffc173c8 return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object ); ffc173ac: 7f c3 f3 78 mr r3,r30 ffc173b0: 7f a4 eb 78 mr r4,r29 ffc173b4: 48 00 48 9d bl ffc1bc50 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); ffc173b8: 7f c3 f3 78 mr r3,r30 ffc173bc: 7f a4 eb 78 mr r4,r29 ffc173c0: 48 00 4b d1 bl ffc1bf90 <_Objects_Free> <== ALWAYS TAKEN ffc173c4: 3b e0 00 00 li r31,0 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc173c8: 3d 20 00 00 lis r9,0 ffc173cc: 80 69 28 a0 lwz r3,10400(r9) ffc173d0: 48 00 2e 89 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc173d4: 80 01 00 2c lwz r0,44(r1) ffc173d8: 7f e3 fb 78 mr r3,r31 ffc173dc: 83 a1 00 1c lwz r29,28(r1) ffc173e0: 7c 08 03 a6 mtlr r0 ffc173e4: 83 c1 00 20 lwz r30,32(r1) ffc173e8: 83 e1 00 24 lwz r31,36(r1) ffc173ec: 38 21 00 28 addi r1,r1,40 ffc173f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc173f4 : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { ffc173f4: 94 21 ff d8 stwu r1,-40(r1) ffc173f8: 7c 08 02 a6 mflr r0 ffc173fc: 93 81 00 18 stw r28,24(r1) Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) ffc17400: 7c 9c 23 79 mr. r28,r4 rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { ffc17404: 93 a1 00 1c stw r29,28(r1) ffc17408: 7c bd 2b 78 mr r29,r5 ffc1740c: 93 c1 00 20 stw r30,32(r1) Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) ffc17410: 3b c0 00 09 li r30,9 rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { ffc17414: 93 e1 00 24 stw r31,36(r1) ffc17418: 7c 7f 1b 78 mr r31,r3 ffc1741c: 90 01 00 2c stw r0,44(r1) Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) ffc17420: 41 82 00 98 beq- ffc174b8 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ ffc17424: 3d 20 00 00 lis r9,0 ffc17428: 80 69 28 a0 lwz r3,10400(r9) the_region = _Region_Get( id, &location ); switch ( location ) { ffc1742c: 3b c0 00 04 li r30,4 Region_Control *the_region; if ( !starting_address ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ ffc17430: 48 00 2d a9 bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) ffc17434: 3c 60 00 00 lis r3,0 ffc17438: 7f e4 fb 78 mr r4,r31 ffc1743c: 38 63 6f 6c addi r3,r3,28524 ffc17440: 38 a1 00 0c addi r5,r1,12 ffc17444: 48 00 4d 0d bl ffc1c150 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc17448: 80 01 00 0c lwz r0,12(r1) ffc1744c: 7c 7f 1b 78 mr r31,r3 ffc17450: 2f 80 00 00 cmpwi cr7,r0,0 ffc17454: 40 9e 00 58 bne- cr7,ffc174ac case OBJECTS_LOCAL: heap_status = _Heap_Extend( ffc17458: 7f 84 e3 78 mr r4,r28 ffc1745c: 7f a5 eb 78 mr r5,r29 ffc17460: 38 63 00 68 addi r3,r3,104 ffc17464: 38 c1 00 08 addi r6,r1,8 ffc17468: 48 00 3d 89 bl ffc1b1f0 <_Heap_Extend> <== ALWAYS TAKEN starting_address, length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { ffc1746c: 7c 7e 1b 79 mr. r30,r3 ffc17470: 40 82 00 28 bne- ffc17498 the_region->length += amount_extended; ffc17474: 80 01 00 08 lwz r0,8(r1) the_region->maximum_segment_size += amount_extended; ffc17478: 3b c0 00 00 li r30,0 length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended; ffc1747c: 81 3f 00 54 lwz r9,84(r31) the_region->maximum_segment_size += amount_extended; ffc17480: 81 7f 00 5c lwz r11,92(r31) length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended; ffc17484: 7d 29 02 14 add r9,r9,r0 the_region->maximum_segment_size += amount_extended; ffc17488: 7c 0b 02 14 add r0,r11,r0 length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended; ffc1748c: 91 3f 00 54 stw r9,84(r31) the_region->maximum_segment_size += amount_extended; ffc17490: 90 1f 00 5c stw r0,92(r31) ffc17494: 48 00 00 18 b ffc174ac <== ALWAYS TAKEN return_status = RTEMS_SUCCESSFUL; } else if ( heap_status == HEAP_EXTEND_ERROR ) { ffc17498: 6b de 00 01 xori r30,r30,1 ffc1749c: 33 de ff ff addic r30,r30,-1 ffc174a0: 7f de f1 10 subfe r30,r30,r30 ffc174a4: 57 de 07 f6 rlwinm r30,r30,0,31,27 ffc174a8: 3b de 00 18 addi r30,r30,24 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc174ac: 3d 20 00 00 lis r9,0 ffc174b0: 80 69 28 a0 lwz r3,10400(r9) ffc174b4: 48 00 2d a5 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc174b8: 80 01 00 2c lwz r0,44(r1) ffc174bc: 7f c3 f3 78 mr r3,r30 ffc174c0: 83 81 00 18 lwz r28,24(r1) ffc174c4: 7c 08 03 a6 mtlr r0 ffc174c8: 83 a1 00 1c lwz r29,28(r1) ffc174cc: 83 c1 00 20 lwz r30,32(r1) ffc174d0: 83 e1 00 24 lwz r31,36(r1) ffc174d4: 38 21 00 28 addi r1,r1,40 ffc174d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc174dc : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { ffc174dc: 94 21 ff d8 stwu r1,-40(r1) ffc174e0: 7c 08 02 a6 mflr r0 ffc174e4: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc174e8: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { ffc174ec: 93 a1 00 1c stw r29,28(r1) ffc174f0: 7c 7d 1b 78 mr r29,r3 ffc174f4: 93 c1 00 20 stw r30,32(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc174f8: 3b c0 00 09 li r30,9 rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { ffc174fc: 90 01 00 2c stw r0,44(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc17500: 41 82 00 5c beq- ffc1755c return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc17504: 3d 20 00 00 lis r9,0 ffc17508: 80 69 28 a0 lwz r3,10400(r9) the_region = _Region_Get( id, &location ); switch ( location ) { ffc1750c: 3b c0 00 04 li r30,4 register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc17510: 48 00 2c c9 bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc17514: 3c 60 00 00 lis r3,0 ffc17518: 38 63 6f 6c addi r3,r3,28524 ffc1751c: 7f a4 eb 78 mr r4,r29 ffc17520: 38 a1 00 08 addi r5,r1,8 ffc17524: 48 00 4c 2d bl ffc1c150 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc17528: 80 01 00 08 lwz r0,8(r1) ffc1752c: 2f 80 00 00 cmpwi cr7,r0,0 ffc17530: 40 9e 00 20 bne- cr7,ffc17550 case OBJECTS_LOCAL: the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; ffc17534: 90 1f 00 10 stw r0,16(r31) _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); ffc17538: 38 63 00 68 addi r3,r3,104 ffc1753c: 7f e4 fb 78 mr r4,r31 the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; ffc17540: 90 1f 00 0c stw r0,12(r31) the_info->Used.total = 0; the_info->Used.largest = 0; _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); ffc17544: 3b c0 00 00 li r30,0 switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; the_info->Used.total = 0; ffc17548: 90 1f 00 14 stw r0,20(r31) the_info->Used.largest = 0; _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); ffc1754c: 48 00 3f 65 bl ffc1b4b0 <_Heap_Get_free_information> <== ALWAYS TAKEN default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc17550: 3d 20 00 00 lis r9,0 ffc17554: 80 69 28 a0 lwz r3,10400(r9) ffc17558: 48 00 2d 01 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc1755c: 80 01 00 2c lwz r0,44(r1) ffc17560: 7f c3 f3 78 mr r3,r30 ffc17564: 83 a1 00 1c lwz r29,28(r1) ffc17568: 7c 08 03 a6 mtlr r0 ffc1756c: 83 c1 00 20 lwz r30,32(r1) ffc17570: 83 e1 00 24 lwz r31,36(r1) ffc17574: 38 21 00 28 addi r1,r1,40 ffc17578: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1757c : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { ffc1757c: 94 21 ff d8 stwu r1,-40(r1) ffc17580: 7c 08 02 a6 mflr r0 ffc17584: 93 c1 00 20 stw r30,32(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc17588: 7c 9e 23 79 mr. r30,r4 rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { ffc1758c: 93 a1 00 1c stw r29,28(r1) ffc17590: 7c 7d 1b 78 mr r29,r3 ffc17594: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc17598: 3b e0 00 09 li r31,9 rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { ffc1759c: 90 01 00 2c stw r0,44(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc175a0: 41 82 00 50 beq- ffc175f0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc175a4: 3d 20 00 00 lis r9,0 ffc175a8: 80 69 28 a0 lwz r3,10400(r9) the_region = _Region_Get( id, &location ); switch ( location ) { ffc175ac: 3b e0 00 04 li r31,4 register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc175b0: 48 00 2c 29 bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc175b4: 3c 60 00 00 lis r3,0 ffc175b8: 38 63 6f 6c addi r3,r3,28524 ffc175bc: 7f a4 eb 78 mr r4,r29 ffc175c0: 38 a1 00 08 addi r5,r1,8 ffc175c4: 48 00 4b 8d bl ffc1c150 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc175c8: 80 01 00 08 lwz r0,8(r1) ffc175cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc175d0: 40 9e 00 14 bne- cr7,ffc175e4 case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); ffc175d4: 38 63 00 68 addi r3,r3,104 ffc175d8: 7f c4 f3 78 mr r4,r30 ffc175dc: 48 00 3f 2d bl ffc1b508 <_Heap_Get_information> <== ALWAYS TAKEN ffc175e0: 3b e0 00 00 li r31,0 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc175e4: 3d 20 00 00 lis r9,0 ffc175e8: 80 69 28 a0 lwz r3,10400(r9) ffc175ec: 48 00 2c 6d bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc175f0: 80 01 00 2c lwz r0,44(r1) ffc175f4: 7f e3 fb 78 mr r3,r31 ffc175f8: 83 a1 00 1c lwz r29,28(r1) ffc175fc: 7c 08 03 a6 mtlr r0 ffc17600: 83 c1 00 20 lwz r30,32(r1) ffc17604: 83 e1 00 24 lwz r31,36(r1) ffc17608: 38 21 00 28 addi r1,r1,40 ffc1760c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17610 : uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { ffc17610: 94 21 ff c0 stwu r1,-64(r1) ffc17614: 7c 08 02 a6 mflr r0 ffc17618: 93 81 00 30 stw r28,48(r1) Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) ffc1761c: 7c fc 3b 79 mr. r28,r7 uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { ffc17620: 92 e1 00 1c stw r23,28(r1) Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) ffc17624: 3a e0 00 09 li r23,9 uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { ffc17628: 93 01 00 20 stw r24,32(r1) ffc1762c: 7c b8 2b 78 mr r24,r5 ffc17630: 93 21 00 24 stw r25,36(r1) ffc17634: 7c d9 33 78 mr r25,r6 ffc17638: 93 61 00 2c stw r27,44(r1) ffc1763c: 7c 7b 1b 78 mr r27,r3 ffc17640: 93 a1 00 34 stw r29,52(r1) ffc17644: 7c 9d 23 78 mr r29,r4 ffc17648: 90 01 00 44 stw r0,68(r1) ffc1764c: 93 41 00 28 stw r26,40(r1) ffc17650: 93 c1 00 38 stw r30,56(r1) ffc17654: 93 e1 00 3c stw r31,60(r1) Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) ffc17658: 41 82 01 04 beq- ffc1775c return RTEMS_INVALID_ADDRESS; *segment = NULL; if ( size == 0 ) ffc1765c: 2f 84 00 00 cmpwi cr7,r4,0 void *the_segment; if ( !segment ) return RTEMS_INVALID_ADDRESS; *segment = NULL; ffc17660: 38 00 00 00 li r0,0 ffc17664: 90 1c 00 00 stw r0,0(r28) if ( size == 0 ) ffc17668: 3a e0 00 08 li r23,8 ffc1766c: 41 be 00 f0 beq+ cr7,ffc1775c return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); ffc17670: 3f 40 00 00 lis r26,0 ffc17674: 80 7a 28 a0 lwz r3,10400(r26) _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); _Thread_Enable_dispatch(); return (rtems_status_code) executing->Wait.return_code; ffc17678: 3a e0 00 04 li r23,4 *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); ffc1767c: 48 00 2b 5d bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc17680: 3c 60 00 00 lis r3,0 executing = _Thread_Executing; ffc17684: 3d 20 00 00 lis r9,0 ffc17688: 38 63 6f 6c addi r3,r3,28524 ffc1768c: 83 c9 28 a8 lwz r30,10408(r9) ffc17690: 7f 64 db 78 mr r4,r27 ffc17694: 38 a1 00 08 addi r5,r1,8 ffc17698: 48 00 4a b9 bl ffc1c150 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc1769c: 80 01 00 08 lwz r0,8(r1) ffc176a0: 7c 7f 1b 78 mr r31,r3 ffc176a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc176a8: 40 9e 00 a8 bne- cr7,ffc17750 case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) ffc176ac: 80 03 00 5c lwz r0,92(r3) ffc176b0: 3a e0 00 08 li r23,8 ffc176b4: 7f 9d 00 40 cmplw cr7,r29,r0 ffc176b8: 41 bd 00 98 bgt+ cr7,ffc17750 * @brief See _Heap_Allocate_aligned_with_boundary() with alignment and * boundary equals zero. */ RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); ffc176bc: 38 63 00 68 addi r3,r3,104 ffc176c0: 7f a4 eb 78 mr r4,r29 ffc176c4: 38 a0 00 00 li r5,0 ffc176c8: 38 c0 00 00 li r6,0 ffc176cc: 48 00 39 65 bl ffc1b030 <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { ffc176d0: 2c 03 00 00 cmpwi r3,0 ffc176d4: 41 82 00 1c beq- ffc176f0 the_region->number_of_used_blocks += 1; ffc176d8: 81 3f 00 64 lwz r9,100(r31) *segment = the_segment; ffc176dc: 3a e0 00 00 li r23,0 ffc176e0: 90 7c 00 00 stw r3,0(r28) the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { the_region->number_of_used_blocks += 1; ffc176e4: 38 09 00 01 addi r0,r9,1 ffc176e8: 90 1f 00 64 stw r0,100(r31) ffc176ec: 48 00 00 64 b ffc17750 <== ALWAYS TAKEN *segment = the_segment; return_status = RTEMS_SUCCESSFUL; } else if ( _Options_Is_no_wait( option_set ) ) { ffc176f0: 73 00 00 01 andi. r0,r24,1 ffc176f4: 3a e0 00 0d li r23,13 ffc176f8: 40 a2 00 58 bne+ ffc17750 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc176fc: 3d 20 00 00 lis r9,0 ffc17700: 81 69 28 68 lwz r11,10344(r9) ffc17704: 38 0b 00 01 addi r0,r11,1 ffc17708: 90 09 28 68 stw r0,10344(r9) * Switch from using the memory allocation mutex to using a * dispatching disabled critical section. We have to do this * because this thread is going to block. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); ffc1770c: 80 7a 28 a0 lwz r3,10400(r26) ffc17710: 48 00 2b 49 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN executing->Wait.queue = &the_region->Wait_queue; ffc17714: 38 1f 00 10 addi r0,r31,16 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; ffc17718: 39 20 00 01 li r9,1 ffc1771c: 90 1e 00 44 stw r0,68(r30) executing->Wait.count = size; executing->Wait.return_argument = segment; _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); ffc17720: 3c a0 ff c2 lis r5,-62 ffc17724: 91 3f 00 40 stw r9,64(r31) ffc17728: 7c 03 03 78 mr r3,r0 ffc1772c: 7f 24 cb 78 mr r4,r25 */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; executing->Wait.id = id; ffc17730: 93 7e 00 20 stw r27,32(r30) executing->Wait.count = size; executing->Wait.return_argument = segment; _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); ffc17734: 38 a5 d7 98 addi r5,r5,-10344 _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; executing->Wait.id = id; executing->Wait.count = size; ffc17738: 93 be 00 24 stw r29,36(r30) executing->Wait.return_argument = segment; ffc1773c: 93 9e 00 28 stw r28,40(r30) _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); ffc17740: 48 00 5c 61 bl ffc1d3a0 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc17744: 48 00 56 1d bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return (rtems_status_code) executing->Wait.return_code; ffc17748: 82 fe 00 34 lwz r23,52(r30) ffc1774c: 48 00 00 10 b ffc1775c <== ALWAYS TAKEN default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc17750: 3d 20 00 00 lis r9,0 ffc17754: 80 69 28 a0 lwz r3,10400(r9) ffc17758: 48 00 2b 01 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc1775c: 80 01 00 44 lwz r0,68(r1) ffc17760: 7e e3 bb 78 mr r3,r23 ffc17764: 83 01 00 20 lwz r24,32(r1) ffc17768: 7c 08 03 a6 mtlr r0 ffc1776c: 82 e1 00 1c lwz r23,28(r1) ffc17770: 83 21 00 24 lwz r25,36(r1) ffc17774: 83 41 00 28 lwz r26,40(r1) ffc17778: 83 61 00 2c lwz r27,44(r1) ffc1777c: 83 81 00 30 lwz r28,48(r1) ffc17780: 83 a1 00 34 lwz r29,52(r1) ffc17784: 83 c1 00 38 lwz r30,56(r1) ffc17788: 83 e1 00 3c lwz r31,60(r1) ffc1778c: 38 21 00 40 addi r1,r1,64 ffc17790: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17794 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { ffc17794: 94 21 ff d8 stwu r1,-40(r1) ffc17798: 7c 08 02 a6 mflr r0 ffc1779c: 93 c1 00 20 stw r30,32(r1) Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) ffc177a0: 7c 9e 23 79 mr. r30,r4 rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { ffc177a4: 93 a1 00 1c stw r29,28(r1) ffc177a8: 7c 7d 1b 78 mr r29,r3 ffc177ac: 93 e1 00 24 stw r31,36(r1) ffc177b0: 7c bf 2b 78 mr r31,r5 ffc177b4: 90 01 00 2c stw r0,44(r1) Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) ffc177b8: 41 82 00 74 beq- ffc1782c return RTEMS_INVALID_ADDRESS; if ( !size ) ffc177bc: 2f 85 00 00 cmpwi cr7,r5,0 ffc177c0: 41 9e 00 6c beq- cr7,ffc1782c return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc177c4: 3d 20 00 00 lis r9,0 ffc177c8: 80 69 28 a0 lwz r3,10400(r9) ffc177cc: 48 00 2a 0d bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc177d0: 3c 60 00 00 lis r3,0 ffc177d4: 38 63 6f 6c addi r3,r3,28524 ffc177d8: 7f a4 eb 78 mr r4,r29 ffc177dc: 38 a1 00 08 addi r5,r1,8 ffc177e0: 48 00 49 71 bl ffc1c150 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc177e4: 80 01 00 08 lwz r0,8(r1) ffc177e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc177ec: 41 9e 00 10 beq- cr7,ffc177fc ffc177f0: 2f 80 00 01 cmpwi cr7,r0,1 ffc177f4: 3b e0 00 04 li r31,4 ffc177f8: 48 00 00 1c b ffc17814 <== ALWAYS TAKEN case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) ffc177fc: 7f e5 fb 78 mr r5,r31 ffc17800: 38 63 00 68 addi r3,r3,104 ffc17804: 7f c4 f3 78 mr r4,r30 ffc17808: 48 00 42 ad bl ffc1bab4 <_Heap_Size_of_alloc_area> <== ALWAYS TAKEN ffc1780c: 3b e0 00 09 li r31,9 ffc17810: 2f 83 00 00 cmpwi cr7,r3,0 ffc17814: 41 9e 00 08 beq- cr7,ffc1781c ffc17818: 3b e0 00 00 li r31,0 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc1781c: 3d 20 00 00 lis r9,0 ffc17820: 80 69 28 a0 lwz r3,10400(r9) ffc17824: 48 00 2a 35 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; ffc17828: 48 00 00 08 b ffc17830 <== ALWAYS TAKEN ffc1782c: 3b e0 00 09 li r31,9 } ffc17830: 80 01 00 2c lwz r0,44(r1) ffc17834: 7f e3 fb 78 mr r3,r31 ffc17838: 83 a1 00 1c lwz r29,28(r1) ffc1783c: 7c 08 03 a6 mtlr r0 ffc17840: 83 c1 00 20 lwz r30,32(r1) ffc17844: 83 e1 00 24 lwz r31,36(r1) ffc17848: 38 21 00 28 addi r1,r1,40 ffc1784c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17850 : rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { ffc17850: 94 21 ff f8 stwu r1,-8(r1) ffc17854: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc17858: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { ffc1785c: 90 01 00 0c stw r0,12(r1) ffc17860: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc17864: 3c 60 00 00 lis r3,0 rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { ffc17868: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1786c: 38 63 6f 6c addi r3,r3,28524 ffc17870: 7c 04 03 78 mr r4,r0 ffc17874: 60 a5 ff ff ori r5,r5,65535 ffc17878: 48 00 4b a9 bl ffc1c420 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc1787c: 80 01 00 0c lwz r0,12(r1) ffc17880: 3d 20 ff c4 lis r9,-60 ffc17884: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc17888: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc1788c: 39 29 a9 78 addi r9,r9,-22152 ffc17890: 7c 69 18 2e lwzx r3,r9,r3 ffc17894: 38 21 00 08 addi r1,r1,8 ffc17898: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1789c : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { ffc1789c: 94 21 ff d0 stwu r1,-48(r1) ffc178a0: 7c 08 02 a6 mflr r0 ffc178a4: 93 a1 00 24 stw r29,36(r1) uintptr_t osize; rtems_status_code return_status; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) ffc178a8: 7c dd 33 79 mr. r29,r6 rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { ffc178ac: 93 61 00 1c stw r27,28(r1) ffc178b0: 7c 9b 23 78 mr r27,r4 ffc178b4: 93 81 00 20 stw r28,32(r1) ffc178b8: 7c bc 2b 78 mr r28,r5 ffc178bc: 93 c1 00 28 stw r30,40(r1) ffc178c0: 7c 7e 1b 78 mr r30,r3 ffc178c4: 90 01 00 34 stw r0,52(r1) ffc178c8: 93 e1 00 2c stw r31,44(r1) uintptr_t osize; rtems_status_code return_status; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) ffc178cc: 41 82 00 94 beq- ffc17960 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc178d0: 3f e0 00 00 lis r31,0 ffc178d4: 80 7f 28 a0 lwz r3,10400(r31) ffc178d8: 48 00 29 01 bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc178dc: 3c 60 00 00 lis r3,0 ffc178e0: 7f c4 f3 78 mr r4,r30 ffc178e4: 38 63 6f 6c addi r3,r3,28524 ffc178e8: 38 a1 00 0c addi r5,r1,12 ffc178ec: 48 00 48 65 bl ffc1c150 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc178f0: 80 01 00 0c lwz r0,12(r1) ffc178f4: 7c 7e 1b 78 mr r30,r3 ffc178f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc178fc: 40 9e 00 54 bne- cr7,ffc17950 case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( ffc17900: 7f 85 e3 78 mr r5,r28 ffc17904: 7f 64 db 78 mr r4,r27 ffc17908: 38 63 00 68 addi r3,r3,104 ffc1790c: 38 c1 00 10 addi r6,r1,16 ffc17910: 38 e1 00 08 addi r7,r1,8 ffc17914: 48 00 40 49 bl ffc1b95c <_Heap_Resize_block> <== ALWAYS TAKEN segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; ffc17918: 80 01 00 10 lwz r0,16(r1) _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) ffc1791c: 7c 7c 1b 79 mr. r28,r3 segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; ffc17920: 90 1d 00 00 stw r0,0(r29) _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) ffc17924: 40 82 00 14 bne- ffc17938 _Region_Process_queue( the_region ); /* unlocks allocator */ ffc17928: 7f c3 f3 78 mr r3,r30 ffc1792c: 48 00 96 dd bl ffc21008 <_Region_Process_queue> <== ALWAYS TAKEN ffc17930: 38 60 00 00 li r3,0 ffc17934: 48 00 00 30 b ffc17964 <== ALWAYS TAKEN else _RTEMS_Unlock_allocator(); ffc17938: 80 7f 28 a0 lwz r3,10400(r31) ffc1793c: 48 00 29 1d bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) ffc17940: 2f 9c 00 01 cmpwi cr7,r28,1 ffc17944: 38 60 00 0d li r3,13 ffc17948: 40 be 00 18 bne+ cr7,ffc17960 ffc1794c: 48 00 00 18 b ffc17964 <== ALWAYS TAKEN default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc17950: 80 7f 28 a0 lwz r3,10400(r31) ffc17954: 48 00 29 05 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc17958: 38 60 00 04 li r3,4 return return_status; ffc1795c: 48 00 00 08 b ffc17964 <== ALWAYS TAKEN ffc17960: 38 60 00 09 li r3,9 } ffc17964: 80 01 00 34 lwz r0,52(r1) ffc17968: 83 61 00 1c lwz r27,28(r1) ffc1796c: 7c 08 03 a6 mtlr r0 ffc17970: 83 81 00 20 lwz r28,32(r1) ffc17974: 83 a1 00 24 lwz r29,36(r1) ffc17978: 83 c1 00 28 lwz r30,40(r1) ffc1797c: 83 e1 00 2c lwz r31,44(r1) ffc17980: 38 21 00 30 addi r1,r1,48 ffc17984: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17988 : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { ffc17988: 94 21 ff d8 stwu r1,-40(r1) uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); ffc1798c: 3d 20 00 00 lis r9,0 rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { ffc17990: 7c 08 02 a6 mflr r0 ffc17994: 93 c1 00 20 stw r30,32(r1) ffc17998: 7c 7e 1b 78 mr r30,r3 uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); ffc1799c: 80 69 28 a0 lwz r3,10400(r9) rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { ffc179a0: 90 01 00 2c stw r0,44(r1) ffc179a4: 93 a1 00 1c stw r29,28(r1) register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { ffc179a8: 3b a0 00 04 li r29,4 rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { ffc179ac: 93 e1 00 24 stw r31,36(r1) ffc179b0: 7c 9f 23 78 mr r31,r4 uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); ffc179b4: 48 00 28 25 bl ffc1a1d8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc179b8: 3c 60 00 00 lis r3,0 ffc179bc: 7f c4 f3 78 mr r4,r30 ffc179c0: 38 63 6f 6c addi r3,r3,28524 ffc179c4: 38 a1 00 08 addi r5,r1,8 ffc179c8: 48 00 47 89 bl ffc1c150 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc179cc: 80 01 00 08 lwz r0,8(r1) ffc179d0: 7c 7e 1b 78 mr r30,r3 ffc179d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc179d8: 40 9e 00 38 bne- cr7,ffc17a10 RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); ffc179dc: 7f e4 fb 78 mr r4,r31 ffc179e0: 38 63 00 68 addi r3,r3,104 ffc179e4: 48 00 38 e5 bl ffc1b2c8 <_Heap_Free> <== ALWAYS TAKEN else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; ffc179e8: 3b a0 00 09 li r29,9 #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) ffc179ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc179f0: 41 be 00 20 beq+ cr7,ffc17a10 return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; ffc179f4: 81 3e 00 64 lwz r9,100(r30) _Region_Process_queue(the_region); /* unlocks allocator */ ffc179f8: 7f c3 f3 78 mr r3,r30 ffc179fc: 3b a0 00 00 li r29,0 _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; ffc17a00: 38 09 ff ff addi r0,r9,-1 ffc17a04: 90 1e 00 64 stw r0,100(r30) _Region_Process_queue(the_region); /* unlocks allocator */ ffc17a08: 48 00 96 01 bl ffc21008 <_Region_Process_queue> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; ffc17a0c: 48 00 00 10 b ffc17a1c <== ALWAYS TAKEN default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc17a10: 3d 20 00 00 lis r9,0 ffc17a14: 80 69 28 a0 lwz r3,10400(r9) ffc17a18: 48 00 28 41 bl ffc1a258 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc17a1c: 80 01 00 2c lwz r0,44(r1) ffc17a20: 7f a3 eb 78 mr r3,r29 ffc17a24: 83 c1 00 20 lwz r30,32(r1) ffc17a28: 7c 08 03 a6 mtlr r0 ffc17a2c: 83 a1 00 1c lwz r29,28(r1) ffc17a30: 83 e1 00 24 lwz r31,36(r1) ffc17a34: 38 21 00 28 addi r1,r1,40 ffc17a38: 4e 80 00 20 blr <== ALWAYS TAKEN ffc078f0 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { ffc078f0: 94 21 ff b8 stwu r1,-72(r1) ffc078f4: 7c 08 02 a6 mflr r0 ffc078f8: 93 e1 00 44 stw r31,68(r1) register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attr; CORE_semaphore_Attributes the_semaphore_attr; CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) ffc078fc: 7c 7f 1b 79 mr. r31,r3 ffc07900: 38 60 00 03 li r3,3 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { ffc07904: 93 41 00 30 stw r26,48(r1) ffc07908: 7c da 33 78 mr r26,r6 ffc0790c: 93 61 00 34 stw r27,52(r1) ffc07910: 7c fb 3b 78 mr r27,r7 ffc07914: 93 a1 00 3c stw r29,60(r1) ffc07918: 7c bd 2b 78 mr r29,r5 ffc0791c: 93 c1 00 40 stw r30,64(r1) <== ALWAYS TAKEN ffc07920: 7c 9e 23 78 mr r30,r4 ffc07924: 90 01 00 4c stw r0,76(r1) ffc07928: 93 21 00 2c stw r25,44(r1) ffc0792c: 93 81 00 38 stw r28,56(r1) <== ALWAYS TAKEN register Semaphore_Control *the_semaphore; CORE_mutex_Attributes the_mutex_attr; CORE_semaphore_Attributes the_semaphore_attr; CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) ffc07930: 41 82 01 98 beq- ffc07ac8 return RTEMS_INVALID_NAME; if ( !id ) ffc07934: 2f 87 00 00 cmpwi cr7,r7,0 <== ALWAYS TAKEN ffc07938: 38 60 00 09 li r3,9 ffc0793c: 41 9e 01 8c beq- cr7,ffc07ac8 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || ffc07940: 70 a0 00 c0 andi. r0,r5,192 ffc07944: 41 82 00 20 beq- ffc07964 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && ffc07948: 54 a9 06 b6 rlwinm r9,r5,0,26,27 <== ALWAYS TAKEN ffc0794c: 2f 89 00 10 cmpwi cr7,r9,16 ffc07950: 40 be 01 74 bne+ cr7,ffc07ac4 ffc07954: 70 a9 00 04 andi. r9,r5,4 ffc07958: 41 82 01 6c beq- ffc07ac4 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && ffc0795c: 2f 80 00 c0 cmpwi cr7,r0,192 ffc07960: 41 9e 01 64 beq- cr7,ffc07ac4 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) ffc07964: 73 b9 00 30 andi. r25,r29,48 <== ALWAYS TAKEN ffc07968: 41 82 00 10 beq- ffc07978 ffc0796c: 2b 9e 00 01 cmplwi cr7,r30,1 ffc07970: 38 60 00 0a li r3,10 ffc07974: 41 bd 01 54 bgt+ cr7,ffc07ac8 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc07978: 3d 20 00 00 lis r9,0 ffc0797c: 81 69 27 70 lwz r11,10096(r9) ffc07980: 38 0b 00 01 addi r0,r11,1 <== ALWAYS TAKEN ffc07984: 90 09 27 70 stw r0,10096(r9) <== ALWAYS TAKEN * This function allocates a semaphore control block from * the inactive chain of free semaphore control blocks. */ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void ) { return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information ); ffc07988: 3c 60 00 00 lis r3,0 ffc0798c: 38 63 2b 84 addi r3,r3,11140 <== ALWAYS TAKEN ffc07990: 48 00 19 01 bl ffc09290 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { ffc07994: 7c 7c 1b 79 mr. r28,r3 ffc07998: 40 a2 00 10 bne+ ffc079a8 _Thread_Enable_dispatch(); ffc0799c: 48 00 29 b1 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc079a0: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc079a4: 48 00 01 24 b ffc07ac8 <== ALWAYS TAKEN the_semaphore->attribute_set = attribute_set; /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { ffc079a8: 2f 99 00 00 cmpwi cr7,r25,0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; ffc079ac: 93 bc 00 10 stw r29,16(r28) <== ALWAYS TAKEN ffc079b0: 57 a0 07 7a rlwinm r0,r29,0,29,29 /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { ffc079b4: 40 9e 00 44 bne- cr7,ffc079f8 /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; if ( _Attributes_Is_priority( attribute_set ) ) ffc079b8: 2f 80 00 00 cmpwi cr7,r0,0 */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; ffc079bc: 38 00 ff ff li r0,-1 ffc079c0: 90 01 00 08 stw r0,8(r1) if ( _Attributes_Is_priority( attribute_set ) ) ffc079c4: 41 9e 00 10 beq- cr7,ffc079d4 the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; ffc079c8: 38 00 00 01 li r0,1 ffc079cc: 90 01 00 0c stw r0,12(r1) ffc079d0: 48 00 00 08 b ffc079d8 <== ALWAYS TAKEN else the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; ffc079d4: 93 21 00 0c stw r25,12(r1) /* * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; ffc079d8: 38 00 00 00 li r0,0 the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( ffc079dc: 7f c5 f3 78 mr r5,r30 /* * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; ffc079e0: 90 01 00 1c stw r0,28(r1) _CORE_semaphore_Initialize( ffc079e4: 38 7c 00 14 addi r3,r28,20 <== ALWAYS TAKEN ffc079e8: 38 81 00 08 addi r4,r1,8 the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; /* * The following are just to make Purify happy. */ the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; ffc079ec: 90 01 00 10 stw r0,16(r1) the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( ffc079f0: 48 00 12 ed bl ffc08cdc <_CORE_semaphore_Initialize> <== ALWAYS TAKEN ffc079f4: 48 00 00 a8 b ffc07a9c <== ALWAYS TAKEN } else { /* * It is either simple binary semaphore or a more powerful mutex * style binary semaphore. This is the mutex style. */ if ( _Attributes_Is_priority( attribute_set ) ) ffc079f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc079fc: 41 9e 00 08 beq- cr7,ffc07a04 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; ffc07a00: 38 00 00 01 li r0,1 else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { ffc07a04: 2f 99 00 10 cmpwi cr7,r25,16 * style binary semaphore. This is the mutex style. */ if ( _Attributes_Is_priority( attribute_set ) ) the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; ffc07a08: 90 01 00 18 stw r0,24(r1) if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { ffc07a0c: 40 be 00 44 bne+ cr7,ffc07a50 the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { ffc07a10: 80 01 00 18 lwz r0,24(r1) else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; ffc07a14: 39 20 00 00 li r9,0 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; ffc07a18: 93 41 00 1c stw r26,28(r1) <== ALWAYS TAKEN the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { ffc07a1c: 2f 80 00 01 cmpwi cr7,r0,1 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; the_mutex_attr.only_owner_release = false; ffc07a20: 99 21 00 14 stb r9,20(r1) else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { the_mutex_attr.priority_ceiling = priority_ceiling; the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; ffc07a24: 91 21 00 10 stw r9,16(r1) the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { ffc07a28: 40 be 00 38 bne+ cr7,ffc07a60 if ( _Attributes_Is_inherit_priority( attribute_set ) ) { ffc07a2c: 73 a9 00 40 andi. r9,r29,64 ffc07a30: 41 82 00 0c beq- ffc07a3c the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; ffc07a34: 39 20 00 02 li r9,2 ffc07a38: 48 00 00 10 b ffc07a48 <== ALWAYS TAKEN the_mutex_attr.only_owner_release = true; } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { ffc07a3c: 73 a9 00 80 andi. r9,r29,128 ffc07a40: 41 82 00 20 beq- ffc07a60 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; ffc07a44: 39 20 00 03 li r9,3 ffc07a48: 91 21 00 18 stw r9,24(r1) ffc07a4c: 48 00 00 10 b ffc07a5c <== ALWAYS TAKEN the_mutex_attr.only_owner_release = true; } } } else /* must be simple binary semaphore */ { the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; ffc07a50: 38 00 00 02 li r0,2 ffc07a54: 90 01 00 10 stw r0,16(r1) the_mutex_attr.only_owner_release = false; ffc07a58: 38 00 00 00 li r0,0 ffc07a5c: 98 01 00 14 stb r0,20(r1) <== ALWAYS TAKEN } mutex_status = _CORE_mutex_Initialize( ffc07a60: 6b c5 00 01 xori r5,r30,1 ffc07a64: 7c a5 00 34 cntlzw r5,r5 ffc07a68: 54 a5 d9 7e rlwinm r5,r5,27,5,31 ffc07a6c: 38 7c 00 14 addi r3,r28,20 <== ALWAYS TAKEN ffc07a70: 38 81 00 10 addi r4,r1,16 ffc07a74: 48 00 0e a5 bl ffc08918 <_CORE_mutex_Initialize> <== ALWAYS TAKEN &the_semaphore->Core_control.mutex, &the_mutex_attr, (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { ffc07a78: 2f 83 00 06 cmpwi cr7,r3,6 <== ALWAYS TAKEN ffc07a7c: 40 be 00 20 bne+ cr7,ffc07a9c */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); ffc07a80: 3c 60 00 00 lis r3,0 ffc07a84: 38 63 2b 84 addi r3,r3,11140 ffc07a88: 7f 84 e3 78 mr r4,r28 ffc07a8c: 48 00 1b f1 bl ffc0967c <_Objects_Free> <== ALWAYS TAKEN _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); ffc07a90: 48 00 28 bd bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07a94: 38 60 00 13 li r3,19 return RTEMS_INVALID_PRIORITY; ffc07a98: 48 00 00 30 b ffc07ac8 <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc07a9c: 80 1c 00 08 lwz r0,8(r28) ffc07aa0: 3d 20 00 00 lis r9,0 ffc07aa4: 81 69 2b a0 lwz r11,11168(r9) ffc07aa8: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc07aac: 93 fc 00 0c stw r31,12(r28) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc07ab0: 7f 8b 49 2e stwx r28,r11,r9 &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; ffc07ab4: 90 1b 00 00 stw r0,0(r27) <== ALWAYS TAKEN the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); ffc07ab8: 48 00 28 95 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07abc: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc07ac0: 48 00 00 08 b ffc07ac8 <== ALWAYS TAKEN ffc07ac4: 38 60 00 0b li r3,11 } ffc07ac8: 80 01 00 4c lwz r0,76(r1) ffc07acc: 83 21 00 2c lwz r25,44(r1) ffc07ad0: 7c 08 03 a6 mtlr r0 ffc07ad4: 83 41 00 30 lwz r26,48(r1) ffc07ad8: 83 61 00 34 lwz r27,52(r1) ffc07adc: 83 81 00 38 lwz r28,56(r1) ffc07ae0: 83 a1 00 3c lwz r29,60(r1) <== ALWAYS TAKEN ffc07ae4: 83 c1 00 40 lwz r30,64(r1) ffc07ae8: 83 e1 00 44 lwz r31,68(r1) <== ALWAYS TAKEN ffc07aec: 38 21 00 48 addi r1,r1,72 ffc07af0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07af4 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { ffc07af4: 94 21 ff e0 stwu r1,-32(r1) ffc07af8: 7c 08 02 a6 mflr r0 ffc07afc: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) ffc07b00: 3c 60 00 00 lis r3,0 ffc07b04: 90 01 00 24 stw r0,36(r1) ffc07b08: 38 63 2b 84 addi r3,r3,11140 ffc07b0c: 38 a1 00 08 addi r5,r1,8 ffc07b10: 93 e1 00 1c stw r31,28(r1) ffc07b14: 93 c1 00 18 stw r30,24(r1) ffc07b18: 48 00 1d 25 bl ffc0983c <_Objects_Get> <== ALWAYS TAKEN ffc07b1c: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { ffc07b20: 80 01 00 08 lwz r0,8(r1) ffc07b24: 38 60 00 04 li r3,4 ffc07b28: 2f 80 00 00 cmpwi cr7,r0,0 ffc07b2c: 40 9e 00 7c bne- cr7,ffc07ba8 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); ffc07b30: 80 1f 00 10 lwz r0,16(r31) case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { ffc07b34: 70 00 00 30 andi. r0,r0,48 ffc07b38: 41 82 00 38 beq- ffc07b70 if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && ffc07b3c: 81 3f 00 64 lwz r9,100(r31) ffc07b40: 2f 89 00 00 cmpwi cr7,r9,0 ffc07b44: 40 9e 00 18 bne- cr7,ffc07b5c ffc07b48: 2f 80 00 20 cmpwi cr7,r0,32 ffc07b4c: 41 9e 00 10 beq- cr7,ffc07b5c !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); ffc07b50: 48 00 27 fd bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07b54: 38 60 00 0c li r3,12 return RTEMS_RESOURCE_IN_USE; ffc07b58: 48 00 00 50 b ffc07ba8 <== ALWAYS TAKEN } _CORE_mutex_Flush( ffc07b5c: 38 7f 00 14 addi r3,r31,20 ffc07b60: 38 80 00 00 li r4,0 ffc07b64: 38 a0 00 04 li r5,4 ffc07b68: 48 00 0d 91 bl ffc088f8 <_CORE_mutex_Flush> <== ALWAYS TAKEN ffc07b6c: 48 00 00 14 b ffc07b80 <== ALWAYS TAKEN &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( ffc07b70: 38 7f 00 14 addi r3,r31,20 ffc07b74: 38 80 00 00 li r4,0 ffc07b78: 38 a0 00 02 li r5,2 ffc07b7c: 48 00 11 41 bl ffc08cbc <_CORE_semaphore_Flush> <== ALWAYS TAKEN SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); ffc07b80: 3f c0 00 00 lis r30,0 ffc07b84: 3b de 2b 84 addi r30,r30,11140 ffc07b88: 7f c3 f3 78 mr r3,r30 ffc07b8c: 7f e4 fb 78 mr r4,r31 ffc07b90: 48 00 17 ad bl ffc0933c <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); ffc07b94: 7f c3 f3 78 mr r3,r30 ffc07b98: 7f e4 fb 78 mr r4,r31 ffc07b9c: 48 00 1a e1 bl ffc0967c <_Objects_Free> <== ALWAYS TAKEN 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); ffc07ba0: 48 00 27 ad bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07ba4: 38 60 00 00 li r3,0 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc07ba8: 80 01 00 24 lwz r0,36(r1) <== ALWAYS TAKEN ffc07bac: 83 c1 00 18 lwz r30,24(r1) <== ALWAYS TAKEN ffc07bb0: 7c 08 03 a6 mtlr r0 ffc07bb4: 83 e1 00 1c lwz r31,28(r1) <== ALWAYS TAKEN ffc07bb8: 38 21 00 20 addi r1,r1,32 ffc07bbc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc14074 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { ffc14074: 94 21 ff e8 stwu r1,-24(r1) ffc14078: 7c 08 02 a6 mflr r0 ffc1407c: 7c 64 1b 78 mr r4,r3 ffc14080: 3c 60 00 00 lis r3,0 ffc14084: 90 01 00 1c stw r0,28(r1) ffc14088: 38 63 2c 44 addi r3,r3,11332 ffc1408c: 38 a1 00 08 addi r5,r1,8 ffc14090: 4b ff 76 1d bl ffc0b6ac <_Objects_Get> <== ALWAYS TAKEN register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { ffc14094: 81 21 00 08 lwz r9,8(r1) ffc14098: 38 00 00 04 li r0,4 ffc1409c: 2f 89 00 00 cmpwi cr7,r9,0 ffc140a0: 40 9e 00 38 bne- cr7,ffc140d8 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { ffc140a4: 80 03 00 10 lwz r0,16(r3) ffc140a8: 38 63 00 14 addi r3,r3,20 ffc140ac: 70 09 00 30 andi. r9,r0,48 ffc140b0: 41 82 00 14 beq- ffc140c4 _CORE_mutex_Flush( ffc140b4: 38 80 00 00 li r4,0 ffc140b8: 38 a0 00 01 li r5,1 ffc140bc: 4b ff 66 a5 bl ffc0a760 <_CORE_mutex_Flush> <== ALWAYS TAKEN ffc140c0: 48 00 00 10 b ffc140d0 <== ALWAYS TAKEN &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( ffc140c4: 38 80 00 00 li r4,0 ffc140c8: 38 a0 00 01 li r5,1 ffc140cc: 4b ff 6a 59 bl ffc0ab24 <_CORE_semaphore_Flush> <== ALWAYS TAKEN &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); ffc140d0: 4b ff 81 c1 bl ffc0c290 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc140d4: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc140d8: 7c 03 03 78 mr r3,r0 ffc140dc: 80 01 00 1c lwz r0,28(r1) ffc140e0: 38 21 00 18 addi r1,r1,24 ffc140e4: 7c 08 03 a6 mtlr r0 ffc140e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17dd8 : rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc17dd8: 94 21 ff f8 stwu r1,-8(r1) ffc17ddc: 7c 08 02 a6 mflr r0 ffc17de0: 7c 69 1b 78 mr r9,r3 ffc17de4: 90 01 00 0c stw r0,12(r1) Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id ); ffc17de8: 3c 60 00 00 lis r3,0 rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc17dec: 7c 80 23 78 mr r0,r4 ffc17df0: 7c a6 2b 78 mr r6,r5 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id ); ffc17df4: 7d 24 4b 78 mr r4,r9 ffc17df8: 7c 05 03 78 mr r5,r0 ffc17dfc: 38 63 6f ac addi r3,r3,28588 ffc17e00: 48 00 46 21 bl ffc1c420 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN return _Status_Object_name_errors_to_status[ status ]; } ffc17e04: 80 01 00 0c lwz r0,12(r1) ffc17e08: 3d 20 ff c4 lis r9,-60 ffc17e0c: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id ); ffc17e10: 54 63 10 3a rlwinm r3,r3,2,0,29 return _Status_Object_name_errors_to_status[ status ]; } ffc17e14: 39 29 a9 78 addi r9,r9,-22152 ffc17e18: 7c 69 18 2e lwzx r3,r9,r3 ffc17e1c: 38 21 00 08 addi r1,r1,8 ffc17e20: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07bc0 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { ffc07bc0: 94 21 ff d8 stwu r1,-40(r1) ffc07bc4: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc07bc8: 93 e1 00 24 stw r31,36(r1) ffc07bcc: 7c 7f 1b 78 mr r31,r3 Objects_Id id, Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) ffc07bd0: 3c 60 00 00 lis r3,0 ffc07bd4: 93 81 00 18 stw r28,24(r1) ffc07bd8: 38 63 2b 84 addi r3,r3,11140 ffc07bdc: 7c 9c 23 78 mr r28,r4 ffc07be0: 93 c1 00 20 stw r30,32(r1) ffc07be4: 7f e4 fb 78 mr r4,r31 ffc07be8: 7c be 2b 78 mr r30,r5 ffc07bec: 38 c1 00 0c addi r6,r1,12 ffc07bf0: 90 01 00 2c stw r0,44(r1) ffc07bf4: 38 a1 00 08 addi r5,r1,8 ffc07bf8: 93 a1 00 1c stw r29,28(r1) ffc07bfc: 48 00 1b d1 bl ffc097cc <_Objects_Get_isr_disable> <== ALWAYS TAKEN ffc07c00: 7c 69 1b 78 mr r9,r3 register Semaphore_Control *the_semaphore; Objects_Locations location; ISR_Level level; the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level ); switch ( location ) { ffc07c04: 80 01 00 08 lwz r0,8(r1) ffc07c08: 38 60 00 04 li r3,4 ffc07c0c: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc07c10: 40 9e 00 d4 bne- cr7,ffc07ce4 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { ffc07c14: 80 09 00 10 lwz r0,16(r9) ffc07c18: 3f a0 00 00 lis r29,0 <== ALWAYS TAKEN ffc07c1c: 70 00 00 30 andi. r0,r0,48 ffc07c20: 41 82 00 30 beq- ffc07c50 _CORE_mutex_Seize( ffc07c24: 6b 85 00 01 xori r5,r28,1 ffc07c28: 80 e1 00 0c lwz r7,12(r1) ffc07c2c: 38 69 00 14 addi r3,r9,20 ffc07c30: 7f e4 fb 78 mr r4,r31 ffc07c34: 54 a5 07 fe clrlwi r5,r5,31 ffc07c38: 7f c6 f3 78 mr r6,r30 ffc07c3c: 48 00 0e 35 bl ffc08a70 <_CORE_mutex_Seize> <== ALWAYS TAKEN id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( ffc07c40: 81 3d 27 b0 lwz r9,10160(r29) ffc07c44: 80 69 00 34 lwz r3,52(r9) ffc07c48: 48 00 01 59 bl ffc07da0 <_Semaphore_Translate_core_mutex_return_code> <== ALWAYS TAKEN ffc07c4c: 48 00 00 98 b ffc07ce4 <== ALWAYS TAKEN { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; ffc07c50: 81 7d 27 b0 lwz r11,10160(r29) executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; ffc07c54: 90 0b 00 34 stw r0,52(r11) if ( the_semaphore->count != 0 ) { ffc07c58: 81 49 00 5c lwz r10,92(r9) ffc07c5c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc07c60: 41 9e 00 18 beq- cr7,ffc07c78 the_semaphore->count -= 1; ffc07c64: 39 4a ff ff addi r10,r10,-1 ffc07c68: 91 49 00 5c stw r10,92(r9) ffc07c6c: 80 01 00 0c lwz r0,12(r1) ffc07c70: 7c 00 01 24 mtmsr r0 ffc07c74: 48 00 00 60 b ffc07cd4 <== ALWAYS TAKEN _ISR_Enable( *level_p ); return; } if ( !wait ) { ffc07c78: 73 80 00 01 andi. r0,r28,1 ffc07c7c: 41 82 00 18 beq- ffc07c94 ffc07c80: 80 01 00 0c lwz r0,12(r1) ffc07c84: 7c 00 01 24 mtmsr r0 _ISR_Enable( *level_p ); executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; ffc07c88: 38 00 00 01 li r0,1 ffc07c8c: 90 0b 00 34 stw r0,52(r11) ffc07c90: 48 00 00 44 b ffc07cd4 <== ALWAYS TAKEN ffc07c94: 3d 40 00 00 lis r10,0 ffc07c98: 81 0a 27 70 lwz r8,10096(r10) ffc07c9c: 38 08 00 01 addi r0,r8,1 ffc07ca0: 90 0a 27 70 stw r0,10096(r10) 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; ffc07ca4: 38 00 00 01 li r0,1 ffc07ca8: 90 09 00 44 stw r0,68(r9) return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; ffc07cac: 38 69 00 14 addi r3,r9,20 executing->Wait.id = id; ffc07cb0: 93 eb 00 20 stw r31,32(r11) return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; ffc07cb4: 90 6b 00 44 stw r3,68(r11) ffc07cb8: 80 01 00 0c lwz r0,12(r1) ffc07cbc: 7c 00 01 24 mtmsr r0 executing->Wait.id = id; _ISR_Enable( *level_p ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); ffc07cc0: 3c a0 ff c1 lis r5,-63 ffc07cc4: 7f c4 f3 78 mr r4,r30 ffc07cc8: 38 a5 ad 38 addi r5,r5,-21192 ffc07ccc: 48 00 2c 75 bl ffc0a940 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc07cd0: 48 00 26 7d bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( ffc07cd4: 3d 20 00 00 lis r9,0 ffc07cd8: 81 29 27 b0 lwz r9,10160(r9) ffc07cdc: 80 69 00 34 lwz r3,52(r9) ffc07ce0: 48 00 00 d5 bl ffc07db4 <_Semaphore_Translate_core_semaphore_return_code> <== ALWAYS TAKEN break; } return RTEMS_INVALID_ID; } ffc07ce4: 80 01 00 2c lwz r0,44(r1) ffc07ce8: 83 81 00 18 lwz r28,24(r1) ffc07cec: 7c 08 03 a6 mtlr r0 ffc07cf0: 83 a1 00 1c lwz r29,28(r1) ffc07cf4: 83 c1 00 20 lwz r30,32(r1) ffc07cf8: 83 e1 00 24 lwz r31,36(r1) ffc07cfc: 38 21 00 28 addi r1,r1,40 ffc07d00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07d04 : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { ffc07d04: 94 21 ff d8 stwu r1,-40(r1) ffc07d08: 7c 08 02 a6 mflr r0 ffc07d0c: 93 e1 00 24 stw r31,36(r1) <== ALWAYS TAKEN ffc07d10: 7c 7f 1b 78 mr r31,r3 RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) ffc07d14: 3c 60 00 00 lis r3,0 ffc07d18: 38 63 2b 84 addi r3,r3,11140 <== ALWAYS TAKEN ffc07d1c: 90 01 00 2c stw r0,44(r1) ffc07d20: 7f e4 fb 78 mr r4,r31 <== ALWAYS TAKEN ffc07d24: 38 a1 00 08 addi r5,r1,8 ffc07d28: 48 00 1b 15 bl ffc0983c <_Objects_Get> <== ALWAYS TAKEN Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { ffc07d2c: 80 01 00 08 lwz r0,8(r1) ffc07d30: 7c 69 1b 78 mr r9,r3 ffc07d34: 2f 80 00 00 cmpwi cr7,r0,0 ffc07d38: 38 60 00 04 li r3,4 <== ALWAYS TAKEN ffc07d3c: 40 9e 00 50 bne- cr7,ffc07d8c case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { ffc07d40: 80 09 00 10 lwz r0,16(r9) <== ALWAYS TAKEN ffc07d44: 38 69 00 14 addi r3,r9,20 <== ALWAYS TAKEN ffc07d48: 70 09 00 30 andi. r9,r0,48 <== ALWAYS TAKEN ffc07d4c: 41 a2 00 24 beq+ ffc07d70 mutex_status = _CORE_mutex_Surrender( ffc07d50: 7f e4 fb 78 mr r4,r31 ffc07d54: 38 a0 00 00 li r5,0 ffc07d58: 48 00 0e 11 bl ffc08b68 <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); ffc07d5c: 90 61 00 18 stw r3,24(r1) ffc07d60: 48 00 25 ed bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Semaphore_Translate_core_mutex_return_code( mutex_status ); ffc07d64: 80 61 00 18 lwz r3,24(r1) ffc07d68: 48 00 00 39 bl ffc07da0 <_Semaphore_Translate_core_mutex_return_code> <== ALWAYS TAKEN ffc07d6c: 48 00 00 20 b ffc07d8c <== ALWAYS TAKEN } else { semaphore_status = _CORE_semaphore_Surrender( ffc07d70: 7f e4 fb 78 mr r4,r31 ffc07d74: 38 a0 00 00 li r5,0 ffc07d78: 48 00 0f b1 bl ffc08d28 <_CORE_semaphore_Surrender> <== ALWAYS TAKEN &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); ffc07d7c: 90 61 00 18 stw r3,24(r1) ffc07d80: 48 00 25 cd bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Semaphore_Translate_core_semaphore_return_code( semaphore_status ); ffc07d84: 80 61 00 18 lwz r3,24(r1) ffc07d88: 48 00 00 2d bl ffc07db4 <_Semaphore_Translate_core_semaphore_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc07d8c: 80 01 00 2c lwz r0,44(r1) <== ALWAYS TAKEN ffc07d90: 83 e1 00 24 lwz r31,36(r1) ffc07d94: 38 21 00 28 addi r1,r1,40 ffc07d98: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc07d9c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1cae4 : */ void rtems_shutdown_executive( uint32_t result ) { ffc1cae4: 7c 08 02 a6 mflr r0 ffc1cae8: 94 21 ff f8 stwu r1,-8(r1) if ( !_System_state_Is_shutdown( _System_state_Get() ) ) { ffc1caec: 3d 20 00 00 lis r9,0 */ void rtems_shutdown_executive( uint32_t result ) { ffc1caf0: 90 01 00 0c stw r0,12(r1) if ( !_System_state_Is_shutdown( _System_state_Get() ) ) { ffc1caf4: 80 09 27 d4 lwz r0,10196(r9) ffc1caf8: 2f 80 00 04 cmpwi cr7,r0,4 <== ALWAYS TAKEN ffc1cafc: 41 9e 00 18 beq- cr7,ffc1cb14 * if we were running within the same context, it would work. * * And we will not return to this thread, so there is no point of * saving the context. */ _Context_Restart_self( &_Thread_BSP_context ); ffc1cb00: 3c 60 00 00 lis r3,0 ffc1cb04: 38 00 00 04 li r0,4 ffc1cb08: 38 63 2c 34 addi r3,r3,11316 ffc1cb0c: 90 09 27 d4 stw r0,10196(r9) <== ALWAYS TAKEN ffc1cb10: 4b ff fa d1 bl ffc1c5e0 <_CPU_Context_restore> <== ALWAYS TAKEN _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } } ffc1cb14: 80 01 00 0c lwz r0,12(r1) ffc1cb18: 38 21 00 08 addi r1,r1,8 ffc1cb1c: 7c 08 03 a6 mtlr r0 ffc1cb20: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09224 : rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { ffc09224: 7c 08 02 a6 mflr r0 ffc09228: 3d 20 00 00 lis r9,0 ffc0922c: 94 21 ff f8 stwu r1,-8(r1) RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ]; ffc09230: 3d 60 00 00 lis r11,0 ffc09234: 81 49 27 c4 lwz r10,10180(r9) rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { ffc09238: 90 01 00 0c stw r0,12(r1) ffc0923c: 38 0a 00 01 addi r0,r10,1 RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ]; ffc09240: 81 6b 28 04 lwz r11,10244(r11) ffc09244: 90 09 27 c4 stw r0,10180(r9) ffc09248: 81 2b 01 44 lwz r9,324(r11) asr = &api->Signal; _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { ffc0924c: 2f 83 00 00 cmpwi cr7,r3,0 ffc09250: 41 9e 00 10 beq- cr7,ffc09260 asr->mode_set = mode_set; asr->handler = asr_handler; ffc09254: 90 69 00 0c stw r3,12(r9) _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { asr->mode_set = mode_set; ffc09258: 90 89 00 10 stw r4,16(r9) ffc0925c: 48 00 00 1c b ffc09278 <== ALWAYS TAKEN information->is_enabled = false; information->handler = NULL; information->mode_set = RTEMS_DEFAULT_MODES; information->signals_posted = 0; information->signals_pending = 0; information->nest_level = 0; ffc09260: 90 69 00 1c stw r3,28(r9) */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; ffc09264: 98 69 00 08 stb r3,8(r9) information->handler = NULL; ffc09268: 90 69 00 0c stw r3,12(r9) information->mode_set = RTEMS_DEFAULT_MODES; ffc0926c: 90 69 00 10 stw r3,16(r9) information->signals_posted = 0; ffc09270: 90 69 00 14 stw r3,20(r9) information->signals_pending = 0; ffc09274: 90 69 00 18 stw r3,24(r9) asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); ffc09278: 48 00 2a 11 bl ffc0bc88 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc0927c: 80 01 00 0c lwz r0,12(r1) ffc09280: 38 60 00 00 li r3,0 ffc09284: 7c 08 03 a6 mtlr r0 ffc09288: 38 21 00 08 addi r1,r1,8 ffc0928c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18030 : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { ffc18030: 94 21 ff e0 stwu r1,-32(r1) ffc18034: 7c 08 02 a6 mflr r0 ffc18038: 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 ) ffc1803c: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { ffc18040: 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 ) ffc18044: 38 00 00 0a li r0,10 ffc18048: 41 82 00 c0 beq- ffc18108 return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); ffc1804c: 38 81 00 08 addi r4,r1,8 ffc18050: 48 00 4d 7d bl ffc1cdcc <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc18054: 81 21 00 08 lwz r9,8(r1) ffc18058: 38 00 00 04 li r0,4 ffc1805c: 2f 89 00 00 cmpwi cr7,r9,0 ffc18060: 40 9e 00 a8 bne- cr7,ffc18108 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; ffc18064: 81 23 01 44 lwz r9,324(r3) asr = &api->Signal; ffc18068: 80 09 00 0c lwz r0,12(r9) ffc1806c: 2f 80 00 00 cmpwi cr7,r0,0 ffc18070: 41 9e 00 90 beq- cr7,ffc18100 if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) { ffc18074: 88 09 00 08 lbz r0,8(r9) ffc18078: 2f 80 00 00 cmpwi cr7,r0,0 ffc1807c: 41 9e 00 58 beq- cr7,ffc180d4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc18080: 7c 00 00 a6 mfmsr r0 ffc18084: 7d 70 42 a6 mfsprg r11,0 ffc18088: 7c 0b 58 78 andc r11,r0,r11 ffc1808c: 7d 60 01 24 mtmsr r11 ) { ISR_Level _level; _ISR_Disable( _level ); *signal_set |= signals; ffc18090: 81 69 00 14 lwz r11,20(r9) ffc18094: 7d 7f fb 78 or r31,r11,r31 ffc18098: 93 e9 00 14 stw r31,20(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1809c: 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 ) ) ffc180a0: 3d 20 00 00 lis r9,0 ffc180a4: 81 29 28 90 lwz r9,10384(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; ffc180a8: 38 00 00 01 li r0,1 ffc180ac: 98 03 00 74 stb r0,116(r3) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc180b0: 2f 89 00 00 cmpwi cr7,r9,0 ffc180b4: 41 9e 00 40 beq- cr7,ffc180f4 ffc180b8: 3d 20 00 00 lis r9,0 ffc180bc: 81 29 28 a8 lwz r9,10408(r9) ffc180c0: 7f 83 48 00 cmpw cr7,r3,r9 ffc180c4: 40 be 00 30 bne+ cr7,ffc180f4 <== NEVER TAKEN _ISR_Signals_to_thread_executing = true; ffc180c8: 3d 20 00 00 lis r9,0 ffc180cc: 98 09 28 c4 stb r0,10436(r9) ffc180d0: 48 00 00 24 b ffc180f4 <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc180d4: 7c 00 00 a6 mfmsr r0 ffc180d8: 7d 70 42 a6 mfsprg r11,0 ffc180dc: 7c 0b 58 78 andc r11,r0,r11 ffc180e0: 7d 60 01 24 mtmsr r11 ffc180e4: 81 69 00 18 lwz r11,24(r9) ffc180e8: 7d 7f fb 78 or r31,r11,r31 ffc180ec: 93 e9 00 18 stw r31,24(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc180f0: 7c 00 01 24 mtmsr r0 } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); ffc180f4: 48 00 4c 6d bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc180f8: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc180fc: 48 00 00 0c b ffc18108 <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc18100: 48 00 4c 61 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc18104: 38 00 00 0b li r0,11 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc18108: 7c 03 03 78 mr r3,r0 ffc1810c: 80 01 00 24 lwz r0,36(r1) ffc18110: 83 e1 00 1c lwz r31,28(r1) ffc18114: 38 21 00 20 addi r1,r1,32 ffc18118: 7c 08 03 a6 mtlr r0 ffc1811c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc060ac : * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) { ffc060ac: 7c 08 02 a6 mflr r0 ffc060b0: 94 21 ff f8 stwu r1,-8(r1) ffc060b4: 90 01 00 0c stw r0,12(r1) Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */ ffc060b8: 80 03 00 08 lwz r0,8(r3) ffc060bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc060c0: 41 9e 00 1c beq- cr7,ffc060dc <== NEVER TAKEN return; the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack); *the_pattern = Stack_check_Pattern; ffc060c4: 80 63 00 d0 lwz r3,208(r3) ffc060c8: 3c 80 00 00 lis r4,0 ffc060cc: 38 84 63 14 addi r4,r4,25364 ffc060d0: 38 63 00 08 addi r3,r3,8 ffc060d4: 38 a0 00 80 li r5,128 ffc060d8: 48 04 51 15 bl ffc4b1ec <== ALWAYS TAKEN } ffc060dc: 80 01 00 0c lwz r0,12(r1) ffc060e0: 38 21 00 08 addi r1,r1,8 ffc060e4: 7c 08 03 a6 mtlr r0 ffc060e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc065d4 : */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) { ffc065d4: 94 21 ff f0 stwu r1,-16(r1) ffc065d8: 7c 08 02 a6 mflr r0 ffc065dc: 93 e1 00 0c stw r31,12(r1) ffc065e0: 7c 9f 23 78 mr r31,r4 ffc065e4: 90 01 00 14 stw r0,20(r1) Stack_check_Initialize(); ffc065e8: 4b ff fa 71 bl ffc06058 <== ALWAYS TAKEN if (the_thread) ffc065ec: 2f 9f 00 00 cmpwi cr7,r31,0 ffc065f0: 41 9e 00 14 beq- cr7,ffc06604 <== NEVER TAKEN Stack_check_Dope_stack(&the_thread->Start.Initial_stack); ffc065f4: 80 bf 00 cc lwz r5,204(r31) ffc065f8: 38 80 00 a5 li r4,165 ffc065fc: 80 7f 00 d0 lwz r3,208(r31) ffc06600: 48 04 4e 25 bl ffc4b424 <== ALWAYS TAKEN return true; } ffc06604: 80 01 00 14 lwz r0,20(r1) ffc06608: 38 60 00 01 li r3,1 ffc0660c: 83 e1 00 0c lwz r31,12(r1) ffc06610: 38 21 00 10 addi r1,r1,16 ffc06614: 7c 08 03 a6 mtlr r0 ffc06618: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0646c : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc0646c: 94 21 ff f0 stwu r1,-16(r1) ffc06470: 7c 08 02 a6 mflr r0 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc06474: 3d 20 00 00 lis r9,0 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06478: 90 01 00 14 stw r0,20(r1) Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc0647c: 81 29 36 58 lwz r9,13912(r9) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06480: 93 e1 00 0c stw r31,12(r1) ffc06484: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06488: 80 69 00 d0 lwz r3,208(r9) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc0648c: 93 c1 00 08 stw r30,8(r1) ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06490: 3b c0 00 00 li r30,0 ffc06494: 7f 9f 18 40 cmplw cr7,r31,r3 ffc06498: 41 9c 00 18 blt- cr7,ffc064b0 <== NEVER TAKEN } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) ffc0649c: 83 c9 00 cc lwz r30,204(r9) ffc064a0: 7f c3 f2 14 add r30,r3,r30 ffc064a4: 7f df f0 10 subfc r30,r31,r30 ffc064a8: 3b c0 00 00 li r30,0 ffc064ac: 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 ) { ffc064b0: 3d 20 00 00 lis r9,0 ffc064b4: 80 09 37 68 lwz r0,14184(r9) ffc064b8: 38 80 00 01 li r4,1 ffc064bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc064c0: 41 9e 00 20 beq- cr7,ffc064e0 <== NEVER TAKEN pattern_ok = (!memcmp( ffc064c4: 3c 80 00 00 lis r4,0 ffc064c8: 38 84 63 14 addi r4,r4,25364 ffc064cc: 38 63 00 08 addi r3,r3,8 ffc064d0: 38 a0 00 80 li r5,128 ffc064d4: 48 04 4c 75 bl ffc4b148 <== ALWAYS TAKEN ffc064d8: 7c 64 00 34 cntlzw r4,r3 ffc064dc: 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 ) ffc064e0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc064e4: 41 9e 00 10 beq- cr7,ffc064f4 <== NEVER TAKEN ffc064e8: 2f 84 00 00 cmpwi cr7,r4,0 ffc064ec: 38 60 00 00 li r3,0 ffc064f0: 40 9e 00 14 bne- cr7,ffc06504 <== ALWAYS TAKEN return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); ffc064f4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc064f8: 80 69 36 58 lwz r3,13912(r9) <== NOT EXECUTED ffc064fc: 4b ff fe 95 bl ffc06390 <== NOT EXECUTED ffc06500: 38 60 00 01 li r3,1 <== NOT EXECUTED return true; } ffc06504: 39 7f 00 10 addi r11,r31,16 ffc06508: 80 0b 00 04 lwz r0,4(r11) ffc0650c: 83 cb ff f8 lwz r30,-8(r11) ffc06510: 7c 08 03 a6 mtlr r0 ffc06514: 83 eb ff fc lwz r31,-4(r11) ffc06518: 7d 61 5b 78 mr r1,r11 ffc0651c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06380 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); ffc06380: 3c 80 ff c1 lis r4,-63 <== NOT EXECUTED ffc06384: 38 84 99 ac addi r4,r4,-26196 <== NOT EXECUTED ffc06388: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0638c: 4b ff ff 5c b ffc062e8 <== NOT EXECUTED ffc062e8 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc062e8: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc062ec: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc062f0: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED print_context = context; ffc062f4: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc062f8: 3b ff 37 68 addi r31,r31,14184 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc062fc: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc06300: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06304: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc06308: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc0630c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06310: 38 84 42 50 addi r4,r4,16976 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc06314: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc06318: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED print_context = context; print_handler = print; ffc0631c: 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; ffc06320: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06324: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06328: 4e 80 04 21 bctrl <== NOT EXECUTED (*print)( context, ffc0632c: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc06330: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED ffc06334: 38 84 42 67 addi r4,r4,16999 <== NOT EXECUTED ffc06338: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0633c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06340: 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 ); ffc06344: 3c 60 ff c0 lis r3,-64 <== NOT EXECUTED ffc06348: 38 63 61 24 addi r3,r3,24868 <== NOT EXECUTED ffc0634c: 48 00 88 29 bl ffc0eb74 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); ffc06350: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc06354: 4b ff fd d1 bl ffc06124 <== NOT EXECUTED print_context = NULL; ffc06358: 38 00 00 00 li r0,0 <== NOT EXECUTED print_handler = NULL; ffc0635c: 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; ffc06360: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED print_handler = NULL; } ffc06364: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc06368: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0636c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06370: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc06374: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc06378: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0637c: 4e 80 00 20 blr <== NOT EXECUTED ffc06520 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06520: 94 21 ff e8 stwu r1,-24(r1) ffc06524: 7c 08 02 a6 mflr r0 ffc06528: 90 01 00 1c stw r0,28(r1) ffc0652c: 93 c1 00 10 stw r30,16(r1) ffc06530: 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; ffc06534: 80 63 00 d0 lwz r3,208(r3) */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06538: 93 e1 00 14 stw r31,20(r1) ffc0653c: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06540: 7f 9f 18 40 cmplw cr7,r31,r3 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06544: 93 a1 00 0c stw r29,12(r1) ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06548: 3b a0 00 00 li r29,0 ffc0654c: 41 9c 00 18 blt- cr7,ffc06564 <== NEVER TAKEN } /* * rtems_stack_checker_switch_extension */ void rtems_stack_checker_switch_extension( ffc06550: 83 be 00 cc lwz r29,204(r30) ffc06554: 7f a3 ea 14 add r29,r3,r29 ffc06558: 7f bf e8 10 subfc r29,r31,r29 ffc0655c: 3b a0 00 00 li r29,0 ffc06560: 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, ffc06564: 3c 80 00 00 lis r4,0 ffc06568: 38 84 63 14 addi r4,r4,25364 ffc0656c: 38 63 00 08 addi r3,r3,8 ffc06570: 38 a0 00 80 li r5,128 ffc06574: 48 04 4b d5 bl ffc4b148 <== ALWAYS TAKEN (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { ffc06578: 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, ffc0657c: 7c 64 00 34 cntlzw r4,r3 ffc06580: 54 84 d9 7e rlwinm r4,r4,27,5,31 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { ffc06584: 41 9e 00 0c beq- cr7,ffc06590 <== NEVER TAKEN ffc06588: 2f 84 00 00 cmpwi cr7,r4,0 ffc0658c: 40 9e 00 28 bne- cr7,ffc065b4 Stack_check_report_blown_task( running, pattern_ok ); } } ffc06590: 39 7f 00 18 addi r11,r31,24 ffc06594: 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 ); ffc06598: 7f c3 f3 78 mr r3,r30 } } ffc0659c: 83 ab ff f4 lwz r29,-12(r11) ffc065a0: 7c 08 03 a6 mtlr r0 ffc065a4: 83 cb ff f8 lwz r30,-8(r11) ffc065a8: 83 eb ff fc lwz r31,-4(r11) ffc065ac: 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 ); ffc065b0: 4b ff fd e0 b ffc06390 <== ALWAYS TAKEN } } ffc065b4: 39 7f 00 18 addi r11,r31,24 ffc065b8: 80 0b 00 04 lwz r0,4(r11) ffc065bc: 83 ab ff f4 lwz r29,-12(r11) ffc065c0: 7c 08 03 a6 mtlr r0 ffc065c4: 83 cb ff f8 lwz r30,-8(r11) ffc065c8: 83 eb ff fc lwz r31,-4(r11) ffc065cc: 7d 61 5b 78 mr r1,r11 ffc065d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a02c : const char * rtems_status_text( rtems_status_code status ) { ffc0a02c: 94 21 ff f8 stwu r1,-8(r1) ffc0a030: 7c 08 02 a6 mflr r0 ffc0a034: 7c 64 1b 78 mr r4,r3 return rtems_assoc_name_by_local(rtems_status_assoc, status); ffc0a038: 3c 60 ff c3 lis r3,-61 const char * rtems_status_text( rtems_status_code status ) { ffc0a03c: 90 01 00 0c stw r0,12(r1) return rtems_assoc_name_by_local(rtems_status_assoc, status); ffc0a040: 38 63 9b 50 addi r3,r3,-25776 ffc0a044: 48 00 ad 35 bl ffc14d78 <== ALWAYS TAKEN } ffc0a048: 80 01 00 0c lwz r0,12(r1) ffc0a04c: 38 21 00 08 addi r1,r1,8 ffc0a050: 7c 08 03 a6 mtlr r0 ffc0a054: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ede4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0ede4: 94 21 ff d0 stwu r1,-48(r1) ffc0ede8: 7c 08 02 a6 mflr r0 ffc0edec: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0edf0: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0edf4: 93 a1 00 1c stw r29,28(r1) ffc0edf8: 7c bd 2b 78 mr r29,r5 ffc0edfc: 93 c1 00 20 stw r30,32(r1) ffc0ee00: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0ee04: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0ee08: 90 01 00 34 stw r0,52(r1) ffc0ee0c: db e1 00 28 stfd f31,40(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0ee10: 41 82 00 78 beq- ffc0ee88 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0ee14: 48 00 3b 75 bl ffc12988 <__errno> <== ALWAYS TAKEN *n = 0; ffc0ee18: 3d 20 ff c2 lis r9,-62 ffc0ee1c: c8 09 f9 f8 lfd f0,-1544(r9) char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc0ee20: 38 00 00 00 li r0,0 ffc0ee24: 90 03 00 00 stw r0,0(r3) *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0ee28: 38 81 00 08 addi r4,r1,8 ffc0ee2c: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0ee30: d8 1f 00 00 stfd f0,0(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0ee34: 48 00 68 89 bl ffc156bc <== ALWAYS TAKEN #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 ) ffc0ee38: 2f 9d 00 00 cmpwi cr7,r29,0 errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0ee3c: 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 ) ffc0ee40: 41 9e 00 0c beq- cr7,ffc0ee4c *endptr = end; ffc0ee44: 80 01 00 08 lwz r0,8(r1) ffc0ee48: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0ee4c: 80 01 00 08 lwz r0,8(r1) ffc0ee50: 38 60 00 0b li r3,11 ffc0ee54: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0ee58: 41 9e 00 30 beq- cr7,ffc0ee88 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0ee5c: 3d 20 ff c2 lis r9,-62 ffc0ee60: c8 09 1c d8 lfd f0,7384(r9) ffc0ee64: ff 9f 00 00 fcmpu cr7,f31,f0 ffc0ee68: 40 9d 00 18 ble- cr7,ffc0ee80 ffc0ee6c: 48 00 3b 1d bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0ee70: 80 03 00 00 lwz r0,0(r3) ffc0ee74: 38 60 00 0a li r3,10 ffc0ee78: 2f 80 00 22 cmpwi cr7,r0,34 ffc0ee7c: 41 9e 00 0c beq- cr7,ffc0ee88 <== ALWAYS TAKEN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc0ee80: db ff 00 00 stfd f31,0(r31) ffc0ee84: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc0ee88: 80 01 00 34 lwz r0,52(r1) ffc0ee8c: 83 a1 00 1c lwz r29,28(r1) ffc0ee90: 7c 08 03 a6 mtlr r0 ffc0ee94: 83 c1 00 20 lwz r30,32(r1) ffc0ee98: 83 e1 00 24 lwz r31,36(r1) ffc0ee9c: cb e1 00 28 lfd f31,40(r1) ffc0eea0: 38 21 00 30 addi r1,r1,48 ffc0eea4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0eea8 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0eea8: 94 21 ff d0 stwu r1,-48(r1) ffc0eeac: 7c 08 02 a6 mflr r0 ffc0eeb0: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0eeb4: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0eeb8: 93 a1 00 1c stw r29,28(r1) ffc0eebc: 7c bd 2b 78 mr r29,r5 ffc0eec0: 93 c1 00 20 stw r30,32(r1) ffc0eec4: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0eec8: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0eecc: 90 01 00 34 stw r0,52(r1) ffc0eed0: db e1 00 28 stfd f31,40(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0eed4: 41 82 00 74 beq- ffc0ef48 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0eed8: 48 00 3a b1 bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0eedc: 38 00 00 00 li r0,0 ffc0eee0: 90 03 00 00 stw r0,0(r3) *n = 0; ffc0eee4: 38 00 00 00 li r0,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0eee8: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0eeec: 90 1f 00 00 stw r0,0(r31) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0eef0: 38 81 00 08 addi r4,r1,8 ffc0eef4: 48 00 67 61 bl ffc15654 <== ALWAYS TAKEN #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 ) ffc0eef8: 2f 9d 00 00 cmpwi cr7,r29,0 errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc0eefc: 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 ) ffc0ef00: 41 9e 00 0c beq- cr7,ffc0ef0c *endptr = end; ffc0ef04: 80 01 00 08 lwz r0,8(r1) ffc0ef08: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0ef0c: 80 01 00 08 lwz r0,8(r1) ffc0ef10: 38 60 00 0b li r3,11 ffc0ef14: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0ef18: 41 9e 00 30 beq- cr7,ffc0ef48 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0ef1c: 3d 20 ff c2 lis r9,-62 ffc0ef20: c0 09 1c e0 lfs f0,7392(r9) ffc0ef24: ff 9f 00 00 fcmpu cr7,f31,f0 ffc0ef28: 40 9d 00 18 ble- cr7,ffc0ef40 ffc0ef2c: 48 00 3a 5d bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0ef30: 80 03 00 00 lwz r0,0(r3) ffc0ef34: 38 60 00 0a li r3,10 ffc0ef38: 2f 80 00 22 cmpwi cr7,r0,34 ffc0ef3c: 41 9e 00 0c beq- cr7,ffc0ef48 <== ALWAYS TAKEN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc0ef40: d3 ff 00 00 stfs f31,0(r31) ffc0ef44: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc0ef48: 80 01 00 34 lwz r0,52(r1) ffc0ef4c: 83 a1 00 1c lwz r29,28(r1) ffc0ef50: 7c 08 03 a6 mtlr r0 ffc0ef54: 83 c1 00 20 lwz r30,32(r1) ffc0ef58: 83 e1 00 24 lwz r31,36(r1) ffc0ef5c: cb e1 00 28 lfd f31,40(r1) ffc0ef60: 38 21 00 30 addi r1,r1,48 ffc0ef64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc20fcc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc20fcc: 94 21 ff d8 stwu r1,-40(r1) ffc20fd0: 7c 08 02 a6 mflr r0 ffc20fd4: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc20fd8: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc20fdc: 93 81 00 18 stw r28,24(r1) ffc20fe0: 7c dc 33 78 mr r28,r6 ffc20fe4: 93 a1 00 1c stw r29,28(r1) ffc20fe8: 7c bd 2b 78 mr r29,r5 ffc20fec: 93 c1 00 20 stw r30,32(r1) ffc20ff0: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc20ff4: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc20ff8: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc20ffc: 41 82 00 70 beq- ffc2106c return RTEMS_INVALID_ADDRESS; errno = 0; ffc21000: 48 02 66 8d bl ffc4768c <__errno> <== ALWAYS TAKEN ffc21004: 38 00 00 00 li r0,0 ffc21008: 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 ); ffc2100c: 7f 85 e3 78 mr r5,r28 ffc21010: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc21014: 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 ); ffc21018: 38 81 00 08 addi r4,r1,8 ffc2101c: 48 02 f4 81 bl ffc5049c <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc21020: 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 ); ffc21024: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc21028: 41 9e 00 0c beq- cr7,ffc21034 *endptr = end; ffc2102c: 80 01 00 08 lwz r0,8(r1) ffc21030: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc21034: 80 01 00 08 lwz r0,8(r1) ffc21038: 38 60 00 0b li r3,11 ffc2103c: 7f 80 f0 00 cmpw cr7,r0,r30 ffc21040: 41 9e 00 2c beq- cr7,ffc2106c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc21044: 6f 80 80 00 xoris r0,r28,32768 ffc21048: 2f 80 ff ff cmpwi cr7,r0,-1 ffc2104c: 40 9e 00 18 bne- cr7,ffc21064 ffc21050: 48 02 66 3d bl ffc4768c <__errno> <== ALWAYS TAKEN ffc21054: 80 03 00 00 lwz r0,0(r3) ffc21058: 38 60 00 0a li r3,10 ffc2105c: 2f 80 00 22 cmpwi cr7,r0,34 ffc21060: 41 9e 00 0c beq- cr7,ffc2106c <== ALWAYS TAKEN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc21064: 93 9f 00 00 stw r28,0(r31) ffc21068: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc2106c: 80 01 00 2c lwz r0,44(r1) ffc21070: 83 81 00 18 lwz r28,24(r1) ffc21074: 7c 08 03 a6 mtlr r0 ffc21078: 83 a1 00 1c lwz r29,28(r1) ffc2107c: 83 c1 00 20 lwz r30,32(r1) ffc21080: 83 e1 00 24 lwz r31,36(r1) ffc21084: 38 21 00 28 addi r1,r1,40 ffc21088: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f120 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f120: 94 21 ff d8 stwu r1,-40(r1) ffc0f124: 7c 08 02 a6 mflr r0 ffc0f128: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f12c: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f130: 93 81 00 18 stw r28,24(r1) ffc0f134: 7c dc 33 78 mr r28,r6 ffc0f138: 93 a1 00 1c stw r29,28(r1) ffc0f13c: 7c bd 2b 78 mr r29,r5 ffc0f140: 93 c1 00 20 stw r30,32(r1) ffc0f144: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f148: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f14c: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f150: 41 82 00 7c beq- ffc0f1cc return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f154: 48 00 38 35 bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0f158: 38 00 00 00 li r0,0 ffc0f15c: 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 ); ffc0f160: 7f 85 e3 78 mr r5,r28 ffc0f164: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f168: 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 ); ffc0f16c: 38 81 00 08 addi r4,r1,8 ffc0f170: 48 00 67 65 bl ffc158d4 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f174: 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 ); ffc0f178: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f17c: 41 9e 00 0c beq- cr7,ffc0f188 *endptr = end; ffc0f180: 80 01 00 08 lwz r0,8(r1) ffc0f184: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f188: 80 01 00 08 lwz r0,8(r1) ffc0f18c: 38 60 00 0b li r3,11 ffc0f190: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f194: 41 9e 00 38 beq- cr7,ffc0f1cc return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f198: 6f 80 80 00 xoris r0,r28,32768 ffc0f19c: 2f 80 ff ff cmpwi cr7,r0,-1 ffc0f1a0: 41 9e 00 10 beq- cr7,ffc0f1b0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc0f1a4: 3c 00 80 00 lis r0,-32768 ffc0f1a8: 7f 9c 00 00 cmpw cr7,r28,r0 ffc0f1ac: 40 be 00 18 bne+ cr7,ffc0f1c4 ffc0f1b0: 48 00 37 d9 bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0f1b4: 80 03 00 00 lwz r0,0(r3) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; ffc0f1b8: 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)) ffc0f1bc: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f1c0: 41 9e 00 0c beq- cr7,ffc0f1cc <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc0f1c4: 93 9f 00 00 stw r28,0(r31) ffc0f1c8: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc0f1cc: 80 01 00 2c lwz r0,44(r1) ffc0f1d0: 83 81 00 18 lwz r28,24(r1) ffc0f1d4: 7c 08 03 a6 mtlr r0 ffc0f1d8: 83 a1 00 1c lwz r29,28(r1) ffc0f1dc: 83 c1 00 20 lwz r30,32(r1) ffc0f1e0: 83 e1 00 24 lwz r31,36(r1) ffc0f1e4: 38 21 00 28 addi r1,r1,40 ffc0f1e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f028 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f028: 94 21 ff d0 stwu r1,-48(r1) ffc0f02c: 7c 08 02 a6 mflr r0 ffc0f030: 93 e1 00 2c stw r31,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f034: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f038: 93 81 00 20 stw r28,32(r1) ffc0f03c: 7c dc 33 78 mr r28,r6 ffc0f040: 93 a1 00 24 stw r29,36(r1) ffc0f044: 7c bd 2b 78 mr r29,r5 ffc0f048: 93 c1 00 28 stw r30,40(r1) ffc0f04c: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f050: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f054: 90 01 00 34 stw r0,52(r1) ffc0f058: 93 61 00 1c stw r27,28(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f05c: 41 82 00 a0 beq- ffc0f0fc return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f060: 48 00 39 29 bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0f064: 38 00 00 00 li r0,0 *n = 0; ffc0f068: 39 20 00 00 li r9,0 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f06c: 90 03 00 00 stw r0,0(r3) *n = 0; ffc0f070: 39 40 00 00 li r10,0 ffc0f074: 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 ); ffc0f078: 7f 85 e3 78 mr r5,r28 ffc0f07c: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f080: 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 ); ffc0f084: 38 81 00 08 addi r4,r1,8 ffc0f088: 48 00 68 6d bl ffc158f4 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f08c: 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 ); ffc0f090: 7c 7c 1b 78 mr r28,r3 ffc0f094: 7c 9b 23 78 mr r27,r4 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f098: 41 9e 00 0c beq- cr7,ffc0f0a4 *endptr = end; ffc0f09c: 80 01 00 08 lwz r0,8(r1) ffc0f0a0: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f0a4: 80 01 00 08 lwz r0,8(r1) ffc0f0a8: 38 60 00 0b li r3,11 ffc0f0ac: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f0b0: 41 9e 00 4c beq- cr7,ffc0f0fc return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f0b4: 6f 80 80 00 xoris r0,r28,32768 ffc0f0b8: 2f 80 ff ff cmpwi cr7,r0,-1 ffc0f0bc: 40 9e 00 0c bne- cr7,ffc0f0c8 ffc0f0c0: 2f 9b ff ff cmpwi cr7,r27,-1 ffc0f0c4: 41 9e 00 18 beq- cr7,ffc0f0dc <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc0f0c8: 3c 00 80 00 lis r0,-32768 ffc0f0cc: 7f 9c 00 00 cmpw cr7,r28,r0 ffc0f0d0: 40 be 00 20 bne+ cr7,ffc0f0f0 ffc0f0d4: 2f 9b 00 00 cmpwi cr7,r27,0 ffc0f0d8: 40 9e 00 18 bne- cr7,ffc0f0f0 <== NEVER TAKEN ffc0f0dc: 48 00 38 ad bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0f0e0: 80 03 00 00 lwz r0,0(r3) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; ffc0f0e4: 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)) ffc0f0e8: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f0ec: 41 9e 00 10 beq- cr7,ffc0f0fc <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc0f0f0: 93 7f 00 04 stw r27,4(r31) ffc0f0f4: 38 60 00 00 li r3,0 ffc0f0f8: 93 9f 00 00 stw r28,0(r31) return RTEMS_SUCCESSFUL; } ffc0f0fc: 80 01 00 34 lwz r0,52(r1) ffc0f100: 83 61 00 1c lwz r27,28(r1) ffc0f104: 7c 08 03 a6 mtlr r0 ffc0f108: 83 81 00 20 lwz r28,32(r1) ffc0f10c: 83 a1 00 24 lwz r29,36(r1) ffc0f110: 83 c1 00 28 lwz r30,40(r1) ffc0f114: 83 e1 00 2c lwz r31,44(r1) ffc0f118: 38 21 00 30 addi r1,r1,48 ffc0f11c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2108c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc2108c: 94 21 ff d8 stwu r1,-40(r1) ffc21090: 7c 08 02 a6 mflr r0 ffc21094: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc21098: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc2109c: 93 a1 00 1c stw r29,28(r1) ffc210a0: 7c bd 2b 78 mr r29,r5 ffc210a4: 93 c1 00 20 stw r30,32(r1) ffc210a8: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc210ac: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc210b0: 90 01 00 2c stw r0,44(r1) ffc210b4: 93 81 00 18 stw r28,24(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc210b8: 41 82 00 6c beq- ffc21124 return RTEMS_INVALID_ADDRESS; errno = 0; ffc210bc: 48 02 65 d1 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc210c0: 38 00 00 00 li r0,0 ffc210c4: 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 ); ffc210c8: 38 81 00 08 addi r4,r1,8 ffc210cc: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc210d0: 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 ); ffc210d4: 38 a0 00 10 li r5,16 ffc210d8: 48 02 f9 11 bl ffc509e8 <== ALWAYS TAKEN #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 ) ffc210dc: 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 ); ffc210e0: 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 ) ffc210e4: 41 9e 00 0c beq- cr7,ffc210f0 *endptr = end; ffc210e8: 80 01 00 08 lwz r0,8(r1) ffc210ec: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc210f0: 80 01 00 08 lwz r0,8(r1) ffc210f4: 38 60 00 0b li r3,11 ffc210f8: 7f 80 f0 00 cmpw cr7,r0,r30 ffc210fc: 41 9e 00 28 beq- cr7,ffc21124 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc21100: 2f 9c ff ff cmpwi cr7,r28,-1 ffc21104: 40 be 00 18 bne+ cr7,ffc2111c <== ALWAYS TAKEN ffc21108: 48 02 65 85 bl ffc4768c <__errno> <== NOT EXECUTED ffc2110c: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc21110: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc21114: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc21118: 41 9e 00 0c beq- cr7,ffc21124 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc2111c: 93 9f 00 00 stw r28,0(r31) ffc21120: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc21124: 80 01 00 2c lwz r0,44(r1) ffc21128: 83 81 00 18 lwz r28,24(r1) ffc2112c: 7c 08 03 a6 mtlr r0 ffc21130: 83 a1 00 1c lwz r29,28(r1) ffc21134: 83 c1 00 20 lwz r30,32(r1) ffc21138: 83 e1 00 24 lwz r31,36(r1) ffc2113c: 38 21 00 28 addi r1,r1,40 ffc21140: 4e 80 00 20 blr <== ALWAYS TAKEN ffc21144 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc21144: 94 21 ff d8 stwu r1,-40(r1) ffc21148: 7c 08 02 a6 mflr r0 ffc2114c: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc21150: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc21154: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc21158: 38 00 00 09 li r0,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc2115c: 93 81 00 18 stw r28,24(r1) ffc21160: 7c dc 33 78 mr r28,r6 ffc21164: 93 a1 00 1c stw r29,28(r1) ffc21168: 7c bd 2b 78 mr r29,r5 ffc2116c: 93 c1 00 20 stw r30,32(r1) ffc21170: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc21174: 41 82 00 4c beq- ffc211c0 return RTEMS_INVALID_ADDRESS; errno = 0; ffc21178: 48 02 65 15 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2117c: 38 00 00 00 li r0,0 ffc21180: 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 ); ffc21184: 7f 85 e3 78 mr r5,r28 ffc21188: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc2118c: 98 1f 00 00 stb 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 ); ffc21190: 38 81 00 08 addi r4,r1,8 ffc21194: 48 02 f8 55 bl ffc509e8 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc21198: 2f 9d 00 00 cmpwi cr7,r29,0 ffc2119c: 41 9e 00 0c beq- cr7,ffc211a8 *endptr = end; ffc211a0: 80 01 00 08 lwz r0,8(r1) ffc211a4: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc211a8: 81 21 00 08 lwz r9,8(r1) ffc211ac: 38 00 00 0b li r0,11 ffc211b0: 7f 89 f0 00 cmpw cr7,r9,r30 ffc211b4: 41 9e 00 0c beq- cr7,ffc211c0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc211b8: 98 7f 00 00 stb r3,0(r31) ffc211bc: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc211c0: 7c 03 03 78 mr r3,r0 ffc211c4: 80 01 00 2c lwz r0,44(r1) ffc211c8: 83 81 00 18 lwz r28,24(r1) ffc211cc: 7c 08 03 a6 mtlr r0 ffc211d0: 83 a1 00 1c lwz r29,28(r1) ffc211d4: 83 c1 00 20 lwz r30,32(r1) ffc211d8: 83 e1 00 24 lwz r31,36(r1) ffc211dc: 38 21 00 28 addi r1,r1,40 ffc211e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f344 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f344: 94 21 ff d8 stwu r1,-40(r1) ffc0f348: 7c 08 02 a6 mflr r0 ffc0f34c: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f350: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f354: 93 81 00 18 stw r28,24(r1) ffc0f358: 7c dc 33 78 mr r28,r6 ffc0f35c: 93 a1 00 1c stw r29,28(r1) ffc0f360: 7c bd 2b 78 mr r29,r5 ffc0f364: 93 c1 00 20 stw r30,32(r1) ffc0f368: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f36c: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f370: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f374: 41 82 00 6c beq- ffc0f3e0 return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f378: 48 00 36 11 bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0f37c: 38 00 00 00 li r0,0 ffc0f380: 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 ); ffc0f384: 7f 85 e3 78 mr r5,r28 ffc0f388: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f38c: 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 ); ffc0f390: 38 81 00 08 addi r4,r1,8 ffc0f394: 48 00 6a 8d bl ffc15e20 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f398: 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 ); ffc0f39c: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f3a0: 41 9e 00 0c beq- cr7,ffc0f3ac *endptr = end; ffc0f3a4: 80 01 00 08 lwz r0,8(r1) ffc0f3a8: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f3ac: 80 01 00 08 lwz r0,8(r1) ffc0f3b0: 38 60 00 0b li r3,11 ffc0f3b4: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f3b8: 41 9e 00 28 beq- cr7,ffc0f3e0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f3bc: 2f 9c ff ff cmpwi cr7,r28,-1 ffc0f3c0: 40 be 00 18 bne+ cr7,ffc0f3d8 ffc0f3c4: 48 00 35 c5 bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0f3c8: 80 03 00 00 lwz r0,0(r3) ffc0f3cc: 38 60 00 0a li r3,10 ffc0f3d0: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f3d4: 41 9e 00 0c beq- cr7,ffc0f3e0 <== ALWAYS TAKEN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc0f3d8: 93 9f 00 00 stw r28,0(r31) ffc0f3dc: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc0f3e0: 80 01 00 2c lwz r0,44(r1) ffc0f3e4: 83 81 00 18 lwz r28,24(r1) ffc0f3e8: 7c 08 03 a6 mtlr r0 ffc0f3ec: 83 a1 00 1c lwz r29,28(r1) ffc0f3f0: 83 c1 00 20 lwz r30,32(r1) ffc0f3f4: 83 e1 00 24 lwz r31,36(r1) ffc0f3f8: 38 21 00 28 addi r1,r1,40 ffc0f3fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc211e4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc211e4: 94 21 ff d8 stwu r1,-40(r1) ffc211e8: 7c 08 02 a6 mflr r0 ffc211ec: 93 e1 00 24 stw r31,36(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc211f0: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc211f4: 93 81 00 18 stw r28,24(r1) ffc211f8: 7c dc 33 78 mr r28,r6 ffc211fc: 93 a1 00 1c stw r29,28(r1) ffc21200: 7c bd 2b 78 mr r29,r5 ffc21204: 93 c1 00 20 stw r30,32(r1) ffc21208: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc2120c: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc21210: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc21214: 41 82 00 6c beq- ffc21280 return RTEMS_INVALID_ADDRESS; errno = 0; ffc21218: 48 02 64 75 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc2121c: 38 00 00 00 li r0,0 ffc21220: 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 ); ffc21224: 7f 85 e3 78 mr r5,r28 ffc21228: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc2122c: 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 ); ffc21230: 38 81 00 08 addi r4,r1,8 ffc21234: 48 02 f7 b5 bl ffc509e8 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc21238: 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 ); ffc2123c: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc21240: 41 9e 00 0c beq- cr7,ffc2124c *endptr = end; ffc21244: 80 01 00 08 lwz r0,8(r1) ffc21248: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc2124c: 80 01 00 08 lwz r0,8(r1) ffc21250: 38 60 00 0b li r3,11 ffc21254: 7f 80 f0 00 cmpw cr7,r0,r30 ffc21258: 41 9e 00 28 beq- cr7,ffc21280 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc2125c: 2f 9c ff ff cmpwi cr7,r28,-1 ffc21260: 40 be 00 18 bne+ cr7,ffc21278 ffc21264: 48 02 64 29 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc21268: 80 03 00 00 lwz r0,0(r3) ffc2126c: 38 60 00 0a li r3,10 ffc21270: 2f 80 00 22 cmpwi cr7,r0,34 ffc21274: 41 9e 00 0c beq- cr7,ffc21280 <== ALWAYS TAKEN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc21278: 93 9f 00 00 stw r28,0(r31) ffc2127c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc21280: 80 01 00 2c lwz r0,44(r1) ffc21284: 83 81 00 18 lwz r28,24(r1) ffc21288: 7c 08 03 a6 mtlr r0 ffc2128c: 83 a1 00 1c lwz r29,28(r1) ffc21290: 83 c1 00 20 lwz r30,32(r1) ffc21294: 83 e1 00 24 lwz r31,36(r1) ffc21298: 38 21 00 28 addi r1,r1,40 ffc2129c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f400 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f400: 94 21 ff d0 stwu r1,-48(r1) ffc0f404: 7c 08 02 a6 mflr r0 ffc0f408: 93 e1 00 2c stw r31,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f40c: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f410: 93 81 00 20 stw r28,32(r1) ffc0f414: 7c dc 33 78 mr r28,r6 ffc0f418: 93 a1 00 24 stw r29,36(r1) ffc0f41c: 7c bd 2b 78 mr r29,r5 ffc0f420: 93 c1 00 28 stw r30,40(r1) ffc0f424: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f428: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc0f42c: 90 01 00 34 stw r0,52(r1) ffc0f430: 93 61 00 1c stw r27,28(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc0f434: 41 82 00 88 beq- ffc0f4bc return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f438: 48 00 35 51 bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0f43c: 38 00 00 00 li r0,0 *n = 0; ffc0f440: 39 20 00 00 li r9,0 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc0f444: 90 03 00 00 stw r0,0(r3) *n = 0; ffc0f448: 39 40 00 00 li r10,0 ffc0f44c: 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 ); ffc0f450: 7f 85 e3 78 mr r5,r28 ffc0f454: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc0f458: 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 ); ffc0f45c: 38 81 00 08 addi r4,r1,8 ffc0f460: 48 00 69 e1 bl ffc15e40 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f464: 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 ); ffc0f468: 7c 7c 1b 78 mr r28,r3 ffc0f46c: 7c 9b 23 78 mr r27,r4 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc0f470: 41 9e 00 0c beq- cr7,ffc0f47c *endptr = end; ffc0f474: 80 01 00 08 lwz r0,8(r1) ffc0f478: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc0f47c: 80 01 00 08 lwz r0,8(r1) ffc0f480: 38 60 00 0b li r3,11 ffc0f484: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0f488: 41 9e 00 34 beq- cr7,ffc0f4bc return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc0f48c: 2f 9c ff ff cmpwi cr7,r28,-1 ffc0f490: 40 be 00 20 bne+ cr7,ffc0f4b0 ffc0f494: 2f 9b ff ff cmpwi cr7,r27,-1 ffc0f498: 40 be 00 18 bne+ cr7,ffc0f4b0 <== NEVER TAKEN ffc0f49c: 48 00 34 ed bl ffc12988 <__errno> <== ALWAYS TAKEN ffc0f4a0: 80 03 00 00 lwz r0,0(r3) ffc0f4a4: 38 60 00 0a li r3,10 ffc0f4a8: 2f 80 00 22 cmpwi cr7,r0,34 ffc0f4ac: 41 9e 00 10 beq- cr7,ffc0f4bc <== ALWAYS TAKEN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc0f4b0: 93 7f 00 04 stw r27,4(r31) ffc0f4b4: 38 60 00 00 li r3,0 ffc0f4b8: 93 9f 00 00 stw r28,0(r31) return RTEMS_SUCCESSFUL; } ffc0f4bc: 80 01 00 34 lwz r0,52(r1) ffc0f4c0: 83 61 00 1c lwz r27,28(r1) ffc0f4c4: 7c 08 03 a6 mtlr r0 ffc0f4c8: 83 81 00 20 lwz r28,32(r1) ffc0f4cc: 83 a1 00 24 lwz r29,36(r1) ffc0f4d0: 83 c1 00 28 lwz r30,40(r1) ffc0f4d4: 83 e1 00 2c lwz r31,44(r1) ffc0f4d8: 38 21 00 30 addi r1,r1,48 ffc0f4dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07dcc : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { ffc07dcc: 94 21 ff c0 stwu r1,-64(r1) ffc07dd0: 7c 08 02 a6 mflr r0 ffc07dd4: 93 81 00 30 stw r28,48(r1) Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) ffc07dd8: 7d 1c 43 79 mr. r28,r8 <== ALWAYS TAKEN size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { ffc07ddc: 93 21 00 24 stw r25,36(r1) ffc07de0: 7c b9 2b 78 mr r25,r5 ffc07de4: 93 41 00 28 stw r26,40(r1) ffc07de8: 7c 9a 23 78 mr r26,r4 ffc07dec: 93 61 00 2c stw r27,44(r1) ffc07df0: 7c 7b 1b 78 mr r27,r3 <== ALWAYS TAKEN Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) ffc07df4: 38 60 00 09 li r3,9 size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { ffc07df8: 93 c1 00 38 stw r30,56(r1) ffc07dfc: 7c de 33 78 mr r30,r6 <== ALWAYS TAKEN ffc07e00: 90 01 00 44 stw r0,68(r1) ffc07e04: 93 01 00 20 stw r24,32(r1) ffc07e08: 93 a1 00 34 stw r29,52(r1) ffc07e0c: 93 e1 00 3c stw r31,60(r1) Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) ffc07e10: 41 82 01 04 beq- ffc07f14 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) ffc07e14: 2f 9b 00 00 cmpwi cr7,r27,0 ffc07e18: 38 60 00 03 li r3,3 ffc07e1c: 41 9e 00 f8 beq- cr7,ffc07f14 /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { ffc07e20: 70 e0 80 00 andi. r0,r7,32768 ffc07e24: 40 82 00 30 bne- ffc07e54 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && ffc07e28: 2f 84 00 00 cmpwi cr7,r4,0 ffc07e2c: 38 00 00 00 li r0,0 ffc07e30: 41 9e 00 18 beq- cr7,ffc07e48 ffc07e34: 3d 20 00 00 lis r9,0 ffc07e38: 88 09 26 a4 lbz r0,9892(r9) <== ALWAYS TAKEN ffc07e3c: 7c 04 00 10 subfc r0,r4,r0 <== ALWAYS TAKEN ffc07e40: 38 00 00 00 li r0,0 ffc07e44: 7c 00 01 14 adde r0,r0,r0 if ( !_RTEMS_tasks_Priority_is_valid( initial_priority ) ) ffc07e48: 2f 80 00 00 cmpwi cr7,r0,0 ffc07e4c: 38 60 00 13 li r3,19 ffc07e50: 41 9e 00 c4 beq- cr7,ffc07f14 */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); ffc07e54: 3f e0 00 00 lis r31,0 ffc07e58: 80 7f 27 a8 lwz r3,10152(r31) * This function allocates a task control block from * the inactive chain of free task control blocks. */ RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information ); ffc07e5c: 3f 00 00 00 lis r24,0 <== ALWAYS TAKEN ffc07e60: 3b 18 2b c4 addi r24,r24,11204 ffc07e64: 48 00 09 65 bl ffc087c8 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc07e68: 7f 03 c3 78 mr r3,r24 <== ALWAYS TAKEN ffc07e6c: 48 00 14 25 bl ffc09290 <_Objects_Allocate> <== ALWAYS TAKEN * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { ffc07e70: 7c 7d 1b 79 mr. r29,r3 <== ALWAYS TAKEN ffc07e74: 40 a2 00 14 bne+ ffc07e88 _RTEMS_Unlock_allocator(); ffc07e78: 80 7f 27 a8 lwz r3,10152(r31) ffc07e7c: 48 00 09 cd bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc07e80: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc07e84: 48 00 00 90 b ffc07f14 <== ALWAYS TAKEN /* * Initialize the core thread for this task. */ status = _Thread_Initialize( ffc07e88: 7c 2b 0b 78 mr r11,r1 <== ALWAYS TAKEN ffc07e8c: 97 6b 00 18 stwu r27,24(r11) <== ALWAYS TAKEN ffc07e90: 6b c9 01 00 xori r9,r30,256 ffc07e94: 57 c0 07 fe clrlwi r0,r30,31 ffc07e98: 39 80 00 00 li r12,0 <== ALWAYS TAKEN ffc07e9c: 90 01 00 0c stw r0,12(r1) ffc07ea0: 7f 03 c3 78 mr r3,r24 ffc07ea4: 7f 26 cb 78 mr r6,r25 ffc07ea8: 91 81 00 08 stw r12,8(r1) ffc07eac: 7f 48 d3 78 mr r8,r26 <== ALWAYS TAKEN ffc07eb0: 55 29 c7 fe rlwinm r9,r9,24,31,31 ffc07eb4: 91 61 00 10 stw r11,16(r1) ffc07eb8: 7f a4 eb 78 mr r4,r29 ffc07ebc: 38 a0 00 00 li r5,0 ffc07ec0: 38 e0 00 01 li r7,1 ffc07ec4: 57 ca bf fe rlwinm r10,r30,23,31,31 ffc07ec8: 48 00 25 59 bl ffc0a420 <_Thread_Initialize> <== ALWAYS TAKEN NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { ffc07ecc: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc07ed0: 80 7d 00 08 lwz r3,8(r29) ffc07ed4: 40 9e 00 20 bne- cr7,ffc07ef4 */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( ffc07ed8: 48 00 18 49 bl ffc09720 <_Objects_Get_information_id> <== ALWAYS TAKEN ffc07edc: 7f a4 eb 78 mr r4,r29 ffc07ee0: 48 00 17 9d bl ffc0967c <_Objects_Free> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( is_global ) _Objects_MP_Free_global_object( the_global_object ); #endif _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); ffc07ee4: 80 7f 27 a8 lwz r3,10152(r31) ffc07ee8: 48 00 09 61 bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc07eec: 38 60 00 0d li r3,13 return RTEMS_UNSATISFIED; ffc07ef0: 48 00 00 24 b ffc07f14 <== ALWAYS TAKEN } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; ffc07ef4: 81 3d 01 44 lwz r9,324(r29) ffc07ef8: 6b de 04 00 xori r30,r30,1024 <== ALWAYS TAKEN ffc07efc: 57 de b7 fe rlwinm r30,r30,22,31,31 *id = the_thread->Object.id; ffc07f00: 90 7c 00 00 stw r3,0(r28) } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; ffc07f04: 9b c9 00 08 stb r30,8(r9) ); } #endif _RTEMS_Unlock_allocator(); ffc07f08: 80 7f 27 a8 lwz r3,10152(r31) ffc07f0c: 48 00 09 3d bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc07f10: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc07f14: 80 01 00 44 lwz r0,68(r1) ffc07f18: 83 01 00 20 lwz r24,32(r1) <== ALWAYS TAKEN ffc07f1c: 7c 08 03 a6 mtlr r0 ffc07f20: 83 21 00 24 lwz r25,36(r1) ffc07f24: 83 41 00 28 lwz r26,40(r1) ffc07f28: 83 61 00 2c lwz r27,44(r1) ffc07f2c: 83 81 00 30 lwz r28,48(r1) ffc07f30: 83 a1 00 34 lwz r29,52(r1) <== ALWAYS TAKEN ffc07f34: 83 c1 00 38 lwz r30,56(r1) ffc07f38: 83 e1 00 3c lwz r31,60(r1) ffc07f3c: 38 21 00 40 addi r1,r1,64 ffc07f40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07f44 : */ rtems_status_code rtems_task_delete( rtems_id id ) { ffc07f44: 94 21 ff e0 stwu r1,-32(r1) ffc07f48: 7c 08 02 a6 mflr r0 ffc07f4c: 93 c1 00 18 stw r30,24(r1) register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); ffc07f50: 3f c0 00 00 lis r30,0 */ rtems_status_code rtems_task_delete( rtems_id id ) { ffc07f54: 93 e1 00 1c stw r31,28(r1) ffc07f58: 7c 7f 1b 78 mr r31,r3 register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); ffc07f5c: 80 7e 27 a8 lwz r3,10152(r30) <== ALWAYS TAKEN */ rtems_status_code rtems_task_delete( rtems_id id ) { ffc07f60: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); ffc07f64: 48 00 08 65 bl ffc087c8 <_API_Mutex_Lock> <== ALWAYS TAKEN the_thread = _Thread_Get( id, &location ); ffc07f68: 7f e3 fb 78 mr r3,r31 ffc07f6c: 38 81 00 08 addi r4,r1,8 ffc07f70: 48 00 23 fd bl ffc0a36c <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc07f74: 80 01 00 08 lwz r0,8(r1) Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); the_thread = _Thread_Get( id, &location ); ffc07f78: 7c 7f 1b 78 mr r31,r3 switch ( location ) { ffc07f7c: 2f 80 00 00 cmpwi cr7,r0,0 ffc07f80: 40 9e 00 38 bne- cr7,ffc07fb8 case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); ffc07f84: 80 63 00 08 lwz r3,8(r3) ffc07f88: 48 00 17 99 bl ffc09720 <_Objects_Get_information_id> <== ALWAYS TAKEN 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); ffc07f8c: 7f e4 fb 78 mr r4,r31 ffc07f90: 48 00 1f a1 bl ffc09f30 <_Thread_Close> <== ALWAYS TAKEN ffc07f94: 80 7f 00 08 lwz r3,8(r31) ffc07f98: 48 00 17 89 bl ffc09720 <_Objects_Get_information_id> <== ALWAYS TAKEN ffc07f9c: 7f e4 fb 78 mr r4,r31 ffc07fa0: 48 00 16 dd bl ffc0967c <_Objects_Free> <== ALWAYS TAKEN _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); ffc07fa4: 80 7e 27 a8 lwz r3,10152(r30) ffc07fa8: 48 00 08 a1 bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc07fac: 48 00 23 a1 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07fb0: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc07fb4: 48 00 00 10 b ffc07fc4 <== ALWAYS TAKEN case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); ffc07fb8: 80 7e 27 a8 lwz r3,10152(r30) ffc07fbc: 48 00 08 8d bl ffc08848 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc07fc0: 38 60 00 04 li r3,4 return RTEMS_INVALID_ID; } ffc07fc4: 80 01 00 24 lwz r0,36(r1) ffc07fc8: 83 c1 00 18 lwz r30,24(r1) ffc07fcc: 7c 08 03 a6 mtlr r0 ffc07fd0: 83 e1 00 1c lwz r31,28(r1) ffc07fd4: 38 21 00 20 addi r1,r1,32 ffc07fd8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a31c : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { ffc0a31c: 94 21 ff e0 stwu r1,-32(r1) ffc0a320: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a324: 3d 20 00 00 lis r9,0 rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { ffc0a328: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a32c: 88 09 20 94 lbz r0,8340(r9) rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { ffc0a330: 93 c1 00 18 stw r30,24(r1) ffc0a334: 7c be 2b 78 mr r30,r5 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a338: 2f 80 00 00 cmpwi cr7,r0,0 rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { ffc0a33c: 93 e1 00 1c stw r31,28(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a340: 38 00 00 16 li r0,22 rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { ffc0a344: 7c 9f 23 78 mr r31,r4 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a348: 41 9e 00 90 beq- cr7,ffc0a3d8 return RTEMS_NOT_CONFIGURED; if ( !note ) ffc0a34c: 2f 85 00 00 cmpwi cr7,r5,0 ffc0a350: 38 00 00 09 li r0,9 ffc0a354: 41 9e 00 84 beq- cr7,ffc0a3d8 /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) ffc0a358: 2b 84 00 0f cmplwi cr7,r4,15 ffc0a35c: 38 00 00 0a li r0,10 ffc0a360: 41 9d 00 78 bgt- cr7,ffc0a3d8 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || ffc0a364: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a368: 41 9e 00 18 beq- cr7,ffc0a380 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { ffc0a36c: 3d 60 00 00 lis r11,0 ffc0a370: 81 6b 28 14 lwz r11,10260(r11) ffc0a374: 80 0b 00 08 lwz r0,8(r11) ffc0a378: 7f 83 00 00 cmpw cr7,r3,r0 ffc0a37c: 40 be 00 28 bne+ cr7,ffc0a3a4 api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; ffc0a380: 3d 20 00 00 lis r9,0 ffc0a384: 81 29 28 14 lwz r9,10260(r9) ffc0a388: 3b ff 00 08 addi r31,r31,8 ffc0a38c: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0a390: 81 29 01 44 lwz r9,324(r9) ffc0a394: 38 00 00 00 li r0,0 ffc0a398: 7d 29 f8 2e lwzx r9,r9,r31 ffc0a39c: 91 3e 00 00 stw r9,0(r30) return RTEMS_SUCCESSFUL; ffc0a3a0: 48 00 00 38 b ffc0a3d8 <== ALWAYS TAKEN } the_thread = _Thread_Get( id, &location ); ffc0a3a4: 38 81 00 08 addi r4,r1,8 ffc0a3a8: 48 00 27 d9 bl ffc0cb80 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0a3ac: 81 21 00 08 lwz r9,8(r1) ffc0a3b0: 38 00 00 04 li r0,4 ffc0a3b4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a3b8: 40 9e 00 20 bne- cr7,ffc0a3d8 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; ffc0a3bc: 81 23 01 44 lwz r9,324(r3) ffc0a3c0: 3b ff 00 08 addi r31,r31,8 ffc0a3c4: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0a3c8: 7c 09 f8 2e lwzx r0,r9,r31 ffc0a3cc: 90 1e 00 00 stw r0,0(r30) _Thread_Enable_dispatch(); ffc0a3d0: 48 00 27 91 bl ffc0cb60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a3d4: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0a3d8: 7c 03 03 78 mr r3,r0 ffc0a3dc: 80 01 00 24 lwz r0,36(r1) ffc0a3e0: 83 c1 00 18 lwz r30,24(r1) ffc0a3e4: 7c 08 03 a6 mtlr r0 ffc0a3e8: 83 e1 00 1c lwz r31,28(r1) ffc0a3ec: 38 21 00 20 addi r1,r1,32 ffc0a3f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07fdc : rtems_id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id ) ffc07fdc: 7c a6 2b 79 mr. r6,r5 rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc07fe0: 7c 08 02 a6 mflr r0 ffc07fe4: 94 21 ff f8 stwu r1,-8(r1) ffc07fe8: 7c 85 23 78 mr r5,r4 ffc07fec: 90 01 00 0c stw r0,12(r1) ffc07ff0: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; if ( !id ) ffc07ff4: 38 60 00 09 li r3,9 ffc07ff8: 41 82 00 44 beq- ffc0803c return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { ffc07ffc: 2f 80 00 00 cmpwi cr7,r0,0 ffc08000: 40 9e 00 1c bne- cr7,ffc0801c *id = _Thread_Executing->Object.id; ffc08004: 3d 20 00 00 lis r9,0 ffc08008: 81 29 27 b0 lwz r9,10160(r9) ffc0800c: 38 60 00 00 li r3,0 ffc08010: 80 09 00 08 lwz r0,8(r9) ffc08014: 90 06 00 00 stw r0,0(r6) return RTEMS_SUCCESSFUL; ffc08018: 48 00 00 24 b ffc0803c <== ALWAYS TAKEN } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); ffc0801c: 3c 60 00 00 lis r3,0 ffc08020: 38 63 2b c4 addi r3,r3,11204 ffc08024: 7c 04 03 78 mr r4,r0 ffc08028: 48 00 19 e5 bl ffc09a0c <_Objects_Name_to_id_u32> <== ALWAYS TAKEN return _Status_Object_name_errors_to_status[ status ]; ffc0802c: 3d 20 ff c2 lis r9,-62 ffc08030: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc08034: 39 29 df 3c addi r9,r9,-8388 ffc08038: 7c 69 18 2e lwzx r3,r9,r3 } ffc0803c: 80 01 00 0c lwz r0,12(r1) ffc08040: 38 21 00 08 addi r1,r1,8 ffc08044: 7c 08 03 a6 mtlr r0 ffc08048: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18530 : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { ffc18530: 94 21 ff e8 stwu r1,-24(r1) ffc18534: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc18538: 38 81 00 08 addi r4,r1,8 */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { ffc1853c: 90 01 00 1c stw r0,28(r1) register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc18540: 48 00 48 8d bl ffc1cdcc <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc18544: 38 00 00 04 li r0,4 ffc18548: 81 21 00 08 lwz r9,8(r1) ffc1854c: 2f 89 00 00 cmpwi cr7,r9,0 ffc18550: 40 9e 00 24 bne- cr7,ffc18574 case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { ffc18554: 80 03 00 10 lwz r0,16(r3) ffc18558: 70 09 00 02 andi. r9,r0,2 ffc1855c: 40 a2 00 10 bne+ ffc1856c _Thread_Enable_dispatch(); ffc18560: 48 00 48 01 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc18564: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc18568: 48 00 00 0c b ffc18574 <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc1856c: 48 00 47 f5 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc18570: 38 00 00 0f li r0,15 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc18574: 7c 03 03 78 mr r3,r0 ffc18578: 80 01 00 1c lwz r0,28(r1) ffc1857c: 38 21 00 18 addi r1,r1,24 ffc18580: 7c 08 03 a6 mtlr r0 ffc18584: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10a08 : ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) ffc10a08: 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 ) { ffc10a0c: 94 21 ff f0 stwu r1,-16(r1) ffc10a10: 7c 08 02 a6 mflr r0 ffc10a14: 93 e1 00 0c stw r31,12(r1) ffc10a18: 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 ) ffc10a1c: 38 00 00 09 li r0,9 ffc10a20: 41 82 01 5c beq- ffc10b7c return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; ffc10a24: 3d 20 00 00 lis r9,0 ffc10a28: 81 29 27 b0 lwz r9,10160(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 ) ffc10a2c: 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; ffc10a30: 89 49 00 75 lbz r10,117(r9) if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) ffc10a34: 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 ]; ffc10a38: 81 69 01 44 lwz r11,324(r9) asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; ffc10a3c: 7d 4a 00 34 cntlzw r10,r10 ffc10a40: 55 4a d9 7e rlwinm r10,r10,27,5,31 ffc10a44: 55 4a 40 2e rlwinm r10,r10,8,0,23 if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) ffc10a48: 41 9e 00 08 beq- cr7,ffc10a50 old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; ffc10a4c: 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; ffc10a50: 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); ffc10a54: 38 00 00 00 li r0,0 ffc10a58: 7d 08 00 34 cntlzw r8,r8 ffc10a5c: 55 08 d9 7e rlwinm r8,r8,27,5,31 ffc10a60: 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; ffc10a64: 7d 0a 53 78 or r10,r8,r10 <== ALWAYS TAKEN ffc10a68: 7c 00 00 a6 mfmsr r0 /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) ffc10a6c: 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; ffc10a70: 68 00 80 00 xori r0,r0,32768 ffc10a74: 54 00 8f fe rlwinm r0,r0,17,31,31 ffc10a78: 7d 4a 03 78 or r10,r10,r0 ffc10a7c: 91 45 00 00 stw r10,0(r5) /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) ffc10a80: 41 82 00 10 beq- ffc10a90 executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; ffc10a84: 68 60 01 00 xori r0,r3,256 ffc10a88: 54 00 c7 fe rlwinm r0,r0,24,31,31 ffc10a8c: 98 09 00 75 stb r0,117(r9) if ( mask & RTEMS_TIMESLICE_MASK ) { ffc10a90: 70 8a 02 00 andi. r10,r4,512 ffc10a94: 41 82 00 28 beq- ffc10abc if ( _Modes_Is_timeslice(mode_set) ) { ffc10a98: 70 60 02 00 andi. r0,r3,512 ffc10a9c: 41 82 00 1c beq- ffc10ab8 executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; executing->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc10aa0: 3d 40 00 00 lis r10,0 ffc10aa4: 80 0a 27 68 lwz r0,10088(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; ffc10aa8: 39 40 00 01 li r10,1 ffc10aac: 91 49 00 7c stw r10,124(r9) executing->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc10ab0: 90 09 00 78 stw r0,120(r9) ffc10ab4: 48 00 00 08 b ffc10abc <== ALWAYS TAKEN } else executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; ffc10ab8: 90 09 00 7c stw r0,124(r9) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) ffc10abc: 70 80 00 01 andi. r0,r4,1 ffc10ac0: 41 82 00 2c beq- ffc10aec } static inline void _CPU_ISR_Set_level( uint32_t level ) { register unsigned int msr; _CPU_MSR_GET(msr); ffc10ac4: 38 00 00 00 li r0,0 ffc10ac8: 7c 00 00 a6 mfmsr r0 if (!(level & CPU_MODES_INTERRUPT_MASK)) { ffc10acc: 70 68 00 01 andi. r8,r3,1 ffc10ad0: 40 82 00 10 bne- ffc10ae0 static inline uint32_t ppc_interrupt_get_disable_mask( void ) { uint32_t mask; asm volatile ( ffc10ad4: 7d 50 42 a6 mfsprg r10,0 msr |= ppc_interrupt_get_disable_mask(); ffc10ad8: 7d 40 03 78 or r0,r10,r0 ffc10adc: 48 00 00 0c b ffc10ae8 <== ALWAYS TAKEN ffc10ae0: 7d 50 42 a6 mfsprg r10,0 } else { msr &= ~ppc_interrupt_get_disable_mask(); ffc10ae4: 7c 00 50 78 andc r0,r0,r10 } _CPU_MSR_SET(msr); ffc10ae8: 7c 00 01 24 mtmsr r0 */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { ffc10aec: 70 8a 04 00 andi. r10,r4,1024 ffc10af0: 41 82 00 5c beq- ffc10b4c * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( ffc10af4: 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; ffc10af8: 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( ffc10afc: 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; ffc10b00: 7f 80 18 00 cmpw cr7,r0,r3 ffc10b04: 41 9e 00 48 beq- cr7,ffc10b4c 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; ffc10b08: 98 6b 00 08 stb r3,8(r11) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc10b0c: 7c 00 00 a6 mfmsr r0 ffc10b10: 7d 50 42 a6 mfsprg r10,0 ffc10b14: 7c 0a 50 78 andc r10,r0,r10 ffc10b18: 7d 40 01 24 mtmsr r10 { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; ffc10b1c: 81 0b 00 18 lwz r8,24(r11) information->signals_pending = information->signals_posted; ffc10b20: 81 4b 00 14 lwz r10,20(r11) information->signals_posted = _signals; ffc10b24: 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; ffc10b28: 91 4b 00 18 stw r10,24(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc10b2c: 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; ffc10b30: 80 0b 00 14 lwz r0,20(r11) ffc10b34: 2f 80 00 00 cmpwi cr7,r0,0 ffc10b38: 41 9e 00 14 beq- cr7,ffc10b4c 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; ffc10b3c: 38 00 00 01 li r0,1 ffc10b40: 98 09 00 74 stb r0,116(r9) ffc10b44: 3b e0 00 01 li r31,1 ffc10b48: 48 00 00 08 b ffc10b50 <== ALWAYS TAKEN ffc10b4c: 3b e0 00 00 li r31,0 } } } if ( _System_state_Is_up( _System_state_Get() ) ) ffc10b50: 3d 20 00 00 lis r9,0 ffc10b54: 80 09 27 d4 lwz r0,10196(r9) ffc10b58: 2f 80 00 03 cmpwi cr7,r0,3 ffc10b5c: 40 be 00 1c bne+ cr7,ffc10b78 <== NEVER TAKEN if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) ffc10b60: 48 00 03 61 bl ffc10ec0 <_Thread_Evaluate_mode> <== ALWAYS TAKEN ffc10b64: 2f 83 00 00 cmpwi cr7,r3,0 ffc10b68: 40 9e 00 0c bne- cr7,ffc10b74 ffc10b6c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc10b70: 41 9e 00 08 beq- cr7,ffc10b78 _Thread_Dispatch(); ffc10b74: 4b ff 95 e9 bl ffc0a15c <_Thread_Dispatch> <== ALWAYS TAKEN ffc10b78: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc10b7c: 7c 03 03 78 mr r3,r0 ffc10b80: 80 01 00 14 lwz r0,20(r1) ffc10b84: 83 e1 00 0c lwz r31,12(r1) ffc10b88: 38 21 00 10 addi r1,r1,16 ffc10b8c: 7c 08 03 a6 mtlr r0 ffc10b90: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08fb0 : rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { ffc08fb0: 94 21 ff e0 stwu r1,-32(r1) ffc08fb4: 7c 08 02 a6 mflr r0 ffc08fb8: 93 e1 00 1c stw r31,28(r1) ffc08fbc: 7c 9f 23 78 mr r31,r4 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc08fc0: 38 81 00 08 addi r4,r1,8 rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { ffc08fc4: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc08fc8: 48 00 23 b1 bl ffc0b378 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc08fcc: 38 00 00 04 li r0,4 ffc08fd0: 81 21 00 08 lwz r9,8(r1) ffc08fd4: 2f 89 00 00 cmpwi cr7,r9,0 ffc08fd8: 40 9e 00 2c bne- cr7,ffc09004 case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { ffc08fdc: 7f e5 fb 78 mr r5,r31 ffc08fe0: 38 80 00 00 li r4,0 ffc08fe4: 48 00 2d a5 bl ffc0bd88 <_Thread_Restart> <== ALWAYS TAKEN ffc08fe8: 2f 83 00 00 cmpwi cr7,r3,0 ffc08fec: 41 be 00 10 beq+ cr7,ffc08ffc _Thread_Enable_dispatch(); ffc08ff0: 48 00 23 69 bl ffc0b358 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08ff4: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc08ff8: 48 00 00 0c b ffc09004 <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc08ffc: 48 00 23 5d bl ffc0b358 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09000: 38 00 00 0e li r0,14 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc09004: 7c 03 03 78 mr r3,r0 ffc09008: 80 01 00 24 lwz r0,36(r1) ffc0900c: 83 e1 00 1c lwz r31,28(r1) ffc09010: 38 21 00 20 addi r1,r1,32 ffc09014: 7c 08 03 a6 mtlr r0 ffc09018: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c524 : */ rtems_status_code rtems_task_resume( rtems_id id ) { ffc0c524: 94 21 ff e8 stwu r1,-24(r1) ffc0c528: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0c52c: 38 81 00 08 addi r4,r1,8 */ rtems_status_code rtems_task_resume( rtems_id id ) { ffc0c530: 90 01 00 1c stw r0,28(r1) register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0c534: 48 00 24 45 bl ffc0e978 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0c538: 38 00 00 04 li r0,4 ffc0c53c: 81 61 00 08 lwz r11,8(r1) ffc0c540: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0c544: 40 9e 00 2c bne- cr7,ffc0c570 case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { ffc0c548: 80 03 00 10 lwz r0,16(r3) ffc0c54c: 70 09 00 02 andi. r9,r0,2 ffc0c550: 41 a2 00 18 beq+ ffc0c568 _Thread_Resume( the_thread, true ); ffc0c554: 38 80 00 01 li r4,1 ffc0c558: 48 00 2e 31 bl ffc0f388 <_Thread_Resume> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0c55c: 48 00 23 b1 bl ffc0e90c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0c560: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc0c564: 48 00 00 0c b ffc0c570 <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc0c568: 48 00 23 a5 bl ffc0e90c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0c56c: 38 00 00 0e li r0,14 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0c570: 7c 03 03 78 mr r3,r0 ffc0c574: 80 01 00 1c lwz r0,28(r1) ffc0c578: 38 21 00 18 addi r1,r1,24 ffc0c57c: 7c 08 03 a6 mtlr r0 ffc0c580: 4e 80 00 20 blr <== ALWAYS TAKEN ffc142c0 : #include #include rtems_id rtems_task_self(void) { ffc142c0: 3d 20 00 00 lis r9,0 ffc142c4: 81 29 27 d0 lwz r9,10192(r9) return _Thread_Executing->Object.id; } ffc142c8: 80 69 00 08 lwz r3,8(r9) ffc142cc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a598 : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { ffc0a598: 94 21 ff e0 stwu r1,-32(r1) ffc0a59c: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a5a0: 3d 20 00 00 lis r9,0 rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { ffc0a5a4: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a5a8: 88 09 20 94 lbz r0,8340(r9) rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { ffc0a5ac: 93 c1 00 18 stw r30,24(r1) ffc0a5b0: 7c be 2b 78 mr r30,r5 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a5b4: 2f 80 00 00 cmpwi cr7,r0,0 rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { ffc0a5b8: 93 e1 00 1c stw r31,28(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a5bc: 38 00 00 16 li r0,22 rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { ffc0a5c0: 7c 9f 23 78 mr r31,r4 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0a5c4: 41 9e 00 78 beq- cr7,ffc0a63c /* * NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would * be checking an unsigned number for being negative. */ if ( notepad > RTEMS_NOTEPAD_LAST ) ffc0a5c8: 2b 84 00 0f cmplwi cr7,r4,15 ffc0a5cc: 38 00 00 0a li r0,10 ffc0a5d0: 41 9d 00 6c bgt- cr7,ffc0a63c /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || ffc0a5d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a5d8: 41 9e 00 18 beq- cr7,ffc0a5f0 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { ffc0a5dc: 3d 60 00 00 lis r11,0 ffc0a5e0: 81 6b 28 14 lwz r11,10260(r11) ffc0a5e4: 80 0b 00 08 lwz r0,8(r11) ffc0a5e8: 7f 83 00 00 cmpw cr7,r3,r0 ffc0a5ec: 40 be 00 20 bne+ cr7,ffc0a60c api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; ffc0a5f0: 3d 20 00 00 lis r9,0 ffc0a5f4: 81 29 28 14 lwz r9,10260(r9) ffc0a5f8: 3b ff 00 08 addi r31,r31,8 ffc0a5fc: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0a600: 81 29 01 44 lwz r9,324(r9) ffc0a604: 7f c9 f9 2e stwx r30,r9,r31 ffc0a608: 48 00 00 30 b ffc0a638 <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); ffc0a60c: 38 81 00 08 addi r4,r1,8 ffc0a610: 48 00 25 71 bl ffc0cb80 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0a614: 81 21 00 08 lwz r9,8(r1) ffc0a618: 38 00 00 04 li r0,4 ffc0a61c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a620: 40 9e 00 1c bne- cr7,ffc0a63c case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; ffc0a624: 81 23 01 44 lwz r9,324(r3) ffc0a628: 3b ff 00 08 addi r31,r31,8 ffc0a62c: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0a630: 7f c9 f9 2e stwx r30,r9,r31 _Thread_Enable_dispatch(); ffc0a634: 48 00 25 2d bl ffc0cb60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a638: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0a63c: 7c 03 03 78 mr r3,r0 ffc0a640: 80 01 00 24 lwz r0,36(r1) ffc0a644: 83 c1 00 18 lwz r30,24(r1) ffc0a648: 7c 08 03 a6 mtlr r0 ffc0a64c: 83 e1 00 1c lwz r31,28(r1) ffc0a650: 38 21 00 20 addi r1,r1,32 ffc0a654: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0da44 : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { ffc0da44: 94 21 ff e0 stwu r1,-32(r1) ffc0da48: 7c 08 02 a6 mflr r0 ffc0da4c: 93 e1 00 1c stw r31,28(r1) register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && ffc0da50: 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 ) { ffc0da54: 93 c1 00 18 stw r30,24(r1) ffc0da58: 7c be 2b 78 mr r30,r5 ffc0da5c: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && ffc0da60: 41 82 00 18 beq- ffc0da78 ffc0da64: 3d 20 00 00 lis r9,0 ffc0da68: 89 29 26 e4 lbz r9,9956(r9) ffc0da6c: 38 00 00 13 li r0,19 ffc0da70: 7f 9f 48 40 cmplw cr7,r31,r9 ffc0da74: 41 9d 00 68 bgt- cr7,ffc0dadc !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) ffc0da78: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0da7c: 38 00 00 09 li r0,9 ffc0da80: 41 9e 00 5c beq- cr7,ffc0dadc return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); ffc0da84: 38 81 00 08 addi r4,r1,8 ffc0da88: 48 00 26 99 bl ffc10120 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0da8c: 81 21 00 08 lwz r9,8(r1) ffc0da90: 38 00 00 04 li r0,4 ffc0da94: 2f 89 00 00 cmpwi cr7,r9,0 ffc0da98: 40 9e 00 44 bne- cr7,ffc0dadc case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; if ( new_priority != RTEMS_CURRENT_PRIORITY ) { ffc0da9c: 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; ffc0daa0: 80 03 00 14 lwz r0,20(r3) ffc0daa4: 90 1e 00 00 stw r0,0(r30) if ( new_priority != RTEMS_CURRENT_PRIORITY ) { ffc0daa8: 41 9e 00 2c beq- cr7,ffc0dad4 the_thread->real_priority = new_priority; if ( the_thread->resource_count == 0 || ffc0daac: 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; ffc0dab0: 93 e3 00 18 stw r31,24(r3) if ( the_thread->resource_count == 0 || ffc0dab4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dab8: 41 9e 00 10 beq- cr7,ffc0dac8 the_thread->current_priority > new_priority ) ffc0dabc: 80 03 00 14 lwz r0,20(r3) ffc0dac0: 7f 80 f8 40 cmplw cr7,r0,r31 ffc0dac4: 40 9d 00 10 ble- cr7,ffc0dad4 <== ALWAYS TAKEN _Thread_Change_priority( the_thread, new_priority, false ); ffc0dac8: 7f e4 fb 78 mr r4,r31 ffc0dacc: 38 a0 00 00 li r5,0 ffc0dad0: 48 00 1f 5d bl ffc0fa2c <_Thread_Change_priority> <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc0dad4: 48 00 25 e1 bl ffc100b4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0dad8: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0dadc: 7c 03 03 78 mr r3,r0 ffc0dae0: 80 01 00 24 lwz r0,36(r1) ffc0dae4: 83 c1 00 18 lwz r30,24(r1) ffc0dae8: 7c 08 03 a6 mtlr r0 ffc0daec: 83 e1 00 1c lwz r31,28(r1) ffc0daf0: 38 21 00 20 addi r1,r1,32 ffc0daf4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08104 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { ffc08104: 94 21 ff e0 stwu r1,-32(r1) ffc08108: 7c 08 02 a6 mflr r0 ffc0810c: 93 c1 00 18 stw r30,24(r1) register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) ffc08110: 7c 9e 23 79 mr. r30,r4 rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { ffc08114: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) ffc08118: 38 00 00 09 li r0,9 rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { ffc0811c: 93 e1 00 1c stw r31,28(r1) ffc08120: 7c bf 2b 78 mr r31,r5 register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) ffc08124: 41 82 00 4c beq- ffc08170 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); ffc08128: 38 81 00 08 addi r4,r1,8 ffc0812c: 48 00 22 41 bl ffc0a36c <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc08130: 81 21 00 08 lwz r9,8(r1) ffc08134: 38 00 00 04 li r0,4 <== ALWAYS TAKEN ffc08138: 2f 89 00 00 cmpwi cr7,r9,0 ffc0813c: 40 9e 00 34 bne- cr7,ffc08170 case OBJECTS_LOCAL: if ( _Thread_Start( ffc08140: 7f c5 f3 78 mr r5,r30 ffc08144: 7f e7 fb 78 mr r7,r31 <== ALWAYS TAKEN ffc08148: 38 80 00 00 li r4,0 ffc0814c: 38 c0 00 00 li r6,0 ffc08150: 48 00 2f 7d bl ffc0b0cc <_Thread_Start> <== ALWAYS TAKEN ffc08154: 2f 83 00 00 cmpwi cr7,r3,0 ffc08158: 41 be 00 10 beq+ cr7,ffc08168 the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); ffc0815c: 48 00 21 f1 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08160: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc08164: 48 00 00 0c b ffc08170 <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc08168: 48 00 21 e5 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0816c: 38 00 00 0e li r0,14 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08170: 7c 03 03 78 mr r3,r0 ffc08174: 80 01 00 24 lwz r0,36(r1) ffc08178: 83 c1 00 18 lwz r30,24(r1) ffc0817c: 7c 08 03 a6 mtlr r0 ffc08180: 83 e1 00 1c lwz r31,28(r1) <== ALWAYS TAKEN ffc08184: 38 21 00 20 addi r1,r1,32 ffc08188: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0818c : */ rtems_status_code rtems_task_suspend( rtems_id id ) { ffc0818c: 94 21 ff e8 stwu r1,-24(r1) ffc08190: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc08194: 38 81 00 08 addi r4,r1,8 */ rtems_status_code rtems_task_suspend( rtems_id id ) { ffc08198: 90 01 00 1c stw r0,28(r1) register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0819c: 48 00 21 d1 bl ffc0a36c <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc081a0: 38 00 00 04 li r0,4 ffc081a4: 81 61 00 08 lwz r11,8(r1) ffc081a8: 2f 8b 00 00 cmpwi cr7,r11,0 ffc081ac: 40 9e 00 28 bne- cr7,ffc081d4 case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { ffc081b0: 80 03 00 10 lwz r0,16(r3) ffc081b4: 70 09 00 02 andi. r9,r0,2 ffc081b8: 40 a2 00 14 bne+ ffc081cc _Thread_Suspend( the_thread ); ffc081bc: 48 00 2f 75 bl ffc0b130 <_Thread_Suspend> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc081c0: 48 00 21 8d bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc081c4: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc081c8: 48 00 00 0c b ffc081d4 <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc081cc: 48 00 21 81 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc081d0: 38 00 00 0f li r0,15 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc081d4: 7c 03 03 78 mr r3,r0 ffc081d8: 80 01 00 1c lwz r0,28(r1) ffc081dc: 38 21 00 18 addi r1,r1,24 ffc081e0: 7c 08 03 a6 mtlr r0 ffc081e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2ebd0 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { ffc2ebd0: 94 21 ff d8 stwu r1,-40(r1) ffc2ebd4: 7c 08 02 a6 mflr r0 ffc2ebd8: 93 e1 00 24 stw r31,36(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) ffc2ebdc: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { ffc2ebe0: 90 01 00 2c stw r0,44(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) ffc2ebe4: 38 00 00 09 li r0,9 rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { ffc2ebe8: 93 c1 00 20 stw r30,32(r1) ffc2ebec: 7c be 2b 78 mr r30,r5 ffc2ebf0: 93 a1 00 1c stw r29,28(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) ffc2ebf4: 41 82 00 88 beq- ffc2ec7c return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); ffc2ebf8: 38 81 00 08 addi r4,r1,8 ffc2ebfc: 4b fe 13 6d bl ffc0ff68 <_Thread_Get> <== ALWAYS TAKEN switch (location) { ffc2ec00: 81 21 00 08 lwz r9,8(r1) rtems_task_variable_t *tvp, *new; if ( !ptr ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); ffc2ec04: 7c 7d 1b 78 mr r29,r3 switch (location) { ffc2ec08: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ec0c: 38 00 00 04 li r0,4 ffc2ec10: 40 9e 00 6c bne- cr7,ffc2ec7c case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; ffc2ec14: 81 23 01 54 lwz r9,340(r3) while (tvp) { ffc2ec18: 48 00 00 1c b ffc2ec34 <== ALWAYS TAKEN if (tvp->ptr == ptr) { ffc2ec1c: 80 09 00 04 lwz r0,4(r9) ffc2ec20: 7f 80 f8 00 cmpw cr7,r0,r31 ffc2ec24: 40 be 00 0c bne+ cr7,ffc2ec30 tvp->dtor = dtor; ffc2ec28: 93 c9 00 10 stw r30,16(r9) ffc2ec2c: 48 00 00 48 b ffc2ec74 <== ALWAYS TAKEN _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; ffc2ec30: 81 29 00 00 lwz r9,0(r9) case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; while (tvp) { ffc2ec34: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ec38: 40 9e ff e4 bne+ cr7,ffc2ec1c } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) ffc2ec3c: 38 60 00 14 li r3,20 ffc2ec40: 4b fe 2b 9d bl ffc117dc <_Workspace_Allocate> <== ALWAYS TAKEN _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { ffc2ec44: 2c 03 00 00 cmpwi r3,0 ffc2ec48: 40 a2 00 10 bne+ ffc2ec58 _Thread_Enable_dispatch(); ffc2ec4c: 4b fe 12 fd bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc2ec50: 38 00 00 1a li r0,26 return RTEMS_NO_MEMORY; ffc2ec54: 48 00 00 28 b ffc2ec7c <== ALWAYS TAKEN } new->gval = *ptr; new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; ffc2ec58: 80 1d 01 54 lwz r0,340(r29) _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; ffc2ec5c: 81 3f 00 00 lwz r9,0(r31) new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; the_thread->task_variables = new; ffc2ec60: 90 7d 01 54 stw r3,340(r29) _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; ffc2ec64: 91 23 00 08 stw r9,8(r3) new->ptr = ptr; ffc2ec68: 93 e3 00 04 stw r31,4(r3) new->dtor = dtor; ffc2ec6c: 93 c3 00 10 stw r30,16(r3) new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; ffc2ec70: 90 03 00 00 stw r0,0(r3) the_thread->task_variables = new; _Thread_Enable_dispatch(); ffc2ec74: 4b fe 12 d5 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc2ec78: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc2ec7c: 7c 03 03 78 mr r3,r0 ffc2ec80: 80 01 00 2c lwz r0,44(r1) ffc2ec84: 83 a1 00 1c lwz r29,28(r1) ffc2ec88: 7c 08 03 a6 mtlr r0 ffc2ec8c: 83 c1 00 20 lwz r30,32(r1) ffc2ec90: 83 e1 00 24 lwz r31,36(r1) ffc2ec94: 38 21 00 28 addi r1,r1,40 ffc2ec98: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2ec9c : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { ffc2ec9c: 94 21 ff e0 stwu r1,-32(r1) ffc2eca0: 7c 08 02 a6 mflr r0 ffc2eca4: 93 e1 00 1c stw r31,28(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) ffc2eca8: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { ffc2ecac: 90 01 00 24 stw r0,36(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) ffc2ecb0: 38 00 00 09 li r0,9 ffc2ecb4: 41 82 00 70 beq- ffc2ed24 return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); ffc2ecb8: 38 81 00 08 addi r4,r1,8 ffc2ecbc: 4b fe 12 ad bl ffc0ff68 <_Thread_Get> <== ALWAYS TAKEN switch (location) { ffc2ecc0: 81 21 00 08 lwz r9,8(r1) ffc2ecc4: 38 00 00 04 li r0,4 ffc2ecc8: 2f 89 00 00 cmpwi cr7,r9,0 ffc2eccc: 40 9e 00 58 bne- cr7,ffc2ed24 case OBJECTS_LOCAL: tvp = the_thread->task_variables; ffc2ecd0: 80 83 01 54 lwz r4,340(r3) while (tvp) { ffc2ecd4: 48 00 00 40 b ffc2ed14 <== ALWAYS TAKEN if (tvp->ptr == ptr) { ffc2ecd8: 80 04 00 04 lwz r0,4(r4) ffc2ecdc: 7f 80 f8 00 cmpw cr7,r0,r31 ffc2ece0: 40 be 00 2c bne+ cr7,ffc2ed0c if (prev) ffc2ece4: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ece8: 80 04 00 00 lwz r0,0(r4) ffc2ecec: 41 9e 00 0c beq- cr7,ffc2ecf8 prev->next = tvp->next; ffc2ecf0: 90 09 00 00 stw r0,0(r9) ffc2ecf4: 48 00 00 08 b ffc2ecfc <== ALWAYS TAKEN else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; ffc2ecf8: 90 03 01 54 stw r0,340(r3) _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); ffc2ecfc: 48 00 00 d9 bl ffc2edd4 <_RTEMS_Tasks_Invoke_task_variable_dtor> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc2ed00: 4b fe 12 49 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc2ed04: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc2ed08: 48 00 00 1c b ffc2ed24 <== ALWAYS TAKEN } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; ffc2ed0c: 7c 89 23 78 mr r9,r4 ffc2ed10: 80 84 00 00 lwz r4,0(r4) the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { ffc2ed14: 2f 84 00 00 cmpwi cr7,r4,0 ffc2ed18: 40 9e ff c0 bne+ cr7,ffc2ecd8 return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); ffc2ed1c: 4b fe 12 2d bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc2ed20: 38 00 00 09 li r0,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc2ed24: 7c 03 03 78 mr r3,r0 ffc2ed28: 80 01 00 24 lwz r0,36(r1) ffc2ed2c: 83 e1 00 1c lwz r31,28(r1) ffc2ed30: 38 21 00 20 addi r1,r1,32 ffc2ed34: 7c 08 03 a6 mtlr r0 ffc2ed38: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2ed3c : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { ffc2ed3c: 94 21 ff e0 stwu r1,-32(r1) ffc2ed40: 7c 08 02 a6 mflr r0 ffc2ed44: 93 e1 00 1c stw r31,28(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) ffc2ed48: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { ffc2ed4c: 93 c1 00 18 stw r30,24(r1) ffc2ed50: 7c be 2b 78 mr r30,r5 ffc2ed54: 90 01 00 24 stw r0,36(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) ffc2ed58: 41 82 00 5c beq- ffc2edb4 return RTEMS_INVALID_ADDRESS; if ( !result ) ffc2ed5c: 2f 85 00 00 cmpwi cr7,r5,0 ffc2ed60: 41 9e 00 54 beq- cr7,ffc2edb4 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); ffc2ed64: 38 81 00 08 addi r4,r1,8 ffc2ed68: 4b fe 12 01 bl ffc0ff68 <_Thread_Get> <== ALWAYS TAKEN switch (location) { ffc2ed6c: 81 21 00 08 lwz r9,8(r1) ffc2ed70: 38 00 00 04 li r0,4 ffc2ed74: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ed78: 40 9e 00 40 bne- cr7,ffc2edb8 case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; ffc2ed7c: 81 23 01 54 lwz r9,340(r3) while (tvp) { ffc2ed80: 48 00 00 28 b ffc2eda8 <== ALWAYS TAKEN if (tvp->ptr == ptr) { ffc2ed84: 80 09 00 04 lwz r0,4(r9) ffc2ed88: 7f 80 f8 00 cmpw cr7,r0,r31 ffc2ed8c: 40 be 00 18 bne+ cr7,ffc2eda4 /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; ffc2ed90: 80 09 00 0c lwz r0,12(r9) ffc2ed94: 90 1e 00 00 stw r0,0(r30) _Thread_Enable_dispatch(); ffc2ed98: 4b fe 11 b1 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc2ed9c: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc2eda0: 48 00 00 18 b ffc2edb8 <== ALWAYS TAKEN } tvp = (rtems_task_variable_t *)tvp->next; ffc2eda4: 81 29 00 00 lwz r9,0(r9) case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; while (tvp) { ffc2eda8: 2f 89 00 00 cmpwi cr7,r9,0 ffc2edac: 40 9e ff d8 bne+ cr7,ffc2ed84 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); ffc2edb0: 4b fe 11 99 bl ffc0ff48 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; ffc2edb4: 38 00 00 09 li r0,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc2edb8: 7c 03 03 78 mr r3,r0 ffc2edbc: 80 01 00 24 lwz r0,36(r1) ffc2edc0: 83 c1 00 18 lwz r30,24(r1) ffc2edc4: 7c 08 03 a6 mtlr r0 ffc2edc8: 83 e1 00 1c lwz r31,28(r1) ffc2edcc: 38 21 00 20 addi r1,r1,32 ffc2edd0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc081e8 : ffc081e8: 3d 20 00 00 lis r9,0 */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { ffc081ec: 94 21 ff f0 stwu r1,-16(r1) ffc081f0: 7c 08 02 a6 mflr r0 ffc081f4: 81 69 27 70 lwz r11,10096(r9) ffc081f8: 93 e1 00 0c stw r31,12(r1) ffc081fc: 7c 7f 1b 78 mr r31,r3 ffc08200: 39 6b 00 01 addi r11,r11,1 ffc08204: 90 01 00 14 stw r0,20(r1) ffc08208: 93 c1 00 08 stw r30,8(r1) ffc0820c: 91 69 27 70 stw r11,10096(r9) _Thread_Disable_dispatch(); if ( ticks == 0 ) { ffc08210: 2f 83 00 00 cmpwi cr7,r3,0 ffc08214: 40 be 00 0c bne+ cr7,ffc08220 _Thread_Yield_processor(); ffc08218: 48 00 30 e5 bl ffc0b2fc <_Thread_Yield_processor> <== ALWAYS TAKEN ffc0821c: 48 00 00 4c b ffc08268 <== ALWAYS TAKEN } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); ffc08220: 3f c0 00 00 lis r30,0 ffc08224: 80 7e 27 b0 lwz r3,10160(r30) ffc08228: 38 80 00 08 li r4,8 ffc0822c: 48 00 2b ad bl ffc0add8 <_Thread_Set_state> <== ALWAYS TAKEN _Watchdog_Initialize( &_Thread_Executing->Timer, ffc08230: 81 3e 27 b0 lwz r9,10160(r30) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc08234: 3d 40 ff c1 lis r10,-63 _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); _Watchdog_Initialize( ffc08238: 81 69 00 08 lwz r11,8(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0823c: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc08240: 39 4a a1 10 addi r10,r10,-24304 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc08244: 90 09 00 6c stw r0,108(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08248: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0824c: 91 49 00 64 stw r10,100(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08250: 38 63 2d 48 addi r3,r3,11592 ffc08254: 38 89 00 48 addi r4,r9,72 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc08258: 91 69 00 68 stw r11,104(r9) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0825c: 93 e9 00 54 stw r31,84(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc08260: 90 09 00 50 stw r0,80(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08264: 48 00 36 5d bl ffc0b8c0 <_Watchdog_Insert> <== ALWAYS TAKEN _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); ffc08268: 48 00 20 e5 bl ffc0a34c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc0826c: 80 01 00 14 lwz r0,20(r1) ffc08270: 38 60 00 00 li r3,0 ffc08274: 83 c1 00 08 lwz r30,8(r1) <== ALWAYS TAKEN ffc08278: 7c 08 03 a6 mtlr r0 ffc0827c: 83 e1 00 0c lwz r31,12(r1) ffc08280: 38 21 00 10 addi r1,r1,16 ffc08284: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09564 : */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc09564: 94 21 ff e8 stwu r1,-24(r1) ffc09568: 7c 08 02 a6 mflr r0 Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc0956c: 3d 20 00 00 lis r9,0 */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc09570: 90 01 00 1c stw r0,28(r1) Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc09574: 88 09 28 1c lbz r0,10268(r9) */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc09578: 93 c1 00 10 stw r30,16(r1) ffc0957c: 7c 7e 1b 78 mr r30,r3 Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc09580: 2f 80 00 00 cmpwi cr7,r0,0 */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc09584: 93 81 00 08 stw r28,8(r1) Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc09588: 38 00 00 0b li r0,11 */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc0958c: 93 a1 00 0c stw r29,12(r1) ffc09590: 93 e1 00 14 stw r31,20(r1) Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc09594: 41 9e 00 ac beq- cr7,ffc09640 return RTEMS_NOT_DEFINED; if ( !time_buffer ) ffc09598: 2f 83 00 00 cmpwi cr7,r3,0 ffc0959c: 38 00 00 09 li r0,9 ffc095a0: 41 9e 00 a0 beq- cr7,ffc09640 return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; ffc095a4: 3b e0 00 00 li r31,0 ffc095a8: 93 e3 00 18 stw r31,24(r3) if ( !_TOD_Validate( time_buffer ) ) ffc095ac: 4b ff f1 81 bl ffc0872c <_TOD_Validate> <== ALWAYS TAKEN ffc095b0: 2f 83 00 00 cmpwi cr7,r3,0 ffc095b4: 41 9e 00 88 beq- cr7,ffc0963c return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); ffc095b8: 7f c3 f3 78 mr r3,r30 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc095bc: 3f a0 00 00 lis r29,0 time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); ffc095c0: 4b ff f0 e1 bl ffc086a0 <_TOD_To_seconds> <== ALWAYS TAKEN if ( seconds <= _TOD_Seconds_since_epoch() ) ffc095c4: 80 1d 28 34 lwz r0,10292(r29) time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); ffc095c8: 7c 7e 1b 78 mr r30,r3 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc095cc: 7f 83 00 40 cmplw cr7,r3,r0 ffc095d0: 40 bd 00 6c ble+ cr7,ffc0963c ffc095d4: 3d 20 00 00 lis r9,0 ffc095d8: 81 69 28 14 lwz r11,10260(r9) ffc095dc: 38 0b 00 01 addi r0,r11,1 ffc095e0: 90 09 28 14 stw r0,10260(r9) return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); ffc095e4: 3f 80 00 00 lis r28,0 ffc095e8: 80 7c 28 54 lwz r3,10324(r28) ffc095ec: 38 80 00 10 li r4,16 ffc095f0: 48 00 2d 3d bl ffc0c32c <_Thread_Set_state> <== ALWAYS TAKEN _Watchdog_Initialize( &_Thread_Executing->Timer, ffc095f4: 81 3c 28 54 lwz r9,10324(r28) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc095f8: 3d 60 ff c1 lis r11,-63 if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); _Watchdog_Initialize( ffc095fc: 80 09 00 08 lwz r0,8(r9) ffc09600: 39 6b b6 64 addi r11,r11,-18844 ffc09604: 91 69 00 64 stw r11,100(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc09608: 3c 60 00 00 lis r3,0 ffc0960c: 38 63 2d fc addi r3,r3,11772 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc09610: 90 09 00 68 stw r0,104(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc09614: 38 89 00 48 addi r4,r9,72 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc09618: 80 1d 28 34 lwz r0,10292(r29) ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0961c: 93 e9 00 6c stw r31,108(r9) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc09620: 7f c0 f0 50 subf r30,r0,r30 ffc09624: 93 c9 00 54 stw r30,84(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc09628: 93 e9 00 50 stw r31,80(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc0962c: 48 00 38 cd bl ffc0cef8 <_Watchdog_Insert> <== ALWAYS TAKEN ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); ffc09630: 48 00 22 71 bl ffc0b8a0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09634: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc09638: 48 00 00 08 b ffc09640 <== ALWAYS TAKEN ffc0963c: 38 00 00 14 li r0,20 } ffc09640: 7c 03 03 78 mr r3,r0 ffc09644: 80 01 00 1c lwz r0,28(r1) ffc09648: 83 81 00 08 lwz r28,8(r1) ffc0964c: 7c 08 03 a6 mtlr r0 ffc09650: 83 a1 00 0c lwz r29,12(r1) ffc09654: 83 c1 00 10 lwz r30,16(r1) ffc09658: 83 e1 00 14 lwz r31,20(r1) ffc0965c: 38 21 00 18 addi r1,r1,24 ffc09660: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06b1c : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06b1c: 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; ffc06b20: 38 00 00 09 li r0,9 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06b24: 41 9e 01 04 beq- cr7,ffc06c28 <== NEVER TAKEN ffc06b28: 41 9d 00 70 bgt- cr7,ffc06b98 <== NEVER TAKEN ffc06b2c: 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; ffc06b30: 38 00 00 04 li r0,4 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06b34: 41 9e 00 f4 beq- cr7,ffc06c28 <== NEVER TAKEN ffc06b38: 41 9d 00 38 bgt- cr7,ffc06b70 <== NEVER TAKEN ffc06b3c: 2f 83 00 01 cmpwi cr7,r3,1 ffc06b40: 38 00 00 01 li r0,1 ffc06b44: 41 9e 00 e4 beq- cr7,ffc06c28 <== NEVER TAKEN ffc06b48: 41 bd 00 10 bgt+ cr7,ffc06b58 <== NEVER TAKEN ffc06b4c: 2f 83 00 00 cmpwi cr7,r3,0 ffc06b50: 38 00 00 00 li r0,0 ffc06b54: 48 00 00 b8 b ffc06c0c <== ALWAYS TAKEN ffc06b58: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED ffc06b5c: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc06b60: 41 9e 00 c8 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06b64: 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; ffc06b68: 38 00 00 03 li r0,3 <== NOT EXECUTED ffc06b6c: 48 00 00 a0 b ffc06c0c <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06b70: 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; ffc06b74: 38 00 00 06 li r0,6 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06b78: 41 9e 00 b0 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06b7c: 41 9c 00 98 blt- cr7,ffc06c14 <== NOT EXECUTED ffc06b80: 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; ffc06b84: 38 00 00 07 li r0,7 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06b88: 41 9e 00 a0 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06b8c: 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; ffc06b90: 38 00 00 08 li r0,8 <== NOT EXECUTED ffc06b94: 48 00 00 78 b ffc06c0c <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06b98: 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; ffc06b9c: 38 00 00 0e li r0,14 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06ba0: 41 9e 00 88 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06ba4: 41 9d 00 2c bgt- cr7,ffc06bd0 <== NOT EXECUTED ffc06ba8: 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; ffc06bac: 38 00 00 0b li r0,11 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06bb0: 41 9e 00 78 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06bb4: 41 9c 00 68 blt- cr7,ffc06c1c <== NOT EXECUTED ffc06bb8: 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; ffc06bbc: 38 00 00 0c li r0,12 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06bc0: 41 9e 00 68 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06bc4: 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; ffc06bc8: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc06bcc: 48 00 00 40 b ffc06c0c <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06bd0: 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; ffc06bd4: 38 00 00 11 li r0,17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06bd8: 41 9e 00 50 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06bdc: 41 9d 00 1c bgt- cr7,ffc06bf8 <== NOT EXECUTED ffc06be0: 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; ffc06be4: 38 00 00 0f li r0,15 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06be8: 41 9e 00 40 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06bec: 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; ffc06bf0: 38 00 00 10 li r0,16 <== NOT EXECUTED ffc06bf4: 48 00 00 18 b ffc06c0c <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06bf8: 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; ffc06bfc: 38 00 00 12 li r0,18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06c00: 41 9e 00 28 beq- cr7,ffc06c28 <== NOT EXECUTED ffc06c04: 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; ffc06c08: 38 00 00 13 li r0,19 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc06c0c: 40 be 00 18 bne+ cr7,ffc06c24 <== ALWAYS TAKEN ffc06c10: 48 00 00 18 b ffc06c28 <== 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; ffc06c14: 38 00 00 05 li r0,5 <== NOT EXECUTED case B150: baud_index = 5; break; ffc06c18: 48 00 00 10 b ffc06c28 <== 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; ffc06c1c: 38 00 00 0a li r0,10 <== NOT EXECUTED case B1800: baud_index = 10; break; ffc06c20: 48 00 00 08 b ffc06c28 <== 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; ffc06c24: 38 00 ff ff li r0,-1 default: baud_index = -1; break; } return baud_index; } ffc06c28: 7c 03 03 78 mr r3,r0 ffc06c2c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06c30 : int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06c30: 2f 83 00 09 cmpwi cr7,r3,9 #include int32_t rtems_termios_baud_to_number( int termios_baud ) { ffc06c34: 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; ffc06c38: 38 60 04 b0 li r3,1200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06c3c: 4d 9e 00 20 beqlr cr7 ffc06c40: 41 9d 00 7c bgt- cr7,ffc06cbc ffc06c44: 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; ffc06c48: 38 60 00 86 li r3,134 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06c4c: 4d 9e 00 20 beqlr cr7 ffc06c50: 41 9d 00 40 bgt- cr7,ffc06c90 ffc06c54: 2f 80 00 01 cmpwi cr7,r0,1 ffc06c58: 38 60 00 32 li r3,50 ffc06c5c: 4d 9e 00 20 beqlr cr7 ffc06c60: 41 bd 00 14 bgt+ cr7,ffc06c74 ffc06c64: 2f 80 00 00 cmpwi cr7,r0,0 ffc06c68: 38 60 00 00 li r3,0 ffc06c6c: 4d 9e 00 20 beqlr cr7 ffc06c70: 48 00 00 f4 b ffc06d64 <== ALWAYS TAKEN ffc06c74: 2f 80 00 02 cmpwi cr7,r0,2 ffc06c78: 38 60 00 4b li r3,75 ffc06c7c: 4d 9e 00 20 beqlr cr7 ffc06c80: 2f 80 00 03 cmpwi cr7,r0,3 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; ffc06c84: 38 60 00 6e li r3,110 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06c88: 40 be 00 dc bne+ cr7,ffc06d64 <== NEVER TAKEN ffc06c8c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06c90: 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; ffc06c94: 38 60 00 c8 li r3,200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06c98: 4d 9e 00 20 beqlr cr7 ffc06c9c: 41 9c 00 b8 blt- cr7,ffc06d54 ffc06ca0: 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; ffc06ca4: 38 60 01 2c li r3,300 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06ca8: 4d 9e 00 20 beqlr cr7 ffc06cac: 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; ffc06cb0: 38 60 02 58 li r3,600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06cb4: 40 be 00 b0 bne+ cr7,ffc06d64 <== NEVER TAKEN ffc06cb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06cbc: 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; ffc06cc0: 38 60 4b 00 li r3,19200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06cc4: 4d 9e 00 20 beqlr cr7 ffc06cc8: 41 9d 00 30 bgt- cr7,ffc06cf8 ffc06ccc: 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; ffc06cd0: 38 60 09 60 li r3,2400 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06cd4: 4d 9e 00 20 beqlr cr7 ffc06cd8: 41 9c 00 84 blt- cr7,ffc06d5c ffc06cdc: 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; ffc06ce0: 38 60 12 c0 li r3,4800 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06ce4: 4d 9e 00 20 beqlr cr7 ffc06ce8: 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; ffc06cec: 38 60 25 80 li r3,9600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06cf0: 40 be 00 74 bne+ cr7,ffc06d64 <== NEVER TAKEN ffc06cf4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06cf8: 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; ffc06cfc: 3c 60 00 01 lis r3,1 ffc06d00: 60 63 c2 00 ori r3,r3,49664 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06d04: 4d 9e 00 20 beqlr cr7 ffc06d08: 41 9d 00 28 bgt- cr7,ffc06d30 ffc06d0c: 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; ffc06d10: 38 60 00 00 li r3,0 ffc06d14: 60 63 96 00 ori r3,r3,38400 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06d18: 4d 9e 00 20 beqlr cr7 ffc06d1c: 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; ffc06d20: 38 60 00 00 li r3,0 ffc06d24: 60 63 e1 00 ori r3,r3,57600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06d28: 40 be 00 3c bne+ cr7,ffc06d64 <== NEVER TAKEN ffc06d2c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06d30: 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; ffc06d34: 3c 60 00 03 lis r3,3 ffc06d38: 60 63 84 00 ori r3,r3,33792 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06d3c: 4d 9e 00 20 beqlr cr7 ffc06d40: 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; ffc06d44: 3c 60 00 07 lis r3,7 ffc06d48: 60 63 08 00 ori r3,r3,2048 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc06d4c: 40 be 00 18 bne+ cr7,ffc06d64 <== NEVER TAKEN ffc06d50: 4e 80 00 20 blr <== ALWAYS TAKEN 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; ffc06d54: 38 60 00 96 li r3,150 case B150: baud = 150; break; ffc06d58: 4e 80 00 20 blr <== ALWAYS TAKEN case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; ffc06d5c: 38 60 07 08 li r3,1800 case B1800: baud = 1800; break; ffc06d60: 4e 80 00 20 blr <== ALWAYS TAKEN 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; ffc06d64: 38 60 ff ff li r3,-1 default: baud = -1; break; } return baud; } ffc06d68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05108 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; ffc05108: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc0510c: 39 2b 21 68 addi r9,r11,8552 <== NOT EXECUTED ffc05110: 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; } ffc05114: 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; ffc05118: 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; ffc0511c: 90 89 00 04 stw r4,4(r9) <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } ffc05120: 4e 80 00 20 blr <== NOT EXECUTED ffc068fc : } } rtems_status_code rtems_termios_close (void *arg) { ffc068fc: 94 21 ff f0 stwu r1,-16(r1) ffc06900: 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); ffc06904: 3d 20 00 00 lis r9,0 } } rtems_status_code rtems_termios_close (void *arg) { ffc06908: 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); ffc0690c: 38 80 00 00 li r4,0 <== ALWAYS TAKEN ffc06910: 38 a0 00 00 li r5,0 } } rtems_status_code rtems_termios_close (void *arg) { ffc06914: 93 c1 00 08 stw r30,8(r1) ffc06918: 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); ffc0691c: 80 69 27 58 lwz r3,10072(r9) <== ALWAYS TAKEN rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06920: 81 3e 00 00 lwz r9,0(r30) } } rtems_status_code rtems_termios_close (void *arg) { ffc06924: 93 e1 00 0c stw r31,12(r1) rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc06928: 83 e9 00 38 lwz r31,56(r9) rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc0692c: 48 00 12 95 bl ffc07bc0 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) ffc06930: 2f 83 00 00 cmpwi cr7,r3,0 ffc06934: 40 9e 00 9c bne- cr7,ffc069d0 <== NEVER TAKEN rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { ffc06938: 81 3f 00 08 lwz r9,8(r31) ffc0693c: 38 09 ff ff addi r0,r9,-1 ffc06940: 2f 80 00 00 cmpwi cr7,r0,0 ffc06944: 90 1f 00 08 stw r0,8(r31) ffc06948: 40 9e 01 5c bne- cr7,ffc06aa4 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { ffc0694c: 80 1f 00 cc lwz r0,204(r31) ffc06950: 3d 20 00 00 lis r9,0 ffc06954: 39 29 28 88 addi r9,r9,10376 ffc06958: 54 00 28 34 rlwinm r0,r0,5,0,26 <== ALWAYS TAKEN ffc0695c: 7d 29 02 14 add r9,r9,r0 <== ALWAYS TAKEN ffc06960: 80 09 00 04 lwz r0,4(r9) ffc06964: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc06968: 41 9e 00 14 beq- cr7,ffc0697c <== ALWAYS TAKEN /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); ffc0696c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06970: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06974: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06978: 48 00 00 24 b ffc0699c <== NOT EXECUTED } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc0697c: 80 7f 00 18 lwz r3,24(r31) ffc06980: 38 80 00 00 li r4,0 ffc06984: 38 a0 00 00 li r5,0 ffc06988: 48 00 12 39 bl ffc07bc0 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) { ffc0698c: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc06990: 40 9e 00 40 bne- cr7,ffc069d0 <== NEVER TAKEN rtems_fatal_error_occurred (sc); } drainOutput (tty); ffc06994: 7f e3 fb 78 mr r3,r31 ffc06998: 4b ff f6 f5 bl ffc0608c <== ALWAYS TAKEN } if (tty->device.outputUsesInterrupts ffc0699c: 80 1f 00 b4 lwz r0,180(r31) ffc069a0: 2f 80 00 02 cmpwi cr7,r0,2 ffc069a4: 40 be 00 30 bne+ cr7,ffc069d4 <== ALWAYS TAKEN == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( ffc069a8: 80 7f 00 c4 lwz r3,196(r31) <== NOT EXECUTED ffc069ac: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc069b0: 48 00 0c f1 bl ffc076a0 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc069b4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc069b8: 40 9e 00 18 bne- cr7,ffc069d0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( ffc069bc: 80 7f 00 c8 lwz r3,200(r31) <== NOT EXECUTED ffc069c0: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc069c4: 48 00 0c dd bl ffc076a0 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc069c8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc069cc: 41 be 00 08 beq+ cr7,ffc069d4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc069d0: 48 00 1a 1d bl ffc083ec <== NOT EXECUTED } if (tty->device.lastClose) ffc069d4: 80 1f 00 9c lwz r0,156(r31) ffc069d8: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc069dc: 41 9e 00 18 beq- cr7,ffc069f4 <== ALWAYS TAKEN (*tty->device.lastClose)(tty->major, tty->minor, arg); ffc069e0: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc069e4: 80 7f 00 0c lwz r3,12(r31) <== NOT EXECUTED ffc069e8: 80 9f 00 10 lwz r4,16(r31) <== NOT EXECUTED ffc069ec: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc069f0: 4e 80 04 21 bctrl <== NOT EXECUTED if (tty->forw == NULL) { ffc069f4: 81 7f 00 00 lwz r11,0(r31) ffc069f8: 81 3f 00 04 lwz r9,4(r31) <== ALWAYS TAKEN ffc069fc: 2f 8b 00 00 cmpwi cr7,r11,0 ffc06a00: 40 be 00 1c bne+ cr7,ffc06a1c rtems_termios_ttyTail = tty->back; if ( rtems_termios_ttyTail != NULL ) { ffc06a04: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN 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; ffc06a08: 3d 40 00 00 lis r10,0 <== ALWAYS TAKEN ffc06a0c: 91 2a 27 5c stw r9,10076(r10) if ( rtems_termios_ttyTail != NULL ) { ffc06a10: 41 9e 00 10 beq- cr7,ffc06a20 <== ALWAYS TAKEN rtems_termios_ttyTail->forw = NULL; ffc06a14: 91 69 00 00 stw r11,0(r9) <== NOT EXECUTED ffc06a18: 48 00 00 08 b ffc06a20 <== NOT EXECUTED } } else { tty->forw->back = tty->back; ffc06a1c: 91 2b 00 04 stw r9,4(r11) } if (tty->back == NULL) { ffc06a20: 81 7f 00 04 lwz r11,4(r31) ffc06a24: 81 3f 00 00 lwz r9,0(r31) ffc06a28: 2f 8b 00 00 cmpwi cr7,r11,0 <== ALWAYS TAKEN ffc06a2c: 40 be 00 1c bne+ cr7,ffc06a48 <== NEVER TAKEN rtems_termios_ttyHead = tty->forw; if ( rtems_termios_ttyHead != NULL ) { ffc06a30: 2f 89 00 00 cmpwi cr7,r9,0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; ffc06a34: 3d 40 00 00 lis r10,0 ffc06a38: 91 2a 27 60 stw r9,10080(r10) if ( rtems_termios_ttyHead != NULL ) { ffc06a3c: 41 9e 00 10 beq- cr7,ffc06a4c rtems_termios_ttyHead->back = NULL; ffc06a40: 91 69 00 04 stw r11,4(r9) ffc06a44: 48 00 00 08 b ffc06a4c <== ALWAYS TAKEN } } else { tty->back->forw = tty->forw; ffc06a48: 91 2b 00 00 stw r9,0(r11) <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); ffc06a4c: 80 7f 00 14 lwz r3,20(r31) ffc06a50: 48 00 10 a5 bl ffc07af4 <== ALWAYS TAKEN rtems_semaphore_delete (tty->osem); ffc06a54: 80 7f 00 18 lwz r3,24(r31) ffc06a58: 48 00 10 9d bl ffc07af4 <== ALWAYS TAKEN rtems_semaphore_delete (tty->rawOutBuf.Semaphore); ffc06a5c: 80 7f 00 8c lwz r3,140(r31) ffc06a60: 48 00 10 95 bl ffc07af4 <== ALWAYS TAKEN if ((tty->device.pollRead == NULL) || ffc06a64: 80 1f 00 a0 lwz r0,160(r31) ffc06a68: 2f 80 00 00 cmpwi cr7,r0,0 ffc06a6c: 41 9e 00 10 beq- cr7,ffc06a7c <== NEVER TAKEN (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) ffc06a70: 80 1f 00 b4 lwz r0,180(r31) ffc06a74: 2f 80 00 02 cmpwi cr7,r0,2 ffc06a78: 40 be 00 0c bne+ cr7,ffc06a84 <== ALWAYS TAKEN rtems_semaphore_delete (tty->rawInBuf.Semaphore); ffc06a7c: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED ffc06a80: 48 00 10 75 bl ffc07af4 <== NOT EXECUTED free (tty->rawInBuf.theBuf); ffc06a84: 80 7f 00 58 lwz r3,88(r31) ffc06a88: 4b ff d5 d1 bl ffc04058 <== ALWAYS TAKEN free (tty->rawOutBuf.theBuf); ffc06a8c: 80 7f 00 7c lwz r3,124(r31) ffc06a90: 4b ff d5 c9 bl ffc04058 <== ALWAYS TAKEN free (tty->cbuf); ffc06a94: 80 7f 00 1c lwz r3,28(r31) ffc06a98: 4b ff d5 c1 bl ffc04058 <== ALWAYS TAKEN free (tty); ffc06a9c: 7f e3 fb 78 mr r3,r31 ffc06aa0: 4b ff d5 b9 bl ffc04058 <== ALWAYS TAKEN } rtems_semaphore_release (rtems_termios_ttyMutex); ffc06aa4: 3d 20 00 00 lis r9,0 ffc06aa8: 80 69 27 58 lwz r3,10072(r9) <== ALWAYS TAKEN ffc06aac: 48 00 12 59 bl ffc07d04 <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc06ab0: 80 01 00 14 lwz r0,20(r1) ffc06ab4: 38 60 00 00 li r3,0 <== ALWAYS TAKEN ffc06ab8: 83 c1 00 08 lwz r30,8(r1) ffc06abc: 7c 08 03 a6 mtlr r0 ffc06ac0: 83 e1 00 0c lwz r31,12(r1) ffc06ac4: 38 21 00 10 addi r1,r1,16 ffc06ac8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05380 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { ffc05380: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05384: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05388: 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) { ffc0538c: 81 63 00 b4 lwz r11,180(r3) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; ffc05390: 80 03 00 90 lwz r0,144(r3) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc05394: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; ffc05398: 7c 00 22 14 add r0,r0,r4 <== NOT EXECUTED ffc0539c: 90 03 00 90 stw r0,144(r3) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc053a0: 40 be 00 1c bne+ cr7,ffc053bc <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, ffc053a4: 80 63 00 c8 lwz r3,200(r3) <== NOT EXECUTED ffc053a8: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc053ac: 48 00 22 f5 bl ffc076a0 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc053b0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc053b4: 41 be 00 40 beq+ cr7,ffc053f4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc053b8: 48 00 30 35 bl ffc083ec <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { ffc053bc: 80 03 00 cc lwz r0,204(r3) <== NOT EXECUTED ffc053c0: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc053c4: 40 9e 00 20 bne- cr7,ffc053e4 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc053c8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc053cc: 80 09 29 3c lwz r0,10556(r9) <== NOT EXECUTED ffc053d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc053d4: 41 9e 00 20 beq- cr7,ffc053f4 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); ffc053d8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc053dc: 4e 80 04 21 bctrl <== NOT EXECUTED ffc053e0: 48 00 00 14 b ffc053f4 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } ffc053e4: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc053e8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc053ec: 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); ffc053f0: 4b ff fd 5c b ffc0514c <== NOT EXECUTED } } ffc053f4: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc053f8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc053fc: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc05400: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05404: 4e 80 00 20 blr <== NOT EXECUTED ffc05408 : * 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) { ffc05408: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc0540c: 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) { ffc05410: 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) { ffc05414: 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) { ffc05418: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED ffc0541c: 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) { ffc05420: 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); ffc05424: 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) { ffc05428: 55 6b 28 34 rlwinm r11,r11,5,0,26 <== NOT EXECUTED ffc0542c: 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) { ffc05430: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED ffc05434: 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) { ffc05438: 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) { ffc0543c: 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); ffc05440: 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) { ffc05444: 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) { ffc05448: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED ffc0544c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc05450: 92 c1 00 08 stw r22,8(r1) <== NOT EXECUTED ffc05454: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED ffc05458: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED ffc0545c: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED ffc05460: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED ffc05464: 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) { ffc05468: 40 be 00 3c bne+ cr7,ffc054a4 <== 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); ffc0546c: 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, ffc05470: 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); ffc05474: 3b 03 00 30 addi r24,r3,48 <== NOT EXECUTED ffc05478: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc0547c: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc05480: 48 00 02 84 b ffc05704 <== 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); ffc05484: 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++; ffc05488: 88 7d 00 00 lbz r3,0(r29) <== NOT EXECUTED ffc0548c: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc05490: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc05494: 38 09 00 10 addi r0,r9,16 <== NOT EXECUTED ffc05498: 7c 1c 00 2e lwzx r0,r28,r0 <== NOT EXECUTED ffc0549c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc054a0: 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--) { ffc054a4: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc054a8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc054ac: 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--) { ffc054b0: 40 9e ff d4 bne+ cr7,ffc05484 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { ffc054b4: 80 1f 00 e4 lwz r0,228(r31) <== NOT EXECUTED ffc054b8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc054bc: 40 9e 02 68 bne- cr7,ffc05724 <== NOT EXECUTED ffc054c0: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED ffc054c4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc054c8: 41 9e 02 5c beq- cr7,ffc05724 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc054cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc054d0: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED ffc054d4: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc054d8: 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); ffc054dc: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc054e0: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc054e4: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED ffc054e8: 48 00 02 40 b ffc05728 <== 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) { ffc054ec: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; ffc054f0: 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) { ffc054f4: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc054f8: 41 82 00 58 beq- ffc05550 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { ffc054fc: 89 3f 00 4a lbz r9,74(r31) <== NOT EXECUTED ffc05500: 88 1f 00 49 lbz r0,73(r31) <== NOT EXECUTED ffc05504: 7f 89 d0 00 cmpw cr7,r9,r26 <== NOT EXECUTED ffc05508: 40 be 00 30 bne+ cr7,ffc05538 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { ffc0550c: 54 00 06 3e clrlwi r0,r0,24 <== NOT EXECUTED ffc05510: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc05514: 40 be 00 10 bne+ cr7,ffc05524 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; ffc05518: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0551c: 68 00 00 10 xori r0,r0,16 <== NOT EXECUTED ffc05520: 48 00 00 0c b ffc0552c <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; ffc05524: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05528: 60 00 00 10 ori r0,r0,16 <== NOT EXECUTED ffc0552c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; ffc05530: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc05534: 48 00 00 24 b ffc05558 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { ffc05538: 54 00 06 3e clrlwi r0,r0,24 <== NOT EXECUTED ffc0553c: 7f 80 d0 00 cmpw cr7,r0,r26 <== NOT EXECUTED ffc05540: 40 be 00 10 bne+ cr7,ffc05550 <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; ffc05544: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05548: 54 00 07 34 rlwinm r0,r0,0,28,26 <== NOT EXECUTED ffc0554c: 4b ff ff e0 b ffc0552c <== NOT EXECUTED flow_rcv = true; } } if (flow_rcv) { ffc05550: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED ffc05554: 41 be 00 64 beq+ cr7,ffc055b8 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { ffc05558: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0555c: 54 00 06 b6 rlwinm r0,r0,0,26,27 <== NOT EXECUTED ffc05560: 2f 80 00 20 cmpwi cr7,r0,32 <== NOT EXECUTED ffc05564: 40 be 01 98 bne+ cr7,ffc056fc <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05568: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED ffc0556c: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05570: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED ffc05574: 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) { ffc05578: 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; ffc0557c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc05580: 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; ffc05584: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED ffc05588: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc0558c: 41 be 00 24 beq+ cr7,ffc055b0 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); ffc05590: 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, ffc05594: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05598: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc0559c: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc055a0: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc055a4: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc055a8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc055ac: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc055b0: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED ffc055b4: 48 00 01 48 b ffc056fc <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; ffc055b8: 83 9f 00 60 lwz r28,96(r31) <== NOT EXECUTED ffc055bc: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc055c0: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED ffc055c4: 7f 80 4b 96 divwu r28,r0,r9 <== NOT EXECUTED ffc055c8: 7f 9c 49 d6 mullw r28,r28,r9 <== NOT EXECUTED ffc055cc: 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 ( ffc055d0: 7e c0 00 a6 mfmsr r22 <== NOT EXECUTED ffc055d4: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc055d8: 7e c0 00 78 andc r0,r22,r0 <== NOT EXECUTED ffc055dc: 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) ffc055e0: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED ffc055e4: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED ffc055e8: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc055ec: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && ffc055f0: 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) ffc055f4: 7c 00 e2 14 add r0,r0,r28 <== NOT EXECUTED ffc055f8: 7d 40 4b 96 divwu r10,r0,r9 <== NOT EXECUTED ffc055fc: 7d 2a 49 d6 mullw r9,r10,r9 <== NOT EXECUTED ffc05600: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && ffc05604: 7f 80 58 40 cmplw cr7,r0,r11 <== NOT EXECUTED ffc05608: 40 9d 00 a0 ble- cr7,ffc056a8 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { ffc0560c: 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) ffc05610: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc05614: 40 82 00 94 bne- ffc056a8 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; ffc05618: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0561c: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc05620: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) ffc05624: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05628: 70 00 04 02 andi. r0,r0,1026 <== NOT EXECUTED ffc0562c: 2f 80 04 00 cmpwi cr7,r0,1024 <== NOT EXECUTED ffc05630: 40 be 00 44 bne+ cr7,ffc05674 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || ffc05634: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05638: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc0563c: 40 82 00 10 bne- ffc0564c <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { ffc05640: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED ffc05644: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05648: 40 9e 00 60 bne- cr7,ffc056a8 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; ffc0564c: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05650: 7e e4 bb 78 mr r4,r23 <== NOT EXECUTED ffc05654: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05658: 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; ffc0565c: 61 29 00 02 ori r9,r9,2 <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05660: 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; ffc05664: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05668: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0566c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05670: 48 00 00 38 b ffc056a8 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) ffc05674: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05678: 70 00 01 04 andi. r0,r0,260 <== NOT EXECUTED ffc0567c: 2f 80 01 00 cmpwi cr7,r0,256 <== NOT EXECUTED ffc05680: 40 be 00 28 bne+ cr7,ffc056a8 <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05684: 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; ffc05688: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc0568c: 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; ffc05690: 61 29 00 04 ori r9,r9,4 <== NOT EXECUTED ffc05694: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05698: 41 9e 00 10 beq- cr7,ffc056a8 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); ffc0569c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc056a0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc056a4: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc056a8: 7e c0 01 24 mtmsr r22 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { ffc056ac: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED ffc056b0: 7f 9c 00 00 cmpw cr7,r28,r0 <== NOT EXECUTED ffc056b4: 40 be 00 0c bne+ cr7,ffc056c0 <== NOT EXECUTED dropped++; ffc056b8: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc056bc: 48 00 00 40 b ffc056fc <== NOT EXECUTED } else { tty->rawInBuf.theBuf[newTail] = c; ffc056c0: 81 3f 00 58 lwz r9,88(r31) <== NOT EXECUTED ffc056c4: 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 )) { ffc056c8: 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; ffc056cc: 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 )) { ffc056d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc056d4: 40 9e 00 28 bne- cr7,ffc056fc <== NOT EXECUTED ffc056d8: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED ffc056dc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc056e0: 41 9e 00 1c beq- cr7,ffc056fc <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc056e4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc056e8: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED ffc056ec: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED ffc056f0: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc056f4: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc056f8: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; ffc056fc: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED ffc05700: 3b 7b ff ff addi r27,r27,-1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { ffc05704: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc05708: 40 9e fd e4 bne+ cr7,ffc054ec <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; ffc0570c: 80 1f 00 78 lwz r0,120(r31) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); ffc05710: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; ffc05714: 7c 00 f2 14 add r0,r0,r30 <== NOT EXECUTED ffc05718: 90 1f 00 78 stw r0,120(r31) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); ffc0571c: 48 00 25 e9 bl ffc07d04 <== NOT EXECUTED return dropped; ffc05720: 48 00 00 08 b ffc05728 <== NOT EXECUTED ffc05724: 3b c0 00 00 li r30,0 <== NOT EXECUTED } ffc05728: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc0572c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05730: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED ffc05734: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05738: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc0573c: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc05740: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc05744: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc05748: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc0574c: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc05750: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc05754: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc05758: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc0575c: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc05760: 4e 80 00 20 blr <== NOT EXECUTED ffc050b4 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { ffc050b4: 7c 08 02 a6 mflr r0 ffc050b8: 94 21 ff f8 stwu r1,-8(r1) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { ffc050bc: 3c e0 00 00 lis r7,0 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { ffc050c0: 90 01 00 0c stw r0,12(r1) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { ffc050c4: 80 07 27 58 lwz r0,10072(r7) ffc050c8: 38 e7 27 58 addi r7,r7,10072 ffc050cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc050d0: 40 be 00 28 bne+ cr7,ffc050f8 sc = rtems_semaphore_create ( ffc050d4: 3c 60 54 52 lis r3,21586 ffc050d8: 60 63 6d 69 ori r3,r3,28009 <== ALWAYS TAKEN ffc050dc: 38 80 00 01 li r4,1 ffc050e0: 38 a0 00 54 li r5,84 ffc050e4: 38 c0 00 00 li r6,0 ffc050e8: 48 00 28 09 bl ffc078f0 <== ALWAYS TAKEN 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) ffc050ec: 2f 83 00 00 cmpwi cr7,r3,0 ffc050f0: 41 be 00 08 beq+ cr7,ffc050f8 <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); ffc050f4: 48 00 32 f9 bl ffc083ec <== NOT EXECUTED } } ffc050f8: 80 01 00 0c lwz r0,12(r1) ffc050fc: 38 21 00 08 addi r1,r1,8 ffc05100: 7c 08 03 a6 mtlr r0 ffc05104: 4e 80 00 20 blr <== ALWAYS TAKEN ffc064e8 : } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc064e8: 94 21 ff e0 stwu r1,-32(r1) ffc064ec: 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); ffc064f0: 38 80 00 00 li r4,0 } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc064f4: 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; ffc064f8: 38 00 00 00 li r0,0 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc064fc: 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; ffc06500: 81 23 00 00 lwz r9,0(r3) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06504: 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; ffc06508: 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; ffc0650c: 83 e9 00 38 lwz r31,56(r9) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06510: 93 c1 00 18 stw r30,24(r1) ffc06514: 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); ffc06518: 80 7f 00 18 lwz r3,24(r31) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc0651c: 93 81 00 10 stw r28,16(r1) ffc06520: 93 a1 00 14 stw r29,20(r1) ffc06524: 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; ffc06528: 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); ffc0652c: 48 00 16 95 bl ffc07bc0 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) { ffc06530: 7c 7d 1b 79 mr. r29,r3 ffc06534: 40 82 03 9c bne- ffc068d0 <== NEVER TAKEN args->ioctl_return = sc; return sc; } switch (args->command) { ffc06538: 80 1e 00 04 lwz r0,4(r30) ffc0653c: 2f 80 00 04 cmpwi cr7,r0,4 ffc06540: 41 9e 02 c8 beq- cr7,ffc06808 <== NEVER TAKEN ffc06544: 2b 80 00 04 cmplwi cr7,r0,4 ffc06548: 41 9d 00 20 bgt- cr7,ffc06568 <== NEVER TAKEN ffc0654c: 2f 80 00 02 cmpwi cr7,r0,2 ffc06550: 41 9e 00 a0 beq- cr7,ffc065f0 ffc06554: 2b 80 00 02 cmplwi cr7,r0,2 ffc06558: 41 9d 02 90 bgt- cr7,ffc067e8 ffc0655c: 2f 80 00 01 cmpwi cr7,r0,1 ffc06560: 40 be 00 44 bne+ cr7,ffc065a4 <== NEVER TAKEN ffc06564: 48 00 00 78 b ffc065dc <== ALWAYS TAKEN ffc06568: 3d 20 40 04 lis r9,16388 <== NOT EXECUTED ffc0656c: 61 29 66 7f ori r9,r9,26239 <== NOT EXECUTED ffc06570: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc06574: 41 9e 03 24 beq- cr7,ffc06898 <== NOT EXECUTED ffc06578: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED ffc0657c: 41 9d 00 10 bgt- cr7,ffc0658c <== NOT EXECUTED ffc06580: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc06584: 40 be 00 20 bne+ cr7,ffc065a4 <== NOT EXECUTED ffc06588: 48 00 02 6c b ffc067f4 <== NOT EXECUTED ffc0658c: 6c 09 40 04 xoris r9,r0,16388 <== NOT EXECUTED ffc06590: 2f 89 74 1a cmpwi cr7,r9,29722 <== NOT EXECUTED ffc06594: 41 9e 02 f8 beq- cr7,ffc0688c <== NOT EXECUTED ffc06598: 6c 09 80 04 xoris r9,r0,32772 <== NOT EXECUTED ffc0659c: 2f 89 74 1b cmpwi cr7,r9,29723 <== NOT EXECUTED ffc065a0: 41 9e 02 7c beq- cr7,ffc0681c <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { ffc065a4: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc065a8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc065ac: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED ffc065b0: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc065b4: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc065b8: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc065bc: 3b a0 00 0a li r29,10 <== NOT EXECUTED ffc065c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc065c4: 41 9e 03 04 beq- cr7,ffc068c8 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); ffc065c8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc065cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc065d0: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc065d4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc065d8: 48 00 02 ac b ffc06884 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; ffc065dc: 80 7e 00 08 lwz r3,8(r30) ffc065e0: 38 9f 00 30 addi r4,r31,48 ffc065e4: 38 a0 00 24 li r5,36 ffc065e8: 48 00 c2 0d bl ffc127f4 <== ALWAYS TAKEN break; ffc065ec: 48 00 02 dc b ffc068c8 <== ALWAYS TAKEN case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; ffc065f0: 80 9e 00 08 lwz r4,8(r30) ffc065f4: 38 7f 00 30 addi r3,r31,48 ffc065f8: 38 a0 00 24 li r5,36 ffc065fc: 48 00 c1 f9 bl ffc127f4 <== ALWAYS TAKEN /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && ffc06600: 80 1f 00 b8 lwz r0,184(r31) ffc06604: 70 09 02 00 andi. r9,r0,512 ffc06608: 41 82 00 78 beq- ffc06680 ffc0660c: 80 1f 00 30 lwz r0,48(r31) ffc06610: 70 09 04 00 andi. r9,r0,1024 ffc06614: 40 82 00 6c bne- ffc06680 <== ALWAYS TAKEN !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); ffc06618: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED ffc0661c: 38 00 fd ef li r0,-529 <== NOT EXECUTED ffc06620: 7d 20 00 38 and r0,r9,r0 <== NOT EXECUTED ffc06624: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { ffc06628: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0662c: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc06630: 41 82 00 50 beq- ffc06680 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc06634: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED ffc06638: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc0663c: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED ffc06640: 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) { ffc06644: 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; ffc06648: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc0664c: 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; ffc06650: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED ffc06654: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc06658: 41 be 00 24 beq+ cr7,ffc0667c <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); ffc0665c: 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, ffc06660: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc06664: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc06668: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc0666c: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc06670: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06674: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06678: 4e 80 04 21 bctrl <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0667c: 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) && ffc06680: 80 1f 00 b8 lwz r0,184(r31) ffc06684: 70 09 04 00 andi. r9,r0,1024 ffc06688: 41 82 00 28 beq- ffc066b0 <== ALWAYS TAKEN ffc0668c: 80 1f 00 30 lwz r0,48(r31) <== NOT EXECUTED ffc06690: 70 09 10 00 andi. r9,r0,4096 <== NOT EXECUTED ffc06694: 40 82 00 1c bne- ffc066b0 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); ffc06698: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0669c: 54 00 05 a8 rlwinm r0,r0,0,22,20 <== NOT EXECUTED ffc066a0: 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); ffc066a4: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc066a8: 54 00 07 fa rlwinm r0,r0,0,31,29 <== NOT EXECUTED ffc066ac: 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) && ffc066b0: 80 1f 00 b8 lwz r0,184(r31) ffc066b4: 70 09 01 00 andi. r9,r0,256 ffc066b8: 41 82 00 4c beq- ffc06704 <== ALWAYS TAKEN ffc066bc: 80 1f 00 38 lwz r0,56(r31) <== NOT EXECUTED ffc066c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc066c4: 41 9c 00 40 blt- cr7,ffc06704 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); ffc066c8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc066cc: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc066d0: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && ffc066d4: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc066d8: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc066dc: 41 82 00 1c beq- ffc066f8 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { ffc066e0: 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) && ffc066e4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc066e8: 41 9e 00 10 beq- cr7,ffc066f8 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); ffc066ec: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc066f0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc066f4: 4e 80 04 21 bctrl <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); ffc066f8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc066fc: 54 00 07 b8 rlwinm r0,r0,0,30,28 <== NOT EXECUTED ffc06700: 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) { ffc06704: 80 1f 00 38 lwz r0,56(r31) ffc06708: 2f 80 00 00 cmpwi cr7,r0,0 ffc0670c: 40 bc 00 10 bge+ cr7,ffc0671c <== ALWAYS TAKEN tty->flow_ctrl |= FL_MDRTS; ffc06710: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06714: 60 00 01 00 ori r0,r0,256 <== NOT EXECUTED ffc06718: 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) { ffc0671c: 80 1f 00 30 lwz r0,48(r31) ffc06720: 70 09 10 00 andi. r9,r0,4096 ffc06724: 41 82 00 10 beq- ffc06734 <== ALWAYS TAKEN tty->flow_ctrl |= FL_MDXOF; ffc06728: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0672c: 60 00 04 00 ori r0,r0,1024 <== NOT EXECUTED ffc06730: 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) { ffc06734: 80 1f 00 30 lwz r0,48(r31) ffc06738: 70 09 04 00 andi. r9,r0,1024 ffc0673c: 41 82 00 10 beq- ffc0674c <== NEVER TAKEN tty->flow_ctrl |= FL_MDXON; ffc06740: 80 1f 00 b8 lwz r0,184(r31) ffc06744: 60 00 02 00 ori r0,r0,512 ffc06748: 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) { ffc0674c: 83 9f 00 3c lwz r28,60(r31) ffc06750: 73 9c 00 02 andi. r28,r28,2 ffc06754: 41 82 00 0c beq- ffc06760 <== NEVER TAKEN tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc06758: 38 00 00 00 li r0,0 ffc0675c: 48 00 00 54 b ffc067b0 <== ALWAYS TAKEN 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; ffc06760: 8b 7f 00 46 lbz r27,70(r31) <== NOT EXECUTED ffc06764: 48 00 0d 01 bl ffc07464 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc06768: 39 20 00 0a li r9,10 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc0676c: 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] * ffc06770: 7f 63 d9 d6 mullw r27,r3,r27 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc06774: 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] * ffc06778: 7f 7b 4b 96 divwu r27,r27,r9 <== NOT EXECUTED ffc0677c: 89 3f 00 47 lbz r9,71(r31) <== NOT EXECUTED ffc06780: 93 7f 00 54 stw r27,84(r31) <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc06784: 41 9e 00 24 beq- cr7,ffc067a8 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) ffc06788: 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; ffc0678c: 93 9f 00 6c stw r28,108(r31) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; ffc06790: 93 7f 00 70 stw r27,112(r31) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) ffc06794: 41 9e 00 0c beq- cr7,ffc067a0 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc06798: 93 9f 00 74 stw r28,116(r31) <== NOT EXECUTED ffc0679c: 48 00 00 2c b ffc067c8 <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; ffc067a0: 93 7f 00 74 stw r27,116(r31) <== NOT EXECUTED ffc067a4: 48 00 00 24 b ffc067c8 <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { ffc067a8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc067ac: 41 9e 00 14 beq- cr7,ffc067c0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc067b0: 90 1f 00 74 stw r0,116(r31) else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc067b4: 90 1f 00 6c stw r0,108(r31) tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; ffc067b8: 90 1f 00 70 stw r0,112(r31) ffc067bc: 48 00 00 0c b ffc067c8 <== ALWAYS TAKEN tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; ffc067c0: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc067c4: 90 1f 00 6c stw r0,108(r31) <== NOT EXECUTED } } } if (tty->device.setAttributes) ffc067c8: 80 1f 00 a8 lwz r0,168(r31) ffc067cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc067d0: 41 9e 00 f8 beq- cr7,ffc068c8 <== NEVER TAKEN (*tty->device.setAttributes)(tty->minor, &tty->termios); ffc067d4: 80 7f 00 10 lwz r3,16(r31) ffc067d8: 38 9f 00 30 addi r4,r31,48 ffc067dc: 7c 09 03 a6 mtctr r0 ffc067e0: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc067e4: 48 00 00 e4 b ffc068c8 <== ALWAYS TAKEN break; case RTEMS_IO_TCDRAIN: drainOutput (tty); ffc067e8: 7f e3 fb 78 mr r3,r31 ffc067ec: 4b ff f8 a1 bl ffc0608c <== ALWAYS TAKEN break; ffc067f0: 48 00 00 d8 b ffc068c8 <== ALWAYS TAKEN case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; ffc067f4: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc067f8: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED ffc067fc: 91 3f 00 d4 stw r9,212(r31) <== NOT EXECUTED ffc06800: 91 5f 00 d8 stw r10,216(r31) <== NOT EXECUTED break; ffc06804: 48 00 00 c4 b ffc068c8 <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; ffc06808: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc0680c: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED ffc06810: 91 3f 00 dc stw r9,220(r31) <== NOT EXECUTED ffc06814: 91 5f 00 e0 stw r10,224(r31) <== NOT EXECUTED break; ffc06818: 48 00 00 b0 b ffc068c8 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { ffc0681c: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06820: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06824: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED ffc06828: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc0682c: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc06830: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc06834: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06838: 41 9e 00 14 beq- cr7,ffc0684c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); ffc0683c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06840: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06844: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06848: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); ffc0684c: 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) { ffc06850: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc06854: 39 6b 28 88 addi r11,r11,10376 <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); ffc06858: 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) { ffc0685c: 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); ffc06860: 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) { ffc06864: 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 */ ffc06868: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc0686c: 91 7f 00 d0 stw r11,208(r31) <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06870: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06874: 41 9e 00 54 beq- cr7,ffc068c8 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); ffc06878: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0687c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06880: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06884: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc06888: 48 00 00 40 b ffc068c8 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; ffc0688c: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED ffc06890: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06894: 48 00 00 30 b ffc068c4 <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; ffc06898: 81 3f 00 60 lwz r9,96(r31) <== NOT EXECUTED ffc0689c: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED if ( rawnc < 0 ) ffc068a0: 7c 00 48 51 subf. r0,r0,r9 <== NOT EXECUTED ffc068a4: 40 a0 00 0c bge+ ffc068b0 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; ffc068a8: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc068ac: 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; ffc068b0: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED ffc068b4: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED ffc068b8: 81 3e 00 08 lwz r9,8(r30) <== NOT EXECUTED ffc068bc: 7d 6b 50 50 subf r11,r11,r10 <== NOT EXECUTED ffc068c0: 7c 0b 02 14 add r0,r11,r0 <== NOT EXECUTED ffc068c4: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); ffc068c8: 80 7f 00 18 lwz r3,24(r31) ffc068cc: 48 00 14 39 bl ffc07d04 <== ALWAYS TAKEN args->ioctl_return = sc; return sc; } ffc068d0: 80 01 00 24 lwz r0,36(r1) ffc068d4: 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; ffc068d8: 93 be 00 0c stw r29,12(r30) return sc; } ffc068dc: 7c 08 03 a6 mtlr r0 ffc068e0: 83 61 00 0c lwz r27,12(r1) ffc068e4: 83 81 00 10 lwz r28,16(r1) ffc068e8: 83 a1 00 14 lwz r29,20(r1) ffc068ec: 83 c1 00 18 lwz r30,24(r1) ffc068f0: 83 e1 00 1c lwz r31,28(r1) ffc068f4: 38 21 00 20 addi r1,r1,32 ffc068f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06dc0 : int32_t baud ) { int termios_baud; switch (baud) { ffc06dc0: 2f 83 04 b0 cmpwi cr7,r3,1200 case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; ffc06dc4: 38 00 00 09 li r0,9 int32_t baud ) { int termios_baud; switch (baud) { ffc06dc8: 41 9e 01 30 beq- cr7,ffc06ef8 ffc06dcc: 41 9d 00 7c bgt- cr7,ffc06e48 ffc06dd0: 2f 83 00 86 cmpwi cr7,r3,134 case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; ffc06dd4: 38 00 00 04 li r0,4 int32_t baud ) { int termios_baud; switch (baud) { ffc06dd8: 41 9e 01 20 beq- cr7,ffc06ef8 ffc06ddc: 41 9d 00 38 bgt- cr7,ffc06e14 ffc06de0: 2f 83 00 32 cmpwi cr7,r3,50 ffc06de4: 38 00 00 01 li r0,1 ffc06de8: 41 9e 01 10 beq- cr7,ffc06ef8 ffc06dec: 41 9d 00 10 bgt- cr7,ffc06dfc ffc06df0: 2f 83 00 00 cmpwi cr7,r3,0 ffc06df4: 38 00 00 00 li r0,0 ffc06df8: 48 00 00 f8 b ffc06ef0 <== ALWAYS TAKEN ffc06dfc: 2f 83 00 4b cmpwi cr7,r3,75 ffc06e00: 38 00 00 02 li r0,2 ffc06e04: 41 9e 00 f4 beq- cr7,ffc06ef8 ffc06e08: 2f 83 00 6e cmpwi cr7,r3,110 case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; ffc06e0c: 38 00 00 03 li r0,3 ffc06e10: 48 00 00 e0 b ffc06ef0 <== ALWAYS TAKEN int32_t baud ) { int termios_baud; switch (baud) { ffc06e14: 2f 83 00 c8 cmpwi cr7,r3,200 case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; ffc06e18: 38 00 00 06 li r0,6 int32_t baud ) { int termios_baud; switch (baud) { ffc06e1c: 41 9e 00 dc beq- cr7,ffc06ef8 ffc06e20: 41 9d 00 10 bgt- cr7,ffc06e30 ffc06e24: 2f 83 00 96 cmpwi cr7,r3,150 case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; ffc06e28: 38 00 00 05 li r0,5 ffc06e2c: 48 00 00 c4 b ffc06ef0 <== ALWAYS TAKEN int32_t baud ) { int termios_baud; switch (baud) { ffc06e30: 2f 83 01 2c cmpwi cr7,r3,300 case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; ffc06e34: 38 00 00 07 li r0,7 int32_t baud ) { int termios_baud; switch (baud) { ffc06e38: 41 9e 00 c0 beq- cr7,ffc06ef8 ffc06e3c: 2f 83 02 58 cmpwi cr7,r3,600 case 75: termios_baud = B75; break; case 110: termios_baud = B110; break; case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; ffc06e40: 38 00 00 08 li r0,8 ffc06e44: 48 00 00 ac b ffc06ef0 <== ALWAYS TAKEN int32_t baud ) { int termios_baud; switch (baud) { ffc06e48: 2f 83 4b 00 cmpwi cr7,r3,19200 case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; ffc06e4c: 38 00 00 0e li r0,14 int32_t baud ) { int termios_baud; switch (baud) { ffc06e50: 41 9e 00 a8 beq- cr7,ffc06ef8 ffc06e54: 41 9d 00 38 bgt- cr7,ffc06e8c ffc06e58: 2f 83 09 60 cmpwi cr7,r3,2400 case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; ffc06e5c: 38 00 00 0b li r0,11 int32_t baud ) { int termios_baud; switch (baud) { ffc06e60: 41 9e 00 98 beq- cr7,ffc06ef8 ffc06e64: 41 9d 00 10 bgt- cr7,ffc06e74 ffc06e68: 2f 83 07 08 cmpwi cr7,r3,1800 case 134: termios_baud = B134; break; case 150: termios_baud = B150; break; case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; ffc06e6c: 38 00 00 0a li r0,10 ffc06e70: 48 00 00 80 b ffc06ef0 <== ALWAYS TAKEN int32_t baud ) { int termios_baud; switch (baud) { ffc06e74: 2f 83 12 c0 cmpwi cr7,r3,4800 case 200: termios_baud = B200; break; case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; ffc06e78: 38 00 00 0c li r0,12 int32_t baud ) { int termios_baud; switch (baud) { ffc06e7c: 41 9e 00 7c beq- cr7,ffc06ef8 ffc06e80: 2f 83 25 80 cmpwi cr7,r3,9600 case 300: termios_baud = B300; break; case 600: termios_baud = B600; break; case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; ffc06e84: 38 00 00 0d li r0,13 ffc06e88: 48 00 00 68 b ffc06ef0 <== ALWAYS TAKEN int32_t baud ) { int termios_baud; switch (baud) { ffc06e8c: 3c 00 00 01 lis r0,1 ffc06e90: 60 00 c2 00 ori r0,r0,49664 ffc06e94: 7f 83 00 00 cmpw cr7,r3,r0 case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; ffc06e98: 38 00 10 02 li r0,4098 int32_t baud ) { int termios_baud; switch (baud) { ffc06e9c: 41 9e 00 5c beq- cr7,ffc06ef8 ffc06ea0: 41 9d 00 2c bgt- cr7,ffc06ecc ffc06ea4: 38 00 00 00 li r0,0 ffc06ea8: 60 00 96 00 ori r0,r0,38400 ffc06eac: 7f 83 00 00 cmpw cr7,r3,r0 case 1200: termios_baud = B1200; break; case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; ffc06eb0: 38 00 00 0f li r0,15 int32_t baud ) { int termios_baud; switch (baud) { ffc06eb4: 41 9e 00 44 beq- cr7,ffc06ef8 ffc06eb8: 38 00 00 00 li r0,0 ffc06ebc: 60 00 e1 00 ori r0,r0,57600 ffc06ec0: 7f 83 00 00 cmpw cr7,r3,r0 case 1800: termios_baud = B1800; break; case 2400: termios_baud = B2400; break; case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; ffc06ec4: 38 00 10 01 li r0,4097 ffc06ec8: 48 00 00 28 b ffc06ef0 <== ALWAYS TAKEN int32_t baud ) { int termios_baud; switch (baud) { ffc06ecc: 3c 00 00 03 lis r0,3 ffc06ed0: 60 00 84 00 ori r0,r0,33792 ffc06ed4: 7f 83 00 00 cmpw cr7,r3,r0 case 4800: termios_baud = B4800; break; case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; ffc06ed8: 38 00 10 03 li r0,4099 int32_t baud ) { int termios_baud; switch (baud) { ffc06edc: 41 9e 00 1c beq- cr7,ffc06ef8 ffc06ee0: 3c 00 00 07 lis r0,7 ffc06ee4: 60 00 08 00 ori r0,r0,2048 ffc06ee8: 7f 83 00 00 cmpw cr7,r3,r0 case 9600: termios_baud = B9600; break; case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; case 230400: termios_baud = B230400; break; ffc06eec: 38 00 10 04 li r0,4100 int32_t baud ) { int termios_baud; switch (baud) { ffc06ef0: 41 9e 00 08 beq- cr7,ffc06ef8 case 19200: termios_baud = B19200; break; case 38400: termios_baud = B38400; break; case 57600: termios_baud = B57600; break; case 115200: termios_baud = B115200; break; case 230400: termios_baud = B230400; break; case 460800: termios_baud = B460800; break; ffc06ef4: 38 00 ff ff li r0,-1 default: termios_baud = -1; break; } return termios_baud; } ffc06ef8: 7c 03 03 78 mr r3,r0 ffc06efc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06acc : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06acc: 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, ffc06ad0: 3d 20 00 00 lis r9,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06ad4: 7c 08 02 a6 mflr r0 ffc06ad8: 93 61 00 1c stw r27,28(r1) ffc06adc: 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, ffc06ae0: 80 69 27 58 lwz r3,10072(r9) <== ALWAYS TAKEN rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06ae4: 93 21 00 14 stw r25,20(r1) ffc06ae8: 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, ffc06aec: 38 a0 00 00 li r5,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06af0: 93 41 00 18 stw r26,24(r1) ffc06af4: 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, ffc06af8: 38 80 00 00 li r4,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc06afc: 93 01 00 10 stw r24,16(r1) ffc06b00: 7c d8 33 78 mr r24,r6 ffc06b04: 93 a1 00 24 stw r29,36(r1) ffc06b08: 90 01 00 34 stw r0,52(r1) <== ALWAYS TAKEN ffc06b0c: 92 e1 00 0c stw r23,12(r1) ffc06b10: 93 81 00 20 stw r28,32(r1) ffc06b14: 93 c1 00 28 stw r30,40(r1) ffc06b18: 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, ffc06b1c: 48 00 10 a5 bl ffc07bc0 <== ALWAYS TAKEN RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc06b20: 7c 7d 1b 79 mr. r29,r3 ffc06b24: 40 82 03 f8 bne- ffc06f1c <== NEVER TAKEN return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { ffc06b28: 3d 20 00 00 lis r9,0 ffc06b2c: 83 c9 27 60 lwz r30,10080(r9) ffc06b30: 48 00 00 20 b ffc06b50 <== ALWAYS TAKEN if ((tty->major == major) && (tty->minor == minor)) ffc06b34: 80 1e 00 0c lwz r0,12(r30) ffc06b38: 7f 80 d8 00 cmpw cr7,r0,r27 <== ALWAYS TAKEN ffc06b3c: 40 be 00 10 bne+ cr7,ffc06b4c ffc06b40: 80 1e 00 10 lwz r0,16(r30) ffc06b44: 7f 80 d0 00 cmpw cr7,r0,r26 ffc06b48: 41 9e 03 44 beq- cr7,ffc06e8c <== 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) { ffc06b4c: 83 de 00 00 lwz r30,0(r30) ffc06b50: 2f 9e 00 00 cmpwi cr7,r30,0 <== ALWAYS TAKEN ffc06b54: 40 9e ff e0 bne+ cr7,ffc06b34 ffc06b58: 48 00 03 fc b ffc06f54 <== ALWAYS TAKEN return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; ffc06b5c: 3f 80 00 00 lis r28,0 ffc06b60: 3a fc 21 68 addi r23,r28,8552 ffc06b64: 80 17 00 04 lwz r0,4(r23) <== ALWAYS TAKEN ffc06b68: 90 1e 00 64 stw r0,100(r30) tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); ffc06b6c: 80 7e 00 64 lwz r3,100(r30) ffc06b70: 4b ff d8 4d bl ffc043bc <== ALWAYS TAKEN if (tty->rawInBuf.theBuf == NULL) { ffc06b74: 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); ffc06b78: 90 7e 00 58 stw r3,88(r30) if (tty->rawInBuf.theBuf == NULL) { ffc06b7c: 40 be 00 1c bne+ cr7,ffc06b98 <== ALWAYS TAKEN free(tty); ffc06b80: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06b84: 4b ff d4 d5 bl ffc04058 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); ffc06b88: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06b8c: 80 69 27 58 lwz r3,10072(r9) <== NOT EXECUTED ffc06b90: 3b a0 00 1a li r29,26 <== NOT EXECUTED ffc06b94: 48 00 03 84 b ffc06f18 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; ffc06b98: 80 17 00 08 lwz r0,8(r23) <== ALWAYS TAKEN ffc06b9c: 90 1e 00 88 stw r0,136(r30) tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); ffc06ba0: 80 7e 00 88 lwz r3,136(r30) ffc06ba4: 4b ff d8 19 bl ffc043bc <== ALWAYS TAKEN if (tty->rawOutBuf.theBuf == NULL) { ffc06ba8: 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); ffc06bac: 90 7e 00 7c stw r3,124(r30) if (tty->rawOutBuf.theBuf == NULL) { ffc06bb0: 40 be 00 10 bne+ cr7,ffc06bc0 <== ALWAYS TAKEN free((void *)(tty->rawInBuf.theBuf)); ffc06bb4: 80 7e 00 58 lwz r3,88(r30) <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); ffc06bb8: 3b a0 00 1a li r29,26 <== NOT EXECUTED ffc06bbc: 48 00 00 28 b ffc06be4 <== NOT EXECUTED return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); ffc06bc0: 80 7c 21 68 lwz r3,8552(r28) ffc06bc4: 4b ff d7 f9 bl ffc043bc <== ALWAYS TAKEN if (tty->cbuf == NULL) { ffc06bc8: 2f 83 00 00 cmpwi cr7,r3,0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); ffc06bcc: 90 7e 00 1c stw r3,28(r30) if (tty->cbuf == NULL) { ffc06bd0: 40 be 00 24 bne+ cr7,ffc06bf4 <== ALWAYS TAKEN free((void *)(tty->rawOutBuf.theBuf)); ffc06bd4: 80 7e 00 7c lwz r3,124(r30) <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); ffc06bd8: 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)); ffc06bdc: 4b ff d4 7d bl ffc04058 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); ffc06be0: 80 7e 00 58 lwz r3,88(r30) <== NOT EXECUTED ffc06be4: 4b ff d4 75 bl ffc04058 <== NOT EXECUTED free(tty); ffc06be8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06bec: 4b ff d4 6d bl ffc04058 <== NOT EXECUTED ffc06bf0: 48 00 03 20 b ffc06f10 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc06bf4: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc06bf8: 81 29 27 60 lwz r9,10080(r9) return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; ffc06bfc: 38 00 00 00 li r0,0 <== ALWAYS TAKEN /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; ffc06c00: 90 1e 00 04 stw r0,4(r30) if (rtems_termios_ttyHead != NULL) ffc06c04: 2f 89 00 00 cmpwi cr7,r9,0 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; ffc06c08: 90 1e 00 d4 stw r0,212(r30) tty->tty_snd.sw_arg = NULL; ffc06c0c: 90 1e 00 d8 stw r0,216(r30) tty->tty_rcv.sw_pfn = NULL; ffc06c10: 90 1e 00 dc stw r0,220(r30) tty->tty_rcv.sw_arg = NULL; ffc06c14: 90 1e 00 e0 stw r0,224(r30) <== ALWAYS TAKEN tty->tty_rcvwakeup = 0; ffc06c18: 90 1e 00 e4 stw r0,228(r30) <== ALWAYS TAKEN /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc06c1c: 91 3e 00 00 stw r9,0(r30) tty->back = NULL; if (rtems_termios_ttyHead != NULL) ffc06c20: 41 9e 00 08 beq- cr7,ffc06c28 rtems_termios_ttyHead->back = tty; ffc06c24: 93 c9 00 04 stw r30,4(r9) rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) ffc06c28: 3d 20 00 00 lis r9,0 ffc06c2c: 80 09 27 5c lwz r0,10076(r9) */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; ffc06c30: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc06c34: 93 eb 27 60 stw r31,10080(r11) if (rtems_termios_ttyTail == NULL) ffc06c38: 2f 80 00 00 cmpwi cr7,r0,0 ffc06c3c: 40 be 00 08 bne+ cr7,ffc06c44 rtems_termios_ttyTail = tty; ffc06c40: 93 e9 27 5c stw r31,10076(r9) tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06c44: 3f 80 00 00 lis r28,0 ffc06c48: 3b 9c 21 68 addi r28,r28,8552 ffc06c4c: 88 7c 00 0c lbz r3,12(r28) ffc06c50: 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; ffc06c54: 93 5f 00 10 stw r26,16(r31) tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06c58: 38 a0 00 54 li r5,84 ffc06c5c: 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; ffc06c60: 93 7f 00 0c stw r27,12(r31) /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc06c64: 60 63 69 00 ori r3,r3,26880 ffc06c68: 38 c0 00 00 li r6,0 ffc06c6c: 38 ff 00 14 addi r7,r31,20 ffc06c70: 48 00 0c 81 bl ffc078f0 <== ALWAYS TAKEN 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) ffc06c74: 2f 83 00 00 cmpwi cr7,r3,0 ffc06c78: 40 9e 02 94 bne- cr7,ffc06f0c <== NEVER TAKEN rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( ffc06c7c: 88 7c 00 0c lbz r3,12(r28) ffc06c80: 38 80 00 01 li r4,1 ffc06c84: 38 a0 00 54 li r5,84 ffc06c88: 64 63 54 52 oris r3,r3,21586 ffc06c8c: 60 63 6f 00 ori r3,r3,28416 ffc06c90: 38 c0 00 00 li r6,0 ffc06c94: 38 ff 00 18 addi r7,r31,24 ffc06c98: 48 00 0c 59 bl ffc078f0 <== ALWAYS TAKEN 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) ffc06c9c: 2f 83 00 00 cmpwi cr7,r3,0 ffc06ca0: 40 9e 02 6c bne- cr7,ffc06f0c <== NEVER TAKEN rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( ffc06ca4: 88 7c 00 0c lbz r3,12(r28) ffc06ca8: 38 80 00 00 li r4,0 ffc06cac: 38 a0 00 20 li r5,32 ffc06cb0: 64 63 54 52 oris r3,r3,21586 ffc06cb4: 60 63 78 00 ori r3,r3,30720 ffc06cb8: 38 c0 00 00 li r6,0 ffc06cbc: 38 ff 00 8c addi r7,r31,140 <== ALWAYS TAKEN ffc06cc0: 48 00 0c 31 bl ffc078f0 <== ALWAYS TAKEN rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) ffc06cc4: 7c 60 1b 79 mr. r0,r3 ffc06cc8: 40 82 02 44 bne- ffc06f0c <== NEVER TAKEN tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; ffc06ccc: 81 18 00 00 lwz r8,0(r24) ffc06cd0: 81 58 00 04 lwz r10,4(r24) <== ALWAYS TAKEN ffc06cd4: 81 78 00 08 lwz r11,8(r24) <== ALWAYS TAKEN ffc06cd8: 81 38 00 0c lwz r9,12(r24) ffc06cdc: 91 1f 00 98 stw r8,152(r31) ffc06ce0: 91 5f 00 9c stw r10,156(r31) ffc06ce4: 91 7f 00 a0 stw r11,160(r31) ffc06ce8: 91 3f 00 a4 stw r9,164(r31) ffc06cec: 81 38 00 1c lwz r9,28(r24) ffc06cf0: 81 18 00 10 lwz r8,16(r24) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc06cf4: 2f 89 00 02 cmpwi cr7,r9,2 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; ffc06cf8: 81 58 00 14 lwz r10,20(r24) ffc06cfc: 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; ffc06d00: 90 1f 00 94 stw r0,148(r31) <== ALWAYS TAKEN /* * Set callbacks */ tty->device = *callbacks; ffc06d04: 91 1f 00 a8 stw r8,168(r31) ffc06d08: 91 5f 00 ac stw r10,172(r31) ffc06d0c: 91 7f 00 b0 stw r11,176(r31) ffc06d10: 91 3f 00 b4 stw r9,180(r31) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc06d14: 40 be 00 5c bne+ cr7,ffc06d70 <== ALWAYS TAKEN sc = rtems_task_create ( ffc06d18: 88 7c 00 0c lbz r3,12(r28) <== NOT EXECUTED ffc06d1c: 38 80 00 0a li r4,10 <== NOT EXECUTED ffc06d20: 38 a0 04 00 li r5,1024 <== NOT EXECUTED ffc06d24: 64 63 54 78 oris r3,r3,21624 <== NOT EXECUTED ffc06d28: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED ffc06d2c: 38 c0 05 00 li r6,1280 <== NOT EXECUTED ffc06d30: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc06d34: 39 1f 00 c8 addi r8,r31,200 <== NOT EXECUTED ffc06d38: 48 00 10 95 bl ffc07dcc <== 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) ffc06d3c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06d40: 40 9e 01 cc bne- cr7,ffc06f0c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( ffc06d44: 88 7c 00 0c lbz r3,12(r28) <== NOT EXECUTED ffc06d48: 38 80 00 09 li r4,9 <== NOT EXECUTED ffc06d4c: 38 a0 04 00 li r5,1024 <== NOT EXECUTED ffc06d50: 64 63 52 78 oris r3,r3,21112 <== NOT EXECUTED ffc06d54: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED ffc06d58: 38 c0 05 00 li r6,1280 <== NOT EXECUTED ffc06d5c: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc06d60: 39 1f 00 c4 addi r8,r31,196 <== NOT EXECUTED ffc06d64: 48 00 10 69 bl ffc07dcc <== 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) ffc06d68: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06d6c: 40 9e 01 a0 bne- cr7,ffc06f0c <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || ffc06d70: 80 1f 00 a0 lwz r0,160(r31) ffc06d74: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc06d78: 41 9e 00 10 beq- cr7,ffc06d88 <== NEVER TAKEN (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ ffc06d7c: 80 1f 00 b4 lwz r0,180(r31) ffc06d80: 2f 80 00 02 cmpwi cr7,r0,2 ffc06d84: 40 be 00 30 bne+ cr7,ffc06db4 <== ALWAYS TAKEN sc = rtems_semaphore_create ( ffc06d88: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06d8c: 88 69 21 74 lbz r3,8564(r9) <== NOT EXECUTED ffc06d90: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc06d94: 38 a0 00 24 li r5,36 <== NOT EXECUTED ffc06d98: 64 63 54 52 oris r3,r3,21586 <== NOT EXECUTED ffc06d9c: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc06da0: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc06da4: 38 ff 00 68 addi r7,r31,104 <== NOT EXECUTED ffc06da8: 48 00 0b 49 bl ffc078f0 <== 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) ffc06dac: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06db0: 40 9e 01 5c bne- cr7,ffc06f0c <== 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'; ffc06db4: 39 60 00 7f li r11,127 ffc06db8: 99 7f 00 43 stb r11,67(r31) tty->termios.c_cc[VKILL] = '\025'; ffc06dbc: 39 60 00 15 li r11,21 tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; ffc06dc0: 38 00 00 00 li r0,0 <== ALWAYS TAKEN 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'; ffc06dc4: 99 7f 00 44 stb r11,68(r31) <== ALWAYS TAKEN tty->termios.c_cc[VEOF] = '\004'; ffc06dc8: 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'; ffc06dcc: 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'; ffc06dd0: 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'; ffc06dd4: 39 60 00 11 li r11,17 <== ALWAYS TAKEN } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; ffc06dd8: 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'; ffc06ddc: 99 7f 00 49 stb r11,73(r31) tty->termios.c_cc[VSTOP] = '\023'; ffc06de0: 39 60 00 13 li r11,19 ffc06de4: 99 7f 00 4a stb r11,74(r31) tty->termios.c_cc[VSUSP] = '\032'; ffc06de8: 39 60 00 1a li r11,26 ffc06dec: 99 7f 00 4b stb r11,75(r31) tty->termios.c_cc[VREPRINT] = '\022'; ffc06df0: 39 60 00 12 li r11,18 <== ALWAYS TAKEN 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'; ffc06df4: 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'; ffc06df8: 99 7f 00 4d stb r11,77(r31) tty->termios.c_cc[VDISCARD] = '\017'; ffc06dfc: 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'; ffc06e00: 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; ffc06e04: 38 00 00 00 li r0,0 ffc06e08: 90 1f 00 b8 stw r0,184(r31) <== ALWAYS TAKEN 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'; ffc06e0c: 99 7f 00 4e stb r11,78(r31) tty->termios.c_cc[VWERASE] = '\027'; ffc06e10: 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'; ffc06e14: 99 3f 00 41 stb r9,65(r31) tty->termios.c_cc[VQUIT] = '\034'; ffc06e18: 39 20 00 1c li r9,28 <== ALWAYS TAKEN 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'; ffc06e1c: 99 7f 00 4f stb r11,79(r31) tty->termios.c_cc[VLNEXT] = '\026'; ffc06e20: 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'; ffc06e24: 99 3f 00 42 stb r9,66(r31) <== ALWAYS TAKEN tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc06e28: 3d 20 00 00 lis r9,0 ffc06e2c: 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; ffc06e30: 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'; ffc06e34: 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; ffc06e38: 54 00 f8 7e rlwinm r0,r0,31,1,31 tty->highwater = tty->rawInBuf.Size * 3/4; ffc06e3c: 81 5f 00 64 lwz r10,100(r31) <== ALWAYS TAKEN /* * Bump name characer */ if (c++ == 'z') ffc06e40: 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; ffc06e44: 1d 4a 00 03 mulli r10,r10,3 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; ffc06e48: 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; ffc06e4c: 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; ffc06e50: 90 1f 00 bc stw r0,188(r31) <== ALWAYS TAKEN tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc06e54: 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; ffc06e58: 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; ffc06e5c: 39 40 18 05 li r10,6149 <== ALWAYS TAKEN tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc06e60: 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; ffc06e64: 91 5f 00 34 stw r10,52(r31) tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; ffc06e68: 39 40 08 bd li r10,2237 <== ALWAYS TAKEN ffc06e6c: 91 5f 00 38 stw r10,56(r31) tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; ffc06e70: 39 40 00 00 li r10,0 <== ALWAYS TAKEN ffc06e74: 61 4a 82 3b ori r10,r10,33339 <== ALWAYS TAKEN ffc06e78: 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') ffc06e7c: 99 69 00 0c stb r11,12(r9) <== ALWAYS TAKEN ffc06e80: 40 be 00 0c bne+ cr7,ffc06e8c <== ALWAYS TAKEN c = 'a'; ffc06e84: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc06e88: 98 09 00 0c stb r0,12(r9) <== NOT EXECUTED } args->iop->data1 = tty; if (!tty->refcount++) { ffc06e8c: 81 3e 00 08 lwz r9,8(r30) <== ALWAYS TAKEN */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; ffc06e90: 81 79 00 00 lwz r11,0(r25) if (!tty->refcount++) { ffc06e94: 2f 89 00 00 cmpwi cr7,r9,0 ffc06e98: 39 29 00 01 addi r9,r9,1 <== ALWAYS TAKEN */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; ffc06e9c: 93 cb 00 38 stw r30,56(r11) if (!tty->refcount++) { ffc06ea0: 91 3e 00 08 stw r9,8(r30) ffc06ea4: 40 9e 00 6c bne- cr7,ffc06f10 if (tty->device.firstOpen) ffc06ea8: 80 1e 00 98 lwz r0,152(r30) ffc06eac: 2f 80 00 00 cmpwi cr7,r0,0 ffc06eb0: 41 9e 00 18 beq- cr7,ffc06ec8 <== ALWAYS TAKEN (*tty->device.firstOpen)(major, minor, arg); ffc06eb4: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc06eb8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06ebc: 7f 44 d3 78 mr r4,r26 <== NOT EXECUTED ffc06ec0: 7f 25 cb 78 mr r5,r25 <== NOT EXECUTED ffc06ec4: 4e 80 04 21 bctrl <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc06ec8: 80 1e 00 b4 lwz r0,180(r30) ffc06ecc: 2f 80 00 02 cmpwi cr7,r0,2 ffc06ed0: 40 be 00 40 bne+ cr7,ffc06f10 <== ALWAYS TAKEN sc = rtems_task_start(tty->rxTaskId, ffc06ed4: 80 7e 00 c4 lwz r3,196(r30) <== NOT EXECUTED ffc06ed8: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc06edc: 38 84 70 00 addi r4,r4,28672 <== NOT EXECUTED ffc06ee0: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc06ee4: 48 00 12 21 bl ffc08104 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) ffc06ee8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06eec: 40 9e 00 20 bne- cr7,ffc06f0c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, ffc06ef0: 80 7e 00 c8 lwz r3,200(r30) <== NOT EXECUTED ffc06ef4: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc06ef8: 38 84 6f 74 addi r4,r4,28532 <== NOT EXECUTED ffc06efc: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc06f00: 48 00 12 05 bl ffc08104 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) ffc06f04: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06f08: 41 be 00 08 beq+ cr7,ffc06f10 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc06f0c: 48 00 14 e1 bl ffc083ec <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); ffc06f10: 3d 20 00 00 lis r9,0 ffc06f14: 80 69 27 58 lwz r3,10072(r9) ffc06f18: 48 00 0d ed bl ffc07d04 <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc06f1c: 80 01 00 34 lwz r0,52(r1) ffc06f20: 7f a3 eb 78 mr r3,r29 ffc06f24: 82 e1 00 0c lwz r23,12(r1) ffc06f28: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc06f2c: 83 01 00 10 lwz r24,16(r1) ffc06f30: 83 21 00 14 lwz r25,20(r1) <== ALWAYS TAKEN ffc06f34: 83 41 00 18 lwz r26,24(r1) ffc06f38: 83 61 00 1c lwz r27,28(r1) ffc06f3c: 83 81 00 20 lwz r28,32(r1) ffc06f40: 83 a1 00 24 lwz r29,36(r1) ffc06f44: 83 c1 00 28 lwz r30,40(r1) <== ALWAYS TAKEN ffc06f48: 83 e1 00 2c lwz r31,44(r1) ffc06f4c: 38 21 00 30 addi r1,r1,48 ffc06f50: 4e 80 00 20 blr <== ALWAYS TAKEN static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); ffc06f54: 38 60 00 01 li r3,1 ffc06f58: 38 80 00 e8 li r4,232 <== ALWAYS TAKEN ffc06f5c: 48 00 5f 49 bl ffc0cea4 <== ALWAYS TAKEN if (tty == NULL) { ffc06f60: 2f 83 00 00 cmpwi cr7,r3,0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); ffc06f64: 7c 7e 1b 78 mr r30,r3 ffc06f68: 7c 7f 1b 78 mr r31,r3 if (tty == NULL) { ffc06f6c: 40 9e fb f0 bne+ cr7,ffc06b5c <== ALWAYS TAKEN ffc06f70: 4b ff fc 18 b ffc06b88 <== NOT EXECUTED ffc05764 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { ffc05764: 94 21 ff d8 stwu r1,-40(r1) <== ALWAYS TAKEN ffc05768: 7c 08 02 a6 mflr r0 ffc0576c: 90 01 00 2c stw r0,44(r1) ffc05770: 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) { ffc05774: 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) { ffc05778: 93 81 00 18 stw r28,24(r1) <== ALWAYS TAKEN const unsigned char *buf = _buf; ffc0577c: 7c 7c 1b 78 mr r28,r3 unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc05780: 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) { ffc05784: 93 a1 00 1c stw r29,28(r1) ffc05788: 7c 9d 23 78 mr r29,r4 <== ALWAYS TAKEN ffc0578c: 93 e1 00 24 stw r31,36(r1) <== ALWAYS TAKEN ffc05790: 7c bf 2b 78 mr r31,r5 ffc05794: 93 21 00 0c stw r25,12(r1) ffc05798: 93 41 00 10 stw r26,16(r1) ffc0579c: 93 61 00 14 stw r27,20(r1) ffc057a0: 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) { ffc057a4: 40 be 00 20 bne+ cr7,ffc057c4 <== NEVER TAKEN (*tty->device.write)(tty->minor, (void *)buf, len); ffc057a8: 7c 04 03 78 mr r4,r0 <== ALWAYS TAKEN ffc057ac: 80 1f 00 a4 lwz r0,164(r31) ffc057b0: 80 65 00 10 lwz r3,16(r5) <== ALWAYS TAKEN ffc057b4: 7f a5 eb 78 mr r5,r29 ffc057b8: 7c 09 03 a6 mtctr r0 <== ALWAYS TAKEN ffc057bc: 4e 80 04 21 bctrl <== ALWAYS TAKEN return; ffc057c0: 48 00 00 f0 b ffc058b0 <== ALWAYS TAKEN } newHead = tty->rawOutBuf.Head; ffc057c4: 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; ffc057c8: 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; ffc057cc: 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) { ffc057d0: 48 00 00 d8 b ffc058a8 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; ffc057d4: 80 1f 00 88 lwz r0,136(r31) <== NOT EXECUTED ffc057d8: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc057dc: 7d 3e 03 96 divwu r9,r30,r0 <== NOT EXECUTED ffc057e0: 7c 09 01 d6 mullw r0,r9,r0 <== NOT EXECUTED ffc057e4: 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 ( ffc057e8: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED ffc057ec: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc057f0: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED ffc057f4: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { ffc057f8: 48 00 00 38 b ffc05830 <== NOT EXECUTED tty->rawOutBufState = rob_wait; ffc057fc: 93 3f 00 94 stw r25,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05800: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, ffc05804: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED ffc05808: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0580c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc05810: 48 00 23 b1 bl ffc07bc0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc05814: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc05818: 41 be 00 08 beq+ cr7,ffc05820 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc0581c: 48 00 2b d1 bl ffc083ec <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05820: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED ffc05824: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05828: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED ffc0582c: 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) { ffc05830: 80 1f 00 84 lwz r0,132(r31) <== NOT EXECUTED ffc05834: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc05838: 41 9e ff c4 beq+ cr7,ffc057fc <== 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++; ffc0583c: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05840: 89 7c 00 00 lbz r11,0(r28) <== NOT EXECUTED ffc05844: 81 3f 00 7c lwz r9,124(r31) <== NOT EXECUTED ffc05848: 7d 69 01 ae stbx r11,r9,r0 <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { ffc0584c: 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; ffc05850: 93 df 00 80 stw r30,128(r31) <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { ffc05854: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05858: 40 9e 00 44 bne- cr7,ffc0589c <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { ffc0585c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05860: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED ffc05864: 40 a2 00 28 bne+ ffc0588c <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); ffc05868: 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, ffc0586c: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05870: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc05874: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05878: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc0587c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05880: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05884: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05888: 48 00 00 10 b ffc05898 <== 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; ffc0588c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05890: 60 00 00 20 ori r0,r0,32 <== NOT EXECUTED ffc05894: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; ffc05898: 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++; ffc0589c: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc058a0: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; ffc058a4: 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) { ffc058a8: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc058ac: 40 9e ff 28 bne+ cr7,ffc057d4 <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } ffc058b0: 80 01 00 2c lwz r0,44(r1) <== ALWAYS TAKEN ffc058b4: 83 21 00 0c lwz r25,12(r1) ffc058b8: 7c 08 03 a6 mtlr r0 ffc058bc: 83 41 00 10 lwz r26,16(r1) ffc058c0: 83 61 00 14 lwz r27,20(r1) <== ALWAYS TAKEN ffc058c4: 83 81 00 18 lwz r28,24(r1) <== ALWAYS TAKEN ffc058c8: 83 a1 00 1c lwz r29,28(r1) ffc058cc: 83 c1 00 20 lwz r30,32(r1) ffc058d0: 83 e1 00 24 lwz r31,36(r1) <== ALWAYS TAKEN ffc058d4: 38 21 00 28 addi r1,r1,40 ffc058d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06128 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06128: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc0612c: 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); ffc06130: 38 80 00 00 li r4,0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06134: 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); ffc06138: 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; ffc0613c: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06140: 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; ffc06144: 83 e9 00 38 lwz r31,56(r9) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06148: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED ffc0614c: 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); ffc06150: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06154: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED ffc06158: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED ffc0615c: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED ffc06160: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED ffc06164: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED ffc06168: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED ffc0616c: 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; ffc06170: 83 9e 00 14 lwz r28,20(r30) <== NOT EXECUTED char *buffer = args->buffer; ffc06174: 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); ffc06178: 48 00 1a 49 bl ffc07bc0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc0617c: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc06180: 40 82 03 30 bne- ffc064b0 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { ffc06184: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc06188: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0618c: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED ffc06190: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc06194: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc06198: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED ffc0619c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc061a0: 41 9e 00 1c beq- cr7,ffc061bc <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); ffc061a4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc061a8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc061ac: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc061b0: 4e 80 04 21 bctrl <== NOT EXECUTED ffc061b4: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc061b8: 48 00 02 e8 b ffc064a0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { ffc061bc: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc061c0: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc061c4: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc061c8: 40 be 02 ac bne+ cr7,ffc06474 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL ffc061cc: 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; ffc061d0: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED if (tty->device.pollRead != NULL ffc061d4: 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; ffc061d8: 93 bf 00 20 stw r29,32(r31) <== NOT EXECUTED tty->read_start_column = tty->column; ffc061dc: 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; ffc061e0: 93 bf 00 24 stw r29,36(r31) <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL ffc061e4: 41 9e 00 fc beq- cr7,ffc062e0 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) ffc061e8: 80 1f 00 b4 lwz r0,180(r31) <== NOT EXECUTED ffc061ec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc061f0: 40 be 00 f0 bne+ cr7,ffc062e0 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { ffc061f4: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc061f8: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc061fc: 41 82 00 40 beq- ffc0623c <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); ffc06200: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc06204: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06208: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0620c: 4e 80 04 21 bctrl <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc06210: 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) { ffc06214: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc06218: 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) { ffc0621c: 40 a0 00 10 bge+ ffc0622c <== NOT EXECUTED rtems_task_wake_after (1); ffc06220: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06224: 48 00 1f c5 bl ffc081e8 <== NOT EXECUTED ffc06228: 4b ff ff d8 b ffc06200 <== NOT EXECUTED } else { if (siproc (n, tty)) ffc0622c: 4b ff fc e1 bl ffc05f0c <== NOT EXECUTED ffc06230: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06234: 41 9e ff cc beq+ cr7,ffc06200 <== NOT EXECUTED ffc06238: 48 00 02 3c b ffc06474 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); ffc0623c: 48 00 12 41 bl ffc0747c <== NOT EXECUTED ffc06240: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); ffc06244: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc06248: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc0624c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06250: 4e 80 04 21 bctrl <== NOT EXECUTED if (n < 0) { ffc06254: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc06258: 40 80 00 54 bge- ffc062ac <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { ffc0625c: 89 3f 00 47 lbz r9,71(r31) <== NOT EXECUTED ffc06260: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc06264: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06268: 41 9e 00 1c beq- cr7,ffc06284 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { ffc0626c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06270: 41 9e 00 30 beq- cr7,ffc062a0 <== NOT EXECUTED ffc06274: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc06278: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0627c: 41 be 00 24 beq+ cr7,ffc062a0 <== NOT EXECUTED ffc06280: 48 00 00 0c b ffc0628c <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) ffc06284: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06288: 41 9e 01 ec beq- cr7,ffc06474 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); ffc0628c: 48 00 11 f1 bl ffc0747c <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { ffc06290: 80 1f 00 54 lwz r0,84(r31) <== NOT EXECUTED ffc06294: 7c 7a 18 50 subf r3,r26,r3 <== NOT EXECUTED ffc06298: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc0629c: 41 9d 01 d8 bgt- cr7,ffc06474 <== NOT EXECUTED break; } } rtems_task_wake_after (1); ffc062a0: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc062a4: 48 00 1f 45 bl ffc081e8 <== NOT EXECUTED ffc062a8: 4b ff ff 9c b ffc06244 <== NOT EXECUTED } else { siproc (n, tty); ffc062ac: 54 63 06 3e clrlwi r3,r3,24 <== NOT EXECUTED ffc062b0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc062b4: 4b ff fc 59 bl ffc05f0c <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc062b8: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc062bc: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc062c0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc062c4: 40 9c 01 b0 bge- cr7,ffc06474 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) ffc062c8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc062cc: 41 be ff 78 beq- cr7,ffc06244 <== NOT EXECUTED ffc062d0: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc062d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc062d8: 41 9e ff 6c beq+ cr7,ffc06244 <== NOT EXECUTED ffc062dc: 4b ff ff 60 b ffc0623c <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc062e0: 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; ffc062e4: 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) && ffc062e8: 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, ffc062ec: 3b 1f 00 49 addi r24,r31,73 <== NOT EXECUTED ffc062f0: 3b 20 00 01 li r25,1 <== NOT EXECUTED ffc062f4: 48 00 01 1c b ffc06410 <== 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; ffc062f8: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc062fc: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED ffc06300: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; ffc06304: 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; ffc06308: 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) ffc0630c: 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; ffc06310: 7c 00 59 d6 mullw r0,r0,r11 <== NOT EXECUTED ffc06314: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; ffc06318: 7f 48 00 ae lbzx r26,r8,r0 <== NOT EXECUTED tty->rawInBuf.Head = newHead; ffc0631c: 90 1f 00 5c stw r0,92(r31) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) ffc06320: 81 7f 00 60 lwz r11,96(r31) <== NOT EXECUTED ffc06324: 81 1f 00 64 lwz r8,100(r31) <== NOT EXECUTED ffc06328: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc0632c: 7d 68 5a 14 add r11,r8,r11 <== NOT EXECUTED ffc06330: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED ffc06334: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED ffc06338: 7d 2b 49 d6 mullw r9,r11,r9 <== NOT EXECUTED ffc0633c: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED ffc06340: 7f 80 50 40 cmplw cr7,r0,r10 <== NOT EXECUTED ffc06344: 40 9c 00 84 bge- cr7,ffc063c8 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; ffc06348: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0634c: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc06350: 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)) ffc06354: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06358: 70 00 02 02 andi. r0,r0,514 <== NOT EXECUTED ffc0635c: 2f 80 02 02 cmpwi cr7,r0,514 <== NOT EXECUTED ffc06360: 40 be 00 38 bne+ cr7,ffc06398 <== NOT EXECUTED ffc06364: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED ffc06368: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0636c: 41 9e 00 10 beq- cr7,ffc0637c <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { ffc06370: 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)) ffc06374: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc06378: 41 82 00 20 beq- ffc06398 <== 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, ffc0637c: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc06380: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc06384: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06388: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc0638c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06390: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06394: 48 00 00 34 b ffc063c8 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { ffc06398: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0639c: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc063a0: 41 82 00 28 beq- ffc063c8 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc063a4: 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; ffc063a8: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc063ac: 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; ffc063b0: 55 29 07 b8 rlwinm r9,r9,0,30,28 <== NOT EXECUTED ffc063b4: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc063b8: 41 9e 00 10 beq- cr7,ffc063c8 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); ffc063bc: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc063c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc063c4: 4e 80 04 21 bctrl <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { ffc063c8: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc063cc: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc063d0: 41 82 00 1c beq- ffc063ec <== NOT EXECUTED if (siproc (c, tty)) ffc063d4: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc063d8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc063dc: 4b ff fb 31 bl ffc05f0c <== NOT EXECUTED ffc063e0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc063e4: 40 9e 00 24 bne- cr7,ffc06408 <== NOT EXECUTED ffc063e8: 48 00 00 24 b ffc0640c <== NOT EXECUTED wait = 0; } else { siproc (c, tty); ffc063ec: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc063f0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc063f4: 4b ff fb 19 bl ffc05f0c <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc063f8: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc063fc: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06400: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06404: 41 9c 00 08 blt- cr7,ffc0640c <== NOT EXECUTED ffc06408: 3b 20 00 00 li r25,0 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; ffc0640c: 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) && ffc06410: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc06414: 80 1f 00 60 lwz r0,96(r31) <== NOT EXECUTED ffc06418: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0641c: 41 9e 00 18 beq- cr7,ffc06434 <== NOT EXECUTED ffc06420: 81 77 00 00 lwz r11,0(r23) <== NOT EXECUTED ffc06424: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06428: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc0642c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06430: 41 9c fe c8 blt+ cr7,ffc062f8 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { ffc06434: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED ffc06438: 41 be 00 3c beq+ cr7,ffc06474 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, ffc0643c: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED ffc06440: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc06444: 80 9f 00 6c lwz r4,108(r31) <== NOT EXECUTED ffc06448: 48 00 17 79 bl ffc07bc0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) ffc0644c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06450: 41 9e ff c0 beq+ cr7,ffc06410 <== NOT EXECUTED ffc06454: 48 00 00 20 b ffc06474 <== 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++]; ffc06458: 81 5f 00 1c lwz r10,28(r31) <== NOT EXECUTED count--; ffc0645c: 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++]; ffc06460: 7c 0a 48 ae lbzx r0,r10,r9 <== NOT EXECUTED ffc06464: 98 1b 00 00 stb r0,0(r27) <== NOT EXECUTED ffc06468: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED ffc0646c: 91 7f 00 24 stw r11,36(r31) <== NOT EXECUTED ffc06470: 48 00 00 0c b ffc0647c <== NOT EXECUTED ffc06474: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED ffc06478: 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)) { ffc0647c: 42 40 00 18 bdz- ffc06494 <== NOT EXECUTED ffc06480: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc06484: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; ffc06488: 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)) { ffc0648c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06490: 41 9c ff c8 blt+ cr7,ffc06458 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; ffc06494: 80 1e 00 14 lwz r0,20(r30) <== NOT EXECUTED ffc06498: 7f 9c 00 50 subf r28,r28,r0 <== NOT EXECUTED ffc0649c: 93 9e 00 1c stw r28,28(r30) <== NOT EXECUTED tty->tty_rcvwakeup = 0; ffc064a0: 38 00 00 00 li r0,0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); ffc064a4: 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; ffc064a8: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED rtems_semaphore_release (tty->isem); ffc064ac: 48 00 18 59 bl ffc07d04 <== NOT EXECUTED return sc; } ffc064b0: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc064b4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc064b8: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc064bc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc064c0: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc064c4: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc064c8: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc064cc: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc064d0: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc064d4: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc064d8: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc064dc: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc064e0: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc064e4: 4e 80 00 20 blr <== NOT EXECUTED ffc0514c : * 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) { ffc0514c: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc05150: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05154: 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)) ffc05158: 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) { ffc0515c: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc05160: 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)) ffc05164: 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) { ffc05168: 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)) ffc0516c: 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) { ffc05170: 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)) ffc05174: 40 be 00 48 bne+ cr7,ffc051bc <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, ffc05178: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED ffc0517c: 38 9f 00 4a addi r4,r31,74 <== NOT EXECUTED ffc05180: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05184: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED ffc05188: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0518c: 4e 80 04 21 bctrl <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05190: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc05194: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc05198: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc0519c: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc051a0: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc051a4: 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--; ffc051a8: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc051ac: 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--; ffc051b0: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc051b4: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED rtems_interrupt_enable(level); ffc051b8: 48 00 00 54 b ffc0520c <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) ffc051bc: 80 03 00 b8 lwz r0,184(r3) <== NOT EXECUTED ffc051c0: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED ffc051c4: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc051c8: 40 be 00 50 bne+ cr7,ffc05218 <== 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, ffc051cc: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED ffc051d0: 38 9f 00 49 addi r4,r31,73 <== NOT EXECUTED ffc051d4: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc051d8: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED ffc051dc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc051e0: 4e 80 04 21 bctrl <== NOT EXECUTED ffc051e4: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc051e8: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc051ec: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc051f0: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc051f4: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc051f8: 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--; ffc051fc: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc05200: 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--; ffc05204: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc05208: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0520c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc05210: 3b c0 00 01 li r30,1 <== NOT EXECUTED ffc05214: 48 00 01 4c b ffc05360 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { ffc05218: 81 23 00 80 lwz r9,128(r3) <== NOT EXECUTED ffc0521c: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED ffc05220: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc05224: 40 be 00 20 bne+ cr7,ffc05244 <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { ffc05228: 80 03 00 94 lwz r0,148(r3) <== NOT EXECUTED ffc0522c: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc05230: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc05234: 40 be 01 2c bne+ cr7,ffc05360 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); ffc05238: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED ffc0523c: 48 00 2a c9 bl ffc07d04 <== NOT EXECUTED ffc05240: 48 00 01 20 b ffc05360 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05244: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc05248: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc0524c: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc05250: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; ffc05254: 39 20 00 00 li r9,0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; ffc05258: 83 a3 00 90 lwz r29,144(r3) <== NOT EXECUTED tty->t_dqlen = 0; ffc0525c: 91 23 00 90 stw r9,144(r3) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05260: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; ffc05264: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED ffc05268: 81 23 00 88 lwz r9,136(r3) <== NOT EXECUTED ffc0526c: 7c 1d 02 14 add r0,r29,r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { ffc05270: 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; ffc05274: 7f a0 4b 96 divwu r29,r0,r9 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { ffc05278: 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; ffc0527c: 7f bd 49 d6 mullw r29,r29,r9 <== NOT EXECUTED ffc05280: 7f bd 00 50 subf r29,r29,r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; ffc05284: 93 a3 00 84 stw r29,132(r3) <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { ffc05288: 40 be 00 0c bne+ cr7,ffc05294 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); ffc0528c: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED ffc05290: 48 00 2a 75 bl ffc07d04 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { ffc05294: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05298: 7f 9d 00 00 cmpw cr7,r29,r0 <== NOT EXECUTED ffc0529c: 40 be 00 30 bne+ cr7,ffc052cc <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { ffc052a0: 80 1f 00 d4 lwz r0,212(r31) <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; ffc052a4: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc052a8: 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) { ffc052ac: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc052b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc052b4: 41 9e 00 a8 beq- cr7,ffc0535c <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); ffc052b8: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED ffc052bc: 80 9f 00 d8 lwz r4,216(r31) <== NOT EXECUTED ffc052c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc052c4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc052c8: 48 00 00 94 b ffc0535c <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) ffc052cc: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc052d0: 70 00 02 10 andi. r0,r0,528 <== NOT EXECUTED ffc052d4: 2f 80 02 10 cmpwi cr7,r0,528 <== NOT EXECUTED ffc052d8: 40 be 00 34 bne+ cr7,ffc0530c <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc052dc: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc052e0: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc052e4: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc052e8: 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; ffc052ec: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED ffc052f0: 61 29 00 20 ori r9,r9,32 <== NOT EXECUTED ffc052f4: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ ffc052f8: 39 20 00 01 li r9,1 <== NOT EXECUTED ffc052fc: 91 3f 00 94 stw r9,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05300: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc05304: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc05308: 48 00 00 54 b ffc0535c <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) ffc0530c: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05310: 7f 9d 00 40 cmplw cr7,r29,r0 <== NOT EXECUTED ffc05314: 40 9d 00 0c ble- cr7,ffc05320 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; ffc05318: 83 df 00 88 lwz r30,136(r31) <== NOT EXECUTED ffc0531c: 48 00 00 08 b ffc05324 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; ffc05320: 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)) { ffc05324: 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; ffc05328: 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)) { ffc0532c: 70 09 06 00 andi. r9,r0,1536 <== NOT EXECUTED ffc05330: 41 82 00 08 beq- ffc05338 <== NOT EXECUTED ffc05334: 3b c0 00 01 li r30,1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ ffc05338: 38 00 00 01 li r0,1 <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc0533c: 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*/ ffc05340: 90 1f 00 94 stw r0,148(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05344: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc05348: 7c 84 ea 14 add r4,r4,r29 <== NOT EXECUTED ffc0534c: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05350: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05354: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05358: 4e 80 04 21 bctrl <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ ffc0535c: 93 bf 00 84 stw r29,132(r31) <== NOT EXECUTED } return nToSend; } ffc05360: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc05364: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05368: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0536c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05370: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc05374: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc05378: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0537c: 4e 80 00 20 blr <== NOT EXECUTED ffc07000 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { ffc07000: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc07004: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc07008: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc0700c: 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 | ffc07010: 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) { ffc07014: 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 ( ffc07018: 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) { ffc0701c: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc07020: 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 | ffc07024: 7f a6 eb 78 mr r6,r29 <== NOT EXECUTED ffc07028: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc0702c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc07030: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc07034: 48 00 04 c9 bl ffc074fc <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { ffc07038: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0703c: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc07040: 41 a2 00 18 beq+ ffc07058 <== NOT EXECUTED tty->rxTaskId = 0; ffc07044: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc07048: 90 1f 00 c4 stw r0,196(r31) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); ffc0704c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc07050: 48 00 0e f5 bl ffc07f44 <== NOT EXECUTED ffc07054: 4b ff ff d0 b ffc07024 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); ffc07058: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc0705c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc07060: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc07064: 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 ( ffc07068: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { ffc0706c: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); ffc07070: 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 ( ffc07074: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc07078: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { ffc0707c: 41 be ff a8 beq- cr7,ffc07024 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; ffc07080: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( ffc07084: 4b ff e3 85 bl ffc05408 <== NOT EXECUTED ffc07088: 4b ff ff 9c b ffc07024 <== NOT EXECUTED ffc05124 : * 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) { ffc05124: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05128: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); ffc0512c: 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) { ffc05130: 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); ffc05134: 80 63 00 c4 lwz r3,196(r3) <== NOT EXECUTED ffc05138: 48 00 25 69 bl ffc076a0 <== NOT EXECUTED } ffc0513c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc05140: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc05144: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05148: 4e 80 00 20 blr <== NOT EXECUTED ffc08e84 : int rtems_termios_set_initial_baud( struct rtems_termios_tty *ttyp, int32_t baud ) { ffc08e84: 94 21 ff f0 stwu r1,-16(r1) ffc08e88: 7c 08 02 a6 mflr r0 ffc08e8c: 93 e1 00 0c stw r31,12(r1) ffc08e90: 7c 7f 1b 78 mr r31,r3 int cflags_baud; cflags_baud = rtems_termios_number_to_baud(baud); ffc08e94: 7c 83 23 78 mr r3,r4 int rtems_termios_set_initial_baud( struct rtems_termios_tty *ttyp, int32_t baud ) { ffc08e98: 90 01 00 14 stw r0,20(r1) int cflags_baud; cflags_baud = rtems_termios_number_to_baud(baud); ffc08e9c: 4b ff df 25 bl ffc06dc0 <== ALWAYS TAKEN if ( cflags_baud == -1 ) ffc08ea0: 2f 83 ff ff cmpwi cr7,r3,-1 ffc08ea4: 38 00 ff ff li r0,-1 ffc08ea8: 41 9e 00 1c beq- cr7,ffc08ec4 return -1; ttyp->termios.c_cflag = (ttyp->termios.c_cflag & ~CBAUD) | cflags_baud; ffc08eac: 80 1f 00 38 lwz r0,56(r31) ffc08eb0: 39 20 ef f0 li r9,-4112 ffc08eb4: 7d 20 00 38 and r0,r9,r0 ffc08eb8: 7c 63 03 78 or r3,r3,r0 ffc08ebc: 90 7f 00 38 stw r3,56(r31) ffc08ec0: 38 00 00 00 li r0,0 return 0; } ffc08ec4: 7c 03 03 78 mr r3,r0 ffc08ec8: 80 01 00 14 lwz r0,20(r1) ffc08ecc: 83 e1 00 0c lwz r31,12(r1) ffc08ed0: 38 21 00 10 addi r1,r1,16 ffc08ed4: 7c 08 03 a6 mtlr r0 ffc08ed8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06f74 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { ffc06f74: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc06f78: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc06f7c: 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) { ffc06f80: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc06f84: 3b bd 28 88 addi r29,r29,10376 <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { ffc06f88: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc06f8c: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | ffc06f90: 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) { ffc06f94: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc06f98: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | ffc06f9c: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc06fa0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc06fa4: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc06fa8: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc06fac: 48 00 05 51 bl ffc074fc <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { ffc06fb0: 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); ffc06fb4: 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) { ffc06fb8: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc06fbc: 41 a2 00 18 beq+ ffc06fd4 <== NOT EXECUTED tty->txTaskId = 0; ffc06fc0: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc06fc4: 90 1f 00 c8 stw r0,200(r31) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); ffc06fc8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc06fcc: 48 00 0f 79 bl ffc07f44 <== NOT EXECUTED ffc06fd0: 4b ff ff cc b ffc06f9c <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc06fd4: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED ffc06fd8: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc06fdc: 7d 3d 4a 14 add r9,r29,r9 <== NOT EXECUTED ffc06fe0: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc06fe4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06fe8: 41 9e 00 0c beq- cr7,ffc06ff4 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); ffc06fec: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06ff0: 4e 80 04 21 bctrl <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); ffc06ff4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06ff8: 4b ff e1 55 bl ffc0514c <== NOT EXECUTED ffc06ffc: 4b ff ff a0 b ffc06f9c <== NOT EXECUTED ffc05f90 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc05f90: 94 21 ff e0 stwu r1,-32(r1) ffc05f94: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN 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); ffc05f98: 38 80 00 00 li r4,0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc05f9c: 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); ffc05fa0: 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; ffc05fa4: 81 23 00 00 lwz r9,0(r3) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc05fa8: 93 e1 00 1c stw r31,28(r1) <== ALWAYS TAKEN rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc05fac: 83 e9 00 38 lwz r31,56(r9) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc05fb0: 93 c1 00 18 stw r30,24(r1) <== ALWAYS TAKEN ffc05fb4: 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); ffc05fb8: 80 7f 00 18 lwz r3,24(r31) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc05fbc: 93 a1 00 14 stw r29,20(r1) <== ALWAYS TAKEN ffc05fc0: 93 61 00 0c stw r27,12(r1) ffc05fc4: 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); ffc05fc8: 48 00 1b f9 bl ffc07bc0 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) ffc05fcc: 7c 7d 1b 79 mr. r29,r3 ffc05fd0: 40 82 00 94 bne- ffc06064 <== NEVER TAKEN return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { ffc05fd4: 80 1f 00 cc lwz r0,204(r31) ffc05fd8: 3d 20 00 00 lis r9,0 ffc05fdc: 39 29 28 88 addi r9,r9,10376 ffc05fe0: 54 00 28 34 rlwinm r0,r0,5,0,26 ffc05fe4: 7d 29 02 14 add r9,r9,r0 <== ALWAYS TAKEN ffc05fe8: 80 09 00 0c lwz r0,12(r9) ffc05fec: 2f 80 00 00 cmpwi cr7,r0,0 ffc05ff0: 41 9e 00 1c beq- cr7,ffc0600c <== ALWAYS TAKEN sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); ffc05ff4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc05ff8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05ffc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06000: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06004: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc06008: 48 00 00 54 b ffc0605c <== NOT EXECUTED rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { ffc0600c: 80 1f 00 34 lwz r0,52(r31) ffc06010: 80 9e 00 14 lwz r4,20(r30) ffc06014: 70 09 00 01 andi. r9,r0,1 ffc06018: 80 7e 00 10 lwz r3,16(r30) ffc0601c: 41 82 00 30 beq- ffc0604c <== NEVER TAKEN uint32_t count = args->count; ffc06020: 7c 9b 23 78 mr r27,r4 <== ALWAYS TAKEN char *buffer = args->buffer; ffc06024: 7c 7c 1b 78 mr r28,r3 while (count--) ffc06028: 48 00 00 10 b ffc06038 <== ALWAYS TAKEN oproc (*buffer++, tty); ffc0602c: 88 7c 00 00 lbz r3,0(r28) ffc06030: 3b 9c 00 01 addi r28,r28,1 ffc06034: 4b ff f8 a9 bl ffc058dc <== ALWAYS TAKEN return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) ffc06038: 2f 9b 00 00 cmpwi cr7,r27,0 oproc (*buffer++, tty); ffc0603c: 7f e4 fb 78 mr r4,r31 <== ALWAYS TAKEN ffc06040: 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--) ffc06044: 40 9e ff e8 bne+ cr7,ffc0602c ffc06048: 48 00 00 0c b ffc06054 <== ALWAYS TAKEN oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); ffc0604c: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc06050: 4b ff f7 15 bl ffc05764 <== NOT EXECUTED args->bytes_moved = args->count; ffc06054: 80 1e 00 14 lwz r0,20(r30) ffc06058: 90 1e 00 1c stw r0,28(r30) } rtems_semaphore_release (tty->osem); ffc0605c: 80 7f 00 18 lwz r3,24(r31) ffc06060: 48 00 1c a5 bl ffc07d04 <== ALWAYS TAKEN return sc; } ffc06064: 80 01 00 24 lwz r0,36(r1) ffc06068: 7f a3 eb 78 mr r3,r29 ffc0606c: 83 61 00 0c lwz r27,12(r1) ffc06070: 7c 08 03 a6 mtlr r0 ffc06074: 83 81 00 10 lwz r28,16(r1) ffc06078: 83 a1 00 14 lwz r29,20(r1) ffc0607c: 83 c1 00 18 lwz r30,24(r1) ffc06080: 83 e1 00 1c lwz r31,28(r1) ffc06084: 38 21 00 20 addi r1,r1,32 ffc06088: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18bd8 : */ rtems_status_code rtems_timer_cancel( rtems_id id ) { ffc18bd8: 94 21 ff e8 stwu r1,-24(r1) ffc18bdc: 7c 08 02 a6 mflr r0 ffc18be0: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) ffc18be4: 3c 60 00 00 lis r3,0 ffc18be8: 90 01 00 1c stw r0,28(r1) ffc18bec: 38 63 79 44 addi r3,r3,31044 ffc18bf0: 38 a1 00 08 addi r5,r1,8 ffc18bf4: 48 00 35 a5 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc18bf8: 81 21 00 08 lwz r9,8(r1) ffc18bfc: 38 00 00 04 li r0,4 ffc18c00: 2f 89 00 00 cmpwi cr7,r9,0 ffc18c04: 40 9e 00 20 bne- cr7,ffc18c24 case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) ffc18c08: 80 03 00 38 lwz r0,56(r3) ffc18c0c: 2f 80 00 04 cmpwi cr7,r0,4 ffc18c10: 41 9e 00 0c beq- cr7,ffc18c1c <== NEVER TAKEN (void) _Watchdog_Remove( &the_timer->Ticker ); ffc18c14: 38 63 00 10 addi r3,r3,16 ffc18c18: 48 00 5c 6d bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc18c1c: 48 00 41 45 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc18c20: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc18c24: 7c 03 03 78 mr r3,r0 ffc18c28: 80 01 00 1c lwz r0,28(r1) ffc18c2c: 38 21 00 18 addi r1,r1,24 ffc18c30: 7c 08 03 a6 mtlr r0 ffc18c34: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08650 : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { ffc08650: 94 21 ff e8 stwu r1,-24(r1) ffc08654: 7c 08 02 a6 mflr r0 ffc08658: 93 e1 00 14 stw r31,20(r1) Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) ffc0865c: 7c 7f 1b 79 mr. r31,r3 ffc08660: 38 60 00 03 li r3,3 rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { ffc08664: 93 c1 00 10 stw r30,16(r1) ffc08668: 7c 9e 23 78 mr r30,r4 ffc0866c: 90 01 00 1c stw r0,28(r1) ffc08670: 93 a1 00 0c stw r29,12(r1) Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) ffc08674: 41 82 00 80 beq- ffc086f4 return RTEMS_INVALID_NAME; if ( !id ) ffc08678: 2f 84 00 00 cmpwi cr7,r4,0 ffc0867c: 38 60 00 09 li r3,9 ffc08680: 41 9e 00 74 beq- cr7,ffc086f4 ffc08684: 3d 20 00 00 lis r9,0 ffc08688: 81 69 27 9c lwz r11,10140(r9) ffc0868c: 38 0b 00 01 addi r0,r11,1 ffc08690: 90 09 27 9c stw r0,10140(r9) * This function allocates a timer control block from * the inactive chain of free timer control blocks. */ RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Allocate( void ) { return (Timer_Control *) _Objects_Allocate( &_Timer_Information ); ffc08694: 3f a0 00 00 lis r29,0 ffc08698: 3b bd 34 c4 addi r29,r29,13508 ffc0869c: 7f a3 eb 78 mr r3,r29 ffc086a0: 48 00 11 75 bl ffc09814 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { ffc086a4: 2c 03 00 00 cmpwi r3,0 ffc086a8: 40 a2 00 10 bne+ ffc086b8 _Thread_Enable_dispatch(); ffc086ac: 48 00 22 25 bl ffc0a8d0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc086b0: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc086b4: 48 00 00 40 b ffc086f4 <== ALWAYS TAKEN ffc086b8: 81 23 00 08 lwz r9,8(r3) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc086bc: 38 00 00 00 li r0,0 ffc086c0: 81 5d 00 1c lwz r10,28(r29) ffc086c4: 55 2b 13 ba rlwinm r11,r9,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc086c8: 93 e3 00 0c stw r31,12(r3) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc086cc: 7c 6a 59 2e stwx r3,r10,r11 } the_timer->the_class = TIMER_DORMANT; ffc086d0: 39 60 00 04 li r11,4 the_watchdog->routine = routine; the_watchdog->id = id; ffc086d4: 90 03 00 30 stw r0,48(r3) ffc086d8: 91 63 00 38 stw r11,56(r3) the_watchdog->user_data = user_data; ffc086dc: 90 03 00 34 stw r0,52(r3) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc086e0: 90 03 00 18 stw r0,24(r3) the_watchdog->routine = routine; ffc086e4: 90 03 00 2c stw r0,44(r3) &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; ffc086e8: 91 3e 00 00 stw r9,0(r30) _Thread_Enable_dispatch(); ffc086ec: 48 00 21 e5 bl ffc0a8d0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc086f0: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc086f4: 80 01 00 1c lwz r0,28(r1) ffc086f8: 83 a1 00 0c lwz r29,12(r1) ffc086fc: 7c 08 03 a6 mtlr r0 ffc08700: 83 c1 00 10 lwz r30,16(r1) ffc08704: 83 e1 00 14 lwz r31,20(r1) ffc08708: 38 21 00 18 addi r1,r1,24 ffc0870c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18cf8 : */ rtems_status_code rtems_timer_delete( rtems_id id ) { ffc18cf8: 94 21 ff e0 stwu r1,-32(r1) ffc18cfc: 7c 08 02 a6 mflr r0 ffc18d00: 7c 64 1b 78 mr r4,r3 ffc18d04: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) ffc18d08: 3f e0 00 00 lis r31,0 ffc18d0c: 3b ff 79 44 addi r31,r31,31044 ffc18d10: 7f e3 fb 78 mr r3,r31 ffc18d14: 90 01 00 24 stw r0,36(r1) ffc18d18: 38 a1 00 08 addi r5,r1,8 ffc18d1c: 93 c1 00 18 stw r30,24(r1) ffc18d20: 48 00 34 79 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN ffc18d24: 7c 7e 1b 78 mr r30,r3 Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc18d28: 80 01 00 08 lwz r0,8(r1) ffc18d2c: 38 60 00 04 li r3,4 ffc18d30: 2f 80 00 00 cmpwi cr7,r0,0 ffc18d34: 40 9e 00 2c bne- cr7,ffc18d60 case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); ffc18d38: 7f c4 f3 78 mr r4,r30 ffc18d3c: 7f e3 fb 78 mr r3,r31 ffc18d40: 48 00 2f 11 bl ffc1bc50 <_Objects_Close> <== ALWAYS TAKEN (void) _Watchdog_Remove( &the_timer->Ticker ); ffc18d44: 38 7e 00 10 addi r3,r30,16 ffc18d48: 48 00 5b 3d bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); ffc18d4c: 7f e3 fb 78 mr r3,r31 ffc18d50: 7f c4 f3 78 mr r4,r30 ffc18d54: 48 00 32 3d bl ffc1bf90 <_Objects_Free> <== ALWAYS TAKEN _Timer_Free( the_timer ); _Thread_Enable_dispatch(); ffc18d58: 48 00 40 09 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc18d5c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc18d60: 80 01 00 24 lwz r0,36(r1) ffc18d64: 83 c1 00 18 lwz r30,24(r1) ffc18d68: 7c 08 03 a6 mtlr r0 ffc18d6c: 83 e1 00 1c lwz r31,28(r1) ffc18d70: 38 21 00 20 addi r1,r1,32 ffc18d74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08710 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc08710: 94 21 ff d0 stwu r1,-48(r1) ffc08714: 7c 08 02 a6 mflr r0 ffc08718: 93 a1 00 24 stw r29,36(r1) Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) ffc0871c: 7c 9d 23 79 mr. r29,r4 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc08720: 93 81 00 20 stw r28,32(r1) ffc08724: 7c dc 33 78 mr r28,r6 ffc08728: 93 c1 00 28 stw r30,40(r1) ffc0872c: 7c be 2b 78 mr r30,r5 ffc08730: 93 e1 00 2c stw r31,44(r1) ffc08734: 7c 7f 1b 78 mr r31,r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) ffc08738: 38 60 00 0a li r3,10 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc0873c: 90 01 00 34 stw r0,52(r1) ffc08740: 93 41 00 18 stw r26,24(r1) ffc08744: 93 61 00 1c stw r27,28(r1) Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) ffc08748: 41 82 00 9c beq- ffc087e4 return RTEMS_INVALID_NUMBER; if ( !routine ) ffc0874c: 2f 85 00 00 cmpwi cr7,r5,0 ffc08750: 38 60 00 09 li r3,9 ffc08754: 41 9e 00 90 beq- cr7,ffc087e4 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) ffc08758: 3c 60 00 00 lis r3,0 ffc0875c: 38 63 34 c4 addi r3,r3,13508 ffc08760: 7f e4 fb 78 mr r4,r31 ffc08764: 38 a1 00 08 addi r5,r1,8 ffc08768: 48 00 16 59 bl ffc09dc0 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc0876c: 80 01 00 08 lwz r0,8(r1) ffc08770: 7c 7b 1b 78 mr r27,r3 ffc08774: 2f 80 00 00 cmpwi cr7,r0,0 ffc08778: 38 60 00 04 li r3,4 ffc0877c: 40 9e 00 68 bne- cr7,ffc087e4 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc08780: 3b 5b 00 10 addi r26,r27,16 ffc08784: 7f 43 d3 78 mr r3,r26 ffc08788: 48 00 38 15 bl ffc0bf9c <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0878c: 7d 20 00 a6 mfmsr r9 ffc08790: 7c 10 42 a6 mfsprg r0,0 ffc08794: 7d 20 00 78 andc r0,r9,r0 ffc08798: 7c 00 01 24 mtmsr r0 /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { ffc0879c: 80 1b 00 18 lwz r0,24(r27) ffc087a0: 2f 80 00 00 cmpwi cr7,r0,0 ffc087a4: 41 be 00 0c beq+ cr7,ffc087b0 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc087a8: 7d 20 01 24 mtmsr r9 ffc087ac: 48 00 00 30 b ffc087dc <== ALWAYS TAKEN Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc087b0: 90 1b 00 18 stw r0,24(r27) the_watchdog->routine = routine; ffc087b4: 93 db 00 2c stw r30,44(r27) the_watchdog->id = id; ffc087b8: 93 fb 00 30 stw r31,48(r27) the_watchdog->user_data = user_data; ffc087bc: 93 9b 00 34 stw r28,52(r27) /* * OK. Now we now the timer was not rescheduled by an interrupt * so we can atomically initialize it as in use. */ the_timer->the_class = TIMER_INTERVAL; ffc087c0: 90 1b 00 38 stw r0,56(r27) ffc087c4: 7d 20 01 24 mtmsr r9 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc087c8: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc087cc: 93 bb 00 1c stw r29,28(r27) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc087d0: 38 63 2d 28 addi r3,r3,11560 ffc087d4: 7f 44 d3 78 mr r4,r26 ffc087d8: 48 00 36 6d bl ffc0be44 <_Watchdog_Insert> <== ALWAYS TAKEN _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); ffc087dc: 48 00 20 f5 bl ffc0a8d0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc087e0: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc087e4: 80 01 00 34 lwz r0,52(r1) <== ALWAYS TAKEN ffc087e8: 83 41 00 18 lwz r26,24(r1) ffc087ec: 7c 08 03 a6 mtlr r0 ffc087f0: 83 61 00 1c lwz r27,28(r1) ffc087f4: 83 81 00 20 lwz r28,32(r1) ffc087f8: 83 a1 00 24 lwz r29,36(r1) ffc087fc: 83 c1 00 28 lwz r30,40(r1) ffc08800: 83 e1 00 2c lwz r31,44(r1) <== ALWAYS TAKEN ffc08804: 38 21 00 30 addi r1,r1,48 <== ALWAYS TAKEN ffc08808: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18e74 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc18e74: 94 21 ff c8 stwu r1,-56(r1) ffc18e78: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc18e7c: 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 ) { ffc18e80: 90 01 00 3c stw r0,60(r1) Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc18e84: 88 09 28 70 lbz r0,10352(r9) rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc18e88: 93 61 00 24 stw r27,36(r1) ffc18e8c: 7c db 33 78 mr r27,r6 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc18e90: 2f 80 00 00 cmpwi cr7,r0,0 rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc18e94: 93 a1 00 2c stw r29,44(r1) ffc18e98: 7c 9d 23 78 mr r29,r4 ffc18e9c: 93 c1 00 30 stw r30,48(r1) ffc18ea0: 7c 7e 1b 78 mr r30,r3 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc18ea4: 38 60 00 0b li r3,11 rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc18ea8: 93 e1 00 34 stw r31,52(r1) ffc18eac: 7c bf 2b 78 mr r31,r5 ffc18eb0: 93 01 00 18 stw r24,24(r1) ffc18eb4: 93 21 00 1c stw r25,28(r1) ffc18eb8: 93 41 00 20 stw r26,32(r1) ffc18ebc: 93 81 00 28 stw r28,40(r1) Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc18ec0: 41 9e 00 b4 beq- cr7,ffc18f74 return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) ffc18ec4: 7c 83 23 78 mr r3,r4 ffc18ec8: 4b ff c9 69 bl ffc15830 <_TOD_Validate> <== ALWAYS TAKEN ffc18ecc: 2f 83 00 00 cmpwi cr7,r3,0 ffc18ed0: 41 9e 00 a0 beq- cr7,ffc18f70 return RTEMS_INVALID_CLOCK; if ( !routine ) ffc18ed4: 2f 9f 00 00 cmpwi cr7,r31,0 ffc18ed8: 38 60 00 09 li r3,9 ffc18edc: 41 9e 00 98 beq- cr7,ffc18f74 return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); ffc18ee0: 7f a3 eb 78 mr r3,r29 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc18ee4: 3f 80 00 00 lis r28,0 return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); ffc18ee8: 4b ff c8 bd bl ffc157a4 <_TOD_To_seconds> <== ALWAYS TAKEN if ( seconds <= _TOD_Seconds_since_epoch() ) ffc18eec: 80 1c 28 88 lwz r0,10376(r28) return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); ffc18ef0: 7c 7d 1b 78 mr r29,r3 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc18ef4: 7f 83 00 40 cmplw cr7,r3,r0 ffc18ef8: 40 9d 00 78 ble- cr7,ffc18f70 ffc18efc: 3c 60 00 00 lis r3,0 ffc18f00: 38 63 79 44 addi r3,r3,31044 ffc18f04: 7f c4 f3 78 mr r4,r30 ffc18f08: 38 a1 00 08 addi r5,r1,8 ffc18f0c: 48 00 32 8d bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc18f10: 83 01 00 08 lwz r24,8(r1) ffc18f14: 7c 7a 1b 78 mr r26,r3 ffc18f18: 2f 98 00 00 cmpwi cr7,r24,0 ffc18f1c: 38 60 00 04 li r3,4 ffc18f20: 40 9e 00 54 bne- cr7,ffc18f74 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc18f24: 3b 3a 00 10 addi r25,r26,16 ffc18f28: 7f 23 cb 78 mr r3,r25 ffc18f2c: 48 00 59 59 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc18f30: 93 da 00 30 stw r30,48(r26) the_timer->the_class = TIMER_TIME_OF_DAY; ffc18f34: 39 20 00 02 li r9,2 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc18f38: 80 1c 28 88 lwz r0,10376(r28) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc18f3c: 3c 60 00 00 lis r3,0 ffc18f40: 91 3a 00 38 stw r9,56(r26) ffc18f44: 38 63 71 5c addi r3,r3,29020 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc18f48: 7f a0 e8 50 subf r29,r0,r29 ffc18f4c: 93 ba 00 1c stw r29,28(r26) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc18f50: 7f 24 cb 78 mr r4,r25 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc18f54: 93 1a 00 18 stw r24,24(r26) the_watchdog->routine = routine; ffc18f58: 93 fa 00 2c stw r31,44(r26) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc18f5c: 93 7a 00 34 stw r27,52(r26) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc18f60: 48 00 57 cd bl ffc1e72c <_Watchdog_Insert> <== ALWAYS TAKEN _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); ffc18f64: 48 00 3d fd bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc18f68: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc18f6c: 48 00 00 08 b ffc18f74 <== ALWAYS TAKEN ffc18f70: 38 60 00 14 li r3,20 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc18f74: 80 01 00 3c lwz r0,60(r1) ffc18f78: 83 01 00 18 lwz r24,24(r1) ffc18f7c: 7c 08 03 a6 mtlr r0 ffc18f80: 83 21 00 1c lwz r25,28(r1) ffc18f84: 83 41 00 20 lwz r26,32(r1) ffc18f88: 83 61 00 24 lwz r27,36(r1) ffc18f8c: 83 81 00 28 lwz r28,40(r1) ffc18f90: 83 a1 00 2c lwz r29,44(r1) ffc18f94: 83 c1 00 30 lwz r30,48(r1) ffc18f98: 83 e1 00 34 lwz r31,52(r1) ffc18f9c: 38 21 00 38 addi r1,r1,56 ffc18fa0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18fa4 : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { ffc18fa4: 94 21 ff e0 stwu r1,-32(r1) ffc18fa8: 7c 08 02 a6 mflr r0 ffc18fac: 93 e1 00 1c stw r31,28(r1) Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) ffc18fb0: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { ffc18fb4: 7c 64 1b 78 mr r4,r3 ffc18fb8: 90 01 00 24 stw r0,36(r1) Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) ffc18fbc: 38 60 00 09 li r3,9 ffc18fc0: 41 82 00 50 beq- ffc19010 ffc18fc4: 3c 60 00 00 lis r3,0 ffc18fc8: 38 63 79 44 addi r3,r3,31044 ffc18fcc: 38 a1 00 08 addi r5,r1,8 ffc18fd0: 48 00 31 c9 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc18fd4: 80 01 00 08 lwz r0,8(r1) ffc18fd8: 7c 69 1b 78 mr r9,r3 ffc18fdc: 2f 80 00 00 cmpwi cr7,r0,0 ffc18fe0: 38 60 00 04 li r3,4 ffc18fe4: 40 9e 00 2c bne- cr7,ffc19010 case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; the_info->initial = the_timer->Ticker.initial; ffc18fe8: 80 09 00 1c lwz r0,28(r9) the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; ffc18fec: 81 69 00 38 lwz r11,56(r9) the_info->initial = the_timer->Ticker.initial; ffc18ff0: 90 1f 00 04 stw r0,4(r31) the_info->start_time = the_timer->Ticker.start_time; ffc18ff4: 80 09 00 24 lwz r0,36(r9) the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; ffc18ff8: 91 7f 00 00 stw r11,0(r31) the_info->initial = the_timer->Ticker.initial; the_info->start_time = the_timer->Ticker.start_time; ffc18ffc: 90 1f 00 08 stw r0,8(r31) the_info->stop_time = the_timer->Ticker.stop_time; ffc19000: 80 09 00 28 lwz r0,40(r9) ffc19004: 90 1f 00 0c stw r0,12(r31) _Thread_Enable_dispatch(); ffc19008: 48 00 3d 59 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1900c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc19010: 80 01 00 24 lwz r0,36(r1) ffc19014: 83 e1 00 1c lwz r31,28(r1) ffc19018: 38 21 00 20 addi r1,r1,32 ffc1901c: 7c 08 03 a6 mtlr r0 ffc19020: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19024 : rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { ffc19024: 94 21 ff f8 stwu r1,-8(r1) ffc19028: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1902c: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { ffc19030: 90 01 00 0c stw r0,12(r1) ffc19034: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc19038: 3c 60 00 00 lis r3,0 rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { ffc1903c: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc19040: 38 63 79 44 addi r3,r3,31044 ffc19044: 7c 04 03 78 mr r4,r0 ffc19048: 60 a5 ff ff ori r5,r5,65535 ffc1904c: 48 00 33 d5 bl ffc1c420 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc19050: 80 01 00 0c lwz r0,12(r1) ffc19054: 3d 20 ff c4 lis r9,-60 ffc19058: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1905c: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc19060: 39 29 a9 78 addi r9,r9,-22152 ffc19064: 7c 69 18 2e lwzx r3,r9,r3 ffc19068: 38 21 00 08 addi r1,r1,8 ffc1906c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1938c : */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && ffc1938c: 2c 03 00 00 cmpwi r3,0 rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { ffc19390: 94 21 ff d0 stwu r1,-48(r1) ffc19394: 7c 08 02 a6 mflr r0 ffc19398: 93 61 00 1c stw r27,28(r1) ffc1939c: 7c 9b 23 78 mr r27,r4 ffc193a0: 93 81 00 20 stw r28,32(r1) ffc193a4: 7c bc 2b 78 mr r28,r5 ffc193a8: 90 01 00 34 stw r0,52(r1) ffc193ac: 93 41 00 18 stw r26,24(r1) ffc193b0: 93 a1 00 24 stw r29,36(r1) ffc193b4: 93 c1 00 28 stw r30,40(r1) ffc193b8: 93 e1 00 2c stw r31,44(r1) ffc193bc: 40 82 00 0c bne- ffc193c8 ffc193c0: 38 00 00 00 li r0,0 ffc193c4: 48 00 00 18 b ffc193dc <== ALWAYS TAKEN ffc193c8: 3d 20 00 00 lis r9,0 ffc193cc: 88 09 27 24 lbz r0,10020(r9) ffc193d0: 7c 03 00 10 subfc r0,r3,r0 ffc193d4: 38 00 00 00 li r0,0 ffc193d8: 7c 00 01 14 adde r0,r0,r0 * Make sure the requested priority is valid. The if is * structured so we check it is invalid before looking for * a specific invalid value as the default. */ _priority = priority; if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) { ffc193dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc193e0: 7c 7a 1b 78 mr r26,r3 ffc193e4: 40 9e 00 14 bne- cr7,ffc193f8 if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) ffc193e8: 2f 83 ff ff cmpwi cr7,r3,-1 ffc193ec: 38 00 00 13 li r0,19 ffc193f0: 40 be 01 24 bne+ cr7,ffc19514 ffc193f4: 3b 40 00 00 li r26,0 ffc193f8: 3d 20 00 00 lis r9,0 ffc193fc: 81 69 28 68 lwz r11,10344(r9) ffc19400: 38 0b 00 01 addi r0,r11,1 ffc19404: 90 09 28 68 stw r0,10344(r9) /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; ffc19408: 3f c0 00 00 lis r30,0 ffc1940c: 8b be 2a 88 lbz r29,10888(r30) initialized = true; ffc19410: 38 00 00 01 li r0,1 ffc19414: 98 1e 2a 88 stb r0,10888(r30) _Thread_Enable_dispatch(); ffc19418: 48 00 39 49 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( tmpInitialized ) ffc1941c: 2f 9d 00 00 cmpwi cr7,r29,0 /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; ffc19420: 3b fe 2a 88 addi r31,r30,10888 initialized = true; _Thread_Enable_dispatch(); if ( tmpInitialized ) ffc19424: 38 00 00 0e li r0,14 ffc19428: 40 be 00 ec bne+ cr7,ffc19514 * other library rules. For example, if using a TSR written in Ada the * Server should run at the same priority as the priority Ada task. * Otherwise, the priority ceiling for the mutex used to protect the * GNAT run-time is violated. */ status = rtems_task_create( ffc1942c: 3c 60 54 49 lis r3,21577 ffc19430: 60 63 4d 45 ori r3,r3,19781 ffc19434: 7f 44 d3 78 mr r4,r26 ffc19438: 7f 65 db 78 mr r5,r27 ffc1943c: 63 87 80 00 ori r7,r28,32768 ffc19440: 38 c0 01 00 li r6,256 ffc19444: 39 01 00 08 addi r8,r1,8 ffc19448: 4b ff ec d9 bl ffc18120 <== ALWAYS TAKEN /* user may want floating point but we need */ /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { ffc1944c: 7c 60 1b 79 mr. r0,r3 ffc19450: 41 82 00 0c beq- ffc1945c initialized = false; ffc19454: 9b be 2a 88 stb r29,10888(r30) return status; ffc19458: 48 00 00 bc b ffc19514 <== ALWAYS TAKEN /* * We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( ffc1945c: 81 61 00 08 lwz r11,8(r1) ffc19460: 3d 20 00 00 lis r9,0 ffc19464: 81 49 70 08 lwz r10,28680(r9) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc19468: 38 ff 00 70 addi r7,r31,112 ffc1946c: 55 69 13 ba rlwinm r9,r11,2,14,29 the_chain->permanent_null = NULL; ffc19470: 90 1f 00 38 stw r0,56(r31) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc19474: 3b bf 00 38 addi r29,r31,56 ffc19478: 7d 4a 48 2e lwzx r10,r10,r9 ffc1947c: 7f e9 fb 78 mr r9,r31 the_chain->permanent_null = NULL; ffc19480: 90 1f 00 70 stw r0,112(r31) _Timer_server = ts; /* * Start the timer server */ status = rtems_task_start( ffc19484: 3c 80 ff c2 lis r4,-62 ffc19488: 7d 63 5b 78 mr r3,r11 /* * We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( ffc1948c: 95 49 00 04 stwu r10,4(r9) * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ffc19490: 3d 40 00 00 lis r10,0 _Timer_server = ts; /* * Start the timer server */ status = rtems_task_start( ffc19494: 38 84 96 40 addi r4,r4,-27072 * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ffc19498: 81 8a 28 c0 lwz r12,10432(r10) the_chain->last = _Chain_Head(the_chain); ffc1949c: 39 09 00 68 addi r8,r9,104 ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc194a0: 3d 40 00 00 lis r10,0 ffc194a4: 91 1f 00 74 stw r8,116(r31) /* * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ffc194a8: 3d 00 ff c2 lis r8,-62 ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc194ac: 83 ca 28 88 lwz r30,10376(r10) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc194b0: 3d 40 ff c2 lis r10,-62 ffc194b4: 39 4a cb 24 addi r10,r10,-13532 * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ffc194b8: 91 9f 00 40 stw r12,64(r31) ffc194bc: 38 c9 00 30 addi r6,r9,48 /* * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ffc194c0: 39 08 98 68 addi r8,r8,-26520 ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc194c4: 93 df 00 78 stw r30,120(r31) <== ALWAYS TAKEN _Timer_server = ts; /* * Start the timer server */ status = rtems_task_start( ffc194c8: 7d 25 4b 78 mr r5,r9 ts->schedule_operation = _Timer_server_Schedule_operation_method; ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ts->insert_chain = NULL; ffc194cc: 90 1f 00 7c stw r0,124(r31) /* * Initialize the pointer to the timer schedule method so applications that * do not use the Timer Server do not have to pull it in. */ ts->schedule_operation = _Timer_server_Schedule_operation_method; ffc194d0: 91 1f 00 08 stw r8,8(r31) ts->active = false; /* * The default timer server is now available. */ _Timer_server = ts; ffc194d4: 3d 00 00 00 lis r8,0 ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ts->insert_chain = NULL; ts->active = false; ffc194d8: 98 1f 00 80 stb r0,128(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc194dc: 90 1f 00 14 stw r0,20(r31) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc194e0: 90 1f 00 30 stw r0,48(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc194e4: 90 1f 00 4c stw r0,76(r31) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc194e8: 90 1f 00 68 stw r0,104(r31) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc194ec: 93 bf 00 34 stw r29,52(r31) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc194f0: 90 df 00 3c stw r6,60(r31) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc194f4: 90 ff 00 6c stw r7,108(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc194f8: 91 5f 00 60 stw r10,96(r31) ffc194fc: 91 5f 00 28 stw r10,40(r31) the_watchdog->id = id; ffc19500: 91 7f 00 2c stw r11,44(r31) ffc19504: 91 7f 00 64 stw r11,100(r31) /* * The default timer server is now available. */ _Timer_server = ts; ffc19508: 91 28 28 ec stw r9,10476(r8) /* * Start the timer server */ status = rtems_task_start( ffc1950c: 4b ff f4 49 bl ffc18954 <== ALWAYS TAKEN ffc19510: 7c 60 1b 78 mr r0,r3 initialized = false; } #endif return status; } ffc19514: 7c 03 03 78 mr r3,r0 ffc19518: 80 01 00 34 lwz r0,52(r1) ffc1951c: 83 41 00 18 lwz r26,24(r1) ffc19520: 7c 08 03 a6 mtlr r0 ffc19524: 83 61 00 1c lwz r27,28(r1) ffc19528: 83 81 00 20 lwz r28,32(r1) ffc1952c: 83 a1 00 24 lwz r29,36(r1) ffc19530: 83 c1 00 28 lwz r30,40(r1) ffc19534: 83 e1 00 2c lwz r31,44(r1) <== ALWAYS TAKEN ffc19538: 38 21 00 30 addi r1,r1,48 ffc1953c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19070 : */ rtems_status_code rtems_timer_reset( rtems_id id ) { ffc19070: 94 21 ff e0 stwu r1,-32(r1) ffc19074: 7c 08 02 a6 mflr r0 ffc19078: 7c 64 1b 78 mr r4,r3 ffc1907c: 3c 60 00 00 lis r3,0 ffc19080: 90 01 00 24 stw r0,36(r1) ffc19084: 38 63 79 44 addi r3,r3,31044 ffc19088: 38 a1 00 08 addi r5,r1,8 ffc1908c: 93 c1 00 18 stw r30,24(r1) ffc19090: 93 e1 00 1c stw r31,28(r1) ffc19094: 48 00 31 05 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN ffc19098: 7c 7e 1b 78 mr r30,r3 Timer_Control *the_timer; Objects_Locations location; rtems_status_code status = RTEMS_SUCCESSFUL; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc1909c: 80 01 00 08 lwz r0,8(r1) ffc190a0: 3b e0 00 04 li r31,4 ffc190a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc190a8: 40 9e 00 6c bne- cr7,ffc19114 case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { ffc190ac: 80 03 00 38 lwz r0,56(r3) ffc190b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc190b4: 40 be 00 28 bne+ cr7,ffc190dc _Watchdog_Remove( &the_timer->Ticker ); ffc190b8: 3b c3 00 10 addi r30,r3,16 ffc190bc: 7f c3 f3 78 mr r3,r30 ffc190c0: 48 00 57 c5 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); ffc190c4: 3c 60 00 00 lis r3,0 ffc190c8: 38 63 71 68 addi r3,r3,29032 ffc190cc: 7f c4 f3 78 mr r4,r30 ffc190d0: 48 00 56 5d bl ffc1e72c <_Watchdog_Insert> <== ALWAYS TAKEN ffc190d4: 3b e0 00 00 li r31,0 ffc190d8: 48 00 00 38 b ffc19110 <== ALWAYS TAKEN } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { ffc190dc: 2f 80 00 01 cmpwi cr7,r0,1 ffc190e0: 3b e0 00 0b li r31,11 ffc190e4: 40 be 00 2c bne+ cr7,ffc19110 Timer_server_Control *timer_server = _Timer_server; ffc190e8: 3d 20 00 00 lis r9,0 ffc190ec: 83 e9 28 ec lwz r31,10476(r9) if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); ffc190f0: 38 63 00 10 addi r3,r3,16 ffc190f4: 48 00 57 91 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN (*timer_server->schedule_operation)( timer_server, the_timer ); ffc190f8: 7f c4 f3 78 mr r4,r30 ffc190fc: 80 1f 00 04 lwz r0,4(r31) ffc19100: 7f e3 fb 78 mr r3,r31 ffc19104: 3b e0 00 00 li r31,0 ffc19108: 7c 09 03 a6 mtctr r0 ffc1910c: 4e 80 04 21 bctrl <== ALWAYS TAKEN * TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We * can only reset active interval timers. */ status = RTEMS_NOT_DEFINED; } _Thread_Enable_dispatch(); ffc19110: 48 00 3c 51 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc19114: 80 01 00 24 lwz r0,36(r1) ffc19118: 7f e3 fb 78 mr r3,r31 ffc1911c: 83 c1 00 18 lwz r30,24(r1) ffc19120: 7c 08 03 a6 mtlr r0 ffc19124: 83 e1 00 1c lwz r31,28(r1) ffc19128: 38 21 00 20 addi r1,r1,32 ffc1912c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19130 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19130: 94 21 ff d0 stwu r1,-48(r1) Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; ffc19134: 3d 20 00 00 lis r9,0 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19138: 7c 08 02 a6 mflr r0 ffc1913c: 93 e1 00 2c stw r31,44(r1) Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; ffc19140: 83 e9 28 ec lwz r31,10476(r9) rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19144: 93 61 00 1c stw r27,28(r1) ffc19148: 7c db 33 78 mr r27,r6 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc1914c: 2f 9f 00 00 cmpwi cr7,r31,0 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19150: 93 81 00 20 stw r28,32(r1) ffc19154: 7c bc 2b 78 mr r28,r5 ffc19158: 93 a1 00 24 stw r29,36(r1) ffc1915c: 7c 7d 1b 78 mr r29,r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc19160: 38 60 00 0e li r3,14 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19164: 93 c1 00 28 stw r30,40(r1) ffc19168: 7c 9e 23 78 mr r30,r4 ffc1916c: 90 01 00 34 stw r0,52(r1) ffc19170: 93 41 00 18 stw r26,24(r1) Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc19174: 41 9e 00 ac beq- cr7,ffc19220 return RTEMS_INCORRECT_STATE; if ( !routine ) ffc19178: 2f 85 00 00 cmpwi cr7,r5,0 ffc1917c: 38 60 00 09 li r3,9 ffc19180: 41 9e 00 a0 beq- cr7,ffc19220 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) ffc19184: 2f 84 00 00 cmpwi cr7,r4,0 ffc19188: 38 60 00 0a li r3,10 ffc1918c: 41 9e 00 94 beq- cr7,ffc19220 ffc19190: 3c 60 00 00 lis r3,0 ffc19194: 38 63 79 44 addi r3,r3,31044 ffc19198: 7f a4 eb 78 mr r4,r29 ffc1919c: 38 a1 00 08 addi r5,r1,8 ffc191a0: 48 00 2f f9 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc191a4: 80 01 00 08 lwz r0,8(r1) ffc191a8: 7c 7a 1b 78 mr r26,r3 ffc191ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc191b0: 38 60 00 04 li r3,4 ffc191b4: 40 9e 00 6c bne- cr7,ffc19220 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc191b8: 38 7a 00 10 addi r3,r26,16 ffc191bc: 48 00 56 c9 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc191c0: 7c 00 00 a6 mfmsr r0 ffc191c4: 7d 30 42 a6 mfsprg r9,0 ffc191c8: 7c 09 48 78 andc r9,r0,r9 ffc191cc: 7d 20 01 24 mtmsr r9 /* * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { ffc191d0: 81 3a 00 18 lwz r9,24(r26) ffc191d4: 2f 89 00 00 cmpwi cr7,r9,0 ffc191d8: 41 be 00 0c beq+ cr7,ffc191e4 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc191dc: 7c 00 01 24 mtmsr r0 ffc191e0: 48 00 00 38 b ffc19218 <== ALWAYS TAKEN /* * OK. Now we now the timer was not rescheduled by an interrupt * so we can atomically initialize it as in use. */ the_timer->the_class = TIMER_INTERVAL_ON_TASK; ffc191e4: 39 60 00 01 li r11,1 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc191e8: 91 3a 00 18 stw r9,24(r26) ffc191ec: 91 7a 00 38 stw r11,56(r26) the_watchdog->routine = routine; ffc191f0: 93 9a 00 2c stw r28,44(r26) the_watchdog->id = id; ffc191f4: 93 ba 00 30 stw r29,48(r26) the_watchdog->user_data = user_data; ffc191f8: 93 7a 00 34 stw r27,52(r26) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; ffc191fc: 93 da 00 1c stw r30,28(r26) ffc19200: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); (*timer_server->schedule_operation)( timer_server, the_timer ); ffc19204: 80 1f 00 04 lwz r0,4(r31) ffc19208: 7f e3 fb 78 mr r3,r31 ffc1920c: 7f 44 d3 78 mr r4,r26 ffc19210: 7c 09 03 a6 mtctr r0 ffc19214: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc19218: 48 00 3b 49 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1921c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc19220: 80 01 00 34 lwz r0,52(r1) ffc19224: 83 41 00 18 lwz r26,24(r1) ffc19228: 7c 08 03 a6 mtlr r0 ffc1922c: 83 61 00 1c lwz r27,28(r1) ffc19230: 83 81 00 20 lwz r28,32(r1) ffc19234: 83 a1 00 24 lwz r29,36(r1) ffc19238: 83 c1 00 28 lwz r30,40(r1) ffc1923c: 83 e1 00 2c lwz r31,44(r1) ffc19240: 38 21 00 30 addi r1,r1,48 ffc19244: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19248 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc19248: 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; ffc1924c: 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 ) { ffc19250: 7c 08 02 a6 mflr r0 ffc19254: 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; ffc19258: 83 e9 28 ec lwz r31,10476(r9) rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1925c: 93 41 00 20 stw r26,32(r1) ffc19260: 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 ) ffc19264: 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 ) { ffc19268: 93 81 00 28 stw r28,40(r1) ffc1926c: 7c 9c 23 78 mr r28,r4 <== ALWAYS TAKEN ffc19270: 93 a1 00 2c stw r29,44(r1) ffc19274: 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 ) ffc19278: 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 ) { ffc1927c: 93 c1 00 30 stw r30,48(r1) ffc19280: 7c be 2b 78 mr r30,r5 ffc19284: 90 01 00 3c stw r0,60(r1) ffc19288: 93 01 00 18 stw r24,24(r1) ffc1928c: 93 21 00 1c stw r25,28(r1) ffc19290: 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 ) ffc19294: 41 9e 00 c8 beq- cr7,ffc1935c return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) ffc19298: 3d 20 00 00 lis r9,0 ffc1929c: 88 09 28 70 lbz r0,10352(r9) ffc192a0: 38 60 00 0b li r3,11 ffc192a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc192a8: 41 9e 00 b4 beq- cr7,ffc1935c <== NEVER TAKEN return RTEMS_NOT_DEFINED; if ( !routine ) ffc192ac: 2f 85 00 00 cmpwi cr7,r5,0 ffc192b0: 38 60 00 09 li r3,9 ffc192b4: 41 9e 00 a8 beq- cr7,ffc1935c return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) ffc192b8: 7c 83 23 78 mr r3,r4 ffc192bc: 4b ff c5 75 bl ffc15830 <_TOD_Validate> <== ALWAYS TAKEN ffc192c0: 2f 83 00 00 cmpwi cr7,r3,0 ffc192c4: 41 9e 00 94 beq- cr7,ffc19358 return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); ffc192c8: 7f 83 e3 78 mr r3,r28 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc192cc: 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 ); ffc192d0: 4b ff c4 d5 bl ffc157a4 <_TOD_To_seconds> <== ALWAYS TAKEN if ( seconds <= _TOD_Seconds_since_epoch() ) ffc192d4: 80 1b 28 88 lwz r0,10376(r27) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); ffc192d8: 7c 7c 1b 78 mr r28,r3 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc192dc: 7f 83 00 40 cmplw cr7,r3,r0 ffc192e0: 40 9d 00 78 ble- cr7,ffc19358 ffc192e4: 3c 60 00 00 lis r3,0 ffc192e8: 38 63 79 44 addi r3,r3,31044 ffc192ec: 7f a4 eb 78 mr r4,r29 ffc192f0: 38 a1 00 08 addi r5,r1,8 ffc192f4: 48 00 2e a5 bl ffc1c198 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc192f8: 83 01 00 08 lwz r24,8(r1) ffc192fc: 7c 79 1b 78 mr r25,r3 ffc19300: 2f 98 00 00 cmpwi cr7,r24,0 ffc19304: 38 60 00 04 li r3,4 ffc19308: 40 9e 00 54 bne- cr7,ffc1935c case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc1930c: 38 79 00 10 addi r3,r25,16 ffc19310: 48 00 55 75 bl ffc1e884 <_Watchdog_Remove> <== ALWAYS TAKEN void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc19314: 93 b9 00 30 stw r29,48(r25) the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; ffc19318: 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(); ffc1931c: 80 1b 28 88 lwz r0,10376(r27) (*timer_server->schedule_operation)( timer_server, the_timer ); ffc19320: 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; ffc19324: 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 ); ffc19328: 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(); ffc1932c: 7f 80 e0 50 subf r28,r0,r28 (*timer_server->schedule_operation)( timer_server, the_timer ); ffc19330: 80 1f 00 04 lwz r0,4(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc19334: 93 19 00 18 stw r24,24(r25) ffc19338: 7c 09 03 a6 mtctr r0 the_watchdog->routine = routine; ffc1933c: 93 d9 00 2c stw r30,44(r25) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc19340: 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(); ffc19344: 93 99 00 1c stw r28,28(r25) (*timer_server->schedule_operation)( timer_server, the_timer ); ffc19348: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc1934c: 48 00 3a 15 bl ffc1cd60 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc19350: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc19354: 48 00 00 08 b ffc1935c <== ALWAYS TAKEN ffc19358: 38 60 00 14 li r3,20 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1935c: 80 01 00 3c lwz r0,60(r1) ffc19360: 83 01 00 18 lwz r24,24(r1) ffc19364: 7c 08 03 a6 mtlr r0 ffc19368: 83 21 00 1c lwz r25,28(r1) ffc1936c: 83 41 00 20 lwz r26,32(r1) ffc19370: 83 61 00 24 lwz r27,36(r1) ffc19374: 83 81 00 28 lwz r28,40(r1) ffc19378: 83 a1 00 2c lwz r29,44(r1) ffc1937c: 83 c1 00 30 lwz r30,48(r1) ffc19380: 83 e1 00 34 lwz r31,52(r1) ffc19384: 38 21 00 38 addi r1,r1,56 ffc19388: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a058 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { ffc0a058: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0a05c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0a060: 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) ffc0a064: 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 ) { ffc0a068: 93 21 00 0c stw r25,12(r1) <== NOT EXECUTED ffc0a06c: 7c 99 23 78 mr r25,r4 <== NOT EXECUTED ffc0a070: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc0a074: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc0a078: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc0a07c: 7c bf 2b 78 mr r31,r5 <== NOT EXECUTED ffc0a080: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc0a084: 93 61 00 14 stw r27,20(r1) <== NOT EXECUTED ffc0a088: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED ffc0a08c: 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) ffc0a090: 41 82 00 3c beq- ffc0a0cc <== NOT EXECUTED { if (rtems_panic_in_progress++) ffc0a094: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a098: 81 69 27 d0 lwz r11,10192(r9) <== NOT EXECUTED ffc0a09c: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc0a0a0: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc0a0a4: 91 69 27 d0 stw r11,10192(r9) <== NOT EXECUTED ffc0a0a8: 41 9e 00 14 beq- cr7,ffc0a0bc <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0a0ac: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a0b0: 81 69 27 f8 lwz r11,10232(r9) <== NOT EXECUTED ffc0a0b4: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED ffc0a0b8: 90 09 27 f8 stw r0,10232(r9) <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) ffc0a0bc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a0c0: 80 09 27 d0 lwz r0,10192(r9) <== NOT EXECUTED ffc0a0c4: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0a0c8: 41 9d 01 5c bgt- cr7,ffc0a224 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ ffc0a0cc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a0d0: 81 29 27 64 lwz r9,10084(r9) <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; ffc0a0d4: 57 bc 01 00 rlwinm r28,r29,0,4,0 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0a0d8: 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 */ ffc0a0dc: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc0a0e0: 48 01 03 2d bl ffc1a40c <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0a0e4: 77 a0 40 00 andis. r0,r29,16384 <== NOT EXECUTED ffc0a0e8: 41 a2 00 0c beq+ ffc0a0f4 <== NOT EXECUTED local_errno = errno; ffc0a0ec: 48 00 fe 9d bl ffc19f88 <__errno> <== NOT EXECUTED ffc0a0f0: 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); ffc0a0f4: 3f 60 00 00 lis r27,0 <== NOT EXECUTED ffc0a0f8: 81 3b 27 64 lwz r9,10084(r27) <== NOT EXECUTED ffc0a0fc: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc0a100: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc0a104: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a108: 48 01 66 c5 bl ffc207cc <== NOT EXECUTED if (status) ffc0a10c: 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); ffc0a110: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (status) ffc0a114: 41 be 00 30 beq+ cr7,ffc0a144 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); ffc0a118: 81 3b 27 64 lwz r9,10084(r27) <== NOT EXECUTED ffc0a11c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a120: 83 89 00 0c lwz r28,12(r9) <== NOT EXECUTED ffc0a124: 4b ff ff 09 bl ffc0a02c <== NOT EXECUTED ffc0a128: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a12c: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0a130: 38 84 9c b8 addi r4,r4,-25416 <== NOT EXECUTED ffc0a134: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a138: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a13c: 48 01 07 15 bl ffc1a850 <== NOT EXECUTED ffc0a140: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED if (local_errno) ffc0a144: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc0a148: 41 9e 00 68 beq- cr7,ffc0a1b0 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) ffc0a14c: 40 9d 00 40 ble- cr7,ffc0a18c <== NOT EXECUTED ffc0a150: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a154: 48 01 16 8d bl ffc1b7e0 <== NOT EXECUTED ffc0a158: 88 03 00 00 lbz r0,0(r3) <== NOT EXECUTED ffc0a15c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0a160: 41 be 00 2c beq+ cr7,ffc0a18c <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); ffc0a164: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a168: 81 29 27 64 lwz r9,10084(r9) <== NOT EXECUTED ffc0a16c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a170: 83 89 00 0c lwz r28,12(r9) <== NOT EXECUTED ffc0a174: 48 01 16 6d bl ffc1b7e0 <== NOT EXECUTED ffc0a178: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a17c: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0a180: 38 84 9c c6 addi r4,r4,-25402 <== NOT EXECUTED ffc0a184: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0a188: 48 00 00 1c b ffc0a1a4 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); ffc0a18c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a190: 81 29 27 64 lwz r9,10084(r9) <== NOT EXECUTED ffc0a194: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a198: 38 84 9c d3 addi r4,r4,-25389 <== NOT EXECUTED ffc0a19c: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a1a0: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc0a1a4: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a1a8: 48 01 06 a9 bl ffc1a850 <== NOT EXECUTED ffc0a1ac: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); ffc0a1b0: 3f 80 00 00 lis r28,0 <== NOT EXECUTED ffc0a1b4: 81 3c 27 64 lwz r9,10084(r28) <== NOT EXECUTED ffc0a1b8: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a1bc: 38 84 9f fa addi r4,r4,-24582 <== NOT EXECUTED ffc0a1c0: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a1c4: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a1c8: 48 01 06 89 bl ffc1a850 <== NOT EXECUTED (void) fflush(stderr); ffc0a1cc: 81 3c 27 64 lwz r9,10084(r28) <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); ffc0a1d0: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED (void) fflush(stderr); ffc0a1d4: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0a1d8: 48 01 02 35 bl ffc1a40c <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0a1dc: 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"); ffc0a1e0: 7c 7b fa 14 add r3,r27,r31 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0a1e4: 41 82 00 44 beq- ffc0a228 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) ffc0a1e8: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc0a1ec: 41 9e 00 20 beq- cr7,ffc0a20c <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); ffc0a1f0: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a1f4: 38 84 9c e7 addi r4,r4,-25369 <== NOT EXECUTED ffc0a1f8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0a1fc: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a200: 48 00 00 e1 bl ffc0a2e0 <== NOT EXECUTED _exit(local_errno); ffc0a204: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0a208: 48 00 0e 5d bl ffc0b064 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); ffc0a20c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0a210: 38 84 9c fc addi r4,r4,-25348 <== NOT EXECUTED ffc0a214: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0a218: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0a21c: 48 00 00 c5 bl ffc0a2e0 <== NOT EXECUTED abort(); ffc0a220: 48 00 fd 4d bl ffc19f6c <== NOT EXECUTED ffc0a224: 38 60 00 00 li r3,0 <== NOT EXECUTED } } return chars_written; } ffc0a228: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0a22c: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc0a230: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0a234: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc0a238: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc0a23c: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc0a240: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0a244: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0a248: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0a24c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0a250: 4e 80 00 20 blr <== NOT EXECUTED ffc08dc8 : */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { ffc08dc8: 94 21 ff f0 stwu r1,-16(r1) ffc08dcc: 7c 08 02 a6 mflr r0 ffc08dd0: 93 e1 00 0c stw r31,12(r1) void *ptr; /* * check the arguments */ if ( !pointer ) ffc08dd4: 7c 9f 23 79 mr. r31,r4 */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { ffc08dd8: 7c 64 1b 78 mr r4,r3 ffc08ddc: 90 01 00 14 stw r0,20(r1) void *ptr; /* * check the arguments */ if ( !pointer ) ffc08de0: 41 82 00 34 beq- ffc08e14 return false; if ( !bytes ) ffc08de4: 2f 83 00 00 cmpwi cr7,r3,0 ffc08de8: 41 be 00 2c beq+ cr7,ffc08e14 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); ffc08dec: 3c 60 00 00 lis r3,0 ffc08df0: 38 63 30 0c addi r3,r3,12300 ffc08df4: 38 a0 00 00 li r5,0 ffc08df8: 38 c0 00 00 li r6,0 ffc08dfc: 48 00 1a 3d bl ffc0a838 <_Protected_heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN /* * Allocate the memory */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) ffc08e00: 2c 03 00 00 cmpwi r3,0 ffc08e04: 41 82 00 10 beq- ffc08e14 return false; *pointer = ptr; ffc08e08: 90 7f 00 00 stw r3,0(r31) ffc08e0c: 38 60 00 01 li r3,1 return true; ffc08e10: 48 00 00 08 b ffc08e18 <== ALWAYS TAKEN ffc08e14: 38 60 00 00 li r3,0 } ffc08e18: 80 01 00 14 lwz r0,20(r1) ffc08e1c: 83 e1 00 0c lwz r31,12(r1) ffc08e20: 38 21 00 10 addi r1,r1,16 ffc08e24: 7c 08 03 a6 mtlr r0 ffc08e28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d9c : * _Workspace_Allocate */ bool rtems_workspace_free( void *pointer ) { ffc08d9c: 94 21 ff f8 stwu r1,-8(r1) ffc08da0: 7c 08 02 a6 mflr r0 ffc08da4: 7c 64 1b 78 mr r4,r3 return _Protected_heap_Free( &_Workspace_Area, pointer ); ffc08da8: 3c 60 00 00 lis r3,0 * _Workspace_Allocate */ bool rtems_workspace_free( void *pointer ) { ffc08dac: 90 01 00 0c stw r0,12(r1) return _Protected_heap_Free( &_Workspace_Area, pointer ); ffc08db0: 38 63 30 0c addi r3,r3,12300 ffc08db4: 48 00 1a f1 bl ffc0a8a4 <_Protected_heap_Free> <== ALWAYS TAKEN } ffc08db8: 80 01 00 0c lwz r0,12(r1) ffc08dbc: 38 21 00 08 addi r1,r1,8 ffc08dc0: 7c 08 03 a6 mtlr r0 ffc08dc4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08e2c : bool rtems_workspace_get_information( Heap_Information_block *the_info ) { if ( !the_info ) ffc08e2c: 7c 64 1b 79 mr. r4,r3 #include /* for memset */ bool rtems_workspace_get_information( Heap_Information_block *the_info ) { ffc08e30: 94 21 ff f8 stwu r1,-8(r1) ffc08e34: 7c 08 02 a6 mflr r0 if ( !the_info ) ffc08e38: 38 60 00 00 li r3,0 #include /* for memset */ bool rtems_workspace_get_information( Heap_Information_block *the_info ) { ffc08e3c: 90 01 00 0c stw r0,12(r1) if ( !the_info ) ffc08e40: 41 82 00 10 beq- ffc08e50 return false; return _Protected_heap_Get_information( &_Workspace_Area, the_info ); ffc08e44: 3c 60 00 00 lis r3,0 ffc08e48: 38 63 30 0c addi r3,r3,12300 ffc08e4c: 48 00 1a b5 bl ffc0a900 <_Protected_heap_Get_information> <== ALWAYS TAKEN } ffc08e50: 80 01 00 0c lwz r0,12(r1) ffc08e54: 38 21 00 08 addi r1,r1,8 ffc08e58: 7c 08 03 a6 mtlr r0 ffc08e5c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b3b0 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2b3b0: 94 21 ff d8 stwu r1,-40(r1) ffc2b3b4: 7c 08 02 a6 mflr r0 ffc2b3b8: 93 01 00 08 stw r24,8(r1) unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2b3bc: 3f 00 00 00 lis r24,0 ffc2b3c0: 3b 18 35 68 addi r24,r24,13672 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2b3c4: 93 21 00 0c stw r25,12(r1) limit++; continue; } sign = 1; } if (!isdigit(c)) ffc2b3c8: 3f 20 00 00 lis r25,0 ffc2b3cc: 3b 39 35 5c addi r25,r25,13660 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2b3d0: 93 81 00 18 stw r28,24(r1) ffc2b3d4: 3f 80 7f ff lis r28,32767 ffc2b3d8: 63 9c ff ff ori r28,r28,65535 ffc2b3dc: 90 01 00 2c stw r0,44(r1) ffc2b3e0: 93 41 00 10 stw r26,16(r1) sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) ffc2b3e4: 3b 40 00 0a li r26,10 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2b3e8: 93 61 00 14 stw r27,20(r1) ffc2b3ec: 7c 9b 23 78 mr r27,r4 ffc2b3f0: 93 a1 00 1c stw r29,28(r1) ffc2b3f4: 3b a0 00 00 li r29,0 ffc2b3f8: 93 c1 00 20 stw r30,32(r1) ffc2b3fc: 7c 7e 1b 78 mr r30,r3 ffc2b400: 93 e1 00 24 stw r31,36(r1) ffc2b404: 3b e0 00 00 li r31,0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2b408: 81 3e 00 04 lwz r9,4(r30) ffc2b40c: 38 09 ff ff addi r0,r9,-1 ffc2b410: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b414: 90 1e 00 04 stw r0,4(r30) ffc2b418: 40 bc 00 14 bge+ cr7,ffc2b42c <== ALWAYS TAKEN ffc2b41c: 80 78 00 00 lwz r3,0(r24) <== NOT EXECUTED ffc2b420: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2b424: 48 02 27 4d bl ffc4db70 <__srget_r> <== NOT EXECUTED ffc2b428: 48 00 00 14 b ffc2b43c <== NOT EXECUTED ffc2b42c: 81 3e 00 00 lwz r9,0(r30) ffc2b430: 38 09 00 01 addi r0,r9,1 ffc2b434: 88 69 00 00 lbz r3,0(r9) ffc2b438: 90 1e 00 00 stw r0,0(r30) if (c == ':') ffc2b43c: 2f 03 00 3a cmpwi cr6,r3,58 ffc2b440: 2f 9d 00 00 cmpwi cr7,r29,0 ffc2b444: 41 9a 00 68 beq- cr6,ffc2b4ac break; if (sign == 0) { ffc2b448: 40 9e 00 1c bne- cr7,ffc2b464 <== NEVER TAKEN if (c == '-') { ffc2b44c: 2f 83 00 2d cmpwi cr7,r3,45 sign = -1; limit++; continue; ffc2b450: 3b a0 00 01 li r29,1 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { ffc2b454: 40 be 00 10 bne+ cr7,ffc2b464 <== ALWAYS TAKEN sign = -1; limit++; ffc2b458: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED ffc2b45c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED continue; ffc2b460: 4b ff ff a8 b ffc2b408 <== NOT EXECUTED } sign = 1; } if (!isdigit(c)) ffc2b464: 81 39 00 00 lwz r9,0(r25) ffc2b468: 7d 29 1a 14 add r9,r9,r3 ffc2b46c: 88 09 00 01 lbz r0,1(r9) ffc2b470: 70 09 00 04 andi. r9,r0,4 ffc2b474: 41 82 00 4c beq- ffc2b4c0 <== NEVER TAKEN return 0; d = c - '0'; if ((i > (limit / 10)) ffc2b478: 7c 1c d3 96 divwu r0,r28,r26 ffc2b47c: 7f 9f 00 40 cmplw cr7,r31,r0 ffc2b480: 41 9d 00 40 bgt- cr7,ffc2b4c0 <== NEVER TAKEN ffc2b484: 7f 9f 00 00 cmpw cr7,r31,r0 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; ffc2b488: 38 63 ff d0 addi r3,r3,-48 if ((i > (limit / 10)) ffc2b48c: 40 be 00 14 bne+ cr7,ffc2b4a0 <== ALWAYS TAKEN ffc2b490: 1c 1f 00 0a mulli r0,r31,10 <== NOT EXECUTED ffc2b494: 7c 00 e0 50 subf r0,r0,r28 <== NOT EXECUTED ffc2b498: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2b49c: 41 9d 00 24 bgt- cr7,ffc2b4c0 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; ffc2b4a0: 1f ff 00 0a mulli r31,r31,10 ffc2b4a4: 7f e3 fa 14 add r31,r3,r31 ffc2b4a8: 4b ff ff 60 b ffc2b408 <== ALWAYS TAKEN } if (sign == 0) ffc2b4ac: 41 9e 00 14 beq- cr7,ffc2b4c0 <== NEVER TAKEN return 0; *val = i * sign; ffc2b4b0: 7f fd f9 d6 mullw r31,r29,r31 ffc2b4b4: 38 60 00 01 li r3,1 ffc2b4b8: 93 fb 00 00 stw r31,0(r27) return 1; ffc2b4bc: 48 00 00 08 b ffc2b4c4 <== ALWAYS TAKEN ffc2b4c0: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2b4c4: 80 01 00 2c lwz r0,44(r1) ffc2b4c8: 83 01 00 08 lwz r24,8(r1) ffc2b4cc: 7c 08 03 a6 mtlr r0 ffc2b4d0: 83 21 00 0c lwz r25,12(r1) ffc2b4d4: 83 41 00 10 lwz r26,16(r1) ffc2b4d8: 83 61 00 14 lwz r27,20(r1) ffc2b4dc: 83 81 00 18 lwz r28,24(r1) ffc2b4e0: 83 a1 00 1c lwz r29,28(r1) ffc2b4e4: 83 c1 00 20 lwz r30,32(r1) ffc2b4e8: 83 e1 00 24 lwz r31,36(r1) ffc2b4ec: 38 21 00 28 addi r1,r1,40 ffc2b4f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b4f4 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { ffc2b4f4: 94 21 ff e0 stwu r1,-32(r1) ffc2b4f8: 7c 08 02 a6 mflr r0 ffc2b4fc: 90 01 00 24 stw r0,36(r1) int c; *name = *bufp; ffc2b500: 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) { ffc2b504: 93 61 00 0c stw r27,12(r1) int c; *name = *bufp; for (;;) { c = getc(fp); ffc2b508: 3f 60 00 00 lis r27,0 ffc2b50c: 3b 7b 35 68 addi r27,r27,13672 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; ffc2b510: 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) { ffc2b514: 93 81 00 10 stw r28,16(r1) ffc2b518: 7c fc 3b 78 mr r28,r7 ffc2b51c: 93 a1 00 14 stw r29,20(r1) ffc2b520: 7c dd 33 78 mr r29,r6 ffc2b524: 93 c1 00 18 stw r30,24(r1) ffc2b528: 7c 7e 1b 78 mr r30,r3 ffc2b52c: 93 e1 00 1c stw r31,28(r1) ffc2b530: 7c bf 2b 78 mr r31,r5 int c; *name = *bufp; for (;;) { c = getc(fp); ffc2b534: 81 3e 00 04 lwz r9,4(r30) ffc2b538: 38 09 ff ff addi r0,r9,-1 ffc2b53c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2b540: 90 1e 00 04 stw r0,4(r30) ffc2b544: 40 bc 00 14 bge+ cr7,ffc2b558 ffc2b548: 80 7b 00 00 lwz r3,0(r27) ffc2b54c: 7f c4 f3 78 mr r4,r30 ffc2b550: 48 02 26 21 bl ffc4db70 <__srget_r> <== ALWAYS TAKEN ffc2b554: 48 00 00 14 b ffc2b568 <== ALWAYS TAKEN ffc2b558: 81 3e 00 00 lwz r9,0(r30) ffc2b55c: 38 09 00 01 addi r0,r9,1 ffc2b560: 88 69 00 00 lbz r3,0(r9) ffc2b564: 90 1e 00 00 stw r0,0(r30) if (c == ':') { ffc2b568: 2c 83 00 3a cmpwi cr1,r3,58 if (nlFlag) return 0; break; } if (c == '\n') { ffc2b56c: 2f 03 00 0a cmpwi cr6,r3,10 if (!nlFlag) return 0; break; } if (c == EOF) ffc2b570: 2f 83 ff ff cmpwi cr7,r3,-1 int c; *name = *bufp; for (;;) { c = getc(fp); if (c == ':') { ffc2b574: 40 a6 00 10 bne+ cr1,ffc2b584 if (nlFlag) ffc2b578: 2f 9c 00 00 cmpwi cr7,r28,0 ffc2b57c: 41 be 00 4c beq+ cr7,ffc2b5c8 <== ALWAYS TAKEN ffc2b580: 48 00 00 74 b ffc2b5f4 <== NOT EXECUTED return 0; break; } if (c == '\n') { ffc2b584: 40 ba 00 10 bne+ cr6,ffc2b594 if (!nlFlag) ffc2b588: 2f 9c 00 00 cmpwi cr7,r28,0 ffc2b58c: 40 be 00 3c bne+ cr7,ffc2b5c8 <== ALWAYS TAKEN ffc2b590: 48 00 00 64 b ffc2b5f4 <== NOT EXECUTED return 0; break; } if (c == EOF) ffc2b594: 41 9e 00 60 beq- cr7,ffc2b5f4 <== NEVER TAKEN return 0; if (*nleft < 2) ffc2b598: 80 1d 00 00 lwz r0,0(r29) ffc2b59c: 2b 80 00 01 cmplwi cr7,r0,1 ffc2b5a0: 40 9d 00 54 ble- cr7,ffc2b5f4 <== NEVER TAKEN return 0; **bufp = c; ffc2b5a4: 81 3f 00 00 lwz r9,0(r31) ffc2b5a8: 98 69 00 00 stb r3,0(r9) ++(*bufp); ffc2b5ac: 81 3f 00 00 lwz r9,0(r31) --(*nleft); ffc2b5b0: 81 7d 00 00 lwz r11,0(r29) if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc2b5b4: 39 29 00 01 addi r9,r9,1 --(*nleft); ffc2b5b8: 38 0b ff ff addi r0,r11,-1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc2b5bc: 91 3f 00 00 stw r9,0(r31) --(*nleft); ffc2b5c0: 90 1d 00 00 stw r0,0(r29) } ffc2b5c4: 4b ff ff 70 b ffc2b534 <== ALWAYS TAKEN **bufp = '\0'; ffc2b5c8: 81 3f 00 00 lwz r9,0(r31) ffc2b5cc: 38 00 00 00 li r0,0 ++(*bufp); --(*nleft); ffc2b5d0: 38 60 00 01 li r3,1 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ffc2b5d4: 98 09 00 00 stb r0,0(r9) ++(*bufp); ffc2b5d8: 81 3f 00 00 lwz r9,0(r31) --(*nleft); ffc2b5dc: 81 7d 00 00 lwz r11,0(r29) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2b5e0: 39 29 00 01 addi r9,r9,1 --(*nleft); ffc2b5e4: 38 0b ff ff addi r0,r11,-1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2b5e8: 91 3f 00 00 stw r9,0(r31) --(*nleft); ffc2b5ec: 90 1d 00 00 stw r0,0(r29) return 1; ffc2b5f0: 48 00 00 08 b ffc2b5f8 <== ALWAYS TAKEN ffc2b5f4: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2b5f8: 80 01 00 24 lwz r0,36(r1) ffc2b5fc: 83 61 00 0c lwz r27,12(r1) ffc2b600: 7c 08 03 a6 mtlr r0 ffc2b604: 83 81 00 10 lwz r28,16(r1) ffc2b608: 83 a1 00 14 lwz r29,20(r1) ffc2b60c: 83 c1 00 18 lwz r30,24(r1) ffc2b610: 83 e1 00 1c lwz r31,28(r1) ffc2b614: 38 21 00 20 addi r1,r1,32 ffc2b618: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b61c : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b61c: 94 21 ff d0 stwu r1,-48(r1) ffc2b620: 7c 08 02 a6 mflr r0 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b624: 38 e0 00 00 li r7,0 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b628: 93 a1 00 24 stw r29,36(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b62c: 3b a1 00 18 addi r29,r1,24 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b630: 93 c1 00 28 stw r30,40(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b634: 3b c1 00 1c addi r30,r1,28 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b638: 90 a1 00 18 stw r5,24(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b63c: 7f a5 eb 78 mr r5,r29 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b640: 90 c1 00 1c stw r6,28(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b644: 7f c6 f3 78 mr r6,r30 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2b648: 93 81 00 20 stw r28,32(r1) ffc2b64c: 7c 7c 1b 78 mr r28,r3 ffc2b650: 93 e1 00 2c stw r31,44(r1) ffc2b654: 7c 9f 23 78 mr r31,r4 ffc2b658: 90 01 00 34 stw r0,52(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b65c: 4b ff fe 99 bl ffc2b4f4 <== ALWAYS TAKEN ffc2b660: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b664: 41 be 01 08 beq+ cr7,ffc2b76c <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) ffc2b668: 7f 83 e3 78 mr r3,r28 ffc2b66c: 38 9f 00 04 addi r4,r31,4 ffc2b670: 7f a5 eb 78 mr r5,r29 ffc2b674: 7f c6 f3 78 mr r6,r30 ffc2b678: 38 e0 00 00 li r7,0 ffc2b67c: 4b ff fe 79 bl ffc2b4f4 <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b680: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b684: 41 be 00 e8 beq+ cr7,ffc2b76c <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) ffc2b688: 7f 83 e3 78 mr r3,r28 ffc2b68c: 38 81 00 08 addi r4,r1,8 ffc2b690: 4b ff fd 21 bl ffc2b3b0 <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b694: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b698: 41 be 00 d4 beq+ cr7,ffc2b76c <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) ffc2b69c: 7f 83 e3 78 mr r3,r28 ffc2b6a0: 7f a5 eb 78 mr r5,r29 ffc2b6a4: 7f c6 f3 78 mr r6,r30 ffc2b6a8: 38 81 00 0c addi r4,r1,12 ffc2b6ac: 38 e0 00 01 li r7,1 ffc2b6b0: 4b ff fe 45 bl ffc2b4f4 <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2b6b4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b6b8: 41 9e 00 b4 beq- cr7,ffc2b76c <== 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; ffc2b6bc: 80 01 00 08 lwz r0,8(r1) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2b6c0: 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; ffc2b6c4: b0 1f 00 08 sth r0,8(r31) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2b6c8: 38 00 00 01 li r0,1 ffc2b6cc: 7d 49 53 78 mr r9,r10 ffc2b6d0: 48 00 00 14 b ffc2b6e4 <== ALWAYS TAKEN if(*cp == ',') memcount++; ffc2b6d4: 69 68 00 2c xori r8,r11,44 ffc2b6d8: 21 08 00 00 subfic r8,r8,0 ffc2b6dc: 7d 00 01 94 addze r8,r0 ffc2b6e0: 7d 00 43 78 mr r0,r8 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2b6e4: 89 69 00 00 lbz r11,0(r9) ffc2b6e8: 39 29 00 01 addi r9,r9,1 ffc2b6ec: 2f 8b 00 00 cmpwi cr7,r11,0 ffc2b6f0: 40 9e ff e4 bne+ cr7,ffc2b6d4 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) ffc2b6f4: 54 09 10 3a rlwinm r9,r0,2,0,29 ffc2b6f8: 38 09 00 13 addi r0,r9,19 ffc2b6fc: 81 21 00 1c lwz r9,28(r1) ffc2b700: 7f 89 00 40 cmplw cr7,r9,r0 ffc2b704: 41 9c 00 68 blt- cr7,ffc2b76c <== NEVER TAKEN return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); ffc2b708: 81 21 00 18 lwz r9,24(r1) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc2b70c: 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); ffc2b710: 39 29 00 0f addi r9,r9,15 ffc2b714: 55 29 00 36 rlwinm r9,r9,0,0,27 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc2b718: 91 49 00 00 stw r10,0(r9) for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; ffc2b71c: 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); ffc2b720: 91 3f 00 0c stw r9,12(r31) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc2b724: 81 21 00 0c lwz r9,12(r1) ffc2b728: 48 00 00 1c b ffc2b744 <== ALWAYS TAKEN for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { ffc2b72c: 40 ba 00 18 bne+ cr6,ffc2b744 <== ALWAYS TAKEN *cp = '\0'; ffc2b730: 99 49 ff ff stb r10,-1(r9) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; ffc2b734: 55 60 10 3a rlwinm r0,r11,2,0,29 <== NOT EXECUTED ffc2b738: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc2b73c: 81 1f 00 0c lwz r8,12(r31) <== NOT EXECUTED ffc2b740: 7d 28 01 2e stwx r9,r8,r0 <== NOT EXECUTED ffc2b744: 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++) { ffc2b748: 88 09 ff ff lbz r0,-1(r9) ffc2b74c: 2f 80 00 00 cmpwi cr7,r0,0 if(*cp == ',') { ffc2b750: 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++) { ffc2b754: 40 9e ff d8 bne+ cr7,ffc2b72c if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; ffc2b758: 81 3f 00 0c lwz r9,12(r31) ffc2b75c: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc2b760: 38 60 00 01 li r3,1 ffc2b764: 7c 09 59 2e stwx r0,r9,r11 return 1; ffc2b768: 48 00 00 08 b ffc2b770 <== ALWAYS TAKEN ffc2b76c: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2b770: 80 01 00 34 lwz r0,52(r1) ffc2b774: 83 81 00 20 lwz r28,32(r1) ffc2b778: 7c 08 03 a6 mtlr r0 ffc2b77c: 83 a1 00 24 lwz r29,36(r1) ffc2b780: 83 c1 00 28 lwz r30,40(r1) ffc2b784: 83 e1 00 2c lwz r31,44(r1) ffc2b788: 38 21 00 30 addi r1,r1,48 ffc2b78c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b7ec : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b7ec: 94 21 ff d0 stwu r1,-48(r1) ffc2b7f0: 7c 08 02 a6 mflr r0 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b7f4: 38 e0 00 00 li r7,0 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b7f8: 93 81 00 20 stw r28,32(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b7fc: 3b 81 00 18 addi r28,r1,24 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b800: 93 a1 00 24 stw r29,36(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b804: 3b a1 00 1c addi r29,r1,28 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b808: 90 a1 00 18 stw r5,24(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b80c: 7f 85 e3 78 mr r5,r28 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b810: 90 c1 00 1c stw r6,28(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b814: 7f a6 eb 78 mr r6,r29 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2b818: 93 c1 00 28 stw r30,40(r1) ffc2b81c: 7c 7e 1b 78 mr r30,r3 ffc2b820: 93 e1 00 2c stw r31,44(r1) ffc2b824: 7c 9f 23 78 mr r31,r4 ffc2b828: 90 01 00 34 stw r0,52(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b82c: 4b ff fc c9 bl ffc2b4f4 <== ALWAYS TAKEN ffc2b830: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b834: 41 be 00 e4 beq+ cr7,ffc2b918 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) ffc2b838: 7f c3 f3 78 mr r3,r30 ffc2b83c: 38 9f 00 04 addi r4,r31,4 ffc2b840: 7f 85 e3 78 mr r5,r28 ffc2b844: 7f a6 eb 78 mr r6,r29 ffc2b848: 38 e0 00 00 li r7,0 ffc2b84c: 4b ff fc a9 bl ffc2b4f4 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b850: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b854: 41 be 00 c4 beq+ cr7,ffc2b918 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) ffc2b858: 7f c3 f3 78 mr r3,r30 ffc2b85c: 38 81 00 08 addi r4,r1,8 ffc2b860: 4b ff fb 51 bl ffc2b3b0 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b864: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b868: 41 be 00 b0 beq+ cr7,ffc2b918 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) ffc2b86c: 7f c3 f3 78 mr r3,r30 ffc2b870: 38 81 00 0c addi r4,r1,12 ffc2b874: 4b ff fb 3d bl ffc2b3b0 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b878: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b87c: 41 be 00 9c beq+ cr7,ffc2b918 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) ffc2b880: 7f c3 f3 78 mr r3,r30 ffc2b884: 38 9f 00 0c addi r4,r31,12 ffc2b888: 7f 85 e3 78 mr r5,r28 ffc2b88c: 7f a6 eb 78 mr r6,r29 ffc2b890: 38 e0 00 00 li r7,0 ffc2b894: 4b ff fc 61 bl ffc2b4f4 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b898: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b89c: 41 be 00 7c beq+ cr7,ffc2b918 <== 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) ffc2b8a0: 7f c3 f3 78 mr r3,r30 ffc2b8a4: 38 9f 00 10 addi r4,r31,16 ffc2b8a8: 7f 85 e3 78 mr r5,r28 ffc2b8ac: 7f a6 eb 78 mr r6,r29 ffc2b8b0: 38 e0 00 00 li r7,0 ffc2b8b4: 4b ff fc 41 bl ffc2b4f4 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b8b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b8bc: 41 be 00 5c beq+ cr7,ffc2b918 <== 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) ffc2b8c0: 7f c3 f3 78 mr r3,r30 ffc2b8c4: 38 9f 00 14 addi r4,r31,20 ffc2b8c8: 7f 85 e3 78 mr r5,r28 ffc2b8cc: 7f a6 eb 78 mr r6,r29 ffc2b8d0: 38 e0 00 00 li r7,0 ffc2b8d4: 4b ff fc 21 bl ffc2b4f4 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b8d8: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b8dc: 41 be 00 3c beq+ cr7,ffc2b918 <== 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)) ffc2b8e0: 7f c3 f3 78 mr r3,r30 ffc2b8e4: 7f 85 e3 78 mr r5,r28 ffc2b8e8: 7f a6 eb 78 mr r6,r29 ffc2b8ec: 38 9f 00 18 addi r4,r31,24 ffc2b8f0: 38 e0 00 01 li r7,1 ffc2b8f4: 4b ff fc 01 bl ffc2b4f4 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2b8f8: 2f 83 00 00 cmpwi cr7,r3,0 ffc2b8fc: 41 9e 00 1c beq- cr7,ffc2b918 <== 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; ffc2b900: 80 01 00 08 lwz r0,8(r1) pwd->pw_gid = pwgid; ffc2b904: 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; ffc2b908: b0 1f 00 08 sth r0,8(r31) pwd->pw_gid = pwgid; ffc2b90c: 80 01 00 0c lwz r0,12(r1) ffc2b910: b0 1f 00 0a sth r0,10(r31) return 1; ffc2b914: 48 00 00 08 b ffc2b91c <== ALWAYS TAKEN ffc2b918: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2b91c: 80 01 00 34 lwz r0,52(r1) ffc2b920: 83 81 00 20 lwz r28,32(r1) ffc2b924: 7c 08 03 a6 mtlr r0 ffc2b928: 83 a1 00 24 lwz r29,36(r1) ffc2b92c: 83 c1 00 28 lwz r30,40(r1) ffc2b930: 83 e1 00 2c lwz r31,44(r1) ffc2b934: 38 21 00 30 addi r1,r1,48 ffc2b938: 4e 80 00 20 blr <== ALWAYS TAKEN ffc087c4 : int sched_get_priority_max( int policy ) { switch ( policy ) { ffc087c4: 2b 83 00 03 cmplwi cr7,r3,3 #include int sched_get_priority_max( int policy ) { ffc087c8: 94 21 ff f8 stwu r1,-8(r1) ffc087cc: 7c 08 02 a6 mflr r0 ffc087d0: 90 01 00 0c stw r0,12(r1) switch ( policy ) { ffc087d4: 40 9d 00 18 ble- cr7,ffc087ec case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc087d8: 48 00 a5 a5 bl ffc12d7c <__errno> <== ALWAYS TAKEN ffc087dc: 38 00 00 16 li r0,22 ffc087e0: 90 03 00 00 stw r0,0(r3) ffc087e4: 38 60 ff ff li r3,-1 ffc087e8: 48 00 00 10 b ffc087f8 <== ALWAYS TAKEN } return POSIX_SCHEDULER_MAXIMUM_PRIORITY; ffc087ec: 3d 20 00 00 lis r9,0 ffc087f0: 88 69 26 cc lbz r3,9932(r9) ffc087f4: 38 63 ff ff addi r3,r3,-1 } ffc087f8: 80 01 00 0c lwz r0,12(r1) ffc087fc: 38 21 00 08 addi r1,r1,8 ffc08800: 7c 08 03 a6 mtlr r0 ffc08804: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08808 : int sched_get_priority_min( int policy ) { switch ( policy ) { ffc08808: 2b 83 00 03 cmplwi cr7,r3,3 #include int sched_get_priority_min( int policy ) { ffc0880c: 94 21 ff f8 stwu r1,-8(r1) ffc08810: 7c 08 02 a6 mflr r0 switch ( policy ) { ffc08814: 38 60 00 01 li r3,1 #include int sched_get_priority_min( int policy ) { ffc08818: 90 01 00 0c stw r0,12(r1) switch ( policy ) { ffc0881c: 40 9d 00 14 ble- cr7,ffc08830 case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc08820: 48 00 a5 5d bl ffc12d7c <__errno> <== ALWAYS TAKEN ffc08824: 38 00 00 16 li r0,22 ffc08828: 90 03 00 00 stw r0,0(r3) ffc0882c: 38 60 ff ff li r3,-1 } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } ffc08830: 80 01 00 0c lwz r0,12(r1) ffc08834: 38 21 00 08 addi r1,r1,8 ffc08838: 7c 08 03 a6 mtlr r0 ffc0883c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07ddc : int sched_getparam( pid_t pid __attribute__((unused)), struct sched_param *param __attribute__((unused)) ) { ffc07ddc: 94 21 ff f8 stwu r1,-8(r1) ffc07de0: 7c 08 02 a6 mflr r0 ffc07de4: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07de8: 48 00 ac f1 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07dec: 38 00 00 58 li r0,88 ffc07df0: 90 03 00 00 stw r0,0(r3) } ffc07df4: 38 60 ff ff li r3,-1 ffc07df8: 80 01 00 0c lwz r0,12(r1) ffc07dfc: 38 21 00 08 addi r1,r1,8 ffc07e00: 7c 08 03 a6 mtlr r0 ffc07e04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e08 : #include int sched_getscheduler( pid_t pid __attribute__((unused)) ) { ffc07e08: 94 21 ff f8 stwu r1,-8(r1) ffc07e0c: 7c 08 02 a6 mflr r0 ffc07e10: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07e14: 48 00 ac c5 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07e18: 38 00 00 58 li r0,88 ffc07e1c: 90 03 00 00 stw r0,0(r3) } ffc07e20: 38 60 ff ff li r3,-1 ffc07e24: 80 01 00 0c lwz r0,12(r1) ffc07e28: 38 21 00 08 addi r1,r1,8 ffc07e2c: 7c 08 03 a6 mtlr r0 ffc07e30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08840 : int sched_rr_get_interval( pid_t pid, struct timespec *interval ) { ffc08840: 94 21 ff e8 stwu r1,-24(r1) ffc08844: 7c 08 02 a6 mflr r0 ffc08848: 93 e1 00 14 stw r31,20(r1) /* * Only supported for the "calling process" (i.e. this node). */ if ( pid && pid != getpid() ) ffc0884c: 7c 7f 1b 79 mr. r31,r3 int sched_rr_get_interval( pid_t pid, struct timespec *interval ) { ffc08850: 90 01 00 1c stw r0,28(r1) /* * Only supported for the "calling process" (i.e. this node). */ if ( pid && pid != getpid() ) ffc08854: 41 a2 00 24 beq+ ffc08878 <== NEVER TAKEN ffc08858: 90 81 00 08 stw r4,8(r1) ffc0885c: 4b ff c2 a5 bl ffc04b00 <== ALWAYS TAKEN ffc08860: 7f 9f 18 00 cmpw cr7,r31,r3 ffc08864: 80 81 00 08 lwz r4,8(r1) ffc08868: 41 be 00 10 beq+ cr7,ffc08878 rtems_set_errno_and_return_minus_one( ESRCH ); ffc0886c: 48 00 a5 11 bl ffc12d7c <__errno> <== ALWAYS TAKEN ffc08870: 38 00 00 03 li r0,3 ffc08874: 48 00 00 14 b ffc08888 <== ALWAYS TAKEN if ( !interval ) ffc08878: 2f 84 00 00 cmpwi cr7,r4,0 ffc0887c: 40 be 00 18 bne+ cr7,ffc08894 rtems_set_errno_and_return_minus_one( EINVAL ); ffc08880: 48 00 a4 fd bl ffc12d7c <__errno> <== ALWAYS TAKEN ffc08884: 38 00 00 16 li r0,22 ffc08888: 90 03 00 00 stw r0,0(r3) ffc0888c: 38 60 ff ff li r3,-1 ffc08890: 48 00 00 14 b ffc088a4 <== ALWAYS TAKEN _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval ); ffc08894: 3d 20 00 00 lis r9,0 ffc08898: 80 69 27 90 lwz r3,10128(r9) ffc0889c: 48 00 41 0d bl ffc0c9a8 <_Timespec_From_ticks> <== ALWAYS TAKEN ffc088a0: 38 60 00 00 li r3,0 return 0; } ffc088a4: 80 01 00 1c lwz r0,28(r1) ffc088a8: 83 e1 00 14 lwz r31,20(r1) ffc088ac: 38 21 00 18 addi r1,r1,24 ffc088b0: 7c 08 03 a6 mtlr r0 ffc088b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e34 : int sched_setparam( pid_t pid __attribute__((unused)), const struct sched_param *param __attribute__((unused)) ) { ffc07e34: 94 21 ff f8 stwu r1,-8(r1) ffc07e38: 7c 08 02 a6 mflr r0 ffc07e3c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07e40: 48 00 ac 99 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07e44: 38 00 00 58 li r0,88 ffc07e48: 90 03 00 00 stw r0,0(r3) } ffc07e4c: 38 60 ff ff li r3,-1 ffc07e50: 80 01 00 0c lwz r0,12(r1) ffc07e54: 38 21 00 08 addi r1,r1,8 ffc07e58: 7c 08 03 a6 mtlr r0 ffc07e5c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e60 : int sched_setscheduler( pid_t pid __attribute__((unused)), int policy __attribute__((unused)), const struct sched_param *param __attribute__((unused)) ) { ffc07e60: 94 21 ff f8 stwu r1,-8(r1) ffc07e64: 7c 08 02 a6 mflr r0 ffc07e68: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07e6c: 48 00 ac 6d bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07e70: 38 00 00 58 li r0,88 ffc07e74: 90 03 00 00 stw r0,0(r3) } ffc07e78: 38 60 ff ff li r3,-1 ffc07e7c: 80 01 00 0c lwz r0,12(r1) ffc07e80: 38 21 00 08 addi r1,r1,8 ffc07e84: 7c 08 03 a6 mtlr r0 ffc07e88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc088b8 : ffc088b8: 3d 20 00 00 lis r9,0 #include #include #include int sched_yield( void ) { ffc088bc: 94 21 ff f8 stwu r1,-8(r1) ffc088c0: 7c 08 02 a6 mflr r0 ffc088c4: 81 69 27 98 lwz r11,10136(r9) ffc088c8: 90 01 00 0c stw r0,12(r1) ffc088cc: 38 0b 00 01 addi r0,r11,1 ffc088d0: 90 09 27 98 stw r0,10136(r9) _Thread_Disable_dispatch(); _Thread_Yield_processor(); ffc088d4: 48 00 3f d5 bl ffc0c8a8 <_Thread_Yield_processor> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc088d8: 48 00 2f d5 bl ffc0b8ac <_Thread_Enable_dispatch> <== ALWAYS TAKEN return 0; } ffc088dc: 80 01 00 0c lwz r0,12(r1) ffc088e0: 38 60 00 00 li r3,0 ffc088e4: 7c 08 03 a6 mtlr r0 ffc088e8: 38 21 00 08 addi r1,r1,8 ffc088ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af00 : */ int sem_close( sem_t *sem ) { ffc0af00: 94 21 ff e8 stwu r1,-24(r1) ffc0af04: 7c 08 02 a6 mflr r0 ffc0af08: 90 01 00 1c stw r0,28(r1) RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get ( sem_t *id, Objects_Locations *location ) { return (POSIX_Semaphore_Control *) ffc0af0c: 38 a1 00 08 addi r5,r1,8 ffc0af10: 80 83 00 00 lwz r4,0(r3) ffc0af14: 3c 60 00 00 lis r3,0 ffc0af18: 38 63 30 d8 addi r3,r3,12504 ffc0af1c: 48 00 28 51 bl ffc0d76c <_Objects_Get> <== ALWAYS TAKEN register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc0af20: 80 01 00 08 lwz r0,8(r1) ffc0af24: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af28: 40 9e 00 20 bne- cr7,ffc0af48 case OBJECTS_LOCAL: the_semaphore->open_count -= 1; ffc0af2c: 81 63 00 18 lwz r11,24(r3) ffc0af30: 38 0b ff ff addi r0,r11,-1 ffc0af34: 90 03 00 18 stw r0,24(r3) _POSIX_Semaphore_Delete( the_semaphore ); ffc0af38: 48 00 73 11 bl ffc12248 <_POSIX_Semaphore_Delete> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0af3c: 48 00 33 ad bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0af40: 38 60 00 00 li r3,0 return 0; ffc0af44: 48 00 00 14 b ffc0af58 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc0af48: 48 00 b7 55 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc0af4c: 38 00 00 16 li r0,22 ffc0af50: 90 03 00 00 stw r0,0(r3) ffc0af54: 38 60 ff ff li r3,-1 } ffc0af58: 80 01 00 1c lwz r0,28(r1) ffc0af5c: 38 21 00 18 addi r1,r1,24 ffc0af60: 7c 08 03 a6 mtlr r0 ffc0af64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af68 : */ int sem_destroy( sem_t *sem ) { ffc0af68: 94 21 ff e8 stwu r1,-24(r1) ffc0af6c: 7c 08 02 a6 mflr r0 ffc0af70: 90 01 00 1c stw r0,28(r1) ffc0af74: 38 a1 00 08 addi r5,r1,8 ffc0af78: 80 83 00 00 lwz r4,0(r3) ffc0af7c: 3c 60 00 00 lis r3,0 ffc0af80: 38 63 30 d8 addi r3,r3,12504 ffc0af84: 48 00 27 e9 bl ffc0d76c <_Objects_Get> <== ALWAYS TAKEN register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc0af88: 80 01 00 08 lwz r0,8(r1) ffc0af8c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af90: 40 9e 00 28 bne- cr7,ffc0afb8 case OBJECTS_LOCAL: /* * Undefined operation on a named semaphore. */ if ( the_semaphore->named == true ) { ffc0af94: 88 03 00 14 lbz r0,20(r3) ffc0af98: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af9c: 41 be 00 0c beq+ cr7,ffc0afa8 _Thread_Enable_dispatch(); ffc0afa0: 48 00 33 49 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0afa4: 48 00 00 14 b ffc0afb8 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); } _POSIX_Semaphore_Delete( the_semaphore ); ffc0afa8: 48 00 72 a1 bl ffc12248 <_POSIX_Semaphore_Delete> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0afac: 48 00 33 3d bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0afb0: 38 60 00 00 li r3,0 return 0; ffc0afb4: 48 00 00 14 b ffc0afc8 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc0afb8: 48 00 b6 e5 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc0afbc: 38 00 00 16 li r0,22 ffc0afc0: 90 03 00 00 stw r0,0(r3) ffc0afc4: 38 60 ff ff li r3,-1 } ffc0afc8: 80 01 00 1c lwz r0,28(r1) ffc0afcc: 38 21 00 18 addi r1,r1,24 ffc0afd0: 7c 08 03 a6 mtlr r0 ffc0afd4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0afd8 : int sem_getvalue( sem_t *sem, int *sval ) { ffc0afd8: 94 21 ff e0 stwu r1,-32(r1) ffc0afdc: 7c 08 02 a6 mflr r0 ffc0afe0: 90 01 00 24 stw r0,36(r1) ffc0afe4: 38 a1 00 08 addi r5,r1,8 ffc0afe8: 80 03 00 00 lwz r0,0(r3) ffc0afec: 3c 60 00 00 lis r3,0 ffc0aff0: 93 e1 00 1c stw r31,28(r1) ffc0aff4: 38 63 30 d8 addi r3,r3,12504 ffc0aff8: 7c 9f 23 78 mr r31,r4 ffc0affc: 7c 04 03 78 mr r4,r0 <== ALWAYS TAKEN ffc0b000: 48 00 27 6d bl ffc0d76c <_Objects_Get> <== ALWAYS TAKEN register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc0b004: 80 01 00 08 lwz r0,8(r1) ffc0b008: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b00c: 40 9e 00 18 bne- cr7,ffc0b024 case OBJECTS_LOCAL: *sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore ); ffc0b010: 80 03 00 64 lwz r0,100(r3) ffc0b014: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc0b018: 48 00 32 d1 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0b01c: 38 60 00 00 li r3,0 return 0; ffc0b020: 48 00 00 14 b ffc0b034 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b024: 48 00 b6 79 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc0b028: 38 00 00 16 li r0,22 ffc0b02c: 90 03 00 00 stw r0,0(r3) ffc0b030: 38 60 ff ff li r3,-1 } ffc0b034: 80 01 00 24 lwz r0,36(r1) ffc0b038: 83 e1 00 1c lwz r31,28(r1) ffc0b03c: 38 21 00 20 addi r1,r1,32 ffc0b040: 7c 08 03 a6 mtlr r0 ffc0b044: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b048 : int sem_init( sem_t *sem, int pshared, unsigned int value ) { ffc0b048: 94 21 ff e0 stwu r1,-32(r1) ffc0b04c: 7c 08 02 a6 mflr r0 ffc0b050: 93 e1 00 1c stw r31,28(r1) int status; POSIX_Semaphore_Control *the_semaphore; if ( !sem ) ffc0b054: 7c 7f 1b 79 mr. r31,r3 int sem_init( sem_t *sem, int pshared, unsigned int value ) { ffc0b058: 90 01 00 24 stw r0,36(r1) int status; POSIX_Semaphore_Control *the_semaphore; if ( !sem ) ffc0b05c: 40 a2 00 18 bne+ ffc0b074 rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b060: 48 00 b6 3d bl ffc1669c <__errno> <== ALWAYS TAKEN ffc0b064: 38 00 00 16 li r0,22 ffc0b068: 90 03 00 00 stw r0,0(r3) ffc0b06c: 38 60 ff ff li r3,-1 ffc0b070: 48 00 00 24 b ffc0b094 <== ALWAYS TAKEN status = _POSIX_Semaphore_Create_support( ffc0b074: 38 60 00 00 li r3,0 ffc0b078: 38 c1 00 08 addi r6,r1,8 ffc0b07c: 48 00 70 99 bl ffc12114 <_POSIX_Semaphore_Create_support> <== ALWAYS TAKEN pshared, value, &the_semaphore ); if ( status != -1 ) ffc0b080: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0b084: 41 9e 00 10 beq- cr7,ffc0b094 *sem = the_semaphore->Object.id; ffc0b088: 81 21 00 08 lwz r9,8(r1) ffc0b08c: 80 09 00 08 lwz r0,8(r9) ffc0b090: 90 1f 00 00 stw r0,0(r31) return status; } ffc0b094: 80 01 00 24 lwz r0,36(r1) ffc0b098: 83 e1 00 1c lwz r31,28(r1) ffc0b09c: 38 21 00 20 addi r1,r1,32 ffc0b0a0: 7c 08 03 a6 mtlr r0 ffc0b0a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b0a8 : rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0b0a8: 3d 20 00 00 lis r9,0 int oflag, ... /* mode_t mode, */ /* unsigned int value */ ) { ffc0b0ac: 94 21 ff b8 stwu r1,-72(r1) ffc0b0b0: 7c 08 02 a6 mflr r0 ffc0b0b4: 81 69 27 90 lwz r11,10128(r9) ffc0b0b8: 93 c1 00 40 stw r30,64(r1) ffc0b0bc: 7c 9e 23 78 mr r30,r4 ffc0b0c0: 39 6b 00 01 addi r11,r11,1 ffc0b0c4: 93 e1 00 44 stw r31,68(r1) ffc0b0c8: 7c 7f 1b 78 mr r31,r3 ffc0b0cc: 90 01 00 4c stw r0,76(r1) ffc0b0d0: 93 61 00 34 stw r27,52(r1) ffc0b0d4: 93 81 00 38 stw r28,56(r1) ffc0b0d8: 93 a1 00 3c stw r29,60(r1) ffc0b0dc: 90 a1 00 28 stw r5,40(r1) ffc0b0e0: 91 69 27 90 stw r11,10128(r9) ffc0b0e4: 90 c1 00 2c stw r6,44(r1) POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { ffc0b0e8: 70 9c 02 00 andi. r28,r4,512 ffc0b0ec: 40 82 00 0c bne- ffc0b0f8 ffc0b0f0: 3b a0 00 00 li r29,0 ffc0b0f4: 48 00 00 20 b ffc0b114 <== ALWAYS TAKEN va_start(arg, oflag); ffc0b0f8: 38 01 00 50 addi r0,r1,80 mode = (mode_t) va_arg( arg, unsigned int ); value = va_arg( arg, unsigned int ); ffc0b0fc: 83 a1 00 2c lwz r29,44(r1) Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { va_start(arg, oflag); ffc0b100: 90 01 00 18 stw r0,24(r1) ffc0b104: 38 01 00 20 addi r0,r1,32 ffc0b108: 90 01 00 1c stw r0,28(r1) mode = (mode_t) va_arg( arg, unsigned int ); value = va_arg( arg, unsigned int ); ffc0b10c: 38 00 00 04 li r0,4 ffc0b110: 98 01 00 14 stb r0,20(r1) va_end(arg); } status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id ); ffc0b114: 7f e3 fb 78 mr r3,r31 ffc0b118: 38 81 00 08 addi r4,r1,8 ffc0b11c: 48 00 71 a5 bl ffc122c0 <_POSIX_Semaphore_Name_to_id> <== ALWAYS TAKEN * and we can just return a pointer to the id. Otherwise we may * need to check to see if this is a "semaphore does not exist" * or some other miscellaneous error on the name. */ if ( status ) { ffc0b120: 7c 7b 1b 79 mr. r27,r3 ffc0b124: 41 82 00 24 beq- ffc0b148 /* * Unless provided a valid name that did not already exist * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { ffc0b128: 2f 9b 00 02 cmpwi cr7,r27,2 ffc0b12c: 40 9e 00 0c bne- cr7,ffc0b138 <== NEVER TAKEN ffc0b130: 2f 9c 00 00 cmpwi cr7,r28,0 ffc0b134: 40 9e 00 68 bne- cr7,ffc0b19c _Thread_Enable_dispatch(); ffc0b138: 48 00 31 b1 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one_cast( status, sem_t * ); ffc0b13c: 48 00 b5 61 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc0b140: 93 63 00 00 stw r27,0(r3) ffc0b144: 48 00 00 20 b ffc0b164 <== ALWAYS TAKEN /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { ffc0b148: 73 de 0a 00 andi. r30,r30,2560 ffc0b14c: 2f 9e 0a 00 cmpwi cr7,r30,2560 ffc0b150: 40 be 00 1c bne+ cr7,ffc0b16c _Thread_Enable_dispatch(); ffc0b154: 48 00 31 95 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * ); ffc0b158: 48 00 b5 45 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc0b15c: 38 00 00 11 li r0,17 ffc0b160: 90 03 00 00 stw r0,0(r3) ffc0b164: 38 60 ff ff li r3,-1 ffc0b168: 48 00 00 64 b ffc0b1cc <== ALWAYS TAKEN ffc0b16c: 80 81 00 08 lwz r4,8(r1) ffc0b170: 3c 60 00 00 lis r3,0 ffc0b174: 38 a1 00 10 addi r5,r1,16 ffc0b178: 38 63 30 d8 addi r3,r3,12504 ffc0b17c: 48 00 25 f1 bl ffc0d76c <_Objects_Get> <== ALWAYS TAKEN } the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location ); the_semaphore->open_count += 1; ffc0b180: 81 23 00 18 lwz r9,24(r3) if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * ); } the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location ); ffc0b184: 90 61 00 0c stw r3,12(r1) the_semaphore->open_count += 1; ffc0b188: 38 09 00 01 addi r0,r9,1 ffc0b18c: 90 03 00 18 stw r0,24(r3) _Thread_Enable_dispatch(); ffc0b190: 48 00 31 59 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0b194: 48 00 31 55 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN goto return_id; ffc0b198: 48 00 00 2c b ffc0b1c4 <== ALWAYS TAKEN /* * At this point, the semaphore does not exist and everything has been * checked. We should go ahead and create a semaphore. */ status =_POSIX_Semaphore_Create_support( ffc0b19c: 7f a5 eb 78 mr r5,r29 ffc0b1a0: 7f e3 fb 78 mr r3,r31 ffc0b1a4: 38 80 00 00 li r4,0 ffc0b1a8: 38 c1 00 0c addi r6,r1,12 ffc0b1ac: 48 00 6f 69 bl ffc12114 <_POSIX_Semaphore_Create_support> <== ALWAYS TAKEN ffc0b1b0: 7c 7f 1b 78 mr r31,r3 /* * errno was set by Create_support, so don't set it again. */ _Thread_Enable_dispatch(); ffc0b1b4: 48 00 31 35 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( status == -1 ) ffc0b1b8: 2f 9f ff ff cmpwi cr7,r31,-1 ffc0b1bc: 38 60 ff ff li r3,-1 ffc0b1c0: 41 9e 00 0c beq- cr7,ffc0b1cc return_id: #if defined(RTEMS_USE_16_BIT_OBJECT) the_semaphore->Semaphore_id = the_semaphore->Object.id; id = &the_semaphore->Semaphore_id; #else id = (sem_t *)&the_semaphore->Object.id; ffc0b1c4: 80 61 00 0c lwz r3,12(r1) ffc0b1c8: 38 63 00 08 addi r3,r3,8 #endif return id; } ffc0b1cc: 80 01 00 4c lwz r0,76(r1) ffc0b1d0: 83 61 00 34 lwz r27,52(r1) ffc0b1d4: 7c 08 03 a6 mtlr r0 ffc0b1d8: 83 81 00 38 lwz r28,56(r1) ffc0b1dc: 83 a1 00 3c lwz r29,60(r1) ffc0b1e0: 83 c1 00 40 lwz r30,64(r1) ffc0b1e4: 83 e1 00 44 lwz r31,68(r1) ffc0b1e8: 38 21 00 48 addi r1,r1,72 ffc0b1ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b1f0 : */ int sem_post( sem_t *sem ) { ffc0b1f0: 94 21 ff e8 stwu r1,-24(r1) ffc0b1f4: 7c 08 02 a6 mflr r0 ffc0b1f8: 90 01 00 1c stw r0,28(r1) ffc0b1fc: 38 a1 00 08 addi r5,r1,8 ffc0b200: 80 83 00 00 lwz r4,0(r3) ffc0b204: 3c 60 00 00 lis r3,0 ffc0b208: 38 63 30 d8 addi r3,r3,12504 ffc0b20c: 48 00 25 61 bl ffc0d76c <_Objects_Get> <== ALWAYS TAKEN register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc0b210: 80 01 00 08 lwz r0,8(r1) ffc0b214: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b218: 40 9e 00 20 bne- cr7,ffc0b238 case OBJECTS_LOCAL: _CORE_semaphore_Surrender( ffc0b21c: 80 83 00 08 lwz r4,8(r3) ffc0b220: 38 a0 00 00 li r5,0 ffc0b224: 38 63 00 1c addi r3,r3,28 ffc0b228: 48 00 1a 31 bl ffc0cc58 <_CORE_semaphore_Surrender> <== ALWAYS TAKEN NULL /* XXX need to define a routine to handle this case */ #else NULL #endif ); _Thread_Enable_dispatch(); ffc0b22c: 48 00 30 bd bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0b230: 38 60 00 00 li r3,0 return 0; ffc0b234: 48 00 00 14 b ffc0b248 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b238: 48 00 b4 65 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc0b23c: 38 00 00 16 li r0,22 ffc0b240: 90 03 00 00 stw r0,0(r3) ffc0b244: 38 60 ff ff li r3,-1 } ffc0b248: 80 01 00 1c lwz r0,28(r1) ffc0b24c: 38 21 00 18 addi r1,r1,24 ffc0b250: 7c 08 03 a6 mtlr r0 ffc0b254: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b258 : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { ffc0b258: 94 21 ff e0 stwu r1,-32(r1) ffc0b25c: 7c 08 02 a6 mflr r0 ffc0b260: 93 e1 00 1c stw r31,28(r1) ffc0b264: 7c 7f 1b 78 mr r31,r3 * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0b268: 7c 83 23 78 mr r3,r4 ffc0b26c: 38 81 00 08 addi r4,r1,8 int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { ffc0b270: 90 01 00 24 stw r0,36(r1) * * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); ffc0b274: 48 00 63 d9 bl ffc1164c <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); ffc0b278: 68 64 00 03 xori r4,r3,3 ffc0b27c: 80 a1 00 08 lwz r5,8(r1) ffc0b280: 7c 84 00 34 cntlzw r4,r4 ffc0b284: 7f e3 fb 78 mr r3,r31 ffc0b288: 54 84 d9 7e rlwinm r4,r4,27,5,31 ffc0b28c: 48 00 70 e9 bl ffc12374 <_POSIX_Semaphore_Wait_support> <== ALWAYS TAKEN break; } } return lock_status; } ffc0b290: 80 01 00 24 lwz r0,36(r1) ffc0b294: 83 e1 00 1c lwz r31,28(r1) ffc0b298: 38 21 00 20 addi r1,r1,32 ffc0b29c: 7c 08 03 a6 mtlr r0 ffc0b2a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b2a4 : */ int sem_trywait( sem_t *sem ) { ffc0b2a4: 94 21 ff f8 stwu r1,-8(r1) ffc0b2a8: 7c 08 02 a6 mflr r0 return _POSIX_Semaphore_Wait_support(sem, false, THREAD_QUEUE_WAIT_FOREVER); ffc0b2ac: 38 80 00 00 li r4,0 ffc0b2b0: 38 a0 00 00 li r5,0 */ int sem_trywait( sem_t *sem ) { ffc0b2b4: 90 01 00 0c stw r0,12(r1) return _POSIX_Semaphore_Wait_support(sem, false, THREAD_QUEUE_WAIT_FOREVER); ffc0b2b8: 48 00 70 bd bl ffc12374 <_POSIX_Semaphore_Wait_support> <== ALWAYS TAKEN } ffc0b2bc: 80 01 00 0c lwz r0,12(r1) ffc0b2c0: 38 21 00 08 addi r1,r1,8 ffc0b2c4: 7c 08 03 a6 mtlr r0 ffc0b2c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b2cc : ffc0b2cc: 3d 20 00 00 lis r9,0 */ int sem_unlink( const char *name ) { ffc0b2d0: 94 21 ff e0 stwu r1,-32(r1) ffc0b2d4: 7c 08 02 a6 mflr r0 ffc0b2d8: 81 69 27 90 lwz r11,10128(r9) ffc0b2dc: 90 01 00 24 stw r0,36(r1) ffc0b2e0: 38 0b 00 01 addi r0,r11,1 ffc0b2e4: 93 c1 00 18 stw r30,24(r1) ffc0b2e8: 93 e1 00 1c stw r31,28(r1) ffc0b2ec: 90 09 27 90 stw r0,10128(r9) register POSIX_Semaphore_Control *the_semaphore; sem_t the_semaphore_id; _Thread_Disable_dispatch(); status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id ); ffc0b2f0: 38 81 00 08 addi r4,r1,8 ffc0b2f4: 48 00 6f cd bl ffc122c0 <_POSIX_Semaphore_Name_to_id> <== ALWAYS TAKEN if ( status != 0 ) { ffc0b2f8: 7c 7e 1b 79 mr. r30,r3 ffc0b2fc: 41 a2 00 18 beq+ ffc0b314 _Thread_Enable_dispatch(); ffc0b300: 48 00 2f e9 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( status ); ffc0b304: 48 00 b3 99 bl ffc1669c <__errno> <== ALWAYS TAKEN ffc0b308: 93 c3 00 00 stw r30,0(r3) ffc0b30c: 38 60 ff ff li r3,-1 ffc0b310: 48 00 00 38 b ffc0b348 <== ALWAYS TAKEN } the_semaphore = (POSIX_Semaphore_Control *) _Objects_Get_local_object( ffc0b314: 3c 60 00 00 lis r3,0 ffc0b318: a0 01 00 0a lhz r0,10(r1) ffc0b31c: 38 63 30 d8 addi r3,r3,12504 ffc0b320: 81 23 00 1c lwz r9,28(r3) ffc0b324: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0b328: 7f e9 00 2e lwzx r31,r9,r0 &_POSIX_Semaphore_Information, _Objects_Get_index( the_semaphore_id ) ); the_semaphore->linked = false; ffc0b32c: 9b df 00 15 stb r30,21(r31) RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Namespace_remove ( POSIX_Semaphore_Control *the_semaphore ) { _Objects_Namespace_remove( ffc0b330: 7f e4 fb 78 mr r4,r31 ffc0b334: 48 00 25 bd bl ffc0d8f0 <_Objects_Namespace_remove> <== ALWAYS TAKEN _POSIX_Semaphore_Namespace_remove( the_semaphore ); _POSIX_Semaphore_Delete( the_semaphore ); ffc0b338: 7f e3 fb 78 mr r3,r31 ffc0b33c: 48 00 6f 0d bl ffc12248 <_POSIX_Semaphore_Delete> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0b340: 48 00 2f a9 bl ffc0e2e8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0b344: 38 60 00 00 li r3,0 return 0; } ffc0b348: 80 01 00 24 lwz r0,36(r1) ffc0b34c: 83 c1 00 18 lwz r30,24(r1) ffc0b350: 7c 08 03 a6 mtlr r0 ffc0b354: 83 e1 00 1c lwz r31,28(r1) ffc0b358: 38 21 00 20 addi r1,r1,32 ffc0b35c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b360 : */ int sem_wait( sem_t *sem ) { ffc0b360: 94 21 ff f8 stwu r1,-8(r1) ffc0b364: 7c 08 02 a6 mflr r0 return _POSIX_Semaphore_Wait_support( sem, true, THREAD_QUEUE_WAIT_FOREVER ); ffc0b368: 38 80 00 01 li r4,1 ffc0b36c: 38 a0 00 00 li r5,0 */ int sem_wait( sem_t *sem ) { ffc0b370: 90 01 00 0c stw r0,12(r1) return _POSIX_Semaphore_Wait_support( sem, true, THREAD_QUEUE_WAIT_FOREVER ); ffc0b374: 48 00 70 01 bl ffc12374 <_POSIX_Semaphore_Wait_support> <== ALWAYS TAKEN } ffc0b378: 80 01 00 0c lwz r0,12(r1) ffc0b37c: 38 21 00 08 addi r1,r1,8 ffc0b380: 7c 08 03 a6 mtlr r0 ffc0b384: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2b32c : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; ffc2b32c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2b330: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc2b334: b0 69 00 34 sth r3,52(r9) <== NOT EXECUTED return 0; } ffc2b338: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2b33c: 4e 80 00 20 blr <== NOT EXECUTED ffc2ba88 : return NULL; return &grent; } void setgrent(void) { ffc2ba88: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2ba8c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2ba90: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc2ba94: 4b ff ff 05 bl ffc2b998 <== NOT EXECUTED if (group_fp != NULL) ffc2ba98: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2ba9c: 80 69 5f 74 lwz r3,24436(r9) <== NOT EXECUTED ffc2baa0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2baa4: 41 9e 00 08 beq- cr7,ffc2baac <== NOT EXECUTED fclose(group_fp); ffc2baa8: 48 01 bd 85 bl ffc4782c <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); ffc2baac: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED ffc2bab0: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc2bab4: 38 63 34 e0 addi r3,r3,13536 <== NOT EXECUTED ffc2bab8: 38 84 4e bc addi r4,r4,20156 <== NOT EXECUTED ffc2babc: 48 01 c8 9d bl ffc48358 <== NOT EXECUTED } ffc2bac0: 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"); ffc2bac4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED } ffc2bac8: 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"); ffc2bacc: 90 69 5f 74 stw r3,24436(r9) <== NOT EXECUTED } ffc2bad0: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2bad4: 4e 80 00 20 blr <== NOT EXECUTED ffc079f8 : int which, const struct itimerval *value, struct itimerval *ovalue ) { if ( !value ) ffc079f8: 2f 84 00 00 cmpwi cr7,r4,0 int setitimer( int which, const struct itimerval *value, struct itimerval *ovalue ) { ffc079fc: 94 21 ff f8 stwu r1,-8(r1) ffc07a00: 7c 08 02 a6 mflr r0 ffc07a04: 90 01 00 0c stw r0,12(r1) if ( !value ) ffc07a08: 41 9e 00 0c beq- cr7,ffc07a14 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !ovalue ) ffc07a0c: 2f 85 00 00 cmpwi cr7,r5,0 ffc07a10: 40 be 00 10 bne+ cr7,ffc07a20 rtems_set_errno_and_return_minus_one( EFAULT ); ffc07a14: 48 00 ac 2d bl ffc12640 <__errno> <== ALWAYS TAKEN ffc07a18: 38 00 00 0e li r0,14 ffc07a1c: 48 00 00 20 b ffc07a3c <== ALWAYS TAKEN switch ( which ) { ffc07a20: 2b 83 00 02 cmplwi cr7,r3,2 ffc07a24: 41 9d 00 10 bgt- cr7,ffc07a34 case ITIMER_REAL: case ITIMER_VIRTUAL: case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07a28: 48 00 ac 19 bl ffc12640 <__errno> <== ALWAYS TAKEN ffc07a2c: 38 00 00 58 li r0,88 ffc07a30: 48 00 00 0c b ffc07a3c <== ALWAYS TAKEN default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc07a34: 48 00 ac 0d bl ffc12640 <__errno> <== ALWAYS TAKEN ffc07a38: 38 00 00 16 li r0,22 ffc07a3c: 90 03 00 00 stw r0,0(r3) } ffc07a40: 38 60 ff ff li r3,-1 ffc07a44: 80 01 00 0c lwz r0,12(r1) ffc07a48: 38 21 00 08 addi r1,r1,8 ffc07a4c: 7c 08 03 a6 mtlr r0 ffc07a50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2bcd4 : return NULL; return &pwent; } void setpwent(void) { ffc2bcd4: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2bcd8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2bcdc: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc2bce0: 4b ff fc b9 bl ffc2b998 <== NOT EXECUTED if (passwd_fp != NULL) ffc2bce4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2bce8: 80 69 5f 78 lwz r3,24440(r9) <== NOT EXECUTED ffc2bcec: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2bcf0: 41 9e 00 08 beq- cr7,ffc2bcf8 <== NOT EXECUTED fclose(passwd_fp); ffc2bcf4: 48 01 bb 39 bl ffc4782c <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); ffc2bcf8: 3c 60 ff c6 lis r3,-58 <== NOT EXECUTED ffc2bcfc: 3c 80 ff c6 lis r4,-58 <== NOT EXECUTED ffc2bd00: 38 63 34 32 addi r3,r3,13362 <== NOT EXECUTED ffc2bd04: 38 84 4e bc addi r4,r4,20156 <== NOT EXECUTED ffc2bd08: 48 01 c6 51 bl ffc48358 <== NOT EXECUTED } ffc2bd0c: 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"); ffc2bd10: 3d 20 00 00 lis r9,0 <== NOT EXECUTED } ffc2bd14: 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"); ffc2bd18: 90 69 5f 78 stw r3,24440(r9) <== NOT EXECUTED } ffc2bd1c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2bd20: 4e 80 00 20 blr <== NOT EXECUTED ffc08588 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; ffc08588: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0858c: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc08590: b0 69 00 32 sth r3,50(r9) <== NOT EXECUTED return 0; } ffc08594: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc08598: 4e 80 00 20 blr <== NOT EXECUTED ffc0867c : struct sigaction *oact ) { ISR_Level level; if ( oact ) ffc0867c: 2c 05 00 00 cmpwi r5,0 int sigaction( int sig, const struct sigaction *act, struct sigaction *oact ) { ffc08680: 94 21 ff e8 stwu r1,-24(r1) ffc08684: 7c 08 02 a6 mflr r0 ffc08688: 93 c1 00 10 stw r30,16(r1) ffc0868c: 7c 9e 23 78 mr r30,r4 ffc08690: 90 01 00 1c stw r0,28(r1) ffc08694: 93 81 00 08 stw r28,8(r1) ffc08698: 93 a1 00 0c stw r29,12(r1) ffc0869c: 93 e1 00 14 stw r31,20(r1) ISR_Level level; if ( oact ) ffc086a0: 41 82 00 2c beq- ffc086cc *oact = _POSIX_signals_Vectors[ sig ]; ffc086a4: 1c 03 00 0c mulli r0,r3,12 ffc086a8: 3d 60 00 00 lis r11,0 ffc086ac: 39 6b 31 b0 addi r11,r11,12720 ffc086b0: 7d 2b 02 14 add r9,r11,r0 ffc086b4: 7d 6b 00 2e lwzx r11,r11,r0 ffc086b8: 81 49 00 08 lwz r10,8(r9) ffc086bc: 80 09 00 04 lwz r0,4(r9) ffc086c0: 91 45 00 08 stw r10,8(r5) ffc086c4: 91 65 00 00 stw r11,0(r5) ffc086c8: 90 05 00 04 stw r0,4(r5) if ( !sig ) ffc086cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc086d0: 41 9e 00 18 beq- cr7,ffc086e8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) ffc086d4: 38 03 ff ff addi r0,r3,-1 ffc086d8: 2b 80 00 1f cmplwi cr7,r0,31 ffc086dc: 41 9d 00 0c bgt- cr7,ffc086e8 * * NOTE: Solaris documentation claims to "silently enforce" this which * contradicts the POSIX specification. */ if ( sig == SIGKILL ) ffc086e0: 2f 83 00 09 cmpwi cr7,r3,9 ffc086e4: 40 be 00 18 bne+ cr7,ffc086fc rtems_set_errno_and_return_minus_one( EINVAL ); ffc086e8: 48 00 a8 d1 bl ffc12fb8 <__errno> <== ALWAYS TAKEN ffc086ec: 38 00 00 16 li r0,22 ffc086f0: 90 03 00 00 stw r0,0(r3) ffc086f4: 38 00 ff ff li r0,-1 ffc086f8: 48 00 00 7c b ffc08774 <== ALWAYS TAKEN /* * Evaluate the new action structure and set the global signal vector * appropriately. */ if ( act ) { ffc086fc: 2f 9e 00 00 cmpwi cr7,r30,0 ffc08700: 38 00 00 00 li r0,0 ffc08704: 41 9e 00 70 beq- cr7,ffc08774 <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08708: 7f 80 00 a6 mfmsr r28 ffc0870c: 7c 10 42 a6 mfsprg r0,0 ffc08710: 7f 80 00 78 andc r0,r28,r0 ffc08714: 7c 00 01 24 mtmsr r0 * Unless the user is installing the default signal actions, then * we can just copy the provided sigaction structure into the vectors. */ _ISR_Disable( level ); if ( act->sa_handler == SIG_DFL ) { ffc08718: 80 1e 00 08 lwz r0,8(r30) ffc0871c: 3f a0 00 00 lis r29,0 ffc08720: 3b bd 31 b0 addi r29,r29,12720 ffc08724: 2f 80 00 00 cmpwi cr7,r0,0 ffc08728: 1f e3 00 0c mulli r31,r3,12 ffc0872c: 40 be 00 20 bne+ cr7,ffc0874c _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ]; ffc08730: 3d 60 ff c2 lis r11,-62 ffc08734: 39 6b 07 60 addi r11,r11,1888 ffc08738: 7d 2b fa 14 add r9,r11,r31 ffc0873c: 7d 4b f8 2e lwzx r10,r11,r31 ffc08740: 80 09 00 04 lwz r0,4(r9) ffc08744: 81 69 00 08 lwz r11,8(r9) ffc08748: 48 00 00 14 b ffc0875c <== ALWAYS TAKEN } else { _POSIX_signals_Clear_process_signals( sig ); ffc0874c: 48 00 68 65 bl ffc0efb0 <_POSIX_signals_Clear_process_signals> <== ALWAYS TAKEN _POSIX_signals_Vectors[ sig ] = *act; ffc08750: 81 7e 00 08 lwz r11,8(r30) ffc08754: 81 5e 00 00 lwz r10,0(r30) ffc08758: 80 1e 00 04 lwz r0,4(r30) ffc0875c: 7d 3d fa 14 add r9,r29,r31 ffc08760: 7d 5d f9 2e stwx r10,r29,r31 ffc08764: 91 69 00 08 stw r11,8(r9) ffc08768: 90 09 00 04 stw r0,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0876c: 7f 80 01 24 mtmsr r28 ffc08770: 38 00 00 00 li r0,0 * + If we are now ignoring a signal that was previously pending, * we clear the pending signal indicator. */ return 0; } ffc08774: 7c 03 03 78 mr r3,r0 ffc08778: 80 01 00 1c lwz r0,28(r1) ffc0877c: 83 81 00 08 lwz r28,8(r1) ffc08780: 7c 08 03 a6 mtlr r0 ffc08784: 83 a1 00 0c lwz r29,12(r1) ffc08788: 83 c1 00 10 lwz r30,16(r1) ffc0878c: 83 e1 00 14 lwz r31,20(r1) ffc08790: 38 21 00 18 addi r1,r1,24 ffc08794: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08798 : int sigaddset( sigset_t *set, int signo ) { if ( !set ) ffc08798: 2c 03 00 00 cmpwi r3,0 int sigaddset( sigset_t *set, int signo ) { ffc0879c: 94 21 ff f8 stwu r1,-8(r1) ffc087a0: 7c 08 02 a6 mflr r0 ffc087a4: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc087a8: 41 82 00 18 beq- ffc087c0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) ffc087ac: 2f 84 00 00 cmpwi cr7,r4,0 ffc087b0: 41 9e 00 10 beq- cr7,ffc087c0 ffc087b4: 38 84 ff ff addi r4,r4,-1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(signo) ) ffc087b8: 2b 84 00 1f cmplwi cr7,r4,31 ffc087bc: 40 bd 00 18 ble+ cr7,ffc087d4 rtems_set_errno_and_return_minus_one( EINVAL ); ffc087c0: 48 00 a7 f9 bl ffc12fb8 <__errno> <== ALWAYS TAKEN ffc087c4: 38 00 00 16 li r0,22 ffc087c8: 90 03 00 00 stw r0,0(r3) ffc087cc: 38 60 ff ff li r3,-1 ffc087d0: 48 00 00 1c b ffc087ec <== ALWAYS TAKEN *set |= signo_to_mask(signo); ffc087d4: 80 03 00 00 lwz r0,0(r3) ffc087d8: 39 20 00 01 li r9,1 ffc087dc: 7d 24 20 30 slw r4,r9,r4 ffc087e0: 7c 04 23 78 or r4,r0,r4 ffc087e4: 90 83 00 00 stw r4,0(r3) ffc087e8: 38 60 00 00 li r3,0 return 0; } ffc087ec: 80 01 00 0c lwz r0,12(r1) ffc087f0: 38 21 00 08 addi r1,r1,8 ffc087f4: 7c 08 03 a6 mtlr r0 ffc087f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ac10 : int sigdelset( sigset_t *set, int signo ) { if ( !set ) ffc0ac10: 7c 69 1b 79 mr. r9,r3 int sigdelset( sigset_t *set, int signo ) { ffc0ac14: 94 21 ff f8 stwu r1,-8(r1) ffc0ac18: 7c 08 02 a6 mflr r0 ffc0ac1c: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc0ac20: 41 82 00 1c beq- ffc0ac3c rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) ffc0ac24: 2f 84 00 00 cmpwi cr7,r4,0 ffc0ac28: 38 60 00 00 li r3,0 ffc0ac2c: 41 9e 00 3c beq- cr7,ffc0ac68 ffc0ac30: 38 84 ff ff addi r4,r4,-1 return 0; if ( !is_valid_signo(signo) ) ffc0ac34: 2b 84 00 1f cmplwi cr7,r4,31 ffc0ac38: 40 bd 00 18 ble+ cr7,ffc0ac50 rtems_set_errno_and_return_minus_one( EINVAL ); ffc0ac3c: 48 00 a8 e5 bl ffc15520 <__errno> <== ALWAYS TAKEN ffc0ac40: 38 00 00 16 li r0,22 ffc0ac44: 90 03 00 00 stw r0,0(r3) ffc0ac48: 38 60 ff ff li r3,-1 ffc0ac4c: 48 00 00 1c b ffc0ac68 <== ALWAYS TAKEN *set &= ~signo_to_mask(signo); ffc0ac50: 80 09 00 00 lwz r0,0(r9) ffc0ac54: 39 60 ff fe li r11,-2 ffc0ac58: 5d 64 20 3e rotlw r4,r11,r4 ffc0ac5c: 7c 04 20 38 and r4,r0,r4 ffc0ac60: 90 89 00 00 stw r4,0(r9) ffc0ac64: 38 60 00 00 li r3,0 return 0; } ffc0ac68: 80 01 00 0c lwz r0,12(r1) ffc0ac6c: 38 21 00 08 addi r1,r1,8 ffc0ac70: 7c 08 03 a6 mtlr r0 ffc0ac74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dd58 : int sigemptyset( sigset_t *set ) { if ( !set ) ffc0dd58: 2c 03 00 00 cmpwi r3,0 #include int sigemptyset( sigset_t *set ) { ffc0dd5c: 94 21 ff f8 stwu r1,-8(r1) ffc0dd60: 7c 08 02 a6 mflr r0 ffc0dd64: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc0dd68: 40 a2 00 18 bne+ ffc0dd80 rtems_set_errno_and_return_minus_one( EINVAL ); ffc0dd6c: 48 00 3e a1 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc0dd70: 38 00 00 16 li r0,22 ffc0dd74: 90 03 00 00 stw r0,0(r3) ffc0dd78: 38 60 ff ff li r3,-1 ffc0dd7c: 48 00 00 10 b ffc0dd8c <== ALWAYS TAKEN *set = 0; ffc0dd80: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc0dd84: 90 03 00 00 stw r0,0(r3) <== ALWAYS TAKEN ffc0dd88: 38 60 00 00 li r3,0 return 0; } ffc0dd8c: 80 01 00 0c lwz r0,12(r1) ffc0dd90: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc0dd94: 7c 08 03 a6 mtlr r0 ffc0dd98: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0acbc : int sigfillset( sigset_t *set ) { if ( !set ) ffc0acbc: 2c 03 00 00 cmpwi r3,0 #include int sigfillset( sigset_t *set ) { ffc0acc0: 94 21 ff f8 stwu r1,-8(r1) ffc0acc4: 7c 08 02 a6 mflr r0 ffc0acc8: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc0accc: 40 a2 00 18 bne+ ffc0ace4 rtems_set_errno_and_return_minus_one( EINVAL ); ffc0acd0: 48 00 a8 51 bl ffc15520 <__errno> <== ALWAYS TAKEN ffc0acd4: 38 00 00 16 li r0,22 ffc0acd8: 90 03 00 00 stw r0,0(r3) ffc0acdc: 38 60 ff ff li r3,-1 ffc0ace0: 48 00 00 10 b ffc0acf0 <== ALWAYS TAKEN *set = SIGNAL_ALL_MASK; ffc0ace4: 38 00 ff ff li r0,-1 ffc0ace8: 90 03 00 00 stw r0,0(r3) ffc0acec: 38 60 00 00 li r3,0 return 0; } ffc0acf0: 80 01 00 0c lwz r0,12(r1) ffc0acf4: 38 21 00 08 addi r1,r1,8 ffc0acf8: 7c 08 03 a6 mtlr r0 ffc0acfc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ad00 : int sigismember( const sigset_t *set, int signo ) { if ( !set ) ffc0ad00: 7c 69 1b 79 mr. r9,r3 int sigismember( const sigset_t *set, int signo ) { ffc0ad04: 94 21 ff f8 stwu r1,-8(r1) ffc0ad08: 7c 08 02 a6 mflr r0 ffc0ad0c: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc0ad10: 41 82 00 1c beq- ffc0ad2c rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) ffc0ad14: 2f 84 00 00 cmpwi cr7,r4,0 ffc0ad18: 38 60 00 00 li r3,0 ffc0ad1c: 41 9e 00 3c beq- cr7,ffc0ad58 ffc0ad20: 38 84 ff ff addi r4,r4,-1 return 0; if ( !is_valid_signo(signo) ) ffc0ad24: 2b 84 00 1f cmplwi cr7,r4,31 ffc0ad28: 40 bd 00 18 ble+ cr7,ffc0ad40 rtems_set_errno_and_return_minus_one( EINVAL ); ffc0ad2c: 48 00 a7 f5 bl ffc15520 <__errno> <== ALWAYS TAKEN ffc0ad30: 38 00 00 16 li r0,22 ffc0ad34: 90 03 00 00 stw r0,0(r3) ffc0ad38: 38 60 ff ff li r3,-1 ffc0ad3c: 48 00 00 1c b ffc0ad58 <== ALWAYS TAKEN ffc0ad40: 80 09 00 00 lwz r0,0(r9) ffc0ad44: 39 20 00 01 li r9,1 ffc0ad48: 7d 24 20 30 slw r4,r9,r4 ffc0ad4c: 7c 84 00 38 and r4,r4,r0 ffc0ad50: 30 04 ff ff addic r0,r4,-1 ffc0ad54: 7c 60 21 10 subfe r3,r0,r4 if ( *set & signo_to_mask(signo) ) return 1; return 0; } ffc0ad58: 80 01 00 0c lwz r0,12(r1) ffc0ad5c: 38 21 00 08 addi r1,r1,8 ffc0ad60: 7c 08 03 a6 mtlr r0 ffc0ad64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc083d0 : sighandler_t signal( int signum, sighandler_t handler ) { ffc083d0: 94 21 ff d0 stwu r1,-48(r1) ffc083d4: 7c 08 02 a6 mflr r0 ffc083d8: 93 e1 00 2c stw r31,44(r1) ffc083dc: 7c 7f 1b 78 mr r31,r3 struct sigaction s; struct sigaction old; s.sa_handler = handler ; sigemptyset(&s.sa_mask); ffc083e0: 38 61 00 0c addi r3,r1,12 sighandler_t signal( int signum, sighandler_t handler ) { ffc083e4: 90 01 00 34 stw r0,52(r1) struct sigaction s; struct sigaction old; s.sa_handler = handler ; ffc083e8: 90 81 00 10 stw r4,16(r1) sigemptyset(&s.sa_mask); ffc083ec: 4b ff ff a1 bl ffc0838c <== ALWAYS TAKEN s.sa_flags = SA_RESTART | SA_INTERRUPT | SA_NOMASK; s.sa_restorer= NULL ; #elif defined(signal_like_SVR4) s.sa_flags = SA_RESTART; #else s.sa_flags = 0; ffc083f0: 38 00 00 00 li r0,0 #endif sigaction( signum, &s, &old ); ffc083f4: 7f e3 fb 78 mr r3,r31 s.sa_flags = SA_RESTART | SA_INTERRUPT | SA_NOMASK; s.sa_restorer= NULL ; #elif defined(signal_like_SVR4) s.sa_flags = SA_RESTART; #else s.sa_flags = 0; ffc083f8: 90 01 00 08 stw r0,8(r1) #endif sigaction( signum, &s, &old ); ffc083fc: 38 81 00 08 addi r4,r1,8 ffc08400: 38 a1 00 14 addi r5,r1,20 ffc08404: 4b ff fe 09 bl ffc0820c <== ALWAYS TAKEN return (sighandler_t) old.sa_handler; } ffc08408: 80 01 00 34 lwz r0,52(r1) ffc0840c: 80 61 00 1c lwz r3,28(r1) ffc08410: 7c 08 03 a6 mtlr r0 ffc08414: 83 e1 00 2c lwz r31,44(r1) ffc08418: 38 21 00 30 addi r1,r1,48 ffc0841c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08840 : sigset_t *set ) { POSIX_API_Control *api; if ( !set ) ffc08840: 7c 69 1b 79 mr. r9,r3 #include int sigpending( sigset_t *set ) { ffc08844: 94 21 ff f8 stwu r1,-8(r1) ffc08848: 7c 08 02 a6 mflr r0 ffc0884c: 90 01 00 0c stw r0,12(r1) POSIX_API_Control *api; if ( !set ) ffc08850: 40 a2 00 18 bne+ ffc08868 rtems_set_errno_and_return_minus_one( EINVAL ); ffc08854: 48 00 a7 65 bl ffc12fb8 <__errno> <== ALWAYS TAKEN ffc08858: 38 00 00 16 li r0,22 ffc0885c: 90 03 00 00 stw r0,0(r3) ffc08860: 38 60 ff ff li r3,-1 ffc08864: 48 00 00 28 b ffc0888c <== ALWAYS TAKEN api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; *set = api->signals_pending | _POSIX_signals_Pending; ffc08868: 3d 60 00 00 lis r11,0 ffc0886c: 81 6b 28 40 lwz r11,10304(r11) ffc08870: 38 60 00 00 li r3,0 ffc08874: 81 4b 01 48 lwz r10,328(r11) ffc08878: 3d 60 00 00 lis r11,0 ffc0887c: 81 6b 28 74 lwz r11,10356(r11) ffc08880: 80 0a 00 c8 lwz r0,200(r10) ffc08884: 7d 60 03 78 or r0,r11,r0 ffc08888: 90 09 00 00 stw r0,0(r9) return 0; } ffc0888c: 80 01 00 0c lwz r0,12(r1) ffc08890: 38 21 00 08 addi r1,r1,8 ffc08894: 7c 08 03 a6 mtlr r0 ffc08898: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0889c : int sigprocmask( int how, const sigset_t *set, sigset_t *oset ) { ffc0889c: 94 21 ff f8 stwu r1,-8(r1) ffc088a0: 7c 08 02 a6 mflr r0 ffc088a4: 90 01 00 0c stw r0,12(r1) /* * P1003.1c/Draft 10, p. 38 maps sigprocmask to pthread_sigmask. */ #if defined(RTEMS_POSIX_API) return pthread_sigmask( how, set, oset ); ffc088a8: 48 00 6d a9 bl ffc0f650 <== ALWAYS TAKEN #else return -1; #endif } ffc088ac: 80 01 00 0c lwz r0,12(r1) ffc088b0: 38 21 00 08 addi r1,r1,8 ffc088b4: 7c 08 03 a6 mtlr r0 ffc088b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ade4 : int sigqueue( pid_t pid, int signo, const union sigval value ) { ffc0ade4: 94 21 ff f8 stwu r1,-8(r1) ffc0ade8: 7c 08 02 a6 mflr r0 ffc0adec: 90 01 00 0c stw r0,12(r1) return killinfo( pid, signo, &value ); ffc0adf0: 48 00 67 c9 bl ffc115b8 <== ALWAYS TAKEN } ffc0adf4: 80 01 00 0c lwz r0,12(r1) ffc0adf8: 38 21 00 08 addi r1,r1,8 ffc0adfc: 7c 08 03 a6 mtlr r0 ffc0ae00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ae04 : #include int sigsuspend( const sigset_t *sigmask ) { ffc0ae04: 94 21 ff e0 stwu r1,-32(r1) ffc0ae08: 7c 08 02 a6 mflr r0 ffc0ae0c: 7c 64 1b 78 mr r4,r3 ffc0ae10: 93 e1 00 1c stw r31,28(r1) int status; POSIX_API_Control *api; api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); ffc0ae14: 3b e1 00 08 addi r31,r1,8 ffc0ae18: 7f e5 fb 78 mr r5,r31 #include int sigsuspend( const sigset_t *sigmask ) { ffc0ae1c: 93 c1 00 18 stw r30,24(r1) int status; POSIX_API_Control *api; api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); ffc0ae20: 38 60 00 01 li r3,1 (void) sigfillset( &all_signals ); ffc0ae24: 3b c1 00 0c addi r30,r1,12 #include int sigsuspend( const sigset_t *sigmask ) { ffc0ae28: 90 01 00 24 stw r0,36(r1) int status; POSIX_API_Control *api; api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); ffc0ae2c: 4b ff ff 99 bl ffc0adc4 <== ALWAYS TAKEN (void) sigfillset( &all_signals ); ffc0ae30: 7f c3 f3 78 mr r3,r30 ffc0ae34: 4b ff fe 89 bl ffc0acbc <== ALWAYS TAKEN status = sigtimedwait( &all_signals, NULL, NULL ); ffc0ae38: 7f c3 f3 78 mr r3,r30 ffc0ae3c: 38 80 00 00 li r4,0 ffc0ae40: 38 a0 00 00 li r5,0 ffc0ae44: 48 00 00 a1 bl ffc0aee4 <== ALWAYS TAKEN (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); ffc0ae48: 7f e4 fb 78 mr r4,r31 status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked ); (void) sigfillset( &all_signals ); status = sigtimedwait( &all_signals, NULL, NULL ); ffc0ae4c: 7c 7e 1b 78 mr r30,r3 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); ffc0ae50: 38 a0 00 00 li r5,0 ffc0ae54: 38 60 00 00 li r3,0 ffc0ae58: 4b ff ff 6d bl ffc0adc4 <== ALWAYS TAKEN /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) ffc0ae5c: 2f 9e ff ff cmpwi cr7,r30,-1 ffc0ae60: 41 be 00 10 beq+ cr7,ffc0ae70 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINTR ); ffc0ae64: 48 00 a6 bd bl ffc15520 <__errno> <== ALWAYS TAKEN ffc0ae68: 38 00 00 04 li r0,4 ffc0ae6c: 90 03 00 00 stw r0,0(r3) return status; } ffc0ae70: 80 01 00 24 lwz r0,36(r1) ffc0ae74: 38 60 ff ff li r3,-1 ffc0ae78: 83 c1 00 18 lwz r30,24(r1) ffc0ae7c: 7c 08 03 a6 mtlr r0 ffc0ae80: 83 e1 00 1c lwz r31,28(r1) ffc0ae84: 38 21 00 20 addi r1,r1,32 ffc0ae88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c30 : int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) { ffc08c30: 94 21 ff d8 stwu r1,-40(r1) ffc08c34: 7c 08 02 a6 mflr r0 ffc08c38: 93 c1 00 20 stw r30,32(r1) ISR_Level level; /* * Error check parameters before disabling interrupts. */ if ( !set ) ffc08c3c: 7c 7e 1b 79 mr. r30,r3 int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) { ffc08c40: 93 a1 00 1c stw r29,28(r1) ffc08c44: 7c 9d 23 78 mr r29,r4 ffc08c48: 93 e1 00 24 stw r31,36(r1) ffc08c4c: 7c bf 2b 78 mr r31,r5 ffc08c50: 90 01 00 2c stw r0,44(r1) ffc08c54: 93 81 00 18 stw r28,24(r1) ISR_Level level; /* * Error check parameters before disabling interrupts. */ if ( !set ) ffc08c58: 41 82 00 2c beq- ffc08c84 /* NOTE: This is very specifically a RELATIVE not ABSOLUTE time * in the Open Group specification. */ interval = 0; if ( timeout ) { ffc08c5c: 2f 85 00 00 cmpwi cr7,r5,0 ffc08c60: 41 9e 00 38 beq- cr7,ffc08c98 if ( !_Timespec_Is_valid( timeout ) ) ffc08c64: 7c a3 2b 78 mr r3,r5 ffc08c68: 48 00 41 fd bl ffc0ce64 <_Timespec_Is_valid> <== ALWAYS TAKEN ffc08c6c: 2f 83 00 00 cmpwi cr7,r3,0 ffc08c70: 41 9e 00 14 beq- cr7,ffc08c84 rtems_set_errno_and_return_minus_one( EINVAL ); interval = _Timespec_To_ticks( timeout ); ffc08c74: 7f e3 fb 78 mr r3,r31 ffc08c78: 48 00 42 61 bl ffc0ced8 <_Timespec_To_ticks> <== ALWAYS TAKEN if ( !interval ) ffc08c7c: 7c 64 1b 79 mr. r4,r3 ffc08c80: 40 a2 00 1c bne+ ffc08c9c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc08c84: 48 00 a7 a9 bl ffc1342c <__errno> <== ALWAYS TAKEN ffc08c88: 38 00 00 16 li r0,22 ffc08c8c: 90 03 00 00 stw r0,0(r3) ffc08c90: 3b c0 ff ff li r30,-1 ffc08c94: 48 00 01 54 b ffc08de8 <== ALWAYS TAKEN ffc08c98: 38 80 00 00 li r4,0 /* * Initialize local variables. */ the_info = ( info ) ? info : &signal_information; ffc08c9c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc08ca0: 3b e1 00 08 addi r31,r1,8 ffc08ca4: 41 9e 00 08 beq- cr7,ffc08cac ffc08ca8: 7f bf eb 78 mr r31,r29 the_thread = _Thread_Executing; ffc08cac: 3d 20 00 00 lis r9,0 ffc08cb0: 81 29 28 40 lwz r9,10304(r9) api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc08cb4: 83 89 01 48 lwz r28,328(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08cb8: 7f a0 00 a6 mfmsr r29 ffc08cbc: 7c 10 42 a6 mfsprg r0,0 ffc08cc0: 7f a0 00 78 andc r0,r29,r0 ffc08cc4: 7c 00 01 24 mtmsr r0 */ /* API signals pending? */ _ISR_Disable( level ); if ( *set & api->signals_pending ) { ffc08cc8: 80 1e 00 00 lwz r0,0(r30) ffc08ccc: 80 7c 00 c8 lwz r3,200(r28) ffc08cd0: 7c 0b 18 39 and. r11,r0,r3 ffc08cd4: 41 a2 00 3c beq+ ffc08d10 /* XXX real info later */ the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending ); ffc08cd8: 4b ff ff 01 bl ffc08bd8 <_POSIX_signals_Get_highest> <== ALWAYS TAKEN _POSIX_signals_Clear_signals( ffc08cdc: 7f e5 fb 78 mr r5,r31 /* API signals pending? */ _ISR_Disable( level ); if ( *set & api->signals_pending ) { /* XXX real info later */ the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending ); ffc08ce0: 90 7f 00 00 stw r3,0(r31) ffc08ce4: 7c 64 1b 78 mr r4,r3 _POSIX_signals_Clear_signals( ffc08ce8: 38 c0 00 00 li r6,0 ffc08cec: 7f 83 e3 78 mr r3,r28 ffc08cf0: 38 e0 00 00 li r7,0 ffc08cf4: 48 00 6b 11 bl ffc0f804 <_POSIX_signals_Clear_signals> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc08cf8: 7f a0 01 24 mtmsr r29 false, false ); _ISR_Enable( level ); the_info->si_code = SI_USER; ffc08cfc: 38 00 00 01 li r0,1 ffc08d00: 90 1f 00 04 stw r0,4(r31) the_info->si_value.sival_int = 0; ffc08d04: 38 00 00 00 li r0,0 ffc08d08: 90 1f 00 08 stw r0,8(r31) ffc08d0c: 48 00 00 d8 b ffc08de4 <== ALWAYS TAKEN return the_info->si_signo; } /* Process pending signals? */ if ( *set & _POSIX_signals_Pending ) { ffc08d10: 3d 60 00 00 lis r11,0 ffc08d14: 80 6b 28 74 lwz r3,10356(r11) ffc08d18: 7c 0b 18 39 and. r11,r0,r3 ffc08d1c: 41 a2 00 40 beq+ ffc08d5c signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending ); ffc08d20: 4b ff fe b9 bl ffc08bd8 <_POSIX_signals_Get_highest> <== ALWAYS TAKEN _POSIX_signals_Clear_signals( api, signo, the_info, true, false ); ffc08d24: 7f e5 fb 78 mr r5,r31 } /* Process pending signals? */ if ( *set & _POSIX_signals_Pending ) { signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending ); ffc08d28: 7c 7e 1b 78 mr r30,r3 _POSIX_signals_Clear_signals( api, signo, the_info, true, false ); ffc08d2c: 7f c4 f3 78 mr r4,r30 ffc08d30: 7f 83 e3 78 mr r3,r28 ffc08d34: 38 c0 00 01 li r6,1 ffc08d38: 38 e0 00 00 li r7,0 ffc08d3c: 48 00 6a c9 bl ffc0f804 <_POSIX_signals_Clear_signals> <== ALWAYS TAKEN ffc08d40: 7f a0 01 24 mtmsr r29 _ISR_Enable( level ); the_info->si_signo = signo; the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; ffc08d44: 38 00 00 00 li r0,0 if ( *set & _POSIX_signals_Pending ) { signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending ); _POSIX_signals_Clear_signals( api, signo, the_info, true, false ); _ISR_Enable( level ); the_info->si_signo = signo; ffc08d48: 93 df 00 00 stw r30,0(r31) the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; ffc08d4c: 90 1f 00 08 stw r0,8(r31) signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending ); _POSIX_signals_Clear_signals( api, signo, the_info, true, false ); _ISR_Enable( level ); the_info->si_signo = signo; the_info->si_code = SI_USER; ffc08d50: 38 00 00 01 li r0,1 ffc08d54: 90 1f 00 04 stw r0,4(r31) the_info->si_value.sival_int = 0; return signo; ffc08d58: 48 00 00 90 b ffc08de8 <== ALWAYS TAKEN ffc08d5c: 3d 60 00 00 lis r11,0 ffc08d60: 81 4b 28 00 lwz r10,10240(r11) ffc08d64: 38 0a 00 01 addi r0,r10,1 ffc08d68: 90 0b 28 00 stw r0,10240(r11) } the_info->si_signo = -1; ffc08d6c: 38 00 ff ff li r0,-1 ffc08d70: 90 1f 00 00 stw r0,0(r31) _Thread_Disable_dispatch(); the_thread->Wait.queue = &_POSIX_signals_Wait_queue; the_thread->Wait.return_code = EINTR; ffc08d74: 38 00 00 04 li r0,4 the_thread->Wait.option = *set; the_thread->Wait.return_argument = the_info; ffc08d78: 93 e9 00 28 stw r31,40(r9) } the_info->si_signo = -1; _Thread_Disable_dispatch(); the_thread->Wait.queue = &_POSIX_signals_Wait_queue; ffc08d7c: 3d 60 00 00 lis r11,0 the_thread->Wait.return_code = EINTR; ffc08d80: 90 09 00 34 stw r0,52(r9) } the_info->si_signo = -1; _Thread_Disable_dispatch(); the_thread->Wait.queue = &_POSIX_signals_Wait_queue; ffc08d84: 39 6b 33 3c addi r11,r11,13116 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; ffc08d88: 39 40 00 01 li r10,1 the_thread->Wait.return_code = EINTR; the_thread->Wait.option = *set; ffc08d8c: 80 1e 00 00 lwz r0,0(r30) ffc08d90: 91 4b 00 30 stw r10,48(r11) ffc08d94: 90 09 00 30 stw r0,48(r9) } the_info->si_signo = -1; _Thread_Disable_dispatch(); the_thread->Wait.queue = &_POSIX_signals_Wait_queue; ffc08d98: 91 69 00 44 stw r11,68(r9) ffc08d9c: 7f a0 01 24 mtmsr r29 the_thread->Wait.return_code = EINTR; the_thread->Wait.option = *set; the_thread->Wait.return_argument = the_info; _Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue ); _ISR_Enable( level ); _Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval ); ffc08da0: 3c a0 ff c1 lis r5,-63 ffc08da4: 3c 60 00 00 lis r3,0 ffc08da8: 38 a5 c7 a0 addi r5,r5,-14432 ffc08dac: 38 63 33 3c addi r3,r3,13116 ffc08db0: 48 00 35 f9 bl ffc0c3a8 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08db4: 48 00 30 01 bl ffc0bdb4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* * When the thread is set free by a signal, it is need to eliminate * the signal. */ _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false ); ffc08db8: 80 9f 00 00 lwz r4,0(r31) ffc08dbc: 7f e5 fb 78 mr r5,r31 ffc08dc0: 38 c0 00 00 li r6,0 ffc08dc4: 38 e0 00 00 li r7,0 ffc08dc8: 7f 83 e3 78 mr r3,r28 ffc08dcc: 48 00 6a 39 bl ffc0f804 <_POSIX_signals_Clear_signals> <== ALWAYS TAKEN errno = _Thread_Executing->Wait.return_code; ffc08dd0: 48 00 a6 5d bl ffc1342c <__errno> <== ALWAYS TAKEN ffc08dd4: 3d 20 00 00 lis r9,0 ffc08dd8: 81 29 28 40 lwz r9,10304(r9) ffc08ddc: 80 09 00 34 lwz r0,52(r9) ffc08de0: 90 03 00 00 stw r0,0(r3) return the_info->si_signo; ffc08de4: 83 df 00 00 lwz r30,0(r31) } ffc08de8: 80 01 00 2c lwz r0,44(r1) ffc08dec: 7f c3 f3 78 mr r3,r30 ffc08df0: 83 81 00 18 lwz r28,24(r1) ffc08df4: 7c 08 03 a6 mtlr r0 ffc08df8: 83 a1 00 1c lwz r29,28(r1) ffc08dfc: 83 c1 00 20 lwz r30,32(r1) ffc08e00: 83 e1 00 24 lwz r31,36(r1) ffc08e04: 38 21 00 28 addi r1,r1,40 ffc08e08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b0e4 : int sigwait( const sigset_t *set, int *sig ) { ffc0b0e4: 94 21 ff f0 stwu r1,-16(r1) ffc0b0e8: 7c 08 02 a6 mflr r0 int status; status = sigtimedwait( set, NULL, NULL ); ffc0b0ec: 38 a0 00 00 li r5,0 int sigwait( const sigset_t *set, int *sig ) { ffc0b0f0: 93 e1 00 0c stw r31,12(r1) ffc0b0f4: 7c 9f 23 78 mr r31,r4 int status; status = sigtimedwait( set, NULL, NULL ); ffc0b0f8: 38 80 00 00 li r4,0 int sigwait( const sigset_t *set, int *sig ) { ffc0b0fc: 90 01 00 14 stw r0,20(r1) int status; status = sigtimedwait( set, NULL, NULL ); ffc0b100: 4b ff fd e5 bl ffc0aee4 <== ALWAYS TAKEN if ( status != -1 ) { ffc0b104: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0b108: 41 9e 00 18 beq- cr7,ffc0b120 if ( sig ) ffc0b10c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0b110: 38 00 00 00 li r0,0 ffc0b114: 41 9e 00 14 beq- cr7,ffc0b128 <== NEVER TAKEN *sig = status; ffc0b118: 90 7f 00 00 stw r3,0(r31) ffc0b11c: 48 00 00 0c b ffc0b128 <== ALWAYS TAKEN return 0; } return errno; ffc0b120: 48 00 a4 01 bl ffc15520 <__errno> <== ALWAYS TAKEN ffc0b124: 80 03 00 00 lwz r0,0(r3) } ffc0b128: 7c 03 03 78 mr r3,r0 ffc0b12c: 80 01 00 14 lwz r0,20(r1) ffc0b130: 83 e1 00 0c lwz r31,12(r1) ffc0b134: 38 21 00 10 addi r1,r1,16 ffc0b138: 7c 08 03 a6 mtlr r0 ffc0b13c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b0c0 : int sigwaitinfo( const sigset_t *set, siginfo_t *info ) { ffc0b0c0: 94 21 ff f8 stwu r1,-8(r1) ffc0b0c4: 7c 08 02 a6 mflr r0 return sigtimedwait( set, info, NULL ); ffc0b0c8: 38 a0 00 00 li r5,0 int sigwaitinfo( const sigset_t *set, siginfo_t *info ) { ffc0b0cc: 90 01 00 0c stw r0,12(r1) return sigtimedwait( set, info, NULL ); ffc0b0d0: 4b ff fe 15 bl ffc0aee4 <== ALWAYS TAKEN } ffc0b0d4: 80 01 00 0c lwz r0,12(r1) ffc0b0d8: 38 21 00 08 addi r1,r1,8 ffc0b0dc: 7c 08 03 a6 mtlr r0 ffc0b0e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05f0c : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05f0c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc05f10: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05f14: 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)) { ffc05f18: 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) { ffc05f1c: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc05f20: 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)) { ffc05f24: 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) { ffc05f28: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc05f2c: 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)) { ffc05f30: 41 a2 00 48 beq+ ffc05f78 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc05f34: 80 64 00 18 lwz r3,24(r4) <== NOT EXECUTED ffc05f38: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc05f3c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05f40: 48 00 1c 81 bl ffc07bc0 <== NOT EXECUTED i = iproc (c, tty); ffc05f44: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05f48: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05f4c: 4b ff fd f9 bl ffc05d44 <== NOT EXECUTED ffc05f50: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED rtems_semaphore_release (tty->osem); ffc05f54: 80 7f 00 18 lwz r3,24(r31) <== NOT EXECUTED ffc05f58: 48 00 1d ad bl ffc07d04 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } ffc05f5c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc05f60: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc05f64: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc05f68: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05f6c: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc05f70: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc05f74: 4e 80 00 20 blr <== NOT EXECUTED ffc05f78: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc05f7c: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc05f80: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05f84: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc05f88: 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); ffc05f8c: 4b ff fd b8 b ffc05d44 <== NOT EXECUTED ffc09f58 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc09f58: 94 21 ff c8 stwu r1,-56(r1) ffc09f5c: 7c 08 02 a6 mflr r0 ffc09f60: 93 c1 00 30 stw r30,48(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc09f64: 7c 9e 23 79 mr. r30,r4 int _STAT_NAME( const char *path, struct stat *buf ) { ffc09f68: 93 a1 00 2c stw r29,44(r1) ffc09f6c: 7c 7d 1b 78 mr r29,r3 ffc09f70: 90 01 00 3c stw r0,60(r1) ffc09f74: 93 e1 00 34 stw r31,52(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc09f78: 40 a2 00 10 bne+ ffc09f88 rtems_set_errno_and_return_minus_one( EFAULT ); ffc09f7c: 48 03 d7 11 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc09f80: 38 00 00 0e li r0,14 ffc09f84: 48 00 00 6c b ffc09ff0 <== ALWAYS TAKEN status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc09f88: 48 04 54 cd bl ffc4f454 <== ALWAYS TAKEN ffc09f8c: 3b e1 00 08 addi r31,r1,8 ffc09f90: 7c 64 1b 78 mr r4,r3 ffc09f94: 38 a0 00 00 li r5,0 ffc09f98: 7f a3 eb 78 mr r3,r29 ffc09f9c: 7f e6 fb 78 mr r6,r31 ffc09fa0: 38 e0 00 01 li r7,1 ffc09fa4: 4b ff e3 99 bl ffc0833c <== ALWAYS TAKEN 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc09fa8: 3b a0 ff ff li r29,-1 ffc09fac: 2f 83 00 00 cmpwi cr7,r3,0 ffc09fb0: 40 9e 00 9c bne- cr7,ffc0a04c return -1; if ( !loc.handlers->fstat_h ){ ffc09fb4: 81 21 00 10 lwz r9,16(r1) ffc09fb8: 80 09 00 18 lwz r0,24(r9) ffc09fbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc09fc0: 40 be 00 3c bne+ cr7,ffc09ffc <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc09fc4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc09fc8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc09fcc: 41 9e 00 1c beq- cr7,ffc09fe8 <== NOT EXECUTED ffc09fd0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc09fd4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc09fd8: 41 9e 00 10 beq- cr7,ffc09fe8 <== NOT EXECUTED ffc09fdc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc09fe0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc09fe4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc09fe8: 48 03 d6 a5 bl ffc4768c <__errno> <== NOT EXECUTED ffc09fec: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc09ff0: 90 03 00 00 stw r0,0(r3) ffc09ff4: 3b a0 ff ff li r29,-1 ffc09ff8: 48 00 00 54 b ffc0a04c <== ALWAYS TAKEN /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc09ffc: 38 80 00 00 li r4,0 ffc0a000: 38 a0 00 48 li r5,72 ffc0a004: 7f c3 f3 78 mr r3,r30 ffc0a008: 48 04 14 1d bl ffc4b424 <== ALWAYS TAKEN status = (*loc.handlers->fstat_h)( &loc, buf ); ffc0a00c: 81 21 00 10 lwz r9,16(r1) ffc0a010: 7f c4 f3 78 mr r4,r30 ffc0a014: 80 09 00 18 lwz r0,24(r9) ffc0a018: 7f e3 fb 78 mr r3,r31 ffc0a01c: 7c 09 03 a6 mtctr r0 <== ALWAYS TAKEN ffc0a020: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc0a024: 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 ); ffc0a028: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc0a02c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a030: 41 9e 00 1c beq- cr7,ffc0a04c <== NEVER TAKEN ffc0a034: 80 09 00 1c lwz r0,28(r9) ffc0a038: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a03c: 41 9e 00 10 beq- cr7,ffc0a04c <== NEVER TAKEN ffc0a040: 7f e3 fb 78 mr r3,r31 ffc0a044: 7c 09 03 a6 mtctr r0 ffc0a048: 4e 80 04 21 bctrl <== ALWAYS TAKEN return status; } ffc0a04c: 80 01 00 3c lwz r0,60(r1) ffc0a050: 7f a3 eb 78 mr r3,r29 ffc0a054: 83 c1 00 30 lwz r30,48(r1) ffc0a058: 7c 08 03 a6 mtlr r0 ffc0a05c: 83 a1 00 2c lwz r29,44(r1) ffc0a060: 83 e1 00 34 lwz r31,52(r1) ffc0a064: 38 21 00 38 addi r1,r1,56 ffc0a068: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2cc58 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { ffc2cc58: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc2cc5c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2cc60: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc2cc64: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc2cc68: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc2cc6c: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc2cc70: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED ffc2cc74: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED * The root node of the mounted filesytem. * The node for the directory that the fileystem is mounted on. * The mount entry that is being refered to. */ if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) ffc2cc78: 48 02 27 dd bl ffc4f454 <== NOT EXECUTED ffc2cc7c: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc2cc80: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2cc84: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc2cc88: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2cc8c: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc2cc90: 38 e0 00 01 li r7,1 <== NOT EXECUTED ffc2cc94: 4b fd b6 a9 bl ffc0833c <== NOT EXECUTED ffc2cc98: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2cc9c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2cca0: 40 9e 00 7c bne- cr7,ffc2cd1c <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; ffc2cca4: 83 a1 00 18 lwz r29,24(r1) <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; ffc2cca8: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED ffc2ccac: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED ffc2ccb0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2ccb4: 40 be 00 18 bne+ cr7,ffc2cccc <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2ccb8: 48 01 a9 d5 bl ffc4768c <__errno> <== NOT EXECUTED ffc2ccbc: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2ccc0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2ccc4: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2ccc8: 48 00 00 54 b ffc2cd1c <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); ffc2cccc: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc2ccd0: 38 a0 00 38 li r5,56 <== NOT EXECUTED ffc2ccd4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc2ccd8: 48 01 e7 4d bl ffc4b424 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); ffc2ccdc: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED ffc2cce0: 38 7d 00 1c addi r3,r29,28 <== NOT EXECUTED ffc2cce4: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED ffc2cce8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc2ccec: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2ccf0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2ccf4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); ffc2ccf8: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc2ccfc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc2cd00: 41 9e 00 1c beq- cr7,ffc2cd1c <== NOT EXECUTED ffc2cd04: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2cd08: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2cd0c: 41 9e 00 10 beq- cr7,ffc2cd1c <== NOT EXECUTED ffc2cd10: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2cd14: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2cd18: 4e 80 04 21 bctrl <== NOT EXECUTED return result; } ffc2cd1c: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc2cd20: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc2cd24: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc2cd28: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2cd2c: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc2cd30: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc2cd34: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc2cd38: 4e 80 00 20 blr <== NOT EXECUTED ffc2cd3c : int symlink( const char *actualpath, const char *sympath ) { ffc2cd3c: 94 21 ff c8 stwu r1,-56(r1) ffc2cd40: 7c 08 02 a6 mflr r0 ffc2cd44: 93 a1 00 2c stw r29,44(r1) ffc2cd48: 7c 7d 1b 78 mr r29,r3 ffc2cd4c: 90 01 00 3c stw r0,60(r1) ffc2cd50: 93 c1 00 30 stw r30,48(r1) ffc2cd54: 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 ); ffc2cd58: 88 04 00 00 lbz r0,0(r4) ffc2cd5c: 2f 80 00 2f cmpwi cr7,r0,47 ffc2cd60: 41 9e 00 14 beq- cr7,ffc2cd74 ffc2cd64: 2f 80 00 5c cmpwi cr7,r0,92 ffc2cd68: 41 9e 00 0c beq- cr7,ffc2cd74 <== NEVER TAKEN ffc2cd6c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cd70: 40 9e 00 38 bne- cr7,ffc2cda8 <== ALWAYS TAKEN ffc2cd74: 3d 20 00 00 lis r9,0 ffc2cd78: 81 29 35 2c lwz r9,13612(r9) ffc2cd7c: 38 60 00 01 li r3,1 ffc2cd80: 80 09 00 24 lwz r0,36(r9) <== ALWAYS TAKEN ffc2cd84: 81 09 00 18 lwz r8,24(r9) ffc2cd88: 81 49 00 1c lwz r10,28(r9) ffc2cd8c: 81 69 00 20 lwz r11,32(r9) ffc2cd90: 91 01 00 0c stw r8,12(r1) ffc2cd94: 91 41 00 10 stw r10,16(r1) ffc2cd98: 91 61 00 14 stw r11,20(r1) ffc2cd9c: 90 01 00 18 stw r0,24(r1) ffc2cda0: 80 09 00 28 lwz r0,40(r9) ffc2cda4: 48 00 00 34 b ffc2cdd8 <== ALWAYS TAKEN ffc2cda8: 3d 20 00 00 lis r9,0 ffc2cdac: 81 29 35 2c lwz r9,13612(r9) ffc2cdb0: 38 60 00 00 li r3,0 ffc2cdb4: 80 09 00 10 lwz r0,16(r9) ffc2cdb8: 81 09 00 04 lwz r8,4(r9) ffc2cdbc: 81 49 00 08 lwz r10,8(r9) ffc2cdc0: 81 69 00 0c lwz r11,12(r9) ffc2cdc4: 91 01 00 0c stw r8,12(r1) ffc2cdc8: 91 41 00 10 stw r10,16(r1) ffc2cdcc: 91 61 00 14 stw r11,20(r1) ffc2cdd0: 90 01 00 18 stw r0,24(r1) ffc2cdd4: 80 09 00 14 lwz r0,20(r9) if ( !loc.ops->evalformake_h ) { ffc2cdd8: 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 ); ffc2cddc: 90 01 00 1c stw r0,28(r1) if ( !loc.ops->evalformake_h ) { ffc2cde0: 80 09 00 04 lwz r0,4(r9) ffc2cde4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cde8: 41 9e 00 50 beq- cr7,ffc2ce38 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); ffc2cdec: 3b c1 00 0c addi r30,r1,12 ffc2cdf0: 7c 09 03 a6 mtctr r0 ffc2cdf4: 7c 64 1a 14 add r3,r4,r3 ffc2cdf8: 38 a1 00 08 addi r5,r1,8 ffc2cdfc: 7f c4 f3 78 mr r4,r30 if ( result != 0 ) ffc2ce00: 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 ); ffc2ce04: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( result != 0 ) ffc2ce08: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ce0c: 40 9e 00 7c bne- cr7,ffc2ce88 return -1; if ( !loc.ops->symlink_h ) { ffc2ce10: 81 21 00 18 lwz r9,24(r1) ffc2ce14: 80 09 00 38 lwz r0,56(r9) ffc2ce18: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ce1c: 40 be 00 30 bne+ cr7,ffc2ce4c <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc2ce20: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2ce24: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2ce28: 41 9e 00 10 beq- cr7,ffc2ce38 <== NOT EXECUTED ffc2ce2c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc2ce30: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2ce34: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2ce38: 48 01 a8 55 bl ffc4768c <__errno> <== NOT EXECUTED ffc2ce3c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2ce40: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2ce44: 3b e0 ff ff li r31,-1 <== NOT EXECUTED ffc2ce48: 48 00 00 40 b ffc2ce88 <== NOT EXECUTED } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); ffc2ce4c: 7f a4 eb 78 mr r4,r29 ffc2ce50: 80 a1 00 08 lwz r5,8(r1) ffc2ce54: 7f c3 f3 78 mr r3,r30 ffc2ce58: 7c 09 03 a6 mtctr r0 ffc2ce5c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc2ce60: 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); ffc2ce64: 7c 7f 1b 78 mr r31,r3 rtems_filesystem_freenode( &loc ); ffc2ce68: 2f 89 00 00 cmpwi cr7,r9,0 ffc2ce6c: 41 9e 00 1c beq- cr7,ffc2ce88 <== NEVER TAKEN ffc2ce70: 80 09 00 1c lwz r0,28(r9) ffc2ce74: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ce78: 41 9e 00 10 beq- cr7,ffc2ce88 <== NEVER TAKEN ffc2ce7c: 7f c3 f3 78 mr r3,r30 ffc2ce80: 7c 09 03 a6 mtctr r0 ffc2ce84: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc2ce88: 80 01 00 3c lwz r0,60(r1) ffc2ce8c: 7f e3 fb 78 mr r3,r31 ffc2ce90: 83 a1 00 2c lwz r29,44(r1) ffc2ce94: 7c 08 03 a6 mtlr r0 ffc2ce98: 83 c1 00 30 lwz r30,48(r1) ffc2ce9c: 83 e1 00 34 lwz r31,52(r1) ffc2cea0: 38 21 00 38 addi r1,r1,56 ffc2cea4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc070b8 : { /* * Walk the one used initially by RTEMS. */ _fwalk(_global_impure_ptr, sync_wrapper); ffc070b8: 3d 20 00 00 lis r9,0 * We have to extern it here. */ extern struct _reent * const _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__; void sync(void) { ffc070bc: 94 21 ff f8 stwu r1,-8(r1) ffc070c0: 7c 08 02 a6 mflr r0 /* * Walk the one used initially by RTEMS. */ _fwalk(_global_impure_ptr, sync_wrapper); ffc070c4: 3c 80 ff c0 lis r4,-64 ffc070c8: 80 69 26 e8 lwz r3,9960(r9) ffc070cc: 38 84 70 f4 addi r4,r4,28916 * We have to extern it here. */ extern struct _reent * const _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__; void sync(void) { ffc070d0: 90 01 00 0c stw r0,12(r1) /* * Walk the one used initially by RTEMS. */ _fwalk(_global_impure_ptr, sync_wrapper); ffc070d4: 48 00 f0 59 bl ffc1612c <_fwalk> <== ALWAYS TAKEN */ /* * Now walk all the per-thread reentrancy structures. */ rtems_iterate_over_all_threads(sync_per_thread); ffc070d8: 3c 60 ff c0 lis r3,-64 ffc070dc: 38 63 70 58 addi r3,r3,28760 ffc070e0: 48 00 43 f1 bl ffc0b4d0 <== ALWAYS TAKEN } ffc070e4: 80 01 00 0c lwz r0,12(r1) ffc070e8: 38 21 00 08 addi r1,r1,8 ffc070ec: 7c 08 03 a6 mtlr r0 ffc070f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07058 : fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) { ffc07058: 94 21 ff f0 stwu r1,-16(r1) ffc0705c: 7c 08 02 a6 mflr r0 ffc07060: 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; ffc07064: 80 03 01 40 lwz r0,320(r3) fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) { ffc07068: 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 ) { ffc0706c: 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) { ffc07070: 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 ) { ffc07074: 41 9e 00 2c beq- cr7,ffc070a0 <== NEVER TAKEN current_reent = _Thread_Executing->libc_reent; ffc07078: 3f e0 00 00 lis r31,0 ffc0707c: 81 3f 27 b4 lwz r9,10164(r31) _Thread_Executing->libc_reent = this_reent; _fwalk (t->libc_reent, sync_wrapper); ffc07080: 3c 80 ff c0 lis r4,-64 ffc07084: 38 84 70 f4 addi r4,r4,28916 * 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; ffc07088: 83 c9 01 40 lwz r30,320(r9) _Thread_Executing->libc_reent = this_reent; ffc0708c: 90 09 01 40 stw r0,320(r9) _fwalk (t->libc_reent, sync_wrapper); ffc07090: 80 63 01 40 lwz r3,320(r3) ffc07094: 48 00 f0 99 bl ffc1612c <_fwalk> <== ALWAYS TAKEN _Thread_Executing->libc_reent = current_reent; ffc07098: 81 3f 27 b4 lwz r9,10164(r31) ffc0709c: 93 c9 01 40 stw r30,320(r9) } } ffc070a0: 80 01 00 14 lwz r0,20(r1) ffc070a4: 83 c1 00 08 lwz r30,8(r1) ffc070a8: 7c 08 03 a6 mtlr r0 ffc070ac: 83 e1 00 0c lwz r31,12(r1) ffc070b0: 38 21 00 10 addi r1,r1,16 ffc070b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc070f4 : /* XXX check standards -- Linux version appears to be void */ void _fwalk(struct _reent *, void *); static void sync_wrapper(FILE *f) { ffc070f4: 94 21 ff f0 stwu r1,-16(r1) ffc070f8: 7c 08 02 a6 mflr r0 ffc070fc: 93 e1 00 0c stw r31,12(r1) ffc07100: 90 01 00 14 stw r0,20(r1) int fn = fileno(f); ffc07104: 48 00 e2 05 bl ffc15308 <== ALWAYS TAKEN ffc07108: 7c 7f 1b 78 mr r31,r3 fsync(fn); ffc0710c: 4b ff e8 4d bl ffc05958 <== ALWAYS TAKEN fdatasync(fn); ffc07110: 7f e3 fb 78 mr r3,r31 ffc07114: 4b ff e5 1d bl ffc05630 <== ALWAYS TAKEN } ffc07118: 80 01 00 14 lwz r0,20(r1) ffc0711c: 83 e1 00 0c lwz r31,12(r1) ffc07120: 38 21 00 10 addi r1,r1,16 ffc07124: 7c 08 03 a6 mtlr r0 ffc07128: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07704 : long sysconf( int name ) { if ( name == _SC_CLK_TCK ) ffc07704: 2f 83 00 02 cmpwi cr7,r3,2 */ long sysconf( int name ) { ffc07708: 7c 08 02 a6 mflr r0 ffc0770c: 94 21 ff f8 stwu r1,-8(r1) ffc07710: 90 01 00 0c stw r0,12(r1) ffc07714: 7c 60 1b 78 mr r0,r3 if ( name == _SC_CLK_TCK ) ffc07718: 40 be 00 1c bne+ cr7,ffc07734 return (TOD_MICROSECONDS_PER_SECOND / ffc0771c: 3d 20 00 00 lis r9,0 ffc07720: 80 09 20 c8 lwz r0,8392(r9) ffc07724: 3c 60 00 0f lis r3,15 ffc07728: 60 63 42 40 ori r3,r3,16960 ffc0772c: 7c 63 03 96 divwu r3,r3,r0 ffc07730: 48 00 00 40 b ffc07770 <== ALWAYS TAKEN rtems_configuration_get_microseconds_per_tick()); if ( name == _SC_OPEN_MAX ) ffc07734: 2f 83 00 04 cmpwi cr7,r3,4 ffc07738: 40 be 00 10 bne+ cr7,ffc07748 return rtems_libio_number_iops; ffc0773c: 3d 20 00 00 lis r9,0 ffc07740: 80 69 26 ac lwz r3,9900(r9) ffc07744: 48 00 00 2c b ffc07770 <== ALWAYS TAKEN if ( name == _SC_GETPW_R_SIZE_MAX ) ffc07748: 2f 83 00 33 cmpwi cr7,r3,51 ffc0774c: 38 60 04 00 li r3,1024 ffc07750: 41 9e 00 20 beq- cr7,ffc07770 return 1024; if ( name == _SC_PAGESIZE ) ffc07754: 2f 80 00 08 cmpwi cr7,r0,8 ffc07758: 38 60 10 00 li r3,4096 ffc0775c: 41 be 00 14 beq+ cr7,ffc07770 #if defined(__sparc__) if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); ffc07760: 48 00 ac 0d bl ffc1236c <__errno> <== ALWAYS TAKEN ffc07764: 38 00 00 16 li r0,22 ffc07768: 90 03 00 00 stw r0,0(r3) ffc0776c: 38 60 ff ff li r3,-1 } ffc07770: 80 01 00 0c lwz r0,12(r1) ffc07774: 38 21 00 08 addi r1,r1,8 ffc07778: 7c 08 03 a6 mtlr r0 ffc0777c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2cea8 : #include int tcdrain( int fd ) { ffc2cea8: 94 21 ff f8 stwu r1,-8(r1) ffc2ceac: 7c 08 02 a6 mflr r0 return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); ffc2ceb0: 38 80 00 03 li r4,3 ffc2ceb4: 38 a0 00 00 li r5,0 #include int tcdrain( int fd ) { ffc2ceb8: 90 01 00 0c stw r0,12(r1) return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); ffc2cebc: 4c c6 31 82 crclr 4*cr1+eq ffc2cec0: 4b ff f0 61 bl ffc2bf20 <== ALWAYS TAKEN } ffc2cec4: 80 01 00 0c lwz r0,12(r1) ffc2cec8: 38 21 00 08 addi r1,r1,8 ffc2cecc: 7c 08 03 a6 mtlr r0 ffc2ced0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc156d4 : int tcgetattr( int fd, struct termios *tp ) { ffc156d4: 94 21 ff f8 stwu r1,-8(r1) ffc156d8: 7c 08 02 a6 mflr r0 ffc156dc: 7c 85 23 78 mr r5,r4 return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); ffc156e0: 38 80 00 01 li r4,1 int tcgetattr( int fd, struct termios *tp ) { ffc156e4: 90 01 00 0c stw r0,12(r1) return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); ffc156e8: 4c c6 31 82 crclr 4*cr1+eq ffc156ec: 48 00 44 65 bl ffc19b50 <== ALWAYS TAKEN } ffc156f0: 80 01 00 0c lwz r0,12(r1) ffc156f4: 38 21 00 08 addi r1,r1,8 ffc156f8: 7c 08 03 a6 mtlr r0 ffc156fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15700 : int fd, int opt, struct termios *tp ) { switch (opt) { ffc15700: 2c 04 00 00 cmpwi r4,0 int tcsetattr( int fd, int opt, struct termios *tp ) { ffc15704: 94 21 ff f0 stwu r1,-16(r1) ffc15708: 7c 08 02 a6 mflr r0 ffc1570c: 93 c1 00 08 stw r30,8(r1) ffc15710: 7c 7e 1b 78 mr r30,r3 ffc15714: 93 e1 00 0c stw r31,12(r1) ffc15718: 7c bf 2b 78 mr r31,r5 ffc1571c: 90 01 00 14 stw r0,20(r1) switch (opt) { ffc15720: 41 82 00 3c beq- ffc1575c <== ALWAYS TAKEN ffc15724: 2f 84 00 01 cmpwi cr7,r4,1 <== NOT EXECUTED ffc15728: 41 9e 00 18 beq- cr7,ffc15740 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1572c: 48 00 60 45 bl ffc1b770 <__errno> <== NOT EXECUTED ffc15730: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc15734: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc15738: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1573c: 48 00 00 34 b ffc15770 <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) ffc15740: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc15744: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc15748: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc1574c: 48 00 44 05 bl ffc19b50 <== NOT EXECUTED ffc15750: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc15754: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc15758: 41 9c 00 18 blt- cr7,ffc15770 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); ffc1575c: 7f c3 f3 78 mr r3,r30 ffc15760: 7f e5 fb 78 mr r5,r31 ffc15764: 38 80 00 02 li r4,2 ffc15768: 4c c6 31 82 crclr 4*cr1+eq ffc1576c: 48 00 43 e5 bl ffc19b50 <== ALWAYS TAKEN } } ffc15770: 80 01 00 14 lwz r0,20(r1) ffc15774: 83 c1 00 08 lwz r30,8(r1) ffc15778: 7c 08 03 a6 mtlr r0 ffc1577c: 83 e1 00 0c lwz r31,12(r1) ffc15780: 38 21 00 10 addi r1,r1,16 ffc15784: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07c14 : timer_t *timerid ) { POSIX_Timer_Control *ptimer; if ( clock_id != CLOCK_REALTIME ) ffc07c14: 2f 83 00 01 cmpwi cr7,r3,1 int timer_create( clockid_t clock_id, struct sigevent *evp, timer_t *timerid ) { ffc07c18: 94 21 ff f0 stwu r1,-16(r1) ffc07c1c: 7c 08 02 a6 mflr r0 ffc07c20: 93 c1 00 08 stw r30,8(r1) ffc07c24: 7c be 2b 78 mr r30,r5 ffc07c28: 93 e1 00 0c stw r31,12(r1) ffc07c2c: 7c 9f 23 78 mr r31,r4 ffc07c30: 90 01 00 14 stw r0,20(r1) POSIX_Timer_Control *ptimer; if ( clock_id != CLOCK_REALTIME ) ffc07c34: 40 9e 00 3c bne- cr7,ffc07c70 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !timerid ) ffc07c38: 2f 85 00 00 cmpwi cr7,r5,0 ffc07c3c: 41 9e 00 34 beq- cr7,ffc07c70 /* * The data of the structure evp are checked in order to verify if they * are coherent. */ if (evp != NULL) { ffc07c40: 2f 84 00 00 cmpwi cr7,r4,0 ffc07c44: 41 9e 00 38 beq- cr7,ffc07c7c /* The structure has data */ if ( ( evp->sigev_notify != SIGEV_NONE ) && ffc07c48: 81 24 00 00 lwz r9,0(r4) ffc07c4c: 38 09 ff ff addi r0,r9,-1 ffc07c50: 2b 80 00 01 cmplwi cr7,r0,1 ffc07c54: 41 9d 00 1c bgt- cr7,ffc07c70 <== NEVER TAKEN ( evp->sigev_notify != SIGEV_SIGNAL ) ) { /* The value of the field sigev_notify is not valid */ rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !evp->sigev_signo ) ffc07c58: 81 24 00 04 lwz r9,4(r4) ffc07c5c: 2f 89 00 00 cmpwi cr7,r9,0 ffc07c60: 41 9e 00 10 beq- cr7,ffc07c70 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(evp->sigev_signo) ) ffc07c64: 39 29 ff ff addi r9,r9,-1 ffc07c68: 2b 89 00 1f cmplwi cr7,r9,31 ffc07c6c: 40 bd 00 10 ble+ cr7,ffc07c7c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc07c70: 48 00 ae b9 bl ffc12b28 <__errno> <== ALWAYS TAKEN ffc07c74: 38 00 00 16 li r0,22 ffc07c78: 48 00 00 34 b ffc07cac <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc07c7c: 3d 20 00 00 lis r9,0 ffc07c80: 81 69 27 dc lwz r11,10204(r9) ffc07c84: 38 0b 00 01 addi r0,r11,1 ffc07c88: 90 09 27 dc stw r0,10204(r9) * the inactive chain of free timer control blocks. */ RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void ) { return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information ); ffc07c8c: 3c 60 00 00 lis r3,0 ffc07c90: 38 63 2f 78 addi r3,r3,12152 ffc07c94: 48 00 24 5d bl ffc0a0f0 <_Objects_Allocate> <== ALWAYS TAKEN /* * Allocate a timer */ ptimer = _POSIX_Timer_Allocate(); if ( !ptimer ) { ffc07c98: 2c 03 00 00 cmpwi r3,0 ffc07c9c: 40 a2 00 1c bne+ ffc07cb8 _Thread_Enable_dispatch(); ffc07ca0: 48 00 35 0d bl ffc0b1ac <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EAGAIN ); ffc07ca4: 48 00 ae 85 bl ffc12b28 <__errno> <== ALWAYS TAKEN ffc07ca8: 38 00 00 0b li r0,11 ffc07cac: 90 03 00 00 stw r0,0(r3) ffc07cb0: 38 60 ff ff li r3,-1 ffc07cb4: 48 00 00 88 b ffc07d3c <== ALWAYS TAKEN } /* The data of the created timer are stored to use them later */ ptimer->state = POSIX_TIMER_STATE_CREATE_NEW; ffc07cb8: 38 00 00 02 li r0,2 ffc07cbc: 98 03 00 3c stb r0,60(r3) ptimer->thread_id = _Thread_Executing->Object.id; ffc07cc0: 3d 20 00 00 lis r9,0 if ( evp != NULL ) { ffc07cc4: 2f 9f 00 00 cmpwi cr7,r31,0 } /* The data of the created timer are stored to use them later */ ptimer->state = POSIX_TIMER_STATE_CREATE_NEW; ptimer->thread_id = _Thread_Executing->Object.id; ffc07cc8: 81 29 28 1c lwz r9,10268(r9) ffc07ccc: 80 09 00 08 lwz r0,8(r9) ffc07cd0: 90 03 00 38 stw r0,56(r3) if ( evp != NULL ) { ffc07cd4: 41 9e 00 1c beq- cr7,ffc07cf0 ptimer->inf.sigev_notify = evp->sigev_notify; ptimer->inf.sigev_signo = evp->sigev_signo; ptimer->inf.sigev_value = evp->sigev_value; ffc07cd8: 80 1f 00 08 lwz r0,8(r31) ptimer->state = POSIX_TIMER_STATE_CREATE_NEW; ptimer->thread_id = _Thread_Executing->Object.id; if ( evp != NULL ) { ptimer->inf.sigev_notify = evp->sigev_notify; ffc07cdc: 81 7f 00 00 lwz r11,0(r31) ptimer->inf.sigev_signo = evp->sigev_signo; ffc07ce0: 81 3f 00 04 lwz r9,4(r31) ptimer->state = POSIX_TIMER_STATE_CREATE_NEW; ptimer->thread_id = _Thread_Executing->Object.id; if ( evp != NULL ) { ptimer->inf.sigev_notify = evp->sigev_notify; ffc07ce4: 91 63 00 40 stw r11,64(r3) ptimer->inf.sigev_signo = evp->sigev_signo; ffc07ce8: 91 23 00 44 stw r9,68(r3) ptimer->inf.sigev_value = evp->sigev_value; ffc07cec: 90 03 00 48 stw r0,72(r3) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc07cf0: 81 23 00 08 lwz r9,8(r3) ffc07cf4: 3d 60 00 00 lis r11,0 ffc07cf8: 81 4b 2f 94 lwz r10,12180(r11) } ptimer->overrun = 0; ffc07cfc: 38 00 00 00 li r0,0 ffc07d00: 55 2b 13 ba rlwinm r11,r9,2,14,29 ffc07d04: 90 03 00 68 stw r0,104(r3) ffc07d08: 7c 6a 59 2e stwx r3,r10,r11 ptimer->timer_data.it_value.tv_sec = 0; ffc07d0c: 90 03 00 5c stw r0,92(r3) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc07d10: 90 03 00 0c stw r0,12(r3) ptimer->timer_data.it_value.tv_nsec = 0; ffc07d14: 90 03 00 60 stw r0,96(r3) ptimer->timer_data.it_interval.tv_sec = 0; ffc07d18: 90 03 00 54 stw r0,84(r3) ptimer->timer_data.it_interval.tv_nsec = 0; ffc07d1c: 90 03 00 58 stw r0,88(r3) void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc07d20: 90 03 00 30 stw r0,48(r3) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc07d24: 90 03 00 18 stw r0,24(r3) the_watchdog->routine = routine; ffc07d28: 90 03 00 2c stw r0,44(r3) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc07d2c: 90 03 00 34 stw r0,52(r3) _Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL ); _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0); *timerid = ptimer->Object.id; ffc07d30: 91 3e 00 00 stw r9,0(r30) _Thread_Enable_dispatch(); ffc07d34: 48 00 34 79 bl ffc0b1ac <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07d38: 38 60 00 00 li r3,0 return 0; } ffc07d3c: 80 01 00 14 lwz r0,20(r1) ffc07d40: 83 c1 00 08 lwz r30,8(r1) ffc07d44: 7c 08 03 a6 mtlr r0 ffc07d48: 83 e1 00 0c lwz r31,12(r1) ffc07d4c: 38 21 00 10 addi r1,r1,16 ffc07d50: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08210 : int timer_delete( timer_t timerid ) { ffc08210: 94 21 ff e0 stwu r1,-32(r1) ffc08214: 7c 08 02 a6 mflr r0 ffc08218: 7c 64 1b 78 mr r4,r3 ffc0821c: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( timer_t id, Objects_Locations *location ) { return (POSIX_Timer_Control *) ffc08220: 3f e0 00 00 lis r31,0 ffc08224: 3b ff 2f 18 addi r31,r31,12056 ffc08228: 7f e3 fb 78 mr r3,r31 ffc0822c: 90 01 00 24 stw r0,36(r1) ffc08230: 38 a1 00 08 addi r5,r1,8 ffc08234: 93 c1 00 18 stw r30,24(r1) ffc08238: 48 00 28 4d bl ffc0aa84 <_Objects_Get> <== ALWAYS TAKEN ffc0823c: 7c 7e 1b 78 mr r30,r3 */ POSIX_Timer_Control *ptimer; Objects_Locations location; ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { ffc08240: 80 01 00 08 lwz r0,8(r1) ffc08244: 2f 80 00 00 cmpwi cr7,r0,0 ffc08248: 40 9e 00 38 bne- cr7,ffc08280 case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Timer_Information, &ptimer->Object ); ffc0824c: 7f c4 f3 78 mr r4,r30 ffc08250: 7f e3 fb 78 mr r3,r31 ffc08254: 48 00 23 31 bl ffc0a584 <_Objects_Close> <== ALWAYS TAKEN ptimer->state = POSIX_TIMER_STATE_FREE; ffc08258: 38 00 00 01 li r0,1 ffc0825c: 98 1e 00 3c stb r0,60(r30) (void) _Watchdog_Remove( &ptimer->Timer ); ffc08260: 38 7e 00 10 addi r3,r30,16 ffc08264: 48 00 4a dd bl ffc0cd40 <_Watchdog_Remove> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Timer_Free ( POSIX_Timer_Control *the_timer ) { _Objects_Free( &_POSIX_Timer_Information, &the_timer->Object ); ffc08268: 7f e3 fb 78 mr r3,r31 ffc0826c: 7f c4 f3 78 mr r4,r30 ffc08270: 48 00 26 55 bl ffc0a8c4 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Timer_Free( ptimer ); _Thread_Enable_dispatch(); ffc08274: 48 00 33 21 bl ffc0b594 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08278: 38 60 00 00 li r3,0 return 0; ffc0827c: 48 00 00 14 b ffc08290 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc08280: 48 00 b1 21 bl ffc133a0 <__errno> <== ALWAYS TAKEN ffc08284: 38 00 00 16 li r0,22 ffc08288: 90 03 00 00 stw r0,0(r3) ffc0828c: 38 60 ff ff li r3,-1 } ffc08290: 80 01 00 24 lwz r0,36(r1) ffc08294: 83 c1 00 18 lwz r30,24(r1) ffc08298: 7c 08 03 a6 mtlr r0 ffc0829c: 83 e1 00 1c lwz r31,28(r1) ffc082a0: 38 21 00 20 addi r1,r1,32 ffc082a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc091a4 : * its execution, _POSIX_Timer_TSR will have to set this counter to 0. */ int timer_getoverrun( timer_t timerid ) { ffc091a4: 94 21 ff e0 stwu r1,-32(r1) ffc091a8: 7c 08 02 a6 mflr r0 ffc091ac: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( timer_t id, Objects_Locations *location ) { return (POSIX_Timer_Control *) ffc091b0: 3c 60 00 00 lis r3,0 ffc091b4: 90 01 00 24 stw r0,36(r1) ffc091b8: 38 63 2f b8 addi r3,r3,12216 ffc091bc: 38 a1 00 08 addi r5,r1,8 ffc091c0: 93 e1 00 1c stw r31,28(r1) ffc091c4: 48 00 27 bd bl ffc0b980 <_Objects_Get> <== ALWAYS TAKEN int overrun; POSIX_Timer_Control *ptimer; Objects_Locations location; ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { ffc091c8: 80 01 00 08 lwz r0,8(r1) ffc091cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc091d0: 40 9e 00 14 bne- cr7,ffc091e4 case OBJECTS_LOCAL: overrun = ptimer->overrun; ffc091d4: 83 e3 00 68 lwz r31,104(r3) ptimer->overrun = 0; ffc091d8: 90 03 00 68 stw r0,104(r3) _Thread_Enable_dispatch(); ffc091dc: 48 00 32 b5 bl ffc0c490 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return overrun; ffc091e0: 48 00 00 14 b ffc091f4 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc091e4: 48 00 ac 59 bl ffc13e3c <__errno> <== ALWAYS TAKEN ffc091e8: 38 00 00 16 li r0,22 ffc091ec: 90 03 00 00 stw r0,0(r3) ffc091f0: 3b e0 ff ff li r31,-1 } ffc091f4: 80 01 00 24 lwz r0,36(r1) ffc091f8: 7f e3 fb 78 mr r3,r31 ffc091fc: 83 e1 00 1c lwz r31,28(r1) ffc09200: 38 21 00 20 addi r1,r1,32 ffc09204: 7c 08 03 a6 mtlr r0 ffc09208: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0920c : int timer_gettime( timer_t timerid, struct itimerspec *value ) { ffc0920c: 94 21 ff e0 stwu r1,-32(r1) ffc09210: 7c 08 02 a6 mflr r0 ffc09214: 93 e1 00 1c stw r31,28(r1) POSIX_Timer_Control *ptimer; Objects_Locations location; struct timespec current_time; Watchdog_Interval left; if ( !value ) ffc09218: 7c 9f 23 79 mr. r31,r4 int timer_gettime( timer_t timerid, struct itimerspec *value ) { ffc0921c: 93 c1 00 18 stw r30,24(r1) ffc09220: 7c 7e 1b 78 mr r30,r3 ffc09224: 90 01 00 24 stw r0,36(r1) POSIX_Timer_Control *ptimer; Objects_Locations location; struct timespec current_time; Watchdog_Interval left; if ( !value ) ffc09228: 41 82 00 6c beq- ffc09294 rtems_set_errno_and_return_minus_one( EINVAL ); /* Reads the current time */ _TOD_Get( ¤t_time ); ffc0922c: 38 61 00 0c addi r3,r1,12 ffc09230: 48 00 1b c5 bl ffc0adf4 <_TOD_Get> <== ALWAYS TAKEN ffc09234: 3c 60 00 00 lis r3,0 ffc09238: 7f c4 f3 78 mr r4,r30 ffc0923c: 38 63 2f b8 addi r3,r3,12216 ffc09240: 38 a1 00 08 addi r5,r1,8 ffc09244: 48 00 27 3d bl ffc0b980 <_Objects_Get> <== ALWAYS TAKEN ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { ffc09248: 80 01 00 08 lwz r0,8(r1) ffc0924c: 7c 7e 1b 78 mr r30,r3 ffc09250: 2f 80 00 00 cmpwi cr7,r0,0 ffc09254: 40 9e 00 40 bne- cr7,ffc09294 left = (ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */ _Watchdog_Ticks_since_boot; /* now */ _Timespec_From_ticks( left, &value->it_value ); ffc09258: 81 3e 00 24 lwz r9,36(r30) case OBJECTS_LOCAL: /* Calculates the time left before the timer finishes */ left = (ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */ ffc0925c: 3d 60 00 00 lis r11,0 _Watchdog_Ticks_since_boot; /* now */ _Timespec_From_ticks( left, &value->it_value ); ffc09260: 80 63 00 1c lwz r3,28(r3) ffc09264: 38 9f 00 08 addi r4,r31,8 case OBJECTS_LOCAL: /* Calculates the time left before the timer finishes */ left = (ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */ ffc09268: 80 0b 28 50 lwz r0,10320(r11) _Watchdog_Ticks_since_boot; /* now */ _Timespec_From_ticks( left, &value->it_value ); ffc0926c: 7c 63 4a 14 add r3,r3,r9 ffc09270: 7c 60 18 50 subf r3,r0,r3 ffc09274: 48 00 42 cd bl ffc0d540 <_Timespec_From_ticks> <== ALWAYS TAKEN value->it_interval = ptimer->timer_data.it_interval; ffc09278: 81 3e 00 54 lwz r9,84(r30) ffc0927c: 81 5e 00 58 lwz r10,88(r30) ffc09280: 91 3f 00 00 stw r9,0(r31) ffc09284: 91 5f 00 04 stw r10,4(r31) _Thread_Enable_dispatch(); ffc09288: 48 00 32 09 bl ffc0c490 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0928c: 38 60 00 00 li r3,0 return 0; ffc09290: 48 00 00 14 b ffc092a4 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc09294: 48 00 ab a9 bl ffc13e3c <__errno> <== ALWAYS TAKEN ffc09298: 38 00 00 16 li r0,22 ffc0929c: 90 03 00 00 stw r0,0(r3) ffc092a0: 38 60 ff ff li r3,-1 } ffc092a4: 80 01 00 24 lwz r0,36(r1) ffc092a8: 83 c1 00 18 lwz r30,24(r1) ffc092ac: 7c 08 03 a6 mtlr r0 ffc092b0: 83 e1 00 1c lwz r31,28(r1) ffc092b4: 38 21 00 20 addi r1,r1,32 ffc092b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07d54 : timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) { ffc07d54: 94 21 ff c0 stwu r1,-64(r1) ffc07d58: 7c 08 02 a6 mflr r0 ffc07d5c: 93 a1 00 34 stw r29,52(r1) Objects_Locations location; bool activated; uint32_t initial_period; struct itimerspec normalize; if ( !value ) ffc07d60: 7c bd 2b 79 mr. r29,r5 timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) { ffc07d64: 93 c1 00 38 stw r30,56(r1) ffc07d68: 7c de 33 78 mr r30,r6 ffc07d6c: 93 e1 00 3c stw r31,60(r1) ffc07d70: 7c 7f 1b 78 mr r31,r3 ffc07d74: 90 01 00 44 stw r0,68(r1) ffc07d78: 93 61 00 2c stw r27,44(r1) ffc07d7c: 93 81 00 30 stw r28,48(r1) Objects_Locations location; bool activated; uint32_t initial_period; struct itimerspec normalize; if ( !value ) ffc07d80: 41 82 01 c4 beq- ffc07f44 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); /* First, it verifies if the structure "value" is correct */ if ( ( value->it_value.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) || ffc07d84: 81 3d 00 0c lwz r9,12(r29) ffc07d88: 3c 00 3b 9a lis r0,15258 ffc07d8c: 60 00 c9 ff ori r0,r0,51711 ffc07d90: 7f 89 00 40 cmplw cr7,r9,r0 ffc07d94: 41 9d 01 b0 bgt- cr7,ffc07f44 ( value->it_value.tv_nsec < 0 ) || ( value->it_interval.tv_nsec >= TOD_NANOSECONDS_PER_SECOND) || ffc07d98: 81 3d 00 04 lwz r9,4(r29) ffc07d9c: 7f 89 00 40 cmplw cr7,r9,r0 ffc07da0: 41 9d 01 a4 bgt- cr7,ffc07f44 <== NEVER TAKEN ( value->it_interval.tv_nsec < 0 )) { /* The number of nanoseconds is not correct */ rtems_set_errno_and_return_minus_one( EINVAL ); } if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) { ffc07da4: 2f 84 00 04 cmpwi cr7,r4,4 ffc07da8: 41 9e 00 0c beq- cr7,ffc07db4 ffc07dac: 2f 84 00 00 cmpwi cr7,r4,0 ffc07db0: 40 9e 01 94 bne- cr7,ffc07f44 } normalize = *value; /* Convert absolute to relative time */ if (flags == TIMER_ABSTIME) { ffc07db4: 2f 84 00 04 cmpwi cr7,r4,4 if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) { rtems_set_errno_and_return_minus_one( EINVAL ); } normalize = *value; ffc07db8: 81 5d 00 00 lwz r10,0(r29) ffc07dbc: 81 7d 00 04 lwz r11,4(r29) ffc07dc0: 81 3d 00 08 lwz r9,8(r29) ffc07dc4: 80 1d 00 0c lwz r0,12(r29) ffc07dc8: 91 41 00 14 stw r10,20(r1) ffc07dcc: 91 61 00 18 stw r11,24(r1) ffc07dd0: 91 21 00 1c stw r9,28(r1) ffc07dd4: 90 01 00 20 stw r0,32(r1) /* Convert absolute to relative time */ if (flags == TIMER_ABSTIME) { ffc07dd8: 40 be 00 38 bne+ cr7,ffc07e10 struct timespec now; _TOD_Get( &now ); ffc07ddc: 3b 81 00 0c addi r28,r1,12 ffc07de0: 7f 83 e3 78 mr r3,r28 /* Check for seconds in the past */ if ( _Timespec_Greater_than( &now, &normalize.it_value ) ) ffc07de4: 3b 61 00 1c addi r27,r1,28 normalize = *value; /* Convert absolute to relative time */ if (flags == TIMER_ABSTIME) { struct timespec now; _TOD_Get( &now ); ffc07de8: 48 00 1d 69 bl ffc09b50 <_TOD_Get> <== ALWAYS TAKEN /* Check for seconds in the past */ if ( _Timespec_Greater_than( &now, &normalize.it_value ) ) ffc07dec: 7f 83 e3 78 mr r3,r28 ffc07df0: 7f 64 db 78 mr r4,r27 ffc07df4: 48 00 44 69 bl ffc0c25c <_Timespec_Greater_than> <== ALWAYS TAKEN ffc07df8: 2f 83 00 00 cmpwi cr7,r3,0 ffc07dfc: 40 9e 01 48 bne- cr7,ffc07f44 rtems_set_errno_and_return_minus_one( EINVAL ); _Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value ); ffc07e00: 7f 64 db 78 mr r4,r27 ffc07e04: 7f 83 e3 78 mr r3,r28 ffc07e08: 7f 65 db 78 mr r5,r27 ffc07e0c: 48 00 44 8d bl ffc0c298 <_Timespec_Subtract> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( timer_t id, Objects_Locations *location ) { return (POSIX_Timer_Control *) ffc07e10: 3c 60 00 00 lis r3,0 ffc07e14: 7f e4 fb 78 mr r4,r31 ffc07e18: 38 63 2f 78 addi r3,r3,12152 ffc07e1c: 38 a1 00 08 addi r5,r1,8 ffc07e20: 48 00 28 7d bl ffc0a69c <_Objects_Get> <== ALWAYS TAKEN * something with the structure of times of the timer: to stop, start * or start it again */ ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { ffc07e24: 80 01 00 08 lwz r0,8(r1) ffc07e28: 7c 7f 1b 78 mr r31,r3 ffc07e2c: 2f 80 00 00 cmpwi cr7,r0,0 ffc07e30: 40 9e 01 14 bne- cr7,ffc07f44 case OBJECTS_LOCAL: /* First, it verifies if the timer must be stopped */ if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) { ffc07e34: 80 01 00 1c lwz r0,28(r1) ffc07e38: 2f 80 00 00 cmpwi cr7,r0,0 ffc07e3c: 40 9e 00 6c bne- cr7,ffc07ea8 ffc07e40: 80 01 00 20 lwz r0,32(r1) ffc07e44: 2f 80 00 00 cmpwi cr7,r0,0 ffc07e48: 40 be 00 60 bne+ cr7,ffc07ea8 /* Stop the timer */ (void) _Watchdog_Remove( &ptimer->Timer ); ffc07e4c: 38 63 00 10 addi r3,r3,16 ffc07e50: 48 00 4a d9 bl ffc0c928 <_Watchdog_Remove> <== ALWAYS TAKEN /* The old data of the timer are returned */ if ( ovalue ) ffc07e54: 2f 9e 00 00 cmpwi cr7,r30,0 ffc07e58: 41 9e 00 24 beq- cr7,ffc07e7c *ovalue = ptimer->timer_data; ffc07e5c: 81 5f 00 54 lwz r10,84(r31) ffc07e60: 81 3f 00 58 lwz r9,88(r31) ffc07e64: 80 1f 00 5c lwz r0,92(r31) ffc07e68: 81 7f 00 60 lwz r11,96(r31) ffc07e6c: 91 5e 00 00 stw r10,0(r30) ffc07e70: 91 7e 00 0c stw r11,12(r30) ffc07e74: 91 3e 00 04 stw r9,4(r30) ffc07e78: 90 1e 00 08 stw r0,8(r30) /* The new data are set */ ptimer->timer_data = normalize; ffc07e7c: 81 41 00 14 lwz r10,20(r1) /* Indicates that the timer is created and stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; ffc07e80: 39 00 00 04 li r8,4 (void) _Watchdog_Remove( &ptimer->Timer ); /* The old data of the timer are returned */ if ( ovalue ) *ovalue = ptimer->timer_data; /* The new data are set */ ptimer->timer_data = normalize; ffc07e84: 81 61 00 18 lwz r11,24(r1) ffc07e88: 81 21 00 1c lwz r9,28(r1) ffc07e8c: 80 01 00 20 lwz r0,32(r1) /* Indicates that the timer is created and stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; ffc07e90: 99 1f 00 3c stb r8,60(r31) (void) _Watchdog_Remove( &ptimer->Timer ); /* The old data of the timer are returned */ if ( ovalue ) *ovalue = ptimer->timer_data; /* The new data are set */ ptimer->timer_data = normalize; ffc07e94: 91 5f 00 54 stw r10,84(r31) ffc07e98: 91 7f 00 58 stw r11,88(r31) ffc07e9c: 91 3f 00 5c stw r9,92(r31) ffc07ea0: 90 1f 00 60 stw r0,96(r31) ffc07ea4: 48 00 00 94 b ffc07f38 <== ALWAYS TAKEN _Thread_Enable_dispatch(); return 0; } /* Convert from seconds and nanoseconds to ticks */ ptimer->ticks = _Timespec_To_ticks( &value->it_interval ); ffc07ea8: 7f a3 eb 78 mr r3,r29 ffc07eac: 48 00 44 25 bl ffc0c2d0 <_Timespec_To_ticks> <== ALWAYS TAKEN ffc07eb0: 90 7f 00 64 stw r3,100(r31) initial_period = _Timespec_To_ticks( &normalize.it_value ); ffc07eb4: 38 61 00 1c addi r3,r1,28 ffc07eb8: 48 00 44 19 bl ffc0c2d0 <_Timespec_To_ticks> <== ALWAYS TAKEN activated = _POSIX_Timer_Insert_helper( ffc07ebc: 80 bf 00 08 lwz r5,8(r31) ffc07ec0: 3c c0 ff c0 lis r6,-64 return 0; } /* Convert from seconds and nanoseconds to ticks */ ptimer->ticks = _Timespec_To_ticks( &value->it_interval ); initial_period = _Timespec_To_ticks( &normalize.it_value ); ffc07ec4: 7c 64 1b 78 mr r4,r3 activated = _POSIX_Timer_Insert_helper( ffc07ec8: 38 c6 7f 78 addi r6,r6,32632 ffc07ecc: 38 7f 00 10 addi r3,r31,16 ffc07ed0: 7f e7 fb 78 mr r7,r31 ffc07ed4: 48 00 6f a9 bl ffc0ee7c <_POSIX_Timer_Insert_helper> <== ALWAYS TAKEN initial_period, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) { ffc07ed8: 2f 83 00 00 cmpwi cr7,r3,0 ffc07edc: 41 9e 00 5c beq- cr7,ffc07f38 /* * The timer has been started and is running. So we return the * old ones in "ovalue" */ if ( ovalue ) ffc07ee0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc07ee4: 41 9e 00 24 beq- cr7,ffc07f08 *ovalue = ptimer->timer_data; ffc07ee8: 81 5f 00 54 lwz r10,84(r31) ffc07eec: 81 3f 00 58 lwz r9,88(r31) ffc07ef0: 80 1f 00 5c lwz r0,92(r31) ffc07ef4: 81 7f 00 60 lwz r11,96(r31) ffc07ef8: 91 5e 00 00 stw r10,0(r30) ffc07efc: 91 7e 00 0c stw r11,12(r30) ffc07f00: 91 3e 00 04 stw r9,4(r30) ffc07f04: 90 1e 00 08 stw r0,8(r30) ptimer->timer_data = normalize; ffc07f08: 80 01 00 20 lwz r0,32(r1) /* Indicate that the time is running */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; _TOD_Get( &ptimer->time ); ffc07f0c: 38 7f 00 6c addi r3,r31,108 * The timer has been started and is running. So we return the * old ones in "ovalue" */ if ( ovalue ) *ovalue = ptimer->timer_data; ptimer->timer_data = normalize; ffc07f10: 81 61 00 18 lwz r11,24(r1) ffc07f14: 81 21 00 1c lwz r9,28(r1) ffc07f18: 81 41 00 14 lwz r10,20(r1) ffc07f1c: 90 1f 00 60 stw r0,96(r31) /* Indicate that the time is running */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; ffc07f20: 38 00 00 03 li r0,3 * The timer has been started and is running. So we return the * old ones in "ovalue" */ if ( ovalue ) *ovalue = ptimer->timer_data; ptimer->timer_data = normalize; ffc07f24: 91 5f 00 54 stw r10,84(r31) ffc07f28: 91 7f 00 58 stw r11,88(r31) ffc07f2c: 91 3f 00 5c stw r9,92(r31) /* Indicate that the time is running */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; ffc07f30: 98 1f 00 3c stb r0,60(r31) _TOD_Get( &ptimer->time ); ffc07f34: 48 00 1c 1d bl ffc09b50 <_TOD_Get> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc07f38: 48 00 32 75 bl ffc0b1ac <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07f3c: 38 60 00 00 li r3,0 return 0; ffc07f40: 48 00 00 14 b ffc07f54 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc07f44: 48 00 ab e5 bl ffc12b28 <__errno> <== ALWAYS TAKEN ffc07f48: 38 00 00 16 li r0,22 ffc07f4c: 90 03 00 00 stw r0,0(r3) ffc07f50: 38 60 ff ff li r3,-1 } ffc07f54: 80 01 00 44 lwz r0,68(r1) ffc07f58: 83 61 00 2c lwz r27,44(r1) ffc07f5c: 7c 08 03 a6 mtlr r0 ffc07f60: 83 81 00 30 lwz r28,48(r1) ffc07f64: 83 a1 00 34 lwz r29,52(r1) ffc07f68: 83 c1 00 38 lwz r30,56(r1) ffc07f6c: 83 e1 00 3c lwz r31,60(r1) ffc07f70: 38 21 00 40 addi r1,r1,64 ffc07f74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a8e0 : int truncate( const char *path, off_t length ) { ffc0a8e0: 94 21 ff e8 stwu r1,-24(r1) ffc0a8e4: 7c 08 02 a6 mflr r0 int status; int fd; fd = open( path, O_WRONLY ); ffc0a8e8: 38 80 00 01 li r4,1 int truncate( const char *path, off_t length ) { ffc0a8ec: 93 81 00 08 stw r28,8(r1) int status; int fd; fd = open( path, O_WRONLY ); if ( fd == -1 ) ffc0a8f0: 3b 80 ff ff li r28,-1 int truncate( const char *path, off_t length ) { ffc0a8f4: 93 a1 00 0c stw r29,12(r1) ffc0a8f8: 7c bd 2b 78 mr r29,r5 ffc0a8fc: 93 c1 00 10 stw r30,16(r1) ffc0a900: 7c de 33 78 mr r30,r6 ffc0a904: 93 e1 00 14 stw r31,20(r1) ffc0a908: 90 01 00 1c stw r0,28(r1) int status; int fd; fd = open( path, O_WRONLY ); ffc0a90c: 4c c6 31 82 crclr 4*cr1+eq ffc0a910: 4b ff d7 49 bl ffc08058 <== ALWAYS TAKEN if ( fd == -1 ) ffc0a914: 2f 83 ff ff cmpwi cr7,r3,-1 ) { int status; int fd; fd = open( path, O_WRONLY ); ffc0a918: 7c 7f 1b 78 mr r31,r3 if ( fd == -1 ) ffc0a91c: 41 9e 00 1c beq- cr7,ffc0a938 return -1; status = ftruncate( fd, length ); ffc0a920: 7f a5 eb 78 mr r5,r29 ffc0a924: 7f c6 f3 78 mr r6,r30 ffc0a928: 48 00 73 79 bl ffc11ca0 <== ALWAYS TAKEN ffc0a92c: 7c 7c 1b 78 mr r28,r3 (void) close( fd ); ffc0a930: 7f e3 fb 78 mr r3,r31 ffc0a934: 4b ff c1 c1 bl ffc06af4 <== ALWAYS TAKEN return status; } ffc0a938: 80 01 00 1c lwz r0,28(r1) ffc0a93c: 7f 83 e3 78 mr r3,r28 ffc0a940: 83 a1 00 0c lwz r29,12(r1) ffc0a944: 7c 08 03 a6 mtlr r0 ffc0a948: 83 81 00 08 lwz r28,8(r1) ffc0a94c: 83 c1 00 10 lwz r30,16(r1) ffc0a950: 83 e1 00 14 lwz r31,20(r1) ffc0a954: 38 21 00 18 addi r1,r1,24 ffc0a958: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dd9c : useconds_t ualarm( useconds_t useconds, useconds_t interval ) { ffc0dd9c: 94 21 ff d8 stwu r1,-40(r1) ffc0dda0: 7c 08 02 a6 mflr r0 ffc0dda4: 93 a1 00 1c stw r29,28(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc0dda8: 3f a0 00 00 lis r29,0 ffc0ddac: 3b bd 34 bc addi r29,r29,13500 useconds_t ualarm( useconds_t useconds, useconds_t interval ) { ffc0ddb0: 90 01 00 2c stw r0,44(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc0ddb4: 80 1d 00 1c lwz r0,28(r29) useconds_t ualarm( useconds_t useconds, useconds_t interval ) { ffc0ddb8: 93 c1 00 20 stw r30,32(r1) ffc0ddbc: 7c 7e 1b 78 mr r30,r3 /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc0ddc0: 2f 80 00 00 cmpwi cr7,r0,0 useconds_t ualarm( useconds_t useconds, useconds_t interval ) { ffc0ddc4: 93 e1 00 24 stw r31,36(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc0ddc8: 40 be 00 24 bne+ cr7,ffc0ddec Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0ddcc: 3d 20 ff c1 lis r9,-63 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0ddd0: 90 1d 00 24 stw r0,36(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0ddd4: 39 29 de b4 addi r9,r9,-8524 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0ddd8: 3b e0 00 00 li r31,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0dddc: 91 3d 00 1c stw r9,28(r29) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0dde0: 90 1d 00 08 stw r0,8(r29) the_watchdog->routine = routine; the_watchdog->id = id; ffc0dde4: 90 1d 00 20 stw r0,32(r29) ffc0dde8: 48 00 00 58 b ffc0de40 <== ALWAYS TAKEN _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL ); } else { Watchdog_States state; state = _Watchdog_Remove( the_timer ); ffc0ddec: 7f a3 eb 78 mr r3,r29 ffc0ddf0: 4b ff dc 29 bl ffc0ba18 <_Watchdog_Remove> <== ALWAYS TAKEN if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) { ffc0ddf4: 3b e0 00 00 li r31,0 ffc0ddf8: 38 63 ff fe addi r3,r3,-2 ffc0ddfc: 2b 83 00 01 cmplwi cr7,r3,1 ffc0de00: 41 bd 00 40 bgt+ cr7,ffc0de40 <== NEVER TAKEN * boot. Since alarm() is dealing in seconds, we must account for * this. */ ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); ffc0de04: 81 3d 00 0c lwz r9,12(r29) /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); ffc0de08: 38 81 00 08 addi r4,r1,8 * boot. Since alarm() is dealing in seconds, we must account for * this. */ ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); ffc0de0c: 80 7d 00 14 lwz r3,20(r29) /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); ffc0de10: 80 1d 00 18 lwz r0,24(r29) * boot. Since alarm() is dealing in seconds, we must account for * this. */ ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); ffc0de14: 7c 63 4a 14 add r3,r3,r9 /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); ffc0de18: 7c 60 18 50 subf r3,r0,r3 ffc0de1c: 48 00 12 5d bl ffc0f078 <_Timespec_From_ticks> <== ALWAYS TAKEN remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; remaining += tp.tv_nsec / 1000; ffc0de20: 83 e1 00 0c lwz r31,12(r1) ffc0de24: 38 00 03 e8 li r0,1000 ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; ffc0de28: 81 21 00 08 lwz r9,8(r1) remaining += tp.tv_nsec / 1000; ffc0de2c: 7c 1f 03 d6 divw r0,r31,r0 ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; ffc0de30: 3f e0 00 0f lis r31,15 ffc0de34: 63 ff 42 40 ori r31,r31,16960 ffc0de38: 7f ff 49 d6 mullw r31,r31,r9 remaining += tp.tv_nsec / 1000; ffc0de3c: 7f e0 fa 14 add r31,r0,r31 /* * If useconds is non-zero, then the caller wants to schedule * the alarm repeatedly at that interval. If the interval is * less than a single clock tick, then fudge it to a clock tick. */ if ( useconds ) { ffc0de40: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0de44: 41 be 00 50 beq+ cr7,ffc0de94 Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; ffc0de48: 3d 20 00 0f lis r9,15 ffc0de4c: 61 29 42 40 ori r9,r9,16960 ffc0de50: 7c 1e 4b 96 divwu r0,r30,r9 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ffc0de54: 7d 20 49 d6 mullw r9,r0,r9 * less than a single clock tick, then fudge it to a clock tick. */ if ( useconds ) { Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; ffc0de58: 90 01 00 08 stw r0,8(r1) tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ticks = _Timespec_To_ticks( &tp ); ffc0de5c: 3b a1 00 08 addi r29,r1,8 */ if ( useconds ) { Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ffc0de60: 7f c9 f0 50 subf r30,r9,r30 ffc0de64: 1f de 03 e8 mulli r30,r30,1000 ticks = _Timespec_To_ticks( &tp ); ffc0de68: 7f a3 eb 78 mr r3,r29 */ if ( useconds ) { Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ffc0de6c: 93 c1 00 0c stw r30,12(r1) ticks = _Timespec_To_ticks( &tp ); ffc0de70: 48 00 12 39 bl ffc0f0a8 <_Timespec_To_ticks> <== ALWAYS TAKEN if ( ticks == 0 ) ticks = 1; _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) ); ffc0de74: 7f a3 eb 78 mr r3,r29 ffc0de78: 48 00 12 31 bl ffc0f0a8 <_Timespec_To_ticks> <== ALWAYS TAKEN Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0de7c: 3c 80 00 00 lis r4,0 ffc0de80: 38 84 34 bc addi r4,r4,13500 ffc0de84: 90 64 00 0c stw r3,12(r4) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0de88: 3c 60 00 00 lis r3,0 ffc0de8c: 38 63 2d 48 addi r3,r3,11592 ffc0de90: 4b ff da 31 bl ffc0b8c0 <_Watchdog_Insert> <== ALWAYS TAKEN } return remaining; } ffc0de94: 80 01 00 2c lwz r0,44(r1) ffc0de98: 7f e3 fb 78 mr r3,r31 ffc0de9c: 83 a1 00 1c lwz r29,28(r1) ffc0dea0: 7c 08 03 a6 mtlr r0 ffc0dea4: 83 c1 00 20 lwz r30,32(r1) ffc0dea8: 83 e1 00 24 lwz r31,36(r1) ffc0deac: 38 21 00 28 addi r1,r1,40 ffc0deb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2cf88 : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; ffc2cf88: 3d 20 00 00 lis r9,0 ffc2cf8c: 81 29 35 2c lwz r9,13612(r9) ffc2cf90: 80 09 00 2c lwz r0,44(r9) rtems_filesystem_umask = cmask; ffc2cf94: 90 69 00 2c stw r3,44(r9) return old_mask; } ffc2cf98: 7c 03 03 78 mr r3,r0 ffc2cf9c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07a7c : */ int uname( struct utsname *name ) { ffc07a7c: 94 21 ff f0 stwu r1,-16(r1) ffc07a80: 7c 08 02 a6 mflr r0 ffc07a84: 93 e1 00 0c stw r31,12(r1) release = 5.3 version = Generic_101318-12 machine = sun4m */ if ( !name ) ffc07a88: 7c 7f 1b 79 mr. r31,r3 */ int uname( struct utsname *name ) { ffc07a8c: 90 01 00 14 stw r0,20(r1) release = 5.3 version = Generic_101318-12 machine = sun4m */ if ( !name ) ffc07a90: 40 a2 00 18 bne+ ffc07aa8 rtems_set_errno_and_return_minus_one( EFAULT ); ffc07a94: 48 00 b2 e9 bl ffc12d7c <__errno> <== ALWAYS TAKEN ffc07a98: 38 00 00 0e li r0,14 ffc07a9c: 90 03 00 00 stw r0,0(r3) ffc07aa0: 38 60 ff ff li r3,-1 ffc07aa4: 48 00 00 70 b ffc07b14 <== ALWAYS TAKEN strcpy( name->sysname, "RTEMS" ); ffc07aa8: 3c 80 ff c2 lis r4,-62 ffc07aac: 38 84 f4 5b addi r4,r4,-2981 ffc07ab0: 48 00 c4 7d bl ffc13f2c <== ALWAYS TAKEN sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node ); ffc07ab4: 3c 80 ff c2 lis r4,-62 ffc07ab8: 38 a0 00 01 li r5,1 ffc07abc: 38 84 f4 61 addi r4,r4,-2975 ffc07ac0: 38 7f 00 20 addi r3,r31,32 ffc07ac4: 4c c6 31 82 crclr 4*cr1+eq ffc07ac8: 48 00 c0 a9 bl ffc13b70 <== ALWAYS TAKEN strcpy( name->release, RTEMS_VERSION ); ffc07acc: 3c 80 ff c2 lis r4,-62 ffc07ad0: 38 84 f4 69 addi r4,r4,-2967 ffc07ad4: 38 7f 00 40 addi r3,r31,64 ffc07ad8: 48 00 c4 55 bl ffc13f2c <== ALWAYS TAKEN strcpy( name->version, "" ); ffc07adc: 3c 80 ff c2 lis r4,-62 ffc07ae0: 38 84 f4 5a addi r4,r4,-2982 ffc07ae4: 38 7f 00 60 addi r3,r31,96 ffc07ae8: 48 00 c4 45 bl ffc13f2c <== ALWAYS TAKEN sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME ); ffc07aec: 3c 80 ff c2 lis r4,-62 ffc07af0: 3c a0 ff c2 lis r5,-62 ffc07af4: 3c c0 ff c2 lis r6,-62 ffc07af8: 38 7f 00 80 addi r3,r31,128 ffc07afc: 38 84 f4 72 addi r4,r4,-2958 ffc07b00: 38 a5 f4 78 addi r5,r5,-2952 ffc07b04: 38 c6 f4 80 addi r6,r6,-2944 ffc07b08: 4c c6 31 82 crclr 4*cr1+eq ffc07b0c: 48 00 c0 65 bl ffc13b70 <== ALWAYS TAKEN ffc07b10: 38 60 00 00 li r3,0 return 0; } ffc07b14: 80 01 00 14 lwz r0,20(r1) ffc07b18: 83 e1 00 0c lwz r31,12(r1) ffc07b1c: 38 21 00 10 addi r1,r1,16 ffc07b20: 7c 08 03 a6 mtlr r0 ffc07b24: 4e 80 00 20 blr <== ALWAYS TAKEN ffc112c8 : #include int unlink( const char *path ) { ffc112c8: 94 21 ff b8 stwu r1,-72(r1) ffc112cc: 7c 08 02 a6 mflr r0 ffc112d0: 93 a1 00 3c stw r29,60(r1) ffc112d4: 93 c1 00 40 stw r30,64(r1) ffc112d8: 7c 7e 1b 78 mr r30,r3 ffc112dc: 90 01 00 4c stw r0,76(r1) ffc112e0: 93 e1 00 44 stw r31,68(r1) /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); ffc112e4: 4b ff 2b 19 bl ffc03dfc <== ALWAYS TAKEN if ( parentpathlen == 0 ) ffc112e8: 7c 7d 1b 79 mr. r29,r3 ffc112ec: 40 82 00 8c bne- ffc11378 rtems_filesystem_get_start_loc( path, &i, &parentloc ); ffc112f0: 88 1e 00 00 lbz r0,0(r30) ffc112f4: 2f 80 00 2f cmpwi cr7,r0,47 ffc112f8: 41 9e 00 14 beq- cr7,ffc1130c <== ALWAYS TAKEN ffc112fc: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc11300: 41 9e 00 0c beq- cr7,ffc1130c <== NOT EXECUTED ffc11304: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc11308: 40 9e 00 38 bne- cr7,ffc11340 <== NOT EXECUTED ffc1130c: 3d 20 00 00 lis r9,0 ffc11310: 81 29 26 dc lwz r9,9948(r9) ffc11314: 3b e0 00 00 li r31,0 ffc11318: 80 09 00 24 lwz r0,36(r9) ffc1131c: 81 09 00 18 lwz r8,24(r9) ffc11320: 81 49 00 1c lwz r10,28(r9) ffc11324: 81 69 00 20 lwz r11,32(r9) ffc11328: 91 01 00 08 stw r8,8(r1) ffc1132c: 91 41 00 0c stw r10,12(r1) ffc11330: 91 61 00 10 stw r11,16(r1) ffc11334: 90 01 00 14 stw r0,20(r1) ffc11338: 80 09 00 28 lwz r0,40(r9) ffc1133c: 48 00 00 34 b ffc11370 <== ALWAYS TAKEN ffc11340: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc11344: 81 29 26 dc lwz r9,9948(r9) <== NOT EXECUTED ffc11348: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc1134c: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc11350: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc11354: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc11358: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc1135c: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc11360: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc11364: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc11368: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc1136c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc11370: 90 01 00 18 stw r0,24(r1) ffc11374: 48 00 00 28 b ffc1139c <== ALWAYS TAKEN else { result = rtems_filesystem_evaluate_path( path, parentpathlen, ffc11378: 7f c3 f3 78 mr r3,r30 ffc1137c: 7f a4 eb 78 mr r4,r29 ffc11380: 38 a0 00 02 li r5,2 ffc11384: 38 c1 00 08 addi r6,r1,8 ffc11388: 38 e0 00 00 li r7,0 ffc1138c: 4b ff 2b e9 bl ffc03f74 <== ALWAYS TAKEN RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc11390: 2f 83 00 00 cmpwi cr7,r3,0 ffc11394: 40 9e 01 ec bne- cr7,ffc11580 <== NEVER TAKEN ffc11398: 3b e0 00 01 li r31,1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc1139c: 80 01 00 08 lwz r0,8(r1) name = path + parentpathlen; ffc113a0: 7f be ea 14 add r29,r30,r29 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc113a4: 7f a3 eb 78 mr r3,r29 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc113a8: 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 ), ffc113ac: 3b c1 00 1c addi r30,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc113b0: 80 01 00 0c lwz r0,12(r1) ffc113b4: 90 01 00 20 stw r0,32(r1) ffc113b8: 80 01 00 10 lwz r0,16(r1) ffc113bc: 90 01 00 24 stw r0,36(r1) ffc113c0: 80 01 00 14 lwz r0,20(r1) ffc113c4: 90 01 00 28 stw r0,40(r1) ffc113c8: 80 01 00 18 lwz r0,24(r1) ffc113cc: 90 01 00 2c stw r0,44(r1) name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc113d0: 48 00 1b 39 bl ffc12f08 <== ALWAYS TAKEN ffc113d4: 7c 64 1b 78 mr r4,r3 ffc113d8: 7f a3 eb 78 mr r3,r29 ffc113dc: 4b ff 29 e5 bl ffc03dc0 <== ALWAYS TAKEN ffc113e0: 7f bd 1a 14 add r29,r29,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc113e4: 7f a3 eb 78 mr r3,r29 ffc113e8: 48 00 1b 21 bl ffc12f08 <== ALWAYS TAKEN ffc113ec: 38 a0 00 00 li r5,0 ffc113f0: 7c 64 1b 78 mr r4,r3 ffc113f4: 7f c6 f3 78 mr r6,r30 ffc113f8: 7f a3 eb 78 mr r3,r29 ffc113fc: 38 e0 00 00 li r7,0 ffc11400: 4b ff 2a 61 bl ffc03e60 <== ALWAYS TAKEN 0, &loc, false ); if ( result != 0 ) { ffc11404: 2f 83 00 00 cmpwi cr7,r3,0 ffc11408: 41 be 00 30 beq+ cr7,ffc11438 if ( free_parentloc ) ffc1140c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc11410: 41 be 01 70 beq+ cr7,ffc11580 <== NEVER TAKEN rtems_filesystem_freenode( &parentloc ); ffc11414: 81 21 00 14 lwz r9,20(r1) ffc11418: 2f 89 00 00 cmpwi cr7,r9,0 ffc1141c: 41 be 01 64 beq+ cr7,ffc11580 <== NEVER TAKEN ffc11420: 80 09 00 1c lwz r0,28(r9) ffc11424: 38 61 00 08 addi r3,r1,8 ffc11428: 3b a0 ff ff li r29,-1 ffc1142c: 2f 80 00 00 cmpwi cr7,r0,0 ffc11430: 41 be 01 50 beq+ cr7,ffc11580 <== NEVER TAKEN ffc11434: 48 00 01 40 b ffc11574 <== ALWAYS TAKEN return -1; } if ( !loc.ops->node_type_h ) { ffc11438: 81 21 00 28 lwz r9,40(r1) ffc1143c: 80 09 00 10 lwz r0,16(r9) ffc11440: 2f 80 00 00 cmpwi cr7,r0,0 ffc11444: 41 9e 00 80 beq- cr7,ffc114c4 <== 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 ) { ffc11448: 7f c3 f3 78 mr r3,r30 ffc1144c: 7c 09 03 a6 mtctr r0 ffc11450: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc11454: 81 21 00 28 lwz r9,40(r1) ffc11458: 2f 83 00 01 cmpwi cr7,r3,1 ffc1145c: 40 be 00 5c bne+ cr7,ffc114b8 rtems_filesystem_freenode( &loc ); ffc11460: 2f 89 00 00 cmpwi cr7,r9,0 ffc11464: 41 9e 00 1c beq- cr7,ffc11480 <== NEVER TAKEN ffc11468: 80 09 00 1c lwz r0,28(r9) ffc1146c: 2f 80 00 00 cmpwi cr7,r0,0 ffc11470: 41 9e 00 10 beq- cr7,ffc11480 <== NEVER TAKEN ffc11474: 7f c3 f3 78 mr r3,r30 ffc11478: 7c 09 03 a6 mtctr r0 ffc1147c: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( free_parentloc ) ffc11480: 2f 9f 00 00 cmpwi cr7,r31,0 ffc11484: 41 9e 00 28 beq- cr7,ffc114ac <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); ffc11488: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc1148c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc11490: 41 9e 00 1c beq- cr7,ffc114ac <== NOT EXECUTED ffc11494: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc11498: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc1149c: 41 9e 00 10 beq- cr7,ffc114ac <== NOT EXECUTED ffc114a0: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc114a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc114a8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); ffc114ac: 48 00 07 61 bl ffc11c0c <__errno> <== ALWAYS TAKEN ffc114b0: 38 00 00 15 li r0,21 ffc114b4: 48 00 00 5c b ffc11510 <== ALWAYS TAKEN } if ( !loc.ops->unlink_h ) { ffc114b8: 80 09 00 0c lwz r0,12(r9) ffc114bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc114c0: 40 be 00 58 bne+ cr7,ffc11518 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc114c4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc114c8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc114cc: 41 9e 00 10 beq- cr7,ffc114dc <== NOT EXECUTED ffc114d0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc114d4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc114d8: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc114dc: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc114e0: 41 9e 00 28 beq- cr7,ffc11508 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc114e4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc114e8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc114ec: 41 9e 00 1c beq- cr7,ffc11508 <== NOT EXECUTED ffc114f0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc114f4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc114f8: 41 9e 00 10 beq- cr7,ffc11508 <== NOT EXECUTED ffc114fc: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc11500: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc11504: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc11508: 48 00 07 05 bl ffc11c0c <__errno> <== NOT EXECUTED ffc1150c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc11510: 90 03 00 00 stw r0,0(r3) ffc11514: 48 00 00 6c b ffc11580 <== ALWAYS TAKEN } result = (*loc.ops->unlink_h)( &parentloc, &loc ); ffc11518: 38 61 00 08 addi r3,r1,8 ffc1151c: 7c 09 03 a6 mtctr r0 ffc11520: 7f c4 f3 78 mr r4,r30 ffc11524: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc11528: 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 ); ffc1152c: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc11530: 2f 89 00 00 cmpwi cr7,r9,0 ffc11534: 41 9e 00 1c beq- cr7,ffc11550 <== NEVER TAKEN ffc11538: 80 09 00 1c lwz r0,28(r9) ffc1153c: 2f 80 00 00 cmpwi cr7,r0,0 ffc11540: 41 9e 00 10 beq- cr7,ffc11550 <== NEVER TAKEN ffc11544: 7f c3 f3 78 mr r3,r30 ffc11548: 7c 09 03 a6 mtctr r0 ffc1154c: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( free_parentloc ) ffc11550: 2f 9f 00 00 cmpwi cr7,r31,0 ffc11554: 41 9e 00 30 beq- cr7,ffc11584 <== NEVER TAKEN rtems_filesystem_freenode( &parentloc ); ffc11558: 81 21 00 14 lwz r9,20(r1) ffc1155c: 2f 89 00 00 cmpwi cr7,r9,0 ffc11560: 41 9e 00 24 beq- cr7,ffc11584 <== NEVER TAKEN ffc11564: 80 09 00 1c lwz r0,28(r9) ffc11568: 2f 80 00 00 cmpwi cr7,r0,0 ffc1156c: 41 9e 00 18 beq- cr7,ffc11584 <== NEVER TAKEN ffc11570: 38 61 00 08 addi r3,r1,8 ffc11574: 7c 09 03 a6 mtctr r0 ffc11578: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc1157c: 48 00 00 08 b ffc11584 <== ALWAYS TAKEN ffc11580: 3b a0 ff ff li r29,-1 return result; } ffc11584: 80 01 00 4c lwz r0,76(r1) ffc11588: 7f a3 eb 78 mr r3,r29 ffc1158c: 83 c1 00 40 lwz r30,64(r1) ffc11590: 7c 08 03 a6 mtlr r0 ffc11594: 83 a1 00 3c lwz r29,60(r1) ffc11598: 83 e1 00 44 lwz r31,68(r1) ffc1159c: 38 21 00 48 addi r1,r1,72 ffc115a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c38c : */ int unmount( const char *path ) { ffc0c38c: 94 21 ff d0 stwu r1,-48(r1) ffc0c390: 7c 08 02 a6 mflr r0 ffc0c394: 93 c1 00 28 stw r30,40(r1) ffc0c398: 7c 7e 1b 78 mr r30,r3 ffc0c39c: 90 01 00 34 stw r0,52(r1) ffc0c3a0: 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 ) ) ffc0c3a4: 48 04 30 b1 bl ffc4f454 <== ALWAYS TAKEN ffc0c3a8: 3b e1 00 08 addi r31,r1,8 ffc0c3ac: 7c 64 1b 78 mr r4,r3 ffc0c3b0: 38 a0 00 00 li r5,0 ffc0c3b4: 7f c3 f3 78 mr r3,r30 ffc0c3b8: 7f e6 fb 78 mr r6,r31 ffc0c3bc: 38 e0 00 01 li r7,1 ffc0c3c0: 4b ff bf 7d bl ffc0833c <== ALWAYS TAKEN ffc0c3c4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c3c8: 40 9e 01 84 bne- cr7,ffc0c54c return -1; mt_entry = loc.mt_entry; ffc0c3cc: 83 c1 00 18 lwz r30,24(r1) fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; ffc0c3d0: 80 01 00 08 lwz r0,8(r1) ffc0c3d4: 81 7e 00 1c lwz r11,28(r30) ffc0c3d8: 81 21 00 14 lwz r9,20(r1) ffc0c3dc: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0c3e0: 41 be 00 30 beq+ cr7,ffc0c410 /* * 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 ); ffc0c3e4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c3e8: 41 9e 00 1c beq- cr7,ffc0c404 <== NEVER TAKEN ffc0c3ec: 80 09 00 1c lwz r0,28(r9) ffc0c3f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c3f4: 41 9e 00 10 beq- cr7,ffc0c404 <== NEVER TAKEN ffc0c3f8: 7f e3 fb 78 mr r3,r31 ffc0c3fc: 7c 09 03 a6 mtctr r0 ffc0c400: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EACCES ); ffc0c404: 48 03 b2 89 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc0c408: 38 00 00 0d li r0,13 ffc0c40c: 48 00 00 a0 b ffc0c4ac <== ALWAYS TAKEN /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); ffc0c410: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c414: 41 9e 00 1c beq- cr7,ffc0c430 <== NEVER TAKEN ffc0c418: 80 09 00 1c lwz r0,28(r9) ffc0c41c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c420: 41 9e 00 10 beq- cr7,ffc0c430 <== NEVER TAKEN ffc0c424: 7f e3 fb 78 mr r3,r31 ffc0c428: 7c 09 03 a6 mtctr r0 ffc0c42c: 4e 80 04 21 bctrl <== ALWAYS TAKEN 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; ffc0c430: 81 3e 00 14 lwz r9,20(r30) ffc0c434: 80 09 00 28 lwz r0,40(r9) ffc0c438: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c43c: 41 9e 00 14 beq- cr7,ffc0c450 <== NEVER TAKEN fs_root_loc = &mt_entry->mt_fs_root; ffc0c440: 81 3e 00 28 lwz r9,40(r30) ffc0c444: 80 09 00 2c lwz r0,44(r9) ffc0c448: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c44c: 40 be 00 10 bne+ cr7,ffc0c45c <== 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 ); ffc0c450: 48 03 b2 3d bl ffc4768c <__errno> <== NOT EXECUTED ffc0c454: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0c458: 48 00 00 54 b ffc0c4ac <== 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 ) ffc0c45c: 3d 20 00 00 lis r9,0 ffc0c460: 81 29 35 2c lwz r9,13612(r9) ffc0c464: 80 09 00 14 lwz r0,20(r9) ffc0c468: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0c46c: 41 9e 00 38 beq- cr7,ffc0c4a4 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0c470: 3d 20 00 00 lis r9,0 ffc0c474: 3d 60 00 00 lis r11,0 ffc0c478: 81 29 63 d0 lwz r9,25552(r9) ffc0c47c: 38 0b 63 d4 addi r0,r11,25556 ffc0c480: 48 00 00 18 b ffc0c498 <== ALWAYS TAKEN 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; ffc0c484: 81 49 00 18 lwz r10,24(r9) ffc0c488: 81 7e 00 2c lwz r11,44(r30) ffc0c48c: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0c490: 41 9e 00 14 beq- cr7,ffc0c4a4 * 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 ) { ffc0c494: 81 29 00 00 lwz r9,0(r9) ffc0c498: 7f 89 00 00 cmpw cr7,r9,r0 ffc0c49c: 40 9e ff e8 bne+ cr7,ffc0c484 ffc0c4a0: 48 00 00 c8 b ffc0c568 <== ALWAYS TAKEN * 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 ); ffc0c4a4: 48 03 b1 e9 bl ffc4768c <__errno> <== ALWAYS TAKEN ffc0c4a8: 38 00 00 10 li r0,16 ffc0c4ac: 90 03 00 00 stw r0,0(r3) ffc0c4b0: 48 00 00 9c b ffc0c54c <== ALWAYS TAKEN * 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 ) ffc0c4b4: 81 3e 00 14 lwz r9,20(r30) ffc0c4b8: 7f c3 f3 78 mr r3,r30 ffc0c4bc: 80 09 00 28 lwz r0,40(r9) ffc0c4c0: 7c 09 03 a6 mtctr r0 ffc0c4c4: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0c4c8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c4cc: 40 be 00 80 bne+ cr7,ffc0c54c <== 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){ ffc0c4d0: 81 3e 00 28 lwz r9,40(r30) ffc0c4d4: 7f c3 f3 78 mr r3,r30 ffc0c4d8: 80 09 00 2c lwz r0,44(r9) ffc0c4dc: 7c 09 03 a6 mtctr r0 ffc0c4e0: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0c4e4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c4e8: 41 be 00 28 beq+ cr7,ffc0c510 <== ALWAYS TAKEN if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) ffc0c4ec: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED ffc0c4f0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0c4f4: 80 09 00 20 lwz r0,32(r9) <== NOT EXECUTED ffc0c4f8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0c4fc: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0c500: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0c504: 41 be 00 48 beq+ cr7,ffc0c54c <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); ffc0c508: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0c50c: 48 00 16 f9 bl ffc0dc04 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0c510: 7f c3 f3 78 mr r3,r30 ffc0c514: 48 00 1b bd bl ffc0e0d0 <_Chain_Extract> <== ALWAYS TAKEN /* * 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 ); ffc0c518: 81 3e 00 14 lwz r9,20(r30) ffc0c51c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c520: 41 9e 00 1c beq- cr7,ffc0c53c <== NEVER TAKEN ffc0c524: 80 09 00 1c lwz r0,28(r9) ffc0c528: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c52c: 41 9e 00 10 beq- cr7,ffc0c53c <== NEVER TAKEN ffc0c530: 38 7e 00 08 addi r3,r30,8 ffc0c534: 7c 09 03 a6 mtctr r0 ffc0c538: 4e 80 04 21 bctrl <== ALWAYS TAKEN free( mt_entry ); ffc0c53c: 7f c3 f3 78 mr r3,r30 ffc0c540: 4b ff be e1 bl ffc08420 <== ALWAYS TAKEN ffc0c544: 38 60 00 00 li r3,0 return 0; ffc0c548: 48 00 00 08 b ffc0c550 <== ALWAYS TAKEN ffc0c54c: 38 60 ff ff li r3,-1 } ffc0c550: 80 01 00 34 lwz r0,52(r1) ffc0c554: 83 c1 00 28 lwz r30,40(r1) ffc0c558: 7c 08 03 a6 mtlr r0 ffc0c55c: 83 e1 00 2c lwz r31,44(r1) ffc0c560: 38 21 00 30 addi r1,r1,48 ffc0c564: 4e 80 00 20 blr <== ALWAYS TAKEN * 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 ) ffc0c568: 7f c3 f3 78 mr r3,r30 ffc0c56c: 4b ff c1 f1 bl ffc0875c <== ALWAYS TAKEN ffc0c570: 2f 83 00 01 cmpwi cr7,r3,1 ffc0c574: 40 9e ff 40 bne+ cr7,ffc0c4b4 ffc0c578: 4b ff ff 2c b ffc0c4a4 <== ALWAYS TAKEN ffc2cfa0 : int utime( const char *path, const struct utimbuf *times ) { ffc2cfa0: 94 21 ff c8 stwu r1,-56(r1) ffc2cfa4: 7c 08 02 a6 mflr r0 ffc2cfa8: 93 a1 00 2c stw r29,44(r1) ffc2cfac: 7c 7d 1b 78 mr r29,r3 ffc2cfb0: 90 01 00 3c stw r0,60(r1) ffc2cfb4: 93 c1 00 30 stw r30,48(r1) ffc2cfb8: 7c 9e 23 78 mr r30,r4 ffc2cfbc: 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 ) ) ffc2cfc0: 48 02 24 95 bl ffc4f454 <== ALWAYS TAKEN ffc2cfc4: 3b e1 00 08 addi r31,r1,8 ffc2cfc8: 7c 64 1b 78 mr r4,r3 ffc2cfcc: 38 a0 00 00 li r5,0 ffc2cfd0: 7f a3 eb 78 mr r3,r29 ffc2cfd4: 7f e6 fb 78 mr r6,r31 ffc2cfd8: 38 e0 00 01 li r7,1 ffc2cfdc: 4b fd b3 61 bl ffc0833c <== ALWAYS TAKEN ffc2cfe0: 3b a0 ff ff li r29,-1 ffc2cfe4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2cfe8: 40 9e 00 7c bne- cr7,ffc2d064 return -1; if ( !temp_loc.ops->utime_h ){ ffc2cfec: 81 21 00 14 lwz r9,20(r1) ffc2cff0: 80 09 00 30 lwz r0,48(r9) ffc2cff4: 2f 80 00 00 cmpwi cr7,r0,0 ffc2cff8: 40 be 00 30 bne+ cr7,ffc2d028 <== ALWAYS TAKEN rtems_filesystem_freenode( &temp_loc ); ffc2cffc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2d000: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2d004: 41 9e 00 10 beq- cr7,ffc2d014 <== NOT EXECUTED ffc2d008: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2d00c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2d010: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2d014: 48 01 a6 79 bl ffc4768c <__errno> <== NOT EXECUTED ffc2d018: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2d01c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2d020: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc2d024: 48 00 00 40 b ffc2d064 <== NOT EXECUTED } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); ffc2d028: 80 be 00 04 lwz r5,4(r30) ffc2d02c: 7f e3 fb 78 mr r3,r31 ffc2d030: 80 9e 00 00 lwz r4,0(r30) ffc2d034: 7c 09 03 a6 mtctr r0 ffc2d038: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &temp_loc ); ffc2d03c: 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 ); ffc2d040: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &temp_loc ); ffc2d044: 2f 89 00 00 cmpwi cr7,r9,0 ffc2d048: 41 9e 00 1c beq- cr7,ffc2d064 <== NEVER TAKEN ffc2d04c: 80 09 00 1c lwz r0,28(r9) ffc2d050: 2f 80 00 00 cmpwi cr7,r0,0 ffc2d054: 41 9e 00 10 beq- cr7,ffc2d064 <== NEVER TAKEN ffc2d058: 7f e3 fb 78 mr r3,r31 ffc2d05c: 7c 09 03 a6 mtctr r0 ffc2d060: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc2d064: 80 01 00 3c lwz r0,60(r1) ffc2d068: 7f a3 eb 78 mr r3,r29 ffc2d06c: 83 c1 00 30 lwz r30,48(r1) ffc2d070: 7c 08 03 a6 mtlr r0 ffc2d074: 83 a1 00 2c lwz r29,44(r1) ffc2d078: 83 e1 00 34 lwz r31,52(r1) ffc2d07c: 38 21 00 38 addi r1,r1,56 ffc2d080: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e8c : #include pid_t vfork(void) { return -1; } ffc07e8c: 38 60 ff ff li r3,-1 ffc07e90: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0708c : */ void vprintk( const char *fmt, va_list ap ) { ffc0708c: 94 21 ff a8 stwu r1,-88(r1) ffc07090: 7c 08 02 a6 mflr r0 ffc07094: 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)])]); ffc07098: 3e a0 ff c2 lis r21,-62 ffc0709c: 3a b5 de ad addi r21,r21,-8531 */ void vprintk( const char *fmt, va_list ap ) { ffc070a0: 92 c1 00 30 stw r22,48(r1) unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { ffc070a4: 3e c0 ff c2 lis r22,-62 ffc070a8: 3a d6 de ac addi r22,r22,-8532 */ void vprintk( const char *fmt, va_list ap ) { ffc070ac: 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); ffc070b0: 3f 80 00 00 lis r28,0 ffc070b4: 3b 9c 26 d4 addi r28,r28,9940 */ void vprintk( const char *fmt, va_list ap ) { ffc070b8: 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-- ) ffc070bc: 3a e1 00 08 addi r23,r1,8 */ void vprintk( const char *fmt, va_list ap ) { ffc070c0: 93 c1 00 50 stw r30,80(r1) ffc070c4: 7c 9e 23 78 mr r30,r4 ffc070c8: 93 e1 00 54 stw r31,84(r1) ffc070cc: 7c 7f 1b 78 mr r31,r3 ffc070d0: 90 01 00 5c stw r0,92(r1) ffc070d4: 93 01 00 38 stw r24,56(r1) ffc070d8: 93 21 00 3c stw r25,60(r1) ffc070dc: 93 41 00 40 stw r26,64(r1) ffc070e0: 93 61 00 44 stw r27,68(r1) ffc070e4: 93 a1 00 4c stw r29,76(r1) for (; *fmt != '\0'; fmt++) { ffc070e8: 48 00 03 34 b ffc0741c <== ALWAYS TAKEN bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { ffc070ec: 2f 83 00 25 cmpwi cr7,r3,37 ffc070f0: 40 9e 01 f4 bne- cr7,ffc072e4 BSP_output_char(*fmt); continue; } fmt++; if (*fmt == '0' ) { ffc070f4: 8c 1f 00 01 lbzu r0,1(r31) ffc070f8: 3b 00 00 20 li r24,32 ffc070fc: 2f 80 00 30 cmpwi cr7,r0,48 ffc07100: 40 be 00 0c bne+ cr7,ffc0710c lead = '0'; fmt++; ffc07104: 3b ff 00 01 addi r31,r31,1 ffc07108: 3b 00 00 30 li r24,48 } if (*fmt == '-' ) { ffc0710c: 88 1f 00 00 lbz r0,0(r31) ffc07110: 3b 20 00 00 li r25,0 ffc07114: 2f 80 00 2d cmpwi cr7,r0,45 ffc07118: 40 be 00 0c bne+ cr7,ffc07124 minus = true; fmt++; ffc0711c: 3b ff 00 01 addi r31,r31,1 ffc07120: 3b 20 00 01 li r25,1 ffc07124: 3b a0 00 00 li r29,0 ffc07128: 48 00 00 0c b ffc07134 <== ALWAYS TAKEN } while (*fmt >= '0' && *fmt <= '9' ) { width *= 10; width += ((unsigned) *fmt - '0'); ffc0712c: 7f a0 5a 14 add r29,r0,r11 fmt++; ffc07130: 3b ff 00 01 addi r31,r31,1 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc07134: 88 7f 00 00 lbz r3,0(r31) width *= 10; ffc07138: 1d 7d 00 0a mulli r11,r29,10 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc0713c: 38 03 ff d0 addi r0,r3,-48 ffc07140: 54 09 06 3e clrlwi r9,r0,24 ffc07144: 2b 89 00 09 cmplwi cr7,r9,9 ffc07148: 40 9d ff e4 ble+ cr7,ffc0712c width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { ffc0714c: 2f 83 00 6c cmpwi cr7,r3,108 ffc07150: 40 be 00 08 bne+ cr7,ffc07158 lflag = true; c = *++fmt; ffc07154: 8c 7f 00 01 lbzu r3,1(r31) } if ( c == 'c' ) { ffc07158: 2f 83 00 63 cmpwi cr7,r3,99 ffc0715c: 40 be 00 3c bne+ cr7,ffc07198 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); ffc07160: 89 7e 00 00 lbz r11,0(r30) ffc07164: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07168: 41 9d 00 1c bgt- cr7,ffc07184 <== NEVER TAKEN ffc0716c: 81 3e 00 08 lwz r9,8(r30) ffc07170: 38 0b 00 01 addi r0,r11,1 ffc07174: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc07178: 98 1e 00 00 stb r0,0(r30) ffc0717c: 7d 29 5a 14 add r9,r9,r11 ffc07180: 48 00 00 10 b ffc07190 <== ALWAYS TAKEN ffc07184: 81 3e 00 04 lwz r9,4(r30) <== NOT EXECUTED ffc07188: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc0718c: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED BSP_output_char(chr); ffc07190: 88 69 00 03 lbz r3,3(r9) ffc07194: 48 00 01 50 b ffc072e4 <== ALWAYS TAKEN continue; } if ( c == 's' ) { ffc07198: 2f 83 00 73 cmpwi cr7,r3,115 ffc0719c: 40 be 00 e8 bne+ cr7,ffc07284 unsigned i, len; char *s, *str; str = va_arg(ap, char *); ffc071a0: 89 7e 00 00 lbz r11,0(r30) ffc071a4: 2b 8b 00 07 cmplwi cr7,r11,7 ffc071a8: 41 9d 00 1c bgt- cr7,ffc071c4 <== NEVER TAKEN ffc071ac: 81 3e 00 08 lwz r9,8(r30) ffc071b0: 38 0b 00 01 addi r0,r11,1 ffc071b4: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc071b8: 98 1e 00 00 stb r0,0(r30) ffc071bc: 7d 29 5a 14 add r9,r9,r11 ffc071c0: 48 00 00 10 b ffc071d0 <== ALWAYS TAKEN ffc071c4: 81 3e 00 04 lwz r9,4(r30) <== NOT EXECUTED ffc071c8: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc071cc: 90 1e 00 04 stw r0,4(r30) <== NOT EXECUTED ffc071d0: 83 49 00 00 lwz r26,0(r9) if ( str == NULL ) { ffc071d4: 2f 9a 00 00 cmpwi cr7,r26,0 ffc071d8: 40 be 00 08 bne+ cr7,ffc071e0 ffc071dc: 7e da b3 78 mr r26,r22 ffc071e0: 3b 60 00 00 li r27,0 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) ffc071e4: 48 00 00 08 b ffc071ec <== ALWAYS TAKEN ffc071e8: 3b 7b 00 01 addi r27,r27,1 ffc071ec: 7c 1a d8 ae lbzx r0,r26,r27 ffc071f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc071f4: 40 9e ff f4 bne+ cr7,ffc071e8 ; /* leading spaces */ if ( !minus ) ffc071f8: 2f 99 00 00 cmpwi cr7,r25,0 ffc071fc: 7f 78 db 78 mr r24,r27 ffc07200: 41 9e 00 14 beq- cr7,ffc07214 ffc07204: 48 00 00 20 b ffc07224 <== ALWAYS TAKEN for ( i=len ; i BSP_output_char(' '); /* no width option */ if (width == 0) { ffc07224: 2f 9d 00 00 cmpwi cr7,r29,0 ffc07228: 40 9e 00 08 bne- cr7,ffc07230 ffc0722c: 7f 7d db 78 mr r29,r27 width = len; } /* output the string */ for ( i=0 ; i ffc07238: 48 00 00 10 b ffc07248 <== ALWAYS TAKEN BSP_output_char(*str); ffc0723c: 80 1c 00 00 lwz r0,0(r28) ffc07240: 7c 09 03 a6 mtctr r0 ffc07244: 4e 80 04 21 bctrl <== ALWAYS TAKEN if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i BSP_output_char(*str); /* trailing spaces */ if ( minus ) ffc07258: 2f 99 00 00 cmpwi cr7,r25,0 ffc0725c: 40 9e 00 14 bne- cr7,ffc07270 ffc07260: 48 00 01 b8 b ffc07418 <== ALWAYS TAKEN for ( i=len ; i ffc07280: 48 00 01 98 b ffc07418 <== ALWAYS TAKEN continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { ffc07284: 2f 83 00 6f cmpwi cr7,r3,111 ffc07288: 41 9e 00 6c beq- cr7,ffc072f4 <== NEVER TAKEN ffc0728c: 2f 83 00 4f cmpwi cr7,r3,79 ffc07290: 41 9e 00 64 beq- cr7,ffc072f4 base = 8; sign = false; } else if ( c == 'i' || c == 'I' || ffc07294: 2f 83 00 69 cmpwi cr7,r3,105 ffc07298: 41 9e 00 68 beq- cr7,ffc07300 ffc0729c: 2f 83 00 49 cmpwi cr7,r3,73 ffc072a0: 41 9e 00 60 beq- cr7,ffc07300 ffc072a4: 2f 83 00 64 cmpwi cr7,r3,100 ffc072a8: 41 9e 00 58 beq- cr7,ffc07300 ffc072ac: 2f 83 00 44 cmpwi cr7,r3,68 ffc072b0: 41 9e 00 50 beq- cr7,ffc07300 c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { ffc072b4: 2f 83 00 75 cmpwi cr7,r3,117 ffc072b8: 41 9e 00 50 beq- cr7,ffc07308 ffc072bc: 2f 83 00 55 cmpwi cr7,r3,85 ffc072c0: 41 9e 00 48 beq- cr7,ffc07308 base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { ffc072c4: 2f 83 00 78 cmpwi cr7,r3,120 ffc072c8: 41 9e 00 4c beq- cr7,ffc07314 ffc072cc: 2f 83 00 58 cmpwi cr7,r3,88 ffc072d0: 41 9e 00 44 beq- cr7,ffc07314 base = 16; sign = false; } else if ( c == 'p' ) { ffc072d4: 2f 83 00 70 cmpwi cr7,r3,112 ffc072d8: 38 00 00 00 li r0,0 ffc072dc: 3b 60 00 10 li r27,16 ffc072e0: 41 9e 00 3c beq- cr7,ffc0731c base = 16; sign = false; lflag = true; } else { BSP_output_char(c); ffc072e4: 80 1c 00 00 lwz r0,0(r28) ffc072e8: 7c 09 03 a6 mtctr r0 ffc072ec: 4e 80 04 21 bctrl <== ALWAYS TAKEN continue; ffc072f0: 48 00 01 28 b ffc07418 <== ALWAYS TAKEN ffc072f4: 38 00 00 00 li r0,0 ffc072f8: 3b 60 00 08 li r27,8 ffc072fc: 48 00 00 20 b ffc0731c <== ALWAYS TAKEN ffc07300: 38 00 00 01 li r0,1 ffc07304: 48 00 00 08 b ffc0730c <== ALWAYS TAKEN ffc07308: 38 00 00 00 li r0,0 ffc0730c: 3b 60 00 0a li r27,10 ffc07310: 48 00 00 0c b ffc0731c <== ALWAYS TAKEN ffc07314: 38 00 00 00 li r0,0 ffc07318: 3b 60 00 10 li r27,16 } printNum( lflag ? va_arg(ap, long) : (long) va_arg(ap, int), ffc0731c: 89 7e 00 00 lbz r11,0(r30) ffc07320: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07324: 41 9d 00 1c bgt- cr7,ffc07340 ffc07328: 81 3e 00 08 lwz r9,8(r30) ffc0732c: 39 4b 00 01 addi r10,r11,1 ffc07330: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc07334: 99 5e 00 00 stb r10,0(r30) ffc07338: 7d 29 5a 14 add r9,r9,r11 } else { BSP_output_char(c); continue; } printNum( ffc0733c: 48 00 00 10 b ffc0734c <== ALWAYS TAKEN lflag ? va_arg(ap, long) : (long) va_arg(ap, int), ffc07340: 81 3e 00 04 lwz r9,4(r30) ffc07344: 39 69 00 04 addi r11,r9,4 ffc07348: 91 7e 00 04 stw r11,4(r30) unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { ffc0734c: 2f 80 00 00 cmpwi cr7,r0,0 } else { BSP_output_char(c); continue; } printNum( ffc07350: 83 49 00 00 lwz r26,0(r9) unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { ffc07354: 41 9e 00 3c beq- cr7,ffc07390 ffc07358: 2f 9a 00 00 cmpwi cr7,r26,0 ffc0735c: 40 bc 00 34 bge+ cr7,ffc07390 BSP_output_char('-'); ffc07360: 80 1c 00 00 lwz r0,0(r28) ffc07364: 38 60 00 2d li r3,45 ffc07368: 7c 09 03 a6 mtctr r0 ffc0736c: 4e 80 04 21 bctrl <== ALWAYS TAKEN unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; ffc07370: 7f a9 fe 70 srawi r9,r29,31 ffc07374: 7d 20 ea 78 xor r0,r9,r29 ffc07378: 7c 09 00 50 subf r0,r9,r0 ffc0737c: 7c 00 00 d0 neg r0,r0 ffc07380: 54 00 0f fe rlwinm r0,r0,1,31,31 ffc07384: 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; ffc07388: 7c 1a 00 d0 neg r0,r26 ffc0738c: 48 00 00 08 b ffc07394 <== ALWAYS TAKEN if (maxwidth) maxwidth--; } else { unsigned_num = (unsigned long) num; ffc07390: 7f 40 d3 78 mr r0,r26 ffc07394: 3b 40 00 00 li r26,0 ffc07398: 48 00 00 10 b ffc073a8 <== ALWAYS TAKEN } count = 0; while ((n = unsigned_num / base) > 0) { toPrint[count++] = (char) (unsigned_num - (n * base)); ffc0739c: 99 4b 00 08 stb r10,8(r11) ffc073a0: 7f 3a cb 78 mr r26,r25 ffc073a4: 7d 20 4b 78 mr r0,r9 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { ffc073a8: 7d 20 db 96 divwu r9,r0,r27 ffc073ac: 2f 89 00 00 cmpwi cr7,r9,0 toPrint[count++] = (char) (unsigned_num - (n * base)); ffc073b0: 7d 49 d9 d6 mullw r10,r9,r27 ffc073b4: 7d 61 d2 14 add r11,r1,r26 ffc073b8: 7d 4a 00 50 subf r10,r10,r0 ffc073bc: 3b 3a 00 01 addi r25,r26,1 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { ffc073c0: 40 9e ff dc bne+ cr7,ffc0739c toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; ffc073c4: 98 0b 00 08 stb r0,8(r11) ffc073c8: 48 00 00 10 b ffc073d8 <== ALWAYS TAKEN for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); ffc073cc: 80 1c 00 00 lwz r0,0(r28) ffc073d0: 7c 09 03 a6 mtctr r0 ffc073d4: 4e 80 04 21 bctrl <== ALWAYS TAKEN toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) ffc073d8: 7f 9d c8 40 cmplw cr7,r29,r25 BSP_output_char(lead); ffc073dc: 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-- ) ffc073e0: 3b bd ff ff addi r29,r29,-1 ffc073e4: 41 9d ff e8 bgt+ cr7,ffc073cc ffc073e8: 7f 57 d2 14 add r26,r23,r26 ffc073ec: 3b a0 00 00 li r29,0 ffc073f0: 48 00 00 1c b ffc0740c <== ALWAYS TAKEN BSP_output_char(lead); for (n = 0; n < count; n++) { BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc073f4: 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++) { ffc073f8: 3b 5a ff ff addi r26,r26,-1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc073fc: 80 1c 00 00 lwz r0,0(r28) ffc07400: 7c 75 48 ae lbzx r3,r21,r9 ffc07404: 7c 09 03 a6 mtctr r0 ffc07408: 4e 80 04 21 bctrl <== ALWAYS TAKEN toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { ffc0740c: 7f 9d c8 40 cmplw cr7,r29,r25 ffc07410: 3b bd 00 01 addi r29,r29,1 ffc07414: 41 9c ff e0 blt+ cr7,ffc073f4 void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { ffc07418: 3b ff 00 01 addi r31,r31,1 ffc0741c: 88 7f 00 00 lbz r3,0(r31) ffc07420: 2f 83 00 00 cmpwi cr7,r3,0 ffc07424: 40 9e fc c8 bne+ cr7,ffc070ec sign, width, lead ); } } ffc07428: 80 01 00 5c lwz r0,92(r1) ffc0742c: 82 a1 00 2c lwz r21,44(r1) ffc07430: 7c 08 03 a6 mtlr r0 ffc07434: 82 c1 00 30 lwz r22,48(r1) ffc07438: 82 e1 00 34 lwz r23,52(r1) ffc0743c: 83 01 00 38 lwz r24,56(r1) ffc07440: 83 21 00 3c lwz r25,60(r1) ffc07444: 83 41 00 40 lwz r26,64(r1) ffc07448: 83 61 00 44 lwz r27,68(r1) ffc0744c: 83 81 00 48 lwz r28,72(r1) ffc07450: 83 a1 00 4c lwz r29,76(r1) ffc07454: 83 c1 00 50 lwz r30,80(r1) ffc07458: 83 e1 00 54 lwz r31,84(r1) ffc0745c: 38 21 00 58 addi r1,r1,88 ffc07460: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e94 : #include int wait( int *stat_loc ) { ffc07e94: 94 21 ff f8 stwu r1,-8(r1) ffc07e98: 7c 08 02 a6 mflr r0 ffc07e9c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07ea0: 48 00 ac 39 bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07ea4: 38 00 00 58 li r0,88 ffc07ea8: 90 03 00 00 stw r0,0(r3) } ffc07eac: 38 60 ff ff li r3,-1 ffc07eb0: 80 01 00 0c lwz r0,12(r1) ffc07eb4: 38 21 00 08 addi r1,r1,8 ffc07eb8: 7c 08 03 a6 mtlr r0 ffc07ebc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07ec0 : int waitpid( pid_t pid, int *stat_loc, int options ) { ffc07ec0: 94 21 ff f8 stwu r1,-8(r1) ffc07ec4: 7c 08 02 a6 mflr r0 ffc07ec8: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc07ecc: 48 00 ac 0d bl ffc12ad8 <__errno> <== ALWAYS TAKEN ffc07ed0: 38 00 00 58 li r0,88 ffc07ed4: 90 03 00 00 stw r0,0(r3) } ffc07ed8: 38 60 ff ff li r3,-1 ffc07edc: 80 01 00 0c lwz r0,12(r1) ffc07ee0: 38 21 00 08 addi r1,r1,8 ffc07ee4: 7c 08 03 a6 mtlr r0 ffc07ee8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1cc70 : ssize_t write( int fd, const void *buffer, size_t count ) { ffc1cc70: 94 21 ff f0 stwu r1,-16(r1) ffc1cc74: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1cc78: 3d 20 00 00 lis r9,0 ssize_t write( int fd, const void *buffer, size_t count ) { ffc1cc7c: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1cc80: 80 09 26 8c lwz r0,9868(r9) ssize_t write( int fd, const void *buffer, size_t count ) { ffc1cc84: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1cc88: 7f 83 00 40 cmplw cr7,r3,r0 ffc1cc8c: 40 9c 00 20 bge- cr7,ffc1ccac <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1cc90: 3d 40 00 00 lis r10,0 ffc1cc94: 83 ea 27 4c lwz r31,10060(r10) ffc1cc98: 1c 63 00 48 mulli r3,r3,72 ffc1cc9c: 7f ff 1a 14 add r31,r31,r3 <== ALWAYS TAKEN rtems_libio_check_is_open( iop ); ffc1cca0: 80 1f 00 18 lwz r0,24(r31) ffc1cca4: 70 0a 01 00 andi. r10,r0,256 ffc1cca8: 40 a2 00 10 bne+ ffc1ccb8 <== ALWAYS TAKEN ffc1ccac: 4b ff 4f 61 bl ffc11c0c <__errno> <== NOT EXECUTED ffc1ccb0: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1ccb4: 48 00 00 44 b ffc1ccf8 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); ffc1ccb8: 2f 84 00 00 cmpwi cr7,r4,0 ffc1ccbc: 41 9e 00 18 beq- cr7,ffc1ccd4 <== NEVER TAKEN rtems_libio_check_count( count ); ffc1ccc0: 2f 85 00 00 cmpwi cr7,r5,0 ffc1ccc4: 38 60 00 00 li r3,0 ffc1ccc8: 41 9e 00 70 beq- cr7,ffc1cd38 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc1cccc: 70 09 00 04 andi. r9,r0,4 ffc1ccd0: 40 a2 00 10 bne+ ffc1cce0 <== ALWAYS TAKEN ffc1ccd4: 4b ff 4f 39 bl ffc11c0c <__errno> <== NOT EXECUTED ffc1ccd8: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1ccdc: 48 00 00 1c b ffc1ccf8 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) ffc1cce0: 81 3f 00 40 lwz r9,64(r31) ffc1cce4: 80 09 00 0c lwz r0,12(r9) ffc1cce8: 2f 80 00 00 cmpwi cr7,r0,0 ffc1ccec: 40 be 00 18 bne+ cr7,ffc1cd04 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1ccf0: 4b ff 4f 1d bl ffc11c0c <__errno> <== NOT EXECUTED ffc1ccf4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1ccf8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1ccfc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1cd00: 48 00 00 38 b ffc1cd38 <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); ffc1cd04: 7f e3 fb 78 mr r3,r31 ffc1cd08: 7c 09 03 a6 mtctr r0 ffc1cd0c: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( rc > 0 ) ffc1cd10: 2c 03 00 00 cmpwi r3,0 ffc1cd14: 40 81 00 24 ble- ffc1cd38 <== NEVER TAKEN iop->offset += rc; ffc1cd18: 80 ff 00 10 lwz r7,16(r31) ffc1cd1c: 7c 6a 1b 78 mr r10,r3 ffc1cd20: 81 1f 00 14 lwz r8,20(r31) ffc1cd24: 7c 69 fe 70 srawi r9,r3,31 ffc1cd28: 7d 88 50 14 addc r12,r8,r10 ffc1cd2c: 7d 67 49 14 adde r11,r7,r9 ffc1cd30: 91 7f 00 10 stw r11,16(r31) ffc1cd34: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1cd38: 80 01 00 14 lwz r0,20(r1) ffc1cd3c: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc1cd40: 38 21 00 10 addi r1,r1,16 ffc1cd44: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc1cd48: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08de8 : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08de8: 94 21 ff d8 stwu r1,-40(r1) ffc08dec: 7c 08 02 a6 mflr r0 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc08df0: 3d 20 00 00 lis r9,0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08df4: 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 ); ffc08df8: 80 09 26 8c lwz r0,9868(r9) ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08dfc: 93 81 00 18 stw r28,24(r1) ffc08e00: 7c bc 2b 78 mr r28,r5 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc08e04: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc08e08: 93 21 00 0c stw r25,12(r1) ffc08e0c: 93 41 00 10 stw r26,16(r1) ffc08e10: 93 61 00 14 stw r27,20(r1) ffc08e14: 93 a1 00 1c stw r29,28(r1) ffc08e18: 93 c1 00 20 stw r30,32(r1) ffc08e1c: 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 ); ffc08e20: 40 9c 00 20 bge- cr7,ffc08e40 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc08e24: 3d 20 00 00 lis r9,0 ffc08e28: 83 a9 27 50 lwz r29,10064(r9) ffc08e2c: 1c 63 00 48 mulli r3,r3,72 ffc08e30: 7f bd 1a 14 add r29,r29,r3 rtems_libio_check_is_open( iop ); ffc08e34: 80 1d 00 18 lwz r0,24(r29) ffc08e38: 70 09 01 00 andi. r9,r0,256 ffc08e3c: 40 a2 00 10 bne+ ffc08e4c ffc08e40: 48 00 ba 35 bl ffc14874 <__errno> <== ALWAYS TAKEN ffc08e44: 38 00 00 09 li r0,9 ffc08e48: 48 00 00 14 b ffc08e5c <== ALWAYS TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc08e4c: 70 09 00 04 andi. r9,r0,4 ffc08e50: 40 a2 00 14 bne+ ffc08e64 <== ALWAYS TAKEN ffc08e54: 48 00 ba 21 bl ffc14874 <__errno> <== ALWAYS TAKEN ffc08e58: 38 00 00 16 li r0,22 ffc08e5c: 90 03 00 00 stw r0,0(r3) ffc08e60: 48 00 00 cc b ffc08f2c <== ALWAYS TAKEN /* * Argument validation on IO vector */ if ( !iov ) ffc08e64: 2f 84 00 00 cmpwi cr7,r4,0 ffc08e68: 41 be ff ec beq- cr7,ffc08e54 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc08e6c: 2f 85 00 00 cmpwi cr7,r5,0 ffc08e70: 40 bd ff e4 ble- cr7,ffc08e54 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc08e74: 2f 85 04 00 cmpwi cr7,r5,1024 ffc08e78: 41 bd ff dc bgt- cr7,ffc08e54 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) ffc08e7c: 81 3d 00 40 lwz r9,64(r29) ffc08e80: 80 09 00 0c lwz r0,12(r9) ffc08e84: 2f 80 00 00 cmpwi cr7,r0,0 ffc08e88: 40 be 00 10 bne+ cr7,ffc08e98 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc08e8c: 48 00 b9 e9 bl ffc14874 <__errno> <== NOT EXECUTED ffc08e90: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08e94: 4b ff ff c8 b ffc08e5c <== NOT EXECUTED ffc08e98: 7c a9 03 a6 mtctr r5 ffc08e9c: 7c 9e 23 78 mr r30,r4 ffc08ea0: 7c 89 23 78 mr r9,r4 ffc08ea4: 38 00 00 01 li r0,1 ffc08ea8: 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 ) ffc08eac: 81 49 00 00 lwz r10,0(r9) ffc08eb0: 2f 8a 00 00 cmpwi cr7,r10,0 ffc08eb4: 41 be ff a0 beq- cr7,ffc08e54 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 ) ffc08eb8: 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++ ) { ffc08ebc: 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; ffc08ec0: 7d 4b 42 14 add r10,r11,r8 if ( total < old || total > SSIZE_MAX ) ffc08ec4: 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 ) ffc08ec8: 31 08 ff ff addic r8,r8,-1 ffc08ecc: 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 ) ffc08ed0: 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 ) ffc08ed4: 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 ) ffc08ed8: 41 b8 ff 7c blt- cr6,ffc08e54 ffc08edc: 41 bd ff 78 bgt- cr7,ffc08e54 * 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++ ) { ffc08ee0: 42 40 00 0c bdz- ffc08eec <== NEVER TAKEN ffc08ee4: 7d 4b 53 78 mr r11,r10 ffc08ee8: 4b ff ff c4 b ffc08eac <== ALWAYS TAKEN } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { ffc08eec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc08ef0: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc08ef4: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc08ef8: 40 9e 00 7c bne- cr7,ffc08f74 <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc08efc: 80 be 00 04 lwz r5,4(r30) <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc08f00: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc08f04: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc08f08: 41 be 00 60 beq+ cr7,ffc08f68 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc08f0c: 81 3d 00 40 lwz r9,64(r29) <== NOT EXECUTED ffc08f10: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc08f14: 80 9e 00 00 lwz r4,0(r30) <== NOT EXECUTED ffc08f18: 80 09 00 0c lwz r0,12(r9) <== NOT EXECUTED ffc08f1c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc08f20: 4e 80 04 21 bctrl <== NOT EXECUTED if ( bytes < 0 ) ffc08f24: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc08f28: 40 a0 00 0c bge+ ffc08f34 <== NOT EXECUTED ffc08f2c: 3b e0 ff ff li r31,-1 ffc08f30: 48 00 00 44 b ffc08f74 <== ALWAYS TAKEN return -1; if ( bytes > 0 ) { ffc08f34: 41 82 00 28 beq- ffc08f5c <== NOT EXECUTED iop->offset += bytes; ffc08f38: 81 7d 00 10 lwz r11,16(r29) <== NOT EXECUTED ffc08f3c: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED ffc08f40: 81 9d 00 14 lwz r12,20(r29) <== NOT EXECUTED ffc08f44: 7c 79 fe 70 srawi r25,r3,31 <== NOT EXECUTED total += bytes; ffc08f48: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc08f4c: 7d 4c d0 14 addc r10,r12,r26 <== NOT EXECUTED ffc08f50: 7d 2b c9 14 adde r9,r11,r25 <== NOT EXECUTED ffc08f54: 91 3d 00 10 stw r9,16(r29) <== NOT EXECUTED ffc08f58: 91 5d 00 14 stw r10,20(r29) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) ffc08f5c: 80 1e 00 04 lwz r0,4(r30) <== NOT EXECUTED ffc08f60: 7f 83 00 00 cmpw cr7,r3,r0 <== NOT EXECUTED ffc08f64: 40 9e 00 10 bne- cr7,ffc08f74 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc08f68: 7f 9b e0 00 cmpw cr7,r27,r28 <== NOT EXECUTED ffc08f6c: 3b de 00 08 addi r30,r30,8 <== NOT EXECUTED ffc08f70: 41 9c ff 8c blt+ cr7,ffc08efc <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } ffc08f74: 80 01 00 2c lwz r0,44(r1) ffc08f78: 7f e3 fb 78 mr r3,r31 ffc08f7c: 83 21 00 0c lwz r25,12(r1) ffc08f80: 7c 08 03 a6 mtlr r0 ffc08f84: 83 41 00 10 lwz r26,16(r1) ffc08f88: 83 61 00 14 lwz r27,20(r1) ffc08f8c: 83 81 00 18 lwz r28,24(r1) ffc08f90: 83 a1 00 1c lwz r29,28(r1) ffc08f94: 83 c1 00 20 lwz r30,32(r1) ffc08f98: 83 e1 00 24 lwz r31,36(r1) ffc08f9c: 38 21 00 28 addi r1,r1,40 ffc08fa0: 4e 80 00 20 blr <== ALWAYS TAKEN