ffc05120 : 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 ); ffc05120: 38 00 00 00 li r0,0 ffc05124: 90 03 00 88 stw r0,136(r3) ffc05128: 90 03 00 84 stw r0,132(r3) #else the_thread->cpu_time_used = 0; #endif } ffc0512c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cbd4 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { ffc0cbd4: 81 63 00 00 lwz r11,0(r3) <== ALWAYS TAKEN ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; ffc0cbd8: 81 23 00 10 lwz r9,16(r3) <== ALWAYS TAKEN switch( node->type ) { ffc0cbdc: 80 0b 00 4c lwz r0,76(r11) ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; ffc0cbe0: 81 69 00 34 lwz r11,52(r9) <== ALWAYS TAKEN switch( node->type ) { ffc0cbe4: 2b 80 00 07 cmplwi cr7,r0,7 ffc0cbe8: 41 9d 00 28 bgt- cr7,ffc0cc10 <== NEVER TAKEN ffc0cbec: 3d 20 ff c2 lis r9,-62 ffc0cbf0: 39 29 f8 6c addi r9,r9,-1940 <== ALWAYS TAKEN ffc0cbf4: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0cbf8: 7c 09 00 2e lwzx r0,r9,r0 ffc0cbfc: 7d 20 4a 14 add r9,r0,r9 ffc0cc00: 7d 29 03 a6 mtctr r9 <== ALWAYS TAKEN ffc0cc04: 4e 80 04 20 bctr <== ALWAYS TAKEN case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; ffc0cc08: 80 0b 00 08 lwz r0,8(r11) ffc0cc0c: 90 03 00 08 stw r0,8(r3) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } ffc0cc10: 38 60 00 00 li r3,0 ffc0cc14: 4e 80 00 20 blr <== ALWAYS TAKEN break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; ffc0cc18: 80 0b 00 04 lwz r0,4(r11) ffc0cc1c: 90 03 00 08 stw r0,8(r3) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } ffc0cc20: 38 60 00 00 li r3,0 ffc0cc24: 4e 80 00 20 blr <== ALWAYS TAKEN case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; ffc0cc28: 3d 20 ff c2 lis r9,-62 ffc0cc2c: 38 09 f9 7c addi r0,r9,-1668 ffc0cc30: 90 03 00 08 stw r0,8(r3) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } ffc0cc34: 38 60 00 00 li r3,0 ffc0cc38: 4e 80 00 20 blr <== ALWAYS TAKEN break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; ffc0cc3c: 3d 20 ff c2 lis r9,-62 ffc0cc40: 38 09 f8 8c addi r0,r9,-1908 ffc0cc44: 90 03 00 08 stw r0,8(r3) break; } return 0; } ffc0cc48: 38 60 00 00 li r3,0 ffc0cc4c: 4e 80 00 20 blr <== ALWAYS TAKEN switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; ffc0cc50: 3d 20 ff c2 lis r9,-62 ffc0cc54: 38 09 f9 44 addi r0,r9,-1724 <== ALWAYS TAKEN ffc0cc58: 90 03 00 08 stw r0,8(r3) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } ffc0cc5c: 38 60 00 00 li r3,0 ffc0cc60: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11208 : IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc11208: 94 21 ff d8 stwu r1,-40(r1) ffc1120c: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc11210: 93 81 00 18 stw r28,24(r1) ffc11214: 7c 9c 23 78 mr r28,r4 struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc11218: 38 80 00 68 li r4,104 <== ALWAYS TAKEN IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc1121c: 93 a1 00 1c stw r29,28(r1) <== ALWAYS TAKEN ffc11220: 7c 7d 1b 78 mr r29,r3 struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc11224: 38 60 00 01 li r3,1 IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { ffc11228: 93 c1 00 20 stw r30,32(r1) ffc1122c: 7c be 2b 78 mr r30,r5 ffc11230: 93 e1 00 24 stw r31,36(r1) ffc11234: 90 01 00 2c stw r0,44(r1) struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); ffc11238: 4b ff cc d5 bl ffc0df0c <== ALWAYS TAKEN if ( !node ) ffc1123c: 7c 7f 1b 79 mr. r31,r3 <== ALWAYS TAKEN ffc11240: 41 82 00 50 beq- ffc11290 <== NEVER TAKEN return NULL; /* * Fill in the basic information */ node->st_nlink = 1; ffc11244: 38 00 00 01 li r0,1 node->type = type; ffc11248: 93 bf 00 4c stw r29,76(r31) strncpy( node->name, name, IMFS_NAME_MAX ); ffc1124c: 7f 84 e3 78 mr r4,r28 <== ALWAYS TAKEN return NULL; /* * Fill in the basic information */ node->st_nlink = 1; ffc11250: b0 1f 00 34 sth r0,52(r31) <== ALWAYS TAKEN node->type = type; strncpy( node->name, name, IMFS_NAME_MAX ); ffc11254: 38 a0 00 20 li r5,32 ffc11258: 38 7f 00 0c addi r3,r31,12 ffc1125c: 48 00 34 b5 bl ffc14710 <== ALWAYS TAKEN /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; ffc11260: 93 df 00 30 stw r30,48(r31) #if defined(RTEMS_POSIX_API) node->st_uid = geteuid(); ffc11264: 4b ff cf 29 bl ffc0e18c <== ALWAYS TAKEN ffc11268: b0 7f 00 3c sth r3,60(r31) node->st_gid = getegid(); ffc1126c: 4b ff cf 11 bl ffc0e17c <== ALWAYS TAKEN #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); ffc11270: 38 80 00 00 li r4,0 <== ALWAYS TAKEN * 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(); ffc11274: b0 7f 00 3e sth r3,62(r31) #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); ffc11278: 38 61 00 08 addi r3,r1,8 ffc1127c: 4b ff cf 21 bl ffc0e19c <== ALWAYS TAKEN node->stat_atime = (time_t) tv.tv_sec; ffc11280: 80 01 00 08 lwz r0,8(r1) <== ALWAYS TAKEN node->stat_mtime = (time_t) tv.tv_sec; node->stat_ctime = (time_t) tv.tv_sec; ffc11284: 90 1f 00 48 stw r0,72(r31) /* * Now set all the times. */ gettimeofday( &tv, 0 ); node->stat_atime = (time_t) tv.tv_sec; ffc11288: 90 1f 00 40 stw r0,64(r31) <== ALWAYS TAKEN node->stat_mtime = (time_t) tv.tv_sec; ffc1128c: 90 1f 00 44 stw r0,68(r31) node->stat_ctime = (time_t) tv.tv_sec; return node; } ffc11290: 80 01 00 2c lwz r0,44(r1) ffc11294: 7f e3 fb 78 mr r3,r31 ffc11298: 83 81 00 18 lwz r28,24(r1) ffc1129c: 7c 08 03 a6 mtlr r0 ffc112a0: 83 a1 00 1c lwz r29,28(r1) ffc112a4: 83 c1 00 20 lwz r30,32(r1) ffc112a8: 83 e1 00 24 lwz r31,36(r1) ffc112ac: 38 21 00 28 addi r1,r1,40 ffc112b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12e3c : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { ffc12e3c: 94 21 ff d8 stwu r1,-40(r1) ffc12e40: 7c 08 02 a6 mflr r0 ffc12e44: 90 01 00 2c stw r0,44(r1) ffc12e48: 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; ffc12e4c: 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 */ ) { ffc12e50: 93 a1 00 1c stw r29,28(r1) ffc12e54: 7c bd 2b 78 mr r29,r5 ffc12e58: 93 c1 00 20 stw r30,32(r1) ffc12e5c: 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(); ffc12e60: 48 00 16 fd bl ffc1455c <== ALWAYS TAKEN if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) ffc12e64: a0 1f 00 3c lhz r0,60(r31) ffc12e68: 7f 80 18 00 cmpw cr7,r0,r3 ffc12e6c: 41 9e 00 0c beq- cr7,ffc12e78 <== ALWAYS TAKEN ffc12e70: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc12e74: 40 9e 00 40 bne- cr7,ffc12eb4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; ffc12e78: b3 df 00 3c sth r30,60(r31) jnode->st_gid = group; IMFS_update_ctime( jnode ); ffc12e7c: 38 61 00 08 addi r3,r1,8 ffc12e80: 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; ffc12e84: b3 bf 00 3e sth r29,62(r31) IMFS_update_ctime( jnode ); ffc12e88: 4b ff 31 09 bl ffc05f90 <== ALWAYS TAKEN ffc12e8c: 80 01 00 08 lwz r0,8(r1) ffc12e90: 38 60 00 00 li r3,0 ffc12e94: 90 1f 00 48 stw r0,72(r31) return 0; } ffc12e98: 80 01 00 2c lwz r0,44(r1) ffc12e9c: 83 a1 00 1c lwz r29,28(r1) ffc12ea0: 7c 08 03 a6 mtlr r0 ffc12ea4: 83 c1 00 20 lwz r30,32(r1) ffc12ea8: 83 e1 00 24 lwz r31,36(r1) ffc12eac: 38 21 00 28 addi r1,r1,40 ffc12eb0: 4e 80 00 20 blr <== ALWAYS TAKEN #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); ffc12eb4: 48 00 70 95 bl ffc19f48 <__errno> <== NOT EXECUTED ffc12eb8: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc12ebc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc12ec0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc12ec4: 4b ff ff d4 b ffc12e98 <== NOT EXECUTED ffc11304 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc11304: 94 21 ff e0 stwu r1,-32(r1) ffc11308: 7c 08 02 a6 mflr r0 ffc1130c: 93 c1 00 18 stw r30,24(r1) IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) ffc11310: 7c 7e 1b 79 mr. r30,r3 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc11314: 93 a1 00 14 stw r29,20(r1) IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) ffc11318: 3b a0 00 00 li r29,0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { ffc1131c: 93 e1 00 1c stw r31,28(r1) ffc11320: 7c 9f 23 78 mr r31,r4 <== ALWAYS TAKEN ffc11324: 90 01 00 24 stw r0,36(r1) <== ALWAYS TAKEN IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) ffc11328: 40 82 00 24 bne- ffc1134c <== ALWAYS TAKEN node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } ffc1132c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc11330: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc11334: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc11338: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1133c: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc11340: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc11344: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc11348: 4e 80 00 20 blr <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); ffc1134c: 3d 20 00 00 lis r9,0 ffc11350: 90 e1 00 08 stw r7,8(r1) <== ALWAYS TAKEN ffc11354: 7c a4 2b 78 mr r4,r5 ffc11358: 81 29 26 dc lwz r9,9948(r9) ffc1135c: 7f e3 fb 78 mr r3,r31 ffc11360: 80 a9 00 2c lwz r5,44(r9) ffc11364: 7c c5 28 78 andc r5,r6,r5 ffc11368: 4b ff fe a1 bl ffc11208 <== ALWAYS TAKEN if ( !node ) ffc1136c: 80 e1 00 08 lwz r7,8(r1) ffc11370: 7c 7d 1b 79 mr. r29,r3 <== ALWAYS TAKEN ffc11374: 41 a2 ff b8 beq- ffc1132c <== NEVER TAKEN return NULL; /* * Set the type specific information */ switch (type) { ffc11378: 2b 9f 00 07 cmplwi cr7,r31,7 ffc1137c: 40 9d 00 24 ble- cr7,ffc113a0 <== ALWAYS TAKEN case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); ffc11380: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc11384: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc11388: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1138c: 38 63 fc d0 addi r3,r3,-816 <== NOT EXECUTED ffc11390: 38 a5 fc bc addi r5,r5,-836 <== NOT EXECUTED ffc11394: 38 c6 fd 1c addi r6,r6,-740 <== NOT EXECUTED ffc11398: 38 80 00 5c li r4,92 <== NOT EXECUTED ffc1139c: 4b ff 2b e5 bl ffc03f80 <__assert_func> <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { ffc113a0: 3d 20 ff c2 lis r9,-62 ffc113a4: 39 29 fc 9c addi r9,r9,-868 ffc113a8: 57 ff 10 3a rlwinm r31,r31,2,0,29 <== ALWAYS TAKEN ffc113ac: 7c 09 f8 2e lwzx r0,r9,r31 ffc113b0: 7d 20 4a 14 add r9,r0,r9 ffc113b4: 7d 29 03 a6 mtctr r9 <== ALWAYS TAKEN ffc113b8: 4e 80 04 20 bctr <== 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; ffc113bc: 80 07 00 00 lwz r0,0(r7) ffc113c0: 90 1d 00 50 stw r0,80(r29) /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; ffc113c4: 81 3e 00 10 lwz r9,16(r30) RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); ffc113c8: 7f a4 eb 78 mr r4,r29 } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; ffc113cc: 80 7e 00 00 lwz r3,0(r30) fs_info = parent_loc->mt_entry->fs_info; ffc113d0: 81 29 00 34 lwz r9,52(r9) node->Parent = parent; ffc113d4: 90 7d 00 08 stw r3,8(r29) ffc113d8: 38 63 00 50 addi r3,r3,80 node->st_ino = ++fs_info->ino_count; ffc113dc: 81 69 00 00 lwz r11,0(r9) ffc113e0: 38 0b 00 01 addi r0,r11,1 ffc113e4: 90 09 00 00 stw r0,0(r9) ffc113e8: 90 1d 00 38 stw r0,56(r29) ffc113ec: 4b ff 7f 79 bl ffc09364 <_Chain_Append> <== ALWAYS TAKEN rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } ffc113f0: 80 01 00 24 lwz r0,36(r1) ffc113f4: 7f a3 eb 78 mr r3,r29 ffc113f8: 83 c1 00 18 lwz r30,24(r1) <== ALWAYS TAKEN ffc113fc: 7c 08 03 a6 mtlr r0 ffc11400: 83 a1 00 14 lwz r29,20(r1) ffc11404: 83 e1 00 1c lwz r31,28(r1) <== ALWAYS TAKEN ffc11408: 38 21 00 20 addi r1,r1,32 ffc1140c: 4e 80 00 20 blr <== ALWAYS TAKEN node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; ffc11410: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc11414: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc11418: 91 3d 00 50 stw r9,80(r29) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc1141c: 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; ffc11420: 91 5d 00 54 stw r10,84(r29) <== NOT EXECUTED node->info.linearfile.direct = 0; ffc11424: 90 1d 00 58 stw r0,88(r29) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; ffc11428: 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; ffc1142c: 39 20 00 00 li r9,0 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; ffc11430: 90 1d 00 60 stw r0,96(r29) case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; ffc11434: 39 40 00 00 li r10,0 ffc11438: 91 3d 00 50 stw r9,80(r29) ffc1143c: 91 5d 00 54 stw r10,84(r29) node->info.file.indirect = 0; ffc11440: 90 1d 00 58 stw r0,88(r29) node->info.file.doubly_indirect = 0; ffc11444: 90 1d 00 5c stw r0,92(r29) node->info.file.triply_indirect = 0; break; ffc11448: 4b ff ff 7c b ffc113c4 <== ALWAYS TAKEN case IMFS_FIFO: node->info.fifo.pipe = NULL; ffc1144c: 38 00 00 00 li r0,0 ffc11450: 90 1d 00 50 stw r0,80(r29) break; ffc11454: 4b ff ff 70 b ffc113c4 <== ALWAYS TAKEN node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; ffc11458: 81 27 00 04 lwz r9,4(r7) <== ALWAYS TAKEN case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; ffc1145c: 80 07 00 00 lwz r0,0(r7) node->info.device.minor = info->device.minor; ffc11460: 91 3d 00 54 stw r9,84(r29) case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; ffc11464: 90 1d 00 50 stw r0,80(r29) node->info.device.minor = info->device.minor; break; ffc11468: 4b ff ff 5c b ffc113c4 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc1146c: 39 3d 00 54 addi r9,r29,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc11470: 38 1d 00 50 addi r0,r29,80 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc11474: 91 3d 00 50 stw r9,80(r29) the_chain->permanent_null = NULL; ffc11478: 39 20 00 00 li r9,0 ffc1147c: 91 3d 00 54 stw r9,84(r29) the_chain->last = _Chain_Head(the_chain); ffc11480: 90 1d 00 58 stw r0,88(r29) ffc11484: 4b ff ff 40 b ffc113c4 <== ALWAYS TAKEN ffc112b4 : IMFS_jnode_t *IMFS_create_root_node(void) { ffc112b4: 94 21 ff f8 stwu r1,-8(r1) ffc112b8: 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) ); ffc112bc: 3c 80 ff c2 lis r4,-62 ffc112c0: 38 84 ed 54 addi r4,r4,-4780 return node; } IMFS_jnode_t *IMFS_create_root_node(void) { ffc112c4: 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) ); ffc112c8: 38 60 00 01 li r3,1 ffc112cc: 38 a0 41 ed li r5,16877 ffc112d0: 4b ff ff 39 bl ffc11208 <== ALWAYS TAKEN if ( !node ) ffc112d4: 2c 03 00 00 cmpwi r3,0 ffc112d8: 41 82 00 1c beq- ffc112f4 <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc112dc: 39 23 00 54 addi r9,r3,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc112e0: 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); ffc112e4: 91 23 00 50 stw r9,80(r3) the_chain->permanent_null = NULL; ffc112e8: 39 20 00 00 li r9,0 ffc112ec: 91 23 00 54 stw r9,84(r3) the_chain->last = _Chain_Head(the_chain); ffc112f0: 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; } ffc112f4: 80 01 00 0c lwz r0,12(r1) ffc112f8: 38 21 00 08 addi r1,r1,8 ffc112fc: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc11300: 4e 80 00 20 blr <== ALWAYS TAKEN ffc065dc : * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { ffc065dc: 94 21 ff f0 stwu r1,-16(r1) ffc065e0: 7c 08 02 a6 mflr r0 fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); ffc065e4: 3c 60 ff c3 lis r3,-61 * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { ffc065e8: 93 e1 00 0c stw r31,12(r1) fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); ffc065ec: 3f e0 00 00 lis r31,0 ffc065f0: 38 80 00 01 li r4,1 * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { ffc065f4: 90 01 00 14 stw r0,20(r1) fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); ffc065f8: 38 a0 00 34 li r5,52 ffc065fc: 38 63 a2 70 addi r3,r3,-23952 ffc06600: 81 3f 27 4c lwz r9,10060(r31) ffc06604: 80 c9 00 08 lwz r6,8(r9) ffc06608: 48 01 40 3d bl ffc1a644 <== ALWAYS TAKEN fprintf(stdout, "/\n" ); ffc0660c: 81 3f 27 4c lwz r9,10060(r31) ffc06610: 3c 60 ff c3 lis r3,-61 ffc06614: 80 c9 00 08 lwz r6,8(r9) ffc06618: 38 a0 00 02 li r5,2 ffc0661c: 38 80 00 01 li r4,1 ffc06620: 38 63 a2 a8 addi r3,r3,-23896 ffc06624: 48 01 40 21 bl ffc1a644 <== ALWAYS TAKEN IMFS_dump_directory( rtems_filesystem_root.node_access, 0 ); ffc06628: 3d 20 00 00 lis r9,0 ffc0662c: 81 29 27 3c lwz r9,10044(r9) ffc06630: 38 80 00 00 li r4,0 ffc06634: 80 69 00 18 lwz r3,24(r9) ffc06638: 4b ff fe 55 bl ffc0648c <== ALWAYS TAKEN fprintf(stdout, "*************** End of Dump ***************\n" ); ffc0663c: 81 3f 27 4c lwz r9,10060(r31) ffc06640: 3c 60 ff c3 lis r3,-61 ffc06644: 80 c9 00 08 lwz r6,8(r9) ffc06648: 38 63 a2 ac addi r3,r3,-23892 ffc0664c: 38 80 00 01 li r4,1 ffc06650: 38 a0 00 39 li r5,57 ffc06654: 48 01 3f f1 bl ffc1a644 <== ALWAYS TAKEN } ffc06658: 80 01 00 14 lwz r0,20(r1) ffc0665c: 83 e1 00 0c lwz r31,12(r1) ffc06660: 38 21 00 10 addi r1,r1,16 ffc06664: 7c 08 03 a6 mtlr r0 ffc06668: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0648c : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); ffc0648c: 2c 03 00 00 cmpwi r3,0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { ffc06490: 94 21 ff d8 stwu r1,-40(r1) ffc06494: 7c 08 02 a6 mflr r0 ffc06498: 93 c1 00 20 stw r30,32(r1) ffc0649c: 7c 9e 23 78 mr r30,r4 ffc064a0: 90 01 00 2c stw r0,44(r1) ffc064a4: 93 21 00 0c stw r25,12(r1) ffc064a8: 93 41 00 10 stw r26,16(r1) ffc064ac: 93 61 00 14 stw r27,20(r1) ffc064b0: 93 81 00 18 stw r28,24(r1) ffc064b4: 93 a1 00 1c stw r29,28(r1) ffc064b8: 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 ); ffc064bc: 41 82 00 c0 beq- ffc0657c <== NEVER TAKEN assert( level >= 0 ); ffc064c0: 2f 84 00 00 cmpwi cr7,r4,0 ffc064c4: 41 9c 00 f8 blt- cr7,ffc065bc <== NEVER TAKEN assert( the_directory->type == IMFS_DIRECTORY ); ffc064c8: 80 03 00 4c lwz r0,76(r3) ffc064cc: 2f 80 00 01 cmpwi cr7,r0,1 ffc064d0: 40 9e 00 cc bne- cr7,ffc0659c <== NEVER TAKEN the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; ffc064d4: 83 63 00 50 lwz r27,80(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc064d8: 3b 43 00 54 addi r26,r3,84 ffc064dc: 7f 9b d0 00 cmpw cr7,r27,r26 ffc064e0: 41 9e 00 60 beq- cr7,ffc06540 ffc064e4: 3f 80 ff c3 lis r28,-61 ffc064e8: 3f a0 00 00 lis r29,0 ffc064ec: 3b 9c a2 68 addi r28,r28,-23960 ffc064f0: 3b bd 27 4c addi r29,r29,10060 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); ffc064f4: 3b 24 00 01 addi r25,r4,1 for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; ffc064f8: 3b e0 00 00 li r31,0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); ffc064fc: 81 3d 00 00 lwz r9,0(r29) !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) ffc06500: 3b ff 00 01 addi r31,r31,1 fprintf(stdout, "...." ); ffc06504: 7f 83 e3 78 mr r3,r28 ffc06508: 80 c9 00 08 lwz r6,8(r9) ffc0650c: 38 80 00 01 li r4,1 ffc06510: 38 a0 00 04 li r5,4 ffc06514: 48 01 41 31 bl ffc1a644 <== 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++ ) ffc06518: 7f 9e f8 00 cmpw cr7,r30,r31 ffc0651c: 40 9c ff e0 bge+ cr7,ffc064fc fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); ffc06520: 7f 63 db 78 mr r3,r27 ffc06524: 4b ff fd 09 bl ffc0622c <== ALWAYS TAKEN if ( the_jnode->type == IMFS_DIRECTORY ) ffc06528: 80 1b 00 4c lwz r0,76(r27) ffc0652c: 2f 80 00 01 cmpwi cr7,r0,1 ffc06530: 41 9e 00 3c beq- cr7,ffc0656c 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 ) { ffc06534: 83 7b 00 00 lwz r27,0(r27) assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; ffc06538: 7f 9b d0 00 cmpw cr7,r27,r26 ffc0653c: 40 9e ff bc bne+ cr7,ffc064f8 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } ffc06540: 80 01 00 2c lwz r0,44(r1) ffc06544: 83 21 00 0c lwz r25,12(r1) ffc06548: 7c 08 03 a6 mtlr r0 ffc0654c: 83 41 00 10 lwz r26,16(r1) ffc06550: 83 61 00 14 lwz r27,20(r1) ffc06554: 83 81 00 18 lwz r28,24(r1) ffc06558: 83 a1 00 1c lwz r29,28(r1) ffc0655c: 83 c1 00 20 lwz r30,32(r1) ffc06560: 83 e1 00 24 lwz r31,36(r1) ffc06564: 38 21 00 28 addi r1,r1,40 ffc06568: 4e 80 00 20 blr <== ALWAYS TAKEN for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); ffc0656c: 7f 63 db 78 mr r3,r27 ffc06570: 7f 24 cb 78 mr r4,r25 ffc06574: 4b ff ff 19 bl ffc0648c <== ALWAYS TAKEN ffc06578: 4b ff ff bc b ffc06534 <== ALWAYS TAKEN rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); ffc0657c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06580: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06584: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06588: 38 63 a1 60 addi r3,r3,-24224 <== NOT EXECUTED ffc0658c: 38 a5 a1 4c addi r5,r5,-24244 <== NOT EXECUTED ffc06590: 38 c6 a2 24 addi r6,r6,-24028 <== NOT EXECUTED ffc06594: 38 80 00 84 li r4,132 <== NOT EXECUTED ffc06598: 48 00 09 99 bl ffc06f30 <__assert_func> <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); ffc0659c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc065a0: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc065a4: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc065a8: 38 63 a1 60 addi r3,r3,-24224 <== NOT EXECUTED ffc065ac: 38 a5 a1 4c addi r5,r5,-24244 <== NOT EXECUTED ffc065b0: 38 c6 a2 40 addi r6,r6,-24000 <== NOT EXECUTED ffc065b4: 38 80 00 88 li r4,136 <== NOT EXECUTED ffc065b8: 48 00 09 79 bl ffc06f30 <__assert_func> <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); ffc065bc: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc065c0: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc065c4: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc065c8: 38 63 a1 60 addi r3,r3,-24224 <== NOT EXECUTED ffc065cc: 38 a5 a1 4c addi r5,r5,-24244 <== NOT EXECUTED ffc065d0: 38 c6 a2 34 addi r6,r6,-24012 <== NOT EXECUTED ffc065d4: 38 80 00 86 li r4,134 <== NOT EXECUTED ffc065d8: 48 00 09 59 bl ffc06f30 <__assert_func> <== NOT EXECUTED ffc0ce84 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0ce84: 94 21 ff 90 stwu r1,-112(r1) <== ALWAYS TAKEN ffc0ce88: 7c 08 02 a6 mflr r0 ffc0ce8c: 90 01 00 74 stw r0,116(r1) ffc0ce90: 93 01 00 50 stw r24,80(r1) case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0ce94: 3f 00 00 00 lis r24,0 ffc0ce98: 3b 18 26 dc addi r24,r24,9948 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0ce9c: 93 a1 00 64 stw r29,100(r1) ffc0cea0: 92 c1 00 48 stw r22,72(r1) /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; ffc0cea4: 83 a6 00 00 lwz r29,0(r6) <== ALWAYS TAKEN const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0cea8: 92 e1 00 4c stw r23,76(r1) ffc0ceac: 7c b7 2b 78 mr r23,r5 ffc0ceb0: 93 21 00 54 stw r25,84(r1) ffc0ceb4: 3b 21 00 08 addi r25,r1,8 <== ALWAYS TAKEN ffc0ceb8: 93 41 00 58 stw r26,88(r1) ffc0cebc: 7c 7a 1b 78 mr r26,r3 ffc0cec0: 93 61 00 5c stw r27,92(r1) ffc0cec4: 3b 61 00 20 addi r27,r1,32 ffc0cec8: 93 81 00 60 stw r28,96(r1) ffc0cecc: 7c dc 33 78 mr r28,r6 ffc0ced0: 93 c1 00 68 stw r30,104(r1) /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; ffc0ced4: 3b c0 00 00 li r30,0 const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0ced8: 93 e1 00 6c stw r31,108(r1) <== ALWAYS TAKEN ffc0cedc: 7c 9f 23 78 mr r31,r4 <== ALWAYS TAKEN * 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 ); ffc0cee0: 7c 7a f2 14 add r3,r26,r30 ffc0cee4: 7f e4 fb 78 mr r4,r31 ffc0cee8: 7f 65 db 78 mr r5,r27 ffc0ceec: 7f 26 cb 78 mr r6,r25 <== ALWAYS TAKEN ffc0cef0: 48 00 0b 0d bl ffc0d9fc <== ALWAYS TAKEN pathnamelen -= len; i += len; if ( !pathloc->node_access ) ffc0cef4: 81 3c 00 00 lwz r9,0(r28) * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); ffc0cef8: 7c 76 1b 78 mr r22,r3 pathnamelen -= len; ffc0cefc: 80 01 00 08 lwz r0,8(r1) i += len; if ( !pathloc->node_access ) ffc0cf00: 2f 89 00 00 cmpwi cr7,r9,0 ffc0cf04: 41 9e 01 e0 beq- cr7,ffc0d0e4 <== 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 ) ffc0cf08: 2f 83 00 00 cmpwi cr7,r3,0 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; ffc0cf0c: 7f de 02 14 add r30,r30,r0 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; ffc0cf10: 7f e0 f8 50 subf r31,r0,r31 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) ffc0cf14: 40 9e 00 44 bne- cr7,ffc0cf58 * 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 ) { ffc0cf18: 80 09 00 4c lwz r0,76(r9) ffc0cf1c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0cf20: 41 9e 01 50 beq- cr7,ffc0d070 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); ffc0cf24: 7f 83 e3 78 mr r3,r28 <== ALWAYS TAKEN ffc0cf28: 4b ff fc ad bl ffc0cbd4 <== ALWAYS TAKEN /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) ffc0cf2c: 7e e4 bb 78 mr r4,r23 <== ALWAYS TAKEN flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); ffc0cf30: 7c 76 1b 78 mr r22,r3 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) ffc0cf34: 7f 83 e3 78 mr r3,r28 ffc0cf38: 4b ff fd 2d bl ffc0cc64 <== ALWAYS TAKEN ffc0cf3c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cf40: 40 be 00 d8 bne+ cr7,ffc0d018 rtems_set_errno_and_return_minus_one( EACCES ); ffc0cf44: 48 00 64 35 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0cf48: 38 00 00 0d li r0,13 ffc0cf4c: 90 03 00 00 stw r0,0(r3) ffc0cf50: 3a c0 ff ff li r22,-1 ffc0cf54: 48 00 00 c4 b ffc0d018 <== ALWAYS TAKEN /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) ffc0cf58: 80 1d 00 4c lwz r0,76(r29) ffc0cf5c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0cf60: 41 9e 00 f4 beq- cr7,ffc0d054 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0cf64: 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; ffc0cf68: 7d 3d 4b 78 mr r29,r9 switch( type ) { ffc0cf6c: 41 9e 00 1c beq- cr7,ffc0cf88 ffc0cf70: 2f 96 00 04 cmpwi cr7,r22,4 ffc0cf74: 41 9e 00 94 beq- cr7,ffc0d008 ffc0cf78: 2f 16 00 02 cmpwi cr6,r22,2 ffc0cf7c: 41 9a 00 50 beq- cr6,ffc0cfcc /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { ffc0cf80: 40 9e ff 60 bne+ cr7,ffc0cee0 <== ALWAYS TAKEN ffc0cf84: 4b ff ff 94 b ffc0cf18 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { ffc0cf88: 80 09 00 4c lwz r0,76(r9) ffc0cf8c: 2f 80 00 03 cmpwi cr7,r0,3 ffc0cf90: 41 9e 01 68 beq- cr7,ffc0d0f8 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { ffc0cf94: 2f 80 00 04 cmpwi cr7,r0,4 ffc0cf98: 41 9e 01 94 beq- cr7,ffc0d12c /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) ffc0cf9c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0cfa0: 40 9e 01 78 bne- cr7,ffc0d118 /* * 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 ) { ffc0cfa4: 81 1d 00 5c lwz r8,92(r29) ffc0cfa8: 2f 88 00 00 cmpwi cr7,r8,0 ffc0cfac: 40 9e 00 d0 bne- cr7,ffc0d07c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); ffc0cfb0: 7f a3 eb 78 mr r3,r29 ffc0cfb4: 7f 64 db 78 mr r4,r27 ffc0cfb8: 48 00 09 45 bl ffc0d8fc <== ALWAYS TAKEN if ( !node ) ffc0cfbc: 7c 7d 1b 79 mr. r29,r3 ffc0cfc0: 41 82 01 24 beq- ffc0d0e4 /* * Set the node access to the point we have found. */ pathloc->node_access = node; ffc0cfc4: 93 bc 00 00 stw r29,0(r28) <== ALWAYS TAKEN break; ffc0cfc8: 4b ff ff 18 b ffc0cee0 <== 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 ) ffc0cfcc: 81 78 00 00 lwz r11,0(r24) ffc0cfd0: 80 0b 00 18 lwz r0,24(r11) ffc0cfd4: 7f 80 48 00 cmpw cr7,r0,r9 ffc0cfd8: 41 be ff 08 beq- cr7,ffc0cee0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { ffc0cfdc: 81 1c 00 10 lwz r8,16(r28) /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == ffc0cfe0: 80 08 00 1c lwz r0,28(r8) ffc0cfe4: 7f 80 48 00 cmpw cr7,r0,r9 ffc0cfe8: 41 9e 01 68 beq- cr7,ffc0d150 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) ffc0cfec: 83 a9 00 08 lwz r29,8(r9) ffc0cff0: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0cff4: 40 9e ff d0 bne+ cr7,ffc0cfc4 rtems_set_errno_and_return_minus_one( ENOENT ); ffc0cff8: 48 00 63 81 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0cffc: 92 c3 00 00 stw r22,0(r3) ffc0d000: 3a c0 ff ff li r22,-1 ffc0d004: 48 00 00 14 b ffc0d018 <== ALWAYS TAKEN case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc0d008: 48 00 63 71 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d00c: 38 00 00 5b li r0,91 ffc0d010: 90 03 00 00 stw r0,0(r3) ffc0d014: 3a c0 ff ff li r22,-1 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0d018: 80 01 00 74 lwz r0,116(r1) ffc0d01c: 7e c3 b3 78 mr r3,r22 <== ALWAYS TAKEN ffc0d020: 82 e1 00 4c lwz r23,76(r1) <== ALWAYS TAKEN ffc0d024: 7c 08 03 a6 mtlr r0 ffc0d028: 82 c1 00 48 lwz r22,72(r1) ffc0d02c: 83 01 00 50 lwz r24,80(r1) ffc0d030: 83 21 00 54 lwz r25,84(r1) ffc0d034: 83 41 00 58 lwz r26,88(r1) ffc0d038: 83 61 00 5c lwz r27,92(r1) ffc0d03c: 83 81 00 60 lwz r28,96(r1) <== ALWAYS TAKEN ffc0d040: 83 a1 00 64 lwz r29,100(r1) ffc0d044: 83 c1 00 68 lwz r30,104(r1) <== ALWAYS TAKEN ffc0d048: 83 e1 00 6c lwz r31,108(r1) <== ALWAYS TAKEN ffc0d04c: 38 21 00 70 addi r1,r1,112 <== ALWAYS TAKEN ffc0d050: 4e 80 00 20 blr <== ALWAYS TAKEN /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) ffc0d054: 7f 83 e3 78 mr r3,r28 ffc0d058: 38 80 00 01 li r4,1 ffc0d05c: 4b ff fc 09 bl ffc0cc64 <== ALWAYS TAKEN ffc0d060: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d064: 41 be fe e0 beq- cr7,ffc0cf44 ffc0d068: 81 3c 00 00 lwz r9,0(r28) ffc0d06c: 4b ff fe f8 b ffc0cf64 <== ALWAYS TAKEN * * 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 ) { ffc0d070: 81 09 00 5c lwz r8,92(r9) <== ALWAYS TAKEN ffc0d074: 2f 88 00 00 cmpwi cr7,r8,0 ffc0d078: 41 be fe ac beq- cr7,ffc0cf24 newloc = node->info.directory.mt_fs->mt_fs_root; ffc0d07c: 81 28 00 28 lwz r9,40(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d080: 7e e5 bb 78 mr r5,r23 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0d084: 80 e8 00 1c lwz r7,28(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d088: 7f 86 e3 78 mr r6,r28 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0d08c: 81 48 00 20 lwz r10,32(r8) ffc0d090: 81 68 00 24 lwz r11,36(r8) ffc0d094: 90 e1 00 0c stw r7,12(r1) ffc0d098: 91 41 00 10 stw r10,16(r1) ffc0d09c: 91 61 00 14 stw r11,20(r1) ffc0d0a0: 91 21 00 18 stw r9,24(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d0a4: 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; ffc0d0a8: 80 08 00 2c lwz r0,44(r8) *pathloc = newloc; ffc0d0ac: 90 1c 00 10 stw r0,16(r28) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d0b0: 7c 64 f0 50 subf r3,r4,r30 ffc0d0b4: 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; ffc0d0b8: 90 fc 00 00 stw r7,0(r28) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d0bc: 7c 9f 22 14 add r4,r31,r4 */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; ffc0d0c0: 91 5c 00 04 stw r10,4(r28) ffc0d0c4: 91 7c 00 08 stw r11,8(r28) * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0d0c8: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d0cc: 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; ffc0d0d0: 91 3c 00 0c stw r9,12(r28) return (*pathloc->ops->evalpath_h)( &pathname[i-len], ffc0d0d4: 7c 09 03 a6 mtctr r0 ffc0d0d8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0d0dc: 7c 76 1b 78 mr r22,r3 ffc0d0e0: 4b ff ff 38 b ffc0d018 <== ALWAYS TAKEN * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT ); ffc0d0e4: 48 00 62 95 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d0e8: 38 00 00 02 li r0,2 ffc0d0ec: 90 03 00 00 stw r0,0(r3) ffc0d0f0: 3a c0 ff ff li r22,-1 ffc0d0f4: 4b ff ff 24 b ffc0d018 <== ALWAYS TAKEN * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); ffc0d0f8: 7f 83 e3 78 mr r3,r28 ffc0d0fc: 38 80 00 00 li r4,0 ffc0d100: 4b ff fb e5 bl ffc0cce4 <== ALWAYS TAKEN node = pathloc->node_access; ffc0d104: 83 bc 00 00 lwz r29,0(r28) if ( !node ) ffc0d108: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0d10c: 41 9e 00 0c beq- cr7,ffc0d118 <== NEVER TAKEN } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; ffc0d110: 80 1d 00 4c lwz r0,76(r29) ffc0d114: 4b ff fe 88 b ffc0cf9c <== ALWAYS TAKEN /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0d118: 48 00 62 61 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d11c: 38 00 00 14 li r0,20 ffc0d120: 90 03 00 00 stw r0,0(r3) ffc0d124: 3a c0 ff ff li r22,-1 ffc0d128: 4b ff fe f0 b ffc0d018 <== ALWAYS TAKEN if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); ffc0d12c: 7f 83 e3 78 mr r3,r28 ffc0d130: 38 80 00 00 li r4,0 ffc0d134: 4b ff fc 2d bl ffc0cd60 <== ALWAYS TAKEN node = pathloc->node_access; ffc0d138: 83 bc 00 00 lwz r29,0(r28) if ( result == -1 ) ffc0d13c: 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 ); ffc0d140: 7c 76 1b 78 mr r22,r3 node = pathloc->node_access; if ( result == -1 ) ffc0d144: 41 be fe d4 beq- cr7,ffc0d018 <== NEVER TAKEN } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; ffc0d148: 80 1d 00 4c lwz r0,76(r29) ffc0d14c: 4b ff fe 50 b ffc0cf9c <== ALWAYS TAKEN */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d150: 81 28 00 14 lwz r9,20(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0d154: 7e e5 bb 78 mr r5,r23 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d158: 80 e8 00 08 lwz r7,8(r8) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0d15c: 7f 86 e3 78 mr r6,r28 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d160: 81 48 00 0c lwz r10,12(r8) ffc0d164: 81 68 00 10 lwz r11,16(r8) ffc0d168: 90 e1 00 0c stw r7,12(r1) ffc0d16c: 91 41 00 10 stw r10,16(r1) ffc0d170: 91 61 00 14 stw r11,20(r1) ffc0d174: 91 21 00 18 stw r9,24(r1) *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), ffc0d178: 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; ffc0d17c: 80 08 00 18 lwz r0,24(r8) ffc0d180: 4b ff ff 2c b ffc0d0ac <== ALWAYS TAKEN ffc0d2a8 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0d2a8: 94 21 ff 88 stwu r1,-120(r1) ffc0d2ac: 7c 08 02 a6 mflr r0 ffc0d2b0: 7d 80 00 26 mfcr r12 ffc0d2b4: 90 01 00 7c stw r0,124(r1) ffc0d2b8: 92 e1 00 54 stw r23,84(r1) ffc0d2bc: 7c b7 2b 78 mr r23,r5 ffc0d2c0: 93 01 00 58 stw r24,88(r1) case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) ffc0d2c4: 3f 00 00 00 lis r24,0 ffc0d2c8: 3b 18 26 dc addi r24,r24,9948 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0d2cc: 93 21 00 5c stw r25,92(r1) ffc0d2d0: 3b 21 00 08 addi r25,r1,8 ffc0d2d4: 93 41 00 60 stw r26,96(r1) ffc0d2d8: 7c 7a 1b 78 mr r26,r3 ffc0d2dc: 93 61 00 64 stw r27,100(r1) ffc0d2e0: 3b 61 00 20 addi r27,r1,32 ffc0d2e4: 93 81 00 68 stw r28,104(r1) node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); ffc0d2e8: 3b 80 00 00 li r28,0 int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { ffc0d2ec: 93 a1 00 6c stw r29,108(r1) ffc0d2f0: 7c 9d 23 78 mr r29,r4 ffc0d2f4: 93 c1 00 70 stw r30,112(r1) ffc0d2f8: 93 e1 00 74 stw r31,116(r1) ffc0d2fc: 92 a1 00 4c stw r21,76(r1) ffc0d300: 92 c1 00 50 stw r22,80(r1) ffc0d304: 91 81 00 48 stw r12,72(r1) /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; ffc0d308: 83 c4 00 00 lwz r30,0(r4) /* * Get the path length. */ pathlen = strlen( path ); ffc0d30c: 48 00 73 69 bl ffc14674 <== ALWAYS TAKEN ffc0d310: 7c 7f 1b 78 mr r31,r3 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); ffc0d314: 7f e4 fb 78 mr r4,r31 ffc0d318: 7c 7a e2 14 add r3,r26,r28 ffc0d31c: 7f 65 db 78 mr r5,r27 ffc0d320: 7f 26 cb 78 mr r6,r25 ffc0d324: 48 00 06 d9 bl ffc0d9fc <== ALWAYS TAKEN pathlen -= len; i += len; if ( !pathloc->node_access ) ffc0d328: 81 3d 00 00 lwz r9,0(r29) */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; ffc0d32c: 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 ); ffc0d330: 7c 76 1b 78 mr r22,r3 pathlen -= len; i += len; if ( !pathloc->node_access ) ffc0d334: 2f 89 00 00 cmpwi cr7,r9,0 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; ffc0d338: 7f f5 f8 50 subf r31,r21,r31 i += len; if ( !pathloc->node_access ) ffc0d33c: 41 9e 01 70 beq- cr7,ffc0d4ac <== NEVER TAKEN /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) ffc0d340: 2e 03 00 00 cmpwi cr4,r3,0 ffc0d344: 40 92 00 5c bne- cr4,ffc0d3a0 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); ffc0d348: 48 00 60 31 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d34c: 38 00 00 11 li r0,17 ffc0d350: 90 03 00 00 stw r0,0(r3) ffc0d354: 3b c0 ff ff li r30,-1 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0d358: 80 01 00 7c lwz r0,124(r1) ffc0d35c: 7f c3 f3 78 mr r3,r30 ffc0d360: 81 81 00 48 lwz r12,72(r1) ffc0d364: 7c 08 03 a6 mtlr r0 ffc0d368: 82 a1 00 4c lwz r21,76(r1) ffc0d36c: 82 c1 00 50 lwz r22,80(r1) ffc0d370: 7d 80 81 20 mtcrf 8,r12 ffc0d374: 82 e1 00 54 lwz r23,84(r1) ffc0d378: 83 01 00 58 lwz r24,88(r1) <== ALWAYS TAKEN ffc0d37c: 83 21 00 5c lwz r25,92(r1) <== ALWAYS TAKEN ffc0d380: 83 41 00 60 lwz r26,96(r1) ffc0d384: 83 61 00 64 lwz r27,100(r1) ffc0d388: 83 81 00 68 lwz r28,104(r1) ffc0d38c: 83 a1 00 6c lwz r29,108(r1) ffc0d390: 83 c1 00 70 lwz r30,112(r1) ffc0d394: 83 e1 00 74 lwz r31,116(r1) ffc0d398: 38 21 00 78 addi r1,r1,120 <== ALWAYS TAKEN ffc0d39c: 4e 80 00 20 blr <== ALWAYS TAKEN /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) ffc0d3a0: 80 1e 00 4c lwz r0,76(r30) ffc0d3a4: 2f 80 00 01 cmpwi cr7,r0,1 ffc0d3a8: 41 9e 01 68 beq- cr7,ffc0d510 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0d3ac: 2f 96 00 02 cmpwi cr7,r22,2 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; ffc0d3b0: 7f 9c aa 14 add r28,r28,r21 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; ffc0d3b4: 7d 3e 4b 78 mr r30,r9 <== ALWAYS TAKEN switch( type ) { ffc0d3b8: 41 9e 00 88 beq- cr7,ffc0d440 ffc0d3bc: 2b 96 00 02 cmplwi cr7,r22,2 ffc0d3c0: 40 9d 00 28 ble- cr7,ffc0d3e8 ffc0d3c4: 2f 96 00 03 cmpwi cr7,r22,3 <== ALWAYS TAKEN ffc0d3c8: 41 9e 00 28 beq- cr7,ffc0d3f0 ffc0d3cc: 2f 96 00 04 cmpwi cr7,r22,4 ffc0d3d0: 40 9e ff 44 bne+ cr7,ffc0d314 <== NEVER TAKEN case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc0d3d4: 48 00 5f a5 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d3d8: 38 00 00 5b li r0,91 ffc0d3dc: 90 03 00 00 stw r0,0(r3) ffc0d3e0: 3b c0 ff ff li r30,-1 ffc0d3e4: 4b ff ff 74 b ffc0d358 <== ALWAYS TAKEN if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { ffc0d3e8: 41 b2 ff 60 beq- cr4,ffc0d348 <== NEVER TAKEN ffc0d3ec: 4b ff ff 28 b ffc0d314 <== ALWAYS TAKEN pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { ffc0d3f0: 80 09 00 4c lwz r0,76(r9) ffc0d3f4: 2f 80 00 03 cmpwi cr7,r0,3 ffc0d3f8: 41 9e 01 ac beq- cr7,ffc0d5a4 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { ffc0d3fc: 2f 80 00 04 cmpwi cr7,r0,4 <== ALWAYS TAKEN ffc0d400: 41 9e 01 a4 beq- cr7,ffc0d5a4 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) ffc0d404: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0d408: 41 9e 01 24 beq- cr7,ffc0d52c <== NEVER TAKEN /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) ffc0d40c: 80 1e 00 4c lwz r0,76(r30) ffc0d410: 2f 80 00 01 cmpwi cr7,r0,1 <== ALWAYS TAKEN ffc0d414: 40 9e 01 18 bne- cr7,ffc0d52c /* * 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 ) { ffc0d418: 81 1e 00 5c lwz r8,92(r30) ffc0d41c: 2f 88 00 00 cmpwi cr7,r8,0 ffc0d420: 40 9e 01 20 bne- cr7,ffc0d540 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); ffc0d424: 7f c3 f3 78 mr r3,r30 ffc0d428: 7f 64 db 78 mr r4,r27 ffc0d42c: 48 00 04 d1 bl ffc0d8fc <== ALWAYS TAKEN /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) ffc0d430: 7c 7e 1b 79 mr. r30,r3 ffc0d434: 41 82 00 48 beq- ffc0d47c done = true; else pathloc->node_access = node; ffc0d438: 93 dd 00 00 stw r30,0(r29) ffc0d43c: 4b ff fe d8 b ffc0d314 <== 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 ) ffc0d440: 81 78 00 00 lwz r11,0(r24) ffc0d444: 80 0b 00 18 lwz r0,24(r11) ffc0d448: 7f 80 48 00 cmpw cr7,r0,r9 ffc0d44c: 41 be fe c8 beq- cr7,ffc0d314 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ ffc0d450: 81 1d 00 10 lwz r8,16(r29) ffc0d454: 80 08 00 1c lwz r0,28(r8) ffc0d458: 7f 80 48 00 cmpw cr7,r0,r9 ffc0d45c: 41 9e 01 68 beq- cr7,ffc0d5c4 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) ffc0d460: 83 c9 00 08 lwz r30,8(r9) ffc0d464: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0d468: 40 9e ff d0 bne+ cr7,ffc0d438 rtems_set_errno_and_return_minus_one( ENOENT ); ffc0d46c: 48 00 5f 0d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d470: 3b c0 ff ff li r30,-1 ffc0d474: 92 c3 00 00 stw r22,0(r3) ffc0d478: 4b ff fe e0 b ffc0d358 <== ALWAYS TAKEN case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; ffc0d47c: 80 01 00 08 lwz r0,8(r1) <== ALWAYS TAKEN ffc0d480: 7c 00 e0 50 subf r0,r0,r28 ffc0d484: 7c 1a 02 14 add r0,r26,r0 ffc0d488: 90 17 00 00 stw r0,0(r23) /* * 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++) { ffc0d48c: 7c 1a e0 ae lbzx r0,r26,r28 ffc0d490: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d494: 41 9e 00 38 beq- cr7,ffc0d4cc ffc0d498: 7f 9a e2 14 add r28,r26,r28 if ( !IMFS_is_separator( path[ i ] ) ) ffc0d49c: 2f 80 00 2f cmpwi cr7,r0,47 ffc0d4a0: 2f 00 00 5c cmpwi cr6,r0,92 ffc0d4a4: 41 9e 00 1c beq- cr7,ffc0d4c0 ffc0d4a8: 41 9a 00 18 beq- cr6,ffc0d4c0 rtems_set_errno_and_return_minus_one( ENOENT ); ffc0d4ac: 48 00 5e cd bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d4b0: 38 00 00 02 li r0,2 ffc0d4b4: 90 03 00 00 stw r0,0(r3) ffc0d4b8: 3b c0 ff ff li r30,-1 ffc0d4bc: 4b ff fe 9c b ffc0d358 <== 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++) { ffc0d4c0: 8c 1c 00 01 lbzu r0,1(r28) ffc0d4c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d4c8: 40 9e ff d4 bne+ cr7,ffc0d49c /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); ffc0d4cc: 7f a3 eb 78 mr r3,r29 <== ALWAYS TAKEN ffc0d4d0: 4b ff f7 05 bl ffc0cbd4 <== ALWAYS TAKEN /* * The returned node must be a directory */ node = pathloc->node_access; ffc0d4d4: 81 3d 00 00 lwz r9,0(r29) <== ALWAYS TAKEN /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); ffc0d4d8: 7c 7e 1b 78 mr r30,r3 /* * The returned node must be a directory */ node = pathloc->node_access; ffc0d4dc: 80 09 00 4c lwz r0,76(r9) ffc0d4e0: 2f 80 00 01 cmpwi cr7,r0,1 <== ALWAYS TAKEN ffc0d4e4: 40 9e 00 48 bne- cr7,ffc0d52c <== NEVER TAKEN /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) ffc0d4e8: 7f a3 eb 78 mr r3,r29 ffc0d4ec: 38 80 00 03 li r4,3 <== ALWAYS TAKEN ffc0d4f0: 4b ff f7 75 bl ffc0cc64 <== ALWAYS TAKEN ffc0d4f4: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc0d4f8: 40 9e fe 60 bne+ cr7,ffc0d358 rtems_set_errno_and_return_minus_one( EACCES ); ffc0d4fc: 48 00 5e 7d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d500: 38 00 00 0d li r0,13 ffc0d504: 90 03 00 00 stw r0,0(r3) ffc0d508: 3b c0 ff ff li r30,-1 ffc0d50c: 4b ff fe 4c b ffc0d358 <== ALWAYS TAKEN * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) ffc0d510: 7f a3 eb 78 mr r3,r29 ffc0d514: 38 80 00 01 li r4,1 <== ALWAYS TAKEN ffc0d518: 4b ff f7 4d bl ffc0cc64 <== ALWAYS TAKEN ffc0d51c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d520: 41 be ff dc beq- cr7,ffc0d4fc ffc0d524: 81 3d 00 00 lwz r9,0(r29) ffc0d528: 4b ff fe 84 b ffc0d3ac <== ALWAYS TAKEN /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0d52c: 48 00 5e 4d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d530: 38 00 00 14 li r0,20 ffc0d534: 90 03 00 00 stw r0,0(r3) ffc0d538: 3b c0 ff ff li r30,-1 ffc0d53c: 4b ff fe 1c b ffc0d358 <== 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 ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0d540: 81 28 00 28 lwz r9,40(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d544: 7f a4 eb 78 mr r4,r29 * 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; ffc0d548: 80 e8 00 1c lwz r7,28(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d54c: 7e e5 bb 78 mr r5,r23 * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; ffc0d550: 81 48 00 20 lwz r10,32(r8) ffc0d554: 81 68 00 24 lwz r11,36(r8) ffc0d558: 90 e1 00 0c stw r7,12(r1) ffc0d55c: 91 41 00 10 stw r10,16(r1) ffc0d560: 91 61 00 14 stw r11,20(r1) ffc0d564: 91 21 00 18 stw r9,24(r1) ffc0d568: 80 08 00 2c lwz r0,44(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d56c: 80 61 00 08 lwz r3,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; ffc0d570: 90 1d 00 10 stw r0,16(r29) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d574: 7c 63 e0 50 subf r3,r3,r28 * 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; ffc0d578: 90 fd 00 00 stw r7,0(r29) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d57c: 7c 7a 1a 14 add r3,r26,r3 * 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; ffc0d580: 91 5d 00 04 stw r10,4(r29) ffc0d584: 91 7d 00 08 stw r11,8(r29) * 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; ffc0d588: 90 01 00 1c stw r0,28(r1) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d58c: 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; ffc0d590: 91 3d 00 0c stw r9,12(r29) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d594: 7c 09 03 a6 mtctr r0 ffc0d598: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0d59c: 7c 7e 1b 78 mr r30,r3 ffc0d5a0: 4b ff fd b8 b ffc0d358 <== ALWAYS TAKEN if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); ffc0d5a4: 7f a3 eb 78 mr r3,r29 ffc0d5a8: 38 80 00 00 li r4,0 ffc0d5ac: 4b ff fb d9 bl ffc0d184 <== ALWAYS TAKEN if ( result == -1 ) ffc0d5b0: 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 ); ffc0d5b4: 7c 7e 1b 78 mr r30,r3 if ( result == -1 ) ffc0d5b8: 41 be fd a0 beq- cr7,ffc0d358 <== NEVER TAKEN ffc0d5bc: 83 dd 00 00 lwz r30,0(r29) ffc0d5c0: 4b ff fe 44 b ffc0d404 <== ALWAYS TAKEN if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d5c4: 81 28 00 14 lwz r9,20(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d5c8: 7f a4 eb 78 mr r4,r29 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d5cc: 80 e8 00 08 lwz r7,8(r8) *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); ffc0d5d0: 7e e5 bb 78 mr r5,r23 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; ffc0d5d4: 81 48 00 0c lwz r10,12(r8) ffc0d5d8: 81 68 00 10 lwz r11,16(r8) ffc0d5dc: 90 e1 00 0c stw r7,12(r1) ffc0d5e0: 91 41 00 10 stw r10,16(r1) ffc0d5e4: 91 61 00 14 stw r11,20(r1) ffc0d5e8: 91 21 00 18 stw r9,24(r1) ffc0d5ec: 80 08 00 18 lwz r0,24(r8) ffc0d5f0: 4b ff ff 7c b ffc0d56c <== ALWAYS TAKEN ffc0cce4 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0cce4: 94 21 ff e8 stwu r1,-24(r1) ffc0cce8: 7c 08 02 a6 mflr r0 ffc0ccec: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode = node->node_access; ffc0ccf0: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0ccf4: 93 e1 00 14 stw r31,20(r1) ffc0ccf8: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) ffc0ccfc: 80 09 00 4c lwz r0,76(r9) ffc0cd00: 2f 80 00 03 cmpwi cr7,r0,3 ffc0cd04: 40 9e 00 54 bne- cr7,ffc0cd58 <== NEVER TAKEN /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; ffc0cd08: 80 09 00 50 lwz r0,80(r9) IMFS_Set_handlers( node ); ffc0cd0c: 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; ffc0cd10: 90 03 00 00 stw r0,0(r3) IMFS_Set_handlers( node ); ffc0cd14: 4b ff fe c1 bl ffc0cbd4 <== ALWAYS TAKEN /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) ffc0cd18: 80 81 00 08 lwz r4,8(r1) ffc0cd1c: 7f e3 fb 78 mr r3,r31 ffc0cd20: 4b ff ff 45 bl ffc0cc64 <== ALWAYS TAKEN ffc0cd24: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cd28: 38 60 00 00 li r3,0 ffc0cd2c: 41 9e 00 18 beq- cr7,ffc0cd44 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0cd30: 80 01 00 1c lwz r0,28(r1) ffc0cd34: 83 e1 00 14 lwz r31,20(r1) ffc0cd38: 38 21 00 18 addi r1,r1,24 ffc0cd3c: 7c 08 03 a6 mtlr r0 ffc0cd40: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); ffc0cd44: 48 00 66 35 bl ffc13378 <__errno> <== NOT EXECUTED ffc0cd48: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0cd4c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cd50: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0cd54: 4b ff ff dc b ffc0cd30 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); ffc0cd58: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc0cd5c: 4b ff c1 51 bl ffc08eac <== NOT EXECUTED ffc0d184 : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0d184: 94 21 ff e0 stwu r1,-32(r1) ffc0d188: 7c 08 02 a6 mflr r0 ffc0d18c: 93 a1 00 14 stw r29,20(r1) ffc0d190: 3f a0 00 00 lis r29,0 ffc0d194: 93 61 00 0c stw r27,12(r1) else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); ffc0d198: 3b 7d 26 dc addi r27,r29,9948 int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0d19c: 93 81 00 10 stw r28,16(r1) ffc0d1a0: 7c 9c 23 78 mr r28,r4 ffc0d1a4: 93 c1 00 18 stw r30,24(r1) ffc0d1a8: 7c 7e 1b 78 mr r30,r3 ffc0d1ac: 90 01 00 24 stw r0,36(r1) ffc0d1b0: 93 e1 00 1c stw r31,28(r1) ffc0d1b4: 81 3d 26 dc lwz r9,9948(r29) ffc0d1b8: 48 00 00 14 b ffc0d1cc <== ALWAYS TAKEN */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) ffc0d1bc: 41 9a 00 94 beq- cr6,ffc0d250 result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); ffc0d1c0: 39 6b ff fd addi r11,r11,-3 ffc0d1c4: 2b 8b 00 01 cmplwi cr7,r11,1 ffc0d1c8: 41 9d 00 58 bgt- cr7,ffc0d220 <== ALWAYS TAKEN /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; ffc0d1cc: a1 69 00 30 lhz r11,48(r9) { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; ffc0d1d0: 83 fe 00 00 lwz r31,0(r30) /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; ffc0d1d4: 38 0b 00 01 addi r0,r11,1 ffc0d1d8: 54 00 04 3e clrlwi r0,r0,16 if ( rtems_filesystem_link_counts > MAXSYMLINK ) { ffc0d1dc: 2b 80 00 05 cmplwi cr7,r0,5 /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; ffc0d1e0: b0 09 00 30 sth r0,48(r9) if ( rtems_filesystem_link_counts > MAXSYMLINK ) { ffc0d1e4: 41 9d 00 88 bgt- cr7,ffc0d26c /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) ffc0d1e8: 81 7f 00 4c lwz r11,76(r31) ffc0d1ec: 2f 8b 00 03 cmpwi cr7,r11,3 result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) ffc0d1f0: 2f 0b 00 04 cmpwi cr6,r11,4 /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) ffc0d1f4: 40 9e ff c8 bne+ cr7,ffc0d1bc result = IMFS_evaluate_hard_link( node, flags ); ffc0d1f8: 7f c3 f3 78 mr r3,r30 ffc0d1fc: 7f 84 e3 78 mr r4,r28 ffc0d200: 4b ff fa e5 bl ffc0cce4 <== ALWAYS TAKEN else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); ffc0d204: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d208: 40 9e 00 5c bne- cr7,ffc0d264 <== NEVER TAKEN ffc0d20c: 81 7f 00 4c lwz r11,76(r31) ffc0d210: 81 3b 00 00 lwz r9,0(r27) ffc0d214: 39 6b ff fd addi r11,r11,-3 ffc0d218: 2b 8b 00 01 cmplwi cr7,r11,1 ffc0d21c: 40 9d ff b0 ble+ cr7,ffc0d1cc <== ALWAYS TAKEN ffc0d220: 38 60 00 00 li r3,0 /* * Clear link counter. */ rtems_filesystem_link_counts = 0; ffc0d224: 38 00 00 00 li r0,0 return result; } ffc0d228: 83 61 00 0c lwz r27,12(r1) /* * Clear link counter. */ rtems_filesystem_link_counts = 0; ffc0d22c: b0 09 00 30 sth r0,48(r9) return result; } ffc0d230: 80 01 00 24 lwz r0,36(r1) ffc0d234: 83 81 00 10 lwz r28,16(r1) ffc0d238: 7c 08 03 a6 mtlr r0 ffc0d23c: 83 a1 00 14 lwz r29,20(r1) ffc0d240: 83 c1 00 18 lwz r30,24(r1) ffc0d244: 83 e1 00 1c lwz r31,28(r1) ffc0d248: 38 21 00 20 addi r1,r1,32 ffc0d24c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) result = IMFS_evaluate_sym_link( node, flags ); ffc0d250: 7f c3 f3 78 mr r3,r30 ffc0d254: 7f 84 e3 78 mr r4,r28 ffc0d258: 4b ff fb 09 bl ffc0cd60 <== ALWAYS TAKEN } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); ffc0d25c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d260: 41 9e ff ac beq+ cr7,ffc0d20c ffc0d264: 81 3d 26 dc lwz r9,9948(r29) ffc0d268: 4b ff ff bc b ffc0d224 <== ALWAYS TAKEN * Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0; ffc0d26c: 38 00 00 00 li r0,0 ffc0d270: b0 09 00 30 sth r0,48(r9) rtems_set_errno_and_return_minus_one( ELOOP ); ffc0d274: 48 00 61 05 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d278: 38 00 00 5c li r0,92 ffc0d27c: 90 03 00 00 stw r0,0(r3) ffc0d280: 38 60 ff ff li r3,-1 */ rtems_filesystem_link_counts = 0; return result; } ffc0d284: 80 01 00 24 lwz r0,36(r1) ffc0d288: 83 61 00 0c lwz r27,12(r1) ffc0d28c: 7c 08 03 a6 mtlr r0 ffc0d290: 83 81 00 10 lwz r28,16(r1) ffc0d294: 83 a1 00 14 lwz r29,20(r1) ffc0d298: 83 c1 00 18 lwz r30,24(r1) ffc0d29c: 83 e1 00 1c lwz r31,28(r1) ffc0d2a0: 38 21 00 20 addi r1,r1,32 ffc0d2a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cc64 : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { ffc0cc64: 94 21 ff e8 stwu r1,-24(r1) ffc0cc68: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0cc6c: 90 01 00 1c stw r0,28(r1) ffc0cc70: 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; ffc0cc74: 83 e3 00 00 lwz r31,0(r3) int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { ffc0cc78: 93 a1 00 0c stw r29,12(r1) ffc0cc7c: 93 c1 00 10 stw r30,16(r1) ffc0cc80: 7c 9e 23 78 mr r30,r4 <== ALWAYS TAKEN } jnode = node->node_access; #if defined(RTEMS_POSIX_API) st_uid = geteuid(); ffc0cc84: 48 00 15 09 bl ffc0e18c <== ALWAYS TAKEN ffc0cc88: 7c 7d 1b 78 mr r29,r3 st_gid = getegid(); ffc0cc8c: 48 00 14 f1 bl ffc0e17c <== ALWAYS TAKEN * Check if I am owner or a group member or someone else. */ flags_to_test = flags; if ( st_uid == jnode->st_uid ) ffc0cc90: a1 3f 00 3c lhz r9,60(r31) flags_to_test <<= 6; ffc0cc94: 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 ) ffc0cc98: 7f 89 e8 00 cmpw cr7,r9,r29 <== ALWAYS TAKEN ffc0cc9c: 41 9e 00 18 beq- cr7,ffc0ccb4 flags_to_test <<= 6; else if ( st_gid == jnode->st_gid ) ffc0cca0: a1 3f 00 3e lhz r9,62(r31) flags_to_test <<= 3; ffc0cca4: 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 ) ffc0cca8: 7f 89 18 00 cmpw cr7,r9,r3 ffc0ccac: 41 9e 00 08 beq- cr7,ffc0ccb4 <== ALWAYS TAKEN ffc0ccb0: 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 ) ffc0ccb4: 80 7f 00 30 lwz r3,48(r31) return 1; return 0; } ffc0ccb8: 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 ) ffc0ccbc: 7c 03 18 38 and r3,r0,r3 return 1; return 0; } ffc0ccc0: 83 c1 00 10 lwz r30,16(r1) ffc0ccc4: 7c 03 1a 78 xor r3,r0,r3 ffc0ccc8: 80 01 00 1c lwz r0,28(r1) ffc0cccc: 7c 63 00 34 cntlzw r3,r3 ffc0ccd0: 83 e1 00 14 lwz r31,20(r1) ffc0ccd4: 7c 08 03 a6 mtlr r0 ffc0ccd8: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc0ccdc: 38 21 00 18 addi r1,r1,24 ffc0cce0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cd60 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0cd60: 94 21 ff e8 stwu r1,-24(r1) ffc0cd64: 7c 08 02 a6 mflr r0 ffc0cd68: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode = node->node_access; ffc0cd6c: 81 23 00 00 lwz r9,0(r3) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0cd70: 93 c1 00 10 stw r30,16(r1) ffc0cd74: 7c 9e 23 78 mr r30,r4 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0cd78: 80 09 00 4c lwz r0,76(r9) int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0cd7c: 93 e1 00 14 stw r31,20(r1) ffc0cd80: 7c 7f 1b 78 mr r31,r3 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0cd84: 2f 80 00 04 cmpwi cr7,r0,4 int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { ffc0cd88: 93 a1 00 0c stw r29,12(r1) /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) ffc0cd8c: 40 9e 00 f0 bne- cr7,ffc0ce7c <== NEVER TAKEN rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) ffc0cd90: 80 09 00 08 lwz r0,8(r9) ffc0cd94: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cd98: 41 9e 00 dc beq- cr7,ffc0ce74 <== NEVER TAKEN /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; ffc0cd9c: 90 03 00 00 stw r0,0(r3) rtems_filesystem_get_sym_start_loc( ffc0cda0: 81 69 00 50 lwz r11,80(r9) ffc0cda4: 88 0b 00 00 lbz r0,0(r11) ffc0cda8: 2f 80 00 2f cmpwi cr7,r0,47 ffc0cdac: 41 9e 00 78 beq- cr7,ffc0ce24 ffc0cdb0: 2f 80 00 5c cmpwi cr7,r0,92 ffc0cdb4: 41 9e 00 70 beq- cr7,ffc0ce24 <== NEVER TAKEN ffc0cdb8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cdbc: 3b a0 00 00 li r29,0 ffc0cdc0: 41 9e 00 64 beq- cr7,ffc0ce24 <== NEVER TAKEN * 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] ), ffc0cdc4: 7f ab ea 14 add r29,r11,r29 ffc0cdc8: 7f a3 eb 78 mr r3,r29 ffc0cdcc: 48 00 78 a9 bl ffc14674 <== ALWAYS TAKEN /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0cdd0: 7f c5 f3 78 mr r5,r30 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), ffc0cdd4: 7c 64 1b 78 mr r4,r3 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( ffc0cdd8: 7f e6 fb 78 mr r6,r31 ffc0cddc: 7f a3 eb 78 mr r3,r29 ffc0cde0: 48 00 00 a5 bl ffc0ce84 <== ALWAYS TAKEN ffc0cde4: 7c 7d 1b 78 mr r29,r3 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); ffc0cde8: 7f e3 fb 78 mr r3,r31 ffc0cdec: 4b ff fd e9 bl ffc0cbd4 <== ALWAYS TAKEN /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) ffc0cdf0: 7f e3 fb 78 mr r3,r31 ffc0cdf4: 7f c4 f3 78 mr r4,r30 ffc0cdf8: 4b ff fe 6d bl ffc0cc64 <== ALWAYS TAKEN ffc0cdfc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ce00: 41 9e 00 60 beq- cr7,ffc0ce60 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EACCES ); return result; } ffc0ce04: 80 01 00 1c lwz r0,28(r1) ffc0ce08: 7f a3 eb 78 mr r3,r29 ffc0ce0c: 83 c1 00 10 lwz r30,16(r1) ffc0ce10: 7c 08 03 a6 mtlr r0 ffc0ce14: 83 a1 00 0c lwz r29,12(r1) ffc0ce18: 83 e1 00 14 lwz r31,20(r1) ffc0ce1c: 38 21 00 18 addi r1,r1,24 ffc0ce20: 4e 80 00 20 blr <== ALWAYS TAKEN * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( ffc0ce24: 3d 60 00 00 lis r11,0 ffc0ce28: 81 6b 26 dc lwz r11,9948(r11) ffc0ce2c: 3b a0 00 01 li r29,1 ffc0ce30: 80 0b 00 24 lwz r0,36(r11) ffc0ce34: 80 eb 00 18 lwz r7,24(r11) ffc0ce38: 81 0b 00 1c lwz r8,28(r11) ffc0ce3c: 81 4b 00 20 lwz r10,32(r11) ffc0ce40: 90 ff 00 00 stw r7,0(r31) ffc0ce44: 91 1f 00 04 stw r8,4(r31) ffc0ce48: 91 5f 00 08 stw r10,8(r31) ffc0ce4c: 90 1f 00 0c stw r0,12(r31) ffc0ce50: 80 0b 00 28 lwz r0,40(r11) ffc0ce54: 90 1f 00 10 stw r0,16(r31) ffc0ce58: 81 69 00 50 lwz r11,80(r9) ffc0ce5c: 4b ff ff 68 b ffc0cdc4 <== ALWAYS TAKEN /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); ffc0ce60: 48 00 65 19 bl ffc13378 <__errno> <== NOT EXECUTED ffc0ce64: 38 00 00 0d li r0,13 <== NOT EXECUTED ffc0ce68: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ce6c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc0ce70: 4b ff ff 94 b ffc0ce04 <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); ffc0ce74: 3c 60 ba d0 lis r3,-17712 <== NOT EXECUTED ffc0ce78: 4b ff c0 35 bl ffc08eac <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); ffc0ce7c: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc0ce80: 4b ff c0 2d bl ffc08eac <== NOT EXECUTED ffc11488 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { ffc11488: 94 21 ff e0 stwu r1,-32(r1) ffc1148c: 7c 08 02 a6 mflr r0 ffc11490: 90 01 00 24 stw r0,36(r1) ffc11494: 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; ffc11498: 83 e3 00 00 lwz r31,0(r3) int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { ffc1149c: 93 c1 00 18 stw r30,24(r1) ffc114a0: 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(); ffc114a4: 4b ff cc e9 bl ffc0e18c <== ALWAYS TAKEN if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) ffc114a8: a0 1f 00 3c lhz r0,60(r31) ffc114ac: 7f 80 18 00 cmpw cr7,r0,r3 ffc114b0: 41 9e 00 0c beq- cr7,ffc114bc <== ALWAYS TAKEN ffc114b4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc114b8: 40 9e 00 48 bne- cr7,ffc11500 <== 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); ffc114bc: 80 1f 00 30 lwz r0,48(r31) ffc114c0: 57 de 05 3e clrlwi r30,r30,20 IMFS_update_ctime( jnode ); ffc114c4: 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); ffc114c8: 54 00 00 26 rlwinm r0,r0,0,0,19 ffc114cc: 7f de 03 78 or r30,r30,r0 ffc114d0: 93 df 00 30 stw r30,48(r31) IMFS_update_ctime( jnode ); ffc114d4: 38 80 00 00 li r4,0 ffc114d8: 4b ff cc c5 bl ffc0e19c <== ALWAYS TAKEN ffc114dc: 80 01 00 08 lwz r0,8(r1) ffc114e0: 38 60 00 00 li r3,0 ffc114e4: 90 1f 00 48 stw r0,72(r31) return 0; } ffc114e8: 80 01 00 24 lwz r0,36(r1) ffc114ec: 83 c1 00 18 lwz r30,24(r1) ffc114f0: 7c 08 03 a6 mtlr r0 ffc114f4: 83 e1 00 1c lwz r31,28(r1) ffc114f8: 38 21 00 20 addi r1,r1,32 ffc114fc: 4e 80 00 20 blr <== ALWAYS TAKEN */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); ffc11500: 48 00 1e 79 bl ffc13378 <__errno> <== NOT EXECUTED ffc11504: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc11508: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1150c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc11510: 4b ff ff d8 b ffc114e8 <== NOT EXECUTED ffc11514 : int cmd, rtems_libio_t *iop ) { return 0; } ffc11514: 38 60 00 00 li r3,0 ffc11518: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18c54 : int IMFS_fdatasync( rtems_libio_t *iop ) { return 0; } ffc18c54: 38 60 00 00 li r3,0 ffc18c58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d808 : } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0d808: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc0d80c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0d810: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0d814: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED ffc0d818: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0d81c: 83 c3 00 3c lwz r30,60(r3) <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0d820: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc0d824: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0d828: 38 7e 00 50 addi r3,r30,80 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { ffc0d82c: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); ffc0d830: 48 00 33 f9 bl ffc10c28 <== NOT EXECUTED if (! err) { ffc0d834: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc0d838: 41 82 00 28 beq- ffc0d860 <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) free(jnode); } IMFS_FIFO_RETURN(err); ffc0d83c: 41 80 00 58 blt- ffc0d894 <== NOT EXECUTED } ffc0d840: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc0d844: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0d848: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc0d84c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d850: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0d854: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc0d858: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0d85c: 4e 80 00 20 blr <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0d860: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) ffc0d864: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0d868: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc0d86c: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) ffc0d870: 48 00 0a 1d bl ffc0e28c <== NOT EXECUTED ffc0d874: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0d878: 40 be ff c8 bne- cr7,ffc0d840 <== NOT EXECUTED ffc0d87c: a0 1e 00 34 lhz r0,52(r30) <== NOT EXECUTED ffc0d880: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0d884: 40 9e ff bc bne+ cr7,ffc0d840 <== NOT EXECUTED free(jnode); ffc0d888: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0d88c: 4b ff 6b dd bl ffc04468 <== NOT EXECUTED ffc0d890: 4b ff ff b0 b ffc0d840 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); ffc0d894: 7f bd 00 d0 neg r29,r29 <== NOT EXECUTED ffc0d898: 48 00 5a e1 bl ffc13378 <__errno> <== NOT EXECUTED ffc0d89c: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc0d8a0: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc0d8a4: 4b ff ff 9c b ffc0d840 <== NOT EXECUTED ffc0d65c : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0d65c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0d660: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0d664: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0d668: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0d66c: 3c 00 80 04 lis r0,-32764 <== NOT EXECUTED ffc0d670: 60 00 66 7e ori r0,r0,26238 <== NOT EXECUTED ffc0d674: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc0d678: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int err; if (command == FIONBIO) { ffc0d67c: 41 9e 00 2c beq- cr7,ffc0d6a8 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); ffc0d680: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0d684: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0d688: 48 00 30 3d bl ffc106c4 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0d68c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc0d690: 41 80 00 78 blt- ffc0d708 <== NOT EXECUTED } ffc0d694: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0d698: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0d69c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0d6a0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d6a4: 4e 80 00 20 blr <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) ffc0d6a8: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc0d6ac: 3b e0 00 0e li r31,14 <== NOT EXECUTED ffc0d6b0: 41 9e 00 5c beq- cr7,ffc0d70c <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) ffc0d6b4: 80 05 00 00 lwz r0,0(r5) <== NOT EXECUTED ffc0d6b8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0d6bc: 41 9e 00 28 beq- cr7,ffc0d6e4 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; ffc0d6c0: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc0d6c4: 38 60 00 00 li r3,0 <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } ffc0d6c8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; ffc0d6cc: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc0d6d0: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } ffc0d6d4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0d6d8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0d6dc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d6e0: 4e 80 00 20 blr <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc0d6e4: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc0d6e8: 38 60 00 00 li r3,0 <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } ffc0d6ec: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc0d6f0: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc0d6f4: 90 06 00 18 stw r0,24(r6) <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } ffc0d6f8: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0d6fc: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0d700: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d704: 4e 80 00 20 blr <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); ffc0d708: 7f e3 00 d0 neg r31,r3 <== NOT EXECUTED ffc0d70c: 48 00 5c 6d bl ffc13378 <__errno> <== NOT EXECUTED ffc0d710: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0d714: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0d718: 4b ff ff 7c b ffc0d694 <== NOT EXECUTED ffc0d5f4 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc0d5f4: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc0d5f8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0d5fc: 7c 68 1b 78 mr r8,r3 <== NOT EXECUTED ffc0d600: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0d604: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); ffc0d608: 81 23 00 3c lwz r9,60(r3) <== NOT EXECUTED ffc0d60c: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc0d610: 48 00 30 2d bl ffc1063c <== NOT EXECUTED ffc0d614: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0d618: 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); ffc0d61c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0d620: 7c 6a 1b 78 mr r10,r3 <== NOT EXECUTED IMFS_FIFO_RETURN(err); ffc0d624: 41 9c 00 20 blt- cr7,ffc0d644 <== NOT EXECUTED } ffc0d628: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc0d62c: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED ffc0d630: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc0d634: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc0d638: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d63c: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0d640: 4e 80 00 20 blr <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); ffc0d644: 48 00 5d 35 bl ffc13378 <__errno> <== NOT EXECUTED ffc0d648: 7f ff 00 d0 neg r31,r31 <== NOT EXECUTED ffc0d64c: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc0d650: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc0d654: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc0d658: 4b ff ff d0 b ffc0d628 <== NOT EXECUTED ffc0d8a8 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0d8a8: 94 21 ff f0 stwu r1,-16(r1) ffc0d8ac: 7c 08 02 a6 mflr r0 ffc0d8b0: 7c 64 1b 78 mr r4,r3 ffc0d8b4: 90 01 00 14 stw r0,20(r1) IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); ffc0d8b8: 81 23 00 3c lwz r9,60(r3) rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc0d8bc: 93 e1 00 0c stw r31,12(r1) IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); ffc0d8c0: 38 69 00 50 addi r3,r9,80 ffc0d8c4: 48 00 35 0d bl ffc10dd0 <== ALWAYS TAKEN IMFS_FIFO_RETURN(err); ffc0d8c8: 7c 7f 1b 79 mr. r31,r3 ffc0d8cc: 41 80 00 1c blt- ffc0d8e8 <== ALWAYS TAKEN } ffc0d8d0: 80 01 00 14 lwz r0,20(r1) ffc0d8d4: 7f e3 fb 78 mr r3,r31 ffc0d8d8: 83 e1 00 0c lwz r31,12(r1) ffc0d8dc: 38 21 00 10 addi r1,r1,16 ffc0d8e0: 7c 08 03 a6 mtlr r0 ffc0d8e4: 4e 80 00 20 blr <== ALWAYS TAKEN ) { IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); IMFS_FIFO_RETURN(err); ffc0d8e8: 7f ff 00 d0 neg r31,r31 ffc0d8ec: 48 00 5a 8d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0d8f0: 93 e3 00 00 stw r31,0(r3) ffc0d8f4: 3b e0 ff ff li r31,-1 ffc0d8f8: 4b ff ff d8 b ffc0d8d0 <== ALWAYS TAKEN ffc0d794 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc0d794: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0d798: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0d79c: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0d7a0: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0d7a4: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0d7a8: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0d7ac: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); ffc0d7b0: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0d7b4: 48 00 2f 99 bl ffc1074c <== NOT EXECUTED if (err > 0) ffc0d7b8: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0d7bc: 40 81 00 34 ble- ffc0d7f0 <== NOT EXECUTED IMFS_update_atime(jnode); ffc0d7c0: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0d7c4: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0d7c8: 48 00 09 d5 bl ffc0e19c <== NOT EXECUTED ffc0d7cc: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0d7d0: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED IMFS_FIFO_RETURN(err); } ffc0d7d4: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0d7d8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0d7dc: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0d7e0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d7e4: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0d7e8: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0d7ec: 4e 80 00 20 blr <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); ffc0d7f0: 41 82 ff e4 beq+ ffc0d7d4 <== NOT EXECUTED ffc0d7f4: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0d7f8: 48 00 5b 81 bl ffc13378 <__errno> <== NOT EXECUTED ffc0d7fc: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0d800: 3b c0 ff ff li r30,-1 <== NOT EXECUTED ffc0d804: 4b ff ff d0 b ffc0d7d4 <== NOT EXECUTED ffc0d71c : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc0d71c: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc0d720: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0d724: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc0d728: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc0d72c: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc0d730: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; ffc0d734: 83 e3 00 3c lwz r31,60(r3) <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); ffc0d738: 80 7f 00 50 lwz r3,80(r31) <== NOT EXECUTED ffc0d73c: 48 00 32 65 bl ffc109a0 <== NOT EXECUTED if (err > 0) { ffc0d740: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc0d744: 40 81 00 38 ble- ffc0d77c <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); ffc0d748: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0d74c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0d750: 48 00 0a 4d bl ffc0e19c <== NOT EXECUTED ffc0d754: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc0d758: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED ffc0d75c: 90 1f 00 44 stw r0,68(r31) <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } ffc0d760: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0d764: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0d768: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0d76c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0d770: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc0d774: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0d778: 4e 80 00 20 blr <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) { IMFS_mtime_ctime_update(jnode); } IMFS_FIFO_RETURN(err); ffc0d77c: 41 82 ff e4 beq+ ffc0d760 <== NOT EXECUTED ffc0d780: 7f de 00 d0 neg r30,r30 <== NOT EXECUTED ffc0d784: 48 00 5b f5 bl ffc13378 <__errno> <== NOT EXECUTED ffc0d788: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED ffc0d78c: 3b c0 ff ff li r30,-1 <== NOT EXECUTED ffc0d790: 4b ff ff d0 b ffc0d760 <== NOT EXECUTED ffc0d8fc : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0d8fc: 94 21 ff e8 stwu r1,-24(r1) ffc0d900: 7c 08 02 a6 mflr r0 ffc0d904: 93 c1 00 10 stw r30,16(r1) /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); ffc0d908: 7c 7e 1b 79 mr. r30,r3 <== ALWAYS TAKEN IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { ffc0d90c: 93 e1 00 14 stw r31,20(r1) ffc0d910: 7c 9f 23 78 mr r31,r4 ffc0d914: 90 01 00 1c stw r0,28(r1) ffc0d918: 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 ); ffc0d91c: 41 82 00 c0 beq- ffc0d9dc <== NEVER TAKEN if ( !name ) ffc0d920: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d924: 41 9e 00 58 beq- cr7,ffc0d97c <== NEVER TAKEN /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) ffc0d928: 3f a0 ff c2 lis r29,-62 ffc0d92c: 3b bd f8 c4 addi r29,r29,-1852 ffc0d930: 7c 83 23 78 mr r3,r4 ffc0d934: 38 9d 00 18 addi r4,r29,24 ffc0d938: 48 00 6c 1d bl ffc14554 <== ALWAYS TAKEN ffc0d93c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d940: 41 9e 00 1c beq- cr7,ffc0d95c <== NEVER TAKEN return directory; if ( !strcmp( name, dotdotname ) ) ffc0d944: 38 9d 00 1c addi r4,r29,28 ffc0d948: 7f e3 fb 78 mr r3,r31 ffc0d94c: 48 00 6c 09 bl ffc14554 <== ALWAYS TAKEN ffc0d950: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d954: 40 9e 00 4c bne- cr7,ffc0d9a0 <== ALWAYS TAKEN return directory->Parent; ffc0d958: 83 de 00 08 lwz r30,8(r30) <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } ffc0d95c: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc0d960: 7f c3 f3 78 mr r3,r30 ffc0d964: 83 a1 00 0c lwz r29,12(r1) ffc0d968: 7c 08 03 a6 mtlr r0 ffc0d96c: 83 c1 00 10 lwz r30,16(r1) ffc0d970: 83 e1 00 14 lwz r31,20(r1) ffc0d974: 38 21 00 18 addi r1,r1,24 ffc0d978: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d97c: 80 01 00 1c lwz r0,28(r1) if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0d980: 3b c0 00 00 li r30,0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } ffc0d984: 7f c3 f3 78 mr r3,r30 ffc0d988: 83 a1 00 0c lwz r29,12(r1) ffc0d98c: 7c 08 03 a6 mtlr r0 ffc0d990: 83 c1 00 10 lwz r30,16(r1) <== ALWAYS TAKEN ffc0d994: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc0d998: 38 21 00 18 addi r1,r1,24 ffc0d99c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0d9a0: 83 be 00 50 lwz r29,80(r30) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0d9a4: 3b de 00 54 addi r30,r30,84 ffc0d9a8: 7f 9d f0 00 cmpw cr7,r29,r30 ffc0d9ac: 40 be 00 14 bne+ cr7,ffc0d9c0 ffc0d9b0: 4b ff ff cc b ffc0d97c <== ALWAYS TAKEN !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { ffc0d9b4: 83 bd 00 00 lwz r29,0(r29) if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; ffc0d9b8: 7f 9d f0 00 cmpw cr7,r29,r30 ffc0d9bc: 41 be ff c0 beq- cr7,ffc0d97c !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 ) ) ffc0d9c0: 7f e3 fb 78 mr r3,r31 ffc0d9c4: 38 9d 00 0c addi r4,r29,12 ffc0d9c8: 48 00 6b 8d bl ffc14554 <== ALWAYS TAKEN ffc0d9cc: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d9d0: 40 9e ff e4 bne+ cr7,ffc0d9b4 ffc0d9d4: 7f be eb 78 mr r30,r29 ffc0d9d8: 4b ff ff 84 b ffc0d95c <== ALWAYS TAKEN /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); ffc0d9dc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc0d9e0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc0d9e4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc0d9e8: 38 63 f8 e4 addi r3,r3,-1820 <== NOT EXECUTED ffc0d9ec: 38 a5 f8 c4 addi r5,r5,-1852 <== NOT EXECUTED ffc0d9f0: 38 c6 f9 30 addi r6,r6,-1744 <== NOT EXECUTED ffc0d9f4: 38 80 00 2a li r4,42 <== NOT EXECUTED ffc0d9f8: 4b ff 65 89 bl ffc03f80 <__assert_func> <== NOT EXECUTED ffc13e70 : int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ) { return 0; } ffc13e70: 38 60 00 00 li r3,0 ffc13e74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc13e78 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc13e78: 94 21 ff c8 stwu r1,-56(r1) ffc13e7c: 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; ffc13e80: 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 ) { ffc13e84: 90 01 00 3c stw r0,60(r1) ffc13e88: 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; ffc13e8c: 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; ffc13e90: 83 a3 00 1c lwz r29,28(r3) loc = temp_mt_entry->mt_fs_root; ffc13e94: 81 63 00 24 lwz r11,36(r3) ffc13e98: 81 23 00 28 lwz r9,40(r3) ffc13e9c: 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; ffc13ea0: 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 ) { ffc13ea4: 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; ffc13ea8: 91 41 00 0c stw r10,12(r1) ffc13eac: 91 61 00 10 stw r11,16(r1) ffc13eb0: 91 21 00 14 stw r9,20(r1) ffc13eb4: 90 01 00 18 stw r0,24(r1) ffc13eb8: 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 ) { ffc13ebc: 93 e1 00 34 stw r31,52(r1) ffc13ec0: 3b e1 00 08 addi r31,r1,8 temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); ffc13ec4: 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; ffc13ec8: 93 a1 00 08 stw r29,8(r1) */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; ffc13ecc: 83 dd 00 08 lwz r30,8(r29) loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); ffc13ed0: 4b ff f2 79 bl ffc13148 <== ALWAYS TAKEN if ( jnode->type != IMFS_DIRECTORY ) { ffc13ed4: 80 1d 00 4c lwz r0,76(r29) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc13ed8: 39 3d 00 54 addi r9,r29,84 ffc13edc: 2f 80 00 01 cmpwi cr7,r0,1 ffc13ee0: 40 9e 00 60 bne- cr7,ffc13f40 ffc13ee4: 80 1d 00 50 lwz r0,80(r29) ffc13ee8: 7f 80 48 00 cmpw cr7,r0,r9 ffc13eec: 41 9e 00 54 beq- cr7,ffc13f40 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { ffc13ef0: 2f 9d 00 00 cmpwi cr7,r29,0 ffc13ef4: 41 9e 00 2c beq- cr7,ffc13f20 if ( jnode->type == IMFS_DIRECTORY ) { ffc13ef8: 80 1d 00 4c lwz r0,76(r29) ffc13efc: 2f 80 00 01 cmpwi cr7,r0,1 ffc13f00: 40 9e ff c4 bne+ cr7,ffc13ec4 <== NEVER TAKEN ffc13f04: 80 1d 00 50 lwz r0,80(r29) ffc13f08: 39 3d 00 54 addi r9,r29,84 ffc13f0c: 7f 80 48 00 cmpw cr7,r0,r9 ffc13f10: 41 be ff b4 beq- cr7,ffc13ec4 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); ffc13f14: 2f 80 00 00 cmpwi cr7,r0,0 ffc13f18: 7c 1d 03 78 mr r29,r0 ffc13f1c: 40 9e ff a8 bne+ cr7,ffc13ec4 <== ALWAYS TAKEN ffc13f20: 38 60 00 00 li r3,0 return 0; } ffc13f24: 80 01 00 3c lwz r0,60(r1) ffc13f28: 83 a1 00 2c lwz r29,44(r1) ffc13f2c: 7c 08 03 a6 mtlr r0 ffc13f30: 83 c1 00 30 lwz r30,48(r1) ffc13f34: 83 e1 00 34 lwz r31,52(r1) ffc13f38: 38 21 00 38 addi r1,r1,56 ffc13f3c: 4e 80 00 20 blr <== ALWAYS TAKEN result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); ffc13f40: 38 60 00 00 li r3,0 ffc13f44: 7f e4 fb 78 mr r4,r31 ffc13f48: 4b ff 16 b9 bl ffc05600 <== ALWAYS TAKEN if (result != 0) ffc13f4c: 2f 83 00 00 cmpwi cr7,r3,0 ffc13f50: 40 9e 00 0c bne- cr7,ffc13f5c <== NEVER TAKEN ffc13f54: 7f dd f3 78 mr r29,r30 ffc13f58: 4b ff ff 98 b ffc13ef0 <== ALWAYS TAKEN if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); ffc13f5c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc13f60: 4b ff ff c4 b ffc13f24 <== NOT EXECUTED ffc0d9fc : const char *path, int pathlen, char *token, int *token_len ) { ffc0d9fc: 94 21 ff f0 stwu r1,-16(r1) ffc0da00: 7c 08 02 a6 mflr r0 ffc0da04: 2f 84 00 00 cmpwi cr7,r4,0 ffc0da08: 90 01 00 14 stw r0,20(r1) register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; ffc0da0c: 88 03 00 00 lbz r0,0(r3) while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { ffc0da10: 2f 00 00 2f cmpwi cr6,r0,47 <== ALWAYS TAKEN ffc0da14: 41 9a 00 e4 beq- cr6,ffc0daf8 ffc0da18: 2f 00 00 5c cmpwi cr6,r0,92 ffc0da1c: 41 9a 00 dc beq- cr6,ffc0daf8 ffc0da20: 2f 80 00 00 cmpwi cr7,r0,0 ffc0da24: 41 9e 00 f8 beq- cr7,ffc0db1c ffc0da28: 2f 84 00 00 cmpwi cr7,r4,0 ffc0da2c: 40 9d 00 cc ble- cr7,ffc0daf8 <== NEVER TAKEN token[i] = c; ffc0da30: 98 05 00 00 stb r0,0(r5) ffc0da34: 38 00 00 20 li r0,32 ffc0da38: 7c 09 03 a6 mtctr r0 ffc0da3c: 39 20 00 00 li r9,0 <== ALWAYS TAKEN return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; ffc0da40: 39 29 00 01 addi r9,r9,1 <== ALWAYS TAKEN ffc0da44: 7c 03 48 ae lbzx r0,r3,r9 /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { ffc0da48: 7c 04 48 00 cmpw r4,r9 <== ALWAYS TAKEN ffc0da4c: 2f 80 00 2f cmpwi cr7,r0,47 ffc0da50: 2f 00 00 5c cmpwi cr6,r0,92 ffc0da54: 2c 80 00 00 cmpwi cr1,r0,0 ffc0da58: 41 9e 00 2c beq- cr7,ffc0da84 ffc0da5c: 41 9a 00 28 beq- cr6,ffc0da84 ffc0da60: 41 86 00 24 beq- cr1,ffc0da84 ffc0da64: 40 81 00 20 ble- ffc0da84 token[i] = c; ffc0da68: 7c 05 49 ae stbx r0,r5,r9 if ( i == IMFS_NAME_MAX ) ffc0da6c: 42 00 ff d4 bdnz+ ffc0da40 ffc0da70: 38 60 00 04 li r3,4 else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } ffc0da74: 80 01 00 14 lwz r0,20(r1) ffc0da78: 38 21 00 10 addi r1,r1,16 ffc0da7c: 7c 08 03 a6 mtlr r0 ffc0da80: 4e 80 00 20 blr <== ALWAYS TAKEN i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { ffc0da84: 7d 65 4a 14 add r11,r5,r9 ffc0da88: 88 0b ff ff lbz r0,-1(r11) ffc0da8c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0da90: 41 9e 00 0c beq- cr7,ffc0da9c <== NEVER TAKEN token[i] = '\0'; ffc0da94: 38 00 00 00 li r0,0 ffc0da98: 7c 05 49 ae stbx r0,r5,r9 /* * Set token_len to the number of characters copied. */ *token_len = i; ffc0da9c: 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 ) { if ( strcmp( token, "..") == 0 ) ffc0daa0: 3c 80 ff c2 lis r4,-62 ffc0daa4: 7c a3 2b 78 mr r3,r5 <== ALWAYS TAKEN ffc0daa8: 38 84 f9 40 addi r4,r4,-1728 ffc0daac: 90 a1 00 08 stw r5,8(r1) ffc0dab0: 48 00 6a a5 bl ffc14554 <== ALWAYS TAKEN ffc0dab4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0dab8: 80 a1 00 08 lwz r5,8(r1) ffc0dabc: 38 60 00 02 li r3,2 ffc0dac0: 41 be ff b4 beq- cr7,ffc0da74 type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) ffc0dac4: 3c 80 ff c2 lis r4,-62 ffc0dac8: 7c a3 2b 78 mr r3,r5 <== ALWAYS TAKEN ffc0dacc: 38 84 f9 3c addi r4,r4,-1732 ffc0dad0: 48 00 6a 85 bl ffc14554 <== ALWAYS TAKEN ffc0dad4: 7c 60 fe 70 srawi r0,r3,31 ffc0dad8: 7c 03 1a 78 xor r3,r0,r3 ffc0dadc: 7c 63 00 50 subf r3,r3,r0 type = IMFS_CURRENT_DIR; } return type; } ffc0dae0: 80 01 00 14 lwz r0,20(r1) */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) ffc0dae4: 54 63 17 bc rlwinm r3,r3,2,30,30 <== ALWAYS TAKEN type = IMFS_CURRENT_DIR; } return type; } ffc0dae8: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) ffc0daec: 38 63 00 01 addi r3,r3,1 type = IMFS_CURRENT_DIR; } return type; } ffc0daf0: 38 21 00 10 addi r1,r1,16 ffc0daf4: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; ffc0daf8: 98 05 00 00 stb r0,0(r5) <== ALWAYS TAKEN if ( (token[i] != '\0') && pathlen ) { ffc0dafc: 41 9e 00 24 beq- cr7,ffc0db20 type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; ffc0db00: 38 00 00 01 li r0,1 <== ALWAYS TAKEN /* * Set token_len to the number of characters copied. */ *token_len = i; ffc0db04: 90 06 00 00 stw r0,0(r6) type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { token[i] = '\0'; ffc0db08: 38 60 00 01 li r3,1 else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } ffc0db0c: 80 01 00 14 lwz r0,20(r1) ffc0db10: 38 21 00 10 addi r1,r1,16 ffc0db14: 7c 08 03 a6 mtlr r0 ffc0db18: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; ffc0db1c: 98 05 00 00 stb r0,0(r5) ffc0db20: 38 00 00 00 li r0,0 ffc0db24: 38 60 00 00 li r3,0 <== ALWAYS TAKEN /* * Set token_len to the number of characters copied. */ *token_len = i; ffc0db28: 90 06 00 00 stw r0,0(r6) <== ALWAYS TAKEN ffc0db2c: 4b ff ff e0 b ffc0db0c <== ALWAYS TAKEN ffc050a4 : */ int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc050a4: 94 21 ff f8 stwu r1,-8(r1) ffc050a8: 7c 08 02 a6 mflr r0 return IMFS_initialize_support( ffc050ac: 3c 80 ff c2 lis r4,-62 ffc050b0: 3c a0 ff c2 lis r5,-62 */ int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc050b4: 90 01 00 0c stw r0,12(r1) return IMFS_initialize_support( ffc050b8: 3c c0 ff c2 lis r6,-62 ffc050bc: 38 84 67 e8 addi r4,r4,26600 ffc050c0: 38 a5 6c 54 addi r5,r5,27732 ffc050c4: 38 c6 6b e4 addi r6,r6,27620 ffc050c8: 48 00 00 15 bl ffc050dc <== ALWAYS TAKEN temp_mt_entry, &IMFS_ops, &IMFS_memfile_handlers, &IMFS_directory_handlers ); } ffc050cc: 80 01 00 0c lwz r0,12(r1) ffc050d0: 38 21 00 08 addi r1,r1,8 ffc050d4: 7c 08 03 a6 mtlr r0 ffc050d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0db30 : 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 ) { ffc0db30: 94 21 ff e8 stwu r1,-24(r1) ffc0db34: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, ffc0db38: 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 ) { ffc0db3c: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, ffc0db40: 80 09 26 90 lwz r0,9872(r9) rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { ffc0db44: 93 81 00 08 stw r28,8(r1) ffc0db48: 7c 9c 23 78 mr r28,r4 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { ffc0db4c: 2f 80 00 10 cmpwi cr7,r0,16 rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { ffc0db50: 93 a1 00 0c stw r29,12(r1) ffc0db54: 7c dd 33 78 mr r29,r6 ffc0db58: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc0db5c: 7c be 2b 78 mr r30,r5 ffc0db60: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN ffc0db64: 7c 7f 1b 78 mr r31,r3 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { ffc0db68: 41 9e 00 24 beq- cr7,ffc0db8c <== NEVER TAKEN ffc0db6c: 39 60 00 05 li r11,5 ffc0db70: 7d 69 03 a6 mtctr r11 ffc0db74: 39 20 00 20 li r9,32 <== ALWAYS TAKEN ffc0db78: 7f 80 48 00 cmpw cr7,r0,r9 ffc0db7c: 55 29 08 3c rlwinm r9,r9,1,0,30 <== ALWAYS TAKEN ffc0db80: 41 9e 00 0c beq- cr7,ffc0db8c ffc0db84: 42 00 ff f4 bdnz+ ffc0db78 <== ALWAYS TAKEN ffc0db88: 38 00 00 80 li r0,128 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) ffc0db8c: 3d 20 00 00 lis r9,0 ffc0db90: 90 09 27 e0 stw r0,10208(r9) /* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); ffc0db94: 48 00 37 21 bl ffc112b4 <== 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; ffc0db98: 3c 80 ff c2 lis r4,-62 <== 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(); ffc0db9c: 90 7f 00 1c stw r3,28(r31) <== 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; ffc0dba0: 38 84 fc 6c addi r4,r4,-916 ffc0dba4: 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; ffc0dba8: 93 9f 00 28 stw r28,40(r31) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; ffc0dbac: 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; ffc0dbb0: 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; ffc0dbb4: 48 00 63 ad bl ffc13f60 <== ALWAYS TAKEN /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); ffc0dbb8: 38 60 00 01 li r3,1 ffc0dbbc: 38 80 00 0c li r4,12 ffc0dbc0: 48 00 03 4d bl ffc0df0c <== ALWAYS TAKEN if ( !fs_info ) { ffc0dbc4: 2c 03 00 00 cmpwi r3,0 ffc0dbc8: 41 82 00 48 beq- ffc0dc10 <== NEVER TAKEN 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; ffc0dbcc: 81 3f 00 1c lwz r9,28(r31) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; ffc0dbd0: 38 00 00 01 li r0,1 ffc0dbd4: 90 03 00 00 stw r0,0(r3) <== ALWAYS TAKEN fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; ffc0dbd8: 93 a3 00 08 stw r29,8(r3) <== ALWAYS TAKEN /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; ffc0dbdc: 93 c3 00 04 stw r30,4(r3) fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); rtems_set_errno_and_return_minus_one(ENOMEM); } temp_mt_entry->fs_info = fs_info; ffc0dbe0: 90 7f 00 34 stw r3,52(r31) <== ALWAYS TAKEN 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; ffc0dbe4: 90 09 00 38 stw r0,56(r9) /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); ffc0dbe8: 48 00 2a 5d bl ffc10644 <== ALWAYS TAKEN ffc0dbec: 38 60 00 00 li r3,0 return 0; } ffc0dbf0: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc0dbf4: 83 81 00 08 lwz r28,8(r1) ffc0dbf8: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0dbfc: 83 a1 00 0c lwz r29,12(r1) ffc0dc00: 83 c1 00 10 lwz r30,16(r1) <== ALWAYS TAKEN ffc0dc04: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc0dc08: 38 21 00 18 addi r1,r1,24 ffc0dc0c: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); ffc0dc10: 80 7f 00 1c lwz r3,28(r31) <== NOT EXECUTED ffc0dc14: 4b ff 68 55 bl ffc04468 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc0dc18: 48 00 57 61 bl ffc13378 <__errno> <== NOT EXECUTED ffc0dc1c: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0dc20: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0dc24: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0dc28: 4b ff ff c8 b ffc0dbf0 <== NOT EXECUTED ffc051d8 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { ffc051d8: 94 21 ff 98 stwu r1,-104(r1) ffc051dc: 7c 08 02 a6 mflr r0 ffc051e0: 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; ffc051e4: 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 */ ) { ffc051e8: 93 a1 00 5c stw r29,92(r1) ffc051ec: 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; ffc051f0: 91 21 00 18 stw r9,24(r1) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) ffc051f4: 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 */ ) { ffc051f8: 93 c1 00 60 stw r30,96(r1) ffc051fc: 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 ) ffc05200: 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 */ ) { ffc05204: 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 ) ffc05208: 41 9d 00 90 bgt- cr7,ffc05298 rtems_set_errno_and_return_minus_one( EMLINK ); /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); ffc0520c: 7c a3 2b 78 mr r3,r5 ffc05210: 48 01 5f f9 bl ffc1b208 <== ALWAYS TAKEN ffc05214: 3b e1 00 30 addi r31,r1,48 ffc05218: 7c 64 1b 78 mr r4,r3 ffc0521c: 7f e5 fb 78 mr r5,r31 ffc05220: 38 c1 00 08 addi r6,r1,8 ffc05224: 7f a3 eb 78 mr r3,r29 ffc05228: 48 00 ee 3d bl ffc14064 <== 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( ffc0522c: 38 c0 00 00 li r6,0 ffc05230: 7f c3 f3 78 mr r3,r30 ffc05234: 7f e5 fb 78 mr r5,r31 ffc05238: 60 c6 a1 ff ori r6,r6,41471 ffc0523c: 38 80 00 03 li r4,3 ffc05240: 38 e1 00 18 addi r7,r1,24 ffc05244: 48 00 dd 81 bl ffc12fc4 <== ALWAYS TAKEN new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) ffc05248: 2f 83 00 00 cmpwi cr7,r3,0 ffc0524c: 41 9e 00 60 beq- cr7,ffc052ac <== NEVER TAKEN 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++; ffc05250: 81 21 00 18 lwz r9,24(r1) IMFS_update_ctime( info.hard_link.link_node ); ffc05254: 38 61 00 0c addi r3,r1,12 ffc05258: 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++; ffc0525c: a1 69 00 34 lhz r11,52(r9) ffc05260: 38 0b 00 01 addi r0,r11,1 ffc05264: b0 09 00 34 sth r0,52(r9) IMFS_update_ctime( info.hard_link.link_node ); ffc05268: 48 00 0d 29 bl ffc05f90 <== ALWAYS TAKEN ffc0526c: 80 01 00 0c lwz r0,12(r1) ffc05270: 81 21 00 18 lwz r9,24(r1) ffc05274: 38 60 00 00 li r3,0 ffc05278: 90 09 00 48 stw r0,72(r9) return 0; } ffc0527c: 80 01 00 6c lwz r0,108(r1) ffc05280: 83 a1 00 5c lwz r29,92(r1) ffc05284: 7c 08 03 a6 mtlr r0 ffc05288: 83 c1 00 60 lwz r30,96(r1) ffc0528c: 83 e1 00 64 lwz r31,100(r1) ffc05290: 38 21 00 68 addi r1,r1,104 ffc05294: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) rtems_set_errno_and_return_minus_one( EMLINK ); ffc05298: 48 01 4c b1 bl ffc19f48 <__errno> <== ALWAYS TAKEN ffc0529c: 38 00 00 1f li r0,31 ffc052a0: 90 03 00 00 stw r0,0(r3) ffc052a4: 38 60 ff ff li r3,-1 ffc052a8: 4b ff ff d4 b ffc0527c <== ALWAYS TAKEN ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); ffc052ac: 48 01 4c 9d bl ffc19f48 <__errno> <== NOT EXECUTED ffc052b0: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc052b4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc052b8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc052bc: 4b ff ff c0 b ffc0527c <== NOT EXECUTED ffc17734 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc17734: 7c 69 1b 79 mr. r9,r3 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc17738: 94 21 ff f0 stwu r1,-16(r1) ffc1773c: 7c 08 02 a6 mflr r0 ffc17740: 93 e1 00 0c stw r31,12(r1) ffc17744: 90 01 00 14 stw r0,20(r1) block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc17748: 41 82 00 5c beq- ffc177a4 <== NEVER TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc1774c: 80 09 00 4c lwz r0,76(r9) ffc17750: 2f 80 00 05 cmpwi cr7,r0,5 ffc17754: 40 9e 00 74 bne- cr7,ffc177c8 <== NEVER TAKEN 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 ); ffc17758: 38 a0 00 01 li r5,1 ffc1775c: 4b ff f8 e1 bl ffc1703c <== ALWAYS TAKEN if ( *block_entry_ptr ) ffc17760: 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 ); ffc17764: 7c 7f 1b 78 mr r31,r3 if ( *block_entry_ptr ) ffc17768: 38 60 00 00 li r3,0 ffc1776c: 2f 80 00 00 cmpwi cr7,r0,0 ffc17770: 41 9e 00 18 beq- cr7,ffc17788 if ( !memory ) return 1; *block_entry_ptr = memory; return 0; } ffc17774: 80 01 00 14 lwz r0,20(r1) ffc17778: 83 e1 00 0c lwz r31,12(r1) ffc1777c: 38 21 00 10 addi r1,r1,16 ffc17780: 7c 08 03 a6 mtlr r0 ffc17784: 4e 80 00 20 blr <== ALWAYS TAKEN #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); ffc17788: 4b ff f8 71 bl ffc16ff8 <== ALWAYS TAKEN if ( !memory ) ffc1778c: 7c 60 1b 79 mr. r0,r3 ffc17790: 38 60 00 01 li r3,1 ffc17794: 41 a2 ff e0 beq- ffc17774 <== NEVER TAKEN return 1; *block_entry_ptr = memory; ffc17798: 90 1f 00 00 stw r0,0(r31) ffc1779c: 38 60 00 00 li r3,0 return 0; ffc177a0: 4b ff ff d4 b ffc17774 <== ALWAYS TAKEN ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); ffc177a4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc177a8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc177ac: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc177b0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc177b4: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc177b8: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc177bc: 38 c6 70 18 addi r6,r6,28696 <== NOT EXECUTED ffc177c0: 38 80 01 69 li r4,361 <== NOT EXECUTED ffc177c4: 4b fe e1 a5 bl ffc05968 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc177c8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc177cc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc177d0: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc177d4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc177d8: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc177dc: 38 a5 00 70 addi r5,r5,112 <== NOT EXECUTED ffc177e0: 38 c6 70 24 addi r6,r6,28708 <== NOT EXECUTED ffc177e4: 38 80 01 6d li r4,365 <== NOT EXECUTED ffc177e8: 4b fe e1 81 bl ffc05968 <__assert_func> <== NOT EXECUTED ffc177ec : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc177ec: 94 21 ff d8 stwu r1,-40(r1) ffc177f0: 7c 08 02 a6 mflr r0 ffc177f4: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc177f8: 7c 7f 1b 79 mr. r31,r3 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { ffc177fc: 93 41 00 10 stw r26,16(r1) ffc17800: 7c da 33 78 mr r26,r6 ffc17804: 93 81 00 18 stw r28,24(r1) ffc17808: 7c bc 2b 78 mr r28,r5 ffc1780c: 90 01 00 2c stw r0,44(r1) ffc17810: 93 01 00 08 stw r24,8(r1) ffc17814: 93 21 00 0c stw r25,12(r1) ffc17818: 93 61 00 14 stw r27,20(r1) ffc1781c: 93 a1 00 1c stw r29,28(r1) ffc17820: 93 c1 00 20 stw r30,32(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17824: 41 82 01 d4 beq- ffc179f8 <== NEVER TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17828: 80 1f 00 4c lwz r0,76(r31) ffc1782c: 2f 80 00 05 cmpwi cr7,r0,5 ffc17830: 40 9e 01 a4 bne- cr7,ffc179d4 <== NEVER TAKEN if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) ffc17834: 3d 20 00 00 lis r9,0 ffc17838: 83 a9 27 68 lwz r29,10088(r9) ffc1783c: 38 00 00 00 li r0,0 ffc17840: 7f 80 28 00 cmpw cr7,r0,r5 ffc17844: 57 a9 f0 be rlwinm r9,r29,30,2,31 ffc17848: 39 69 00 01 addi r11,r9,1 ffc1784c: 7d 6b 49 d6 mullw r11,r11,r9 ffc17850: 38 0b 00 01 addi r0,r11,1 ffc17854: 7d 20 49 d6 mullw r9,r0,r9 ffc17858: 39 29 ff ff addi r9,r9,-1 ffc1785c: 7d 29 e9 d6 mullw r9,r9,r29 ffc17860: 41 9d 00 24 bgt- cr7,ffc17884 <== NEVER TAKEN ffc17864: 41 9e 00 18 beq- cr7,ffc1787c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc17868: 48 00 26 e1 bl ffc19f48 <__errno> <== NOT EXECUTED ffc1786c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc17870: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17874: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc17878: 48 00 00 e4 b ffc1795c <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) ffc1787c: 7f 89 30 40 cmplw cr7,r9,r6 ffc17880: 40 bd ff e8 ble- cr7,ffc17868 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) ffc17884: 83 7f 00 50 lwz r27,80(r31) ffc17888: 83 1f 00 54 lwz r24,84(r31) ffc1788c: 7f 9c d8 00 cmpw cr7,r28,r27 ffc17890: 40 9d 00 c4 ble- cr7,ffc17954 <== ALWAYS TAKEN /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17894: 7f b9 fe 70 srawi r25,r29,31 ffc17898: 7f 25 cb 78 mr r5,r25 ffc1789c: 7f a6 eb 78 mr r6,r29 ffc178a0: 7f 83 e3 78 mr r3,r28 ffc178a4: 7f 44 d3 78 mr r4,r26 ffc178a8: 48 00 c5 45 bl ffc23dec <__divdi3> <== ALWAYS TAKEN old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc178ac: 7f 63 db 78 mr r3,r27 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc178b0: 7c 9e 23 78 mr r30,r4 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc178b4: 7f 25 cb 78 mr r5,r25 ffc178b8: 7f 04 c3 78 mr r4,r24 ffc178bc: 7f a6 eb 78 mr r6,r29 ffc178c0: 48 00 c5 2d bl ffc23dec <__divdi3> <== ALWAYS TAKEN /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc178c4: 7f 9e 20 40 cmplw cr7,r30,r4 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc178c8: 7c 9b 23 78 mr r27,r4 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { ffc178cc: 41 9c 00 c0 blt- cr7,ffc1798c <== NEVER TAKEN ffc178d0: 7c 9d 23 78 mr r29,r4 ffc178d4: 48 00 00 10 b ffc178e4 <== ALWAYS TAKEN ffc178d8: 3b bd 00 01 addi r29,r29,1 ffc178dc: 7f 9e e8 40 cmplw cr7,r30,r29 ffc178e0: 41 9c 00 ac blt- cr7,ffc1798c if ( IMFS_memfile_addblock( the_jnode, block ) ) { ffc178e4: 7f e3 fb 78 mr r3,r31 ffc178e8: 7f a4 eb 78 mr r4,r29 ffc178ec: 4b ff fe 49 bl ffc17734 <== ALWAYS TAKEN ffc178f0: 2f 83 00 00 cmpwi cr7,r3,0 ffc178f4: 41 9e ff e4 beq+ cr7,ffc178d8 <== ALWAYS TAKEN ffc178f8: 48 00 00 14 b ffc1790c <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); ffc178fc: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED ffc17900: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { if ( IMFS_memfile_addblock( the_jnode, block ) ) { for ( ; block>=old_blocks ; block-- ) { ffc17904: 3b bd ff ff addi r29,r29,-1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); ffc17908: 4b ff fa 95 bl ffc1739c <== 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-- ) { ffc1790c: 7f 9b e8 40 cmplw cr7,r27,r29 <== NOT EXECUTED ffc17910: 40 9d ff ec ble+ cr7,ffc178fc <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); ffc17914: 48 00 26 35 bl ffc19f48 <__errno> <== NOT EXECUTED ffc17918: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc1791c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17920: 38 60 ff ff li r3,-1 <== NOT EXECUTED * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } ffc17924: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc17928: 83 01 00 08 lwz r24,8(r1) <== NOT EXECUTED ffc1792c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc17930: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc17934: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc17938: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc1793c: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc17940: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc17944: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc17948: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc1794c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc17950: 4e 80 00 20 blr <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) ffc17954: 41 9e 00 74 beq- cr7,ffc179c8 <== ALWAYS TAKEN ffc17958: 38 60 00 00 li r3,0 * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; } ffc1795c: 80 01 00 2c lwz r0,44(r1) ffc17960: 83 01 00 08 lwz r24,8(r1) ffc17964: 7c 08 03 a6 mtlr r0 ffc17968: 83 21 00 0c lwz r25,12(r1) ffc1796c: 83 41 00 10 lwz r26,16(r1) ffc17970: 83 61 00 14 lwz r27,20(r1) ffc17974: 83 81 00 18 lwz r28,24(r1) ffc17978: 83 a1 00 1c lwz r29,28(r1) ffc1797c: 83 c1 00 20 lwz r30,32(r1) ffc17980: 83 e1 00 24 lwz r31,36(r1) ffc17984: 38 21 00 28 addi r1,r1,40 ffc17988: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; ffc1798c: 93 5f 00 54 stw r26,84(r31) ffc17990: 38 60 00 00 li r3,0 ffc17994: 93 9f 00 50 stw r28,80(r31) return 0; } ffc17998: 80 01 00 2c lwz r0,44(r1) ffc1799c: 83 01 00 08 lwz r24,8(r1) ffc179a0: 7c 08 03 a6 mtlr r0 ffc179a4: 83 21 00 0c lwz r25,12(r1) ffc179a8: 83 41 00 10 lwz r26,16(r1) ffc179ac: 83 61 00 14 lwz r27,20(r1) ffc179b0: 83 81 00 18 lwz r28,24(r1) ffc179b4: 83 a1 00 1c lwz r29,28(r1) ffc179b8: 83 c1 00 20 lwz r30,32(r1) ffc179bc: 83 e1 00 24 lwz r31,36(r1) ffc179c0: 38 21 00 28 addi r1,r1,40 ffc179c4: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) ffc179c8: 7f 9a c0 40 cmplw cr7,r26,r24 ffc179cc: 41 bd fe c8 bgt- cr7,ffc17894 ffc179d0: 4b ff ff 88 b ffc17958 <== ALWAYS TAKEN assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc179d4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc179d8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc179dc: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc179e0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc179e4: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc179e8: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc179ec: 38 c6 70 24 addi r6,r6,28708 <== NOT EXECUTED ffc179f0: 38 80 01 35 li r4,309 <== NOT EXECUTED ffc179f4: 4b fe df 75 bl ffc05968 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); ffc179f8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc179fc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17a00: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17a04: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17a08: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc17a0c: 38 a5 00 88 addi r5,r5,136 <== NOT EXECUTED ffc17a10: 38 c6 70 18 addi r6,r6,28696 <== NOT EXECUTED ffc17a14: 38 80 01 31 li r4,305 <== NOT EXECUTED ffc17a18: 4b fe df 51 bl ffc05968 <__assert_func> <== NOT EXECUTED ffc1703c : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc1703c: 94 21 ff e0 stwu r1,-32(r1) ffc17040: 7c 08 02 a6 mflr r0 ffc17044: 93 e1 00 1c stw r31,28(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17048: 7c 7f 1b 79 mr. r31,r3 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { ffc1704c: 90 01 00 24 stw r0,36(r1) ffc17050: 93 81 00 10 stw r28,16(r1) ffc17054: 93 a1 00 14 stw r29,20(r1) ffc17058: 93 c1 00 18 stw r30,24(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc1705c: 41 82 02 18 beq- ffc17274 <== NEVER TAKEN if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17060: 80 1f 00 4c lwz r0,76(r31) ffc17064: 2f 80 00 05 cmpwi cr7,r0,5 ffc17068: 40 9e 02 2c bne- cr7,ffc17294 <== NEVER TAKEN /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { ffc1706c: 3d 20 00 00 lis r9,0 ffc17070: 81 29 27 68 lwz r9,10088(r9) ffc17074: 55 29 f0 be rlwinm r9,r9,30,2,31 ffc17078: 38 09 ff ff addi r0,r9,-1 ffc1707c: 7f 84 00 40 cmplw cr7,r4,r0 ffc17080: 40 9d 00 78 ble- cr7,ffc170f8 <== ALWAYS TAKEN /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { ffc17084: 39 69 00 01 addi r11,r9,1 <== NOT EXECUTED ffc17088: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED ffc1708c: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc17090: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc17094: 41 9d 00 a0 bgt- cr7,ffc17134 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; ffc17098: 7c 89 20 50 subf r4,r9,r4 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; ffc1709c: 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; ffc170a0: 7f c4 4b 96 divwu r30,r4,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc170a4: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; ffc170a8: 7f be 49 d6 mullw r29,r30,r9 <== NOT EXECUTED ffc170ac: 7f bd 20 50 subf r29,r29,r4 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; if ( malloc_it ) { ffc170b0: 41 9e 01 04 beq- cr7,ffc171b4 <== NOT EXECUTED if ( !p ) { ffc170b4: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc170b8: 41 9e 01 84 beq- cr7,ffc1723c <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; ffc170bc: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED ffc170c0: 7c 6b f0 2e lwzx r3,r11,r30 <== NOT EXECUTED ffc170c4: 7f cb f2 14 add r30,r11,r30 <== NOT EXECUTED if ( !p1 ) { ffc170c8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc170cc: 41 9e 01 5c beq- cr7,ffc17228 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc170d0: 57 bd 10 3a rlwinm r29,r29,2,0,29 <== NOT EXECUTED ffc170d4: 7c 63 ea 14 add r3,r3,r29 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc170d8: 80 01 00 24 lwz r0,36(r1) ffc170dc: 83 81 00 10 lwz r28,16(r1) ffc170e0: 7c 08 03 a6 mtlr r0 ffc170e4: 83 a1 00 14 lwz r29,20(r1) ffc170e8: 83 c1 00 18 lwz r30,24(r1) ffc170ec: 83 e1 00 1c lwz r31,28(r1) ffc170f0: 38 21 00 20 addi r1,r1,32 ffc170f4: 4e 80 00 20 blr <== ALWAYS TAKEN fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { ffc170f8: 2f 85 00 00 cmpwi cr7,r5,0 if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; ffc170fc: 80 7f 00 58 lwz r3,88(r31) if ( malloc_it ) { ffc17100: 41 9e 00 f8 beq- cr7,ffc171f8 if ( !p ) { ffc17104: 2f 83 00 00 cmpwi cr7,r3,0 ffc17108: 41 9e 01 04 beq- cr7,ffc1720c /* * This means the requested block number is out of range. */ return 0; } ffc1710c: 80 01 00 24 lwz r0,36(r1) p = memfile_alloc_block(); if ( !p ) return 0; info->indirect = p; } return &info->indirect[ my_block ]; ffc17110: 54 84 10 3a rlwinm r4,r4,2,0,29 ffc17114: 7c 63 22 14 add r3,r3,r4 /* * This means the requested block number is out of range. */ return 0; } ffc17118: 83 81 00 10 lwz r28,16(r1) ffc1711c: 7c 08 03 a6 mtlr r0 ffc17120: 83 a1 00 14 lwz r29,20(r1) ffc17124: 83 c1 00 18 lwz r30,24(r1) ffc17128: 83 e1 00 1c lwz r31,28(r1) ffc1712c: 38 21 00 20 addi r1,r1,32 ffc17130: 4e 80 00 20 blr <== ALWAYS TAKEN #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { ffc17134: 39 4b 00 01 addi r10,r11,1 <== NOT EXECUTED ffc17138: 7d 4a 49 d6 mullw r10,r10,r9 <== NOT EXECUTED ffc1713c: 38 0a ff ff addi r0,r10,-1 <== NOT EXECUTED ffc17140: 7f 84 00 40 cmplw cr7,r4,r0 <== NOT EXECUTED ffc17144: 41 9d 00 90 bgt- cr7,ffc171d4 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; ffc17148: 7d 6b 20 50 subf r11,r11,r4 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; ffc1714c: 81 5f 00 60 lwz r10,96(r31) <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; ffc17150: 7c 0b 4b 96 divwu r0,r11,r9 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; ffc17154: 7f c0 4b 96 divwu r30,r0,r9 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { ffc17158: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; ffc1715c: 7f 9e 49 d6 mullw r28,r30,r9 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; ffc17160: 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; ffc17164: 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; ffc17168: 7f a9 58 50 subf r29,r9,r11 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; if ( malloc_it ) { ffc1716c: 41 9e 00 e4 beq- cr7,ffc17250 <== NOT EXECUTED if ( !p ) { ffc17170: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED ffc17174: 41 9e 01 40 beq- cr7,ffc172b4 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; ffc17178: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED ffc1717c: 7d 2a f0 2e lwzx r9,r10,r30 <== NOT EXECUTED ffc17180: 7f ca f2 14 add r30,r10,r30 <== NOT EXECUTED if ( !p1 ) { ffc17184: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc17188: 41 9e 01 40 beq- cr7,ffc172c8 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; ffc1718c: 57 9f 10 3a rlwinm r31,r28,2,0,29 <== NOT EXECUTED ffc17190: 7c 69 f8 2e lwzx r3,r9,r31 <== NOT EXECUTED ffc17194: 7f e9 fa 14 add r31,r9,r31 <== NOT EXECUTED if ( !p2 ) { ffc17198: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc1719c: 40 9e ff 34 bne+ cr7,ffc170d0 <== NOT EXECUTED p2 = memfile_alloc_block(); ffc171a0: 4b ff fe 59 bl ffc16ff8 <== NOT EXECUTED if ( !p2 ) ffc171a4: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc171a8: 41 82 00 2c beq- ffc171d4 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; ffc171ac: 90 7f 00 00 stw r3,0(r31) <== NOT EXECUTED ffc171b0: 4b ff ff 20 b ffc170d0 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) ffc171b4: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc171b8: 41 be 00 1c beq+ cr7,ffc171d4 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; ffc171bc: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED ffc171c0: 7c 0b f0 2e lwzx r0,r11,r30 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly, singly, p, &p[singly] ); fflush(stdout); #endif return (block_p *)&p[ singly ]; ffc171c4: 57 a3 10 3a rlwinm r3,r29,2,0,29 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc171c8: 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 ]; ffc171cc: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED if ( !p ) return 0; p = (block_p *)p[ doubly ]; if ( !p ) ffc171d0: 40 9e ff 08 bne+ cr7,ffc170d8 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc171d4: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc171d8: 38 60 00 00 li r3,0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } ffc171dc: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc171e0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc171e4: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc171e8: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc171ec: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc171f0: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc171f4: 4e 80 00 20 blr <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) ffc171f8: 2f 83 00 00 cmpwi cr7,r3,0 return 0; return &info->indirect[ my_block ]; ffc171fc: 54 84 10 3a rlwinm r4,r4,2,0,29 ffc17200: 7c 63 22 14 add r3,r3,r4 info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) ffc17204: 40 9e fe d4 bne+ cr7,ffc170d8 <== ALWAYS TAKEN ffc17208: 4b ff ff cc b ffc171d4 <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); ffc1720c: 90 81 00 08 stw r4,8(r1) ffc17210: 4b ff fd e9 bl ffc16ff8 <== ALWAYS TAKEN if ( !p ) ffc17214: 2c 03 00 00 cmpwi r3,0 ffc17218: 80 81 00 08 lwz r4,8(r1) ffc1721c: 41 a2 ff b8 beq- ffc171d4 <== NEVER TAKEN return 0; info->indirect = p; ffc17220: 90 7f 00 58 stw r3,88(r31) ffc17224: 4b ff fe e8 b ffc1710c <== ALWAYS TAKEN info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); ffc17228: 4b ff fd d1 bl ffc16ff8 <== NOT EXECUTED if ( !p1 ) ffc1722c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc17230: 41 a2 ff a4 beq- ffc171d4 <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; ffc17234: 90 7e 00 00 stw r3,0(r30) <== NOT EXECUTED ffc17238: 4b ff fe 98 b ffc170d0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); ffc1723c: 4b ff fd bd bl ffc16ff8 <== NOT EXECUTED if ( !p ) ffc17240: 7c 6b 1b 79 mr. r11,r3 <== NOT EXECUTED ffc17244: 41 a2 ff 90 beq- ffc171d4 <== NOT EXECUTED return 0; info->doubly_indirect = p; ffc17248: 91 7f 00 5c stw r11,92(r31) <== NOT EXECUTED ffc1724c: 4b ff fe 70 b ffc170bc <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) ffc17250: 2f 8a 00 00 cmpwi cr7,r10,0 <== NOT EXECUTED ffc17254: 41 9e ff 80 beq+ cr7,ffc171d4 <== 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 ]; ffc17258: 57 de 10 3a rlwinm r30,r30,2,0,29 <== NOT EXECUTED ffc1725c: 7d 2a f0 2e lwzx r9,r10,r30 <== NOT EXECUTED if ( !p1 ) ffc17260: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc17264: 41 9e ff 70 beq+ cr7,ffc171d4 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; ffc17268: 57 9c 10 3a rlwinm r28,r28,2,0,29 <== NOT EXECUTED ffc1726c: 7c 69 e0 2e lwzx r3,r9,r28 <== NOT EXECUTED ffc17270: 4b ff fe 60 b ffc170d0 <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); ffc17274: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17278: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1727c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17280: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc17284: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17288: 38 c6 70 18 addi r6,r6,28696 <== NOT EXECUTED ffc1728c: 38 80 03 88 li r4,904 <== NOT EXECUTED ffc17290: 4b fe e6 d9 bl ffc05968 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17294: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17298: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1729c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc172a0: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc172a4: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc172a8: 38 c6 70 24 addi r6,r6,28708 <== NOT EXECUTED ffc172ac: 38 80 03 8c li r4,908 <== NOT EXECUTED ffc172b0: 4b fe e6 b9 bl ffc05968 <__assert_func> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); ffc172b4: 4b ff fd 45 bl ffc16ff8 <== NOT EXECUTED if ( !p ) ffc172b8: 7c 6a 1b 79 mr. r10,r3 <== NOT EXECUTED ffc172bc: 41 a2 ff 18 beq- ffc171d4 <== NOT EXECUTED return 0; info->triply_indirect = p; ffc172c0: 91 5f 00 60 stw r10,96(r31) <== NOT EXECUTED ffc172c4: 4b ff fe b4 b ffc17178 <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); ffc172c8: 4b ff fd 31 bl ffc16ff8 <== NOT EXECUTED if ( !p1 ) ffc172cc: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc172d0: 41 a2 ff 04 beq- ffc171d4 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; ffc172d4: 91 3e 00 00 stw r9,0(r30) <== NOT EXECUTED ffc172d8: 4b ff fe b4 b ffc1718c <== NOT EXECUTED ffc06204 : * */ int IMFS_memfile_maximum_size( void ) { return IMFS_MEMFILE_MAXIMUM_SIZE; ffc06204: 3d 20 00 00 lis r9,0 ffc06208: 80 09 27 cc lwz r0,10188(r9) ffc0620c: 54 09 f0 be rlwinm r9,r0,30,2,31 ffc06210: 38 69 00 01 addi r3,r9,1 ffc06214: 7c 63 49 d6 mullw r3,r3,r9 ffc06218: 38 63 00 01 addi r3,r3,1 ffc0621c: 7d 23 49 d6 mullw r9,r3,r9 ffc06220: 38 69 ff ff addi r3,r9,-1 } ffc06224: 7c 63 01 d6 mullw r3,r3,r0 ffc06228: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17fec : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc17fec: 94 21 ff c0 stwu r1,-64(r1) ffc17ff0: 7c 08 02 a6 mflr r0 ffc17ff4: 93 e1 00 3c stw r31,60(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17ff8: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { ffc17ffc: 93 41 00 28 stw r26,40(r1) ffc18000: 7c ba 2b 78 mr r26,r5 ffc18004: 93 61 00 2c stw r27,44(r1) ffc18008: 7c db 33 78 mr r27,r6 ffc1800c: 93 c1 00 38 stw r30,56(r1) ffc18010: 7c fe 3b 78 mr r30,r7 ffc18014: 90 01 00 44 stw r0,68(r1) ffc18018: 92 e1 00 1c stw r23,28(r1) ffc1801c: 93 01 00 20 stw r24,32(r1) ffc18020: 93 21 00 24 stw r25,36(r1) ffc18024: 93 81 00 30 stw r28,48(r1) ffc18028: 93 a1 00 34 stw r29,52(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc1802c: 41 82 02 f0 beq- ffc1831c <== NEVER TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || ffc18030: 81 3f 00 4c lwz r9,76(r31) ffc18034: 38 09 ff fb addi r0,r9,-5 ffc18038: 2b 80 00 01 cmplwi cr7,r0,1 ffc1803c: 41 9d 02 bc bgt- cr7,ffc182f8 <== NEVER TAKEN /* * Error checks on arguments */ assert( dest ); ffc18040: 2f 87 00 00 cmpwi cr7,r7,0 ffc18044: 41 9e 03 20 beq- cr7,ffc18364 <== NEVER TAKEN /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) ffc18048: 2f 88 00 00 cmpwi cr7,r8,0 ffc1804c: 41 9e 02 50 beq- cr7,ffc1829c <== NEVER TAKEN /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { ffc18050: 2f 89 00 06 cmpwi cr7,r9,6 ffc18054: 41 9e 01 94 beq- cr7,ffc181e8 <== NEVER TAKEN * 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 ) ffc18058: 80 1f 00 50 lwz r0,80(r31) ffc1805c: 39 20 00 00 li r9,0 ffc18060: 83 9f 00 54 lwz r28,84(r31) ffc18064: 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; ffc18068: 7c c0 33 78 mr r0,r6 if ( last_byte > the_jnode->info.file.size ) ffc1806c: 7d 28 32 14 add r9,r8,r6 ffc18070: 40 9d 01 6c ble- cr7,ffc181dc <== ALWAYS TAKEN my_length = the_jnode->info.file.size - start; ffc18074: 7f 80 e0 50 subf r28,r0,r28 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc18078: 3f 20 00 00 lis r25,0 ffc1807c: 83 b9 27 68 lwz r29,10088(r25) ffc18080: 7f 43 d3 78 mr r3,r26 ffc18084: 7f 64 db 78 mr r4,r27 ffc18088: 7f b8 fe 70 srawi r24,r29,31 ffc1808c: 7f 05 c3 78 mr r5,r24 ffc18090: 7f a6 eb 78 mr r6,r29 ffc18094: 48 00 c1 5d bl ffc241f0 <__moddi3> <== ALWAYS TAKEN block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc18098: 7f 43 d3 78 mr r3,r26 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc1809c: 7c 97 23 78 mr r23,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc180a0: 7f 05 c3 78 mr r5,r24 ffc180a4: 7f 64 db 78 mr r4,r27 ffc180a8: 7f a6 eb 78 mr r6,r29 ffc180ac: 48 00 bd 41 bl ffc23dec <__divdi3> <== ALWAYS TAKEN if ( start_offset ) { ffc180b0: 2f 97 00 00 cmpwi cr7,r23,0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc180b4: 7c 9a 23 78 mr r26,r4 if ( start_offset ) { ffc180b8: 7f d8 f3 78 mr r24,r30 ffc180bc: 3b 60 00 00 li r27,0 ffc180c0: 41 9e 00 4c beq- cr7,ffc1810c 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 ); ffc180c4: 7f e3 fb 78 mr r3,r31 ffc180c8: 38 a0 00 00 li r5,0 ffc180cc: 4b ff ef 71 bl ffc1703c <== ALWAYS TAKEN assert( block_ptr ); ffc180d0: 2c 03 00 00 cmpwi r3,0 ffc180d4: 41 82 02 6c beq- ffc18340 <== NEVER TAKEN */ 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; ffc180d8: 7f b7 e8 50 subf r29,r23,r29 ffc180dc: 7f 9c e8 40 cmplw cr7,r28,r29 ffc180e0: 7f 9b e3 78 mr r27,r28 ffc180e4: 41 9d 01 84 bgt- cr7,ffc18268 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 ); ffc180e8: 80 83 00 00 lwz r4,0(r3) ffc180ec: 7f 65 db 78 mr r5,r27 ffc180f0: 7f c3 f3 78 mr r3,r30 ffc180f4: 7c 84 ba 14 add r4,r4,r23 ffc180f8: 48 00 2a 39 bl ffc1ab30 <== ALWAYS TAKEN dest += to_copy; block++; my_length -= to_copy; ffc180fc: 83 b9 27 68 lwz r29,10088(r25) block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); dest += to_copy; ffc18100: 7f 1e da 14 add r24,r30,r27 block++; ffc18104: 3b 5a 00 01 addi r26,r26,1 my_length -= to_copy; ffc18108: 7f 9b e0 50 subf r28,r27,r28 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc1810c: 7f 9c e8 40 cmplw cr7,r28,r29 ffc18110: 41 9c 00 4c blt- cr7,ffc1815c ffc18114: 3b 39 27 68 addi r25,r25,10088 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc18118: 7f e3 fb 78 mr r3,r31 ffc1811c: 7f 44 d3 78 mr r4,r26 ffc18120: 38 a0 00 00 li r5,0 ffc18124: 4b ff ef 19 bl ffc1703c <== ALWAYS TAKEN assert( block_ptr ); ffc18128: 2c 03 00 00 cmpwi r3,0 ffc1812c: 41 82 01 84 beq- ffc182b0 <== NEVER TAKEN if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); ffc18130: 80 83 00 00 lwz r4,0(r3) ffc18134: 7f a5 eb 78 mr r5,r29 ffc18138: 7f 03 c3 78 mr r3,r24 ffc1813c: 48 00 29 f5 bl ffc1ab30 <== ALWAYS TAKEN /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc18140: 80 19 00 00 lwz r0,0(r25) if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; ffc18144: 7f 9d e0 50 subf r28,r29,r28 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc18148: 7f 80 e0 40 cmplw cr7,r0,r28 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; ffc1814c: 7f 18 ea 14 add r24,r24,r29 block++; ffc18150: 3b 5a 00 01 addi r26,r26,1 my_length -= to_copy; copied += to_copy; ffc18154: 7f 7b ea 14 add r27,r27,r29 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc18158: 40 9d ff c0 ble+ cr7,ffc18118 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { ffc1815c: 2f 9c 00 00 cmpwi cr7,r28,0 ffc18160: 41 9e 00 30 beq- cr7,ffc18190 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc18164: 7f 44 d3 78 mr r4,r26 ffc18168: 7f e3 fb 78 mr r3,r31 ffc1816c: 38 a0 00 00 li r5,0 ffc18170: 4b ff ee cd bl ffc1703c <== ALWAYS TAKEN assert( block_ptr ); ffc18174: 2c 03 00 00 cmpwi r3,0 ffc18178: 41 82 01 5c beq- ffc182d4 <== NEVER TAKEN if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); ffc1817c: 80 83 00 00 lwz r4,0(r3) ffc18180: 7f 85 e3 78 mr r5,r28 ffc18184: 7f 03 c3 78 mr r3,r24 ffc18188: 48 00 29 a9 bl ffc1ab30 <== ALWAYS TAKEN copied += my_length; ffc1818c: 7f 7b e2 14 add r27,r27,r28 } IMFS_update_atime( the_jnode ); ffc18190: 38 61 00 08 addi r3,r1,8 ffc18194: 38 80 00 00 li r4,0 ffc18198: 4b fe dd f9 bl ffc05f90 <== ALWAYS TAKEN ffc1819c: 80 01 00 08 lwz r0,8(r1) return copied; ffc181a0: 7f 63 db 78 mr r3,r27 return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); ffc181a4: 90 1f 00 40 stw r0,64(r31) return copied; } ffc181a8: 80 01 00 44 lwz r0,68(r1) ffc181ac: 82 e1 00 1c lwz r23,28(r1) ffc181b0: 7c 08 03 a6 mtlr r0 ffc181b4: 83 01 00 20 lwz r24,32(r1) ffc181b8: 83 21 00 24 lwz r25,36(r1) ffc181bc: 83 41 00 28 lwz r26,40(r1) ffc181c0: 83 61 00 2c lwz r27,44(r1) ffc181c4: 83 81 00 30 lwz r28,48(r1) ffc181c8: 83 a1 00 34 lwz r29,52(r1) ffc181cc: 83 c1 00 38 lwz r30,56(r1) ffc181d0: 83 e1 00 3c lwz r31,60(r1) ffc181d4: 38 21 00 40 addi r1,r1,64 ffc181d8: 4e 80 00 20 blr <== ALWAYS TAKEN * 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 ) ffc181dc: 41 9e 00 a0 beq- cr7,ffc1827c <== ALWAYS TAKEN ffc181e0: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED ffc181e4: 4b ff fe 94 b ffc18078 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) ffc181e8: 81 3f 00 50 lwz r9,80(r31) <== NOT EXECUTED ffc181ec: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc181f0: 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; ffc181f4: 80 9f 00 58 lwz r4,88(r31) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) ffc181f8: 7d 9b 50 10 subfc r12,r27,r10 <== NOT EXECUTED ffc181fc: 7d 7a 49 10 subfe r11,r26,r9 <== NOT EXECUTED ffc18200: 7f 80 58 00 cmpw cr7,r0,r11 <== NOT EXECUTED ffc18204: 40 9d 00 6c ble- cr7,ffc18270 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; ffc18208: 7f 9b 50 50 subf r28,r27,r10 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); ffc1820c: 7c 84 da 14 add r4,r4,r27 <== NOT EXECUTED ffc18210: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED ffc18214: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc18218: 48 00 29 19 bl ffc1ab30 <== NOT EXECUTED IMFS_update_atime( the_jnode ); ffc1821c: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc18220: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc18224: 4b fe dd 6d bl ffc05f90 <== NOT EXECUTED ffc18228: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED return my_length; ffc1822c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } ffc18230: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); IMFS_update_atime( the_jnode ); ffc18234: 90 1f 00 40 stw r0,64(r31) <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } ffc18238: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc1823c: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc18240: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc18244: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc18248: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc1824c: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc18250: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc18254: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc18258: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc1825c: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc18260: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc18264: 4e 80 00 20 blr <== NOT EXECUTED */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; ffc18268: 7f bb eb 78 mr r27,r29 ffc1826c: 4b ff fe 7c b ffc180e8 <== ALWAYS TAKEN if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) ffc18270: 41 9e 00 1c beq- cr7,ffc1828c <== NOT EXECUTED ffc18274: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED ffc18278: 4b ff ff 94 b ffc1820c <== 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 ) ffc1827c: 7f 89 e0 40 cmplw cr7,r9,r28 ffc18280: 41 bd fd f4 bgt- cr7,ffc18074 <== ALWAYS TAKEN ffc18284: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED ffc18288: 4b ff fd f0 b ffc18078 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) ffc1828c: 7f 88 60 40 cmplw cr7,r8,r12 <== NOT EXECUTED ffc18290: 41 bd ff 78 bgt- cr7,ffc18208 <== NOT EXECUTED ffc18294: 7d 1c 43 78 mr r28,r8 <== NOT EXECUTED ffc18298: 4b ff ff 74 b ffc1820c <== NOT EXECUTED * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc1829c: 48 00 1c ad bl ffc19f48 <__errno> <== NOT EXECUTED ffc182a0: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc182a4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc182a8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc182ac: 4b ff fe fc b ffc181a8 <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); ffc182b0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc182b4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc182b8: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc182bc: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc182c0: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc182c4: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc182c8: 38 c6 70 54 addi r6,r6,28756 <== NOT EXECUTED ffc182cc: 38 80 02 a7 li r4,679 <== NOT EXECUTED ffc182d0: 4b fe d6 99 bl ffc05968 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); ffc182d4: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc182d8: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc182dc: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc182e0: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc182e4: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc182e8: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc182ec: 38 c6 70 54 addi r6,r6,28756 <== NOT EXECUTED ffc182f0: 38 80 02 b9 li r4,697 <== NOT EXECUTED ffc182f4: 4b fe d6 75 bl ffc05968 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || ffc182f8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc182fc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc18300: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc18304: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc18308: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc1830c: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc18310: 38 c6 70 68 addi r6,r6,28776 <== NOT EXECUTED ffc18314: 38 80 02 51 li r4,593 <== NOT EXECUTED ffc18318: 4b fe d6 51 bl ffc05968 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); ffc1831c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc18320: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc18324: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc18328: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc1832c: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc18330: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc18334: 38 c6 70 18 addi r6,r6,28696 <== NOT EXECUTED ffc18338: 38 80 02 4c li r4,588 <== NOT EXECUTED ffc1833c: 4b fe d6 2d bl ffc05968 <__assert_func> <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); ffc18340: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc18344: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc18348: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc1834c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc18350: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc18354: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc18358: 38 c6 70 54 addi r6,r6,28756 <== NOT EXECUTED ffc1835c: 38 80 02 96 li r4,662 <== NOT EXECUTED ffc18360: 4b fe d6 09 bl ffc05968 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); ffc18364: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc18368: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc1836c: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc18370: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc18374: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc18378: 38 a5 00 b0 addi r5,r5,176 <== NOT EXECUTED ffc1837c: 38 c6 70 b4 addi r6,r6,28852 <== NOT EXECUTED ffc18380: 38 80 02 5a li r4,602 <== NOT EXECUTED ffc18384: 4b fe d5 e5 bl ffc05968 <__assert_func> <== NOT EXECUTED ffc17400 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc17400: 94 21 ff d8 stwu r1,-40(r1) ffc17404: 7c 08 02 a6 mflr r0 ffc17408: 93 41 00 10 stw r26,16(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc1740c: 7c 7a 1b 79 mr. r26,r3 */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { ffc17410: 90 01 00 2c stw r0,44(r1) ffc17414: 93 21 00 0c stw r25,12(r1) ffc17418: 93 61 00 14 stw r27,20(r1) ffc1741c: 93 81 00 18 stw r28,24(r1) ffc17420: 93 a1 00 1c stw r29,28(r1) ffc17424: 93 c1 00 20 stw r30,32(r1) ffc17428: 93 e1 00 24 stw r31,36(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc1742c: 41 82 01 90 beq- ffc175bc <== NEVER TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17430: 80 1a 00 4c lwz r0,76(r26) ffc17434: 2f 80 00 05 cmpwi cr7,r0,5 ffc17438: 40 9e 01 a8 bne- cr7,ffc175e0 <== NEVER TAKEN * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc1743c: 80 1a 00 58 lwz r0,88(r26) /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; ffc17440: 3f c0 00 00 lis r30,0 ffc17444: 83 9e 27 68 lwz r28,10088(r30) * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc17448: 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; ffc1744c: 57 9c f0 be rlwinm r28,r28,30,2,31 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; ffc17450: 41 9e 00 10 beq- cr7,ffc17460 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); ffc17454: 38 7a 00 58 addi r3,r26,88 ffc17458: 7f 84 e3 78 mr r4,r28 ffc1745c: 4b ff fe 81 bl ffc172dc <== ALWAYS TAKEN } if ( info->doubly_indirect ) { ffc17460: 81 3a 00 5c lwz r9,92(r26) ffc17464: 2f 89 00 00 cmpwi cr7,r9,0 ffc17468: 41 9e 00 68 beq- cr7,ffc174d0 <== ALWAYS TAKEN for ( i=0 ; i <== NOT EXECUTED ffc17478: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc1747c: 3b bd 27 68 addi r29,r29,10088 <== NOT EXECUTED ffc17480: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc17484: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc17488: 48 00 00 08 b ffc17490 <== NOT EXECUTED ffc1748c: 81 3a 00 5c lwz r9,92(r26) <== NOT EXECUTED if ( info->doubly_indirect[i] ) { ffc17490: 54 63 10 3a rlwinm r3,r3,2,0,29 <== NOT EXECUTED ffc17494: 7c 09 18 2e lwzx r0,r9,r3 <== NOT EXECUTED ffc17498: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc1749c: 41 9e 00 10 beq- cr7,ffc174ac <== NOT EXECUTED memfile_free_blocks_in_table( ffc174a0: 7c 69 1a 14 add r3,r9,r3 <== NOT EXECUTED ffc174a4: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc174a8: 4b ff fe 35 bl ffc172dc <== 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 ); ffc174c4: 38 7a 00 5c addi r3,r26,92 <== NOT EXECUTED ffc174c8: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc174cc: 4b ff fe 11 bl ffc172dc <== NOT EXECUTED } if ( info->triply_indirect ) { ffc174d0: 80 7a 00 60 lwz r3,96(r26) ffc174d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc174d8: 41 9e 00 b4 beq- cr7,ffc1758c <== ALWAYS TAKEN for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; ffc174e8: 83 c3 00 00 lwz r30,0(r3) <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc174ec: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc174f0: 41 9e 00 90 beq- cr7,ffc17580 <== NOT EXECUTED ffc174f4: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc174f8: 3b bd 27 68 addi r29,r29,10088 <== NOT EXECUTED ffc174fc: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc17500: 3b 60 00 00 li r27,0 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED ffc1750c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc17510: 3b e0 00 00 li r31,0 <== NOT EXECUTED if ( p[j] ) { ffc17514: 54 63 10 3a rlwinm r3,r3,2,0,29 <== NOT EXECUTED ffc17518: 7c 1e 18 2e lwzx r0,r30,r3 <== NOT EXECUTED ffc1751c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc17520: 41 9e 00 10 beq- cr7,ffc17530 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); ffc17524: 7c 7e 1a 14 add r3,r30,r3 <== NOT EXECUTED ffc17528: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc1752c: 4b ff fd b1 bl ffc172dc <== 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 ffc17548: 80 7a 00 60 lwz r3,96(r26) <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( ffc1754c: 7c 63 ca 14 add r3,r3,r25 <== NOT EXECUTED ffc17550: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc17554: 4b ff fd 89 bl ffc172dc <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; ffc1756c: 80 7a 00 60 lwz r3,96(r26) <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc17570: 57 79 10 3a rlwinm r25,r27,2,0,29 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; ffc17574: 7f c3 c8 2e lwzx r30,r3,r25 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ ffc17578: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED ffc1757c: 40 9e ff 88 bne+ cr7,ffc17504 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( ffc17580: 38 7a 00 60 addi r3,r26,96 <== NOT EXECUTED ffc17584: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc17588: 4b ff fd 55 bl ffc172dc <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } ffc1758c: 80 01 00 2c lwz r0,44(r1) ffc17590: 38 60 00 00 li r3,0 ffc17594: 83 21 00 0c lwz r25,12(r1) ffc17598: 7c 08 03 a6 mtlr r0 ffc1759c: 83 41 00 10 lwz r26,16(r1) ffc175a0: 83 61 00 14 lwz r27,20(r1) ffc175a4: 83 81 00 18 lwz r28,24(r1) ffc175a8: 83 a1 00 1c lwz r29,28(r1) ffc175ac: 83 c1 00 20 lwz r30,32(r1) ffc175b0: 83 e1 00 24 lwz r31,36(r1) ffc175b4: 38 21 00 28 addi r1,r1,40 ffc175b8: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Perform internal consistency checks */ assert( the_jnode ); ffc175bc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc175c0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc175c4: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc175c8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc175cc: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc175d0: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc175d4: 38 c6 70 18 addi r6,r6,28696 <== NOT EXECUTED ffc175d8: 38 80 01 ee li r4,494 <== NOT EXECUTED ffc175dc: 4b fe e3 8d bl ffc05968 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc175e0: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc175e4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc175e8: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc175ec: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc175f0: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc175f4: 38 a5 00 5c addi r5,r5,92 <== NOT EXECUTED ffc175f8: 38 c6 70 24 addi r6,r6,28708 <== NOT EXECUTED ffc175fc: 38 80 01 f2 li r4,498 <== NOT EXECUTED ffc17600: 4b fe e3 69 bl ffc05968 <__assert_func> <== NOT EXECUTED ffc1739c : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc1739c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc173a0: 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 ); ffc173a4: 38 a0 00 00 li r5,0 <== NOT EXECUTED MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { ffc173a8: 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 ); ffc173ac: 4b ff fc 91 bl ffc1703c <== NOT EXECUTED assert( block_ptr ); ffc173b0: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc173b4: 41 82 00 28 beq- ffc173dc <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; ffc173b8: 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; ffc173bc: 80 69 00 00 lwz r3,0(r9) <== NOT EXECUTED *block_ptr = 0; ffc173c0: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED memfile_free_block( ptr ); ffc173c4: 4b ff fc 05 bl ffc16fc8 <== NOT EXECUTED } return 1; } ffc173c8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc173cc: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc173d0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc173d4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc173d8: 4e 80 00 20 blr <== NOT EXECUTED { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); ffc173dc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc173e0: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc173e4: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc173e8: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc173ec: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc173f0: 38 a5 00 40 addi r5,r5,64 <== NOT EXECUTED ffc173f4: 38 c6 70 54 addi r6,r6,28756 <== NOT EXECUTED ffc173f8: 38 80 01 96 li r4,406 <== NOT EXECUTED ffc173fc: 4b fe e5 6d bl ffc05968 <__assert_func> <== NOT EXECUTED ffc17bb0 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc17bb0: 94 21 ff c0 stwu r1,-64(r1) ffc17bb4: 7c 08 02 a6 mflr r0 ffc17bb8: 93 e1 00 3c stw r31,60(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17bbc: 7c 7f 1b 79 mr. r31,r3 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { ffc17bc0: 93 41 00 28 stw r26,40(r1) ffc17bc4: 7d 1a 43 78 mr r26,r8 ffc17bc8: 93 81 00 30 stw r28,48(r1) ffc17bcc: 7c fc 3b 78 mr r28,r7 ffc17bd0: 93 a1 00 34 stw r29,52(r1) ffc17bd4: 7c bd 2b 78 mr r29,r5 ffc17bd8: 93 c1 00 38 stw r30,56(r1) ffc17bdc: 7c de 33 78 mr r30,r6 ffc17be0: 90 01 00 44 stw r0,68(r1) ffc17be4: 92 e1 00 1c stw r23,28(r1) ffc17be8: 93 01 00 20 stw r24,32(r1) ffc17bec: 93 21 00 24 stw r25,36(r1) ffc17bf0: 93 61 00 2c stw r27,44(r1) /* * Perform internal consistency checks */ assert( the_jnode ); ffc17bf4: 41 82 02 2c beq- ffc17e20 <== NEVER TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17bf8: 80 1f 00 4c lwz r0,76(r31) ffc17bfc: 2f 80 00 05 cmpwi cr7,r0,5 ffc17c00: 40 9e 02 68 bne- cr7,ffc17e68 <== NEVER TAKEN /* * Error check arguments */ assert( source ); ffc17c04: 2f 87 00 00 cmpwi cr7,r7,0 ffc17c08: 41 9e 02 3c beq- cr7,ffc17e44 <== NEVER TAKEN /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) ffc17c0c: 2f 88 00 00 cmpwi cr7,r8,0 ffc17c10: 41 9e 01 b4 beq- cr7,ffc17dc4 <== NEVER TAKEN * 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 ) { ffc17c14: 80 1f 00 50 lwz r0,80(r31) ffc17c18: 7c c8 32 14 add r6,r8,r6 ffc17c1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc17c20: 41 9c 01 74 blt- cr7,ffc17d94 <== NEVER TAKEN ffc17c24: 41 9e 01 64 beq- cr7,ffc17d88 <== ALWAYS TAKEN /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17c28: 3f 20 00 00 lis r25,0 ffc17c2c: 83 79 27 68 lwz r27,10088(r25) ffc17c30: 7f a3 eb 78 mr r3,r29 ffc17c34: 7f c4 f3 78 mr r4,r30 ffc17c38: 7f 78 fe 70 srawi r24,r27,31 ffc17c3c: 7f 05 c3 78 mr r5,r24 ffc17c40: 7f 66 db 78 mr r6,r27 ffc17c44: 48 00 c5 ad bl ffc241f0 <__moddi3> <== ALWAYS TAKEN block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17c48: 7f a3 eb 78 mr r3,r29 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17c4c: 7c 97 23 78 mr r23,r4 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17c50: 7f 05 c3 78 mr r5,r24 ffc17c54: 7f c4 f3 78 mr r4,r30 ffc17c58: 7f 66 db 78 mr r6,r27 ffc17c5c: 48 00 c1 91 bl ffc23dec <__divdi3> <== ALWAYS TAKEN if ( start_offset ) { ffc17c60: 2f 97 00 00 cmpwi cr7,r23,0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; ffc17c64: 7c 9e 23 78 mr r30,r4 if ( start_offset ) { ffc17c68: 3b a0 00 00 li r29,0 ffc17c6c: 41 9e 00 48 beq- cr7,ffc17cb4 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 ); ffc17c70: 7f e3 fb 78 mr r3,r31 ffc17c74: 38 a0 00 00 li r5,0 ffc17c78: 4b ff f3 c5 bl ffc1703c <== ALWAYS TAKEN assert( block_ptr ); ffc17c7c: 2c 03 00 00 cmpwi r3,0 ffc17c80: 41 82 02 0c beq- ffc17e8c <== NEVER TAKEN */ 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; ffc17c84: 7f b7 d8 50 subf r29,r23,r27 ffc17c88: 7f 9d d0 40 cmplw cr7,r29,r26 ffc17c8c: 41 9d 01 30 bgt- cr7,ffc17dbc <== ALWAYS TAKEN 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 ); ffc17c90: 80 63 00 00 lwz r3,0(r3) ffc17c94: 7f 84 e3 78 mr r4,r28 ffc17c98: 7f a5 eb 78 mr r5,r29 ffc17c9c: 7c 63 ba 14 add r3,r3,r23 ffc17ca0: 48 00 2e 91 bl ffc1ab30 <== ALWAYS TAKEN src += to_copy; block++; my_length -= to_copy; copied += to_copy; ffc17ca4: 83 79 27 68 lwz r27,10088(r25) return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; ffc17ca8: 7f 9c ea 14 add r28,r28,r29 block++; ffc17cac: 3b de 00 01 addi r30,r30,1 my_length -= to_copy; ffc17cb0: 7f 5d d0 50 subf r26,r29,r26 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc17cb4: 7f 9a d8 40 cmplw cr7,r26,r27 ffc17cb8: 41 9c 00 4c blt- cr7,ffc17d04 ffc17cbc: 3b 39 27 68 addi r25,r25,10088 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc17cc0: 7f e3 fb 78 mr r3,r31 ffc17cc4: 7f c4 f3 78 mr r4,r30 ffc17cc8: 38 a0 00 00 li r5,0 ffc17ccc: 4b ff f3 71 bl ffc1703c <== ALWAYS TAKEN assert( block_ptr ); ffc17cd0: 2c 03 00 00 cmpwi r3,0 ffc17cd4: 41 82 01 04 beq- ffc17dd8 <== NEVER TAKEN 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 ); ffc17cd8: 80 63 00 00 lwz r3,0(r3) ffc17cdc: 7f 84 e3 78 mr r4,r28 ffc17ce0: 7f 65 db 78 mr r5,r27 ffc17ce4: 48 00 2e 4d bl ffc1ab30 <== ALWAYS TAKEN /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc17ce8: 80 19 00 00 lwz r0,0(r25) fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; block++; my_length -= to_copy; ffc17cec: 7f 5b d0 50 subf r26,r27,r26 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc17cf0: 7f 80 d0 40 cmplw cr7,r0,r26 return copied; #if 0 fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; ffc17cf4: 7f 9c da 14 add r28,r28,r27 block++; ffc17cf8: 3b de 00 01 addi r30,r30,1 * * This routine writes the specified data buffer into the in memory * file pointed to by the_jnode. The file is extended as needed. */ MEMFILE_STATIC ssize_t IMFS_memfile_write( ffc17cfc: 7f bd da 14 add r29,r29,r27 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { ffc17d00: 40 9d ff c0 ble+ cr7,ffc17cc0 <== NEVER TAKEN */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { ffc17d04: 2f 9a 00 00 cmpwi cr7,r26,0 ffc17d08: 41 9e 00 30 beq- cr7,ffc17d38 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); ffc17d0c: 7f c4 f3 78 mr r4,r30 ffc17d10: 7f e3 fb 78 mr r3,r31 ffc17d14: 38 a0 00 00 li r5,0 ffc17d18: 4b ff f3 25 bl ffc1703c <== ALWAYS TAKEN assert( block_ptr ); ffc17d1c: 2c 03 00 00 cmpwi r3,0 ffc17d20: 41 82 00 dc beq- ffc17dfc <== NEVER TAKEN 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 ); ffc17d24: 80 63 00 00 lwz r3,0(r3) ffc17d28: 7f 84 e3 78 mr r4,r28 ffc17d2c: 7f 45 d3 78 mr r5,r26 ffc17d30: 48 00 2e 01 bl ffc1ab30 <== ALWAYS TAKEN my_length = 0; copied += to_copy; ffc17d34: 7f bd d2 14 add r29,r29,r26 } IMFS_mtime_ctime_update( the_jnode ); ffc17d38: 38 61 00 08 addi r3,r1,8 ffc17d3c: 38 80 00 00 li r4,0 ffc17d40: 4b fe e2 51 bl ffc05f90 <== ALWAYS TAKEN ffc17d44: 80 01 00 08 lwz r0,8(r1) ffc17d48: 90 1f 00 48 stw r0,72(r31) ffc17d4c: 90 1f 00 44 stw r0,68(r31) return copied; } ffc17d50: 80 01 00 44 lwz r0,68(r1) ffc17d54: 7f a3 eb 78 mr r3,r29 ffc17d58: 82 e1 00 1c lwz r23,28(r1) ffc17d5c: 7c 08 03 a6 mtlr r0 ffc17d60: 83 01 00 20 lwz r24,32(r1) ffc17d64: 83 21 00 24 lwz r25,36(r1) ffc17d68: 83 41 00 28 lwz r26,40(r1) ffc17d6c: 83 61 00 2c lwz r27,44(r1) ffc17d70: 83 81 00 30 lwz r28,48(r1) ffc17d74: 83 a1 00 34 lwz r29,52(r1) ffc17d78: 83 c1 00 38 lwz r30,56(r1) ffc17d7c: 83 e1 00 3c lwz r31,60(r1) ffc17d80: 38 21 00 40 addi r1,r1,64 ffc17d84: 4e 80 00 20 blr <== ALWAYS TAKEN * 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 ) { ffc17d88: 80 1f 00 54 lwz r0,84(r31) ffc17d8c: 7f 80 30 40 cmplw cr7,r0,r6 ffc17d90: 40 bc fe 98 bge- cr7,ffc17c28 <== NEVER TAKEN status = IMFS_memfile_extend( the_jnode, last_byte ); ffc17d94: 7f e3 fb 78 mr r3,r31 ffc17d98: 38 a0 00 00 li r5,0 ffc17d9c: 4b ff fa 51 bl ffc177ec <== ALWAYS TAKEN if ( status ) ffc17da0: 2f 83 00 00 cmpwi cr7,r3,0 ffc17da4: 41 9e fe 84 beq+ cr7,ffc17c28 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc17da8: 48 00 21 a1 bl ffc19f48 <__errno> <== NOT EXECUTED ffc17dac: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc17db0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17db4: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc17db8: 4b ff ff 98 b ffc17d50 <== 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; ffc17dbc: 7f 5d d3 78 mr r29,r26 ffc17dc0: 4b ff fe d0 b ffc17c90 <== ALWAYS TAKEN * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc17dc4: 48 00 21 85 bl ffc19f48 <__errno> <== NOT EXECUTED ffc17dc8: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc17dcc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17dd0: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc17dd4: 4b ff ff 7c b ffc17d50 <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); ffc17dd8: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17ddc: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17de0: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17de4: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17de8: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc17dec: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17df0: 38 c6 70 54 addi r6,r6,28756 <== NOT EXECUTED ffc17df4: 38 80 03 30 li r4,816 <== NOT EXECUTED ffc17df8: 4b fe db 71 bl ffc05968 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); ffc17dfc: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17e00: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17e04: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17e08: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17e0c: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc17e10: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17e14: 38 c6 70 54 addi r6,r6,28756 <== NOT EXECUTED ffc17e18: 38 80 03 46 li r4,838 <== NOT EXECUTED ffc17e1c: 4b fe db 4d bl ffc05968 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); ffc17e20: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17e24: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17e28: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17e2c: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17e30: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc17e34: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17e38: 38 c6 70 18 addi r6,r6,28696 <== NOT EXECUTED ffc17e3c: 38 80 02 e3 li r4,739 <== NOT EXECUTED ffc17e40: 4b fe db 29 bl ffc05968 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); ffc17e44: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17e48: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17e4c: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17e50: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17e54: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc17e58: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17e5c: 38 c6 70 60 addi r6,r6,28768 <== NOT EXECUTED ffc17e60: 38 80 02 ef li r4,751 <== NOT EXECUTED ffc17e64: 4b fe db 05 bl ffc05968 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); ffc17e68: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17e6c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17e70: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17e74: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17e78: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc17e7c: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17e80: 38 c6 70 24 addi r6,r6,28708 <== NOT EXECUTED ffc17e84: 38 80 02 e7 li r4,743 <== NOT EXECUTED ffc17e88: 4b fe da e1 bl ffc05968 <__assert_func> <== NOT EXECUTED if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); ffc17e8c: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc17e90: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17e94: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17e98: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17e9c: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc17ea0: 38 a5 00 9c addi r5,r5,156 <== NOT EXECUTED ffc17ea4: 38 c6 70 54 addi r6,r6,28756 <== NOT EXECUTED ffc17ea8: 38 80 03 1c li r4,796 <== NOT EXECUTED ffc17eac: 4b fe da bd bl ffc05968 <__assert_func> <== NOT EXECUTED ffc0dc2c : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0dc2c: 94 21 ff 90 stwu r1,-112(r1) ffc0dc30: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0dc34: 93 41 00 58 stw r26,88(r1) ffc0dc38: 7c 7a 1b 78 mr r26,r3 ffc0dc3c: 90 01 00 74 stw r0,116(r1) ffc0dc40: 93 61 00 5c stw r27,92(r1) <== ALWAYS TAKEN ffc0dc44: 7c fb 3b 78 mr r27,r7 ffc0dc48: 93 81 00 60 stw r28,96(r1) <== ALWAYS TAKEN 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 ); ffc0dc4c: 3b 81 00 28 addi r28,r1,40 const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { ffc0dc50: 93 a1 00 64 stw r29,100(r1) ffc0dc54: 7c bd 2b 78 mr r29,r5 <== ALWAYS TAKEN ffc0dc58: 93 c1 00 68 stw r30,104(r1) ffc0dc5c: 7c de 33 78 mr r30,r6 ffc0dc60: 93 e1 00 6c stw r31,108(r1) ffc0dc64: 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 ); ffc0dc68: 48 00 6a 0d bl ffc14674 <== ALWAYS TAKEN ffc0dc6c: 7f 85 e3 78 mr r5,r28 ffc0dc70: 7c 64 1b 78 mr r4,r3 ffc0dc74: 38 c1 00 08 addi r6,r1,8 ffc0dc78: 7f 43 d3 78 mr r3,r26 ffc0dc7c: 4b ff fd 81 bl ffc0d9fc <== ALWAYS TAKEN /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) ffc0dc80: 57 e0 04 26 rlwinm r0,r31,0,16,19 <== ALWAYS TAKEN ffc0dc84: 2f 80 40 00 cmpwi cr7,r0,16384 ffc0dc88: 41 9e 00 8c beq- cr7,ffc0dd14 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) ffc0dc8c: 39 20 00 00 li r9,0 ffc0dc90: 61 29 80 00 ori r9,r9,32768 ffc0dc94: 7f 80 48 00 cmpw cr7,r0,r9 ffc0dc98: 38 80 00 05 li r4,5 <== ALWAYS TAKEN ffc0dc9c: 41 9e 00 20 beq- cr7,ffc0dcbc type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { ffc0dca0: 2f 80 60 00 cmpwi cr7,r0,24576 ffc0dca4: 41 9e 00 60 beq- cr7,ffc0dd04 ffc0dca8: 2f 80 20 00 cmpwi cr7,r0,8192 ffc0dcac: 41 9e 00 58 beq- cr7,ffc0dd04 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) ffc0dcb0: 2f 80 10 00 cmpwi cr7,r0,4096 ffc0dcb4: 38 80 00 07 li r4,7 ffc0dcb8: 40 9e 00 64 bne- cr7,ffc0dd1c <== 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( ffc0dcbc: 7f 63 db 78 mr r3,r27 ffc0dcc0: 7f 85 e3 78 mr r5,r28 ffc0dcc4: 7f e6 fb 78 mr r6,r31 <== ALWAYS TAKEN ffc0dcc8: 38 e1 00 10 addi r7,r1,16 ffc0dccc: 48 00 36 39 bl ffc11304 <== ALWAYS TAKEN new_name, mode, &info ); if ( !new_node ) ffc0dcd0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0dcd4: 38 60 00 00 li r3,0 ffc0dcd8: 41 9e 00 58 beq- cr7,ffc0dd30 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } ffc0dcdc: 80 01 00 74 lwz r0,116(r1) ffc0dce0: 83 41 00 58 lwz r26,88(r1) ffc0dce4: 7c 08 03 a6 mtlr r0 ffc0dce8: 83 61 00 5c lwz r27,92(r1) ffc0dcec: 83 81 00 60 lwz r28,96(r1) ffc0dcf0: 83 a1 00 64 lwz r29,100(r1) ffc0dcf4: 83 c1 00 68 lwz r30,104(r1) ffc0dcf8: 83 e1 00 6c lwz r31,108(r1) ffc0dcfc: 38 21 00 70 addi r1,r1,112 ffc0dd00: 4e 80 00 20 blr <== ALWAYS TAKEN type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); ffc0dd04: 93 a1 00 10 stw r29,16(r1) ffc0dd08: 38 80 00 02 li r4,2 ffc0dd0c: 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) ) { ffc0dd10: 4b ff ff ac b ffc0dcbc <== ALWAYS TAKEN rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); ffc0dd14: 38 80 00 01 li r4,1 <== ALWAYS TAKEN ffc0dd18: 4b ff ff a4 b ffc0dcbc <== ALWAYS TAKEN ffc0dd1c: 48 00 56 5d bl ffc13378 <__errno> <== NOT EXECUTED ffc0dd20: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0dd24: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0dd28: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0dd2c: 4b ff ff b0 b ffc0dcdc <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); ffc0dd30: 48 00 56 49 bl ffc13378 <__errno> <== NOT EXECUTED ffc0dd34: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc0dd38: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0dd3c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0dd40: 4b ff ff 9c b ffc0dcdc <== NOT EXECUTED ffc053d8 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc053d8: 7c 08 02 a6 mflr r0 ffc053dc: 94 21 ff f8 stwu r1,-8(r1) ffc053e0: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc053e4: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc053e8: 80 09 00 4c lwz r0,76(r9) ffc053ec: 2f 80 00 01 cmpwi cr7,r0,1 ffc053f0: 40 9e 00 1c bne- cr7,ffc0540c <== NEVER TAKEN /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; ffc053f4: 90 69 00 5c stw r3,92(r9) ffc053f8: 38 60 00 00 li r3,0 return 0; } ffc053fc: 80 01 00 0c lwz r0,12(r1) ffc05400: 38 21 00 08 addi r1,r1,8 ffc05404: 7c 08 03 a6 mtlr r0 ffc05408: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0540c: 48 01 4b 3d bl ffc19f48 <__errno> <== NOT EXECUTED ffc05410: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc05414: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05418: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0541c: 4b ff ff e0 b ffc053fc <== NOT EXECUTED ffc0dd44 : #include "imfs.h" rtems_filesystem_node_types_t IMFS_node_type( rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc0dd44: 81 23 00 00 lwz r9,0(r3) <== ALWAYS TAKEN IMFS_jnode_t *node; node = pathloc->node_access; return node->type; } ffc0dd48: 80 69 00 4c lwz r3,76(r9) ffc0dd4c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0622c : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc0622c: 94 21 ff f0 stwu r1,-16(r1) ffc06230: 7c 08 02 a6 mflr r0 ffc06234: 93 e1 00 0c stw r31,12(r1) assert( the_jnode ); ffc06238: 7c 7f 1b 79 mr. r31,r3 */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { ffc0623c: 90 01 00 14 stw r0,20(r1) ffc06240: 93 c1 00 08 stw r30,8(r1) assert( the_jnode ); ffc06244: 41 82 02 28 beq- ffc0646c <== NEVER TAKEN fprintf(stdout, "%s", the_jnode->name ); ffc06248: 3f c0 00 00 lis r30,0 ffc0624c: 81 3e 27 4c lwz r9,10060(r30) ffc06250: 38 7f 00 0c addi r3,r31,12 ffc06254: 80 89 00 08 lwz r4,8(r9) ffc06258: 48 01 35 f9 bl ffc19850 <== ALWAYS TAKEN switch( the_jnode->type ) { ffc0625c: 80 bf 00 4c lwz r5,76(r31) ffc06260: 2b 85 00 07 cmplwi cr7,r5,7 ffc06264: 40 9d 00 3c ble- cr7,ffc062a0 <== ALWAYS TAKEN fprintf(stdout, " FIFO not printed\n" ); assert(0); break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); ffc06268: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc0626c: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc06270: 38 84 a2 14 addi r4,r4,-24044 <== NOT EXECUTED ffc06274: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc06278: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0627c: 48 01 33 59 bl ffc195d4 <== NOT EXECUTED assert(0); ffc06280: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06284: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06288: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc0628c: 38 63 a1 60 addi r3,r3,-24224 <== NOT EXECUTED ffc06290: 38 a5 a1 38 addi r5,r5,-24264 <== NOT EXECUTED ffc06294: 38 c6 a1 fc addi r6,r6,-24068 <== NOT EXECUTED ffc06298: 38 80 00 6c li r4,108 <== NOT EXECUTED ffc0629c: 48 00 0c 95 bl ffc06f30 <__assert_func> <== NOT EXECUTED ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { ffc062a0: 3d 20 ff c3 lis r9,-61 ffc062a4: 39 29 a1 18 addi r9,r9,-24296 ffc062a8: 54 a0 10 3a rlwinm r0,r5,2,0,29 ffc062ac: 7c 09 00 2e lwzx r0,r9,r0 ffc062b0: 7d 20 4a 14 add r9,r0,r9 ffc062b4: 7d 29 03 a6 mtctr r9 ffc062b8: 4e 80 04 20 bctr <== ALWAYS TAKEN fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); ffc062bc: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc062c0: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc062c4: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc062c8: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED ffc062cc: 38 a0 00 12 li r5,18 <== NOT EXECUTED ffc062d0: 38 63 a2 00 addi r3,r3,-24064 <== NOT EXECUTED ffc062d4: 48 01 43 71 bl ffc1a644 <== NOT EXECUTED assert(0); ffc062d8: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc062dc: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc062e0: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc062e4: 38 63 a1 60 addi r3,r3,-24224 <== NOT EXECUTED ffc062e8: 38 a5 a1 38 addi r5,r5,-24264 <== NOT EXECUTED ffc062ec: 38 c6 a1 fc addi r6,r6,-24068 <== NOT EXECUTED ffc062f0: 38 80 00 67 li r4,103 <== NOT EXECUTED ffc062f4: 48 00 0c 3d bl ffc06f30 <__assert_func> <== NOT EXECUTED fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", ffc062f8: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc062fc: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc06300: 80 df 00 58 lwz r6,88(r31) <== NOT EXECUTED ffc06304: 38 84 a1 cc addi r4,r4,-24116 <== NOT EXECUTED ffc06308: 80 bf 00 54 lwz r5,84(r31) <== NOT EXECUTED ffc0630c: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc06310: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06314: 48 01 32 c1 bl ffc195d4 <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); ffc06318: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc0631c: 38 63 93 b0 addi r3,r3,-27728 <== NOT EXECUTED ffc06320: 48 01 55 e5 bl ffc1b904 <== NOT EXECUTED } ffc06324: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc06328: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc0632c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06330: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc06334: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc06338: 4e 80 00 20 blr <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", ffc0633c: 81 3e 27 4c lwz r9,10060(r30) ffc06340: 3c 80 ff c3 lis r4,-61 ffc06344: 80 bf 00 54 lwz r5,84(r31) ffc06348: 38 84 a1 dc addi r4,r4,-24100 ffc0634c: 80 69 00 08 lwz r3,8(r9) ffc06350: 4c c6 31 82 crclr 4*cr1+eq ffc06354: 48 01 32 81 bl ffc195d4 <== ALWAYS TAKEN default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); ffc06358: 3c 60 ff c3 lis r3,-61 ffc0635c: 38 63 93 b0 addi r3,r3,-27728 ffc06360: 48 01 55 a5 bl ffc1b904 <== ALWAYS TAKEN } ffc06364: 80 01 00 14 lwz r0,20(r1) ffc06368: 83 c1 00 08 lwz r30,8(r1) ffc0636c: 7c 08 03 a6 mtlr r0 ffc06370: 83 e1 00 0c lwz r31,12(r1) ffc06374: 38 21 00 10 addi r1,r1,16 ffc06378: 4e 80 00 20 blr <== ALWAYS TAKEN fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); ffc0637c: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc06380: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06384: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06388: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED ffc0638c: 38 a0 00 13 li r5,19 <== NOT EXECUTED ffc06390: 38 63 a1 e8 addi r3,r3,-24088 <== NOT EXECUTED ffc06394: 48 01 42 b1 bl ffc1a644 <== NOT EXECUTED assert(0); ffc06398: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc0639c: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc063a0: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc063a4: 38 63 a1 60 addi r3,r3,-24224 <== NOT EXECUTED ffc063a8: 38 a5 a1 38 addi r5,r5,-24264 <== NOT EXECUTED ffc063ac: 38 c6 a1 fc addi r6,r6,-24068 <== NOT EXECUTED ffc063b0: 38 80 00 62 li r4,98 <== NOT EXECUTED ffc063b4: 48 00 0b 7d bl ffc06f30 <__assert_func> <== NOT EXECUTED (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); ffc063b8: 81 3e 27 4c lwz r9,10060(r30) <== NOT EXECUTED ffc063bc: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc063c0: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc063c4: 80 c9 00 08 lwz r6,8(r9) <== NOT EXECUTED ffc063c8: 38 a0 00 13 li r5,19 <== NOT EXECUTED ffc063cc: 38 63 a1 e8 addi r3,r3,-24088 <== NOT EXECUTED ffc063d0: 48 01 42 75 bl ffc1a644 <== NOT EXECUTED assert(0); ffc063d4: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc063d8: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc063dc: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc063e0: 38 63 a1 60 addi r3,r3,-24224 <== NOT EXECUTED ffc063e4: 38 a5 a1 38 addi r5,r5,-24264 <== NOT EXECUTED ffc063e8: 38 c6 a1 fc addi r6,r6,-24068 <== NOT EXECUTED ffc063ec: 38 80 00 5d li r4,93 <== NOT EXECUTED ffc063f0: 48 00 0b 41 bl ffc06f30 <__assert_func> <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", ffc063f4: 81 3e 27 4c lwz r9,10060(r30) ffc063f8: 3c 80 ff c3 lis r4,-61 ffc063fc: 80 df 00 54 lwz r6,84(r31) ffc06400: 38 84 a1 b8 addi r4,r4,-24136 ffc06404: 80 bf 00 50 lwz r5,80(r31) ffc06408: 80 69 00 08 lwz r3,8(r9) ffc0640c: 4c c6 31 82 crclr 4*cr1+eq ffc06410: 48 01 31 c5 bl ffc195d4 <== ALWAYS TAKEN default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); ffc06414: 3c 60 ff c3 lis r3,-61 ffc06418: 38 63 93 b0 addi r3,r3,-27728 ffc0641c: 48 01 54 e9 bl ffc1b904 <== ALWAYS TAKEN } ffc06420: 80 01 00 14 lwz r0,20(r1) ffc06424: 83 c1 00 08 lwz r30,8(r1) ffc06428: 7c 08 03 a6 mtlr r0 ffc0642c: 83 e1 00 0c lwz r31,12(r1) ffc06430: 38 21 00 10 addi r1,r1,16 ffc06434: 4e 80 00 20 blr <== ALWAYS TAKEN assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); ffc06438: 81 3e 27 4c lwz r9,10060(r30) ffc0643c: 38 60 00 2f li r3,47 ffc06440: 80 89 00 08 lwz r4,8(r9) ffc06444: 48 01 32 a1 bl ffc196e4 <== ALWAYS TAKEN default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); ffc06448: 3c 60 ff c3 lis r3,-61 ffc0644c: 38 63 93 b0 addi r3,r3,-27728 ffc06450: 48 01 54 b5 bl ffc1b904 <== ALWAYS TAKEN } ffc06454: 80 01 00 14 lwz r0,20(r1) ffc06458: 83 c1 00 08 lwz r30,8(r1) ffc0645c: 7c 08 03 a6 mtlr r0 ffc06460: 83 e1 00 0c lwz r31,12(r1) ffc06464: 38 21 00 10 addi r1,r1,16 ffc06468: 4e 80 00 20 blr <== ALWAYS TAKEN void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); ffc0646c: 3c 60 ff c3 lis r3,-61 <== NOT EXECUTED ffc06470: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc06474: 3c c0 ff c3 lis r6,-61 <== NOT EXECUTED ffc06478: 38 63 a1 60 addi r3,r3,-24224 <== NOT EXECUTED ffc0647c: 38 a5 a1 38 addi r5,r5,-24264 <== NOT EXECUTED ffc06480: 38 c6 a1 ac addi r6,r6,-24148 <== NOT EXECUTED ffc06484: 38 80 00 38 li r4,56 <== NOT EXECUTED ffc06488: 48 00 0a a9 bl ffc06f30 <__assert_func> <== NOT EXECUTED ffc0542c : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { ffc0542c: 7c 08 02 a6 mflr r0 ffc05430: 94 21 ff f8 stwu r1,-8(r1) ffc05434: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; int i; node = loc->node_access; ffc05438: 81 23 00 00 lwz r9,0(r3) if ( node->type != IMFS_SYM_LINK ) ffc0543c: 80 09 00 4c lwz r0,76(r9) ffc05440: 2f 80 00 04 cmpwi cr7,r0,4 ffc05444: 40 9e 00 64 bne- cr7,ffc054a8 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc05448: 2f 85 00 00 cmpwi cr7,r5,0 ffc0544c: 41 9e 00 54 beq- cr7,ffc054a0 <== NEVER TAKEN ffc05450: 81 69 00 50 lwz r11,80(r9) ffc05454: 7c a9 03 a6 mtctr r5 int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc05458: 38 60 00 00 li r3,0 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc0545c: 88 0b 00 00 lbz r0,0(r11) int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc05460: 39 60 00 00 li r11,0 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc05464: 2f 80 00 00 cmpwi cr7,r0,0 ffc05468: 40 be 00 18 bne+ cr7,ffc05480 <== ALWAYS TAKEN ffc0546c: 48 00 00 34 b ffc054a0 <== NOT EXECUTED ffc05470: 81 49 00 50 lwz r10,80(r9) ffc05474: 7c 0a 18 ae lbzx r0,r10,r3 ffc05478: 2f 80 00 00 cmpwi cr7,r0,0 ffc0547c: 41 9e 00 14 beq- cr7,ffc05490 ffc05480: 38 63 00 01 addi r3,r3,1 buf[i] = node->info.sym_link.name[i]; ffc05484: 7c 04 59 ae stbx r0,r4,r11 node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) ffc05488: 7c 6b 1b 78 mr r11,r3 ffc0548c: 42 00 ff e4 bdnz+ ffc05470 buf[i] = node->info.sym_link.name[i]; return i; } ffc05490: 80 01 00 0c lwz r0,12(r1) ffc05494: 38 21 00 08 addi r1,r1,8 ffc05498: 7c 08 03 a6 mtlr r0 ffc0549c: 4e 80 00 20 blr <== ALWAYS TAKEN 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++ ) ffc054a0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc054a4: 4b ff ff ec b ffc05490 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc054a8: 48 01 4a a1 bl ffc19f48 <__errno> <== NOT EXECUTED ffc054ac: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc054b0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc054b4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc054b8: 4b ff ff d8 b ffc05490 <== NOT EXECUTED ffc054bc : 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 */ ) { ffc054bc: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc054c0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc054c4: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED ffc054c8: 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; ffc054cc: 83 e4 00 00 lwz r31,0(r4) <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); ffc054d0: 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 */ ) { ffc054d4: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc054d8: 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 ); ffc054dc: 38 7f 00 0c addi r3,r31,12 <== NOT EXECUTED ffc054e0: 38 a0 00 20 li r5,32 <== NOT EXECUTED ffc054e4: 48 01 5d c1 bl ffc1b2a4 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) ffc054e8: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc054ec: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc054f0: 41 9e 00 0c beq- cr7,ffc054fc <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc054f4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc054f8: 48 00 5f d1 bl ffc0b4c8 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; ffc054fc: 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 ); ffc05500: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED the_jnode->Parent = new_parent; ffc05504: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED ffc05508: 38 63 00 50 addi r3,r3,80 <== NOT EXECUTED ffc0550c: 48 00 5f 8d bl ffc0b498 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); ffc05510: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc05514: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05518: 48 00 0a 79 bl ffc05f90 <== NOT EXECUTED ffc0551c: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED return 0; } ffc05520: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc05524: 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 ); ffc05528: 90 1f 00 48 stw r0,72(r31) <== NOT EXECUTED return 0; } ffc0552c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc05530: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc05534: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc05538: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0553c: 4e 80 00 20 blr <== NOT EXECUTED ffc0dd50 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc0dd50: 94 21 ff e0 stwu r1,-32(r1) ffc0dd54: 7c 08 02 a6 mflr r0 ffc0dd58: 90 01 00 24 stw r0,36(r1) ffc0dd5c: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc0dd60: 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 */ ) { ffc0dd64: 93 c1 00 18 stw r30,24(r1) ffc0dd68: 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 ) { ffc0dd6c: 80 1f 00 08 lwz r0,8(r31) ffc0dd70: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dd74: 41 9e 00 14 beq- cr7,ffc0dd88 <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0dd78: 7f e3 fb 78 mr r3,r31 ffc0dd7c: 48 00 19 7d bl ffc0f6f8 <_Chain_Extract> <== ALWAYS TAKEN rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc0dd80: 38 00 00 00 li r0,0 ffc0dd84: 90 1f 00 08 stw r0,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0dd88: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc0dd8c: 38 80 00 00 li r4,0 ffc0dd90: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc0dd94: 38 09 ff ff addi r0,r9,-1 ffc0dd98: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc0dd9c: 48 00 04 01 bl ffc0e19c <== ALWAYS TAKEN ffc0dda0: 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) ) { ffc0dda4: 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 ); ffc0dda8: 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) ) { ffc0ddac: 48 00 04 e1 bl ffc0e28c <== ALWAYS TAKEN ffc0ddb0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ddb4: 40 9e 00 3c bne- cr7,ffc0ddf0 <== NEVER TAKEN ffc0ddb8: a0 1f 00 34 lhz r0,52(r31) ffc0ddbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ddc0: 40 9e 00 30 bne- cr7,ffc0ddf0 <== NEVER TAKEN /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc0ddc4: 3d 20 00 00 lis r9,0 ffc0ddc8: 81 7e 00 00 lwz r11,0(r30) ffc0ddcc: 81 29 26 dc lwz r9,9948(r9) ffc0ddd0: 81 49 00 04 lwz r10,4(r9) ffc0ddd4: 7f 8a 58 00 cmpw cr7,r10,r11 ffc0ddd8: 41 9e 00 48 beq- cr7,ffc0de20 <== NEVER TAKEN /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { ffc0dddc: 80 1f 00 4c lwz r0,76(r31) ffc0dde0: 2f 80 00 04 cmpwi cr7,r0,4 ffc0dde4: 41 9e 00 28 beq- cr7,ffc0de0c if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); ffc0dde8: 7f e3 fb 78 mr r3,r31 ffc0ddec: 4b ff 66 7d bl ffc04468 <== ALWAYS TAKEN } return 0; } ffc0ddf0: 80 01 00 24 lwz r0,36(r1) ffc0ddf4: 38 60 00 00 li r3,0 ffc0ddf8: 83 c1 00 18 lwz r30,24(r1) ffc0ddfc: 7c 08 03 a6 mtlr r0 ffc0de00: 83 e1 00 1c lwz r31,28(r1) ffc0de04: 38 21 00 20 addi r1,r1,32 ffc0de08: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) ffc0de0c: 80 7f 00 50 lwz r3,80(r31) ffc0de10: 2f 83 00 00 cmpwi cr7,r3,0 ffc0de14: 41 be ff d4 beq- cr7,ffc0dde8 <== NEVER TAKEN free( (void*) the_jnode->info.sym_link.name ); ffc0de18: 4b ff 66 51 bl ffc04468 <== ALWAYS TAKEN ffc0de1c: 4b ff ff cc b ffc0dde8 <== ALWAYS TAKEN /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; ffc0de20: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED ffc0de24: 4b ff ff b8 b ffc0dddc <== NOT EXECUTED ffc0de28 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { ffc0de28: 7c 08 02 a6 mflr r0 ffc0de2c: 94 21 ff f8 stwu r1,-8(r1) ffc0de30: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; ffc0de34: 81 23 00 00 lwz r9,0(r3) switch ( the_jnode->type ) { ffc0de38: 80 09 00 4c lwz r0,76(r9) ffc0de3c: 2b 80 00 07 cmplwi cr7,r0,7 ffc0de40: 40 9d 00 24 ble- cr7,ffc0de64 <== ALWAYS TAKEN case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0de44: 48 00 55 35 bl ffc13378 <__errno> <== NOT EXECUTED ffc0de48: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0de4c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0de50: 38 60 ff ff li r3,-1 <== NOT EXECUTED buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } ffc0de54: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0de58: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc0de5c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0de60: 4e 80 00 20 blr <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { ffc0de64: 3d 60 ff c2 lis r11,-62 ffc0de68: 39 6b f9 b4 addi r11,r11,-1612 ffc0de6c: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0de70: 7c 0b 00 2e lwzx r0,r11,r0 ffc0de74: 7d 60 5a 14 add r11,r0,r11 ffc0de78: 7d 69 03 a6 mtctr r11 ffc0de7c: 4e 80 04 20 bctr <== ALWAYS TAKEN case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; ffc0de80: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc0de84: 39 80 00 00 li r12,0 <== NOT EXECUTED ffc0de88: 91 64 00 20 stw r11,32(r4) <== NOT EXECUTED ffc0de8c: 91 84 00 24 stw r12,36(r4) <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; ffc0de90: 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; ffc0de94: 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; ffc0de98: a1 69 00 34 lhz r11,52(r9) buf->st_ino = the_jnode->st_ino; ffc0de9c: 90 04 00 08 stw r0,8(r4) rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; ffc0dea0: 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; ffc0dea4: 80 09 00 40 lwz r0,64(r9) } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; ffc0dea8: a1 69 00 3c lhz r11,60(r9) buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; ffc0deac: 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; ffc0deb0: 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; ffc0deb4: 80 09 00 44 lwz r0,68(r9) default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; ffc0deb8: 81 69 00 30 lwz r11,48(r9) buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; ffc0debc: 90 04 00 30 stw r0,48(r4) buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; ffc0dec0: 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; ffc0dec4: 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; ffc0dec8: 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; } ffc0decc: 80 01 00 0c lwz r0,12(r1) ffc0ded0: 38 21 00 08 addi r1,r1,8 buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; ffc0ded4: 91 44 00 38 stw r10,56(r4) return 0; } ffc0ded8: 7c 08 03 a6 mtlr r0 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; ffc0dedc: 91 64 00 0c stw r11,12(r4) buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; } ffc0dee0: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); ffc0dee4: 81 69 00 54 lwz r11,84(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc0dee8: 80 09 00 50 lwz r0,80(r9) ffc0deec: 91 64 00 1c stw r11,28(r4) ffc0def0: 90 04 00 18 stw r0,24(r4) break; ffc0def4: 4b ff ff 9c b ffc0de90 <== ALWAYS TAKEN case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; ffc0def8: 81 69 00 50 lwz r11,80(r9) ffc0defc: 81 89 00 54 lwz r12,84(r9) ffc0df00: 91 64 00 20 stw r11,32(r4) ffc0df04: 91 84 00 24 stw r12,36(r4) break; ffc0df08: 4b ff ff 88 b ffc0de90 <== ALWAYS TAKEN ffc05540 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { ffc05540: 94 21 ff 98 stwu r1,-104(r1) ffc05544: 7c 08 02 a6 mflr r0 ffc05548: 93 a1 00 5c stw r29,92(r1) ffc0554c: 7c 7d 1b 78 mr r29,r3 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); ffc05550: 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 ) { ffc05554: 90 01 00 6c stw r0,108(r1) ffc05558: 93 81 00 58 stw r28,88(r1) ffc0555c: 7c bc 2b 78 mr r28,r5 ffc05560: 93 c1 00 60 stw r30,96(r1) ffc05564: 7c 9e 23 78 mr r30,r4 ffc05568: 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 ); ffc0556c: 48 01 5c 9d bl ffc1b208 <== ALWAYS TAKEN ffc05570: 3b e1 00 28 addi r31,r1,40 ffc05574: 7c 64 1b 78 mr r4,r3 ffc05578: 7f e5 fb 78 mr r5,r31 ffc0557c: 38 c1 00 08 addi r6,r1,8 ffc05580: 7f 83 e3 78 mr r3,r28 ffc05584: 48 00 ea e1 bl ffc14064 <== ALWAYS TAKEN /* * Duplicate link name */ info.sym_link.name = strdup(link_name); ffc05588: 7f c3 f3 78 mr r3,r30 ffc0558c: 48 01 5b e5 bl ffc1b170 <== ALWAYS TAKEN if (info.sym_link.name == NULL) { ffc05590: 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); ffc05594: 90 61 00 10 stw r3,16(r1) if (info.sym_link.name == NULL) { ffc05598: 41 9e 00 54 beq- cr7,ffc055ec <== 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( ffc0559c: 38 c0 00 00 li r6,0 ffc055a0: 7f a3 eb 78 mr r3,r29 ffc055a4: 7f e5 fb 78 mr r5,r31 ffc055a8: 60 c6 a1 ff ori r6,r6,41471 ffc055ac: 38 80 00 04 li r4,4 ffc055b0: 38 e1 00 10 addi r7,r1,16 ffc055b4: 48 00 da 11 bl ffc12fc4 <== ALWAYS TAKEN new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { ffc055b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc055bc: 38 60 00 00 li r3,0 ffc055c0: 41 9e 00 24 beq- cr7,ffc055e4 <== NEVER TAKEN free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } ffc055c4: 80 01 00 6c lwz r0,108(r1) ffc055c8: 83 81 00 58 lwz r28,88(r1) ffc055cc: 7c 08 03 a6 mtlr r0 ffc055d0: 83 a1 00 5c lwz r29,92(r1) ffc055d4: 83 c1 00 60 lwz r30,96(r1) ffc055d8: 83 e1 00 64 lwz r31,100(r1) ffc055dc: 38 21 00 68 addi r1,r1,104 ffc055e0: 4e 80 00 20 blr <== ALWAYS TAKEN ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); ffc055e4: 80 61 00 10 lwz r3,16(r1) <== NOT EXECUTED ffc055e8: 48 00 08 e1 bl ffc05ec8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); ffc055ec: 48 01 49 5d bl ffc19f48 <__errno> <== NOT EXECUTED ffc055f0: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc055f4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc055f8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc055fc: 4b ff ff c8 b ffc055c4 <== NOT EXECUTED ffc05600 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { ffc05600: 94 21 ff c8 stwu r1,-56(r1) ffc05604: 7c 08 02 a6 mflr r0 ffc05608: 90 01 00 3c stw r0,60(r1) ffc0560c: 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; ffc05610: 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 */ ) { ffc05614: 93 a1 00 2c stw r29,44(r1) ffc05618: 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 ) { ffc0561c: 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 */ ) { ffc05620: 93 e1 00 34 stw r31,52(r1) ffc05624: 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 ) { ffc05628: 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 */ ) { ffc0562c: 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 ) { ffc05630: 41 9e 00 3c beq- cr7,ffc0566c /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); ffc05634: 81 3f 00 08 lwz r9,8(r31) ffc05638: 7f a3 eb 78 mr r3,r29 ffc0563c: 7f e4 fb 78 mr r4,r31 ffc05640: 80 09 00 34 lwz r0,52(r9) ffc05644: 7c 09 03 a6 mtctr r0 ffc05648: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc0564c: 80 01 00 3c lwz r0,60(r1) ffc05650: 83 81 00 28 lwz r28,40(r1) ffc05654: 7c 08 03 a6 mtlr r0 ffc05658: 83 a1 00 2c lwz r29,44(r1) ffc0565c: 83 c1 00 30 lwz r30,48(r1) ffc05660: 83 e1 00 34 lwz r31,52(r1) ffc05664: 38 21 00 38 addi r1,r1,56 ffc05668: 4e 80 00 20 blr <== ALWAYS TAKEN * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) ffc0566c: 80 1e 00 50 lwz r0,80(r30) ffc05670: 2f 80 00 00 cmpwi cr7,r0,0 ffc05674: 41 9e 00 90 beq- cr7,ffc05704 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; the_link.node_access = node->info.hard_link.link_node; ffc05678: 7c 3c 0b 78 mr r28,r1 ffc0567c: 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; ffc05680: 81 64 00 08 lwz r11,8(r4) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc05684: 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; ffc05688: 81 24 00 0c lwz r9,12(r4) ffc0568c: 81 44 00 04 lwz r10,4(r4) ffc05690: 80 04 00 10 lwz r0,16(r4) ffc05694: 91 61 00 18 stw r11,24(r1) ffc05698: 91 21 00 1c stw r9,28(r1) ffc0569c: 91 41 00 14 stw r10,20(r1) ffc056a0: 90 01 00 20 stw r0,32(r1) the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); ffc056a4: 48 00 da a5 bl ffc13148 <== 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) ffc056a8: 81 3e 00 50 lwz r9,80(r30) ffc056ac: a1 69 00 34 lhz r11,52(r9) ffc056b0: 2f 8b 00 01 cmpwi cr7,r11,1 ffc056b4: 41 9e 00 28 beq- cr7,ffc056dc if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; ffc056b8: 39 6b ff ff addi r11,r11,-1 ffc056bc: b1 69 00 34 sth r11,52(r9) IMFS_update_ctime( node->info.hard_link.link_node ); ffc056c0: 38 61 00 08 addi r3,r1,8 ffc056c4: 38 80 00 00 li r4,0 ffc056c8: 48 00 08 c9 bl ffc05f90 <== ALWAYS TAKEN ffc056cc: 81 3e 00 50 lwz r9,80(r30) ffc056d0: 80 01 00 08 lwz r0,8(r1) ffc056d4: 90 09 00 48 stw r0,72(r9) ffc056d8: 4b ff ff 5c b ffc05634 <== ALWAYS TAKEN * to remove the node that is a link and the node itself. */ if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); ffc056dc: 81 21 00 18 lwz r9,24(r1) ffc056e0: 7f 84 e3 78 mr r4,r28 ffc056e4: 7f a3 eb 78 mr r3,r29 ffc056e8: 80 09 00 34 lwz r0,52(r9) ffc056ec: 7c 09 03 a6 mtctr r0 ffc056f0: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( result != 0 ) ffc056f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc056f8: 38 60 ff ff li r3,-1 ffc056fc: 41 9e ff 38 beq+ cr7,ffc05634 ffc05700: 4b ff ff 4c b ffc0564c <== ALWAYS TAKEN */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc05704: 48 01 48 45 bl ffc19f48 <__errno> <== NOT EXECUTED ffc05708: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0570c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05710: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05714: 4b ff ff 38 b ffc0564c <== NOT EXECUTED ffc05718 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { ffc05718: 7c 08 02 a6 mflr r0 ffc0571c: 94 21 ff f8 stwu r1,-8(r1) ffc05720: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; ffc05724: 81 23 00 08 lwz r9,8(r3) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) ffc05728: 80 09 00 4c lwz r0,76(r9) ffc0572c: 2f 80 00 01 cmpwi cr7,r0,1 ffc05730: 40 9e 00 2c bne- cr7,ffc0575c <== NEVER TAKEN /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) ffc05734: 80 09 00 5c lwz r0,92(r9) ffc05738: 2f 80 00 00 cmpwi cr7,r0,0 ffc0573c: 41 9e 00 34 beq- cr7,ffc05770 <== NEVER TAKEN /* * 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; ffc05740: 38 00 00 00 li r0,0 ffc05744: 90 09 00 5c stw r0,92(r9) ffc05748: 38 60 00 00 li r3,0 return 0; } ffc0574c: 80 01 00 0c lwz r0,12(r1) ffc05750: 38 21 00 08 addi r1,r1,8 ffc05754: 7c 08 03 a6 mtlr r0 ffc05758: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0575c: 48 01 47 ed bl ffc19f48 <__errno> <== NOT EXECUTED ffc05760: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc05764: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc05768: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0576c: 4b ff ff e0 b ffc0574c <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ ffc05770: 48 01 47 d9 bl ffc19f48 <__errno> <== NOT EXECUTED ffc05774: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc05778: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0577c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc05780: 4b ff ff cc b ffc0574c <== NOT EXECUTED ffc05784 : time_t modtime /* IN */ ) { IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc05784: 81 23 00 00 lwz r9,0(r3) the_jnode->stat_atime = actime; the_jnode->stat_mtime = modtime; return 0; } ffc05788: 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; ffc0578c: 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; ffc05790: 90 89 00 40 stw r4,64(r9) the_jnode->stat_mtime = modtime; return 0; } ffc05794: 4e 80 00 20 blr <== ALWAYS TAKEN ffc046cc : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc046cc: 3d 20 00 00 lis r9,0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc046d0: 94 21 ff e8 stwu r1,-24(r1) ffc046d4: 7c 08 02 a6 mflr r0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc046d8: 81 29 27 08 lwz r9,9992(r9) void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc046dc: 93 a1 00 0c stw r29,12(r1) <== ALWAYS TAKEN ffc046e0: 7c 9d 23 78 mr r29,r4 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc046e4: 2f 89 00 00 cmpwi cr7,r9,0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { ffc046e8: 93 c1 00 10 stw r30,16(r1) ffc046ec: 7c 7e 1b 78 mr r30,r3 <== ALWAYS TAKEN ffc046f0: 93 e1 00 14 stw r31,20(r1) ffc046f4: 7c bf 2b 78 mr r31,r5 ffc046f8: 90 01 00 1c stw r0,28(r1) ffc046fc: 93 81 00 08 stw r28,8(r1) #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { ffc04700: 41 9e 00 10 beq- cr7,ffc04710 <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->initialize)(); ffc04704: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc04708: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0470c: 4e 80 04 21 bctrl <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); ffc04710: 4b ff ff 2d bl ffc0463c <== ALWAYS TAKEN /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { ffc04714: 3d 20 00 00 lis r9,0 ffc04718: 81 29 27 0c lwz r9,9996(r9) ffc0471c: 2f 89 00 00 cmpwi cr7,r9,0 ffc04720: 41 9e 00 24 beq- cr7,ffc04744 <== ALWAYS TAKEN void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( ffc04724: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc04728: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0472c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc04730: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; ffc04734: 7f be ea 14 add r29,r30,r29 <== NOT EXECUTED /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( ffc04738: 4e 80 04 21 bctrl <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; ffc0473c: 7f a3 e8 50 subf r29,r3,r29 <== NOT EXECUTED ffc04740: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED * of the time under UNIX because zero'ing memory when it is first * given to a process eliminates the chance of a process seeing data * left over from another process. This would be a security violation. */ if ( ffc04744: 3f 80 00 00 lis r28,0 ffc04748: 88 1c 27 05 lbz r0,9989(r28) <== ALWAYS TAKEN ffc0474c: 3f e0 00 00 lis r31,0 <== ALWAYS TAKEN ffc04750: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc04754: 40 9e 00 34 bne- cr7,ffc04788 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ffc04758: 3d 20 00 00 lis r9,0 ffc0475c: 88 09 20 c8 lbz r0,8392(r9) ffc04760: 2f 80 00 00 cmpwi cr7,r0,0 ffc04764: 40 9e 00 5c bne- cr7,ffc047c0 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); ffc04768: 3f e0 00 00 lis r31,0 ffc0476c: 80 7f 26 9c lwz r3,9884(r31) <== ALWAYS TAKEN ffc04770: 7f c4 f3 78 mr r4,r30 <== ALWAYS TAKEN ffc04774: 7f a5 eb 78 mr r5,r29 ffc04778: 38 c0 00 08 li r6,8 ffc0477c: 48 00 52 6d bl ffc099e8 <_Heap_Initialize> <== ALWAYS TAKEN RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { ffc04780: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc04784: 41 9e 00 5c beq- cr7,ffc047e0 <== NEVER TAKEN rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); ffc04788: 80 7f 26 9c lwz r3,9884(r31) ffc0478c: 3f e0 00 00 lis r31,0 ffc04790: 83 df 2b 00 lwz r30,11008(r31) ffc04794: 48 00 61 09 bl ffc0a89c <_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 } ffc04798: 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) ); ffc0479c: 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 } ffc047a0: 83 81 00 08 lwz r28,8(r1) ffc047a4: 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) ); ffc047a8: 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 } ffc047ac: 83 a1 00 0c lwz r29,12(r1) ffc047b0: 83 c1 00 10 lwz r30,16(r1) ffc047b4: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc047b8: 38 21 00 18 addi r1,r1,24 ffc047bc: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); ffc047c0: 7f c3 f3 78 mr r3,r30 ffc047c4: 38 80 00 00 li r4,0 ffc047c8: 7f a5 eb 78 mr r5,r29 ffc047cc: 48 00 f8 95 bl ffc14060 <== 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 ) { ffc047d0: 88 1c 27 05 lbz r0,9989(r28) ffc047d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc047d8: 41 9e ff 90 beq+ cr7,ffc04768 <== ALWAYS TAKEN ffc047dc: 4b ff ff ac b ffc04788 <== NOT EXECUTED heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); ffc047e0: 38 60 00 1a li r3,26 <== NOT EXECUTED ffc047e4: 48 00 46 c9 bl ffc08eac <== NOT EXECUTED ffc067ac : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { ffc067ac: 7d 80 00 26 mfcr r12 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) ffc067b0: 2e 03 00 00 cmpwi cr4,r3,0 <== NOT EXECUTED static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { ffc067b4: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc067b8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc067bc: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) ffc067c0: 7c 78 1b 78 mr r24,r3 <== NOT EXECUTED static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { ffc067c4: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc067c8: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED ffc067cc: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc067d0: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED ffc067d4: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED ffc067d8: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED ffc067dc: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc067e0: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED ffc067e4: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc067e8: 91 81 00 18 stw r12,24(r1) <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) ffc067ec: 41 92 00 fc beq- cr4,ffc068e8 <== NOT EXECUTED return; if ( !print_handler ) ffc067f0: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc067f4: 3b fd 37 68 addi r31,r29,14184 <== NOT EXECUTED ffc067f8: 83 5f 00 04 lwz r26,4(r31) <== NOT EXECUTED ffc067fc: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc06800: 41 9e 00 e8 beq- cr7,ffc068e8 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { ffc06804: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED ffc06808: 41 9e 01 74 beq- cr7,ffc0697c <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; ffc0680c: 3b 63 00 cc addi r27,r3,204 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); ffc06810: 83 23 00 dc lwz r25,220(r3) <== NOT EXECUTED } low = Stack_check_usable_stack_start(stack); ffc06814: 82 fb 00 04 lwz r23,4(r27) <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc06818: 83 9b 00 00 lwz r28,0(r27) <== NOT EXECUTED } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); ffc0681c: 3a f7 00 80 addi r23,r23,128 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc06820: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); ffc06824: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED ffc06828: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc0682c: 4b ff ff 31 bl ffc0675c <== NOT EXECUTED if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc06830: 7f d7 e2 14 add r30,r23,r28 <== NOT EXECUTED low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) ffc06834: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED ffc06838: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED ffc0683c: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc06840: 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 ) ffc06844: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED ffc06848: 7f de 00 38 and r30,r30,r0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { ffc0684c: 41 92 01 8c beq- cr4,ffc069d8 <== NOT EXECUTED (*print_handler)( ffc06850: 83 18 00 08 lwz r24,8(r24) <== NOT EXECUTED ffc06854: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc06858: 82 ff 00 08 lwz r23,8(r31) <== NOT EXECUTED ffc0685c: 38 80 00 05 li r4,5 <== NOT EXECUTED ffc06860: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED ffc06864: 48 00 79 bd bl ffc0e220 <== NOT EXECUTED ffc06868: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc0686c: 7c 66 1b 78 mr r6,r3 <== NOT EXECUTED ffc06870: 7f 49 03 a6 mtctr r26 <== NOT EXECUTED ffc06874: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED ffc06878: 38 84 b1 64 addi r4,r4,-20124 <== NOT EXECUTED ffc0687c: 7f 05 c3 78 mr r5,r24 <== NOT EXECUTED ffc06880: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06884: 4e 80 04 21 bctrl <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( ffc06888: 80 db 00 00 lwz r6,0(r27) <== NOT EXECUTED ffc0688c: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06890: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06894: 38 84 b1 84 addi r4,r4,-20092 <== NOT EXECUTED ffc06898: 80 bb 00 04 lwz r5,4(r27) <== NOT EXECUTED ffc0689c: 38 c6 ff ff addi r6,r6,-1 <== NOT EXECUTED ffc068a0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc068a4: 7f 27 cb 78 mr r7,r25 <== NOT EXECUTED ffc068a8: 7c c5 32 14 add r6,r5,r6 <== NOT EXECUTED ffc068ac: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc068b0: 7f 88 e3 78 mr r8,r28 <== NOT EXECUTED ffc068b4: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc068b8: 4e 80 04 21 bctrl <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { ffc068bc: 80 1d 37 68 lwz r0,14184(r29) <== NOT EXECUTED ffc068c0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc068c4: 41 9e 00 60 beq- cr7,ffc06924 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); ffc068c8: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc068cc: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc068d0: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc068d4: 38 84 b1 b4 addi r4,r4,-20044 <== NOT EXECUTED ffc068d8: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc068dc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc068e0: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc068e4: 4e 80 04 21 bctrl <== NOT EXECUTED } } ffc068e8: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc068ec: 81 81 00 18 lwz r12,24(r1) <== NOT EXECUTED ffc068f0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc068f4: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc068f8: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc068fc: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc06900: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc06904: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc06908: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc0690c: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc06910: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc06914: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc06918: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc0691c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc06920: 4e 80 00 20 blr <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); ffc06924: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc06928: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc0692c: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc06930: 38 84 b1 a4 addi r4,r4,-20060 <== NOT EXECUTED ffc06934: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06938: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0693c: 4e 80 04 21 bctrl <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); } } ffc06940: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc06944: 81 81 00 18 lwz r12,24(r1) <== NOT EXECUTED ffc06948: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0694c: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc06950: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc06954: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc06958: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc0695c: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc06960: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc06964: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc06968: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc0696c: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc06970: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc06974: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc06978: 4e 80 00 20 blr <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { ffc0697c: 3f 60 00 00 lis r27,0 <== NOT EXECUTED ffc06980: 3b 7b 35 e8 addi r27,r27,13800 <== NOT EXECUTED ffc06984: 80 1b 00 04 lwz r0,4(r27) <== NOT EXECUTED ffc06988: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0698c: 41 be ff 5c beq- cr7,ffc068e8 <== 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); ffc06990: 82 fb 00 04 lwz r23,4(r27) <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { ffc06994: 3b 20 00 00 li r25,0 <== NOT EXECUTED stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); ffc06998: 83 9b 00 00 lwz r28,0(r27) <== NOT EXECUTED ffc0699c: 2e 19 00 00 cmpwi cr4,r25,0 <== NOT EXECUTED } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); ffc069a0: 3a f7 00 80 addi r23,r23,128 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); ffc069a4: 3b 9c ff 80 addi r28,r28,-128 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); ffc069a8: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED ffc069ac: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc069b0: 4b ff fd ad bl ffc0675c <== NOT EXECUTED if ( high_water_mark ) used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc069b4: 7f d7 e2 14 add r30,r23,r28 <== NOT EXECUTED low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) ffc069b8: 7c 69 fe 70 srawi r9,r3,31 <== NOT EXECUTED ffc069bc: 7d 20 1a 78 xor r0,r9,r3 <== NOT EXECUTED ffc069c0: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); ffc069c4: 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 ) ffc069c8: 7c 00 fe 70 srawi r0,r0,31 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { ffc069cc: 3b 00 00 00 li r24,0 <== NOT EXECUTED low = Stack_check_usable_stack_start(stack); size = Stack_check_usable_stack_size(stack); high_water_mark = Stack_check_find_high_water_mark(low, size); if ( high_water_mark ) ffc069d0: 7f de 00 38 and r30,r30,r0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); else used = 0; if ( the_thread ) { ffc069d4: 40 92 fe 7c bne+ cr4,ffc06850 <== 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 ); ffc069d8: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc069dc: 80 7f 00 08 lwz r3,8(r31) <== NOT EXECUTED ffc069e0: 38 84 b1 74 addi r4,r4,-20108 <== NOT EXECUTED ffc069e4: 7f 49 03 a6 mtctr r26 <== NOT EXECUTED ffc069e8: 38 a0 ff ff li r5,-1 <== NOT EXECUTED ffc069ec: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc069f0: 4e 80 04 21 bctrl <== NOT EXECUTED ffc069f4: 4b ff fe 94 b ffc06888 <== NOT EXECUTED ffc066cc : static uint32_t pattern[ 4 ] = { 0xFEEDF00D, 0x0BAD0D06, /* FEED FOOD to BAD DOG */ 0xDEADF00D, 0x600D0D06 /* DEAD FOOD but GOOD DOG */ }; if (Stack_check_Initialized) ffc066cc: 3c e0 00 00 lis r7,0 ffc066d0: 80 07 37 68 lwz r0,14184(r7) ffc066d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc066d8: 4c 9e 00 20 bnelr cr7 ffc066dc: 38 00 00 20 li r0,32 ffc066e0: 7c 09 03 a6 mtctr r0 ffc066e4: 3d 00 00 00 lis r8,0 ffc066e8: 3d 40 ff c7 lis r10,-57 ffc066ec: 39 08 63 14 addi r8,r8,25364 ffc066f0: 39 4a b1 54 addi r10,r10,-20140 ffc066f4: 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 ]; ffc066f8: 55 20 17 3a rlwinm r0,r9,2,28,29 ffc066fc: 7d 6a 00 2e lwzx r11,r10,r0 ffc06700: 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++ ) { ffc06704: 39 29 00 01 addi r9,r9,1 p[i] = pattern[ i%4 ]; ffc06708: 7d 68 01 2e stwx r11,r8,r0 /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { ffc0670c: 42 00 ff ec bdnz+ ffc066f8 (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); } #endif Stack_check_Initialized = 1; ffc06710: 38 00 00 01 li r0,1 ffc06714: 90 07 37 68 stw r0,14184(r7) ffc06718: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0675c : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; ffc0675c: 39 23 00 80 addi r9,r3,128 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) ffc06760: 54 8b 00 3a rlwinm r11,r4,0,0,29 <== NOT EXECUTED ffc06764: 7d 69 5a 14 add r11,r9,r11 <== NOT EXECUTED ffc06768: 7f 89 58 40 cmplw cr7,r9,r11 <== NOT EXECUTED ffc0676c: 40 9c 00 30 bge- cr7,ffc0679c <== NOT EXECUTED if (*base != U32_PATTERN) ffc06770: 81 43 00 80 lwz r10,128(r3) <== NOT EXECUTED ffc06774: 6d 40 5a 5a xoris r0,r10,23130 <== NOT EXECUTED ffc06778: 2f 80 a5 a5 cmpwi cr7,r0,-23131 <== NOT EXECUTED ffc0677c: 41 9e 00 14 beq- cr7,ffc06790 <== NOT EXECUTED ffc06780: 48 00 00 24 b ffc067a4 <== NOT EXECUTED ffc06784: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc06788: 7f 80 50 00 cmpw cr7,r0,r10 <== NOT EXECUTED ffc0678c: 40 9e 00 18 bne- cr7,ffc067a4 <== 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++) ffc06790: 39 29 00 04 addi r9,r9,4 <== NOT EXECUTED ffc06794: 7f 8b 48 40 cmplw cr7,r11,r9 <== NOT EXECUTED ffc06798: 41 9d ff ec bgt+ cr7,ffc06784 <== NOT EXECUTED ffc0679c: 38 60 00 00 li r3,0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } ffc067a0: 4e 80 00 20 blr <== NOT EXECUTED */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) return (void *) base; ffc067a4: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc067a8: 4e 80 00 20 blr <== NOT EXECUTED ffc06aa0 : * * 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) { ffc06aa0: 94 21 ff c8 stwu r1,-56(r1) ffc06aa4: 7c 08 02 a6 mflr r0 ffc06aa8: 93 a1 00 2c stw r29,44(r1) ffc06aac: 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"); ffc06ab0: 3c 60 ff c7 lis r3,-57 * * 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) { ffc06ab4: 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"); ffc06ab8: 38 63 b2 20 addi r3,r3,-19936 * * 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) { ffc06abc: 93 c1 00 30 stw r30,48(r1) ffc06ac0: 93 e1 00 34 stw r31,52(r1) ffc06ac4: 7c 9f 23 78 mr r31,r4 Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); ffc06ac8: 83 dd 00 d0 lwz r30,208(r29) char name [32]; printk("BLOWN STACK!!!\n"); ffc06acc: 4c c6 31 82 crclr 4*cr1+eq ffc06ad0: 48 00 39 fd bl ffc0a4cc <== ALWAYS TAKEN printk("task control block: 0x%08lx\n", (unsigned long) running); ffc06ad4: 3c 60 ff c7 lis r3,-57 ffc06ad8: 38 63 b2 30 addi r3,r3,-19920 ffc06adc: 7f a4 eb 78 mr r4,r29 ffc06ae0: 4c c6 31 82 crclr 4*cr1+eq ffc06ae4: 48 00 39 e9 bl ffc0a4cc <== ALWAYS TAKEN printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); ffc06ae8: 80 9d 00 08 lwz r4,8(r29) ffc06aec: 3c 60 ff c7 lis r3,-57 ffc06af0: 38 63 b2 50 addi r3,r3,-19888 ffc06af4: 4c c6 31 82 crclr 4*cr1+eq ffc06af8: 48 00 39 d5 bl ffc0a4cc <== ALWAYS TAKEN printk( ffc06afc: 80 9d 00 0c lwz r4,12(r29) ffc06b00: 3c 60 ff c7 lis r3,-57 ffc06b04: 38 63 b2 64 addi r3,r3,-19868 ffc06b08: 4c c6 31 82 crclr 4*cr1+eq ffc06b0c: 48 00 39 c1 bl ffc0a4cc <== ALWAYS TAKEN "task name: 0x%08lx\n", (unsigned long) running->Object.name.name_u32 ); printk( ffc06b10: 80 7d 00 08 lwz r3,8(r29) ffc06b14: 38 a1 00 08 addi r5,r1,8 ffc06b18: 38 80 00 20 li r4,32 ffc06b1c: 48 00 77 05 bl ffc0e220 <== ALWAYS TAKEN ffc06b20: 7c 64 1b 78 mr r4,r3 ffc06b24: 3c 60 ff c7 lis r3,-57 ffc06b28: 38 63 b2 78 addi r3,r3,-19848 ffc06b2c: 4c c6 31 82 crclr 4*cr1+eq ffc06b30: 48 00 39 9d bl ffc0a4cc <== 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) ffc06b34: 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( ffc06b38: 80 bd 00 d0 lwz r5,208(r29) ffc06b3c: 3c 60 ff c7 lis r3,-57 ffc06b40: 38 63 b2 90 addi r3,r3,-19824 ffc06b44: 7c c5 22 14 add r6,r5,r4 ffc06b48: 4c c6 31 82 crclr 4*cr1+eq ffc06b4c: 48 00 39 81 bl ffc0a4cc <== 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) { ffc06b50: 2f 9f 00 00 cmpwi cr7,r31,0 ffc06b54: 41 9e 00 0c beq- cr7,ffc06b60 <== ALWAYS TAKEN rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); ffc06b58: 38 60 00 81 li r3,129 ffc06b5c: 48 00 83 09 bl ffc0ee64 <== ALWAYS TAKEN (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( ffc06b60: 3c 60 ff c7 lis r3,-57 ffc06b64: 38 63 b2 c4 addi r3,r3,-19772 ffc06b68: 38 de 00 88 addi r6,r30,136 ffc06b6c: 38 80 00 80 li r4,128 ffc06b70: 38 be 00 08 addi r5,r30,8 ffc06b74: 4c c6 31 82 crclr 4*cr1+eq ffc06b78: 48 00 39 55 bl ffc0a4cc <== ALWAYS TAKEN ffc06b7c: 4b ff ff dc b ffc06b58 <== ALWAYS TAKEN ffc112c0 : #include uint32_t TOD_MICROSECONDS_TO_TICKS( uint32_t microseconds ) { ffc112c0: 3d 20 00 00 lis r9,0 ffc112c4: 80 09 20 c4 lwz r0,8388(r9) return (microseconds / rtems_configuration_get_microseconds_per_tick()); } ffc112c8: 7c 63 03 96 divwu r3,r3,r0 ffc112cc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a974 : #include uint32_t TOD_MILLISECONDS_TO_TICKS( uint32_t milliseconds ) { ffc0a974: 3d 20 00 00 lis r9,0 ffc0a978: 81 29 20 ac lwz r9,8364(r9) ffc0a97c: 3c 00 10 62 lis r0,4194 ffc0a980: 60 00 4d d3 ori r0,r0,19923 ffc0a984: 7c 09 00 16 mulhwu r0,r9,r0 ffc0a988: 54 00 d1 be rlwinm r0,r0,26,6,31 return (milliseconds / rtems_configuration_get_milliseconds_per_tick()); } ffc0a98c: 7c 63 03 96 divwu r3,r3,r0 ffc0a990: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1247c : #include #include #include uint32_t TOD_TICKS_PER_SECOND_method(void) { ffc1247c: 3d 20 00 00 lis r9,0 ffc12480: 80 09 20 ac lwz r0,8364(r9) ffc12484: 3c 60 00 0f lis r3,15 ffc12488: 60 63 42 40 ori r3,r3,16960 return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); } ffc1248c: 7c 63 03 96 divwu r3,r3,r0 ffc12490: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09204 <_API_Mutex_Allocate>: #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc09204: 94 21 ff d8 stwu r1,-40(r1) ffc09208: 7c 08 02 a6 mflr r0 CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc0920c: 3d 60 ff c2 lis r11,-62 #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc09210: 93 c1 00 20 stw r30,32(r1) CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc09214: 39 2b f8 14 addi r9,r11,-2028 mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); ffc09218: 3f c0 00 00 lis r30,0 CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc0921c: 81 4b f8 14 lwz r10,-2028(r11) mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); ffc09220: 3b de 2d 54 addi r30,r30,11604 CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc09224: 81 69 00 04 lwz r11,4(r9) #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc09228: 90 01 00 2c stw r0,44(r1) CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc0922c: 80 09 00 0c lwz r0,12(r9) ffc09230: 81 29 00 08 lwz r9,8(r9) <== ALWAYS TAKEN #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc09234: 93 a1 00 1c stw r29,28(r1) ffc09238: 7c 7d 1b 78 mr r29,r3 false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); ffc0923c: 7f c3 f3 78 mr r3,r30 CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc09240: 91 21 00 10 stw r9,16(r1) ffc09244: 90 01 00 14 stw r0,20(r1) #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { ffc09248: 93 e1 00 24 stw r31,36(r1) CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; ffc0924c: 91 41 00 08 stw r10,8(r1) <== ALWAYS TAKEN ffc09250: 91 61 00 0c stw r11,12(r1) mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); ffc09254: 48 00 0b f5 bl ffc09e48 <_Objects_Allocate> <== ALWAYS TAKEN ffc09258: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN _CORE_mutex_Initialize( &mutex->Mutex, &attr, CORE_MUTEX_UNLOCKED ); ffc0925c: 38 81 00 08 addi r4,r1,8 ffc09260: 38 63 00 10 addi r3,r3,16 ffc09264: 38 a0 00 01 li r5,1 ffc09268: 48 00 01 91 bl ffc093f8 <_CORE_mutex_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0926c: a0 1f 00 0a lhz r0,10(r31) ffc09270: 81 3e 00 1c lwz r9,28(r30) <== ALWAYS TAKEN ffc09274: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc09278: 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; ffc0927c: 38 00 00 01 li r0,1 <== ALWAYS TAKEN ffc09280: 90 1f 00 0c stw r0,12(r31) _Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 ); *the_mutex = mutex; } ffc09284: 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; ffc09288: 93 fd 00 00 stw r31,0(r29) } ffc0928c: 7c 08 03 a6 mtlr r0 ffc09290: 83 a1 00 1c lwz r29,28(r1) ffc09294: 83 c1 00 20 lwz r30,32(r1) <== ALWAYS TAKEN ffc09298: 83 e1 00 24 lwz r31,36(r1) ffc0929c: 38 21 00 28 addi r1,r1,40 ffc092a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc092e4 <_API_Mutex_Initialization>: #include void _API_Mutex_Initialization( uint32_t maximum_mutexes ) { ffc092e4: 94 21 ff f8 stwu r1,-8(r1) ffc092e8: 7c 08 02 a6 mflr r0 ffc092ec: 7c 66 1b 78 mr r6,r3 _Objects_Initialize_information( ffc092f0: 3c 60 00 00 lis r3,0 #include void _API_Mutex_Initialization( uint32_t maximum_mutexes ) { ffc092f4: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc092f8: 38 63 2d 54 addi r3,r3,11604 ffc092fc: 38 80 00 01 li r4,1 ffc09300: 38 a0 00 02 li r5,2 ffc09304: 38 e0 00 74 li r7,116 ffc09308: 39 00 00 00 li r8,0 ffc0930c: 39 20 00 00 li r9,0 ffc09310: 48 00 11 d5 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , true, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc09314: 80 01 00 0c lwz r0,12(r1) ffc09318: 38 21 00 08 addi r1,r1,8 ffc0931c: 7c 08 03 a6 mtlr r0 ffc09320: 4e 80 00 20 blr <== ALWAYS TAKEN ffc092a4 <_API_Mutex_Lock>: #include void _API_Mutex_Lock( API_Mutex_Control *the_mutex ) { ffc092a4: 94 21 ff f8 stwu r1,-8(r1) ffc092a8: 7c 08 02 a6 mflr r0 ffc092ac: 90 01 00 0c stw r0,12(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc092b0: 7c e0 00 a6 mfmsr r7 ffc092b4: 7c 10 42 a6 mfsprg r0,0 ffc092b8: 7c e0 00 78 andc r0,r7,r0 ffc092bc: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); _CORE_mutex_Seize( ffc092c0: 80 83 00 08 lwz r4,8(r3) ffc092c4: 38 a0 00 01 li r5,1 ffc092c8: 38 63 00 10 addi r3,r3,16 <== ALWAYS TAKEN ffc092cc: 38 c0 00 00 li r6,0 ffc092d0: 48 00 02 bd bl ffc0958c <_CORE_mutex_Seize> <== ALWAYS TAKEN the_mutex->Object.id, true, 0, level ); } ffc092d4: 80 01 00 0c lwz r0,12(r1) ffc092d8: 38 21 00 08 addi r1,r1,8 ffc092dc: 7c 08 03 a6 mtlr r0 ffc092e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09324 <_API_Mutex_Unlock>: #include void _API_Mutex_Unlock( API_Mutex_Control *the_mutex ) { ffc09324: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc09328: 3d 20 00 00 lis r9,0 ffc0932c: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc09330: 81 69 27 70 lwz r11,10096(r9) ffc09334: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN ffc09338: 39 6b 00 01 addi r11,r11,1 ffc0933c: 91 69 27 70 stw r11,10096(r9) _Thread_Disable_dispatch(); _CORE_mutex_Surrender( ffc09340: 80 83 00 08 lwz r4,8(r3) ffc09344: 38 a0 00 00 li r5,0 ffc09348: 38 63 00 10 addi r3,r3,16 ffc0934c: 48 00 03 61 bl ffc096ac <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); ffc09350: 48 00 1c c5 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc09354: 80 01 00 0c lwz r0,12(r1) ffc09358: 38 21 00 08 addi r1,r1,8 ffc0935c: 7c 08 03 a6 mtlr r0 ffc09360: 4e 80 00 20 blr <== ALWAYS TAKEN ffc091d8 <_API_extensions_Add>: */ void _API_extensions_Add( API_extensions_Control *the_extension ) { ffc091d8: 94 21 ff f8 stwu r1,-8(r1) ffc091dc: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc091e0: 7c 64 1b 78 mr r4,r3 _Chain_Append( &_API_extensions_List, &the_extension->Node ); ffc091e4: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN */ void _API_extensions_Add( API_extensions_Control *the_extension ) { ffc091e8: 90 01 00 0c stw r0,12(r1) _Chain_Append( &_API_extensions_List, &the_extension->Node ); ffc091ec: 38 63 2e 2c addi r3,r3,11820 ffc091f0: 48 00 01 75 bl ffc09364 <_Chain_Append> <== ALWAYS TAKEN } ffc091f4: 80 01 00 0c lwz r0,12(r1) ffc091f8: 38 21 00 08 addi r1,r1,8 ffc091fc: 7c 08 03 a6 mtlr r0 ffc09200: 4e 80 00 20 blr <== ALWAYS TAKEN ffc090ec <_API_extensions_Initialization>: */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc090ec: 3d 60 00 00 lis r11,0 ffc090f0: 39 2b 2e 2c addi r9,r11,11820 <== ALWAYS TAKEN ffc090f4: 38 09 00 04 addi r0,r9,4 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc090f8: 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); ffc090fc: 90 0b 2e 2c stw r0,11820(r11) the_chain->permanent_null = NULL; ffc09100: 38 00 00 00 li r0,0 ffc09104: 90 09 00 04 stw r0,4(r9) */ void _API_extensions_Initialization( void ) { _Chain_Initialize_empty( &_API_extensions_List ); } ffc09108: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0910c <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { ffc0910c: 94 21 ff f0 stwu r1,-16(r1) ffc09110: 7c 08 02 a6 mflr r0 ffc09114: 93 c1 00 08 stw r30,8(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc09118: 3f c0 00 00 lis r30,0 * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { ffc0911c: 93 e1 00 0c stw r31,12(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc09120: 83 fe 2e 2c lwz r31,11820(r30) ffc09124: 3b de 2e 2c addi r30,r30,11820 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc09128: 3b de 00 04 addi r30,r30,4 <== ALWAYS TAKEN * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { ffc0912c: 90 01 00 14 stw r0,20(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc09130: 7f 9f f0 00 cmpw cr7,r31,r30 <== ALWAYS TAKEN ffc09134: 41 9e 00 1c beq- cr7,ffc09150 <_API_extensions_Run_postdriver+0x44> <== NEVER 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)(); ffc09138: 80 1f 00 08 lwz r0,8(r31) ffc0913c: 7c 09 03 a6 mtctr r0 ffc09140: 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 ) { ffc09144: 83 ff 00 00 lwz r31,0(r31) void _API_extensions_Run_postdriver( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc09148: 7f 9f f0 00 cmpw cr7,r31,r30 ffc0914c: 40 9e ff ec bne+ cr7,ffc09138 <_API_extensions_Run_postdriver+0x2c> #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) if ( the_extension->postdriver_hook ) #endif (*the_extension->postdriver_hook)(); } } ffc09150: 80 01 00 14 lwz r0,20(r1) ffc09154: 83 c1 00 08 lwz r30,8(r1) ffc09158: 7c 08 03 a6 mtlr r0 ffc0915c: 83 e1 00 0c lwz r31,12(r1) ffc09160: 38 21 00 10 addi r1,r1,16 ffc09164: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09168 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { ffc09168: 94 21 ff e8 stwu r1,-24(r1) ffc0916c: 7c 08 02 a6 mflr r0 ffc09170: 93 c1 00 10 stw r30,16(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc09174: 3f c0 00 00 lis r30,0 * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { ffc09178: 93 e1 00 14 stw r31,20(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc0917c: 83 fe 2e 2c lwz r31,11820(r30) ffc09180: 3b de 2e 2c addi r30,r30,11820 ffc09184: 3b de 00 04 addi r30,r30,4 * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { ffc09188: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc0918c: 7f 9f f0 00 cmpw cr7,r31,r30 * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { ffc09190: 93 a1 00 0c stw r29,12(r1) Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc09194: 41 9e 00 28 beq- cr7,ffc091bc <_API_extensions_Run_postswitch+0x54> <== NEVER TAKEN ffc09198: 3f a0 00 00 lis r29,0 ffc0919c: 3b bd 27 b0 addi r29,r29,10160 * provide this hook. */ #if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) #endif (*the_extension->postswitch_hook)( _Thread_Executing ); ffc091a0: 80 1f 00 0c lwz r0,12(r31) ffc091a4: 80 7d 00 00 lwz r3,0(r29) ffc091a8: 7c 09 03 a6 mtctr r0 ffc091ac: 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 ) { ffc091b0: 83 ff 00 00 lwz r31,0(r31) void _API_extensions_Run_postswitch( void ) { Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; ffc091b4: 7f 9f f0 00 cmpw cr7,r31,r30 ffc091b8: 40 9e ff e8 bne+ cr7,ffc091a0 <_API_extensions_Run_postswitch+0x38> #if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) #endif (*the_extension->postswitch_hook)( _Thread_Executing ); } } ffc091bc: 80 01 00 1c lwz r0,28(r1) ffc091c0: 83 a1 00 0c lwz r29,12(r1) ffc091c4: 7c 08 03 a6 mtlr r0 ffc091c8: 83 c1 00 10 lwz r30,16(r1) ffc091cc: 83 e1 00 14 lwz r31,20(r1) ffc091d0: 38 21 00 18 addi r1,r1,24 ffc091d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f0c0 <_Barrier_Manager_initialization>: * Output parameters: NONE */ void _Barrier_Manager_initialization(void) { _Objects_Initialize_information( ffc0f0c0: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Barrier_Manager_initialization(void) { ffc0f0c4: 94 21 ff f8 stwu r1,-8(r1) ffc0f0c8: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0f0cc: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN ffc0f0d0: 80 c9 20 94 lwz r6,8340(r9) ffc0f0d4: 38 63 35 4c addi r3,r3,13644 ffc0f0d8: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Barrier_Manager_initialization(void) { ffc0f0dc: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0f0e0: 38 a0 00 0a li r5,10 ffc0f0e4: 38 e0 00 60 li r7,96 ffc0f0e8: 39 00 00 00 li r8,0 ffc0f0ec: 39 20 00 04 li r9,4 ffc0f0f0: 4b ff b3 f5 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0f0f4: 80 01 00 0c lwz r0,12(r1) ffc0f0f8: 38 21 00 08 addi r1,r1,8 ffc0f0fc: 7c 08 03 a6 mtlr r0 ffc0f100: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1328c <_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]; } ffc1328c: 3d 20 00 00 lis r9,0 ffc13290: 39 29 22 04 addi r9,r9,8708 }; rtems_status_code _Barrier_Translate_core_barrier_return_code ( CORE_barrier_Status the_barrier_status ) { ffc13294: 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]; } ffc13298: 7c 69 18 2e lwzx r3,r9,r3 ffc1329c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c528 <_CORE_RWLock_Initialize>: void _CORE_RWLock_Initialize( CORE_RWLock_Control *the_rwlock, CORE_RWLock_Attributes *the_rwlock_attributes ) { ffc0c528: 94 21 ff f8 stwu r1,-8(r1) ffc0c52c: 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( ffc0c530: 3c a0 00 02 lis r5,2 void _CORE_RWLock_Initialize( CORE_RWLock_Control *the_rwlock, CORE_RWLock_Attributes *the_rwlock_attributes ) { ffc0c534: 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; ffc0c538: 38 00 00 00 li r0,0 the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; _Thread_queue_Initialize( ffc0c53c: 38 c0 00 03 li r6,3 CORE_RWLock_Control *the_rwlock, CORE_RWLock_Attributes *the_rwlock_attributes ) { the_rwlock->Attributes = *the_rwlock_attributes; ffc0c540: 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( ffc0c544: 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; ffc0c548: 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; ffc0c54c: 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; ffc0c550: 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( ffc0c554: 48 00 28 1d bl ffc0ed70 <_Thread_queue_Initialize> <== ALWAYS TAKEN &the_rwlock->Wait_queue, THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_RWLOCK, CORE_RWLOCK_TIMEOUT ); } ffc0c558: 80 01 00 0c lwz r0,12(r1) ffc0c55c: 38 21 00 08 addi r1,r1,8 ffc0c560: 7c 08 03 a6 mtlr r0 ffc0c564: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c568 <_CORE_RWLock_Obtain_for_reading>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { ffc0c568: 94 21 ff d8 stwu r1,-40(r1) ffc0c56c: 7c 08 02 a6 mflr r0 ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0c570: 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 ) { ffc0c574: 90 01 00 2c stw r0,44(r1) ffc0c578: 93 c1 00 20 stw r30,32(r1) ffc0c57c: 7c 7e 1b 78 mr r30,r3 ffc0c580: 93 e1 00 24 stw r31,36(r1) ffc0c584: 93 a1 00 1c stw r29,28(r1) ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0c588: 83 e9 27 fc lwz r31,10236(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0c58c: 7f a0 00 a6 mfmsr r29 ffc0c590: 7c 10 42 a6 mfsprg r0,0 ffc0c594: 7f a0 00 78 andc r0,r29,r0 ffc0c598: 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 ) { ffc0c59c: 80 03 00 44 lwz r0,68(r3) ffc0c5a0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c5a4: 40 9e 00 40 bne- cr7,ffc0c5e4 <_CORE_RWLock_Obtain_for_reading+0x7c> case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; the_rwlock->number_of_readers += 1; ffc0c5a8: 81 23 00 48 lwz r9,72(r3) ffc0c5ac: 38 09 00 01 addi r0,r9,1 ffc0c5b0: 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; ffc0c5b4: 38 00 00 01 li r0,1 ffc0c5b8: 90 03 00 44 stw r0,68(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0c5bc: 7f a0 01 24 mtmsr r29 the_rwlock->number_of_readers += 1; _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0c5c0: 38 00 00 00 li r0,0 ffc0c5c4: 90 1f 00 34 stw r0,52(r31) timeout, _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0c5c8: 80 01 00 2c lwz r0,44(r1) ffc0c5cc: 83 a1 00 1c lwz r29,28(r1) ffc0c5d0: 7c 08 03 a6 mtlr r0 ffc0c5d4: 83 c1 00 20 lwz r30,32(r1) ffc0c5d8: 83 e1 00 24 lwz r31,36(r1) ffc0c5dc: 38 21 00 28 addi r1,r1,40 ffc0c5e0: 4e 80 00 20 blr <== ALWAYS TAKEN * 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 ) { ffc0c5e4: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c5e8: 41 9e 00 84 beq- cr7,ffc0c66c <_CORE_RWLock_Obtain_for_reading+0x104> /* * If the thread is not willing to wait, then return immediately. */ if ( !wait ) { ffc0c5ec: 2f 85 00 00 cmpwi cr7,r5,0 ffc0c5f0: 40 9e 00 2c bne- cr7,ffc0c61c <_CORE_RWLock_Obtain_for_reading+0xb4> ffc0c5f4: 7f a0 01 24 mtmsr r29 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; ffc0c5f8: 38 00 00 02 li r0,2 timeout, _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0c5fc: 83 a1 00 1c lwz r29,28(r1) * If the thread is not willing to wait, then return immediately. */ if ( !wait ) { _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; ffc0c600: 90 1f 00 34 stw r0,52(r31) timeout, _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0c604: 80 01 00 2c lwz r0,44(r1) ffc0c608: 83 c1 00 20 lwz r30,32(r1) ffc0c60c: 7c 08 03 a6 mtlr r0 ffc0c610: 83 e1 00 24 lwz r31,36(r1) ffc0c614: 38 21 00 28 addi r1,r1,40 ffc0c618: 4e 80 00 20 blr <== 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; ffc0c61c: 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; ffc0c620: 90 9f 00 20 stw r4,32(r31) ffc0c624: 39 20 00 01 li r9,1 executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0c628: 90 1f 00 34 stw r0,52(r31) ffc0c62c: 91 3e 00 30 stw r9,48(r30) /* * 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; ffc0c630: 93 df 00 44 stw r30,68(r31) executing->Wait.id = id; executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ; ffc0c634: 90 1f 00 30 stw r0,48(r31) ffc0c638: 7f a0 01 24 mtmsr r29 executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; _ISR_Enable( level ); _Thread_queue_Enqueue_with_handler( ffc0c63c: 3c a0 ff c1 lis r5,-63 ffc0c640: 7f c3 f3 78 mr r3,r30 ffc0c644: 7c c4 33 78 mr r4,r6 ffc0c648: 38 a5 c8 94 addi r5,r5,-14188 ffc0c64c: 48 00 21 e1 bl ffc0e82c <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN timeout, _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0c650: 80 01 00 2c lwz r0,44(r1) ffc0c654: 83 a1 00 1c lwz r29,28(r1) ffc0c658: 7c 08 03 a6 mtlr r0 ffc0c65c: 83 c1 00 20 lwz r30,32(r1) ffc0c660: 83 e1 00 24 lwz r31,36(r1) ffc0c664: 38 21 00 28 addi r1,r1,40 ffc0c668: 4e 80 00 20 blr <== 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 ); ffc0c66c: 90 81 00 08 stw r4,8(r1) ffc0c670: 90 a1 00 0c stw r5,12(r1) ffc0c674: 90 c1 00 10 stw r6,16(r1) ffc0c678: 48 00 26 15 bl ffc0ec8c <_Thread_queue_First> <== ALWAYS TAKEN if ( !waiter ) { ffc0c67c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0c680: 80 81 00 08 lwz r4,8(r1) ffc0c684: 80 a1 00 0c lwz r5,12(r1) ffc0c688: 80 c1 00 10 lwz r6,16(r1) ffc0c68c: 40 9e ff 60 bne+ cr7,ffc0c5ec <_CORE_RWLock_Obtain_for_reading+0x84> <== NEVER TAKEN the_rwlock->number_of_readers += 1; ffc0c690: 81 3e 00 48 lwz r9,72(r30) ffc0c694: 38 09 00 01 addi r0,r9,1 ffc0c698: 90 1e 00 48 stw r0,72(r30) ffc0c69c: 7f a0 01 24 mtmsr r29 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0c6a0: 38 00 00 00 li r0,0 ffc0c6a4: 90 1f 00 34 stw r0,52(r31) return; ffc0c6a8: 4b ff ff 20 b ffc0c5c8 <_CORE_RWLock_Obtain_for_reading+0x60> <== ALWAYS TAKEN ffc0c6ac <_CORE_RWLock_Obtain_for_writing>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_RWLock_API_mp_support_callout api_rwlock_mp_support ) { ffc0c6ac: 94 21 ff f8 stwu r1,-8(r1) ffc0c6b0: 7c 08 02 a6 mflr r0 ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0c6b4: 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 ) { ffc0c6b8: 90 01 00 0c stw r0,12(r1) ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0c6bc: 81 29 27 fc lwz r9,10236(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0c6c0: 7d 60 00 a6 mfmsr r11 ffc0c6c4: 7c 10 42 a6 mfsprg r0,0 ffc0c6c8: 7d 60 00 78 andc r0,r11,r0 ffc0c6cc: 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 ) { ffc0c6d0: 80 03 00 44 lwz r0,68(r3) ffc0c6d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c6d8: 40 9e 00 28 bne- cr7,ffc0c700 <_CORE_RWLock_Obtain_for_writing+0x54> case CORE_RWLOCK_UNLOCKED: the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING; ffc0c6dc: 38 00 00 02 li r0,2 ffc0c6e0: 90 03 00 44 stw r0,68(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0c6e4: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0c6e8: 38 00 00 00 li r0,0 ffc0c6ec: 90 09 00 34 stw r0,52(r9) _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0c6f0: 80 01 00 0c lwz r0,12(r1) ffc0c6f4: 38 21 00 08 addi r1,r1,8 ffc0c6f8: 7c 08 03 a6 mtlr r0 ffc0c6fc: 4e 80 00 20 blr <== ALWAYS TAKEN /* * If the thread is not willing to wait, then return immediately. */ if ( !wait ) { ffc0c700: 2f 85 00 00 cmpwi cr7,r5,0 ffc0c704: 40 9e 00 20 bne- cr7,ffc0c724 <_CORE_RWLock_Obtain_for_writing+0x78> ffc0c708: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; ffc0c70c: 38 00 00 02 li r0,2 ffc0c710: 90 09 00 34 stw r0,52(r9) _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0c714: 80 01 00 0c lwz r0,12(r1) ffc0c718: 38 21 00 08 addi r1,r1,8 ffc0c71c: 7c 08 03 a6 mtlr r0 ffc0c720: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c724: 38 00 00 01 li r0,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; ffc0c728: 90 89 00 20 stw r4,32(r9) executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE; executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0c72c: 39 40 00 00 li r10,0 ffc0c730: 91 49 00 34 stw r10,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; ffc0c734: 90 09 00 30 stw r0,48(r9) ffc0c738: 90 03 00 30 stw r0,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; ffc0c73c: 90 69 00 44 stw r3,68(r9) ffc0c740: 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( ffc0c744: 3c a0 ff c1 lis r5,-63 ffc0c748: 7c c4 33 78 mr r4,r6 ffc0c74c: 38 a5 c8 94 addi r5,r5,-14188 ffc0c750: 48 00 20 dd bl ffc0e82c <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _CORE_RWLock_Timeout ); /* return to API level so it can dispatch and we block */ } ffc0c754: 80 01 00 0c lwz r0,12(r1) ffc0c758: 38 21 00 08 addi r1,r1,8 ffc0c75c: 7c 08 03 a6 mtlr r0 ffc0c760: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c764 <_CORE_RWLock_Release>: */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) { ffc0c764: 94 21 ff f0 stwu r1,-16(r1) ffc0c768: 7c 08 02 a6 mflr r0 ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0c76c: 3d 20 00 00 lis r9,0 */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) { ffc0c770: 90 01 00 14 stw r0,20(r1) ffc0c774: 93 e1 00 0c stw r31,12(r1) ffc0c778: 7c 7f 1b 78 mr r31,r3 ISR_Level level; Thread_Control *executing = _Thread_Executing; ffc0c77c: 81 29 27 fc lwz r9,10236(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0c780: 7d 60 00 a6 mfmsr r11 ffc0c784: 7c 10 42 a6 mfsprg r0,0 ffc0c788: 7d 60 00 78 andc r0,r11,r0 ffc0c78c: 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 ); if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){ ffc0c790: 80 03 00 44 lwz r0,68(r3) ffc0c794: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c798: 41 9e 00 cc beq- cr7,ffc0c864 <_CORE_RWLock_Release+0x100> _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; return CORE_RWLOCK_SUCCESSFUL; } if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) { ffc0c79c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c7a0: 41 9e 00 94 beq- cr7,ffc0c834 <_CORE_RWLock_Release+0xd0> return CORE_RWLOCK_SUCCESSFUL; } } /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */ executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL; ffc0c7a4: 38 00 00 00 li r0,0 ffc0c7a8: 90 09 00 34 stw r0,52(r9) /* * Implicitly transition to "unlocked" and find another thread interested * in obtaining this rwlock. */ the_rwlock->current_state = CORE_RWLOCK_UNLOCKED; ffc0c7ac: 90 1f 00 44 stw r0,68(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0c7b0: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue ); ffc0c7b4: 7f e3 fb 78 mr r3,r31 ffc0c7b8: 48 00 1e 95 bl ffc0e64c <_Thread_queue_Dequeue> <== ALWAYS TAKEN if ( next ) { ffc0c7bc: 2c 03 00 00 cmpwi r3,0 ffc0c7c0: 41 82 00 5c beq- ffc0c81c <_CORE_RWLock_Release+0xb8> if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) { ffc0c7c4: 80 03 00 30 lwz r0,48(r3) ffc0c7c8: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c7cc: 41 9e 00 bc beq- cr7,ffc0c888 <_CORE_RWLock_Release+0x124> } /* * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING */ the_rwlock->number_of_readers += 1; ffc0c7d0: 81 3f 00 48 lwz r9,72(r31) ffc0c7d4: 38 09 00 01 addi r0,r9,1 ffc0c7d8: 90 1f 00 48 stw r0,72(r31) the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING; ffc0c7dc: 38 00 00 01 li r0,1 ffc0c7e0: 90 1f 00 44 stw r0,68(r31) ffc0c7e4: 48 00 00 20 b ffc0c804 <_CORE_RWLock_Release+0xa0> <== ALWAYS TAKEN * Now see if more readers can be let go. */ while ( 1 ) { next = _Thread_queue_First( &the_rwlock->Wait_queue ); if ( !next || next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) ffc0c7e8: 80 09 00 30 lwz r0,48(r9) ffc0c7ec: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c7f0: 41 9e 00 2c beq- cr7,ffc0c81c <_CORE_RWLock_Release+0xb8> <== NEVER TAKEN return CORE_RWLOCK_SUCCESSFUL; the_rwlock->number_of_readers += 1; ffc0c7f4: 81 3f 00 48 lwz r9,72(r31) ffc0c7f8: 38 09 00 01 addi r0,r9,1 ffc0c7fc: 90 1f 00 48 stw r0,72(r31) _Thread_queue_Extract( &the_rwlock->Wait_queue, next ); ffc0c800: 48 00 22 f1 bl ffc0eaf0 <_Thread_queue_Extract> <== ALWAYS TAKEN /* * Now see if more readers can be let go. */ while ( 1 ) { next = _Thread_queue_First( &the_rwlock->Wait_queue ); ffc0c804: 7f e3 fb 78 mr r3,r31 ffc0c808: 48 00 24 85 bl ffc0ec8c <_Thread_queue_First> <== ALWAYS TAKEN if ( !next || ffc0c80c: 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 ); ffc0c810: 7f e3 fb 78 mr r3,r31 ffc0c814: 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 || ffc0c818: 40 82 ff d0 bne+ ffc0c7e8 <_CORE_RWLock_Release+0x84> } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } ffc0c81c: 80 01 00 14 lwz r0,20(r1) ffc0c820: 38 60 00 00 li r3,0 ffc0c824: 83 e1 00 0c lwz r31,12(r1) ffc0c828: 38 21 00 10 addi r1,r1,16 ffc0c82c: 7c 08 03 a6 mtlr r0 ffc0c830: 4e 80 00 20 blr <== ALWAYS TAKEN _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; ffc0c834: 81 43 00 48 lwz r10,72(r3) ffc0c838: 38 0a ff ff addi r0,r10,-1 if ( the_rwlock->number_of_readers != 0 ) { ffc0c83c: 2f 80 00 00 cmpwi cr7,r0,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; ffc0c840: 90 03 00 48 stw r0,72(r3) if ( the_rwlock->number_of_readers != 0 ) { ffc0c844: 41 9e ff 60 beq+ cr7,ffc0c7a4 <_CORE_RWLock_Release+0x40> ffc0c848: 7d 60 01 24 mtmsr r11 } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } ffc0c84c: 80 01 00 14 lwz r0,20(r1) ffc0c850: 38 60 00 00 li r3,0 ffc0c854: 83 e1 00 0c lwz r31,12(r1) ffc0c858: 38 21 00 10 addi r1,r1,16 ffc0c85c: 7c 08 03 a6 mtlr r0 ffc0c860: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c864: 7d 60 01 24 mtmsr r11 */ _ISR_Disable( level ); if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){ _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; ffc0c868: 38 00 00 02 li r0,2 } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } ffc0c86c: 83 e1 00 0c lwz r31,12(r1) */ _ISR_Disable( level ); if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){ _ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE; ffc0c870: 90 09 00 34 stw r0,52(r9) } /* indentation is to match _ISR_Disable at top */ return CORE_RWLOCK_SUCCESSFUL; } ffc0c874: 38 60 00 00 li r3,0 ffc0c878: 80 01 00 14 lwz r0,20(r1) ffc0c87c: 38 21 00 10 addi r1,r1,16 ffc0c880: 7c 08 03 a6 mtlr r0 ffc0c884: 4e 80 00 20 blr <== ALWAYS TAKEN next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue ); if ( next ) { if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) { the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING; ffc0c888: 38 00 00 02 li r0,2 ffc0c88c: 90 1f 00 44 stw r0,68(r31) return CORE_RWLOCK_SUCCESSFUL; ffc0c890: 4b ff ff 8c b ffc0c81c <_CORE_RWLock_Release+0xb8> <== ALWAYS TAKEN ffc0c894 <_CORE_RWLock_Timeout>: void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) { ffc0c894: 94 21 ff e8 stwu r1,-24(r1) ffc0c898: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0c89c: 38 81 00 08 addi r4,r1,8 void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) { ffc0c8a0: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0c8a4: 48 00 19 2d bl ffc0e1d0 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0c8a8: 80 01 00 08 lwz r0,8(r1) ffc0c8ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c8b0: 40 9e 00 18 bne- cr7,ffc0c8c8 <_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 ); ffc0c8b4: 48 00 25 15 bl ffc0edc8 <_Thread_queue_Process_timeout> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0c8b8: 3d 20 00 00 lis r9,0 ffc0c8bc: 81 69 27 bc lwz r11,10172(r9) ffc0c8c0: 38 0b ff ff addi r0,r11,-1 ffc0c8c4: 90 09 27 bc stw r0,10172(r9) _Thread_Unnest_dispatch(); break; } } ffc0c8c8: 80 01 00 1c lwz r0,28(r1) ffc0c8cc: 38 21 00 18 addi r1,r1,24 ffc0c8d0: 7c 08 03 a6 mtlr r0 ffc0c8d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12348 <_CORE_barrier_Initialize>: void _CORE_barrier_Initialize( CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { ffc12348: 94 21 ff f8 stwu r1,-8(r1) ffc1234c: 7c 08 02 a6 mflr r0 the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( ffc12350: 3c a0 00 01 lis r5,1 void _CORE_barrier_Initialize( CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { ffc12354: 90 01 00 0c stw r0,12(r1) the_barrier->Attributes = *the_barrier_attributes; the_barrier->number_of_waiting_threads = 0; ffc12358: 38 00 00 00 li r0,0 _Thread_queue_Initialize( ffc1235c: 38 c0 00 03 li r6,3 CORE_barrier_Control *the_barrier, CORE_barrier_Attributes *the_barrier_attributes ) { the_barrier->Attributes = *the_barrier_attributes; ffc12360: 81 64 00 00 lwz r11,0(r4) ffc12364: 81 84 00 04 lwz r12,4(r4) the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( ffc12368: 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; ffc1236c: 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; ffc12370: 91 63 00 40 stw r11,64(r3) ffc12374: 91 83 00 44 stw r12,68(r3) the_barrier->number_of_waiting_threads = 0; _Thread_queue_Initialize( ffc12378: 4b ff 96 6d bl ffc0b9e4 <_Thread_queue_Initialize> <== ALWAYS TAKEN &the_barrier->Wait_queue, THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_BARRIER, CORE_BARRIER_TIMEOUT ); } ffc1237c: 80 01 00 0c lwz r0,12(r1) ffc12380: 38 21 00 08 addi r1,r1,8 ffc12384: 7c 08 03 a6 mtlr r0 ffc12388: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1238c <_CORE_barrier_Release>: #else Objects_Id id __attribute__((unused)), CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused)) #endif ) { ffc1238c: 94 21 ff f0 stwu r1,-16(r1) ffc12390: 7c 08 02 a6 mflr r0 ffc12394: 93 c1 00 08 stw r30,8(r1) ffc12398: 7c 7e 1b 78 mr r30,r3 ffc1239c: 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)) ) { ffc123a0: 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 ) { ffc123a4: 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)) ) { ffc123a8: 48 00 00 08 b ffc123b0 <_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++; ffc123ac: 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)) ) { ffc123b0: 7f c3 f3 78 mr r3,r30 ffc123b4: 4b ff 90 fd bl ffc0b4b0 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc123b8: 2c 03 00 00 cmpwi r3,0 ffc123bc: 40 82 ff f0 bne+ ffc123ac <_CORE_barrier_Release+0x20> #endif count++; } the_barrier->number_of_waiting_threads = 0; return count; } ffc123c0: 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; ffc123c4: 90 7e 00 48 stw r3,72(r30) return count; } ffc123c8: 7f e3 fb 78 mr r3,r31 ffc123cc: 7c 08 03 a6 mtlr r0 ffc123d0: 83 c1 00 08 lwz r30,8(r1) ffc123d4: 83 e1 00 0c lwz r31,12(r1) ffc123d8: 38 21 00 10 addi r1,r1,16 ffc123dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc123e0 <_CORE_barrier_Wait>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { ffc123e0: 94 21 ff f8 stwu r1,-8(r1) ffc123e4: 7c 08 02 a6 mflr r0 Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; ffc123e8: 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 ) { ffc123ec: 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; ffc123f0: 38 00 00 00 li r0,0 ) { Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; ffc123f4: 81 29 27 b0 lwz r9,10160(r9) executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; ffc123f8: 90 09 00 34 stw r0,52(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc123fc: 7d 40 00 a6 mfmsr r10 ffc12400: 7c 10 42 a6 mfsprg r0,0 ffc12404: 7d 40 00 78 andc r0,r10,r0 ffc12408: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { ffc1240c: 80 03 00 40 lwz r0,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++; ffc12410: 81 63 00 48 lwz r11,72(r3) if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { ffc12414: 2f 80 00 00 cmpwi cr7,r0,0 ISR_Level level; executing = _Thread_Executing; executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; ffc12418: 38 0b 00 01 addi r0,r11,1 ffc1241c: 90 03 00 48 stw r0,72(r3) <== ALWAYS TAKEN if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { ffc12420: 40 9e 00 10 bne- cr7,ffc12430 <_CORE_barrier_Wait+0x50> if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { ffc12424: 81 63 00 44 lwz r11,68(r3) ffc12428: 7f 80 58 00 cmpw cr7,r0,r11 ffc1242c: 41 9e 00 38 beq- cr7,ffc12464 <_CORE_barrier_Wait+0x84> ffc12430: 38 00 00 01 li r0,1 } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; ffc12434: 90 89 00 20 stw r4,32(r9) ffc12438: 90 03 00 30 stw r0,48(r3) return; } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; ffc1243c: 90 69 00 44 stw r3,68(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc12440: 7d 40 01 24 mtmsr r10 executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); ffc12444: 3c a0 ff c1 lis r5,-63 ffc12448: 7c c4 33 78 mr r4,r6 ffc1244c: 38 a5 ba f0 addi r5,r5,-17680 ffc12450: 4b ff 92 41 bl ffc0b690 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN } ffc12454: 80 01 00 0c lwz r0,12(r1) ffc12458: 38 21 00 08 addi r1,r1,8 ffc1245c: 7c 08 03 a6 mtlr r0 ffc12460: 4e 80 00 20 blr <== ALWAYS TAKEN _ISR_Disable( level ); the_barrier->number_of_waiting_threads++; if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; ffc12464: 38 00 00 01 li r0,1 ffc12468: 90 09 00 34 stw r0,52(r9) ffc1246c: 7d 40 01 24 mtmsr r10 _ISR_Enable( level ); _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); ffc12470: 7c e5 3b 78 mr r5,r7 ffc12474: 4b ff ff 19 bl ffc1238c <_CORE_barrier_Release> <== ALWAYS TAKEN return; ffc12478: 4b ff ff dc b ffc12454 <_CORE_barrier_Wait+0x74> <== ALWAYS TAKEN ffc1bfdc <_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 ) { ffc1bfdc: 94 21 ff e0 stwu r1,-32(r1) ffc1bfe0: 7c 08 02 a6 mflr r0 ffc1bfe4: 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 ) { ffc1bfe8: 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 ) { ffc1bfec: 93 41 00 08 stw r26,8(r1) ffc1bff0: 7d 1a 43 78 mr r26,r8 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { ffc1bff4: 7f 80 28 40 cmplw cr7,r0,r5 Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { ffc1bff8: 93 a1 00 14 stw r29,20(r1) ffc1bffc: 7c 9d 23 78 mr r29,r4 ffc1c000: 93 c1 00 18 stw r30,24(r1) ffc1c004: 7c 7e 1b 78 mr r30,r3 Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { ffc1c008: 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 ) { ffc1c00c: 93 e1 00 1c stw r31,28(r1) ffc1c010: 7c bf 2b 78 mr r31,r5 ffc1c014: 93 61 00 0c stw r27,12(r1) ffc1c018: 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 ) { ffc1c01c: 41 9c 00 20 blt- cr7,ffc1c03c <_CORE_message_queue_Broadcast+0x60> <== 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 ) { ffc1c020: 80 1e 00 48 lwz r0,72(r30) * 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))) { ffc1c024: 3b 60 00 00 li r27,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 ) { ffc1c028: 2f 80 00 00 cmpwi cr7,r0,0 ffc1c02c: 41 be 00 4c beq+ cr7,ffc1c078 <_CORE_message_queue_Broadcast+0x9c> *count = 0; ffc1c030: 38 00 00 00 li r0,0 ffc1c034: 90 08 00 00 stw r0,0(r8) ffc1c038: 38 60 00 00 li r3,0 #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } ffc1c03c: 80 01 00 24 lwz r0,36(r1) ffc1c040: 83 41 00 08 lwz r26,8(r1) ffc1c044: 7c 08 03 a6 mtlr r0 ffc1c048: 83 61 00 0c lwz r27,12(r1) ffc1c04c: 83 81 00 10 lwz r28,16(r1) ffc1c050: 83 a1 00 14 lwz r29,20(r1) ffc1c054: 83 c1 00 18 lwz r30,24(r1) ffc1c058: 83 e1 00 1c lwz r31,28(r1) ffc1c05c: 38 21 00 20 addi r1,r1,32 ffc1c060: 4e 80 00 20 blr <== ALWAYS TAKEN const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc1c064: 80 7c 00 2c lwz r3,44(r28) */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; ffc1c068: 3b 7b 00 01 addi r27,r27,1 ffc1c06c: 48 00 bc 15 bl ffc27c80 <== ALWAYS TAKEN buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; ffc1c070: 81 3c 00 28 lwz r9,40(r28) ffc1c074: 93 e9 00 00 stw r31,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))) { ffc1c078: 7f c3 f3 78 mr r3,r30 ffc1c07c: 48 00 31 69 bl ffc1f1e4 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc1c080: 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 = ffc1c084: 7c 7c 1b 79 mr. r28,r3 ffc1c088: 7f e5 fb 78 mr r5,r31 ffc1c08c: 40 82 ff d8 bne+ ffc1c064 <_CORE_message_queue_Broadcast+0x88> #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } ffc1c090: 80 01 00 24 lwz r0,36(r1) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; ffc1c094: 93 7a 00 00 stw r27,0(r26) return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } ffc1c098: 7c 08 03 a6 mtlr r0 ffc1c09c: 83 41 00 08 lwz r26,8(r1) ffc1c0a0: 83 61 00 0c lwz r27,12(r1) ffc1c0a4: 83 81 00 10 lwz r28,16(r1) ffc1c0a8: 83 a1 00 14 lwz r29,20(r1) ffc1c0ac: 83 c1 00 18 lwz r30,24(r1) ffc1c0b0: 83 e1 00 1c lwz r31,28(r1) ffc1c0b4: 38 21 00 20 addi r1,r1,32 ffc1c0b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19b68 <_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 ) { ffc19b68: 94 21 ff f0 stwu r1,-16(r1) ffc19b6c: 7c 08 02 a6 mflr r0 ffc19b70: 93 e1 00 0c stw r31,12(r1) ffc19b74: 7c 7f 1b 78 mr r31,r3 ffc19b78: 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( ffc19b7c: 4b ff 86 6d bl ffc121e8 <_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 ) ffc19b80: 80 1f 00 48 lwz r0,72(r31) ffc19b84: 2f 80 00 00 cmpwi cr7,r0,0 ffc19b88: 41 be 00 0c beq+ cr7,ffc19b94 <_CORE_message_queue_Close+0x2c> (void) _CORE_message_queue_Flush_support( the_message_queue ); ffc19b8c: 7f e3 fb 78 mr r3,r31 ffc19b90: 48 00 00 21 bl ffc19bb0 <_CORE_message_queue_Flush_support> <== ALWAYS TAKEN (void) _Workspace_Free( the_message_queue->message_buffers ); ffc19b94: 80 7f 00 5c lwz r3,92(r31) ffc19b98: 4b ff 98 3d bl ffc133d4 <_Workspace_Free> <== ALWAYS TAKEN } ffc19b9c: 80 01 00 14 lwz r0,20(r1) ffc19ba0: 83 e1 00 0c lwz r31,12(r1) ffc19ba4: 38 21 00 10 addi r1,r1,16 ffc19ba8: 7c 08 03 a6 mtlr r0 ffc19bac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1c104 <_CORE_message_queue_Flush>: */ uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { ffc1c104: 7c 08 02 a6 mflr r0 ffc1c108: 94 21 ff f8 stwu r1,-8(r1) ffc1c10c: 90 01 00 0c stw r0,12(r1) if ( the_message_queue->number_of_pending_messages != 0 ) ffc1c110: 38 00 00 00 li r0,0 ffc1c114: 81 23 00 48 lwz r9,72(r3) ffc1c118: 2f 89 00 00 cmpwi cr7,r9,0 ffc1c11c: 41 be 00 0c beq+ cr7,ffc1c128 <_CORE_message_queue_Flush+0x24> return _CORE_message_queue_Flush_support( the_message_queue ); ffc1c120: 48 00 00 1d bl ffc1c13c <_CORE_message_queue_Flush_support> <== ALWAYS TAKEN ffc1c124: 7c 60 1b 78 mr r0,r3 else return 0; } ffc1c128: 7c 03 03 78 mr r3,r0 ffc1c12c: 80 01 00 0c lwz r0,12(r1) ffc1c130: 38 21 00 08 addi r1,r1,8 ffc1c134: 7c 08 03 a6 mtlr r0 ffc1c138: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19bb0 <_CORE_message_queue_Flush_support>: */ uint32_t _CORE_message_queue_Flush_support( CORE_message_queue_Control *the_message_queue ) { ffc19bb0: 7c 69 1b 78 mr r9,r3 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc19bb4: 7c c0 00 a6 mfmsr r6 ffc19bb8: 7c 10 42 a6 mfsprg r0,0 ffc19bbc: 7c c0 00 78 andc r0,r6,r0 ffc19bc0: 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; ffc19bc4: 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; ffc19bc8: 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; ffc19bcc: 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; ffc19bd0: 38 00 00 00 li r0,0 message_queue_first = the_message_queue->Pending_messages.first; message_queue_last = the_message_queue->Pending_messages.last; ffc19bd4: 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); ffc19bd8: 38 83 00 54 addi r4,r3,84 the_message_queue->Inactive_messages.first = message_queue_first; ffc19bdc: 94 eb 00 68 stwu r7,104(r11) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc19be0: 38 a3 00 50 addi r5,r3,80 message_queue_last->next = inactive_first; inactive_first->previous = message_queue_last; ffc19be4: 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; ffc19be8: 91 0a 00 00 stw r8,0(r10) inactive_first->previous = message_queue_last; message_queue_first->previous = ffc19bec: 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); ffc19bf0: 90 83 00 50 stw r4,80(r3) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc19bf4: 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; ffc19bf8: 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; ffc19bfc: 80 63 00 48 lwz r3,72(r3) the_message_queue->number_of_pending_messages = 0; ffc19c00: 90 09 00 48 stw r0,72(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19c04: 7c c0 01 24 mtmsr r6 _ISR_Enable( level ); return count; } ffc19c08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc14a84 <_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 ) { ffc14a84: 94 21 ff e0 stwu r1,-32(r1) ffc14a88: 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)) { ffc14a8c: 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 ) { ffc14a90: 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)) { ffc14a94: 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; ffc14a98: 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 ) { ffc14a9c: 93 c1 00 18 stw r30,24(r1) ffc14aa0: 7c 9e 23 78 mr r30,r4 ffc14aa4: 93 e1 00 1c stw r31,28(r1) ffc14aa8: 7c 7f 1b 78 mr r31,r3 ffc14aac: 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; ffc14ab0: 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; ffc14ab4: 90 a3 00 44 stw r5,68(r3) the_message_queue->number_of_pending_messages = 0; ffc14ab8: 90 03 00 48 stw r0,72(r3) the_message_queue->maximum_message_size = maximum_message_size; ffc14abc: 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; ffc14ac0: 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)) { ffc14ac4: 41 82 00 34 beq- ffc14af8 <_CORE_message_queue_Initialize+0x74> allocated_message_size += sizeof(uint32_t); ffc14ac8: 39 26 00 04 addi r9,r6,4 allocated_message_size &= ~(sizeof(uint32_t) - 1); ffc14acc: 55 29 00 3a rlwinm r9,r9,0,0,29 } if (allocated_message_size < maximum_message_size) ffc14ad0: 7f 86 48 40 cmplw cr7,r6,r9 ffc14ad4: 40 9d 00 24 ble- cr7,ffc14af8 <_CORE_message_queue_Initialize+0x74> <== ALWAYS TAKEN STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } ffc14ad8: 80 01 00 24 lwz r0,36(r1) THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; ffc14adc: 38 60 00 00 li r3,0 } ffc14ae0: 83 a1 00 14 lwz r29,20(r1) ffc14ae4: 7c 08 03 a6 mtlr r0 ffc14ae8: 83 c1 00 18 lwz r30,24(r1) ffc14aec: 83 e1 00 1c lwz r31,28(r1) ffc14af0: 38 21 00 20 addi r1,r1,32 ffc14af4: 4e 80 00 20 blr <== ALWAYS 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)); ffc14af8: 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 * ffc14afc: 7c 7d 29 d6 mullw r3,r29,r5 (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) ffc14b00: 7f 83 48 40 cmplw cr7,r3,r9 ffc14b04: 41 9c ff d4 blt+ cr7,ffc14ad8 <_CORE_message_queue_Initialize+0x54> <== NEVER TAKEN return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) ffc14b08: 90 a1 00 08 stw r5,8(r1) ffc14b0c: 48 00 3b c9 bl ffc186d4 <_Workspace_Allocate> <== ALWAYS TAKEN _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) ffc14b10: 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 *) ffc14b14: 90 7f 00 5c stw r3,92(r31) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) ffc14b18: 80 a1 00 08 lwz r5,8(r1) <== ALWAYS TAKEN ffc14b1c: 41 be ff bc beq- cr7,ffc14ad8 <_CORE_message_queue_Initialize+0x54> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( ffc14b20: 7c 64 1b 78 mr r4,r3 ffc14b24: 7f a6 eb 78 mr r6,r29 ffc14b28: 38 7f 00 68 addi r3,r31,104 ffc14b2c: 48 00 67 99 bl ffc1b2c4 <_Chain_Initialize> <== ALWAYS TAKEN allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( ffc14b30: 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); ffc14b34: 39 3f 00 54 addi r9,r31,84 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc14b38: 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); ffc14b3c: 91 3f 00 50 stw r9,80(r31) ffc14b40: 68 84 00 01 xori r4,r4,1 the_chain->permanent_null = NULL; ffc14b44: 39 20 00 00 li r9,0 the_chain->last = _Chain_Head(the_chain); ffc14b48: 90 1f 00 58 stw r0,88(r31) ffc14b4c: 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; ffc14b50: 91 3f 00 54 stw r9,84(r31) ffc14b54: 7f e3 fb 78 mr r3,r31 ffc14b58: 54 84 d9 7e rlwinm r4,r4,27,5,31 ffc14b5c: 38 a0 00 80 li r5,128 ffc14b60: 38 c0 00 06 li r6,6 ffc14b64: 48 00 2a 9d bl ffc17600 <_Thread_queue_Initialize> <== ALWAYS TAKEN STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } ffc14b68: 80 01 00 24 lwz r0,36(r1) allocated_message_size + sizeof( CORE_message_queue_Buffer_control ) ); _Chain_Initialize_empty( &the_message_queue->Pending_messages ); _Thread_queue_Initialize( ffc14b6c: 38 60 00 01 li r3,1 STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; } ffc14b70: 83 a1 00 14 lwz r29,20(r1) ffc14b74: 7c 08 03 a6 mtlr r0 ffc14b78: 83 c1 00 18 lwz r30,24(r1) ffc14b7c: 83 e1 00 1c lwz r31,28(r1) ffc14b80: 38 21 00 20 addi r1,r1,32 ffc14b84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1b308 <_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 ) { ffc1b308: 7c 08 02 a6 mflr r0 ffc1b30c: 94 21 ff f8 stwu r1,-8(r1) ffc1b310: 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 ) { ffc1b314: 3c 00 7f ff lis r0,32767 ffc1b318: 60 00 ff ff ori r0,r0,65535 ffc1b31c: 7f 85 00 00 cmpw cr7,r5,r0 ffc1b320: 90 a4 00 08 stw r5,8(r4) ffc1b324: 41 9e 00 a8 beq- cr7,ffc1b3cc <_CORE_message_queue_Insert_message+0xc4> _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); } else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) { ffc1b328: 3c 00 80 00 lis r0,-32768 ffc1b32c: 7f 85 00 00 cmpw cr7,r5,r0 ffc1b330: 41 9e 00 d8 beq- cr7,ffc1b408 <_CORE_message_queue_Insert_message+0x100> 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; ffc1b334: 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; ffc1b338: 38 03 00 54 addi r0,r3,84 while ( !_Chain_Is_tail( the_header, the_node ) ) { ffc1b33c: 7f 89 00 00 cmpw cr7,r9,r0 ffc1b340: 41 9e 00 10 beq- cr7,ffc1b350 <_CORE_message_queue_Insert_message+0x48> this_message = (CORE_message_queue_Buffer_control *) the_node; this_priority = _CORE_message_queue_Get_message_priority(this_message); if ( this_priority <= the_priority ) { ffc1b344: 81 69 00 08 lwz r11,8(r9) ffc1b348: 7f 85 58 00 cmpw cr7,r5,r11 ffc1b34c: 40 9c 00 64 bge- cr7,ffc1b3b0 <_CORE_message_queue_Insert_message+0xa8> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b350: 7c 00 00 a6 mfmsr r0 ffc1b354: 7d 70 42 a6 mfsprg r11,0 ffc1b358: 7c 0b 58 78 andc r11,r0,r11 ffc1b35c: 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 ); ffc1b360: 81 29 00 04 lwz r9,4(r9) } break; } _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; ffc1b364: 81 43 00 48 lwz r10,72(r3) ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc1b368: 81 69 00 00 lwz r11,0(r9) ffc1b36c: 39 4a 00 01 addi r10,r10,1 after_node->next = the_node; ffc1b370: 90 89 00 00 stw r4,0(r9) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc1b374: 91 24 00 04 stw r9,4(r4) ffc1b378: 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; ffc1b37c: 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; ffc1b380: 91 64 00 00 stw r11,0(r4) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b384: 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 ) ffc1b388: 80 03 00 60 lwz r0,96(r3) ffc1b38c: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b390: 41 9e 00 10 beq- cr7,ffc1b3a0 <_CORE_message_queue_Insert_message+0x98> (*the_message_queue->notify_handler)(the_message_queue->notify_argument); ffc1b394: 80 63 00 64 lwz r3,100(r3) ffc1b398: 7c 09 03 a6 mtctr r0 ffc1b39c: 4e 80 04 21 bctrl <== ALWAYS TAKEN #endif } ffc1b3a0: 80 01 00 0c lwz r0,12(r1) ffc1b3a4: 38 21 00 08 addi r1,r1,8 ffc1b3a8: 7c 08 03 a6 mtlr r0 ffc1b3ac: 4e 80 00 20 blr <== ALWAYS TAKEN 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; ffc1b3b0: 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 ) ) { ffc1b3b4: 7f 89 00 00 cmpw cr7,r9,r0 ffc1b3b8: 41 be ff 98 beq- cr7,ffc1b350 <_CORE_message_queue_Insert_message+0x48> this_message = (CORE_message_queue_Buffer_control *) the_node; this_priority = _CORE_message_queue_Get_message_priority(this_message); if ( this_priority <= the_priority ) { ffc1b3bc: 81 69 00 08 lwz r11,8(r9) ffc1b3c0: 7f 85 58 00 cmpw cr7,r5,r11 ffc1b3c4: 41 bc ff 8c blt- cr7,ffc1b350 <_CORE_message_queue_Insert_message+0x48> ffc1b3c8: 4b ff ff e8 b ffc1b3b0 <_CORE_message_queue_Insert_message+0xa8> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b3cc: 7c 00 00 a6 mfmsr r0 ffc1b3d0: 7d 30 42 a6 mfsprg r9,0 ffc1b3d4: 7c 09 48 78 andc r9,r0,r9 ffc1b3d8: 7d 20 01 24 mtmsr r9 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc1b3dc: 39 23 00 54 addi r9,r3,84 _ISR_Enable( level ); #else if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) { _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; ffc1b3e0: 81 63 00 48 lwz r11,72(r3) ffc1b3e4: 91 24 00 00 stw r9,0(r4) ffc1b3e8: 39 6b 00 01 addi r11,r11,1 old_last_node = the_chain->last; ffc1b3ec: 81 23 00 58 lwz r9,88(r3) ffc1b3f0: 91 63 00 48 stw r11,72(r3) the_chain->last = the_node; ffc1b3f4: 90 83 00 58 stw r4,88(r3) old_last_node->next = the_node; the_node->previous = old_last_node; ffc1b3f8: 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; ffc1b3fc: 90 89 00 00 stw r4,0(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b400: 7c 00 01 24 mtmsr r0 ffc1b404: 4b ff ff 84 b ffc1b388 <_CORE_message_queue_Insert_message+0x80> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b408: 7c 00 00 a6 mfmsr r0 ffc1b40c: 7d 30 42 a6 mfsprg r9,0 ffc1b410: 7c 09 48 78 andc r9,r0,r9 ffc1b414: 7d 20 01 24 mtmsr r9 _CORE_message_queue_Append_unprotected(the_message_queue, the_message); _ISR_Enable( level ); } else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) { _ISR_Disable( level ); SET_NOTIFY(); the_message_queue->number_of_pending_messages++; ffc1b418: 81 63 00 48 lwz r11,72(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; ffc1b41c: 39 43 00 50 addi r10,r3,80 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc1b420: 81 23 00 50 lwz r9,80(r3) ffc1b424: 39 6b 00 01 addi r11,r11,1 Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc1b428: 91 44 00 04 stw r10,4(r4) before_node = after_node->next; after_node->next = the_node; ffc1b42c: 90 83 00 50 stw r4,80(r3) the_node->next = before_node; before_node->previous = the_node; ffc1b430: 90 89 00 04 stw r4,4(r9) ffc1b434: 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; ffc1b438: 91 24 00 00 stw r9,0(r4) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b43c: 7c 00 01 24 mtmsr r0 ffc1b440: 4b ff ff 48 b ffc1b388 <_CORE_message_queue_Insert_message+0x80> <== ALWAYS TAKEN ffc14b88 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc14b88: 94 21 ff e8 stwu r1,-24(r1) ffc14b8c: 7c 08 02 a6 mflr r0 ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; ffc14b90: 3d 20 00 00 lis r9,0 void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc14b94: 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; ffc14b98: 38 00 00 00 li r0,0 { ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; ffc14b9c: 81 69 28 50 lwz r11,10320(r9) void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { ffc14ba0: 93 e1 00 14 stw r31,20(r1) ffc14ba4: 7c 7f 1b 78 mr r31,r3 ffc14ba8: 7c a3 2b 78 mr r3,r5 ffc14bac: 93 a1 00 0c stw r29,12(r1) ffc14bb0: 93 c1 00 10 stw r30,16(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; ffc14bb4: 90 0b 00 34 stw r0,52(r11) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc14bb8: 7c 00 00 a6 mfmsr r0 ffc14bbc: 7d 50 42 a6 mfsprg r10,0 ffc14bc0: 7c 0a 50 78 andc r10,r0,r10 ffc14bc4: 7d 40 01 24 mtmsr r10 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc14bc8: 83 df 00 50 lwz r30,80(r31) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc14bcc: 39 5f 00 54 addi r10,r31,84 ffc14bd0: 7f 9e 50 00 cmpw cr7,r30,r10 ffc14bd4: 41 9e 00 9c beq- cr7,ffc14c70 <_CORE_message_queue_Seize+0xe8> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc14bd8: 81 5e 00 00 lwz r10,0(r30) the_chain->first = new_first; ffc14bdc: 7f eb fb 78 mr r11,r31 _ISR_Disable( level ); the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; ffc14be0: 81 1f 00 48 lwz r8,72(r31) ffc14be4: 95 4b 00 50 stwu r10,80(r11) ffc14be8: 39 08 ff ff addi r8,r8,-1 ffc14bec: 91 1f 00 48 stw r8,72(r31) new_first->previous = _Chain_Head(the_chain); ffc14bf0: 91 6a 00 04 stw r11,4(r10) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc14bf4: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); *size_p = the_message->Contents.size; ffc14bf8: 80 be 00 0c lwz r5,12(r30) _Thread_Executing->Wait.count = _CORE_message_queue_Get_message_priority( the_message ); _CORE_message_queue_Copy_buffer( the_message->Contents.buffer, ffc14bfc: 3b be 00 10 addi r29,r30,16 if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1; _ISR_Enable( level ); *size_p = the_message->Contents.size; _Thread_Executing->Wait.count = ffc14c00: 81 29 28 50 lwz r9,10320(r9) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc14c04: 7f a4 eb 78 mr r4,r29 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; ffc14c08: 90 a6 00 00 stw r5,0(r6) _Thread_Executing->Wait.count = ffc14c0c: 80 1e 00 08 lwz r0,8(r30) ffc14c10: 90 09 00 24 stw r0,36(r9) ffc14c14: 48 00 ab a5 bl ffc1f7b8 <== 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 ); ffc14c18: 7f e3 fb 78 mr r3,r31 ffc14c1c: 48 00 24 b1 bl ffc170cc <_Thread_queue_Dequeue> <== ALWAYS TAKEN if ( !the_thread ) { ffc14c20: 7c 69 1b 79 mr. r9,r3 ffc14c24: 41 82 00 c8 beq- ffc14cec <_CORE_message_queue_Seize+0x164> */ _CORE_message_queue_Set_message_priority( the_message, the_thread->Wait.count ); the_message->Contents.size = (size_t) the_thread->Wait.option; ffc14c28: 80 a9 00 30 lwz r5,48(r9) ffc14c2c: 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; ffc14c30: 80 09 00 24 lwz r0,36(r9) ffc14c34: 90 be 00 0c stw r5,12(r30) ffc14c38: 90 1e 00 08 stw r0,8(r30) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc14c3c: 80 89 00 2c lwz r4,44(r9) ffc14c40: 48 00 ab 79 bl ffc1f7b8 <== ALWAYS TAKEN the_thread->Wait.return_argument_second.immutable_object, the_message->Contents.buffer, the_message->Contents.size ); _CORE_message_queue_Insert_message( ffc14c44: 80 be 00 08 lwz r5,8(r30) ffc14c48: 7f e3 fb 78 mr r3,r31 ffc14c4c: 7f c4 f3 78 mr r4,r30 ffc14c50: 48 00 66 b9 bl ffc1b308 <_CORE_message_queue_Insert_message> <== ALWAYS TAKEN 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 ); } ffc14c54: 80 01 00 1c lwz r0,28(r1) ffc14c58: 83 a1 00 0c lwz r29,12(r1) ffc14c5c: 7c 08 03 a6 mtlr r0 ffc14c60: 83 c1 00 10 lwz r30,16(r1) ffc14c64: 83 e1 00 14 lwz r31,20(r1) ffc14c68: 38 21 00 18 addi r1,r1,24 ffc14c6c: 4e 80 00 20 blr <== ALWAYS TAKEN return; } #endif } if ( !wait ) { ffc14c70: 2f 87 00 00 cmpwi cr7,r7,0 <== ALWAYS TAKEN ffc14c74: 40 9e 00 2c bne- cr7,ffc14ca0 <_CORE_message_queue_Seize+0x118> ffc14c78: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; ffc14c7c: 38 00 00 04 li r0,4 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 ); } ffc14c80: 83 a1 00 0c lwz r29,12(r1) #endif } if ( !wait ) { _ISR_Enable( level ); executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; ffc14c84: 90 0b 00 34 stw r0,52(r11) 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 ); } ffc14c88: 80 01 00 1c lwz r0,28(r1) ffc14c8c: 83 c1 00 10 lwz r30,16(r1) ffc14c90: 7c 08 03 a6 mtlr r0 ffc14c94: 83 e1 00 14 lwz r31,20(r1) ffc14c98: 38 21 00 18 addi r1,r1,24 ffc14c9c: 4e 80 00 20 blr <== 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; ffc14ca0: 39 20 00 01 li r9,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; ffc14ca4: 90 cb 00 28 stw r6,40(r11) ffc14ca8: 91 3f 00 30 stw r9,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; ffc14cac: 90 8b 00 20 stw r4,32(r11) <== ALWAYS TAKEN executing->Wait.return_argument_second.mutable_object = buffer; ffc14cb0: 90 ab 00 2c stw r5,44(r11) <== ALWAYS TAKEN 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; ffc14cb4: 93 eb 00 44 stw r31,68(r11) ffc14cb8: 7c 00 01 24 mtmsr r0 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 ); ffc14cbc: 3c a0 ff c1 lis r5,-63 ffc14cc0: 7f e3 fb 78 mr r3,r31 ffc14cc4: 7d 04 43 78 mr r4,r8 ffc14cc8: 38 a5 77 0c addi r5,r5,30476 ffc14ccc: 48 00 25 e1 bl ffc172ac <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN } ffc14cd0: 80 01 00 1c lwz r0,28(r1) ffc14cd4: 83 a1 00 0c lwz r29,12(r1) ffc14cd8: 7c 08 03 a6 mtlr r0 ffc14cdc: 83 c1 00 10 lwz r30,16(r1) ffc14ce0: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc14ce4: 38 21 00 18 addi r1,r1,24 ffc14ce8: 4e 80 00 20 blr <== ALWAYS TAKEN 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 ); ffc14cec: 38 7f 00 68 addi r3,r31,104 ffc14cf0: 7f c4 f3 78 mr r4,r30 ffc14cf4: 4b ff fc c9 bl ffc149bc <_Chain_Append> <== ALWAYS TAKEN ffc14cf8: 80 01 00 1c lwz r0,28(r1) ffc14cfc: 83 a1 00 0c lwz r29,12(r1) ffc14d00: 7c 08 03 a6 mtlr r0 ffc14d04: 83 c1 00 10 lwz r30,16(r1) ffc14d08: 83 e1 00 14 lwz r31,20(r1) ffc14d0c: 38 21 00 18 addi r1,r1,24 ffc14d10: 4e 80 00 20 blr <== ALWAYS TAKEN ffc14d14 <_CORE_message_queue_Submit>: #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { ffc14d14: 94 21 ff d0 stwu r1,-48(r1) ffc14d18: 7c 08 02 a6 mflr r0 ffc14d1c: 90 01 00 34 stw r0,52(r1) CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { ffc14d20: 80 03 00 4c lwz r0,76(r3) #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { ffc14d24: 93 c1 00 28 stw r30,40(r1) ffc14d28: 7c be 2b 78 mr r30,r5 CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { ffc14d2c: 7f 80 28 40 cmplw cr7,r0,r5 #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { ffc14d30: 93 e1 00 2c stw r31,44(r1) CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { ffc14d34: 38 00 00 01 li r0,1 #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { ffc14d38: 7c 7f 1b 78 mr r31,r3 ffc14d3c: 93 a1 00 24 stw r29,36(r1) CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { ffc14d40: 41 9c 00 3c blt- cr7,ffc14d7c <_CORE_message_queue_Submit+0x68> } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { ffc14d44: 80 03 00 48 lwz r0,72(r3) ffc14d48: 2f 80 00 00 cmpwi cr7,r0,0 ffc14d4c: 41 9e 00 50 beq- cr7,ffc14d9c <_CORE_message_queue_Submit+0x88> /* * 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 ) { ffc14d50: 81 7f 00 44 lwz r11,68(r31) ffc14d54: 7f 8b 00 40 cmplw cr7,r11,r0 ffc14d58: 41 9d 01 2c bgt- cr7,ffc14e84 <_CORE_message_queue_Submit+0x170> /* * 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 ) { ffc14d5c: 2f 89 00 00 cmpwi cr7,r9,0 ffc14d60: 38 00 00 02 li r0,2 ffc14d64: 41 9e 00 18 beq- cr7,ffc14d7c <_CORE_message_queue_Submit+0x68> /* * 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() ) { ffc14d68: 3d 20 00 00 lis r9,0 ffc14d6c: 81 29 28 38 lwz r9,10296(r9) ffc14d70: 38 00 00 03 li r0,3 ffc14d74: 2f 89 00 00 cmpwi cr7,r9,0 ffc14d78: 41 9e 00 9c beq- cr7,ffc14e14 <_CORE_message_queue_Submit+0x100> _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } ffc14d7c: 7c 03 03 78 mr r3,r0 ffc14d80: 80 01 00 34 lwz r0,52(r1) ffc14d84: 83 a1 00 24 lwz r29,36(r1) ffc14d88: 7c 08 03 a6 mtlr r0 ffc14d8c: 83 c1 00 28 lwz r30,40(r1) ffc14d90: 83 e1 00 2c lwz r31,44(r1) ffc14d94: 38 21 00 30 addi r1,r1,48 ffc14d98: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); ffc14d9c: 90 81 00 14 stw r4,20(r1) ffc14da0: 90 c1 00 08 stw r6,8(r1) ffc14da4: 91 01 00 18 stw r8,24(r1) ffc14da8: 91 21 00 0c stw r9,12(r1) ffc14dac: 91 41 00 10 stw r10,16(r1) ffc14db0: 48 00 23 1d bl ffc170cc <_Thread_queue_Dequeue> <== ALWAYS TAKEN if ( the_thread ) { ffc14db4: 7c 7d 1b 79 mr. r29,r3 ffc14db8: 80 81 00 14 lwz r4,20(r1) ffc14dbc: 80 c1 00 08 lwz r6,8(r1) ffc14dc0: 81 01 00 18 lwz r8,24(r1) ffc14dc4: 81 21 00 0c lwz r9,12(r1) ffc14dc8: 81 41 00 10 lwz r10,16(r1) ffc14dcc: 41 82 01 00 beq- ffc14ecc <_CORE_message_queue_Submit+0x1b8> const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc14dd0: 80 7d 00 2c lwz r3,44(r29) ffc14dd4: 7f c5 f3 78 mr r5,r30 ffc14dd8: 91 01 00 18 stw r8,24(r1) ffc14ddc: 48 00 a9 dd bl ffc1f7b8 <== ALWAYS TAKEN buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; the_thread->Wait.count = (uint32_t) submit_type; ffc14de0: 38 00 00 00 li r0,0 _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } ffc14de4: 7c 03 03 78 mr r3,r0 ffc14de8: 80 01 00 34 lwz r0,52(r1) _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; ffc14dec: 81 3d 00 28 lwz r9,40(r29) _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } ffc14df0: 7c 08 03 a6 mtlr r0 buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; the_thread->Wait.count = (uint32_t) submit_type; ffc14df4: 81 01 00 18 lwz r8,24(r1) _CORE_message_queue_Copy_buffer( buffer, the_thread->Wait.return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; ffc14df8: 93 c9 00 00 stw r30,0(r9) the_thread->Wait.count = (uint32_t) submit_type; ffc14dfc: 91 1d 00 24 stw r8,36(r29) _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } ffc14e00: 83 c1 00 28 lwz r30,40(r1) ffc14e04: 83 a1 00 24 lwz r29,36(r1) ffc14e08: 83 e1 00 2c lwz r31,44(r1) ffc14e0c: 38 21 00 30 addi r1,r1,48 ffc14e10: 4e 80 00 20 blr <== ALWAYS TAKEN * 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; ffc14e14: 3d 20 00 00 lis r9,0 ffc14e18: 81 29 28 50 lwz r9,10320(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc14e1c: 7c 00 00 a6 mfmsr r0 ffc14e20: 7d 70 42 a6 mfsprg r11,0 ffc14e24: 7c 0b 58 78 andc r11,r0,r11 ffc14e28: 7d 60 01 24 mtmsr r11 ffc14e2c: 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; ffc14e30: 91 09 00 24 stw r8,36(r9) ffc14e34: 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; ffc14e38: 90 c9 00 20 stw r6,32(r9) executing->Wait.return_argument_second.immutable_object = buffer; ffc14e3c: 90 89 00 2c stw r4,44(r9) executing->Wait.option = (uint32_t) size; ffc14e40: 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; ffc14e44: 93 e9 00 44 stw r31,68(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc14e48: 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 ); ffc14e4c: 3c a0 ff c1 lis r5,-63 ffc14e50: 7f e3 fb 78 mr r3,r31 ffc14e54: 7d 44 53 78 mr r4,r10 ffc14e58: 38 a5 77 0c addi r5,r5,30476 ffc14e5c: 48 00 24 51 bl ffc172ac <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN ffc14e60: 38 00 00 07 li r0,7 } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } ffc14e64: 7c 03 03 78 mr r3,r0 ffc14e68: 80 01 00 34 lwz r0,52(r1) ffc14e6c: 83 a1 00 24 lwz r29,36(r1) ffc14e70: 7c 08 03 a6 mtlr r0 ffc14e74: 83 c1 00 28 lwz r30,40(r1) ffc14e78: 83 e1 00 2c lwz r31,44(r1) ffc14e7c: 38 21 00 30 addi r1,r1,48 ffc14e80: 4e 80 00 20 blr <== ALWAYS TAKEN 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 *) ffc14e84: 38 7f 00 68 addi r3,r31,104 ffc14e88: 91 01 00 18 stw r8,24(r1) ffc14e8c: 90 81 00 14 stw r4,20(r1) ffc14e90: 4b ff fb 85 bl ffc14a14 <_Chain_Get> <== ALWAYS TAKEN ffc14e94: 7c 7d 1b 78 mr r29,r3 const void *source, void *destination, size_t size ) { memcpy(destination, source, size); ffc14e98: 80 81 00 14 lwz r4,20(r1) ffc14e9c: 7f c5 f3 78 mr r5,r30 ffc14ea0: 38 63 00 10 addi r3,r3,16 ffc14ea4: 48 00 a9 15 bl ffc1f7b8 <== ALWAYS TAKEN CORE_message_queue_Buffer_control *the_message, int priority ) { #if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) the_message->priority = priority; ffc14ea8: 81 01 00 18 lwz r8,24(r1) _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; ffc14eac: 93 dd 00 0c stw r30,12(r29) _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( ffc14eb0: 7f e3 fb 78 mr r3,r31 ffc14eb4: 7f a4 eb 78 mr r4,r29 ffc14eb8: 91 1d 00 08 stw r8,8(r29) ffc14ebc: 7d 05 43 78 mr r5,r8 ffc14ec0: 48 00 64 49 bl ffc1b308 <_CORE_message_queue_Insert_message> <== ALWAYS TAKEN ffc14ec4: 38 00 00 00 li r0,0 the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; ffc14ec8: 4b ff fe b4 b ffc14d7c <_CORE_message_queue_Submit+0x68> <== ALWAYS TAKEN /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue ); if ( the_thread ) { ffc14ecc: 80 1f 00 48 lwz r0,72(r31) ffc14ed0: 4b ff fe 80 b ffc14d50 <_CORE_message_queue_Submit+0x3c> <== ALWAYS TAKEN ffc093d8 <_CORE_mutex_Flush>: void _CORE_mutex_Flush( CORE_mutex_Control *the_mutex, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { ffc093d8: 94 21 ff f8 stwu r1,-8(r1) ffc093dc: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc093e0: 90 01 00 0c stw r0,12(r1) _Thread_queue_Flush( ffc093e4: 48 00 25 b5 bl ffc0b998 <_Thread_queue_Flush> <== ALWAYS TAKEN &the_mutex->Wait_queue, remote_extract_callout, status ); } ffc093e8: 80 01 00 0c lwz r0,12(r1) ffc093ec: 38 21 00 08 addi r1,r1,8 ffc093f0: 7c 08 03 a6 mtlr r0 ffc093f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc093f8 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { ffc093f8: 7c 08 02 a6 mflr r0 ffc093fc: 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 ) { ffc09400: 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 ) { ffc09404: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN initial_lock == CORE_MUTEX_UNLOCKED ); */ the_mutex->Attributes = *the_mutex_attributes; the_mutex->lock = initial_lock; the_mutex->blocked_count = 0; ffc09408: 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; ffc0940c: 81 44 00 00 lwz r10,0(r4) <== ALWAYS TAKEN ffc09410: 81 64 00 04 lwz r11,4(r4) ffc09414: 80 04 00 08 lwz r0,8(r4) ffc09418: 81 24 00 0c lwz r9,12(r4) ffc0941c: 91 43 00 40 stw r10,64(r3) ffc09420: 91 63 00 44 stw r11,68(r3) ffc09424: 91 23 00 4c stw r9,76(r3) ffc09428: 90 03 00 48 stw r0,72(r3) <== ALWAYS TAKEN the_mutex->lock = initial_lock; ffc0942c: 90 a3 00 50 stw r5,80(r3) the_mutex->blocked_count = 0; ffc09430: 91 03 00 58 stw r8,88(r3) if ( initial_lock == CORE_MUTEX_LOCKED ) { ffc09434: 40 9e 00 54 bne- cr7,ffc09488 <_CORE_mutex_Initialize+0x90> the_mutex->nest_count = 1; ffc09438: 39 20 00 01 li r9,1 ffc0943c: 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 ) || ffc09440: 2f 80 00 02 cmpwi cr7,r0,2 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; ffc09444: 3d 20 00 00 lis r9,0 ffc09448: 81 29 27 b0 lwz r9,10160(r9) the_mutex->holder_id = _Thread_Executing->Object.id; ffc0944c: 81 69 00 08 lwz r11,8(r9) 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; ffc09450: 91 23 00 5c stw r9,92(r3) the_mutex->holder_id = _Thread_Executing->Object.id; ffc09454: 91 63 00 60 stw r11,96(r3) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc09458: 41 9e 00 0c beq- cr7,ffc09464 <_CORE_mutex_Initialize+0x6c> ffc0945c: 2f 80 00 03 cmpwi cr7,r0,3 ffc09460: 40 be 00 34 bne+ cr7,ffc09494 <_CORE_mutex_Initialize+0x9c> _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < the_mutex->Attributes.priority_ceiling ) ffc09464: 81 49 00 14 lwz r10,20(r9) ffc09468: 38 00 00 06 li r0,6 ffc0946c: 81 63 00 4c lwz r11,76(r3) ffc09470: 7f 8a 58 40 cmplw cr7,r10,r11 ffc09474: 41 9c 00 40 blt- cr7,ffc094b4 <_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++; ffc09478: 81 69 00 1c lwz r11,28(r9) ffc0947c: 38 0b 00 01 addi r0,r11,1 ffc09480: 90 09 00 1c stw r0,28(r9) ffc09484: 48 00 00 10 b ffc09494 <_CORE_mutex_Initialize+0x9c> <== ALWAYS TAKEN } } else { the_mutex->nest_count = 0; the_mutex->holder = NULL; the_mutex->holder_id = 0; ffc09488: 91 03 00 60 stw r8,96(r3) #endif _Thread_Executing->resource_count++; } } else { the_mutex->nest_count = 0; ffc0948c: 91 03 00 54 stw r8,84(r3) the_mutex->holder = NULL; ffc09490: 91 03 00 5c stw r8,92(r3) the_mutex->holder_id = 0; } _Thread_queue_Initialize( ffc09494: 80 84 00 08 lwz r4,8(r4) ffc09498: 38 a0 04 00 li r5,1024 ffc0949c: 38 c0 00 05 li r6,5 ffc094a0: 31 24 ff ff addic r9,r4,-1 ffc094a4: 7c 09 21 10 subfe r0,r9,r4 ffc094a8: 7c 04 03 78 mr r4,r0 <== ALWAYS TAKEN ffc094ac: 48 00 25 39 bl ffc0b9e4 <_Thread_queue_Initialize> <== ALWAYS TAKEN ffc094b0: 38 00 00 00 li r0,0 STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } ffc094b4: 7c 03 03 78 mr r3,r0 ffc094b8: 80 01 00 0c lwz r0,12(r1) ffc094bc: 38 21 00 08 addi r1,r1,8 ffc094c0: 7c 08 03 a6 mtlr r0 ffc094c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0958c <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc0958c: 94 21 ff d8 stwu r1,-40(r1) ffc09590: 7c 08 02 a6 mflr r0 ffc09594: 93 e1 00 24 stw r31,36(r1) _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc09598: 3f e0 00 00 lis r31,0 Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc0959c: 90 01 00 2c stw r0,44(r1) _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc095a0: 80 1f 27 70 lwz r0,10096(r31) <== ALWAYS TAKEN Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc095a4: 93 61 00 14 stw r27,20(r1) ffc095a8: 7c db 33 78 mr r27,r6 _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc095ac: 2f 80 00 00 cmpwi cr7,r0,0 Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { ffc095b0: 93 81 00 18 stw r28,24(r1) ffc095b4: 7c bc 2b 78 mr r28,r5 ffc095b8: 93 a1 00 1c stw r29,28(r1) ffc095bc: 7c 9d 23 78 mr r29,r4 ffc095c0: 93 c1 00 20 stw r30,32(r1) ffc095c4: 7c 7e 1b 78 mr r30,r3 ffc095c8: 90 e1 00 08 stw r7,8(r1) _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc095cc: 41 9e 00 0c beq- cr7,ffc095d8 <_CORE_mutex_Seize+0x4c> ffc095d0: 2f 85 00 00 cmpwi cr7,r5,0 <== ALWAYS TAKEN ffc095d4: 40 9e 00 5c bne- cr7,ffc09630 <_CORE_mutex_Seize+0xa4> <== ALWAYS TAKEN ffc095d8: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc095dc: 38 81 00 08 addi r4,r1,8 ffc095e0: 48 00 61 85 bl ffc0f764 <_CORE_mutex_Seize_interrupt_trylock> <== ALWAYS TAKEN ffc095e4: 2f 83 00 00 cmpwi cr7,r3,0 ffc095e8: 41 9e 00 24 beq- cr7,ffc0960c <_CORE_mutex_Seize+0x80> ffc095ec: 2f 9c 00 00 cmpwi cr7,r28,0 ffc095f0: 40 9e 00 60 bne- cr7,ffc09650 <_CORE_mutex_Seize+0xc4> ffc095f4: 80 01 00 08 lwz r0,8(r1) ffc095f8: 7c 00 01 24 mtmsr r0 ffc095fc: 3d 20 00 00 lis r9,0 ffc09600: 81 29 27 b0 lwz r9,10160(r9) ffc09604: 38 00 00 01 li r0,1 ffc09608: 90 09 00 34 stw r0,52(r9) } ffc0960c: 80 01 00 2c lwz r0,44(r1) ffc09610: 83 61 00 14 lwz r27,20(r1) ffc09614: 7c 08 03 a6 mtlr r0 ffc09618: 83 81 00 18 lwz r28,24(r1) ffc0961c: 83 a1 00 1c lwz r29,28(r1) ffc09620: 83 c1 00 20 lwz r30,32(r1) ffc09624: 83 e1 00 24 lwz r31,36(r1) <== ALWAYS TAKEN ffc09628: 38 21 00 28 addi r1,r1,40 ffc0962c: 4e 80 00 20 blr <== ALWAYS TAKEN bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); ffc09630: 3d 20 00 00 lis r9,0 ffc09634: 80 09 27 d4 lwz r0,10196(r9) ffc09638: 2b 80 00 01 cmplwi cr7,r0,1 ffc0963c: 40 9d ff 9c ble+ cr7,ffc095d8 <_CORE_mutex_Seize+0x4c> ffc09640: 38 60 00 00 li r3,0 ffc09644: 38 80 00 00 li r4,0 ffc09648: 38 a0 00 13 li r5,19 ffc0964c: 48 00 07 9d bl ffc09de8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc09650: 3d 20 00 00 lis r9,0 ffc09654: 81 7f 27 70 lwz r11,10096(r31) ffc09658: 81 29 27 b0 lwz r9,10160(r9) ffc0965c: 38 0b 00 01 addi r0,r11,1 ffc09660: 93 a9 00 20 stw r29,32(r9) 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; ffc09664: 39 60 00 01 li r11,1 ffc09668: 91 7e 00 30 stw r11,48(r30) ffc0966c: 93 c9 00 44 stw r30,68(r9) ffc09670: 90 1f 27 70 stw r0,10096(r31) ffc09674: 80 01 00 08 lwz r0,8(r1) ffc09678: 7c 00 01 24 mtmsr r0 ffc0967c: 7f c3 f3 78 mr r3,r30 ffc09680: 7f 64 db 78 mr r4,r27 ffc09684: 4b ff fe 45 bl ffc094c8 <_CORE_mutex_Seize_interrupt_blocking> <== ALWAYS TAKEN } ffc09688: 80 01 00 2c lwz r0,44(r1) ffc0968c: 83 61 00 14 lwz r27,20(r1) ffc09690: 7c 08 03 a6 mtlr r0 ffc09694: 83 81 00 18 lwz r28,24(r1) ffc09698: 83 a1 00 1c lwz r29,28(r1) ffc0969c: 83 c1 00 20 lwz r30,32(r1) ffc096a0: 83 e1 00 24 lwz r31,36(r1) ffc096a4: 38 21 00 28 addi r1,r1,40 ffc096a8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc094c8 <_CORE_mutex_Seize_interrupt_blocking>: void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { ffc094c8: 94 21 ff f0 stwu r1,-16(r1) ffc094cc: 7c 08 02 a6 mflr r0 Thread_Control *executing; executing = _Thread_Executing; ffc094d0: 3d 20 00 00 lis r9,0 void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { ffc094d4: 90 01 00 14 stw r0,20(r1) Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { ffc094d8: 80 03 00 48 lwz r0,72(r3) void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { ffc094dc: 93 c1 00 08 stw r30,8(r1) ffc094e0: 7c 9e 23 78 mr r30,r4 Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { ffc094e4: 2f 80 00 02 cmpwi cr7,r0,2 void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { ffc094e8: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc094ec: 7c 7f 1b 78 mr r31,r3 Thread_Control *executing; executing = _Thread_Executing; ffc094f0: 81 29 27 b0 lwz r9,10160(r9) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { ffc094f4: 41 9e 00 40 beq- cr7,ffc09534 <_CORE_mutex_Seize_interrupt_blocking+0x6c> false ); } } the_mutex->blocked_count++; ffc094f8: 81 3f 00 58 lwz r9,88(r31) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); ffc094fc: 3c a0 ff c1 lis r5,-63 ffc09500: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN false ); } } the_mutex->blocked_count++; ffc09504: 38 09 00 01 addi r0,r9,1 ffc09508: 90 1f 00 58 stw r0,88(r31) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); ffc0950c: 7f c4 f3 78 mr r4,r30 ffc09510: 38 a5 ba f0 addi r5,r5,-17680 ffc09514: 48 00 21 7d bl ffc0b690 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc09518: 48 00 1a fd bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc0951c: 80 01 00 14 lwz r0,20(r1) ffc09520: 83 c1 00 08 lwz r30,8(r1) ffc09524: 7c 08 03 a6 mtlr r0 ffc09528: 83 e1 00 0c lwz r31,12(r1) ffc0952c: 38 21 00 10 addi r1,r1,16 ffc09530: 4e 80 00 20 blr <== ALWAYS TAKEN { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { if ( the_mutex->holder->current_priority > executing->current_priority ) { ffc09534: 80 63 00 5c lwz r3,92(r3) ffc09538: 80 89 00 14 lwz r4,20(r9) ffc0953c: 80 03 00 14 lwz r0,20(r3) ffc09540: 7f 80 20 40 cmplw cr7,r0,r4 ffc09544: 40 9d ff b4 ble+ cr7,ffc094f8 <_CORE_mutex_Seize_interrupt_blocking+0x30> _Thread_Change_priority( ffc09548: 38 a0 00 00 li r5,0 <== ALWAYS TAKEN ffc0954c: 48 00 13 bd bl ffc0a908 <_Thread_Change_priority> <== ALWAYS TAKEN false ); } } the_mutex->blocked_count++; ffc09550: 81 3f 00 58 lwz r9,88(r31) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); ffc09554: 3c a0 ff c1 lis r5,-63 false ); } } the_mutex->blocked_count++; ffc09558: 38 09 00 01 addi r0,r9,1 ffc0955c: 90 1f 00 58 stw r0,88(r31) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); ffc09560: 7f e3 fb 78 mr r3,r31 ffc09564: 7f c4 f3 78 mr r4,r30 ffc09568: 38 a5 ba f0 addi r5,r5,-17680 ffc0956c: 48 00 21 25 bl ffc0b690 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc09570: 48 00 1a a5 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc09574: 80 01 00 14 lwz r0,20(r1) ffc09578: 83 c1 00 08 lwz r30,8(r1) ffc0957c: 7c 08 03 a6 mtlr r0 ffc09580: 83 e1 00 0c lwz r31,12(r1) ffc09584: 38 21 00 10 addi r1,r1,16 ffc09588: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f764 <_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 ) { ffc0f764: 7c 08 02 a6 mflr r0 ffc0f768: 94 21 ff f8 stwu r1,-8(r1) { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; ffc0f76c: 3d 20 00 00 lis r9,0 ffc0f770: 81 29 27 b0 lwz r9,10160(r9) ffc0f774: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; ffc0f778: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc0f77c: 90 09 00 34 stw r0,52(r9) if ( !_CORE_mutex_Is_locked( the_mutex ) ) { ffc0f780: 81 63 00 50 lwz r11,80(r3) ffc0f784: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0f788: 41 9e 00 4c beq- cr7,ffc0f7d4 <_CORE_mutex_Seize_interrupt_trylock+0x70> */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; ffc0f78c: 81 63 00 48 lwz r11,72(r3) <== ALWAYS TAKEN executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; ffc0f790: 39 40 00 01 li r10,1 /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; ffc0f794: 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 ) || ffc0f798: 2f 8b 00 02 cmpwi cr7,r11,2 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; ffc0f79c: 81 09 00 08 lwz r8,8(r9) executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; ffc0f7a0: 91 23 00 5c stw r9,92(r3) the_mutex->holder_id = executing->Object.id; ffc0f7a4: 91 03 00 60 stw r8,96(r3) <== ALWAYS TAKEN the_mutex->nest_count = 1; ffc0f7a8: 91 43 00 54 stw r10,84(r3) if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || ffc0f7ac: 41 9e 00 48 beq- cr7,ffc0f7f4 <_CORE_mutex_Seize_interrupt_trylock+0x90> ffc0f7b0: 2f 8b 00 03 cmpwi cr7,r11,3 ffc0f7b4: 41 9e 00 78 beq- cr7,ffc0f82c <_CORE_mutex_Seize_interrupt_trylock+0xc8> ffc0f7b8: 80 04 00 00 lwz r0,0(r4) ffc0f7bc: 7c 00 01 24 mtmsr r0 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } ffc0f7c0: 80 01 00 0c lwz r0,12(r1) ffc0f7c4: 38 60 00 00 li r3,0 ffc0f7c8: 38 21 00 08 addi r1,r1,8 ffc0f7cc: 7c 08 03 a6 mtlr r0 ffc0f7d0: 4e 80 00 20 blr <== 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 ) ) { ffc0f7d4: 80 03 00 5c lwz r0,92(r3) ffc0f7d8: 7f 89 00 00 cmpw cr7,r9,r0 ffc0f7dc: 41 9e 00 28 beq- cr7,ffc0f804 <_CORE_mutex_Seize_interrupt_trylock+0xa0> ffc0f7e0: 38 60 00 01 li r3,1 ffc0f7e4: 80 01 00 0c lwz r0,12(r1) ffc0f7e8: 38 21 00 08 addi r1,r1,8 ffc0f7ec: 7c 08 03 a6 mtlr r0 ffc0f7f0: 4e 80 00 20 blr <== ALWAYS TAKEN _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; ffc0f7f4: 81 69 00 1c lwz r11,28(r9) ffc0f7f8: 38 0b 00 01 addi r0,r11,1 ffc0f7fc: 90 09 00 1c stw r0,28(r9) ffc0f800: 4b ff ff b8 b ffc0f7b8 <_CORE_mutex_Seize_interrupt_trylock+0x54> <== 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 ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { ffc0f804: 80 03 00 40 lwz r0,64(r3) ffc0f808: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f80c: 40 9e 00 74 bne- cr7,ffc0f880 <_CORE_mutex_Seize_interrupt_trylock+0x11c> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; ffc0f810: 81 23 00 54 lwz r9,84(r3) ffc0f814: 38 09 00 01 addi r0,r9,1 ffc0f818: 90 03 00 54 stw r0,84(r3) ffc0f81c: 80 04 00 00 lwz r0,0(r4) ffc0f820: 7c 00 01 24 mtmsr r0 ffc0f824: 38 60 00 00 li r3,0 ffc0f828: 4b ff ff bc b ffc0f7e4 <_CORE_mutex_Seize_interrupt_trylock+0x80> <== ALWAYS TAKEN _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; ffc0f82c: 80 e9 00 1c lwz r7,28(r9) { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; ffc0f830: 81 69 00 14 lwz r11,20(r9) _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; ffc0f834: 39 07 00 01 addi r8,r7,1 ffc0f838: 91 09 00 1c stw r8,28(r9) */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; ffc0f83c: 81 03 00 4c lwz r8,76(r3) current = executing->current_priority; if ( current == ceiling ) { ffc0f840: 7f 88 58 00 cmpw cr7,r8,r11 ffc0f844: 41 9e 00 90 beq- cr7,ffc0f8d4 <_CORE_mutex_Seize_interrupt_trylock+0x170> _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { ffc0f848: 7f 88 58 40 cmplw cr7,r8,r11 ffc0f84c: 41 9c 00 54 blt- cr7,ffc0f8a0 <_CORE_mutex_Seize_interrupt_trylock+0x13c> ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; ffc0f850: 39 60 00 06 li r11,6 ffc0f854: 91 69 00 34 stw r11,52(r9) the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ ffc0f858: 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; ffc0f85c: 91 43 00 50 stw r10,80(r3) the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ ffc0f860: 90 e9 00 1c stw r7,28(r9) ffc0f864: 80 04 00 00 lwz r0,0(r4) ffc0f868: 7c 00 01 24 mtmsr r0 ffc0f86c: 80 01 00 0c lwz r0,12(r1) ffc0f870: 38 60 00 00 li r3,0 ffc0f874: 38 21 00 08 addi r1,r1,8 ffc0f878: 7c 08 03 a6 mtlr r0 ffc0f87c: 4e 80 00 20 blr <== 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 ) ) { switch ( the_mutex->Attributes.lock_nesting_behavior ) { ffc0f880: 2f 80 00 01 cmpwi cr7,r0,1 ffc0f884: 40 9e ff 5c bne+ cr7,ffc0f7e0 <_CORE_mutex_Seize_interrupt_trylock+0x7c> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; _ISR_Enable( *level_p ); return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; ffc0f888: 38 00 00 02 li r0,2 ffc0f88c: 90 09 00 34 stw r0,52(r9) ffc0f890: 80 04 00 00 lwz r0,0(r4) ffc0f894: 7c 00 01 24 mtmsr r0 ffc0f898: 38 60 00 00 li r3,0 ffc0f89c: 4b ff ff 48 b ffc0f7e4 <_CORE_mutex_Seize_interrupt_trylock+0x80> <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0f8a0: 3d 20 00 00 lis r9,0 ffc0f8a4: 81 69 27 70 lwz r11,10096(r9) ffc0f8a8: 38 0b 00 01 addi r0,r11,1 ffc0f8ac: 90 09 27 70 stw r0,10096(r9) ffc0f8b0: 80 04 00 00 lwz r0,0(r4) ffc0f8b4: 7c 00 01 24 mtmsr r0 } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); _Thread_Change_priority( ffc0f8b8: 80 83 00 4c lwz r4,76(r3) ffc0f8bc: 38 a0 00 00 li r5,0 ffc0f8c0: 80 63 00 5c lwz r3,92(r3) ffc0f8c4: 4b ff b0 45 bl ffc0a908 <_Thread_Change_priority> <== ALWAYS TAKEN the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); ffc0f8c8: 4b ff b7 4d bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0f8cc: 38 60 00 00 li r3,0 ffc0f8d0: 4b ff ff 14 b ffc0f7e4 <_CORE_mutex_Seize_interrupt_trylock+0x80> <== ALWAYS TAKEN ffc0f8d4: 80 04 00 00 lwz r0,0(r4) ffc0f8d8: 7c 00 01 24 mtmsr r0 ffc0f8dc: 38 60 00 00 li r3,0 ffc0f8e0: 4b ff ff 04 b ffc0f7e4 <_CORE_mutex_Seize_interrupt_trylock+0x80> <== ALWAYS TAKEN ffc096ac <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { ffc096ac: 94 21 ff f0 stwu r1,-16(r1) ffc096b0: 7c 08 02 a6 mflr r0 ffc096b4: 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 ) { ffc096b8: 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 ) { ffc096bc: 93 e1 00 0c stw r31,12(r1) ffc096c0: 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 ) { ffc096c4: 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; ffc096c8: 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 ) { ffc096cc: 41 9e 00 2c beq- cr7,ffc096f8 <_CORE_mutex_Surrender+0x4c> if ( !_Thread_Is_executing( holder ) ) ffc096d0: 3d 60 00 00 lis r11,0 ffc096d4: 80 0b 27 b0 lwz r0,10160(r11) ffc096d8: 38 60 00 03 li r3,3 ffc096dc: 7f 89 00 00 cmpw cr7,r9,r0 ffc096e0: 41 9e 00 18 beq- cr7,ffc096f8 <_CORE_mutex_Surrender+0x4c> } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } ffc096e4: 80 01 00 14 lwz r0,20(r1) ffc096e8: 83 e1 00 0c lwz r31,12(r1) ffc096ec: 38 21 00 10 addi r1,r1,16 ffc096f0: 7c 08 03 a6 mtlr r0 ffc096f4: 4e 80 00 20 blr <== ALWAYS TAKEN return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) ffc096f8: 81 7f 00 54 lwz r11,84(r31) ffc096fc: 2f 8b 00 00 cmpwi cr7,r11,0 ffc09700: 41 9e 00 7c beq- cr7,ffc0977c <_CORE_mutex_Surrender+0xd0> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; ffc09704: 39 6b ff ff addi r11,r11,-1 if ( the_mutex->nest_count != 0 ) { ffc09708: 2f 8b 00 00 cmpwi cr7,r11,0 /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; ffc0970c: 91 7f 00 54 stw r11,84(r31) if ( the_mutex->nest_count != 0 ) { ffc09710: 40 9e 00 6c bne- cr7,ffc0977c <_CORE_mutex_Surrender+0xd0> */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; ffc09714: 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 ) || ffc09718: 2f 80 00 02 cmpwi cr7,r0,2 ffc0971c: 41 9e 00 d0 beq- cr7,ffc097ec <_CORE_mutex_Surrender+0x140> ffc09720: 2f 80 00 03 cmpwi cr7,r0,3 ffc09724: 41 9e 00 c8 beq- cr7,ffc097ec <_CORE_mutex_Surrender+0x140> /* * 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 ) || ffc09728: 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; ffc0972c: 39 60 00 00 li r11,0 the_mutex->holder_id = 0; ffc09730: 91 7f 00 60 stw r11,96(r31) } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; ffc09734: 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 ) || ffc09738: 41 9e 00 88 beq- cr7,ffc097c0 <_CORE_mutex_Surrender+0x114> ffc0973c: 2f 80 00 03 cmpwi cr7,r0,3 ffc09740: 41 9e 00 80 beq- cr7,ffc097c0 <_CORE_mutex_Surrender+0x114> /* * 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 ) ) ) { ffc09744: 7f e3 fb 78 mr r3,r31 ffc09748: 48 00 1d 69 bl ffc0b4b0 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc0974c: 7c 69 1b 79 mr. r9,r3 <== ALWAYS TAKEN ffc09750: 41 82 00 c0 beq- ffc09810 <_CORE_mutex_Surrender+0x164> the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { ffc09754: 80 1f 00 48 lwz r0,72(r31) } else #endif { the_mutex->holder = the_thread; the_mutex->holder_id = the_thread->Object.id; ffc09758: 81 69 00 08 lwz r11,8(r9) the_mutex->nest_count = 1; switch ( the_mutex->Attributes.discipline ) { ffc0975c: 2f 80 00 02 cmpwi cr7,r0,2 } else #endif { the_mutex->holder = the_thread; ffc09760: 91 3f 00 5c stw r9,92(r31) the_mutex->holder_id = the_thread->Object.id; ffc09764: 91 7f 00 60 stw r11,96(r31) the_mutex->nest_count = 1; ffc09768: 39 60 00 01 li r11,1 ffc0976c: 91 7f 00 54 stw r11,84(r31) switch ( the_mutex->Attributes.discipline ) { ffc09770: 41 9e 00 8c beq- cr7,ffc097fc <_CORE_mutex_Surrender+0x150> ffc09774: 2f 80 00 03 cmpwi cr7,r0,3 ffc09778: 41 9e 00 1c beq- cr7,ffc09794 <_CORE_mutex_Surrender+0xe8> } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } ffc0977c: 80 01 00 14 lwz r0,20(r1) } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; ffc09780: 38 60 00 00 li r3,0 return CORE_MUTEX_STATUS_SUCCESSFUL; } ffc09784: 83 e1 00 0c lwz r31,12(r1) ffc09788: 38 21 00 10 addi r1,r1,16 ffc0978c: 7c 08 03 a6 mtlr r0 ffc09790: 4e 80 00 20 blr <== 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++; ffc09794: 81 69 00 1c lwz r11,28(r9) if (the_mutex->Attributes.priority_ceiling < the_thread->current_priority){ ffc09798: 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++; ffc0979c: 39 6b 00 01 addi r11,r11,1 ffc097a0: 91 69 00 1c stw r11,28(r9) <== ALWAYS TAKEN if (the_mutex->Attributes.priority_ceiling < ffc097a4: 80 9f 00 4c lwz r4,76(r31) the_thread->current_priority){ ffc097a8: 7f 84 00 40 cmplw cr7,r4,r0 ffc097ac: 40 9c ff d0 bge+ cr7,ffc0977c <_CORE_mutex_Surrender+0xd0> _Thread_Change_priority( ffc097b0: 38 a0 00 00 li r5,0 ffc097b4: 48 00 11 55 bl ffc0a908 <_Thread_Change_priority> <== ALWAYS TAKEN ffc097b8: 38 60 00 00 li r3,0 ffc097bc: 4b ff ff 28 b ffc096e4 <_CORE_mutex_Surrender+0x38> <== ALWAYS TAKEN _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 && ffc097c0: 80 09 00 1c lwz r0,28(r9) ffc097c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc097c8: 40 be ff 7c bne- cr7,ffc09744 <_CORE_mutex_Surrender+0x98> holder->real_priority != holder->current_priority ) { ffc097cc: 80 89 00 18 lwz r4,24(r9) ffc097d0: 80 09 00 14 lwz r0,20(r9) <== ALWAYS TAKEN ffc097d4: 7f 84 00 00 cmpw cr7,r4,r0 ffc097d8: 41 be ff 6c beq- cr7,ffc09744 <_CORE_mutex_Surrender+0x98> _Thread_Change_priority( holder, holder->real_priority, true ); ffc097dc: 7d 23 4b 78 mr r3,r9 ffc097e0: 38 a0 00 01 li r5,1 ffc097e4: 48 00 11 25 bl ffc0a908 <_Thread_Change_priority> <== ALWAYS TAKEN ffc097e8: 4b ff ff 5c b ffc09744 <_CORE_mutex_Surrender+0x98> <== ALWAYS TAKEN the_mutex->nest_count++; return CORE_MUTEX_RELEASE_NOT_ORDER; } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; ffc097ec: 81 69 00 1c lwz r11,28(r9) ffc097f0: 39 6b ff ff addi r11,r11,-1 <== ALWAYS TAKEN ffc097f4: 91 69 00 1c stw r11,28(r9) ffc097f8: 4b ff ff 30 b ffc09728 <_CORE_mutex_Surrender+0x7c> <== 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++; ffc097fc: 81 69 00 1c lwz r11,28(r9) ffc09800: 38 60 00 00 li r3,0 ffc09804: 38 0b 00 01 addi r0,r11,1 ffc09808: 90 09 00 1c stw r0,28(r9) break; ffc0980c: 4b ff fe d8 b ffc096e4 <_CORE_mutex_Surrender+0x38> <== ALWAYS TAKEN } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; ffc09810: 38 00 00 01 li r0,1 ffc09814: 90 1f 00 50 stw r0,80(r31) ffc09818: 38 60 00 00 li r3,0 <== ALWAYS TAKEN ffc0981c: 4b ff fe c8 b ffc096e4 <_CORE_mutex_Surrender+0x38> <== ALWAYS TAKEN ffc09820 <_CORE_semaphore_Flush>: void _CORE_semaphore_Flush( CORE_semaphore_Control *the_semaphore, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { ffc09820: 94 21 ff f8 stwu r1,-8(r1) ffc09824: 7c 08 02 a6 mflr r0 ffc09828: 90 01 00 0c stw r0,12(r1) _Thread_queue_Flush( ffc0982c: 48 00 21 6d bl ffc0b998 <_Thread_queue_Flush> <== ALWAYS TAKEN &the_semaphore->Wait_queue, remote_extract_callout, status ); } ffc09830: 80 01 00 0c lwz r0,12(r1) ffc09834: 38 21 00 08 addi r1,r1,8 ffc09838: 7c 08 03 a6 mtlr r0 ffc0983c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09840 <_CORE_semaphore_Initialize>: void _CORE_semaphore_Initialize( CORE_semaphore_Control *the_semaphore, CORE_semaphore_Attributes *the_semaphore_attributes, uint32_t initial_value ) { ffc09840: 94 21 ff f8 stwu r1,-8(r1) ffc09844: 7c 08 02 a6 mflr r0 the_semaphore->Attributes = *the_semaphore_attributes; the_semaphore->count = initial_value; _Thread_queue_Initialize( ffc09848: 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 ) { ffc0984c: 90 01 00 0c stw r0,12(r1) the_semaphore->Attributes = *the_semaphore_attributes; ffc09850: 81 64 00 00 lwz r11,0(r4) ffc09854: 81 84 00 04 lwz r12,4(r4) ffc09858: 91 63 00 40 stw r11,64(r3) ffc0985c: 91 83 00 44 stw r12,68(r3) the_semaphore->count = initial_value; _Thread_queue_Initialize( ffc09860: 80 84 00 04 lwz r4,4(r4) uint32_t initial_value ) { the_semaphore->Attributes = *the_semaphore_attributes; the_semaphore->count = initial_value; ffc09864: 90 a3 00 48 stw r5,72(r3) _Thread_queue_Initialize( ffc09868: 38 a0 02 00 li r5,512 ffc0986c: 68 84 00 01 xori r4,r4,1 ffc09870: 7c 84 00 34 cntlzw r4,r4 ffc09874: 54 84 d9 7e rlwinm r4,r4,27,5,31 ffc09878: 48 00 21 6d bl ffc0b9e4 <_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 ); } ffc0987c: 80 01 00 0c lwz r0,12(r1) ffc09880: 38 21 00 08 addi r1,r1,8 ffc09884: 7c 08 03 a6 mtlr r0 ffc09888: 4e 80 00 20 blr <== ALWAYS TAKEN ffc14038 <_CORE_semaphore_Seize>: CORE_semaphore_Control *the_semaphore, Objects_Id id, bool wait, Watchdog_Interval timeout ) { ffc14038: 94 21 ff f8 stwu r1,-8(r1) ffc1403c: 7c 08 02 a6 mflr r0 Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; ffc14040: 3d 20 00 00 lis r9,0 ffc14044: 81 29 27 d0 lwz r9,10192(r9) CORE_semaphore_Control *the_semaphore, Objects_Id id, bool wait, Watchdog_Interval timeout ) { ffc14048: 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; ffc1404c: 38 00 00 00 li r0,0 ffc14050: 90 09 00 34 stw r0,52(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc14054: 7c 00 00 a6 mfmsr r0 ffc14058: 7d 70 42 a6 mfsprg r11,0 ffc1405c: 7c 0b 58 78 andc r11,r0,r11 ffc14060: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); if ( the_semaphore->count != 0 ) { ffc14064: 81 63 00 48 lwz r11,72(r3) ffc14068: 2f 8b 00 00 cmpwi cr7,r11,0 ffc1406c: 40 9e 00 5c bne- cr7,ffc140c8 <_CORE_semaphore_Seize+0x90> /* * 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 ) { ffc14070: 2f 85 00 00 cmpwi cr7,r5,0 ffc14074: 40 9e 00 20 bne- cr7,ffc14094 <_CORE_semaphore_Seize+0x5c> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc14078: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; ffc1407c: 38 00 00 01 li r0,1 ffc14080: 90 09 00 34 stw r0,52(r9) _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); } ffc14084: 80 01 00 0c lwz r0,12(r1) ffc14088: 38 21 00 08 addi r1,r1,8 ffc1408c: 7c 08 03 a6 mtlr r0 ffc14090: 4e 80 00 20 blr <== ALWAYS TAKEN ffc14094: 39 60 00 01 li r11,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; ffc14098: 90 89 00 20 stw r4,32(r9) ffc1409c: 91 63 00 30 stw r11,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; ffc140a0: 90 69 00 44 stw r3,68(r9) ffc140a4: 7c 00 01 24 mtmsr r0 executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); ffc140a8: 3c a0 ff c1 lis r5,-63 ffc140ac: 7c c4 33 78 mr r4,r6 ffc140b0: 38 a5 fa a4 addi r5,r5,-1372 ffc140b4: 4b ff b5 91 bl ffc0f644 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN } ffc140b8: 80 01 00 0c lwz r0,12(r1) ffc140bc: 38 21 00 08 addi r1,r1,8 ffc140c0: 7c 08 03 a6 mtlr r0 ffc140c4: 4e 80 00 20 blr <== ALWAYS TAKEN executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; _ISR_Disable( level ); if ( the_semaphore->count != 0 ) { the_semaphore->count -= 1; ffc140c8: 39 6b ff ff addi r11,r11,-1 ffc140cc: 91 63 00 48 stw r11,72(r3) ffc140d0: 7c 00 01 24 mtmsr r0 _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); } ffc140d4: 80 01 00 0c lwz r0,12(r1) ffc140d8: 38 21 00 08 addi r1,r1,8 ffc140dc: 7c 08 03 a6 mtlr r0 ffc140e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0988c <_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 ) { ffc0988c: 94 21 ff f0 stwu r1,-16(r1) ffc09890: 7c 08 02 a6 mflr r0 ffc09894: 93 e1 00 0c stw r31,12(r1) ffc09898: 7c 7f 1b 78 mr r31,r3 ffc0989c: 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)) ) { ffc098a0: 48 00 1c 11 bl ffc0b4b0 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc098a4: 2f 83 00 00 cmpwi cr7,r3,0 ffc098a8: 38 60 00 00 li r3,0 ffc098ac: 41 9e 00 18 beq- cr7,ffc098c4 <_CORE_semaphore_Surrender+0x38> status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } ffc098b0: 80 01 00 14 lwz r0,20(r1) ffc098b4: 83 e1 00 0c lwz r31,12(r1) ffc098b8: 38 21 00 10 addi r1,r1,16 ffc098bc: 7c 08 03 a6 mtlr r0 ffc098c0: 4e 80 00 20 blr <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc098c4: 7c 00 00 a6 mfmsr r0 ffc098c8: 7d 30 42 a6 mfsprg r9,0 ffc098cc: 7c 09 48 78 andc r9,r0,r9 ffc098d0: 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 ) ffc098d4: 81 3f 00 48 lwz r9,72(r31) ffc098d8: 38 60 00 04 li r3,4 ffc098dc: 81 7f 00 40 lwz r11,64(r31) ffc098e0: 7f 89 58 40 cmplw cr7,r9,r11 ffc098e4: 41 9c 00 1c blt- cr7,ffc09900 <_CORE_semaphore_Surrender+0x74> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc098e8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } ffc098ec: 80 01 00 14 lwz r0,20(r1) ffc098f0: 83 e1 00 0c lwz r31,12(r1) ffc098f4: 38 21 00 10 addi r1,r1,16 ffc098f8: 7c 08 03 a6 mtlr r0 ffc098fc: 4e 80 00 20 blr <== ALWAYS TAKEN #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1; ffc09900: 39 29 00 01 addi r9,r9,1 ffc09904: 91 3f 00 48 stw r9,72(r31) ffc09908: 38 60 00 00 li r3,0 ffc0990c: 7c 00 01 24 mtmsr r0 ffc09910: 4b ff ff dc b ffc098ec <_CORE_semaphore_Surrender+0x60> <== ALWAYS TAKEN ffc0a820 <_CORE_spinlock_Initialize>: CORE_spinlock_Control *the_spinlock, CORE_spinlock_Attributes *the_spinlock_attributes ) { the_spinlock->Attributes = *the_spinlock_attributes; ffc0a820: 80 04 00 00 lwz r0,0(r4) the_spinlock->lock = 0; ffc0a824: 39 20 00 00 li r9,0 ffc0a828: 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; ffc0a82c: 90 03 00 00 stw r0,0(r3) the_spinlock->lock = 0; the_spinlock->users = 0; ffc0a830: 91 23 00 08 stw r9,8(r3) the_spinlock->holder = 0; ffc0a834: 91 23 00 0c stw r9,12(r3) } ffc0a838: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a83c <_CORE_spinlock_Release>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a83c: 7d 20 00 a6 mfmsr r9 ffc0a840: 7c 10 42 a6 mfsprg r0,0 ffc0a844: 7d 20 00 78 andc r0,r9,r0 ffc0a848: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); /* * It must locked before it can be unlocked. */ if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) { ffc0a84c: 80 03 00 04 lwz r0,4(r3) ffc0a850: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a854: 40 9e 00 10 bne- cr7,ffc0a864 <_CORE_spinlock_Release+0x28> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a858: 7d 20 01 24 mtmsr r9 ffc0a85c: 38 60 00 06 li r3,6 _ISR_Enable( level ); return CORE_SPINLOCK_NOT_LOCKED; ffc0a860: 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 ) { ffc0a864: 3d 60 00 00 lis r11,0 ffc0a868: 81 4b 27 f8 lwz r10,10232(r11) ffc0a86c: 81 63 00 0c lwz r11,12(r3) ffc0a870: 80 0a 00 08 lwz r0,8(r10) ffc0a874: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0a878: 41 9e 00 10 beq- cr7,ffc0a888 <_CORE_spinlock_Release+0x4c> ffc0a87c: 7d 20 01 24 mtmsr r9 ffc0a880: 38 60 00 02 li r3,2 _ISR_Enable( level ); return CORE_SPINLOCK_NOT_HOLDER; ffc0a884: 4e 80 00 20 blr <== ALWAYS TAKEN } /* * Let it be unlocked. */ the_spinlock->users -= 1; ffc0a888: 81 63 00 08 lwz r11,8(r3) the_spinlock->lock = CORE_SPINLOCK_UNLOCKED; ffc0a88c: 38 00 00 00 li r0,0 } /* * Let it be unlocked. */ the_spinlock->users -= 1; ffc0a890: 39 6b ff ff addi r11,r11,-1 ffc0a894: 91 63 00 08 stw r11,8(r3) the_spinlock->lock = CORE_SPINLOCK_UNLOCKED; ffc0a898: 90 03 00 04 stw r0,4(r3) the_spinlock->holder = 0; ffc0a89c: 90 03 00 0c stw r0,12(r3) ffc0a8a0: 7d 20 01 24 mtmsr r9 ffc0a8a4: 38 60 00 00 li r3,0 _ISR_Enable( level ); return CORE_SPINLOCK_SUCCESSFUL; } ffc0a8a8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a8ac <_CORE_spinlock_Wait>: CORE_spinlock_Status _CORE_spinlock_Wait( CORE_spinlock_Control *the_spinlock, bool wait, Watchdog_Interval timeout ) { ffc0a8ac: 94 21 ff f0 stwu r1,-16(r1) ffc0a8b0: 7c 08 02 a6 mflr r0 ffc0a8b4: 90 01 00 14 stw r0,20(r1) ffc0a8b8: 93 e1 00 0c stw r31,12(r1) ffc0a8bc: 7c 7f 1b 78 mr r31,r3 ffc0a8c0: 93 c1 00 08 stw r30,8(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a8c4: 7c 00 00 a6 mfmsr r0 ffc0a8c8: 7d 30 42 a6 mfsprg r9,0 ffc0a8cc: 7c 09 48 78 andc r9,r0,r9 ffc0a8d0: 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) && ffc0a8d4: 81 23 00 04 lwz r9,4(r3) ffc0a8d8: 2f 89 00 01 cmpwi cr7,r9,1 ffc0a8dc: 41 9e 00 c0 beq- cr7,ffc0a99c <_CORE_spinlock_Wait+0xf0> (the_spinlock->holder == _Thread_Executing->Object.id) ) { _ISR_Enable( level ); return CORE_SPINLOCK_HOLDER_RELOCKING; } the_spinlock->users += 1; ffc0a8e0: 81 3f 00 08 lwz r9,8(r31) ffc0a8e4: 39 29 00 01 addi r9,r9,1 ffc0a8e8: 91 3f 00 08 stw r9,8(r31) for ( ;; ) { if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) { ffc0a8ec: 81 3f 00 04 lwz r9,4(r31) ffc0a8f0: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a8f4: 41 9e 00 44 beq- cr7,ffc0a938 <_CORE_spinlock_Wait+0x8c> } /* * Spinlock is unavailable. If not willing to wait, return. */ if ( !wait ) { ffc0a8f8: 2f 84 00 00 cmpwi cr7,r4,0 ffc0a8fc: 41 9e 00 74 beq- cr7,ffc0a970 <_CORE_spinlock_Wait+0xc4> ffc0a900: 3f c0 00 00 lis r30,0 ffc0a904: 3b de 27 b8 addi r30,r30,10168 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a908: 7c 00 01 24 mtmsr r0 */ _ISR_Enable( level ); /* An ISR could occur here */ _Thread_Enable_dispatch(); ffc0a90c: 48 00 17 b5 bl ffc0c0c0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a910: 81 3e 00 00 lwz r9,0(r30) ffc0a914: 38 09 00 01 addi r0,r9,1 ffc0a918: 90 1e 00 00 stw r0,0(r30) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a91c: 7c 00 00 a6 mfmsr r0 ffc0a920: 7d 30 42 a6 mfsprg r9,0 ffc0a924: 7c 09 48 78 andc r9,r0,r9 ffc0a928: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); return CORE_SPINLOCK_HOLDER_RELOCKING; } the_spinlock->users += 1; for ( ;; ) { if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) { ffc0a92c: 81 3f 00 04 lwz r9,4(r31) ffc0a930: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a934: 40 9e ff d4 bne+ cr7,ffc0a908 <_CORE_spinlock_Wait+0x5c> the_spinlock->lock = CORE_SPINLOCK_LOCKED; ffc0a938: 39 20 00 01 li r9,1 ffc0a93c: 91 3f 00 04 stw r9,4(r31) the_spinlock->holder = _Thread_Executing->Object.id; ffc0a940: 3d 20 00 00 lis r9,0 ffc0a944: 81 29 27 f8 lwz r9,10232(r9) ffc0a948: 81 29 00 08 lwz r9,8(r9) ffc0a94c: 91 3f 00 0c stw r9,12(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a950: 7c 00 01 24 mtmsr r0 ffc0a954: 38 60 00 00 li r3,0 _Thread_Disable_dispatch(); _ISR_Disable( level ); } } ffc0a958: 80 01 00 14 lwz r0,20(r1) ffc0a95c: 83 c1 00 08 lwz r30,8(r1) ffc0a960: 7c 08 03 a6 mtlr r0 ffc0a964: 83 e1 00 0c lwz r31,12(r1) ffc0a968: 38 21 00 10 addi r1,r1,16 ffc0a96c: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Spinlock is unavailable. If not willing to wait, return. */ if ( !wait ) { the_spinlock->users -= 1; ffc0a970: 81 3f 00 08 lwz r9,8(r31) ffc0a974: 39 29 ff ff addi r9,r9,-1 ffc0a978: 91 3f 00 08 stw r9,8(r31) ffc0a97c: 7c 00 01 24 mtmsr r0 _Thread_Disable_dispatch(); _ISR_Disable( level ); } } ffc0a980: 80 01 00 14 lwz r0,20(r1) ffc0a984: 38 60 00 05 li r3,5 ffc0a988: 83 c1 00 08 lwz r30,8(r1) ffc0a98c: 7c 08 03 a6 mtlr r0 ffc0a990: 83 e1 00 0c lwz r31,12(r1) ffc0a994: 38 21 00 10 addi r1,r1,16 ffc0a998: 4e 80 00 20 blr <== ALWAYS TAKEN Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout; #endif _ISR_Disable( level ); if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) && (the_spinlock->holder == _Thread_Executing->Object.id) ) { ffc0a99c: 3d 20 00 00 lis r9,0 ffc0a9a0: 81 63 00 0c lwz r11,12(r3) ffc0a9a4: 81 29 27 f8 lwz r9,10232(r9) ffc0a9a8: 81 29 00 08 lwz r9,8(r9) ffc0a9ac: 7f 8b 48 00 cmpw cr7,r11,r9 ffc0a9b0: 40 9e ff 30 bne+ cr7,ffc0a8e0 <_CORE_spinlock_Wait+0x34> ffc0a9b4: 7c 00 01 24 mtmsr r0 ffc0a9b8: 38 60 00 01 li r3,1 _ISR_Enable( level ); return CORE_SPINLOCK_HOLDER_RELOCKING; ffc0a9bc: 4b ff ff 9c b ffc0a958 <_CORE_spinlock_Wait+0xac> <== ALWAYS TAKEN ffc09364 <_Chain_Append>: ffc09364: 7c 00 00 a6 mfmsr r0 ffc09368: 7d 30 42 a6 mfsprg r9,0 ffc0936c: 7c 09 48 78 andc r9,r0,r9 ffc09370: 7d 20 01 24 mtmsr r9 Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc09374: 39 23 00 04 addi r9,r3,4 ffc09378: 91 24 00 00 stw r9,0(r4) old_last_node = the_chain->last; ffc0937c: 81 23 00 08 lwz r9,8(r3) the_chain->last = the_node; ffc09380: 90 83 00 08 stw r4,8(r3) old_last_node->next = the_node; the_node->previous = old_last_node; ffc09384: 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; ffc09388: 90 89 00 00 stw r4,0(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0938c: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); _Chain_Append_unprotected( the_chain, node ); _ISR_Enable( level ); } ffc09390: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f6f8 <_Chain_Extract>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0f6f8: 7c 00 00 a6 mfmsr r0 ffc0f6fc: 7d 30 42 a6 mfsprg r9,0 ffc0f700: 7c 09 48 78 andc r9,r0,r9 <== ALWAYS TAKEN ffc0f704: 7d 20 01 24 mtmsr r9 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0f708: 81 63 00 04 lwz r11,4(r3) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0f70c: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; next->previous = previous; previous->next = next; ffc0f710: 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; ffc0f714: 91 69 00 04 stw r11,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0f718: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); _Chain_Extract_unprotected( node ); _ISR_Enable( level ); } ffc0f71c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09394 <_Chain_Get>: */ Chain_Node *_Chain_Get( Chain_Control *the_chain ) { ffc09394: 7c 69 1b 78 mr r9,r3 <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc09398: 7c 00 00 a6 mfmsr r0 ffc0939c: 7d 70 42 a6 mfsprg r11,0 ffc093a0: 7c 0b 58 78 andc r11,r0,r11 ffc093a4: 7d 60 01 24 mtmsr r11 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc093a8: 80 63 00 00 lwz r3,0(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc093ac: 39 69 00 04 addi r11,r9,4 ffc093b0: 7f 83 58 00 cmpw cr7,r3,r11 ffc093b4: 41 9e 00 18 beq- cr7,ffc093cc <_Chain_Get+0x38> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc093b8: 81 63 00 00 lwz r11,0(r3) <== ALWAYS TAKEN the_chain->first = new_first; ffc093bc: 91 69 00 00 stw r11,0(r9) <== ALWAYS TAKEN new_first->previous = _Chain_Head(the_chain); ffc093c0: 91 2b 00 04 stw r9,4(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc093c4: 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; } ffc093c8: 4e 80 00 20 blr <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc093cc: 38 60 00 00 li r3,0 ffc093d0: 7c 00 01 24 mtmsr r0 ffc093d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f720 <_Chain_Initialize>: count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { ffc0f720: 2c 05 00 00 cmpwi r5,0 <== ALWAYS TAKEN Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; ffc0f724: 38 00 00 00 li r0,0 ffc0f728: 90 03 00 04 stw r0,4(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; ffc0f72c: 7c 69 1b 78 mr r9,r3 next = starting_address; while ( count-- ) { ffc0f730: 41 82 00 24 beq- ffc0f754 <_Chain_Initialize+0x34> <== NEVER TAKEN Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; ffc0f734: 7c a9 03 a6 mtctr r5 ffc0f738: 48 00 00 08 b ffc0f740 <_Chain_Initialize+0x20> <== ALWAYS TAKEN while ( count-- ) { ffc0f73c: 7c 04 03 78 mr r4,r0 current->next = next; next->previous = current; ffc0f740: 91 24 00 04 stw r9,4(r4) ffc0f744: 7c 04 32 14 add r0,r4,r6 count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { current->next = next; ffc0f748: 90 89 00 00 stw r4,0(r9) next->previous = current; current = next; next = (Chain_Node *) ffc0f74c: 7c 89 23 78 mr r9,r4 count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { ffc0f750: 42 00 ff ec bdnz+ ffc0f73c <_Chain_Initialize+0x1c> next->previous = current; current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain ); ffc0f754: 38 03 00 04 addi r0,r3,4 ffc0f758: 90 09 00 00 stw r0,0(r9) the_chain->last = current; ffc0f75c: 91 23 00 08 stw r9,8(r3) } ffc0f760: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16090 <_Chain_Insert>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc16090: 7c 00 00 a6 mfmsr r0 ffc16094: 7d 30 42 a6 mfsprg r9,0 ffc16098: 7c 09 48 78 andc r9,r0,r9 ffc1609c: 7d 20 01 24 mtmsr r9 ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc160a0: 81 23 00 00 lwz r9,0(r3) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc160a4: 90 64 00 04 stw r3,4(r4) before_node = after_node->next; after_node->next = the_node; ffc160a8: 90 83 00 00 stw r4,0(r3) the_node->next = before_node; before_node->previous = the_node; ffc160ac: 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; ffc160b0: 91 24 00 00 stw r9,0(r4) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc160b4: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); _Chain_Insert_unprotected( after_node, node ); _ISR_Enable( level ); } ffc160b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f648 <_Debug_Manager_initialization>: */ void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { _Debug_Level &= ~to_be_disabled; ffc0f648: 38 00 00 00 li r0,0 ffc0f64c: 3d 20 00 00 lis r9,0 ffc0f650: 90 09 27 b4 stw r0,10164(r9) * _Debug_Manager_initialization */ void _Debug_Manager_initialization( void ) { rtems_debug_disable( RTEMS_DEBUG_ALL_MASK ); } ffc0f654: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f104 <_Dual_ported_memory_Manager_initialization>: * Output parameters: NONE */ void _Dual_ported_memory_Manager_initialization(void) { _Objects_Initialize_information( ffc0f104: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _Dual_ported_memory_Manager_initialization(void) { ffc0f108: 94 21 ff f8 stwu r1,-8(r1) ffc0f10c: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0f110: 3c 60 00 00 lis r3,0 ffc0f114: 80 c9 20 8c lwz r6,8332(r9) ffc0f118: 38 63 35 8c addi r3,r3,13708 ffc0f11c: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Dual_ported_memory_Manager_initialization(void) { ffc0f120: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0f124: 38 a0 00 07 li r5,7 ffc0f128: 38 e0 00 1c li r7,28 ffc0f12c: 39 00 00 00 li r8,0 <== ALWAYS TAKEN ffc0f130: 39 20 00 04 li r9,4 ffc0f134: 4b ff b3 b1 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0f138: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0f13c: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc0f140: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0f144: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f148 <_Event_Manager_initialization>: * This routine performs the initialization necessary for this manager. */ void _Event_Manager_initialization( void ) { _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0f148: 38 00 00 00 li r0,0 ffc0f14c: 3d 20 00 00 lis r9,0 ffc0f150: 90 09 27 e8 stw r0,10216(r9) */ #if defined(RTEMS_MULTIPROCESSING) _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); #endif } ffc0f154: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e8c <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07e8c: 94 21 ff f0 stwu r1,-16(r1) ffc07e90: 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; ffc07e94: 3d 20 00 00 lis r9,0 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07e98: 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; ffc07e9c: 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 ) { ffc07ea0: 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; ffc07ea4: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc07ea8: 90 1f 00 34 stw r0,52(r31) rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07eac: 93 c1 00 08 stw r30,8(r1) Thread_blocking_operation_States sync_state; executing = _Thread_Executing; executing->Wait.return_code = RTEMS_SUCCESSFUL; api = executing->API_Extensions[ THREAD_API_RTEMS ]; ffc07eb0: 81 7f 01 44 lwz r11,324(r31) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07eb4: 7d 40 00 a6 mfmsr r10 ffc07eb8: 7c 10 42 a6 mfsprg r0,0 ffc07ebc: 7d 40 00 78 andc r0,r10,r0 ffc07ec0: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); pending_events = api->pending_events; ffc07ec4: 80 0b 00 00 lwz r0,0(r11) seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && ffc07ec8: 7c 69 00 39 and. r9,r3,r0 ffc07ecc: 41 82 00 14 beq- ffc07ee0 <_Event_Seize+0x54> ffc07ed0: 7f 83 48 00 cmpw cr7,r3,r9 ffc07ed4: 41 9e 00 b0 beq- cr7,ffc07f84 <_Event_Seize+0xf8> ffc07ed8: 70 88 00 02 andi. r8,r4,2 ffc07edc: 40 82 00 a8 bne- ffc07f84 <_Event_Seize+0xf8> <== ALWAYS TAKEN _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { ffc07ee0: 70 80 00 01 andi. r0,r4,1 ffc07ee4: 40 82 00 78 bne- ffc07f5c <_Event_Seize+0xd0> */ 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; ffc07ee8: 3f c0 00 00 lis r30,0 * 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; ffc07eec: 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; ffc07ef0: 38 00 00 01 li r0,1 * * 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; ffc07ef4: 90 7f 00 24 stw r3,36(r31) executing->Wait.return_argument = event_out; ffc07ef8: 90 df 00 28 stw r6,40(r31) _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc07efc: 90 1e 27 e8 stw r0,10216(r30) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc07f00: 7d 40 01 24 mtmsr r10 _ISR_Enable( level ); if ( ticks ) { ffc07f04: 2f 85 00 00 cmpwi cr7,r5,0 ffc07f08: 40 9e 00 c0 bne- cr7,ffc07fc8 <_Event_Seize+0x13c> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); ffc07f0c: 7f e3 fb 78 mr r3,r31 ffc07f10: 38 80 01 00 li r4,256 ffc07f14: 48 00 3c 7d bl ffc0bb90 <_Thread_Set_state> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc07f18: 7c a0 00 a6 mfmsr r5 ffc07f1c: 7c 10 42 a6 mfsprg r0,0 ffc07f20: 7c a0 00 78 andc r0,r5,r0 ffc07f24: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); sync_state = _Event_Sync_state; ffc07f28: 80 7e 27 e8 lwz r3,10216(r30) _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc07f2c: 38 00 00 00 li r0,0 ffc07f30: 90 1e 27 e8 stw r0,10216(r30) if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { ffc07f34: 2f 83 00 01 cmpwi cr7,r3,1 ffc07f38: 41 9e 00 74 beq- cr7,ffc07fac <_Event_Seize+0x120> * 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 ); ffc07f3c: 7f e4 fb 78 mr r4,r31 ffc07f40: 48 00 29 65 bl ffc0a8a4 <_Thread_blocking_operation_Cancel> <== ALWAYS TAKEN } ffc07f44: 80 01 00 14 lwz r0,20(r1) ffc07f48: 83 c1 00 08 lwz r30,8(r1) ffc07f4c: 7c 08 03 a6 mtlr r0 ffc07f50: 83 e1 00 0c lwz r31,12(r1) ffc07f54: 38 21 00 10 addi r1,r1,16 ffc07f58: 4e 80 00 20 blr <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc07f5c: 7d 40 01 24 mtmsr r10 return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; ffc07f60: 38 00 00 0d li r0,13 * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } ffc07f64: 83 c1 00 08 lwz r30,8(r1) return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; ffc07f68: 90 1f 00 34 stw r0,52(r31) * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } ffc07f6c: 80 01 00 14 lwz r0,20(r1) ffc07f70: 83 e1 00 0c lwz r31,12(r1) ffc07f74: 38 21 00 10 addi r1,r1,16 ffc07f78: 7c 08 03 a6 mtlr r0 } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); executing->Wait.return_code = RTEMS_UNSATISFIED; *event_out = seized_events; ffc07f7c: 91 26 00 00 stw r9,0(r6) * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } ffc07f80: 4e 80 00 20 blr <== ALWAYS TAKEN pending_events = api->pending_events; seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = ffc07f84: 7c 00 48 78 andc r0,r0,r9 ffc07f88: 90 0b 00 00 stw r0,0(r11) ffc07f8c: 7d 40 01 24 mtmsr r10 * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } ffc07f90: 80 01 00 14 lwz r0,20(r1) ffc07f94: 83 c1 00 08 lwz r30,8(r1) ffc07f98: 7c 08 03 a6 mtlr r0 ffc07f9c: 83 e1 00 0c lwz r31,12(r1) if ( !_Event_sets_Is_empty( seized_events ) && (seized_events == event_in || _Options_Is_any( option_set )) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); *event_out = seized_events; ffc07fa0: 91 26 00 00 stw r9,0(r6) * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level ); } ffc07fa4: 38 21 00 10 addi r1,r1,16 ffc07fa8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07fac: 7c a0 01 24 mtmsr r5 ffc07fb0: 80 01 00 14 lwz r0,20(r1) ffc07fb4: 83 c1 00 08 lwz r30,8(r1) ffc07fb8: 7c 08 03 a6 mtlr r0 ffc07fbc: 83 e1 00 0c lwz r31,12(r1) ffc07fc0: 38 21 00 10 addi r1,r1,16 ffc07fc4: 4e 80 00 20 blr <== ALWAYS TAKEN _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize( ffc07fc8: 81 3f 00 08 lwz r9,8(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc07fcc: 3d 60 ff c1 lis r11,-63 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc07fd0: 38 00 00 00 li r0,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc07fd4: 90 bf 00 54 stw r5,84(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc07fd8: 39 6b 81 f0 addi r11,r11,-32272 ffc07fdc: 91 7f 00 64 stw r11,100(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07fe0: 3c 60 00 00 lis r3,0 ffc07fe4: 38 63 2d 48 addi r3,r3,11592 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc07fe8: 91 3f 00 68 stw r9,104(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07fec: 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; ffc07ff0: 90 1f 00 6c stw r0,108(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc07ff4: 90 1f 00 50 stw r0,80(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc07ff8: 48 00 47 09 bl ffc0c700 <_Watchdog_Insert> <== ALWAYS TAKEN ffc07ffc: 4b ff ff 10 b ffc07f0c <_Event_Seize+0x80> <== ALWAYS TAKEN ffc08074 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { ffc08074: 94 21 ff f0 stwu r1,-16(r1) ffc08078: 7c 08 02 a6 mflr r0 ffc0807c: 90 01 00 14 stw r0,20(r1) ffc08080: 93 e1 00 0c stw r31,12(r1) ffc08084: 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 ]; ffc08088: 81 63 01 44 lwz r11,324(r3) option_set = (rtems_option) the_thread->Wait.option; ffc0808c: 80 e3 00 30 lwz r7,48(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08090: 7d 40 00 a6 mfmsr r10 ffc08094: 7c 10 42 a6 mfsprg r0,0 ffc08098: 7d 40 00 78 andc r0,r10,r0 ffc0809c: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); pending_events = api->pending_events; ffc080a0: 81 2b 00 00 lwz r9,0(r11) event_condition = (rtems_event_set) the_thread->Wait.count; ffc080a4: 80 03 00 24 lwz r0,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 ) ) { ffc080a8: 7c 08 48 39 and. r8,r0,r9 ffc080ac: 41 82 00 b0 beq- ffc0815c <_Event_Surrender+0xe8> /* * 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() && ffc080b0: 3c c0 00 00 lis r6,0 ffc080b4: 80 c6 27 98 lwz r6,10136(r6) ffc080b8: 2f 86 00 00 cmpwi cr7,r6,0 ffc080bc: 41 9e 00 14 beq- cr7,ffc080d0 <_Event_Surrender+0x5c> ffc080c0: 3c c0 00 00 lis r6,0 ffc080c4: 80 c6 27 b0 lwz r6,10160(r6) ffc080c8: 7f 83 30 00 cmpw cr7,r3,r6 ffc080cc: 41 9e 00 d0 beq- cr7,ffc0819c <_Event_Surrender+0x128> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { ffc080d0: 80 df 00 10 lwz r6,16(r31) ffc080d4: 70 c5 01 00 andi. r5,r6,256 ffc080d8: 41 82 00 6c beq- ffc08144 <_Event_Surrender+0xd0> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { ffc080dc: 7f 80 40 00 cmpw cr7,r0,r8 ffc080e0: 41 9e 00 0c beq- cr7,ffc080ec <_Event_Surrender+0x78> ffc080e4: 70 e0 00 02 andi. r0,r7,2 ffc080e8: 41 82 00 5c beq- ffc08144 <_Event_Surrender+0xd0> <== 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; ffc080ec: 80 ff 00 28 lwz r7,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 ); ffc080f0: 7d 29 40 78 andc r9,r9,r8 the_thread->Wait.count = 0; ffc080f4: 38 00 00 00 li r0,0 /* * 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 ); ffc080f8: 91 2b 00 00 stw r9,0(r11) the_thread->Wait.count = 0; ffc080fc: 90 1f 00 24 stw r0,36(r31) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc08100: 91 07 00 00 stw r8,0(r7) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc08104: 7c 00 00 a6 mfmsr r0 ffc08108: 7d 40 01 24 mtmsr r10 ffc0810c: 7c 00 01 24 mtmsr r0 _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc08110: 80 1f 00 50 lwz r0,80(r31) ffc08114: 2f 80 00 02 cmpwi cr7,r0,2 ffc08118: 41 9e 00 5c beq- cr7,ffc08174 <_Event_Surrender+0x100> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0811c: 7d 40 01 24 mtmsr r10 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc08120: 3c 80 10 03 lis r4,4099 ffc08124: 7f e3 fb 78 mr r3,r31 ffc08128: 60 84 ff f8 ori r4,r4,65528 ffc0812c: 48 00 29 d5 bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN } return; } } _ISR_Enable( level ); } ffc08130: 80 01 00 14 lwz r0,20(r1) ffc08134: 83 e1 00 0c lwz r31,12(r1) ffc08138: 38 21 00 10 addi r1,r1,16 ffc0813c: 7c 08 03 a6 mtlr r0 ffc08140: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08144: 7d 40 01 24 mtmsr r10 ffc08148: 80 01 00 14 lwz r0,20(r1) ffc0814c: 83 e1 00 0c lwz r31,12(r1) ffc08150: 38 21 00 10 addi r1,r1,16 ffc08154: 7c 08 03 a6 mtlr r0 ffc08158: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0815c: 7d 40 01 24 mtmsr r10 ffc08160: 80 01 00 14 lwz r0,20(r1) ffc08164: 83 e1 00 0c lwz r31,12(r1) ffc08168: 38 21 00 10 addi r1,r1,16 ffc0816c: 7c 08 03 a6 mtlr r0 ffc08170: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc08174: 38 00 00 03 li r0,3 ffc08178: 90 1f 00 50 stw r0,80(r31) ffc0817c: 7d 40 01 24 mtmsr r10 _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc08180: 38 7f 00 48 addi r3,r31,72 ffc08184: 48 00 47 45 bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN ffc08188: 3c 80 10 03 lis r4,4099 ffc0818c: 7f e3 fb 78 mr r3,r31 ffc08190: 60 84 ff f8 ori r4,r4,65528 ffc08194: 48 00 29 6d bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN ffc08198: 4b ff ff b0 b ffc08148 <_Event_Surrender+0xd4> <== 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() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || ffc0819c: 3c c0 00 00 lis r6,0 ffc081a0: 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() && ffc081a4: 2f 85 00 02 cmpwi cr7,r5,2 ffc081a8: 41 9e 00 10 beq- cr7,ffc081b8 <_Event_Surrender+0x144> <== NEVER TAKEN _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { ffc081ac: 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() && ffc081b0: 2f 85 00 01 cmpwi cr7,r5,1 ffc081b4: 40 9e ff 1c bne+ cr7,ffc080d0 <_Event_Surrender+0x5c> _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) ) { ffc081b8: 7f 80 40 00 cmpw cr7,r0,r8 ffc081bc: 41 9e 00 0c beq- cr7,ffc081c8 <_Event_Surrender+0x154> ffc081c0: 70 e0 00 02 andi. r0,r7,2 ffc081c4: 41 82 00 24 beq- ffc081e8 <_Event_Surrender+0x174> <== 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; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; ffc081c8: 38 00 00 03 li r0,3 ((_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; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc081cc: 80 ff 00 28 lwz r7,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 ); ffc081d0: 7d 29 40 78 andc r9,r9,r8 the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; ffc081d4: 90 06 27 e8 stw r0,10216(r6) _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; ffc081d8: 38 00 00 00 li r0,0 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 ); ffc081dc: 91 2b 00 00 stw r9,0(r11) the_thread->Wait.count = 0; ffc081e0: 90 1f 00 24 stw r0,36(r31) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; ffc081e4: 91 07 00 00 stw r8,0(r7) ffc081e8: 7d 40 01 24 mtmsr r10 ffc081ec: 4b ff ff 5c b ffc08148 <_Event_Surrender+0xd4> <== ALWAYS TAKEN ffc081f0 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { ffc081f0: 94 21 ff e8 stwu r1,-24(r1) ffc081f4: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); ffc081f8: 38 81 00 08 addi r4,r1,8 void _Event_Timeout( Objects_Id id, void *ignored ) { ffc081fc: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); ffc08200: 48 00 2e 35 bl ffc0b034 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc08204: 80 01 00 08 lwz r0,8(r1) ffc08208: 2f 80 00 00 cmpwi cr7,r0,0 ffc0820c: 40 9e 00 50 bne- cr7,ffc0825c <_Event_Timeout+0x6c> <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08210: 7d 20 00 a6 mfmsr r9 ffc08214: 7d 70 42 a6 mfsprg r11,0 ffc08218: 7d 2b 58 78 andc r11,r9,r11 ffc0821c: 7d 60 01 24 mtmsr r11 return; } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { ffc08220: 3d 60 00 00 lis r11,0 _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; ffc08224: 90 03 00 24 stw r0,36(r3) if ( _Thread_Is_executing( the_thread ) ) { ffc08228: 81 6b 27 b0 lwz r11,10160(r11) ffc0822c: 7f 83 58 00 cmpw cr7,r3,r11 ffc08230: 41 9e 00 3c beq- cr7,ffc0826c <_Event_Timeout+0x7c> if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; } the_thread->Wait.return_code = RTEMS_TIMEOUT; ffc08234: 38 00 00 06 li r0,6 ffc08238: 90 03 00 34 stw r0,52(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0823c: 7d 20 01 24 mtmsr r9 ffc08240: 3c 80 10 03 lis r4,4099 ffc08244: 60 84 ff f8 ori r4,r4,65528 ffc08248: 48 00 28 b9 bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0824c: 3d 20 00 00 lis r9,0 ffc08250: 81 69 27 70 lwz r11,10096(r9) ffc08254: 38 0b ff ff addi r0,r11,-1 ffc08258: 90 09 27 70 stw r0,10096(r9) case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } ffc0825c: 80 01 00 1c lwz r0,28(r1) ffc08260: 38 21 00 18 addi r1,r1,24 ffc08264: 7c 08 03 a6 mtlr r0 ffc08268: 4e 80 00 20 blr <== ALWAYS TAKEN } #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) ffc0826c: 3d 60 00 00 lis r11,0 ffc08270: 80 0b 27 e8 lwz r0,10216(r11) ffc08274: 2f 80 00 01 cmpwi cr7,r0,1 ffc08278: 40 9e ff bc bne+ cr7,ffc08234 <_Event_Timeout+0x44> _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; ffc0827c: 38 00 00 02 li r0,2 ffc08280: 90 0b 27 e8 stw r0,10216(r11) ffc08284: 4b ff ff b0 b ffc08234 <_Event_Timeout+0x44> <== ALWAYS TAKEN ffc08e68 <_Extension_Manager_initialization>: * Output parameters: NONE */ void _Extension_Manager_initialization(void) { _Objects_Initialize_information( ffc08e68: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _Extension_Manager_initialization(void) { ffc08e6c: 94 21 ff f8 stwu r1,-8(r1) ffc08e70: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc08e74: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN ffc08e78: 80 c9 20 a8 lwz r6,8360(r9) <== ALWAYS TAKEN ffc08e7c: 38 63 34 e4 addi r3,r3,13540 ffc08e80: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Extension_Manager_initialization(void) { ffc08e84: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc08e88: 38 a0 00 09 li r5,9 ffc08e8c: 38 e0 00 44 li r7,68 ffc08e90: 39 00 00 00 li r8,0 ffc08e94: 39 20 00 04 li r9,4 ffc08e98: 48 00 16 4d bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc08e9c: 80 01 00 0c lwz r0,12(r1) ffc08ea0: 38 21 00 08 addi r1,r1,8 ffc08ea4: 7c 08 03 a6 mtlr r0 ffc08ea8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0fa2c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { ffc0fa2c: 94 21 ff e0 stwu r1,-32(r1) <== ALWAYS TAKEN ffc0fa30: 7c 08 02 a6 mflr r0 ffc0fa34: 7d 80 00 26 mfcr r12 ffc0fa38: 7c 89 23 78 mr r9,r4 ffc0fa3c: 90 01 00 24 stw r0,36(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; ffc0fa40: 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 ) { ffc0fa44: 7f 84 00 40 cmplw cr7,r4,r0 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { ffc0fa48: 93 a1 00 14 stw r29,20(r1) ffc0fa4c: 7c 7d 1b 78 mr r29,r3 ffc0fa50: 93 61 00 0c stw r27,12(r1) <== ALWAYS TAKEN ffc0fa54: 93 81 00 10 stw r28,16(r1) ffc0fa58: 93 c1 00 18 stw r30,24(r1) ffc0fa5c: 93 e1 00 1c stw r31,28(r1) ffc0fa60: 91 81 00 08 stw r12,8(r1) <== ALWAYS TAKEN return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0fa64: 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; ffc0fa68: 80 e3 00 10 lwz r7,16(r3) uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { ffc0fa6c: 41 9d 01 7c bgt- cr7,ffc0fbe8 <_Heap_Allocate_aligned_with_boundary+0x1bc> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { ffc0fa70: 2e 06 00 00 cmpwi cr4,r6,0 <== ALWAYS TAKEN ffc0fa74: 40 92 01 6c bne- cr4,ffc0fbe0 <_Heap_Allocate_aligned_with_boundary+0x1b4> if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { ffc0fa78: 7f 9d 20 00 cmpw cr7,r29,r4 ffc0fa7c: 3b c0 00 00 li r30,0 ffc0fa80: 41 9e 01 98 beq- cr7,ffc0fc18 <_Heap_Allocate_aligned_with_boundary+0x1ec> * 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 ) { ffc0fa84: 2c 05 00 00 cmpwi 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; ffc0fa88: 3b 67 00 07 addi r27,r7,7 uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; ffc0fa8c: 23 89 00 04 subfic r28,r9,4 ffc0fa90: 48 00 00 1c b ffc0faac <_Heap_Allocate_aligned_with_boundary+0x80> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; ffc0fa94: 3b e4 00 08 addi r31,r4,8 <== ALWAYS TAKEN boundary ); } } if ( alloc_begin != 0 ) { ffc0fa98: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0fa9c: 40 9e 00 e8 bne- cr7,ffc0fb84 <_Heap_Allocate_aligned_with_boundary+0x158> <== ALWAYS TAKEN break; } block = block->next; ffc0faa0: 80 84 00 08 lwz r4,8(r4) if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { ffc0faa4: 7f 9d 20 00 cmpw cr7,r29,r4 ffc0faa8: 41 9e 01 70 beq- cr7,ffc0fc18 <_Heap_Allocate_aligned_with_boundary+0x1ec> /* * 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 ) { ffc0faac: 81 64 00 04 lwz r11,4(r4) <== ALWAYS TAKEN while ( block != free_list_tail ) { _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; ffc0fab0: 3b de 00 01 addi r30,r30,1 /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { ffc0fab4: 7f 80 58 40 cmplw cr7,r0,r11 ffc0fab8: 40 bc ff e8 bge- cr7,ffc0faa0 <_Heap_Allocate_aligned_with_boundary+0x74> if ( alignment == 0 ) { ffc0fabc: 41 82 ff d8 beq+ ffc0fa94 <_Heap_Allocate_aligned_with_boundary+0x68> 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; ffc0fac0: 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; ffc0fac4: 80 7d 00 14 lwz r3,20(r29) 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; ffc0fac8: 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; ffc0facc: 7f fc 5a 14 add r31,r28,r11 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); ffc0fad0: 7f ff 2b 96 divwu r31,r31,r5 <== ALWAYS TAKEN ffc0fad4: 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; ffc0fad8: 7d 43 d8 50 subf r10,r3,r27 ffc0fadc: 7d 6a 5a 14 add r11,r10,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 ) { ffc0fae0: 7f 8b f8 40 cmplw cr7,r11,r31 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; ffc0fae4: 39 84 00 08 addi r12,r4,8 ffc0fae8: 40 9c 00 0c bge- cr7,ffc0faf4 <_Heap_Allocate_aligned_with_boundary+0xc8> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); ffc0faec: 7d 6b 2b 96 divwu r11,r11,r5 ffc0faf0: 7f eb 29 d6 mullw r31,r11,r5 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { ffc0faf4: 41 92 00 60 beq- cr4,ffc0fb54 <_Heap_Allocate_aligned_with_boundary+0x128> /* 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; ffc0faf8: 7d 5f 4a 14 add r10,r31,r9 ffc0fafc: 7d 6a 33 96 divwu r11,r10,r6 ffc0fb00: 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 ) { ffc0fb04: 7f 9f 58 40 cmplw cr7,r31,r11 ffc0fb08: 40 9c 00 4c bge- cr7,ffc0fb54 <_Heap_Allocate_aligned_with_boundary+0x128> ffc0fb0c: 7f 8a 58 40 cmplw cr7,r10,r11 ffc0fb10: 40 9d 00 44 ble- cr7,ffc0fb54 <_Heap_Allocate_aligned_with_boundary+0x128> alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; ffc0fb14: 7d 0c 4a 14 add r8,r12,r9 uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { ffc0fb18: 7f 88 58 40 cmplw cr7,r8,r11 ffc0fb1c: 40 bd 00 10 ble+ cr7,ffc0fb2c <_Heap_Allocate_aligned_with_boundary+0x100> ffc0fb20: 4b ff ff 80 b ffc0faa0 <_Heap_Allocate_aligned_with_boundary+0x74> <== ALWAYS TAKEN /* 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 ) { ffc0fb24: 40 99 00 30 ble- cr6,ffc0fb54 <_Heap_Allocate_aligned_with_boundary+0x128> if ( boundary_line < boundary_floor ) { ffc0fb28: 41 a5 ff 78 bgt- cr1,ffc0faa0 <_Heap_Allocate_aligned_with_boundary+0x74> <== NEVER TAKEN return 0; } alloc_begin = boundary_line - alloc_size; ffc0fb2c: 7f e9 58 50 subf r31,r9,r11 ffc0fb30: 7f ff 2b 96 divwu r31,r31,r5 ffc0fb34: 7f ff 29 d6 mullw r31,r31,r5 alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; ffc0fb38: 7d 5f 4a 14 add r10,r31,r9 ffc0fb3c: 7d 6a 33 96 divwu r11,r10,r6 ffc0fb40: 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 ) { ffc0fb44: 7f 9f 58 40 cmplw cr7,r31,r11 ffc0fb48: 7f 0a 58 40 cmplw cr6,r10,r11 if ( boundary_line < boundary_floor ) { ffc0fb4c: 7c 88 58 40 cmplw cr1,r8,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 ) { ffc0fb50: 41 9c ff d4 blt+ cr7,ffc0fb24 <_Heap_Allocate_aligned_with_boundary+0xf8> 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 ) { ffc0fb54: 7f 8c f8 40 cmplw cr7,r12,r31 ffc0fb58: 41 bd ff 48 bgt- cr7,ffc0faa0 <_Heap_Allocate_aligned_with_boundary+0x74> 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; ffc0fb5c: 7d 7f 3b 96 divwu r11,r31,r7 ffc0fb60: 7d 6b 39 d6 mullw r11,r11,r7 ffc0fb64: 21 44 ff f8 subfic r10,r4,-8 ffc0fb68: 7d 6a 5a 14 add r11,r10,r11 if ( free_size >= min_block_size || free_size == 0 ) { ffc0fb6c: 7f 83 58 40 cmplw cr7,r3,r11 ffc0fb70: 40 bd ff 28 ble- cr7,ffc0fa98 <_Heap_Allocate_aligned_with_boundary+0x6c> ffc0fb74: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0fb78: 40 be ff 28 bne- cr7,ffc0faa0 <_Heap_Allocate_aligned_with_boundary+0x74> boundary ); } } if ( alloc_begin != 0 ) { ffc0fb7c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0fb80: 41 9e ff 20 beq+ cr7,ffc0faa0 <_Heap_Allocate_aligned_with_boundary+0x74> <== NEVER TAKEN block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; ffc0fb84: 80 1d 00 4c lwz r0,76(r29) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); ffc0fb88: 7d 26 4b 78 mr r6,r9 <== ALWAYS TAKEN ffc0fb8c: 7f a3 eb 78 mr r3,r29 block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; ffc0fb90: 7c 00 f2 14 add r0,r0,r30 ffc0fb94: 90 1d 00 4c stw r0,76(r29) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); ffc0fb98: 7f e5 fb 78 mr r5,r31 ffc0fb9c: 4b ff a0 d5 bl ffc09c70 <_Heap_Block_allocate> <== ALWAYS TAKEN ffc0fba0: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; ffc0fba4: 80 1d 00 44 lwz r0,68(r29) ffc0fba8: 7f 80 f0 40 cmplw cr7,r0,r30 ffc0fbac: 40 9c 00 40 bge- cr7,ffc0fbec <_Heap_Allocate_aligned_with_boundary+0x1c0> if ( stats->max_search < search_count ) { stats->max_search = search_count; } return (void *) alloc_begin; } ffc0fbb0: 80 01 00 24 lwz r0,36(r1) ffc0fbb4: 81 81 00 08 lwz r12,8(r1) ffc0fbb8: 7c 08 03 a6 mtlr r0 ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; ffc0fbbc: 93 dd 00 44 stw r30,68(r29) <== ALWAYS TAKEN } return (void *) alloc_begin; } ffc0fbc0: 7d 80 81 20 mtcrf 8,r12 ffc0fbc4: 83 61 00 0c lwz r27,12(r1) ffc0fbc8: 83 81 00 10 lwz r28,16(r1) ffc0fbcc: 83 a1 00 14 lwz r29,20(r1) <== ALWAYS TAKEN ffc0fbd0: 83 c1 00 18 lwz r30,24(r1) <== ALWAYS TAKEN ffc0fbd4: 83 e1 00 1c lwz r31,28(r1) ffc0fbd8: 38 21 00 20 addi r1,r1,32 ffc0fbdc: 4e 80 00 20 blr <== ALWAYS TAKEN /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { ffc0fbe0: 7f 89 30 40 cmplw cr7,r9,r6 ffc0fbe4: 40 bd 00 3c ble+ cr7,ffc0fc20 <_Heap_Allocate_aligned_with_boundary+0x1f4> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; ffc0fbe8: 38 60 00 00 li r3,0 } return (void *) alloc_begin; } ffc0fbec: 80 01 00 24 lwz r0,36(r1) ffc0fbf0: 81 81 00 08 lwz r12,8(r1) ffc0fbf4: 7c 08 03 a6 mtlr r0 ffc0fbf8: 83 61 00 0c lwz r27,12(r1) ffc0fbfc: 83 81 00 10 lwz r28,16(r1) <== ALWAYS TAKEN ffc0fc00: 7d 80 81 20 mtcrf 8,r12 ffc0fc04: 83 a1 00 14 lwz r29,20(r1) <== ALWAYS TAKEN ffc0fc08: 83 c1 00 18 lwz r30,24(r1) <== ALWAYS TAKEN ffc0fc0c: 83 e1 00 1c lwz r31,28(r1) ffc0fc10: 38 21 00 20 addi r1,r1,32 ffc0fc14: 4e 80 00 20 blr <== ALWAYS TAKEN if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { ffc0fc18: 38 60 00 00 li r3,0 ffc0fc1c: 4b ff ff 88 b ffc0fba4 <_Heap_Allocate_aligned_with_boundary+0x178> <== ALWAYS TAKEN if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { ffc0fc20: 2f 85 00 00 cmpwi cr7,r5,0 ffc0fc24: 40 be fe 54 bne- cr7,ffc0fa78 <_Heap_Allocate_aligned_with_boundary+0x4c> ffc0fc28: 7c e5 3b 78 mr r5,r7 ffc0fc2c: 4b ff fe 4c b ffc0fa78 <_Heap_Allocate_aligned_with_boundary+0x4c> <== ALWAYS TAKEN ffc09c70 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { ffc09c70: 94 21 ff e8 stwu r1,-24(r1) ffc09c74: 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; ffc09c78: 39 65 ff f8 addi r11,r5,-8 ffc09c7c: 90 01 00 1c stw r0,28(r1) ffc09c80: 7c 87 23 78 mr r7,r4 <== ALWAYS TAKEN Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc09c84: 80 04 00 04 lwz r0,4(r4) Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { ffc09c88: 93 c1 00 10 stw r30,16(r1) ffc09c8c: 7c 7e 1b 78 mr r30,r3 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc09c90: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc09c94: 7d 24 02 14 add r9,r4,r0 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { ffc09c98: 93 e1 00 14 stw r31,20(r1) ffc09c9c: 7c 9f 23 78 mr r31,r4 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc09ca0: 80 09 00 04 lwz r0,4(r9) /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap ); ffc09ca4: 7c 69 1b 78 mr r9,r3 Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { ffc09ca8: 93 a1 00 0c stw r29,12(r1) Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc09cac: 70 08 00 01 andi. r8,r0,1 ) { 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; ffc09cb0: 7d 04 58 50 subf r8,r4,r11 Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { ffc09cb4: 40 82 00 40 bne- ffc09cf4 <_Heap_Block_allocate+0x84> _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ++stats->used_blocks; ffc09cb8: 81 43 00 40 lwz r10,64(r3) free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ffc09cbc: 81 23 00 38 lwz r9,56(r3) ++stats->used_blocks; ffc09cc0: 38 0a 00 01 addi r0,r10,1 return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; ffc09cc4: 81 5f 00 08 lwz r10,8(r31) free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ffc09cc8: 39 29 ff ff addi r9,r9,-1 ++stats->used_blocks; ffc09ccc: 90 03 00 40 stw r0,64(r3) free_list_anchor = block->prev; _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ffc09cd0: 91 23 00 38 stw r9,56(r3) ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); ffc09cd4: 80 04 00 04 lwz r0,4(r4) ffc09cd8: 80 83 00 30 lwz r4,48(r3) Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { free_list_anchor = block->prev; ffc09cdc: 81 3f 00 0c lwz r9,12(r31) _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); ffc09ce0: 54 00 00 3c rlwinm r0,r0,0,0,30 <== ALWAYS TAKEN ffc09ce4: 7c 00 20 50 subf r0,r0,r4 Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; ffc09ce8: 91 2a 00 0c stw r9,12(r10) ffc09cec: 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; ffc09cf0: 91 49 00 08 stw r10,8(r9) } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { ffc09cf4: 81 5e 00 10 lwz r10,16(r30) <== ALWAYS TAKEN ffc09cf8: 7f 88 50 40 cmplw cr7,r8,r10 <== ALWAYS TAKEN ffc09cfc: 41 9c 00 d4 blt- cr7,ffc09dd0 <_Heap_Block_allocate+0x160> 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 ) ffc09d00: 7f a5 53 96 divwu r29,r5,r10 _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; ffc09d04: 81 1e 00 30 lwz r8,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; ffc09d08: 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 ) ffc09d0c: 7f bd 51 d6 mullw r29,r29,r10 ffc09d10: 7f bd 28 50 subf r29,r29,r5 ffc09d14: 7f bd 58 50 subf r29,r29,r11 _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; ffc09d18: 7d 7f e8 50 subf r11,r31,r29 _HAssert( block_size >= heap->min_block_size ); _HAssert( new_block_size >= heap->min_block_size ); /* Statistics */ stats->free_size += block_size; ffc09d1c: 7d 48 5a 14 add r10,r8,r11 ffc09d20: 91 5e 00 30 stw r10,48(r30) if ( _Heap_Is_prev_used( block ) ) { ffc09d24: 81 5f 00 04 lwz r10,4(r31) ffc09d28: 71 48 00 01 andi. r8,r10,1 ffc09d2c: 40 82 00 7c bne- ffc09da8 <_Heap_Block_allocate+0x138> RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block( const Heap_Block *block ) { return (Heap_Block *) ((uintptr_t) block - block->prev_size); ffc09d30: 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; ffc09d34: 7d 25 4b 78 mr r5,r9 ffc09d38: 7f ea f8 50 subf r31,r10,r31 ffc09d3c: 81 3f 00 04 lwz r9,4(r31) ffc09d40: 55 29 00 3c rlwinm r9,r9,0,0,30 ffc09d44: 7d 6b 4a 14 add r11,r11,r9 } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; new_block->prev_size = block_size; new_block->size_and_flag = new_block_size; ffc09d48: 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; ffc09d4c: 91 7d 00 00 stw r11,0(r29) new_block->size_and_flag = new_block_size; ffc09d50: 7c 07 02 14 add r0,r7,r0 ffc09d54: 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; ffc09d58: 61 69 00 01 ori r9,r11,1 ffc09d5c: 91 3f 00 04 stw r9,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 ); ffc09d60: 7f c3 f3 78 mr r3,r30 ffc09d64: 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; ffc09d68: 90 1d 00 04 stw r0,4(r29) _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); ffc09d6c: 7f bf eb 78 mr r31,r29 ffc09d70: 4b ff fd ed bl ffc09b5c <_Heap_Block_split> <== ALWAYS TAKEN alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { ffc09d74: 80 1e 00 30 lwz r0,48(r30) <== ALWAYS TAKEN Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; ffc09d78: 81 3e 00 34 lwz r9,52(r30) <== ALWAYS TAKEN ffc09d7c: 7f 89 00 40 cmplw cr7,r9,r0 ffc09d80: 40 9d 00 08 ble- cr7,ffc09d88 <_Heap_Block_allocate+0x118> ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { stats->min_free_size = stats->free_size; ffc09d84: 90 1e 00 34 stw r0,52(r30) } return block; } ffc09d88: 80 01 00 1c lwz r0,28(r1) ffc09d8c: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc09d90: 83 a1 00 0c lwz r29,12(r1) ffc09d94: 7c 08 03 a6 mtlr r0 ffc09d98: 83 c1 00 10 lwz r30,16(r1) ffc09d9c: 83 e1 00 14 lwz r31,20(r1) ffc09da0: 38 21 00 18 addi r1,r1,24 ffc09da4: 4e 80 00 20 blr <== ALWAYS TAKEN _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; ffc09da8: 81 1e 00 38 lwz r8,56(r30) ffc09dac: 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; ffc09db0: 81 49 00 08 lwz r10,8(r9) ffc09db4: 39 08 00 01 addi r8,r8,1 new_block->next = next; new_block->prev = block_before; ffc09db8: 91 3f 00 0c stw r9,12(r31) Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; ffc09dbc: 91 5f 00 08 stw r10,8(r31) ffc09dc0: 91 1e 00 38 stw r8,56(r30) new_block->prev = block_before; block_before->next = new_block; ffc09dc4: 93 e9 00 08 stw r31,8(r9) next->prev = new_block; ffc09dc8: 93 ea 00 0c stw r31,12(r10) ffc09dcc: 4b ff ff 7c b ffc09d48 <_Heap_Block_allocate+0xd8> <== ALWAYS TAKEN Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { _Heap_Block_split( heap, block, free_list_anchor, alloc_size ); ffc09dd0: 7c c8 32 14 add r6,r8,r6 ffc09dd4: 7d 25 4b 78 mr r5,r9 ffc09dd8: 7f c3 f3 78 mr r3,r30 ffc09ddc: 7f e4 fb 78 mr r4,r31 ffc09de0: 4b ff fd 7d bl ffc09b5c <_Heap_Block_split> <== ALWAYS TAKEN ffc09de4: 4b ff ff 90 b ffc09d74 <_Heap_Block_allocate+0x104> <== ALWAYS TAKEN ffc09b5c <_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; ffc09b5c: 81 23 00 14 lwz r9,20(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; ffc09b60: 81 64 00 04 lwz r11,4(r4) <== ALWAYS TAKEN 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; ffc09b64: 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; ffc09b68: 81 43 00 10 lwz r10,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; ffc09b6c: 7f 86 00 40 cmplw cr7,r6,r0 ffc09b70: 55 68 00 3c rlwinm r8,r11,0,0,30 ffc09b74: 40 9c 00 08 bge- cr7,ffc09b7c <_Heap_Block_split+0x20> ffc09b78: 7c 06 03 78 mr r6,r0 ffc09b7c: 38 c6 00 08 addi r6,r6,8 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; ffc09b80: 7c 06 53 96 divwu r0,r6,r10 ffc09b84: 7c 00 51 d6 mullw r0,r0,r10 if ( remainder != 0 ) { ffc09b88: 7f 86 00 00 cmpw cr7,r6,r0 <== ALWAYS TAKEN return value - remainder + alignment; ffc09b8c: 7d 40 52 14 add r10,r0,r10 uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { ffc09b90: 40 9e 00 08 bne- cr7,ffc09b98 <_Heap_Block_split+0x3c> ffc09b94: 7c ca 33 78 mr r10,r6 <== ALWAYS TAKEN 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 ) { ffc09b98: 38 08 00 04 addi r0,r8,4 <== ALWAYS TAKEN ffc09b9c: 39 29 00 04 addi r9,r9,4 ffc09ba0: 7c c6 00 50 subf r6,r6,r0 ffc09ba4: 7f 86 48 40 cmplw cr7,r6,r9 <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc09ba8: 7d 24 42 14 add r9,r4,r8 ffc09bac: 41 9c 00 78 blt- cr7,ffc09c24 <_Heap_Block_split+0xc8> uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc09bb0: 55 6b 07 fe clrlwi r11,r11,31 ffc09bb4: 7d 4b 5b 78 or r11,r10,r11 <== ALWAYS TAKEN ffc09bb8: 91 64 00 04 stw r11,4(r4) Heap_Block *const free_block = _Heap_Block_at( block, used_block_size ); uintptr_t free_block_size = block_size - used_block_size; ffc09bbc: 7d 0a 40 50 subf r8,r10,r8 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc09bc0: 7c 8a 22 14 add r4,r10,r4 _HAssert( used_block_size + free_block_size == block_size ); _Heap_Block_set_size( block, used_block_size ); /* Statistics */ stats->free_size += free_block_size; ffc09bc4: 80 03 00 30 lwz r0,48(r3) ffc09bc8: 7c 00 42 14 add r0,r0,r8 ffc09bcc: 90 03 00 30 stw r0,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; ffc09bd0: 80 09 00 04 lwz r0,4(r9) ffc09bd4: 54 00 00 3c rlwinm r0,r0,0,0,30 if ( _Heap_Is_used( next_block ) ) { ffc09bd8: 7d 69 02 14 add r11,r9,r0 <== ALWAYS TAKEN ffc09bdc: 81 6b 00 04 lwz r11,4(r11) ffc09be0: 71 6a 00 01 andi. r10,r11,1 <== ALWAYS TAKEN ffc09be4: 40 82 00 50 bne- ffc09c34 <_Heap_Block_split+0xd8> } 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; ffc09be8: 7d 08 02 14 add r8,r8,r0 Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; ffc09bec: 81 49 00 0c lwz r10,12(r9) next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; ffc09bf0: 61 00 00 01 ori r0,r8,1 RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; ffc09bf4: 81 69 00 08 lwz r11,8(r9) ffc09bf8: 90 04 00 04 stw r0,4(r4) RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc09bfc: 7d 28 22 14 add r9,r8,r4 next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc09c00: 80 09 00 04 lwz r0,4(r9) ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; ffc09c04: 91 64 00 08 stw r11,8(r4) ffc09c08: 54 00 00 3c rlwinm r0,r0,0,0,30 new_block->prev = prev; ffc09c0c: 91 44 00 0c stw r10,12(r4) next->prev = new_block; prev->next = new_block; ffc09c10: 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; ffc09c14: 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; next_block->prev_size = free_block_size; ffc09c18: 91 09 00 00 stw r8,0(r9) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc09c1c: 90 09 00 04 stw r0,4(r9) ffc09c20: 4e 80 00 20 blr <== ALWAYS TAKEN } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; ffc09c24: 80 09 00 04 lwz r0,4(r9) ffc09c28: 60 00 00 01 ori r0,r0,1 ffc09c2c: 90 09 00 04 stw r0,4(r9) ffc09c30: 4e 80 00 20 blr <== ALWAYS TAKEN if ( _Heap_Is_used( next_block ) ) { _Heap_Free_list_insert_after( free_list_anchor, free_block ); /* Statistics */ ++stats->free_blocks; ffc09c34: 81 43 00 38 lwz r10,56(r3) <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; ffc09c38: 81 65 00 08 lwz r11,8(r5) <== ALWAYS TAKEN ffc09c3c: 38 0a 00 01 addi r0,r10,1 new_block->next = next; new_block->prev = block_before; ffc09c40: 90 a4 00 0c stw r5,12(r4) ffc09c44: 90 03 00 38 stw r0,56(r3) free_block_size += next_block_size; next_block = _Heap_Block_at( free_block, free_block_size ); } free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED; ffc09c48: 61 00 00 01 ori r0,r8,1 ffc09c4c: 90 04 00 04 stw r0,4(r4) next_block->prev_size = free_block_size; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc09c50: 80 09 00 04 lwz r0,4(r9) <== ALWAYS TAKEN Heap_Block *new_block ) { Heap_Block *next = block_before->next; new_block->next = next; ffc09c54: 91 64 00 08 stw r11,8(r4) ffc09c58: 54 00 00 3c rlwinm r0,r0,0,0,30 new_block->prev = block_before; block_before->next = new_block; ffc09c5c: 90 85 00 08 stw r4,8(r5) next->prev = new_block; ffc09c60: 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; next_block->prev_size = free_block_size; ffc09c64: 91 09 00 00 stw r8,0(r9) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc09c68: 90 09 00 04 stw r0,4(r9) ffc09c6c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc14bd8 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { ffc14bd8: 7c 08 02 a6 mflr r0 ffc14bdc: 94 21 ff f8 stwu r1,-8(r1) ffc14be0: 7c 69 1b 78 mr r9,r3 ffc14be4: 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; ffc14be8: 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; ffc14bec: 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; ffc14bf0: 7f 84 00 40 cmplw cr7,r4,r0 uintptr_t const heap_area_end = heap->area_end; ffc14bf4: 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; ffc14bf8: 40 9c 00 bc bge- cr7,ffc14cb4 <_Heap_Extend+0xdc> * As noted, this code only supports (4). */ if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) { return HEAP_EXTEND_ERROR; /* case 3 */ } else if ( area_begin != heap_area_end ) { ffc14bfc: 7f 84 00 00 cmpw cr7,r4,r0 ffc14c00: 38 60 00 02 li r3,2 ffc14c04: 41 9e 00 14 beq- cr7,ffc14c18 <_Heap_Extend+0x40> _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } ffc14c08: 80 01 00 0c lwz r0,12(r1) ffc14c0c: 38 21 00 08 addi r1,r1,8 ffc14c10: 7c 08 03 a6 mtlr r0 ffc14c14: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); ffc14c18: 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; ffc14c1c: 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 ffc14c20: 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; ffc14c24: 90 89 00 1c stw r4,28(r9) extend_size = new_heap_area_end ffc14c28: 7c 00 22 14 add r0,r0,r4 ffc14c2c: 7c 00 5b 96 divwu r0,r0,r11 ffc14c30: 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 ) { ffc14c34: 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; ffc14c38: 90 06 00 00 stw r0,0(r6) if( extend_size >= heap->min_block_size ) { ffc14c3c: 81 69 00 14 lwz r11,20(r9) ffc14c40: 7f 8b 00 40 cmplw cr7,r11,r0 ffc14c44: 41 9d ff c4 bgt+ cr7,ffc14c08 <_Heap_Extend+0x30> <== NEVER TAKEN uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc14c48: 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); ffc14c4c: 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 = ffc14c50: 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 )); ffc14c54: 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; ffc14c58: 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; ffc14c5c: 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 = ffc14c60: 7d 0b 40 50 subf r8,r11,r8 ffc14c64: 7c 07 3b 78 or r7,r0,r7 ffc14c68: 61 08 00 01 ori r8,r8,1 ffc14c6c: 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 )); ffc14c70: 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 = ffc14c74: 91 0b 00 04 stw r8,4(r11) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc14c78: 80 e9 00 2c lwz r7,44(r9) ++stats->used_blocks; ffc14c7c: 81 09 00 40 lwz r8,64(r9) --stats->frees; /* Do not count subsequent call as actual free() */ ffc14c80: 81 49 00 50 lwz r10,80(r9) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc14c84: 7c 07 02 14 add r0,r7,r0 ++stats->used_blocks; ffc14c88: 39 08 00 01 addi r8,r8,1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ffc14c8c: 90 09 00 2c stw r0,44(r9) ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ ffc14c90: 39 4a ff ff addi r10,r10,-1 heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; ++stats->used_blocks; ffc14c94: 91 09 00 40 stw r8,64(r9) --stats->frees; /* Do not count subsequent call as actual free() */ ffc14c98: 91 49 00 50 stw r10,80(r9) _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); ffc14c9c: 4b ff 90 61 bl ffc0dcfc <_Heap_Free> <== ALWAYS TAKEN } return HEAP_EXTEND_SUCCESSFUL; } ffc14ca0: 80 01 00 0c lwz r0,12(r1) /* 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 )); ffc14ca4: 38 60 00 00 li r3,0 } return HEAP_EXTEND_SUCCESSFUL; } ffc14ca8: 7c 08 03 a6 mtlr r0 ffc14cac: 38 21 00 08 addi r1,r1,8 ffc14cb0: 4e 80 00 20 blr <== ALWAYS TAKEN * 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 ) { ffc14cb4: 7f 84 00 40 cmplw cr7,r4,r0 ffc14cb8: 38 60 00 01 li r3,1 ffc14cbc: 40 9c ff 40 bge+ cr7,ffc14bfc <_Heap_Extend+0x24> _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } ffc14cc0: 80 01 00 0c lwz r0,12(r1) ffc14cc4: 38 21 00 08 addi r1,r1,8 ffc14cc8: 7c 08 03 a6 mtlr r0 ffc14ccc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0fc30 <_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 ) ffc0fc30: 80 03 00 10 lwz r0,16(r3) #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { ffc0fc34: 7c 69 1b 78 mr r9,r3 <== ALWAYS TAKEN 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; ffc0fc38: 81 63 00 20 lwz r11,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 ) ffc0fc3c: 7d 44 03 96 divwu r10,r4,r0 ffc0fc40: 7d 4a 01 d6 mullw r10,r10,r0 ffc0fc44: 39 4a ff f8 addi r10,r10,-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 ffc0fc48: 7f 8a 58 40 cmplw cr7,r10,r11 <== ALWAYS TAKEN ffc0fc4c: 41 9c 00 c0 blt- cr7,ffc0fd0c <_Heap_Free+0xdc> && (uintptr_t) block <= (uintptr_t) heap->last_block; ffc0fc50: 80 03 00 24 lwz r0,36(r3) RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0fc54: 7f 8a 00 40 cmplw cr7,r10,r0 ffc0fc58: 41 9d 00 b4 bgt- cr7,ffc0fd0c <_Heap_Free+0xdc> - 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; ffc0fc5c: 80 ca 00 04 lwz r6,4(r10) <== ALWAYS TAKEN ffc0fc60: 54 c7 00 3c rlwinm r7,r6,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); ffc0fc64: 7d 0a 3a 14 add r8,r10,r7 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 ffc0fc68: 7f 8b 40 40 cmplw cr7,r11,r8 ffc0fc6c: 41 9d 00 a0 bgt- cr7,ffc0fd0c <_Heap_Free+0xdc> <== NEVER TAKEN ffc0fc70: 7f 80 40 40 cmplw cr7,r0,r8 ffc0fc74: 41 9c 00 98 blt- cr7,ffc0fd0c <_Heap_Free+0xdc> <== 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; ffc0fc78: 80 a8 00 04 lwz r5,4(r8) if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { _HAssert( false ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { ffc0fc7c: 70 a3 00 01 andi. r3,r5,1 <== ALWAYS TAKEN ffc0fc80: 41 82 00 8c beq- ffc0fd0c <_Heap_Free+0xdc> <== NEVER TAKEN _HAssert( false ); return false; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block ffc0fc84: 7f 80 40 00 cmpw cr7,r0,r8 - 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; ffc0fc88: 54 a4 00 3c rlwinm r4,r5,0,0,30 ffc0fc8c: 38 a0 00 00 li r5,0 ffc0fc90: 41 9e 00 14 beq- cr7,ffc0fca4 <_Heap_Free+0x74> #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) ffc0fc94: 7c a8 22 14 add r5,r8,r4 ffc0fc98: 80 a5 00 04 lwz r5,4(r5) ffc0fc9c: 54 a5 07 fe clrlwi r5,r5,31 ffc0fca0: 68 a5 00 01 xori r5,r5,1 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 )); if ( !_Heap_Is_prev_used( block ) ) { ffc0fca4: 70 c3 00 01 andi. r3,r6,1 <== ALWAYS TAKEN ffc0fca8: 40 82 00 6c bne- ffc0fd14 <_Heap_Free+0xe4> uintptr_t const prev_size = block->prev_size; ffc0fcac: 80 6a 00 00 lwz r3,0(r10) RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc0fcb0: 7c c3 50 50 subf r6,r3,r10 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 ffc0fcb4: 7f 8b 30 40 cmplw cr7,r11,r6 ffc0fcb8: 41 9d 00 54 bgt- cr7,ffc0fd0c <_Heap_Free+0xdc> <== NEVER TAKEN ffc0fcbc: 7f 80 30 40 cmplw cr7,r0,r6 ffc0fcc0: 41 9c 00 4c blt- cr7,ffc0fd0c <_Heap_Free+0xdc> <== 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) ) { ffc0fcc4: 80 06 00 04 lwz r0,4(r6) <== ALWAYS TAKEN ffc0fcc8: 70 0b 00 01 andi. r11,r0,1 ffc0fccc: 41 82 00 40 beq- ffc0fd0c <_Heap_Free+0xdc> <== NEVER TAKEN _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ ffc0fcd0: 2f 85 00 00 cmpwi cr7,r5,0 ffc0fcd4: 41 9e 00 e8 beq- cr7,ffc0fdbc <_Heap_Free+0x18c> uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; ffc0fcd8: 81 89 00 38 lwz r12,56(r9) _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; ffc0fcdc: 7c 87 22 14 add r4,r7,r4 } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; ffc0fce0: 81 68 00 0c lwz r11,12(r8) ffc0fce4: 7c 64 1a 14 add r3,r4,r3 <== ALWAYS TAKEN return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; ffc0fce8: 81 48 00 08 lwz r10,8(r8) _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0fcec: 60 60 00 01 ori r0,r3,1 } if ( next_is_free ) { /* coalesce both */ uintptr_t const size = block_size + prev_size + next_block_size; _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; ffc0fcf0: 39 0c ff ff addi r8,r12,-1 <== ALWAYS TAKEN ffc0fcf4: 91 09 00 38 stw r8,56(r9) Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; ffc0fcf8: 91 6a 00 0c stw r11,12(r10) <== ALWAYS TAKEN 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; ffc0fcfc: 7c 66 19 2e stwx r3,r6,r3 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; ffc0fd00: 90 06 00 04 stw r0,4(r6) RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; prev->next = next; ffc0fd04: 91 4b 00 08 stw r10,8(r11) <== ALWAYS TAKEN ffc0fd08: 48 00 00 3c b ffc0fd44 <_Heap_Free+0x114> <== ALWAYS TAKEN /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); ffc0fd0c: 38 60 00 00 li r3,0 } ffc0fd10: 4e 80 00 20 blr <== ALWAYS TAKEN uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ ffc0fd14: 2f 85 00 00 cmpwi cr7,r5,0 <== ALWAYS TAKEN ffc0fd18: 41 9e 00 58 beq- cr7,ffc0fd70 <_Heap_Free+0x140> Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; ffc0fd1c: 80 c8 00 0c lwz r6,12(r8) uintptr_t const size = block_size + next_block_size; ffc0fd20: 7c 84 3a 14 add r4,r4,r7 RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace( Heap_Block *old_block, Heap_Block *new_block ) { Heap_Block *next = old_block->next; ffc0fd24: 81 68 00 08 lwz r11,8(r8) _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0fd28: 60 80 00 01 ori r0,r4,1 <== ALWAYS TAKEN Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; ffc0fd2c: 90 ca 00 0c stw r6,12(r10) ) { Heap_Block *next = old_block->next; Heap_Block *prev = old_block->prev; new_block->next = next; ffc0fd30: 91 6a 00 08 stw r11,8(r10) next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; ffc0fd34: 7c 8a 21 2e stwx r4,r10,r4 <== ALWAYS TAKEN 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; ffc0fd38: 90 0a 00 04 stw r0,4(r10) new_block->prev = prev; next->prev = new_block; prev->next = new_block; ffc0fd3c: 91 46 00 08 stw r10,8(r6) Heap_Block *prev = old_block->prev; new_block->next = next; new_block->prev = prev; next->prev = new_block; ffc0fd40: 91 4b 00 0c stw r10,12(r11) <== ALWAYS TAKEN } /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; ffc0fd44: 80 09 00 30 lwz r0,48(r9) ffc0fd48: 38 60 00 01 li r3,1 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0fd4c: 81 69 00 40 lwz r11,64(r9) ++stats->frees; ffc0fd50: 81 49 00 50 lwz r10,80(r9) stats->free_size += block_size; ffc0fd54: 7c e0 3a 14 add r7,r0,r7 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0fd58: 39 6b ff ff addi r11,r11,-1 <== ALWAYS TAKEN ++stats->frees; stats->free_size += block_size; ffc0fd5c: 90 e9 00 30 stw r7,48(r9) } } /* Statistics */ --stats->used_blocks; ++stats->frees; ffc0fd60: 38 0a 00 01 addi r0,r10,1 stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; ffc0fd64: 91 69 00 40 stw r11,64(r9) ++stats->frees; ffc0fd68: 90 09 00 50 stw r0,80(r9) stats->free_size += block_size; return( true ); ffc0fd6c: 4e 80 00 20 blr <== 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; ffc0fd70: 60 e0 00 01 ori r0,r7,1 <== ALWAYS TAKEN next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = block_size; ffc0fd74: 7c ea 39 2e stwx r7,r10,r7 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; ffc0fd78: 90 0a 00 04 stw r0,4(r10) <== ALWAYS TAKEN next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc0fd7c: 80 08 00 04 lwz r0,4(r8) ) { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; ffc0fd80: 91 2a 00 0c stw r9,12(r10) ffc0fd84: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc0fd88: 90 08 00 04 stw r0,4(r8) next_block->prev_size = block_size; /* Statistics */ ++stats->free_blocks; ffc0fd8c: 81 09 00 38 lwz r8,56(r9) <== ALWAYS TAKEN #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; ffc0fd90: 81 69 00 3c lwz r11,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; ffc0fd94: 38 08 00 01 addi r0,r8,1 #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; ffc0fd98: 7f 80 58 40 cmplw cr7,r0,r11 RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next; ffc0fd9c: 81 69 00 08 lwz r11,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; ffc0fda0: 90 09 00 38 stw r0,56(r9) new_block->next = next; ffc0fda4: 91 6a 00 08 stw r11,8(r10) new_block->prev = block_before; block_before->next = new_block; next->prev = new_block; ffc0fda8: 91 4b 00 0c stw r10,12(r11) { Heap_Block *next = block_before->next; new_block->next = next; new_block->prev = block_before; block_before->next = new_block; ffc0fdac: 91 49 00 08 stw r10,8(r9) #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; ffc0fdb0: 40 bd ff 94 ble- cr7,ffc0fd44 <_Heap_Free+0x114> 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; ffc0fdb4: 90 09 00 3c stw r0,60(r9) ffc0fdb8: 4b ff ff 8c b ffc0fd44 <_Heap_Free+0x114> <== ALWAYS TAKEN 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; } else { /* coalesce prev */ uintptr_t const size = block_size + prev_size; ffc0fdbc: 7c 67 1a 14 add r3,r7,r3 prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0fdc0: 60 60 00 01 ori r0,r3,1 next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; ffc0fdc4: 7c 6a 39 2e stwx r3,r10,r7 <== 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; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; ffc0fdc8: 90 06 00 04 stw r0,4(r6) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; ffc0fdcc: 80 08 00 04 lwz r0,4(r8) ffc0fdd0: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc0fdd4: 90 08 00 04 stw r0,4(r8) ffc0fdd8: 4b ff ff 6c b ffc0fd44 <_Heap_Free+0x114> <== ALWAYS TAKEN ffc33dbc <_Heap_Get_free_information>: return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc33dbc: 81 23 00 08 lwz r9,8(r3) ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; ffc33dc0: 38 00 00 00 li r0,0 info->largest = 0; info->total = 0; ffc33dc4: 90 04 00 08 stw r0,8(r4) for(the_block = _Heap_Free_list_first(the_heap); ffc33dc8: 7f 83 48 00 cmpw cr7,r3,r9 ) { Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; ffc33dcc: 90 04 00 00 stw r0,0(r4) info->largest = 0; ffc33dd0: 90 04 00 04 stw r0,4(r4) info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); ffc33dd4: 4d 9e 00 20 beqlr cr7 <== NEVER TAKEN ffc33dd8: 39 00 00 00 li r8,0 ffc33ddc: 39 60 00 01 li r11,1 ffc33de0: 39 40 00 00 li r10,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; ffc33de4: 80 09 00 04 lwz r0,4(r9) the_block != tail; the_block = the_block->next) ffc33de8: 7d 67 5b 78 mr r7,r11 ffc33dec: 39 6b 00 01 addi r11,r11,1 ffc33df0: 54 00 00 3c rlwinm r0,r0,0,0,30 /* 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; ffc33df4: 7f 88 00 40 cmplw cr7,r8,r0 ffc33df8: 7d 4a 02 14 add r10,r10,r0 ffc33dfc: 40 9c 00 08 bge- cr7,ffc33e04 <_Heap_Get_free_information+0x48> ffc33e00: 7c 08 03 78 mr r8,r0 info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); the_block != tail; the_block = the_block->next) ffc33e04: 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); ffc33e08: 7f 83 48 00 cmpw cr7,r3,r9 ffc33e0c: 40 9e ff d8 bne+ cr7,ffc33de4 <_Heap_Get_free_information+0x28> ffc33e10: 91 04 00 04 stw r8,4(r4) ffc33e14: 90 e4 00 00 stw r7,0(r4) ffc33e18: 91 44 00 08 stw r10,8(r4) ffc33e1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc48850 <_Heap_Get_information>: 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; ffc48850: 80 03 00 24 lwz r0,36(r3) _HAssert(the_block->prev_size == the_heap->page_size); _HAssert(_Heap_Is_prev_used(the_block)); the_info->Free.number = 0; ffc48854: 39 60 00 00 li r11,0 void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { Heap_Block *the_block = the_heap->first_block; ffc48858: 81 23 00 20 lwz r9,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 ) { ffc4885c: 39 40 00 08 li r10,8 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; ffc48860: 91 64 00 10 stw r11,16(r4) while ( the_block != end ) { ffc48864: 7f 89 00 00 cmpw cr7,r9,r0 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; ffc48868: 91 64 00 00 stw r11,0(r4) the_info->Free.total = 0; ffc4886c: 91 64 00 08 stw r11,8(r4) the_info->Free.largest = 0; ffc48870: 91 64 00 04 stw r11,4(r4) the_info->Used.number = 0; ffc48874: 91 64 00 0c stw r11,12(r4) the_info->Used.total = 0; ffc48878: 91 64 00 14 stw r11,20(r4) the_info->Used.largest = 0; while ( the_block != end ) { ffc4887c: 41 9e 00 60 beq- cr7,ffc488dc <_Heap_Get_information+0x8c> <== NEVER TAKEN ffc48880: 81 09 00 04 lwz r8,4(r9) 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; ffc48884: 38 a4 00 0c addi r5,r4,12 - 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; ffc48888: 55 0a 00 3c rlwinm r10,r8,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); ffc4888c: 7d 29 52 14 add r9,r9,r10 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; ffc48890: 81 09 00 04 lwz r8,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 ) { ffc48894: 7f 80 48 00 cmpw cr7,r0,r9 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) ) ffc48898: 71 0b 00 01 andi. r11,r8,1 ffc4889c: 7c ab 2b 78 mr r11,r5 ffc488a0: 40 82 00 08 bne- ffc488a8 <_Heap_Get_information+0x58> ffc488a4: 7c 8b 23 78 mr r11,r4 else info = &the_info->Free; info->number++; info->total += the_size; if ( info->largest < the_size ) ffc488a8: 80 eb 00 04 lwz r7,4(r11) if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; ffc488ac: 80 cb 00 00 lwz r6,0(r11) info->total += the_size; if ( info->largest < the_size ) ffc488b0: 7f 07 50 40 cmplw cr6,r7,r10 info = &the_info->Used; else info = &the_info->Free; info->number++; info->total += the_size; ffc488b4: 80 eb 00 08 lwz r7,8(r11) if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; ffc488b8: 38 c6 00 01 addi r6,r6,1 info->total += the_size; ffc488bc: 7c e7 52 14 add r7,r7,r10 if ( _Heap_Is_prev_used(next_block) ) info = &the_info->Used; else info = &the_info->Free; info->number++; ffc488c0: 90 cb 00 00 stw r6,0(r11) info->total += the_size; ffc488c4: 90 eb 00 08 stw r7,8(r11) if ( info->largest < the_size ) ffc488c8: 40 98 00 08 bge- cr6,ffc488d0 <_Heap_Get_information+0x80> info->largest = the_size; ffc488cc: 91 4b 00 04 stw r10,4(r11) the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) { ffc488d0: 40 9e ff b8 bne+ cr7,ffc48888 <_Heap_Get_information+0x38> ffc488d4: 81 44 00 14 lwz r10,20(r4) ffc488d8: 39 4a 00 08 addi r10,r10,8 /* * 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; ffc488dc: 91 44 00 14 stw r10,20(r4) } ffc488e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc099e8 <_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 ) { ffc099e8: 2c 06 00 00 cmpwi r6,0 Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { ffc099ec: 94 21 ff e8 stwu r1,-24(r1) ffc099f0: 7c 69 1b 78 mr r9,r3 <== ALWAYS TAKEN ffc099f4: 93 81 00 08 stw r28,8(r1) <== ALWAYS TAKEN ffc099f8: 93 a1 00 0c stw r29,12(r1) ffc099fc: 93 c1 00 10 stw r30,16(r1) ffc09a00: 93 e1 00 14 stw r31,20(r1) uintptr_t min_block_size = 0; uintptr_t overhead = 0; Heap_Block *first_block = NULL; Heap_Block *last_block = NULL; if ( page_size == 0 ) { ffc09a04: 40 82 01 00 bne- ffc09b04 <_Heap_Initialize+0x11c> ffc09a08: 38 c0 00 08 li r6,8 ffc09a0c: 39 40 00 10 li r10,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; ffc09a10: 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; ffc09a14: 7c 0b 33 96 divwu r0,r11,r6 <== ALWAYS TAKEN ffc09a18: 7c 00 31 d6 mullw r0,r0,r6 if ( remainder != 0 ) { ffc09a1c: 7c 00 58 51 subf. r0,r0,r11 ffc09a20: 41 82 00 0c beq- ffc09a2c <_Heap_Initialize+0x44> return value - remainder + alignment; ffc09a24: 7d 66 5a 14 add r11,r6,r11 ffc09a28: 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; ffc09a2c: 7c 04 2a 14 add r0,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 ( ffc09a30: 7f 84 00 40 cmplw cr7,r4,r0 <== ALWAYS TAKEN ffc09a34: 41 9d 00 e8 bgt- cr7,ffc09b1c <_Heap_Initialize+0x134> } 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); ffc09a38: 7d 04 58 50 subf r8,r4,r11 <== ALWAYS TAKEN 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 ( ffc09a3c: 7f 85 40 40 cmplw cr7,r5,r8 <== ALWAYS TAKEN } 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); ffc09a40: 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 ( ffc09a44: 40 9d 00 d8 ble- cr7,ffc09b1c <_Heap_Initialize+0x134> 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; ffc09a48: 7c a8 28 50 subf r5,r8,r5 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); ffc09a4c: 7c a5 33 96 divwu r5,r5,r6 <== ALWAYS TAKEN ffc09a50: 7c a5 31 d6 mullw r5,r5,r6 <== ALWAYS TAKEN first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; if ( ffc09a54: 7f 8a 28 40 cmplw cr7,r10,r5 ffc09a58: 41 9d 00 c4 bgt- cr7,ffc09b1c <_Heap_Initialize+0x134> stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc09a5c: 3d 80 00 00 lis r12,0 <== ALWAYS TAKEN /* 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 ); ffc09a60: 91 2b 00 08 stw r9,8(r11) RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc09a64: 7c e5 5a 14 add r7,r5,r11 stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc09a68: 83 cc 29 88 lwz r30,10632(r12) 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; ffc09a6c: 39 00 00 00 li r8,0 /* Statistics */ stats->size = first_block_size; stats->free_size = first_block_size; stats->min_free_size = first_block_size; stats->free_blocks = 1; ffc09a70: 3b e0 00 01 li r31,1 return 0; } /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size; ffc09a74: 90 cb 00 00 stw r6,0(r11) stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc09a78: 3b be 00 01 addi r29,r30,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; ffc09a7c: 60 a3 00 01 ori r3,r5,1 * 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; ffc09a80: 7c a5 59 2e stwx r5,r5,r11 last_block->size_and_flag = first_block_begin - (uintptr_t) last_block; ffc09a84: 7f 87 58 50 subf r28,r7,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; ffc09a88: 90 6b 00 04 stw r3,4(r11) 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; ffc09a8c: 38 65 ff f8 addi r3,r5,-8 * 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; ffc09a90: 93 87 00 04 stw r28,4(r7) /* 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 ); ffc09a94: 91 2b 00 0c stw r9,12(r11) /* Statistics */ 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; ffc09a98: 93 e9 00 3c stw r31,60(r9) <== ALWAYS TAKEN stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc09a9c: 93 c9 00 28 stw r30,40(r9) <== 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; ffc09aa0: 93 e9 00 38 stw r31,56(r9) 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; ffc09aa4: 90 c9 00 10 stw r6,16(r9) heap->min_block_size = min_block_size; ffc09aa8: 91 49 00 14 stw r10,20(r9) <== ALWAYS TAKEN heap->area_begin = heap_area_begin; ffc09aac: 90 89 00 18 stw r4,24(r9) heap->area_end = heap_area_end; ffc09ab0: 90 09 00 1c stw r0,28(r9) _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; ffc09ab4: 90 a9 00 34 stw r5,52(r9) stats->used_blocks = 0; stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; ffc09ab8: 91 09 00 54 stw r8,84(r9) 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; ffc09abc: 90 a9 00 2c stw r5,44(r9) stats->free_size = first_block_size; ffc09ac0: 90 a9 00 30 stw r5,48(r9) stats->min_free_size = first_block_size; stats->free_blocks = 1; stats->max_free_blocks = 1; stats->used_blocks = 0; ffc09ac4: 91 09 00 40 stw r8,64(r9) stats->max_search = 0; ffc09ac8: 91 09 00 44 stw r8,68(r9) stats->allocs = 0; ffc09acc: 91 09 00 48 stw r8,72(r9) <== ALWAYS TAKEN stats->searches = 0; ffc09ad0: 91 09 00 4c stw r8,76(r9) stats->frees = 0; ffc09ad4: 91 09 00 50 stw r8,80(r9) _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; } ffc09ad8: 83 81 00 08 lwz r28,8(r1) stats->max_search = 0; stats->allocs = 0; stats->searches = 0; stats->frees = 0; stats->resizes = 0; stats->instance = instance++; ffc09adc: 93 ac 29 88 stw r29,10632(r12) _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; } ffc09ae0: 83 c1 00 10 lwz r30,16(r1) ffc09ae4: 83 a1 00 0c lwz r29,12(r1) ffc09ae8: 83 e1 00 14 lwz r31,20(r1) ffc09aec: 38 21 00 18 addi r1,r1,24 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; ffc09af0: 90 e9 00 24 stw r7,36(r9) _Heap_Free_list_head( heap )->next = first_block; _Heap_Free_list_tail( heap )->prev = first_block; ffc09af4: 91 69 00 0c stw r11,12(r9) /* 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; ffc09af8: 91 69 00 20 stw r11,32(r9) heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; ffc09afc: 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; } ffc09b00: 4e 80 00 20 blr <== ALWAYS TAKEN uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { ffc09b04: 70 c0 00 07 andi. r0,r6,7 ffc09b08: 41 82 00 0c beq- ffc09b14 <_Heap_Initialize+0x12c> return value - remainder + alignment; ffc09b0c: 38 c6 00 08 addi r6,r6,8 ffc09b10: 7c c0 30 50 subf r6,r0,r6 if ( page_size == 0 ) { page_size = CPU_ALIGNMENT; } else { page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT ); if ( page_size < CPU_ALIGNMENT ) { ffc09b14: 2b 86 00 07 cmplwi cr7,r6,7 ffc09b18: 41 bd 00 20 bgt+ cr7,ffc09b38 <_Heap_Initialize+0x150> ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; ffc09b1c: 38 60 00 00 li r3,0 } ffc09b20: 83 81 00 08 lwz r28,8(r1) ffc09b24: 83 a1 00 0c lwz r29,12(r1) ffc09b28: 83 c1 00 10 lwz r30,16(r1) ffc09b2c: 83 e1 00 14 lwz r31,20(r1) ffc09b30: 38 21 00 18 addi r1,r1,24 ffc09b34: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; ffc09b38: 39 40 00 10 li r10,16 <== ALWAYS TAKEN ffc09b3c: 7d 4a 33 96 divwu r10,r10,r6 <== ALWAYS TAKEN ffc09b40: 7d 4a 31 d6 mullw r10,r10,r6 if ( remainder != 0 ) { return value - remainder + alignment; ffc09b44: 20 0a 00 10 subfic r0,r10,16 uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { ffc09b48: 2f 80 00 00 cmpwi cr7,r0,0 return value - remainder + alignment; ffc09b4c: 7d 46 52 14 add r10,r6,r10 uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { ffc09b50: 40 9e fe c0 bne+ cr7,ffc09a10 <_Heap_Initialize+0x28> ffc09b54: 39 40 00 10 li r10,16 <== ALWAYS TAKEN ffc09b58: 4b ff fe b8 b ffc09a10 <_Heap_Initialize+0x28> <== ALWAYS TAKEN ffc1e66c <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { ffc1e66c: 94 21 ff e8 stwu r1,-24(r1) ffc1e670: 7c 08 02 a6 mflr r0 ffc1e674: 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 ) ffc1e678: 80 03 00 10 lwz r0,16(r3) ffc1e67c: 93 c1 00 10 stw r30,16(r1) ffc1e680: 7c 9e 23 78 mr r30,r4 ffc1e684: 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 ffc1e688: 81 23 00 20 lwz r9,32(r3) ffc1e68c: 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 ) ffc1e690: 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; ffc1e694: 38 00 00 00 li r0,0 ffc1e698: 38 84 ff f8 addi r4,r4,-8 ffc1e69c: 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 ffc1e6a0: 7f 89 20 40 cmplw cr7,r9,r4 <== ALWAYS TAKEN void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { ffc1e6a4: 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; ffc1e6a8: 90 07 00 00 stw r0,0(r7) ffc1e6ac: 40 9d 00 20 ble- cr7,ffc1e6cc <_Heap_Resize_block+0x60> 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; ffc1e6b0: 38 60 00 02 li r3,2 new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } ffc1e6b4: 80 01 00 1c lwz r0,28(r1) ffc1e6b8: 83 c1 00 10 lwz r30,16(r1) ffc1e6bc: 7c 08 03 a6 mtlr r0 ffc1e6c0: 83 e1 00 14 lwz r31,20(r1) ffc1e6c4: 38 21 00 18 addi r1,r1,24 ffc1e6c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e6cc: 80 03 00 24 lwz r0,36(r3) ffc1e6d0: 7f 80 20 40 cmplw cr7,r0,r4 ffc1e6d4: 41 bc ff dc blt- cr7,ffc1e6b0 <_Heap_Resize_block+0x44> - 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; ffc1e6d8: 81 24 00 04 lwz r9,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; ffc1e6dc: 20 1e 00 04 subfic r0,r30,4 ffc1e6e0: 55 29 00 3c rlwinm r9,r9,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; ffc1e6e4: 7d 64 4a 14 add r11,r4,r9 ffc1e6e8: 81 4b 00 04 lwz r10,4(r11) uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; ffc1e6ec: 7c 00 5a 14 add r0,r0,r11 ffc1e6f0: 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 ); ffc1e6f4: 7d 0b 52 14 add r8,r11,r10 ffc1e6f8: 81 08 00 04 lwz r8,4(r8) 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; ffc1e6fc: 90 06 00 00 stw r0,0(r6) ffc1e700: 7d 08 40 f8 not r8,r8 if ( next_block_is_free ) { ffc1e704: 71 06 00 01 andi. r6,r8,1 ffc1e708: 40 82 00 b8 bne- ffc1e7c0 <_Heap_Resize_block+0x154> block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { ffc1e70c: 7f 85 00 40 cmplw cr7,r5,r0 ffc1e710: 38 60 00 01 li r3,1 ffc1e714: 41 bd ff a0 bgt- cr7,ffc1e6b4 <_Heap_Resize_block+0x48> return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { ffc1e718: 41 82 00 4c beq- ffc1e764 <_Heap_Resize_block+0xf8> uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc1e71c: 80 04 00 04 lwz r0,4(r4) RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc1e720: 7d 09 22 14 add r8,r9,r4 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; ffc1e724: 54 00 07 fe clrlwi r0,r0,31 ffc1e728: 7d 29 03 78 or r9,r9,r0 ffc1e72c: 91 24 00 04 stw r9,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; ffc1e730: 80 08 00 04 lwz r0,4(r8) } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; Heap_Block *prev = block->prev; ffc1e734: 81 2b 00 0c lwz r9,12(r11) ffc1e738: 60 00 00 01 ori r0,r0,1 return _Heap_Free_list_tail(heap)->prev; } RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) { Heap_Block *next = block->next; ffc1e73c: 81 6b 00 08 lwz r11,8(r11) ffc1e740: 90 08 00 04 stw r0,4(r8) /* Statistics */ --stats->free_blocks; stats->free_size -= next_block_size; ffc1e744: 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; ffc1e748: 81 1f 00 38 lwz r8,56(r31) stats->free_size -= next_block_size; ffc1e74c: 7d 4a 00 50 subf r10,r10,r0 Heap_Block *prev = block->prev; prev->next = next; next->prev = prev; ffc1e750: 91 2b 00 0c stw r9,12(r11) next_block = _Heap_Block_at( block, block_size ); next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; /* Statistics */ --stats->free_blocks; ffc1e754: 38 08 ff ff addi r0,r8,-1 ffc1e758: 90 1f 00 38 stw r0,56(r31) stats->free_size -= next_block_size; ffc1e75c: 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; ffc1e760: 91 69 00 08 stw r11,8(r9) } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); ffc1e764: 7c a6 2b 78 mr r6,r5 ffc1e768: 90 e1 00 08 stw r7,8(r1) ffc1e76c: 7f e3 fb 78 mr r3,r31 ffc1e770: 7f c5 f3 78 mr r5,r30 ffc1e774: 4b fe b4 fd bl ffc09c70 <_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; ffc1e778: 80 e1 00 08 lwz r7,8(r1) ffc1e77c: 81 63 00 04 lwz r11,4(r3) /* Statistics */ --stats->free_blocks; stats->free_size -= next_block_size; } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); ffc1e780: 7c 69 1b 78 mr r9,r3 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; ffc1e784: 38 60 00 00 li r3,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; ffc1e788: 55 6b 00 3c rlwinm r11,r11,0,0,30 ffc1e78c: 38 0b 00 04 addi r0,r11,4 ffc1e790: 7f de 00 50 subf r30,r30,r0 ffc1e794: 7d 29 f2 14 add r9,r9,r30 new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } ffc1e798: 83 c1 00 10 lwz r30,16(r1) 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; ffc1e79c: 91 27 00 00 stw r9,0(r7) /* Statistics */ ++stats->resizes; ffc1e7a0: 81 3f 00 54 lwz r9,84(r31) ffc1e7a4: 38 09 00 01 addi r0,r9,1 ffc1e7a8: 90 1f 00 54 stw r0,84(r31) new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } ffc1e7ac: 80 01 00 1c lwz r0,28(r1) ffc1e7b0: 83 e1 00 14 lwz r31,20(r1) ffc1e7b4: 38 21 00 18 addi r1,r1,24 ffc1e7b8: 7c 08 03 a6 mtlr r0 ffc1e7bc: 4e 80 00 20 blr <== ALWAYS TAKEN _HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; if ( next_block_is_free ) { block_size += next_block_size; ffc1e7c0: 7d 29 52 14 add r9,r9,r10 alloc_size += next_block_size; ffc1e7c4: 7c 00 52 14 add r0,r0,r10 ffc1e7c8: 4b ff ff 44 b ffc1e70c <_Heap_Resize_block+0xa0> <== ALWAYS TAKEN ffc1e7cc <_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 ) ffc1e7cc: 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; ffc1e7d0: 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 ) ffc1e7d4: 7d 64 03 96 divwu r11,r4,r0 ffc1e7d8: 7d 6b 01 d6 mullw r11,r11,r0 ffc1e7dc: 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 ffc1e7e0: 7f 8b 48 40 cmplw cr7,r11,r9 ffc1e7e4: 41 9c 00 4c blt- cr7,ffc1e830 <_Heap_Size_of_alloc_area+0x64> <== NEVER TAKEN && (uintptr_t) block <= (uintptr_t) heap->last_block; ffc1e7e8: 81 43 00 24 lwz r10,36(r3) RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc1e7ec: 7f 8b 50 40 cmplw cr7,r11,r10 ffc1e7f0: 41 9d 00 40 bgt- cr7,ffc1e830 <_Heap_Size_of_alloc_area+0x64> RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc1e7f4: 80 0b 00 04 lwz r0,4(r11) ffc1e7f8: 54 00 00 3c rlwinm r0,r0,0,0,30 ffc1e7fc: 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 ffc1e800: 7f 89 58 40 cmplw cr7,r9,r11 ffc1e804: 41 9d 00 2c bgt- cr7,ffc1e830 <_Heap_Size_of_alloc_area+0x64> <== NEVER TAKEN ffc1e808: 7f 8a 58 40 cmplw cr7,r10,r11 ffc1e80c: 41 9c 00 24 blt- cr7,ffc1e830 <_Heap_Size_of_alloc_area+0x64> <== NEVER TAKEN } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( ffc1e810: 80 0b 00 04 lwz r0,4(r11) ffc1e814: 70 09 00 01 andi. r9,r0,1 ffc1e818: 41 82 00 18 beq- ffc1e830 <_Heap_Size_of_alloc_area+0x64> <== NEVER TAKEN || !_Heap_Is_prev_used( next_block ) ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin; ffc1e81c: 20 84 00 04 subfic r4,r4,4 ffc1e820: 7d 64 5a 14 add r11,r4,r11 ffc1e824: 91 65 00 00 stw r11,0(r5) ffc1e828: 38 60 00 01 li r3,1 return true; ffc1e82c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e830: 38 60 00 00 li r3,0 } ffc1e834: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aa4c <_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; ffc0aa4c: 2f 85 00 00 cmpwi cr7,r5,0 bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { ffc0aa50: 94 21 ff 98 stwu r1,-104(r1) ffc0aa54: 7c 08 02 a6 mflr r0 ffc0aa58: 93 21 00 4c stw r25,76(r1) ffc0aa5c: 90 01 00 6c stw r0,108(r1) ffc0aa60: 93 41 00 50 stw r26,80(r1) ffc0aa64: 93 61 00 54 stw r27,84(r1) ffc0aa68: 93 81 00 58 stw r28,88(r1) ffc0aa6c: 7c 9c 23 78 mr r28,r4 ffc0aa70: 93 c1 00 60 stw r30,96(r1) ffc0aa74: 93 e1 00 64 stw r31,100(r1) ffc0aa78: 7c 7f 1b 78 mr r31,r3 ffc0aa7c: 91 c1 00 20 stw r14,32(r1) ffc0aa80: 91 e1 00 24 stw r15,36(r1) ffc0aa84: 92 01 00 28 stw r16,40(r1) ffc0aa88: 92 21 00 2c stw r17,44(r1) ffc0aa8c: 92 41 00 30 stw r18,48(r1) ffc0aa90: 92 61 00 34 stw r19,52(r1) ffc0aa94: 92 81 00 38 stw r20,56(r1) ffc0aa98: 92 a1 00 3c stw r21,60(r1) ffc0aa9c: 92 c1 00 40 stw r22,64(r1) ffc0aaa0: 92 e1 00 44 stw r23,68(r1) ffc0aaa4: 93 01 00 48 stw r24,72(r1) ffc0aaa8: 93 a1 00 5c stw r29,92(r1) uintptr_t const page_size = heap->page_size; ffc0aaac: 83 63 00 10 lwz r27,16(r3) uintptr_t const min_block_size = heap->min_block_size; ffc0aab0: 83 43 00 14 lwz r26,20(r3) Heap_Block *const last_block = heap->last_block; ffc0aab4: 83 23 00 24 lwz r25,36(r3) Heap_Block *block = heap->first_block; ffc0aab8: 83 c3 00 20 lwz r30,32(r3) Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; ffc0aabc: 40 9e 00 7c bne- cr7,ffc0ab38 <_Heap_Walk+0xec> ffc0aac0: 3d 20 ff c1 lis r9,-63 ffc0aac4: 39 29 aa 48 addi r9,r9,-21944 ffc0aac8: 91 21 00 18 stw r9,24(r1) if ( !_System_state_Is_up( _System_state_Get() ) ) { ffc0aacc: 3d 20 00 00 lis r9,0 ffc0aad0: 80 09 27 d4 lwz r0,10196(r9) ffc0aad4: 2f 80 00 03 cmpwi cr7,r0,3 ffc0aad8: 41 9e 00 7c beq- cr7,ffc0ab54 <_Heap_Walk+0x108> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { ffc0aadc: 38 60 00 01 li r3,1 block = next_block; } return true; } ffc0aae0: 80 01 00 6c lwz r0,108(r1) ffc0aae4: 81 c1 00 20 lwz r14,32(r1) ffc0aae8: 7c 08 03 a6 mtlr r0 ffc0aaec: 81 e1 00 24 lwz r15,36(r1) ffc0aaf0: 82 01 00 28 lwz r16,40(r1) ffc0aaf4: 82 21 00 2c lwz r17,44(r1) ffc0aaf8: 82 41 00 30 lwz r18,48(r1) ffc0aafc: 82 61 00 34 lwz r19,52(r1) ffc0ab00: 82 81 00 38 lwz r20,56(r1) ffc0ab04: 82 a1 00 3c lwz r21,60(r1) ffc0ab08: 82 c1 00 40 lwz r22,64(r1) ffc0ab0c: 82 e1 00 44 lwz r23,68(r1) ffc0ab10: 83 01 00 48 lwz r24,72(r1) ffc0ab14: 83 21 00 4c lwz r25,76(r1) ffc0ab18: 83 41 00 50 lwz r26,80(r1) ffc0ab1c: 83 61 00 54 lwz r27,84(r1) ffc0ab20: 83 81 00 58 lwz r28,88(r1) ffc0ab24: 83 a1 00 5c lwz r29,92(r1) ffc0ab28: 83 c1 00 60 lwz r30,96(r1) ffc0ab2c: 83 e1 00 64 lwz r31,100(r1) ffc0ab30: 38 21 00 68 addi r1,r1,104 ffc0ab34: 4e 80 00 20 blr <== ALWAYS TAKEN 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; ffc0ab38: 3d 20 ff c1 lis r9,-63 ffc0ab3c: 39 29 b0 64 addi r9,r9,-20380 ffc0ab40: 91 21 00 18 stw r9,24(r1) if ( !_System_state_Is_up( _System_state_Get() ) ) { ffc0ab44: 3d 20 00 00 lis r9,0 ffc0ab48: 80 09 27 d4 lwz r0,10196(r9) ffc0ab4c: 2f 80 00 03 cmpwi cr7,r0,3 ffc0ab50: 40 9e ff 8c bne+ cr7,ffc0aadc <_Heap_Walk+0x90> <== NEVER TAKEN 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)( ffc0ab54: 80 1f 00 0c lwz r0,12(r31) ffc0ab58: 3c a0 ff c2 lis r5,-62 ffc0ab5c: 81 1f 00 18 lwz r8,24(r31) ffc0ab60: 38 a5 0d 04 addi r5,r5,3332 ffc0ab64: 81 3f 00 1c lwz r9,28(r31) ffc0ab68: 7f 83 e3 78 mr r3,r28 ffc0ab6c: 81 7f 00 08 lwz r11,8(r31) ffc0ab70: 38 80 00 00 li r4,0 ffc0ab74: 90 01 00 10 stw r0,16(r1) ffc0ab78: 7f 66 db 78 mr r6,r27 ffc0ab7c: 7f 47 d3 78 mr r7,r26 ffc0ab80: 80 01 00 18 lwz r0,24(r1) ffc0ab84: 7f ca f3 78 mr r10,r30 ffc0ab88: 91 61 00 0c stw r11,12(r1) ffc0ab8c: 7c 09 03 a6 mtctr r0 ffc0ab90: 93 21 00 08 stw r25,8(r1) ffc0ab94: 4c c6 31 82 crclr 4*cr1+eq ffc0ab98: 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 ) { ffc0ab9c: 2f 9b 00 00 cmpwi cr7,r27,0 ffc0aba0: 41 9e 00 d0 beq- cr7,ffc0ac70 <_Heap_Walk+0x224> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { ffc0aba4: 73 67 00 07 andi. r7,r27,7 ffc0aba8: 40 82 00 f0 bne- ffc0ac98 <_Heap_Walk+0x24c> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { ffc0abac: 7c 1a db 96 divwu r0,r26,r27 ffc0abb0: 7c 00 d9 d6 mullw r0,r0,r27 ffc0abb4: 7f 9a 00 00 cmpw cr7,r26,r0 ffc0abb8: 40 9e 00 f4 bne- cr7,ffc0acac <_Heap_Walk+0x260> ); return false; } if ( ffc0abbc: 38 1e 00 08 addi r0,r30,8 ffc0abc0: 7d 20 db 96 divwu r9,r0,r27 ffc0abc4: 7d 29 d9 d6 mullw r9,r9,r27 ffc0abc8: 7f 80 48 00 cmpw cr7,r0,r9 ffc0abcc: 40 9e 00 f4 bne- cr7,ffc0acc0 <_Heap_Walk+0x274> block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; ffc0abd0: 83 1e 00 04 lwz r24,4(r30) ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { ffc0abd4: 73 00 00 01 andi. r0,r24,1 ffc0abd8: 41 82 00 fc beq- ffc0acd4 <_Heap_Walk+0x288> ); return false; } if ( first_block->prev_size != page_size ) { ffc0abdc: 80 de 00 00 lwz r6,0(r30) ffc0abe0: 7f 9b 30 00 cmpw cr7,r27,r6 ffc0abe4: 40 9e 00 60 bne- cr7,ffc0ac44 <_Heap_Walk+0x1f8> ); return false; } if ( _Heap_Is_free( last_block ) ) { ffc0abe8: 81 39 00 04 lwz r9,4(r25) ffc0abec: 55 29 00 3c rlwinm r9,r9,0,0,30 ffc0abf0: 7d 39 4a 14 add r9,r25,r9 ffc0abf4: 81 29 00 04 lwz r9,4(r9) ffc0abf8: 71 27 00 01 andi. r7,r9,1 ffc0abfc: 41 82 04 28 beq- ffc0b024 <_Heap_Walk+0x5d8> return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0ac00: 80 df 00 08 lwz r6,8(r31) int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; ffc0ac04: 80 bf 00 10 lwz r5,16(r31) const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { ffc0ac08: 7f 9f 30 00 cmpw cr7,r31,r6 ffc0ac0c: 41 9e 01 78 beq- cr7,ffc0ad84 <_Heap_Walk+0x338> const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block && (uintptr_t) block <= (uintptr_t) heap->last_block; ffc0ac10: 81 5f 00 20 lwz r10,32(r31) RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0ac14: 7f 8a 30 40 cmplw cr7,r10,r6 ffc0ac18: 40 9d 00 cc ble- cr7,ffc0ace4 <_Heap_Walk+0x298> <== ALWAYS TAKEN if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( ffc0ac1c: 3c a0 ff c2 lis r5,-62 ffc0ac20: 7f 83 e3 78 mr r3,r28 ffc0ac24: 38 a5 0e 98 addi r5,r5,3736 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( ffc0ac28: 80 01 00 18 lwz r0,24(r1) ffc0ac2c: 38 80 00 01 li r4,1 ffc0ac30: 7c 09 03 a6 mtctr r0 ffc0ac34: 4c c6 31 82 crclr 4*cr1+eq ffc0ac38: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0ac3c: 38 60 00 00 li r3,0 ffc0ac40: 4b ff fe a0 b ffc0aae0 <_Heap_Walk+0x94> <== ALWAYS TAKEN return false; } if ( first_block->prev_size != page_size ) { (*printer)( ffc0ac44: 3c a0 ff c2 lis r5,-62 ffc0ac48: 7f 83 e3 78 mr r3,r28 ffc0ac4c: 38 a5 0e 54 addi r5,r5,3668 ffc0ac50: 7f 67 db 78 mr r7,r27 return false; } if ( next_block_begin <= block_begin ) { (*printer)( ffc0ac54: 80 01 00 18 lwz r0,24(r1) ffc0ac58: 38 80 00 01 li r4,1 ffc0ac5c: 7c 09 03 a6 mtctr r0 ffc0ac60: 4c c6 31 82 crclr 4*cr1+eq ffc0ac64: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0ac68: 38 60 00 00 li r3,0 "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; ffc0ac6c: 4b ff fe 74 b ffc0aae0 <_Heap_Walk+0x94> <== ALWAYS TAKEN first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { (*printer)( source, true, "page size is zero\n" ); ffc0ac70: 3c a0 ff c2 lis r5,-62 ffc0ac74: 7f 83 e3 78 mr r3,r28 ffc0ac78: 38 a5 0d 98 addi r5,r5,3480 return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( ffc0ac7c: 80 01 00 18 lwz r0,24(r1) ffc0ac80: 38 80 00 01 li r4,1 ffc0ac84: 7c 09 03 a6 mtctr r0 ffc0ac88: 4c c6 31 82 crclr 4*cr1+eq ffc0ac8c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0ac90: 38 60 00 00 li r3,0 ffc0ac94: 4b ff fe 4c b ffc0aae0 <_Heap_Walk+0x94> <== ALWAYS TAKEN return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( ffc0ac98: 3c a0 ff c2 lis r5,-62 ffc0ac9c: 7f 83 e3 78 mr r3,r28 ffc0aca0: 38 a5 0d ac addi r5,r5,3500 ffc0aca4: 7f 66 db 78 mr r6,r27 ffc0aca8: 4b ff ff 80 b ffc0ac28 <_Heap_Walk+0x1dc> <== ALWAYS TAKEN return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( ffc0acac: 3c a0 ff c2 lis r5,-62 ffc0acb0: 7f 83 e3 78 mr r3,r28 ffc0acb4: 38 a5 0d cc addi r5,r5,3532 ffc0acb8: 7f 46 d3 78 mr r6,r26 ffc0acbc: 4b ff ff 6c b ffc0ac28 <_Heap_Walk+0x1dc> <== ALWAYS TAKEN } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( ffc0acc0: 3c a0 ff c2 lis r5,-62 ffc0acc4: 7f 83 e3 78 mr r3,r28 ffc0acc8: 38 a5 0d f0 addi r5,r5,3568 ffc0accc: 7f c6 f3 78 mr r6,r30 ffc0acd0: 4b ff ff 58 b ffc0ac28 <_Heap_Walk+0x1dc> <== ALWAYS TAKEN return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( ffc0acd4: 3c a0 ff c2 lis r5,-62 ffc0acd8: 7f 83 e3 78 mr r3,r28 ffc0acdc: 38 a5 0e 24 addi r5,r5,3620 ffc0ace0: 4b ff ff 9c b ffc0ac7c <_Heap_Walk+0x230> <== ALWAYS TAKEN && (uintptr_t) block <= (uintptr_t) heap->last_block; ffc0ace4: 81 1f 00 24 lwz r8,36(r31) RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap( const Heap_Control *heap, const Heap_Block *block ) { return (uintptr_t) block >= (uintptr_t) heap->first_block ffc0ace8: 7f 88 30 40 cmplw cr7,r8,r6 ffc0acec: 41 bc ff 30 blt- cr7,ffc0ac1c <_Heap_Walk+0x1d0> <== NEVER TAKEN ); return false; } if ( ffc0acf0: 39 26 00 08 addi r9,r6,8 ffc0acf4: 7d 69 2b 96 divwu r11,r9,r5 ffc0acf8: 7d 6b 29 d6 mullw r11,r11,r5 ffc0acfc: 7f 89 58 00 cmpw cr7,r9,r11 ffc0ad00: 40 9e 03 34 bne- cr7,ffc0b034 <_Heap_Walk+0x5e8> <== NEVER TAKEN ); return false; } if ( _Heap_Is_used( free_block ) ) { ffc0ad04: 81 26 00 04 lwz r9,4(r6) ffc0ad08: 55 29 00 3c rlwinm r9,r9,0,0,30 ffc0ad0c: 7d 26 4a 14 add r9,r6,r9 ffc0ad10: 81 29 00 04 lwz r9,4(r9) ffc0ad14: 71 27 00 01 andi. r7,r9,1 ffc0ad18: 40 82 03 3c bne- ffc0b054 <_Heap_Walk+0x608> <== NEVER TAKEN ); return false; } if ( free_block->prev != prev_block ) { ffc0ad1c: 80 e6 00 0c lwz r7,12(r6) ffc0ad20: 7f 9f 38 00 cmpw cr7,r31,r7 ffc0ad24: 41 be 00 48 beq+ cr7,ffc0ad6c <_Heap_Walk+0x320> <== ALWAYS TAKEN ffc0ad28: 48 00 03 1c b ffc0b044 <_Heap_Walk+0x5f8> <== NOT EXECUTED ffc0ad2c: 41 b8 fe f0 blt- cr6,ffc0ac1c <_Heap_Walk+0x1d0> ); return false; } if ( ffc0ad30: 39 66 00 08 addi r11,r6,8 ffc0ad34: 41 a4 fe e8 blt- cr1,ffc0ac1c <_Heap_Walk+0x1d0> <== NEVER TAKEN ffc0ad38: 7c eb 2b 96 divwu r7,r11,r5 ffc0ad3c: 7c e7 29 d6 mullw r7,r7,r5 ffc0ad40: 7f 8b 38 00 cmpw cr7,r11,r7 ffc0ad44: 40 9e 02 f0 bne- cr7,ffc0b034 <_Heap_Walk+0x5e8> ); return false; } if ( _Heap_Is_used( free_block ) ) { ffc0ad48: 81 66 00 04 lwz r11,4(r6) ffc0ad4c: 55 6b 00 3c rlwinm r11,r11,0,0,30 ffc0ad50: 7d 6b 32 14 add r11,r11,r6 ffc0ad54: 81 6b 00 04 lwz r11,4(r11) ffc0ad58: 71 67 00 01 andi. r7,r11,1 ffc0ad5c: 40 82 02 f8 bne- ffc0b054 <_Heap_Walk+0x608> ); return false; } if ( free_block->prev != prev_block ) { ffc0ad60: 80 e6 00 0c lwz r7,12(r6) ffc0ad64: 7f 87 48 00 cmpw cr7,r7,r9 ffc0ad68: 40 9e 02 dc bne- cr7,ffc0b044 <_Heap_Walk+0x5f8> (*printer)( ffc0ad6c: 7c c9 33 78 mr r9,r6 return false; } prev_block = free_block; free_block = free_block->next; ffc0ad70: 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 ) { ffc0ad74: 7f 9f 30 00 cmpw cr7,r31,r6 ffc0ad78: 7f 06 50 40 cmplw cr6,r6,r10 ffc0ad7c: 7c 88 30 40 cmplw cr1,r8,r6 ffc0ad80: 40 9e ff ac bne+ cr7,ffc0ad2c <_Heap_Walk+0x2e0> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { ffc0ad84: 7f 99 f0 00 cmpw cr7,r25,r30 ffc0ad88: 41 be fd 54 beq- cr7,ffc0aadc <_Heap_Walk+0x90> <== NEVER TAKEN 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)( ffc0ad8c: 3e 60 ff c2 lis r19,-62 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0ad90: 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)( ffc0ad94: 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)" : "") ffc0ad98: 3d e0 ff c2 lis r15,-62 ffc0ad9c: 3e a0 ff c2 lis r21,-62 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0ada0: 3e 20 ff c2 lis r17,-62 "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), ffc0ada4: 3d c0 ff c2 lis r14,-62 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0ada8: 3e 00 ff c2 lis r16,-62 bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { (*printer)( ffc0adac: 3a 73 0f 38 addi r19,r19,3896 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0adb0: 3a 94 0f 50 addi r20,r20,3920 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)( ffc0adb4: 3a 52 10 68 addi r18,r18,4200 " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0adb8: 39 ef 10 5c addi r15,r15,4188 ffc0adbc: 3a b5 10 cc addi r21,r21,4300 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)( ffc0adc0: 3a 31 10 50 addi r17,r17,4176 "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)" : ""), ffc0adc4: 39 ce 10 44 addi r14,r14,4164 ffc0adc8: 3a 10 10 38 addi r16,r16,4152 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 ) { ffc0adcc: 2f 80 00 00 cmpwi cr7,r0,0 - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; ffc0add0: 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); ffc0add4: 7f b8 f2 14 add r29,r24,r30 ffc0add8: 41 9e 00 4c beq- cr7,ffc0ae24 <_Heap_Walk+0x3d8> (*printer)( ffc0addc: 80 01 00 18 lwz r0,24(r1) ffc0ade0: 7f 83 e3 78 mr r3,r28 ffc0ade4: 38 80 00 00 li r4,0 ffc0ade8: 7c 09 03 a6 mtctr r0 ffc0adec: 7e 65 9b 78 mr r5,r19 ffc0adf0: 7f c6 f3 78 mr r6,r30 ffc0adf4: 7f 07 c3 78 mr r7,r24 ffc0adf8: 4c c6 31 82 crclr 4*cr1+eq ffc0adfc: 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 ffc0ae00: 80 1f 00 20 lwz r0,32(r31) ffc0ae04: 7f 80 e8 40 cmplw cr7,r0,r29 ffc0ae08: 40 9d 00 50 ble- cr7,ffc0ae58 <_Heap_Walk+0x40c> <== ALWAYS TAKEN block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( ffc0ae0c: 3c a0 ff c2 lis r5,-62 ffc0ae10: 7f 83 e3 78 mr r3,r28 ffc0ae14: 38 a5 0f 78 addi r5,r5,3960 ffc0ae18: 7f c6 f3 78 mr r6,r30 ffc0ae1c: 7f a7 eb 78 mr r7,r29 ffc0ae20: 4b ff fe 34 b ffc0ac54 <_Heap_Walk+0x208> <== ALWAYS TAKEN "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( ffc0ae24: 80 01 00 18 lwz r0,24(r1) ffc0ae28: 7f 83 e3 78 mr r3,r28 ffc0ae2c: 38 80 00 00 li r4,0 ffc0ae30: 81 1e 00 00 lwz r8,0(r30) ffc0ae34: 7c 09 03 a6 mtctr r0 ffc0ae38: 7e 85 a3 78 mr r5,r20 ffc0ae3c: 7f c6 f3 78 mr r6,r30 ffc0ae40: 7f 07 c3 78 mr r7,r24 ffc0ae44: 4c c6 31 82 crclr 4*cr1+eq ffc0ae48: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0ae4c: 80 1f 00 20 lwz r0,32(r31) ffc0ae50: 7f 80 e8 40 cmplw cr7,r0,r29 ffc0ae54: 41 bd ff b8 bgt- cr7,ffc0ae0c <_Heap_Walk+0x3c0> <== NEVER TAKEN ffc0ae58: 80 1f 00 24 lwz r0,36(r31) ffc0ae5c: 7f 80 e8 40 cmplw cr7,r0,r29 ffc0ae60: 41 bc ff ac blt- cr7,ffc0ae0c <_Heap_Walk+0x3c0> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { ffc0ae64: 7c 18 db 96 divwu r0,r24,r27 ffc0ae68: 7c 00 d9 d6 mullw r0,r0,r27 ffc0ae6c: 7f 98 00 00 cmpw cr7,r24,r0 ffc0ae70: 40 9e 01 50 bne- cr7,ffc0afc0 <_Heap_Walk+0x574> ); return false; } if ( block_size < min_block_size ) { ffc0ae74: 7f 9a c0 40 cmplw cr7,r26,r24 ffc0ae78: 41 9d 01 60 bgt- cr7,ffc0afd8 <_Heap_Walk+0x58c> ); return false; } if ( next_block_begin <= block_begin ) { ffc0ae7c: 7f 9e e8 40 cmplw cr7,r30,r29 ffc0ae80: 40 9c 01 8c bge- cr7,ffc0b00c <_Heap_Walk+0x5c0> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { ffc0ae84: 80 1d 00 04 lwz r0,4(r29) ffc0ae88: 70 07 00 01 andi. r7,r0,1 ffc0ae8c: 40 82 00 b0 bne- ffc0af3c <_Heap_Walk+0x4f0> return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0ae90: 80 1f 00 08 lwz r0,8(r31) ffc0ae94: 7e 08 83 78 mr r8,r16 Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0ae98: 80 fe 00 0c lwz r7,12(r30) block->size_and_flag = size | flag; } RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block ) { return block->size_and_flag & HEAP_PREV_BLOCK_USED; ffc0ae9c: 82 de 00 04 lwz r22,4(r30) return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0aea0: 7f 80 38 00 cmpw cr7,r0,r7 } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; ffc0aea4: 80 1f 00 0c lwz r0,12(r31) - HEAP_BLOCK_HEADER_SIZE); } RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block ) { return block->size_and_flag & ~HEAP_PREV_BLOCK_USED; ffc0aea8: 56 d8 00 3c rlwinm r24,r22,0,0,30 RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); ffc0aeac: 7e fe c2 14 add r23,r30,r24 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; ffc0aeb0: 41 9e 00 10 beq- cr7,ffc0aec0 <_Heap_Walk+0x474> "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), ffc0aeb4: 7f 87 f8 00 cmpw cr7,r7,r31 ffc0aeb8: 7e a8 ab 78 mr r8,r21 ffc0aebc: 41 9e 00 fc beq- cr7,ffc0afb8 <_Heap_Walk+0x56c> Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0aec0: 81 3e 00 08 lwz r9,8(r30) ffc0aec4: 7e 2a 8b 78 mr r10,r17 ffc0aec8: 7f 80 48 00 cmpw cr7,r0,r9 ffc0aecc: 41 9e 00 10 beq- cr7,ffc0aedc <_Heap_Walk+0x490> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0aed0: 7f 89 f8 00 cmpw cr7,r9,r31 ffc0aed4: 7e aa ab 78 mr r10,r21 ffc0aed8: 41 9e 00 d8 beq- cr7,ffc0afb0 <_Heap_Walk+0x564> Heap_Block *const last_free_block = _Heap_Free_list_last( heap ); bool const prev_used = _Heap_Is_prev_used( block ); uintptr_t const block_size = _Heap_Block_size( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); (*printer)( ffc0aedc: 80 01 00 18 lwz r0,24(r1) ffc0aee0: 7f 83 e3 78 mr r3,r28 ffc0aee4: 38 80 00 00 li r4,0 ffc0aee8: 7e 45 93 78 mr r5,r18 ffc0aeec: 7c 09 03 a6 mtctr r0 ffc0aef0: 7f c6 f3 78 mr r6,r30 ffc0aef4: 4c c6 31 82 crclr 4*cr1+eq ffc0aef8: 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 ) { ffc0aefc: 81 17 00 00 lwz r8,0(r23) ffc0af00: 7f 98 40 00 cmpw cr7,r24,r8 ffc0af04: 41 9e 00 50 beq- cr7,ffc0af54 <_Heap_Walk+0x508> (*printer)( ffc0af08: 80 01 00 18 lwz r0,24(r1) ffc0af0c: 3c a0 ff c2 lis r5,-62 ffc0af10: 7f 83 e3 78 mr r3,r28 ffc0af14: 38 a5 10 94 addi r5,r5,4244 ffc0af18: 7c 09 03 a6 mtctr r0 ffc0af1c: 7f c6 f3 78 mr r6,r30 ffc0af20: 7f 07 c3 78 mr r7,r24 ffc0af24: 7e e9 bb 78 mr r9,r23 ffc0af28: 38 80 00 01 li r4,1 ffc0af2c: 4c c6 31 82 crclr 4*cr1+eq ffc0af30: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0af34: 38 60 00 00 li r3,0 ffc0af38: 4b ff fb a8 b ffc0aae0 <_Heap_Walk+0x94> <== ALWAYS TAKEN if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { ffc0af3c: 7f 99 e8 00 cmpw cr7,r25,r29 ffc0af40: 41 be fb 9c beq- cr7,ffc0aadc <_Heap_Walk+0x90> const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *const first_free_block = _Heap_Free_list_first( heap ); const Heap_Block *prev_block = free_list_tail; const Heap_Block *free_block = first_free_block; while ( free_block != free_list_tail ) { ffc0af44: 83 1d 00 04 lwz r24,4(r29) ffc0af48: 7f be eb 78 mr r30,r29 ffc0af4c: 57 00 07 fe clrlwi r0,r24,31 ffc0af50: 4b ff fe 7c b ffc0adcc <_Heap_Walk+0x380> <== ALWAYS TAKEN ); return false; } if ( !prev_used ) { ffc0af54: 72 c7 00 01 andi. r7,r22,1 ffc0af58: 41 82 00 44 beq- ffc0af9c <_Heap_Walk+0x550> ffc0af5c: 81 3f 00 08 lwz r9,8(r31) ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { ffc0af60: 7f 89 f8 00 cmpw cr7,r9,r31 ffc0af64: 41 9e 00 24 beq- cr7,ffc0af88 <_Heap_Walk+0x53c> <== NEVER TAKEN if ( free_block == block ) { ffc0af68: 7f 89 f0 00 cmpw cr7,r9,r30 ffc0af6c: 40 be 00 0c bne+ cr7,ffc0af78 <_Heap_Walk+0x52c> ffc0af70: 4b ff ff cc b ffc0af3c <_Heap_Walk+0x4f0> <== ALWAYS TAKEN ffc0af74: 41 ba ff c8 beq- cr6,ffc0af3c <_Heap_Walk+0x4f0> return true; } free_block = free_block->next; ffc0af78: 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 ) { ffc0af7c: 7f 89 f8 00 cmpw cr7,r9,r31 if ( free_block == block ) { ffc0af80: 7f 09 f0 00 cmpw cr6,r9,r30 ) { const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); const Heap_Block *free_block = _Heap_Free_list_first( heap ); while ( free_block != free_list_tail ) { ffc0af84: 40 9e ff f0 bne+ cr7,ffc0af74 <_Heap_Walk+0x528> return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( ffc0af88: 3c a0 ff c2 lis r5,-62 ffc0af8c: 7f 83 e3 78 mr r3,r28 ffc0af90: 38 a5 11 00 addi r5,r5,4352 ffc0af94: 7f c6 f3 78 mr r6,r30 ffc0af98: 4b ff fc 90 b ffc0ac28 <_Heap_Walk+0x1dc> <== ALWAYS TAKEN return false; } if ( !prev_used ) { (*printer)( ffc0af9c: 3c a0 ff c2 lis r5,-62 ffc0afa0: 7f 83 e3 78 mr r3,r28 ffc0afa4: 38 a5 10 d0 addi r5,r5,4304 return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( ffc0afa8: 7f c6 f3 78 mr r6,r30 ffc0afac: 4b ff fc 7c b ffc0ac28 <_Heap_Walk+0x1dc> <== ALWAYS TAKEN " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ffc0afb0: 7d ea 7b 78 mr r10,r15 ffc0afb4: 4b ff ff 28 b ffc0aedc <_Heap_Walk+0x490> <== ALWAYS TAKEN "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)" : ""), ffc0afb8: 7d c8 73 78 mr r8,r14 ffc0afbc: 4b ff ff 04 b ffc0aec0 <_Heap_Walk+0x474> <== ALWAYS TAKEN return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( ffc0afc0: 3c a0 ff c2 lis r5,-62 ffc0afc4: 7f 83 e3 78 mr r3,r28 ffc0afc8: 38 a5 0f a8 addi r5,r5,4008 ffc0afcc: 7f c6 f3 78 mr r6,r30 ffc0afd0: 7f 07 c3 78 mr r7,r24 ffc0afd4: 4b ff fc 80 b ffc0ac54 <_Heap_Walk+0x208> <== ALWAYS TAKEN return false; } if ( block_size < min_block_size ) { (*printer)( ffc0afd8: 80 01 00 18 lwz r0,24(r1) ffc0afdc: 3c a0 ff c2 lis r5,-62 ffc0afe0: 7f 83 e3 78 mr r3,r28 ffc0afe4: 38 a5 0f d8 addi r5,r5,4056 ffc0afe8: 7c 09 03 a6 mtctr r0 ffc0afec: 7f c6 f3 78 mr r6,r30 ffc0aff0: 7f 07 c3 78 mr r7,r24 ffc0aff4: 7f 48 d3 78 mr r8,r26 ffc0aff8: 38 80 00 01 li r4,1 ffc0affc: 4c c6 31 82 crclr 4*cr1+eq <== ALWAYS TAKEN ffc0b000: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0b004: 38 60 00 00 li r3,0 block, block_size, min_block_size ); return false; ffc0b008: 4b ff fa d8 b ffc0aae0 <_Heap_Walk+0x94> <== ALWAYS TAKEN } if ( next_block_begin <= block_begin ) { (*printer)( ffc0b00c: 3c a0 ff c2 lis r5,-62 ffc0b010: 7f 83 e3 78 mr r3,r28 ffc0b014: 38 a5 10 04 addi r5,r5,4100 ffc0b018: 7f c6 f3 78 mr r6,r30 ffc0b01c: 7f a7 eb 78 mr r7,r29 ffc0b020: 4b ff fc 34 b ffc0ac54 <_Heap_Walk+0x208> <== ALWAYS TAKEN return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( ffc0b024: 3c a0 ff c2 lis r5,-62 ffc0b028: 7f 83 e3 78 mr r3,r28 ffc0b02c: 38 a5 0e 80 addi r5,r5,3712 ffc0b030: 4b ff fc 4c b ffc0ac7c <_Heap_Walk+0x230> <== ALWAYS TAKEN } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( ffc0b034: 3c a0 ff c2 lis r5,-62 ffc0b038: 7f 83 e3 78 mr r3,r28 ffc0b03c: 38 a5 0e b8 addi r5,r5,3768 ffc0b040: 4b ff fb e8 b ffc0ac28 <_Heap_Walk+0x1dc> <== ALWAYS TAKEN return false; } if ( free_block->prev != prev_block ) { (*printer)( ffc0b044: 3c a0 ff c2 lis r5,-62 ffc0b048: 7f 83 e3 78 mr r3,r28 ffc0b04c: 38 a5 0f 04 addi r5,r5,3844 ffc0b050: 4b ff fc 04 b ffc0ac54 <_Heap_Walk+0x208> <== ALWAYS TAKEN return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( ffc0b054: 3c a0 ff c2 lis r5,-62 ffc0b058: 7f 83 e3 78 mr r3,r28 ffc0b05c: 38 a5 0e e8 addi r5,r5,3816 ffc0b060: 4b ff fb c8 b ffc0ac28 <_Heap_Walk+0x1dc> <== ALWAYS TAKEN ffc0b064 <_Heap_Walk_print>: { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0b064: 94 21 ff 88 stwu r1,-120(r1) ffc0b068: 7c 08 02 a6 mflr r0 ffc0b06c: 93 e1 00 74 stw r31,116(r1) ffc0b070: 90 01 00 7c stw r0,124(r1) ffc0b074: 7c 60 1b 78 mr r0,r3 ffc0b078: 90 c1 00 1c stw r6,28(r1) ffc0b07c: 90 e1 00 20 stw r7,32(r1) ffc0b080: 91 01 00 24 stw r8,36(r1) ffc0b084: 91 21 00 28 stw r9,40(r1) ffc0b088: 91 41 00 2c stw r10,44(r1) ffc0b08c: 40 86 00 24 bne- cr1,ffc0b0b0 <_Heap_Walk_print+0x4c> <== ALWAYS TAKEN ffc0b090: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0b094: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0b098: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0b09c: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0b0a0: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0b0a4: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0b0a8: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0b0ac: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list ap; if ( error ) { ffc0b0b0: 2f 84 00 00 cmpwi cr7,r4,0 { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { ffc0b0b4: 7c bf 2b 78 mr r31,r5 va_list ap; if ( error ) { ffc0b0b8: 40 9e 00 58 bne- cr7,ffc0b110 <_Heap_Walk_print+0xac> printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); ffc0b0bc: 3c 60 ff c2 lis r3,-62 ffc0b0c0: 7c 04 03 78 mr r4,r0 ffc0b0c4: 38 63 11 38 addi r3,r3,4408 ffc0b0c8: 4c c6 31 82 crclr 4*cr1+eq ffc0b0cc: 4b ff ad 7d bl ffc05e48 <== ALWAYS TAKEN } va_start( ap, fmt ); ffc0b0d0: 38 00 00 03 li r0,3 ffc0b0d4: 98 01 00 08 stb r0,8(r1) ffc0b0d8: 38 00 00 00 li r0,0 vprintk( fmt, ap ); ffc0b0dc: 7f e3 fb 78 mr r3,r31 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b0e0: 98 01 00 09 stb r0,9(r1) ffc0b0e4: 38 01 00 80 addi r0,r1,128 vprintk( fmt, ap ); ffc0b0e8: 38 81 00 08 addi r4,r1,8 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b0ec: 90 01 00 0c stw r0,12(r1) ffc0b0f0: 38 01 00 10 addi r0,r1,16 ffc0b0f4: 90 01 00 10 stw r0,16(r1) vprintk( fmt, ap ); ffc0b0f8: 4b ff d0 85 bl ffc0817c <== ALWAYS TAKEN va_end( ap ); } ffc0b0fc: 80 01 00 7c lwz r0,124(r1) ffc0b100: 83 e1 00 74 lwz r31,116(r1) ffc0b104: 38 21 00 78 addi r1,r1,120 ffc0b108: 7c 08 03 a6 mtlr r0 ffc0b10c: 4e 80 00 20 blr <== ALWAYS TAKEN static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { va_list ap; if ( error ) { printk( "FAIL[%d]: ", source ); ffc0b110: 3c 60 ff c2 lis r3,-62 ffc0b114: 7c 04 03 78 mr r4,r0 ffc0b118: 38 63 11 2c addi r3,r3,4396 ffc0b11c: 4c c6 31 82 crclr 4*cr1+eq ffc0b120: 4b ff ad 29 bl ffc05e48 <== ALWAYS TAKEN } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b124: 38 00 00 03 li r0,3 ffc0b128: 98 01 00 08 stb r0,8(r1) ffc0b12c: 38 00 00 00 li r0,0 vprintk( fmt, ap ); ffc0b130: 7f e3 fb 78 mr r3,r31 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b134: 98 01 00 09 stb r0,9(r1) ffc0b138: 38 01 00 80 addi r0,r1,128 vprintk( fmt, ap ); ffc0b13c: 38 81 00 08 addi r4,r1,8 printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); ffc0b140: 90 01 00 0c stw r0,12(r1) ffc0b144: 38 01 00 10 addi r0,r1,16 ffc0b148: 90 01 00 10 stw r0,16(r1) vprintk( fmt, ap ); ffc0b14c: 4b ff d0 31 bl ffc0817c <== ALWAYS TAKEN va_end( ap ); } ffc0b150: 80 01 00 7c lwz r0,124(r1) ffc0b154: 83 e1 00 74 lwz r31,116(r1) ffc0b158: 38 21 00 78 addi r1,r1,120 ffc0b15c: 7c 08 03 a6 mtlr r0 ffc0b160: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aa48 <_Heap_Walk_print_nothing>: const char *fmt, ... ) { /* Do nothing */ } ffc0aa48: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08ec8 <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { ffc08ec8: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc08ecc: 7c 08 02 a6 mflr r0 ffc08ed0: 93 c1 00 08 stw r30,8(r1) rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc08ed4: 3f c0 00 00 lis r30,0 * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { ffc08ed8: 90 01 00 14 stw r0,20(r1) rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc08edc: 80 1e 27 ec lwz r0,10220(r30) * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { ffc08ee0: 93 e1 00 0c stw r31,12(r1) rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc08ee4: 2f 80 00 00 cmpwi cr7,r0,0 ffc08ee8: 41 9e 00 2c beq- cr7,ffc08f14 <_IO_Initialize_all_drivers+0x4c> <== NEVER TAKEN ffc08eec: 3b de 27 ec addi r30,r30,10220 ffc08ef0: 3b e0 00 00 li r31,0 <== ALWAYS TAKEN (void) rtems_io_initialize( major, 0, NULL ); ffc08ef4: 7f e3 fb 78 mr r3,r31 ffc08ef8: 38 80 00 00 li r4,0 ffc08efc: 38 a0 00 00 li r5,0 ffc08f00: 48 00 67 9d bl ffc0f69c <== ALWAYS TAKEN void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) ffc08f04: 80 1e 00 00 lwz r0,0(r30) ffc08f08: 3b ff 00 01 addi r31,r31,1 ffc08f0c: 7f 80 f8 40 cmplw cr7,r0,r31 ffc08f10: 41 9d ff e4 bgt+ cr7,ffc08ef4 <_IO_Initialize_all_drivers+0x2c> (void) rtems_io_initialize( major, 0, NULL ); } ffc08f14: 80 01 00 14 lwz r0,20(r1) ffc08f18: 83 c1 00 08 lwz r30,8(r1) ffc08f1c: 7c 08 03 a6 mtlr r0 ffc08f20: 83 e1 00 0c lwz r31,12(r1) ffc08f24: 38 21 00 10 addi r1,r1,16 ffc08f28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08f2c <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { ffc08f2c: 94 21 ff e0 stwu r1,-32(r1) ffc08f30: 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; ffc08f34: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * workspace. * */ void _IO_Manager_initialization(void) { ffc08f38: 90 01 00 24 stw r0,36(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; ffc08f3c: 39 29 20 a0 addi r9,r9,8352 * workspace. * */ void _IO_Manager_initialization(void) { ffc08f40: 93 a1 00 14 stw r29,20(r1) <== ALWAYS TAKEN ffc08f44: 93 c1 00 18 stw r30,24(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; ffc08f48: 83 a9 00 2c lwz r29,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; ffc08f4c: 83 c9 00 30 lwz r30,48(r9) * workspace. * */ void _IO_Manager_initialization(void) { ffc08f50: 93 e1 00 1c stw r31,28(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 ) ffc08f54: 7f 9e e8 40 cmplw cr7,r30,r29 * workspace. * */ void _IO_Manager_initialization(void) { ffc08f58: 93 61 00 0c stw r27,12(r1) ffc08f5c: 93 81 00 10 stw r28,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; ffc08f60: 83 e9 00 34 lwz r31,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 ) ffc08f64: 41 9c 00 38 blt- cr7,ffc08f9c <_IO_Manager_initialization+0x70> * 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; ffc08f68: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc08f6c: 93 e9 27 f0 stw r31,10224(r9) _IO_Number_of_drivers = number_of_drivers; ffc08f70: 3d 20 00 00 lis r9,0 ffc08f74: 93 c9 27 ec stw r30,10220(r9) ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } ffc08f78: 80 01 00 24 lwz r0,36(r1) ffc08f7c: 83 61 00 0c lwz r27,12(r1) ffc08f80: 7c 08 03 a6 mtlr r0 ffc08f84: 83 81 00 10 lwz r28,16(r1) <== ALWAYS TAKEN ffc08f88: 83 a1 00 14 lwz r29,20(r1) ffc08f8c: 83 c1 00 18 lwz r30,24(r1) ffc08f90: 83 e1 00 1c lwz r31,28(r1) ffc08f94: 38 21 00 20 addi r1,r1,32 ffc08f98: 4e 80 00 20 blr <== ALWAYS TAKEN * 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 ) ffc08f9c: 1f 7d 00 18 mulli r27,r29,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 *) ffc08fa0: 7f 63 db 78 mr r3,r27 ffc08fa4: 48 00 3a cd bl ffc0ca70 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN ffc08fa8: 3f 80 00 00 lis r28,0 <== ALWAYS TAKEN _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; ffc08fac: 3d 20 00 00 lis r9,0 /* * 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 *) ffc08fb0: 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( ffc08fb4: 7f 65 db 78 mr r5,r27 ffc08fb8: 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; ffc08fbc: 93 a9 27 ec stw r29,10220(r9) memset( ffc08fc0: 48 00 b0 a1 bl ffc14060 <== ALWAYS TAKEN _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) ffc08fc4: 2f 9e 00 00 cmpwi cr7,r30,0 ffc08fc8: 41 be ff b0 beq- cr7,ffc08f78 <_IO_Manager_initialization+0x4c> <== NEVER TAKEN ffc08fcc: 7f c9 03 a6 mtctr r30 ffc08fd0: 81 1c 27 f0 lwz r8,10224(r28) ffc08fd4: 39 40 00 00 li r10,0 _IO_Driver_address_table[index] = driver_table[index]; ffc08fd8: 7f e9 fb 78 mr r9,r31 ffc08fdc: 7c a9 50 6e lwzux r5,r9,r10 ffc08fe0: 7d 68 52 14 add r11,r8,r10 ffc08fe4: 80 e9 00 08 lwz r7,8(r9) ffc08fe8: 80 09 00 0c lwz r0,12(r9) ffc08fec: 80 c9 00 04 lwz r6,4(r9) ffc08ff0: 7c a8 51 2e stwx r5,r8,r10 memset( _IO_Driver_address_table, 0, sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); for ( index = 0 ; index < drivers_in_table ; index++ ) ffc08ff4: 39 4a 00 18 addi r10,r10,24 _IO_Driver_address_table[index] = driver_table[index]; ffc08ff8: 90 cb 00 04 stw r6,4(r11) ffc08ffc: 90 eb 00 08 stw r7,8(r11) ffc09000: 90 0b 00 0c stw r0,12(r11) ffc09004: 80 e9 00 14 lwz r7,20(r9) ffc09008: 80 09 00 10 lwz r0,16(r9) ffc0900c: 90 eb 00 14 stw r7,20(r11) ffc09010: 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++ ) ffc09014: 42 00 ff c4 bdnz+ ffc08fd8 <_IO_Manager_initialization+0xac> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } ffc09018: 80 01 00 24 lwz r0,36(r1) ffc0901c: 83 61 00 0c lwz r27,12(r1) ffc09020: 7c 08 03 a6 mtlr r0 ffc09024: 83 81 00 10 lwz r28,16(r1) ffc09028: 83 a1 00 14 lwz r29,20(r1) ffc0902c: 83 c1 00 18 lwz r30,24(r1) ffc09030: 83 e1 00 1c lwz r31,28(r1) ffc09034: 38 21 00 20 addi r1,r1,32 ffc09038: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09e2c <_ISR_Handler_initialization>: * Output parameters: NONE */ void _ISR_Handler_initialization( void ) { _ISR_Signals_to_thread_executing = false; ffc09e2c: 38 00 00 00 li r0,0 ffc09e30: 3d 20 00 00 lis r9,0 ffc09e34: 98 09 27 cc stb r0,10188(r9) <== ALWAYS TAKEN _ISR_Nest_level = 0; ffc09e38: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc09e3c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc09e40: 90 09 27 98 stw r0,10136(r9) <== ALWAYS TAKEN #if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE ) _CPU_Install_interrupt_stack(); #endif } ffc09e44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09de8 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc09de8: 94 21 ff f0 stwu r1,-16(r1) ffc09dec: 7c 08 02 a6 mflr r0 _Internal_errors_What_happened.the_source = the_source; ffc09df0: 3d 60 00 00 lis r11,0 ffc09df4: 39 2b 2d 30 addi r9,r11,11568 void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc09df8: 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; ffc09dfc: 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; ffc09e00: 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 ) { ffc09e04: 93 e1 00 0c stw r31,12(r1) ffc09e08: 7c bf 2b 78 mr r31,r5 _Internal_errors_What_happened.the_source = the_source; ffc09e0c: 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 ); ffc09e10: 48 00 26 45 bl ffc0c454 <_User_extensions_Fatal> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; ffc09e14: 38 00 00 05 li r0,5 ffc09e18: 3d 20 00 00 lis r9,0 _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); ffc09e1c: 7f e3 fb 78 mr r3,r31 ffc09e20: 90 09 27 d4 stw r0,10196(r9) ffc09e24: 4b ff 9a 85 bl ffc038a8 <_BSP_Fatal_error> <== ALWAYS TAKEN ffc09e28: 48 00 00 00 b ffc09e28 <_Internal_error_Occurred+0x40> <== NOT EXECUTED ffc1ad40 <_Message_queue_Allocate>: * Output parameters: * the_message_queue - set if successful, NULL otherwise */ Message_queue_Control *_Message_queue_Allocate(void) { ffc1ad40: 94 21 ff f8 stwu r1,-8(r1) ffc1ad44: 7c 08 02 a6 mflr r0 return (Message_queue_Control *) ffc1ad48: 3c 60 00 00 lis r3,0 ffc1ad4c: 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) { ffc1ad50: 90 01 00 0c stw r0,12(r1) return (Message_queue_Control *) ffc1ad54: 4b ff ab f1 bl ffc15944 <_Objects_Allocate> <== ALWAYS TAKEN _Objects_Allocate(&_Message_queue_Information); } ffc1ad58: 80 01 00 0c lwz r0,12(r1) ffc1ad5c: 38 21 00 08 addi r1,r1,8 ffc1ad60: 7c 08 03 a6 mtlr r0 ffc1ad64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f158 <_Message_queue_Manager_initialization>: * Output parameters: NONE */ void _Message_queue_Manager_initialization(void) { _Objects_Initialize_information( ffc0f158: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Message_queue_Manager_initialization(void) { ffc0f15c: 94 21 ff f8 stwu r1,-8(r1) ffc0f160: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0f164: 3c 60 00 00 lis r3,0 ffc0f168: 80 c9 20 80 lwz r6,8320(r9) ffc0f16c: 38 63 35 cc addi r3,r3,13772 ffc0f170: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Message_queue_Manager_initialization(void) { ffc0f174: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0f178: 38 a0 00 04 li r5,4 ffc0f17c: 38 e0 00 88 li r7,136 ffc0f180: 39 00 00 00 li r8,0 ffc0f184: 39 20 00 04 li r9,4 ffc0f188: 4b ff b3 5d bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN MP_PACKET_MESSAGE_QUEUE, _Message_queue_MP_Process_packet ); #endif } ffc0f18c: 80 01 00 0c lwz r0,12(r1) ffc0f190: 38 21 00 08 addi r1,r1,8 ffc0f194: 7c 08 03 a6 mtlr r0 ffc0f198: 4e 80 00 20 blr <== ALWAYS TAKEN ffc133dc <_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]; } ffc133dc: 3d 20 00 00 lis r9,0 ffc133e0: 39 29 21 d8 addi r9,r9,8664 }; rtems_status_code _Message_queue_Translate_core_message_queue_return_code ( uint32_t status ) { ffc133e4: 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]; } ffc133e8: 7c 69 18 2e lwzx r3,r9,r3 ffc133ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0fddc <_Objects_API_maximum_class>: case OBJECTS_NO_API: default: break; } return 0; } ffc0fddc: 38 03 ff ff addi r0,r3,-1 ffc0fde0: 2b 80 00 03 cmplwi cr7,r0,3 ffc0fde4: 38 60 00 00 li r3,0 ffc0fde8: 4d 9d 00 20 bgtlr cr7 ffc0fdec: 3d 20 ff c2 lis r9,-62 ffc0fdf0: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0fdf4: 39 29 fc 5c addi r9,r9,-932 ffc0fdf8: 7c 69 00 2e lwzx r3,r9,r0 ffc0fdfc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09e48 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc09e48: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc09e4c: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc09e50: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN * 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 ) ffc09e54: 80 03 00 18 lwz r0,24(r3) */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc09e58: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc09e5c: 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 ) ffc09e60: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { ffc09e64: 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 ) ffc09e68: 38 60 00 00 li r3,0 ffc09e6c: 40 9e 00 1c bne- cr7,ffc09e88 <_Objects_Allocate+0x40> <== ALWAYS TAKEN information->inactive--; } } return the_object; } ffc09e70: 80 01 00 14 lwz r0,20(r1) ffc09e74: 83 c1 00 08 lwz r30,8(r1) <== ALWAYS TAKEN ffc09e78: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc09e7c: 83 e1 00 0c lwz r31,12(r1) ffc09e80: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc09e84: 4e 80 00 20 blr <== ALWAYS 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 ); ffc09e88: 3b df 00 20 addi r30,r31,32 ffc09e8c: 7f c3 f3 78 mr r3,r30 ffc09e90: 4b ff f5 05 bl ffc09394 <_Chain_Get> <== ALWAYS TAKEN if ( information->auto_extend ) { ffc09e94: 88 1f 00 12 lbz r0,18(r31) <== ALWAYS TAKEN ffc09e98: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc09e9c: 41 be ff d4 beq- cr7,ffc09e70 <_Objects_Allocate+0x28> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { ffc09ea0: 2f 83 00 00 cmpwi cr7,r3,0 ffc09ea4: 41 9e 00 50 beq- cr7,ffc09ef4 <_Objects_Allocate+0xac> } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - ffc09ea8: a1 63 00 0a lhz r11,10(r3) ffc09eac: a0 1f 00 0a lhz r0,10(r31) _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; ffc09eb0: a1 3f 00 14 lhz r9,20(r31) } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - ffc09eb4: 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--; ffc09eb8: 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 ]--; ffc09ebc: 7c 00 4b 96 divwu r0,r0,r9 ffc09ec0: 81 3f 00 30 lwz r9,48(r31) information->inactive--; } } return the_object; } ffc09ec4: 83 c1 00 08 lwz r30,8(r1) block = (uint32_t) _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; ffc09ec8: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc09ecc: 7d 49 00 2e lwzx r10,r9,r0 information->inactive--; ffc09ed0: 39 6b ff ff addi r11,r11,-1 ffc09ed4: 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 ]--; ffc09ed8: 39 4a ff ff addi r10,r10,-1 ffc09edc: 7d 49 01 2e stwx r10,r9,r0 information->inactive--; } } return the_object; } ffc09ee0: 80 01 00 14 lwz r0,20(r1) ffc09ee4: 83 e1 00 0c lwz r31,12(r1) ffc09ee8: 38 21 00 10 addi r1,r1,16 ffc09eec: 7c 08 03 a6 mtlr r0 ffc09ef0: 4e 80 00 20 blr <== ALWAYS TAKEN * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information ); ffc09ef4: 7f e3 fb 78 mr r3,r31 ffc09ef8: 48 00 00 4d bl ffc09f44 <_Objects_Extend_information> <== ALWAYS TAKEN the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); ffc09efc: 7f c3 f3 78 mr r3,r30 ffc09f00: 4b ff f4 95 bl ffc09394 <_Chain_Get> <== ALWAYS TAKEN } if ( the_object ) { ffc09f04: 2c 03 00 00 cmpwi r3,0 ffc09f08: 41 82 ff 68 beq+ ffc09e70 <_Objects_Allocate+0x28> ffc09f0c: 4b ff ff 9c b ffc09ea8 <_Objects_Allocate+0x60> <== ALWAYS TAKEN ffc09f10 <_Objects_Close>: void _Objects_Close( Objects_Information *information, Objects_Control *the_object ) { ffc09f10: 94 21 ff f8 stwu r1,-8(r1) ffc09f14: 7c 08 02 a6 mflr r0 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc09f18: 39 60 00 00 li r11,0 ffc09f1c: 90 01 00 0c stw r0,12(r1) ffc09f20: a0 04 00 0a lhz r0,10(r4) ffc09f24: 81 23 00 1c lwz r9,28(r3) ffc09f28: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc09f2c: 7d 69 01 2e stwx r11,r9,r0 _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); ffc09f30: 48 00 06 a9 bl ffc0a5d8 <_Objects_Namespace_remove> <== ALWAYS TAKEN } ffc09f34: 80 01 00 0c lwz r0,12(r1) ffc09f38: 38 21 00 08 addi r1,r1,8 ffc09f3c: 7c 08 03 a6 mtlr r0 ffc09f40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09f44 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { ffc09f44: 94 21 ff b8 stwu r1,-72(r1) ffc09f48: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc09f4c: 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 ) ffc09f50: 81 63 00 34 lwz r11,52(r3) <== ALWAYS TAKEN */ void _Objects_Extend_information( Objects_Information *information ) { ffc09f54: 93 a1 00 3c stw r29,60(r1) minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) ffc09f58: 2f 8b 00 00 cmpwi cr7,r11,0 */ void _Objects_Extend_information( Objects_Information *information ) { ffc09f5c: 93 e1 00 44 stw r31,68(r1) ffc09f60: 7c 7f 1b 78 mr r31,r3 ffc09f64: 92 a1 00 1c stw r21,28(r1) <== ALWAYS TAKEN ffc09f68: 92 c1 00 20 stw r22,32(r1) ffc09f6c: 92 e1 00 24 stw r23,36(r1) ffc09f70: 93 01 00 28 stw r24,40(r1) ffc09f74: 93 21 00 2c stw r25,44(r1) <== ALWAYS TAKEN ffc09f78: 93 41 00 30 stw r26,48(r1) <== ALWAYS TAKEN ffc09f7c: 93 61 00 34 stw r27,52(r1) ffc09f80: 93 81 00 38 stw r28,56(r1) ffc09f84: 93 c1 00 40 stw r30,64(r1) /* * Search for a free block of indexes. The block variable ends up set * to block_count + 1 if the table needs to be extended. */ minimum_index = _Objects_Get_index( information->minimum_id ); ffc09f88: a3 a3 00 0a lhz r29,10(r3) index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) ffc09f8c: 41 9e 02 9c beq- cr7,ffc0a228 <_Objects_Extend_information+0x2e4> block_count = 0; else { block_count = information->maximum / information->allocation_size; ffc09f90: a3 23 00 10 lhz r25,16(r3) ffc09f94: a0 03 00 14 lhz r0,20(r3) ffc09f98: 7e b9 03 96 divwu r21,r25,r0 for ( ; block < block_count; block++ ) { ffc09f9c: 2f 95 00 00 cmpwi cr7,r21,0 ffc09fa0: 41 9e 02 a0 beq- cr7,ffc0a240 <_Objects_Extend_information+0x2fc> <== NEVER TAKEN if ( information->object_blocks[ block ] == NULL ) ffc09fa4: 81 2b 00 00 lwz r9,0(r11) ffc09fa8: 2f 89 00 00 cmpwi cr7,r9,0 ffc09fac: 41 9e 02 94 beq- cr7,ffc0a240 <_Objects_Extend_information+0x2fc> <== NEVER TAKEN ffc09fb0: 7f be eb 78 mr r30,r29 break; else index_base += information->allocation_size; ffc09fb4: 7e a9 03 a6 mtctr r21 block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) ffc09fb8: 3b 60 00 00 li r27,0 ffc09fbc: 48 00 00 10 b ffc09fcc <_Objects_Extend_information+0x88> <== ALWAYS TAKEN ffc09fc0: 7d 2b 48 2e lwzx r9,r11,r9 ffc09fc4: 2f 89 00 00 cmpwi cr7,r9,0 ffc09fc8: 41 9e 00 18 beq- cr7,ffc09fe0 <_Objects_Extend_information+0x9c> if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { ffc09fcc: 3b 7b 00 01 addi r27,r27,1 if ( information->object_blocks[ block ] == NULL ) ffc09fd0: 57 69 10 3a rlwinm r9,r27,2,0,29 break; else index_base += information->allocation_size; ffc09fd4: 7f de 02 14 add r30,r30,r0 ffc09fd8: 7c 0a 03 78 mr r10,r0 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { ffc09fdc: 42 00 ff e4 bdnz+ ffc09fc0 <_Objects_Extend_information+0x7c> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; ffc09fe0: 7f 39 52 14 add r25,r25,r10 /* * We need to limit the number of objects to the maximum number * representable in the index portion of the object Id. In the * case of 16-bit Ids, this is only 256 object instances. */ if ( maximum > OBJECTS_ID_FINAL_INDEX ) { ffc09fe4: 2b 99 ff ff cmplwi cr7,r25,65535 ffc09fe8: 41 9d 01 b8 bgt- cr7,ffc0a1a0 <_Objects_Extend_information+0x25c> <== 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 ) { ffc09fec: 88 1f 00 12 lbz r0,18(r31) <== ALWAYS 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; ffc09ff0: 80 7f 00 18 lwz r3,24(r31) if ( information->auto_extend ) { ffc09ff4: 2f 80 00 00 cmpwi cr7,r0,0 /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; ffc09ff8: 7c 6a 19 d6 mullw r3,r10,r3 if ( information->auto_extend ) { ffc09ffc: 40 9e 01 e0 bne- cr7,ffc0a1dc <_Objects_Extend_information+0x298> new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); ffc0a000: 48 00 2a 71 bl ffc0ca70 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN ffc0a004: 7c 7c 1b 78 mr r28,r3 <== ALWAYS TAKEN } /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { ffc0a008: a0 1f 00 10 lhz r0,16(r31) ffc0a00c: 7f 9e 00 40 cmplw cr7,r30,r0 ffc0a010: 41 9c 01 08 blt- cr7,ffc0a118 <_Objects_Extend_information+0x1d4> */ /* * Up the block count and maximum */ block_count++; ffc0a014: 3b 55 00 01 addi r26,r21,1 * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); ffc0a018: 1c 7a 00 03 mulli r3,r26,3 ffc0a01c: 7c 79 1a 14 add r3,r25,r3 <== ALWAYS TAKEN ffc0a020: 7c 63 ea 14 add r3,r3,r29 <== ALWAYS TAKEN ffc0a024: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc0a028: 48 00 2a 91 bl ffc0cab8 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !object_blocks ) { ffc0a02c: 7c 76 1b 79 mr. r22,r3 ffc0a030: 41 82 02 20 beq- ffc0a250 <_Objects_Extend_information+0x30c> * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { ffc0a034: a0 1f 00 10 lhz r0,16(r31) } /* * Break the block into the various sections. */ inactive_per_block = (uint32_t *) _Addresses_Add_offset( ffc0a038: 57 5a 10 3a rlwinm r26,r26,2,0,29 RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); ffc0a03c: 7f 16 d2 14 add r24,r22,r26 * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { ffc0a040: 7f 9d 00 40 cmplw cr7,r29,r0 ffc0a044: 7f 58 d2 14 add r26,r24,r26 ffc0a048: 41 9c 01 a4 blt- cr7,ffc0a1ec <_Objects_Extend_information+0x2a8> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { ffc0a04c: 2f 9d 00 00 cmpwi cr7,r29,0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, ffc0a050: 39 20 00 00 li r9,0 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { ffc0a054: 56 b7 10 3a rlwinm r23,r21,2,0,29 ffc0a058: 41 9e 00 20 beq- cr7,ffc0a078 <_Objects_Extend_information+0x134> <== NEVER TAKEN local_table[ index ] = NULL; ffc0a05c: 7f a9 03 a6 mtctr r29 ffc0a060: 38 00 00 00 li r0,0 ffc0a064: 55 2b 10 3a rlwinm r11,r9,2,0,29 ffc0a068: 7c 0b d1 2e stwx r0,r11,r26 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { ffc0a06c: 39 29 00 01 addi r9,r9,1 ffc0a070: 42 00 ff f4 bdnz+ ffc0a064 <_Objects_Extend_information+0x120> <== NEVER TAKEN ffc0a074: 56 b7 10 3a rlwinm r23,r21,2,0,29 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc0a078: a1 7f 00 14 lhz r11,20(r31) } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc0a07c: 38 00 00 00 li r0,0 inactive_per_block[block_count] = 0; ffc0a080: 7c 18 b9 2e stwx r0,r24,r23 for ( index=index_base ; index < ( information->allocation_size + index_base ); ffc0a084: 7d 7e 5a 14 add r11,r30,r11 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; ffc0a088: 7f 9e 58 40 cmplw cr7,r30,r11 } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; ffc0a08c: 7c 16 b9 2e stwx r0,r22,r23 <== ALWAYS TAKEN inactive_per_block[block_count] = 0; for ( index=index_base ; ffc0a090: 40 9c 00 30 bge- cr7,ffc0a0c0 <_Objects_Extend_information+0x17c> <== NEVER TAKEN ffc0a094: 38 1e 00 01 addi r0,r30,1 ffc0a098: 7f 80 58 40 cmplw cr7,r0,r11 ffc0a09c: 57 c9 10 3a rlwinm r9,r30,2,0,29 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; ffc0a0a0: 7d 7e 58 50 subf r11,r30,r11 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; ffc0a0a4: 7d 3a 4a 14 add r9,r26,r9 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; ffc0a0a8: 7d 69 03 a6 mtctr r11 ffc0a0ac: 38 00 00 00 li r0,0 ffc0a0b0: 41 9d 01 ac bgt- cr7,ffc0a25c <_Objects_Extend_information+0x318> <== NEVER TAKEN ffc0a0b4: 90 09 00 00 stw r0,0(r9) object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); index++ ) { ffc0a0b8: 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 ; ffc0a0bc: 42 00 ff f8 bdnz+ ffc0a0b4 <_Objects_Extend_information+0x170> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a0c0: 7c 00 00 a6 mfmsr r0 ffc0a0c4: 7d 30 42 a6 mfsprg r9,0 ffc0a0c8: 7c 09 48 78 andc r9,r0,r9 <== ALWAYS TAKEN ffc0a0cc: 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( ffc0a0d0: 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; ffc0a0d4: 57 39 04 3e clrlwi r25,r25,16 information->maximum_id = _Objects_Build_id( ffc0a0d8: a1 3f 00 04 lhz r9,4(r31) ffc0a0dc: 55 6b c0 0e rlwinm r11,r11,24,0,7 local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; ffc0a0e0: 80 7f 00 34 lwz r3,52(r31) <== ALWAYS TAKEN 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( ffc0a0e4: 65 6b 00 01 oris r11,r11,1 _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; ffc0a0e8: 93 1f 00 30 stw r24,48(r31) <== ALWAYS TAKEN information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc0a0ec: 55 29 d8 08 rlwinm r9,r9,27,0,4 ffc0a0f0: 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; ffc0a0f4: 93 5f 00 1c stw r26,28(r31) information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( ffc0a0f8: 7d 29 cb 78 or r9,r9,r25 ffc0a0fc: 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; ffc0a100: b3 3f 00 10 sth r25,16(r31) <== ALWAYS TAKEN _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; ffc0a104: 92 df 00 34 stw r22,52(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a108: 7c 00 01 24 mtmsr r0 information->maximum ); _ISR_Enable( level ); if ( old_tables ) ffc0a10c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a110: 41 9e 00 08 beq- cr7,ffc0a118 <_Objects_Extend_information+0x1d4> _Workspace_Free( old_tables ); ffc0a114: 48 00 29 d9 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; ffc0a118: 81 3f 00 34 lwz r9,52(r31) ffc0a11c: 57 7b 10 3a rlwinm r27,r27,2,0,29 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc0a120: 3b a1 00 08 addi r29,r1,8 ffc0a124: a0 bf 00 14 lhz r5,20(r31) } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; ffc0a128: 7f 89 d9 2e stwx r28,r9,r27 <== ALWAYS TAKEN /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc0a12c: 7f 84 e3 78 mr r4,r28 <== ALWAYS TAKEN ffc0a130: 7f a3 eb 78 mr r3,r29 <== ALWAYS TAKEN ffc0a134: 80 df 00 18 lwz r6,24(r31) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc0a138: 3b 9f 00 20 addi r28,r31,32 <== ALWAYS TAKEN information->object_blocks[ block ] = new_object_block; /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( ffc0a13c: 48 00 55 e5 bl ffc0f720 <_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 ) { ffc0a140: 48 00 00 2c b ffc0a16c <_Objects_Extend_information+0x228> <== ALWAYS TAKEN the_object->id = _Objects_Build_id( ffc0a144: 81 7f 00 00 lwz r11,0(r31) ffc0a148: a0 1f 00 04 lhz r0,4(r31) ffc0a14c: 55 6b c0 0e rlwinm r11,r11,24,0,7 ffc0a150: 65 6b 00 01 oris r11,r11,1 ffc0a154: 54 00 d8 08 rlwinm r0,r0,27,0,4 ffc0a158: 7d 60 03 78 or r0,r11,r0 ffc0a15c: 7c 00 f3 78 or r0,r0,r30 ffc0a160: 90 09 00 08 stw r0,8(r9) index ); _Chain_Append( &information->Inactive, &the_object->Node ); index++; ffc0a164: 3b de 00 01 addi r30,r30,1 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc0a168: 4b ff f1 fd bl ffc09364 <_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 ) { ffc0a16c: 7f a3 eb 78 mr r3,r29 ffc0a170: 4b ff f2 25 bl ffc09394 <_Chain_Get> <== ALWAYS TAKEN ffc0a174: 7c 69 1b 79 mr. r9,r3 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); ffc0a178: 7f 83 e3 78 mr r3,r28 ffc0a17c: 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 ) { ffc0a180: 40 82 ff c4 bne+ ffc0a144 <_Objects_Extend_information+0x200> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0a184: a0 1f 00 14 lhz r0,20(r31) information->inactive = ffc0a188: a1 3f 00 2c lhz r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0a18c: 81 7f 00 30 lwz r11,48(r31) information->inactive = ffc0a190: 7d 20 4a 14 add r9,r0,r9 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0a194: 54 00 04 3e clrlwi r0,r0,16 information->inactive = ffc0a198: b1 3f 00 2c sth r9,44(r31) _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; ffc0a19c: 7c 0b d9 2e stwx r0,r11,r27 information->inactive = (Objects_Maximum)(information->inactive + information->allocation_size); } ffc0a1a0: 80 01 00 4c lwz r0,76(r1) ffc0a1a4: 82 a1 00 1c lwz r21,28(r1) ffc0a1a8: 7c 08 03 a6 mtlr r0 ffc0a1ac: 82 c1 00 20 lwz r22,32(r1) ffc0a1b0: 82 e1 00 24 lwz r23,36(r1) ffc0a1b4: 83 01 00 28 lwz r24,40(r1) ffc0a1b8: 83 21 00 2c lwz r25,44(r1) ffc0a1bc: 83 41 00 30 lwz r26,48(r1) ffc0a1c0: 83 61 00 34 lwz r27,52(r1) ffc0a1c4: 83 81 00 38 lwz r28,56(r1) ffc0a1c8: 83 a1 00 3c lwz r29,60(r1) ffc0a1cc: 83 c1 00 40 lwz r30,64(r1) ffc0a1d0: 83 e1 00 44 lwz r31,68(r1) ffc0a1d4: 38 21 00 48 addi r1,r1,72 ffc0a1d8: 4e 80 00 20 blr <== ALWAYS 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 ) { new_object_block = _Workspace_Allocate( block_size ); ffc0a1dc: 48 00 28 dd bl ffc0cab8 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !new_object_block ) ffc0a1e0: 7c 7c 1b 79 mr. r28,r3 ffc0a1e4: 40 82 fe 24 bne+ ffc0a008 <_Objects_Extend_information+0xc4> ffc0a1e8: 4b ff ff b8 b ffc0a1a0 <_Objects_Extend_information+0x25c> <== ALWAYS TAKEN * separate parts as size of each block has changed. */ memcpy( object_blocks, information->object_blocks, block_count * sizeof(void*) ); ffc0a1ec: 56 b7 10 3a rlwinm r23,r21,2,0,29 /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, ffc0a1f0: 80 9f 00 34 lwz r4,52(r31) ffc0a1f4: 7e e5 bb 78 mr r5,r23 ffc0a1f8: 48 00 9d 69 bl ffc13f60 <== ALWAYS TAKEN information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, ffc0a1fc: 80 9f 00 30 lwz r4,48(r31) ffc0a200: 7e e5 bb 78 mr r5,r23 ffc0a204: 7f 03 c3 78 mr r3,r24 ffc0a208: 48 00 9d 59 bl ffc13f60 <== ALWAYS TAKEN information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, ffc0a20c: a0 bf 00 10 lhz r5,16(r31) ffc0a210: 80 9f 00 1c lwz r4,28(r31) ffc0a214: 7f 43 d3 78 mr r3,r26 ffc0a218: 7c bd 2a 14 add r5,r29,r5 ffc0a21c: 54 a5 10 3a rlwinm r5,r5,2,0,29 ffc0a220: 48 00 9d 41 bl ffc13f60 <== ALWAYS TAKEN ffc0a224: 4b ff fe 54 b ffc0a078 <_Objects_Extend_information+0x134> <== ALWAYS TAKEN minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) ffc0a228: a3 23 00 10 lhz r25,16(r3) ffc0a22c: 7f be eb 78 mr r30,r29 <== ALWAYS TAKEN ffc0a230: a1 43 00 14 lhz r10,20(r3) <== ALWAYS TAKEN ffc0a234: 3b 60 00 00 li r27,0 ffc0a238: 3a a0 00 00 li r21,0 ffc0a23c: 4b ff fd a4 b ffc09fe0 <_Objects_Extend_information+0x9c> <== ALWAYS TAKEN block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { if ( information->object_blocks[ block ] == NULL ) ffc0a240: 7c 0a 03 78 mr r10,r0 <== NOT EXECUTED ffc0a244: 7f be eb 78 mr r30,r29 <== NOT EXECUTED ffc0a248: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc0a24c: 4b ff fd 94 b ffc09fe0 <_Objects_Extend_information+0x9c> <== NOT EXECUTED (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); if ( !object_blocks ) { _Workspace_Free( new_object_block ); ffc0a250: 7f 83 e3 78 mr r3,r28 ffc0a254: 48 00 28 99 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN return; ffc0a258: 4b ff ff 48 b ffc0a1a0 <_Objects_Extend_information+0x25c> <== ALWAYS TAKEN ffc0a25c: 39 60 00 01 li r11,1 <== NOT EXECUTED ffc0a260: 7d 69 03 a6 mtctr r11 <== NOT EXECUTED ffc0a264: 4b ff fe 50 b ffc0a0b4 <_Objects_Extend_information+0x170> <== NOT EXECUTED ffc0a268 <_Objects_Free>: void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { ffc0a268: 94 21 ff e8 stwu r1,-24(r1) <== ALWAYS TAKEN ffc0a26c: 7c 08 02 a6 mflr r0 ffc0a270: 90 01 00 1c stw r0,28(r1) <== ALWAYS TAKEN ffc0a274: 93 e1 00 14 stw r31,20(r1) ffc0a278: 7c 7f 1b 78 mr r31,r3 uint32_t allocation_size = information->allocation_size; _Chain_Append( &information->Inactive, &the_object->Node ); ffc0a27c: 38 63 00 20 addi r3,r3,32 <== ALWAYS TAKEN void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { ffc0a280: 93 a1 00 0c stw r29,12(r1) ffc0a284: 7c 9d 23 78 mr r29,r4 ffc0a288: 93 c1 00 10 stw r30,16(r1) uint32_t allocation_size = information->allocation_size; ffc0a28c: a3 df 00 14 lhz r30,20(r31) _Chain_Append( &information->Inactive, &the_object->Node ); ffc0a290: 4b ff f0 d5 bl ffc09364 <_Chain_Append> <== ALWAYS TAKEN if ( information->auto_extend ) { ffc0a294: 88 1f 00 12 lbz r0,18(r31) ffc0a298: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a29c: 41 9e 00 4c beq- cr7,ffc0a2e8 <_Objects_Free+0x80> uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - ffc0a2a0: 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 ) ) ) { ffc0a2a4: 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 ) - ffc0a2a8: 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 ) ) ) { ffc0a2ac: 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 ]++; ffc0a2b0: 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 ) - ffc0a2b4: 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++; ffc0a2b8: 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 ]++; ffc0a2bc: 7c 00 4b 96 divwu r0,r0,r9 ffc0a2c0: 81 3f 00 30 lwz r9,48(r31) information->inactive++; ffc0a2c4: 39 6b 00 01 addi r11,r11,1 ffc0a2c8: 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 ) ) ) { ffc0a2cc: 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++; ffc0a2d0: 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 ]++; ffc0a2d4: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0a2d8: 7d 49 00 2e lwzx r10,r9,r0 ffc0a2dc: 39 6a 00 01 addi r11,r10,1 ffc0a2e0: 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 ) ) ) { ffc0a2e4: 41 9d 00 20 bgt- cr7,ffc0a304 <_Objects_Free+0x9c> _Objects_Shrink_information( information ); } } } ffc0a2e8: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc0a2ec: 83 a1 00 0c lwz r29,12(r1) ffc0a2f0: 7c 08 03 a6 mtlr r0 ffc0a2f4: 83 c1 00 10 lwz r30,16(r1) <== ALWAYS TAKEN ffc0a2f8: 83 e1 00 14 lwz r31,20(r1) ffc0a2fc: 38 21 00 18 addi r1,r1,24 ffc0a300: 4e 80 00 20 blr <== ALWAYS TAKEN * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { _Objects_Shrink_information( information ); ffc0a304: 7f e3 fb 78 mr r3,r31 ffc0a308: 48 00 03 a5 bl ffc0a6ac <_Objects_Shrink_information> <== ALWAYS TAKEN } } } ffc0a30c: 80 01 00 1c lwz r0,28(r1) ffc0a310: 83 a1 00 0c lwz r29,12(r1) ffc0a314: 7c 08 03 a6 mtlr r0 ffc0a318: 83 c1 00 10 lwz r30,16(r1) ffc0a31c: 83 e1 00 14 lwz r31,20(r1) ffc0a320: 38 21 00 18 addi r1,r1,24 ffc0a324: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a448 <_Objects_Get>: Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { ffc0a448: 7c 08 02 a6 mflr r0 ffc0a44c: 94 21 ff f0 stwu r1,-16(r1) ffc0a450: 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; ffc0a454: 81 23 00 08 lwz r9,8(r3) /* * 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 ) { ffc0a458: 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; ffc0a45c: 21 29 00 01 subfic r9,r9,1 ffc0a460: 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 ) { ffc0a464: 7f 89 00 40 cmplw cr7,r9,r0 ffc0a468: 41 9d 00 40 bgt- cr7,ffc0a4a8 <_Objects_Get+0x60> ffc0a46c: 3d 60 00 00 lis r11,0 ffc0a470: 81 4b 27 70 lwz r10,10096(r11) <== ALWAYS TAKEN ffc0a474: 38 0a 00 01 addi r0,r10,1 ffc0a478: 90 0b 27 70 stw r0,10096(r11) <== ALWAYS TAKEN _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { ffc0a47c: 81 63 00 1c lwz r11,28(r3) ffc0a480: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc0a484: 7c 6b 48 2e lwzx r3,r11,r9 ffc0a488: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a48c: 41 9e 00 38 beq- cr7,ffc0a4c4 <_Objects_Get+0x7c> *location = OBJECTS_LOCAL; ffc0a490: 38 00 00 00 li r0,0 ffc0a494: 90 05 00 00 stw r0,0(r5) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } ffc0a498: 80 01 00 14 lwz r0,20(r1) ffc0a49c: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0a4a0: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0a4a4: 4e 80 00 20 blr <== 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; ffc0a4a8: 38 00 00 01 li r0,1 ffc0a4ac: 90 05 00 00 stw r0,0(r5) ffc0a4b0: 38 60 00 00 li r3,0 _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } ffc0a4b4: 80 01 00 14 lwz r0,20(r1) ffc0a4b8: 38 21 00 10 addi r1,r1,16 ffc0a4bc: 7c 08 03 a6 mtlr r0 ffc0a4c0: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); ffc0a4c4: 90 61 00 08 stw r3,8(r1) ffc0a4c8: 90 a1 00 0c stw r5,12(r1) ffc0a4cc: 48 00 0b 49 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN *location = OBJECTS_ERROR; ffc0a4d0: 38 00 00 01 li r0,1 ffc0a4d4: 80 a1 00 0c lwz r5,12(r1) return NULL; ffc0a4d8: 80 61 00 08 lwz r3,8(r1) /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); *location = OBJECTS_ERROR; ffc0a4dc: 90 05 00 00 stw r0,0(r5) return NULL; ffc0a4e0: 4b ff ff b8 b ffc0a498 <_Objects_Get+0x50> <== ALWAYS TAKEN ffc0a350 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { ffc0a350: 94 21 ff f0 stwu r1,-16(r1) ffc0a354: 7c 08 02 a6 mflr r0 ffc0a358: 93 e1 00 0c stw r31,12(r1) Objects_Information *info; int the_class_api_maximum; if ( !the_class ) ffc0a35c: 7c 9f 23 79 mr. r31,r4 Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { ffc0a360: 93 c1 00 08 stw r30,8(r1) ffc0a364: 7c 7e 1b 78 mr r30,r3 ffc0a368: 90 01 00 14 stw r0,20(r1) Objects_Information *info; int the_class_api_maximum; if ( !the_class ) ffc0a36c: 40 82 00 20 bne- ffc0a38c <_Objects_Get_information+0x3c> * 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 ) ffc0a370: 38 60 00 00 li r3,0 return NULL; #endif return info; } ffc0a374: 80 01 00 14 lwz r0,20(r1) ffc0a378: 83 c1 00 08 lwz r30,8(r1) <== ALWAYS TAKEN ffc0a37c: 7c 08 03 a6 mtlr r0 ffc0a380: 83 e1 00 0c lwz r31,12(r1) ffc0a384: 38 21 00 10 addi r1,r1,16 ffc0a388: 4e 80 00 20 blr <== ALWAYS TAKEN /* * 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 ); ffc0a38c: 48 00 5a 51 bl ffc0fddc <_Objects_API_maximum_class> <== ALWAYS TAKEN if ( the_class_api_maximum == 0 ) ffc0a390: 2c 03 00 00 cmpwi r3,0 ffc0a394: 41 82 ff dc beq+ ffc0a370 <_Objects_Get_information+0x20> return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) ffc0a398: 7f 9f 18 40 cmplw cr7,r31,r3 ffc0a39c: 41 9d ff d4 bgt+ cr7,ffc0a370 <_Objects_Get_information+0x20> return NULL; if ( !_Objects_Information_table[ the_api ] ) ffc0a3a0: 3d 20 00 00 lis r9,0 ffc0a3a4: 57 de 10 3a rlwinm r30,r30,2,0,29 ffc0a3a8: 39 29 2c 20 addi r9,r9,11296 ffc0a3ac: 7d 29 f0 2e lwzx r9,r9,r30 ffc0a3b0: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a3b4: 41 9e ff bc beq+ cr7,ffc0a370 <_Objects_Get_information+0x20> <== NEVER TAKEN return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; ffc0a3b8: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0a3bc: 7c 69 f8 2e lwzx r3,r9,r31 if ( !info ) ffc0a3c0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a3c4: 41 9e ff b0 beq+ cr7,ffc0a374 <_Objects_Get_information+0x24> <== 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 ) ffc0a3c8: a0 03 00 10 lhz r0,16(r3) ffc0a3cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a3d0: 40 9e ff a4 bne+ cr7,ffc0a374 <_Objects_Get_information+0x24> ffc0a3d4: 4b ff ff 9c b ffc0a370 <_Objects_Get_information+0x20> <== ALWAYS TAKEN ffc0a328 <_Objects_Get_information_id>: #include Objects_Information *_Objects_Get_information_id( Objects_Id id ) { ffc0a328: 94 21 ff f8 stwu r1,-8(r1) ffc0a32c: 7c 08 02 a6 mflr r0 return _Objects_Get_information( ffc0a330: 54 64 2e fe rlwinm r4,r3,5,27,31 ffc0a334: 54 63 47 7e rlwinm r3,r3,8,29,31 #include Objects_Information *_Objects_Get_information_id( Objects_Id id ) { ffc0a338: 90 01 00 0c stw r0,12(r1) return _Objects_Get_information( ffc0a33c: 48 00 00 15 bl ffc0a350 <_Objects_Get_information> <== ALWAYS TAKEN _Objects_Get_API( id ), _Objects_Get_class( id ) ); } ffc0a340: 80 01 00 0c lwz r0,12(r1) ffc0a344: 38 21 00 08 addi r1,r1,8 ffc0a348: 7c 08 03 a6 mtlr r0 ffc0a34c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a3d8 <_Objects_Get_isr_disable>: { Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; ffc0a3d8: 80 03 00 08 lwz r0,8(r3) ffc0a3dc: 20 00 00 01 subfic r0,r0,1 ffc0a3e0: 7c 00 22 14 add r0,r0,r4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a3e4: 7d 60 00 a6 mfmsr r11 ffc0a3e8: 7d 30 42 a6 mfsprg r9,0 ffc0a3ec: 7d 69 48 78 andc r9,r11,r9 ffc0a3f0: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); if ( information->maximum >= index ) { ffc0a3f4: a1 23 00 10 lhz r9,16(r3) ffc0a3f8: 7f 80 48 40 cmplw cr7,r0,r9 ffc0a3fc: 41 9d 00 28 bgt- cr7,ffc0a424 <_Objects_Get_isr_disable+0x4c> if ( (the_object = information->local_table[ index ]) != NULL ) { ffc0a400: 81 23 00 1c lwz r9,28(r3) ffc0a404: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0a408: 7c 69 00 2e lwzx r3,r9,r0 ffc0a40c: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc0a410: 41 9e 00 28 beq- cr7,ffc0a438 <_Objects_Get_isr_disable+0x60> *location = OBJECTS_LOCAL; ffc0a414: 38 00 00 00 li r0,0 *level_p = level; ffc0a418: 91 66 00 00 stw r11,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; ffc0a41c: 90 05 00 00 stw r0,0(r5) <== ALWAYS TAKEN *level_p = level; return the_object; ffc0a420: 4e 80 00 20 blr <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a424: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); *location = OBJECTS_ERROR; ffc0a428: 38 00 00 01 li r0,1 ffc0a42c: 90 05 00 00 stw r0,0(r5) ffc0a430: 38 60 00 00 li r3,0 _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } ffc0a434: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a438: 7d 60 01 24 mtmsr r11 *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level ); *location = OBJECTS_ERROR; ffc0a43c: 38 00 00 01 li r0,1 ffc0a440: 90 05 00 00 stw r0,0(r5) return NULL; ffc0a444: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1a5f4 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { ffc1a5f4: 94 21 ff d8 stwu r1,-40(r1) ffc1a5f8: 7c 08 02 a6 mflr r0 ffc1a5fc: 93 c1 00 20 stw r30,32(r1) char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) ffc1a600: 7c 9e 23 79 mr. r30,r4 char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { ffc1a604: 93 e1 00 24 stw r31,36(r1) ffc1a608: 7c bf 2b 78 mr r31,r5 ffc1a60c: 90 01 00 2c stw r0,44(r1) ffc1a610: 93 81 00 18 stw r28,24(r1) ffc1a614: 93 a1 00 1c stw r29,28(r1) char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) ffc1a618: 40 82 00 2c bne- ffc1a644 <_Objects_Get_name_as_string+0x50> } } *d = '\0'; _Thread_Enable_dispatch(); return name; ffc1a61c: 3b e0 00 00 li r31,0 } return NULL; /* unreachable path */ } ffc1a620: 80 01 00 2c lwz r0,44(r1) ffc1a624: 7f e3 fb 78 mr r3,r31 ffc1a628: 83 81 00 18 lwz r28,24(r1) ffc1a62c: 7c 08 03 a6 mtlr r0 ffc1a630: 83 a1 00 1c lwz r29,28(r1) ffc1a634: 83 c1 00 20 lwz r30,32(r1) ffc1a638: 83 e1 00 24 lwz r31,36(r1) ffc1a63c: 38 21 00 28 addi r1,r1,40 ffc1a640: 4e 80 00 20 blr <== ALWAYS TAKEN Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) ffc1a644: 2f 85 00 00 cmpwi cr7,r5,0 ffc1a648: 41 9e ff d8 beq+ cr7,ffc1a620 <_Objects_Get_name_as_string+0x2c> return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc1a64c: 2f 83 00 00 cmpwi cr7,r3,0 ffc1a650: 7c 7c 1b 78 mr r28,r3 ffc1a654: 40 9e 00 10 bne- cr7,ffc1a664 <_Objects_Get_name_as_string+0x70> ffc1a658: 3d 20 00 00 lis r9,0 ffc1a65c: 81 29 29 b4 lwz r9,10676(r9) ffc1a660: 83 89 00 08 lwz r28,8(r9) information = _Objects_Get_information_id( tmpId ); ffc1a664: 7f 83 e3 78 mr r3,r28 ffc1a668: 4b ff 64 05 bl ffc10a6c <_Objects_Get_information_id> <== ALWAYS TAKEN if ( !information ) ffc1a66c: 7c 7d 1b 79 mr. r29,r3 ffc1a670: 41 82 ff ac beq+ ffc1a61c <_Objects_Get_name_as_string+0x28> return NULL; the_object = _Objects_Get( information, tmpId, &location ); ffc1a674: 7f 84 e3 78 mr r4,r28 ffc1a678: 38 a1 00 08 addi r5,r1,8 ffc1a67c: 4b ff 65 11 bl ffc10b8c <_Objects_Get> <== ALWAYS TAKEN switch ( location ) { ffc1a680: 80 01 00 08 lwz r0,8(r1) ffc1a684: 2f 80 00 00 cmpwi cr7,r0,0 ffc1a688: 40 be ff 94 bne- cr7,ffc1a61c <_Objects_Get_name_as_string+0x28> return NULL; case OBJECTS_LOCAL: #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { ffc1a68c: 89 3d 00 38 lbz r9,56(r29) ffc1a690: 2f 89 00 00 cmpwi cr7,r9,0 ffc1a694: 41 9e 00 80 beq- cr7,ffc1a714 <_Objects_Get_name_as_string+0x120> s = the_object->name.name_p; ffc1a698: 81 03 00 0c lwz r8,12(r3) lname[ 4 ] = '\0'; s = lname; } d = name; if ( s ) { ffc1a69c: 2f 88 00 00 cmpwi cr7,r8,0 ffc1a6a0: 41 9e 00 a0 beq- cr7,ffc1a740 <_Objects_Get_name_as_string+0x14c> for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { ffc1a6a4: 34 1e ff ff addic. r0,r30,-1 ffc1a6a8: 7c 09 03 a6 mtctr r0 ffc1a6ac: 41 82 00 94 beq- ffc1a740 <_Objects_Get_name_as_string+0x14c> <== NEVER TAKEN ffc1a6b0: 88 08 00 00 lbz r0,0(r8) ffc1a6b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc1a6b8: 41 9e 00 88 beq- cr7,ffc1a740 <_Objects_Get_name_as_string+0x14c> ffc1a6bc: 3c e0 00 00 lis r7,0 ffc1a6c0: 38 e7 28 e4 addi r7,r7,10468 ffc1a6c4: 7f e9 fb 78 mr r9,r31 ffc1a6c8: 39 60 00 00 li r11,0 ffc1a6cc: 48 00 00 10 b ffc1a6dc <_Objects_Get_name_as_string+0xe8> <== ALWAYS TAKEN ffc1a6d0: 7c 08 58 ae lbzx r0,r8,r11 ffc1a6d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc1a6d8: 41 9e 00 2c beq- cr7,ffc1a704 <_Objects_Get_name_as_string+0x110> *d = (isprint((unsigned char)*s)) ? *s : '*'; ffc1a6dc: 81 47 00 00 lwz r10,0(r7) s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { ffc1a6e0: 39 6b 00 01 addi r11,r11,1 *d = (isprint((unsigned char)*s)) ? *s : '*'; ffc1a6e4: 7d 4a 02 14 add r10,r10,r0 ffc1a6e8: 89 4a 00 01 lbz r10,1(r10) ffc1a6ec: 71 46 00 97 andi. r6,r10,151 ffc1a6f0: 40 82 00 08 bne- ffc1a6f8 <_Objects_Get_name_as_string+0x104> ffc1a6f4: 38 00 00 2a li r0,42 ffc1a6f8: 98 09 00 00 stb r0,0(r9) s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { ffc1a6fc: 39 29 00 01 addi r9,r9,1 ffc1a700: 42 00 ff d0 bdnz+ ffc1a6d0 <_Objects_Get_name_as_string+0xdc> *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; ffc1a704: 38 00 00 00 li r0,0 ffc1a708: 98 09 00 00 stb r0,0(r9) _Thread_Enable_dispatch(); ffc1a70c: 4b ff 71 0d bl ffc11818 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return name; ffc1a710: 4b ff ff 10 b ffc1a620 <_Objects_Get_name_as_string+0x2c> <== 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; ffc1a714: 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'; ffc1a718: 39 01 00 0c addi r8,r1,12 ffc1a71c: 99 21 00 10 stb r9,16(r1) } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; ffc1a720: 54 0a 46 3e rlwinm r10,r0,8,24,31 lname[ 1 ] = (u32_name >> 16) & 0xff; ffc1a724: 54 0b 84 3e rlwinm r11,r0,16,16,31 } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32; lname[ 0 ] = (u32_name >> 24) & 0xff; ffc1a728: 99 41 00 0c stb r10,12(r1) lname[ 1 ] = (u32_name >> 16) & 0xff; lname[ 2 ] = (u32_name >> 8) & 0xff; ffc1a72c: 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; ffc1a730: 99 61 00 0d stb r11,13(r1) lname[ 2 ] = (u32_name >> 8) & 0xff; ffc1a734: 99 21 00 0e stb r9,14(r1) lname[ 3 ] = (u32_name >> 0) & 0xff; ffc1a738: 98 01 00 0f stb r0,15(r1) ffc1a73c: 4b ff ff 68 b ffc1a6a4 <_Objects_Get_name_as_string+0xb0> <== ALWAYS TAKEN s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { ffc1a740: 7f e9 fb 78 mr r9,r31 ffc1a744: 4b ff ff c0 b ffc1a704 <_Objects_Get_name_as_string+0x110> <== ALWAYS TAKEN ffc1e044 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { ffc1e044: 94 21 ff e8 stwu r1,-24(r1) ffc1e048: 7c 08 02 a6 mflr r0 ffc1e04c: 93 c1 00 10 stw r30,16(r1) Objects_Control *object; Objects_Id next_id; if ( !information ) ffc1e050: 7c 7e 1b 79 mr. r30,r3 Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { ffc1e054: 93 81 00 08 stw r28,8(r1) ffc1e058: 7c dc 33 78 mr r28,r6 ffc1e05c: 93 e1 00 14 stw r31,20(r1) ffc1e060: 7c bf 2b 78 mr r31,r5 ffc1e064: 90 01 00 1c stw r0,28(r1) ffc1e068: 93 a1 00 0c stw r29,12(r1) Objects_Control *object; Objects_Id next_id; if ( !information ) ffc1e06c: 40 82 00 28 bne- ffc1e094 <_Objects_Get_next+0x50> *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; ffc1e070: 38 60 00 00 li r3,0 } ffc1e074: 80 01 00 1c lwz r0,28(r1) ffc1e078: 83 81 00 08 lwz r28,8(r1) ffc1e07c: 7c 08 03 a6 mtlr r0 ffc1e080: 83 a1 00 0c lwz r29,12(r1) ffc1e084: 83 c1 00 10 lwz r30,16(r1) ffc1e088: 83 e1 00 14 lwz r31,20(r1) ffc1e08c: 38 21 00 18 addi r1,r1,24 ffc1e090: 4e 80 00 20 blr <== ALWAYS TAKEN Objects_Id next_id; if ( !information ) return NULL; if ( !location_p ) ffc1e094: 2f 85 00 00 cmpwi cr7,r5,0 ffc1e098: 41 9e ff d8 beq+ cr7,ffc1e070 <_Objects_Get_next+0x2c> return NULL; if ( !next_id_p ) ffc1e09c: 2f 86 00 00 cmpwi cr7,r6,0 ffc1e0a0: 41 be ff d0 beq- cr7,ffc1e070 <_Objects_Get_next+0x2c> return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) ffc1e0a4: 54 80 04 3e clrlwi r0,r4,16 ffc1e0a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e0ac: 7c 9d 23 78 mr r29,r4 ffc1e0b0: 40 9e 00 08 bne- cr7,ffc1e0b8 <_Objects_Get_next+0x74> next_id = information->minimum_id; ffc1e0b4: 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) ffc1e0b8: a1 3e 00 10 lhz r9,16(r30) ffc1e0bc: 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); ffc1e0c0: 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) ffc1e0c4: 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); ffc1e0c8: 7f c3 f3 78 mr r3,r30 ffc1e0cc: 7f e5 fb 78 mr r5,r31 next_id++; ffc1e0d0: 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) ffc1e0d4: 41 9c 00 38 blt- cr7,ffc1e10c <_Objects_Get_next+0xc8> *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); ffc1e0d8: 4b ff 2a b5 bl ffc10b8c <_Objects_Get> <== ALWAYS TAKEN next_id++; } while (*location_p != OBJECTS_LOCAL); ffc1e0dc: 80 1f 00 00 lwz r0,0(r31) ffc1e0e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e0e4: 40 9e ff d4 bne+ cr7,ffc1e0b8 <_Objects_Get_next+0x74> return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } ffc1e0e8: 80 01 00 1c lwz r0,28(r1) next_id++; } while (*location_p != OBJECTS_LOCAL); *next_id_p = next_id; ffc1e0ec: 93 bc 00 00 stw r29,0(r28) return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } ffc1e0f0: 7c 08 03 a6 mtlr r0 ffc1e0f4: 83 81 00 08 lwz r28,8(r1) ffc1e0f8: 83 a1 00 0c lwz r29,12(r1) ffc1e0fc: 83 c1 00 10 lwz r30,16(r1) ffc1e100: 83 e1 00 14 lwz r31,20(r1) ffc1e104: 38 21 00 18 addi r1,r1,24 ffc1e108: 4e 80 00 20 blr <== ALWAYS TAKEN do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR; ffc1e10c: 38 00 00 01 li r0,1 ffc1e110: 90 1f 00 00 stw r0,0(r31) *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; ffc1e114: 38 00 ff ff li r0,-1 ffc1e118: 38 60 00 00 li r3,0 ffc1e11c: 90 1c 00 00 stw r0,0(r28) return 0; ffc1e120: 4b ff ff 54 b ffc1e074 <_Objects_Get_next+0x30> <== ALWAYS TAKEN ffc1e028 <_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; ffc1e028: 81 23 00 08 lwz r9,8(r3) if ( information->maximum >= index ) { ffc1e02c: 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; ffc1e030: 21 29 00 01 subfic r9,r9,1 ffc1e034: 7d 29 22 14 add r9,r9,r4 if ( information->maximum >= index ) { ffc1e038: 7f 89 00 40 cmplw cr7,r9,r0 ffc1e03c: 41 9d 00 24 bgt- cr7,ffc1e060 <_Objects_Get_no_protection+0x38> if ( (the_object = information->local_table[ index ]) != NULL ) { ffc1e040: 81 63 00 1c lwz r11,28(r3) ffc1e044: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc1e048: 7c 6b 48 2e lwzx r3,r11,r9 ffc1e04c: 2f 83 00 00 cmpwi cr7,r3,0 ffc1e050: 41 9e 00 10 beq- cr7,ffc1e060 <_Objects_Get_no_protection+0x38> <== NEVER TAKEN *location = OBJECTS_LOCAL; ffc1e054: 38 00 00 00 li r0,0 ffc1e058: 90 05 00 00 stw r0,0(r5) return the_object; ffc1e05c: 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; ffc1e060: 38 00 00 01 li r0,1 ffc1e064: 90 05 00 00 stw r0,0(r5) ffc1e068: 38 60 00 00 li r3,0 return NULL; } ffc1e06c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10c28 <_Objects_Id_to_name>: /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc10c28: 2c 03 00 00 cmpwi r3,0 */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { ffc10c2c: 94 21 ff e0 stwu r1,-32(r1) ffc10c30: 7c 08 02 a6 mflr r0 ffc10c34: 93 e1 00 1c stw r31,28(r1) ffc10c38: 7c 9f 23 78 mr r31,r4 ffc10c3c: 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; ffc10c40: 41 82 00 64 beq- ffc10ca4 <_Objects_Id_to_name+0x7c> ffc10c44: 7c 64 1b 78 mr r4,r3 */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); ffc10c48: 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 ) ffc10c4c: 38 09 ff ff addi r0,r9,-1 ffc10c50: 2b 80 00 03 cmplwi cr7,r0,3 ffc10c54: 41 9d 00 38 bgt- cr7,ffc10c8c <_Objects_Id_to_name+0x64> the_api = _Objects_Get_API( tmpId ); if ( !_Objects_Is_api_valid( the_api ) ) return OBJECTS_INVALID_ID; if ( !_Objects_Information_table[ the_api ] ) ffc10c58: 3d 60 00 00 lis r11,0 ffc10c5c: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc10c60: 39 6b 35 20 addi r11,r11,13600 ffc10c64: 7d 2b 48 2e lwzx r9,r11,r9 ffc10c68: 2f 89 00 00 cmpwi cr7,r9,0 ffc10c6c: 41 9e 00 20 beq- cr7,ffc10c8c <_Objects_Id_to_name+0x64> return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; ffc10c70: 54 80 3e 7a rlwinm r0,r4,7,25,29 ffc10c74: 7c 69 00 2e lwzx r3,r9,r0 if ( !information ) ffc10c78: 2f 83 00 00 cmpwi cr7,r3,0 ffc10c7c: 41 9e 00 10 beq- cr7,ffc10c8c <_Objects_Id_to_name+0x64> <== NEVER TAKEN return OBJECTS_INVALID_ID; #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) ffc10c80: 88 03 00 38 lbz r0,56(r3) ffc10c84: 2f 80 00 00 cmpwi cr7,r0,0 ffc10c88: 41 9e 00 2c beq- cr7,ffc10cb4 <_Objects_Id_to_name+0x8c> <== ALWAYS TAKEN return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } ffc10c8c: 80 01 00 24 lwz r0,36(r1) if ( !the_object ) return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; ffc10c90: 38 60 00 03 li r3,3 } ffc10c94: 83 e1 00 1c lwz r31,28(r1) ffc10c98: 38 21 00 20 addi r1,r1,32 ffc10c9c: 7c 08 03 a6 mtlr r0 ffc10ca0: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc10ca4: 3d 20 00 00 lis r9,0 ffc10ca8: 81 29 29 b4 lwz r9,10676(r9) ffc10cac: 80 89 00 08 lwz r4,8(r9) ffc10cb0: 4b ff ff 98 b ffc10c48 <_Objects_Id_to_name+0x20> <== ALWAYS TAKEN #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) return OBJECTS_INVALID_ID; #endif the_object = _Objects_Get( information, tmpId, &ignored_location ); ffc10cb4: 38 a1 00 08 addi r5,r1,8 ffc10cb8: 4b ff fe d5 bl ffc10b8c <_Objects_Get> <== ALWAYS TAKEN if ( !the_object ) ffc10cbc: 2c 03 00 00 cmpwi r3,0 ffc10cc0: 41 a2 ff cc beq- ffc10c8c <_Objects_Id_to_name+0x64> return OBJECTS_INVALID_ID; *name = the_object->name; ffc10cc4: 80 03 00 0c lwz r0,12(r3) ffc10cc8: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc10ccc: 48 00 0b 4d bl ffc11818 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } ffc10cd0: 80 01 00 24 lwz r0,36(r1) the_object = _Objects_Get( information, tmpId, &ignored_location ); if ( !the_object ) return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); ffc10cd4: 38 60 00 00 li r3,0 return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } ffc10cd8: 83 e1 00 1c lwz r31,28(r1) ffc10cdc: 7c 08 03 a6 mtlr r0 ffc10ce0: 38 21 00 20 addi r1,r1,32 ffc10ce4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a4e4 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { ffc0a4e4: 7c 08 02 a6 mflr r0 ffc0a4e8: 94 21 ff f8 stwu r1,-8(r1) information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; ffc0a4ec: 3d 40 00 00 lis r10,0 <== ALWAYS TAKEN , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { ffc0a4f0: 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; ffc0a4f4: 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) { ffc0a4f8: 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; ffc0a4fc: 39 4a 2c 20 addi r10,r10,11296 <== ALWAYS TAKEN uint32_t index; #endif information->the_api = the_api; information->the_class = the_class; information->size = size; ffc0a500: 90 e3 00 18 stw r7,24(r3) <== ALWAYS TAKEN information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; ffc0a504: 54 8b 10 3a rlwinm r11,r4,2,0,29 ffc0a508: 7d 6a 58 2e lwzx r11,r10,r11 ffc0a50c: 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; ffc0a510: 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; ffc0a514: 99 03 00 38 stb r8,56(r3) ffc0a518: 54 c6 00 7f clrlwi. r6,r6,1 <== ALWAYS TAKEN information->maximum = 0; /* * Register this Object Class in the Object Information Table. */ _Objects_Information_table[ the_api ][ the_class ] = information; ffc0a51c: 7c 6b 61 2e stwx r3,r11,r12 <== ALWAYS TAKEN /* * 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; ffc0a520: b1 43 00 10 sth r10,16(r3) uint32_t maximum_per_allocation; #if defined(RTEMS_MULTIPROCESSING) uint32_t index; #endif information->the_api = the_api; ffc0a524: 90 83 00 00 stw r4,0(r3) information->the_class = the_class; ffc0a528: b0 a3 00 04 sth r5,4(r3) information->size = size; information->local_table = 0; ffc0a52c: 91 43 00 1c stw r10,28(r3) information->inactive_per_block = 0; ffc0a530: 91 43 00 30 stw r10,48(r3) <== ALWAYS TAKEN information->object_blocks = 0; ffc0a534: 91 43 00 34 stw r10,52(r3) information->inactive = 0; ffc0a538: 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 = ffc0a53c: 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) { ffc0a540: 41 9e 00 08 beq- cr7,ffc0a548 <_Objects_Initialize_information+0x64> ffc0a544: 41 82 00 84 beq- ffc0a5c8 <_Objects_Initialize_information+0xe4> /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) ffc0a548: 55 20 07 be clrlwi r0,r9,30 <== ALWAYS TAKEN } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; ffc0a54c: b0 c3 00 14 sth r6,20(r3) /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) ffc0a550: 2f 80 00 00 cmpwi cr7,r0,0 /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = ffc0a554: 54 84 c0 0e rlwinm r4,r4,24,0,7 ffc0a558: 64 84 00 01 oris r4,r4,1 ffc0a55c: 54 a5 d8 08 rlwinm r5,r5,27,0,4 ffc0a560: 7c 06 00 d0 neg r0,r6 <== ALWAYS TAKEN ffc0a564: 54 00 0f fe rlwinm r0,r0,1,31,31 ffc0a568: 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; ffc0a56c: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = ffc0a570: 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; ffc0a574: 39 6b 29 8c addi r11,r11,10636 /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = ffc0a578: 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) & ffc0a57c: 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; ffc0a580: 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) & ffc0a584: 54 00 00 3a rlwinm r0,r0,0,0,29 <== ALWAYS TAKEN /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) ffc0a588: 41 9e 00 38 beq- cr7,ffc0a5c0 <_Objects_Initialize_information+0xdc> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0a58c: 39 63 00 24 addi r11,r3,36 name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; ffc0a590: b0 03 00 3a sth r0,58(r3) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0a594: 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); the_chain->permanent_null = NULL; ffc0a598: 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); ffc0a59c: 91 63 00 20 stw r11,32(r3) the_chain->permanent_null = NULL; ffc0a5a0: 90 03 00 24 stw r0,36(r3) the_chain->last = _Chain_Head(the_chain); ffc0a5a4: 91 23 00 28 stw r9,40(r3) _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { ffc0a5a8: 41 a2 00 08 beq+ ffc0a5b0 <_Objects_Initialize_information+0xcc> /* * 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 ); ffc0a5ac: 4b ff f9 99 bl ffc09f44 <_Objects_Extend_information> <== ALWAYS TAKEN _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } ffc0a5b0: 80 01 00 0c lwz r0,12(r1) ffc0a5b4: 38 21 00 08 addi r1,r1,8 ffc0a5b8: 7c 08 03 a6 mtlr r0 ffc0a5bc: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) ffc0a5c0: 7d 20 4b 78 mr r0,r9 ffc0a5c4: 4b ff ff c8 b ffc0a58c <_Objects_Initialize_information+0xa8> <== ALWAYS TAKEN /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { _Internal_error_Occurred( ffc0a5c8: 38 60 00 00 li r3,0 ffc0a5cc: 38 80 00 01 li r4,1 ffc0a5d0: 38 a0 00 14 li r5,20 ffc0a5d4: 4b ff f8 15 bl ffc09de8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc1841c <_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 ) { ffc1841c: 94 21 ff d8 stwu r1,-40(r1) ffc18420: 7c 08 02 a6 mflr r0 ffc18424: 93 21 00 0c stw r25,12(r1) uint32_t index; uint32_t name_length; /* ASSERT: information->is_string == true */ if ( !id ) ffc18428: 7c b9 2b 79 mr. r25,r5 Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string( Objects_Information *information, const char *name, Objects_Id *id ) { ffc1842c: 93 61 00 14 stw r27,20(r1) ffc18430: 7c 7b 1b 78 mr r27,r3 uint32_t index; uint32_t name_length; /* ASSERT: information->is_string == true */ if ( !id ) ffc18434: 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 ) { ffc18438: 93 a1 00 1c stw r29,28(r1) ffc1843c: 7c 9d 23 78 mr r29,r4 ffc18440: 90 01 00 2c stw r0,44(r1) ffc18444: 93 41 00 10 stw r26,16(r1) ffc18448: 93 81 00 18 stw r28,24(r1) ffc1844c: 93 c1 00 20 stw r30,32(r1) ffc18450: 93 e1 00 24 stw r31,36(r1) uint32_t index; uint32_t name_length; /* ASSERT: information->is_string == true */ if ( !id ) ffc18454: 41 82 00 64 beq- ffc184b8 <_Objects_Name_to_id_string+0x9c> return OBJECTS_INVALID_ADDRESS; if ( !name ) ffc18458: 2f 84 00 00 cmpwi cr7,r4,0 ffc1845c: 41 9e 00 58 beq- cr7,ffc184b4 <_Objects_Name_to_id_string+0x98> return OBJECTS_INVALID_NAME; if ( information->maximum != 0 ) { ffc18460: a3 9b 00 10 lhz r28,16(r27) ffc18464: 2f 9c 00 00 cmpwi cr7,r28,0 ffc18468: 41 9e 00 4c beq- cr7,ffc184b4 <_Objects_Name_to_id_string+0x98> name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc1846c: 83 5b 00 1c lwz r26,28(r27) ffc18470: 3b e0 00 01 li r31,1 the_object = information->local_table[ index ]; ffc18474: 57 e0 10 3a rlwinm r0,r31,2,0,29 ffc18478: 7f da 00 2e lwzx r30,r26,r0 continue; if ( !the_object->name.name_p ) continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { ffc1847c: 7f a3 eb 78 mr r3,r29 return OBJECTS_INVALID_NAME; if ( information->maximum != 0 ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc18480: 3b ff 00 01 addi r31,r31,1 the_object = information->local_table[ index ]; if ( !the_object ) ffc18484: 2f 9e 00 00 cmpwi cr7,r30,0 ffc18488: 41 9e 00 24 beq- cr7,ffc184ac <_Objects_Name_to_id_string+0x90> continue; if ( !the_object->name.name_p ) ffc1848c: 80 1e 00 0c lwz r0,12(r30) ffc18490: 2f 80 00 00 cmpwi cr7,r0,0 continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { ffc18494: 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 ) ffc18498: 41 9e 00 14 beq- cr7,ffc184ac <_Objects_Name_to_id_string+0x90> continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { ffc1849c: a0 bb 00 3a lhz r5,58(r27) ffc184a0: 48 00 50 dd bl ffc1d57c <== ALWAYS TAKEN ffc184a4: 2f 83 00 00 cmpwi cr7,r3,0 ffc184a8: 41 9e 00 3c beq- cr7,ffc184e4 <_Objects_Name_to_id_string+0xc8> return OBJECTS_INVALID_NAME; if ( information->maximum != 0 ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc184ac: 7f 9f e0 40 cmplw cr7,r31,r28 ffc184b0: 40 9d ff c4 ble+ cr7,ffc18474 <_Objects_Name_to_id_string+0x58> ffc184b4: 38 60 00 01 li r3,1 } } } return OBJECTS_INVALID_NAME; } ffc184b8: 80 01 00 2c lwz r0,44(r1) ffc184bc: 83 21 00 0c lwz r25,12(r1) ffc184c0: 7c 08 03 a6 mtlr r0 ffc184c4: 83 41 00 10 lwz r26,16(r1) ffc184c8: 83 61 00 14 lwz r27,20(r1) ffc184cc: 83 81 00 18 lwz r28,24(r1) ffc184d0: 83 a1 00 1c lwz r29,28(r1) ffc184d4: 83 c1 00 20 lwz r30,32(r1) ffc184d8: 83 e1 00 24 lwz r31,36(r1) ffc184dc: 38 21 00 28 addi r1,r1,40 ffc184e0: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !the_object->name.name_p ) continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { *id = the_object->id; ffc184e4: 80 1e 00 08 lwz r0,8(r30) } } } return OBJECTS_INVALID_NAME; } ffc184e8: 83 41 00 10 lwz r26,16(r1) if ( !the_object->name.name_p ) continue; if (!strncmp( name, the_object->name.name_p, information->name_length)) { *id = the_object->id; ffc184ec: 90 19 00 00 stw r0,0(r25) } } } return OBJECTS_INVALID_NAME; } ffc184f0: 80 01 00 2c lwz r0,44(r1) ffc184f4: 83 21 00 0c lwz r25,12(r1) ffc184f8: 7c 08 03 a6 mtlr r0 ffc184fc: 83 61 00 14 lwz r27,20(r1) ffc18500: 83 81 00 18 lwz r28,24(r1) ffc18504: 83 a1 00 1c lwz r29,28(r1) ffc18508: 83 c1 00 20 lwz r30,32(r1) ffc1850c: 83 e1 00 24 lwz r31,36(r1) ffc18510: 38 21 00 28 addi r1,r1,40 ffc18514: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a620 <_Objects_Name_to_id_u32>: Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) ffc0a620: 2c 06 00 00 cmpwi r6,0 Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { ffc0a624: 7c 69 1b 78 mr r9,r3 Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) ffc0a628: 38 60 00 02 li r3,2 ffc0a62c: 4d 82 00 20 beqlr return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) ffc0a630: 2f 84 00 00 cmpwi cr7,r4,0 ffc0a634: 41 9e 00 48 beq- cr7,ffc0a67c <_Objects_Name_to_id_u32+0x5c> return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && ffc0a638: a1 49 00 10 lhz r10,16(r9) ffc0a63c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0a640: 41 9e 00 3c beq- cr7,ffc0a67c <_Objects_Name_to_id_u32+0x5c> ffc0a644: 2f 85 00 00 cmpwi cr7,r5,0 ffc0a648: 40 9e 00 4c bne- cr7,ffc0a694 <_Objects_Name_to_id_u32+0x74> search_local_node = true; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc0a64c: 81 09 00 1c lwz r8,28(r9) ffc0a650: 39 20 00 01 li r9,1 the_object = information->local_table[ index ]; ffc0a654: 55 20 10 3a rlwinm r0,r9,2,0,29 ffc0a658: 7d 68 00 2e lwzx r11,r8,r0 search_local_node = true; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc0a65c: 39 29 00 01 addi r9,r9,1 ffc0a660: 7f 0a 48 40 cmplw cr6,r10,r9 the_object = information->local_table[ index ]; if ( !the_object ) ffc0a664: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0a668: 41 9e 00 10 beq- cr7,ffc0a678 <_Objects_Name_to_id_u32+0x58> continue; if ( name == the_object->name.name_u32 ) { ffc0a66c: 80 0b 00 0c lwz r0,12(r11) ffc0a670: 7f 80 20 00 cmpw cr7,r0,r4 ffc0a674: 41 9e 00 10 beq- cr7,ffc0a684 <_Objects_Name_to_id_u32+0x64> search_local_node = true; if ( search_local_node ) { name_length = information->name_length; for ( index = 1; index <= information->maximum; index++ ) { ffc0a678: 40 98 ff dc bge+ cr6,ffc0a654 <_Objects_Name_to_id_u32+0x34> ffc0a67c: 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 } ffc0a680: 4e 80 00 20 blr <== ALWAYS TAKEN the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id; ffc0a684: 80 0b 00 08 lwz r0,8(r11) ffc0a688: 38 60 00 00 li r3,0 ffc0a68c: 90 06 00 00 stw r0,0(r6) return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; ffc0a690: 4e 80 00 20 blr <== ALWAYS TAKEN if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && ffc0a694: 6c a0 80 00 xoris r0,r5,32768 ffc0a698: 2f 80 ff ff cmpwi cr7,r0,-1 ffc0a69c: 41 9e ff b0 beq+ cr7,ffc0a64c <_Objects_Name_to_id_u32+0x2c> ffc0a6a0: 2f 85 00 01 cmpwi cr7,r5,1 ffc0a6a4: 40 9e ff d8 bne+ cr7,ffc0a67c <_Objects_Name_to_id_u32+0x5c> ffc0a6a8: 4b ff ff a4 b ffc0a64c <_Objects_Name_to_id_u32+0x2c> <== ALWAYS TAKEN ffc0a5d8 <_Objects_Namespace_remove>: void _Objects_Namespace_remove( Objects_Information *information, Objects_Control *the_object ) { ffc0a5d8: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0a5dc: 94 21 ff f0 stwu r1,-16(r1) ffc0a5e0: 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 ) ffc0a5e4: 88 03 00 38 lbz r0,56(r3) ffc0a5e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a5ec: 41 9e 00 1c beq- cr7,ffc0a608 <_Objects_Namespace_remove+0x30> ffc0a5f0: 80 64 00 0c lwz r3,12(r4) ffc0a5f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a5f8: 41 9e 00 10 beq- cr7,ffc0a608 <_Objects_Namespace_remove+0x30> _Workspace_Free( (void *)the_object->name.name_p ); ffc0a5fc: 90 81 00 08 stw r4,8(r1) ffc0a600: 48 00 24 ed bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN ffc0a604: 80 81 00 08 lwz r4,8(r1) /* * Clear out either format. */ #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) the_object->name.name_p = NULL; ffc0a608: 38 00 00 00 li r0,0 #endif the_object->name.name_u32 = 0; ffc0a60c: 90 04 00 0c stw r0,12(r4) } ffc0a610: 80 01 00 14 lwz r0,20(r1) ffc0a614: 38 21 00 10 addi r1,r1,16 ffc0a618: 7c 08 03 a6 mtlr r0 ffc0a61c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b068 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { ffc0b068: 94 21 ff e8 stwu r1,-24(r1) ffc0b06c: 7c 08 02 a6 mflr r0 ffc0b070: 90 01 00 1c stw r0,28(r1) ffc0b074: 93 a1 00 0c stw r29,12(r1) ffc0b078: 7c 9d 23 78 mr r29,r4 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); ffc0b07c: a0 83 00 3a lhz r4,58(r3) bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { ffc0b080: 93 c1 00 10 stw r30,16(r1) ffc0b084: 7c 7e 1b 78 mr r30,r3 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); ffc0b088: 7c a3 2b 78 mr r3,r5 bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { ffc0b08c: 93 81 00 08 stw r28,8(r1) ffc0b090: 7c bc 2b 78 mr r28,r5 ffc0b094: 93 e1 00 14 stw r31,20(r1) size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); ffc0b098: 48 00 ae 45 bl ffc15edc <== ALWAYS TAKEN ffc0b09c: 7c 7f 1b 78 mr r31,r3 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { ffc0b0a0: 88 1e 00 38 lbz r0,56(r30) ffc0b0a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b0a8: 40 9e 00 80 bne- cr7,ffc0b128 <_Objects_Set_name+0xc0> d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( ffc0b0ac: 2b 83 00 01 cmplwi cr7,r3,1 ffc0b0b0: 89 3c 00 00 lbz r9,0(r28) ffc0b0b4: 55 29 c0 0e rlwinm r9,r9,24,0,7 ffc0b0b8: 40 9d 00 60 ble- cr7,ffc0b118 <_Objects_Set_name+0xb0> ffc0b0bc: 2f 83 00 02 cmpwi cr7,r3,2 ffc0b0c0: 88 1c 00 01 lbz r0,1(r28) ffc0b0c4: 54 00 80 1e rlwinm r0,r0,16,0,15 ffc0b0c8: 7c 09 4b 78 or r9,r0,r9 ffc0b0cc: 41 9e 00 50 beq- cr7,ffc0b11c <_Objects_Set_name+0xb4> ffc0b0d0: 2f 83 00 03 cmpwi cr7,r3,3 <== ALWAYS TAKEN ffc0b0d4: 89 7c 00 02 lbz r11,2(r28) ffc0b0d8: 38 00 00 20 li r0,32 ffc0b0dc: 55 6b 40 2e rlwinm r11,r11,8,0,23 ffc0b0e0: 7d 29 5b 78 or r9,r9,r11 ffc0b0e4: 41 9e 00 08 beq- cr7,ffc0b0ec <_Objects_Set_name+0x84> ffc0b0e8: 88 1c 00 03 lbz r0,3(r28) ffc0b0ec: 7d 20 03 78 or r0,r9,r0 ffc0b0f0: 90 1d 00 0c stw r0,12(r29) ffc0b0f4: 38 60 00 01 li r3,1 ); } return true; } ffc0b0f8: 80 01 00 1c lwz r0,28(r1) ffc0b0fc: 83 81 00 08 lwz r28,8(r1) ffc0b100: 7c 08 03 a6 mtlr r0 ffc0b104: 83 a1 00 0c lwz r29,12(r1) ffc0b108: 83 c1 00 10 lwz r30,16(r1) ffc0b10c: 83 e1 00 14 lwz r31,20(r1) ffc0b110: 38 21 00 18 addi r1,r1,24 ffc0b114: 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( ffc0b118: 65 29 00 20 oris r9,r9,32 ffc0b11c: 61 29 20 00 ori r9,r9,8192 ffc0b120: 38 00 00 20 li r0,32 ffc0b124: 4b ff ff c8 b ffc0b0ec <_Objects_Set_name+0x84> <== ALWAYS TAKEN #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { char *d; d = _Workspace_Allocate( length + 1 ); ffc0b128: 38 63 00 01 addi r3,r3,1 ffc0b12c: 48 00 24 75 bl ffc0d5a0 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !d ) ffc0b130: 7c 7e 1b 79 mr. r30,r3 ffc0b134: 38 60 00 00 li r3,0 ffc0b138: 41 a2 ff c0 beq- ffc0b0f8 <_Objects_Set_name+0x90> <== NEVER TAKEN return false; if ( the_object->name.name_p ) { ffc0b13c: 80 7d 00 0c lwz r3,12(r29) ffc0b140: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b144: 41 9e 00 10 beq- cr7,ffc0b154 <_Objects_Set_name+0xec> _Workspace_Free( (void *)the_object->name.name_p ); ffc0b148: 48 00 24 8d bl ffc0d5d4 <_Workspace_Free> <== ALWAYS TAKEN the_object->name.name_p = NULL; ffc0b14c: 38 00 00 00 li r0,0 ffc0b150: 90 1d 00 0c stw r0,12(r29) } strncpy( d, name, length ); ffc0b154: 7f 84 e3 78 mr r4,r28 ffc0b158: 7f c3 f3 78 mr r3,r30 ffc0b15c: 7f e5 fb 78 mr r5,r31 ffc0b160: 48 00 ac 9d bl ffc15dfc <== ALWAYS TAKEN d[length] = '\0'; ffc0b164: 38 00 00 00 li r0,0 ffc0b168: 7c 1e f9 ae stbx r0,r30,r31 the_object->name.name_p = d; ffc0b16c: 38 60 00 01 li r3,1 ffc0b170: 93 dd 00 0c stw r30,12(r29) ); } return true; } ffc0b174: 80 01 00 1c lwz r0,28(r1) ffc0b178: 83 81 00 08 lwz r28,8(r1) ffc0b17c: 7c 08 03 a6 mtlr r0 ffc0b180: 83 a1 00 0c lwz r29,12(r1) ffc0b184: 83 c1 00 10 lwz r30,16(r1) ffc0b188: 83 e1 00 14 lwz r31,20(r1) ffc0b18c: 38 21 00 18 addi r1,r1,24 ffc0b190: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a6ac <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { ffc0a6ac: 94 21 ff e8 stwu r1,-24(r1) ffc0a6b0: 7c 08 02 a6 mflr r0 ffc0a6b4: 90 01 00 1c stw r0,28(r1) ffc0a6b8: 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) / ffc0a6bc: a1 23 00 10 lhz r9,16(r3) /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); ffc0a6c0: a3 c3 00 0a lhz r30,10(r3) block_count = (information->maximum - index_base) / ffc0a6c4: a0 03 00 14 lhz r0,20(r3) ffc0a6c8: 7d 3e 48 50 subf r9,r30,r9 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc0a6cc: 93 81 00 08 stw r28,8(r1) /* * Search the list to find block or chunk with all objects inactive. */ index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / ffc0a6d0: 7d 29 03 96 divwu r9,r9,r0 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc0a6d4: 93 a1 00 0c stw r29,12(r1) ffc0a6d8: 93 e1 00 14 stw r31,20(r1) index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { ffc0a6dc: 2f 89 00 00 cmpwi cr7,r9,0 */ void _Objects_Shrink_information( Objects_Information *information ) { ffc0a6e0: 7c 7c 1b 78 mr r28,r3 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { ffc0a6e4: 41 9e 00 3c beq- cr7,ffc0a720 <_Objects_Shrink_information+0x74> <== NEVER TAKEN if ( information->inactive_per_block[ block ] == ffc0a6e8: 81 63 00 30 lwz r11,48(r3) ffc0a6ec: 7d 29 03 a6 mtctr r9 information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; ffc0a6f0: 3b e0 00 04 li r31,4 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == ffc0a6f4: 81 2b 00 00 lwz r9,0(r11) ffc0a6f8: 7f 80 48 00 cmpw cr7,r0,r9 ffc0a6fc: 41 9e 00 44 beq- cr7,ffc0a740 <_Objects_Shrink_information+0x94> <== NEVER TAKEN index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { ffc0a700: 42 40 00 20 bdz- ffc0a720 <_Objects_Shrink_information+0x74> <== NEVER TAKEN if ( information->inactive_per_block[ block ] == ffc0a704: 7d 2b f8 2e lwzx r9,r11,r31 information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; ffc0a708: 7f de 02 14 add r30,r30,r0 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == ffc0a70c: 7f 80 48 00 cmpw cr7,r0,r9 information->inactive -= information->allocation_size; return; } index_base += information->allocation_size; ffc0a710: 39 3f 00 04 addi r9,r31,4 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == ffc0a714: 41 9e 00 30 beq- cr7,ffc0a744 <_Objects_Shrink_information+0x98> ffc0a718: 7d 3f 4b 78 mr r31,r9 index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { ffc0a71c: 42 00 ff e8 bdnz+ ffc0a704 <_Objects_Shrink_information+0x58> return; } index_base += information->allocation_size; } } ffc0a720: 80 01 00 1c lwz r0,28(r1) ffc0a724: 83 81 00 08 lwz r28,8(r1) ffc0a728: 7c 08 03 a6 mtlr r0 ffc0a72c: 83 a1 00 0c lwz r29,12(r1) ffc0a730: 83 c1 00 10 lwz r30,16(r1) ffc0a734: 83 e1 00 14 lwz r31,20(r1) ffc0a738: 38 21 00 18 addi r1,r1,24 ffc0a73c: 4e 80 00 20 blr <== ALWAYS TAKEN index_base = _Objects_Get_index( information->minimum_id ); block_count = (information->maximum - index_base) / information->allocation_size; for ( block = 0; block < block_count; block++ ) { if ( information->inactive_per_block[ block ] == ffc0a740: 3b e0 00 00 li r31,0 <== NOT EXECUTED information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; ffc0a744: 80 7c 00 20 lwz r3,32(r28) ffc0a748: 48 00 00 10 b ffc0a758 <_Objects_Shrink_information+0xac> <== ALWAYS TAKEN if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); ffc0a74c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0a750: 7f a3 eb 78 mr r3,r29 ffc0a754: 41 9e 00 34 beq- cr7,ffc0a788 <_Objects_Shrink_information+0xdc> * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first; do { index = _Objects_Get_index( the_object->id ); ffc0a758: 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; ffc0a75c: 83 a3 00 00 lwz r29,0(r3) if ((index >= index_base) && ffc0a760: 7f 80 f0 40 cmplw cr7,r0,r30 ffc0a764: 41 bc ff e8 blt- cr7,ffc0a74c <_Objects_Shrink_information+0xa0> (index < (index_base + information->allocation_size))) { ffc0a768: a1 3c 00 14 lhz r9,20(r28) ffc0a76c: 7d 3e 4a 14 add r9,r30,r9 ffc0a770: 7f 80 48 40 cmplw cr7,r0,r9 ffc0a774: 40 9c ff d8 bge+ cr7,ffc0a74c <_Objects_Shrink_information+0xa0> _Chain_Extract( &extract_me->Node ); ffc0a778: 48 00 4f 81 bl ffc0f6f8 <_Chain_Extract> <== ALWAYS TAKEN } } while ( the_object ); ffc0a77c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0a780: 7f a3 eb 78 mr r3,r29 ffc0a784: 40 9e ff d4 bne+ cr7,ffc0a758 <_Objects_Shrink_information+0xac> <== ALWAYS TAKEN /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); ffc0a788: 81 3c 00 34 lwz r9,52(r28) ffc0a78c: 7c 69 f8 2e lwzx r3,r9,r31 ffc0a790: 48 00 23 5d bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; ffc0a794: a1 5c 00 2c lhz r10,44(r28) ffc0a798: a0 1c 00 14 lhz r0,20(r28) /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; ffc0a79c: 81 3c 00 34 lwz r9,52(r28) information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; ffc0a7a0: 7c 00 50 50 subf r0,r0,r10 * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; ffc0a7a4: 81 7c 00 30 lwz r11,48(r28) information->inactive -= information->allocation_size; ffc0a7a8: b0 1c 00 2c sth r0,44(r28) return; } index_base += information->allocation_size; } } ffc0a7ac: 80 01 00 1c lwz r0,28(r1) * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; ffc0a7b0: 7f ab f9 2e stwx r29,r11,r31 return; } index_base += information->allocation_size; } } ffc0a7b4: 7c 08 03 a6 mtlr r0 /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); information->object_blocks[ block ] = NULL; ffc0a7b8: 7f a9 f9 2e stwx r29,r9,r31 return; } index_base += information->allocation_size; } } ffc0a7bc: 83 81 00 08 lwz r28,8(r1) ffc0a7c0: 83 a1 00 0c lwz r29,12(r1) ffc0a7c4: 83 c1 00 10 lwz r30,16(r1) ffc0a7c8: 83 e1 00 14 lwz r31,20(r1) ffc0a7cc: 38 21 00 18 addi r1,r1,24 ffc0a7d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0903c <_POSIX_API_Initialize>: */ Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ]; void _POSIX_API_Initialize(void) { ffc0903c: 94 21 ff f8 stwu r1,-8(r1) ffc09040: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN /* * Install our API Object Management Table and initialize the * various managers. */ _Objects_Information_table[OBJECTS_POSIX_API] = _POSIX_Objects; ffc09044: 3d 20 00 00 lis r9,0 */ Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ]; void _POSIX_API_Initialize(void) { ffc09048: 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_POSIX_API] = _POSIX_Objects; ffc0904c: 38 09 30 d0 addi r0,r9,12496 ffc09050: 3d 20 00 00 lis r9,0 ffc09054: 90 09 2c 2c stw r0,11308(r9) _POSIX_signals_Manager_Initialization(); ffc09058: 48 00 57 6d bl ffc0e7c4 <_POSIX_signals_Manager_Initialization> <== ALWAYS TAKEN _POSIX_Threads_Manager_initialization(); ffc0905c: 48 00 59 fd bl ffc0ea58 <_POSIX_Threads_Manager_initialization> <== ALWAYS TAKEN _POSIX_Condition_variables_Manager_initialization(); ffc09060: 48 00 55 5d bl ffc0e5bc <_POSIX_Condition_variables_Manager_initialization> <== ALWAYS TAKEN _POSIX_Key_Manager_initialization(); ffc09064: 48 00 55 9d bl ffc0e600 <_POSIX_Key_Manager_initialization> <== ALWAYS TAKEN _POSIX_Mutex_Manager_initialization(); ffc09068: 48 00 56 51 bl ffc0e6b8 <_POSIX_Mutex_Manager_initialization> <== ALWAYS TAKEN _POSIX_Message_queue_Manager_initialization(); ffc0906c: 48 00 55 d9 bl ffc0e644 <_POSIX_Message_queue_Manager_initialization> <== ALWAYS TAKEN _POSIX_Semaphore_Manager_initialization(); ffc09070: 48 00 5e 1d bl ffc0ee8c <_POSIX_Semaphore_Manager_initialization> <== ALWAYS TAKEN _POSIX_Timer_Manager_initialization(); ffc09074: 48 00 5d d5 bl ffc0ee48 <_POSIX_Timer_Manager_initialization> <== ALWAYS TAKEN _POSIX_Barrier_Manager_initialization(); ffc09078: 48 00 56 c5 bl ffc0e73c <_POSIX_Barrier_Manager_initialization> <== ALWAYS TAKEN _POSIX_RWLock_Manager_initialization(); ffc0907c: 48 00 57 05 bl ffc0e780 <_POSIX_RWLock_Manager_initialization> <== ALWAYS TAKEN _POSIX_Spinlock_Manager_initialization(); ffc09080: 48 00 59 61 bl ffc0e9e0 <_POSIX_Spinlock_Manager_initialization> <== ALWAYS TAKEN } ffc09084: 80 01 00 0c lwz r0,12(r1) ffc09088: 38 21 00 08 addi r1,r1,8 ffc0908c: 7c 08 03 a6 mtlr r0 ffc09090: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b724 <_POSIX_Absolute_timeout_to_ticks>: */ POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks( const struct timespec *abstime, Watchdog_Interval *ticks_out ) { ffc0b724: 94 21 ff d8 stwu r1,-40(r1) ffc0b728: 7c 08 02 a6 mflr r0 ffc0b72c: 90 01 00 2c stw r0,44(r1) /* * Make sure there is always a value returned. */ *ticks_out = 0; ffc0b730: 38 00 00 00 li r0,0 ffc0b734: 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 ) { ffc0b738: 93 a1 00 1c stw r29,28(r1) ffc0b73c: 7c 7d 1b 78 mr r29,r3 ffc0b740: 93 e1 00 24 stw r31,36(r1) ffc0b744: 7c 9f 23 78 mr r31,r4 ffc0b748: 93 81 00 18 stw r28,24(r1) ffc0b74c: 93 c1 00 20 stw r30,32(r1) *ticks_out = 0; /* * Is the absolute time even valid? */ if ( !_Timespec_Is_valid(abstime) ) ffc0b750: 48 00 51 d5 bl ffc10924 <_Timespec_Is_valid> <== ALWAYS TAKEN ffc0b754: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b758: 38 60 00 00 li r3,0 ffc0b75c: 40 9e 00 24 bne- cr7,ffc0b780 <_POSIX_Absolute_timeout_to_ticks+0x5c> /* * This is the case we were expecting and it took this long to * get here. */ return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE; } ffc0b760: 80 01 00 2c lwz r0,44(r1) ffc0b764: 83 81 00 18 lwz r28,24(r1) ffc0b768: 7c 08 03 a6 mtlr r0 ffc0b76c: 83 a1 00 1c lwz r29,28(r1) ffc0b770: 83 c1 00 20 lwz r30,32(r1) ffc0b774: 83 e1 00 24 lwz r31,36(r1) ffc0b778: 38 21 00 28 addi r1,r1,40 ffc0b77c: 4e 80 00 20 blr <== ALWAYS TAKEN return POSIX_ABSOLUTE_TIMEOUT_INVALID; /* * Is the absolute time in the past? */ _TOD_Get( ¤t_time ); ffc0b780: 3b 81 00 08 addi r28,r1,8 ffc0b784: 7f 83 e3 78 mr r3,r28 ffc0b788: 48 00 27 25 bl ffc0deac <_TOD_Get> <== ALWAYS TAKEN if ( _Timespec_Less_than( abstime, ¤t_time ) ) ffc0b78c: 7f a3 eb 78 mr r3,r29 ffc0b790: 7f 84 e3 78 mr r4,r28 ffc0b794: 48 00 51 cd bl ffc10960 <_Timespec_Less_than> <== ALWAYS TAKEN ffc0b798: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b79c: 38 60 00 01 li r3,1 ffc0b7a0: 40 be ff c0 bne- cr7,ffc0b760 <_POSIX_Absolute_timeout_to_ticks+0x3c> return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST; /* * How long until the requested absolute time? */ _Timespec_Subtract( ¤t_time, abstime, &difference ); ffc0b7a4: 3b c1 00 10 addi r30,r1,16 ffc0b7a8: 7f a4 eb 78 mr r4,r29 ffc0b7ac: 7f 83 e3 78 mr r3,r28 ffc0b7b0: 7f c5 f3 78 mr r5,r30 ffc0b7b4: 48 00 51 e9 bl ffc1099c <_Timespec_Subtract> <== ALWAYS TAKEN /* * Internally the SuperCore uses ticks, so convert to them. */ *ticks_out = _Timespec_To_ticks( &difference ); ffc0b7b8: 7f c3 f3 78 mr r3,r30 ffc0b7bc: 48 00 52 35 bl ffc109f0 <_Timespec_To_ticks> <== ALWAYS TAKEN /* * This is the case we were expecting and it took this long to * get here. */ return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE; } ffc0b7c0: 83 81 00 18 lwz r28,24(r1) /* * If the difference was 0, then the future is now. It is so bright * we better wear shades. */ if ( !*ticks_out ) ffc0b7c4: 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 ); ffc0b7c8: 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 ) ffc0b7cc: 54 00 d9 7e rlwinm r0,r0,27,5,31 ffc0b7d0: 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; } ffc0b7d4: 80 01 00 2c lwz r0,44(r1) ffc0b7d8: 83 a1 00 1c lwz r29,28(r1) ffc0b7dc: 7c 08 03 a6 mtlr r0 ffc0b7e0: 83 c1 00 20 lwz r30,32(r1) ffc0b7e4: 83 e1 00 24 lwz r31,36(r1) ffc0b7e8: 38 21 00 28 addi r1,r1,40 ffc0b7ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e73c <_POSIX_Barrier_Manager_initialization>: * @brief _POSIX_Barrier_Manager_initialization */ void _POSIX_Barrier_Manager_initialization(void) { _Objects_Initialize_information( ffc0e73c: 3d 20 00 00 lis r9,0 /** * @brief _POSIX_Barrier_Manager_initialization */ void _POSIX_Barrier_Manager_initialization(void) { ffc0e740: 94 21 ff f8 stwu r1,-8(r1) ffc0e744: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e748: 3c 60 00 00 lis r3,0 ffc0e74c: 80 c9 28 64 lwz r6,10340(r9) ffc0e750: 38 63 2f f8 addi r3,r3,12280 <== ALWAYS TAKEN ffc0e754: 38 80 00 03 li r4,3 /** * @brief _POSIX_Barrier_Manager_initialization */ void _POSIX_Barrier_Manager_initialization(void) { ffc0e758: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0e75c: 38 a0 00 0a li r5,10 ffc0e760: 38 e0 00 5c li r7,92 ffc0e764: 39 00 00 01 li r8,1 ffc0e768: 39 20 00 ff li r9,255 ffc0e76c: 4b ff bd 79 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0e770: 80 01 00 0c lwz r0,12(r1) ffc0e774: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc0e778: 7c 08 03 a6 mtlr r0 ffc0e77c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10420 <_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]; } ffc10420: 3d 20 ff c2 lis r9,-62 ffc10424: 39 29 19 bc addi r9,r9,6588 int _POSIX_Barrier_Translate_core_barrier_return_code( CORE_barrier_Status the_barrier_status ) { ffc10428: 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]; } ffc1042c: 7c 69 18 2e lwzx r3,r9,r3 ffc10430: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09870 <_POSIX_Condition_variables_Get>: POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( pthread_cond_t *cond, Objects_Locations *location ) { ffc09870: 94 21 ff e8 stwu r1,-24(r1) ffc09874: 7c 08 02 a6 mflr r0 ffc09878: 7c 85 23 78 mr r5,r4 ffc0987c: 93 e1 00 14 stw r31,20(r1) int status; if ( !cond ) { ffc09880: 7c 7f 1b 79 mr. r31,r3 POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( pthread_cond_t *cond, Objects_Locations *location ) { ffc09884: 90 01 00 1c stw r0,28(r1) int status; if ( !cond ) { ffc09888: 41 82 00 60 beq- ffc098e8 <_POSIX_Condition_variables_Get+0x78> *location = OBJECTS_ERROR; return (POSIX_Condition_variables_Control *) 0; } if ( *cond == PTHREAD_COND_INITIALIZER ) { ffc0988c: 80 9f 00 00 lwz r4,0(r31) ffc09890: 2f 84 ff ff cmpwi cr7,r4,-1 ffc09894: 41 9e 00 24 beq- cr7,ffc098b8 <_POSIX_Condition_variables_Get+0x48> } /* * Now call Objects_Get() */ return (POSIX_Condition_variables_Control *)_Objects_Get( ffc09898: 3c 60 00 00 lis r3,0 ffc0989c: 38 63 30 90 addi r3,r3,12432 ffc098a0: 48 00 39 69 bl ffc0d208 <_Objects_Get> <== ALWAYS TAKEN &_POSIX_Condition_variables_Information, (Objects_Id) *cond, location ); } ffc098a4: 80 01 00 1c lwz r0,28(r1) ffc098a8: 83 e1 00 14 lwz r31,20(r1) ffc098ac: 38 21 00 18 addi r1,r1,24 ffc098b0: 7c 08 03 a6 mtlr r0 ffc098b4: 4e 80 00 20 blr <== ALWAYS TAKEN if ( *cond == PTHREAD_COND_INITIALIZER ) { /* * Do an "auto-create" here. */ status = pthread_cond_init( cond, 0 ); ffc098b8: 38 80 00 00 li r4,0 ffc098bc: 90 a1 00 08 stw r5,8(r1) ffc098c0: 48 00 00 35 bl ffc098f4 <== ALWAYS TAKEN if ( status ) { ffc098c4: 2f 83 00 00 cmpwi cr7,r3,0 ffc098c8: 80 a1 00 08 lwz r5,8(r1) ffc098cc: 40 9e 00 0c bne- cr7,ffc098d8 <_POSIX_Condition_variables_Get+0x68> ffc098d0: 80 9f 00 00 lwz r4,0(r31) ffc098d4: 4b ff ff c4 b ffc09898 <_POSIX_Condition_variables_Get+0x28> <== ALWAYS TAKEN *location = OBJECTS_ERROR; ffc098d8: 38 00 00 01 li r0,1 ffc098dc: 90 05 00 00 stw r0,0(r5) ffc098e0: 38 60 00 00 li r3,0 return (POSIX_Condition_variables_Control *) 0; ffc098e4: 4b ff ff c0 b ffc098a4 <_POSIX_Condition_variables_Get+0x34> <== ALWAYS TAKEN ) { int status; if ( !cond ) { *location = OBJECTS_ERROR; ffc098e8: 38 00 00 01 li r0,1 ffc098ec: 90 04 00 00 stw r0,0(r4) return (POSIX_Condition_variables_Control *) 0; ffc098f0: 4b ff ff b4 b ffc098a4 <_POSIX_Condition_variables_Get+0x34> <== ALWAYS TAKEN ffc0e5bc <_POSIX_Condition_variables_Manager_initialization>: * Output parameters: NONE */ void _POSIX_Condition_variables_Manager_initialization(void) { _Objects_Initialize_information( ffc0e5bc: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _POSIX_Condition_variables_Manager_initialization(void) { ffc0e5c0: 94 21 ff f8 stwu r1,-8(r1) ffc0e5c4: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e5c8: 3c 60 00 00 lis r3,0 ffc0e5cc: 80 c9 28 48 lwz r6,10312(r9) ffc0e5d0: 38 63 30 90 addi r3,r3,12432 ffc0e5d4: 38 80 00 03 li r4,3 * * Output parameters: NONE */ void _POSIX_Condition_variables_Manager_initialization(void) { ffc0e5d8: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0e5dc: 38 a0 00 08 li r5,8 ffc0e5e0: 38 e0 00 58 li r7,88 ffc0e5e4: 39 00 00 01 li r8,1 ffc0e5e8: 39 20 00 ff li r9,255 ffc0e5ec: 4b ff be f9 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0e5f0: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0e5f4: 38 21 00 08 addi r1,r1,8 ffc0e5f8: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e5fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09a20 <_POSIX_Condition_variables_Signal_support>: int _POSIX_Condition_variables_Signal_support( pthread_cond_t *cond, bool is_broadcast ) { ffc09a20: 94 21 ff d8 stwu r1,-40(r1) ffc09a24: 7d 80 00 26 mfcr r12 ffc09a28: 7c 08 02 a6 mflr r0 ffc09a2c: 93 e1 00 24 stw r31,36(r1) ffc09a30: 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 ); ffc09a34: 38 81 00 08 addi r4,r1,8 int _POSIX_Condition_variables_Signal_support( pthread_cond_t *cond, bool is_broadcast ) { ffc09a38: 90 01 00 2c stw r0,44(r1) ffc09a3c: 2e 1f 00 00 cmpwi cr4,r31,0 ffc09a40: 93 c1 00 20 stw r30,32(r1) ffc09a44: 91 81 00 1c stw r12,28(r1) register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; Thread_Control *the_thread; the_cond = _POSIX_Condition_variables_Get( cond, &location ); ffc09a48: 4b ff fe 29 bl ffc09870 <_POSIX_Condition_variables_Get> <== ALWAYS TAKEN ffc09a4c: 7c 7e 1b 78 mr r30,r3 switch ( location ) { ffc09a50: 80 01 00 08 lwz r0,8(r1) case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); ffc09a54: 3b e3 00 18 addi r31,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 ) { ffc09a58: 38 60 00 16 li r3,22 ffc09a5c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09a60: 41 9e 00 30 beq- cr7,ffc09a90 <_POSIX_Condition_variables_Signal_support+0x70> case OBJECTS_ERROR: break; } return EINVAL; } ffc09a64: 80 01 00 2c lwz r0,44(r1) ffc09a68: 81 81 00 1c lwz r12,28(r1) ffc09a6c: 7c 08 03 a6 mtlr r0 ffc09a70: 83 c1 00 20 lwz r30,32(r1) ffc09a74: 83 e1 00 24 lwz r31,36(r1) ffc09a78: 7d 80 81 20 mtcrf 8,r12 ffc09a7c: 38 21 00 28 addi r1,r1,40 ffc09a80: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); if ( !the_thread ) the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; ffc09a84: 90 7e 00 14 stw r3,20(r30) } while ( is_broadcast && the_thread ); ffc09a88: 41 92 00 1c beq- cr4,ffc09aa4 <_POSIX_Condition_variables_Signal_support+0x84> ffc09a8c: 41 82 00 18 beq- ffc09aa4 <_POSIX_Condition_variables_Signal_support+0x84> the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { case OBJECTS_LOCAL: do { the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue ); ffc09a90: 7f e3 fb 78 mr r3,r31 ffc09a94: 48 00 47 dd bl ffc0e270 <_Thread_queue_Dequeue> <== ALWAYS TAKEN if ( !the_thread ) ffc09a98: 2c 03 00 00 cmpwi r3,0 ffc09a9c: 41 a2 ff e8 beq- ffc09a84 <_POSIX_Condition_variables_Signal_support+0x64> the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; } while ( is_broadcast && the_thread ); ffc09aa0: 40 92 ff ec bne+ cr4,ffc09a8c <_POSIX_Condition_variables_Signal_support+0x6c> _Thread_Enable_dispatch(); ffc09aa4: 48 00 43 31 bl ffc0ddd4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc09aa8: 80 01 00 2c lwz r0,44(r1) ffc09aac: 81 81 00 1c lwz r12,28(r1) 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 ); _Thread_Enable_dispatch(); ffc09ab0: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc09ab4: 7c 08 03 a6 mtlr r0 ffc09ab8: 83 c1 00 20 lwz r30,32(r1) ffc09abc: 83 e1 00 24 lwz r31,36(r1) ffc09ac0: 7d 80 81 20 mtcrf 8,r12 ffc09ac4: 38 21 00 28 addi r1,r1,40 ffc09ac8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09b5c <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { ffc09b5c: 94 21 ff d0 stwu r1,-48(r1) ffc09b60: 7c 08 02 a6 mflr r0 ffc09b64: 93 c1 00 28 stw r30,40(r1) register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { ffc09b68: 3b c1 00 08 addi r30,r1,8 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { ffc09b6c: 93 e1 00 2c stw r31,44(r1) ffc09b70: 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 ) ) { ffc09b74: 7f c4 f3 78 mr r4,r30 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { ffc09b78: 93 a1 00 24 stw r29,36(r1) ffc09b7c: 7c 7d 1b 78 mr r29,r3 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { ffc09b80: 7f e3 fb 78 mr r3,r31 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { ffc09b84: 93 61 00 1c stw r27,28(r1) ffc09b88: 7c db 33 78 mr r27,r6 ffc09b8c: 93 81 00 20 stw r28,32(r1) ffc09b90: 7c bc 2b 78 mr r28,r5 ffc09b94: 90 01 00 34 stw r0,52(r1) ffc09b98: 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 ) ) { ffc09b9c: 48 00 02 a9 bl ffc09e44 <_POSIX_Mutex_Get> <== ALWAYS TAKEN ffc09ba0: 2f 83 00 00 cmpwi cr7,r3,0 ffc09ba4: 41 9e 00 30 beq- cr7,ffc09bd4 <_POSIX_Condition_variables_Wait_support+0x78> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc09ba8: 3d 20 00 00 lis r9,0 ffc09bac: 81 69 27 c8 lwz r11,10184(r9) return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); ffc09bb0: 7f c4 f3 78 mr r4,r30 ffc09bb4: 7f a3 eb 78 mr r3,r29 ffc09bb8: 38 0b ff ff addi r0,r11,-1 ffc09bbc: 90 09 27 c8 stw r0,10184(r9) ffc09bc0: 4b ff fc b1 bl ffc09870 <_POSIX_Condition_variables_Get> <== ALWAYS TAKEN ffc09bc4: 7c 7a 1b 78 mr r26,r3 switch ( location ) { ffc09bc8: 80 01 00 08 lwz r0,8(r1) ffc09bcc: 2f 80 00 00 cmpwi cr7,r0,0 ffc09bd0: 41 9e 00 34 beq- cr7,ffc09c04 <_POSIX_Condition_variables_Wait_support+0xa8> /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); if ( mutex_status ) ffc09bd4: 3b c0 00 16 li r30,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09bd8: 80 01 00 34 lwz r0,52(r1) ffc09bdc: 7f c3 f3 78 mr r3,r30 ffc09be0: 83 41 00 18 lwz r26,24(r1) ffc09be4: 7c 08 03 a6 mtlr r0 ffc09be8: 83 61 00 1c lwz r27,28(r1) ffc09bec: 83 81 00 20 lwz r28,32(r1) ffc09bf0: 83 a1 00 24 lwz r29,36(r1) ffc09bf4: 83 c1 00 28 lwz r30,40(r1) ffc09bf8: 83 e1 00 2c lwz r31,44(r1) ffc09bfc: 38 21 00 30 addi r1,r1,48 ffc09c00: 4e 80 00 20 blr <== ALWAYS TAKEN the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { ffc09c04: 80 03 00 14 lwz r0,20(r3) ffc09c08: 2f 80 00 00 cmpwi cr7,r0,0 ffc09c0c: 41 9e 00 44 beq- cr7,ffc09c50 <_POSIX_Condition_variables_Wait_support+0xf4> ffc09c10: 81 3f 00 00 lwz r9,0(r31) ffc09c14: 7f 80 48 00 cmpw cr7,r0,r9 ffc09c18: 41 9e 00 38 beq- cr7,ffc09c50 <_POSIX_Condition_variables_Wait_support+0xf4> _Thread_Enable_dispatch(); ffc09c1c: 48 00 41 b9 bl ffc0ddd4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc09c20: 80 01 00 34 lwz r0,52(r1) switch ( location ) { case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { _Thread_Enable_dispatch(); ffc09c24: 3b c0 00 16 li r30,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09c28: 83 41 00 18 lwz r26,24(r1) ffc09c2c: 7c 08 03 a6 mtlr r0 ffc09c30: 7f c3 f3 78 mr r3,r30 ffc09c34: 83 61 00 1c lwz r27,28(r1) ffc09c38: 83 81 00 20 lwz r28,32(r1) ffc09c3c: 83 a1 00 24 lwz r29,36(r1) ffc09c40: 83 c1 00 28 lwz r30,40(r1) ffc09c44: 83 e1 00 2c lwz r31,44(r1) ffc09c48: 38 21 00 30 addi r1,r1,48 ffc09c4c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { _Thread_Enable_dispatch(); return EINVAL; } (void) pthread_mutex_unlock( mutex ); ffc09c50: 7f e3 fb 78 mr r3,r31 ffc09c54: 48 00 04 b9 bl ffc0a10c <== ALWAYS TAKEN _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { ffc09c58: 2f 9b 00 00 cmpwi cr7,r27,0 ffc09c5c: 41 9e 00 48 beq- cr7,ffc09ca4 <_POSIX_Condition_variables_Wait_support+0x148> status = _Thread_Executing->Wait.return_code; if ( status && status != ETIMEDOUT ) return status; } else { _Thread_Enable_dispatch(); ffc09c60: 48 00 41 75 bl ffc0ddd4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09c64: 3b c0 00 74 li r30,116 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); ffc09c68: 7f e3 fb 78 mr r3,r31 ffc09c6c: 48 00 03 e9 bl ffc0a054 <== ALWAYS TAKEN if ( mutex_status ) ffc09c70: 2f 83 00 00 cmpwi cr7,r3,0 ffc09c74: 40 be ff 60 bne- cr7,ffc09bd4 <_POSIX_Condition_variables_Wait_support+0x78> case OBJECTS_ERROR: break; } return EINVAL; } ffc09c78: 80 01 00 34 lwz r0,52(r1) ffc09c7c: 7f c3 f3 78 mr r3,r30 ffc09c80: 83 41 00 18 lwz r26,24(r1) ffc09c84: 7c 08 03 a6 mtlr r0 ffc09c88: 83 61 00 1c lwz r27,28(r1) ffc09c8c: 83 81 00 20 lwz r28,32(r1) ffc09c90: 83 a1 00 24 lwz r29,36(r1) ffc09c94: 83 c1 00 28 lwz r30,40(r1) ffc09c98: 83 e1 00 2c lwz r31,44(r1) ffc09c9c: 38 21 00 30 addi r1,r1,48 ffc09ca0: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; ffc09ca4: 3f c0 00 00 lis r30,0 return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; ffc09ca8: 80 1f 00 00 lwz r0,0(r31) _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; ffc09cac: 81 3e 28 08 lwz r9,10248(r30) 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; ffc09cb0: 39 40 00 01 li r10,1 return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; ffc09cb4: 90 1a 00 14 stw r0,20(r26) _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; ffc09cb8: 38 1a 00 18 addi r0,r26,24 _Thread_Executing->Wait.id = *cond; _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); ffc09cbc: 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; ffc09cc0: 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 ); ffc09cc4: 7c 03 03 78 mr r3,r0 ffc09cc8: 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; ffc09ccc: 81 7d 00 00 lwz r11,0(r29) _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); ffc09cd0: 38 a5 e9 48 addi r5,r5,-5816 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; ffc09cd4: 90 09 00 44 stw r0,68(r9) _Thread_Executing->Wait.id = *cond; ffc09cd8: 91 69 00 20 stw r11,32(r9) ffc09cdc: 91 5a 00 48 stw r10,72(r26) _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); ffc09ce0: 48 00 47 71 bl ffc0e450 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc09ce4: 48 00 40 f1 bl ffc0ddd4 <_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; ffc09ce8: 81 3e 28 08 lwz r9,10248(r30) ffc09cec: 83 c9 00 34 lwz r30,52(r9) if ( status && status != ETIMEDOUT ) ffc09cf0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc09cf4: 41 9e ff 74 beq+ cr7,ffc09c68 <_POSIX_Condition_variables_Wait_support+0x10c> ffc09cf8: 2f 9e 00 74 cmpwi cr7,r30,116 ffc09cfc: 40 9e fe dc bne+ cr7,ffc09bd8 <_POSIX_Condition_variables_Wait_support+0x7c> <== NEVER TAKEN ffc09d00: 4b ff ff 68 b ffc09c68 <_POSIX_Condition_variables_Wait_support+0x10c> <== ALWAYS TAKEN ffc0e600 <_POSIX_Key_Manager_initialization>: * Output parameters: NONE */ void _POSIX_Key_Manager_initialization(void) { _Objects_Initialize_information( ffc0e600: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _POSIX_Key_Manager_initialization(void) { ffc0e604: 94 21 ff f8 stwu r1,-8(r1) ffc0e608: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e60c: 3c 60 00 00 lis r3,0 ffc0e610: 80 c9 28 4c lwz r6,10316(r9) ffc0e614: 38 63 30 50 addi r3,r3,12368 ffc0e618: 38 80 00 03 li r4,3 * * Output parameters: NONE */ void _POSIX_Key_Manager_initialization(void) { ffc0e61c: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0e620: 38 a0 00 02 li r5,2 <== ALWAYS TAKEN ffc0e624: 38 e0 00 28 li r7,40 <== ALWAYS TAKEN ffc0e628: 39 00 00 01 li r8,1 ffc0e62c: 39 20 00 ff li r9,255 ffc0e630: 4b ff be b5 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0e634: 80 01 00 0c lwz r0,12(r1) ffc0e638: 38 21 00 08 addi r1,r1,8 ffc0e63c: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e640: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1185c <_POSIX_Keys_Run_destructors>: */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc1185c: 94 21 ff d8 stwu r1,-40(r1) ffc11860: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc11864: 90 01 00 2c stw r0,44(r1) ffc11868: 93 81 00 18 stw r28,24(r1) ffc1186c: 93 a1 00 1c stw r29,28(r1) */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); ffc11870: 3f a0 00 00 lis r29,0 ffc11874: 3b bd 30 50 addi r29,r29,12368 uint32_t iterations; bool are_all_null; POSIX_Keys_Control *the_key; void *value; thread_index = _Objects_Get_index( thread->Object.id ); ffc11878: 83 83 00 08 lwz r28,8(r3) */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc1187c: 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 ]; ffc11880: 57 9a 56 fa rlwinm r26,r28,10,27,29 */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc11884: 93 61 00 14 stw r27,20(r1) <== ALWAYS TAKEN if ( !the_key ) continue; if ( !the_key->destructor ) continue; value = the_key->Values[ thread_api ][ thread_index ]; ffc11888: 3b 5a 00 10 addi r26,r26,16 ffc1188c: 57 9c 13 ba rlwinm r28,r28,2,14,29 */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) { ffc11890: 93 c1 00 20 stw r30,32(r1) ffc11894: 93 e1 00 24 stw r31,36(r1) ffc11898: a0 1d 00 10 lhz r0,16(r29) ffc1189c: 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 ]; ffc118a0: 3b 20 00 00 li r25,0 for ( ; ; ) { are_all_null = true; for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { ffc118a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc118a8: 41 9e 00 84 beq- cr7,ffc1192c <_POSIX_Keys_Run_destructors+0xd0> ffc118ac: 3b e0 00 01 li r31,1 ffc118b0: 3b 60 00 01 li r27,1 the_key = (POSIX_Keys_Control *) ffc118b4: 81 3d 00 1c lwz r9,28(r29) ffc118b8: 57 e0 10 3a rlwinm r0,r31,2,0,29 for ( ; ; ) { are_all_null = true; for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { ffc118bc: 3b ff 00 01 addi r31,r31,1 the_key = (POSIX_Keys_Control *) ffc118c0: 7d 29 00 2e lwzx r9,r9,r0 _POSIX_Keys_Information.local_table[ index ]; if ( !the_key ) ffc118c4: 2f 89 00 00 cmpwi cr7,r9,0 continue; if ( !the_key->destructor ) continue; value = the_key->Values[ thread_api ][ thread_index ]; ffc118c8: 7f c9 d2 14 add r30,r9,r26 for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { the_key = (POSIX_Keys_Control *) _POSIX_Keys_Information.local_table[ index ]; if ( !the_key ) ffc118cc: 41 9e 00 40 beq- cr7,ffc1190c <_POSIX_Keys_Run_destructors+0xb0> continue; if ( !the_key->destructor ) ffc118d0: 80 09 00 10 lwz r0,16(r9) ffc118d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc118d8: 41 9e 00 34 beq- cr7,ffc1190c <_POSIX_Keys_Run_destructors+0xb0> continue; value = the_key->Values[ thread_api ][ thread_index ]; ffc118dc: 81 3e 00 04 lwz r9,4(r30) ffc118e0: 7d 29 e0 2e lwzx r9,r9,r28 if ( value ) { ffc118e4: 2f 89 00 00 cmpwi cr7,r9,0 (*the_key->destructor)( value ); ffc118e8: 7d 23 4b 78 mr r3,r9 continue; if ( !the_key->destructor ) continue; value = the_key->Values[ thread_api ][ thread_index ]; if ( value ) { ffc118ec: 41 9e 00 20 beq- cr7,ffc1190c <_POSIX_Keys_Run_destructors+0xb0> (*the_key->destructor)( value ); ffc118f0: 7c 09 03 a6 mtctr r0 ffc118f4: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( the_key->Values[ thread_api ][ thread_index ] ) ffc118f8: 81 3e 00 04 lwz r9,4(r30) ffc118fc: 7c 09 e0 2e lwzx r0,r9,r28 ffc11900: 30 00 ff ff addic r0,r0,-1 ffc11904: 7c 00 01 10 subfe r0,r0,r0 ffc11908: 7f 7b 00 38 and r27,r27,r0 for ( ; ; ) { are_all_null = true; for ( index=1 ; index <= _POSIX_Keys_Information.maximum ; index++ ) { ffc1190c: a0 1d 00 10 lhz r0,16(r29) ffc11910: 7f 80 f8 40 cmplw cr7,r0,r31 ffc11914: 40 9c ff a0 bge+ cr7,ffc118b4 <_POSIX_Keys_Run_destructors+0x58> if ( the_key->Values[ thread_api ][ thread_index ] ) are_all_null = false; } } if ( are_all_null == true ) ffc11918: 2f 9b 00 00 cmpwi cr7,r27,0 ffc1191c: 40 9e 00 10 bne- cr7,ffc1192c <_POSIX_Keys_Run_destructors+0xd0> * 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 ) ffc11920: 2f 99 00 03 cmpwi cr7,r25,3 ffc11924: 3b 39 00 01 addi r25,r25,1 ffc11928: 40 9e ff 7c bne+ cr7,ffc118a4 <_POSIX_Keys_Run_destructors+0x48> return; } } ffc1192c: 80 01 00 2c lwz r0,44(r1) ffc11930: 83 21 00 0c lwz r25,12(r1) ffc11934: 7c 08 03 a6 mtlr r0 ffc11938: 83 41 00 10 lwz r26,16(r1) ffc1193c: 83 61 00 14 lwz r27,20(r1) ffc11940: 83 81 00 18 lwz r28,24(r1) ffc11944: 83 a1 00 1c lwz r29,28(r1) ffc11948: 83 c1 00 20 lwz r30,32(r1) ffc1194c: 83 e1 00 24 lwz r31,36(r1) ffc11950: 38 21 00 28 addi r1,r1,40 ffc11954: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16848 <_POSIX_Message_queue_Create_support>: const char *name_arg, int pshared, struct mq_attr *attr_ptr, POSIX_Message_queue_Control **message_queue ) { ffc16848: 94 21 ff c8 stwu r1,-56(r1) ffc1684c: 7c 08 02 a6 mflr r0 ffc16850: 93 a1 00 2c stw r29,44(r1) ffc16854: 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 ); ffc16858: 38 80 00 ff li r4,255 const char *name_arg, int pshared, struct mq_attr *attr_ptr, POSIX_Message_queue_Control **message_queue ) { ffc1685c: 90 01 00 3c stw r0,60(r1) <== ALWAYS TAKEN ffc16860: 93 01 00 18 stw r24,24(r1) ffc16864: 7c 78 1b 78 mr r24,r3 ffc16868: 93 21 00 1c stw r25,28(r1) ffc1686c: 93 81 00 28 stw r28,40(r1) ffc16870: 7c dc 33 78 mr r28,r6 ffc16874: 93 e1 00 34 stw r31,52(r1) ffc16878: 7c bf 2b 78 mr r31,r5 ffc1687c: 93 41 00 20 stw r26,32(r1) ffc16880: 93 61 00 24 stw r27,36(r1) ffc16884: 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 ); ffc16888: 48 00 6f 11 bl ffc1d798 <== ALWAYS TAKEN ffc1688c: 3d 20 00 00 lis r9,0 ffc16890: 81 69 29 f8 lwz r11,10744(r9) ffc16894: 7c 79 1b 78 mr r25,r3 ffc16898: 38 0b 00 01 addi r0,r11,1 ffc1689c: 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 ) { ffc168a0: 2f 9f 00 00 cmpwi cr7,r31,0 ffc168a4: 3b 40 00 0a li r26,10 ffc168a8: 3b 60 00 10 li r27,16 ffc168ac: 41 9e 00 3c beq- cr7,ffc168e8 <_POSIX_Message_queue_Create_support+0xa0> attr.mq_maxmsg = 10; attr.mq_msgsize = 16; } else { if ( attr_ptr->mq_maxmsg <= 0 ){ ffc168b0: 80 1f 00 04 lwz r0,4(r31) ffc168b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc168b8: 40 9d 01 20 ble- cr7,ffc169d8 <_POSIX_Message_queue_Create_support+0x190> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( attr_ptr->mq_msgsize <= 0 ){ ffc168bc: 81 3f 00 08 lwz r9,8(r31) ffc168c0: 2f 89 00 00 cmpwi cr7,r9,0 ffc168c4: 40 9d 01 14 ble- cr7,ffc169d8 <_POSIX_Message_queue_Create_support+0x190> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } attr = *attr_ptr; ffc168c8: 81 5f 00 0c lwz r10,12(r31) ffc168cc: 7c 1a 03 78 mr r26,r0 ffc168d0: 81 7f 00 00 lwz r11,0(r31) ffc168d4: 7d 3b 4b 78 mr r27,r9 ffc168d8: 91 41 00 14 stw r10,20(r1) ffc168dc: 91 61 00 08 stw r11,8(r1) ffc168e0: 90 01 00 0c stw r0,12(r1) ffc168e4: 91 21 00 10 stw r9,16(r1) */ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Allocate( void ) { return (POSIX_Message_queue_Control *) ffc168e8: 3f c0 00 00 lis r30,0 ffc168ec: 3b de 34 b8 addi r30,r30,13496 ffc168f0: 7f c3 f3 78 mr r3,r30 ffc168f4: 4b ff b4 51 bl ffc11d44 <_Objects_Allocate> <== ALWAYS TAKEN } the_mq = _POSIX_Message_queue_Allocate(); if ( !the_mq ) { ffc168f8: 7c 7f 1b 79 mr. r31,r3 ffc168fc: 41 82 01 18 beq- ffc16a14 <_POSIX_Message_queue_Create_support+0x1cc> rtems_set_errno_and_return_minus_one( ENFILE ); } the_mq->process_shared = pshared; the_mq->named = true; the_mq->open_count = 1; ffc16900: 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; ffc16904: 93 bf 00 10 stw r29,16(r31) the_mq->named = true; ffc16908: 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); ffc1690c: 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; ffc16910: 99 3f 00 14 stb r9,20(r31) /* * Make a copy of the user's string for name just in case it was * dynamically constructed. */ name = _Workspace_Allocate(n+1); ffc16914: 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; ffc16918: 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; ffc1691c: 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); ffc16920: 4b ff e2 71 bl ffc14b90 <_Workspace_Allocate> <== ALWAYS TAKEN if (!name) { ffc16924: 7c 7d 1b 79 mr. r29,r3 ffc16928: 41 82 00 c8 beq- ffc169f0 <_POSIX_Message_queue_Create_support+0x1a8> _POSIX_Message_queue_Free( the_mq ); _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENOMEM ); } strncpy( name, name_arg, n+1 ); ffc1692c: 7f 04 c3 78 mr r4,r24 ffc16930: 7f 25 cb 78 mr r5,r25 ffc16934: 48 00 6d 85 bl ffc1d6b8 <== 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; ffc16938: 38 00 00 00 li r0,0 ffc1693c: 90 1f 00 5c stw r0,92(r31) if ( !_CORE_message_queue_Initialize( ffc16940: 7f 45 d3 78 mr r5,r26 ffc16944: 7f 66 db 78 mr r6,r27 ffc16948: 38 7f 00 1c addi r3,r31,28 ffc1694c: 38 9f 00 5c addi r4,r31,92 ffc16950: 48 00 13 25 bl ffc17c74 <_CORE_message_queue_Initialize> <== ALWAYS TAKEN ffc16954: 2f 83 00 00 cmpwi cr7,r3,0 ffc16958: 41 9e 00 54 beq- cr7,ffc169ac <_POSIX_Message_queue_Create_support+0x164> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc1695c: a0 1f 00 0a lhz r0,10(r31) ffc16960: 81 3e 00 1c lwz r9,28(r30) ffc16964: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc16968: 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; ffc1696c: 93 bf 00 0c stw r29,12(r31) &_POSIX_Message_queue_Information, &the_mq->Object, name ); *message_queue = the_mq; ffc16970: 93 fc 00 00 stw r31,0(r28) _Thread_Enable_dispatch(); ffc16974: 4b ff c6 1d bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16978: 38 60 00 00 li r3,0 return 0; } ffc1697c: 80 01 00 3c lwz r0,60(r1) ffc16980: 83 01 00 18 lwz r24,24(r1) ffc16984: 7c 08 03 a6 mtlr r0 ffc16988: 83 21 00 1c lwz r25,28(r1) ffc1698c: 83 41 00 20 lwz r26,32(r1) ffc16990: 83 61 00 24 lwz r27,36(r1) ffc16994: 83 81 00 28 lwz r28,40(r1) ffc16998: 83 a1 00 2c lwz r29,44(r1) ffc1699c: 83 c1 00 30 lwz r30,48(r1) ffc169a0: 83 e1 00 34 lwz r31,52(r1) ffc169a4: 38 21 00 38 addi r1,r1,56 ffc169a8: 4e 80 00 20 blr <== 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 ); ffc169ac: 7f e4 fb 78 mr r4,r31 ffc169b0: 7f c3 f3 78 mr r3,r30 ffc169b4: 4b ff b7 b1 bl ffc12164 <_Objects_Free> <== ALWAYS TAKEN attr.mq_maxmsg, attr.mq_msgsize ) ) { _POSIX_Message_queue_Free( the_mq ); _Workspace_Free(name); ffc169b8: 7f a3 eb 78 mr r3,r29 ffc169bc: 4b ff e2 09 bl ffc14bc4 <_Workspace_Free> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc169c0: 4b ff c5 d1 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc169c4: 48 00 4c 0d bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc169c8: 38 00 00 1c li r0,28 ffc169cc: 90 03 00 00 stw r0,0(r3) ffc169d0: 38 60 ff ff li r3,-1 ffc169d4: 4b ff ff a8 b ffc1697c <_POSIX_Message_queue_Create_support+0x134> <== ALWAYS TAKEN _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( attr_ptr->mq_msgsize <= 0 ){ _Thread_Enable_dispatch(); ffc169d8: 4b ff c5 b9 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc169dc: 48 00 4b f5 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc169e0: 38 00 00 16 li r0,22 ffc169e4: 90 03 00 00 stw r0,0(r3) ffc169e8: 38 60 ff ff li r3,-1 ffc169ec: 4b ff ff 90 b ffc1697c <_POSIX_Message_queue_Create_support+0x134> <== ALWAYS TAKEN ffc169f0: 7f c3 f3 78 mr r3,r30 ffc169f4: 7f e4 fb 78 mr r4,r31 ffc169f8: 4b ff b7 6d bl ffc12164 <_Objects_Free> <== ALWAYS TAKEN * dynamically constructed. */ name = _Workspace_Allocate(n+1); if (!name) { _POSIX_Message_queue_Free( the_mq ); _Thread_Enable_dispatch(); ffc169fc: 4b ff c5 95 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); ffc16a00: 48 00 4b d1 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc16a04: 38 00 00 0c li r0,12 ffc16a08: 90 03 00 00 stw r0,0(r3) ffc16a0c: 38 60 ff ff li r3,-1 ffc16a10: 4b ff ff 6c b ffc1697c <_POSIX_Message_queue_Create_support+0x134> <== ALWAYS TAKEN attr = *attr_ptr; } the_mq = _POSIX_Message_queue_Allocate(); if ( !the_mq ) { _Thread_Enable_dispatch(); ffc16a14: 4b ff c5 7d bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENFILE ); ffc16a18: 48 00 4b b9 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc16a1c: 38 00 00 17 li r0,23 ffc16a20: 90 03 00 00 stw r0,0(r3) ffc16a24: 38 60 ff ff li r3,-1 ffc16a28: 4b ff ff 54 b ffc1697c <_POSIX_Message_queue_Create_support+0x134> <== ALWAYS TAKEN ffc0ddc8 <_POSIX_Message_queue_Delete>: */ void _POSIX_Message_queue_Delete( POSIX_Message_queue_Control *the_mq ) { ffc0ddc8: 94 21 ff f0 stwu r1,-16(r1) ffc0ddcc: 7c 08 02 a6 mflr r0 ffc0ddd0: 90 01 00 14 stw r0,20(r1) if ( !the_mq->linked && !the_mq->open_count ) { ffc0ddd4: 88 03 00 15 lbz r0,21(r3) */ void _POSIX_Message_queue_Delete( POSIX_Message_queue_Control *the_mq ) { ffc0ddd8: 93 e1 00 0c stw r31,12(r1) ffc0dddc: 7c 7f 1b 78 mr r31,r3 if ( !the_mq->linked && !the_mq->open_count ) { ffc0dde0: 2f 80 00 00 cmpwi cr7,r0,0 */ void _POSIX_Message_queue_Delete( POSIX_Message_queue_Control *the_mq ) { ffc0dde4: 93 c1 00 08 stw r30,8(r1) if ( !the_mq->linked && !the_mq->open_count ) { ffc0dde8: 40 9e 00 10 bne- cr7,ffc0ddf8 <_POSIX_Message_queue_Delete+0x30> ffc0ddec: 80 03 00 18 lwz r0,24(r3) ffc0ddf0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ddf4: 41 9e 00 1c beq- cr7,ffc0de10 <_POSIX_Message_queue_Delete+0x48> ); _POSIX_Message_queue_Free( the_mq ); } } ffc0ddf8: 80 01 00 14 lwz r0,20(r1) ffc0ddfc: 83 c1 00 08 lwz r30,8(r1) ffc0de00: 7c 08 03 a6 mtlr r0 ffc0de04: 83 e1 00 0c lwz r31,12(r1) ffc0de08: 38 21 00 10 addi r1,r1,16 ffc0de0c: 4e 80 00 20 blr <== ALWAYS TAKEN ); _Workspace_Free( (void *)the_object->name.name_p ); } #endif _Objects_Close( &_POSIX_Message_queue_Information, the_object ); ffc0de10: 3f c0 00 00 lis r30,0 ffc0de14: 3b de 34 b8 addi r30,r30,13496 ffc0de18: 7f c3 f3 78 mr r3,r30 ffc0de1c: 7f e4 fb 78 mr r4,r31 ffc0de20: 48 00 3f ed bl ffc11e0c <_Objects_Close> <== ALWAYS TAKEN _CORE_message_queue_Close( ffc0de24: 38 7f 00 1c addi r3,r31,28 ffc0de28: 38 80 00 00 li r4,0 ffc0de2c: 38 a0 00 05 li r5,5 ffc0de30: 48 00 2f d1 bl ffc10e00 <_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 ); ffc0de34: 7f c3 f3 78 mr r3,r30 ffc0de38: 7f e4 fb 78 mr r4,r31 ffc0de3c: 48 00 43 29 bl ffc12164 <_Objects_Free> <== ALWAYS TAKEN ); _POSIX_Message_queue_Free( the_mq ); } } ffc0de40: 80 01 00 14 lwz r0,20(r1) ffc0de44: 83 c1 00 08 lwz r30,8(r1) ffc0de48: 7c 08 03 a6 mtlr r0 ffc0de4c: 83 e1 00 0c lwz r31,12(r1) ffc0de50: 38 21 00 10 addi r1,r1,16 ffc0de54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e644 <_POSIX_Message_queue_Manager_initialization>: * * Output parameters: NONE */ void _POSIX_Message_queue_Manager_initialization(void) { ffc0e644: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0e648: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e64c: 3c 60 00 00 lis r3,0 * * Output parameters: NONE */ void _POSIX_Message_queue_Manager_initialization(void) { ffc0e650: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0e654: 38 63 2f 78 addi r3,r3,12152 ffc0e658: 38 80 00 03 li r4,3 * * Output parameters: NONE */ void _POSIX_Message_queue_Manager_initialization(void) { ffc0e65c: 93 e1 00 0c stw r31,12(r1) _Objects_Initialize_information( ffc0e660: 3f e0 00 00 lis r31,0 ffc0e664: 3b ff 28 40 addi r31,r31,10304 ffc0e668: 80 df 00 18 lwz r6,24(r31) ffc0e66c: 38 a0 00 05 li r5,5 ffc0e670: 38 e0 00 a4 li r7,164 ffc0e674: 39 00 00 01 li r8,1 <== ALWAYS TAKEN ffc0e678: 39 20 00 ff li r9,255 ffc0e67c: 4b ff be 69 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); _Objects_Initialize_information( ffc0e680: 80 df 00 1c lwz r6,28(r31) ffc0e684: 3c 60 00 00 lis r3,0 ffc0e688: 38 63 31 04 addi r3,r3,12548 ffc0e68c: 38 80 00 03 li r4,3 ffc0e690: 38 a0 00 04 li r5,4 ffc0e694: 38 e0 00 18 li r7,24 ffc0e698: 39 00 00 01 li r8,1 ffc0e69c: 39 20 00 ff li r9,255 ffc0e6a0: 4b ff be 45 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0e6a4: 80 01 00 14 lwz r0,20(r1) ffc0e6a8: 83 e1 00 0c lwz r31,12(r1) ffc0e6ac: 38 21 00 10 addi r1,r1,16 ffc0e6b0: 7c 08 03 a6 mtlr r0 ffc0e6b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16a2c <_POSIX_Message_queue_Name_to_id>: */ int _POSIX_Message_queue_Name_to_id( const char *name, Objects_Id *id ) { ffc16a2c: 94 21 ff e0 stwu r1,-32(r1) ffc16a30: 7c 08 02 a6 mflr r0 ffc16a34: 93 c1 00 18 stw r30,24(r1) Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) ffc16a38: 7c 7e 1b 79 mr. r30,r3 */ int _POSIX_Message_queue_Name_to_id( const char *name, Objects_Id *id ) { ffc16a3c: 93 e1 00 1c stw r31,28(r1) ffc16a40: 7c 9f 23 78 mr r31,r4 ffc16a44: 90 01 00 24 stw r0,36(r1) Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) ffc16a48: 41 82 00 10 beq- ffc16a58 <_POSIX_Message_queue_Name_to_id+0x2c> return EINVAL; if ( !name[0] ) ffc16a4c: 88 1e 00 00 lbz r0,0(r30) ffc16a50: 2f 80 00 00 cmpwi cr7,r0,0 ffc16a54: 40 9e 00 20 bne- cr7,ffc16a74 <_POSIX_Message_queue_Name_to_id+0x48> name, &the_id ); *id = the_id; if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc16a58: 38 60 00 16 li r3,22 return 0; return ENOENT; } ffc16a5c: 80 01 00 24 lwz r0,36(r1) ffc16a60: 83 c1 00 18 lwz r30,24(r1) ffc16a64: 7c 08 03 a6 mtlr r0 ffc16a68: 83 e1 00 1c lwz r31,28(r1) ffc16a6c: 38 21 00 20 addi r1,r1,32 ffc16a70: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; if ( !name[0] ) return EINVAL; if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) ffc16a74: 38 80 00 ff li r4,255 ffc16a78: 48 00 6d 21 bl ffc1d798 <== ALWAYS TAKEN ffc16a7c: 2b 83 00 fe cmplwi cr7,r3,254 ffc16a80: 38 60 00 5b li r3,91 ffc16a84: 41 9d ff d8 bgt+ cr7,ffc16a5c <_POSIX_Message_queue_Name_to_id+0x30> return ENAMETOOLONG; status = _Objects_Name_to_id_string( ffc16a88: 3c 60 00 00 lis r3,0 ffc16a8c: 7f c4 f3 78 mr r4,r30 ffc16a90: 38 a1 00 08 addi r5,r1,8 ffc16a94: 38 63 34 b8 addi r3,r3,13496 ffc16a98: 48 00 19 85 bl ffc1841c <_Objects_Name_to_id_string> <== ALWAYS TAKEN if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) return 0; return ENOENT; } ffc16a9c: 83 c1 00 18 lwz r30,24(r1) name, &the_id ); *id = the_id; if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc16aa0: 31 23 ff ff addic r9,r3,-1 ffc16aa4: 7c 09 19 10 subfe r0,r9,r3 ffc16aa8: 7c 03 03 78 mr r3,r0 status = _Objects_Name_to_id_string( &_POSIX_Message_queue_Information, name, &the_id ); *id = the_id; ffc16aac: 80 01 00 08 lwz r0,8(r1) if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc16ab0: 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; ffc16ab4: 90 1f 00 00 stw r0,0(r31) if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) return 0; return ENOENT; } ffc16ab8: 80 01 00 24 lwz r0,36(r1) ffc16abc: 83 e1 00 1c lwz r31,28(r1) ffc16ac0: 38 21 00 20 addi r1,r1,32 ffc16ac4: 7c 08 03 a6 mtlr r0 ffc16ac8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dfe8 <_POSIX_Message_queue_Notify_handler>: */ void _POSIX_Message_queue_Notify_handler( void *user_data ) { ffc0dfe8: 94 21 ff f0 stwu r1,-16(r1) ffc0dfec: 7c 08 02 a6 mflr r0 ffc0dff0: 93 e1 00 0c stw r31,12(r1) ffc0dff4: 7c 7f 1b 78 mr r31,r3 ffc0dff8: 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 ); ffc0dffc: 48 00 82 79 bl ffc16274 <== ALWAYS TAKEN ffc0e000: 80 9f 00 94 lwz r4,148(r31) ffc0e004: 48 00 88 21 bl ffc16824 <== ALWAYS TAKEN ffc0e008: 38 00 00 00 li r0,0 the_message_queue->notify_argument = the_argument; ffc0e00c: 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; ffc0e010: 90 1f 00 7c stw r0,124(r31) _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); } ffc0e014: 80 01 00 14 lwz r0,20(r1) ffc0e018: 83 e1 00 0c lwz r31,12(r1) ffc0e01c: 38 21 00 10 addi r1,r1,16 ffc0e020: 7c 08 03 a6 mtlr r0 ffc0e024: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e2e0 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) { ffc0e2e0: 94 21 ff d0 stwu r1,-48(r1) ffc0e2e4: 7c 08 02 a6 mflr r0 ffc0e2e8: 93 e1 00 2c stw r31,44(r1) ffc0e2ec: 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( ffc0e2f0: 3c 60 00 00 lis r3,0 ffc0e2f4: 93 81 00 20 stw r28,32(r1) ffc0e2f8: 38 63 36 44 addi r3,r3,13892 ffc0e2fc: 7c 9c 23 78 mr r28,r4 ffc0e300: 93 c1 00 28 stw r30,40(r1) ffc0e304: 7f e4 fb 78 mr r4,r31 ffc0e308: 7c be 2b 78 mr r30,r5 ffc0e30c: 38 a1 00 08 addi r5,r1,8 ffc0e310: 90 01 00 34 stw r0,52(r1) ffc0e314: 93 41 00 18 stw r26,24(r1) ffc0e318: 7c fa 3b 78 mr r26,r7 ffc0e31c: 93 61 00 1c stw r27,28(r1) ffc0e320: 7d 1b 43 78 mr r27,r8 ffc0e324: 93 a1 00 24 stw r29,36(r1) ffc0e328: 7c dd 33 78 mr r29,r6 ffc0e32c: 48 00 40 19 bl ffc12344 <_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 ) { ffc0e330: 80 01 00 08 lwz r0,8(r1) ffc0e334: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e338: 41 9e 00 3c beq- cr7,ffc0e374 <_POSIX_Message_queue_Receive_support+0x94> #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0e33c: 48 00 d2 95 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e340: 38 00 00 09 li r0,9 ffc0e344: 90 03 00 00 stw r0,0(r3) ffc0e348: 38 60 ff ff li r3,-1 } ffc0e34c: 80 01 00 34 lwz r0,52(r1) ffc0e350: 83 41 00 18 lwz r26,24(r1) ffc0e354: 7c 08 03 a6 mtlr r0 ffc0e358: 83 61 00 1c lwz r27,28(r1) ffc0e35c: 83 81 00 20 lwz r28,32(r1) ffc0e360: 83 a1 00 24 lwz r29,36(r1) ffc0e364: 83 c1 00 28 lwz r30,40(r1) ffc0e368: 83 e1 00 2c lwz r31,44(r1) ffc0e36c: 38 21 00 30 addi r1,r1,48 ffc0e370: 4e 80 00 20 blr <== ALWAYS TAKEN the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { ffc0e374: 80 03 00 14 lwz r0,20(r3) ffc0e378: 54 09 07 be clrlwi r9,r0,30 ffc0e37c: 2f 89 00 01 cmpwi cr7,r9,1 ffc0e380: 41 9e 00 dc beq- cr7,ffc0e45c <_POSIX_Message_queue_Receive_support+0x17c> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EBADF ); } the_mq = the_mq_fd->Queue; ffc0e384: 80 63 00 10 lwz r3,16(r3) if ( msg_len < the_mq->Message_queue.maximum_message_size ) { ffc0e388: 81 23 00 68 lwz r9,104(r3) ffc0e38c: 7f 89 f0 40 cmplw cr7,r9,r30 ffc0e390: 41 9d 00 94 bgt- cr7,ffc0e424 <_POSIX_Message_queue_Receive_support+0x144> length_out = -1; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) ffc0e394: 2f 9a 00 00 cmpwi cr7,r26,0 ffc0e398: 38 e0 00 00 li r7,0 ffc0e39c: 40 9e 00 7c bne- cr7,ffc0e418 <_POSIX_Message_queue_Receive_support+0x138> <== ALWAYS TAKEN /* * Now if something goes wrong, we return a "length" of -1 * to indicate an error. */ length_out = -1; ffc0e3a0: 38 00 ff ff li r0,-1 ffc0e3a4: 7c 26 0b 78 mr r6,r1 ffc0e3a8: 94 06 00 0c stwu r0,12(r6) do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( ffc0e3ac: 7f e4 fb 78 mr r4,r31 ffc0e3b0: 38 63 00 1c addi r3,r3,28 ffc0e3b4: 7f 85 e3 78 mr r5,r28 ffc0e3b8: 7f 68 db 78 mr r8,r27 timeout ); _Thread_Enable_dispatch(); *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); ffc0e3bc: 3f e0 00 00 lis r31,0 do_wait = wait; /* * Now perform the actual message receive */ _CORE_message_queue_Seize( ffc0e3c0: 48 00 2a e5 bl ffc10ea4 <_CORE_message_queue_Seize> <== ALWAYS TAKEN &length_out, do_wait, timeout ); _Thread_Enable_dispatch(); ffc0e3c4: 48 00 4b cd bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); ffc0e3c8: 81 3f 2a 38 lwz r9,10808(r31) if ( !_Thread_Executing->Wait.return_code ) ffc0e3cc: 80 09 00 34 lwz r0,52(r9) do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = ffc0e3d0: 81 29 00 24 lwz r9,36(r9) _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) ffc0e3d4: 2f 80 00 00 cmpwi cr7,r0,0 do_wait, timeout ); _Thread_Enable_dispatch(); *msg_prio = ffc0e3d8: 7d 2b fe 70 srawi r11,r9,31 ffc0e3dc: 7d 60 4a 78 xor r0,r11,r9 ffc0e3e0: 7c 0b 00 50 subf r0,r11,r0 ffc0e3e4: 90 1d 00 00 stw r0,0(r29) _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) ffc0e3e8: 40 9e 00 54 bne- cr7,ffc0e43c <_POSIX_Message_queue_Receive_support+0x15c> case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } ffc0e3ec: 80 01 00 34 lwz r0,52(r1) _Thread_Enable_dispatch(); *msg_prio = _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) return length_out; ffc0e3f0: 80 61 00 0c lwz r3,12(r1) case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } ffc0e3f4: 7c 08 03 a6 mtlr r0 ffc0e3f8: 83 41 00 18 lwz r26,24(r1) ffc0e3fc: 83 61 00 1c lwz r27,28(r1) ffc0e400: 83 81 00 20 lwz r28,32(r1) ffc0e404: 83 a1 00 24 lwz r29,36(r1) ffc0e408: 83 c1 00 28 lwz r30,40(r1) ffc0e40c: 83 e1 00 2c lwz r31,44(r1) ffc0e410: 38 21 00 30 addi r1,r1,48 ffc0e414: 4e 80 00 20 blr <== ALWAYS TAKEN /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; ffc0e418: 68 07 40 00 xori r7,r0,16384 ffc0e41c: 54 e7 97 fe rlwinm r7,r7,18,31,31 ffc0e420: 4b ff ff 80 b ffc0e3a0 <_POSIX_Message_queue_Receive_support+0xc0> <== ALWAYS TAKEN } the_mq = the_mq_fd->Queue; if ( msg_len < the_mq->Message_queue.maximum_message_size ) { _Thread_Enable_dispatch(); ffc0e424: 48 00 4b 6d bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EMSGSIZE ); ffc0e428: 48 00 d1 a9 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e42c: 38 00 00 7a li r0,122 ffc0e430: 90 03 00 00 stw r0,0(r3) ffc0e434: 38 60 ff ff li r3,-1 ffc0e438: 4b ff ff 14 b ffc0e34c <_POSIX_Message_queue_Receive_support+0x6c> <== ALWAYS TAKEN _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count); if ( !_Thread_Executing->Wait.return_code ) return length_out; rtems_set_errno_and_return_minus_one( ffc0e43c: 48 00 d1 95 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e440: 81 3f 2a 38 lwz r9,10808(r31) ffc0e444: 7c 7e 1b 78 mr r30,r3 ffc0e448: 80 69 00 34 lwz r3,52(r9) ffc0e44c: 48 00 03 6d bl ffc0e7b8 <_POSIX_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN ffc0e450: 90 7e 00 00 stw r3,0(r30) ffc0e454: 38 60 ff ff li r3,-1 ffc0e458: 4b ff fe f4 b ffc0e34c <_POSIX_Message_queue_Receive_support+0x6c> <== ALWAYS TAKEN the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) { _Thread_Enable_dispatch(); ffc0e45c: 48 00 4b 35 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); ffc0e460: 48 00 d1 71 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e464: 38 00 00 09 li r0,9 ffc0e468: 90 03 00 00 stw r0,0(r3) ffc0e46c: 38 60 ff ff li r3,-1 ffc0e470: 4b ff fe dc b ffc0e34c <_POSIX_Message_queue_Receive_support+0x6c> <== ALWAYS TAKEN ffc0e49c <_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 ) ffc0e49c: 2b 86 00 20 cmplwi cr7,r6,32 size_t msg_len, uint32_t msg_prio, bool wait, Watchdog_Interval timeout ) { ffc0e4a0: 94 21 ff d0 stwu r1,-48(r1) ffc0e4a4: 7c 08 02 a6 mflr r0 ffc0e4a8: 93 41 00 18 stw r26,24(r1) ffc0e4ac: 7c fa 3b 78 mr r26,r7 ffc0e4b0: 93 61 00 1c stw r27,28(r1) ffc0e4b4: 7c 9b 23 78 mr r27,r4 ffc0e4b8: 93 81 00 20 stw r28,32(r1) ffc0e4bc: 7c bc 2b 78 mr r28,r5 ffc0e4c0: 93 a1 00 24 stw r29,36(r1) ffc0e4c4: 7c 7d 1b 78 mr r29,r3 ffc0e4c8: 93 c1 00 28 stw r30,40(r1) ffc0e4cc: 7d 1e 43 78 mr r30,r8 ffc0e4d0: 93 e1 00 2c stw r31,44(r1) ffc0e4d4: 7c df 33 78 mr r31,r6 ffc0e4d8: 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 ) ffc0e4dc: 41 9d 01 00 bgt- cr7,ffc0e5dc <_POSIX_Message_queue_Send_support+0x140> ffc0e4e0: 3c 60 00 00 lis r3,0 ffc0e4e4: 38 63 36 44 addi r3,r3,13892 ffc0e4e8: 7f a4 eb 78 mr r4,r29 ffc0e4ec: 38 a1 00 08 addi r5,r1,8 ffc0e4f0: 48 00 3e 55 bl ffc12344 <_Objects_Get> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { ffc0e4f4: 80 01 00 08 lwz r0,8(r1) ffc0e4f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e4fc: 40 9e 00 cc bne- cr7,ffc0e5c8 <_POSIX_Message_queue_Send_support+0x12c> case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) { ffc0e500: 80 03 00 14 lwz r0,20(r3) ffc0e504: 70 09 00 03 andi. r9,r0,3 ffc0e508: 41 82 00 e8 beq- ffc0e5f0 <_POSIX_Message_queue_Send_support+0x154> the_mq = the_mq_fd->Queue; /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) ffc0e50c: 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; ffc0e510: 81 63 00 10 lwz r11,16(r3) /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) ffc0e514: 39 20 00 00 li r9,0 ffc0e518: 40 9e 00 68 bne- cr7,ffc0e580 <_POSIX_Message_queue_Send_support+0xe4> do_wait = wait; /* * Now perform the actual message receive */ msg_status = _CORE_message_queue_Submit( ffc0e51c: 7d 1f 00 d0 neg r8,r31 ffc0e520: 7f 64 db 78 mr r4,r27 ffc0e524: 7f 85 e3 78 mr r5,r28 ffc0e528: 7f a6 eb 78 mr r6,r29 ffc0e52c: 7f ca f3 78 mr r10,r30 ffc0e530: 38 6b 00 1c addi r3,r11,28 ffc0e534: 38 e0 00 00 li r7,0 ffc0e538: 48 00 2a f9 bl ffc11030 <_CORE_message_queue_Submit> <== ALWAYS TAKEN ffc0e53c: 7c 7f 1b 78 mr r31,r3 _POSIX_Message_queue_Priority_to_core( msg_prio ), do_wait, timeout /* no timeout */ ); _Thread_Enable_dispatch(); ffc0e540: 48 00 4a 51 bl ffc12f90 <_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 ) ffc0e544: 2f 9f 00 07 cmpwi cr7,r31,7 ffc0e548: 41 9e 00 70 beq- cr7,ffc0e5b8 <_POSIX_Message_queue_Send_support+0x11c> <== NEVER TAKEN msg_status = _Thread_Executing->Wait.return_code; if ( !msg_status ) ffc0e54c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0e550: 38 60 00 00 li r3,0 ffc0e554: 40 9e 00 b4 bne- cr7,ffc0e608 <_POSIX_Message_queue_Send_support+0x16c> case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } ffc0e558: 80 01 00 34 lwz r0,52(r1) ffc0e55c: 83 41 00 18 lwz r26,24(r1) ffc0e560: 7c 08 03 a6 mtlr r0 ffc0e564: 83 61 00 1c lwz r27,28(r1) ffc0e568: 83 81 00 20 lwz r28,32(r1) ffc0e56c: 83 a1 00 24 lwz r29,36(r1) ffc0e570: 83 c1 00 28 lwz r30,40(r1) ffc0e574: 83 e1 00 2c lwz r31,44(r1) ffc0e578: 38 21 00 30 addi r1,r1,48 ffc0e57c: 4e 80 00 20 blr <== ALWAYS TAKEN /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; ffc0e580: 68 09 40 00 xori r9,r0,16384 do_wait = wait; /* * Now perform the actual message receive */ msg_status = _CORE_message_queue_Submit( ffc0e584: 7d 1f 00 d0 neg r8,r31 /* * A timed receive with a bad time will do a poll regardless. */ if ( wait ) do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true; ffc0e588: 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( ffc0e58c: 7f 64 db 78 mr r4,r27 ffc0e590: 7f 85 e3 78 mr r5,r28 ffc0e594: 7f a6 eb 78 mr r6,r29 ffc0e598: 7f ca f3 78 mr r10,r30 ffc0e59c: 38 6b 00 1c addi r3,r11,28 ffc0e5a0: 38 e0 00 00 li r7,0 ffc0e5a4: 48 00 2a 8d bl ffc11030 <_CORE_message_queue_Submit> <== ALWAYS TAKEN ffc0e5a8: 7c 7f 1b 78 mr r31,r3 _POSIX_Message_queue_Priority_to_core( msg_prio ), do_wait, timeout /* no timeout */ ); _Thread_Enable_dispatch(); ffc0e5ac: 48 00 49 e5 bl ffc12f90 <_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 ) ffc0e5b0: 2f 9f 00 07 cmpwi cr7,r31,7 ffc0e5b4: 40 9e ff 98 bne+ cr7,ffc0e54c <_POSIX_Message_queue_Send_support+0xb0> msg_status = _Thread_Executing->Wait.return_code; ffc0e5b8: 3d 20 00 00 lis r9,0 ffc0e5bc: 81 29 2a 38 lwz r9,10808(r9) ffc0e5c0: 83 e9 00 34 lwz r31,52(r9) ffc0e5c4: 4b ff ff 88 b ffc0e54c <_POSIX_Message_queue_Send_support+0xb0> <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0e5c8: 48 00 d0 09 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e5cc: 38 00 00 09 li r0,9 ffc0e5d0: 90 03 00 00 stw r0,0(r3) ffc0e5d4: 38 60 ff ff li r3,-1 ffc0e5d8: 4b ff ff 80 b ffc0e558 <_POSIX_Message_queue_Send_support+0xbc> <== ALWAYS TAKEN * Validate the priority. * XXX - Do not validate msg_prio is not less than 0. */ if ( msg_prio > MQ_PRIO_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0e5dc: 48 00 cf f5 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e5e0: 38 00 00 16 li r0,22 ffc0e5e4: 90 03 00 00 stw r0,0(r3) ffc0e5e8: 38 60 ff ff li r3,-1 ffc0e5ec: 4b ff ff 6c b ffc0e558 <_POSIX_Message_queue_Send_support+0xbc> <== ALWAYS TAKEN the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) { _Thread_Enable_dispatch(); ffc0e5f0: 48 00 49 a1 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); ffc0e5f4: 48 00 cf dd bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e5f8: 38 00 00 09 li r0,9 ffc0e5fc: 90 03 00 00 stw r0,0(r3) ffc0e600: 38 60 ff ff li r3,-1 ffc0e604: 4b ff ff 54 b ffc0e558 <_POSIX_Message_queue_Send_support+0xbc> <== ALWAYS TAKEN msg_status = _Thread_Executing->Wait.return_code; if ( !msg_status ) return msg_status; rtems_set_errno_and_return_minus_one( ffc0e608: 48 00 cf c9 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e60c: 7c 7e 1b 78 mr r30,r3 ffc0e610: 7f e3 fb 78 mr r3,r31 ffc0e614: 48 00 01 a5 bl ffc0e7b8 <_POSIX_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN ffc0e618: 90 7e 00 00 stw r3,0(r30) ffc0e61c: 38 60 ff ff li r3,-1 ffc0e620: 4b ff ff 38 b ffc0e558 <_POSIX_Message_queue_Send_support+0xbc> <== ALWAYS TAKEN ffc0e7b8 <_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]; } ffc0e7b8: 3d 20 ff c3 lis r9,-61 ffc0e7bc: 39 29 9c f0 addi r9,r9,-25360 int _POSIX_Message_queue_Translate_core_message_queue_return_code( uint32_t the_message_queue_status ) { ffc0e7c0: 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]; } ffc0e7c4: 7c 69 18 2e lwzx r3,r9,r3 ffc0e7c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b210 <_POSIX_Mutex_Get>: POSIX_Mutex_Control *_POSIX_Mutex_Get ( pthread_mutex_t *mutex, Objects_Locations *location ) { ffc0b210: 94 21 ff e8 stwu r1,-24(r1) ffc0b214: 7c 08 02 a6 mflr r0 ffc0b218: 7c 85 23 78 mr r5,r4 ffc0b21c: 93 e1 00 14 stw r31,20(r1) ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0b220: 7c 7f 1b 79 mr. r31,r3 POSIX_Mutex_Control *_POSIX_Mutex_Get ( pthread_mutex_t *mutex, Objects_Locations *location ) { ffc0b224: 90 01 00 1c stw r0,28(r1) ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0b228: 41 82 00 60 beq- ffc0b288 <_POSIX_Mutex_Get+0x78> ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); ffc0b22c: 80 9f 00 00 lwz r4,0(r31) ffc0b230: 2f 84 ff ff cmpwi cr7,r4,-1 ffc0b234: 41 9e 00 24 beq- cr7,ffc0b258 <_POSIX_Mutex_Get+0x48> return (POSIX_Mutex_Control *) ffc0b238: 3c 60 00 00 lis r3,0 ffc0b23c: 38 63 30 18 addi r3,r3,12312 ffc0b240: 48 00 39 21 bl ffc0eb60 <_Objects_Get> <== ALWAYS TAKEN _Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location ); } ffc0b244: 80 01 00 1c lwz r0,28(r1) ffc0b248: 83 e1 00 14 lwz r31,20(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 Objects_Locations *location ) { ___POSIX_Mutex_Get_support_error_check( mutex, location ); ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); ffc0b258: 38 80 00 00 li r4,0 ffc0b25c: 90 a1 00 08 stw r5,8(r1) ffc0b260: 48 00 00 a9 bl ffc0b308 <== ALWAYS TAKEN ffc0b264: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b268: 80 a1 00 08 lwz r5,8(r1) ffc0b26c: 40 9e 00 0c bne- cr7,ffc0b278 <_POSIX_Mutex_Get+0x68> ffc0b270: 80 9f 00 00 lwz r4,0(r31) ffc0b274: 4b ff ff c4 b ffc0b238 <_POSIX_Mutex_Get+0x28> <== ALWAYS TAKEN ffc0b278: 38 00 00 01 li r0,1 ffc0b27c: 90 05 00 00 stw r0,0(r5) ffc0b280: 38 60 00 00 li r3,0 ffc0b284: 4b ff ff c0 b ffc0b244 <_POSIX_Mutex_Get+0x34> <== ALWAYS TAKEN POSIX_Mutex_Control *_POSIX_Mutex_Get ( pthread_mutex_t *mutex, Objects_Locations *location ) { ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0b288: 38 00 00 01 li r0,1 ffc0b28c: 90 04 00 00 stw r0,0(r4) ffc0b290: 4b ff ff b4 b ffc0b244 <_POSIX_Mutex_Get+0x34> <== ALWAYS TAKEN ffc0b17c <_POSIX_Mutex_Get_interrupt_disable>: POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable ( pthread_mutex_t *mutex, Objects_Locations *location, ISR_Level *level ) { ffc0b17c: 94 21 ff e8 stwu r1,-24(r1) ffc0b180: 7c 08 02 a6 mflr r0 ffc0b184: 7c a6 2b 78 mr r6,r5 ffc0b188: 93 e1 00 14 stw r31,20(r1) ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0b18c: 7c 7f 1b 79 mr. r31,r3 POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable ( pthread_mutex_t *mutex, Objects_Locations *location, ISR_Level *level ) { ffc0b190: 93 c1 00 10 stw r30,16(r1) ffc0b194: 7c 9e 23 78 mr r30,r4 ffc0b198: 90 01 00 1c stw r0,28(r1) ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0b19c: 41 82 00 68 beq- ffc0b204 <_POSIX_Mutex_Get_interrupt_disable+0x88> ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); ffc0b1a0: 80 9f 00 00 lwz r4,0(r31) ffc0b1a4: 2f 84 ff ff cmpwi cr7,r4,-1 ffc0b1a8: 41 9e 00 2c beq- cr7,ffc0b1d4 <_POSIX_Mutex_Get_interrupt_disable+0x58> return (POSIX_Mutex_Control *) _Objects_Get_isr_disable( ffc0b1ac: 3c 60 00 00 lis r3,0 ffc0b1b0: 38 63 30 18 addi r3,r3,12312 ffc0b1b4: 7f c5 f3 78 mr r5,r30 ffc0b1b8: 48 00 39 39 bl ffc0eaf0 <_Objects_Get_isr_disable> <== ALWAYS TAKEN &_POSIX_Mutex_Information, (Objects_Id) *mutex, location, level ); } ffc0b1bc: 80 01 00 1c lwz r0,28(r1) ffc0b1c0: 83 c1 00 10 lwz r30,16(r1) ffc0b1c4: 7c 08 03 a6 mtlr r0 ffc0b1c8: 83 e1 00 14 lwz r31,20(r1) ffc0b1cc: 38 21 00 18 addi r1,r1,24 ffc0b1d0: 4e 80 00 20 blr <== ALWAYS TAKEN ISR_Level *level ) { ___POSIX_Mutex_Get_support_error_check( mutex, location ); ___POSIX_Mutex_Get_support_auto_initialization( mutex, location ); ffc0b1d4: 38 80 00 00 li r4,0 ffc0b1d8: 90 a1 00 08 stw r5,8(r1) ffc0b1dc: 48 00 01 2d bl ffc0b308 <== ALWAYS TAKEN ffc0b1e0: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b1e4: 80 c1 00 08 lwz r6,8(r1) ffc0b1e8: 40 9e 00 0c bne- cr7,ffc0b1f4 <_POSIX_Mutex_Get_interrupt_disable+0x78> ffc0b1ec: 80 9f 00 00 lwz r4,0(r31) ffc0b1f0: 4b ff ff bc b ffc0b1ac <_POSIX_Mutex_Get_interrupt_disable+0x30> <== ALWAYS TAKEN ffc0b1f4: 38 00 00 01 li r0,1 ffc0b1f8: 90 1e 00 00 stw r0,0(r30) ffc0b1fc: 38 60 00 00 li r3,0 ffc0b200: 4b ff ff bc b ffc0b1bc <_POSIX_Mutex_Get_interrupt_disable+0x40> <== ALWAYS TAKEN pthread_mutex_t *mutex, Objects_Locations *location, ISR_Level *level ) { ___POSIX_Mutex_Get_support_error_check( mutex, location ); ffc0b204: 38 00 00 01 li r0,1 ffc0b208: 90 04 00 00 stw r0,0(r4) ffc0b20c: 4b ff ff b0 b ffc0b1bc <_POSIX_Mutex_Get_interrupt_disable+0x40> <== ALWAYS TAKEN ffc0b4bc <_POSIX_Mutex_Lock_support>: int _POSIX_Mutex_Lock_support( pthread_mutex_t *mutex, bool blocking, Watchdog_Interval timeout ) { ffc0b4bc: 94 21 ff e0 stwu r1,-32(r1) ffc0b4c0: 7c 08 02 a6 mflr r0 ffc0b4c4: 93 c1 00 18 stw r30,24(r1) ffc0b4c8: 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 ); ffc0b4cc: 38 81 00 08 addi r4,r1,8 int _POSIX_Mutex_Lock_support( pthread_mutex_t *mutex, bool blocking, Watchdog_Interval timeout ) { ffc0b4d0: 93 e1 00 1c stw r31,28(r1) ffc0b4d4: 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 ); ffc0b4d8: 38 a1 00 0c addi r5,r1,12 int _POSIX_Mutex_Lock_support( pthread_mutex_t *mutex, bool blocking, Watchdog_Interval timeout ) { ffc0b4dc: 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 ); ffc0b4e0: 4b ff fc 9d bl ffc0b17c <_POSIX_Mutex_Get_interrupt_disable> <== ALWAYS TAKEN ffc0b4e4: 7c 69 1b 78 mr r9,r3 switch ( location ) { ffc0b4e8: 80 01 00 08 lwz r0,8(r1) ffc0b4ec: 38 60 00 16 li r3,22 ffc0b4f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b4f4: 40 9e 00 2c bne- cr7,ffc0b520 <_POSIX_Mutex_Lock_support+0x64> case OBJECTS_LOCAL: _CORE_mutex_Seize( ffc0b4f8: 80 89 00 08 lwz r4,8(r9) ffc0b4fc: 38 69 00 14 addi r3,r9,20 ffc0b500: 80 e1 00 0c lwz r7,12(r1) ffc0b504: 7f c5 f3 78 mr r5,r30 ffc0b508: 7f e6 fb 78 mr r6,r31 ffc0b50c: 48 00 26 19 bl ffc0db24 <_CORE_mutex_Seize> <== ALWAYS TAKEN the_mutex->Object.id, blocking, timeout, level ); return _POSIX_Mutex_Translate_core_mutex_return_code( ffc0b510: 3d 20 00 00 lis r9,0 ffc0b514: 81 29 28 50 lwz r9,10320(r9) ffc0b518: 80 69 00 34 lwz r3,52(r9) ffc0b51c: 48 00 01 75 bl ffc0b690 <_POSIX_Mutex_Translate_core_mutex_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0b520: 80 01 00 24 lwz r0,36(r1) ffc0b524: 83 c1 00 18 lwz r30,24(r1) ffc0b528: 7c 08 03 a6 mtlr r0 ffc0b52c: 83 e1 00 1c lwz r31,28(r1) ffc0b530: 38 21 00 20 addi r1,r1,32 ffc0b534: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e6b8 <_POSIX_Mutex_Manager_initialization>: * * Output parameters: NONE */ void _POSIX_Mutex_Manager_initialization(void) { ffc0e6b8: 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; ffc0e6bc: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _POSIX_Mutex_Manager_initialization(void) { ffc0e6c0: 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; ffc0e6c4: 3d 40 00 00 lis r10,0 default_attr->process_shared = PTHREAD_PROCESS_PRIVATE; default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY; ffc0e6c8: 89 89 26 a4 lbz r12,9892(r9) <== ALWAYS TAKEN #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0e6cc: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * Output parameters: NONE */ void _POSIX_Mutex_Manager_initialization(void) { ffc0e6d0: 93 e1 00 0c stw r31,12(r1) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0e6d4: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN /* * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; ffc0e6d8: 3b e0 00 01 li r31,1 #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0e6dc: 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; ffc0e6e0: 39 6a 30 38 addi r11,r10,12344 <== ALWAYS TAKEN * * Output parameters: NONE */ void _POSIX_Mutex_Manager_initialization(void) { ffc0e6e4: 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; ffc0e6e8: 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; ffc0e6ec: 38 00 00 00 li r0,0 /* * Since the maximum priority is run-time configured, this * structure cannot be initialized statically. */ default_attr->is_initialized = true; ffc0e6f0: 93 ea 30 38 stw r31,12344(r10) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0e6f4: 38 63 2f b8 addi r3,r3,12216 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; ffc0e6f8: 39 40 00 03 li r10,3 #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0e6fc: 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; ffc0e700: 90 0b 00 14 stw r0,20(r11) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0e704: 38 a0 00 06 li r5,6 ffc0e708: 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; ffc0e70c: 90 0b 00 04 stw r0,4(r11) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0e710: 39 00 00 01 li r8,1 ffc0e714: 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; ffc0e718: 90 0b 00 0c stw r0,12(r11) default_attr->recursive = false; #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) default_attr->type = PTHREAD_MUTEX_DEFAULT; ffc0e71c: 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; ffc0e720: 91 8b 00 08 stw r12,8(r11) #endif /* * Initialize the POSIX mutex object class information structure. */ _Objects_Initialize_information( ffc0e724: 4b ff bd c1 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0e728: 80 01 00 14 lwz r0,20(r1) ffc0e72c: 83 e1 00 0c lwz r31,12(r1) ffc0e730: 38 21 00 10 addi r1,r1,16 ffc0e734: 7c 08 03 a6 mtlr r0 ffc0e738: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b690 <_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]; } ffc0b690: 3d 20 ff c2 lis r9,-62 ffc0b694: 39 29 60 38 addi r9,r9,24632 int _POSIX_Mutex_Translate_core_mutex_return_code( CORE_mutex_Status the_mutex_status ) { ffc0b698: 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]; } ffc0b69c: 7c 69 18 2e lwzx r3,r9,r3 ffc0b6a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc104f8 <_POSIX_Priority_Is_valid>: bool _POSIX_Priority_Is_valid( int priority ) { return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) && ffc104f8: 7c 60 1b 79 mr. r0,r3 ffc104fc: 38 60 00 00 li r3,0 ffc10500: 4c 81 00 20 blelr #endif #include #include bool _POSIX_Priority_Is_valid( ffc10504: 3d 20 00 00 lis r9,0 ffc10508: 89 29 26 cc lbz r9,9932(r9) ffc1050c: 7f 80 48 00 cmpw cr7,r0,r9 ffc10510: 7c 60 00 26 mfcr r3 ffc10514: 54 63 ef fe rlwinm r3,r3,29,31,31 ) { return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) && (priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY)); } ffc10518: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e780 <_POSIX_RWLock_Manager_initialization>: * @brief _POSIX_RWLock_Manager_initialization */ void _POSIX_RWLock_Manager_initialization(void) { _Objects_Initialize_information( ffc0e780: 3d 20 00 00 lis r9,0 /** * @brief _POSIX_RWLock_Manager_initialization */ void _POSIX_RWLock_Manager_initialization(void) { ffc0e784: 94 21 ff f8 stwu r1,-8(r1) ffc0e788: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN _Objects_Initialize_information( ffc0e78c: 3c 60 00 00 lis r3,0 ffc0e790: 80 c9 28 68 lwz r6,10344(r9) ffc0e794: 38 63 2e 38 addi r3,r3,11832 ffc0e798: 38 80 00 03 li r4,3 /** * @brief _POSIX_RWLock_Manager_initialization */ void _POSIX_RWLock_Manager_initialization(void) { ffc0e79c: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0e7a0: 38 a0 00 0b li r5,11 ffc0e7a4: 38 e0 00 5c li r7,92 ffc0e7a8: 39 00 00 01 li r8,1 ffc0e7ac: 39 20 00 ff li r9,255 ffc0e7b0: 4b ff bd 35 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0e7b4: 80 01 00 0c lwz r0,12(r1) ffc0e7b8: 38 21 00 08 addi r1,r1,8 ffc0e7bc: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e7c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a064 <_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]; } ffc0a064: 3d 20 ff c2 lis r9,-62 ffc0a068: 39 29 34 b0 addi r9,r9,13488 int _POSIX_RWLock_Translate_core_RWLock_return_code( CORE_RWLock_Status the_rwlock_status ) { ffc0a06c: 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]; } ffc0a070: 7c 69 18 2e lwzx r3,r9,r3 ffc0a074: 4e 80 00 20 blr <== ALWAYS TAKEN ffc132c0 <_POSIX_Semaphore_Create_support>: const char *name, int pshared, unsigned int value, POSIX_Semaphore_Control **the_sem ) { ffc132c0: 7d 80 00 26 mfcr r12 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) ffc132c4: 2f 84 00 00 cmpwi cr7,r4,0 const char *name, int pshared, unsigned int value, POSIX_Semaphore_Control **the_sem ) { ffc132c8: 94 21 ff e0 stwu r1,-32(r1) ffc132cc: 7c 08 02 a6 mflr r0 ffc132d0: 93 61 00 0c stw r27,12(r1) ffc132d4: 7c bb 2b 78 mr r27,r5 ffc132d8: 93 81 00 10 stw r28,16(r1) ffc132dc: 7c dc 33 78 mr r28,r6 ffc132e0: 93 c1 00 18 stw r30,24(r1) ffc132e4: 7c 7e 1b 78 mr r30,r3 ffc132e8: 90 01 00 24 stw r0,36(r1) ffc132ec: 93 a1 00 14 stw r29,20(r1) ffc132f0: 93 e1 00 1c stw r31,28(r1) ffc132f4: 91 81 00 08 stw r12,8(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) ffc132f8: 40 9e 00 e0 bne- cr7,ffc133d8 <_POSIX_Semaphore_Create_support+0x118> rtems_set_errno_and_return_minus_one( ENOSYS ); if ( name ) { ffc132fc: 2e 03 00 00 cmpwi cr4,r3,0 ffc13300: 41 92 00 14 beq- cr4,ffc13314 <_POSIX_Semaphore_Create_support+0x54> if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) ffc13304: 38 80 00 ff li r4,255 ffc13308: 48 00 65 2d bl ffc19834 <== ALWAYS TAKEN ffc1330c: 2b 83 00 fe cmplwi cr7,r3,254 ffc13310: 41 9d 00 dc bgt- cr7,ffc133ec <_POSIX_Semaphore_Create_support+0x12c> ffc13314: 3d 20 00 00 lis r9,0 ffc13318: 81 69 27 90 lwz r11,10128(r9) ffc1331c: 38 0b 00 01 addi r0,r11,1 ffc13320: 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 *) ffc13324: 3f a0 00 00 lis r29,0 ffc13328: 3b bd 30 d8 addi r29,r29,12504 ffc1332c: 7f a3 eb 78 mr r3,r29 ffc13330: 4b ff aa 4d bl ffc0dd7c <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_semaphore = _POSIX_Semaphore_Allocate(); if ( !the_semaphore ) { ffc13334: 7c 7f 1b 79 mr. r31,r3 ffc13338: 41 82 00 c8 beq- ffc13400 <_POSIX_Semaphore_Create_support+0x140> _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENOSPC ); } the_semaphore->process_shared = pshared; ffc1333c: 38 00 00 00 li r0,0 ffc13340: 90 1f 00 10 stw r0,16(r31) if ( name ) { ffc13344: 41 92 00 84 beq- cr4,ffc133c8 <_POSIX_Semaphore_Create_support+0x108> the_semaphore->named = true; the_semaphore->open_count = 1; ffc13348: 38 00 00 01 li r0,1 } the_semaphore->process_shared = pshared; if ( name ) { the_semaphore->named = true; ffc1334c: 39 20 00 01 li r9,1 the_semaphore->open_count = 1; the_semaphore->linked = true; ffc13350: 98 1f 00 15 stb r0,21(r31) } the_semaphore->process_shared = pshared; if ( name ) { the_semaphore->named = true; ffc13354: 99 3f 00 14 stb r9,20(r31) the_semaphore->open_count = 1; ffc13358: 90 1f 00 18 stw r0,24(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; ffc1335c: 38 00 00 00 li r0,0 ffc13360: 90 1f 00 60 stw r0,96(r31) /* * This effectively disables limit checking. */ the_sem_attr->maximum_count = 0xFFFFFFFF; ffc13364: 38 00 ff ff li r0,-1 _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value ); ffc13368: 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; ffc1336c: 90 1f 00 5c stw r0,92(r31) _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value ); ffc13370: 7f 65 db 78 mr r5,r27 ffc13374: 38 9f 00 5c addi r4,r31,92 ffc13378: 4b ff a3 fd bl ffc0d774 <_CORE_semaphore_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc1337c: a0 1f 00 0a lhz r0,10(r31) ffc13380: 81 3d 00 1c lwz r9,28(r29) ffc13384: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc13388: 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; ffc1338c: 93 df 00 0c stw r30,12(r31) &_POSIX_Semaphore_Information, &the_semaphore->Object, name_p ); *the_sem = the_semaphore; ffc13390: 93 fc 00 00 stw r31,0(r28) _Thread_Enable_dispatch(); ffc13394: 4b ff bc 35 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc13398: 38 60 00 00 li r3,0 return 0; } ffc1339c: 80 01 00 24 lwz r0,36(r1) ffc133a0: 81 81 00 08 lwz r12,8(r1) ffc133a4: 7c 08 03 a6 mtlr r0 ffc133a8: 83 61 00 0c lwz r27,12(r1) ffc133ac: 83 81 00 10 lwz r28,16(r1) ffc133b0: 7d 80 81 20 mtcrf 8,r12 ffc133b4: 83 a1 00 14 lwz r29,20(r1) ffc133b8: 83 c1 00 18 lwz r30,24(r1) ffc133bc: 83 e1 00 1c lwz r31,28(r1) ffc133c0: 38 21 00 20 addi r1,r1,32 ffc133c4: 4e 80 00 20 blr <== ALWAYS TAKEN if ( name ) { the_semaphore->named = true; the_semaphore->open_count = 1; the_semaphore->linked = true; } else { the_semaphore->named = false; ffc133c8: 9b df 00 14 stb r30,20(r31) the_semaphore->open_count = 0; ffc133cc: 93 df 00 18 stw r30,24(r31) the_semaphore->linked = false; ffc133d0: 9b df 00 15 stb r30,21(r31) ffc133d4: 4b ff ff 88 b ffc1335c <_POSIX_Semaphore_Create_support+0x9c> <== ALWAYS TAKEN CORE_semaphore_Attributes *the_sem_attr; char *name_p = (char *)name; /* Sharing semaphores among processes is not currently supported */ if (pshared != 0) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc133d8: 48 00 4b 29 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc133dc: 38 00 00 58 li r0,88 ffc133e0: 90 03 00 00 stw r0,0(r3) ffc133e4: 38 60 ff ff li r3,-1 ffc133e8: 4b ff ff b4 b ffc1339c <_POSIX_Semaphore_Create_support+0xdc> <== ALWAYS TAKEN if ( name ) { if ( strnlen( name, NAME_MAX ) >= NAME_MAX ) rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); ffc133ec: 48 00 4b 15 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc133f0: 38 00 00 5b li r0,91 ffc133f4: 90 03 00 00 stw r0,0(r3) ffc133f8: 38 60 ff ff li r3,-1 ffc133fc: 4b ff ff a0 b ffc1339c <_POSIX_Semaphore_Create_support+0xdc> <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_semaphore = _POSIX_Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); ffc13400: 4b ff bb c9 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); ffc13404: 48 00 4a fd bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc13408: 38 00 00 1c li r0,28 ffc1340c: 90 03 00 00 stw r0,0(r3) ffc13410: 38 60 ff ff li r3,-1 ffc13414: 4b ff ff 88 b ffc1339c <_POSIX_Semaphore_Create_support+0xdc> <== ALWAYS TAKEN ffc13418 <_POSIX_Semaphore_Delete>: */ void _POSIX_Semaphore_Delete( POSIX_Semaphore_Control *the_semaphore ) { ffc13418: 94 21 ff f0 stwu r1,-16(r1) ffc1341c: 7c 08 02 a6 mflr r0 ffc13420: 90 01 00 14 stw r0,20(r1) if ( !the_semaphore->linked && !the_semaphore->open_count ) { ffc13424: 88 03 00 15 lbz r0,21(r3) */ void _POSIX_Semaphore_Delete( POSIX_Semaphore_Control *the_semaphore ) { ffc13428: 93 e1 00 0c stw r31,12(r1) ffc1342c: 7c 7f 1b 78 mr r31,r3 if ( !the_semaphore->linked && !the_semaphore->open_count ) { ffc13430: 2f 80 00 00 cmpwi cr7,r0,0 */ void _POSIX_Semaphore_Delete( POSIX_Semaphore_Control *the_semaphore ) { ffc13434: 93 c1 00 08 stw r30,8(r1) if ( !the_semaphore->linked && !the_semaphore->open_count ) { ffc13438: 40 9e 00 10 bne- cr7,ffc13448 <_POSIX_Semaphore_Delete+0x30> ffc1343c: 80 03 00 18 lwz r0,24(r3) ffc13440: 2f 80 00 00 cmpwi cr7,r0,0 ffc13444: 41 9e 00 1c beq- cr7,ffc13460 <_POSIX_Semaphore_Delete+0x48> -1 ); _POSIX_Semaphore_Free( the_semaphore ); } } ffc13448: 80 01 00 14 lwz r0,20(r1) ffc1344c: 83 c1 00 08 lwz r30,8(r1) ffc13450: 7c 08 03 a6 mtlr r0 ffc13454: 83 e1 00 0c lwz r31,12(r1) ffc13458: 38 21 00 10 addi r1,r1,16 ffc1345c: 4e 80 00 20 blr <== ALWAYS TAKEN void _POSIX_Semaphore_Delete( POSIX_Semaphore_Control *the_semaphore ) { if ( !the_semaphore->linked && !the_semaphore->open_count ) { _Objects_Close( &_POSIX_Semaphore_Information, &the_semaphore->Object ); ffc13460: 3f c0 00 00 lis r30,0 ffc13464: 3b de 30 d8 addi r30,r30,12504 ffc13468: 7f c3 f3 78 mr r3,r30 ffc1346c: 7f e4 fb 78 mr r4,r31 ffc13470: 4b ff a9 d5 bl ffc0de44 <_Objects_Close> <== ALWAYS TAKEN _CORE_semaphore_Flush( ffc13474: 38 7f 00 1c addi r3,r31,28 ffc13478: 38 80 00 00 li r4,0 ffc1347c: 38 a0 ff ff li r5,-1 ffc13480: 4b ff a2 d5 bl ffc0d754 <_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 ); ffc13484: 7f c3 f3 78 mr r3,r30 ffc13488: 7f e4 fb 78 mr r4,r31 ffc1348c: 4b ff ad 11 bl ffc0e19c <_Objects_Free> <== ALWAYS TAKEN -1 ); _POSIX_Semaphore_Free( the_semaphore ); } } ffc13490: 80 01 00 14 lwz r0,20(r1) ffc13494: 83 c1 00 08 lwz r30,8(r1) ffc13498: 7c 08 03 a6 mtlr r0 ffc1349c: 83 e1 00 0c lwz r31,12(r1) ffc134a0: 38 21 00 10 addi r1,r1,16 ffc134a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ee8c <_POSIX_Semaphore_Manager_initialization>: * Output parameters: NONE */ void _POSIX_Semaphore_Manager_initialization(void) { _Objects_Initialize_information( ffc0ee8c: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _POSIX_Semaphore_Manager_initialization(void) { ffc0ee90: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc0ee94: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN _Objects_Initialize_information( ffc0ee98: 3c 60 00 00 lis r3,0 ffc0ee9c: 80 c9 28 60 lwz r6,10336(r9) <== ALWAYS TAKEN ffc0eea0: 38 63 2e f8 addi r3,r3,12024 <== ALWAYS TAKEN ffc0eea4: 38 80 00 03 li r4,3 * * Output parameters: NONE */ void _POSIX_Semaphore_Manager_initialization(void) { ffc0eea8: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0eeac: 38 a0 00 07 li r5,7 <== ALWAYS TAKEN ffc0eeb0: 38 e0 00 68 li r7,104 ffc0eeb4: 39 00 00 01 li r8,1 ffc0eeb8: 39 20 00 ff li r9,255 ffc0eebc: 4b ff b6 29 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0eec0: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0eec4: 38 21 00 08 addi r1,r1,8 ffc0eec8: 7c 08 03 a6 mtlr r0 ffc0eecc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc134a8 <_POSIX_Semaphore_Name_to_id>: ) { Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) ffc134a8: 7c 69 1b 79 mr. r9,r3 int _POSIX_Semaphore_Name_to_id( const char *name, sem_t *id ) { ffc134ac: 94 21 ff e0 stwu r1,-32(r1) ffc134b0: 7c 08 02 a6 mflr r0 ffc134b4: 93 e1 00 1c stw r31,28(r1) ffc134b8: 7c 9f 23 78 mr r31,r4 ffc134bc: 90 01 00 24 stw r0,36(r1) Objects_Name_or_id_lookup_errors status; Objects_Id the_id; if ( !name ) ffc134c0: 41 82 00 10 beq- ffc134d0 <_POSIX_Semaphore_Name_to_id+0x28> return EINVAL; if ( !name[0] ) ffc134c4: 88 09 00 00 lbz r0,0(r9) ffc134c8: 2f 80 00 00 cmpwi cr7,r0,0 ffc134cc: 40 9e 00 1c bne- cr7,ffc134e8 <_POSIX_Semaphore_Name_to_id+0x40> if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) return 0; return ENOENT; } ffc134d0: 80 01 00 24 lwz r0,36(r1) name, &the_id ); *id = the_id; if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc134d4: 38 60 00 16 li r3,22 return 0; return ENOENT; } ffc134d8: 83 e1 00 1c lwz r31,28(r1) ffc134dc: 38 21 00 20 addi r1,r1,32 ffc134e0: 7c 08 03 a6 mtlr r0 ffc134e4: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; if ( !name[0] ) return EINVAL; status = _Objects_Name_to_id_string( ffc134e8: 3c 60 00 00 lis r3,0 ffc134ec: 7d 24 4b 78 mr r4,r9 ffc134f0: 38 a1 00 08 addi r5,r1,8 ffc134f4: 38 63 30 d8 addi r3,r3,12504 ffc134f8: 48 00 11 9d bl ffc14694 <_Objects_Name_to_id_string> <== ALWAYS TAKEN name, &the_id ); *id = the_id; if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc134fc: 31 23 ff ff addic r9,r3,-1 ffc13500: 7c 09 19 10 subfe r0,r9,r3 ffc13504: 7c 03 03 78 mr r3,r0 status = _Objects_Name_to_id_string( &_POSIX_Semaphore_Information, name, &the_id ); *id = the_id; ffc13508: 80 01 00 08 lwz r0,8(r1) if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) ffc1350c: 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; ffc13510: 90 1f 00 00 stw r0,0(r31) if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL ) return 0; return ENOENT; } ffc13514: 80 01 00 24 lwz r0,36(r1) ffc13518: 83 e1 00 1c lwz r31,28(r1) ffc1351c: 38 21 00 20 addi r1,r1,32 ffc13520: 7c 08 03 a6 mtlr r0 ffc13524: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1680c <_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]; } ffc1680c: 3d 20 ff c2 lis r9,-62 ffc16810: 39 29 5c c0 addi r9,r9,23744 int _POSIX_Semaphore_Translate_core_semaphore_return_code( CORE_semaphore_Status the_semaphore_status ) { ffc16814: 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]; } ffc16818: 7c 69 18 2e lwzx r3,r9,r3 ffc1681c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1356c <_POSIX_Semaphore_Wait_support>: int _POSIX_Semaphore_Wait_support( sem_t *sem, bool blocking, Watchdog_Interval timeout ) { ffc1356c: 94 21 ff e0 stwu r1,-32(r1) ffc13570: 7c 08 02 a6 mflr r0 ffc13574: 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 *) ffc13578: 80 03 00 00 lwz r0,0(r3) ffc1357c: 3c 60 00 00 lis r3,0 ffc13580: 93 c1 00 18 stw r30,24(r1) ffc13584: 38 63 30 d8 addi r3,r3,12504 ffc13588: 7c 9e 23 78 mr r30,r4 ffc1358c: 93 e1 00 1c stw r31,28(r1) ffc13590: 7c 04 03 78 mr r4,r0 ffc13594: 7c bf 2b 78 mr r31,r5 ffc13598: 38 a1 00 08 addi r5,r1,8 ffc1359c: 4b ff ad e1 bl ffc0e37c <_Objects_Get> <== ALWAYS TAKEN POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc135a0: 80 01 00 08 lwz r0,8(r1) ffc135a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc135a8: 41 9e 00 2c beq- cr7,ffc135d4 <_POSIX_Semaphore_Wait_support+0x68> #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc135ac: 48 00 49 55 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc135b0: 38 00 00 16 li r0,22 ffc135b4: 90 03 00 00 stw r0,0(r3) ffc135b8: 38 60 ff ff li r3,-1 } ffc135bc: 80 01 00 24 lwz r0,36(r1) ffc135c0: 83 c1 00 18 lwz r30,24(r1) ffc135c4: 7c 08 03 a6 mtlr r0 ffc135c8: 83 e1 00 1c lwz r31,28(r1) ffc135cc: 38 21 00 20 addi r1,r1,32 ffc135d0: 4e 80 00 20 blr <== ALWAYS TAKEN the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_semaphore_Seize( ffc135d4: 80 83 00 08 lwz r4,8(r3) ffc135d8: 7f e6 fb 78 mr r6,r31 ffc135dc: 38 63 00 1c addi r3,r3,28 ffc135e0: 7f c5 f3 78 mr r5,r30 blocking, timeout ); _Thread_Enable_dispatch(); if ( !_Thread_Executing->Wait.return_code ) ffc135e4: 3f e0 00 00 lis r31,0 the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_semaphore_Seize( ffc135e8: 48 00 0a 51 bl ffc14038 <_CORE_semaphore_Seize> <== ALWAYS TAKEN &the_semaphore->Semaphore, the_semaphore->Object.id, blocking, timeout ); _Thread_Enable_dispatch(); ffc135ec: 4b ff b9 dd bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( !_Thread_Executing->Wait.return_code ) ffc135f0: 81 3f 27 d0 lwz r9,10192(r31) ffc135f4: 38 60 00 00 li r3,0 ffc135f8: 80 09 00 34 lwz r0,52(r9) ffc135fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc13600: 41 9e ff bc beq+ cr7,ffc135bc <_POSIX_Semaphore_Wait_support+0x50> return 0; rtems_set_errno_and_return_minus_one( ffc13604: 48 00 48 fd bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc13608: 81 3f 27 d0 lwz r9,10192(r31) ffc1360c: 7c 7e 1b 78 mr r30,r3 ffc13610: 80 69 00 34 lwz r3,52(r9) ffc13614: 48 00 31 f9 bl ffc1680c <_POSIX_Semaphore_Translate_core_semaphore_return_code> <== ALWAYS TAKEN ffc13618: 90 7e 00 00 stw r3,0(r30) ffc1361c: 38 60 ff ff li r3,-1 ffc13620: 4b ff ff 9c b ffc135bc <_POSIX_Semaphore_Wait_support+0x50> <== ALWAYS TAKEN ffc0e9e0 <_POSIX_Spinlock_Manager_initialization>: * @brief _POSIX_Spinlock_Manager_initialization */ void _POSIX_Spinlock_Manager_initialization(void) { _Objects_Initialize_information( ffc0e9e0: 3d 20 00 00 lis r9,0 /** * @brief _POSIX_Spinlock_Manager_initialization */ void _POSIX_Spinlock_Manager_initialization(void) { ffc0e9e4: 94 21 ff f8 stwu r1,-8(r1) ffc0e9e8: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0e9ec: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN ffc0e9f0: 80 c9 28 6c lwz r6,10348(r9) <== ALWAYS TAKEN ffc0e9f4: 38 63 2e b8 addi r3,r3,11960 ffc0e9f8: 38 80 00 03 li r4,3 /** * @brief _POSIX_Spinlock_Manager_initialization */ void _POSIX_Spinlock_Manager_initialization(void) { ffc0e9fc: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0ea00: 38 a0 00 0b li r5,11 ffc0ea04: 38 e0 00 20 li r7,32 ffc0ea08: 39 00 00 01 li r8,1 <== ALWAYS TAKEN ffc0ea0c: 39 20 00 ff li r9,255 ffc0ea10: 4b ff ba d5 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0ea14: 80 01 00 0c lwz r0,12(r1) ffc0ea18: 38 21 00 08 addi r1,r1,8 ffc0ea1c: 7c 08 03 a6 mtlr r0 ffc0ea20: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08b64 <_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]; } ffc08b64: 3d 20 ff c2 lis r9,-62 ffc08b68: 39 29 0e cc addi r9,r9,3788 int _POSIX_Spinlock_Translate_core_spinlock_return_code( CORE_spinlock_Status the_spinlock_status ) { ffc08b6c: 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]; } ffc08b70: 7c 69 18 2e lwzx r3,r9,r3 ffc08b74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ebc8 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>: #include void _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( Thread_Control *the_thread ) { ffc0ebc8: 7c 08 02 a6 mflr r0 ffc0ebcc: 94 21 ff f8 stwu r1,-8(r1) ffc0ebd0: 90 01 00 0c stw r0,12(r1) POSIX_API_Control *thread_support; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0ebd4: 81 23 01 48 lwz r9,328(r3) if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && ffc0ebd8: 80 09 00 cc lwz r0,204(r9) ffc0ebdc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ebe0: 40 9e 00 10 bne- cr7,ffc0ebf0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x28> <== NEVER TAKEN thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS && ffc0ebe4: 80 09 00 d0 lwz r0,208(r9) ffc0ebe8: 2f 80 00 01 cmpwi cr7,r0,1 ffc0ebec: 41 9e 00 18 beq- cr7,ffc0ec04 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x3c> thread_support->cancelation_requested ) { _Thread_Unnest_dispatch(); _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED ); } else _Thread_Enable_dispatch(); ffc0ebf0: 4b ff ca 31 bl ffc0b620 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc0ebf4: 80 01 00 0c lwz r0,12(r1) ffc0ebf8: 38 21 00 08 addi r1,r1,8 ffc0ebfc: 7c 08 03 a6 mtlr r0 ffc0ec00: 4e 80 00 20 blr <== ALWAYS TAKEN thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS && thread_support->cancelation_requested ) { ffc0ec04: 80 09 00 d4 lwz r0,212(r9) ffc0ec08: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ec0c: 41 9e ff e4 beq+ cr7,ffc0ebf0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x28> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0ec10: 3d 20 00 00 lis r9,0 ffc0ec14: 81 69 27 9c lwz r11,10140(r9) _Thread_Unnest_dispatch(); _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED ); ffc0ec18: 38 80 ff ff li r4,-1 ffc0ec1c: 38 0b ff ff addi r0,r11,-1 ffc0ec20: 90 09 27 9c stw r0,10140(r9) ffc0ec24: 48 00 08 25 bl ffc0f448 <_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 && ffc0ec28: 4b ff ff cc b ffc0ebf4 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x2c> <== ALWAYS TAKEN ffc11bf0 <_POSIX_Thread_Exit>: void _POSIX_Thread_Exit( Thread_Control *the_thread, void *value_ptr ) { ffc11bf0: 94 21 ff e8 stwu r1,-24(r1) ffc11bf4: 7c 08 02 a6 mflr r0 ffc11bf8: 90 01 00 1c stw r0,28(r1) ffc11bfc: 93 e1 00 14 stw r31,20(r1) ffc11c00: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN Objects_Information *the_information; the_information = _Objects_Get_information_id( the_thread->Object.id ); ffc11c04: 80 63 00 08 lwz r3,8(r3) void _POSIX_Thread_Exit( Thread_Control *the_thread, void *value_ptr ) { ffc11c08: 93 81 00 08 stw r28,8(r1) ffc11c0c: 7c 9c 23 78 mr r28,r4 ffc11c10: 93 a1 00 0c stw r29,12(r1) ffc11c14: 93 c1 00 10 stw r30,16(r1) Objects_Information *the_information; the_information = _Objects_Get_information_id( the_thread->Object.id ); ffc11c18: 4b ff 87 11 bl ffc0a328 <_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(); ffc11c1c: 3f c0 00 00 lis r30,0 void *value_ptr ) { Objects_Information *the_information; the_information = _Objects_Get_information_id( the_thread->Object.id ); ffc11c20: 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(); ffc11c24: 80 7e 27 a8 lwz r3,10152(r30) ffc11c28: 4b ff 76 7d bl ffc092a4 <_API_Mutex_Lock> <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc11c2c: 3d 20 00 00 lis r9,0 ffc11c30: 81 69 27 70 lwz r11,10096(r9) ffc11c34: 38 0b 00 01 addi r0,r11,1 ffc11c38: 90 09 27 70 stw r0,10096(r9) _Thread_Disable_dispatch(); the_thread->Wait.return_argument = value_ptr; ffc11c3c: 93 9f 00 28 stw r28,40(r31) _Thread_Close( the_information, the_thread ); ffc11c40: 7f a3 eb 78 mr r3,r29 ffc11c44: 7f e4 fb 78 mr r4,r31 ffc11c48: 4b ff 8f 85 bl ffc0abcc <_Thread_Close> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free ( Thread_Control *the_pthread ) { _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); ffc11c4c: 3c 60 00 00 lis r3,0 ffc11c50: 7f e4 fb 78 mr r4,r31 ffc11c54: 38 63 2e 78 addi r3,r3,11896 ffc11c58: 4b ff 86 11 bl ffc0a268 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Threads_Free( the_thread ); _RTEMS_Unlock_allocator(); ffc11c5c: 80 7e 27 a8 lwz r3,10152(r30) ffc11c60: 4b ff 76 c5 bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc11c64: 4b ff 93 b1 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc11c68: 80 01 00 1c lwz r0,28(r1) ffc11c6c: 83 81 00 08 lwz r28,8(r1) ffc11c70: 7c 08 03 a6 mtlr r0 ffc11c74: 83 a1 00 0c lwz r29,12(r1) ffc11c78: 83 c1 00 10 lwz r30,16(r1) ffc11c7c: 83 e1 00 14 lwz r31,20(r1) ffc11c80: 38 21 00 18 addi r1,r1,24 ffc11c84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1051c <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) { ffc1051c: 94 21 ff e8 stwu r1,-24(r1) ffc10520: 7c 08 02 a6 mflr r0 ffc10524: 93 e1 00 14 stw r31,20(r1) ffc10528: 7c 7f 1b 78 mr r31,r3 if ( !_POSIX_Priority_Is_valid( param->sched_priority ) ) ffc1052c: 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 ) { ffc10530: 93 81 00 08 stw r28,8(r1) ffc10534: 7c dc 33 78 mr r28,r6 ffc10538: 93 a1 00 0c stw r29,12(r1) ffc1053c: 7c bd 2b 78 mr r29,r5 ffc10540: 93 c1 00 10 stw r30,16(r1) ffc10544: 7c 9e 23 78 mr r30,r4 ffc10548: 90 01 00 1c stw r0,28(r1) if ( !_POSIX_Priority_Is_valid( param->sched_priority ) ) ffc1054c: 4b ff ff ad bl ffc104f8 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc10550: 2f 83 00 00 cmpwi cr7,r3,0 ffc10554: 41 9e 00 30 beq- cr7,ffc10584 <_POSIX_Thread_Translate_sched_param+0x68> <== NEVER TAKEN return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; *budget_callout = NULL; if ( policy == SCHED_OTHER ) { ffc10558: 2f 9f 00 00 cmpwi cr7,r31,0 ) { if ( !_POSIX_Priority_Is_valid( param->sched_priority ) ) return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; ffc1055c: 38 00 00 00 li r0,0 ffc10560: 90 1d 00 00 stw r0,0(r29) *budget_callout = NULL; ffc10564: 90 1c 00 00 stw r0,0(r28) if ( policy == SCHED_OTHER ) { ffc10568: 41 9e 00 40 beq- cr7,ffc105a8 <_POSIX_Thread_Translate_sched_param+0x8c> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; return 0; } if ( policy == SCHED_FIFO ) { ffc1056c: 2f 9f 00 01 cmpwi cr7,r31,1 ffc10570: 41 9e 00 dc beq- cr7,ffc1064c <_POSIX_Thread_Translate_sched_param+0x130> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; return 0; } if ( policy == SCHED_RR ) { ffc10574: 2f 9f 00 02 cmpwi cr7,r31,2 ffc10578: 41 9e 00 e0 beq- cr7,ffc10658 <_POSIX_Thread_Translate_sched_param+0x13c> *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE; return 0; } if ( policy == SCHED_SPORADIC ) { ffc1057c: 2f 9f 00 03 cmpwi cr7,r31,3 ffc10580: 41 9e 00 54 beq- cr7,ffc105d4 <_POSIX_Thread_Translate_sched_param+0xb8> if ( !_POSIX_Priority_Is_valid( param->ss_low_priority ) ) return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT; *budget_callout = _POSIX_Threads_Sporadic_budget_callout; return 0; ffc10584: 38 60 00 16 li r3,22 } return EINVAL; } ffc10588: 80 01 00 1c lwz r0,28(r1) ffc1058c: 83 81 00 08 lwz r28,8(r1) ffc10590: 7c 08 03 a6 mtlr r0 ffc10594: 83 a1 00 0c lwz r29,12(r1) ffc10598: 83 c1 00 10 lwz r30,16(r1) ffc1059c: 83 e1 00 14 lwz r31,20(r1) ffc105a0: 38 21 00 18 addi r1,r1,24 ffc105a4: 4e 80 00 20 blr <== ALWAYS TAKEN *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; *budget_callout = NULL; if ( policy == SCHED_OTHER ) { *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; ffc105a8: 38 00 00 01 li r0,1 *budget_callout = _POSIX_Threads_Sporadic_budget_callout; return 0; } return EINVAL; } ffc105ac: 83 81 00 08 lwz r28,8(r1) *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; *budget_callout = NULL; if ( policy == SCHED_OTHER ) { *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; ffc105b0: 90 1d 00 00 stw r0,0(r29) ffc105b4: 38 60 00 00 li r3,0 *budget_callout = _POSIX_Threads_Sporadic_budget_callout; return 0; } return EINVAL; } ffc105b8: 80 01 00 1c lwz r0,28(r1) ffc105bc: 83 a1 00 0c lwz r29,12(r1) ffc105c0: 7c 08 03 a6 mtlr r0 ffc105c4: 83 c1 00 10 lwz r30,16(r1) ffc105c8: 83 e1 00 14 lwz r31,20(r1) ffc105cc: 38 21 00 18 addi r1,r1,24 ffc105d0: 4e 80 00 20 blr <== ALWAYS TAKEN *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE; return 0; } if ( policy == SCHED_SPORADIC ) { if ( (param->ss_replenish_period.tv_sec == 0) && ffc105d4: 80 1e 00 08 lwz r0,8(r30) ffc105d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc105dc: 40 9e 00 10 bne- cr7,ffc105ec <_POSIX_Thread_Translate_sched_param+0xd0> (param->ss_replenish_period.tv_nsec == 0) ) ffc105e0: 80 1e 00 0c lwz r0,12(r30) ffc105e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc105e8: 41 be ff 9c beq- cr7,ffc10584 <_POSIX_Thread_Translate_sched_param+0x68> return EINVAL; if ( (param->ss_initial_budget.tv_sec == 0) && ffc105ec: 80 1e 00 10 lwz r0,16(r30) ffc105f0: 2f 80 00 00 cmpwi cr7,r0,0 ffc105f4: 40 9e 00 10 bne- cr7,ffc10604 <_POSIX_Thread_Translate_sched_param+0xe8> (param->ss_initial_budget.tv_nsec == 0) ) ffc105f8: 80 1e 00 14 lwz r0,20(r30) ffc105fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc10600: 41 be ff 84 beq- cr7,ffc10584 <_POSIX_Thread_Translate_sched_param+0x68> return EINVAL; if ( _Timespec_To_ticks( ¶m->ss_replenish_period ) < ffc10604: 38 7e 00 08 addi r3,r30,8 ffc10608: 4b ff d4 b1 bl ffc0dab8 <_Timespec_To_ticks> <== ALWAYS TAKEN ffc1060c: 7c 7f 1b 78 mr r31,r3 ffc10610: 38 7e 00 10 addi r3,r30,16 ffc10614: 4b ff d4 a5 bl ffc0dab8 <_Timespec_To_ticks> <== ALWAYS TAKEN ffc10618: 7f 9f 18 40 cmplw cr7,r31,r3 ffc1061c: 41 bc ff 68 blt- cr7,ffc10584 <_POSIX_Thread_Translate_sched_param+0x68> _Timespec_To_ticks( ¶m->ss_initial_budget ) ) return EINVAL; if ( !_POSIX_Priority_Is_valid( param->ss_low_priority ) ) ffc10620: 80 7e 00 04 lwz r3,4(r30) ffc10624: 4b ff fe d5 bl ffc104f8 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc10628: 2f 83 00 00 cmpwi cr7,r3,0 ffc1062c: 41 be ff 58 beq- cr7,ffc10584 <_POSIX_Thread_Translate_sched_param+0x68> return EINVAL; *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT; ffc10630: 38 00 00 03 li r0,3 *budget_callout = _POSIX_Threads_Sporadic_budget_callout; ffc10634: 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; ffc10638: 90 1d 00 00 stw r0,0(r29) *budget_callout = _POSIX_Threads_Sporadic_budget_callout; ffc1063c: 38 09 90 84 addi r0,r9,-28540 ffc10640: 38 60 00 00 li r3,0 ffc10644: 90 1c 00 00 stw r0,0(r28) return 0; ffc10648: 4b ff ff 40 b ffc10588 <_POSIX_Thread_Translate_sched_param+0x6c> <== ALWAYS TAKEN *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; return 0; } if ( policy == SCHED_FIFO ) { *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; ffc1064c: 90 1d 00 00 stw r0,0(r29) ffc10650: 38 60 00 00 li r3,0 return 0; ffc10654: 4b ff ff 34 b ffc10588 <_POSIX_Thread_Translate_sched_param+0x6c> <== ALWAYS TAKEN } if ( policy == SCHED_RR ) { *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE; ffc10658: 93 fd 00 00 stw r31,0(r29) ffc1065c: 38 60 00 00 li r3,0 return 0; ffc10660: 4b ff ff 28 b ffc10588 <_POSIX_Thread_Translate_sched_param+0x6c> <== ALWAYS TAKEN ffc0ebcc <_POSIX_Threads_Create_extension>: bool _POSIX_Threads_Create_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *created ) { ffc0ebcc: 94 21 ff e8 stwu r1,-24(r1) ffc0ebd0: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN POSIX_API_Control *api; POSIX_API_Control *executing_api; api = _Workspace_Allocate( sizeof( POSIX_API_Control ) ); ffc0ebd4: 38 60 00 e4 li r3,228 bool _POSIX_Threads_Create_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *created ) { ffc0ebd8: 90 01 00 1c stw r0,28(r1) ffc0ebdc: 93 c1 00 10 stw r30,16(r1) ffc0ebe0: 7c 9e 23 78 mr r30,r4 ffc0ebe4: 93 e1 00 14 stw r31,20(r1) ffc0ebe8: 93 a1 00 0c stw r29,12(r1) POSIX_API_Control *api; POSIX_API_Control *executing_api; api = _Workspace_Allocate( sizeof( POSIX_API_Control ) ); ffc0ebec: 4b ff de cd bl ffc0cab8 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !api ) ffc0ebf0: 7c 7f 1b 79 mr. r31,r3 ffc0ebf4: 38 00 00 00 li r0,0 ffc0ebf8: 41 82 00 e4 beq- ffc0ecdc <_POSIX_Threads_Create_extension+0x110> return false; created->API_Extensions[ THREAD_API_POSIX ] = api; /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; ffc0ebfc: 3f a0 ff c2 lis r29,-62 <== ALWAYS TAKEN api = _Workspace_Allocate( sizeof( POSIX_API_Control ) ); if ( !api ) return false; created->API_Extensions[ THREAD_API_POSIX ] = api; ffc0ec00: 93 fe 01 48 stw r31,328(r30) /* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; ffc0ec04: 3b bd fc 24 addi r29,r29,-988 <== ALWAYS TAKEN ffc0ec08: 7f a4 eb 78 mr r4,r29 <== ALWAYS TAKEN ffc0ec0c: 38 a0 00 38 li r5,56 ffc0ec10: 48 00 53 51 bl ffc13f60 <== ALWAYS TAKEN api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam; ffc0ec14: 81 1d 00 2c lwz r8,44(r29) ffc0ec18: 80 1d 00 18 lwz r0,24(r29) <== ALWAYS TAKEN ffc0ec1c: 80 fd 00 1c lwz r7,28(r29) ffc0ec20: 81 3d 00 20 lwz r9,32(r29) ffc0ec24: 81 5d 00 24 lwz r10,36(r29) ffc0ec28: 81 7d 00 28 lwz r11,40(r29) ffc0ec2c: 90 1f 00 80 stw r0,128(r31) _POSIX_Priority_From_core( created->current_priority ); /* * POSIX 1003.1 1996, 18.2.2.2 */ api->cancelation_requested = 0; ffc0ec30: 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; ffc0ec34: 90 ff 00 84 stw r7,132(r31) <== ALWAYS TAKEN ffc0ec38: 91 3f 00 88 stw r9,136(r31) 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; ffc0ec3c: 39 20 00 01 li r9,1 api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam; ffc0ec40: 91 5f 00 8c stw r10,140(r31) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ec44: 39 5f 00 dc addi r10,r31,220 ffc0ec48: 91 7f 00 90 stw r11,144(r31) <== ALWAYS TAKEN the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ec4c: 39 7f 00 d8 addi r11,r31,216 ffc0ec50: 91 1f 00 94 stw r8,148(r31) api->schedparam.sched_priority = ffc0ec54: 3d 00 00 00 lis r8,0 <== ALWAYS TAKEN ffc0ec58: 88 e8 26 a4 lbz r7,9892(r8) ffc0ec5c: 81 1e 00 14 lwz r8,20(r30) <== ALWAYS TAKEN * * The check for class == 1 is debug. Should never really happen. */ /* XXX use signal constants */ api->signals_pending = 0; ffc0ec60: 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 = ffc0ec64: 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 ffc0ec68: 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; ffc0ec6c: 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 ffc0ec70: 54 e7 07 7e clrlwi r7,r7,29 ffc0ec74: 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 = ffc0ec78: 91 1f 00 80 stw r8,128(r31) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ec7c: 91 5f 00 d8 stw r10,216(r31) <== ALWAYS TAKEN the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ec80: 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; ffc0ec84: 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; ffc0ec88: 90 1f 00 d4 stw r0,212(r31) api->cancelability_state = PTHREAD_CANCEL_ENABLE; ffc0ec8c: 90 1f 00 cc stw r0,204(r31) <== ALWAYS TAKEN api->cancelability_type = PTHREAD_CANCEL_DEFERRED; ffc0ec90: 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; ffc0ec94: 90 1f 00 dc stw r0,220(r31) <== ALWAYS TAKEN * 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 ffc0ec98: 41 9e 00 64 beq- cr7,ffc0ecfc <_POSIX_Threads_Create_extension+0x130> #endif ) { executing_api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; api->signals_blocked = executing_api->signals_blocked; } else { api->signals_blocked = 0xffffffff; ffc0ec9c: 38 00 ff ff li r0,-1 ffc0eca0: 90 1f 00 c4 stw r0,196(r31) } _Thread_queue_Initialize( ffc0eca4: 38 7f 00 3c addi r3,r31,60 ffc0eca8: 38 80 00 00 li r4,0 ffc0ecac: 38 a0 10 00 li r5,4096 ffc0ecb0: 38 c0 00 00 li r6,0 <== ALWAYS TAKEN ffc0ecb4: 4b ff cd 31 bl ffc0b9e4 <_Thread_queue_Initialize> <== ALWAYS TAKEN Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0ecb8: 39 60 00 00 li r11,0 THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_JOIN_AT_EXIT, 0 ); _Watchdog_Initialize( ffc0ecbc: 81 3e 00 08 lwz r9,8(r30) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0ecc0: 38 00 00 01 li r0,1 <== ALWAYS TAKEN Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0ecc4: 91 7f 00 a4 stw r11,164(r31) the_watchdog->routine = routine; ffc0ecc8: 3d 60 ff c1 lis r11,-63 ffc0eccc: 39 6b ed 80 addi r11,r11,-4736 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0ecd0: 93 df 00 c0 stw r30,192(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0ecd4: 91 7f 00 b8 stw r11,184(r31) the_watchdog->id = id; ffc0ecd8: 91 3f 00 bc stw r9,188(r31) created->Object.id, created ); return true; } ffc0ecdc: 7c 03 03 78 mr r3,r0 <== ALWAYS TAKEN ffc0ece0: 80 01 00 1c lwz r0,28(r1) ffc0ece4: 83 a1 00 0c lwz r29,12(r1) <== ALWAYS TAKEN ffc0ece8: 7c 08 03 a6 mtlr r0 ffc0ecec: 83 c1 00 10 lwz r30,16(r1) ffc0ecf0: 83 e1 00 14 lwz r31,20(r1) ffc0ecf4: 38 21 00 18 addi r1,r1,24 ffc0ecf8: 4e 80 00 20 blr <== ALWAYS TAKEN #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; ffc0ecfc: 3d 20 00 00 lis r9,0 ffc0ed00: 81 29 27 b0 lwz r9,10160(r9) ffc0ed04: 81 29 01 48 lwz r9,328(r9) ffc0ed08: 80 09 00 c4 lwz r0,196(r9) ffc0ed0c: 90 1f 00 c4 stw r0,196(r31) ffc0ed10: 4b ff ff 94 b ffc0eca4 <_POSIX_Threads_Create_extension+0xd8> <== ALWAYS TAKEN ffc0eb00 <_POSIX_Threads_Delete_extension>: */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { ffc0eb00: 94 21 ff e8 stwu r1,-24(r1) ffc0eb04: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN api = deleted->API_Extensions[ THREAD_API_POSIX ]; /* * Run the POSIX cancellation handlers */ _POSIX_Threads_cancel_run( deleted ); ffc0eb08: 7c 83 23 78 mr r3,r4 */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { ffc0eb0c: 93 81 00 08 stw r28,8(r1) ffc0eb10: 93 a1 00 0c stw r29,12(r1) ffc0eb14: 7c 9d 23 78 mr r29,r4 <== ALWAYS TAKEN Thread_Control *the_thread; POSIX_API_Control *api; void **value_ptr; api = deleted->API_Extensions[ THREAD_API_POSIX ]; ffc0eb18: 83 84 01 48 lwz r28,328(r4) */ void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) { ffc0eb1c: 90 01 00 1c stw r0,28(r1) ffc0eb20: 93 c1 00 10 stw r30,16(r1) ffc0eb24: 93 e1 00 14 stw r31,20(r1) api = deleted->API_Extensions[ THREAD_API_POSIX ]; /* * Run the POSIX cancellation handlers */ _POSIX_Threads_cancel_run( deleted ); ffc0eb28: 48 00 2c 99 bl ffc117c0 <_POSIX_Threads_cancel_run> <== ALWAYS TAKEN /* * Run all the key destructors */ _POSIX_Keys_Run_destructors( deleted ); ffc0eb2c: 7f a3 eb 78 mr r3,r29 ffc0eb30: 48 00 2d 2d bl ffc1185c <_POSIX_Keys_Run_destructors> <== ALWAYS TAKEN /* * 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 )) ) ffc0eb34: 3b fc 00 3c addi r31,r28,60 _POSIX_Keys_Run_destructors( deleted ); /* * Wakeup all the tasks which joined with this one */ value_ptr = (void **) deleted->Wait.return_argument; ffc0eb38: 83 dd 00 28 lwz r30,40(r29) while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) ffc0eb3c: 48 00 00 0c b ffc0eb48 <_POSIX_Threads_Delete_extension+0x48> <== ALWAYS TAKEN *(void **)the_thread->Wait.return_argument = value_ptr; ffc0eb40: 81 23 00 28 lwz r9,40(r3) ffc0eb44: 93 c9 00 00 stw r30,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 )) ) ffc0eb48: 7f e3 fb 78 mr r3,r31 ffc0eb4c: 4b ff c9 65 bl ffc0b4b0 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc0eb50: 2c 03 00 00 cmpwi r3,0 ffc0eb54: 40 82 ff ec bne+ ffc0eb40 <_POSIX_Threads_Delete_extension+0x40> *(void **)the_thread->Wait.return_argument = value_ptr; if ( api->schedpolicy == SCHED_SPORADIC ) ffc0eb58: 80 1c 00 7c lwz r0,124(r28) ffc0eb5c: 2f 80 00 03 cmpwi cr7,r0,3 ffc0eb60: 41 9e 00 34 beq- cr7,ffc0eb94 <_POSIX_Threads_Delete_extension+0x94> (void) _Watchdog_Remove( &api->Sporadic_timer ); deleted->API_Extensions[ THREAD_API_POSIX ] = NULL; ffc0eb64: 38 00 00 00 li r0,0 ffc0eb68: 90 1d 01 48 stw r0,328(r29) (void) _Workspace_Free( api ); ffc0eb6c: 7f 83 e3 78 mr r3,r28 <== ALWAYS TAKEN ffc0eb70: 4b ff df 7d bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN } ffc0eb74: 80 01 00 1c lwz r0,28(r1) ffc0eb78: 83 81 00 08 lwz r28,8(r1) ffc0eb7c: 7c 08 03 a6 mtlr r0 ffc0eb80: 83 a1 00 0c lwz r29,12(r1) ffc0eb84: 83 c1 00 10 lwz r30,16(r1) ffc0eb88: 83 e1 00 14 lwz r31,20(r1) ffc0eb8c: 38 21 00 18 addi r1,r1,24 ffc0eb90: 4e 80 00 20 blr <== ALWAYS TAKEN while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) ) *(void **)the_thread->Wait.return_argument = value_ptr; if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); ffc0eb94: 38 7c 00 9c addi r3,r28,156 ffc0eb98: 4b ff dd 31 bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN deleted->API_Extensions[ THREAD_API_POSIX ] = NULL; ffc0eb9c: 38 00 00 00 li r0,0 ffc0eba0: 90 1d 01 48 stw r0,328(r29) (void) _Workspace_Free( api ); ffc0eba4: 7f 83 e3 78 mr r3,r28 ffc0eba8: 4b ff df 45 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN } ffc0ebac: 80 01 00 1c lwz r0,28(r1) ffc0ebb0: 83 81 00 08 lwz r28,8(r1) ffc0ebb4: 7c 08 03 a6 mtlr r0 ffc0ebb8: 83 a1 00 0c lwz r29,12(r1) ffc0ebbc: 83 c1 00 10 lwz r30,16(r1) ffc0ebc0: 83 e1 00 14 lwz r31,20(r1) ffc0ebc4: 38 21 00 18 addi r1,r1,24 ffc0ebc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0eabc <_POSIX_Threads_Exitted_extension>: * This method is invoked each time a thread exits. */ void _POSIX_Threads_Exitted_extension( Thread_Control *executing ) { ffc0eabc: 7c 08 02 a6 mflr r0 ffc0eac0: 94 21 ff f8 stwu r1,-8(r1) ffc0eac4: 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 ) ffc0eac8: 88 03 00 08 lbz r0,8(r3) ffc0eacc: 54 00 07 7e clrlwi r0,r0,29 ffc0ead0: 2f 80 00 03 cmpwi cr7,r0,3 ffc0ead4: 41 9e 00 14 beq- cr7,ffc0eae8 <_POSIX_Threads_Exitted_extension+0x2c> pthread_exit( executing->Wait.return_argument ); } ffc0ead8: 80 01 00 0c lwz r0,12(r1) ffc0eadc: 38 21 00 08 addi r1,r1,8 ffc0eae0: 7c 08 03 a6 mtlr r0 ffc0eae4: 4e 80 00 20 blr <== ALWAYS TAKEN /* * If the executing thread was not created with the POSIX API, then this * API do not get to define its exit behavior. */ if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API ) pthread_exit( executing->Wait.return_argument ); ffc0eae8: 80 63 00 28 lwz r3,40(r3) ffc0eaec: 48 00 31 9d bl ffc11c88 <== ALWAYS TAKEN } ffc0eaf0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0eaf4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc0eaf8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0eafc: 4e 80 00 20 blr <== NOT EXECUTED ffc0ea24 <_POSIX_Threads_Initialize_user_threads>: * * This routine creates and starts all configured user * initialzation threads. */ void _POSIX_Threads_Initialize_user_threads( void ) { ffc0ea24: 7c 08 02 a6 mflr r0 ffc0ea28: 94 21 ff f8 stwu r1,-8(r1) if ( _POSIX_Threads_Initialize_user_threads_p ) ffc0ea2c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * * This routine creates and starts all configured user * initialzation threads. */ void _POSIX_Threads_Initialize_user_threads( void ) { ffc0ea30: 90 01 00 0c stw r0,12(r1) if ( _POSIX_Threads_Initialize_user_threads_p ) ffc0ea34: 80 09 27 14 lwz r0,10004(r9) ffc0ea38: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ea3c: 41 9e 00 0c beq- cr7,ffc0ea48 <_POSIX_Threads_Initialize_user_threads+0x24> (*_POSIX_Threads_Initialize_user_threads_p)(); ffc0ea40: 7c 09 03 a6 mtctr r0 ffc0ea44: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0ea48: 80 01 00 0c lwz r0,12(r1) ffc0ea4c: 38 21 00 08 addi r1,r1,8 ffc0ea50: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0ea54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cc8 <_POSIX_Threads_Initialize_user_threads_body>: * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc08cc8: 94 21 ff a0 stwu r1,-96(r1) ffc08ccc: 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; ffc08cd0: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc08cd4: 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; ffc08cd8: 39 29 20 84 addi r9,r9,8324 * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc08cdc: 93 c1 00 58 stw r30,88(r1) <== ALWAYS TAKEN 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; ffc08ce0: 83 c9 00 34 lwz r30,52(r9) * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc08ce4: 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 ) ffc08ce8: 2f 9e 00 00 cmpwi cr7,r30,0 * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) { ffc08cec: 93 61 00 4c stw r27,76(r1) ffc08cf0: 93 a1 00 54 stw r29,84(r1) ffc08cf4: 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; ffc08cf8: 83 89 00 30 lwz r28,48(r9) if ( !user_threads || maximum == 0 ) ffc08cfc: 41 9e 00 64 beq- cr7,ffc08d60 <_POSIX_Threads_Initialize_user_threads_body+0x98> <== NEVER TAKEN ffc08d00: 2f 9c 00 00 cmpwi cr7,r28,0 ffc08d04: 41 9e 00 5c beq- cr7,ffc08d60 <_POSIX_Threads_Initialize_user_threads_body+0x98> <== NEVER TAKEN ffc08d08: 3b a0 00 00 li r29,0 ffc08d0c: 3b e1 00 0c addi r31,r1,12 ffc08d10: 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 ); ffc08d14: 7f e3 fb 78 mr r3,r31 ffc08d18: 48 00 79 4d bl ffc10664 <== ALWAYS TAKEN (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED ); ffc08d1c: 38 80 00 02 li r4,2 ffc08d20: 7f e3 fb 78 mr r3,r31 ffc08d24: 48 00 79 81 bl ffc106a4 <== ALWAYS TAKEN (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size); ffc08d28: 80 9e 00 04 lwz r4,4(r30) ffc08d2c: 7f e3 fb 78 mr r3,r31 ffc08d30: 48 00 79 ad bl ffc106dc <== ALWAYS TAKEN status = pthread_create( ffc08d34: 80 be 00 00 lwz r5,0(r30) ffc08d38: 7f 63 db 78 mr r3,r27 ffc08d3c: 7f e4 fb 78 mr r4,r31 ffc08d40: 38 c0 00 00 li r6,0 ffc08d44: 4b ff fb d9 bl ffc0891c <== ALWAYS TAKEN &thread_id, &attr, user_threads[ index ].thread_entry, NULL ); if ( status ) ffc08d48: 2c 03 00 00 cmpwi r3,0 ffc08d4c: 40 82 00 38 bne- ffc08d84 <_POSIX_Threads_Initialize_user_threads_body+0xbc> * * Setting the attributes explicitly is critical, since we don't want * to inherit the idle tasks attributes. */ for ( index=0 ; index < maximum ; index++ ) { ffc08d50: 3b bd 00 01 addi r29,r29,1 ffc08d54: 7f 9c e8 40 cmplw cr7,r28,r29 ffc08d58: 3b de 00 08 addi r30,r30,8 ffc08d5c: 41 9d ff b8 bgt+ cr7,ffc08d14 <_POSIX_Threads_Initialize_user_threads_body+0x4c> <== NEVER TAKEN NULL ); if ( status ) _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status ); } } ffc08d60: 80 01 00 64 lwz r0,100(r1) ffc08d64: 83 61 00 4c lwz r27,76(r1) ffc08d68: 7c 08 03 a6 mtlr r0 ffc08d6c: 83 81 00 50 lwz r28,80(r1) ffc08d70: 83 a1 00 54 lwz r29,84(r1) ffc08d74: 83 c1 00 58 lwz r30,88(r1) ffc08d78: 83 e1 00 5c lwz r31,92(r1) ffc08d7c: 38 21 00 60 addi r1,r1,96 ffc08d80: 4e 80 00 20 blr <== ALWAYS TAKEN &attr, user_threads[ index ].thread_entry, NULL ); if ( status ) _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status ); ffc08d84: 7c 65 1b 78 mr r5,r3 ffc08d88: 38 80 00 01 li r4,1 ffc08d8c: 38 60 00 02 li r3,2 ffc08d90: 48 00 28 19 bl ffc0b5a8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc0ea58 <_POSIX_Threads_Manager_initialization>: * _POSIX_Threads_Manager_initialization * * This routine initializes all threads manager related data structures. */ void _POSIX_Threads_Manager_initialization(void) { ffc0ea58: 94 21 ff f0 stwu r1,-16(r1) _Objects_Initialize_information( ffc0ea5c: 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) { ffc0ea60: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0ea64: 3c 60 00 00 lis r3,0 ffc0ea68: 80 c9 28 40 lwz r6,10304(r9) ffc0ea6c: 38 80 00 03 li r4,3 <== ALWAYS TAKEN * _POSIX_Threads_Manager_initialization * * This routine initializes all threads manager related data structures. */ void _POSIX_Threads_Manager_initialization(void) { ffc0ea70: 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 ); ffc0ea74: 3f e0 00 00 lis r31,0 _Objects_Initialize_information( ffc0ea78: 38 a0 00 01 li r5,1 ffc0ea7c: 38 e0 01 58 li r7,344 * _POSIX_Threads_Manager_initialization * * This routine initializes all threads manager related data structures. */ void _POSIX_Threads_Manager_initialization(void) { ffc0ea80: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0ea84: 39 00 00 01 li r8,1 ffc0ea88: 39 20 00 ff li r9,255 ffc0ea8c: 3b ff 21 78 addi r31,r31,8568 ffc0ea90: 38 63 2e 78 addi r3,r3,11896 ffc0ea94: 4b ff ba 51 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN ffc0ea98: 7f e3 fb 78 mr r3,r31 ffc0ea9c: 48 00 19 31 bl ffc103cc <_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 ); ffc0eaa0: 38 7f 00 34 addi r3,r31,52 ffc0eaa4: 4b ff a7 35 bl ffc091d8 <_API_extensions_Add> <== ALWAYS TAKEN /* * If we supported MP, then here we would ... * Register the MP Process Packet routine. */ } ffc0eaa8: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc0eaac: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc0eab0: 38 21 00 10 addi r1,r1,16 ffc0eab4: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0eab8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ed80 <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) { ffc0ed80: 94 21 ff f0 stwu r1,-16(r1) ffc0ed84: 7c 08 02 a6 mflr r0 ffc0ed88: 90 01 00 14 stw r0,20(r1) ffc0ed8c: 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 ]; ffc0ed90: 83 e4 01 48 lwz r31,328(r4) */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) { ffc0ed94: 93 c1 00 08 stw r30,8(r1) ffc0ed98: 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 ); ffc0ed9c: 38 7f 00 90 addi r3,r31,144 ffc0eda0: 48 00 15 a1 bl ffc10340 <_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 ) { ffc0eda4: 80 1e 00 1c lwz r0,28(r30) ffc0eda8: 3d 20 00 00 lis r9,0 ffc0edac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0edb0: 88 89 26 a4 lbz r4,9892(r9) ffc0edb4: 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; ffc0edb8: 90 7e 00 78 stw r3,120(r30) ffc0edbc: 7c 80 20 50 subf r4,r0,r4 new_priority = _POSIX_Priority_To_core( api->ss_high_priority ); the_thread->real_priority = new_priority; ffc0edc0: 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 ) { ffc0edc4: 40 9e 00 10 bne- cr7,ffc0edd4 <_POSIX_Threads_Sporadic_budget_TSR+0x54> <== NEVER TAKEN /* * If this would make them less important, then do not change it. */ if ( the_thread->current_priority > new_priority ) { ffc0edc8: 80 1e 00 14 lwz r0,20(r30) ffc0edcc: 7f 80 20 40 cmplw cr7,r0,r4 ffc0edd0: 41 9d 00 38 bgt- cr7,ffc0ee08 <_POSIX_Threads_Sporadic_budget_TSR+0x88> #endif } } /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.ss_replenish_period ); ffc0edd4: 38 7f 00 88 addi r3,r31,136 ffc0edd8: 48 00 15 69 bl ffc10340 <_Timespec_To_ticks> <== ALWAYS TAKEN ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0eddc: 38 9f 00 9c addi r4,r31,156 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0ede0: 90 7f 00 a8 stw r3,168(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0ede4: 3c 60 00 00 lis r3,0 ffc0ede8: 38 63 2d 48 addi r3,r3,11592 ffc0edec: 4b ff d9 15 bl ffc0c700 <_Watchdog_Insert> <== ALWAYS TAKEN _Watchdog_Insert_ticks( &api->Sporadic_timer, ticks ); } ffc0edf0: 80 01 00 14 lwz r0,20(r1) ffc0edf4: 83 c1 00 08 lwz r30,8(r1) ffc0edf8: 7c 08 03 a6 mtlr r0 ffc0edfc: 83 e1 00 0c lwz r31,12(r1) ffc0ee00: 38 21 00 10 addi r1,r1,16 ffc0ee04: 4e 80 00 20 blr <== ALWAYS TAKEN if ( the_thread->resource_count == 0 ) { /* * If this would make them less important, then do not change it. */ if ( the_thread->current_priority > new_priority ) { _Thread_Change_priority( the_thread, new_priority, true ); ffc0ee08: 7f c3 f3 78 mr r3,r30 ffc0ee0c: 38 a0 00 01 li r5,1 ffc0ee10: 4b ff ba f9 bl ffc0a908 <_Thread_Change_priority> <== ALWAYS TAKEN #endif } } /* ticks is guaranteed to be at least one */ ticks = _Timespec_To_ticks( &api->schedparam.ss_replenish_period ); ffc0ee14: 38 7f 00 88 addi r3,r31,136 ffc0ee18: 48 00 15 29 bl ffc10340 <_Timespec_To_ticks> <== ALWAYS TAKEN ffc0ee1c: 38 9f 00 9c addi r4,r31,156 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0ee20: 90 7f 00 a8 stw r3,168(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0ee24: 3c 60 00 00 lis r3,0 ffc0ee28: 38 63 2d 48 addi r3,r3,11592 ffc0ee2c: 4b ff d8 d5 bl ffc0c700 <_Watchdog_Insert> <== ALWAYS TAKEN _Watchdog_Insert_ticks( &api->Sporadic_timer, ticks ); } ffc0ee30: 80 01 00 14 lwz r0,20(r1) ffc0ee34: 83 c1 00 08 lwz r30,8(r1) ffc0ee38: 7c 08 03 a6 mtlr r0 ffc0ee3c: 83 e1 00 0c lwz r31,12(r1) ffc0ee40: 38 21 00 10 addi r1,r1,16 ffc0ee44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ed14 <_POSIX_Threads_Sporadic_budget_callout>: * _POSIX_Threads_Sporadic_budget_callout */ void _POSIX_Threads_Sporadic_budget_callout( Thread_Control *the_thread ) { ffc0ed14: 7c 08 02 a6 mflr r0 ffc0ed18: 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); ffc0ed1c: 3d 40 00 00 lis r10,0 ffc0ed20: 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 ) { ffc0ed24: 80 03 00 1c lwz r0,28(r3) ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0ed28: 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 ) { ffc0ed2c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ed30: 88 8a 26 a4 lbz r4,9892(r10) ffc0ed34: 80 0b 00 84 lwz r0,132(r11) ffc0ed38: 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 */ ffc0ed3c: 38 00 ff ff li r0,-1 new_priority = _POSIX_Priority_To_core( api->schedparam.ss_low_priority ); the_thread->real_priority = new_priority; ffc0ed40: 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 */ ffc0ed44: 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 ) { ffc0ed48: 40 9e 00 10 bne- cr7,ffc0ed58 <_POSIX_Threads_Sporadic_budget_callout+0x44> <== 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 ) { ffc0ed4c: 80 03 00 14 lwz r0,20(r3) ffc0ed50: 7f 80 20 40 cmplw cr7,r0,r4 ffc0ed54: 41 9c 00 14 blt- cr7,ffc0ed68 <_POSIX_Threads_Sporadic_budget_callout+0x54> #if 0 printk( "lower priority\n" ); #endif } } } ffc0ed58: 80 01 00 0c lwz r0,12(r1) ffc0ed5c: 38 21 00 08 addi r1,r1,8 ffc0ed60: 7c 08 03 a6 mtlr r0 ffc0ed64: 4e 80 00 20 blr <== ALWAYS 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 ) { _Thread_Change_priority( the_thread, new_priority, true ); ffc0ed68: 38 a0 00 01 li r5,1 ffc0ed6c: 4b ff bb 9d bl ffc0a908 <_Thread_Change_priority> <== ALWAYS TAKEN #if 0 printk( "lower priority\n" ); #endif } } } ffc0ed70: 80 01 00 0c lwz r0,12(r1) ffc0ed74: 38 21 00 08 addi r1,r1,8 ffc0ed78: 7c 08 03 a6 mtlr r0 ffc0ed7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc117c0 <_POSIX_Threads_cancel_run>: #include void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) { ffc117c0: 94 21 ff e8 stwu r1,-24(r1) ffc117c4: 7c 08 02 a6 mflr r0 ffc117c8: 90 01 00 1c stw r0,28(r1) ffc117cc: 93 a1 00 0c stw r29,12(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 ]; ffc117d0: 83 a3 01 48 lwz r29,328(r3) #include void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) { ffc117d4: 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; ffc117d8: 3b dd 00 dc addi r30,r29,220 POSIX_API_Control *thread_support; ISR_Level level; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; ffc117dc: 80 1d 00 d8 lwz r0,216(r29) #include void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) { ffc117e0: 93 e1 00 14 stw r31,20(r1) POSIX_API_Control *thread_support; ISR_Level level; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; ffc117e4: 7f 80 f0 00 cmpw cr7,r0,r30 thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE; ffc117e8: 38 00 00 01 li r0,1 ffc117ec: 90 1d 00 cc stw r0,204(r29) POSIX_API_Control *thread_support; ISR_Level level; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; ffc117f0: 41 9e 00 50 beq- cr7,ffc11840 <_POSIX_Threads_cancel_run+0x80> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc117f4: 7c 00 00 a6 mfmsr r0 ffc117f8: 7d 30 42 a6 mfsprg r9,0 ffc117fc: 7c 09 48 78 andc r9,r0,r9 ffc11800: 7d 20 01 24 mtmsr r9 thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE; while ( !_Chain_Is_empty( handler_stack ) ) { _ISR_Disable( level ); handler = (POSIX_Cancel_Handler_control *) ffc11804: 83 fe 00 04 lwz r31,4(r30) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc11808: 81 3f 00 00 lwz r9,0(r31) previous = the_node->previous; ffc1180c: 81 7f 00 04 lwz r11,4(r31) next->previous = previous; previous->next = next; ffc11810: 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; ffc11814: 91 69 00 04 stw r11,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc11818: 7c 00 01 24 mtmsr r0 _Chain_Tail( handler_stack )->previous; _Chain_Extract_unprotected( &handler->Node ); _ISR_Enable( level ); (*handler->routine)( handler->arg ); ffc1181c: 80 1f 00 08 lwz r0,8(r31) ffc11820: 80 7f 00 0c lwz r3,12(r31) ffc11824: 7c 09 03 a6 mtctr r0 ffc11828: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Workspace_Free( handler ); ffc1182c: 7f e3 fb 78 mr r3,r31 ffc11830: 4b ff b2 bd bl ffc0caec <_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; ffc11834: 80 1d 00 d8 lwz r0,216(r29) ffc11838: 7f 80 f0 00 cmpw cr7,r0,r30 ffc1183c: 40 9e ff b8 bne+ cr7,ffc117f4 <_POSIX_Threads_cancel_run+0x34> <== NEVER TAKEN (*handler->routine)( handler->arg ); _Workspace_Free( handler ); } } ffc11840: 80 01 00 1c lwz r0,28(r1) ffc11844: 83 a1 00 0c lwz r29,12(r1) ffc11848: 7c 08 03 a6 mtlr r0 ffc1184c: 83 c1 00 10 lwz r30,16(r1) ffc11850: 83 e1 00 14 lwz r31,20(r1) ffc11854: 38 21 00 18 addi r1,r1,24 ffc11858: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1018c <_POSIX_Timer_Insert_helper>: Watchdog_Interval ticks, Objects_Id id, Watchdog_Service_routine_entry TSR, void *arg ) { ffc1018c: 94 21 ff e0 stwu r1,-32(r1) ffc10190: 7c 08 02 a6 mflr r0 ffc10194: 93 41 00 08 stw r26,8(r1) ffc10198: 7c da 33 78 mr r26,r6 ffc1019c: 93 61 00 0c stw r27,12(r1) ffc101a0: 7c fb 3b 78 mr r27,r7 ffc101a4: 93 a1 00 14 stw r29,20(r1) ffc101a8: 7c 7d 1b 78 mr r29,r3 ffc101ac: 93 c1 00 18 stw r30,24(r1) ffc101b0: 7c be 2b 78 mr r30,r5 ffc101b4: 93 e1 00 1c stw r31,28(r1) ffc101b8: 7c 9f 23 78 mr r31,r4 ffc101bc: 90 01 00 24 stw r0,36(r1) ffc101c0: 93 81 00 10 stw r28,16(r1) ISR_Level level; (void) _Watchdog_Remove( timer ); ffc101c4: 4b ff d7 3d bl ffc0d900 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc101c8: 7f 80 00 a6 mfmsr r28 ffc101cc: 7c 10 42 a6 mfsprg r0,0 ffc101d0: 7f 80 00 78 andc r0,r28,r0 ffc101d4: 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 ) { ffc101d8: 80 1d 00 08 lwz r0,8(r29) ffc101dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc101e0: 41 9e 00 34 beq- cr7,ffc10214 <_POSIX_Timer_Insert_helper+0x88> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc101e4: 7f 80 01 24 mtmsr r28 */ _Watchdog_Initialize( timer, TSR, id, arg ); _Watchdog_Insert_ticks( timer, ticks ); _ISR_Enable( level ); return true; } ffc101e8: 80 01 00 24 lwz r0,36(r1) ffc101ec: 38 60 00 00 li r3,0 ffc101f0: 83 41 00 08 lwz r26,8(r1) ffc101f4: 7c 08 03 a6 mtlr r0 ffc101f8: 83 61 00 0c lwz r27,12(r1) ffc101fc: 83 81 00 10 lwz r28,16(r1) ffc10200: 83 a1 00 14 lwz r29,20(r1) ffc10204: 83 c1 00 18 lwz r30,24(r1) ffc10208: 83 e1 00 1c lwz r31,28(r1) ffc1020c: 38 21 00 20 addi r1,r1,32 ffc10210: 4e 80 00 20 blr <== ALWAYS TAKEN Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc10214: 90 1d 00 08 stw r0,8(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc10218: 3c 60 00 00 lis r3,0 ffc1021c: 38 63 2d 88 addi r3,r3,11656 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc10220: 93 5d 00 1c stw r26,28(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc10224: 7f a4 eb 78 mr r4,r29 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc10228: 93 dd 00 20 stw r30,32(r29) the_watchdog->user_data = user_data; ffc1022c: 93 7d 00 24 stw r27,36(r29) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc10230: 93 fd 00 0c stw r31,12(r29) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc10234: 4b ff d5 05 bl ffc0d738 <_Watchdog_Insert> <== ALWAYS TAKEN ffc10238: 7f 80 01 24 mtmsr r28 ffc1023c: 80 01 00 24 lwz r0,36(r1) ffc10240: 38 60 00 01 li r3,1 ffc10244: 83 41 00 08 lwz r26,8(r1) ffc10248: 7c 08 03 a6 mtlr r0 ffc1024c: 83 61 00 0c lwz r27,12(r1) ffc10250: 83 81 00 10 lwz r28,16(r1) ffc10254: 83 a1 00 14 lwz r29,20(r1) ffc10258: 83 c1 00 18 lwz r30,24(r1) ffc1025c: 83 e1 00 1c lwz r31,28(r1) ffc10260: 38 21 00 20 addi r1,r1,32 ffc10264: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ee48 <_POSIX_Timer_Manager_initialization>: * the timers are stored */ void _POSIX_Timer_Manager_initialization(void) { _Objects_Initialize_information( ffc0ee48: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN * Initialize the internal structure in which the data of all * the timers are stored */ void _POSIX_Timer_Manager_initialization(void) { ffc0ee4c: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc0ee50: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN _Objects_Initialize_information( ffc0ee54: 3c 60 00 00 lis r3,0 ffc0ee58: 80 c9 28 50 lwz r6,10320(r9) <== ALWAYS TAKEN ffc0ee5c: 38 63 2f 38 addi r3,r3,12088 ffc0ee60: 38 80 00 03 li r4,3 * Initialize the internal structure in which the data of all * the timers are stored */ void _POSIX_Timer_Manager_initialization(void) { ffc0ee64: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0ee68: 38 a0 00 09 li r5,9 ffc0ee6c: 38 e0 00 74 li r7,116 ffc0ee70: 39 00 00 01 li r8,1 ffc0ee74: 39 20 00 ff li r9,255 ffc0ee78: 4b ff b6 6d bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0ee7c: 80 01 00 0c lwz r0,12(r1) ffc0ee80: 38 21 00 08 addi r1,r1,8 ffc0ee84: 7c 08 03 a6 mtlr r0 ffc0ee88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0892c <_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) { ffc0892c: 94 21 ff f0 stwu r1,-16(r1) ffc08930: 7c 08 02 a6 mflr r0 ffc08934: 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 ) || ffc08938: 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; ffc0893c: 81 24 00 68 lwz r9,104(r4) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc08940: 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) { ffc08944: 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; ffc08948: 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) { ffc0894c: 7c 9f 23 78 mr r31,r4 bool activated; ptimer = (POSIX_Timer_Control *)data; /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; ffc08950: 90 04 00 68 stw r0,104(r4) /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc08954: 40 9e 00 40 bne- cr7,ffc08994 <_POSIX_Timer_TSR+0x68> ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { ffc08958: 80 04 00 58 lwz r0,88(r4) ffc0895c: 2f 80 00 00 cmpwi cr7,r0,0 ffc08960: 40 9e 00 34 bne- cr7,ffc08994 <_POSIX_Timer_TSR+0x68> <== ALWAYS TAKEN /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; } else { /* Indicates that the timer is stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; ffc08964: 38 00 00 04 li r0,4 <== NOT EXECUTED ffc08968: 98 04 00 3c stb r0,60(r4) <== NOT EXECUTED /* * The sending of the signal to the process running the handling function * specified for that signal is simulated */ if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) { ffc0896c: 80 7f 00 38 lwz r3,56(r31) ffc08970: 80 9f 00 44 lwz r4,68(r31) ffc08974: 48 00 72 15 bl ffc0fb88 <== ALWAYS TAKEN } /* After the signal handler returns, the count of expirations of the * timer must be set to 0. */ ptimer->overrun = 0; ffc08978: 38 00 00 00 li r0,0 ffc0897c: 90 1f 00 68 stw r0,104(r31) } ffc08980: 80 01 00 14 lwz r0,20(r1) ffc08984: 83 e1 00 0c lwz r31,12(r1) ffc08988: 38 21 00 10 addi r1,r1,16 ffc0898c: 7c 08 03 a6 mtlr r0 ffc08990: 4e 80 00 20 blr <== ALWAYS TAKEN ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) { activated = _POSIX_Timer_Insert_helper( ffc08994: 80 9f 00 64 lwz r4,100(r31) ffc08998: 3c c0 ff c1 lis r6,-63 ffc0899c: 80 bf 00 08 lwz r5,8(r31) ffc089a0: 38 c6 89 2c addi r6,r6,-30420 ffc089a4: 38 7f 00 10 addi r3,r31,16 ffc089a8: 7f e7 fb 78 mr r7,r31 ffc089ac: 48 00 77 e1 bl ffc1018c <_POSIX_Timer_Insert_helper> <== ALWAYS TAKEN ptimer->ticks, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) ffc089b0: 2f 83 00 00 cmpwi cr7,r3,0 ffc089b4: 41 9e ff cc beq+ cr7,ffc08980 <_POSIX_Timer_TSR+0x54> <== NEVER TAKEN return; /* Store the time when the timer was started again */ _TOD_Get( &ptimer->time ); ffc089b8: 38 7f 00 6c addi r3,r31,108 ffc089bc: 48 00 1e 25 bl ffc0a7e0 <_TOD_Get> <== ALWAYS TAKEN /* The state really did not change but just to be safe */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; ffc089c0: 38 00 00 03 li r0,3 ffc089c4: 98 1f 00 3c stb r0,60(r31) /* Increment the number of expirations. */ ptimer->overrun = ptimer->overrun + 1; /* The timer must be reprogrammed */ if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) || ffc089c8: 4b ff ff a4 b ffc0896c <_POSIX_Timer_TSR+0x40> <== ALWAYS TAKEN ffc0e9cc <_POSIX_signals_Abnormal_termination_handler>: sigset_t _POSIX_signals_Pending; void _POSIX_signals_Abnormal_termination_handler( int signo __attribute__((unused)) ) { ffc0e9cc: 94 21 ff f8 stwu r1,-8(r1) ffc0e9d0: 7c 08 02 a6 mflr r0 exit( 1 ); ffc0e9d4: 38 60 00 01 li r3,1 sigset_t _POSIX_signals_Pending; void _POSIX_signals_Abnormal_termination_handler( int signo __attribute__((unused)) ) { ffc0e9d8: 90 01 00 0c stw r0,12(r1) exit( 1 ); ffc0e9dc: 48 00 49 a9 bl ffc13384 <== ALWAYS TAKEN ffc11798 <_POSIX_signals_Alarm_TSR>: void _POSIX_signals_Alarm_TSR( Objects_Id id __attribute__((unused)), void *argument __attribute__((unused)) ) { ffc11798: 94 21 ff f8 stwu r1,-8(r1) ffc1179c: 7c 08 02 a6 mflr r0 ffc117a0: 90 01 00 0c stw r0,12(r1) int status; status = kill( getpid(), SIGALRM ); ffc117a4: 4b ff ff 19 bl ffc116bc <== ALWAYS TAKEN ffc117a8: 38 80 00 0e li r4,14 ffc117ac: 48 00 01 ad bl ffc11958 <== ALWAYS TAKEN /* XXX can't print from an ISR, should this be fatal? */ } ffc117b0: 80 01 00 0c lwz r0,12(r1) ffc117b4: 38 21 00 08 addi r1,r1,8 ffc117b8: 7c 08 03 a6 mtlr r0 ffc117bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1197c <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) { ffc1197c: 94 21 ff d8 stwu r1,-40(r1) ffc11980: 7c 08 02 a6 mflr r0 ffc11984: 7c a6 2b 78 mr r6,r5 ffc11988: 93 c1 00 20 stw r30,32(r1) siginfo_t siginfo_struct; sigset_t saved_signals_blocked; if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct, ffc1198c: 3b c1 00 08 addi r30,r1,8 ffc11990: 7f c5 f3 78 mr r5,r30 ffc11994: 38 e0 00 01 li r7,1 bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) { ffc11998: 93 a1 00 1c stw r29,28(r1) ffc1199c: 7c 9d 23 78 mr r29,r4 ffc119a0: 93 e1 00 24 stw r31,36(r1) ffc119a4: 7c 7f 1b 78 mr r31,r3 ffc119a8: 90 01 00 2c stw r0,44(r1) ffc119ac: 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, ffc119b0: 48 00 00 b9 bl ffc11a68 <_POSIX_signals_Clear_signals> <== ALWAYS TAKEN ffc119b4: 2f 83 00 00 cmpwi cr7,r3,0 ffc119b8: 41 9e 00 8c beq- cr7,ffc11a44 <_POSIX_signals_Check_signal+0xc8> #endif /* * Just to prevent sending a signal which is currently being ignored. */ if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN ) ffc119bc: 1d 7d 00 0c mulli r11,r29,12 ffc119c0: 3d 40 00 00 lis r10,0 ffc119c4: 39 4a 31 70 addi r10,r10,12656 ffc119c8: 7d 2a 5a 14 add r9,r10,r11 ffc119cc: 80 09 00 08 lwz r0,8(r9) ffc119d0: 2f 80 00 01 cmpwi cr7,r0,1 ffc119d4: 41 9e 00 70 beq- cr7,ffc11a44 <_POSIX_signals_Check_signal+0xc8> <== NEVER TAKEN api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { ffc119d8: 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; ffc119dc: 81 29 00 04 lwz r9,4(r9) /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { ffc119e0: 2f 8b 00 02 cmpwi cr7,r11,2 return false; /* * Block the signals requested in sa_mask */ saved_signals_blocked = api->signals_blocked; ffc119e4: 83 9f 00 c4 lwz r28,196(r31) api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask; ffc119e8: 7d 29 e3 78 or r9,r9,r28 ffc119ec: 91 3f 00 c4 stw r9,196(r31) /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { ffc119f0: 41 9e 00 3c beq- cr7,ffc11a2c <_POSIX_signals_Check_signal+0xb0> &siginfo_struct, NULL /* context is undefined per 1003.1b-1993, p. 66 */ ); break; default: (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo ); ffc119f4: 7f a3 eb 78 mr r3,r29 ffc119f8: 7c 09 03 a6 mtctr r0 ffc119fc: 4c c6 31 82 crclr 4*cr1+eq ffc11a00: 4e 80 04 21 bctrl <== ALWAYS TAKEN * Restore the previous set of blocked signals */ api->signals_blocked = saved_signals_blocked; return true; } ffc11a04: 80 01 00 2c lwz r0,44(r1) } /* * Restore the previous set of blocked signals */ api->signals_blocked = saved_signals_blocked; ffc11a08: 38 60 00 01 li r3,1 ffc11a0c: 93 9f 00 c4 stw r28,196(r31) return true; } ffc11a10: 7c 08 03 a6 mtlr r0 ffc11a14: 83 81 00 18 lwz r28,24(r1) ffc11a18: 83 a1 00 1c lwz r29,28(r1) ffc11a1c: 83 c1 00 20 lwz r30,32(r1) ffc11a20: 83 e1 00 24 lwz r31,36(r1) ffc11a24: 38 21 00 28 addi r1,r1,40 ffc11a28: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Here, the signal handler function executes */ switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) { case SA_SIGINFO: (*_POSIX_signals_Vectors[ signo ].sa_sigaction)( ffc11a2c: 7f a3 eb 78 mr r3,r29 ffc11a30: 7c 09 03 a6 mtctr r0 ffc11a34: 7f c4 f3 78 mr r4,r30 ffc11a38: 38 a0 00 00 li r5,0 ffc11a3c: 4e 80 04 21 bctrl <== ALWAYS TAKEN signo, &siginfo_struct, NULL /* context is undefined per 1003.1b-1993, p. 66 */ ); break; ffc11a40: 4b ff ff c4 b ffc11a04 <_POSIX_signals_Check_signal+0x88> <== ALWAYS TAKEN * Restore the previous set of blocked signals */ api->signals_blocked = saved_signals_blocked; return true; } ffc11a44: 80 01 00 2c lwz r0,44(r1) /* * Restore the previous set of blocked signals */ api->signals_blocked = saved_signals_blocked; return true; ffc11a48: 38 60 00 00 li r3,0 } ffc11a4c: 83 81 00 18 lwz r28,24(r1) ffc11a50: 7c 08 03 a6 mtlr r0 ffc11a54: 83 a1 00 1c lwz r29,28(r1) ffc11a58: 83 c1 00 20 lwz r30,32(r1) ffc11a5c: 83 e1 00 24 lwz r31,36(r1) ffc11a60: 38 21 00 28 addi r1,r1,40 ffc11a64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12f30 <_POSIX_signals_Clear_process_signals>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc12f30: 7d 60 00 a6 mfmsr r11 ffc12f34: 7c 10 42 a6 mfsprg r0,0 ffc12f38: 7d 60 00 78 andc r0,r11,r0 ffc12f3c: 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 ) { ffc12f40: 3d 20 00 00 lis r9,0 ffc12f44: 1c 03 00 0c mulli r0,r3,12 ffc12f48: 39 29 31 70 addi r9,r9,12656 ffc12f4c: 7d 29 00 2e lwzx r9,r9,r0 ffc12f50: 2f 89 00 02 cmpwi cr7,r9,2 ffc12f54: 41 9e 00 40 beq- cr7,ffc12f94 <_POSIX_signals_Clear_process_signals+0x64> if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; ffc12f58: 3d 20 00 00 lis r9,0 ffc12f5c: 80 09 27 e4 lwz r0,10212(r9) ffc12f60: 38 63 ff ff addi r3,r3,-1 ffc12f64: 39 40 ff fe li r10,-2 ffc12f68: 5d 43 18 3e rotlw r3,r10,r3 ffc12f6c: 7c 63 00 38 and r3,r3,r0 if ( !_POSIX_signals_Pending ) ffc12f70: 2f 83 00 00 cmpwi cr7,r3,0 if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; ffc12f74: 90 69 27 e4 stw r3,10212(r9) if ( !_POSIX_signals_Pending ) ffc12f78: 40 9e 00 14 bne- cr7,ffc12f8c <_POSIX_signals_Clear_process_signals+0x5c> <== NEVER TAKEN _Thread_Do_post_task_switch_extension--; ffc12f7c: 3d 20 00 00 lis r9,0 ffc12f80: 81 49 27 a0 lwz r10,10144(r9) ffc12f84: 38 0a ff ff addi r0,r10,-1 ffc12f88: 90 09 27 a0 stw r0,10144(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc12f8c: 7d 60 01 24 mtmsr r11 } _ISR_Enable( level ); } ffc12f90: 4e 80 00 20 blr <== ALWAYS TAKEN ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) ffc12f94: 3d 20 00 00 lis r9,0 ffc12f98: 39 29 33 3c addi r9,r9,13116 ffc12f9c: 7d 49 00 2e lwzx r10,r9,r0 ffc12fa0: 7d 29 02 14 add r9,r9,r0 ffc12fa4: 38 09 00 04 addi r0,r9,4 ffc12fa8: 7f 8a 00 00 cmpw cr7,r10,r0 ffc12fac: 41 be ff ac beq- cr7,ffc12f58 <_POSIX_signals_Clear_process_signals+0x28> <== ALWAYS TAKEN ffc12fb0: 7d 60 01 24 mtmsr r11 <== NOT EXECUTED _POSIX_signals_Pending &= ~mask; if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; } _ISR_Enable( level ); } ffc12fb4: 4e 80 00 20 blr <== NOT EXECUTED ffc11a68 <_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 ) ffc11a68: 2f 87 00 00 cmpwi cr7,r7,0 int signo, siginfo_t *info, bool is_global, bool check_blocked ) { ffc11a6c: 94 21 ff e8 stwu r1,-24(r1) ffc11a70: 7c 08 02 a6 mflr r0 static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); ffc11a74: 39 20 00 01 li r9,1 ffc11a78: 93 c1 00 10 stw r30,16(r1) ffc11a7c: 90 01 00 1c stw r0,28(r1) ffc11a80: 38 04 ff ff addi r0,r4,-1 ffc11a84: 7d 20 00 30 slw r0,r9,r0 ffc11a88: 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 ) ffc11a8c: 39 20 ff ff li r9,-1 ffc11a90: 41 9e 00 0c beq- cr7,ffc11a9c <_POSIX_signals_Clear_signals+0x34> signals_blocked = ~api->signals_blocked; ffc11a94: 81 23 00 c4 lwz r9,196(r3) ffc11a98: 7d 29 48 f8 not r9,r9 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc11a9c: 7f e0 00 a6 mfmsr r31 ffc11aa0: 7d 70 42 a6 mfsprg r11,0 ffc11aa4: 7f eb 58 78 andc r11,r31,r11 ffc11aa8: 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 ) { ffc11aac: 2f 86 00 00 cmpwi cr7,r6,0 ffc11ab0: 41 9e 00 58 beq- cr7,ffc11b08 <_POSIX_signals_Clear_signals+0xa0> if ( mask & (_POSIX_signals_Pending & signals_blocked) ) { ffc11ab4: 3d 60 00 00 lis r11,0 ffc11ab8: 81 6b 27 e4 lwz r11,10212(r11) ffc11abc: 7c 00 58 38 and r0,r0,r11 ffc11ac0: 7c 08 48 39 and. r8,r0,r9 ffc11ac4: 41 82 00 7c beq- ffc11b40 <_POSIX_signals_Clear_signals+0xd8> if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { ffc11ac8: 1c 04 00 0c mulli r0,r4,12 ffc11acc: 3d 20 00 00 lis r9,0 ffc11ad0: 39 29 31 70 addi r9,r9,12656 ffc11ad4: 7d 29 00 2e lwzx r9,r9,r0 ffc11ad8: 2f 89 00 02 cmpwi cr7,r9,2 ffc11adc: 41 9e 00 84 beq- cr7,ffc11b60 <_POSIX_signals_Clear_signals+0xf8> &psiginfo->Node ); } else do_callout = false; } _POSIX_signals_Clear_process_signals( signo ); ffc11ae0: 7c 83 23 78 mr r3,r4 ffc11ae4: 48 00 14 4d bl ffc12f30 <_POSIX_signals_Clear_process_signals> <== ALWAYS TAKEN ffc11ae8: 38 60 00 01 li r3,1 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc11aec: 7f e0 01 24 mtmsr r31 do_callout = true; } } _ISR_Enable( level ); return do_callout; } ffc11af0: 80 01 00 1c lwz r0,28(r1) ffc11af4: 83 c1 00 10 lwz r30,16(r1) ffc11af8: 7c 08 03 a6 mtlr r0 ffc11afc: 83 e1 00 14 lwz r31,20(r1) ffc11b00: 38 21 00 18 addi r1,r1,24 ffc11b04: 4e 80 00 20 blr <== ALWAYS TAKEN } _POSIX_signals_Clear_process_signals( signo ); do_callout = true; } } else { if ( mask & (api->signals_pending & signals_blocked) ) { ffc11b08: 81 63 00 c8 lwz r11,200(r3) ffc11b0c: 7c 0a 58 38 and r10,r0,r11 ffc11b10: 7d 48 48 39 and. r8,r10,r9 ffc11b14: 41 82 00 2c beq- ffc11b40 <_POSIX_signals_Clear_signals+0xd8> api->signals_pending &= ~mask; ffc11b18: 7d 60 00 78 andc r0,r11,r0 ffc11b1c: 90 03 00 c8 stw r0,200(r3) ffc11b20: 38 60 00 01 li r3,1 ffc11b24: 7f e0 01 24 mtmsr r31 do_callout = true; } } _ISR_Enable( level ); return do_callout; } ffc11b28: 80 01 00 1c lwz r0,28(r1) ffc11b2c: 83 c1 00 10 lwz r30,16(r1) ffc11b30: 7c 08 03 a6 mtlr r0 ffc11b34: 83 e1 00 14 lwz r31,20(r1) ffc11b38: 38 21 00 18 addi r1,r1,24 ffc11b3c: 4e 80 00 20 blr <== ALWAYS TAKEN _POSIX_signals_Clear_process_signals( signo ); do_callout = true; } } else { if ( mask & (api->signals_pending & signals_blocked) ) { api->signals_pending &= ~mask; ffc11b40: 38 60 00 00 li r3,0 ffc11b44: 7f e0 01 24 mtmsr r31 do_callout = true; } } _ISR_Enable( level ); return do_callout; } ffc11b48: 80 01 00 1c lwz r0,28(r1) ffc11b4c: 83 c1 00 10 lwz r30,16(r1) ffc11b50: 7c 08 03 a6 mtlr r0 ffc11b54: 83 e1 00 14 lwz r31,20(r1) ffc11b58: 38 21 00 18 addi r1,r1,24 ffc11b5c: 4e 80 00 20 blr <== ALWAYS TAKEN _ISR_Disable( level ); if ( is_global ) { if ( mask & (_POSIX_signals_Pending & signals_blocked) ) { if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) ffc11b60: 3d 20 00 00 lis r9,0 ffc11b64: 39 29 33 3c addi r9,r9,13116 ffc11b68: 7d 69 02 14 add r11,r9,r0 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc11b6c: 7f c9 00 2e lwzx r30,r9,r0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc11b70: 39 4b 00 04 addi r10,r11,4 ffc11b74: 7f 9e 50 00 cmpw cr7,r30,r10 ffc11b78: 41 9e 00 64 beq- cr7,ffc11bdc <_POSIX_signals_Clear_signals+0x174> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc11b7c: 81 5e 00 00 lwz r10,0(r30) _Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] ); _POSIX_signals_Clear_process_signals( signo ); ffc11b80: 7c 83 23 78 mr r3,r4 ffc11b84: 90 81 00 0c stw r4,12(r1) the_chain->first = new_first; ffc11b88: 7d 49 01 2e stwx r10,r9,r0 new_first->previous = _Chain_Head(the_chain); ffc11b8c: 91 6a 00 04 stw r11,4(r10) ffc11b90: 90 a1 00 08 stw r5,8(r1) ffc11b94: 48 00 13 9d bl ffc12f30 <_POSIX_signals_Clear_process_signals> <== ALWAYS TAKEN Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc11b98: 3d 60 00 00 lis r11,0 ffc11b9c: 39 6b 32 f4 addi r11,r11,13044 * 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 ) { *info = psiginfo->Info; ffc11ba0: 81 5e 00 08 lwz r10,8(r30) ffc11ba4: 91 7e 00 00 stw r11,0(r30) old_last_node = the_chain->last; ffc11ba8: 39 6b ff fc addi r11,r11,-4 ffc11bac: 80 1e 00 0c lwz r0,12(r30) ffc11bb0: 81 1e 00 10 lwz r8,16(r30) ffc11bb4: 81 2b 00 08 lwz r9,8(r11) ffc11bb8: 80 a1 00 08 lwz r5,8(r1) the_chain->last = the_node; ffc11bbc: 93 cb 00 08 stw r30,8(r11) ffc11bc0: 91 05 00 08 stw r8,8(r5) old_last_node->next = the_node; the_node->previous = old_last_node; ffc11bc4: 91 3e 00 04 stw r9,4(r30) ffc11bc8: 91 45 00 00 stw r10,0(r5) ffc11bcc: 90 05 00 04 stw r0,4(r5) 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; ffc11bd0: 93 c9 00 00 stw r30,0(r9) ffc11bd4: 80 81 00 0c lwz r4,12(r1) ffc11bd8: 4b ff ff 08 b ffc11ae0 <_POSIX_signals_Clear_signals+0x78> <== ALWAYS TAKEN if ( is_global ) { if ( mask & (_POSIX_signals_Pending & signals_blocked) ) { if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] ); _POSIX_signals_Clear_process_signals( signo ); ffc11bdc: 7c 83 23 78 mr r3,r4 ffc11be0: 90 81 00 0c stw r4,12(r1) ffc11be4: 48 00 13 4d bl ffc12f30 <_POSIX_signals_Clear_process_signals> <== ALWAYS TAKEN ffc11be8: 80 81 00 0c lwz r4,12(r1) ffc11bec: 4b ff fe f4 b ffc11ae0 <_POSIX_signals_Clear_signals+0x78> <== ALWAYS TAKEN ffc096dc <_POSIX_signals_Get_highest>: ) { int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { if ( set & signo_to_mask( signo ) ) { ffc096dc: 38 00 00 05 li r0,5 ffc096e0: 7c 09 03 a6 mtctr r0 #include int _POSIX_signals_Get_highest( sigset_t set ) { ffc096e4: 39 20 00 1b li r9,27 int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { if ( set & signo_to_mask( signo ) ) { ffc096e8: 39 60 00 01 li r11,1 ffc096ec: 38 09 ff ff addi r0,r9,-1 ffc096f0: 7d 60 00 30 slw r0,r11,r0 ffc096f4: 7c 0a 18 39 and. r10,r0,r3 ffc096f8: 40 82 00 38 bne- ffc09730 <_POSIX_signals_Get_highest+0x54> <== NEVER TAKEN sigset_t set ) { int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { ffc096fc: 39 29 00 01 addi r9,r9,1 ffc09700: 42 00 ff ec bdnz+ ffc096ec <_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 ) ) { ffc09704: 38 00 00 1a li r0,26 sigset_t set ) { int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { ffc09708: 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 ) ) { ffc0970c: 7c 09 03 a6 mtctr r0 ffc09710: 39 60 00 01 li r11,1 ffc09714: 48 00 00 0c b ffc09720 <_POSIX_signals_Get_highest+0x44> <== ALWAYS TAKEN */ #if (SIGHUP != 1) #error "Assumption that SIGHUP==1 violated!!" #endif for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) { ffc09718: 39 29 00 01 addi r9,r9,1 ffc0971c: 42 40 00 14 bdz- ffc09730 <_POSIX_signals_Get_highest+0x54> <== NEVER TAKEN if ( set & signo_to_mask( signo ) ) { ffc09720: 38 09 ff ff addi r0,r9,-1 ffc09724: 7d 60 00 30 slw r0,r11,r0 ffc09728: 7c 0a 18 39 and. r10,r0,r3 ffc0972c: 41 82 ff ec beq+ ffc09718 <_POSIX_signals_Get_highest+0x3c> * a return 0. This routine will NOT be called unless a signal * is pending in the set passed in. */ found_it: return signo; } ffc09730: 7d 23 4b 78 mr r3,r9 ffc09734: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e7c4 <_POSIX_signals_Manager_Initialization>: * * _POSIX_signals_Manager_Initialization */ void _POSIX_signals_Manager_Initialization(void) { ffc0e7c4: 94 21 ff f0 stwu r1,-16(r1) ffc0e7c8: 7c 08 02 a6 mflr r0 assert( sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) ); #endif memcpy( ffc0e7cc: 3c 80 ff c2 lis r4,-62 ffc0e7d0: 3c 60 00 00 lis r3,0 * * _POSIX_signals_Manager_Initialization */ void _POSIX_signals_Manager_Initialization(void) { ffc0e7d4: 90 01 00 14 stw r0,20(r1) uint32_t signo; uint32_t maximum_queued_signals; maximum_queued_signals = Configuration_POSIX_API.maximum_queued_signals; ffc0e7d8: 3d 20 00 00 lis r9,0 assert( sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) ); #endif memcpy( ffc0e7dc: 38 84 fa a4 addi r4,r4,-1372 * * _POSIX_signals_Manager_Initialization */ void _POSIX_signals_Manager_Initialization(void) { ffc0e7e0: 93 e1 00 0c stw r31,12(r1) assert( sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) ); #endif memcpy( ffc0e7e4: 38 a0 01 80 li r5,384 ffc0e7e8: 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; ffc0e7ec: 83 e9 28 54 lwz r31,10324(r9) assert( sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors) ); #endif memcpy( ffc0e7f0: 48 00 57 71 bl ffc13f60 <== ALWAYS TAKEN ); /* * Initialize the set of pending signals for the entire process */ sigemptyset( &_POSIX_signals_Pending ); ffc0e7f4: 3c 60 00 00 lis r3,0 ffc0e7f8: 38 63 27 e4 addi r3,r3,10212 <== ALWAYS TAKEN ffc0e7fc: 48 00 06 d5 bl ffc0eed0 <== ALWAYS TAKEN /* * Initialize the queue we use to block for signals */ _Thread_queue_Initialize( ffc0e800: 3c 60 00 00 lis r3,0 ffc0e804: 3c a0 10 00 lis r5,4096 <== ALWAYS TAKEN ffc0e808: 38 63 32 fc addi r3,r3,13052 ffc0e80c: 60 a5 80 00 ori r5,r5,32768 <== ALWAYS TAKEN ffc0e810: 38 80 00 00 li r4,0 <== ALWAYS TAKEN ffc0e814: 38 c0 00 0b li r6,11 ffc0e818: 4b ff d1 cd bl ffc0b9e4 <_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; ffc0e81c: 38 00 00 1f li r0,31 ffc0e820: 7c 09 03 a6 mtctr r0 ffc0e824: 3d 20 00 00 lis r9,0 ffc0e828: 39 29 33 48 addi r9,r9,13128 ffc0e82c: 39 60 00 00 li r11,0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0e830: 38 09 00 04 addi r0,r9,4 the_chain->permanent_null = NULL; ffc0e834: 91 69 00 04 stw r11,4(r9) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0e838: 90 09 00 00 stw r0,0(r9) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0e83c: 91 29 00 08 stw r9,8(r9) ffc0e840: 39 29 00 0c addi r9,r9,12 <== ALWAYS TAKEN /* XXX status codes */ /* * Allocate the siginfo pools. */ for ( signo=1 ; signo<= SIGRTMAX ; signo++ ) ffc0e844: 42 00 ff ec bdnz+ ffc0e830 <_POSIX_signals_Manager_Initialization+0x6c> _Chain_Initialize_empty( &_POSIX_signals_Siginfo[ signo ] ); if ( maximum_queued_signals ) { ffc0e848: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0e84c: 40 9e 00 64 bne- cr7,ffc0e8b0 <_POSIX_signals_Manager_Initialization+0xec> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0e850: 3d 60 00 00 lis r11,0 ffc0e854: 39 2b 32 f0 addi r9,r11,13040 ffc0e858: 38 09 00 04 addi r0,r9,4 the_chain->permanent_null = NULL; ffc0e85c: 93 e9 00 04 stw r31,4(r9) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0e860: 90 0b 32 f0 stw r0,13040(r11) <== ALWAYS TAKEN the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0e864: 91 29 00 08 stw r9,8(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0e868: 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 ); } ffc0e86c: 83 e1 00 0c lwz r31,12(r1) ffc0e870: 3d 20 00 00 lis r9,0 ffc0e874: 38 00 00 00 li r0,0 ffc0e878: 39 6b 35 24 addi r11,r11,13604 ffc0e87c: 39 29 34 bc addi r9,r9,13500 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0e880: 90 0b 00 24 stw r0,36(r11) <== ALWAYS TAKEN ffc0e884: 90 09 00 24 stw r0,36(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0e888: 90 0b 00 08 stw r0,8(r11) the_watchdog->routine = routine; ffc0e88c: 90 0b 00 1c stw r0,28(r11) the_watchdog->id = id; ffc0e890: 90 0b 00 20 stw r0,32(r11) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0e894: 90 09 00 08 stw r0,8(r9) the_watchdog->routine = routine; ffc0e898: 90 09 00 1c stw r0,28(r9) <== ALWAYS TAKEN the_watchdog->id = id; ffc0e89c: 90 09 00 20 stw r0,32(r9) ffc0e8a0: 80 01 00 14 lwz r0,20(r1) ffc0e8a4: 38 21 00 10 addi r1,r1,16 ffc0e8a8: 7c 08 03 a6 mtlr r0 ffc0e8ac: 4e 80 00 20 blr <== ALWAYS TAKEN */ for ( signo=1 ; signo<= SIGRTMAX ; signo++ ) _Chain_Initialize_empty( &_POSIX_signals_Siginfo[ signo ] ); if ( maximum_queued_signals ) { _Chain_Initialize( ffc0e8b0: 1c 7f 00 14 mulli r3,r31,20 ffc0e8b4: 4b ff e1 bd bl ffc0ca70 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN ffc0e8b8: 7f e5 fb 78 mr r5,r31 ffc0e8bc: 7c 64 1b 78 mr r4,r3 ffc0e8c0: 3c 60 00 00 lis r3,0 ffc0e8c4: 38 63 32 f0 addi r3,r3,13040 ffc0e8c8: 38 c0 00 14 li r6,20 ffc0e8cc: 48 00 0e 55 bl ffc0f720 <_Chain_Initialize> <== ALWAYS TAKEN ffc0e8d0: 4b ff ff 98 b ffc0e868 <_POSIX_signals_Manager_Initialization+0xa4> <== ALWAYS TAKEN ffc0e8d4 <_POSIX_signals_Post_switch_extension>: */ void _POSIX_signals_Post_switch_extension( Thread_Control *the_thread ) { ffc0e8d4: 94 21 ff e8 stwu r1,-24(r1) ffc0e8d8: 7c 08 02 a6 mflr r0 ffc0e8dc: 90 01 00 1c stw r0,28(r1) ffc0e8e0: 93 a1 00 0c stw r29,12(r1) ffc0e8e4: 3f a0 00 00 lis r29,0 ffc0e8e8: 3b bd 27 e4 addi r29,r29,10212 ffc0e8ec: 93 c1 00 10 stw r30,16(r1) ffc0e8f0: 93 e1 00 14 stw r31,20(r1) POSIX_API_Control *api; int signo; ISR_Level level; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0e8f4: 83 c3 01 48 lwz r30,328(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e8f8: 7c 00 00 a6 mfmsr r0 ffc0e8fc: 7d 30 42 a6 mfsprg r9,0 ffc0e900: 7c 09 48 78 andc r9,r0,r9 ffc0e904: 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)) ) { ffc0e908: 81 5d 00 00 lwz r10,0(r29) ffc0e90c: 81 3e 00 c8 lwz r9,200(r30) * 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 & ffc0e910: 81 7e 00 c4 lwz r11,196(r30) (api->signals_pending | _POSIX_signals_Pending)) ) { ffc0e914: 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 & ffc0e918: 7d 2a 58 79 andc. r10,r9,r11 ffc0e91c: 41 82 00 90 beq- ffc0e9ac <_POSIX_signals_Post_switch_extension+0xd8> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e920: 7c 00 01 24 mtmsr r0 ffc0e924: 3b e0 00 1b li r31,27 break; } _ISR_Enable( level ); for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { _POSIX_signals_Check_signal( api, signo, false ); ffc0e928: 7f e4 fb 78 mr r4,r31 ffc0e92c: 38 a0 00 00 li r5,0 ffc0e930: 7f c3 f3 78 mr r3,r30 ffc0e934: 48 00 30 49 bl ffc1197c <_POSIX_signals_Check_signal> <== ALWAYS TAKEN _POSIX_signals_Check_signal( api, signo, true ); ffc0e938: 7f e4 fb 78 mr r4,r31 ffc0e93c: 7f c3 f3 78 mr r3,r30 ffc0e940: 38 a0 00 01 li r5,1 ffc0e944: 48 00 30 39 bl ffc1197c <_POSIX_signals_Check_signal> <== ALWAYS TAKEN _ISR_Enable( level ); break; } _ISR_Enable( level ); for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) { ffc0e948: 2f 9f 00 1f cmpwi cr7,r31,31 ffc0e94c: 3b ff 00 01 addi r31,r31,1 ffc0e950: 40 9e ff d8 bne+ cr7,ffc0e928 <_POSIX_signals_Post_switch_extension+0x54> ffc0e954: 3b e0 00 01 li r31,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 ); ffc0e958: 7f e4 fb 78 mr r4,r31 ffc0e95c: 38 a0 00 00 li r5,0 ffc0e960: 7f c3 f3 78 mr r3,r30 ffc0e964: 48 00 30 19 bl ffc1197c <_POSIX_signals_Check_signal> <== ALWAYS TAKEN _POSIX_signals_Check_signal( api, signo, true ); ffc0e968: 7f e4 fb 78 mr r4,r31 ffc0e96c: 7f c3 f3 78 mr r3,r30 ffc0e970: 38 a0 00 01 li r5,1 ffc0e974: 48 00 30 09 bl ffc1197c <_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++ ) { ffc0e978: 2f 9f 00 1a cmpwi cr7,r31,26 ffc0e97c: 3b ff 00 01 addi r31,r31,1 ffc0e980: 40 9e ff d8 bne+ cr7,ffc0e958 <_POSIX_signals_Post_switch_extension+0x84> static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e984: 7c 00 00 a6 mfmsr r0 ffc0e988: 7d 30 42 a6 mfsprg r9,0 ffc0e98c: 7c 09 48 78 andc r9,r0,r9 ffc0e990: 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)) ) { ffc0e994: 81 5d 00 00 lwz r10,0(r29) ffc0e998: 81 3e 00 c8 lwz r9,200(r30) * 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 & ffc0e99c: 81 7e 00 c4 lwz r11,196(r30) (api->signals_pending | _POSIX_signals_Pending)) ) { ffc0e9a0: 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 & ffc0e9a4: 7d 2a 58 79 andc. r10,r9,r11 ffc0e9a8: 40 82 ff 78 bne+ ffc0e920 <_POSIX_signals_Post_switch_extension+0x4c> <== NEVER TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e9ac: 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 ); } } } ffc0e9b0: 80 01 00 1c lwz r0,28(r1) ffc0e9b4: 83 a1 00 0c lwz r29,12(r1) ffc0e9b8: 7c 08 03 a6 mtlr r0 ffc0e9bc: 83 c1 00 10 lwz r30,16(r1) ffc0e9c0: 83 e1 00 14 lwz r31,20(r1) ffc0e9c4: 38 21 00 18 addi r1,r1,24 ffc0e9c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12fb8 <_POSIX_signals_Set_process_signals>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc12fb8: 7d 60 00 a6 mfmsr r11 ffc12fbc: 7c 10 42 a6 mfsprg r0,0 ffc12fc0: 7d 60 00 78 andc r0,r11,r0 <== ALWAYS TAKEN ffc12fc4: 7c 00 01 24 mtmsr r0 ) { ISR_Level level; _ISR_Disable( level ); if ( !_POSIX_signals_Pending ) ffc12fc8: 3d 20 00 00 lis r9,0 ffc12fcc: 80 09 27 e4 lwz r0,10212(r9) ffc12fd0: 2f 80 00 00 cmpwi cr7,r0,0 ffc12fd4: 40 9e 00 14 bne- cr7,ffc12fe8 <_POSIX_signals_Set_process_signals+0x30> _Thread_Do_post_task_switch_extension++; ffc12fd8: 3d 40 00 00 lis r10,0 ffc12fdc: 81 0a 27 a0 lwz r8,10144(r10) ffc12fe0: 39 08 00 01 addi r8,r8,1 ffc12fe4: 91 0a 27 a0 stw r8,10144(r10) _POSIX_signals_Pending |= mask; ffc12fe8: 7c 60 03 78 or r0,r3,r0 ffc12fec: 90 09 27 e4 stw r0,10212(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc12ff0: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); } ffc12ff4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f070 <_POSIX_signals_Ualarm_TSR>: void _POSIX_signals_Ualarm_TSR( Objects_Id id __attribute__((unused)), void *argument __attribute__((unused)) ) { ffc0f070: 94 21 ff f0 stwu r1,-16(r1) ffc0f074: 7c 08 02 a6 mflr r0 ffc0f078: 93 e1 00 0c stw r31,12(r1) RTEMS_INLINE_ROUTINE void _Watchdog_Reset( Watchdog_Control *the_watchdog ) { (void) _Watchdog_Remove( the_watchdog ); ffc0f07c: 3f e0 00 00 lis r31,0 ffc0f080: 3b ff 34 bc addi r31,r31,13500 ffc0f084: 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 ); ffc0f088: 48 00 26 35 bl ffc116bc <== ALWAYS TAKEN ffc0f08c: 38 80 00 0e li r4,14 ffc0f090: 48 00 28 c9 bl ffc11958 <== ALWAYS TAKEN ffc0f094: 7f e3 fb 78 mr r3,r31 ffc0f098: 4b ff d8 31 bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0f09c: 3c 60 00 00 lis r3,0 ffc0f0a0: 7f e4 fb 78 mr r4,r31 ffc0f0a4: 38 63 2d 48 addi r3,r3,11592 ffc0f0a8: 4b ff d6 59 bl ffc0c700 <_Watchdog_Insert> <== ALWAYS TAKEN /* * If the reset interval is non-zero, reschedule ourselves. */ _Watchdog_Reset( &_POSIX_signals_Ualarm_timer ); } ffc0f0ac: 80 01 00 14 lwz r0,20(r1) ffc0f0b0: 83 e1 00 0c lwz r31,12(r1) ffc0f0b4: 38 21 00 10 addi r1,r1,16 ffc0f0b8: 7c 08 03 a6 mtlr r0 ffc0f0bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12ff8 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { ffc12ff8: 94 21 ff f0 stwu r1,-16(r1) ffc12ffc: 7c 08 02 a6 mflr r0 ffc13000: 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 ) ) { ffc13004: 3c 00 10 00 lis r0,4096 ffc13008: 60 00 80 00 ori r0,r0,32768 ffc1300c: 81 23 00 10 lwz r9,16(r3) bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) { ffc13010: 93 e1 00 0c stw r31,12(r1) ffc13014: 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 ) ) { ffc13018: 7c 0b 48 38 and r11,r0,r9 ffc1301c: 7f 8b 00 00 cmpw cr7,r11,r0 { POSIX_API_Control *api; sigset_t mask; siginfo_t *the_info = NULL; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc13020: 81 43 01 48 lwz r10,328(r3) ffc13024: 39 64 ff ff addi r11,r4,-1 ffc13028: 38 00 00 01 li r0,1 ffc1302c: 7c 0b 58 30 slw r11,r0,r11 /* * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { ffc13030: 41 9e 00 a0 beq- cr7,ffc130d0 <_POSIX_signals_Unblock_thread+0xd8> } /* * Thread is not waiting due to a sigwait. */ if ( ~api->signals_blocked & mask ) { ffc13034: 81 4a 00 c4 lwz r10,196(r10) ffc13038: 7d 68 50 79 andc. r8,r11,r10 ffc1303c: 41 82 00 7c beq- ffc130b8 <_POSIX_signals_Unblock_thread+0xc0> * + Any other combination, do nothing. */ the_thread->do_post_task_switch_extension = true; if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { ffc13040: 75 2b 10 00 andis. r11,r9,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; ffc13044: 98 03 00 74 stb r0,116(r3) if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { ffc13048: 41 82 00 48 beq- ffc13090 <_POSIX_signals_Unblock_thread+0x98> #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) ){ ffc1304c: 71 20 00 08 andi. r0,r9,8 */ the_thread->do_post_task_switch_extension = true; if ( the_thread->current_state & STATES_INTERRUPTIBLE_BY_SIGNAL ) { the_thread->Wait.return_code = EINTR; ffc13050: 38 00 00 04 li r0,4 ffc13054: 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) ){ ffc13058: 41 82 00 60 beq- ffc130b8 <_POSIX_signals_Unblock_thread+0xc0> <== NEVER TAKEN if ( _Watchdog_Is_active( &the_thread->Timer ) ) ffc1305c: 80 03 00 50 lwz r0,80(r3) ffc13060: 2f 80 00 02 cmpwi cr7,r0,2 ffc13064: 41 9e 00 f8 beq- cr7,ffc1315c <_POSIX_signals_Unblock_thread+0x164> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc13068: 3c 80 10 03 lis r4,4099 ffc1306c: 7f e3 fb 78 mr r3,r31 ffc13070: 60 84 ff f8 ori r4,r4,65528 ffc13074: 4b ff 7a 8d bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; } } return false; } ffc13078: 80 01 00 14 lwz r0,20(r1) ffc1307c: 38 60 00 00 li r3,0 ffc13080: 83 e1 00 0c lwz r31,12(r1) ffc13084: 7c 08 03 a6 mtlr r0 ffc13088: 38 21 00 10 addi r1,r1,16 ffc1308c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( _States_Is_delaying(the_thread->current_state) ){ if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { ffc13090: 2f 89 00 00 cmpwi cr7,r9,0 ffc13094: 40 9e 00 24 bne- cr7,ffc130b8 <_POSIX_signals_Unblock_thread+0xc0> <== NEVER TAKEN if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc13098: 3d 20 00 00 lis r9,0 ffc1309c: 81 29 27 98 lwz r9,10136(r9) ffc130a0: 2f 89 00 00 cmpwi cr7,r9,0 ffc130a4: 41 9e 00 14 beq- cr7,ffc130b8 <_POSIX_signals_Unblock_thread+0xc0> ffc130a8: 3d 20 00 00 lis r9,0 ffc130ac: 81 29 27 b0 lwz r9,10160(r9) ffc130b0: 7f 83 48 00 cmpw cr7,r3,r9 ffc130b4: 41 9e 00 98 beq- cr7,ffc1314c <_POSIX_signals_Unblock_thread+0x154> <== ALWAYS TAKEN _ISR_Signals_to_thread_executing = true; ffc130b8: 38 60 00 00 li r3,0 } } return false; } ffc130bc: 80 01 00 14 lwz r0,20(r1) ffc130c0: 83 e1 00 0c lwz r31,12(r1) ffc130c4: 38 21 00 10 addi r1,r1,16 ffc130c8: 7c 08 03 a6 mtlr r0 ffc130cc: 4e 80 00 20 blr <== ALWAYS TAKEN * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { ffc130d0: 80 03 00 30 lwz r0,48(r3) ffc130d4: 7d 68 00 39 and. r8,r11,r0 ffc130d8: 41 82 00 50 beq- ffc13128 <_POSIX_signals_Unblock_thread+0x130> the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { ffc130dc: 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; ffc130e0: 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; ffc130e4: 38 00 00 04 li r0,4 ffc130e8: 90 1f 00 34 stw r0,52(r31) the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { ffc130ec: 41 9e 00 4c beq- cr7,ffc13138 <_POSIX_signals_Unblock_thread+0x140> the_info->si_signo = signo; the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; } else { *the_info = *info; ffc130f0: 81 45 00 08 lwz r10,8(r5) ffc130f4: 81 65 00 00 lwz r11,0(r5) ffc130f8: 80 05 00 04 lwz r0,4(r5) ffc130fc: 91 49 00 08 stw r10,8(r9) ffc13100: 91 69 00 00 stw r11,0(r9) ffc13104: 90 09 00 04 stw r0,4(r9) } _Thread_queue_Extract_with_proxy( the_thread ); ffc13108: 7f e3 fb 78 mr r3,r31 ffc1310c: 4b ff 88 49 bl ffc0b954 <_Thread_queue_Extract_with_proxy> <== ALWAYS TAKEN if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; } } return false; } ffc13110: 80 01 00 14 lwz r0,20(r1) the_info->si_value.sival_int = 0; } else { *the_info = *info; } _Thread_queue_Extract_with_proxy( the_thread ); ffc13114: 38 60 00 01 li r3,1 if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; } } return false; } ffc13118: 83 e1 00 0c lwz r31,12(r1) ffc1311c: 7c 08 03 a6 mtlr r0 ffc13120: 38 21 00 10 addi r1,r1,16 ffc13124: 4e 80 00 20 blr <== ALWAYS TAKEN * Is the thread is specifically waiting for a signal? */ if ( _States_Is_interruptible_signal( the_thread->current_state ) ) { if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) { ffc13128: 80 0a 00 c4 lwz r0,196(r10) ffc1312c: 7d 69 00 79 andc. r9,r11,r0 ffc13130: 40 82 ff ac bne+ ffc130dc <_POSIX_signals_Unblock_thread+0xe4> ffc13134: 4b ff ff 84 b ffc130b8 <_POSIX_signals_Unblock_thread+0xc0> <== ALWAYS TAKEN the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; the_info->si_code = SI_USER; ffc13138: 38 00 00 01 li r0,1 the_info->si_value.sival_int = 0; ffc1313c: 90 a9 00 08 stw r5,8(r9) the_thread->Wait.return_code = EINTR; the_info = (siginfo_t *) the_thread->Wait.return_argument; if ( !info ) { the_info->si_signo = signo; ffc13140: 90 89 00 00 stw r4,0(r9) the_info->si_code = SI_USER; ffc13144: 90 09 00 04 stw r0,4(r9) ffc13148: 4b ff ff c0 b ffc13108 <_POSIX_signals_Unblock_thread+0x110> <== ALWAYS TAKEN (void) _Watchdog_Remove( &the_thread->Timer ); _Thread_Unblock( the_thread ); } } else if ( the_thread->current_state == STATES_READY ) { if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; ffc1314c: 3d 20 00 00 lis r9,0 ffc13150: 98 09 27 cc stb r0,10188(r9) ffc13154: 38 60 00 00 li r3,0 ffc13158: 4b ff ff 64 b ffc130bc <_POSIX_signals_Unblock_thread+0xc4> <== ALWAYS TAKEN _Thread_queue_Extract_with_proxy( the_thread ); else #endif if ( _States_Is_delaying(the_thread->current_state) ){ if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); ffc1315c: 38 63 00 48 addi r3,r3,72 ffc13160: 4b ff 97 69 bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN ffc13164: 4b ff ff 04 b ffc13068 <_POSIX_signals_Unblock_thread+0x70> <== ALWAYS TAKEN ffc0f19c <_Partition_Manager_initialization>: * Output parameters: NONE */ void _Partition_Manager_initialization(void) { _Objects_Initialize_information( ffc0f19c: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Partition_Manager_initialization(void) { ffc0f1a0: 94 21 ff f8 stwu r1,-8(r1) ffc0f1a4: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0f1a8: 3c 60 00 00 lis r3,0 ffc0f1ac: 80 c9 20 84 lwz r6,8324(r9) ffc0f1b0: 38 63 36 0c addi r3,r3,13836 ffc0f1b4: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Partition_Manager_initialization(void) { ffc0f1b8: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0f1bc: 38 a0 00 05 li r5,5 ffc0f1c0: 38 e0 00 30 li r7,48 ffc0f1c4: 39 00 00 00 li r8,0 ffc0f1c8: 39 20 00 04 li r9,4 ffc0f1cc: 4b ff b3 19 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN MP_PACKET_PARTITION, _Partition_MP_Process_packet ); #endif } ffc0f1d0: 80 01 00 0c lwz r0,12(r1) ffc0f1d4: 38 21 00 08 addi r1,r1,8 ffc0f1d8: 7c 08 03 a6 mtlr r0 ffc0f1dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a7d4 <_Protected_heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t size, uintptr_t alignment, uintptr_t boundary ) { ffc0a7d4: 94 21 ff e0 stwu r1,-32(r1) ffc0a7d8: 7c 08 02 a6 mflr r0 ffc0a7dc: 93 e1 00 1c stw r31,28(r1) void *p; _RTEMS_Lock_allocator(); ffc0a7e0: 3f e0 00 00 lis r31,0 Heap_Control *heap, uintptr_t size, uintptr_t alignment, uintptr_t boundary ) { ffc0a7e4: 93 c1 00 18 stw r30,24(r1) ffc0a7e8: 7c 7e 1b 78 mr r30,r3 void *p; _RTEMS_Lock_allocator(); ffc0a7ec: 80 7f 27 a8 lwz r3,10152(r31) Heap_Control *heap, uintptr_t size, uintptr_t alignment, uintptr_t boundary ) { ffc0a7f0: 90 01 00 24 stw r0,36(r1) void *p; _RTEMS_Lock_allocator(); ffc0a7f4: 90 81 00 08 stw r4,8(r1) ffc0a7f8: 90 a1 00 0c stw r5,12(r1) <== ALWAYS TAKEN ffc0a7fc: 90 c1 00 10 stw r6,16(r1) <== ALWAYS TAKEN ffc0a800: 4b ff ea a5 bl ffc092a4 <_API_Mutex_Lock> <== ALWAYS TAKEN p = _Heap_Allocate_aligned_with_boundary( ffc0a804: 7f c3 f3 78 mr r3,r30 ffc0a808: 80 81 00 08 lwz r4,8(r1) ffc0a80c: 80 a1 00 0c lwz r5,12(r1) <== ALWAYS TAKEN ffc0a810: 80 c1 00 10 lwz r6,16(r1) ffc0a814: 48 00 52 19 bl ffc0fa2c <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN ffc0a818: 7c 7e 1b 78 mr r30,r3 <== ALWAYS TAKEN heap, size, alignment, boundary ); _RTEMS_Unlock_allocator(); ffc0a81c: 80 7f 27 a8 lwz r3,10152(r31) ffc0a820: 4b ff eb 05 bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN return p; } ffc0a824: 80 01 00 24 lwz r0,36(r1) ffc0a828: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc0a82c: 83 e1 00 1c lwz r31,28(r1) ffc0a830: 7c 08 03 a6 mtlr r0 ffc0a834: 83 c1 00 18 lwz r30,24(r1) ffc0a838: 38 21 00 20 addi r1,r1,32 ffc0a83c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f57c <_Protected_heap_Extend>: bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc0f57c: 94 21 ff d8 stwu r1,-40(r1) ffc0f580: 7c 08 02 a6 mflr r0 ffc0f584: 93 e1 00 24 stw r31,36(r1) Heap_Extend_status status; uintptr_t amount_extended; _RTEMS_Lock_allocator(); ffc0f588: 3f e0 00 00 lis r31,0 bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc0f58c: 93 c1 00 20 stw r30,32(r1) ffc0f590: 7c 7e 1b 78 mr r30,r3 Heap_Extend_status status; uintptr_t amount_extended; _RTEMS_Lock_allocator(); ffc0f594: 80 7f 28 4c lwz r3,10316(r31) bool _Protected_heap_Extend( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc0f598: 90 01 00 2c stw r0,44(r1) Heap_Extend_status status; uintptr_t amount_extended; _RTEMS_Lock_allocator(); ffc0f59c: 90 81 00 18 stw r4,24(r1) ffc0f5a0: 90 a1 00 1c stw r5,28(r1) ffc0f5a4: 4b ff dc 91 bl ffc0d234 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Extend(the_heap, starting_address, size, &amount_extended); ffc0f5a8: 38 c1 00 08 addi r6,r1,8 ffc0f5ac: 80 81 00 18 lwz r4,24(r1) ffc0f5b0: 7f c3 f3 78 mr r3,r30 ffc0f5b4: 80 a1 00 1c lwz r5,28(r1) ffc0f5b8: 48 00 56 21 bl ffc14bd8 <_Heap_Extend> <== ALWAYS TAKEN ffc0f5bc: 7c 7e 1b 78 mr r30,r3 _RTEMS_Unlock_allocator(); ffc0f5c0: 80 7f 28 4c lwz r3,10316(r31) ffc0f5c4: 4b ff dc f1 bl ffc0d2b4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return (status == HEAP_EXTEND_SUCCESSFUL); } ffc0f5c8: 80 01 00 2c lwz r0,44(r1) ffc0f5cc: 7f c3 00 34 cntlzw r3,r30 ffc0f5d0: 83 e1 00 24 lwz r31,36(r1) ffc0f5d4: 7c 08 03 a6 mtlr r0 ffc0f5d8: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc0f5dc: 83 c1 00 20 lwz r30,32(r1) ffc0f5e0: 38 21 00 28 addi r1,r1,40 ffc0f5e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a840 <_Protected_heap_Free>: bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { ffc0a840: 94 21 ff e8 stwu r1,-24(r1) ffc0a844: 7c 08 02 a6 mflr r0 ffc0a848: 93 e1 00 14 stw r31,20(r1) bool status; _RTEMS_Lock_allocator(); ffc0a84c: 3f e0 00 00 lis r31,0 bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { ffc0a850: 93 c1 00 10 stw r30,16(r1) ffc0a854: 7c 7e 1b 78 mr r30,r3 bool status; _RTEMS_Lock_allocator(); ffc0a858: 80 7f 27 a8 lwz r3,10152(r31) bool _Protected_heap_Free( Heap_Control *the_heap, void *start_address ) { ffc0a85c: 90 01 00 1c stw r0,28(r1) bool status; _RTEMS_Lock_allocator(); ffc0a860: 90 81 00 08 stw r4,8(r1) <== ALWAYS TAKEN ffc0a864: 4b ff ea 41 bl ffc092a4 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Free( the_heap, start_address ); ffc0a868: 7f c3 f3 78 mr r3,r30 ffc0a86c: 80 81 00 08 lwz r4,8(r1) <== ALWAYS TAKEN ffc0a870: 48 00 53 c1 bl ffc0fc30 <_Heap_Free> <== ALWAYS TAKEN ffc0a874: 7c 7e 1b 78 mr r30,r3 <== ALWAYS TAKEN _RTEMS_Unlock_allocator(); ffc0a878: 80 7f 27 a8 lwz r3,10152(r31) ffc0a87c: 4b ff ea a9 bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN return status; } ffc0a880: 80 01 00 1c lwz r0,28(r1) ffc0a884: 7f c3 f3 78 mr r3,r30 ffc0a888: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc0a88c: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0a890: 83 c1 00 10 lwz r30,16(r1) ffc0a894: 38 21 00 18 addi r1,r1,24 ffc0a898: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e598 <_Protected_heap_Get_block_size>: bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, uintptr_t *size ) { ffc1e598: 94 21 ff e8 stwu r1,-24(r1) ffc1e59c: 7c 08 02 a6 mflr r0 ffc1e5a0: 93 e1 00 14 stw r31,20(r1) bool status; _RTEMS_Lock_allocator(); ffc1e5a4: 3f e0 00 00 lis r31,0 bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, uintptr_t *size ) { ffc1e5a8: 93 c1 00 10 stw r30,16(r1) ffc1e5ac: 7c 7e 1b 78 mr r30,r3 bool status; _RTEMS_Lock_allocator(); ffc1e5b0: 80 7f 27 a8 lwz r3,10152(r31) bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, uintptr_t *size ) { ffc1e5b4: 90 01 00 1c stw r0,28(r1) bool status; _RTEMS_Lock_allocator(); ffc1e5b8: 90 81 00 08 stw r4,8(r1) ffc1e5bc: 90 a1 00 0c stw r5,12(r1) ffc1e5c0: 4b fe ac e5 bl ffc092a4 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Size_of_alloc_area( the_heap, starting_address, size ); ffc1e5c4: 7f c3 f3 78 mr r3,r30 ffc1e5c8: 80 81 00 08 lwz r4,8(r1) ffc1e5cc: 80 a1 00 0c lwz r5,12(r1) ffc1e5d0: 48 00 01 fd bl ffc1e7cc <_Heap_Size_of_alloc_area> <== ALWAYS TAKEN ffc1e5d4: 7c 7e 1b 78 mr r30,r3 _RTEMS_Unlock_allocator(); ffc1e5d8: 80 7f 27 a8 lwz r3,10152(r31) ffc1e5dc: 4b fe ad 49 bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN return status; } ffc1e5e0: 80 01 00 1c lwz r0,28(r1) ffc1e5e4: 7f c3 f3 78 mr r3,r30 ffc1e5e8: 83 e1 00 14 lwz r31,20(r1) ffc1e5ec: 7c 08 03 a6 mtlr r0 ffc1e5f0: 83 c1 00 10 lwz r30,16(r1) ffc1e5f4: 38 21 00 18 addi r1,r1,24 ffc1e5f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10b98 <_Protected_heap_Get_free_information>: bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { ffc10b98: 94 21 ff e8 stwu r1,-24(r1) ffc10b9c: 7c 08 02 a6 mflr r0 ffc10ba0: 93 e1 00 14 stw r31,20(r1) /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); ffc10ba4: 3f e0 00 00 lis r31,0 bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { ffc10ba8: 93 c1 00 10 stw r30,16(r1) ffc10bac: 7c 7e 1b 78 mr r30,r3 /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); ffc10bb0: 80 7f 36 50 lwz r3,13904(r31) bool _Protected_heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { ffc10bb4: 90 01 00 1c stw r0,28(r1) /* * TBD: _Heap_Get_free_information does not error check or return status. */ _RTEMS_Lock_allocator(); ffc10bb8: 90 81 00 08 stw r4,8(r1) ffc10bbc: 4b ff e6 a1 bl ffc0f25c <_API_Mutex_Lock> <== ALWAYS TAKEN _Heap_Get_free_information( the_heap, info ); ffc10bc0: 7f c3 f3 78 mr r3,r30 ffc10bc4: 80 81 00 08 lwz r4,8(r1) ffc10bc8: 48 02 31 f5 bl ffc33dbc <_Heap_Get_free_information> <== ALWAYS TAKEN _RTEMS_Unlock_allocator(); ffc10bcc: 80 7f 36 50 lwz r3,13904(r31) ffc10bd0: 4b ff e7 0d bl ffc0f2dc <_API_Mutex_Unlock> <== ALWAYS TAKEN return true; } ffc10bd4: 80 01 00 1c lwz r0,28(r1) ffc10bd8: 38 60 00 01 li r3,1 ffc10bdc: 83 c1 00 10 lwz r30,16(r1) ffc10be0: 7c 08 03 a6 mtlr r0 ffc10be4: 83 e1 00 14 lwz r31,20(r1) ffc10be8: 38 21 00 18 addi r1,r1,24 ffc10bec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc34010 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { ffc34010: 94 21 ff e8 stwu r1,-24(r1) ffc34014: 7c 08 02 a6 mflr r0 ffc34018: 93 c1 00 10 stw r30,16(r1) if ( !the_heap ) ffc3401c: 7c 7e 1b 79 mr. r30,r3 bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { ffc34020: 90 01 00 1c stw r0,28(r1) ffc34024: 93 e1 00 14 stw r31,20(r1) if ( !the_heap ) ffc34028: 41 82 00 4c beq- ffc34074 <_Protected_heap_Get_information+0x64> return false; if ( !the_info ) ffc3402c: 2f 84 00 00 cmpwi cr7,r4,0 ffc34030: 41 9e 00 44 beq- cr7,ffc34074 <_Protected_heap_Get_information+0x64> return false; _RTEMS_Lock_allocator(); ffc34034: 3f e0 00 00 lis r31,0 ffc34038: 90 81 00 08 stw r4,8(r1) ffc3403c: 80 7f 36 50 lwz r3,13904(r31) ffc34040: 4b fd b2 1d bl ffc0f25c <_API_Mutex_Lock> <== ALWAYS TAKEN _Heap_Get_information( the_heap, the_info ); ffc34044: 80 81 00 08 lwz r4,8(r1) ffc34048: 7f c3 f3 78 mr r3,r30 ffc3404c: 48 01 48 05 bl ffc48850 <_Heap_Get_information> <== ALWAYS TAKEN _RTEMS_Unlock_allocator(); ffc34050: 80 7f 36 50 lwz r3,13904(r31) <== ALWAYS TAKEN ffc34054: 4b fd b2 89 bl ffc0f2dc <_API_Mutex_Unlock> <== ALWAYS TAKEN return true; } ffc34058: 80 01 00 1c lwz r0,28(r1) if ( !the_info ) return false; _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); ffc3405c: 38 60 00 01 li r3,1 return true; } ffc34060: 83 c1 00 10 lwz r30,16(r1) ffc34064: 7c 08 03 a6 mtlr r0 ffc34068: 83 e1 00 14 lwz r31,20(r1) ffc3406c: 38 21 00 18 addi r1,r1,24 ffc34070: 4e 80 00 20 blr <== ALWAYS TAKEN ffc34074: 80 01 00 1c lwz r0,28(r1) _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; ffc34078: 38 60 00 00 li r3,0 } ffc3407c: 83 c1 00 10 lwz r30,16(r1) ffc34080: 7c 08 03 a6 mtlr r0 ffc34084: 83 e1 00 14 lwz r31,20(r1) ffc34088: 38 21 00 18 addi r1,r1,24 ffc3408c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a89c <_Protected_heap_Get_size>: uintptr_t _Protected_heap_Get_size( Heap_Control *the_heap ) { return _Heap_Get_size( the_heap ); } ffc0a89c: 80 63 00 2c lwz r3,44(r3) <== ALWAYS TAKEN ffc0a8a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e5fc <_Protected_heap_Resize_block>: bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc1e5fc: 94 21 ff d8 stwu r1,-40(r1) ffc1e600: 7c 08 02 a6 mflr r0 ffc1e604: 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(); ffc1e608: 3f e0 00 00 lis r31,0 bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc1e60c: 93 c1 00 20 stw r30,32(r1) ffc1e610: 7c 7e 1b 78 mr r30,r3 Heap_Resize_status status; uintptr_t old_mem_size; uintptr_t avail_mem_size; _RTEMS_Lock_allocator(); ffc1e614: 80 7f 27 a8 lwz r3,10152(r31) bool _Protected_heap_Resize_block( Heap_Control *the_heap, void *starting_address, uintptr_t size ) { ffc1e618: 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(); ffc1e61c: 90 81 00 18 stw r4,24(r1) ffc1e620: 90 a1 00 1c stw r5,28(r1) ffc1e624: 4b fe ac 81 bl ffc092a4 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Resize_block( ffc1e628: 38 c1 00 08 addi r6,r1,8 ffc1e62c: 80 81 00 18 lwz r4,24(r1) ffc1e630: 38 e1 00 0c addi r7,r1,12 ffc1e634: 80 a1 00 1c lwz r5,28(r1) ffc1e638: 7f c3 f3 78 mr r3,r30 ffc1e63c: 48 00 00 31 bl ffc1e66c <_Heap_Resize_block> <== ALWAYS TAKEN ffc1e640: 7c 7e 1b 78 mr r30,r3 the_heap, starting_address, size, &old_mem_size, &avail_mem_size ); _RTEMS_Unlock_allocator(); ffc1e644: 80 7f 27 a8 lwz r3,10152(r31) ffc1e648: 4b fe ac dd bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN return (status == HEAP_RESIZE_SUCCESSFUL); } ffc1e64c: 80 01 00 2c lwz r0,44(r1) ffc1e650: 7f c3 00 34 cntlzw r3,r30 ffc1e654: 83 e1 00 24 lwz r31,36(r1) ffc1e658: 7c 08 03 a6 mtlr r0 ffc1e65c: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc1e660: 83 c1 00 20 lwz r30,32(r1) ffc1e664: 38 21 00 28 addi r1,r1,40 ffc1e668: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f7f8 <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { ffc0f7f8: 94 21 ff e8 stwu r1,-24(r1) ffc0f7fc: 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 ) { ffc0f800: 3d 20 00 00 lis r9,0 bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { ffc0f804: 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 ) { ffc0f808: 80 09 28 14 lwz r0,10260(r9) bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { ffc0f80c: 93 a1 00 0c stw r29,12(r1) ffc0f810: 7c 7d 1b 78 mr r29,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 ) { ffc0f814: 2f 80 00 00 cmpwi cr7,r0,0 bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { ffc0f818: 93 c1 00 10 stw r30,16(r1) ffc0f81c: 7c 9e 23 78 mr r30,r4 ffc0f820: 93 e1 00 14 stw r31,20(r1) ffc0f824: 7c bf 2b 78 mr r31,r5 ffc0f828: 93 81 00 08 stw r28,8(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 ) { ffc0f82c: 41 9e 00 30 beq- cr7,ffc0f85c <_Protected_heap_Walk+0x64> _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); ffc0f830: 4b ff eb dd bl ffc0e40c <_Heap_Walk> <== ALWAYS TAKEN } return status; } ffc0f834: 80 01 00 1c lwz r0,28(r1) if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); status = _Heap_Walk( the_heap, source, do_dump ); _RTEMS_Unlock_allocator(); } else { status = _Heap_Walk( the_heap, source, do_dump ); ffc0f838: 7c 7f 1b 78 mr r31,r3 } return status; } ffc0f83c: 83 81 00 08 lwz r28,8(r1) ffc0f840: 7c 08 03 a6 mtlr r0 ffc0f844: 7f e3 fb 78 mr r3,r31 ffc0f848: 83 a1 00 0c lwz r29,12(r1) ffc0f84c: 83 c1 00 10 lwz r30,16(r1) ffc0f850: 83 e1 00 14 lwz r31,20(r1) ffc0f854: 38 21 00 18 addi r1,r1,24 ffc0f858: 4e 80 00 20 blr <== ALWAYS TAKEN * a critical section, it should be safe to walk it unlocked. * * NOTE: Dispatching is also disabled during initialization. */ if ( !_Thread_Dispatch_disable_level ) { _RTEMS_Lock_allocator(); ffc0f85c: 3f 80 00 00 lis r28,0 ffc0f860: 80 7c 28 4c lwz r3,10316(r28) ffc0f864: 4b ff d9 d1 bl ffc0d234 <_API_Mutex_Lock> <== ALWAYS TAKEN status = _Heap_Walk( the_heap, source, do_dump ); ffc0f868: 7f c4 f3 78 mr r4,r30 ffc0f86c: 7f e5 fb 78 mr r5,r31 ffc0f870: 7f a3 eb 78 mr r3,r29 ffc0f874: 4b ff eb 99 bl ffc0e40c <_Heap_Walk> <== ALWAYS TAKEN ffc0f878: 7c 7f 1b 78 mr r31,r3 _RTEMS_Unlock_allocator(); ffc0f87c: 80 7c 28 4c lwz r3,10316(r28) ffc0f880: 4b ff da 35 bl ffc0d2b4 <_API_Mutex_Unlock> <== ALWAYS TAKEN } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } ffc0f884: 80 01 00 1c lwz r0,28(r1) ffc0f888: 7f e3 fb 78 mr r3,r31 ffc0f88c: 83 81 00 08 lwz r28,8(r1) ffc0f890: 7c 08 03 a6 mtlr r0 ffc0f894: 83 a1 00 0c lwz r29,12(r1) ffc0f898: 83 c1 00 10 lwz r30,16(r1) ffc0f89c: 83 e1 00 14 lwz r31,20(r1) ffc0f8a0: 38 21 00 18 addi r1,r1,24 ffc0f8a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09094 <_RTEMS_API_Initialize>: * * XXX */ void _RTEMS_API_Initialize(void) { ffc09094: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc09098: 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; ffc0909c: 3d 20 00 00 lis r9,0 * * XXX */ void _RTEMS_API_Initialize(void) { ffc090a0: 90 01 00 0c stw r0,12(r1) /* * Install our API Object Management Table and initialize the * various managers. */ _Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects; ffc090a4: 38 09 31 44 addi r0,r9,12612 ffc090a8: 3d 20 00 00 lis r9,0 ffc090ac: 90 09 2c 28 stw r0,11304(r9) #if defined(RTEMS_MULTIPROCESSING) _Multiprocessing_Manager_initialization(); #endif _RTEMS_tasks_Manager_initialization(); ffc090b0: 48 00 62 f1 bl ffc0f3a0 <_RTEMS_tasks_Manager_initialization> <== ALWAYS TAKEN _Timer_Manager_initialization(); ffc090b4: 48 00 61 b5 bl ffc0f268 <_Timer_Manager_initialization> <== ALWAYS TAKEN _Signal_Manager_initialization(); ffc090b8: 48 00 62 45 bl ffc0f2fc <_Signal_Manager_initialization> <== ALWAYS TAKEN _Event_Manager_initialization(); ffc090bc: 48 00 60 8d bl ffc0f148 <_Event_Manager_initialization> <== ALWAYS TAKEN _Message_queue_Manager_initialization(); ffc090c0: 48 00 60 99 bl ffc0f158 <_Message_queue_Manager_initialization> <== ALWAYS TAKEN _Semaphore_Manager_initialization(); ffc090c4: 48 00 61 f5 bl ffc0f2b8 <_Semaphore_Manager_initialization> <== ALWAYS TAKEN _Partition_Manager_initialization(); ffc090c8: 48 00 60 d5 bl ffc0f19c <_Partition_Manager_initialization> <== ALWAYS TAKEN _Region_Manager_initialization(); ffc090cc: 48 00 61 59 bl ffc0f224 <_Region_Manager_initialization> <== ALWAYS TAKEN _Dual_ported_memory_Manager_initialization(); ffc090d0: 48 00 60 35 bl ffc0f104 <_Dual_ported_memory_Manager_initialization> <== ALWAYS TAKEN _Rate_monotonic_Manager_initialization(); ffc090d4: 48 00 61 0d bl ffc0f1e0 <_Rate_monotonic_Manager_initialization> <== ALWAYS TAKEN _Barrier_Manager_initialization(); ffc090d8: 48 00 5f e9 bl ffc0f0c0 <_Barrier_Manager_initialization> <== ALWAYS TAKEN } ffc090dc: 80 01 00 0c lwz r0,12(r1) ffc090e0: 38 21 00 08 addi r1,r1,8 ffc090e4: 7c 08 03 a6 mtlr r0 ffc090e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f5dc <_RTEMS_Tasks_Invoke_task_variable_dtor>: void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { ffc0f5dc: 94 21 ff f0 stwu r1,-16(r1) ffc0f5e0: 7c 08 02 a6 mflr r0 void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { ffc0f5e4: 3d 20 00 00 lis r9,0 void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { ffc0f5e8: 90 01 00 14 stw r0,20(r1) void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { ffc0f5ec: 80 09 27 b0 lwz r0,10160(r9) void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { ffc0f5f0: 93 e1 00 0c stw r31,12(r1) ffc0f5f4: 7c 9f 23 78 mr r31,r4 void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { ffc0f5f8: 7f 80 18 00 cmpw cr7,r0,r3 ) { void (*dtor)(void *); void *value; dtor = tvp->dtor; ffc0f5fc: 80 04 00 10 lwz r0,16(r4) if (_Thread_Is_executing(the_thread)) { ffc0f600: 41 9e 00 34 beq- cr7,ffc0f634 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x58> value = *tvp->ptr; *tvp->ptr = tvp->gval; } else { value = tvp->tval; ffc0f604: 80 64 00 0c lwz r3,12(r4) } if ( dtor ) ffc0f608: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f60c: 41 9e 00 0c beq- cr7,ffc0f618 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x3c> (*dtor)(value); ffc0f610: 7c 09 03 a6 mtctr r0 ffc0f614: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Workspace_Free(tvp); ffc0f618: 7f e3 fb 78 mr r3,r31 ffc0f61c: 4b ff d4 d1 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN } ffc0f620: 80 01 00 14 lwz r0,20(r1) ffc0f624: 83 e1 00 0c lwz r31,12(r1) ffc0f628: 38 21 00 10 addi r1,r1,16 ffc0f62c: 7c 08 03 a6 mtlr r0 ffc0f630: 4e 80 00 20 blr <== ALWAYS TAKEN void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { value = *tvp->ptr; ffc0f634: 81 24 00 04 lwz r9,4(r4) *tvp->ptr = tvp->gval; ffc0f638: 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; ffc0f63c: 80 69 00 00 lwz r3,0(r9) *tvp->ptr = tvp->gval; ffc0f640: 91 69 00 00 stw r11,0(r9) ffc0f644: 4b ff ff c4 b ffc0f608 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x2c> <== ALWAYS TAKEN ffc0f52c <_RTEMS_tasks_Create_extension>: bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { ffc0f52c: 94 21 ff f0 stwu r1,-16(r1) ffc0f530: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0f534: 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() ) ffc0f538: 3f e0 00 00 lis r31,0 <== ALWAYS TAKEN ffc0f53c: 3b ff 20 70 addi r31,r31,8304 bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { ffc0f540: 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() ) ffc0f544: 88 1f 00 04 lbz r0,4(r31) bool _RTEMS_tasks_Create_extension( Thread_Control *executing, Thread_Control *created ) { ffc0f548: 93 c1 00 08 stw r30,8(r1) <== ALWAYS TAKEN ffc0f54c: 7c 9e 23 78 mr r30,r4 <== ALWAYS TAKEN /* * 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() ) ffc0f550: 7c 00 00 d0 neg r0,r0 <== ALWAYS TAKEN ffc0f554: 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 ); ffc0f558: 38 63 00 20 addi r3,r3,32 <== ALWAYS TAKEN ffc0f55c: 4b ff d5 5d bl ffc0cab8 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !api ) ffc0f560: 7c 6b 1b 79 mr. r11,r3 <== ALWAYS TAKEN ffc0f564: 38 60 00 00 li r3,0 ffc0f568: 41 82 00 5c beq- ffc0f5c4 <_RTEMS_tasks_Create_extension+0x98> return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; api->pending_events = EVENT_SETS_NONE_PENDING; ffc0f56c: 38 00 00 00 li r0,0 <== ALWAYS TAKEN api = _Workspace_Allocate( to_allocate ); if ( !api ) return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; ffc0f570: 91 7e 01 44 stw r11,324(r30) */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; ffc0f574: 98 0b 00 08 stb r0,8(r11) 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() ) { ffc0f578: 89 3f 00 04 lbz r9,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; ffc0f57c: 90 1e 01 54 stw r0,340(r30) if ( rtems_configuration_get_notepads_enabled() ) { ffc0f580: 2f 89 00 00 cmpwi cr7,r9,0 if ( !api ) return false; created->API_Extensions[ THREAD_API_RTEMS ] = api; api->pending_events = EVENT_SETS_NONE_PENDING; ffc0f584: 90 0b 00 00 stw r0,0(r11) api->event_condition = 0; ffc0f588: 90 0b 00 04 stw r0,4(r11) information->handler = NULL; ffc0f58c: 90 0b 00 0c stw r0,12(r11) information->mode_set = RTEMS_DEFAULT_MODES; ffc0f590: 90 0b 00 10 stw r0,16(r11) information->signals_posted = 0; ffc0f594: 90 0b 00 14 stw r0,20(r11) information->signals_pending = 0; ffc0f598: 90 0b 00 18 stw r0,24(r11) information->nest_level = 0; ffc0f59c: 90 0b 00 1c stw r0,28(r11) _ASR_Initialize( &api->Signal ); created->task_variables = NULL; if ( rtems_configuration_get_notepads_enabled() ) { ffc0f5a0: 41 9e 00 20 beq- cr7,ffc0f5c0 <_RTEMS_tasks_Create_extension+0x94> for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; ffc0f5a4: 39 40 00 10 li r10,16 ffc0f5a8: 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() ) { ffc0f5ac: 39 20 00 00 li r9,0 for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; ffc0f5b0: 7d 4b 4a 14 add r10,r11,r9 <== ALWAYS TAKEN ffc0f5b4: 90 0a 00 20 stw r0,32(r10) ffc0f5b8: 39 29 00 04 addi r9,r9,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++) ffc0f5bc: 42 00 ff f4 bdnz+ ffc0f5b0 <_RTEMS_tasks_Create_extension+0x84> ffc0f5c0: 38 60 00 01 li r3,1 api->Notepads[i] = 0; } return true; } ffc0f5c4: 80 01 00 14 lwz r0,20(r1) ffc0f5c8: 83 c1 00 08 lwz r30,8(r1) ffc0f5cc: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0f5d0: 83 e1 00 0c lwz r31,12(r1) ffc0f5d4: 38 21 00 10 addi r1,r1,16 ffc0f5d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f4c0 <_RTEMS_tasks_Delete_extension>: void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { ffc0f4c0: 94 21 ff f0 stwu r1,-16(r1) ffc0f4c4: 7c 08 02 a6 mflr r0 ffc0f4c8: 90 01 00 14 stw r0,20(r1) /* * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; ffc0f4cc: 38 00 00 00 li r0,0 void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { ffc0f4d0: 93 c1 00 08 stw r30,8(r1) ffc0f4d4: 7c 9e 23 78 mr r30,r4 /* * Free per task variable memory */ tvp = deleted->task_variables; ffc0f4d8: 80 84 01 54 lwz r4,340(r4) void _RTEMS_tasks_Delete_extension( Thread_Control *executing, Thread_Control *deleted ) { ffc0f4dc: 93 e1 00 0c stw r31,12(r1) * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { ffc0f4e0: 2f 84 00 00 cmpwi cr7,r4,0 /* * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; ffc0f4e4: 90 1e 01 54 stw r0,340(r30) while (tvp) { ffc0f4e8: 41 9e 00 1c beq- cr7,ffc0f504 <_RTEMS_tasks_Delete_extension+0x44> next = (rtems_task_variable_t *)tvp->next; ffc0f4ec: 83 e4 00 00 lwz r31,0(r4) _RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp ); ffc0f4f0: 7f c3 f3 78 mr r3,r30 ffc0f4f4: 48 00 00 e9 bl ffc0f5dc <_RTEMS_Tasks_Invoke_task_variable_dtor> <== ALWAYS TAKEN * Free per task variable memory */ tvp = deleted->task_variables; deleted->task_variables = NULL; while (tvp) { ffc0f4f8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0f4fc: 7f e4 fb 78 mr r4,r31 ffc0f500: 40 9e ff ec bne+ cr7,ffc0f4ec <_RTEMS_tasks_Delete_extension+0x2c> /* * Free API specific memory */ (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] ); ffc0f504: 80 7e 01 44 lwz r3,324(r30) ffc0f508: 4b ff d5 e5 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL; ffc0f50c: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc0f510: 90 1e 01 44 stw r0,324(r30) } ffc0f514: 80 01 00 14 lwz r0,20(r1) ffc0f518: 83 c1 00 08 lwz r30,8(r1) ffc0f51c: 7c 08 03 a6 mtlr r0 ffc0f520: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc0f524: 38 21 00 10 addi r1,r1,16 ffc0f528: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f36c <_RTEMS_tasks_Initialize_user_tasks>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { ffc0f36c: 7c 08 02 a6 mflr r0 ffc0f370: 94 21 ff f8 stwu r1,-8(r1) if ( _RTEMS_tasks_Initialize_user_tasks_p ) ffc0f374: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { ffc0f378: 90 01 00 0c stw r0,12(r1) if ( _RTEMS_tasks_Initialize_user_tasks_p ) ffc0f37c: 80 09 26 a8 lwz r0,9896(r9) ffc0f380: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f384: 41 9e 00 0c beq- cr7,ffc0f390 <_RTEMS_tasks_Initialize_user_tasks+0x24> (*_RTEMS_tasks_Initialize_user_tasks_p)(); ffc0f388: 7c 09 03 a6 mtctr r0 ffc0f38c: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0f390: 80 01 00 0c lwz r0,12(r1) ffc0f394: 38 21 00 08 addi r1,r1,8 ffc0f398: 7c 08 03 a6 mtlr r0 ffc0f39c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08abc <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08abc: 94 21 ff d8 stwu r1,-40(r1) <== ALWAYS TAKEN ffc08ac0: 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; ffc08ac4: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08ac8: 90 01 00 2c stw r0,44(r1) rtems_initialization_tasks_table *user_tasks; /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; ffc08acc: 39 29 20 70 addi r9,r9,8304 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08ad0: 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; ffc08ad4: 83 e9 00 2c lwz r31,44(r9) * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08ad8: 93 a1 00 1c stw r29,28(r1) maximum = Configuration_RTEMS_API.number_of_initialization_tasks; /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) ffc08adc: 2f 9f 00 00 cmpwi cr7,r31,0 * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { ffc08ae0: 93 81 00 18 stw r28,24(r1) <== ALWAYS TAKEN ffc08ae4: 93 c1 00 20 stw r30,32(r1) /* * Move information into local variables */ user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table; maximum = Configuration_RTEMS_API.number_of_initialization_tasks; ffc08ae8: 83 a9 00 28 lwz r29,40(r9) /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) ffc08aec: 41 9e 00 60 beq- cr7,ffc08b4c <_RTEMS_tasks_Initialize_user_tasks_body+0x90> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { ffc08af0: 2f 9d 00 00 cmpwi cr7,r29,0 ffc08af4: 41 9e 00 58 beq- cr7,ffc08b4c <_RTEMS_tasks_Initialize_user_tasks_body+0x90> <== NEVER TAKEN ffc08af8: 3b c0 00 00 li r30,0 <== ALWAYS TAKEN ffc08afc: 3b 81 00 08 addi r28,r1,8 return_value = rtems_task_create( ffc08b00: 80 7f 00 00 lwz r3,0(r31) ffc08b04: 7f 88 e3 78 mr r8,r28 ffc08b08: 80 9f 00 08 lwz r4,8(r31) ffc08b0c: 80 bf 00 04 lwz r5,4(r31) ffc08b10: 80 df 00 14 lwz r6,20(r31) ffc08b14: 80 ff 00 0c lwz r7,12(r31) ffc08b18: 4b ff fc a9 bl ffc087c0 <== 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 ) ) ffc08b1c: 2c 03 00 00 cmpwi r3,0 ffc08b20: 40 82 00 4c bne- ffc08b6c <_RTEMS_tasks_Initialize_user_tasks_body+0xb0> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( ffc08b24: 80 61 00 08 lwz r3,8(r1) ffc08b28: 80 9f 00 10 lwz r4,16(r31) ffc08b2c: 80 bf 00 18 lwz r5,24(r31) ffc08b30: 48 00 00 4d bl ffc08b7c <== ALWAYS TAKEN id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) ffc08b34: 2c 03 00 00 cmpwi r3,0 ffc08b38: 40 82 00 34 bne- ffc08b6c <_RTEMS_tasks_Initialize_user_tasks_body+0xb0> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { ffc08b3c: 3b de 00 01 addi r30,r30,1 ffc08b40: 7f 9d f0 40 cmplw cr7,r29,r30 ffc08b44: 3b ff 00 1c addi r31,r31,28 ffc08b48: 41 9d ff b8 bgt+ cr7,ffc08b00 <_RTEMS_tasks_Initialize_user_tasks_body+0x44> <== NEVER TAKEN user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); } } ffc08b4c: 80 01 00 2c lwz r0,44(r1) ffc08b50: 83 81 00 18 lwz r28,24(r1) ffc08b54: 7c 08 03 a6 mtlr r0 ffc08b58: 83 a1 00 1c lwz r29,28(r1) ffc08b5c: 83 c1 00 20 lwz r30,32(r1) ffc08b60: 83 e1 00 24 lwz r31,36(r1) ffc08b64: 38 21 00 28 addi r1,r1,40 ffc08b68: 4e 80 00 20 blr <== ALWAYS TAKEN id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); ffc08b6c: 7c 65 1b 78 mr r5,r3 ffc08b70: 38 80 00 01 li r4,1 ffc08b74: 38 60 00 01 li r3,1 ffc08b78: 48 00 12 71 bl ffc09de8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc0f3a0 <_RTEMS_tasks_Manager_initialization>: * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { ffc0f3a0: 94 21 ff f0 stwu r1,-16(r1) _Objects_Initialize_information( ffc0f3a4: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { ffc0f3a8: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN _Objects_Initialize_information( ffc0f3ac: 3c 60 00 00 lis r3,0 ffc0f3b0: 80 c9 20 70 lwz r6,8304(r9) ffc0f3b4: 38 80 00 02 li r4,2 <== ALWAYS TAKEN * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { ffc0f3b8: 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 ); ffc0f3bc: 3f e0 00 00 lis r31,0 _Objects_Initialize_information( ffc0f3c0: 38 a0 00 01 li r5,1 <== ALWAYS TAKEN ffc0f3c4: 38 e0 01 58 li r7,344 * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { ffc0f3c8: 90 01 00 14 stw r0,20(r1) _Objects_Initialize_information( ffc0f3cc: 39 00 00 00 li r8,0 ffc0f3d0: 39 20 00 04 li r9,4 ffc0f3d4: 3b ff 21 bc addi r31,r31,8636 ffc0f3d8: 38 63 2b c4 addi r3,r3,11204 ffc0f3dc: 4b ff b1 09 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN ffc0f3e0: 7f e3 fb 78 mr r3,r31 ffc0f3e4: 48 00 0f e9 bl ffc103cc <_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 ); ffc0f3e8: 38 7f 00 34 addi r3,r31,52 ffc0f3ec: 4b ff 9d ed bl ffc091d8 <_API_extensions_Add> <== ALWAYS TAKEN MP_PACKET_TASKS, _RTEMS_tasks_MP_Process_packet ); #endif } ffc0f3f0: 80 01 00 14 lwz r0,20(r1) ffc0f3f4: 83 e1 00 0c lwz r31,12(r1) ffc0f3f8: 38 21 00 10 addi r1,r1,16 ffc0f3fc: 7c 08 03 a6 mtlr r0 ffc0f400: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f404 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0f404: 94 21 ff d8 stwu r1,-40(r1) <== ALWAYS TAKEN ffc0f408: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0f40c: 90 01 00 2c stw r0,44(r1) ffc0f410: 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 ]; ffc0f414: 83 e3 01 44 lwz r31,324(r3) */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0f418: 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 ) ffc0f41c: 2f 9f 00 00 cmpwi cr7,r31,0 */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { ffc0f420: 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 ) ffc0f424: 41 9e 00 80 beq- cr7,ffc0f4a4 <_RTEMS_tasks_Post_switch_extension+0xa0> <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0f428: 7c 00 00 a6 mfmsr r0 ffc0f42c: 7d 30 42 a6 mfsprg r9,0 ffc0f430: 7c 09 48 78 andc r9,r0,r9 ffc0f434: 7d 20 01 24 mtmsr r9 asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; asr->signals_posted = 0; ffc0f438: 39 20 00 00 li r9,0 */ asr = &api->Signal; _ISR_Disable( level ); signal_set = asr->signals_posted; ffc0f43c: 83 df 00 14 lwz r30,20(r31) asr->signals_posted = 0; ffc0f440: 91 3f 00 14 stw r9,20(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0f444: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ ffc0f448: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0f44c: 41 be 00 58 beq+ cr7,ffc0f4a4 <_RTEMS_tasks_Post_switch_extension+0xa0> return; asr->nest_level += 1; ffc0f450: 81 3f 00 1c lwz r9,28(r31) rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0f454: 3b a1 00 08 addi r29,r1,8 ffc0f458: 80 7f 00 10 lwz r3,16(r31) ffc0f45c: 38 80 00 00 li r4,0 if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; asr->nest_level += 1; ffc0f460: 38 09 00 01 addi r0,r9,1 ffc0f464: 90 1f 00 1c stw r0,28(r31) rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0f468: 60 84 ff ff ori r4,r4,65535 ffc0f46c: 7f a5 eb 78 mr r5,r29 ffc0f470: 48 00 2b 0d bl ffc11f7c <== ALWAYS TAKEN (*asr->handler)( signal_set ); ffc0f474: 80 1f 00 0c lwz r0,12(r31) ffc0f478: 7f c3 f3 78 mr r3,r30 ffc0f47c: 7c 09 03 a6 mtctr r0 ffc0f480: 4e 80 04 21 bctrl <== ALWAYS TAKEN asr->nest_level -= 1; ffc0f484: 81 3f 00 1c lwz r9,28(r31) rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0f488: 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; ffc0f48c: 38 09 ff ff addi r0,r9,-1 ffc0f490: 90 1f 00 1c stw r0,28(r31) rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); ffc0f494: 60 84 ff ff ori r4,r4,65535 ffc0f498: 7f a5 eb 78 mr r5,r29 ffc0f49c: 80 61 00 08 lwz r3,8(r1) ffc0f4a0: 48 00 2a dd bl ffc11f7c <== ALWAYS TAKEN } ffc0f4a4: 80 01 00 2c lwz r0,44(r1) ffc0f4a8: 83 a1 00 1c lwz r29,28(r1) ffc0f4ac: 7c 08 03 a6 mtlr r0 ffc0f4b0: 83 c1 00 20 lwz r30,32(r1) ffc0f4b4: 83 e1 00 24 lwz r31,36(r1) ffc0f4b8: 38 21 00 28 addi r1,r1,40 ffc0f4bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f300 <_RTEMS_tasks_Start_extension>: { RTEMS_API_Control *api; api = started->API_Extensions[ THREAD_API_RTEMS ]; api->pending_events = EVENT_SETS_NONE_PENDING; ffc0f300: 81 24 01 44 lwz r9,324(r4) ffc0f304: 38 00 00 00 li r0,0 ffc0f308: 90 09 00 00 stw r0,0(r9) } ffc0f30c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f310 <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables; ffc0f310: 81 23 01 54 lwz r9,340(r3) while (tvp) { ffc0f314: 2f 89 00 00 cmpwi cr7,r9,0 ffc0f318: 41 9e 00 24 beq- cr7,ffc0f33c <_RTEMS_tasks_Switch_extension+0x2c> tvp->tval = *tvp->ptr; ffc0f31c: 81 69 00 04 lwz r11,4(r9) *tvp->ptr = tvp->gval; ffc0f320: 80 09 00 08 lwz r0,8(r9) * Per Task Variables */ tvp = executing->task_variables; while (tvp) { tvp->tval = *tvp->ptr; ffc0f324: 81 4b 00 00 lwz r10,0(r11) ffc0f328: 91 49 00 0c stw r10,12(r9) *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; ffc0f32c: 81 29 00 00 lwz r9,0(r9) */ tvp = executing->task_variables; while (tvp) { tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; ffc0f330: 90 0b 00 00 stw r0,0(r11) /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { ffc0f334: 2f 89 00 00 cmpwi cr7,r9,0 ffc0f338: 40 9e ff e4 bne+ cr7,ffc0f31c <_RTEMS_tasks_Switch_extension+0xc> <== NEVER TAKEN tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; ffc0f33c: 81 24 01 54 lwz r9,340(r4) <== ALWAYS TAKEN while (tvp) { ffc0f340: 2f 89 00 00 cmpwi cr7,r9,0 ffc0f344: 4d 9e 00 20 beqlr cr7 tvp->gval = *tvp->ptr; ffc0f348: 81 69 00 04 lwz r11,4(r9) *tvp->ptr = tvp->tval; ffc0f34c: 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; ffc0f350: 81 4b 00 00 lwz r10,0(r11) ffc0f354: 91 49 00 08 stw r10,8(r9) *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; ffc0f358: 81 29 00 00 lwz r9,0(r9) } tvp = heir->task_variables; while (tvp) { tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; ffc0f35c: 90 0b 00 00 stw r0,0(r11) *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { ffc0f360: 2f 89 00 00 cmpwi cr7,r9,0 ffc0f364: 40 9e ff e4 bne+ cr7,ffc0f348 <_RTEMS_tasks_Switch_extension+0x38> <== NEVER TAKEN ffc0f368: 4e 80 00 20 blr <== ALWAYS TAKEN ffc47d5c <_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 ) { ffc47d5c: 94 21 ff c0 stwu r1,-64(r1) ffc47d60: 7c 08 02 a6 mflr r0 ffc47d64: 93 c1 00 38 stw r30,56(r1) /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); ffc47d68: 3b c1 00 08 addi r30,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 ) { ffc47d6c: 90 01 00 44 stw r0,68(r1) ffc47d70: 93 61 00 2c stw r27,44(r1) ffc47d74: 7c 9b 23 78 mr r27,r4 ffc47d78: 93 e1 00 3c stw r31,60(r1) ffc47d7c: 7c 7f 1b 78 mr r31,r3 /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); ffc47d80: 7f c3 f3 78 mr r3,r30 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 ) { ffc47d84: 93 81 00 30 stw r28,48(r1) ffc47d88: 7c bc 2b 78 mr r28,r5 ffc47d8c: 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; ffc47d90: 83 bf 00 40 lwz r29,64(r31) /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); ffc47d94: 4b fe ba b9 bl ffc3384c <_TOD_Get_uptime> <== ALWAYS TAKEN _Timestamp_Subtract( ffc47d98: 38 7f 00 4c addi r3,r31,76 ffc47d9c: 7f 65 db 78 mr r5,r27 ffc47da0: 7f c4 f3 78 mr r4,r30 ffc47da4: 4b fc a8 2d bl ffc125d0 <_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) { ffc47da8: 3d 20 00 00 lis r9,0 ffc47dac: 80 09 36 58 lwz r0,13912(r9) ffc47db0: 38 60 00 01 li r3,1 #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; ffc47db4: 81 3d 00 84 lwz r9,132(r29) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc47db8: 7f 9d 00 00 cmpw cr7,r29,r0 #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; ffc47dbc: 81 5d 00 88 lwz r10,136(r29) ffc47dc0: 91 21 00 10 stw r9,16(r1) ffc47dc4: 91 41 00 14 stw r10,20(r1) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { ffc47dc8: 41 9e 00 28 beq- cr7,ffc47df0 <_Rate_monotonic_Get_status+0x94> return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } ffc47dcc: 80 01 00 44 lwz r0,68(r1) ffc47dd0: 83 61 00 2c lwz r27,44(r1) ffc47dd4: 7c 08 03 a6 mtlr r0 ffc47dd8: 83 81 00 30 lwz r28,48(r1) ffc47ddc: 83 a1 00 34 lwz r29,52(r1) ffc47de0: 83 c1 00 38 lwz r30,56(r1) ffc47de4: 83 e1 00 3c lwz r31,60(r1) ffc47de8: 38 21 00 40 addi r1,r1,64 ffc47dec: 4e 80 00 20 blr <== ALWAYS TAKEN if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( ffc47df0: 3b a1 00 18 addi r29,r1,24 ffc47df4: 3c 60 00 00 lis r3,0 ffc47df8: 7f c4 f3 78 mr r4,r30 ffc47dfc: 7f a5 eb 78 mr r5,r29 ffc47e00: 38 63 36 60 addi r3,r3,13920 &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); ffc47e04: 3b c1 00 10 addi r30,r1,16 if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( ffc47e08: 4b fc a7 c9 bl ffc125d0 <_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)) ffc47e0c: 3b ff 00 44 addi r31,r31,68 _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); ffc47e10: 7f a4 eb 78 mr r4,r29 ffc47e14: 7f c3 f3 78 mr r3,r30 ffc47e18: 4b fc a7 5d bl ffc12574 <_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)) ffc47e1c: 7f c3 f3 78 mr r3,r30 ffc47e20: 7f e4 fb 78 mr r4,r31 ffc47e24: 48 00 0c a5 bl ffc48ac8 <_Timespec_Less_than> <== ALWAYS TAKEN ffc47e28: 2f 83 00 00 cmpwi cr7,r3,0 ffc47e2c: 38 60 00 00 li r3,0 ffc47e30: 40 9e ff 9c bne+ cr7,ffc47dcc <_Rate_monotonic_Get_status+0x70> return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract( ffc47e34: 7f e3 fb 78 mr r3,r31 ffc47e38: 7f c4 f3 78 mr r4,r30 ffc47e3c: 7f 85 e3 78 mr r5,r28 ffc47e40: 4b fc a7 91 bl ffc125d0 <_Timespec_Subtract> <== ALWAYS TAKEN ffc47e44: 38 60 00 01 li r3,1 ffc47e48: 4b ff ff 84 b ffc47dcc <_Rate_monotonic_Get_status+0x70> <== ALWAYS TAKEN ffc47ca4 <_Rate_monotonic_Initiate_statistics>: } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { ffc47ca4: 94 21 ff d8 stwu r1,-40(r1) ffc47ca8: 7c 08 02 a6 mflr r0 ffc47cac: 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 ); ffc47cb0: 3b a1 00 08 addi r29,r1,8 } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { ffc47cb4: 90 01 00 2c stw r0,44(r1) ffc47cb8: 93 e1 00 24 stw r31,36(r1) ffc47cbc: 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 ); ffc47cc0: 7f a3 eb 78 mr r3,r29 } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { ffc47cc4: 93 c1 00 20 stw r30,32(r1) Thread_Control *owning_thread = the_period->owner; ffc47cc8: 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 ); ffc47ccc: 4b fe bb 81 bl ffc3384c <_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) { ffc47cd0: 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; ffc47cd4: 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) { ffc47cd8: 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; ffc47cdc: 81 21 00 08 lwz r9,8(r1) <== 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) { ffc47ce0: 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; ffc47ce4: 91 5f 00 50 stw r10,80(r31) ffc47ce8: 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; ffc47cec: 81 3e 00 84 lwz r9,132(r30) ffc47cf0: 81 5e 00 88 lwz r10,136(r30) ffc47cf4: 91 3f 00 44 stw r9,68(r31) ffc47cf8: 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) { ffc47cfc: 41 9e 00 20 beq- cr7,ffc47d1c <_Rate_monotonic_Initiate_statistics+0x78> ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); } #endif } ffc47d00: 80 01 00 2c lwz r0,44(r1) ffc47d04: 83 a1 00 1c lwz r29,28(r1) ffc47d08: 7c 08 03 a6 mtlr r0 ffc47d0c: 83 c1 00 20 lwz r30,32(r1) ffc47d10: 83 e1 00 24 lwz r31,36(r1) ffc47d14: 38 21 00 28 addi r1,r1,40 ffc47d18: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract( ffc47d1c: 3b c1 00 10 addi r30,r1,16 ffc47d20: 3c 60 00 00 lis r3,0 ffc47d24: 7f a4 eb 78 mr r4,r29 ffc47d28: 7f c5 f3 78 mr r5,r30 ffc47d2c: 38 63 36 60 addi r3,r3,13920 ffc47d30: 4b fc a8 a1 bl ffc125d0 <_Timespec_Subtract> <== ALWAYS TAKEN &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); ffc47d34: 38 7f 00 44 addi r3,r31,68 ffc47d38: 7f c4 f3 78 mr r4,r30 ffc47d3c: 4b fc a8 39 bl ffc12574 <_Timespec_Add_to> <== ALWAYS TAKEN } #endif } ffc47d40: 80 01 00 2c lwz r0,44(r1) ffc47d44: 83 a1 00 1c lwz r29,28(r1) ffc47d48: 7c 08 03 a6 mtlr r0 ffc47d4c: 83 c1 00 20 lwz r30,32(r1) ffc47d50: 83 e1 00 24 lwz r31,36(r1) ffc47d54: 38 21 00 28 addi r1,r1,40 ffc47d58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f1e0 <_Rate_monotonic_Manager_initialization>: * Handler. */ void _Rate_monotonic_Manager_initialization(void) { _Objects_Initialize_information( ffc0f1e0: 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) { ffc0f1e4: 94 21 ff f8 stwu r1,-8(r1) ffc0f1e8: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0f1ec: 3c 60 00 00 lis r3,0 ffc0f1f0: 80 c9 20 90 lwz r6,8336(r9) ffc0f1f4: 38 63 36 4c addi r3,r3,13900 ffc0f1f8: 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) { ffc0f1fc: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0f200: 38 a0 00 08 li r5,8 ffc0f204: 38 e0 00 8c li r7,140 ffc0f208: 39 00 00 00 li r8,0 ffc0f20c: 39 20 00 04 li r9,4 <== ALWAYS TAKEN ffc0f210: 4b ff b2 d5 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN , false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0f214: 80 01 00 0c lwz r0,12(r1) ffc0f218: 38 21 00 08 addi r1,r1,8 ffc0f21c: 7c 08 03 a6 mtlr r0 ffc0f220: 4e 80 00 20 blr <== ALWAYS TAKEN ffc481a0 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { ffc481a0: 94 21 ff e0 stwu r1,-32(r1) ffc481a4: 7c 08 02 a6 mflr r0 ffc481a8: 7c 64 1b 78 mr r4,r3 ffc481ac: 3c 60 00 00 lis r3,0 ffc481b0: 90 01 00 24 stw r0,36(r1) ffc481b4: 38 63 6f ec addi r3,r3,28652 ffc481b8: 38 a1 00 08 addi r5,r1,8 ffc481bc: 93 e1 00 1c stw r31,28(r1) ffc481c0: 4b fc 85 21 bl ffc106e0 <_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 ) { ffc481c4: 80 01 00 08 lwz r0,8(r1) ffc481c8: 7c 7f 1b 78 mr r31,r3 ffc481cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc481d0: 40 9e 00 48 bne- cr7,ffc48218 <_Rate_monotonic_Timeout+0x78> <== NEVER TAKEN case OBJECTS_LOCAL: the_thread = the_period->owner; ffc481d4: 80 63 00 40 lwz r3,64(r3) if ( _States_Is_waiting_for_period( the_thread->current_state ) && ffc481d8: 80 03 00 10 lwz r0,16(r3) ffc481dc: 70 09 40 00 andi. r9,r0,16384 ffc481e0: 41 82 00 14 beq- ffc481f4 <_Rate_monotonic_Timeout+0x54> the_thread->Wait.id == the_period->Object.id ) { ffc481e4: 81 23 00 20 lwz r9,32(r3) ffc481e8: 80 1f 00 08 lwz r0,8(r31) ffc481ec: 7f 89 00 00 cmpw cr7,r9,r0 ffc481f0: 41 9e 00 68 beq- cr7,ffc48258 <_Rate_monotonic_Timeout+0xb8> _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 ) { ffc481f4: 80 1f 00 38 lwz r0,56(r31) ffc481f8: 2f 80 00 01 cmpwi cr7,r0,1 ffc481fc: 41 9e 00 30 beq- cr7,ffc4822c <_Rate_monotonic_Timeout+0x8c> _Rate_monotonic_Initiate_statistics( the_period ); _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length ); } else the_period->state = RATE_MONOTONIC_EXPIRED; ffc48200: 38 00 00 04 li r0,4 ffc48204: 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; ffc48208: 3d 20 00 00 lis r9,0 ffc4820c: 81 69 36 18 lwz r11,13848(r9) ffc48210: 38 0b ff ff addi r0,r11,-1 ffc48214: 90 09 36 18 stw r0,13848(r9) case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } ffc48218: 80 01 00 24 lwz r0,36(r1) ffc4821c: 83 e1 00 1c lwz r31,28(r1) ffc48220: 38 21 00 20 addi r1,r1,32 ffc48224: 7c 08 03 a6 mtlr r0 ffc48228: 4e 80 00 20 blr <== ALWAYS TAKEN _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 ) { the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING; ffc4822c: 38 00 00 03 li r0,3 ffc48230: 90 1f 00 38 stw r0,56(r31) _Rate_monotonic_Initiate_statistics( the_period ); ffc48234: 7f e3 fb 78 mr r3,r31 ffc48238: 4b ff fa 6d bl ffc47ca4 <_Rate_monotonic_Initiate_statistics> <== ALWAYS TAKEN Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc4823c: 80 1f 00 3c lwz r0,60(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc48240: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc48244: 90 1f 00 1c stw r0,28(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc48248: 38 63 65 e8 addi r3,r3,26088 ffc4824c: 38 9f 00 10 addi r4,r31,16 ffc48250: 4b fc a8 75 bl ffc12ac4 <_Watchdog_Insert> <== ALWAYS TAKEN ffc48254: 4b ff ff b4 b ffc48208 <_Rate_monotonic_Timeout+0x68> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc48258: 3c 80 10 03 lis r4,4099 ffc4825c: 60 84 ff f8 ori r4,r4,65528 ffc48260: 4b fc 8c 65 bl ffc10ec4 <_Thread_Clear_state> <== ALWAYS TAKEN ffc48264: 4b ff ff d0 b ffc48234 <_Rate_monotonic_Timeout+0x94> <== ALWAYS TAKEN ffc47e4c <_Rate_monotonic_Update_statistics>: } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { ffc47e4c: 94 21 ff d8 stwu r1,-40(r1) ffc47e50: 7c 08 02 a6 mflr r0 ffc47e54: 90 01 00 2c stw r0,44(r1) * Update the counts. */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) ffc47e58: 80 03 00 38 lwz r0,56(r3) /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; ffc47e5c: 81 23 00 54 lwz r9,84(r3) if ( the_period->state == RATE_MONOTONIC_EXPIRED ) ffc47e60: 2f 80 00 04 cmpwi cr7,r0,4 } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { ffc47e64: 93 e1 00 24 stw r31,36(r1) /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; ffc47e68: 38 09 00 01 addi r0,r9,1 } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { ffc47e6c: 93 a1 00 1c stw r29,28(r1) ffc47e70: 7c 7f 1b 78 mr r31,r3 ffc47e74: 93 c1 00 20 stw r30,32(r1) /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; ffc47e78: 90 03 00 54 stw r0,84(r3) if ( the_period->state == RATE_MONOTONIC_EXPIRED ) ffc47e7c: 41 9e 00 f4 beq- cr7,ffc47f70 <_Rate_monotonic_Update_statistics+0x124> /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); ffc47e80: 3b c1 00 10 addi r30,r1,16 ffc47e84: 3b a1 00 08 addi r29,r1,8 ffc47e88: 7f e3 fb 78 mr r3,r31 ffc47e8c: 7f c4 f3 78 mr r4,r30 ffc47e90: 7f a5 eb 78 mr r5,r29 ffc47e94: 4b ff fe c9 bl ffc47d5c <_Rate_monotonic_Get_status> <== ALWAYS TAKEN if (!valid_status) ffc47e98: 2f 83 00 00 cmpwi cr7,r3,0 ffc47e9c: 40 9e 00 20 bne- cr7,ffc47ebc <_Rate_monotonic_Update_statistics+0x70> stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #endif } ffc47ea0: 80 01 00 2c lwz r0,44(r1) ffc47ea4: 83 a1 00 1c lwz r29,28(r1) ffc47ea8: 7c 08 03 a6 mtlr r0 ffc47eac: 83 c1 00 20 lwz r30,32(r1) ffc47eb0: 83 e1 00 24 lwz r31,36(r1) ffc47eb4: 38 21 00 28 addi r1,r1,40 ffc47eb8: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); ffc47ebc: 7f a4 eb 78 mr r4,r29 ffc47ec0: 38 7f 00 6c addi r3,r31,108 ffc47ec4: 4b fc a6 b1 bl ffc12574 <_Timespec_Add_to> <== ALWAYS TAKEN if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) ffc47ec8: 7f a3 eb 78 mr r3,r29 ffc47ecc: 38 9f 00 5c addi r4,r31,92 ffc47ed0: 48 00 0b f9 bl ffc48ac8 <_Timespec_Less_than> <== ALWAYS TAKEN ffc47ed4: 2f 83 00 00 cmpwi cr7,r3,0 ffc47ed8: 41 9e 00 14 beq- cr7,ffc47eec <_Rate_monotonic_Update_statistics+0xa0> stats->min_cpu_time = executed; ffc47edc: 81 21 00 08 lwz r9,8(r1) ffc47ee0: 81 41 00 0c lwz r10,12(r1) <== ALWAYS TAKEN ffc47ee4: 91 3f 00 5c stw r9,92(r31) ffc47ee8: 91 5f 00 60 stw r10,96(r31) if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) ffc47eec: 7f a3 eb 78 mr r3,r29 ffc47ef0: 38 9f 00 64 addi r4,r31,100 ffc47ef4: 48 00 0b 99 bl ffc48a8c <_Timespec_Greater_than> <== ALWAYS TAKEN ffc47ef8: 2f 83 00 00 cmpwi cr7,r3,0 ffc47efc: 41 9e 00 14 beq- cr7,ffc47f10 <_Rate_monotonic_Update_statistics+0xc4> stats->max_cpu_time = executed; ffc47f00: 81 21 00 08 lwz r9,8(r1) ffc47f04: 81 41 00 0c lwz r10,12(r1) ffc47f08: 91 3f 00 64 stw r9,100(r31) ffc47f0c: 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 ); ffc47f10: 7f c4 f3 78 mr r4,r30 ffc47f14: 38 7f 00 84 addi r3,r31,132 ffc47f18: 4b fc a6 5d bl ffc12574 <_Timespec_Add_to> <== ALWAYS TAKEN if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) ffc47f1c: 7f c3 f3 78 mr r3,r30 ffc47f20: 38 9f 00 74 addi r4,r31,116 ffc47f24: 48 00 0b a5 bl ffc48ac8 <_Timespec_Less_than> <== ALWAYS TAKEN ffc47f28: 2f 83 00 00 cmpwi cr7,r3,0 ffc47f2c: 40 9e 00 54 bne- cr7,ffc47f80 <_Rate_monotonic_Update_statistics+0x134> stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) ffc47f30: 7f c3 f3 78 mr r3,r30 ffc47f34: 38 9f 00 7c addi r4,r31,124 ffc47f38: 48 00 0b 55 bl ffc48a8c <_Timespec_Greater_than> <== ALWAYS TAKEN ffc47f3c: 2f 83 00 00 cmpwi cr7,r3,0 ffc47f40: 41 be ff 60 beq- cr7,ffc47ea0 <_Rate_monotonic_Update_statistics+0x54> stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #endif } ffc47f44: 80 01 00 2c lwz r0,44(r1) if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) stats->max_wall_time = since_last_period; ffc47f48: 81 21 00 10 lwz r9,16(r1) stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #endif } ffc47f4c: 7c 08 03 a6 mtlr r0 if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) stats->max_wall_time = since_last_period; ffc47f50: 81 41 00 14 lwz r10,20(r1) stats->min_wall_time = since_last_period; if ( since_last_period > stats->max_wall_time ) stats->max_wall_time = since_last_period; #endif } ffc47f54: 83 a1 00 1c lwz r29,28(r1) if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) stats->max_wall_time = since_last_period; ffc47f58: 91 3f 00 7c stw r9,124(r31) ffc47f5c: 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 } ffc47f60: 83 c1 00 20 lwz r30,32(r1) ffc47f64: 83 e1 00 24 lwz r31,36(r1) ffc47f68: 38 21 00 28 addi r1,r1,40 ffc47f6c: 4e 80 00 20 blr <== ALWAYS TAKEN */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; ffc47f70: 81 23 00 58 lwz r9,88(r3) ffc47f74: 38 09 00 01 addi r0,r9,1 ffc47f78: 90 03 00 58 stw r0,88(r3) ffc47f7c: 4b ff ff 04 b ffc47e80 <_Rate_monotonic_Update_statistics+0x34> <== ALWAYS TAKEN */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) stats->min_wall_time = since_last_period; ffc47f80: 81 21 00 10 lwz r9,16(r1) ffc47f84: 81 41 00 14 lwz r10,20(r1) ffc47f88: 91 3f 00 74 stw r9,116(r31) ffc47f8c: 91 5f 00 78 stw r10,120(r31) ffc47f90: 4b ff ff a0 b ffc47f30 <_Rate_monotonic_Update_statistics+0xe4> <== ALWAYS TAKEN ffc0f224 <_Region_Manager_initialization>: * Output parameters: NONE */ void _Region_Manager_initialization(void) { _Objects_Initialize_information( ffc0f224: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Region_Manager_initialization(void) { ffc0f228: 94 21 ff f8 stwu r1,-8(r1) ffc0f22c: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0f230: 3c 60 00 00 lis r3,0 ffc0f234: 80 c9 20 88 lwz r6,8328(r9) ffc0f238: 38 63 36 8c addi r3,r3,13964 <== ALWAYS TAKEN ffc0f23c: 38 80 00 02 li r4,2 * * Output parameters: NONE */ void _Region_Manager_initialization(void) { ffc0f240: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0f244: 38 a0 00 06 li r5,6 <== ALWAYS TAKEN ffc0f248: 38 e0 00 c0 li r7,192 <== ALWAYS TAKEN ffc0f24c: 39 00 00 00 li r8,0 ffc0f250: 39 20 00 04 li r9,4 <== ALWAYS TAKEN ffc0f254: 4b ff b2 91 bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN MP_PACKET_REGION, 0 /* XXX _Region_MP_Process_packet */ ); #endif } ffc0f258: 80 01 00 0c lwz r0,12(r1) ffc0f25c: 38 21 00 08 addi r1,r1,8 ffc0f260: 7c 08 03 a6 mtlr r0 ffc0f264: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2354c <_Region_Process_queue>: ffc2354c: 3d 20 00 00 lis r9,0 */ void _Region_Process_queue( Region_Control *the_region ) { ffc23550: 94 21 ff e8 stwu r1,-24(r1) ffc23554: 7c 08 02 a6 mflr r0 ffc23558: 81 69 28 68 lwz r11,10344(r9) ffc2355c: 93 c1 00 10 stw r30,16(r1) ffc23560: 7c 7e 1b 78 mr r30,r3 ffc23564: 39 6b 00 01 addi r11,r11,1 ffc23568: 90 01 00 1c stw r0,28(r1) ffc2356c: 93 81 00 08 stw r28,8(r1) ffc23570: 93 a1 00 0c stw r29,12(r1) ffc23574: 93 e1 00 14 stw r31,20(r1) ffc23578: 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(); ffc2357c: 3d 20 00 00 lis r9,0 ffc23580: 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 ); ffc23584: 3b be 00 10 addi r29,r30,16 RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uintptr_t size ) { return _Heap_Allocate( &the_region->Memory, size ); ffc23588: 3b 9e 00 68 addi r28,r30,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(); ffc2358c: 4b ff 89 59 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc23590: 48 00 00 3c b ffc235cc <_Region_Process_queue+0x80> <== ALWAYS TAKEN ffc23594: 80 9f 00 24 lwz r4,36(r31) ffc23598: 4b ff 98 c5 bl ffc1ce5c <_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 ); ffc2359c: 7f e4 fb 78 mr r4,r31 the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) ffc235a0: 7c 60 1b 79 mr. r0,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 ); ffc235a4: 7f a3 eb 78 mr r3,r29 the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) ffc235a8: 41 82 00 40 beq- ffc235e8 <_Region_Process_queue+0x9c> break; *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; ffc235ac: 81 3e 00 64 lwz r9,100(r30) ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; ffc235b0: 81 7f 00 28 lwz r11,40(r31) the_region->number_of_used_blocks += 1; ffc235b4: 39 29 00 01 addi r9,r9,1 ); if ( the_segment == NULL ) break; *(void **)the_thread->Wait.return_argument = the_segment; ffc235b8: 90 0b 00 00 stw r0,0(r11) the_region->number_of_used_blocks += 1; ffc235bc: 91 3e 00 64 stw r9,100(r30) _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); ffc235c0: 48 00 08 e5 bl ffc23ea4 <_Thread_queue_Extract> <== ALWAYS TAKEN the_thread->Wait.return_code = RTEMS_SUCCESSFUL; ffc235c4: 38 00 00 00 li r0,0 ffc235c8: 90 1f 00 34 stw r0,52(r31) /* * 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 ); ffc235cc: 7f a3 eb 78 mr r3,r29 ffc235d0: 48 00 0a 2d bl ffc23ffc <_Thread_queue_First> <== ALWAYS TAKEN ffc235d4: 38 a0 00 00 li r5,0 if ( the_thread == NULL ) ffc235d8: 7c 7f 1b 79 mr. r31,r3 ffc235dc: 38 c0 00 00 li r6,0 ffc235e0: 7f 83 e3 78 mr r3,r28 ffc235e4: 40 82 ff b0 bne+ ffc23594 <_Region_Process_queue+0x48> *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc235e8: 4b ff b7 15 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc235ec: 80 01 00 1c lwz r0,28(r1) ffc235f0: 83 81 00 08 lwz r28,8(r1) ffc235f4: 7c 08 03 a6 mtlr r0 ffc235f8: 83 a1 00 0c lwz r29,12(r1) ffc235fc: 83 c1 00 10 lwz r30,16(r1) ffc23600: 83 e1 00 14 lwz r31,20(r1) ffc23604: 38 21 00 18 addi r1,r1,24 ffc23608: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f2b8 <_Semaphore_Manager_initialization>: * Output parameters: NONE */ void _Semaphore_Manager_initialization(void) { _Objects_Initialize_information( ffc0f2b8: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Semaphore_Manager_initialization(void) { ffc0f2bc: 94 21 ff f8 stwu r1,-8(r1) ffc0f2c0: 7c 08 02 a6 mflr r0 _Objects_Initialize_information( ffc0f2c4: 3c 60 00 00 lis r3,0 ffc0f2c8: 80 c9 20 7c lwz r6,8316(r9) ffc0f2cc: 38 63 2b 84 addi r3,r3,11140 ffc0f2d0: 38 80 00 02 li r4,2 <== ALWAYS TAKEN * * Output parameters: NONE */ void _Semaphore_Manager_initialization(void) { ffc0f2d4: 90 01 00 0c stw r0,12(r1) _Objects_Initialize_information( ffc0f2d8: 38 a0 00 03 li r5,3 ffc0f2dc: 38 e0 00 78 li r7,120 ffc0f2e0: 39 00 00 00 li r8,0 <== ALWAYS TAKEN ffc0f2e4: 39 20 00 04 li r9,4 <== ALWAYS TAKEN ffc0f2e8: 4b ff b1 fd bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN MP_PACKET_SEMAPHORE, _Semaphore_MP_Process_packet ); #endif } ffc0f2ec: 80 01 00 0c lwz r0,12(r1) ffc0f2f0: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc0f2f4: 7c 08 03 a6 mtlr r0 ffc0f2f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08794 <_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]; } ffc08794: 3d 20 ff c2 lis r9,-62 ffc08798: 39 29 f7 84 addi r9,r9,-2172 }; rtems_status_code _Semaphore_Translate_core_mutex_return_code ( uint32_t status ) { ffc0879c: 54 63 10 3a rlwinm r3,r3,2,0,29 #if defined(RTEMS_DEBUG) if ( status > CORE_MUTEX_STATUS_LAST ) return RTEMS_INTERNAL_ERROR; #endif return _Semaphore_Translate_core_mutex_return_code_[status]; } ffc087a0: 7c 69 18 2e lwzx r3,r9,r3 ffc087a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc087a8 <_Semaphore_Translate_core_semaphore_return_code>: }; rtems_status_code _Semaphore_Translate_core_semaphore_return_code ( uint32_t status ) { ffc087a8: 3d 20 ff c2 lis r9,-62 ffc087ac: 38 09 f7 84 addi r0,r9,-2172 ffc087b0: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc087b4: 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]; } ffc087b8: 80 63 00 1c lwz r3,28(r3) ffc087bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f2fc <_Signal_Manager_initialization>: _MPCI_Register_packet_processor( MP_PACKET_SIGNAL, _Signal_MP_Process_packet ); #endif } ffc0f2fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f8e4 <_TOD_Get>: */ void _TOD_Get( struct timespec *time ) { ffc0f8e4: 94 21 ff e0 stwu r1,-32(r1) ffc0f8e8: 7c 08 02 a6 mflr r0 ffc0f8ec: 93 e1 00 1c stw r31,28(r1) ffc0f8f0: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN ffc0f8f4: 90 01 00 24 stw r0,36(r1) ffc0f8f8: 93 c1 00 18 stw r30,24(r1) <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0f8fc: 7f c0 00 a6 mfmsr r30 <== ALWAYS TAKEN ffc0f900: 7c 10 42 a6 mfsprg r0,0 ffc0f904: 7f c0 00 78 andc r0,r30,r0 ffc0f908: 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 ) ffc0f90c: 3d 20 00 00 lis r9,0 ffc0f910: 81 29 27 d8 lwz r9,10200(r9) <== ALWAYS TAKEN /* assume time checked for NULL by caller */ /* _TOD_Now is the native current time */ nanoseconds = 0; _ISR_Disable( level ); now = _TOD_Now; ffc0f914: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc0f918: 39 6b 27 90 addi r11,r11,10128 if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0f91c: 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; ffc0f920: 81 8b 00 04 lwz r12,4(r11) ffc0f924: 81 6b 00 00 lwz r11,0(r11) if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0f928: 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; ffc0f92c: 91 81 00 14 stw r12,20(r1) ffc0f930: 91 61 00 10 stw r11,16(r1) if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0f934: 41 9e 00 10 beq- cr7,ffc0f944 <_TOD_Get+0x60> nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); ffc0f938: 7d 29 03 a6 mtctr r9 ffc0f93c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0f940: 7c 60 1b 78 mr r0,r3 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0f944: 7f c0 01 24 mtmsr r30 _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); ffc0f948: 39 20 00 00 li r9,0 ffc0f94c: 90 01 00 0c stw r0,12(r1) _Timestamp_Add_to( &now, &offset ); ffc0f950: 38 61 00 10 addi r3,r1,16 ffc0f954: 38 81 00 08 addi r4,r1,8 now = _TOD_Now; if ( _Watchdog_Nanoseconds_since_tick_handler ) nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); ffc0f958: 91 21 00 08 stw r9,8(r1) _Timestamp_Add_to( &now, &offset ); ffc0f95c: 4b ff c8 55 bl ffc0c1b0 <_Timespec_Add_to> <== ALWAYS TAKEN _Timestamp_To_timespec( &now, time ); } ffc0f960: 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 ); ffc0f964: 81 21 00 10 lwz r9,16(r1) } ffc0f968: 7c 08 03 a6 mtlr r0 nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); _Timestamp_Add_to( &now, &offset ); _Timestamp_To_timespec( &now, time ); ffc0f96c: 81 41 00 14 lwz r10,20(r1) } ffc0f970: 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( &now, &offset ); _Timestamp_To_timespec( &now, time ); ffc0f974: 91 3f 00 00 stw r9,0(r31) ffc0f978: 91 5f 00 04 stw r10,4(r31) <== ALWAYS TAKEN } ffc0f97c: 83 e1 00 1c lwz r31,28(r1) ffc0f980: 38 21 00 20 addi r1,r1,32 ffc0f984: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f988 <_TOD_Get_uptime>: */ void _TOD_Get_uptime( Timestamp_Control *uptime ) { ffc0f988: 94 21 ff e0 stwu r1,-32(r1) ffc0f98c: 7c 08 02 a6 mflr r0 ffc0f990: 93 e1 00 1c stw r31,28(r1) ffc0f994: 7c 7f 1b 78 mr r31,r3 ffc0f998: 90 01 00 24 stw r0,36(r1) ffc0f99c: 93 c1 00 18 stw r30,24(r1) <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0f9a0: 7f c0 00 a6 mfmsr r30 ffc0f9a4: 7c 10 42 a6 mfsprg r0,0 ffc0f9a8: 7f c0 00 78 andc r0,r30,r0 ffc0f9ac: 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 ) ffc0f9b0: 3d 20 00 00 lis r9,0 ffc0f9b4: 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; ffc0f9b8: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc0f9bc: 39 6b 27 7c addi r11,r11,10108 <== ALWAYS TAKEN if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0f9c0: 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; ffc0f9c4: 81 8b 00 04 lwz r12,4(r11) ffc0f9c8: 81 6b 00 00 lwz r11,0(r11) if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0f9cc: 38 00 00 00 li r0,0 /* assume time checked for NULL by caller */ /* _TOD_Uptime is in native timestamp format */ nanoseconds = 0; _ISR_Disable( level ); up = _TOD_Uptime; ffc0f9d0: 91 81 00 14 stw r12,20(r1) ffc0f9d4: 91 61 00 10 stw r11,16(r1) if ( _Watchdog_Nanoseconds_since_tick_handler ) ffc0f9d8: 41 9e 00 10 beq- cr7,ffc0f9e8 <_TOD_Get_uptime+0x60> nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); ffc0f9dc: 7d 29 03 a6 mtctr r9 ffc0f9e0: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0f9e4: 7c 60 1b 78 mr r0,r3 return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0f9e8: 7f c0 01 24 mtmsr r30 _ISR_Enable( level ); _Timestamp_Set( &offset, 0, nanoseconds ); ffc0f9ec: 39 20 00 00 li r9,0 ffc0f9f0: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Timestamp_Add_to( &up, &offset ); ffc0f9f4: 38 61 00 10 addi r3,r1,16 ffc0f9f8: 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 ); ffc0f9fc: 91 21 00 08 stw r9,8(r1) <== ALWAYS TAKEN _Timestamp_Add_to( &up, &offset ); ffc0fa00: 4b ff c7 b1 bl ffc0c1b0 <_Timespec_Add_to> <== ALWAYS TAKEN *uptime = up; } ffc0fa04: 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; ffc0fa08: 81 21 00 10 lwz r9,16(r1) } ffc0fa0c: 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; ffc0fa10: 81 41 00 14 lwz r10,20(r1) } ffc0fa14: 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; ffc0fa18: 91 3f 00 00 stw r9,0(r31) <== ALWAYS TAKEN ffc0fa1c: 91 5f 00 04 stw r10,4(r31) } ffc0fa20: 83 e1 00 1c lwz r31,28(r1) ffc0fa24: 38 21 00 20 addi r1,r1,32 ffc0fa28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc338f0 <_TOD_Get_uptime_as_timespec>: */ void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { ffc338f0: 94 21 ff e0 stwu r1,-32(r1) ffc338f4: 7c 08 02 a6 mflr r0 ffc338f8: 93 e1 00 1c stw r31,28(r1) ffc338fc: 7c 7f 1b 78 mr r31,r3 Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); ffc33900: 38 61 00 08 addi r3,r1,8 */ void _TOD_Get_uptime_as_timespec( struct timespec *uptime ) { ffc33904: 90 01 00 24 stw r0,36(r1) Timestamp_Control uptime_ts; /* assume time checked for NULL by caller */ _TOD_Get_uptime( &uptime_ts ); ffc33908: 4b ff ff 45 bl ffc3384c <_TOD_Get_uptime> <== ALWAYS TAKEN _Timestamp_To_timespec( &uptime_ts, uptime ); } ffc3390c: 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 ); ffc33910: 81 21 00 08 lwz r9,8(r1) } ffc33914: 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 ); ffc33918: 81 41 00 0c lwz r10,12(r1) ffc3391c: 91 3f 00 00 stw r9,0(r31) ffc33920: 91 5f 00 04 stw r10,4(r31) } ffc33924: 83 e1 00 1c lwz r31,28(r1) ffc33928: 38 21 00 20 addi r1,r1,32 ffc3392c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09914 <_TOD_Handler_initialization>: */ void _TOD_Handler_initialization(void) { /* POSIX format TOD (timespec) */ _Timestamp_Set( &_TOD_Now, TOD_SECONDS_1970_THROUGH_1988, 0 ); ffc09914: 3c e0 21 da lis r7,8666 ffc09918: 3d 60 00 00 lis r11,0 /* Uptime (timespec) */ _Timestamp_Set_to_zero( &_TOD_Uptime ); ffc0991c: 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 ); ffc09920: 60 e7 e5 00 ori r7,r7,58624 ffc09924: 38 00 00 00 li r0,0 ffc09928: 90 eb 27 90 stw r7,10128(r11) ffc0992c: 39 0b 27 90 addi r8,r11,10128 /* Uptime (timespec) */ _Timestamp_Set_to_zero( &_TOD_Uptime ); ffc09930: 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 ); ffc09934: 90 08 00 04 stw r0,4(r8) /* Uptime (timespec) */ _Timestamp_Set_to_zero( &_TOD_Uptime ); /* TOD has not been set */ _TOD_Is_set = false; ffc09938: 3d 60 00 00 lis r11,0 ffc0993c: 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 ); ffc09940: 90 09 27 7c stw r0,10108(r9) ffc09944: 90 0a 00 04 stw r0,4(r10) /* TOD has not been set */ _TOD_Is_set = false; _TOD_Activate(); } ffc09948: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b9d4 <_TOD_Set>: ffc0b9d4: 3d 20 00 00 lis r9,0 */ void _TOD_Set( const struct timespec *time ) { ffc0b9d8: 94 21 ff f0 stwu r1,-16(r1) ffc0b9dc: 7c 08 02 a6 mflr r0 ffc0b9e0: 81 69 28 3c lwz r11,10300(r9) ffc0b9e4: 90 01 00 14 stw r0,20(r1) ffc0b9e8: 39 6b 00 01 addi r11,r11,1 ffc0b9ec: 93 c1 00 08 stw r30,8(r1) ffc0b9f0: 7c 7e 1b 78 mr r30,r3 ffc0b9f4: 93 e1 00 0c stw r31,12(r1) ffc0b9f8: 91 69 28 3c stw r11,10300(r9) long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); ffc0b9fc: 3f e0 00 00 lis r31,0 if ( time->tv_sec < seconds ) ffc0ba00: 80 a3 00 00 lwz r5,0(r3) long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); ffc0ba04: 80 1f 28 5c lwz r0,10332(r31) if ( time->tv_sec < seconds ) ffc0ba08: 7f 80 28 00 cmpw cr7,r0,r5 ffc0ba0c: 41 9d 00 54 bgt- cr7,ffc0ba60 <_TOD_Set+0x8c> Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); ffc0ba10: 3c 60 00 01 lis r3,1 ffc0ba14: 7c a0 28 50 subf r5,r0,r5 ffc0ba18: 38 63 ab 5c addi r3,r3,-21668 ffc0ba1c: 38 80 00 00 li r4,0 ffc0ba20: 48 00 32 d5 bl ffc0ecf4 <_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 ); ffc0ba24: 80 1e 00 04 lwz r0,4(r30) ffc0ba28: 39 3f 28 5c addi r9,r31,10332 <== ALWAYS TAKEN ffc0ba2c: 81 7e 00 00 lwz r11,0(r30) ffc0ba30: 90 09 00 04 stw r0,4(r9) _TOD_Is_set = true; ffc0ba34: 38 00 00 01 li r0,1 ffc0ba38: 3d 20 00 00 lis r9,0 _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 ); ffc0ba3c: 91 7f 28 5c stw r11,10332(r31) _TOD_Is_set = true; ffc0ba40: 98 09 28 44 stb r0,10308(r9) _TOD_Activate(); _Thread_Enable_dispatch(); ffc0ba44: 48 00 19 49 bl ffc0d38c <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc0ba48: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc0ba4c: 83 c1 00 08 lwz r30,8(r1) ffc0ba50: 7c 08 03 a6 mtlr r0 ffc0ba54: 83 e1 00 0c lwz r31,12(r1) ffc0ba58: 38 21 00 10 addi r1,r1,16 ffc0ba5c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ba60: 3c 60 00 01 lis r3,1 ffc0ba64: 7c a5 00 50 subf r5,r5,r0 ffc0ba68: 38 63 ab 5c addi r3,r3,-21668 ffc0ba6c: 38 80 00 01 li r4,1 ffc0ba70: 48 00 32 85 bl ffc0ecf4 <_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 ); ffc0ba74: 80 1e 00 04 lwz r0,4(r30) ffc0ba78: 39 3f 28 5c addi r9,r31,10332 ffc0ba7c: 81 7e 00 00 lwz r11,0(r30) ffc0ba80: 90 09 00 04 stw r0,4(r9) _TOD_Is_set = true; ffc0ba84: 38 00 00 01 li r0,1 ffc0ba88: 3d 20 00 00 lis r9,0 _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 ); ffc0ba8c: 91 7f 28 5c stw r11,10332(r31) _TOD_Is_set = true; ffc0ba90: 98 09 28 44 stb r0,10308(r9) _TOD_Activate(); _Thread_Enable_dispatch(); ffc0ba94: 48 00 18 f9 bl ffc0d38c <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc0ba98: 80 01 00 14 lwz r0,20(r1) ffc0ba9c: 83 c1 00 08 lwz r30,8(r1) ffc0baa0: 7c 08 03 a6 mtlr r0 ffc0baa4: 83 e1 00 0c lwz r31,12(r1) ffc0baa8: 38 21 00 10 addi r1,r1,16 ffc0baac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0994c <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { ffc0994c: 94 21 ff d8 stwu r1,-40(r1) <== ALWAYS TAKEN ffc09950: 7c 08 02 a6 mflr r0 Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); ffc09954: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { ffc09958: 90 01 00 2c stw r0,44(r1) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); ffc0995c: 3c 60 00 00 lis r3,0 ffc09960: 38 63 27 7c addi r3,r3,10108 <== 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() ); ffc09964: 80 09 20 ac lwz r0,8364(r9) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; ffc09968: 3d 20 00 00 lis r9,0 ffc0996c: 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() ); ffc09970: 1c 00 03 e8 mulli r0,r0,1000 * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { ffc09974: 93 e1 00 24 stw r31,36(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; ffc09978: 39 6b 00 01 addi r11,r11,1 <== 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() ); ffc0997c: 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 ); ffc09980: 3b e1 00 08 addi r31,r1,8 /* 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; ffc09984: 91 69 27 c8 stw r11,10184(r9) /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); ffc09988: 7f e4 fb 78 mr r4,r31 { Timestamp_Control tick; uint32_t seconds; /* Convert the tick quantum to a timestamp */ _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); ffc0998c: 39 20 00 00 li r9,0 ffc09990: 91 21 00 08 stw r9,8(r1) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); ffc09994: 48 00 28 1d bl ffc0c1b0 <_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 ); ffc09998: 3c 60 00 00 lis r3,0 ffc0999c: 38 63 27 90 addi r3,r3,10128 ffc099a0: 7f e4 fb 78 mr r4,r31 ffc099a4: 48 00 28 0d bl ffc0c1b0 <_Timespec_Add_to> <== ALWAYS TAKEN while ( seconds ) { ffc099a8: 7c 60 1b 79 mr. r0,r3 ffc099ac: 90 01 00 18 stw r0,24(r1) ffc099b0: 41 82 00 24 beq- ffc099d4 <_TOD_Tickle_ticks+0x88> ffc099b4: 3f e0 00 00 lis r31,0 ffc099b8: 3b ff 2d 3c addi r31,r31,11580 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); ffc099bc: 7f e3 fb 78 mr r3,r31 ffc099c0: 48 00 2f d9 bl ffc0c998 <_Watchdog_Tickle> <== ALWAYS TAKEN ffc099c4: 80 01 00 18 lwz r0,24(r1) ffc099c8: 35 20 ff ff addic. r9,r0,-1 ffc099cc: 91 21 00 18 stw r9,24(r1) ffc099d0: 40 82 ff ec bne+ ffc099bc <_TOD_Tickle_ticks+0x70> _Watchdog_Tickle_seconds(); seconds--; } } ffc099d4: 80 01 00 2c lwz r0,44(r1) ffc099d8: 83 e1 00 24 lwz r31,36(r1) ffc099dc: 38 21 00 28 addi r1,r1,40 ffc099e0: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc099e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09804 <_TOD_To_seconds>: { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; ffc09804: 81 23 00 00 lwz r9,0(r3) ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; ffc09808: 81 63 00 08 lwz r11,8(r3) year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) ffc0980c: 71 20 00 03 andi. r0,r9,3 ) { uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; ffc09810: 39 6b ff ff addi r11,r11,-1 <== ALWAYS TAKEN year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) ffc09814: 41 82 00 88 beq- ffc0989c <_TOD_To_seconds+0x98> time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; ffc09818: 81 43 00 04 lwz r10,4(r3) ffc0981c: 3d 00 ff c2 lis r8,-62 ffc09820: 39 08 58 72 addi r8,r8,22642 ffc09824: 55 4a 08 3c rlwinm r10,r10,1,0,30 ffc09828: 7d 48 52 2e lhzx r10,r8,r10 time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ffc0982c: 39 29 f8 3c addi r9,r9,-1988 ffc09830: 54 00 08 3c rlwinm r0,r0,1,0,30 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 ]; ffc09834: 7d 6a 5a 14 add r11,r10,r11 time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * ffc09838: 3d 40 00 00 lis r10,0 ffc0983c: 39 4a 27 80 addi r10,r10,10112 ffc09840: 55 29 f0 be rlwinm r9,r9,30,2,31 ffc09844: 7c 0a 02 2e lhzx r0,r10,r0 ffc09848: 1d 29 05 b5 mulli r9,r9,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; ffc0984c: 81 43 00 0c lwz r10,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 ) * ffc09850: 7d 20 4a 14 add r9,r0,r9 ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; ffc09854: 7d 29 5a 14 add r9,r9,r11 time *= TOD_SECONDS_PER_DAY; time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc09858: 81 63 00 10 lwz r11,16(r3) 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; ffc0985c: 55 20 48 2c rlwinm r0,r9,9,0,22 time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) ffc09860: 80 63 00 14 lwz r3,20(r3) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc09864: 1d 4a 00 3c mulli r10,r10,60 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; ffc09868: 55 29 38 30 rlwinm r9,r9,7,0,24 ffc0986c: 7c 09 00 50 subf r0,r9,r0 time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc09870: 7d 2a 5a 14 add r9,r10,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; ffc09874: 54 0b 20 36 rlwinm r11,r0,4,0,27 ffc09878: 7c 00 58 50 subf r0,r0,r11 time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc0987c: 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) ffc09880: 3c 63 21 db addis r3,r3,8667 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; ffc09884: 54 0b 20 36 rlwinm r11,r0,4,0,27 time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) ffc09888: 38 63 e5 00 addi r3,r3,-6912 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; ffc0988c: 7c 00 58 50 subf r0,r0,r11 time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) * TOD_SECONDS_PER_MINUTE; time += the_tod->second; ffc09890: 7c 63 4a 14 add r3,r3,r9 time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } ffc09894: 7c 63 02 14 add r3,r3,r0 <== ALWAYS TAKEN ffc09898: 4e 80 00 20 blr <== ALWAYS TAKEN time = the_tod->day - 1; year_mod_4 = the_tod->year & 3; if ( year_mod_4 == 0 ) time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; ffc0989c: 81 43 00 04 lwz r10,4(r3) ffc098a0: 39 4a 00 0d addi r10,r10,13 ffc098a4: 4b ff ff 78 b ffc0981c <_TOD_To_seconds+0x18> <== ALWAYS TAKEN ffc098a8 <_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) || ffc098a8: 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(); ffc098ac: 3d 20 00 00 lis r9,0 ffc098b0: 80 09 20 cc lwz r0,8396(r9) if ((!the_tod) || ffc098b4: 41 82 00 98 beq- ffc0994c <_TOD_Validate+0xa4> <== NEVER TAKEN ffc098b8: 3d 20 00 0f lis r9,15 ffc098bc: 61 29 42 40 ori r9,r9,16960 ffc098c0: 7c 09 03 96 divwu r0,r9,r0 (the_tod->ticks >= ticks_per_second) || ffc098c4: 81 23 00 18 lwz r9,24(r3) ffc098c8: 7f 80 48 40 cmplw cr7,r0,r9 ffc098cc: 40 9d 00 80 ble- cr7,ffc0994c <_TOD_Validate+0xa4> (the_tod->second >= TOD_SECONDS_PER_MINUTE) || ffc098d0: 80 03 00 14 lwz r0,20(r3) ffc098d4: 2b 80 00 3b cmplwi cr7,r0,59 ffc098d8: 41 9d 00 74 bgt- cr7,ffc0994c <_TOD_Validate+0xa4> (the_tod->minute >= TOD_MINUTES_PER_HOUR) || ffc098dc: 80 03 00 10 lwz r0,16(r3) ffc098e0: 2b 80 00 3b cmplwi cr7,r0,59 ffc098e4: 41 9d 00 68 bgt- cr7,ffc0994c <_TOD_Validate+0xa4> (the_tod->hour >= TOD_HOURS_PER_DAY) || ffc098e8: 80 03 00 0c lwz r0,12(r3) ffc098ec: 2b 80 00 17 cmplwi cr7,r0,23 ffc098f0: 41 9d 00 5c bgt- cr7,ffc0994c <_TOD_Validate+0xa4> (the_tod->month == 0) || ffc098f4: 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) || ffc098f8: 2f 89 00 00 cmpwi cr7,r9,0 ffc098fc: 41 9e 00 50 beq- cr7,ffc0994c <_TOD_Validate+0xa4> <== NEVER TAKEN ffc09900: 2b 89 00 0c cmplwi cr7,r9,12 ffc09904: 41 9d 00 48 bgt- cr7,ffc0994c <_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) || ffc09908: 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) || ffc0990c: 2b 80 07 c3 cmplwi cr7,r0,1987 ffc09910: 40 9d 00 3c ble- cr7,ffc0994c <_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) ) ffc09914: 81 63 00 08 lwz r11,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) || ffc09918: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0991c: 41 9e 00 30 beq- cr7,ffc0994c <_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 ) ffc09920: 70 0a 00 03 andi. r10,r0,3 ffc09924: 40 82 00 30 bne- ffc09954 <_TOD_Validate+0xac> days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; ffc09928: 38 09 00 0d addi r0,r9,13 ffc0992c: 3d 20 ff c2 lis r9,-62 ffc09930: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc09934: 39 29 58 a8 addi r9,r9,22696 ffc09938: 7c 69 00 2e lwzx r3,r9,r0 * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( ffc0993c: 7c 6b 18 10 subfc r3,r11,r3 ffc09940: 38 60 00 00 li r3,0 ffc09944: 7c 63 19 14 adde r3,r3,r3 <== ALWAYS TAKEN ffc09948: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0994c: 38 60 00 00 li r3,0 if ( the_tod->day > days_in_month ) return false; return true; } ffc09950: 4e 80 00 20 blr <== ALWAYS TAKEN return false; if ( (the_tod->year % 4) == 0 ) days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; else days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ]; ffc09954: 3d 40 ff c2 lis r10,-62 ffc09958: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc0995c: 39 4a 58 a8 addi r10,r10,22696 ffc09960: 7c 6a 48 2e lwzx r3,r10,r9 ffc09964: 4b ff ff d8 b ffc0993c <_TOD_Validate+0x94> <== ALWAYS TAKEN ffc0a908 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { ffc0a908: 94 21 ff e8 stwu r1,-24(r1) ffc0a90c: 7c 08 02 a6 mflr r0 ffc0a910: 90 01 00 1c stw r0,28(r1) ffc0a914: 93 e1 00 14 stw r31,20(r1) ffc0a918: 7c 7f 1b 78 mr r31,r3 ffc0a91c: 93 81 00 08 stw r28,8(r1) <== ALWAYS TAKEN ffc0a920: 7c bc 2b 78 mr r28,r5 ffc0a924: 93 a1 00 0c stw r29,12(r1) ffc0a928: 93 c1 00 10 stw r30,16(r1) ffc0a92c: 7c 9e 23 78 mr r30,r4 */ /* * Save original state */ original_state = the_thread->current_state; ffc0a930: 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 ); ffc0a934: 48 00 13 81 bl ffc0bcb4 <_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 ) ffc0a938: 80 1f 00 14 lwz r0,20(r31) ffc0a93c: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0a940: 41 9e 00 10 beq- cr7,ffc0a950 <_Thread_Change_priority+0x48> _Thread_Set_priority( the_thread, new_priority ); ffc0a944: 7f c4 f3 78 mr r4,r30 ffc0a948: 7f e3 fb 78 mr r3,r31 ffc0a94c: 48 00 11 e9 bl ffc0bb34 <_Thread_Set_priority> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0a950: 7d 20 00 a6 mfmsr r9 ffc0a954: 7c 10 42 a6 mfsprg r0,0 ffc0a958: 7d 20 00 78 andc r0,r9,r0 ffc0a95c: 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; ffc0a960: 80 1f 00 10 lwz r0,16(r31) if ( state != STATES_TRANSIENT ) { ffc0a964: 2f 80 00 04 cmpwi cr7,r0,4 ffc0a968: 41 9e 00 88 beq- cr7,ffc0a9f0 <_Thread_Change_priority+0xe8> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) ffc0a96c: 73 ab 00 04 andi. r11,r29,4 ffc0a970: 41 82 00 38 beq- ffc0a9a8 <_Thread_Change_priority+0xa0> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0a974: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { ffc0a978: 3d 20 00 03 lis r9,3 <== NOT EXECUTED ffc0a97c: 61 29 be e0 ori r9,r9,48864 <== NOT EXECUTED ffc0a980: 7c 0b 48 39 and. r11,r0,r9 <== NOT EXECUTED ffc0a984: 40 82 00 40 bne- ffc0a9c4 <_Thread_Change_priority+0xbc> <== NOT EXECUTED if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = true; _ISR_Enable( level ); } ffc0a988: 80 01 00 1c lwz r0,28(r1) ffc0a98c: 83 81 00 08 lwz r28,8(r1) ffc0a990: 7c 08 03 a6 mtlr r0 ffc0a994: 83 a1 00 0c lwz r29,12(r1) ffc0a998: 83 c1 00 10 lwz r30,16(r1) ffc0a99c: 83 e1 00 14 lwz r31,20(r1) ffc0a9a0: 38 21 00 18 addi r1,r1,24 ffc0a9a4: 4e 80 00 20 blr <== ALWAYS TAKEN */ state = the_thread->current_state; if ( state != STATES_TRANSIENT ) { /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); ffc0a9a8: 54 0b 07 b8 rlwinm r11,r0,0,30,28 ffc0a9ac: 91 7f 00 10 stw r11,16(r31) ffc0a9b0: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); if ( _States_Is_waiting_on_thread_queue( state ) ) { ffc0a9b4: 3d 20 00 03 lis r9,3 ffc0a9b8: 61 29 be e0 ori r9,r9,48864 ffc0a9bc: 7c 0b 48 39 and. r11,r0,r9 ffc0a9c0: 41 82 ff c8 beq+ ffc0a988 <_Thread_Change_priority+0x80> _Thread_queue_Requeue( the_thread->Wait.queue, the_thread ); ffc0a9c4: 80 7f 00 44 lwz r3,68(r31) ffc0a9c8: 7f e4 fb 78 mr r4,r31 ffc0a9cc: 48 00 10 71 bl ffc0ba3c <_Thread_queue_Requeue> <== ALWAYS TAKEN if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = true; _ISR_Enable( level ); } ffc0a9d0: 80 01 00 1c lwz r0,28(r1) ffc0a9d4: 83 81 00 08 lwz r28,8(r1) ffc0a9d8: 7c 08 03 a6 mtlr r0 ffc0a9dc: 83 a1 00 0c lwz r29,12(r1) ffc0a9e0: 83 c1 00 10 lwz r30,16(r1) ffc0a9e4: 83 e1 00 14 lwz r31,20(r1) ffc0a9e8: 38 21 00 18 addi r1,r1,24 ffc0a9ec: 4e 80 00 20 blr <== ALWAYS TAKEN } return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) { ffc0a9f0: 73 bd 00 04 andi. r29,r29,4 ffc0a9f4: 3d 40 00 00 lis r10,0 ffc0a9f8: 40 82 00 4c bne- ffc0aa44 <_Thread_Change_priority+0x13c> <== 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 ); ffc0a9fc: 93 bf 00 10 stw r29,16(r31) _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) ffc0aa00: 2f 9c 00 00 cmpwi cr7,r28,0 RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; ffc0aa04: 81 7f 00 90 lwz r11,144(r31) ffc0aa08: 80 1f 00 98 lwz r0,152(r31) ffc0aa0c: 81 0b 00 00 lwz r8,0(r11) ffc0aa10: 7d 00 03 78 or r0,r8,r0 ffc0aa14: 90 0b 00 00 stw r0,0(r11) _Priority_Major_bit_map |= the_priority_map->ready_major; ffc0aa18: 81 6a 27 a4 lwz r11,10148(r10) ffc0aa1c: 80 1f 00 94 lwz r0,148(r31) ffc0aa20: 7d 60 03 78 or r0,r11,r0 ffc0aa24: 90 0a 27 a4 stw r0,10148(r10) ffc0aa28: 41 9e 00 b8 beq- cr7,ffc0aae0 <_Thread_Change_priority+0x1d8> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; ffc0aa2c: 81 7f 00 8c lwz r11,140(r31) ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc0aa30: 81 0b 00 00 lwz r8,0(r11) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc0aa34: 91 7f 00 04 stw r11,4(r31) before_node = after_node->next; after_node->next = the_node; ffc0aa38: 93 eb 00 00 stw r31,0(r11) the_node->next = before_node; before_node->previous = the_node; ffc0aa3c: 93 e8 00 04 stw r31,4(r8) Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; after_node->next = the_node; the_node->next = before_node; ffc0aa40: 91 1f 00 00 stw r8,0(r31) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0aa44: 7c 00 00 a6 mfmsr r0 ffc0aa48: 7d 20 01 24 mtmsr r9 ffc0aa4c: 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; ffc0aa50: 3d 00 00 00 lis r8,0 <== ALWAYS TAKEN 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 ); ffc0aa54: 81 6a 27 a4 lwz r11,10148(r10) ffc0aa58: 80 a8 27 64 lwz r5,10084(r8) ffc0aa5c: 7d 66 00 34 cntlzw r6,r11 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0aa60: 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 ); ffc0aa64: 91 6a 27 a4 stw r11,10148(r10) _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0aa68: 38 e7 2d a0 addi r7,r7,11680 ffc0aa6c: 54 c8 10 3a rlwinm r8,r6,2,0,29 ffc0aa70: 7c 07 40 2e lwzx r0,r7,r8 ffc0aa74: 7c 0b 00 34 cntlzw r11,r0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0aa78: 54 c6 20 36 rlwinm r6,r6,4,0,27 ffc0aa7c: 7c 07 41 2e stwx r0,r7,r8 ffc0aa80: 7c c6 5a 14 add r6,r6,r11 ffc0aa84: 1c c6 00 0c mulli r6,r6,12 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); ffc0aa88: 3d 60 00 00 lis r11,0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0aa8c: 7c 05 30 2e lwzx r0,r5,r6 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); ffc0aa90: 81 6b 27 b0 lwz r11,10160(r11) * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0aa94: 3d 40 00 00 lis r10,0 ffc0aa98: 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() && ffc0aa9c: 7f 80 58 00 cmpw cr7,r0,r11 ffc0aaa0: 41 9e 00 1c beq- cr7,ffc0aabc <_Thread_Change_priority+0x1b4> _Thread_Executing->is_preemptible ) ffc0aaa4: 88 0b 00 75 lbz r0,117(r11) ffc0aaa8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aaac: 41 9e 00 10 beq- cr7,ffc0aabc <_Thread_Change_priority+0x1b4> _Context_Switch_necessary = true; ffc0aab0: 38 00 00 01 li r0,1 ffc0aab4: 3d 60 00 00 lis r11,0 ffc0aab8: 98 0b 27 c0 stb r0,10176(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0aabc: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); } ffc0aac0: 80 01 00 1c lwz r0,28(r1) ffc0aac4: 83 81 00 08 lwz r28,8(r1) ffc0aac8: 7c 08 03 a6 mtlr r0 ffc0aacc: 83 a1 00 0c lwz r29,12(r1) ffc0aad0: 83 c1 00 10 lwz r30,16(r1) ffc0aad4: 83 e1 00 14 lwz r31,20(r1) ffc0aad8: 38 21 00 18 addi r1,r1,24 ffc0aadc: 4e 80 00 20 blr <== ALWAYS TAKEN _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) _Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node ); else _Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node ); ffc0aae0: 81 7f 00 8c lwz r11,140(r31) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0aae4: 38 0b 00 04 addi r0,r11,4 ffc0aae8: 90 1f 00 00 stw r0,0(r31) old_last_node = the_chain->last; ffc0aaec: 81 0b 00 08 lwz r8,8(r11) the_chain->last = the_node; ffc0aaf0: 93 eb 00 08 stw r31,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0aaf4: 91 1f 00 04 stw r8,4(r31) Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); old_last_node = the_chain->last; the_chain->last = the_node; old_last_node->next = the_node; ffc0aaf8: 93 e8 00 00 stw r31,0(r8) ffc0aafc: 4b ff ff 48 b ffc0aa44 <_Thread_Change_priority+0x13c> <== ALWAYS TAKEN ffc0ab00 <_Thread_Clear_state>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ab00: 7d 20 00 a6 mfmsr r9 ffc0ab04: 7c 10 42 a6 mfsprg r0,0 ffc0ab08: 7d 20 00 78 andc r0,r9,r0 ffc0ab0c: 7c 00 01 24 mtmsr r0 { ISR_Level level; States_Control current_state; _ISR_Disable( level ); current_state = the_thread->current_state; ffc0ab10: 80 03 00 10 lwz r0,16(r3) if ( current_state & state ) { ffc0ab14: 7c 8b 00 39 and. r11,r4,r0 ffc0ab18: 41 82 00 a0 beq- ffc0abb8 <_Thread_Clear_state+0xb8> RTEMS_INLINE_ROUTINE States_Control _States_Clear ( States_Control states_to_clear, States_Control current_state ) { return (current_state & ~states_to_clear); ffc0ab1c: 7c 00 20 78 andc r0,r0,r4 current_state = the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { ffc0ab20: 2f 80 00 00 cmpwi cr7,r0,0 _ISR_Disable( level ); current_state = the_thread->current_state; if ( current_state & state ) { current_state = ffc0ab24: 90 03 00 10 stw r0,16(r3) the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { ffc0ab28: 40 9e 00 90 bne- cr7,ffc0abb8 <_Thread_Clear_state+0xb8> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; ffc0ab2c: 81 43 00 90 lwz r10,144(r3) ffc0ab30: 80 03 00 98 lwz r0,152(r3) ffc0ab34: 81 0a 00 00 lwz r8,0(r10) <== ALWAYS TAKEN _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); ffc0ab38: 81 63 00 8c lwz r11,140(r3) ffc0ab3c: 7d 00 03 78 or r0,r8,r0 ffc0ab40: 90 0a 00 00 stw r0,0(r10) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0ab44: 38 0b 00 04 addi r0,r11,4 _Priority_Major_bit_map |= the_priority_map->ready_major; ffc0ab48: 3d 00 00 00 lis r8,0 ffc0ab4c: 90 03 00 00 stw r0,0(r3) ffc0ab50: 80 e8 27 a4 lwz r7,10148(r8) ffc0ab54: 80 03 00 94 lwz r0,148(r3) <== ALWAYS TAKEN old_last_node = the_chain->last; ffc0ab58: 81 4b 00 08 lwz r10,8(r11) ffc0ab5c: 7c e0 03 78 or r0,r7,r0 the_chain->last = the_node; ffc0ab60: 90 6b 00 08 stw r3,8(r11) <== ALWAYS TAKEN ffc0ab64: 90 08 27 a4 stw r0,10148(r8) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0ab68: 91 43 00 04 stw r10,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; ffc0ab6c: 90 6a 00 00 stw r3,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0ab70: 7c 00 00 a6 mfmsr r0 ffc0ab74: 7d 20 01 24 mtmsr r9 ffc0ab78: 7c 00 01 24 mtmsr r0 * 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 ) { ffc0ab7c: 3d 60 00 00 lis r11,0 ffc0ab80: 80 03 00 14 lwz r0,20(r3) ffc0ab84: 81 4b 27 8c lwz r10,10124(r11) ffc0ab88: 81 4a 00 14 lwz r10,20(r10) ffc0ab8c: 7f 80 50 40 cmplw cr7,r0,r10 ffc0ab90: 40 9c 00 28 bge- cr7,ffc0abb8 <_Thread_Clear_state+0xb8> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || ffc0ab94: 3d 40 00 00 lis r10,0 <== ALWAYS TAKEN * 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; ffc0ab98: 90 6b 27 8c stw r3,10124(r11) if ( _Thread_Executing->is_preemptible || ffc0ab9c: 81 4a 27 b0 lwz r10,10160(r10) ffc0aba0: 89 6a 00 75 lbz r11,117(r10) ffc0aba4: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0aba8: 41 9e 00 18 beq- cr7,ffc0abc0 <_Thread_Clear_state+0xc0> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; ffc0abac: 38 00 00 01 li r0,1 ffc0abb0: 3d 60 00 00 lis r11,0 ffc0abb4: 98 0b 27 c0 stb r0,10176(r11) <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0abb8: 7d 20 01 24 mtmsr r9 } } } _ISR_Enable( level ); } ffc0abbc: 4e 80 00 20 blr <== ALWAYS TAKEN * 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; if ( _Thread_Executing->is_preemptible || ffc0abc0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0abc4: 41 9e ff e8 beq+ cr7,ffc0abac <_Thread_Clear_state+0xac> <== NEVER TAKEN ffc0abc8: 4b ff ff f0 b ffc0abb8 <_Thread_Clear_state+0xb8> <== ALWAYS TAKEN ffc0abcc <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { ffc0abcc: 94 21 ff e8 stwu r1,-24(r1) ffc0abd0: 7c 08 02 a6 mflr r0 ffc0abd4: 39 60 00 00 li r11,0 ffc0abd8: 90 01 00 1c stw r0,28(r1) <== ALWAYS TAKEN ffc0abdc: a0 04 00 0a lhz r0,10(r4) ffc0abe0: 81 23 00 1c lwz r9,28(r3) <== ALWAYS TAKEN ffc0abe4: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0abe8: 93 a1 00 0c stw r29,12(r1) ffc0abec: 7c 7d 1b 78 mr r29,r3 ffc0abf0: 93 e1 00 14 stw r31,20(r1) ffc0abf4: 7c 9f 23 78 mr r31,r4 ffc0abf8: 93 c1 00 10 stw r30,16(r1) ffc0abfc: 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; ffc0ac00: 3f c0 00 00 lis r30,0 ffc0ac04: 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 ); ffc0ac08: 7c 83 23 78 mr r3,r4 <== ALWAYS TAKEN ffc0ac0c: 38 09 ff ff addi r0,r9,-1 ffc0ac10: 90 1e 27 70 stw r0,10096(r30) ffc0ac14: 48 00 19 65 bl ffc0c578 <_User_extensions_Thread_delete> <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0ac18: 81 3e 27 70 lwz r9,10096(r30) ffc0ac1c: 38 09 00 01 addi r0,r9,1 ffc0ac20: 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 ); ffc0ac24: 7f a3 eb 78 mr r3,r29 ffc0ac28: 7f e4 fb 78 mr r4,r31 ffc0ac2c: 4b ff f2 e5 bl ffc09f10 <_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 ); ffc0ac30: 7f e3 fb 78 mr r3,r31 ffc0ac34: 38 80 00 01 li r4,1 ffc0ac38: 48 00 0f 59 bl ffc0bb90 <_Thread_Set_state> <== ALWAYS TAKEN if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { ffc0ac3c: 7f e3 fb 78 mr r3,r31 ffc0ac40: 48 00 0d 15 bl ffc0b954 <_Thread_queue_Extract_with_proxy> <== ALWAYS TAKEN ffc0ac44: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ac48: 40 9e 00 10 bne- cr7,ffc0ac58 <_Thread_Close+0x8c> if ( _Watchdog_Is_active( &the_thread->Timer ) ) ffc0ac4c: 80 1f 00 50 lwz r0,80(r31) ffc0ac50: 2f 80 00 02 cmpwi cr7,r0,2 ffc0ac54: 41 9e 00 60 beq- cr7,ffc0acb4 <_Thread_Close+0xe8> if ( _Thread_Is_allocated_fp( the_thread ) ) _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; if ( the_thread->Start.fp_context ) ffc0ac58: 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; ffc0ac5c: 38 00 00 00 li r0,0 ffc0ac60: 90 1f 01 3c stw r0,316(r31) if ( the_thread->Start.fp_context ) ffc0ac64: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ac68: 41 9e 00 08 beq- cr7,ffc0ac70 <_Thread_Close+0xa4> <== NEVER TAKEN (void) _Workspace_Free( the_thread->Start.fp_context ); ffc0ac6c: 48 00 1e 81 bl ffc0caec <_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 ); ffc0ac70: 7f e3 fb 78 mr r3,r31 ffc0ac74: 48 00 11 8d bl ffc0be00 <_Thread_Stack_Free> <== ALWAYS TAKEN the_thread->Start.stack = NULL; if ( the_thread->extensions ) ffc0ac78: 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; ffc0ac7c: 38 00 00 00 li r0,0 if ( the_thread->extensions ) ffc0ac80: 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; ffc0ac84: 90 1f 00 d8 stw r0,216(r31) if ( the_thread->extensions ) ffc0ac88: 41 9e 00 08 beq- cr7,ffc0ac90 <_Thread_Close+0xc4> (void) _Workspace_Free( the_thread->extensions ); ffc0ac8c: 48 00 1e 61 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN the_thread->extensions = NULL; ffc0ac90: 38 00 00 00 li r0,0 } ffc0ac94: 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; ffc0ac98: 90 1f 01 50 stw r0,336(r31) } ffc0ac9c: 80 01 00 1c lwz r0,28(r1) ffc0aca0: 83 c1 00 10 lwz r30,16(r1) ffc0aca4: 7c 08 03 a6 mtlr r0 ffc0aca8: 83 e1 00 14 lwz r31,20(r1) ffc0acac: 38 21 00 18 addi r1,r1,24 ffc0acb0: 4e 80 00 20 blr <== ALWAYS TAKEN */ _Thread_Set_state( the_thread, STATES_DORMANT ); if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); ffc0acb4: 38 7f 00 48 addi r3,r31,72 ffc0acb8: 48 00 1c 11 bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN ffc0acbc: 4b ff ff 9c b ffc0ac58 <_Thread_Close+0x8c> <== ALWAYS TAKEN ffc0acc0 <_Thread_Create_idle>: * * _Thread_Create_idle */ void _Thread_Create_idle( void ) { ffc0acc0: 94 21 ff d0 stwu r1,-48(r1) ffc0acc4: 7c 08 02 a6 mflr r0 ffc0acc8: 93 81 00 20 stw r28,32(r1) * This routine allocates an internal thread. */ RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Internal_allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_Thread_Internal_information ); ffc0accc: 3f 80 00 00 lis r28,0 ffc0acd0: 3b 9c 2d e0 addi r28,r28,11744 <== ALWAYS TAKEN ffc0acd4: 93 e1 00 2c stw r31,44(r1) ffc0acd8: 7f 83 e3 78 mr r3,r28 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0acdc: 3f e0 00 00 lis r31,0 ffc0ace0: 90 01 00 34 stw r0,52(r1) <== ALWAYS TAKEN ffc0ace4: 93 c1 00 28 stw r30,40(r1) /* * 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(); ffc0ace8: 3f c0 00 00 lis r30,0 * * _Thread_Create_idle */ void _Thread_Create_idle( void ) { ffc0acec: 93 a1 00 24 stw r29,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 ); ffc0acf0: 4b ff f1 59 bl ffc09e48 <_Objects_Allocate> <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0acf4: 81 3f 27 70 lwz r9,10096(r31) <== ALWAYS TAKEN /* * 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(); ffc0acf8: 90 7e 27 dc stw r3,10204(r30) ffc0acfc: 38 09 00 01 addi r0,r9,1 ffc0ad00: 90 1f 27 70 stw r0,10096(r31) _Thread_Initialize( &_Thread_Internal_information, _Thread_Idle, NULL, /* allocate the stack */ _Stack_Ensure_minimum( Configuration.idle_task_stack_size ), ffc0ad04: 3f a0 00 00 lis r29,0 <== ALWAYS TAKEN * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( ffc0ad08: 80 9e 27 dc lwz r4,10204(r30) ffc0ad0c: 3d 20 00 00 lis r9,0 &_Thread_Internal_information, _Thread_Idle, NULL, /* allocate the stack */ _Stack_Ensure_minimum( Configuration.idle_task_stack_size ), ffc0ad10: 3b bd 20 a0 addi r29,r29,8352 <== ALWAYS TAKEN * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( ffc0ad14: 80 c9 26 a0 lwz r6,9888(r9) &_Thread_Internal_information, _Thread_Idle, NULL, /* allocate the stack */ _Stack_Ensure_minimum( Configuration.idle_task_stack_size ), ffc0ad18: 80 1d 00 18 lwz r0,24(r29) * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( ffc0ad1c: 3d 20 49 44 lis r9,18756 ffc0ad20: 61 29 4c 45 ori r9,r9,19525 ffc0ad24: 7f 86 00 40 cmplw cr7,r6,r0 ffc0ad28: 91 21 00 18 stw r9,24(r1) ffc0ad2c: 40 9c 00 08 bge- cr7,ffc0ad34 <_Thread_Create_idle+0x74> ffc0ad30: 7c 06 03 78 mr r6,r0 ffc0ad34: 3d 20 00 00 lis r9,0 ffc0ad38: 89 09 26 a4 lbz r8,9892(r9) ffc0ad3c: 38 00 00 00 li r0,0 ffc0ad40: 39 61 00 18 addi r11,r1,24 ffc0ad44: 90 01 00 0c stw r0,12(r1) ffc0ad48: 7f 83 e3 78 mr r3,r28 ffc0ad4c: 38 a0 00 00 li r5,0 ffc0ad50: 91 61 00 10 stw r11,16(r1) ffc0ad54: 38 e0 00 00 li r7,0 ffc0ad58: 39 20 00 01 li r9,1 ffc0ad5c: 90 01 00 08 stw r0,8(r1) ffc0ad60: 39 40 00 00 li r10,0 <== ALWAYS TAKEN ffc0ad64: 48 00 03 9d bl ffc0b100 <_Thread_Initialize> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0ad68: 81 3f 27 70 lwz r9,10096(r31) <== ALWAYS TAKEN * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = _Thread_Executing = _Thread_Idle; _Thread_Start( ffc0ad6c: 38 80 00 00 li r4,0 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = _Thread_Executing = _Thread_Idle; ffc0ad70: 80 1e 27 dc lwz r0,10204(r30) <== ALWAYS TAKEN _Thread_Start( ffc0ad74: 38 c0 00 00 li r6,0 <== ALWAYS TAKEN ffc0ad78: 39 29 ff ff addi r9,r9,-1 <== ALWAYS TAKEN ffc0ad7c: 80 bd 00 14 lwz r5,20(r29) ffc0ad80: 91 3f 27 70 stw r9,10096(r31) <== ALWAYS TAKEN /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = ffc0ad84: 3d 20 00 00 lis r9,0 _Thread_Executing = _Thread_Idle; _Thread_Start( ffc0ad88: 7c 03 03 78 mr r3,r0 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = ffc0ad8c: 90 09 27 b0 stw r0,10160(r9) <== ALWAYS TAKEN _Thread_Executing = _Thread_Idle; _Thread_Start( ffc0ad90: 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 = ffc0ad94: 3d 20 00 00 lis r9,0 ffc0ad98: 90 09 27 8c stw r0,10124(r9) _Thread_Executing = _Thread_Idle; _Thread_Start( ffc0ad9c: 48 00 11 35 bl ffc0bed0 <_Thread_Start> <== ALWAYS TAKEN Configuration.idle_task, NULL, 0 ); } ffc0ada0: 80 01 00 34 lwz r0,52(r1) ffc0ada4: 83 81 00 20 lwz r28,32(r1) ffc0ada8: 7c 08 03 a6 mtlr r0 ffc0adac: 83 a1 00 24 lwz r29,36(r1) <== ALWAYS TAKEN ffc0adb0: 83 c1 00 28 lwz r30,40(r1) ffc0adb4: 83 e1 00 2c lwz r31,44(r1) ffc0adb8: 38 21 00 30 addi r1,r1,48 ffc0adbc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0adc0 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0adc0: 94 21 ff e8 stwu r1,-24(r1) ffc0adc4: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0adc8: 38 81 00 08 addi r4,r1,8 void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0adcc: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0add0: 48 00 02 65 bl ffc0b034 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0add4: 80 01 00 08 lwz r0,8(r1) ffc0add8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0addc: 40 9e 00 20 bne- cr7,ffc0adfc <_Thread_Delay_ended+0x3c> <== NEVER TAKEN #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( ffc0ade0: 3c 80 10 00 lis r4,4096 ffc0ade4: 60 84 00 18 ori r4,r4,24 ffc0ade8: 4b ff fd 19 bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN ffc0adec: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0adf0: 81 69 27 70 lwz r11,10096(r9) ffc0adf4: 38 0b ff ff addi r0,r11,-1 ffc0adf8: 90 09 27 70 stw r0,10096(r9) | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } } ffc0adfc: 80 01 00 1c lwz r0,28(r1) ffc0ae00: 38 21 00 18 addi r1,r1,24 <== ALWAYS TAKEN ffc0ae04: 7c 08 03 a6 mtlr r0 ffc0ae08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ae0c <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { ffc0ae0c: 94 21 ff b0 stwu r1,-80(r1) ffc0ae10: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0ae14: 93 41 00 38 stw r26,56(r1) Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; ffc0ae18: 3f 40 00 00 lis r26,0 * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { ffc0ae1c: 93 e1 00 4c stw r31,76(r1) ffc0ae20: 90 01 00 54 stw r0,84(r1) ffc0ae24: 92 41 00 18 stw r18,24(r1) ffc0ae28: 92 61 00 1c stw r19,28(r1) ffc0ae2c: 92 81 00 20 stw r20,32(r1) ffc0ae30: 92 a1 00 24 stw r21,36(r1) ffc0ae34: 92 c1 00 28 stw r22,40(r1) ffc0ae38: 92 e1 00 2c stw r23,44(r1) <== ALWAYS TAKEN ffc0ae3c: 93 01 00 30 stw r24,48(r1) <== ALWAYS TAKEN ffc0ae40: 93 21 00 34 stw r25,52(r1) <== ALWAYS TAKEN ffc0ae44: 93 61 00 3c stw r27,60(r1) <== ALWAYS TAKEN ffc0ae48: 93 81 00 40 stw r28,64(r1) <== ALWAYS TAKEN ffc0ae4c: 93 a1 00 44 stw r29,68(r1) <== ALWAYS TAKEN ffc0ae50: 93 c1 00 48 stw r30,72(r1) <== ALWAYS TAKEN Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; ffc0ae54: 83 fa 27 b0 lwz r31,10160(r26) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ae58: 7c 00 00 a6 mfmsr r0 <== ALWAYS TAKEN ffc0ae5c: 7d 30 42 a6 mfsprg r9,0 ffc0ae60: 7c 09 48 78 andc r9,r0,r9 <== ALWAYS TAKEN ffc0ae64: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0ae68: 3f 20 00 00 lis r25,0 ffc0ae6c: 89 39 27 c0 lbz r9,10176(r25) ffc0ae70: 3e 40 00 00 lis r18,0 ffc0ae74: 2f 89 00 00 cmpwi cr7,r9,0 ffc0ae78: 41 9e 01 20 beq- cr7,ffc0af98 <_Thread_Dispatch+0x18c> ffc0ae7c: 3e 80 00 00 lis r20,0 ffc0ae80: 3f 60 00 00 lis r27,0 ffc0ae84: 3e a0 00 00 lis r21,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; ffc0ae88: 3e 60 00 00 lis r19,0 ffc0ae8c: 3a 94 27 8c addi r20,r20,10124 ffc0ae90: 3b 39 27 c0 addi r25,r25,10176 ffc0ae94: 3b 5a 27 b0 addi r26,r26,10160 <== ALWAYS TAKEN ffc0ae98: 3b 7b 27 b8 addi r27,r27,10168 ffc0ae9c: 3a b5 27 88 addi r21,r21,10120 ffc0aea0: 3a 73 27 68 addi r19,r19,10088 <== ALWAYS TAKEN ffc0aea4: 3a d2 27 70 addi r22,r18,10096 ffc0aea8: 3b 81 00 08 addi r28,r1,8 ffc0aeac: 3b a1 00 10 addi r29,r1,16 executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; ffc0aeb0: 3a e0 00 01 li r23,1 _Context_Switch_necessary = false; ffc0aeb4: 3b 00 00 00 li r24,0 ffc0aeb8: 48 00 00 b8 b ffc0af70 <_Thread_Dispatch+0x164> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0aebc: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); ffc0aec0: 7f 83 e3 78 mr r3,r28 ffc0aec4: 48 00 4a c5 bl ffc0f988 <_TOD_Get_uptime> <== ALWAYS TAKEN _Timestamp_Subtract( ffc0aec8: 7f 63 db 78 mr r3,r27 ffc0aecc: 7f 84 e3 78 mr r4,r28 ffc0aed0: 7f a5 eb 78 mr r5,r29 ffc0aed4: 48 00 13 39 bl ffc0c20c <_Timespec_Subtract> <== ALWAYS TAKEN &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); ffc0aed8: 7f a4 eb 78 mr r4,r29 ffc0aedc: 38 7f 00 84 addi r3,r31,132 ffc0aee0: 48 00 12 d1 bl ffc0c1b0 <_Timespec_Add_to> <== ALWAYS TAKEN #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0aee4: 81 35 00 00 lwz r9,0(r21) &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; ffc0aee8: 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 ); ffc0aeec: 7f e3 fb 78 mr r3,r31 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0aef0: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); _Thread_Time_of_last_context_switch = uptime; ffc0aef4: 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 ); ffc0aef8: 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; ffc0aefc: 91 7b 00 00 stw r11,0(r27) ffc0af00: 91 9b 00 04 stw r12,4(r27) #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { ffc0af04: 41 9e 00 14 beq- cr7,ffc0af18 <_Thread_Dispatch+0x10c> <== NEVER TAKEN executing->libc_reent = *_Thread_libc_reent; ffc0af08: 80 09 00 00 lwz r0,0(r9) ffc0af0c: 90 1f 01 40 stw r0,320(r31) *_Thread_libc_reent = heir->libc_reent; ffc0af10: 80 1e 01 40 lwz r0,320(r30) ffc0af14: 90 09 00 00 stw r0,0(r9) } _User_extensions_Thread_switch( executing, heir ); ffc0af18: 48 00 17 6d bl ffc0c684 <_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 ) ffc0af1c: 80 1f 01 3c lwz r0,316(r31) _Context_Save_fp( &executing->fp_context ); ffc0af20: 38 7f 01 3c addi r3,r31,316 * operations. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE ) if ( executing->fp_context != NULL ) ffc0af24: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af28: 41 9e 00 08 beq- cr7,ffc0af30 <_Thread_Dispatch+0x124> _Context_Save_fp( &executing->fp_context ); ffc0af2c: 48 01 2b b5 bl ffc1dae0 <_CPU_Context_save_fp> <== ALWAYS TAKEN #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); ffc0af30: 38 7f 00 dc addi r3,r31,220 ffc0af34: 38 9e 00 dc addi r4,r30,220 ffc0af38: 48 01 2d 29 bl ffc1dc60 <_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 ) ffc0af3c: 80 1f 01 3c lwz r0,316(r31) _Context_Restore_fp( &executing->fp_context ); ffc0af40: 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 ) ffc0af44: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af48: 41 9e 00 08 beq- cr7,ffc0af50 <_Thread_Dispatch+0x144> _Context_Restore_fp( &executing->fp_context ); ffc0af4c: 48 01 2c 55 bl ffc1dba0 <_CPU_Context_restore_fp> <== ALWAYS TAKEN #endif #endif executing = _Thread_Executing; ffc0af50: 83 fa 00 00 lwz r31,0(r26) <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0af54: 7c 00 00 a6 mfmsr r0 ffc0af58: 7d 30 42 a6 mfsprg r9,0 ffc0af5c: 7c 09 48 78 andc r9,r0,r9 ffc0af60: 7d 20 01 24 mtmsr r9 Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { ffc0af64: 89 39 00 00 lbz r9,0(r25) <== ALWAYS TAKEN ffc0af68: 2f 89 00 00 cmpwi cr7,r9,0 ffc0af6c: 41 9e 00 2c beq- cr7,ffc0af98 <_Thread_Dispatch+0x18c> heir = _Thread_Heir; ffc0af70: 83 d4 00 00 lwz r30,0(r20) _Thread_Dispatch_disable_level = 1; ffc0af74: 92 f6 00 00 stw r23,0(r22) _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 ) ffc0af78: 81 3e 00 7c lwz r9,124(r30) <== ALWAYS TAKEN executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { heir = _Thread_Heir; _Thread_Dispatch_disable_level = 1; _Context_Switch_necessary = false; ffc0af7c: 9b 19 00 00 stb r24,0(r25) _Thread_Executing = heir; #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) ffc0af80: 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; ffc0af84: 93 da 00 00 stw r30,0(r26) #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) ffc0af88: 40 9e ff 34 bne+ cr7,ffc0aebc <_Thread_Dispatch+0xb0> heir->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0af8c: 81 33 00 00 lwz r9,0(r19) ffc0af90: 91 3e 00 78 stw r9,120(r30) ffc0af94: 4b ff ff 28 b ffc0aebc <_Thread_Dispatch+0xb0> <== ALWAYS TAKEN executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; ffc0af98: 39 20 00 00 li r9,0 ffc0af9c: 91 32 27 70 stw r9,10096(r18) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0afa0: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); if ( _Thread_Do_post_task_switch_extension || ffc0afa4: 3d 20 00 00 lis r9,0 ffc0afa8: 80 09 27 a0 lwz r0,10144(r9) ffc0afac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0afb0: 40 9e 00 10 bne- cr7,ffc0afc0 <_Thread_Dispatch+0x1b4> executing->do_post_task_switch_extension ) { ffc0afb4: 88 1f 00 74 lbz r0,116(r31) ffc0afb8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0afbc: 41 9e 00 10 beq- cr7,ffc0afcc <_Thread_Dispatch+0x1c0> executing->do_post_task_switch_extension = false; ffc0afc0: 38 00 00 00 li r0,0 ffc0afc4: 98 1f 00 74 stb r0,116(r31) _API_extensions_Run_postswitch(); ffc0afc8: 4b ff e1 a1 bl ffc09168 <_API_extensions_Run_postswitch> <== ALWAYS TAKEN } } ffc0afcc: 80 01 00 54 lwz r0,84(r1) ffc0afd0: 82 41 00 18 lwz r18,24(r1) ffc0afd4: 7c 08 03 a6 mtlr r0 ffc0afd8: 82 61 00 1c lwz r19,28(r1) ffc0afdc: 82 81 00 20 lwz r20,32(r1) <== ALWAYS TAKEN ffc0afe0: 82 a1 00 24 lwz r21,36(r1) ffc0afe4: 82 c1 00 28 lwz r22,40(r1) ffc0afe8: 82 e1 00 2c lwz r23,44(r1) ffc0afec: 83 01 00 30 lwz r24,48(r1) <== ALWAYS TAKEN ffc0aff0: 83 21 00 34 lwz r25,52(r1) ffc0aff4: 83 41 00 38 lwz r26,56(r1) ffc0aff8: 83 61 00 3c lwz r27,60(r1) <== ALWAYS TAKEN ffc0affc: 83 81 00 40 lwz r28,64(r1) <== ALWAYS TAKEN ffc0b000: 83 a1 00 44 lwz r29,68(r1) ffc0b004: 83 c1 00 48 lwz r30,72(r1) <== ALWAYS TAKEN ffc0b008: 83 e1 00 4c lwz r31,76(r1) ffc0b00c: 38 21 00 50 addi r1,r1,80 ffc0b010: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b014 <_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 ) ffc0b014: 3d 20 00 00 lis r9,0 ffc0b018: 81 69 27 70 lwz r11,10096(r9) ffc0b01c: 38 0b ff ff addi r0,r11,-1 <== ALWAYS TAKEN ffc0b020: 90 09 27 70 stw r0,10096(r9) <== ALWAYS TAKEN ffc0b024: 80 09 27 70 lwz r0,10096(r9) ffc0b028: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b02c: 4c be 00 20 bnelr+ cr7 return; _Thread_Dispatch(); ffc0b030: 4b ff fd dc b ffc0ae0c <_Thread_Dispatch> <== ALWAYS TAKEN ffc12494 <_Thread_Evaluate_mode>: bool _Thread_Evaluate_mode( void ) { Thread_Control *executing; executing = _Thread_Executing; ffc12494: 3d 20 00 00 lis r9,0 ffc12498: 81 29 27 b0 lwz r9,10160(r9) if ( !_States_Is_ready( executing->current_state ) || ffc1249c: 80 09 00 10 lwz r0,16(r9) ffc124a0: 2f 80 00 00 cmpwi cr7,r0,0 ffc124a4: 40 9e 00 20 bne- cr7,ffc124c4 <_Thread_Evaluate_mode+0x30> <== NEVER TAKEN ffc124a8: 3d 60 00 00 lis r11,0 ffc124ac: 80 0b 27 8c lwz r0,10124(r11) ffc124b0: 7f 89 00 00 cmpw cr7,r9,r0 ffc124b4: 41 9e 00 24 beq- cr7,ffc124d8 <_Thread_Evaluate_mode+0x44> ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { ffc124b8: 88 09 00 75 lbz r0,117(r9) ffc124bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc124c0: 41 9e 00 18 beq- cr7,ffc124d8 <_Thread_Evaluate_mode+0x44> <== NEVER TAKEN _Context_Switch_necessary = true; ffc124c4: 38 00 00 01 li r0,1 ffc124c8: 3d 20 00 00 lis r9,0 ffc124cc: 98 09 27 c0 stb r0,10176(r9) ffc124d0: 38 60 00 01 li r3,1 return true; ffc124d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc124d8: 38 60 00 00 li r3,0 } return false; } ffc124dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b034 <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { ffc0b034: 7c 08 02 a6 mflr r0 ffc0b038: 94 21 ff f8 stwu r1,-8(r1) ffc0b03c: 7c 85 23 78 mr r5,r4 ffc0b040: 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 ) ) { ffc0b044: 7c 60 1b 79 mr. r0,r3 ffc0b048: 41 82 00 78 beq- ffc0b0c0 <_Thread_Get+0x8c> */ RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API( Objects_Id id ) { return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS); ffc0b04c: 54 09 47 7e rlwinm r9,r0,8,29,31 */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) ffc0b050: 39 69 ff ff addi r11,r9,-1 ffc0b054: 2b 8b 00 03 cmplwi cr7,r11,3 ffc0b058: 41 9d 00 4c bgt- cr7,ffc0b0a4 <_Thread_Get+0x70> *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ ffc0b05c: 54 0a 2e fe rlwinm r10,r0,5,27,31 ffc0b060: 2f 8a 00 01 cmpwi cr7,r10,1 ffc0b064: 40 9e 00 40 bne- cr7,ffc0b0a4 <_Thread_Get+0x70> *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; ffc0b068: 3d 60 00 00 lis r11,0 ffc0b06c: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc0b070: 39 6b 2c 20 addi r11,r11,11296 ffc0b074: 7d 2b 48 2e lwzx r9,r11,r9 if ( !api_information ) { ffc0b078: 2f 89 00 00 cmpwi cr7,r9,0 ffc0b07c: 41 9e 00 78 beq- cr7,ffc0b0f4 <_Thread_Get+0xc0> *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; ffc0b080: 80 69 00 04 lwz r3,4(r9) <== ALWAYS TAKEN if ( !information ) { ffc0b084: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b088: 41 9e 00 64 beq- cr7,ffc0b0ec <_Thread_Get+0xb8> *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); ffc0b08c: 7c 04 03 78 mr r4,r0 <== ALWAYS TAKEN ffc0b090: 4b ff f3 b9 bl ffc0a448 <_Objects_Get> <== ALWAYS TAKEN done: return tp; } ffc0b094: 80 01 00 0c lwz r0,12(r1) ffc0b098: 38 21 00 08 addi r1,r1,8 ffc0b09c: 7c 08 03 a6 mtlr r0 ffc0b0a0: 4e 80 00 20 blr <== ALWAYS TAKEN goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ *location = OBJECTS_ERROR; ffc0b0a4: 38 00 00 01 li r0,1 ffc0b0a8: 90 05 00 00 stw r0,0(r5) ffc0b0ac: 38 60 00 00 li r3,0 tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } ffc0b0b0: 80 01 00 0c lwz r0,12(r1) ffc0b0b4: 38 21 00 08 addi r1,r1,8 ffc0b0b8: 7c 08 03 a6 mtlr r0 ffc0b0bc: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0b0c0: 3d 20 00 00 lis r9,0 ffc0b0c4: 81 69 27 70 lwz r11,10096(r9) ffc0b0c8: 39 6b 00 01 addi r11,r11,1 ffc0b0cc: 91 69 27 70 stw r11,10096(r9) 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; ffc0b0d0: 90 04 00 00 stw r0,0(r4) tp = _Thread_Executing; ffc0b0d4: 3d 20 00 00 lis r9,0 tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } ffc0b0d8: 80 01 00 0c lwz r0,12(r1) ffc0b0dc: 38 21 00 08 addi r1,r1,8 Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; tp = _Thread_Executing; ffc0b0e0: 80 69 27 b0 lwz r3,10160(r9) <== ALWAYS TAKEN tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } ffc0b0e4: 7c 08 03 a6 mtlr r0 ffc0b0e8: 4e 80 00 20 blr <== ALWAYS TAKEN goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; ffc0b0ec: 91 45 00 00 stw r10,0(r5) goto done; ffc0b0f0: 4b ff ff c0 b ffc0b0b0 <_Thread_Get+0x7c> <== ALWAYS TAKEN goto done; } api_information = _Objects_Information_table[ the_api ]; if ( !api_information ) { *location = OBJECTS_ERROR; ffc0b0f4: 91 45 00 00 stw r10,0(r5) ffc0b0f8: 38 60 00 00 li r3,0 goto done; ffc0b0fc: 4b ff ff b4 b ffc0b0b0 <_Thread_Get+0x7c> <== ALWAYS TAKEN ffc124e0 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc124e0: 94 21 ff f0 stwu r1,-16(r1) ffc124e4: 7c 08 02 a6 mflr r0 #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; ffc124e8: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc124ec: 90 01 00 14 stw r0,20(r1) ffc124f0: 93 e1 00 0c stw r31,12(r1) #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; ffc124f4: 83 e9 27 b0 lwz r31,10160(r9) * * Output parameters: NONE */ void _Thread_Handler( void ) { ffc124f8: 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; ffc124fc: 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); ffc12500: 38 00 00 00 li r0,0 ffc12504: 7c 00 00 a6 mfmsr r0 <== ALWAYS TAKEN if (!(level & CPU_MODES_INTERRUPT_MASK)) { ffc12508: 71 2b 00 01 andi. r11,r9,1 ffc1250c: 40 82 00 60 bne- ffc1256c <_Thread_Handler+0x8c> static inline uint32_t ppc_interrupt_get_disable_mask( void ) { uint32_t mask; asm volatile ( ffc12510: 7d 30 42 a6 mfsprg r9,0 msr |= ppc_interrupt_get_disable_mask(); ffc12514: 7d 20 03 78 or r0,r9,r0 <== ALWAYS TAKEN } else { msr &= ~ppc_interrupt_get_disable_mask(); } _CPU_MSR_SET(msr); ffc12518: 7c 00 01 24 mtmsr r0 _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; ffc1251c: 3d 20 00 00 lis r9,0 ffc12520: 8b c9 29 94 lbz r30,10644(r9) doneConstructors = 1; ffc12524: 38 00 00 01 li r0,1 /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); ffc12528: 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; ffc1252c: 98 09 29 94 stb r0,10644(r9) <== 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 ); ffc12530: 4b ff 9e 41 bl ffc0c370 <_User_extensions_Thread_begin> <== ALWAYS TAKEN /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); ffc12534: 4b ff 8a e1 bl ffc0b014 <_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) */ { ffc12538: 2f 9e 00 00 cmpwi cr7,r30,0 <== ALWAYS TAKEN ffc1253c: 41 9e 00 60 beq- cr7,ffc1259c <_Thread_Handler+0xbc> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { ffc12540: 80 1f 00 a8 lwz r0,168(r31) ffc12544: 2f 80 00 00 cmpwi cr7,r0,0 ffc12548: 41 9e 00 64 beq- cr7,ffc125ac <_Thread_Handler+0xcc> (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { ffc1254c: 2f 80 00 01 cmpwi cr7,r0,1 ffc12550: 41 9e 00 74 beq- cr7,ffc125c4 <_Thread_Handler+0xe4> <== ALWAYS TAKEN * 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 ); ffc12554: 7f e3 fb 78 mr r3,r31 ffc12558: 4b ff 9e 8d bl ffc0c3e4 <_User_extensions_Thread_exitted> <== ALWAYS TAKEN _Internal_error_Occurred( ffc1255c: 38 60 00 00 li r3,0 ffc12560: 38 80 00 01 li r4,1 ffc12564: 38 a0 00 06 li r5,6 ffc12568: 4b ff 78 81 bl ffc09de8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc1256c: 7d 30 42 a6 mfsprg r9,0 _CPU_MSR_GET(msr); if (!(level & CPU_MODES_INTERRUPT_MASK)) { msr |= ppc_interrupt_get_disable_mask(); } else { msr &= ~ppc_interrupt_get_disable_mask(); ffc12570: 7c 00 48 78 andc r0,r0,r9 } _CPU_MSR_SET(msr); ffc12574: 7c 00 01 24 mtmsr r0 level = executing->Start.isr_level; _ISR_Set_level(level); #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; ffc12578: 3d 20 00 00 lis r9,0 ffc1257c: 8b c9 29 94 lbz r30,10644(r9) doneConstructors = 1; ffc12580: 38 00 00 01 li r0,1 /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); ffc12584: 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; ffc12588: 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 ); ffc1258c: 4b ff 9d e5 bl ffc0c370 <_User_extensions_Thread_begin> <== ALWAYS TAKEN /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); ffc12590: 4b ff 8a 85 bl ffc0b014 <_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) */ { ffc12594: 2f 9e 00 00 cmpwi cr7,r30,0 ffc12598: 40 9e ff a8 bne+ cr7,ffc12540 <_Thread_Handler+0x60> <== ALWAYS TAKEN INIT_NAME (); ffc1259c: 48 00 c6 41 bl ffc1ebdc <_init> <== ALWAYS TAKEN } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { ffc125a0: 80 1f 00 a8 lwz r0,168(r31) ffc125a4: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc125a8: 40 9e ff a4 bne+ cr7,ffc1254c <_Thread_Handler+0x6c> executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( ffc125ac: 80 1f 00 a4 lwz r0,164(r31) ffc125b0: 80 7f 00 b0 lwz r3,176(r31) <== ALWAYS TAKEN ffc125b4: 7c 09 03 a6 mtctr r0 ffc125b8: 4e 80 04 21 bctrl <== ALWAYS TAKEN INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = ffc125bc: 90 7f 00 28 stw r3,40(r31) ffc125c0: 4b ff ff 94 b ffc12554 <_Thread_Handler+0x74> <== ALWAYS TAKEN ); } #if defined(RTEMS_POSIX_API) else if ( executing->Start.prototype == THREAD_START_POINTER ) { executing->Wait.return_argument = (*(Thread_Entry_pointer) executing->Start.entry_point)( ffc125c4: 80 1f 00 a4 lwz r0,164(r31) ffc125c8: 80 7f 00 ac lwz r3,172(r31) ffc125cc: 7c 09 03 a6 mtctr r0 ffc125d0: 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 = ffc125d4: 90 7f 00 28 stw r3,40(r31) ffc125d8: 4b ff ff 7c b ffc12554 <_Thread_Handler+0x74> <== ALWAYS TAKEN ffc0b3a8 <_Thread_Handler_initialization>: * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { ffc0b3a8: 94 21 ff f0 stwu r1,-16(r1) ffc0b3ac: 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; ffc0b3b0: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { ffc0b3b4: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN uint32_t maximum_extensions; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; ffc0b3b8: 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) ffc0b3bc: 81 69 00 20 lwz r11,32(r9) ffc0b3c0: 80 09 00 24 lwz r0,36(r9) <== ALWAYS TAKEN ffc0b3c4: 7d 6b 00 34 cntlzw r11,r11 * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { ffc0b3c8: 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) ffc0b3cc: 7c 00 00 34 cntlzw r0,r0 ffc0b3d0: 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; ffc0b3d4: 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) ffc0b3d8: 54 00 d9 7e rlwinm r0,r0,27,5,31 ffc0b3dc: 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; ffc0b3e0: 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) ffc0b3e4: 40 82 00 bc bne- ffc0b4a0 <_Thread_Handler_initialization+0xf8> INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = false; ffc0b3e8: 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( ffc0b3ec: 3f e0 00 00 lis r31,0 INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = false; ffc0b3f0: 98 09 27 c0 stb r0,10176(r9) _Thread_Heir = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; #endif _Thread_Do_post_task_switch_extension = 0; ffc0b3f4: 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( ffc0b3f8: 88 7f 26 a4 lbz r3,9892(r31) _Thread_Heir = NULL; #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; #endif _Thread_Do_post_task_switch_extension = 0; ffc0b3fc: 90 09 27 a0 stw r0,10144(r9) _Thread_Maximum_extensions = maximum_extensions; ffc0b400: 3d 20 00 00 lis r9,0 _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0b404: 38 63 00 01 addi r3,r3,1 _Thread_Allocated_fp = NULL; #endif _Thread_Do_post_task_switch_extension = 0; _Thread_Maximum_extensions = maximum_extensions; ffc0b408: 91 49 27 9c stw r10,10140(r9) _Thread_Ticks_per_timeslice = ticks_per_timeslice; ffc0b40c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0b410: 1c 63 00 0c mulli r3,r3,12 _Thread_Do_post_task_switch_extension = 0; _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; ffc0b414: 91 69 27 68 stw r11,10088(r9) true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = false; _Thread_Executing = NULL; ffc0b418: 3d 20 00 00 lis r9,0 ffc0b41c: 90 09 27 b0 stw r0,10160(r9) _Thread_Heir = NULL; ffc0b420: 3d 20 00 00 lis r9,0 ffc0b424: 90 09 27 8c stw r0,10124(r9) #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; ffc0b428: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0b42c: 90 09 27 84 stw r0,10116(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( ffc0b430: 48 00 16 41 bl ffc0ca70 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN ffc0b434: 3d 20 00 00 lis r9,0 (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) ffc0b438: 89 5f 26 a4 lbz r10,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; ffc0b43c: 39 60 00 00 li r11,0 _Thread_Maximum_extensions = maximum_extensions; _Thread_Ticks_per_timeslice = ticks_per_timeslice; _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( ffc0b440: 90 69 27 64 stw r3,10084(r9) (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) ffc0b444: 39 20 00 00 li r9,0 ffc0b448: 39 29 00 01 addi r9,r9,1 ffc0b44c: 91 63 00 04 stw r11,4(r3) ffc0b450: 7f 89 50 40 cmplw cr7,r9,r10 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0b454: 38 03 00 04 addi r0,r3,4 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0b458: 90 63 00 08 stw r3,8(r3) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0b45c: 90 03 00 00 stw r0,0(r3) ffc0b460: 38 63 00 0c addi r3,r3,12 <== ALWAYS TAKEN ffc0b464: 40 9d ff e4 ble+ cr7,ffc0b448 <_Thread_Handler_initialization+0xa0> /* * Initialize this class of objects. */ _Objects_Initialize_information( ffc0b468: 3c 60 00 00 lis r3,0 ffc0b46c: 38 63 2d e0 addi r3,r3,11744 ffc0b470: 38 80 00 01 li r4,1 ffc0b474: 38 a0 00 01 li r5,1 ffc0b478: 38 c0 00 01 li r6,1 <== ALWAYS TAKEN ffc0b47c: 38 e0 01 58 li r7,344 ffc0b480: 39 00 00 00 li r8,0 ffc0b484: 39 20 00 08 li r9,8 ffc0b488: 4b ff f0 5d bl ffc0a4e4 <_Objects_Initialize_information> <== ALWAYS TAKEN false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } ffc0b48c: 80 01 00 14 lwz r0,20(r1) ffc0b490: 83 e1 00 0c lwz r31,12(r1) ffc0b494: 38 21 00 10 addi r1,r1,16 ffc0b498: 7c 08 03 a6 mtlr r0 ffc0b49c: 4e 80 00 20 blr <== ALWAYS TAKEN * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) == (!Configuration.stack_free_hook) ) ) _Internal_error_Occurred( ffc0b4a0: 38 60 00 00 li r3,0 ffc0b4a4: 38 80 00 01 li r4,1 ffc0b4a8: 38 a0 00 0f li r5,15 ffc0b4ac: 4b ff e9 3d bl ffc09de8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc0b100 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { ffc0b100: 7d 80 00 26 mfcr r12 if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { ffc0b104: 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 ) { ffc0b108: 94 21 ff c8 stwu r1,-56(r1) ffc0b10c: 7c 08 02 a6 mflr r0 ffc0b110: 93 81 00 28 stw r28,40(r1) ffc0b114: 7d 3c 4b 78 mr r28,r9 ffc0b118: 90 01 00 3c stw r0,60(r1) /* * Zero out all the allocated memory fields */ for ( i=0 ; i <= THREAD_API_LAST ; i++ ) the_thread->API_Extensions[i] = NULL; ffc0b11c: 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 ) { ffc0b120: 81 21 00 48 lwz r9,72(r1) ffc0b124: 93 01 00 18 stw r24,24(r1) ffc0b128: 93 41 00 20 stw r26,32(r1) <== ALWAYS TAKEN ffc0b12c: 7d 5a 53 78 mr r26,r10 <== ALWAYS TAKEN ffc0b130: 93 a1 00 2c stw r29,44(r1) ffc0b134: 7d 1d 43 78 mr r29,r8 ffc0b138: 93 c1 00 30 stw r30,48(r1) ffc0b13c: 7c 7e 1b 78 mr r30,r3 ffc0b140: 93 e1 00 34 stw r31,52(r1) ffc0b144: 7c 9f 23 78 mr r31,r4 ffc0b148: 92 e1 00 14 stw r23,20(r1) ffc0b14c: 93 21 00 1c stw r25,28(r1) ffc0b150: 93 61 00 24 stw r27,36(r1) ffc0b154: 91 81 00 10 stw r12,16(r1) ffc0b158: 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; ffc0b15c: 90 04 01 44 stw r0,324(r4) ffc0b160: 90 04 01 48 stw r0,328(r4) ffc0b164: 90 04 01 4c stw r0,332(r4) extensions_area = NULL; the_thread->libc_reent = NULL; ffc0b168: 90 04 01 40 stw r0,320(r4) if ( !actual_stack_size || actual_stack_size < stack_size ) return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { ffc0b16c: 41 82 01 f0 beq- ffc0b35c <_Thread_Initialize+0x25c> stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = true; } else { stack = stack_area; actual_stack_size = stack_size; the_thread->Start.core_allocated_stack = false; ffc0b170: 98 04 00 c8 stb r0,200(r4) ffc0b174: 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 ) { ffc0b178: 2f 87 00 00 cmpwi cr7,r7,0 Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; ffc0b17c: 90 bf 00 d0 stw r5,208(r31) ffc0b180: 39 20 00 00 li r9,0 the_stack->size = size; ffc0b184: 90 7f 00 cc stw r3,204(r31) <== ALWAYS TAKEN ffc0b188: 3b 60 00 00 li r27,0 ffc0b18c: 40 9e 01 58 bne- cr7,ffc0b2e4 <_Thread_Initialize+0x1e4> #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0b190: 3e e0 00 00 lis r23,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; ffc0b194: 91 3f 00 d4 stw r9,212(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0b198: 38 00 00 00 li r0,0 #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0b19c: 81 77 27 9c lwz r11,10140(r23) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0b1a0: 90 1f 00 6c stw r0,108(r31) ffc0b1a4: 2f 8b 00 00 cmpwi cr7,r11,0 <== ALWAYS TAKEN 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; ffc0b1a8: 91 3f 01 3c stw r9,316(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0b1ac: 90 1f 00 50 stw r0,80(r31) the_watchdog->routine = routine; ffc0b1b0: 90 1f 00 64 stw r0,100(r31) the_watchdog->id = id; ffc0b1b4: 90 1f 00 68 stw r0,104(r31) #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { ffc0b1b8: 40 9e 01 50 bne- cr7,ffc0b308 <_Thread_Initialize+0x208> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; ffc0b1bc: 91 7f 01 50 stw r11,336(r31) ffc0b1c0: 3b 20 00 00 li r25,0 the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; switch ( budget_algorithm ) { ffc0b1c4: 2f 9a 00 02 cmpwi cr7,r26,2 * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; ffc0b1c8: 80 01 00 40 lwz r0,64(r1) /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; ffc0b1cc: 9b 9f 00 b4 stb r28,180(r31) the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout; ffc0b1d0: 90 1f 00 bc stw r0,188(r31) <== ALWAYS TAKEN /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; the_thread->Start.budget_algorithm = budget_algorithm; ffc0b1d4: 93 5f 00 b8 stw r26,184(r31) the_thread->Start.budget_callout = budget_callout; switch ( budget_algorithm ) { ffc0b1d8: 40 be 00 10 bne+ cr7,ffc0b1e8 <_Thread_Initialize+0xe8> 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; ffc0b1dc: 3d 20 00 00 lis r9,0 ffc0b1e0: 80 09 27 68 lwz r0,10088(r9) ffc0b1e4: 90 1f 00 78 stw r0,120(r31) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; ffc0b1e8: 80 01 00 44 lwz r0,68(r1) the_thread->current_state = STATES_DORMANT; the_thread->Wait.queue = NULL; ffc0b1ec: 3b 80 00 00 li r28,0 ffc0b1f0: 93 9f 00 44 stw r28,68(r31) #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); ffc0b1f4: 7f a4 eb 78 mr r4,r29 ffc0b1f8: 7f e3 fb 78 mr r3,r31 case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: break; #endif } the_thread->Start.isr_level = isr_level; ffc0b1fc: 90 1f 00 c0 stw r0,192(r31) the_thread->current_state = STATES_DORMANT; ffc0b200: 38 00 00 01 li r0,1 ffc0b204: 2e 1b 00 00 cmpwi cr4,r27,0 ffc0b208: 90 1f 00 10 stw r0,16(r31) ffc0b20c: 2d 99 00 00 cmpwi cr3,r25,0 the_thread->Wait.queue = NULL; the_thread->resource_count = 0; ffc0b210: 93 9f 00 1c stw r28,28(r31) <== ALWAYS TAKEN #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif the_thread->real_priority = priority; ffc0b214: 93 bf 00 18 stw r29,24(r31) <== ALWAYS TAKEN the_thread->Start.initial_priority = priority; ffc0b218: 93 bf 00 c4 stw r29,196(r31) _Thread_Set_priority( the_thread, priority ); ffc0b21c: 48 00 09 19 bl ffc0bb34 <_Thread_Set_priority> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0b220: a0 1f 00 0a lhz r0,10(r31) ffc0b224: 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 ); ffc0b228: 7f e3 fb 78 mr r3,r31 ffc0b22c: 54 00 10 3a rlwinm r0,r0,2,0,29 <== ALWAYS TAKEN /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); ffc0b230: 93 9f 00 88 stw r28,136(r31) <== ALWAYS TAKEN ffc0b234: 7f e9 01 2e stwx r31,r9,r0 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc0b238: 93 1f 00 0c stw r24,12(r31) ffc0b23c: 93 9f 00 84 stw r28,132(r31) <== ALWAYS TAKEN * 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 ); ffc0b240: 48 00 12 a5 bl ffc0c4e4 <_User_extensions_Thread_create> <== ALWAYS TAKEN if ( extension_status ) ffc0b244: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b248: 38 60 00 01 li r3,1 ffc0b24c: 40 9e 00 5c bne- cr7,ffc0b2a8 <_Thread_Initialize+0x1a8> return true; failed: if ( the_thread->libc_reent ) ffc0b250: 80 7f 01 40 lwz r3,320(r31) ffc0b254: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b258: 41 9e 00 08 beq- cr7,ffc0b260 <_Thread_Initialize+0x160> _Workspace_Free( the_thread->libc_reent ); ffc0b25c: 48 00 18 91 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN ffc0b260: 3b c0 00 00 li r30,0 for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) ffc0b264: 7d 3f f2 14 add r9,r31,r30 ffc0b268: 80 69 01 44 lwz r3,324(r9) ffc0b26c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b270: 41 9e 00 08 beq- cr7,ffc0b278 <_Thread_Initialize+0x178> _Workspace_Free( the_thread->API_Extensions[i] ); ffc0b274: 48 00 18 79 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN failed: if ( the_thread->libc_reent ) _Workspace_Free( the_thread->libc_reent ); for ( i=0 ; i <= THREAD_API_LAST ; i++ ) ffc0b278: 2f 9e 00 08 cmpwi cr7,r30,8 ffc0b27c: 3b de 00 04 addi r30,r30,4 ffc0b280: 40 9e ff e4 bne+ cr7,ffc0b264 <_Thread_Initialize+0x164> if ( the_thread->API_Extensions[i] ) _Workspace_Free( the_thread->API_Extensions[i] ); if ( extensions_area ) ffc0b284: 41 8e 00 0c beq- cr3,ffc0b290 <_Thread_Initialize+0x190> (void) _Workspace_Free( extensions_area ); ffc0b288: 7f 23 cb 78 mr r3,r25 ffc0b28c: 48 00 18 61 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) ffc0b290: 41 92 00 0c beq- cr4,ffc0b29c <_Thread_Initialize+0x19c> (void) _Workspace_Free( fp_area ); ffc0b294: 7f 63 db 78 mr r3,r27 ffc0b298: 48 00 18 55 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN #endif _Thread_Stack_Free( the_thread ); ffc0b29c: 7f e3 fb 78 mr r3,r31 ffc0b2a0: 48 00 0b 61 bl ffc0be00 <_Thread_Stack_Free> <== ALWAYS TAKEN ffc0b2a4: 38 60 00 00 li r3,0 return false; } ffc0b2a8: 80 01 00 3c lwz r0,60(r1) ffc0b2ac: 81 81 00 10 lwz r12,16(r1) ffc0b2b0: 7c 08 03 a6 mtlr r0 ffc0b2b4: 82 e1 00 14 lwz r23,20(r1) ffc0b2b8: 83 01 00 18 lwz r24,24(r1) ffc0b2bc: 7d 81 81 20 mtcrf 24,r12 ffc0b2c0: 83 21 00 1c lwz r25,28(r1) ffc0b2c4: 83 41 00 20 lwz r26,32(r1) ffc0b2c8: 83 61 00 24 lwz r27,36(r1) <== ALWAYS TAKEN ffc0b2cc: 83 81 00 28 lwz r28,40(r1) ffc0b2d0: 83 a1 00 2c lwz r29,44(r1) ffc0b2d4: 83 c1 00 30 lwz r30,48(r1) ffc0b2d8: 83 e1 00 34 lwz r31,52(r1) ffc0b2dc: 38 21 00 38 addi r1,r1,56 ffc0b2e0: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); ffc0b2e4: 38 60 01 08 li r3,264 <== ALWAYS TAKEN ffc0b2e8: 48 00 17 d1 bl ffc0cab8 <_Workspace_Allocate> <== ALWAYS TAKEN if ( !fp_area ) ffc0b2ec: 2e 03 00 00 cmpwi cr4,r3,0 /* * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); ffc0b2f0: 7c 7b 1b 78 mr r27,r3 if ( !fp_area ) ffc0b2f4: 7c 69 1b 78 mr r9,r3 <== ALWAYS TAKEN ffc0b2f8: 40 92 fe 98 bne+ cr4,ffc0b190 <_Thread_Initialize+0x90> ffc0b2fc: 3b 20 00 00 li r25,0 ffc0b300: 4d 90 00 00 mcrf cr3,cr4 ffc0b304: 4b ff ff 4c b ffc0b250 <_Thread_Initialize+0x150> <== ALWAYS TAKEN /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( ffc0b308: 39 6b 00 01 addi r11,r11,1 ffc0b30c: 55 63 10 3a rlwinm r3,r11,2,0,29 ffc0b310: 48 00 17 a9 bl ffc0cab8 <_Workspace_Allocate> <== ALWAYS TAKEN (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) ffc0b314: 2d 83 00 00 cmpwi cr3,r3,0 ffc0b318: 7c 79 1b 78 mr r25,r3 ffc0b31c: 41 8e 00 84 beq- cr3,ffc0b3a0 <_Thread_Initialize+0x2a0> goto failed; } the_thread->extensions = (void **) extensions_area; ffc0b320: 90 7f 01 50 stw r3,336(r31) ffc0b324: 7c 6b 1b 78 mr r11,r3 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) ffc0b328: 38 00 00 00 li r0,0 ffc0b32c: 81 17 27 9c lwz r8,10140(r23) ffc0b330: 39 20 00 00 li r9,0 the_thread->extensions[i] = NULL; ffc0b334: 39 40 00 00 li r10,0 ffc0b338: 48 00 00 08 b ffc0b340 <_Thread_Initialize+0x240> <== ALWAYS TAKEN * 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++ ) ffc0b33c: 81 7f 01 50 lwz r11,336(r31) ffc0b340: 39 29 00 01 addi r9,r9,1 ffc0b344: 7f 88 48 40 cmplw cr7,r8,r9 the_thread->extensions[i] = NULL; ffc0b348: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0b34c: 7d 4b 01 2e stwx r10,r11,r0 * create the extension long after tasks have been created * so they cannot rely on the thread create user extension * call. */ if ( the_thread->extensions ) { for ( i = 0; i <= _Thread_Maximum_extensions ; i++ ) ffc0b350: 7d 20 4b 78 mr r0,r9 ffc0b354: 40 9c ff e8 bge+ cr7,ffc0b33c <_Thread_Initialize+0x23c> ffc0b358: 4b ff fe 6c b ffc0b1c4 <_Thread_Initialize+0xc4> <== ALWAYS TAKEN return false; /* stack allocation failed */ stack = the_thread->Start.stack; #else if ( !stack_area ) { actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size ); ffc0b35c: 7c 83 23 78 mr r3,r4 ffc0b360: 90 c1 00 08 stw r6,8(r1) ffc0b364: 7c c4 33 78 mr r4,r6 <== ALWAYS TAKEN ffc0b368: 90 e1 00 0c stw r7,12(r1) ffc0b36c: 48 00 09 dd bl ffc0bd48 <_Thread_Stack_Allocate> <== ALWAYS TAKEN if ( !actual_stack_size || actual_stack_size < stack_size ) ffc0b370: 2c 03 00 00 cmpwi r3,0 ffc0b374: 80 c1 00 08 lwz r6,8(r1) ffc0b378: 80 e1 00 0c lwz r7,12(r1) <== ALWAYS TAKEN ffc0b37c: 41 82 00 1c beq- ffc0b398 <_Thread_Initialize+0x298> ffc0b380: 7f 86 18 40 cmplw cr7,r6,r3 ffc0b384: 41 9d 00 14 bgt- cr7,ffc0b398 <_Thread_Initialize+0x298> <== NEVER TAKEN return false; /* stack allocation failed */ stack = the_thread->Start.stack; the_thread->Start.core_allocated_stack = true; ffc0b388: 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; ffc0b38c: 80 bf 00 d8 lwz r5,216(r31) the_thread->Start.core_allocated_stack = true; ffc0b390: 98 1f 00 c8 stb r0,200(r31) ffc0b394: 4b ff fd e4 b ffc0b178 <_Thread_Initialize+0x78> <== ALWAYS TAKEN if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return false; ffc0b398: 38 60 00 00 li r3,0 ffc0b39c: 4b ff ff 0c b ffc0b2a8 <_Thread_Initialize+0x1a8> <== ALWAYS TAKEN ffc0b3a0: 2e 1b 00 00 cmpwi cr4,r27,0 ffc0b3a4: 4b ff fe ac b ffc0b250 <_Thread_Initialize+0x150> <== ALWAYS TAKEN ffc0fe00 <_Thread_Load_environment>: */ void _Thread_Load_environment( Thread_Control *the_thread ) { ffc0fe00: 94 21 ff f0 stwu r1,-16(r1) ffc0fe04: 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 ) { ffc0fe08: 39 00 00 00 li r8,0 */ void _Thread_Load_environment( Thread_Control *the_thread ) { ffc0fe0c: 90 01 00 14 stw r0,20(r1) ffc0fe10: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc0fe14: 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 ) { ffc0fe18: 80 63 00 d4 lwz r3,212(r3) ffc0fe1c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0fe20: 41 9e 00 18 beq- cr7,ffc0fe38 <_Thread_Load_environment+0x38> the_thread->fp_context = the_thread->Start.fp_context; ffc0fe24: 90 7f 01 3c stw r3,316(r31) _Context_Initialize_fp( &the_thread->fp_context ); ffc0fe28: 38 80 00 00 li r4,0 ffc0fe2c: 38 a0 01 08 li r5,264 ffc0fe30: 48 00 42 31 bl ffc14060 <== ALWAYS TAKEN ffc0fe34: 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; ffc0fe38: 80 1f 00 bc lwz r0,188(r31) <== ALWAYS TAKEN } else #endif is_fp = false; the_thread->do_post_task_switch_extension = false; ffc0fe3c: 39 40 00 00 li r10,0 <== ALWAYS TAKEN the_thread->is_preemptible = the_thread->Start.is_preemptible; ffc0fe40: 89 7f 00 b4 lbz r11,180(r31) <== ALWAYS TAKEN the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; _Context_Initialize( ffc0fe44: 3c e0 ff c1 lis r7,-63 <== ALWAYS TAKEN 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; ffc0fe48: 81 3f 00 b8 lwz r9,184(r31) <== ALWAYS TAKEN the_thread->budget_callout = the_thread->Start.budget_callout; _Context_Initialize( ffc0fe4c: 38 7f 00 dc addi r3,r31,220 <== ALWAYS TAKEN 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; ffc0fe50: 90 1f 00 80 stw r0,128(r31) <== ALWAYS TAKEN _Context_Initialize( ffc0fe54: 38 e7 24 e0 addi r7,r7,9440 } else #endif is_fp = false; the_thread->do_post_task_switch_extension = false; ffc0fe58: 99 5f 00 74 stb r10,116(r31) <== ALWAYS TAKEN the_thread->is_preemptible = the_thread->Start.is_preemptible; ffc0fe5c: 99 7f 00 75 stb r11,117(r31) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; ffc0fe60: 91 3f 00 7c stw r9,124(r31) the_thread->budget_callout = the_thread->Start.budget_callout; _Context_Initialize( ffc0fe64: 80 df 00 c0 lwz r6,192(r31) <== ALWAYS TAKEN ffc0fe68: 80 9f 00 d0 lwz r4,208(r31) ffc0fe6c: 80 bf 00 cc lwz r5,204(r31) ffc0fe70: 48 00 db b5 bl ffc1da24 <_CPU_Context_Initialize> <== ALWAYS TAKEN the_thread->Start.isr_level, _Thread_Handler, is_fp ); } ffc0fe74: 80 01 00 14 lwz r0,20(r1) ffc0fe78: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc0fe7c: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0fe80: 7c 08 03 a6 mtlr r0 ffc0fe84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10170 <_Thread_Ready>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc10170: 7d 40 00 a6 mfmsr r10 ffc10174: 7c 10 42 a6 mfsprg r0,0 ffc10178: 7d 40 00 78 andc r0,r10,r0 ffc1017c: 7c 00 01 24 mtmsr r0 ISR_Level level; Thread_Control *heir; _ISR_Disable( level ); the_thread->current_state = STATES_READY; ffc10180: 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; ffc10184: 81 03 00 90 lwz r8,144(r3) ffc10188: 90 03 00 10 stw r0,16(r3) _Priority_Major_bit_map |= the_priority_map->ready_major; ffc1018c: 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; ffc10190: 80 e8 00 00 lwz r7,0(r8) ffc10194: 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 ); ffc10198: 81 63 00 8c lwz r11,140(r3) ffc1019c: 7c e0 03 78 or r0,r7,r0 ffc101a0: 90 08 00 00 stw r0,0(r8) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc101a4: 38 eb 00 04 addi r7,r11,4 <== ALWAYS TAKEN _Priority_Major_bit_map |= the_priority_map->ready_major; ffc101a8: 81 09 27 a4 lwz r8,10148(r9) ffc101ac: 80 03 00 94 lwz r0,148(r3) ffc101b0: 90 e3 00 00 stw r7,0(r3) ffc101b4: 7d 00 03 78 or r0,r8,r0 old_last_node = the_chain->last; ffc101b8: 81 0b 00 08 lwz r8,8(r11) ffc101bc: 90 09 27 a4 stw r0,10148(r9) the_chain->last = the_node; ffc101c0: 90 6b 00 08 stw r3,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc101c4: 91 03 00 04 stw r8,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; ffc101c8: 90 68 00 00 stw r3,0(r8) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc101cc: 7c 00 00 a6 mfmsr r0 ffc101d0: 7d 40 01 24 mtmsr r10 ffc101d4: 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; ffc101d8: 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 ); ffc101dc: 81 69 27 a4 lwz r11,10148(r9) ffc101e0: 80 a8 27 64 lwz r5,10084(r8) ffc101e4: 7d 66 00 34 cntlzw r6,r11 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc101e8: 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 ); ffc101ec: 91 69 27 a4 stw r11,10148(r9) _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc101f0: 38 e7 2d a0 addi r7,r7,11680 ffc101f4: 54 c8 10 3a rlwinm r8,r6,2,0,29 <== ALWAYS TAKEN ffc101f8: 7c 07 40 2e lwzx r0,r7,r8 ffc101fc: 7c 09 00 34 cntlzw r9,r0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc10200: 54 c6 20 36 rlwinm r6,r6,4,0,27 ffc10204: 7c 07 41 2e stwx r0,r7,r8 ffc10208: 7c c6 4a 14 add r6,r6,r9 ffc1020c: 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 ); ffc10210: 3d 20 00 00 lis r9,0 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc10214: 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 ); ffc10218: 81 29 27 b0 lwz r9,10160(r9) * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc1021c: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc10220: 90 0b 27 8c stw r0,10124(r11) _Thread_Calculate_heir(); heir = _Thread_Heir; if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible ) ffc10224: 7f 80 48 00 cmpw cr7,r0,r9 ffc10228: 41 9e 00 1c beq- cr7,ffc10244 <_Thread_Ready+0xd4> ffc1022c: 88 09 00 75 lbz r0,117(r9) ffc10230: 2f 80 00 00 cmpwi cr7,r0,0 ffc10234: 41 9e 00 10 beq- cr7,ffc10244 <_Thread_Ready+0xd4> _Context_Switch_necessary = true; ffc10238: 38 00 00 01 li r0,1 <== ALWAYS TAKEN ffc1023c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc10240: 98 09 27 c0 stb r0,10176(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc10244: 7d 40 01 24 mtmsr r10 _ISR_Enable( level ); } ffc10248: 4e 80 00 20 blr <== ALWAYS TAKEN ffc114f0 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc114f0: 94 21 ff f0 stwu r1,-16(r1) ffc114f4: 7c 08 02 a6 mflr r0 the_thread->resource_count = 0; ffc114f8: 39 40 00 00 li r10,0 void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc114fc: 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; ffc11500: 89 63 00 b4 lbz r11,180(r3) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; ffc11504: 81 23 00 b8 lwz r9,184(r3) the_thread->budget_callout = the_thread->Start.budget_callout; ffc11508: 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; ffc1150c: 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; ffc11510: 99 63 00 75 stb r11,117(r3) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; ffc11514: 91 23 00 7c stw r9,124(r3) the_thread->budget_callout = the_thread->Start.budget_callout; ffc11518: 90 03 00 80 stw r0,128(r3) the_thread->Start.pointer_argument = pointer_argument; ffc1151c: 90 83 00 ac stw r4,172(r3) the_thread->Start.numeric_argument = numeric_argument; ffc11520: 90 a3 00 b0 stw r5,176(r3) void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc11524: 93 e1 00 0c stw r31,12(r1) ffc11528: 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 ) ) { ffc1152c: 4b ff b4 65 bl ffc0c990 <_Thread_queue_Extract_with_proxy> <== ALWAYS TAKEN ffc11530: 2f 83 00 00 cmpwi cr7,r3,0 ffc11534: 40 9e 00 10 bne- cr7,ffc11544 <_Thread_Reset+0x54> if ( _Watchdog_Is_active( &the_thread->Timer ) ) ffc11538: 80 1f 00 50 lwz r0,80(r31) ffc1153c: 2f 80 00 02 cmpwi cr7,r0,2 ffc11540: 41 9e 00 34 beq- cr7,ffc11574 <_Thread_Reset+0x84> (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { ffc11544: 80 9f 00 c4 lwz r4,196(r31) ffc11548: 80 1f 00 14 lwz r0,20(r31) ffc1154c: 7f 80 20 00 cmpw cr7,r0,r4 ffc11550: 41 9e 00 10 beq- cr7,ffc11560 <_Thread_Reset+0x70> the_thread->real_priority = the_thread->Start.initial_priority; ffc11554: 90 9f 00 18 stw r4,24(r31) _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); ffc11558: 7f e3 fb 78 mr r3,r31 ffc1155c: 4b ff b6 c9 bl ffc0cc24 <_Thread_Set_priority> <== ALWAYS TAKEN } } ffc11560: 80 01 00 14 lwz r0,20(r1) ffc11564: 83 e1 00 0c lwz r31,12(r1) ffc11568: 38 21 00 10 addi r1,r1,16 ffc1156c: 7c 08 03 a6 mtlr r0 ffc11570: 4e 80 00 20 blr <== ALWAYS TAKEN the_thread->Start.numeric_argument = numeric_argument; if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { if ( _Watchdog_Is_active( &the_thread->Timer ) ) (void) _Watchdog_Remove( &the_thread->Timer ); ffc11574: 38 7f 00 48 addi r3,r31,72 ffc11578: 4b ff c4 c9 bl ffc0da40 <_Watchdog_Remove> <== ALWAYS TAKEN ffc1157c: 4b ff ff c8 b ffc11544 <_Thread_Reset+0x54> <== ALWAYS TAKEN ffc1024c <_Thread_Reset_timeslice>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ffc1024c: 3d 20 00 00 lis r9,0 ffc10250: 81 29 27 b0 lwz r9,10160(r9) ready = executing->ready; ffc10254: 81 69 00 8c lwz r11,140(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc10258: 7c 00 00 a6 mfmsr r0 ffc1025c: 7d 50 42 a6 mfsprg r10,0 ffc10260: 7c 0a 50 78 andc r10,r0,r10 ffc10264: 7d 40 01 24 mtmsr r10 _ISR_Disable( level ); if ( _Chain_Has_only_one_node( ready ) ) { ffc10268: 81 0b 00 00 lwz r8,0(r11) ffc1026c: 81 4b 00 08 lwz r10,8(r11) ffc10270: 7f 88 50 00 cmpw cr7,r8,r10 ffc10274: 41 9e 00 78 beq- cr7,ffc102ec <_Thread_Reset_timeslice+0xa0> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc10278: 81 49 00 00 lwz r10,0(r9) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc1027c: 38 eb 00 04 addi r7,r11,4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc10280: 81 09 00 04 lwz r8,4(r9) next->previous = previous; previous->next = next; ffc10284: 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; ffc10288: 91 0a 00 04 stw r8,4(r10) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc1028c: 90 e9 00 00 stw r7,0(r9) old_last_node = the_chain->last; ffc10290: 81 4b 00 08 lwz r10,8(r11) the_chain->last = the_node; ffc10294: 91 2b 00 08 stw r9,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc10298: 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; ffc1029c: 91 2a 00 00 stw r9,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc102a0: 7d 40 00 a6 mfmsr r10 ffc102a4: 7c 00 01 24 mtmsr r0 ffc102a8: 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 ) ) ffc102ac: 3d 40 00 00 lis r10,0 ffc102b0: 81 0a 27 8c lwz r8,10124(r10) ffc102b4: 7f 89 40 00 cmpw cr7,r9,r8 ffc102b8: 41 9e 00 18 beq- cr7,ffc102d0 <_Thread_Reset_timeslice+0x84> <== ALWAYS TAKEN _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; ffc102bc: 39 60 00 01 li r11,1 <== NOT EXECUTED ffc102c0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc102c4: 99 69 27 c0 stb r11,10176(r9) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc102c8: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc102cc: 4e 80 00 20 blr <== NOT EXECUTED _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; ffc102d0: 81 2b 00 00 lwz r9,0(r11) _Context_Switch_necessary = true; ffc102d4: 39 60 00 01 li r11,1 _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; ffc102d8: 91 2a 27 8c stw r9,10124(r10) _Context_Switch_necessary = true; ffc102dc: 3d 20 00 00 lis r9,0 ffc102e0: 99 69 27 c0 stb r11,10176(r9) ffc102e4: 7c 00 01 24 mtmsr r0 ffc102e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc102ec: 7c 00 01 24 mtmsr r0 ffc102f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cb70 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0cb70: 94 21 ff e8 stwu r1,-24(r1) ffc0cb74: 7c 08 02 a6 mflr r0 ffc0cb78: 90 01 00 1c stw r0,28(r1) if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0cb7c: 80 03 00 10 lwz r0,16(r3) bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0cb80: 93 e1 00 14 stw r31,20(r1) ffc0cb84: 7c 7f 1b 78 mr r31,r3 if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0cb88: 70 09 00 01 andi. r9,r0,1 bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0cb8c: 93 c1 00 10 stw r30,16(r1) if ( !_States_Is_dormant( the_thread->current_state ) ) { ffc0cb90: 38 00 00 00 li r0,0 ffc0cb94: 41 82 00 20 beq- ffc0cbb4 <_Thread_Restart+0x44> return true; } return false; } ffc0cb98: 7c 03 03 78 mr r3,r0 ffc0cb9c: 80 01 00 1c lwz r0,28(r1) ffc0cba0: 83 c1 00 10 lwz r30,16(r1) ffc0cba4: 7c 08 03 a6 mtlr r0 ffc0cba8: 83 e1 00 14 lwz r31,20(r1) ffc0cbac: 38 21 00 18 addi r1,r1,24 ffc0cbb0: 4e 80 00 20 blr <== ALWAYS TAKEN Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); ffc0cbb4: 90 81 00 08 stw r4,8(r1) _Thread_Ready( the_thread ); _User_extensions_Thread_restart( the_thread ); if ( _Thread_Is_executing ( the_thread ) ) ffc0cbb8: 3f c0 00 00 lis r30,0 Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); ffc0cbbc: 90 a1 00 0c stw r5,12(r1) ffc0cbc0: 48 00 01 e5 bl ffc0cda4 <_Thread_Set_transient> <== ALWAYS TAKEN _Thread_Reset( the_thread, pointer_argument, numeric_argument ); ffc0cbc4: 7f e3 fb 78 mr r3,r31 ffc0cbc8: 80 81 00 08 lwz r4,8(r1) ffc0cbcc: 80 a1 00 0c lwz r5,12(r1) ffc0cbd0: 48 00 49 21 bl ffc114f0 <_Thread_Reset> <== ALWAYS TAKEN _Thread_Load_environment( the_thread ); ffc0cbd4: 7f e3 fb 78 mr r3,r31 ffc0cbd8: 48 00 44 cd bl ffc110a4 <_Thread_Load_environment> <== ALWAYS TAKEN _Thread_Ready( the_thread ); ffc0cbdc: 7f e3 fb 78 mr r3,r31 ffc0cbe0: 48 00 48 35 bl ffc11414 <_Thread_Ready> <== ALWAYS TAKEN _User_extensions_Thread_restart( the_thread ); ffc0cbe4: 7f e3 fb 78 mr r3,r31 ffc0cbe8: 48 00 0b 05 bl ffc0d6ec <_User_extensions_Thread_restart> <== ALWAYS TAKEN if ( _Thread_Is_executing ( the_thread ) ) ffc0cbec: 81 3e 27 fc lwz r9,10236(r30) ffc0cbf0: 38 00 00 01 li r0,1 ffc0cbf4: 7f 9f 48 00 cmpw cr7,r31,r9 ffc0cbf8: 40 9e ff a0 bne+ cr7,ffc0cb98 <_Thread_Restart+0x28> */ RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void ) { #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) ffc0cbfc: 80 1f 01 3c lwz r0,316(r31) ffc0cc00: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cc04: 41 9e 00 10 beq- cr7,ffc0cc14 <_Thread_Restart+0xa4> <== NEVER TAKEN _Context_Restore_fp( &_Thread_Executing->fp_context ); ffc0cc08: 38 7f 01 3c addi r3,r31,316 ffc0cc0c: 48 01 4e b5 bl ffc21ac0 <_CPU_Context_restore_fp> <== ALWAYS TAKEN ffc0cc10: 83 fe 27 fc lwz r31,10236(r30) #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); ffc0cc14: 38 7f 00 dc addi r3,r31,220 ffc0cc18: 48 01 50 69 bl ffc21c80 <_CPU_Context_restore> <== ALWAYS TAKEN ffc0cc1c: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0cc20: 4b ff ff 78 b ffc0cb98 <_Thread_Restart+0x28> <== NOT EXECUTED ffc105d4 <_Thread_Resume>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc105d4: 7d 20 00 a6 mfmsr r9 ffc105d8: 7c 10 42 a6 mfsprg r0,0 ffc105dc: 7d 20 00 78 andc r0,r9,r0 ffc105e0: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; ffc105e4: 80 03 00 10 lwz r0,16(r3) if ( current_state & STATES_SUSPENDED ) { ffc105e8: 70 0b 00 02 andi. r11,r0,2 ffc105ec: 41 82 00 a0 beq- ffc1068c <_Thread_Resume+0xb8> <== NEVER TAKEN ffc105f0: 54 00 07 fa rlwinm r0,r0,0,31,29 current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { ffc105f4: 2f 80 00 00 cmpwi cr7,r0,0 } #endif current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { current_state = ffc105f8: 90 03 00 10 stw r0,16(r3) the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { ffc105fc: 40 9e 00 90 bne- cr7,ffc1068c <_Thread_Resume+0xb8> RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor |= the_priority_map->ready_minor; ffc10600: 81 43 00 90 lwz r10,144(r3) ffc10604: 80 03 00 98 lwz r0,152(r3) ffc10608: 81 0a 00 00 lwz r8,0(r10) _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); ffc1060c: 81 63 00 8c lwz r11,140(r3) ffc10610: 7d 00 03 78 or r0,r8,r0 ffc10614: 90 0a 00 00 stw r0,0(r10) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc10618: 38 0b 00 04 addi r0,r11,4 _Priority_Major_bit_map |= the_priority_map->ready_major; ffc1061c: 3d 00 00 00 lis r8,0 ffc10620: 90 03 00 00 stw r0,0(r3) ffc10624: 80 e8 27 c4 lwz r7,10180(r8) ffc10628: 80 03 00 94 lwz r0,148(r3) old_last_node = the_chain->last; ffc1062c: 81 4b 00 08 lwz r10,8(r11) ffc10630: 7c e0 03 78 or r0,r7,r0 the_chain->last = the_node; ffc10634: 90 6b 00 08 stw r3,8(r11) ffc10638: 90 08 27 c4 stw r0,10180(r8) <== ALWAYS TAKEN old_last_node->next = the_node; the_node->previous = old_last_node; ffc1063c: 91 43 00 04 stw r10,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; ffc10640: 90 6a 00 00 stw r3,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc10644: 7c 00 00 a6 mfmsr r0 ffc10648: 7d 20 01 24 mtmsr r9 ffc1064c: 7c 00 01 24 mtmsr r0 _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { ffc10650: 3d 60 00 00 lis r11,0 ffc10654: 80 03 00 14 lwz r0,20(r3) ffc10658: 81 4b 27 ac lwz r10,10156(r11) ffc1065c: 81 4a 00 14 lwz r10,20(r10) ffc10660: 7f 80 50 40 cmplw cr7,r0,r10 ffc10664: 40 9c 00 28 bge- cr7,ffc1068c <_Thread_Resume+0xb8> _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || ffc10668: 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; ffc1066c: 90 6b 27 ac stw r3,10156(r11) if ( _Thread_Executing->is_preemptible || ffc10670: 81 4a 27 d0 lwz r10,10192(r10) ffc10674: 89 6a 00 75 lbz r11,117(r10) ffc10678: 2f 8b 00 00 cmpwi cr7,r11,0 <== ALWAYS TAKEN ffc1067c: 41 9e 00 18 beq- cr7,ffc10694 <_Thread_Resume+0xc0> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; ffc10680: 38 00 00 01 li r0,1 ffc10684: 3d 60 00 00 lis r11,0 ffc10688: 98 0b 27 e0 stb r0,10208(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1068c: 7d 20 01 24 mtmsr r9 } } } _ISR_Enable( level ); } ffc10690: 4e 80 00 20 blr <== ALWAYS TAKEN _ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible || ffc10694: 2f 80 00 00 cmpwi cr7,r0,0 ffc10698: 41 9e ff e8 beq+ cr7,ffc10680 <_Thread_Resume+0xac> <== NEVER TAKEN ffc1069c: 4b ff ff f0 b ffc1068c <_Thread_Resume+0xb8> <== ALWAYS TAKEN ffc0bb34 <_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 ]; ffc0bb34: 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; ffc0bb38: 90 83 00 14 stw r4,20(r3) <== ALWAYS TAKEN the_thread->ready = &_Thread_Ready_chain[ new_priority ]; ffc0bb3c: 1d 44 00 0c mulli r10,r4,12 ffc0bb40: 81 09 27 64 lwz r8,10084(r9) RTEMS_INLINE_ROUTINE Priority_Bit_map_control _Priority_Major ( Priority_Control the_priority ) { return (Priority_Bit_map_control)( the_priority / 16 ); ffc0bb44: 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 ); ffc0bb48: 3d 20 80 00 lis r9,-32768 ffc0bb4c: 7d 48 52 14 add r10,r8,r10 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 ); ffc0bb50: 54 80 07 3e clrlwi r0,r4,28 ffc0bb54: 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 = ffc0bb58: 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 ); ffc0bb5c: 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 = ffc0bb60: 39 08 2d a0 addi r8,r8,11680 <== 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 ); the_priority_map->ready_minor = mask; ffc0bb64: 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 ); ffc0bb68: 7d 29 5c 30 srw r9,r9,r11 Priority_Bit_map_control mask; major = _Priority_Major( new_priority ); minor = _Priority_Minor( new_priority ); the_priority_map->minor = ffc0bb6c: 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; ffc0bb70: 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 = ffc0bb74: 7d 68 5a 14 add r11,r8,r11 <== ALWAYS TAKEN 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)); ffc0bb78: 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 = ffc0bb7c: 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)); ffc0bb80: 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)); ffc0bb84: 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)); ffc0bb88: 91 03 00 9c stw r8,156(r3) <== ALWAYS TAKEN _Priority_Initialize_information( &the_thread->Priority_map, new_priority ); } ffc0bb8c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bb90 <_Thread_Set_state>: ) { ISR_Level level; Chain_Control *ready; ready = the_thread->ready; ffc0bb90: 81 23 00 8c lwz r9,140(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0bb94: 7c 00 00 a6 mfmsr r0 <== ALWAYS TAKEN ffc0bb98: 7d 70 42 a6 mfsprg r11,0 ffc0bb9c: 7c 0b 58 78 andc r11,r0,r11 ffc0bba0: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { ffc0bba4: 81 63 00 10 lwz r11,16(r3) ffc0bba8: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0bbac: 40 9e 00 5c bne- cr7,ffc0bc08 <_Thread_Set_state+0x78> return; } the_thread->current_state = state; if ( _Chain_Has_only_one_node( ready ) ) { ffc0bbb0: 81 09 00 00 lwz r8,0(r9) ffc0bbb4: 81 49 00 08 lwz r10,8(r9) <== ALWAYS TAKEN _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; ffc0bbb8: 90 83 00 10 stw r4,16(r3) if ( _Chain_Has_only_one_node( ready ) ) { ffc0bbbc: 7f 88 50 00 cmpw cr7,r8,r10 <== ALWAYS TAKEN ffc0bbc0: 41 9e 00 68 beq- cr7,ffc0bc28 <_Thread_Set_state+0x98> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0bbc4: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; ffc0bbc8: 81 63 00 04 lwz r11,4(r3) next->previous = previous; previous->next = next; ffc0bbcc: 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; ffc0bbd0: 91 69 00 04 stw r11,4(r9) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0bbd4: 7d 20 00 a6 mfmsr r9 ffc0bbd8: 7c 00 01 24 mtmsr r0 ffc0bbdc: 7d 20 01 24 mtmsr r9 } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( the_thread ) ) ffc0bbe0: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0bbe4: 81 69 27 8c lwz r11,10124(r9) ffc0bbe8: 7f 83 58 00 cmpw cr7,r3,r11 ffc0bbec: 41 9e 00 80 beq- cr7,ffc0bc6c <_Thread_Set_state+0xdc> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) ffc0bbf0: 3d 20 00 00 lis r9,0 ffc0bbf4: 81 29 27 b0 lwz r9,10160(r9) ffc0bbf8: 7f 83 48 00 cmpw cr7,r3,r9 ffc0bbfc: 41 9e 00 1c beq- cr7,ffc0bc18 <_Thread_Set_state+0x88> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0bc00: 7c 00 01 24 mtmsr r0 ffc0bc04: 4e 80 00 20 blr <== ALWAYS TAKEN Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = ffc0bc08: 7c 8b 5b 78 or r11,r4,r11 ffc0bc0c: 91 63 00 10 stw r11,16(r3) ffc0bc10: 7c 00 01 24 mtmsr r0 ffc0bc14: 4e 80 00 20 blr <== ALWAYS TAKEN if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; ffc0bc18: 39 60 00 01 li r11,1 ffc0bc1c: 3d 20 00 00 lis r9,0 ffc0bc20: 99 69 27 c0 stb r11,10176(r9) ffc0bc24: 4b ff ff dc b ffc0bc00 <_Thread_Set_state+0x70> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; ffc0bc28: 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); ffc0bc2c: 38 e9 00 04 addi r7,r9,4 ffc0bc30: 81 03 00 a0 lwz r8,160(r3) ffc0bc34: 80 ca 00 00 lwz r6,0(r10) ffc0bc38: 90 e9 00 00 stw r7,0(r9) ffc0bc3c: 7c c8 40 38 and r8,r6,r8 the_thread->current_state = state; if ( _Chain_Has_only_one_node( ready ) ) { _Chain_Initialize_empty( ready ); _Priority_Remove_from_bit_map( &the_thread->Priority_map ); ffc0bc40: 2f 88 00 00 cmpwi cr7,r8,0 <== ALWAYS TAKEN the_chain->permanent_null = NULL; ffc0bc44: 91 69 00 04 stw r11,4(r9) the_chain->last = _Chain_Head(the_chain); ffc0bc48: 91 29 00 08 stw r9,8(r9) ffc0bc4c: 91 0a 00 00 stw r8,0(r10) ffc0bc50: 40 be ff 84 bne- cr7,ffc0bbd4 <_Thread_Set_state+0x44> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; ffc0bc54: 3d 20 00 00 lis r9,0 ffc0bc58: 81 63 00 9c lwz r11,156(r3) ffc0bc5c: 81 49 27 a4 lwz r10,10148(r9) ffc0bc60: 7d 4b 58 38 and r11,r10,r11 ffc0bc64: 91 69 27 a4 stw r11,10148(r9) ffc0bc68: 4b ff ff 6c b ffc0bbd4 <_Thread_Set_state+0x44> <== ALWAYS TAKEN 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 ); ffc0bc6c: 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; ffc0bc70: 3d 60 00 00 lis r11,0 ffc0bc74: 81 45 27 a4 lwz r10,10148(r5) ffc0bc78: 80 8b 27 64 lwz r4,10084(r11) ffc0bc7c: 7d 46 00 34 cntlzw r6,r10 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0bc80: 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 ); ffc0bc84: 91 45 27 a4 stw r10,10148(r5) <== ALWAYS TAKEN _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0bc88: 38 e7 2d a0 addi r7,r7,11680 ffc0bc8c: 54 c8 10 3a rlwinm r8,r6,2,0,29 ffc0bc90: 7d 67 40 2e lwzx r11,r7,r8 ffc0bc94: 7d 6a 00 34 cntlzw r10,r11 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0bc98: 54 c6 20 36 rlwinm r6,r6,4,0,27 ffc0bc9c: 7d 67 41 2e stwx r11,r7,r8 ffc0bca0: 7c c6 52 14 add r6,r6,r10 ffc0bca4: 1c c6 00 0c mulli r6,r6,12 ffc0bca8: 7d 64 30 2e lwzx r11,r4,r6 ffc0bcac: 91 69 27 8c stw r11,10124(r9) ffc0bcb0: 4b ff ff 40 b ffc0bbf0 <_Thread_Set_state+0x60> <== ALWAYS TAKEN ffc0bcb4 <_Thread_Set_transient>: { ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; ffc0bcb4: 81 23 00 8c lwz r9,140(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0bcb8: 7d 60 00 a6 mfmsr r11 ffc0bcbc: 7c 10 42 a6 mfsprg r0,0 ffc0bcc0: 7d 60 00 78 andc r0,r11,r0 ffc0bcc4: 7c 00 01 24 mtmsr r0 _ISR_Disable( level ); old_state = the_thread->current_state; ffc0bcc8: 80 03 00 10 lwz r0,16(r3) the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); if ( _States_Is_ready( old_state ) ) { ffc0bccc: 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 ); ffc0bcd0: 60 0a 00 04 ori r10,r0,4 ffc0bcd4: 91 43 00 10 stw r10,16(r3) if ( _States_Is_ready( old_state ) ) { ffc0bcd8: 40 9e 00 24 bne- cr7,ffc0bcfc <_Thread_Set_transient+0x48> if ( _Chain_Has_only_one_node( ready ) ) { ffc0bcdc: 81 09 00 00 lwz r8,0(r9) ffc0bce0: 81 49 00 08 lwz r10,8(r9) ffc0bce4: 7f 88 50 00 cmpw cr7,r8,r10 ffc0bce8: 41 9e 00 1c beq- cr7,ffc0bd04 <_Thread_Set_transient+0x50> { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0bcec: 81 43 00 04 lwz r10,4(r3) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0bcf0: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; next->previous = previous; previous->next = next; ffc0bcf4: 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; ffc0bcf8: 91 49 00 04 stw r10,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0bcfc: 7d 60 01 24 mtmsr r11 _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); } ffc0bd00: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; ffc0bd04: 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); ffc0bd08: 38 e9 00 04 addi r7,r9,4 ffc0bd0c: 81 03 00 a0 lwz r8,160(r3) ffc0bd10: 80 ca 00 00 lwz r6,0(r10) ffc0bd14: 90 e9 00 00 stw r7,0(r9) ffc0bd18: 7c c8 40 38 and r8,r6,r8 if ( _States_Is_ready( old_state ) ) { if ( _Chain_Has_only_one_node( ready ) ) { _Chain_Initialize_empty( ready ); _Priority_Remove_from_bit_map( &the_thread->Priority_map ); ffc0bd1c: 2f 88 00 00 cmpwi cr7,r8,0 the_chain->permanent_null = NULL; ffc0bd20: 90 09 00 04 stw r0,4(r9) the_chain->last = _Chain_Head(the_chain); ffc0bd24: 91 29 00 08 stw r9,8(r9) ffc0bd28: 91 0a 00 00 stw r8,0(r10) ffc0bd2c: 40 be ff d0 bne- cr7,ffc0bcfc <_Thread_Set_transient+0x48> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; ffc0bd30: 3d 20 00 00 lis r9,0 ffc0bd34: 80 03 00 9c lwz r0,156(r3) ffc0bd38: 81 49 27 a4 lwz r10,10148(r9) ffc0bd3c: 7d 40 00 38 and r0,r10,r0 ffc0bd40: 90 09 27 a4 stw r0,10148(r9) ffc0bd44: 4b ff ff b8 b ffc0bcfc <_Thread_Set_transient+0x48> <== ALWAYS TAKEN ffc0bd48 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { ffc0bd48: 94 21 ff f0 stwu r1,-16(r1) ffc0bd4c: 7c 08 02 a6 mflr r0 ffc0bd50: 3d 20 00 00 lis r9,0 ffc0bd54: 90 01 00 14 stw r0,20(r1) ffc0bd58: 80 09 26 a0 lwz r0,9888(r9) ffc0bd5c: 93 c1 00 08 stw r30,8(r1) ffc0bd60: 7c 7e 1b 78 mr r30,r3 ffc0bd64: 7f 84 00 40 cmplw cr7,r4,r0 <== ALWAYS TAKEN ffc0bd68: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc0bd6c: 7c 9f 23 78 mr r31,r4 ffc0bd70: 40 9c 00 08 bge- cr7,ffc0bd78 <_Thread_Stack_Allocate+0x30> ffc0bd74: 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 ) { ffc0bd78: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0bd7c: 80 09 20 c0 lwz r0,8384(r9) ffc0bd80: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc0bd84: 41 9e 00 40 beq- cr7,ffc0bdc4 <_Thread_Stack_Allocate+0x7c> stack_addr = (*Configuration.stack_allocate_hook)( the_stack_size ); ffc0bd88: 7f e3 fb 78 mr r3,r31 ffc0bd8c: 7c 09 03 a6 mtctr r0 ffc0bd90: 4e 80 04 21 bctrl <== ALWAYS TAKEN the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) ffc0bd94: 7c 69 fe 70 srawi r9,r3,31 the_stack_size = 0; the_thread->Start.stack = stack_addr; ffc0bd98: 90 7e 00 d8 stw r3,216(r30) the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) ffc0bd9c: 7d 20 1a 78 xor r0,r9,r3 ffc0bda0: 7c 00 48 50 subf r0,r0,r9 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } ffc0bda4: 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 ) ffc0bda8: 7c 00 fe 70 srawi r0,r0,31 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } ffc0bdac: 7f e3 00 38 and r3,r31,r0 ffc0bdb0: 80 01 00 14 lwz r0,20(r1) ffc0bdb4: 83 e1 00 0c lwz r31,12(r1) ffc0bdb8: 38 21 00 10 addi r1,r1,16 ffc0bdbc: 7c 08 03 a6 mtlr r0 ffc0bdc0: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; ffc0bdc4: 3b ff 00 10 addi r31,r31,16 <== ALWAYS TAKEN * 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 ); ffc0bdc8: 7f e3 fb 78 mr r3,r31 ffc0bdcc: 48 00 0c ed bl ffc0cab8 <_Workspace_Allocate> <== ALWAYS TAKEN } if ( !stack_addr ) ffc0bdd0: 7c 69 fe 70 srawi r9,r3,31 the_stack_size = 0; the_thread->Start.stack = stack_addr; ffc0bdd4: 90 7e 00 d8 stw r3,216(r30) the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) ffc0bdd8: 7d 20 1a 78 xor r0,r9,r3 ffc0bddc: 7c 00 48 50 subf r0,r0,r9 the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } ffc0bde0: 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 ) ffc0bde4: 7c 00 fe 70 srawi r0,r0,31 <== ALWAYS TAKEN the_stack_size = 0; the_thread->Start.stack = stack_addr; return the_stack_size; } ffc0bde8: 7f e3 00 38 and r3,r31,r0 ffc0bdec: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc0bdf0: 83 e1 00 0c lwz r31,12(r1) ffc0bdf4: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0bdf8: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0bdfc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0be00 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { ffc0be00: 7c 08 02 a6 mflr r0 ffc0be04: 94 21 ff f8 stwu r1,-8(r1) ffc0be08: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN #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 ) ffc0be0c: 88 03 00 c8 lbz r0,200(r3) ffc0be10: 2f 80 00 00 cmpwi cr7,r0,0 ffc0be14: 41 9e 00 20 beq- cr7,ffc0be34 <_Thread_Stack_Free+0x34> * 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 ) ffc0be18: 3d 20 00 00 lis r9,0 ffc0be1c: 80 09 20 c4 lwz r0,8388(r9) ffc0be20: 2f 80 00 00 cmpwi cr7,r0,0 ffc0be24: 41 9e 00 20 beq- cr7,ffc0be44 <_Thread_Stack_Free+0x44> (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); ffc0be28: 80 63 00 d0 lwz r3,208(r3) ffc0be2c: 7c 09 03 a6 mtctr r0 ffc0be30: 4e 80 04 21 bctrl <== ALWAYS TAKEN else _Workspace_Free( the_thread->Start.Initial_stack.area ); } ffc0be34: 80 01 00 0c lwz r0,12(r1) ffc0be38: 38 21 00 08 addi r1,r1,8 ffc0be3c: 7c 08 03 a6 mtlr r0 ffc0be40: 4e 80 00 20 blr <== ALWAYS TAKEN */ if ( Configuration.stack_free_hook ) (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); else _Workspace_Free( the_thread->Start.Initial_stack.area ); ffc0be44: 80 63 00 d0 lwz r3,208(r3) ffc0be48: 48 00 0c a5 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN } ffc0be4c: 80 01 00 0c lwz r0,12(r1) ffc0be50: 38 21 00 08 addi r1,r1,8 ffc0be54: 7c 08 03 a6 mtlr r0 ffc0be58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bed0 <_Thread_Start>: Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { ffc0bed0: 94 21 ff f0 stwu r1,-16(r1) ffc0bed4: 7c 08 02 a6 mflr r0 ffc0bed8: 90 01 00 14 stw r0,20(r1) if ( _States_Is_dormant( the_thread->current_state ) ) { ffc0bedc: 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 ) { ffc0bee0: 93 e1 00 0c stw r31,12(r1) ffc0bee4: 7c 7f 1b 78 mr r31,r3 if ( _States_Is_dormant( the_thread->current_state ) ) { ffc0bee8: 70 09 00 01 andi. r9,r0,1 <== ALWAYS TAKEN ffc0beec: 38 00 00 00 li r0,0 ffc0bef0: 41 a2 00 2c beq+ ffc0bf1c <_Thread_Start+0x4c> the_thread->Start.entry_point = (Thread_Entry) entry_point; ffc0bef4: 90 a3 00 a4 stw r5,164(r3) the_thread->Start.prototype = the_prototype; ffc0bef8: 90 83 00 a8 stw r4,168(r3) the_thread->Start.pointer_argument = pointer_argument; ffc0befc: 90 c3 00 ac stw r6,172(r3) the_thread->Start.numeric_argument = numeric_argument; ffc0bf00: 90 e3 00 b0 stw r7,176(r3) _Thread_Load_environment( the_thread ); ffc0bf04: 48 00 3e fd bl ffc0fe00 <_Thread_Load_environment> <== ALWAYS TAKEN _Thread_Ready( the_thread ); ffc0bf08: 7f e3 fb 78 mr r3,r31 ffc0bf0c: 48 00 42 65 bl ffc10170 <_Thread_Ready> <== ALWAYS TAKEN _User_extensions_Thread_start( the_thread ); ffc0bf10: 7f e3 fb 78 mr r3,r31 ffc0bf14: 48 00 06 e9 bl ffc0c5fc <_User_extensions_Thread_start> <== ALWAYS TAKEN ffc0bf18: 38 00 00 01 li r0,1 return true; } return false; } ffc0bf1c: 7c 03 03 78 mr r3,r0 ffc0bf20: 80 01 00 14 lwz r0,20(r1) ffc0bf24: 83 e1 00 0c lwz r31,12(r1) ffc0bf28: 38 21 00 10 addi r1,r1,16 ffc0bf2c: 7c 08 03 a6 mtlr r0 ffc0bf30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0be5c <_Thread_Start_multitasking>: * ready chain * select heir */ void _Thread_Start_multitasking( void ) { ffc0be5c: 94 21 ff f0 stwu r1,-16(r1) ffc0be60: 7c 08 02 a6 mflr r0 ffc0be64: 3d 20 00 00 lis r9,0 ffc0be68: 93 e1 00 0c stw r31,12(r1) _System_state_Set( SYSTEM_STATE_UP ); _Context_Switch_necessary = false; _Thread_Executing = _Thread_Heir; ffc0be6c: 3f e0 00 00 lis r31,0 ffc0be70: 80 9f 27 8c lwz r4,10124(r31) * ready chain * select heir */ void _Thread_Start_multitasking( void ) { ffc0be74: 90 01 00 14 stw r0,20(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 ) ffc0be78: 80 04 01 3c lwz r0,316(r4) ffc0be7c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0be80: 38 00 00 03 li r0,3 <== ALWAYS TAKEN ffc0be84: 90 09 27 d4 stw r0,10196(r9) * the system is shut down. */ _System_state_Set( SYSTEM_STATE_UP ); _Context_Switch_necessary = false; ffc0be88: 3d 20 00 00 lis r9,0 ffc0be8c: 38 00 00 00 li r0,0 ffc0be90: 98 09 27 c0 stb r0,10176(r9) _Thread_Executing = _Thread_Heir; ffc0be94: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0be98: 90 89 27 b0 stw r4,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 ) ffc0be9c: 41 9e 00 10 beq- cr7,ffc0beac <_Thread_Start_multitasking+0x50> _Context_Restore_fp( &_Thread_Heir->fp_context ); ffc0bea0: 38 64 01 3c addi r3,r4,316 <== ALWAYS TAKEN ffc0bea4: 48 01 1c fd bl ffc1dba0 <_CPU_Context_restore_fp> <== ALWAYS TAKEN ffc0bea8: 80 9f 27 8c lwz r4,10124(r31) #endif _Context_Switch( &_Thread_BSP_context, &_Thread_Heir->Registers ); ffc0beac: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN ffc0beb0: 38 63 2c 34 addi r3,r3,11316 ffc0beb4: 38 84 00 dc addi r4,r4,220 ffc0beb8: 48 01 1d a9 bl ffc1dc60 <_CPU_Context_switch> <== ALWAYS TAKEN } ffc0bebc: 80 01 00 14 lwz r0,20(r1) ffc0bec0: 83 e1 00 0c lwz r31,12(r1) ffc0bec4: 38 21 00 10 addi r1,r1,16 <== ALWAYS TAKEN ffc0bec8: 7c 08 03 a6 mtlr r0 ffc0becc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bf34 <_Thread_Suspend>: ) { ISR_Level level; Chain_Control *ready; ready = the_thread->ready; ffc0bf34: 81 23 00 8c lwz r9,140(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0bf38: 7c 00 00 a6 mfmsr r0 ffc0bf3c: 7d 70 42 a6 mfsprg r11,0 ffc0bf40: 7c 0b 58 78 andc r11,r0,r11 ffc0bf44: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); #if defined(RTEMS_ITRON_API) the_thread->suspend_count++; #endif if ( !_States_Is_ready( the_thread->current_state ) ) { ffc0bf48: 81 63 00 10 lwz r11,16(r3) ffc0bf4c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0bf50: 40 9e 00 60 bne- cr7,ffc0bfb0 <_Thread_Suspend+0x7c> return; } the_thread->current_state = STATES_SUSPENDED; if ( _Chain_Has_only_one_node( ready ) ) { ffc0bf54: 81 49 00 08 lwz r10,8(r9) ffc0bf58: 81 09 00 00 lwz r8,0(r9) ffc0bf5c: 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; ffc0bf60: 39 40 00 02 li r10,2 ffc0bf64: 91 43 00 10 stw r10,16(r3) if ( _Chain_Has_only_one_node( ready ) ) { ffc0bf68: 41 9e 00 68 beq- cr7,ffc0bfd0 <_Thread_Suspend+0x9c> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0bf6c: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; ffc0bf70: 81 63 00 04 lwz r11,4(r3) next->previous = previous; previous->next = next; ffc0bf74: 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; ffc0bf78: 91 69 00 04 stw r11,4(r9) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0bf7c: 7d 20 00 a6 mfmsr r9 ffc0bf80: 7c 00 01 24 mtmsr r0 ffc0bf84: 7d 20 01 24 mtmsr r9 } else _Chain_Extract_unprotected( &the_thread->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( the_thread ) ) ffc0bf88: 3d 20 00 00 lis r9,0 ffc0bf8c: 81 69 27 8c lwz r11,10124(r9) ffc0bf90: 7f 83 58 00 cmpw cr7,r3,r11 ffc0bf94: 41 9e 00 80 beq- cr7,ffc0c014 <_Thread_Suspend+0xe0> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) ffc0bf98: 3d 20 00 00 lis r9,0 ffc0bf9c: 81 29 27 b0 lwz r9,10160(r9) ffc0bfa0: 7f 83 48 00 cmpw cr7,r3,r9 ffc0bfa4: 41 9e 00 1c beq- cr7,ffc0bfc0 <_Thread_Suspend+0x8c> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0bfa8: 7c 00 01 24 mtmsr r0 ffc0bfac: 4e 80 00 20 blr <== ALWAYS TAKEN _ISR_Disable( level ); #if defined(RTEMS_ITRON_API) the_thread->suspend_count++; #endif if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = ffc0bfb0: 61 6b 00 02 ori r11,r11,2 ffc0bfb4: 91 63 00 10 stw r11,16(r3) ffc0bfb8: 7c 00 01 24 mtmsr r0 ffc0bfbc: 4e 80 00 20 blr <== ALWAYS TAKEN if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; ffc0bfc0: 39 60 00 01 li r11,1 ffc0bfc4: 3d 20 00 00 lis r9,0 ffc0bfc8: 99 69 27 c0 stb r11,10176(r9) ffc0bfcc: 4b ff ff dc b ffc0bfa8 <_Thread_Suspend+0x74> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor; ffc0bfd0: 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); ffc0bfd4: 38 e9 00 04 addi r7,r9,4 ffc0bfd8: 81 03 00 a0 lwz r8,160(r3) ffc0bfdc: 80 ca 00 00 lwz r6,0(r10) ffc0bfe0: 90 e9 00 00 stw r7,0(r9) ffc0bfe4: 7c c8 40 38 and r8,r6,r8 the_thread->current_state = STATES_SUSPENDED; if ( _Chain_Has_only_one_node( ready ) ) { _Chain_Initialize_empty( ready ); _Priority_Remove_from_bit_map( &the_thread->Priority_map ); ffc0bfe8: 2f 88 00 00 cmpwi cr7,r8,0 the_chain->permanent_null = NULL; ffc0bfec: 91 69 00 04 stw r11,4(r9) the_chain->last = _Chain_Head(the_chain); ffc0bff0: 91 29 00 08 stw r9,8(r9) ffc0bff4: 91 0a 00 00 stw r8,0(r10) ffc0bff8: 40 be ff 84 bne- cr7,ffc0bf7c <_Thread_Suspend+0x48> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; ffc0bffc: 3d 20 00 00 lis r9,0 ffc0c000: 81 63 00 9c lwz r11,156(r3) ffc0c004: 81 49 27 a4 lwz r10,10148(r9) ffc0c008: 7d 4b 58 38 and r11,r10,r11 ffc0c00c: 91 69 27 a4 stw r11,10148(r9) ffc0c010: 4b ff ff 6c b ffc0bf7c <_Thread_Suspend+0x48> <== ALWAYS TAKEN 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 ); ffc0c014: 3c a0 00 00 lis r5,0 _Thread_Ready_chain[ _Priority_Get_highest() ].first; ffc0c018: 3d 60 00 00 lis r11,0 ffc0c01c: 81 45 27 a4 lwz r10,10148(r5) ffc0c020: 80 8b 27 64 lwz r4,10084(r11) ffc0c024: 7d 46 00 34 cntlzw r6,r10 _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0c028: 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 ); ffc0c02c: 91 45 27 a4 stw r10,10148(r5) _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); ffc0c030: 38 e7 2d a0 addi r7,r7,11680 ffc0c034: 54 c8 10 3a rlwinm r8,r6,2,0,29 ffc0c038: 7d 67 40 2e lwzx r11,r7,r8 ffc0c03c: 7d 6a 00 34 cntlzw r10,r11 * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) ffc0c040: 54 c6 20 36 rlwinm r6,r6,4,0,27 ffc0c044: 7d 67 41 2e stwx r11,r7,r8 ffc0c048: 7c c6 52 14 add r6,r6,r10 ffc0c04c: 1c c6 00 0c mulli r6,r6,12 ffc0c050: 7d 64 30 2e lwzx r11,r4,r6 ffc0c054: 91 69 27 8c stw r11,10124(r9) ffc0c058: 4b ff ff 40 b ffc0bf98 <_Thread_Suspend+0x64> <== ALWAYS TAKEN ffc0c05c <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { ffc0c05c: 94 21 ff f0 stwu r1,-16(r1) ffc0c060: 7c 08 02 a6 mflr r0 Thread_Control *executing; executing = _Thread_Executing; ffc0c064: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { ffc0c068: 90 01 00 14 stw r0,20(r1) ffc0c06c: 93 e1 00 0c stw r31,12(r1) Thread_Control *executing; executing = _Thread_Executing; ffc0c070: 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 ) ffc0c074: 88 1f 00 75 lbz r0,117(r31) ffc0c078: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c07c: 41 9e 00 2c beq- cr7,ffc0c0a8 <_Thread_Tickle_timeslice+0x4c> return; if ( !_States_Is_ready( executing->current_state ) ) ffc0c080: 80 1f 00 10 lwz r0,16(r31) <== ALWAYS TAKEN ffc0c084: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c088: 40 9e 00 20 bne- cr7,ffc0c0a8 <_Thread_Tickle_timeslice+0x4c> /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { ffc0c08c: 80 1f 00 7c lwz r0,124(r31) ffc0c090: 2b 80 00 01 cmplwi cr7,r0,1 ffc0c094: 41 9c 00 14 blt- cr7,ffc0c0a8 <_Thread_Tickle_timeslice+0x4c> ffc0c098: 2b 80 00 02 cmplwi cr7,r0,2 ffc0c09c: 40 9d 00 48 ble- cr7,ffc0c0e4 <_Thread_Tickle_timeslice+0x88> ffc0c0a0: 2f 80 00 03 cmpwi cr7,r0,3 ffc0c0a4: 41 9e 00 18 beq- cr7,ffc0c0bc <_Thread_Tickle_timeslice+0x60> <== ALWAYS TAKEN if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; #endif } } ffc0c0a8: 80 01 00 14 lwz r0,20(r1) ffc0c0ac: 83 e1 00 0c lwz r31,12(r1) ffc0c0b0: 38 21 00 10 addi r1,r1,16 ffc0c0b4: 7c 08 03 a6 mtlr r0 ffc0c0b8: 4e 80 00 20 blr <== ALWAYS TAKEN } break; #if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT) case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT: if ( --executing->cpu_time_budget == 0 ) ffc0c0bc: 81 3f 00 78 lwz r9,120(r31) ffc0c0c0: 38 09 ff ff addi r0,r9,-1 ffc0c0c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c0c8: 90 1f 00 78 stw r0,120(r31) ffc0c0cc: 40 9e ff dc bne+ cr7,ffc0c0a8 <_Thread_Tickle_timeslice+0x4c> (*executing->budget_callout)( executing ); ffc0c0d0: 80 1f 00 80 lwz r0,128(r31) ffc0c0d4: 7f e3 fb 78 mr r3,r31 ffc0c0d8: 7c 09 03 a6 mtctr r0 ffc0c0dc: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0c0e0: 4b ff ff c8 b ffc0c0a8 <_Thread_Tickle_timeslice+0x4c> <== 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 ) { ffc0c0e4: 81 3f 00 78 lwz r9,120(r31) ffc0c0e8: 38 09 ff ff addi r0,r9,-1 ffc0c0ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c0f0: 90 1f 00 78 stw r0,120(r31) ffc0c0f4: 41 9d ff b4 bgt+ cr7,ffc0c0a8 <_Thread_Tickle_timeslice+0x4c> _Thread_Reset_timeslice(); ffc0c0f8: 48 00 41 55 bl ffc1024c <_Thread_Reset_timeslice> <== ALWAYS TAKEN executing->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc0c0fc: 3d 20 00 00 lis r9,0 ffc0c100: 80 09 27 68 lwz r0,10088(r9) ffc0c104: 90 1f 00 78 stw r0,120(r31) ffc0c108: 4b ff ff a0 b ffc0c0a8 <_Thread_Tickle_timeslice+0x4c> <== ALWAYS TAKEN ffc0c10c <_Thread_Yield_processor>: { ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; ffc0c10c: 3d 20 00 00 lis r9,0 ffc0c110: 81 29 27 b0 lwz r9,10160(r9) ready = executing->ready; ffc0c114: 81 69 00 8c lwz r11,140(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0c118: 7c 00 00 a6 mfmsr r0 ffc0c11c: 7d 50 42 a6 mfsprg r10,0 ffc0c120: 7c 0a 50 78 andc r10,r0,r10 ffc0c124: 7d 40 01 24 mtmsr r10 _ISR_Disable( level ); if ( !_Chain_Has_only_one_node( ready ) ) { ffc0c128: 81 0b 00 00 lwz r8,0(r11) ffc0c12c: 81 4b 00 08 lwz r10,8(r11) ffc0c130: 7f 88 50 00 cmpw cr7,r8,r10 ffc0c134: 41 9e 00 68 beq- cr7,ffc0c19c <_Thread_Yield_processor+0x90> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc0c138: 81 49 00 00 lwz r10,0(r9) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0c13c: 38 eb 00 04 addi r7,r11,4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0c140: 81 09 00 04 lwz r8,4(r9) next->previous = previous; previous->next = next; ffc0c144: 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; ffc0c148: 91 0a 00 04 stw r8,4(r10) <== ALWAYS TAKEN Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0c14c: 90 e9 00 00 stw r7,0(r9) old_last_node = the_chain->last; ffc0c150: 81 4b 00 08 lwz r10,8(r11) the_chain->last = the_node; ffc0c154: 91 2b 00 08 stw r9,8(r11) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0c158: 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; ffc0c15c: 91 2a 00 00 stw r9,0(r10) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0c160: 7d 40 00 a6 mfmsr r10 ffc0c164: 7c 00 01 24 mtmsr r0 ffc0c168: 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 ) ) ffc0c16c: 3d 40 00 00 lis r10,0 ffc0c170: 81 0a 27 8c lwz r8,10124(r10) ffc0c174: 7f 89 40 00 cmpw cr7,r9,r8 ffc0c178: 41 9e 00 18 beq- cr7,ffc0c190 <_Thread_Yield_processor+0x84> <== ALWAYS TAKEN _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = true; ffc0c17c: 39 60 00 01 li r11,1 ffc0c180: 3d 20 00 00 lis r9,0 ffc0c184: 99 69 27 c0 stb r11,10176(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0c188: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); } ffc0c18c: 4e 80 00 20 blr <== ALWAYS TAKEN _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; ffc0c190: 81 2b 00 00 lwz r9,0(r11) ffc0c194: 91 2a 27 8c stw r9,10124(r10) ffc0c198: 4b ff ff e4 b ffc0c17c <_Thread_Yield_processor+0x70> <== ALWAYS TAKEN _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) ffc0c19c: 3d 60 00 00 lis r11,0 ffc0c1a0: 81 6b 27 8c lwz r11,10124(r11) ffc0c1a4: 7f 89 58 00 cmpw cr7,r9,r11 ffc0c1a8: 40 9e ff d4 bne+ cr7,ffc0c17c <_Thread_Yield_processor+0x70> <== NEVER TAKEN ffc0c1ac: 4b ff ff dc b ffc0c188 <_Thread_Yield_processor+0x7c> <== ALWAYS TAKEN ffc0a8a4 <_Thread_blocking_operation_Cancel>: Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { ffc0a8a4: 7c 08 02 a6 mflr r0 ffc0a8a8: 94 21 ff f0 stwu r1,-16(r1) ffc0a8ac: 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 ) ) { ffc0a8b0: 80 04 00 50 lwz r0,80(r4) ffc0a8b4: 2f 80 00 02 cmpwi cr7,r0,2 #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; ffc0a8b8: 38 00 00 00 li r0,0 ffc0a8bc: 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 ) ) { ffc0a8c0: 41 9e 00 28 beq- cr7,ffc0a8e8 <_Thread_blocking_operation_Cancel+0x44> ffc0a8c4: 7c a0 01 24 mtmsr r5 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc0a8c8: 7c 83 23 78 mr r3,r4 ffc0a8cc: 3c 80 10 03 lis r4,4099 ffc0a8d0: 60 84 ff f8 ori r4,r4,65528 ffc0a8d4: 48 00 02 2d bl ffc0ab00 <_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 } ffc0a8d8: 80 01 00 14 lwz r0,20(r1) ffc0a8dc: 38 21 00 10 addi r1,r1,16 ffc0a8e0: 7c 08 03 a6 mtlr r0 ffc0a8e4: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc0a8e8: 38 00 00 03 li r0,3 ffc0a8ec: 90 04 00 50 stw r0,80(r4) ffc0a8f0: 7c a0 01 24 mtmsr r5 * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc0a8f4: 38 64 00 48 addi r3,r4,72 ffc0a8f8: 90 81 00 08 stw r4,8(r1) ffc0a8fc: 48 00 1f cd bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN ffc0a900: 80 81 00 08 lwz r4,8(r1) ffc0a904: 4b ff ff c4 b ffc0a8c8 <_Thread_blocking_operation_Cancel+0x24> <== ALWAYS TAKEN ffc0b4b0 <_Thread_queue_Dequeue>: */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { ffc0b4b0: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0b4b4: 7c 08 02 a6 mflr r0 ffc0b4b8: 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 ) ffc0b4bc: 80 03 00 34 lwz r0,52(r3) */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { ffc0b4c0: 93 e1 00 0c stw r31,12(r1) ffc0b4c4: 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 ) ffc0b4c8: 2f 80 00 01 cmpwi cr7,r0,1 ffc0b4cc: 41 9e 00 48 beq- cr7,ffc0b514 <_Thread_queue_Dequeue+0x64> ffc0b4d0: 3d 20 ff c1 lis r9,-63 ffc0b4d4: 38 09 fe 88 addi r0,r9,-376 <== ALWAYS TAKEN 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 ); ffc0b4d8: 7f e3 fb 78 mr r3,r31 ffc0b4dc: 7c 09 03 a6 mtctr r0 ffc0b4e0: 4e 80 04 21 bctrl <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b4e4: 7c 00 00 a6 mfmsr r0 ffc0b4e8: 7d 30 42 a6 mfsprg r9,0 ffc0b4ec: 7c 09 48 78 andc r9,r0,r9 <== ALWAYS TAKEN ffc0b4f0: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); if ( !the_thread ) { ffc0b4f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b4f8: 41 9e 00 48 beq- cr7,ffc0b540 <_Thread_queue_Dequeue+0x90> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b4fc: 7c 00 01 24 mtmsr r0 the_thread = _Thread_Executing; } } _ISR_Enable( level ); return the_thread; } ffc0b500: 80 01 00 14 lwz r0,20(r1) ffc0b504: 83 e1 00 0c lwz r31,12(r1) ffc0b508: 38 21 00 10 addi r1,r1,16 ffc0b50c: 7c 08 03 a6 mtlr r0 ffc0b510: 4e 80 00 20 blr <== ALWAYS TAKEN 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 ) ffc0b514: 3d 20 ff c1 lis r9,-63 <== ALWAYS TAKEN ffc0b518: 38 09 b5 64 addi r0,r9,-19100 <== ALWAYS TAKEN 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 ); ffc0b51c: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0b520: 7c 09 03 a6 mtctr r0 ffc0b524: 4e 80 04 21 bctrl <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b528: 7c 00 00 a6 mfmsr r0 ffc0b52c: 7d 30 42 a6 mfsprg r9,0 ffc0b530: 7c 09 48 78 andc r9,r0,r9 <== ALWAYS TAKEN ffc0b534: 7d 20 01 24 mtmsr r9 _ISR_Disable( level ); if ( !the_thread ) { ffc0b538: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b53c: 40 9e ff c0 bne+ cr7,ffc0b4fc <_Thread_queue_Dequeue+0x4c> sync_state = the_thread_queue->sync_state; ffc0b540: 81 3f 00 30 lwz r9,48(r31) ffc0b544: 39 29 ff ff addi r9,r9,-1 <== ALWAYS TAKEN ffc0b548: 2b 89 00 01 cmplwi cr7,r9,1 <== ALWAYS TAKEN ffc0b54c: 41 9d ff b0 bgt+ cr7,ffc0b4fc <_Thread_queue_Dequeue+0x4c> if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; ffc0b550: 39 20 00 03 li r9,3 ffc0b554: 91 3f 00 30 stw r9,48(r31) the_thread = _Thread_Executing; ffc0b558: 3d 20 00 00 lis r9,0 ffc0b55c: 80 69 27 b0 lwz r3,10160(r9) ffc0b560: 4b ff ff 9c b ffc0b4fc <_Thread_queue_Dequeue+0x4c> <== ALWAYS TAKEN ffc0fe88 <_Thread_queue_Dequeue_fifo>: */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { ffc0fe88: 94 21 ff f0 stwu r1,-16(r1) ffc0fe8c: 7c 08 02 a6 mflr r0 ffc0fe90: 93 c1 00 08 stw r30,8(r1) ffc0fe94: 90 01 00 14 stw r0,20(r1) ffc0fe98: 93 e1 00 0c stw r31,12(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0fe9c: 7d 60 00 a6 mfmsr r11 ffc0fea0: 7c 10 42 a6 mfsprg r0,0 ffc0fea4: 7d 60 00 78 andc r0,r11,r0 ffc0fea8: 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)); ffc0feac: 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; ffc0feb0: 38 03 00 04 addi r0,r3,4 ffc0feb4: 7f 9e 00 00 cmpw cr7,r30,r0 ffc0feb8: 41 9e 00 98 beq- cr7,ffc0ff50 <_Thread_queue_Dequeue_fifo+0xc8> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc0febc: 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 *) ffc0fec0: 7f df f3 78 mr r31,r30 the_chain->first = new_first; ffc0fec4: 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 ) ) { ffc0fec8: 80 1e 00 50 lwz r0,80(r30) new_first->previous = _Chain_Head(the_chain); ffc0fecc: 90 69 00 04 stw r3,4(r9) ffc0fed0: 2f 80 00 02 cmpwi cr7,r0,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; ffc0fed4: 38 00 00 00 li r0,0 ffc0fed8: 90 1e 00 44 stw r0,68(r30) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc0fedc: 41 9e 00 34 beq- cr7,ffc0ff10 <_Thread_queue_Dequeue_fifo+0x88> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0fee0: 7d 60 01 24 mtmsr r11 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc0fee4: 3c 80 10 03 lis r4,4099 ffc0fee8: 7f c3 f3 78 mr r3,r30 ffc0feec: 60 84 ff f8 ori r4,r4,65528 ffc0fef0: 4b ff ac 11 bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN return the_thread; } _ISR_Enable( level ); return NULL; } ffc0fef4: 80 01 00 14 lwz r0,20(r1) ffc0fef8: 7f e3 fb 78 mr r3,r31 ffc0fefc: 83 c1 00 08 lwz r30,8(r1) ffc0ff00: 7c 08 03 a6 mtlr r0 ffc0ff04: 83 e1 00 0c lwz r31,12(r1) ffc0ff08: 38 21 00 10 addi r1,r1,16 ffc0ff0c: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc0ff10: 38 00 00 03 li r0,3 ffc0ff14: 90 1e 00 50 stw r0,80(r30) ffc0ff18: 7d 60 01 24 mtmsr r11 _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc0ff1c: 38 7e 00 48 addi r3,r30,72 ffc0ff20: 4b ff c9 a9 bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN ffc0ff24: 3c 80 10 03 lis r4,4099 ffc0ff28: 7f c3 f3 78 mr r3,r30 ffc0ff2c: 60 84 ff f8 ori r4,r4,65528 ffc0ff30: 4b ff ab d1 bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN return the_thread; } _ISR_Enable( level ); return NULL; } ffc0ff34: 80 01 00 14 lwz r0,20(r1) ffc0ff38: 7f e3 fb 78 mr r3,r31 ffc0ff3c: 83 c1 00 08 lwz r30,8(r1) ffc0ff40: 7c 08 03 a6 mtlr r0 ffc0ff44: 83 e1 00 0c lwz r31,12(r1) ffc0ff48: 38 21 00 10 addi r1,r1,16 ffc0ff4c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ff50: 7d 60 01 24 mtmsr r11 ffc0ff54: 3b e0 00 00 li r31,0 return the_thread; } _ISR_Enable( level ); return NULL; ffc0ff58: 4b ff ff 9c b ffc0fef4 <_Thread_queue_Dequeue_fifo+0x6c> <== ALWAYS TAKEN ffc0b564 <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { ffc0b564: 94 21 ff f0 stwu r1,-16(r1) ffc0b568: 7c 08 02 a6 mflr r0 ffc0b56c: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc0b570: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN ffc0b574: 7d 00 00 a6 mfmsr r8 ffc0b578: 7c 10 42 a6 mfsprg r0,0 ffc0b57c: 7d 00 00 78 andc r0,r8,r0 ffc0b580: 7c 00 01 24 mtmsr r0 Chain_Node *new_second_node; Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); ffc0b584: 38 00 00 04 li r0,4 <== ALWAYS TAKEN ffc0b588: 7c 09 03 a6 mtctr r0 ffc0b58c: 39 60 00 00 li r11,0 ffc0b590: 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; ffc0b594: 81 49 00 00 lwz r10,0(r9) ffc0b598: 38 09 00 04 addi r0,r9,4 for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { ffc0b59c: 39 29 00 0c addi r9,r9,12 ffc0b5a0: 7f 8a 00 00 cmpw cr7,r10,r0 ffc0b5a4: 40 9e 00 2c bne- cr7,ffc0b5d0 <_Thread_queue_Dequeue_priority+0x6c> ffc0b5a8: 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 ; ffc0b5ac: 42 00 ff e8 bdnz+ ffc0b594 <_Thread_queue_Dequeue_priority+0x30> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b5b0: 7d 00 01 24 mtmsr r8 ffc0b5b4: 3b e0 00 00 li r31,0 #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif return( the_thread ); } ffc0b5b8: 80 01 00 14 lwz r0,20(r1) ffc0b5bc: 7f e3 fb 78 mr r3,r31 ffc0b5c0: 83 e1 00 0c lwz r31,12(r1) ffc0b5c4: 38 21 00 10 addi r1,r1,16 ffc0b5c8: 7c 08 03 a6 mtlr r0 ffc0b5cc: 4e 80 00 20 blr <== ALWAYS TAKEN _ISR_Disable( level ); for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) { the_thread = (Thread_Control *) ffc0b5d0: 1d 6b 00 0c mulli r11,r11,12 ffc0b5d4: 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; ffc0b5d8: 81 3f 00 38 lwz r9,56(r31) ffc0b5dc: 38 1f 00 3c addi r0,r31,60 new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; ffc0b5e0: 81 5f 00 00 lwz r10,0(r31) ffc0b5e4: 7f 89 00 00 cmpw cr7,r9,r0 previous_node = the_thread->Object.Node.previous; ffc0b5e8: 81 7f 00 04 lwz r11,4(r31) */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; ffc0b5ec: 38 00 00 00 li r0,0 ffc0b5f0: 90 1f 00 44 stw r0,68(r31) ffc0b5f4: 41 9e 00 90 beq- cr7,ffc0b684 <_Thread_queue_Dequeue_priority+0x120> 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; ffc0b5f8: 80 ff 00 40 lwz r7,64(r31) new_second_node = new_first_node->next; ffc0b5fc: 80 c9 00 00 lwz r6,0(r9) previous_node->next = new_first_node; next_node->previous = new_first_node; ffc0b600: 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; ffc0b604: 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; ffc0b608: 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; ffc0b60c: 91 49 00 00 stw r10,0(r9) new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { ffc0b610: 81 7f 00 38 lwz r11,56(r31) ffc0b614: 80 1f 00 40 lwz r0,64(r31) ffc0b618: 7f 8b 00 00 cmpw cr7,r11,r0 ffc0b61c: 41 9e 00 1c beq- cr7,ffc0b638 <_Thread_queue_Dequeue_priority+0xd4> _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 ); ffc0b620: 38 09 00 3c addi r0,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 = ffc0b624: 39 69 00 38 addi r11,r9,56 ffc0b628: 91 66 00 04 stw r11,4(r6) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; ffc0b62c: 90 c9 00 38 stw r6,56(r9) new_first_thread->Wait.Block2n.last = last_node; ffc0b630: 90 e9 00 40 stw r7,64(r9) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); ffc0b634: 90 07 00 00 stw r0,0(r7) } else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc0b638: 80 1f 00 50 lwz r0,80(r31) ffc0b63c: 2f 80 00 02 cmpwi cr7,r0,2 ffc0b640: 41 9e 00 1c beq- cr7,ffc0b65c <_Thread_queue_Dequeue_priority+0xf8> ffc0b644: 7d 00 01 24 mtmsr r8 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc0b648: 3c 80 10 03 lis r4,4099 ffc0b64c: 60 84 ff f8 ori r4,r4,65528 ffc0b650: 7f e3 fb 78 mr r3,r31 ffc0b654: 4b ff f4 ad bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN ffc0b658: 4b ff ff 60 b ffc0b5b8 <_Thread_queue_Dequeue_priority+0x54> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; ffc0b65c: 38 00 00 03 li r0,3 ffc0b660: 90 1f 00 50 stw r0,80(r31) ffc0b664: 7d 00 01 24 mtmsr r8 _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc0b668: 38 7f 00 48 addi r3,r31,72 ffc0b66c: 48 00 12 5d bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN ffc0b670: 3c 80 10 03 lis r4,4099 ffc0b674: 7f e3 fb 78 mr r3,r31 ffc0b678: 60 84 ff f8 ori r4,r4,65528 ffc0b67c: 4b ff f4 85 bl ffc0ab00 <_Thread_Clear_state> <== ALWAYS TAKEN ffc0b680: 4b ff ff 38 b ffc0b5b8 <_Thread_queue_Dequeue_priority+0x54> <== ALWAYS TAKEN last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; next_node->previous = previous_node; ffc0b684: 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; ffc0b688: 91 4b 00 00 stw r10,0(r11) ffc0b68c: 4b ff ff ac b ffc0b638 <_Thread_queue_Dequeue_priority+0xd4> <== ALWAYS TAKEN ffc0ff5c <_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 ) { ffc0ff5c: 7c 69 1b 78 mr r9,r3 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ff60: 7d 60 00 a6 mfmsr r11 ffc0ff64: 7c 10 42 a6 mfsprg r0,0 ffc0ff68: 7d 60 00 78 andc r0,r11,r0 ffc0ff6c: 7c 00 01 24 mtmsr r0 Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); sync_state = the_thread_queue->sync_state; ffc0ff70: 80 63 00 30 lwz r3,48(r3) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0ff74: 38 00 00 00 li r0,0 ffc0ff78: 90 09 00 30 stw r0,48(r9) if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { ffc0ff7c: 2f 83 00 01 cmpwi cr7,r3,1 ffc0ff80: 41 9e 00 0c beq- cr7,ffc0ff8c <_Thread_queue_Enqueue_fifo+0x30> * 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; ffc0ff84: 91 65 00 00 stw r11,0(r5) return sync_state; } ffc0ff88: 4e 80 00 20 blr <== ALWAYS TAKEN Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc0ff8c: 39 49 00 04 addi r10,r9,4 ffc0ff90: 91 44 00 00 stw r10,0(r4) old_last_node = the_chain->last; ffc0ff94: 81 49 00 08 lwz r10,8(r9) the_chain->last = the_node; ffc0ff98: 90 89 00 08 stw r4,8(r9) old_last_node->next = the_node; the_node->previous = old_last_node; ffc0ff9c: 91 44 00 04 stw r10,4(r4) if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { _Chain_Append_unprotected( &the_thread_queue->Queues.Fifo, &the_thread->Object.Node ); the_thread->Wait.queue = the_thread_queue; ffc0ffa0: 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; ffc0ffa4: 90 8a 00 00 stw r4,0(r10) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ffa8: 7d 60 01 24 mtmsr r11 the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc0ffac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b774 <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; ffc0b774: 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); ffc0b778: 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 ) { ffc0b77c: 94 21 ff f0 stwu r1,-16(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0b780: 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 ) ) ffc0b784: 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 ]; ffc0b788: 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); ffc0b78c: 91 04 00 38 stw r8,56(r4) ffc0b790: 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 ) { ffc0b794: 93 e1 00 0c stw r31,12(r1) the_chain->permanent_null = NULL; ffc0b798: 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; ffc0b79c: 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 ]; ffc0b7a0: 7d 43 52 14 add r10,r3,r10 <== ALWAYS TAKEN ffc0b7a4: 91 04 00 3c stw r8,60(r4) the_chain->last = _Chain_Head(the_chain); ffc0b7a8: 91 64 00 40 stw r11,64(r4) block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) ffc0b7ac: 40 82 00 7c bne- ffc0b828 <_Thread_queue_Enqueue_priority+0xb4> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0b7b0: 39 8a 00 04 addi r12,r10,4 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b7b4: 7c c0 00 a6 mfmsr r6 ffc0b7b8: 7d 70 42 a6 mfsprg r11,0 ffc0b7bc: 7c cb 58 78 andc r11,r6,r11 ffc0b7c0: 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; ffc0b7c4: 81 6a 00 00 lwz r11,0(r10) while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { ffc0b7c8: 7f 8b 60 00 cmpw cr7,r11,r12 ffc0b7cc: 40 be 00 2c bne+ cr7,ffc0b7f8 <_Thread_queue_Enqueue_priority+0x84> ffc0b7d0: 48 00 01 78 b ffc0b948 <_Thread_queue_Enqueue_priority+0x1d4> <== ALWAYS TAKEN static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0b7d4: 7c e0 00 a6 mfmsr r7 ffc0b7d8: 7c c0 01 24 mtmsr r6 ffc0b7dc: 7c e0 01 24 mtmsr r7 search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { ffc0b7e0: 80 eb 00 10 lwz r7,16(r11) ffc0b7e4: 7d 3f 38 39 and. r31,r9,r7 ffc0b7e8: 41 82 00 f4 beq- ffc0b8dc <_Thread_queue_Enqueue_priority+0x168> <== NEVER TAKEN _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; ffc0b7ec: 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 ) ) { ffc0b7f0: 7f 8b 60 00 cmpw cr7,r11,r12 ffc0b7f4: 41 9e 00 10 beq- cr7,ffc0b804 <_Thread_queue_Enqueue_priority+0x90> search_priority = search_thread->current_priority; ffc0b7f8: 81 0b 00 14 lwz r8,20(r11) if ( priority <= search_priority ) ffc0b7fc: 7f 80 40 40 cmplw cr7,r0,r8 ffc0b800: 41 9d ff d4 bgt+ cr7,ffc0b7d4 <_Thread_queue_Enqueue_priority+0x60> restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { ffc0b804: 7c ca 33 78 mr r10,r6 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != ffc0b808: 81 23 00 30 lwz r9,48(r3) ffc0b80c: 2f 89 00 01 cmpwi cr7,r9,1 ffc0b810: 41 9e 00 d4 beq- cr7,ffc0b8e4 <_Thread_queue_Enqueue_priority+0x170> * For example, the blocking thread could have been given * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; ffc0b814: 91 45 00 00 stw r10,0(r5) return the_thread_queue->sync_state; ffc0b818: 7d 23 4b 78 mr r3,r9 } ffc0b81c: 83 e1 00 0c lwz r31,12(r1) ffc0b820: 38 21 00 10 addi r1,r1,16 ffc0b824: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b828: 3d 80 00 00 lis r12,0 ffc0b82c: 39 8c 26 a4 addi r12,r12,9892 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; ffc0b830: 89 0c 00 00 lbz r8,0(r12) ffc0b834: 39 08 00 01 addi r8,r8,1 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0b838: 7c c0 00 a6 mfmsr r6 ffc0b83c: 7d 70 42 a6 mfsprg r11,0 ffc0b840: 7c cb 58 78 andc r11,r6,r11 ffc0b844: 7d 60 01 24 mtmsr r11 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; ffc0b848: 81 6a 00 08 lwz r11,8(r10) while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { ffc0b84c: 7f 8b 50 00 cmpw cr7,r11,r10 ffc0b850: 40 be 00 2c bne+ cr7,ffc0b87c <_Thread_queue_Enqueue_priority+0x108> ffc0b854: 48 00 00 34 b ffc0b888 <_Thread_queue_Enqueue_priority+0x114> <== ALWAYS TAKEN static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0b858: 7c e0 00 a6 mfmsr r7 ffc0b85c: 7c c0 01 24 mtmsr r6 ffc0b860: 7c e0 01 24 mtmsr r7 search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { ffc0b864: 80 eb 00 10 lwz r7,16(r11) ffc0b868: 7d 3f 38 39 and. r31,r9,r7 ffc0b86c: 41 82 00 68 beq- ffc0b8d4 <_Thread_queue_Enqueue_priority+0x160> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) ffc0b870: 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 ) ) { ffc0b874: 7f 8b 50 00 cmpw cr7,r11,r10 ffc0b878: 41 9e 00 10 beq- cr7,ffc0b888 <_Thread_queue_Enqueue_priority+0x114> search_priority = search_thread->current_priority; ffc0b87c: 81 0b 00 14 lwz r8,20(r11) if ( priority >= search_priority ) ffc0b880: 7f 80 40 40 cmplw cr7,r0,r8 ffc0b884: 41 9c ff d4 blt+ cr7,ffc0b858 <_Thread_queue_Enqueue_priority+0xe4> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0b888: 81 23 00 30 lwz r9,48(r3) restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { ffc0b88c: 7c ca 33 78 mr r10,r6 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != ffc0b890: 2f 89 00 01 cmpwi cr7,r9,1 ffc0b894: 40 9e ff 80 bne+ cr7,ffc0b814 <_Thread_queue_Enqueue_priority+0xa0> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) ffc0b898: 7f 80 40 00 cmpw cr7,r0,r8 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0b89c: 38 00 00 00 li r0,0 ffc0b8a0: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0b8a4: 41 9e 00 7c beq- cr7,ffc0b920 <_Thread_queue_Enqueue_priority+0x1ac> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; ffc0b8a8: 81 2b 00 00 lwz r9,0(r11) the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; ffc0b8ac: 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; ffc0b8b0: 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; ffc0b8b4: 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; ffc0b8b8: 90 8b 00 00 stw r4,0(r11) next_node->previous = the_node; ffc0b8bc: 90 89 00 04 stw r4,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0b8c0: 7c c0 01 24 mtmsr r6 ffc0b8c4: 38 60 00 01 li r3,1 * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } ffc0b8c8: 83 e1 00 0c lwz r31,12(r1) ffc0b8cc: 38 21 00 10 addi r1,r1,16 ffc0b8d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b8d4: 7c c0 01 24 mtmsr r6 ffc0b8d8: 4b ff ff 58 b ffc0b830 <_Thread_queue_Enqueue_priority+0xbc> <== ALWAYS TAKEN ffc0b8dc: 7c c0 01 24 mtmsr r6 <== NOT EXECUTED ffc0b8e0: 4b ff fe d4 b ffc0b7b4 <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) ffc0b8e4: 7f 80 40 00 cmpw cr7,r0,r8 <== ALWAYS TAKEN if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0b8e8: 38 00 00 00 li r0,0 ffc0b8ec: 90 03 00 30 stw r0,48(r3) if ( priority == search_priority ) ffc0b8f0: 41 9e 00 30 beq- cr7,ffc0b920 <_Thread_queue_Enqueue_priority+0x1ac> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; ffc0b8f4: 81 2b 00 04 lwz r9,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0b8f8: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0b8fc: 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; ffc0b900: 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; ffc0b904: 90 89 00 00 stw r4,0(r9) search_node->previous = the_node; ffc0b908: 90 8b 00 04 stw r4,4(r11) ffc0b90c: 7c c0 01 24 mtmsr r6 ffc0b910: 38 60 00 01 li r3,1 <== ALWAYS TAKEN * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } ffc0b914: 83 e1 00 0c lwz r31,12(r1) ffc0b918: 38 21 00 10 addi r1,r1,16 ffc0b91c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b920: 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; ffc0b924: 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; ffc0b928: 81 2b 00 04 lwz r9,4(r11) the_node = (Chain_Node *) the_thread; the_node->next = search_node; ffc0b92c: 91 64 00 00 stw r11,0(r4) the_node->previous = previous_node; ffc0b930: 91 24 00 04 stw r9,4(r4) previous_node->next = the_node; ffc0b934: 90 89 00 00 stw r4,0(r9) search_node->previous = the_node; ffc0b938: 90 8b 00 04 stw r4,4(r11) ffc0b93c: 7d 40 01 24 mtmsr r10 ffc0b940: 38 60 00 01 li r3,1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; ffc0b944: 4b ff fe d8 b ffc0b81c <_Thread_queue_Enqueue_priority+0xa8> <== ALWAYS TAKEN 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 ) ) { ffc0b948: 7c ca 33 78 mr r10,r6 ffc0b94c: 39 00 ff ff li r8,-1 ffc0b950: 4b ff fe b8 b ffc0b808 <_Thread_queue_Enqueue_priority+0x94> <== ALWAYS TAKEN ffc0b690 <_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 ) { ffc0b690: 94 21 ff d8 stwu r1,-40(r1) ffc0b694: 7c 08 02 a6 mflr r0 Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; ffc0b698: 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 ) { ffc0b69c: 90 01 00 2c stw r0,44(r1) ffc0b6a0: 93 e1 00 24 stw r31,36(r1) Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; ffc0b6a4: 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 ) { ffc0b6a8: 93 a1 00 1c stw r29,28(r1) ffc0b6ac: 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 ); ffc0b6b0: 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 ) { ffc0b6b4: 93 c1 00 20 stw r30,32(r1) ffc0b6b8: 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 ); ffc0b6bc: 7f e3 fb 78 mr r3,r31 void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) { ffc0b6c0: 93 81 00 18 stw r28,24(r1) ffc0b6c4: 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 ); ffc0b6c8: 48 00 04 c9 bl ffc0bb90 <_Thread_Set_state> <== ALWAYS TAKEN /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { ffc0b6cc: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0b6d0: 40 9e 00 60 bne- cr7,ffc0b730 <_Thread_queue_Enqueue_with_handler+0xa0> } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0b6d4: 80 1e 00 34 lwz r0,52(r30) ffc0b6d8: 2f 80 00 01 cmpwi cr7,r0,1 ffc0b6dc: 41 9e 00 8c beq- cr7,ffc0b768 <_Thread_queue_Enqueue_with_handler+0xd8> ffc0b6e0: 3d 20 ff c1 lis r9,-63 ffc0b6e4: 38 09 ff 5c addi r0,r9,-164 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 ); ffc0b6e8: 7f c3 f3 78 mr r3,r30 ffc0b6ec: 7c 09 03 a6 mtctr r0 ffc0b6f0: 7f e4 fb 78 mr r4,r31 ffc0b6f4: 38 a1 00 08 addi r5,r1,8 ffc0b6f8: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) ffc0b6fc: 2f 83 00 01 cmpwi cr7,r3,1 ffc0b700: 41 9e 00 10 beq- cr7,ffc0b710 <_Thread_queue_Enqueue_with_handler+0x80> _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); ffc0b704: 80 a1 00 08 lwz r5,8(r1) ffc0b708: 7f e4 fb 78 mr r4,r31 ffc0b70c: 4b ff f1 99 bl ffc0a8a4 <_Thread_blocking_operation_Cancel> <== ALWAYS TAKEN } ffc0b710: 80 01 00 2c lwz r0,44(r1) ffc0b714: 83 81 00 18 lwz r28,24(r1) ffc0b718: 7c 08 03 a6 mtlr r0 ffc0b71c: 83 a1 00 1c lwz r29,28(r1) ffc0b720: 83 c1 00 20 lwz r30,32(r1) ffc0b724: 83 e1 00 24 lwz r31,36(r1) ffc0b728: 38 21 00 28 addi r1,r1,40 ffc0b72c: 4e 80 00 20 blr <== ALWAYS TAKEN /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize( ffc0b730: 81 3f 00 08 lwz r9,8(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0b734: 38 00 00 00 li r0,0 the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0b738: 90 1f 00 6c stw r0,108(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0b73c: 3c 60 00 00 lis r3,0 ffc0b740: 38 63 2d 48 addi r3,r3,11592 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0b744: 90 1f 00 50 stw r0,80(r31) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0b748: 38 9f 00 48 addi r4,r31,72 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0b74c: 93 9f 00 64 stw r28,100(r31) the_watchdog->id = id; ffc0b750: 91 3f 00 68 stw r9,104(r31) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0b754: 93 bf 00 54 stw r29,84(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0b758: 48 00 0f a9 bl ffc0c700 <_Watchdog_Insert> <== ALWAYS TAKEN } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0b75c: 80 1e 00 34 lwz r0,52(r30) ffc0b760: 2f 80 00 01 cmpwi cr7,r0,1 ffc0b764: 40 9e ff 7c bne+ cr7,ffc0b6e0 <_Thread_queue_Enqueue_with_handler+0x50> ffc0b768: 3d 20 ff c1 lis r9,-63 ffc0b76c: 38 09 b7 74 addi r0,r9,-18572 ffc0b770: 4b ff ff 78 b ffc0b6e8 <_Thread_queue_Enqueue_with_handler+0x58> <== ALWAYS TAKEN ffc0ffb0 <_Thread_queue_Extract>: void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0ffb0: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0ffb4: 94 21 ff f8 stwu r1,-8(r1) ffc0ffb8: 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 ) ffc0ffbc: 80 03 00 34 lwz r0,52(r3) ffc0ffc0: 2f 80 00 01 cmpwi cr7,r0,1 ffc0ffc4: 41 9e 00 18 beq- cr7,ffc0ffdc <_Thread_queue_Extract+0x2c> _Thread_queue_Extract_priority( the_thread_queue, the_thread ); else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); ffc0ffc8: 48 00 26 15 bl ffc125dc <_Thread_queue_Extract_fifo> <== ALWAYS TAKEN } ffc0ffcc: 80 01 00 0c lwz r0,12(r1) ffc0ffd0: 38 21 00 08 addi r1,r1,8 ffc0ffd4: 7c 08 03 a6 mtlr r0 ffc0ffd8: 4e 80 00 20 blr <== ALWAYS TAKEN /* * 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 ) _Thread_queue_Extract_priority( the_thread_queue, the_thread ); ffc0ffdc: 38 a0 00 00 li r5,0 ffc0ffe0: 48 00 00 15 bl ffc0fff4 <_Thread_queue_Extract_priority_helper> <== ALWAYS TAKEN else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); } ffc0ffe4: 80 01 00 0c lwz r0,12(r1) ffc0ffe8: 38 21 00 08 addi r1,r1,8 ffc0ffec: 7c 08 03 a6 mtlr r0 ffc0fff0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc125dc <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { ffc125dc: 94 21 ff f0 stwu r1,-16(r1) ffc125e0: 7c 08 02 a6 mflr r0 ffc125e4: 90 01 00 14 stw r0,20(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc125e8: 7d 60 00 a6 mfmsr r11 ffc125ec: 7c 10 42 a6 mfsprg r0,0 ffc125f0: 7d 60 00 78 andc r0,r11,r0 ffc125f4: 7c 00 01 24 mtmsr r0 ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { ffc125f8: 3d 20 00 03 lis r9,3 ffc125fc: 80 04 00 10 lwz r0,16(r4) ffc12600: 61 29 be e0 ori r9,r9,48864 ffc12604: 7d 2a 00 39 and. r10,r9,r0 ffc12608: 41 82 00 4c beq- ffc12654 <_Thread_queue_Extract_fifo+0x78> _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc1260c: 80 04 00 50 lwz r0,80(r4) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc12610: 81 24 00 00 lwz r9,0(r4) ffc12614: 2f 80 00 02 cmpwi cr7,r0,2 previous = the_node->previous; ffc12618: 81 44 00 04 lwz r10,4(r4) return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; ffc1261c: 38 00 00 00 li r0,0 next->previous = previous; previous->next = next; ffc12620: 91 2a 00 00 stw r9,0(r10) ffc12624: 90 04 00 44 stw r0,68(r4) Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; next->previous = previous; ffc12628: 91 49 00 04 stw r10,4(r9) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc1262c: 41 9e 00 3c beq- cr7,ffc12668 <_Thread_queue_Extract_fifo+0x8c> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc12630: 7d 60 01 24 mtmsr r11 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); ffc12634: 7c 83 23 78 mr r3,r4 ffc12638: 3c 80 10 03 lis r4,4099 ffc1263c: 60 84 ff f8 ori r4,r4,65528 ffc12640: 4b ff 84 c1 bl ffc0ab00 <_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 } ffc12644: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc12648: 38 21 00 10 addi r1,r1,16 ffc1264c: 7c 08 03 a6 mtlr r0 ffc12650: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12654: 7d 60 01 24 mtmsr r11 ffc12658: 80 01 00 14 lwz r0,20(r1) ffc1265c: 38 21 00 10 addi r1,r1,16 ffc12660: 7c 08 03 a6 mtlr r0 ffc12664: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12668: 38 00 00 03 li r0,3 ffc1266c: 90 04 00 50 stw r0,80(r4) ffc12670: 7d 60 01 24 mtmsr r11 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc12674: 38 64 00 48 addi r3,r4,72 ffc12678: 90 81 00 08 stw r4,8(r1) ffc1267c: 4b ff a2 4d bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN ffc12680: 80 81 00 08 lwz r4,8(r1) ffc12684: 4b ff ff b0 b ffc12634 <_Thread_queue_Extract_fifo+0x58> <== ALWAYS TAKEN ffc0fff4 <_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 ) { ffc0fff4: 94 21 ff f0 stwu r1,-16(r1) ffc0fff8: 7c 08 02 a6 mflr r0 ffc0fffc: 90 01 00 14 stw r0,20(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc10000: 7d 60 00 a6 mfmsr r11 ffc10004: 7c 10 42 a6 mfsprg r0,0 ffc10008: 7d 60 00 78 andc r0,r11,r0 ffc1000c: 7c 00 01 24 mtmsr r0 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 ) ) { ffc10010: 3d 20 00 03 lis r9,3 ffc10014: 80 04 00 10 lwz r0,16(r4) ffc10018: 61 29 be e0 ori r9,r9,48864 ffc1001c: 7d 2a 00 39 and. r10,r9,r0 ffc10020: 41 82 00 a8 beq- ffc100c8 <_Thread_queue_Extract_priority_helper+0xd4> */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc10024: 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; ffc10028: 38 04 00 3c addi r0,r4,60 /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next; ffc1002c: 81 04 00 00 lwz r8,0(r4) ffc10030: 7f 89 00 00 cmpw cr7,r9,r0 previous_node = the_node->previous; ffc10034: 81 44 00 04 lwz r10,4(r4) ffc10038: 41 9e 00 a4 beq- cr7,ffc100dc <_Thread_queue_Extract_priority_helper+0xe8> 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; ffc1003c: 80 e4 00 40 lwz r7,64(r4) new_second_node = new_first_node->next; ffc10040: 80 c9 00 00 lwz r6,0(r9) previous_node->next = new_first_node; next_node->previous = new_first_node; ffc10044: 91 28 00 04 stw r9,4(r8) 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; ffc10048: 91 2a 00 00 stw r9,0(r10) next_node->previous = new_first_node; new_first_node->next = next_node; new_first_node->previous = previous_node; ffc1004c: 91 49 00 04 stw r10,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; ffc10050: 91 09 00 00 stw r8,0(r9) new_first_node->previous = previous_node; if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { ffc10054: 81 44 00 38 lwz r10,56(r4) ffc10058: 80 04 00 40 lwz r0,64(r4) ffc1005c: 7f 8a 00 00 cmpw cr7,r10,r0 ffc10060: 41 9e 00 1c beq- cr7,ffc1007c <_Thread_queue_Extract_priority_helper+0x88> 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 ); ffc10064: 38 09 00 3c addi r0,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 = ffc10068: 39 49 00 38 addi r10,r9,56 ffc1006c: 91 46 00 04 stw r10,4(r6) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; ffc10070: 90 c9 00 38 stw r6,56(r9) new_first_thread->Wait.Block2n.last = last_node; ffc10074: 90 e9 00 40 stw r7,64(r9) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); ffc10078: 90 07 00 00 stw r0,0(r7) /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { ffc1007c: 2f 85 00 00 cmpwi cr7,r5,0 ffc10080: 40 9e 00 34 bne- cr7,ffc100b4 <_Thread_queue_Extract_priority_helper+0xc0> _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { ffc10084: 80 04 00 50 lwz r0,80(r4) ffc10088: 2f 80 00 02 cmpwi cr7,r0,2 ffc1008c: 41 9e 00 5c beq- cr7,ffc100e8 <_Thread_queue_Extract_priority_helper+0xf4> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc10090: 7d 60 01 24 mtmsr r11 ffc10094: 7c 83 23 78 mr r3,r4 ffc10098: 3c 80 10 03 lis r4,4099 ffc1009c: 60 84 ff f8 ori r4,r4,65528 ffc100a0: 4b ff aa 61 bl ffc0ab00 <_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 } ffc100a4: 80 01 00 14 lwz r0,20(r1) ffc100a8: 38 21 00 10 addi r1,r1,16 ffc100ac: 7c 08 03 a6 mtlr r0 ffc100b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc100b4: 7d 60 01 24 mtmsr r11 ffc100b8: 80 01 00 14 lwz r0,20(r1) ffc100bc: 38 21 00 10 addi r1,r1,16 ffc100c0: 7c 08 03 a6 mtlr r0 ffc100c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc100c8: 7d 60 01 24 mtmsr r11 ffc100cc: 80 01 00 14 lwz r0,20(r1) ffc100d0: 38 21 00 10 addi r1,r1,16 ffc100d4: 7c 08 03 a6 mtlr r0 ffc100d8: 4e 80 00 20 blr <== ALWAYS TAKEN new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; next_node->previous = previous_node; ffc100dc: 91 48 00 04 stw r10,4(r8) new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; ffc100e0: 91 0a 00 00 stw r8,0(r10) ffc100e4: 4b ff ff 98 b ffc1007c <_Thread_queue_Extract_priority_helper+0x88> <== ALWAYS TAKEN ffc100e8: 38 00 00 03 li r0,3 ffc100ec: 90 04 00 50 stw r0,80(r4) ffc100f0: 7d 60 01 24 mtmsr r11 if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { _ISR_Enable( level ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); ffc100f4: 38 64 00 48 addi r3,r4,72 ffc100f8: 90 81 00 08 stw r4,8(r1) ffc100fc: 4b ff c7 cd bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN ffc10100: 80 81 00 08 lwz r4,8(r1) ffc10104: 4b ff ff 90 b ffc10094 <_Thread_queue_Extract_priority_helper+0xa0> <== ALWAYS TAKEN ffc0b954 <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { ffc0b954: 7c 08 02 a6 mflr r0 ffc0b958: 94 21 ff f8 stwu r1,-8(r1) States_Control state; state = the_thread->current_state; ffc0b95c: 3d 20 00 03 lis r9,3 */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { ffc0b960: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN States_Control state; state = the_thread->current_state; ffc0b964: 61 29 be e0 ori r9,r9,48864 */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { ffc0b968: 7c 64 1b 78 mr r4,r3 States_Control state; state = the_thread->current_state; ffc0b96c: 80 03 00 10 lwz r0,16(r3) ffc0b970: 38 60 00 00 li r3,0 ffc0b974: 7d 2b 00 39 and. r11,r9,r0 ffc0b978: 41 a2 00 10 beq+ ffc0b988 <_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 ); ffc0b97c: 80 64 00 44 lwz r3,68(r4) ffc0b980: 48 00 46 31 bl ffc0ffb0 <_Thread_queue_Extract> <== ALWAYS TAKEN ffc0b984: 38 60 00 01 li r3,1 return true; } return false; } ffc0b988: 80 01 00 0c lwz r0,12(r1) ffc0b98c: 38 21 00 08 addi r1,r1,8 ffc0b990: 7c 08 03 a6 mtlr r0 ffc0b994: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e758 <_Thread_queue_First>: */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { ffc0e758: 7c 08 02 a6 mflr r0 ffc0e75c: 94 21 ff f8 stwu r1,-8(r1) ffc0e760: 90 01 00 0c stw r0,12(r1) Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0e764: 80 03 00 34 lwz r0,52(r3) ffc0e768: 2f 80 00 01 cmpwi cr7,r0,1 ffc0e76c: 41 9e 00 24 beq- cr7,ffc0e790 <_Thread_queue_First+0x38> ffc0e770: 3d 20 ff c1 lis r9,-63 ffc0e774: 39 29 2f ac addi r9,r9,12204 ffc0e778: 7d 29 03 a6 mtctr r9 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 ); ffc0e77c: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0e780: 80 01 00 0c lwz r0,12(r1) ffc0e784: 38 21 00 08 addi r1,r1,8 ffc0e788: 7c 08 03 a6 mtlr r0 ffc0e78c: 4e 80 00 20 blr <== ALWAYS TAKEN Thread_queue_Control *the_thread_queue ) { Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) ffc0e790: 3d 20 ff c1 lis r9,-63 ffc0e794: 39 29 e7 b0 addi r9,r9,-6224 ffc0e798: 7d 29 03 a6 mtctr r9 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 ); ffc0e79c: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0e7a0: 80 01 00 0c lwz r0,12(r1) ffc0e7a4: 38 21 00 08 addi r1,r1,8 ffc0e7a8: 7c 08 03 a6 mtlr r0 ffc0e7ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12fac <_Thread_queue_First_fifo>: */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc12fac: 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; ffc12fb0: 38 63 00 04 addi r3,r3,4 ffc12fb4: 7c 09 1a 78 xor r9,r0,r3 ffc12fb8: 7d 2b fe 70 srawi r11,r9,31 ffc12fbc: 7d 63 4a 78 xor r3,r11,r9 ffc12fc0: 7c 63 58 50 subf r3,r3,r11 ffc12fc4: 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; } ffc12fc8: 7c 03 18 38 and r3,r0,r3 ffc12fcc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e7b0 <_Thread_queue_First_priority>: */ Thread_Control *_Thread_queue_First_priority ( Thread_queue_Control *the_thread_queue ) { ffc0e7b0: 38 00 00 04 li r0,4 ffc0e7b4: 7c 09 03 a6 mtctr r0 ffc0e7b8: 7c 69 1b 78 mr r9,r3 ffc0e7bc: 39 60 00 00 li r11,0 ffc0e7c0: 81 49 00 00 lwz r10,0(r9) ffc0e7c4: 38 09 00 04 addi r0,r9,4 uint32_t index; for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { ffc0e7c8: 39 29 00 0c addi r9,r9,12 ffc0e7cc: 7f 8a 00 00 cmpw cr7,r10,r0 ffc0e7d0: 40 9e 00 14 bne- cr7,ffc0e7e4 <_Thread_queue_First_priority+0x34> ffc0e7d4: 39 6b 00 01 addi r11,r11,1 Thread_queue_Control *the_thread_queue ) { uint32_t index; for( index=0 ; ffc0e7d8: 42 00 ff e8 bdnz+ ffc0e7c0 <_Thread_queue_First_priority+0x10> ffc0e7dc: 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; } ffc0e7e0: 4e 80 00 20 blr <== ALWAYS TAKEN for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) return (Thread_Control *) ffc0e7e4: 1d 6b 00 0c mulli r11,r11,12 ffc0e7e8: 7c 63 58 2e lwzx r3,r3,r11 ffc0e7ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b998 <_Thread_queue_Flush>: #else Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)), #endif uint32_t status ) { ffc0b998: 94 21 ff f0 stwu r1,-16(r1) ffc0b99c: 7c 08 02 a6 mflr r0 ffc0b9a0: 93 c1 00 08 stw r30,8(r1) ffc0b9a4: 7c be 2b 78 mr r30,r5 ffc0b9a8: 93 e1 00 0c stw r31,12(r1) ffc0b9ac: 7c 7f 1b 78 mr r31,r3 ffc0b9b0: 90 01 00 14 stw r0,20(r1) Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { ffc0b9b4: 48 00 00 08 b ffc0b9bc <_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; ffc0b9b8: 93 c3 00 34 stw r30,52(r3) uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { ffc0b9bc: 7f e3 fb 78 mr r3,r31 ffc0b9c0: 4b ff fa f1 bl ffc0b4b0 <_Thread_queue_Dequeue> <== ALWAYS TAKEN ffc0b9c4: 2c 03 00 00 cmpwi r3,0 ffc0b9c8: 40 82 ff f0 bne+ ffc0b9b8 <_Thread_queue_Flush+0x20> ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } } ffc0b9cc: 80 01 00 14 lwz r0,20(r1) ffc0b9d0: 83 c1 00 08 lwz r30,8(r1) ffc0b9d4: 7c 08 03 a6 mtlr r0 ffc0b9d8: 83 e1 00 0c lwz r31,12(r1) ffc0b9dc: 38 21 00 10 addi r1,r1,16 ffc0b9e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b9e4 <_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 ) { ffc0b9e4: 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; ffc0b9e8: 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; ffc0b9ec: 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; ffc0b9f0: 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; ffc0b9f4: 90 83 00 34 stw r4,52(r3) <== ALWAYS TAKEN the_thread_queue->timeout_status = timeout_status; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; ffc0b9f8: 90 03 00 30 stw r0,48(r3) if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { ffc0b9fc: 41 9e 00 18 beq- cr7,ffc0ba14 <_Thread_queue_Initialize+0x30> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ba00: 39 23 00 04 addi r9,r3,4 the_chain->permanent_null = NULL; ffc0ba04: 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); ffc0ba08: 91 23 00 00 stw r9,0(r3) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ba0c: 90 63 00 08 stw r3,8(r3) ffc0ba10: 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); the_chain->permanent_null = NULL; ffc0ba14: 38 00 00 04 li r0,4 <== ALWAYS TAKEN ffc0ba18: 7c 09 03 a6 mtctr r0 ffc0ba1c: 39 20 00 00 li r9,0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ba20: 38 03 00 04 addi r0,r3,4 the_chain->permanent_null = NULL; ffc0ba24: 91 23 00 04 stw r9,4(r3) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0ba28: 90 03 00 00 stw r0,0(r3) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0ba2c: 90 63 00 08 stw r3,8(r3) ffc0ba30: 38 63 00 0c addi r3,r3,12 uint32_t index; for( index=0 ; ffc0ba34: 42 00 ff ec bdnz+ ffc0ba20 <_Thread_queue_Initialize+0x3c> ffc0ba38: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10108 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { ffc10108: 7c 08 02 a6 mflr r0 ffc1010c: 94 21 ff f8 stwu r1,-8(r1) ffc10110: 7c 64 1b 78 mr r4,r3 ffc10114: 90 01 00 0c stw r0,12(r1) Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; ffc10118: 80 63 00 44 lwz r3,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 && ffc1011c: 80 03 00 30 lwz r0,48(r3) ffc10120: 2f 80 00 00 cmpwi cr7,r0,0 ffc10124: 41 9e 00 14 beq- cr7,ffc10138 <_Thread_queue_Process_timeout+0x30> ffc10128: 3d 20 00 00 lis r9,0 ffc1012c: 81 29 27 b0 lwz r9,10160(r9) ffc10130: 7f 84 48 00 cmpw cr7,r4,r9 ffc10134: 41 9e 00 20 beq- cr7,ffc10154 <_Thread_queue_Process_timeout+0x4c> 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; ffc10138: 80 03 00 3c lwz r0,60(r3) ffc1013c: 90 04 00 34 stw r0,52(r4) _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); ffc10140: 4b ff fe 71 bl ffc0ffb0 <_Thread_queue_Extract> <== ALWAYS TAKEN } } ffc10144: 80 01 00 0c lwz r0,12(r1) ffc10148: 38 21 00 08 addi r1,r1,8 ffc1014c: 7c 08 03 a6 mtlr r0 ffc10150: 4e 80 00 20 blr <== ALWAYS TAKEN * a timeout is not allowed to occur. */ if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED && _Thread_Is_executing( the_thread ) ) { if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) { ffc10154: 2f 80 00 03 cmpwi cr7,r0,3 ffc10158: 41 be ff ec beq- cr7,ffc10144 <_Thread_queue_Process_timeout+0x3c> the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; ffc1015c: 80 03 00 3c lwz r0,60(r3) ffc10160: 90 04 00 34 stw r0,52(r4) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; ffc10164: 38 00 00 02 li r0,2 ffc10168: 90 03 00 30 stw r0,48(r3) ffc1016c: 4b ff ff d8 b ffc10144 <_Thread_queue_Process_timeout+0x3c> <== ALWAYS TAKEN ffc0ba3c <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0ba3c: 94 21 ff d8 stwu r1,-40(r1) ffc0ba40: 7c 08 02 a6 mflr r0 ffc0ba44: 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 ) ffc0ba48: 7c 7f 1b 79 mr. r31,r3 void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { ffc0ba4c: 93 c1 00 20 stw r30,32(r1) ffc0ba50: 7c 9e 23 78 mr r30,r4 ffc0ba54: 90 01 00 2c stw r0,44(r1) ffc0ba58: 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 ) ffc0ba5c: 41 82 00 10 beq- ffc0ba6c <_Thread_queue_Requeue+0x30> <== 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 ) { ffc0ba60: 80 1f 00 34 lwz r0,52(r31) ffc0ba64: 2f 80 00 01 cmpwi cr7,r0,1 ffc0ba68: 41 9e 00 20 beq- cr7,ffc0ba88 <_Thread_queue_Requeue+0x4c> <== ALWAYS TAKEN _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); } } ffc0ba6c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0ba70: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0ba74: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ba78: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0ba7c: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0ba80: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0ba84: 4e 80 00 20 blr <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ba88: 7f a0 00 a6 mfmsr r29 ffc0ba8c: 7d 30 42 a6 mfsprg r9,0 ffc0ba90: 7f a9 48 78 andc r9,r29,r9 ffc0ba94: 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 ) ) { ffc0ba98: 3d 60 00 03 lis r11,3 ffc0ba9c: 81 24 00 10 lwz r9,16(r4) ffc0baa0: 61 6b be e0 ori r11,r11,48864 ffc0baa4: 7d 6a 48 39 and. r10,r11,r9 ffc0baa8: 40 82 00 24 bne- ffc0bacc <_Thread_queue_Requeue+0x90> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0baac: 7f a0 01 24 mtmsr r29 <== NOT EXECUTED _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); } } ffc0bab0: 80 01 00 2c lwz r0,44(r1) ffc0bab4: 83 a1 00 1c lwz r29,28(r1) ffc0bab8: 7c 08 03 a6 mtlr r0 ffc0babc: 83 c1 00 20 lwz r30,32(r1) ffc0bac0: 83 e1 00 24 lwz r31,36(r1) ffc0bac4: 38 21 00 28 addi r1,r1,40 ffc0bac8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bacc: 90 1f 00 30 stw r0,48(r31) ISR_Level level_ignored; _ISR_Disable( level ); if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _Thread_queue_Enter_critical_section( tq ); _Thread_queue_Extract_priority_helper( tq, the_thread, true ); ffc0bad0: 38 a0 00 01 li r5,1 ffc0bad4: 48 00 45 21 bl ffc0fff4 <_Thread_queue_Extract_priority_helper> <== ALWAYS TAKEN (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); ffc0bad8: 7f e3 fb 78 mr r3,r31 ffc0badc: 7f c4 f3 78 mr r4,r30 ffc0bae0: 38 a1 00 08 addi r5,r1,8 ffc0bae4: 4b ff fc 91 bl ffc0b774 <_Thread_queue_Enqueue_priority> <== ALWAYS TAKEN ffc0bae8: 7f a0 01 24 mtmsr r29 ffc0baec: 4b ff ff c4 b ffc0bab0 <_Thread_queue_Requeue+0x74> <== ALWAYS TAKEN ffc0baf0 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0baf0: 94 21 ff e8 stwu r1,-24(r1) ffc0baf4: 7c 08 02 a6 mflr r0 Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0baf8: 38 81 00 08 addi r4,r1,8 void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { ffc0bafc: 90 01 00 1c stw r0,28(r1) Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0bb00: 4b ff f5 35 bl ffc0b034 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0bb04: 80 01 00 08 lwz r0,8(r1) ffc0bb08: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bb0c: 40 9e 00 18 bne- cr7,ffc0bb24 <_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 ); ffc0bb10: 48 00 45 f9 bl ffc10108 <_Thread_queue_Process_timeout> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; ffc0bb14: 3d 20 00 00 lis r9,0 ffc0bb18: 81 69 27 70 lwz r11,10096(r9) ffc0bb1c: 38 0b ff ff addi r0,r11,-1 ffc0bb20: 90 09 27 70 stw r0,10096(r9) _Thread_Unnest_dispatch(); break; } } ffc0bb24: 80 01 00 1c lwz r0,28(r1) ffc0bb28: 38 21 00 18 addi r1,r1,24 ffc0bb2c: 7c 08 03 a6 mtlr r0 ffc0bb30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f268 <_Timer_Manager_initialization>: * Output parameters: NONE */ void _Timer_Manager_initialization(void) { _Objects_Initialize_information( ffc0f268: 3d 20 00 00 lis r9,0 * * Output parameters: NONE */ void _Timer_Manager_initialization(void) { ffc0f26c: 94 21 ff f8 stwu r1,-8(r1) ffc0f270: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN _Objects_Initialize_information( ffc0f274: 3c 60 00 00 lis r3,0 ffc0f278: 80 c9 20 78 lwz r6,8312(r9) <== ALWAYS TAKEN ffc0f27c: 38 63 36 cc addi r3,r3,14028 ffc0f280: 39 20 00 04 li r9,4 <== ALWAYS TAKEN * * Output parameters: NONE */ void _Timer_Manager_initialization(void) { ffc0f284: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN _Objects_Initialize_information( ffc0f288: 38 80 00 02 li r4,2 <== ALWAYS TAKEN ffc0f28c: 38 a0 00 02 li r5,2 ffc0f290: 38 e0 00 3c li r7,60 ffc0f294: 39 00 00 00 li r8,0 <== ALWAYS TAKEN ffc0f298: 4b ff b2 4d bl ffc0a4e4 <_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; ffc0f29c: 38 00 00 00 li r0,0 ffc0f2a0: 3d 20 00 00 lis r9,0 ffc0f2a4: 90 09 27 f4 stw r0,10228(r9) } ffc0f2a8: 80 01 00 0c lwz r0,12(r1) ffc0f2ac: 38 21 00 08 addi r1,r1,8 ffc0f2b0: 7c 08 03 a6 mtlr r0 ffc0f2b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1b260 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1b260: 94 21 ff 98 stwu r1,-104(r1) ffc1b264: 7c 08 02 a6 mflr r0 ffc1b268: 92 a1 00 3c stw r21,60(r1) Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc1b26c: 3a a1 00 08 addi r21,r1,8 ffc1b270: 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; ffc1b274: 38 00 00 00 li r0,0 ffc1b278: 92 e1 00 44 stw r23,68(r1) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc1b27c: 3a e1 00 18 addi r23,r1,24 ffc1b280: 93 41 00 50 stw r26,80(r1) ffc1b284: 3b 41 00 0c addi r26,r1,12 ffc1b288: 93 81 00 58 stw r28,88(r1) ffc1b28c: 3b 81 00 14 addi r28,r1,20 ffc1b290: 92 81 00 38 stw r20,56(r1) ffc1b294: 3e 80 00 00 lis r20,0 ffc1b298: 3a 94 28 68 addi r20,r20,10344 ffc1b29c: 93 01 00 48 stw r24,72(r1) ffc1b2a0: 3f 00 00 00 lis r24,0 ffc1b2a4: 3b 18 28 c0 addi r24,r24,10432 ffc1b2a8: 93 21 00 4c stw r25,76(r1) ffc1b2ac: 3f 20 00 00 lis r25,0 ffc1b2b0: 3b 39 28 88 addi r25,r25,10376 ffc1b2b4: 93 c1 00 60 stw r30,96(r1) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc1b2b8: 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); ffc1b2bc: 93 41 00 08 stw r26,8(r1) the_chain->permanent_null = NULL; ffc1b2c0: 90 01 00 0c stw r0,12(r1) the_chain->last = _Chain_Head(the_chain); ffc1b2c4: 92 a1 00 10 stw r21,16(r1) */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc1b2c8: 92 e1 00 14 stw r23,20(r1) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc1b2cc: 93 81 00 1c stw r28,28(r1) ffc1b2d0: 92 01 00 28 stw r16,40(r1) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc1b2d4: 3a 03 00 08 addi r16,r3,8 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1b2d8: 92 21 00 2c stw r17,44(r1) static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc1b2dc: 3a 23 00 40 addi r17,r3,64 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1b2e0: 92 41 00 30 stw r18,48(r1) * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; ffc1b2e4: 3a 40 00 00 li r18,0 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1b2e8: 92 61 00 34 stw r19,52(r1) _Thread_Set_state( ts->thread, STATES_DELAYING ); _Timer_server_Reset_interval_system_watchdog( ts ); _Timer_server_Reset_tod_system_watchdog( ts ); _Thread_Enable_dispatch(); ts->active = true; ffc1b2ec: 3a 60 00 01 li r19,1 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1b2f0: 92 c1 00 40 stw r22,64(r1) * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; ffc1b2f4: 3a c0 00 00 li r22,0 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1b2f8: 93 61 00 54 stw r27,84(r1) /* * This path is for normal forward movement and cases where the * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc1b2fc: 3b 63 00 68 addi r27,r3,104 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1b300: 93 a1 00 5c stw r29,92(r1) */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc1b304: 3b a3 00 30 addi r29,r3,48 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { ffc1b308: 93 e1 00 64 stw r31,100(r1) ffc1b30c: 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; ffc1b310: 92 bf 00 78 stw r21,120(r31) */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc1b314: 7f a3 eb 78 mr r3,r29 ffc1b318: 7f 85 e3 78 mr r5,r28 static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; ffc1b31c: 80 18 00 00 lwz r0,0(r24) /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; ffc1b320: 80 9f 00 3c lwz r4,60(r31) watchdogs->last_snapshot = snapshot; ffc1b324: 90 1f 00 3c stw r0,60(r31) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc1b328: 7c 84 00 50 subf r4,r4,r0 ffc1b32c: 48 00 54 a9 bl ffc207d4 <_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(); ffc1b330: 83 d9 00 00 lwz r30,0(r25) Watchdog_Interval last_snapshot = watchdogs->last_snapshot; ffc1b334: 80 9f 00 74 lwz r4,116(r31) /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { ffc1b338: 7f 9e 20 40 cmplw cr7,r30,r4 ffc1b33c: 41 9d 00 98 bgt- cr7,ffc1b3d4 <_Timer_server_Body+0x174> * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { ffc1b340: 41 9c 00 a8 blt- cr7,ffc1b3e8 <_Timer_server_Body+0x188> */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; ffc1b344: 93 df 00 74 stw r30,116(r31) } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); ffc1b348: 80 7f 00 78 lwz r3,120(r31) ffc1b34c: 48 00 0c 09 bl ffc1bf54 <_Chain_Get> <== ALWAYS TAKEN if ( timer == NULL ) { ffc1b350: 2c 03 00 00 cmpwi r3,0 ffc1b354: 41 82 00 34 beq- ffc1b388 <_Timer_server_Body+0x128> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { ffc1b358: 80 03 00 38 lwz r0,56(r3) ffc1b35c: 2f 80 00 01 cmpwi cr7,r0,1 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { ffc1b360: 2f 00 00 03 cmpwi cr6,r0,3 static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { ffc1b364: 41 9e 00 98 beq- cr7,ffc1b3fc <_Timer_server_Body+0x19c> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { ffc1b368: 40 9a ff e0 bne+ cr6,ffc1b348 <_Timer_server_Body+0xe8> <== NEVER TAKEN _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); ffc1b36c: 38 83 00 10 addi r4,r3,16 ffc1b370: 7f 63 db 78 mr r3,r27 ffc1b374: 48 00 55 1d bl ffc20890 <_Watchdog_Insert> <== ALWAYS TAKEN } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); ffc1b378: 80 7f 00 78 lwz r3,120(r31) ffc1b37c: 48 00 0b d9 bl ffc1bf54 <_Chain_Get> <== ALWAYS TAKEN if ( timer == NULL ) { ffc1b380: 2c 03 00 00 cmpwi r3,0 ffc1b384: 40 82 ff d4 bne+ ffc1b358 <_Timer_server_Body+0xf8> <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b388: 7d 20 00 a6 mfmsr r9 ffc1b38c: 7c 10 42 a6 mfsprg r0,0 ffc1b390: 7d 20 00 78 andc r0,r9,r0 <== ALWAYS TAKEN ffc1b394: 7c 00 01 24 mtmsr r0 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ffc1b398: 80 01 00 08 lwz r0,8(r1) ffc1b39c: 7f 9a 00 00 cmpw cr7,r26,r0 ffc1b3a0: 41 9e 00 6c beq- cr7,ffc1b40c <_Timer_server_Body+0x1ac> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b3a4: 7d 20 01 24 mtmsr r9 static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; ffc1b3a8: 80 18 00 00 lwz r0,0(r24) */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc1b3ac: 7f a3 eb 78 mr r3,r29 Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; ffc1b3b0: 80 9f 00 3c lwz r4,60(r31) watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc1b3b4: 7f 85 e3 78 mr r5,r28 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; ffc1b3b8: 90 1f 00 3c stw r0,60(r31) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); ffc1b3bc: 7c 84 00 50 subf r4,r4,r0 ffc1b3c0: 48 00 54 15 bl ffc207d4 <_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(); ffc1b3c4: 83 d9 00 00 lwz r30,0(r25) Watchdog_Interval last_snapshot = watchdogs->last_snapshot; ffc1b3c8: 80 9f 00 74 lwz r4,116(r31) /* * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the watchdogs->Chain to indicate this. */ if ( snapshot > last_snapshot ) { ffc1b3cc: 7f 9e 20 40 cmplw cr7,r30,r4 ffc1b3d0: 40 9d ff 70 ble+ cr7,ffc1b340 <_Timer_server_Body+0xe0> <== ALWAYS TAKEN /* * 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 ); ffc1b3d4: 7c 84 f0 50 subf r4,r4,r30 ffc1b3d8: 7f 63 db 78 mr r3,r27 ffc1b3dc: 7f 85 e3 78 mr r5,r28 ffc1b3e0: 48 00 53 f5 bl ffc207d4 <_Watchdog_Adjust_to_chain> <== ALWAYS TAKEN ffc1b3e4: 4b ff ff 60 b ffc1b344 <_Timer_server_Body+0xe4> <== ALWAYS TAKEN /* * 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 ); ffc1b3e8: 7c be 20 50 subf r5,r30,r4 ffc1b3ec: 7f 63 db 78 mr r3,r27 ffc1b3f0: 38 80 00 01 li r4,1 ffc1b3f4: 48 00 52 c1 bl ffc206b4 <_Watchdog_Adjust> <== ALWAYS TAKEN ffc1b3f8: 4b ff ff 4c b ffc1b344 <_Timer_server_Body+0xe4> <== ALWAYS TAKEN Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); ffc1b3fc: 38 83 00 10 addi r4,r3,16 ffc1b400: 7f a3 eb 78 mr r3,r29 ffc1b404: 48 00 54 8d bl ffc20890 <_Watchdog_Insert> <== ALWAYS TAKEN ffc1b408: 4b ff ff 40 b ffc1b348 <_Timer_server_Body+0xe8> <== ALWAYS TAKEN */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; ffc1b40c: 90 7f 00 78 stw r3,120(r31) ffc1b410: 7d 20 01 24 mtmsr r9 _Chain_Initialize_empty( &fire_chain ); while ( true ) { _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain ); if ( !_Chain_Is_empty( &fire_chain ) ) { ffc1b414: 80 01 00 14 lwz r0,20(r1) ffc1b418: 7f 97 00 00 cmpw cr7,r23,r0 ffc1b41c: 40 be 00 30 bne+ cr7,ffc1b44c <_Timer_server_Body+0x1ec> ffc1b420: 48 00 00 50 b ffc1b470 <_Timer_server_Body+0x210> <== ALWAYS TAKEN { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; ffc1b424: 81 69 00 00 lwz r11,0(r9) * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; ffc1b428: 92 c9 00 08 stw r22,8(r9) the_chain->first = new_first; ffc1b42c: 91 61 00 14 stw r11,20(r1) new_first->previous = _Chain_Head(the_chain); ffc1b430: 93 8b 00 04 stw r28,4(r11) ffc1b434: 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 ); ffc1b438: 80 09 00 1c lwz r0,28(r9) ffc1b43c: 80 89 00 24 lwz r4,36(r9) ffc1b440: 80 69 00 20 lwz r3,32(r9) ffc1b444: 7c 09 03 a6 mtctr r0 ffc1b448: 4e 80 04 21 bctrl <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b44c: 7c 00 00 a6 mfmsr r0 ffc1b450: 7d 30 42 a6 mfsprg r9,0 ffc1b454: 7c 09 48 78 andc r9,r0,r9 ffc1b458: 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)); ffc1b45c: 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)) ffc1b460: 7f 97 48 00 cmpw cr7,r23,r9 ffc1b464: 40 9e ff c0 bne+ cr7,ffc1b424 <_Timer_server_Body+0x1c4> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b468: 7c 00 01 24 mtmsr r0 ffc1b46c: 4b ff fe a4 b ffc1b310 <_Timer_server_Body+0xb0> <== ALWAYS TAKEN } } else { ts->active = false; ffc1b470: 9a 5f 00 7c stb r18,124(r31) ffc1b474: 80 14 00 00 lwz r0,0(r20) ffc1b478: 30 00 00 01 addic r0,r0,1 ffc1b47c: 90 14 00 00 stw r0,0(r20) /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); ffc1b480: 80 7f 00 00 lwz r3,0(r31) ffc1b484: 38 80 00 08 li r4,8 ffc1b488: 48 00 45 bd bl ffc1fa44 <_Thread_Set_state> <== ALWAYS TAKEN _Timer_server_Reset_interval_system_watchdog( ts ); ffc1b48c: 7f e3 fb 78 mr r3,r31 ffc1b490: 4b ff fc a9 bl ffc1b138 <_Timer_server_Reset_interval_system_watchdog> <== ALWAYS TAKEN _Timer_server_Reset_tod_system_watchdog( ts ); ffc1b494: 7f e3 fb 78 mr r3,r31 ffc1b498: 4b ff fd 35 bl ffc1b1cc <_Timer_server_Reset_tod_system_watchdog> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc1b49c: 48 00 38 61 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ts->active = true; ffc1b4a0: 9a 7f 00 7c stb r19,124(r31) static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); ffc1b4a4: 7e 03 83 78 mr r3,r16 ffc1b4a8: 48 00 55 b1 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); ffc1b4ac: 7e 23 8b 78 mr r3,r17 ffc1b4b0: 48 00 55 a9 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN ffc1b4b4: 4b ff fe 5c b ffc1b310 <_Timer_server_Body+0xb0> <== ALWAYS TAKEN ffc1b138 <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { ffc1b138: 94 21 ff f0 stwu r1,-16(r1) ffc1b13c: 7c 08 02 a6 mflr r0 ffc1b140: 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 ); ffc1b144: 3b c3 00 08 addi r30,r3,8 } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { ffc1b148: 93 e1 00 0c stw r31,12(r1) ffc1b14c: 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 ); ffc1b150: 7f c3 f3 78 mr r3,r30 } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { ffc1b154: 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 ); ffc1b158: 48 00 59 01 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b15c: 7d 60 00 a6 mfmsr r11 ffc1b160: 7c 10 42 a6 mfsprg r0,0 ffc1b164: 7d 60 00 78 andc r0,r11,r0 ffc1b168: 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)); ffc1b16c: 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; ffc1b170: 38 1f 00 34 addi r0,r31,52 ffc1b174: 7f 89 00 00 cmpw cr7,r9,r0 ffc1b178: 41 9e 00 38 beq- cr7,ffc1b1b0 <_Timer_server_Reset_interval_system_watchdog+0x78> _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; ffc1b17c: 80 09 00 10 lwz r0,16(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b180: 7d 60 01 24 mtmsr r11 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc1b184: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc1b188: 90 1f 00 14 stw r0,20(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc1b18c: 7f c4 f3 78 mr r4,r30 ffc1b190: 38 63 71 68 addi r3,r3,29032 ffc1b194: 48 00 56 fd bl ffc20890 <_Watchdog_Insert> <== ALWAYS TAKEN delta_interval ); } else { _ISR_Enable( level ); } } ffc1b198: 80 01 00 14 lwz r0,20(r1) ffc1b19c: 83 c1 00 08 lwz r30,8(r1) ffc1b1a0: 7c 08 03 a6 mtlr r0 ffc1b1a4: 83 e1 00 0c lwz r31,12(r1) ffc1b1a8: 38 21 00 10 addi r1,r1,16 ffc1b1ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1b1b0: 7d 60 01 24 mtmsr r11 ffc1b1b4: 80 01 00 14 lwz r0,20(r1) ffc1b1b8: 83 c1 00 08 lwz r30,8(r1) ffc1b1bc: 7c 08 03 a6 mtlr r0 ffc1b1c0: 83 e1 00 0c lwz r31,12(r1) ffc1b1c4: 38 21 00 10 addi r1,r1,16 ffc1b1c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1b1cc <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { ffc1b1cc: 94 21 ff f0 stwu r1,-16(r1) ffc1b1d0: 7c 08 02 a6 mflr r0 ffc1b1d4: 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 ); ffc1b1d8: 3b c3 00 40 addi r30,r3,64 } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { ffc1b1dc: 93 e1 00 0c stw r31,12(r1) ffc1b1e0: 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 ); ffc1b1e4: 7f c3 f3 78 mr r3,r30 } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { ffc1b1e8: 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 ); ffc1b1ec: 48 00 58 6d bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b1f0: 7d 60 00 a6 mfmsr r11 ffc1b1f4: 7c 10 42 a6 mfsprg r0,0 ffc1b1f8: 7d 60 00 78 andc r0,r11,r0 ffc1b1fc: 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)); ffc1b200: 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; ffc1b204: 38 1f 00 6c addi r0,r31,108 ffc1b208: 7f 89 00 00 cmpw cr7,r9,r0 ffc1b20c: 41 9e 00 38 beq- cr7,ffc1b244 <_Timer_server_Reset_tod_system_watchdog+0x78> _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; ffc1b210: 80 09 00 10 lwz r0,16(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b214: 7d 60 01 24 mtmsr r11 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc1b218: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc1b21c: 90 1f 00 4c stw r0,76(r31) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc1b220: 7f c4 f3 78 mr r4,r30 ffc1b224: 38 63 71 5c addi r3,r3,29020 ffc1b228: 48 00 56 69 bl ffc20890 <_Watchdog_Insert> <== ALWAYS TAKEN delta_interval ); } else { _ISR_Enable( level ); } } ffc1b22c: 80 01 00 14 lwz r0,20(r1) ffc1b230: 83 c1 00 08 lwz r30,8(r1) ffc1b234: 7c 08 03 a6 mtlr r0 ffc1b238: 83 e1 00 0c lwz r31,12(r1) ffc1b23c: 38 21 00 10 addi r1,r1,16 ffc1b240: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1b244: 7d 60 01 24 mtmsr r11 ffc1b248: 80 01 00 14 lwz r0,20(r1) ffc1b24c: 83 c1 00 08 lwz r30,8(r1) ffc1b250: 7c 08 03 a6 mtlr r0 ffc1b254: 83 e1 00 0c lwz r31,12(r1) ffc1b258: 38 21 00 10 addi r1,r1,16 ffc1b25c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1b4b8 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { ffc1b4b8: 94 21 ff f0 stwu r1,-16(r1) ffc1b4bc: 7c 08 02 a6 mflr r0 ffc1b4c0: 7c 89 23 78 mr r9,r4 ffc1b4c4: 90 01 00 14 stw r0,20(r1) if ( ts->insert_chain == NULL ) { ffc1b4c8: 80 03 00 78 lwz r0,120(r3) static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { ffc1b4cc: 93 e1 00 0c stw r31,12(r1) ffc1b4d0: 7c 7f 1b 78 mr r31,r3 if ( ts->insert_chain == NULL ) { ffc1b4d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b4d8: 41 9e 00 20 beq- cr7,ffc1b4f8 <_Timer_server_Schedule_operation_method+0x40> * 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 ); ffc1b4dc: 80 63 00 78 lwz r3,120(r3) ffc1b4e0: 48 00 0a 45 bl ffc1bf24 <_Chain_Append> <== ALWAYS TAKEN } } ffc1b4e4: 80 01 00 14 lwz r0,20(r1) ffc1b4e8: 83 e1 00 0c lwz r31,12(r1) ffc1b4ec: 38 21 00 10 addi r1,r1,16 ffc1b4f0: 7c 08 03 a6 mtlr r0 ffc1b4f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1b4f8: 3d 60 00 00 lis r11,0 ffc1b4fc: 81 4b 28 68 lwz r10,10344(r11) ffc1b500: 38 0a 00 01 addi r0,r10,1 ffc1b504: 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 ) { ffc1b508: 80 04 00 38 lwz r0,56(r4) ffc1b50c: 2f 80 00 01 cmpwi cr7,r0,1 ffc1b510: 41 9e 00 ac beq- cr7,ffc1b5bc <_Timer_server_Schedule_operation_method+0x104> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); if ( !ts->active ) { _Timer_server_Reset_interval_system_watchdog( ts ); } } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { ffc1b514: 2f 80 00 03 cmpwi cr7,r0,3 ffc1b518: 41 9e 00 1c beq- cr7,ffc1b534 <_Timer_server_Schedule_operation_method+0x7c> if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); ffc1b51c: 48 00 37 e1 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN * 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 ); } } ffc1b520: 80 01 00 14 lwz r0,20(r1) ffc1b524: 83 e1 00 0c lwz r31,12(r1) ffc1b528: 38 21 00 10 addi r1,r1,16 ffc1b52c: 7c 08 03 a6 mtlr r0 ffc1b530: 4e 80 00 20 blr <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b534: 7c c0 00 a6 mfmsr r6 ffc1b538: 7c 10 42 a6 mfsprg r0,0 ffc1b53c: 7c c0 00 78 andc r0,r6,r0 ffc1b540: 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)); ffc1b544: 81 63 00 68 lwz r11,104(r3) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc1b548: 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(); ffc1b54c: 3d 40 00 00 lis r10,0 ffc1b550: 7f 8b 00 00 cmpw cr7,r11,r0 ffc1b554: 80 0a 28 88 lwz r0,10376(r10) last_snapshot = ts->TOD_watchdogs.last_snapshot; ffc1b558: 81 43 00 74 lwz r10,116(r3) ffc1b55c: 41 9e 00 30 beq- cr7,ffc1b58c <_Timer_server_Schedule_operation_method+0xd4> 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 ) { ffc1b560: 7f 80 50 40 cmplw cr7,r0,r10 _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; ffc1b564: 80 eb 00 10 lwz r7,16(r11) } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; ffc1b568: 7d 07 52 14 add r8,r7,r10 delta_interval += delta; ffc1b56c: 7d 00 40 50 subf r8,r0,r8 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 ) { ffc1b570: 40 9d 00 18 ble- cr7,ffc1b588 <_Timer_server_Schedule_operation_method+0xd0> /* * We advanced in time. */ delta = snapshot - last_snapshot; ffc1b574: 7d 4a 00 50 subf r10,r10,r0 if (delta_interval > delta) { ffc1b578: 7c a7 50 10 subfc r5,r7,r10 ffc1b57c: 7c a5 29 10 subfe r5,r5,r5 delta_interval -= delta; ffc1b580: 7d 0a 38 50 subf r8,r10,r7 if ( snapshot > last_snapshot ) { /* * We advanced in time. */ delta = snapshot - last_snapshot; if (delta_interval > delta) { ffc1b584: 7d 08 28 38 and r8,r8,r5 * Someone put us in the past. */ delta = last_snapshot - snapshot; delta_interval += delta; } first_watchdog->delta_interval = delta_interval; ffc1b588: 91 0b 00 10 stw r8,16(r11) } ts->TOD_watchdogs.last_snapshot = snapshot; ffc1b58c: 90 1f 00 74 stw r0,116(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b590: 7c c0 01 24 mtmsr r6 _ISR_Enable( level ); _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); ffc1b594: 38 89 00 10 addi r4,r9,16 ffc1b598: 38 7f 00 68 addi r3,r31,104 ffc1b59c: 48 00 52 f5 bl ffc20890 <_Watchdog_Insert> <== ALWAYS TAKEN if ( !ts->active ) { ffc1b5a0: 88 1f 00 7c lbz r0,124(r31) ffc1b5a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b5a8: 40 9e ff 74 bne+ cr7,ffc1b51c <_Timer_server_Schedule_operation_method+0x64> _Timer_server_Reset_tod_system_watchdog( ts ); ffc1b5ac: 7f e3 fb 78 mr r3,r31 ffc1b5b0: 4b ff fc 1d bl ffc1b1cc <_Timer_server_Reset_tod_system_watchdog> <== ALWAYS TAKEN } } _Thread_Enable_dispatch(); ffc1b5b4: 48 00 37 49 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1b5b8: 4b ff ff 68 b ffc1b520 <_Timer_server_Schedule_operation_method+0x68> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1b5bc: 7c e0 00 a6 mfmsr r7 ffc1b5c0: 7c 10 42 a6 mfsprg r0,0 ffc1b5c4: 7c e0 00 78 andc r0,r7,r0 ffc1b5c8: 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)); ffc1b5cc: 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; ffc1b5d0: 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; ffc1b5d4: 3d 40 00 00 lis r10,0 ffc1b5d8: 7f 8b 00 00 cmpw cr7,r11,r0 ffc1b5dc: 81 4a 28 c0 lwz r10,10432(r10) last_snapshot = ts->Interval_watchdogs.last_snapshot; ffc1b5e0: 80 03 00 3c lwz r0,60(r3) ffc1b5e4: 41 9e 00 20 beq- cr7,ffc1b604 <_Timer_server_Schedule_operation_method+0x14c> /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; ffc1b5e8: 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; ffc1b5ec: 7c 00 50 50 subf r0,r0,r10 delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { ffc1b5f0: 7c c8 00 10 subfc r6,r8,r0 ffc1b5f4: 7c c6 31 10 subfe r6,r6,r6 delta_interval -= delta; ffc1b5f8: 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) { ffc1b5fc: 7c 00 30 38 and r0,r0,r6 delta_interval -= delta; } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; ffc1b600: 90 0b 00 10 stw r0,16(r11) } ts->Interval_watchdogs.last_snapshot = snapshot; ffc1b604: 91 5f 00 3c stw r10,60(r31) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1b608: 7c e0 01 24 mtmsr r7 _ISR_Enable( level ); _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); ffc1b60c: 38 89 00 10 addi r4,r9,16 ffc1b610: 38 7f 00 30 addi r3,r31,48 ffc1b614: 48 00 52 7d bl ffc20890 <_Watchdog_Insert> <== ALWAYS TAKEN if ( !ts->active ) { ffc1b618: 88 1f 00 7c lbz r0,124(r31) ffc1b61c: 2f 80 00 00 cmpwi cr7,r0,0 ffc1b620: 40 9e fe fc bne+ cr7,ffc1b51c <_Timer_server_Schedule_operation_method+0x64> _Timer_server_Reset_interval_system_watchdog( ts ); ffc1b624: 7f e3 fb 78 mr r3,r31 ffc1b628: 4b ff fb 11 bl ffc1b138 <_Timer_server_Reset_interval_system_watchdog> <== ALWAYS TAKEN if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); ffc1b62c: 48 00 36 d1 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1b630: 4b ff fe f0 b ffc1b520 <_Timer_server_Schedule_operation_method+0x68> <== ALWAYS TAKEN ffc0c1b0 <_Timespec_Add_to>: { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; ffc0c1b0: 80 03 00 04 lwz r0,4(r3) <== ALWAYS TAKEN uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { ffc0c1b4: 7c 69 1b 78 mr r9,r3 uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; ffc0c1b8: 81 04 00 04 lwz r8,4(r4) uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { uint32_t seconds = add->tv_sec; ffc0c1bc: 80 64 00 00 lwz r3,0(r4) /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; ffc0c1c0: 7d 08 02 14 add r8,r8,r0 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; ffc0c1c4: 81 49 00 00 lwz r10,0(r9) time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0c1c8: 3c 00 3b 9a lis r0,15258 { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; ffc0c1cc: 91 09 00 04 stw r8,4(r9) /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0c1d0: 60 00 c9 ff ori r0,r0,51711 <== ALWAYS TAKEN ffc0c1d4: 7f 88 00 40 cmplw cr7,r8,r0 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; ffc0c1d8: 7d 4a 1a 14 add r10,r10,r3 time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0c1dc: 7d 0b 43 78 mr r11,r8 ) { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; ffc0c1e0: 91 49 00 00 stw r10,0(r9) time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0c1e4: 4c 9d 00 20 blelr cr7 time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ffc0c1e8: 3d 6b c4 65 addis r11,r11,-15259 ffc0c1ec: 39 6b 36 00 addi r11,r11,13824 /* 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 ) { ffc0c1f0: 7f 8b 00 40 cmplw cr7,r11,r0 * * This routines adds two timespecs. The second argument is added * to the first. */ uint32_t _Timespec_Add_to( ffc0c1f4: 39 4a 00 01 addi r10,r10,1 /* 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++; seconds++; ffc0c1f8: 38 63 00 01 addi r3,r3,1 /* 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 ) { ffc0c1fc: 41 9d ff ec bgt+ cr7,ffc0c1e8 <_Timespec_Add_to+0x38> ffc0c200: 91 49 00 00 stw r10,0(r9) ffc0c204: 91 69 00 04 stw r11,4(r9) time->tv_sec++; seconds++; } return seconds; } ffc0c208: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e69c <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0e69c: 94 21 ff e8 stwu r1,-24(r1) ffc0e6a0: 7c 08 02 a6 mflr r0 ffc0e6a4: 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; ffc0e6a8: 3c 00 3b 9a lis r0,15258 ffc0e6ac: 60 00 ca 00 ori r0,r0,51712 ffc0e6b0: 81 04 00 00 lwz r8,0(r4) right += rhs->tv_nsec; ffc0e6b4: 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; ffc0e6b8: 7d 60 40 96 mulhw r11,r0,r8 const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0e6bc: 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; ffc0e6c0: 7d 80 41 d6 mullw r12,r0,r8 const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0e6c4: 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; ffc0e6c8: 7d 49 fe 70 srawi r9,r10,31 const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0e6cc: 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; ffc0e6d0: 7d 0c 50 14 addc r8,r12,r10 ffc0e6d4: 7c eb 49 14 adde r7,r11,r9 const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0e6d8: 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 ) { ffc0e6dc: 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; ffc0e6e0: 81 23 00 04 lwz r9,4(r3) const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { ffc0e6e4: 7c be 2b 78 mr r30,r5 ffc0e6e8: 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; ffc0e6ec: 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 ) { ffc0e6f0: 41 82 00 90 beq- ffc0e780 <_Timespec_Divide+0xe4> /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; ffc0e6f4: 7c aa 00 96 mulhw r5,r10,r0 ffc0e6f8: 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; ffc0e6fc: 7d 2c 4b 78 mr r12,r9 ffc0e700: 7d 2b fe 70 srawi r11,r9,31 ffc0e704: 3c 00 00 01 lis r0,1 ffc0e708: 7d 46 60 14 addc r10,r6,r12 ffc0e70c: 7d 25 59 14 adde r9,r5,r11 ffc0e710: 60 00 86 a0 ori r0,r0,34464 ffc0e714: 7c 60 50 16 mulhwu r3,r0,r10 ffc0e718: 7c 80 51 d6 mullw r4,r0,r10 ffc0e71c: 7c 00 49 d6 mullw r0,r0,r9 ffc0e720: 7c e5 3b 78 mr r5,r7 ffc0e724: 7d 06 43 78 mr r6,r8 ffc0e728: 7c 60 1a 14 add r3,r0,r3 ffc0e72c: 48 01 44 11 bl ffc22b3c <__udivdi3> <== ALWAYS TAKEN *ival_percentage = answer / 1000; ffc0e730: 38 a0 00 00 li r5,0 ffc0e734: 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; ffc0e738: 7c 7c 1b 78 mr r28,r3 ffc0e73c: 7c 9d 23 78 mr r29,r4 *ival_percentage = answer / 1000; ffc0e740: 48 01 43 fd bl ffc22b3c <__udivdi3> <== ALWAYS TAKEN ffc0e744: 90 9e 00 00 stw r4,0(r30) *fval_percentage = answer % 1000; ffc0e748: 7f 83 e3 78 mr r3,r28 ffc0e74c: 7f a4 eb 78 mr r4,r29 ffc0e750: 38 a0 00 00 li r5,0 ffc0e754: 38 c0 03 e8 li r6,1000 ffc0e758: 48 01 47 c1 bl ffc22f18 <__umoddi3> <== ALWAYS TAKEN } ffc0e75c: 80 01 00 1c lwz r0,28(r1) */ answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; ffc0e760: 90 9f 00 00 stw r4,0(r31) } ffc0e764: 7c 08 03 a6 mtlr r0 ffc0e768: 83 81 00 08 lwz r28,8(r1) ffc0e76c: 83 a1 00 0c lwz r29,12(r1) ffc0e770: 83 c1 00 10 lwz r30,16(r1) ffc0e774: 83 e1 00 14 lwz r31,20(r1) ffc0e778: 38 21 00 18 addi r1,r1,24 ffc0e77c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e780: 80 01 00 1c lwz r0,28(r1) left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { *ival_percentage = 0; ffc0e784: 91 65 00 00 stw r11,0(r5) answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } ffc0e788: 7c 08 03 a6 mtlr r0 ffc0e78c: 83 81 00 08 lwz r28,8(r1) ffc0e790: 83 a1 00 0c lwz r29,12(r1) ffc0e794: 83 c1 00 10 lwz r30,16(r1) ffc0e798: 83 e1 00 14 lwz r31,20(r1) ffc0e79c: 38 21 00 18 addi r1,r1,24 right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { *ival_percentage = 0; *fval_percentage = 0; ffc0e7a0: 91 66 00 00 stw r11,0(r6) answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } ffc0e7a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc345d0 <_Timespec_Divide_by_integer>: void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { ffc345d0: 94 21 ff e8 stwu r1,-24(r1) ffc345d4: 7c 08 02 a6 mflr r0 ffc345d8: 7c 86 23 78 mr r6,r4 ffc345dc: 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; ffc345e0: 3c 00 3b 9a lis r0,15258 ffc345e4: 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; ffc345e8: 81 23 00 00 lwz r9,0(r3) void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { ffc345ec: 93 e1 00 14 stw r31,20(r1) ffc345f0: 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; ffc345f4: 7d 2a fe 70 srawi r10,r9,31 t *= TOD_NANOSECONDS_PER_SECOND; ffc345f8: 7d 80 49 d6 mullw r12,r0,r9 void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { ffc345fc: 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; ffc34600: 7d 60 48 16 mulhwu r11,r0,r9 void _Timespec_Divide_by_integer( const struct timespec *time, uint32_t iterations, struct timespec *result ) { ffc34604: 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; ffc34608: 7c 00 51 d6 mullw r0,r0,r10 t += time->tv_nsec; ffc3460c: 81 43 00 04 lwz r10,4(r3) ffc34610: 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; ffc34614: 7d 60 5a 14 add r11,r0,r11 /* * Divide to get nanoseconds per iteration */ t /= iterations; ffc34618: 7c 8c 50 14 addc r4,r12,r10 ffc3461c: 7c 6b 49 14 adde r3,r11,r9 ffc34620: 38 a0 00 00 li r5,0 ffc34624: 48 03 3f e5 bl ffc68608 <__udivdi3> <== ALWAYS TAKEN /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; ffc34628: 3c c0 3b 9a lis r6,15258 ffc3462c: 38 a0 00 00 li r5,0 ffc34630: 60 c6 ca 00 ori r6,r6,51712 /* * Divide to get nanoseconds per iteration */ t /= iterations; ffc34634: 7c 7d 1b 78 mr r29,r3 ffc34638: 7c 9e 23 78 mr r30,r4 /* * Put it back in the timespec result */ result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND; ffc3463c: 48 03 3f cd bl ffc68608 <__udivdi3> <== ALWAYS TAKEN ffc34640: 90 9f 00 00 stw r4,0(r31) result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND; ffc34644: 3c c0 3b 9a lis r6,15258 ffc34648: 7f a3 eb 78 mr r3,r29 ffc3464c: 7f c4 f3 78 mr r4,r30 ffc34650: 38 a0 00 00 li r5,0 ffc34654: 60 c6 ca 00 ori r6,r6,51712 ffc34658: 48 03 43 8d bl ffc689e4 <__umoddi3> <== ALWAYS TAKEN } ffc3465c: 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; ffc34660: 90 9f 00 04 stw r4,4(r31) } ffc34664: 7c 08 03 a6 mtlr r0 ffc34668: 83 a1 00 0c lwz r29,12(r1) ffc3466c: 83 c1 00 10 lwz r30,16(r1) ffc34670: 83 e1 00 14 lwz r31,20(r1) ffc34674: 38 21 00 18 addi r1,r1,24 ffc34678: 4e 80 00 20 blr <== ALWAYS TAKEN ffc102f4 <_Timespec_From_ticks>: struct timespec *time ) { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); ffc102f4: 3d 20 00 00 lis r9,0 ffc102f8: 80 09 20 ac lwz r0,8364(r9) ffc102fc: 7c 63 01 d6 mullw r3,r3,r0 time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; ffc10300: 3c 00 43 1b lis r0,17179 ffc10304: 60 00 de 83 ori r0,r0,56963 ffc10308: 7c 03 00 16 mulhwu r0,r3,r0 ffc1030c: 54 00 74 be rlwinm r0,r0,14,18,31 time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * ffc10310: 54 0b 40 2e rlwinm r11,r0,8,0,23 { uint32_t usecs; usecs = ticks * rtems_configuration_get_microseconds_per_tick(); time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND; ffc10314: 90 04 00 00 stw r0,0(r4) time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) * ffc10318: 54 09 18 38 rlwinm r9,r0,3,0,28 ffc1031c: 7d 29 58 50 subf r9,r9,r11 ffc10320: 55 2b 30 32 rlwinm r11,r9,6,0,25 ffc10324: 7d 29 58 50 subf r9,r9,r11 ffc10328: 7d 29 02 14 add r9,r9,r0 ffc1032c: 55 29 30 32 rlwinm r9,r9,6,0,25 ffc10330: 7c 69 18 50 subf r3,r9,r3 ffc10334: 1c 63 03 e8 mulli r3,r3,1000 ffc10338: 90 64 00 04 stw r3,4(r4) TOD_NANOSECONDS_PER_MICROSECOND; } ffc1033c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc48a8c <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) ffc48a8c: 81 63 00 00 lwz r11,0(r3) bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { ffc48a90: 7c 69 1b 78 mr r9,r3 if ( lhs->tv_sec > rhs->tv_sec ) ffc48a94: 80 04 00 00 lwz r0,0(r4) ffc48a98: 38 60 00 01 li r3,1 ffc48a9c: 7f 8b 00 00 cmpw cr7,r11,r0 ffc48aa0: 4d 9d 00 20 bgtlr cr7 return true; if ( lhs->tv_sec < rhs->tv_sec ) ffc48aa4: 41 9c 00 1c blt- cr7,ffc48ac0 <_Timespec_Greater_than+0x34> #include #include #include bool _Timespec_Greater_than( ffc48aa8: 81 29 00 04 lwz r9,4(r9) ffc48aac: 80 04 00 04 lwz r0,4(r4) ffc48ab0: 7f 89 00 00 cmpw cr7,r9,r0 ffc48ab4: 7c 60 00 26 mfcr r3 ffc48ab8: 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; } ffc48abc: 4e 80 00 20 blr <== ALWAYS TAKEN ) { if ( lhs->tv_sec > rhs->tv_sec ) return true; if ( lhs->tv_sec < rhs->tv_sec ) ffc48ac0: 38 60 00 00 li r3,0 ffc48ac4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2ef50 <_Timespec_Is_valid>: bool _Timespec_Is_valid( const struct timespec *time ) { if ( !time ) ffc2ef50: 2c 03 00 00 cmpwi r3,0 ffc2ef54: 41 82 00 30 beq- ffc2ef84 <_Timespec_Is_valid+0x34> return false; if ( time->tv_sec < 0 ) ffc2ef58: 80 03 00 00 lwz r0,0(r3) ffc2ef5c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ef60: 41 9c 00 24 blt- cr7,ffc2ef84 <_Timespec_Is_valid+0x34> return false; if ( time->tv_nsec < 0 ) ffc2ef64: 80 03 00 04 lwz r0,4(r3) #include #include #include bool _Timespec_Is_valid( ffc2ef68: 3c 60 3b 9a lis r3,15258 ffc2ef6c: 60 63 c9 ff ori r3,r3,51711 return false; if ( time->tv_sec < 0 ) return false; if ( time->tv_nsec < 0 ) ffc2ef70: 2f 80 00 00 cmpwi cr7,r0,0 #include #include #include bool _Timespec_Is_valid( ffc2ef74: 7c 60 18 10 subfc r3,r0,r3 ffc2ef78: 38 60 00 00 li r3,0 ffc2ef7c: 7c 63 19 14 adde r3,r3,r3 return false; if ( time->tv_sec < 0 ) return false; if ( time->tv_nsec < 0 ) ffc2ef80: 4c bc 00 20 bgelr+ cr7 #include #include #include bool _Timespec_Is_valid( ffc2ef84: 38 60 00 00 li r3,0 if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } ffc2ef88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc48ac8 <_Timespec_Less_than>: bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec < rhs->tv_sec ) ffc48ac8: 81 63 00 00 lwz r11,0(r3) bool _Timespec_Less_than( const struct timespec *lhs, const struct timespec *rhs ) { ffc48acc: 7c 69 1b 78 mr r9,r3 if ( lhs->tv_sec < rhs->tv_sec ) ffc48ad0: 80 04 00 00 lwz r0,0(r4) ffc48ad4: 38 60 00 01 li r3,1 ffc48ad8: 7f 8b 00 00 cmpw cr7,r11,r0 ffc48adc: 4d 9c 00 20 bltlr cr7 return true; if ( lhs->tv_sec > rhs->tv_sec ) ffc48ae0: 41 9d 00 1c bgt- cr7,ffc48afc <_Timespec_Less_than+0x34> #include #include #include bool _Timespec_Less_than( ffc48ae4: 81 29 00 04 lwz r9,4(r9) ffc48ae8: 80 04 00 04 lwz r0,4(r4) ffc48aec: 7f 89 00 00 cmpw cr7,r9,r0 ffc48af0: 7c 60 00 26 mfcr r3 ffc48af4: 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; } ffc48af8: 4e 80 00 20 blr <== ALWAYS TAKEN ) { if ( lhs->tv_sec < rhs->tv_sec ) return true; if ( lhs->tv_sec > rhs->tv_sec ) ffc48afc: 38 60 00 00 li r3,0 ffc48b00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c20c <_Timespec_Subtract>: const struct timespec *end, struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { ffc0c20c: 81 24 00 04 lwz r9,4(r4) ffc0c210: 80 03 00 04 lwz r0,4(r3) ffc0c214: 7f 89 00 00 cmpw cr7,r9,r0 ffc0c218: 41 9c 00 20 blt- cr7,ffc0c238 <_Timespec_Subtract+0x2c> 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; ffc0c21c: 81 44 00 00 lwz r10,0(r4) result->tv_nsec = end->tv_nsec - start->tv_nsec; ffc0c220: 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; ffc0c224: 81 63 00 00 lwz r11,0(r3) result->tv_nsec = end->tv_nsec - start->tv_nsec; ffc0c228: 90 05 00 04 stw r0,4(r5) 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; ffc0c22c: 7d 6b 50 50 subf r11,r11,r10 <== ALWAYS TAKEN ffc0c230: 91 65 00 00 stw r11,0(r5) <== ALWAYS TAKEN ffc0c234: 4e 80 00 20 blr <== ALWAYS TAKEN struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; ffc0c238: 81 64 00 00 lwz r11,0(r4) result->tv_nsec = ffc0c23c: 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; ffc0c240: 81 43 00 00 lwz r10,0(r3) result->tv_nsec = ffc0c244: 39 29 ca 00 addi r9,r9,-13824 struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; ffc0c248: 39 6b ff ff addi r11,r11,-1 ffc0c24c: 7d 6a 58 50 subf r11,r10,r11 result->tv_nsec = ffc0c250: 7c 00 48 50 subf r0,r0,r9 struct timespec *result ) { if (end->tv_nsec < start->tv_nsec) { result->tv_sec = end->tv_sec - start->tv_sec - 1; ffc0c254: 91 65 00 00 stw r11,0(r5) result->tv_nsec = ffc0c258: 90 05 00 04 stw r0,4(r5) ffc0c25c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10340 <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { ffc10340: 94 21 ff f0 stwu r1,-16(r1) ffc10344: 7c 08 02 a6 mflr r0 ffc10348: 90 01 00 14 stw r0,20(r1) ffc1034c: 93 c1 00 08 stw r30,8(r1) uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) ffc10350: 83 c3 00 00 lwz r30,0(r3) */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { ffc10354: 93 e1 00 0c stw r31,12(r1) ffc10358: 7c 7f 1b 78 mr r31,r3 uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) ffc1035c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc10360: 40 9e 00 14 bne- cr7,ffc10374 <_Timespec_To_ticks+0x34> ffc10364: 80 03 00 04 lwz r0,4(r3) ffc10368: 38 60 00 00 li r3,0 ffc1036c: 2f 80 00 00 cmpwi cr7,r0,0 ffc10370: 41 9e 00 28 beq- cr7,ffc10398 <_Timespec_To_ticks+0x58> return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; ffc10374: 48 00 21 09 bl ffc1247c <== ALWAYS TAKEN ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); ffc10378: 3d 20 00 00 lis r9,0 ffc1037c: 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; ffc10380: 7c 63 f1 d6 mullw r3,r3,r30 ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); ffc10384: 81 3f 00 04 lwz r9,4(r31) ffc10388: 1c 00 03 e8 mulli r0,r0,1000 ffc1038c: 7c 09 03 96 divwu r0,r9,r0 <== ALWAYS TAKEN if (ticks) ffc10390: 7c 63 02 15 add. r3,r3,r0 ffc10394: 41 82 00 1c beq- ffc103b0 <_Timespec_To_ticks+0x70> return ticks; return 1; } ffc10398: 80 01 00 14 lwz r0,20(r1) ffc1039c: 83 c1 00 08 lwz r30,8(r1) ffc103a0: 7c 08 03 a6 mtlr r0 ffc103a4: 83 e1 00 0c lwz r31,12(r1) ffc103a8: 38 21 00 10 addi r1,r1,16 ffc103ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc103b0: 80 01 00 14 lwz r0,20(r1) ticks = time->tv_sec * TOD_TICKS_PER_SECOND; ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); if (ticks) ffc103b4: 38 60 00 01 li r3,1 return ticks; return 1; } ffc103b8: 83 c1 00 08 lwz r30,8(r1) ffc103bc: 7c 08 03 a6 mtlr r0 ffc103c0: 83 e1 00 0c lwz r31,12(r1) ffc103c4: 38 21 00 10 addi r1,r1,16 ffc103c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc103cc <_User_extensions_Add_set>: #include void _User_extensions_Add_set( User_extensions_Control *the_extension ) { ffc103cc: 94 21 ff f0 stwu r1,-16(r1) ffc103d0: 7c 08 02 a6 mflr r0 ffc103d4: 93 e1 00 0c stw r31,12(r1) ffc103d8: 7c 7f 1b 78 mr r31,r3 _Chain_Append( &_User_extensions_List, &the_extension->Node ); ffc103dc: 3c 60 00 00 lis r3,0 ffc103e0: 38 63 2e 20 addi r3,r3,11808 #include void _User_extensions_Add_set( User_extensions_Control *the_extension ) { ffc103e4: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN _Chain_Append( &_User_extensions_List, &the_extension->Node ); ffc103e8: 7f e4 fb 78 mr r4,r31 ffc103ec: 4b ff 8f 79 bl ffc09364 <_Chain_Append> <== ALWAYS TAKEN /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { ffc103f0: 80 1f 00 24 lwz r0,36(r31) ffc103f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc103f8: 41 9e 00 18 beq- cr7,ffc10410 <_User_extensions_Add_set+0x44> the_extension->Switch.thread_switch = the_extension->Callouts.thread_switch; _Chain_Append( ffc103fc: 3c 60 00 00 lis r3,0 /* * If a switch handler is present, append it to the switch chain. */ if ( the_extension->Callouts.thread_switch != NULL ) { the_extension->Switch.thread_switch = ffc10400: 90 1f 00 10 stw r0,16(r31) the_extension->Callouts.thread_switch; _Chain_Append( ffc10404: 38 63 2c 94 addi r3,r3,11412 <== ALWAYS TAKEN ffc10408: 38 9f 00 08 addi r4,r31,8 ffc1040c: 4b ff 8f 59 bl ffc09364 <_Chain_Append> <== ALWAYS TAKEN &_User_extensions_Switches_list, &the_extension->Switch.Node ); } } ffc10410: 80 01 00 14 lwz r0,20(r1) ffc10414: 83 e1 00 0c lwz r31,12(r1) ffc10418: 38 21 00 10 addi r1,r1,16 ffc1041c: 7c 08 03 a6 mtlr r0 ffc10420: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c454 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc0c454: 94 21 ff e0 stwu r1,-32(r1) ffc0c458: 7c 08 02 a6 mflr r0 ffc0c45c: 93 c1 00 18 stw r30,24(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c460: 3f c0 00 00 lis r30,0 ffc0c464: 3b de 2e 20 addi r30,r30,11808 void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc0c468: 93 e1 00 1c stw r31,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c46c: 83 fe 00 08 lwz r31,8(r30) void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc0c470: 93 61 00 0c stw r27,12(r1) ffc0c474: 7c 7b 1b 78 mr r27,r3 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c478: 7f 9f f0 00 cmpw cr7,r31,r30 void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { ffc0c47c: 93 81 00 10 stw r28,16(r1) ffc0c480: 7c 9c 23 78 mr r28,r4 ffc0c484: 93 a1 00 14 stw r29,20(r1) ffc0c488: 7c bd 2b 78 mr r29,r5 ffc0c48c: 90 01 00 24 stw r0,36(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c490: 41 9e 00 30 beq- cr7,ffc0c4c0 <_User_extensions_Fatal+0x6c> <== NEVER 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 ) ffc0c494: 80 1f 00 30 lwz r0,48(r31) (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); ffc0c498: 7f 63 db 78 mr r3,r27 ffc0c49c: 7f 84 e3 78 mr r4,r28 !_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 ) ffc0c4a0: 2f 80 00 00 cmpwi cr7,r0,0 (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); ffc0c4a4: 7f a5 eb 78 mr r5,r29 !_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 ) ffc0c4a8: 41 9e 00 0c beq- cr7,ffc0c4b4 <_User_extensions_Fatal+0x60> (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); ffc0c4ac: 7c 09 03 a6 mtctr r0 ffc0c4b0: 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 ) { ffc0c4b4: 83 ff 00 04 lwz r31,4(r31) ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c4b8: 7f 9f f0 00 cmpw cr7,r31,r30 ffc0c4bc: 40 9e ff d8 bne+ cr7,ffc0c494 <_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 ); } } ffc0c4c0: 80 01 00 24 lwz r0,36(r1) ffc0c4c4: 83 61 00 0c lwz r27,12(r1) ffc0c4c8: 7c 08 03 a6 mtlr r0 ffc0c4cc: 83 81 00 10 lwz r28,16(r1) ffc0c4d0: 83 a1 00 14 lwz r29,20(r1) ffc0c4d4: 83 c1 00 18 lwz r30,24(r1) ffc0c4d8: 83 e1 00 1c lwz r31,28(r1) ffc0c4dc: 38 21 00 20 addi r1,r1,32 ffc0c4e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c260 <_User_extensions_Handler_initialization>: #include #include #include void _User_extensions_Handler_initialization(void) { ffc0c260: 94 21 ff e8 stwu r1,-24(r1) ffc0c264: 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; ffc0c268: 3d 40 00 00 lis r10,0 <== ALWAYS TAKEN #include #include #include void _User_extensions_Handler_initialization(void) { ffc0c26c: 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; ffc0c270: 39 4a 20 a0 addi r10,r10,8352 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0c274: 3c e0 00 00 lis r7,0 #include #include #include void _User_extensions_Handler_initialization(void) { ffc0c278: 93 a1 00 0c stw r29,12(r1) ffc0c27c: 3d 00 00 00 lis r8,0 ffc0c280: 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; ffc0c284: 83 aa 00 3c lwz r29,60(r10) ffc0c288: 39 68 2c 94 addi r11,r8,11412 the_chain->permanent_null = NULL; ffc0c28c: 38 00 00 00 li r0,0 #include #include #include void _User_extensions_Handler_initialization(void) { ffc0c290: 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 ) { ffc0c294: 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); ffc0c298: 38 a9 00 04 addi r5,r9,4 #include #include #include void _User_extensions_Handler_initialization(void) { ffc0c29c: 93 81 00 08 stw r28,8(r1) ffc0c2a0: 38 cb 00 04 addi r6,r11,4 <== ALWAYS TAKEN ffc0c2a4: 93 e1 00 14 stw r31,20(r1) ffc0c2a8: 90 a7 2e 20 stw r5,11808(r7) ffc0c2ac: 90 c8 2c 94 stw r6,11412(r8) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0c2b0: 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; ffc0c2b4: 90 0b 00 04 stw r0,4(r11) the_chain->last = _Chain_Head(the_chain); ffc0c2b8: 91 6b 00 08 stw r11,8(r11) RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; ffc0c2bc: 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; ffc0c2c0: 83 ca 00 38 lwz r30,56(r10) <== ALWAYS TAKEN initial_extensions = Configuration.User_extension_table; _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { ffc0c2c4: 41 9e 00 8c beq- cr7,ffc0c350 <_User_extensions_Handler_initialization+0xf0> extension = (User_extensions_Control *) _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ffc0c2c8: 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 *) ffc0c2cc: 7f 83 e3 78 mr r3,r28 ffc0c2d0: 48 00 07 a1 bl ffc0ca70 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( ffc0c2d4: 7f 85 e3 78 mr r5,r28 ffc0c2d8: 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 *) ffc0c2dc: 7c 7f 1b 78 mr r31,r3 _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( ffc0c2e0: 48 00 7d 81 bl ffc14060 <== ALWAYS TAKEN extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { ffc0c2e4: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0c2e8: 41 9e 00 68 beq- cr7,ffc0c350 <_User_extensions_Handler_initialization+0xf0> <== NEVER TAKEN ffc0c2ec: 3b 80 00 00 li r28,0 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; ffc0c2f0: 7f a9 eb 78 mr r9,r29 ffc0c2f4: 57 80 28 34 rlwinm r0,r28,5,0,26 ffc0c2f8: 7d 09 00 6e lwzux r8,r9,r0 _User_extensions_Add_set( extension ); ffc0c2fc: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc0c300: 3b 9c 00 01 addi r28,r28,1 <== 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; ffc0c304: 81 49 00 04 lwz r10,4(r9) ffc0c308: 81 69 00 08 lwz r11,8(r9) ffc0c30c: 80 09 00 0c lwz r0,12(r9) ffc0c310: 91 1f 00 14 stw r8,20(r31) ffc0c314: 91 5f 00 18 stw r10,24(r31) ffc0c318: 91 7f 00 1c stw r11,28(r31) ffc0c31c: 90 1f 00 20 stw r0,32(r31) ffc0c320: 80 09 00 1c lwz r0,28(r9) ffc0c324: 81 49 00 10 lwz r10,16(r9) ffc0c328: 81 69 00 14 lwz r11,20(r9) ffc0c32c: 81 29 00 18 lwz r9,24(r9) ffc0c330: 91 5f 00 24 stw r10,36(r31) ffc0c334: 91 7f 00 28 stw r11,40(r31) ffc0c338: 91 3f 00 2c stw r9,44(r31) ffc0c33c: 90 1f 00 30 stw r0,48(r31) _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; ffc0c340: 3b ff 00 34 addi r31,r31,52 _User_extensions_Add_set( extension ); ffc0c344: 48 00 40 89 bl ffc103cc <_User_extensions_Add_set> <== ALWAYS TAKEN extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { ffc0c348: 7f 9e e0 40 cmplw cr7,r30,r28 ffc0c34c: 41 9d ff a4 bgt+ cr7,ffc0c2f0 <_User_extensions_Handler_initialization+0x90> _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; } } } ffc0c350: 80 01 00 1c lwz r0,28(r1) ffc0c354: 83 81 00 08 lwz r28,8(r1) ffc0c358: 7c 08 03 a6 mtlr r0 ffc0c35c: 83 a1 00 0c lwz r29,12(r1) ffc0c360: 83 c1 00 10 lwz r30,16(r1) ffc0c364: 83 e1 00 14 lwz r31,20(r1) ffc0c368: 38 21 00 18 addi r1,r1,24 ffc0c36c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12c18 <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { ffc12c18: 94 21 ff f0 stwu r1,-16(r1) ffc12c1c: 7c 08 02 a6 mflr r0 ffc12c20: 93 e1 00 0c stw r31,12(r1) ffc12c24: 7c 7f 1b 78 mr r31,r3 ffc12c28: 90 01 00 14 stw r0,20(r1) _Chain_Extract( &the_extension->Node ); ffc12c2c: 48 00 6e d1 bl ffc19afc <_Chain_Extract> <== ALWAYS TAKEN /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) ffc12c30: 80 1f 00 24 lwz r0,36(r31) ffc12c34: 2f 80 00 00 cmpwi cr7,r0,0 ffc12c38: 41 9e 00 0c beq- cr7,ffc12c44 <_User_extensions_Remove_set+0x2c> _Chain_Extract( &the_extension->Switch.Node ); ffc12c3c: 38 7f 00 08 addi r3,r31,8 ffc12c40: 48 00 6e bd bl ffc19afc <_Chain_Extract> <== ALWAYS TAKEN } ffc12c44: 80 01 00 14 lwz r0,20(r1) ffc12c48: 83 e1 00 0c lwz r31,12(r1) ffc12c4c: 38 21 00 10 addi r1,r1,16 ffc12c50: 7c 08 03 a6 mtlr r0 ffc12c54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c370 <_User_extensions_Thread_begin>: #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { ffc0c370: 94 21 ff e8 stwu r1,-24(r1) ffc0c374: 7c 08 02 a6 mflr r0 ffc0c378: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c37c: 3f c0 00 00 lis r30,0 #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { ffc0c380: 93 e1 00 14 stw r31,20(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c384: 83 fe 2e 20 lwz r31,11808(r30) ffc0c388: 3b de 2e 20 addi r30,r30,11808 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0c38c: 3b de 00 04 addi r30,r30,4 #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { ffc0c390: 93 a1 00 0c stw r29,12(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c394: 7f 9f f0 00 cmpw cr7,r31,r30 <== ALWAYS TAKEN #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { ffc0c398: 90 01 00 1c stw r0,28(r1) ffc0c39c: 7c 7d 1b 78 mr r29,r3 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c3a0: 41 9e 00 28 beq- cr7,ffc0c3c8 <_User_extensions_Thread_begin+0x58> <== NEVER 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 ) ffc0c3a4: 80 1f 00 28 lwz r0,40(r31) <== ALWAYS TAKEN (*the_extension->Callouts.thread_begin)( executing ); ffc0c3a8: 7f a3 eb 78 mr r3,r29 !_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 ) ffc0c3ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c3b0: 41 9e 00 0c beq- cr7,ffc0c3bc <_User_extensions_Thread_begin+0x4c> (*the_extension->Callouts.thread_begin)( executing ); ffc0c3b4: 7c 09 03 a6 mtctr r0 ffc0c3b8: 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 ) { ffc0c3bc: 83 ff 00 00 lwz r31,0(r31) ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c3c0: 7f 9f f0 00 cmpw cr7,r31,r30 <== ALWAYS TAKEN ffc0c3c4: 40 9e ff e0 bne+ cr7,ffc0c3a4 <_User_extensions_Thread_begin+0x34> the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_begin != NULL ) (*the_extension->Callouts.thread_begin)( executing ); } } ffc0c3c8: 80 01 00 1c lwz r0,28(r1) ffc0c3cc: 83 a1 00 0c lwz r29,12(r1) ffc0c3d0: 7c 08 03 a6 mtlr r0 ffc0c3d4: 83 c1 00 10 lwz r30,16(r1) ffc0c3d8: 83 e1 00 14 lwz r31,20(r1) ffc0c3dc: 38 21 00 18 addi r1,r1,24 ffc0c3e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c4e4 <_User_extensions_Thread_create>: #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { ffc0c4e4: 94 21 ff e8 stwu r1,-24(r1) ffc0c4e8: 7c 08 02 a6 mflr r0 ffc0c4ec: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; ffc0c4f0: 3f c0 00 00 lis r30,0 #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { ffc0c4f4: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; ffc0c4f8: 83 fe 2e 20 lwz r31,11808(r30) ffc0c4fc: 3b de 2e 20 addi r30,r30,11808 ffc0c500: 3b de 00 04 addi r30,r30,4 #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { ffc0c504: 93 a1 00 0c stw r29,12(r1) Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; ffc0c508: 7f 9f f0 00 cmpw cr7,r31,r30 #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { ffc0c50c: 90 01 00 1c stw r0,28(r1) ffc0c510: 7c 7d 1b 78 mr r29,r3 ffc0c514: 93 81 00 08 stw r28,8(r1) <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; ffc0c518: 41 9e 00 3c beq- cr7,ffc0c554 <_User_extensions_Thread_create+0x70> <== NEVER TAKEN 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)( ffc0c51c: 3f 80 00 00 lis r28,0 <== ALWAYS TAKEN ffc0c520: 3b 9c 27 b0 addi r28,r28,10160 !_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 ) { ffc0c524: 80 1f 00 14 lwz r0,20(r31) status = (*the_extension->Callouts.thread_create)( ffc0c528: 7f a4 eb 78 mr r4,r29 !_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 ) { ffc0c52c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c530: 41 9e 00 18 beq- cr7,ffc0c548 <_User_extensions_Thread_create+0x64> status = (*the_extension->Callouts.thread_create)( ffc0c534: 80 7c 00 00 lwz r3,0(r28) ffc0c538: 7c 09 03 a6 mtctr r0 ffc0c53c: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Thread_Executing, the_thread ); if ( !status ) ffc0c540: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc0c544: 41 9e 00 14 beq- cr7,ffc0c558 <_User_extensions_Thread_create+0x74> 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 ) { ffc0c548: 83 ff 00 00 lwz r31,0(r31) { Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; ffc0c54c: 7f 9f f0 00 cmpw cr7,r31,r30 ffc0c550: 40 9e ff d4 bne+ cr7,ffc0c524 <_User_extensions_Thread_create+0x40> ffc0c554: 38 60 00 01 li r3,1 return false; } } return true; } ffc0c558: 80 01 00 1c lwz r0,28(r1) ffc0c55c: 83 81 00 08 lwz r28,8(r1) <== ALWAYS TAKEN ffc0c560: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0c564: 83 a1 00 0c lwz r29,12(r1) ffc0c568: 83 c1 00 10 lwz r30,16(r1) ffc0c56c: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc0c570: 38 21 00 18 addi r1,r1,24 ffc0c574: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c578 <_User_extensions_Thread_delete>: #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0c578: 94 21 ff e8 stwu r1,-24(r1) ffc0c57c: 7c 08 02 a6 mflr r0 ffc0c580: 93 c1 00 10 stw r30,16(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c584: 3f c0 00 00 lis r30,0 ffc0c588: 3b de 2e 20 addi r30,r30,11808 #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0c58c: 93 e1 00 14 stw r31,20(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c590: 83 fe 00 08 lwz r31,8(r30) #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0c594: 93 a1 00 0c stw r29,12(r1) ffc0c598: 7c 7d 1b 78 mr r29,r3 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c59c: 7f 9f f0 00 cmpw cr7,r31,r30 #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { ffc0c5a0: 90 01 00 1c stw r0,28(r1) ffc0c5a4: 93 81 00 08 stw r28,8(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c5a8: 41 9e 00 34 beq- cr7,ffc0c5dc <_User_extensions_Thread_delete+0x64> <== NEVER TAKEN the_node = the_node->previous ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_delete != NULL ) (*the_extension->Callouts.thread_delete)( ffc0c5ac: 3f 80 00 00 lis r28,0 ffc0c5b0: 3b 9c 27 b0 addi r28,r28,10160 !_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 ) ffc0c5b4: 80 1f 00 20 lwz r0,32(r31) (*the_extension->Callouts.thread_delete)( ffc0c5b8: 7f a4 eb 78 mr r4,r29 !_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 ) ffc0c5bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c5c0: 41 9e 00 10 beq- cr7,ffc0c5d0 <_User_extensions_Thread_delete+0x58> (*the_extension->Callouts.thread_delete)( ffc0c5c4: 80 7c 00 00 lwz r3,0(r28) ffc0c5c8: 7c 09 03 a6 mtctr r0 <== ALWAYS TAKEN ffc0c5cc: 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 ) { ffc0c5d0: 83 ff 00 04 lwz r31,4(r31) ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c5d4: 7f 9f f0 00 cmpw cr7,r31,r30 ffc0c5d8: 40 9e ff dc bne+ cr7,ffc0c5b4 <_User_extensions_Thread_delete+0x3c> (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } ffc0c5dc: 80 01 00 1c lwz r0,28(r1) ffc0c5e0: 83 81 00 08 lwz r28,8(r1) ffc0c5e4: 7c 08 03 a6 mtlr r0 ffc0c5e8: 83 a1 00 0c lwz r29,12(r1) ffc0c5ec: 83 c1 00 10 lwz r30,16(r1) ffc0c5f0: 83 e1 00 14 lwz r31,20(r1) ffc0c5f4: 38 21 00 18 addi r1,r1,24 ffc0c5f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c3e4 <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) { ffc0c3e4: 94 21 ff e8 stwu r1,-24(r1) ffc0c3e8: 7c 08 02 a6 mflr r0 ffc0c3ec: 93 c1 00 10 stw r30,16(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c3f0: 3f c0 00 00 lis r30,0 ffc0c3f4: 3b de 2e 20 addi r30,r30,11808 } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { ffc0c3f8: 93 e1 00 14 stw r31,20(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c3fc: 83 fe 00 08 lwz r31,8(r30) } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { ffc0c400: 93 a1 00 0c stw r29,12(r1) ffc0c404: 7c 7d 1b 78 mr r29,r3 Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c408: 7f 9f f0 00 cmpw cr7,r31,r30 } void _User_extensions_Thread_exitted ( Thread_Control *executing ) { ffc0c40c: 90 01 00 1c stw r0,28(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c410: 41 9e 00 28 beq- cr7,ffc0c438 <_User_extensions_Thread_exitted+0x54> <== NEVER 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 ) ffc0c414: 80 1f 00 2c lwz r0,44(r31) (*the_extension->Callouts.thread_exitted)( executing ); ffc0c418: 7f a3 eb 78 mr r3,r29 !_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 ) ffc0c41c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c420: 41 9e 00 0c beq- cr7,ffc0c42c <_User_extensions_Thread_exitted+0x48> (*the_extension->Callouts.thread_exitted)( executing ); ffc0c424: 7c 09 03 a6 mtctr r0 ffc0c428: 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 ) { ffc0c42c: 83 ff 00 04 lwz r31,4(r31) ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; ffc0c430: 7f 9f f0 00 cmpw cr7,r31,r30 ffc0c434: 40 9e ff e0 bne+ cr7,ffc0c414 <_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 ); } } ffc0c438: 80 01 00 1c lwz r0,28(r1) ffc0c43c: 83 a1 00 0c lwz r29,12(r1) ffc0c440: 7c 08 03 a6 mtlr r0 ffc0c444: 83 c1 00 10 lwz r30,16(r1) ffc0c448: 83 e1 00 14 lwz r31,20(r1) ffc0c44c: 38 21 00 18 addi r1,r1,24 ffc0c450: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d6ec <_User_extensions_Thread_restart>: #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { ffc0d6ec: 94 21 ff e8 stwu r1,-24(r1) ffc0d6f0: 7c 08 02 a6 mflr r0 ffc0d6f4: 93 c1 00 10 stw r30,16(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0d6f8: 3f c0 00 00 lis r30,0 #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { ffc0d6fc: 93 e1 00 14 stw r31,20(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0d700: 83 fe 2e 80 lwz r31,11904(r30) ffc0d704: 3b de 2e 80 addi r30,r30,11904 ffc0d708: 3b de 00 04 addi r30,r30,4 #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { ffc0d70c: 93 a1 00 0c stw r29,12(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0d710: 7f 9f f0 00 cmpw cr7,r31,r30 #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { ffc0d714: 90 01 00 1c stw r0,28(r1) ffc0d718: 7c 7d 1b 78 mr r29,r3 ffc0d71c: 93 81 00 08 stw r28,8(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0d720: 41 9e 00 34 beq- cr7,ffc0d754 <_User_extensions_Thread_restart+0x68> <== NEVER TAKEN the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_restart != NULL ) (*the_extension->Callouts.thread_restart)( ffc0d724: 3f 80 00 00 lis r28,0 ffc0d728: 3b 9c 27 fc addi r28,r28,10236 !_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 ) ffc0d72c: 80 1f 00 1c lwz r0,28(r31) (*the_extension->Callouts.thread_restart)( ffc0d730: 7f a4 eb 78 mr r4,r29 !_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 ) ffc0d734: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d738: 41 9e 00 10 beq- cr7,ffc0d748 <_User_extensions_Thread_restart+0x5c> (*the_extension->Callouts.thread_restart)( ffc0d73c: 80 7c 00 00 lwz r3,0(r28) ffc0d740: 7c 09 03 a6 mtctr r0 ffc0d744: 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 ) { ffc0d748: 83 ff 00 00 lwz r31,0(r31) ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0d74c: 7f 9f f0 00 cmpw cr7,r31,r30 ffc0d750: 40 9e ff dc bne+ cr7,ffc0d72c <_User_extensions_Thread_restart+0x40> (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } ffc0d754: 80 01 00 1c lwz r0,28(r1) ffc0d758: 83 81 00 08 lwz r28,8(r1) ffc0d75c: 7c 08 03 a6 mtlr r0 ffc0d760: 83 a1 00 0c lwz r29,12(r1) ffc0d764: 83 c1 00 10 lwz r30,16(r1) ffc0d768: 83 e1 00 14 lwz r31,20(r1) ffc0d76c: 38 21 00 18 addi r1,r1,24 ffc0d770: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c5fc <_User_extensions_Thread_start>: #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { ffc0c5fc: 94 21 ff e8 stwu r1,-24(r1) ffc0c600: 7c 08 02 a6 mflr r0 ffc0c604: 93 c1 00 10 stw r30,16(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c608: 3f c0 00 00 lis r30,0 #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { ffc0c60c: 93 e1 00 14 stw r31,20(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c610: 83 fe 2e 20 lwz r31,11808(r30) ffc0c614: 3b de 2e 20 addi r30,r30,11808 ffc0c618: 3b de 00 04 addi r30,r30,4 #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { ffc0c61c: 93 a1 00 0c stw r29,12(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c620: 7f 9f f0 00 cmpw cr7,r31,r30 #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { ffc0c624: 90 01 00 1c stw r0,28(r1) <== ALWAYS TAKEN ffc0c628: 7c 7d 1b 78 mr r29,r3 ffc0c62c: 93 81 00 08 stw r28,8(r1) Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c630: 41 9e 00 34 beq- cr7,ffc0c664 <_User_extensions_Thread_start+0x68> <== NEVER TAKEN the_node = the_node->next ) { the_extension = (User_extensions_Control *) the_node; if ( the_extension->Callouts.thread_start != NULL ) (*the_extension->Callouts.thread_start)( ffc0c634: 3f 80 00 00 lis r28,0 ffc0c638: 3b 9c 27 b0 addi r28,r28,10160 !_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 ) ffc0c63c: 80 1f 00 18 lwz r0,24(r31) (*the_extension->Callouts.thread_start)( ffc0c640: 7f a4 eb 78 mr r4,r29 !_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 ) ffc0c644: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c648: 41 9e 00 10 beq- cr7,ffc0c658 <_User_extensions_Thread_start+0x5c> (*the_extension->Callouts.thread_start)( ffc0c64c: 80 7c 00 00 lwz r3,0(r28) ffc0c650: 7c 09 03 a6 mtctr r0 ffc0c654: 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 ) { ffc0c658: 83 ff 00 00 lwz r31,0(r31) ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; ffc0c65c: 7f 9f f0 00 cmpw cr7,r31,r30 ffc0c660: 40 9e ff dc bne+ cr7,ffc0c63c <_User_extensions_Thread_start+0x40> (*the_extension->Callouts.thread_start)( _Thread_Executing, the_thread ); } } ffc0c664: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc0c668: 83 81 00 08 lwz r28,8(r1) ffc0c66c: 7c 08 03 a6 mtlr r0 ffc0c670: 83 a1 00 0c lwz r29,12(r1) ffc0c674: 83 c1 00 10 lwz r30,16(r1) ffc0c678: 83 e1 00 14 lwz r31,20(r1) ffc0c67c: 38 21 00 18 addi r1,r1,24 ffc0c680: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c684 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { ffc0c684: 94 21 ff e8 stwu r1,-24(r1) ffc0c688: 7c 08 02 a6 mflr r0 ffc0c68c: 93 c1 00 10 stw r30,16(r1) Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; ffc0c690: 3f c0 00 00 lis r30,0 void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { ffc0c694: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; ffc0c698: 83 fe 2c 94 lwz r31,11412(r30) <== ALWAYS TAKEN ffc0c69c: 3b de 2c 94 addi r30,r30,11412 ffc0c6a0: 3b de 00 04 addi r30,r30,4 void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { ffc0c6a4: 93 81 00 08 stw r28,8(r1) Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; ffc0c6a8: 7f 9f f0 00 cmpw cr7,r31,r30 void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { ffc0c6ac: 93 a1 00 0c stw r29,12(r1) ffc0c6b0: 7c 7c 1b 78 mr r28,r3 ffc0c6b4: 7c 9d 23 78 mr r29,r4 ffc0c6b8: 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 ; ffc0c6bc: 41 9e 00 24 beq- cr7,ffc0c6e0 <_User_extensions_Thread_switch+0x5c> <== NEVER 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 ); ffc0c6c0: 80 1f 00 08 lwz r0,8(r31) <== ALWAYS TAKEN ffc0c6c4: 7f 83 e3 78 mr r3,r28 ffc0c6c8: 7f a4 eb 78 mr r4,r29 <== ALWAYS TAKEN ffc0c6cc: 7c 09 03 a6 mtctr r0 ffc0c6d0: 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 ) { ffc0c6d4: 83 ff 00 00 lwz r31,0(r31) ) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; ffc0c6d8: 7f 9f f0 00 cmpw cr7,r31,r30 ffc0c6dc: 40 9e ff e4 bne+ cr7,ffc0c6c0 <_User_extensions_Thread_switch+0x3c> the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } ffc0c6e0: 80 01 00 1c lwz r0,28(r1) ffc0c6e4: 83 81 00 08 lwz r28,8(r1) ffc0c6e8: 7c 08 03 a6 mtlr r0 ffc0c6ec: 83 a1 00 0c lwz r29,12(r1) ffc0c6f0: 83 c1 00 10 lwz r30,16(r1) ffc0c6f4: 83 e1 00 14 lwz r31,20(r1) ffc0c6f8: 38 21 00 18 addi r1,r1,24 ffc0c6fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ecf4 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { ffc0ecf4: 94 21 ff e0 stwu r1,-32(r1) ffc0ecf8: 7c 08 02 a6 mflr r0 ffc0ecfc: 90 01 00 24 stw r0,36(r1) ffc0ed00: 93 c1 00 18 stw r30,24(r1) ffc0ed04: 7c be 2b 78 mr r30,r5 ffc0ed08: 93 e1 00 1c stw r31,28(r1) ffc0ed0c: 7c 7f 1b 78 mr r31,r3 ffc0ed10: 93 61 00 0c stw r27,12(r1) ffc0ed14: 93 81 00 10 stw r28,16(r1) ffc0ed18: 93 a1 00 14 stw r29,20(r1) 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 30 42 a6 mfsprg r9,0 ffc0ed24: 7c 09 48 78 andc r9,r0,r9 ffc0ed28: 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)); ffc0ed2c: 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; ffc0ed30: 3b 83 00 04 addi r28,r3,4 <== ALWAYS TAKEN * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { ffc0ed34: 7f 89 e0 00 cmpw cr7,r9,r28 ffc0ed38: 41 9e 00 6c beq- cr7,ffc0eda4 <_Watchdog_Adjust+0xb0> switch ( direction ) { ffc0ed3c: 2f 84 00 00 cmpwi cr7,r4,0 ffc0ed40: 40 9e 00 8c bne- cr7,ffc0edcc <_Watchdog_Adjust+0xd8> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { ffc0ed44: 2f 85 00 00 cmpwi cr7,r5,0 ffc0ed48: 41 9e 00 5c beq- cr7,ffc0eda4 <_Watchdog_Adjust+0xb0> <== NEVER TAKEN if ( units < _Watchdog_First( header )->delta_interval ) { ffc0ed4c: 83 a9 00 10 lwz r29,16(r9) _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; ffc0ed50: 3b 60 00 01 li r27,1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { ffc0ed54: 7f 85 e8 40 cmplw cr7,r5,r29 ffc0ed58: 40 bc 00 18 bge+ cr7,ffc0ed70 <_Watchdog_Adjust+0x7c> <== ALWAYS TAKEN ffc0ed5c: 48 00 00 ac b ffc0ee08 <_Watchdog_Adjust+0x114> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { ffc0ed60: 41 82 00 44 beq- ffc0eda4 <_Watchdog_Adjust+0xb0> <== NEVER TAKEN if ( units < _Watchdog_First( header )->delta_interval ) { ffc0ed64: 83 a9 00 10 lwz r29,16(r9) ffc0ed68: 7f 9d f0 40 cmplw cr7,r29,r30 ffc0ed6c: 41 9d 00 9c bgt- cr7,ffc0ee08 <_Watchdog_Adjust+0x114> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; ffc0ed70: 93 69 00 10 stw r27,16(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ed74: 7c 00 01 24 mtmsr r0 _ISR_Enable( level ); _Watchdog_Tickle( header ); ffc0ed78: 7f e3 fb 78 mr r3,r31 ffc0ed7c: 48 00 03 31 bl ffc0f0ac <_Watchdog_Tickle> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ed80: 7c 00 00 a6 mfmsr r0 ffc0ed84: 7d 30 42 a6 mfsprg r9,0 ffc0ed88: 7c 09 48 78 andc r9,r0,r9 ffc0ed8c: 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)); ffc0ed90: 81 7f 00 00 lwz r11,0(r31) switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { ffc0ed94: 7f dd f0 51 subf. r30,r29,r30 _Watchdog_Tickle( header ); _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) ffc0ed98: 7f 9c 58 00 cmpw cr7,r28,r11 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); ffc0ed9c: 7d 69 5b 78 mr r9,r11 ffc0eda0: 40 9e ff c0 bne+ cr7,ffc0ed60 <_Watchdog_Adjust+0x6c> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0eda4: 7c 00 01 24 mtmsr r0 } } _ISR_Enable( level ); } ffc0eda8: 80 01 00 24 lwz r0,36(r1) ffc0edac: 83 61 00 0c lwz r27,12(r1) ffc0edb0: 7c 08 03 a6 mtlr r0 ffc0edb4: 83 81 00 10 lwz r28,16(r1) ffc0edb8: 83 a1 00 14 lwz r29,20(r1) ffc0edbc: 83 c1 00 18 lwz r30,24(r1) ffc0edc0: 83 e1 00 1c lwz r31,28(r1) ffc0edc4: 38 21 00 20 addi r1,r1,32 ffc0edc8: 4e 80 00 20 blr <== ALWAYS TAKEN * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { ffc0edcc: 2f 84 00 01 cmpwi cr7,r4,1 ffc0edd0: 40 9e ff d4 bne+ cr7,ffc0eda4 <_Watchdog_Adjust+0xb0> <== NEVER TAKEN case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; ffc0edd4: 81 69 00 10 lwz r11,16(r9) ffc0edd8: 7f cb 2a 14 add r30,r11,r5 ffc0eddc: 93 c9 00 10 stw r30,16(r9) ffc0ede0: 7c 00 01 24 mtmsr r0 } } _ISR_Enable( level ); } ffc0ede4: 80 01 00 24 lwz r0,36(r1) ffc0ede8: 83 61 00 0c lwz r27,12(r1) ffc0edec: 7c 08 03 a6 mtlr r0 ffc0edf0: 83 81 00 10 lwz r28,16(r1) ffc0edf4: 83 a1 00 14 lwz r29,20(r1) ffc0edf8: 83 c1 00 18 lwz r30,24(r1) ffc0edfc: 83 e1 00 1c lwz r31,28(r1) ffc0ee00: 38 21 00 20 addi r1,r1,32 ffc0ee04: 4e 80 00 20 blr <== ALWAYS TAKEN _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; ffc0ee08: 7f de e8 50 subf r30,r30,r29 ffc0ee0c: 93 c9 00 10 stw r30,16(r9) break; ffc0ee10: 4b ff ff 94 b ffc0eda4 <_Watchdog_Adjust+0xb0> <== ALWAYS TAKEN ffc207d4 <_Watchdog_Adjust_to_chain>: { Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { ffc207d4: 2c 04 00 00 cmpwi r4,0 ffc207d8: 4d 82 00 20 beqlr static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc207dc: 7c e0 00 a6 mfmsr r7 ffc207e0: 7c 10 42 a6 mfsprg r0,0 ffc207e4: 7c e0 00 78 andc r0,r7,r0 ffc207e8: 7c 00 01 24 mtmsr r0 return; } _ISR_Disable( level ); ffc207ec: 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; ffc207f0: 39 03 00 04 addi r8,r3,4 ffc207f4: 38 c5 00 04 addi r6,r5,4 /* * 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; ffc207f8: 39 80 00 00 li r12,0 while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) { ffc207fc: 7f 88 48 00 cmpw cr7,r8,r9 ffc20800: 41 9e 00 68 beq- cr7,ffc20868 <_Watchdog_Adjust_to_chain+0x94> /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { ffc20804: 80 09 00 10 lwz r0,16(r9) ffc20808: 7f 80 20 40 cmplw cr7,r0,r4 ffc2080c: 41 9d 00 74 bgt- cr7,ffc20880 <_Watchdog_Adjust_to_chain+0xac> /* * 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; ffc20810: 91 89 00 10 stw r12,16(r9) /* * 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; ffc20814: 7c 80 20 50 subf r4,r0,r4 ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc20818: 81 69 00 00 lwz r11,0(r9) previous = the_node->previous; ffc2081c: 81 49 00 04 lwz r10,4(r9) next->previous = previous; previous->next = next; ffc20820: 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; ffc20824: 91 4b 00 04 stw r10,4(r11) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); ffc20828: 90 c9 00 00 stw r6,0(r9) old_last_node = the_chain->last; ffc2082c: 81 65 00 08 lwz r11,8(r5) the_chain->last = the_node; ffc20830: 91 25 00 08 stw r9,8(r5) old_last_node->next = the_node; the_node->previous = old_last_node; ffc20834: 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; ffc20838: 91 2b 00 00 stw r9,0(r11) static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc2083c: 7c 00 00 a6 mfmsr r0 ffc20840: 7c e0 01 24 mtmsr r7 ffc20844: 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)); ffc20848: 81 23 00 00 lwz r9,0(r3) _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); if ( _Chain_Is_empty( header ) ) ffc2084c: 7f 88 48 00 cmpw cr7,r8,r9 ffc20850: 41 9e 00 20 beq- cr7,ffc20870 <_Watchdog_Adjust_to_chain+0x9c> break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) ffc20854: 80 09 00 10 lwz r0,16(r9) ffc20858: 2f 80 00 00 cmpwi cr7,r0,0 ffc2085c: 41 9e ff bc beq+ cr7,ffc20818 <_Watchdog_Adjust_to_chain+0x44> } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { ffc20860: 2f 84 00 00 cmpwi cr7,r4,0 ffc20864: 40 9e ff 98 bne+ cr7,ffc207fc <_Watchdog_Adjust_to_chain+0x28> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc20868: 7c e0 01 24 mtmsr r7 ffc2086c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc20870: 2f 84 00 00 cmpwi cr7,r4,0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc20874: 7d 09 43 78 mr r9,r8 ffc20878: 40 9e ff 84 bne+ cr7,ffc207fc <_Watchdog_Adjust_to_chain+0x28> ffc2087c: 4b ff ff ec b ffc20868 <_Watchdog_Adjust_to_chain+0x94> <== ALWAYS TAKEN /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { first->delta_interval -= units; ffc20880: 7c 04 00 50 subf r0,r4,r0 ffc20884: 90 09 00 10 stw r0,16(r9) ffc20888: 7c e0 01 24 mtmsr r7 ffc2088c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c878 <_Watchdog_Handler_initialization>: */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0c878: 3d 40 00 00 lis r10,0 ffc0c87c: 39 6a 2d 3c addi r11,r10,11580 ffc0c880: 38 eb 00 04 addi r7,r11,4 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0c884: 91 6b 00 08 stw r11,8(r11) * Output parameters: NONE */ void _Watchdog_Handler_initialization( void ) { _Watchdog_Sync_count = 0; ffc0c888: 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); ffc0c88c: 3d 00 00 00 lis r8,0 ffc0c890: 90 ea 2d 3c stw r7,11580(r10) ffc0c894: 3d 40 00 00 lis r10,0 ffc0c898: 39 28 2d 48 addi r9,r8,11592 <== ALWAYS TAKEN ffc0c89c: 90 0a 27 c4 stw r0,10180(r10) _Watchdog_Sync_level = 0; ffc0c8a0: 3d 40 00 00 lis r10,0 <== ALWAYS TAKEN ffc0c8a4: 90 0a 27 ac stw r0,10156(r10) ffc0c8a8: 38 c9 00 04 addi r6,r9,4 _Watchdog_Ticks_since_boot = 0; ffc0c8ac: 3d 40 00 00 lis r10,0 ffc0c8b0: 90 c8 2d 48 stw r6,11592(r8) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc0c8b4: 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; ffc0c8b8: 90 0b 00 04 stw r0,4(r11) ffc0c8bc: 90 0a 27 c8 stw r0,10184(r10) ffc0c8c0: 90 09 00 04 stw r0,4(r9) _Chain_Initialize_empty( &_Watchdog_Ticks_chain ); _Chain_Initialize_empty( &_Watchdog_Seconds_chain ); } ffc0c8c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c700 <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level; ffc0c700: 3d 20 00 00 lis r9,0 ffc0c704: 80 09 27 98 lwz r0,10136(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0c708: 7c e0 00 a6 mfmsr r7 ffc0c70c: 7d 30 42 a6 mfsprg r9,0 ffc0c710: 7c e9 48 78 andc r9,r7,r9 ffc0c714: 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 ) { ffc0c718: 81 24 00 08 lwz r9,8(r4) ffc0c71c: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc0c720: 40 9e 01 0c bne- cr7,ffc0c82c <_Watchdog_Insert+0x12c> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; ffc0c724: 3c a0 00 00 lis r5,0 ffc0c728: 81 25 27 c4 lwz r9,10180(r5) if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; ffc0c72c: 39 60 00 01 li r11,1 ffc0c730: 3d 80 00 00 lis r12,0 ffc0c734: 91 64 00 08 stw r11,8(r4) _Watchdog_Sync_count++; ffc0c738: 39 29 00 01 addi r9,r9,1 ffc0c73c: 91 25 27 c4 stw r9,10180(r5) if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { ffc0c740: 38 cc 27 ac addi r6,r12,10156 <== ALWAYS TAKEN the_watchdog->state = WATCHDOG_BEING_INSERTED; _Watchdog_Sync_count++; restart: delta_interval = the_watchdog->initial; ffc0c744: 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 ; ffc0c748: 81 63 00 00 lwz r11,0(r3) ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) ffc0c74c: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc0c750: 41 9e 00 94 beq- cr7,ffc0c7e4 <_Watchdog_Insert+0xe4> ffc0c754: 81 4b 00 00 lwz r10,0(r11) ffc0c758: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0c75c: 41 9e 00 88 beq- cr7,ffc0c7e4 <_Watchdog_Insert+0xe4> break; if ( delta_interval < after->delta_interval ) { ffc0c760: 81 4b 00 10 lwz r10,16(r11) ffc0c764: 7f 89 50 40 cmplw cr7,r9,r10 ffc0c768: 41 9c 00 cc blt- cr7,ffc0c834 <_Watchdog_Insert+0x134> static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc0c76c: 7d 00 00 a6 mfmsr r8 ffc0c770: 7c e0 01 24 mtmsr r7 ffc0c774: 7d 00 01 24 mtmsr r8 * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { ffc0c778: 81 04 00 08 lwz r8,8(r4) ffc0c77c: 2f 88 00 01 cmpwi cr7,r8,1 ffc0c780: 40 9e 00 94 bne- cr7,ffc0c814 <_Watchdog_Insert+0x114> goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { ffc0c784: 81 06 00 00 lwz r8,0(r6) if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; ffc0c788: 7d 2a 48 50 subf r9,r10,r9 if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { ffc0c78c: 7f 80 40 40 cmplw cr7,r0,r8 ffc0c790: 40 bc 00 48 bge+ cr7,ffc0c7d8 <_Watchdog_Insert+0xd8> ffc0c794: 48 00 00 dc b ffc0c870 <_Watchdog_Insert+0x170> <== ALWAYS TAKEN */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) ffc0c798: 81 4b 00 00 lwz r10,0(r11) ffc0c79c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0c7a0: 41 9e 00 44 beq- cr7,ffc0c7e4 <_Watchdog_Insert+0xe4> break; if ( delta_interval < after->delta_interval ) { ffc0c7a4: 81 4b 00 10 lwz r10,16(r11) ffc0c7a8: 7f 8a 48 40 cmplw cr7,r10,r9 ffc0c7ac: 41 9d 00 88 bgt- cr7,ffc0c834 <_Watchdog_Insert+0x134> ffc0c7b0: 7d 00 00 a6 mfmsr r8 ffc0c7b4: 7c e0 01 24 mtmsr r7 ffc0c7b8: 7d 00 01 24 mtmsr r8 * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { ffc0c7bc: 81 04 00 08 lwz r8,8(r4) if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; ffc0c7c0: 7d 2a 48 50 subf r9,r10,r9 * mechanism used here WAS redesigned to address this. */ _ISR_Flash( level ); if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { ffc0c7c4: 2f 88 00 01 cmpwi cr7,r8,1 ffc0c7c8: 40 9e 00 4c bne- cr7,ffc0c814 <_Watchdog_Insert+0x114> <== NEVER TAKEN goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { ffc0c7cc: 81 46 00 00 lwz r10,0(r6) ffc0c7d0: 7f 80 50 40 cmplw cr7,r0,r10 ffc0c7d4: 41 9c 00 9c blt- cr7,ffc0c870 <_Watchdog_Insert+0x170> */ for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ; ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) ffc0c7d8: 2f 89 00 00 cmpwi cr7,r9,0 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); ffc0c7dc: 81 6b 00 00 lwz r11,0(r11) ffc0c7e0: 40 9e ff b8 bne+ cr7,ffc0c798 <_Watchdog_Insert+0x98> _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); ffc0c7e4: 81 6b 00 04 lwz r11,4(r11) the_watchdog->start_time = _Watchdog_Ticks_since_boot; ffc0c7e8: 3d 40 00 00 lis r10,0 ffc0c7ec: 81 0a 27 c8 lwz r8,10184(r10) ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc0c7f0: 81 4b 00 00 lwz r10,0(r11) ffc0c7f4: 91 04 00 14 stw r8,20(r4) RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; ffc0c7f8: 39 00 00 02 li r8,2 after_node->next = the_node; ffc0c7fc: 90 8b 00 00 stw r4,0(r11) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc0c800: 91 64 00 04 stw r11,4(r4) ffc0c804: 91 04 00 08 stw r8,8(r4) } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; ffc0c808: 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; ffc0c80c: 90 8a 00 04 stw r4,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; ffc0c810: 91 44 00 00 stw r10,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; ffc0c814: 90 0c 27 ac stw r0,10156(r12) _Watchdog_Sync_count--; ffc0c818: 81 25 27 c4 lwz r9,10180(r5) ffc0c81c: 38 09 ff ff addi r0,r9,-1 ffc0c820: 90 05 27 c4 stw r0,10180(r5) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0c824: 7c e0 01 24 mtmsr r7 ffc0c828: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c82c: 7c e0 01 24 mtmsr r7 ffc0c830: 4e 80 00 20 blr <== ALWAYS TAKEN if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; ffc0c834: 7d 49 50 50 subf r10,r9,r10 ffc0c838: 91 4b 00 10 stw r10,16(r11) the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); the_watchdog->start_time = _Watchdog_Ticks_since_boot; ffc0c83c: 3d 40 00 00 lis r10,0 _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); ffc0c840: 81 6b 00 04 lwz r11,4(r11) <== ALWAYS TAKEN the_watchdog->start_time = _Watchdog_Ticks_since_boot; ffc0c844: 81 0a 27 c8 lwz r8,10184(r10) ) { Chain_Node *before_node; the_node->previous = after_node; before_node = after_node->next; ffc0c848: 81 4b 00 00 lwz r10,0(r11) ffc0c84c: 91 04 00 14 stw r8,20(r4) ffc0c850: 39 00 00 02 li r8,2 after_node->next = the_node; ffc0c854: 90 8b 00 00 stw r4,0(r11) Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; ffc0c858: 91 64 00 04 stw r11,4(r4) ffc0c85c: 91 04 00 08 stw r8,8(r4) } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; ffc0c860: 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; ffc0c864: 90 8a 00 04 stw r4,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; ffc0c868: 91 44 00 00 stw r10,0(r4) ffc0c86c: 4b ff ff a8 b ffc0c814 <_Watchdog_Insert+0x114> <== ALWAYS TAKEN if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { _Watchdog_Sync_level = insert_isr_nest_level; ffc0c870: 90 06 00 00 stw r0,0(r6) goto restart; ffc0c874: 4b ff fe d0 b ffc0c744 <_Watchdog_Insert+0x44> <== ALWAYS TAKEN ffc0c8c8 <_Watchdog_Remove>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0c8c8: 7d 20 00 a6 mfmsr r9 ffc0c8cc: 7c 10 42 a6 mfsprg r0,0 ffc0c8d0: 7d 20 00 78 andc r0,r9,r0 ffc0c8d4: 7c 00 01 24 mtmsr r0 ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; ffc0c8d8: 80 03 00 08 lwz r0,8(r3) switch ( previous_state ) { ffc0c8dc: 2f 80 00 01 cmpwi cr7,r0,1 ffc0c8e0: 41 9e 00 98 beq- cr7,ffc0c978 <_Watchdog_Remove+0xb0> ffc0c8e4: 2b 80 00 01 cmplwi cr7,r0,1 ffc0c8e8: 40 9c 00 1c bge- cr7,ffc0c904 <_Watchdog_Remove+0x3c> _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; ffc0c8ec: 3d 60 00 00 lis r11,0 ffc0c8f0: 81 6b 27 c8 lwz r11,10184(r11) <== ALWAYS TAKEN ffc0c8f4: 91 63 00 18 stw r11,24(r3) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0c8f8: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); return( previous_state ); } ffc0c8fc: 7c 03 03 78 mr r3,r0 ffc0c900: 4e 80 00 20 blr <== ALWAYS TAKEN Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { ffc0c904: 2b 80 00 03 cmplwi cr7,r0,3 ffc0c908: 41 bd ff e4 bgt- cr7,ffc0c8ec <_Watchdog_Remove+0x24> <== NEVER TAKEN RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); ffc0c90c: 81 63 00 00 lwz r11,0(r3) break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; ffc0c910: 39 00 00 00 li r8,0 ffc0c914: 91 03 00 08 stw r8,8(r3) next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) ffc0c918: 81 4b 00 00 lwz r10,0(r11) ffc0c91c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0c920: 41 9e 00 14 beq- cr7,ffc0c934 <_Watchdog_Remove+0x6c> next_watchdog->delta_interval += the_watchdog->delta_interval; ffc0c924: 81 0b 00 10 lwz r8,16(r11) ffc0c928: 81 43 00 10 lwz r10,16(r3) ffc0c92c: 7d 48 52 14 add r10,r8,r10 ffc0c930: 91 4b 00 10 stw r10,16(r11) if ( _Watchdog_Sync_count ) ffc0c934: 3d 40 00 00 lis r10,0 ffc0c938: 81 4a 27 c4 lwz r10,10180(r10) ffc0c93c: 2f 8a 00 00 cmpwi cr7,r10,0 ffc0c940: 41 9e 00 14 beq- cr7,ffc0c954 <_Watchdog_Remove+0x8c> _Watchdog_Sync_level = _ISR_Nest_level; ffc0c944: 3d 40 00 00 lis r10,0 ffc0c948: 81 0a 27 98 lwz r8,10136(r10) ffc0c94c: 3d 40 00 00 lis r10,0 ffc0c950: 91 0a 27 ac stw r8,10156(r10) { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; ffc0c954: 81 43 00 04 lwz r10,4(r3) next->previous = previous; previous->next = next; ffc0c958: 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; ffc0c95c: 91 4b 00 04 stw r10,4(r11) <== ALWAYS TAKEN _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; ffc0c960: 3d 60 00 00 lis r11,0 ffc0c964: 81 6b 27 c8 lwz r11,10184(r11) ffc0c968: 91 63 00 18 stw r11,24(r3) ffc0c96c: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); return( previous_state ); } ffc0c970: 7c 03 03 78 mr r3,r0 ffc0c974: 4e 80 00 20 blr <== 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; ffc0c978: 39 60 00 00 li r11,0 ffc0c97c: 91 63 00 08 stw r11,8(r3) _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; ffc0c980: 3d 60 00 00 lis r11,0 ffc0c984: 81 6b 27 c8 lwz r11,10184(r11) ffc0c988: 91 63 00 18 stw r11,24(r3) ffc0c98c: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); return( previous_state ); } ffc0c990: 7c 03 03 78 mr r3,r0 ffc0c994: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e4e0 <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk( ffc0e4e0: 7c 6b 1b 79 mr. r11,r3 void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { ffc0e4e4: 94 21 ff f0 stwu r1,-16(r1) ffc0e4e8: 7c 08 02 a6 mflr r0 ffc0e4ec: 7c 88 23 78 mr r8,r4 ffc0e4f0: 90 01 00 14 stw r0,20(r1) printk( ffc0e4f4: 41 82 00 48 beq- ffc0e53c <_Watchdog_Report+0x5c> ffc0e4f8: 80 08 00 24 lwz r0,36(r8) ffc0e4fc: 3c a0 ff c2 lis r5,-62 ffc0e500: 80 c8 00 10 lwz r6,16(r8) ffc0e504: 3c 60 ff c2 lis r3,-62 ffc0e508: 80 e8 00 0c lwz r7,12(r8) ffc0e50c: 38 a5 50 78 addi r5,r5,20600 ffc0e510: 81 28 00 1c lwz r9,28(r8) ffc0e514: 38 63 50 7c addi r3,r3,20604 ffc0e518: 81 48 00 20 lwz r10,32(r8) ffc0e51c: 7d 64 5b 78 mr r4,r11 ffc0e520: 90 01 00 08 stw r0,8(r1) ffc0e524: 4c c6 31 82 crclr 4*cr1+eq ffc0e528: 4b ff 80 69 bl ffc06590 <== ALWAYS TAKEN watch, watch->routine, watch->id, watch->user_data ); } ffc0e52c: 80 01 00 14 lwz r0,20(r1) ffc0e530: 38 21 00 10 addi r1,r1,16 ffc0e534: 7c 08 03 a6 mtlr r0 ffc0e538: 4e 80 00 20 blr <== ALWAYS TAKEN void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk( ffc0e53c: 3d 60 ff c2 lis r11,-62 ffc0e540: 80 08 00 24 lwz r0,36(r8) ffc0e544: 39 6b 40 28 addi r11,r11,16424 ffc0e548: 80 c8 00 10 lwz r6,16(r8) ffc0e54c: 80 e8 00 0c lwz r7,12(r8) ffc0e550: 3c 60 ff c2 lis r3,-62 ffc0e554: 81 28 00 1c lwz r9,28(r8) ffc0e558: 7d 65 5b 78 mr r5,r11 ffc0e55c: 81 48 00 20 lwz r10,32(r8) ffc0e560: 38 63 50 7c addi r3,r3,20604 ffc0e564: 7d 64 5b 78 mr r4,r11 ffc0e568: 90 01 00 08 stw r0,8(r1) ffc0e56c: 4c c6 31 82 crclr 4*cr1+eq ffc0e570: 4b ff 80 21 bl ffc06590 <== ALWAYS TAKEN watch, watch->routine, watch->id, watch->user_data ); } ffc0e574: 80 01 00 14 lwz r0,20(r1) ffc0e578: 38 21 00 10 addi r1,r1,16 ffc0e57c: 7c 08 03 a6 mtlr r0 ffc0e580: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e420 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { ffc0e420: 94 21 ff e8 stwu r1,-24(r1) ffc0e424: 7c 08 02 a6 mflr r0 ffc0e428: 93 c1 00 10 stw r30,16(r1) ffc0e42c: 7c 7e 1b 78 mr r30,r3 ffc0e430: 93 e1 00 14 stw r31,20(r1) ffc0e434: 7c 9f 23 78 mr r31,r4 ffc0e438: 90 01 00 1c stw r0,28(r1) ffc0e43c: 93 81 00 08 stw r28,8(r1) ffc0e440: 93 a1 00 0c stw r29,12(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e444: 7f a0 00 a6 mfmsr r29 ffc0e448: 7c 10 42 a6 mfsprg r0,0 ffc0e44c: 7f a0 00 78 andc r0,r29,r0 ffc0e450: 7c 00 01 24 mtmsr r0 ISR_Level level; Chain_Node *node; _ISR_Disable( level ); printk( "Watchdog Chain: %s %p\n", name, header ); ffc0e454: 3c 60 ff c2 lis r3,-62 ffc0e458: 7f e5 fb 78 mr r5,r31 ffc0e45c: 38 63 50 40 addi r3,r3,20544 ffc0e460: 7f c4 f3 78 mr r4,r30 ffc0e464: 4c c6 31 82 crclr 4*cr1+eq ffc0e468: 4b ff 81 29 bl ffc06590 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); ffc0e46c: 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; ffc0e470: 3b ff 00 04 addi r31,r31,4 if ( !_Chain_Is_empty( header ) ) { ffc0e474: 7f 9c f8 00 cmpw cr7,r28,r31 ffc0e478: 41 9e 00 54 beq- cr7,ffc0e4cc <_Watchdog_Report_chain+0xac> node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); ffc0e47c: 7f 84 e3 78 mr r4,r28 ffc0e480: 38 60 00 00 li r3,0 ffc0e484: 48 00 00 5d bl ffc0e4e0 <_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 ) ffc0e488: 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 ; ffc0e48c: 7f 9c f8 00 cmpw cr7,r28,r31 ffc0e490: 40 9e ff ec bne+ cr7,ffc0e47c <_Watchdog_Report_chain+0x5c> <== NEVER TAKEN { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); ffc0e494: 3c 60 ff c2 lis r3,-62 ffc0e498: 38 63 50 58 addi r3,r3,20568 ffc0e49c: 7f c4 f3 78 mr r4,r30 ffc0e4a0: 4c c6 31 82 crclr 4*cr1+eq ffc0e4a4: 4b ff 80 ed bl ffc06590 <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e4a8: 7f a0 01 24 mtmsr r29 } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); } ffc0e4ac: 80 01 00 1c lwz r0,28(r1) ffc0e4b0: 83 81 00 08 lwz r28,8(r1) ffc0e4b4: 7c 08 03 a6 mtlr r0 ffc0e4b8: 83 a1 00 0c lwz r29,12(r1) ffc0e4bc: 83 c1 00 10 lwz r30,16(r1) ffc0e4c0: 83 e1 00 14 lwz r31,20(r1) ffc0e4c4: 38 21 00 18 addi r1,r1,24 ffc0e4c8: 4e 80 00 20 blr <== ALWAYS TAKEN _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); ffc0e4cc: 3c 60 ff c2 lis r3,-62 ffc0e4d0: 38 63 50 68 addi r3,r3,20584 ffc0e4d4: 4c c6 31 82 crclr 4*cr1+eq ffc0e4d8: 4b ff 80 b9 bl ffc06590 <== ALWAYS TAKEN ffc0e4dc: 4b ff ff cc b ffc0e4a8 <_Watchdog_Report_chain+0x88> <== ALWAYS TAKEN ffc0c998 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) { ffc0c998: 94 21 ff e8 stwu r1,-24(r1) ffc0c99c: 7c 08 02 a6 mflr r0 ffc0c9a0: 90 01 00 1c stw r0,28(r1) ffc0c9a4: 93 c1 00 10 stw r30,16(r1) ffc0c9a8: 7c 7e 1b 78 mr r30,r3 ffc0c9ac: 93 81 00 08 stw r28,8(r1) <== ALWAYS TAKEN ffc0c9b0: 93 a1 00 0c stw r29,12(r1) ffc0c9b4: 93 e1 00 14 stw r31,20(r1) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0c9b8: 7f 80 00 a6 mfmsr r28 ffc0c9bc: 7c 10 42 a6 mfsprg r0,0 ffc0c9c0: 7f 80 00 78 andc r0,r28,r0 ffc0c9c4: 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)); ffc0c9c8: 83 e3 00 00 lwz r31,0(r3) <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc0c9cc: 3b a3 00 04 addi r29,r3,4 * volatile data - till, 2003/7 */ _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) ffc0c9d0: 7f 9f e8 00 cmpw cr7,r31,r29 ffc0c9d4: 41 9e 00 20 beq- cr7,ffc0c9f4 <_Watchdog_Tickle+0x5c> * 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) { ffc0c9d8: 81 3f 00 10 lwz r9,16(r31) ffc0c9dc: 2f 89 00 00 cmpwi cr7,r9,0 ffc0c9e0: 41 9e 00 78 beq- cr7,ffc0ca58 <_Watchdog_Tickle+0xc0> the_watchdog->delta_interval--; ffc0c9e4: 39 29 ff ff addi r9,r9,-1 if ( the_watchdog->delta_interval != 0 ) ffc0c9e8: 2f 89 00 00 cmpwi cr7,r9,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--; ffc0c9ec: 91 3f 00 10 stw r9,16(r31) if ( the_watchdog->delta_interval != 0 ) ffc0c9f0: 41 be 00 68 beq+ cr7,ffc0ca58 <_Watchdog_Tickle+0xc0> return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0c9f4: 7f 80 01 24 mtmsr r28 } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); } ffc0c9f8: 80 01 00 1c lwz r0,28(r1) ffc0c9fc: 83 81 00 08 lwz r28,8(r1) ffc0ca00: 7c 08 03 a6 mtlr r0 ffc0ca04: 83 a1 00 0c lwz r29,12(r1) ffc0ca08: 83 c1 00 10 lwz r30,16(r1) ffc0ca0c: 83 e1 00 14 lwz r31,20(r1) ffc0ca10: 38 21 00 18 addi r1,r1,24 <== ALWAYS TAKEN ffc0ca14: 4e 80 00 20 blr <== ALWAYS TAKEN _ISR_Enable( level ); switch( watchdog_state ) { case WATCHDOG_ACTIVE: (*the_watchdog->routine)( ffc0ca18: 80 1f 00 1c lwz r0,28(r31) ffc0ca1c: 80 9f 00 24 lwz r4,36(r31) ffc0ca20: 80 7f 00 20 lwz r3,32(r31) ffc0ca24: 7c 09 03 a6 mtctr r0 ffc0ca28: 4e 80 04 21 bctrl <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0ca2c: 7f 80 00 a6 mfmsr r28 ffc0ca30: 7c 10 42 a6 mfsprg r0,0 ffc0ca34: 7f 80 00 78 andc r0,r28,r0 ffc0ca38: 7c 00 01 24 mtmsr r0 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); ffc0ca3c: 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) ); ffc0ca40: 7f 9d 00 00 cmpw cr7,r29,r0 <== ALWAYS TAKEN ffc0ca44: 7c 1f 03 78 mr r31,r0 ffc0ca48: 41 be ff ac beq- cr7,ffc0c9f4 <_Watchdog_Tickle+0x5c> ffc0ca4c: 80 1f 00 10 lwz r0,16(r31) ffc0ca50: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ca54: 40 be ff a0 bne- cr7,ffc0c9f4 <_Watchdog_Tickle+0x5c> if ( the_watchdog->delta_interval != 0 ) goto leave; } do { watchdog_state = _Watchdog_Remove( the_watchdog ); ffc0ca58: 7f e3 fb 78 mr r3,r31 ffc0ca5c: 4b ff fe 6d bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0ca60: 7f 80 01 24 mtmsr r28 _ISR_Enable( level ); switch( watchdog_state ) { ffc0ca64: 2f 83 00 02 cmpwi cr7,r3,2 ffc0ca68: 40 9e ff c4 bne+ cr7,ffc0ca2c <_Watchdog_Tickle+0x94> ffc0ca6c: 4b ff ff ac b ffc0ca18 <_Watchdog_Tickle+0x80> <== ALWAYS TAKEN ffc0cab8 <_Workspace_Allocate>: * _Workspace_Allocate */ void *_Workspace_Allocate( size_t size ) { ffc0cab8: 94 21 ff f8 stwu r1,-8(r1) ffc0cabc: 7c 08 02 a6 mflr r0 ffc0cac0: 7c 64 1b 78 mr r4,r3 ffc0cac4: 3c 60 00 00 lis r3,0 ffc0cac8: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN ffc0cacc: 38 63 2c ac addi r3,r3,11436 ffc0cad0: 38 a0 00 00 li r5,0 ffc0cad4: 38 c0 00 00 li r6,0 ffc0cad8: 48 00 2f 55 bl ffc0fa2c <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN __builtin_return_address( 1 ), memory ); #endif return memory; } ffc0cadc: 80 01 00 0c lwz r0,12(r1) ffc0cae0: 38 21 00 08 addi r1,r1,8 ffc0cae4: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0cae8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ca70 <_Workspace_Allocate_or_fatal_error>: * _Workspace_Allocate_or_fatal_error */ void *_Workspace_Allocate_or_fatal_error( size_t size ) { ffc0ca70: 94 21 ff f8 stwu r1,-8(r1) ffc0ca74: 7c 08 02 a6 mflr r0 ffc0ca78: 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 ); ffc0ca7c: 3c 60 00 00 lis r3,0 ffc0ca80: 90 01 00 0c stw r0,12(r1) ffc0ca84: 38 63 2c ac addi r3,r3,11436 ffc0ca88: 38 a0 00 00 li r5,0 ffc0ca8c: 38 c0 00 00 li r6,0 ffc0ca90: 48 00 2f 9d bl ffc0fa2c <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN __builtin_return_address( 1 ), memory ); #endif if ( memory == NULL ) ffc0ca94: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ca98: 41 9e 00 14 beq- cr7,ffc0caac <_Workspace_Allocate_or_fatal_error+0x3c> true, INTERNAL_ERROR_WORKSPACE_ALLOCATION ); return memory; } ffc0ca9c: 80 01 00 0c lwz r0,12(r1) ffc0caa0: 38 21 00 08 addi r1,r1,8 ffc0caa4: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0caa8: 4e 80 00 20 blr <== ALWAYS TAKEN memory ); #endif if ( memory == NULL ) _Internal_error_Occurred( ffc0caac: 38 80 00 01 li r4,1 ffc0cab0: 38 a0 00 04 li r5,4 ffc0cab4: 4b ff d3 35 bl ffc09de8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc0caec <_Workspace_Free>: * _Workspace_Free */ bool _Workspace_Free( void *block ) { ffc0caec: 94 21 ff f8 stwu r1,-8(r1) ffc0caf0: 7c 08 02 a6 mflr r0 ffc0caf4: 7c 64 1b 78 mr r4,r3 block, __builtin_return_address( 0 ), __builtin_return_address( 1 ) ); #endif return _Heap_Free( &_Workspace_Area, block ); ffc0caf8: 3c 60 00 00 lis r3,0 * _Workspace_Free */ bool _Workspace_Free( void *block ) { ffc0cafc: 90 01 00 0c stw r0,12(r1) block, __builtin_return_address( 0 ), __builtin_return_address( 1 ) ); #endif return _Heap_Free( &_Workspace_Area, block ); ffc0cb00: 38 63 2c ac addi r3,r3,11436 <== ALWAYS TAKEN ffc0cb04: 48 00 31 2d bl ffc0fc30 <_Heap_Free> <== ALWAYS TAKEN } ffc0cb08: 80 01 00 0c lwz r0,12(r1) ffc0cb0c: 38 21 00 08 addi r1,r1,8 ffc0cb10: 7c 08 03 a6 mtlr r0 ffc0cb14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cb18 <_Workspace_Handler_initialization>: /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { ffc0cb18: 94 21 ff f0 stwu r1,-16(r1) ffc0cb1c: 7c 08 02 a6 mflr r0 uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; ffc0cb20: 3d 60 00 00 lis r11,0 /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { ffc0cb24: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; ffc0cb28: 39 2b 20 a0 addi r9,r11,8352 <== ALWAYS TAKEN uintptr_t size = Configuration.work_space_size; if ( Configuration.do_zero_of_workspace ) ffc0cb2c: 88 09 00 28 lbz r0,40(r9) /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { ffc0cb30: 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 ) ffc0cb34: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { ffc0cb38: 93 e1 00 0c stw r31,12(r1) uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; ffc0cb3c: 83 cb 20 a0 lwz r30,8352(r11) uintptr_t size = Configuration.work_space_size; ffc0cb40: 83 e9 00 04 lwz r31,4(r9) if ( Configuration.do_zero_of_workspace ) ffc0cb44: 40 9e 00 3c bne- cr7,ffc0cb80 <_Workspace_Handler_initialization+0x68> memset( starting_address, 0, size ); memory_available = _Heap_Initialize( ffc0cb48: 3c 60 00 00 lis r3,0 ffc0cb4c: 38 63 2c ac addi r3,r3,11436 ffc0cb50: 7f c4 f3 78 mr r4,r30 ffc0cb54: 7f e5 fb 78 mr r5,r31 ffc0cb58: 38 c0 00 08 li r6,8 <== ALWAYS TAKEN ffc0cb5c: 4b ff ce 8d bl ffc099e8 <_Heap_Initialize> <== ALWAYS TAKEN starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) ffc0cb60: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc0cb64: 41 9e 00 30 beq- cr7,ffc0cb94 <_Workspace_Handler_initialization+0x7c> _Internal_error_Occurred( INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_TOO_LITTLE_WORKSPACE ); } ffc0cb68: 80 01 00 14 lwz r0,20(r1) ffc0cb6c: 83 c1 00 08 lwz r30,8(r1) ffc0cb70: 7c 08 03 a6 mtlr r0 ffc0cb74: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc0cb78: 38 21 00 10 addi r1,r1,16 ffc0cb7c: 4e 80 00 20 blr <== ALWAYS TAKEN 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 ) memset( starting_address, 0, size ); ffc0cb80: 7f c3 f3 78 mr r3,r30 ffc0cb84: 38 80 00 00 li r4,0 ffc0cb88: 7f e5 fb 78 mr r5,r31 ffc0cb8c: 48 00 74 d5 bl ffc14060 <== ALWAYS TAKEN ffc0cb90: 4b ff ff b8 b ffc0cb48 <_Workspace_Handler_initialization+0x30> <== ALWAYS TAKEN size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) _Internal_error_Occurred( ffc0cb94: 38 80 00 01 li r4,1 ffc0cb98: 38 a0 00 03 li r5,3 ffc0cb9c: 4b ff d2 4d bl ffc09de8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc03f80 <__assert_func>: int line, const char *func, const char *failedexpr ) { printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", ffc03f80: 7c a8 2b 79 mr. r8,r5 const char *file, int line, const char *func, const char *failedexpr ) { ffc03f84: 7c 08 02 a6 mflr r0 ffc03f88: 94 21 ff f8 stwu r1,-8(r1) ffc03f8c: 7c 65 1b 78 mr r5,r3 ffc03f90: 90 01 00 0c stw r0,12(r1) ffc03f94: 7c 80 23 78 mr r0,r4 printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", ffc03f98: 41 82 00 2c beq- ffc03fc4 <__assert_func+0x44> ffc03f9c: 3c e0 ff c2 lis r7,-62 ffc03fa0: 38 e7 f6 d0 addi r7,r7,-2352 ffc03fa4: 3c 60 ff c2 lis r3,-62 ffc03fa8: 38 63 f6 e0 addi r3,r3,-2336 ffc03fac: 7c c4 33 78 mr r4,r6 ffc03fb0: 7c 06 03 78 mr r6,r0 ffc03fb4: 4c c6 31 82 crclr 4*cr1+eq ffc03fb8: 48 00 15 e1 bl ffc05598 <== ALWAYS TAKEN file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); ffc03fbc: 38 60 00 00 li r3,0 ffc03fc0: 48 00 4e ed bl ffc08eac <== ALWAYS TAKEN int line, const char *func, const char *failedexpr ) { printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", ffc03fc4: 3c e0 ff c2 lis r7,-62 ffc03fc8: 38 e7 ed 54 addi r7,r7,-4780 ffc03fcc: 7c e8 3b 78 mr r8,r7 ffc03fd0: 4b ff ff d4 b ffc03fa4 <__assert_func+0x24> <== ALWAYS TAKEN ffc29928 <__env_lock>: ffc29928: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2992c <__env_unlock>: ffc2992c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1ddd4 <_calloc_r>: void *_calloc_r( struct _reent *ignored __attribute__((unused)), size_t elements, size_t size ) { ffc1ddd4: 94 21 ff f8 stwu r1,-8(r1) ffc1ddd8: 7c 08 02 a6 mflr r0 return calloc( elements, size ); ffc1dddc: 7c 83 23 78 mr r3,r4 ffc1dde0: 7c a4 2b 78 mr r4,r5 void *_calloc_r( struct _reent *ignored __attribute__((unused)), size_t elements, size_t size ) { ffc1dde4: 90 01 00 0c stw r0,12(r1) return calloc( elements, size ); ffc1dde8: 4b ff 01 25 bl ffc0df0c <== ALWAYS TAKEN } ffc1ddec: 80 01 00 0c lwz r0,12(r1) ffc1ddf0: 38 21 00 08 addi r1,r1,8 ffc1ddf4: 7c 08 03 a6 mtlr r0 ffc1ddf8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e044 <_close_r>: int _close_r( struct _reent *ptr __attribute__((unused)), int fd ) { return close( fd ); ffc0e044: 7c 83 23 78 mr r3,r4 <== ALWAYS TAKEN ffc0e048: 4b ff ff 3c b ffc0df84 <== ALWAYS TAKEN ffc1fe8c <_execve>: int _execve( const char *path __attribute__((unused)), char *const argv[] __attribute__((unused)), char *const envp[] __attribute__((unused)) ) { ffc1fe8c: 94 21 ff f8 stwu r1,-8(r1) ffc1fe90: 7c 08 02 a6 mflr r0 ffc1fe94: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc1fe98: 4b ff 43 d9 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc1fe9c: 38 00 00 58 li r0,88 ffc1fea0: 90 03 00 00 stw r0,0(r3) } ffc1fea4: 38 60 ff ff li r3,-1 ffc1fea8: 80 01 00 0c lwz r0,12(r1) ffc1feac: 38 21 00 08 addi r1,r1,8 ffc1feb0: 7c 08 03 a6 mtlr r0 ffc1feb4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e198 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); ffc1e198: 94 21 ff f0 stwu r1,-16(r1) ffc1e19c: 7c 08 02 a6 mflr r0 ffc1e1a0: 90 61 00 08 stw r3,8(r1) ffc1e1a4: 90 01 00 14 stw r0,20(r1) ffc1e1a8: 48 00 0a 59 bl ffc1ec00 <__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(); ffc1e1ac: 4b ff ff 55 bl ffc1e100 <== ALWAYS TAKEN rtems_shutdown_executive(status); ffc1e1b0: 80 61 00 08 lwz r3,8(r1) <== ALWAYS TAKEN ffc1e1b4: 48 00 01 59 bl ffc1e30c <== ALWAYS TAKEN ffc1e1b8: 48 00 00 00 b ffc1e1b8 <_exit+0x20> <== NOT EXECUTED ffc46c78 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); ffc46c78: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc46c7c: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc46c80: 7c c5 33 78 mr r5,r6 <== NOT EXECUTED ffc46c84: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc46c88: 4b ff fd 08 b ffc46990 <== NOT EXECUTED ffc1ddfc <_free_r>: void _free_r( struct _reent *ignored __attribute__((unused)), void *ptr ) { ffc1ddfc: 94 21 ff f8 stwu r1,-8(r1) ffc1de00: 7c 08 02 a6 mflr r0 free( ptr ); ffc1de04: 7c 83 23 78 mr r3,r4 void _free_r( struct _reent *ignored __attribute__((unused)), void *ptr ) { ffc1de08: 90 01 00 0c stw r0,12(r1) free( ptr ); ffc1de0c: 4b fe 66 5d bl ffc04468 <== ALWAYS TAKEN } ffc1de10: 80 01 00 0c lwz r0,12(r1) ffc1de14: 38 21 00 08 addi r1,r1,8 ffc1de18: 7c 08 03 a6 mtlr r0 ffc1de1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1defc <_fstat_r>: struct _reent *ptr __attribute__((unused)), int fd, struct stat *buf ) { return fstat( fd, buf ); ffc1defc: 7c 83 23 78 mr r3,r4 ffc1df00: 7c a4 2b 78 mr r4,r5 ffc1df04: 4b ff ff 1c b ffc1de20 <== ALWAYS TAKEN ffc116c4 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } ffc116c4: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc116c8: 4e 80 00 20 blr <== NOT EXECUTED ffc0e22c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); ffc0e22c: 4b ff ff 70 b ffc0e19c <== NOT EXECUTED ffc0e230 <_gettimeofday_r>: struct _reent *ignored_reentrancy_stuff __attribute__((unused)), struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); ffc0e230: 7c 83 23 78 mr r3,r4 ffc0e234: 7c a4 2b 78 mr r4,r5 ffc0e238: 4b ff ff 64 b ffc0e19c <== ALWAYS TAKEN ffc1df08 <_isatty_r>: int _isatty_r( struct _reent *ptr __attribute__((unused)), int fd ) { ffc1df08: 94 21 ff f8 stwu r1,-8(r1) ffc1df0c: 7c 08 02 a6 mflr r0 return isatty( fd ); ffc1df10: 7c 83 23 78 mr r3,r4 int _isatty_r( struct _reent *ptr __attribute__((unused)), int fd ) { ffc1df14: 90 01 00 0c stw r0,12(r1) return isatty( fd ); ffc1df18: 48 00 09 21 bl ffc1e838 <== ALWAYS TAKEN } ffc1df1c: 80 01 00 0c lwz r0,12(r1) ffc1df20: 38 21 00 08 addi r1,r1,8 ffc1df24: 7c 08 03 a6 mtlr r0 ffc1df28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2a650 <_kill_r>: int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { ffc2a650: 94 21 ff f8 stwu r1,-8(r1) ffc2a654: 7c 08 02 a6 mflr r0 return killinfo( pid, sig, NULL ); ffc2a658: 7c 83 23 78 mr r3,r4 ffc2a65c: 7c a4 2b 78 mr r4,r5 int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { ffc2a660: 90 01 00 0c stw r0,12(r1) return killinfo( pid, sig, NULL ); ffc2a664: 38 a0 00 00 li r5,0 ffc2a668: 4b ff 0b 9d bl ffc1b204 <== ALWAYS TAKEN } ffc2a66c: 80 01 00 0c lwz r0,12(r1) ffc2a670: 38 21 00 08 addi r1,r1,8 ffc2a674: 7c 08 03 a6 mtlr r0 ffc2a678: 4e 80 00 20 blr <== ALWAYS TAKEN ffc303d4 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); ffc303d4: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc303d8: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc303dc: 4b ff fd 18 b ffc300f4 <== NOT EXECUTED ffc1e0d4 <_lseek_r>: int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); ffc1e0d4: 7c 83 23 78 mr r3,r4 ffc1e0d8: 4b ff fe 54 b ffc1df2c <== ALWAYS TAKEN ffc306c8 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc306c8: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc306cc: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc306d0: 4b ff fe c0 b ffc30590 <== NOT EXECUTED ffc1e0dc <_malloc_r>: void *_malloc_r( struct _reent *ignored __attribute__((unused)), size_t size ) { ffc1e0dc: 94 21 ff f8 stwu r1,-8(r1) ffc1e0e0: 7c 08 02 a6 mflr r0 return malloc( size ); ffc1e0e4: 7c 83 23 78 mr r3,r4 void *_malloc_r( struct _reent *ignored __attribute__((unused)), size_t size ) { ffc1e0e8: 90 01 00 0c stw r0,12(r1) return malloc( size ); ffc1e0ec: 4b fe 66 fd bl ffc047e8 <== ALWAYS TAKEN } ffc1e0f0: 80 01 00 0c lwz r0,12(r1) ffc1e0f4: 38 21 00 08 addi r1,r1,8 ffc1e0f8: 7c 08 03 a6 mtlr r0 ffc1e0fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05584 <_open_r>: const char *buf, int flags, int mode ) { return open( buf, flags, mode ); ffc05584: 7c 83 23 78 mr r3,r4 ffc05588: 7c a4 2b 78 mr r4,r5 ffc0558c: 7c c5 33 78 mr r5,r6 ffc05590: 4c c6 31 82 crclr 4*cr1+eq ffc05594: 4b ff fc cc b ffc05260 <== ALWAYS TAKEN ffc1e2a8 <_read_r>: int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); ffc1e2a8: 7c 83 23 78 mr r3,r4 ffc1e2ac: 7c a4 2b 78 mr r4,r5 ffc1e2b0: 7c c5 33 78 mr r5,r6 ffc1e2b4: 4b ff ff 08 b ffc1e1bc <== ALWAYS TAKEN ffc1e2b8 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1e2b8: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc1e2bc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED return realloc( ptr, size ); ffc1e2c0: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc1e2c4: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { ffc1e2c8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED return realloc( ptr, size ); ffc1e2cc: 48 00 00 81 bl ffc1e34c <== NOT EXECUTED } ffc1e2d0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc1e2d4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc1e2d8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1e2dc: 4e 80 00 20 blr <== NOT EXECUTED ffc69344 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc69344: 94 21 ff a0 stwu r1,-96(r1) <== NOT EXECUTED ffc69348: 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 ); ffc6934c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { ffc69350: 93 a1 00 54 stw r29,84(r1) <== NOT EXECUTED ffc69354: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED ffc69358: 93 c1 00 58 stw r30,88(r1) <== NOT EXECUTED ffc6935c: 93 e1 00 5c stw r31,92(r1) <== NOT EXECUTED ffc69360: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED ffc69364: 90 01 00 64 stw r0,100(r1) <== NOT EXECUTED ffc69368: 93 61 00 4c stw r27,76(r1) <== NOT EXECUTED ffc6936c: 93 81 00 50 stw r28,80(r1) <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); ffc69370: 4b f9 f7 f1 bl ffc08b60 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) ffc69374: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc69378: 40 82 04 84 bne- ffc697fc <_rename_r+0x4b8> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); ffc6937c: 88 1f 00 00 lbz r0,0(r31) <== NOT EXECUTED ffc69380: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED ffc69384: 41 9e 00 14 beq- cr7,ffc69398 <_rename_r+0x54> <== NOT EXECUTED ffc69388: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc6938c: 41 9e 00 0c beq- cr7,ffc69398 <_rename_r+0x54> <== NOT EXECUTED ffc69390: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69394: 40 9e 02 48 bne- cr7,ffc695dc <_rename_r+0x298> <== NOT EXECUTED ffc69398: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc6939c: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc693a0: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc693a4: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc693a8: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc693ac: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc693b0: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc693b4: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc693b8: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc693bc: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc693c0: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc693c4: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc693c8: 90 01 00 30 stw r0,48(r1) <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; ffc693cc: 80 01 00 20 lwz r0,32(r1) <== NOT EXECUTED name = old + old_parent_pathlen; ffc693d0: 7f ff f2 14 add r31,r31,r30 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc693d4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; name = old + old_parent_pathlen; ffc693d8: 93 e1 00 08 stw r31,8(r1) <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc693dc: 3b c1 00 0c addi r30,r1,12 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; ffc693e0: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc693e4: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc693e8: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED ffc693ec: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED ffc693f0: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc693f4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc693f8: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED ffc693fc: 80 01 00 30 lwz r0,48(r1) <== NOT EXECUTED ffc69400: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc69404: 4b fe ce 35 bl ffc56238 <== NOT EXECUTED ffc69408: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc6940c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69410: 4b f9 f7 01 bl ffc08b10 <== NOT EXECUTED ffc69414: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc69418: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc6941c: 93 e1 00 08 stw r31,8(r1) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc69420: 4b fe ce 19 bl ffc56238 <== NOT EXECUTED ffc69424: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc69428: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc6942c: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc69430: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69434: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc69438: 4b f9 f7 b5 bl ffc08bec <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { ffc6943c: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc69440: 40 82 02 80 bne- ffc696c0 <_rename_r+0x37c> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); ffc69444: 88 1d 00 00 lbz r0,0(r29) <== NOT EXECUTED ffc69448: 2f 80 00 2f cmpwi cr7,r0,47 <== NOT EXECUTED ffc6944c: 41 9e 00 4c beq- cr7,ffc69498 <_rename_r+0x154> <== NOT EXECUTED ffc69450: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc69454: 41 9e 00 44 beq- cr7,ffc69498 <_rename_r+0x154> <== NOT EXECUTED ffc69458: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6945c: 41 9e 00 3c beq- cr7,ffc69498 <_rename_r+0x154> <== NOT EXECUTED ffc69460: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc69464: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc69468: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc6946c: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc69470: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc69474: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc69478: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc6947c: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED ffc69480: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED ffc69484: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED ffc69488: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED ffc6948c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc69490: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc69494: 48 00 00 38 b ffc694cc <_rename_r+0x188> <== NOT EXECUTED ffc69498: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc6949c: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc694a0: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc694a4: 80 09 00 24 lwz r0,36(r9) <== NOT EXECUTED ffc694a8: 81 09 00 18 lwz r8,24(r9) <== NOT EXECUTED ffc694ac: 81 49 00 1c lwz r10,28(r9) <== NOT EXECUTED ffc694b0: 81 69 00 20 lwz r11,32(r9) <== NOT EXECUTED ffc694b4: 91 01 00 34 stw r8,52(r1) <== NOT EXECUTED ffc694b8: 91 41 00 38 stw r10,56(r1) <== NOT EXECUTED ffc694bc: 91 61 00 3c stw r11,60(r1) <== NOT EXECUTED ffc694c0: 90 01 00 40 stw r0,64(r1) <== NOT EXECUTED ffc694c4: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc694c8: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { ffc694cc: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc694d0: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc694d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc694d8: 41 9e 02 c0 beq- cr7,ffc69798 <_rename_r+0x454> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); ffc694dc: 3b e1 00 34 addi r31,r1,52 <== NOT EXECUTED ffc694e0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc694e4: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc694e8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc694ec: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc694f0: 4e 80 04 21 bctrl <== NOT EXECUTED if ( result != 0 ) { ffc694f4: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc694f8: 40 82 02 04 bne- ffc696fc <_rename_r+0x3b8> <== NOT EXECUTED /* * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { ffc694fc: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc69500: 81 21 00 30 lwz r9,48(r1) <== NOT EXECUTED ffc69504: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc69508: 40 9e 01 0c bne- cr7,ffc69614 <_rename_r+0x2d0> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { ffc6950c: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc69510: 80 09 00 40 lwz r0,64(r9) <== NOT EXECUTED ffc69514: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69518: 41 9e 02 68 beq- cr7,ffc69780 <_rename_r+0x43c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); ffc6951c: 3b a1 00 20 addi r29,r1,32 <== NOT EXECUTED ffc69520: 80 c1 00 08 lwz r6,8(r1) <== NOT EXECUTED ffc69524: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc69528: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc6952c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc69530: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc69534: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc69538: 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 ); ffc6953c: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); ffc69540: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69544: 41 9e 00 1c beq- cr7,ffc69560 <_rename_r+0x21c> <== NOT EXECUTED ffc69548: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc6954c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69550: 41 9e 00 10 beq- cr7,ffc69560 <_rename_r+0x21c> <== NOT EXECUTED ffc69554: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69558: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc6955c: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc69560: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc69564: 40 9e 00 50 bne- cr7,ffc695b4 <_rename_r+0x270> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); ffc69568: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc6956c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69570: 41 9e 00 1c beq- cr7,ffc6958c <_rename_r+0x248> <== NOT EXECUTED ffc69574: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69578: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6957c: 41 9e 00 10 beq- cr7,ffc6958c <_rename_r+0x248> <== NOT EXECUTED ffc69580: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc69584: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69588: 4e 80 04 21 bctrl <== NOT EXECUTED return result; } ffc6958c: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED ffc69590: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc69594: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED ffc69598: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc6959c: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED ffc695a0: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED ffc695a4: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED ffc695a8: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED ffc695ac: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED ffc695b0: 4e 80 00 20 blr <== NOT EXECUTED result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); ffc695b4: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc695b8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc695bc: 41 be ff ac beq- cr7,ffc69568 <_rename_r+0x224> <== NOT EXECUTED ffc695c0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc695c4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc695c8: 41 be ff a0 beq- cr7,ffc69568 <_rename_r+0x224> <== NOT EXECUTED ffc695cc: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc695d0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc695d4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc695d8: 4b ff ff 90 b ffc69568 <_rename_r+0x224> <== NOT EXECUTED */ old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); ffc695dc: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc695e0: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc695e4: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc695e8: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc695ec: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc695f0: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc695f4: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc695f8: 91 01 00 20 stw r8,32(r1) <== NOT EXECUTED ffc695fc: 91 41 00 24 stw r10,36(r1) <== NOT EXECUTED ffc69600: 91 61 00 28 stw r11,40(r1) <== NOT EXECUTED ffc69604: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc69608: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc6960c: 90 01 00 30 stw r0,48(r1) <== NOT EXECUTED ffc69610: 4b ff fd bc b ffc693cc <_rename_r+0x88> <== NOT EXECUTED * Check to see if the caller is trying to rename across file system * boundaries. */ if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) { rtems_filesystem_freenode( &new_parent_loc ); ffc69614: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc69618: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc6961c: 41 9e 00 1c beq- cr7,ffc69638 <_rename_r+0x2f4> <== NOT EXECUTED ffc69620: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69624: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69628: 41 9e 00 10 beq- cr7,ffc69638 <_rename_r+0x2f4> <== NOT EXECUTED ffc6962c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69630: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69634: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc69638: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc6963c: 41 9e 00 28 beq- cr7,ffc69664 <_rename_r+0x320> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc69640: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc69644: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69648: 41 9e 00 1c beq- cr7,ffc69664 <_rename_r+0x320> <== NOT EXECUTED ffc6964c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69650: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69654: 41 9e 00 10 beq- cr7,ffc69664 <_rename_r+0x320> <== NOT EXECUTED ffc69658: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc6965c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69660: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc69664: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc69668: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc6966c: 41 9e 00 1c beq- cr7,ffc69688 <_rename_r+0x344> <== NOT EXECUTED ffc69670: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69674: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69678: 41 9e 00 10 beq- cr7,ffc69688 <_rename_r+0x344> <== NOT EXECUTED ffc6967c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc69680: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69684: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); ffc69688: 4b fe 4d e9 bl ffc4e470 <__errno> <== NOT EXECUTED ffc6968c: 38 00 00 12 li r0,18 <== NOT EXECUTED ffc69690: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc69694: 3b 60 ff ff li r27,-1 <== NOT EXECUTED if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; } ffc69698: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc6969c: 80 01 00 64 lwz r0,100(r1) <== NOT EXECUTED ffc696a0: 83 61 00 4c lwz r27,76(r1) <== NOT EXECUTED ffc696a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc696a8: 83 81 00 50 lwz r28,80(r1) <== NOT EXECUTED ffc696ac: 83 a1 00 54 lwz r29,84(r1) <== NOT EXECUTED ffc696b0: 83 c1 00 58 lwz r30,88(r1) <== NOT EXECUTED ffc696b4: 83 e1 00 5c lwz r31,92(r1) <== NOT EXECUTED ffc696b8: 38 21 00 60 addi r1,r1,96 <== NOT EXECUTED ffc696bc: 4e 80 00 20 blr <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &old_loc, false ); if ( result != 0 ) { if ( free_old_parentloc ) ffc696c0: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc696c4: 41 9e 00 28 beq- cr7,ffc696ec <_rename_r+0x3a8> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc696c8: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc696cc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc696d0: 41 9e 00 1c beq- cr7,ffc696ec <_rename_r+0x3a8> <== NOT EXECUTED ffc696d4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc696d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc696dc: 41 9e 00 10 beq- cr7,ffc696ec <_rename_r+0x3a8> <== NOT EXECUTED ffc696e0: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc696e4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc696e8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); ffc696ec: 4b fe 4d 85 bl ffc4e470 <__errno> <== NOT EXECUTED ffc696f0: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc696f4: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED ffc696f8: 4b ff fe 94 b ffc6958c <_rename_r+0x248> <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); ffc696fc: 81 21 00 40 lwz r9,64(r1) <== NOT EXECUTED ffc69700: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69704: 41 9e 00 1c beq- cr7,ffc69720 <_rename_r+0x3dc> <== NOT EXECUTED ffc69708: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc6970c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69710: 41 9e 00 10 beq- cr7,ffc69720 <_rename_r+0x3dc> <== NOT EXECUTED ffc69714: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69718: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc6971c: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc69720: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc69724: 41 9e 00 28 beq- cr7,ffc6974c <_rename_r+0x408> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc69728: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc6972c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69730: 41 9e 00 1c beq- cr7,ffc6974c <_rename_r+0x408> <== NOT EXECUTED ffc69734: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69738: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc6973c: 41 9e 00 10 beq- cr7,ffc6974c <_rename_r+0x408> <== NOT EXECUTED ffc69740: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc69744: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69748: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc6974c: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc69750: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc69754: 41 9e 00 1c beq- cr7,ffc69770 <_rename_r+0x42c> <== NOT EXECUTED ffc69758: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc6975c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69760: 41 9e 00 10 beq- cr7,ffc69770 <_rename_r+0x42c> <== NOT EXECUTED ffc69764: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc69768: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc6976c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); ffc69770: 4b fe 4d 01 bl ffc4e470 <__errno> <== NOT EXECUTED ffc69774: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc69778: 93 a3 00 00 stw r29,0(r3) <== NOT EXECUTED ffc6977c: 4b ff fe 10 b ffc6958c <_rename_r+0x248> <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); ffc69780: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc69784: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc69788: 41 9e 00 10 beq- cr7,ffc69798 <_rename_r+0x454> <== NOT EXECUTED ffc6978c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69790: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc69794: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_old_parentloc ) ffc69798: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc6979c: 41 9e 00 28 beq- cr7,ffc697c4 <_rename_r+0x480> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); ffc697a0: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED ffc697a4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc697a8: 41 9e 00 1c beq- cr7,ffc697c4 <_rename_r+0x480> <== NOT EXECUTED ffc697ac: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc697b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc697b4: 41 9e 00 10 beq- cr7,ffc697c4 <_rename_r+0x480> <== NOT EXECUTED ffc697b8: 38 61 00 20 addi r3,r1,32 <== NOT EXECUTED ffc697bc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc697c0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); ffc697c4: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc697c8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc697cc: 41 9e 00 1c beq- cr7,ffc697e8 <_rename_r+0x4a4> <== NOT EXECUTED ffc697d0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc697d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc697d8: 41 9e 00 10 beq- cr7,ffc697e8 <_rename_r+0x4a4> <== NOT EXECUTED ffc697dc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc697e0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc697e4: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc697e8: 4b fe 4c 89 bl ffc4e470 <__errno> <== NOT EXECUTED ffc697ec: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc697f0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc697f4: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc697f8: 4b ff fd 94 b ffc6958c <_rename_r+0x248> <== NOT EXECUTED old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, ffc697fc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc69800: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc69804: 38 a0 00 02 li r5,2 <== NOT EXECUTED ffc69808: 38 c1 00 20 addi r6,r1,32 <== NOT EXECUTED ffc6980c: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc69810: 4b f9 f5 05 bl ffc08d14 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) ffc69814: 3b 80 00 01 li r28,1 <== NOT EXECUTED ffc69818: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc6981c: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc69820: 41 9e fb ac beq+ cr7,ffc693cc <_rename_r+0x88> <== NOT EXECUTED ffc69824: 4b ff fd 68 b ffc6958c <_rename_r+0x248> <== NOT EXECUTED ffc0ac7c <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); ffc0ac7c: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc0ac80: 7c a4 2b 78 mr r4,r5 <== NOT EXECUTED ffc0ac84: 4b ff fe c0 b ffc0ab44 <== NOT EXECUTED ffc12c10 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); ffc12c10: 7c 83 23 78 mr r3,r4 <== NOT EXECUTED ffc12c14: 4b ff fc f8 b ffc1290c <== NOT EXECUTED ffc1e2e0 <_write_r>: struct _reent *ptr __attribute__((unused)), int fd, const void *buf, size_t nbytes ) { ffc1e2e0: 94 21 ff f8 stwu r1,-8(r1) ffc1e2e4: 7c 08 02 a6 mflr r0 return write( fd, buf, nbytes ); ffc1e2e8: 7c 83 23 78 mr r3,r4 ffc1e2ec: 7c a4 2b 78 mr r4,r5 struct _reent *ptr __attribute__((unused)), int fd, const void *buf, size_t nbytes ) { ffc1e2f0: 90 01 00 0c stw r0,12(r1) return write( fd, buf, nbytes ); ffc1e2f4: 7c c5 33 78 mr r5,r6 ffc1e2f8: 48 00 01 b5 bl ffc1e4ac <== ALWAYS TAKEN } ffc1e2fc: 80 01 00 0c lwz r0,12(r1) ffc1e300: 38 21 00 08 addi r1,r1,8 ffc1e304: 7c 08 03 a6 mtlr r0 ffc1e308: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2e5ac : int access( const char *path, int amode ) { ffc2e5ac: 94 21 ff a0 stwu r1,-96(r1) ffc2e5b0: 7c 08 02 a6 mflr r0 ffc2e5b4: 93 e1 00 5c stw r31,92(r1) ffc2e5b8: 7c 9f 23 78 mr r31,r4 struct stat statbuf; if ( stat(path, &statbuf) ) ffc2e5bc: 38 81 00 08 addi r4,r1,8 int access( const char *path, int amode ) { ffc2e5c0: 90 01 00 64 stw r0,100(r1) struct stat statbuf; if ( stat(path, &statbuf) ) ffc2e5c4: 4b fd c5 81 bl ffc0ab44 <== ALWAYS TAKEN ffc2e5c8: 2f 83 00 00 cmpwi cr7,r3,0 ffc2e5cc: 40 9e 00 40 bne- cr7,ffc2e60c return -1; if ( amode & R_OK ) { ffc2e5d0: 73 e0 00 04 andi. r0,r31,4 ffc2e5d4: 40 82 00 2c bne- ffc2e600 if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { ffc2e5d8: 73 e0 00 02 andi. r0,r31,2 ffc2e5dc: 40 82 00 5c bne- ffc2e638 if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { ffc2e5e0: 73 e0 00 01 andi. r0,r31,1 ffc2e5e4: 40 82 00 40 bne- ffc2e624 if ( !( statbuf.st_mode & S_IEXEC ) ) return -1; } return 0; } ffc2e5e8: 80 01 00 64 lwz r0,100(r1) if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) ffc2e5ec: 38 60 00 00 li r3,0 return -1; } return 0; } ffc2e5f0: 83 e1 00 5c lwz r31,92(r1) ffc2e5f4: 38 21 00 60 addi r1,r1,96 ffc2e5f8: 7c 08 03 a6 mtlr r0 ffc2e5fc: 4e 80 00 20 blr <== ALWAYS TAKEN if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD )) ffc2e600: 80 01 00 14 lwz r0,20(r1) ffc2e604: 70 09 01 00 andi. r9,r0,256 ffc2e608: 40 82 ff d0 bne+ ffc2e5d8 if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) ffc2e60c: 38 60 ff ff li r3,-1 return -1; } return 0; } ffc2e610: 80 01 00 64 lwz r0,100(r1) ffc2e614: 83 e1 00 5c lwz r31,92(r1) ffc2e618: 38 21 00 60 addi r1,r1,96 ffc2e61c: 7c 08 03 a6 mtlr r0 ffc2e620: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) ffc2e624: 80 01 00 14 lwz r0,20(r1) ffc2e628: 70 09 00 40 andi. r9,r0,64 ffc2e62c: 40 82 ff bc bne+ ffc2e5e8 ffc2e630: 38 60 ff ff li r3,-1 ffc2e634: 4b ff ff dc b ffc2e610 <== ALWAYS TAKEN if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) ) ffc2e638: 80 01 00 14 lwz r0,20(r1) ffc2e63c: 70 09 00 80 andi. r9,r0,128 ffc2e640: 40 82 ff a0 bne+ ffc2e5e0 return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) ffc2e644: 38 60 ff ff li r3,-1 ffc2e648: 4b ff ff c8 b ffc2e610 <== ALWAYS TAKEN ffc08664 : int adjtime( struct timeval *delta, struct timeval *olddelta ) { ffc08664: 94 21 ff d8 stwu r1,-40(r1) ffc08668: 7d 80 00 26 mfcr r12 ffc0866c: 7c 08 02 a6 mflr r0 ffc08670: 93 e1 00 24 stw r31,36(r1) long adjustment; /* * Simple validations */ if ( !delta ) ffc08674: 7c 7f 1b 79 mr. r31,r3 int adjtime( struct timeval *delta, struct timeval *olddelta ) { ffc08678: 93 c1 00 20 stw r30,32(r1) ffc0867c: 7c 9e 23 78 mr r30,r4 ffc08680: 90 01 00 2c stw r0,44(r1) ffc08684: 93 a1 00 1c stw r29,28(r1) ffc08688: 91 81 00 18 stw r12,24(r1) long adjustment; /* * Simple validations */ if ( !delta ) ffc0868c: 41 82 01 70 beq- ffc087fc rtems_set_errno_and_return_minus_one( EINVAL ); if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND ) ffc08690: 81 3f 00 04 lwz r9,4(r31) ffc08694: 3c 00 00 0f lis r0,15 ffc08698: 60 00 42 3f ori r0,r0,16959 ffc0869c: 7f 89 00 40 cmplw cr7,r9,r0 ffc086a0: 41 9d 01 5c bgt- cr7,ffc087fc rtems_set_errno_and_return_minus_one( EINVAL ); if ( olddelta ) { ffc086a4: 2e 04 00 00 cmpwi cr4,r4,0 ffc086a8: 41 92 00 14 beq- cr4,ffc086bc olddelta->tv_sec = 0; ffc086ac: 38 00 00 00 li r0,0 olddelta->tv_usec = 0; ffc086b0: 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; ffc086b4: 90 04 00 00 stw r0,0(r4) olddelta->tv_usec = 0; ffc086b8: 81 3f 00 04 lwz r9,4(r31) } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); ffc086bc: 80 1f 00 00 lwz r0,0(r31) ffc086c0: 54 0a 40 2e rlwinm r10,r0,8,0,23 ffc086c4: 54 0b 18 38 rlwinm r11,r0,3,0,28 ffc086c8: 7d 6b 50 50 subf r11,r11,r10 ffc086cc: 55 6a 30 32 rlwinm r10,r11,6,0,25 ffc086d0: 7d 6b 50 50 subf r11,r11,r10 ffc086d4: 7c 0b 02 14 add r0,r11,r0 adjustment += delta->tv_usec; /* too small to account for */ if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) ffc086d8: 3d 60 00 00 lis r11,0 olddelta->tv_sec = 0; olddelta->tv_usec = 0; } /* convert delta to microseconds */ adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND); ffc086dc: 54 00 30 32 rlwinm r0,r0,6,0,25 adjustment += delta->tv_usec; /* too small to account for */ if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) ffc086e0: 81 4b 20 ac lwz r10,8364(r11) ffc086e4: 7d 29 02 14 add r9,r9,r0 ffc086e8: 7f 89 50 40 cmplw cr7,r9,r10 ffc086ec: 40 9c 00 2c bge- cr7,ffc08718 _Thread_Enable_dispatch(); /* set the user's output */ if ( olddelta ) *olddelta = *delta; ffc086f0: 38 60 00 00 li r3,0 return 0; } ffc086f4: 80 01 00 2c lwz r0,44(r1) ffc086f8: 81 81 00 18 lwz r12,24(r1) ffc086fc: 7c 08 03 a6 mtlr r0 ffc08700: 83 a1 00 1c lwz r29,28(r1) ffc08704: 83 c1 00 20 lwz r30,32(r1) ffc08708: 7d 80 81 20 mtcrf 8,r12 ffc0870c: 83 e1 00 24 lwz r31,36(r1) ffc08710: 38 21 00 28 addi r1,r1,40 ffc08714: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08718: 3d 20 00 00 lis r9,0 ffc0871c: 81 69 28 b0 lwz r11,10416(r9) ffc08720: 38 0b 00 01 addi r0,r11,1 ffc08724: 90 09 28 b0 stw r0,10416(r9) * This prevents context switches while we are adjusting the TOD */ _Thread_Disable_dispatch(); _TOD_Get( &ts ); ffc08728: 3b a1 00 08 addi r29,r1,8 ffc0872c: 7f a3 eb 78 mr r3,r29 ffc08730: 48 00 1f 79 bl ffc0a6a8 <_TOD_Get> <== ALWAYS TAKEN ts.tv_sec += delta->tv_sec; ffc08734: 80 1f 00 00 lwz r0,0(r31) ffc08738: 81 61 00 08 lwz r11,8(r1) ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; ffc0873c: 81 41 00 0c lwz r10,12(r1) _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; ffc08740: 7d 6b 02 14 add r11,r11,r0 ffc08744: 91 61 00 08 stw r11,8(r1) ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc08748: 3c 00 3b 9a lis r0,15258 ffc0874c: 60 00 c9 ff ori r0,r0,51711 _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; ffc08750: 81 3f 00 04 lwz r9,4(r31) ffc08754: 1d 29 03 e8 mulli r9,r9,1000 ffc08758: 7d 29 52 14 add r9,r9,r10 /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc0875c: 7f 89 00 40 cmplw cr7,r9,r0 _Thread_Disable_dispatch(); _TOD_Get( &ts ); ts.tv_sec += delta->tv_sec; ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND; ffc08760: 91 21 00 0c stw r9,12(r1) /* if adjustment is too much positive */ while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { ffc08764: 40 9d 00 20 ble- cr7,ffc08784 ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND; ffc08768: 3d 29 c4 65 addis r9,r9,-15259 ffc0876c: 39 29 36 00 addi r9,r9,13824 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 ) { ffc08770: 7f 89 00 40 cmplw cr7,r9,r0 * At one point there was a static variable named adjustment * used by this implementation. I don't see any reason for it * to be here based upon the GNU/Linux documentation. */ int adjtime( ffc08774: 39 6b 00 01 addi r11,r11,1 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 ) { ffc08778: 41 9d ff f0 bgt+ cr7,ffc08768 <== NEVER TAKEN ffc0877c: 91 61 00 08 stw r11,8(r1) ffc08780: 91 21 00 0c stw r9,12(r1) 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) ) { ffc08784: 3c 00 c4 65 lis r0,-15259 ffc08788: 60 00 36 00 ori r0,r0,13824 ffc0878c: 7f 89 00 40 cmplw cr7,r9,r0 ffc08790: 41 9d 00 24 bgt- cr7,ffc087b4 <== NEVER TAKEN ffc08794: 81 61 00 08 lwz r11,8(r1) ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND; ffc08798: 3d 29 3b 9b addis r9,r9,15259 ffc0879c: 39 29 ca 00 addi r9,r9,-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) ) { ffc087a0: 7f 89 00 40 cmplw cr7,r9,r0 * At one point there was a static variable named adjustment * used by this implementation. I don't see any reason for it * to be here based upon the GNU/Linux documentation. */ int adjtime( ffc087a4: 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) ) { ffc087a8: 40 9d ff f0 ble+ cr7,ffc08798 ffc087ac: 91 21 00 0c stw r9,12(r1) ffc087b0: 91 61 00 08 stw r11,8(r1) ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND; ts.tv_sec--; } _TOD_Set( &ts ); ffc087b4: 7f a3 eb 78 mr r3,r29 ffc087b8: 48 00 1f cd bl ffc0a784 <_TOD_Set> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc087bc: 48 00 37 6d bl ffc0bf28 <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* set the user's output */ if ( olddelta ) ffc087c0: 41 b2 ff 30 beq- cr4,ffc086f0 <== NEVER TAKEN *olddelta = *delta; return 0; } ffc087c4: 80 01 00 2c lwz r0,44(r1) _Thread_Enable_dispatch(); /* set the user's output */ if ( olddelta ) *olddelta = *delta; ffc087c8: 38 60 00 00 li r3,0 ffc087cc: 81 3f 00 00 lwz r9,0(r31) return 0; } ffc087d0: 7c 08 03 a6 mtlr r0 _Thread_Enable_dispatch(); /* set the user's output */ if ( olddelta ) *olddelta = *delta; ffc087d4: 81 5f 00 04 lwz r10,4(r31) return 0; } ffc087d8: 81 81 00 18 lwz r12,24(r1) _Thread_Enable_dispatch(); /* set the user's output */ if ( olddelta ) *olddelta = *delta; ffc087dc: 91 3e 00 00 stw r9,0(r30) return 0; } ffc087e0: 7d 80 81 20 mtcrf 8,r12 _Thread_Enable_dispatch(); /* set the user's output */ if ( olddelta ) *olddelta = *delta; ffc087e4: 91 5e 00 04 stw r10,4(r30) return 0; } ffc087e8: 83 a1 00 1c lwz r29,28(r1) ffc087ec: 83 c1 00 20 lwz r30,32(r1) ffc087f0: 83 e1 00 24 lwz r31,36(r1) ffc087f4: 38 21 00 28 addi r1,r1,40 ffc087f8: 4e 80 00 20 blr <== ALWAYS TAKEN */ if ( !delta ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc087fc: 48 00 bb 3d bl ffc14338 <__errno> <== ALWAYS TAKEN ffc08800: 38 00 00 16 li r0,22 ffc08804: 90 03 00 00 stw r0,0(r3) ffc08808: 38 60 ff ff li r3,-1 ffc0880c: 4b ff fe e8 b ffc086f4 <== ALWAYS TAKEN ffc08374 : int aio_cancel( int filedes __attribute__((unused)), struct aiocb *aiocbp __attribute__((unused)) ) { ffc08374: 94 21 ff f8 stwu r1,-8(r1) ffc08378: 7c 08 02 a6 mflr r0 ffc0837c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08380: 48 00 be f1 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08384: 38 00 00 58 li r0,88 ffc08388: 90 03 00 00 stw r0,0(r3) } ffc0838c: 38 60 ff ff li r3,-1 ffc08390: 80 01 00 0c lwz r0,12(r1) ffc08394: 38 21 00 08 addi r1,r1,8 ffc08398: 7c 08 03 a6 mtlr r0 ffc0839c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc083a0 : #include int aio_error( const struct aiocb *aiocbp __attribute__((unused)) ) { ffc083a0: 94 21 ff f8 stwu r1,-8(r1) ffc083a4: 7c 08 02 a6 mflr r0 ffc083a8: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc083ac: 48 00 be c5 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc083b0: 38 00 00 58 li r0,88 ffc083b4: 90 03 00 00 stw r0,0(r3) } ffc083b8: 38 60 ff ff li r3,-1 ffc083bc: 80 01 00 0c lwz r0,12(r1) ffc083c0: 38 21 00 08 addi r1,r1,8 ffc083c4: 7c 08 03 a6 mtlr r0 ffc083c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc083cc : int aio_fsync( int op __attribute__((unused)), struct aiocb *aiocbp __attribute__((unused)) ) { ffc083cc: 94 21 ff f8 stwu r1,-8(r1) ffc083d0: 7c 08 02 a6 mflr r0 ffc083d4: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc083d8: 48 00 be 99 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc083dc: 38 00 00 58 li r0,88 ffc083e0: 90 03 00 00 stw r0,0(r3) } ffc083e4: 38 60 ff ff li r3,-1 ffc083e8: 80 01 00 0c lwz r0,12(r1) ffc083ec: 38 21 00 08 addi r1,r1,8 ffc083f0: 7c 08 03 a6 mtlr r0 ffc083f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc083f8 : #include int aio_read( struct aiocb *aiocbp __attribute__((unused)) ) { ffc083f8: 94 21 ff f8 stwu r1,-8(r1) ffc083fc: 7c 08 02 a6 mflr r0 ffc08400: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08404: 48 00 be 6d bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08408: 38 00 00 58 li r0,88 ffc0840c: 90 03 00 00 stw r0,0(r3) } ffc08410: 38 60 ff ff li r3,-1 ffc08414: 80 01 00 0c lwz r0,12(r1) ffc08418: 38 21 00 08 addi r1,r1,8 ffc0841c: 7c 08 03 a6 mtlr r0 ffc08420: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08424 : #include int aio_return( const struct aiocb *aiocbp __attribute__((unused)) ) { ffc08424: 94 21 ff f8 stwu r1,-8(r1) ffc08428: 7c 08 02 a6 mflr r0 ffc0842c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08430: 48 00 be 41 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08434: 38 00 00 58 li r0,88 ffc08438: 90 03 00 00 stw r0,0(r3) } ffc0843c: 38 60 ff ff li r3,-1 ffc08440: 80 01 00 0c lwz r0,12(r1) ffc08444: 38 21 00 08 addi r1,r1,8 ffc08448: 7c 08 03 a6 mtlr r0 ffc0844c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08450 : int aio_suspend( const struct aiocb * const list[] __attribute__((unused)), int nent __attribute__((unused)), const struct timespec *timeout __attribute__((unused)) ) { ffc08450: 94 21 ff f8 stwu r1,-8(r1) ffc08454: 7c 08 02 a6 mflr r0 ffc08458: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc0845c: 48 00 be 15 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08460: 38 00 00 58 li r0,88 ffc08464: 90 03 00 00 stw r0,0(r3) } ffc08468: 38 60 ff ff li r3,-1 ffc0846c: 80 01 00 0c lwz r0,12(r1) ffc08470: 38 21 00 08 addi r1,r1,8 ffc08474: 7c 08 03 a6 mtlr r0 ffc08478: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0847c : #include int aio_write( struct aiocb *aiocbp __attribute__((unused)) ) { ffc0847c: 94 21 ff f8 stwu r1,-8(r1) ffc08480: 7c 08 02 a6 mflr r0 ffc08484: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08488: 48 00 bd e9 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc0848c: 38 00 00 58 li r0,88 ffc08490: 90 03 00 00 stw r0,0(r3) } ffc08494: 38 60 ff ff li r3,-1 ffc08498: 80 01 00 0c lwz r0,12(r1) ffc0849c: 38 21 00 08 addi r1,r1,8 ffc084a0: 7c 08 03 a6 mtlr r0 ffc084a4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc116cc : } unsigned int alarm( unsigned int seconds ) { ffc116cc: 94 21 ff e8 stwu r1,-24(r1) ffc116d0: 7c 08 02 a6 mflr r0 ffc116d4: 93 e1 00 14 stw r31,20(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc116d8: 3f e0 00 00 lis r31,0 ffc116dc: 3b ff 35 24 addi r31,r31,13604 } unsigned int alarm( unsigned int seconds ) { ffc116e0: 90 01 00 1c stw r0,28(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc116e4: 80 1f 00 1c lwz r0,28(r31) } unsigned int alarm( unsigned int seconds ) { ffc116e8: 93 c1 00 10 stw r30,16(r1) ffc116ec: 7c 7e 1b 78 mr r30,r3 /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc116f0: 2f 80 00 00 cmpwi cr7,r0,0 } unsigned int alarm( unsigned int seconds ) { ffc116f4: 93 81 00 08 stw r28,8(r1) ffc116f8: 93 a1 00 0c stw r29,12(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc116fc: 41 9e 00 5c beq- cr7,ffc11758 _Watchdog_Initialize( the_timer, _POSIX_signals_Alarm_TSR, 0, NULL ); } else { Watchdog_States state; state = _Watchdog_Remove( the_timer ); ffc11700: 7f e3 fb 78 mr r3,r31 ffc11704: 4b ff b1 c5 bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) { ffc11708: 3b a0 00 00 li r29,0 ffc1170c: 38 63 ff fe addi r3,r3,-2 ffc11710: 2b 83 00 01 cmplwi cr7,r3,1 ffc11714: 40 9d 00 64 ble- cr7,ffc11778 remaining = the_timer->initial - ((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND); } } if ( seconds ) ffc11718: 2f 9e 00 00 cmpwi cr7,r30,0 ffc1171c: 41 be 00 18 beq+ cr7,ffc11734 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc11720: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc11724: 93 df 00 0c stw r30,12(r31) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc11728: 38 63 2d 3c addi r3,r3,11580 ffc1172c: 7f e4 fb 78 mr r4,r31 ffc11730: 4b ff af d1 bl ffc0c700 <_Watchdog_Insert> <== ALWAYS TAKEN _Watchdog_Insert_seconds( the_timer, seconds ); return remaining; } ffc11734: 80 01 00 1c lwz r0,28(r1) ffc11738: 7f a3 eb 78 mr r3,r29 ffc1173c: 83 81 00 08 lwz r28,8(r1) ffc11740: 7c 08 03 a6 mtlr r0 ffc11744: 83 a1 00 0c lwz r29,12(r1) ffc11748: 83 c1 00 10 lwz r30,16(r1) ffc1174c: 83 e1 00 14 lwz r31,20(r1) ffc11750: 38 21 00 18 addi r1,r1,24 ffc11754: 4e 80 00 20 blr <== ALWAYS TAKEN Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc11758: 3d 20 ff c1 lis r9,-63 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc1175c: 90 1f 00 24 stw r0,36(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc11760: 39 29 17 98 addi r9,r9,6040 ffc11764: 91 3f 00 1c stw r9,28(r31) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc11768: 3b a0 00 00 li r29,0 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc1176c: 90 1f 00 08 stw r0,8(r31) the_watchdog->routine = routine; the_watchdog->id = id; ffc11770: 90 1f 00 20 stw r0,32(r31) ffc11774: 4b ff ff a4 b ffc11718 <== ALWAYS TAKEN * 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); ffc11778: 83 bf 00 18 lwz r29,24(r31) ffc1177c: 80 1f 00 14 lwz r0,20(r31) * 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 - ffc11780: 83 9f 00 0c lwz r28,12(r31) ((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND); ffc11784: 7f a0 e8 50 subf r29,r0,r29 ffc11788: 48 00 0c f5 bl ffc1247c <== 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 - ffc1178c: 7f bd 1b 96 divwu r29,r29,r3 ffc11790: 7f bd e0 50 subf r29,r29,r28 ffc11794: 4b ff ff 84 b ffc11718 <== ALWAYS TAKEN ffc0df0c : ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0df0c: 94 21 ff e8 stwu r1,-24(r1) ffc0df10: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0df14: 93 e1 00 14 stw r31,20(r1) ffc0df18: 3f e0 00 00 lis r31,0 ffc0df1c: 3b ff 2b 00 addi r31,r31,11008 ffc0df20: 90 01 00 1c stw r0,28(r1) <== ALWAYS TAKEN ffc0df24: 81 3f 00 14 lwz r9,20(r31) <== ALWAYS TAKEN ffc0df28: 93 a1 00 0c stw r29,12(r1) length = nelem * elsize; ffc0df2c: 7f a4 19 d6 mullw r29,r4,r3 ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0df30: 38 09 00 01 addi r0,r9,1 ffc0df34: 93 c1 00 10 stw r30,16(r1) length = nelem * elsize; cptr = malloc( length ); ffc0df38: 7f a3 eb 78 mr r3,r29 ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); ffc0df3c: 90 1f 00 14 stw r0,20(r31) length = nelem * elsize; cptr = malloc( length ); ffc0df40: 4b ff 68 a9 bl ffc047e8 <== ALWAYS TAKEN if ( cptr ) ffc0df44: 7c 7e 1b 79 mr. r30,r3 <== ALWAYS TAKEN ffc0df48: 41 82 00 10 beq- ffc0df58 <== NEVER TAKEN memset( cptr, '\0', length ); ffc0df4c: 7f a5 eb 78 mr r5,r29 ffc0df50: 38 80 00 00 li r4,0 <== ALWAYS TAKEN ffc0df54: 48 00 61 0d bl ffc14060 <== ALWAYS TAKEN MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc0df58: 81 3f 00 04 lwz r9,4(r31) return cptr; } ffc0df5c: 7f c3 f3 78 mr r3,r30 ffc0df60: 83 a1 00 0c lwz r29,12(r1) length = nelem * elsize; cptr = malloc( length ); if ( cptr ) memset( cptr, '\0', length ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc0df64: 38 09 ff ff addi r0,r9,-1 return cptr; } ffc0df68: 83 c1 00 10 lwz r30,16(r1) length = nelem * elsize; cptr = malloc( length ); if ( cptr ) memset( cptr, '\0', length ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc0df6c: 90 1f 00 04 stw r0,4(r31) return cptr; } ffc0df70: 80 01 00 1c lwz r0,28(r1) ffc0df74: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc0df78: 38 21 00 18 addi r1,r1,24 ffc0df7c: 7c 08 03 a6 mtlr r0 ffc0df80: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2e7ec : #include int chdir( const char *pathname ) { ffc2e7ec: 94 21 ff d0 stwu r1,-48(r1) ffc2e7f0: 7c 08 02 a6 mflr r0 ffc2e7f4: 93 c1 00 28 stw r30,40(r1) ffc2e7f8: 7c 7e 1b 78 mr r30,r3 ffc2e7fc: 90 01 00 34 stw r0,52(r1) ffc2e800: 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 ); ffc2e804: 48 02 7a 35 bl ffc56238 <== ALWAYS TAKEN /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc2e808: 3b e1 00 08 addi r31,r1,8 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); ffc2e80c: 7c 64 1b 78 mr r4,r3 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( ffc2e810: 38 a0 00 01 li r5,1 ffc2e814: 7f c3 f3 78 mr r3,r30 ffc2e818: 7f e6 fb 78 mr r6,r31 ffc2e81c: 38 e0 00 01 li r7,1 ffc2e820: 4b fd a4 f5 bl ffc08d14 <== ALWAYS TAKEN pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) ffc2e824: 2f 83 00 00 cmpwi cr7,r3,0 ffc2e828: 38 60 ff ff li r3,-1 ffc2e82c: 40 9e 00 84 bne- cr7,ffc2e8b0 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { ffc2e830: 81 21 00 14 lwz r9,20(r1) ffc2e834: 80 09 00 10 lwz r0,16(r9) ffc2e838: 2f 80 00 00 cmpwi cr7,r0,0 ffc2e83c: 41 9e 00 c4 beq- cr7,ffc2e900 <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { ffc2e840: 7f e3 fb 78 mr r3,r31 ffc2e844: 7c 09 03 a6 mtctr r0 ffc2e848: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc2e84c: 2f 83 00 01 cmpwi cr7,r3,1 ffc2e850: 40 9e 00 78 bne- cr7,ffc2e8c8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); ffc2e854: 3f e0 00 00 lis r31,0 ffc2e858: 81 3f 35 2c lwz r9,13612(r31) ffc2e85c: 81 69 00 10 lwz r11,16(r9) ffc2e860: 2f 8b 00 00 cmpwi cr7,r11,0 ffc2e864: 41 9e 00 20 beq- cr7,ffc2e884 <== NEVER TAKEN ffc2e868: 80 0b 00 1c lwz r0,28(r11) ffc2e86c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2e870: 41 9e 00 14 beq- cr7,ffc2e884 <== NEVER TAKEN ffc2e874: 38 69 00 04 addi r3,r9,4 ffc2e878: 7c 09 03 a6 mtctr r0 ffc2e87c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc2e880: 81 3f 35 2c lwz r9,13612(r31) rtems_filesystem_current = loc; ffc2e884: 80 01 00 14 lwz r0,20(r1) ffc2e888: 38 60 00 00 li r3,0 ffc2e88c: 81 41 00 0c lwz r10,12(r1) ffc2e890: 81 61 00 10 lwz r11,16(r1) ffc2e894: 81 01 00 08 lwz r8,8(r1) ffc2e898: 91 49 00 08 stw r10,8(r9) ffc2e89c: 91 09 00 04 stw r8,4(r9) ffc2e8a0: 91 69 00 0c stw r11,12(r9) ffc2e8a4: 90 09 00 10 stw r0,16(r9) ffc2e8a8: 80 01 00 18 lwz r0,24(r1) ffc2e8ac: 90 09 00 14 stw r0,20(r9) return 0; } ffc2e8b0: 80 01 00 34 lwz r0,52(r1) ffc2e8b4: 83 c1 00 28 lwz r30,40(r1) ffc2e8b8: 7c 08 03 a6 mtlr r0 ffc2e8bc: 83 e1 00 2c lwz r31,44(r1) ffc2e8c0: 38 21 00 30 addi r1,r1,48 ffc2e8c4: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); ffc2e8c8: 81 21 00 14 lwz r9,20(r1) ffc2e8cc: 2f 89 00 00 cmpwi cr7,r9,0 ffc2e8d0: 41 9e 00 1c beq- cr7,ffc2e8ec <== NEVER TAKEN ffc2e8d4: 80 09 00 1c lwz r0,28(r9) ffc2e8d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc2e8dc: 41 9e 00 10 beq- cr7,ffc2e8ec <== NEVER TAKEN ffc2e8e0: 7f e3 fb 78 mr r3,r31 ffc2e8e4: 7c 09 03 a6 mtctr r0 ffc2e8e8: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc2e8ec: 48 01 fb 85 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc2e8f0: 38 00 00 14 li r0,20 ffc2e8f4: 90 03 00 00 stw r0,0(r3) ffc2e8f8: 38 60 ff ff li r3,-1 ffc2e8fc: 4b ff ff b4 b ffc2e8b0 <== ALWAYS TAKEN /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); ffc2e900: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2e904: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2e908: 41 9e 00 10 beq- cr7,ffc2e918 <== NOT EXECUTED ffc2e90c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2e910: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2e914: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2e918: 48 01 fb 59 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2e91c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2e920: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2e924: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2e928: 4b ff ff 88 b ffc2e8b0 <== NOT EXECUTED ffc0891c : int chmod( const char *path, mode_t mode ) { ffc0891c: 94 21 ff c8 stwu r1,-56(r1) ffc08920: 7c 08 02 a6 mflr r0 ffc08924: 93 a1 00 2c stw r29,44(r1) ffc08928: 7c 7d 1b 78 mr r29,r3 ffc0892c: 90 01 00 3c stw r0,60(r1) ffc08930: 93 c1 00 30 stw r30,48(r1) ffc08934: 7c 9e 23 78 mr r30,r4 ffc08938: 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 ); ffc0893c: 48 04 d8 fd bl ffc56238 <== ALWAYS TAKEN ffc08940: 3b e1 00 08 addi r31,r1,8 ffc08944: 7c 64 1b 78 mr r4,r3 ffc08948: 38 a0 00 00 li r5,0 ffc0894c: 7f a3 eb 78 mr r3,r29 ffc08950: 7f e6 fb 78 mr r6,r31 ffc08954: 38 e0 00 01 li r7,1 ffc08958: 48 00 03 bd bl ffc08d14 <== ALWAYS TAKEN if ( status != 0 ) ffc0895c: 3b a0 ff ff li r29,-1 ffc08960: 2f 83 00 00 cmpwi cr7,r3,0 ffc08964: 40 9e 00 54 bne- cr7,ffc089b8 return -1; if ( !loc.handlers ){ ffc08968: 81 21 00 10 lwz r9,16(r1) ffc0896c: 2f 89 00 00 cmpwi cr7,r9,0 ffc08970: 41 9e 00 a0 beq- cr7,ffc08a10 <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ ffc08974: 80 09 00 1c lwz r0,28(r9) ffc08978: 2f 80 00 00 cmpwi cr7,r0,0 ffc0897c: 41 9e 00 5c beq- cr7,ffc089d8 <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); ffc08980: 7f c4 f3 78 mr r4,r30 ffc08984: 7c 09 03 a6 mtctr r0 ffc08988: 7f e3 fb 78 mr r3,r31 ffc0898c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc08990: 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 ); ffc08994: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc08998: 2f 89 00 00 cmpwi cr7,r9,0 ffc0899c: 41 9e 00 1c beq- cr7,ffc089b8 <== NEVER TAKEN ffc089a0: 80 09 00 1c lwz r0,28(r9) ffc089a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc089a8: 41 9e 00 10 beq- cr7,ffc089b8 <== NEVER TAKEN ffc089ac: 7f e3 fb 78 mr r3,r31 ffc089b0: 7c 09 03 a6 mtctr r0 ffc089b4: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc089b8: 80 01 00 3c lwz r0,60(r1) ffc089bc: 7f a3 eb 78 mr r3,r29 ffc089c0: 83 c1 00 30 lwz r30,48(r1) ffc089c4: 7c 08 03 a6 mtlr r0 ffc089c8: 83 a1 00 2c lwz r29,44(r1) ffc089cc: 83 e1 00 34 lwz r31,52(r1) ffc089d0: 38 21 00 38 addi r1,r1,56 ffc089d4: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); ffc089d8: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc089dc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc089e0: 41 9e 00 1c beq- cr7,ffc089fc <== NOT EXECUTED ffc089e4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc089e8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc089ec: 41 9e 00 10 beq- cr7,ffc089fc <== NOT EXECUTED ffc089f0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc089f4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc089f8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc089fc: 48 04 5a 75 bl ffc4e470 <__errno> <== NOT EXECUTED ffc08a00: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08a04: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc08a08: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc08a0c: 4b ff ff ac b ffc089b8 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); ffc08a10: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc08a14: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc08a18: 41 9e 00 1c beq- cr7,ffc08a34 <== NOT EXECUTED ffc08a1c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc08a20: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc08a24: 41 9e 00 10 beq- cr7,ffc08a34 <== NOT EXECUTED ffc08a28: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc08a2c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc08a30: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); ffc08a34: 48 04 5a 3d bl ffc4e470 <__errno> <== NOT EXECUTED ffc08a38: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc08a3c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc08a40: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc08a44: 4b ff ff 74 b ffc089b8 <== NOT EXECUTED ffc2e92c : int chown( const char *path, uid_t owner, gid_t group ) { ffc2e92c: 94 21 ff c8 stwu r1,-56(r1) ffc2e930: 7c 08 02 a6 mflr r0 ffc2e934: 93 81 00 28 stw r28,40(r1) ffc2e938: 7c 7c 1b 78 mr r28,r3 ffc2e93c: 90 01 00 3c stw r0,60(r1) ffc2e940: 93 a1 00 2c stw r29,44(r1) ffc2e944: 7c 9d 23 78 mr r29,r4 ffc2e948: 93 c1 00 30 stw r30,48(r1) ffc2e94c: 7c be 2b 78 mr r30,r5 ffc2e950: 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 ) ) ffc2e954: 48 02 78 e5 bl ffc56238 <== ALWAYS TAKEN ffc2e958: 3b e1 00 08 addi r31,r1,8 ffc2e95c: 7c 64 1b 78 mr r4,r3 ffc2e960: 38 a0 00 00 li r5,0 ffc2e964: 7f 83 e3 78 mr r3,r28 ffc2e968: 7f e6 fb 78 mr r6,r31 ffc2e96c: 38 e0 00 01 li r7,1 ffc2e970: 4b fd a3 a5 bl ffc08d14 <== ALWAYS TAKEN ffc2e974: 3b 80 ff ff li r28,-1 ffc2e978: 2f 83 00 00 cmpwi cr7,r3,0 ffc2e97c: 40 9e 00 50 bne- cr7,ffc2e9cc return -1; if ( !loc.ops->chown_h ) { ffc2e980: 81 21 00 14 lwz r9,20(r1) ffc2e984: 80 09 00 18 lwz r0,24(r9) ffc2e988: 2f 80 00 00 cmpwi cr7,r0,0 ffc2e98c: 41 9e 00 64 beq- cr7,ffc2e9f0 <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); ffc2e990: 7f a4 eb 78 mr r4,r29 ffc2e994: 7c 09 03 a6 mtctr r0 ffc2e998: 7f c5 f3 78 mr r5,r30 ffc2e99c: 7f e3 fb 78 mr r3,r31 ffc2e9a0: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc2e9a4: 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 ); ffc2e9a8: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc2e9ac: 2f 89 00 00 cmpwi cr7,r9,0 ffc2e9b0: 41 9e 00 1c beq- cr7,ffc2e9cc <== NEVER TAKEN ffc2e9b4: 80 09 00 1c lwz r0,28(r9) ffc2e9b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc2e9bc: 41 9e 00 10 beq- cr7,ffc2e9cc <== NEVER TAKEN ffc2e9c0: 7f e3 fb 78 mr r3,r31 ffc2e9c4: 7c 09 03 a6 mtctr r0 ffc2e9c8: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc2e9cc: 80 01 00 3c lwz r0,60(r1) ffc2e9d0: 7f 83 e3 78 mr r3,r28 ffc2e9d4: 83 a1 00 2c lwz r29,44(r1) ffc2e9d8: 7c 08 03 a6 mtlr r0 ffc2e9dc: 83 81 00 28 lwz r28,40(r1) ffc2e9e0: 83 c1 00 30 lwz r30,48(r1) ffc2e9e4: 83 e1 00 34 lwz r31,52(r1) ffc2e9e8: 38 21 00 38 addi r1,r1,56 ffc2e9ec: 4e 80 00 20 blr <== ALWAYS TAKEN if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); ffc2e9f0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2e9f4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2e9f8: 41 9e 00 10 beq- cr7,ffc2ea08 <== NOT EXECUTED ffc2e9fc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2ea00: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2ea04: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2ea08: 48 01 fa 69 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2ea0c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2ea10: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2ea14: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc2ea18: 4b ff ff b4 b ffc2e9cc <== NOT EXECUTED ffc2ea1c : #include int chroot( const char *pathname ) { ffc2ea1c: 94 21 ff c8 stwu r1,-56(r1) ffc2ea20: 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) { ffc2ea24: 3d 20 00 00 lis r9,0 #include int chroot( const char *pathname ) { ffc2ea28: 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) { ffc2ea2c: 3f e0 00 00 lis r31,0 #include int chroot( const char *pathname ) { ffc2ea30: 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) { ffc2ea34: 83 df 35 2c lwz r30,13612(r31) #include int chroot( const char *pathname ) { ffc2ea38: 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) { ffc2ea3c: 38 09 63 dc addi r0,r9,25564 ffc2ea40: 7f 9e 00 00 cmpw cr7,r30,r0 #include int chroot( const char *pathname ) { ffc2ea44: 93 a1 00 2c stw r29,44(r1) ffc2ea48: 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) { ffc2ea4c: 41 9e 00 b0 beq- cr7,ffc2eafc <== ALWAYS TAKEN rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = chdir(pathname); ffc2ea50: 7f a3 eb 78 mr r3,r29 ffc2ea54: 4b ff fd 99 bl ffc2e7ec <== ALWAYS TAKEN if (result) { ffc2ea58: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ea5c: 40 9e 00 c4 bne- cr7,ffc2eb20 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc2ea60: 3c 60 ff c7 lis r3,-57 ffc2ea64: 38 63 be dc addi r3,r3,-16676 ffc2ea68: 38 80 00 01 li r4,1 ffc2ea6c: 38 a0 00 00 li r5,0 ffc2ea70: 38 c1 00 08 addi r6,r1,8 ffc2ea74: 38 e0 00 00 li r7,0 ffc2ea78: 4b fd a2 9d bl ffc08d14 <== ALWAYS TAKEN ffc2ea7c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ea80: 40 9e 00 a0 bne- cr7,ffc2eb20 <== NEVER TAKEN /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); } rtems_filesystem_freenode(&rtems_filesystem_root); ffc2ea84: 81 3f 35 2c lwz r9,13612(r31) ffc2ea88: 81 69 00 24 lwz r11,36(r9) ffc2ea8c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc2ea90: 41 9e 00 24 beq- cr7,ffc2eab4 <== NEVER TAKEN ffc2ea94: 80 0b 00 1c lwz r0,28(r11) ffc2ea98: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ea9c: 41 9e 00 18 beq- cr7,ffc2eab4 <== NEVER TAKEN ffc2eaa0: 38 69 00 18 addi r3,r9,24 ffc2eaa4: 7c 09 03 a6 mtctr r0 ffc2eaa8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc2eaac: 3d 20 00 00 lis r9,0 ffc2eab0: 81 29 35 2c lwz r9,13612(r9) rtems_filesystem_root = loc; ffc2eab4: 80 01 00 14 lwz r0,20(r1) ffc2eab8: 38 60 00 00 li r3,0 ffc2eabc: 81 41 00 0c lwz r10,12(r1) ffc2eac0: 81 61 00 10 lwz r11,16(r1) ffc2eac4: 81 01 00 08 lwz r8,8(r1) ffc2eac8: 91 49 00 1c stw r10,28(r9) ffc2eacc: 91 09 00 18 stw r8,24(r9) ffc2ead0: 91 69 00 20 stw r11,32(r9) ffc2ead4: 90 09 00 24 stw r0,36(r9) ffc2ead8: 80 01 00 18 lwz r0,24(r1) ffc2eadc: 90 09 00 28 stw r0,40(r9) return 0; } ffc2eae0: 80 01 00 3c lwz r0,60(r1) ffc2eae4: 83 a1 00 2c lwz r29,44(r1) ffc2eae8: 7c 08 03 a6 mtlr r0 ffc2eaec: 83 c1 00 30 lwz r30,48(r1) ffc2eaf0: 83 e1 00 34 lwz r31,52(r1) ffc2eaf4: 38 21 00 38 addi r1,r1,56 ffc2eaf8: 4e 80 00 20 blr <== ALWAYS TAKEN int result; rtems_filesystem_location_info_t loc; /* an automatic call to new private env the first time */ if (rtems_current_user_env == &rtems_global_user_env) { rtems_libio_set_private_env(); /* try to set a new private env*/ ffc2eafc: 48 00 1f c9 bl ffc30ac4 <== ALWAYS TAKEN if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ ffc2eb00: 80 1f 35 2c lwz r0,13612(r31) ffc2eb04: 7f 80 f0 00 cmpw cr7,r0,r30 ffc2eb08: 40 9e ff 48 bne+ cr7,ffc2ea50 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2eb0c: 48 01 f9 65 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2eb10: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2eb14: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2eb18: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2eb1c: 4b ff ff c4 b ffc2eae0 <== NOT EXECUTED } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); ffc2eb20: 48 01 f9 51 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2eb24: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc2eb28: 48 01 f9 49 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2eb2c: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc2eb30: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2eb34: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED ffc2eb38: 4b ff ff a8 b ffc2eae0 <== NOT EXECUTED ffc084a8 : int clock_getcpuclockid( pid_t pid, clockid_t *clock_id ) { ffc084a8: 94 21 ff f8 stwu r1,-8(r1) ffc084ac: 7c 08 02 a6 mflr r0 ffc084b0: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc084b4: 48 00 bd bd bl ffc14270 <__errno> <== ALWAYS TAKEN ffc084b8: 38 00 00 58 li r0,88 ffc084bc: 90 03 00 00 stw r0,0(r3) } ffc084c0: 38 60 ff ff li r3,-1 ffc084c4: 80 01 00 0c lwz r0,12(r1) ffc084c8: 38 21 00 08 addi r1,r1,8 ffc084cc: 7c 08 03 a6 mtlr r0 ffc084d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc084d4 : int clock_getenable_attr( clockid_t clock_id, int *attr ) { ffc084d4: 94 21 ff f8 stwu r1,-8(r1) ffc084d8: 7c 08 02 a6 mflr r0 ffc084dc: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc084e0: 48 00 bd 91 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc084e4: 38 00 00 58 li r0,88 ffc084e8: 90 03 00 00 stw r0,0(r3) } ffc084ec: 38 60 ff ff li r3,-1 ffc084f0: 80 01 00 0c lwz r0,12(r1) ffc084f4: 38 21 00 08 addi r1,r1,8 ffc084f8: 7c 08 03 a6 mtlr r0 ffc084fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d94 : int clock_getres( clockid_t clock_id, struct timespec *res ) { if ( !res ) ffc08d94: 2c 04 00 00 cmpwi r4,0 int clock_getres( clockid_t clock_id, struct timespec *res ) { ffc08d98: 94 21 ff f8 stwu r1,-8(r1) ffc08d9c: 7c 08 02 a6 mflr r0 ffc08da0: 90 01 00 0c stw r0,12(r1) if ( !res ) ffc08da4: 41 82 00 48 beq- ffc08dec rtems_set_errno_and_return_minus_one( EINVAL ); switch ( clock_id ) { ffc08da8: 38 63 ff ff addi r3,r3,-1 ffc08dac: 2b 83 00 02 cmplwi cr7,r3,2 ffc08db0: 41 9d 00 3c bgt- cr7,ffc08dec case CLOCK_REALTIME: case CLOCK_PROCESS_CPUTIME: case CLOCK_THREAD_CPUTIME: if ( res ) { res->tv_sec = rtems_configuration_get_microseconds_per_tick() / ffc08db4: 3d 20 00 00 lis r9,0 ffc08db8: 80 09 20 ac lwz r0,8364(r9) ffc08dbc: 3d 20 43 1b lis r9,17179 ffc08dc0: 61 29 de 83 ori r9,r9,56963 ffc08dc4: 7d 20 48 16 mulhwu r9,r0,r9 TOD_MICROSECONDS_PER_SECOND; res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick(); ffc08dc8: 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() / ffc08dcc: 55 29 74 be rlwinm r9,r9,14,18,31 TOD_MICROSECONDS_PER_SECOND; res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick(); ffc08dd0: 90 04 00 04 stw r0,4(r4) ffc08dd4: 38 60 00 00 li r3,0 case CLOCK_REALTIME: case CLOCK_PROCESS_CPUTIME: case CLOCK_THREAD_CPUTIME: if ( res ) { res->tv_sec = rtems_configuration_get_microseconds_per_tick() / ffc08dd8: 91 24 00 00 stw r9,0(r4) default: rtems_set_errno_and_return_minus_one( EINVAL ); } return 0; } ffc08ddc: 80 01 00 0c lwz r0,12(r1) ffc08de0: 38 21 00 08 addi r1,r1,8 ffc08de4: 7c 08 03 a6 mtlr r0 ffc08de8: 4e 80 00 20 blr <== ALWAYS TAKEN res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick(); } break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc08dec: 48 00 bc 45 bl ffc14a30 <__errno> <== ALWAYS TAKEN ffc08df0: 38 00 00 16 li r0,22 ffc08df4: 90 03 00 00 stw r0,0(r3) ffc08df8: 38 60 ff ff li r3,-1 ffc08dfc: 4b ff ff e0 b ffc08ddc <== ALWAYS TAKEN ffc08568 : int clock_gettime( clockid_t clock_id, struct timespec *tp ) { if ( !tp ) ffc08568: 2c 04 00 00 cmpwi r4,0 int clock_gettime( clockid_t clock_id, struct timespec *tp ) { ffc0856c: 94 21 ff f8 stwu r1,-8(r1) ffc08570: 7c 08 02 a6 mflr r0 ffc08574: 90 01 00 0c stw r0,12(r1) if ( !tp ) ffc08578: 41 82 00 24 beq- ffc0859c rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { ffc0857c: 2f 83 00 01 cmpwi cr7,r3,1 ffc08580: 41 9e 00 78 beq- cr7,ffc085f8 _TOD_Get(tp); return 0; } #ifdef CLOCK_MONOTONIC if ( clock_id == CLOCK_MONOTONIC ) { ffc08584: 2f 83 00 04 cmpwi cr7,r3,4 ffc08588: 41 9e 00 54 beq- cr7,ffc085dc <== NEVER TAKEN return 0; } #endif #ifdef _POSIX_CPUTIME if ( clock_id == CLOCK_PROCESS_CPUTIME ) { ffc0858c: 2f 83 00 02 cmpwi cr7,r3,2 ffc08590: 41 9e 00 4c beq- cr7,ffc085dc return 0; } #endif #ifdef _POSIX_THREAD_CPUTIME if ( clock_id == CLOCK_THREAD_CPUTIME ) ffc08594: 2f 83 00 03 cmpwi cr7,r3,3 ffc08598: 41 9e 00 24 beq- cr7,ffc085bc rtems_set_errno_and_return_minus_one( ENOSYS ); #endif rtems_set_errno_and_return_minus_one( EINVAL ); ffc0859c: 48 00 c3 a5 bl ffc14940 <__errno> <== ALWAYS TAKEN ffc085a0: 38 00 00 16 li r0,22 ffc085a4: 90 03 00 00 stw r0,0(r3) ffc085a8: 38 60 ff ff li r3,-1 return 0; } ffc085ac: 80 01 00 0c lwz r0,12(r1) ffc085b0: 38 21 00 08 addi r1,r1,8 ffc085b4: 7c 08 03 a6 mtlr r0 ffc085b8: 4e 80 00 20 blr <== ALWAYS TAKEN } #endif #ifdef _POSIX_THREAD_CPUTIME if ( clock_id == CLOCK_THREAD_CPUTIME ) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc085bc: 48 00 c3 85 bl ffc14940 <__errno> <== ALWAYS TAKEN ffc085c0: 38 00 00 58 li r0,88 ffc085c4: 90 03 00 00 stw r0,0(r3) ffc085c8: 38 60 ff ff li r3,-1 #endif rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } ffc085cc: 80 01 00 0c lwz r0,12(r1) ffc085d0: 38 21 00 08 addi r1,r1,8 ffc085d4: 7c 08 03 a6 mtlr r0 ffc085d8: 4e 80 00 20 blr <== ALWAYS TAKEN } #endif #ifdef _POSIX_CPUTIME if ( clock_id == CLOCK_PROCESS_CPUTIME ) { _TOD_Get_uptime_as_timespec( tp ); ffc085dc: 7c 83 23 78 mr r3,r4 ffc085e0: 48 00 29 51 bl ffc0af30 <_TOD_Get_uptime_as_timespec> <== ALWAYS TAKEN #endif rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } ffc085e4: 80 01 00 0c lwz r0,12(r1) } #endif #ifdef _POSIX_CPUTIME if ( clock_id == CLOCK_PROCESS_CPUTIME ) { _TOD_Get_uptime_as_timespec( tp ); ffc085e8: 38 60 00 00 li r3,0 #endif rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } ffc085ec: 7c 08 03 a6 mtlr r0 ffc085f0: 38 21 00 08 addi r1,r1,8 ffc085f4: 4e 80 00 20 blr <== ALWAYS TAKEN { if ( !tp ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { _TOD_Get(tp); ffc085f8: 7c 83 23 78 mr r3,r4 ffc085fc: 48 00 28 91 bl ffc0ae8c <_TOD_Get> <== ALWAYS TAKEN ffc08600: 38 60 00 00 li r3,0 return 0; ffc08604: 4b ff ff a8 b ffc085ac <== ALWAYS TAKEN ffc08500 : int clock_setenable_attr( clockid_t clock_id, int attr ) { ffc08500: 94 21 ff f8 stwu r1,-8(r1) ffc08504: 7c 08 02 a6 mflr r0 ffc08508: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc0850c: 48 00 bd 65 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08510: 38 00 00 58 li r0,88 ffc08514: 90 03 00 00 stw r0,0(r3) } ffc08518: 38 60 ff ff li r3,-1 ffc0851c: 80 01 00 0c lwz r0,12(r1) ffc08520: 38 21 00 08 addi r1,r1,8 ffc08524: 7c 08 03 a6 mtlr r0 ffc08528: 4e 80 00 20 blr <== ALWAYS TAKEN ffc31330 : int clock_settime( clockid_t clock_id, const struct timespec *tp ) { if ( !tp ) ffc31330: 2c 04 00 00 cmpwi r4,0 int clock_settime( clockid_t clock_id, const struct timespec *tp ) { ffc31334: 94 21 ff f8 stwu r1,-8(r1) ffc31338: 7c 08 02 a6 mflr r0 ffc3133c: 90 01 00 0c stw r0,12(r1) if ( !tp ) ffc31340: 41 82 00 1c beq- ffc3135c <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { ffc31344: 2f 83 00 01 cmpwi cr7,r3,1 ffc31348: 41 9e 00 34 beq- cr7,ffc3137c _Thread_Disable_dispatch(); _TOD_Set( tp ); _Thread_Enable_dispatch(); } #ifdef _POSIX_CPUTIME else if ( clock_id == CLOCK_PROCESS_CPUTIME ) ffc3134c: 2f 83 00 02 cmpwi cr7,r3,2 ffc31350: 41 9e 00 70 beq- cr7,ffc313c0 rtems_set_errno_and_return_minus_one( ENOSYS ); #endif #ifdef _POSIX_THREAD_CPUTIME else if ( clock_id == CLOCK_THREAD_CPUTIME ) ffc31354: 2f 83 00 03 cmpwi cr7,r3,3 ffc31358: 41 9e 00 68 beq- cr7,ffc313c0 rtems_set_errno_and_return_minus_one( ENOSYS ); #endif else rtems_set_errno_and_return_minus_one( EINVAL ); ffc3135c: 48 01 d1 15 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc31360: 38 00 00 16 li r0,22 ffc31364: 90 03 00 00 stw r0,0(r3) ffc31368: 38 60 ff ff li r3,-1 return 0; } ffc3136c: 80 01 00 0c lwz r0,12(r1) ffc31370: 38 21 00 08 addi r1,r1,8 ffc31374: 7c 08 03 a6 mtlr r0 ffc31378: 4e 80 00 20 blr <== ALWAYS TAKEN { if ( !tp ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( clock_id == CLOCK_REALTIME ) { if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 ) ffc3137c: 81 24 00 00 lwz r9,0(r4) ffc31380: 3c 00 21 da lis r0,8666 ffc31384: 60 00 e4 ff ori r0,r0,58623 ffc31388: 7f 89 00 40 cmplw cr7,r9,r0 ffc3138c: 40 bd ff d0 ble- cr7,ffc3135c rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc31390: 3d 20 00 00 lis r9,0 ffc31394: 81 69 36 18 lwz r11,13848(r9) ffc31398: 38 0b 00 01 addi r0,r11,1 ffc3139c: 90 09 36 18 stw r0,13848(r9) rtems_set_errno_and_return_minus_one( EINVAL ); _Thread_Disable_dispatch(); _TOD_Set( tp ); ffc313a0: 7c 83 23 78 mr r3,r4 ffc313a4: 48 00 25 8d bl ffc33930 <_TOD_Set> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc313a8: 4b fe 00 31 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN #endif else rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } ffc313ac: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 ) rtems_set_errno_and_return_minus_one( EINVAL ); _Thread_Disable_dispatch(); _TOD_Set( tp ); _Thread_Enable_dispatch(); ffc313b0: 38 60 00 00 li r3,0 #endif else rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } ffc313b4: 7c 08 03 a6 mtlr r0 ffc313b8: 38 21 00 08 addi r1,r1,8 ffc313bc: 4e 80 00 20 blr <== ALWAYS TAKEN else if ( clock_id == CLOCK_PROCESS_CPUTIME ) rtems_set_errno_and_return_minus_one( ENOSYS ); #endif #ifdef _POSIX_THREAD_CPUTIME else if ( clock_id == CLOCK_THREAD_CPUTIME ) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc313c0: 48 01 d0 b1 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc313c4: 38 00 00 58 li r0,88 ffc313c8: 90 03 00 00 stw r0,0(r3) ffc313cc: 38 60 ff ff li r3,-1 #endif else rtems_set_errno_and_return_minus_one( EINVAL ); return 0; } ffc313d0: 80 01 00 0c lwz r0,12(r1) ffc313d4: 38 21 00 08 addi r1,r1,8 ffc313d8: 7c 08 03 a6 mtlr r0 ffc313dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0df84 : #include int close( int fd ) { ffc0df84: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0df88: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0df8c: 3d 20 00 00 lis r9,0 #include int close( int fd ) { ffc0df90: 90 01 00 14 stw r0,20(r1) <== ALWAYS TAKEN rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0df94: 80 09 26 8c lwz r0,9868(r9) #include int close( int fd ) { ffc0df98: 93 c1 00 08 stw r30,8(r1) rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0df9c: 7f 83 00 40 cmplw cr7,r3,r0 #include int close( int fd ) { ffc0dfa0: 93 e1 00 0c stw r31,12(r1) rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); ffc0dfa4: 40 9c 00 8c bge- cr7,ffc0e030 iop = rtems_libio_iop(fd); ffc0dfa8: 3d 20 00 00 lis r9,0 ffc0dfac: 83 e9 27 4c lwz r31,10060(r9) ffc0dfb0: 1c 63 00 48 mulli r3,r3,72 ffc0dfb4: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc0dfb8: 80 1f 00 18 lwz r0,24(r31) ffc0dfbc: 70 09 01 00 andi. r9,r0,256 ffc0dfc0: 41 82 00 70 beq- ffc0e030 rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) ffc0dfc4: 81 3f 00 40 lwz r9,64(r31) <== ALWAYS TAKEN ffc0dfc8: 3b c0 00 00 li r30,0 <== ALWAYS TAKEN ffc0dfcc: 80 09 00 04 lwz r0,4(r9) ffc0dfd0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dfd4: 41 9e 00 14 beq- cr7,ffc0dfe8 <== NEVER TAKEN rc = (*iop->handlers->close_h)( iop ); ffc0dfd8: 7f e3 fb 78 mr r3,r31 ffc0dfdc: 7c 09 03 a6 mtctr r0 ffc0dfe0: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0dfe4: 7c 7e 1b 78 mr r30,r3 rtems_filesystem_freenode( &iop->pathinfo ); ffc0dfe8: 81 3f 00 28 lwz r9,40(r31) ffc0dfec: 2f 89 00 00 cmpwi cr7,r9,0 ffc0dff0: 41 9e 00 1c beq- cr7,ffc0e00c <== NEVER TAKEN ffc0dff4: 80 09 00 1c lwz r0,28(r9) ffc0dff8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dffc: 41 9e 00 10 beq- cr7,ffc0e00c ffc0e000: 38 7f 00 1c addi r3,r31,28 <== ALWAYS TAKEN ffc0e004: 7c 09 03 a6 mtctr r0 ffc0e008: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_libio_free( iop ); ffc0e00c: 7f e3 fb 78 mr r3,r31 ffc0e010: 48 00 03 f5 bl ffc0e404 <== ALWAYS TAKEN return rc; } ffc0e014: 80 01 00 14 lwz r0,20(r1) ffc0e018: 7f c3 f3 78 mr r3,r30 ffc0e01c: 83 e1 00 0c lwz r31,12(r1) ffc0e020: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e024: 83 c1 00 08 lwz r30,8(r1) ffc0e028: 38 21 00 10 addi r1,r1,16 ffc0e02c: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); ffc0e030: 48 00 53 49 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0e034: 38 00 00 09 li r0,9 ffc0e038: 90 03 00 00 stw r0,0(r3) ffc0e03c: 3b c0 ff ff li r30,-1 ffc0e040: 4b ff ff d4 b ffc0e014 <== ALWAYS TAKEN ffc0caa0 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { ffc0caa0: 94 21 ff e8 stwu r1,-24(r1) ffc0caa4: 7c 08 02 a6 mflr r0 ffc0caa8: 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; ffc0caac: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc0cab0: 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; ffc0cab4: 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; ffc0cab8: 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; ffc0cabc: 81 23 00 3c lwz r9,60(r3) args.iop = iop; ffc0cac0: 90 61 00 08 stw r3,8(r1) args.flags = 0; args.mode = 0; status = rtems_io_close( ffc0cac4: 80 89 00 0c lwz r4,12(r9) ffc0cac8: 80 69 00 08 lwz r3,8(r9) ffc0cacc: 48 00 18 d5 bl ffc0e3a0 <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) { ffc0cad0: 38 00 00 00 li r0,0 ffc0cad4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cad8: 41 be 00 0c beq+ cr7,ffc0cae4 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc0cadc: 48 00 01 7d bl ffc0cc58 <== NOT EXECUTED ffc0cae0: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc0cae4: 7c 03 03 78 mr r3,r0 ffc0cae8: 80 01 00 1c lwz r0,28(r1) ffc0caec: 38 21 00 18 addi r1,r1,24 ffc0caf0: 7c 08 03 a6 mtlr r0 ffc0caf4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0caf8 : rtems_filesystem_location_info_t *pathloc, const char **name ) { /* we do nothing, just set name to path */ *name = path; ffc0caf8: 90 65 00 00 stw r3,0(r5) return 0; } ffc0cafc: 38 60 00 00 li r3,0 ffc0cb00: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cb04 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0cb04: 94 21 ff d8 stwu r1,-40(r1) ffc0cb08: 7c 08 02 a6 mflr r0 ffc0cb0c: 93 a1 00 1c stw r29,28(r1) assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; ffc0cb10: 83 a6 00 00 lwz r29,0(r6) const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0cb14: 93 01 00 08 stw r24,8(r1) ffc0cb18: 7c d8 33 78 mr r24,r6 rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) ffc0cb1c: 2f 9d 00 00 cmpwi cr7,r29,0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { ffc0cb20: 93 41 00 10 stw r26,16(r1) ffc0cb24: 7c 7a 1b 78 mr r26,r3 ffc0cb28: 93 81 00 18 stw r28,24(r1) ffc0cb2c: 7c 9c 23 78 mr r28,r4 ffc0cb30: 90 01 00 2c stw r0,44(r1) ffc0cb34: 93 21 00 0c stw r25,12(r1) ffc0cb38: 93 61 00 14 stw r27,20(r1) ffc0cb3c: 93 c1 00 20 stw r30,32(r1) ffc0cb40: 93 e1 00 24 stw r31,36(r1) rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) ffc0cb44: 41 9e 01 00 beq- cr7,ffc0cc44 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { ffc0cb48: 3d 20 00 00 lis r9,0 ffc0cb4c: 83 69 26 b0 lwz r27,9904(r9) } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); ffc0cb50: 38 00 00 00 li r0,0 ffc0cb54: 3b e0 00 00 li r31,0 for (i = 0; i < rtems_device_table_size; i++) { ffc0cb58: 2f 9b 00 00 cmpwi cr7,r27,0 ffc0cb5c: 41 9e 00 4c beq- cr7,ffc0cba8 <== NEVER TAKEN if (!device_name_table[i].device_name) ffc0cb60: 1c 00 00 14 mulli r0,r0,20 ffc0cb64: 7f dd 00 2e lwzx r30,r29,r0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0cb68: 7f 43 d3 78 mr r3,r26 ffc0cb6c: 7f 85 e3 78 mr r5,r28 device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) ffc0cb70: 2f 9e 00 00 cmpwi cr7,r30,0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0cb74: 7f c4 f3 78 mr r4,r30 /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { ffc0cb78: 3b ff 00 01 addi r31,r31,1 if (!device_name_table[i].device_name) ffc0cb7c: 7f 3d 02 14 add r25,r29,r0 ffc0cb80: 41 9e 00 1c beq- cr7,ffc0cb9c continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) ffc0cb84: 48 00 48 79 bl ffc113fc <== ALWAYS TAKEN ffc0cb88: 2f 83 00 00 cmpwi cr7,r3,0 ffc0cb8c: 40 9e 00 10 bne- cr7,ffc0cb9c <== NEVER TAKEN continue; if (device_name_table[i].device_name[pathnamelen] != '\0') ffc0cb90: 7c 1e e0 ae lbzx r0,r30,r28 ffc0cb94: 2f 80 00 00 cmpwi cr7,r0,0 ffc0cb98: 41 9e 00 50 beq- cr7,ffc0cbe8 <== 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++) { ffc0cb9c: 7f 9b f8 40 cmplw cr7,r27,r31 ffc0cba0: 7f e0 fb 78 mr r0,r31 ffc0cba4: 41 9d ff bc bgt+ cr7,ffc0cb60 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); ffc0cba8: 48 00 37 55 bl ffc102fc <__errno> <== ALWAYS TAKEN ffc0cbac: 38 00 00 02 li r0,2 ffc0cbb0: 90 03 00 00 stw r0,0(r3) ffc0cbb4: 38 60 ff ff li r3,-1 } ffc0cbb8: 80 01 00 2c lwz r0,44(r1) ffc0cbbc: 83 01 00 08 lwz r24,8(r1) ffc0cbc0: 7c 08 03 a6 mtlr r0 ffc0cbc4: 83 21 00 0c lwz r25,12(r1) ffc0cbc8: 83 41 00 10 lwz r26,16(r1) ffc0cbcc: 83 61 00 14 lwz r27,20(r1) ffc0cbd0: 83 81 00 18 lwz r28,24(r1) ffc0cbd4: 83 a1 00 1c lwz r29,28(r1) ffc0cbd8: 83 c1 00 20 lwz r30,32(r1) ffc0cbdc: 83 e1 00 24 lwz r31,36(r1) ffc0cbe0: 38 21 00 28 addi r1,r1,40 ffc0cbe4: 4e 80 00 20 blr <== ALWAYS 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; ffc0cbe8: 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]; ffc0cbec: 93 38 00 00 stw r25,0(r24) pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; ffc0cbf0: 81 29 26 f8 lwz r9,9976(r9) ffc0cbf4: 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; ffc0cbf8: 3d 20 00 00 lis r9,0 pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; ffc0cbfc: 90 18 00 10 stw r0,16(r24) if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; ffc0cc00: 38 09 21 48 addi r0,r9,8520 pathloc->ops = &devFS_ops; ffc0cc04: 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; ffc0cc08: 90 18 00 08 stw r0,8(r24) pathloc->ops = &devFS_ops; ffc0cc0c: 38 09 21 80 addi r0,r9,8576 ffc0cc10: 90 18 00 0c stw r0,12(r24) return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); } ffc0cc14: 80 01 00 2c lwz r0,44(r1) ffc0cc18: 83 01 00 08 lwz r24,8(r1) ffc0cc1c: 7c 08 03 a6 mtlr r0 ffc0cc20: 83 21 00 0c lwz r25,12(r1) ffc0cc24: 83 41 00 10 lwz r26,16(r1) ffc0cc28: 83 61 00 14 lwz r27,20(r1) ffc0cc2c: 83 81 00 18 lwz r28,24(r1) ffc0cc30: 83 a1 00 1c lwz r29,28(r1) ffc0cc34: 83 c1 00 20 lwz r30,32(r1) ffc0cc38: 83 e1 00 24 lwz r31,36(r1) ffc0cc3c: 38 21 00 28 addi r1,r1,40 ffc0cc40: 4e 80 00 20 blr <== 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 ); ffc0cc44: 48 00 36 b9 bl ffc102fc <__errno> <== NOT EXECUTED ffc0cc48: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0cc4c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0cc50: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0cc54: 4b ff ff c0 b ffc0cc14 <== NOT EXECUTED ffc03948 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc03948: 94 21 ff e8 stwu r1,-24(r1) ffc0394c: 7c 08 02 a6 mflr r0 ffc03950: 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( ffc03954: 3f a0 00 00 lis r29,0 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc03958: 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( ffc0395c: 80 1d 26 b0 lwz r0,9904(r29) int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc03960: 93 e1 00 14 stw r31,20(r1) ffc03964: 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( ffc03968: 1c 60 00 14 mulli r3,r0,20 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc0396c: 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( ffc03970: 48 00 90 49 bl ffc0c9b8 <_Workspace_Allocate> <== ALWAYS TAKEN sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) ffc03974: 7c 7e 1b 79 mr. r30,r3 ffc03978: 41 82 00 4c beq- ffc039c4 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); memset( ffc0397c: 80 bd 26 b0 lwz r5,9904(r29) ffc03980: 38 80 00 00 li r4,0 ffc03984: 1c a5 00 14 mulli r5,r5,20 ffc03988: 48 00 d5 4d bl ffc10ed4 <== 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; ffc0398c: 3d 20 00 00 lis r9,0 ffc03990: 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; ffc03994: 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; ffc03998: 38 09 00 38 addi r0,r9,56 ffc0399c: 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; ffc039a0: 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; ffc039a4: 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; } ffc039a8: 80 01 00 1c lwz r0,28(r1) ffc039ac: 83 a1 00 0c lwz r29,12(r1) ffc039b0: 7c 08 03 a6 mtlr r0 ffc039b4: 83 c1 00 10 lwz r30,16(r1) ffc039b8: 83 e1 00 14 lwz r31,20(r1) ffc039bc: 38 21 00 18 addi r1,r1,24 ffc039c0: 4e 80 00 20 blr <== ALWAYS TAKEN sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) rtems_set_errno_and_return_minus_one( ENOMEM ); ffc039c4: 48 00 c9 39 bl ffc102fc <__errno> <== NOT EXECUTED ffc039c8: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc039cc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc039d0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc039d4: 4b ff ff d4 b ffc039a8 <== NOT EXECUTED ffc03bcc : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc03bcc: 94 21 ff e8 stwu r1,-24(r1) ffc03bd0: 7c 08 02 a6 mflr r0 ffc03bd4: 7c 69 1b 78 mr r9,r3 ffc03bd8: 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; ffc03bdc: 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; ffc03be0: 81 63 00 3c lwz r11,60(r3) args.iop = iop; args.command = command; args.buffer = buffer; ffc03be4: 90 a1 00 10 stw r5,16(r1) status = rtems_io_control( ffc03be8: 38 a1 00 08 addi r5,r1,8 ffc03bec: 80 8b 00 0c lwz r4,12(r11) ffc03bf0: 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; ffc03bf4: 91 21 00 08 stw r9,8(r1) args.command = command; args.buffer = buffer; status = rtems_io_control( ffc03bf8: 48 00 52 75 bl ffc08e6c <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) ffc03bfc: 2f 83 00 00 cmpwi cr7,r3,0 ffc03c00: 40 9e 00 18 bne- cr7,ffc03c18 <== NEVER TAKEN return rtems_deviceio_errno(status); return args.ioctl_return; } ffc03c04: 80 01 00 1c lwz r0,28(r1) ); if ( status ) return rtems_deviceio_errno(status); return args.ioctl_return; ffc03c08: 80 61 00 14 lwz r3,20(r1) } ffc03c0c: 38 21 00 18 addi r1,r1,24 ffc03c10: 7c 08 03 a6 mtlr r0 ffc03c14: 4e 80 00 20 blr <== ALWAYS TAKEN np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc03c18: 48 00 90 41 bl ffc0cc58 <== NOT EXECUTED return args.ioctl_return; } ffc03c1c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc03c20: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc03c24: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03c28: 4e 80 00 20 blr <== NOT EXECUTED ffc039d8 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { ffc039d8: 94 21 ff d8 stwu r1,-40(r1) ffc039dc: 7c 08 02 a6 mflr r0 ffc039e0: 93 81 00 18 stw r28,24(r1) ffc039e4: 7c dc 33 78 mr r28,r6 ffc039e8: 93 a1 00 1c stw r29,28(r1) ffc039ec: 7c bd 2b 78 mr r29,r5 ffc039f0: 93 c1 00 20 stw r30,32(r1) ffc039f4: 7c 9e 23 78 mr r30,r4 ffc039f8: 93 e1 00 24 stw r31,36(r1) ffc039fc: 7c 7f 1b 78 mr r31,r3 ffc03a00: 90 01 00 2c stw r0,44(r1) ffc03a04: 93 01 00 08 stw r24,8(r1) ffc03a08: 93 21 00 0c stw r25,12(r1) ffc03a0c: 93 41 00 10 stw r26,16(r1) ffc03a10: 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') && ffc03a14: 88 03 00 00 lbz r0,0(r3) ffc03a18: 2f 80 00 64 cmpwi cr7,r0,100 ffc03a1c: 41 9e 01 40 beq- cr7,ffc03b5c <== ALWAYS TAKEN (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) ffc03a20: 57 c0 04 26 rlwinm r0,r30,0,16,19 ffc03a24: 2f 80 60 00 cmpwi cr7,r0,24576 ffc03a28: 41 9e 00 0c beq- cr7,ffc03a34 <== NEVER TAKEN ffc03a2c: 2f 80 20 00 cmpwi cr7,r0,8192 ffc03a30: 40 9e 01 58 bne- cr7,ffc03b88 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; ffc03a34: 83 47 00 00 lwz r26,0(r7) if (!device_name_table) ffc03a38: 2f 9a 00 00 cmpwi cr7,r26,0 ffc03a3c: 41 9e 01 74 beq- cr7,ffc03bb0 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ ffc03a40: 3d 20 00 00 lis r9,0 ffc03a44: 83 29 26 b0 lwz r25,9904(r9) ffc03a48: 2f 99 00 00 cmpwi cr7,r25,0 ffc03a4c: 41 9e 01 50 beq- cr7,ffc03b9c <== NEVER TAKEN rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); ffc03a50: 38 00 00 00 li r0,0 ffc03a54: 3b 00 ff ff li r24,-1 ffc03a58: 3b 60 00 00 li r27,0 ffc03a5c: 48 00 00 20 b ffc03a7c <== ALWAYS TAKEN for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc03a60: 48 00 d7 e1 bl ffc11240 <== NOT EXECUTED ffc03a64: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc03a68: 41 9e 00 b4 beq- cr7,ffc03b1c <== NOT EXECUTED /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ ffc03a6c: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED ffc03a70: 7f 9b c8 40 cmplw cr7,r27,r25 <== NOT EXECUTED ffc03a74: 7f 60 db 78 mr r0,r27 <== NOT EXECUTED ffc03a78: 40 9c 00 30 bge- cr7,ffc03aa8 <== NOT EXECUTED if (device_name_table[i].device_name == NULL) ffc03a7c: 1c 00 00 14 mulli r0,r0,20 ffc03a80: 7c 1a 00 2e lwzx r0,r26,r0 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc03a84: 7f e3 fb 78 mr r3,r31 device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) ffc03a88: 2f 80 00 00 cmpwi cr7,r0,0 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) ffc03a8c: 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) ffc03a90: 40 9e ff d0 bne+ cr7,ffc03a60 <== NEVER TAKEN slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); ffc03a94: 7f 78 db 78 mr r24,r27 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ ffc03a98: 3b 7b 00 01 addi r27,r27,1 ffc03a9c: 7f 9b c8 40 cmplw cr7,r27,r25 ffc03aa0: 7f 60 db 78 mr r0,r27 ffc03aa4: 41 9c ff d8 blt+ cr7,ffc03a7c else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) ffc03aa8: 2f 98 ff ff cmpwi cr7,r24,-1 ffc03aac: 41 9e 00 f0 beq- cr7,ffc03b9c <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc03ab0: 7f 60 00 a6 mfmsr r27 ffc03ab4: 7c 10 42 a6 mfsprg r0,0 ffc03ab8: 7f 60 00 78 andc r0,r27,r0 ffc03abc: 7c 00 01 24 mtmsr r0 rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; ffc03ac0: 1f 18 00 14 mulli r24,r24,20 ffc03ac4: 7f fa c1 2e stwx r31,r26,r24 device_name_table[slot].device_name_length = strlen(path); ffc03ac8: 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; ffc03acc: 7f 5a c2 14 add r26,r26,r24 device_name_table[slot].device_name_length = strlen(path); ffc03ad0: 48 00 d8 91 bl ffc11360 <== ALWAYS TAKEN device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; ffc03ad4: 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); ffc03ad8: 90 7a 00 04 stw r3,4(r26) device_name_table[slot].major = major; ffc03adc: 93 ba 00 08 stw r29,8(r26) device_name_table[slot].minor = minor; ffc03ae0: 93 9a 00 0c stw r28,12(r26) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc03ae4: 7f 60 01 24 mtmsr r27 ffc03ae8: 38 60 00 00 li r3,0 device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } ffc03aec: 80 01 00 2c lwz r0,44(r1) ffc03af0: 83 01 00 08 lwz r24,8(r1) ffc03af4: 7c 08 03 a6 mtlr r0 ffc03af8: 83 21 00 0c lwz r25,12(r1) ffc03afc: 83 41 00 10 lwz r26,16(r1) ffc03b00: 83 61 00 14 lwz r27,20(r1) ffc03b04: 83 81 00 18 lwz r28,24(r1) ffc03b08: 83 a1 00 1c lwz r29,28(r1) ffc03b0c: 83 c1 00 20 lwz r30,32(r1) ffc03b10: 83 e1 00 24 lwz r31,36(r1) ffc03b14: 38 21 00 28 addi r1,r1,40 ffc03b18: 4e 80 00 20 blr <== ALWAYS TAKEN for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); ffc03b1c: 48 00 c7 e1 bl ffc102fc <__errno> <== NOT EXECUTED ffc03b20: 38 00 00 11 li r0,17 <== NOT EXECUTED ffc03b24: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03b28: 38 60 ff ff li r3,-1 <== NOT EXECUTED device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } ffc03b2c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc03b30: 83 01 00 08 lwz r24,8(r1) <== NOT EXECUTED ffc03b34: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03b38: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc03b3c: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc03b40: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc03b44: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc03b48: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc03b4c: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc03b50: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc03b54: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc03b58: 4e 80 00 20 blr <== NOT EXECUTED * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && ffc03b5c: 88 03 00 01 lbz r0,1(r3) ffc03b60: 2f 80 00 65 cmpwi cr7,r0,101 ffc03b64: 40 9e fe bc bne+ cr7,ffc03a20 <== NEVER TAKEN (path[2] == 'v') && (path[3] == '\0')) ffc03b68: 88 03 00 02 lbz r0,2(r3) ffc03b6c: 2f 80 00 76 cmpwi cr7,r0,118 ffc03b70: 40 9e fe b0 bne+ cr7,ffc03a20 <== NEVER TAKEN ffc03b74: 88 03 00 03 lbz r0,3(r3) ffc03b78: 38 60 00 00 li r3,0 ffc03b7c: 2f 80 00 00 cmpwi cr7,r0,0 ffc03b80: 40 9e fe a0 bne+ cr7,ffc03a20 ffc03b84: 4b ff ff 68 b ffc03aec <== ALWAYS TAKEN return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) rtems_set_errno_and_return_minus_one( EINVAL ); ffc03b88: 48 00 c7 75 bl ffc102fc <__errno> <== NOT EXECUTED ffc03b8c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc03b90: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03b94: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc03b98: 4b ff ff 54 b ffc03aec <== NOT EXECUTED if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); ffc03b9c: 48 00 c7 61 bl ffc102fc <__errno> <== NOT EXECUTED ffc03ba0: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc03ba4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03ba8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc03bac: 4b ff ff 40 b ffc03aec <== NOT EXECUTED rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); ffc03bb0: 48 00 c7 4d bl ffc102fc <__errno> <== NOT EXECUTED ffc03bb4: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc03bb8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03bbc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc03bc0: 4b ff ff 2c b ffc03aec <== NOT EXECUTED ffc03bc4 : /* * There is only one type of node: device */ return RTEMS_FILESYSTEM_DEVICE; } ffc03bc4: 38 60 00 02 li r3,2 ffc03bc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03c2c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc03c2c: 94 21 ff e8 stwu r1,-24(r1) ffc03c30: 7c 08 02 a6 mflr r0 ffc03c34: 90 01 00 1c stw r0,28(r1) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc03c38: 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; ffc03c3c: 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; ffc03c40: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = iop->flags; ffc03c44: 90 01 00 0c stw r0,12(r1) args.mode = mode; ffc03c48: 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; ffc03c4c: 90 61 00 08 stw r3,8(r1) args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc03c50: 80 89 00 0c lwz r4,12(r9) ffc03c54: 80 69 00 08 lwz r3,8(r9) ffc03c58: 48 00 53 e9 bl ffc09040 <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) ffc03c5c: 38 00 00 00 li r0,0 ffc03c60: 2f 83 00 00 cmpwi cr7,r3,0 ffc03c64: 41 be 00 0c beq+ cr7,ffc03c70 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc03c68: 48 00 8f f1 bl ffc0cc58 <== NOT EXECUTED ffc03c6c: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED return 0; } ffc03c70: 7c 03 03 78 mr r3,r0 ffc03c74: 80 01 00 1c lwz r0,28(r1) ffc03c78: 38 21 00 18 addi r1,r1,24 ffc03c7c: 7c 08 03 a6 mtlr r0 ffc03c80: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03c84 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc03c84: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc03c88: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc03c8c: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED ffc03c90: 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; ffc03c94: 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; ffc03c98: 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; ffc03c9c: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED args.bytes_moved = 0; ffc03ca0: 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; ffc03ca4: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc03ca8: 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; ffc03cac: 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; ffc03cb0: 81 63 00 10 lwz r11,16(r3) <== NOT EXECUTED ffc03cb4: 81 83 00 14 lwz r12,20(r3) <== NOT EXECUTED args.buffer = buffer; ffc03cb8: 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( ffc03cbc: 80 6a 00 08 lwz r3,8(r10) <== NOT EXECUTED ffc03cc0: 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; ffc03cc4: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc03cc8: 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; ffc03ccc: 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( ffc03cd0: 48 00 53 d1 bl ffc090a0 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) ffc03cd4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc03cd8: 40 9e 00 18 bne- cr7,ffc03cf0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } ffc03cdc: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ); if ( status ) return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; ffc03ce0: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED } ffc03ce4: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc03ce8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03cec: 4e 80 00 20 blr <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc03cf0: 48 00 8f 69 bl ffc0cc58 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } ffc03cf4: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc03cf8: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc03cfc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03d00: 4e 80 00 20 blr <== NOT EXECUTED ffc03d04 : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { ffc03d04: 94 21 ff f8 stwu r1,-8(r1) ffc03d08: 7c 08 02 a6 mflr r0 ffc03d0c: 90 01 00 0c stw r0,12(r1) rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; ffc03d10: 81 23 00 00 lwz r9,0(r3) if (!the_dev) ffc03d14: 2f 89 00 00 cmpwi cr7,r9,0 ffc03d18: 41 9e 00 30 beq- cr7,ffc03d48 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; ffc03d1c: 81 69 00 10 lwz r11,16(r9) ffc03d20: 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 ); ffc03d24: 80 09 00 0c lwz r0,12(r9) rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; ffc03d28: 81 29 00 08 lwz r9,8(r9) buf->st_mode = the_dev->mode; ffc03d2c: 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 ); ffc03d30: 91 24 00 18 stw r9,24(r4) ffc03d34: 90 04 00 1c stw r0,28(r4) buf->st_mode = the_dev->mode; return 0; } ffc03d38: 80 01 00 0c lwz r0,12(r1) ffc03d3c: 38 21 00 08 addi r1,r1,8 ffc03d40: 7c 08 03 a6 mtlr r0 ffc03d44: 4e 80 00 20 blr <== ALWAYS TAKEN { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); ffc03d48: 48 00 c5 b5 bl ffc102fc <__errno> <== NOT EXECUTED ffc03d4c: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc03d50: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03d54: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc03d58: 4b ff ff e0 b ffc03d38 <== NOT EXECUTED ffc03d5c : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc03d5c: 94 21 ff d8 stwu r1,-40(r1) ffc03d60: 7c 08 02 a6 mflr r0 ffc03d64: 7c 69 1b 78 mr r9,r3 ffc03d68: 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; ffc03d6c: 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; ffc03d70: 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; ffc03d74: 90 01 00 20 stw r0,32(r1) args.bytes_moved = 0; ffc03d78: 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; ffc03d7c: 90 a1 00 1c stw r5,28(r1) args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc03d80: 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; ffc03d84: 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; ffc03d88: 81 63 00 10 lwz r11,16(r3) ffc03d8c: 81 83 00 14 lwz r12,20(r3) args.buffer = (void *) buffer; ffc03d90: 90 81 00 18 stw r4,24(r1) args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc03d94: 80 6a 00 08 lwz r3,8(r10) ffc03d98: 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; ffc03d9c: 91 61 00 10 stw r11,16(r1) ffc03da0: 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; ffc03da4: 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( ffc03da8: 48 00 53 59 bl ffc09100 <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) ffc03dac: 2f 83 00 00 cmpwi cr7,r3,0 ffc03db0: 40 9e 00 18 bne- cr7,ffc03dc8 <== NEVER TAKEN return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } ffc03db4: 80 01 00 2c lwz r0,44(r1) ); if ( status ) return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; ffc03db8: 80 61 00 24 lwz r3,36(r1) } ffc03dbc: 38 21 00 28 addi r1,r1,40 ffc03dc0: 7c 08 03 a6 mtlr r0 ffc03dc4: 4e 80 00 20 blr <== ALWAYS TAKEN np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc03dc8: 48 00 8e 91 bl ffc0cc58 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } ffc03dcc: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc03dd0: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc03dd4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03dd8: 4e 80 00 20 blr <== NOT EXECUTED ffc0852c : int filedes __attribute__((unused)), void *dev_data_ptr __attribute__((unused)), size_t nbyte __attribute__((unused)), int *dev_info_ptr __attribute__((unused)) ) { ffc0852c: 94 21 ff f8 stwu r1,-8(r1) ffc08530: 7c 08 02 a6 mflr r0 ffc08534: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08538: 48 00 bd 39 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc0853c: 38 00 00 58 li r0,88 ffc08540: 90 03 00 00 stw r0,0(r3) } ffc08544: 38 60 ff ff li r3,-1 ffc08548: 80 01 00 0c lwz r0,12(r1) ffc0854c: 38 21 00 08 addi r1,r1,8 ffc08550: 7c 08 03 a6 mtlr r0 ffc08554: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1058c : */ int device_close( rtems_libio_t *iop ) { ffc1058c: 94 21 ff e8 stwu r1,-24(r1) ffc10590: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc10594: 90 01 00 1c stw r0,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc10598: 38 00 00 00 li r0,0 args.mode = 0; status = rtems_io_close( ffc1059c: 38 a1 00 08 addi r5,r1,8 the_jnode = iop->file_info; args.iop = iop; args.flags = 0; args.mode = 0; ffc105a0: 90 01 00 10 stw r0,16(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; ffc105a4: 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; ffc105a8: 90 61 00 08 stw r3,8(r1) { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc105ac: 81 23 00 3c lwz r9,60(r3) args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( ffc105b0: 80 89 00 54 lwz r4,84(r9) <== ALWAYS TAKEN ffc105b4: 80 69 00 50 lwz r3,80(r9) ffc105b8: 48 00 1b b1 bl ffc12168 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { ffc105bc: 38 00 00 00 li r0,0 ffc105c0: 2f 83 00 00 cmpwi cr7,r3,0 ffc105c4: 41 be 00 0c beq+ cr7,ffc105d0 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc105c8: 48 00 22 a1 bl ffc12868 <== NOT EXECUTED ffc105cc: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED } return 0; } ffc105d0: 7c 03 03 78 mr r3,r0 <== ALWAYS TAKEN ffc105d4: 80 01 00 1c lwz r0,28(r1) ffc105d8: 38 21 00 18 addi r1,r1,24 ffc105dc: 7c 08 03 a6 mtlr r0 ffc105e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10430 : rtems_libio_t *iop, rtems_off64_t length ) { return 0; } ffc10430: 38 60 00 00 li r3,0 ffc10434: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10438 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc10438: 94 21 ff e8 stwu r1,-24(r1) ffc1043c: 7c 08 02 a6 mflr r0 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; ffc10440: 90 a1 00 10 stw r5,16(r1) the_jnode = iop->file_info; status = rtems_io_control( ffc10444: 38 a1 00 08 addi r5,r1,8 int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { ffc10448: 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; ffc1044c: 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; ffc10450: 90 61 00 08 stw r3,8(r1) args.command = command; args.buffer = buffer; the_jnode = iop->file_info; ffc10454: 81 23 00 3c lwz r9,60(r3) status = rtems_io_control( ffc10458: 80 89 00 54 lwz r4,84(r9) ffc1045c: 80 69 00 50 lwz r3,80(r9) ffc10460: 48 00 1d 69 bl ffc121c8 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc10464: 2f 83 00 00 cmpwi cr7,r3,0 ffc10468: 40 9e 00 18 bne- cr7,ffc10480 <== NEVER TAKEN return rtems_deviceio_errno(status); return args.ioctl_return; } ffc1046c: 80 01 00 1c lwz r0,28(r1) ); if ( status ) return rtems_deviceio_errno(status); return args.ioctl_return; ffc10470: 80 61 00 14 lwz r3,20(r1) } ffc10474: 38 21 00 18 addi r1,r1,24 ffc10478: 7c 08 03 a6 mtlr r0 ffc1047c: 4e 80 00 20 blr <== ALWAYS TAKEN the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc10480: 48 00 23 e9 bl ffc12868 <== NOT EXECUTED return args.ioctl_return; } ffc10484: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc10488: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc1048c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10490: 4e 80 00 20 blr <== NOT EXECUTED ffc10424 : rtems_off64_t offset, int whence ) { return offset; } ffc10424: 7c a3 2b 78 mr r3,r5 ffc10428: 7c c4 33 78 mr r4,r6 ffc1042c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc105e4 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc105e4: 94 21 ff e8 stwu r1,-24(r1) ffc105e8: 7c 08 02 a6 mflr r0 ffc105ec: 90 01 00 1c stw r0,28(r1) args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc105f0: 38 a1 00 08 addi r5,r1,8 <== ALWAYS TAKEN IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; ffc105f4: 80 03 00 18 lwz r0,24(r3) <== ALWAYS TAKEN rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; ffc105f8: 90 61 00 08 stw r3,8(r1) args.flags = iop->flags; ffc105fc: 90 01 00 0c stw r0,12(r1) args.mode = mode; ffc10600: 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; ffc10604: 81 23 00 3c lwz r9,60(r3) <== ALWAYS TAKEN args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( ffc10608: 80 89 00 54 lwz r4,84(r9) <== ALWAYS TAKEN ffc1060c: 80 69 00 50 lwz r3,80(r9) <== ALWAYS TAKEN ffc10610: 48 00 1c 19 bl ffc12228 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc10614: 38 00 00 00 li r0,0 ffc10618: 2f 83 00 00 cmpwi cr7,r3,0 ffc1061c: 41 be 00 0c beq+ cr7,ffc10628 <== ALWAYS TAKEN return rtems_deviceio_errno(status); ffc10620: 48 00 22 49 bl ffc12868 <== NOT EXECUTED ffc10624: 7c 60 1b 78 mr r0,r3 <== NOT EXECUTED return 0; } ffc10628: 7c 03 03 78 mr r3,r0 ffc1062c: 80 01 00 1c lwz r0,28(r1) ffc10630: 38 21 00 18 addi r1,r1,24 ffc10634: 7c 08 03 a6 mtlr r0 ffc10638: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10510 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc10510: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc10514: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc10518: 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; ffc1051c: 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; ffc10520: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc10524: 81 43 00 14 lwz r10,20(r3) <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; ffc10528: 90 01 00 20 stw r0,32(r1) <== NOT EXECUTED args.bytes_moved = 0; ffc1052c: 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; ffc10530: 90 a1 00 1c stw r5,28(r1) <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( ffc10534: 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; ffc10538: 91 21 00 10 stw r9,16(r1) <== NOT EXECUTED ffc1053c: 91 41 00 14 stw r10,20(r1) <== NOT EXECUTED args.buffer = buffer; ffc10540: 90 81 00 18 stw r4,24(r1) <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc10544: 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; ffc10548: 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; ffc1054c: 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( ffc10550: 80 89 00 54 lwz r4,84(r9) <== NOT EXECUTED ffc10554: 80 69 00 50 lwz r3,80(r9) <== NOT EXECUTED ffc10558: 48 00 1d 31 bl ffc12288 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc1055c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10560: 40 9e 00 18 bne- cr7,ffc10578 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } ffc10564: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ); if ( status ) return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; ffc10568: 80 61 00 24 lwz r3,36(r1) <== NOT EXECUTED } ffc1056c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc10570: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10574: 4e 80 00 20 blr <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc10578: 48 00 22 f1 bl ffc12868 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } ffc1057c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc10580: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc10584: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10588: 4e 80 00 20 blr <== NOT EXECUTED ffc10494 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc10494: 94 21 ff d8 stwu r1,-40(r1) ffc10498: 7c 08 02 a6 mflr r0 ffc1049c: 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; ffc104a0: 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; ffc104a4: 81 23 00 10 lwz r9,16(r3) ffc104a8: 81 43 00 14 lwz r10,20(r3) args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; ffc104ac: 90 01 00 20 stw r0,32(r1) args.bytes_moved = 0; ffc104b0: 38 00 00 00 li r0,0 <== ALWAYS TAKEN the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; ffc104b4: 90 a1 00 1c stw r5,28(r1) args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( ffc104b8: 38 a1 00 08 addi r5,r1,8 <== ALWAYS TAKEN IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; ffc104bc: 91 21 00 10 stw r9,16(r1) ffc104c0: 91 41 00 14 stw r10,20(r1) args.buffer = (void *) buffer; ffc104c4: 90 81 00 18 stw r4,24(r1) <== ALWAYS TAKEN args.count = count; args.flags = iop->flags; args.bytes_moved = 0; ffc104c8: 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; ffc104cc: 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; ffc104d0: 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( ffc104d4: 80 89 00 54 lwz r4,84(r9) ffc104d8: 80 69 00 50 lwz r3,80(r9) ffc104dc: 48 00 1e 0d bl ffc122e8 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) ffc104e0: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc104e4: 40 9e 00 18 bne- cr7,ffc104fc <== NEVER TAKEN return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } ffc104e8: 80 01 00 2c lwz r0,44(r1) ); if ( status ) return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; ffc104ec: 80 61 00 24 lwz r3,36(r1) } ffc104f0: 38 21 00 28 addi r1,r1,40 ffc104f4: 7c 08 03 a6 mtlr r0 ffc104f8: 4e 80 00 20 blr <== ALWAYS TAKEN the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); ffc104fc: 48 00 23 6d bl ffc12868 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } ffc10500: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc10504: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc10508: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1050c: 4e 80 00 20 blr <== NOT EXECUTED ffc067bc : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc067bc: 94 21 ff f0 stwu r1,-16(r1) ffc067c0: 7c 08 02 a6 mflr r0 ffc067c4: 90 01 00 14 stw r0,20(r1) rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc067c8: 80 03 00 b4 lwz r0,180(r3) /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc067cc: 93 e1 00 0c stw r31,12(r1) ffc067d0: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc067d4: 2f 80 00 00 cmpwi cr7,r0,0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { ffc067d8: 93 c1 00 08 stw r30,8(r1) rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { ffc067dc: 41 9e 00 6c beq- cr7,ffc06848 <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc067e0: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc067e4: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc067e8: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc067ec: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { ffc067f0: 81 63 00 84 lwz r11,132(r3) <== NOT EXECUTED ffc067f4: 81 23 00 80 lwz r9,128(r3) <== NOT EXECUTED ffc067f8: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc067fc: 41 9e 00 48 beq- cr7,ffc06844 <== NOT EXECUTED tty->rawOutBufState = rob_wait; ffc06800: 3b c0 00 02 li r30,2 <== NOT EXECUTED ffc06804: 93 df 00 94 stw r30,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc06808: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, ffc0680c: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED ffc06810: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc06814: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc06818: 48 00 1d 6d bl ffc08584 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc0681c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06820: 40 9e 00 40 bne- cr7,ffc06860 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc06824: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc06828: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc0682c: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc06830: 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) { ffc06834: 81 7f 00 84 lwz r11,132(r31) <== NOT EXECUTED ffc06838: 81 3f 00 80 lwz r9,128(r31) <== NOT EXECUTED ffc0683c: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc06840: 40 9e ff c4 bne+ cr7,ffc06804 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc06844: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); } } ffc06848: 80 01 00 14 lwz r0,20(r1) ffc0684c: 83 c1 00 08 lwz r30,8(r1) ffc06850: 7c 08 03 a6 mtlr r0 ffc06854: 83 e1 00 0c lwz r31,12(r1) ffc06858: 38 21 00 10 addi r1,r1,16 ffc0685c: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); ffc06860: 48 00 26 4d bl ffc08eac <== NOT EXECUTED ffc05594 : #include int dup( int fildes ) { ffc05594: 94 21 ff f8 stwu r1,-8(r1) ffc05598: 7c 08 02 a6 mflr r0 return fcntl( fildes, F_DUPFD, 0 ); ffc0559c: 38 80 00 00 li r4,0 ffc055a0: 38 a0 00 00 li r5,0 #include int dup( int fildes ) { ffc055a4: 90 01 00 0c stw r0,12(r1) return fcntl( fildes, F_DUPFD, 0 ); ffc055a8: 4c c6 31 82 crclr 4*cr1+eq ffc055ac: 48 00 03 21 bl ffc058cc <== ALWAYS TAKEN } ffc055b0: 80 01 00 0c lwz r0,12(r1) ffc055b4: 38 21 00 08 addi r1,r1,8 ffc055b8: 7c 08 03 a6 mtlr r0 ffc055bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05514 : int dup2( int fildes, int fildes2 ) { ffc05514: 94 21 ff 98 stwu r1,-104(r1) ffc05518: 7c 08 02 a6 mflr r0 ffc0551c: 93 e1 00 64 stw r31,100(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc05520: 3b e1 00 08 addi r31,r1,8 int dup2( int fildes, int fildes2 ) { ffc05524: 93 c1 00 60 stw r30,96(r1) ffc05528: 7c 9e 23 78 mr r30,r4 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc0552c: 7f e4 fb 78 mr r4,r31 int dup2( int fildes, int fildes2 ) { ffc05530: 93 a1 00 5c stw r29,92(r1) ffc05534: 7c 7d 1b 78 mr r29,r3 ffc05538: 90 01 00 6c stw r0,108(r1) /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); ffc0553c: 48 00 08 f5 bl ffc05e30 <== ALWAYS TAKEN if ( status == -1 ) ffc05540: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05544: 40 9e 00 24 bne- cr7,ffc05568 <== ALWAYS TAKEN /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); ffc05548: 38 60 ff ff li r3,-1 } ffc0554c: 80 01 00 6c lwz r0,108(r1) ffc05550: 83 a1 00 5c lwz r29,92(r1) ffc05554: 7c 08 03 a6 mtlr r0 ffc05558: 83 c1 00 60 lwz r30,96(r1) ffc0555c: 83 e1 00 64 lwz r31,100(r1) ffc05560: 38 21 00 68 addi r1,r1,104 ffc05564: 4e 80 00 20 blr <== ALWAYS TAKEN /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); ffc05568: 7f e4 fb 78 mr r4,r31 ffc0556c: 7f c3 f3 78 mr r3,r30 ffc05570: 48 00 08 c1 bl ffc05e30 <== ALWAYS TAKEN if ( status == -1 ) ffc05574: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05578: 41 be ff d0 beq- cr7,ffc05548 <== ALWAYS TAKEN /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); ffc0557c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc05580: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc05584: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05588: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0558c: 48 00 03 41 bl ffc058cc <== NOT EXECUTED ffc05590: 4b ff ff bc b ffc0554c <== NOT EXECUTED ffc060d0 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { ffc060d0: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc060d4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc060d8: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc060dc: 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) { ffc060e0: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED ffc060e4: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { ffc060e8: 71 20 02 00 andi. r0,r9,512 <== NOT EXECUTED ffc060ec: 41 82 00 2c beq- ffc06118 <== NOT EXECUTED ffc060f0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc060f4: 81 29 26 e0 lwz r9,9952(r9) <== NOT EXECUTED ffc060f8: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED ffc060fc: 88 09 00 01 lbz r0,1(r9) <== NOT EXECUTED ffc06100: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc06104: 41 82 00 14 beq- ffc06118 <== NOT EXECUTED ffc06108: 2f 83 00 09 cmpwi cr7,r3,9 <== NOT EXECUTED ffc0610c: 41 9e 00 0c beq- cr7,ffc06118 <== NOT EXECUTED ffc06110: 2f 83 00 0a cmpwi cr7,r3,10 <== NOT EXECUTED ffc06114: 40 9e 00 20 bne- cr7,ffc06134 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); ffc06118: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc0611c: 4b ff fe 1d bl ffc05f38 <== NOT EXECUTED } } ffc06120: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc06124: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc06128: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0612c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06130: 4e 80 00 20 blr <== NOT EXECUTED { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; ffc06134: 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] = '^'; ffc06138: 39 20 00 5e li r9,94 <== NOT EXECUTED echobuf[1] = c ^ 0x40; ffc0613c: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); ffc06140: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc06144: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; ffc06148: 99 21 00 08 stb r9,8(r1) <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); ffc0614c: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc06150: 4b ff fc 5d bl ffc05dac <== NOT EXECUTED tty->column += 2; ffc06154: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc06158: 38 09 00 02 addi r0,r9,2 <== NOT EXECUTED ffc0615c: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED } else { oproc (c, tty); } } ffc06160: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc06164: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc06168: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0616c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06170: 4e 80 00 20 blr <== NOT EXECUTED ffc2f2ec : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) ffc2f2ec: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc2f2f0: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2f2f4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp != NULL) ffc2f2f8: 80 69 5f 74 lwz r3,24436(r9) <== NOT EXECUTED fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { ffc2f2fc: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (group_fp != NULL) ffc2f300: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2f304: 41 9e 00 08 beq- cr7,ffc2f30c <== NOT EXECUTED fclose(group_fp); ffc2f308: 48 01 f3 09 bl ffc4e610 <== NOT EXECUTED } ffc2f30c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2f310: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2f314: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f318: 4e 80 00 20 blr <== NOT EXECUTED ffc2f31c : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) ffc2f31c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc2f320: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc2f324: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp != NULL) ffc2f328: 80 69 5f 78 lwz r3,24440(r9) <== NOT EXECUTED fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { ffc2f32c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED if (passwd_fp != NULL) ffc2f330: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2f334: 41 9e 00 08 beq- cr7,ffc2f33c <== NOT EXECUTED fclose(passwd_fp); ffc2f338: 48 01 f2 d9 bl ffc4e610 <== NOT EXECUTED } ffc2f33c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2f340: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2f344: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f348: 4e 80 00 20 blr <== NOT EXECUTED ffc06174 : * 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) { ffc06174: 94 21 ff e0 stwu r1,-32(r1) <== NOT EXECUTED ffc06178: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0617c: 7d 80 00 26 mfcr r12 <== NOT EXECUTED ffc06180: 90 01 00 24 stw r0,36(r1) <== NOT EXECUTED if (tty->ccount == 0) ffc06184: 81 23 00 20 lwz r9,32(r3) <== NOT EXECUTED * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { ffc06188: 93 e1 00 1c stw r31,28(r1) <== NOT EXECUTED ffc0618c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (tty->ccount == 0) ffc06190: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED * FIXME: Needs support for WERASE and ECHOPRT. * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { ffc06194: 93 61 00 0c stw r27,12(r1) <== NOT EXECUTED ffc06198: 93 81 00 10 stw r28,16(r1) <== NOT EXECUTED ffc0619c: 93 a1 00 14 stw r29,20(r1) <== NOT EXECUTED ffc061a0: 93 c1 00 18 stw r30,24(r1) <== NOT EXECUTED ffc061a4: 91 81 00 08 stw r12,8(r1) <== NOT EXECUTED if (tty->ccount == 0) ffc061a8: 41 9e 00 9c beq- cr7,ffc06244 <== NOT EXECUTED return; if (lineFlag) { ffc061ac: 2e 04 00 00 cmpwi cr4,r4,0 <== NOT EXECUTED ffc061b0: 40 92 00 84 bne- cr4,ffc06234 <== NOT EXECUTED ffc061b4: 80 03 00 3c lwz r0,60(r3) <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { ffc061b8: 3f 80 00 00 lis r28,0 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc061bc: 3f 60 ff c2 lis r27,-62 <== NOT EXECUTED ffc061c0: 3f a0 ff c2 lis r29,-62 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { ffc061c4: 3b 9c 26 e0 addi r28,r28,9952 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc061c8: 3b 7b f7 6c addi r27,r27,-2196 <== NOT EXECUTED ffc061cc: 3b bd f7 68 addi r29,r29,-2200 <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { ffc061d0: 70 0a 00 08 andi. r10,r0,8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; ffc061d4: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED ffc061d8: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc061dc: 91 3f 00 20 stw r9,32(r31) <== NOT EXECUTED ffc061e0: 7f cb 48 ae lbzx r30,r11,r9 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { ffc061e4: 41 82 00 38 beq- ffc0621c <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { ffc061e8: 40 92 00 0c bne- cr4,ffc061f4 <== NOT EXECUTED ffc061ec: 70 0a 00 10 andi. r10,r0,16 <== NOT EXECUTED ffc061f0: 41 82 01 d8 beq- ffc063c8 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { ffc061f4: 2f 9e 00 09 cmpwi cr7,r30,9 <== NOT EXECUTED ffc061f8: 41 9e 00 dc beq- cr7,ffc062d4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { ffc061fc: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc06200: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc06204: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc06208: 7d 29 f0 ae lbzx r9,r9,r30 <== NOT EXECUTED ffc0620c: 71 2b 00 20 andi. r11,r9,32 <== NOT EXECUTED ffc06210: 41 82 00 a0 beq- ffc062b0 <== NOT EXECUTED ffc06214: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc06218: 40 82 00 58 bne- ffc06270 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) ffc0621c: 41 92 00 28 beq- cr4,ffc06244 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { ffc06220: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06224: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06228: 41 9e 00 1c beq- cr7,ffc06244 <== NOT EXECUTED ffc0622c: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc06230: 4b ff ff a0 b ffc061d0 <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { ffc06234: 80 03 00 3c lwz r0,60(r3) <== NOT EXECUTED ffc06238: 70 0b 00 08 andi. r11,r0,8 <== NOT EXECUTED ffc0623c: 40 a2 01 34 bne+ ffc06370 <== NOT EXECUTED tty->ccount = 0; ffc06240: 91 63 00 20 stw r11,32(r3) <== NOT EXECUTED } } if (!lineFlag) break; } } ffc06244: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc06248: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc0624c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06250: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc06254: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc06258: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc0625c: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc06260: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc06264: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc06268: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0626c: 4e 80 00 20 blr <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); ffc06270: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc06274: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc06278: 4b ff fb 35 bl ffc05dac <== NOT EXECUTED if (tty->column) ffc0627c: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); ffc06280: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED if (tty->column) ffc06284: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06288: 41 9e 00 0c beq- cr7,ffc06294 <== NOT EXECUTED tty->column--; ffc0628c: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc06290: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { ffc06294: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc06298: 7c 09 f0 ae lbzx r0,r9,r30 <== NOT EXECUTED ffc0629c: 70 0a 00 20 andi. r10,r0,32 <== NOT EXECUTED ffc062a0: 41 82 00 10 beq- ffc062b0 <== NOT EXECUTED ffc062a4: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc062a8: 70 0b 02 00 andi. r11,r0,512 <== NOT EXECUTED ffc062ac: 41 a2 ff 70 beq- ffc0621c <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); ffc062b0: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc062b4: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc062b8: 4b ff fa f5 bl ffc05dac <== NOT EXECUTED if (tty->column) ffc062bc: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc062c0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc062c4: 41 be ff 58 beq- cr7,ffc0621c <== NOT EXECUTED tty->column--; ffc062c8: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc062cc: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED ffc062d0: 4b ff ff 4c b ffc0621c <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc062d4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { int col = tty->read_start_column; ffc062d8: 83 df 00 2c lwz r30,44(r31) <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc062dc: 41 9e 00 44 beq- cr7,ffc06320 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) ffc062e0: 54 0a bf fe rlwinm r10,r0,23,31,31 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { ffc062e4: 81 1c 00 00 lwz r8,0(r28) <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) ffc062e8: 2f 0a 00 00 cmpwi cr6,r10,0 <== NOT EXECUTED ffc062ec: 7d 29 03 a6 mtctr r9 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { ffc062f0: 39 20 00 00 li r9,0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; ffc062f4: 7c 0b 48 ae lbzx r0,r11,r9 <== NOT EXECUTED ffc062f8: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED if (c == '\t') { ffc062fc: 2f 80 00 09 cmpwi cr7,r0,9 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { ffc06300: 7d 48 02 14 add r10,r8,r0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { ffc06304: 41 9e 00 5c beq- cr7,ffc06360 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { ffc06308: 88 0a 00 01 lbz r0,1(r10) <== NOT EXECUTED ffc0630c: 70 0a 00 20 andi. r10,r0,32 <== NOT EXECUTED ffc06310: 41 82 00 44 beq- ffc06354 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) ffc06314: 41 9a 00 08 beq- cr6,ffc0631c <== NOT EXECUTED col += 2; ffc06318: 3b de 00 02 addi r30,r30,2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc0631c: 42 00 ff d8 bdnz+ ffc062f4 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc06320: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED ffc06324: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED ffc06328: 40 bc fe f4 bge- cr7,ffc0621c <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); ffc0632c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc06330: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc06334: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc06338: 4b ff fa 75 bl ffc05dac <== NOT EXECUTED tty->column--; ffc0633c: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc06340: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc06344: 7f 9e 00 00 cmpw cr7,r30,r0 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; ffc06348: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { ffc0634c: 41 9c ff e0 blt+ cr7,ffc0632c <== NOT EXECUTED ffc06350: 4b ff fe cc b ffc0621c <== NOT EXECUTED else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; ffc06354: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc06358: 42 00 ff 9c bdnz+ ffc062f4 <== NOT EXECUTED ffc0635c: 4b ff ff c4 b ffc06320 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; ffc06360: 63 de 00 07 ori r30,r30,7 <== NOT EXECUTED ffc06364: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { ffc06368: 42 00 ff 8c bdnz+ ffc062f4 <== NOT EXECUTED ffc0636c: 4b ff ff b4 b ffc06320 <== NOT EXECUTED if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { ffc06370: 70 0b 00 10 andi. r11,r0,16 <== NOT EXECUTED ffc06374: 40 82 fe 44 bne+ ffc061b8 <== NOT EXECUTED tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); ffc06378: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; ffc0637c: 91 63 00 20 stw r11,32(r3) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); ffc06380: 88 63 00 44 lbz r3,68(r3) <== NOT EXECUTED ffc06384: 4b ff fd 4d bl ffc060d0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) ffc06388: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED echo ('\n', tty); ffc0638c: 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) ffc06390: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED echo ('\n', tty); ffc06394: 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) ffc06398: 41 82 fe ac beq+ ffc06244 <== NOT EXECUTED } } if (!lineFlag) break; } } ffc0639c: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc063a0: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc063a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc063a8: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc063ac: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc063b0: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc063b4: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc063b8: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc063bc: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc063c0: 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); ffc063c4: 4b ff fd 0c b ffc060d0 <== NOT EXECUTED } } if (!lineFlag) break; } } ffc063c8: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); ffc063cc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED } } if (!lineFlag) break; } } ffc063d0: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc063d4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); ffc063d8: 88 7f 00 43 lbz r3,67(r31) <== NOT EXECUTED } } if (!lineFlag) break; } } ffc063dc: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc063e0: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc063e4: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc063e8: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc063ec: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc063f0: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc063f4: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED 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); ffc063f8: 4b ff fc d8 b ffc060d0 <== NOT EXECUTED ffc467b0 : #include int fchdir( int fd ) { ffc467b0: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc467b4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); ffc467b8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED #include int fchdir( int fd ) { ffc467bc: 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 ); ffc467c0: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED #include int fchdir( int fd ) { ffc467c4: 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 ); ffc467c8: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED #include int fchdir( int fd ) { ffc467cc: 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 ); ffc467d0: 40 9c 01 50 bge- cr7,ffc46920 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc467d4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc467d8: 83 e9 35 f4 lwz r31,13812(r9) <== NOT EXECUTED ffc467dc: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc467e0: 7f ff 1a 14 add r31,r31,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc467e4: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED ffc467e8: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc467ec: 41 82 01 34 beq- ffc46920 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc467f0: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc467f4: 41 82 01 74 beq- ffc46968 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { ffc467f8: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED ffc467fc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc46800: 41 9e 01 7c beq- cr7,ffc4697c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { ffc46804: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc46808: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc4680c: 41 9e 01 70 beq- cr7,ffc4697c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != ffc46810: 38 7f 00 1c addi r3,r31,28 <== NOT EXECUTED ffc46814: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc46818: 4e 80 04 21 bctrl <== NOT EXECUTED ffc4681c: 2f 83 00 01 cmpwi cr7,r3,1 <== NOT EXECUTED ffc46820: 40 9e 00 ec bne- cr7,ffc4690c <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc46824: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc46828: 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)) { ffc4682c: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED ffc46830: 38 63 be dc addi r3,r3,-16676 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; ffc46834: 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)) { ffc46838: 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; ffc4683c: 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)) { ffc46840: 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; ffc46844: 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)) { ffc46848: 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; ffc4684c: 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)) { ffc46850: 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; ffc46854: 91 01 00 1c stw r8,28(r1) <== NOT EXECUTED ffc46858: 91 41 00 20 stw r10,32(r1) <== NOT EXECUTED ffc4685c: 91 61 00 24 stw r11,36(r1) <== NOT EXECUTED ffc46860: 90 01 00 28 stw r0,40(r1) <== NOT EXECUTED ffc46864: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc46868: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; ffc4686c: 80 1f 00 28 lwz r0,40(r31) <== NOT EXECUTED ffc46870: 81 1f 00 1c lwz r8,28(r31) <== NOT EXECUTED ffc46874: 81 5f 00 20 lwz r10,32(r31) <== NOT EXECUTED ffc46878: 81 7f 00 24 lwz r11,36(r31) <== NOT EXECUTED ffc4687c: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc46880: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc46884: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc46888: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc4688c: 80 1f 00 2c lwz r0,44(r31) <== NOT EXECUTED ffc46890: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { ffc46894: 4b fc 24 81 bl ffc08d14 <== NOT EXECUTED ffc46898: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc4689c: 40 9e 00 98 bne- cr7,ffc46934 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); ffc468a0: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc468a4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc468a8: 41 9e 00 1c beq- cr7,ffc468c4 <== NOT EXECUTED ffc468ac: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc468b0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc468b4: 41 9e 00 10 beq- cr7,ffc468c4 <== NOT EXECUTED ffc468b8: 38 61 00 1c addi r3,r1,28 <== NOT EXECUTED ffc468bc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc468c0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_current = loc; ffc468c4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc468c8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc468cc: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED ffc468d0: 81 41 00 0c lwz r10,12(r1) <== NOT EXECUTED ffc468d4: 81 61 00 10 lwz r11,16(r1) <== NOT EXECUTED ffc468d8: 81 01 00 08 lwz r8,8(r1) <== NOT EXECUTED ffc468dc: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc468e0: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc468e4: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc468e8: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc468ec: 80 01 00 18 lwz r0,24(r1) <== NOT EXECUTED ffc468f0: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED return 0; } ffc468f4: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc468f8: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc468fc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc46900: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc46904: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc46908: 4e 80 00 20 blr <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc4690c: 48 00 7b 65 bl ffc4e470 <__errno> <== NOT EXECUTED ffc46910: 38 00 00 14 li r0,20 <== NOT EXECUTED ffc46914: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46918: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc4691c: 4b ff ff d8 b ffc468f4 <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc46920: 48 00 7b 51 bl ffc4e470 <__errno> <== NOT EXECUTED ffc46924: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc46928: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc4692c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc46930: 4b ff ff c4 b ffc468f4 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; ffc46934: 80 01 00 28 lwz r0,40(r1) <== NOT EXECUTED ffc46938: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc4693c: 81 3e 35 2c lwz r9,13612(r30) <== NOT EXECUTED ffc46940: 81 41 00 20 lwz r10,32(r1) <== NOT EXECUTED ffc46944: 81 61 00 24 lwz r11,36(r1) <== NOT EXECUTED ffc46948: 81 01 00 1c lwz r8,28(r1) <== NOT EXECUTED ffc4694c: 91 49 00 08 stw r10,8(r9) <== NOT EXECUTED ffc46950: 91 09 00 04 stw r8,4(r9) <== NOT EXECUTED ffc46954: 91 69 00 0c stw r11,12(r9) <== NOT EXECUTED ffc46958: 90 09 00 10 stw r0,16(r9) <== NOT EXECUTED ffc4695c: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc46960: 90 09 00 14 stw r0,20(r9) <== NOT EXECUTED return -1; ffc46964: 4b ff ff 90 b ffc468f4 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc46968: 48 00 7b 09 bl ffc4e470 <__errno> <== NOT EXECUTED ffc4696c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc46970: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46974: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc46978: 4b ff ff 7c b ffc468f4 <== NOT EXECUTED if ( !iop->pathinfo.ops ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc4697c: 48 00 7a f5 bl ffc4e470 <__errno> <== NOT EXECUTED ffc46980: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc46984: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46988: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc4698c: 4b ff ff 68 b ffc468f4 <== NOT EXECUTED ffc2ee7c : int fchmod( int fd, mode_t mode ) { ffc2ee7c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2ee80: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2ee84: 3d 20 00 00 lis r9,0 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { ffc2ee88: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2ee8c: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED ffc2ee90: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2ee94: 40 9c 00 5c bge- cr7,ffc2eef0 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc2ee98: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2ee9c: 80 09 35 f4 lwz r0,13812(r9) <== NOT EXECUTED ffc2eea0: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc2eea4: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc2eea8: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc2eeac: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc2eeb0: 41 82 00 40 beq- ffc2eef0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2eeb4: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc2eeb8: 41 82 00 4c beq- ffc2ef04 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) ffc2eebc: 81 23 00 40 lwz r9,64(r3) <== NOT EXECUTED ffc2eec0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2eec4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2eec8: 41 9e 00 50 beq- cr7,ffc2ef18 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); ffc2eecc: 81 23 00 24 lwz r9,36(r3) <== NOT EXECUTED ffc2eed0: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED ffc2eed4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc2eed8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2eedc: 4e 80 04 21 bctrl <== NOT EXECUTED } ffc2eee0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2eee4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2eee8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2eeec: 4e 80 00 20 blr <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc2eef0: 48 01 f5 81 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2eef4: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2eef8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2eefc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2ef00: 4b ff ff e0 b ffc2eee0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2ef04: 48 01 f5 6d bl ffc4e470 <__errno> <== NOT EXECUTED ffc2ef08: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2ef0c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2ef10: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2ef14: 4b ff ff cc b ffc2eee0 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2ef18: 48 01 f5 59 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2ef1c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2ef20: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2ef24: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2ef28: 4b ff ff b8 b ffc2eee0 <== NOT EXECUTED ffc2ef2c : int fchown( int fd, uid_t owner, gid_t group ) { ffc2ef2c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2ef30: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2ef34: 3d 20 00 00 lis r9,0 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { ffc2ef38: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2ef3c: 80 09 34 cc lwz r0,13516(r9) <== NOT EXECUTED ffc2ef40: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc2ef44: 40 9c 00 54 bge- cr7,ffc2ef98 <== NOT EXECUTED iop = rtems_libio_iop( fd ); ffc2ef48: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2ef4c: 80 09 35 f4 lwz r0,13812(r9) <== NOT EXECUTED ffc2ef50: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc2ef54: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED rtems_libio_check_is_open(iop); ffc2ef58: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc2ef5c: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc2ef60: 41 82 00 38 beq- ffc2ef98 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2ef64: 70 09 00 04 andi. r9,r0,4 <== NOT EXECUTED ffc2ef68: 41 82 00 44 beq- ffc2efac <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) ffc2ef6c: 81 23 00 28 lwz r9,40(r3) <== NOT EXECUTED ffc2ef70: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc2ef74: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc2ef78: 41 9e 00 48 beq- cr7,ffc2efc0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); ffc2ef7c: 38 63 00 1c addi r3,r3,28 <== NOT EXECUTED ffc2ef80: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc2ef84: 4e 80 04 21 bctrl <== NOT EXECUTED } ffc2ef88: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc2ef8c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc2ef90: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2ef94: 4e 80 00 20 blr <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc2ef98: 48 01 f4 d9 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2ef9c: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2efa0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2efa4: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2efa8: 4b ff ff e0 b ffc2ef88 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2efac: 48 01 f4 c5 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2efb0: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2efb4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2efb8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2efbc: 4b ff ff cc b ffc2ef88 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2efc0: 48 01 f4 b1 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2efc4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc2efc8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2efcc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2efd0: 4b ff ff b8 b ffc2ef88 <== NOT EXECUTED ffc46990 : int fcntl( int fd, int cmd, ... ) { ffc46990: 94 21 ff c0 stwu r1,-64(r1) ffc46994: 7c 08 02 a6 mflr r0 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc46998: 3d 20 00 00 lis r9,0 int fcntl( int fd, int cmd, ... ) { ffc4699c: 90 01 00 44 stw r0,68(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc469a0: 80 09 34 cc lwz r0,13516(r9) ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc469a4: 39 20 00 02 li r9,2 ffc469a8: 99 21 00 08 stb r9,8(r1) ffc469ac: 39 21 00 48 addi r9,r1,72 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc469b0: 7f 83 00 40 cmplw cr7,r3,r0 ... ) { int ret; va_list ap; va_start( ap, cmd ); ffc469b4: 91 21 00 0c stw r9,12(r1) ffc469b8: 39 21 00 10 addi r9,r1,16 int fcntl( int fd, int cmd, ... ) { ffc469bc: 93 a1 00 34 stw r29,52(r1) ffc469c0: 93 c1 00 38 stw r30,56(r1) ffc469c4: 93 e1 00 3c stw r31,60(r1) ffc469c8: 90 a1 00 18 stw r5,24(r1) ffc469cc: 90 c1 00 1c stw r6,28(r1) ffc469d0: 90 e1 00 20 stw r7,32(r1) int ret; va_list ap; va_start( ap, cmd ); ffc469d4: 91 21 00 10 stw r9,16(r1) int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); ffc469d8: 40 9c 02 58 bge- cr7,ffc46c30 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc469dc: 3f a0 00 00 lis r29,0 ffc469e0: 1c 63 00 48 mulli r3,r3,72 ffc469e4: 81 7d 35 f4 lwz r11,13812(r29) ffc469e8: 7f cb 1a 14 add r30,r11,r3 rtems_libio_check_is_open(iop); ffc469ec: 80 7e 00 18 lwz r3,24(r30) ffc469f0: 70 69 01 00 andi. r9,r3,256 ffc469f4: 41 82 02 3c beq- ffc46c30 <== NEVER TAKEN /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { ffc469f8: 2b 84 00 09 cmplwi cr7,r4,9 ffc469fc: 40 9d 00 18 ble- cr7,ffc46a14 errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; ffc46a00: 48 00 7a 71 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc46a04: 38 00 00 16 li r0,22 ffc46a08: 90 03 00 00 stw r0,0(r3) ffc46a0c: 3b e0 ff ff li r31,-1 ffc46a10: 48 00 00 30 b ffc46a40 <== ALWAYS TAKEN /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { ffc46a14: 3d 20 ff c7 lis r9,-57 ffc46a18: 39 29 3f c4 addi r9,r9,16324 ffc46a1c: 54 8a 10 3a rlwinm r10,r4,2,0,29 ffc46a20: 7d 49 50 2e lwzx r10,r9,r10 ffc46a24: 7d 2a 4a 14 add r9,r10,r9 ffc46a28: 7d 29 03 a6 mtctr r9 ffc46a2c: 4e 80 04 20 bctr <== ALWAYS TAKEN errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; ffc46a30: 48 00 7a 41 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc46a34: 38 00 00 86 li r0,134 ffc46a38: 90 03 00 00 stw r0,0(r3) ffc46a3c: 3b e0 ff ff li r31,-1 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } ffc46a40: 80 01 00 44 lwz r0,68(r1) ffc46a44: 7f e3 fb 78 mr r3,r31 ffc46a48: 83 a1 00 34 lwz r29,52(r1) ffc46a4c: 7c 08 03 a6 mtlr r0 ffc46a50: 83 c1 00 38 lwz r30,56(r1) ffc46a54: 83 e1 00 3c lwz r31,60(r1) ffc46a58: 38 21 00 40 addi r1,r1,64 ffc46a5c: 4e 80 00 20 blr <== ALWAYS TAKEN 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 ) ); ffc46a60: 89 21 00 08 lbz r9,8(r1) ffc46a64: 2b 89 00 07 cmplwi cr7,r9,7 <== ALWAYS TAKEN ffc46a68: 40 9d 01 b0 ble- cr7,ffc46c18 <== ALWAYS TAKEN ffc46a6c: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc46a70: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc46a74: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc46a78: 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); ffc46a7c: 3b e0 00 00 li r31,0 case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); ffc46a80: 90 81 00 28 stw r4,40(r1) ffc46a84: 4b fc 29 29 bl ffc093ac <== ALWAYS TAKEN /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); ffc46a88: 39 20 fd fe li r9,-514 ffc46a8c: 80 1e 00 18 lwz r0,24(r30) ffc46a90: 70 63 02 01 andi. r3,r3,513 ffc46a94: 80 81 00 28 lwz r4,40(r1) ffc46a98: 7d 20 00 38 and r0,r9,r0 ffc46a9c: 7c 60 03 78 or r0,r3,r0 ffc46aa0: 90 1e 00 18 stw r0,24(r30) ffc46aa4: 48 00 00 1c b ffc46ac0 <== ALWAYS TAKEN else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); ffc46aa8: 90 81 00 28 stw r4,40(r1) ffc46aac: 4b fc 25 e1 bl ffc0908c <== ALWAYS TAKEN ffc46ab0: 7c 7f 1b 78 mr r31,r3 ffc46ab4: 80 81 00 28 lwz r4,40(r1) /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { ffc46ab8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc46abc: 41 bc ff 84 blt- cr7,ffc46a40 <== NEVER TAKEN if (iop->handlers->fcntl_h) { ffc46ac0: 81 3e 00 40 lwz r9,64(r30) ffc46ac4: 80 09 00 30 lwz r0,48(r9) ffc46ac8: 2f 80 00 00 cmpwi cr7,r0,0 ffc46acc: 41 be ff 74 beq- cr7,ffc46a40 <== NEVER TAKEN int err = (*iop->handlers->fcntl_h)( cmd, iop ); ffc46ad0: 7c 83 23 78 mr r3,r4 ffc46ad4: 7c 09 03 a6 mtctr r0 ffc46ad8: 7f c4 f3 78 mr r4,r30 ffc46adc: 4e 80 04 21 bctrl <== ALWAYS TAKEN if (err) { ffc46ae0: 7c 7e 1b 79 mr. r30,r3 ffc46ae4: 41 82 ff 5c beq+ ffc46a40 <== ALWAYS TAKEN errno = err; ffc46ae8: 48 00 79 89 bl ffc4e470 <__errno> <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } ffc46aec: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED if (ret >= 0) { if (iop->handlers->fcntl_h) { int err = (*iop->handlers->fcntl_h)( cmd, iop ); if (err) { errno = err; ffc46af0: 3b e0 ff ff li r31,-1 <== NOT EXECUTED ffc46af4: 93 c3 00 00 stw r30,0(r3) <== NOT EXECUTED va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } ffc46af8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc46afc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc46b00: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc46b04: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc46b08: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc46b0c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc46b10: 4e 80 00 20 blr <== NOT EXECUTED * if a new process is exec()'ed. Since RTEMS does not support * processes, then we can ignore this one except to make * F_GETFD work. */ if ( va_arg( ap, int ) ) ffc46b14: 89 21 00 08 lbz r9,8(r1) ffc46b18: 2b 89 00 07 cmplwi cr7,r9,7 ffc46b1c: 41 9d 00 ec bgt- cr7,ffc46c08 <== NEVER TAKEN ffc46b20: 38 09 00 01 addi r0,r9,1 ffc46b24: 81 61 00 10 lwz r11,16(r1) ffc46b28: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc46b2c: 98 01 00 08 stb r0,8(r1) ffc46b30: 7d 2b 4a 14 add r9,r11,r9 ffc46b34: 80 09 00 00 lwz r0,0(r9) ffc46b38: 2f 80 00 00 cmpwi cr7,r0,0 ffc46b3c: 41 9e 01 08 beq- cr7,ffc46c44 <== NEVER TAKEN iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; ffc46b40: 60 63 08 00 ori r3,r3,2048 ffc46b44: 90 7e 00 18 stw r3,24(r30) ffc46b48: 3b e0 00 00 li r31,0 ffc46b4c: 4b ff ff 74 b ffc46ac0 <== ALWAYS TAKEN diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); ffc46b50: 54 7f af fe rlwinm r31,r3,21,31,31 ffc46b54: 4b ff ff 6c b ffc46ac0 <== ALWAYS TAKEN * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); ffc46b58: 89 21 00 08 lbz r9,8(r1) ffc46b5c: 2b 89 00 07 cmplwi cr7,r9,7 ffc46b60: 41 9d 00 98 bgt- cr7,ffc46bf8 <== NEVER TAKEN ffc46b64: 39 49 00 01 addi r10,r9,1 ffc46b68: 81 01 00 10 lwz r8,16(r1) ffc46b6c: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc46b70: 99 41 00 08 stb r10,8(r1) ffc46b74: 7d 28 4a 14 add r9,r8,r9 ffc46b78: 81 29 00 00 lwz r9,0(r9) if ( fd2 ) ffc46b7c: 2f 89 00 00 cmpwi cr7,r9,0 ffc46b80: 41 9e 00 d4 beq- cr7,ffc46c54 <== ALWAYS TAKEN diop = rtems_libio_iop( fd2 ); ffc46b84: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED ffc46b88: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc46b8c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc46b90: 40 9d 00 10 ble- cr7,ffc46ba0 <== NOT EXECUTED ffc46b94: 1d 29 00 48 mulli r9,r9,72 <== NOT EXECUTED ffc46b98: 7c 6b 4a 14 add r3,r11,r9 <== NOT EXECUTED ffc46b9c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc46ba0: 81 1e 00 1c lwz r8,28(r30) ret = (int) (diop - rtems_libio_iops); ffc46ba4: 7f eb f8 50 subf r31,r11,r31 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc46ba8: 81 5e 00 20 lwz r10,32(r30) ret = (int) (diop - rtems_libio_iops); ffc46bac: 7f ff 1e 70 srawi r31,r31,3 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc46bb0: 81 3e 00 24 lwz r9,36(r30) ffc46bb4: 80 1e 00 28 lwz r0,40(r30) ffc46bb8: 91 03 00 1c stw r8,28(r3) ret = (int) (diop - rtems_libio_iops); ffc46bbc: 3d 00 38 e3 lis r8,14563 ffc46bc0: 61 08 8e 39 ori r8,r8,36409 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc46bc4: 91 23 00 24 stw r9,36(r3) ret = (int) (diop - rtems_libio_iops); ffc46bc8: 7f ff 41 d6 mullw r31,r31,r8 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc46bcc: 90 03 00 28 stw r0,40(r3) ffc46bd0: 91 43 00 20 stw r10,32(r3) ret = -1; break; } } diop->handlers = iop->handlers; ffc46bd4: 81 7e 00 40 lwz r11,64(r30) diop->file_info = iop->file_info; ffc46bd8: 81 3e 00 3c lwz r9,60(r30) diop->flags = iop->flags; ffc46bdc: 80 1e 00 18 lwz r0,24(r30) diop->pathinfo = iop->pathinfo; ffc46be0: 81 5e 00 2c lwz r10,44(r30) ret = -1; break; } } diop->handlers = iop->handlers; ffc46be4: 91 63 00 40 stw r11,64(r3) diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ffc46be8: 91 43 00 2c stw r10,44(r3) break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; ffc46bec: 91 23 00 3c stw r9,60(r3) diop->flags = iop->flags; ffc46bf0: 90 03 00 18 stw r0,24(r3) ffc46bf4: 4b ff fe c4 b ffc46ab8 <== ALWAYS TAKEN * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); ffc46bf8: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc46bfc: 39 49 00 04 addi r10,r9,4 <== NOT EXECUTED ffc46c00: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc46c04: 4b ff ff 74 b ffc46b78 <== NOT EXECUTED * if a new process is exec()'ed. Since RTEMS does not support * processes, then we can ignore this one except to make * F_GETFD work. */ if ( va_arg( ap, int ) ) ffc46c08: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc46c0c: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc46c10: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc46c14: 4b ff ff 20 b ffc46b34 <== NOT EXECUTED case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); ffc46c18: 81 61 00 10 lwz r11,16(r1) ffc46c1c: 38 09 00 01 addi r0,r9,1 ffc46c20: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc46c24: 98 01 00 08 stb r0,8(r1) ffc46c28: 7d 2b 4a 14 add r9,r11,r9 ffc46c2c: 4b ff fe 4c b ffc46a78 <== ALWAYS TAKEN int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc46c30: 48 00 78 41 bl ffc4e470 <__errno> <== NOT EXECUTED ffc46c34: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc46c38: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc46c3c: 3b e0 ff ff li r31,-1 <== NOT EXECUTED ffc46c40: 4b ff fe 00 b ffc46a40 <== NOT EXECUTED */ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; ffc46c44: 54 63 05 66 rlwinm r3,r3,0,21,19 <== NOT EXECUTED ffc46c48: 90 7e 00 18 stw r3,24(r30) <== NOT EXECUTED ffc46c4c: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc46c50: 4b ff fe 70 b ffc46ac0 <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); ffc46c54: 90 81 00 28 stw r4,40(r1) ffc46c58: 4b fc 26 75 bl ffc092cc <== ALWAYS TAKEN if ( diop == 0 ) { ffc46c5c: 2c 03 00 00 cmpwi r3,0 ffc46c60: 3b e0 ff ff li r31,-1 ffc46c64: 80 81 00 28 lwz r4,40(r1) ffc46c68: 41 a2 fd d8 beq- ffc46a40 <== NEVER TAKEN ffc46c6c: 81 7d 35 f4 lwz r11,13812(r29) ffc46c70: 7c 7f 1b 78 mr r31,r3 ffc46c74: 4b ff ff 2c b ffc46ba0 <== ALWAYS TAKEN ffc05bc8 : #include int fdatasync( int fd ) { ffc05bc8: 7c 08 02 a6 mflr r0 ffc05bcc: 94 21 ff f8 stwu r1,-8(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc05bd0: 3d 20 00 00 lis r9,0 #include int fdatasync( int fd ) { ffc05bd4: 90 01 00 0c stw r0,12(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc05bd8: 80 09 26 8c lwz r0,9868(r9) ffc05bdc: 7f 83 00 40 cmplw cr7,r3,r0 ffc05be0: 40 9c 00 50 bge- cr7,ffc05c30 iop = rtems_libio_iop( fd ); ffc05be4: 3d 20 00 00 lis r9,0 ffc05be8: 80 09 27 50 lwz r0,10064(r9) ffc05bec: 1c 63 00 48 mulli r3,r3,72 ffc05bf0: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc05bf4: 80 03 00 18 lwz r0,24(r3) ffc05bf8: 70 09 01 00 andi. r9,r0,256 ffc05bfc: 41 82 00 34 beq- ffc05c30 <== NEVER TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc05c00: 70 09 00 04 andi. r9,r0,4 ffc05c04: 41 82 00 40 beq- ffc05c44 /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) ffc05c08: 81 23 00 40 lwz r9,64(r3) ffc05c0c: 80 09 00 2c lwz r0,44(r9) ffc05c10: 2f 80 00 00 cmpwi cr7,r0,0 ffc05c14: 41 9e 00 44 beq- cr7,ffc05c58 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fdatasync_h)( iop ); ffc05c18: 7c 09 03 a6 mtctr r0 ffc05c1c: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc05c20: 80 01 00 0c lwz r0,12(r1) ffc05c24: 38 21 00 08 addi r1,r1,8 ffc05c28: 7c 08 03 a6 mtlr r0 ffc05c2c: 4e 80 00 20 blr <== ALWAYS TAKEN { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc05c30: 48 01 0e 05 bl ffc16a34 <__errno> <== ALWAYS TAKEN ffc05c34: 38 00 00 09 li r0,9 ffc05c38: 90 03 00 00 stw r0,0(r3) ffc05c3c: 38 60 ff ff li r3,-1 ffc05c40: 4b ff ff e0 b ffc05c20 <== ALWAYS TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc05c44: 48 01 0d f1 bl ffc16a34 <__errno> <== ALWAYS TAKEN ffc05c48: 38 00 00 16 li r0,22 ffc05c4c: 90 03 00 00 stw r0,0(r3) ffc05c50: 38 60 ff ff li r3,-1 ffc05c54: 4b ff ff cc b ffc05c20 <== ALWAYS TAKEN /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc05c58: 48 01 0d dd bl ffc16a34 <__errno> <== ALWAYS TAKEN ffc05c5c: 38 00 00 86 li r0,134 ffc05c60: 90 03 00 00 stw r0,0(r3) ffc05c64: 38 60 ff ff li r3,-1 ffc05c68: 4b ff ff b8 b ffc05c20 <== ALWAYS TAKEN ffc10dd0 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10dd0: 94 21 ff c8 stwu r1,-56(r1) ffc10dd4: 7c 08 02 a6 mflr r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10dd8: 38 a0 00 00 li r5,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10ddc: 93 c1 00 30 stw r30,48(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10de0: 3f c0 00 00 lis r30,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10de4: 93 e1 00 34 stw r31,52(r1) ffc10de8: 7c 7f 1b 78 mr r31,r3 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10dec: 80 7e 29 90 lwz r3,10640(r30) */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10df0: 93 81 00 28 stw r28,40(r1) ffc10df4: 7c 9c 23 78 mr r28,r4 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10df8: 38 80 00 00 li r4,0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10dfc: 93 41 00 20 stw r26,32(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10e00: 3b 40 ff fc li r26,-4 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10e04: 90 01 00 3c stw r0,60(r1) ffc10e08: 93 21 00 1c stw r25,28(r1) ffc10e0c: 93 61 00 24 stw r27,36(r1) ffc10e10: 93 a1 00 2c stw r29,44(r1) ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10e14: 4b ff 77 71 bl ffc08584 <== ALWAYS TAKEN ffc10e18: 2f 83 00 00 cmpwi cr7,r3,0 ffc10e1c: 40 9e 00 7c bne- cr7,ffc10e98 <== ALWAYS TAKEN RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; ffc10e20: 83 bf 00 00 lwz r29,0(r31) <== NOT EXECUTED if (pipe == NULL) { ffc10e24: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc10e28: 41 9e 02 2c beq- cr7,ffc11054 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc10e2c: 80 7d 00 28 lwz r3,40(r29) <== NOT EXECUTED ffc10e30: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10e34: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10e38: 4b ff 77 4d bl ffc08584 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc10e3c: 80 1f 00 00 lwz r0,0(r31) <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc10e40: 30 63 ff ff addic r3,r3,-1 <== NOT EXECUTED ffc10e44: 7c 63 19 10 subfe r3,r3,r3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc10e48: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) ffc10e4c: 54 7a 07 7a rlwinm r26,r3,0,29,29 <== NOT EXECUTED ffc10e50: 3b 5a ff fc addi r26,r26,-4 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { ffc10e54: 41 9e 01 10 beq- cr7,ffc10f64 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc10e58: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10e5c: 4b ff 78 89 bl ffc086e4 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) ffc10e60: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc10e64: 40 9e 00 34 bne- cr7,ffc10e98 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { ffc10e68: 81 3c 00 18 lwz r9,24(r28) <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; ffc10e6c: 83 df 00 00 lwz r30,0(r31) <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { ffc10e70: 55 20 07 7c rlwinm r0,r9,0,29,30 <== NOT EXECUTED ffc10e74: 2f 80 00 04 cmpwi cr7,r0,4 <== NOT EXECUTED ffc10e78: 41 9e 00 50 beq- cr7,ffc10ec8 <== NOT EXECUTED ffc10e7c: 2f 80 00 06 cmpwi cr7,r0,6 <== NOT EXECUTED ffc10e80: 41 9e 01 84 beq- cr7,ffc11004 <== NOT EXECUTED ffc10e84: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc10e88: 41 9e 00 f4 beq- cr7,ffc10f7c <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); ffc10e8c: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc10e90: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc10e94: 4b ff 78 51 bl ffc086e4 <== NOT EXECUTED return 0; out_error: pipe_release(pipep, iop); return err; } ffc10e98: 80 01 00 3c lwz r0,60(r1) ffc10e9c: 7f 43 d3 78 mr r3,r26 ffc10ea0: 83 21 00 1c lwz r25,28(r1) ffc10ea4: 7c 08 03 a6 mtlr r0 ffc10ea8: 83 41 00 20 lwz r26,32(r1) ffc10eac: 83 61 00 24 lwz r27,36(r1) ffc10eb0: 83 81 00 28 lwz r28,40(r1) ffc10eb4: 83 a1 00 2c lwz r29,44(r1) ffc10eb8: 83 c1 00 30 lwz r30,48(r1) ffc10ebc: 83 e1 00 34 lwz r31,52(r1) ffc10ec0: 38 21 00 38 addi r1,r1,56 ffc10ec4: 4e 80 00 20 blr <== ALWAYS TAKEN } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { ffc10ec8: 80 1e 00 10 lwz r0,16(r30) <== NOT EXECUTED ffc10ecc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10ed0: 40 9e 00 10 bne- cr7,ffc10ee0 <== NOT EXECUTED ffc10ed4: 71 2b 00 01 andi. r11,r9,1 <== NOT EXECUTED ffc10ed8: 3b 40 ff fa li r26,-6 <== NOT EXECUTED ffc10edc: 40 82 00 78 bne- ffc10f54 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc10ee0: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc10ee4: 81 7e 00 24 lwz r11,36(r30) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc10ee8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc10eec: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc10ef0: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; ffc10ef4: 91 7e 00 24 stw r11,36(r30) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc10ef8: 91 3e 00 14 stw r9,20(r30) <== NOT EXECUTED ffc10efc: 41 9e 02 c4 beq- cr7,ffc111c0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { ffc10f00: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10f04: 40 be ff 88 bne- cr7,ffc10e8c <== NOT EXECUTED prevCounter = pipe->readerCounter; ffc10f08: 83 be 00 20 lwz r29,32(r30) <== NOT EXECUTED ffc10f0c: 48 00 00 20 b ffc10f2c <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) ffc10f10: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc10f14: 4b ff 76 71 bl ffc08584 <== NOT EXECUTED ffc10f18: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10f1c: 40 9e 00 34 bne- cr7,ffc10f50 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); ffc10f20: 80 1e 00 20 lwz r0,32(r30) <== NOT EXECUTED ffc10f24: 7f 80 e8 00 cmpw cr7,r0,r29 <== NOT EXECUTED ffc10f28: 40 be ff 64 bne- cr7,ffc10e8c <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); ffc10f2c: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc10f30: 4b ff 77 b5 bl ffc086e4 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc10f34: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc10f38: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10f3c: 48 00 0f b9 bl ffc11ef4 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc10f40: 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)) ffc10f44: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc10f48: 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)) ffc10f4c: 41 9e ff c4 beq+ cr7,ffc10f10 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; ffc10f50: 3b 40 ff fc li r26,-4 <== NOT EXECUTED out_error: pipe_release(pipep, iop); ffc10f54: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc10f58: 7f 84 e3 78 mr r4,r28 <== NOT EXECUTED ffc10f5c: 4b ff fc cd bl ffc10c28 <== NOT EXECUTED return err; ffc10f60: 4b ff ff 38 b ffc10e98 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) ffc10f64: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc10f68: 40 9e 02 6c bne- cr7,ffc111d4 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; ffc10f6c: 93 bf 00 00 stw r29,0(r31) <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc10f70: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10f74: 4b ff 77 71 bl ffc086e4 <== NOT EXECUTED ffc10f78: 4b ff fe f0 b ffc10e68 <== NOT EXECUTED pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc10f7c: 81 3e 00 10 lwz r9,16(r30) <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc10f80: 81 7e 00 20 lwz r11,32(r30) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc10f84: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc10f88: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc10f8c: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; ffc10f90: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc10f94: 91 3e 00 10 stw r9,16(r30) <== NOT EXECUTED ffc10f98: 41 9e 02 18 beq- cr7,ffc111b0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { ffc10f9c: 80 1e 00 14 lwz r0,20(r30) <== NOT EXECUTED ffc10fa0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10fa4: 40 be fe e8 bne- cr7,ffc10e8c <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) ffc10fa8: 80 1c 00 18 lwz r0,24(r28) <== NOT EXECUTED ffc10fac: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc10fb0: 40 a2 fe dc bne- ffc10e8c <== NOT EXECUTED break; prevCounter = pipe->writerCounter; ffc10fb4: 83 be 00 24 lwz r29,36(r30) <== NOT EXECUTED ffc10fb8: 48 00 00 20 b ffc10fd8 <== NOT EXECUTED /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) ffc10fbc: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc10fc0: 4b ff 75 c5 bl ffc08584 <== NOT EXECUTED ffc10fc4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10fc8: 40 be ff 88 bne- cr7,ffc10f50 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); ffc10fcc: 80 1e 00 24 lwz r0,36(r30) <== NOT EXECUTED ffc10fd0: 7f 80 e8 00 cmpw cr7,r0,r29 <== NOT EXECUTED ffc10fd4: 40 be fe b8 bne- cr7,ffc10e8c <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); ffc10fd8: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc10fdc: 4b ff 77 09 bl ffc086e4 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc10fe0: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc10fe4: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10fe8: 48 00 0f 0d bl ffc11ef4 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc10fec: 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)) ffc10ff0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) ffc10ff4: 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)) ffc10ff8: 41 9e ff c4 beq+ cr7,ffc10fbc <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; ffc10ffc: 3b 40 ff fc li r26,-4 <== NOT EXECUTED ffc11000: 4b ff ff 54 b ffc10f54 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) ffc11004: 81 3e 00 10 lwz r9,16(r30) <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc11008: 81 7e 00 20 lwz r11,32(r30) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc1100c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc11010: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc11014: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; ffc11018: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED if (pipe->Readers ++ == 0) ffc1101c: 91 3e 00 10 stw r9,16(r30) <== NOT EXECUTED ffc11020: 41 9e 01 80 beq- cr7,ffc111a0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) ffc11024: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; ffc11028: 81 7e 00 24 lwz r11,36(r30) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc1102c: 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 ++; ffc11030: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc11034: 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 ++; ffc11038: 90 1e 00 24 stw r0,36(r30) <== NOT EXECUTED if (pipe->Writers ++ == 0) ffc1103c: 91 3e 00 14 stw r9,20(r30) <== NOT EXECUTED ffc11040: 40 9e fe 4c bne+ cr7,ffc10e8c <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc11044: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc11048: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc1104c: 48 00 0e 11 bl ffc11e5c <== NOT EXECUTED ffc11050: 4b ff fe 3c b ffc10e8c <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); ffc11054: 38 60 00 34 li r3,52 <== NOT EXECUTED ffc11058: 4b ff 37 91 bl ffc047e8 <== NOT EXECUTED if (pipe == NULL) ffc1105c: 3b 40 ff f4 li r26,-12 <== NOT EXECUTED ffc11060: 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)); ffc11064: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED ffc11068: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED if (pipe == NULL) ffc1106c: 41 be fd ec beq- cr7,ffc10e58 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); ffc11070: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc11074: 38 a0 00 34 li r5,52 <== NOT EXECUTED ffc11078: 48 00 2f e9 bl ffc14060 <== NOT EXECUTED pipe->Size = PIPE_BUF; ffc1107c: 38 00 02 00 li r0,512 <== NOT EXECUTED ffc11080: 90 1b 00 04 stw r0,4(r27) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); ffc11084: 38 60 02 00 li r3,512 <== NOT EXECUTED ffc11088: 4b ff 37 61 bl ffc047e8 <== NOT EXECUTED if (! pipe->Buffer) ffc1108c: 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); ffc11090: 90 7b 00 00 stw r3,0(r27) <== NOT EXECUTED if (! pipe->Buffer) ffc11094: 41 9e 01 00 beq- cr7,ffc11194 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( ffc11098: 3f 40 00 00 lis r26,0 <== NOT EXECUTED ffc1109c: 88 7a 22 00 lbz r3,8704(r26) <== NOT EXECUTED ffc110a0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc110a4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc110a8: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc110ac: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc110b0: 38 db 00 2c addi r6,r27,44 <== NOT EXECUTED ffc110b4: 48 00 0b e5 bl ffc11c98 <== NOT EXECUTED ffc110b8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc110bc: 40 9e 00 cc bne- cr7,ffc11188 <== 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( ffc110c0: 88 7a 22 00 lbz r3,8704(r26) <== NOT EXECUTED ffc110c4: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc110c8: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc110cc: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc110d0: 60 63 77 00 ori r3,r3,30464 <== NOT EXECUTED ffc110d4: 38 db 00 30 addi r6,r27,48 <== NOT EXECUTED ffc110d8: 48 00 0b c1 bl ffc11c98 <== NOT EXECUTED ffc110dc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc110e0: 40 9e 00 a0 bne- cr7,ffc11180 <== 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( ffc110e4: 88 7a 22 00 lbz r3,8704(r26) <== NOT EXECUTED ffc110e8: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc110ec: 38 a0 00 10 li r5,16 <== NOT EXECUTED ffc110f0: 64 63 50 49 oris r3,r3,20553 <== NOT EXECUTED ffc110f4: 60 63 73 00 ori r3,r3,29440 <== NOT EXECUTED ffc110f8: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc110fc: 38 fb 00 28 addi r7,r27,40 <== NOT EXECUTED ffc11100: 4b ff 71 89 bl ffc08288 <== NOT EXECUTED ffc11104: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc11108: 40 9e 00 70 bne- cr7,ffc11178 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) ffc1110c: 3f 20 00 00 lis r25,0 <== NOT EXECUTED ffc11110: 80 9b 00 2c lwz r4,44(r27) <== NOT EXECUTED ffc11114: 3b 39 35 4c addi r25,r25,13644 <== NOT EXECUTED ffc11118: 3b 61 00 0c addi r27,r1,12 <== NOT EXECUTED ffc1111c: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc11120: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc11124: 4b ff 93 25 bl ffc0a448 <_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 ffc11128: 80 03 00 4c lwz r0,76(r3) <== NOT EXECUTED ffc1112c: 64 00 10 00 oris r0,r0,4096 <== NOT EXECUTED ffc11130: 90 03 00 4c stw r0,76(r3) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); ffc11134: 4b ff 9e e1 bl ffc0b014 <_Thread_Enable_dispatch> <== NOT EXECUTED ffc11138: 80 9d 00 30 lwz r4,48(r29) <== NOT EXECUTED ffc1113c: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc11140: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc11144: 4b ff 93 05 bl ffc0a448 <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state ffc11148: 80 03 00 4c lwz r0,76(r3) <== NOT EXECUTED ffc1114c: 64 00 10 00 oris r0,r0,4096 <== NOT EXECUTED ffc11150: 90 03 00 4c stw r0,76(r3) <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); ffc11154: 4b ff 9e c1 bl ffc0b014 <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') ffc11158: 89 3a 22 00 lbz r9,8704(r26) <== NOT EXECUTED ffc1115c: 2f 89 00 7a cmpwi cr7,r9,122 <== NOT EXECUTED ffc11160: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED ffc11164: 99 3a 22 00 stb r9,8704(r26) <== NOT EXECUTED ffc11168: 40 9e fc c4 bne+ cr7,ffc10e2c <== NOT EXECUTED c = 'a'; ffc1116c: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc11170: 98 1a 22 00 stb r0,8704(r26) <== NOT EXECUTED ffc11174: 4b ff fc b8 b ffc10e2c <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); ffc11178: 80 7b 00 30 lwz r3,48(r27) <== NOT EXECUTED ffc1117c: 48 00 0c 59 bl ffc11dd4 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); ffc11180: 80 7b 00 2c lwz r3,44(r27) <== NOT EXECUTED ffc11184: 48 00 0c 51 bl ffc11dd4 <== NOT EXECUTED err_rbar: free(pipe->Buffer); ffc11188: 80 7b 00 00 lwz r3,0(r27) <== NOT EXECUTED ffc1118c: 3b 40 ff fc li r26,-4 <== NOT EXECUTED ffc11190: 4b ff 32 d9 bl ffc04468 <== NOT EXECUTED err_buf: free(pipe); ffc11194: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc11198: 4b ff 32 d1 bl ffc04468 <== NOT EXECUTED ffc1119c: 4b ff fc bc b ffc10e58 <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); ffc111a0: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc111a4: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc111a8: 48 00 0c b5 bl ffc11e5c <== NOT EXECUTED ffc111ac: 4b ff fe 78 b ffc11024 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); ffc111b0: 80 7e 00 30 lwz r3,48(r30) <== NOT EXECUTED ffc111b4: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc111b8: 48 00 0c a5 bl ffc11e5c <== NOT EXECUTED ffc111bc: 4b ff fd e0 b ffc10f9c <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); ffc111c0: 80 7e 00 2c lwz r3,44(r30) <== NOT EXECUTED ffc111c4: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc111c8: 48 00 0c 95 bl ffc11e5c <== NOT EXECUTED ffc111cc: 80 1e 00 10 lwz r0,16(r30) <== NOT EXECUTED ffc111d0: 4b ff fd 30 b ffc10f00 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); ffc111d4: 80 7d 00 2c lwz r3,44(r29) <== NOT EXECUTED ffc111d8: 48 00 0b fd bl ffc11dd4 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); ffc111dc: 80 7d 00 30 lwz r3,48(r29) <== NOT EXECUTED ffc111e0: 48 00 0b f5 bl ffc11dd4 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); ffc111e4: 80 7d 00 28 lwz r3,40(r29) <== NOT EXECUTED ffc111e8: 4b ff 72 c1 bl ffc084a8 <== NOT EXECUTED free(pipe->Buffer); ffc111ec: 80 7d 00 00 lwz r3,0(r29) <== NOT EXECUTED ffc111f0: 4b ff 32 79 bl ffc04468 <== NOT EXECUTED free(pipe); ffc111f4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc111f8: 4b ff 32 71 bl ffc04468 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); ffc111fc: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc11200: 4b ff 74 e5 bl ffc086e4 <== NOT EXECUTED ffc11204: 4b ff fc 94 b ffc10e98 <== NOT EXECUTED ffc0d25c : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0d25c: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc0d260: 81 2b 63 d0 lwz r9,25552(r11) <== NOT EXECUTED ffc0d264: 39 6b 63 d0 addi r11,r11,25552 <== NOT EXECUTED ffc0d268: 38 0b 00 04 addi r0,r11,4 <== NOT EXECUTED ffc0d26c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0d270: 41 9e 00 30 beq- cr7,ffc0d2a0 <== 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 ) { ffc0d274: 81 44 00 10 lwz r10,16(r4) <== NOT EXECUTED ffc0d278: 81 69 00 18 lwz r11,24(r9) <== NOT EXECUTED ffc0d27c: 7f 8b 50 00 cmpw cr7,r11,r10 <== NOT EXECUTED ffc0d280: 40 be 00 14 bne+ cr7,ffc0d294 <== NOT EXECUTED ffc0d284: 48 00 00 24 b ffc0d2a8 <== NOT EXECUTED ffc0d288: 81 69 00 18 lwz r11,24(r9) <== NOT EXECUTED ffc0d28c: 7f 8b 50 00 cmpw cr7,r11,r10 <== NOT EXECUTED ffc0d290: 41 9e 00 18 beq- cr7,ffc0d2a8 <== 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 ) { ffc0d294: 81 29 00 00 lwz r9,0(r9) <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0d298: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc0d29c: 40 9e ff ec bne+ cr7,ffc0d288 <== NOT EXECUTED ffc0d2a0: 38 60 00 00 li r3,0 <== NOT EXECUTED return true; } } return false; } ffc0d2a4: 4e 80 00 20 blr <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0d2a8: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc0d2ac: 4e 80 00 20 blr <== NOT EXECUTED ffc08558 : #include #include int fork( void ) { rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08558: 94 21 ff f8 stwu r1,-8(r1) ffc0855c: 7c 08 02 a6 mflr r0 ffc08560: 90 01 00 0c stw r0,12(r1) ffc08564: 48 00 bd 0d bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08568: 38 00 00 58 li r0,88 ffc0856c: 90 03 00 00 stw r0,0(r3) } ffc08570: 38 60 ff ff li r3,-1 ffc08574: 80 01 00 0c lwz r0,12(r1) ffc08578: 38 21 00 08 addi r1,r1,8 ffc0857c: 7c 08 03 a6 mtlr r0 ffc08580: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05c6c : long fpathconf( int fd, int name ) { ffc05c6c: 7c 08 02 a6 mflr r0 ffc05c70: 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); ffc05c74: 3d 20 00 00 lis r9,0 long fpathconf( int fd, int name ) { ffc05c78: 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); ffc05c7c: 80 09 26 8c lwz r0,9868(r9) ffc05c80: 7f 83 00 40 cmplw cr7,r3,r0 ffc05c84: 40 9c 00 d0 bge- cr7,ffc05d54 iop = rtems_libio_iop(fd); ffc05c88: 3d 20 00 00 lis r9,0 ffc05c8c: 80 09 27 50 lwz r0,10064(r9) ffc05c90: 1c 63 00 48 mulli r3,r3,72 ffc05c94: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc05c98: 80 03 00 18 lwz r0,24(r3) ffc05c9c: 70 09 01 00 andi. r9,r0,256 ffc05ca0: 41 82 00 b4 beq- ffc05d54 <== NEVER TAKEN rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); ffc05ca4: 70 09 00 02 andi. r9,r0,2 ffc05ca8: 41 82 00 10 beq- ffc05cb8 <== NEVER TAKEN * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { ffc05cac: 2b 84 00 0b cmplwi cr7,r4,11 /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; ffc05cb0: 81 23 00 2c lwz r9,44(r3) switch ( name ) { ffc05cb4: 40 9d 00 24 ble- cr7,ffc05cd8 break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc05cb8: 48 01 0d 7d bl ffc16a34 <__errno> <== ALWAYS TAKEN ffc05cbc: 38 00 00 16 li r0,22 ffc05cc0: 90 03 00 00 stw r0,0(r3) ffc05cc4: 38 60 ff ff li r3,-1 break; } return return_value; } ffc05cc8: 80 01 00 0c lwz r0,12(r1) ffc05ccc: 38 21 00 08 addi r1,r1,8 ffc05cd0: 7c 08 03 a6 mtlr r0 ffc05cd4: 4e 80 00 20 blr <== ALWAYS TAKEN * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { ffc05cd8: 3d 60 ff c2 lis r11,-62 ffc05cdc: 39 6b 43 fc addi r11,r11,17404 ffc05ce0: 54 84 10 3a rlwinm r4,r4,2,0,29 ffc05ce4: 7c 0b 20 2e lwzx r0,r11,r4 ffc05ce8: 7d 60 5a 14 add r11,r0,r11 ffc05cec: 7d 69 03 a6 mtctr r11 ffc05cf0: 4e 80 04 20 bctr <== ALWAYS TAKEN break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; ffc05cf4: 80 69 00 5c lwz r3,92(r9) break; ffc05cf8: 4b ff ff d0 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; ffc05cfc: 80 69 00 50 lwz r3,80(r9) break; ffc05d00: 4b ff ff c8 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; ffc05d04: 80 69 00 64 lwz r3,100(r9) break; ffc05d08: 4b ff ff c0 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; ffc05d0c: 80 69 00 58 lwz r3,88(r9) break; ffc05d10: 4b ff ff b8 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; ffc05d14: 80 69 00 54 lwz r3,84(r9) break; ffc05d18: 4b ff ff b0 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_PATH_MAX: return_value = the_limits->path_max; break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; ffc05d1c: 80 69 00 4c lwz r3,76(r9) break; ffc05d20: 4b ff ff a8 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_NAME_MAX: return_value = the_limits->name_max; break; case _PC_PATH_MAX: return_value = the_limits->path_max; ffc05d24: 80 69 00 48 lwz r3,72(r9) break; ffc05d28: 4b ff ff a0 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_MAX_INPUT: return_value = the_limits->max_input; break; case _PC_NAME_MAX: return_value = the_limits->name_max; ffc05d2c: 80 69 00 44 lwz r3,68(r9) break; ffc05d30: 4b ff ff 98 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_MAX_CANON: return_value = the_limits->max_canon; break; case _PC_MAX_INPUT: return_value = the_limits->max_input; ffc05d34: 80 69 00 40 lwz r3,64(r9) break; ffc05d38: 4b ff ff 90 b ffc05cc8 <== ALWAYS TAKEN switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; break; case _PC_MAX_CANON: return_value = the_limits->max_canon; ffc05d3c: 80 69 00 3c lwz r3,60(r9) break; ffc05d40: 4b ff ff 88 b ffc05cc8 <== ALWAYS TAKEN the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; ffc05d44: 80 69 00 38 lwz r3,56(r9) break; ffc05d48: 4b ff ff 80 b ffc05cc8 <== ALWAYS TAKEN break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; ffc05d4c: 80 69 00 60 lwz r3,96(r9) break; ffc05d50: 4b ff ff 78 b ffc05cc8 <== ALWAYS TAKEN rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); ffc05d54: 48 01 0c e1 bl ffc16a34 <__errno> <== ALWAYS TAKEN ffc05d58: 38 00 00 09 li r0,9 ffc05d5c: 90 03 00 00 stw r0,0(r3) ffc05d60: 38 60 ff ff li r3,-1 ffc05d64: 4b ff ff 64 b ffc05cc8 <== ALWAYS TAKEN ffc04468 : void free( void *ptr ) { MSBUMP(free_calls, 1); ffc04468: 94 21 ff f0 stwu r1,-16(r1) ffc0446c: 7c 08 02 a6 mflr r0 ffc04470: 3d 20 00 00 lis r9,0 ffc04474: 90 01 00 14 stw r0,20(r1) ffc04478: 39 29 2b 00 addi r9,r9,11008 <== ALWAYS TAKEN ffc0447c: 93 e1 00 0c stw r31,12(r1) if ( !ptr ) ffc04480: 7c 7f 1b 79 mr. r31,r3 void free( void *ptr ) { MSBUMP(free_calls, 1); ffc04484: 81 69 00 0c lwz r11,12(r9) ffc04488: 93 c1 00 08 stw r30,8(r1) ffc0448c: 38 0b 00 01 addi r0,r11,1 ffc04490: 90 09 00 0c stw r0,12(r9) if ( !ptr ) ffc04494: 41 82 00 6c beq- ffc04500 /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && ffc04498: 3d 20 00 00 lis r9,0 ffc0449c: 80 09 27 d4 lwz r0,10196(r9) ffc044a0: 2f 80 00 03 cmpwi cr7,r0,3 ffc044a4: 41 9e 00 74 beq- cr7,ffc04518 <== ALWAYS TAKEN #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) ffc044a8: 3d 20 00 00 lis r9,0 ffc044ac: 81 29 27 08 lwz r9,9992(r9) ffc044b0: 2f 89 00 00 cmpwi cr7,r9,0 ffc044b4: 41 9e 00 14 beq- cr7,ffc044c8 <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->at_free)(ptr); ffc044b8: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED ffc044bc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc044c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc044c4: 4e 80 04 21 bctrl <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { ffc044c8: 3f c0 00 00 lis r30,0 ffc044cc: 80 7e 26 9c lwz r3,9884(r30) ffc044d0: 7f e4 fb 78 mr r4,r31 ffc044d4: 48 00 63 6d bl ffc0a840 <_Protected_heap_Free> <== ALWAYS TAKEN ffc044d8: 2f 83 00 00 cmpwi cr7,r3,0 ffc044dc: 40 be 00 24 bne+ cr7,ffc04500 <== ALWAYS TAKEN printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, ffc044e0: 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", ffc044e4: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc044e8: 38 63 f7 1c addi r3,r3,-2276 <== NOT EXECUTED ffc044ec: 80 c9 00 1c lwz r6,28(r9) <== NOT EXECUTED ffc044f0: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc044f4: 80 a9 00 18 lwz r5,24(r9) <== NOT EXECUTED ffc044f8: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc044fc: 48 00 10 9d bl ffc05598 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } ffc04500: 80 01 00 14 lwz r0,20(r1) ffc04504: 83 c1 00 08 lwz r30,8(r1) ffc04508: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0450c: 83 e1 00 0c lwz r31,12(r1) ffc04510: 38 21 00 10 addi r1,r1,16 ffc04514: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && ffc04518: 48 00 00 fd bl ffc04614 <== ALWAYS TAKEN ffc0451c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04520: 40 9e ff 88 bne+ cr7,ffc044a8 <== ALWAYS TAKEN !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); ffc04524: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04528: 48 00 01 35 bl ffc0465c <== NOT EXECUTED return; ffc0452c: 4b ff ff d4 b ffc04500 <== NOT EXECUTED ffc3095c : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { ffc3095c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc30960: 7c 08 02 a6 mflr r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env ffc30964: 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) { ffc30968: 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 ffc3096c: 38 09 63 dc addi r0,r9,25564 <== NOT EXECUTED ffc30970: 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) { ffc30974: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc30978: 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 ffc3097c: 41 9e 00 54 beq- cr7,ffc309d0 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); ffc30980: 81 23 00 10 lwz r9,16(r3) <== NOT EXECUTED ffc30984: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30988: 41 9e 00 1c beq- cr7,ffc309a4 <== NOT EXECUTED ffc3098c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30990: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30994: 41 9e 00 10 beq- cr7,ffc309a4 <== NOT EXECUTED ffc30998: 38 63 00 04 addi r3,r3,4 <== NOT EXECUTED ffc3099c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc309a0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); ffc309a4: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc309a8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc309ac: 41 9e 00 1c beq- cr7,ffc309c8 <== NOT EXECUTED ffc309b0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc309b4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc309b8: 41 9e 00 10 beq- cr7,ffc309c8 <== NOT EXECUTED ffc309bc: 38 7f 00 18 addi r3,r31,24 <== NOT EXECUTED ffc309c0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc309c4: 4e 80 04 21 bctrl <== NOT EXECUTED free(env); ffc309c8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc309cc: 4b fd 84 51 bl ffc08e1c <== NOT EXECUTED } } ffc309d0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc309d4: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc309d8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc309dc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc309e0: 4e 80 00 20 blr <== NOT EXECUTED ffc1de20 : int fstat( int fd, struct stat *sbuf ) { ffc1de20: 94 21 ff f0 stwu r1,-16(r1) ffc1de24: 7c 08 02 a6 mflr r0 ffc1de28: 93 c1 00 08 stw r30,8(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1de2c: 7c 9e 23 79 mr. r30,r4 int fstat( int fd, struct stat *sbuf ) { ffc1de30: 90 01 00 14 stw r0,20(r1) ffc1de34: 93 e1 00 0c stw r31,12(r1) /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) ffc1de38: 41 82 00 b0 beq- ffc1dee8 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); ffc1de3c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc1de40: 80 09 26 8c lwz r0,9868(r9) ffc1de44: 7f 83 00 40 cmplw cr7,r3,r0 ffc1de48: 40 9c 00 78 bge- cr7,ffc1dec0 ffc1de4c: 3d 20 00 00 lis r9,0 ffc1de50: 83 e9 27 4c lwz r31,10060(r9) ffc1de54: 1c 63 00 48 mulli r3,r3,72 ffc1de58: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); ffc1de5c: 80 1f 00 18 lwz r0,24(r31) ffc1de60: 70 09 01 00 andi. r9,r0,256 ffc1de64: 41 82 00 5c beq- ffc1dec0 <== NEVER TAKEN if ( !iop->handlers ) ffc1de68: 81 3f 00 40 lwz r9,64(r31) ffc1de6c: 2f 89 00 00 cmpwi cr7,r9,0 ffc1de70: 41 9e 00 50 beq- cr7,ffc1dec0 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) ffc1de74: 80 09 00 18 lwz r0,24(r9) ffc1de78: 2f 80 00 00 cmpwi cr7,r0,0 ffc1de7c: 41 9e 00 58 beq- cr7,ffc1ded4 <== NEVER TAKEN /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); ffc1de80: 38 80 00 00 li r4,0 ffc1de84: 38 a0 00 48 li r5,72 ffc1de88: 7f c3 f3 78 mr r3,r30 ffc1de8c: 4b ff 61 d5 bl ffc14060 <== ALWAYS TAKEN return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); ffc1de90: 81 3f 00 40 lwz r9,64(r31) ffc1de94: 38 7f 00 1c addi r3,r31,28 ffc1de98: 80 09 00 18 lwz r0,24(r9) ffc1de9c: 7f c4 f3 78 mr r4,r30 <== ALWAYS TAKEN ffc1dea0: 7c 09 03 a6 mtctr r0 ffc1dea4: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc1dea8: 80 01 00 14 lwz r0,20(r1) ffc1deac: 83 c1 00 08 lwz r30,8(r1) ffc1deb0: 7c 08 03 a6 mtlr r0 ffc1deb4: 83 e1 00 0c lwz r31,12(r1) ffc1deb8: 38 21 00 10 addi r1,r1,16 ffc1debc: 4e 80 00 20 blr <== ALWAYS TAKEN iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); ffc1dec0: 4b ff 54 b9 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc1dec4: 38 00 00 09 li r0,9 ffc1dec8: 90 03 00 00 stw r0,0(r3) ffc1decc: 38 60 ff ff li r3,-1 ffc1ded0: 4b ff ff d8 b ffc1dea8 <== ALWAYS TAKEN if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1ded4: 4b ff 54 a5 bl ffc13378 <__errno> <== NOT EXECUTED ffc1ded8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1dedc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1dee0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1dee4: 4b ff ff c4 b ffc1dea8 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc1dee8: 4b ff 54 91 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc1deec: 38 00 00 0e li r0,14 ffc1def0: 90 03 00 00 stw r0,0(r3) ffc1def4: 38 60 ff ff li r3,-1 ffc1def8: 4b ff ff b0 b ffc1dea8 <== ALWAYS TAKEN ffc2f0bc : #include int fsync( int fd ) { ffc2f0bc: 7c 08 02 a6 mflr r0 ffc2f0c0: 94 21 ff f8 stwu r1,-8(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2f0c4: 3d 20 00 00 lis r9,0 #include int fsync( int fd ) { ffc2f0c8: 90 01 00 0c stw r0,12(r1) rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc2f0cc: 80 09 34 cc lwz r0,13516(r9) ffc2f0d0: 7f 83 00 40 cmplw cr7,r3,r0 ffc2f0d4: 40 9c 00 58 bge- cr7,ffc2f12c <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc2f0d8: 3d 20 00 00 lis r9,0 ffc2f0dc: 80 09 35 f4 lwz r0,13812(r9) ffc2f0e0: 1c 63 00 48 mulli r3,r3,72 ffc2f0e4: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc2f0e8: 80 03 00 18 lwz r0,24(r3) ffc2f0ec: 70 09 01 00 andi. r9,r0,256 ffc2f0f0: 41 82 00 3c beq- ffc2f12c <== NEVER TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2f0f4: 70 09 00 04 andi. r9,r0,4 ffc2f0f8: 41 82 00 48 beq- ffc2f140 /* * Now process the fsync(). */ if ( !iop->handlers ) ffc2f0fc: 81 23 00 40 lwz r9,64(r3) ffc2f100: 2f 89 00 00 cmpwi cr7,r9,0 ffc2f104: 41 9e 00 28 beq- cr7,ffc2f12c <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) ffc2f108: 80 09 00 28 lwz r0,40(r9) ffc2f10c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f110: 41 9e 00 44 beq- cr7,ffc2f154 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); ffc2f114: 7c 09 03 a6 mtctr r0 ffc2f118: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc2f11c: 80 01 00 0c lwz r0,12(r1) ffc2f120: 38 21 00 08 addi r1,r1,8 ffc2f124: 7c 08 03 a6 mtlr r0 ffc2f128: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); ffc2f12c: 48 01 f3 45 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2f130: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc2f134: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2f138: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc2f13c: 4b ff ff e0 b ffc2f11c <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc2f140: 48 01 f3 31 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc2f144: 38 00 00 16 li r0,22 ffc2f148: 90 03 00 00 stw r0,0(r3) ffc2f14c: 38 60 ff ff li r3,-1 ffc2f150: 4b ff ff cc b ffc2f11c <== ALWAYS TAKEN if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc2f154: 48 01 f3 1d bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc2f158: 38 00 00 86 li r0,134 ffc2f15c: 90 03 00 00 stw r0,0(r3) ffc2f160: 38 60 ff ff li r3,-1 ffc2f164: 4b ff ff b8 b ffc2f11c <== ALWAYS TAKEN ffc0e04c : int ftruncate( int fd, off_t length ) { ffc0e04c: 94 21 ff c8 stwu r1,-56(r1) ffc0e050: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0e054: 3d 20 00 00 lis r9,0 int ftruncate( int fd, off_t length ) { ffc0e058: 90 01 00 3c stw r0,60(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0e05c: 80 09 26 8c lwz r0,9868(r9) int ftruncate( int fd, off_t length ) { ffc0e060: 93 a1 00 2c stw r29,44(r1) ffc0e064: 7c bd 2b 78 mr r29,r5 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0e068: 7f 83 00 40 cmplw cr7,r3,r0 int ftruncate( int fd, off_t length ) { ffc0e06c: 93 c1 00 30 stw r30,48(r1) ffc0e070: 7c de 33 78 mr r30,r6 ffc0e074: 93 e1 00 34 stw r31,52(r1) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); ffc0e078: 40 9c 00 b4 bge- cr7,ffc0e12c <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc0e07c: 3d 20 00 00 lis r9,0 ffc0e080: 83 e9 27 4c lwz r31,10060(r9) ffc0e084: 1c 63 00 48 mulli r3,r3,72 ffc0e088: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc0e08c: 80 1f 00 18 lwz r0,24(r31) ffc0e090: 70 09 01 00 andi. r9,r0,256 ffc0e094: 41 82 00 98 beq- ffc0e12c <== NEVER TAKEN /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0e098: 81 3f 00 28 lwz r9,40(r31) ffc0e09c: 81 1f 00 1c lwz r8,28(r31) if ( !loc.ops->node_type_h ) ffc0e0a0: 80 09 00 10 lwz r0,16(r9) /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0e0a4: 81 5f 00 20 lwz r10,32(r31) ffc0e0a8: 81 7f 00 24 lwz r11,36(r31) if ( !loc.ops->node_type_h ) ffc0e0ac: 2f 80 00 00 cmpwi cr7,r0,0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; ffc0e0b0: 91 01 00 08 stw r8,8(r1) ffc0e0b4: 91 41 00 0c stw r10,12(r1) ffc0e0b8: 91 61 00 10 stw r11,16(r1) ffc0e0bc: 91 21 00 14 stw r9,20(r1) ffc0e0c0: 81 3f 00 2c lwz r9,44(r31) ffc0e0c4: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc0e0c8: 41 9e 00 8c beq- cr7,ffc0e154 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) ffc0e0cc: 38 61 00 08 addi r3,r1,8 ffc0e0d0: 7c 09 03 a6 mtctr r0 ffc0e0d4: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0e0d8: 2f 83 00 01 cmpwi cr7,r3,1 ffc0e0dc: 41 9e 00 8c beq- cr7,ffc0e168 rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc0e0e0: 80 1f 00 18 lwz r0,24(r31) ffc0e0e4: 70 09 00 04 andi. r9,r0,4 ffc0e0e8: 41 82 00 58 beq- ffc0e140 <== NEVER TAKEN if ( !iop->handlers->ftruncate_h ) ffc0e0ec: 81 3f 00 40 lwz r9,64(r31) ffc0e0f0: 80 09 00 20 lwz r0,32(r9) ffc0e0f4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e0f8: 41 9e 00 5c beq- cr7,ffc0e154 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); ffc0e0fc: 7f e3 fb 78 mr r3,r31 ffc0e100: 7c 09 03 a6 mtctr r0 ffc0e104: 7f a5 eb 78 mr r5,r29 ffc0e108: 7f c6 f3 78 mr r6,r30 ffc0e10c: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc0e110: 80 01 00 3c lwz r0,60(r1) ffc0e114: 83 a1 00 2c lwz r29,44(r1) ffc0e118: 7c 08 03 a6 mtlr r0 ffc0e11c: 83 c1 00 30 lwz r30,48(r1) ffc0e120: 83 e1 00 34 lwz r31,52(r1) ffc0e124: 38 21 00 38 addi r1,r1,56 ffc0e128: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc0e12c: 48 00 52 4d bl ffc13378 <__errno> <== NOT EXECUTED ffc0e130: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc0e134: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0e138: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0e13c: 4b ff ff d4 b ffc0e110 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc0e140: 48 00 52 39 bl ffc13378 <__errno> <== NOT EXECUTED ffc0e144: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc0e148: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0e14c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0e150: 4b ff ff c0 b ffc0e110 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0e154: 48 00 52 25 bl ffc13378 <__errno> <== NOT EXECUTED ffc0e158: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0e15c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0e160: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0e164: 4b ff ff ac b ffc0e110 <== NOT EXECUTED loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); ffc0e168: 48 00 52 11 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0e16c: 38 00 00 15 li r0,21 ffc0e170: 90 03 00 00 stw r0,0(r3) ffc0e174: 38 60 ff ff li r3,-1 ffc0e178: 4b ff ff 98 b ffc0e110 <== ALWAYS TAKEN ffc691e0 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc691e0: 94 21 ff c8 stwu r1,-56(r1) ffc691e4: 7c 08 02 a6 mflr r0 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc691e8: 3d 20 00 00 lis r9,0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc691ec: 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 ); ffc691f0: 80 09 34 cc lwz r0,13516(r9) int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc691f4: 93 a1 00 2c stw r29,44(r1) /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc691f8: 3b a0 00 00 li r29,0 ffc691fc: 7f 83 00 40 cmplw cr7,r3,r0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { ffc69200: 93 c1 00 30 stw r30,48(r1) ffc69204: 7c 9e 23 78 mr r30,r4 ffc69208: 93 e1 00 34 stw r31,52(r1) ffc6920c: 7c bf 2b 78 mr r31,r5 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); ffc69210: 40 9c 00 14 bge- cr7,ffc69224 <== NEVER TAKEN ffc69214: 3d 20 00 00 lis r9,0 ffc69218: 1c 63 00 48 mulli r3,r3,72 ffc6921c: 83 a9 35 f4 lwz r29,13812(r9) ffc69220: 7f bd 1a 14 add r29,r29,r3 /* * Make sure we are working on a directory */ loc = iop->pathinfo; ffc69224: 81 3d 00 28 lwz r9,40(r29) ffc69228: 81 1d 00 1c lwz r8,28(r29) if ( !loc.ops->node_type_h ) ffc6922c: 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; ffc69230: 81 5d 00 20 lwz r10,32(r29) ffc69234: 81 7d 00 24 lwz r11,36(r29) if ( !loc.ops->node_type_h ) ffc69238: 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; ffc6923c: 91 01 00 08 stw r8,8(r1) ffc69240: 91 41 00 0c stw r10,12(r1) ffc69244: 91 61 00 10 stw r11,16(r1) ffc69248: 91 21 00 14 stw r9,20(r1) ffc6924c: 81 3d 00 2c lwz r9,44(r29) ffc69250: 91 21 00 18 stw r9,24(r1) if ( !loc.ops->node_type_h ) ffc69254: 41 9e 00 6c beq- cr7,ffc692c0 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) ffc69258: 38 61 00 08 addi r3,r1,8 ffc6925c: 7c 09 03 a6 mtctr r0 ffc69260: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc69264: 2f 83 00 01 cmpwi cr7,r3,1 ffc69268: 40 9e 00 44 bne- cr7,ffc692ac /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) ffc6926c: 81 3d 00 40 lwz r9,64(r29) ffc69270: 80 09 00 08 lwz r0,8(r9) ffc69274: 2f 80 00 00 cmpwi cr7,r0,0 ffc69278: 41 9e 00 48 beq- cr7,ffc692c0 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); ffc6927c: 7f a3 eb 78 mr r3,r29 ffc69280: 7c 09 03 a6 mtctr r0 ffc69284: 7f c4 f3 78 mr r4,r30 ffc69288: 7f e5 fb 78 mr r5,r31 ffc6928c: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc69290: 80 01 00 3c lwz r0,60(r1) ffc69294: 83 a1 00 2c lwz r29,44(r1) ffc69298: 7c 08 03 a6 mtlr r0 ffc6929c: 83 c1 00 30 lwz r30,48(r1) ffc692a0: 83 e1 00 34 lwz r31,52(r1) ffc692a4: 38 21 00 38 addi r1,r1,56 ffc692a8: 4e 80 00 20 blr <== ALWAYS TAKEN loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc692ac: 4b fe 51 c5 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc692b0: 38 00 00 14 li r0,20 ffc692b4: 90 03 00 00 stw r0,0(r3) ffc692b8: 38 60 ff ff li r3,-1 ffc692bc: 4b ff ff d4 b ffc69290 <== ALWAYS TAKEN * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc692c0: 4b fe 51 b1 bl ffc4e470 <__errno> <== NOT EXECUTED ffc692c4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc692c8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc692cc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc692d0: 4b ff ff c0 b ffc69290 <== NOT EXECUTED ffc0e17c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getegid( void ) { ffc0e17c: 3d 20 00 00 lis r9,0 ffc0e180: 81 29 26 dc lwz r9,9948(r9) return _POSIX_types_Egid; } ffc0e184: a0 69 00 38 lhz r3,56(r9) ffc0e188: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e18c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t geteuid( void ) { ffc0e18c: 3d 20 00 00 lis r9,0 ffc0e190: 81 29 26 dc lwz r9,9948(r9) return _POSIX_types_Euid; } ffc0e194: a0 69 00 36 lhz r3,54(r9) ffc0e198: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2f2b8 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { ffc2f2b8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2f2bc: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED return _POSIX_types_Gid; } ffc2f2c0: a0 69 00 34 lhz r3,52(r9) <== NOT EXECUTED ffc2f2c4: 4e 80 00 20 blr <== NOT EXECUTED ffc2fb6c : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2fb6c: 94 21 ff d8 stwu r1,-40(r1) ffc2fb70: 7d 80 00 26 mfcr r12 ffc2fb74: 7c 08 02 a6 mflr r0 ffc2fb78: 93 21 00 0c stw r25,12(r1) ffc2fb7c: 7d 19 43 78 mr r25,r8 ffc2fb80: 90 01 00 2c stw r0,44(r1) ffc2fb84: 93 41 00 10 stw r26,16(r1) ffc2fb88: 93 61 00 14 stw r27,20(r1) ffc2fb8c: 7c fb 3b 78 mr r27,r7 ffc2fb90: 93 81 00 18 stw r28,24(r1) ffc2fb94: 7c 9c 23 78 mr r28,r4 ffc2fb98: 93 a1 00 1c stw r29,28(r1) ffc2fb9c: 7c dd 33 78 mr r29,r6 ffc2fba0: 93 c1 00 20 stw r30,32(r1) ffc2fba4: 7c 7e 1b 78 mr r30,r3 ffc2fba8: 93 e1 00 24 stw r31,36(r1) ffc2fbac: 7c bf 2b 78 mr r31,r5 ffc2fbb0: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc2fbb4: 4b ff fe 39 bl ffc2f9ec <== ALWAYS TAKEN if ((fp = fopen("/etc/group", "r")) == NULL) { ffc2fbb8: 3c 60 ff c7 lis r3,-57 ffc2fbbc: 3c 80 ff c7 lis r4,-57 ffc2fbc0: 38 63 a3 84 addi r3,r3,-23676 ffc2fbc4: 38 84 33 70 addi r4,r4,13168 ffc2fbc8: 48 01 f5 75 bl ffc4f13c <== ALWAYS TAKEN ffc2fbcc: 7c 7a 1b 79 mr. r26,r3 ffc2fbd0: 41 82 00 f0 beq- ffc2fcc0 <== NEVER TAKEN if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2fbd4: 2e 1e 00 00 cmpwi cr4,r30,0 ffc2fbd8: 48 00 00 1c b ffc2fbf4 <== ALWAYS TAKEN match = (strcmp(grp->gr_name, name) == 0); ffc2fbdc: 80 7f 00 00 lwz r3,0(r31) ffc2fbe0: 48 02 60 79 bl ffc55c58 <== ALWAYS TAKEN ffc2fbe4: 7c 63 00 34 cntlzw r3,r3 ffc2fbe8: 54 63 d9 7e rlwinm r3,r3,27,5,31 } else { match = (grp->gr_gid == gid); } if (match) { ffc2fbec: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fbf0: 40 9e 00 40 bne- cr7,ffc2fc30 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { ffc2fbf4: 7f e4 fb 78 mr r4,r31 ffc2fbf8: 7f a5 eb 78 mr r5,r29 ffc2fbfc: 7f 66 db 78 mr r6,r27 ffc2fc00: 7f 43 d3 78 mr r3,r26 ffc2fc04: 4b ff fa 21 bl ffc2f624 <== ALWAYS TAKEN errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); ffc2fc08: 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)) { ffc2fc0c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fc10: 41 9e 00 64 beq- cr7,ffc2fc74 <== NEVER TAKEN errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2fc14: 40 92 ff c8 bne+ cr4,ffc2fbdc <== ALWAYS TAKEN match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); ffc2fc18: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc2fc1c: 7c 63 e2 78 xor r3,r3,r28 <== NOT EXECUTED ffc2fc20: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc2fc24: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED } if (match) { ffc2fc28: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fc2c: 41 9e ff c8 beq+ cr7,ffc2fbf4 <== NOT EXECUTED fclose(fp); ffc2fc30: 7f 43 d3 78 mr r3,r26 ffc2fc34: 48 01 e9 dd bl ffc4e610 <== ALWAYS TAKEN *result = grp; ffc2fc38: 93 f9 00 00 stw r31,0(r25) ffc2fc3c: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc2fc40: 80 01 00 2c lwz r0,44(r1) ffc2fc44: 81 81 00 08 lwz r12,8(r1) ffc2fc48: 7c 08 03 a6 mtlr r0 ffc2fc4c: 83 21 00 0c lwz r25,12(r1) ffc2fc50: 83 41 00 10 lwz r26,16(r1) ffc2fc54: 7d 80 81 20 mtcrf 8,r12 ffc2fc58: 83 61 00 14 lwz r27,20(r1) ffc2fc5c: 83 81 00 18 lwz r28,24(r1) ffc2fc60: 83 a1 00 1c lwz r29,28(r1) ffc2fc64: 83 c1 00 20 lwz r30,32(r1) ffc2fc68: 83 e1 00 24 lwz r31,36(r1) ffc2fc6c: 38 21 00 28 addi r1,r1,40 ffc2fc70: 4e 80 00 20 blr <== ALWAYS TAKEN errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; ffc2fc74: 48 01 e7 fd bl ffc4e470 <__errno> <== NOT EXECUTED ffc2fc78: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2fc7c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc2fc80: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc2fc84: 48 01 e9 8d bl ffc4e610 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } ffc2fc88: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc2fc8c: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; fclose(fp); ffc2fc90: 38 60 ff ff li r3,-1 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } ffc2fc94: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fc98: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc2fc9c: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc2fca0: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc2fca4: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc2fca8: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc2fcac: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc2fcb0: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc2fcb4: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc2fcb8: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc2fcbc: 4e 80 00 20 blr <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; ffc2fcc0: 48 01 e7 b1 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2fcc4: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2fcc8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2fccc: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc2fcd0: 4b ff ff 70 b ffc2fc40 <== NOT EXECUTED ffc2f7bc : return p; } struct group *getgrent(void) { if (group_fp == NULL) ffc2f7bc: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2f7c0: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2f7c4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (group_fp == NULL) ffc2f7c8: 80 65 5f 74 lwz r3,24436(r5) <== NOT EXECUTED ffc2f7cc: 38 a5 5f 74 addi r5,r5,24436 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2f7d0: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (group_fp == NULL) ffc2f7d4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED return NULL; return p; } struct group *getgrent(void) { ffc2f7d8: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (group_fp == NULL) ffc2f7dc: 40 9e 00 1c bne- cr7,ffc2f7f8 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) return NULL; return &grent; } ffc2f7e0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) ffc2f7e4: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &grent; } ffc2f7e8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2f7ec: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2f7f0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f7f4: 4e 80 00 20 blr <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) ffc2f7f8: 3b e5 00 08 addi r31,r5,8 <== NOT EXECUTED ffc2f7fc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2f800: 38 a5 00 18 addi r5,r5,24 <== NOT EXECUTED ffc2f804: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc2f808: 4b ff fe 1d bl ffc2f624 <== NOT EXECUTED ffc2f80c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2f810: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2f814: 41 be ff cc beq- cr7,ffc2f7e0 <== NOT EXECUTED return NULL; return &grent; } ffc2f818: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2f81c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2f820: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2f824: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f828: 4e 80 00 20 blr <== NOT EXECUTED ffc2fcfc : } struct group *getgrgid( gid_t gid ) { ffc2fcfc: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2fd00: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc2fd04: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2fd08: 38 84 5f 74 addi r4,r4,24436 <== NOT EXECUTED ffc2fd0c: 38 a4 00 18 addi r5,r4,24 <== NOT EXECUTED ffc2fd10: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { ffc2fd14: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) ffc2fd18: 38 84 00 08 addi r4,r4,8 <== NOT EXECUTED ffc2fd1c: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc2fd20: 4b ff ff b5 bl ffc2fcd4 <== NOT EXECUTED ffc2fd24: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fd28: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2fd2c: 40 9e 00 08 bne- cr7,ffc2fd34 <== NOT EXECUTED return NULL; return p; ffc2fd30: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc2fd34: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc2fd38: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc2fd3c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fd40: 4e 80 00 20 blr <== NOT EXECUTED ffc2fcd4 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2fcd4: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc2fcd8: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc2fcdc: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc2fce0: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); ffc2fce4: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2fce8: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc2fcec: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc2fcf0: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc2fcf4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2fcf8: 4b ff fe 74 b ffc2fb6c <== NOT EXECUTED ffc2fd64 : } struct group *getgrnam( const char *name ) { ffc2fd64: 94 21 ff e8 stwu r1,-24(r1) struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc2fd68: 3c 80 00 00 lis r4,0 } struct group *getgrnam( const char *name ) { ffc2fd6c: 7c 08 02 a6 mflr r0 struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc2fd70: 38 84 5f 74 addi r4,r4,24436 ffc2fd74: 38 a4 00 18 addi r5,r4,24 ffc2fd78: 38 c0 00 c8 li r6,200 } struct group *getgrnam( const char *name ) { ffc2fd7c: 90 01 00 1c stw r0,28(r1) struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) ffc2fd80: 38 84 00 08 addi r4,r4,8 ffc2fd84: 38 e1 00 08 addi r7,r1,8 ffc2fd88: 4b ff ff bd bl ffc2fd44 <== ALWAYS TAKEN ffc2fd8c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fd90: 38 60 00 00 li r3,0 ffc2fd94: 40 9e 00 08 bne- cr7,ffc2fd9c <== NEVER TAKEN return NULL; return p; ffc2fd98: 80 61 00 08 lwz r3,8(r1) } ffc2fd9c: 80 01 00 1c lwz r0,28(r1) ffc2fda0: 38 21 00 18 addi r1,r1,24 ffc2fda4: 7c 08 03 a6 mtlr r0 ffc2fda8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2fd44 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { ffc2fd44: 7c a9 2b 78 mr r9,r5 ffc2fd48: 7c c0 33 78 mr r0,r6 ffc2fd4c: 7c e8 3b 78 mr r8,r7 return getgr_r(name, 0, grp, buffer, bufsize, result); ffc2fd50: 7c 85 23 78 mr r5,r4 ffc2fd54: 7d 26 4b 78 mr r6,r9 ffc2fd58: 7c 07 03 78 mr r7,r0 ffc2fd5c: 38 80 00 00 li r4,0 ffc2fd60: 4b ff fe 0c b ffc2fb6c <== ALWAYS TAKEN ffc0820c : int getitimer( int which, struct itimerval *value ) { if ( !value ) ffc0820c: 2f 84 00 00 cmpwi cr7,r4,0 int getitimer( int which, struct itimerval *value ) { ffc08210: 94 21 ff f8 stwu r1,-8(r1) ffc08214: 7c 08 02 a6 mflr r0 ffc08218: 90 01 00 0c stw r0,12(r1) if ( !value ) ffc0821c: 41 9e 00 4c beq- cr7,ffc08268 rtems_set_errno_and_return_minus_one( EFAULT ); switch ( which ) { ffc08220: 2b 83 00 02 cmplwi cr7,r3,2 ffc08224: 40 9d 00 24 ble- cr7,ffc08248 case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc08228: 48 00 bc 15 bl ffc13e3c <__errno> <== ALWAYS TAKEN ffc0822c: 38 00 00 16 li r0,22 ffc08230: 90 03 00 00 stw r0,0(r3) } ffc08234: 80 01 00 0c lwz r0,12(r1) ffc08238: 38 60 ff ff li r3,-1 ffc0823c: 38 21 00 08 addi r1,r1,8 ffc08240: 7c 08 03 a6 mtlr r0 ffc08244: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( which ) { case ITIMER_REAL: case ITIMER_VIRTUAL: case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08248: 48 00 bb f5 bl ffc13e3c <__errno> <== ALWAYS TAKEN ffc0824c: 38 00 00 58 li r0,88 ffc08250: 90 03 00 00 stw r0,0(r3) default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc08254: 38 60 ff ff li r3,-1 ffc08258: 80 01 00 0c lwz r0,12(r1) ffc0825c: 38 21 00 08 addi r1,r1,8 ffc08260: 7c 08 03 a6 mtlr r0 ffc08264: 4e 80 00 20 blr <== ALWAYS TAKEN int which, struct itimerval *value ) { if ( !value ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc08268: 48 00 bb d5 bl ffc13e3c <__errno> <== ALWAYS TAKEN ffc0826c: 38 00 00 0e li r0,14 ffc08270: 90 03 00 00 stw r0,0(r3) ffc08274: 4b ff ff c0 b ffc08234 <== ALWAYS TAKEN ffc04700 : * return a reasonable value. */ int getpagesize(void) { return PAGE_SIZE; } ffc04700: 38 60 10 00 li r3,4096 ffc04704: 4e 80 00 20 blr <== ALWAYS TAKEN ffc116bc : */ pid_t getpid( void ) { return _Objects_Local_node; } ffc116bc: 38 60 00 01 li r3,1 ffc116c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2fe04 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2fe04: 94 21 ff d8 stwu r1,-40(r1) ffc2fe08: 7d 80 00 26 mfcr r12 ffc2fe0c: 7c 08 02 a6 mflr r0 ffc2fe10: 93 21 00 0c stw r25,12(r1) ffc2fe14: 7d 19 43 78 mr r25,r8 ffc2fe18: 90 01 00 2c stw r0,44(r1) ffc2fe1c: 93 41 00 10 stw r26,16(r1) ffc2fe20: 93 61 00 14 stw r27,20(r1) ffc2fe24: 7c fb 3b 78 mr r27,r7 ffc2fe28: 93 81 00 18 stw r28,24(r1) ffc2fe2c: 7c 9c 23 78 mr r28,r4 ffc2fe30: 93 a1 00 1c stw r29,28(r1) ffc2fe34: 7c dd 33 78 mr r29,r6 ffc2fe38: 93 c1 00 20 stw r30,32(r1) ffc2fe3c: 7c 7e 1b 78 mr r30,r3 ffc2fe40: 93 e1 00 24 stw r31,36(r1) ffc2fe44: 7c bf 2b 78 mr r31,r5 ffc2fe48: 91 81 00 08 stw r12,8(r1) FILE *fp; int match; init_etc_passwd_group(); ffc2fe4c: 4b ff fb a1 bl ffc2f9ec <== ALWAYS TAKEN if ((fp = fopen("/etc/passwd", "r")) == NULL) { ffc2fe50: 3c 60 ff c7 lis r3,-57 ffc2fe54: 3c 80 ff c7 lis r4,-57 ffc2fe58: 38 63 a2 d4 addi r3,r3,-23852 ffc2fe5c: 38 84 33 70 addi r4,r4,13168 ffc2fe60: 48 01 f2 dd bl ffc4f13c <== ALWAYS TAKEN ffc2fe64: 7c 7a 1b 79 mr. r26,r3 ffc2fe68: 41 82 00 f0 beq- ffc2ff58 <== NEVER TAKEN if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2fe6c: 2e 1e 00 00 cmpwi cr4,r30,0 ffc2fe70: 48 00 00 1c b ffc2fe8c <== ALWAYS TAKEN match = (strcmp(pwd->pw_name, name) == 0); ffc2fe74: 80 7f 00 00 lwz r3,0(r31) ffc2fe78: 48 02 5d e1 bl ffc55c58 <== ALWAYS TAKEN ffc2fe7c: 7c 63 00 34 cntlzw r3,r3 ffc2fe80: 54 63 d9 7e rlwinm r3,r3,27,5,31 } else { match = (pwd->pw_uid == uid); } if (match) { ffc2fe84: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fe88: 40 9e 00 40 bne- cr7,ffc2fec8 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { ffc2fe8c: 7f e4 fb 78 mr r4,r31 ffc2fe90: 7f a5 eb 78 mr r5,r29 ffc2fe94: 7f 66 db 78 mr r6,r27 ffc2fe98: 7f 43 d3 78 mr r3,r26 ffc2fe9c: 4b ff f9 91 bl ffc2f82c <== ALWAYS TAKEN errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); ffc2fea0: 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)) { ffc2fea4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fea8: 41 9e 00 64 beq- cr7,ffc2ff0c <== NEVER TAKEN errno = EINVAL; fclose(fp); return -1; } if (name) { ffc2feac: 40 92 ff c8 bne+ cr4,ffc2fe74 <== ALWAYS TAKEN match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); ffc2feb0: a0 7f 00 08 lhz r3,8(r31) <== NOT EXECUTED ffc2feb4: 7c 63 e2 78 xor r3,r3,r28 <== NOT EXECUTED ffc2feb8: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc2febc: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED } if (match) { ffc2fec0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fec4: 41 9e ff c8 beq+ cr7,ffc2fe8c <== NOT EXECUTED fclose(fp); ffc2fec8: 7f 43 d3 78 mr r3,r26 ffc2fecc: 48 01 e7 45 bl ffc4e610 <== ALWAYS TAKEN *result = pwd; ffc2fed0: 93 f9 00 00 stw r31,0(r25) ffc2fed4: 38 60 00 00 li r3,0 } } fclose(fp); errno = EINVAL; return -1; } ffc2fed8: 80 01 00 2c lwz r0,44(r1) ffc2fedc: 81 81 00 08 lwz r12,8(r1) ffc2fee0: 7c 08 03 a6 mtlr r0 ffc2fee4: 83 21 00 0c lwz r25,12(r1) ffc2fee8: 83 41 00 10 lwz r26,16(r1) ffc2feec: 7d 80 81 20 mtcrf 8,r12 ffc2fef0: 83 61 00 14 lwz r27,20(r1) ffc2fef4: 83 81 00 18 lwz r28,24(r1) ffc2fef8: 83 a1 00 1c lwz r29,28(r1) ffc2fefc: 83 c1 00 20 lwz r30,32(r1) ffc2ff00: 83 e1 00 24 lwz r31,36(r1) ffc2ff04: 38 21 00 28 addi r1,r1,40 ffc2ff08: 4e 80 00 20 blr <== ALWAYS TAKEN errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; ffc2ff0c: 48 01 e5 65 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2ff10: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2ff14: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED fclose(fp); ffc2ff18: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc2ff1c: 48 01 e6 f5 bl ffc4e610 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } ffc2ff20: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc2ff24: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; fclose(fp); ffc2ff28: 38 60 ff ff li r3,-1 <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } ffc2ff2c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2ff30: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc2ff34: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc2ff38: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc2ff3c: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc2ff40: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc2ff44: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc2ff48: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc2ff4c: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc2ff50: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc2ff54: 4e 80 00 20 blr <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; ffc2ff58: 48 01 e5 19 bl ffc4e470 <__errno> <== NOT EXECUTED ffc2ff5c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc2ff60: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc2ff64: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc2ff68: 4b ff ff 70 b ffc2fed8 <== NOT EXECUTED ffc2f97c : return NULL; return p; } struct passwd *getpwent(void) { ffc2f97c: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2f980: 7c 08 02 a6 mflr r0 <== NOT EXECUTED if (passwd_fp == NULL) ffc2f984: 3c a0 00 00 lis r5,0 <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc2f988: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc2f98c: 38 a5 5f 74 addi r5,r5,24436 <== NOT EXECUTED ffc2f990: 80 65 00 04 lwz r3,4(r5) <== NOT EXECUTED return NULL; return p; } struct passwd *getpwent(void) { ffc2f994: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (passwd_fp == NULL) ffc2f998: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2f99c: 40 9e 00 1c bne- cr7,ffc2f9b8 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) return NULL; return &pwent; } ffc2f9a0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) ffc2f9a4: 38 60 00 00 li r3,0 <== NOT EXECUTED return NULL; return &pwent; } ffc2f9a8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2f9ac: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2f9b0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f9b4: 4e 80 00 20 blr <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) ffc2f9b8: 3b e5 00 e0 addi r31,r5,224 <== NOT EXECUTED ffc2f9bc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2f9c0: 38 a5 00 fc addi r5,r5,252 <== NOT EXECUTED ffc2f9c4: 38 c0 00 c8 li r6,200 <== NOT EXECUTED ffc2f9c8: 4b ff fe 65 bl ffc2f82c <== NOT EXECUTED ffc2f9cc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2f9d0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc2f9d4: 41 be ff cc beq- cr7,ffc2f9a0 <== NOT EXECUTED return NULL; return &pwent; } ffc2f9d8: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc2f9dc: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2f9e0: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2f9e4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f9e8: 4e 80 00 20 blr <== NOT EXECUTED ffc2fffc : } struct passwd *getpwnam( const char *name ) { ffc2fffc: 94 21 ff e8 stwu r1,-24(r1) struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc30000: 3c 80 00 00 lis r4,0 } struct passwd *getpwnam( const char *name ) { ffc30004: 7c 08 02 a6 mflr r0 struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc30008: 38 84 5f 74 addi r4,r4,24436 ffc3000c: 38 a4 00 fc addi r5,r4,252 ffc30010: 38 c0 00 c8 li r6,200 } struct passwd *getpwnam( const char *name ) { ffc30014: 90 01 00 1c stw r0,28(r1) struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) ffc30018: 38 84 00 e0 addi r4,r4,224 ffc3001c: 38 e1 00 08 addi r7,r1,8 ffc30020: 4b ff ff bd bl ffc2ffdc <== ALWAYS TAKEN ffc30024: 2f 83 00 00 cmpwi cr7,r3,0 ffc30028: 38 60 00 00 li r3,0 ffc3002c: 40 9e 00 08 bne- cr7,ffc30034 <== NEVER TAKEN return NULL; return p; ffc30030: 80 61 00 08 lwz r3,8(r1) } ffc30034: 80 01 00 1c lwz r0,28(r1) ffc30038: 38 21 00 18 addi r1,r1,24 ffc3003c: 7c 08 03 a6 mtlr r0 ffc30040: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2ffdc : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2ffdc: 7c a9 2b 78 mr r9,r5 ffc2ffe0: 7c c0 33 78 mr r0,r6 ffc2ffe4: 7c e8 3b 78 mr r8,r7 return getpw_r(name, 0, pwd, buffer, bufsize, result); ffc2ffe8: 7c 85 23 78 mr r5,r4 ffc2ffec: 7d 26 4b 78 mr r6,r9 ffc2fff0: 7c 07 03 78 mr r7,r0 ffc2fff4: 38 80 00 00 li r4,0 ffc2fff8: 4b ff fe 0c b ffc2fe04 <== ALWAYS TAKEN ffc2ff94 : } struct passwd *getpwuid( uid_t uid ) { ffc2ff94: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2ff98: 3c 80 00 00 lis r4,0 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc2ff9c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2ffa0: 38 84 5f 74 addi r4,r4,24436 <== NOT EXECUTED ffc2ffa4: 38 a4 00 fc addi r5,r4,252 <== NOT EXECUTED ffc2ffa8: 38 c0 00 c8 li r6,200 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { ffc2ffac: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) ffc2ffb0: 38 84 00 e0 addi r4,r4,224 <== NOT EXECUTED ffc2ffb4: 38 e1 00 08 addi r7,r1,8 <== NOT EXECUTED ffc2ffb8: 4b ff ff b5 bl ffc2ff6c <== NOT EXECUTED ffc2ffbc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2ffc0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2ffc4: 40 9e 00 08 bne- cr7,ffc2ffcc <== NOT EXECUTED return NULL; return p; ffc2ffc8: 80 61 00 08 lwz r3,8(r1) <== NOT EXECUTED } ffc2ffcc: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc2ffd0: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc2ffd4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2ffd8: 4e 80 00 20 blr <== NOT EXECUTED ffc2ff6c : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { ffc2ff6c: 7c 8b 23 78 mr r11,r4 <== NOT EXECUTED ffc2ff70: 7c a9 2b 78 mr r9,r5 <== NOT EXECUTED ffc2ff74: 7c c0 33 78 mr r0,r6 <== NOT EXECUTED ffc2ff78: 7c e8 3b 78 mr r8,r7 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); ffc2ff7c: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc2ff80: 7d 65 5b 78 mr r5,r11 <== NOT EXECUTED ffc2ff84: 7d 26 4b 78 mr r6,r9 <== NOT EXECUTED ffc2ff88: 7c 07 03 78 mr r7,r0 <== NOT EXECUTED ffc2ff8c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2ff90: 4b ff fe 74 b ffc2fe04 <== NOT EXECUTED ffc0e19c : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0e19c: 94 21 ff e0 stwu r1,-32(r1) ffc0e1a0: 7c 08 02 a6 mflr r0 ffc0e1a4: 93 e1 00 1c stw r31,28(r1) <== ALWAYS TAKEN /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0e1a8: 7c 7f 1b 79 mr. r31,r3 */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { ffc0e1ac: 90 01 00 24 stw r0,36(r1) ffc0e1b0: 93 c1 00 18 stw r30,24(r1) /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { ffc0e1b4: 41 82 00 64 beq- ffc0e218 <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0e1b8: 7f c0 00 a6 mfmsr r30 ffc0e1bc: 7c 10 42 a6 mfsprg r0,0 ffc0e1c0: 7f c0 00 78 andc r0,r30,r0 ffc0e1c4: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc0e1c8: 38 61 00 08 addi r3,r1,8 ffc0e1cc: 48 00 17 19 bl ffc0f8e4 <_TOD_Get> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0e1d0: 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; ffc0e1d4: 3d 60 10 62 lis r11,4194 <== ALWAYS TAKEN _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; ffc0e1d8: 80 01 00 0c lwz r0,12(r1) useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; ffc0e1dc: 61 6b 4d d3 ori r11,r11,19923 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; ffc0e1e0: 81 21 00 08 lwz r9,8(r1) time->tv_usec = useconds; ffc0e1e4: 7d 60 58 96 mulhw r11,r0,r11 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; ffc0e1e8: 91 3f 00 00 stw r9,0(r31) time->tv_usec = useconds; ffc0e1ec: 7c 00 fe 70 srawi r0,r0,31 ffc0e1f0: 7d 6b 36 70 srawi r11,r11,6 ffc0e1f4: 7c 00 58 50 subf r0,r0,r11 ffc0e1f8: 90 1f 00 04 stw r0,4(r31) ffc0e1fc: 38 60 00 00 li r3,0 * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } ffc0e200: 80 01 00 24 lwz r0,36(r1) ffc0e204: 83 c1 00 18 lwz r30,24(r1) ffc0e208: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e20c: 83 e1 00 1c lwz r31,28(r1) ffc0e210: 38 21 00 20 addi r1,r1,32 ffc0e214: 4e 80 00 20 blr <== ALWAYS TAKEN void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; ffc0e218: 48 00 51 61 bl ffc13378 <__errno> <== NOT EXECUTED ffc0e21c: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc0e220: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0e224: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc0e228: 4b ff ff d8 b ffc0e200 <== NOT EXECUTED ffc08f84 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { ffc08f84: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc08f88: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED return _POSIX_types_Uid; } ffc08f8c: a0 69 00 32 lhz r3,50(r9) <== NOT EXECUTED ffc08f90: 4e 80 00 20 blr <== NOT EXECUTED ffc187c8 : * and associated memory. At present the imfs_dir_close simply * returns a successful completion status. */ return 0; } ffc187c8: 38 60 00 00 li r3,0 ffc187cc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc187d0 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; ffc187d0: 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; ffc187d4: 39 40 00 00 li r10,0 IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; ffc187d8: 39 60 00 00 li r11,0 buf->st_ino = the_jnode->st_ino; ffc187dc: 80 09 00 38 lwz r0,56(r9) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; ffc187e0: 39 80 00 00 li r12,0 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; ffc187e4: 91 44 00 44 stw r10,68(r4) the_jnode = (IMFS_jnode_t *) loc->node_access; buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; ffc187e8: 90 04 00 08 stw r0,8(r4) ffc187ec: 38 09 00 54 addi r0,r9,84 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; ffc187f0: 91 44 00 40 stw r10,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; ffc187f4: a1 09 00 34 lhz r8,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; ffc187f8: 81 49 00 40 lwz r10,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; ffc187fc: b1 04 00 10 sth r8,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; ffc18800: 91 44 00 28 stw r10,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; ffc18804: a1 09 00 3c lhz r8,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; ffc18808: 81 49 00 44 lwz r10,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; ffc1880c: b1 04 00 12 sth r8,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; ffc18810: 91 44 00 30 stw r10,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; ffc18814: 80 e9 00 30 lwz r7,48(r9) buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; ffc18818: a1 09 00 3e lhz r8,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; ffc1881c: 81 49 00 48 lwz r10,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; ffc18820: 90 e4 00 0c stw r7,12(r4) buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; ffc18824: b1 04 00 14 sth r8,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; ffc18828: 91 44 00 38 stw r10,56(r4) buf->st_size = 0; ffc1882c: 91 64 00 20 stw r11,32(r4) ffc18830: 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; ffc18834: 91 64 00 00 stw r11,0(r4) ffc18838: 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; ffc1883c: 91 64 00 18 stw r11,24(r4) ffc18840: 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 ; ffc18844: 81 69 00 50 lwz r11,80(r9) ffc18848: 7f 8b 00 00 cmpw cr7,r11,r0 ffc1884c: 41 9e 00 30 beq- cr7,ffc1887c ffc18850: 39 20 00 00 li r9,0 ffc18854: 39 40 01 18 li r10,280 !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { ffc18858: 81 6b 00 00 lwz r11,0(r11) 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 ; ffc1885c: 7d 28 4b 78 mr r8,r9 ffc18860: 7d 47 53 78 mr r7,r10 ffc18864: 7f 8b 00 00 cmpw cr7,r11,r0 !rtems_chain_is_tail( the_chain, the_node ) ; the_node = the_node->next ) { ffc18868: 31 4a 01 18 addic r10,r10,280 ffc1886c: 7d 29 01 94 addze r9,r9 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 ; ffc18870: 40 9e ff e8 bne+ cr7,ffc18858 ffc18874: 90 e4 00 24 stw r7,36(r4) ffc18878: 91 04 00 20 stw r8,32(r4) buf->st_size = buf->st_size + sizeof( struct dirent ); } return 0; } ffc1887c: 38 60 00 00 li r3,0 ffc18880: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18884 : rtems_libio_t *iop, rtems_off64_t offset, int whence ) { switch( whence ) { ffc18884: 2b 87 00 01 cmplwi cr7,r7,1 rtems_off64_t imfs_dir_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc18888: 94 21 ff f0 stwu r1,-16(r1) ffc1888c: 7c 08 02 a6 mflr r0 ffc18890: 93 e1 00 0c stw r31,12(r1) ffc18894: 7c 7f 1b 78 mr r31,r3 ffc18898: 90 01 00 14 stw r0,20(r1) switch( whence ) { ffc1889c: 40 9d 00 34 ble- cr7,ffc188d0 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 ); ffc188a0: 48 00 16 a9 bl ffc19f48 <__errno> <== ALWAYS TAKEN ffc188a4: 38 00 00 16 li r0,22 ffc188a8: 90 03 00 00 stw r0,0(r3) ffc188ac: 39 20 ff ff li r9,-1 ffc188b0: 39 40 ff ff li r10,-1 break; } return 0; } ffc188b4: 80 01 00 14 lwz r0,20(r1) ffc188b8: 7d 44 53 78 mr r4,r10 ffc188bc: 7d 23 4b 78 mr r3,r9 ffc188c0: 83 e1 00 0c lwz r31,12(r1) ffc188c4: 7c 08 03 a6 mtlr r0 ffc188c8: 38 21 00 10 addi r1,r1,16 ffc188cc: 4e 80 00 20 blr <== ALWAYS TAKEN ) { switch( whence ) { case SEEK_SET: /* absolute move from the start of the file */ case SEEK_CUR: /* relative move */ iop->offset = (iop->offset/sizeof(struct dirent)) * ffc188d0: 80 63 00 10 lwz r3,16(r3) ffc188d4: 38 a0 00 00 li r5,0 ffc188d8: 80 9f 00 14 lwz r4,20(r31) ffc188dc: 38 c0 01 18 li r6,280 ffc188e0: 48 00 b5 0d bl ffc23dec <__divdi3> <== ALWAYS TAKEN ffc188e4: 38 00 01 18 li r0,280 ffc188e8: 7d 40 21 d6 mullw r10,r0,r4 ffc188ec: 7d 20 20 16 mulhwu r9,r0,r4 rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } ffc188f0: 80 01 00 14 lwz r0,20(r1) ) { switch( whence ) { case SEEK_SET: /* absolute move from the start of the file */ case SEEK_CUR: /* relative move */ iop->offset = (iop->offset/sizeof(struct dirent)) * ffc188f4: 91 5f 00 14 stw r10,20(r31) rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } ffc188f8: 7c 08 03 a6 mtlr r0 ) { switch( whence ) { case SEEK_SET: /* absolute move from the start of the file */ case SEEK_CUR: /* relative move */ iop->offset = (iop->offset/sizeof(struct dirent)) * ffc188fc: 1c 63 01 18 mulli r3,r3,280 ffc18900: 39 40 00 00 li r10,0 ffc18904: 7c 83 4a 14 add r4,r3,r9 ffc18908: 39 20 00 00 li r9,0 <== ALWAYS TAKEN ffc1890c: 90 9f 00 10 stw r4,16(r31) rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } ffc18910: 7d 23 4b 78 mr r3,r9 ffc18914: 7d 44 53 78 mr r4,r10 ffc18918: 83 e1 00 0c lwz r31,12(r1) ffc1891c: 38 21 00 10 addi r1,r1,16 ffc18920: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18798 : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; ffc18798: 81 23 00 3c lwz r9,60(r3) ffc1879c: 38 00 ff ff li r0,-1 ffc187a0: 81 29 00 4c lwz r9,76(r9) ffc187a4: 2f 89 00 01 cmpwi cr7,r9,1 ffc187a8: 40 be 00 18 bne+ cr7,ffc187c0 <== NEVER TAKEN if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; ffc187ac: 39 20 00 00 li r9,0 ffc187b0: 39 40 00 00 li r10,0 ffc187b4: 91 23 00 10 stw r9,16(r3) ffc187b8: 38 00 00 00 li r0,0 ffc187bc: 91 43 00 14 stw r10,20(r3) return 0; } ffc187c0: 7c 03 03 78 mr r3,r0 ffc187c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18a54 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc18a54: 94 21 fe a8 stwu r1,-344(r1) ffc18a58: 7c 08 02 a6 mflr r0 ffc18a5c: 90 01 01 5c stw r0,348(r1) ffc18a60: 93 01 01 38 stw r24,312(r1) ffc18a64: 7c 98 23 78 mr r24,r4 ffc18a68: 93 21 01 3c stw r25,316(r1) ffc18a6c: 7c 79 1b 78 mr r25,r3 ffc18a70: 93 61 01 44 stw r27,324(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 ) ) ffc18a74: 3b 60 00 00 li r27,0 ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc18a78: 93 81 01 48 stw r28,328(r1) ffc18a7c: 92 81 01 28 stw r20,296(r1) int current_entry; int first_entry; int last_entry; struct dirent tmp_dirent; the_jnode = (IMFS_jnode_t *)iop->file_info; ffc18a80: 83 83 00 3c lwz r28,60(r3) ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc18a84: 92 a1 01 2c stw r21,300(r1) ffc18a88: 92 c1 01 30 stw r22,304(r1) ffc18a8c: 92 e1 01 34 stw r23,308(r1) ffc18a90: 93 41 01 40 stw r26,320(r1) ffc18a94: 93 a1 01 4c stw r29,332(r1) ffc18a98: 93 c1 01 50 stw r30,336(r1) ffc18a9c: 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)); ffc18aa0: 83 dc 00 50 lwz r30,80(r28) */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc18aa4: 3b 9c 00 54 addi r28,r28,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 ) ) ffc18aa8: 7f 9e e0 00 cmpw cr7,r30,r28 ffc18aac: 41 9e 00 d0 beq- cr7,ffc18b7c 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); ffc18ab0: 3f 40 0e a0 lis r26,3744 /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; ffc18ab4: 83 a3 00 14 lwz r29,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); ffc18ab8: 54 a5 e8 fe rlwinm r5,r5,29,3,31 ffc18abc: 63 5a ea 0f ori r26,r26,59919 ffc18ac0: 7f 45 d0 16 mulhwu r26,r5,r26 /* The directory was not empty so try to move to the desired entry in chain*/ for ( ffc18ac4: 3b e0 00 00 li r31,0 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); ffc18ac8: 57 5a f8 7e rlwinm r26,r26,31,1,31 ffc18acc: 1f 5a 01 18 mulli r26,r26,280 /* The directory was not empty so try to move to the desired entry in chain*/ for ( ffc18ad0: 7f 5a ea 15 add. r26,r26,r29 ffc18ad4: 40 81 00 a8 ble- ffc18b7c <== NEVER TAKEN } 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 ); ffc18ad8: 3a a0 01 18 li r21,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 ); ffc18adc: 3a c1 00 1c addi r22,r1,28 memcpy( ffc18ae0: 3a e1 00 08 addi r23,r1,8 ffc18ae4: 48 00 00 1c b ffc18b00 <== ALWAYS TAKEN * 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( ffc18ae8: 3b ff 01 18 addi r31,r31,280 ); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; ffc18aec: 83 de 00 00 lwz r30,0(r30) /* 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 ( ffc18af0: 7f 9f d0 00 cmpw cr7,r31,r26 current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ ffc18af4: 7f 1e e0 00 cmpw cr6,r30,r28 /* 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 ( ffc18af8: 40 9c 00 84 bge- cr7,ffc18b7c <== NEVER TAKEN current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ ffc18afc: 41 9a 00 80 beq- cr6,ffc18b7c /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { ffc18b00: 7f 9d f8 00 cmpw cr7,r29,r31 ffc18b04: 41 9d ff e4 bgt+ cr7,ffc18ae8 /* 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; ffc18b08: 80 1e 00 38 lwz r0,56(r30) tmp_dirent.d_namlen = strlen( the_jnode->name ); ffc18b0c: 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; ffc18b10: 7f e9 fe 70 srawi r9,r31,31 ffc18b14: 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 ); ffc18b18: 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; ffc18b1c: 91 21 00 10 stw r9,16(r1) * 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( ffc18b20: 3b ff 01 18 addi r31,r31,280 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 ); the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; ffc18b24: 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 ); ffc18b28: b2 a1 00 18 sth r21,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 ); ffc18b2c: 48 00 26 dd bl ffc1b208 <== ALWAYS TAKEN strcpy( tmp_dirent.d_name, the_jnode->name ); ffc18b30: 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 ); ffc18b34: b0 61 00 1a sth r3,26(r1) strcpy( tmp_dirent.d_name, the_jnode->name ); ffc18b38: 7e c3 b3 78 mr r3,r22 ffc18b3c: 48 00 25 bd bl ffc1b0f8 <== ALWAYS TAKEN memcpy( ffc18b40: 7c 78 da 14 add r3,r24,r27 ffc18b44: 7e e4 bb 78 mr r4,r23 ffc18b48: 38 a0 01 18 li r5,280 ffc18b4c: 48 00 1f e5 bl ffc1ab30 <== ALWAYS TAKEN /* 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 ( ffc18b50: 7f 9f d0 00 cmpw cr7,r31,r26 memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); ffc18b54: 81 79 00 10 lwz r11,16(r25) bytes_transferred = bytes_transferred + sizeof( struct dirent ); ffc18b58: 3b 7b 01 18 addi r27,r27,280 memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); ffc18b5c: 81 99 00 14 lwz r12,20(r25) bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; ffc18b60: 83 de 00 00 lwz r30,0(r30) memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); ffc18b64: 31 4c 01 18 addic r10,r12,280 ffc18b68: 7d 2b 01 94 addze r9,r11 ffc18b6c: 91 39 00 10 stw r9,16(r25) for ( current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ ffc18b70: 7f 1e e0 00 cmpw cr6,r30,r28 memcpy( buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); ffc18b74: 91 59 00 14 stw r10,20(r25) /* 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 ( ffc18b78: 41 9c ff 84 blt+ cr7,ffc18afc <== NEVER TAKEN the_node = the_node->next; } /* Success */ return bytes_transferred; } ffc18b7c: 80 01 01 5c lwz r0,348(r1) ffc18b80: 7f 63 db 78 mr r3,r27 ffc18b84: 82 81 01 28 lwz r20,296(r1) ffc18b88: 7c 08 03 a6 mtlr r0 ffc18b8c: 82 a1 01 2c lwz r21,300(r1) ffc18b90: 82 c1 01 30 lwz r22,304(r1) ffc18b94: 82 e1 01 34 lwz r23,308(r1) ffc18b98: 83 01 01 38 lwz r24,312(r1) ffc18b9c: 83 21 01 3c lwz r25,316(r1) ffc18ba0: 83 41 01 40 lwz r26,320(r1) ffc18ba4: 83 61 01 44 lwz r27,324(r1) ffc18ba8: 83 81 01 48 lwz r28,328(r1) ffc18bac: 83 a1 01 4c lwz r29,332(r1) ffc18bb0: 83 c1 01 50 lwz r30,336(r1) ffc18bb4: 83 e1 01 54 lwz r31,340(r1) ffc18bb8: 38 21 01 58 addi r1,r1,344 ffc18bbc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18924 : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc18924: 94 21 ff d8 stwu r1,-40(r1) ffc18928: 7c 08 02 a6 mflr r0 ffc1892c: 90 01 00 2c stw r0,44(r1) ffc18930: 93 c1 00 20 stw r30,32(r1) ffc18934: 7c 9e 23 78 mr r30,r4 ffc18938: 93 e1 00 24 stw r31,36(r1) ffc1893c: 93 a1 00 1c stw r29,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc18940: 83 e4 00 00 lwz r31,0(r4) ffc18944: 81 3f 00 50 lwz r9,80(r31) ffc18948: 38 1f 00 54 addi r0,r31,84 ffc1894c: 7f 89 00 00 cmpw cr7,r9,r0 ffc18950: 40 9e 00 d4 bne- cr7,ffc18a24 /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) ffc18954: 81 24 00 10 lwz r9,16(r4) ffc18958: 80 09 00 1c lwz r0,28(r9) ffc1895c: 7f 9f 00 00 cmpw cr7,r31,r0 ffc18960: 41 9e 00 d8 beq- cr7,ffc18a38 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) ffc18964: 83 bf 00 5c lwz r29,92(r31) ffc18968: 2f 9d 00 00 cmpwi cr7,r29,0 ffc1896c: 40 9e 00 cc bne- cr7,ffc18a38 <== NEVER TAKEN /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { ffc18970: 80 1f 00 08 lwz r0,8(r31) ffc18974: 2f 80 00 00 cmpwi cr7,r0,0 ffc18978: 41 9e 00 10 beq- cr7,ffc18988 ffc1897c: 7f e3 fb 78 mr r3,r31 ffc18980: 4b ff 2b 49 bl ffc0b4c8 <_Chain_Extract> <== ALWAYS TAKEN rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc18984: 93 bf 00 08 stw r29,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc18988: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc1898c: 38 80 00 00 li r4,0 ffc18990: 38 61 00 08 addi r3,r1,8 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc18994: 38 09 ff ff addi r0,r9,-1 ffc18998: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc1899c: 4b fe d5 f5 bl ffc05f90 <== ALWAYS TAKEN ffc189a0: 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) ) { ffc189a4: 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 ); ffc189a8: 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) ) { ffc189ac: 4b ff bc 21 bl ffc145cc <== ALWAYS TAKEN ffc189b0: 2f 83 00 00 cmpwi cr7,r3,0 ffc189b4: 40 9e 00 50 bne- cr7,ffc18a04 ffc189b8: a0 1f 00 34 lhz r0,52(r31) ffc189bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc189c0: 40 9e 00 44 bne- cr7,ffc18a04 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) ffc189c4: 3d 20 00 00 lis r9,0 ffc189c8: 81 7e 00 00 lwz r11,0(r30) ffc189cc: 81 29 26 f4 lwz r9,9972(r9) ffc189d0: 81 49 00 04 lwz r10,4(r9) ffc189d4: 7f 8a 58 00 cmpw cr7,r10,r11 ffc189d8: 41 9e 00 74 beq- cr7,ffc18a4c <== NEVER TAKEN /* * Free memory associated with a memory file. */ free( the_jnode ); ffc189dc: 7f e3 fb 78 mr r3,r31 ffc189e0: 4b fe d4 e9 bl ffc05ec8 <== ALWAYS TAKEN } return 0; } ffc189e4: 80 01 00 2c lwz r0,44(r1) /* * Free memory associated with a memory file. */ free( the_jnode ); ffc189e8: 38 60 00 00 li r3,0 } return 0; } ffc189ec: 83 a1 00 1c lwz r29,28(r1) ffc189f0: 7c 08 03 a6 mtlr r0 ffc189f4: 83 c1 00 20 lwz r30,32(r1) ffc189f8: 83 e1 00 24 lwz r31,36(r1) ffc189fc: 38 21 00 28 addi r1,r1,40 ffc18a00: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Free memory associated with a memory file. */ free( the_jnode ); ffc18a04: 38 60 00 00 li r3,0 } return 0; } ffc18a08: 80 01 00 2c lwz r0,44(r1) ffc18a0c: 83 a1 00 1c lwz r29,28(r1) ffc18a10: 7c 08 03 a6 mtlr r0 ffc18a14: 83 c1 00 20 lwz r30,32(r1) ffc18a18: 83 e1 00 24 lwz r31,36(r1) ffc18a1c: 38 21 00 28 addi r1,r1,40 ffc18a20: 4e 80 00 20 blr <== ALWAYS TAKEN /* * 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 ); ffc18a24: 48 00 15 25 bl ffc19f48 <__errno> <== ALWAYS TAKEN ffc18a28: 38 00 00 5a li r0,90 ffc18a2c: 90 03 00 00 stw r0,0(r3) ffc18a30: 38 60 ff ff li r3,-1 ffc18a34: 4b ff ff d4 b ffc18a08 <== ALWAYS TAKEN /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY ); ffc18a38: 48 00 15 11 bl ffc19f48 <__errno> <== ALWAYS TAKEN ffc18a3c: 38 00 00 10 li r0,16 ffc18a40: 90 03 00 00 stw r0,0(r3) ffc18a44: 38 60 ff ff li r3,-1 ffc18a48: 4b ff ff c0 b ffc18a08 <== ALWAYS TAKEN /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL; ffc18a4c: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED ffc18a50: 4b ff ff 8c b ffc189dc <== NOT EXECUTED ffc2f9ec : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2f9ec: 94 21 ff f0 stwu r1,-16(r1) ffc2f9f0: 7c 08 02 a6 mflr r0 FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2f9f4: 3d 20 00 00 lis r9,0 /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2f9f8: 90 01 00 14 stw r0,20(r1) FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2f9fc: 39 29 5f 74 addi r9,r9,24436 /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { ffc2fa00: 93 c1 00 08 stw r30,8(r1) ffc2fa04: 93 e1 00 0c stw r31,12(r1) FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) ffc2fa08: 88 09 01 c4 lbz r0,452(r9) ffc2fa0c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2fa10: 41 9e 00 1c beq- cr7,ffc2fa2c fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } ffc2fa14: 80 01 00 14 lwz r0,20(r1) ffc2fa18: 83 c1 00 08 lwz r30,8(r1) ffc2fa1c: 7c 08 03 a6 mtlr r0 ffc2fa20: 83 e1 00 0c lwz r31,12(r1) ffc2fa24: 38 21 00 10 addi r1,r1,16 ffc2fa28: 4e 80 00 20 blr <== ALWAYS TAKEN FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; ffc2fa2c: 38 00 00 01 li r0,1 ffc2fa30: 98 09 01 c4 stb r0,452(r9) mkdir("/etc", 0777); ffc2fa34: 3c 60 ff c7 lis r3,-57 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc2fa38: 3f c0 ff c7 lis r30,-57 ffc2fa3c: 3f e0 ff c7 lis r31,-57 static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); ffc2fa40: 38 80 01 ff li r4,511 ffc2fa44: 38 63 a2 54 addi r3,r3,-23980 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc2fa48: 3b de a2 d4 addi r30,r30,-23852 static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1; mkdir("/etc", 0777); ffc2fa4c: 4b fd 9e 15 bl ffc09860 <== ALWAYS TAKEN /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { ffc2fa50: 3b ff 33 70 addi r31,r31,13168 ffc2fa54: 7f c3 f3 78 mr r3,r30 ffc2fa58: 7f e4 fb 78 mr r4,r31 ffc2fa5c: 48 01 f6 e1 bl ffc4f13c <== ALWAYS TAKEN ffc2fa60: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fa64: 41 9e 00 7c beq- cr7,ffc2fae0 <== ALWAYS TAKEN } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); ffc2fa68: 48 01 eb a9 bl ffc4e610 <== ALWAYS TAKEN } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { ffc2fa6c: 3f c0 ff c7 lis r30,-57 ffc2fa70: 3b de a3 84 addi r30,r30,-23676 ffc2fa74: 7f e4 fb 78 mr r4,r31 ffc2fa78: 7f c3 f3 78 mr r3,r30 ffc2fa7c: 48 01 f6 c1 bl ffc4f13c <== ALWAYS TAKEN ffc2fa80: 2f 83 00 00 cmpwi cr7,r3,0 ffc2fa84: 41 9e 00 20 beq- cr7,ffc2faa4 <== ALWAYS TAKEN } else if ((fp = fopen("/etc/group", "w")) != NULL) { fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); ffc2fa88: 48 01 eb 89 bl ffc4e610 <== NOT EXECUTED } } ffc2fa8c: 80 01 00 14 lwz r0,20(r1) ffc2fa90: 83 c1 00 08 lwz r30,8(r1) ffc2fa94: 7c 08 03 a6 mtlr r0 ffc2fa98: 83 e1 00 0c lwz r31,12(r1) ffc2fa9c: 38 21 00 10 addi r1,r1,16 ffc2faa0: 4e 80 00 20 blr <== ALWAYS TAKEN * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { ffc2faa4: 3c 80 ff c7 lis r4,-57 ffc2faa8: 7f c3 f3 78 mr r3,r30 ffc2faac: 38 84 bb 08 addi r4,r4,-17656 ffc2fab0: 48 01 f6 8d bl ffc4f13c <== ALWAYS TAKEN ffc2fab4: 7c 7f 1b 79 mr. r31,r3 ffc2fab8: 41 a2 ff 5c beq- ffc2fa14 <== NEVER TAKEN fprintf( fp, "root:x:0:root\n" ffc2fabc: 3c 60 ff c7 lis r3,-57 ffc2fac0: 38 80 00 01 li r4,1 ffc2fac4: 38 a0 00 2a li r5,42 ffc2fac8: 7f e6 fb 78 mr r6,r31 ffc2facc: 38 63 01 fc addi r3,r3,508 ffc2fad0: 48 02 0d b1 bl ffc50880 <== ALWAYS TAKEN "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); ffc2fad4: 7f e3 fb 78 mr r3,r31 ffc2fad8: 48 01 eb 39 bl ffc4e610 <== ALWAYS TAKEN ffc2fadc: 4b ff ff b0 b ffc2fa8c <== ALWAYS TAKEN * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) { ffc2fae0: 3c 80 ff c7 lis r4,-57 ffc2fae4: 7f c3 f3 78 mr r3,r30 ffc2fae8: 38 84 bb 08 addi r4,r4,-17656 ffc2faec: 48 01 f6 51 bl ffc4f13c <== ALWAYS TAKEN ffc2faf0: 7c 7e 1b 79 mr. r30,r3 ffc2faf4: 41 a2 ff 78 beq- ffc2fa6c <== NEVER TAKEN fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" ffc2faf8: 3c 60 ff c7 lis r3,-57 ffc2fafc: 38 63 01 94 addi r3,r3,404 ffc2fb00: 38 80 00 01 li r4,1 ffc2fb04: 38 a0 00 66 li r5,102 ffc2fb08: 7f c6 f3 78 mr r6,r30 ffc2fb0c: 48 02 0d 75 bl ffc50880 <== ALWAYS TAKEN "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); ffc2fb10: 7f c3 f3 78 mr r3,r30 ffc2fb14: 4b ff ff 54 b ffc2fa68 <== ALWAYS TAKEN ffc04b38 : */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc04b38: 3d 60 00 00 lis r11,0 ffc04b3c: 39 2b 2b 30 addi r9,r11,11056 <== ALWAYS TAKEN ffc04b40: 38 09 00 04 addi r0,r9,4 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc04b44: 91 29 00 08 stw r9,8(r9) <== ALWAYS TAKEN int init_fs_mount_table(void) { rtems_chain_initialize_empty ( &rtems_filesystem_mount_table_control ); return 0; } ffc04b48: 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); ffc04b4c: 90 0b 2b 30 stw r0,11056(r11) the_chain->permanent_null = NULL; ffc04b50: 38 00 00 00 li r0,0 ffc04b54: 90 09 00 04 stw r0,4(r9) <== ALWAYS TAKEN ffc04b58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d9c : int ioctl( int fd, ioctl_command_t command, ... ) { ffc08d9c: 94 21 ff e0 stwu r1,-32(r1) ffc08da0: 7c 08 02 a6 mflr r0 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); ffc08da4: 3d 20 00 00 lis r9,0 int ioctl( int fd, ioctl_command_t command, ... ) { ffc08da8: 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 ); ffc08dac: 80 09 26 ac lwz r0,9900(r9) int ioctl( int fd, ioctl_command_t command, ... ) { ffc08db0: 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 ); ffc08db4: 7f 83 00 40 cmplw cr7,r3,r0 ffc08db8: 40 9c 00 6c bge- cr7,ffc08e24 iop = rtems_libio_iop( fd ); ffc08dbc: 3d 20 00 00 lis r9,0 ffc08dc0: 80 09 27 6c lwz r0,10092(r9) ffc08dc4: 1c 63 00 48 mulli r3,r3,72 ffc08dc8: 7c 60 1a 14 add r3,r0,r3 rtems_libio_check_is_open(iop); ffc08dcc: 80 03 00 18 lwz r0,24(r3) ffc08dd0: 70 09 01 00 andi. r9,r0,256 ffc08dd4: 41 82 00 50 beq- ffc08e24 <== NEVER TAKEN va_start(ap, command); buffer = va_arg(ap, void *); ffc08dd8: 38 00 00 03 li r0,3 ffc08ddc: 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); ffc08de0: 39 21 00 10 addi r9,r1,16 ffc08de4: 38 01 00 28 addi r0,r1,40 /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08de8: 81 63 00 40 lwz r11,64(r3) rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); ffc08dec: 90 01 00 0c stw r0,12(r1) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08df0: 2f 8b 00 00 cmpwi cr7,r11,0 rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); ffc08df4: 91 21 00 10 stw r9,16(r1) buffer = va_arg(ap, void *); ffc08df8: 80 a9 00 08 lwz r5,8(r9) /* * Now process the ioctl(). */ if ( !iop->handlers ) ffc08dfc: 41 9e 00 28 beq- cr7,ffc08e24 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) ffc08e00: 80 0b 00 10 lwz r0,16(r11) ffc08e04: 2f 80 00 00 cmpwi cr7,r0,0 ffc08e08: 41 9e 00 30 beq- cr7,ffc08e38 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); ffc08e0c: 7c 09 03 a6 mtctr r0 ffc08e10: 4e 80 04 21 bctrl <== ALWAYS TAKEN return rc; } ffc08e14: 80 01 00 24 lwz r0,36(r1) ffc08e18: 38 21 00 20 addi r1,r1,32 ffc08e1c: 7c 08 03 a6 mtlr r0 ffc08e20: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); ffc08e24: 48 01 14 41 bl ffc1a264 <__errno> <== ALWAYS TAKEN ffc08e28: 38 00 00 09 li r0,9 ffc08e2c: 90 03 00 00 stw r0,0(r3) ffc08e30: 38 60 ff ff li r3,-1 ffc08e34: 4b ff ff e0 b ffc08e14 <== ALWAYS TAKEN if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc08e38: 48 01 14 2d bl ffc1a264 <__errno> <== NOT EXECUTED ffc08e3c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc08e40: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc08e44: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc08e48: 4b ff ff cc b ffc08e14 <== NOT EXECUTED ffc063fc : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { ffc063fc: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc06400: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc06404: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc06408: 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) { ffc0640c: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc06410: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc06414: 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) { ffc06418: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc0641c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) ffc06420: 41 82 00 08 beq- ffc06428 <== NOT EXECUTED c &= 0x7f; ffc06424: 54 7f 06 7e clrlwi r31,r3,25 <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) ffc06428: 70 0b 02 00 andi. r11,r0,512 <== NOT EXECUTED ffc0642c: 41 82 00 28 beq- ffc06454 <== NOT EXECUTED c = tolower (c); ffc06430: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06434: 81 69 26 e0 lwz r11,9952(r9) <== NOT EXECUTED ffc06438: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc0643c: 7f eb fa 14 add r31,r11,r31 <== NOT EXECUTED ffc06440: 89 7f 00 01 lbz r11,1(r31) <== NOT EXECUTED ffc06444: 55 6b 07 be clrlwi r11,r11,30 <== NOT EXECUTED ffc06448: 2f 8b 00 01 cmpwi cr7,r11,1 <== NOT EXECUTED ffc0644c: 41 9e 01 28 beq- cr7,ffc06574 <== NOT EXECUTED ffc06450: 55 3f 06 3e clrlwi r31,r9,24 <== NOT EXECUTED if (c == '\r') { ffc06454: 2f 9f 00 0d cmpwi cr7,r31,13 <== NOT EXECUTED ffc06458: 41 9e 00 64 beq- cr7,ffc064bc <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { ffc0645c: 2f 9f 00 0a cmpwi cr7,r31,10 <== NOT EXECUTED ffc06460: 41 9e 01 04 beq- cr7,ffc06564 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { ffc06464: 2f 9f 00 00 cmpwi cr7,r31,0 <== NOT EXECUTED ffc06468: 40 9e 00 84 bne- cr7,ffc064ec <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { ffc0646c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06470: 81 69 21 68 lwz r11,8552(r9) <== NOT EXECUTED ffc06474: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED ffc06478: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc0647c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06480: 40 9c 00 44 bge- cr7,ffc064c4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) ffc06484: 80 1e 00 3c lwz r0,60(r30) <== NOT EXECUTED ffc06488: 70 0b 00 08 andi. r11,r0,8 <== NOT EXECUTED ffc0648c: 40 82 00 f0 bne- ffc0657c <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; ffc06490: 81 7e 00 1c lwz r11,28(r30) <== NOT EXECUTED ffc06494: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc06498: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0649c: 7f eb 49 ae stbx r31,r11,r9 <== NOT EXECUTED ffc064a0: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED } return 0; } ffc064a4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc064a8: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc064ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc064b0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc064b4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc064b8: 4e 80 00 20 blr <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) ffc064bc: 70 09 00 80 andi. r9,r0,128 <== NOT EXECUTED ffc064c0: 41 a2 00 20 beq+ ffc064e0 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; } return 0; } ffc064c4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; ffc064c8: 38 60 00 00 li r3,0 <== NOT EXECUTED } return 0; } ffc064cc: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc064d0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc064d4: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc064d8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc064dc: 4e 80 00 20 blr <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) ffc064e0: 70 0b 01 00 andi. r11,r0,256 <== NOT EXECUTED ffc064e4: 41 82 00 08 beq- ffc064ec <== NOT EXECUTED ffc064e8: 3b e0 00 0a li r31,10 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { ffc064ec: 80 1e 00 3c lwz r0,60(r30) <== NOT EXECUTED ffc064f0: 70 0b 00 02 andi. r11,r0,2 <== NOT EXECUTED ffc064f4: 41 a2 ff 78 beq- ffc0646c <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { ffc064f8: 89 3e 00 43 lbz r9,67(r30) <== NOT EXECUTED ffc064fc: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED ffc06500: 41 9e 00 e8 beq- cr7,ffc065e8 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { ffc06504: 89 3e 00 44 lbz r9,68(r30) <== NOT EXECUTED ffc06508: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED ffc0650c: 41 9e 00 94 beq- cr7,ffc065a0 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { ffc06510: 89 3e 00 45 lbz r9,69(r30) <== NOT EXECUTED ffc06514: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06518: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED ffc0651c: 41 be ff 88 beq- cr7,ffc064a4 <== NOT EXECUTED return 1; } else if (c == '\n') { ffc06520: 2f 9f 00 0a cmpwi cr7,r31,10 <== NOT EXECUTED ffc06524: 41 9e 00 90 beq- cr7,ffc065b4 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); tty->cbuf[tty->ccount++] = c; return 1; } else if ((c == tty->termios.c_cc[VEOL]) ffc06528: 89 3e 00 4c lbz r9,76(r30) <== NOT EXECUTED ffc0652c: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED ffc06530: 41 9e 00 10 beq- cr7,ffc06540 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { ffc06534: 89 3e 00 51 lbz r9,81(r30) <== NOT EXECUTED ffc06538: 7f 89 f8 00 cmpw cr7,r9,r31 <== NOT EXECUTED ffc0653c: 40 9e ff 30 bne+ cr7,ffc0646c <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) ffc06540: 70 0b 00 08 andi. r11,r0,8 <== NOT EXECUTED ffc06544: 40 82 00 4c bne- ffc06590 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; ffc06548: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED ffc0654c: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06550: 81 7e 00 1c lwz r11,28(r30) <== NOT EXECUTED ffc06554: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc06558: 7f eb 49 ae stbx r31,r11,r9 <== NOT EXECUTED ffc0655c: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED return 1; ffc06560: 4b ff ff 44 b ffc064a4 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { ffc06564: 70 09 00 40 andi. r9,r0,64 <== NOT EXECUTED ffc06568: 41 a2 ff 84 beq- ffc064ec <== NOT EXECUTED ffc0656c: 3b e0 00 0d li r31,13 <== NOT EXECUTED ffc06570: 4b ff ff 7c b ffc064ec <== NOT EXECUTED iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); ffc06574: 39 29 00 20 addi r9,r9,32 <== NOT EXECUTED ffc06578: 4b ff fe d8 b ffc06450 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); ffc0657c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06580: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc06584: 4b ff fb 4d bl ffc060d0 <== NOT EXECUTED ffc06588: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED ffc0658c: 4b ff ff 04 b ffc06490 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) echo (c, tty); ffc06590: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc06594: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc06598: 4b ff fb 39 bl ffc060d0 <== NOT EXECUTED ffc0659c: 4b ff ff ac b ffc06548 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); ffc065a0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc065a4: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc065a8: 4b ff fb cd bl ffc06174 <== NOT EXECUTED ffc065ac: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; ffc065b0: 4b ff fe f4 b ffc064a4 <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) ffc065b4: 70 09 00 48 andi. r9,r0,72 <== NOT EXECUTED ffc065b8: 41 a2 00 10 beq+ ffc065c8 <== NOT EXECUTED echo (c, tty); ffc065bc: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc065c0: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc065c4: 4b ff fb 0d bl ffc060d0 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; ffc065c8: 81 3e 00 20 lwz r9,32(r30) <== NOT EXECUTED ffc065cc: 39 40 00 0a li r10,10 <== NOT EXECUTED ffc065d0: 81 7e 00 1c lwz r11,28(r30) <== NOT EXECUTED ffc065d4: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc065d8: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc065dc: 7d 4b 49 ae stbx r10,r11,r9 <== NOT EXECUTED ffc065e0: 90 1e 00 20 stw r0,32(r30) <== NOT EXECUTED return 1; ffc065e4: 4b ff fe c0 b ffc064a4 <== NOT EXECUTED else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); ffc065e8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc065ec: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc065f0: 4b ff fb 85 bl ffc06174 <== NOT EXECUTED ffc065f4: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; ffc065f8: 4b ff fe ac b ffc064a4 <== NOT EXECUTED ffc11958 : int kill( pid_t pid, int sig ) { ffc11958: 94 21 ff f8 stwu r1,-8(r1) ffc1195c: 7c 08 02 a6 mflr r0 return killinfo( pid, sig, NULL ); ffc11960: 38 a0 00 00 li r5,0 int kill( pid_t pid, int sig ) { ffc11964: 90 01 00 0c stw r0,12(r1) return killinfo( pid, sig, NULL ); ffc11968: 48 00 12 b1 bl ffc12c18 <== ALWAYS TAKEN } ffc1196c: 80 01 00 0c lwz r0,12(r1) ffc11970: 38 21 00 08 addi r1,r1,8 ffc11974: 7c 08 03 a6 mtlr r0 ffc11978: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12c18 : int killinfo( pid_t pid, int sig, const union sigval *value ) { ffc12c18: 94 21 ff d0 stwu r1,-48(r1) ffc12c1c: 7c 08 02 a6 mflr r0 ffc12c20: 93 61 00 1c stw r27,28(r1) ffc12c24: 7c bb 2b 78 mr r27,r5 ffc12c28: 93 81 00 20 stw r28,32(r1) ffc12c2c: 7c 9c 23 78 mr r28,r4 ffc12c30: 93 e1 00 2c stw r31,44(r1) ffc12c34: 7c 7f 1b 78 mr r31,r3 ffc12c38: 90 01 00 34 stw r0,52(r1) ffc12c3c: 93 41 00 18 stw r26,24(r1) ffc12c40: 93 a1 00 24 stw r29,36(r1) ffc12c44: 93 c1 00 28 stw r30,40(r1) POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) ffc12c48: 4b ff ea 75 bl ffc116bc <== ALWAYS TAKEN ffc12c4c: 7f 83 f8 00 cmpw cr7,r3,r31 ffc12c50: 40 9e 02 a0 bne- cr7,ffc12ef0 rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) ffc12c54: 2f 9c 00 00 cmpwi cr7,r28,0 ffc12c58: 41 9e 02 ac beq- cr7,ffc12f04 static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); ffc12c5c: 38 1c ff ff addi r0,r28,-1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) ffc12c60: 2b 80 00 1f cmplwi cr7,r0,31 ffc12c64: 41 9d 02 a0 bgt- cr7,ffc12f04 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 ) ffc12c68: 1f dc 00 0c mulli r30,r28,12 ffc12c6c: 3f a0 00 00 lis r29,0 ffc12c70: 3b bd 31 70 addi r29,r29,12656 ffc12c74: 7d 3d f2 14 add r9,r29,r30 ffc12c78: 81 29 00 08 lwz r9,8(r9) ffc12c7c: 38 60 00 00 li r3,0 ffc12c80: 2f 89 00 01 cmpwi cr7,r9,1 ffc12c84: 41 9e 01 c8 beq- cr7,ffc12e4c /* * 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 ) ) ffc12c88: 2f 9c 00 08 cmpwi cr7,r28,8 ffc12c8c: 41 9e 01 e8 beq- cr7,ffc12e74 ffc12c90: 2f 9c 00 04 cmpwi cr7,r28,4 ffc12c94: 41 9e 01 e0 beq- cr7,ffc12e74 ffc12c98: 2f 9c 00 0b cmpwi cr7,r28,11 ffc12c9c: 41 9e 01 d8 beq- cr7,ffc12e74 * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { ffc12ca0: 2f 9b 00 00 cmpwi cr7,r27,0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; ffc12ca4: 93 81 00 08 stw r28,8(r1) static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); ffc12ca8: 3b e0 00 01 li r31,1 siginfo->si_code = SI_USER; ffc12cac: 93 e1 00 0c stw r31,12(r1) ffc12cb0: 7f ff 00 30 slw r31,r31,r0 if ( !value ) { ffc12cb4: 41 9e 02 34 beq- cr7,ffc12ee8 siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; ffc12cb8: 80 1b 00 00 lwz r0,0(r27) ffc12cbc: 90 01 00 10 stw r0,16(r1) ffc12cc0: 3d 20 00 00 lis r9,0 ffc12cc4: 81 69 27 70 lwz r11,10096(r9) ffc12cc8: 38 0b 00 01 addi r0,r11,1 ffc12ccc: 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; ffc12cd0: 3d 20 00 00 lis r9,0 ffc12cd4: 80 69 27 b0 lwz r3,10160(r9) api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc12cd8: 81 23 01 48 lwz r9,328(r3) ffc12cdc: 80 09 00 c4 lwz r0,196(r9) ffc12ce0: 7f e6 00 79 andc. r6,r31,r0 ffc12ce4: 40 82 01 30 bne- ffc12e14 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; ffc12ce8: 3d 40 00 00 lis r10,0 ffc12cec: 81 2a 32 fc lwz r9,13052(r10) ffc12cf0: 39 4a 32 fc addi r10,r10,13052 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc12cf4: 39 4a 00 04 addi r10,r10,4 ffc12cf8: 7f 89 50 00 cmpw cr7,r9,r10 ffc12cfc: 41 9e 00 54 beq- cr7,ffc12d50 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc12d00: 80 09 00 30 lwz r0,48(r9) for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; ffc12d04: 7d 23 4b 78 mr r3,r9 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc12d08: 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) ffc12d0c: 7f e8 00 39 and. r8,r31,r0 ffc12d10: 40 82 01 04 bne- ffc12e14 /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) ffc12d14: 80 0b 00 c4 lwz r0,196(r11) ffc12d18: 7f eb 00 79 andc. r11,r31,r0 ffc12d1c: 41 a2 00 24 beq+ ffc12d40 ffc12d20: 48 00 00 f4 b ffc12e14 <== ALWAYS TAKEN #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc12d24: 80 09 00 30 lwz r0,48(r9) <== NOT EXECUTED for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc12d28: 81 69 01 48 lwz r11,328(r9) <== NOT EXECUTED #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) ffc12d2c: 7f fa 00 39 and. r26,r31,r0 <== NOT EXECUTED ffc12d30: 40 82 00 e4 bne- ffc12e14 <== NOT EXECUTED /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) ffc12d34: 80 0b 00 c4 lwz r0,196(r11) <== NOT EXECUTED ffc12d38: 7f fb 00 79 andc. r27,r31,r0 <== NOT EXECUTED ffc12d3c: 40 82 00 d8 bne- ffc12e14 <== NOT EXECUTED the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { ffc12d40: 81 29 00 00 lwz r9,0(r9) /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; ffc12d44: 7f 89 50 00 cmpw cr7,r9,r10 !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; ffc12d48: 7d 23 4b 78 mr r3,r9 /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; ffc12d4c: 40 9e ff d8 bne+ cr7,ffc12d24 <== NEVER TAKEN * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; ffc12d50: 3d 20 00 00 lis r9,0 ffc12d54: 88 e9 26 a4 lbz r7,9892(r9) ffc12d58: 3c a0 00 00 lis r5,0 ffc12d5c: 38 a5 2c 28 addi r5,r5,11304 ffc12d60: 38 e7 00 01 addi r7,r7,1 */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( ffc12d64: 38 85 00 0c addi r4,r5,12 ffc12d68: 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 ] ) ffc12d6c: 81 25 00 00 lwz r9,0(r5) ffc12d70: 2f 89 00 00 cmpwi cr7,r9,0 ffc12d74: 41 9e 00 8c beq- cr7,ffc12e00 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; ffc12d78: 81 29 00 04 lwz r9,4(r9) */ if ( !the_info ) continue; #endif maximum = the_info->maximum; ffc12d7c: a1 49 00 10 lhz r10,16(r9) object_table = the_info->local_table; ffc12d80: 81 09 00 1c lwz r8,28(r9) for ( index = 1 ; index <= maximum ; index++ ) { ffc12d84: 2f 8a 00 00 cmpwi cr7,r10,0 ffc12d88: 41 9e 00 78 beq- cr7,ffc12e00 ffc12d8c: 39 20 00 01 li r9,1 the_thread = (Thread_Control *) object_table[ index ]; ffc12d90: 55 20 10 3a rlwinm r0,r9,2,0,29 ffc12d94: 7d 68 00 2e lwzx r11,r8,r0 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { ffc12d98: 39 29 00 01 addi r9,r9,1 ffc12d9c: 7f 8a 48 40 cmplw cr7,r10,r9 the_thread = (Thread_Control *) object_table[ index ]; if ( !the_thread ) ffc12da0: 2f 0b 00 00 cmpwi cr6,r11,0 ffc12da4: 41 9a 00 58 beq- cr6,ffc12dfc /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) ffc12da8: 80 0b 00 14 lwz r0,20(r11) ffc12dac: 7f 00 38 40 cmplw cr6,r0,r7 ffc12db0: 41 99 00 4c bgt- cr6,ffc12dfc DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc12db4: 80 cb 01 48 lwz r6,328(r11) ffc12db8: 80 c6 00 c4 lwz r6,196(r6) ffc12dbc: 7f fa 30 79 andc. r26,r31,r6 ffc12dc0: 41 82 00 3c beq- ffc12dfc * * 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 ) { ffc12dc4: 41 98 00 30 blt- cr6,ffc12df4 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { ffc12dc8: 80 c3 00 10 lwz r6,16(r3) ffc12dcc: 2f 06 00 00 cmpwi cr6,r6,0 ffc12dd0: 41 9a 00 2c beq- cr6,ffc12dfc <== NEVER TAKEN /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { ffc12dd4: 83 6b 00 10 lwz r27,16(r11) continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { ffc12dd8: 74 da 10 00 andis. r26,r6,4096 */ if ( !_States_Is_ready( interested->current_state ) ) { /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { ffc12ddc: 2f 1b 00 00 cmpwi cr6,r27,0 ffc12de0: 41 9a 00 14 beq- cr6,ffc12df4 DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { ffc12de4: 57 66 27 fe rlwinm r6,r27,4,31,31 ffc12de8: 2f 06 00 00 cmpwi cr6,r6,0 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { ffc12dec: 40 82 00 10 bne- ffc12dfc DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { ffc12df0: 41 9a 00 0c beq- cr6,ffc12dfc ffc12df4: 7c 07 03 78 mr r7,r0 ffc12df8: 7d 63 5b 78 mr r3,r11 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { ffc12dfc: 40 9c ff 94 bge+ cr7,ffc12d90 ffc12e00: 38 a5 00 04 addi r5,r5,4 * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { ffc12e04: 7f 85 20 00 cmpw cr7,r5,r4 ffc12e08: 40 9e ff 64 bne+ cr7,ffc12d6c } } } } if ( interested ) { ffc12e0c: 2f 83 00 00 cmpwi cr7,r3,0 ffc12e10: 41 9e 00 20 beq- cr7,ffc12e30 * 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; ffc12e14: 38 00 00 01 li r0,1 ffc12e18: 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 ) ) { ffc12e1c: 7f 84 e3 78 mr r4,r28 ffc12e20: 38 a1 00 08 addi r5,r1,8 ffc12e24: 48 00 01 d5 bl ffc12ff8 <_POSIX_signals_Unblock_thread> <== ALWAYS TAKEN ffc12e28: 2f 83 00 00 cmpwi cr7,r3,0 ffc12e2c: 40 9e 00 18 bne- cr7,ffc12e44 /* * 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 ); ffc12e30: 7f e3 fb 78 mr r3,r31 <== ALWAYS TAKEN ffc12e34: 48 00 01 85 bl ffc12fb8 <_POSIX_signals_Set_process_signals> <== ALWAYS TAKEN if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { ffc12e38: 7c 1d f0 2e lwzx r0,r29,r30 ffc12e3c: 2f 80 00 02 cmpwi cr7,r0,2 <== ALWAYS TAKEN ffc12e40: 41 9e 00 68 beq- cr7,ffc12ea8 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); ffc12e44: 4b ff 81 d1 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc12e48: 38 60 00 00 li r3,0 return 0; } ffc12e4c: 80 01 00 34 lwz r0,52(r1) ffc12e50: 83 41 00 18 lwz r26,24(r1) ffc12e54: 7c 08 03 a6 mtlr r0 ffc12e58: 83 61 00 1c lwz r27,28(r1) ffc12e5c: 83 81 00 20 lwz r28,32(r1) ffc12e60: 83 a1 00 24 lwz r29,36(r1) ffc12e64: 83 c1 00 28 lwz r30,40(r1) ffc12e68: 83 e1 00 2c lwz r31,44(r1) ffc12e6c: 38 21 00 30 addi r1,r1,48 ffc12e70: 4e 80 00 20 blr <== ALWAYS TAKEN * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) ) return pthread_kill( pthread_self(), sig ); ffc12e74: 48 00 04 09 bl ffc1327c <== ALWAYS TAKEN ffc12e78: 7f 84 e3 78 mr r4,r28 ffc12e7c: 48 00 02 ed bl ffc13168 <== ALWAYS TAKEN } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); return 0; } ffc12e80: 80 01 00 34 lwz r0,52(r1) ffc12e84: 83 41 00 18 lwz r26,24(r1) ffc12e88: 7c 08 03 a6 mtlr r0 ffc12e8c: 83 61 00 1c lwz r27,28(r1) ffc12e90: 83 81 00 20 lwz r28,32(r1) ffc12e94: 83 a1 00 24 lwz r29,36(r1) ffc12e98: 83 c1 00 28 lwz r30,40(r1) ffc12e9c: 83 e1 00 2c lwz r31,44(r1) ffc12ea0: 38 21 00 30 addi r1,r1,48 ffc12ea4: 4e 80 00 20 blr <== ALWAYS TAKEN */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) ffc12ea8: 3c 60 00 00 lis r3,0 ffc12eac: 38 63 32 f0 addi r3,r3,13040 ffc12eb0: 4b ff 64 e5 bl ffc09394 <_Chain_Get> <== ALWAYS TAKEN _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { ffc12eb4: 7c 64 1b 79 mr. r4,r3 ffc12eb8: 41 82 00 60 beq- ffc12f18 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc12ebc: 81 21 00 0c lwz r9,12(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc12ec0: 3c 60 00 00 lis r3,0 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc12ec4: 80 01 00 10 lwz r0,16(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc12ec8: 38 63 33 3c addi r3,r3,13116 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc12ecc: 81 61 00 08 lwz r11,8(r1) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc12ed0: 7c 63 f2 14 add r3,r3,r30 if ( !psiginfo ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; ffc12ed4: 91 24 00 0c stw r9,12(r4) ffc12ed8: 91 64 00 08 stw r11,8(r4) ffc12edc: 90 04 00 10 stw r0,16(r4) _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); ffc12ee0: 4b ff 64 85 bl ffc09364 <_Chain_Append> <== ALWAYS TAKEN ffc12ee4: 4b ff ff 60 b ffc12e44 <== ALWAYS TAKEN */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; ffc12ee8: 93 61 00 10 stw r27,16(r1) ffc12eec: 4b ff fd d4 b ffc12cc0 <== ALWAYS TAKEN /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); ffc12ef0: 48 00 04 89 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc12ef4: 38 00 00 03 li r0,3 ffc12ef8: 90 03 00 00 stw r0,0(r3) ffc12efc: 38 60 ff ff li r3,-1 ffc12f00: 4b ff ff 4c b ffc12e4c <== ALWAYS TAKEN */ if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc12f04: 48 00 04 75 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc12f08: 38 00 00 16 li r0,22 ffc12f0c: 90 03 00 00 stw r0,0(r3) ffc12f10: 38 60 ff ff li r3,-1 ffc12f14: 4b ff ff 38 b ffc12e4c <== ALWAYS TAKEN if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { _Thread_Enable_dispatch(); ffc12f18: 4b ff 80 fd bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EAGAIN ); ffc12f1c: 48 00 04 5d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc12f20: 38 00 00 0b li r0,11 ffc12f24: 90 03 00 00 stw r0,0(r3) ffc12f28: 38 60 ff ff li r3,-1 ffc12f2c: 4b ff ff 20 b ffc12e4c <== ALWAYS TAKEN ffc04e9c : void libc_init(void) { } ffc04e9c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e100 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { ffc1e100: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc1e104: 7c 08 02 a6 mflr r0 /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) ffc1e108: 3d 20 00 00 lis r9,0 extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { ffc1e10c: 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())) ffc1e110: 80 09 27 d4 lwz r0,10196(r9) extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { ffc1e114: 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())) ffc1e118: 2f 80 00 03 cmpwi cr7,r0,3 extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { ffc1e11c: 93 e1 00 0c stw r31,12(r1) /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) ffc1e120: 41 9e 00 1c beq- cr7,ffc1e13c <== ALWAYS TAKEN */ fclose (stdin); fclose (stdout); fclose (stderr); } ffc1e124: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc1e128: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc1e12c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1e130: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc1e134: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc1e138: 4e 80 00 20 blr <== NOT EXECUTED /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { ffc1e13c: 3f e0 00 00 lis r31,0 <== ALWAYS TAKEN ffc1e140: 3d 20 00 00 lis r9,0 ffc1e144: 80 1f 26 e4 lwz r0,9956(r31) ffc1e148: 83 c9 26 e8 lwz r30,9960(r9) ffc1e14c: 7f 80 f0 00 cmpw cr7,r0,r30 ffc1e150: 41 9e 00 10 beq- cr7,ffc1e160 _wrapup_reent(_global_impure_ptr); ffc1e154: 7f c3 f3 78 mr r3,r30 ffc1e158: 48 00 07 05 bl ffc1e85c <_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; ffc1e15c: 93 df 26 e4 stw r30,9956(r31) * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); ffc1e160: 80 7e 00 04 lwz r3,4(r30) ffc1e164: 4b ff 53 b5 bl ffc13518 <== ALWAYS TAKEN fclose (stdout); ffc1e168: 81 3f 26 e4 lwz r9,9956(r31) ffc1e16c: 80 69 00 08 lwz r3,8(r9) ffc1e170: 4b ff 53 a9 bl ffc13518 <== ALWAYS TAKEN fclose (stderr); ffc1e174: 81 3f 26 e4 lwz r9,9956(r31) ffc1e178: 80 69 00 0c lwz r3,12(r9) ffc1e17c: 4b ff 53 9d bl ffc13518 <== ALWAYS TAKEN } ffc1e180: 80 01 00 14 lwz r0,20(r1) ffc1e184: 83 c1 00 08 lwz r30,8(r1) ffc1e188: 7c 08 03 a6 mtlr r0 ffc1e18c: 83 e1 00 0c lwz r31,12(r1) ffc1e190: 38 21 00 10 addi r1,r1,16 ffc1e194: 4e 80 00 20 blr <== ALWAYS TAKEN ffc300f4 : int link( const char *existing, const char *new ) { ffc300f4: 94 21 ff b8 stwu r1,-72(r1) ffc300f8: 7c 08 02 a6 mflr r0 ffc300fc: 93 81 00 38 stw r28,56(r1) * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 0, &existing_loc, true ); if ( result != 0 ) ffc30100: 3b 80 ff ff li r28,-1 int link( const char *existing, const char *new ) { ffc30104: 90 01 00 4c stw r0,76(r1) ffc30108: 93 a1 00 3c stw r29,60(r1) ffc3010c: 7c 7d 1b 78 mr r29,r3 ffc30110: 93 c1 00 40 stw r30,64(r1) ffc30114: 7c 9e 23 78 mr r30,r4 ffc30118: 93 e1 00 44 stw r31,68(r1) /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), ffc3011c: 48 02 61 1d bl ffc56238 <== ALWAYS TAKEN ffc30120: 3b e1 00 0c addi r31,r1,12 ffc30124: 7c 64 1b 78 mr r4,r3 ffc30128: 38 a0 00 00 li r5,0 ffc3012c: 7f a3 eb 78 mr r3,r29 ffc30130: 7f e6 fb 78 mr r6,r31 ffc30134: 38 e0 00 01 li r7,1 ffc30138: 4b fd 8b dd bl ffc08d14 <== ALWAYS TAKEN 0, &existing_loc, true ); if ( result != 0 ) ffc3013c: 2f 83 00 00 cmpwi cr7,r3,0 ffc30140: 40 9e 01 04 bne- cr7,ffc30244 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); ffc30144: 88 1e 00 00 lbz r0,0(r30) ffc30148: 2f 80 00 2f cmpwi cr7,r0,47 ffc3014c: 41 9e 00 14 beq- cr7,ffc30160 ffc30150: 2f 80 00 5c cmpwi cr7,r0,92 ffc30154: 41 9e 00 0c beq- cr7,ffc30160 <== NEVER TAKEN ffc30158: 2f 80 00 00 cmpwi cr7,r0,0 ffc3015c: 40 9e 01 0c bne- cr7,ffc30268 <== ALWAYS TAKEN ffc30160: 3d 20 00 00 lis r9,0 ffc30164: 81 29 35 2c lwz r9,13612(r9) ffc30168: 38 60 00 01 li r3,1 ffc3016c: 80 09 00 24 lwz r0,36(r9) ffc30170: 81 09 00 18 lwz r8,24(r9) ffc30174: 81 49 00 1c lwz r10,28(r9) ffc30178: 81 69 00 20 lwz r11,32(r9) ffc3017c: 91 01 00 20 stw r8,32(r1) ffc30180: 91 41 00 24 stw r10,36(r1) ffc30184: 91 61 00 28 stw r11,40(r1) ffc30188: 90 01 00 2c stw r0,44(r1) ffc3018c: 80 09 00 28 lwz r0,40(r9) ffc30190: 90 01 00 30 stw r0,48(r1) if ( !parent_loc.ops->evalformake_h ) { ffc30194: 81 21 00 2c lwz r9,44(r1) ffc30198: 80 09 00 04 lwz r0,4(r9) ffc3019c: 2f 80 00 00 cmpwi cr7,r0,0 ffc301a0: 41 9e 01 b0 beq- cr7,ffc30350 <== NEVER TAKEN rtems_filesystem_freenode( &existing_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); ffc301a4: 3b a1 00 20 addi r29,r1,32 ffc301a8: 7c 09 03 a6 mtctr r0 ffc301ac: 7c 7e 1a 14 add r3,r30,r3 ffc301b0: 7f a4 eb 78 mr r4,r29 ffc301b4: 38 a1 00 08 addi r5,r1,8 ffc301b8: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( result != 0 ) { ffc301bc: 7c 7e 1b 79 mr. r30,r3 ffc301c0: 40 82 01 5c bne- ffc3031c /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { ffc301c4: 80 01 00 1c lwz r0,28(r1) ffc301c8: 81 21 00 30 lwz r9,48(r1) ffc301cc: 7f 89 00 00 cmpw cr7,r9,r0 ffc301d0: 40 9e 00 d0 bne- cr7,ffc302a0 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { ffc301d4: 81 21 00 2c lwz r9,44(r1) ffc301d8: 80 09 00 08 lwz r0,8(r9) ffc301dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc301e0: 41 9e 01 a8 beq- cr7,ffc30388 <== NEVER TAKEN 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 ); ffc301e4: 7f e3 fb 78 mr r3,r31 ffc301e8: 80 a1 00 08 lwz r5,8(r1) ffc301ec: 7f a4 eb 78 mr r4,r29 ffc301f0: 7c 09 03 a6 mtctr r0 ffc301f4: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &existing_loc ); ffc301f8: 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 ); ffc301fc: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &existing_loc ); ffc30200: 2f 89 00 00 cmpwi cr7,r9,0 ffc30204: 41 9e 00 1c beq- cr7,ffc30220 <== NEVER TAKEN ffc30208: 80 09 00 1c lwz r0,28(r9) ffc3020c: 2f 80 00 00 cmpwi cr7,r0,0 ffc30210: 41 9e 00 10 beq- cr7,ffc30220 <== NEVER TAKEN ffc30214: 7f e3 fb 78 mr r3,r31 ffc30218: 7c 09 03 a6 mtctr r0 ffc3021c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &parent_loc ); ffc30220: 81 21 00 2c lwz r9,44(r1) ffc30224: 2f 89 00 00 cmpwi cr7,r9,0 ffc30228: 41 9e 00 1c beq- cr7,ffc30244 <== NEVER TAKEN ffc3022c: 80 09 00 1c lwz r0,28(r9) ffc30230: 2f 80 00 00 cmpwi cr7,r0,0 ffc30234: 41 9e 00 10 beq- cr7,ffc30244 <== NEVER TAKEN ffc30238: 7f a3 eb 78 mr r3,r29 ffc3023c: 7c 09 03 a6 mtctr r0 ffc30240: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc30244: 80 01 00 4c lwz r0,76(r1) ffc30248: 7f 83 e3 78 mr r3,r28 ffc3024c: 83 a1 00 3c lwz r29,60(r1) ffc30250: 7c 08 03 a6 mtlr r0 ffc30254: 83 81 00 38 lwz r28,56(r1) ffc30258: 83 c1 00 40 lwz r30,64(r1) ffc3025c: 83 e1 00 44 lwz r31,68(r1) ffc30260: 38 21 00 48 addi r1,r1,72 ffc30264: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); ffc30268: 3d 20 00 00 lis r9,0 ffc3026c: 81 29 35 2c lwz r9,13612(r9) ffc30270: 38 60 00 00 li r3,0 ffc30274: 80 09 00 10 lwz r0,16(r9) ffc30278: 81 09 00 04 lwz r8,4(r9) ffc3027c: 81 49 00 08 lwz r10,8(r9) ffc30280: 81 69 00 0c lwz r11,12(r9) ffc30284: 91 01 00 20 stw r8,32(r1) ffc30288: 91 41 00 24 stw r10,36(r1) ffc3028c: 91 61 00 28 stw r11,40(r1) ffc30290: 90 01 00 2c stw r0,44(r1) ffc30294: 80 09 00 14 lwz r0,20(r9) ffc30298: 90 01 00 30 stw r0,48(r1) ffc3029c: 4b ff fe f8 b ffc30194 <== 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 ) { rtems_filesystem_freenode( &existing_loc ); ffc302a0: 81 21 00 18 lwz r9,24(r1) ffc302a4: 2f 89 00 00 cmpwi cr7,r9,0 ffc302a8: 41 9e 00 1c beq- cr7,ffc302c4 <== NEVER TAKEN ffc302ac: 80 09 00 1c lwz r0,28(r9) ffc302b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc302b4: 41 9e 00 10 beq- cr7,ffc302c4 <== NEVER TAKEN ffc302b8: 7f e3 fb 78 mr r3,r31 ffc302bc: 7c 09 03 a6 mtctr r0 ffc302c0: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &parent_loc ); ffc302c4: 81 21 00 2c lwz r9,44(r1) ffc302c8: 2f 89 00 00 cmpwi cr7,r9,0 ffc302cc: 41 9e 00 1c beq- cr7,ffc302e8 <== NEVER TAKEN ffc302d0: 80 09 00 1c lwz r0,28(r9) ffc302d4: 2f 80 00 00 cmpwi cr7,r0,0 ffc302d8: 41 9e 00 10 beq- cr7,ffc302e8 <== NEVER TAKEN ffc302dc: 7f a3 eb 78 mr r3,r29 ffc302e0: 7c 09 03 a6 mtctr r0 ffc302e4: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EXDEV ); ffc302e8: 48 01 e1 89 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc302ec: 38 00 00 12 li r0,18 ffc302f0: 90 03 00 00 stw r0,0(r3) ffc302f4: 3b 80 ff ff li r28,-1 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } ffc302f8: 7f 83 e3 78 mr r3,r28 ffc302fc: 80 01 00 4c lwz r0,76(r1) ffc30300: 83 81 00 38 lwz r28,56(r1) ffc30304: 7c 08 03 a6 mtlr r0 ffc30308: 83 a1 00 3c lwz r29,60(r1) ffc3030c: 83 c1 00 40 lwz r30,64(r1) ffc30310: 83 e1 00 44 lwz r31,68(r1) ffc30314: 38 21 00 48 addi r1,r1,72 ffc30318: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); ffc3031c: 81 21 00 18 lwz r9,24(r1) ffc30320: 2f 89 00 00 cmpwi cr7,r9,0 ffc30324: 41 9e 00 1c beq- cr7,ffc30340 <== NEVER TAKEN ffc30328: 80 09 00 1c lwz r0,28(r9) ffc3032c: 2f 80 00 00 cmpwi cr7,r0,0 ffc30330: 41 9e 00 10 beq- cr7,ffc30340 <== NEVER TAKEN ffc30334: 7f e3 fb 78 mr r3,r31 ffc30338: 7c 09 03 a6 mtctr r0 ffc3033c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( result ); ffc30340: 48 01 e1 31 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc30344: 3b 80 ff ff li r28,-1 ffc30348: 93 c3 00 00 stw r30,0(r3) ffc3034c: 4b ff fe f8 b ffc30244 <== ALWAYS TAKEN */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); ffc30350: 81 21 00 18 lwz r9,24(r1) <== NOT EXECUTED ffc30354: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30358: 41 9e 00 1c beq- cr7,ffc30374 <== NOT EXECUTED ffc3035c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30360: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30364: 41 9e 00 10 beq- cr7,ffc30374 <== NOT EXECUTED ffc30368: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc3036c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30370: 4e 80 04 21 bctrl <== NOT EXECUTED } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc30374: 48 01 e0 fd bl ffc4e470 <__errno> <== NOT EXECUTED ffc30378: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc3037c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc30380: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc30384: 4b ff fe c0 b ffc30244 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); ffc30388: 81 61 00 18 lwz r11,24(r1) <== NOT EXECUTED ffc3038c: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc30390: 41 9e 00 20 beq- cr7,ffc303b0 <== NOT EXECUTED ffc30394: 80 0b 00 1c lwz r0,28(r11) <== NOT EXECUTED ffc30398: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc3039c: 41 9e 00 14 beq- cr7,ffc303b0 <== NOT EXECUTED ffc303a0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc303a4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc303a8: 4e 80 04 21 bctrl <== NOT EXECUTED ffc303ac: 81 21 00 2c lwz r9,44(r1) <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); ffc303b0: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc303b4: 41 be ff c0 beq- cr7,ffc30374 <== NOT EXECUTED ffc303b8: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc303bc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc303c0: 41 be ff b4 beq- cr7,ffc30374 <== NOT EXECUTED ffc303c4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc303c8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc303cc: 4e 80 04 21 bctrl <== NOT EXECUTED ffc303d0: 4b ff ff a4 b ffc30374 <== NOT EXECUTED ffc08584 : int mode __attribute__((unused)), struct aiocb * const list[] __attribute__((unused)), int nent __attribute__((unused)), struct sigevent *sig __attribute__((unused)) ) { ffc08584: 94 21 ff f8 stwu r1,-8(r1) ffc08588: 7c 08 02 a6 mflr r0 ffc0858c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08590: 48 00 bc e1 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08594: 38 00 00 58 li r0,88 ffc08598: 90 03 00 00 stw r0,0(r3) } ffc0859c: 38 60 ff ff li r3,-1 ffc085a0: 80 01 00 0c lwz r0,12(r1) ffc085a4: 38 21 00 08 addi r1,r1,8 ffc085a8: 7c 08 03 a6 mtlr r0 ffc085ac: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1df2c : off_t lseek( int fd, off_t offset, int whence ) { ffc1df2c: 94 21 ff e8 stwu r1,-24(r1) ffc1df30: 7c 08 02 a6 mflr r0 rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1df34: 3d 20 00 00 lis r9,0 off_t lseek( int fd, off_t offset, int whence ) { ffc1df38: 90 01 00 1c stw r0,28(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1df3c: 80 09 26 8c lwz r0,9868(r9) off_t lseek( int fd, off_t offset, int whence ) { ffc1df40: 93 a1 00 0c stw r29,12(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1df44: 7f 83 00 40 cmplw cr7,r3,r0 off_t lseek( int fd, off_t offset, int whence ) { ffc1df48: 93 c1 00 10 stw r30,16(r1) ffc1df4c: 93 e1 00 14 stw r31,20(r1) rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); ffc1df50: 40 9c 01 54 bge- cr7,ffc1e0a4 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1df54: 3d 20 00 00 lis r9,0 ffc1df58: 83 e9 27 4c lwz r31,10060(r9) ffc1df5c: 1c 63 00 48 mulli r3,r3,72 ffc1df60: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open(iop); ffc1df64: 80 1f 00 18 lwz r0,24(r31) ffc1df68: 70 09 01 00 andi. r9,r0,256 ffc1df6c: 41 82 01 38 beq- ffc1e0a4 <== NEVER TAKEN /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) ffc1df70: 81 3f 00 40 lwz r9,64(r31) ffc1df74: 80 09 00 14 lwz r0,20(r9) ffc1df78: 2f 80 00 00 cmpwi cr7,r0,0 ffc1df7c: 41 9e 01 40 beq- cr7,ffc1e0bc <== NEVER TAKEN /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { ffc1df80: 2f 87 00 01 cmpwi cr7,r7,1 /* * Now process the lseek(). */ old_offset = iop->offset; ffc1df84: 83 bf 00 10 lwz r29,16(r31) ffc1df88: 83 df 00 14 lwz r30,20(r31) switch ( whence ) { ffc1df8c: 41 9e 00 cc beq- cr7,ffc1e058 ffc1df90: 2f 87 00 02 cmpwi cr7,r7,2 ffc1df94: 41 9e 00 58 beq- cr7,ffc1dfec ffc1df98: 2f 87 00 00 cmpwi cr7,r7,0 ffc1df9c: 40 9e 00 d0 bne- cr7,ffc1e06c case SEEK_SET: iop->offset = offset; ffc1dfa0: 90 bf 00 10 stw r5,16(r31) ffc1dfa4: 90 df 00 14 stw r6,20(r31) /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); ffc1dfa8: 80 09 00 14 lwz r0,20(r9) ffc1dfac: 7f e3 fb 78 mr r3,r31 ffc1dfb0: 7c 09 03 a6 mtctr r0 ffc1dfb4: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc1dfb8: 7c 69 1b 78 mr r9,r3 if ( status == (off_t) -1 ) ffc1dfbc: 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 ); ffc1dfc0: 7c 8a 23 78 mr r10,r4 if ( status == (off_t) -1 ) ffc1dfc4: 41 9e 00 60 beq- cr7,ffc1e024 <== NEVER TAKEN /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1dfc8: 80 01 00 1c lwz r0,28(r1) ffc1dfcc: 7d 44 53 78 mr r4,r10 ffc1dfd0: 7d 23 4b 78 mr r3,r9 ffc1dfd4: 83 a1 00 0c lwz r29,12(r1) ffc1dfd8: 7c 08 03 a6 mtlr r0 ffc1dfdc: 83 c1 00 10 lwz r30,16(r1) ffc1dfe0: 83 e1 00 14 lwz r31,20(r1) ffc1dfe4: 38 21 00 18 addi r1,r1,24 ffc1dfe8: 4e 80 00 20 blr <== ALWAYS TAKEN case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; ffc1dfec: 80 7f 00 08 lwz r3,8(r31) ffc1dff0: 80 9f 00 0c lwz r4,12(r31) /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); ffc1dff4: 80 09 00 14 lwz r0,20(r9) case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; ffc1dff8: 7d 86 20 14 addc r12,r6,r4 ffc1dffc: 7d 65 19 14 adde r11,r5,r3 ffc1e000: 91 7f 00 10 stw r11,16(r31) /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); ffc1e004: 7c 09 03 a6 mtctr r0 ffc1e008: 7f e3 fb 78 mr r3,r31 case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; ffc1e00c: 91 9f 00 14 stw r12,20(r31) /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); ffc1e010: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc1e014: 7c 69 1b 78 mr r9,r3 if ( status == (off_t) -1 ) ffc1e018: 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 ); ffc1e01c: 7c 8a 23 78 mr r10,r4 if ( status == (off_t) -1 ) ffc1e020: 40 9e ff a8 bne+ cr7,ffc1dfc8 ffc1e024: 2f 84 ff ff cmpwi cr7,r4,-1 ffc1e028: 40 9e ff a0 bne+ cr7,ffc1dfc8 <== NEVER TAKEN /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e02c: 80 01 00 1c lwz r0,28(r1) ffc1e030: 7d 44 53 78 mr r4,r10 * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); if ( status == (off_t) -1 ) iop->offset = old_offset; ffc1e034: 93 bf 00 10 stw r29,16(r31) /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e038: 7d 23 4b 78 mr r3,r9 ffc1e03c: 7c 08 03 a6 mtlr r0 * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); if ( status == (off_t) -1 ) iop->offset = old_offset; ffc1e040: 93 df 00 14 stw r30,20(r31) /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e044: 83 a1 00 0c lwz r29,12(r1) ffc1e048: 83 c1 00 10 lwz r30,16(r1) ffc1e04c: 83 e1 00 14 lwz r31,20(r1) ffc1e050: 38 21 00 18 addi r1,r1,24 ffc1e054: 4e 80 00 20 blr <== ALWAYS TAKEN case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; ffc1e058: 7d 86 f0 14 addc r12,r6,r30 ffc1e05c: 7d 65 e9 14 adde r11,r5,r29 ffc1e060: 91 7f 00 10 stw r11,16(r31) ffc1e064: 91 9f 00 14 stw r12,20(r31) break; ffc1e068: 4b ff ff 40 b ffc1dfa8 <== ALWAYS TAKEN case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc1e06c: 4b ff 53 0d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc1e070: 38 00 00 16 li r0,22 ffc1e074: 90 03 00 00 stw r0,0(r3) ffc1e078: 39 20 ff ff li r9,-1 ffc1e07c: 39 40 ff ff li r10,-1 /* * So if the operation failed, we have to restore iop->offset. */ return status; } ffc1e080: 80 01 00 1c lwz r0,28(r1) ffc1e084: 7d 44 53 78 mr r4,r10 ffc1e088: 7d 23 4b 78 mr r3,r9 ffc1e08c: 83 a1 00 0c lwz r29,12(r1) ffc1e090: 7c 08 03 a6 mtlr r0 ffc1e094: 83 c1 00 10 lwz r30,16(r1) ffc1e098: 83 e1 00 14 lwz r31,20(r1) ffc1e09c: 38 21 00 18 addi r1,r1,24 ffc1e0a0: 4e 80 00 20 blr <== ALWAYS TAKEN off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); ffc1e0a4: 4b ff 52 d5 bl ffc13378 <__errno> <== NOT EXECUTED ffc1e0a8: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1e0ac: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e0b0: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc1e0b4: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc1e0b8: 4b ff ff 10 b ffc1dfc8 <== NOT EXECUTED /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1e0bc: 4b ff 52 bd bl ffc13378 <__errno> <== NOT EXECUTED ffc1e0c0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1e0c4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e0c8: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc1e0cc: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc1e0d0: 4b ff fe f8 b ffc1dfc8 <== NOT EXECUTED ffc30590 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc30590: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc30594: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc30598: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc3059c: 7c 9e 23 79 mr. r30,r4 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { ffc305a0: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc305a4: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc305a8: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc305ac: 93 e1 00 34 stw r31,52(r1) <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc305b0: 41 82 00 b0 beq- ffc30660 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc305b4: 48 02 5c 85 bl ffc56238 <== NOT EXECUTED ffc305b8: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc305bc: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc305c0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc305c4: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc305c8: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc305cc: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc305d0: 4b fd 87 45 bl ffc08d14 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc305d4: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc305d8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc305dc: 40 9e 00 64 bne- cr7,ffc30640 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ ffc305e0: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED ffc305e4: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc305e8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc305ec: 41 9e 00 a4 beq- cr7,ffc30690 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc305f0: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc305f4: 38 a0 00 48 li r5,72 <== NOT EXECUTED ffc305f8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc305fc: 48 02 1c 0d bl ffc52208 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); ffc30600: 81 21 00 10 lwz r9,16(r1) <== NOT EXECUTED ffc30604: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc30608: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc3060c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30610: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30614: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc30618: 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 ); ffc3061c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc30620: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30624: 41 9e 00 1c beq- cr7,ffc30640 <== NOT EXECUTED ffc30628: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc3062c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30630: 41 9e 00 10 beq- cr7,ffc30640 <== NOT EXECUTED ffc30634: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30638: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc3063c: 4e 80 04 21 bctrl <== NOT EXECUTED return status; } ffc30640: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc30644: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc30648: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc3064c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30650: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc30654: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc30658: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc3065c: 4e 80 00 20 blr <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc30660: 48 01 de 11 bl ffc4e470 <__errno> <== NOT EXECUTED ffc30664: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc30668: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc3066c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } ffc30670: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc30674: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc30678: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc3067c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30680: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc30684: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc30688: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc3068c: 4e 80 00 20 blr <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); ffc30690: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc30694: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30698: 41 9e 00 1c beq- cr7,ffc306b4 <== NOT EXECUTED ffc3069c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc306a0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc306a4: 41 9e 00 10 beq- cr7,ffc306b4 <== NOT EXECUTED ffc306a8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc306ac: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc306b0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc306b4: 48 01 dd bd bl ffc4e470 <__errno> <== NOT EXECUTED ffc306b8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc306bc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc306c0: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc306c4: 4b ff ff 7c b ffc30640 <== NOT EXECUTED ffc047e8 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); ffc047e8: 94 21 ff e8 stwu r1,-24(r1) <== ALWAYS TAKEN ffc047ec: 7c 08 02 a6 mflr r0 ffc047f0: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc047f4: 90 01 00 1c stw r0,28(r1) ffc047f8: 39 29 2b 00 addi r9,r9,11008 ffc047fc: 81 69 00 04 lwz r11,4(r9) <== ALWAYS TAKEN ffc04800: 93 e1 00 14 stw r31,20(r1) ffc04804: 7c 7f 1b 78 mr r31,r3 ffc04808: 39 6b 00 01 addi r11,r11,1 ffc0480c: 91 69 00 04 stw r11,4(r9) ffc04810: 93 a1 00 0c stw r29,12(r1) <== ALWAYS TAKEN ffc04814: 93 c1 00 10 stw r30,16(r1) /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); ffc04818: 4b ff fe 71 bl ffc04688 <== ALWAYS TAKEN /* * Validate the parameters */ if ( !size ) ffc0481c: 2f 9f 00 00 cmpwi cr7,r31,0 <== ALWAYS TAKEN ffc04820: 41 9e 00 b0 beq- cr7,ffc048d0 <== 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()) && ffc04824: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc04828: 80 09 27 d4 lwz r0,10196(r9) ffc0482c: 2f 80 00 03 cmpwi cr7,r0,3 ffc04830: 41 9e 00 94 beq- cr7,ffc048c4 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); ffc04834: 3d 20 00 00 lis r9,0 ffc04838: 80 69 26 9c lwz r3,9884(r9) <== ALWAYS TAKEN ffc0483c: 7f e4 fb 78 mr r4,r31 ffc04840: 38 a0 00 00 li r5,0 ffc04844: 38 c0 00 00 li r6,0 <== ALWAYS TAKEN ffc04848: 48 00 5f 8d bl ffc0a7d4 <_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 ) { ffc0484c: 2f 83 00 00 cmpwi cr7,r3,0 ffc04850: 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; ffc04854: 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 ) { ffc04858: 41 9e 00 9c beq- cr7,ffc048f4 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) ffc0485c: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc04860: 81 29 27 10 lwz r9,10000(r9) ffc04864: 2f 89 00 00 cmpwi cr7,r9,0 ffc04868: 41 9e 00 18 beq- cr7,ffc04880 <== ALWAYS TAKEN (*rtems_malloc_dirty_helper)( return_this, size ); ffc0486c: 80 09 00 00 lwz r0,0(r9) <== NOT EXECUTED ffc04870: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc04874: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc04878: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0487c: 4e 80 04 21 bctrl <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) ffc04880: 3d 20 00 00 lis r9,0 ffc04884: 81 29 27 08 lwz r9,9992(r9) ffc04888: 7f dd f3 78 mr r29,r30 ffc0488c: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc04890: 41 9e 00 14 beq- cr7,ffc048a4 <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->at_malloc)(return_this); ffc04894: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc04898: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0489c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc048a0: 4e 80 04 21 bctrl <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } ffc048a4: 80 01 00 1c lwz r0,28(r1) ffc048a8: 7f a3 eb 78 mr r3,r29 ffc048ac: 83 c1 00 10 lwz r30,16(r1) ffc048b0: 7c 08 03 a6 mtlr r0 ffc048b4: 83 a1 00 0c lwz r29,12(r1) ffc048b8: 83 e1 00 14 lwz r31,20(r1) ffc048bc: 38 21 00 18 addi r1,r1,24 ffc048c0: 4e 80 00 20 blr <== ALWAYS TAKEN return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && ffc048c4: 4b ff fd 51 bl ffc04614 <== ALWAYS TAKEN ffc048c8: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc048cc: 40 9e ff 68 bne+ cr7,ffc04834 <== ALWAYS TAKEN if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } ffc048d0: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); ffc048d4: 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; } ffc048d8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc048dc: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc048e0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc048e4: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc048e8: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc048ec: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc048f0: 4e 80 00 20 blr <== NOT EXECUTED */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) ffc048f4: 3d 20 00 00 lis r9,0 ffc048f8: 81 29 27 0c lwz r9,9996(r9) ffc048fc: 2f 89 00 00 cmpwi cr7,r9,0 ffc04900: 41 9e 00 1c beq- cr7,ffc0491c <== ALWAYS TAKEN return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); ffc04904: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc04908: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0490c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04910: 4e 80 04 21 bctrl <== NOT EXECUTED if ( !return_this ) { ffc04914: 7c 7e 1b 79 mr. r30,r3 <== NOT EXECUTED ffc04918: 40 82 ff 44 bne+ ffc0485c <== NOT EXECUTED errno = ENOMEM; ffc0491c: 48 00 ea 5d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc04920: 38 00 00 0c li r0,12 ffc04924: 90 03 00 00 stw r0,0(r3) return (void *) 0; ffc04928: 4b ff ff 7c b ffc048a4 <== ALWAYS TAKEN ffc0465c : } void malloc_deferred_free( void *pointer ) { ffc0465c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc04660: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc04664: 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 ); ffc04668: 3c 60 00 00 lis r3,0 <== NOT EXECUTED ffc0466c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc04670: 38 63 2a f0 addi r3,r3,10992 <== NOT EXECUTED ffc04674: 48 00 4c f1 bl ffc09364 <_Chain_Append> <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } ffc04678: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc0467c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc04680: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04684: 4e 80 00 20 blr <== NOT EXECUTED ffc0463c : */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); ffc0463c: 3d 60 00 00 lis r11,0 ffc04640: 39 2b 2a f0 addi r9,r11,10992 ffc04644: 38 09 00 04 addi r0,r9,4 <== ALWAYS TAKEN the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc04648: 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); ffc0464c: 90 0b 2a f0 stw r0,10992(r11) the_chain->permanent_null = NULL; ffc04650: 38 00 00 00 li r0,0 ffc04654: 90 09 00 04 stw r0,4(r9) void malloc_deferred_frees_initialize(void) { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } ffc04658: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04688 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { ffc04688: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0468c: 7c 08 02 a6 mflr r0 ffc04690: 93 e1 00 0c stw r31,12(r1) ffc04694: 3f e0 00 00 lis r31,0 ffc04698: 3b ff 2a f0 addi r31,r31,10992 ffc0469c: 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) ffc046a0: 48 00 00 08 b ffc046a8 <== ALWAYS TAKEN free(to_be_freed); ffc046a4: 4b ff fd c5 bl ffc04468 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); ffc046a8: 7f e3 fb 78 mr r3,r31 ffc046ac: 48 00 4c e9 bl ffc09394 <_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) ffc046b0: 2f 83 00 00 cmpwi cr7,r3,0 ffc046b4: 40 9e ff f0 bne+ cr7,ffc046a4 <== NEVER TAKEN free(to_be_freed); } ffc046b8: 80 01 00 14 lwz r0,20(r1) ffc046bc: 83 e1 00 0c lwz r31,12(r1) ffc046c0: 38 21 00 10 addi r1,r1,16 ffc046c4: 7c 08 03 a6 mtlr r0 ffc046c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc094c4 : /* * Find amount of free heap remaining */ size_t malloc_free_space( void ) { ffc094c4: 94 21 ff e8 stwu r1,-24(r1) Heap_Information info; _Protected_heap_Get_free_information( RTEMS_Malloc_Heap, &info ); ffc094c8: 3d 20 00 00 lis r9,0 /* * Find amount of free heap remaining */ size_t malloc_free_space( void ) { ffc094cc: 7c 08 02 a6 mflr r0 Heap_Information info; _Protected_heap_Get_free_information( RTEMS_Malloc_Heap, &info ); ffc094d0: 80 69 34 dc lwz r3,13532(r9) ffc094d4: 38 81 00 08 addi r4,r1,8 /* * Find amount of free heap remaining */ size_t malloc_free_space( void ) { ffc094d8: 90 01 00 1c stw r0,28(r1) Heap_Information info; _Protected_heap_Get_free_information( RTEMS_Malloc_Heap, &info ); ffc094dc: 48 00 76 bd bl ffc10b98 <_Protected_heap_Get_free_information> <== ALWAYS TAKEN return (size_t) info.largest; } ffc094e0: 80 01 00 1c lwz r0,28(r1) ffc094e4: 80 61 00 0c lwz r3,12(r1) ffc094e8: 38 21 00 18 addi r1,r1,24 ffc094ec: 7c 08 03 a6 mtlr r0 ffc094f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc306d4 : int malloc_info( Heap_Information_block *the_info ) { if ( !the_info ) ffc306d4: 7c 64 1b 79 mr. r4,r3 */ int malloc_info( Heap_Information_block *the_info ) { ffc306d8: 94 21 ff f8 stwu r1,-8(r1) ffc306dc: 7c 08 02 a6 mflr r0 if ( !the_info ) ffc306e0: 38 60 ff ff li r3,-1 */ int malloc_info( Heap_Information_block *the_info ) { ffc306e4: 90 01 00 0c stw r0,12(r1) if ( !the_info ) ffc306e8: 41 82 00 14 beq- ffc306fc return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); ffc306ec: 3d 20 00 00 lis r9,0 ffc306f0: 80 69 34 dc lwz r3,13532(r9) ffc306f4: 48 00 39 1d bl ffc34010 <_Protected_heap_Get_information> <== ALWAYS TAKEN ffc306f8: 38 60 00 00 li r3,0 return 0; } ffc306fc: 80 01 00 0c lwz r0,12(r1) ffc30700: 38 21 00 08 addi r1,r1,8 ffc30704: 7c 08 03 a6 mtlr r0 ffc30708: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04614 : rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) ffc04614: 3d 20 00 00 lis r9,0 ffc04618: 80 09 27 70 lwz r0,10096(r9) ffc0461c: 38 60 00 00 li r3,0 ffc04620: 2f 80 00 00 cmpwi cr7,r0,0 ffc04624: 4c 9e 00 20 bnelr cr7 <== NEVER TAKEN return false; if ( _ISR_Nest_level > 0 ) ffc04628: 3d 20 00 00 lis r9,0 ffc0462c: 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) ffc04630: 7c 63 00 34 cntlzw r3,r3 ffc04634: 54 63 d9 7e rlwinm r3,r3,27,5,31 if ( _ISR_Nest_level > 0 ) return false; return true; } ffc04638: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08000 : #ifdef RTEMS_NEWLIB #include "malloc_p.h" void malloc_report_statistics(void) { ffc08000: 94 21 ff f8 stwu r1,-8(r1) ffc08004: 7c 08 02 a6 mflr r0 malloc_report_statistics_with_plugin( NULL, printk_plugin ); ffc08008: 3c 80 ff c1 lis r4,-63 ffc0800c: 38 84 8f d4 addi r4,r4,-28716 #ifdef RTEMS_NEWLIB #include "malloc_p.h" void malloc_report_statistics(void) { ffc08010: 90 01 00 0c stw r0,12(r1) malloc_report_statistics_with_plugin( NULL, printk_plugin ); ffc08014: 38 60 00 00 li r3,0 ffc08018: 48 00 00 15 bl ffc0802c <== ALWAYS TAKEN } ffc0801c: 80 01 00 0c lwz r0,12(r1) ffc08020: 38 21 00 08 addi r1,r1,8 ffc08024: 7c 08 03 a6 mtlr r0 ffc08028: 4e 80 00 20 blr <== ALWAYS TAKEN ffc3070c : void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc3070c: 94 21 ff b8 stwu r1,-72(r1) ffc30710: 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; ffc30714: 3d 20 00 00 lis r9,0 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc30718: 90 01 00 4c stw r0,76(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc3071c: 38 00 00 64 li r0,100 ffc30720: 38 a0 00 00 li r5,0 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc30724: 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; ffc30728: 3b e9 63 a0 addi r31,r9,25504 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc3072c: 93 61 00 34 stw r27,52(r1) ffc30730: 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; ffc30734: 83 7f 00 20 lwz r27,32(r31) ffc30738: 83 9f 00 24 lwz r28,36(r31) void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc3073c: 93 a1 00 3c stw r29,60(r1) ffc30740: 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; ffc30744: 83 bf 00 28 lwz r29,40(r31) ffc30748: 83 df 00 2c lwz r30,44(r31) void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc3074c: 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; ffc30750: 7d 1e e0 10 subfc r8,r30,r28 ffc30754: 7c fd d9 10 subfe r7,r29,r27 (*print)( ffc30758: 82 e9 63 a0 lwz r23,25504(r9) ffc3075c: 7d 20 40 16 mulhwu r9,r0,r8 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc30760: 93 21 00 2c stw r25,44(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc30764: 7d 40 41 d6 mullw r10,r0,r8 ffc30768: 83 3f 00 18 lwz r25,24(r31) void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc3076c: 93 01 00 28 stw r24,40(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc30770: 1c 07 00 64 mulli r0,r7,100 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc30774: 93 41 00 30 stw r26,48(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc30778: 7d 20 4a 14 add r9,r0,r9 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc3077c: 7c 7a 1b 78 mr r26,r3 ffc30780: 90 81 00 18 stw r4,24(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc30784: 7e e6 bb 78 mr r6,r23 ffc30788: 54 e0 b0 12 rlwinm r0,r7,22,0,9 void malloc_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc3078c: 92 c1 00 20 stw r22,32(r1) s = &rtems_malloc_statistics; allocated = s->lifetime_allocated - s->lifetime_freed; (*print)( ffc30790: 55 18 b2 be rlwinm r24,r8,22,10,31 ffc30794: 7d 23 4b 78 mr r3,r9 ffc30798: 7d 44 53 78 mr r4,r10 ffc3079c: 7c 18 c3 78 or r24,r0,r24 ffc307a0: 54 f6 b2 be rlwinm r22,r7,22,10,31 ffc307a4: 48 03 7e 65 bl ffc68608 <__udivdi3> <== ALWAYS TAKEN ffc307a8: 1d 99 00 64 mulli r12,r25,100 ffc307ac: 7d 8c bb 96 divwu r12,r12,r23 ffc307b0: 57 c0 b2 be rlwinm r0,r30,22,10,31 ffc307b4: 91 81 00 0c stw r12,12(r1) ffc307b8: 57 bd b0 12 rlwinm r29,r29,22,0,9 ffc307bc: 7f a0 03 78 or r0,r29,r0 ffc307c0: 90 01 00 14 stw r0,20(r1) ffc307c4: 57 8b b2 be rlwinm r11,r28,22,10,31 ffc307c8: 57 7b b0 12 rlwinm r27,r27,22,0,9 ffc307cc: 80 01 00 18 lwz r0,24(r1) ffc307d0: 7f 6b 5b 78 or r11,r27,r11 ffc307d4: 7c 8a 23 78 mr r10,r4 ffc307d8: 91 61 00 10 stw r11,16(r1) ffc307dc: 57 39 b2 be rlwinm r25,r25,22,10,31 ffc307e0: 7c 09 03 a6 mtctr r0 ffc307e4: 3c 80 ff c7 lis r4,-57 ffc307e8: 93 21 00 08 stw r25,8(r1) ffc307ec: 7c 69 1b 78 mr r9,r3 ffc307f0: 56 e5 b2 be rlwinm r5,r23,22,10,31 ffc307f4: 7e c7 b3 78 mr r7,r22 ffc307f8: 7f 08 c3 78 mr r8,r24 ffc307fc: 38 84 02 28 addi r4,r4,552 ffc30800: 7f 43 d3 78 mr r3,r26 ffc30804: 4c c6 31 82 crclr 4*cr1+eq ffc30808: 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)( ffc3080c: 80 01 00 18 lwz r0,24(r1) ffc30810: 3c 80 ff c7 lis r4,-57 ffc30814: 81 3f 00 14 lwz r9,20(r31) ffc30818: 7f 43 d3 78 mr r3,r26 ffc3081c: 80 bf 00 04 lwz r5,4(r31) ffc30820: 80 df 00 08 lwz r6,8(r31) ffc30824: 7c 09 03 a6 mtctr r0 ffc30828: 80 ff 00 0c lwz r7,12(r31) ffc3082c: 38 84 02 8c addi r4,r4,652 ffc30830: 81 1f 00 10 lwz r8,16(r31) ffc30834: 4c c6 31 82 crclr 4*cr1+eq ffc30838: 4e 80 04 21 bctrl <== ALWAYS TAKEN s->memalign_calls, s->free_calls, s->realloc_calls, s->calloc_calls ); } ffc3083c: 80 01 00 4c lwz r0,76(r1) ffc30840: 82 c1 00 20 lwz r22,32(r1) ffc30844: 7c 08 03 a6 mtlr r0 ffc30848: 82 e1 00 24 lwz r23,36(r1) ffc3084c: 83 01 00 28 lwz r24,40(r1) ffc30850: 83 21 00 2c lwz r25,44(r1) ffc30854: 83 41 00 30 lwz r26,48(r1) ffc30858: 83 61 00 34 lwz r27,52(r1) ffc3085c: 83 81 00 38 lwz r28,56(r1) ffc30860: 83 a1 00 3c lwz r29,60(r1) ffc30864: 83 c1 00 40 lwz r30,64(r1) ffc30868: 83 e1 00 44 lwz r31,68(r1) ffc3086c: 38 21 00 48 addi r1,r1,72 ffc30870: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08194 : #include "malloc_p.h" #include void malloc_walk(size_t source, size_t printf_enabled) { ffc08194: 94 21 ff f8 stwu r1,-8(r1) ffc08198: 7c 08 02 a6 mflr r0 _Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled ); ffc0819c: 31 24 ff ff addic r9,r4,-1 ffc081a0: 7c a9 21 10 subfe r5,r9,r4 #include "malloc_p.h" #include void malloc_walk(size_t source, size_t printf_enabled) { ffc081a4: 90 01 00 0c stw r0,12(r1) _Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled ); ffc081a8: 3d 20 00 00 lis r9,0 #include "malloc_p.h" #include void malloc_walk(size_t source, size_t printf_enabled) { ffc081ac: 7c 60 1b 78 mr r0,r3 _Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled ); ffc081b0: 80 69 27 1c lwz r3,10012(r9) ffc081b4: 7c 04 03 78 mr r4,r0 ffc081b8: 48 00 76 41 bl ffc0f7f8 <_Protected_heap_Walk> <== ALWAYS TAKEN } ffc081bc: 80 01 00 0c lwz r0,12(r1) ffc081c0: 38 21 00 08 addi r1,r1,8 ffc081c4: 7c 08 03 a6 mtlr r0 ffc081c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16ff8 : void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc16ff8: 3d 20 00 00 lis r9,0 */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { ffc16ffc: 94 21 ff f8 stwu r1,-8(r1) ffc17000: 7c 08 02 a6 mflr r0 void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc17004: 38 60 00 01 li r3,1 ffc17008: 80 89 27 68 lwz r4,10088(r9) */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { ffc1700c: 90 01 00 0c stw r0,12(r1) void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); ffc17010: 4b fe eb 35 bl ffc05b44 <== ALWAYS TAKEN if ( memory ) ffc17014: 2c 03 00 00 cmpwi r3,0 ffc17018: 41 82 00 14 beq- ffc1702c <== NEVER TAKEN memfile_blocks_allocated++; ffc1701c: 3d 20 00 00 lis r9,0 ffc17020: 81 69 28 10 lwz r11,10256(r9) ffc17024: 38 0b 00 01 addi r0,r11,1 ffc17028: 90 09 28 10 stw r0,10256(r9) return memory; } ffc1702c: 80 01 00 0c lwz r0,12(r1) ffc17030: 38 21 00 08 addi r1,r1,8 ffc17034: 7c 08 03 a6 mtlr r0 ffc17038: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17604 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ ffc17604: 94 21 ff f0 stwu r1,-16(r1) ffc17608: 7c 08 02 a6 mflr r0 ffc1760c: 93 e1 00 0c stw r31,12(r1) ffc17610: 7c 7f 1b 78 mr r31,r3 ffc17614: 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) ) { ffc17618: 4b ff cf b5 bl ffc145cc <== ALWAYS TAKEN ffc1761c: 2f 83 00 00 cmpwi cr7,r3,0 ffc17620: 40 9e 00 40 bne- cr7,ffc17660 ffc17624: a0 1f 00 34 lhz r0,52(r31) ffc17628: 2f 80 00 00 cmpwi cr7,r0,0 ffc1762c: 40 9e 00 34 bne- cr7,ffc17660 <== NEVER TAKEN /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) ffc17630: 3d 20 00 00 lis r9,0 ffc17634: 81 29 26 f4 lwz r9,9972(r9) ffc17638: 81 69 00 04 lwz r11,4(r9) ffc1763c: 7f 8b f8 00 cmpw cr7,r11,r31 ffc17640: 41 9e 00 38 beq- cr7,ffc17678 <== NEVER TAKEN rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) ffc17644: 80 1f 00 4c lwz r0,76(r31) ffc17648: 2f 80 00 06 cmpwi cr7,r0,6 ffc1764c: 41 9e 00 0c beq- cr7,ffc17658 <== NEVER TAKEN IMFS_memfile_remove( the_jnode ); ffc17650: 7f e3 fb 78 mr r3,r31 ffc17654: 4b ff fd ad bl ffc17400 <== ALWAYS TAKEN free( the_jnode ); ffc17658: 7f e3 fb 78 mr r3,r31 ffc1765c: 4b fe e8 6d bl ffc05ec8 <== ALWAYS TAKEN } return 0; } ffc17660: 80 01 00 14 lwz r0,20(r1) ffc17664: 38 60 00 00 li r3,0 ffc17668: 83 e1 00 0c lwz r31,12(r1) ffc1766c: 38 21 00 10 addi r1,r1,16 ffc17670: 7c 08 03 a6 mtlr r0 ffc17674: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) rtems_filesystem_current.node_access = NULL; ffc17678: 90 09 00 04 stw r0,4(r9) <== NOT EXECUTED ffc1767c: 4b ff ff c8 b ffc17644 <== NOT EXECUTED ffc176ec : */ int memfile_close( rtems_libio_t *iop ) { ffc176ec: 7c 08 02 a6 mflr r0 ffc176f0: 94 21 ff f8 stwu r1,-8(r1) ffc176f4: 7c 69 1b 78 mr r9,r3 ffc176f8: 90 01 00 0c stw r0,12(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (iop->flags & LIBIO_FLAGS_APPEND) ffc176fc: 80 03 00 18 lwz r0,24(r3) rtems_libio_t *iop ) { IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc17700: 80 63 00 3c lwz r3,60(r3) if (iop->flags & LIBIO_FLAGS_APPEND) ffc17704: 70 0b 02 00 andi. r11,r0,512 ffc17708: 41 82 00 14 beq- ffc1771c iop->offset = the_jnode->info.file.size; ffc1770c: 81 63 00 50 lwz r11,80(r3) ffc17710: 81 83 00 54 lwz r12,84(r3) ffc17714: 91 69 00 10 stw r11,16(r9) ffc17718: 91 89 00 14 stw r12,20(r9) memfile_check_rmnod( the_jnode ); ffc1771c: 4b ff fe e9 bl ffc17604 <== ALWAYS TAKEN return 0; } ffc17720: 80 01 00 0c lwz r0,12(r1) ffc17724: 38 60 00 00 li r3,0 ffc17728: 7c 08 03 a6 mtlr r0 ffc1772c: 38 21 00 08 addi r1,r1,8 ffc17730: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16fc8 : */ void memfile_free_block( void *memory ) { ffc16fc8: 94 21 ff f8 stwu r1,-8(r1) ffc16fcc: 7c 08 02 a6 mflr r0 ffc16fd0: 90 01 00 0c stw r0,12(r1) #if 0 fprintf(stdout, "(d %p) ", memory ); fflush(stdout); #endif free(memory); ffc16fd4: 4b fe ee f5 bl ffc05ec8 <== ALWAYS TAKEN memfile_blocks_allocated--; ffc16fd8: 3d 20 00 00 lis r9,0 ffc16fdc: 81 69 28 10 lwz r11,10256(r9) ffc16fe0: 38 0b ff ff addi r0,r11,-1 ffc16fe4: 90 09 28 10 stw r0,10256(r9) } ffc16fe8: 80 01 00 0c lwz r0,12(r1) ffc16fec: 38 21 00 08 addi r1,r1,8 ffc16ff0: 7c 08 03 a6 mtlr r0 ffc16ff4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc172dc : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc172dc: 94 21 ff e0 stwu r1,-32(r1) ffc172e0: 7c 08 02 a6 mflr r0 ffc172e4: 93 e1 00 1c stw r31,28(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc172e8: 7c 7f 1b 79 mr. r31,r3 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { ffc172ec: 93 81 00 10 stw r28,16(r1) ffc172f0: 7c 9c 23 78 mr r28,r4 ffc172f4: 90 01 00 24 stw r0,36(r1) ffc172f8: 93 61 00 0c stw r27,12(r1) ffc172fc: 93 a1 00 14 stw r29,20(r1) ffc17300: 93 c1 00 18 stw r30,24(r1) /* * Perform internal consistency checks */ assert( block_table ); ffc17304: 41 82 00 74 beq- ffc17378 <== NEVER TAKEN * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i <== NEVER TAKEN ffc17314: 7c 7e 1b 78 mr r30,r3 ffc17318: 3b a0 00 00 li r29,0 if ( b[i] ) { memfile_free_block( b[i] ); b[i] = 0; ffc1731c: 3b 60 00 00 li r27,0 */ b = *block_table; for ( i=0 ; i memfile_free_block( b[i] ); ffc1732c: 4b ff fc 9d bl ffc16fc8 <== ALWAYS TAKEN b[i] = 0; ffc17330: 93 7e 00 00 stw r27,0(r30) * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i ffc17344: 80 7f 00 00 lwz r3,0(r31) /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); ffc17348: 4b ff fc 81 bl ffc16fc8 <== ALWAYS TAKEN *block_table = 0; ffc1734c: 38 00 00 00 li r0,0 ffc17350: 90 1f 00 00 stw r0,0(r31) } ffc17354: 80 01 00 24 lwz r0,36(r1) ffc17358: 83 61 00 0c lwz r27,12(r1) ffc1735c: 7c 08 03 a6 mtlr r0 ffc17360: 83 81 00 10 lwz r28,16(r1) ffc17364: 83 a1 00 14 lwz r29,20(r1) ffc17368: 83 c1 00 18 lwz r30,24(r1) ffc1736c: 83 e1 00 1c lwz r31,28(r1) ffc17370: 38 21 00 20 addi r1,r1,32 ffc17374: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Perform internal consistency checks */ assert( block_table ); ffc17378: 3c a0 ff c2 lis r5,-62 <== NOT EXECUTED ffc1737c: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED ffc17380: 38 a5 6f 0c addi r5,r5,28428 <== NOT EXECUTED ffc17384: 3c c0 ff c2 lis r6,-62 <== NOT EXECUTED ffc17388: 38 63 6f d0 addi r3,r3,28624 <== NOT EXECUTED ffc1738c: 38 a5 00 20 addi r5,r5,32 <== NOT EXECUTED ffc17390: 38 c6 70 48 addi r6,r6,28744 <== NOT EXECUTED ffc17394: 38 80 01 b3 li r4,435 <== NOT EXECUTED ffc17398: 4b fe e5 d1 bl ffc05968 <__assert_func> <== NOT EXECUTED ffc17a1c : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { ffc17a1c: 94 21 ff e0 stwu r1,-32(r1) ffc17a20: 7c 08 02 a6 mflr r0 ffc17a24: 7c 69 1b 78 mr r9,r3 ffc17a28: 90 01 00 24 stw r0,36(r1) ffc17a2c: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc17a30: 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 ) ffc17a34: 80 1f 00 50 lwz r0,80(r31) ffc17a38: 7f 80 28 00 cmpw cr7,r0,r5 ffc17a3c: 40 9c 00 20 bge- cr7,ffc17a5c <== ALWAYS TAKEN return IMFS_memfile_extend( the_jnode, length ); ffc17a40: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc17a44: 4b ff fd a9 bl ffc177ec <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } ffc17a48: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc17a4c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc17a50: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc17a54: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc17a58: 4e 80 00 20 blr <== NOT EXECUTED * POSIX 1003.1b does not specify what happens if you truncate a file * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) ffc17a5c: 41 9e 00 40 beq- cr7,ffc17a9c <== ALWAYS TAKEN * 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; ffc17a60: 90 bf 00 50 stw r5,80(r31) iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); ffc17a64: 38 61 00 08 addi r3,r1,8 ffc17a68: 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; ffc17a6c: 90 df 00 54 stw r6,84(r31) iop->size = the_jnode->info.file.size; ffc17a70: 90 c9 00 0c stw r6,12(r9) ffc17a74: 90 a9 00 08 stw r5,8(r9) IMFS_update_atime( the_jnode ); ffc17a78: 4b fe e5 19 bl ffc05f90 <== ALWAYS TAKEN ffc17a7c: 80 01 00 08 lwz r0,8(r1) ffc17a80: 38 60 00 00 li r3,0 ffc17a84: 90 1f 00 40 stw r0,64(r31) return 0; } ffc17a88: 80 01 00 24 lwz r0,36(r1) ffc17a8c: 83 e1 00 1c lwz r31,28(r1) ffc17a90: 38 21 00 20 addi r1,r1,32 ffc17a94: 7c 08 03 a6 mtlr r0 ffc17a98: 4e 80 00 20 blr <== ALWAYS TAKEN * 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 ) ffc17a9c: 80 1f 00 54 lwz r0,84(r31) ffc17aa0: 7f 80 30 40 cmplw cr7,r0,r6 ffc17aa4: 40 bc ff bc bge- cr7,ffc17a60 <== ALWAYS TAKEN ffc17aa8: 4b ff ff 98 b ffc17a40 <== NOT EXECUTED ffc16fc0 : IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return 0; } ffc16fc0: 38 60 00 00 li r3,0 ffc16fc4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17aac : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc17aac: 94 21 ff f0 stwu r1,-16(r1) ffc17ab0: 7c 08 02 a6 mflr r0 ffc17ab4: 90 01 00 14 stw r0,20(r1) ffc17ab8: 93 c1 00 08 stw r30,8(r1) IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc17abc: 83 c3 00 3c lwz r30,60(r3) rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { ffc17ac0: 93 e1 00 0c stw r31,12(r1) ffc17ac4: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { ffc17ac8: 80 1e 00 4c lwz r0,76(r30) ffc17acc: 2f 80 00 06 cmpwi cr7,r0,6 ffc17ad0: 41 9e 00 54 beq- cr7,ffc17b24 <== NEVER TAKEN if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) ffc17ad4: 80 a3 00 10 lwz r5,16(r3) ffc17ad8: 80 c3 00 14 lwz r6,20(r3) ffc17adc: 7f c3 f3 78 mr r3,r30 ffc17ae0: 4b ff fd 0d bl ffc177ec <== ALWAYS TAKEN ffc17ae4: 2f 83 00 00 cmpwi cr7,r3,0 ffc17ae8: 40 9e 00 b0 bne- cr7,ffc17b98 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; ffc17aec: 81 3e 00 50 lwz r9,80(r30) ffc17af0: 81 5e 00 54 lwz r10,84(r30) ffc17af4: 91 3f 00 08 stw r9,8(r31) ffc17af8: 91 5f 00 0c stw r10,12(r31) ffc17afc: 81 3f 00 10 lwz r9,16(r31) ffc17b00: 81 5f 00 14 lwz r10,20(r31) } return iop->offset; } ffc17b04: 80 01 00 14 lwz r0,20(r1) ffc17b08: 7d 44 53 78 mr r4,r10 ffc17b0c: 7d 23 4b 78 mr r3,r9 ffc17b10: 83 c1 00 08 lwz r30,8(r1) ffc17b14: 7c 08 03 a6 mtlr r0 ffc17b18: 83 e1 00 0c lwz r31,12(r1) ffc17b1c: 38 21 00 10 addi r1,r1,16 ffc17b20: 4e 80 00 20 blr <== ALWAYS TAKEN IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) ffc17b24: 81 3e 00 50 lwz r9,80(r30) <== NOT EXECUTED ffc17b28: 80 03 00 10 lwz r0,16(r3) <== NOT EXECUTED ffc17b2c: 81 5e 00 54 lwz r10,84(r30) <== NOT EXECUTED ffc17b30: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc17b34: 81 63 00 14 lwz r11,20(r3) <== NOT EXECUTED ffc17b38: 41 9d 00 38 bgt- cr7,ffc17b70 <== NOT EXECUTED ffc17b3c: 41 9e 00 2c beq- cr7,ffc17b68 <== NOT EXECUTED ffc17b40: 7c 09 03 78 mr r9,r0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } ffc17b44: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) ffc17b48: 7d 6a 5b 78 mr r10,r11 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } ffc17b4c: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc17b50: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc17b54: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED ffc17b58: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc17b5c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc17b60: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc17b64: 4e 80 00 20 blr <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) ffc17b68: 7f 8b 50 40 cmplw cr7,r11,r10 <== NOT EXECUTED ffc17b6c: 40 bd ff d4 ble- cr7,ffc17b40 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } ffc17b70: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc17b74: 7d 44 53 78 mr r4,r10 <== NOT EXECUTED the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; ffc17b78: 91 3f 00 10 stw r9,16(r31) <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } ffc17b7c: 7d 23 4b 78 mr r3,r9 <== NOT EXECUTED ffc17b80: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; ffc17b84: 91 5f 00 14 stw r10,20(r31) <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } ffc17b88: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc17b8c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc17b90: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc17b94: 4e 80 00 20 blr <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) rtems_set_errno_and_return_minus_one( ENOSPC ); ffc17b98: 48 00 23 b1 bl ffc19f48 <__errno> <== NOT EXECUTED ffc17b9c: 38 00 00 1c li r0,28 <== NOT EXECUTED ffc17ba0: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc17ba4: 39 20 ff ff li r9,-1 <== NOT EXECUTED ffc17ba8: 39 40 ff ff li r10,-1 <== NOT EXECUTED ffc17bac: 4b ff ff 58 b ffc17b04 <== NOT EXECUTED ffc17f0c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc17f0c: 94 21 ff f0 stwu r1,-16(r1) ffc17f10: 7c 08 02 a6 mflr r0 ffc17f14: 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)) ffc17f18: 80 03 00 18 lwz r0,24(r3) rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc17f1c: 93 c1 00 08 stw r30,8(r1) the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) ffc17f20: 70 09 02 04 andi. r9,r0,516 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { ffc17f24: 93 e1 00 0c stw r31,12(r1) ffc17f28: 7c 7f 1b 78 mr r31,r3 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; ffc17f2c: 83 c3 00 3c lwz r30,60(r3) /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) ffc17f30: 41 82 00 10 beq- ffc17f40 && (the_jnode->type == IMFS_LINEAR_FILE)) { ffc17f34: 81 3e 00 4c lwz r9,76(r30) ffc17f38: 2f 89 00 06 cmpwi cr7,r9,6 ffc17f3c: 41 9e 00 4c beq- cr7,ffc17f88 <== NEVER TAKEN 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) ffc17f40: 81 3e 00 50 lwz r9,80(r30) ffc17f44: 81 5e 00 54 lwz r10,84(r30) && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) ffc17f48: 70 0b 02 00 andi. r11,r0,512 ffc17f4c: 40 82 00 28 bne- ffc17f74 iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; ffc17f50: 91 3f 00 08 stw r9,8(r31) ffc17f54: 38 60 00 00 li r3,0 ffc17f58: 91 5f 00 0c stw r10,12(r31) return 0; } ffc17f5c: 80 01 00 14 lwz r0,20(r1) ffc17f60: 83 c1 00 08 lwz r30,8(r1) ffc17f64: 7c 08 03 a6 mtlr r0 ffc17f68: 83 e1 00 0c lwz r31,12(r1) ffc17f6c: 38 21 00 10 addi r1,r1,16 ffc17f70: 4e 80 00 20 blr <== ALWAYS TAKEN if ((count != 0) && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) iop->offset = the_jnode->info.file.size; ffc17f74: 91 3f 00 10 stw r9,16(r31) ffc17f78: 91 5f 00 14 stw r10,20(r31) ffc17f7c: 81 3e 00 50 lwz r9,80(r30) ffc17f80: 81 5e 00 54 lwz r10,84(r30) ffc17f84: 4b ff ff cc b ffc17f50 <== ALWAYS TAKEN /* * 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; ffc17f88: 81 1e 00 54 lwz r8,84(r30) <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; ffc17f8c: 39 20 00 05 li r9,5 <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; ffc17f90: 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; ffc17f94: 91 3e 00 4c stw r9,76(r30) <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) ffc17f98: 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; ffc17f9c: 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; ffc17fa0: 80 fe 00 58 lwz r7,88(r30) <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; ffc17fa4: 39 40 00 00 li r10,0 <== NOT EXECUTED ffc17fa8: 91 3e 00 50 stw r9,80(r30) <== NOT EXECUTED ffc17fac: 91 5e 00 54 stw r10,84(r30) <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; ffc17fb0: 90 1e 00 60 stw r0,96(r30) <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; ffc17fb4: 90 1e 00 5c stw r0,92(r30) <== NOT EXECUTED uint32_t count = the_jnode->info.linearfile.size; const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; ffc17fb8: 90 1e 00 58 stw r0,88(r30) <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) ffc17fbc: 40 9e 00 0c bne- cr7,ffc17fc8 <== NOT EXECUTED ffc17fc0: 80 03 00 18 lwz r0,24(r3) <== NOT EXECUTED ffc17fc4: 4b ff ff 84 b ffc17f48 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) ffc17fc8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc17fcc: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc17fd0: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc17fd4: 4b ff fb dd bl ffc17bb0 <== 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) ffc17fd8: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED ffc17fdc: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc17fe0: 41 be ff 7c beq- cr7,ffc17f5c <== NOT EXECUTED ffc17fe4: 80 1f 00 18 lwz r0,24(r31) <== NOT EXECUTED ffc17fe8: 4b ff ff 58 b ffc17f40 <== NOT EXECUTED ffc18388 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { ffc18388: 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 ); ffc1838c: 80 c3 00 14 lwz r6,20(r3) ffc18390: 80 a3 00 10 lwz r5,16(r3) ffc18394: 7c 87 23 78 mr r7,r4 ffc18398: 80 63 00 3c lwz r3,60(r3) ffc1839c: 4b ff fc 50 b ffc17fec <== ALWAYS TAKEN ffc17680 : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { ffc17680: 94 21 ff e0 stwu r1,-32(r1) ffc17684: 7c 08 02 a6 mflr r0 ffc17688: 90 01 00 24 stw r0,36(r1) ffc1768c: 93 e1 00 1c stw r31,28(r1) IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; ffc17690: 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 ) { ffc17694: 80 1f 00 08 lwz r0,8(r31) ffc17698: 2f 80 00 00 cmpwi cr7,r0,0 ffc1769c: 41 9e 00 14 beq- cr7,ffc176b0 <== NEVER TAKEN ffc176a0: 7f e3 fb 78 mr r3,r31 ffc176a4: 4b ff 3e 25 bl ffc0b4c8 <_Chain_Extract> <== ALWAYS TAKEN rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; ffc176a8: 38 00 00 00 li r0,0 ffc176ac: 90 1f 00 08 stw r0,8(r31) /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc176b0: a1 3f 00 34 lhz r9,52(r31) IMFS_update_ctime( the_jnode ); ffc176b4: 38 61 00 08 addi r3,r1,8 ffc176b8: 38 80 00 00 li r4,0 /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; ffc176bc: 38 09 ff ff addi r0,r9,-1 ffc176c0: b0 1f 00 34 sth r0,52(r31) IMFS_update_ctime( the_jnode ); ffc176c4: 4b fe e8 cd bl ffc05f90 <== ALWAYS TAKEN ffc176c8: 80 01 00 08 lwz r0,8(r1) return memfile_check_rmnod( the_jnode ); ffc176cc: 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 ); ffc176d0: 90 1f 00 48 stw r0,72(r31) return memfile_check_rmnod( the_jnode ); ffc176d4: 4b ff ff 31 bl ffc17604 <== ALWAYS TAKEN } ffc176d8: 80 01 00 24 lwz r0,36(r1) ffc176dc: 83 e1 00 1c lwz r31,28(r1) ffc176e0: 38 21 00 20 addi r1,r1,32 <== ALWAYS TAKEN ffc176e4: 7c 08 03 a6 mtlr r0 ffc176e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17eb0 : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc17eb0: 94 21 ff f0 stwu r1,-16(r1) ffc17eb4: 7c 08 02 a6 mflr r0 ffc17eb8: 7c a8 2b 78 mr r8,r5 ffc17ebc: 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 ); ffc17ec0: 7c 87 23 78 mr r7,r4 ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc17ec4: 93 c1 00 08 stw r30,8(r1) IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; ffc17ec8: 83 c3 00 3c lwz r30,60(r3) status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); ffc17ecc: 80 a3 00 10 lwz r5,16(r3) ffc17ed0: 80 c3 00 14 lwz r6,20(r3) ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { ffc17ed4: 93 e1 00 0c stw r31,12(r1) ffc17ed8: 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 ); ffc17edc: 7f c3 f3 78 mr r3,r30 ffc17ee0: 4b ff fc d1 bl ffc17bb0 <== ALWAYS TAKEN iop->size = the_jnode->info.file.size; return status; } ffc17ee4: 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; ffc17ee8: 81 3e 00 50 lwz r9,80(r30) return status; } ffc17eec: 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; ffc17ef0: 81 5e 00 54 lwz r10,84(r30) ffc17ef4: 91 3f 00 08 stw r9,8(r31) ffc17ef8: 91 5f 00 0c stw r10,12(r31) return status; } ffc17efc: 83 c1 00 08 lwz r30,8(r1) ffc17f00: 83 e1 00 0c lwz r31,12(r1) ffc17f04: 38 21 00 10 addi r1,r1,16 ffc17f08: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0cba0 : int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { return IMFS_initialize_support( ffc0cba0: 3c a0 ff c2 lis r5,-62 */ int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc0cba4: 94 21 ff f8 stwu r1,-8(r1) ffc0cba8: 7c 08 02 a6 mflr r0 return IMFS_initialize_support( ffc0cbac: 38 a5 f9 d4 addi r5,r5,-1580 ffc0cbb0: 3c 80 ff c2 lis r4,-62 ffc0cbb4: 38 84 f8 24 addi r4,r4,-2012 */ int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { ffc0cbb8: 90 01 00 0c stw r0,12(r1) return IMFS_initialize_support( ffc0cbbc: 7c a6 2b 78 mr r6,r5 ffc0cbc0: 48 00 0f 71 bl ffc0db30 <== ALWAYS TAKEN temp_mt_entry, &miniIMFS_ops, &rtems_filesystem_null_handlers, /* for memfiles */ &rtems_filesystem_null_handlers /* for directories */ ); } ffc0cbc4: 80 01 00 0c lwz r0,12(r1) ffc0cbc8: 38 21 00 08 addi r1,r1,8 ffc0cbcc: 7c 08 03 a6 mtlr r0 ffc0cbd0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0492c : int mkdir( const char *pathname, mode_t mode ) { ffc0492c: 94 21 ff f8 stwu r1,-8(r1) ffc04930: 7c 08 02 a6 mflr r0 return mknod( pathname, mode | S_IFDIR, 0LL); ffc04934: 60 84 40 00 ori r4,r4,16384 <== ALWAYS TAKEN ffc04938: 38 a0 00 00 li r5,0 <== ALWAYS TAKEN int mkdir( const char *pathname, mode_t mode ) { ffc0493c: 90 01 00 0c stw r0,12(r1) return mknod( pathname, mode | S_IFDIR, 0LL); ffc04940: 38 c0 00 00 li r6,0 ffc04944: 48 00 00 15 bl ffc04958 <== ALWAYS TAKEN } ffc04948: 80 01 00 0c lwz r0,12(r1) ffc0494c: 38 21 00 08 addi r1,r1,8 ffc04950: 7c 08 03 a6 mtlr r0 ffc04954: 4e 80 00 20 blr <== ALWAYS TAKEN ffc128e0 : int mkfifo( const char *path, mode_t mode ) { ffc128e0: 94 21 ff f8 stwu r1,-8(r1) ffc128e4: 7c 08 02 a6 mflr r0 return mknod( path, mode | S_IFIFO, 0LL ); ffc128e8: 60 84 10 00 ori r4,r4,4096 ffc128ec: 38 a0 00 00 li r5,0 int mkfifo( const char *path, mode_t mode ) { ffc128f0: 90 01 00 0c stw r0,12(r1) return mknod( path, mode | S_IFIFO, 0LL ); ffc128f4: 38 c0 00 00 li r6,0 ffc128f8: 4b ff 20 61 bl ffc04958 <== ALWAYS TAKEN } ffc128fc: 80 01 00 0c lwz r0,12(r1) ffc12900: 38 21 00 08 addi r1,r1,8 ffc12904: 7c 08 03 a6 mtlr r0 ffc12908: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04958 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { ffc04958: 94 21 ff c0 stwu r1,-64(r1) ffc0495c: 7c 08 02 a6 mflr r0 ffc04960: 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) ) ) ffc04964: 70 80 f0 00 andi. r0,r4,61440 int mknod( const char *pathname, mode_t mode, dev_t dev ) { ffc04968: 93 61 00 2c stw r27,44(r1) ffc0496c: 7c bb 2b 78 mr r27,r5 ffc04970: 93 81 00 30 stw r28,48(r1) <== ALWAYS TAKEN ffc04974: 7c dc 33 78 mr r28,r6 <== ALWAYS TAKEN ffc04978: 93 c1 00 38 stw r30,56(r1) ffc0497c: 7c 9e 23 78 mr r30,r4 ffc04980: 93 a1 00 34 stw r29,52(r1) ffc04984: 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) ) ) ffc04988: 41 82 01 80 beq- ffc04b08 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); ffc0498c: 88 03 00 00 lbz r0,0(r3) ffc04990: 2f 80 00 2f cmpwi cr7,r0,47 ffc04994: 41 9e 00 14 beq- cr7,ffc049a8 ffc04998: 2f 80 00 5c cmpwi cr7,r0,92 ffc0499c: 41 9e 00 0c beq- cr7,ffc049a8 <== NEVER TAKEN ffc049a0: 2f 80 00 00 cmpwi cr7,r0,0 ffc049a4: 40 9e 00 e8 bne- cr7,ffc04a8c <== ALWAYS TAKEN ffc049a8: 3d 20 00 00 lis r9,0 ffc049ac: 81 29 26 dc lwz r9,9948(r9) ffc049b0: 39 60 00 01 li r11,1 <== ALWAYS TAKEN ffc049b4: 80 09 00 24 lwz r0,36(r9) ffc049b8: 80 e9 00 18 lwz r7,24(r9) <== ALWAYS TAKEN ffc049bc: 81 09 00 1c lwz r8,28(r9) ffc049c0: 81 49 00 20 lwz r10,32(r9) ffc049c4: 90 01 00 18 stw r0,24(r1) ffc049c8: 90 e1 00 0c stw r7,12(r1) <== ALWAYS TAKEN ffc049cc: 91 01 00 10 stw r8,16(r1) <== ALWAYS TAKEN ffc049d0: 91 41 00 14 stw r10,20(r1) ffc049d4: 80 09 00 28 lwz r0,40(r9) <== ALWAYS TAKEN if ( !temp_loc.ops->evalformake_h ) { ffc049d8: 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 ); ffc049dc: 90 01 00 1c stw r0,28(r1) <== ALWAYS TAKEN if ( !temp_loc.ops->evalformake_h ) { ffc049e0: 80 09 00 04 lwz r0,4(r9) ffc049e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc049e8: 41 9e 00 e8 beq- cr7,ffc04ad0 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( ffc049ec: 3b e1 00 0c addi r31,r1,12 <== ALWAYS TAKEN ffc049f0: 7c 09 03 a6 mtctr r0 ffc049f4: 7c 63 5a 14 add r3,r3,r11 ffc049f8: 7f e4 fb 78 mr r4,r31 ffc049fc: 38 a1 00 08 addi r5,r1,8 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) ffc04a00: 3b a0 ff ff li r29,-1 if ( !temp_loc.ops->evalformake_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( ffc04a04: 4e 80 04 21 bctrl <== ALWAYS TAKEN &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) ffc04a08: 2f 83 00 00 cmpwi cr7,r3,0 ffc04a0c: 40 9e 00 58 bne- cr7,ffc04a64 return -1; if ( !temp_loc.ops->mknod_h ) { ffc04a10: 81 21 00 18 lwz r9,24(r1) <== ALWAYS TAKEN ffc04a14: 80 09 00 14 lwz r0,20(r9) <== ALWAYS TAKEN ffc04a18: 2f 80 00 00 cmpwi cr7,r0,0 ffc04a1c: 41 9e 01 00 beq- cr7,ffc04b1c <== NEVER TAKEN 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 ); ffc04a20: 7f c4 f3 78 mr r4,r30 <== ALWAYS TAKEN ffc04a24: 80 61 00 08 lwz r3,8(r1) <== ALWAYS TAKEN ffc04a28: 7f 65 db 78 mr r5,r27 ffc04a2c: 7c 09 03 a6 mtctr r0 ffc04a30: 7f 86 e3 78 mr r6,r28 ffc04a34: 7f e7 fb 78 mr r7,r31 ffc04a38: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &temp_loc ); ffc04a3c: 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 ); ffc04a40: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &temp_loc ); ffc04a44: 2f 89 00 00 cmpwi cr7,r9,0 ffc04a48: 41 9e 00 1c beq- cr7,ffc04a64 <== NEVER TAKEN ffc04a4c: 80 09 00 1c lwz r0,28(r9) ffc04a50: 2f 80 00 00 cmpwi cr7,r0,0 ffc04a54: 41 9e 00 10 beq- cr7,ffc04a64 ffc04a58: 7f e3 fb 78 mr r3,r31 ffc04a5c: 7c 09 03 a6 mtctr r0 ffc04a60: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc04a64: 80 01 00 44 lwz r0,68(r1) ffc04a68: 7f a3 eb 78 mr r3,r29 ffc04a6c: 83 61 00 2c lwz r27,44(r1) ffc04a70: 7c 08 03 a6 mtlr r0 ffc04a74: 83 81 00 30 lwz r28,48(r1) ffc04a78: 83 a1 00 34 lwz r29,52(r1) ffc04a7c: 83 c1 00 38 lwz r30,56(r1) ffc04a80: 83 e1 00 3c lwz r31,60(r1) <== ALWAYS TAKEN ffc04a84: 38 21 00 40 addi r1,r1,64 <== ALWAYS TAKEN ffc04a88: 4e 80 00 20 blr <== ALWAYS TAKEN 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 ); ffc04a8c: 3d 20 00 00 lis r9,0 ffc04a90: 81 29 26 dc lwz r9,9948(r9) ffc04a94: 39 60 00 00 li r11,0 ffc04a98: 80 09 00 10 lwz r0,16(r9) ffc04a9c: 80 e9 00 04 lwz r7,4(r9) ffc04aa0: 81 09 00 08 lwz r8,8(r9) ffc04aa4: 81 49 00 0c lwz r10,12(r9) ffc04aa8: 90 01 00 18 stw r0,24(r1) ffc04aac: 90 e1 00 0c stw r7,12(r1) ffc04ab0: 91 01 00 10 stw r8,16(r1) ffc04ab4: 91 41 00 14 stw r10,20(r1) ffc04ab8: 80 09 00 14 lwz r0,20(r9) if ( !temp_loc.ops->evalformake_h ) { ffc04abc: 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 ); ffc04ac0: 90 01 00 1c stw r0,28(r1) if ( !temp_loc.ops->evalformake_h ) { ffc04ac4: 80 09 00 04 lwz r0,4(r9) ffc04ac8: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc04acc: 40 9e ff 20 bne+ cr7,ffc049ec <== ALWAYS TAKEN if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc04ad0: 48 00 e8 a9 bl ffc13378 <__errno> <== NOT EXECUTED ffc04ad4: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc04ad8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04adc: 3b a0 ff ff li r29,-1 <== NOT EXECUTED result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); rtems_filesystem_freenode( &temp_loc ); return result; } ffc04ae0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc04ae4: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc04ae8: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc04aec: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04af0: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc04af4: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc04af8: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc04afc: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc04b00: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc04b04: 4e 80 00 20 blr <== NOT EXECUTED int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc04b08: 48 00 e8 71 bl ffc13378 <__errno> <== NOT EXECUTED ffc04b0c: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc04b10: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04b14: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc04b18: 4b ff ff 4c b ffc04a64 <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); ffc04b1c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc04b20: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04b24: 41 be ff ac beq- cr7,ffc04ad0 <== NOT EXECUTED ffc04b28: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04b2c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04b30: 4e 80 04 21 bctrl <== NOT EXECUTED ffc04b34: 4b ff ff 9c b ffc04ad0 <== NOT EXECUTED ffc04b5c : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { ffc04b5c: 94 21 ff b8 stwu r1,-72(r1) ffc04b60: 7d 80 00 26 mfcr r12 ffc04b64: 7c 08 02 a6 mflr r0 ffc04b68: 93 a1 00 3c stw r29,60(r1) /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { ffc04b6c: 7c 9d 23 79 mr. r29,r4 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { ffc04b70: 93 21 00 2c stw r25,44(r1) <== ALWAYS TAKEN ffc04b74: 7c d9 33 78 mr r25,r6 ffc04b78: 93 41 00 30 stw r26,48(r1) ffc04b7c: 7c fa 3b 78 mr r26,r7 ffc04b80: 93 81 00 38 stw r28,56(r1) ffc04b84: 7c 7c 1b 78 mr r28,r3 ffc04b88: 93 c1 00 40 stw r30,64(r1) ffc04b8c: 7c be 2b 78 mr r30,r5 ffc04b90: 90 01 00 4c stw r0,76(r1) ffc04b94: 93 61 00 34 stw r27,52(r1) ffc04b98: 93 e1 00 44 stw r31,68(r1) <== ALWAYS TAKEN ffc04b9c: 91 81 00 28 stw r12,40(r1) /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { ffc04ba0: 41 82 02 9c beq- ffc04e3c /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && ffc04ba4: 2b 85 00 01 cmplwi cr7,r5,1 ffc04ba8: 41 9d 02 94 bgt- cr7,ffc04e3c errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { ffc04bac: 80 1d 00 24 lwz r0,36(r29) ffc04bb0: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc04bb4: 41 9e 02 b4 beq- cr7,ffc04e68 <== NEVER TAKEN /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) ffc04bb8: 2e 06 00 00 cmpwi cr4,r6,0 ffc04bbc: 41 92 02 24 beq- cr4,ffc04de0 <== ALWAYS TAKEN size += strlen( device ) + 1; ffc04bc0: 7c c3 33 78 mr r3,r6 <== NOT EXECUTED ffc04bc4: 48 00 fa b1 bl ffc14674 <== NOT EXECUTED ffc04bc8: 38 63 00 6d addi r3,r3,109 <== NOT EXECUTED temp_mt_entry = malloc( size ); ffc04bcc: 4b ff fc 1d bl ffc047e8 <== ALWAYS TAKEN if ( !temp_mt_entry ) { ffc04bd0: 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 ); ffc04bd4: 7c 7f 1b 78 mr r31,r3 ffc04bd8: 7c 7b 1b 78 mr r27,r3 if ( !temp_mt_entry ) { ffc04bdc: 41 9e 02 ac beq- cr7,ffc04e88 <== NEVER TAKEN errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; ffc04be0: 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; ffc04be4: 90 7f 00 2c stw r3,44(r31) temp_mt_entry->options = options; if ( device ) { ffc04be8: 41 92 01 f0 beq- cr4,ffc04dd8 <== ALWAYS TAKEN temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); ffc04bec: 38 03 00 6c addi r0,r3,108 <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = ffc04bf0: 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 ); ffc04bf4: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED ffc04bf8: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc04bfc: 48 00 fa 01 bl ffc145fc <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { ffc04c00: 2f 9a 00 00 cmpwi cr7,r26,0 <== ALWAYS TAKEN ffc04c04: 41 9e 01 b0 beq- cr7,ffc04db4 if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) ffc04c08: 7f 43 d3 78 mr r3,r26 ffc04c0c: 48 00 fa 69 bl ffc14674 <== ALWAYS TAKEN * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( ffc04c10: 3b c1 00 08 addi r30,r1,8 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) ffc04c14: 7c 64 1b 78 mr r4,r3 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( ffc04c18: 38 a0 00 07 li r5,7 ffc04c1c: 7f 43 d3 78 mr r3,r26 ffc04c20: 7f c6 f3 78 mr r6,r30 ffc04c24: 38 e0 00 01 li r7,1 ffc04c28: 4b ff f7 39 bl ffc04360 <== ALWAYS TAKEN ffc04c2c: 2f 83 ff ff cmpwi cr7,r3,-1 ffc04c30: 41 9e 02 48 beq- cr7,ffc04e78 <== NEVER TAKEN /* * Test for node_type_h */ if (!loc.ops->node_type_h) { ffc04c34: 81 21 00 14 lwz r9,20(r1) ffc04c38: 80 09 00 10 lwz r0,16(r9) ffc04c3c: 2f 80 00 00 cmpwi cr7,r0,0 ffc04c40: 41 9e 01 08 beq- cr7,ffc04d48 <== NEVER TAKEN /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { ffc04c44: 7f c3 f3 78 mr r3,r30 ffc04c48: 7c 09 03 a6 mtctr r0 ffc04c4c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04c50: 2f 83 00 01 cmpwi cr7,r3,1 ffc04c54: 40 9e 02 04 bne- cr7,ffc04e58 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc04c58: 3d 40 00 00 lis r10,0 ffc04c5c: 81 2a 2b 30 lwz r9,11056(r10) ffc04c60: 39 4a 2b 30 addi r10,r10,11056 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; ffc04c64: 39 4a 00 04 addi r10,r10,4 ffc04c68: 7f 89 50 00 cmpw cr7,r9,r10 ffc04c6c: 41 9e 01 e4 beq- cr7,ffc04e50 <== NEVER TAKEN !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 ) ffc04c70: 81 61 00 08 lwz r11,8(r1) <== ALWAYS TAKEN ffc04c74: 80 09 00 1c lwz r0,28(r9) ffc04c78: 7f 80 58 00 cmpw cr7,r0,r11 ffc04c7c: 40 be 00 14 bne+ cr7,ffc04c90 <== ALWAYS TAKEN ffc04c80: 48 00 01 24 b ffc04da4 <== NOT EXECUTED ffc04c84: 80 09 00 1c lwz r0,28(r9) ffc04c88: 7f 80 58 00 cmpw cr7,r0,r11 ffc04c8c: 41 9e 01 18 beq- cr7,ffc04da4 * 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 ) { ffc04c90: 81 29 00 00 lwz r9,0(r9) /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc04c94: 7f 89 50 00 cmpw cr7,r9,r10 ffc04c98: 40 9e ff ec bne+ cr7,ffc04c84 * 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; ffc04c9c: 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; ffc04ca0: 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 ){ ffc04ca4: 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; ffc04ca8: 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 ){ ffc04cac: 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; ffc04cb0: 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; ffc04cb4: 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; ffc04cb8: 81 61 00 18 lwz r11,24(r1) ffc04cbc: 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 ){ ffc04cc0: 41 9e 00 88 beq- cr7,ffc04d48 <== NEVER TAKEN errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { ffc04cc4: 7f e3 fb 78 mr r3,r31 ffc04cc8: 7c 09 03 a6 mtctr r0 ffc04ccc: 7f db f3 78 mr r27,r30 ffc04cd0: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04cd4: 2f 83 00 00 cmpwi cr7,r3,0 ffc04cd8: 40 9e 00 7c bne- cr7,ffc04d54 <== NEVER TAKEN temp_mt_entry->mt_point_node.handlers = NULL; temp_mt_entry->mt_point_node.ops = NULL; temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { ffc04cdc: 80 1d 00 24 lwz r0,36(r29) ffc04ce0: 7f e3 fb 78 mr r3,r31 ffc04ce4: 7c 09 03 a6 mtctr r0 ffc04ce8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04cec: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc04cf0: 40 9e 00 f8 bne- cr7,ffc04de8 <== NEVER TAKEN RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); ffc04cf4: 3c 60 00 00 lis r3,0 ffc04cf8: 38 63 2b 30 addi r3,r3,11056 ffc04cfc: 7f e4 fb 78 mr r4,r31 ffc04d00: 48 00 46 65 bl ffc09364 <_Chain_Append> <== ALWAYS TAKEN */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) ffc04d04: 2f 9c 00 00 cmpwi cr7,r28,0 <== ALWAYS TAKEN ffc04d08: 38 60 00 00 li r3,0 ffc04d0c: 41 9e 00 08 beq- cr7,ffc04d14 <== NEVER TAKEN *mt_entry = temp_mt_entry; ffc04d10: 93 fc 00 00 stw r31,0(r28) <== ALWAYS TAKEN if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } ffc04d14: 80 01 00 4c lwz r0,76(r1) ffc04d18: 81 81 00 28 lwz r12,40(r1) ffc04d1c: 7c 08 03 a6 mtlr r0 ffc04d20: 83 21 00 2c lwz r25,44(r1) ffc04d24: 83 41 00 30 lwz r26,48(r1) ffc04d28: 7d 80 81 20 mtcrf 8,r12 <== ALWAYS TAKEN ffc04d2c: 83 61 00 34 lwz r27,52(r1) <== ALWAYS TAKEN ffc04d30: 83 81 00 38 lwz r28,56(r1) ffc04d34: 83 a1 00 3c lwz r29,60(r1) ffc04d38: 83 c1 00 40 lwz r30,64(r1) <== ALWAYS TAKEN ffc04d3c: 83 e1 00 44 lwz r31,68(r1) ffc04d40: 38 21 00 48 addi r1,r1,72 ffc04d44: 4e 80 00 20 blr <== 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; ffc04d48: 48 00 e6 31 bl ffc13378 <__errno> <== NOT EXECUTED ffc04d4c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc04d50: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); ffc04d54: 7f e3 fb 78 mr r3,r31 ffc04d58: 4b ff f7 11 bl ffc04468 <== ALWAYS TAKEN ffc04d5c: 7f db f3 78 mr r27,r30 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); ffc04d60: 81 3b 00 0c lwz r9,12(r27) ffc04d64: 2f 89 00 00 cmpwi cr7,r9,0 ffc04d68: 40 9e 00 b4 bne- cr7,ffc04e1c <== ALWAYS TAKEN ffc04d6c: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; } ffc04d70: 80 01 00 4c lwz r0,76(r1) <== NOT EXECUTED ffc04d74: 81 81 00 28 lwz r12,40(r1) <== NOT EXECUTED ffc04d78: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04d7c: 83 21 00 2c lwz r25,44(r1) <== NOT EXECUTED ffc04d80: 83 41 00 30 lwz r26,48(r1) <== NOT EXECUTED ffc04d84: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc04d88: 83 61 00 34 lwz r27,52(r1) <== NOT EXECUTED ffc04d8c: 83 81 00 38 lwz r28,56(r1) <== NOT EXECUTED ffc04d90: 83 a1 00 3c lwz r29,60(r1) <== NOT EXECUTED ffc04d94: 83 c1 00 40 lwz r30,64(r1) <== NOT EXECUTED ffc04d98: 83 e1 00 44 lwz r31,68(r1) <== NOT EXECUTED ffc04d9c: 38 21 00 48 addi r1,r1,72 <== NOT EXECUTED ffc04da0: 4e 80 00 20 blr <== NOT EXECUTED /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; ffc04da4: 48 00 e5 d5 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc04da8: 38 00 00 10 li r0,16 ffc04dac: 90 03 00 00 stw r0,0(r3) goto cleanup_and_bail; ffc04db0: 4b ff ff a4 b ffc04d54 <== ALWAYS TAKEN 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; ffc04db4: 93 5f 00 18 stw r26,24(r31) ffc04db8: 3b 60 00 00 li r27,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; ffc04dbc: 93 5f 00 1c stw r26,28(r31) temp_mt_entry->mt_fs_root.handlers = NULL; ffc04dc0: 93 5f 00 24 stw r26,36(r31) temp_mt_entry->mt_fs_root.ops = NULL; ffc04dc4: 93 5f 00 28 stw r26,40(r31) temp_mt_entry->mt_point_node.node_access = NULL; ffc04dc8: 93 5f 00 08 stw r26,8(r31) temp_mt_entry->mt_point_node.handlers = NULL; ffc04dcc: 93 5f 00 10 stw r26,16(r31) temp_mt_entry->mt_point_node.ops = NULL; ffc04dd0: 93 5f 00 14 stw r26,20(r31) ffc04dd4: 4b ff ff 08 b ffc04cdc <== ALWAYS TAKEN if ( device ) { temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); } else temp_mt_entry->dev = 0; ffc04dd8: 93 23 00 68 stw r25,104(r3) ffc04ddc: 4b ff fe 24 b ffc04c00 <== ALWAYS TAKEN /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) ffc04de0: 38 60 00 6c li r3,108 ffc04de4: 4b ff fd e8 b ffc04bcc <== ALWAYS TAKEN temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { ffc04de8: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc04dec: 80 09 00 28 lwz r0,40(r9) <== NOT EXECUTED ffc04df0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04df4: 41 9e 00 10 beq- cr7,ffc04e04 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); ffc04df8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04dfc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04e00: 4e 80 04 21 bctrl <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); ffc04e04: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04e08: 4b ff f6 61 bl ffc04468 <== NOT EXECUTED if ( loc_to_free ) ffc04e0c: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc04e10: 40 be ff 50 bne- cr7,ffc04d60 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); ffc04e14: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc04e18: 4b ff ff 58 b ffc04d70 <== NOT EXECUTED ffc04e1c: 80 09 00 1c lwz r0,28(r9) ffc04e20: 2f 80 00 00 cmpwi cr7,r0,0 ffc04e24: 41 9e ff 48 beq+ cr7,ffc04d6c <== NEVER TAKEN ffc04e28: 7f 63 db 78 mr r3,r27 ffc04e2c: 7c 09 03 a6 mtctr r0 ffc04e30: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04e34: 38 60 ff ff li r3,-1 ffc04e38: 4b ff fe dc b ffc04d14 <== ALWAYS TAKEN * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; ffc04e3c: 48 00 e5 3d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc04e40: 38 00 00 16 li r0,22 ffc04e44: 90 03 00 00 stw r0,0(r3) ffc04e48: 38 60 ff ff li r3,-1 return -1; ffc04e4c: 4b ff fe c8 b ffc04d14 <== ALWAYS TAKEN cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); ffc04e50: 81 61 00 08 lwz r11,8(r1) <== NOT EXECUTED ffc04e54: 4b ff fe 48 b ffc04c9c <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; ffc04e58: 48 00 e5 21 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc04e5c: 38 00 00 14 li r0,20 ffc04e60: 90 03 00 00 stw r0,0(r3) goto cleanup_and_bail; ffc04e64: 4b ff fe f0 b ffc04d54 <== ALWAYS TAKEN return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; ffc04e68: 48 00 e5 11 bl ffc13378 <__errno> <== NOT EXECUTED ffc04e6c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc04e70: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04e74: 3b 60 00 00 li r27,0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); ffc04e78: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc04e7c: 4b ff f5 ed bl ffc04468 <== NOT EXECUTED ffc04e80: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc04e84: 4b ff fe 90 b ffc04d14 <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; ffc04e88: 48 00 e4 f1 bl ffc13378 <__errno> <== NOT EXECUTED ffc04e8c: 38 00 00 0c li r0,12 <== NOT EXECUTED ffc04e90: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04e94: 38 60 ff ff li r3,-1 <== NOT EXECUTED return -1; ffc04e98: 4b ff fe 7c b ffc04d14 <== NOT EXECUTED ffc085b0 : const void *addr __attribute__((unused)), size_t len __attribute__((unused)), int prot __attribute__((unused)) ) { return 0; } ffc085b0: 38 60 00 00 li r3,0 ffc085b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dd28 : */ int mq_close( mqd_t mqdes ) { ffc0dd28: 94 21 ff e0 stwu r1,-32(r1) ffc0dd2c: 7c 08 02 a6 mflr r0 ffc0dd30: 7c 64 1b 78 mr r4,r3 ffc0dd34: 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( ffc0dd38: 3f e0 00 00 lis r31,0 ffc0dd3c: 3b ff 36 44 addi r31,r31,13892 ffc0dd40: 7f e3 fb 78 mr r3,r31 ffc0dd44: 90 01 00 24 stw r0,36(r1) ffc0dd48: 38 a1 00 08 addi r5,r1,8 ffc0dd4c: 93 c1 00 18 stw r30,24(r1) ffc0dd50: 48 00 45 f5 bl ffc12344 <_Objects_Get> <== ALWAYS TAKEN ffc0dd54: 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 ) { ffc0dd58: 80 01 00 08 lwz r0,8(r1) ffc0dd5c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dd60: 40 9e 00 54 bne- cr7,ffc0ddb4 * 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; ffc0dd64: 81 23 00 10 lwz r9,16(r3) the_mq->open_count -= 1; ffc0dd68: 81 69 00 18 lwz r11,24(r9) _POSIX_Message_queue_Delete( the_mq ); ffc0dd6c: 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; ffc0dd70: 38 0b ff ff addi r0,r11,-1 ffc0dd74: 90 09 00 18 stw r0,24(r9) _POSIX_Message_queue_Delete( the_mq ); ffc0dd78: 48 00 00 51 bl ffc0ddc8 <_POSIX_Message_queue_Delete> <== ALWAYS TAKEN /* * Now close this file descriptor. */ _Objects_Close( ffc0dd7c: 7f e3 fb 78 mr r3,r31 ffc0dd80: 7f c4 f3 78 mr r4,r30 ffc0dd84: 48 00 40 89 bl ffc11e0c <_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 ); ffc0dd88: 7f e3 fb 78 mr r3,r31 ffc0dd8c: 7f c4 f3 78 mr r4,r30 ffc0dd90: 48 00 43 d5 bl ffc12164 <_Objects_Free> <== ALWAYS TAKEN &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object ); _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); ffc0dd94: 48 00 51 fd bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0dd98: 38 60 00 00 li r3,0 /* * OBJECTS_REMOTE: * OBJECTS_ERROR: */ rtems_set_errno_and_return_minus_one( EBADF ); } ffc0dd9c: 80 01 00 24 lwz r0,36(r1) ffc0dda0: 83 c1 00 18 lwz r30,24(r1) ffc0dda4: 7c 08 03 a6 mtlr r0 ffc0dda8: 83 e1 00 1c lwz r31,28(r1) ffc0ddac: 38 21 00 20 addi r1,r1,32 ffc0ddb0: 4e 80 00 20 blr <== ALWAYS TAKEN /* * OBJECTS_REMOTE: * OBJECTS_ERROR: */ rtems_set_errno_and_return_minus_one( EBADF ); ffc0ddb4: 48 00 d8 1d bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0ddb8: 38 00 00 09 li r0,9 ffc0ddbc: 90 03 00 00 stw r0,0(r3) ffc0ddc0: 38 60 ff ff li r3,-1 ffc0ddc4: 4b ff ff d8 b ffc0dd9c <== ALWAYS TAKEN ffc0de58 : int mq_getattr( mqd_t mqdes, struct mq_attr *mqstat ) { ffc0de58: 94 21 ff e0 stwu r1,-32(r1) ffc0de5c: 7c 08 02 a6 mflr r0 ffc0de60: 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 ) ffc0de64: 7c 9f 23 79 mr. r31,r4 int mq_getattr( mqd_t mqdes, struct mq_attr *mqstat ) { ffc0de68: 7c 64 1b 78 mr r4,r3 ffc0de6c: 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 ) ffc0de70: 41 82 00 74 beq- ffc0dee4 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( ffc0de74: 3c 60 00 00 lis r3,0 ffc0de78: 38 63 36 44 addi r3,r3,13892 ffc0de7c: 38 a1 00 08 addi r5,r1,8 ffc0de80: 48 00 44 c5 bl ffc12344 <_Objects_Get> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { ffc0de84: 80 01 00 08 lwz r0,8(r1) ffc0de88: 2f 80 00 00 cmpwi cr7,r0,0 ffc0de8c: 40 9e 00 44 bne- cr7,ffc0ded0 case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; ffc0de90: 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; ffc0de94: 81 63 00 14 lwz r11,20(r3) mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size; ffc0de98: 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; ffc0de9c: 91 7f 00 00 stw r11,0(r31) mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size; ffc0dea0: 90 1f 00 08 stw r0,8(r31) mqstat->mq_maxmsg = the_mq->Message_queue.maximum_pending_messages; ffc0dea4: 80 09 00 60 lwz r0,96(r9) ffc0dea8: 90 1f 00 04 stw r0,4(r31) mqstat->mq_curmsgs = the_mq->Message_queue.number_of_pending_messages; ffc0deac: 80 09 00 64 lwz r0,100(r9) ffc0deb0: 90 1f 00 0c stw r0,12(r31) _Thread_Enable_dispatch(); ffc0deb4: 48 00 50 dd bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0deb8: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } ffc0debc: 80 01 00 24 lwz r0,36(r1) ffc0dec0: 83 e1 00 1c lwz r31,28(r1) ffc0dec4: 38 21 00 20 addi r1,r1,32 ffc0dec8: 7c 08 03 a6 mtlr r0 ffc0decc: 4e 80 00 20 blr <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0ded0: 48 00 d7 01 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0ded4: 38 00 00 09 li r0,9 ffc0ded8: 90 03 00 00 stw r0,0(r3) ffc0dedc: 38 60 ff ff li r3,-1 ffc0dee0: 4b ff ff dc b ffc0debc <== ALWAYS TAKEN POSIX_Message_queue_Control_fd *the_mq_fd; Objects_Locations location; CORE_message_queue_Attributes *the_mq_attr; if ( !mqstat ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0dee4: 48 00 d6 ed bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0dee8: 38 00 00 16 li r0,22 ffc0deec: 90 03 00 00 stw r0,0(r3) ffc0def0: 38 60 ff ff li r3,-1 ffc0def4: 4b ff ff c8 b ffc0debc <== ALWAYS TAKEN ffc0def8 : int mq_notify( mqd_t mqdes, const struct sigevent *notification ) { ffc0def8: 94 21 ff e0 stwu r1,-32(r1) ffc0defc: 7c 08 02 a6 mflr r0 ffc0df00: 90 01 00 24 stw r0,36(r1) ffc0df04: 7c 60 1b 78 mr r0,r3 ffc0df08: 3c 60 00 00 lis r3,0 ffc0df0c: 93 e1 00 1c stw r31,28(r1) ffc0df10: 38 63 36 44 addi r3,r3,13892 ffc0df14: 7c 9f 23 78 mr r31,r4 ffc0df18: 38 a1 00 08 addi r5,r1,8 ffc0df1c: 7c 04 03 78 mr r4,r0 ffc0df20: 48 00 44 25 bl ffc12344 <_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 ) { ffc0df24: 80 01 00 08 lwz r0,8(r1) ffc0df28: 2f 80 00 00 cmpwi cr7,r0,0 ffc0df2c: 41 9e 00 28 beq- cr7,ffc0df54 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0df30: 48 00 d6 a1 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0df34: 38 00 00 09 li r0,9 ffc0df38: 90 03 00 00 stw r0,0(r3) ffc0df3c: 38 60 ff ff li r3,-1 } ffc0df40: 80 01 00 24 lwz r0,36(r1) ffc0df44: 83 e1 00 1c lwz r31,28(r1) ffc0df48: 38 21 00 20 addi r1,r1,32 ffc0df4c: 7c 08 03 a6 mtlr r0 ffc0df50: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( location ) { case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; if ( notification ) { ffc0df54: 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; ffc0df58: 81 23 00 10 lwz r9,16(r3) if ( notification ) { ffc0df5c: 41 9e 00 68 beq- cr7,ffc0dfc4 if ( _CORE_message_queue_Is_notify_enabled( &the_mq->Message_queue ) ) { ffc0df60: 80 09 00 7c lwz r0,124(r9) ffc0df64: 2f 80 00 00 cmpwi cr7,r0,0 ffc0df68: 40 9e 00 68 bne- cr7,ffc0dfd0 CORE_message_queue_Notify_Handler the_handler, void *the_argument ) { the_message_queue->notify_handler = the_handler; the_message_queue->notify_argument = the_argument; ffc0df6c: 90 09 00 80 stw r0,128(r9) rtems_set_errno_and_return_minus_one( EBUSY ); } _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); the_mq->notification = *notification; ffc0df70: 81 7f 00 08 lwz r11,8(r31) ffc0df74: 80 1f 00 0c lwz r0,12(r31) ffc0df78: 81 1f 00 00 lwz r8,0(r31) ffc0df7c: 81 5f 00 04 lwz r10,4(r31) ffc0df80: 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; ffc0df84: 3d 60 ff c1 lis r11,-63 ffc0df88: 39 6b df e8 addi r11,r11,-8216 ffc0df8c: 91 09 00 90 stw r8,144(r9) ffc0df90: 91 49 00 94 stw r10,148(r9) ffc0df94: 90 09 00 9c stw r0,156(r9) ffc0df98: 80 1f 00 10 lwz r0,16(r31) ffc0df9c: 91 69 00 7c stw r11,124(r9) ffc0dfa0: 90 09 00 a0 stw r0,160(r9) the_message_queue->notify_argument = the_argument; ffc0dfa4: 91 29 00 80 stw r9,128(r9) _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); } _Thread_Enable_dispatch(); ffc0dfa8: 48 00 4f e9 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } ffc0dfac: 80 01 00 24 lwz r0,36(r1) _CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL ); } _Thread_Enable_dispatch(); ffc0dfb0: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } ffc0dfb4: 83 e1 00 1c lwz r31,28(r1) ffc0dfb8: 7c 08 03 a6 mtlr r0 ffc0dfbc: 38 21 00 20 addi r1,r1,32 ffc0dfc0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dfc4: 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; ffc0dfc8: 93 e9 00 7c stw r31,124(r9) ffc0dfcc: 4b ff ff dc b ffc0dfa8 <== ALWAYS TAKEN case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; if ( notification ) { if ( _CORE_message_queue_Is_notify_enabled( &the_mq->Message_queue ) ) { _Thread_Enable_dispatch(); ffc0dfd0: 48 00 4f c1 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBUSY ); ffc0dfd4: 48 00 d5 fd bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0dfd8: 38 00 00 10 li r0,16 ffc0dfdc: 90 03 00 00 stw r0,0(r3) ffc0dfe0: 38 60 ff ff li r3,-1 ffc0dfe4: 4b ff ff 5c b ffc0df40 <== ALWAYS TAKEN ffc0e028 : rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0e028: 3d 20 00 00 lis r9,0 int oflag, ... /* mode_t mode, */ /* struct mq_attr attr */ ) { ffc0e02c: 94 21 ff b0 stwu r1,-80(r1) ffc0e030: 7c 08 02 a6 mflr r0 ffc0e034: 81 69 29 f8 lwz r11,10744(r9) ffc0e038: 7d 80 00 26 mfcr r12 ffc0e03c: 93 61 00 3c stw r27,60(r1) ffc0e040: 7c 9b 23 78 mr r27,r4 ffc0e044: 39 6b 00 01 addi r11,r11,1 ffc0e048: 93 a1 00 44 stw r29,68(r1) ffc0e04c: 7c 7d 1b 78 mr r29,r3 ffc0e050: 90 01 00 54 stw r0,84(r1) ffc0e054: 93 41 00 38 stw r26,56(r1) ffc0e058: 93 81 00 40 stw r28,64(r1) ffc0e05c: 93 c1 00 48 stw r30,72(r1) ffc0e060: 93 e1 00 4c stw r31,76(r1) ffc0e064: 91 81 00 34 stw r12,52(r1) ffc0e068: 90 a1 00 28 stw r5,40(r1) ffc0e06c: 91 69 29 f8 stw r11,10744(r9) ffc0e070: 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 ) { ffc0e074: 54 80 bf fe rlwinm r0,r4,23,31,31 ffc0e078: 2e 00 00 00 cmpwi cr4,r0,0 ffc0e07c: 40 92 01 10 bne- cr4,ffc0e18c */ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd * _POSIX_Message_queue_Allocate_fd( void ) { return (POSIX_Message_queue_Control_fd *) ffc0e080: 3f c0 00 00 lis r30,0 ffc0e084: 3b de 36 44 addi r30,r30,13892 ffc0e088: 7f c3 f3 78 mr r3,r30 ffc0e08c: 48 00 3c b9 bl ffc11d44 <_Objects_Allocate> <== ALWAYS TAKEN ffc0e090: 3b 40 00 00 li r26,0 attr = (struct mq_attr *) va_arg( arg, struct mq_attr * ); va_end(arg); } the_mq_fd = _POSIX_Message_queue_Allocate_fd(); if ( !the_mq_fd ) { ffc0e094: 7c 7f 1b 79 mr. r31,r3 ffc0e098: 41 82 01 28 beq- ffc0e1c0 <== NEVER TAKEN _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( ENFILE ); } the_mq_fd->oflag = oflag; ffc0e09c: 93 7f 00 14 stw r27,20(r31) status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id ); ffc0e0a0: 7f a3 eb 78 mr r3,r29 ffc0e0a4: 38 81 00 08 addi r4,r1,8 ffc0e0a8: 48 00 89 85 bl ffc16a2c <_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 ) { ffc0e0ac: 7c 7c 1b 79 mr. r28,r3 ffc0e0b0: 40 82 00 88 bne- ffc0e138 } else { /* name -> ID translation succeeded */ /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { ffc0e0b4: 73 7b 0a 00 andi. r27,r27,2560 ffc0e0b8: 2f 9b 0a 00 cmpwi cr7,r27,2560 ffc0e0bc: 41 9e 01 48 beq- cr7,ffc0e204 RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (POSIX_Message_queue_Control *) ffc0e0c0: 80 81 00 08 lwz r4,8(r1) ffc0e0c4: 3c 60 00 00 lis r3,0 ffc0e0c8: 38 a1 00 10 addi r5,r1,16 ffc0e0cc: 38 63 34 b8 addi r3,r3,13496 ffc0e0d0: 48 00 42 75 bl ffc12344 <_Objects_Get> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0e0d4: 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; ffc0e0d8: 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 ); ffc0e0dc: 90 61 00 0c stw r3,12(r1) the_mq->open_count += 1; ffc0e0e0: 38 0b 00 01 addi r0,r11,1 ffc0e0e4: 90 03 00 18 stw r0,24(r3) ffc0e0e8: a0 1f 00 0a lhz r0,10(r31) the_mq_fd->Queue = the_mq; ffc0e0ec: 90 7f 00 10 stw r3,16(r31) ffc0e0f0: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0e0f4: 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; ffc0e0f8: 93 9f 00 0c stw r28,12(r31) _Objects_Open_string( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object, NULL ); _Thread_Enable_dispatch(); ffc0e0fc: 48 00 4e 95 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0e100: 48 00 4e 91 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return (mqd_t)the_mq_fd->Object.id; ffc0e104: 80 7f 00 08 lwz r3,8(r31) ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } ffc0e108: 80 01 00 54 lwz r0,84(r1) ffc0e10c: 81 81 00 34 lwz r12,52(r1) ffc0e110: 7c 08 03 a6 mtlr r0 ffc0e114: 83 41 00 38 lwz r26,56(r1) ffc0e118: 83 61 00 3c lwz r27,60(r1) ffc0e11c: 7d 80 81 20 mtcrf 8,r12 ffc0e120: 83 81 00 40 lwz r28,64(r1) ffc0e124: 83 a1 00 44 lwz r29,68(r1) ffc0e128: 83 c1 00 48 lwz r30,72(r1) ffc0e12c: 83 e1 00 4c lwz r31,76(r1) ffc0e130: 38 21 00 50 addi r1,r1,80 ffc0e134: 4e 80 00 20 blr <== ALWAYS TAKEN if ( status ) { /* * 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) ) ) { ffc0e138: 2f 9c 00 02 cmpwi cr7,r28,2 ffc0e13c: 41 9e 01 18 beq- cr7,ffc0e254 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 ); ffc0e140: 7f c3 f3 78 mr r3,r30 ffc0e144: 7f e4 fb 78 mr r4,r31 ffc0e148: 48 00 40 1d bl ffc12164 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); ffc0e14c: 48 00 4e 45 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one_cast( status, mqd_t ); ffc0e150: 48 00 d4 81 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } ffc0e154: 80 01 00 54 lwz r0,84(r1) ffc0e158: 81 81 00 34 lwz r12,52(r1) ffc0e15c: 7c 08 03 a6 mtlr r0 * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one_cast( status, mqd_t ); ffc0e160: 93 83 00 00 stw r28,0(r3) ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } ffc0e164: 7d 80 81 20 mtcrf 8,r12 * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one_cast( status, mqd_t ); ffc0e168: 38 60 ff ff li r3,-1 ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } ffc0e16c: 83 41 00 38 lwz r26,56(r1) ffc0e170: 83 61 00 3c lwz r27,60(r1) ffc0e174: 83 81 00 40 lwz r28,64(r1) ffc0e178: 83 a1 00 44 lwz r29,68(r1) ffc0e17c: 83 c1 00 48 lwz r30,72(r1) ffc0e180: 83 e1 00 4c lwz r31,76(r1) ffc0e184: 38 21 00 50 addi r1,r1,80 ffc0e188: 4e 80 00 20 blr <== ALWAYS TAKEN Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { va_start(arg, oflag); ffc0e18c: 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 * ); ffc0e190: 83 41 00 2c lwz r26,44(r1) */ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd * _POSIX_Message_queue_Allocate_fd( void ) { return (POSIX_Message_queue_Control_fd *) ffc0e194: 3f c0 00 00 lis r30,0 Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { va_start(arg, oflag); ffc0e198: 90 01 00 18 stw r0,24(r1) ffc0e19c: 3b de 36 44 addi r30,r30,13892 ffc0e1a0: 38 01 00 20 addi r0,r1,32 ffc0e1a4: 90 01 00 1c stw r0,28(r1) ffc0e1a8: 7f c3 f3 78 mr r3,r30 mode = (mode_t) va_arg( arg, unsigned int ); attr = (struct mq_attr *) va_arg( arg, struct mq_attr * ); ffc0e1ac: 38 00 00 04 li r0,4 ffc0e1b0: 98 01 00 14 stb r0,20(r1) ffc0e1b4: 48 00 3b 91 bl ffc11d44 <_Objects_Allocate> <== ALWAYS TAKEN va_end(arg); } the_mq_fd = _POSIX_Message_queue_Allocate_fd(); if ( !the_mq_fd ) { ffc0e1b8: 7c 7f 1b 79 mr. r31,r3 ffc0e1bc: 40 82 fe e0 bne+ ffc0e09c _Thread_Enable_dispatch(); ffc0e1c0: 48 00 4d d1 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENFILE ); ffc0e1c4: 48 00 d4 0d bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e1c8: 38 00 00 17 li r0,23 ffc0e1cc: 90 03 00 00 stw r0,0(r3) ffc0e1d0: 38 60 ff ff li r3,-1 ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } ffc0e1d4: 80 01 00 54 lwz r0,84(r1) ffc0e1d8: 81 81 00 34 lwz r12,52(r1) ffc0e1dc: 7c 08 03 a6 mtlr r0 ffc0e1e0: 83 41 00 38 lwz r26,56(r1) ffc0e1e4: 83 61 00 3c lwz r27,60(r1) ffc0e1e8: 7d 80 81 20 mtcrf 8,r12 ffc0e1ec: 83 81 00 40 lwz r28,64(r1) ffc0e1f0: 83 a1 00 44 lwz r29,68(r1) ffc0e1f4: 83 c1 00 48 lwz r30,72(r1) ffc0e1f8: 83 e1 00 4c lwz r31,76(r1) ffc0e1fc: 38 21 00 50 addi r1,r1,80 ffc0e200: 4e 80 00 20 blr <== 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 ); ffc0e204: 7f c3 f3 78 mr r3,r30 ffc0e208: 7f e4 fb 78 mr r4,r31 ffc0e20c: 48 00 3f 59 bl ffc12164 <_Objects_Free> <== ALWAYS TAKEN /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); ffc0e210: 48 00 4d 81 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t ); ffc0e214: 48 00 d3 bd bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e218: 38 00 00 11 li r0,17 ffc0e21c: 90 03 00 00 stw r0,0(r3) ffc0e220: 38 60 ff ff li r3,-1 ); _Thread_Enable_dispatch(); return (mqd_t) the_mq_fd->Object.id; } ffc0e224: 80 01 00 54 lwz r0,84(r1) ffc0e228: 81 81 00 34 lwz r12,52(r1) ffc0e22c: 7c 08 03 a6 mtlr r0 ffc0e230: 83 41 00 38 lwz r26,56(r1) ffc0e234: 83 61 00 3c lwz r27,60(r1) ffc0e238: 7d 80 81 20 mtcrf 8,r12 ffc0e23c: 83 81 00 40 lwz r28,64(r1) ffc0e240: 83 a1 00 44 lwz r29,68(r1) ffc0e244: 83 c1 00 48 lwz r30,72(r1) ffc0e248: 83 e1 00 4c lwz r31,76(r1) ffc0e24c: 38 21 00 50 addi r1,r1,80 ffc0e250: 4e 80 00 20 blr <== ALWAYS TAKEN if ( status ) { /* * 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) ) ) { ffc0e254: 41 92 fe ec beq+ cr4,ffc0e140 /* * 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( ffc0e258: 7f a3 eb 78 mr r3,r29 ffc0e25c: 7f 45 d3 78 mr r5,r26 ffc0e260: 38 80 00 01 li r4,1 ffc0e264: 38 c1 00 0c addi r6,r1,12 ffc0e268: 48 00 85 e1 bl ffc16848 <_POSIX_Message_queue_Create_support> <== ALWAYS TAKEN ); /* * errno was set by Create_support, so don't set it again. */ if ( status == -1 ) { ffc0e26c: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0e270: 41 9e 00 30 beq- cr7,ffc0e2a0 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0e274: a0 1f 00 0a lhz r0,10(r31) ffc0e278: 81 3e 00 1c lwz r9,28(r30) ffc0e27c: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0e280: 7f e9 01 2e stwx r31,r9,r0 _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); return (mqd_t) -1; } the_mq_fd->Queue = the_mq; ffc0e284: 80 01 00 0c lwz r0,12(r1) ffc0e288: 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; ffc0e28c: 38 00 00 00 li r0,0 ffc0e290: 90 1f 00 0c stw r0,12(r31) &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object, NULL ); _Thread_Enable_dispatch(); ffc0e294: 48 00 4c fd bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return (mqd_t) the_mq_fd->Object.id; ffc0e298: 80 7f 00 08 lwz r3,8(r31) ffc0e29c: 4b ff fe 6c b ffc0e108 <== ALWAYS TAKEN ffc0e2a0: 7f c3 f3 78 mr r3,r30 ffc0e2a4: 7f e4 fb 78 mr r4,r31 ffc0e2a8: 48 00 3e bd bl ffc12164 <_Objects_Free> <== ALWAYS TAKEN /* * errno was set by Create_support, so don't set it again. */ if ( status == -1 ) { _POSIX_Message_queue_Free_fd( the_mq_fd ); _Thread_Enable_dispatch(); ffc0e2ac: 48 00 4c e5 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0e2b0: 38 60 ff ff li r3,-1 return (mqd_t) -1; ffc0e2b4: 4b ff fe 54 b ffc0e108 <== ALWAYS TAKEN ffc0e2b8 : mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio ) { ffc0e2b8: 94 21 ff f8 stwu r1,-8(r1) ffc0e2bc: 7c 08 02 a6 mflr r0 return _POSIX_Message_queue_Receive_support( ffc0e2c0: 38 e0 00 01 li r7,1 ffc0e2c4: 39 00 00 00 li r8,0 mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio ) { ffc0e2c8: 90 01 00 0c stw r0,12(r1) return _POSIX_Message_queue_Receive_support( ffc0e2cc: 48 00 00 15 bl ffc0e2e0 <_POSIX_Message_queue_Receive_support> <== ALWAYS TAKEN msg_len, msg_prio, true, THREAD_QUEUE_WAIT_FOREVER ); } ffc0e2d0: 80 01 00 0c lwz r0,12(r1) ffc0e2d4: 38 21 00 08 addi r1,r1,8 ffc0e2d8: 7c 08 03 a6 mtlr r0 ffc0e2dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e474 : mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio ) { ffc0e474: 94 21 ff f8 stwu r1,-8(r1) ffc0e478: 7c 08 02 a6 mflr r0 return _POSIX_Message_queue_Send_support( ffc0e47c: 38 e0 00 01 li r7,1 ffc0e480: 39 00 00 00 li r8,0 mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio ) { ffc0e484: 90 01 00 0c stw r0,12(r1) return _POSIX_Message_queue_Send_support( ffc0e488: 48 00 00 15 bl ffc0e49c <_POSIX_Message_queue_Send_support> <== ALWAYS TAKEN msg_len, msg_prio, true, THREAD_QUEUE_WAIT_FOREVER ); } ffc0e48c: 80 01 00 0c lwz r0,12(r1) ffc0e490: 38 21 00 08 addi r1,r1,8 ffc0e494: 7c 08 03 a6 mtlr r0 ffc0e498: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e624 : int mq_setattr( mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat ) { ffc0e624: 94 21 ff e0 stwu r1,-32(r1) ffc0e628: 7c 08 02 a6 mflr r0 ffc0e62c: 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 ) ffc0e630: 7c 9e 23 79 mr. r30,r4 int mq_setattr( mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat ) { ffc0e634: 7c 64 1b 78 mr r4,r3 ffc0e638: 93 e1 00 1c stw r31,28(r1) ffc0e63c: 7c bf 2b 78 mr r31,r5 ffc0e640: 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 ) ffc0e644: 41 82 00 88 beq- ffc0e6cc ffc0e648: 3c 60 00 00 lis r3,0 ffc0e64c: 38 63 36 44 addi r3,r3,13892 ffc0e650: 38 a1 00 08 addi r5,r1,8 ffc0e654: 48 00 3c f1 bl ffc12344 <_Objects_Get> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { ffc0e658: 80 01 00 08 lwz r0,8(r1) ffc0e65c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e660: 40 9e 00 58 bne- cr7,ffc0e6b8 /* * Return the old values. */ if ( omqstat ) { ffc0e664: 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; ffc0e668: 81 23 00 10 lwz r9,16(r3) /* * Return the old values. */ if ( omqstat ) { ffc0e66c: 41 9e 00 24 beq- cr7,ffc0e690 omqstat->mq_flags = the_mq_fd->oflag; omqstat->mq_msgsize = the_core_mq->maximum_message_size; ffc0e670: 80 09 00 68 lwz r0,104(r9) /* * Return the old values. */ if ( omqstat ) { omqstat->mq_flags = the_mq_fd->oflag; ffc0e674: 81 63 00 14 lwz r11,20(r3) omqstat->mq_msgsize = the_core_mq->maximum_message_size; ffc0e678: 90 1f 00 08 stw r0,8(r31) /* * Return the old values. */ if ( omqstat ) { omqstat->mq_flags = the_mq_fd->oflag; ffc0e67c: 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; ffc0e680: 80 09 00 60 lwz r0,96(r9) ffc0e684: 90 1f 00 04 stw r0,4(r31) omqstat->mq_curmsgs = the_core_mq->number_of_pending_messages; ffc0e688: 80 09 00 64 lwz r0,100(r9) ffc0e68c: 90 1f 00 0c stw r0,12(r31) } the_mq_fd->oflag = mqstat->mq_flags; ffc0e690: 80 1e 00 00 lwz r0,0(r30) ffc0e694: 90 03 00 14 stw r0,20(r3) _Thread_Enable_dispatch(); ffc0e698: 48 00 48 f9 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0e69c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); } ffc0e6a0: 80 01 00 24 lwz r0,36(r1) ffc0e6a4: 83 c1 00 18 lwz r30,24(r1) ffc0e6a8: 7c 08 03 a6 mtlr r0 ffc0e6ac: 83 e1 00 1c lwz r31,28(r1) ffc0e6b0: 38 21 00 20 addi r1,r1,32 ffc0e6b4: 4e 80 00 20 blr <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EBADF ); ffc0e6b8: 48 00 cf 19 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e6bc: 38 00 00 09 li r0,9 ffc0e6c0: 90 03 00 00 stw r0,0(r3) ffc0e6c4: 38 60 ff ff li r3,-1 ffc0e6c8: 4b ff ff d8 b ffc0e6a0 <== ALWAYS TAKEN POSIX_Message_queue_Control_fd *the_mq_fd; CORE_message_queue_Control *the_core_mq; Objects_Locations location; if ( !mqstat ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0e6cc: 48 00 cf 05 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e6d0: 38 00 00 16 li r0,22 ffc0e6d4: 90 03 00 00 stw r0,0(r3) ffc0e6d8: 38 60 ff ff li r3,-1 ffc0e6dc: 4b ff ff c4 b ffc0e6a0 <== ALWAYS TAKEN ffc0e6e0 : char *msg_ptr, size_t msg_len, unsigned int *msg_prio, const struct timespec *abstime ) { ffc0e6e0: 94 21 ff d8 stwu r1,-40(r1) ffc0e6e4: 7c 08 02 a6 mflr r0 ffc0e6e8: 93 c1 00 20 stw r30,32(r1) ffc0e6ec: 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 ); ffc0e6f0: 7c e3 3b 78 mr r3,r7 char *msg_ptr, size_t msg_len, unsigned int *msg_prio, const struct timespec *abstime ) { ffc0e6f4: 93 e1 00 24 stw r31,36(r1) ffc0e6f8: 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 ); ffc0e6fc: 38 81 00 08 addi r4,r1,8 char *msg_ptr, size_t msg_len, unsigned int *msg_prio, const struct timespec *abstime ) { ffc0e700: 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 ); ffc0e704: 90 a1 00 18 stw r5,24(r1) ffc0e708: 90 c1 00 1c stw r6,28(r1) ffc0e70c: 48 00 01 55 bl ffc0e860 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; return _POSIX_Message_queue_Receive_support( ffc0e710: 68 67 00 03 xori r7,r3,3 ffc0e714: 81 01 00 08 lwz r8,8(r1) ffc0e718: 7c e7 00 34 cntlzw r7,r7 ffc0e71c: 80 a1 00 18 lwz r5,24(r1) ffc0e720: 7f c3 f3 78 mr r3,r30 ffc0e724: 80 c1 00 1c lwz r6,28(r1) ffc0e728: 7f e4 fb 78 mr r4,r31 ffc0e72c: 54 e7 d9 7e rlwinm r7,r7,27,5,31 ffc0e730: 4b ff fb b1 bl ffc0e2e0 <_POSIX_Message_queue_Receive_support> <== ALWAYS TAKEN msg_len, msg_prio, do_wait, ticks ); } ffc0e734: 80 01 00 2c lwz r0,44(r1) ffc0e738: 83 c1 00 20 lwz r30,32(r1) ffc0e73c: 7c 08 03 a6 mtlr r0 ffc0e740: 83 e1 00 24 lwz r31,36(r1) ffc0e744: 38 21 00 28 addi r1,r1,40 ffc0e748: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e74c : const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *abstime ) { ffc0e74c: 94 21 ff d8 stwu r1,-40(r1) ffc0e750: 7c 08 02 a6 mflr r0 ffc0e754: 93 c1 00 20 stw r30,32(r1) ffc0e758: 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 ); ffc0e75c: 7c e3 3b 78 mr r3,r7 const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *abstime ) { ffc0e760: 93 e1 00 24 stw r31,36(r1) ffc0e764: 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 ); ffc0e768: 38 81 00 08 addi r4,r1,8 const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec *abstime ) { ffc0e76c: 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 ); ffc0e770: 90 a1 00 18 stw r5,24(r1) ffc0e774: 90 c1 00 1c stw r6,28(r1) ffc0e778: 48 00 00 e9 bl ffc0e860 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; return _POSIX_Message_queue_Send_support( ffc0e77c: 68 67 00 03 xori r7,r3,3 ffc0e780: 81 01 00 08 lwz r8,8(r1) ffc0e784: 7c e7 00 34 cntlzw r7,r7 ffc0e788: 80 a1 00 18 lwz r5,24(r1) ffc0e78c: 7f c3 f3 78 mr r3,r30 ffc0e790: 80 c1 00 1c lwz r6,28(r1) ffc0e794: 7f e4 fb 78 mr r4,r31 ffc0e798: 54 e7 d9 7e rlwinm r7,r7,27,5,31 ffc0e79c: 4b ff fd 01 bl ffc0e49c <_POSIX_Message_queue_Send_support> <== ALWAYS TAKEN msg_len, msg_prio, do_wait, ticks ); } ffc0e7a0: 80 01 00 2c lwz r0,44(r1) ffc0e7a4: 83 c1 00 20 lwz r30,32(r1) ffc0e7a8: 7c 08 03 a6 mtlr r0 ffc0e7ac: 83 e1 00 24 lwz r31,36(r1) ffc0e7b0: 38 21 00 28 addi r1,r1,40 ffc0e7b4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e7cc : ffc0e7cc: 3d 20 00 00 lis r9,0 */ int mq_unlink( const char *name ) { ffc0e7d0: 94 21 ff e0 stwu r1,-32(r1) ffc0e7d4: 7c 08 02 a6 mflr r0 ffc0e7d8: 81 69 29 f8 lwz r11,10744(r9) ffc0e7dc: 90 01 00 24 stw r0,36(r1) ffc0e7e0: 38 0b 00 01 addi r0,r11,1 ffc0e7e4: 93 c1 00 18 stw r30,24(r1) ffc0e7e8: 93 e1 00 1c stw r31,28(r1) ffc0e7ec: 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 ); ffc0e7f0: 38 81 00 08 addi r4,r1,8 ffc0e7f4: 48 00 82 39 bl ffc16a2c <_POSIX_Message_queue_Name_to_id> <== ALWAYS TAKEN if ( status != 0 ) { ffc0e7f8: 7c 7e 1b 79 mr. r30,r3 ffc0e7fc: 40 82 00 50 bne- ffc0e84c _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( status ); } the_mq = (POSIX_Message_queue_Control *) _Objects_Get_local_object( ffc0e800: 3c 60 00 00 lis r3,0 ffc0e804: a0 01 00 0a lhz r0,10(r1) ffc0e808: 38 63 34 b8 addi r3,r3,13496 ffc0e80c: 81 23 00 1c lwz r9,28(r3) ffc0e810: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0e814: 7f e9 00 2e lwzx r31,r9,r0 &_POSIX_Message_queue_Information, _Objects_Get_index( the_mq_id ) ); the_mq->linked = false; ffc0e818: 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( ffc0e81c: 7f e4 fb 78 mr r4,r31 ffc0e820: 48 00 3c b5 bl ffc124d4 <_Objects_Namespace_remove> <== ALWAYS TAKEN _POSIX_Message_queue_Namespace_remove( the_mq ); _POSIX_Message_queue_Delete( the_mq ); ffc0e824: 7f e3 fb 78 mr r3,r31 ffc0e828: 4b ff f5 a1 bl ffc0ddc8 <_POSIX_Message_queue_Delete> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0e82c: 48 00 47 65 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0e830: 38 60 00 00 li r3,0 return 0; } ffc0e834: 80 01 00 24 lwz r0,36(r1) ffc0e838: 83 c1 00 18 lwz r30,24(r1) ffc0e83c: 7c 08 03 a6 mtlr r0 ffc0e840: 83 e1 00 1c lwz r31,28(r1) ffc0e844: 38 21 00 20 addi r1,r1,32 ffc0e848: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id ); if ( status != 0 ) { _Thread_Enable_dispatch(); ffc0e84c: 48 00 47 45 bl ffc12f90 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( status ); ffc0e850: 48 00 cd 81 bl ffc1b5d0 <__errno> <== ALWAYS TAKEN ffc0e854: 93 c3 00 00 stw r30,0(r3) ffc0e858: 38 60 ff ff li r3,-1 ffc0e85c: 4b ff ff d8 b ffc0e834 <== ALWAYS TAKEN ffc2eddc : int nanosleep( const struct timespec *rqtp, struct timespec *rmtp ) { ffc2eddc: 94 21 ff e8 stwu r1,-24(r1) <== ALWAYS TAKEN ffc2ede0: 7c 08 02 a6 mflr r0 ffc2ede4: 93 c1 00 10 stw r30,16(r1) ffc2ede8: 7c 7e 1b 78 mr r30,r3 ffc2edec: 93 e1 00 14 stw r31,20(r1) ffc2edf0: 7c 9f 23 78 mr r31,r4 ffc2edf4: 90 01 00 1c stw r0,28(r1) ffc2edf8: 93 a1 00 0c stw r29,12(r1) Watchdog_Interval ticks; if ( !_Timespec_Is_valid( rqtp ) ) ffc2edfc: 48 00 01 55 bl ffc2ef50 <_Timespec_Is_valid> <== ALWAYS TAKEN ffc2ee00: 2f 83 00 00 cmpwi cr7,r3,0 ffc2ee04: 41 9e 01 24 beq- cr7,ffc2ef28 * 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 ) ffc2ee08: 80 1e 00 00 lwz r0,0(r30) ffc2ee0c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ee10: 41 9c 01 18 blt- cr7,ffc2ef28 <== NEVER TAKEN ffc2ee14: 80 1e 00 04 lwz r0,4(r30) ffc2ee18: 2f 80 00 00 cmpwi cr7,r0,0 ffc2ee1c: 41 9c 01 0c blt- cr7,ffc2ef28 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ticks = _Timespec_To_ticks( rqtp ); ffc2ee20: 7f c3 f3 78 mr r3,r30 ffc2ee24: 4b fe bf 39 bl ffc1ad5c <_Timespec_To_ticks> <== ALWAYS TAKEN * 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 ) { ffc2ee28: 7c 7e 1b 79 mr. r30,r3 ffc2ee2c: 40 82 00 4c bne- ffc2ee78 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc2ee30: 3d 20 00 00 lis r9,0 ffc2ee34: 81 69 29 74 lwz r11,10612(r9) ffc2ee38: 38 0b 00 01 addi r0,r11,1 ffc2ee3c: 90 09 29 74 stw r0,10612(r9) _Thread_Disable_dispatch(); _Thread_Yield_processor(); ffc2ee40: 4b fe 3b 1d bl ffc1295c <_Thread_Yield_processor> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc2ee44: 4b fe 29 d5 bl ffc11818 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( rmtp ) { ffc2ee48: 2f 9f 00 00 cmpwi cr7,r31,0 ffc2ee4c: 41 9e 00 bc beq- cr7,ffc2ef08 rmtp->tv_sec = 0; rmtp->tv_nsec = 0; ffc2ee50: 93 df 00 04 stw r30,4(r31) ffc2ee54: 38 60 00 00 li r3,0 if ( !ticks ) { _Thread_Disable_dispatch(); _Thread_Yield_processor(); _Thread_Enable_dispatch(); if ( rmtp ) { rmtp->tv_sec = 0; ffc2ee58: 93 df 00 00 stw r30,0(r31) rtems_set_errno_and_return_minus_one( EINTR ); #endif } return 0; } ffc2ee5c: 80 01 00 1c lwz r0,28(r1) ffc2ee60: 83 a1 00 0c lwz r29,12(r1) ffc2ee64: 7c 08 03 a6 mtlr r0 ffc2ee68: 83 c1 00 10 lwz r30,16(r1) ffc2ee6c: 83 e1 00 14 lwz r31,20(r1) ffc2ee70: 38 21 00 18 addi r1,r1,24 ffc2ee74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2ee78: 3d 20 00 00 lis r9,0 ffc2ee7c: 81 69 29 74 lwz r11,10612(r9) ffc2ee80: 38 0b 00 01 addi r0,r11,1 ffc2ee84: 90 09 29 74 stw r0,10612(r9) /* * Block for the desired amount of time */ _Thread_Disable_dispatch(); _Thread_Set_state( ffc2ee88: 3f a0 00 00 lis r29,0 <== ALWAYS TAKEN ffc2ee8c: 80 7d 29 b4 lwz r3,10676(r29) ffc2ee90: 3c 80 10 00 lis r4,4096 ffc2ee94: 60 84 00 08 ori r4,r4,8 ffc2ee98: 4b fe 35 49 bl ffc123e0 <_Thread_Set_state> <== ALWAYS TAKEN _Thread_Executing, STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Watchdog_Initialize( &_Thread_Executing->Timer, ffc2ee9c: 81 3d 29 b4 lwz r9,10676(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc2eea0: 3d 40 ff c1 lis r10,-63 _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Watchdog_Initialize( ffc2eea4: 81 69 00 08 lwz r11,8(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc2eea8: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc2eeac: 39 4a 15 c4 addi r10,r10,5572 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc2eeb0: 90 09 00 6c stw r0,108(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc2eeb4: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc2eeb8: 91 49 00 64 stw r10,100(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc2eebc: 38 63 36 48 addi r3,r3,13896 ffc2eec0: 38 89 00 48 addi r4,r9,72 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc2eec4: 91 69 00 68 stw r11,104(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc2eec8: 90 09 00 50 stw r0,80(r9) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc2eecc: 93 c9 00 54 stw r30,84(r9) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc2eed0: 4b fe 41 19 bl ffc12fe8 <_Watchdog_Insert> <== ALWAYS TAKEN _Thread_Delay_ended, _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); _Thread_Enable_dispatch(); ffc2eed4: 4b fe 29 45 bl ffc11818 <_Thread_Enable_dispatch> <== ALWAYS TAKEN /* calculate time remaining */ if ( rmtp ) { ffc2eed8: 2f 9f 00 00 cmpwi cr7,r31,0 ffc2eedc: 41 9e 00 2c beq- cr7,ffc2ef08 ticks -= _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time; ffc2eee0: 81 3d 29 b4 lwz r9,10676(r29) _Timespec_From_ticks( ticks, rmtp ); ffc2eee4: 7f e4 fb 78 mr r4,r31 _Thread_Enable_dispatch(); /* calculate time remaining */ if ( rmtp ) { ticks -= ffc2eee8: 80 09 00 60 lwz r0,96(r9) ffc2eeec: 81 29 00 5c lwz r9,92(r9) ffc2eef0: 7c 00 48 50 subf r0,r0,r9 ffc2eef4: 7f c0 f2 14 add r30,r0,r30 _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time; _Timespec_From_ticks( ticks, rmtp ); ffc2eef8: 7f c3 f3 78 mr r3,r30 ffc2eefc: 4b fe be 15 bl ffc1ad10 <_Timespec_From_ticks> <== ALWAYS TAKEN */ #if defined(RTEMS_POSIX_API) /* * If there is time remaining, then we were interrupted by a signal. */ if ( ticks ) ffc2ef00: 2f 9e 00 00 cmpwi cr7,r30,0 ffc2ef04: 40 9e 00 38 bne- cr7,ffc2ef3c rtems_set_errno_and_return_minus_one( EINTR ); #endif } return 0; } ffc2ef08: 80 01 00 1c lwz r0,28(r1) #if defined(RTEMS_POSIX_API) /* * If there is time remaining, then we were interrupted by a signal. */ if ( ticks ) rtems_set_errno_and_return_minus_one( EINTR ); ffc2ef0c: 38 60 00 00 li r3,0 #endif } return 0; } ffc2ef10: 83 a1 00 0c lwz r29,12(r1) ffc2ef14: 7c 08 03 a6 mtlr r0 ffc2ef18: 83 c1 00 10 lwz r30,16(r1) ffc2ef1c: 83 e1 00 14 lwz r31,20(r1) ffc2ef20: 38 21 00 18 addi r1,r1,24 ffc2ef24: 4e 80 00 20 blr <== ALWAYS TAKEN * * 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 ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc2ef28: 4b fe ff d9 bl ffc1ef00 <__errno> <== ALWAYS TAKEN ffc2ef2c: 38 00 00 16 li r0,22 ffc2ef30: 90 03 00 00 stw r0,0(r3) ffc2ef34: 38 60 ff ff li r3,-1 ffc2ef38: 4b ff ff 24 b ffc2ee5c <== ALWAYS TAKEN #if defined(RTEMS_POSIX_API) /* * If there is time remaining, then we were interrupted by a signal. */ if ( ticks ) rtems_set_errno_and_return_minus_one( EINTR ); ffc2ef3c: 4b fe ff c5 bl ffc1ef00 <__errno> <== ALWAYS TAKEN ffc2ef40: 38 00 00 04 li r0,4 ffc2ef44: 90 03 00 00 stw r0,0(r3) ffc2ef48: 38 60 ff ff li r3,-1 ffc2ef4c: 4b ff ff 10 b ffc2ee5c <== ALWAYS TAKEN ffc04fe0 : */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { ffc04fe0: 94 21 ff e8 stwu r1,-24(r1) ffc04fe4: 7c 08 02 a6 mflr r0 struct _reent *ptr; if (_Thread_libc_reent == 0) ffc04fe8: 3d 20 00 00 lis r9,0 */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { ffc04fec: 90 01 00 1c stw r0,28(r1) struct _reent *ptr; if (_Thread_libc_reent == 0) ffc04ff0: 80 09 27 88 lwz r0,10120(r9) */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { ffc04ff4: 93 81 00 08 stw r28,8(r1) ffc04ff8: 7c 9c 23 78 mr r28,r4 struct _reent *ptr; if (_Thread_libc_reent == 0) ffc04ffc: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { ffc05000: 93 a1 00 0c stw r29,12(r1) ffc05004: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc05008: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN struct _reent *ptr; if (_Thread_libc_reent == 0) ffc0500c: 41 9e 01 a0 beq- cr7,ffc051ac 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)); ffc05010: 38 60 04 28 li r3,1064 ffc05014: 48 00 7a a5 bl ffc0cab8 <_Workspace_Allocate> <== ALWAYS TAKEN #endif if (ptr) { ffc05018: 7c 7f 1b 79 mr. r31,r3 <== ALWAYS TAKEN ffc0501c: 38 60 00 00 li r3,0 ffc05020: 41 82 01 6c beq- ffc0518c _REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */ ffc05024: 39 7f 03 54 addi r11,r31,852 ffc05028: 38 1f 03 bc addi r0,r31,956 ffc0502c: 91 7f 00 08 stw r11,8(r31) ffc05030: 3d 60 ff c2 lis r11,-62 ffc05034: 3b c0 00 00 li r30,0 ffc05038: 90 1f 00 0c stw r0,12(r31) ffc0503c: 39 3f 00 14 addi r9,r31,20 ffc05040: 38 0b f7 54 addi r0,r11,-2220 ffc05044: 93 df 00 14 stw r30,20(r31) ffc05048: 3b bf 02 ec addi r29,r31,748 ffc0504c: 90 1f 00 34 stw r0,52(r31) ffc05050: 38 80 00 00 li r4,0 ffc05054: 38 a0 00 24 li r5,36 ffc05058: 9b c9 00 18 stb r30,24(r9) ffc0505c: 38 7f 00 7c addi r3,r31,124 ffc05060: 93 c9 00 04 stw r30,4(r9) ffc05064: 93 c9 00 08 stw r30,8(r9) ffc05068: 93 c9 00 0c stw r30,12(r9) ffc0506c: 93 c9 00 10 stw r30,16(r9) ffc05070: 93 c9 00 14 stw r30,20(r9) ffc05074: 93 df 00 00 stw r30,0(r31) ffc05078: 93 bf 00 04 stw r29,4(r31) ffc0507c: 93 df 00 10 stw r30,16(r31) ffc05080: 93 df 00 30 stw r30,48(r31) ffc05084: 93 df 00 38 stw r30,56(r31) ffc05088: 93 df 00 3c stw r30,60(r31) ffc0508c: 93 df 00 40 stw r30,64(r31) ffc05090: 93 df 00 44 stw r30,68(r31) ffc05094: 93 df 00 48 stw r30,72(r31) ffc05098: 93 df 00 4c stw r30,76(r31) ffc0509c: 93 df 00 50 stw r30,80(r31) ffc050a0: 93 df 00 54 stw r30,84(r31) ffc050a4: 93 df 00 58 stw r30,88(r31) ffc050a8: 93 df 00 5c stw r30,92(r31) ffc050ac: 9b df 00 60 stb r30,96(r31) ffc050b0: 48 00 ef b1 bl ffc14060 <== ALWAYS TAKEN ffc050b4: 38 00 33 0e li r0,13070 <== ALWAYS TAKEN ffc050b8: b0 1f 00 b0 sth r0,176(r31) ffc050bc: 38 00 ab cd li r0,-21555 ffc050c0: 39 20 00 00 li r9,0 ffc050c4: b0 1f 00 b2 sth r0,178(r31) ffc050c8: 38 00 12 34 li r0,4660 <== ALWAYS TAKEN ffc050cc: 39 40 00 01 li r10,1 ffc050d0: b0 1f 00 b4 sth r0,180(r31) ffc050d4: 38 00 e6 6d li r0,-6547 ffc050d8: 7f a3 eb 78 mr r3,r29 <== ALWAYS TAKEN ffc050dc: b0 1f 00 b6 sth r0,182(r31) ffc050e0: 38 00 de ec li r0,-8468 <== ALWAYS TAKEN ffc050e4: 38 80 00 00 li r4,0 ffc050e8: b0 1f 00 b8 sth r0,184(r31) ffc050ec: 38 00 00 05 li r0,5 ffc050f0: 38 a0 01 38 li r5,312 ffc050f4: b0 1f 00 ba sth r0,186(r31) ffc050f8: 38 00 00 0b li r0,11 ffc050fc: 91 3f 00 a8 stw r9,168(r31) ffc05100: 91 5f 00 ac stw r10,172(r31) <== ALWAYS TAKEN ffc05104: b0 1f 00 bc sth r0,188(r31) ffc05108: 93 df 00 a0 stw r30,160(r31) ffc0510c: 93 df 00 c0 stw r30,192(r31) ffc05110: 93 df 00 c4 stw r30,196(r31) ffc05114: 93 df 00 c8 stw r30,200(r31) ffc05118: 93 df 00 cc stw r30,204(r31) ffc0511c: 93 df 00 d0 stw r30,208(r31) <== ALWAYS TAKEN ffc05120: 93 df 00 d4 stw r30,212(r31) ffc05124: 93 df 00 fc stw r30,252(r31) ffc05128: 93 df 01 00 stw r30,256(r31) ffc0512c: 93 df 01 04 stw r30,260(r31) ffc05130: 93 df 01 08 stw r30,264(r31) ffc05134: 93 df 01 0c stw r30,268(r31) ffc05138: 93 df 01 10 stw r30,272(r31) ffc0513c: 93 df 01 14 stw r30,276(r31) ffc05140: 93 df 01 18 stw r30,280(r31) ffc05144: 93 df 01 1c stw r30,284(r31) <== ALWAYS TAKEN ffc05148: 93 df 01 20 stw r30,288(r31) ffc0514c: 9b df 00 d8 stb r30,216(r31) ffc05150: 9b df 00 e0 stb r30,224(r31) ffc05154: 93 df 00 f8 stw r30,248(r31) ffc05158: 93 df 01 48 stw r30,328(r31) ffc0515c: 93 df 01 4c stw r30,332(r31) ffc05160: 93 df 01 50 stw r30,336(r31) ffc05164: 93 df 01 54 stw r30,340(r31) ffc05168: 93 df 02 d4 stw r30,724(r31) ffc0516c: 93 df 01 d4 stw r30,468(r31) ffc05170: 93 df 02 e8 stw r30,744(r31) ffc05174: 93 df 02 dc stw r30,732(r31) ffc05178: 93 df 02 e0 stw r30,736(r31) ffc0517c: 93 df 02 e4 stw r30,740(r31) ffc05180: 48 00 ee e1 bl ffc14060 <== ALWAYS TAKEN creating_task->libc_reent = ptr; ffc05184: 93 fc 01 40 stw r31,320(r28) ffc05188: 38 60 00 01 li r3,1 return TRUE; } return FALSE; } ffc0518c: 80 01 00 1c lwz r0,28(r1) ffc05190: 83 81 00 08 lwz r28,8(r1) ffc05194: 7c 08 03 a6 mtlr r0 ffc05198: 83 a1 00 0c lwz r29,12(r1) ffc0519c: 83 c1 00 10 lwz r30,16(r1) ffc051a0: 83 e1 00 14 lwz r31,20(r1) ffc051a4: 38 21 00 18 addi r1,r1,24 ffc051a8: 4e 80 00 20 blr <== ALWAYS TAKEN { struct _reent *ptr; if (_Thread_libc_reent == 0) { _REENT = _global_impure_ptr; ffc051ac: 3d 40 00 00 lis r10,0 ffc051b0: 3d 60 00 00 lis r11,0 ffc051b4: 81 4a 26 e8 lwz r10,9960(r10) ffc051b8: 38 0b 26 e4 addi r0,r11,9956 ffc051bc: 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; ffc051c0: 90 09 27 88 stw r0,10120(r9) ffc051c4: 4b ff fe 4c b ffc05010 <== ALWAYS TAKEN ffc04ea0 : void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) { ffc04ea0: 7d 80 00 26 mfcr r12 /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ffc04ea4: 7e 03 20 00 cmpw cr4,r3,r4 void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) { ffc04ea8: 94 21 ff e8 stwu r1,-24(r1) ffc04eac: 7c 08 02 a6 mflr r0 ffc04eb0: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc04eb4: 7c 9e 23 78 mr r30,r4 ffc04eb8: 90 01 00 1c stw r0,28(r1) ffc04ebc: 93 e1 00 14 stw r31,20(r1) ffc04ec0: 91 81 00 0c stw r12,12(r1) /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ffc04ec4: 41 92 00 8c beq- cr4,ffc04f50 ptr = _REENT; } else { ptr = deleted_task->libc_reent; ffc04ec8: 83 e4 01 40 lwz r31,320(r4) } if (ptr && ptr != _global_impure_ptr) { ffc04ecc: 2f 9f 00 00 cmpwi cr7,r31,0 ffc04ed0: 41 9e 00 2c beq- cr7,ffc04efc <== NEVER TAKEN ffc04ed4: 3d 20 00 00 lis r9,0 ffc04ed8: 80 09 26 e8 lwz r0,9960(r9) ffc04edc: 7f 9f 00 00 cmpw cr7,r31,r0 ffc04ee0: 41 9e 00 1c beq- cr7,ffc04efc _reclaim_reent(ptr); */ /* * Just in case there are some buffers lying around. */ _fwalk(ptr, newlib_free_buffers); ffc04ee4: 3c 80 ff c0 lis r4,-64 ffc04ee8: 38 84 4f 5c addi r4,r4,20316 ffc04eec: 7f e3 fb 78 mr r3,r31 ffc04ef0: 48 00 ef 1d bl ffc13e0c <_fwalk> <== ALWAYS TAKEN #if REENT_MALLOCED free(ptr); #else _Workspace_Free(ptr); ffc04ef4: 7f e3 fb 78 mr r3,r31 ffc04ef8: 48 00 7b f5 bl ffc0caec <_Workspace_Free> <== ALWAYS TAKEN #endif } deleted_task->libc_reent = NULL; ffc04efc: 38 00 00 00 li r0,0 ffc04f00: 90 1e 01 40 stw r0,320(r30) /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { ffc04f04: 41 92 00 24 beq- cr4,ffc04f28 _REENT = 0; } } ffc04f08: 80 01 00 1c lwz r0,28(r1) ffc04f0c: 81 81 00 0c lwz r12,12(r1) ffc04f10: 7c 08 03 a6 mtlr r0 ffc04f14: 83 c1 00 10 lwz r30,16(r1) ffc04f18: 83 e1 00 14 lwz r31,20(r1) ffc04f1c: 7d 80 81 20 mtcrf 8,r12 ffc04f20: 38 21 00 18 addi r1,r1,24 ffc04f24: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { _REENT = 0; ffc04f28: 3d 20 00 00 lis r9,0 } } ffc04f2c: 81 81 00 0c lwz r12,12(r1) /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { _REENT = 0; ffc04f30: 90 09 26 e4 stw r0,9956(r9) } } ffc04f34: 7d 80 81 20 mtcrf 8,r12 ffc04f38: 80 01 00 1c lwz r0,28(r1) ffc04f3c: 83 c1 00 10 lwz r30,16(r1) ffc04f40: 7c 08 03 a6 mtlr r0 ffc04f44: 83 e1 00 14 lwz r31,20(r1) ffc04f48: 38 21 00 18 addi r1,r1,24 ffc04f4c: 4e 80 00 20 blr <== ALWAYS TAKEN /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ptr = _REENT; ffc04f50: 3d 20 00 00 lis r9,0 ffc04f54: 83 e9 26 e4 lwz r31,9956(r9) ffc04f58: 4b ff ff 74 b ffc04ecc <== ALWAYS TAKEN ffc04f5c : */ int newlib_free_buffers( FILE *fp ) { ffc04f5c: 94 21 ff f0 stwu r1,-16(r1) ffc04f60: 7c 08 02 a6 mflr r0 ffc04f64: 93 e1 00 0c stw r31,12(r1) ffc04f68: 7c 7f 1b 78 mr r31,r3 ffc04f6c: 90 01 00 14 stw r0,20(r1) switch ( fileno(fp) ) { ffc04f70: 48 00 e8 dd bl ffc1384c <== ALWAYS TAKEN ffc04f74: 2b 83 00 02 cmplwi cr7,r3,2 ffc04f78: 40 9d 00 24 ble- cr7,ffc04f9c <== ALWAYS TAKEN fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); ffc04f7c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04f80: 48 00 e5 99 bl ffc13518 <== NOT EXECUTED } return 0; } ffc04f84: 80 01 00 14 lwz r0,20(r1) ffc04f88: 38 60 00 00 li r3,0 ffc04f8c: 83 e1 00 0c lwz r31,12(r1) ffc04f90: 38 21 00 10 addi r1,r1,16 ffc04f94: 7c 08 03 a6 mtlr r0 ffc04f98: 4e 80 00 20 blr <== ALWAYS TAKEN { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { ffc04f9c: a0 1f 00 0c lhz r0,12(r31) ffc04fa0: 70 09 00 80 andi. r9,r0,128 ffc04fa4: 41 82 ff e0 beq+ ffc04f84 <== ALWAYS TAKEN free( fp->_bf._base ); ffc04fa8: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc04fac: 4b ff f4 bd bl ffc04468 <== NOT EXECUTED fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; ffc04fb0: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc04fb4: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED break; default: fclose(fp); } return 0; } ffc04fb8: 38 60 00 00 li r3,0 <== NOT EXECUTED case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; ffc04fbc: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED break; default: fclose(fp); } return 0; } ffc04fc0: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; ffc04fc4: a1 3f 00 0c lhz r9,12(r31) <== NOT EXECUTED break; default: fclose(fp); } return 0; } ffc04fc8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; ffc04fcc: 55 29 06 6e rlwinm r9,r9,0,25,23 <== NOT EXECUTED ffc04fd0: b1 3f 00 0c sth r9,12(r31) <== NOT EXECUTED break; default: fclose(fp); } return 0; } ffc04fd4: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc04fd8: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc04fdc: 4e 80 00 20 blr <== NOT EXECUTED ffc04cc8 : rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { return NULL_SUCCESSFUL; } ffc04cc8: 38 60 00 00 li r3,0 ffc04ccc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04cf0 : rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { return NULL_SUCCESSFUL; } ffc04cf0: 38 60 00 00 li r3,0 ffc04cf4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04cf8 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { ffc04cf8: 94 21 ff f0 stwu r1,-16(r1) ffc04cfc: 7c 08 02 a6 mflr r0 rtems_device_driver status; if ( !initialized ) { ffc04d00: 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)) ) { ffc04d04: 90 01 00 14 stw r0,20(r1) rtems_device_driver status; if ( !initialized ) { ffc04d08: 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)) ) { ffc04d0c: 93 e1 00 0c stw r31,12(r1) ffc04d10: 7c 7f 1b 78 mr r31,r3 rtems_device_driver status; if ( !initialized ) { ffc04d14: 2f 80 00 00 cmpwi cr7,r0,0 ffc04d18: 41 9e 00 1c beq- cr7,ffc04d34 NULL_major = major; } return RTEMS_SUCCESSFUL; } ffc04d1c: 80 01 00 14 lwz r0,20(r1) ffc04d20: 38 60 00 00 li r3,0 ffc04d24: 83 e1 00 0c lwz r31,12(r1) ffc04d28: 38 21 00 10 addi r1,r1,16 ffc04d2c: 7c 08 03 a6 mtlr r0 ffc04d30: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_device_driver status; if ( !initialized ) { initialized = 1; status = rtems_io_register_name( ffc04d34: 3c 60 ff c2 lis r3,-62 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04d38: 38 00 00 01 li r0,1 status = rtems_io_register_name( ffc04d3c: 38 63 3e 9c addi r3,r3,16028 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; ffc04d40: 98 09 29 20 stb r0,10528(r9) status = rtems_io_register_name( ffc04d44: 7f e4 fb 78 mr r4,r31 ffc04d48: 38 a0 00 00 li r5,0 ffc04d4c: 48 00 01 c1 bl ffc04f0c <== ALWAYS TAKEN "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) ffc04d50: 2f 83 00 00 cmpwi cr7,r3,0 ffc04d54: 40 9e 00 24 bne- cr7,ffc04d78 <== NEVER TAKEN NULL_major = major; } return RTEMS_SUCCESSFUL; } ffc04d58: 80 01 00 14 lwz r0,20(r1) ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); NULL_major = major; ffc04d5c: 3d 20 00 00 lis r9,0 ffc04d60: 93 e9 27 cc stw r31,10188(r9) } return RTEMS_SUCCESSFUL; } ffc04d64: 38 60 00 00 li r3,0 ffc04d68: 7c 08 03 a6 mtlr r0 ffc04d6c: 83 e1 00 0c lwz r31,12(r1) ffc04d70: 38 21 00 10 addi r1,r1,16 ffc04d74: 4e 80 00 20 blr <== ALWAYS TAKEN major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); ffc04d78: 48 00 55 3d bl ffc0a2b4 <== NOT EXECUTED ffc04cc0 : rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { return NULL_SUCCESSFUL; } ffc04cc0: 38 60 00 00 li r3,0 ffc04cc4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04cd0 : rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { return NULL_SUCCESSFUL; } ffc04cd0: 38 60 00 00 li r3,0 ffc04cd4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04cd8 : void *pargp ) { rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) ffc04cd8: 2c 05 00 00 cmpwi r5,0 ffc04cdc: 41 82 00 0c beq- ffc04ce8 <== ALWAYS TAKEN rw_args->bytes_moved = rw_args->count; ffc04ce0: 80 05 00 14 lwz r0,20(r5) <== NOT EXECUTED ffc04ce4: 90 05 00 1c stw r0,28(r5) <== NOT EXECUTED return NULL_SUCCESSFUL; } ffc04ce8: 38 60 00 00 li r3,0 ffc04cec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05260 : int open( const char *pathname, int flags, ... ) { ffc05260: 94 21 ff b0 stwu r1,-80(r1) <== ALWAYS TAKEN ffc05264: 7c 08 02 a6 mflr r0 ffc05268: 7d 80 00 26 mfcr r12 ffc0526c: 90 01 00 54 stw r0,84(r1) /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; ffc05270: 38 04 00 01 addi r0,r4,1 <== ALWAYS TAKEN if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) ffc05274: 70 09 00 02 andi. r9,r0,2 int open( const char *pathname, int flags, ... ) { ffc05278: 93 41 00 38 stw r26,56(r1) * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) ffc0527c: 54 1a 17 7a rlwinm r26,r0,2,29,29 int open( const char *pathname, int flags, ... ) { ffc05280: 93 a1 00 44 stw r29,68(r1) ffc05284: 7c 7d 1b 78 mr r29,r3 ffc05288: 93 c1 00 48 stw r30,72(r1) ffc0528c: 7c 9e 23 78 mr r30,r4 ffc05290: 93 21 00 34 stw r25,52(r1) <== ALWAYS TAKEN ffc05294: 93 61 00 3c stw r27,60(r1) ffc05298: 93 81 00 40 stw r28,64(r1) ffc0529c: 93 e1 00 4c stw r31,76(r1) ffc052a0: 91 81 00 30 stw r12,48(r1) <== ALWAYS TAKEN ffc052a4: 90 a1 00 28 stw r5,40(r1) <== ALWAYS TAKEN eval_flags = 0; status = flags + 1; if ( ( status & _FREAD ) == _FREAD ) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) ffc052a8: 41 82 00 08 beq- ffc052b0 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; ffc052ac: 63 5a 00 02 ori r26,r26,2 va_start(ap, flags); ffc052b0: 38 01 00 58 addi r0,r1,88 ffc052b4: 39 21 00 20 addi r9,r1,32 ffc052b8: 90 01 00 0c stw r0,12(r1) mode = va_arg( ap, int ); ffc052bc: 38 00 00 03 li r0,3 ffc052c0: 98 01 00 08 stb r0,8(r1) eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); ffc052c4: 91 21 00 10 stw r9,16(r1) mode = va_arg( ap, int ); ffc052c8: 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(); ffc052cc: 48 00 91 b1 bl ffc0e47c <== ALWAYS TAKEN if ( iop == 0 ) { ffc052d0: 2e 03 00 00 cmpwi cr4,r3,0 ffc052d4: 7c 7f 1b 78 mr r31,r3 ffc052d8: 41 92 01 20 beq- cr4,ffc053f8 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); ffc052dc: 7f a3 eb 78 mr r3,r29 ffc052e0: 48 00 f3 95 bl ffc14674 <== ALWAYS TAKEN /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( ffc052e4: 3b 81 00 14 addi r28,r1,20 pathname, strlen( pathname ), eval_flags, &loc, true ); ffc052e8: 7c 64 1b 78 mr r4,r3 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( ffc052ec: 7f 45 d3 78 mr r5,r26 ffc052f0: 7f a3 eb 78 mr r3,r29 ffc052f4: 7f 86 e3 78 mr r6,r28 ffc052f8: 38 e0 00 01 li r7,1 ffc052fc: 4b ff f0 65 bl ffc04360 <== ALWAYS TAKEN pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { ffc05300: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05304: 41 9e 01 6c beq- cr7,ffc05470 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { ffc05308: 73 c0 0a 00 andi. r0,r30,2560 ffc0530c: 7f 99 e3 78 mr r25,r28 ffc05310: 3b 40 00 11 li r26,17 ffc05314: 2f 80 0a 00 cmpwi cr7,r0,2560 ffc05318: 41 9e 00 e8 beq- cr7,ffc05400 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; ffc0531c: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); ffc05320: 7f c3 f3 78 mr r3,r30 ffc05324: 83 5f 00 18 lwz r26,24(r31) /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; ffc05328: 90 1f 00 40 stw r0,64(r31) iop->file_info = loc.node_access; ffc0532c: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc05330: 90 1f 00 3c stw r0,60(r31) <== ALWAYS TAKEN iop->flags |= rtems_libio_fcntl_flags( flags ); ffc05334: 48 00 92 29 bl ffc0e55c <== ALWAYS TAKEN iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { ffc05338: 81 3f 00 40 lwz r9,64(r31) */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; ffc0533c: 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 ); ffc05340: 7c 63 d3 78 or r3,r3,r26 iop->pathinfo = loc; ffc05344: 81 41 00 18 lwz r10,24(r1) if ( !iop->handlers || !iop->handlers->open_h ) { ffc05348: 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; ffc0534c: 81 61 00 1c lwz r11,28(r1) ffc05350: 81 01 00 14 lwz r8,20(r1) ffc05354: 91 5f 00 20 stw r10,32(r31) ffc05358: 91 1f 00 1c stw r8,28(r31) <== ALWAYS TAKEN ffc0535c: 91 7f 00 24 stw r11,36(r31) ffc05360: 90 1f 00 28 stw r0,40(r31) <== ALWAYS TAKEN ffc05364: 80 01 00 24 lwz r0,36(r1) * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); ffc05368: 90 7f 00 18 stw r3,24(r31) iop->pathinfo = loc; ffc0536c: 90 1f 00 2c stw r0,44(r31) if ( !iop->handlers || !iop->handlers->open_h ) { ffc05370: 41 9e 00 f4 beq- cr7,ffc05464 <== NEVER TAKEN ffc05374: 80 09 00 00 lwz r0,0(r9) ffc05378: 2f 80 00 00 cmpwi cr7,r0,0 ffc0537c: 41 9e 00 e8 beq- cr7,ffc05464 <== NEVER TAKEN rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); ffc05380: 7f a4 eb 78 mr r4,r29 ffc05384: 7c 09 03 a6 mtctr r0 ffc05388: 7f 66 db 78 mr r6,r27 ffc0538c: 7f e3 fb 78 mr r3,r31 ffc05390: 7f c5 f3 78 mr r5,r30 ffc05394: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( rc ) { ffc05398: 2f 83 00 00 cmpwi cr7,r3,0 ffc0539c: 40 9e 00 ac bne- cr7,ffc05448 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { ffc053a0: 73 c0 04 00 andi. r0,r30,1024 ffc053a4: 3f c0 00 00 lis r30,0 ffc053a8: 40 82 00 ec bne- ffc05494 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; ffc053ac: 80 7e 27 4c lwz r3,10060(r30) ffc053b0: 3c 00 38 e3 lis r0,14563 ffc053b4: 60 00 8e 39 ori r0,r0,36409 <== ALWAYS TAKEN ffc053b8: 7c 63 f8 50 subf r3,r3,r31 ffc053bc: 7c 63 1e 70 srawi r3,r3,3 <== ALWAYS TAKEN ffc053c0: 7c 63 01 d6 mullw r3,r3,r0 } ffc053c4: 80 01 00 54 lwz r0,84(r1) ffc053c8: 81 81 00 30 lwz r12,48(r1) ffc053cc: 7c 08 03 a6 mtlr r0 ffc053d0: 83 21 00 34 lwz r25,52(r1) ffc053d4: 83 41 00 38 lwz r26,56(r1) ffc053d8: 7d 80 81 20 mtcrf 8,r12 ffc053dc: 83 61 00 3c lwz r27,60(r1) ffc053e0: 83 81 00 40 lwz r28,64(r1) ffc053e4: 83 a1 00 44 lwz r29,68(r1) ffc053e8: 83 c1 00 48 lwz r30,72(r1) ffc053ec: 83 e1 00 4c lwz r31,76(r1) ffc053f0: 38 21 00 50 addi r1,r1,80 ffc053f4: 4e 80 00 20 blr <== ALWAYS TAKEN * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); if ( iop == 0 ) { ffc053f8: 3b 20 00 00 li r25,0 ffc053fc: 3b 40 00 17 li r26,23 done: va_end(ap); if ( rc ) { if ( iop ) ffc05400: 41 92 00 0c beq- cr4,ffc0540c rtems_libio_free( iop ); ffc05404: 7f e3 fb 78 mr r3,r31 ffc05408: 48 00 8f fd bl ffc0e404 <== ALWAYS TAKEN if ( loc_to_free ) ffc0540c: 2f 99 00 00 cmpwi cr7,r25,0 ffc05410: 41 9e 00 28 beq- cr7,ffc05438 rtems_filesystem_freenode( loc_to_free ); ffc05414: 81 39 00 0c lwz r9,12(r25) ffc05418: 2f 89 00 00 cmpwi cr7,r9,0 ffc0541c: 41 9e 00 1c beq- cr7,ffc05438 <== NEVER TAKEN ffc05420: 80 09 00 1c lwz r0,28(r9) ffc05424: 2f 80 00 00 cmpwi cr7,r0,0 ffc05428: 41 9e 00 10 beq- cr7,ffc05438 <== NEVER TAKEN ffc0542c: 7f 23 cb 78 mr r3,r25 ffc05430: 7c 09 03 a6 mtctr r0 ffc05434: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( rc ); ffc05438: 48 00 df 41 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0543c: 93 43 00 00 stw r26,0(r3) ffc05440: 38 60 ff ff li r3,-1 ffc05444: 4b ff ff 80 b ffc053c4 <== ALWAYS TAKEN goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; ffc05448: 48 00 df 31 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0544c: 7f 99 e3 78 mr r25,r28 ffc05450: 83 43 00 00 lwz r26,0(r3) ffc05454: 2e 1a 00 00 cmpwi cr4,r26,0 */ done: va_end(ap); if ( rc ) { ffc05458: 40 92 01 24 bne- cr4,ffc0557c <== ALWAYS TAKEN ffc0545c: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc05460: 4b ff ff 4c b ffc053ac <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; ffc05464: 7f 99 e3 78 mr r25,r28 <== NOT EXECUTED ffc05468: 3b 40 00 86 li r26,134 <== NOT EXECUTED ffc0546c: 4b ff ff 94 b ffc05400 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { ffc05470: 48 00 df 09 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc05474: 80 03 00 00 lwz r0,0(r3) ffc05478: 2f 80 00 02 cmpwi cr7,r0,2 ffc0547c: 41 9e 00 80 beq- cr7,ffc054fc rc = errno; ffc05480: 48 00 de f9 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc05484: 3b 20 00 00 li r25,0 ffc05488: 83 43 00 00 lwz r26,0(r3) ffc0548c: 2e 1a 00 00 cmpwi cr4,r26,0 goto done; ffc05490: 4b ff ff c8 b ffc05458 <== ALWAYS TAKEN /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); ffc05494: 80 7e 27 4c lwz r3,10060(r30) ffc05498: 3c 00 38 e3 lis r0,14563 ffc0549c: 60 00 8e 39 ori r0,r0,36409 ffc054a0: 7c 63 f8 50 subf r3,r3,r31 ffc054a4: 7c 63 1e 70 srawi r3,r3,3 ffc054a8: 7c 63 01 d6 mullw r3,r3,r0 ffc054ac: 38 a0 00 00 li r5,0 ffc054b0: 38 c0 00 00 li r6,0 ffc054b4: 48 00 8b 99 bl ffc0e04c <== ALWAYS TAKEN if ( rc ) { ffc054b8: 2e 03 00 00 cmpwi cr4,r3,0 ffc054bc: 7c 7a 1b 78 mr r26,r3 ffc054c0: 41 92 fe ec beq+ cr4,ffc053ac <== ALWAYS TAKEN if(errno) rc = errno; ffc054c4: 48 00 de b5 bl ffc13378 <__errno> <== NOT EXECUTED ffc054c8: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc054cc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc054d0: 40 9e 00 9c bne- cr7,ffc0556c <== NOT EXECUTED close( iop - rtems_libio_iops ); ffc054d4: 80 7e 27 4c lwz r3,10060(r30) <== NOT EXECUTED ffc054d8: 3c 00 38 e3 lis r0,14563 <== NOT EXECUTED ffc054dc: 60 00 8e 39 ori r0,r0,36409 <== NOT EXECUTED ffc054e0: 7c 63 f8 50 subf r3,r3,r31 <== NOT EXECUTED ffc054e4: 7c 63 1e 70 srawi r3,r3,3 <== NOT EXECUTED ffc054e8: 7c 63 01 d6 mullw r3,r3,r0 <== NOT EXECUTED ffc054ec: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc054f0: 48 00 8a 95 bl ffc0df84 <== NOT EXECUTED ffc054f4: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc054f8: 4b ff ff 60 b ffc05458 <== NOT EXECUTED rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { ffc054fc: 73 c0 02 00 andi. r0,r30,512 ffc05500: 3b 20 00 00 li r25,0 ffc05504: 3b 40 00 02 li r26,2 ffc05508: 41 82 fe f8 beq+ ffc05400 rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); ffc0550c: 7f a3 eb 78 mr r3,r29 ffc05510: 63 64 80 00 ori r4,r27,32768 ffc05514: 38 a0 00 00 li r5,0 ffc05518: 38 c0 00 00 li r6,0 ffc0551c: 4b ff f4 3d bl ffc04958 <== ALWAYS TAKEN if ( rc ) { ffc05520: 2f 83 00 00 cmpwi cr7,r3,0 ffc05524: 41 9e 00 14 beq- cr7,ffc05538 <== ALWAYS TAKEN rc = errno; ffc05528: 48 00 de 51 bl ffc13378 <__errno> <== NOT EXECUTED ffc0552c: 83 43 00 00 lwz r26,0(r3) <== NOT EXECUTED ffc05530: 2e 1a 00 00 cmpwi cr4,r26,0 <== NOT EXECUTED goto done; ffc05534: 4b ff ff 24 b ffc05458 <== 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 ); ffc05538: 7f a3 eb 78 mr r3,r29 ffc0553c: 48 00 f1 39 bl ffc14674 <== ALWAYS TAKEN ffc05540: 38 a0 00 00 li r5,0 ffc05544: 7c 64 1b 78 mr r4,r3 ffc05548: 7f 86 e3 78 mr r6,r28 ffc0554c: 7f a3 eb 78 mr r3,r29 ffc05550: 38 e0 00 01 li r7,1 ffc05554: 4b ff ee 0d bl ffc04360 <== ALWAYS TAKEN if ( status != 0 ) { /* The file did not exist */ ffc05558: 3b 20 00 00 li r25,0 ffc0555c: 2f 83 00 00 cmpwi cr7,r3,0 ffc05560: 3b 40 00 0d li r26,13 ffc05564: 40 be fe 9c bne- cr7,ffc05400 <== NEVER TAKEN ffc05568: 4b ff fd b4 b ffc0531c <== ALWAYS TAKEN */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; ffc0556c: 48 00 de 0d bl ffc13378 <__errno> <== NOT EXECUTED ffc05570: 83 43 00 00 lwz r26,0(r3) <== NOT EXECUTED ffc05574: 2e 1a 00 00 cmpwi cr4,r26,0 <== NOT EXECUTED ffc05578: 4b ff ff 5c b ffc054d4 <== NOT EXECUTED ffc0557c: 2e 1f 00 00 cmpwi cr4,r31,0 ffc05580: 4b ff fe 80 b ffc05400 <== ALWAYS TAKEN ffc051c8 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc051c8: 94 21 ff f0 stwu r1,-16(r1) ffc051cc: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { ffc051d0: 38 80 00 00 li r4,0 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc051d4: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { ffc051d8: 3f e0 ff c2 lis r31,-62 ffc051dc: 3b ff ee c8 addi r31,r31,-4408 ffc051e0: 7f e3 fb 78 mr r3,r31 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { ffc051e4: 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) { ffc051e8: 38 a0 00 00 li r5,0 ffc051ec: 4c c6 31 82 crclr 4*cr1+eq ffc051f0: 48 00 00 71 bl ffc05260 <== ALWAYS TAKEN ffc051f4: 2f 83 ff ff cmpwi cr7,r3,-1 ffc051f8: 41 9e 00 3c beq- cr7,ffc05234 /* * 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) ffc051fc: 7f e3 fb 78 mr r3,r31 ffc05200: 38 80 00 01 li r4,1 ffc05204: 38 a0 00 00 li r5,0 ffc05208: 4c c6 31 82 crclr 4*cr1+eq ffc0520c: 48 00 00 55 bl ffc05260 <== ALWAYS TAKEN ffc05210: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05214: 41 9e 00 34 beq- cr7,ffc05248 <== NEVER TAKEN rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) ffc05218: 7f e3 fb 78 mr r3,r31 ffc0521c: 38 80 00 01 li r4,1 ffc05220: 38 a0 00 00 li r5,0 ffc05224: 4c c6 31 82 crclr 4*cr1+eq <== ALWAYS TAKEN ffc05228: 48 00 00 39 bl ffc05260 <== ALWAYS TAKEN ffc0522c: 2f 83 ff ff cmpwi cr7,r3,-1 ffc05230: 41 9e 00 24 beq- cr7,ffc05254 <== NEVER TAKEN rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ } ffc05234: 80 01 00 14 lwz r0,20(r1) ffc05238: 83 e1 00 0c lwz r31,12(r1) ffc0523c: 38 21 00 10 addi r1,r1,16 ffc05240: 7c 08 03 a6 mtlr r0 ffc05244: 4e 80 00 20 blr <== ALWAYS TAKEN /* * But if we find /dev/console once, we better find it twice more * or something is REALLY wrong. */ if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ ffc05248: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED ffc0524c: 60 63 44 31 ori r3,r3,17457 <== NOT EXECUTED ffc05250: 48 00 3c 5d bl ffc08eac <== NOT EXECUTED if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ ffc05254: 3c 60 55 54 lis r3,21844 <== NOT EXECUTED ffc05258: 60 63 44 32 ori r3,r3,17458 <== NOT EXECUTED ffc0525c: 48 00 3c 51 bl ffc08eac <== NOT EXECUTED ffc05f38 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05f38: 94 21 ff e8 stwu r1,-24(r1) ffc05f3c: 7c 08 02 a6 mflr r0 ffc05f40: 90 01 00 1c stw r0,28(r1) int i; if (tty->termios.c_oflag & OPOST) { ffc05f44: 80 04 00 34 lwz r0,52(r4) /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05f48: 93 e1 00 14 stw r31,20(r1) ffc05f4c: 7c 9f 23 78 mr r31,r4 <== ALWAYS TAKEN int i; if (tty->termios.c_oflag & OPOST) { ffc05f50: 70 09 00 01 andi. r9,r0,1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { ffc05f54: 98 61 00 08 stb r3,8(r1) int i; if (tty->termios.c_oflag & OPOST) { ffc05f58: 41 82 00 50 beq- ffc05fa8 <== NEVER TAKEN switch (c) { ffc05f5c: 2f 83 00 09 cmpwi cr7,r3,9 ffc05f60: 41 9e 00 fc beq- cr7,ffc0605c ffc05f64: 2b 83 00 09 cmplwi cr7,r3,9 ffc05f68: 40 9d 00 64 ble- cr7,ffc05fcc <== NEVER TAKEN ffc05f6c: 2f 83 00 0a cmpwi cr7,r3,10 ffc05f70: 41 9e 00 7c beq- cr7,ffc05fec ffc05f74: 2f 83 00 0d cmpwi cr7,r3,13 <== ALWAYS TAKEN ffc05f78: 41 9e 00 ac beq- cr7,ffc06024 <== NEVER TAKEN if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) ffc05f7c: 70 09 00 02 andi. r9,r0,2 ffc05f80: 40 82 01 00 bne- ffc06080 <== NEVER TAKEN ffc05f84: 3d 20 00 00 lis r9,0 ffc05f88: 80 09 26 e0 lwz r0,9952(r9) c = toupper(c); if (!iscntrl(c)) ffc05f8c: 7c 60 1a 14 add r3,r0,r3 ffc05f90: 88 03 00 01 lbz r0,1(r3) ffc05f94: 70 09 00 20 andi. r9,r0,32 ffc05f98: 40 82 00 10 bne- ffc05fa8 <== NEVER TAKEN tty->column++; ffc05f9c: 81 3f 00 28 lwz r9,40(r31) ffc05fa0: 38 09 00 01 addi r0,r9,1 ffc05fa4: 90 1f 00 28 stw r0,40(r31) <== ALWAYS TAKEN break; } } rtems_termios_puts (&c, 1, tty); ffc05fa8: 7f e5 fb 78 mr r5,r31 ffc05fac: 38 61 00 08 addi r3,r1,8 ffc05fb0: 38 80 00 01 li r4,1 ffc05fb4: 4b ff fd f9 bl ffc05dac <== ALWAYS TAKEN } ffc05fb8: 80 01 00 1c lwz r0,28(r1) ffc05fbc: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc05fc0: 38 21 00 18 addi r1,r1,24 ffc05fc4: 7c 08 03 a6 mtlr r0 ffc05fc8: 4e 80 00 20 blr <== ALWAYS TAKEN oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { ffc05fcc: 2f 83 00 08 cmpwi cr7,r3,8 <== NOT EXECUTED ffc05fd0: 40 9e ff ac bne+ cr7,ffc05f7c <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) ffc05fd4: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED ffc05fd8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc05fdc: 40 bd ff cc ble- cr7,ffc05fa8 <== NOT EXECUTED tty->column--; ffc05fe0: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED ffc05fe4: 91 3f 00 28 stw r9,40(r31) <== NOT EXECUTED ffc05fe8: 4b ff ff c0 b ffc05fa8 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) ffc05fec: 70 09 00 20 andi. r9,r0,32 ffc05ff0: 41 82 00 0c beq- ffc05ffc <== ALWAYS TAKEN tty->column = 0; ffc05ff4: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc05ff8: 91 24 00 28 stw r9,40(r4) <== NOT EXECUTED if (tty->termios.c_oflag & ONLCR) { ffc05ffc: 70 09 00 04 andi. r9,r0,4 <== ALWAYS TAKEN ffc06000: 41 82 ff a8 beq+ ffc05fa8 <== NEVER TAKEN rtems_termios_puts ("\r", 1, tty); ffc06004: 3c 60 ff c2 lis r3,-62 <== ALWAYS TAKEN ffc06008: 38 63 f7 58 addi r3,r3,-2216 <== ALWAYS TAKEN ffc0600c: 38 80 00 01 li r4,1 ffc06010: 7f e5 fb 78 mr r5,r31 ffc06014: 4b ff fd 99 bl ffc05dac <== ALWAYS TAKEN tty->column = 0; ffc06018: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc0601c: 90 1f 00 28 stw r0,40(r31) ffc06020: 4b ff ff 88 b ffc05fa8 <== ALWAYS TAKEN } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) ffc06024: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED ffc06028: 41 82 00 10 beq- ffc06038 <== NOT EXECUTED ffc0602c: 81 24 00 28 lwz r9,40(r4) <== NOT EXECUTED ffc06030: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06034: 41 be ff 84 beq- cr7,ffc05fb8 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { ffc06038: 70 09 00 08 andi. r9,r0,8 <== NOT EXECUTED ffc0603c: 41 a2 ff a8 beq- ffc05fe4 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) ffc06040: 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'; ffc06044: 38 00 00 0a li r0,10 <== NOT EXECUTED ffc06048: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) ffc0604c: 41 a2 ff 5c beq- ffc05fa8 <== NOT EXECUTED tty->column = 0; ffc06050: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc06054: 90 1f 00 28 stw r0,40(r31) <== NOT EXECUTED ffc06058: 4b ff ff 50 b ffc05fa8 <== NOT EXECUTED tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { ffc0605c: 54 00 04 e8 rlwinm r0,r0,0,19,20 ffc06060: 2f 80 18 00 cmpwi cr7,r0,6144 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); ffc06064: 80 04 00 28 lwz r0,40(r4) ffc06068: 54 04 07 7e clrlwi r4,r0,29 ffc0606c: 20 84 00 08 subfic r4,r4,8 if ((tty->termios.c_oflag & TABDLY) == XTABS) { ffc06070: 41 9e 00 44 beq- cr7,ffc060b4 <== ALWAYS TAKEN tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; ffc06074: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc06078: 90 9f 00 28 stw r4,40(r31) <== NOT EXECUTED break; ffc0607c: 4b ff ff 2c b ffc05fa8 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); ffc06080: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06084: 80 09 26 e0 lwz r0,9952(r9) <== NOT EXECUTED ffc06088: 7c 69 1b 78 mr r9,r3 <== NOT EXECUTED ffc0608c: 7c 60 1a 14 add r3,r0,r3 <== NOT EXECUTED ffc06090: 89 63 00 01 lbz r11,1(r3) <== NOT EXECUTED ffc06094: 55 6b 07 be clrlwi r11,r11,30 <== NOT EXECUTED ffc06098: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED ffc0609c: 41 9e 00 10 beq- cr7,ffc060ac <== NOT EXECUTED ffc060a0: 55 23 06 3e clrlwi r3,r9,24 <== NOT EXECUTED ffc060a4: 98 61 00 08 stb r3,8(r1) <== NOT EXECUTED ffc060a8: 4b ff fe e4 b ffc05f8c <== NOT EXECUTED ffc060ac: 39 29 ff e0 addi r9,r9,-32 <== NOT EXECUTED ffc060b0: 4b ff ff f0 b ffc060a0 <== NOT EXECUTED break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; ffc060b4: 7c 04 02 14 add r0,r4,r0 ffc060b8: 90 1f 00 28 stw r0,40(r31) rtems_termios_puts ( " ", i, tty); ffc060bc: 3c 60 ff c2 lis r3,-62 ffc060c0: 38 63 f7 5c addi r3,r3,-2212 ffc060c4: 7f e5 fb 78 mr r5,r31 ffc060c8: 4b ff fc e5 bl ffc05dac <== ALWAYS TAKEN return; ffc060cc: 4b ff fe ec b ffc05fb8 <== ALWAYS TAKEN ffc075fc : long pathconf( const char *path, int name ) { ffc075fc: 94 21 ff e8 stwu r1,-24(r1) ffc07600: 7c 08 02 a6 mflr r0 ffc07604: 93 c1 00 10 stw r30,16(r1) ffc07608: 7c 9e 23 78 mr r30,r4 int status; int fd; fd = open( path, O_RDONLY ); ffc0760c: 38 80 00 00 li r4,0 long pathconf( const char *path, int name ) { ffc07610: 93 a1 00 0c stw r29,12(r1) int status; int fd; fd = open( path, O_RDONLY ); if ( fd == -1 ) ffc07614: 3b a0 ff ff li r29,-1 long pathconf( const char *path, int name ) { ffc07618: 93 e1 00 14 stw r31,20(r1) ffc0761c: 90 01 00 1c stw r0,28(r1) int status; int fd; fd = open( path, O_RDONLY ); ffc07620: 4c c6 31 82 crclr 4*cr1+eq ffc07624: 4b ff fc a1 bl ffc072c4 <== ALWAYS TAKEN if ( fd == -1 ) ffc07628: 2f 83 ff ff cmpwi cr7,r3,-1 ) { int status; int fd; fd = open( path, O_RDONLY ); ffc0762c: 7c 7f 1b 78 mr r31,r3 if ( fd == -1 ) ffc07630: 41 9e 00 18 beq- cr7,ffc07648 return -1; status = fpathconf( fd, name ); ffc07634: 7f c4 f3 78 mr r4,r30 ffc07638: 4b ff e6 35 bl ffc05c6c <== ALWAYS TAKEN ffc0763c: 7c 7d 1b 78 mr r29,r3 (void) close( fd ); ffc07640: 7f e3 fb 78 mr r3,r31 ffc07644: 4b ff de 09 bl ffc0544c <== ALWAYS TAKEN return status; } ffc07648: 80 01 00 1c lwz r0,28(r1) ffc0764c: 7f a3 eb 78 mr r3,r29 ffc07650: 83 c1 00 10 lwz r30,16(r1) ffc07654: 7c 08 03 a6 mtlr r0 ffc07658: 83 a1 00 0c lwz r29,12(r1) ffc0765c: 83 e1 00 14 lwz r31,20(r1) ffc07660: 38 21 00 18 addi r1,r1,24 ffc07664: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0acb8 : /* * 3.4.2 Suspend Process Execution, P1003.1b-1993, p. 81 */ int pause( void ) { ffc0acb8: 94 21 ff e0 stwu r1,-32(r1) ffc0acbc: 7c 08 02 a6 mflr r0 ffc0acc0: 93 e1 00 1c stw r31,28(r1) sigset_t all_signals; int status; (void) sigfillset( &all_signals ); ffc0acc4: 3b e1 00 08 addi r31,r1,8 ffc0acc8: 7f e3 fb 78 mr r3,r31 /* * 3.4.2 Suspend Process Execution, P1003.1b-1993, p. 81 */ int pause( void ) { ffc0accc: 90 01 00 24 stw r0,36(r1) sigset_t all_signals; int status; (void) sigfillset( &all_signals ); ffc0acd0: 48 00 0d 1d bl ffc0b9ec <== ALWAYS TAKEN status = sigtimedwait( &all_signals, NULL, NULL ); ffc0acd4: 7f e3 fb 78 mr r3,r31 ffc0acd8: 38 80 00 00 li r4,0 ffc0acdc: 38 a0 00 00 li r5,0 ffc0ace0: 48 00 0f 3d bl ffc0bc1c <== ALWAYS TAKEN return status; } ffc0ace4: 80 01 00 24 lwz r0,36(r1) ffc0ace8: 83 e1 00 1c lwz r31,28(r1) ffc0acec: 38 21 00 20 addi r1,r1,32 ffc0acf0: 7c 08 03 a6 mtlr r0 ffc0acf4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07668 : int pipe( int filsdes[2] ) { if (filsdes == NULL) { ffc07668: 2f 83 00 00 cmpwi cr7,r3,0 extern int pipe_create(int filsdes[2]); int pipe( int filsdes[2] ) { ffc0766c: 94 21 ff f8 stwu r1,-8(r1) ffc07670: 7c 08 02 a6 mflr r0 ffc07674: 90 01 00 0c stw r0,12(r1) if (filsdes == NULL) { ffc07678: 41 9e 00 18 beq- cr7,ffc07690 errno = EFAULT; return -1; } return pipe_create(filsdes); ffc0767c: 48 00 7a d1 bl ffc0f14c <== ALWAYS TAKEN } ffc07680: 80 01 00 0c lwz r0,12(r1) ffc07684: 38 21 00 08 addi r1,r1,8 ffc07688: 7c 08 03 a6 mtlr r0 ffc0768c: 4e 80 00 20 blr <== ALWAYS TAKEN int pipe( int filsdes[2] ) { if (filsdes == NULL) { errno = EFAULT; ffc07690: 48 00 f3 a5 bl ffc16a34 <__errno> <== ALWAYS TAKEN ffc07694: 38 00 00 0e li r0,14 ffc07698: 90 03 00 00 stw r0,0(r3) ffc0769c: 38 60 ff ff li r3,-1 return -1; ffc076a0: 4b ff ff e0 b ffc07680 <== ALWAYS TAKEN ffc12688 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc12688: 94 21 ff b8 stwu r1,-72(r1) ffc1268c: 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) ffc12690: 38 80 00 03 li r4,3 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc12694: 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) ffc12698: 3f c0 ff c2 lis r30,-62 ffc1269c: 3b de fd 2c addi r30,r30,-724 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc126a0: 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) ffc126a4: 3b e1 00 18 addi r31,r1,24 ffc126a8: 38 a0 00 07 li r5,7 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc126ac: 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) ffc126b0: 7f e6 fb 78 mr r6,r31 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc126b4: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_location_info_t loc; rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) ffc126b8: 38 e0 00 01 li r7,1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { ffc126bc: 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) ffc126c0: 7f c3 f3 78 mr r3,r30 ffc126c4: 4b ff 1c 9d bl ffc04360 <== ALWAYS TAKEN ffc126c8: 2f 83 00 00 cmpwi cr7,r3,0 ffc126cc: 40 9e 01 38 bne- cr7,ffc12804 <== ALWAYS TAKEN return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); ffc126d0: 81 21 00 24 lwz r9,36(r1) <== NOT EXECUTED ffc126d4: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc126d8: 41 9e 00 1c beq- cr7,ffc126f4 <== NOT EXECUTED ffc126dc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc126e0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc126e4: 41 9e 00 10 beq- cr7,ffc126f4 <== NOT EXECUTED ffc126e8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc126ec: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc126f0: 4e 80 04 21 bctrl <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc126f4: 3d 20 00 00 lis r9,0 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc126f8: 3d 40 ff c2 lis r10,-62 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc126fc: a1 09 27 f8 lhz r8,10232(r9) else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc12700: 39 6a fd 34 addi r11,r10,-716 ffc12704: 81 4a fd 34 lwz r10,-716(r10) ffc12708: a0 0b 00 08 lhz r0,8(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc1270c: 3c 80 ff c2 lis r4,-62 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc12710: 81 6b 00 04 lwz r11,4(r11) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc12714: 7d 05 43 78 mr r5,r8 ffc12718: 38 84 fd 40 addi r4,r4,-704 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc1271c: 91 41 00 08 stw r10,8(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc12720: 39 08 00 01 addi r8,r8,1 ffc12724: 38 61 00 12 addi r3,r1,18 ffc12728: 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) { ffc1272c: 3b e1 00 08 addi r31,r1,8 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); ffc12730: 91 61 00 0c stw r11,12(r1) ffc12734: b0 01 00 10 sth r0,16(r1) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); ffc12738: 4c c6 31 82 crclr 4*cr1+eq ffc1273c: 48 00 1b 05 bl ffc14240 <== ALWAYS TAKEN /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { ffc12740: 7f e3 fb 78 mr r3,r31 ffc12744: 38 80 01 80 li r4,384 ffc12748: 48 00 01 99 bl ffc128e0 <== ALWAYS TAKEN ffc1274c: 2f 83 00 00 cmpwi cr7,r3,0 ffc12750: 40 9e 00 90 bne- cr7,ffc127e0 <== NEVER TAKEN 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); ffc12754: 7f e3 fb 78 mr r3,r31 ffc12758: 38 80 40 00 li r4,16384 ffc1275c: 4c c6 31 82 crclr 4*cr1+eq ffc12760: 4b ff 2b 01 bl ffc05260 <== ALWAYS TAKEN if (filsdes[0] < 0) { ffc12764: 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); ffc12768: 90 7d 00 00 stw r3,0(r29) if (filsdes[0] < 0) { ffc1276c: 41 9c 00 d4 blt- cr7,ffc12840 <== ALWAYS TAKEN the file node will be deleted after it is closed by all. */ unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); ffc12770: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc12774: 80 09 26 8c lwz r0,9868(r9) <== NOT EXECUTED ffc12778: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc1277c: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc12780: 41 9c 00 ac blt- cr7,ffc1282c <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; ffc12784: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); ffc12788: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1278c: 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; ffc12790: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc12794: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { ffc12798: 3b c0 00 00 li r30,0 <== NOT EXECUTED else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); ffc1279c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc127a0: 4b ff 2a c1 bl ffc05260 <== NOT EXECUTED if (filsdes[1] < 0) { ffc127a4: 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); ffc127a8: 90 7d 00 04 stw r3,4(r29) <== NOT EXECUTED if (filsdes[1] < 0) { ffc127ac: 41 9c 00 a8 blt- cr7,ffc12854 <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); ffc127b0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc127b4: 48 00 01 59 bl ffc1290c <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); ffc127b8: 48 00 0b c1 bl ffc13378 <__errno> <== ALWAYS TAKEN } ffc127bc: 80 01 00 4c lwz r0,76(r1) close(filsdes[0]); } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); ffc127c0: 93 c3 00 00 stw r30,0(r3) } ffc127c4: 38 60 ff ff li r3,-1 ffc127c8: 7c 08 03 a6 mtlr r0 ffc127cc: 83 a1 00 3c lwz r29,60(r1) ffc127d0: 83 c1 00 40 lwz r30,64(r1) ffc127d4: 83 e1 00 44 lwz r31,68(r1) ffc127d8: 38 21 00 48 addi r1,r1,72 ffc127dc: 4e 80 00 20 blr <== ALWAYS TAKEN memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { if (errno != EEXIST){ ffc127e0: 48 00 0b 99 bl ffc13378 <__errno> <== NOT EXECUTED } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } ffc127e4: 80 01 00 4c lwz r0,76(r1) <== NOT EXECUTED ffc127e8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc127ec: 83 a1 00 3c lwz r29,60(r1) <== NOT EXECUTED ffc127f0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc127f4: 83 c1 00 40 lwz r30,64(r1) <== NOT EXECUTED ffc127f8: 83 e1 00 44 lwz r31,68(r1) <== NOT EXECUTED ffc127fc: 38 21 00 48 addi r1,r1,72 <== NOT EXECUTED ffc12800: 4e 80 00 20 blr <== NOT EXECUTED rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) != 0) { if (errno != ENOENT) ffc12804: 48 00 0b 75 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc12808: 80 03 00 00 lwz r0,0(r3) ffc1280c: 2f 80 00 02 cmpwi cr7,r0,2 ffc12810: 40 9e ff d4 bne+ cr7,ffc127e4 <== NEVER TAKEN return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) ffc12814: 7f c3 f3 78 mr r3,r30 ffc12818: 38 80 03 ff li r4,1023 ffc1281c: 4b ff 21 11 bl ffc0492c <== ALWAYS TAKEN ffc12820: 2f 83 00 00 cmpwi cr7,r3,0 ffc12824: 41 9e fe d0 beq+ cr7,ffc126f4 <== ALWAYS TAKEN ffc12828: 4b ff ff bc b ffc127e4 <== NOT EXECUTED the file node will be deleted after it is closed by all. */ unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); ffc1282c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc12830: 1c 63 00 48 mulli r3,r3,72 <== NOT EXECUTED ffc12834: 81 29 27 4c lwz r9,10060(r9) <== NOT EXECUTED ffc12838: 7d 29 1a 14 add r9,r9,r3 <== NOT EXECUTED ffc1283c: 4b ff ff 48 b ffc12784 <== NOT EXECUTED } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); if (filsdes[0] < 0) { err = errno; ffc12840: 48 00 0b 39 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc12844: 83 c3 00 00 lwz r30,0(r3) /* Delete file at errors, or else if pipe is successfully created the file node will be deleted after it is closed by all. */ unlink(fifopath); ffc12848: 7f e3 fb 78 mr r3,r31 ffc1284c: 48 00 00 c1 bl ffc1290c <== ALWAYS TAKEN ffc12850: 4b ff ff 68 b ffc127b8 <== ALWAYS TAKEN iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno; ffc12854: 48 00 0b 25 bl ffc13378 <__errno> <== NOT EXECUTED ffc12858: 83 c3 00 00 lwz r30,0(r3) <== NOT EXECUTED close(filsdes[0]); ffc1285c: 80 7d 00 00 lwz r3,0(r29) <== NOT EXECUTED ffc12860: 4b ff b7 25 bl ffc0df84 <== NOT EXECUTED ffc12864: 4b ff ff 4c b ffc127b0 <== NOT EXECUTED ffc106c4 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc106c4: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc106c8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc106cc: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED if (cmd == FIONREAD) { ffc106d0: 3c 00 40 04 lis r0,16388 <== NOT EXECUTED ffc106d4: 60 00 66 7f ori r0,r0,26239 <== NOT EXECUTED ffc106d8: 7f 84 00 00 cmpw cr7,r4,r0 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc106dc: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc106e0: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc106e4: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED if (cmd == FIONREAD) { ffc106e8: 38 60 ff ea li r3,-22 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { ffc106ec: 7c bf 2b 78 mr r31,r5 <== NOT EXECUTED if (cmd == FIONREAD) { ffc106f0: 41 9e 00 1c beq- cr7,ffc1070c <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; } return -EINVAL; } ffc106f4: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc106f8: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc106fc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10700: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc10704: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc10708: 4e 80 00 20 blr <== NOT EXECUTED void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { if (buffer == NULL) ffc1070c: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc10710: 38 60 ff f2 li r3,-14 <== NOT EXECUTED ffc10714: 41 9e ff e0 beq+ cr7,ffc106f4 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) ffc10718: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED ffc1071c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10720: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10724: 4b ff 7e 61 bl ffc08584 <== NOT EXECUTED ffc10728: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc1072c: 38 60 ff fc li r3,-4 <== NOT EXECUTED ffc10730: 40 9e ff c4 bne+ cr7,ffc106f4 <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc10734: 80 1e 00 0c lwz r0,12(r30) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10738: 80 7e 00 28 lwz r3,40(r30) <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; ffc1073c: 90 1f 00 00 stw r0,0(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10740: 4b ff 7f a5 bl ffc086e4 <== NOT EXECUTED ffc10744: 38 60 00 00 li r3,0 <== NOT EXECUTED return 0; ffc10748: 4b ff ff ac b ffc106f4 <== NOT EXECUTED ffc1063c : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } ffc1063c: 38 60 ff e3 li r3,-29 <== NOT EXECUTED ffc10640: 4e 80 00 20 blr <== NOT EXECUTED ffc1074c : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc1074c: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc10750: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc10754: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc10758: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc1075c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc10760: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc10764: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc10768: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc1076c: 38 80 00 00 li r4,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc10770: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED ffc10774: 7c be 2b 78 mr r30,r5 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc10778: 38 a0 00 00 li r5,0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc1077c: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc10780: 3b 40 ff fc li r26,-4 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { ffc10784: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED ffc10788: 7c db 33 78 mr r27,r6 <== NOT EXECUTED ffc1078c: 92 e1 00 1c stw r23,28(r1) <== NOT EXECUTED ffc10790: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED ffc10794: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc10798: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) ffc1079c: 4b ff 7d e9 bl ffc08584 <== NOT EXECUTED ffc107a0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc107a4: 40 9e 00 ac bne- cr7,ffc10850 <== NOT EXECUTED return -EINTR; while (read < count) { ffc107a8: 2f 9e 00 00 cmpwi cr7,r30,0 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) ffc107ac: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc107b0: 3b 40 00 00 li r26,0 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { ffc107b4: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc107b8: 41 9e 00 88 beq- cr7,ffc10840 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); ffc107bc: 3b 01 00 08 addi r24,r1,8 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { ffc107c0: 83 9f 00 0c lwz r28,12(r31) <== NOT EXECUTED ffc107c4: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc107c8: 40 9e 00 fc bne- cr7,ffc108c4 <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) ffc107cc: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc107d0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc107d4: 41 9e 01 78 beq- cr7,ffc1094c <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { ffc107d8: 80 1b 00 18 lwz r0,24(r27) <== NOT EXECUTED ffc107dc: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc107e0: 40 82 01 74 bne- ffc10954 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; ffc107e4: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc107e8: 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 ++; ffc107ec: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED ffc107f0: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc107f4: 4b ff 7e f1 bl ffc086e4 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) ffc107f8: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc107fc: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10800: 48 00 16 f5 bl ffc11ef4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10804: 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)) ffc10808: 33 83 ff ff addic r28,r3,-1 <== NOT EXECUTED ffc1080c: 7f 9c e1 10 subfe r28,r28,r28 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10810: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10814: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10818: 4b ff 7d 6d bl ffc08584 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ffc1081c: 57 9c 07 7a rlwinm r28,r28,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10820: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ffc10824: 3b 9c ff fc addi r28,r28,-4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10828: 40 9e 01 34 bne- cr7,ffc1095c <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) ffc1082c: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; ffc10830: 81 3f 00 18 lwz r9,24(r31) <== NOT EXECUTED ffc10834: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc10838: 90 1f 00 18 stw r0,24(r31) <== NOT EXECUTED if (ret != 0) ffc1083c: 41 9e ff 84 beq+ cr7,ffc107c0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); ffc10840: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10844: 4b ff 7e a1 bl ffc086e4 <== NOT EXECUTED out_nolock: if (read > 0) ffc10848: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc1084c: 40 9d 00 3c ble- cr7,ffc10888 <== NOT EXECUTED return read; return ret; } ffc10850: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc10854: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc10858: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc1085c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10860: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc10864: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc10868: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc1086c: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc10870: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc10874: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc10878: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc1087c: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc10880: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc10884: 4e 80 00 20 blr <== NOT EXECUTED ffc10888: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED out_locked: PIPE_UNLOCK(pipe); out_nolock: if (read > 0) ffc1088c: 7f 9a e3 78 mr r26,r28 <== NOT EXECUTED return read; return ret; } ffc10890: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc10894: 82 e1 00 1c lwz r23,28(r1) <== NOT EXECUTED ffc10898: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1089c: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc108a0: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc108a4: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc108a8: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc108ac: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc108b0: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc108b4: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc108b8: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc108bc: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc108c0: 4e 80 00 20 blr <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); ffc108c4: 7c 19 f0 50 subf r0,r25,r30 <== NOT EXECUTED ffc108c8: 7f 9c 00 40 cmplw cr7,r28,r0 <== NOT EXECUTED ffc108cc: 40 9d 00 08 ble- cr7,ffc108d4 <== NOT EXECUTED ffc108d0: 7c 1c 03 78 mr r28,r0 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; ffc108d4: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc108d8: 82 ff 00 04 lwz r23,4(r31) <== NOT EXECUTED ffc108dc: 7e e0 b8 50 subf r23,r0,r23 <== NOT EXECUTED if (chunk > chunk1) { ffc108e0: 7f 9c b8 00 cmpw cr7,r28,r23 <== NOT EXECUTED ffc108e4: 41 9d 00 80 bgt- cr7,ffc10964 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); ffc108e8: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc108ec: 7c 7d ca 14 add r3,r29,r25 <== NOT EXECUTED ffc108f0: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED ffc108f4: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc108f8: 48 00 36 69 bl ffc13f60 <== NOT EXECUTED pipe->Start += chunk; ffc108fc: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED pipe->Start %= pipe->Size; ffc10900: 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; ffc10904: 7d 3c 4a 14 add r9,r28,r9 <== NOT EXECUTED pipe->Start %= pipe->Size; pipe->Length -= chunk; ffc10908: 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; ffc1090c: 7d 49 5b 96 divwu r10,r9,r11 <== NOT EXECUTED pipe->Length -= chunk; ffc10910: 7c 1c 00 50 subf r0,r28,r0 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc10914: 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; ffc10918: 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; ffc1091c: 7d 6a 59 d6 mullw r11,r10,r11 <== NOT EXECUTED ffc10920: 7d 2b 48 50 subf r9,r11,r9 <== NOT EXECUTED ffc10924: 91 3f 00 08 stw r9,8(r31) <== NOT EXECUTED pipe->Length -= chunk; /* For buffering optimization */ if (PIPE_EMPTY(pipe)) ffc10928: 40 9e 00 08 bne- cr7,ffc10930 <== NOT EXECUTED pipe->Start = 0; ffc1092c: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED if (pipe->waitingWriters > 0) ffc10930: 80 1f 00 1c lwz r0,28(r31) <== NOT EXECUTED ffc10934: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10938: 40 9e 00 58 bne- cr7,ffc10990 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; ffc1093c: 7f 5a e2 14 add r26,r26,r28 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { ffc10940: 7f 9a f0 40 cmplw cr7,r26,r30 <== NOT EXECUTED ffc10944: 7f 59 d3 78 mr r25,r26 <== NOT EXECUTED ffc10948: 41 9c fe 78 blt+ cr7,ffc107c0 <== NOT EXECUTED ffc1094c: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc10950: 4b ff fe f0 b ffc10840 <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { ffc10954: 3b 80 ff f5 li r28,-11 <== NOT EXECUTED ffc10958: 4b ff fe e8 b ffc10840 <== 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)) { ffc1095c: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc10960: 4b ff fe e8 b ffc10848 <== NOT EXECUTED /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; if (chunk > chunk1) { memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); ffc10964: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc10968: 7e e5 bb 78 mr r5,r23 <== NOT EXECUTED ffc1096c: 7c 7d ca 14 add r3,r29,r25 <== NOT EXECUTED ffc10970: 7c 84 02 14 add r4,r4,r0 <== NOT EXECUTED ffc10974: 48 00 35 ed bl ffc13f60 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); ffc10978: 7c 79 ba 14 add r3,r25,r23 <== NOT EXECUTED ffc1097c: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc10980: 7c 7d 1a 14 add r3,r29,r3 <== NOT EXECUTED ffc10984: 7c b7 e0 50 subf r5,r23,r28 <== NOT EXECUTED ffc10988: 48 00 35 d9 bl ffc13f60 <== NOT EXECUTED ffc1098c: 4b ff ff 70 b ffc108fc <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); ffc10990: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc10994: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc10998: 48 00 14 c5 bl ffc11e5c <== NOT EXECUTED ffc1099c: 4b ff ff a0 b ffc1093c <== NOT EXECUTED ffc10c28 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10c28: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc10c2c: 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, ffc10c30: 38 a0 00 00 li r5,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10c34: 90 01 00 34 stw r0,52(r1) <== NOT EXECUTED ffc10c38: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED pipe_control_t *pipe = *pipep; ffc10c3c: 83 e3 00 00 lwz r31,0(r3) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10c40: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED ffc10c44: 7c 7c 1b 78 mr r28,r3 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, ffc10c48: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10c4c: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED ffc10c50: 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, ffc10c54: 38 80 00 00 li r4,0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { ffc10c58: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED ffc10c5c: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, ffc10c60: 4b ff 79 25 bl ffc08584 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) ffc10c64: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10c68: 40 9e 01 64 bne- cr7,ffc10dcc <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); ffc10c6c: 83 be 00 18 lwz r29,24(r30) <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc10c70: 73 a0 00 02 andi. r0,r29,2 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); ffc10c74: 57 bd 07 7c rlwinm r29,r29,0,29,30 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) ffc10c78: 41 82 00 10 beq- ffc10c88 <== NOT EXECUTED pipe->Readers --; ffc10c7c: 81 3f 00 10 lwz r9,16(r31) <== NOT EXECUTED ffc10c80: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc10c84: 90 1f 00 10 stw r0,16(r31) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) ffc10c88: 73 a0 00 04 andi. r0,r29,4 <== NOT EXECUTED ffc10c8c: 40 82 00 84 bne- ffc10d10 <== NOT EXECUTED pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, ffc10c90: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc10c94: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10c98: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10c9c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10ca0: 4b ff 78 e5 bl ffc08584 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) ffc10ca4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10ca8: 40 9e 01 24 bne- cr7,ffc10dcc <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); ffc10cac: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10cb0: 4b ff 7a 35 bl ffc086e4 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { ffc10cb4: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc10cb8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10cbc: 40 9e 00 64 bne- cr7,ffc10d20 <== NOT EXECUTED ffc10cc0: 83 7f 00 14 lwz r27,20(r31) <== NOT EXECUTED ffc10cc4: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc10cc8: 41 9e 00 a8 beq- cr7,ffc10d70 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) ffc10ccc: 2f 9d 00 04 cmpwi cr7,r29,4 <== NOT EXECUTED ffc10cd0: 41 be 00 10 beq+ cr7,ffc10ce0 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); ffc10cd4: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc10cd8: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc10cdc: 48 00 11 81 bl ffc11e5c <== NOT EXECUTED else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) PIPE_WAKEUPREADERS(pipe); rtems_semaphore_release(rtems_pipe_semaphore); ffc10ce0: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10ce4: 4b ff 7a 01 bl ffc086e4 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc10ce8: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc10cec: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc10cf0: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc10cf4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10cf8: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc10cfc: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc10d00: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc10d04: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc10d08: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc10d0c: 4e 80 00 20 blr <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; ffc10d10: 81 3f 00 14 lwz r9,20(r31) <== NOT EXECUTED ffc10d14: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc10d18: 90 1f 00 14 stw r0,20(r31) <== NOT EXECUTED ffc10d1c: 4b ff ff 74 b ffc10c90 <== NOT EXECUTED *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) ffc10d20: 80 1f 00 14 lwz r0,20(r31) <== NOT EXECUTED ffc10d24: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10d28: 40 be ff b8 bne- cr7,ffc10ce0 <== NOT EXECUTED ffc10d2c: 2f 9d 00 02 cmpwi cr7,r29,2 <== NOT EXECUTED ffc10d30: 41 be ff b0 beq- cr7,ffc10ce0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); ffc10d34: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc10d38: 38 81 00 08 addi r4,r1,8 <== NOT EXECUTED ffc10d3c: 48 00 11 21 bl ffc11e5c <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); ffc10d40: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10d44: 4b ff 79 a1 bl ffc086e4 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc10d48: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc10d4c: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc10d50: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc10d54: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10d58: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc10d5c: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc10d60: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc10d64: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc10d68: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc10d6c: 4e 80 00 20 blr <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); ffc10d70: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc10d74: 48 00 10 61 bl ffc11dd4 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); ffc10d78: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc10d7c: 48 00 10 59 bl ffc11dd4 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); ffc10d80: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10d84: 4b ff 77 25 bl ffc084a8 <== NOT EXECUTED free(pipe->Buffer); ffc10d88: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10d8c: 4b ff 36 dd bl ffc04468 <== NOT EXECUTED free(pipe); ffc10d90: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc10d94: 4b ff 36 d5 bl ffc04468 <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; ffc10d98: 93 7c 00 00 stw r27,0(r28) <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) PIPE_WAKEUPREADERS(pipe); rtems_semaphore_release(rtems_pipe_semaphore); ffc10d9c: 80 7e 29 90 lwz r3,10640(r30) <== NOT EXECUTED ffc10da0: 4b ff 79 45 bl ffc086e4 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } ffc10da4: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc10da8: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc10dac: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc10db0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc10db4: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc10db8: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc10dbc: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc10dc0: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc10dc4: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc10dc8: 4e 80 00 20 blr <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); ffc10dcc: 4b ff 80 e1 bl ffc08eac <== NOT EXECUTED ffc109a0 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc109a0: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc109a4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc109a8: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc109ac: 7c be 2b 79 mr. r30,r5 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc109b0: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc109b4: 3b 80 00 00 li r28,0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { ffc109b8: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc109bc: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED ffc109c0: 93 e1 00 3c stw r31,60(r1) <== NOT EXECUTED ffc109c4: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc109c8: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc109cc: 93 01 00 20 stw r24,32(r1) <== NOT EXECUTED ffc109d0: 93 21 00 24 stw r25,36(r1) <== NOT EXECUTED ffc109d4: 93 41 00 28 stw r26,40(r1) <== NOT EXECUTED ffc109d8: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) ffc109dc: 40 82 00 38 bne- ffc10a14 <== NOT EXECUTED #endif if (written > 0) return written; return ret; } ffc109e0: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc109e4: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc109e8: 83 01 00 20 lwz r24,32(r1) <== NOT EXECUTED ffc109ec: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc109f0: 83 21 00 24 lwz r25,36(r1) <== NOT EXECUTED ffc109f4: 83 41 00 28 lwz r26,40(r1) <== NOT EXECUTED ffc109f8: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc109fc: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc10a00: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc10a04: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc10a08: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc10a0c: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc10a10: 4e 80 00 20 blr <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) ffc10a14: 80 63 00 28 lwz r3,40(r3) <== NOT EXECUTED ffc10a18: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10a1c: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10a20: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ffc10a24: 4b ff 7b 61 bl ffc08584 <== NOT EXECUTED ffc10a28: 3b 80 ff fc li r28,-4 <== NOT EXECUTED ffc10a2c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10a30: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED ffc10a34: 40 be ff ac bne- cr7,ffc109e0 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { ffc10a38: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc10a3c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10a40: 41 9e 01 58 beq- cr7,ffc10b98 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; ffc10a44: 81 3f 00 04 lwz r9,4(r31) <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { ffc10a48: 3b 40 00 01 li r26,1 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; ffc10a4c: 7f 9e 48 40 cmplw cr7,r30,r9 <== NOT EXECUTED ffc10a50: 41 9d 00 08 bgt- cr7,ffc10a58 <== NOT EXECUTED ffc10a54: 7f da f3 78 mr r26,r30 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { ffc10a58: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc10a5c: 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); ffc10a60: 3b 01 00 08 addi r24,r1,8 <== NOT EXECUTED /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { while (PIPE_SPACE(pipe) < chunk) { ffc10a64: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED ffc10a68: 7f 60 48 50 subf r27,r0,r9 <== NOT EXECUTED ffc10a6c: 7f 9b d0 40 cmplw cr7,r27,r26 <== NOT EXECUTED ffc10a70: 40 9c 00 94 bge- cr7,ffc10b04 <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { ffc10a74: 80 06 00 18 lwz r0,24(r6) <== NOT EXECUTED ffc10a78: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc10a7c: 40 82 01 64 bne- ffc10be0 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; ffc10a80: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10a84: 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 ++; ffc10a88: 38 09 00 01 addi r0,r9,1 <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10a8c: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; ffc10a90: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED PIPE_UNLOCK(pipe); ffc10a94: 4b ff 7c 51 bl ffc086e4 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) ffc10a98: 80 7f 00 30 lwz r3,48(r31) <== NOT EXECUTED ffc10a9c: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc10aa0: 48 00 14 55 bl ffc11ef4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10aa4: 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)) ffc10aa8: 33 63 ff ff addic r27,r3,-1 <== NOT EXECUTED ffc10aac: 7f 7b d9 10 subfe r27,r27,r27 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10ab0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10ab4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc10ab8: 4b ff 7a cd bl ffc08584 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ffc10abc: 57 7b 07 7a rlwinm r27,r27,0,29,29 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10ac0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc10ac4: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ffc10ac8: 3b 7b ff fc addi r27,r27,-4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { ffc10acc: 40 9e 01 0c bne- cr7,ffc10bd8 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; if (ret != 0) ffc10ad0: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; ffc10ad4: 81 3f 00 1c lwz r9,28(r31) <== NOT EXECUTED ffc10ad8: 38 09 ff ff addi r0,r9,-1 <== NOT EXECUTED ffc10adc: 90 1f 00 1c stw r0,28(r31) <== NOT EXECUTED if (ret != 0) ffc10ae0: 40 9e 00 c0 bne- cr7,ffc10ba0 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { ffc10ae4: 80 1f 00 10 lwz r0,16(r31) <== NOT EXECUTED ffc10ae8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10aec: 41 9e 00 d4 beq- cr7,ffc10bc0 <== NOT EXECUTED ffc10af0: 81 3f 00 04 lwz r9,4(r31) <== NOT EXECUTED /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { while (PIPE_SPACE(pipe) < chunk) { ffc10af4: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED ffc10af8: 7f 60 48 50 subf r27,r0,r9 <== NOT EXECUTED ffc10afc: 7f 9b d0 40 cmplw cr7,r27,r26 <== NOT EXECUTED ffc10b00: 41 9c ff 74 blt+ cr7,ffc10a74 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); ffc10b04: 7d 79 f0 50 subf r11,r25,r30 <== NOT EXECUTED ffc10b08: 7f 9b 58 40 cmplw cr7,r27,r11 <== NOT EXECUTED ffc10b0c: 40 9d 00 08 ble- cr7,ffc10b14 <== NOT EXECUTED ffc10b10: 7d 7b 5b 78 mr r27,r11 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); ffc10b14: 81 7f 00 08 lwz r11,8(r31) <== NOT EXECUTED ffc10b18: 7c 00 5a 14 add r0,r0,r11 <== NOT EXECUTED ffc10b1c: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED ffc10b20: 7d 6b 49 d6 mullw r11,r11,r9 <== NOT EXECUTED ffc10b24: 7c 0b 00 50 subf r0,r11,r0 <== NOT EXECUTED ffc10b28: 7f 40 48 50 subf r26,r0,r9 <== NOT EXECUTED if (chunk > chunk1) { ffc10b2c: 7f 9b d0 00 cmpw cr7,r27,r26 <== NOT EXECUTED ffc10b30: 40 9d 00 b8 ble- cr7,ffc10be8 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); ffc10b34: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10b38: 7c 9d ca 14 add r4,r29,r25 <== NOT EXECUTED ffc10b3c: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc10b40: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ffc10b44: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc10b48: 48 00 34 19 bl ffc13f60 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); ffc10b4c: 7c 9a ca 14 add r4,r26,r25 <== NOT EXECUTED ffc10b50: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10b54: 7c 9d 22 14 add r4,r29,r4 <== NOT EXECUTED ffc10b58: 7c ba d8 50 subf r5,r26,r27 <== NOT EXECUTED ffc10b5c: 48 00 34 05 bl ffc13f60 <== NOT EXECUTED ffc10b60: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; if (pipe->waitingReaders > 0) ffc10b64: 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; ffc10b68: 80 1f 00 0c lwz r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc10b6c: 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; ffc10b70: 7c 00 da 14 add r0,r0,r27 <== NOT EXECUTED ffc10b74: 90 1f 00 0c stw r0,12(r31) <== NOT EXECUTED if (pipe->waitingReaders > 0) ffc10b78: 40 9e 00 90 bne- cr7,ffc10c08 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; ffc10b7c: 7f 9c da 14 add r28,r28,r27 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { ffc10b80: 7f 9e e0 40 cmplw cr7,r30,r28 <== NOT EXECUTED ffc10b84: 7f 99 e3 78 mr r25,r28 <== NOT EXECUTED ffc10b88: 40 9d 00 98 ble- cr7,ffc10c20 <== NOT EXECUTED ffc10b8c: 81 3f 00 04 lwz r9,4(r31) <== NOT EXECUTED ffc10b90: 3b 40 00 01 li r26,1 <== NOT EXECUTED ffc10b94: 4b ff fe d0 b ffc10a64 <== NOT EXECUTED ffc10b98: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc10b9c: 3b 80 00 00 li r28,0 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); ffc10ba0: 80 7f 00 28 lwz r3,40(r31) <== NOT EXECUTED ffc10ba4: 4b ff 7b 41 bl ffc086e4 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) ffc10ba8: 2f 9b ff e0 cmpwi cr7,r27,-32 <== NOT EXECUTED ffc10bac: 41 9e 00 1c beq- cr7,ffc10bc8 <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) ffc10bb0: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc10bb4: 41 9d fe 2c bgt+ cr7,ffc109e0 <== NOT EXECUTED ffc10bb8: 7f 7c db 78 mr r28,r27 <== NOT EXECUTED ffc10bbc: 4b ff fe 24 b ffc109e0 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { ffc10bc0: 3b 60 ff e0 li r27,-32 <== NOT EXECUTED ffc10bc4: 4b ff ff dc b ffc10ba0 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); ffc10bc8: 48 00 0a f5 bl ffc116bc <== NOT EXECUTED ffc10bcc: 38 80 00 0d li r4,13 <== NOT EXECUTED ffc10bd0: 48 00 0d 89 bl ffc11958 <== NOT EXECUTED ffc10bd4: 4b ff ff dc b ffc10bb0 <== 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)) { ffc10bd8: 3b 60 ff fc li r27,-4 <== NOT EXECUTED ffc10bdc: 4b ff ff d4 b ffc10bb0 <== 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)) { ffc10be0: 3b 60 ff f5 li r27,-11 <== NOT EXECUTED ffc10be4: 4b ff ff bc b ffc10ba0 <== NOT EXECUTED if (chunk > chunk1) { memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); ffc10be8: 80 7f 00 00 lwz r3,0(r31) <== NOT EXECUTED ffc10bec: 7c 9d ca 14 add r4,r29,r25 <== NOT EXECUTED ffc10bf0: 7f 65 db 78 mr r5,r27 <== NOT EXECUTED ffc10bf4: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ffc10bf8: 7c 63 02 14 add r3,r3,r0 <== NOT EXECUTED ffc10bfc: 48 00 33 65 bl ffc13f60 <== NOT EXECUTED ffc10c00: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED ffc10c04: 4b ff ff 60 b ffc10b64 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); ffc10c08: 80 7f 00 2c lwz r3,44(r31) <== NOT EXECUTED ffc10c0c: 7f 04 c3 78 mr r4,r24 <== NOT EXECUTED ffc10c10: 90 c1 00 18 stw r6,24(r1) <== NOT EXECUTED ffc10c14: 48 00 12 49 bl ffc11e5c <== NOT EXECUTED ffc10c18: 80 c1 00 18 lwz r6,24(r1) <== NOT EXECUTED ffc10c1c: 4b ff ff 60 b ffc10b7c <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { ffc10c20: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc10c24: 4b ff ff 7c b ffc10ba0 <== NOT EXECUTED ffc08ef4 : int posix_memalign( void **pointer, size_t alignment, size_t size ) { ffc08ef4: 7c 08 02 a6 mflr r0 ffc08ef8: 94 21 ff f8 stwu r1,-8(r1) ffc08efc: 90 01 00 0c stw r0,12(r1) /* * Update call statistics */ MSBUMP(memalign_calls, 1); if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) ffc08f00: 38 04 ff ff addi r0,r4,-1 ffc08f04: 7c 0b 20 39 and. r11,r0,r4 ) { /* * Update call statistics */ MSBUMP(memalign_calls, 1); ffc08f08: 3d 60 00 00 lis r11,0 ffc08f0c: 39 6b 34 28 addi r11,r11,13352 ffc08f10: 81 4b 00 08 lwz r10,8(r11) ffc08f14: 38 0a 00 01 addi r0,r10,1 ffc08f18: 90 0b 00 08 stw r0,8(r11) if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) ffc08f1c: 40 82 00 0c bne- ffc08f28 <== NEVER TAKEN ffc08f20: 2b 84 00 03 cmplwi cr7,r4,3 ffc08f24: 41 9d 00 18 bgt- cr7,ffc08f3c /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); } ffc08f28: 80 01 00 0c lwz r0,12(r1) /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); ffc08f2c: 38 60 00 16 li r3,22 } ffc08f30: 38 21 00 08 addi r1,r1,8 ffc08f34: 7c 08 03 a6 mtlr r0 ffc08f38: 4e 80 00 20 blr <== ALWAYS TAKEN /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); ffc08f3c: 48 00 02 81 bl ffc091bc <== ALWAYS TAKEN } ffc08f40: 80 01 00 0c lwz r0,12(r1) ffc08f44: 38 21 00 08 addi r1,r1,8 ffc08f48: 7c 08 03 a6 mtlr r0 ffc08f4c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05598 : * printk * * Kernel printf function requiring minimal infrastrure. */ void printk(const char *fmt, ...) { ffc05598: 94 21 ff 88 stwu r1,-120(r1) ffc0559c: 7c 08 02 a6 mflr r0 ffc055a0: 90 81 00 1c stw r4,28(r1) ffc055a4: 90 01 00 7c stw r0,124(r1) ffc055a8: 90 a1 00 20 stw r5,32(r1) ffc055ac: 90 c1 00 24 stw r6,36(r1) ffc055b0: 90 e1 00 28 stw r7,40(r1) ffc055b4: 91 01 00 2c stw r8,44(r1) ffc055b8: 91 21 00 30 stw r9,48(r1) ffc055bc: 91 41 00 34 stw r10,52(r1) ffc055c0: 40 86 00 24 bne- cr1,ffc055e4 <== ALWAYS TAKEN ffc055c4: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc055c8: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc055cc: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc055d0: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc055d4: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc055d8: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc055dc: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc055e0: 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 */ ffc055e4: 38 00 00 01 li r0,1 ffc055e8: 98 01 00 08 stb r0,8(r1) ffc055ec: 38 00 00 00 li r0,0 vprintk(fmt, ap); ffc055f0: 38 81 00 08 addi r4,r1,8 */ void printk(const char *fmt, ...) { va_list ap; /* points to each unnamed argument in turn */ va_start(ap, fmt); /* make ap point to 1st unnamed arg */ ffc055f4: 98 01 00 09 stb r0,9(r1) ffc055f8: 38 01 00 80 addi r0,r1,128 ffc055fc: 90 01 00 0c stw r0,12(r1) ffc05600: 38 01 00 18 addi r0,r1,24 ffc05604: 90 01 00 10 stw r0,16(r1) vprintk(fmt, ap); ffc05608: 48 00 22 c5 bl ffc078cc <== ALWAYS TAKEN va_end(ap); /* clean up when done */ } ffc0560c: 80 01 00 7c lwz r0,124(r1) ffc05610: 38 21 00 78 addi r1,r1,120 ffc05614: 7c 08 03 a6 mtlr r0 ffc05618: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06df0 : int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... ) { ffc06df0: 94 21 ff 90 stwu r1,-112(r1) ffc06df4: 7c 08 02 a6 mflr r0 ffc06df8: 90 a1 00 18 stw r5,24(r1) ffc06dfc: 90 01 00 74 stw r0,116(r1) ffc06e00: 90 c1 00 1c stw r6,28(r1) ffc06e04: 90 e1 00 20 stw r7,32(r1) ffc06e08: 91 01 00 24 stw r8,36(r1) ffc06e0c: 91 21 00 28 stw r9,40(r1) ffc06e10: 91 41 00 2c stw r10,44(r1) ffc06e14: 40 86 00 24 bne- cr1,ffc06e38 <== ALWAYS TAKEN ffc06e18: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc06e1c: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc06e20: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc06e24: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc06e28: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc06e2c: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc06e30: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc06e34: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arg_pointer; va_start (arg_pointer, format); ffc06e38: 38 00 00 02 li r0,2 ffc06e3c: 98 01 00 08 stb r0,8(r1) ffc06e40: 38 00 00 00 li r0,0 vprintk( format, arg_pointer ); ffc06e44: 7c 83 23 78 mr r3,r4 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06e48: 98 01 00 09 stb r0,9(r1) ffc06e4c: 38 01 00 78 addi r0,r1,120 vprintk( format, arg_pointer ); ffc06e50: 38 81 00 08 addi r4,r1,8 ... ) { va_list arg_pointer; va_start (arg_pointer, format); ffc06e54: 90 01 00 0c stw r0,12(r1) ffc06e58: 38 01 00 10 addi r0,r1,16 ffc06e5c: 90 01 00 10 stw r0,16(r1) vprintk( format, arg_pointer ); ffc06e60: 48 00 22 c9 bl ffc09128 <== ALWAYS TAKEN va_end(arg_pointer); /* clean up when done */ return 0; } ffc06e64: 38 60 00 00 li r3,0 ffc06e68: 80 01 00 74 lwz r0,116(r1) ffc06e6c: 38 21 00 70 addi r1,r1,112 ffc06e70: 7c 08 03 a6 mtlr r0 ffc06e74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc085b8 : int pthread_atfork( void (*prepare)(void) __attribute__((unused)), void (*parent)(void) __attribute__((unused)), void (*child)(void) __attribute__((unused)) ) { ffc085b8: 94 21 ff f8 stwu r1,-8(r1) ffc085bc: 7c 08 02 a6 mflr r0 ffc085c0: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc085c4: 48 00 bc ad bl ffc14270 <__errno> <== ALWAYS TAKEN ffc085c8: 38 00 00 58 li r0,88 ffc085cc: 90 03 00 00 stw r0,0(r3) } ffc085d0: 38 60 ff ff li r3,-1 ffc085d4: 80 01 00 0c lwz r0,12(r1) ffc085d8: 38 21 00 08 addi r1,r1,8 ffc085dc: 7c 08 03 a6 mtlr r0 ffc085e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d16c : int pthread_attr_destroy( pthread_attr_t *attr ) { if ( !attr || !attr->is_initialized ) ffc0d16c: 2c 03 00 00 cmpwi r3,0 ffc0d170: 41 82 00 20 beq- ffc0d190 ffc0d174: 80 03 00 00 lwz r0,0(r3) ffc0d178: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d17c: 41 9e 00 14 beq- cr7,ffc0d190 return EINVAL; attr->is_initialized = false; ffc0d180: 38 00 00 00 li r0,0 ffc0d184: 90 03 00 00 stw r0,0(r3) ffc0d188: 38 60 00 00 li r3,0 return 0; ffc0d18c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d190: 38 60 00 16 li r3,22 } ffc0d194: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d8ac : int pthread_attr_getcputime( pthread_attr_t *attr, int *clock_allowed ) { if ( !attr || !attr->is_initialized || !clock_allowed ) ffc0d8ac: 2c 03 00 00 cmpwi r3,0 ffc0d8b0: 41 82 00 28 beq- ffc0d8d8 ffc0d8b4: 80 03 00 00 lwz r0,0(r3) ffc0d8b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d8bc: 41 9e 00 1c beq- cr7,ffc0d8d8 ffc0d8c0: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d8c4: 41 9e 00 14 beq- cr7,ffc0d8d8 return EINVAL; *clock_allowed = attr->cputime_clock_allowed; ffc0d8c8: 80 03 00 30 lwz r0,48(r3) ffc0d8cc: 38 60 00 00 li r3,0 ffc0d8d0: 90 04 00 00 stw r0,0(r4) return 0; ffc0d8d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d8d8: 38 60 00 16 li r3,22 } ffc0d8dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d198 : int pthread_attr_getdetachstate( const pthread_attr_t *attr, int *detachstate ) { if ( !attr || !attr->is_initialized || !detachstate ) ffc0d198: 2c 03 00 00 cmpwi r3,0 ffc0d19c: 41 82 00 28 beq- ffc0d1c4 ffc0d1a0: 80 03 00 00 lwz r0,0(r3) ffc0d1a4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d1a8: 41 9e 00 1c beq- cr7,ffc0d1c4 ffc0d1ac: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d1b0: 41 9e 00 14 beq- cr7,ffc0d1c4 return EINVAL; *detachstate = attr->detachstate; ffc0d1b4: 80 03 00 34 lwz r0,52(r3) ffc0d1b8: 38 60 00 00 li r3,0 ffc0d1bc: 90 04 00 00 stw r0,0(r4) return 0; ffc0d1c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d1c4: 38 60 00 16 li r3,22 } ffc0d1c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d1cc : int pthread_attr_getinheritsched( const pthread_attr_t *attr, int *inheritsched ) { if ( !attr || !attr->is_initialized || !inheritsched ) ffc0d1cc: 2c 03 00 00 cmpwi r3,0 ffc0d1d0: 41 82 00 28 beq- ffc0d1f8 ffc0d1d4: 80 03 00 00 lwz r0,0(r3) ffc0d1d8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d1dc: 41 9e 00 1c beq- cr7,ffc0d1f8 ffc0d1e0: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d1e4: 41 9e 00 14 beq- cr7,ffc0d1f8 return EINVAL; *inheritsched = attr->inheritsched; ffc0d1e8: 80 03 00 10 lwz r0,16(r3) ffc0d1ec: 38 60 00 00 li r3,0 ffc0d1f0: 90 04 00 00 stw r0,0(r4) return 0; ffc0d1f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d1f8: 38 60 00 16 li r3,22 } ffc0d1fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d200 : int pthread_attr_getschedparam( const pthread_attr_t *attr, struct sched_param *param ) { if ( !attr || !attr->is_initialized || !param ) ffc0d200: 7c 69 1b 79 mr. r9,r3 ffc0d204: 41 82 00 50 beq- ffc0d254 ffc0d208: 80 09 00 00 lwz r0,0(r9) ffc0d20c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d210: 41 9e 00 44 beq- cr7,ffc0d254 ffc0d214: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d218: 41 9e 00 3c beq- cr7,ffc0d254 return EINVAL; *param = attr->schedparam; ffc0d21c: 81 69 00 20 lwz r11,32(r9) ffc0d220: 38 60 00 00 li r3,0 ffc0d224: 80 09 00 24 lwz r0,36(r9) ffc0d228: 81 09 00 18 lwz r8,24(r9) ffc0d22c: 81 49 00 1c lwz r10,28(r9) ffc0d230: 91 04 00 00 stw r8,0(r4) ffc0d234: 91 44 00 04 stw r10,4(r4) ffc0d238: 91 64 00 08 stw r11,8(r4) ffc0d23c: 90 04 00 0c stw r0,12(r4) ffc0d240: 81 69 00 2c lwz r11,44(r9) ffc0d244: 80 09 00 28 lwz r0,40(r9) ffc0d248: 91 64 00 14 stw r11,20(r4) ffc0d24c: 90 04 00 10 stw r0,16(r4) return 0; ffc0d250: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d254: 38 60 00 16 li r3,22 } ffc0d258: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d25c : int pthread_attr_getschedpolicy( const pthread_attr_t *attr, int *policy ) { if ( !attr || !attr->is_initialized || !policy ) ffc0d25c: 2c 03 00 00 cmpwi r3,0 ffc0d260: 41 82 00 28 beq- ffc0d288 ffc0d264: 80 03 00 00 lwz r0,0(r3) ffc0d268: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d26c: 41 9e 00 1c beq- cr7,ffc0d288 ffc0d270: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d274: 41 9e 00 14 beq- cr7,ffc0d288 return EINVAL; *policy = attr->schedpolicy; ffc0d278: 80 03 00 14 lwz r0,20(r3) ffc0d27c: 38 60 00 00 li r3,0 ffc0d280: 90 04 00 00 stw r0,0(r4) return 0; ffc0d284: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d288: 38 60 00 16 li r3,22 } ffc0d28c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d290 : int pthread_attr_getscope( const pthread_attr_t *attr, int *contentionscope ) { if ( !attr || !attr->is_initialized || !contentionscope ) ffc0d290: 2c 03 00 00 cmpwi r3,0 ffc0d294: 41 82 00 28 beq- ffc0d2bc ffc0d298: 80 03 00 00 lwz r0,0(r3) ffc0d29c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d2a0: 41 9e 00 1c beq- cr7,ffc0d2bc ffc0d2a4: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d2a8: 41 9e 00 14 beq- cr7,ffc0d2bc return EINVAL; *contentionscope = attr->contentionscope; ffc0d2ac: 80 03 00 0c lwz r0,12(r3) ffc0d2b0: 38 60 00 00 li r3,0 ffc0d2b4: 90 04 00 00 stw r0,0(r4) return 0; ffc0d2b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d2bc: 38 60 00 16 li r3,22 } ffc0d2c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d2c4 : int pthread_attr_getstackaddr( const pthread_attr_t *attr, void **stackaddr ) { if ( !attr || !attr->is_initialized || !stackaddr ) ffc0d2c4: 2c 03 00 00 cmpwi r3,0 ffc0d2c8: 41 82 00 28 beq- ffc0d2f0 ffc0d2cc: 80 03 00 00 lwz r0,0(r3) ffc0d2d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d2d4: 41 9e 00 1c beq- cr7,ffc0d2f0 ffc0d2d8: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d2dc: 41 9e 00 14 beq- cr7,ffc0d2f0 return EINVAL; *stackaddr = attr->stackaddr; ffc0d2e0: 80 03 00 04 lwz r0,4(r3) ffc0d2e4: 38 60 00 00 li r3,0 ffc0d2e8: 90 04 00 00 stw r0,0(r4) return 0; ffc0d2ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d2f0: 38 60 00 16 li r3,22 } ffc0d2f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d2f8 : int pthread_attr_getstacksize( const pthread_attr_t *attr, size_t *stacksize ) { if ( !attr || !attr->is_initialized || !stacksize ) ffc0d2f8: 2c 03 00 00 cmpwi r3,0 ffc0d2fc: 41 82 00 28 beq- ffc0d324 ffc0d300: 80 03 00 00 lwz r0,0(r3) ffc0d304: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d308: 41 9e 00 1c beq- cr7,ffc0d324 ffc0d30c: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d310: 41 9e 00 14 beq- cr7,ffc0d324 return EINVAL; *stacksize = attr->stacksize; ffc0d314: 80 03 00 08 lwz r0,8(r3) ffc0d318: 38 60 00 00 li r3,0 ffc0d31c: 90 04 00 00 stw r0,0(r4) return 0; ffc0d320: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d324: 38 60 00 16 li r3,22 } ffc0d328: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10664 : int pthread_attr_init( pthread_attr_t *attr ) { if ( !attr ) ffc10664: 2f 83 00 00 cmpwi cr7,r3,0 #include int pthread_attr_init( pthread_attr_t *attr ) { ffc10668: 7c 08 02 a6 mflr r0 ffc1066c: 94 21 ff f8 stwu r1,-8(r1) ffc10670: 90 01 00 0c stw r0,12(r1) if ( !attr ) ffc10674: 38 00 00 16 li r0,22 ffc10678: 41 9e 00 18 beq- cr7,ffc10690 return EINVAL; *attr = _POSIX_Threads_Default_attributes; ffc1067c: 3c 80 ff c2 lis r4,-62 ffc10680: 38 84 0f 54 addi r4,r4,3924 ffc10684: 38 a0 00 38 li r5,56 ffc10688: 48 00 4b ed bl ffc15274 <== ALWAYS TAKEN ffc1068c: 38 00 00 00 li r0,0 return 0; } ffc10690: 7c 03 03 78 mr r3,r0 ffc10694: 80 01 00 0c lwz r0,12(r1) ffc10698: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc1069c: 7c 08 03 a6 mtlr r0 ffc106a0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dfb0 : int pthread_attr_setcputime( pthread_attr_t *attr, int clock_allowed ) { if ( !attr || !attr->is_initialized ) ffc0dfb0: 2c 03 00 00 cmpwi r3,0 ffc0dfb4: 41 82 00 18 beq- ffc0dfcc ffc0dfb8: 80 03 00 00 lwz r0,0(r3) ffc0dfbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dfc0: 41 9e 00 0c beq- cr7,ffc0dfcc return EINVAL; switch ( clock_allowed ) { ffc0dfc4: 2b 84 00 01 cmplwi cr7,r4,1 ffc0dfc8: 40 9d 00 0c ble- cr7,ffc0dfd4 case CLOCK_ENABLED: case CLOCK_DISABLED: attr->cputime_clock_allowed = clock_allowed; return 0; ffc0dfcc: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0dfd0: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; switch ( clock_allowed ) { case CLOCK_ENABLED: case CLOCK_DISABLED: attr->cputime_clock_allowed = clock_allowed; ffc0dfd4: 90 83 00 30 stw r4,48(r3) ffc0dfd8: 38 60 00 00 li r3,0 return 0; ffc0dfdc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d36c : int pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate ) { if ( !attr || !attr->is_initialized ) ffc0d36c: 2c 03 00 00 cmpwi r3,0 ffc0d370: 41 82 00 18 beq- ffc0d388 ffc0d374: 80 03 00 00 lwz r0,0(r3) ffc0d378: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d37c: 41 9e 00 0c beq- cr7,ffc0d388 return EINVAL; switch ( detachstate ) { ffc0d380: 2b 84 00 01 cmplwi cr7,r4,1 ffc0d384: 40 9d 00 0c ble- cr7,ffc0d390 case PTHREAD_CREATE_DETACHED: case PTHREAD_CREATE_JOINABLE: attr->detachstate = detachstate; return 0; ffc0d388: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0d38c: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; switch ( detachstate ) { case PTHREAD_CREATE_DETACHED: case PTHREAD_CREATE_JOINABLE: attr->detachstate = detachstate; ffc0d390: 90 83 00 34 stw r4,52(r3) ffc0d394: 38 60 00 00 li r3,0 return 0; ffc0d398: 4e 80 00 20 blr <== ALWAYS TAKEN ffc106a4 : int pthread_attr_setinheritsched( pthread_attr_t *attr, int inheritsched ) { if ( !attr || !attr->is_initialized ) ffc106a4: 7c 69 1b 79 mr. r9,r3 ffc106a8: 41 82 00 2c beq- ffc106d4 ffc106ac: 80 09 00 00 lwz r0,0(r9) ffc106b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc106b4: 41 9e 00 20 beq- cr7,ffc106d4 return EINVAL; switch ( inheritsched ) { ffc106b8: 38 04 ff ff addi r0,r4,-1 ffc106bc: 2b 80 00 01 cmplwi cr7,r0,1 ffc106c0: 38 60 00 86 li r3,134 ffc106c4: 4d 9d 00 20 bgtlr cr7 case PTHREAD_INHERIT_SCHED: case PTHREAD_EXPLICIT_SCHED: attr->inheritsched = inheritsched; ffc106c8: 90 89 00 10 stw r4,16(r9) ffc106cc: 38 60 00 00 li r3,0 return 0; ffc106d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc106d4: 38 60 00 16 li r3,22 default: return ENOTSUP; } } ffc106d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d3d4 : int pthread_attr_setschedparam( pthread_attr_t *attr, const struct sched_param *param ) { if ( !attr || !attr->is_initialized || !param ) ffc0d3d4: 7c 69 1b 79 mr. r9,r3 ffc0d3d8: 41 82 00 50 beq- ffc0d428 ffc0d3dc: 80 09 00 00 lwz r0,0(r9) ffc0d3e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d3e4: 41 9e 00 44 beq- cr7,ffc0d428 ffc0d3e8: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d3ec: 41 9e 00 3c beq- cr7,ffc0d428 return EINVAL; attr->schedparam = *param; ffc0d3f0: 81 64 00 08 lwz r11,8(r4) ffc0d3f4: 38 60 00 00 li r3,0 ffc0d3f8: 80 04 00 0c lwz r0,12(r4) ffc0d3fc: 81 04 00 00 lwz r8,0(r4) ffc0d400: 81 44 00 04 lwz r10,4(r4) ffc0d404: 91 09 00 18 stw r8,24(r9) ffc0d408: 91 49 00 1c stw r10,28(r9) ffc0d40c: 91 69 00 20 stw r11,32(r9) ffc0d410: 90 09 00 24 stw r0,36(r9) ffc0d414: 81 64 00 14 lwz r11,20(r4) ffc0d418: 80 04 00 10 lwz r0,16(r4) ffc0d41c: 91 69 00 2c stw r11,44(r9) ffc0d420: 90 09 00 28 stw r0,40(r9) return 0; ffc0d424: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d428: 38 60 00 16 li r3,22 } ffc0d42c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d430 : int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized ) ffc0d430: 7c 69 1b 79 mr. r9,r3 ffc0d434: 41 82 00 28 beq- ffc0d45c ffc0d438: 80 09 00 00 lwz r0,0(r9) ffc0d43c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d440: 41 9e 00 1c beq- cr7,ffc0d45c return EINVAL; switch ( policy ) { ffc0d444: 2b 84 00 03 cmplwi cr7,r4,3 ffc0d448: 38 60 00 86 li r3,134 ffc0d44c: 4d 9d 00 20 bgtlr cr7 case SCHED_OTHER: case SCHED_FIFO: case SCHED_RR: case SCHED_SPORADIC: attr->schedpolicy = policy; ffc0d450: 90 89 00 14 stw r4,20(r9) ffc0d454: 38 60 00 00 li r3,0 return 0; ffc0d458: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d45c: 38 60 00 16 li r3,22 default: return ENOTSUP; } } ffc0d460: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d464 : int pthread_attr_setscope( pthread_attr_t *attr, int contentionscope ) { if ( !attr || !attr->is_initialized ) ffc0d464: 2c 03 00 00 cmpwi r3,0 ffc0d468: 41 82 00 30 beq- ffc0d498 ffc0d46c: 80 03 00 00 lwz r0,0(r3) ffc0d470: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d474: 41 9e 00 24 beq- cr7,ffc0d498 return EINVAL; switch ( contentionscope ) { ffc0d478: 2f 84 00 00 cmpwi cr7,r4,0 ffc0d47c: 40 9e 00 10 bne- cr7,ffc0d48c case PTHREAD_SCOPE_PROCESS: attr->contentionscope = contentionscope; ffc0d480: 90 83 00 0c stw r4,12(r3) ffc0d484: 38 60 00 00 li r3,0 return 0; ffc0d488: 4e 80 00 20 blr <== ALWAYS TAKEN ) { if ( !attr || !attr->is_initialized ) return EINVAL; switch ( contentionscope ) { ffc0d48c: 2f 84 00 01 cmpwi cr7,r4,1 ffc0d490: 38 60 00 86 li r3,134 ffc0d494: 4d 9e 00 20 beqlr cr7 case PTHREAD_SCOPE_PROCESS: attr->contentionscope = contentionscope; return 0; ffc0d498: 38 60 00 16 li r3,22 return ENOTSUP; default: return EINVAL; } } ffc0d49c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d4a0 : int pthread_attr_setstackaddr( pthread_attr_t *attr, void *stackaddr ) { if ( !attr || !attr->is_initialized ) ffc0d4a0: 2c 03 00 00 cmpwi r3,0 ffc0d4a4: 41 82 00 1c beq- ffc0d4c0 ffc0d4a8: 80 03 00 00 lwz r0,0(r3) ffc0d4ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d4b0: 41 9e 00 10 beq- cr7,ffc0d4c0 return EINVAL; attr->stackaddr = stackaddr; ffc0d4b4: 90 83 00 04 stw r4,4(r3) ffc0d4b8: 38 60 00 00 li r3,0 return 0; ffc0d4bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d4c0: 38 60 00 16 li r3,22 } ffc0d4c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc106dc : int pthread_attr_setstacksize( pthread_attr_t *attr, size_t stacksize ) { if ( !attr || !attr->is_initialized ) ffc106dc: 2c 03 00 00 cmpwi r3,0 ffc106e0: 41 82 00 3c beq- ffc1071c ffc106e4: 80 03 00 00 lwz r0,0(r3) ffc106e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc106ec: 41 9e 00 30 beq- cr7,ffc1071c return EINVAL; if (stacksize < PTHREAD_MINIMUM_STACK_SIZE) ffc106f0: 3d 20 00 00 lis r9,0 ffc106f4: 80 09 26 c8 lwz r0,9928(r9) ffc106f8: 54 00 08 3c rlwinm r0,r0,1,0,30 ffc106fc: 7f 80 20 40 cmplw cr7,r0,r4 ffc10700: 41 9d 00 10 bgt- cr7,ffc10710 attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE; else attr->stacksize = stacksize; ffc10704: 90 83 00 08 stw r4,8(r3) ffc10708: 38 60 00 00 li r3,0 ffc1070c: 4e 80 00 20 blr <== ALWAYS TAKEN { if ( !attr || !attr->is_initialized ) return EINVAL; if (stacksize < PTHREAD_MINIMUM_STACK_SIZE) attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE; ffc10710: 90 03 00 08 stw r0,8(r3) ffc10714: 38 60 00 00 li r3,0 ffc10718: 4e 80 00 20 blr <== ALWAYS TAKEN else attr->stacksize = stacksize; ffc1071c: 38 60 00 16 li r3,22 return 0; } ffc10720: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d24 : ) { POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) ffc08d24: 2c 03 00 00 cmpwi r3,0 */ int pthread_barrier_destroy( pthread_barrier_t *barrier ) { ffc08d28: 94 21 ff e0 stwu r1,-32(r1) ffc08d2c: 7c 08 02 a6 mflr r0 ffc08d30: 93 c1 00 18 stw r30,24(r1) ffc08d34: 90 01 00 24 stw r0,36(r1) ffc08d38: 93 e1 00 1c stw r31,28(r1) POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) ffc08d3c: 41 82 00 2c beq- ffc08d68 RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get ( pthread_barrier_t *barrier, Objects_Locations *location ) { return (POSIX_Barrier_Control *) _Objects_Get( ffc08d40: 3f e0 00 00 lis r31,0 ffc08d44: 80 83 00 00 lwz r4,0(r3) ffc08d48: 3b ff 2f f8 addi r31,r31,12280 ffc08d4c: 7f e3 fb 78 mr r3,r31 ffc08d50: 38 a1 00 08 addi r5,r1,8 ffc08d54: 48 00 31 19 bl ffc0be6c <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { ffc08d58: 80 01 00 08 lwz r0,8(r1) ffc08d5c: 7c 7e 1b 78 mr r30,r3 ffc08d60: 2f 80 00 00 cmpwi cr7,r0,0 ffc08d64: 41 9e 00 20 beq- cr7,ffc08d84 case OBJECTS_ERROR: break; } return EINVAL; } ffc08d68: 80 01 00 24 lwz r0,36(r1) _Objects_Close( &_POSIX_Barrier_Information, &the_barrier->Object ); _POSIX_Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); return 0; ffc08d6c: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc08d70: 83 c1 00 18 lwz r30,24(r1) ffc08d74: 7c 08 03 a6 mtlr r0 ffc08d78: 83 e1 00 1c lwz r31,28(r1) ffc08d7c: 38 21 00 20 addi r1,r1,32 ffc08d80: 4e 80 00 20 blr <== ALWAYS TAKEN the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_barrier->Barrier.number_of_waiting_threads != 0 ) { ffc08d84: 80 03 00 58 lwz r0,88(r3) ffc08d88: 2f 80 00 00 cmpwi cr7,r0,0 ffc08d8c: 41 9e 00 24 beq- cr7,ffc08db0 _Thread_Enable_dispatch(); ffc08d90: 48 00 3c a9 bl ffc0ca38 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc08d94: 80 01 00 24 lwz r0,36(r1) the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_barrier->Barrier.number_of_waiting_threads != 0 ) { _Thread_Enable_dispatch(); ffc08d98: 38 60 00 10 li r3,16 case OBJECTS_ERROR: break; } return EINVAL; } ffc08d9c: 83 c1 00 18 lwz r30,24(r1) ffc08da0: 7c 08 03 a6 mtlr r0 ffc08da4: 83 e1 00 1c lwz r31,28(r1) ffc08da8: 38 21 00 20 addi r1,r1,32 ffc08dac: 4e 80 00 20 blr <== ALWAYS TAKEN if ( the_barrier->Barrier.number_of_waiting_threads != 0 ) { _Thread_Enable_dispatch(); return EBUSY; } _Objects_Close( &_POSIX_Barrier_Information, &the_barrier->Object ); ffc08db0: 7f e3 fb 78 mr r3,r31 ffc08db4: 7f c4 f3 78 mr r4,r30 ffc08db8: 48 00 2b 7d bl ffc0b934 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _POSIX_Barrier_Free ( POSIX_Barrier_Control *the_barrier ) { _Objects_Free( &_POSIX_Barrier_Information, &the_barrier->Object ); ffc08dbc: 7f e3 fb 78 mr r3,r31 ffc08dc0: 7f c4 f3 78 mr r4,r30 ffc08dc4: 48 00 2e c9 bl ffc0bc8c <_Objects_Free> <== ALWAYS TAKEN _POSIX_Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); ffc08dc8: 48 00 3c 71 bl ffc0ca38 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc08dcc: 80 01 00 24 lwz r0,36(r1) _Objects_Close( &_POSIX_Barrier_Information, &the_barrier->Object ); _POSIX_Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); ffc08dd0: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc08dd4: 83 c1 00 18 lwz r30,24(r1) ffc08dd8: 7c 08 03 a6 mtlr r0 ffc08ddc: 83 e1 00 1c lwz r31,28(r1) ffc08de0: 38 21 00 20 addi r1,r1,32 ffc08de4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08de8 : int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) { ffc08de8: 94 21 ff d0 stwu r1,-48(r1) ffc08dec: 7c 08 02 a6 mflr r0 ffc08df0: 93 e1 00 2c stw r31,44(r1) const pthread_barrierattr_t *the_attr; /* * Error check parameters */ if ( !barrier ) ffc08df4: 7c 7f 1b 79 mr. r31,r3 int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) { ffc08df8: 90 01 00 34 stw r0,52(r1) ffc08dfc: 93 81 00 20 stw r28,32(r1) ffc08e00: 93 a1 00 24 stw r29,36(r1) ffc08e04: 93 c1 00 28 stw r30,40(r1) const pthread_barrierattr_t *the_attr; /* * Error check parameters */ if ( !barrier ) ffc08e08: 41 82 00 a8 beq- ffc08eb0 return EINVAL; if ( count == 0 ) ffc08e0c: 2f 85 00 00 cmpwi cr7,r5,0 ffc08e10: 41 9e 00 a0 beq- cr7,ffc08eb0 return EINVAL; /* * If the user passed in NULL, use the default attributes */ if ( attr ) { ffc08e14: 2f 84 00 00 cmpwi cr7,r4,0 ffc08e18: 41 9e 00 c8 beq- cr7,ffc08ee0 } /* * Now start error checking the attributes that we are going to use */ if ( !the_attr->is_initialized ) ffc08e1c: 80 04 00 00 lwz r0,0(r4) ffc08e20: 2f 80 00 00 cmpwi cr7,r0,0 ffc08e24: 41 9e 00 8c beq- cr7,ffc08eb0 return EINVAL; switch ( the_attr->process_shared ) { ffc08e28: 83 c4 00 04 lwz r30,4(r4) ffc08e2c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc08e30: 40 9e 00 80 bne- cr7,ffc08eb0 <== NEVER TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08e34: 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; ffc08e38: 90 a1 00 0c stw r5,12(r1) ffc08e3c: 81 69 27 bc lwz r11,10172(r9) } /* * Convert from POSIX attributes to Core Barrier attributes */ the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; ffc08e40: 93 c1 00 08 stw r30,8(r1) ffc08e44: 38 0b 00 01 addi r0,r11,1 ffc08e48: 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 *) ffc08e4c: 3f 80 00 00 lis r28,0 ffc08e50: 3b 9c 2f f8 addi r28,r28,12280 ffc08e54: 7f 83 e3 78 mr r3,r28 ffc08e58: 48 00 2a 15 bl ffc0b86c <_Objects_Allocate> <== ALWAYS TAKEN */ _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _POSIX_Barrier_Allocate(); if ( !the_barrier ) { ffc08e5c: 7c 7d 1b 79 mr. r29,r3 ffc08e60: 41 82 00 74 beq- ffc08ed4 _Thread_Enable_dispatch(); return EAGAIN; } _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); ffc08e64: 38 7d 00 10 addi r3,r29,16 ffc08e68: 38 81 00 08 addi r4,r1,8 ffc08e6c: 48 00 1e b1 bl ffc0ad1c <_CORE_barrier_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc08e70: 80 1d 00 08 lwz r0,8(r29) ffc08e74: 81 7c 00 1c lwz r11,28(r28) ffc08e78: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc08e7c: 7f ab 49 2e stwx r29,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc08e80: 93 dd 00 0c stw r30,12(r29) ); /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; ffc08e84: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc08e88: 48 00 3b b1 bl ffc0ca38 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return 0; } ffc08e8c: 80 01 00 34 lwz r0,52(r1) /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; _Thread_Enable_dispatch(); ffc08e90: 38 60 00 00 li r3,0 return 0; } ffc08e94: 83 81 00 20 lwz r28,32(r1) ffc08e98: 7c 08 03 a6 mtlr r0 ffc08e9c: 83 a1 00 24 lwz r29,36(r1) ffc08ea0: 83 c1 00 28 lwz r30,40(r1) ffc08ea4: 83 e1 00 2c lwz r31,44(r1) ffc08ea8: 38 21 00 30 addi r1,r1,48 ffc08eac: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; _Thread_Enable_dispatch(); return 0; ffc08eb0: 38 60 00 16 li r3,22 } ffc08eb4: 80 01 00 34 lwz r0,52(r1) ffc08eb8: 83 81 00 20 lwz r28,32(r1) ffc08ebc: 7c 08 03 a6 mtlr r0 ffc08ec0: 83 a1 00 24 lwz r29,36(r1) ffc08ec4: 83 c1 00 28 lwz r30,40(r1) ffc08ec8: 83 e1 00 2c lwz r31,44(r1) ffc08ecc: 38 21 00 30 addi r1,r1,48 ffc08ed0: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _POSIX_Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); ffc08ed4: 48 00 3b 65 bl ffc0ca38 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08ed8: 38 60 00 0b li r3,11 return EAGAIN; ffc08edc: 4b ff ff d8 b ffc08eb4 <== ALWAYS TAKEN * If the user passed in NULL, use the default attributes */ if ( attr ) { the_attr = attr; } else { (void) pthread_barrierattr_init( &my_attr ); ffc08ee0: 3b c1 00 10 addi r30,r1,16 ffc08ee4: 90 a1 00 18 stw r5,24(r1) ffc08ee8: 7f c3 f3 78 mr r3,r30 ffc08eec: 4b ff fd e5 bl ffc08cd0 <== ALWAYS TAKEN ffc08ef0: 7f c4 f3 78 mr r4,r30 ffc08ef4: 80 a1 00 18 lwz r5,24(r1) ffc08ef8: 4b ff ff 24 b ffc08e1c <== ALWAYS TAKEN ffc08efc : ) { POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) ffc08efc: 2c 03 00 00 cmpwi r3,0 */ int pthread_barrier_wait( pthread_barrier_t *barrier ) { ffc08f00: 94 21 ff e8 stwu r1,-24(r1) ffc08f04: 7c 08 02 a6 mflr r0 ffc08f08: 90 01 00 1c stw r0,28(r1) POSIX_Barrier_Control *the_barrier = NULL; Objects_Locations location; if ( !barrier ) ffc08f0c: 41 82 00 24 beq- ffc08f30 RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get ( pthread_barrier_t *barrier, Objects_Locations *location ) { return (POSIX_Barrier_Control *) _Objects_Get( ffc08f10: 80 83 00 00 lwz r4,0(r3) ffc08f14: 3c 60 00 00 lis r3,0 ffc08f18: 38 63 2f f8 addi r3,r3,12280 ffc08f1c: 38 a1 00 08 addi r5,r1,8 ffc08f20: 48 00 2f 4d bl ffc0be6c <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { ffc08f24: 80 01 00 08 lwz r0,8(r1) ffc08f28: 2f 80 00 00 cmpwi cr7,r0,0 ffc08f2c: 41 9e 00 18 beq- cr7,ffc08f44 case OBJECTS_ERROR: break; } return EINVAL; } ffc08f30: 80 01 00 1c lwz r0,28(r1) true, 0, NULL ); _Thread_Enable_dispatch(); return _POSIX_Barrier_Translate_core_barrier_return_code( ffc08f34: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc08f38: 38 21 00 18 addi r1,r1,24 ffc08f3c: 7c 08 03 a6 mtlr r0 ffc08f40: 4e 80 00 20 blr <== ALWAYS TAKEN the_barrier = _POSIX_Barrier_Get( barrier, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_barrier_Wait( ffc08f44: 80 83 00 08 lwz r4,8(r3) ffc08f48: 38 a0 00 01 li r5,1 ffc08f4c: 38 63 00 10 addi r3,r3,16 ffc08f50: 38 c0 00 00 li r6,0 ffc08f54: 38 e0 00 00 li r7,0 ffc08f58: 48 00 1e 09 bl ffc0ad60 <_CORE_barrier_Wait> <== ALWAYS TAKEN the_barrier->Object.id, true, 0, NULL ); _Thread_Enable_dispatch(); ffc08f5c: 48 00 3a dd bl ffc0ca38 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Barrier_Translate_core_barrier_return_code( ffc08f60: 3d 20 00 00 lis r9,0 ffc08f64: 81 29 27 fc lwz r9,10236(r9) ffc08f68: 80 69 00 34 lwz r3,52(r9) ffc08f6c: 48 00 74 b5 bl ffc10420 <_POSIX_Barrier_Translate_core_barrier_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc08f70: 80 01 00 1c lwz r0,28(r1) ffc08f74: 38 21 00 18 addi r1,r1,24 ffc08f78: 7c 08 03 a6 mtlr r0 ffc08f7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c78 : int pthread_barrierattr_destroy( pthread_barrierattr_t *attr ) { if ( !attr || attr->is_initialized == false ) ffc08c78: 2c 03 00 00 cmpwi r3,0 ffc08c7c: 41 82 00 20 beq- ffc08c9c ffc08c80: 80 03 00 00 lwz r0,0(r3) ffc08c84: 2f 80 00 00 cmpwi cr7,r0,0 ffc08c88: 41 9e 00 14 beq- cr7,ffc08c9c return EINVAL; attr->is_initialized = false; ffc08c8c: 38 00 00 00 li r0,0 ffc08c90: 90 03 00 00 stw r0,0(r3) ffc08c94: 38 60 00 00 li r3,0 return 0; ffc08c98: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c9c: 38 60 00 16 li r3,22 } ffc08ca0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08ca4 : int pthread_barrierattr_getpshared( const pthread_barrierattr_t *attr, int *pshared ) { if ( !attr ) ffc08ca4: 2c 03 00 00 cmpwi r3,0 ffc08ca8: 41 82 00 20 beq- ffc08cc8 return EINVAL; if ( !attr->is_initialized ) ffc08cac: 80 03 00 00 lwz r0,0(r3) ffc08cb0: 2f 80 00 00 cmpwi cr7,r0,0 ffc08cb4: 41 9e 00 14 beq- cr7,ffc08cc8 return EINVAL; *pshared = attr->process_shared; ffc08cb8: 80 03 00 04 lwz r0,4(r3) ffc08cbc: 38 60 00 00 li r3,0 ffc08cc0: 90 04 00 00 stw r0,0(r4) return 0; ffc08cc4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cc8: 38 60 00 16 li r3,22 } ffc08ccc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cd0 : int pthread_barrierattr_init( pthread_barrierattr_t *attr ) { if ( !attr ) ffc08cd0: 7c 69 1b 79 mr. r9,r3 ffc08cd4: 38 60 00 16 li r3,22 ffc08cd8: 4d 82 00 20 beqlr return EINVAL; attr->is_initialized = true; attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc08cdc: 38 00 00 00 li r0,0 ffc08ce0: 90 09 00 04 stw r0,4(r9) ) { if ( !attr ) return EINVAL; attr->is_initialized = true; ffc08ce4: 38 00 00 01 li r0,1 attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc08ce8: 38 60 00 00 li r3,0 ) { if ( !attr ) return EINVAL; attr->is_initialized = true; ffc08cec: 90 09 00 00 stw r0,0(r9) attr->process_shared = PTHREAD_PROCESS_PRIVATE; return 0; } ffc08cf0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08cf4 : int pthread_barrierattr_setpshared( pthread_barrierattr_t *attr, int pshared ) { if ( !attr ) ffc08cf4: 2c 03 00 00 cmpwi r3,0 ffc08cf8: 41 82 00 18 beq- ffc08d10 return EINVAL; if ( !attr->is_initialized ) ffc08cfc: 80 03 00 00 lwz r0,0(r3) ffc08d00: 2f 80 00 00 cmpwi cr7,r0,0 ffc08d04: 41 9e 00 0c beq- cr7,ffc08d10 return EINVAL; switch ( pshared ) { ffc08d08: 2b 84 00 01 cmplwi cr7,r4,1 ffc08d0c: 40 9d 00 0c ble- cr7,ffc08d18 case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; return 0; ffc08d10: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc08d14: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; switch ( pshared ) { case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; ffc08d18: 90 83 00 04 stw r4,4(r3) ffc08d1c: 38 60 00 00 li r3,0 return 0; ffc08d20: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07fa8 : */ int pthread_cancel( pthread_t thread ) { ffc07fa8: 7c 08 02 a6 mflr r0 ffc07fac: 94 21 ff e8 stwu r1,-24(r1) /* * Don't even think about deleting a resource from an ISR. */ if ( _ISR_Is_in_progress() ) ffc07fb0: 3d 20 00 00 lis r9,0 */ int pthread_cancel( pthread_t thread ) { ffc07fb4: 90 01 00 1c stw r0,28(r1) ffc07fb8: 7c 64 1b 78 mr r4,r3 /* * Don't even think about deleting a resource from an ISR. */ if ( _ISR_Is_in_progress() ) ffc07fbc: 80 09 27 c4 lwz r0,10180(r9) ffc07fc0: 2f 80 00 00 cmpwi cr7,r0,0 ffc07fc4: 38 00 00 47 li r0,71 ffc07fc8: 41 9e 00 18 beq- cr7,ffc07fe0 case OBJECTS_ERROR: break; } return EINVAL; } ffc07fcc: 7c 03 03 78 mr r3,r0 ffc07fd0: 80 01 00 1c lwz r0,28(r1) ffc07fd4: 38 21 00 18 addi r1,r1,24 ffc07fd8: 7c 08 03 a6 mtlr r0 ffc07fdc: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) ffc07fe0: 3c 60 00 00 lis r3,0 ffc07fe4: 38 63 2e 58 addi r3,r3,11864 ffc07fe8: 38 a1 00 08 addi r5,r1,8 ffc07fec: 48 00 2a 69 bl ffc0aa54 <_Objects_Get> <== ALWAYS TAKEN if ( _ISR_Is_in_progress() ) return EPROTO; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc07ff0: 81 21 00 08 lwz r9,8(r1) ffc07ff4: 38 00 00 16 li r0,22 ffc07ff8: 2f 89 00 00 cmpwi cr7,r9,0 ffc07ffc: 40 be ff d0 bne- cr7,ffc07fcc case OBJECTS_LOCAL: thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ]; thread_support->cancelation_requested = 1; ffc08000: 81 23 01 48 lwz r9,328(r3) ffc08004: 38 00 00 01 li r0,1 ffc08008: 90 09 00 d4 stw r0,212(r9) /* This enables dispatch implicitly */ _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( the_thread ); ffc0800c: 48 00 6b bd bl ffc0ebc8 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> <== ALWAYS TAKEN ffc08010: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc08014: 7c 03 03 78 mr r3,r0 ffc08018: 80 01 00 1c lwz r0,28(r1) ffc0801c: 38 21 00 18 addi r1,r1,24 ffc08020: 7c 08 03 a6 mtlr r0 ffc08024: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0799c : */ void pthread_cleanup_pop( int execute ) { ffc0799c: 94 21 ff d8 stwu r1,-40(r1) ffc079a0: 7c 08 02 a6 mflr r0 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc079a4: 3d 20 00 00 lis r9,0 ffc079a8: 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 ]; ffc079ac: 3d 60 00 00 lis r11,0 */ void pthread_cleanup_pop( int execute ) { ffc079b0: 90 01 00 2c stw r0,44(r1) ffc079b4: 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 ]; ffc079b8: 81 6b 27 ac lwz r11,10156(r11) */ void pthread_cleanup_pop( int execute ) { ffc079bc: 93 a1 00 1c stw r29,28(r1) ffc079c0: 7c 7d 1b 78 mr r29,r3 ffc079c4: 90 09 27 6c stw r0,10092(r9) ffc079c8: 93 c1 00 20 stw r30,32(r1) ffc079cc: 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 ]; ffc079d0: 81 2b 01 48 lwz r9,328(r11) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc079d4: 7f e0 00 a6 mfmsr r31 ffc079d8: 7c 10 42 a6 mfsprg r0,0 ffc079dc: 7f e0 00 78 andc r0,r31,r0 ffc079e0: 7c 00 01 24 mtmsr r0 handler_stack = &thread_support->Cancellation_Handlers; ffc079e4: 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; ffc079e8: 39 29 00 dc addi r9,r9,220 ffc079ec: 7f 80 48 00 cmpw cr7,r0,r9 ffc079f0: 41 9e 00 74 beq- cr7,ffc07a64 _Thread_Enable_dispatch(); _ISR_Enable( level ); return; } handler = (POSIX_Cancel_Handler_control *) ffc079f4: 80 69 00 04 lwz r3,4(r9) ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; ffc079f8: 81 23 00 00 lwz r9,0(r3) previous = the_node->previous; ffc079fc: 81 63 00 04 lwz r11,4(r3) next->previous = previous; previous->next = next; ffc07a00: 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; ffc07a04: 91 69 00 04 stw r11,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc07a08: 7f e0 01 24 mtmsr r31 _Chain_Tail( handler_stack )->previous; _Chain_Extract_unprotected( &handler->Node ); _ISR_Enable( level ); tmp_handler = *handler; ffc07a0c: 81 23 00 00 lwz r9,0(r3) ffc07a10: 80 03 00 04 lwz r0,4(r3) ffc07a14: 83 e3 00 08 lwz r31,8(r3) ffc07a18: 83 c3 00 0c lwz r30,12(r3) ffc07a1c: 91 21 00 08 stw r9,8(r1) ffc07a20: 90 01 00 0c stw r0,12(r1) ffc07a24: 93 e1 00 10 stw r31,16(r1) ffc07a28: 93 c1 00 14 stw r30,20(r1) _Workspace_Free( handler ); ffc07a2c: 48 00 4b d1 bl ffc0c5fc <_Workspace_Free> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc07a30: 48 00 32 7d bl ffc0acac <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( execute ) ffc07a34: 2f 9d 00 00 cmpwi cr7,r29,0 ffc07a38: 41 be 00 10 beq+ cr7,ffc07a48 (*tmp_handler.routine)( tmp_handler.arg ); ffc07a3c: 7f c3 f3 78 mr r3,r30 ffc07a40: 7f e9 03 a6 mtctr r31 ffc07a44: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc07a48: 80 01 00 2c lwz r0,44(r1) ffc07a4c: 83 a1 00 1c lwz r29,28(r1) ffc07a50: 7c 08 03 a6 mtlr r0 ffc07a54: 83 c1 00 20 lwz r30,32(r1) ffc07a58: 83 e1 00 24 lwz r31,36(r1) ffc07a5c: 38 21 00 28 addi r1,r1,40 ffc07a60: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); _ISR_Disable( level ); if ( _Chain_Is_empty( handler_stack ) ) { _Thread_Enable_dispatch(); ffc07a64: 48 00 32 49 bl ffc0acac <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc07a68: 7f e0 01 24 mtmsr r31 _Thread_Enable_dispatch(); if ( execute ) (*tmp_handler.routine)( tmp_handler.arg ); } ffc07a6c: 80 01 00 2c lwz r0,44(r1) ffc07a70: 83 a1 00 1c lwz r29,28(r1) ffc07a74: 7c 08 03 a6 mtlr r0 ffc07a78: 83 c1 00 20 lwz r30,32(r1) ffc07a7c: 83 e1 00 24 lwz r31,36(r1) ffc07a80: 38 21 00 28 addi r1,r1,40 ffc07a84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08204 : void pthread_cleanup_push( void (*routine)( void * ), void *arg ) { ffc08204: 94 21 ff f0 stwu r1,-16(r1) ffc08208: 7c 08 02 a6 mflr r0 ffc0820c: 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 ) ffc08210: 7c 7e 1b 79 mr. r30,r3 void pthread_cleanup_push( void (*routine)( void * ), void *arg ) { ffc08214: 93 e1 00 0c stw r31,12(r1) ffc08218: 7c 9f 23 78 mr r31,r4 ffc0821c: 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 ) ffc08220: 41 82 00 48 beq- ffc08268 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08224: 3d 20 00 00 lis r9,0 ffc08228: 81 69 27 94 lwz r11,10132(r9) ffc0822c: 38 0b 00 01 addi r0,r11,1 ffc08230: 90 09 27 94 stw r0,10132(r9) return; _Thread_Disable_dispatch(); handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) ); ffc08234: 38 60 00 10 li r3,16 ffc08238: 48 00 58 39 bl ffc0da70 <_Workspace_Allocate> <== ALWAYS TAKEN if ( handler ) { ffc0823c: 2c 03 00 00 cmpwi r3,0 ffc08240: 41 82 00 24 beq- ffc08264 <== NEVER TAKEN thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; handler_stack = &thread_support->Cancellation_Handlers; ffc08244: 3d 20 00 00 lis r9,0 handler->routine = routine; ffc08248: 93 c3 00 08 stw r30,8(r3) handler->arg = arg; _Chain_Append( handler_stack, &handler->Node ); ffc0824c: 7c 64 1b 78 mr r4,r3 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; ffc08250: 81 29 27 d4 lwz r9,10196(r9) ffc08254: 81 29 01 48 lwz r9,328(r9) handler->routine = routine; handler->arg = arg; ffc08258: 93 e3 00 0c stw r31,12(r3) _Chain_Append( handler_stack, &handler->Node ); ffc0825c: 38 69 00 d8 addi r3,r9,216 ffc08260: 48 00 1f d9 bl ffc0a238 <_Chain_Append> <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc08264: 48 00 3c 85 bl ffc0bee8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc08268: 80 01 00 14 lwz r0,20(r1) ffc0826c: 83 c1 00 08 lwz r30,8(r1) ffc08270: 7c 08 03 a6 mtlr r0 ffc08274: 83 e1 00 0c lwz r31,12(r1) ffc08278: 38 21 00 10 addi r1,r1,16 ffc0827c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc097c0 : */ int pthread_cond_broadcast( pthread_cond_t *cond ) { ffc097c0: 94 21 ff f8 stwu r1,-8(r1) ffc097c4: 7c 08 02 a6 mflr r0 return _POSIX_Condition_variables_Signal_support( cond, true ); ffc097c8: 38 80 00 01 li r4,1 */ int pthread_cond_broadcast( pthread_cond_t *cond ) { ffc097cc: 90 01 00 0c stw r0,12(r1) return _POSIX_Condition_variables_Signal_support( cond, true ); ffc097d0: 48 00 02 51 bl ffc09a20 <_POSIX_Condition_variables_Signal_support> <== ALWAYS TAKEN } ffc097d4: 80 01 00 0c lwz r0,12(r1) ffc097d8: 38 21 00 08 addi r1,r1,8 ffc097dc: 7c 08 03 a6 mtlr r0 ffc097e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc097e4 : */ int pthread_cond_destroy( pthread_cond_t *cond ) { ffc097e4: 94 21 ff e0 stwu r1,-32(r1) ffc097e8: 7c 08 02 a6 mflr r0 POSIX_Condition_variables_Control *the_cond; Objects_Locations location; the_cond = _POSIX_Condition_variables_Get( cond, &location ); ffc097ec: 38 81 00 08 addi r4,r1,8 */ int pthread_cond_destroy( pthread_cond_t *cond ) { ffc097f0: 90 01 00 24 stw r0,36(r1) ffc097f4: 93 e1 00 1c stw r31,28(r1) ffc097f8: 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 ); ffc097fc: 48 00 00 75 bl ffc09870 <_POSIX_Condition_variables_Get> <== ALWAYS TAKEN ffc09800: 7c 7f 1b 78 mr r31,r3 switch ( location ) { ffc09804: 80 01 00 08 lwz r0,8(r1) ffc09808: 38 60 00 16 li r3,22 ffc0980c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09810: 40 9e 00 1c bne- cr7,ffc0982c case OBJECTS_LOCAL: if ( _Thread_queue_First( &the_cond->Wait_queue ) ) { ffc09814: 38 7f 00 18 addi r3,r31,24 ffc09818: 48 00 4f 41 bl ffc0e758 <_Thread_queue_First> <== ALWAYS TAKEN ffc0981c: 2f 83 00 00 cmpwi cr7,r3,0 ffc09820: 41 9e 00 24 beq- cr7,ffc09844 _Thread_Enable_dispatch(); ffc09824: 48 00 45 b1 bl ffc0ddd4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09828: 38 60 00 10 li r3,16 case OBJECTS_ERROR: break; } return EINVAL; } ffc0982c: 80 01 00 24 lwz r0,36(r1) ffc09830: 83 c1 00 18 lwz r30,24(r1) ffc09834: 7c 08 03 a6 mtlr r0 ffc09838: 83 e1 00 1c lwz r31,28(r1) ffc0983c: 38 21 00 20 addi r1,r1,32 ffc09840: 4e 80 00 20 blr <== ALWAYS TAKEN if ( _Thread_queue_First( &the_cond->Wait_queue ) ) { _Thread_Enable_dispatch(); return EBUSY; } _Objects_Close( ffc09844: 3f c0 00 00 lis r30,0 ffc09848: 3b de 30 90 addi r30,r30,12432 ffc0984c: 7f c3 f3 78 mr r3,r30 ffc09850: 7f e4 fb 78 mr r4,r31 ffc09854: 48 00 34 7d bl ffc0ccd0 <_Objects_Close> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free ( POSIX_Condition_variables_Control *the_condition_variable ) { _Objects_Free( ffc09858: 7f c3 f3 78 mr r3,r30 ffc0985c: 7f e4 fb 78 mr r4,r31 ffc09860: 48 00 37 c9 bl ffc0d028 <_Objects_Free> <== ALWAYS TAKEN &_POSIX_Condition_variables_Information, &the_cond->Object ); _POSIX_Condition_variables_Free( the_cond ); _Thread_Enable_dispatch(); ffc09864: 48 00 45 71 bl ffc0ddd4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09868: 38 60 00 00 li r3,0 return 0; ffc0986c: 4b ff ff c0 b ffc0982c <== ALWAYS TAKEN ffc098f4 : int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) { ffc098f4: 94 21 ff e8 stwu r1,-24(r1) ffc098f8: 7c 08 02 a6 mflr r0 ffc098fc: 93 81 00 08 stw r28,8(r1) POSIX_Condition_variables_Control *the_cond; const pthread_condattr_t *the_attr; if ( attr ) the_attr = attr; ffc09900: 7c 9c 23 79 mr. r28,r4 int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) { ffc09904: 93 c1 00 10 stw r30,16(r1) ffc09908: 7c 7e 1b 78 mr r30,r3 ffc0990c: 90 01 00 1c stw r0,28(r1) ffc09910: 93 a1 00 0c stw r29,12(r1) ffc09914: 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; ffc09918: 41 82 00 cc beq- ffc099e4 /* * Be careful about attributes when global!!! */ if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED ) ffc0991c: 80 1c 00 04 lwz r0,4(r28) ffc09920: 2f 80 00 01 cmpwi cr7,r0,1 ffc09924: 41 9e 00 10 beq- cr7,ffc09934 <== NEVER TAKEN return EINVAL; if ( !the_attr->is_initialized ) ffc09928: 80 1c 00 00 lwz r0,0(r28) ffc0992c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09930: 40 9e 00 28 bne- cr7,ffc09958 *cond = the_cond->Object.id; _Thread_Enable_dispatch(); return 0; ffc09934: 38 60 00 16 li r3,22 } ffc09938: 80 01 00 1c lwz r0,28(r1) ffc0993c: 83 81 00 08 lwz r28,8(r1) ffc09940: 7c 08 03 a6 mtlr r0 ffc09944: 83 a1 00 0c lwz r29,12(r1) ffc09948: 83 c1 00 10 lwz r30,16(r1) ffc0994c: 83 e1 00 14 lwz r31,20(r1) ffc09950: 38 21 00 18 addi r1,r1,24 ffc09954: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc09958: 3d 20 00 00 lis r9,0 ffc0995c: 81 69 27 c8 lwz r11,10184(r9) ffc09960: 38 0b 00 01 addi r0,r11,1 ffc09964: 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 *) ffc09968: 3f a0 00 00 lis r29,0 ffc0996c: 3b bd 30 90 addi r29,r29,12432 ffc09970: 7f a3 eb 78 mr r3,r29 ffc09974: 48 00 32 95 bl ffc0cc08 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_cond = _POSIX_Condition_variables_Allocate(); if ( !the_cond ) { ffc09978: 7c 7f 1b 79 mr. r31,r3 ffc0997c: 41 82 00 74 beq- ffc099f0 _Thread_Enable_dispatch(); return ENOMEM; } the_cond->process_shared = the_attr->process_shared; ffc09980: 80 1c 00 04 lwz r0,4(r28) the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX; ffc09984: 3b 80 00 00 li r28,0 ffc09988: 93 9f 00 14 stw r28,20(r31) /* XXX some more initialization might need to go here */ _Thread_queue_Initialize( ffc0998c: 38 7f 00 18 addi r3,r31,24 ffc09990: 38 80 00 00 li r4,0 if ( !the_cond ) { _Thread_Enable_dispatch(); return ENOMEM; } the_cond->process_shared = the_attr->process_shared; ffc09994: 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( ffc09998: 38 a0 08 00 li r5,2048 ffc0999c: 38 c0 00 74 li r6,116 ffc099a0: 48 00 4e 9d bl ffc0e83c <_Thread_queue_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc099a4: 80 1f 00 08 lwz r0,8(r31) ffc099a8: 81 7d 00 1c lwz r11,28(r29) ffc099ac: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc099b0: 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; ffc099b4: 93 9f 00 0c stw r28,12(r31) &_POSIX_Condition_variables_Information, &the_cond->Object, 0 ); *cond = the_cond->Object.id; ffc099b8: 90 1e 00 00 stw r0,0(r30) _Thread_Enable_dispatch(); ffc099bc: 48 00 44 19 bl ffc0ddd4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return 0; } ffc099c0: 80 01 00 1c lwz r0,28(r1) 0 ); *cond = the_cond->Object.id; _Thread_Enable_dispatch(); ffc099c4: 38 60 00 00 li r3,0 return 0; } ffc099c8: 83 81 00 08 lwz r28,8(r1) ffc099cc: 7c 08 03 a6 mtlr r0 ffc099d0: 83 a1 00 0c lwz r29,12(r1) ffc099d4: 83 c1 00 10 lwz r30,16(r1) ffc099d8: 83 e1 00 14 lwz r31,20(r1) ffc099dc: 38 21 00 18 addi r1,r1,24 ffc099e0: 4e 80 00 20 blr <== ALWAYS TAKEN ) { POSIX_Condition_variables_Control *the_cond; const pthread_condattr_t *the_attr; if ( attr ) the_attr = attr; ffc099e4: 3f 80 00 00 lis r28,0 ffc099e8: 3b 9c 27 08 addi r28,r28,9992 ffc099ec: 4b ff ff 30 b ffc0991c <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_cond = _POSIX_Condition_variables_Allocate(); if ( !the_cond ) { _Thread_Enable_dispatch(); ffc099f0: 48 00 43 e5 bl ffc0ddd4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc099f4: 38 60 00 0c li r3,12 return ENOMEM; ffc099f8: 4b ff ff 40 b ffc09938 <== ALWAYS TAKEN ffc099fc : */ int pthread_cond_signal( pthread_cond_t *cond ) { ffc099fc: 94 21 ff f8 stwu r1,-8(r1) ffc09a00: 7c 08 02 a6 mflr r0 return _POSIX_Condition_variables_Signal_support( cond, false ); ffc09a04: 38 80 00 00 li r4,0 */ int pthread_cond_signal( pthread_cond_t *cond ) { ffc09a08: 90 01 00 0c stw r0,12(r1) return _POSIX_Condition_variables_Signal_support( cond, false ); ffc09a0c: 48 00 00 15 bl ffc09a20 <_POSIX_Condition_variables_Signal_support> <== ALWAYS TAKEN } ffc09a10: 80 01 00 0c lwz r0,12(r1) ffc09a14: 38 21 00 08 addi r1,r1,8 ffc09a18: 7c 08 03 a6 mtlr r0 ffc09a1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09acc : int pthread_cond_timedwait( pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc09acc: 94 21 ff e0 stwu r1,-32(r1) ffc09ad0: 7c 08 02 a6 mflr r0 ffc09ad4: 93 c1 00 18 stw r30,24(r1) ffc09ad8: 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) ) { ffc09adc: 7c a3 2b 78 mr r3,r5 int pthread_cond_timedwait( pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc09ae0: 93 e1 00 1c stw r31,28(r1) ffc09ae4: 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) ) { ffc09ae8: 38 81 00 08 addi r4,r1,8 int pthread_cond_timedwait( pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc09aec: 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) ) { ffc09af0: 48 00 06 75 bl ffc0a164 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN ffc09af4: 7c 66 1b 79 mr. r6,r3 ffc09af8: 38 60 00 16 li r3,22 ffc09afc: 41 82 00 20 beq- ffc09b1c default: /* only to silence warnings */ already_timedout = false; break; } return _POSIX_Condition_variables_Wait_support( ffc09b00: 80 a1 00 08 lwz r5,8(r1) ffc09b04: 7f c3 f3 78 mr r3,r30 ffc09b08: 7f e4 fb 78 mr r4,r31 ffc09b0c: 20 c6 00 02 subfic r6,r6,2 ffc09b10: 38 c0 00 00 li r6,0 ffc09b14: 7c c6 31 14 adde r6,r6,r6 ffc09b18: 48 00 00 45 bl ffc09b5c <_POSIX_Condition_variables_Wait_support> <== ALWAYS TAKEN cond, mutex, ticks, already_timedout ); } ffc09b1c: 80 01 00 24 lwz r0,36(r1) ffc09b20: 83 c1 00 18 lwz r30,24(r1) ffc09b24: 7c 08 03 a6 mtlr r0 ffc09b28: 83 e1 00 1c lwz r31,28(r1) ffc09b2c: 38 21 00 20 addi r1,r1,32 ffc09b30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09b34 : int pthread_cond_wait( pthread_cond_t *cond, pthread_mutex_t *mutex ) { ffc09b34: 94 21 ff f8 stwu r1,-8(r1) ffc09b38: 7c 08 02 a6 mflr r0 return _POSIX_Condition_variables_Wait_support( ffc09b3c: 38 a0 00 00 li r5,0 ffc09b40: 38 c0 00 00 li r6,0 int pthread_cond_wait( pthread_cond_t *cond, pthread_mutex_t *mutex ) { ffc09b44: 90 01 00 0c stw r0,12(r1) return _POSIX_Condition_variables_Wait_support( ffc09b48: 48 00 00 15 bl ffc09b5c <_POSIX_Condition_variables_Wait_support> <== ALWAYS TAKEN cond, mutex, THREAD_QUEUE_WAIT_FOREVER, false ); } ffc09b4c: 80 01 00 0c lwz r0,12(r1) ffc09b50: 38 21 00 08 addi r1,r1,8 ffc09b54: 7c 08 03 a6 mtlr r0 ffc09b58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09728 : int pthread_condattr_destroy( pthread_condattr_t *attr ) { if ( !attr || attr->is_initialized == false ) ffc09728: 2c 03 00 00 cmpwi r3,0 ffc0972c: 41 82 00 20 beq- ffc0974c ffc09730: 80 03 00 00 lwz r0,0(r3) ffc09734: 2f 80 00 00 cmpwi cr7,r0,0 ffc09738: 41 9e 00 14 beq- cr7,ffc0974c <== NEVER TAKEN return EINVAL; attr->is_initialized = false; ffc0973c: 38 00 00 00 li r0,0 ffc09740: 90 03 00 00 stw r0,0(r3) ffc09744: 38 60 00 00 li r3,0 return 0; ffc09748: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0974c: 38 60 00 16 li r3,22 } ffc09750: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09754 : int pthread_condattr_getpshared( const pthread_condattr_t *attr, int *pshared ) { if ( !attr ) ffc09754: 7c 69 1b 79 mr. r9,r3 ffc09758: 38 60 00 16 li r3,22 ffc0975c: 4d 82 00 20 beqlr return EINVAL; *pshared = attr->process_shared; ffc09760: 80 09 00 04 lwz r0,4(r9) ffc09764: 38 60 00 00 li r3,0 ffc09768: 90 04 00 00 stw r0,0(r4) return 0; } ffc0976c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09770 : int pthread_condattr_init( pthread_condattr_t *attr ) { if ( !attr ) ffc09770: 7c 69 1b 79 mr. r9,r3 ffc09774: 38 60 00 16 li r3,22 ffc09778: 4d 82 00 20 beqlr return EINVAL; *attr = _POSIX_Condition_variables_Default_attributes; ffc0977c: 3d 60 00 00 lis r11,0 ffc09780: 39 6b 27 08 addi r11,r11,9992 ffc09784: 81 8b 00 04 lwz r12,4(r11) ffc09788: 38 60 00 00 li r3,0 ffc0978c: 81 6b 00 00 lwz r11,0(r11) ffc09790: 91 89 00 04 stw r12,4(r9) ffc09794: 91 69 00 00 stw r11,0(r9) return 0; } ffc09798: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0979c : int pthread_condattr_setpshared( pthread_condattr_t *attr, int pshared ) { if ( !attr ) ffc0979c: 2c 03 00 00 cmpwi r3,0 ffc097a0: 41 82 00 0c beq- ffc097ac return EINVAL; switch ( pshared ) { ffc097a4: 2b 84 00 01 cmplwi cr7,r4,1 ffc097a8: 40 9d 00 0c ble- cr7,ffc097b4 case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; return 0; ffc097ac: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc097b0: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; switch ( pshared ) { case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; ffc097b4: 90 83 00 04 stw r4,4(r3) ffc097b8: 38 60 00 00 li r3,0 return 0; ffc097bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0891c : pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) { ffc0891c: 94 21 ff 90 stwu r1,-112(r1) ffc08920: 7c 08 02 a6 mflr r0 ffc08924: 93 61 00 5c stw r27,92(r1) int schedpolicy = SCHED_RR; struct sched_param schedparam; Objects_Name name; int rc; if ( !start_routine ) ffc08928: 7c bb 2b 79 mr. r27,r5 pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) { ffc0892c: 93 81 00 60 stw r28,96(r1) ffc08930: 7c dc 33 78 mr r28,r6 <== ALWAYS TAKEN ffc08934: 93 a1 00 64 stw r29,100(r1) ffc08938: 7c 7d 1b 78 mr r29,r3 ffc0893c: 93 c1 00 68 stw r30,104(r1) int schedpolicy = SCHED_RR; struct sched_param schedparam; Objects_Name name; int rc; if ( !start_routine ) ffc08940: 3b c0 00 0e li r30,14 pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) { ffc08944: 90 01 00 74 stw r0,116(r1) ffc08948: 92 a1 00 44 stw r21,68(r1) ffc0894c: 92 c1 00 48 stw r22,72(r1) ffc08950: 92 e1 00 4c stw r23,76(r1) ffc08954: 93 01 00 50 stw r24,80(r1) ffc08958: 93 21 00 54 stw r25,84(r1) ffc0895c: 93 41 00 58 stw r26,88(r1) ffc08960: 93 e1 00 6c stw r31,108(r1) int schedpolicy = SCHED_RR; struct sched_param schedparam; Objects_Name name; int rc; if ( !start_routine ) ffc08964: 41 82 00 54 beq- ffc089b8 return EFAULT; the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes; ffc08968: 2f 84 00 00 cmpwi cr7,r4,0 ffc0896c: 7c 9f 23 78 mr r31,r4 ffc08970: 41 9e 01 a4 beq- cr7,ffc08b14 if ( !the_attr->is_initialized ) ffc08974: 80 1f 00 00 lwz r0,0(r31) ffc08978: 2f 80 00 00 cmpwi cr7,r0,0 ffc0897c: 41 9e 00 38 beq- cr7,ffc089b4 * 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) ) ffc08980: 80 1f 00 04 lwz r0,4(r31) ffc08984: 2f 80 00 00 cmpwi cr7,r0,0 ffc08988: 41 9e 00 18 beq- cr7,ffc089a0 ffc0898c: 3d 20 00 00 lis r9,0 ffc08990: 80 09 26 c8 lwz r0,9928(r9) ffc08994: 81 3f 00 08 lwz r9,8(r31) ffc08998: 7f 89 00 40 cmplw cr7,r9,r0 ffc0899c: 41 9c 00 18 blt- cr7,ffc089b4 * 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 ) { ffc089a0: 80 1f 00 10 lwz r0,16(r31) ffc089a4: 2f 80 00 01 cmpwi cr7,r0,1 ffc089a8: 41 9e 01 78 beq- cr7,ffc08b20 ffc089ac: 2f 80 00 02 cmpwi cr7,r0,2 ffc089b0: 41 9e 00 48 beq- cr7,ffc089f8 * Return the id and indicate we successfully created the thread */ *thread = the_thread->Object.id; _RTEMS_Unlock_allocator(); return 0; ffc089b4: 3b c0 00 16 li r30,22 } ffc089b8: 80 01 00 74 lwz r0,116(r1) ffc089bc: 7f c3 f3 78 mr r3,r30 ffc089c0: 82 a1 00 44 lwz r21,68(r1) ffc089c4: 7c 08 03 a6 mtlr r0 ffc089c8: 82 c1 00 48 lwz r22,72(r1) ffc089cc: 82 e1 00 4c lwz r23,76(r1) ffc089d0: 83 01 00 50 lwz r24,80(r1) ffc089d4: 83 21 00 54 lwz r25,84(r1) ffc089d8: 83 41 00 58 lwz r26,88(r1) ffc089dc: 83 61 00 5c lwz r27,92(r1) ffc089e0: 83 81 00 60 lwz r28,96(r1) ffc089e4: 83 a1 00 64 lwz r29,100(r1) ffc089e8: 83 c1 00 68 lwz r30,104(r1) ffc089ec: 83 e1 00 6c lwz r31,108(r1) ffc089f0: 38 21 00 70 addi r1,r1,112 ffc089f4: 4e 80 00 20 blr <== ALWAYS TAKEN schedparam = api->schedparam; break; case PTHREAD_EXPLICIT_SCHED: schedpolicy = the_attr->schedpolicy; schedparam = the_attr->schedparam; ffc089f8: 81 3f 00 20 lwz r9,32(r31) ffc089fc: 80 1f 00 24 lwz r0,36(r31) ffc08a00: 81 5f 00 18 lwz r10,24(r31) ffc08a04: 81 7f 00 1c lwz r11,28(r31) schedpolicy = api->schedpolicy; schedparam = api->schedparam; break; case PTHREAD_EXPLICIT_SCHED: schedpolicy = the_attr->schedpolicy; ffc08a08: 83 5f 00 14 lwz r26,20(r31) schedparam = the_attr->schedparam; ffc08a0c: 91 41 00 20 stw r10,32(r1) ffc08a10: 91 61 00 24 stw r11,36(r1) ffc08a14: 91 21 00 28 stw r9,40(r1) ffc08a18: 90 01 00 2c stw r0,44(r1) ffc08a1c: 81 3f 00 28 lwz r9,40(r31) ffc08a20: 80 1f 00 2c lwz r0,44(r31) ffc08a24: 91 21 00 30 stw r9,48(r1) ffc08a28: 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 ) ffc08a2c: 80 1f 00 0c lwz r0,12(r31) ffc08a30: 3b c0 00 86 li r30,134 ffc08a34: 2f 80 00 00 cmpwi cr7,r0,0 ffc08a38: 40 be ff 80 bne- cr7,ffc089b8 return ENOTSUP; /* * Interpret the scheduling parameters. */ if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) ) ffc08a3c: 80 61 00 20 lwz r3,32(r1) ffc08a40: 48 00 7a b9 bl ffc104f8 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc08a44: 2f 83 00 00 cmpwi cr7,r3,0 ffc08a48: 41 9e ff 6c beq+ cr7,ffc089b4 <== NEVER TAKEN return EINVAL; core_priority = _POSIX_Priority_To_core( schedparam.sched_priority ); ffc08a4c: 7c 24 0b 78 mr r4,r1 ffc08a50: 86 c4 00 20 lwzu r22,32(r4) RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); ffc08a54: 3d 20 00 00 lis r9,0 /* * Set the core scheduling policy information. */ rc = _POSIX_Thread_Translate_sched_param( ffc08a58: 7f 43 d3 78 mr r3,r26 ffc08a5c: 8a a9 26 cc lbz r21,9932(r9) ffc08a60: 38 a1 00 18 addi r5,r1,24 ffc08a64: 38 c1 00 1c addi r6,r1,28 ffc08a68: 48 00 7a b5 bl ffc1051c <_POSIX_Thread_Translate_sched_param> <== ALWAYS TAKEN schedpolicy, &schedparam, &budget_algorithm, &budget_callout ); if ( rc ) ffc08a6c: 7c 7e 1b 79 mr. r30,r3 ffc08a70: 40 82 ff 48 bne+ ffc089b8 #endif /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); ffc08a74: 3e e0 00 00 lis r23,0 ffc08a78: 80 77 27 d0 lwz r3,10192(r23) * _POSIX_Threads_Allocate */ RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information ); ffc08a7c: 3f 00 00 00 lis r24,0 ffc08a80: 3b 18 2e 58 addi r24,r24,11864 ffc08a84: 48 00 1f e1 bl ffc0aa64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc08a88: 7f 03 c3 78 mr r3,r24 ffc08a8c: 48 00 2b 7d bl ffc0b608 <_Objects_Allocate> <== ALWAYS TAKEN * Allocate the thread control block. * * NOTE: Global threads are not currently supported. */ the_thread = _POSIX_Threads_Allocate(); if ( !the_thread ) { ffc08a90: 7c 79 1b 79 mr. r25,r3 ffc08a94: 7f 03 c3 78 mr r3,r24 ffc08a98: 41 82 00 6c beq- ffc08b04 /* * Initialize the core thread for this task. */ name.name_p = NULL; /* posix threads don't have a name by default */ status = _Thread_Initialize( ffc08a9c: 3d 20 00 00 lis r9,0 ffc08aa0: 80 1f 00 08 lwz r0,8(r31) ffc08aa4: 80 c9 26 c8 lwz r6,9928(r9) ffc08aa8: 93 c1 00 38 stw r30,56(r1) ffc08aac: 54 c6 08 3c rlwinm r6,r6,1,0,30 ffc08ab0: 7f 86 00 40 cmplw cr7,r6,r0 ffc08ab4: 80 bf 00 04 lwz r5,4(r31) ffc08ab8: 40 9c 00 08 bge- cr7,ffc08ac0 ffc08abc: 7c 06 03 78 mr r6,r0 ffc08ac0: 80 01 00 1c lwz r0,28(r1) ffc08ac4: 7d 16 a8 50 subf r8,r22,r21 ffc08ac8: 81 41 00 18 lwz r10,24(r1) ffc08acc: 7f 24 cb 78 mr r4,r25 ffc08ad0: 90 01 00 08 stw r0,8(r1) ffc08ad4: 38 00 00 00 li r0,0 ffc08ad8: 38 e0 00 01 li r7,1 ffc08adc: 90 01 00 0c stw r0,12(r1) ffc08ae0: 39 20 00 01 li r9,1 ffc08ae4: 38 01 00 38 addi r0,r1,56 ffc08ae8: 90 01 00 10 stw r0,16(r1) ffc08aec: 48 00 3e 21 bl ffc0c90c <_Thread_Initialize> <== ALWAYS TAKEN budget_callout, 0, /* isr level */ name /* posix threads don't have a name */ ); if ( !status ) { ffc08af0: 2f 83 00 00 cmpwi cr7,r3,0 ffc08af4: 40 9e 00 70 bne- cr7,ffc08b64 RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free ( Thread_Control *the_pthread ) { _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); ffc08af8: 7f 03 c3 78 mr r3,r24 ffc08afc: 7f 24 cb 78 mr r4,r25 ffc08b00: 48 00 2f 29 bl ffc0ba28 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Threads_Free( the_thread ); _RTEMS_Unlock_allocator(); ffc08b04: 80 77 27 d0 lwz r3,10192(r23) ffc08b08: 3b c0 00 0b li r30,11 ffc08b0c: 48 00 1f d9 bl ffc0aae4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return EAGAIN; ffc08b10: 4b ff fe a8 b ffc089b8 <== ALWAYS TAKEN int rc; if ( !start_routine ) return EFAULT; the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes; ffc08b14: 3f e0 ff c2 lis r31,-62 ffc08b18: 3b ff 0f 54 addi r31,r31,3924 ffc08b1c: 4b ff fe 58 b ffc08974 <== ALWAYS TAKEN * PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the * attributes structure. */ switch ( the_attr->inheritsched ) { case PTHREAD_INHERIT_SCHED: api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc08b20: 3d 20 00 00 lis r9,0 ffc08b24: 81 29 27 d8 lwz r9,10200(r9) ffc08b28: 81 29 01 48 lwz r9,328(r9) schedpolicy = api->schedpolicy; schedparam = api->schedparam; ffc08b2c: 81 69 00 88 lwz r11,136(r9) ffc08b30: 80 09 00 8c lwz r0,140(r9) ffc08b34: 81 09 00 80 lwz r8,128(r9) ffc08b38: 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; ffc08b3c: 83 49 00 7c lwz r26,124(r9) schedparam = api->schedparam; ffc08b40: 91 01 00 20 stw r8,32(r1) ffc08b44: 91 41 00 24 stw r10,36(r1) ffc08b48: 91 61 00 28 stw r11,40(r1) ffc08b4c: 90 01 00 2c stw r0,44(r1) ffc08b50: 81 69 00 94 lwz r11,148(r9) ffc08b54: 80 09 00 90 lwz r0,144(r9) ffc08b58: 91 61 00 34 stw r11,52(r1) ffc08b5c: 90 01 00 30 stw r0,48(r1) break; ffc08b60: 4b ff fe cc b ffc08a2c <== ALWAYS TAKEN } /* * finish initializing the per API structure */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc08b64: 83 19 01 48 lwz r24,328(r25) api->Attributes = *the_attr; ffc08b68: 7f e4 fb 78 mr r4,r31 ffc08b6c: 38 a0 00 38 li r5,56 ffc08b70: 7f 03 c3 78 mr r3,r24 ffc08b74: 48 00 c7 01 bl ffc15274 <== ALWAYS TAKEN api->detachstate = the_attr->detachstate; ffc08b78: 80 1f 00 34 lwz r0,52(r31) api->schedpolicy = schedpolicy; ffc08b7c: 93 58 00 7c stw r26,124(r24) the_thread->do_post_task_switch_extension = true; /* * POSIX threads are allocated and started in one operation. */ status = _Thread_Start( ffc08b80: 7f 65 db 78 mr r5,r27 ffc08b84: 7f 86 e3 78 mr r6,r28 * finish initializing the per API structure */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; api->detachstate = the_attr->detachstate; ffc08b88: 90 18 00 38 stw r0,56(r24) the_thread->do_post_task_switch_extension = true; /* * POSIX threads are allocated and started in one operation. */ status = _Thread_Start( ffc08b8c: 7f 23 cb 78 mr r3,r25 ffc08b90: 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; ffc08b94: 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( ffc08b98: 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; ffc08b9c: 80 01 00 2c lwz r0,44(r1) ffc08ba0: 81 61 00 24 lwz r11,36(r1) ffc08ba4: 81 41 00 20 lwz r10,32(r1) ffc08ba8: 91 38 00 88 stw r9,136(r24) * 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; ffc08bac: 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; ffc08bb0: 91 58 00 80 stw r10,128(r24) ffc08bb4: 91 78 00 84 stw r11,132(r24) ffc08bb8: 90 18 00 8c stw r0,140(r24) <== ALWAYS TAKEN * 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; ffc08bbc: 99 39 00 74 stb r9,116(r25) api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; api->detachstate = the_attr->detachstate; api->schedpolicy = schedpolicy; api->schedparam = schedparam; ffc08bc0: 80 01 00 34 lwz r0,52(r1) ffc08bc4: 81 21 00 30 lwz r9,48(r1) ffc08bc8: 90 18 00 94 stw r0,148(r24) ffc08bcc: 91 38 00 90 stw r9,144(r24) the_thread->do_post_task_switch_extension = true; /* * POSIX threads are allocated and started in one operation. */ status = _Thread_Start( ffc08bd0: 48 00 4b 0d bl ffc0d6dc <_Thread_Start> <== ALWAYS TAKEN _RTEMS_Unlock_allocator(); return EINVAL; } #endif if ( schedpolicy == SCHED_SPORADIC ) { ffc08bd4: 2f 9a 00 03 cmpwi cr7,r26,3 ffc08bd8: 41 9e 00 18 beq- cr7,ffc08bf0 } /* * Return the id and indicate we successfully created the thread */ *thread = the_thread->Object.id; ffc08bdc: 80 19 00 08 lwz r0,8(r25) _RTEMS_Unlock_allocator(); ffc08be0: 80 77 27 d0 lwz r3,10192(r23) } /* * Return the id and indicate we successfully created the thread */ *thread = the_thread->Object.id; ffc08be4: 90 1d 00 00 stw r0,0(r29) _RTEMS_Unlock_allocator(); ffc08be8: 48 00 1e fd bl ffc0aae4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return 0; ffc08bec: 4b ff fd cc b ffc089b8 <== ALWAYS TAKEN return EINVAL; } #endif if ( schedpolicy == SCHED_SPORADIC ) { _Watchdog_Insert_ticks( ffc08bf0: 38 78 00 88 addi r3,r24,136 ffc08bf4: 48 00 4e c5 bl ffc0dab8 <_Timespec_To_ticks> <== ALWAYS TAKEN ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08bf8: 38 98 00 9c addi r4,r24,156 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc08bfc: 90 78 00 a8 stw r3,168(r24) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08c00: 3c 60 00 00 lis r3,0 ffc08c04: 38 63 2d 28 addi r3,r3,11560 ffc08c08: 48 00 54 35 bl ffc0e03c <_Watchdog_Insert> <== ALWAYS TAKEN ffc08c0c: 4b ff ff d0 b ffc08bdc <== ALWAYS TAKEN ffc088e4 : #include int pthread_detach( pthread_t thread ) { ffc088e4: 94 21 ff e8 stwu r1,-24(r1) ffc088e8: 7c 08 02 a6 mflr r0 ffc088ec: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) ffc088f0: 3c 60 00 00 lis r3,0 ffc088f4: 90 01 00 1c stw r0,28(r1) ffc088f8: 38 63 2e b8 addi r3,r3,11960 ffc088fc: 38 a1 00 08 addi r5,r1,8 ffc08900: 48 00 2d cd bl ffc0b6cc <_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 ) { ffc08904: 81 21 00 08 lwz r9,8(r1) ffc08908: 38 00 00 03 li r0,3 ffc0890c: 2f 89 00 00 cmpwi cr7,r9,0 ffc08910: 40 9e 00 14 bne- cr7,ffc08924 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->detachstate = PTHREAD_CREATE_DETACHED; ffc08914: 81 63 01 48 lwz r11,328(r3) ffc08918: 91 2b 00 38 stw r9,56(r11) _Thread_Enable_dispatch(); ffc0891c: 48 00 39 7d bl ffc0c298 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08920: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return ESRCH; } ffc08924: 7c 03 03 78 mr r3,r0 ffc08928: 80 01 00 1c lwz r0,28(r1) ffc0892c: 38 21 00 18 addi r1,r1,24 ffc08930: 7c 08 03 a6 mtlr r0 ffc08934: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c10 : break; } return status; #endif } ffc08c10: 7c 63 22 78 xor r3,r3,r4 ffc08c14: 7c 63 00 34 cntlzw r3,r3 ffc08c18: 54 63 d9 7e rlwinm r3,r3,27,5,31 ffc08c1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11c88 : void pthread_exit( void *value_ptr ) { _POSIX_Thread_Exit( _Thread_Executing, value_ptr ); ffc11c88: 3d 20 00 00 lis r9,0 } void pthread_exit( void *value_ptr ) { ffc11c8c: 7c 64 1b 78 mr r4,r3 _POSIX_Thread_Exit( _Thread_Executing, value_ptr ); ffc11c90: 80 69 27 b0 lwz r3,10160(r9) ffc11c94: 4b ff ff 5c b ffc11bf0 <_POSIX_Thread_Exit> <== ALWAYS TAKEN ffc085e4 : int pthread_getcpuclockid( pthread_t pid, clockid_t *clock_id ) { ffc085e4: 94 21 ff f8 stwu r1,-8(r1) ffc085e8: 7c 08 02 a6 mflr r0 ffc085ec: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc085f0: 48 00 bc 81 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc085f4: 38 00 00 58 li r0,88 ffc085f8: 90 03 00 00 stw r0,0(r3) } ffc085fc: 38 60 ff ff li r3,-1 ffc08600: 80 01 00 0c lwz r0,12(r1) ffc08604: 38 21 00 08 addi r1,r1,8 ffc08608: 7c 08 03 a6 mtlr r0 ffc0860c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bbb0 : int pthread_getschedparam( pthread_t thread, int *policy, struct sched_param *param ) { ffc0bbb0: 94 21 ff e0 stwu r1,-32(r1) ffc0bbb4: 7c 08 02 a6 mflr r0 ffc0bbb8: 93 c1 00 18 stw r30,24(r1) Objects_Locations location; POSIX_API_Control *api; register Thread_Control *the_thread; if ( !policy || !param ) ffc0bbbc: 7c 9e 23 79 mr. r30,r4 int pthread_getschedparam( pthread_t thread, int *policy, struct sched_param *param ) { ffc0bbc0: 7c 64 1b 78 mr r4,r3 ffc0bbc4: 93 e1 00 1c stw r31,28(r1) ffc0bbc8: 7c bf 2b 78 mr r31,r5 ffc0bbcc: 90 01 00 24 stw r0,36(r1) Objects_Locations location; POSIX_API_Control *api; register Thread_Control *the_thread; if ( !policy || !param ) ffc0bbd0: 41 82 00 b8 beq- ffc0bc88 ffc0bbd4: 2f 85 00 00 cmpwi cr7,r5,0 ffc0bbd8: 41 9e 00 b0 beq- cr7,ffc0bc88 RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) ffc0bbdc: 3c 60 00 00 lis r3,0 ffc0bbe0: 38 63 2e d8 addi r3,r3,11992 ffc0bbe4: 38 a1 00 08 addi r5,r1,8 ffc0bbe8: 48 00 2f 79 bl ffc0eb60 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc0bbec: 80 01 00 08 lwz r0,8(r1) ffc0bbf0: 7c 6b 1b 78 mr r11,r3 ffc0bbf4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bbf8: 38 60 00 03 li r3,3 ffc0bbfc: 41 9e 00 1c beq- cr7,ffc0bc18 break; } return ESRCH; } ffc0bc00: 80 01 00 24 lwz r0,36(r1) ffc0bc04: 83 c1 00 18 lwz r30,24(r1) ffc0bc08: 7c 08 03 a6 mtlr r0 ffc0bc0c: 83 e1 00 1c lwz r31,28(r1) ffc0bc10: 38 21 00 20 addi r1,r1,32 ffc0bc14: 4e 80 00 20 blr <== ALWAYS TAKEN the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0bc18: 81 2b 01 48 lwz r9,328(r11) if ( policy ) *policy = api->schedpolicy; ffc0bc1c: 80 09 00 7c lwz r0,124(r9) ffc0bc20: 90 1e 00 00 stw r0,0(r30) if ( param ) { *param = api->schedparam; ffc0bc24: 81 49 00 88 lwz r10,136(r9) ffc0bc28: 80 09 00 8c lwz r0,140(r9) ffc0bc2c: 80 e9 00 80 lwz r7,128(r9) ffc0bc30: 81 09 00 84 lwz r8,132(r9) ffc0bc34: 90 ff 00 00 stw r7,0(r31) ffc0bc38: 91 1f 00 04 stw r8,4(r31) ffc0bc3c: 91 5f 00 08 stw r10,8(r31) ffc0bc40: 90 1f 00 0c stw r0,12(r31) ffc0bc44: 80 09 00 90 lwz r0,144(r9) ffc0bc48: 81 49 00 94 lwz r10,148(r9) param->sched_priority = ffc0bc4c: 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; ffc0bc50: 90 1f 00 10 stw r0,16(r31) ffc0bc54: 91 5f 00 14 stw r10,20(r31) param->sched_priority = ffc0bc58: 89 29 27 0c lbz r9,9996(r9) ffc0bc5c: 80 0b 00 14 lwz r0,20(r11) ffc0bc60: 7c 00 48 50 subf r0,r0,r9 ffc0bc64: 90 1f 00 00 stw r0,0(r31) _POSIX_Priority_From_core( the_thread->current_priority ); } _Thread_Enable_dispatch(); ffc0bc68: 48 00 3a c5 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN break; } return ESRCH; } ffc0bc6c: 80 01 00 24 lwz r0,36(r1) if ( param ) { *param = api->schedparam; param->sched_priority = _POSIX_Priority_From_core( the_thread->current_priority ); } _Thread_Enable_dispatch(); ffc0bc70: 38 60 00 00 li r3,0 break; } return ESRCH; } ffc0bc74: 83 c1 00 18 lwz r30,24(r1) ffc0bc78: 7c 08 03 a6 mtlr r0 ffc0bc7c: 83 e1 00 1c lwz r31,28(r1) ffc0bc80: 38 21 00 20 addi r1,r1,32 ffc0bc84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bc88: 80 01 00 24 lwz r0,36(r1) *param = api->schedparam; param->sched_priority = _POSIX_Priority_From_core( the_thread->current_priority ); } _Thread_Enable_dispatch(); return 0; ffc0bc8c: 38 60 00 16 li r3,22 break; } return ESRCH; } ffc0bc90: 83 c1 00 18 lwz r30,24(r1) ffc0bc94: 7c 08 03 a6 mtlr r0 ffc0bc98: 83 e1 00 1c lwz r31,28(r1) ffc0bc9c: 38 21 00 20 addi r1,r1,32 ffc0bca0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08818 : */ void *pthread_getspecific( pthread_key_t key ) { ffc08818: 94 21 ff e0 stwu r1,-32(r1) ffc0881c: 7c 08 02 a6 mflr r0 ffc08820: 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 *) ffc08824: 3c 60 00 00 lis r3,0 ffc08828: 90 01 00 24 stw r0,36(r1) ffc0882c: 38 63 30 b0 addi r3,r3,12464 ffc08830: 38 a1 00 08 addi r5,r1,8 ffc08834: 93 e1 00 1c stw r31,28(r1) ffc08838: 48 00 30 79 bl ffc0b8b0 <_Objects_Get> <== ALWAYS TAKEN uint32_t index; Objects_Locations location; void *key_data; the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { ffc0883c: 3b e0 00 00 li r31,0 ffc08840: 80 01 00 08 lwz r0,8(r1) ffc08844: 2f 80 00 00 cmpwi cr7,r0,0 ffc08848: 40 9e 00 28 bne- cr7,ffc08870 case OBJECTS_LOCAL: api = _Objects_Get_API( _Thread_Executing->Object.id ); ffc0884c: 3d 20 00 00 lis r9,0 ffc08850: 81 29 28 44 lwz r9,10308(r9) ffc08854: 80 09 00 08 lwz r0,8(r9) index = _Objects_Get_index( _Thread_Executing->Object.id ); key_data = (void *) the_key->Values[ api ][ index ]; ffc08858: 54 09 56 fa rlwinm r9,r0,10,27,29 ffc0885c: 7c 63 4a 14 add r3,r3,r9 ffc08860: 81 23 00 14 lwz r9,20(r3) ffc08864: 54 00 13 ba rlwinm r0,r0,2,14,29 ffc08868: 7f e9 00 2e lwzx r31,r9,r0 _Thread_Enable_dispatch(); ffc0886c: 48 00 3c 11 bl ffc0c47c <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return NULL; } ffc08870: 80 01 00 24 lwz r0,36(r1) ffc08874: 7f e3 fb 78 mr r3,r31 ffc08878: 83 e1 00 1c lwz r31,28(r1) ffc0887c: 38 21 00 20 addi r1,r1,32 ffc08880: 7c 08 03 a6 mtlr r0 ffc08884: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0daa0 : int pthread_join( pthread_t thread, void **value_ptr ) { ffc0daa0: 94 21 ff e0 stwu r1,-32(r1) ffc0daa4: 7c 08 02 a6 mflr r0 ffc0daa8: 90 01 00 24 stw r0,36(r1) ffc0daac: 7c 60 1b 78 mr r0,r3 ffc0dab0: 3c 60 00 00 lis r3,0 ffc0dab4: 93 e1 00 1c stw r31,28(r1) ffc0dab8: 38 63 2e d8 addi r3,r3,11992 ffc0dabc: 7c 9f 23 78 mr r31,r4 ffc0dac0: 38 a1 00 08 addi r5,r1,8 ffc0dac4: 7c 04 03 78 mr r4,r0 ffc0dac8: 48 00 2e 71 bl ffc10938 <_Objects_Get> <== ALWAYS TAKEN POSIX_API_Control *api; Objects_Locations location; void *return_pointer; the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc0dacc: 81 21 00 08 lwz r9,8(r1) ffc0dad0: 38 00 00 03 li r0,3 ffc0dad4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0dad8: 40 9e 00 60 bne- cr7,ffc0db38 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0dadc: 81 23 01 48 lwz r9,328(r3) if ( api->detachstate == PTHREAD_CREATE_DETACHED ) { ffc0dae0: 80 09 00 38 lwz r0,56(r9) ffc0dae4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dae8: 41 9e 00 68 beq- cr7,ffc0db50 RTEMS_INLINE_ROUTINE bool _Thread_Is_executing ( const Thread_Control *the_thread ) { return ( the_thread == _Thread_Executing ); ffc0daec: 3d 60 00 00 lis r11,0 ffc0daf0: 81 6b 28 60 lwz r11,10336(r11) _Thread_Enable_dispatch(); return EINVAL; } if ( _Thread_Is_executing( the_thread ) ) { ffc0daf4: 7f 83 58 00 cmpw cr7,r3,r11 ffc0daf8: 41 9e 00 78 beq- cr7,ffc0db70 /* * Put ourself on the threads join list */ _Thread_Executing->Wait.return_argument = &return_pointer; ffc0dafc: 38 01 00 0c addi r0,r1,12 ffc0db00: 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; ffc0db04: 38 00 00 01 li r0,1 _Thread_queue_Enter_critical_section( &api->Join_List ); _Thread_queue_Enqueue( &api->Join_List, WATCHDOG_NO_TIMEOUT ); ffc0db08: 3c a0 ff c1 lis r5,-63 ffc0db0c: 90 09 00 6c stw r0,108(r9) ffc0db10: 38 69 00 3c addi r3,r9,60 ffc0db14: 38 a5 1f e0 addi r5,r5,8160 ffc0db18: 38 80 00 00 li r4,0 ffc0db1c: 48 00 40 65 bl ffc11b80 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0db20: 48 00 39 e5 bl ffc11504 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( value_ptr ) ffc0db24: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0db28: 38 00 00 00 li r0,0 ffc0db2c: 41 9e 00 0c beq- cr7,ffc0db38 *value_ptr = return_pointer; ffc0db30: 81 21 00 0c lwz r9,12(r1) ffc0db34: 91 3f 00 00 stw r9,0(r31) case OBJECTS_ERROR: break; } return ESRCH; } ffc0db38: 7c 03 03 78 mr r3,r0 ffc0db3c: 80 01 00 24 lwz r0,36(r1) ffc0db40: 83 e1 00 1c lwz r31,28(r1) ffc0db44: 38 21 00 20 addi r1,r1,32 ffc0db48: 7c 08 03 a6 mtlr r0 ffc0db4c: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( api->detachstate == PTHREAD_CREATE_DETACHED ) { _Thread_Enable_dispatch(); ffc0db50: 48 00 39 b5 bl ffc11504 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0db54: 38 00 00 16 li r0,22 case OBJECTS_ERROR: break; } return ESRCH; } ffc0db58: 7c 03 03 78 mr r3,r0 ffc0db5c: 80 01 00 24 lwz r0,36(r1) ffc0db60: 83 e1 00 1c lwz r31,28(r1) ffc0db64: 38 21 00 20 addi r1,r1,32 ffc0db68: 7c 08 03 a6 mtlr r0 ffc0db6c: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Enable_dispatch(); return EINVAL; } if ( _Thread_Is_executing( the_thread ) ) { _Thread_Enable_dispatch(); ffc0db70: 48 00 39 95 bl ffc11504 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0db74: 38 00 00 2d li r0,45 return EDEADLK; ffc0db78: 4b ff ff c0 b ffc0db38 <== ALWAYS TAKEN ffc085dc : ffc085dc: 3d 20 00 00 lis r9,0 int pthread_key_create( pthread_key_t *key, void (*destructor)( void * ) ) { ffc085e0: 94 21 ff d0 stwu r1,-48(r1) ffc085e4: 7c 08 02 a6 mflr r0 ffc085e8: 81 69 28 04 lwz r11,10244(r9) ffc085ec: 93 41 00 18 stw r26,24(r1) ffc085f0: 7c 7a 1b 78 mr r26,r3 ffc085f4: 39 6b 00 01 addi r11,r11,1 ffc085f8: 93 e1 00 2c stw r31,44(r1) ffc085fc: 7c 9f 23 78 mr r31,r4 ffc08600: 90 01 00 34 stw r0,52(r1) ffc08604: 93 21 00 14 stw r25,20(r1) ffc08608: 93 61 00 1c stw r27,28(r1) ffc0860c: 93 81 00 20 stw r28,32(r1) ffc08610: 93 a1 00 24 stw r29,36(r1) ffc08614: 93 c1 00 28 stw r30,40(r1) ffc08618: 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 ); ffc0861c: 3f 60 00 00 lis r27,0 ffc08620: 3b 7b 30 b0 addi r27,r27,12464 ffc08624: 7f 63 db 78 mr r3,r27 ffc08628: 48 00 2c 89 bl ffc0b2b0 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_key = _POSIX_Keys_Allocate(); if ( !the_key ) { ffc0862c: 7c 7d 1b 79 mr. r29,r3 ffc08630: 41 82 00 c0 beq- ffc086f0 ffc08634: 3f 80 00 00 lis r28,0 _Thread_Enable_dispatch(); return EAGAIN; } the_key->destructor = destructor; ffc08638: 93 fd 00 10 stw r31,16(r29) ffc0863c: 3b 9c 2c 80 addi r28,r28,11392 ffc08640: 7f be eb 78 mr r30,r29 ffc08644: 3b e0 00 01 li r31,1 for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) { if ( _Objects_Information_table[ the_api ] ) { ffc08648: 57 e0 10 3a rlwinm r0,r31,2,0,29 ffc0864c: 7d 3c 00 2e lwzx r9,r28,r0 ffc08650: 2f 89 00 00 cmpwi cr7,r9,0 ffc08654: 41 9e 00 94 beq- cr7,ffc086e8 INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY ); #endif bytes_to_allocate = sizeof( void * ) * ffc08658: 81 29 00 04 lwz r9,4(r9) ffc0865c: a3 29 00 10 lhz r25,16(r9) ffc08660: 3b 39 00 01 addi r25,r25,1 ffc08664: 57 39 10 3a rlwinm r25,r25,2,0,29 (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); ffc08668: 7f 23 cb 78 mr r3,r25 ffc0866c: 48 00 5a b9 bl ffc0e124 <_Workspace_Allocate> <== ALWAYS TAKEN _Thread_Enable_dispatch(); return ENOMEM; } the_key->Values[ the_api ] = table; memset( table, '\0', bytes_to_allocate ); ffc08670: 7f 25 cb 78 mr r5,r25 ); #endif bytes_to_allocate = sizeof( void * ) * (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { ffc08674: 7c 60 1b 79 mr. r0,r3 _Thread_Enable_dispatch(); return ENOMEM; } the_key->Values[ the_api ] = table; memset( table, '\0', bytes_to_allocate ); ffc08678: 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 ) { ffc0867c: 41 82 00 a8 beq- ffc08724 _POSIX_Keys_Free( the_key ); _Thread_Enable_dispatch(); return ENOMEM; } the_key->Values[ the_api ] = table; ffc08680: 90 1e 00 18 stw r0,24(r30) memset( table, '\0', bytes_to_allocate ); ffc08684: 48 00 cc b5 bl ffc15338 <== ALWAYS TAKEN * 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; ffc08688: 2f 9f 00 04 cmpwi cr7,r31,4 the_api <= OBJECTS_APIS_LAST; the_api++ ) { ffc0868c: 3b de 00 04 addi r30,r30,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; ffc08690: 3b ff 00 01 addi r31,r31,1 ffc08694: 40 9e ff b4 bne+ cr7,ffc08648 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc08698: 80 1d 00 08 lwz r0,8(r29) ffc0869c: 81 7b 00 1c lwz r11,28(r27) ffc086a0: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc086a4: 7f ab 49 2e stwx r29,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc086a8: 39 20 00 00 li r9,0 ffc086ac: 91 3d 00 0c stw r9,12(r29) } _Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 ); *key = the_key->Object.id; ffc086b0: 90 1a 00 00 stw r0,0(r26) _Thread_Enable_dispatch(); ffc086b4: 48 00 3d c9 bl ffc0c47c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc086b8: 38 60 00 00 li r3,0 return 0; } ffc086bc: 80 01 00 34 lwz r0,52(r1) ffc086c0: 83 21 00 14 lwz r25,20(r1) ffc086c4: 7c 08 03 a6 mtlr r0 ffc086c8: 83 41 00 18 lwz r26,24(r1) ffc086cc: 83 61 00 1c lwz r27,28(r1) ffc086d0: 83 81 00 20 lwz r28,32(r1) ffc086d4: 83 a1 00 24 lwz r29,36(r1) ffc086d8: 83 c1 00 28 lwz r30,40(r1) ffc086dc: 83 e1 00 2c lwz r31,44(r1) ffc086e0: 38 21 00 30 addi r1,r1,48 ffc086e4: 4e 80 00 20 blr <== ALWAYS TAKEN } the_key->Values[ the_api ] = table; memset( table, '\0', bytes_to_allocate ); } else { the_key->Values[ the_api ] = NULL; ffc086e8: 91 3e 00 18 stw r9,24(r30) ffc086ec: 4b ff ff 9c b ffc08688 <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_key = _POSIX_Keys_Allocate(); if ( !the_key ) { _Thread_Enable_dispatch(); ffc086f0: 48 00 3d 8d bl ffc0c47c <_Thread_Enable_dispatch> <== ALWAYS TAKEN *key = the_key->Object.id; _Thread_Enable_dispatch(); return 0; } ffc086f4: 80 01 00 34 lwz r0,52(r1) _Thread_Disable_dispatch(); the_key = _POSIX_Keys_Allocate(); if ( !the_key ) { _Thread_Enable_dispatch(); ffc086f8: 38 60 00 0b li r3,11 *key = the_key->Object.id; _Thread_Enable_dispatch(); return 0; } ffc086fc: 83 21 00 14 lwz r25,20(r1) ffc08700: 7c 08 03 a6 mtlr r0 ffc08704: 83 41 00 18 lwz r26,24(r1) ffc08708: 83 61 00 1c lwz r27,28(r1) ffc0870c: 83 81 00 20 lwz r28,32(r1) ffc08710: 83 a1 00 24 lwz r29,36(r1) ffc08714: 83 c1 00 28 lwz r30,40(r1) ffc08718: 83 e1 00 2c lwz r31,44(r1) ffc0871c: 38 21 00 30 addi r1,r1,48 ffc08720: 4e 80 00 20 blr <== 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; ffc08724: 34 1f ff ff addic. r0,r31,-1 ffc08728: 90 01 00 08 stw r0,8(r1) ffc0872c: 41 82 00 30 beq- ffc0875c ffc08730: 3b ff 00 03 addi r31,r31,3 ffc08734: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc08738: 7f fd fa 14 add r31,r29,r31 ffc0873c: 3b ff 00 04 addi r31,r31,4 the_api >= 1; the_api-- ) _Workspace_Free( the_key->Values[ the_api ] ); ffc08740: 80 7f 00 00 lwz r3,0(r31) (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); if ( !table ) { for ( --the_api; the_api >= 1; the_api-- ) ffc08744: 3b ff ff fc addi r31,r31,-4 _Workspace_Free( the_key->Values[ the_api ] ); ffc08748: 48 00 5a 11 bl ffc0e158 <_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; ffc0874c: 80 01 00 08 lwz r0,8(r1) ffc08750: 35 20 ff ff addic. r9,r0,-1 ffc08754: 91 21 00 08 stw r9,8(r1) ffc08758: 40 82 ff e8 bne+ ffc08740 */ RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free ( POSIX_Keys_Control *the_key ) { _Objects_Free( &_POSIX_Keys_Information, &the_key->Object ); ffc0875c: 7f 63 db 78 mr r3,r27 ffc08760: 7f a4 eb 78 mr r4,r29 ffc08764: 48 00 2f 6d bl ffc0b6d0 <_Objects_Free> <== ALWAYS TAKEN the_api >= 1; the_api-- ) _Workspace_Free( the_key->Values[ the_api ] ); _POSIX_Keys_Free( the_key ); _Thread_Enable_dispatch(); ffc08768: 48 00 3d 15 bl ffc0c47c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0876c: 38 60 00 0c li r3,12 return ENOMEM; ffc08770: 4b ff ff 4c b ffc086bc <== ALWAYS TAKEN ffc08774 : */ int pthread_key_delete( pthread_key_t key ) { ffc08774: 94 21 ff d8 stwu r1,-40(r1) ffc08778: 7c 08 02 a6 mflr r0 ffc0877c: 7c 64 1b 78 mr r4,r3 ffc08780: 93 e1 00 24 stw r31,36(r1) RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get ( pthread_key_t id, Objects_Locations *location ) { return (POSIX_Keys_Control *) ffc08784: 3f e0 00 00 lis r31,0 ffc08788: 3b ff 30 b0 addi r31,r31,12464 ffc0878c: 7f e3 fb 78 mr r3,r31 ffc08790: 90 01 00 2c stw r0,44(r1) ffc08794: 38 a1 00 08 addi r5,r1,8 ffc08798: 93 c1 00 20 stw r30,32(r1) ffc0879c: 93 a1 00 1c stw r29,28(r1) ffc087a0: 48 00 31 11 bl ffc0b8b0 <_Objects_Get> <== ALWAYS TAKEN ffc087a4: 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 ) { ffc087a8: 80 01 00 08 lwz r0,8(r1) ffc087ac: 38 60 00 16 li r3,22 ffc087b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc087b4: 40 9e 00 48 bne- cr7,ffc087fc case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Keys_Information, &the_key->Object ); ffc087b8: 7f e3 fb 78 mr r3,r31 ffc087bc: 7f c4 f3 78 mr r4,r30 ffc087c0: 48 00 2b b9 bl ffc0b378 <_Objects_Close> <== ALWAYS TAKEN ffc087c4: 3b a0 00 00 li r29,0 for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) if ( the_key->Values[ the_api ] ) ffc087c8: 7d 3e ea 14 add r9,r30,r29 ffc087cc: 80 69 00 18 lwz r3,24(r9) ffc087d0: 2f 83 00 00 cmpwi cr7,r3,0 ffc087d4: 41 9e 00 08 beq- cr7,ffc087dc _Workspace_Free( the_key->Values[ the_api ] ); ffc087d8: 48 00 59 81 bl ffc0e158 <_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++ ) ffc087dc: 2f 9d 00 0c cmpwi cr7,r29,12 ffc087e0: 3b bd 00 04 addi r29,r29,4 ffc087e4: 40 9e ff e4 bne+ cr7,ffc087c8 */ RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free ( POSIX_Keys_Control *the_key ) { _Objects_Free( &_POSIX_Keys_Information, &the_key->Object ); ffc087e8: 7f e3 fb 78 mr r3,r31 ffc087ec: 7f c4 f3 78 mr r4,r30 ffc087f0: 48 00 2e e1 bl ffc0b6d0 <_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(); ffc087f4: 48 00 3c 89 bl ffc0c47c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc087f8: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc087fc: 80 01 00 2c lwz r0,44(r1) ffc08800: 83 a1 00 1c lwz r29,28(r1) ffc08804: 7c 08 03 a6 mtlr r0 ffc08808: 83 c1 00 20 lwz r30,32(r1) ffc0880c: 83 e1 00 24 lwz r31,36(r1) ffc08810: 38 21 00 28 addi r1,r1,40 ffc08814: 4e 80 00 20 blr <== ALWAYS TAKEN ffc13168 : int pthread_kill( pthread_t thread, int sig ) { ffc13168: 94 21 ff d8 stwu r1,-40(r1) ffc1316c: 7c 08 02 a6 mflr r0 ffc13170: 93 e1 00 24 stw r31,36(r1) POSIX_API_Control *api; Thread_Control *the_thread; Objects_Locations location; if ( !sig ) ffc13174: 7c 9f 23 79 mr. r31,r4 int pthread_kill( pthread_t thread, int sig ) { ffc13178: 7c 64 1b 78 mr r4,r3 ffc1317c: 90 01 00 2c stw r0,44(r1) ffc13180: 93 81 00 18 stw r28,24(r1) ffc13184: 93 a1 00 1c stw r29,28(r1) ffc13188: 93 c1 00 20 stw r30,32(r1) POSIX_API_Control *api; Thread_Control *the_thread; Objects_Locations location; if ( !sig ) ffc1318c: 41 82 00 c8 beq- ffc13254 static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); ffc13190: 3b bf ff ff addi r29,r31,-1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) ffc13194: 2b 9d 00 1f cmplwi cr7,r29,31 ffc13198: 41 9d 00 bc bgt- cr7,ffc13254 RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get ( pthread_t id, Objects_Locations *location ) { return (Thread_Control *) ffc1319c: 3c 60 00 00 lis r3,0 ffc131a0: 38 63 2e 78 addi r3,r3,11896 ffc131a4: 38 a1 00 08 addi r5,r1,8 ffc131a8: 4b ff 72 a1 bl ffc0a448 <_Objects_Get> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc131ac: 80 01 00 08 lwz r0,8(r1) ffc131b0: 7c 7e 1b 78 mr r30,r3 ffc131b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc131b8: 40 9e 00 b0 bne- cr7,ffc13268 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( sig ) { if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) { ffc131bc: 1c 1f 00 0c mulli r0,r31,12 case OBJECTS_LOCAL: /* * If sig == 0 then just validate arguments */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc131c0: 81 23 01 48 lwz r9,328(r3) if ( sig ) { if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) { ffc131c4: 3d 60 00 00 lis r11,0 ffc131c8: 39 6b 31 70 addi r11,r11,12656 ffc131cc: 7d 6b 02 14 add r11,r11,r0 <== ALWAYS TAKEN ffc131d0: 80 0b 00 08 lwz r0,8(r11) ffc131d4: 2f 80 00 01 cmpwi cr7,r0,1 ffc131d8: 41 9e 00 48 beq- cr7,ffc13220 return 0; } /* XXX critical section */ api->signals_pending |= signo_to_mask( sig ); ffc131dc: 80 09 00 c8 lwz r0,200(r9) ffc131e0: 3b 80 00 01 li r28,1 ffc131e4: 7f 9d e8 30 slw r29,r28,r29 ffc131e8: 7c 1d eb 78 or r29,r0,r29 ffc131ec: 93 a9 00 c8 stw r29,200(r9) (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL ); ffc131f0: 7f e4 fb 78 mr r4,r31 ffc131f4: 38 a0 00 00 li r5,0 ffc131f8: 4b ff fe 01 bl ffc12ff8 <_POSIX_signals_Unblock_thread> <== ALWAYS TAKEN the_thread->do_post_task_switch_extension = true; if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc131fc: 3d 20 00 00 lis r9,0 ffc13200: 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; ffc13204: 9b 9e 00 74 stb r28,116(r30) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc13208: 2f 80 00 00 cmpwi cr7,r0,0 ffc1320c: 41 9e 00 14 beq- cr7,ffc13220 ffc13210: 3d 20 00 00 lis r9,0 ffc13214: 80 09 27 b0 lwz r0,10160(r9) ffc13218: 7f 9e 00 00 cmpw cr7,r30,r0 ffc1321c: 41 9e 00 2c beq- cr7,ffc13248 _ISR_Signals_to_thread_executing = true; } _Thread_Enable_dispatch(); ffc13220: 4b ff 7d f5 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc13224: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( ESRCH ); } ffc13228: 80 01 00 2c lwz r0,44(r1) ffc1322c: 83 81 00 18 lwz r28,24(r1) ffc13230: 7c 08 03 a6 mtlr r0 ffc13234: 83 a1 00 1c lwz r29,28(r1) ffc13238: 83 c1 00 20 lwz r30,32(r1) ffc1323c: 83 e1 00 24 lwz r31,36(r1) ffc13240: 38 21 00 28 addi r1,r1,40 ffc13244: 4e 80 00 20 blr <== ALWAYS TAKEN (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL ); the_thread->do_post_task_switch_extension = true; if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) _ISR_Signals_to_thread_executing = true; ffc13248: 3d 20 00 00 lis r9,0 ffc1324c: 9b 89 27 cc stb r28,10188(r9) ffc13250: 4b ff ff d0 b ffc13220 <== ALWAYS TAKEN if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc13254: 48 00 01 25 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc13258: 38 00 00 16 li r0,22 ffc1325c: 90 03 00 00 stw r0,0(r3) ffc13260: 38 60 ff ff li r3,-1 ffc13264: 4b ff ff c4 b ffc13228 <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( ESRCH ); ffc13268: 48 00 01 11 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc1326c: 38 00 00 03 li r0,3 ffc13270: 90 03 00 00 stw r0,0(r3) ffc13274: 38 60 ff ff li r3,-1 ffc13278: 4b ff ff b0 b ffc13228 <== ALWAYS TAKEN ffc0b0d0 : */ int pthread_mutex_destroy( pthread_mutex_t *mutex ) { ffc0b0d0: 94 21 ff e0 stwu r1,-32(r1) ffc0b0d4: 7c 08 02 a6 mflr r0 register POSIX_Mutex_Control *the_mutex; Objects_Locations location; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0b0d8: 38 81 00 08 addi r4,r1,8 */ int pthread_mutex_destroy( pthread_mutex_t *mutex ) { ffc0b0dc: 90 01 00 24 stw r0,36(r1) ffc0b0e0: 93 e1 00 1c stw r31,28(r1) ffc0b0e4: 93 c1 00 18 stw r30,24(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0b0e8: 48 00 01 29 bl ffc0b210 <_POSIX_Mutex_Get> <== ALWAYS TAKEN ffc0b0ec: 7c 7f 1b 78 mr r31,r3 switch ( location ) { ffc0b0f0: 80 01 00 08 lwz r0,8(r1) ffc0b0f4: 38 60 00 16 li r3,22 ffc0b0f8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b0fc: 40 9e 00 18 bne- cr7,ffc0b114 /* * 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 ) ) { ffc0b100: 80 1f 00 64 lwz r0,100(r31) ffc0b104: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b108: 40 9e 00 24 bne- cr7,ffc0b12c _Thread_Enable_dispatch(); ffc0b10c: 48 00 46 21 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0b110: 38 60 00 10 li r3,16 case OBJECTS_ERROR: break; } return EINVAL; } ffc0b114: 80 01 00 24 lwz r0,36(r1) ffc0b118: 83 c1 00 18 lwz r30,24(r1) ffc0b11c: 7c 08 03 a6 mtlr r0 ffc0b120: 83 e1 00 1c lwz r31,28(r1) ffc0b124: 38 21 00 20 addi r1,r1,32 ffc0b128: 4e 80 00 20 blr <== ALWAYS TAKEN if ( _CORE_mutex_Is_locked( &the_mutex->Mutex ) ) { _Thread_Enable_dispatch(); return EBUSY; } _Objects_Close( &_POSIX_Mutex_Information, &the_mutex->Object ); ffc0b12c: 3f c0 00 00 lis r30,0 ffc0b130: 3b de 30 18 addi r30,r30,12312 ffc0b134: 7f c3 f3 78 mr r3,r30 ffc0b138: 7f e4 fb 78 mr r4,r31 ffc0b13c: 48 00 34 ed bl ffc0e628 <_Objects_Close> <== ALWAYS TAKEN _CORE_mutex_Flush( &the_mutex->Mutex, NULL, EINVAL ); ffc0b140: 38 a0 00 16 li r5,22 ffc0b144: 38 7f 00 14 addi r3,r31,20 ffc0b148: 38 80 00 00 li r4,0 ffc0b14c: 48 00 28 25 bl ffc0d970 <_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 ); ffc0b150: 7f c3 f3 78 mr r3,r30 ffc0b154: 7f e4 fb 78 mr r4,r31 ffc0b158: 48 00 38 29 bl ffc0e980 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Mutex_Free( the_mutex ); _Thread_Enable_dispatch(); ffc0b15c: 48 00 45 d1 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0b160: 80 01 00 24 lwz r0,36(r1) _Objects_Close( &_POSIX_Mutex_Information, &the_mutex->Object ); _CORE_mutex_Flush( &the_mutex->Mutex, NULL, EINVAL ); _POSIX_Mutex_Free( the_mutex ); _Thread_Enable_dispatch(); ffc0b164: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc0b168: 83 c1 00 18 lwz r30,24(r1) ffc0b16c: 7c 08 03 a6 mtlr r0 ffc0b170: 83 e1 00 1c lwz r31,28(r1) ffc0b174: 38 21 00 20 addi r1,r1,32 ffc0b178: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b294 : int pthread_mutex_getprioceiling( pthread_mutex_t *mutex, int *prioceiling ) { ffc0b294: 94 21 ff e0 stwu r1,-32(r1) ffc0b298: 7c 08 02 a6 mflr r0 ffc0b29c: 93 e1 00 1c stw r31,28(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; if ( !prioceiling ) ffc0b2a0: 7c 9f 23 79 mr. r31,r4 int pthread_mutex_getprioceiling( pthread_mutex_t *mutex, int *prioceiling ) { ffc0b2a4: 90 01 00 24 stw r0,36(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; if ( !prioceiling ) ffc0b2a8: 41 82 00 18 beq- ffc0b2c0 return EINVAL; the_mutex = _POSIX_Mutex_Get( mutex, &location ); ffc0b2ac: 38 81 00 08 addi r4,r1,8 ffc0b2b0: 4b ff ff 61 bl ffc0b210 <_POSIX_Mutex_Get> <== ALWAYS TAKEN switch ( location ) { ffc0b2b4: 80 01 00 08 lwz r0,8(r1) ffc0b2b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b2bc: 41 9e 00 1c beq- cr7,ffc0b2d8 case OBJECTS_ERROR: break; } return EINVAL; } ffc0b2c0: 80 01 00 24 lwz r0,36(r1) case OBJECTS_LOCAL: *prioceiling = _POSIX_Priority_From_core( the_mutex->Mutex.Attributes.priority_ceiling ); _Thread_Enable_dispatch(); return 0; ffc0b2c4: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0b2c8: 83 e1 00 1c lwz r31,28(r1) ffc0b2cc: 38 21 00 20 addi r1,r1,32 ffc0b2d0: 7c 08 03 a6 mtlr r0 ffc0b2d4: 4e 80 00 20 blr <== ALWAYS TAKEN the_mutex = _POSIX_Mutex_Get( mutex, &location ); switch ( location ) { case OBJECTS_LOCAL: *prioceiling = _POSIX_Priority_From_core( ffc0b2d8: 3d 20 00 00 lis r9,0 ffc0b2dc: 80 03 00 60 lwz r0,96(r3) ffc0b2e0: 89 29 27 0c lbz r9,9996(r9) ffc0b2e4: 7c 00 48 50 subf r0,r0,r9 <== ALWAYS TAKEN ffc0b2e8: 90 1f 00 00 stw r0,0(r31) the_mutex->Mutex.Attributes.priority_ceiling ); _Thread_Enable_dispatch(); ffc0b2ec: 48 00 44 41 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0b2f0: 80 01 00 24 lwz r0,36(r1) case OBJECTS_LOCAL: *prioceiling = _POSIX_Priority_From_core( the_mutex->Mutex.Attributes.priority_ceiling ); _Thread_Enable_dispatch(); ffc0b2f4: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc0b2f8: 83 e1 00 1c lwz r31,28(r1) ffc0b2fc: 7c 08 03 a6 mtlr r0 ffc0b300: 38 21 00 20 addi r1,r1,32 ffc0b304: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b308 : int pthread_mutex_init( pthread_mutex_t *mutex, const pthread_mutexattr_t *attr ) { ffc0b308: 94 21 ff e0 stwu r1,-32(r1) ffc0b30c: 7c 08 02 a6 mflr r0 ffc0b310: 93 81 00 10 stw r28,16(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; ffc0b314: 7c 9c 23 79 mr. r28,r4 int pthread_mutex_init( pthread_mutex_t *mutex, const pthread_mutexattr_t *attr ) { ffc0b318: 93 e1 00 1c stw r31,28(r1) ffc0b31c: 7c 7f 1b 78 mr r31,r3 ffc0b320: 90 01 00 24 stw r0,36(r1) ffc0b324: 93 61 00 0c stw r27,12(r1) ffc0b328: 93 a1 00 14 stw r29,20(r1) ffc0b32c: 93 c1 00 18 stw r30,24(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; ffc0b330: 41 82 01 38 beq- ffc0b468 else the_attr = &_POSIX_Mutex_Default_attributes; /* Check for NULL mutex */ if ( !mutex ) ffc0b334: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0b338: 41 9e 01 00 beq- cr7,ffc0b438 } } } #endif if ( !the_attr->is_initialized ) ffc0b33c: 80 1c 00 00 lwz r0,0(r28) ffc0b340: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b344: 41 9e 00 f4 beq- cr7,ffc0b438 return EINVAL; /* * We only support process private mutexes. */ if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED ) ffc0b348: 80 1c 00 04 lwz r0,4(r28) ffc0b34c: 38 60 00 58 li r3,88 ffc0b350: 2f 80 00 01 cmpwi cr7,r0,1 ffc0b354: 41 9e 00 e8 beq- cr7,ffc0b43c return ENOSYS; if ( the_attr->process_shared != PTHREAD_PROCESS_PRIVATE ) ffc0b358: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b35c: 40 9e 00 dc bne- cr7,ffc0b438 return EINVAL; /* * Determine the discipline of the mutex */ switch ( the_attr->protocol ) { ffc0b360: 80 1c 00 0c lwz r0,12(r28) ffc0b364: 2f 80 00 01 cmpwi cr7,r0,1 ffc0b368: 41 9e 01 0c beq- cr7,ffc0b474 ffc0b36c: 2f 80 00 02 cmpwi cr7,r0,2 ffc0b370: 41 9e 00 f0 beq- cr7,ffc0b460 ffc0b374: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b378: 3b 60 00 00 li r27,0 ffc0b37c: 40 9e 00 bc bne- cr7,ffc0b438 } /* * Validate the priority ceiling field -- should always be valid. */ if ( !_POSIX_Priority_Is_valid( the_attr->prio_ceiling ) ) ffc0b380: 80 7c 00 08 lwz r3,8(r28) ffc0b384: 48 00 04 6d bl ffc0b7f0 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc0b388: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b38c: 41 9e 00 ac beq- cr7,ffc0b438 #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) /* * Validate the mutex type and set appropriate SuperCore mutex * attributes. */ switch ( the_attr->type ) { ffc0b390: 80 1c 00 10 lwz r0,16(r28) ffc0b394: 2b 80 00 03 cmplwi cr7,r0,3 ffc0b398: 41 9d 00 a0 bgt- cr7,ffc0b438 ffc0b39c: 3d 20 00 00 lis r9,0 ffc0b3a0: 81 69 28 10 lwz r11,10256(r9) ffc0b3a4: 38 0b 00 01 addi r0,r11,1 ffc0b3a8: 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 ); ffc0b3ac: 3f a0 00 00 lis r29,0 ffc0b3b0: 3b bd 30 18 addi r29,r29,12312 ffc0b3b4: 7f a3 eb 78 mr r3,r29 ffc0b3b8: 48 00 31 a9 bl ffc0e560 <_Objects_Allocate> <== ALWAYS TAKEN */ _Thread_Disable_dispatch(); the_mutex = _POSIX_Mutex_Allocate(); if ( !the_mutex ) { ffc0b3bc: 7c 7e 1b 79 mr. r30,r3 ffc0b3c0: 41 82 00 c8 beq- ffc0b488 _Thread_Enable_dispatch(); return EAGAIN; } the_mutex->process_shared = the_attr->process_shared; ffc0b3c4: 80 1c 00 04 lwz r0,4(r28) ffc0b3c8: 90 1e 00 10 stw r0,16(r30) the_mutex_attr = &the_mutex->Mutex.Attributes; if ( the_attr->recursive ) ffc0b3cc: 80 1c 00 14 lwz r0,20(r28) ffc0b3d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b3d4: 40 9e 00 a8 bne- cr7,ffc0b47c the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; ffc0b3d8: 38 00 00 01 li r0,1 ffc0b3dc: 90 1e 00 54 stw r0,84(r30) the_mutex_attr->only_owner_release = true; ffc0b3e0: 38 00 00 01 li r0,1 ffc0b3e4: 98 1e 00 58 stb r0,88(r30) the_mutex_attr->priority_ceiling = ffc0b3e8: 3d 20 00 00 lis r9,0 the_mutex_attr->discipline = the_discipline; /* * Must be initialized to unlocked. */ _CORE_mutex_Initialize( ffc0b3ec: 38 9e 00 54 addi r4,r30,84 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 = ffc0b3f0: 89 29 27 0c lbz r9,9996(r9) the_mutex_attr->discipline = the_discipline; /* * Must be initialized to unlocked. */ _CORE_mutex_Initialize( ffc0b3f4: 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 = ffc0b3f8: 80 1c 00 08 lwz r0,8(r28) the_mutex_attr->discipline = the_discipline; /* * Must be initialized to unlocked. */ _CORE_mutex_Initialize( ffc0b3fc: 38 7e 00 14 addi r3,r30,20 else the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR; the_mutex_attr->only_owner_release = true; the_mutex_attr->priority_ceiling = _POSIX_Priority_To_core( the_attr->prio_ceiling ); the_mutex_attr->discipline = the_discipline; ffc0b400: 93 7e 00 5c stw r27,92(r30) 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 = ffc0b404: 7c 00 48 50 subf r0,r0,r9 <== ALWAYS TAKEN ffc0b408: 90 1e 00 60 stw r0,96(r30) the_mutex_attr->discipline = the_discipline; /* * Must be initialized to unlocked. */ _CORE_mutex_Initialize( ffc0b40c: 48 00 25 85 bl ffc0d990 <_CORE_mutex_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0b410: 80 1e 00 08 lwz r0,8(r30) ffc0b414: 81 7d 00 1c lwz r11,28(r29) ffc0b418: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc0b41c: 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; ffc0b420: 39 20 00 00 li r9,0 ffc0b424: 91 3e 00 0c stw r9,12(r30) CORE_MUTEX_UNLOCKED ); _Objects_Open_u32( &_POSIX_Mutex_Information, &the_mutex->Object, 0 ); *mutex = the_mutex->Object.id; ffc0b428: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc0b42c: 48 00 43 01 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0b430: 38 60 00 00 li r3,0 return 0; ffc0b434: 48 00 00 08 b ffc0b43c <== ALWAYS TAKEN ffc0b438: 38 60 00 16 li r3,22 } ffc0b43c: 80 01 00 24 lwz r0,36(r1) <== ALWAYS TAKEN ffc0b440: 83 61 00 0c lwz r27,12(r1) ffc0b444: 7c 08 03 a6 mtlr r0 ffc0b448: 83 81 00 10 lwz r28,16(r1) ffc0b44c: 83 a1 00 14 lwz r29,20(r1) ffc0b450: 83 c1 00 18 lwz r30,24(r1) ffc0b454: 83 e1 00 1c lwz r31,28(r1) ffc0b458: 38 21 00 20 addi r1,r1,32 ffc0b45c: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; /* * Determine the discipline of the mutex */ switch ( the_attr->protocol ) { ffc0b460: 3b 60 00 03 li r27,3 case PTHREAD_PRIO_INHERIT: the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; break; case PTHREAD_PRIO_PROTECT: the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; break; ffc0b464: 4b ff ff 1c b ffc0b380 <== ALWAYS TAKEN 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; ffc0b468: 3f 80 00 00 lis r28,0 ffc0b46c: 3b 9c 30 98 addi r28,r28,12440 ffc0b470: 4b ff fe c4 b ffc0b334 <== ALWAYS TAKEN return EINVAL; /* * Determine the discipline of the mutex */ switch ( the_attr->protocol ) { ffc0b474: 3b 60 00 02 li r27,2 ffc0b478: 4b ff ff 08 b ffc0b380 <== ALWAYS TAKEN the_mutex->process_shared = the_attr->process_shared; the_mutex_attr = &the_mutex->Mutex.Attributes; if ( the_attr->recursive ) the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; ffc0b47c: 38 00 00 00 li r0,0 ffc0b480: 90 1e 00 54 stw r0,84(r30) ffc0b484: 4b ff ff 5c b ffc0b3e0 <== ALWAYS TAKEN _Thread_Disable_dispatch(); the_mutex = _POSIX_Mutex_Allocate(); if ( !the_mutex ) { _Thread_Enable_dispatch(); ffc0b488: 48 00 42 a5 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0b48c: 38 60 00 0b li r3,11 return EAGAIN; ffc0b490: 4b ff ff ac b ffc0b43c <== ALWAYS TAKEN ffc0b494 : */ int pthread_mutex_lock( pthread_mutex_t *mutex ) { ffc0b494: 94 21 ff f8 stwu r1,-8(r1) ffc0b498: 7c 08 02 a6 mflr r0 return _POSIX_Mutex_Lock_support( mutex, true, THREAD_QUEUE_WAIT_FOREVER ); ffc0b49c: 38 80 00 01 li r4,1 ffc0b4a0: 38 a0 00 00 li r5,0 */ int pthread_mutex_lock( pthread_mutex_t *mutex ) { ffc0b4a4: 90 01 00 0c stw r0,12(r1) return _POSIX_Mutex_Lock_support( mutex, true, THREAD_QUEUE_WAIT_FOREVER ); ffc0b4a8: 48 00 00 15 bl ffc0b4bc <_POSIX_Mutex_Lock_support> <== ALWAYS TAKEN } ffc0b4ac: 80 01 00 0c lwz r0,12(r1) ffc0b4b0: 38 21 00 08 addi r1,r1,8 ffc0b4b4: 7c 08 03 a6 mtlr r0 ffc0b4b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b538 : int pthread_mutex_setprioceiling( pthread_mutex_t *mutex, int prioceiling, int *old_ceiling ) { ffc0b538: 94 21 ff d0 stwu r1,-48(r1) ffc0b53c: 7c 08 02 a6 mflr r0 ffc0b540: 93 a1 00 24 stw r29,36(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; Priority_Control the_priority; if ( !old_ceiling ) ffc0b544: 7c bd 2b 79 mr. r29,r5 int pthread_mutex_setprioceiling( pthread_mutex_t *mutex, int prioceiling, int *old_ceiling ) { ffc0b548: 93 c1 00 28 stw r30,40(r1) ffc0b54c: 7c 7e 1b 78 mr r30,r3 ffc0b550: 93 e1 00 2c stw r31,44(r1) ffc0b554: 7c 9f 23 78 mr r31,r4 ffc0b558: 90 01 00 34 stw r0,52(r1) ffc0b55c: 93 61 00 1c stw r27,28(r1) ffc0b560: 93 81 00 20 stw r28,32(r1) register POSIX_Mutex_Control *the_mutex; Objects_Locations location; Priority_Control the_priority; if ( !old_ceiling ) ffc0b564: 41 82 00 14 beq- ffc0b578 return EINVAL; if ( !_POSIX_Priority_Is_valid( prioceiling ) ) ffc0b568: 7c 83 23 78 mr r3,r4 ffc0b56c: 48 00 02 85 bl ffc0b7f0 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc0b570: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b574: 40 9e 00 2c bne- cr7,ffc0b5a0 case OBJECTS_ERROR: break; } return EINVAL; } ffc0b578: 80 01 00 34 lwz r0,52(r1) the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); return 0; ffc0b57c: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0b580: 83 61 00 1c lwz r27,28(r1) ffc0b584: 7c 08 03 a6 mtlr r0 ffc0b588: 83 81 00 20 lwz r28,32(r1) ffc0b58c: 83 a1 00 24 lwz r29,36(r1) ffc0b590: 83 c1 00 28 lwz r30,40(r1) ffc0b594: 83 e1 00 2c lwz r31,44(r1) ffc0b598: 38 21 00 30 addi r1,r1,48 ffc0b59c: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( int priority ) { return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); ffc0b5a0: 3f 80 00 00 lis r28,0 /* * Must acquire the mutex before we can change it's ceiling. * POSIX says block until we acquire it. */ (void) pthread_mutex_lock( mutex ); ffc0b5a4: 7f c3 f3 78 mr r3,r30 ffc0b5a8: 8b 7c 27 0c lbz r27,9996(r28) ffc0b5ac: 4b ff fe e9 bl ffc0b494 <== 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 ); ffc0b5b0: 7f c3 f3 78 mr r3,r30 ffc0b5b4: 38 81 00 08 addi r4,r1,8 ffc0b5b8: 4b ff fc 59 bl ffc0b210 <_POSIX_Mutex_Get> <== ALWAYS TAKEN switch ( location ) { ffc0b5bc: 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 ); ffc0b5c0: 7c 69 1b 78 mr r9,r3 switch ( location ) { ffc0b5c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b5c8: 40 be ff b0 bne- cr7,ffc0b578 case OBJECTS_LOCAL: *old_ceiling = _POSIX_Priority_From_core( ffc0b5cc: 89 7c 27 0c lbz r11,9996(r28) the_mutex->Mutex.Attributes.priority_ceiling ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; ffc0b5d0: 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( ffc0b5d4: 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( ffc0b5d8: 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; ffc0b5dc: 93 e3 00 60 stw r31,96(r3) /* * We are required to unlock the mutex before we return. */ _CORE_mutex_Surrender( ffc0b5e0: 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( ffc0b5e4: 7c 00 58 50 subf r0,r0,r11 ffc0b5e8: 90 1d 00 00 stw r0,0(r29) ); the_mutex->Mutex.Attributes.priority_ceiling = the_priority; /* * We are required to unlock the mutex before we return. */ _CORE_mutex_Surrender( ffc0b5ec: 80 89 00 08 lwz r4,8(r9) ffc0b5f0: 48 00 26 55 bl ffc0dc44 <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); ffc0b5f4: 48 00 41 39 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0b5f8: 80 01 00 34 lwz r0,52(r1) _CORE_mutex_Surrender( &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); ffc0b5fc: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc0b600: 83 61 00 1c lwz r27,28(r1) ffc0b604: 7c 08 03 a6 mtlr r0 ffc0b608: 83 81 00 20 lwz r28,32(r1) ffc0b60c: 83 a1 00 24 lwz r29,36(r1) ffc0b610: 83 c1 00 28 lwz r30,40(r1) ffc0b614: 83 e1 00 2c lwz r31,44(r1) ffc0b618: 38 21 00 30 addi r1,r1,48 ffc0b61c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b620 : int pthread_mutex_timedlock( pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc0b620: 94 21 ff e0 stwu r1,-32(r1) ffc0b624: 7c 08 02 a6 mflr r0 ffc0b628: 93 e1 00 1c stw r31,28(r1) ffc0b62c: 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 ); ffc0b630: 7c 83 23 78 mr r3,r4 ffc0b634: 38 81 00 08 addi r4,r1,8 int pthread_mutex_timedlock( pthread_mutex_t *mutex, const struct timespec *abstime ) { ffc0b638: 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 ); ffc0b63c: 48 00 00 e9 bl ffc0b724 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) ffc0b640: 2f 83 00 03 cmpwi cr7,r3,3 ffc0b644: 41 9e 00 28 beq- cr7,ffc0b66c do_wait = false; lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks ); ffc0b648: 80 a1 00 08 lwz r5,8(r1) ffc0b64c: 7f e3 fb 78 mr r3,r31 ffc0b650: 38 80 00 00 li r4,0 ffc0b654: 4b ff fe 69 bl ffc0b4bc <_POSIX_Mutex_Lock_support> <== ALWAYS TAKEN break; } } return lock_status; } ffc0b658: 80 01 00 24 lwz r0,36(r1) ffc0b65c: 83 e1 00 1c lwz r31,28(r1) ffc0b660: 38 21 00 20 addi r1,r1,32 ffc0b664: 7c 08 03 a6 mtlr r0 ffc0b668: 4e 80 00 20 blr <== ALWAYS TAKEN */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks ); ffc0b66c: 80 a1 00 08 lwz r5,8(r1) ffc0b670: 7f e3 fb 78 mr r3,r31 ffc0b674: 38 80 00 01 li r4,1 ffc0b678: 4b ff fe 45 bl ffc0b4bc <_POSIX_Mutex_Lock_support> <== ALWAYS TAKEN break; } } return lock_status; } ffc0b67c: 80 01 00 24 lwz r0,36(r1) ffc0b680: 83 e1 00 1c lwz r31,28(r1) ffc0b684: 38 21 00 20 addi r1,r1,32 ffc0b688: 7c 08 03 a6 mtlr r0 ffc0b68c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b6a4 : */ int pthread_mutex_trylock( pthread_mutex_t *mutex ) { ffc0b6a4: 94 21 ff f8 stwu r1,-8(r1) ffc0b6a8: 7c 08 02 a6 mflr r0 return _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER ); ffc0b6ac: 38 80 00 00 li r4,0 ffc0b6b0: 38 a0 00 00 li r5,0 */ int pthread_mutex_trylock( pthread_mutex_t *mutex ) { ffc0b6b4: 90 01 00 0c stw r0,12(r1) return _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER ); ffc0b6b8: 4b ff fe 05 bl ffc0b4bc <_POSIX_Mutex_Lock_support> <== ALWAYS TAKEN } ffc0b6bc: 80 01 00 0c lwz r0,12(r1) ffc0b6c0: 38 21 00 08 addi r1,r1,8 ffc0b6c4: 7c 08 03 a6 mtlr r0 ffc0b6c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b6cc : */ int pthread_mutex_unlock( pthread_mutex_t *mutex ) { ffc0b6cc: 94 21 ff e0 stwu r1,-32(r1) ffc0b6d0: 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 ); ffc0b6d4: 38 81 00 08 addi r4,r1,8 */ int pthread_mutex_unlock( pthread_mutex_t *mutex ) { ffc0b6d8: 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 ); ffc0b6dc: 4b ff fb 35 bl ffc0b210 <_POSIX_Mutex_Get> <== ALWAYS TAKEN switch ( location ) { ffc0b6e0: 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 ); ffc0b6e4: 7c 69 1b 78 mr r9,r3 switch ( location ) { ffc0b6e8: 38 60 00 16 li r3,22 ffc0b6ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b6f0: 40 9e 00 24 bne- cr7,ffc0b714 case OBJECTS_LOCAL: status = _CORE_mutex_Surrender( ffc0b6f4: 80 89 00 08 lwz r4,8(r9) ffc0b6f8: 38 a0 00 00 li r5,0 ffc0b6fc: 38 69 00 14 addi r3,r9,20 ffc0b700: 48 00 25 45 bl ffc0dc44 <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); ffc0b704: 90 61 00 18 stw r3,24(r1) ffc0b708: 48 00 40 25 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Mutex_Translate_core_mutex_return_code( status ); ffc0b70c: 80 61 00 18 lwz r3,24(r1) ffc0b710: 4b ff ff 81 bl ffc0b690 <_POSIX_Mutex_Translate_core_mutex_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0b714: 80 01 00 24 lwz r0,36(r1) ffc0b718: 38 21 00 20 addi r1,r1,32 ffc0b71c: 7c 08 03 a6 mtlr r0 ffc0b720: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aeec : int pthread_mutexattr_destroy( pthread_mutexattr_t *attr ) { if ( !attr || !attr->is_initialized ) ffc0aeec: 2c 03 00 00 cmpwi r3,0 ffc0aef0: 41 82 00 20 beq- ffc0af10 ffc0aef4: 80 03 00 00 lwz r0,0(r3) ffc0aef8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aefc: 41 9e 00 14 beq- cr7,ffc0af10 return EINVAL; attr->is_initialized = false; ffc0af00: 38 00 00 00 li r0,0 ffc0af04: 90 03 00 00 stw r0,0(r3) ffc0af08: 38 60 00 00 li r3,0 return 0; ffc0af0c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af10: 38 60 00 16 li r3,22 } ffc0af14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af18 : int pthread_mutexattr_getprioceiling( const pthread_mutexattr_t *attr, int *prioceiling ) { if ( !attr || !attr->is_initialized || !prioceiling ) ffc0af18: 2c 03 00 00 cmpwi r3,0 ffc0af1c: 41 82 00 28 beq- ffc0af44 ffc0af20: 80 03 00 00 lwz r0,0(r3) ffc0af24: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af28: 41 9e 00 1c beq- cr7,ffc0af44 ffc0af2c: 2f 84 00 00 cmpwi cr7,r4,0 ffc0af30: 41 9e 00 14 beq- cr7,ffc0af44 return EINVAL; *prioceiling = attr->prio_ceiling; ffc0af34: 80 03 00 08 lwz r0,8(r3) ffc0af38: 38 60 00 00 li r3,0 ffc0af3c: 90 04 00 00 stw r0,0(r4) return 0; ffc0af40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af44: 38 60 00 16 li r3,22 } ffc0af48: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af4c : int pthread_mutexattr_getprotocol( const pthread_mutexattr_t *attr, int *protocol ) { if ( !attr || !attr->is_initialized || !protocol ) ffc0af4c: 2c 03 00 00 cmpwi r3,0 ffc0af50: 41 82 00 28 beq- ffc0af78 ffc0af54: 80 03 00 00 lwz r0,0(r3) ffc0af58: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af5c: 41 9e 00 1c beq- cr7,ffc0af78 ffc0af60: 2f 84 00 00 cmpwi cr7,r4,0 ffc0af64: 41 9e 00 14 beq- cr7,ffc0af78 return EINVAL; *protocol = attr->protocol; ffc0af68: 80 03 00 0c lwz r0,12(r3) ffc0af6c: 38 60 00 00 li r3,0 ffc0af70: 90 04 00 00 stw r0,0(r4) return 0; ffc0af74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af78: 38 60 00 16 li r3,22 } ffc0af7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af80 : int pthread_mutexattr_getpshared( const pthread_mutexattr_t *attr, int *pshared ) { if ( !attr || !attr->is_initialized || !pshared ) ffc0af80: 2c 03 00 00 cmpwi r3,0 ffc0af84: 41 82 00 28 beq- ffc0afac ffc0af88: 80 03 00 00 lwz r0,0(r3) ffc0af8c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af90: 41 9e 00 1c beq- cr7,ffc0afac ffc0af94: 2f 84 00 00 cmpwi cr7,r4,0 ffc0af98: 41 9e 00 14 beq- cr7,ffc0afac return EINVAL; *pshared = attr->process_shared; ffc0af9c: 80 03 00 04 lwz r0,4(r3) ffc0afa0: 38 60 00 00 li r3,0 ffc0afa4: 90 04 00 00 stw r0,0(r4) return 0; ffc0afa8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0afac: 38 60 00 16 li r3,22 } ffc0afb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07ddc : int pthread_mutexattr_gettype( const pthread_mutexattr_t *attr, int *type ) { if ( !attr ) ffc07ddc: 2c 03 00 00 cmpwi r3,0 ffc07de0: 41 82 00 28 beq- ffc07e08 return EINVAL; if ( !attr->is_initialized ) ffc07de4: 80 03 00 00 lwz r0,0(r3) ffc07de8: 2f 80 00 00 cmpwi cr7,r0,0 ffc07dec: 41 9e 00 1c beq- cr7,ffc07e08 return EINVAL; if ( !type ) ffc07df0: 2f 84 00 00 cmpwi cr7,r4,0 ffc07df4: 41 9e 00 14 beq- cr7,ffc07e08 <== NEVER TAKEN return EINVAL; *type = attr->type; ffc07df8: 80 03 00 10 lwz r0,16(r3) ffc07dfc: 38 60 00 00 li r3,0 ffc07e00: 90 04 00 00 stw r0,0(r4) return 0; ffc07e04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e08: 38 60 00 16 li r3,22 } ffc07e0c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0afb4 : int pthread_mutexattr_init( pthread_mutexattr_t *attr ) { if ( !attr ) ffc0afb4: 7c 69 1b 79 mr. r9,r3 ffc0afb8: 38 60 00 16 li r3,22 ffc0afbc: 4d 82 00 20 beqlr return EINVAL; *attr = _POSIX_Mutex_Default_attributes; ffc0afc0: 3d 40 00 00 lis r10,0 ffc0afc4: 39 6a 30 98 addi r11,r10,12440 ffc0afc8: 80 ea 30 98 lwz r7,12440(r10) ffc0afcc: 80 0b 00 0c lwz r0,12(r11) ffc0afd0: 38 60 00 00 li r3,0 ffc0afd4: 81 4b 00 08 lwz r10,8(r11) ffc0afd8: 81 0b 00 04 lwz r8,4(r11) ffc0afdc: 90 e9 00 00 stw r7,0(r9) ffc0afe0: 91 09 00 04 stw r8,4(r9) ffc0afe4: 91 49 00 08 stw r10,8(r9) ffc0afe8: 90 09 00 0c stw r0,12(r9) ffc0afec: 81 4b 00 14 lwz r10,20(r11) ffc0aff0: 80 0b 00 10 lwz r0,16(r11) ffc0aff4: 91 49 00 14 stw r10,20(r9) ffc0aff8: 90 09 00 10 stw r0,16(r9) return 0; } ffc0affc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b000 : int pthread_mutexattr_setprioceiling( pthread_mutexattr_t *attr, int prioceiling ) { ffc0b000: 94 21 ff e8 stwu r1,-24(r1) ffc0b004: 7c 08 02 a6 mflr r0 ffc0b008: 93 e1 00 14 stw r31,20(r1) if ( !attr || !attr->is_initialized ) ffc0b00c: 7c 7f 1b 79 mr. r31,r3 int pthread_mutexattr_setprioceiling( pthread_mutexattr_t *attr, int prioceiling ) { ffc0b010: 90 01 00 1c stw r0,28(r1) if ( !attr || !attr->is_initialized ) ffc0b014: 41 82 00 10 beq- ffc0b024 ffc0b018: 80 1f 00 00 lwz r0,0(r31) ffc0b01c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b020: 40 9e 00 1c bne- cr7,ffc0b03c if ( !_POSIX_Priority_Is_valid( prioceiling ) ) return EINVAL; attr->prio_ceiling = prioceiling; return 0; } ffc0b024: 80 01 00 1c lwz r0,28(r1) if ( !_POSIX_Priority_Is_valid( prioceiling ) ) return EINVAL; attr->prio_ceiling = prioceiling; return 0; ffc0b028: 38 60 00 16 li r3,22 } ffc0b02c: 83 e1 00 14 lwz r31,20(r1) ffc0b030: 38 21 00 18 addi r1,r1,24 ffc0b034: 7c 08 03 a6 mtlr r0 ffc0b038: 4e 80 00 20 blr <== ALWAYS TAKEN ) { if ( !attr || !attr->is_initialized ) return EINVAL; if ( !_POSIX_Priority_Is_valid( prioceiling ) ) ffc0b03c: 7c 83 23 78 mr r3,r4 ffc0b040: 90 81 00 08 stw r4,8(r1) ffc0b044: 48 00 07 ad bl ffc0b7f0 <_POSIX_Priority_Is_valid> <== ALWAYS TAKEN ffc0b048: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b04c: 80 81 00 08 lwz r4,8(r1) ffc0b050: 41 be ff d4 beq- cr7,ffc0b024 return EINVAL; attr->prio_ceiling = prioceiling; return 0; } ffc0b054: 80 01 00 1c lwz r0,28(r1) return EINVAL; if ( !_POSIX_Priority_Is_valid( prioceiling ) ) return EINVAL; attr->prio_ceiling = prioceiling; ffc0b058: 38 60 00 00 li r3,0 ffc0b05c: 90 9f 00 08 stw r4,8(r31) return 0; } ffc0b060: 7c 08 03 a6 mtlr r0 ffc0b064: 83 e1 00 14 lwz r31,20(r1) ffc0b068: 38 21 00 18 addi r1,r1,24 ffc0b06c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b070 : int pthread_mutexattr_setprotocol( pthread_mutexattr_t *attr, int protocol ) { if ( !attr || !attr->is_initialized ) ffc0b070: 2c 03 00 00 cmpwi r3,0 ffc0b074: 41 82 00 18 beq- ffc0b08c ffc0b078: 80 03 00 00 lwz r0,0(r3) ffc0b07c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b080: 41 9e 00 0c beq- cr7,ffc0b08c return EINVAL; switch ( protocol ) { ffc0b084: 2b 84 00 02 cmplwi cr7,r4,2 ffc0b088: 40 9d 00 0c ble- cr7,ffc0b094 case PTHREAD_PRIO_NONE: case PTHREAD_PRIO_INHERIT: case PTHREAD_PRIO_PROTECT: attr->protocol = protocol; return 0; ffc0b08c: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0b090: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( protocol ) { case PTHREAD_PRIO_NONE: case PTHREAD_PRIO_INHERIT: case PTHREAD_PRIO_PROTECT: attr->protocol = protocol; ffc0b094: 90 83 00 0c stw r4,12(r3) ffc0b098: 38 60 00 00 li r3,0 return 0; ffc0b09c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b0a0 : int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) { if ( !attr || !attr->is_initialized ) ffc0b0a0: 2c 03 00 00 cmpwi r3,0 ffc0b0a4: 41 82 00 18 beq- ffc0b0bc ffc0b0a8: 80 03 00 00 lwz r0,0(r3) ffc0b0ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b0b0: 41 9e 00 0c beq- cr7,ffc0b0bc return EINVAL; switch ( pshared ) { ffc0b0b4: 2b 84 00 01 cmplwi cr7,r4,1 ffc0b0b8: 40 9d 00 0c ble- cr7,ffc0b0c4 <== ALWAYS TAKEN case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; return 0; ffc0b0bc: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0b0c0: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; switch ( pshared ) { case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; ffc0b0c4: 90 83 00 04 stw r4,4(r3) ffc0b0c8: 38 60 00 00 li r3,0 return 0; ffc0b0cc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07e5c : int pthread_mutexattr_settype( pthread_mutexattr_t *attr, int type ) { if ( !attr || !attr->is_initialized ) ffc07e5c: 2c 03 00 00 cmpwi r3,0 ffc07e60: 41 82 00 18 beq- ffc07e78 ffc07e64: 80 03 00 00 lwz r0,0(r3) ffc07e68: 2f 80 00 00 cmpwi cr7,r0,0 ffc07e6c: 41 9e 00 0c beq- cr7,ffc07e78 <== NEVER TAKEN return EINVAL; switch ( type ) { ffc07e70: 2b 84 00 03 cmplwi cr7,r4,3 ffc07e74: 40 9d 00 0c ble- cr7,ffc07e80 case PTHREAD_MUTEX_NORMAL: case PTHREAD_MUTEX_RECURSIVE: case PTHREAD_MUTEX_ERRORCHECK: case PTHREAD_MUTEX_DEFAULT: attr->type = type; return 0; ffc07e78: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc07e7c: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( type ) { case PTHREAD_MUTEX_NORMAL: case PTHREAD_MUTEX_RECURSIVE: case PTHREAD_MUTEX_ERRORCHECK: case PTHREAD_MUTEX_DEFAULT: attr->type = type; ffc07e80: 90 83 00 10 stw r4,16(r3) ffc07e84: 38 60 00 00 li r3,0 return 0; ffc07e88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc091b8 : int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { ffc091b8: 94 21 ff d8 stwu r1,-40(r1) ffc091bc: 7c 08 02 a6 mflr r0 ffc091c0: 93 e1 00 24 stw r31,36(r1) if ( !once_control || !init_routine ) ffc091c4: 7c 7f 1b 79 mr. r31,r3 int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) { ffc091c8: 93 c1 00 20 stw r30,32(r1) ffc091cc: 7c 9e 23 78 mr r30,r4 ffc091d0: 90 01 00 2c stw r0,44(r1) ffc091d4: 93 a1 00 1c stw r29,28(r1) if ( !once_control || !init_routine ) ffc091d8: 41 82 00 88 beq- ffc09260 ffc091dc: 2f 84 00 00 cmpwi cr7,r4,0 ffc091e0: 41 9e 00 80 beq- cr7,ffc09260 return EINVAL; if ( !once_control->init_executed ) { ffc091e4: 80 1f 00 04 lwz r0,4(r31) ffc091e8: 38 60 00 00 li r3,0 ffc091ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc091f0: 41 9e 00 20 beq- cr7,ffc09210 (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); } return 0; } ffc091f4: 80 01 00 2c lwz r0,44(r1) ffc091f8: 83 a1 00 1c lwz r29,28(r1) ffc091fc: 7c 08 03 a6 mtlr r0 ffc09200: 83 c1 00 20 lwz r30,32(r1) ffc09204: 83 e1 00 24 lwz r31,36(r1) ffc09208: 38 21 00 28 addi r1,r1,40 ffc0920c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !once_control || !init_routine ) return EINVAL; if ( !once_control->init_executed ) { rtems_mode saveMode; rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); ffc09210: 3b a1 00 08 addi r29,r1,8 ffc09214: 38 60 01 00 li r3,256 ffc09218: 38 80 01 00 li r4,256 ffc0921c: 7f a5 eb 78 mr r5,r29 ffc09220: 48 00 0f 31 bl ffc0a150 <== ALWAYS TAKEN if ( !once_control->init_executed ) { ffc09224: 80 1f 00 04 lwz r0,4(r31) ffc09228: 2f 80 00 00 cmpwi cr7,r0,0 ffc0922c: 41 9e 00 54 beq- cr7,ffc09280 <== ALWAYS TAKEN once_control->is_initialized = true; once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); ffc09230: 80 61 00 08 lwz r3,8(r1) ffc09234: 7f a5 eb 78 mr r5,r29 ffc09238: 38 80 01 00 li r4,256 ffc0923c: 48 00 0f 15 bl ffc0a150 <== ALWAYS TAKEN } return 0; } ffc09240: 80 01 00 2c lwz r0,44(r1) if ( !once_control->init_executed ) { once_control->is_initialized = true; once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); ffc09244: 38 60 00 00 li r3,0 } return 0; } ffc09248: 83 a1 00 1c lwz r29,28(r1) ffc0924c: 7c 08 03 a6 mtlr r0 ffc09250: 83 c1 00 20 lwz r30,32(r1) ffc09254: 83 e1 00 24 lwz r31,36(r1) ffc09258: 38 21 00 28 addi r1,r1,40 ffc0925c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09260: 80 01 00 2c lwz r0,44(r1) if ( !once_control->init_executed ) { once_control->is_initialized = true; once_control->init_executed = true; (*init_routine)(); } rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode); ffc09264: 38 60 00 16 li r3,22 } return 0; } ffc09268: 83 a1 00 1c lwz r29,28(r1) ffc0926c: 7c 08 03 a6 mtlr r0 ffc09270: 83 c1 00 20 lwz r30,32(r1) ffc09274: 83 e1 00 24 lwz r31,36(r1) ffc09278: 38 21 00 28 addi r1,r1,40 ffc0927c: 4e 80 00 20 blr <== ALWAYS TAKEN 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; ffc09280: 38 00 00 01 li r0,1 once_control->init_executed = true; (*init_routine)(); ffc09284: 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; ffc09288: 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; ffc0928c: 90 1f 00 00 stw r0,0(r31) once_control->init_executed = true; (*init_routine)(); ffc09290: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc09294: 4b ff ff 9c b ffc09230 <== ALWAYS TAKEN ffc09c24 : ) { POSIX_RWLock_Control *the_rwlock = NULL; Objects_Locations location; if ( !rwlock ) ffc09c24: 2c 03 00 00 cmpwi r3,0 */ int pthread_rwlock_destroy( pthread_rwlock_t *rwlock ) { ffc09c28: 94 21 ff e0 stwu r1,-32(r1) ffc09c2c: 7c 08 02 a6 mflr r0 ffc09c30: 93 c1 00 18 stw r30,24(r1) ffc09c34: 90 01 00 24 stw r0,36(r1) ffc09c38: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock = NULL; Objects_Locations location; if ( !rwlock ) ffc09c3c: 41 82 00 5c beq- ffc09c98 RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get ( pthread_rwlock_t *RWLock, Objects_Locations *location ) { return (POSIX_RWLock_Control *) _Objects_Get( ffc09c40: 3f e0 00 00 lis r31,0 ffc09c44: 80 83 00 00 lwz r4,0(r3) ffc09c48: 3b ff 2e 38 addi r31,r31,11832 ffc09c4c: 7f e3 fb 78 mr r3,r31 ffc09c50: 38 a1 00 08 addi r5,r1,8 ffc09c54: 48 00 39 91 bl ffc0d5e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc09c58: 80 01 00 08 lwz r0,8(r1) ffc09c5c: 7c 7e 1b 78 mr r30,r3 ffc09c60: 2f 80 00 00 cmpwi cr7,r0,0 ffc09c64: 40 9e 00 34 bne- cr7,ffc09c98 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 ) { ffc09c68: 38 63 00 10 addi r3,r3,16 ffc09c6c: 48 00 50 21 bl ffc0ec8c <_Thread_queue_First> <== ALWAYS TAKEN ffc09c70: 2f 83 00 00 cmpwi cr7,r3,0 ffc09c74: 41 9e 00 40 beq- cr7,ffc09cb4 _Thread_Enable_dispatch(); ffc09c78: 48 00 45 39 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc09c7c: 80 01 00 24 lwz r0,36(r1) 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 ) { _Thread_Enable_dispatch(); ffc09c80: 38 60 00 10 li r3,16 case OBJECTS_ERROR: break; } return EINVAL; } ffc09c84: 83 c1 00 18 lwz r30,24(r1) ffc09c88: 7c 08 03 a6 mtlr r0 ffc09c8c: 83 e1 00 1c lwz r31,28(r1) ffc09c90: 38 21 00 20 addi r1,r1,32 ffc09c94: 4e 80 00 20 blr <== ALWAYS TAKEN _Objects_Close( &_POSIX_RWLock_Information, &the_rwlock->Object ); _POSIX_RWLock_Free( the_rwlock ); _Thread_Enable_dispatch(); return 0; ffc09c98: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09c9c: 80 01 00 24 lwz r0,36(r1) ffc09ca0: 83 c1 00 18 lwz r30,24(r1) ffc09ca4: 7c 08 03 a6 mtlr r0 ffc09ca8: 83 e1 00 1c lwz r31,28(r1) ffc09cac: 38 21 00 20 addi r1,r1,32 ffc09cb0: 4e 80 00 20 blr <== ALWAYS TAKEN /* * POSIX doesn't require behavior when it is locked. */ _Objects_Close( &_POSIX_RWLock_Information, &the_rwlock->Object ); ffc09cb4: 7f e3 fb 78 mr r3,r31 ffc09cb8: 7f c4 f3 78 mr r4,r30 ffc09cbc: 48 00 33 f1 bl ffc0d0ac <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _POSIX_RWLock_Free ( POSIX_RWLock_Control *the_RWLock ) { _Objects_Free( &_POSIX_RWLock_Information, &the_RWLock->Object ); ffc09cc0: 7f e3 fb 78 mr r3,r31 ffc09cc4: 7f c4 f3 78 mr r4,r30 ffc09cc8: 48 00 37 3d bl ffc0d404 <_Objects_Free> <== ALWAYS TAKEN _POSIX_RWLock_Free( the_rwlock ); _Thread_Enable_dispatch(); ffc09ccc: 48 00 44 e5 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09cd0: 38 60 00 00 li r3,0 return 0; ffc09cd4: 4b ff ff c8 b ffc09c9c <== ALWAYS TAKEN ffc09cd8 : int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) { ffc09cd8: 94 21 ff d8 stwu r1,-40(r1) ffc09cdc: 7c 08 02 a6 mflr r0 ffc09ce0: 93 c1 00 20 stw r30,32(r1) const pthread_rwlockattr_t *the_attr; /* * Error check parameters */ if ( !rwlock ) ffc09ce4: 7c 7e 1b 79 mr. r30,r3 int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) { ffc09ce8: 90 01 00 2c stw r0,44(r1) ffc09cec: 93 81 00 18 stw r28,24(r1) ffc09cf0: 93 a1 00 1c stw r29,28(r1) ffc09cf4: 93 e1 00 24 stw r31,36(r1) const pthread_rwlockattr_t *the_attr; /* * Error check parameters */ if ( !rwlock ) ffc09cf8: 41 82 00 24 beq- ffc09d1c return EINVAL; /* * If the user passed in NULL, use the default attributes */ if ( attr ) { ffc09cfc: 2f 84 00 00 cmpwi cr7,r4,0 ffc09d00: 41 9e 00 c0 beq- cr7,ffc09dc0 } /* * Now start error checking the attributes that we are going to use */ if ( !the_attr->is_initialized ) ffc09d04: 80 04 00 00 lwz r0,0(r4) ffc09d08: 2f 80 00 00 cmpwi cr7,r0,0 ffc09d0c: 41 9e 00 10 beq- cr7,ffc09d1c <== NEVER TAKEN return EINVAL; switch ( the_attr->process_shared ) { ffc09d10: 83 e4 00 04 lwz r31,4(r4) ffc09d14: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09d18: 41 9e 00 28 beq- cr7,ffc09d40 <== ALWAYS TAKEN ); *rwlock = the_rwlock->Object.id; _Thread_Enable_dispatch(); return 0; ffc09d1c: 38 60 00 16 li r3,22 } ffc09d20: 80 01 00 2c lwz r0,44(r1) ffc09d24: 83 81 00 18 lwz r28,24(r1) ffc09d28: 7c 08 03 a6 mtlr r0 ffc09d2c: 83 a1 00 1c lwz r29,28(r1) ffc09d30: 83 c1 00 20 lwz r30,32(r1) ffc09d34: 83 e1 00 24 lwz r31,36(r1) ffc09d38: 38 21 00 28 addi r1,r1,40 ffc09d3c: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc09d40: 3d 20 00 00 lis r9,0 ffc09d44: 81 69 27 bc lwz r11,10172(r9) ffc09d48: 38 0b 00 01 addi r0,r11,1 ffc09d4c: 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 *) ffc09d50: 3f 80 00 00 lis r28,0 ffc09d54: 3b 9c 2e 38 addi r28,r28,11832 ffc09d58: 7f 83 e3 78 mr r3,r28 ffc09d5c: 48 00 32 89 bl ffc0cfe4 <_Objects_Allocate> <== ALWAYS TAKEN */ _Thread_Disable_dispatch(); /* prevents deletion */ the_rwlock = _POSIX_RWLock_Allocate(); if ( !the_rwlock ) { ffc09d60: 7c 7d 1b 79 mr. r29,r3 ffc09d64: 41 82 00 50 beq- ffc09db4 _Thread_Enable_dispatch(); return EAGAIN; } _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes ); ffc09d68: 38 7d 00 10 addi r3,r29,16 ffc09d6c: 38 81 00 08 addi r4,r1,8 ffc09d70: 48 00 27 b9 bl ffc0c528 <_CORE_RWLock_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc09d74: 80 1d 00 08 lwz r0,8(r29) ffc09d78: 81 7c 00 1c lwz r11,28(r28) ffc09d7c: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc09d80: 7f ab 49 2e stwx r29,r11,r9 _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; ffc09d84: 93 fd 00 0c stw r31,12(r29) &_POSIX_RWLock_Information, &the_rwlock->Object, 0 ); *rwlock = the_rwlock->Object.id; ffc09d88: 90 1e 00 00 stw r0,0(r30) _Thread_Enable_dispatch(); ffc09d8c: 48 00 44 25 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return 0; } ffc09d90: 80 01 00 2c lwz r0,44(r1) 0 ); *rwlock = the_rwlock->Object.id; _Thread_Enable_dispatch(); ffc09d94: 38 60 00 00 li r3,0 return 0; } ffc09d98: 83 81 00 18 lwz r28,24(r1) ffc09d9c: 7c 08 03 a6 mtlr r0 ffc09da0: 83 a1 00 1c lwz r29,28(r1) ffc09da4: 83 c1 00 20 lwz r30,32(r1) ffc09da8: 83 e1 00 24 lwz r31,36(r1) ffc09dac: 38 21 00 28 addi r1,r1,40 ffc09db0: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_rwlock = _POSIX_RWLock_Allocate(); if ( !the_rwlock ) { _Thread_Enable_dispatch(); ffc09db4: 48 00 43 fd bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09db8: 38 60 00 0b li r3,11 return EAGAIN; ffc09dbc: 4b ff ff 64 b ffc09d20 <== ALWAYS TAKEN * If the user passed in NULL, use the default attributes */ if ( attr ) { the_attr = attr; } else { (void) pthread_rwlockattr_init( &default_attr ); ffc09dc0: 3b e1 00 0c addi r31,r1,12 ffc09dc4: 7f e3 fb 78 mr r3,r31 ffc09dc8: 48 00 0c 41 bl ffc0aa08 <== ALWAYS TAKEN ffc09dcc: 7f e4 fb 78 mr r4,r31 ffc09dd0: 4b ff ff 34 b ffc09d04 <== ALWAYS TAKEN ffc09dd4 : */ int pthread_rwlock_rdlock( pthread_rwlock_t *rwlock ) { ffc09dd4: 94 21 ff e0 stwu r1,-32(r1) ffc09dd8: 7c 08 02 a6 mflr r0 ffc09ddc: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc09de0: 7c 7f 1b 79 mr. r31,r3 */ int pthread_rwlock_rdlock( pthread_rwlock_t *rwlock ) { ffc09de4: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc09de8: 41 82 00 24 beq- ffc09e0c RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get ( pthread_rwlock_t *RWLock, Objects_Locations *location ) { return (POSIX_RWLock_Control *) _Objects_Get( ffc09dec: 80 9f 00 00 lwz r4,0(r31) ffc09df0: 3c 60 00 00 lis r3,0 ffc09df4: 38 63 2e 38 addi r3,r3,11832 ffc09df8: 38 a1 00 08 addi r5,r1,8 ffc09dfc: 48 00 37 e9 bl ffc0d5e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc09e00: 80 01 00 08 lwz r0,8(r1) ffc09e04: 2f 80 00 00 cmpwi cr7,r0,0 ffc09e08: 41 9e 00 1c beq- cr7,ffc09e24 case OBJECTS_ERROR: break; } return EINVAL; } ffc09e0c: 80 01 00 24 lwz r0,36(r1) 0, NULL ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc09e10: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09e14: 83 e1 00 1c lwz r31,28(r1) ffc09e18: 38 21 00 20 addi r1,r1,32 ffc09e1c: 7c 08 03 a6 mtlr r0 ffc09e20: 4e 80 00 20 blr <== ALWAYS TAKEN the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( ffc09e24: 80 9f 00 00 lwz r4,0(r31) ffc09e28: 38 63 00 10 addi r3,r3,16 ffc09e2c: 38 a0 00 01 li r5,1 ffc09e30: 38 c0 00 00 li r6,0 ffc09e34: 38 e0 00 00 li r7,0 ffc09e38: 48 00 27 31 bl ffc0c568 <_CORE_RWLock_Obtain_for_reading> <== ALWAYS TAKEN true, /* we are willing to wait forever */ 0, NULL ); _Thread_Enable_dispatch(); ffc09e3c: 48 00 43 75 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc09e40: 3d 20 00 00 lis r9,0 ffc09e44: 81 29 27 fc lwz r9,10236(r9) ffc09e48: 80 69 00 34 lwz r3,52(r9) ffc09e4c: 48 00 02 19 bl ffc0a064 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc09e50: 80 01 00 24 lwz r0,36(r1) ffc09e54: 83 e1 00 1c lwz r31,28(r1) ffc09e58: 38 21 00 20 addi r1,r1,32 ffc09e5c: 7c 08 03 a6 mtlr r0 ffc09e60: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09e64 : int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc09e64: 94 21 ff d8 stwu r1,-40(r1) ffc09e68: 7c 08 02 a6 mflr r0 ffc09e6c: 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 ) ffc09e70: 7c 7d 1b 79 mr. r29,r3 int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc09e74: 90 01 00 2c stw r0,44(r1) ffc09e78: 93 c1 00 20 stw r30,32(r1) ffc09e7c: 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 ) ffc09e80: 41 82 00 9c beq- ffc09f1c * * 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 ); ffc09e84: 7c 83 23 78 mr r3,r4 ffc09e88: 38 81 00 0c addi r4,r1,12 ffc09e8c: 48 00 7f 65 bl ffc11df0 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN ffc09e90: 80 9d 00 00 lwz r4,0(r29) ffc09e94: 7c 7e 1b 78 mr r30,r3 ffc09e98: 3c 60 00 00 lis r3,0 ffc09e9c: 38 63 2e 38 addi r3,r3,11832 ffc09ea0: 38 a1 00 08 addi r5,r1,8 ffc09ea4: 48 00 37 41 bl ffc0d5e4 <_Objects_Get> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc09ea8: 80 01 00 08 lwz r0,8(r1) ffc09eac: 2f 80 00 00 cmpwi cr7,r0,0 ffc09eb0: 40 9e 00 6c bne- cr7,ffc09f1c 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, ffc09eb4: 6b df 00 03 xori r31,r30,3 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( ffc09eb8: 80 9d 00 00 lwz r4,0(r29) ffc09ebc: 7f ff 00 34 cntlzw r31,r31 ffc09ec0: 80 c1 00 0c lwz r6,12(r1) ffc09ec4: 57 ff d9 7e rlwinm r31,r31,27,5,31 ffc09ec8: 38 63 00 10 addi r3,r3,16 ffc09ecc: 7f e5 fb 78 mr r5,r31 ffc09ed0: 38 e0 00 00 li r7,0 ffc09ed4: 48 00 26 95 bl ffc0c568 <_CORE_RWLock_Obtain_for_reading> <== ALWAYS TAKEN do_wait, ticks, NULL ); _Thread_Enable_dispatch(); ffc09ed8: 48 00 42 d9 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( !do_wait ) { ffc09edc: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09ee0: 40 9e 00 74 bne- cr7,ffc09f54 if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { ffc09ee4: 3d 20 00 00 lis r9,0 ffc09ee8: 81 29 27 fc lwz r9,10236(r9) ffc09eec: 80 09 00 34 lwz r0,52(r9) ffc09ef0: 2f 80 00 02 cmpwi cr7,r0,2 ffc09ef4: 41 9e 00 48 beq- cr7,ffc09f3c break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc09ef8: 7c 03 03 78 mr r3,r0 ffc09efc: 48 00 01 69 bl ffc0a064 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc09f00: 80 01 00 2c lwz r0,44(r1) ffc09f04: 83 a1 00 1c lwz r29,28(r1) ffc09f08: 7c 08 03 a6 mtlr r0 ffc09f0c: 83 c1 00 20 lwz r30,32(r1) ffc09f10: 83 e1 00 24 lwz r31,36(r1) ffc09f14: 38 21 00 28 addi r1,r1,40 ffc09f18: 4e 80 00 20 blr <== ALWAYS TAKEN break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc09f1c: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc09f20: 80 01 00 2c lwz r0,44(r1) ffc09f24: 83 a1 00 1c lwz r29,28(r1) ffc09f28: 7c 08 03 a6 mtlr r0 ffc09f2c: 83 c1 00 20 lwz r30,32(r1) ffc09f30: 83 e1 00 24 lwz r31,36(r1) ffc09f34: 38 21 00 28 addi r1,r1,40 ffc09f38: 4e 80 00 20 blr <== ALWAYS TAKEN ); _Thread_Enable_dispatch(); if ( !do_wait ) { if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { switch (status) { ffc09f3c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc09f40: 41 be ff dc beq- cr7,ffc09f1c <== NEVER TAKEN ffc09f44: 2b 9e 00 02 cmplwi cr7,r30,2 ffc09f48: 38 60 00 74 li r3,116 ffc09f4c: 40 bd ff d4 ble- cr7,ffc09f20 <== ALWAYS TAKEN ffc09f50: 4b ff ff a8 b ffc09ef8 <== NOT EXECUTED ffc09f54: 3d 20 00 00 lis r9,0 ffc09f58: 81 29 27 fc lwz r9,10236(r9) ffc09f5c: 80 09 00 34 lwz r0,52(r9) ffc09f60: 4b ff ff 98 b ffc09ef8 <== ALWAYS TAKEN ffc09f64 : int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc09f64: 94 21 ff d8 stwu r1,-40(r1) ffc09f68: 7c 08 02 a6 mflr r0 ffc09f6c: 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 ) ffc09f70: 7c 7d 1b 79 mr. r29,r3 int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { ffc09f74: 90 01 00 2c stw r0,44(r1) ffc09f78: 93 c1 00 20 stw r30,32(r1) ffc09f7c: 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 ) ffc09f80: 41 82 00 9c beq- ffc0a01c * * 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 ); ffc09f84: 7c 83 23 78 mr r3,r4 ffc09f88: 38 81 00 0c addi r4,r1,12 ffc09f8c: 48 00 7e 65 bl ffc11df0 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN ffc09f90: 80 9d 00 00 lwz r4,0(r29) ffc09f94: 7c 7e 1b 78 mr r30,r3 ffc09f98: 3c 60 00 00 lis r3,0 ffc09f9c: 38 63 2e 38 addi r3,r3,11832 ffc09fa0: 38 a1 00 08 addi r5,r1,8 ffc09fa4: 48 00 36 41 bl ffc0d5e4 <_Objects_Get> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc09fa8: 80 01 00 08 lwz r0,8(r1) ffc09fac: 2f 80 00 00 cmpwi cr7,r0,0 ffc09fb0: 40 9e 00 6c bne- cr7,ffc0a01c (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, ffc09fb4: 6b df 00 03 xori r31,r30,3 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( ffc09fb8: 80 9d 00 00 lwz r4,0(r29) ffc09fbc: 7f ff 00 34 cntlzw r31,r31 ffc09fc0: 80 c1 00 0c lwz r6,12(r1) ffc09fc4: 57 ff d9 7e rlwinm r31,r31,27,5,31 ffc09fc8: 38 63 00 10 addi r3,r3,16 ffc09fcc: 7f e5 fb 78 mr r5,r31 ffc09fd0: 38 e0 00 00 li r7,0 ffc09fd4: 48 00 26 d9 bl ffc0c6ac <_CORE_RWLock_Obtain_for_writing> <== ALWAYS TAKEN do_wait, ticks, NULL ); _Thread_Enable_dispatch(); ffc09fd8: 48 00 41 d9 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( !do_wait && ffc09fdc: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09fe0: 40 9e 00 74 bne- cr7,ffc0a054 (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { ffc09fe4: 3d 20 00 00 lis r9,0 ffc09fe8: 81 29 27 fc lwz r9,10236(r9) ffc09fec: 80 09 00 34 lwz r0,52(r9) ticks, NULL ); _Thread_Enable_dispatch(); if ( !do_wait && ffc09ff0: 2f 80 00 02 cmpwi cr7,r0,2 ffc09ff4: 41 9e 00 48 beq- cr7,ffc0a03c case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc09ff8: 7c 03 03 78 mr r3,r0 ffc09ffc: 48 00 00 69 bl ffc0a064 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0a000: 80 01 00 2c lwz r0,44(r1) ffc0a004: 83 a1 00 1c lwz r29,28(r1) ffc0a008: 7c 08 03 a6 mtlr r0 ffc0a00c: 83 c1 00 20 lwz r30,32(r1) ffc0a010: 83 e1 00 24 lwz r31,36(r1) ffc0a014: 38 21 00 28 addi r1,r1,40 ffc0a018: 4e 80 00 20 blr <== ALWAYS TAKEN case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a01c: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a020: 80 01 00 2c lwz r0,44(r1) ffc0a024: 83 a1 00 1c lwz r29,28(r1) ffc0a028: 7c 08 03 a6 mtlr r0 ffc0a02c: 83 c1 00 20 lwz r30,32(r1) ffc0a030: 83 e1 00 24 lwz r31,36(r1) ffc0a034: 38 21 00 28 addi r1,r1,40 ffc0a038: 4e 80 00 20 blr <== ALWAYS TAKEN ); _Thread_Enable_dispatch(); if ( !do_wait && (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { switch (status) { ffc0a03c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0a040: 41 be ff dc beq- cr7,ffc0a01c <== NEVER TAKEN ffc0a044: 2b 9e 00 02 cmplwi cr7,r30,2 ffc0a048: 38 60 00 74 li r3,116 ffc0a04c: 40 bd ff d4 ble- cr7,ffc0a020 <== ALWAYS TAKEN ffc0a050: 4b ff ff a8 b ffc09ff8 <== NOT EXECUTED ffc0a054: 3d 20 00 00 lis r9,0 ffc0a058: 81 29 27 fc lwz r9,10236(r9) ffc0a05c: 80 09 00 34 lwz r0,52(r9) ffc0a060: 4b ff ff 98 b ffc09ff8 <== ALWAYS TAKEN ffc0a078 : */ int pthread_rwlock_tryrdlock( pthread_rwlock_t *rwlock ) { ffc0a078: 94 21 ff e0 stwu r1,-32(r1) ffc0a07c: 7c 08 02 a6 mflr r0 ffc0a080: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc0a084: 7c 7f 1b 79 mr. r31,r3 */ int pthread_rwlock_tryrdlock( pthread_rwlock_t *rwlock ) { ffc0a088: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc0a08c: 41 82 00 24 beq- ffc0a0b0 ffc0a090: 80 9f 00 00 lwz r4,0(r31) ffc0a094: 3c 60 00 00 lis r3,0 ffc0a098: 38 63 2e 38 addi r3,r3,11832 ffc0a09c: 38 a1 00 08 addi r5,r1,8 ffc0a0a0: 48 00 35 45 bl ffc0d5e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc0a0a4: 80 01 00 08 lwz r0,8(r1) ffc0a0a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a0ac: 41 9e 00 1c beq- cr7,ffc0a0c8 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a0b0: 80 01 00 24 lwz r0,36(r1) NULL ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a0b4: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a0b8: 83 e1 00 1c lwz r31,28(r1) ffc0a0bc: 38 21 00 20 addi r1,r1,32 ffc0a0c0: 7c 08 03 a6 mtlr r0 ffc0a0c4: 4e 80 00 20 blr <== ALWAYS TAKEN the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( ffc0a0c8: 80 9f 00 00 lwz r4,0(r31) ffc0a0cc: 38 63 00 10 addi r3,r3,16 ffc0a0d0: 38 a0 00 00 li r5,0 ffc0a0d4: 38 c0 00 00 li r6,0 ffc0a0d8: 38 e0 00 00 li r7,0 ffc0a0dc: 48 00 24 8d bl ffc0c568 <_CORE_RWLock_Obtain_for_reading> <== ALWAYS TAKEN 0, NULL ); _Thread_Enable_dispatch(); ffc0a0e0: 48 00 40 d1 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a0e4: 3d 20 00 00 lis r9,0 ffc0a0e8: 81 29 27 fc lwz r9,10236(r9) ffc0a0ec: 80 69 00 34 lwz r3,52(r9) ffc0a0f0: 4b ff ff 75 bl ffc0a064 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0a0f4: 80 01 00 24 lwz r0,36(r1) ffc0a0f8: 83 e1 00 1c lwz r31,28(r1) ffc0a0fc: 38 21 00 20 addi r1,r1,32 ffc0a100: 7c 08 03 a6 mtlr r0 ffc0a104: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a108 : */ int pthread_rwlock_trywrlock( pthread_rwlock_t *rwlock ) { ffc0a108: 94 21 ff e0 stwu r1,-32(r1) ffc0a10c: 7c 08 02 a6 mflr r0 ffc0a110: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc0a114: 7c 7f 1b 79 mr. r31,r3 */ int pthread_rwlock_trywrlock( pthread_rwlock_t *rwlock ) { ffc0a118: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc0a11c: 41 82 00 24 beq- ffc0a140 ffc0a120: 80 9f 00 00 lwz r4,0(r31) ffc0a124: 3c 60 00 00 lis r3,0 ffc0a128: 38 63 2e 38 addi r3,r3,11832 ffc0a12c: 38 a1 00 08 addi r5,r1,8 ffc0a130: 48 00 34 b5 bl ffc0d5e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc0a134: 80 01 00 08 lwz r0,8(r1) ffc0a138: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a13c: 41 9e 00 1c beq- cr7,ffc0a158 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a140: 80 01 00 24 lwz r0,36(r1) 0, NULL ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a144: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a148: 83 e1 00 1c lwz r31,28(r1) ffc0a14c: 38 21 00 20 addi r1,r1,32 ffc0a150: 7c 08 03 a6 mtlr r0 ffc0a154: 4e 80 00 20 blr <== ALWAYS TAKEN the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( ffc0a158: 80 9f 00 00 lwz r4,0(r31) ffc0a15c: 38 63 00 10 addi r3,r3,16 ffc0a160: 38 a0 00 00 li r5,0 ffc0a164: 38 c0 00 00 li r6,0 ffc0a168: 38 e0 00 00 li r7,0 ffc0a16c: 48 00 25 41 bl ffc0c6ac <_CORE_RWLock_Obtain_for_writing> <== ALWAYS TAKEN false, /* we are not willing to wait */ 0, NULL ); _Thread_Enable_dispatch(); ffc0a170: 48 00 40 41 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a174: 3d 20 00 00 lis r9,0 ffc0a178: 81 29 27 fc lwz r9,10236(r9) ffc0a17c: 80 69 00 34 lwz r3,52(r9) ffc0a180: 4b ff fe e5 bl ffc0a064 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0a184: 80 01 00 24 lwz r0,36(r1) ffc0a188: 83 e1 00 1c lwz r31,28(r1) ffc0a18c: 38 21 00 20 addi r1,r1,32 ffc0a190: 7c 08 03 a6 mtlr r0 ffc0a194: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a198 : { POSIX_RWLock_Control *the_rwlock; Objects_Locations location; CORE_RWLock_Status status; if ( !rwlock ) ffc0a198: 2c 03 00 00 cmpwi r3,0 */ int pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) { ffc0a19c: 94 21 ff e0 stwu r1,-32(r1) ffc0a1a0: 7c 08 02 a6 mflr r0 ffc0a1a4: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; CORE_RWLock_Status status; if ( !rwlock ) ffc0a1a8: 41 82 00 24 beq- ffc0a1cc ffc0a1ac: 80 83 00 00 lwz r4,0(r3) ffc0a1b0: 3c 60 00 00 lis r3,0 ffc0a1b4: 38 63 2e 38 addi r3,r3,11832 ffc0a1b8: 38 a1 00 08 addi r5,r1,8 ffc0a1bc: 48 00 34 29 bl ffc0d5e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc0a1c0: 80 01 00 08 lwz r0,8(r1) ffc0a1c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a1c8: 41 9e 00 18 beq- cr7,ffc0a1e0 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a1cc: 80 01 00 24 lwz r0,36(r1) switch ( location ) { case OBJECTS_LOCAL: status = _CORE_RWLock_Release( &the_rwlock->RWLock ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( status ); ffc0a1d0: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a1d4: 38 21 00 20 addi r1,r1,32 ffc0a1d8: 7c 08 03 a6 mtlr r0 ffc0a1dc: 4e 80 00 20 blr <== ALWAYS TAKEN the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: status = _CORE_RWLock_Release( &the_rwlock->RWLock ); ffc0a1e0: 38 63 00 10 addi r3,r3,16 ffc0a1e4: 48 00 25 81 bl ffc0c764 <_CORE_RWLock_Release> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0a1e8: 90 61 00 18 stw r3,24(r1) ffc0a1ec: 48 00 3f c5 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( status ); ffc0a1f0: 80 61 00 18 lwz r3,24(r1) ffc0a1f4: 4b ff fe 71 bl ffc0a064 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0a1f8: 80 01 00 24 lwz r0,36(r1) ffc0a1fc: 38 21 00 20 addi r1,r1,32 ffc0a200: 7c 08 03 a6 mtlr r0 ffc0a204: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a208 : */ int pthread_rwlock_wrlock( pthread_rwlock_t *rwlock ) { ffc0a208: 94 21 ff e0 stwu r1,-32(r1) ffc0a20c: 7c 08 02 a6 mflr r0 ffc0a210: 93 e1 00 1c stw r31,28(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc0a214: 7c 7f 1b 79 mr. r31,r3 */ int pthread_rwlock_wrlock( pthread_rwlock_t *rwlock ) { ffc0a218: 90 01 00 24 stw r0,36(r1) POSIX_RWLock_Control *the_rwlock; Objects_Locations location; if ( !rwlock ) ffc0a21c: 41 82 00 24 beq- ffc0a240 ffc0a220: 80 9f 00 00 lwz r4,0(r31) ffc0a224: 3c 60 00 00 lis r3,0 ffc0a228: 38 63 2e 38 addi r3,r3,11832 ffc0a22c: 38 a1 00 08 addi r5,r1,8 ffc0a230: 48 00 33 b5 bl ffc0d5e4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { ffc0a234: 80 01 00 08 lwz r0,8(r1) ffc0a238: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a23c: 41 9e 00 1c beq- cr7,ffc0a258 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a240: 80 01 00 24 lwz r0,36(r1) 0, NULL ); _Thread_Enable_dispatch(); return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a244: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc0a248: 83 e1 00 1c lwz r31,28(r1) ffc0a24c: 38 21 00 20 addi r1,r1,32 ffc0a250: 7c 08 03 a6 mtlr r0 ffc0a254: 4e 80 00 20 blr <== ALWAYS TAKEN the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( ffc0a258: 80 9f 00 00 lwz r4,0(r31) ffc0a25c: 38 63 00 10 addi r3,r3,16 ffc0a260: 38 a0 00 01 li r5,1 ffc0a264: 38 c0 00 00 li r6,0 ffc0a268: 38 e0 00 00 li r7,0 ffc0a26c: 48 00 24 41 bl ffc0c6ac <_CORE_RWLock_Obtain_for_writing> <== ALWAYS TAKEN true, /* do not timeout -- wait forever */ 0, NULL ); _Thread_Enable_dispatch(); ffc0a270: 48 00 3f 41 bl ffc0e1b0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_RWLock_Translate_core_RWLock_return_code( ffc0a274: 3d 20 00 00 lis r9,0 ffc0a278: 81 29 27 fc lwz r9,10236(r9) ffc0a27c: 80 69 00 34 lwz r3,52(r9) ffc0a280: 4b ff fd e5 bl ffc0a064 <_POSIX_RWLock_Translate_core_RWLock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc0a284: 80 01 00 24 lwz r0,36(r1) ffc0a288: 83 e1 00 1c lwz r31,28(r1) ffc0a28c: 38 21 00 20 addi r1,r1,32 ffc0a290: 7c 08 03 a6 mtlr r0 ffc0a294: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a9b0 : int pthread_rwlockattr_destroy( pthread_rwlockattr_t *attr ) { if ( !attr || attr->is_initialized == false ) ffc0a9b0: 2c 03 00 00 cmpwi r3,0 ffc0a9b4: 41 82 00 20 beq- ffc0a9d4 ffc0a9b8: 80 03 00 00 lwz r0,0(r3) ffc0a9bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a9c0: 41 9e 00 14 beq- cr7,ffc0a9d4 return EINVAL; attr->is_initialized = false; ffc0a9c4: 38 00 00 00 li r0,0 ffc0a9c8: 90 03 00 00 stw r0,0(r3) ffc0a9cc: 38 60 00 00 li r3,0 return 0; ffc0a9d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a9d4: 38 60 00 16 li r3,22 } ffc0a9d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a9dc : int pthread_rwlockattr_getpshared( const pthread_rwlockattr_t *attr, int *pshared ) { if ( !attr ) ffc0a9dc: 2c 03 00 00 cmpwi r3,0 ffc0a9e0: 41 82 00 20 beq- ffc0aa00 return EINVAL; if ( !attr->is_initialized ) ffc0a9e4: 80 03 00 00 lwz r0,0(r3) ffc0a9e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a9ec: 41 9e 00 14 beq- cr7,ffc0aa00 return EINVAL; *pshared = attr->process_shared; ffc0a9f0: 80 03 00 04 lwz r0,4(r3) ffc0a9f4: 38 60 00 00 li r3,0 ffc0a9f8: 90 04 00 00 stw r0,0(r4) return 0; ffc0a9fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aa00: 38 60 00 16 li r3,22 } ffc0aa04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aa08 : int pthread_rwlockattr_init( pthread_rwlockattr_t *attr ) { if ( !attr ) ffc0aa08: 7c 69 1b 79 mr. r9,r3 ffc0aa0c: 38 60 00 16 li r3,22 ffc0aa10: 4d 82 00 20 beqlr return EINVAL; attr->is_initialized = true; attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc0aa14: 38 00 00 00 li r0,0 ffc0aa18: 90 09 00 04 stw r0,4(r9) ) { if ( !attr ) return EINVAL; attr->is_initialized = true; ffc0aa1c: 38 00 00 01 li r0,1 attr->process_shared = PTHREAD_PROCESS_PRIVATE; ffc0aa20: 38 60 00 00 li r3,0 ) { if ( !attr ) return EINVAL; attr->is_initialized = true; ffc0aa24: 90 09 00 00 stw r0,0(r9) attr->process_shared = PTHREAD_PROCESS_PRIVATE; return 0; } ffc0aa28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aa2c : int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) { if ( !attr ) ffc0aa2c: 2c 03 00 00 cmpwi r3,0 ffc0aa30: 41 82 00 18 beq- ffc0aa48 return EINVAL; if ( !attr->is_initialized ) ffc0aa34: 80 03 00 00 lwz r0,0(r3) ffc0aa38: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aa3c: 41 9e 00 0c beq- cr7,ffc0aa48 return EINVAL; switch ( pshared ) { ffc0aa40: 2b 84 00 01 cmplwi cr7,r4,1 ffc0aa44: 40 9d 00 0c ble- cr7,ffc0aa50 <== ALWAYS TAKEN case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; return 0; ffc0aa48: 38 60 00 16 li r3,22 default: return EINVAL; } } ffc0aa4c: 4e 80 00 20 blr <== ALWAYS TAKEN return EINVAL; switch ( pshared ) { case PTHREAD_PROCESS_SHARED: case PTHREAD_PROCESS_PRIVATE: attr->process_shared = pshared; ffc0aa50: 90 83 00 04 stw r4,4(r3) ffc0aa54: 38 60 00 00 li r3,0 return 0; ffc0aa58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1327c : #include #include pthread_t pthread_self( void ) { ffc1327c: 3d 20 00 00 lis r9,0 ffc13280: 81 29 27 b0 lwz r9,10160(r9) return _Thread_Executing->Object.id; } ffc13284: 80 69 00 08 lwz r3,8(r9) ffc13288: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08104 : int pthread_setcancelstate( int state, int *oldstate ) { ffc08104: 7c 08 02 a6 mflr r0 ffc08108: 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() ) ffc0810c: 3d 20 00 00 lis r9,0 int pthread_setcancelstate( int state, int *oldstate ) { ffc08110: 90 01 00 0c stw r0,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() ) ffc08114: 80 09 27 c4 lwz r0,10180(r9) int pthread_setcancelstate( int state, int *oldstate ) { ffc08118: 7c 69 1b 78 mr r9,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() ) ffc0811c: 38 60 00 47 li r3,71 ffc08120: 2f 80 00 00 cmpwi cr7,r0,0 ffc08124: 40 9e 00 18 bne- cr7,ffc0813c return EPROTO; if ( !oldstate ) ffc08128: 2f 84 00 00 cmpwi cr7,r4,0 ffc0812c: 41 9e 00 0c beq- cr7,ffc08138 return EINVAL; if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE ) ffc08130: 2b 89 00 01 cmplwi cr7,r9,1 ffc08134: 40 9d 00 18 ble- cr7,ffc0814c /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; ffc08138: 38 60 00 16 li r3,22 } ffc0813c: 80 01 00 0c lwz r0,12(r1) ffc08140: 38 21 00 08 addi r1,r1,8 ffc08144: 7c 08 03 a6 mtlr r0 ffc08148: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0814c: 3d 60 00 00 lis r11,0 ffc08150: 80 eb 27 9c lwz r7,10140(r11) return EINVAL; if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE ) return EINVAL; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc08154: 3d 40 00 00 lis r10,0 ffc08158: 81 0a 27 dc lwz r8,10204(r10) ffc0815c: 38 07 00 01 addi r0,r7,1 ffc08160: 90 0b 27 9c stw r0,10140(r11) ffc08164: 81 68 01 48 lwz r11,328(r8) _Thread_Disable_dispatch(); *oldstate = thread_support->cancelability_state; ffc08168: 80 0b 00 cc lwz r0,204(r11) thread_support->cancelability_state = state; _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc0816c: 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; ffc08170: 90 04 00 00 stw r0,0(r4) thread_support->cancelability_state = state; ffc08174: 91 2b 00 cc stw r9,204(r11) _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc08178: 48 00 6a 51 bl ffc0ebc8 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> <== ALWAYS TAKEN /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; } ffc0817c: 80 01 00 0c lwz r0,12(r1) _Thread_Disable_dispatch(); *oldstate = thread_support->cancelability_state; thread_support->cancelability_state = state; _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc08180: 38 60 00 00 li r3,0 /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; } ffc08184: 7c 08 03 a6 mtlr r0 ffc08188: 38 21 00 08 addi r1,r1,8 ffc0818c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08190 : int pthread_setcanceltype( int type, int *oldtype ) { ffc08190: 7c 08 02 a6 mflr r0 ffc08194: 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() ) ffc08198: 3d 20 00 00 lis r9,0 int pthread_setcanceltype( int type, int *oldtype ) { ffc0819c: 90 01 00 0c stw r0,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() ) ffc081a0: 80 09 27 c4 lwz r0,10180(r9) int pthread_setcanceltype( int type, int *oldtype ) { ffc081a4: 7c 69 1b 78 mr r9,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() ) ffc081a8: 38 60 00 47 li r3,71 ffc081ac: 2f 80 00 00 cmpwi cr7,r0,0 ffc081b0: 40 9e 00 18 bne- cr7,ffc081c8 return EPROTO; if ( !oldtype ) ffc081b4: 2f 84 00 00 cmpwi cr7,r4,0 ffc081b8: 41 9e 00 0c beq- cr7,ffc081c4 return EINVAL; if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS ) ffc081bc: 2b 89 00 01 cmplwi cr7,r9,1 ffc081c0: 40 9d 00 18 ble- cr7,ffc081d8 _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; ffc081c4: 38 60 00 16 li r3,22 } ffc081c8: 80 01 00 0c lwz r0,12(r1) ffc081cc: 38 21 00 08 addi r1,r1,8 ffc081d0: 7c 08 03 a6 mtlr r0 ffc081d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc081d8: 3d 60 00 00 lis r11,0 ffc081dc: 80 eb 27 9c lwz r7,10140(r11) return EINVAL; if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS ) return EINVAL; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc081e0: 3d 40 00 00 lis r10,0 ffc081e4: 81 0a 27 dc lwz r8,10204(r10) ffc081e8: 38 07 00 01 addi r0,r7,1 ffc081ec: 90 0b 27 9c stw r0,10140(r11) ffc081f0: 81 68 01 48 lwz r11,328(r8) _Thread_Disable_dispatch(); *oldtype = thread_support->cancelability_type; ffc081f4: 80 0b 00 d0 lwz r0,208(r11) thread_support->cancelability_type = type; _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc081f8: 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; ffc081fc: 90 04 00 00 stw r0,0(r4) thread_support->cancelability_type = type; ffc08200: 91 2b 00 d0 stw r9,208(r11) _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc08204: 48 00 69 c5 bl ffc0ebc8 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch> <== ALWAYS TAKEN /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; } ffc08208: 80 01 00 0c lwz r0,12(r1) _Thread_Disable_dispatch(); *oldtype = thread_support->cancelability_type; thread_support->cancelability_type = type; _POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing); ffc0820c: 38 60 00 00 li r3,0 /* * _Thread_Enable_dispatch is invoked by above call. */ return 0; } ffc08210: 7c 08 03 a6 mtlr r0 ffc08214: 38 21 00 08 addi r1,r1,8 ffc08218: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c1a4 : int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) { ffc0c1a4: 94 21 ff d0 stwu r1,-48(r1) ffc0c1a8: 7c 08 02 a6 mflr r0 ffc0c1ac: 93 e1 00 2c stw r31,44(r1) int rc; /* * Check all the parameters */ if ( !param ) ffc0c1b0: 7c bf 2b 79 mr. r31,r5 int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) { ffc0c1b4: 93 81 00 20 stw r28,32(r1) int rc; /* * Check all the parameters */ if ( !param ) ffc0c1b8: 3b 80 00 16 li r28,22 int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) { ffc0c1bc: 93 a1 00 24 stw r29,36(r1) ffc0c1c0: 7c 7d 1b 78 mr r29,r3 <== ALWAYS TAKEN ffc0c1c4: 93 c1 00 28 stw r30,40(r1) ffc0c1c8: 7c 9e 23 78 mr r30,r4 ffc0c1cc: 90 01 00 34 stw r0,52(r1) ffc0c1d0: 93 61 00 1c stw r27,28(r1) int rc; /* * Check all the parameters */ if ( !param ) ffc0c1d4: 41 82 00 20 beq- ffc0c1f4 return EINVAL; rc = _POSIX_Thread_Translate_sched_param( ffc0c1d8: 7c 83 23 78 mr r3,r4 ffc0c1dc: 38 a1 00 08 addi r5,r1,8 ffc0c1e0: 7f e4 fb 78 mr r4,r31 ffc0c1e4: 38 c1 00 0c addi r6,r1,12 ffc0c1e8: 48 00 72 c9 bl ffc134b0 <_POSIX_Thread_Translate_sched_param> <== ALWAYS TAKEN policy, param, &budget_algorithm, &budget_callout ); if ( rc ) ffc0c1ec: 7c 7c 1b 79 mr. r28,r3 ffc0c1f0: 41 82 00 2c beq- ffc0c21c case OBJECTS_ERROR: break; } return ESRCH; } ffc0c1f4: 80 01 00 34 lwz r0,52(r1) ffc0c1f8: 7f 83 e3 78 mr r3,r28 ffc0c1fc: 83 61 00 1c lwz r27,28(r1) ffc0c200: 7c 08 03 a6 mtlr r0 ffc0c204: 83 81 00 20 lwz r28,32(r1) ffc0c208: 83 a1 00 24 lwz r29,36(r1) ffc0c20c: 83 c1 00 28 lwz r30,40(r1) ffc0c210: 83 e1 00 2c lwz r31,44(r1) ffc0c214: 38 21 00 30 addi r1,r1,48 ffc0c218: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c21c: 3c 60 00 00 lis r3,0 ffc0c220: 38 63 2e d8 addi r3,r3,11992 ffc0c224: 7f a4 eb 78 mr r4,r29 ffc0c228: 38 a1 00 10 addi r5,r1,16 ffc0c22c: 48 00 29 35 bl ffc0eb60 <_Objects_Get> <== ALWAYS TAKEN /* * Actually change the scheduling policy and parameters */ the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc0c230: 80 01 00 10 lwz r0,16(r1) ffc0c234: 7c 7b 1b 78 mr r27,r3 ffc0c238: 2f 80 00 00 cmpwi cr7,r0,0 ffc0c23c: 40 9e 00 c0 bne- cr7,ffc0c2fc case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc0c240: 83 a3 01 48 lwz r29,328(r3) if ( api->schedpolicy == SCHED_SPORADIC ) ffc0c244: 80 1d 00 7c lwz r0,124(r29) ffc0c248: 2f 80 00 03 cmpwi cr7,r0,3 ffc0c24c: 41 9e 01 04 beq- cr7,ffc0c350 (void) _Watchdog_Remove( &api->Sporadic_timer ); api->schedpolicy = policy; ffc0c250: 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 ) { ffc0c254: 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; ffc0c258: 81 7f 00 08 lwz r11,8(r31) ffc0c25c: 81 3f 00 0c lwz r9,12(r31) ffc0c260: 80 1f 00 00 lwz r0,0(r31) ffc0c264: 81 5f 00 04 lwz r10,4(r31) ffc0c268: 91 7d 00 88 stw r11,136(r29) ffc0c26c: 91 5d 00 84 stw r10,132(r29) ffc0c270: 91 3d 00 8c stw r9,140(r29) ffc0c274: 90 1d 00 80 stw r0,128(r29) ffc0c278: 81 3f 00 14 lwz r9,20(r31) ffc0c27c: 81 7f 00 10 lwz r11,16(r31) ffc0c280: 91 3d 00 94 stw r9,148(r29) the_thread->budget_algorithm = budget_algorithm; ffc0c284: 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; ffc0c288: 91 7d 00 90 stw r11,144(r29) the_thread->budget_algorithm = budget_algorithm; ffc0c28c: 91 3b 00 7c stw r9,124(r27) the_thread->budget_callout = budget_callout; ffc0c290: 81 21 00 0c lwz r9,12(r1) ffc0c294: 91 3b 00 80 stw r9,128(r27) switch ( api->schedpolicy ) { ffc0c298: 41 9c 00 38 blt- cr7,ffc0c2d0 <== NEVER TAKEN ffc0c29c: 2f 9e 00 02 cmpwi cr7,r30,2 ffc0c2a0: 41 9d 00 88 bgt- cr7,ffc0c328 ffc0c2a4: 3d 20 00 00 lis r9,0 ffc0c2a8: 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; ffc0c2ac: 3d 60 00 00 lis r11,0 ffc0c2b0: 81 3d 00 80 lwz r9,128(r29) the_thread->real_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority ); _Thread_Change_priority( ffc0c2b4: 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; ffc0c2b8: 80 0b 28 08 lwz r0,10248(r11) the_thread->real_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority ); _Thread_Change_priority( ffc0c2bc: 38 a0 00 01 li r5,1 ffc0c2c0: 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; ffc0c2c4: 90 1b 00 78 stw r0,120(r27) the_thread->real_priority = ffc0c2c8: 90 9b 00 18 stw r4,24(r27) _POSIX_Priority_To_core( api->schedparam.sched_priority ); _Thread_Change_priority( ffc0c2cc: 48 00 2d 55 bl ffc0f020 <_Thread_Change_priority> <== ALWAYS TAKEN _Watchdog_Remove( &api->Sporadic_timer ); _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); break; } _Thread_Enable_dispatch(); ffc0c2d0: 48 00 34 5d bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return ESRCH; } ffc0c2d4: 80 01 00 34 lwz r0,52(r1) ffc0c2d8: 7f 83 e3 78 mr r3,r28 ffc0c2dc: 83 61 00 1c lwz r27,28(r1) ffc0c2e0: 7c 08 03 a6 mtlr r0 ffc0c2e4: 83 81 00 20 lwz r28,32(r1) ffc0c2e8: 83 a1 00 24 lwz r29,36(r1) ffc0c2ec: 83 c1 00 28 lwz r30,40(r1) ffc0c2f0: 83 e1 00 2c lwz r31,44(r1) ffc0c2f4: 38 21 00 30 addi r1,r1,48 ffc0c2f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0c2fc: 80 01 00 34 lwz r0,52(r1) /* * Actually change the scheduling policy and parameters */ the_thread = _POSIX_Threads_Get( thread, &location ); switch ( location ) { ffc0c300: 3b 80 00 03 li r28,3 case OBJECTS_ERROR: break; } return ESRCH; } ffc0c304: 7f 83 e3 78 mr r3,r28 ffc0c308: 83 61 00 1c lwz r27,28(r1) ffc0c30c: 7c 08 03 a6 mtlr r0 ffc0c310: 83 81 00 20 lwz r28,32(r1) ffc0c314: 83 a1 00 24 lwz r29,36(r1) ffc0c318: 83 c1 00 28 lwz r30,40(r1) ffc0c31c: 83 e1 00 2c lwz r31,44(r1) ffc0c320: 38 21 00 30 addi r1,r1,48 ffc0c324: 4e 80 00 20 blr <== ALWAYS TAKEN api->schedpolicy = policy; api->schedparam = *param; the_thread->budget_algorithm = budget_algorithm; the_thread->budget_callout = budget_callout; switch ( api->schedpolicy ) { ffc0c328: 2f 9e 00 03 cmpwi cr7,r30,3 ffc0c32c: 40 9e ff a4 bne+ cr7,ffc0c2d0 <== NEVER TAKEN true ); break; case SCHED_SPORADIC: api->ss_high_priority = api->schedparam.sched_priority; ffc0c330: 90 1d 00 98 stw r0,152(r29) _Watchdog_Remove( &api->Sporadic_timer ); ffc0c334: 38 7d 00 9c addi r3,r29,156 ffc0c338: 48 00 4f 25 bl ffc1125c <_Watchdog_Remove> <== ALWAYS TAKEN _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread ); ffc0c33c: 7f 64 db 78 mr r4,r27 ffc0c340: 38 60 00 00 li r3,0 ffc0c344: 4b ff fd 89 bl ffc0c0cc <_POSIX_Threads_Sporadic_budget_TSR> <== ALWAYS TAKEN break; } _Thread_Enable_dispatch(); ffc0c348: 48 00 33 e5 bl ffc0f72c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0c34c: 4b ff ff 88 b ffc0c2d4 <== ALWAYS TAKEN case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_POSIX ]; if ( api->schedpolicy == SCHED_SPORADIC ) (void) _Watchdog_Remove( &api->Sporadic_timer ); ffc0c350: 38 7d 00 9c addi r3,r29,156 ffc0c354: 48 00 4f 09 bl ffc1125c <_Watchdog_Remove> <== ALWAYS TAKEN ffc0c358: 4b ff fe f8 b ffc0c250 <== ALWAYS TAKEN ffc08888 : int pthread_setspecific( pthread_key_t key, const void *value ) { ffc08888: 94 21 ff e0 stwu r1,-32(r1) ffc0888c: 7c 08 02 a6 mflr r0 ffc08890: 90 01 00 24 stw r0,36(r1) ffc08894: 7c 60 1b 78 mr r0,r3 ffc08898: 3c 60 00 00 lis r3,0 ffc0889c: 93 e1 00 1c stw r31,28(r1) ffc088a0: 38 63 30 b0 addi r3,r3,12464 ffc088a4: 7c 9f 23 78 mr r31,r4 ffc088a8: 38 a1 00 08 addi r5,r1,8 ffc088ac: 7c 04 03 78 mr r4,r0 ffc088b0: 48 00 30 01 bl ffc0b8b0 <_Objects_Get> <== ALWAYS TAKEN uint32_t api; uint32_t index; Objects_Locations location; the_key = _POSIX_Keys_Get( key, &location ); switch ( location ) { ffc088b4: 81 21 00 08 lwz r9,8(r1) ffc088b8: 38 00 00 16 li r0,22 ffc088bc: 2f 89 00 00 cmpwi cr7,r9,0 ffc088c0: 40 9e 00 2c bne- cr7,ffc088ec case OBJECTS_LOCAL: api = _Objects_Get_API( _Thread_Executing->Object.id ); ffc088c4: 3d 20 00 00 lis r9,0 ffc088c8: 81 29 28 44 lwz r9,10308(r9) ffc088cc: 80 09 00 08 lwz r0,8(r9) index = _Objects_Get_index( _Thread_Executing->Object.id ); the_key->Values[ api ][ index ] = (void *) value; ffc088d0: 54 09 56 fa rlwinm r9,r0,10,27,29 ffc088d4: 7c 63 4a 14 add r3,r3,r9 ffc088d8: 81 23 00 14 lwz r9,20(r3) ffc088dc: 54 00 13 ba rlwinm r0,r0,2,14,29 ffc088e0: 7f e9 01 2e stwx r31,r9,r0 _Thread_Enable_dispatch(); ffc088e4: 48 00 3b 99 bl ffc0c47c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc088e8: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc088ec: 7c 03 03 78 mr r3,r0 ffc088f0: 80 01 00 24 lwz r0,36(r1) ffc088f4: 83 e1 00 1c lwz r31,28(r1) ffc088f8: 38 21 00 20 addi r1,r1,32 ffc088fc: 7c 08 03 a6 mtlr r0 ffc08900: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10a4c : sigset_t *oset ) { POSIX_API_Control *api; if ( !set && !oset ) ffc10a4c: 2c 04 00 00 cmpwi r4,0 int pthread_sigmask( int how, const sigset_t *set, sigset_t *oset ) { ffc10a50: 94 21 ff f8 stwu r1,-8(r1) ffc10a54: 7c 08 02 a6 mflr r0 ffc10a58: 90 01 00 0c stw r0,12(r1) POSIX_API_Control *api; if ( !set && !oset ) ffc10a5c: 41 82 00 d8 beq- ffc10b34 rtems_set_errno_and_return_minus_one( EINVAL ); api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; if ( oset ) ffc10a60: 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 ]; ffc10a64: 3d 20 00 00 lis r9,0 ffc10a68: 81 69 28 40 lwz r11,10304(r9) ffc10a6c: 81 2b 01 48 lwz r9,328(r11) if ( oset ) ffc10a70: 41 9e 00 10 beq- cr7,ffc10a80 *oset = api->signals_blocked; ffc10a74: 80 09 00 c4 lwz r0,196(r9) ffc10a78: 90 05 00 00 stw r0,0(r5) if ( !set ) ffc10a7c: 41 82 00 5c beq- ffc10ad8 return 0; switch ( how ) { ffc10a80: 2f 83 00 01 cmpwi cr7,r3,1 ffc10a84: 41 9e 00 9c beq- cr7,ffc10b20 ffc10a88: 2f 83 00 02 cmpwi cr7,r3,2 ffc10a8c: 41 9e 00 60 beq- cr7,ffc10aec ffc10a90: 2f 83 00 00 cmpwi cr7,r3,0 ffc10a94: 40 9e 00 6c bne- cr7,ffc10b00 break; case SIG_UNBLOCK: api->signals_blocked &= ~*set; break; case SIG_SETMASK: api->signals_blocked = *set; ffc10a98: 80 04 00 00 lwz r0,0(r4) ffc10a9c: 90 09 00 c4 stw r0,196(r9) /* XXX are there critical section problems here? */ /* XXX evaluate the new set */ if ( ~api->signals_blocked & ffc10aa0: 3d 40 00 00 lis r10,0 (api->signals_pending | _POSIX_signals_Pending) ) { ffc10aa4: 81 29 00 c8 lwz r9,200(r9) ffc10aa8: 81 4a 28 74 lwz r10,10356(r10) ffc10aac: 7d 49 4b 78 or r9,r10,r9 /* XXX are there critical section problems here? */ /* XXX evaluate the new set */ if ( ~api->signals_blocked & ffc10ab0: 7d 2a 00 79 andc. r10,r9,r0 ffc10ab4: 41 a2 00 24 beq+ ffc10ad8 (api->signals_pending | _POSIX_signals_Pending) ) { _Thread_Executing->do_post_task_switch_extension = true; ffc10ab8: 38 00 00 01 li r0,1 ffc10abc: 98 0b 00 74 stb r0,116(r11) _Thread_Dispatch(); ffc10ac0: 4b ff ba 85 bl ffc0c544 <_Thread_Dispatch> <== ALWAYS TAKEN } return 0; } ffc10ac4: 80 01 00 0c lwz r0,12(r1) /* XXX evaluate the new set */ if ( ~api->signals_blocked & (api->signals_pending | _POSIX_signals_Pending) ) { _Thread_Executing->do_post_task_switch_extension = true; _Thread_Dispatch(); ffc10ac8: 38 60 00 00 li r3,0 } return 0; } ffc10acc: 7c 08 03 a6 mtlr r0 ffc10ad0: 38 21 00 08 addi r1,r1,8 ffc10ad4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10ad8: 80 01 00 0c lwz r0,12(r1) /* XXX evaluate the new set */ if ( ~api->signals_blocked & (api->signals_pending | _POSIX_signals_Pending) ) { _Thread_Executing->do_post_task_switch_extension = true; _Thread_Dispatch(); ffc10adc: 38 60 00 00 li r3,0 } return 0; } ffc10ae0: 38 21 00 08 addi r1,r1,8 ffc10ae4: 7c 08 03 a6 mtlr r0 ffc10ae8: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( how ) { case SIG_BLOCK: api->signals_blocked |= *set; break; case SIG_UNBLOCK: api->signals_blocked &= ~*set; ffc10aec: 81 44 00 00 lwz r10,0(r4) ffc10af0: 80 09 00 c4 lwz r0,196(r9) ffc10af4: 7c 00 50 78 andc r0,r0,r10 ffc10af8: 90 09 00 c4 stw r0,196(r9) break; ffc10afc: 4b ff ff a4 b ffc10aa0 <== ALWAYS TAKEN case SIG_SETMASK: api->signals_blocked = *set; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc10b00: 48 00 3e 41 bl ffc14940 <__errno> <== ALWAYS TAKEN ffc10b04: 38 00 00 16 li r0,22 ffc10b08: 90 03 00 00 stw r0,0(r3) ffc10b0c: 38 60 ff ff li r3,-1 _Thread_Executing->do_post_task_switch_extension = true; _Thread_Dispatch(); } return 0; } ffc10b10: 80 01 00 0c lwz r0,12(r1) ffc10b14: 38 21 00 08 addi r1,r1,8 ffc10b18: 7c 08 03 a6 mtlr r0 ffc10b1c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !set ) return 0; switch ( how ) { case SIG_BLOCK: api->signals_blocked |= *set; ffc10b20: 81 44 00 00 lwz r10,0(r4) ffc10b24: 80 09 00 c4 lwz r0,196(r9) ffc10b28: 7c 00 53 78 or r0,r0,r10 ffc10b2c: 90 09 00 c4 stw r0,196(r9) break; ffc10b30: 4b ff ff 70 b ffc10aa0 <== ALWAYS TAKEN sigset_t *oset ) { POSIX_API_Control *api; if ( !set && !oset ) ffc10b34: 2f 85 00 00 cmpwi cr7,r5,0 ffc10b38: 41 be ff c8 beq- cr7,ffc10b00 rtems_set_errno_and_return_minus_one( EINVAL ); api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc10b3c: 3d 20 00 00 lis r9,0 ffc10b40: 81 69 28 40 lwz r11,10304(r9) ffc10b44: 81 2b 01 48 lwz r9,328(r11) ffc10b48: 4b ff ff 2c b ffc10a74 <== ALWAYS TAKEN ffc08954 : ) { POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; if ( !spinlock ) ffc08954: 2c 03 00 00 cmpwi r3,0 */ int pthread_spin_destroy( pthread_spinlock_t *spinlock ) { ffc08958: 94 21 ff e0 stwu r1,-32(r1) ffc0895c: 7c 08 02 a6 mflr r0 ffc08960: 93 c1 00 18 stw r30,24(r1) ffc08964: 90 01 00 24 stw r0,36(r1) ffc08968: 93 e1 00 1c stw r31,28(r1) POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; if ( !spinlock ) ffc0896c: 41 82 00 2c beq- ffc08998 RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get ( pthread_spinlock_t *spinlock, Objects_Locations *location ) { return (POSIX_Spinlock_Control *) _Objects_Get( ffc08970: 3f e0 00 00 lis r31,0 ffc08974: 80 83 00 00 lwz r4,0(r3) ffc08978: 3b ff 2e b8 addi r31,r31,11960 ffc0897c: 7f e3 fb 78 mr r3,r31 ffc08980: 38 a1 00 08 addi r5,r1,8 ffc08984: 48 00 2b 71 bl ffc0b4f4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { ffc08988: 80 01 00 08 lwz r0,8(r1) ffc0898c: 7c 7e 1b 78 mr r30,r3 ffc08990: 2f 80 00 00 cmpwi cr7,r0,0 ffc08994: 41 9e 00 20 beq- cr7,ffc089b4 case OBJECTS_ERROR: break; } return EINVAL; } ffc08998: 80 01 00 24 lwz r0,36(r1) _Objects_Close( &_POSIX_Spinlock_Information, &the_spinlock->Object ); _POSIX_Spinlock_Free( the_spinlock ); _Thread_Enable_dispatch(); return 0; ffc0899c: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc089a0: 83 c1 00 18 lwz r30,24(r1) ffc089a4: 7c 08 03 a6 mtlr r0 ffc089a8: 83 e1 00 1c lwz r31,28(r1) ffc089ac: 38 21 00 20 addi r1,r1,32 ffc089b0: 4e 80 00 20 blr <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy( CORE_spinlock_Control *the_spinlock ) { return (the_spinlock->users != 0); ffc089b4: 80 03 00 18 lwz r0,24(r3) the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _CORE_spinlock_Is_busy( &the_spinlock->Spinlock ) ) { ffc089b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc089bc: 41 9e 00 24 beq- cr7,ffc089e0 _Thread_Enable_dispatch(); ffc089c0: 48 00 37 01 bl ffc0c0c0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc089c4: 80 01 00 24 lwz r0,36(r1) the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _CORE_spinlock_Is_busy( &the_spinlock->Spinlock ) ) { _Thread_Enable_dispatch(); ffc089c8: 38 60 00 10 li r3,16 case OBJECTS_ERROR: break; } return EINVAL; } ffc089cc: 83 c1 00 18 lwz r30,24(r1) ffc089d0: 7c 08 03 a6 mtlr r0 ffc089d4: 83 e1 00 1c lwz r31,28(r1) ffc089d8: 38 21 00 20 addi r1,r1,32 ffc089dc: 4e 80 00 20 blr <== ALWAYS TAKEN if ( _CORE_spinlock_Is_busy( &the_spinlock->Spinlock ) ) { _Thread_Enable_dispatch(); return EBUSY; } _Objects_Close( &_POSIX_Spinlock_Information, &the_spinlock->Object ); ffc089e0: 7f e3 fb 78 mr r3,r31 ffc089e4: 7f c4 f3 78 mr r4,r30 ffc089e8: 48 00 25 d5 bl ffc0afbc <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _POSIX_Spinlock_Free ( POSIX_Spinlock_Control *the_spinlock ) { _Objects_Free( &_POSIX_Spinlock_Information, &the_spinlock->Object ); ffc089ec: 7f e3 fb 78 mr r3,r31 ffc089f0: 7f c4 f3 78 mr r4,r30 ffc089f4: 48 00 29 21 bl ffc0b314 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Spinlock_Free( the_spinlock ); _Thread_Enable_dispatch(); ffc089f8: 48 00 36 c9 bl ffc0c0c0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc089fc: 80 01 00 24 lwz r0,36(r1) _Objects_Close( &_POSIX_Spinlock_Information, &the_spinlock->Object ); _POSIX_Spinlock_Free( the_spinlock ); _Thread_Enable_dispatch(); ffc08a00: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return EINVAL; } ffc08a04: 83 c1 00 18 lwz r30,24(r1) ffc08a08: 7c 08 03 a6 mtlr r0 ffc08a0c: 83 e1 00 1c lwz r31,28(r1) ffc08a10: 38 21 00 20 addi r1,r1,32 ffc08a14: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08a18 : int pthread_spin_init( pthread_spinlock_t *spinlock, int pshared ) { ffc08a18: 94 21 ff d8 stwu r1,-40(r1) ffc08a1c: 7c 08 02 a6 mflr r0 ffc08a20: 93 a1 00 1c stw r29,28(r1) POSIX_Spinlock_Control *the_spinlock; CORE_spinlock_Attributes attributes; if ( !spinlock ) ffc08a24: 7c 7d 1b 79 mr. r29,r3 int pthread_spin_init( pthread_spinlock_t *spinlock, int pshared ) { ffc08a28: 93 e1 00 24 stw r31,36(r1) ffc08a2c: 7c 9f 23 78 mr r31,r4 ffc08a30: 90 01 00 2c stw r0,44(r1) ffc08a34: 93 81 00 18 stw r28,24(r1) ffc08a38: 93 c1 00 20 stw r30,32(r1) POSIX_Spinlock_Control *the_spinlock; CORE_spinlock_Attributes attributes; if ( !spinlock ) ffc08a3c: 41 82 00 80 beq- ffc08abc return EINVAL; switch ( pshared ) { ffc08a40: 2f 84 00 00 cmpwi cr7,r4,0 ffc08a44: 40 9e 00 78 bne- cr7,ffc08abc rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08a48: 3d 20 00 00 lis r9,0 ffc08a4c: 81 69 27 b8 lwz r11,10168(r9) ffc08a50: 38 0b 00 01 addi r0,r11,1 ffc08a54: 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 *) ffc08a58: 3f 80 00 00 lis r28,0 ffc08a5c: 3b 9c 2e b8 addi r28,r28,11960 ffc08a60: 7f 83 e3 78 mr r3,r28 ffc08a64: 48 00 24 91 bl ffc0aef4 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_spinlock = _POSIX_Spinlock_Allocate(); if ( !the_spinlock ) { ffc08a68: 7c 7e 1b 79 mr. r30,r3 ffc08a6c: 41 82 00 74 beq- ffc08ae0 _Thread_Enable_dispatch(); return EAGAIN; } _CORE_spinlock_Initialize( &the_spinlock->Spinlock, &attributes ); ffc08a70: 38 7e 00 10 addi r3,r30,16 ffc08a74: 38 81 00 08 addi r4,r1,8 ffc08a78: 48 00 1d a9 bl ffc0a820 <_CORE_spinlock_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc08a7c: 80 1e 00 08 lwz r0,8(r30) ffc08a80: 81 7c 00 1c lwz r11,28(r28) ffc08a84: 54 09 13 ba rlwinm r9,r0,2,14,29 ffc08a88: 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; ffc08a8c: 93 fe 00 0c stw r31,12(r30) _Objects_Open_u32( &_POSIX_Spinlock_Information, &the_spinlock->Object, 0 ); *spinlock = the_spinlock->Object.id; ffc08a90: 90 1d 00 00 stw r0,0(r29) _Thread_Enable_dispatch(); ffc08a94: 48 00 36 2d bl ffc0c0c0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return 0; } ffc08a98: 80 01 00 2c lwz r0,44(r1) _Objects_Open_u32( &_POSIX_Spinlock_Information, &the_spinlock->Object, 0 ); *spinlock = the_spinlock->Object.id; _Thread_Enable_dispatch(); ffc08a9c: 38 60 00 00 li r3,0 return 0; } ffc08aa0: 83 81 00 18 lwz r28,24(r1) ffc08aa4: 7c 08 03 a6 mtlr r0 ffc08aa8: 83 a1 00 1c lwz r29,28(r1) ffc08aac: 83 c1 00 20 lwz r30,32(r1) ffc08ab0: 83 e1 00 24 lwz r31,36(r1) ffc08ab4: 38 21 00 28 addi r1,r1,40 ffc08ab8: 4e 80 00 20 blr <== ALWAYS TAKEN _Objects_Open_u32( &_POSIX_Spinlock_Information, &the_spinlock->Object, 0 ); *spinlock = the_spinlock->Object.id; _Thread_Enable_dispatch(); return 0; ffc08abc: 38 60 00 16 li r3,22 } ffc08ac0: 80 01 00 2c lwz r0,44(r1) ffc08ac4: 83 81 00 18 lwz r28,24(r1) ffc08ac8: 7c 08 03 a6 mtlr r0 ffc08acc: 83 a1 00 1c lwz r29,28(r1) ffc08ad0: 83 c1 00 20 lwz r30,32(r1) ffc08ad4: 83 e1 00 24 lwz r31,36(r1) ffc08ad8: 38 21 00 28 addi r1,r1,40 ffc08adc: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_spinlock = _POSIX_Spinlock_Allocate(); if ( !the_spinlock ) { _Thread_Enable_dispatch(); ffc08ae0: 48 00 35 e1 bl ffc0c0c0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08ae4: 38 60 00 0b li r3,11 return EAGAIN; ffc08ae8: 4b ff ff d8 b ffc08ac0 <== ALWAYS TAKEN ffc08aec : { POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc08aec: 2c 03 00 00 cmpwi r3,0 */ int pthread_spin_lock( pthread_spinlock_t *spinlock ) { ffc08af0: 94 21 ff e0 stwu r1,-32(r1) ffc08af4: 7c 08 02 a6 mflr r0 ffc08af8: 90 01 00 24 stw r0,36(r1) POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc08afc: 41 82 00 24 beq- ffc08b20 RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get ( pthread_spinlock_t *spinlock, Objects_Locations *location ) { return (POSIX_Spinlock_Control *) _Objects_Get( ffc08b00: 80 83 00 00 lwz r4,0(r3) ffc08b04: 3c 60 00 00 lis r3,0 ffc08b08: 38 63 2e b8 addi r3,r3,11960 ffc08b0c: 38 a1 00 08 addi r5,r1,8 ffc08b10: 48 00 29 e5 bl ffc0b4f4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { ffc08b14: 80 01 00 08 lwz r0,8(r1) ffc08b18: 2f 80 00 00 cmpwi cr7,r0,0 ffc08b1c: 41 9e 00 18 beq- cr7,ffc08b34 case OBJECTS_ERROR: break; } return EINVAL; } ffc08b20: 80 01 00 24 lwz r0,36(r1) switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 ); _Thread_Enable_dispatch(); return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc08b24: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc08b28: 38 21 00 20 addi r1,r1,32 ffc08b2c: 7c 08 03 a6 mtlr r0 ffc08b30: 4e 80 00 20 blr <== ALWAYS TAKEN the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 ); ffc08b34: 38 80 00 01 li r4,1 ffc08b38: 38 a0 00 00 li r5,0 ffc08b3c: 38 63 00 10 addi r3,r3,16 ffc08b40: 48 00 1d 6d bl ffc0a8ac <_CORE_spinlock_Wait> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08b44: 90 61 00 18 stw r3,24(r1) ffc08b48: 48 00 35 79 bl ffc0c0c0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc08b4c: 80 61 00 18 lwz r3,24(r1) ffc08b50: 48 00 00 15 bl ffc08b64 <_POSIX_Spinlock_Translate_core_spinlock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc08b54: 80 01 00 24 lwz r0,36(r1) ffc08b58: 38 21 00 20 addi r1,r1,32 ffc08b5c: 7c 08 03 a6 mtlr r0 ffc08b60: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08b78 : { POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc08b78: 2c 03 00 00 cmpwi r3,0 */ int pthread_spin_trylock( pthread_spinlock_t *spinlock ) { ffc08b7c: 94 21 ff e0 stwu r1,-32(r1) ffc08b80: 7c 08 02 a6 mflr r0 ffc08b84: 90 01 00 24 stw r0,36(r1) POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc08b88: 41 82 00 24 beq- ffc08bac ffc08b8c: 80 83 00 00 lwz r4,0(r3) ffc08b90: 3c 60 00 00 lis r3,0 ffc08b94: 38 63 2e b8 addi r3,r3,11960 ffc08b98: 38 a1 00 08 addi r5,r1,8 ffc08b9c: 48 00 29 59 bl ffc0b4f4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { ffc08ba0: 80 01 00 08 lwz r0,8(r1) ffc08ba4: 2f 80 00 00 cmpwi cr7,r0,0 ffc08ba8: 41 9e 00 18 beq- cr7,ffc08bc0 case OBJECTS_ERROR: break; } return EINVAL; } ffc08bac: 80 01 00 24 lwz r0,36(r1) switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 ); _Thread_Enable_dispatch(); return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc08bb0: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc08bb4: 38 21 00 20 addi r1,r1,32 ffc08bb8: 7c 08 03 a6 mtlr r0 ffc08bbc: 4e 80 00 20 blr <== ALWAYS TAKEN the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 ); ffc08bc0: 38 80 00 00 li r4,0 ffc08bc4: 38 a0 00 00 li r5,0 ffc08bc8: 38 63 00 10 addi r3,r3,16 ffc08bcc: 48 00 1c e1 bl ffc0a8ac <_CORE_spinlock_Wait> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08bd0: 90 61 00 18 stw r3,24(r1) ffc08bd4: 48 00 34 ed bl ffc0c0c0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc08bd8: 80 61 00 18 lwz r3,24(r1) ffc08bdc: 4b ff ff 89 bl ffc08b64 <_POSIX_Spinlock_Translate_core_spinlock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc08be0: 80 01 00 24 lwz r0,36(r1) ffc08be4: 38 21 00 20 addi r1,r1,32 ffc08be8: 7c 08 03 a6 mtlr r0 ffc08bec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08bf0 : { POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc08bf0: 2c 03 00 00 cmpwi r3,0 */ int pthread_spin_unlock( pthread_spinlock_t *spinlock ) { ffc08bf4: 94 21 ff e0 stwu r1,-32(r1) ffc08bf8: 7c 08 02 a6 mflr r0 ffc08bfc: 90 01 00 24 stw r0,36(r1) POSIX_Spinlock_Control *the_spinlock = NULL; Objects_Locations location; CORE_spinlock_Status status; if ( !spinlock ) ffc08c00: 41 82 00 24 beq- ffc08c24 ffc08c04: 80 83 00 00 lwz r4,0(r3) ffc08c08: 3c 60 00 00 lis r3,0 ffc08c0c: 38 63 2e b8 addi r3,r3,11960 ffc08c10: 38 a1 00 08 addi r5,r1,8 ffc08c14: 48 00 28 e1 bl ffc0b4f4 <_Objects_Get> <== ALWAYS TAKEN return EINVAL; the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { ffc08c18: 80 01 00 08 lwz r0,8(r1) ffc08c1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc08c20: 41 9e 00 18 beq- cr7,ffc08c38 case OBJECTS_ERROR: break; } return EINVAL; } ffc08c24: 80 01 00 24 lwz r0,36(r1) switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Release( &the_spinlock->Spinlock ); _Thread_Enable_dispatch(); return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc08c28: 38 60 00 16 li r3,22 case OBJECTS_ERROR: break; } return EINVAL; } ffc08c2c: 38 21 00 20 addi r1,r1,32 ffc08c30: 7c 08 03 a6 mtlr r0 ffc08c34: 4e 80 00 20 blr <== ALWAYS TAKEN the_spinlock = _POSIX_Spinlock_Get( spinlock, &location ); switch ( location ) { case OBJECTS_LOCAL: status = _CORE_spinlock_Release( &the_spinlock->Spinlock ); ffc08c38: 38 63 00 10 addi r3,r3,16 ffc08c3c: 48 00 1c 01 bl ffc0a83c <_CORE_spinlock_Release> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08c40: 90 61 00 18 stw r3,24(r1) ffc08c44: 48 00 34 7d bl ffc0c0c0 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _POSIX_Spinlock_Translate_core_spinlock_return_code( status ); ffc08c48: 80 61 00 18 lwz r3,24(r1) ffc08c4c: 4b ff ff 19 bl ffc08b64 <_POSIX_Spinlock_Translate_core_spinlock_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return EINVAL; } ffc08c50: 80 01 00 24 lwz r0,36(r1) ffc08c54: 38 21 00 20 addi r1,r1,32 ffc08c58: 7c 08 03 a6 mtlr r0 ffc08c5c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c58 : * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc08c58: 94 21 ff f0 stwu r1,-16(r1) ffc08c5c: 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() ) ffc08c60: 3d 20 00 00 lis r9,0 * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc08c64: 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() ) ffc08c68: 80 09 27 bc lwz r0,10172(r9) * * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) { ffc08c6c: 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() ) ffc08c70: 2f 80 00 00 cmpwi cr7,r0,0 ffc08c74: 40 9e 00 48 bne- cr7,ffc08cbc <== NEVER TAKEN ffc08c78: 3d 20 00 00 lis r9,0 ffc08c7c: 81 49 27 94 lwz r10,10132(r9) return; thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; ffc08c80: 3f e0 00 00 lis r31,0 ffc08c84: 81 7f 27 d4 lwz r11,10196(r31) ffc08c88: 38 0a 00 01 addi r0,r10,1 ffc08c8c: 90 09 27 94 stw r0,10132(r9) ffc08c90: 81 2b 01 48 lwz r9,328(r11) _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && ffc08c94: 80 09 00 cc lwz r0,204(r9) ffc08c98: 2f 80 00 00 cmpwi cr7,r0,0 ffc08c9c: 40 9e 00 34 bne- cr7,ffc08cd0 <== NEVER TAKEN thread_support->cancelation_requested ) ffc08ca0: 80 09 00 d4 lwz r0,212(r9) ffc08ca4: 2f 80 00 00 cmpwi cr7,r0,0 ffc08ca8: 41 9e 00 28 beq- cr7,ffc08cd0 cancel = true; _Thread_Enable_dispatch(); ffc08cac: 48 00 32 3d bl ffc0bee8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); ffc08cb0: 80 7f 27 d4 lwz r3,10196(r31) ffc08cb4: 38 80 ff ff li r4,-1 ffc08cb8: 48 00 71 4d bl ffc0fe04 <_POSIX_Thread_Exit> <== ALWAYS TAKEN } ffc08cbc: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc08cc0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc08cc4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc08cc8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc08ccc: 4e 80 00 20 blr <== NOT EXECUTED _Thread_Disable_dispatch(); if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE && thread_support->cancelation_requested ) cancel = true; _Thread_Enable_dispatch(); ffc08cd0: 48 00 32 19 bl ffc0bee8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( cancel ) _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED ); } ffc08cd4: 80 01 00 14 lwz r0,20(r1) ffc08cd8: 83 e1 00 0c lwz r31,12(r1) ffc08cdc: 38 21 00 10 addi r1,r1,16 ffc08ce0: 7c 08 03 a6 mtlr r0 ffc08ce4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04f90 : * putk * * Kernel putk (e.g. puts) function requiring minimal infrastrure. */ void putk(const char *s) { ffc04f90: 94 21 ff e8 stwu r1,-24(r1) ffc04f94: 7c 08 02 a6 mflr r0 ffc04f98: 93 a1 00 0c stw r29,12(r1) ffc04f9c: 3f a0 00 00 lis r29,0 ffc04fa0: 93 e1 00 14 stw r31,20(r1) ffc04fa4: 7c 7f 1b 78 mr r31,r3 ffc04fa8: 90 01 00 1c stw r0,28(r1) ffc04fac: 93 c1 00 10 stw r30,16(r1) const char *p = s; for (p=s ; *p ; p++ ) ffc04fb0: 88 63 00 00 lbz r3,0(r3) ffc04fb4: 2f 83 00 00 cmpwi cr7,r3,0 ffc04fb8: 41 9e 00 20 beq- cr7,ffc04fd8 <== NEVER TAKEN ffc04fbc: 3b dd 26 9c addi r30,r29,9884 BSP_output_char(*p); ffc04fc0: 80 1e 00 00 lwz r0,0(r30) ffc04fc4: 7c 09 03 a6 mtctr r0 ffc04fc8: 4e 80 04 21 bctrl <== ALWAYS TAKEN */ void putk(const char *s) { const char *p = s; for (p=s ; *p ; p++ ) ffc04fcc: 8c 7f 00 01 lbzu r3,1(r31) ffc04fd0: 2f 83 00 00 cmpwi cr7,r3,0 ffc04fd4: 40 9e ff ec bne+ cr7,ffc04fc0 BSP_output_char(*p); BSP_output_char('\n'); ffc04fd8: 80 1d 26 9c lwz r0,9884(r29) ffc04fdc: 38 60 00 0a li r3,10 ffc04fe0: 7c 09 03 a6 mtctr r0 ffc04fe4: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc04fe8: 80 01 00 1c lwz r0,28(r1) ffc04fec: 83 a1 00 0c lwz r29,12(r1) ffc04ff0: 7c 08 03 a6 mtlr r0 ffc04ff4: 83 c1 00 10 lwz r30,16(r1) ffc04ff8: 83 e1 00 14 lwz r31,20(r1) ffc04ffc: 38 21 00 18 addi r1,r1,24 <== ALWAYS TAKEN ffc05000: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e1bc : ssize_t read( int fd, void *buffer, size_t count ) { ffc1e1bc: 94 21 ff f0 stwu r1,-16(r1) ffc1e1c0: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e1c4: 3d 20 00 00 lis r9,0 ssize_t read( int fd, void *buffer, size_t count ) { ffc1e1c8: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e1cc: 80 09 26 8c lwz r0,9868(r9) ssize_t read( int fd, void *buffer, size_t count ) { ffc1e1d0: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e1d4: 7f 83 00 40 cmplw cr7,r3,r0 ffc1e1d8: 40 9c 00 94 bge- cr7,ffc1e26c <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1e1dc: 3d 60 00 00 lis r11,0 ffc1e1e0: 83 eb 27 4c lwz r31,10060(r11) ffc1e1e4: 1c 63 00 48 mulli r3,r3,72 ffc1e1e8: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1e1ec: 81 7f 00 18 lwz r11,24(r31) ffc1e1f0: 71 6a 01 00 andi. r10,r11,256 ffc1e1f4: 41 82 00 78 beq- ffc1e26c rtems_libio_check_buffer( buffer ); ffc1e1f8: 2f 84 00 00 cmpwi cr7,r4,0 ffc1e1fc: 41 9e 00 84 beq- cr7,ffc1e280 <== NEVER TAKEN rtems_libio_check_count( count ); ffc1e200: 2f 85 00 00 cmpwi cr7,r5,0 ffc1e204: 38 60 00 00 li r3,0 ffc1e208: 41 9e 00 50 beq- cr7,ffc1e258 <== NEVER TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc1e20c: 71 60 00 02 andi. r0,r11,2 ffc1e210: 41 82 00 70 beq- ffc1e280 <== NEVER TAKEN /* * Now process the read(). */ if ( !iop->handlers->read_h ) ffc1e214: 81 3f 00 40 lwz r9,64(r31) ffc1e218: 80 09 00 08 lwz r0,8(r9) ffc1e21c: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e220: 41 9e 00 74 beq- cr7,ffc1e294 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); ffc1e224: 7f e3 fb 78 mr r3,r31 ffc1e228: 7c 09 03 a6 mtctr r0 ffc1e22c: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( rc > 0 ) ffc1e230: 2c 03 00 00 cmpwi r3,0 ffc1e234: 40 81 00 24 ble- ffc1e258 iop->offset += rc; ffc1e238: 80 ff 00 10 lwz r7,16(r31) ffc1e23c: 7c 6a 1b 78 mr r10,r3 ffc1e240: 81 1f 00 14 lwz r8,20(r31) ffc1e244: 7c 69 fe 70 srawi r9,r3,31 ffc1e248: 7d 88 50 14 addc r12,r8,r10 ffc1e24c: 7d 67 49 14 adde r11,r7,r9 ffc1e250: 91 7f 00 10 stw r11,16(r31) ffc1e254: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1e258: 80 01 00 14 lwz r0,20(r1) ffc1e25c: 83 e1 00 0c lwz r31,12(r1) ffc1e260: 38 21 00 10 addi r1,r1,16 ffc1e264: 7c 08 03 a6 mtlr r0 ffc1e268: 4e 80 00 20 blr <== ALWAYS TAKEN ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); ffc1e26c: 4b ff 51 0d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc1e270: 38 00 00 09 li r0,9 ffc1e274: 90 03 00 00 stw r0,0(r3) ffc1e278: 38 60 ff ff li r3,-1 ffc1e27c: 4b ff ff dc b ffc1e258 <== ALWAYS TAKEN rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc1e280: 4b ff 50 f9 bl ffc13378 <__errno> <== NOT EXECUTED ffc1e284: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1e288: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e28c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e290: 4b ff ff c8 b ffc1e258 <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1e294: 4b ff 50 e5 bl ffc13378 <__errno> <== NOT EXECUTED ffc1e298: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1e29c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e2a0: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e2a4: 4b ff ff b4 b ffc1e258 <== NOT EXECUTED ffc30c64 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc30c64: 94 21 ff c8 stwu r1,-56(r1) ffc30c68: 7c 08 02 a6 mflr r0 ffc30c6c: 93 a1 00 2c stw r29,44(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc30c70: 7c 9d 23 79 mr. r29,r4 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { ffc30c74: 93 81 00 28 stw r28,40(r1) ffc30c78: 7c 7c 1b 78 mr r28,r3 ffc30c7c: 93 c1 00 30 stw r30,48(r1) ffc30c80: 7c be 2b 78 mr r30,r5 ffc30c84: 90 01 00 3c stw r0,60(r1) ffc30c88: 93 e1 00 34 stw r31,52(r1) rtems_filesystem_location_info_t loc; int result; if (!buf) ffc30c8c: 41 82 00 c4 beq- ffc30d50 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), ffc30c90: 48 02 55 a9 bl ffc56238 <== ALWAYS TAKEN ffc30c94: 3b e1 00 08 addi r31,r1,8 ffc30c98: 7c 64 1b 78 mr r4,r3 ffc30c9c: 38 a0 00 00 li r5,0 ffc30ca0: 7f 83 e3 78 mr r3,r28 ffc30ca4: 7f e6 fb 78 mr r6,r31 ffc30ca8: 38 e0 00 00 li r7,0 ffc30cac: 4b fd 80 69 bl ffc08d14 <== ALWAYS TAKEN 0, &loc, false ); if ( result != 0 ) ffc30cb0: 3b 80 ff ff li r28,-1 ffc30cb4: 2f 83 00 00 cmpwi cr7,r3,0 ffc30cb8: 40 9e 00 74 bne- cr7,ffc30d2c <== NEVER TAKEN return -1; if ( !loc.ops->node_type_h ){ ffc30cbc: 81 21 00 14 lwz r9,20(r1) ffc30cc0: 80 09 00 10 lwz r0,16(r9) ffc30cc4: 2f 80 00 00 cmpwi cr7,r0,0 ffc30cc8: 41 9e 00 f4 beq- cr7,ffc30dbc <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ ffc30ccc: 7f e3 fb 78 mr r3,r31 ffc30cd0: 7c 09 03 a6 mtctr r0 ffc30cd4: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc30cd8: 2f 83 00 04 cmpwi cr7,r3,4 ffc30cdc: 40 9e 00 a8 bne- cr7,ffc30d84 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ ffc30ce0: 81 21 00 14 lwz r9,20(r1) ffc30ce4: 80 09 00 3c lwz r0,60(r9) ffc30ce8: 2f 80 00 00 cmpwi cr7,r0,0 ffc30cec: 41 9e 00 d0 beq- cr7,ffc30dbc <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); ffc30cf0: 7f a4 eb 78 mr r4,r29 ffc30cf4: 7c 09 03 a6 mtctr r0 ffc30cf8: 7f c5 f3 78 mr r5,r30 ffc30cfc: 7f e3 fb 78 mr r3,r31 ffc30d00: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc30d04: 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 ); ffc30d08: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc30d0c: 2f 89 00 00 cmpwi cr7,r9,0 ffc30d10: 41 9e 00 1c beq- cr7,ffc30d2c <== NEVER TAKEN ffc30d14: 80 09 00 1c lwz r0,28(r9) ffc30d18: 2f 80 00 00 cmpwi cr7,r0,0 ffc30d1c: 41 9e 00 10 beq- cr7,ffc30d2c <== NEVER TAKEN ffc30d20: 7f e3 fb 78 mr r3,r31 ffc30d24: 7c 09 03 a6 mtctr r0 ffc30d28: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc30d2c: 80 01 00 3c lwz r0,60(r1) ffc30d30: 7f 83 e3 78 mr r3,r28 ffc30d34: 83 a1 00 2c lwz r29,44(r1) ffc30d38: 7c 08 03 a6 mtlr r0 ffc30d3c: 83 81 00 28 lwz r28,40(r1) ffc30d40: 83 c1 00 30 lwz r30,48(r1) ffc30d44: 83 e1 00 34 lwz r31,52(r1) ffc30d48: 38 21 00 38 addi r1,r1,56 ffc30d4c: 4e 80 00 20 blr <== ALWAYS TAKEN { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); ffc30d50: 48 01 d7 21 bl ffc4e470 <__errno> <== NOT EXECUTED ffc30d54: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc30d58: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc30d5c: 3b 80 ff ff li r28,-1 <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } ffc30d60: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc30d64: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc30d68: 83 81 00 28 lwz r28,40(r1) <== NOT EXECUTED ffc30d6c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30d70: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc30d74: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc30d78: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc30d7c: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc30d80: 4e 80 00 20 blr <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ rtems_filesystem_freenode( &loc ); ffc30d84: 81 21 00 14 lwz r9,20(r1) ffc30d88: 2f 89 00 00 cmpwi cr7,r9,0 ffc30d8c: 41 9e 00 1c beq- cr7,ffc30da8 <== NEVER TAKEN ffc30d90: 80 09 00 1c lwz r0,28(r9) ffc30d94: 2f 80 00 00 cmpwi cr7,r0,0 ffc30d98: 41 9e 00 10 beq- cr7,ffc30da8 <== NEVER TAKEN ffc30d9c: 7f e3 fb 78 mr r3,r31 ffc30da0: 7c 09 03 a6 mtctr r0 ffc30da4: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc30da8: 48 01 d6 c9 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc30dac: 38 00 00 16 li r0,22 ffc30db0: 90 03 00 00 stw r0,0(r3) ffc30db4: 3b 80 ff ff li r28,-1 ffc30db8: 4b ff ff 74 b ffc30d2c <== ALWAYS TAKEN } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); ffc30dbc: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30dc0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30dc4: 41 9e 00 10 beq- cr7,ffc30dd4 <== NOT EXECUTED ffc30dc8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30dcc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30dd0: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc30dd4: 48 01 d6 9d bl ffc4e470 <__errno> <== NOT EXECUTED ffc30dd8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc30ddc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc30de0: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc30de4: 4b ff ff 48 b ffc30d2c <== NOT EXECUTED ffc06c4c : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc06c4c: 94 21 ff d8 stwu r1,-40(r1) ffc06c50: 7c 08 02 a6 mflr r0 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc06c54: 3d 20 00 00 lis r9,0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc06c58: 90 01 00 2c stw r0,44(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc06c5c: 80 09 26 8c lwz r0,9868(r9) ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc06c60: 93 a1 00 1c stw r29,28(r1) ffc06c64: 7c bd 2b 78 mr r29,r5 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc06c68: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { ffc06c6c: 93 21 00 0c stw r25,12(r1) ffc06c70: 93 41 00 10 stw r26,16(r1) ffc06c74: 93 61 00 14 stw r27,20(r1) ffc06c78: 93 81 00 18 stw r28,24(r1) ffc06c7c: 93 c1 00 20 stw r30,32(r1) ffc06c80: 93 e1 00 24 stw r31,36(r1) int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); ffc06c84: 40 9c 01 4c bge- cr7,ffc06dd0 <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc06c88: 3d 20 00 00 lis r9,0 ffc06c8c: 83 c9 27 50 lwz r30,10064(r9) ffc06c90: 1c 63 00 48 mulli r3,r3,72 ffc06c94: 7f de 1a 14 add r30,r30,r3 rtems_libio_check_is_open( iop ); ffc06c98: 80 1e 00 18 lwz r0,24(r30) ffc06c9c: 70 09 01 00 andi. r9,r0,256 ffc06ca0: 41 82 01 30 beq- ffc06dd0 <== NEVER TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); ffc06ca4: 70 09 00 02 andi. r9,r0,2 ffc06ca8: 41 82 00 e8 beq- ffc06d90 <== NEVER TAKEN /* * Argument validation on IO vector */ if ( !iov ) ffc06cac: 2f 84 00 00 cmpwi cr7,r4,0 ffc06cb0: 41 9e 00 e0 beq- cr7,ffc06d90 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc06cb4: 2f 85 00 00 cmpwi cr7,r5,0 ffc06cb8: 40 9d 00 d8 ble- cr7,ffc06d90 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc06cbc: 2f 85 04 00 cmpwi cr7,r5,1024 ffc06cc0: 41 9d 00 d0 bgt- cr7,ffc06d90 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) ffc06cc4: 81 3e 00 40 lwz r9,64(r30) ffc06cc8: 80 09 00 08 lwz r0,8(r9) ffc06ccc: 2f 80 00 00 cmpwi cr7,r0,0 ffc06cd0: 41 9e 01 14 beq- cr7,ffc06de4 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06cd4: 7c a9 03 a6 mtctr r5 ffc06cd8: 7c 9f 23 78 mr r31,r4 ffc06cdc: 7c 89 23 78 mr r9,r4 ffc06ce0: 39 60 00 00 li r11,0 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) ffc06ce4: 81 49 00 00 lwz r10,0(r9) ffc06ce8: 2f 8a 00 00 cmpwi cr7,r10,0 ffc06cec: 41 9e 00 a4 beq- cr7,ffc06d90 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06cf0: 81 09 00 04 lwz r8,4(r9) * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06cf4: 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 ) ffc06cf8: 2f 88 00 00 cmpwi cr7,r8,0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; ffc06cfc: 7d 4b 42 14 add r10,r11,r8 if ( total < old ) ffc06d00: 7f 0b 50 00 cmpw cr6,r11,r10 * are obvious errors in the iovec. So this extra loop ensures * that we do not do anything if there is an argument error. */ all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06d04: 7d 4b 53 78 mr r11,r10 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) ffc06d08: 41 9e 00 88 beq- cr7,ffc06d90 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) ffc06d0c: 41 99 00 84 bgt- cr6,ffc06d90 * 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++ ) { ffc06d10: 42 00 ff d4 bdnz+ ffc06ce4 ffc06d14: 3b 80 00 00 li r28,0 ffc06d18: 3b 60 00 00 li r27,0 ffc06d1c: 48 00 00 48 b ffc06d64 <== ALWAYS TAKEN bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) return -1; if ( bytes > 0 ) { ffc06d20: 41 82 00 28 beq- ffc06d48 <== ALWAYS TAKEN iop->offset += bytes; ffc06d24: 81 7e 00 10 lwz r11,16(r30) <== NOT EXECUTED ffc06d28: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED ffc06d2c: 81 9e 00 14 lwz r12,20(r30) <== NOT EXECUTED ffc06d30: 7c 79 fe 70 srawi r25,r3,31 <== NOT EXECUTED total += bytes; ffc06d34: 7f 7b 1a 14 add r27,r27,r3 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc06d38: 7d 4c d0 14 addc r10,r12,r26 <== NOT EXECUTED ffc06d3c: 7d 2b c9 14 adde r9,r11,r25 <== NOT EXECUTED ffc06d40: 91 3e 00 10 stw r9,16(r30) <== NOT EXECUTED ffc06d44: 91 5e 00 14 stw r10,20(r30) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) ffc06d48: 80 1f 00 04 lwz r0,4(r31) } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06d4c: 3b ff 00 08 addi r31,r31,8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) ffc06d50: 7f 03 00 00 cmpw cr6,r3,r0 ffc06d54: 40 9a 00 4c bne- cr6,ffc06da0 <== ALWAYS TAKEN } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06d58: 40 9d 00 48 ble- cr7,ffc06da0 <== NOT EXECUTED ffc06d5c: 81 3e 00 40 lwz r9,64(r30) <== NOT EXECUTED ffc06d60: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc06d64: 80 9f 00 00 lwz r4,0(r31) ffc06d68: 7f c3 f3 78 mr r3,r30 ffc06d6c: 80 bf 00 04 lwz r5,4(r31) ffc06d70: 7c 09 03 a6 mtctr r0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06d74: 3b 9c 00 01 addi r28,r28,1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc06d78: 4e 80 04 21 bctrl <== ALWAYS TAKEN } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06d7c: 7f 9d e0 00 cmpw cr7,r29,r28 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) ffc06d80: 2c 03 00 00 cmpwi r3,0 ffc06d84: 40 80 ff 9c bge+ ffc06d20 <== ALWAYS TAKEN } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc06d88: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc06d8c: 48 00 00 14 b ffc06da0 <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc06d90: 48 00 f5 c9 bl ffc16358 <__errno> <== ALWAYS TAKEN ffc06d94: 38 00 00 16 li r0,22 ffc06d98: 90 03 00 00 stw r0,0(r3) ffc06d9c: 3b 60 ff ff li r27,-1 if (bytes != iov[ v ].iov_len) break; } return total; } ffc06da0: 80 01 00 2c lwz r0,44(r1) ffc06da4: 7f 63 db 78 mr r3,r27 ffc06da8: 83 21 00 0c lwz r25,12(r1) ffc06dac: 7c 08 03 a6 mtlr r0 ffc06db0: 83 41 00 10 lwz r26,16(r1) ffc06db4: 83 61 00 14 lwz r27,20(r1) ffc06db8: 83 81 00 18 lwz r28,24(r1) ffc06dbc: 83 a1 00 1c lwz r29,28(r1) ffc06dc0: 83 c1 00 20 lwz r30,32(r1) ffc06dc4: 83 e1 00 24 lwz r31,36(r1) ffc06dc8: 38 21 00 28 addi r1,r1,40 ffc06dcc: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); ffc06dd0: 48 00 f5 89 bl ffc16358 <__errno> <== NOT EXECUTED ffc06dd4: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc06dd8: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc06ddc: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc06de0: 4b ff ff c0 b ffc06da0 <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc06de4: 48 00 f5 75 bl ffc16358 <__errno> <== NOT EXECUTED ffc06de8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc06dec: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc06df0: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc06df4: 4b ff ff ac b ffc06da0 <== NOT EXECUTED ffc1e34c : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1e34c: 94 21 ff d8 stwu r1,-40(r1) ffc1e350: 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())) { ffc1e354: 3d 20 00 00 lis r9,0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1e358: 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())) { ffc1e35c: 80 09 27 d4 lwz r0,10196(r9) { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1e360: 93 c1 00 20 stw r30,32(r1) ffc1e364: 3f c0 00 00 lis r30,0 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { ffc1e368: 2f 80 00 03 cmpwi cr7,r0,3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); ffc1e36c: 3b de 2b 00 addi r30,r30,11008 ffc1e370: 93 a1 00 1c stw r29,28(r1) ffc1e374: 7c 9d 23 78 mr r29,r4 ffc1e378: 81 3e 00 10 lwz r9,16(r30) ffc1e37c: 93 e1 00 24 stw r31,36(r1) ffc1e380: 7c 7f 1b 78 mr r31,r3 ffc1e384: 39 29 00 01 addi r9,r9,1 ffc1e388: 93 81 00 18 stw r28,24(r1) ffc1e38c: 91 3e 00 10 stw r9,16(r30) /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { ffc1e390: 41 9e 00 a0 beq- cr7,ffc1e430 <== ALWAYS TAKEN } /* * Continue with realloc(). */ if ( !ptr ) ffc1e394: 2f 9f 00 00 cmpwi cr7,r31,0 ffc1e398: 41 9e 00 88 beq- cr7,ffc1e420 return malloc( size ); if ( !size ) { ffc1e39c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc1e3a0: 41 9e 00 5c beq- cr7,ffc1e3fc <== NEVER TAKEN free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { ffc1e3a4: 3f 80 00 00 lis r28,0 ffc1e3a8: 80 7c 26 9c lwz r3,9884(r28) ffc1e3ac: 7f e4 fb 78 mr r4,r31 ffc1e3b0: 38 a1 00 08 addi r5,r1,8 ffc1e3b4: 48 00 01 e5 bl ffc1e598 <_Protected_heap_Get_block_size> <== ALWAYS TAKEN ffc1e3b8: 2f 83 00 00 cmpwi cr7,r3,0 ffc1e3bc: 41 9e 00 50 beq- cr7,ffc1e40c #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 ) ) { ffc1e3c0: 80 7c 26 9c lwz r3,9884(r28) ffc1e3c4: 7f e4 fb 78 mr r4,r31 ffc1e3c8: 7f a5 eb 78 mr r5,r29 ffc1e3cc: 48 00 02 31 bl ffc1e5fc <_Protected_heap_Resize_block> <== ALWAYS TAKEN ffc1e3d0: 2f 83 00 00 cmpwi cr7,r3,0 ffc1e3d4: 41 9e 00 8c beq- cr7,ffc1e460 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } ffc1e3d8: 80 01 00 2c lwz r0,44(r1) ffc1e3dc: 7f e3 fb 78 mr r3,r31 ffc1e3e0: 83 81 00 18 lwz r28,24(r1) ffc1e3e4: 7c 08 03 a6 mtlr r0 ffc1e3e8: 83 a1 00 1c lwz r29,28(r1) ffc1e3ec: 83 c1 00 20 lwz r30,32(r1) ffc1e3f0: 83 e1 00 24 lwz r31,36(r1) ffc1e3f4: 38 21 00 28 addi r1,r1,40 ffc1e3f8: 4e 80 00 20 blr <== ALWAYS TAKEN */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); ffc1e3fc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1e400: 4b fe 60 69 bl ffc04468 <== NOT EXECUTED ffc1e404: 3b e0 00 00 li r31,0 <== NOT EXECUTED return (void *) 0; ffc1e408: 4b ff ff d0 b ffc1e3d8 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; ffc1e40c: 4b ff 4f 6d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc1e410: 38 00 00 16 li r0,22 ffc1e414: 90 03 00 00 stw r0,0(r3) ffc1e418: 3b e0 00 00 li r31,0 return (void *) 0; ffc1e41c: 4b ff ff bc b ffc1e3d8 <== ALWAYS TAKEN /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); ffc1e420: 7f a3 eb 78 mr r3,r29 ffc1e424: 4b fe 63 c5 bl ffc047e8 <== ALWAYS TAKEN ffc1e428: 7c 7f 1b 78 mr r31,r3 ffc1e42c: 4b ff ff ac b ffc1e3d8 <== ALWAYS TAKEN /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) ffc1e430: 3d 20 00 00 lis r9,0 ffc1e434: 80 09 27 70 lwz r0,10096(r9) ffc1e438: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e43c: 41 9e 00 0c beq- cr7,ffc1e448 <== ALWAYS TAKEN } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; ffc1e440: 3b e0 00 00 li r31,0 ffc1e444: 4b ff ff 94 b ffc1e3d8 <== ALWAYS TAKEN if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) ffc1e448: 3d 20 00 00 lis r9,0 ffc1e44c: 80 09 27 98 lwz r0,10136(r9) ffc1e450: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc1e454: 41 9e ff 40 beq+ cr7,ffc1e394 <== ALWAYS TAKEN } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; ffc1e458: 3b e0 00 00 li r31,0 <== NOT EXECUTED ffc1e45c: 4b ff ff 7c b ffc1e3d8 <== NOT EXECUTED * There used to be a free on this error case but it is wrong to * free the memory per OpenGroup Single UNIX Specification V2 * and the C Standard. */ new_area = malloc( size ); ffc1e460: 7f a3 eb 78 mr r3,r29 ffc1e464: 4b fe 63 85 bl ffc047e8 <== ALWAYS TAKEN MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc1e468: 81 3e 00 04 lwz r9,4(r30) if ( !new_area ) { ffc1e46c: 7c 7c 1b 79 mr. r28,r3 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ ffc1e470: 38 09 ff ff addi r0,r9,-1 ffc1e474: 90 1e 00 04 stw r0,4(r30) if ( !new_area ) { ffc1e478: 41 a2 ff c8 beq- ffc1e440 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); ffc1e47c: 80 01 00 08 lwz r0,8(r1) ffc1e480: 7f a5 eb 78 mr r5,r29 ffc1e484: 7f 9d 00 40 cmplw cr7,r29,r0 ffc1e488: 40 9d 00 08 ble- cr7,ffc1e490 <== NEVER TAKEN ffc1e48c: 7c 05 03 78 mr r5,r0 ffc1e490: 7f e4 fb 78 mr r4,r31 ffc1e494: 7f 83 e3 78 mr r3,r28 ffc1e498: 4b ff 5a c9 bl ffc13f60 <== ALWAYS TAKEN free( ptr ); ffc1e49c: 7f e3 fb 78 mr r3,r31 ffc1e4a0: 4b fe 5f c9 bl ffc04468 <== ALWAYS TAKEN ffc1e4a4: 7f 9f e3 78 mr r31,r28 return new_area; ffc1e4a8: 4b ff ff 30 b ffc1e3d8 <== ALWAYS TAKEN ffc0a834 : #include int rmdir( const char *pathname ) { ffc0a834: 94 21 ff b8 stwu r1,-72(r1) ffc0a838: 7c 08 02 a6 mflr r0 ffc0a83c: 93 c1 00 40 stw r30,64(r1) ffc0a840: 93 e1 00 44 stw r31,68(r1) ffc0a844: 7c 7f 1b 78 mr r31,r3 ffc0a848: 90 01 00 4c stw r0,76(r1) ffc0a84c: 93 81 00 38 stw r28,56(r1) ffc0a850: 93 a1 00 3c stw r29,60(r1) /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); ffc0a854: 4b ff e3 0d bl ffc08b60 <== ALWAYS TAKEN if ( parentpathlen == 0 ) ffc0a858: 7c 7e 1b 79 mr. r30,r3 ffc0a85c: 40 82 02 c0 bne- ffc0ab1c rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); ffc0a860: 88 1f 00 00 lbz r0,0(r31) ffc0a864: 2f 80 00 2f cmpwi cr7,r0,47 ffc0a868: 41 9e 00 14 beq- cr7,ffc0a87c <== ALWAYS TAKEN ffc0a86c: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc0a870: 41 9e 00 0c beq- cr7,ffc0a87c <== NOT EXECUTED ffc0a874: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0a878: 40 9e 01 68 bne- cr7,ffc0a9e0 <== NOT EXECUTED ffc0a87c: 3d 20 00 00 lis r9,0 ffc0a880: 81 29 35 2c lwz r9,13612(r9) ffc0a884: 3b a0 00 00 li r29,0 ffc0a888: 80 09 00 24 lwz r0,36(r9) ffc0a88c: 81 09 00 18 lwz r8,24(r9) ffc0a890: 81 49 00 1c lwz r10,28(r9) ffc0a894: 81 69 00 20 lwz r11,32(r9) ffc0a898: 91 01 00 08 stw r8,8(r1) ffc0a89c: 91 41 00 0c stw r10,12(r1) ffc0a8a0: 91 61 00 10 stw r11,16(r1) ffc0a8a4: 90 01 00 14 stw r0,20(r1) ffc0a8a8: 80 09 00 28 lwz r0,40(r9) ffc0a8ac: 90 01 00 18 stw r0,24(r1) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc0a8b0: 80 01 00 08 lwz r0,8(r1) name = pathname + parentpathlen; ffc0a8b4: 7f df f2 14 add r30,r31,r30 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc0a8b8: 7f c3 f3 78 mr r3,r30 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc0a8bc: 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 ), ffc0a8c0: 3b e1 00 1c addi r31,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc0a8c4: 80 01 00 0c lwz r0,12(r1) ffc0a8c8: 90 01 00 20 stw r0,32(r1) ffc0a8cc: 80 01 00 10 lwz r0,16(r1) ffc0a8d0: 90 01 00 24 stw r0,36(r1) ffc0a8d4: 80 01 00 14 lwz r0,20(r1) ffc0a8d8: 90 01 00 28 stw r0,40(r1) ffc0a8dc: 80 01 00 18 lwz r0,24(r1) ffc0a8e0: 90 01 00 2c stw r0,44(r1) name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc0a8e4: 48 04 b9 55 bl ffc56238 <== ALWAYS TAKEN ffc0a8e8: 7c 64 1b 78 mr r4,r3 ffc0a8ec: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc0a8f0: 4b ff e2 21 bl ffc08b10 <== ALWAYS TAKEN ffc0a8f4: 7f de 1a 14 add r30,r30,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc0a8f8: 7f c3 f3 78 mr r3,r30 ffc0a8fc: 48 04 b9 3d bl ffc56238 <== ALWAYS TAKEN ffc0a900: 38 a0 00 00 li r5,0 ffc0a904: 7c 64 1b 78 mr r4,r3 ffc0a908: 7f e6 fb 78 mr r6,r31 ffc0a90c: 7f c3 f3 78 mr r3,r30 ffc0a910: 38 e0 00 00 li r7,0 ffc0a914: 4b ff e2 d9 bl ffc08bec <== ALWAYS TAKEN 0, &loc, false ); if ( result != 0 ) { ffc0a918: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a91c: 40 9e 01 60 bne- cr7,ffc0aa7c /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ ffc0a920: 81 21 00 28 lwz r9,40(r1) ffc0a924: 80 09 00 10 lwz r0,16(r9) ffc0a928: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a92c: 41 9e 01 98 beq- cr7,ffc0aac4 <== 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 ){ ffc0a930: 7f e3 fb 78 mr r3,r31 ffc0a934: 7c 09 03 a6 mtctr r0 ffc0a938: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0a93c: 2f 83 00 01 cmpwi cr7,r3,1 ffc0a940: 40 9e 00 d8 bne- cr7,ffc0aa18 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ ffc0a944: 81 21 00 24 lwz r9,36(r1) ffc0a948: 80 09 00 34 lwz r0,52(r9) ffc0a94c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a950: 41 9e 01 68 beq- cr7,ffc0aab8 <== NEVER TAKEN if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); ffc0a954: 3b c1 00 08 addi r30,r1,8 ffc0a958: 7c 09 03 a6 mtctr r0 ffc0a95c: 7f c3 f3 78 mr r3,r30 ffc0a960: 7f e4 fb 78 mr r4,r31 ffc0a964: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc0a968: 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 ); ffc0a96c: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc0a970: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a974: 41 9e 00 1c beq- cr7,ffc0a990 <== NEVER TAKEN ffc0a978: 80 09 00 1c lwz r0,28(r9) ffc0a97c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a980: 41 9e 00 10 beq- cr7,ffc0a990 <== NEVER TAKEN ffc0a984: 7f e3 fb 78 mr r3,r31 ffc0a988: 7c 09 03 a6 mtctr r0 ffc0a98c: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( free_parentloc ) ffc0a990: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0a994: 41 9e 00 28 beq- cr7,ffc0a9bc rtems_filesystem_freenode( &parentloc ); ffc0a998: 81 21 00 14 lwz r9,20(r1) ffc0a99c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0a9a0: 41 9e 00 1c beq- cr7,ffc0a9bc <== NEVER TAKEN ffc0a9a4: 80 09 00 1c lwz r0,28(r9) ffc0a9a8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0a9ac: 41 9e 00 10 beq- cr7,ffc0a9bc <== NEVER TAKEN ffc0a9b0: 7f c3 f3 78 mr r3,r30 ffc0a9b4: 7c 09 03 a6 mtctr r0 ffc0a9b8: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc0a9bc: 80 01 00 4c lwz r0,76(r1) ffc0a9c0: 7f 83 e3 78 mr r3,r28 ffc0a9c4: 83 a1 00 3c lwz r29,60(r1) ffc0a9c8: 7c 08 03 a6 mtlr r0 ffc0a9cc: 83 81 00 38 lwz r28,56(r1) ffc0a9d0: 83 c1 00 40 lwz r30,64(r1) ffc0a9d4: 83 e1 00 44 lwz r31,68(r1) ffc0a9d8: 38 21 00 48 addi r1,r1,72 ffc0a9dc: 4e 80 00 20 blr <== ALWAYS TAKEN */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); ffc0a9e0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0a9e4: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc0a9e8: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc0a9ec: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc0a9f0: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc0a9f4: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc0a9f8: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc0a9fc: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc0aa00: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc0aa04: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc0aa08: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc0aa0c: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc0aa10: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED ffc0aa14: 4b ff fe 9c b ffc0a8b0 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ rtems_filesystem_freenode( &loc ); ffc0aa18: 81 21 00 28 lwz r9,40(r1) ffc0aa1c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0aa20: 41 9e 00 1c beq- cr7,ffc0aa3c <== NEVER TAKEN ffc0aa24: 80 09 00 1c lwz r0,28(r9) ffc0aa28: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aa2c: 41 9e 00 10 beq- cr7,ffc0aa3c <== NEVER TAKEN ffc0aa30: 7f e3 fb 78 mr r3,r31 ffc0aa34: 7c 09 03 a6 mtctr r0 ffc0aa38: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( free_parentloc ) ffc0aa3c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0aa40: 41 9e 00 28 beq- cr7,ffc0aa68 <== NEVER TAKEN rtems_filesystem_freenode( &parentloc ); ffc0aa44: 81 21 00 14 lwz r9,20(r1) ffc0aa48: 2f 89 00 00 cmpwi cr7,r9,0 ffc0aa4c: 41 9e 00 1c beq- cr7,ffc0aa68 <== NEVER TAKEN ffc0aa50: 80 09 00 1c lwz r0,28(r9) ffc0aa54: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aa58: 41 9e 00 10 beq- cr7,ffc0aa68 <== NEVER TAKEN ffc0aa5c: 38 61 00 08 addi r3,r1,8 ffc0aa60: 7c 09 03 a6 mtctr r0 ffc0aa64: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTDIR ); ffc0aa68: 48 04 3a 09 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc0aa6c: 38 00 00 14 li r0,20 ffc0aa70: 90 03 00 00 stw r0,0(r3) ffc0aa74: 3b 80 ff ff li r28,-1 ffc0aa78: 4b ff ff 44 b ffc0a9bc <== ALWAYS TAKEN name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) ffc0aa7c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc0aa80: 40 9e 00 0c bne- cr7,ffc0aa8c <== NEVER TAKEN result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); ffc0aa84: 3b 80 ff ff li r28,-1 ffc0aa88: 4b ff ff 34 b ffc0a9bc <== ALWAYS TAKEN result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); ffc0aa8c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc0aa90: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0aa94: 41 9e ff f0 beq+ cr7,ffc0aa84 <== NOT EXECUTED ffc0aa98: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0aa9c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0aaa0: 41 9e ff e4 beq+ cr7,ffc0aa84 <== NOT EXECUTED ffc0aaa4: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0aaa8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0aaac: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc0aab0: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0aab4: 4b ff ff 08 b ffc0a9bc <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); ffc0aab8: 81 21 00 28 lwz r9,40(r1) <== NOT EXECUTED ffc0aabc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0aac0: 41 9e 00 1c beq- cr7,ffc0aadc <== NOT EXECUTED ffc0aac4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0aac8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0aacc: 41 9e 00 10 beq- cr7,ffc0aadc <== NOT EXECUTED ffc0aad0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0aad4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0aad8: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc0aadc: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc0aae0: 41 9e 00 28 beq- cr7,ffc0ab08 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc0aae4: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc0aae8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0aaec: 41 9e 00 1c beq- cr7,ffc0ab08 <== NOT EXECUTED ffc0aaf0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0aaf4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0aaf8: 41 9e 00 10 beq- cr7,ffc0ab08 <== NOT EXECUTED ffc0aafc: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc0ab00: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0ab04: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0ab08: 48 04 39 69 bl ffc4e470 <__errno> <== NOT EXECUTED ffc0ab0c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0ab10: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ab14: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc0ab18: 4b ff fe a4 b ffc0a9bc <== NOT EXECUTED parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, ffc0ab1c: 7f e3 fb 78 mr r3,r31 ffc0ab20: 7f c4 f3 78 mr r4,r30 ffc0ab24: 38 a0 00 02 li r5,2 ffc0ab28: 38 c1 00 08 addi r6,r1,8 ffc0ab2c: 38 e0 00 00 li r7,0 ffc0ab30: 4b ff e1 e5 bl ffc08d14 <== ALWAYS TAKEN RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc0ab34: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ab38: 40 be ff 4c bne- cr7,ffc0aa84 <== NEVER TAKEN ffc0ab3c: 3b a0 00 01 li r29,1 ffc0ab40: 4b ff fd 70 b ffc0a8b0 <== ALWAYS TAKEN ffc115b4 : uint32_t rtems_assoc_local_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc115b4: 94 21 ff f8 stwu r1,-8(r1) ffc115b8: 7c 08 02 a6 mflr r0 ffc115bc: 90 01 00 0c stw r0,12(r1) const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_remote(ap, remote_value); ffc115c0: 48 00 00 25 bl ffc115e4 <== ALWAYS TAKEN if (nap) ffc115c4: 7c 69 1b 79 mr. r9,r3 ffc115c8: 38 60 00 00 li r3,0 ffc115cc: 41 82 00 08 beq- ffc115d4 return nap->local_value; ffc115d0: 80 69 00 04 lwz r3,4(r9) <== ALWAYS TAKEN return 0; } ffc115d4: 80 01 00 0c lwz r0,12(r1) ffc115d8: 38 21 00 08 addi r1,r1,8 ffc115dc: 7c 08 03 a6 mtlr r0 ffc115e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1151c : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc1151c: 94 21 ff e0 stwu r1,-32(r1) ffc11520: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc11524: 93 61 00 0c stw r27,12(r1) ffc11528: 7c 7b 1b 78 mr r27,r3 ffc1152c: 93 81 00 10 stw r28,16(r1) ffc11530: 3b 80 00 00 li r28,0 <== ALWAYS TAKEN ffc11534: 93 a1 00 14 stw r29,20(r1) ffc11538: 7c 9d 23 78 mr r29,r4 <== ALWAYS TAKEN ffc1153c: 93 c1 00 18 stw r30,24(r1) ffc11540: 3b c0 00 00 li r30,0 ffc11544: 93 e1 00 1c stw r31,28(r1) ffc11548: 3b e0 00 01 li r31,1 ffc1154c: 90 01 00 24 stw r0,36(r1) ffc11550: 48 00 00 14 b ffc11564 <== ALWAYS TAKEN uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { ffc11554: 2f 9e 00 1f cmpwi cr7,r30,31 <== ALWAYS TAKEN ffc11558: 57 ff 08 3c rlwinm r31,r31,1,0,30 ffc1155c: 3b de 00 01 addi r30,r30,1 ffc11560: 41 9e 00 2c beq- cr7,ffc1158c if (b & remote_value) ffc11564: 7f e0 e8 39 and. r0,r31,r29 ffc11568: 41 82 ff ec beq+ ffc11554 local_value |= rtems_assoc_local_by_remote(ap, b); ffc1156c: 7f e4 fb 78 mr r4,r31 ffc11570: 7f 63 db 78 mr r3,r27 ffc11574: 48 00 00 41 bl ffc115b4 <== ALWAYS TAKEN ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { ffc11578: 2f 9e 00 1f cmpwi cr7,r30,31 if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); ffc1157c: 7f 9c 1b 78 or r28,r28,r3 ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { ffc11580: 57 ff 08 3c rlwinm r31,r31,1,0,30 ffc11584: 3b de 00 01 addi r30,r30,1 ffc11588: 40 9e ff dc bne+ cr7,ffc11564 <== ALWAYS TAKEN if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } ffc1158c: 80 01 00 24 lwz r0,36(r1) ffc11590: 7f 83 e3 78 mr r3,r28 <== ALWAYS TAKEN ffc11594: 83 61 00 0c lwz r27,12(r1) ffc11598: 7c 08 03 a6 mtlr r0 ffc1159c: 83 81 00 10 lwz r28,16(r1) ffc115a0: 83 a1 00 14 lwz r29,20(r1) ffc115a4: 83 c1 00 18 lwz r30,24(r1) <== ALWAYS TAKEN ffc115a8: 83 e1 00 1c lwz r31,28(r1) ffc115ac: 38 21 00 20 addi r1,r1,32 ffc115b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1ae68 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { ffc1ae68: 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; } ffc1ae6c: 38 63 22 50 addi r3,r3,8784 <== NOT EXECUTED ffc1ae70: 4e 80 00 20 blr <== NOT EXECUTED ffc1668c : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc1668c: 94 21 ff f0 stwu r1,-16(r1) ffc16690: 7c 08 02 a6 mflr r0 ffc16694: 93 e1 00 0c stw r31,12(r1) ffc16698: 7c 9f 23 78 mr r31,r4 ffc1669c: 90 01 00 14 stw r0,20(r1) const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc166a0: 48 00 00 41 bl ffc166e0 <== ALWAYS TAKEN if (nap) ffc166a4: 2c 03 00 00 cmpwi r3,0 ffc166a8: 41 82 00 1c beq- ffc166c4 <== NEVER TAKEN return nap->name; return rtems_assoc_name_bad(local_value); } ffc166ac: 80 01 00 14 lwz r0,20(r1) { const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; ffc166b0: 80 63 00 00 lwz r3,0(r3) return rtems_assoc_name_bad(local_value); } ffc166b4: 7c 08 03 a6 mtlr r0 ffc166b8: 83 e1 00 0c lwz r31,12(r1) ffc166bc: 38 21 00 10 addi r1,r1,16 ffc166c0: 4e 80 00 20 blr <== ALWAYS TAKEN nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); ffc166c4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc166c8: 48 00 47 a1 bl ffc1ae68 <== NOT EXECUTED } ffc166cc: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc166d0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc166d4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc166d8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc166dc: 4e 80 00 20 blr <== NOT EXECUTED ffc132a0 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc132a0: 94 21 ff f0 stwu r1,-16(r1) ffc132a4: 7c 08 02 a6 mflr r0 ffc132a8: 90 01 00 14 stw r0,20(r1) ffc132ac: 93 e1 00 0c stw r31,12(r1) ffc132b0: 7c 7f 1b 78 mr r31,r3 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc132b4: 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 ) { ffc132b8: 93 c1 00 08 stw r30,8(r1) ffc132bc: 7c 9e 23 78 mr r30,r4 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc132c0: 2f 83 00 00 cmpwi cr7,r3,0 ffc132c4: 41 9e 00 94 beq- cr7,ffc13358 <== NEVER TAKEN ffc132c8: 3c 80 ff c2 lis r4,-62 ffc132cc: 38 84 fd 20 addi r4,r4,-736 ffc132d0: 48 00 12 85 bl ffc14554 <== ALWAYS TAKEN ffc132d4: 39 20 00 00 li r9,0 ffc132d8: 2f 83 00 00 cmpwi cr7,r3,0 ffc132dc: 40 9e 00 34 bne- cr7,ffc13310 <== ALWAYS TAKEN default_ap = ap++; for ( ; ap->name; ap++) ffc132e0: 81 3f 00 0c lwz r9,12(r31) <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; ffc132e4: 38 1f 00 0c addi r0,r31,12 <== NOT EXECUTED for ( ; ap->name; ap++) ffc132e8: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc132ec: 41 9e 00 30 beq- cr7,ffc1331c <== NOT EXECUTED ffc132f0: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc132f4: 7c 1f 03 78 mr r31,r0 <== NOT EXECUTED if (ap->local_value == local_value) ffc132f8: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc132fc: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED ffc13300: 41 9e 00 1c beq- cr7,ffc1331c <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc13304: 84 1f 00 0c lwzu r0,12(r31) ffc13308: 2f 80 00 00 cmpwi cr7,r0,0 ffc1330c: 41 9e 00 2c beq- cr7,ffc13338 if (ap->local_value == local_value) ffc13310: 80 1f 00 04 lwz r0,4(r31) ffc13314: 7f 80 f0 00 cmpw cr7,r0,r30 ffc13318: 40 9e ff ec bne+ cr7,ffc13304 return ap; return default_ap; } ffc1331c: 80 01 00 14 lwz r0,20(r1) ffc13320: 7f e3 fb 78 mr r3,r31 ffc13324: 83 c1 00 08 lwz r30,8(r1) ffc13328: 7c 08 03 a6 mtlr r0 ffc1332c: 83 e1 00 0c lwz r31,12(r1) ffc13330: 38 21 00 10 addi r1,r1,16 ffc13334: 4e 80 00 20 blr <== ALWAYS TAKEN ffc13338: 80 01 00 14 lwz r0,20(r1) const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc1333c: 7d 3f 4b 78 mr r31,r9 if (ap->local_value == local_value) return ap; return default_ap; } ffc13340: 7f e3 fb 78 mr r3,r31 ffc13344: 83 c1 00 08 lwz r30,8(r1) ffc13348: 7c 08 03 a6 mtlr r0 ffc1334c: 83 e1 00 0c lwz r31,12(r1) ffc13350: 38 21 00 10 addi r1,r1,16 ffc13354: 4e 80 00 20 blr <== ALWAYS TAKEN ffc13358: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc1335c: 3b e0 00 00 li r31,0 <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->local_value == local_value) return ap; return default_ap; } ffc13360: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc13364: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc13368: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc1336c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc13370: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc13374: 4e 80 00 20 blr <== NOT EXECUTED ffc115e4 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc115e4: 94 21 ff f0 stwu r1,-16(r1) ffc115e8: 7c 08 02 a6 mflr r0 ffc115ec: 90 01 00 14 stw r0,20(r1) ffc115f0: 93 e1 00 0c stw r31,12(r1) <== ALWAYS TAKEN ffc115f4: 7c 7f 1b 78 mr r31,r3 <== ALWAYS TAKEN const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc115f8: 80 63 00 00 lwz r3,0(r3) <== ALWAYS TAKEN const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { ffc115fc: 93 c1 00 08 stw r30,8(r1) ffc11600: 7c 9e 23 78 mr r30,r4 <== ALWAYS TAKEN const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc11604: 2f 83 00 00 cmpwi cr7,r3,0 ffc11608: 41 9e 00 94 beq- cr7,ffc1169c <== NEVER TAKEN ffc1160c: 3c 80 ff c2 lis r4,-62 ffc11610: 38 84 fd 20 addi r4,r4,-736 ffc11614: 48 00 2f 41 bl ffc14554 <== ALWAYS TAKEN ffc11618: 39 20 00 00 li r9,0 ffc1161c: 2f 83 00 00 cmpwi cr7,r3,0 ffc11620: 40 9e 00 34 bne- cr7,ffc11654 <== ALWAYS TAKEN default_ap = ap++; for ( ; ap->name; ap++) ffc11624: 81 3f 00 0c lwz r9,12(r31) <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; ffc11628: 38 1f 00 0c addi r0,r31,12 <== NOT EXECUTED for ( ; ap->name; ap++) ffc1162c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc11630: 41 9e 00 30 beq- cr7,ffc11660 <== NOT EXECUTED ffc11634: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc11638: 7c 1f 03 78 mr r31,r0 <== NOT EXECUTED if (ap->remote_value == remote_value) ffc1163c: 80 1f 00 08 lwz r0,8(r31) <== NOT EXECUTED ffc11640: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED ffc11644: 41 9e 00 1c beq- cr7,ffc11660 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc11648: 84 1f 00 0c lwzu r0,12(r31) ffc1164c: 2f 80 00 00 cmpwi cr7,r0,0 ffc11650: 41 9e 00 2c beq- cr7,ffc1167c if (ap->remote_value == remote_value) ffc11654: 80 1f 00 08 lwz r0,8(r31) ffc11658: 7f 80 f0 00 cmpw cr7,r0,r30 <== ALWAYS TAKEN ffc1165c: 40 9e ff ec bne+ cr7,ffc11648 return ap; return default_ap; } ffc11660: 80 01 00 14 lwz r0,20(r1) ffc11664: 7f e3 fb 78 mr r3,r31 ffc11668: 83 c1 00 08 lwz r30,8(r1) <== ALWAYS TAKEN ffc1166c: 7c 08 03 a6 mtlr r0 ffc11670: 83 e1 00 0c lwz r31,12(r1) ffc11674: 38 21 00 10 addi r1,r1,16 ffc11678: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1167c: 80 01 00 14 lwz r0,20(r1) const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) ffc11680: 7d 3f 4b 78 mr r31,r9 if (ap->remote_value == remote_value) return ap; return default_ap; } ffc11684: 7f e3 fb 78 mr r3,r31 ffc11688: 83 c1 00 08 lwz r30,8(r1) ffc1168c: 7c 08 03 a6 mtlr r0 ffc11690: 83 e1 00 0c lwz r31,12(r1) ffc11694: 38 21 00 10 addi r1,r1,16 ffc11698: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1169c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) ffc116a0: 3b e0 00 00 li r31,0 <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->remote_value == remote_value) return ap; return default_ap; } ffc116a4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc116a8: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc116ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc116b0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc116b4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc116b8: 4e 80 00 20 blr <== NOT EXECUTED ffc128b0 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { ffc128b0: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc128b4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc128b8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); ffc128bc: 48 00 09 e5 bl ffc132a0 <== NOT EXECUTED if (nap) ffc128c0: 7c 69 1b 79 mr. r9,r3 <== NOT EXECUTED ffc128c4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc128c8: 41 82 00 08 beq- ffc128d0 <== NOT EXECUTED return nap->remote_value; ffc128cc: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED return 0; } ffc128d0: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc128d4: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc128d8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc128dc: 4e 80 00 20 blr <== NOT EXECUTED ffc11c98 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { ffc11c98: 94 21 ff d0 stwu r1,-48(r1) ffc11c9c: 7c 08 02 a6 mflr r0 ffc11ca0: 93 e1 00 2c stw r31,44(r1) Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) ffc11ca4: 7c 7f 1b 79 mr. r31,r3 ffc11ca8: 38 60 00 03 li r3,3 rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { ffc11cac: 93 a1 00 24 stw r29,36(r1) ffc11cb0: 7c dd 33 78 mr r29,r6 ffc11cb4: 90 01 00 34 stw r0,52(r1) ffc11cb8: 93 81 00 20 stw r28,32(r1) ffc11cbc: 93 c1 00 28 stw r30,40(r1) Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) ffc11cc0: 41 82 00 90 beq- ffc11d50 return RTEMS_INVALID_NAME; if ( !id ) ffc11cc4: 2f 86 00 00 cmpwi cr7,r6,0 ffc11cc8: 38 60 00 09 li r3,9 ffc11ccc: 41 9e 00 84 beq- cr7,ffc11d50 return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { ffc11cd0: 70 80 00 10 andi. r0,r4,16 ffc11cd4: 41 82 00 9c beq- ffc11d70 the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) ffc11cd8: 2f 85 00 00 cmpwi cr7,r5,0 ffc11cdc: 38 60 00 0a li r3,10 ffc11ce0: 41 9e 00 70 beq- cr7,ffc11d50 ffc11ce4: 3d 20 00 00 lis r9,0 return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; the_attributes.maximum_count = maximum_waiters; ffc11ce8: 90 a1 00 0c stw r5,12(r1) if ( !id ) return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; ffc11cec: 38 00 00 00 li r0,0 ffc11cf0: 81 69 27 70 lwz r11,10096(r9) ffc11cf4: 90 01 00 08 stw r0,8(r1) ffc11cf8: 38 0b 00 01 addi r0,r11,1 ffc11cfc: 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 ); ffc11d00: 3f 80 00 00 lis r28,0 ffc11d04: 90 81 00 18 stw r4,24(r1) ffc11d08: 3b 9c 35 4c addi r28,r28,13644 ffc11d0c: 7f 83 e3 78 mr r3,r28 ffc11d10: 4b ff 81 39 bl ffc09e48 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { ffc11d14: 80 81 00 18 lwz r4,24(r1) ffc11d18: 7c 7e 1b 79 mr. r30,r3 ffc11d1c: 41 82 00 90 beq- ffc11dac <== NEVER TAKEN _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; ffc11d20: 90 9e 00 10 stw r4,16(r30) _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); ffc11d24: 38 7e 00 14 addi r3,r30,20 ffc11d28: 38 81 00 08 addi r4,r1,8 ffc11d2c: 48 00 06 1d bl ffc12348 <_CORE_barrier_Initialize> <== ALWAYS TAKEN ffc11d30: 80 1e 00 08 lwz r0,8(r30) ffc11d34: 81 7c 00 1c lwz r11,28(r28) ffc11d38: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc11d3c: 93 fe 00 0c stw r31,12(r30) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc11d40: 7f cb 49 2e stwx r30,r11,r9 &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; ffc11d44: 90 1d 00 00 stw r0,0(r29) _Thread_Enable_dispatch(); ffc11d48: 4b ff 92 cd bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc11d4c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc11d50: 80 01 00 34 lwz r0,52(r1) ffc11d54: 83 81 00 20 lwz r28,32(r1) ffc11d58: 7c 08 03 a6 mtlr r0 ffc11d5c: 83 a1 00 24 lwz r29,36(r1) ffc11d60: 83 c1 00 28 lwz r30,40(r1) ffc11d64: 83 e1 00 2c lwz r31,44(r1) ffc11d68: 38 21 00 30 addi r1,r1,48 ffc11d6c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11d70: 3d 20 00 00 lis r9,0 the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; the_attributes.maximum_count = maximum_waiters; ffc11d74: 90 a1 00 0c stw r5,12(r1) if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) return RTEMS_INVALID_NUMBER; } else the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE; ffc11d78: 38 00 00 01 li r0,1 ffc11d7c: 81 69 27 70 lwz r11,10096(r9) ffc11d80: 90 01 00 08 stw r0,8(r1) ffc11d84: 38 0b 00 01 addi r0,r11,1 ffc11d88: 90 09 27 70 stw r0,10096(r9) ffc11d8c: 3f 80 00 00 lis r28,0 ffc11d90: 90 81 00 18 stw r4,24(r1) ffc11d94: 3b 9c 35 4c addi r28,r28,13644 ffc11d98: 7f 83 e3 78 mr r3,r28 ffc11d9c: 4b ff 80 ad bl ffc09e48 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { ffc11da0: 80 81 00 18 lwz r4,24(r1) ffc11da4: 7c 7e 1b 79 mr. r30,r3 ffc11da8: 40 82 ff 78 bne+ ffc11d20 _Thread_Enable_dispatch(); ffc11dac: 4b ff 92 69 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } ffc11db0: 80 01 00 34 lwz r0,52(r1) _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); ffc11db4: 38 60 00 05 li r3,5 *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } ffc11db8: 83 81 00 20 lwz r28,32(r1) ffc11dbc: 7c 08 03 a6 mtlr r0 ffc11dc0: 83 a1 00 24 lwz r29,36(r1) ffc11dc4: 83 c1 00 28 lwz r30,40(r1) ffc11dc8: 83 e1 00 2c lwz r31,44(r1) ffc11dcc: 38 21 00 30 addi r1,r1,48 ffc11dd0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11dd4 : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { ffc11dd4: 94 21 ff e0 stwu r1,-32(r1) ffc11dd8: 7c 08 02 a6 mflr r0 ffc11ddc: 7c 64 1b 78 mr r4,r3 ffc11de0: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) ffc11de4: 3f e0 00 00 lis r31,0 ffc11de8: 3b ff 35 4c addi r31,r31,13644 ffc11dec: 7f e3 fb 78 mr r3,r31 ffc11df0: 90 01 00 24 stw r0,36(r1) ffc11df4: 38 a1 00 08 addi r5,r1,8 ffc11df8: 93 c1 00 18 stw r30,24(r1) ffc11dfc: 4b ff 86 4d bl ffc0a448 <_Objects_Get> <== ALWAYS TAKEN ffc11e00: 7c 7e 1b 78 mr r30,r3 Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { ffc11e04: 80 01 00 08 lwz r0,8(r1) ffc11e08: 38 60 00 04 li r3,4 ffc11e0c: 2f 80 00 00 cmpwi cr7,r0,0 ffc11e10: 40 9e 00 34 bne- cr7,ffc11e44 case OBJECTS_LOCAL: _CORE_barrier_Flush( ffc11e14: 38 a0 00 02 li r5,2 ffc11e18: 38 7e 00 14 addi r3,r30,20 ffc11e1c: 38 80 00 00 li r4,0 ffc11e20: 4b ff 9b 79 bl ffc0b998 <_Thread_queue_Flush> <== ALWAYS TAKEN &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); ffc11e24: 7f e3 fb 78 mr r3,r31 ffc11e28: 7f c4 f3 78 mr r4,r30 ffc11e2c: 4b ff 80 e5 bl ffc09f10 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); ffc11e30: 7f e3 fb 78 mr r3,r31 ffc11e34: 7f c4 f3 78 mr r4,r30 ffc11e38: 4b ff 84 31 bl ffc0a268 <_Objects_Free> <== ALWAYS TAKEN _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); ffc11e3c: 4b ff 91 d9 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc11e40: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc11e44: 80 01 00 24 lwz r0,36(r1) ffc11e48: 83 c1 00 18 lwz r30,24(r1) ffc11e4c: 7c 08 03 a6 mtlr r0 ffc11e50: 83 e1 00 1c lwz r31,28(r1) ffc11e54: 38 21 00 20 addi r1,r1,32 ffc11e58: 4e 80 00 20 blr <== ALWAYS TAKEN ffc096f8 : rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { ffc096f8: 94 21 ff f8 stwu r1,-8(r1) ffc096fc: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc09700: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { ffc09704: 90 01 00 0c stw r0,12(r1) ffc09708: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0970c: 3c 60 00 00 lis r3,0 rtems_status_code rtems_barrier_ident( rtems_name name, rtems_id *id ) { ffc09710: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc09714: 38 63 2b c4 addi r3,r3,11204 ffc09718: 7c 04 03 78 mr r4,r0 ffc0971c: 60 a5 ff ff ori r5,r5,65535 ffc09720: 48 00 2b 85 bl ffc0c2a4 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc09724: 80 01 00 0c lwz r0,12(r1) ffc09728: 3d 20 ff c2 lis r9,-62 ffc0972c: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc09730: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc09734: 39 29 45 d8 addi r9,r9,17880 ffc09738: 7c 69 18 2e lwzx r3,r9,r3 ffc0973c: 38 21 00 08 addi r1,r1,8 ffc09740: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11e5c : rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { ffc11e5c: 94 21 ff e0 stwu r1,-32(r1) ffc11e60: 7c 08 02 a6 mflr r0 ffc11e64: 93 c1 00 18 stw r30,24(r1) Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) ffc11e68: 7c 9e 23 79 mr. r30,r4 rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { ffc11e6c: 93 e1 00 1c stw r31,28(r1) ffc11e70: 7c 7f 1b 78 mr r31,r3 Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) ffc11e74: 38 60 00 09 li r3,9 rtems_status_code rtems_barrier_release( rtems_id id, uint32_t *released ) { ffc11e78: 90 01 00 24 stw r0,36(r1) Barrier_Control *the_barrier; Objects_Locations location; if ( !released ) ffc11e7c: 41 82 00 2c beq- ffc11ea8 RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) ffc11e80: 3c 60 00 00 lis r3,0 ffc11e84: 38 63 35 4c addi r3,r3,13644 ffc11e88: 7f e4 fb 78 mr r4,r31 ffc11e8c: 38 a1 00 08 addi r5,r1,8 ffc11e90: 4b ff 85 b9 bl ffc0a448 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { ffc11e94: 80 01 00 08 lwz r0,8(r1) ffc11e98: 7c 69 1b 78 mr r9,r3 ffc11e9c: 2f 80 00 00 cmpwi cr7,r0,0 ffc11ea0: 38 60 00 04 li r3,4 ffc11ea4: 41 9e 00 1c beq- cr7,ffc11ec0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc11ea8: 80 01 00 24 lwz r0,36(r1) ffc11eac: 83 c1 00 18 lwz r30,24(r1) ffc11eb0: 7c 08 03 a6 mtlr r0 ffc11eb4: 83 e1 00 1c lwz r31,28(r1) ffc11eb8: 38 21 00 20 addi r1,r1,32 ffc11ebc: 4e 80 00 20 blr <== ALWAYS TAKEN the_barrier = _Barrier_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); ffc11ec0: 7f e4 fb 78 mr r4,r31 ffc11ec4: 38 69 00 14 addi r3,r9,20 ffc11ec8: 38 a0 00 00 li r5,0 ffc11ecc: 48 00 04 c1 bl ffc1238c <_CORE_barrier_Release> <== ALWAYS TAKEN ffc11ed0: 90 7e 00 00 stw r3,0(r30) _Thread_Enable_dispatch(); ffc11ed4: 4b ff 91 41 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc11ed8: 80 01 00 24 lwz r0,36(r1) the_barrier = _Barrier_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL ); _Thread_Enable_dispatch(); ffc11edc: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc11ee0: 83 c1 00 18 lwz r30,24(r1) ffc11ee4: 7c 08 03 a6 mtlr r0 ffc11ee8: 83 e1 00 1c lwz r31,28(r1) ffc11eec: 38 21 00 20 addi r1,r1,32 ffc11ef0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11ef4 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { ffc11ef4: 94 21 ff e0 stwu r1,-32(r1) ffc11ef8: 7c 08 02 a6 mflr r0 ffc11efc: 93 e1 00 1c stw r31,28(r1) ffc11f00: 7c 7f 1b 78 mr r31,r3 ffc11f04: 3c 60 00 00 lis r3,0 ffc11f08: 93 c1 00 18 stw r30,24(r1) ffc11f0c: 38 63 35 4c addi r3,r3,13644 ffc11f10: 7c 9e 23 78 mr r30,r4 ffc11f14: 38 a1 00 08 addi r5,r1,8 ffc11f18: 90 01 00 24 stw r0,36(r1) ffc11f1c: 7f e4 fb 78 mr r4,r31 ffc11f20: 4b ff 85 29 bl ffc0a448 <_Objects_Get> <== ALWAYS TAKEN Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { ffc11f24: 80 01 00 08 lwz r0,8(r1) ffc11f28: 7c 69 1b 78 mr r9,r3 ffc11f2c: 2f 80 00 00 cmpwi cr7,r0,0 ffc11f30: 38 60 00 04 li r3,4 ffc11f34: 40 9e 00 30 bne- cr7,ffc11f64 case OBJECTS_LOCAL: _CORE_barrier_Wait( ffc11f38: 38 69 00 14 addi r3,r9,20 ffc11f3c: 7f e4 fb 78 mr r4,r31 ffc11f40: 7f c6 f3 78 mr r6,r30 ffc11f44: 38 a0 00 01 li r5,1 ffc11f48: 38 e0 00 00 li r7,0 ffc11f4c: 48 00 04 95 bl ffc123e0 <_CORE_barrier_Wait> <== ALWAYS TAKEN id, true, timeout, NULL ); _Thread_Enable_dispatch(); ffc11f50: 4b ff 90 c5 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Barrier_Translate_core_barrier_return_code( ffc11f54: 3d 20 00 00 lis r9,0 ffc11f58: 81 29 27 b0 lwz r9,10160(r9) ffc11f5c: 80 69 00 34 lwz r3,52(r9) ffc11f60: 48 00 13 2d bl ffc1328c <_Barrier_Translate_core_barrier_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc11f64: 80 01 00 24 lwz r0,36(r1) ffc11f68: 83 c1 00 18 lwz r30,24(r1) ffc11f6c: 7c 08 03 a6 mtlr r0 ffc11f70: 83 e1 00 1c lwz r31,28(r1) ffc11f74: 38 21 00 20 addi r1,r1,32 ffc11f78: 4e 80 00 20 blr <== ALWAYS TAKEN ffc040cc : #include extern const char *bsp_boot_cmdline; const char *rtems_bsp_cmdline_get(void) { ffc040cc: 3d 20 00 00 lis r9,0 return bsp_boot_cmdline; } ffc040d0: 80 69 26 f8 lwz r3,9976(r9) ffc040d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc040d8 : size_t length ) { const char *p; if ( !name ) ffc040d8: 2f 83 00 00 cmpwi cr7,r3,0 const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { ffc040dc: 94 21 ff f0 stwu r1,-16(r1) ffc040e0: 7c 08 02 a6 mflr r0 ffc040e4: 90 01 00 14 stw r0,20(r1) const char *p; if ( !name ) ffc040e8: 40 9e 00 1c bne- cr7,ffc04104 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i return NULL; if ( !length ) ffc0410c: 2f 85 00 00 cmpwi cr7,r5,0 ffc04110: 41 9e ff dc beq+ cr7,ffc040ec return NULL; value[0] = '\0'; ffc04114: 38 00 00 00 li r0,0 ffc04118: 98 04 00 00 stb r0,0(r4) p = rtems_bsp_cmdline_get_param_raw( name ); ffc0411c: 90 81 00 08 stw r4,8(r1) ffc04120: 90 a1 00 0c stw r5,12(r1) ffc04124: 48 00 00 81 bl ffc041a4 <== ALWAYS TAKEN if ( !p ) ffc04128: 2c 03 00 00 cmpwi r3,0 ffc0412c: 80 81 00 08 lwz r4,8(r1) ffc04130: 80 a1 00 0c lwz r5,12(r1) ffc04134: 41 a2 ff b8 beq- ffc040ec int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i <== NEVER TAKEN ffc04144: 34 a5 ff ff addic. r5,r5,-1 ffc04148: 41 a2 ff a8 beq- ffc040f0 <== NEVER TAKEN if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) break; value[i++] = *p++; value[i] = '\0'; ffc0414c: 7c a9 03 a6 mtctr r5 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i <== ALWAYS TAKEN quotes=0; for (i=0 ; *p && i <== NEVER TAKEN ffc0416c: 41 be ff 84 beq- cr7,ffc040f0 <== NEVER TAKEN break; value[i++] = *p++; ffc04170: 39 29 00 01 addi r9,r9,1 ffc04174: 7c 04 59 ae stbx r0,r4,r11 ffc04178: 7d 2b 4b 78 mr r11,r9 value[i] = '\0'; ffc0417c: 7d 04 49 ae stbx r8,r4,r9 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i ffc0418c: 42 40 ff 64 bdz+ ffc040f0 <== NEVER TAKEN if ( *p == '\"' ) { ffc04190: 2f 80 00 22 cmpwi cr7,r0,34 quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) ffc04194: 71 47 00 01 andi. r7,r10,1 int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i <== ALWAYS TAKEN quotes++; ffc0419c: 39 4a 00 01 addi r10,r10,1 <== NOT EXECUTED ffc041a0: 4b ff ff d0 b ffc04170 <== NOT EXECUTED ffc041a4 : const char *name ) { const char *p; if ( !name ) ffc041a4: 7c 64 1b 79 mr. r4,r3 extern const char *bsp_boot_cmdline; const char *rtems_bsp_cmdline_get_param_raw( const char *name ) { ffc041a8: 94 21 ff f8 stwu r1,-8(r1) ffc041ac: 7c 08 02 a6 mflr r0 ffc041b0: 90 01 00 0c stw r0,12(r1) const char *p; if ( !name ) ffc041b4: 40 82 00 18 bne- ffc041cc return NULL; p = strstr(bsp_boot_cmdline, name); /* printf( "raw: %p (%s)\n", p, p ); */ return p; } ffc041b8: 80 01 00 0c lwz r0,12(r1) if ( !bsp_boot_cmdline ) return NULL; p = strstr(bsp_boot_cmdline, name); /* printf( "raw: %p (%s)\n", p, p ); */ return p; ffc041bc: 38 60 00 00 li r3,0 } ffc041c0: 38 21 00 08 addi r1,r1,8 ffc041c4: 7c 08 03 a6 mtlr r0 ffc041c8: 4e 80 00 20 blr <== ALWAYS TAKEN const char *p; if ( !name ) return NULL; if ( !bsp_boot_cmdline ) ffc041cc: 3d 20 00 00 lis r9,0 ffc041d0: 80 69 26 f8 lwz r3,9976(r9) ffc041d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc041d8: 41 be ff e0 beq- cr7,ffc041b8 return NULL; p = strstr(bsp_boot_cmdline, name); ffc041dc: 48 01 0c 81 bl ffc14e5c <== ALWAYS TAKEN /* printf( "raw: %p (%s)\n", p, p ); */ return p; } ffc041e0: 80 01 00 0c lwz r0,12(r1) ffc041e4: 38 21 00 08 addi r1,r1,8 ffc041e8: 7c 08 03 a6 mtlr r0 ffc041ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc041f0 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { ffc041f0: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc041f4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc041f8: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc041fc: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc04200: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc04204: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc04208: 7c 9f 23 78 mr r31,r4 <== NOT EXECUTED ffc0420c: 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 ); ffc04210: 4b ff fe c9 bl ffc040d8 <== NOT EXECUTED if ( !p ) ffc04214: 7c 7d 1b 79 mr. r29,r3 <== NOT EXECUTED ffc04218: 40 82 00 28 bne- ffc04240 <== NOT EXECUTED if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; } ffc0421c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; ffc04220: 3b e0 00 00 li r31,0 <== NOT EXECUTED } ffc04224: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc04228: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc0422c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc04230: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc04234: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc04238: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0423c: 4e 80 00 20 blr <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; ffc04240: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc04244: 48 01 05 25 bl ffc14768 <== NOT EXECUTED if ( *rhs != '=' ) ffc04248: 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)]; ffc0424c: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED if ( *rhs != '=' ) ffc04250: 2f 80 00 3d cmpwi cr7,r0,61 <== NOT EXECUTED ffc04254: 40 9e ff c8 bne+ cr7,ffc0421c <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) ffc04258: 88 1d 00 01 lbz r0,1(r29) <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; ffc0425c: 3b bd 00 01 addi r29,r29,1 <== NOT EXECUTED if ( *rhs == '\"' ) ffc04260: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc04264: 41 9e 00 60 beq- cr7,ffc042c4 <== NOT EXECUTED rhs++; for ( d=value ; *rhs ; ) ffc04268: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0426c: 7f e9 fb 78 mr r9,r31 <== NOT EXECUTED ffc04270: 41 9e 00 18 beq- cr7,ffc04288 <== NOT EXECUTED *d++ = *rhs++; ffc04274: 98 09 00 00 stb r0,0(r9) <== NOT EXECUTED ffc04278: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) ffc0427c: 8c 1d 00 01 lbzu r0,1(r29) <== NOT EXECUTED ffc04280: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04284: 40 9e ff f0 bne+ cr7,ffc04274 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) ffc04288: 88 09 ff ff lbz r0,-1(r9) <== NOT EXECUTED ffc0428c: 39 69 ff ff addi r11,r9,-1 <== NOT EXECUTED ffc04290: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc04294: 41 9e 00 08 beq- cr7,ffc0429c <== NOT EXECUTED ffc04298: 7d 2b 4b 78 mr r11,r9 <== NOT EXECUTED d--; *d = '\0'; ffc0429c: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc042a0: 98 0b 00 00 stb r0,0(r11) <== NOT EXECUTED return value; } ffc042a4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc042a8: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc042ac: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc042b0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc042b4: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc042b8: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc042bc: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc042c0: 4e 80 00 20 blr <== NOT EXECUTED if ( *rhs != '=' ) return NULL; rhs++; if ( *rhs == '\"' ) rhs++; ffc042c4: 8c 1d 00 01 lbzu r0,1(r29) <== NOT EXECUTED ffc042c8: 4b ff ff a0 b ffc04268 <== NOT EXECUTED ffc0a4bc : uint32_t api, uint32_t class, uint32_t node, uint32_t index ) { ffc0a4bc: 54 84 d8 08 rlwinm r4,r4,27,0,4 ffc0a4c0: 54 63 c0 0e rlwinm r3,r3,24,0,7 ffc0a4c4: 7c 83 1b 78 or r3,r4,r3 ffc0a4c8: 7c 63 33 78 or r3,r3,r6 ffc0a4cc: 54 a5 80 1e rlwinm r5,r5,16,0,15 return _Objects_Build_id( api, class, node, index ); } ffc0a4d0: 7c 63 2b 78 or r3,r3,r5 ffc0a4d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a4d8 : char C1, char C2, char C3, char C4 ) { ffc0a4d8: 54 84 80 1e rlwinm r4,r4,16,0,15 ffc0a4dc: 54 63 c0 0e rlwinm r3,r3,24,0,7 ffc0a4e0: 7c 83 1b 78 or r3,r4,r3 ffc0a4e4: 54 a5 40 2e rlwinm r5,r5,8,0,23 ffc0a4e8: 7c 63 2b 78 or r3,r3,r5 return _Objects_Build_name( C1, C2, C3, C4 ); } ffc0a4ec: 7c 63 33 78 or r3,r3,r6 ffc0a4f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0da74 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { ffc0da74: 94 21 ff f0 stwu r1,-16(r1) ffc0da78: 7c 08 02 a6 mflr r0 ffc0da7c: 93 e1 00 0c stw r31,12(r1) if ( !time_buffer ) ffc0da80: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { ffc0da84: 90 01 00 14 stw r0,20(r1) ffc0da88: 7c 60 1b 78 mr r0,r3 if ( !time_buffer ) ffc0da8c: 38 60 00 09 li r3,9 ffc0da90: 41 82 00 30 beq- ffc0dac0 return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) ffc0da94: 2f 80 00 00 cmpwi cr7,r0,0 ffc0da98: 41 9e 00 58 beq- cr7,ffc0daf0 return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) ffc0da9c: 2f 80 00 01 cmpwi cr7,r0,1 ffc0daa0: 41 9e 00 6c beq- cr7,ffc0db0c return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { ffc0daa4: 2f 80 00 02 cmpwi cr7,r0,2 ffc0daa8: 41 9e 00 70 beq- cr7,ffc0db18 *interval = rtems_clock_get_ticks_since_boot(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { ffc0daac: 2f 80 00 03 cmpwi cr7,r0,3 ffc0dab0: 41 9e 00 78 beq- cr7,ffc0db28 *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) ffc0dab4: 2f 80 00 04 cmpwi cr7,r0,4 ffc0dab8: 38 60 00 0a li r3,10 ffc0dabc: 41 9e 00 18 beq- cr7,ffc0dad4 return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } ffc0dac0: 80 01 00 14 lwz r0,20(r1) ffc0dac4: 83 e1 00 0c lwz r31,12(r1) ffc0dac8: 38 21 00 10 addi r1,r1,16 ffc0dacc: 7c 08 03 a6 mtlr r0 ffc0dad0: 4e 80 00 20 blr <== ALWAYS TAKEN *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); ffc0dad4: 7f e3 fb 78 mr r3,r31 ffc0dad8: 48 00 01 a5 bl ffc0dc7c <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; } ffc0dadc: 80 01 00 14 lwz r0,20(r1) ffc0dae0: 83 e1 00 0c lwz r31,12(r1) ffc0dae4: 38 21 00 10 addi r1,r1,16 ffc0dae8: 7c 08 03 a6 mtlr r0 ffc0daec: 4e 80 00 20 blr <== ALWAYS TAKEN { if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); ffc0daf0: 7f e3 fb 78 mr r3,r31 ffc0daf4: 48 00 00 9d bl ffc0db90 <== ALWAYS TAKEN if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } ffc0daf8: 80 01 00 14 lwz r0,20(r1) ffc0dafc: 83 e1 00 0c lwz r31,12(r1) ffc0db00: 38 21 00 10 addi r1,r1,16 ffc0db04: 7c 08 03 a6 mtlr r0 ffc0db08: 4e 80 00 20 blr <== ALWAYS TAKEN if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); ffc0db0c: 7f e3 fb 78 mr r3,r31 ffc0db10: 48 00 00 29 bl ffc0db38 <== ALWAYS TAKEN ffc0db14: 4b ff ff ac b ffc0dac0 <== ALWAYS TAKEN if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot(); ffc0db18: 48 00 00 6d bl ffc0db84 <== ALWAYS TAKEN ffc0db1c: 90 7f 00 00 stw r3,0(r31) ffc0db20: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc0db24: 4b ff ff 9c b ffc0dac0 <== ALWAYS TAKEN } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second(); ffc0db28: 48 00 00 45 bl ffc0db6c <== ALWAYS TAKEN ffc0db2c: 90 7f 00 00 stw r3,0(r31) ffc0db30: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc0db34: 4b ff ff 8c b ffc0dac0 <== ALWAYS TAKEN ffc095b0 : rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) ffc095b0: 7c 6b 1b 79 mr. r11,r3 ffc095b4: 38 60 00 09 li r3,9 ffc095b8: 4d 82 00 20 beqlr return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) ffc095bc: 3d 20 00 00 lis r9,0 ffc095c0: 88 09 28 44 lbz r0,10308(r9) ffc095c4: 38 60 00 0b li r3,11 ffc095c8: 2f 80 00 00 cmpwi cr7,r0,0 ffc095cc: 4d 9e 00 20 beqlr cr7 return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); ffc095d0: 3d 20 00 00 lis r9,0 ffc095d4: 80 09 28 5c lwz r0,10332(r9) ffc095d8: 38 60 00 00 li r3,0 ffc095dc: 90 0b 00 00 stw r0,0(r11) return RTEMS_SUCCESSFUL; } ffc095e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07d54 : #include #include #include rtems_interval rtems_clock_get_ticks_per_second(void) { ffc07d54: 3d 20 00 00 lis r9,0 ffc07d58: 80 09 20 ac lwz r0,8364(r9) ffc07d5c: 3c 60 00 0f lis r3,15 ffc07d60: 60 63 42 40 ori r3,r3,16960 return TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick(); } ffc07d64: 7c 63 03 96 divwu r3,r3,r0 ffc07d68: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07d6c : #include #include rtems_interval rtems_clock_get_ticks_since_boot(void) { return _Watchdog_Ticks_since_boot; ffc07d6c: 3d 20 00 00 lis r9,0 ffc07d70: 80 69 27 c8 lwz r3,10184(r9) } ffc07d74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09608 : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { ffc09608: 94 21 ff b0 stwu r1,-80(r1) ffc0960c: 7c 08 02 a6 mflr r0 ffc09610: 93 e1 00 4c stw r31,76(r1) rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) ffc09614: 7c 7f 1b 79 mr. r31,r3 ffc09618: 38 60 00 09 li r3,9 #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { ffc0961c: 90 01 00 54 stw r0,84(r1) ffc09620: 93 c1 00 48 stw r30,72(r1) rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) ffc09624: 41 82 00 b8 beq- ffc096dc return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) ffc09628: 3d 20 00 00 lis r9,0 ffc0962c: 88 09 28 44 lbz r0,10308(r9) ffc09630: 38 60 00 0b li r3,11 ffc09634: 2f 80 00 00 cmpwi cr7,r0,0 ffc09638: 41 be 00 a4 beq+ cr7,ffc096dc static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0963c: 7f c0 00 a6 mfmsr r30 ffc09640: 7c 10 42 a6 mfsprg r0,0 ffc09644: 7f c0 00 78 andc r0,r30,r0 ffc09648: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc0964c: 38 61 00 10 addi r3,r1,16 ffc09650: 48 00 22 05 bl ffc0b854 <_TOD_Get> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc09654: 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; ffc09658: 3c 00 10 62 lis r0,4194 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; ffc0965c: 81 21 00 14 lwz r9,20(r1) useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; ffc09660: 60 00 4d d3 ori r0,r0,19923 ffc09664: 7c 09 00 96 mulhw r0,r9,r0 ffc09668: 7d 29 fe 70 srawi r9,r9,31 ffc0966c: 7c 00 36 70 srawi r0,r0,6 ffc09670: 7c 09 00 50 subf 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; ffc09674: 81 21 00 10 lwz r9,16(r1) /* Obtain the current time */ _TOD_Get_timeval( &now ); /* Split it into a closer format */ gmtime_r( &now.tv_sec, &time ); ffc09678: 38 61 00 08 addi r3,r1,8 time->tv_usec = useconds; ffc0967c: 90 01 00 0c stw r0,12(r1) ffc09680: 38 81 00 18 addi r4,r1,24 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; ffc09684: 91 21 00 08 stw r9,8(r1) ffc09688: 48 00 cc fd bl ffc16384 <== 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 / ffc0968c: 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; ffc09690: 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; ffc09694: 81 21 00 2c lwz r9,44(r1) tmbuf->month = time.tm_mon + 1; ffc09698: 38 0b 00 01 addi r0,r11,1 ffc0969c: 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; ffc096a0: 39 29 07 6c addi r9,r9,1900 tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; ffc096a4: 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; ffc096a8: 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 / ffc096ac: 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; ffc096b0: 90 1f 00 08 stw r0,8(r31) tmbuf->hour = time.tm_hour; ffc096b4: 80 01 00 20 lwz r0,32(r1) ffc096b8: 90 1f 00 0c stw r0,12(r31) tmbuf->minute = time.tm_min; ffc096bc: 80 01 00 1c lwz r0,28(r1) ffc096c0: 90 1f 00 10 stw r0,16(r31) tmbuf->second = time.tm_sec; ffc096c4: 80 01 00 18 lwz r0,24(r1) ffc096c8: 90 1f 00 14 stw r0,20(r31) tmbuf->ticks = now.tv_usec / ffc096cc: 80 09 20 cc lwz r0,8396(r9) ffc096d0: 81 21 00 0c lwz r9,12(r1) ffc096d4: 7c 09 03 96 divwu r0,r9,r0 ffc096d8: 90 1f 00 18 stw r0,24(r31) rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; } ffc096dc: 80 01 00 54 lwz r0,84(r1) ffc096e0: 83 c1 00 48 lwz r30,72(r1) ffc096e4: 7c 08 03 a6 mtlr r0 ffc096e8: 83 e1 00 4c lwz r31,76(r1) ffc096ec: 38 21 00 50 addi r1,r1,80 ffc096f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0dc7c : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { ffc0dc7c: 94 21 ff e0 stwu r1,-32(r1) ffc0dc80: 7c 08 02 a6 mflr r0 ffc0dc84: 93 e1 00 1c stw r31,28(r1) if ( !time ) ffc0dc88: 7c 7f 1b 79 mr. r31,r3 ffc0dc8c: 38 60 00 09 li r3,9 #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { ffc0dc90: 90 01 00 24 stw r0,36(r1) ffc0dc94: 93 c1 00 18 stw r30,24(r1) if ( !time ) ffc0dc98: 41 82 00 60 beq- ffc0dcf8 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) ffc0dc9c: 3d 20 00 00 lis r9,0 ffc0dca0: 88 09 36 20 lbz r0,13856(r9) ffc0dca4: 38 60 00 0b li r3,11 ffc0dca8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0dcac: 41 be 00 4c beq+ cr7,ffc0dcf8 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc0dcb0: 7f c0 00 a6 mfmsr r30 ffc0dcb4: 7c 10 42 a6 mfsprg r0,0 ffc0dcb8: 7f c0 00 78 andc r0,r30,r0 ffc0dcbc: 7c 00 01 24 mtmsr r0 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); ffc0dcc0: 38 61 00 08 addi r3,r1,8 ffc0dcc4: 48 00 1c 31 bl ffc0f8f4 <_TOD_Get> <== ALWAYS TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0dcc8: 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; ffc0dccc: 3d 60 10 62 lis r11,4194 _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; ffc0dcd0: 80 01 00 0c lwz r0,12(r1) useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; ffc0dcd4: 61 6b 4d d3 ori r11,r11,19923 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; ffc0dcd8: 81 21 00 08 lwz r9,8(r1) time->tv_usec = useconds; ffc0dcdc: 7d 60 58 96 mulhw r11,r0,r11 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; ffc0dce0: 91 3f 00 00 stw r9,0(r31) time->tv_usec = useconds; ffc0dce4: 7c 00 fe 70 srawi r0,r0,31 ffc0dce8: 7d 6b 36 70 srawi r11,r11,6 ffc0dcec: 7c 00 58 50 subf r0,r0,r11 ffc0dcf0: 90 1f 00 04 stw r0,4(r31) ffc0dcf4: 38 60 00 00 li r3,0 return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } ffc0dcf8: 80 01 00 24 lwz r0,36(r1) ffc0dcfc: 83 c1 00 18 lwz r30,24(r1) ffc0dd00: 7c 08 03 a6 mtlr r0 ffc0dd04: 83 e1 00 1c lwz r31,28(r1) ffc0dd08: 38 21 00 20 addi r1,r1,32 ffc0dd0c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc323a4 : */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) ffc323a4: 2f 83 00 00 cmpwi cr7,r3,0 * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { ffc323a8: 7c 08 02 a6 mflr r0 ffc323ac: 94 21 ff f8 stwu r1,-8(r1) ffc323b0: 90 01 00 0c stw r0,12(r1) if ( !uptime ) ffc323b4: 38 00 00 09 li r0,9 ffc323b8: 41 9e 00 0c beq- cr7,ffc323c4 return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); ffc323bc: 48 00 15 35 bl ffc338f0 <_TOD_Get_uptime_as_timespec> <== ALWAYS TAKEN ffc323c0: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc323c4: 7c 03 03 78 mr r3,r0 <== ALWAYS TAKEN ffc323c8: 80 01 00 0c lwz r0,12(r1) ffc323cc: 38 21 00 08 addi r1,r1,8 ffc323d0: 7c 08 03 a6 mtlr r0 ffc323d4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09710 : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { ffc09710: 94 21 ff e0 stwu r1,-32(r1) ffc09714: 7c 08 02 a6 mflr r0 ffc09718: 93 e1 00 1c stw r31,28(r1) struct timespec newtime; if ( !time_buffer ) ffc0971c: 7c 7f 1b 79 mr. r31,r3 */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { ffc09720: 90 01 00 24 stw r0,36(r1) <== ALWAYS TAKEN struct timespec newtime; if ( !time_buffer ) ffc09724: 38 00 00 09 li r0,9 ffc09728: 41 82 00 58 beq- ffc09780 return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { ffc0972c: 48 00 01 7d bl ffc098a8 <_TOD_Validate> <== ALWAYS TAKEN ffc09730: 38 00 00 14 li r0,20 ffc09734: 2f 83 00 00 cmpwi cr7,r3,0 ffc09738: 41 be 00 48 beq+ cr7,ffc09780 newtime.tv_sec = _TOD_To_seconds( time_buffer ); ffc0973c: 7f e3 fb 78 mr r3,r31 ffc09740: 48 00 00 c5 bl ffc09804 <_TOD_To_seconds> <== ALWAYS TAKEN newtime.tv_nsec = time_buffer->ticks * ffc09744: 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 ); ffc09748: 90 61 00 08 stw r3,8(r1) newtime.tv_nsec = time_buffer->ticks * ffc0974c: 80 09 20 cc lwz r0,8396(r9) rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc09750: 3d 20 00 00 lis r9,0 ffc09754: 81 7f 00 18 lwz r11,24(r31) ffc09758: 7c 0b 01 d6 mullw r0,r11,r0 ffc0975c: 81 69 28 3c lwz r11,10300(r9) <== ALWAYS TAKEN ffc09760: 39 6b 00 01 addi r11,r11,1 ffc09764: 1c 00 03 e8 mulli r0,r0,1000 ffc09768: 91 69 28 3c stw r11,10300(r9) ffc0976c: 90 01 00 0c stw r0,12(r1) rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); ffc09770: 38 61 00 08 addi r3,r1,8 ffc09774: 48 00 22 61 bl ffc0b9d4 <_TOD_Set> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc09778: 48 00 3c 15 bl ffc0d38c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0977c: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } ffc09780: 7c 03 03 78 mr r3,r0 ffc09784: 80 01 00 24 lwz r0,36(r1) ffc09788: 83 e1 00 1c lwz r31,28(r1) ffc0978c: 38 21 00 20 addi r1,r1,32 ffc09790: 7c 08 03 a6 mtlr r0 ffc09794: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07d78 : */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) ffc07d78: 7c 60 1b 79 mr. r0,r3 ffc07d7c: 38 60 00 09 li r3,9 ffc07d80: 4d 82 00 20 beqlr return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; ffc07d84: 3d 20 00 00 lis r9,0 ffc07d88: 90 09 27 d8 stw r0,10200(r9) <== ALWAYS TAKEN ffc07d8c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc07d90: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07d94 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { ffc07d94: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc07d98: 94 21 ff f8 stwu r1,-8(r1) ffc07d9c: 90 01 00 0c stw r0,12(r1) _TOD_Tickle_ticks(); ffc07da0: 48 00 1b ad bl ffc0994c <_TOD_Tickle_ticks> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); ffc07da4: 3c 60 00 00 lis r3,0 ffc07da8: 38 63 2d 48 addi r3,r3,11592 <== ALWAYS TAKEN ffc07dac: 48 00 4b ed bl ffc0c998 <_Watchdog_Tickle> <== ALWAYS TAKEN _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); ffc07db0: 48 00 42 ad bl ffc0c05c <_Thread_Tickle_timeslice> <== ALWAYS TAKEN * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary ); ffc07db4: 3d 20 00 00 lis r9,0 ffc07db8: 88 09 27 c0 lbz r0,10176(r9) <== ALWAYS TAKEN if ( _Thread_Is_context_switch_necessary() && ffc07dbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc07dc0: 41 9e 00 14 beq- cr7,ffc07dd4 * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); ffc07dc4: 3d 20 00 00 lis r9,0 ffc07dc8: 80 09 27 70 lwz r0,10096(r9) ffc07dcc: 2f 80 00 00 cmpwi cr7,r0,0 ffc07dd0: 41 9e 00 18 beq- cr7,ffc07de8 _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } ffc07dd4: 80 01 00 0c lwz r0,12(r1) ffc07dd8: 38 60 00 00 li r3,0 ffc07ddc: 38 21 00 08 addi r1,r1,8 ffc07de0: 7c 08 03 a6 mtlr r0 ffc07de4: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Tickle_timeslice(); if ( _Thread_Is_context_switch_necessary() && _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); ffc07de8: 48 00 30 25 bl ffc0ae0c <_Thread_Dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc07dec: 80 01 00 0c lwz r0,12(r1) ffc07df0: 38 60 00 00 li r3,0 ffc07df4: 7c 08 03 a6 mtlr r0 ffc07df8: 38 21 00 08 addi r1,r1,8 ffc07dfc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05110 : void rtems_cpu_usage_report( void ) { rtems_cpu_usage_report_with_plugin( NULL, printk_plugin ); ffc05110: 3c 80 ff c0 lis r4,-64 ffc05114: 38 84 6d f0 addi r4,r4,28144 ffc05118: 38 60 00 00 li r3,0 ffc0511c: 4b ff fd 64 b ffc04e80 <== ALWAYS TAKEN ffc04e80 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc04e80: 94 21 ff 68 stwu r1,-152(r1) ffc04e84: 7c 08 02 a6 mflr r0 ffc04e88: 90 01 00 9c stw r0,156(r1) Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) ffc04e8c: 7c 80 23 79 mr. r0,r4 void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc04e90: 93 81 00 88 stw r28,136(r1) ffc04e94: 7c 7c 1b 78 mr r28,r3 ffc04e98: 91 c1 00 50 stw r14,80(r1) ffc04e9c: 91 e1 00 54 stw r15,84(r1) ffc04ea0: 92 01 00 58 stw r16,88(r1) ffc04ea4: 92 21 00 5c stw r17,92(r1) ffc04ea8: 92 41 00 60 stw r18,96(r1) ffc04eac: 92 61 00 64 stw r19,100(r1) ffc04eb0: 92 81 00 68 stw r20,104(r1) ffc04eb4: 92 a1 00 6c stw r21,108(r1) ffc04eb8: 92 c1 00 70 stw r22,112(r1) ffc04ebc: 92 e1 00 74 stw r23,116(r1) ffc04ec0: 93 01 00 78 stw r24,120(r1) ffc04ec4: 93 21 00 7c stw r25,124(r1) ffc04ec8: 93 41 00 80 stw r26,128(r1) ffc04ecc: 93 61 00 84 stw r27,132(r1) ffc04ed0: 93 a1 00 8c stw r29,140(r1) ffc04ed4: 93 c1 00 90 stw r30,144(r1) ffc04ed8: 93 e1 00 94 stw r31,148(r1) Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) ffc04edc: 90 01 00 48 stw r0,72(r1) ffc04ee0: 41 82 01 d8 beq- ffc050b8 <== 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 ); ffc04ee4: 3a 21 00 10 addi r17,r1,16 ffc04ee8: 7e 23 8b 78 mr r3,r17 ffc04eec: 48 00 6a 0d bl ffc0b8f8 <_TOD_Get_uptime> <== ALWAYS TAKEN _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); ffc04ef0: 3b 41 00 18 addi r26,r1,24 ffc04ef4: 3c 60 00 00 lis r3,0 ffc04ef8: 38 63 28 ac addi r3,r3,10412 ffc04efc: 7e 24 8b 78 mr r4,r17 ffc04f00: 7f 45 d3 78 mr r5,r26 ffc04f04: 48 00 98 a5 bl ffc0e7a8 <_Timespec_Subtract> <== ALWAYS TAKEN } } } #endif (*print)( ffc04f08: 80 01 00 48 lwz r0,72(r1) ffc04f0c: 3c 80 ff c2 lis r4,-62 ffc04f10: 38 84 50 88 addi r4,r4,20616 ffc04f14: 7c 09 03 a6 mtctr r0 ffc04f18: 7f 83 e3 78 mr r3,r28 ffc04f1c: 3e 60 00 01 lis r19,1 ffc04f20: 3a 73 aa 44 addi r19,r19,-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 ) { ffc04f24: 3e a0 00 00 lis r21,0 /* * Print the information */ (*print)( context, ffc04f28: 3e c0 10 62 lis r22,4194 } } } #endif (*print)( ffc04f2c: 4c c6 31 82 crclr 4*cr1+eq ffc04f30: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( ffc04f34: 3e e0 ff c2 lis r23,-62 /* * Print the information */ (*print)( context, ffc04f38: 3f 00 ff c2 lis r24,-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( ffc04f3c: 3d e0 00 00 lis r15,0 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc04f40: 3b a1 00 30 addi r29,r1,48 ffc04f44: 3b 61 00 20 addi r27,r1,32 _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); ffc04f48: 3a 81 00 0c addi r20,r1,12 /* * 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 ) { ffc04f4c: 3a b5 28 7c addi r21,r21,10364 /* * Print the information */ (*print)( context, ffc04f50: 62 d6 4d d3 ori r22,r22,19923 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); (*print)( ffc04f54: 3a f7 51 fc addi r23,r23,20988 /* * Print the information */ (*print)( context, ffc04f58: 3b 18 52 10 addi r24,r24,21008 * 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( ffc04f5c: 39 ef 28 84 addi r15,r15,10372 /*PAGE * * rtems_cpu_usage_report */ void rtems_cpu_usage_report_with_plugin( ffc04f60: 3a 13 00 10 addi r16,r19,16 _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); ffc04f64: 3b 21 00 08 addi r25,r1,8 * 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( ffc04f68: 3a 41 00 28 addi r18,r1,40 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) ffc04f6c: 81 33 00 00 lwz r9,0(r19) ffc04f70: 2f 89 00 00 cmpwi cr7,r9,0 ffc04f74: 41 9e 01 04 beq- cr7,ffc05078 continue; information = _Objects_Information_table[ api_index ][ 1 ]; ffc04f78: 83 c9 00 04 lwz r30,4(r9) if ( information ) { ffc04f7c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc04f80: 41 9e 00 f8 beq- cr7,ffc05078 <== NEVER TAKEN for ( i=1 ; i <= information->maximum ; i++ ) { ffc04f84: a1 7e 00 10 lhz r11,16(r30) ffc04f88: 2f 8b 00 00 cmpwi cr7,r11,0 ffc04f8c: 41 9e 00 ec beq- cr7,ffc05078 ffc04f90: 3b e0 00 01 li r31,1 ffc04f94: 48 00 00 58 b ffc04fec <== ALWAYS TAKEN _Timestamp_Subtract( &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); }; _Timestamp_Divide( &ran, &total, &ival, &fval ); ffc04f98: 7f 63 db 78 mr r3,r27 ffc04f9c: 7f 44 d3 78 mr r4,r26 ffc04fa0: 7f 25 cb 78 mr r5,r25 ffc04fa4: 7e 86 a3 78 mr r6,r20 ffc04fa8: 48 00 96 f5 bl ffc0e69c <_Timespec_Divide> <== ALWAYS TAKEN /* * Print the information */ (*print)( context, ffc04fac: 80 c1 00 24 lwz r6,36(r1) ffc04fb0: 80 01 00 48 lwz r0,72(r1) ffc04fb4: 7f 83 e3 78 mr r3,r28 ffc04fb8: 7c c6 b0 16 mulhwu r6,r6,r22 ffc04fbc: 80 a1 00 20 lwz r5,32(r1) ffc04fc0: 80 e1 00 08 lwz r7,8(r1) ffc04fc4: 7c 09 03 a6 mtctr r0 ffc04fc8: 7f 04 c3 78 mr r4,r24 ffc04fcc: 81 01 00 0c lwz r8,12(r1) ffc04fd0: 54 c6 d1 be rlwinm r6,r6,26,6,31 ffc04fd4: 4c c6 31 82 crclr 4*cr1+eq ffc04fd8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04fdc: a1 7e 00 10 lhz r11,16(r30) 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++ ) { ffc04fe0: 55 60 04 3e clrlwi r0,r11,16 ffc04fe4: 7f 80 f8 40 cmplw cr7,r0,r31 ffc04fe8: 41 9c 00 90 blt- cr7,ffc05078 the_thread = (Thread_Control *)information->local_table[ i ]; ffc04fec: 81 3e 00 1c lwz r9,28(r30) ffc04ff0: 57 e0 10 3a rlwinm r0,r31,2,0,29 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc04ff4: 7f a5 eb 78 mr r5,r29 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 ]; ffc04ff8: 7d c9 00 2e lwzx r14,r9,r0 if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc04ffc: 38 80 00 0d li r4,13 <== 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++ ) { ffc05000: 3b ff 00 01 addi r31,r31,1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) ffc05004: 2f 8e 00 00 cmpwi cr7,r14,0 ffc05008: 41 be ff d8 beq- cr7,ffc04fe0 <== NEVER TAKEN continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); ffc0500c: 80 6e 00 08 lwz r3,8(r14) ffc05010: 48 00 4d e1 bl ffc09df0 <== ALWAYS TAKEN (*print)( ffc05014: 80 01 00 48 lwz r0,72(r1) ffc05018: 7f 83 e3 78 mr r3,r28 ffc0501c: 80 ae 00 08 lwz r5,8(r14) ffc05020: 7c 09 03 a6 mtctr r0 ffc05024: 7e e4 bb 78 mr r4,r23 ffc05028: 7f a6 eb 78 mr r6,r29 ffc0502c: 4c c6 31 82 crclr 4*cr1+eq ffc05030: 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; ffc05034: 81 2e 00 84 lwz r9,132(r14) ffc05038: 81 4e 00 88 lwz r10,136(r14) ffc0503c: 91 21 00 20 stw r9,32(r1) ffc05040: 91 41 00 24 stw r10,36(r1) if ( _Thread_Executing->Object.id == the_thread->Object.id ) { ffc05044: 81 35 00 00 lwz r9,0(r21) ffc05048: 80 0e 00 08 lwz r0,8(r14) ffc0504c: 81 29 00 08 lwz r9,8(r9) ffc05050: 7f 89 00 00 cmpw cr7,r9,r0 ffc05054: 40 9e ff 44 bne+ cr7,ffc04f98 Timestamp_Control used; _Timestamp_Subtract( ffc05058: 7d e3 7b 78 mr r3,r15 ffc0505c: 7e 24 8b 78 mr r4,r17 ffc05060: 7e 45 93 78 mr r5,r18 ffc05064: 48 00 97 45 bl ffc0e7a8 <_Timespec_Subtract> <== ALWAYS TAKEN &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); ffc05068: 7f 63 db 78 mr r3,r27 ffc0506c: 7e 44 93 78 mr r4,r18 ffc05070: 48 00 95 d1 bl ffc0e640 <_Timespec_Add_to> <== ALWAYS TAKEN ffc05074: 4b ff ff 24 b ffc04f98 <== 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++ ) { ffc05078: 3a 73 00 04 addi r19,r19,4 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; ffc0507c: 7f 93 80 00 cmpw cr7,r19,r16 ffc05080: 40 9e fe ec bne+ cr7,ffc04f6c } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( ffc05084: 3c 00 10 62 lis r0,4194 ffc05088: 80 c1 00 1c lwz r6,28(r1) ffc0508c: 60 00 4d d3 ori r0,r0,19923 ffc05090: 80 a1 00 18 lwz r5,24(r1) ffc05094: 7c c6 00 16 mulhwu r6,r6,r0 ffc05098: 80 01 00 48 lwz r0,72(r1) ffc0509c: 3c 80 ff c2 lis r4,-62 ffc050a0: 7c 09 03 a6 mtctr r0 ffc050a4: 7f 83 e3 78 mr r3,r28 ffc050a8: 38 84 52 28 addi r4,r4,21032 ffc050ac: 54 c6 d1 be rlwinm r6,r6,26,6,31 ffc050b0: 4c c6 31 82 crclr 4*cr1+eq ffc050b4: 4e 80 04 21 bctrl <== ALWAYS TAKEN "-------------------------------------------------------------------------------\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset, total_units ); #endif } ffc050b8: 80 01 00 9c lwz r0,156(r1) ffc050bc: 81 c1 00 50 lwz r14,80(r1) ffc050c0: 7c 08 03 a6 mtlr r0 ffc050c4: 81 e1 00 54 lwz r15,84(r1) ffc050c8: 82 01 00 58 lwz r16,88(r1) ffc050cc: 82 21 00 5c lwz r17,92(r1) ffc050d0: 82 41 00 60 lwz r18,96(r1) ffc050d4: 82 61 00 64 lwz r19,100(r1) ffc050d8: 82 81 00 68 lwz r20,104(r1) ffc050dc: 82 a1 00 6c lwz r21,108(r1) ffc050e0: 82 c1 00 70 lwz r22,112(r1) ffc050e4: 82 e1 00 74 lwz r23,116(r1) ffc050e8: 83 01 00 78 lwz r24,120(r1) ffc050ec: 83 21 00 7c lwz r25,124(r1) ffc050f0: 83 41 00 80 lwz r26,128(r1) ffc050f4: 83 61 00 84 lwz r27,132(r1) ffc050f8: 83 81 00 88 lwz r28,136(r1) ffc050fc: 83 a1 00 8c lwz r29,140(r1) ffc05100: 83 c1 00 90 lwz r30,144(r1) ffc05104: 83 e1 00 94 lwz r31,148(r1) ffc05108: 38 21 00 98 addi r1,r1,152 ffc0510c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc05130 : /* * rtems_cpu_usage_reset */ void rtems_cpu_usage_reset( void ) { ffc05130: 94 21 ff f0 stwu r1,-16(r1) ffc05134: 7c 08 02 a6 mflr r0 ffc05138: 93 e1 00 0c stw r31,12(r1) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); ffc0513c: 3f e0 00 00 lis r31,0 ffc05140: 3b ff 28 ac addi r31,r31,10412 ffc05144: 7f e3 fb 78 mr r3,r31 /* * rtems_cpu_usage_reset */ void rtems_cpu_usage_reset( void ) { ffc05148: 90 01 00 14 stw r0,20(r1) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset ); ffc0514c: 48 00 67 ad bl ffc0b8f8 <_TOD_Get_uptime> <== ALWAYS TAKEN _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset; ffc05150: 3d 20 00 00 lis r9,0 ffc05154: 81 7f 00 00 lwz r11,0(r31) ffc05158: 39 29 28 84 addi r9,r9,10372 ffc0515c: 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); ffc05160: 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; ffc05164: 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); ffc05168: 38 63 51 20 addi r3,r3,20768 */ 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; ffc0516c: 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); ffc05170: 48 00 6e 3d bl ffc0bfac <== ALWAYS TAKEN } ffc05174: 80 01 00 14 lwz r0,20(r1) ffc05178: 83 e1 00 0c lwz r31,12(r1) ffc0517c: 38 21 00 10 addi r1,r1,16 ffc05180: 7c 08 03 a6 mtlr r0 ffc05184: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f66c : */ void rtems_debug_disable ( rtems_debug_control to_be_disabled ) { _Debug_Level &= ~to_be_disabled; ffc0f66c: 3d 20 00 00 lis r9,0 ffc0f670: 80 09 27 b4 lwz r0,10164(r9) ffc0f674: 7c 00 18 78 andc r0,r0,r3 ffc0f678: 90 09 27 b4 stw r0,10164(r9) } ffc0f67c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f658 : */ void rtems_debug_enable ( rtems_debug_control to_be_enabled ) { _Debug_Level |= to_be_enabled; ffc0f658: 3d 20 00 00 lis r9,0 ffc0f65c: 80 09 27 b4 lwz r0,10164(r9) ffc0f660: 7c 60 03 78 or r0,r3,r0 ffc0f664: 90 09 27 b4 stw r0,10164(r9) } ffc0f668: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f680 : * rtems_debug_is_enabled */ bool rtems_debug_is_enabled( rtems_debug_control level ) { ffc0f680: 3d 20 00 00 lis r9,0 ffc0f684: 80 09 27 b4 lwz r0,10164(r9) ffc0f688: 7c 63 00 38 and r3,r3,r0 return (_Debug_Level & level) ? true : false; } ffc0f68c: 31 23 ff ff addic r9,r3,-1 ffc0f690: 7c 09 19 10 subfe r0,r9,r3 ffc0f694: 7c 03 03 78 mr r3,r0 ffc0f698: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12868 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc12868: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc1286c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc12870: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc12874: 3c 60 ff c2 lis r3,-62 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc12878: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc1287c: 38 63 fd 48 addi r3,r3,-696 <== NOT EXECUTED { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { ffc12880: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) ffc12884: 48 00 00 2d bl ffc128b0 <== NOT EXECUTED ffc12888: 7c 7f 1b 79 mr. r31,r3 <== NOT EXECUTED ffc1288c: 41 a2 00 0c beq+ ffc12898 <== NOT EXECUTED { errno = rc; ffc12890: 48 00 0a e9 bl ffc13378 <__errno> <== NOT EXECUTED ffc12894: 93 e3 00 00 stw r31,0(r3) <== NOT EXECUTED return -1; } return -1; } ffc12898: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc1289c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc128a0: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc128a4: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc128a8: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc128ac: 4e 80 00 20 blr <== NOT EXECUTED ffc0acec : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { ffc0acec: 94 21 ff 90 stwu r1,-112(r1) <== NOT EXECUTED ffc0acf0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0acf4: 90 a1 00 18 stw r5,24(r1) <== NOT EXECUTED ffc0acf8: 90 01 00 74 stw r0,116(r1) <== NOT EXECUTED ffc0acfc: 90 c1 00 1c stw r6,28(r1) <== NOT EXECUTED ffc0ad00: 90 e1 00 20 stw r7,32(r1) <== NOT EXECUTED ffc0ad04: 91 01 00 24 stw r8,36(r1) <== NOT EXECUTED ffc0ad08: 91 21 00 28 stw r9,40(r1) <== NOT EXECUTED ffc0ad0c: 91 41 00 2c stw r10,44(r1) <== NOT EXECUTED ffc0ad10: 40 86 00 24 bne- cr1,ffc0ad34 <== NOT EXECUTED ffc0ad14: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED ffc0ad18: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED ffc0ad1c: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED ffc0ad20: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED ffc0ad24: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED ffc0ad28: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED ffc0ad2c: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED ffc0ad30: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0ad34: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc0ad38: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0ad3c: 38 00 00 00 li r0,0 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0ad40: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); ffc0ad44: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0ad48: 38 01 00 78 addi r0,r1,120 <== NOT EXECUTED ffc0ad4c: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED ffc0ad50: 38 01 00 10 addi r0,r1,16 <== NOT EXECUTED ffc0ad54: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); ffc0ad58: 4b ff fd 01 bl ffc0aa58 <== NOT EXECUTED va_end(arglist); return chars_written; } ffc0ad5c: 80 01 00 74 lwz r0,116(r1) <== NOT EXECUTED ffc0ad60: 38 21 00 70 addi r1,r1,112 <== NOT EXECUTED ffc0ad64: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ad68: 4e 80 00 20 blr <== NOT EXECUTED ffc07e00 : rtems_event_set *event_out ) { RTEMS_API_Control *api; if ( !event_out ) ffc07e00: 7c cb 33 79 mr. r11,r6 rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { ffc07e04: 94 21 ff f0 stwu r1,-16(r1) ffc07e08: 7c 08 02 a6 mflr r0 ffc07e0c: 93 e1 00 0c stw r31,12(r1) ffc07e10: 90 01 00 14 stw r0,20(r1) RTEMS_API_Control *api; if ( !event_out ) ffc07e14: 38 00 00 09 li r0,9 ffc07e18: 41 82 00 24 beq- ffc07e3c return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; if ( _Event_sets_Is_empty( event_in ) ) { ffc07e1c: 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 ]; ffc07e20: 3f e0 00 00 lis r31,0 ffc07e24: 81 3f 27 b0 lwz r9,10160(r31) ffc07e28: 81 29 01 44 lwz r9,324(r9) if ( _Event_sets_Is_empty( event_in ) ) { ffc07e2c: 40 9e 00 28 bne- cr7,ffc07e54 *event_out = api->pending_events; ffc07e30: 81 29 00 00 lwz r9,0(r9) ffc07e34: 38 00 00 00 li r0,0 ffc07e38: 91 2b 00 00 stw r9,0(r11) _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } ffc07e3c: 7c 03 03 78 mr r3,r0 ffc07e40: 80 01 00 14 lwz r0,20(r1) ffc07e44: 83 e1 00 0c lwz r31,12(r1) ffc07e48: 38 21 00 10 addi r1,r1,16 ffc07e4c: 7c 08 03 a6 mtlr r0 ffc07e50: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc07e54: 3d 20 00 00 lis r9,0 ffc07e58: 81 69 27 70 lwz r11,10096(r9) ffc07e5c: 38 0b 00 01 addi r0,r11,1 ffc07e60: 90 09 27 70 stw r0,10096(r9) *event_out = api->pending_events; return RTEMS_SUCCESSFUL; } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); ffc07e64: 48 00 00 29 bl ffc07e8c <_Event_Seize> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc07e68: 48 00 31 ad bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return( _Thread_Executing->Wait.return_code ); ffc07e6c: 81 3f 27 b0 lwz r9,10160(r31) } ffc07e70: 83 e1 00 0c lwz r31,12(r1) } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); ffc07e74: 80 09 00 34 lwz r0,52(r9) } ffc07e78: 7c 03 03 78 mr r3,r0 ffc07e7c: 80 01 00 14 lwz r0,20(r1) ffc07e80: 38 21 00 10 addi r1,r1,16 ffc07e84: 7c 08 03 a6 mtlr r0 ffc07e88: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08000 : rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { ffc08000: 94 21 ff e0 stwu r1,-32(r1) ffc08004: 7c 08 02 a6 mflr r0 ffc08008: 93 e1 00 1c stw r31,28(r1) ffc0800c: 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 ); ffc08010: 38 81 00 08 addi r4,r1,8 rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { ffc08014: 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 ); ffc08018: 48 00 30 1d bl ffc0b034 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0801c: 38 00 00 04 li r0,4 ffc08020: 81 21 00 08 lwz r9,8(r1) ffc08024: 2f 89 00 00 cmpwi cr7,r9,0 ffc08028: 40 9e 00 34 bne- cr7,ffc0805c case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; ffc0802c: 81 23 01 44 lwz r9,324(r3) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc08030: 7c 00 00 a6 mfmsr r0 ffc08034: 7d 70 42 a6 mfsprg r11,0 ffc08038: 7c 0b 58 78 andc r11,r0,r11 ffc0803c: 7d 60 01 24 mtmsr r11 ) { ISR_Level level; _ISR_Disable( level ); *the_event_set |= the_new_events; ffc08040: 81 69 00 00 lwz r11,0(r9) ffc08044: 7d 7f fb 78 or r31,r11,r31 ffc08048: 93 e9 00 00 stw r31,0(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0804c: 7c 00 01 24 mtmsr r0 _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); ffc08050: 48 00 00 25 bl ffc08074 <_Event_Surrender> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08054: 48 00 2f c1 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08058: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0805c: 7c 03 03 78 mr r3,r0 ffc08060: 80 01 00 24 lwz r0,36(r1) ffc08064: 83 e1 00 1c lwz r31,28(r1) ffc08068: 38 21 00 20 addi r1,r1,32 ffc0806c: 7c 08 03 a6 mtlr r0 ffc08070: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f410 : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { ffc0f410: 94 21 ff e0 stwu r1,-32(r1) ffc0f414: 7c 08 02 a6 mflr r0 ffc0f418: 93 c1 00 18 stw r30,24(r1) Extension_Control *the_extension; if ( !id ) ffc0f41c: 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 ) { ffc0f420: 93 e1 00 1c stw r31,28(r1) ffc0f424: 7c 7f 1b 78 mr r31,r3 Extension_Control *the_extension; if ( !id ) ffc0f428: 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 ) { ffc0f42c: 90 01 00 24 stw r0,36(r1) ffc0f430: 93 81 00 10 stw r28,16(r1) ffc0f434: 93 a1 00 14 stw r29,20(r1) Extension_Control *the_extension; if ( !id ) ffc0f438: 41 82 00 10 beq- ffc0f448 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) ffc0f43c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0f440: 38 60 00 03 li r3,3 ffc0f444: 40 9e 00 24 bne- cr7,ffc0f468 ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } ffc0f448: 80 01 00 24 lwz r0,36(r1) ffc0f44c: 83 81 00 10 lwz r28,16(r1) ffc0f450: 7c 08 03 a6 mtlr r0 ffc0f454: 83 a1 00 14 lwz r29,20(r1) ffc0f458: 83 c1 00 18 lwz r30,24(r1) ffc0f45c: 83 e1 00 1c lwz r31,28(r1) ffc0f460: 38 21 00 20 addi r1,r1,32 ffc0f464: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0f468: 3d 20 00 00 lis r9,0 ffc0f46c: 81 69 29 74 lwz r11,10612(r9) ffc0f470: 38 0b 00 01 addi r0,r11,1 ffc0f474: 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 ); ffc0f478: 3f 80 00 00 lis r28,0 ffc0f47c: 90 81 00 08 stw r4,8(r1) ffc0f480: 3b 9c 37 38 addi r28,r28,14136 ffc0f484: 7f 83 e3 78 mr r3,r28 ffc0f488: 48 00 11 05 bl ffc1058c <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { ffc0f48c: 80 81 00 08 lwz r4,8(r1) ffc0f490: 7c 7d 1b 79 mr. r29,r3 ffc0f494: 41 82 00 8c beq- ffc0f520 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; ffc0f498: 81 44 00 00 lwz r10,0(r4) _User_extensions_Add_set( extension ); ffc0f49c: 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; ffc0f4a0: 81 64 00 04 lwz r11,4(r4) ffc0f4a4: 81 24 00 08 lwz r9,8(r4) ffc0f4a8: 80 04 00 0c lwz r0,12(r4) ffc0f4ac: 91 5d 00 24 stw r10,36(r29) ffc0f4b0: 91 7d 00 28 stw r11,40(r29) ffc0f4b4: 91 3d 00 2c stw r9,44(r29) ffc0f4b8: 90 1d 00 30 stw r0,48(r29) ffc0f4bc: 80 04 00 1c lwz r0,28(r4) ffc0f4c0: 81 64 00 14 lwz r11,20(r4) ffc0f4c4: 81 24 00 18 lwz r9,24(r4) ffc0f4c8: 81 44 00 10 lwz r10,16(r4) ffc0f4cc: 91 7d 00 38 stw r11,56(r29) ffc0f4d0: 91 5d 00 34 stw r10,52(r29) ffc0f4d4: 91 3d 00 3c stw r9,60(r29) ffc0f4d8: 90 1d 00 40 stw r0,64(r29) _User_extensions_Add_set( extension ); ffc0f4dc: 48 00 35 d5 bl ffc12ab0 <_User_extensions_Add_set> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0f4e0: 80 1d 00 08 lwz r0,8(r29) ffc0f4e4: 81 7c 00 1c lwz r11,28(r28) ffc0f4e8: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc0f4ec: 93 fd 00 0c stw r31,12(r29) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc0f4f0: 7f ab 49 2e stwx r29,r11,r9 &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; ffc0f4f4: 90 1e 00 00 stw r0,0(r30) _Thread_Enable_dispatch(); ffc0f4f8: 48 00 23 21 bl ffc11818 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc0f4fc: 80 01 00 24 lwz r0,36(r1) &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); ffc0f500: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc0f504: 83 81 00 10 lwz r28,16(r1) ffc0f508: 7c 08 03 a6 mtlr r0 ffc0f50c: 83 a1 00 14 lwz r29,20(r1) ffc0f510: 83 c1 00 18 lwz r30,24(r1) ffc0f514: 83 e1 00 1c lwz r31,28(r1) ffc0f518: 38 21 00 20 addi r1,r1,32 ffc0f51c: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); ffc0f520: 48 00 22 f9 bl ffc11818 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0f524: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc0f528: 4b ff ff 20 b ffc0f448 <== ALWAYS TAKEN ffc0f52c : #include rtems_status_code rtems_extension_delete( rtems_id id ) { ffc0f52c: 94 21 ff e0 stwu r1,-32(r1) ffc0f530: 7c 08 02 a6 mflr r0 ffc0f534: 7c 64 1b 78 mr r4,r3 ffc0f538: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) ffc0f53c: 3f e0 00 00 lis r31,0 ffc0f540: 3b ff 37 38 addi r31,r31,14136 ffc0f544: 7f e3 fb 78 mr r3,r31 ffc0f548: 90 01 00 24 stw r0,36(r1) ffc0f54c: 38 a1 00 08 addi r5,r1,8 ffc0f550: 93 c1 00 18 stw r30,24(r1) ffc0f554: 48 00 16 39 bl ffc10b8c <_Objects_Get> <== ALWAYS TAKEN ffc0f558: 7c 7e 1b 78 mr r30,r3 Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { ffc0f55c: 80 01 00 08 lwz r0,8(r1) ffc0f560: 38 60 00 04 li r3,4 ffc0f564: 2f 80 00 00 cmpwi cr7,r0,0 ffc0f568: 40 9e 00 2c bne- cr7,ffc0f594 case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); ffc0f56c: 38 7e 00 10 addi r3,r30,16 ffc0f570: 48 00 36 a9 bl ffc12c18 <_User_extensions_Remove_set> <== ALWAYS TAKEN _Objects_Close( &_Extension_Information, &the_extension->Object ); ffc0f574: 7f e3 fb 78 mr r3,r31 ffc0f578: 7f c4 f3 78 mr r4,r30 ffc0f57c: 48 00 10 d9 bl ffc10654 <_Objects_Close> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); ffc0f580: 7f e3 fb 78 mr r3,r31 ffc0f584: 7f c4 f3 78 mr r4,r30 ffc0f588: 48 00 14 25 bl ffc109ac <_Objects_Free> <== ALWAYS TAKEN _Extension_Free( the_extension ); _Thread_Enable_dispatch(); ffc0f58c: 48 00 22 8d bl ffc11818 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0f590: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0f594: 80 01 00 24 lwz r0,36(r1) ffc0f598: 83 c1 00 18 lwz r30,24(r1) ffc0f59c: 7c 08 03 a6 mtlr r0 ffc0f5a0: 83 e1 00 1c lwz r31,28(r1) ffc0f5a4: 38 21 00 20 addi r1,r1,32 ffc0f5a8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b770 : rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { ffc0b770: 94 21 ff f8 stwu r1,-8(r1) ffc0b774: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0b778: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { ffc0b77c: 90 01 00 0c stw r0,12(r1) ffc0b780: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0b784: 3c 60 00 00 lis r3,0 rtems_status_code rtems_extension_ident( rtems_name name, rtems_id *id ) { ffc0b788: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0b78c: 38 63 30 d8 addi r3,r3,12504 ffc0b790: 7c 04 03 78 mr r4,r0 ffc0b794: 60 a5 ff ff ori r5,r5,65535 ffc0b798: 48 00 17 dd bl ffc0cf74 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc0b79c: 80 01 00 0c lwz r0,12(r1) ffc0b7a0: 3d 20 ff c2 lis r9,-62 ffc0b7a4: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0b7a8: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc0b7ac: 39 29 5f 38 addi r9,r9,24376 ffc0b7b0: 7c 69 18 2e lwzx r3,r9,r3 ffc0b7b4: 38 21 00 08 addi r1,r1,8 ffc0b7b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08eac : */ void rtems_fatal_error_occurred( uint32_t the_error ) { ffc08eac: 94 21 ff f8 stwu r1,-8(r1) ffc08eb0: 7c 08 02 a6 mflr r0 ffc08eb4: 7c 65 1b 78 mr r5,r3 _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, FALSE, the_error ); ffc08eb8: 38 80 00 00 li r4,0 */ void rtems_fatal_error_occurred( uint32_t the_error ) { ffc08ebc: 90 01 00 0c stw r0,12(r1) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, FALSE, the_error ); ffc08ec0: 38 60 00 01 li r3,1 ffc08ec4: 48 00 0f 25 bl ffc09de8 <_Internal_error_Occurred> <== ALWAYS TAKEN ffc041ac : } int rtems_filesystem_dirname( const char *pathname ) { ffc041ac: 94 21 ff f0 stwu r1,-16(r1) ffc041b0: 7c 08 02 a6 mflr r0 ffc041b4: 93 e1 00 0c stw r31,12(r1) ffc041b8: 7c 7f 1b 78 mr r31,r3 ffc041bc: 90 01 00 14 stw r0,20(r1) int len = strlen( pathname ); ffc041c0: 48 01 04 b5 bl ffc14674 <== ALWAYS TAKEN while ( len ) { ffc041c4: 2f 83 00 00 cmpwi cr7,r3,0 int rtems_filesystem_dirname( const char *pathname ) { int len = strlen( pathname ); ffc041c8: 7c 69 1b 78 mr r9,r3 while ( len ) { ffc041cc: 41 9e 00 58 beq- cr7,ffc04224 <== NEVER TAKEN len--; ffc041d0: 38 63 ff ff addi r3,r3,-1 if ( rtems_filesystem_is_separator( pathname[len] ) ) ffc041d4: 7c 1f 18 ae lbzx r0,r31,r3 ffc041d8: 2f 80 00 2f cmpwi cr7,r0,47 ffc041dc: 41 9e 00 48 beq- cr7,ffc04224 <== NEVER TAKEN ffc041e0: 2f 80 00 5c cmpwi cr7,r0,92 ffc041e4: 41 9e 00 40 beq- cr7,ffc04224 <== NEVER TAKEN ffc041e8: 2f 80 00 00 cmpwi cr7,r0,0 ffc041ec: 38 03 00 01 addi r0,r3,1 ffc041f0: 7f ff 4a 14 add r31,r31,r9 ffc041f4: 7c 09 03 a6 mtctr r0 ffc041f8: 41 9e 00 2c beq- cr7,ffc04224 <== NEVER TAKEN const char *pathname ) { int len = strlen( pathname ); while ( len ) { ffc041fc: 42 40 00 28 bdz- ffc04224 <== NEVER TAKEN len--; if ( rtems_filesystem_is_separator( pathname[len] ) ) ffc04200: 88 1f ff fe lbz r0,-2(r31) ) { int len = strlen( pathname ); while ( len ) { len--; ffc04204: 38 63 ff ff addi r3,r3,-1 if ( rtems_filesystem_is_separator( pathname[len] ) ) ffc04208: 3b ff ff ff addi r31,r31,-1 ffc0420c: 2f 80 00 2f cmpwi cr7,r0,47 ffc04210: 2c 80 00 00 cmpwi cr1,r0,0 ffc04214: 2f 00 00 5c cmpwi cr6,r0,92 ffc04218: 41 9e 00 0c beq- cr7,ffc04224 ffc0421c: 41 9a 00 08 beq- cr6,ffc04224 <== NEVER TAKEN ffc04220: 40 86 ff dc bne+ cr1,ffc041fc <== ALWAYS TAKEN break; } return len; } ffc04224: 80 01 00 14 lwz r0,20(r1) ffc04228: 83 e1 00 0c lwz r31,12(r1) ffc0422c: 38 21 00 10 addi r1,r1,16 ffc04230: 7c 08 03 a6 mtlr r0 ffc04234: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04360 : /* * Verify Input parameters. */ if ( !pathname ) ffc04360: 2c 03 00 00 cmpwi r3,0 <== ALWAYS TAKEN int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { ffc04364: 94 21 ff f8 stwu r1,-8(r1) ffc04368: 7c 08 02 a6 mflr r0 ffc0436c: 90 01 00 0c stw r0,12(r1) /* * Verify Input parameters. */ if ( !pathname ) ffc04370: 41 82 00 e8 beq- ffc04458 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) ffc04374: 2f 86 00 00 cmpwi cr7,r6,0 ffc04378: 41 9e 00 c0 beq- cr7,ffc04438 <== NEVER TAKEN /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc0437c: 88 03 00 00 lbz r0,0(r3) <== ALWAYS TAKEN ffc04380: 2f 80 00 2f cmpwi cr7,r0,47 ffc04384: 41 9e 00 14 beq- cr7,ffc04398 ffc04388: 2f 80 00 5c cmpwi cr7,r0,92 ffc0438c: 41 9e 00 0c beq- cr7,ffc04398 <== NEVER TAKEN ffc04390: 2f 80 00 00 cmpwi cr7,r0,0 ffc04394: 40 9e 00 54 bne- cr7,ffc043e8 <== ALWAYS TAKEN ffc04398: 3d 20 00 00 lis r9,0 ffc0439c: 81 29 26 dc lwz r9,9948(r9) ffc043a0: 39 60 00 01 li r11,1 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], ffc043a4: 7c 63 5a 14 add r3,r3,r11 <== ALWAYS TAKEN /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc043a8: 80 09 00 18 lwz r0,24(r9) ffc043ac: 81 89 00 1c lwz r12,28(r9) ffc043b0: 81 09 00 20 lwz r8,32(r9) ffc043b4: 81 49 00 24 lwz r10,36(r9) <== ALWAYS TAKEN ffc043b8: 90 06 00 00 stw r0,0(r6) ffc043bc: 38 00 00 01 li r0,1 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], ffc043c0: 7c 80 20 50 subf r4,r0,r4 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc043c4: 91 86 00 04 stw r12,4(r6) return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } ffc043c8: 80 01 00 0c lwz r0,12(r1) ffc043cc: 38 21 00 08 addi r1,r1,8 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc043d0: 91 06 00 08 stw r8,8(r6) return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } ffc043d4: 7c 08 03 a6 mtlr r0 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc043d8: 91 46 00 0c stw r10,12(r6) ffc043dc: 81 29 00 28 lwz r9,40(r9) ffc043e0: 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], ffc043e4: 4b ff fe 54 b ffc04238 <== ALWAYS TAKEN /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc043e8: 3d 20 00 00 lis r9,0 ffc043ec: 81 29 26 dc lwz r9,9948(r9) ffc043f0: 39 60 00 00 li r11,0 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], ffc043f4: 7c 63 5a 14 add r3,r3,r11 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc043f8: 80 09 00 04 lwz r0,4(r9) ffc043fc: 81 89 00 08 lwz r12,8(r9) ffc04400: 81 09 00 0c lwz r8,12(r9) ffc04404: 81 49 00 10 lwz r10,16(r9) ffc04408: 90 06 00 00 stw r0,0(r6) ffc0440c: 38 00 00 00 li r0,0 /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], ffc04410: 7c 80 20 50 subf r4,r0,r4 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc04414: 91 86 00 04 stw r12,4(r6) return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } ffc04418: 80 01 00 0c lwz r0,12(r1) ffc0441c: 38 21 00 08 addi r1,r1,8 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc04420: 91 06 00 08 stw r8,8(r6) return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } ffc04424: 7c 08 03 a6 mtlr r0 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); ffc04428: 91 46 00 0c stw r10,12(r6) ffc0442c: 81 29 00 14 lwz r9,20(r9) ffc04430: 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], ffc04434: 4b ff fe 04 b ffc04238 <== ALWAYS TAKEN if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc04438: 48 00 ef 41 bl ffc13378 <__errno> <== NOT EXECUTED ffc0443c: 38 00 00 05 li r0,5 <== NOT EXECUTED ffc04440: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } ffc04444: 80 01 00 0c lwz r0,12(r1) ffc04448: 38 60 ff ff li r3,-1 ffc0444c: 38 21 00 08 addi r1,r1,8 ffc04450: 7c 08 03 a6 mtlr r0 ffc04454: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc04458: 48 00 ef 21 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0445c: 38 00 00 0e li r0,14 ffc04460: 90 03 00 00 stw r0,0(r3) ffc04464: 4b ff ff e0 b ffc04444 <== ALWAYS TAKEN ffc04238 : /* * Verify Input parameters. */ if ( !pathname ) ffc04238: 2f 83 00 00 cmpwi cr7,r3,0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { ffc0423c: 94 21 ff e8 stwu r1,-24(r1) ffc04240: 7c 08 02 a6 mflr r0 ffc04244: 93 a1 00 0c stw r29,12(r1) ffc04248: 7c bd 2b 78 mr r29,r5 ffc0424c: 93 c1 00 10 stw r30,16(r1) ffc04250: 7c fe 3b 78 mr r30,r7 ffc04254: 93 e1 00 14 stw r31,20(r1) ffc04258: 7c df 33 78 mr r31,r6 ffc0425c: 90 01 00 1c stw r0,28(r1) ffc04260: 93 81 00 08 stw r28,8(r1) /* * Verify Input parameters. */ if ( !pathname ) ffc04264: 41 9e 00 d4 beq- cr7,ffc04338 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) ffc04268: 2f 86 00 00 cmpwi cr7,r6,0 ffc0426c: 41 9e 00 e0 beq- cr7,ffc0434c <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) ffc04270: 81 26 00 0c lwz r9,12(r6) <== ALWAYS TAKEN ffc04274: 80 09 00 00 lwz r0,0(r9) ffc04278: 2f 80 00 00 cmpwi cr7,r0,0 ffc0427c: 41 9e 00 a8 beq- cr7,ffc04324 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); ffc04280: 7c 09 03 a6 mtctr r0 ffc04284: 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 ) { ffc04288: 7c 7c 1b 79 mr. r28,r3 ffc0428c: 40 82 00 34 bne- ffc042c0 ffc04290: 2f 9e 00 00 cmpwi cr7,r30,0 ffc04294: 41 9e 00 2c beq- cr7,ffc042c0 if ( !pathloc->ops->node_type_h ){ ffc04298: 81 3f 00 0c lwz r9,12(r31) ffc0429c: 80 09 00 10 lwz r0,16(r9) ffc042a0: 2f 80 00 00 cmpwi cr7,r0,0 ffc042a4: 41 9e 00 68 beq- cr7,ffc0430c <== NEVER TAKEN rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); ffc042a8: 7f e3 fb 78 mr r3,r31 ffc042ac: 7c 09 03 a6 mtctr r0 ffc042b0: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ffc042b4: 38 63 ff fd addi r3,r3,-3 ffc042b8: 2b 83 00 01 cmplwi cr7,r3,1 ffc042bc: 40 9d 00 28 ble- cr7,ffc042e4 result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } ffc042c0: 80 01 00 1c lwz r0,28(r1) ffc042c4: 7f 83 e3 78 mr r3,r28 ffc042c8: 83 a1 00 0c lwz r29,12(r1) ffc042cc: 7c 08 03 a6 mtlr r0 ffc042d0: 83 81 00 08 lwz r28,8(r1) ffc042d4: 83 c1 00 10 lwz r30,16(r1) ffc042d8: 83 e1 00 14 lwz r31,20(r1) ffc042dc: 38 21 00 18 addi r1,r1,24 ffc042e0: 4e 80 00 20 blr <== ALWAYS TAKEN type = (*pathloc->ops->node_type_h)( pathloc ); if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ ffc042e4: 81 3f 00 0c lwz r9,12(r31) ffc042e8: 80 09 00 34 lwz r0,52(r9) ffc042ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc042f0: 41 9e 00 1c beq- cr7,ffc0430c <== NEVER TAKEN * 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 ); ffc042f4: 7f e3 fb 78 mr r3,r31 ffc042f8: 7c 09 03 a6 mtctr r0 ffc042fc: 7f a4 eb 78 mr r4,r29 ffc04300: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc04304: 7c 7c 1b 78 mr r28,r3 ffc04308: 4b ff ff b8 b ffc042c0 <== ALWAYS TAKEN if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); ffc0430c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc04310: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc04314: 41 9e 00 10 beq- cr7,ffc04324 <== NOT EXECUTED ffc04318: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0431c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc04320: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc04324: 48 00 f0 55 bl ffc13378 <__errno> <== NOT EXECUTED ffc04328: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0432c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04330: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc04334: 4b ff ff 8c b ffc042c0 <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc04338: 48 00 f0 41 bl ffc13378 <__errno> <== NOT EXECUTED ffc0433c: 38 00 00 0e li r0,14 <== NOT EXECUTED ffc04340: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04344: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc04348: 4b ff ff 78 b ffc042c0 <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ ffc0434c: 48 00 f0 2d bl ffc13378 <__errno> <== NOT EXECUTED ffc04350: 38 00 00 05 li r0,5 <== NOT EXECUTED ffc04354: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc04358: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc0435c: 4b ff ff 64 b ffc042c0 <== NOT EXECUTED ffc03fd4 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { ffc03fd4: 94 21 ff c8 stwu r1,-56(r1) ffc03fd8: 7c 08 02 a6 mflr r0 ffc03fdc: 93 e1 00 34 stw r31,52(r1) <== ALWAYS TAKEN /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; ffc03fe0: 3f e0 00 00 lis r31,0 <== ALWAYS TAKEN ffc03fe4: 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 ) { ffc03fe8: 90 01 00 3c stw r0,60(r1) /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; ffc03fec: 38 00 00 12 li r0,18 ffc03ff0: 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 ) { ffc03ff4: 93 a1 00 2c stw r29,44(r1) ffc03ff8: 93 c1 00 30 stw r30,48(r1) */ rtems_filesystem_umask = 022; init_fs_mount_table(); ffc03ffc: 48 00 0b 3d bl ffc04b38 <== ALWAYS TAKEN /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) ffc04000: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc04004: 80 09 26 98 lwz r0,9880(r9) <== ALWAYS TAKEN ffc04008: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc0400c: 41 9e 01 2c beq- cr7,ffc04138 <== NEVER TAKEN rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; ffc04010: 3d 20 00 00 lis r9,0 ffc04014: 81 29 26 94 lwz r9,9876(r9) status = mount( ffc04018: 38 61 00 08 addi r3,r1,8 ffc0401c: 80 e9 00 0c lwz r7,12(r9) ffc04020: 80 89 00 00 lwz r4,0(r9) <== ALWAYS TAKEN ffc04024: 80 a9 00 04 lwz r5,4(r9) ffc04028: 80 c9 00 08 lwz r6,8(r9) ffc0402c: 48 00 0b 31 bl ffc04b5c <== ALWAYS TAKEN &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) ffc04030: 2f 83 ff ff cmpwi cr7,r3,-1 <== ALWAYS TAKEN ffc04034: 41 9e 01 1c beq- cr7,ffc04150 <== NEVER TAKEN * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc04038: 81 61 00 08 lwz r11,8(r1) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc0403c: 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; ffc04040: 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); ffc04044: 3b de f7 10 addi r30,r30,-2288 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc04048: 80 eb 00 1c lwz r7,28(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc0404c: 3b a1 00 0c addi r29,r1,12 <== ALWAYS TAKEN * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc04050: 81 0b 00 20 lwz r8,32(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc04054: 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; ffc04058: 81 4b 00 24 lwz r10,36(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc0405c: 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; ffc04060: 80 0b 00 28 lwz r0,40(r11) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc04064: 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; ffc04068: 90 e9 00 18 stw r7,24(r9) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc0406c: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc04070: 38 e0 00 00 li r7,0 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; ffc04074: 91 09 00 1c stw r8,28(r9) ffc04078: 91 49 00 20 stw r10,32(r9) ffc0407c: 90 09 00 24 stw r0,36(r9) ffc04080: 80 0b 00 2c lwz r0,44(r11) &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; ffc04084: 39 60 00 00 li r11,0 ffc04088: 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; ffc0408c: 90 09 00 28 stw r0,40(r9) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc04090: 48 00 02 d1 bl ffc04360 <== ALWAYS TAKEN rtems_filesystem_root = loc; ffc04094: 81 3f 26 dc lwz r9,9948(r31) ffc04098: 81 41 00 10 lwz r10,16(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc0409c: 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; ffc040a0: 81 61 00 14 lwz r11,20(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc040a4: 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; ffc040a8: 80 01 00 18 lwz r0,24(r1) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc040ac: 38 a0 00 00 li r5,0 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc040b0: 81 01 00 0c lwz r8,12(r1) <== ALWAYS TAKEN /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc040b4: 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; ffc040b8: 91 49 00 1c stw r10,28(r9) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc040bc: 7f c3 f3 78 mr r3,r30 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc040c0: 91 09 00 18 stw r8,24(r9) ffc040c4: 91 69 00 20 stw r11,32(r9) ffc040c8: 90 09 00 24 stw r0,36(r9) ffc040cc: 80 01 00 1c lwz r0,28(r1) ffc040d0: 90 09 00 28 stw r0,40(r9) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc040d4: 48 00 02 8d bl ffc04360 <== ALWAYS TAKEN rtems_filesystem_current = loc; ffc040d8: 80 01 00 18 lwz r0,24(r1) <== ALWAYS TAKEN ffc040dc: 81 3f 26 dc lwz r9,9948(r31) * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); ffc040e0: 3c 60 ff c2 lis r3,-62 <== 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; ffc040e4: 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); ffc040e8: 38 63 f7 14 addi r3,r3,-2284 /* 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; ffc040ec: 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); ffc040f0: 38 80 01 ff li r4,511 /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_current = loc; ffc040f4: 81 01 00 0c lwz r8,12(r1) ffc040f8: 91 49 00 08 stw r10,8(r9) ffc040fc: 91 09 00 04 stw r8,4(r9) ffc04100: 91 69 00 0c stw r11,12(r9) ffc04104: 90 09 00 10 stw r0,16(r9) ffc04108: 80 01 00 1c lwz r0,28(r1) <== ALWAYS TAKEN ffc0410c: 90 09 00 14 stw r0,20(r9) * * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); ffc04110: 48 00 08 1d bl ffc0492c <== ALWAYS TAKEN if ( status != 0 ) ffc04114: 2f 83 00 00 cmpwi cr7,r3,0 ffc04118: 40 9e 00 2c bne- cr7,ffc04144 <== NEVER TAKEN * 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. */ } ffc0411c: 80 01 00 3c lwz r0,60(r1) ffc04120: 83 a1 00 2c lwz r29,44(r1) ffc04124: 7c 08 03 a6 mtlr r0 ffc04128: 83 c1 00 30 lwz r30,48(r1) ffc0412c: 83 e1 00 34 lwz r31,52(r1) <== ALWAYS TAKEN ffc04130: 38 21 00 38 addi r1,r1,56 ffc04134: 4e 80 00 20 blr <== ALWAYS TAKEN /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); ffc04138: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc0413c: 60 63 00 01 ori r3,r3,1 <== NOT EXECUTED ffc04140: 48 00 4d 6d bl ffc08eac <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); ffc04144: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc04148: 60 63 00 03 ori r3,r3,3 <== NOT EXECUTED ffc0414c: 48 00 4d 61 bl ffc08eac <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); ffc04150: 3c 60 ab cd lis r3,-21555 <== NOT EXECUTED ffc04154: 60 63 00 02 ori r3,r3,2 <== NOT EXECUTED ffc04158: 48 00 4d 55 bl ffc08eac <== NOT EXECUTED ffc0d244 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ ffc0d244: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc0d248: 80 64 00 00 lwz r3,0(r4) <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } ffc0d24c: 7c 03 1a 78 xor r3,r0,r3 <== NOT EXECUTED ffc0d250: 7c 63 00 34 cntlzw r3,r3 <== NOT EXECUTED ffc0d254: 54 63 d9 7e rlwinm r3,r3,27,5,31 <== NOT EXECUTED ffc0d258: 4e 80 00 20 blr <== NOT EXECUTED ffc0415c : { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) ffc0415c: 88 03 00 00 lbz r0,0(r3) int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { ffc04160: 7c 69 1b 78 mr r9,r3 /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) ffc04164: 2f 80 00 00 cmpwi cr7,r0,0 ffc04168: 41 9e 00 3c beq- cr7,ffc041a4 <== NEVER TAKEN ffc0416c: 2f 84 00 00 cmpwi cr7,r4,0 ffc04170: 7c 89 03 a6 mtctr r4 ffc04174: 38 60 00 00 li r3,0 ffc04178: 41 9e 00 2c beq- cr7,ffc041a4 <== NEVER TAKEN ffc0417c: 2f 80 00 2f cmpwi cr7,r0,47 ffc04180: 2f 00 00 5c cmpwi cr6,r0,92 ffc04184: 41 9e 00 08 beq- cr7,ffc0418c ffc04188: 4c ba 00 20 bnelr+ cr6 <== ALWAYS TAKEN { pathname++; pathnamelen--; stripped++; ffc0418c: 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 ) ) ffc04190: 7c 09 18 ae lbzx r0,r9,r3 ffc04194: 2f 80 00 00 cmpwi cr7,r0,0 ffc04198: 4d 9e 00 20 beqlr cr7 <== NEVER TAKEN ffc0419c: 42 00 ff e0 bdnz+ ffc0417c <== ALWAYS TAKEN pathname++; pathnamelen--; stripped++; } return stripped; } ffc041a0: 4e 80 00 20 blr <== NOT EXECUTED { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) ffc041a4: 38 60 00 00 li r3,0 <== NOT EXECUTED pathname++; pathnamelen--; stripped++; } return stripped; } ffc041a8: 4e 80 00 20 blr <== NOT EXECUTED ffc0b56c : #endif #include const char *rtems_get_version_string(void) { ffc0b56c: 3c 60 ff c2 lis r3,-62 return _RTEMS_version; } ffc0b570: 38 63 5a 30 addi r3,r3,23088 ffc0b574: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d44 : /* * Run the API and BSPs predriver hook. */ _API_extensions_Run_predriver(); #endif } ffc08d44: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d98 : #endif Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; void rtems_initialize_data_structures(void) { ffc08d98: 94 21 ff f0 stwu r1,-16(r1) ffc08d9c: 7c 08 02 a6 mflr r0 ffc08da0: 93 c1 00 08 stw r30,8(r1) ffc08da4: 3b c0 00 00 li r30,0 ffc08da8: 93 e1 00 0c stw r31,12(r1) ffc08dac: 3f e0 00 00 lis r31,0 ffc08db0: 90 01 00 14 stw r0,20(r1) ffc08db4: 93 df 27 d4 stw r30,10196(r31) #endif /* * Initialize any target architecture specific support as early as possible */ _CPU_Initialize(); ffc08db8: 48 01 4c 69 bl ffc1da20 <_CPU_Initialize> <== ALWAYS TAKEN /* * Do this as early as possible to ensure no debugging output * is even attempted to be printed. */ _Debug_Manager_initialization(); ffc08dbc: 48 00 68 8d bl ffc0f648 <_Debug_Manager_initialization> <== ALWAYS TAKEN _API_extensions_Initialization(); ffc08dc0: 48 00 03 2d bl ffc090ec <_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; ffc08dc4: 38 00 00 01 li r0,1 <== ALWAYS TAKEN ffc08dc8: 3d 20 00 00 lis r9,0 ffc08dcc: 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(); ffc08dd0: 48 00 3d 49 bl ffc0cb18 <_Workspace_Handler_initialization> <== ALWAYS TAKEN _User_extensions_Handler_initialization(); ffc08dd4: 48 00 34 8d bl ffc0c260 <_User_extensions_Handler_initialization> <== ALWAYS TAKEN _ISR_Handler_initialization(); ffc08dd8: 48 00 10 55 bl ffc09e2c <_ISR_Handler_initialization> <== ALWAYS TAKEN /* * Initialize the internal support API and allocator Mutex */ _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; ffc08ddc: 3d 20 00 00 lis r9,0 ffc08de0: 38 09 2c a0 addi r0,r9,11424 _API_Mutex_Initialization( 1 ); ffc08de4: 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; ffc08de8: 3d 20 00 00 lis r9,0 ffc08dec: 90 09 2c 24 stw r0,11300(r9) <== ALWAYS TAKEN _API_Mutex_Initialization( 1 ); ffc08df0: 48 00 04 f5 bl ffc092e4 <_API_Mutex_Initialization> <== ALWAYS TAKEN _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); ffc08df4: 3c 60 00 00 lis r3,0 ffc08df8: 38 63 27 a8 addi r3,r3,10152 ffc08dfc: 48 00 04 09 bl ffc09204 <_API_Mutex_Allocate> <== ALWAYS TAKEN { int index; _Priority_Major_bit_map = 0; for ( index=0 ; index <16 ; index++ ) _Priority_Bit_map[ index ] = 0; ffc08e00: 39 60 00 10 li r11,16 ffc08e04: 7d 69 03 a6 mtctr r11 RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { int index; _Priority_Major_bit_map = 0; ffc08e08: 3d 20 00 00 lis r9,0 ffc08e0c: 93 c9 27 a4 stw r30,10148(r9) ffc08e10: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc08e14: 39 29 2d a0 addi r9,r9,11680 for ( index=0 ; index <16 ; index++ ) _Priority_Bit_map[ index ] = 0; ffc08e18: 38 00 00 00 li r0,0 ffc08e1c: 90 09 00 00 stw r0,0(r9) ffc08e20: 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++ ) ffc08e24: 42 00 ff f8 bdnz+ ffc08e1c _Priority_Handler_initialization(); _Watchdog_Handler_initialization(); ffc08e28: 48 00 3a 51 bl ffc0c878 <_Watchdog_Handler_initialization> <== ALWAYS TAKEN _TOD_Handler_initialization(); ffc08e2c: 48 00 0a e9 bl ffc09914 <_TOD_Handler_initialization> <== ALWAYS TAKEN _Thread_Handler_initialization(); ffc08e30: 48 00 25 79 bl ffc0b3a8 <_Thread_Handler_initialization> <== ALWAYS TAKEN _MPCI_Handler_initialization( RTEMS_TIMEOUT ); #endif /* MANAGERS */ _RTEMS_API_Initialize(); ffc08e34: 48 00 02 61 bl ffc09094 <_RTEMS_API_Initialize> <== ALWAYS TAKEN _Extension_Manager_initialization(); ffc08e38: 48 00 00 31 bl ffc08e68 <_Extension_Manager_initialization> <== ALWAYS TAKEN _IO_Manager_initialization(); ffc08e3c: 48 00 00 f1 bl ffc08f2c <_IO_Manager_initialization> <== ALWAYS TAKEN #ifdef RTEMS_POSIX_API _POSIX_API_Initialize(); ffc08e40: 48 00 01 fd bl ffc0903c <_POSIX_API_Initialize> <== ALWAYS TAKEN ffc08e44: 38 00 00 01 li r0,1 <== ALWAYS TAKEN ffc08e48: 90 1f 27 d4 stw r0,10196(r31) <== ALWAYS TAKEN * _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(); ffc08e4c: 48 00 1e 75 bl ffc0acc0 <_Thread_Create_idle> <== ALWAYS TAKEN /* * Scheduling can properly occur now as long as we avoid dispatching. */ } ffc08e50: 80 01 00 14 lwz r0,20(r1) <== ALWAYS TAKEN ffc08e54: 83 c1 00 08 lwz r30,8(r1) <== ALWAYS TAKEN ffc08e58: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc08e5c: 83 e1 00 0c lwz r31,12(r1) ffc08e60: 38 21 00 10 addi r1,r1,16 ffc08e64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d74 : _API_extensions_Run_predriver(); #endif } void rtems_initialize_device_drivers(void) { ffc08d74: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN ffc08d78: 7c 08 02 a6 mflr r0 ffc08d7c: 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(); ffc08d80: 48 00 01 49 bl ffc08ec8 <_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(); ffc08d84: 48 00 03 89 bl ffc0910c <_API_extensions_Run_postdriver> <== ALWAYS TAKEN } ffc08d88: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc08d8c: 38 21 00 08 addi r1,r1,8 ffc08d90: 7c 08 03 a6 mtlr r0 ffc08d94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08d48 : */ _API_extensions_Run_postdriver(); } void rtems_initialize_start_multitasking(void) { ffc08d48: 94 21 ff f8 stwu r1,-8(r1) ffc08d4c: 7c 08 02 a6 mflr r0 RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; ffc08d50: 3d 20 00 00 lis r9,0 ffc08d54: 90 01 00 0c stw r0,12(r1) ffc08d58: 38 00 00 02 li r0,2 <== ALWAYS TAKEN ffc08d5c: 90 09 27 d4 stw r0,10196(r9) _System_state_Set( SYSTEM_STATE_BEGIN_MULTITASKING ); _Thread_Start_multitasking(); ffc08d60: 48 00 30 fd bl ffc0be5c <_Thread_Start_multitasking> <== ALWAYS TAKEN ****** APPLICATION RUNS HERE ****** ****** RETURNS WHEN SYSTEM IS SHUT DOWN ****** ******************************************************************* ******************************************************************* *******************************************************************/ } ffc08d64: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc08d68: 38 21 00 08 addi r1,r1,8 ffc08d6c: 7c 08 03 a6 mtlr r0 ffc08d70: 4e 80 00 20 blr <== ALWAYS TAKEN ffc095dc : static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc095dc: 7c 60 00 a6 mfmsr r3 ffc095e0: 7c 10 42 a6 mfsprg r0,0 ffc095e4: 7c 60 00 78 andc r0,r3,r0 ffc095e8: 7c 00 01 24 mtmsr r0 rtems_interrupt_level previous_level; _ISR_Disable( previous_level ); return previous_level; } ffc095ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc095f0 : return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc095f0: 7c 60 01 24 mtmsr r3 void rtems_interrupt_enable( rtems_interrupt_level previous_level ) { _ISR_Enable( previous_level ); } ffc095f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc095f8 : static inline void ppc_interrupt_flash( uint32_t level ) { uint32_t current_level; asm volatile ( ffc095f8: 7c 00 00 a6 mfmsr r0 ffc095fc: 7c 60 01 24 mtmsr r3 ffc09600: 7c 00 01 24 mtmsr r0 void rtems_interrupt_flash( rtems_interrupt_level previous_level ) { _ISR_Flash( previous_level ); } ffc09604: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09608 : #undef rtems_interrupt_is_in_progress bool rtems_interrupt_is_in_progress( void ) { return _ISR_Is_in_progress(); ffc09608: 3d 20 00 00 lis r9,0 ffc0960c: 80 69 27 ec lwz r3,10220(r9) } ffc09610: 31 23 ff ff addic r9,r3,-1 ffc09614: 7c 09 19 10 subfe r0,r9,r3 ffc09618: 7c 03 03 78 mr r3,r0 ffc0961c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08eb4 : rtems_attribute rtems_interrupt_level_attribute( uint32_t level ) { return RTEMS_INTERRUPT_LEVEL(level); } ffc08eb4: 54 63 07 fe clrlwi r3,r3,31 ffc08eb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12168 : rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc12168: 7c 08 02 a6 mflr r0 ffc1216c: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc12170: 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 ) { ffc12174: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc12178: 80 09 27 ec lwz r0,10220(r9) ffc1217c: 7f 80 18 40 cmplw cr7,r0,r3 ffc12180: 38 00 00 0a li r0,10 ffc12184: 40 9d 00 30 ble- cr7,ffc121b4 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; ffc12188: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc1218c: 80 0b 27 f0 lwz r0,10224(r11) ffc12190: 1d 23 00 18 mulli r9,r3,24 ffc12194: 7d 20 4a 14 add r9,r0,r9 ffc12198: 81 29 00 08 lwz r9,8(r9) <== ALWAYS TAKEN return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc1219c: 38 00 00 00 li r0,0 ffc121a0: 2f 89 00 00 cmpwi cr7,r9,0 ffc121a4: 41 9e 00 10 beq- cr7,ffc121b4 ffc121a8: 7d 29 03 a6 mtctr r9 <== ALWAYS TAKEN ffc121ac: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc121b0: 7c 60 1b 78 mr r0,r3 } ffc121b4: 7c 03 03 78 mr r3,r0 ffc121b8: 80 01 00 0c lwz r0,12(r1) ffc121bc: 38 21 00 08 addi r1,r1,8 ffc121c0: 7c 08 03 a6 mtlr r0 ffc121c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc121c8 : rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc121c8: 7c 08 02 a6 mflr r0 ffc121cc: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc121d0: 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 ) { ffc121d4: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc121d8: 80 09 27 ec lwz r0,10220(r9) ffc121dc: 7f 80 18 40 cmplw cr7,r0,r3 <== ALWAYS TAKEN ffc121e0: 38 00 00 0a li r0,10 ffc121e4: 40 9d 00 30 ble- cr7,ffc12214 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; ffc121e8: 3d 60 00 00 lis r11,0 ffc121ec: 80 0b 27 f0 lwz r0,10224(r11) ffc121f0: 1d 23 00 18 mulli r9,r3,24 ffc121f4: 7d 20 4a 14 add r9,r0,r9 ffc121f8: 81 29 00 14 lwz r9,20(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc121fc: 38 00 00 00 li r0,0 ffc12200: 2f 89 00 00 cmpwi cr7,r9,0 ffc12204: 41 9e 00 10 beq- cr7,ffc12214 ffc12208: 7d 29 03 a6 mtctr r9 ffc1220c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc12210: 7c 60 1b 78 mr r0,r3 } ffc12214: 7c 03 03 78 mr r3,r0 ffc12218: 80 01 00 0c lwz r0,12(r1) ffc1221c: 38 21 00 08 addi r1,r1,8 ffc12220: 7c 08 03 a6 mtlr r0 ffc12224: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0f69c : rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc0f69c: 7c 08 02 a6 mflr r0 ffc0f6a0: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc0f6a4: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc0f6a8: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc0f6ac: 80 09 27 ec lwz r0,10220(r9) ffc0f6b0: 7f 80 18 40 cmplw cr7,r0,r3 ffc0f6b4: 38 00 00 0a li r0,10 ffc0f6b8: 40 9d 00 2c ble- cr7,ffc0f6e4 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; ffc0f6bc: 3d 60 00 00 lis r11,0 ffc0f6c0: 81 6b 27 f0 lwz r11,10224(r11) ffc0f6c4: 1d 23 00 18 mulli r9,r3,24 <== ALWAYS TAKEN ffc0f6c8: 7d 2b 48 2e lwzx r9,r11,r9 return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc0f6cc: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc0f6d0: 2f 89 00 00 cmpwi cr7,r9,0 ffc0f6d4: 41 9e 00 10 beq- cr7,ffc0f6e4 ffc0f6d8: 7d 29 03 a6 mtctr r9 ffc0f6dc: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0f6e0: 7c 60 1b 78 mr r0,r3 <== ALWAYS TAKEN } ffc0f6e4: 7c 03 03 78 mr r3,r0 ffc0f6e8: 80 01 00 0c lwz r0,12(r1) ffc0f6ec: 38 21 00 08 addi r1,r1,8 ffc0f6f0: 7c 08 03 a6 mtlr r0 ffc0f6f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc03db0 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { ffc03db0: 94 21 ff c0 stwu r1,-64(r1) <== NOT EXECUTED ffc03db4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc03db8: 93 61 00 2c stw r27,44(r1) <== NOT EXECUTED ffc03dbc: 90 01 00 44 stw r0,68(r1) <== NOT EXECUTED ffc03dc0: 93 81 00 30 stw r28,48(r1) <== NOT EXECUTED ffc03dc4: 93 a1 00 34 stw r29,52(r1) <== NOT EXECUTED ffc03dc8: 7c 9d 23 78 mr r29,r4 <== NOT EXECUTED ffc03dcc: 93 c1 00 38 stw r30,56(r1) <== NOT EXECUTED ffc03dd0: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED ffc03dd4: 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 ); ffc03dd8: 48 01 08 9d bl ffc14674 <== NOT EXECUTED ffc03ddc: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc03de0: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc03de4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc03de8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc03dec: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc03df0: 38 e0 00 01 li r7,1 <== NOT EXECUTED ffc03df4: 48 00 05 6d bl ffc04360 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { ffc03df8: 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 ); ffc03dfc: 7c 7c 1b 78 mr r28,r3 <== NOT EXECUTED the_jnode = loc.node_access; ffc03e00: 83 61 00 08 lwz r27,8(r1) <== NOT EXECUTED if ( !loc.ops->node_type_h ) { ffc03e04: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc03e08: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03e0c: 41 9e 00 64 beq- cr7,ffc03e70 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); ffc03e10: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03e14: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03e18: 4e 80 04 21 bctrl <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { ffc03e1c: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc03e20: 41 9e 00 9c beq- cr7,ffc03ebc <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc03e24: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc03e28: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc03e2c: 41 9e 00 e4 beq- cr7,ffc03f10 <== NOT EXECUTED ffc03e30: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03e34: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03e38: 41 9e 00 d8 beq- cr7,ffc03f10 <== NOT EXECUTED ffc03e3c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03e40: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03e44: 4e 80 04 21 bctrl <== NOT EXECUTED ffc03e48: 38 60 00 0d li r3,13 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } ffc03e4c: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc03e50: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc03e54: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03e58: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc03e5c: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc03e60: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc03e64: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc03e68: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc03e6c: 4e 80 00 20 blr <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); ffc03e70: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03e74: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03e78: 41 9e 00 10 beq- cr7,ffc03e88 <== NOT EXECUTED ffc03e7c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03e80: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03e84: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc03e88: 48 00 f4 f1 bl ffc13378 <__errno> <== NOT EXECUTED ffc03e8c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc03e90: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc03e94: 38 60 ff ff li r3,-1 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } ffc03e98: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED ffc03e9c: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc03ea0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03ea4: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc03ea8: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc03eac: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc03eb0: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc03eb4: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc03eb8: 4e 80 00 20 blr <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { ffc03ebc: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED ffc03ec0: 40 9e ff 64 bne+ cr7,ffc03e24 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; ffc03ec4: 93 dd 00 00 stw r30,0(r29) <== NOT EXECUTED device_info->device_name_length = strlen( name ); ffc03ec8: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc03ecc: 48 01 07 a9 bl ffc14674 <== NOT EXECUTED device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); ffc03ed0: 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 ); ffc03ed4: 90 7d 00 04 stw r3,4(r29) <== NOT EXECUTED device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); ffc03ed8: 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; ffc03edc: 80 1b 00 50 lwz r0,80(r27) <== NOT EXECUTED ffc03ee0: 90 1d 00 08 stw r0,8(r29) <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; ffc03ee4: 80 1b 00 54 lwz r0,84(r27) <== NOT EXECUTED ffc03ee8: 90 1d 00 0c stw r0,12(r29) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc03eec: 41 9e 00 4c beq- cr7,ffc03f38 <== NOT EXECUTED ffc03ef0: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc03ef4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc03ef8: 41 9e 00 40 beq- cr7,ffc03f38 <== NOT EXECUTED ffc03efc: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc03f00: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc03f04: 4e 80 04 21 bctrl <== NOT EXECUTED ffc03f08: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc03f0c: 4b ff ff 40 b ffc03e4c <== NOT EXECUTED return RTEMS_SUCCESSFUL; } ffc03f10: 80 01 00 44 lwz r0,68(r1) <== NOT EXECUTED device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); ffc03f14: 38 60 00 0d li r3,13 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } ffc03f18: 83 61 00 2c lwz r27,44(r1) <== NOT EXECUTED ffc03f1c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc03f20: 83 81 00 30 lwz r28,48(r1) <== NOT EXECUTED ffc03f24: 83 a1 00 34 lwz r29,52(r1) <== NOT EXECUTED ffc03f28: 83 c1 00 38 lwz r30,56(r1) <== NOT EXECUTED ffc03f2c: 83 e1 00 3c lwz r31,60(r1) <== NOT EXECUTED ffc03f30: 38 21 00 40 addi r1,r1,64 <== NOT EXECUTED ffc03f34: 4e 80 00 20 blr <== NOT EXECUTED device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); ffc03f38: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc03f3c: 4b ff ff 10 b ffc03e4c <== NOT EXECUTED ffc12228 : rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc12228: 7c 08 02 a6 mflr r0 ffc1222c: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc12230: 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 ) { ffc12234: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc12238: 80 09 27 ec lwz r0,10220(r9) <== ALWAYS TAKEN ffc1223c: 7f 80 18 40 cmplw cr7,r0,r3 ffc12240: 38 00 00 0a li r0,10 <== ALWAYS TAKEN ffc12244: 40 9d 00 30 ble- cr7,ffc12274 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; ffc12248: 3d 60 00 00 lis r11,0 ffc1224c: 80 0b 27 f0 lwz r0,10224(r11) <== ALWAYS TAKEN ffc12250: 1d 23 00 18 mulli r9,r3,24 ffc12254: 7d 20 4a 14 add r9,r0,r9 ffc12258: 81 29 00 04 lwz r9,4(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc1225c: 38 00 00 00 li r0,0 ffc12260: 2f 89 00 00 cmpwi cr7,r9,0 ffc12264: 41 9e 00 10 beq- cr7,ffc12274 ffc12268: 7d 29 03 a6 mtctr r9 ffc1226c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc12270: 7c 60 1b 78 mr r0,r3 } ffc12274: 7c 03 03 78 mr r3,r0 ffc12278: 80 01 00 0c lwz r0,12(r1) ffc1227c: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc12280: 7c 08 03 a6 mtlr r0 ffc12284: 4e 80 00 20 blr <== ALWAYS TAKEN ffc12288 : rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc12288: 7c 08 02 a6 mflr r0 ffc1228c: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc12290: 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 ) { ffc12294: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc12298: 80 09 27 ec lwz r0,10220(r9) ffc1229c: 7f 80 18 40 cmplw cr7,r0,r3 ffc122a0: 38 00 00 0a li r0,10 ffc122a4: 40 9d 00 30 ble- cr7,ffc122d4 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; ffc122a8: 3d 60 00 00 lis r11,0 ffc122ac: 80 0b 27 f0 lwz r0,10224(r11) ffc122b0: 1d 23 00 18 mulli r9,r3,24 ffc122b4: 7d 20 4a 14 add r9,r0,r9 <== ALWAYS TAKEN ffc122b8: 81 29 00 0c lwz r9,12(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc122bc: 38 00 00 00 li r0,0 ffc122c0: 2f 89 00 00 cmpwi cr7,r9,0 ffc122c4: 41 9e 00 10 beq- cr7,ffc122d4 ffc122c8: 7d 29 03 a6 mtctr r9 ffc122cc: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc122d0: 7c 60 1b 78 mr r0,r3 } ffc122d4: 7c 03 03 78 mr r3,r0 ffc122d8: 80 01 00 0c lwz r0,12(r1) ffc122dc: 38 21 00 08 addi r1,r1,8 ffc122e0: 7c 08 03 a6 mtlr r0 ffc122e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0af20 : 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 ) { ffc0af20: 94 21 ff f0 stwu r1,-16(r1) ffc0af24: 7c 08 02 a6 mflr r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0af28: 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 ) { ffc0af2c: 90 01 00 14 stw r0,20(r1) rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0af30: 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; ffc0af34: 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 ) { ffc0af38: 93 e1 00 0c stw r31,12(r1) ffc0af3c: 7c 7f 1b 78 mr r31,r3 rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) ffc0af40: 2f 80 00 00 cmpwi cr7,r0,0 ffc0af44: 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; ffc0af48: 80 09 28 08 lwz r0,10248(r9) if ( rtems_interrupt_is_in_progress() ) ffc0af4c: 40 9e 00 e8 bne- cr7,ffc0b034 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) ffc0af50: 2f 85 00 00 cmpwi cr7,r5,0 ffc0af54: 41 9e 01 38 beq- cr7,ffc0b08c return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) ffc0af58: 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; ffc0af5c: 90 05 00 00 stw r0,0(r5) if ( driver_table == NULL ) ffc0af60: 41 9e 01 2c beq- cr7,ffc0b08c static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0af64: 81 64 00 00 lwz r11,0(r4) ffc0af68: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0af6c: 41 9e 01 14 beq- cr7,ffc0b080 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) ffc0af70: 7f 80 f8 40 cmplw cr7,r0,r31 ffc0af74: 38 60 00 0a li r3,10 ffc0af78: 40 9d 00 bc ble- cr7,ffc0b034 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0af7c: 3d 60 00 00 lis r11,0 ffc0af80: 81 4b 27 90 lwz r10,10128(r11) ffc0af84: 38 0a 00 01 addi r0,r10,1 ffc0af88: 90 0b 27 90 stw r0,10128(r11) return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { ffc0af8c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0af90: 40 9e 00 b8 bne- cr7,ffc0b048 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; ffc0af94: 81 69 28 08 lwz r11,10248(r9) rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { ffc0af98: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0af9c: 41 9e 01 08 beq- cr7,ffc0b0a4 <== NEVER TAKEN ffc0afa0: 3d 20 00 00 lis r9,0 ffc0afa4: 7d 69 03 a6 mtctr r11 ffc0afa8: 81 49 28 0c lwz r10,10252(r9) ffc0afac: 7d 49 53 78 mr r9,r10 ffc0afb0: 40 be 00 14 bne+ cr7,ffc0afc4 <== ALWAYS TAKEN ffc0afb4: 48 00 01 14 b ffc0b0c8 <== NOT EXECUTED ffc0afb8: 3b ff 00 01 addi r31,r31,1 ffc0afbc: 39 29 00 18 addi r9,r9,24 ffc0afc0: 42 40 00 1c bdz- ffc0afdc static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0afc4: 80 09 00 00 lwz r0,0(r9) ffc0afc8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0afcc: 40 9e ff ec bne+ cr7,ffc0afb8 ffc0afd0: 80 09 00 04 lwz r0,4(r9) ffc0afd4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0afd8: 40 9e ff e0 bne+ cr7,ffc0afb8 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) ffc0afdc: 7f 8b f8 00 cmpw cr7,r11,r31 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; ffc0afe0: 93 e5 00 00 stw r31,0(r5) if ( m != n ) ffc0afe4: 41 9e 00 c4 beq- cr7,ffc0b0a8 ffc0afe8: 1d 3f 00 18 mulli r9,r31,24 ffc0afec: 7d 2a 4a 14 add r9,r10,r9 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; ffc0aff0: 81 64 00 08 lwz r11,8(r4) ffc0aff4: 80 04 00 0c lwz r0,12(r4) ffc0aff8: 81 04 00 00 lwz r8,0(r4) ffc0affc: 81 44 00 04 lwz r10,4(r4) <== ALWAYS TAKEN ffc0b000: 91 09 00 00 stw r8,0(r9) ffc0b004: 91 49 00 04 stw r10,4(r9) ffc0b008: 91 69 00 08 stw r11,8(r9) ffc0b00c: 90 09 00 0c stw r0,12(r9) ffc0b010: 81 64 00 14 lwz r11,20(r4) ffc0b014: 80 04 00 10 lwz r0,16(r4) ffc0b018: 91 69 00 14 stw r11,20(r9) ffc0b01c: 90 09 00 10 stw r0,16(r9) _Thread_Enable_dispatch(); ffc0b020: 48 00 22 2d bl ffc0d24c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return rtems_io_initialize( major, 0, NULL ); ffc0b024: 7f e3 fb 78 mr r3,r31 ffc0b028: 38 80 00 00 li r4,0 ffc0b02c: 38 a0 00 00 li r5,0 ffc0b030: 48 00 b0 05 bl ffc16034 <== ALWAYS TAKEN } ffc0b034: 80 01 00 14 lwz r0,20(r1) ffc0b038: 83 e1 00 0c lwz r31,12(r1) ffc0b03c: 38 21 00 10 addi r1,r1,16 ffc0b040: 7c 08 03 a6 mtlr r0 ffc0b044: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; ffc0b048: 3d 20 00 00 lis r9,0 ffc0b04c: 81 29 28 0c lwz r9,10252(r9) ffc0b050: 1c 1f 00 18 mulli r0,r31,24 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0b054: 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; ffc0b058: 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; ffc0b05c: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0b060: 41 9e 00 54 beq- cr7,ffc0b0b4 major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); ffc0b064: 48 00 21 e9 bl ffc0d24c <_Thread_Enable_dispatch> <== ALWAYS TAKEN _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } ffc0b068: 80 01 00 14 lwz r0,20(r1) major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); ffc0b06c: 38 60 00 0c li r3,12 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } ffc0b070: 83 e1 00 0c lwz r31,12(r1) ffc0b074: 7c 08 03 a6 mtlr r0 ffc0b078: 38 21 00 10 addi r1,r1,16 ffc0b07c: 4e 80 00 20 blr <== ALWAYS TAKEN static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0b080: 81 64 00 04 lwz r11,4(r4) ffc0b084: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0b088: 40 9e fe e8 bne+ cr7,ffc0af70 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); } ffc0b08c: 80 01 00 14 lwz r0,20(r1) _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); ffc0b090: 38 60 00 09 li r3,9 } ffc0b094: 83 e1 00 0c lwz r31,12(r1) ffc0b098: 38 21 00 10 addi r1,r1,16 ffc0b09c: 7c 08 03 a6 mtlr r0 ffc0b0a0: 4e 80 00 20 blr <== ALWAYS TAKEN if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; ffc0b0a4: 93 e5 00 00 stw r31,0(r5) <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); ffc0b0a8: 48 00 21 a5 bl ffc0d24c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0b0ac: 38 60 00 05 li r3,5 return sc; ffc0b0b0: 4b ff ff 84 b ffc0b034 <== ALWAYS TAKEN static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; ffc0b0b4: 80 09 00 04 lwz r0,4(r9) ffc0b0b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b0bc: 40 9e ff a8 bne+ cr7,ffc0b064 if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; ffc0b0c0: 93 e5 00 00 stw r31,0(r5) ffc0b0c4: 4b ff ff 2c b ffc0aff0 <== ALWAYS TAKEN ffc0b0c8: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0b0cc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0b0d0: 4b ff fe f4 b ffc0afc4 <== NOT EXECUTED ffc03f40 : rtems_status_code rtems_io_register_name( const char *device_name, rtems_device_major_number major, rtems_device_minor_number minor ) { ffc03f40: 94 21 ff f8 stwu r1,-8(r1) ffc03f44: 7c 08 02 a6 mflr r0 ffc03f48: 7c a6 2b 78 mr r6,r5 int status; dev_t dev; dev = rtems_filesystem_make_dev_t( major, minor ); status = mknod( device_name, 0777 | S_IFCHR, dev ); ffc03f4c: 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 ) { ffc03f50: 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 ); ffc03f54: 38 80 21 ff li r4,8703 ffc03f58: 48 00 0a 01 bl ffc04958 <== ALWAYS TAKEN /* this is the only error returned by the old version */ if ( status ) ffc03f5c: 7c 60 fe 70 srawi r0,r3,31 ffc03f60: 7c 03 1a 78 xor r3,r0,r3 ffc03f64: 7c 63 00 50 subf r3,r3,r0 return RTEMS_TOO_MANY; return RTEMS_SUCCESSFUL; } ffc03f68: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN 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 ) ffc03f6c: 7c 63 fe 70 srawi r3,r3,31 return RTEMS_TOO_MANY; return RTEMS_SUCCESSFUL; } ffc03f70: 7c 08 03 a6 mtlr r0 ffc03f74: 70 63 00 05 andi. r3,r3,5 <== ALWAYS TAKEN ffc03f78: 38 21 00 08 addi r1,r1,8 ffc03f7c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b0d4 : */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { ffc0b0d4: 7c 08 02 a6 mflr r0 ffc0b0d8: 94 21 ff f8 stwu r1,-8(r1) if ( rtems_interrupt_is_in_progress() ) ffc0b0dc: 3d 20 00 00 lis r9,0 */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { ffc0b0e0: 90 01 00 0c stw r0,12(r1) if ( rtems_interrupt_is_in_progress() ) ffc0b0e4: 80 09 27 b8 lwz r0,10168(r9) ffc0b0e8: 39 20 00 12 li r9,18 ffc0b0ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b0f0: 40 9e 00 18 bne- cr7,ffc0b108 return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { ffc0b0f4: 3d 20 00 00 lis r9,0 ffc0b0f8: 81 69 28 08 lwz r11,10248(r9) ffc0b0fc: 39 20 00 0d li r9,13 ffc0b100: 7f 8b 18 40 cmplw cr7,r11,r3 ffc0b104: 41 9d 00 18 bgt- cr7,ffc0b11c return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } ffc0b108: 80 01 00 0c lwz r0,12(r1) ffc0b10c: 7d 23 4b 78 mr r3,r9 ffc0b110: 38 21 00 08 addi r1,r1,8 ffc0b114: 7c 08 03 a6 mtlr r0 ffc0b118: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b11c: 3d 20 00 00 lis r9,0 ffc0b120: 81 69 27 90 lwz r11,10128(r9) ffc0b124: 39 6b 00 01 addi r11,r11,1 ffc0b128: 91 69 27 90 stw r11,10128(r9) if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( ffc0b12c: 3d 20 00 00 lis r9,0 ffc0b130: 81 69 28 0c lwz r11,10252(r9) ffc0b134: 1c 63 00 18 mulli r3,r3,24 ffc0b138: 7d 2b 1a 14 add r9,r11,r3 ffc0b13c: 7c 0b 19 2e stwx r0,r11,r3 ffc0b140: 90 09 00 14 stw r0,20(r9) ffc0b144: 90 09 00 04 stw r0,4(r9) ffc0b148: 90 09 00 08 stw r0,8(r9) ffc0b14c: 90 09 00 0c stw r0,12(r9) ffc0b150: 90 09 00 10 stw r0,16(r9) &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); ffc0b154: 48 00 20 f9 bl ffc0d24c <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } ffc0b158: 80 01 00 0c lwz r0,12(r1) memset( &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); ffc0b15c: 39 20 00 00 li r9,0 return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } ffc0b160: 7c 08 03 a6 mtlr r0 ffc0b164: 7d 23 4b 78 mr r3,r9 ffc0b168: 38 21 00 08 addi r1,r1,8 ffc0b16c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc122e8 : rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { ffc122e8: 7c 08 02 a6 mflr r0 ffc122ec: 94 21 ff f8 stwu r1,-8(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc122f0: 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 ) { ffc122f4: 90 01 00 0c stw r0,12(r1) rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) ffc122f8: 80 09 27 ec lwz r0,10220(r9) ffc122fc: 7f 80 18 40 cmplw cr7,r0,r3 ffc12300: 38 00 00 0a li r0,10 ffc12304: 40 9d 00 30 ble- cr7,ffc12334 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; ffc12308: 3d 60 00 00 lis r11,0 ffc1230c: 80 0b 27 f0 lwz r0,10224(r11) ffc12310: 1d 23 00 18 mulli r9,r3,24 ffc12314: 7d 20 4a 14 add r9,r0,r9 ffc12318: 81 29 00 10 lwz r9,16(r9) return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; ffc1231c: 38 00 00 00 li r0,0 ffc12320: 2f 89 00 00 cmpwi cr7,r9,0 ffc12324: 41 9e 00 10 beq- cr7,ffc12334 ffc12328: 7d 29 03 a6 mtctr r9 <== ALWAYS TAKEN ffc1232c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc12330: 7c 60 1b 78 mr r0,r3 } ffc12334: 7c 03 03 78 mr r3,r0 ffc12338: 80 01 00 0c lwz r0,12(r1) ffc1233c: 38 21 00 08 addi r1,r1,8 <== ALWAYS TAKEN ffc12340: 7c 08 03 a6 mtlr r0 ffc12344: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bfac : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { ffc0bfac: 94 21 ff e0 stwu r1,-32(r1) ffc0bfb0: 7c 08 02 a6 mflr r0 ffc0bfb4: 90 01 00 24 stw r0,36(r1) uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) ffc0bfb8: 7c 60 1b 79 mr. r0,r3 #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { ffc0bfbc: 93 81 00 10 stw r28,16(r1) ffc0bfc0: 93 a1 00 14 stw r29,20(r1) ffc0bfc4: 93 c1 00 18 stw r30,24(r1) ffc0bfc8: 93 e1 00 1c stw r31,28(r1) uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) ffc0bfcc: 90 01 00 08 stw r0,8(r1) ffc0bfd0: 41 82 00 7c beq- ffc0c04c <== NEVER TAKEN ffc0bfd4: 3f a0 00 01 lis r29,1 ffc0bfd8: 3b bd aa 44 addi r29,r29,-21948 #endif #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) ffc0bfdc: 3b 9d 00 10 addi r28,r29,16 if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) ffc0bfe0: 81 3d 00 00 lwz r9,0(r29) ffc0bfe4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0bfe8: 41 9e 00 58 beq- cr7,ffc0c040 continue; information = _Objects_Information_table[ api_index ][ 1 ]; ffc0bfec: 83 c9 00 04 lwz r30,4(r9) if ( !information ) ffc0bff0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0bff4: 41 9e 00 4c beq- cr7,ffc0c040 continue; for ( i=1 ; i <= information->maximum ; i++ ) { ffc0bff8: a1 3e 00 10 lhz r9,16(r30) ffc0bffc: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc0c000: 41 9e 00 40 beq- cr7,ffc0c040 ffc0c004: 3b e0 00 01 li r31,1 the_thread = (Thread_Control *)information->local_table[ i ]; ffc0c008: 81 7e 00 1c lwz r11,28(r30) ffc0c00c: 57 e0 10 3a rlwinm r0,r31,2,0,29 information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { ffc0c010: 3b ff 00 01 addi r31,r31,1 the_thread = (Thread_Control *)information->local_table[ i ]; ffc0c014: 7c 0b 00 2e lwzx r0,r11,r0 if ( !the_thread ) ffc0c018: 2f 80 00 00 cmpwi cr7,r0,0 continue; (*routine)(the_thread); ffc0c01c: 7c 03 03 78 mr r3,r0 continue; for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) ffc0c020: 41 9e 00 14 beq- cr7,ffc0c034 <== NEVER TAKEN continue; (*routine)(the_thread); ffc0c024: 80 01 00 08 lwz r0,8(r1) ffc0c028: 7c 09 03 a6 mtctr r0 ffc0c02c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0c030: a1 3e 00 10 lhz r9,16(r30) information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { ffc0c034: 55 20 04 3e clrlwi r0,r9,16 ffc0c038: 7f 80 f8 40 cmplw cr7,r0,r31 ffc0c03c: 40 9c ff cc bge+ cr7,ffc0c008 ffc0c040: 3b bd 00 04 addi r29,r29,4 Objects_Information *information; if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { ffc0c044: 7f 9d e0 00 cmpw cr7,r29,r28 ffc0c048: 40 9e ff 98 bne+ cr7,ffc0bfe0 (*routine)(the_thread); } } } ffc0c04c: 80 01 00 24 lwz r0,36(r1) ffc0c050: 83 81 00 10 lwz r28,16(r1) ffc0c054: 7c 08 03 a6 mtlr r0 ffc0c058: 83 a1 00 14 lwz r29,20(r1) ffc0c05c: 83 c1 00 18 lwz r30,24(r1) ffc0c060: 83 e1 00 1c lwz r31,28(r1) ffc0c064: 38 21 00 20 addi r1,r1,32 ffc0c068: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e47c : * 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 ) { ffc0e47c: 94 21 ff d8 stwu r1,-40(r1) <== ALWAYS TAKEN ffc0e480: 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 ); ffc0e484: 38 80 00 00 li r4,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 ) { ffc0e488: 93 e1 00 24 stw r31,36(r1) rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0e48c: 3f e0 00 00 lis r31,0 ffc0e490: 38 a0 00 00 li r5,0 ffc0e494: 80 7f 27 54 lwz r3,10068(r31) * 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 ) { ffc0e498: 93 c1 00 20 stw r30,32(r1) rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (rtems_libio_iop_freelist) { ffc0e49c: 3f c0 00 00 lis r30,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 ) { ffc0e4a0: 90 01 00 2c stw r0,44(r1) ffc0e4a4: 93 81 00 18 stw r28,24(r1) ffc0e4a8: 93 a1 00 1c stw r29,28(r1) rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0e4ac: 4b ff a0 d9 bl ffc08584 <== ALWAYS TAKEN if (rtems_libio_iop_freelist) { ffc0e4b0: 80 1e 27 50 lwz r0,10064(r30) ffc0e4b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e4b8: 40 9e 00 34 bne- cr7,ffc0e4ec next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); iop->flags = LIBIO_FLAGS_OPEN; iop->sem = sema; rtems_libio_iop_freelist = next; goto done; ffc0e4bc: 3b a0 00 00 li r29,0 failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); ffc0e4c0: 80 7f 27 54 lwz r3,10068(r31) ffc0e4c4: 4b ff a2 21 bl ffc086e4 <== ALWAYS TAKEN return iop; } ffc0e4c8: 80 01 00 2c lwz r0,44(r1) ffc0e4cc: 7f a3 eb 78 mr r3,r29 <== ALWAYS TAKEN ffc0e4d0: 83 81 00 18 lwz r28,24(r1) <== ALWAYS TAKEN ffc0e4d4: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0e4d8: 83 a1 00 1c lwz r29,28(r1) ffc0e4dc: 83 c1 00 20 lwz r30,32(r1) ffc0e4e0: 83 e1 00 24 lwz r31,36(r1) ffc0e4e4: 38 21 00 28 addi r1,r1,40 ffc0e4e8: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (rtems_libio_iop_freelist) { rc = rtems_semaphore_create( ffc0e4ec: 3d 20 00 00 lis r9,0 <== ALWAYS TAKEN ffc0e4f0: 80 69 27 4c lwz r3,10060(r9) ffc0e4f4: 3d 20 38 e3 lis r9,14563 <== ALWAYS TAKEN ffc0e4f8: 61 29 8e 39 ori r9,r9,36409 ffc0e4fc: 7c 63 00 50 subf r3,r3,r0 <== ALWAYS TAKEN ffc0e500: 7c 63 1e 70 srawi r3,r3,3 ffc0e504: 7c 63 49 d6 mullw r3,r3,r9 ffc0e508: 38 80 00 01 li r4,1 ffc0e50c: 64 63 4c 42 oris r3,r3,19522 <== ALWAYS TAKEN ffc0e510: 60 63 49 00 ori r3,r3,18688 ffc0e514: 38 a0 00 54 li r5,84 ffc0e518: 38 c0 00 00 li r6,0 ffc0e51c: 38 e1 00 08 addi r7,r1,8 ffc0e520: 4b ff 9d 69 bl ffc08288 <== ALWAYS TAKEN 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &sema ); if (rc != RTEMS_SUCCESSFUL) ffc0e524: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e528: 40 9e ff 94 bne+ cr7,ffc0e4bc <== NEVER TAKEN goto failed; iop = rtems_libio_iop_freelist; ffc0e52c: 83 be 27 50 lwz r29,10064(r30) next = iop->data1; (void) memset( iop, 0, sizeof(rtems_libio_t) ); ffc0e530: 38 80 00 00 li r4,0 ffc0e534: 38 a0 00 48 li r5,72 ffc0e538: 7f a3 eb 78 mr r3,r29 <== ALWAYS TAKEN &sema ); if (rc != RTEMS_SUCCESSFUL) goto failed; iop = rtems_libio_iop_freelist; next = iop->data1; ffc0e53c: 83 9d 00 38 lwz r28,56(r29) (void) memset( iop, 0, sizeof(rtems_libio_t) ); ffc0e540: 48 00 5b 21 bl ffc14060 <== ALWAYS TAKEN iop->flags = LIBIO_FLAGS_OPEN; ffc0e544: 38 00 01 00 li r0,256 ffc0e548: 90 1d 00 18 stw r0,24(r29) <== ALWAYS TAKEN iop->sem = sema; ffc0e54c: 80 01 00 08 lwz r0,8(r1) rtems_libio_iop_freelist = next; ffc0e550: 93 9e 27 50 stw r28,10064(r30) 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; ffc0e554: 90 1d 00 30 stw r0,48(r29) <== ALWAYS TAKEN rtems_libio_iop_freelist = next; goto done; ffc0e558: 4b ff ff 68 b ffc0e4c0 <== ALWAYS TAKEN ffc0e55c : }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { ffc0e55c: 94 21 ff e8 stwu r1,-24(r1) ffc0e560: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN * 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 ); ffc0e564: 54 64 07 be clrlwi r4,r3,30 }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { ffc0e568: 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 ); ffc0e56c: 3f e0 ff c2 lis r31,-62 <== ALWAYS TAKEN ffc0e570: 3b ff fa 0c addi r31,r31,-1524 }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { ffc0e574: 93 c1 00 10 stw r30,16(r1) <== ALWAYS TAKEN ffc0e578: 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 ); ffc0e57c: 7f e3 fb 78 mr r3,r31 }; uint32_t rtems_libio_fcntl_flags( uint32_t fcntl_flags ) { ffc0e580: 90 01 00 1c stw r0,28(r1) ffc0e584: 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 ); ffc0e588: 48 00 30 2d bl ffc115b4 <== ALWAYS TAKEN ffc0e58c: 7c 7d 1b 78 mr r29,r3 /* * Everything else is single bits */ flags |= rtems_assoc_local_by_remote_bitfield(status_flags_assoc, fcntl_flags); ffc0e590: 57 c4 00 3a rlwinm r4,r30,0,0,29 ffc0e594: 38 7f 00 30 addi r3,r31,48 ffc0e598: 48 00 2f 85 bl ffc1151c <== ALWAYS TAKEN return flags; } ffc0e59c: 80 01 00 1c lwz r0,28(r1) ffc0e5a0: 7c 63 eb 78 or r3,r3,r29 ffc0e5a4: 83 c1 00 10 lwz r30,16(r1) ffc0e5a8: 7c 08 03 a6 mtlr r0 ffc0e5ac: 83 a1 00 0c lwz r29,12(r1) ffc0e5b0: 83 e1 00 14 lwz r31,20(r1) <== ALWAYS TAKEN ffc0e5b4: 38 21 00 18 addi r1,r1,24 ffc0e5b8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e404 : */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0e404: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc0e408: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0e40c: 38 80 00 00 li r4,0 */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0e410: 93 c1 00 08 stw r30,8(r1) rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0e414: 3f c0 00 00 lis r30,0 ffc0e418: 38 a0 00 00 li r5,0 */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0e41c: 93 e1 00 0c stw r31,12(r1) ffc0e420: 7c 7f 1b 78 mr r31,r3 rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0e424: 80 7e 27 54 lwz r3,10068(r30) */ void rtems_libio_free( rtems_libio_t *iop ) { ffc0e428: 90 01 00 14 stw r0,20(r1) rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0e42c: 4b ff a1 59 bl ffc08584 <== ALWAYS TAKEN if (iop->sem) ffc0e430: 80 7f 00 30 lwz r3,48(r31) ffc0e434: 2f 83 00 00 cmpwi cr7,r3,0 ffc0e438: 41 be 00 08 beq+ cr7,ffc0e440 <== NEVER TAKEN rtems_semaphore_delete(iop->sem); ffc0e43c: 4b ff a0 6d bl ffc084a8 <== ALWAYS TAKEN iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0e440: 81 7f 00 18 lwz r11,24(r31) iop->data1 = rtems_libio_iop_freelist; ffc0e444: 3d 20 00 00 lis r9,0 ffc0e448: 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; ffc0e44c: 55 6b 06 2c rlwinm r11,r11,0,24,22 iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); ffc0e450: 80 7e 27 54 lwz r3,10068(r30) if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; ffc0e454: 90 1f 00 38 stw r0,56(r31) rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (iop->sem) rtems_semaphore_delete(iop->sem); iop->flags &= ~LIBIO_FLAGS_OPEN; ffc0e458: 91 7f 00 18 stw r11,24(r31) <== ALWAYS TAKEN iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; ffc0e45c: 93 e9 27 50 stw r31,10064(r9) rtems_semaphore_release(rtems_libio_semaphore); ffc0e460: 4b ff a2 85 bl ffc086e4 <== ALWAYS TAKEN } ffc0e464: 80 01 00 14 lwz r0,20(r1) ffc0e468: 83 c1 00 08 lwz r30,8(r1) ffc0e46c: 7c 08 03 a6 mtlr r0 ffc0e470: 83 e1 00 0c lwz r31,12(r1) ffc0e474: 38 21 00 10 addi r1,r1,16 ffc0e478: 4e 80 00 20 blr <== ALWAYS TAKEN ffc04530 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { ffc04530: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc04534: 7c 08 02 a6 mflr r0 ffc04538: 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) ffc0453c: 3f e0 00 00 lis r31,0 <== ALWAYS TAKEN ffc04540: 80 7f 26 8c lwz r3,9868(r31) * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { ffc04544: 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) ffc04548: 2f 83 00 00 cmpwi cr7,r3,0 ffc0454c: 41 9e 00 68 beq- cr7,ffc045b4 <== NEVER TAKEN { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, ffc04550: 38 80 00 48 li r4,72 ffc04554: 48 00 99 b9 bl ffc0df0c <== ALWAYS TAKEN ffc04558: 3d 20 00 00 lis r9,0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) ffc0455c: 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, ffc04560: 90 69 27 4c stw r3,10060(r9) <== ALWAYS TAKEN ffc04564: 7c 6b 1b 78 mr r11,r3 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) ffc04568: 41 9e 00 a4 beq- cr7,ffc0460c <== NEVER TAKEN 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++) ffc0456c: 81 3f 26 8c lwz r9,9868(r31) <== ALWAYS TAKEN 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; ffc04570: 3d 40 00 00 lis r10,0 <== ALWAYS TAKEN ffc04574: 90 6a 27 50 stw r3,10064(r10) <== ALWAYS TAKEN for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) ffc04578: 2b 89 00 01 cmplwi cr7,r9,1 ffc0457c: 40 9d 00 30 ble- cr7,ffc045ac <== NEVER TAKEN ffc04580: 39 29 ff ff addi r9,r9,-1 ffc04584: 7d 29 03 a6 mtctr r9 ffc04588: 39 60 00 01 li r11,1 ffc0458c: 39 23 00 48 addi r9,r3,72 iop->data1 = iop + 1; ffc04590: 91 29 ff f0 stw r9,-16(r9) ffc04594: 39 6b 00 01 addi r11,r11,1 ffc04598: 39 29 00 48 addi r9,r9,72 <== 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++) ffc0459c: 42 00 ff f4 bdnz+ ffc04590 ffc045a0: 39 6b ff ff addi r11,r11,-1 ffc045a4: 1d 6b 00 48 mulli r11,r11,72 ffc045a8: 7d 63 5a 14 add r11,r3,r11 iop->data1 = iop + 1; iop->data1 = NULL; ffc045ac: 38 00 00 00 li r0,0 <== ALWAYS TAKEN ffc045b0: 90 0b 00 38 stw r0,56(r11) /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( ffc045b4: 3c 60 4c 42 lis r3,19522 ffc045b8: 3c e0 00 00 lis r7,0 ffc045bc: 60 63 49 4f ori r3,r3,18767 ffc045c0: 38 e7 27 54 addi r7,r7,10068 <== ALWAYS TAKEN ffc045c4: 38 80 00 01 li r4,1 ffc045c8: 38 a0 00 54 li r5,84 ffc045cc: 38 c0 00 00 li r6,0 ffc045d0: 48 00 3c b9 bl ffc08288 <== ALWAYS TAKEN 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) ffc045d4: 2f 83 00 00 cmpwi cr7,r3,0 ffc045d8: 40 9e 00 30 bne- cr7,ffc04608 <== NEVER TAKEN /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) ffc045dc: 3d 20 00 00 lis r9,0 ffc045e0: 80 09 26 88 lwz r0,9864(r9) ffc045e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc045e8: 41 9e 00 0c beq- cr7,ffc045f4 <== NEVER TAKEN (* rtems_fs_init_helper)(); ffc045ec: 7c 09 03 a6 mtctr r0 ffc045f0: 4e 80 04 21 bctrl <== ALWAYS TAKEN } ffc045f4: 80 01 00 14 lwz r0,20(r1) ffc045f8: 83 e1 00 0c lwz r31,12(r1) ffc045fc: 38 21 00 10 addi r1,r1,16 ffc04600: 7c 08 03 a6 mtlr r0 ffc04604: 4e 80 00 20 blr <== ALWAYS TAKEN RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) rtems_fatal_error_occurred( rc ); ffc04608: 48 00 48 a5 bl ffc08eac <== NOT EXECUTED if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); ffc0460c: 38 60 00 1a li r3,26 <== NOT EXECUTED ffc04610: 48 00 48 9d bl ffc08eac <== NOT EXECUTED ffc0e28c : */ int rtems_libio_is_file_open( void *node_access ) { ffc0e28c: 94 21 ff f0 stwu r1,-16(r1) ffc0e290: 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 ); ffc0e294: 38 80 00 00 li r4,0 */ int rtems_libio_is_file_open( void *node_access ) { ffc0e298: 93 c1 00 08 stw r30,8(r1) rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0e29c: 3f c0 00 00 lis r30,0 ffc0e2a0: 38 a0 00 00 li r5,0 */ int rtems_libio_is_file_open( void *node_access ) { ffc0e2a4: 93 e1 00 0c stw r31,12(r1) ffc0e2a8: 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 ); ffc0e2ac: 80 7e 27 54 lwz r3,10068(r30) */ int rtems_libio_is_file_open( void *node_access ) { ffc0e2b0: 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 ); ffc0e2b4: 4b ff a2 d1 bl ffc08584 <== ALWAYS TAKEN /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0e2b8: 3d 20 00 00 lis r9,0 ffc0e2bc: 80 09 26 8c lwz r0,9868(r9) ffc0e2c0: 3d 20 00 00 lis r9,0 ffc0e2c4: 81 29 27 4c lwz r9,10060(r9) ffc0e2c8: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e2cc: 41 9e 00 2c beq- cr7,ffc0e2f8 <== NEVER TAKEN ffc0e2d0: 7c 09 03 a6 mtctr r0 if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { ffc0e2d4: 80 09 00 18 lwz r0,24(r9) <== ALWAYS TAKEN ffc0e2d8: 70 0b 01 00 andi. r11,r0,256 ffc0e2dc: 41 82 00 10 beq- ffc0e2ec /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { ffc0e2e0: 80 09 00 1c lwz r0,28(r9) ffc0e2e4: 7f 80 f8 00 cmpw cr7,r0,r31 ffc0e2e8: 41 9e 00 38 beq- cr7,ffc0e320 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0e2ec: 42 40 00 0c bdz- ffc0e2f8 ffc0e2f0: 39 29 00 48 addi r9,r9,72 ffc0e2f4: 4b ff ff e0 b ffc0e2d4 <== ALWAYS TAKEN break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0e2f8: 80 7e 27 54 lwz r3,10068(r30) /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0e2fc: 3b e0 00 00 li r31,0 break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0e300: 4b ff a3 e5 bl ffc086e4 <== ALWAYS TAKEN return result; } ffc0e304: 80 01 00 14 lwz r0,20(r1) ffc0e308: 7f e3 fb 78 mr r3,r31 ffc0e30c: 83 c1 00 08 lwz r30,8(r1) ffc0e310: 7c 08 03 a6 mtlr r0 ffc0e314: 83 e1 00 0c lwz r31,12(r1) ffc0e318: 38 21 00 10 addi r1,r1,16 ffc0e31c: 4e 80 00 20 blr <== ALWAYS TAKEN break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0e320: 80 7e 27 54 lwz r3,10068(r30) /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0e324: 3b e0 00 01 li r31,1 break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0e328: 4b ff a3 bd bl ffc086e4 <== ALWAYS TAKEN return result; } ffc0e32c: 80 01 00 14 lwz r0,20(r1) ffc0e330: 7f e3 fb 78 mr r3,r31 ffc0e334: 83 c1 00 08 lwz r30,8(r1) ffc0e338: 7c 08 03 a6 mtlr r0 ffc0e33c: 83 e1 00 0c lwz r31,12(r1) ffc0e340: 38 21 00 10 addi r1,r1,16 ffc0e344: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e348 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0e348: 94 21 ff f0 stwu r1,-16(r1) ffc0e34c: 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 ); ffc0e350: 38 80 00 00 li r4,0 */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0e354: 93 c1 00 08 stw r30,8(r1) rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); ffc0e358: 3f c0 00 00 lis r30,0 ffc0e35c: 38 a0 00 00 li r5,0 */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0e360: 93 e1 00 0c stw r31,12(r1) ffc0e364: 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 ); ffc0e368: 80 7e 27 54 lwz r3,10068(r30) */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { ffc0e36c: 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 ); ffc0e370: 4b ff a2 15 bl ffc08584 <== ALWAYS TAKEN /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0e374: 3d 20 00 00 lis r9,0 ffc0e378: 80 09 26 8c lwz r0,9868(r9) ffc0e37c: 3d 20 00 00 lis r9,0 ffc0e380: 81 29 27 4c lwz r9,10060(r9) ffc0e384: 2f 80 00 00 cmpwi cr7,r0,0 ffc0e388: 41 9e 00 2c beq- cr7,ffc0e3b4 <== NEVER TAKEN ffc0e38c: 7c 09 03 a6 mtctr r0 if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { ffc0e390: 80 09 00 18 lwz r0,24(r9) ffc0e394: 70 0b 01 00 andi. r11,r0,256 ffc0e398: 41 82 00 10 beq- ffc0e3a8 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { ffc0e39c: 80 09 00 2c lwz r0,44(r9) ffc0e3a0: 7f 80 f8 00 cmpw cr7,r0,r31 ffc0e3a4: 41 9e 00 38 beq- cr7,ffc0e3dc /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0e3a8: 42 40 00 0c bdz- ffc0e3b4 ffc0e3ac: 39 29 00 48 addi r9,r9,72 ffc0e3b0: 4b ff ff e0 b ffc0e390 <== ALWAYS TAKEN break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0e3b4: 80 7e 27 54 lwz r3,10068(r30) /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0e3b8: 3b e0 00 00 li r31,0 break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0e3bc: 4b ff a3 29 bl ffc086e4 <== ALWAYS TAKEN return result; } ffc0e3c0: 80 01 00 14 lwz r0,20(r1) ffc0e3c4: 7f e3 fb 78 mr r3,r31 ffc0e3c8: 83 c1 00 08 lwz r30,8(r1) ffc0e3cc: 7c 08 03 a6 mtlr r0 ffc0e3d0: 83 e1 00 0c lwz r31,12(r1) ffc0e3d4: 38 21 00 10 addi r1,r1,16 ffc0e3d8: 4e 80 00 20 blr <== ALWAYS TAKEN break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0e3dc: 80 7e 27 54 lwz r3,10068(r30) /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ ffc0e3e0: 3b e0 00 01 li r31,1 break; } } } rtems_semaphore_release( rtems_libio_semaphore ); ffc0e3e4: 4b ff a3 01 bl ffc086e4 <== ALWAYS TAKEN return result; } ffc0e3e8: 80 01 00 14 lwz r0,20(r1) ffc0e3ec: 7f e3 fb 78 mr r3,r31 ffc0e3f0: 83 c1 00 08 lwz r30,8(r1) ffc0e3f4: 7c 08 03 a6 mtlr r0 ffc0e3f8: 83 e1 00 0c lwz r31,12(r1) ffc0e3fc: 38 21 00 10 addi r1,r1,16 ffc0e400: 4e 80 00 20 blr <== ALWAYS TAKEN ffc30ac4 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc30ac4: 94 21 ff c0 stwu r1,-64(r1) ffc30ac8: 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); ffc30acc: 38 60 00 00 li r3,0 ffc30ad0: 38 80 00 00 li r4,0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { ffc30ad4: 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); ffc30ad8: 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) { ffc30adc: 90 01 00 44 stw r0,68(r1) ffc30ae0: 93 61 00 2c stw r27,44(r1) ffc30ae4: 93 81 00 30 stw r28,48(r1) ffc30ae8: 93 a1 00 34 stw r29,52(r1) ffc30aec: 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); ffc30af0: 4b fd df 09 bl ffc0e9f8 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) return sc; ffc30af4: 7c 7e 1b 79 mr. r30,r3 ffc30af8: 40 82 01 00 bne- ffc30bf8 <== NEVER TAKEN /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { ffc30afc: 3f e0 00 00 lis r31,0 ffc30b00: 83 9f 35 2c lwz r28,13612(r31) ffc30b04: 3f a0 00 00 lis r29,0 ffc30b08: 3b bd 63 dc addi r29,r29,25564 ffc30b0c: 7f 9c e8 00 cmpw cr7,r28,r29 ffc30b10: 3b 7f 35 2c addi r27,r31,13612 ffc30b14: 41 9e 01 0c beq- cr7,ffc30c20 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ ffc30b18: 7f a4 eb 78 mr r4,r29 ffc30b1c: 38 a0 00 48 li r5,72 ffc30b20: 7f 83 e3 78 mr r3,r28 ffc30b24: 48 02 14 ad bl ffc51fd0 <== 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; ffc30b28: 3d 20 00 00 lis r9,0 ffc30b2c: 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); ffc30b30: 3f a0 ff c7 lis r29,-57 ffc30b34: 3b c1 00 0c addi r30,r1,12 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc30b38: 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); ffc30b3c: 3b bd 5a 4c addi r29,r29,23116 *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; ffc30b40: 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); ffc30b44: 7f c6 f3 78 mr r6,r30 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc30b48: 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); ffc30b4c: 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; ffc30b50: 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); ffc30b54: 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; ffc30b58: 91 1c 00 18 stw r8,24(r28) * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30b5c: 38 e0 00 00 li r7,0 ffc30b60: 7f a3 eb 78 mr r3,r29 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc30b64: 91 5c 00 1c stw r10,28(r28) ffc30b68: 91 7c 00 20 stw r11,32(r28) ffc30b6c: 90 1c 00 24 stw r0,36(r28) ffc30b70: 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*/ ffc30b74: 81 21 00 08 lwz r9,8(r1) /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; ffc30b78: 90 1c 00 28 stw r0,40(r28) } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ ffc30b7c: 91 3c 00 00 stw r9,0(r28) * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30b80: 4b fd 81 95 bl ffc08d14 <== ALWAYS TAKEN rtems_filesystem_root = loc; ffc30b84: 81 3f 35 2c lwz r9,13612(r31) ffc30b88: 81 41 00 10 lwz r10,16(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30b8c: 7f c6 f3 78 mr r6,r30 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc30b90: 81 61 00 14 lwz r11,20(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30b94: 7f a3 eb 78 mr r3,r29 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc30b98: 80 01 00 18 lwz r0,24(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30b9c: 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; ffc30ba0: 81 01 00 0c lwz r8,12(r1) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30ba4: 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; ffc30ba8: 91 49 00 1c stw r10,28(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30bac: 38 e0 00 00 li r7,0 rtems_filesystem_current = loc; ffc30bb0: 3b c0 00 00 li r30,0 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; ffc30bb4: 91 09 00 18 stw r8,24(r9) ffc30bb8: 91 69 00 20 stw r11,32(r9) ffc30bbc: 90 09 00 24 stw r0,36(r9) ffc30bc0: 80 01 00 1c lwz r0,28(r1) ffc30bc4: 90 09 00 28 stw r0,40(r9) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); ffc30bc8: 4b fd 81 4d bl ffc08d14 <== ALWAYS TAKEN rtems_filesystem_current = loc; ffc30bcc: 80 01 00 18 lwz r0,24(r1) ffc30bd0: 81 3f 35 2c lwz r9,13612(r31) ffc30bd4: 81 41 00 10 lwz r10,16(r1) ffc30bd8: 81 61 00 14 lwz r11,20(r1) ffc30bdc: 81 01 00 0c lwz r8,12(r1) ffc30be0: 91 49 00 08 stw r10,8(r9) ffc30be4: 91 09 00 04 stw r8,4(r9) ffc30be8: 91 69 00 0c stw r11,12(r9) ffc30bec: 90 09 00 10 stw r0,16(r9) ffc30bf0: 80 01 00 1c lwz r0,28(r1) ffc30bf4: 90 09 00 14 stw r0,20(r9) return RTEMS_SUCCESSFUL; } ffc30bf8: 80 01 00 44 lwz r0,68(r1) ffc30bfc: 7f c3 f3 78 mr r3,r30 ffc30c00: 83 61 00 2c lwz r27,44(r1) ffc30c04: 7c 08 03 a6 mtlr r0 ffc30c08: 83 81 00 30 lwz r28,48(r1) ffc30c0c: 83 a1 00 34 lwz r29,52(r1) ffc30c10: 83 c1 00 38 lwz r30,56(r1) ffc30c14: 83 e1 00 3c lwz r31,60(r1) ffc30c18: 38 21 00 40 addi r1,r1,64 ffc30c1c: 4e 80 00 20 blr <== ALWAYS TAKEN sc=rtems_task_ident(RTEMS_SELF,0,&task_id); if (sc != RTEMS_SUCCESSFUL) return sc; /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); ffc30c20: 38 60 00 48 li r3,72 ffc30c24: 4b fd 89 ed bl ffc09610 <== ALWAYS TAKEN if (!tmp) ffc30c28: 3b c0 00 1a li r30,26 ffc30c2c: 7c 7c 1b 79 mr. r28,r3 ffc30c30: 41 a2 ff c8 beq- ffc30bf8 <== NEVER TAKEN #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); ffc30c34: 3c a0 ff c3 lis r5,-61 ffc30c38: 7f 64 db 78 mr r4,r27 ffc30c3c: 38 a5 09 5c addi r5,r5,2396 ffc30c40: 38 60 00 00 li r3,0 ffc30c44: 48 00 24 c9 bl ffc3310c <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) { ffc30c48: 7c 7e 1b 79 mr. r30,r3 ffc30c4c: 40 82 00 0c bne- ffc30c58 <== NEVER TAKEN * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; ffc30c50: 93 9f 35 2c stw r28,13612(r31) ffc30c54: 4b ff fe c4 b ffc30b18 <== ALWAYS TAKEN sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); if (sc != RTEMS_SUCCESSFUL) { /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); ffc30c58: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc30c5c: 4b fd 81 c1 bl ffc08e1c <== NOT EXECUTED return sc; ffc30c60: 4b ff ff 98 b ffc30bf8 <== NOT EXECUTED ffc309e4 : * 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) { ffc309e4: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc309e8: 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); ffc309ec: 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) { ffc309f0: 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); ffc309f4: 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) { ffc309f8: 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); ffc309fc: 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) { ffc30a00: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc30a04: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED ffc30a08: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc30a0c: 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); ffc30a10: 4b fd df e9 bl ffc0e9f8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc30a14: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc30a18: 40 82 00 48 bne- ffc30a60 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { ffc30a1c: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc30a20: 81 21 00 0c lwz r9,12(r1) <== NOT EXECUTED ffc30a24: 83 9f 35 2c lwz r28,13612(r31) <== NOT EXECUTED ffc30a28: 38 1f 35 2c addi r0,r31,13612 <== NOT EXECUTED ffc30a2c: 7c 1e 03 78 mr r30,r0 <== NOT EXECUTED ffc30a30: 81 7c 00 00 lwz r11,0(r28) <== NOT EXECUTED ffc30a34: 7f 8b 48 00 cmpw cr7,r11,r9 <== NOT EXECUTED ffc30a38: 41 9e 00 4c beq- cr7,ffc30a84 <== NOT EXECUTED free_user_env(tmp); }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, ffc30a3c: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc30a40: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc30a44: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ffc30a48: 48 00 28 b5 bl ffc332fc <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) ffc30a4c: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc30a50: 41 82 00 50 beq- ffc30aa0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; ffc30a54: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc30a58: 39 29 63 dc addi r9,r9,25564 <== NOT EXECUTED ffc30a5c: 91 3f 35 2c stw r9,13612(r31) <== NOT EXECUTED return sc; } ffc30a60: 7c 03 03 78 mr r3,r0 <== NOT EXECUTED ffc30a64: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc30a68: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc30a6c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30a70: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc30a74: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc30a78: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc30a7c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc30a80: 4e 80 00 20 blr <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_current_user_env->task_id==current_task_id) { /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); ffc30a84: 7c 04 03 78 mr r4,r0 <== NOT EXECUTED ffc30a88: 48 00 27 99 bl ffc33220 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; ffc30a8c: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc30a90: 40 82 ff d0 bne+ ffc30a60 <== NOT EXECUTED free_user_env(tmp); ffc30a94: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc30a98: 4b ff fe c5 bl ffc3095c <== NOT EXECUTED ffc30a9c: 4b ff ff a0 b ffc30a3c <== NOT EXECUTED sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); ffc30aa0: 3c a0 ff c3 lis r5,-61 <== NOT EXECUTED ffc30aa4: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc30aa8: 38 a5 09 5c addi r5,r5,2396 <== NOT EXECUTED ffc30aac: 48 00 26 61 bl ffc3310c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc30ab0: 7c 60 1b 79 mr. r0,r3 <== NOT EXECUTED ffc30ab4: 40 82 ff a0 bne+ ffc30a54 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; ffc30ab8: 81 21 00 08 lwz r9,8(r1) <== NOT EXECUTED ffc30abc: 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; ffc30ac0: 4b ff ff a0 b ffc30a60 <== NOT EXECUTED ffc0e23c : uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { ffc0e23c: 54 60 07 7c rlwinm r0,r3,0,29,30 ffc0e240: 2f 80 00 06 cmpwi cr7,r0,6 ffc0e244: 38 00 00 02 li r0,2 ffc0e248: 41 9e 00 18 beq- cr7,ffc0e260 <== NEVER TAKEN fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { ffc0e24c: 54 69 ff fe rlwinm r9,r3,31,31,31 ffc0e250: 31 29 ff ff addic r9,r9,-1 ffc0e254: 7d 29 49 10 subfe r9,r9,r9 ffc0e258: 54 60 f7 fe rlwinm r0,r3,30,31,31 ffc0e25c: 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 ) { ffc0e260: 70 69 00 01 andi. r9,r3,1 ffc0e264: 41 82 00 08 beq- ffc0e26c fcntl_flags |= O_NONBLOCK; ffc0e268: 60 00 40 00 ori r0,r0,16384 } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { ffc0e26c: 70 69 02 00 andi. r9,r3,512 ffc0e270: 41 82 00 08 beq- ffc0e278 fcntl_flags |= O_APPEND; ffc0e274: 60 00 00 08 ori r0,r0,8 } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { ffc0e278: 70 69 04 00 andi. r9,r3,1024 ffc0e27c: 41 82 00 08 beq- ffc0e284 fcntl_flags |= O_CREAT; ffc0e280: 60 00 02 00 ori r0,r0,512 } return fcntl_flags; } ffc0e284: 7c 03 03 78 mr r3,r0 ffc0e288: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09754 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { ffc09754: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc09758: 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 ) { ffc0975c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc09760: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc09764: 80 69 34 dc lwz r3,13532(r9) <== NOT EXECUTED ffc09768: 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 ) { ffc0976c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { ffc09770: 48 00 73 c5 bl ffc10b34 <_Protected_heap_Get_block_size> <== NOT EXECUTED ffc09774: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc09778: 41 9e 00 2c beq- cr7,ffc097a4 <== NOT EXECUTED MSBUMP(lifetime_freed, size); ffc0977c: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc09780: 81 41 00 08 lwz r10,8(r1) <== NOT EXECUTED ffc09784: 39 6b 63 a0 addi r11,r11,25504 <== NOT EXECUTED ffc09788: 80 ab 00 28 lwz r5,40(r11) <== NOT EXECUTED ffc0978c: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc09790: 80 cb 00 2c lwz r6,44(r11) <== NOT EXECUTED ffc09794: 7d 0a 30 14 addc r8,r10,r6 <== NOT EXECUTED ffc09798: 7c e9 29 14 adde r7,r9,r5 <== NOT EXECUTED ffc0979c: 90 eb 00 28 stw r7,40(r11) <== NOT EXECUTED ffc097a0: 91 0b 00 2c stw r8,44(r11) <== NOT EXECUTED } } ffc097a4: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc097a8: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc097ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc097b0: 4e 80 00 20 blr <== NOT EXECUTED ffc097b4 : { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) ffc097b4: 7c 64 1b 79 mr. r4,r3 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { ffc097b8: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc097bc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc097c0: 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 ) ffc097c4: 41 82 00 5c beq- ffc09820 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; ffc097c8: 7c 25 0b 78 mr r5,r1 <== NOT EXECUTED ffc097cc: 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); ffc097d0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; ffc097d4: 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); ffc097d8: 80 69 34 dc lwz r3,13532(r9) <== NOT EXECUTED ffc097dc: 48 00 73 59 bl ffc10b34 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); ffc097e0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc097e4: 39 29 63 a0 addi r9,r9,25504 <== NOT EXECUTED ffc097e8: 81 81 00 08 lwz r12,8(r1) <== NOT EXECUTED ffc097ec: 80 a9 00 20 lwz r5,32(r9) <== NOT EXECUTED ffc097f0: 39 60 00 00 li r11,0 <== NOT EXECUTED ffc097f4: 80 c9 00 24 lwz r6,36(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); ffc097f8: 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); ffc097fc: 7d 0c 30 14 addc r8,r12,r6 <== NOT EXECUTED ffc09800: 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) ffc09804: 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); ffc09808: 90 e9 00 20 stw r7,32(r9) <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); ffc0980c: 7c 00 40 50 subf r0,r0,r8 <== NOT EXECUTED if (current_depth > s->max_depth) ffc09810: 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); ffc09814: 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) ffc09818: 40 9d 00 08 ble- cr7,ffc09820 <== NOT EXECUTED s->max_depth = current_depth; ffc0981c: 90 09 00 18 stw r0,24(r9) <== NOT EXECUTED } ffc09820: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc09824: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc09828: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0982c: 4e 80 00 20 blr <== NOT EXECUTED ffc09830 : #include #include static void rtems_malloc_statistics_initialize( void ) { ffc09830: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc09834: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); ffc09838: 3c 60 00 00 lis r3,0 <== NOT EXECUTED ffc0983c: 38 63 63 a0 addi r3,r3,25504 <== NOT EXECUTED #include #include static void rtems_malloc_statistics_initialize( void ) { ffc09840: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); ffc09844: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc09848: 38 a0 00 30 li r5,48 <== NOT EXECUTED ffc0984c: 48 04 89 bd bl ffc52208 <== NOT EXECUTED } ffc09850: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc09854: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc09858: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0985c: 4e 80 00 20 blr <== NOT EXECUTED ffc148fc : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc148fc: 94 21 ff e8 stwu r1,-24(r1) ffc14900: 7c 08 02 a6 mflr r0 ffc14904: 93 e1 00 14 stw r31,20(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc14908: 7c 7f 1b 79 mr. r31,r3 int rtems_memalign( void **pointer, size_t alignment, size_t size ) { ffc1490c: 93 a1 00 0c stw r29,12(r1) ffc14910: 7c bd 2b 78 mr r29,r5 ffc14914: 93 c1 00 10 stw r30,16(r1) ffc14918: 7c 9e 23 78 mr r30,r4 ffc1491c: 90 01 00 1c stw r0,28(r1) void *return_this; /* * Parameter error checks */ if ( !pointer ) ffc14920: 41 82 00 94 beq- ffc149b4 *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && ffc14924: 3d 20 00 00 lis r9,0 ffc14928: 80 09 27 f4 lwz r0,10228(r9) ffc1492c: 2f 80 00 03 cmpwi cr7,r0,3 * Parameter error checks */ if ( !pointer ) return EINVAL; *pointer = NULL; ffc14930: 38 00 00 00 li r0,0 ffc14934: 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()) && ffc14938: 41 9e 00 70 beq- cr7,ffc149a8 <== ALWAYS TAKEN /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); ffc1493c: 4b ff 18 4d bl ffc06188 <== ALWAYS TAKEN uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); ffc14940: 3d 20 00 00 lis r9,0 ffc14944: 80 69 26 bc lwz r3,9916(r9) ffc14948: 7f c5 f3 78 mr r5,r30 ffc1494c: 7f a4 eb 78 mr r4,r29 ffc14950: 38 c0 00 00 li r6,0 ffc14954: 4b ff 7f e5 bl ffc0c938 <_Protected_heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) ffc14958: 7c 7e 1b 79 mr. r30,r3 ffc1495c: 38 60 00 0c li r3,12 ffc14960: 41 82 00 2c beq- ffc1498c return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) ffc14964: 3d 20 00 00 lis r9,0 ffc14968: 81 29 27 28 lwz r9,10024(r9) ffc1496c: 2f 89 00 00 cmpwi cr7,r9,0 ffc14970: 41 9e 00 14 beq- cr7,ffc14984 <== ALWAYS TAKEN (*rtems_malloc_statistics_helpers->at_malloc)(pointer); ffc14974: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc14978: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc1497c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc14980: 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; ffc14984: 93 df 00 00 stw r30,0(r31) ffc14988: 38 60 00 00 li r3,0 return 0; } ffc1498c: 80 01 00 1c lwz r0,28(r1) ffc14990: 83 a1 00 0c lwz r29,12(r1) ffc14994: 7c 08 03 a6 mtlr r0 ffc14998: 83 c1 00 10 lwz r30,16(r1) ffc1499c: 83 e1 00 14 lwz r31,20(r1) ffc149a0: 38 21 00 18 addi r1,r1,24 ffc149a4: 4e 80 00 20 blr <== ALWAYS TAKEN *pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && ffc149a8: 4b ff 17 6d bl ffc06114 <== ALWAYS TAKEN ffc149ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc149b0: 40 9e ff 8c bne+ cr7,ffc1493c <== ALWAYS TAKEN (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; } ffc149b4: 80 01 00 1c lwz r0,28(r1) if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; ffc149b8: 38 60 00 16 li r3,22 } ffc149bc: 83 a1 00 0c lwz r29,12(r1) ffc149c0: 7c 08 03 a6 mtlr r0 ffc149c4: 83 c1 00 10 lwz r30,16(r1) ffc149c8: 83 e1 00 14 lwz r31,20(r1) ffc149cc: 38 21 00 18 addi r1,r1,24 ffc149d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc175a8 : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { ffc175a8: 94 21 ff d0 stwu r1,-48(r1) ffc175ac: 7c 08 02 a6 mflr r0 ffc175b0: 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 ) ffc175b4: 7c 9c 23 79 mr. r28,r4 rtems_id id, const void *buffer, size_t size, uint32_t *count ) { ffc175b8: 93 a1 00 24 stw r29,36(r1) ffc175bc: 7c bd 2b 78 mr r29,r5 ffc175c0: 93 c1 00 28 stw r30,40(r1) ffc175c4: 7c 7e 1b 78 mr r30,r3 ffc175c8: 93 e1 00 2c stw r31,44(r1) ffc175cc: 7c df 33 78 mr r31,r6 ffc175d0: 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 ) ffc175d4: 41 82 00 a0 beq- ffc17674 return RTEMS_INVALID_ADDRESS; if ( !count ) ffc175d8: 2f 86 00 00 cmpwi cr7,r6,0 ffc175dc: 41 9e 00 98 beq- cr7,ffc17674 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) ffc175e0: 3c 60 00 00 lis r3,0 ffc175e4: 38 63 79 04 addi r3,r3,30980 ffc175e8: 7f c4 f3 78 mr r4,r30 ffc175ec: 38 a1 00 08 addi r5,r1,8 ffc175f0: 48 00 6a 81 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc175f4: 80 01 00 08 lwz r0,8(r1) ffc175f8: 7c 69 1b 78 mr r9,r3 ffc175fc: 2f 80 00 00 cmpwi cr7,r0,0 ffc17600: 38 60 00 04 li r3,4 ffc17604: 41 9e 00 24 beq- cr7,ffc17628 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17608: 80 01 00 34 lwz r0,52(r1) ffc1760c: 83 81 00 20 lwz r28,32(r1) ffc17610: 7c 08 03 a6 mtlr r0 ffc17614: 83 a1 00 24 lwz r29,36(r1) ffc17618: 83 c1 00 28 lwz r30,40(r1) ffc1761c: 83 e1 00 2c lwz r31,44(r1) ffc17620: 38 21 00 30 addi r1,r1,48 ffc17624: 4e 80 00 20 blr <== ALWAYS TAKEN the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast( ffc17628: 7f 84 e3 78 mr r4,r28 ffc1762c: 7f a5 eb 78 mr r5,r29 ffc17630: 7f c6 f3 78 mr r6,r30 ffc17634: 7f e8 fb 78 mr r8,r31 ffc17638: 38 69 00 14 addi r3,r9,20 ffc1763c: 38 e0 00 00 li r7,0 ffc17640: 48 00 49 9d bl ffc1bfdc <_CORE_message_queue_Broadcast> <== ALWAYS TAKEN NULL, #endif count ); _Thread_Enable_dispatch(); ffc17644: 90 61 00 18 stw r3,24(r1) ffc17648: 48 00 76 b5 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Message_queue_Translate_core_message_queue_return_code( core_status ); ffc1764c: 80 61 00 18 lwz r3,24(r1) ffc17650: 48 00 05 01 bl ffc17b50 <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17654: 80 01 00 34 lwz r0,52(r1) ffc17658: 83 81 00 20 lwz r28,32(r1) ffc1765c: 7c 08 03 a6 mtlr r0 ffc17660: 83 a1 00 24 lwz r29,36(r1) ffc17664: 83 c1 00 28 lwz r30,40(r1) ffc17668: 83 e1 00 2c lwz r31,44(r1) ffc1766c: 38 21 00 30 addi r1,r1,48 ffc17670: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17674: 80 01 00 34 lwz r0,52(r1) #endif count ); _Thread_Enable_dispatch(); return ffc17678: 38 60 00 09 li r3,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1767c: 83 81 00 20 lwz r28,32(r1) ffc17680: 7c 08 03 a6 mtlr r0 ffc17684: 83 a1 00 24 lwz r29,36(r1) ffc17688: 83 c1 00 28 lwz r30,40(r1) ffc1768c: 83 e1 00 2c lwz r31,44(r1) ffc17690: 38 21 00 30 addi r1,r1,48 ffc17694: 4e 80 00 20 blr <== ALWAYS TAKEN ffc130a8 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { ffc130a8: 94 21 ff c8 stwu r1,-56(r1) ffc130ac: 7c 08 02 a6 mflr r0 ffc130b0: 93 e1 00 34 stw r31,52(r1) CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) ffc130b4: 7c 7f 1b 79 mr. r31,r3 ffc130b8: 38 60 00 03 li r3,3 uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { ffc130bc: 93 c1 00 30 stw r30,48(r1) ffc130c0: 7c be 2b 78 mr r30,r5 ffc130c4: 90 01 00 3c stw r0,60(r1) ffc130c8: 93 a1 00 2c stw r29,44(r1) CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) ) ffc130cc: 41 82 00 28 beq- ffc130f4 return RTEMS_INVALID_NAME; if ( !id ) ffc130d0: 2f 87 00 00 cmpwi cr7,r7,0 ffc130d4: 38 60 00 09 li r3,9 ffc130d8: 41 9e 00 1c beq- cr7,ffc130f4 if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) ffc130dc: 2f 84 00 00 cmpwi cr7,r4,0 ffc130e0: 38 60 00 0a li r3,10 ffc130e4: 41 9e 00 10 beq- cr7,ffc130f4 return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) ffc130e8: 2f 85 00 00 cmpwi cr7,r5,0 ffc130ec: 38 60 00 08 li r3,8 ffc130f0: 40 9e 00 20 bne- cr7,ffc13110 ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } ffc130f4: 80 01 00 3c lwz r0,60(r1) ffc130f8: 83 a1 00 2c lwz r29,44(r1) ffc130fc: 7c 08 03 a6 mtlr r0 ffc13100: 83 c1 00 30 lwz r30,48(r1) ffc13104: 83 e1 00 34 lwz r31,52(r1) ffc13108: 38 21 00 38 addi r1,r1,56 ffc1310c: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc13110: 3d 20 00 00 lis r9,0 ffc13114: 81 69 28 10 lwz r11,10256(r9) ffc13118: 38 0b 00 01 addi r0,r11,1 ffc1311c: 90 09 28 10 stw r0,10256(r9) #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); ffc13120: 90 81 00 18 stw r4,24(r1) ffc13124: 90 c1 00 1c stw r6,28(r1) ffc13128: 90 e1 00 20 stw r7,32(r1) ffc1312c: 48 00 7c 15 bl ffc1ad40 <_Message_queue_Allocate> <== ALWAYS TAKEN if ( !the_message_queue ) { ffc13130: 7c 7d 1b 79 mr. r29,r3 ffc13134: 80 81 00 18 lwz r4,24(r1) ffc13138: 80 c1 00 1c lwz r6,28(r1) ffc1313c: 80 e1 00 20 lwz r7,32(r1) ffc13140: 41 82 00 88 beq- ffc131c8 } #endif the_message_queue->attribute_set = attribute_set; if (_Attributes_Is_priority( attribute_set ) ) ffc13144: 70 c0 00 04 andi. r0,r6,4 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; ffc13148: 90 dd 00 10 stw r6,16(r29) if (_Attributes_Is_priority( attribute_set ) ) ffc1314c: 41 82 00 4c beq- ffc13198 the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; ffc13150: 38 00 00 01 li r0,1 ffc13154: 90 01 00 08 stw r0,8(r1) else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize( ffc13158: 7c 85 23 78 mr r5,r4 ffc1315c: 90 e1 00 20 stw r7,32(r1) ffc13160: 7f c6 f3 78 mr r6,r30 ffc13164: 38 7d 00 14 addi r3,r29,20 ffc13168: 38 81 00 08 addi r4,r1,8 ffc1316c: 48 00 19 19 bl ffc14a84 <_CORE_message_queue_Initialize> <== ALWAYS TAKEN ffc13170: 80 e1 00 20 lwz r7,32(r1) ffc13174: 2f 83 00 00 cmpwi cr7,r3,0 ffc13178: 40 9e 00 28 bne- cr7,ffc131a0 */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); ffc1317c: 3c 60 00 00 lis r3,0 ffc13180: 38 63 36 64 addi r3,r3,13924 ffc13184: 7f a4 eb 78 mr r4,r29 ffc13188: 48 00 2b dd bl ffc15d64 <_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(); ffc1318c: 48 00 3a 59 bl ffc16be4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc13190: 38 60 00 0d li r3,13 return RTEMS_UNSATISFIED; ffc13194: 4b ff ff 60 b ffc130f4 <== ALWAYS TAKEN 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; ffc13198: 90 01 00 08 stw r0,8(r1) ffc1319c: 4b ff ff bc b ffc13158 <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc131a0: 80 1d 00 08 lwz r0,8(r29) ffc131a4: 3d 20 00 00 lis r9,0 ffc131a8: 81 69 36 80 lwz r11,13952(r9) ffc131ac: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc131b0: 93 fd 00 0c stw r31,12(r29) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc131b4: 7f ab 49 2e stwx r29,r11,r9 &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; ffc131b8: 90 07 00 00 stw r0,0(r7) name, 0 ); #endif _Thread_Enable_dispatch(); ffc131bc: 48 00 3a 29 bl ffc16be4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc131c0: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc131c4: 4b ff ff 30 b ffc130f4 <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch(); ffc131c8: 48 00 3a 1d bl ffc16be4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc131cc: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc131d0: 4b ff ff 24 b ffc130f4 <== ALWAYS TAKEN ffc192dc : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { ffc192dc: 94 21 ff e0 stwu r1,-32(r1) ffc192e0: 7c 08 02 a6 mflr r0 ffc192e4: 7c 64 1b 78 mr r4,r3 ffc192e8: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) ffc192ec: 3f e0 00 00 lis r31,0 ffc192f0: 3b ff 3e 24 addi r31,r31,15908 ffc192f4: 7f e3 fb 78 mr r3,r31 ffc192f8: 90 01 00 24 stw r0,36(r1) ffc192fc: 38 a1 00 08 addi r5,r1,8 ffc19300: 93 c1 00 18 stw r30,24(r1) ffc19304: 4b ff 78 89 bl ffc10b8c <_Objects_Get> <== ALWAYS TAKEN ffc19308: 7c 7e 1b 78 mr r30,r3 register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc1930c: 80 01 00 08 lwz r0,8(r1) ffc19310: 38 60 00 04 li r3,4 ffc19314: 2f 80 00 00 cmpwi cr7,r0,0 ffc19318: 40 9e 00 34 bne- cr7,ffc1934c case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, ffc1931c: 7f e3 fb 78 mr r3,r31 ffc19320: 7f c4 f3 78 mr r4,r30 ffc19324: 4b ff 73 31 bl ffc10654 <_Objects_Close> <== ALWAYS TAKEN &the_message_queue->Object ); _CORE_message_queue_Close( ffc19328: 38 a0 00 05 li r5,5 ffc1932c: 38 7e 00 14 addi r3,r30,20 ffc19330: 38 80 00 00 li r4,0 ffc19334: 48 00 08 35 bl ffc19b68 <_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 ); ffc19338: 7f e3 fb 78 mr r3,r31 ffc1933c: 7f c4 f3 78 mr r4,r30 ffc19340: 4b ff 76 6d bl ffc109ac <_Objects_Free> <== ALWAYS TAKEN 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); ffc19344: 4b ff 84 d5 bl ffc11818 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc19348: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1934c: 80 01 00 24 lwz r0,36(r1) ffc19350: 83 c1 00 18 lwz r30,24(r1) ffc19354: 7c 08 03 a6 mtlr r0 ffc19358: 83 e1 00 1c lwz r31,28(r1) ffc1935c: 38 21 00 20 addi r1,r1,32 ffc19360: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1784c : rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { ffc1784c: 94 21 ff e0 stwu r1,-32(r1) ffc17850: 7c 08 02 a6 mflr r0 ffc17854: 93 e1 00 1c stw r31,28(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) ffc17858: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { ffc1785c: 7c 64 1b 78 mr r4,r3 ffc17860: 90 01 00 24 stw r0,36(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) ffc17864: 38 60 00 09 li r3,9 ffc17868: 41 82 00 28 beq- ffc17890 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) ffc1786c: 3c 60 00 00 lis r3,0 ffc17870: 38 63 79 04 addi r3,r3,30980 ffc17874: 38 a1 00 08 addi r5,r1,8 ffc17878: 48 00 67 f9 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc1787c: 80 01 00 08 lwz r0,8(r1) ffc17880: 7c 69 1b 78 mr r9,r3 ffc17884: 2f 80 00 00 cmpwi cr7,r0,0 ffc17888: 38 60 00 04 li r3,4 ffc1788c: 41 9e 00 18 beq- cr7,ffc178a4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17890: 80 01 00 24 lwz r0,36(r1) ffc17894: 83 e1 00 1c lwz r31,28(r1) ffc17898: 38 21 00 20 addi r1,r1,32 ffc1789c: 7c 08 03 a6 mtlr r0 ffc178a0: 4e 80 00 20 blr <== ALWAYS TAKEN the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); ffc178a4: 38 69 00 14 addi r3,r9,20 ffc178a8: 48 00 48 5d bl ffc1c104 <_CORE_message_queue_Flush> <== ALWAYS TAKEN ffc178ac: 90 7f 00 00 stw r3,0(r31) _Thread_Enable_dispatch(); ffc178b0: 48 00 74 4d bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc178b4: 80 01 00 24 lwz r0,36(r1) the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *count = _CORE_message_queue_Flush( &the_message_queue->message_queue ); _Thread_Enable_dispatch(); ffc178b8: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc178bc: 83 e1 00 1c lwz r31,28(r1) ffc178c0: 7c 08 03 a6 mtlr r0 ffc178c4: 38 21 00 20 addi r1,r1,32 ffc178c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc178cc : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { ffc178cc: 94 21 ff e0 stwu r1,-32(r1) ffc178d0: 7c 08 02 a6 mflr r0 ffc178d4: 93 e1 00 1c stw r31,28(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) ffc178d8: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { ffc178dc: 7c 64 1b 78 mr r4,r3 ffc178e0: 90 01 00 24 stw r0,36(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) ffc178e4: 38 60 00 09 li r3,9 ffc178e8: 41 82 00 28 beq- ffc17910 ffc178ec: 3c 60 00 00 lis r3,0 ffc178f0: 38 63 79 04 addi r3,r3,30980 ffc178f4: 38 a1 00 08 addi r5,r1,8 ffc178f8: 48 00 67 79 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc178fc: 80 01 00 08 lwz r0,8(r1) ffc17900: 7c 69 1b 78 mr r9,r3 ffc17904: 2f 80 00 00 cmpwi cr7,r0,0 ffc17908: 38 60 00 04 li r3,4 ffc1790c: 41 9e 00 18 beq- cr7,ffc17924 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17910: 80 01 00 24 lwz r0,36(r1) ffc17914: 83 e1 00 1c lwz r31,28(r1) ffc17918: 38 21 00 20 addi r1,r1,32 ffc1791c: 7c 08 03 a6 mtlr r0 ffc17920: 4e 80 00 20 blr <== ALWAYS TAKEN the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; ffc17924: 80 09 00 5c lwz r0,92(r9) ffc17928: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc1792c: 48 00 73 d1 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17930: 80 01 00 24 lwz r0,36(r1) the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: *count = the_message_queue->message_queue.number_of_pending_messages; _Thread_Enable_dispatch(); ffc17934: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17938: 83 e1 00 1c lwz r31,28(r1) ffc1793c: 7c 08 03 a6 mtlr r0 ffc17940: 38 21 00 20 addi r1,r1,32 ffc17944: 4e 80 00 20 blr <== ALWAYS TAKEN ffc131d4 : rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc131d4: 94 21 ff f8 stwu r1,-8(r1) ffc131d8: 7c 08 02 a6 mflr r0 ffc131dc: 7c 69 1b 78 mr r9,r3 ffc131e0: 90 01 00 0c stw r0,12(r1) Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc131e4: 3c 60 00 00 lis r3,0 rtems_status_code rtems_message_queue_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc131e8: 7c 80 23 78 mr r0,r4 <== ALWAYS TAKEN ffc131ec: 7c a6 2b 78 mr r6,r5 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc131f0: 7d 24 4b 78 mr r4,r9 ffc131f4: 7c 05 03 78 mr r5,r0 ffc131f8: 38 63 36 64 addi r3,r3,13924 ffc131fc: 48 00 2f 21 bl ffc1611c <_Objects_Name_to_id_u32> <== ALWAYS TAKEN node, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc13200: 80 01 00 0c lwz r0,12(r1) ffc13204: 3d 20 ff c3 lis r9,-61 ffc13208: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1320c: 54 63 10 3a rlwinm r3,r3,2,0,29 node, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc13210: 39 29 e8 8c addi r9,r9,-6004 ffc13214: 7c 69 18 2e lwzx r3,r9,r3 ffc13218: 38 21 00 08 addi r1,r1,8 ffc1321c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc13220 : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { ffc13220: 94 21 ff d8 stwu r1,-40(r1) ffc13224: 7c 08 02 a6 mflr r0 ffc13228: 93 a1 00 1c stw r29,28(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) ffc1322c: 7c 9d 23 79 mr. r29,r4 void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { ffc13230: 7c 64 1b 78 mr r4,r3 ffc13234: 93 81 00 18 stw r28,24(r1) ffc13238: 7c dc 33 78 mr r28,r6 ffc1323c: 93 c1 00 20 stw r30,32(r1) ffc13240: 7c fe 3b 78 mr r30,r7 ffc13244: 93 e1 00 24 stw r31,36(r1) ffc13248: 7c bf 2b 78 mr r31,r5 ffc1324c: 90 01 00 2c stw r0,44(r1) register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) ffc13250: 41 82 00 a4 beq- ffc132f4 return RTEMS_INVALID_ADDRESS; if ( !size ) ffc13254: 2f 85 00 00 cmpwi cr7,r5,0 ffc13258: 41 9e 00 9c beq- cr7,ffc132f4 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) ffc1325c: 3c 60 00 00 lis r3,0 ffc13260: 38 63 36 64 addi r3,r3,13924 ffc13264: 38 a1 00 08 addi r5,r1,8 ffc13268: 48 00 2c dd bl ffc15f44 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc1326c: 80 01 00 08 lwz r0,8(r1) ffc13270: 7c 69 1b 78 mr r9,r3 ffc13274: 2f 80 00 00 cmpwi cr7,r0,0 ffc13278: 38 60 00 04 li r3,4 ffc1327c: 41 9e 00 24 beq- cr7,ffc132a0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc13280: 80 01 00 2c lwz r0,44(r1) ffc13284: 83 81 00 18 lwz r28,24(r1) ffc13288: 7c 08 03 a6 mtlr r0 ffc1328c: 83 a1 00 1c lwz r29,28(r1) ffc13290: 83 c1 00 20 lwz r30,32(r1) ffc13294: 83 e1 00 24 lwz r31,36(r1) ffc13298: 38 21 00 28 addi r1,r1,40 ffc1329c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( ffc132a0: 80 89 00 08 lwz r4,8(r9) ffc132a4: 6b 87 00 01 xori r7,r28,1 ffc132a8: 7f a5 eb 78 mr r5,r29 ffc132ac: 7f e6 fb 78 mr r6,r31 ffc132b0: 7f c8 f3 78 mr r8,r30 ffc132b4: 38 69 00 14 addi r3,r9,20 ffc132b8: 54 e7 07 fe clrlwi r7,r7,31 ffc132bc: 48 00 18 cd bl ffc14b88 <_CORE_message_queue_Seize> <== ALWAYS TAKEN buffer, size, wait, timeout ); _Thread_Enable_dispatch(); ffc132c0: 48 00 39 25 bl ffc16be4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Message_queue_Translate_core_message_queue_return_code( ffc132c4: 3d 20 00 00 lis r9,0 ffc132c8: 81 29 28 50 lwz r9,10320(r9) ffc132cc: 80 69 00 34 lwz r3,52(r9) ffc132d0: 48 00 01 0d bl ffc133dc <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc132d4: 80 01 00 2c lwz r0,44(r1) ffc132d8: 83 81 00 18 lwz r28,24(r1) ffc132dc: 7c 08 03 a6 mtlr r0 ffc132e0: 83 a1 00 1c lwz r29,28(r1) ffc132e4: 83 c1 00 20 lwz r30,32(r1) ffc132e8: 83 e1 00 24 lwz r31,36(r1) ffc132ec: 38 21 00 28 addi r1,r1,40 ffc132f0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc132f4: 80 01 00 2c lwz r0,44(r1) size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( ffc132f8: 38 60 00 09 li r3,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc132fc: 83 81 00 18 lwz r28,24(r1) ffc13300: 7c 08 03 a6 mtlr r0 ffc13304: 83 a1 00 1c lwz r29,28(r1) ffc13308: 83 c1 00 20 lwz r30,32(r1) ffc1330c: 83 e1 00 24 lwz r31,36(r1) ffc13310: 38 21 00 28 addi r1,r1,40 ffc13314: 4e 80 00 20 blr <== ALWAYS TAKEN ffc13318 : rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { ffc13318: 94 21 ff d0 stwu r1,-48(r1) ffc1331c: 7c 08 02 a6 mflr r0 ffc13320: 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 ) ffc13324: 7c 9d 23 79 mr. r29,r4 rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { ffc13328: 93 c1 00 28 stw r30,40(r1) ffc1332c: 7c be 2b 78 mr r30,r5 ffc13330: 93 e1 00 2c stw r31,44(r1) ffc13334: 7c 7f 1b 78 mr r31,r3 register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) ffc13338: 38 60 00 09 li r3,9 rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { ffc1333c: 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 ) ffc13340: 41 82 00 2c beq- ffc1336c ffc13344: 3c 60 00 00 lis r3,0 ffc13348: 38 63 36 64 addi r3,r3,13924 ffc1334c: 7f e4 fb 78 mr r4,r31 ffc13350: 38 a1 00 08 addi r5,r1,8 ffc13354: 48 00 2b f1 bl ffc15f44 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc13358: 80 01 00 08 lwz r0,8(r1) ffc1335c: 7c 69 1b 78 mr r9,r3 ffc13360: 2f 80 00 00 cmpwi cr7,r0,0 ffc13364: 38 60 00 04 li r3,4 ffc13368: 41 9e 00 20 beq- cr7,ffc13388 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1336c: 80 01 00 34 lwz r0,52(r1) ffc13370: 83 a1 00 24 lwz r29,36(r1) ffc13374: 7c 08 03 a6 mtlr r0 ffc13378: 83 c1 00 28 lwz r30,40(r1) ffc1337c: 83 e1 00 2c lwz r31,44(r1) ffc13380: 38 21 00 30 addi r1,r1,48 ffc13384: 4e 80 00 20 blr <== ALWAYS TAKEN CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( ffc13388: 3d 00 7f ff lis r8,32767 ffc1338c: 7f a4 eb 78 mr r4,r29 ffc13390: 7f c5 f3 78 mr r5,r30 ffc13394: 7f e6 fb 78 mr r6,r31 ffc13398: 61 08 ff ff ori r8,r8,65535 ffc1339c: 38 e0 00 00 li r7,0 ffc133a0: 39 40 00 00 li r10,0 ffc133a4: 38 69 00 14 addi r3,r9,20 ffc133a8: 39 20 00 00 li r9,0 ffc133ac: 48 00 19 69 bl ffc14d14 <_CORE_message_queue_Submit> <== ALWAYS TAKEN MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); ffc133b0: 90 61 00 18 stw r3,24(r1) ffc133b4: 48 00 38 31 bl ffc16be4 <_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); ffc133b8: 80 61 00 18 lwz r3,24(r1) ffc133bc: 48 00 00 21 bl ffc133dc <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc133c0: 80 01 00 34 lwz r0,52(r1) ffc133c4: 83 a1 00 24 lwz r29,36(r1) ffc133c8: 7c 08 03 a6 mtlr r0 ffc133cc: 83 c1 00 28 lwz r30,40(r1) ffc133d0: 83 e1 00 2c lwz r31,44(r1) ffc133d4: 38 21 00 30 addi r1,r1,48 ffc133d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17b64 : rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { ffc17b64: 94 21 ff d0 stwu r1,-48(r1) ffc17b68: 7c 08 02 a6 mflr r0 ffc17b6c: 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 ) ffc17b70: 7c 9d 23 79 mr. r29,r4 rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { ffc17b74: 93 c1 00 28 stw r30,40(r1) ffc17b78: 7c be 2b 78 mr r30,r5 ffc17b7c: 93 e1 00 2c stw r31,44(r1) ffc17b80: 7c 7f 1b 78 mr r31,r3 register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) ffc17b84: 38 60 00 09 li r3,9 rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { ffc17b88: 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 ) ffc17b8c: 41 82 00 2c beq- ffc17bb8 ffc17b90: 3c 60 00 00 lis r3,0 ffc17b94: 38 63 79 04 addi r3,r3,30980 ffc17b98: 7f e4 fb 78 mr r4,r31 ffc17b9c: 38 a1 00 08 addi r5,r1,8 ffc17ba0: 48 00 64 d1 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { ffc17ba4: 80 01 00 08 lwz r0,8(r1) ffc17ba8: 7c 69 1b 78 mr r9,r3 ffc17bac: 2f 80 00 00 cmpwi cr7,r0,0 ffc17bb0: 38 60 00 04 li r3,4 ffc17bb4: 41 9e 00 20 beq- cr7,ffc17bd4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17bb8: 80 01 00 34 lwz r0,52(r1) ffc17bbc: 83 a1 00 24 lwz r29,36(r1) ffc17bc0: 7c 08 03 a6 mtlr r0 ffc17bc4: 83 c1 00 28 lwz r30,40(r1) ffc17bc8: 83 e1 00 2c lwz r31,44(r1) ffc17bcc: 38 21 00 30 addi r1,r1,48 ffc17bd0: 4e 80 00 20 blr <== ALWAYS TAKEN CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( ffc17bd4: 7f a4 eb 78 mr r4,r29 ffc17bd8: 7f c5 f3 78 mr r5,r30 ffc17bdc: 7f e6 fb 78 mr r6,r31 ffc17be0: 38 e0 00 00 li r7,0 ffc17be4: 3d 00 80 00 lis r8,-32768 ffc17be8: 39 40 00 00 li r10,0 ffc17bec: 38 69 00 14 addi r3,r9,20 ffc17bf0: 39 20 00 00 li r9,0 ffc17bf4: 48 00 48 35 bl ffc1c428 <_CORE_message_queue_Submit> <== ALWAYS TAKEN id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); ffc17bf8: 90 61 00 18 stw r3,24(r1) ffc17bfc: 48 00 71 01 bl ffc1ecfc <_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); ffc17c00: 80 61 00 18 lwz r3,24(r1) ffc17c04: 4b ff ff 4d bl ffc17b50 <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17c08: 80 01 00 34 lwz r0,52(r1) ffc17c0c: 83 a1 00 24 lwz r29,36(r1) ffc17c10: 7c 08 03 a6 mtlr r0 ffc17c14: 83 c1 00 28 lwz r30,40(r1) ffc17c18: 83 e1 00 2c lwz r31,44(r1) ffc17c1c: 38 21 00 30 addi r1,r1,48 ffc17c20: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08954 : #include int rtems_object_api_maximum_class( int api ) { ffc08954: 94 21 ff f8 stwu r1,-8(r1) ffc08958: 7c 08 02 a6 mflr r0 ffc0895c: 90 01 00 0c stw r0,12(r1) return _Objects_API_maximum_class(api); ffc08960: 48 00 1d f5 bl ffc0a754 <_Objects_API_maximum_class> <== ALWAYS TAKEN } ffc08964: 80 01 00 0c lwz r0,12(r1) ffc08968: 38 21 00 08 addi r1,r1,8 ffc0896c: 7c 08 03 a6 mtlr r0 ffc08970: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08974 : */ RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid( uint32_t the_api ) { if ( !the_api || the_api > OBJECTS_APIS_LAST ) ffc08974: 38 63 ff ff addi r3,r3,-1 ffc08978: 20 63 00 03 subfic r3,r3,3 ffc0897c: 7c 63 19 10 subfe r3,r3,r3 ) { if ( _Objects_Is_api_valid( api ) ) return 1; return -1; } ffc08980: 60 63 00 01 ori r3,r3,1 ffc08984: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08988 : ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) ffc08988: 2f 83 00 01 cmpwi cr7,r3,1 const char *rtems_object_get_api_class_name( int the_api, int the_class ) { ffc0898c: 94 21 ff f8 stwu r1,-8(r1) ffc08990: 7c 08 02 a6 mflr r0 ffc08994: 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 ) ffc08998: 41 9e 00 68 beq- cr7,ffc08a00 api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) ffc0899c: 2f 83 00 02 cmpwi cr7,r3,2 ffc089a0: 41 9e 00 50 beq- cr7,ffc089f0 api_assoc = rtems_object_api_classic_assoc; #ifdef RTEMS_POSIX_API else if ( the_api == OBJECTS_POSIX_API ) ffc089a4: 2f 83 00 03 cmpwi cr7,r3,3 ffc089a8: 41 9e 00 1c beq- cr7,ffc089c4 ffc089ac: 3c 60 ff c2 lis r3,-62 ffc089b0: 38 63 38 04 addi r3,r3,14340 return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) return class_assoc->name; return "BAD CLASS"; } ffc089b4: 80 01 00 0c lwz r0,12(r1) ffc089b8: 38 21 00 08 addi r1,r1,8 ffc089bc: 7c 08 03 a6 mtlr r0 ffc089c0: 4e 80 00 20 blr <== ALWAYS TAKEN if ( the_api == OBJECTS_INTERNAL_API ) api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) api_assoc = rtems_object_api_classic_assoc; #ifdef RTEMS_POSIX_API else if ( the_api == OBJECTS_POSIX_API ) ffc089c4: 3c 60 00 00 lis r3,0 ffc089c8: 38 63 21 94 addi r3,r3,8596 ffc089cc: 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 ); ffc089d0: 48 00 60 79 bl ffc0ea48 <== ALWAYS TAKEN if ( class_assoc ) ffc089d4: 2c 03 00 00 cmpwi r3,0 ffc089d8: 41 82 00 34 beq- ffc08a0c return class_assoc->name; return "BAD CLASS"; } ffc089dc: 80 01 00 0c lwz r0,12(r1) ffc089e0: 38 21 00 08 addi r1,r1,8 #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) return class_assoc->name; ffc089e4: 80 63 00 00 lwz r3,0(r3) return "BAD CLASS"; } ffc089e8: 7c 08 03 a6 mtlr r0 ffc089ec: 4e 80 00 20 blr <== ALWAYS TAKEN const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) ffc089f0: 3c 60 00 00 lis r3,0 ffc089f4: 38 63 21 94 addi r3,r3,8596 ffc089f8: 38 63 00 18 addi r3,r3,24 ffc089fc: 4b ff ff d4 b ffc089d0 <== ALWAYS TAKEN ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) ffc08a00: 3c 60 00 00 lis r3,0 ffc08a04: 38 63 21 94 addi r3,r3,8596 ffc08a08: 4b ff ff c8 b ffc089d0 <== ALWAYS TAKEN api_assoc = rtems_object_api_itron_assoc; #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); if ( class_assoc ) ffc08a0c: 3c 60 ff c2 lis r3,-62 ffc08a10: 38 63 38 0c addi r3,r3,14348 ffc08a14: 4b ff ff a0 b ffc089b4 <== ALWAYS TAKEN ffc08a18 : }; const char *rtems_object_get_api_name( int api ) { ffc08a18: 94 21 ff f8 stwu r1,-8(r1) ffc08a1c: 7c 08 02 a6 mflr r0 ffc08a20: 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 ); ffc08a24: 3c 60 00 00 lis r3,0 }; const char *rtems_object_get_api_name( int api ) { ffc08a28: 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 ); ffc08a2c: 38 63 22 b4 addi r3,r3,8884 ffc08a30: 48 00 60 19 bl ffc0ea48 <== ALWAYS TAKEN if ( api_assoc ) ffc08a34: 2c 03 00 00 cmpwi r3,0 ffc08a38: 41 82 00 18 beq- ffc08a50 return api_assoc->name; return "BAD CLASS"; } ffc08a3c: 80 01 00 0c lwz r0,12(r1) ffc08a40: 38 21 00 08 addi r1,r1,8 { const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); if ( api_assoc ) return api_assoc->name; ffc08a44: 80 63 00 00 lwz r3,0(r3) return "BAD CLASS"; } ffc08a48: 7c 08 03 a6 mtlr r0 ffc08a4c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08a50: 80 01 00 0c lwz r0,12(r1) ) { const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); if ( api_assoc ) ffc08a54: 3c 60 ff c2 lis r3,-62 ffc08a58: 38 63 38 0c addi r3,r3,14348 return api_assoc->name; return "BAD CLASS"; } ffc08a5c: 7c 08 03 a6 mtlr r0 ffc08a60: 38 21 00 08 addi r1,r1,8 ffc08a64: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a65c : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { ffc0a65c: 94 21 ff f0 stwu r1,-16(r1) ffc0a660: 7c 08 02 a6 mflr r0 ffc0a664: 93 e1 00 0c stw r31,12(r1) int i; /* * Validate parameters and look up information structure. */ if ( !info ) ffc0a668: 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 ) { ffc0a66c: 90 01 00 14 stw r0,20(r1) int i; /* * Validate parameters and look up information structure. */ if ( !info ) ffc0a670: 38 00 00 09 li r0,9 ffc0a674: 41 82 00 78 beq- ffc0a6ec return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); ffc0a678: 48 00 23 ad bl ffc0ca24 <_Objects_Get_information> <== ALWAYS TAKEN if ( !obj_info ) ffc0a67c: 38 00 00 0a li r0,10 ffc0a680: 2c 03 00 00 cmpwi r3,0 ffc0a684: 41 82 00 68 beq- ffc0a6ec * 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; info->maximum = obj_info->maximum; ffc0a688: a1 03 00 10 lhz r8,16(r3) return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; ffc0a68c: 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; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) ffc0a690: 2f 88 00 00 cmpwi cr7,r8,0 /* * 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; ffc0a694: 89 23 00 12 lbz r9,18(r3) return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; ffc0a698: 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; for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) ffc0a69c: 38 00 00 00 li r0,0 /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; info->maximum_id = obj_info->maximum_id; ffc0a6a0: 81 63 00 0c lwz r11,12(r3) info->auto_extend = obj_info->auto_extend; ffc0a6a4: 99 3f 00 0c stb r9,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; ffc0a6a8: 91 7f 00 04 stw r11,4(r31) info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum; ffc0a6ac: 91 1f 00 08 stw r8,8(r31) for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) ffc0a6b0: 41 9e 00 34 beq- cr7,ffc0a6e4 <== NEVER TAKEN ffc0a6b4: 80 e3 00 1c lwz r7,28(r3) ffc0a6b8: 39 60 00 01 li r11,1 ffc0a6bc: 39 20 00 01 li r9,1 ffc0a6c0: 39 29 00 01 addi r9,r9,1 ffc0a6c4: 7f 88 48 40 cmplw cr7,r8,r9 if ( !obj_info->local_table[i] ) ffc0a6c8: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc0a6cc: 7d 47 58 2e lwzx r10,r7,r11 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++ ) ffc0a6d0: 7d 2b 4b 78 mr r11,r9 if ( !obj_info->local_table[i] ) unallocated++; ffc0a6d4: 20 ca 00 00 subfic r6,r10,0 ffc0a6d8: 7c c0 01 94 addze r6,r0 ffc0a6dc: 7c c0 33 78 mr r0,r6 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++ ) ffc0a6e0: 40 9c ff e0 bge+ cr7,ffc0a6c0 if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; ffc0a6e4: 90 1f 00 10 stw r0,16(r31) ffc0a6e8: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc0a6ec: 7c 03 03 78 mr r3,r0 ffc0a6f0: 80 01 00 14 lwz r0,20(r1) ffc0a6f4: 83 e1 00 0c lwz r31,12(r1) ffc0a6f8: 38 21 00 10 addi r1,r1,16 ffc0a6fc: 7c 08 03 a6 mtlr r0 ffc0a700: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0e4ec : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { ffc0e4ec: 94 21 ff e0 stwu r1,-32(r1) ffc0e4f0: 7c 08 02 a6 mflr r0 ffc0e4f4: 93 e1 00 1c stw r31,28(r1) Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) ffc0e4f8: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { ffc0e4fc: 90 01 00 24 stw r0,36(r1) Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) ffc0e500: 38 00 00 09 li r0,9 ffc0e504: 41 82 00 24 beq- ffc0e528 return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); ffc0e508: 38 81 00 08 addi r4,r1,8 ffc0e50c: 48 00 27 1d bl ffc10c28 <_Objects_Id_to_name> <== ALWAYS TAKEN *name = name_u.name_u32; ffc0e510: 80 01 00 08 lwz r0,8(r1) return _Status_Object_name_errors_to_status[ status ]; ffc0e514: 3d 20 ff c3 lis r9,-61 ffc0e518: 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; ffc0e51c: 90 1f 00 00 stw r0,0(r31) return _Status_Object_name_errors_to_status[ status ]; ffc0e520: 39 29 11 0c addi r9,r9,4364 ffc0e524: 7c 09 18 2e lwzx r0,r9,r3 } ffc0e528: 7c 03 03 78 mr r3,r0 ffc0e52c: 80 01 00 24 lwz r0,36(r1) ffc0e530: 83 e1 00 1c lwz r31,28(r1) ffc0e534: 38 21 00 20 addi r1,r1,32 ffc0e538: 7c 08 03 a6 mtlr r0 ffc0e53c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1964c : char *rtems_object_get_name( Objects_Id id, size_t length, char *name ) { ffc1964c: 94 21 ff f8 stwu r1,-8(r1) ffc19650: 7c 08 02 a6 mflr r0 ffc19654: 90 01 00 0c stw r0,12(r1) return _Objects_Get_name_as_string( id, length, name ); ffc19658: 48 00 0f 9d bl ffc1a5f4 <_Objects_Get_name_as_string> <== ALWAYS TAKEN } ffc1965c: 80 01 00 0c lwz r0,12(r1) ffc19660: 38 21 00 08 addi r1,r1,8 ffc19664: 7c 08 03 a6 mtlr r0 ffc19668: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a724 : #undef rtems_object_id_api_maximum int rtems_object_id_api_maximum(void) { return OBJECTS_ITRON_API; } ffc0a724: 38 60 00 04 li r3,4 ffc0a728: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a72c : #undef rtems_object_id_api_minimum int rtems_object_id_api_minimum(void) { return OBJECTS_INTERNAL_API; } ffc0a72c: 38 60 00 01 li r3,1 ffc0a730: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a734 : int rtems_object_id_get_api( rtems_id id ) { return _Objects_Get_API( id ); } ffc0a734: 54 63 47 7e rlwinm r3,r3,8,29,31 ffc0a738: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a73c : int rtems_object_id_get_class( rtems_id id ) { return _Objects_Get_class( id ); } ffc0a73c: 54 63 2e fe rlwinm r3,r3,5,27,31 ffc0a740: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a744 : int rtems_object_id_get_index( rtems_id id ) { return _Objects_Get_index( id ); } ffc0a744: 54 63 04 3e clrlwi r3,r3,16 ffc0a748: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a74c : int rtems_object_id_get_node( rtems_id id ) { return _Objects_Get_node( id ); } ffc0a74c: 54 63 86 3e rlwinm r3,r3,16,24,31 ffc0a750: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08a88 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { ffc08a88: 94 21 ff d8 stwu r1,-40(r1) ffc08a8c: 7c 08 02 a6 mflr r0 ffc08a90: 93 e1 00 24 stw r31,36(r1) Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) ffc08a94: 7c 9f 23 79 mr. r31,r4 */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { ffc08a98: 90 01 00 2c stw r0,44(r1) Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) ffc08a9c: 38 00 00 09 li r0,9 */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { ffc08aa0: 93 a1 00 1c stw r29,28(r1) ffc08aa4: 93 c1 00 20 stw r30,32(r1) Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) ffc08aa8: 41 82 00 3c beq- ffc08ae4 return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc08aac: 2f 83 00 00 cmpwi cr7,r3,0 ffc08ab0: 7c 7d 1b 78 mr r29,r3 ffc08ab4: 41 9e 00 50 beq- cr7,ffc08b04 information = _Objects_Get_information_id( tmpId ); ffc08ab8: 7f a3 eb 78 mr r3,r29 ffc08abc: 48 00 20 d5 bl ffc0ab90 <_Objects_Get_information_id> <== ALWAYS TAKEN if ( !information ) ffc08ac0: 7c 7e 1b 79 mr. r30,r3 ffc08ac4: 41 82 00 1c beq- ffc08ae0 return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); ffc08ac8: 7f a4 eb 78 mr r4,r29 ffc08acc: 38 a1 00 08 addi r5,r1,8 ffc08ad0: 48 00 23 35 bl ffc0ae04 <_Objects_Get> <== ALWAYS TAKEN switch ( location ) { ffc08ad4: 80 01 00 08 lwz r0,8(r1) ffc08ad8: 2f 80 00 00 cmpwi cr7,r0,0 ffc08adc: 41 9e 00 38 beq- cr7,ffc08b14 case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc08ae0: 38 00 00 04 li r0,4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08ae4: 7c 03 03 78 mr r3,r0 ffc08ae8: 80 01 00 2c lwz r0,44(r1) ffc08aec: 83 a1 00 1c lwz r29,28(r1) ffc08af0: 7c 08 03 a6 mtlr r0 ffc08af4: 83 c1 00 20 lwz r30,32(r1) ffc08af8: 83 e1 00 24 lwz r31,36(r1) ffc08afc: 38 21 00 28 addi r1,r1,40 ffc08b00: 4e 80 00 20 blr <== ALWAYS TAKEN Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; ffc08b04: 3d 20 00 00 lis r9,0 ffc08b08: 81 29 29 54 lwz r9,10580(r9) ffc08b0c: 83 a9 00 08 lwz r29,8(r9) ffc08b10: 4b ff ff a8 b ffc08ab8 <== ALWAYS TAKEN the_object = _Objects_Get( information, tmpId, &location ); switch ( location ) { case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); ffc08b14: 7c 64 1b 78 mr r4,r3 ffc08b18: 7f e5 fb 78 mr r5,r31 ffc08b1c: 7f c3 f3 78 mr r3,r30 ffc08b20: 48 00 25 49 bl ffc0b068 <_Objects_Set_name> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08b24: 48 00 2f d9 bl ffc0bafc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08b28: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08b2c: 7c 03 03 78 mr r3,r0 ffc08b30: 80 01 00 2c lwz r0,44(r1) ffc08b34: 83 a1 00 1c lwz r29,28(r1) ffc08b38: 7c 08 03 a6 mtlr r0 ffc08b3c: 83 c1 00 20 lwz r30,32(r1) ffc08b40: 83 e1 00 24 lwz r31,36(r1) ffc08b44: 38 21 00 28 addi r1,r1,40 ffc08b48: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ac60 : void rtems_panic( const char *printf_format, ... ) { ffc0ac60: 94 21 ff 88 stwu r1,-120(r1) <== NOT EXECUTED ffc0ac64: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0ac68: 90 81 00 1c stw r4,28(r1) <== NOT EXECUTED ffc0ac6c: 90 01 00 7c stw r0,124(r1) <== NOT EXECUTED ffc0ac70: 90 a1 00 20 stw r5,32(r1) <== NOT EXECUTED ffc0ac74: 90 c1 00 24 stw r6,36(r1) <== NOT EXECUTED ffc0ac78: 90 e1 00 28 stw r7,40(r1) <== NOT EXECUTED ffc0ac7c: 91 01 00 2c stw r8,44(r1) <== NOT EXECUTED ffc0ac80: 91 21 00 30 stw r9,48(r1) <== NOT EXECUTED ffc0ac84: 91 41 00 34 stw r10,52(r1) <== NOT EXECUTED ffc0ac88: 40 86 00 24 bne- cr1,ffc0acac <== NOT EXECUTED ffc0ac8c: d8 21 00 38 stfd f1,56(r1) <== NOT EXECUTED ffc0ac90: d8 41 00 40 stfd f2,64(r1) <== NOT EXECUTED ffc0ac94: d8 61 00 48 stfd f3,72(r1) <== NOT EXECUTED ffc0ac98: d8 81 00 50 stfd f4,80(r1) <== NOT EXECUTED ffc0ac9c: d8 a1 00 58 stfd f5,88(r1) <== NOT EXECUTED ffc0aca0: d8 c1 00 60 stfd f6,96(r1) <== NOT EXECUTED ffc0aca4: d8 e1 00 68 stfd f7,104(r1) <== NOT EXECUTED ffc0aca8: d9 01 00 70 stfd f8,112(r1) <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0acac: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc0acb0: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED ffc0acb4: 38 00 00 00 li r0,0 <== NOT EXECUTED void rtems_panic( const char *printf_format, ... ) { ffc0acb8: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); ffc0acbc: 98 01 00 09 stb r0,9(r1) <== NOT EXECUTED ffc0acc0: 38 01 00 80 addi r0,r1,128 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0acc4: 38 a1 00 08 addi r5,r1,8 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0acc8: 90 01 00 0c stw r0,12(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0accc: 3c 60 20 00 lis r3,8192 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); ffc0acd0: 38 01 00 18 addi r0,r1,24 <== NOT EXECUTED ffc0acd4: 90 01 00 10 stw r0,16(r1) <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); ffc0acd8: 4b ff fd 81 bl ffc0aa58 <== NOT EXECUTED va_end(arglist); } ffc0acdc: 80 01 00 7c lwz r0,124(r1) <== NOT EXECUTED ffc0ace0: 38 21 00 78 addi r1,r1,120 <== NOT EXECUTED ffc0ace4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0ace8: 4e 80 00 20 blr <== NOT EXECUTED ffc17c24 : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { ffc17c24: 94 21 ff d0 stwu r1,-48(r1) ffc17c28: 7c 08 02 a6 mflr r0 ffc17c2c: 93 e1 00 2c stw r31,44(r1) register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) ffc17c30: 7c 7f 1b 79 mr. r31,r3 ffc17c34: 38 60 00 03 li r3,3 uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { ffc17c38: 93 c1 00 28 stw r30,40(r1) ffc17c3c: 7c be 2b 78 mr r30,r5 ffc17c40: 90 01 00 34 stw r0,52(r1) ffc17c44: 93 61 00 1c stw r27,28(r1) ffc17c48: 93 81 00 20 stw r28,32(r1) ffc17c4c: 93 a1 00 24 stw r29,36(r1) register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) ffc17c50: 41 82 00 40 beq- ffc17c90 return RTEMS_INVALID_NAME; if ( !starting_address ) ffc17c54: 2f 84 00 00 cmpwi cr7,r4,0 ffc17c58: 41 9e 00 34 beq- cr7,ffc17c8c return RTEMS_INVALID_ADDRESS; if ( !id ) ffc17c5c: 2f 88 00 00 cmpwi cr7,r8,0 ffc17c60: 41 9e 00 2c beq- cr7,ffc17c8c <== NEVER TAKEN return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || ffc17c64: 2f 85 00 00 cmpwi cr7,r5,0 ffc17c68: 41 9e 00 4c beq- cr7,ffc17cb4 ffc17c6c: 2f 86 00 00 cmpwi cr7,r6,0 ffc17c70: 41 9e 00 44 beq- cr7,ffc17cb4 ffc17c74: 7f 85 30 40 cmplw cr7,r5,r6 ffc17c78: 41 9c 00 3c blt- cr7,ffc17cb4 ffc17c7c: 70 c0 00 07 andi. r0,r6,7 ffc17c80: 40 82 00 34 bne- ffc17cb4 !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) ffc17c84: 70 9b 00 07 andi. r27,r4,7 ffc17c88: 41 82 00 54 beq- ffc17cdc 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc17c8c: 38 60 00 09 li r3,9 } ffc17c90: 80 01 00 34 lwz r0,52(r1) ffc17c94: 83 61 00 1c lwz r27,28(r1) ffc17c98: 7c 08 03 a6 mtlr r0 ffc17c9c: 83 81 00 20 lwz r28,32(r1) ffc17ca0: 83 a1 00 24 lwz r29,36(r1) ffc17ca4: 83 c1 00 28 lwz r30,40(r1) ffc17ca8: 83 e1 00 2c lwz r31,44(r1) ffc17cac: 38 21 00 30 addi r1,r1,48 ffc17cb0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17cb4: 80 01 00 34 lwz r0,52(r1) 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc17cb8: 38 60 00 08 li r3,8 } ffc17cbc: 83 61 00 1c lwz r27,28(r1) ffc17cc0: 7c 08 03 a6 mtlr r0 ffc17cc4: 83 81 00 20 lwz r28,32(r1) ffc17cc8: 83 a1 00 24 lwz r29,36(r1) ffc17ccc: 83 c1 00 28 lwz r30,40(r1) ffc17cd0: 83 e1 00 2c lwz r31,44(r1) ffc17cd4: 38 21 00 30 addi r1,r1,48 ffc17cd8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17cdc: 3d 20 00 00 lis r9,0 ffc17ce0: 81 69 28 68 lwz r11,10344(r9) ffc17ce4: 38 0b 00 01 addi r0,r11,1 ffc17ce8: 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 ); ffc17cec: 3f 80 00 00 lis r28,0 ffc17cf0: 90 81 00 08 stw r4,8(r1) ffc17cf4: 3b 9c 6e ec addi r28,r28,28396 ffc17cf8: 7f 83 e3 78 mr r3,r28 ffc17cfc: 90 c1 00 0c stw r6,12(r1) ffc17d00: 90 e1 00 10 stw r7,16(r1) ffc17d04: 91 01 00 14 stw r8,20(r1) ffc17d08: 48 00 5d 21 bl ffc1da28 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { ffc17d0c: 7c 7d 1b 79 mr. r29,r3 ffc17d10: 80 81 00 08 lwz r4,8(r1) ffc17d14: 80 c1 00 0c lwz r6,12(r1) ffc17d18: 80 e1 00 10 lwz r7,16(r1) ffc17d1c: 81 01 00 14 lwz r8,20(r1) ffc17d20: 41 82 00 50 beq- ffc17d70 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, ffc17d24: 7c be 33 96 divwu r5,r30,r6 #endif the_partition->starting_address = starting_address; the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set; ffc17d28: 90 fd 00 1c stw r7,28(r29) _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; ffc17d2c: 90 9d 00 10 stw r4,16(r29) the_partition->length = length; the_partition->buffer_size = buffer_size; ffc17d30: 90 dd 00 18 stw r6,24(r29) the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0; ffc17d34: 93 7d 00 20 stw r27,32(r29) return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; the_partition->length = length; ffc17d38: 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, ffc17d3c: 91 01 00 14 stw r8,20(r1) ffc17d40: 38 7d 00 24 addi r3,r29,36 ffc17d44: 48 00 42 55 bl ffc1bf98 <_Chain_Initialize> <== ALWAYS TAKEN ffc17d48: 80 1d 00 08 lwz r0,8(r29) ffc17d4c: 81 7c 00 1c lwz r11,28(r28) &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; ffc17d50: 81 01 00 14 lwz r8,20(r1) ffc17d54: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc17d58: 93 fd 00 0c stw r31,12(r29) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc17d5c: 7f ab 49 2e stwx r29,r11,r9 ffc17d60: 90 08 00 00 stw r0,0(r8) name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); ffc17d64: 48 00 6f 99 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc17d68: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc17d6c: 4b ff ff 24 b ffc17c90 <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch(); ffc17d70: 48 00 6f 8d bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc17d74: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc17d78: 4b ff ff 18 b ffc17c90 <== ALWAYS TAKEN ffc17d7c : */ rtems_status_code rtems_partition_delete( rtems_id id ) { ffc17d7c: 94 21 ff e0 stwu r1,-32(r1) ffc17d80: 7c 08 02 a6 mflr r0 ffc17d84: 7c 64 1b 78 mr r4,r3 ffc17d88: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) ffc17d8c: 3f e0 00 00 lis r31,0 ffc17d90: 3b ff 6e ec addi r31,r31,28396 ffc17d94: 7f e3 fb 78 mr r3,r31 ffc17d98: 90 01 00 24 stw r0,36(r1) ffc17d9c: 38 a1 00 08 addi r5,r1,8 ffc17da0: 93 c1 00 18 stw r30,24(r1) ffc17da4: 48 00 62 cd bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN ffc17da8: 7c 7e 1b 78 mr r30,r3 register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { ffc17dac: 80 01 00 08 lwz r0,8(r1) ffc17db0: 38 60 00 04 li r3,4 ffc17db4: 2f 80 00 00 cmpwi cr7,r0,0 ffc17db8: 40 9e 00 18 bne- cr7,ffc17dd0 case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { ffc17dbc: 80 1e 00 20 lwz r0,32(r30) ffc17dc0: 2f 80 00 00 cmpwi cr7,r0,0 ffc17dc4: 41 9e 00 24 beq- cr7,ffc17de8 #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc17dc8: 48 00 6f 35 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc17dcc: 38 60 00 0c li r3,12 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17dd0: 80 01 00 24 lwz r0,36(r1) ffc17dd4: 83 c1 00 18 lwz r30,24(r1) ffc17dd8: 7c 08 03 a6 mtlr r0 ffc17ddc: 83 e1 00 1c lwz r31,28(r1) ffc17de0: 38 21 00 20 addi r1,r1,32 ffc17de4: 4e 80 00 20 blr <== ALWAYS TAKEN the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { _Objects_Close( &_Partition_Information, &the_partition->Object ); ffc17de8: 7f e3 fb 78 mr r3,r31 ffc17dec: 7f c4 f3 78 mr r4,r30 ffc17df0: 48 00 5d 01 bl ffc1daf0 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); ffc17df4: 7f e3 fb 78 mr r3,r31 ffc17df8: 7f c4 f3 78 mr r4,r30 ffc17dfc: 48 00 60 4d bl ffc1de48 <_Objects_Free> <== ALWAYS TAKEN 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); ffc17e00: 48 00 6e fd bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17e04: 80 01 00 24 lwz r0,36(r1) 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); ffc17e08: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17e0c: 83 c1 00 18 lwz r30,24(r1) ffc17e10: 7c 08 03 a6 mtlr r0 ffc17e14: 83 e1 00 1c lwz r31,28(r1) ffc17e18: 38 21 00 20 addi r1,r1,32 ffc17e1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17e20 : rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { ffc17e20: 94 21 ff d8 stwu r1,-40(r1) ffc17e24: 7c 08 02 a6 mflr r0 ffc17e28: 93 e1 00 24 stw r31,36(r1) register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) ffc17e2c: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { ffc17e30: 7c 64 1b 78 mr r4,r3 ffc17e34: 90 01 00 2c stw r0,44(r1) register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) ffc17e38: 38 60 00 09 li r3,9 rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { ffc17e3c: 93 a1 00 1c stw r29,28(r1) ffc17e40: 93 c1 00 20 stw r30,32(r1) register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) ffc17e44: 41 82 00 50 beq- ffc17e94 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) ffc17e48: 3c 60 00 00 lis r3,0 ffc17e4c: 38 63 6e ec addi r3,r3,28396 ffc17e50: 38 a1 00 08 addi r5,r1,8 ffc17e54: 48 00 62 1d bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { ffc17e58: 80 01 00 08 lwz r0,8(r1) ffc17e5c: 7c 7e 1b 78 mr r30,r3 ffc17e60: 2f 80 00 00 cmpwi cr7,r0,0 ffc17e64: 38 60 00 04 li r3,4 ffc17e68: 40 9e 00 2c bne- cr7,ffc17e94 */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); ffc17e6c: 38 7e 00 24 addi r3,r30,36 ffc17e70: 48 00 40 e5 bl ffc1bf54 <_Chain_Get> <== ALWAYS TAKEN case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { ffc17e74: 7c 7d 1b 79 mr. r29,r3 ffc17e78: 41 82 00 38 beq- ffc17eb0 the_partition->number_of_used_blocks += 1; ffc17e7c: 81 3e 00 20 lwz r9,32(r30) ffc17e80: 38 09 00 01 addi r0,r9,1 ffc17e84: 90 1e 00 20 stw r0,32(r30) _Thread_Enable_dispatch(); ffc17e88: 48 00 6e 75 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN *buffer = the_buffer; ffc17e8c: 93 bf 00 00 stw r29,0(r31) ffc17e90: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17e94: 80 01 00 2c lwz r0,44(r1) ffc17e98: 83 a1 00 1c lwz r29,28(r1) ffc17e9c: 7c 08 03 a6 mtlr r0 ffc17ea0: 83 c1 00 20 lwz r30,32(r1) ffc17ea4: 83 e1 00 24 lwz r31,36(r1) ffc17ea8: 38 21 00 28 addi r1,r1,40 ffc17eac: 4e 80 00 20 blr <== ALWAYS TAKEN the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc17eb0: 48 00 6e 4d bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc17eb4: 38 60 00 0d li r3,13 return RTEMS_UNSATISFIED; ffc17eb8: 4b ff ff dc b ffc17e94 <== ALWAYS TAKEN ffc17ebc : rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc17ebc: 94 21 ff f8 stwu r1,-8(r1) ffc17ec0: 7c 08 02 a6 mflr r0 ffc17ec4: 7c 69 1b 78 mr r9,r3 ffc17ec8: 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 ); ffc17ecc: 3c 60 00 00 lis r3,0 rtems_status_code rtems_partition_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc17ed0: 7c 80 23 78 mr r0,r4 ffc17ed4: 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 ); ffc17ed8: 7d 24 4b 78 mr r4,r9 ffc17edc: 7c 05 03 78 mr r5,r0 ffc17ee0: 38 63 6e ec addi r3,r3,28396 ffc17ee4: 48 00 64 25 bl ffc1e308 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN return _Status_Object_name_errors_to_status[ status ]; } ffc17ee8: 80 01 00 0c lwz r0,12(r1) ffc17eec: 3d 20 ff c4 lis r9,-60 ffc17ef0: 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 ); ffc17ef4: 54 63 10 3a rlwinm r3,r3,2,0,29 return _Status_Object_name_errors_to_status[ status ]; } ffc17ef8: 39 29 d9 1c addi r9,r9,-9956 ffc17efc: 7c 69 18 2e lwzx r3,r9,r3 ffc17f00: 38 21 00 08 addi r1,r1,8 ffc17f04: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17f08 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { ffc17f08: 94 21 ff e0 stwu r1,-32(r1) ffc17f0c: 7c 08 02 a6 mflr r0 ffc17f10: 90 01 00 24 stw r0,36(r1) ffc17f14: 7c 60 1b 78 mr r0,r3 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) ffc17f18: 3c 60 00 00 lis r3,0 ffc17f1c: 93 e1 00 1c stw r31,28(r1) ffc17f20: 38 63 6e ec addi r3,r3,28396 ffc17f24: 7c 9f 23 78 mr r31,r4 ffc17f28: 38 a1 00 08 addi r5,r1,8 ffc17f2c: 93 c1 00 18 stw r30,24(r1) ffc17f30: 7c 04 03 78 mr r4,r0 ffc17f34: 48 00 61 3d bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { ffc17f38: 80 01 00 08 lwz r0,8(r1) ffc17f3c: 7c 7e 1b 78 mr r30,r3 ffc17f40: 2f 80 00 00 cmpwi cr7,r0,0 ffc17f44: 38 60 00 04 li r3,4 ffc17f48: 40 9e 00 58 bne- cr7,ffc17fa0 ) { void *starting; void *ending; starting = the_partition->starting_address; ffc17f4c: 80 1e 00 10 lwz r0,16(r30) ending = _Addresses_Add_offset( starting, the_partition->length ); ffc17f50: 81 3e 00 14 lwz r9,20(r30) const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); ffc17f54: 7f 9f 00 40 cmplw cr7,r31,r0 ffc17f58: 41 9c 00 60 blt- cr7,ffc17fb8 ffc17f5c: 7d 20 4a 14 add r9,r0,r9 ffc17f60: 7f 9f 48 40 cmplw cr7,r31,r9 ffc17f64: 41 9d 00 54 bgt- cr7,ffc17fb8 <== NEVER TAKEN return ( ffc17f68: 81 3e 00 18 lwz r9,24(r30) ffc17f6c: 7c 00 f8 50 subf r0,r0,r31 ffc17f70: 7d 60 4b 96 divwu r11,r0,r9 ffc17f74: 7d 2b 49 d6 mullw r9,r11,r9 ffc17f78: 7f 80 48 00 cmpw cr7,r0,r9 ffc17f7c: 40 9e 00 3c bne- cr7,ffc17fb8 RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); ffc17f80: 38 7e 00 24 addi r3,r30,36 ffc17f84: 7f e4 fb 78 mr r4,r31 ffc17f88: 48 00 3f 9d bl ffc1bf24 <_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; ffc17f8c: 81 3e 00 20 lwz r9,32(r30) ffc17f90: 38 09 ff ff addi r0,r9,-1 ffc17f94: 90 1e 00 20 stw r0,32(r30) _Thread_Enable_dispatch(); ffc17f98: 48 00 6d 65 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc17f9c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17fa0: 80 01 00 24 lwz r0,36(r1) ffc17fa4: 83 c1 00 18 lwz r30,24(r1) ffc17fa8: 7c 08 03 a6 mtlr r0 ffc17fac: 83 e1 00 1c lwz r31,28(r1) ffc17fb0: 38 21 00 20 addi r1,r1,32 ffc17fb4: 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(); ffc17fb8: 48 00 6d 45 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17fbc: 80 01 00 24 lwz r0,36(r1) _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc17fc0: 38 60 00 09 li r3,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17fc4: 83 c1 00 18 lwz r30,24(r1) ffc17fc8: 7c 08 03 a6 mtlr r0 ffc17fcc: 83 e1 00 1c lwz r31,28(r1) ffc17fd0: 38 21 00 20 addi r1,r1,32 ffc17fd4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc10644 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc10644: 7c 08 02 a6 mflr r0 ffc10648: 94 21 ff f8 stwu r1,-8(r1) if (!rtems_pipe_configured) ffc1064c: 3d 20 00 00 lis r9,0 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { ffc10650: 90 01 00 0c stw r0,12(r1) if (!rtems_pipe_configured) ffc10654: 88 09 27 04 lbz r0,9988(r9) ffc10658: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc1065c: 41 9e 00 18 beq- cr7,ffc10674 <== ALWAYS TAKEN return; if (rtems_pipe_semaphore) ffc10660: 3c e0 00 00 lis r7,0 <== NOT EXECUTED ffc10664: 80 07 29 90 lwz r0,10640(r7) <== NOT EXECUTED ffc10668: 38 e7 29 90 addi r7,r7,10640 <== NOT EXECUTED ffc1066c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc10670: 41 9e 00 14 beq- cr7,ffc10684 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } ffc10674: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc10678: 38 21 00 08 addi r1,r1,8 ffc1067c: 7c 08 03 a6 mtlr r0 ffc10680: 4e 80 00 20 blr <== ALWAYS TAKEN if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( ffc10684: 3c 60 50 49 lis r3,20553 <== NOT EXECUTED ffc10688: 60 63 50 45 ori r3,r3,20549 <== NOT EXECUTED ffc1068c: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc10690: 38 a0 00 54 li r5,84 <== NOT EXECUTED ffc10694: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc10698: 4b ff 7b f1 bl ffc08288 <== 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) ffc1069c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc106a0: 40 9e 00 20 bne- cr7,ffc106c0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); ffc106a4: 4b ff 76 c9 bl ffc07d6c <== NOT EXECUTED rtems_pipe_no = now; } ffc106a8: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; ffc106ac: 3d 20 00 00 lis r9,0 <== NOT EXECUTED } ffc106b0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; ffc106b4: b0 69 27 f8 sth r3,10232(r9) <== NOT EXECUTED } ffc106b8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc106bc: 4e 80 00 20 blr <== NOT EXECUTED sc = rtems_semaphore_create( rtems_build_name ('P', 'I', 'P', 'E'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_pipe_semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); ffc106c0: 4b ff 87 ed bl ffc08eac <== NOT EXECUTED ffc16e14 : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { ffc16e14: 94 21 ff e0 stwu r1,-32(r1) ffc16e18: 7c 08 02 a6 mflr r0 ffc16e1c: 93 e1 00 1c stw r31,28(r1) register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) ffc16e20: 7c 7f 1b 79 mr. r31,r3 ffc16e24: 38 60 00 03 li r3,3 void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { ffc16e28: 90 01 00 24 stw r0,36(r1) ffc16e2c: 93 c1 00 18 stw r30,24(r1) register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) ffc16e30: 41 82 00 1c beq- ffc16e4c return RTEMS_INVALID_NAME; if ( !id ) ffc16e34: 2f 87 00 00 cmpwi cr7,r7,0 ffc16e38: 41 9e 00 10 beq- cr7,ffc16e48 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || ffc16e3c: 7c a0 23 78 or r0,r5,r4 ffc16e40: 70 09 00 07 andi. r9,r0,7 ffc16e44: 41 82 00 20 beq- ffc16e64 (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc16e48: 38 60 00 09 li r3,9 } ffc16e4c: 80 01 00 24 lwz r0,36(r1) ffc16e50: 83 c1 00 18 lwz r30,24(r1) ffc16e54: 7c 08 03 a6 mtlr r0 ffc16e58: 83 e1 00 1c lwz r31,28(r1) ffc16e5c: 38 21 00 20 addi r1,r1,32 ffc16e60: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc16e64: 3d 20 00 00 lis r9,0 ffc16e68: 81 69 28 68 lwz r11,10344(r9) ffc16e6c: 38 0b 00 01 addi r0,r11,1 ffc16e70: 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 *) ffc16e74: 3f c0 00 00 lis r30,0 ffc16e78: 90 81 00 08 stw r4,8(r1) ffc16e7c: 3b de 6e ac addi r30,r30,28332 ffc16e80: 7f c3 f3 78 mr r3,r30 ffc16e84: 90 a1 00 0c stw r5,12(r1) ffc16e88: 90 c1 00 10 stw r6,16(r1) ffc16e8c: 90 e1 00 14 stw r7,20(r1) ffc16e90: 48 00 6b 99 bl ffc1da28 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { ffc16e94: 2c 03 00 00 cmpwi r3,0 ffc16e98: 80 81 00 08 lwz r4,8(r1) ffc16e9c: 80 a1 00 0c lwz r5,12(r1) ffc16ea0: 80 c1 00 10 lwz r6,16(r1) ffc16ea4: 80 e1 00 14 lwz r7,20(r1) ffc16ea8: 41 82 00 4c beq- ffc16ef4 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc16eac: 80 03 00 08 lwz r0,8(r3) return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; the_port->external_base = external_start; the_port->length = length - 1; ffc16eb0: 38 c6 ff ff addi r6,r6,-1 ffc16eb4: 81 7e 00 1c lwz r11,28(r30) ffc16eb8: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc16ebc: 93 e3 00 0c stw r31,12(r3) ffc16ec0: 90 c3 00 18 stw r6,24(r3) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc16ec4: 7c 6b 49 2e stwx r3,r11,r9 &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; ffc16ec8: 90 07 00 00 stw r0,0(r7) if ( !the_port ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; ffc16ecc: 90 83 00 10 stw r4,16(r3) the_port->external_base = external_start; ffc16ed0: 90 a3 00 14 stw r5,20(r3) &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); ffc16ed4: 48 00 7e 29 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc16ed8: 80 01 00 24 lwz r0,36(r1) &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); ffc16edc: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc16ee0: 83 c1 00 18 lwz r30,24(r1) ffc16ee4: 7c 08 03 a6 mtlr r0 ffc16ee8: 83 e1 00 1c lwz r31,28(r1) ffc16eec: 38 21 00 20 addi r1,r1,32 ffc16ef0: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { _Thread_Enable_dispatch(); ffc16ef4: 48 00 7e 09 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16ef8: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc16efc: 4b ff ff 50 b ffc16e4c <== ALWAYS TAKEN ffc16f00 : */ rtems_status_code rtems_port_delete( rtems_id id ) { ffc16f00: 94 21 ff e0 stwu r1,-32(r1) ffc16f04: 7c 08 02 a6 mflr r0 ffc16f08: 7c 64 1b 78 mr r4,r3 ffc16f0c: 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 *) ffc16f10: 3f e0 00 00 lis r31,0 ffc16f14: 3b ff 6e ac addi r31,r31,28332 ffc16f18: 7f e3 fb 78 mr r3,r31 ffc16f1c: 90 01 00 24 stw r0,36(r1) ffc16f20: 38 a1 00 08 addi r5,r1,8 ffc16f24: 93 c1 00 18 stw r30,24(r1) ffc16f28: 48 00 71 49 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN ffc16f2c: 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 ) { ffc16f30: 80 01 00 08 lwz r0,8(r1) ffc16f34: 38 60 00 04 li r3,4 ffc16f38: 2f 80 00 00 cmpwi cr7,r0,0 ffc16f3c: 40 9e 00 24 bne- cr7,ffc16f60 case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); ffc16f40: 7f e3 fb 78 mr r3,r31 ffc16f44: 7f c4 f3 78 mr r4,r30 ffc16f48: 48 00 6b a9 bl ffc1daf0 <_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 ); ffc16f4c: 7f e3 fb 78 mr r3,r31 ffc16f50: 7f c4 f3 78 mr r4,r30 ffc16f54: 48 00 6e f5 bl ffc1de48 <_Objects_Free> <== ALWAYS TAKEN _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); ffc16f58: 48 00 7d a5 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc16f5c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc16f60: 80 01 00 24 lwz r0,36(r1) ffc16f64: 83 c1 00 18 lwz r30,24(r1) ffc16f68: 7c 08 03 a6 mtlr r0 ffc16f6c: 83 e1 00 1c lwz r31,28(r1) ffc16f70: 38 21 00 20 addi r1,r1,32 ffc16f74: 4e 80 00 20 blr <== ALWAYS TAKEN ffc16f78 : rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { ffc16f78: 94 21 ff e0 stwu r1,-32(r1) ffc16f7c: 7c 08 02 a6 mflr r0 ffc16f80: 93 c1 00 18 stw r30,24(r1) register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) ffc16f84: 7c be 2b 79 mr. r30,r5 rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { ffc16f88: 90 01 00 24 stw r0,36(r1) ffc16f8c: 7c 60 1b 78 mr r0,r3 register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) ffc16f90: 38 60 00 09 li r3,9 rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { ffc16f94: 93 e1 00 1c stw r31,28(r1) ffc16f98: 7c 9f 23 78 mr r31,r4 register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) ffc16f9c: 41 82 00 2c beq- ffc16fc8 RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get ( Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) ffc16fa0: 3c 60 00 00 lis r3,0 ffc16fa4: 7c 04 03 78 mr r4,r0 ffc16fa8: 38 63 6e ac addi r3,r3,28332 ffc16fac: 38 a1 00 08 addi r5,r1,8 ffc16fb0: 48 00 70 c1 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { ffc16fb4: 80 01 00 08 lwz r0,8(r1) ffc16fb8: 7c 69 1b 78 mr r9,r3 ffc16fbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc16fc0: 38 60 00 04 li r3,4 ffc16fc4: 41 9e 00 1c beq- cr7,ffc16fe0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc16fc8: 80 01 00 24 lwz r0,36(r1) ffc16fcc: 83 c1 00 18 lwz r30,24(r1) ffc16fd0: 7c 08 03 a6 mtlr r0 ffc16fd4: 83 e1 00 1c lwz r31,28(r1) ffc16fd8: 38 21 00 20 addi r1,r1,32 ffc16fdc: 4e 80 00 20 blr <== ALWAYS TAKEN 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 ); ffc16fe0: 80 09 00 14 lwz r0,20(r9) if ( ending > the_port->length ) ffc16fe4: 81 69 00 18 lwz r11,24(r9) 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 ); ffc16fe8: 7c 00 f8 50 subf r0,r0,r31 if ( ending > the_port->length ) ffc16fec: 7f 80 58 40 cmplw cr7,r0,r11 ffc16ff0: 41 9d 00 30 bgt- cr7,ffc17020 *internal = external; else *internal = _Addresses_Add_offset( the_port->internal_base, ffc16ff4: 81 29 00 10 lwz r9,16(r9) ffc16ff8: 7c 09 02 14 add r0,r9,r0 ffc16ffc: 90 1e 00 00 stw r0,0(r30) ending ); _Thread_Enable_dispatch(); ffc17000: 48 00 7c fd bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17004: 80 01 00 24 lwz r0,36(r1) if ( ending > the_port->length ) *internal = external; else *internal = _Addresses_Add_offset( the_port->internal_base, ending ); _Thread_Enable_dispatch(); ffc17008: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1700c: 83 c1 00 18 lwz r30,24(r1) ffc17010: 7c 08 03 a6 mtlr r0 ffc17014: 83 e1 00 1c lwz r31,28(r1) ffc17018: 38 21 00 20 addi r1,r1,32 ffc1701c: 4e 80 00 20 blr <== ALWAYS TAKEN the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: ending = _Addresses_Subtract( external, the_port->external_base ); if ( ending > the_port->length ) *internal = external; ffc17020: 93 fe 00 00 stw r31,0(r30) ffc17024: 4b ff ff dc b ffc17000 <== ALWAYS TAKEN ffc17028 : rtems_status_code rtems_port_ident( rtems_name name, rtems_id *id ) { ffc17028: 94 21 ff f8 stwu r1,-8(r1) ffc1702c: 7c 08 02 a6 mflr r0 ffc17030: 7c 86 23 78 mr r6,r4 ffc17034: 90 01 00 0c stw r0,12(r1) ffc17038: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1703c: 3c 60 00 00 lis r3,0 ffc17040: 7c 04 03 78 mr r4,r0 ffc17044: 38 63 6e ac addi r3,r3,28332 ffc17048: 38 a0 00 00 li r5,0 ffc1704c: 48 00 72 bd bl ffc1e308 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc17050: 80 01 00 0c lwz r0,12(r1) ffc17054: 3d 20 ff c4 lis r9,-60 ffc17058: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1705c: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_ALL_NODES, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc17060: 39 29 d9 1c addi r9,r9,-9956 ffc17064: 7c 69 18 2e lwzx r3,r9,r3 ffc17068: 38 21 00 08 addi r1,r1,8 ffc1706c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc17070 : rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { ffc17070: 94 21 ff e0 stwu r1,-32(r1) ffc17074: 7c 08 02 a6 mflr r0 ffc17078: 93 c1 00 18 stw r30,24(r1) register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) ffc1707c: 7c be 2b 79 mr. r30,r5 rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { ffc17080: 90 01 00 24 stw r0,36(r1) ffc17084: 7c 60 1b 78 mr r0,r3 register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) ffc17088: 38 60 00 09 li r3,9 rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { ffc1708c: 93 e1 00 1c stw r31,28(r1) ffc17090: 7c 9f 23 78 mr r31,r4 register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) ffc17094: 41 82 00 2c beq- ffc170c0 ffc17098: 3c 60 00 00 lis r3,0 ffc1709c: 7c 04 03 78 mr r4,r0 ffc170a0: 38 63 6e ac addi r3,r3,28332 ffc170a4: 38 a1 00 08 addi r5,r1,8 ffc170a8: 48 00 6f c9 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { ffc170ac: 80 01 00 08 lwz r0,8(r1) ffc170b0: 7c 69 1b 78 mr r9,r3 ffc170b4: 2f 80 00 00 cmpwi cr7,r0,0 ffc170b8: 38 60 00 04 li r3,4 ffc170bc: 41 9e 00 1c beq- cr7,ffc170d8 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc170c0: 80 01 00 24 lwz r0,36(r1) ffc170c4: 83 c1 00 18 lwz r30,24(r1) ffc170c8: 7c 08 03 a6 mtlr r0 ffc170cc: 83 e1 00 1c lwz r31,28(r1) ffc170d0: 38 21 00 20 addi r1,r1,32 ffc170d4: 4e 80 00 20 blr <== ALWAYS TAKEN the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); ffc170d8: 80 09 00 10 lwz r0,16(r9) if ( ending > the_port->length ) ffc170dc: 81 69 00 18 lwz r11,24(r9) the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); ffc170e0: 7c 00 f8 50 subf r0,r0,r31 if ( ending > the_port->length ) ffc170e4: 7f 80 58 40 cmplw cr7,r0,r11 ffc170e8: 41 9d 00 30 bgt- cr7,ffc17118 *external = internal; else *external = _Addresses_Add_offset( the_port->external_base, ffc170ec: 81 29 00 14 lwz r9,20(r9) ffc170f0: 7c 09 02 14 add r0,r9,r0 ffc170f4: 90 1e 00 00 stw r0,0(r30) ending ); _Thread_Enable_dispatch(); ffc170f8: 48 00 7c 05 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc170fc: 80 01 00 24 lwz r0,36(r1) if ( ending > the_port->length ) *external = internal; else *external = _Addresses_Add_offset( the_port->external_base, ending ); _Thread_Enable_dispatch(); ffc17100: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc17104: 83 c1 00 18 lwz r30,24(r1) ffc17108: 7c 08 03 a6 mtlr r0 ffc1710c: 83 e1 00 1c lwz r31,28(r1) ffc17110: 38 21 00 20 addi r1,r1,32 ffc17114: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( location ) { case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); if ( ending > the_port->length ) *external = internal; ffc17118: 93 fe 00 00 stw r31,0(r30) ffc1711c: 4b ff ff dc b ffc170f8 <== ALWAYS TAKEN ffc17fd8 : */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { ffc17fd8: 94 21 ff e0 stwu r1,-32(r1) ffc17fdc: 7c 08 02 a6 mflr r0 ffc17fe0: 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 *) ffc17fe4: 3c 60 00 00 lis r3,0 ffc17fe8: 93 c1 00 18 stw r30,24(r1) ffc17fec: 38 63 6f 2c addi r3,r3,28460 ffc17ff0: 38 a1 00 08 addi r5,r1,8 ffc17ff4: 93 e1 00 1c stw r31,28(r1) ffc17ff8: 90 01 00 24 stw r0,36(r1) ffc17ffc: 48 00 60 75 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN ffc18000: 7c 7e 1b 78 mr r30,r3 Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc18004: 83 e1 00 08 lwz r31,8(r1) ffc18008: 38 60 00 04 li r3,4 ffc1800c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc18010: 40 9e 00 20 bne- cr7,ffc18030 case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { ffc18014: 3d 20 00 00 lis r9,0 ffc18018: 80 09 28 a8 lwz r0,10408(r9) ffc1801c: 81 3e 00 40 lwz r9,64(r30) ffc18020: 7f 89 00 00 cmpw cr7,r9,r0 ffc18024: 41 9e 00 24 beq- cr7,ffc18048 _Thread_Enable_dispatch(); ffc18028: 48 00 6c d5 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1802c: 38 60 00 17 li r3,23 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc18030: 80 01 00 24 lwz r0,36(r1) ffc18034: 83 c1 00 18 lwz r30,24(r1) ffc18038: 7c 08 03 a6 mtlr r0 ffc1803c: 83 e1 00 1c lwz r31,28(r1) ffc18040: 38 21 00 20 addi r1,r1,32 ffc18044: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } (void) _Watchdog_Remove( &the_period->Timer ); ffc18048: 38 7e 00 10 addi r3,r30,16 ffc1804c: 48 00 8a 0d bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN the_period->state = RATE_MONOTONIC_INACTIVE; ffc18050: 93 fe 00 38 stw r31,56(r30) _Thread_Enable_dispatch(); ffc18054: 48 00 6c a9 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc18058: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc1805c: 4b ff ff d4 b ffc18030 <== ALWAYS TAKEN ffc09654 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { ffc09654: 94 21 ff e8 stwu r1,-24(r1) ffc09658: 7c 08 02 a6 mflr r0 ffc0965c: 93 81 00 08 stw r28,8(r1) Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) ffc09660: 7c 7c 1b 79 mr. r28,r3 ffc09664: 38 60 00 03 li r3,3 rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { ffc09668: 93 c1 00 10 stw r30,16(r1) ffc0966c: 7c 9e 23 78 mr r30,r4 ffc09670: 90 01 00 1c stw r0,28(r1) ffc09674: 93 a1 00 0c stw r29,12(r1) ffc09678: 93 e1 00 14 stw r31,20(r1) Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) ffc0967c: 41 82 00 a4 beq- ffc09720 return RTEMS_INVALID_NAME; if ( !id ) ffc09680: 2f 84 00 00 cmpwi cr7,r4,0 ffc09684: 38 60 00 09 li r3,9 ffc09688: 41 9e 00 98 beq- cr7,ffc09720 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0968c: 3d 20 00 00 lis r9,0 ffc09690: 81 69 27 f4 lwz r11,10228(r9) ffc09694: 38 0b 00 01 addi r0,r11,1 ffc09698: 90 09 27 f4 stw r0,10228(r9) * 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 *) ffc0969c: 3f a0 00 00 lis r29,0 ffc096a0: 3b bd 2c 64 addi r29,r29,11364 ffc096a4: 7f a3 eb 78 mr r3,r29 ffc096a8: 48 00 29 79 bl ffc0c020 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { ffc096ac: 7c 7f 1b 79 mr. r31,r3 ffc096b0: 41 82 00 90 beq- ffc09740 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; ffc096b4: 3d 20 00 00 lis r9,0 ffc096b8: 81 29 28 34 lwz r9,10292(r9) the_period->state = RATE_MONOTONIC_INACTIVE; ffc096bc: 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; ffc096c0: 90 1f 00 34 stw r0,52(r31) _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); ffc096c4: 38 80 00 00 li r4,0 ffc096c8: 38 a0 00 38 li r5,56 if ( !the_period ) { _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; ffc096cc: 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 ); ffc096d0: 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; ffc096d4: 90 1f 00 38 stw r0,56(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc096d8: 90 1f 00 18 stw r0,24(r31) the_watchdog->routine = routine; ffc096dc: 90 1f 00 2c stw r0,44(r31) the_watchdog->id = id; ffc096e0: 90 1f 00 30 stw r0,48(r31) _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL ); _Rate_monotonic_Reset_statistics( the_period ); ffc096e4: 48 00 cf 1d bl ffc16600 <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc096e8: 81 3f 00 08 lwz r9,8(r31) ffc096ec: 81 5d 00 1c lwz r10,28(r29) ffc096f0: 3c 00 7f ff lis r0,32767 ffc096f4: 60 00 ff ff ori r0,r0,65535 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc096f8: 93 9f 00 0c stw r28,12(r31) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc096fc: 55 2b 13 ba rlwinm r11,r9,2,14,29 ffc09700: 90 1f 00 78 stw r0,120(r31) ffc09704: 90 1f 00 5c stw r0,92(r31) ffc09708: 90 1f 00 60 stw r0,96(r31) ffc0970c: 90 1f 00 74 stw r0,116(r31) ffc09710: 7f ea 59 2e stwx r31,r10,r11 &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; ffc09714: 91 3e 00 00 stw r9,0(r30) _Thread_Enable_dispatch(); ffc09718: 48 00 3c 29 bl ffc0d340 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0971c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc09720: 80 01 00 1c lwz r0,28(r1) ffc09724: 83 81 00 08 lwz r28,8(r1) ffc09728: 7c 08 03 a6 mtlr r0 ffc0972c: 83 a1 00 0c lwz r29,12(r1) ffc09730: 83 c1 00 10 lwz r30,16(r1) ffc09734: 83 e1 00 14 lwz r31,20(r1) ffc09738: 38 21 00 18 addi r1,r1,24 ffc0973c: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { _Thread_Enable_dispatch(); ffc09740: 48 00 3c 01 bl ffc0d340 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } ffc09744: 80 01 00 1c lwz r0,28(r1) _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { _Thread_Enable_dispatch(); ffc09748: 38 60 00 05 li r3,5 ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } ffc0974c: 83 81 00 08 lwz r28,8(r1) ffc09750: 7c 08 03 a6 mtlr r0 ffc09754: 83 a1 00 0c lwz r29,12(r1) ffc09758: 83 c1 00 10 lwz r30,16(r1) ffc0975c: 83 e1 00 14 lwz r31,20(r1) ffc09760: 38 21 00 18 addi r1,r1,24 ffc09764: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18174 : */ rtems_status_code rtems_rate_monotonic_delete( rtems_id id ) { ffc18174: 94 21 ff d8 stwu r1,-40(r1) ffc18178: 7c 08 02 a6 mflr r0 ffc1817c: 7c 64 1b 78 mr r4,r3 ffc18180: 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 *) ffc18184: 3f e0 00 00 lis r31,0 ffc18188: 3b ff 6f 2c addi r31,r31,28460 ffc1818c: 7f e3 fb 78 mr r3,r31 ffc18190: 93 a1 00 1c stw r29,28(r1) ffc18194: 38 a1 00 08 addi r5,r1,8 ffc18198: 93 c1 00 20 stw r30,32(r1) ffc1819c: 90 01 00 2c stw r0,44(r1) ffc181a0: 48 00 5e d1 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN ffc181a4: 7c 7e 1b 78 mr r30,r3 Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc181a8: 83 a1 00 08 lwz r29,8(r1) ffc181ac: 38 60 00 04 li r3,4 ffc181b0: 2f 9d 00 00 cmpwi cr7,r29,0 ffc181b4: 40 9e 00 30 bne- cr7,ffc181e4 case OBJECTS_LOCAL: _Objects_Close( &_Rate_monotonic_Information, &the_period->Object ); ffc181b8: 7f c4 f3 78 mr r4,r30 ffc181bc: 7f e3 fb 78 mr r3,r31 ffc181c0: 48 00 59 31 bl ffc1daf0 <_Objects_Close> <== ALWAYS TAKEN (void) _Watchdog_Remove( &the_period->Timer ); ffc181c4: 38 7e 00 10 addi r3,r30,16 ffc181c8: 48 00 88 91 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN the_period->state = RATE_MONOTONIC_INACTIVE; ffc181cc: 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 ); ffc181d0: 7f e3 fb 78 mr r3,r31 ffc181d4: 7f c4 f3 78 mr r4,r30 ffc181d8: 48 00 5c 71 bl ffc1de48 <_Objects_Free> <== ALWAYS TAKEN _Rate_monotonic_Free( the_period ); _Thread_Enable_dispatch(); ffc181dc: 48 00 6b 21 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc181e0: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc181e4: 80 01 00 2c lwz r0,44(r1) ffc181e8: 83 a1 00 1c lwz r29,28(r1) ffc181ec: 7c 08 03 a6 mtlr r0 ffc181f0: 83 c1 00 20 lwz r30,32(r1) ffc181f4: 83 e1 00 24 lwz r31,36(r1) ffc181f8: 38 21 00 28 addi r1,r1,40 ffc181fc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc47ad8 : rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { ffc47ad8: 94 21 ff e0 stwu r1,-32(r1) ffc47adc: 7c 08 02 a6 mflr r0 ffc47ae0: 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 ) ffc47ae4: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) { ffc47ae8: 7c 64 1b 78 mr r4,r3 ffc47aec: 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 ) ffc47af0: 38 60 00 09 li r3,9 ffc47af4: 41 82 00 28 beq- ffc47b1c ffc47af8: 3c 60 00 00 lis r3,0 ffc47afc: 38 63 6f ec addi r3,r3,28652 ffc47b00: 38 a1 00 08 addi r5,r1,8 ffc47b04: 4b fc 8b dd bl ffc106e0 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc47b08: 80 01 00 08 lwz r0,8(r1) ffc47b0c: 7c 69 1b 78 mr r9,r3 ffc47b10: 2f 80 00 00 cmpwi cr7,r0,0 ffc47b14: 38 60 00 04 li r3,4 ffc47b18: 41 9e 00 18 beq- cr7,ffc47b30 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc47b1c: 80 01 00 24 lwz r0,36(r1) ffc47b20: 83 e1 00 1c lwz r31,28(r1) ffc47b24: 38 21 00 20 addi r1,r1,32 ffc47b28: 7c 08 03 a6 mtlr r0 ffc47b2c: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( location ) { case OBJECTS_LOCAL: dst = statistics; src = &the_period->Statistics; dst->count = src->count; ffc47b30: 80 09 00 54 lwz r0,84(r9) ffc47b34: 90 1f 00 00 stw r0,0(r31) dst->missed_count = src->missed_count; ffc47b38: 80 09 00 58 lwz r0,88(r9) ffc47b3c: 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 ); ffc47b40: 81 69 00 5c lwz r11,92(r9) ffc47b44: 81 89 00 60 lwz r12,96(r9) ffc47b48: 91 7f 00 08 stw r11,8(r31) ffc47b4c: 91 9f 00 0c stw r12,12(r31) _Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time ); ffc47b50: 81 69 00 64 lwz r11,100(r9) ffc47b54: 81 89 00 68 lwz r12,104(r9) ffc47b58: 91 7f 00 10 stw r11,16(r31) ffc47b5c: 91 9f 00 14 stw r12,20(r31) _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time ); ffc47b60: 81 69 00 6c lwz r11,108(r9) ffc47b64: 81 89 00 70 lwz r12,112(r9) ffc47b68: 91 7f 00 18 stw r11,24(r31) ffc47b6c: 91 9f 00 1c stw r12,28(r31) _Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time ); ffc47b70: 81 69 00 74 lwz r11,116(r9) ffc47b74: 81 89 00 78 lwz r12,120(r9) ffc47b78: 91 7f 00 20 stw r11,32(r31) ffc47b7c: 91 9f 00 24 stw r12,36(r31) _Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time ); ffc47b80: 81 69 00 7c lwz r11,124(r9) ffc47b84: 81 89 00 80 lwz r12,128(r9) ffc47b88: 91 7f 00 28 stw r11,40(r31) ffc47b8c: 91 9f 00 2c stw r12,44(r31) _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time ); ffc47b90: 81 49 00 88 lwz r10,136(r9) ffc47b94: 81 29 00 84 lwz r9,132(r9) ffc47b98: 91 5f 00 34 stw r10,52(r31) ffc47b9c: 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(); ffc47ba0: 4b fc 98 39 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc47ba4: 80 01 00 24 lwz r0,36(r1) 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(); ffc47ba8: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc47bac: 83 e1 00 1c lwz r31,28(r1) ffc47bb0: 7c 08 03 a6 mtlr r0 ffc47bb4: 38 21 00 20 addi r1,r1,32 ffc47bb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc47bbc : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { ffc47bbc: 94 21 ff d0 stwu r1,-48(r1) ffc47bc0: 7c 08 02 a6 mflr r0 ffc47bc4: 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 ) ffc47bc8: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { ffc47bcc: 7c 64 1b 78 mr r4,r3 ffc47bd0: 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 ) ffc47bd4: 38 00 00 09 li r0,9 ffc47bd8: 41 82 00 24 beq- ffc47bfc ffc47bdc: 3c 60 00 00 lis r3,0 ffc47be0: 38 63 6f ec addi r3,r3,28652 ffc47be4: 38 a1 00 08 addi r5,r1,8 ffc47be8: 4b fc 8a f9 bl ffc106e0 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc47bec: 81 61 00 08 lwz r11,8(r1) ffc47bf0: 38 00 00 04 li r0,4 ffc47bf4: 2f 8b 00 00 cmpwi cr7,r11,0 ffc47bf8: 41 9e 00 1c beq- cr7,ffc47c14 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc47bfc: 7c 03 03 78 mr r3,r0 ffc47c00: 80 01 00 34 lwz r0,52(r1) ffc47c04: 83 e1 00 2c lwz r31,44(r1) ffc47c08: 38 21 00 30 addi r1,r1,48 ffc47c0c: 7c 08 03 a6 mtlr r0 ffc47c10: 4e 80 00 20 blr <== ALWAYS TAKEN the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; status->state = the_period->state; ffc47c14: 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; ffc47c18: 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 ) { ffc47c1c: 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; ffc47c20: 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; ffc47c24: 81 29 00 08 lwz r9,8(r9) ffc47c28: 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 ) { ffc47c2c: 40 9e 00 34 bne- cr7,ffc47c60 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); _Timespec_Set_to_zero( &status->executed_since_last_period ); ffc47c30: 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 ); ffc47c34: 90 1f 00 08 stw r0,8(r31) ffc47c38: 90 1f 00 0c stw r0,12(r31) _Timespec_Set_to_zero( &status->executed_since_last_period ); ffc47c3c: 90 1f 00 10 stw r0,16(r31) status->since_last_period = since_last_period; status->executed_since_last_period = executed; #endif } _Thread_Enable_dispatch(); ffc47c40: 4b fc 97 99 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc47c44: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc47c48: 7c 03 03 78 mr r3,r0 ffc47c4c: 80 01 00 34 lwz r0,52(r1) ffc47c50: 83 e1 00 2c lwz r31,44(r1) ffc47c54: 38 21 00 30 addi r1,r1,48 ffc47c58: 7c 08 03 a6 mtlr r0 ffc47c5c: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Grab the current status. */ valid_status = _Rate_monotonic_Get_status( ffc47c60: 38 81 00 14 addi r4,r1,20 ffc47c64: 38 a1 00 0c addi r5,r1,12 ffc47c68: 48 00 00 f5 bl ffc47d5c <_Rate_monotonic_Get_status> <== ALWAYS TAKEN the_period, &since_last_period, &executed ); if (!valid_status) { ffc47c6c: 2f 83 00 00 cmpwi cr7,r3,0 ffc47c70: 41 9e 00 28 beq- cr7,ffc47c98 _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( ffc47c74: 81 21 00 14 lwz r9,20(r1) ffc47c78: 81 41 00 18 lwz r10,24(r1) ffc47c7c: 91 3f 00 08 stw r9,8(r31) ffc47c80: 91 5f 00 0c stw r10,12(r31) &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( ffc47c84: 81 21 00 0c lwz r9,12(r1) ffc47c88: 81 41 00 10 lwz r10,16(r1) ffc47c8c: 91 3f 00 10 stw r9,16(r31) ffc47c90: 91 5f 00 14 stw r10,20(r31) ffc47c94: 4b ff ff ac b ffc47c40 <== ALWAYS TAKEN valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { _Thread_Enable_dispatch(); ffc47c98: 4b fc 97 41 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc47c9c: 38 00 00 0b li r0,11 return RTEMS_NOT_DEFINED; ffc47ca0: 4b ff ff 5c b ffc47bfc <== ALWAYS TAKEN ffc09768 : rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { ffc09768: 94 21 ff f8 stwu r1,-8(r1) ffc0976c: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc09770: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { ffc09774: 90 01 00 0c stw r0,12(r1) ffc09778: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc0977c: 3c 60 00 00 lis r3,0 rtems_status_code rtems_rate_monotonic_ident( rtems_name name, rtems_id *id ) { ffc09780: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc09784: 38 63 2c 64 addi r3,r3,11364 ffc09788: 7c 04 03 78 mr r4,r0 ffc0978c: 60 a5 ff ff ori r5,r5,65535 ffc09790: 48 00 31 bd bl ffc0c94c <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc09794: 80 01 00 0c lwz r0,12(r1) ffc09798: 3d 20 ff c2 lis r9,-62 ffc0979c: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc097a0: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc097a4: 39 29 4f e0 addi r9,r9,20448 ffc097a8: 7c 69 18 2e lwzx r3,r9,r3 ffc097ac: 38 21 00 08 addi r1,r1,8 ffc097b0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc47f94 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { ffc47f94: 94 21 ff d0 stwu r1,-48(r1) ffc47f98: 7c 08 02 a6 mflr r0 ffc47f9c: 93 e1 00 2c stw r31,44(r1) ffc47fa0: 7c 7f 1b 78 mr r31,r3 ffc47fa4: 3c 60 00 00 lis r3,0 ffc47fa8: 93 c1 00 28 stw r30,40(r1) ffc47fac: 38 63 6f ec addi r3,r3,28652 ffc47fb0: 7c 9e 23 78 mr r30,r4 ffc47fb4: 38 a1 00 08 addi r5,r1,8 ffc47fb8: 90 01 00 34 stw r0,52(r1) <== ALWAYS TAKEN ffc47fbc: 7f e4 fb 78 mr r4,r31 ffc47fc0: 93 a1 00 24 stw r29,36(r1) ffc47fc4: 93 61 00 1c stw r27,28(r1) ffc47fc8: 93 81 00 20 stw r28,32(r1) ffc47fcc: 4b fc 87 15 bl ffc106e0 <_Objects_Get> <== ALWAYS TAKEN ffc47fd0: 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 ) { ffc47fd4: 80 01 00 08 lwz r0,8(r1) ffc47fd8: 2f 80 00 00 cmpwi cr7,r0,0 ffc47fdc: 40 9e 00 48 bne- cr7,ffc48024 case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) { ffc47fe0: 3f 80 00 00 lis r28,0 ffc47fe4: 81 23 00 40 lwz r9,64(r3) ffc47fe8: 80 1c 36 58 lwz r0,13912(r28) ffc47fec: 7f 89 00 00 cmpw cr7,r9,r0 ffc47ff0: 41 9e 00 60 beq- cr7,ffc48050 _Thread_Enable_dispatch(); ffc47ff4: 4b fc 93 e5 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc47ff8: 3b e0 00 17 li r31,23 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc47ffc: 80 01 00 34 lwz r0,52(r1) ffc48000: 7f e3 fb 78 mr r3,r31 ffc48004: 83 61 00 1c lwz r27,28(r1) ffc48008: 7c 08 03 a6 mtlr r0 ffc4800c: 83 81 00 20 lwz r28,32(r1) ffc48010: 83 a1 00 24 lwz r29,36(r1) ffc48014: 83 c1 00 28 lwz r30,40(r1) ffc48018: 83 e1 00 2c lwz r31,44(r1) ffc4801c: 38 21 00 30 addi r1,r1,48 ffc48020: 4e 80 00 20 blr <== ALWAYS TAKEN ffc48024: 80 01 00 34 lwz r0,52(r1) the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; ffc48028: 3b e0 00 04 li r31,4 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc4802c: 7f e3 fb 78 mr r3,r31 ffc48030: 83 61 00 1c lwz r27,28(r1) ffc48034: 7c 08 03 a6 mtlr r0 ffc48038: 83 81 00 20 lwz r28,32(r1) ffc4803c: 83 a1 00 24 lwz r29,36(r1) ffc48040: 83 c1 00 28 lwz r30,40(r1) ffc48044: 83 e1 00 2c lwz r31,44(r1) ffc48048: 38 21 00 30 addi r1,r1,48 ffc4804c: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { ffc48050: 2f 9e 00 00 cmpwi cr7,r30,0 ffc48054: 41 9e 00 b4 beq- cr7,ffc48108 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc48058: 7f 60 00 a6 mfmsr r27 ffc4805c: 7c 10 42 a6 mfsprg r0,0 ffc48060: 7f 60 00 78 andc r0,r27,r0 ffc48064: 7c 00 01 24 mtmsr r0 _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); switch ( the_period->state ) { ffc48068: 80 03 00 38 lwz r0,56(r3) ffc4806c: 2f 80 00 02 cmpwi cr7,r0,2 ffc48070: 41 9e 00 c0 beq- cr7,ffc48130 ffc48074: 2f 80 00 04 cmpwi cr7,r0,4 ffc48078: 41 9e 00 5c beq- cr7,ffc480d4 ffc4807c: 2f 80 00 00 cmpwi cr7,r0,0 ffc48080: 40 be ff a4 bne- cr7,ffc48024 <== NEVER TAKEN return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc48084: 7f 60 01 24 mtmsr r27 _ISR_Enable( level ); /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); ffc48088: 4b ff fc 1d bl ffc47ca4 <_Rate_monotonic_Initiate_statistics> <== ALWAYS TAKEN the_period->state = RATE_MONOTONIC_ACTIVE; ffc4808c: 39 20 00 02 li r9,2 ffc48090: 91 3d 00 38 stw r9,56(r29) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc48094: 3d 20 ff c5 lis r9,-59 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc48098: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc4809c: 39 29 81 a0 addi r9,r9,-32352 the_watchdog->id = id; ffc480a0: 93 fd 00 30 stw r31,48(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc480a4: 3c 60 00 00 lis r3,0 Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc480a8: 91 3d 00 2c stw r9,44(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc480ac: 38 63 65 e8 addi r3,r3,26088 ffc480b0: 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; ffc480b4: 90 1d 00 34 stw r0,52(r29) ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc480b8: 3b e0 00 00 li r31,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc480bc: 93 dd 00 1c stw r30,28(r29) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc480c0: 90 1d 00 18 stw r0,24(r29) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; ffc480c4: 93 dd 00 3c stw r30,60(r29) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc480c8: 4b fc a9 fd bl ffc12ac4 <_Watchdog_Insert> <== ALWAYS TAKEN _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc480cc: 4b fc 93 0d bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; ffc480d0: 4b ff ff 2c b ffc47ffc <== ALWAYS TAKEN case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period ); ffc480d4: 4b ff fd 79 bl ffc47e4c <_Rate_monotonic_Update_statistics> <== ALWAYS TAKEN ffc480d8: 7f 60 01 24 mtmsr r27 _ISR_Enable( level ); the_period->state = RATE_MONOTONIC_ACTIVE; ffc480dc: 38 00 00 02 li r0,2 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc480e0: 93 dd 00 1c stw r30,28(r29) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc480e4: 3c 60 00 00 lis r3,0 ffc480e8: 90 1d 00 38 stw r0,56(r29) ffc480ec: 38 63 65 e8 addi r3,r3,26088 ffc480f0: 38 9d 00 10 addi r4,r29,16 the_period->next_length = length; ffc480f4: 93 dd 00 3c stw r30,60(r29) _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc480f8: 3b e0 00 06 li r31,6 ffc480fc: 4b fc a9 c9 bl ffc12ac4 <_Watchdog_Insert> <== ALWAYS TAKEN ffc48100: 4b fc 92 d9 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_TIMEOUT; ffc48104: 4b ff fe f8 b ffc47ffc <== ALWAYS TAKEN _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { ffc48108: 80 03 00 38 lwz r0,56(r3) ffc4810c: 3b e0 00 00 li r31,0 ffc48110: 2b 80 00 04 cmplwi cr7,r0,4 ffc48114: 41 bd ff b8 bgt- cr7,ffc480cc <== NEVER TAKEN ffc48118: 3d 20 ff c7 lis r9,-57 ffc4811c: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc48120: 39 29 3f ec addi r9,r9,16364 ffc48124: 7f e9 00 2e lwzx r31,r9,r0 ); the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); ffc48128: 4b fc 92 b1 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc4812c: 4b ff fe d0 b ffc47ffc <== ALWAYS TAKEN case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); ffc48130: 4b ff fd 1d bl ffc47e4c <_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; ffc48134: 38 00 00 01 li r0,1 the_period->next_length = length; ffc48138: 93 dd 00 3c stw r30,60(r29) /* * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; ffc4813c: 90 1d 00 38 stw r0,56(r29) ffc48140: 7f 60 01 24 mtmsr r27 the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; ffc48144: 81 3c 36 58 lwz r9,13912(r28) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc48148: 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; ffc4814c: 80 1d 00 08 lwz r0,8(r29) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc48150: 7d 23 4b 78 mr r3,r9 the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; the_period->next_length = length; _ISR_Enable( level ); _Thread_Executing->Wait.id = the_period->Object.id; ffc48154: 90 09 00 20 stw r0,32(r9) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc48158: 4b fc 9d fd bl ffc11f54 <_Thread_Set_state> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc4815c: 7d 20 00 a6 mfmsr r9 ffc48160: 7c 10 42 a6 mfsprg r0,0 ffc48164: 7d 20 00 78 andc r0,r9,r0 ffc48168: 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; ffc4816c: 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; ffc48170: 80 1d 00 38 lwz r0,56(r29) the_period->state = RATE_MONOTONIC_ACTIVE; ffc48174: 91 7d 00 38 stw r11,56(r29) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc48178: 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 ) ffc4817c: 2f 80 00 03 cmpwi cr7,r0,3 ffc48180: 41 9e 00 10 beq- cr7,ffc48190 <== NEVER TAKEN _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); ffc48184: 4b fc 92 55 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc48188: 3b e0 00 00 li r31,0 return RTEMS_SUCCESSFUL; ffc4818c: 4b ff fe 70 b ffc47ffc <== ALWAYS TAKEN /* * If it did, then we want to unblock ourself and continue as * if nothing happen. The period was reset in the timeout routine. */ if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING ) _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); ffc48190: 80 7c 36 58 lwz r3,13912(r28) <== NOT EXECUTED ffc48194: 38 80 40 00 li r4,16384 <== NOT EXECUTED ffc48198: 4b fc 8d 2d bl ffc10ec4 <_Thread_Clear_state> <== NOT EXECUTED ffc4819c: 4b ff ff e8 b ffc48184 <== NOT EXECUTED ffc329e0 : } } void rtems_rate_monotonic_report_statistics( void ) { rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); ffc329e0: 3c 80 ff c1 lis r4,-63 ffc329e4: 38 84 a5 50 addi r4,r4,-23216 ffc329e8: 38 60 00 00 li r3,0 ffc329ec: 4b ff fc f8 b ffc326e4 <== ALWAYS TAKEN ffc326e4 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc326e4: 94 21 ff 58 stwu r1,-168(r1) ffc326e8: 7c 08 02 a6 mflr r0 ffc326ec: 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 ) ffc326f0: 7c 80 23 79 mr. r0,r4 */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc326f4: 93 a1 00 9c stw r29,156(r1) ffc326f8: 7c 7d 1b 78 mr r29,r3 ffc326fc: 92 41 00 70 stw r18,112(r1) ffc32700: 92 61 00 74 stw r19,116(r1) ffc32704: 92 81 00 78 stw r20,120(r1) ffc32708: 92 a1 00 7c stw r21,124(r1) ffc3270c: 92 c1 00 80 stw r22,128(r1) ffc32710: 92 e1 00 84 stw r23,132(r1) ffc32714: 93 01 00 88 stw r24,136(r1) ffc32718: 93 21 00 8c stw r25,140(r1) ffc3271c: 93 41 00 90 stw r26,144(r1) ffc32720: 93 61 00 94 stw r27,148(r1) ffc32724: 93 81 00 98 stw r28,152(r1) ffc32728: 93 c1 00 a0 stw r30,160(r1) ffc3272c: 93 e1 00 a4 stw r31,164(r1) rtems_id id; rtems_rate_monotonic_period_statistics the_stats; rtems_rate_monotonic_period_status the_status; char name[5]; if ( !print ) ffc32730: 90 01 00 68 stw r0,104(r1) ffc32734: 41 82 01 88 beq- ffc328bc <== NEVER TAKEN return; (*print)( context, "Period information by period\n" ); ffc32738: 3c 80 ff c7 lis r4,-57 ffc3273c: 7c 09 03 a6 mtctr r0 ffc32740: 38 84 05 34 addi r4,r4,1332 /* * 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 ; ffc32744: 3f c0 00 00 lis r30,0 ffc32748: 3b de 6f ec addi r30,r30,28652 char name[5]; if ( !print ) return; (*print)( context, "Period information by period\n" ); ffc3274c: 4c c6 31 82 crclr 4*cr1+eq ffc32750: 4e 80 04 21 bctrl <== ALWAYS TAKEN #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); ffc32754: 80 01 00 68 lwz r0,104(r1) ffc32758: 3c 80 ff c7 lis r4,-57 ffc3275c: 7c 09 03 a6 mtctr r0 ffc32760: 38 84 05 54 addi r4,r4,1364 ffc32764: 7f a3 eb 78 mr r3,r29 ffc32768: 4c c6 31 82 crclr 4*cr1+eq ffc3276c: 4e 80 04 21 bctrl <== ALWAYS TAKEN (*print)( context, "--- Wall times are in seconds ---\n" ); ffc32770: 80 01 00 68 lwz r0,104(r1) ffc32774: 3c 80 ff c7 lis r4,-57 ffc32778: 7c 09 03 a6 mtctr r0 ffc3277c: 38 84 05 78 addi r4,r4,1400 ffc32780: 7f a3 eb 78 mr r3,r29 ffc32784: 4c c6 31 82 crclr 4*cr1+eq ffc32788: 4e 80 04 21 bctrl <== ALWAYS TAKEN Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " ffc3278c: 80 01 00 68 lwz r0,104(r1) ffc32790: 3c 80 ff c7 lis r4,-57 ffc32794: 7c 09 03 a6 mtctr r0 ffc32798: 38 84 05 9c addi r4,r4,1436 ffc3279c: 7f a3 eb 78 mr r3,r29 ffc327a0: 4c c6 31 82 crclr 4*cr1+eq ffc327a4: 4e 80 04 21 bctrl <== ALWAYS TAKEN #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " ffc327a8: 80 01 00 68 lwz r0,104(r1) ffc327ac: 3c 80 ff c7 lis r4,-57 ffc327b0: 7c 09 03 a6 mtctr r0 ffc327b4: 38 84 05 e8 addi r4,r4,1512 ffc327b8: 7f a3 eb 78 mr r3,r29 ffc327bc: 4c c6 31 82 crclr 4*cr1+eq ffc327c0: 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 ; ffc327c4: 83 fe 00 08 lwz r31,8(r30) ffc327c8: 80 1e 00 0c lwz r0,12(r30) ffc327cc: 7f 9f 00 40 cmplw cr7,r31,r0 ffc327d0: 41 9d 00 ec bgt- cr7,ffc328bc <== NEVER TAKEN rtems_object_get_name( the_status.owner, sizeof(name), name ); /* * Print part of report line that is not dependent on granularity */ (*print)( context, ffc327d4: 3e a0 ff c7 lis r21,-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, ffc327d8: 3e 60 ff c7 lis r19,-57 ffc327dc: 3f 60 10 62 lis r27,4194 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, ffc327e0: 3e 80 ff c7 lis r20,-57 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc327e4: 3e c0 ff c7 lis r22,-57 rtems_object_get_name( the_status.owner, sizeof(name), name ); /* * Print part of report line that is not dependent on granularity */ (*print)( context, ffc327e8: 3a b5 06 34 addi r21,r21,1588 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, ffc327ec: 3a 73 06 4c addi r19,r19,1612 ffc327f0: 63 7b 4d d3 ori r27,r27,19923 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, ffc327f4: 3a 94 06 6c addi r20,r20,1644 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc327f8: 3a d6 1f cc addi r22,r22,8140 ffc327fc: 3b 81 00 30 addi r28,r1,48 status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 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 ); ffc32800: 3a e1 00 18 addi r23,r1,24 #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); ffc32804: 3b 41 00 08 addi r26,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 ); ffc32808: 3b 01 00 48 addi r24,r1,72 ffc3280c: 3b 21 00 10 addi r25,r1,16 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); ffc32810: 3a 41 00 60 addi r18,r1,96 ffc32814: 48 00 00 14 b ffc32828 <== 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 ; ffc32818: 80 1e 00 0c lwz r0,12(r30) id <= _Rate_monotonic_Information.maximum_id ; id++ ) { ffc3281c: 3b ff 00 01 addi r31,r31,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 ; ffc32820: 7f 80 f8 40 cmplw cr7,r0,r31 ffc32824: 41 9c 00 98 blt- cr7,ffc328bc id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); ffc32828: 7f e3 fb 78 mr r3,r31 ffc3282c: 7f 84 e3 78 mr r4,r28 ffc32830: 48 01 52 a9 bl ffc47ad8 <== ALWAYS TAKEN if ( status != RTEMS_SUCCESSFUL ) ffc32834: 2f 83 00 00 cmpwi cr7,r3,0 ffc32838: 40 9e ff e0 bne+ cr7,ffc32818 continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); ffc3283c: 7e e4 bb 78 mr r4,r23 ffc32840: 7f e3 fb 78 mr r3,r31 ffc32844: 48 01 53 79 bl ffc47bbc <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); ffc32848: 80 61 00 18 lwz r3,24(r1) ffc3284c: 7f 45 d3 78 mr r5,r26 ffc32850: 38 80 00 05 li r4,5 ffc32854: 4b fd b9 cd bl ffc0e220 <== ALWAYS TAKEN /* * Print part of report line that is not dependent on granularity */ (*print)( context, ffc32858: 80 01 00 68 lwz r0,104(r1) ffc3285c: 7e a4 ab 78 mr r4,r21 ffc32860: 80 e1 00 30 lwz r7,48(r1) ffc32864: 7f e5 fb 78 mr r5,r31 ffc32868: 7c 09 03 a6 mtctr r0 ffc3286c: 7f a3 eb 78 mr r3,r29 ffc32870: 81 01 00 34 lwz r8,52(r1) ffc32874: 7f 46 d3 78 mr r6,r26 ffc32878: 4c c6 31 82 crclr 4*cr1+eq ffc3287c: 4e 80 04 21 bctrl <== ALWAYS TAKEN ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc32880: 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 ); ffc32884: 7f 03 c3 78 mr r3,r24 ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc32888: 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 ); ffc3288c: 7f 25 cb 78 mr r5,r25 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc32890: 7e c4 b3 78 mr r4,r22 ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { ffc32894: 40 9e 00 70 bne- cr7,ffc32904 (*print)( context, "\n" ); ffc32898: 80 01 00 68 lwz r0,104(r1) ffc3289c: 7f a3 eb 78 mr r3,r29 * 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++ ) { ffc328a0: 3b ff 00 01 addi r31,r31,1 /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { (*print)( context, "\n" ); ffc328a4: 7c 09 03 a6 mtctr r0 ffc328a8: 4c c6 31 82 crclr 4*cr1+eq ffc328ac: 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 ; ffc328b0: 80 1e 00 0c lwz r0,12(r30) ffc328b4: 7f 80 f8 40 cmplw cr7,r0,r31 ffc328b8: 40 9c ff 70 bge+ cr7,ffc32828 <== ALWAYS TAKEN the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } ffc328bc: 80 01 00 ac lwz r0,172(r1) ffc328c0: 82 41 00 70 lwz r18,112(r1) ffc328c4: 7c 08 03 a6 mtlr r0 ffc328c8: 82 61 00 74 lwz r19,116(r1) ffc328cc: 82 81 00 78 lwz r20,120(r1) ffc328d0: 82 a1 00 7c lwz r21,124(r1) ffc328d4: 82 c1 00 80 lwz r22,128(r1) ffc328d8: 82 e1 00 84 lwz r23,132(r1) ffc328dc: 83 01 00 88 lwz r24,136(r1) ffc328e0: 83 21 00 8c lwz r25,140(r1) ffc328e4: 83 41 00 90 lwz r26,144(r1) ffc328e8: 83 61 00 94 lwz r27,148(r1) ffc328ec: 83 81 00 98 lwz r28,152(r1) ffc328f0: 83 a1 00 9c lwz r29,156(r1) ffc328f4: 83 c1 00 a0 lwz r30,160(r1) ffc328f8: 83 e1 00 a4 lwz r31,164(r1) ffc328fc: 38 21 00 a8 addi r1,r1,168 ffc32900: 4e 80 00 20 blr <== 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 ); ffc32904: 7c 04 03 78 mr r4,r0 ffc32908: 48 00 1c c9 bl ffc345d0 <_Timespec_Divide_by_integer> <== ALWAYS TAKEN (*print)( context, ffc3290c: 80 01 00 14 lwz r0,20(r1) ffc32910: 80 81 00 3c lwz r4,60(r1) ffc32914: 7f a3 eb 78 mr r3,r29 ffc32918: 81 61 00 44 lwz r11,68(r1) ffc3291c: 7d 40 d8 96 mulhw r10,r0,r27 ffc32920: 80 e1 00 40 lwz r7,64(r1) ffc32924: 7c c4 d8 96 mulhw r6,r4,r27 ffc32928: 81 21 00 10 lwz r9,16(r1) ffc3292c: 80 a1 00 38 lwz r5,56(r1) ffc32930: 7d 0b d8 96 mulhw r8,r11,r27 ffc32934: 7c 00 fe 70 srawi r0,r0,31 ffc32938: 7d 4a 36 70 srawi r10,r10,6 ffc3293c: 7d 40 50 50 subf r10,r0,r10 ffc32940: 80 01 00 68 lwz r0,104(r1) ffc32944: 7d 6b fe 70 srawi r11,r11,31 ffc32948: 7c 84 fe 70 srawi r4,r4,31 ffc3294c: 7c 09 03 a6 mtctr r0 ffc32950: 7c c6 36 70 srawi r6,r6,6 ffc32954: 7d 08 36 70 srawi r8,r8,6 ffc32958: 7c c4 30 50 subf r6,r4,r6 ffc3295c: 7d 0b 40 50 subf r8,r11,r8 ffc32960: 7e 64 9b 78 mr r4,r19 ffc32964: 4c c6 31 82 crclr 4*cr1+eq ffc32968: 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); ffc3296c: 80 81 00 30 lwz r4,48(r1) ffc32970: 7e 43 93 78 mr r3,r18 ffc32974: 7f 25 cb 78 mr r5,r25 ffc32978: 48 00 1c 59 bl ffc345d0 <_Timespec_Divide_by_integer> <== ALWAYS TAKEN (*print)( context, ffc3297c: 80 01 00 14 lwz r0,20(r1) ffc32980: 80 81 00 54 lwz r4,84(r1) ffc32984: 7f a3 eb 78 mr r3,r29 ffc32988: 81 61 00 5c lwz r11,92(r1) ffc3298c: 7d 40 d8 96 mulhw r10,r0,r27 ffc32990: 80 a1 00 50 lwz r5,80(r1) ffc32994: 7c c4 d8 96 mulhw r6,r4,r27 ffc32998: 80 e1 00 58 lwz r7,88(r1) ffc3299c: 81 21 00 10 lwz r9,16(r1) ffc329a0: 7d 0b d8 96 mulhw r8,r11,r27 ffc329a4: 7c 00 fe 70 srawi r0,r0,31 ffc329a8: 7d 4a 36 70 srawi r10,r10,6 ffc329ac: 7d 40 50 50 subf r10,r0,r10 ffc329b0: 80 01 00 68 lwz r0,104(r1) ffc329b4: 7c 84 fe 70 srawi r4,r4,31 ffc329b8: 7d 6b fe 70 srawi r11,r11,31 ffc329bc: 7c 09 03 a6 mtctr r0 ffc329c0: 7c c6 36 70 srawi r6,r6,6 ffc329c4: 7d 08 36 70 srawi r8,r8,6 ffc329c8: 7c c4 30 50 subf r6,r4,r6 ffc329cc: 7d 0b 40 50 subf r8,r11,r8 ffc329d0: 7e 84 a3 78 mr r4,r20 ffc329d4: 4c c6 31 82 crclr 4*cr1+eq ffc329d8: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc329dc: 4b ff fe 3c b ffc32818 <== ALWAYS TAKEN ffc329f0 : ffc329f0: 3d 20 00 00 lis r9,0 /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { ffc329f4: 94 21 ff f0 stwu r1,-16(r1) ffc329f8: 7c 08 02 a6 mflr r0 ffc329fc: 81 69 36 18 lwz r11,13848(r9) ffc32a00: 90 01 00 14 stw r0,20(r1) ffc32a04: 38 0b 00 01 addi r0,r11,1 ffc32a08: 93 c1 00 08 stw r30,8(r1) ffc32a0c: 93 e1 00 0c stw r31,12(r1) ffc32a10: 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 ; ffc32a14: 3f c0 00 00 lis r30,0 ffc32a18: 3b de 6f ec addi r30,r30,28652 ffc32a1c: 83 fe 00 08 lwz r31,8(r30) ffc32a20: 80 1e 00 0c lwz r0,12(r30) ffc32a24: 7f 9f 00 40 cmplw cr7,r31,r0 ffc32a28: 41 9d 00 1c bgt- cr7,ffc32a44 <== NEVER TAKEN id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); ffc32a2c: 7f e3 fb 78 mr r3,r31 ffc32a30: 48 00 00 31 bl ffc32a60 <== 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 ; ffc32a34: 80 1e 00 0c lwz r0,12(r30) id <= _Rate_monotonic_Information.maximum_id ; id++ ) { ffc32a38: 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 ; ffc32a3c: 7f 80 f8 40 cmplw cr7,r0,r31 ffc32a40: 40 9c ff ec bge+ cr7,ffc32a2c } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); ffc32a44: 4b fd e9 95 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN } ffc32a48: 80 01 00 14 lwz r0,20(r1) ffc32a4c: 83 c1 00 08 lwz r30,8(r1) ffc32a50: 7c 08 03 a6 mtlr r0 ffc32a54: 83 e1 00 0c lwz r31,12(r1) ffc32a58: 38 21 00 10 addi r1,r1,16 ffc32a5c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc32a60 : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { ffc32a60: 94 21 ff e0 stwu r1,-32(r1) ffc32a64: 7c 08 02 a6 mflr r0 ffc32a68: 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 *) ffc32a6c: 3c 60 00 00 lis r3,0 ffc32a70: 90 01 00 24 stw r0,36(r1) ffc32a74: 38 63 6f ec addi r3,r3,28652 ffc32a78: 38 a1 00 08 addi r5,r1,8 ffc32a7c: 93 e1 00 1c stw r31,28(r1) ffc32a80: 4b fd dc 61 bl ffc106e0 <_Objects_Get> <== ALWAYS TAKEN Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { ffc32a84: 80 01 00 08 lwz r0,8(r1) ffc32a88: 7c 7f 1b 78 mr r31,r3 ffc32a8c: 38 60 00 04 li r3,4 ffc32a90: 2f 80 00 00 cmpwi cr7,r0,0 ffc32a94: 40 9e 00 34 bne- cr7,ffc32ac8 case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); ffc32a98: 38 80 00 00 li r4,0 ffc32a9c: 38 a0 00 38 li r5,56 ffc32aa0: 38 7f 00 54 addi r3,r31,84 ffc32aa4: 48 01 f7 65 bl ffc52208 <== ALWAYS TAKEN ffc32aa8: 3c 00 7f ff lis r0,32767 ffc32aac: 60 00 ff ff ori r0,r0,65535 ffc32ab0: 90 1f 00 78 stw r0,120(r31) ffc32ab4: 90 1f 00 5c stw r0,92(r31) ffc32ab8: 90 1f 00 60 stw r0,96(r31) ffc32abc: 90 1f 00 74 stw r0,116(r31) _Thread_Enable_dispatch(); ffc32ac0: 4b fd e9 19 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc32ac4: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc32ac8: 80 01 00 24 lwz r0,36(r1) ffc32acc: 83 e1 00 1c lwz r31,28(r1) ffc32ad0: 38 21 00 20 addi r1,r1,32 ffc32ad4: 7c 08 03 a6 mtlr r0 ffc32ad8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc189dc : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { ffc189dc: 94 21 ff c8 stwu r1,-56(r1) ffc189e0: 7c 08 02 a6 mflr r0 ffc189e4: 93 81 00 28 stw r28,40(r1) rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) ffc189e8: 7c 7c 1b 79 mr. r28,r3 uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { ffc189ec: 93 61 00 24 stw r27,36(r1) rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) ffc189f0: 3b 60 00 03 li r27,3 uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { ffc189f4: 93 a1 00 2c stw r29,44(r1) ffc189f8: 7c bd 2b 78 mr r29,r5 ffc189fc: 93 c1 00 30 stw r30,48(r1) ffc18a00: 7c de 33 78 mr r30,r6 ffc18a04: 93 e1 00 34 stw r31,52(r1) ffc18a08: 7c 9f 23 78 mr r31,r4 ffc18a0c: 90 01 00 3c stw r0,60(r1) ffc18a10: 92 e1 00 14 stw r23,20(r1) ffc18a14: 93 01 00 18 stw r24,24(r1) ffc18a18: 93 21 00 1c stw r25,28(r1) ffc18a1c: 93 41 00 20 stw r26,32(r1) rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) ffc18a20: 41 82 00 20 beq- ffc18a40 return RTEMS_INVALID_NAME; if ( !starting_address ) ffc18a24: 2f 84 00 00 cmpwi cr7,r4,0 ffc18a28: 41 9e 00 14 beq- cr7,ffc18a3c return RTEMS_INVALID_ADDRESS; if ( !id ) ffc18a2c: 2f 88 00 00 cmpwi cr7,r8,0 ffc18a30: 41 9e 00 0c beq- cr7,ffc18a3c return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) ffc18a34: 70 98 00 07 andi. r24,r4,7 ffc18a38: 41 82 00 40 beq- ffc18a78 return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); return return_status; ffc18a3c: 3b 60 00 09 li r27,9 } ffc18a40: 80 01 00 3c lwz r0,60(r1) ffc18a44: 7f 63 db 78 mr r3,r27 ffc18a48: 82 e1 00 14 lwz r23,20(r1) ffc18a4c: 7c 08 03 a6 mtlr r0 ffc18a50: 83 01 00 18 lwz r24,24(r1) ffc18a54: 83 21 00 1c lwz r25,28(r1) ffc18a58: 83 41 00 20 lwz r26,32(r1) ffc18a5c: 83 61 00 24 lwz r27,36(r1) ffc18a60: 83 81 00 28 lwz r28,40(r1) ffc18a64: 83 a1 00 2c lwz r29,44(r1) ffc18a68: 83 c1 00 30 lwz r30,48(r1) ffc18a6c: 83 e1 00 34 lwz r31,52(r1) ffc18a70: 38 21 00 38 addi r1,r1,56 ffc18a74: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ ffc18a78: 3f 20 00 00 lis r25,0 ffc18a7c: 90 e1 00 08 stw r7,8(r1) * 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 ); ffc18a80: 3e e0 00 00 lis r23,0 ffc18a84: 80 79 28 a0 lwz r3,10400(r25) ffc18a88: 3a f7 6f 6c addi r23,r23,28524 ffc18a8c: 91 01 00 0c stw r8,12(r1) the_region = _Region_Allocate(); if ( !the_region ) ffc18a90: 3b 60 00 05 li r27,5 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ ffc18a94: 48 00 33 d1 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc18a98: 7e e3 bb 78 mr r3,r23 ffc18a9c: 48 00 4f 8d bl ffc1da28 <_Objects_Allocate> <== ALWAYS TAKEN the_region = _Region_Allocate(); if ( !the_region ) ffc18aa0: 7c 7a 1b 79 mr. r26,r3 ffc18aa4: 41 82 00 3c beq- ffc18ae0 return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( ffc18aa8: 38 7a 00 68 addi r3,r26,104 ffc18aac: 7f e4 fb 78 mr r4,r31 ffc18ab0: 7f a5 eb 78 mr r5,r29 ffc18ab4: 7f c6 f3 78 mr r6,r30 ffc18ab8: 48 00 49 45 bl ffc1d3fc <_Heap_Initialize> <== ALWAYS TAKEN &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { ffc18abc: 80 e1 00 08 lwz r7,8(r1) ffc18ac0: 2f 83 00 00 cmpwi cr7,r3,0 if ( !the_region ) return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( ffc18ac4: 90 7a 00 5c stw r3,92(r26) &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { ffc18ac8: 81 01 00 0c lwz r8,12(r1) ffc18acc: 40 9e 00 54 bne- cr7,ffc18b20 */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); ffc18ad0: 7e e3 bb 78 mr r3,r23 ffc18ad4: 7f 44 d3 78 mr r4,r26 ffc18ad8: 48 00 53 71 bl ffc1de48 <_Objects_Free> <== ALWAYS TAKEN ffc18adc: 3b 60 00 08 li r27,8 *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); ffc18ae0: 80 79 28 a0 lwz r3,10400(r25) ffc18ae4: 48 00 34 01 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc18ae8: 80 01 00 3c lwz r0,60(r1) ffc18aec: 7f 63 db 78 mr r3,r27 ffc18af0: 82 e1 00 14 lwz r23,20(r1) ffc18af4: 7c 08 03 a6 mtlr r0 ffc18af8: 83 01 00 18 lwz r24,24(r1) ffc18afc: 83 21 00 1c lwz r25,28(r1) ffc18b00: 83 41 00 20 lwz r26,32(r1) ffc18b04: 83 61 00 24 lwz r27,36(r1) ffc18b08: 83 81 00 28 lwz r28,40(r1) ffc18b0c: 83 a1 00 2c lwz r29,44(r1) ffc18b10: 83 c1 00 30 lwz r30,48(r1) ffc18b14: 83 e1 00 34 lwz r31,52(r1) ffc18b18: 38 21 00 38 addi r1,r1,56 ffc18b1c: 4e 80 00 20 blr <== ALWAYS TAKEN return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address; ffc18b20: 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( ffc18b24: 54 e4 f7 fe rlwinm r4,r7,30,31,31 ffc18b28: 38 7a 00 10 addi r3,r26,16 } else { the_region->starting_address = starting_address; the_region->length = length; ffc18b2c: 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( ffc18b30: 38 a0 00 40 li r5,64 ffc18b34: 38 c0 00 06 li r6,6 else { the_region->starting_address = starting_address; the_region->length = length; the_region->page_size = page_size; ffc18b38: 93 da 00 58 stw r30,88(r26) &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; ffc18b3c: 3b 60 00 00 li r27,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; ffc18b40: 93 1a 00 64 stw r24,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; ffc18b44: 90 fa 00 60 stw r7,96(r26) the_region->number_of_used_blocks = 0; _Thread_queue_Initialize( ffc18b48: 91 01 00 0c stw r8,12(r1) ffc18b4c: 48 00 6b cd bl ffc1f718 <_Thread_queue_Initialize> <== ALWAYS TAKEN ffc18b50: 80 1a 00 08 lwz r0,8(r26) ffc18b54: 81 77 00 1c lwz r11,28(r23) &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; ffc18b58: 81 01 00 0c lwz r8,12(r1) ffc18b5c: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc18b60: 93 9a 00 0c stw r28,12(r26) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc18b64: 7f 4b 49 2e stwx r26,r11,r9 ffc18b68: 90 08 00 00 stw r0,0(r8) ffc18b6c: 4b ff ff 74 b ffc18ae0 <== ALWAYS TAKEN ffc18b70 : */ rtems_status_code rtems_region_delete( rtems_id id ) { ffc18b70: 94 21 ff d8 stwu r1,-40(r1) ffc18b74: 7c 08 02 a6 mflr r0 ffc18b78: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); ffc18b7c: 3f e0 00 00 lis r31,0 */ rtems_status_code rtems_region_delete( rtems_id id ) { ffc18b80: 93 81 00 18 stw r28,24(r1) ffc18b84: 7c 7c 1b 78 mr r28,r3 ffc18b88: 93 a1 00 1c stw r29,28(r1) RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) ffc18b8c: 3f a0 00 00 lis r29,0 ffc18b90: 3b bd 6f 6c addi r29,r29,28524 Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); ffc18b94: 80 7f 28 a0 lwz r3,10400(r31) */ rtems_status_code rtems_region_delete( rtems_id id ) { ffc18b98: 90 01 00 2c stw r0,44(r1) ffc18b9c: 93 c1 00 20 stw r30,32(r1) Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); ffc18ba0: 48 00 32 c5 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc18ba4: 7f 84 e3 78 mr r4,r28 ffc18ba8: 7f a3 eb 78 mr r3,r29 ffc18bac: 38 a1 00 08 addi r5,r1,8 ffc18bb0: 48 00 54 79 bl ffc1e028 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc18bb4: 80 01 00 08 lwz r0,8(r1) ffc18bb8: 3b c0 00 04 li r30,4 ffc18bbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc18bc0: 7c 7c 1b 78 mr r28,r3 ffc18bc4: 40 9e 00 14 bne- cr7,ffc18bd8 case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) ffc18bc8: 80 03 00 64 lwz r0,100(r3) ffc18bcc: 3b c0 00 0c li r30,12 ffc18bd0: 2f 80 00 00 cmpwi cr7,r0,0 ffc18bd4: 41 9e 00 30 beq- cr7,ffc18c04 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc18bd8: 80 7f 28 a0 lwz r3,10400(r31) ffc18bdc: 48 00 33 09 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc18be0: 80 01 00 2c lwz r0,44(r1) ffc18be4: 7f c3 f3 78 mr r3,r30 ffc18be8: 83 81 00 18 lwz r28,24(r1) ffc18bec: 7c 08 03 a6 mtlr r0 ffc18bf0: 83 a1 00 1c lwz r29,28(r1) ffc18bf4: 83 c1 00 20 lwz r30,32(r1) ffc18bf8: 83 e1 00 24 lwz r31,36(r1) ffc18bfc: 38 21 00 28 addi r1,r1,40 ffc18c00: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 5 ); if ( the_region->number_of_used_blocks != 0 ) return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object ); ffc18c04: 7f a3 eb 78 mr r3,r29 ffc18c08: 7f 84 e3 78 mr r4,r28 ffc18c0c: 48 00 4e e5 bl ffc1daf0 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); ffc18c10: 7f a3 eb 78 mr r3,r29 ffc18c14: 7f 84 e3 78 mr r4,r28 ffc18c18: 48 00 52 31 bl ffc1de48 <_Objects_Free> <== ALWAYS TAKEN default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc18c1c: 80 7f 28 a0 lwz r3,10400(r31) ffc18c20: 3b c0 00 00 li r30,0 ffc18c24: 48 00 32 c1 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc18c28: 80 01 00 2c lwz r0,44(r1) ffc18c2c: 7f c3 f3 78 mr r3,r30 ffc18c30: 83 81 00 18 lwz r28,24(r1) ffc18c34: 7c 08 03 a6 mtlr r0 ffc18c38: 83 a1 00 1c lwz r29,28(r1) ffc18c3c: 83 c1 00 20 lwz r30,32(r1) ffc18c40: 83 e1 00 24 lwz r31,36(r1) ffc18c44: 38 21 00 28 addi r1,r1,40 ffc18c48: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18c4c : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { ffc18c4c: 94 21 ff d0 stwu r1,-48(r1) ffc18c50: 7c 08 02 a6 mflr r0 ffc18c54: 93 61 00 1c stw r27,28(r1) Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) ffc18c58: 7c 9b 23 79 mr. r27,r4 rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { ffc18c5c: 93 81 00 20 stw r28,32(r1) ffc18c60: 7c bc 2b 78 mr r28,r5 ffc18c64: 93 a1 00 24 stw r29,36(r1) Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) ffc18c68: 3b a0 00 09 li r29,9 rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { ffc18c6c: 93 c1 00 28 stw r30,40(r1) ffc18c70: 7c 7e 1b 78 mr r30,r3 ffc18c74: 90 01 00 34 stw r0,52(r1) ffc18c78: 93 e1 00 2c stw r31,44(r1) Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address ) ffc18c7c: 41 82 00 40 beq- ffc18cbc return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ ffc18c80: 3f e0 00 00 lis r31,0 ffc18c84: 80 7f 28 a0 lwz r3,10400(r31) the_region = _Region_Get( id, &location ); switch ( location ) { ffc18c88: 3b a0 00 04 li r29,4 Region_Control *the_region; if ( !starting_address ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ ffc18c8c: 48 00 31 d9 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) ffc18c90: 3c 60 00 00 lis r3,0 ffc18c94: 7f c4 f3 78 mr r4,r30 ffc18c98: 38 63 6f 6c addi r3,r3,28524 ffc18c9c: 38 a1 00 0c addi r5,r1,12 ffc18ca0: 48 00 53 89 bl ffc1e028 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc18ca4: 80 01 00 0c lwz r0,12(r1) ffc18ca8: 7c 7e 1b 78 mr r30,r3 ffc18cac: 2f 80 00 00 cmpwi cr7,r0,0 ffc18cb0: 41 9e 00 34 beq- cr7,ffc18ce4 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc18cb4: 80 7f 28 a0 lwz r3,10400(r31) ffc18cb8: 48 00 32 2d bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc18cbc: 80 01 00 34 lwz r0,52(r1) ffc18cc0: 7f a3 eb 78 mr r3,r29 ffc18cc4: 83 61 00 1c lwz r27,28(r1) ffc18cc8: 7c 08 03 a6 mtlr r0 ffc18ccc: 83 81 00 20 lwz r28,32(r1) ffc18cd0: 83 a1 00 24 lwz r29,36(r1) ffc18cd4: 83 c1 00 28 lwz r30,40(r1) ffc18cd8: 83 e1 00 2c lwz r31,44(r1) ffc18cdc: 38 21 00 30 addi r1,r1,48 ffc18ce0: 4e 80 00 20 blr <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: heap_status = _Heap_Extend( ffc18ce4: 7f 64 db 78 mr r4,r27 ffc18ce8: 7f 85 e3 78 mr r5,r28 ffc18cec: 38 63 00 68 addi r3,r3,104 ffc18cf0: 38 c1 00 08 addi r6,r1,8 ffc18cf4: 48 00 43 6d bl ffc1d060 <_Heap_Extend> <== ALWAYS TAKEN starting_address, length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { ffc18cf8: 2c 03 00 00 cmpwi r3,0 ffc18cfc: 40 82 00 28 bne- ffc18d24 the_region->length += amount_extended; ffc18d00: 80 01 00 08 lwz r0,8(r1) the_region->maximum_segment_size += amount_extended; ffc18d04: 3b a0 00 00 li r29,0 length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended; ffc18d08: 81 3e 00 54 lwz r9,84(r30) the_region->maximum_segment_size += amount_extended; ffc18d0c: 81 7e 00 5c lwz r11,92(r30) length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended; ffc18d10: 7d 29 02 14 add r9,r9,r0 the_region->maximum_segment_size += amount_extended; ffc18d14: 7c 0b 02 14 add r0,r11,r0 length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended; ffc18d18: 91 3e 00 54 stw r9,84(r30) the_region->maximum_segment_size += amount_extended; ffc18d1c: 90 1e 00 5c stw r0,92(r30) ffc18d20: 4b ff ff 94 b ffc18cb4 <== ALWAYS TAKEN return_status = RTEMS_SUCCESSFUL; } else if ( heap_status == HEAP_EXTEND_ERROR ) { ffc18d24: 68 7d 00 01 xori r29,r3,1 ffc18d28: 33 bd ff ff addic r29,r29,-1 ffc18d2c: 7f bd e9 10 subfe r29,r29,r29 ffc18d30: 57 bd 07 f6 rlwinm r29,r29,0,31,27 ffc18d34: 3b bd 00 18 addi r29,r29,24 ffc18d38: 4b ff ff 7c b ffc18cb4 <== ALWAYS TAKEN ffc18d3c : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { ffc18d3c: 94 21 ff d8 stwu r1,-40(r1) ffc18d40: 7c 08 02 a6 mflr r0 ffc18d44: 93 a1 00 1c stw r29,28(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc18d48: 7c 9d 23 79 mr. r29,r4 rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { ffc18d4c: 93 81 00 18 stw r28,24(r1) ffc18d50: 7c 7c 1b 78 mr r28,r3 ffc18d54: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc18d58: 3b e0 00 09 li r31,9 rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { ffc18d5c: 90 01 00 2c stw r0,44(r1) ffc18d60: 93 c1 00 20 stw r30,32(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc18d64: 41 82 00 3c beq- ffc18da0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc18d68: 3f c0 00 00 lis r30,0 ffc18d6c: 80 7e 28 a0 lwz r3,10400(r30) the_region = _Region_Get( id, &location ); switch ( location ) { ffc18d70: 3b e0 00 04 li r31,4 register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc18d74: 48 00 30 f1 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc18d78: 3c 60 00 00 lis r3,0 ffc18d7c: 38 63 6f 6c addi r3,r3,28524 ffc18d80: 7f 84 e3 78 mr r4,r28 ffc18d84: 38 a1 00 08 addi r5,r1,8 ffc18d88: 48 00 52 a1 bl ffc1e028 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc18d8c: 80 01 00 08 lwz r0,8(r1) ffc18d90: 2f 80 00 00 cmpwi cr7,r0,0 ffc18d94: 41 9e 00 30 beq- cr7,ffc18dc4 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc18d98: 80 7e 28 a0 lwz r3,10400(r30) ffc18d9c: 48 00 31 49 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc18da0: 80 01 00 2c lwz r0,44(r1) ffc18da4: 7f e3 fb 78 mr r3,r31 ffc18da8: 83 81 00 18 lwz r28,24(r1) ffc18dac: 7c 08 03 a6 mtlr r0 ffc18db0: 83 a1 00 1c lwz r29,28(r1) ffc18db4: 83 c1 00 20 lwz r30,32(r1) ffc18db8: 83 e1 00 24 lwz r31,36(r1) ffc18dbc: 38 21 00 28 addi r1,r1,40 ffc18dc0: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; ffc18dc4: 90 1d 00 10 stw r0,16(r29) _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); ffc18dc8: 38 63 00 68 addi r3,r3,104 ffc18dcc: 7f a4 eb 78 mr r4,r29 the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; ffc18dd0: 90 1d 00 0c stw r0,12(r29) the_info->Used.total = 0; the_info->Used.largest = 0; _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); ffc18dd4: 3b e0 00 00 li r31,0 switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; the_info->Used.total = 0; ffc18dd8: 90 1d 00 14 stw r0,20(r29) the_info->Used.largest = 0; _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); ffc18ddc: 48 00 45 29 bl ffc1d304 <_Heap_Get_free_information> <== ALWAYS TAKEN return_status = RTEMS_SUCCESSFUL; break; ffc18de0: 4b ff ff b8 b ffc18d98 <== ALWAYS TAKEN ffc18de4 : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { ffc18de4: 94 21 ff d8 stwu r1,-40(r1) ffc18de8: 7c 08 02 a6 mflr r0 ffc18dec: 93 a1 00 1c stw r29,28(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc18df0: 7c 9d 23 79 mr. r29,r4 rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { ffc18df4: 93 81 00 18 stw r28,24(r1) ffc18df8: 7c 7c 1b 78 mr r28,r3 ffc18dfc: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc18e00: 3b e0 00 09 li r31,9 rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { ffc18e04: 90 01 00 2c stw r0,44(r1) ffc18e08: 93 c1 00 20 stw r30,32(r1) Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) ffc18e0c: 41 82 00 3c beq- ffc18e48 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc18e10: 3f c0 00 00 lis r30,0 ffc18e14: 80 7e 28 a0 lwz r3,10400(r30) the_region = _Region_Get( id, &location ); switch ( location ) { ffc18e18: 3b e0 00 04 li r31,4 register Region_Control *the_region; if ( !the_info ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc18e1c: 48 00 30 49 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc18e20: 3c 60 00 00 lis r3,0 ffc18e24: 38 63 6f 6c addi r3,r3,28524 ffc18e28: 7f 84 e3 78 mr r4,r28 ffc18e2c: 38 a1 00 08 addi r5,r1,8 ffc18e30: 48 00 51 f9 bl ffc1e028 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc18e34: 80 01 00 08 lwz r0,8(r1) ffc18e38: 2f 80 00 00 cmpwi cr7,r0,0 ffc18e3c: 41 9e 00 30 beq- cr7,ffc18e6c default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc18e40: 80 7e 28 a0 lwz r3,10400(r30) ffc18e44: 48 00 30 a1 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc18e48: 80 01 00 2c lwz r0,44(r1) ffc18e4c: 7f e3 fb 78 mr r3,r31 ffc18e50: 83 81 00 18 lwz r28,24(r1) ffc18e54: 7c 08 03 a6 mtlr r0 ffc18e58: 83 a1 00 1c lwz r29,28(r1) ffc18e5c: 83 c1 00 20 lwz r30,32(r1) ffc18e60: 83 e1 00 24 lwz r31,36(r1) ffc18e64: 38 21 00 28 addi r1,r1,40 ffc18e68: 4e 80 00 20 blr <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); ffc18e6c: 38 63 00 68 addi r3,r3,104 ffc18e70: 7f a4 eb 78 mr r4,r29 ffc18e74: 48 00 44 f5 bl ffc1d368 <_Heap_Get_information> <== ALWAYS TAKEN ffc18e78: 3b e0 00 00 li r31,0 return_status = RTEMS_SUCCESSFUL; break; ffc18e7c: 4b ff ff c4 b ffc18e40 <== ALWAYS TAKEN ffc18e80 : uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { ffc18e80: 94 21 ff c0 stwu r1,-64(r1) ffc18e84: 7c 08 02 a6 mflr r0 ffc18e88: 93 c1 00 38 stw r30,56(r1) Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) ffc18e8c: 7c fe 3b 79 mr. r30,r7 uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { ffc18e90: 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 ) ffc18e94: 3a e0 00 09 li r23,9 uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { ffc18e98: 93 41 00 28 stw r26,40(r1) ffc18e9c: 7c da 33 78 mr r26,r6 ffc18ea0: 93 61 00 2c stw r27,44(r1) ffc18ea4: 7c bb 2b 78 mr r27,r5 ffc18ea8: 93 a1 00 34 stw r29,52(r1) ffc18eac: 7c 7d 1b 78 mr r29,r3 ffc18eb0: 93 e1 00 3c stw r31,60(r1) ffc18eb4: 7c 9f 23 78 mr r31,r4 ffc18eb8: 90 01 00 44 stw r0,68(r1) ffc18ebc: 93 01 00 20 stw r24,32(r1) ffc18ec0: 93 21 00 24 stw r25,36(r1) ffc18ec4: 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 ) ffc18ec8: 41 82 00 18 beq- ffc18ee0 return RTEMS_INVALID_ADDRESS; *segment = NULL; if ( size == 0 ) ffc18ecc: 2f 84 00 00 cmpwi cr7,r4,0 void *the_segment; if ( !segment ) return RTEMS_INVALID_ADDRESS; *segment = NULL; ffc18ed0: 38 00 00 00 li r0,0 ffc18ed4: 90 1e 00 00 stw r0,0(r30) if ( size == 0 ) ffc18ed8: 3a e0 00 08 li r23,8 ffc18edc: 40 9e 00 3c bne- cr7,ffc18f18 break; } _RTEMS_Unlock_allocator(); return return_status; } ffc18ee0: 80 01 00 44 lwz r0,68(r1) ffc18ee4: 7e e3 bb 78 mr r3,r23 ffc18ee8: 83 01 00 20 lwz r24,32(r1) ffc18eec: 7c 08 03 a6 mtlr r0 ffc18ef0: 82 e1 00 1c lwz r23,28(r1) ffc18ef4: 83 21 00 24 lwz r25,36(r1) ffc18ef8: 83 41 00 28 lwz r26,40(r1) ffc18efc: 83 61 00 2c lwz r27,44(r1) ffc18f00: 83 81 00 30 lwz r28,48(r1) ffc18f04: 83 a1 00 34 lwz r29,52(r1) ffc18f08: 83 c1 00 38 lwz r30,56(r1) ffc18f0c: 83 e1 00 3c lwz r31,60(r1) ffc18f10: 38 21 00 40 addi r1,r1,64 ffc18f14: 4e 80 00 20 blr <== ALWAYS TAKEN *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); ffc18f18: 3f 80 00 00 lis r28,0 ffc18f1c: 80 7c 28 a0 lwz r3,10400(r28) _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); _Thread_Enable_dispatch(); return (rtems_status_code) executing->Wait.return_code; ffc18f20: 3a e0 00 04 li r23,4 *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); ffc18f24: 48 00 2f 41 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc18f28: 3c 60 00 00 lis r3,0 executing = _Thread_Executing; ffc18f2c: 3d 20 00 00 lis r9,0 ffc18f30: 38 63 6f 6c addi r3,r3,28524 ffc18f34: 83 09 28 a8 lwz r24,10408(r9) ffc18f38: 7f a4 eb 78 mr r4,r29 ffc18f3c: 38 a1 00 08 addi r5,r1,8 ffc18f40: 48 00 50 e9 bl ffc1e028 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc18f44: 80 01 00 08 lwz r0,8(r1) ffc18f48: 7c 79 1b 78 mr r25,r3 ffc18f4c: 2f 80 00 00 cmpwi cr7,r0,0 ffc18f50: 40 9e 00 14 bne- cr7,ffc18f64 case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) ffc18f54: 80 03 00 5c lwz r0,92(r3) ffc18f58: 3a e0 00 08 li r23,8 ffc18f5c: 7f 9f 00 40 cmplw cr7,r31,r0 ffc18f60: 40 9d 00 44 ble- cr7,ffc18fa4 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc18f64: 80 7c 28 a0 lwz r3,10400(r28) ffc18f68: 48 00 2f 7d bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc18f6c: 80 01 00 44 lwz r0,68(r1) ffc18f70: 7e e3 bb 78 mr r3,r23 ffc18f74: 83 01 00 20 lwz r24,32(r1) ffc18f78: 7c 08 03 a6 mtlr r0 ffc18f7c: 82 e1 00 1c lwz r23,28(r1) ffc18f80: 83 21 00 24 lwz r25,36(r1) ffc18f84: 83 41 00 28 lwz r26,40(r1) ffc18f88: 83 61 00 2c lwz r27,44(r1) ffc18f8c: 83 81 00 30 lwz r28,48(r1) ffc18f90: 83 a1 00 34 lwz r29,52(r1) ffc18f94: 83 c1 00 38 lwz r30,56(r1) ffc18f98: 83 e1 00 3c lwz r31,60(r1) ffc18f9c: 38 21 00 40 addi r1,r1,64 ffc18fa0: 4e 80 00 20 blr <== ALWAYS TAKEN * @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 ); ffc18fa4: 38 63 00 68 addi r3,r3,104 ffc18fa8: 7f e4 fb 78 mr r4,r31 ffc18fac: 38 a0 00 00 li r5,0 ffc18fb0: 38 c0 00 00 li r6,0 ffc18fb4: 48 00 3e a9 bl ffc1ce5c <_Heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { ffc18fb8: 2c 03 00 00 cmpwi r3,0 ffc18fbc: 41 82 00 1c beq- ffc18fd8 the_region->number_of_used_blocks += 1; ffc18fc0: 81 39 00 64 lwz r9,100(r25) *segment = the_segment; ffc18fc4: 3a e0 00 00 li r23,0 ffc18fc8: 90 7e 00 00 stw r3,0(r30) the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { the_region->number_of_used_blocks += 1; ffc18fcc: 38 09 00 01 addi r0,r9,1 ffc18fd0: 90 19 00 64 stw r0,100(r25) ffc18fd4: 4b ff ff 90 b ffc18f64 <== ALWAYS TAKEN *segment = the_segment; return_status = RTEMS_SUCCESSFUL; } else if ( _Options_Is_no_wait( option_set ) ) { ffc18fd8: 73 60 00 01 andi. r0,r27,1 ffc18fdc: 3a e0 00 0d li r23,13 ffc18fe0: 40 82 ff 84 bne+ ffc18f64 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc18fe4: 3d 20 00 00 lis r9,0 ffc18fe8: 81 69 28 68 lwz r11,10344(r9) ffc18fec: 38 0b 00 01 addi r0,r11,1 ffc18ff0: 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(); ffc18ff4: 80 7c 28 a0 lwz r3,10400(r28) ffc18ff8: 48 00 2e ed bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN executing->Wait.queue = &the_region->Wait_queue; ffc18ffc: 38 19 00 10 addi r0,r25,16 <== 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; ffc19000: 39 20 00 01 li r9,1 ffc19004: 90 18 00 44 stw r0,68(r24) 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 ); ffc19008: 3c a0 ff c2 lis r5,-62 ffc1900c: 91 39 00 40 stw r9,64(r25) ffc19010: 7c 03 03 78 mr r3,r0 ffc19014: 7f 44 d3 78 mr r4,r26 */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; executing->Wait.id = id; ffc19018: 93 b8 00 20 stw r29,32(r24) 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 ); ffc1901c: 38 a5 f8 24 addi r5,r5,-2012 _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); executing->Wait.queue = &the_region->Wait_queue; executing->Wait.id = id; executing->Wait.count = size; ffc19020: 93 f8 00 24 stw r31,36(r24) executing->Wait.return_argument = segment; ffc19024: 93 d8 00 28 stw r30,40(r24) _Thread_queue_Enter_critical_section( &the_region->Wait_queue ); _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); ffc19028: 48 00 63 9d bl ffc1f3c4 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc1902c: 48 00 5c d1 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN return (rtems_status_code) executing->Wait.return_code; ffc19030: 82 f8 00 34 lwz r23,52(r24) ffc19034: 4b ff fe ac b ffc18ee0 <== ALWAYS TAKEN ffc19038 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { ffc19038: 94 21 ff d8 stwu r1,-40(r1) ffc1903c: 7c 08 02 a6 mflr r0 ffc19040: 93 a1 00 1c stw r29,28(r1) Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) ffc19044: 7c 9d 23 79 mr. r29,r4 rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { ffc19048: 93 81 00 18 stw r28,24(r1) ffc1904c: 7c 7c 1b 78 mr r28,r3 ffc19050: 93 c1 00 20 stw r30,32(r1) ffc19054: 7c be 2b 78 mr r30,r5 ffc19058: 90 01 00 2c stw r0,44(r1) ffc1905c: 93 e1 00 24 stw r31,36(r1) Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) ffc19060: 41 82 00 94 beq- ffc190f4 return RTEMS_INVALID_ADDRESS; if ( !size ) ffc19064: 2f 85 00 00 cmpwi cr7,r5,0 ffc19068: 41 9e 00 8c beq- cr7,ffc190f4 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc1906c: 3f e0 00 00 lis r31,0 ffc19070: 80 7f 28 a0 lwz r3,10400(r31) ffc19074: 48 00 2d f1 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc19078: 3c 60 00 00 lis r3,0 ffc1907c: 38 63 6f 6c addi r3,r3,28524 ffc19080: 7f 84 e3 78 mr r4,r28 ffc19084: 38 a1 00 08 addi r5,r1,8 ffc19088: 48 00 4f a1 bl ffc1e028 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc1908c: 80 01 00 08 lwz r0,8(r1) ffc19090: 2f 80 00 00 cmpwi cr7,r0,0 ffc19094: 40 9e 00 50 bne- cr7,ffc190e4 case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) ffc19098: 7f c5 f3 78 mr r5,r30 ffc1909c: 38 63 00 68 addi r3,r3,104 ffc190a0: 7f a4 eb 78 mr r4,r29 ffc190a4: 48 00 48 b9 bl ffc1d95c <_Heap_Size_of_alloc_area> <== ALWAYS TAKEN ffc190a8: 3b c0 00 09 li r30,9 ffc190ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc190b0: 41 9e 00 08 beq- cr7,ffc190b8 <== NEVER TAKEN ffc190b4: 3b c0 00 00 li r30,0 case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc190b8: 80 7f 28 a0 lwz r3,10400(r31) ffc190bc: 48 00 2e 29 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc190c0: 80 01 00 2c lwz r0,44(r1) ffc190c4: 7f c3 f3 78 mr r3,r30 ffc190c8: 83 81 00 18 lwz r28,24(r1) ffc190cc: 7c 08 03 a6 mtlr r0 ffc190d0: 83 a1 00 1c lwz r29,28(r1) ffc190d4: 83 c1 00 20 lwz r30,32(r1) ffc190d8: 83 e1 00 24 lwz r31,36(r1) ffc190dc: 38 21 00 28 addi r1,r1,40 ffc190e0: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { ffc190e4: 2f 80 00 01 cmpwi cr7,r0,1 ffc190e8: 3b c0 00 04 li r30,4 ffc190ec: 40 9e ff c8 bne+ cr7,ffc190b4 <== NEVER TAKEN ffc190f0: 4b ff ff c8 b ffc190b8 <== ALWAYS TAKEN break; } _RTEMS_Unlock_allocator(); return return_status; } ffc190f4: 80 01 00 2c lwz r0,44(r1) return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; ffc190f8: 3b c0 00 09 li r30,9 } ffc190fc: 7f c3 f3 78 mr r3,r30 ffc19100: 83 81 00 18 lwz r28,24(r1) ffc19104: 7c 08 03 a6 mtlr r0 ffc19108: 83 a1 00 1c lwz r29,28(r1) ffc1910c: 83 c1 00 20 lwz r30,32(r1) ffc19110: 83 e1 00 24 lwz r31,36(r1) ffc19114: 38 21 00 28 addi r1,r1,40 ffc19118: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1911c : rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { ffc1911c: 94 21 ff f8 stwu r1,-8(r1) ffc19120: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc19124: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { ffc19128: 90 01 00 0c stw r0,12(r1) ffc1912c: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc19130: 3c 60 00 00 lis r3,0 rtems_status_code rtems_region_ident( rtems_name name, rtems_id *id ) { ffc19134: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc19138: 38 63 6f 6c addi r3,r3,28524 ffc1913c: 7c 04 03 78 mr r4,r0 ffc19140: 60 a5 ff ff ori r5,r5,65535 ffc19144: 48 00 51 c5 bl ffc1e308 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc19148: 80 01 00 0c lwz r0,12(r1) ffc1914c: 3d 20 ff c4 lis r9,-60 ffc19150: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc19154: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc19158: 39 29 d9 1c addi r9,r9,-9956 ffc1915c: 7c 69 18 2e lwzx r3,r9,r3 ffc19160: 38 21 00 08 addi r1,r1,8 ffc19164: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19168 : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { ffc19168: 94 21 ff d0 stwu r1,-48(r1) ffc1916c: 7c 08 02 a6 mflr r0 ffc19170: 93 c1 00 28 stw r30,40(r1) uintptr_t osize; rtems_status_code return_status; Heap_Resize_status status; register Region_Control *the_region; if ( !old_size ) ffc19174: 7c de 33 79 mr. r30,r6 rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { ffc19178: 93 61 00 1c stw r27,28(r1) ffc1917c: 7c 9b 23 78 mr r27,r4 ffc19180: 93 81 00 20 stw r28,32(r1) ffc19184: 7c bc 2b 78 mr r28,r5 ffc19188: 93 a1 00 24 stw r29,36(r1) ffc1918c: 7c 7d 1b 78 mr r29,r3 ffc19190: 90 01 00 34 stw r0,52(r1) ffc19194: 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 ) ffc19198: 41 82 00 d0 beq- ffc19268 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); ffc1919c: 3f e0 00 00 lis r31,0 ffc191a0: 80 7f 28 a0 lwz r3,10400(r31) ffc191a4: 48 00 2c c1 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc191a8: 3c 60 00 00 lis r3,0 ffc191ac: 7f a4 eb 78 mr r4,r29 ffc191b0: 38 63 6f 6c addi r3,r3,28524 ffc191b4: 38 a1 00 0c addi r5,r1,12 ffc191b8: 48 00 4e 71 bl ffc1e028 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc191bc: 80 01 00 0c lwz r0,12(r1) ffc191c0: 7c 7d 1b 78 mr r29,r3 ffc191c4: 2f 80 00 00 cmpwi cr7,r0,0 ffc191c8: 41 9e 00 34 beq- cr7,ffc191fc default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc191cc: 80 7f 28 a0 lwz r3,10400(r31) ffc191d0: 48 00 2d 15 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc191d4: 38 60 00 04 li r3,4 return return_status; } ffc191d8: 80 01 00 34 lwz r0,52(r1) ffc191dc: 83 61 00 1c lwz r27,28(r1) ffc191e0: 7c 08 03 a6 mtlr r0 ffc191e4: 83 81 00 20 lwz r28,32(r1) ffc191e8: 83 a1 00 24 lwz r29,36(r1) ffc191ec: 83 c1 00 28 lwz r30,40(r1) ffc191f0: 83 e1 00 2c lwz r31,44(r1) ffc191f4: 38 21 00 30 addi r1,r1,48 ffc191f8: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( ffc191fc: 7f 85 e3 78 mr r5,r28 <== ALWAYS TAKEN ffc19200: 7f 64 db 78 mr r4,r27 ffc19204: 38 63 00 68 addi r3,r3,104 ffc19208: 38 c1 00 10 addi r6,r1,16 ffc1920c: 38 e1 00 08 addi r7,r1,8 ffc19210: 48 00 45 ed bl ffc1d7fc <_Heap_Resize_block> <== ALWAYS TAKEN segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; ffc19214: 80 01 00 10 lwz r0,16(r1) _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) ffc19218: 7c 7c 1b 79 mr. r28,r3 segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; ffc1921c: 90 1e 00 00 stw r0,0(r30) _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) ffc19220: 40 82 00 34 bne- ffc19254 _Region_Process_queue( the_region ); /* unlocks allocator */ ffc19224: 7f a3 eb 78 mr r3,r29 ffc19228: 48 00 a3 25 bl ffc2354c <_Region_Process_queue> <== ALWAYS TAKEN break; } _RTEMS_Unlock_allocator(); return return_status; } ffc1922c: 80 01 00 34 lwz r0,52(r1) *old_size = (uint32_t) osize; _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ ffc19230: 38 60 00 00 li r3,0 break; } _RTEMS_Unlock_allocator(); return return_status; } ffc19234: 83 61 00 1c lwz r27,28(r1) ffc19238: 7c 08 03 a6 mtlr r0 ffc1923c: 83 81 00 20 lwz r28,32(r1) ffc19240: 83 a1 00 24 lwz r29,36(r1) ffc19244: 83 c1 00 28 lwz r30,40(r1) ffc19248: 83 e1 00 2c lwz r31,44(r1) ffc1924c: 38 21 00 30 addi r1,r1,48 ffc19250: 4e 80 00 20 blr <== ALWAYS TAKEN _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator(); ffc19254: 80 7f 28 a0 lwz r3,10400(r31) ffc19258: 48 00 2c 8d bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) ffc1925c: 2f 9c 00 01 cmpwi cr7,r28,1 ffc19260: 38 60 00 0d li r3,13 ffc19264: 41 be ff 74 beq- cr7,ffc191d8 break; } _RTEMS_Unlock_allocator(); return return_status; } ffc19268: 80 01 00 34 lwz r0,52(r1) return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; ffc1926c: 38 60 00 09 li r3,9 } ffc19270: 83 61 00 1c lwz r27,28(r1) ffc19274: 7c 08 03 a6 mtlr r0 ffc19278: 83 81 00 20 lwz r28,32(r1) ffc1927c: 83 a1 00 24 lwz r29,36(r1) ffc19280: 83 c1 00 28 lwz r30,40(r1) ffc19284: 83 e1 00 2c lwz r31,44(r1) ffc19288: 38 21 00 30 addi r1,r1,48 ffc1928c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19290 : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { ffc19290: 94 21 ff d8 stwu r1,-40(r1) ffc19294: 7c 08 02 a6 mflr r0 ffc19298: 93 e1 00 24 stw r31,36(r1) uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); ffc1929c: 3f e0 00 00 lis r31,0 rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { ffc192a0: 93 a1 00 1c stw r29,28(r1) ffc192a4: 7c 7d 1b 78 mr r29,r3 uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); ffc192a8: 80 7f 28 a0 lwz r3,10400(r31) rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { ffc192ac: 90 01 00 2c stw r0,44(r1) ffc192b0: 93 81 00 18 stw r28,24(r1) register Region_Control *the_region; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { ffc192b4: 3b 80 00 04 li r28,4 rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { ffc192b8: 93 c1 00 20 stw r30,32(r1) ffc192bc: 7c 9e 23 78 mr r30,r4 <== ALWAYS TAKEN uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); ffc192c0: 48 00 2b a5 bl ffc1be64 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc192c4: 3c 60 00 00 lis r3,0 ffc192c8: 7f a4 eb 78 mr r4,r29 ffc192cc: 38 63 6f 6c addi r3,r3,28524 ffc192d0: 38 a1 00 08 addi r5,r1,8 ffc192d4: 48 00 4d 55 bl ffc1e028 <_Objects_Get_no_protection> <== ALWAYS TAKEN the_region = _Region_Get( id, &location ); switch ( location ) { ffc192d8: 80 01 00 08 lwz r0,8(r1) ffc192dc: 7c 7d 1b 78 mr r29,r3 ffc192e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc192e4: 40 9e 00 1c bne- cr7,ffc19300 RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment ); ffc192e8: 7f c4 f3 78 mr r4,r30 ffc192ec: 38 63 00 68 addi r3,r3,104 ffc192f0: 48 00 3e 69 bl ffc1d158 <_Heap_Free> <== ALWAYS TAKEN else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; ffc192f4: 3b 80 00 09 li r28,9 #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) ffc192f8: 2f 83 00 00 cmpwi cr7,r3,0 ffc192fc: 40 9e 00 30 bne- cr7,ffc1932c default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); ffc19300: 80 7f 28 a0 lwz r3,10400(r31) ffc19304: 48 00 2b e1 bl ffc1bee4 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; } ffc19308: 80 01 00 2c lwz r0,44(r1) ffc1930c: 7f 83 e3 78 mr r3,r28 ffc19310: 83 a1 00 1c lwz r29,28(r1) ffc19314: 7c 08 03 a6 mtlr r0 ffc19318: 83 81 00 18 lwz r28,24(r1) ffc1931c: 83 c1 00 20 lwz r30,32(r1) ffc19320: 83 e1 00 24 lwz r31,36(r1) ffc19324: 38 21 00 28 addi r1,r1,40 ffc19328: 4e 80 00 20 blr <== ALWAYS TAKEN _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; ffc1932c: 81 3d 00 64 lwz r9,100(r29) _Region_Process_queue(the_region); /* unlocks allocator */ ffc19330: 7f a3 eb 78 mr r3,r29 ffc19334: 3b 80 00 00 li r28,0 _Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1; ffc19338: 38 09 ff ff addi r0,r9,-1 ffc1933c: 90 1d 00 64 stw r0,100(r29) _Region_Process_queue(the_region); /* unlocks allocator */ ffc19340: 48 00 a2 0d bl ffc2354c <_Region_Process_queue> <== ALWAYS TAKEN break; } _RTEMS_Unlock_allocator(); return return_status; } ffc19344: 80 01 00 2c lwz r0,44(r1) ffc19348: 7f 83 e3 78 mr r3,r28 ffc1934c: 83 a1 00 1c lwz r29,28(r1) ffc19350: 7c 08 03 a6 mtlr r0 ffc19354: 83 81 00 18 lwz r28,24(r1) ffc19358: 83 c1 00 20 lwz r30,32(r1) ffc1935c: 83 e1 00 24 lwz r31,36(r1) ffc19360: 38 21 00 28 addi r1,r1,40 ffc19364: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08288 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { ffc08288: 94 21 ff b8 stwu r1,-72(r1) ffc0828c: 7c 08 02 a6 mflr r0 ffc08290: 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 ) ) ffc08294: 7c 7f 1b 79 mr. r31,r3 ffc08298: 38 60 00 03 li r3,3 uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { ffc0829c: 90 01 00 4c stw r0,76(r1) ffc082a0: 93 81 00 38 stw r28,56(r1) <== ALWAYS TAKEN ffc082a4: 93 a1 00 3c stw r29,60(r1) ffc082a8: 93 c1 00 40 stw r30,64(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 ) ) ffc082ac: 41 82 00 28 beq- ffc082d4 return RTEMS_INVALID_NAME; if ( !id ) ffc082b0: 2f 87 00 00 cmpwi cr7,r7,0 <== ALWAYS TAKEN ffc082b4: 38 60 00 09 li r3,9 ffc082b8: 41 9e 00 1c beq- cr7,ffc082d4 return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || ffc082bc: 70 a9 00 c0 andi. r9,r5,192 ffc082c0: 41 82 01 1c beq- ffc083dc _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && ffc082c4: 54 a0 06 b6 rlwinm r0,r5,0,26,27 ffc082c8: 2f 80 00 10 cmpwi cr7,r0,16 ffc082cc: 41 9e 00 28 beq- cr7,ffc082f4 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc082d0: 38 60 00 0b li r3,11 } ffc082d4: 80 01 00 4c lwz r0,76(r1) ffc082d8: 83 81 00 38 lwz r28,56(r1) ffc082dc: 7c 08 03 a6 mtlr r0 ffc082e0: 83 a1 00 3c lwz r29,60(r1) ffc082e4: 83 c1 00 40 lwz r30,64(r1) ffc082e8: 83 e1 00 44 lwz r31,68(r1) ffc082ec: 38 21 00 48 addi r1,r1,72 ffc082f0: 4e 80 00 20 blr <== ALWAYS TAKEN #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && ffc082f4: 70 a0 00 04 andi. r0,r5,4 <== ALWAYS TAKEN ffc082f8: 41 a2 ff d8 beq- ffc082d0 _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && ffc082fc: 2f 89 00 c0 cmpwi cr7,r9,192 ffc08300: 3b 80 00 10 li r28,16 ffc08304: 41 be ff cc beq- cr7,ffc082d0 _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) ffc08308: 2b 84 00 01 cmplwi cr7,r4,1 ffc0830c: 38 60 00 0a li r3,10 ffc08310: 41 9d ff c4 bgt+ cr7,ffc082d4 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08314: 3d 20 00 00 lis r9,0 ffc08318: 81 69 27 70 lwz r11,10096(r9) ffc0831c: 38 0b 00 01 addi r0,r11,1 ffc08320: 90 09 27 70 stw r0,10096(r9) * 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 ); ffc08324: 3f a0 00 00 lis r29,0 ffc08328: 90 81 00 28 stw r4,40(r1) ffc0832c: 3b bd 2b 84 addi r29,r29,11140 ffc08330: 7f a3 eb 78 mr r3,r29 ffc08334: 90 a1 00 2c stw r5,44(r1) <== ALWAYS TAKEN ffc08338: 90 c1 00 30 stw r6,48(r1) ffc0833c: 90 e1 00 34 stw r7,52(r1) ffc08340: 48 00 1b 09 bl ffc09e48 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { ffc08344: 7c 7e 1b 79 mr. r30,r3 ffc08348: 80 81 00 28 lwz r4,40(r1) <== ALWAYS TAKEN ffc0834c: 80 a1 00 2c lwz r5,44(r1) <== ALWAYS TAKEN ffc08350: 80 c1 00 30 lwz r6,48(r1) <== ALWAYS TAKEN ffc08354: 80 e1 00 34 lwz r7,52(r1) ffc08358: 41 82 00 e0 beq- ffc08438 the_semaphore->attribute_set = attribute_set; /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { ffc0835c: 2f 9c 00 00 cmpwi cr7,r28,0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; ffc08360: 90 be 00 10 stw r5,16(r30) /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { ffc08364: 41 9e 00 84 beq- cr7,ffc083e8 } 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 ) ) ffc08368: 70 a0 00 04 andi. r0,r5,4 ffc0836c: 41 82 00 bc beq- ffc08428 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY; ffc08370: 38 00 00 01 li r0,1 ffc08374: 90 01 00 18 stw r0,24(r1) else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { ffc08378: 2f 9c 00 10 cmpwi cr7,r28,16 ffc0837c: 41 9e 00 c8 beq- cr7,ffc08444 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; the_mutex_attr.only_owner_release = true; } } } else /* must be simple binary semaphore */ { the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS; ffc08380: 38 00 00 02 li r0,2 <== ALWAYS TAKEN ffc08384: 90 01 00 10 stw r0,16(r1) <== ALWAYS TAKEN the_mutex_attr.only_owner_release = false; ffc08388: 38 00 00 00 li r0,0 ffc0838c: 98 01 00 14 stb r0,20(r1) } mutex_status = _CORE_mutex_Initialize( ffc08390: 68 85 00 01 xori r5,r4,1 ffc08394: 90 e1 00 34 stw r7,52(r1) ffc08398: 7c a5 00 34 cntlzw r5,r5 ffc0839c: 54 a5 d9 7e rlwinm r5,r5,27,5,31 ffc083a0: 38 7e 00 14 addi r3,r30,20 ffc083a4: 38 81 00 10 addi r4,r1,16 <== ALWAYS TAKEN ffc083a8: 48 00 10 51 bl ffc093f8 <_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 ) { ffc083ac: 80 e1 00 34 lwz r7,52(r1) ffc083b0: 2f 83 00 06 cmpwi cr7,r3,6 ffc083b4: 41 9e 00 c4 beq- cr7,ffc08478 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc083b8: 80 1e 00 08 lwz r0,8(r30) <== ALWAYS TAKEN ffc083bc: 81 7d 00 1c lwz r11,28(r29) <== ALWAYS TAKEN ffc083c0: 54 09 13 ba rlwinm r9,r0,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc083c4: 93 fe 00 0c stw r31,12(r30) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc083c8: 7f cb 49 2e stwx r30,r11,r9 &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; ffc083cc: 90 07 00 00 stw r0,0(r7) the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); ffc083d0: 48 00 2c 45 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc083d4: 38 60 00 00 li r3,0 <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; ffc083d8: 4b ff fe fc b ffc082d4 <== ALWAYS TAKEN if ( _Attributes_Is_inherit_priority( attribute_set ) && _Attributes_Is_priority_ceiling( attribute_set ) ) return RTEMS_NOT_DEFINED; if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) ) ffc083dc: 70 bc 00 30 andi. r28,r5,48 ffc083e0: 40 82 ff 28 bne+ ffc08308 ffc083e4: 4b ff ff 30 b ffc08314 <== ALWAYS TAKEN /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; if ( _Attributes_Is_priority( attribute_set ) ) ffc083e8: 70 a0 00 04 andi. r0,r5,4 */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF; ffc083ec: 38 00 ff ff li r0,-1 ffc083f0: 90 01 00 08 stw r0,8(r1) if ( _Attributes_Is_priority( attribute_set ) ) ffc083f4: 41 82 00 3c beq- ffc08430 the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; ffc083f8: 38 00 00 01 li r0,1 ffc083fc: 90 01 00 0c stw r0,12(r1) 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; ffc08400: 38 00 00 00 li r0,0 the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( ffc08404: 90 e1 00 34 stw r7,52(r1) ffc08408: 7c 85 23 78 mr r5,r4 ffc0840c: 38 7e 00 14 addi r3,r30,20 /* * 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; ffc08410: 90 01 00 1c stw r0,28(r1) _CORE_semaphore_Initialize( ffc08414: 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; ffc08418: 90 01 00 10 stw r0,16(r1) the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; _CORE_semaphore_Initialize( ffc0841c: 48 00 14 25 bl ffc09840 <_CORE_semaphore_Initialize> <== ALWAYS TAKEN ffc08420: 80 e1 00 34 lwz r7,52(r1) ffc08424: 4b ff ff 94 b ffc083b8 <== ALWAYS TAKEN * 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; ffc08428: 90 01 00 18 stw r0,24(r1) ffc0842c: 4b ff ff 4c b ffc08378 <== ALWAYS TAKEN the_semaphore_attr.maximum_count = 0xFFFFFFFF; if ( _Attributes_Is_priority( attribute_set ) ) the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; else the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; ffc08430: 93 81 00 0c stw r28,12(r1) ffc08434: 4b ff ff cc b ffc08400 <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); ffc08438: 48 00 2b dd bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0843c: 38 60 00 05 li r3,5 return RTEMS_TOO_MANY; ffc08440: 4b ff fe 94 b ffc082d4 <== ALWAYS TAKEN 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; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { ffc08444: 81 21 00 18 lwz r9,24(r1) <== ALWAYS TAKEN 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; ffc08448: 38 00 00 00 li r0,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; ffc0844c: 90 c1 00 1c stw r6,28(r1) 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 ) { ffc08450: 2f 89 00 01 cmpwi cr7,r9,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; ffc08454: 98 01 00 14 stb r0,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; ffc08458: 90 01 00 10 stw r0,16(r1) the_mutex_attr.only_owner_release = false; if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { ffc0845c: 40 9e ff 34 bne+ cr7,ffc08390 if ( _Attributes_Is_inherit_priority( attribute_set ) ) { ffc08460: 70 a0 00 40 andi. r0,r5,64 ffc08464: 41 82 00 2c beq- ffc08490 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; ffc08468: 38 00 00 02 li r0,2 the_mutex_attr.only_owner_release = true; ffc0846c: 99 21 00 14 stb r9,20(r1) 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 ) { if ( _Attributes_Is_inherit_priority( attribute_set ) ) { the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; ffc08470: 90 01 00 18 stw r0,24(r1) ffc08474: 4b ff ff 1c b ffc08390 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); ffc08478: 7f a3 eb 78 mr r3,r29 ffc0847c: 7f c4 f3 78 mr r4,r30 ffc08480: 48 00 1d e9 bl ffc0a268 <_Objects_Free> <== ALWAYS TAKEN (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { _Semaphore_Free( the_semaphore ); _Thread_Enable_dispatch(); ffc08484: 48 00 2b 91 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08488: 38 60 00 13 li r3,19 return RTEMS_INVALID_PRIORITY; ffc0848c: 4b ff fe 48 b ffc082d4 <== ALWAYS TAKEN if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { if ( _Attributes_Is_inherit_priority( attribute_set ) ) { the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; the_mutex_attr.only_owner_release = true; } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { ffc08490: 70 a0 00 80 andi. r0,r5,128 ffc08494: 41 a2 fe fc beq- ffc08390 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; ffc08498: 38 00 00 03 li r0,3 the_mutex_attr.only_owner_release = true; ffc0849c: 99 21 00 14 stb r9,20(r1) if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { if ( _Attributes_Is_inherit_priority( attribute_set ) ) { the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; the_mutex_attr.only_owner_release = true; } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) { the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; ffc084a0: 90 01 00 18 stw r0,24(r1) ffc084a4: 4b ff fe ec b ffc08390 <== ALWAYS TAKEN ffc084a8 : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { ffc084a8: 94 21 ff e0 stwu r1,-32(r1) <== ALWAYS TAKEN ffc084ac: 7c 08 02 a6 mflr r0 ffc084b0: 7c 64 1b 78 mr r4,r3 ffc084b4: 93 c1 00 18 stw r30,24(r1) <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) ffc084b8: 3f c0 00 00 lis r30,0 <== ALWAYS TAKEN ffc084bc: 3b de 2b 84 addi r30,r30,11140 ffc084c0: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc084c4: 90 01 00 24 stw r0,36(r1) ffc084c8: 38 a1 00 08 addi r5,r1,8 ffc084cc: 93 e1 00 1c stw r31,28(r1) ffc084d0: 48 00 1f 79 bl ffc0a448 <_Objects_Get> <== ALWAYS TAKEN ffc084d4: 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 ) { ffc084d8: 80 01 00 08 lwz r0,8(r1) ffc084dc: 38 60 00 04 li r3,4 <== ALWAYS TAKEN ffc084e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc084e4: 40 9e 00 2c bne- cr7,ffc08510 */ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE); ffc084e8: 80 1f 00 10 lwz r0,16(r31) case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { ffc084ec: 70 00 00 30 andi. r0,r0,48 <== ALWAYS TAKEN ffc084f0: 41 82 00 80 beq- ffc08570 if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && ffc084f4: 81 3f 00 64 lwz r9,100(r31) ffc084f8: 2f 89 00 00 cmpwi cr7,r9,0 ffc084fc: 40 9e 00 2c bne- cr7,ffc08528 ffc08500: 2f 80 00 20 cmpwi cr7,r0,32 ffc08504: 41 9e 00 24 beq- cr7,ffc08528 !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); ffc08508: 48 00 2b 0d bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0850c: 38 60 00 0c li r3,12 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08510: 80 01 00 24 lwz r0,36(r1) ffc08514: 83 c1 00 18 lwz r30,24(r1) ffc08518: 7c 08 03 a6 mtlr r0 ffc0851c: 83 e1 00 1c lwz r31,28(r1) ffc08520: 38 21 00 20 addi r1,r1,32 ffc08524: 4e 80 00 20 blr <== ALWAYS TAKEN !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( ffc08528: 38 7f 00 14 addi r3,r31,20 ffc0852c: 38 80 00 00 li r4,0 ffc08530: 38 a0 00 04 li r5,4 ffc08534: 48 00 0e a5 bl ffc093d8 <_CORE_mutex_Flush> <== ALWAYS TAKEN SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); ffc08538: 7f c3 f3 78 mr r3,r30 ffc0853c: 7f e4 fb 78 mr r4,r31 ffc08540: 48 00 19 d1 bl ffc09f10 <_Objects_Close> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); ffc08544: 7f c3 f3 78 mr r3,r30 ffc08548: 7f e4 fb 78 mr r4,r31 ffc0854c: 48 00 1d 1d bl ffc0a268 <_Objects_Free> <== ALWAYS TAKEN 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); ffc08550: 48 00 2a c5 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08554: 80 01 00 24 lwz r0,36(r1) 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); ffc08558: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0855c: 83 c1 00 18 lwz r30,24(r1) ffc08560: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc08564: 83 e1 00 1c lwz r31,28(r1) <== ALWAYS TAKEN ffc08568: 38 21 00 20 addi r1,r1,32 ffc0856c: 4e 80 00 20 blr <== ALWAYS TAKEN &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( ffc08570: 38 7f 00 14 addi r3,r31,20 ffc08574: 38 80 00 00 li r4,0 ffc08578: 38 a0 00 02 li r5,2 ffc0857c: 48 00 12 a5 bl ffc09820 <_CORE_semaphore_Flush> <== ALWAYS TAKEN ffc08580: 4b ff ff b8 b ffc08538 <== ALWAYS TAKEN ffc159d8 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { ffc159d8: 94 21 ff e8 stwu r1,-24(r1) ffc159dc: 7c 08 02 a6 mflr r0 ffc159e0: 7c 64 1b 78 mr r4,r3 ffc159e4: 3c 60 00 00 lis r3,0 ffc159e8: 90 01 00 1c stw r0,28(r1) ffc159ec: 38 63 2c 44 addi r3,r3,11332 ffc159f0: 38 a1 00 08 addi r5,r1,8 ffc159f4: 4b ff 6b b9 bl ffc0c5ac <_Objects_Get> <== ALWAYS TAKEN register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { ffc159f8: 81 21 00 08 lwz r9,8(r1) ffc159fc: 38 00 00 04 li r0,4 ffc15a00: 2f 89 00 00 cmpwi cr7,r9,0 ffc15a04: 40 9e 00 28 bne- cr7,ffc15a2c case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { ffc15a08: 80 03 00 10 lwz r0,16(r3) ffc15a0c: 70 09 00 30 andi. r9,r0,48 ffc15a10: 40 82 00 30 bne- ffc15a40 &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( ffc15a14: 38 63 00 14 addi r3,r3,20 ffc15a18: 38 80 00 00 li r4,0 ffc15a1c: 38 a0 00 01 li r5,1 ffc15a20: 4b ff 5f 5d bl ffc0b97c <_CORE_semaphore_Flush> <== ALWAYS TAKEN &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); ffc15a24: 4b ff 78 29 bl ffc0d24c <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc15a28: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc15a2c: 7c 03 03 78 mr r3,r0 ffc15a30: 80 01 00 1c lwz r0,28(r1) ffc15a34: 38 21 00 18 addi r1,r1,24 ffc15a38: 7c 08 03 a6 mtlr r0 ffc15a3c: 4e 80 00 20 blr <== ALWAYS TAKEN the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { _CORE_mutex_Flush( ffc15a40: 38 63 00 14 addi r3,r3,20 ffc15a44: 38 80 00 00 li r4,0 ffc15a48: 38 a0 00 01 li r5,1 ffc15a4c: 4b ff 5a e9 bl ffc0b534 <_CORE_mutex_Flush> <== ALWAYS TAKEN ffc15a50: 4b ff ff d4 b ffc15a24 <== ALWAYS TAKEN ffc19734 : rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc19734: 94 21 ff f8 stwu r1,-8(r1) ffc19738: 7c 08 02 a6 mflr r0 ffc1973c: 7c 69 1b 78 mr r9,r3 ffc19740: 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 ); ffc19744: 3c 60 00 00 lis r3,0 rtems_status_code rtems_semaphore_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc19748: 7c 80 23 78 mr r0,r4 ffc1974c: 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 ); ffc19750: 7d 24 4b 78 mr r4,r9 ffc19754: 7c 05 03 78 mr r5,r0 ffc19758: 38 63 6f ac addi r3,r3,28588 ffc1975c: 48 00 4b ad bl ffc1e308 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN return _Status_Object_name_errors_to_status[ status ]; } ffc19760: 80 01 00 0c lwz r0,12(r1) ffc19764: 3d 20 ff c4 lis r9,-60 ffc19768: 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 ); ffc1976c: 54 63 10 3a rlwinm r3,r3,2,0,29 return _Status_Object_name_errors_to_status[ status ]; } ffc19770: 39 29 d9 1c addi r9,r9,-9956 ffc19774: 7c 69 18 2e lwzx r3,r9,r3 ffc19778: 38 21 00 08 addi r1,r1,8 ffc1977c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08584 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { ffc08584: 94 21 ff d8 stwu r1,-40(r1) ffc08588: 7c 08 02 a6 mflr r0 ffc0858c: 93 e1 00 24 stw r31,36(r1) ffc08590: 7c 7f 1b 78 mr r31,r3 Objects_Id id, Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) ffc08594: 3c 60 00 00 lis r3,0 ffc08598: 93 a1 00 1c stw r29,28(r1) ffc0859c: 38 63 2b 84 addi r3,r3,11140 ffc085a0: 7c 9d 23 78 mr r29,r4 ffc085a4: 93 c1 00 20 stw r30,32(r1) ffc085a8: 7f e4 fb 78 mr r4,r31 ffc085ac: 7c be 2b 78 mr r30,r5 ffc085b0: 38 c1 00 0c addi r6,r1,12 ffc085b4: 90 01 00 2c stw r0,44(r1) ffc085b8: 38 a1 00 08 addi r5,r1,8 ffc085bc: 93 81 00 18 stw r28,24(r1) ffc085c0: 48 00 1e 19 bl ffc0a3d8 <_Objects_Get_isr_disable> <== ALWAYS TAKEN ffc085c4: 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 ) { ffc085c8: 80 01 00 08 lwz r0,8(r1) ffc085cc: 38 60 00 04 li r3,4 ffc085d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc085d4: 40 9e 00 3c bne- cr7,ffc08610 case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { ffc085d8: 80 09 00 10 lwz r0,16(r9) ffc085dc: 70 00 00 30 andi. r0,r0,48 ffc085e0: 41 82 00 50 beq- ffc08630 _CORE_mutex_Seize( ffc085e4: 6b a5 00 01 xori r5,r29,1 ffc085e8: 80 e1 00 0c lwz r7,12(r1) <== ALWAYS TAKEN ffc085ec: 38 69 00 14 addi r3,r9,20 ffc085f0: 7f e4 fb 78 mr r4,r31 ffc085f4: 54 a5 07 fe clrlwi r5,r5,31 ffc085f8: 7f c6 f3 78 mr r6,r30 ffc085fc: 48 00 0f 91 bl ffc0958c <_CORE_mutex_Seize> <== ALWAYS TAKEN id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( ffc08600: 3d 20 00 00 lis r9,0 ffc08604: 81 29 27 b0 lwz r9,10160(r9) <== ALWAYS TAKEN ffc08608: 80 69 00 34 lwz r3,52(r9) <== ALWAYS TAKEN ffc0860c: 48 00 01 89 bl ffc08794 <_Semaphore_Translate_core_mutex_return_code> <== ALWAYS TAKEN break; } return RTEMS_INVALID_ID; } ffc08610: 80 01 00 2c lwz r0,44(r1) ffc08614: 83 81 00 18 lwz r28,24(r1) <== ALWAYS TAKEN ffc08618: 7c 08 03 a6 mtlr r0 ffc0861c: 83 a1 00 1c lwz r29,28(r1) ffc08620: 83 c1 00 20 lwz r30,32(r1) <== ALWAYS TAKEN ffc08624: 83 e1 00 24 lwz r31,36(r1) ffc08628: 38 21 00 28 addi r1,r1,40 ffc0862c: 4e 80 00 20 blr <== ALWAYS TAKEN { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; ffc08630: 3f 80 00 00 lis r28,0 ffc08634: 81 7c 27 b0 lwz r11,10160(r28) executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; ffc08638: 90 0b 00 34 stw r0,52(r11) if ( the_semaphore->count != 0 ) { ffc0863c: 81 49 00 5c lwz r10,92(r9) ffc08640: 2f 8a 00 00 cmpwi cr7,r10,0 ffc08644: 40 9e 00 48 bne- cr7,ffc0868c the_semaphore->count -= 1; _ISR_Enable( *level_p ); return; } if ( !wait ) { ffc08648: 73 a0 00 01 andi. r0,r29,1 ffc0864c: 41 82 00 54 beq- ffc086a0 ffc08650: 80 01 00 0c lwz r0,12(r1) ffc08654: 7c 00 01 24 mtmsr r0 _ISR_Enable( *level_p ); executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; ffc08658: 38 00 00 01 li r0,1 ffc0865c: 90 0b 00 34 stw r0,52(r11) id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, &level ); return _Semaphore_Translate_core_semaphore_return_code( ffc08660: 81 3c 27 b0 lwz r9,10160(r28) ffc08664: 80 69 00 34 lwz r3,52(r9) ffc08668: 48 00 01 41 bl ffc087a8 <_Semaphore_Translate_core_semaphore_return_code> <== ALWAYS TAKEN break; } return RTEMS_INVALID_ID; } ffc0866c: 80 01 00 2c lwz r0,44(r1) ffc08670: 83 81 00 18 lwz r28,24(r1) ffc08674: 7c 08 03 a6 mtlr r0 ffc08678: 83 a1 00 1c lwz r29,28(r1) ffc0867c: 83 c1 00 20 lwz r30,32(r1) <== ALWAYS TAKEN ffc08680: 83 e1 00 24 lwz r31,36(r1) ffc08684: 38 21 00 28 addi r1,r1,40 ffc08688: 4e 80 00 20 blr <== ALWAYS TAKEN /* disabled when you get here */ executing = _Thread_Executing; executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; if ( the_semaphore->count != 0 ) { the_semaphore->count -= 1; ffc0868c: 39 4a ff ff addi r10,r10,-1 ffc08690: 91 49 00 5c stw r10,92(r9) ffc08694: 80 01 00 0c lwz r0,12(r1) ffc08698: 7c 00 01 24 mtmsr r0 ffc0869c: 4b ff ff c4 b ffc08660 <== ALWAYS TAKEN ffc086a0: 3d 40 00 00 lis r10,0 ffc086a4: 81 0a 27 70 lwz r8,10096(r10) ffc086a8: 38 08 00 01 addi r0,r8,1 ffc086ac: 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; ffc086b0: 38 00 00 01 li r0,1 ffc086b4: 90 09 00 44 stw r0,68(r9) <== ALWAYS TAKEN return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; ffc086b8: 38 69 00 14 addi r3,r9,20 executing->Wait.id = id; ffc086bc: 93 eb 00 20 stw r31,32(r11) <== ALWAYS TAKEN return; } _Thread_Disable_dispatch(); _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; ffc086c0: 90 6b 00 44 stw r3,68(r11) ffc086c4: 80 01 00 0c lwz r0,12(r1) ffc086c8: 7c 00 01 24 mtmsr r0 executing->Wait.id = id; _ISR_Enable( *level_p ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); ffc086cc: 3c a0 ff c1 lis r5,-63 ffc086d0: 7f c4 f3 78 mr r4,r30 ffc086d4: 38 a5 ba f0 addi r5,r5,-17680 ffc086d8: 48 00 2f b9 bl ffc0b690 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc086dc: 48 00 29 39 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc086e0: 4b ff ff 80 b ffc08660 <== ALWAYS TAKEN ffc086e4 : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { ffc086e4: 94 21 ff d8 stwu r1,-40(r1) ffc086e8: 7c 08 02 a6 mflr r0 ffc086ec: 93 e1 00 24 stw r31,36(r1) <== ALWAYS TAKEN ffc086f0: 7c 7f 1b 78 mr r31,r3 RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) ffc086f4: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN ffc086f8: 38 63 2b 84 addi r3,r3,11140 ffc086fc: 90 01 00 2c stw r0,44(r1) ffc08700: 7f e4 fb 78 mr r4,r31 ffc08704: 38 a1 00 08 addi r5,r1,8 ffc08708: 48 00 1d 41 bl ffc0a448 <_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 ) { ffc0870c: 80 01 00 08 lwz r0,8(r1) ffc08710: 7c 69 1b 78 mr r9,r3 ffc08714: 2f 80 00 00 cmpwi cr7,r0,0 ffc08718: 38 60 00 04 li r3,4 ffc0871c: 40 9e 00 30 bne- cr7,ffc0874c case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { ffc08720: 80 09 00 10 lwz r0,16(r9) ffc08724: 70 0b 00 30 andi. r11,r0,48 ffc08728: 40 82 00 38 bne- ffc08760 MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); } else { semaphore_status = _CORE_semaphore_Surrender( ffc0872c: 7f e4 fb 78 mr r4,r31 ffc08730: 38 69 00 14 addi r3,r9,20 ffc08734: 38 a0 00 00 li r5,0 ffc08738: 48 00 11 55 bl ffc0988c <_CORE_semaphore_Surrender> <== ALWAYS TAKEN &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); ffc0873c: 90 61 00 18 stw r3,24(r1) ffc08740: 48 00 28 d5 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Semaphore_Translate_core_semaphore_return_code( semaphore_status ); ffc08744: 80 61 00 18 lwz r3,24(r1) ffc08748: 48 00 00 61 bl ffc087a8 <_Semaphore_Translate_core_semaphore_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0874c: 80 01 00 2c lwz r0,44(r1) ffc08750: 83 e1 00 24 lwz r31,36(r1) ffc08754: 38 21 00 28 addi r1,r1,40 ffc08758: 7c 08 03 a6 mtlr r0 ffc0875c: 4e 80 00 20 blr <== ALWAYS TAKEN the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { mutex_status = _CORE_mutex_Surrender( ffc08760: 7f e4 fb 78 mr r4,r31 ffc08764: 38 69 00 14 addi r3,r9,20 ffc08768: 38 a0 00 00 li r5,0 ffc0876c: 48 00 0f 41 bl ffc096ac <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); ffc08770: 90 61 00 18 stw r3,24(r1) ffc08774: 48 00 28 a1 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return _Semaphore_Translate_core_mutex_return_code( mutex_status ); ffc08778: 80 61 00 18 lwz r3,24(r1) <== ALWAYS TAKEN ffc0877c: 48 00 00 19 bl ffc08794 <_Semaphore_Translate_core_mutex_return_code> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08780: 80 01 00 2c lwz r0,44(r1) ffc08784: 83 e1 00 24 lwz r31,36(r1) ffc08788: 38 21 00 28 addi r1,r1,40 ffc0878c: 7c 08 03 a6 mtlr r0 ffc08790: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e30c : */ void rtems_shutdown_executive( uint32_t result ) { ffc1e30c: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc1e310: 94 21 ff f8 stwu r1,-8(r1) if ( !_System_state_Is_shutdown( _System_state_Get() ) ) { ffc1e314: 3d 20 00 00 lis r9,0 */ void rtems_shutdown_executive( uint32_t result ) { ffc1e318: 90 01 00 0c stw r0,12(r1) if ( !_System_state_Is_shutdown( _System_state_Get() ) ) { ffc1e31c: 80 09 27 d4 lwz r0,10196(r9) <== ALWAYS TAKEN ffc1e320: 2f 80 00 04 cmpwi cr7,r0,4 ffc1e324: 41 9e 00 18 beq- cr7,ffc1e33c * 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 ); ffc1e328: 3c 60 00 00 lis r3,0 ffc1e32c: 38 00 00 04 li r0,4 <== ALWAYS TAKEN ffc1e330: 38 63 2c 34 addi r3,r3,11316 <== ALWAYS TAKEN ffc1e334: 90 09 27 d4 stw r0,10196(r9) <== ALWAYS TAKEN ffc1e338: 4b ff fa 29 bl ffc1dd60 <_CPU_Context_restore> <== ALWAYS TAKEN _System_state_Set( SYSTEM_STATE_SHUTDOWN ); _Thread_Stop_multitasking(); } } ffc1e33c: 80 01 00 0c lwz r0,12(r1) ffc1e340: 38 21 00 08 addi r1,r1,8 ffc1e344: 7c 08 03 a6 mtlr r0 ffc1e348: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09d08 : rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { ffc09d08: 7c 08 02 a6 mflr r0 ffc09d0c: 3d 20 00 00 lis r9,0 ffc09d10: 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 ]; ffc09d14: 3d 60 00 00 lis r11,0 ffc09d18: 81 49 27 c4 lwz r10,10180(r9) rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { ffc09d1c: 90 01 00 0c stw r0,12(r1) ffc09d20: 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 ]; ffc09d24: 81 6b 28 04 lwz r11,10244(r11) ffc09d28: 90 09 27 c4 stw r0,10180(r9) ffc09d2c: 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 ) ) { ffc09d30: 2f 83 00 00 cmpwi cr7,r3,0 ffc09d34: 41 9e 00 24 beq- cr7,ffc09d58 asr->mode_set = mode_set; asr->handler = asr_handler; ffc09d38: 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; ffc09d3c: 90 89 00 10 stw r4,16(r9) asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); ffc09d40: 48 00 2d d5 bl ffc0cb14 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc09d44: 80 01 00 0c lwz r0,12(r1) ffc09d48: 38 60 00 00 li r3,0 ffc09d4c: 7c 08 03 a6 mtlr r0 ffc09d50: 38 21 00 08 addi r1,r1,8 ffc09d54: 4e 80 00 20 blr <== 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; ffc09d58: 90 69 00 1c stw r3,28(r9) */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; ffc09d5c: 98 69 00 08 stb r3,8(r9) information->handler = NULL; ffc09d60: 90 69 00 0c stw r3,12(r9) information->mode_set = RTEMS_DEFAULT_MODES; ffc09d64: 90 69 00 10 stw r3,16(r9) information->signals_posted = 0; ffc09d68: 90 69 00 14 stw r3,20(r9) information->signals_pending = 0; ffc09d6c: 90 69 00 18 stw r3,24(r9) asr->mode_set = mode_set; asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); ffc09d70: 48 00 2d a5 bl ffc0cb14 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc09d74: 80 01 00 0c lwz r0,12(r1) ffc09d78: 38 60 00 00 li r3,0 ffc09d7c: 7c 08 03 a6 mtlr r0 ffc09d80: 38 21 00 08 addi r1,r1,8 ffc09d84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc199bc : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { ffc199bc: 94 21 ff e0 stwu r1,-32(r1) ffc199c0: 7c 08 02 a6 mflr r0 ffc199c4: 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 ) ffc199c8: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { ffc199cc: 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 ) ffc199d0: 38 00 00 0a li r0,10 ffc199d4: 40 82 00 1c bne- ffc199f0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc199d8: 7c 03 03 78 mr r3,r0 ffc199dc: 80 01 00 24 lwz r0,36(r1) ffc199e0: 83 e1 00 1c lwz r31,28(r1) ffc199e4: 38 21 00 20 addi r1,r1,32 ffc199e8: 7c 08 03 a6 mtlr r0 ffc199ec: 4e 80 00 20 blr <== ALWAYS TAKEN ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); ffc199f0: 38 81 00 08 addi r4,r1,8 ffc199f4: 48 00 53 75 bl ffc1ed68 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc199f8: 81 21 00 08 lwz r9,8(r1) ffc199fc: 38 00 00 04 li r0,4 ffc19a00: 2f 89 00 00 cmpwi cr7,r9,0 ffc19a04: 40 be ff d4 bne- cr7,ffc199d8 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; ffc19a08: 81 23 01 44 lwz r9,324(r3) asr = &api->Signal; ffc19a0c: 80 09 00 0c lwz r0,12(r9) ffc19a10: 2f 80 00 00 cmpwi cr7,r0,0 ffc19a14: 41 9e 00 a4 beq- cr7,ffc19ab8 if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) { ffc19a18: 88 09 00 08 lbz r0,8(r9) ffc19a1c: 2f 80 00 00 cmpwi cr7,r0,0 ffc19a20: 41 9e 00 58 beq- cr7,ffc19a78 static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc19a24: 7c 00 00 a6 mfmsr r0 ffc19a28: 7d 70 42 a6 mfsprg r11,0 ffc19a2c: 7c 0b 58 78 andc r11,r0,r11 ffc19a30: 7d 60 01 24 mtmsr r11 ) { ISR_Level _level; _ISR_Disable( _level ); *signal_set |= signals; ffc19a34: 81 69 00 14 lwz r11,20(r9) ffc19a38: 7d 7f fb 78 or r31,r11,r31 ffc19a3c: 93 e9 00 14 stw r31,20(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19a40: 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 ) ) ffc19a44: 3d 20 00 00 lis r9,0 ffc19a48: 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; ffc19a4c: 38 00 00 01 li r0,1 ffc19a50: 98 03 00 74 stb r0,116(r3) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) ffc19a54: 2f 89 00 00 cmpwi cr7,r9,0 ffc19a58: 41 9e 00 40 beq- cr7,ffc19a98 ffc19a5c: 3d 20 00 00 lis r9,0 ffc19a60: 81 29 28 a8 lwz r9,10408(r9) ffc19a64: 7f 83 48 00 cmpw cr7,r3,r9 ffc19a68: 40 be 00 30 bne+ cr7,ffc19a98 <== NEVER TAKEN _ISR_Signals_to_thread_executing = true; ffc19a6c: 3d 20 00 00 lis r9,0 ffc19a70: 98 09 28 c4 stb r0,10436(r9) ffc19a74: 48 00 00 24 b ffc19a98 <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc19a78: 7c 00 00 a6 mfmsr r0 ffc19a7c: 7d 70 42 a6 mfsprg r11,0 ffc19a80: 7c 0b 58 78 andc r11,r0,r11 ffc19a84: 7d 60 01 24 mtmsr r11 ffc19a88: 81 69 00 18 lwz r11,24(r9) ffc19a8c: 7d 7f fb 78 or r31,r11,r31 ffc19a90: 93 e9 00 18 stw r31,24(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc19a94: 7c 00 01 24 mtmsr r0 } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); ffc19a98: 48 00 52 65 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc19a9c: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc19aa0: 7c 03 03 78 mr r3,r0 ffc19aa4: 80 01 00 24 lwz r0,36(r1) ffc19aa8: 83 e1 00 1c lwz r31,28(r1) ffc19aac: 38 21 00 20 addi r1,r1,32 ffc19ab0: 7c 08 03 a6 mtlr r0 ffc19ab4: 4e 80 00 20 blr <== ALWAYS TAKEN _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc19ab8: 48 00 52 45 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc19abc: 38 00 00 0b li r0,11 return RTEMS_NOT_DEFINED; ffc19ac0: 4b ff ff 18 b ffc199d8 <== ALWAYS TAKEN ffc0671c : * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) { ffc0671c: 7c 08 02 a6 mflr r0 ffc06720: 94 21 ff f8 stwu r1,-8(r1) ffc06724: 90 01 00 0c stw r0,12(r1) Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */ ffc06728: 80 03 00 08 lwz r0,8(r3) ffc0672c: 2f 80 00 00 cmpwi cr7,r0,0 ffc06730: 41 9e 00 1c beq- cr7,ffc0674c <== NEVER TAKEN return; the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack); *the_pattern = Stack_check_Pattern; ffc06734: 80 63 00 d0 lwz r3,208(r3) ffc06738: 3c 80 00 00 lis r4,0 ffc0673c: 38 84 63 14 addi r4,r4,25364 ffc06740: 38 63 00 08 addi r3,r3,8 ffc06744: 38 a0 00 80 li r5,128 ffc06748: 48 04 b8 89 bl ffc51fd0 <== ALWAYS TAKEN } ffc0674c: 80 01 00 0c lwz r0,12(r1) ffc06750: 38 21 00 08 addi r1,r1,8 ffc06754: 7c 08 03 a6 mtlr r0 ffc06758: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06ce4 : */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) { ffc06ce4: 94 21 ff f0 stwu r1,-16(r1) ffc06ce8: 7c 08 02 a6 mflr r0 ffc06cec: 93 e1 00 0c stw r31,12(r1) ffc06cf0: 7c 9f 23 78 mr r31,r4 ffc06cf4: 90 01 00 14 stw r0,20(r1) Stack_check_Initialize(); ffc06cf8: 4b ff f9 d5 bl ffc066cc <== ALWAYS TAKEN if (the_thread) ffc06cfc: 2f 9f 00 00 cmpwi cr7,r31,0 <== ALWAYS TAKEN ffc06d00: 41 9e 00 14 beq- cr7,ffc06d14 <== NEVER TAKEN Stack_check_Dope_stack(&the_thread->Start.Initial_stack); ffc06d04: 80 bf 00 cc lwz r5,204(r31) ffc06d08: 38 80 00 a5 li r4,165 ffc06d0c: 80 7f 00 d0 lwz r3,208(r31) ffc06d10: 48 04 b4 f9 bl ffc52208 <== ALWAYS TAKEN return true; } ffc06d14: 80 01 00 14 lwz r0,20(r1) ffc06d18: 38 60 00 01 li r3,1 ffc06d1c: 83 e1 00 0c lwz r31,12(r1) ffc06d20: 38 21 00 10 addi r1,r1,16 ffc06d24: 7c 08 03 a6 mtlr r0 ffc06d28: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06b80 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06b80: 94 21 ff e8 stwu r1,-24(r1) ffc06b84: 7c 08 02 a6 mflr r0 ffc06b88: 93 c1 00 10 stw r30,16(r1) Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc06b8c: 3f c0 00 00 lis r30,0 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06b90: 90 01 00 1c stw r0,28(r1) Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; ffc06b94: 81 3e 36 58 lwz r9,13912(r30) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06b98: 93 e1 00 14 stw r31,20(r1) ffc06b9c: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06ba0: 80 69 00 d0 lwz r3,208(r9) /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { ffc06ba4: 93 a1 00 0c stw r29,12(r1) ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06ba8: 3b a0 00 00 li r29,0 ffc06bac: 7f 9f 18 40 cmplw cr7,r31,r3 ffc06bb0: 41 9c 00 18 blt- cr7,ffc06bc8 <== NEVER TAKEN } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) ffc06bb4: 83 a9 00 cc lwz r29,204(r9) ffc06bb8: 7f a3 ea 14 add r29,r3,r29 ffc06bbc: 7f bf e8 10 subfc r29,r31,r29 ffc06bc0: 3b a0 00 00 li r29,0 ffc06bc4: 7f bd e9 14 adde r29,r29,r29 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { ffc06bc8: 3d 20 00 00 lis r9,0 ffc06bcc: 80 09 37 68 lwz r0,14184(r9) ffc06bd0: 38 80 00 01 li r4,1 ffc06bd4: 2f 80 00 00 cmpwi cr7,r0,0 ffc06bd8: 41 9e 00 20 beq- cr7,ffc06bf8 <== NEVER TAKEN pattern_ok = (!memcmp( ffc06bdc: 3c 80 00 00 lis r4,0 ffc06be0: 38 84 63 14 addi r4,r4,25364 ffc06be4: 38 63 00 08 addi r3,r3,8 ffc06be8: 38 a0 00 80 li r5,128 ffc06bec: 48 04 b3 41 bl ffc51f2c <== ALWAYS TAKEN ffc06bf0: 7c 64 00 34 cntlzw r4,r3 ffc06bf4: 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 ) ffc06bf8: 2f 9d 00 00 cmpwi cr7,r29,0 ffc06bfc: 41 9e 00 10 beq- cr7,ffc06c0c <== NEVER TAKEN ffc06c00: 2f 84 00 00 cmpwi cr7,r4,0 ffc06c04: 38 60 00 00 li r3,0 ffc06c08: 40 9e 00 10 bne- cr7,ffc06c18 <== ALWAYS TAKEN return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); ffc06c0c: 80 7e 36 58 lwz r3,13912(r30) <== NOT EXECUTED ffc06c10: 4b ff fe 91 bl ffc06aa0 <== NOT EXECUTED ffc06c14: 38 60 00 01 li r3,1 <== NOT EXECUTED return true; } ffc06c18: 39 7f 00 18 addi r11,r31,24 ffc06c1c: 80 0b 00 04 lwz r0,4(r11) ffc06c20: 83 ab ff f4 lwz r29,-12(r11) ffc06c24: 7c 08 03 a6 mtlr r0 ffc06c28: 83 cb ff f8 lwz r30,-8(r11) ffc06c2c: 83 eb ff fc lwz r31,-4(r11) ffc06c30: 7d 61 5b 78 mr r1,r11 ffc06c34: 4e 80 00 20 blr <== ALWAYS TAKEN ffc06a90 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); ffc06a90: 3c 80 ff c1 lis r4,-63 <== NOT EXECUTED ffc06a94: 38 84 a5 50 addi r4,r4,-23216 <== NOT EXECUTED ffc06a98: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc06a9c: 4b ff ff 5c b ffc069f8 <== NOT EXECUTED ffc069f8 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc069f8: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc069fc: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc06a00: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED print_context = context; ffc06a04: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc06a08: 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 ) { ffc06a0c: 93 c1 00 10 stw r30,16(r1) <== NOT EXECUTED ffc06a10: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06a14: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06a18: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc06a1c: 90 01 00 1c stw r0,28(r1) <== NOT EXECUTED print_context = context; print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06a20: 38 84 b1 bc addi r4,r4,-20036 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { ffc06a24: 93 a1 00 0c stw r29,12(r1) <== NOT EXECUTED ffc06a28: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED print_context = context; print_handler = print; ffc06a2c: 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; ffc06a30: 90 7f 00 08 stw r3,8(r31) <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); ffc06a34: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06a38: 4e 80 04 21 bctrl <== NOT EXECUTED (*print)( context, ffc06a3c: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc06a40: 7f c9 03 a6 mtctr r30 <== NOT EXECUTED ffc06a44: 38 84 b1 d4 addi r4,r4,-20012 <== NOT EXECUTED ffc06a48: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc06a4c: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc06a50: 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 ); ffc06a54: 3c 60 ff c0 lis r3,-64 <== NOT EXECUTED ffc06a58: 38 63 67 ac addi r3,r3,26540 <== NOT EXECUTED ffc06a5c: 48 00 94 71 bl ffc0fecc <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); ffc06a60: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc06a64: 4b ff fd 49 bl ffc067ac <== NOT EXECUTED print_context = NULL; ffc06a68: 38 00 00 00 li r0,0 <== NOT EXECUTED print_handler = NULL; ffc06a6c: 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; ffc06a70: 90 1f 00 08 stw r0,8(r31) <== NOT EXECUTED print_handler = NULL; } ffc06a74: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc06a78: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc06a7c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06a80: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc06a84: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc06a88: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc06a8c: 4e 80 00 20 blr <== NOT EXECUTED ffc06c38 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06c38: 94 21 ff f0 stwu r1,-16(r1) ffc06c3c: 7c 08 02 a6 mflr r0 ffc06c40: 90 01 00 14 stw r0,20(r1) Stack_Control *the_stack = &running->Start.Initial_stack; void *pattern; bool sp_ok; bool pattern_ok = true; pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern; ffc06c44: 81 23 00 d0 lwz r9,208(r3) */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06c48: 93 e1 00 0c stw r31,12(r1) ffc06c4c: 7c 3f 0b 78 mr r31,r1 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06c50: 7f 9f 48 40 cmplw cr7,r31,r9 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { ffc06c54: 93 c1 00 08 stw r30,8(r1) ffc06c58: 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; ffc06c5c: 38 69 00 08 addi r3,r9,8 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { ffc06c60: 41 9c 00 14 blt- cr7,ffc06c74 <== NEVER TAKEN void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { Stack_Control *the_stack = &running->Start.Initial_stack; ffc06c64: 80 1e 00 cc lwz r0,204(r30) ffc06c68: 7d 29 02 14 add r9,r9,r0 ffc06c6c: 7f 9f 48 40 cmplw cr7,r31,r9 ffc06c70: 40 9d 00 3c ble- cr7,ffc06cac <== ALWAYS TAKEN /* * 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, ffc06c74: 3c 80 00 00 lis r4,0 <== NOT EXECUTED ffc06c78: 38 84 63 14 addi r4,r4,25364 <== NOT EXECUTED ffc06c7c: 38 a0 00 80 li r5,128 <== NOT EXECUTED ffc06c80: 48 04 b2 ad bl ffc51f2c <== NOT EXECUTED ffc06c84: 7c 64 00 34 cntlzw r4,r3 <== NOT EXECUTED ffc06c88: 54 84 d9 7e rlwinm r4,r4,27,5,31 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); } } ffc06c8c: 39 7f 00 10 addi r11,r31,16 ffc06c90: 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 ); ffc06c94: 7f c3 f3 78 mr r3,r30 } } ffc06c98: 83 eb ff fc lwz r31,-4(r11) ffc06c9c: 7c 08 03 a6 mtlr r0 ffc06ca0: 83 cb ff f8 lwz r30,-8(r11) ffc06ca4: 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 ); ffc06ca8: 4b ff fd f8 b ffc06aa0 <== ALWAYS TAKEN /* * 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, ffc06cac: 3c 80 00 00 lis r4,0 ffc06cb0: 38 84 63 14 addi r4,r4,25364 ffc06cb4: 38 a0 00 80 li r5,128 ffc06cb8: 48 04 b2 75 bl ffc51f2c <== ALWAYS TAKEN (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { ffc06cbc: 38 80 00 00 li r4,0 ffc06cc0: 2f 83 00 00 cmpwi cr7,r3,0 ffc06cc4: 40 9e ff c8 bne+ cr7,ffc06c8c Stack_check_report_blown_task( running, pattern_ok ); } } ffc06cc8: 39 7f 00 10 addi r11,r31,16 ffc06ccc: 80 0b 00 04 lwz r0,4(r11) ffc06cd0: 83 cb ff f8 lwz r30,-8(r11) ffc06cd4: 7c 08 03 a6 mtlr r0 ffc06cd8: 83 eb ff fc lwz r31,-4(r11) ffc06cdc: 7d 61 5b 78 mr r1,r11 ffc06ce0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0aa2c : const char * rtems_status_text( rtems_status_code status ) { ffc0aa2c: 94 21 ff f8 stwu r1,-8(r1) ffc0aa30: 7c 08 02 a6 mflr r0 ffc0aa34: 7c 64 1b 78 mr r4,r3 return rtems_assoc_name_by_local(rtems_status_assoc, status); ffc0aa38: 3c 60 ff c3 lis r3,-61 const char * rtems_status_text( rtems_status_code status ) { ffc0aa3c: 90 01 00 0c stw r0,12(r1) return rtems_assoc_name_by_local(rtems_status_assoc, status); ffc0aa40: 38 63 bd 64 addi r3,r3,-17052 ffc0aa44: 48 00 bc 49 bl ffc1668c <== ALWAYS TAKEN } ffc0aa48: 80 01 00 0c lwz r0,12(r1) ffc0aa4c: 38 21 00 08 addi r1,r1,8 ffc0aa50: 7c 08 03 a6 mtlr r0 ffc0aa54: 4e 80 00 20 blr <== ALWAYS TAKEN ffc101fc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc101fc: 94 21 ff d0 stwu r1,-48(r1) ffc10200: 7c 08 02 a6 mflr r0 ffc10204: 93 c1 00 28 stw r30,40(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10208: 7c 9e 23 79 mr. r30,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc1020c: 93 a1 00 24 stw r29,36(r1) ffc10210: 7c bd 2b 78 mr r29,r5 ffc10214: 93 e1 00 2c stw r31,44(r1) ffc10218: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc1021c: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc10220: 90 01 00 34 stw r0,52(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10224: 41 82 00 5c beq- ffc10280 return RTEMS_INVALID_ADDRESS; errno = 0; ffc10228: 48 00 40 a5 bl ffc142cc <__errno> <== ALWAYS TAKEN *n = 0; ffc1022c: 3d 20 ff c2 lis r9,-62 ffc10230: c8 09 13 f8 lfd f0,5112(r9) char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc10234: 38 00 00 00 li r0,0 ffc10238: 90 03 00 00 stw r0,0(r3) *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc1023c: 38 81 00 08 addi r4,r1,8 ffc10240: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc10244: d8 1e 00 00 stfd f0,0(r30) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc10248: 48 00 6d b9 bl ffc17000 <== 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 ) ffc1024c: 2f 9d 00 00 cmpwi cr7,r29,0 ffc10250: 41 9e 00 6c beq- cr7,ffc102bc *endptr = end; ffc10254: 80 01 00 08 lwz r0,8(r1) ffc10258: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc1025c: 7f 80 f8 00 cmpw cr7,r0,r31 ffc10260: 38 60 00 0b li r3,11 ffc10264: 41 9e 00 1c beq- cr7,ffc10280 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc10268: 3d 20 ff c2 lis r9,-62 ffc1026c: c8 09 38 28 lfd f0,14376(r9) ffc10270: ff 81 00 00 fcmpu cr7,f1,f0 ffc10274: 41 9d 00 28 bgt- cr7,ffc1029c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc10278: d8 3e 00 00 stfd f1,0(r30) ffc1027c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc10280: 80 01 00 34 lwz r0,52(r1) ffc10284: 83 a1 00 24 lwz r29,36(r1) ffc10288: 7c 08 03 a6 mtlr r0 ffc1028c: 83 c1 00 28 lwz r30,40(r1) ffc10290: 83 e1 00 2c lwz r31,44(r1) ffc10294: 38 21 00 30 addi r1,r1,48 ffc10298: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc1029c: d8 21 00 18 stfd f1,24(r1) ffc102a0: 48 00 40 2d bl ffc142cc <__errno> <== ALWAYS TAKEN ffc102a4: 80 03 00 00 lwz r0,0(r3) ffc102a8: 38 60 00 0a li r3,10 ffc102ac: c8 21 00 18 lfd f1,24(r1) ffc102b0: 2f 80 00 22 cmpwi cr7,r0,34 ffc102b4: 40 9e ff c4 bne+ cr7,ffc10278 <== NEVER TAKEN ffc102b8: 4b ff ff c8 b ffc10280 <== ALWAYS TAKEN ffc102bc: 80 01 00 08 lwz r0,8(r1) ffc102c0: 4b ff ff 9c b ffc1025c <== ALWAYS TAKEN ffc102c4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc102c4: 94 21 ff d0 stwu r1,-48(r1) ffc102c8: 7c 08 02 a6 mflr r0 ffc102cc: 93 c1 00 28 stw r30,40(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc102d0: 7c 9e 23 79 mr. r30,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc102d4: 93 a1 00 24 stw r29,36(r1) ffc102d8: 7c bd 2b 78 mr r29,r5 ffc102dc: 93 e1 00 2c stw r31,44(r1) ffc102e0: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc102e4: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc102e8: 90 01 00 34 stw r0,52(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc102ec: 41 82 00 58 beq- ffc10344 return RTEMS_INVALID_ADDRESS; errno = 0; ffc102f0: 48 00 3f dd bl ffc142cc <__errno> <== ALWAYS TAKEN ffc102f4: 38 00 00 00 li r0,0 ffc102f8: 90 03 00 00 stw r0,0(r3) *n = 0; ffc102fc: 38 00 00 00 li r0,0 #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc10300: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc10304: 90 1e 00 00 stw r0,0(r30) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); ffc10308: 38 81 00 08 addi r4,r1,8 ffc1030c: 48 00 6c 8d bl ffc16f98 <== 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 ) ffc10310: 2f 9d 00 00 cmpwi cr7,r29,0 ffc10314: 41 9e 00 6c beq- cr7,ffc10380 *endptr = end; ffc10318: 80 01 00 08 lwz r0,8(r1) ffc1031c: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc10320: 7f 80 f8 00 cmpw cr7,r0,r31 ffc10324: 38 60 00 0b li r3,11 ffc10328: 41 9e 00 1c beq- cr7,ffc10344 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc1032c: 3d 20 ff c2 lis r9,-62 ffc10330: c0 09 38 30 lfs f0,14384(r9) ffc10334: ff 81 00 00 fcmpu cr7,f1,f0 ffc10338: 41 9d 00 28 bgt- cr7,ffc10360 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc1033c: d0 3e 00 00 stfs f1,0(r30) ffc10340: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc10344: 80 01 00 34 lwz r0,52(r1) ffc10348: 83 a1 00 24 lwz r29,36(r1) ffc1034c: 7c 08 03 a6 mtlr r0 ffc10350: 83 c1 00 28 lwz r30,40(r1) ffc10354: 83 e1 00 2c lwz r31,44(r1) ffc10358: 38 21 00 30 addi r1,r1,48 ffc1035c: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc10360: d8 21 00 18 stfd f1,24(r1) ffc10364: 48 00 3f 69 bl ffc142cc <__errno> <== ALWAYS TAKEN ffc10368: 80 03 00 00 lwz r0,0(r3) ffc1036c: 38 60 00 0a li r3,10 ffc10370: c8 21 00 18 lfd f1,24(r1) ffc10374: 2f 80 00 22 cmpwi cr7,r0,34 ffc10378: 40 9e ff c4 bne+ cr7,ffc1033c <== NEVER TAKEN ffc1037c: 4b ff ff c8 b ffc10344 <== ALWAYS TAKEN ffc10380: 80 01 00 08 lwz r0,8(r1) ffc10384: 4b ff ff 9c b ffc10320 <== ALWAYS TAKEN ffc24004 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc24004: 94 21 ff d8 stwu r1,-40(r1) ffc24008: 7c 08 02 a6 mflr r0 ffc2400c: 93 c1 00 20 stw r30,32(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc24010: 7c 9e 23 79 mr. r30,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc24014: 93 81 00 18 stw r28,24(r1) ffc24018: 7c dc 33 78 mr r28,r6 ffc2401c: 93 a1 00 1c stw r29,28(r1) ffc24020: 7c bd 2b 78 mr r29,r5 ffc24024: 93 e1 00 24 stw r31,36(r1) ffc24028: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc2402c: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc24030: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc24034: 41 82 00 58 beq- ffc2408c return RTEMS_INVALID_ADDRESS; errno = 0; ffc24038: 48 02 a4 39 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc2403c: 38 00 00 00 li r0,0 ffc24040: 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 ); ffc24044: 7f 85 e3 78 mr r5,r28 ffc24048: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc2404c: 90 1e 00 00 stw r0,0(r30) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc24050: 38 81 00 08 addi r4,r1,8 ffc24054: 48 03 32 2d bl ffc57280 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc24058: 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 ); ffc2405c: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc24060: 41 9e 00 64 beq- cr7,ffc240c4 *endptr = end; ffc24064: 80 01 00 08 lwz r0,8(r1) ffc24068: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc2406c: 7f 80 f8 00 cmpw cr7,r0,r31 ffc24070: 38 60 00 0b li r3,11 ffc24074: 41 9e 00 18 beq- cr7,ffc2408c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc24078: 6f 80 80 00 xoris r0,r28,32768 ffc2407c: 2f 80 ff ff cmpwi cr7,r0,-1 ffc24080: 41 9e 00 2c beq- cr7,ffc240ac /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc24084: 93 9e 00 00 stw r28,0(r30) ffc24088: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc2408c: 80 01 00 2c lwz r0,44(r1) ffc24090: 83 81 00 18 lwz r28,24(r1) ffc24094: 7c 08 03 a6 mtlr r0 ffc24098: 83 a1 00 1c lwz r29,28(r1) ffc2409c: 83 c1 00 20 lwz r30,32(r1) ffc240a0: 83 e1 00 24 lwz r31,36(r1) ffc240a4: 38 21 00 28 addi r1,r1,40 ffc240a8: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc240ac: 48 02 a3 c5 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc240b0: 80 03 00 00 lwz r0,0(r3) ffc240b4: 38 60 00 0a li r3,10 ffc240b8: 2f 80 00 22 cmpwi cr7,r0,34 ffc240bc: 40 9e ff c8 bne+ cr7,ffc24084 <== NEVER TAKEN ffc240c0: 4b ff ff cc b ffc2408c <== ALWAYS TAKEN ffc240c4: 80 01 00 08 lwz r0,8(r1) ffc240c8: 4b ff ff a4 b ffc2406c <== ALWAYS TAKEN ffc10550 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc10550: 94 21 ff d8 stwu r1,-40(r1) ffc10554: 7c 08 02 a6 mflr r0 ffc10558: 93 a1 00 1c stw r29,28(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc1055c: 7c 9d 23 79 mr. r29,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc10560: 93 81 00 18 stw r28,24(r1) ffc10564: 7c dc 33 78 mr r28,r6 ffc10568: 93 c1 00 20 stw r30,32(r1) ffc1056c: 7c be 2b 78 mr r30,r5 ffc10570: 93 e1 00 24 stw r31,36(r1) ffc10574: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10578: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc1057c: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10580: 41 82 00 64 beq- ffc105e4 return RTEMS_INVALID_ADDRESS; errno = 0; ffc10584: 48 00 3d 49 bl ffc142cc <__errno> <== ALWAYS TAKEN ffc10588: 38 00 00 00 li r0,0 ffc1058c: 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 ); ffc10590: 7f 85 e3 78 mr r5,r28 ffc10594: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc10598: 90 1d 00 00 stw r0,0(r29) #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 ); ffc1059c: 38 81 00 08 addi r4,r1,8 ffc105a0: 48 00 6c 79 bl ffc17218 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc105a4: 2f 9e 00 00 cmpwi cr7,r30,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 ); ffc105a8: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc105ac: 41 9e 00 70 beq- cr7,ffc1061c *endptr = end; ffc105b0: 80 01 00 08 lwz r0,8(r1) ffc105b4: 90 1e 00 00 stw r0,0(r30) /* nothing was converted */ if ( end == s ) ffc105b8: 7f 80 f8 00 cmpw cr7,r0,r31 ffc105bc: 38 60 00 0b li r3,11 ffc105c0: 41 9e 00 24 beq- cr7,ffc105e4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc105c4: 6f 80 80 00 xoris r0,r28,32768 ffc105c8: 2f 80 ff ff cmpwi cr7,r0,-1 ffc105cc: 41 9e 00 38 beq- cr7,ffc10604 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc105d0: 3c 00 80 00 lis r0,-32768 ffc105d4: 7f 9c 00 00 cmpw cr7,r28,r0 ffc105d8: 41 9e 00 2c beq- cr7,ffc10604 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc105dc: 93 9d 00 00 stw r28,0(r29) ffc105e0: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc105e4: 80 01 00 2c lwz r0,44(r1) ffc105e8: 83 81 00 18 lwz r28,24(r1) ffc105ec: 7c 08 03 a6 mtlr r0 ffc105f0: 83 a1 00 1c lwz r29,28(r1) ffc105f4: 83 c1 00 20 lwz r30,32(r1) ffc105f8: 83 e1 00 24 lwz r31,36(r1) ffc105fc: 38 21 00 28 addi r1,r1,40 ffc10600: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc10604: 48 00 3c c9 bl ffc142cc <__errno> <== ALWAYS TAKEN ffc10608: 80 03 00 00 lwz r0,0(r3) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; ffc1060c: 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)) ffc10610: 2f 80 00 22 cmpwi cr7,r0,34 ffc10614: 40 9e ff c8 bne+ cr7,ffc105dc <== NEVER TAKEN ffc10618: 4b ff ff cc b ffc105e4 <== ALWAYS TAKEN ffc1061c: 80 01 00 08 lwz r0,8(r1) ffc10620: 4b ff ff 98 b ffc105b8 <== ALWAYS TAKEN ffc10450 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc10450: 94 21 ff d0 stwu r1,-48(r1) ffc10454: 7c 08 02 a6 mflr r0 ffc10458: 93 e1 00 2c stw r31,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc1045c: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc10460: 93 81 00 20 stw r28,32(r1) ffc10464: 7c dc 33 78 mr r28,r6 ffc10468: 93 a1 00 24 stw r29,36(r1) ffc1046c: 7c bd 2b 78 mr r29,r5 ffc10470: 93 c1 00 28 stw r30,40(r1) ffc10474: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10478: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc1047c: 90 01 00 34 stw r0,52(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10480: 41 82 00 74 beq- ffc104f4 return RTEMS_INVALID_ADDRESS; errno = 0; ffc10484: 48 00 3e 49 bl ffc142cc <__errno> <== ALWAYS TAKEN ffc10488: 38 00 00 00 li r0,0 *n = 0; ffc1048c: 39 20 00 00 li r9,0 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc10490: 90 03 00 00 stw r0,0(r3) *n = 0; ffc10494: 39 40 00 00 li r10,0 ffc10498: 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 ); ffc1049c: 7f 85 e3 78 mr r5,r28 ffc104a0: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc104a4: 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 ); ffc104a8: 38 81 00 08 addi r4,r1,8 ffc104ac: 48 00 6d 8d bl ffc17238 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc104b0: 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 ); ffc104b4: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc104b8: 41 9e 00 90 beq- cr7,ffc10548 *endptr = end; ffc104bc: 80 01 00 08 lwz r0,8(r1) ffc104c0: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc104c4: 7f 80 f0 00 cmpw cr7,r0,r30 ffc104c8: 38 60 00 0b li r3,11 ffc104cc: 41 9e 00 28 beq- cr7,ffc104f4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc104d0: 6f 80 80 00 xoris r0,r28,32768 ffc104d4: 2f 80 ff ff cmpwi cr7,r0,-1 ffc104d8: 41 9e 00 3c beq- cr7,ffc10514 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc104dc: 3c 00 80 00 lis r0,-32768 ffc104e0: 7f 9c 00 00 cmpw cr7,r28,r0 ffc104e4: 41 9e 00 58 beq- cr7,ffc1053c return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc104e8: 90 9f 00 04 stw r4,4(r31) ffc104ec: 38 60 00 00 li r3,0 ffc104f0: 93 9f 00 00 stw r28,0(r31) return RTEMS_SUCCESSFUL; } ffc104f4: 80 01 00 34 lwz r0,52(r1) ffc104f8: 83 81 00 20 lwz r28,32(r1) ffc104fc: 7c 08 03 a6 mtlr r0 ffc10500: 83 a1 00 24 lwz r29,36(r1) ffc10504: 83 c1 00 28 lwz r30,40(r1) ffc10508: 83 e1 00 2c lwz r31,44(r1) ffc1050c: 38 21 00 30 addi r1,r1,48 ffc10510: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc10514: 2f 84 ff ff cmpwi cr7,r4,-1 ffc10518: 40 9e ff c4 bne+ cr7,ffc104dc <== NEVER TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) ffc1051c: 90 81 00 18 stw r4,24(r1) ffc10520: 48 00 3d ad bl ffc142cc <__errno> <== ALWAYS TAKEN ffc10524: 80 03 00 00 lwz r0,0(r3) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; ffc10528: 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)) ffc1052c: 80 81 00 18 lwz r4,24(r1) ffc10530: 2f 80 00 22 cmpwi cr7,r0,34 ffc10534: 40 9e ff b4 bne+ cr7,ffc104e8 <== NEVER TAKEN ffc10538: 4b ff ff bc b ffc104f4 <== ALWAYS TAKEN ffc1053c: 2f 84 00 00 cmpwi cr7,r4,0 ffc10540: 40 be ff a8 bne- cr7,ffc104e8 <== NEVER TAKEN ffc10544: 4b ff ff d8 b ffc1051c <== ALWAYS TAKEN ffc10548: 80 01 00 08 lwz r0,8(r1) ffc1054c: 4b ff ff 78 b ffc104c4 <== ALWAYS TAKEN ffc240cc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc240cc: 94 21 ff d8 stwu r1,-40(r1) ffc240d0: 7c 08 02 a6 mflr r0 ffc240d4: 93 c1 00 20 stw r30,32(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc240d8: 7c 9e 23 79 mr. r30,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc240dc: 93 a1 00 1c stw r29,28(r1) ffc240e0: 7c bd 2b 78 mr r29,r5 ffc240e4: 93 e1 00 24 stw r31,36(r1) ffc240e8: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc240ec: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc240f0: 90 01 00 2c stw r0,44(r1) ffc240f4: 93 81 00 18 stw r28,24(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc240f8: 41 82 00 54 beq- ffc2414c return RTEMS_INVALID_ADDRESS; errno = 0; ffc240fc: 48 02 a3 75 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc24100: 38 00 00 00 li r0,0 ffc24104: 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 ); ffc24108: 38 81 00 08 addi r4,r1,8 ffc2410c: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc24110: 90 1e 00 00 stw r0,0(r30) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); ffc24114: 38 a0 00 10 li r5,16 ffc24118: 48 03 36 b5 bl ffc577cc <== 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 ) ffc2411c: 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 ); ffc24120: 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 ) ffc24124: 41 9e 00 60 beq- cr7,ffc24184 *endptr = end; ffc24128: 80 01 00 08 lwz r0,8(r1) ffc2412c: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc24130: 7f 80 f8 00 cmpw cr7,r0,r31 ffc24134: 38 60 00 0b li r3,11 ffc24138: 41 9e 00 14 beq- cr7,ffc2414c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc2413c: 2f 9c ff ff cmpwi cr7,r28,-1 ffc24140: 41 9e 00 2c beq- cr7,ffc2416c <== NEVER TAKEN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc24144: 93 9e 00 00 stw r28,0(r30) ffc24148: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc2414c: 80 01 00 2c lwz r0,44(r1) ffc24150: 83 81 00 18 lwz r28,24(r1) ffc24154: 7c 08 03 a6 mtlr r0 ffc24158: 83 a1 00 1c lwz r29,28(r1) ffc2415c: 83 c1 00 20 lwz r30,32(r1) ffc24160: 83 e1 00 24 lwz r31,36(r1) ffc24164: 38 21 00 28 addi r1,r1,40 ffc24168: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc2416c: 48 02 a3 05 bl ffc4e470 <__errno> <== NOT EXECUTED ffc24170: 80 03 00 00 lwz r0,0(r3) <== NOT EXECUTED ffc24174: 38 60 00 0a li r3,10 <== NOT EXECUTED ffc24178: 2f 80 00 22 cmpwi cr7,r0,34 <== NOT EXECUTED ffc2417c: 40 9e ff c8 bne+ cr7,ffc24144 <== NOT EXECUTED ffc24180: 4b ff ff cc b ffc2414c <== NOT EXECUTED ffc24184: 80 01 00 08 lwz r0,8(r1) ffc24188: 4b ff ff a8 b ffc24130 <== ALWAYS TAKEN ffc2418c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc2418c: 94 21 ff d8 stwu r1,-40(r1) ffc24190: 7c 08 02 a6 mflr r0 ffc24194: 93 c1 00 20 stw r30,32(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc24198: 7c 9e 23 79 mr. r30,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc2419c: 93 81 00 18 stw r28,24(r1) ffc241a0: 7c dc 33 78 mr r28,r6 ffc241a4: 93 a1 00 1c stw r29,28(r1) ffc241a8: 7c bd 2b 78 mr r29,r5 ffc241ac: 93 e1 00 24 stw r31,36(r1) ffc241b0: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc241b4: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc241b8: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc241bc: 41 82 00 4c beq- ffc24208 return RTEMS_INVALID_ADDRESS; errno = 0; ffc241c0: 48 02 a2 b1 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc241c4: 38 00 00 00 li r0,0 ffc241c8: 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 ); ffc241cc: 7f 85 e3 78 mr r5,r28 ffc241d0: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc241d4: 98 1e 00 00 stb r0,0(r30) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc241d8: 38 81 00 08 addi r4,r1,8 ffc241dc: 48 03 35 f1 bl ffc577cc <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc241e0: 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 ); ffc241e4: 7c 69 1b 78 mr r9,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc241e8: 41 9e 00 40 beq- cr7,ffc24228 *endptr = end; ffc241ec: 80 01 00 08 lwz r0,8(r1) ffc241f0: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc241f4: 7f 80 f8 00 cmpw cr7,r0,r31 ffc241f8: 38 60 00 0b li r3,11 ffc241fc: 41 9e 00 0c beq- cr7,ffc24208 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc24200: 99 3e 00 00 stb r9,0(r30) ffc24204: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc24208: 80 01 00 2c lwz r0,44(r1) ffc2420c: 83 81 00 18 lwz r28,24(r1) ffc24210: 7c 08 03 a6 mtlr r0 ffc24214: 83 a1 00 1c lwz r29,28(r1) ffc24218: 83 c1 00 20 lwz r30,32(r1) ffc2421c: 83 e1 00 24 lwz r31,36(r1) ffc24220: 38 21 00 28 addi r1,r1,40 ffc24224: 4e 80 00 20 blr <== ALWAYS TAKEN ffc24228: 80 01 00 08 lwz r0,8(r1) ffc2422c: 4b ff ff c8 b ffc241f4 <== ALWAYS TAKEN ffc10788 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc10788: 94 21 ff d8 stwu r1,-40(r1) ffc1078c: 7c 08 02 a6 mflr r0 ffc10790: 93 c1 00 20 stw r30,32(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10794: 7c 9e 23 79 mr. r30,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc10798: 93 81 00 18 stw r28,24(r1) ffc1079c: 7c dc 33 78 mr r28,r6 ffc107a0: 93 a1 00 1c stw r29,28(r1) ffc107a4: 7c bd 2b 78 mr r29,r5 ffc107a8: 93 e1 00 24 stw r31,36(r1) ffc107ac: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc107b0: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc107b4: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc107b8: 41 82 00 54 beq- ffc1080c return RTEMS_INVALID_ADDRESS; errno = 0; ffc107bc: 48 00 3b 11 bl ffc142cc <__errno> <== ALWAYS TAKEN ffc107c0: 38 00 00 00 li r0,0 ffc107c4: 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 ); ffc107c8: 7f 85 e3 78 mr r5,r28 ffc107cc: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc107d0: 90 1e 00 00 stw r0,0(r30) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc107d4: 38 81 00 08 addi r4,r1,8 ffc107d8: 48 00 6f 8d bl ffc17764 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc107dc: 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 ); ffc107e0: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc107e4: 41 9e 00 60 beq- cr7,ffc10844 *endptr = end; ffc107e8: 80 01 00 08 lwz r0,8(r1) ffc107ec: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc107f0: 7f 80 f8 00 cmpw cr7,r0,r31 ffc107f4: 38 60 00 0b li r3,11 ffc107f8: 41 9e 00 14 beq- cr7,ffc1080c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc107fc: 2f 9c ff ff cmpwi cr7,r28,-1 ffc10800: 41 9e 00 2c beq- cr7,ffc1082c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc10804: 93 9e 00 00 stw r28,0(r30) ffc10808: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc1080c: 80 01 00 2c lwz r0,44(r1) ffc10810: 83 81 00 18 lwz r28,24(r1) ffc10814: 7c 08 03 a6 mtlr r0 ffc10818: 83 a1 00 1c lwz r29,28(r1) ffc1081c: 83 c1 00 20 lwz r30,32(r1) ffc10820: 83 e1 00 24 lwz r31,36(r1) ffc10824: 38 21 00 28 addi r1,r1,40 ffc10828: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc1082c: 48 00 3a a1 bl ffc142cc <__errno> <== ALWAYS TAKEN ffc10830: 80 03 00 00 lwz r0,0(r3) ffc10834: 38 60 00 0a li r3,10 ffc10838: 2f 80 00 22 cmpwi cr7,r0,34 ffc1083c: 40 9e ff c8 bne+ cr7,ffc10804 <== NEVER TAKEN ffc10840: 4b ff ff cc b ffc1080c <== ALWAYS TAKEN ffc10844: 80 01 00 08 lwz r0,8(r1) ffc10848: 4b ff ff a8 b ffc107f0 <== ALWAYS TAKEN ffc24230 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc24230: 94 21 ff d8 stwu r1,-40(r1) ffc24234: 7c 08 02 a6 mflr r0 ffc24238: 93 c1 00 20 stw r30,32(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc2423c: 7c 9e 23 79 mr. r30,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc24240: 93 81 00 18 stw r28,24(r1) ffc24244: 7c dc 33 78 mr r28,r6 ffc24248: 93 a1 00 1c stw r29,28(r1) ffc2424c: 7c bd 2b 78 mr r29,r5 ffc24250: 93 e1 00 24 stw r31,36(r1) ffc24254: 7c 7f 1b 78 mr r31,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc24258: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc2425c: 90 01 00 2c stw r0,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc24260: 41 82 00 54 beq- ffc242b4 return RTEMS_INVALID_ADDRESS; errno = 0; ffc24264: 48 02 a2 0d bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc24268: 38 00 00 00 li r0,0 ffc2426c: 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 ); ffc24270: 7f 85 e3 78 mr r5,r28 ffc24274: 7f e3 fb 78 mr r3,r31 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc24278: 90 1e 00 00 stw r0,0(r30) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); ffc2427c: 38 81 00 08 addi r4,r1,8 ffc24280: 48 03 35 4d bl ffc577cc <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc24284: 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 ); ffc24288: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc2428c: 41 9e 00 60 beq- cr7,ffc242ec *endptr = end; ffc24290: 80 01 00 08 lwz r0,8(r1) ffc24294: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc24298: 7f 80 f8 00 cmpw cr7,r0,r31 ffc2429c: 38 60 00 0b li r3,11 ffc242a0: 41 9e 00 14 beq- cr7,ffc242b4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc242a4: 2f 9c ff ff cmpwi cr7,r28,-1 ffc242a8: 41 9e 00 2c beq- cr7,ffc242d4 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc242ac: 93 9e 00 00 stw r28,0(r30) ffc242b0: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc242b4: 80 01 00 2c lwz r0,44(r1) ffc242b8: 83 81 00 18 lwz r28,24(r1) ffc242bc: 7c 08 03 a6 mtlr r0 ffc242c0: 83 a1 00 1c lwz r29,28(r1) ffc242c4: 83 c1 00 20 lwz r30,32(r1) ffc242c8: 83 e1 00 24 lwz r31,36(r1) ffc242cc: 38 21 00 28 addi r1,r1,40 ffc242d0: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc242d4: 48 02 a1 9d bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc242d8: 80 03 00 00 lwz r0,0(r3) ffc242dc: 38 60 00 0a li r3,10 ffc242e0: 2f 80 00 22 cmpwi cr7,r0,34 ffc242e4: 40 9e ff c8 bne+ cr7,ffc242ac <== NEVER TAKEN ffc242e8: 4b ff ff cc b ffc242b4 <== ALWAYS TAKEN ffc242ec: 80 01 00 08 lwz r0,8(r1) ffc242f0: 4b ff ff a8 b ffc24298 <== ALWAYS TAKEN ffc1084c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc1084c: 94 21 ff d0 stwu r1,-48(r1) ffc10850: 7c 08 02 a6 mflr r0 ffc10854: 93 e1 00 2c stw r31,44(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10858: 7c 9f 23 79 mr. r31,r4 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc1085c: 93 81 00 20 stw r28,32(r1) ffc10860: 7c dc 33 78 mr r28,r6 ffc10864: 93 a1 00 24 stw r29,36(r1) ffc10868: 7c bd 2b 78 mr r29,r5 ffc1086c: 93 c1 00 28 stw r30,40(r1) ffc10870: 7c 7e 1b 78 mr r30,r3 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc10874: 38 60 00 09 li r3,9 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { ffc10878: 90 01 00 34 stw r0,52(r1) STRING_TO_INPUT_TYPE result; char *end; if ( !n ) ffc1087c: 41 82 00 64 beq- ffc108e0 return RTEMS_INVALID_ADDRESS; errno = 0; ffc10880: 48 00 3a 4d bl ffc142cc <__errno> <== ALWAYS TAKEN ffc10884: 38 00 00 00 li r0,0 *n = 0; ffc10888: 39 20 00 00 li r9,0 char *end; if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; ffc1088c: 90 03 00 00 stw r0,0(r3) *n = 0; ffc10890: 39 40 00 00 li r10,0 ffc10894: 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 ); ffc10898: 7f 85 e3 78 mr r5,r28 ffc1089c: 7f c3 f3 78 mr r3,r30 if ( !n ) return RTEMS_INVALID_ADDRESS; errno = 0; *n = 0; ffc108a0: 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 ); ffc108a4: 38 81 00 08 addi r4,r1,8 ffc108a8: 48 00 6e dd bl ffc17784 <== ALWAYS TAKEN #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc108ac: 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 ); ffc108b0: 7c 7c 1b 78 mr r28,r3 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) ffc108b4: 41 9e 00 74 beq- cr7,ffc10928 *endptr = end; ffc108b8: 80 01 00 08 lwz r0,8(r1) ffc108bc: 90 1d 00 00 stw r0,0(r29) /* nothing was converted */ if ( end == s ) ffc108c0: 7f 80 f0 00 cmpw cr7,r0,r30 ffc108c4: 38 60 00 0b li r3,11 ffc108c8: 41 9e 00 18 beq- cr7,ffc108e0 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc108cc: 2f 9c ff ff cmpwi cr7,r28,-1 ffc108d0: 41 9e 00 30 beq- cr7,ffc10900 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; ffc108d4: 90 9f 00 04 stw r4,4(r31) ffc108d8: 38 60 00 00 li r3,0 ffc108dc: 93 9f 00 00 stw r28,0(r31) return RTEMS_SUCCESSFUL; } ffc108e0: 80 01 00 34 lwz r0,52(r1) ffc108e4: 83 81 00 20 lwz r28,32(r1) ffc108e8: 7c 08 03 a6 mtlr r0 ffc108ec: 83 a1 00 24 lwz r29,36(r1) ffc108f0: 83 c1 00 28 lwz r30,40(r1) ffc108f4: 83 e1 00 2c lwz r31,44(r1) ffc108f8: 38 21 00 30 addi r1,r1,48 ffc108fc: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) ffc10900: 2f 84 ff ff cmpwi cr7,r4,-1 ffc10904: 40 9e ff d0 bne+ cr7,ffc108d4 <== NEVER TAKEN ffc10908: 90 81 00 18 stw r4,24(r1) ffc1090c: 48 00 39 c1 bl ffc142cc <__errno> <== ALWAYS TAKEN ffc10910: 80 03 00 00 lwz r0,0(r3) ffc10914: 38 60 00 0a li r3,10 ffc10918: 80 81 00 18 lwz r4,24(r1) ffc1091c: 2f 80 00 22 cmpwi cr7,r0,34 ffc10920: 40 9e ff b4 bne+ cr7,ffc108d4 <== NEVER TAKEN ffc10924: 4b ff ff bc b ffc108e0 <== ALWAYS TAKEN ffc10928: 80 01 00 08 lwz r0,8(r1) ffc1092c: 4b ff ff 94 b ffc108c0 <== ALWAYS TAKEN ffc087c0 : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { ffc087c0: 94 21 ff c0 stwu r1,-64(r1) ffc087c4: 7c 08 02 a6 mflr r0 ffc087c8: 93 a1 00 34 stw r29,52(r1) Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) ffc087cc: 7d 1d 43 79 mr. r29,r8 size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { ffc087d0: 93 61 00 2c stw r27,44(r1) ffc087d4: 7c 7b 1b 78 mr r27,r3 <== ALWAYS TAKEN Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) ffc087d8: 38 60 00 09 li r3,9 size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { ffc087dc: 93 e1 00 3c stw r31,60(r1) ffc087e0: 7c df 33 78 mr r31,r6 <== ALWAYS TAKEN ffc087e4: 90 01 00 44 stw r0,68(r1) ffc087e8: 93 41 00 28 stw r26,40(r1) ffc087ec: 93 81 00 30 stw r28,48(r1) ffc087f0: 93 c1 00 38 stw r30,56(r1) Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) ffc087f4: 41 82 00 d4 beq- ffc088c8 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) ffc087f8: 2f 9b 00 00 cmpwi cr7,r27,0 ffc087fc: 38 60 00 03 li r3,3 ffc08800: 41 9e 00 c8 beq- cr7,ffc088c8 /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { ffc08804: 70 e0 80 00 andi. r0,r7,32768 ffc08808: 40 82 00 1c bne- ffc08824 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && ffc0880c: 2f 84 00 00 cmpwi cr7,r4,0 ffc08810: 41 9e 00 e0 beq- cr7,ffc088f0 ffc08814: 3d 20 00 00 lis r9,0 ffc08818: 88 09 26 a4 lbz r0,9892(r9) ffc0881c: 7f 84 00 40 cmplw cr7,r4,r0 ffc08820: 41 9d 00 d0 bgt- cr7,ffc088f0 */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); ffc08824: 3f 80 00 00 lis r28,0 ffc08828: 90 81 00 1c stw r4,28(r1) * 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 ); ffc0882c: 3f 40 00 00 lis r26,0 ffc08830: 80 7c 27 a8 lwz r3,10152(r28) ffc08834: 3b 5a 2b c4 addi r26,r26,11204 ffc08838: 90 a1 00 20 stw r5,32(r1) ffc0883c: 48 00 0a 69 bl ffc092a4 <_API_Mutex_Lock> <== ALWAYS TAKEN ffc08840: 7f 43 d3 78 mr r3,r26 <== ALWAYS TAKEN ffc08844: 48 00 16 05 bl ffc09e48 <_Objects_Allocate> <== ALWAYS TAKEN * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { ffc08848: 80 81 00 1c lwz r4,28(r1) ffc0884c: 7c 7e 1b 79 mr. r30,r3 ffc08850: 80 a1 00 20 lwz r5,32(r1) ffc08854: 41 82 01 0c beq- ffc08960 /* * Initialize the core thread for this task. */ status = _Thread_Initialize( ffc08858: 7c 2b 0b 78 mr r11,r1 <== ALWAYS TAKEN ffc0885c: 97 6b 00 18 stwu r27,24(r11) <== ALWAYS TAKEN ffc08860: 6b e9 01 00 xori r9,r31,256 <== ALWAYS TAKEN ffc08864: 7c a6 2b 78 mr r6,r5 ffc08868: 7c 88 23 78 mr r8,r4 <== ALWAYS TAKEN ffc0886c: 91 61 00 10 stw r11,16(r1) <== ALWAYS TAKEN ffc08870: 57 e0 07 fe clrlwi r0,r31,31 ffc08874: 39 80 00 00 li r12,0 ffc08878: 90 01 00 0c stw r0,12(r1) ffc0887c: 7f 43 d3 78 mr r3,r26 <== ALWAYS TAKEN ffc08880: 55 29 c7 fe rlwinm r9,r9,24,31,31 <== ALWAYS TAKEN ffc08884: 91 81 00 08 stw r12,8(r1) ffc08888: 7f c4 f3 78 mr r4,r30 <== ALWAYS TAKEN ffc0888c: 38 a0 00 00 li r5,0 ffc08890: 38 e0 00 01 li r7,1 ffc08894: 57 ea bf fe rlwinm r10,r31,23,31,31 ffc08898: 48 00 28 69 bl ffc0b100 <_Thread_Initialize> <== ALWAYS TAKEN NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { ffc0889c: 2f 83 00 00 cmpwi cr7,r3,0 ffc088a0: 41 9e 00 7c beq- cr7,ffc0891c api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; *id = the_thread->Object.id; ffc088a4: 80 1e 00 08 lwz r0,8(r30) <== ALWAYS TAKEN } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; ffc088a8: 6b ff 04 00 xori r31,r31,1024 ffc088ac: 81 3e 01 44 lwz r9,324(r30) ffc088b0: 57 ff b7 fe rlwinm r31,r31,22,31,31 ); } #endif _RTEMS_Unlock_allocator(); ffc088b4: 80 7c 27 a8 lwz r3,10152(r28) } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; ffc088b8: 9b e9 00 08 stb r31,8(r9) <== ALWAYS TAKEN *id = the_thread->Object.id; ffc088bc: 90 1d 00 00 stw r0,0(r29) ); } #endif _RTEMS_Unlock_allocator(); ffc088c0: 48 00 0a 65 bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN ffc088c4: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc088c8: 80 01 00 44 lwz r0,68(r1) <== ALWAYS TAKEN ffc088cc: 83 41 00 28 lwz r26,40(r1) ffc088d0: 7c 08 03 a6 mtlr r0 ffc088d4: 83 61 00 2c lwz r27,44(r1) ffc088d8: 83 81 00 30 lwz r28,48(r1) ffc088dc: 83 a1 00 34 lwz r29,52(r1) ffc088e0: 83 c1 00 38 lwz r30,56(r1) ffc088e4: 83 e1 00 3c lwz r31,60(r1) <== ALWAYS TAKEN ffc088e8: 38 21 00 40 addi r1,r1,64 ffc088ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc088f0: 80 01 00 44 lwz r0,68(r1) } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; ffc088f4: 38 60 00 13 li r3,19 } ffc088f8: 83 41 00 28 lwz r26,40(r1) ffc088fc: 7c 08 03 a6 mtlr r0 ffc08900: 83 61 00 2c lwz r27,44(r1) ffc08904: 83 81 00 30 lwz r28,48(r1) ffc08908: 83 a1 00 34 lwz r29,52(r1) ffc0890c: 83 c1 00 38 lwz r30,56(r1) ffc08910: 83 e1 00 3c lwz r31,60(r1) ffc08914: 38 21 00 40 addi r1,r1,64 ffc08918: 4e 80 00 20 blr <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( ffc0891c: 80 7e 00 08 lwz r3,8(r30) ffc08920: 48 00 1a 09 bl ffc0a328 <_Objects_Get_information_id> <== ALWAYS TAKEN ffc08924: 7f c4 f3 78 mr r4,r30 ffc08928: 48 00 19 41 bl ffc0a268 <_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(); ffc0892c: 80 7c 27 a8 lwz r3,10152(r28) ffc08930: 48 00 09 f5 bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } ffc08934: 80 01 00 44 lwz r0,68(r1) #if defined(RTEMS_MULTIPROCESSING) if ( is_global ) _Objects_MP_Free_global_object( the_global_object ); #endif _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); ffc08938: 38 60 00 0d li r3,13 } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } ffc0893c: 83 41 00 28 lwz r26,40(r1) ffc08940: 7c 08 03 a6 mtlr r0 ffc08944: 83 61 00 2c lwz r27,44(r1) ffc08948: 83 81 00 30 lwz r28,48(r1) ffc0894c: 83 a1 00 34 lwz r29,52(r1) ffc08950: 83 c1 00 38 lwz r30,56(r1) ffc08954: 83 e1 00 3c lwz r31,60(r1) ffc08958: 38 21 00 40 addi r1,r1,64 ffc0895c: 4e 80 00 20 blr <== ALWAYS TAKEN */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); ffc08960: 80 7c 27 a8 lwz r3,10152(r28) ffc08964: 48 00 09 c1 bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } ffc08968: 80 01 00 44 lwz r0,68(r1) */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); ffc0896c: 38 60 00 05 li r3,5 } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } ffc08970: 83 41 00 28 lwz r26,40(r1) ffc08974: 7c 08 03 a6 mtlr r0 ffc08978: 83 61 00 2c lwz r27,44(r1) ffc0897c: 83 81 00 30 lwz r28,48(r1) ffc08980: 83 a1 00 34 lwz r29,52(r1) ffc08984: 83 c1 00 38 lwz r30,56(r1) ffc08988: 83 e1 00 3c lwz r31,60(r1) ffc0898c: 38 21 00 40 addi r1,r1,64 ffc08990: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08994 : */ rtems_status_code rtems_task_delete( rtems_id id ) { ffc08994: 94 21 ff e0 stwu r1,-32(r1) ffc08998: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc0899c: 93 e1 00 1c stw r31,28(r1) register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); ffc089a0: 3f e0 00 00 lis r31,0 */ rtems_status_code rtems_task_delete( rtems_id id ) { ffc089a4: 93 c1 00 18 stw r30,24(r1) ffc089a8: 7c 7e 1b 78 mr r30,r3 register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); ffc089ac: 80 7f 27 a8 lwz r3,10152(r31) */ rtems_status_code rtems_task_delete( rtems_id id ) { ffc089b0: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); ffc089b4: 48 00 08 f1 bl ffc092a4 <_API_Mutex_Lock> <== ALWAYS TAKEN the_thread = _Thread_Get( id, &location ); ffc089b8: 7f c3 f3 78 mr r3,r30 <== ALWAYS TAKEN ffc089bc: 38 81 00 08 addi r4,r1,8 ffc089c0: 48 00 26 75 bl ffc0b034 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc089c4: 80 01 00 08 lwz r0,8(r1) Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); the_thread = _Thread_Get( id, &location ); ffc089c8: 7c 7e 1b 78 mr r30,r3 switch ( location ) { ffc089cc: 2f 80 00 00 cmpwi cr7,r0,0 ffc089d0: 40 9e 00 4c bne- cr7,ffc08a1c case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); ffc089d4: 80 63 00 08 lwz r3,8(r3) ffc089d8: 48 00 19 51 bl ffc0a328 <_Objects_Get_information_id> <== ALWAYS TAKEN 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); ffc089dc: 7f c4 f3 78 mr r4,r30 <== ALWAYS TAKEN ffc089e0: 48 00 21 ed bl ffc0abcc <_Thread_Close> <== ALWAYS TAKEN ffc089e4: 80 7e 00 08 lwz r3,8(r30) ffc089e8: 48 00 19 41 bl ffc0a328 <_Objects_Get_information_id> <== ALWAYS TAKEN ffc089ec: 7f c4 f3 78 mr r4,r30 ffc089f0: 48 00 18 79 bl ffc0a268 <_Objects_Free> <== ALWAYS TAKEN _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); ffc089f4: 80 7f 27 a8 lwz r3,10152(r31) ffc089f8: 48 00 09 2d bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc089fc: 48 00 26 19 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } ffc08a00: 80 01 00 24 lwz r0,36(r1) _Thread_Close( the_information, the_thread ); _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); _Thread_Enable_dispatch(); ffc08a04: 38 60 00 00 li r3,0 break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } ffc08a08: 83 c1 00 18 lwz r30,24(r1) ffc08a0c: 7c 08 03 a6 mtlr r0 ffc08a10: 83 e1 00 1c lwz r31,28(r1) ffc08a14: 38 21 00 20 addi r1,r1,32 ffc08a18: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); ffc08a1c: 80 7f 27 a8 lwz r3,10152(r31) ffc08a20: 48 00 09 05 bl ffc09324 <_API_Mutex_Unlock> <== ALWAYS TAKEN return RTEMS_INVALID_ID; } ffc08a24: 80 01 00 24 lwz r0,36(r1) case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); ffc08a28: 38 60 00 04 li r3,4 return RTEMS_INVALID_ID; } ffc08a2c: 83 c1 00 18 lwz r30,24(r1) ffc08a30: 7c 08 03 a6 mtlr r0 ffc08a34: 83 e1 00 1c lwz r31,28(r1) ffc08a38: 38 21 00 20 addi r1,r1,32 ffc08a3c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ae5c : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { ffc0ae5c: 94 21 ff d8 stwu r1,-40(r1) ffc0ae60: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0ae64: 3d 20 00 00 lis r9,0 rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { ffc0ae68: 90 01 00 2c stw r0,44(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0ae6c: 88 09 20 94 lbz r0,8340(r9) rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { ffc0ae70: 93 e1 00 24 stw r31,36(r1) ffc0ae74: 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() ) ffc0ae78: 2f 80 00 00 cmpwi cr7,r0,0 ffc0ae7c: 38 00 00 16 li r0,22 ffc0ae80: 41 9e 00 74 beq- cr7,ffc0aef4 return RTEMS_NOT_CONFIGURED; if ( !note ) ffc0ae84: 2f 85 00 00 cmpwi cr7,r5,0 ffc0ae88: 38 00 00 09 li r0,9 ffc0ae8c: 41 9e 00 68 beq- cr7,ffc0aef4 /* * 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 ) ffc0ae90: 2b 84 00 0f cmplwi cr7,r4,15 ffc0ae94: 38 00 00 0a li r0,10 ffc0ae98: 41 9d 00 5c bgt- cr7,ffc0aef4 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || ffc0ae9c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0aea0: 41 9e 00 6c beq- cr7,ffc0af0c _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { ffc0aea4: 3d 60 00 00 lis r11,0 ffc0aea8: 81 6b 28 14 lwz r11,10260(r11) /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || ffc0aeac: 80 0b 00 08 lwz r0,8(r11) ffc0aeb0: 7f 83 00 00 cmpw cr7,r3,r0 ffc0aeb4: 41 9e 00 60 beq- cr7,ffc0af14 api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); ffc0aeb8: 38 81 00 08 addi r4,r1,8 ffc0aebc: 90 a1 00 18 stw r5,24(r1) ffc0aec0: 48 00 2a c9 bl ffc0d988 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0aec4: 38 00 00 04 li r0,4 ffc0aec8: 81 21 00 08 lwz r9,8(r1) ffc0aecc: 80 a1 00 18 lwz r5,24(r1) ffc0aed0: 2f 89 00 00 cmpwi cr7,r9,0 ffc0aed4: 40 9e 00 20 bne- cr7,ffc0aef4 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; ffc0aed8: 81 23 01 44 lwz r9,324(r3) ffc0aedc: 3b ff 00 08 addi r31,r31,8 ffc0aee0: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0aee4: 7c 09 f8 2e lwzx r0,r9,r31 ffc0aee8: 90 05 00 00 stw r0,0(r5) _Thread_Enable_dispatch(); ffc0aeec: 48 00 2a 7d bl ffc0d968 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0aef0: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0aef4: 7c 03 03 78 mr r3,r0 ffc0aef8: 80 01 00 2c lwz r0,44(r1) ffc0aefc: 83 e1 00 24 lwz r31,36(r1) ffc0af00: 38 21 00 28 addi r1,r1,40 ffc0af04: 7c 08 03 a6 mtlr r0 ffc0af08: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || ffc0af0c: 3d 20 00 00 lis r9,0 ffc0af10: 81 69 28 14 lwz r11,10260(r9) _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; ffc0af14: 38 00 00 00 li r0,0 ffc0af18: 81 2b 01 44 lwz r9,324(r11) case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0af1c: 7c 03 03 78 mr r3,r0 ffc0af20: 80 01 00 2c lwz r0,44(r1) */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; ffc0af24: 3b ff 00 08 addi r31,r31,8 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0af28: 7c 08 03 a6 mtlr r0 */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; ffc0af2c: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0af30: 7d 29 f8 2e lwzx r9,r9,r31 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0af34: 83 e1 00 24 lwz r31,36(r1) ffc0af38: 38 21 00 28 addi r1,r1,40 */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; ffc0af3c: 91 25 00 00 stw r9,0(r5) case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0af40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08a40 : rtems_id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id ) ffc08a40: 7c a6 2b 79 mr. r6,r5 rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { ffc08a44: 7c 08 02 a6 mflr r0 ffc08a48: 94 21 ff f8 stwu r1,-8(r1) ffc08a4c: 7c 85 23 78 mr r5,r4 ffc08a50: 90 01 00 0c stw r0,12(r1) ffc08a54: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; if ( !id ) ffc08a58: 38 60 00 09 li r3,9 ffc08a5c: 41 82 00 20 beq- ffc08a7c return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { ffc08a60: 2f 80 00 00 cmpwi cr7,r0,0 ffc08a64: 40 9e 00 28 bne- cr7,ffc08a8c *id = _Thread_Executing->Object.id; ffc08a68: 3d 20 00 00 lis r9,0 ffc08a6c: 81 29 27 b0 lwz r9,10160(r9) ffc08a70: 38 60 00 00 li r3,0 ffc08a74: 80 09 00 08 lwz r0,8(r9) ffc08a78: 90 06 00 00 stw r0,0(r6) } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc08a7c: 80 01 00 0c lwz r0,12(r1) ffc08a80: 38 21 00 08 addi r1,r1,8 ffc08a84: 7c 08 03 a6 mtlr r0 ffc08a88: 4e 80 00 20 blr <== ALWAYS TAKEN if ( name == OBJECTS_ID_OF_SELF ) { *id = _Thread_Executing->Object.id; return RTEMS_SUCCESSFUL; } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); ffc08a8c: 3c 60 00 00 lis r3,0 ffc08a90: 7c 04 03 78 mr r4,r0 ffc08a94: 38 63 2b c4 addi r3,r3,11204 ffc08a98: 48 00 1b 89 bl ffc0a620 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN return _Status_Object_name_errors_to_status[ status ]; } ffc08a9c: 80 01 00 0c lwz r0,12(r1) return RTEMS_SUCCESSFUL; } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; ffc08aa0: 3d 20 ff c2 lis r9,-62 } ffc08aa4: 7c 08 03 a6 mtlr r0 return RTEMS_SUCCESSFUL; } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; ffc08aa8: 54 63 10 3a rlwinm r3,r3,2,0,29 ffc08aac: 39 29 f8 00 addi r9,r9,-2048 ffc08ab0: 7c 69 18 2e lwzx r3,r9,r3 } ffc08ab4: 38 21 00 08 addi r1,r1,8 ffc08ab8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc19f68 : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { ffc19f68: 94 21 ff e8 stwu r1,-24(r1) ffc19f6c: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc19f70: 38 81 00 08 addi r4,r1,8 */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { ffc19f74: 90 01 00 1c stw r0,28(r1) register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc19f78: 48 00 4d f1 bl ffc1ed68 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc19f7c: 38 00 00 04 li r0,4 ffc19f80: 81 21 00 08 lwz r9,8(r1) ffc19f84: 2f 89 00 00 cmpwi cr7,r9,0 ffc19f88: 40 9e 00 18 bne- cr7,ffc19fa0 case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { ffc19f8c: 80 03 00 10 lwz r0,16(r3) ffc19f90: 70 09 00 02 andi. r9,r0,2 ffc19f94: 41 82 00 20 beq- ffc19fb4 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc19f98: 48 00 4d 65 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc19f9c: 38 00 00 0f li r0,15 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc19fa0: 7c 03 03 78 mr r3,r0 ffc19fa4: 80 01 00 1c lwz r0,28(r1) ffc19fa8: 38 21 00 18 addi r1,r1,24 ffc19fac: 7c 08 03 a6 mtlr r0 ffc19fb0: 4e 80 00 20 blr <== ALWAYS TAKEN the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Enable_dispatch(); ffc19fb4: 48 00 4d 49 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc19fb8: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc19fbc: 7c 03 03 78 mr r3,r0 ffc19fc0: 80 01 00 1c lwz r0,28(r1) ffc19fc4: 38 21 00 18 addi r1,r1,24 ffc19fc8: 7c 08 03 a6 mtlr r0 ffc19fcc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc11f7c : ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) ffc11f7c: 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 ) { ffc11f80: 94 21 ff f0 stwu r1,-16(r1) ffc11f84: 7c 08 02 a6 mflr r0 ffc11f88: 93 e1 00 0c stw r31,12(r1) ffc11f8c: 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 ) ffc11f90: 38 00 00 09 li r0,9 ffc11f94: 41 82 01 1c beq- ffc120b0 return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; ffc11f98: 3d 20 00 00 lis r9,0 ffc11f9c: 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 ) ffc11fa0: 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; ffc11fa4: 89 49 00 75 lbz r10,117(r9) if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) ffc11fa8: 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 ]; ffc11fac: 81 69 01 44 lwz r11,324(r9) asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; ffc11fb0: 7d 4a 00 34 cntlzw r10,r10 ffc11fb4: 55 4a d9 7e rlwinm r10,r10,27,5,31 ffc11fb8: 55 48 40 2e rlwinm r8,r10,8,0,23 if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) ffc11fbc: 40 9e 01 0c bne- cr7,ffc120c8 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; ffc11fc0: 89 4b 00 08 lbz r10,8(r11) #ifndef ASM static inline uint32_t _CPU_ISR_Get_level( void ) { register unsigned int msr; _CPU_MSR_GET(msr); ffc11fc4: 38 00 00 00 li r0,0 ffc11fc8: 7d 4a 00 34 cntlzw r10,r10 ffc11fcc: 55 4a d9 7e rlwinm r10,r10,27,5,31 ffc11fd0: 55 4a 50 2a rlwinm r10,r10,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; ffc11fd4: 7d 48 43 78 or r8,r10,r8 ffc11fd8: 7c 00 00 a6 mfmsr r0 /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) ffc11fdc: 70 8a 01 00 andi. r10,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; ffc11fe0: 68 00 80 00 xori r0,r0,32768 ffc11fe4: 54 00 8f fe rlwinm r0,r0,17,31,31 ffc11fe8: 7d 08 03 78 or r8,r8,r0 ffc11fec: 91 05 00 00 stw r8,0(r5) /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) ffc11ff0: 41 82 00 10 beq- ffc12000 executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; ffc11ff4: 68 60 01 00 xori r0,r3,256 ffc11ff8: 54 00 c7 fe rlwinm r0,r0,24,31,31 ffc11ffc: 98 09 00 75 stb r0,117(r9) if ( mask & RTEMS_TIMESLICE_MASK ) { ffc12000: 70 80 02 00 andi. r0,r4,512 ffc12004: 41 82 00 20 beq- ffc12024 if ( _Modes_Is_timeslice(mode_set) ) { ffc12008: 70 60 02 00 andi. r0,r3,512 ffc1200c: 41 82 01 08 beq- ffc12114 executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; executing->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc12010: 3d 40 00 00 lis r10,0 ffc12014: 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; ffc12018: 39 40 00 01 li r10,1 ffc1201c: 91 49 00 7c stw r10,124(r9) executing->cpu_time_budget = _Thread_Ticks_per_timeslice; ffc12020: 90 09 00 78 stw r0,120(r9) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) ffc12024: 70 8a 00 01 andi. r10,r4,1 ffc12028: 41 82 00 20 beq- ffc12048 } static inline void _CPU_ISR_Set_level( uint32_t level ) { register unsigned int msr; _CPU_MSR_GET(msr); ffc1202c: 38 00 00 00 li r0,0 ffc12030: 7c 00 00 a6 mfmsr r0 if (!(level & CPU_MODES_INTERRUPT_MASK)) { ffc12034: 70 6a 00 01 andi. r10,r3,1 ffc12038: 40 82 00 cc bne- ffc12104 static inline uint32_t ppc_interrupt_get_disable_mask( void ) { uint32_t mask; asm volatile ( ffc1203c: 7d 50 42 a6 mfsprg r10,0 msr |= ppc_interrupt_get_disable_mask(); ffc12040: 7d 40 03 78 or r0,r10,r0 } else { msr &= ~ppc_interrupt_get_disable_mask(); } _CPU_MSR_SET(msr); ffc12044: 7c 00 01 24 mtmsr r0 */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { ffc12048: 70 80 04 00 andi. r0,r4,1024 ffc1204c: 41 82 00 4c beq- ffc12098 * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( ffc12050: 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; ffc12054: 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( ffc12058: 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; ffc1205c: 7f 80 18 00 cmpw cr7,r0,r3 ffc12060: 41 9e 00 38 beq- cr7,ffc12098 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; ffc12064: 98 6b 00 08 stb r3,8(r11) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc12068: 7c 00 00 a6 mfmsr r0 ffc1206c: 7d 50 42 a6 mfsprg r10,0 ffc12070: 7c 0a 50 78 andc r10,r0,r10 ffc12074: 7d 40 01 24 mtmsr r10 { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); _signals = information->signals_pending; ffc12078: 81 0b 00 18 lwz r8,24(r11) <== ALWAYS TAKEN information->signals_pending = information->signals_posted; ffc1207c: 81 4b 00 14 lwz r10,20(r11) information->signals_posted = _signals; ffc12080: 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; ffc12084: 91 4b 00 18 stw r10,24(r11) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc12088: 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; ffc1208c: 80 0b 00 14 lwz r0,20(r11) ffc12090: 2f 80 00 00 cmpwi cr7,r0,0 ffc12094: 40 9e 00 c4 bne- cr7,ffc12158 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; ffc12098: 3b e0 00 00 li r31,0 } } } if ( _System_state_Is_up( _System_state_Get() ) ) ffc1209c: 3d 20 00 00 lis r9,0 ffc120a0: 80 09 27 d4 lwz r0,10196(r9) ffc120a4: 2f 80 00 03 cmpwi cr7,r0,3 ffc120a8: 41 9e 00 7c beq- cr7,ffc12124 <== ALWAYS TAKEN if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch(); ffc120ac: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc120b0: 7c 03 03 78 mr r3,r0 ffc120b4: 80 01 00 14 lwz r0,20(r1) ffc120b8: 83 e1 00 0c lwz r31,12(r1) ffc120bc: 38 21 00 10 addi r1,r1,16 ffc120c0: 7c 08 03 a6 mtlr r0 ffc120c4: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; ffc120c8: 89 4b 00 08 lbz r10,8(r11) old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) old_mode |= RTEMS_NO_TIMESLICE; else old_mode |= RTEMS_TIMESLICE; ffc120cc: 61 08 02 00 ori r8,r8,512 #ifndef ASM static inline uint32_t _CPU_ISR_Get_level( void ) { register unsigned int msr; _CPU_MSR_GET(msr); ffc120d0: 38 00 00 00 li r0,0 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; ffc120d4: 7d 4a 00 34 cntlzw r10,r10 ffc120d8: 55 4a d9 7e rlwinm r10,r10,27,5,31 ffc120dc: 55 4a 50 2a rlwinm r10,r10,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; ffc120e0: 7d 48 43 78 or r8,r10,r8 ffc120e4: 7c 00 00 a6 mfmsr r0 /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) ffc120e8: 70 8a 01 00 andi. r10,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; ffc120ec: 68 00 80 00 xori r0,r0,32768 ffc120f0: 54 00 8f fe rlwinm r0,r0,17,31,31 ffc120f4: 7d 08 03 78 or r8,r8,r0 ffc120f8: 91 05 00 00 stw r8,0(r5) /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) ffc120fc: 41 a2 ff 04 beq- ffc12000 ffc12100: 4b ff fe f4 b ffc11ff4 <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_get_disable_mask( void ) { uint32_t mask; asm volatile ( ffc12104: 7d 50 42 a6 mfsprg r10,0 _CPU_MSR_GET(msr); if (!(level & CPU_MODES_INTERRUPT_MASK)) { msr |= ppc_interrupt_get_disable_mask(); } else { msr &= ~ppc_interrupt_get_disable_mask(); ffc12108: 7c 00 50 78 andc r0,r0,r10 } _CPU_MSR_SET(msr); ffc1210c: 7c 00 01 24 mtmsr r0 */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); ffc12110: 4b ff ff 38 b ffc12048 <== ALWAYS TAKEN /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) ffc12114: 70 8a 00 01 andi. r10,r4,1 if ( mask & RTEMS_TIMESLICE_MASK ) { if ( _Modes_Is_timeslice(mode_set) ) { executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; executing->cpu_time_budget = _Thread_Ticks_per_timeslice; } else executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; ffc12118: 90 09 00 7c stw r0,124(r9) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) ffc1211c: 41 a2 ff 2c beq- ffc12048 ffc12120: 4b ff ff 0c b ffc1202c <== ALWAYS TAKEN } } } if ( _System_state_Is_up( _System_state_Get() ) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) ffc12124: 48 00 03 71 bl ffc12494 <_Thread_Evaluate_mode> <== ALWAYS TAKEN ffc12128: 2f 83 00 00 cmpwi cr7,r3,0 ffc1212c: 40 9e 00 0c bne- cr7,ffc12138 ffc12130: 2f 9f 00 00 cmpwi cr7,r31,0 ffc12134: 41 be ff 78 beq- cr7,ffc120ac _Thread_Dispatch(); ffc12138: 4b ff 8c d5 bl ffc0ae0c <_Thread_Dispatch> <== ALWAYS TAKEN ffc1213c: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; } ffc12140: 7c 03 03 78 mr r3,r0 ffc12144: 80 01 00 14 lwz r0,20(r1) ffc12148: 83 e1 00 0c lwz r31,12(r1) ffc1214c: 38 21 00 10 addi r1,r1,16 ffc12150: 7c 08 03 a6 mtlr r0 ffc12154: 4e 80 00 20 blr <== ALWAYS TAKEN 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; ffc12158: 38 00 00 01 li r0,1 ffc1215c: 98 09 00 74 stb r0,116(r9) ffc12160: 3b e0 00 01 li r31,1 ffc12164: 4b ff ff 38 b ffc1209c <== ALWAYS TAKEN ffc09a34 : rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { ffc09a34: 94 21 ff e0 stwu r1,-32(r1) ffc09a38: 7c 08 02 a6 mflr r0 ffc09a3c: 93 e1 00 1c stw r31,28(r1) ffc09a40: 7c 9f 23 78 mr r31,r4 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc09a44: 38 81 00 08 addi r4,r1,8 rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { ffc09a48: 90 01 00 24 stw r0,36(r1) register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc09a4c: 48 00 26 25 bl ffc0c070 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc09a50: 38 00 00 04 li r0,4 ffc09a54: 81 21 00 08 lwz r9,8(r1) ffc09a58: 2f 89 00 00 cmpwi cr7,r9,0 ffc09a5c: 40 9e 00 20 bne- cr7,ffc09a7c case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { ffc09a60: 7f e5 fb 78 mr r5,r31 ffc09a64: 38 80 00 00 li r4,0 ffc09a68: 48 00 31 09 bl ffc0cb70 <_Thread_Restart> <== ALWAYS TAKEN ffc09a6c: 2f 83 00 00 cmpwi cr7,r3,0 ffc09a70: 40 9e 00 24 bne- cr7,ffc09a94 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc09a74: 48 00 25 dd bl ffc0c050 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09a78: 38 00 00 0e li r0,14 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc09a7c: 7c 03 03 78 mr r3,r0 ffc09a80: 80 01 00 24 lwz r0,36(r1) ffc09a84: 83 e1 00 1c lwz r31,28(r1) ffc09a88: 38 21 00 20 addi r1,r1,32 ffc09a8c: 7c 08 03 a6 mtlr r0 ffc09a90: 4e 80 00 20 blr <== ALWAYS TAKEN the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { _Thread_Enable_dispatch(); ffc09a94: 48 00 25 bd bl ffc0c050 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09a98: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc09a9c: 7c 03 03 78 mr r3,r0 ffc09aa0: 80 01 00 24 lwz r0,36(r1) ffc09aa4: 83 e1 00 1c lwz r31,28(r1) ffc09aa8: 38 21 00 20 addi r1,r1,32 ffc09aac: 7c 08 03 a6 mtlr r0 ffc09ab0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0d420 : */ rtems_status_code rtems_task_resume( rtems_id id ) { ffc0d420: 94 21 ff e8 stwu r1,-24(r1) ffc0d424: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0d428: 38 81 00 08 addi r4,r1,8 */ rtems_status_code rtems_task_resume( rtems_id id ) { ffc0d42c: 90 01 00 1c stw r0,28(r1) register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc0d430: 48 00 26 a5 bl ffc0fad4 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0d434: 38 00 00 04 li r0,4 ffc0d438: 81 21 00 08 lwz r9,8(r1) ffc0d43c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d440: 40 9e 00 18 bne- cr7,ffc0d458 case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { ffc0d444: 80 03 00 10 lwz r0,16(r3) ffc0d448: 70 09 00 02 andi. r9,r0,2 ffc0d44c: 40 82 00 20 bne- ffc0d46c _Thread_Resume( the_thread, true ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc0d450: 48 00 26 19 bl ffc0fa68 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d454: 38 00 00 0e li r0,14 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0d458: 7c 03 03 78 mr r3,r0 ffc0d45c: 80 01 00 1c lwz r0,28(r1) ffc0d460: 38 21 00 18 addi r1,r1,24 ffc0d464: 7c 08 03 a6 mtlr r0 ffc0d468: 4e 80 00 20 blr <== ALWAYS TAKEN the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { _Thread_Resume( the_thread, true ); ffc0d46c: 38 80 00 01 li r4,1 ffc0d470: 48 00 31 65 bl ffc105d4 <_Thread_Resume> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0d474: 48 00 25 f5 bl ffc0fa68 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0d478: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0d47c: 7c 03 03 78 mr r3,r0 ffc0d480: 80 01 00 1c lwz r0,28(r1) ffc0d484: 38 21 00 18 addi r1,r1,24 ffc0d488: 7c 08 03 a6 mtlr r0 ffc0d48c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc15c88 : #include #include rtems_id rtems_task_self(void) { ffc15c88: 3d 20 00 00 lis r9,0 ffc15c8c: 81 29 27 d0 lwz r9,10192(r9) return _Thread_Executing->Object.id; } ffc15c90: 80 69 00 08 lwz r3,8(r9) ffc15c94: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b110 : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { ffc0b110: 94 21 ff d8 stwu r1,-40(r1) ffc0b114: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0b118: 3d 20 00 00 lis r9,0 rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { ffc0b11c: 90 01 00 2c stw r0,44(r1) register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) ffc0b120: 88 09 20 94 lbz r0,8340(r9) rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { ffc0b124: 93 e1 00 24 stw r31,36(r1) ffc0b128: 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() ) ffc0b12c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b130: 38 00 00 16 li r0,22 ffc0b134: 41 9e 00 64 beq- cr7,ffc0b198 /* * 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 ) ffc0b138: 2b 84 00 0f cmplwi cr7,r4,15 ffc0b13c: 38 00 00 0a li r0,10 ffc0b140: 41 9d 00 58 bgt- cr7,ffc0b198 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || ffc0b144: 2f 83 00 00 cmpwi cr7,r3,0 ffc0b148: 41 9e 00 68 beq- cr7,ffc0b1b0 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { ffc0b14c: 3d 60 00 00 lis r11,0 ffc0b150: 81 6b 28 14 lwz r11,10260(r11) /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || ffc0b154: 80 0b 00 08 lwz r0,8(r11) ffc0b158: 7f 83 00 00 cmpw cr7,r3,r0 ffc0b15c: 41 9e 00 5c beq- cr7,ffc0b1b8 api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); ffc0b160: 38 81 00 08 addi r4,r1,8 ffc0b164: 90 a1 00 18 stw r5,24(r1) ffc0b168: 48 00 28 21 bl ffc0d988 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0b16c: 38 00 00 04 li r0,4 ffc0b170: 81 21 00 08 lwz r9,8(r1) ffc0b174: 80 a1 00 18 lwz r5,24(r1) ffc0b178: 2f 89 00 00 cmpwi cr7,r9,0 ffc0b17c: 40 9e 00 1c bne- cr7,ffc0b198 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; ffc0b180: 81 23 01 44 lwz r9,324(r3) ffc0b184: 3b ff 00 08 addi r31,r31,8 ffc0b188: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0b18c: 7c a9 f9 2e stwx r5,r9,r31 _Thread_Enable_dispatch(); ffc0b190: 48 00 27 d9 bl ffc0d968 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0b194: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0b198: 7c 03 03 78 mr r3,r0 ffc0b19c: 80 01 00 2c lwz r0,44(r1) ffc0b1a0: 83 e1 00 24 lwz r31,36(r1) ffc0b1a4: 38 21 00 28 addi r1,r1,40 ffc0b1a8: 7c 08 03 a6 mtlr r0 ffc0b1ac: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || ffc0b1b0: 3d 20 00 00 lis r9,0 ffc0b1b4: 81 69 28 14 lwz r11,10260(r9) _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; ffc0b1b8: 38 00 00 00 li r0,0 ffc0b1bc: 81 2b 01 44 lwz r9,324(r11) case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0b1c0: 7c 03 03 78 mr r3,r0 ffc0b1c4: 80 01 00 2c lwz r0,44(r1) */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; ffc0b1c8: 3b ff 00 08 addi r31,r31,8 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0b1cc: 7c 08 03 a6 mtlr r0 */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; ffc0b1d0: 57 ff 10 3a rlwinm r31,r31,2,0,29 ffc0b1d4: 7c a9 f9 2e stwx r5,r9,r31 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0b1d8: 83 e1 00 24 lwz r31,36(r1) ffc0b1dc: 38 21 00 28 addi r1,r1,40 ffc0b1e0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0eb10 : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { ffc0eb10: 7d 80 00 26 mfcr r12 register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && ffc0eb14: 2e 04 00 00 cmpwi cr4,r4,0 rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { ffc0eb18: 94 21 ff d8 stwu r1,-40(r1) ffc0eb1c: 7c 08 02 a6 mflr r0 ffc0eb20: 93 c1 00 20 stw r30,32(r1) ffc0eb24: 7c be 2b 78 mr r30,r5 ffc0eb28: 93 e1 00 24 stw r31,36(r1) register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && ffc0eb2c: 7c 9f 23 78 mr r31,r4 rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { ffc0eb30: 90 01 00 2c stw r0,44(r1) ffc0eb34: 91 81 00 1c stw r12,28(r1) register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && ffc0eb38: 41 92 00 18 beq- cr4,ffc0eb50 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && ffc0eb3c: 3d 20 00 00 lis r9,0 ffc0eb40: 89 29 26 e4 lbz r9,9956(r9) ffc0eb44: 38 00 00 13 li r0,19 ffc0eb48: 7f 84 48 40 cmplw cr7,r4,r9 ffc0eb4c: 41 9d 00 64 bgt- cr7,ffc0ebb0 !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) ffc0eb50: 2f 9e 00 00 cmpwi cr7,r30,0 <== ALWAYS TAKEN ffc0eb54: 38 00 00 09 li r0,9 ffc0eb58: 41 9e 00 58 beq- cr7,ffc0ebb0 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); ffc0eb5c: 38 81 00 08 addi r4,r1,8 ffc0eb60: 48 00 28 f9 bl ffc11458 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc0eb64: 81 21 00 08 lwz r9,8(r1) ffc0eb68: 38 00 00 04 li r0,4 ffc0eb6c: 2f 89 00 00 cmpwi cr7,r9,0 ffc0eb70: 40 9e 00 40 bne- cr7,ffc0ebb0 case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; ffc0eb74: 80 03 00 14 lwz r0,20(r3) ffc0eb78: 90 1e 00 00 stw r0,0(r30) if ( new_priority != RTEMS_CURRENT_PRIORITY ) { ffc0eb7c: 41 92 00 2c beq- cr4,ffc0eba8 the_thread->real_priority = new_priority; if ( the_thread->resource_count == 0 || ffc0eb80: 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; ffc0eb84: 93 e3 00 18 stw r31,24(r3) if ( the_thread->resource_count == 0 || ffc0eb88: 2f 80 00 00 cmpwi cr7,r0,0 ffc0eb8c: 41 9e 00 10 beq- cr7,ffc0eb9c the_thread->current_priority > new_priority ) ffc0eb90: 80 03 00 14 lwz r0,20(r3) ffc0eb94: 7f 9f 00 40 cmplw cr7,r31,r0 ffc0eb98: 40 9c 00 10 bge- cr7,ffc0eba8 <== ALWAYS TAKEN _Thread_Change_priority( the_thread, new_priority, false ); ffc0eb9c: 7f e4 fb 78 mr r4,r31 ffc0eba0: 38 a0 00 00 li r5,0 <== ALWAYS TAKEN ffc0eba4: 48 00 21 3d bl ffc10ce0 <_Thread_Change_priority> <== ALWAYS TAKEN } _Thread_Enable_dispatch(); ffc0eba8: 48 00 28 45 bl ffc113ec <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0ebac: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0ebb0: 7c 03 03 78 mr r3,r0 <== ALWAYS TAKEN ffc0ebb4: 80 01 00 2c lwz r0,44(r1) ffc0ebb8: 81 81 00 1c lwz r12,28(r1) ffc0ebbc: 7c 08 03 a6 mtlr r0 ffc0ebc0: 83 c1 00 20 lwz r30,32(r1) ffc0ebc4: 83 e1 00 24 lwz r31,36(r1) ffc0ebc8: 7d 80 81 20 mtcrf 8,r12 ffc0ebcc: 38 21 00 28 addi r1,r1,40 ffc0ebd0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08b7c : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { ffc08b7c: 94 21 ff e0 stwu r1,-32(r1) <== ALWAYS TAKEN ffc08b80: 7c 08 02 a6 mflr r0 ffc08b84: 93 c1 00 18 stw r30,24(r1) register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) ffc08b88: 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 ) { ffc08b8c: 90 01 00 24 stw r0,36(r1) <== ALWAYS TAKEN register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) ffc08b90: 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 ) { ffc08b94: 93 e1 00 1c stw r31,28(r1) ffc08b98: 7c bf 2b 78 mr r31,r5 register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) ffc08b9c: 41 82 00 40 beq- ffc08bdc return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); ffc08ba0: 38 81 00 08 addi r4,r1,8 ffc08ba4: 48 00 24 91 bl ffc0b034 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc08ba8: 81 21 00 08 lwz r9,8(r1) ffc08bac: 38 00 00 04 li r0,4 ffc08bb0: 2f 89 00 00 cmpwi cr7,r9,0 ffc08bb4: 40 9e 00 28 bne- cr7,ffc08bdc case OBJECTS_LOCAL: if ( _Thread_Start( ffc08bb8: 7f c5 f3 78 mr r5,r30 ffc08bbc: 7f e7 fb 78 mr r7,r31 ffc08bc0: 38 80 00 00 li r4,0 ffc08bc4: 38 c0 00 00 li r6,0 ffc08bc8: 48 00 33 09 bl ffc0bed0 <_Thread_Start> <== ALWAYS TAKEN ffc08bcc: 2f 83 00 00 cmpwi cr7,r3,0 ffc08bd0: 40 9e 00 28 bne- cr7,ffc08bf8 the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc08bd4: 48 00 24 41 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08bd8: 38 00 00 0e li r0,14 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08bdc: 7c 03 03 78 mr r3,r0 ffc08be0: 80 01 00 24 lwz r0,36(r1) ffc08be4: 83 c1 00 18 lwz r30,24(r1) ffc08be8: 7c 08 03 a6 mtlr r0 ffc08bec: 83 e1 00 1c lwz r31,28(r1) ffc08bf0: 38 21 00 20 addi r1,r1,32 ffc08bf4: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); ffc08bf8: 48 00 24 1d bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08bfc: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08c00: 7c 03 03 78 mr r3,r0 ffc08c04: 80 01 00 24 lwz r0,36(r1) ffc08c08: 83 c1 00 18 lwz r30,24(r1) ffc08c0c: 7c 08 03 a6 mtlr r0 ffc08c10: 83 e1 00 1c lwz r31,28(r1) ffc08c14: 38 21 00 20 addi r1,r1,32 ffc08c18: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c1c : */ rtems_status_code rtems_task_suspend( rtems_id id ) { ffc08c1c: 94 21 ff e8 stwu r1,-24(r1) ffc08c20: 7c 08 02 a6 mflr r0 register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc08c24: 38 81 00 08 addi r4,r1,8 */ rtems_status_code rtems_task_suspend( rtems_id id ) { ffc08c28: 90 01 00 1c stw r0,28(r1) register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); ffc08c2c: 48 00 24 09 bl ffc0b034 <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { ffc08c30: 38 00 00 04 li r0,4 ffc08c34: 81 21 00 08 lwz r9,8(r1) ffc08c38: 2f 89 00 00 cmpwi cr7,r9,0 ffc08c3c: 40 9e 00 18 bne- cr7,ffc08c54 case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { ffc08c40: 80 03 00 10 lwz r0,16(r3) ffc08c44: 70 09 00 02 andi. r9,r0,2 ffc08c48: 41 82 00 20 beq- ffc08c68 _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); ffc08c4c: 48 00 23 c9 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08c50: 38 00 00 0f li r0,15 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08c54: 7c 03 03 78 mr r3,r0 ffc08c58: 80 01 00 1c lwz r0,28(r1) ffc08c5c: 38 21 00 18 addi r1,r1,24 ffc08c60: 7c 08 03 a6 mtlr r0 ffc08c64: 4e 80 00 20 blr <== ALWAYS TAKEN the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Suspend( the_thread ); ffc08c68: 48 00 32 cd bl ffc0bf34 <_Thread_Suspend> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc08c6c: 48 00 23 a9 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08c70: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc08c74: 7c 03 03 78 mr r3,r0 ffc08c78: 80 01 00 1c lwz r0,28(r1) ffc08c7c: 38 21 00 18 addi r1,r1,24 ffc08c80: 7c 08 03 a6 mtlr r0 ffc08c84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc3310c : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { ffc3310c: 94 21 ff d8 stwu r1,-40(r1) ffc33110: 7c 08 02 a6 mflr r0 ffc33114: 93 e1 00 24 stw r31,36(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) ffc33118: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { ffc3311c: 90 01 00 2c stw r0,44(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) ffc33120: 38 00 00 09 li r0,9 rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { ffc33124: 93 c1 00 20 stw r30,32(r1) ffc33128: 7c be 2b 78 mr r30,r5 ffc3312c: 93 a1 00 1c stw r29,28(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) ffc33130: 41 82 00 20 beq- ffc33150 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); ffc33134: 38 81 00 08 addi r4,r1,8 ffc33138: 4b fd e2 c1 bl ffc113f8 <_Thread_Get> <== ALWAYS TAKEN switch (location) { ffc3313c: 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); ffc33140: 7c 7d 1b 78 mr r29,r3 switch (location) { ffc33144: 2f 89 00 00 cmpwi cr7,r9,0 ffc33148: 38 00 00 04 li r0,4 ffc3314c: 41 9e 00 24 beq- cr7,ffc33170 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc33150: 7c 03 03 78 mr r3,r0 ffc33154: 80 01 00 2c lwz r0,44(r1) ffc33158: 83 a1 00 1c lwz r29,28(r1) ffc3315c: 7c 08 03 a6 mtlr r0 ffc33160: 83 c1 00 20 lwz r30,32(r1) ffc33164: 83 e1 00 24 lwz r31,36(r1) ffc33168: 38 21 00 28 addi r1,r1,40 ffc3316c: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; ffc33170: 81 23 01 54 lwz r9,340(r3) while (tvp) { ffc33174: 2f 89 00 00 cmpwi cr7,r9,0 ffc33178: 40 be 00 64 bne+ cr7,ffc331dc } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) ffc3317c: 38 60 00 14 li r3,20 ffc33180: 4b fd fc fd bl ffc12e7c <_Workspace_Allocate> <== ALWAYS TAKEN _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { ffc33184: 2c 03 00 00 cmpwi r3,0 ffc33188: 41 82 00 8c beq- ffc33214 } new->gval = *ptr; new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; ffc3318c: 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; ffc33190: 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; ffc33194: 90 7d 01 54 stw r3,340(r29) if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; new->ptr = ptr; ffc33198: 93 e3 00 04 stw r31,4(r3) new->dtor = dtor; ffc3319c: 93 c3 00 10 stw r30,16(r3) new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; ffc331a0: 90 03 00 00 stw r0,0(r3) _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; ffc331a4: 91 23 00 08 stw r9,8(r3) new->ptr = ptr; new->dtor = dtor; new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; the_thread->task_variables = new; _Thread_Enable_dispatch(); ffc331a8: 4b fd e2 31 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc331ac: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc331b0: 7c 03 03 78 mr r3,r0 ffc331b4: 80 01 00 2c lwz r0,44(r1) ffc331b8: 83 a1 00 1c lwz r29,28(r1) ffc331bc: 7c 08 03 a6 mtlr r0 ffc331c0: 83 c1 00 20 lwz r30,32(r1) ffc331c4: 83 e1 00 24 lwz r31,36(r1) ffc331c8: 38 21 00 28 addi r1,r1,40 ffc331cc: 4e 80 00 20 blr <== ALWAYS TAKEN if (tvp->ptr == ptr) { tvp->dtor = dtor; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; ffc331d0: 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) { ffc331d4: 2f 89 00 00 cmpwi cr7,r9,0 ffc331d8: 41 be ff a4 beq- cr7,ffc3317c if (tvp->ptr == ptr) { ffc331dc: 80 09 00 04 lwz r0,4(r9) ffc331e0: 7f 80 f8 00 cmpw cr7,r0,r31 ffc331e4: 40 9e ff ec bne+ cr7,ffc331d0 tvp->dtor = dtor; ffc331e8: 93 c9 00 10 stw r30,16(r9) _Thread_Enable_dispatch(); ffc331ec: 4b fd e1 ed bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc331f0: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc331f4: 7c 03 03 78 mr r3,r0 ffc331f8: 80 01 00 2c lwz r0,44(r1) ffc331fc: 83 a1 00 1c lwz r29,28(r1) ffc33200: 7c 08 03 a6 mtlr r0 ffc33204: 83 c1 00 20 lwz r30,32(r1) ffc33208: 83 e1 00 24 lwz r31,36(r1) ffc3320c: 38 21 00 28 addi r1,r1,40 ffc33210: 4e 80 00 20 blr <== ALWAYS TAKEN * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { _Thread_Enable_dispatch(); ffc33214: 4b fd e1 c5 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc33218: 38 00 00 1a li r0,26 return RTEMS_NO_MEMORY; ffc3321c: 4b ff ff 34 b ffc33150 <== ALWAYS TAKEN ffc33220 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { ffc33220: 94 21 ff e0 stwu r1,-32(r1) ffc33224: 7c 08 02 a6 mflr r0 ffc33228: 93 e1 00 1c stw r31,28(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) ffc3322c: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { ffc33230: 90 01 00 24 stw r0,36(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) ffc33234: 38 00 00 09 li r0,9 ffc33238: 41 82 00 1c beq- ffc33254 return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); ffc3323c: 38 81 00 08 addi r4,r1,8 ffc33240: 4b fd e1 b9 bl ffc113f8 <_Thread_Get> <== ALWAYS TAKEN switch (location) { ffc33244: 81 21 00 08 lwz r9,8(r1) ffc33248: 38 00 00 04 li r0,4 ffc3324c: 2f 89 00 00 cmpwi cr7,r9,0 ffc33250: 41 9e 00 1c beq- cr7,ffc3326c case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc33254: 7c 03 03 78 mr r3,r0 ffc33258: 80 01 00 24 lwz r0,36(r1) ffc3325c: 83 e1 00 1c lwz r31,28(r1) ffc33260: 38 21 00 20 addi r1,r1,32 ffc33264: 7c 08 03 a6 mtlr r0 ffc33268: 4e 80 00 20 blr <== ALWAYS TAKEN the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; ffc3326c: 80 83 01 54 lwz r4,340(r3) while (tvp) { ffc33270: 2f 84 00 00 cmpwi cr7,r4,0 ffc33274: 41 9e 00 30 beq- cr7,ffc332a4 if (tvp->ptr == ptr) { ffc33278: 80 04 00 04 lwz r0,4(r4) ffc3327c: 7f 80 f8 00 cmpw cr7,r0,r31 ffc33280: 40 be 00 14 bne+ cr7,ffc33294 ffc33284: 48 00 00 6c b ffc332f0 <== ALWAYS TAKEN ffc33288: 80 04 00 04 lwz r0,4(r4) ffc3328c: 7f 80 f8 00 cmpw cr7,r0,r31 ffc33290: 41 9e 00 34 beq- cr7,ffc332c4 else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc33294: 7c 89 23 78 mr r9,r4 } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; ffc33298: 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) { ffc3329c: 2f 84 00 00 cmpwi cr7,r4,0 ffc332a0: 40 9e ff e8 bne+ cr7,ffc33288 <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); ffc332a4: 4b fd e1 35 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc332a8: 38 00 00 09 li r0,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc332ac: 7c 03 03 78 mr r3,r0 ffc332b0: 80 01 00 24 lwz r0,36(r1) ffc332b4: 83 e1 00 1c lwz r31,28(r1) ffc332b8: 38 21 00 20 addi r1,r1,32 ffc332bc: 7c 08 03 a6 mtlr r0 ffc332c0: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; ffc332c4: 80 04 00 00 lwz r0,0(r4) ffc332c8: 90 09 00 00 stw r0,0(r9) else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp ); ffc332cc: 48 00 01 01 bl ffc333cc <_RTEMS_Tasks_Invoke_task_variable_dtor> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc332d0: 4b fd e1 09 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc332d4: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc332d8: 7c 03 03 78 mr r3,r0 ffc332dc: 80 01 00 24 lwz r0,36(r1) ffc332e0: 83 e1 00 1c lwz r31,28(r1) ffc332e4: 38 21 00 20 addi r1,r1,32 ffc332e8: 7c 08 03 a6 mtlr r0 ffc332ec: 4e 80 00 20 blr <== ALWAYS TAKEN while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; else the_thread->task_variables = (rtems_task_variable_t *)tvp->next; ffc332f0: 80 04 00 00 lwz r0,0(r4) ffc332f4: 90 03 01 54 stw r0,340(r3) ffc332f8: 4b ff ff d4 b ffc332cc <== ALWAYS TAKEN ffc332fc : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { ffc332fc: 94 21 ff e0 stwu r1,-32(r1) ffc33300: 7c 08 02 a6 mflr r0 ffc33304: 93 e1 00 1c stw r31,28(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) ffc33308: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { ffc3330c: 93 c1 00 18 stw r30,24(r1) ffc33310: 7c be 2b 78 mr r30,r5 ffc33314: 90 01 00 24 stw r0,36(r1) Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) ffc33318: 41 82 00 78 beq- ffc33390 return RTEMS_INVALID_ADDRESS; if ( !result ) ffc3331c: 2f 85 00 00 cmpwi cr7,r5,0 ffc33320: 41 9e 00 70 beq- cr7,ffc33390 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); ffc33324: 38 81 00 08 addi r4,r1,8 <== ALWAYS TAKEN ffc33328: 4b fd e0 d1 bl ffc113f8 <_Thread_Get> <== ALWAYS TAKEN switch (location) { ffc3332c: 80 01 00 08 lwz r0,8(r1) return RTEMS_INVALID_ADDRESS; if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); ffc33330: 7c 69 1b 78 mr r9,r3 switch (location) { ffc33334: 2f 80 00 00 cmpwi cr7,r0,0 ffc33338: 38 60 00 04 li r3,4 ffc3333c: 40 9e 00 3c bne- cr7,ffc33378 case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; ffc33340: 81 29 01 54 lwz r9,340(r9) while (tvp) { ffc33344: 2f 89 00 00 cmpwi cr7,r9,0 ffc33348: 40 be 00 14 bne+ cr7,ffc3335c ffc3334c: 48 00 00 60 b ffc333ac <== ALWAYS TAKEN */ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; ffc33350: 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) { ffc33354: 2f 89 00 00 cmpwi cr7,r9,0 ffc33358: 41 9e 00 54 beq- cr7,ffc333ac <== NEVER TAKEN if (tvp->ptr == ptr) { ffc3335c: 80 09 00 04 lwz r0,4(r9) ffc33360: 7f 80 f8 00 cmpw cr7,r0,r31 ffc33364: 40 9e ff ec bne+ cr7,ffc33350 /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; ffc33368: 80 09 00 0c lwz r0,12(r9) ffc3336c: 90 1e 00 00 stw r0,0(r30) _Thread_Enable_dispatch(); ffc33370: 4b fd e0 69 bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc33374: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc33378: 80 01 00 24 lwz r0,36(r1) ffc3337c: 83 c1 00 18 lwz r30,24(r1) ffc33380: 7c 08 03 a6 mtlr r0 ffc33384: 83 e1 00 1c lwz r31,28(r1) ffc33388: 38 21 00 20 addi r1,r1,32 ffc3338c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc33390: 80 01 00 24 lwz r0,36(r1) return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS; ffc33394: 38 60 00 09 li r3,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc33398: 83 c1 00 18 lwz r30,24(r1) ffc3339c: 7c 08 03 a6 mtlr r0 ffc333a0: 83 e1 00 1c lwz r31,28(r1) ffc333a4: 38 21 00 20 addi r1,r1,32 ffc333a8: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); ffc333ac: 4b fd e0 2d bl ffc113d8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc333b0: 80 01 00 24 lwz r0,36(r1) _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); ffc333b4: 38 60 00 09 li r3,9 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc333b8: 83 c1 00 18 lwz r30,24(r1) ffc333bc: 7c 08 03 a6 mtlr r0 ffc333c0: 83 e1 00 1c lwz r31,28(r1) ffc333c4: 38 21 00 20 addi r1,r1,32 ffc333c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08c88 : ffc08c88: 3d 20 00 00 lis r9,0 */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { ffc08c8c: 94 21 ff f0 stwu r1,-16(r1) ffc08c90: 7c 08 02 a6 mflr r0 ffc08c94: 81 69 27 70 lwz r11,10096(r9) ffc08c98: 93 e1 00 0c stw r31,12(r1) ffc08c9c: 7c 7f 1b 78 mr r31,r3 ffc08ca0: 39 6b 00 01 addi r11,r11,1 ffc08ca4: 90 01 00 14 stw r0,20(r1) ffc08ca8: 93 c1 00 08 stw r30,8(r1) ffc08cac: 91 69 27 70 stw r11,10096(r9) _Thread_Disable_dispatch(); if ( ticks == 0 ) { ffc08cb0: 2f 83 00 00 cmpwi cr7,r3,0 ffc08cb4: 41 9e 00 6c beq- cr7,ffc08d20 _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); ffc08cb8: 3f c0 00 00 lis r30,0 ffc08cbc: 80 7e 27 b0 lwz r3,10160(r30) <== ALWAYS TAKEN ffc08cc0: 38 80 00 08 li r4,8 ffc08cc4: 48 00 2e cd bl ffc0bb90 <_Thread_Set_state> <== ALWAYS TAKEN _Watchdog_Initialize( &_Thread_Executing->Timer, ffc08cc8: 81 3e 27 b0 lwz r9,10160(r30) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc08ccc: 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( ffc08cd0: 81 69 00 08 lwz r11,8(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc08cd4: 38 00 00 00 li r0,0 the_watchdog->routine = routine; ffc08cd8: 39 4a ad c0 addi r10,r10,-21056 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc08cdc: 90 09 00 6c stw r0,108(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08ce0: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc08ce4: 93 e9 00 54 stw r31,84(r9) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08ce8: 38 63 2d 48 addi r3,r3,11592 ffc08cec: 38 89 00 48 addi r4,r9,72 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc08cf0: 90 09 00 50 stw r0,80(r9) the_watchdog->routine = routine; ffc08cf4: 91 49 00 64 stw r10,100(r9) the_watchdog->id = id; ffc08cf8: 91 69 00 68 stw r11,104(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc08cfc: 48 00 3a 05 bl ffc0c700 <_Watchdog_Insert> <== ALWAYS TAKEN _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); ffc08d00: 48 00 23 15 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc08d04: 80 01 00 14 lwz r0,20(r1) ffc08d08: 38 60 00 00 li r3,0 ffc08d0c: 83 c1 00 08 lwz r30,8(r1) ffc08d10: 7c 08 03 a6 mtlr r0 ffc08d14: 83 e1 00 0c lwz r31,12(r1) ffc08d18: 38 21 00 10 addi r1,r1,16 ffc08d1c: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_interval ticks ) { _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); ffc08d20: 48 00 33 ed bl ffc0c10c <_Thread_Yield_processor> <== ALWAYS TAKEN _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); ffc08d24: 48 00 22 f1 bl ffc0b014 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc08d28: 80 01 00 14 lwz r0,20(r1) ffc08d2c: 38 60 00 00 li r3,0 ffc08d30: 83 c1 00 08 lwz r30,8(r1) ffc08d34: 7c 08 03 a6 mtlr r0 ffc08d38: 83 e1 00 0c lwz r31,12(r1) ffc08d3c: 38 21 00 10 addi r1,r1,16 ffc08d40: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0a0c0 : */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc0a0c0: 94 21 ff e8 stwu r1,-24(r1) ffc0a0c4: 7c 08 02 a6 mflr r0 Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc0a0c8: 3d 20 00 00 lis r9,0 */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc0a0cc: 90 01 00 1c stw r0,28(r1) Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc0a0d0: 88 09 28 1c lbz r0,10268(r9) */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc0a0d4: 93 c1 00 10 stw r30,16(r1) ffc0a0d8: 7c 7e 1b 78 mr r30,r3 Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc0a0dc: 2f 80 00 00 cmpwi cr7,r0,0 */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc0a0e0: 93 81 00 08 stw r28,8(r1) Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc0a0e4: 38 00 00 0b li r0,11 */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { ffc0a0e8: 93 a1 00 0c stw r29,12(r1) ffc0a0ec: 93 e1 00 14 stw r31,20(r1) Watchdog_Interval seconds; if ( !_TOD_Is_set ) ffc0a0f0: 41 9e 00 28 beq- cr7,ffc0a118 return RTEMS_NOT_DEFINED; if ( !time_buffer ) ffc0a0f4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a0f8: 38 00 00 09 li r0,9 ffc0a0fc: 41 9e 00 1c beq- cr7,ffc0a118 return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; ffc0a100: 3b e0 00 00 li r31,0 ffc0a104: 93 e3 00 18 stw r31,24(r3) if ( !_TOD_Validate( time_buffer ) ) ffc0a108: 4b ff ef b5 bl ffc090bc <_TOD_Validate> <== ALWAYS TAKEN ffc0a10c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0a110: 40 9e 00 2c bne- cr7,ffc0a13c _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc0a114: 38 00 00 14 li r0,20 } ffc0a118: 7c 03 03 78 mr r3,r0 ffc0a11c: 80 01 00 1c lwz r0,28(r1) ffc0a120: 83 81 00 08 lwz r28,8(r1) ffc0a124: 7c 08 03 a6 mtlr r0 ffc0a128: 83 a1 00 0c lwz r29,12(r1) ffc0a12c: 83 c1 00 10 lwz r30,16(r1) ffc0a130: 83 e1 00 14 lwz r31,20(r1) ffc0a134: 38 21 00 18 addi r1,r1,24 ffc0a138: 4e 80 00 20 blr <== ALWAYS TAKEN time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); ffc0a13c: 7f c3 f3 78 mr r3,r30 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc0a140: 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 ); ffc0a144: 4b ff ee d5 bl ffc09018 <_TOD_To_seconds> <== ALWAYS TAKEN if ( seconds <= _TOD_Seconds_since_epoch() ) ffc0a148: 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 ); ffc0a14c: 7c 7e 1b 78 mr r30,r3 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc0a150: 7f 83 00 40 cmplw cr7,r3,r0 ffc0a154: 40 9d ff c0 ble+ cr7,ffc0a114 ffc0a158: 3d 20 00 00 lis r9,0 ffc0a15c: 81 69 28 14 lwz r11,10260(r9) ffc0a160: 38 0b 00 01 addi r0,r11,1 ffc0a164: 90 09 28 14 stw r0,10260(r9) return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); ffc0a168: 3f 80 00 00 lis r28,0 ffc0a16c: 80 7c 28 54 lwz r3,10324(r28) ffc0a170: 38 80 00 10 li r4,16 ffc0a174: 48 00 30 59 bl ffc0d1cc <_Thread_Set_state> <== ALWAYS TAKEN _Watchdog_Initialize( &_Thread_Executing->Timer, ffc0a178: 81 3c 28 54 lwz r9,10324(r28) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0a17c: 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( ffc0a180: 80 09 00 08 lwz r0,8(r9) ffc0a184: 39 6b c3 fc addi r11,r11,-15364 ffc0a188: 91 69 00 64 stw r11,100(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc0a18c: 3c 60 00 00 lis r3,0 ffc0a190: 38 63 2d fc addi r3,r3,11772 void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc0a194: 90 09 00 68 stw r0,104(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc0a198: 38 89 00 48 addi r4,r9,72 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0a19c: 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; ffc0a1a0: 93 e9 00 6c stw r31,108(r9) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0a1a4: 7f c0 f0 50 subf r30,r0,r30 ffc0a1a8: 93 c9 00 54 stw r30,84(r9) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0a1ac: 93 e9 00 50 stw r31,80(r9) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc0a1b0: 48 00 3c ad bl ffc0de5c <_Watchdog_Insert> <== ALWAYS TAKEN ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); ffc0a1b4: 48 00 24 9d bl ffc0c650 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0a1b8: 38 00 00 00 li r0,0 return RTEMS_SUCCESSFUL; ffc0a1bc: 4b ff ff 5c b ffc0a118 <== ALWAYS TAKEN ffc07204 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07204: 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; ffc07208: 38 00 00 09 li r0,9 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0720c: 41 9e 00 44 beq- cr7,ffc07250 <== NEVER TAKEN ffc07210: 40 9d 00 48 ble- cr7,ffc07258 <== ALWAYS TAKEN ffc07214: 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; ffc07218: 38 00 00 0e li r0,14 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0721c: 41 9e 00 34 beq- cr7,ffc07250 <== NOT EXECUTED ffc07220: 40 9d 00 78 ble- cr7,ffc07298 <== NOT EXECUTED ffc07224: 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; ffc07228: 38 00 00 11 li r0,17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0722c: 41 9e 00 24 beq- cr7,ffc07250 <== NOT EXECUTED ffc07230: 40 9d 00 d4 ble- cr7,ffc07304 <== NOT EXECUTED ffc07234: 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; ffc07238: 38 00 00 12 li r0,18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0723c: 41 9e 00 14 beq- cr7,ffc07250 <== NOT EXECUTED ffc07240: 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; ffc07244: 38 00 00 13 li r0,19 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07248: 41 9e 00 08 beq- cr7,ffc07250 <== 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; ffc0724c: 38 00 ff ff li r0,-1 default: baud_index = -1; break; } return baud_index; } ffc07250: 7c 03 03 78 mr r3,r0 ffc07254: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07258: 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; ffc0725c: 38 00 00 04 li r0,4 rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07260: 41 be ff f0 beq- cr7,ffc07250 <== NEVER TAKEN ffc07264: 41 9d 00 64 bgt- cr7,ffc072c8 <== NEVER TAKEN ffc07268: 2f 83 00 01 cmpwi cr7,r3,1 ffc0726c: 38 00 00 01 li r0,1 ffc07270: 41 be ff e0 beq- cr7,ffc07250 <== NEVER TAKEN ffc07274: 40 9d 00 ac ble- cr7,ffc07320 <== ALWAYS TAKEN ffc07278: 2f 83 00 02 cmpwi cr7,r3,2 <== NOT EXECUTED ffc0727c: 38 00 00 02 li r0,2 <== NOT EXECUTED ffc07280: 41 be ff d0 beq- cr7,ffc07250 <== NOT EXECUTED ffc07284: 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; ffc07288: 38 00 00 03 li r0,3 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0728c: 41 be ff c4 beq- cr7,ffc07250 <== 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; ffc07290: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc07294: 4b ff ff bc b ffc07250 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07298: 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; ffc0729c: 38 00 00 0b li r0,11 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc072a0: 41 be ff b0 beq- cr7,ffc07250 <== NOT EXECUTED ffc072a4: 41 9c 00 58 blt- cr7,ffc072fc <== NOT EXECUTED ffc072a8: 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; ffc072ac: 38 00 00 0c li r0,12 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc072b0: 41 be ff a0 beq- cr7,ffc07250 <== NOT EXECUTED ffc072b4: 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; ffc072b8: 38 00 00 0d li r0,13 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc072bc: 41 be ff 94 beq- cr7,ffc07250 <== 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; ffc072c0: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc072c4: 4b ff ff 8c b ffc07250 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc072c8: 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; ffc072cc: 38 00 00 06 li r0,6 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc072d0: 41 be ff 80 beq- cr7,ffc07250 <== NOT EXECUTED ffc072d4: 41 9c 00 20 blt- cr7,ffc072f4 <== NOT EXECUTED ffc072d8: 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; ffc072dc: 38 00 00 07 li r0,7 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc072e0: 41 be ff 70 beq- cr7,ffc07250 <== NOT EXECUTED ffc072e4: 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; ffc072e8: 38 00 00 08 li r0,8 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc072ec: 40 9e ff 60 bne+ cr7,ffc0724c <== NOT EXECUTED ffc072f0: 4b ff ff 60 b ffc07250 <== 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; ffc072f4: 38 00 00 05 li r0,5 <== NOT EXECUTED case B150: baud_index = 5; break; ffc072f8: 4b ff ff 58 b ffc07250 <== 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; ffc072fc: 38 00 00 0a li r0,10 <== NOT EXECUTED case B1800: baud_index = 10; break; ffc07300: 4b ff ff 50 b ffc07250 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07304: 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; ffc07308: 38 00 00 0f li r0,15 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc0730c: 41 be ff 44 beq- cr7,ffc07250 <== NOT EXECUTED ffc07310: 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; ffc07314: 38 00 00 10 li r0,16 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { ffc07318: 40 9e ff 34 bne+ cr7,ffc0724c <== NOT EXECUTED ffc0731c: 4b ff ff 34 b ffc07250 <== NOT EXECUTED ffc07320: 2f 83 00 00 cmpwi cr7,r3,0 ffc07324: 38 00 00 00 li r0,0 ffc07328: 41 be ff 28 beq- cr7,ffc07250 <== NEVER TAKEN ffc0732c: 4b ff ff 20 b ffc0724c <== ALWAYS TAKEN ffc07330 : int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07330: 2f 83 00 09 cmpwi cr7,r3,9 case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; ffc07334: 38 00 04 b0 li r0,1200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07338: 41 9e 00 50 beq- cr7,ffc07388 ffc0733c: 40 9d 00 54 ble- cr7,ffc07390 ffc07340: 2f 83 00 0e cmpwi cr7,r3,14 case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; ffc07344: 38 00 4b 00 li r0,19200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07348: 41 9e 00 40 beq- cr7,ffc07388 ffc0734c: 40 9d 00 84 ble- cr7,ffc073d0 ffc07350: 2f 83 10 02 cmpwi cr7,r3,4098 case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; ffc07354: 3c 00 00 01 lis r0,1 ffc07358: 60 00 c2 00 ori r0,r0,49664 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc0735c: 41 9e 00 2c beq- cr7,ffc07388 ffc07360: 40 9d 00 dc ble- cr7,ffc0743c ffc07364: 2f 83 10 03 cmpwi cr7,r3,4099 case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; ffc07368: 3c 00 00 03 lis r0,3 ffc0736c: 60 00 84 00 ori r0,r0,33792 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07370: 41 9e 00 18 beq- cr7,ffc07388 ffc07374: 2f 83 10 04 cmpwi cr7,r3,4100 case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; case B57600: baud = 57600; break; case B115200: baud = 115200; break; case B230400: baud = 230400; break; ffc07378: 3c 00 00 07 lis r0,7 ffc0737c: 60 00 08 00 ori r0,r0,2048 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07380: 41 9e 00 08 beq- cr7,ffc07388 <== 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; ffc07384: 38 00 ff ff li r0,-1 default: baud = -1; break; } return baud; } ffc07388: 7c 03 03 78 mr r3,r0 ffc0738c: 4e 80 00 20 blr <== ALWAYS TAKEN int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07390: 2f 83 00 04 cmpwi cr7,r3,4 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; ffc07394: 38 00 00 86 li r0,134 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07398: 41 be ff f0 beq- cr7,ffc07388 ffc0739c: 41 9d 00 64 bgt- cr7,ffc07400 ffc073a0: 2f 83 00 01 cmpwi cr7,r3,1 ffc073a4: 38 00 00 32 li r0,50 ffc073a8: 41 be ff e0 beq- cr7,ffc07388 ffc073ac: 40 9d 00 b4 ble- cr7,ffc07460 ffc073b0: 2f 83 00 02 cmpwi cr7,r3,2 ffc073b4: 38 00 00 4b li r0,75 ffc073b8: 41 be ff d0 beq- cr7,ffc07388 ffc073bc: 2f 83 00 03 cmpwi cr7,r3,3 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; ffc073c0: 38 00 00 6e li r0,110 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc073c4: 41 be ff c4 beq- cr7,ffc07388 <== 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; ffc073c8: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc073cc: 4b ff ff bc b ffc07388 <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { ffc073d0: 2f 83 00 0b cmpwi cr7,r3,11 case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; ffc073d4: 38 00 09 60 li r0,2400 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc073d8: 41 be ff b0 beq- cr7,ffc07388 ffc073dc: 41 9c 00 58 blt- cr7,ffc07434 ffc073e0: 2f 83 00 0c cmpwi cr7,r3,12 case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; ffc073e4: 38 00 12 c0 li r0,4800 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc073e8: 41 be ff a0 beq- cr7,ffc07388 ffc073ec: 2f 83 00 0d cmpwi cr7,r3,13 case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; ffc073f0: 38 00 25 80 li r0,9600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc073f4: 41 be ff 94 beq- cr7,ffc07388 <== 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; ffc073f8: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc073fc: 4b ff ff 8c b ffc07388 <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07400: 2f 83 00 06 cmpwi cr7,r3,6 case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; ffc07404: 38 00 00 c8 li r0,200 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07408: 41 be ff 80 beq- cr7,ffc07388 ffc0740c: 41 9c 00 20 blt- cr7,ffc0742c ffc07410: 2f 83 00 07 cmpwi cr7,r3,7 case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; ffc07414: 38 00 01 2c li r0,300 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07418: 41 be ff 70 beq- cr7,ffc07388 ffc0741c: 2f 83 00 08 cmpwi cr7,r3,8 case B75: baud = 75; break; case B110: baud = 110; break; case B134: baud = 134; break; case B150: baud = 150; break; case B200: baud = 200; break; case B300: baud = 300; break; ffc07420: 38 00 02 58 li r0,600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07424: 40 9e ff 60 bne+ cr7,ffc07384 <== NEVER TAKEN ffc07428: 4b ff ff 60 b ffc07388 <== 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; ffc0742c: 38 00 00 96 li r0,150 case B150: baud = 150; break; ffc07430: 4b ff ff 58 b ffc07388 <== ALWAYS TAKEN case B200: baud = 200; break; case B300: baud = 300; break; case B600: baud = 600; break; case B1200: baud = 1200; break; ffc07434: 38 00 07 08 li r0,1800 case B1800: baud = 1800; break; ffc07438: 4b ff ff 50 b ffc07388 <== ALWAYS TAKEN int termios_baud ) { int32_t baud; switch (termios_baud) { ffc0743c: 2f 83 00 0f cmpwi cr7,r3,15 case B1200: baud = 1200; break; case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; ffc07440: 38 00 00 00 li r0,0 ffc07444: 60 00 96 00 ori r0,r0,38400 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07448: 41 be ff 40 beq- cr7,ffc07388 ffc0744c: 2f 83 10 01 cmpwi cr7,r3,4097 case B1800: baud = 1800; break; case B2400: baud = 2400; break; case B4800: baud = 4800; break; case B9600: baud = 9600; break; case B19200: baud = 19200; break; case B38400: baud = 38400; break; ffc07450: 38 00 00 00 li r0,0 ffc07454: 60 00 e1 00 ori r0,r0,57600 int termios_baud ) { int32_t baud; switch (termios_baud) { ffc07458: 40 9e ff 2c bne+ cr7,ffc07384 <== NEVER TAKEN ffc0745c: 4b ff ff 2c b ffc07388 <== ALWAYS TAKEN ffc07460: 2f 83 00 00 cmpwi cr7,r3,0 ffc07464: 38 00 00 00 li r0,0 ffc07468: 41 be ff 20 beq- cr7,ffc07388 ffc0746c: 4b ff ff 18 b ffc07384 <== ALWAYS TAKEN ffc05670 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; ffc05670: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc05674: 39 2b 21 68 addi r9,r11,8552 <== NOT EXECUTED ffc05678: 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; } ffc0567c: 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; ffc05680: 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; ffc05684: 90 89 00 04 stw r4,4(r9) <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } ffc05688: 4e 80 00 20 blr <== NOT EXECUTED ffc070d4 : } } rtems_status_code rtems_termios_close (void *arg) { ffc070d4: 94 21 ff e8 stwu r1,-24(r1) ffc070d8: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN 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); ffc070dc: 38 80 00 00 li r4,0 } } rtems_status_code rtems_termios_close (void *arg) { ffc070e0: 90 01 00 1c stw r0,28(r1) <== ALWAYS TAKEN 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); ffc070e4: 38 a0 00 00 li r5,0 } } rtems_status_code rtems_termios_close (void *arg) { ffc070e8: 93 c1 00 10 stw r30,16(r1) rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc070ec: 3f c0 00 00 lis r30,0 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc070f0: 81 23 00 00 lwz r9,0(r3) } } rtems_status_code rtems_termios_close (void *arg) { ffc070f4: 93 a1 00 0c stw r29,12(r1) ffc070f8: 7c 7d 1b 78 mr r29,r3 rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc070fc: 80 7e 27 58 lwz r3,10072(r30) } } rtems_status_code rtems_termios_close (void *arg) { ffc07100: 93 e1 00 14 stw r31,20(r1) <== ALWAYS TAKEN rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc07104: 83 e9 00 38 lwz r31,56(r9) rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc07108: 48 00 14 7d bl ffc08584 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) ffc0710c: 2f 83 00 00 cmpwi cr7,r3,0 ffc07110: 40 9e 01 ac bne- cr7,ffc072bc <== NEVER TAKEN rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { ffc07114: 81 3f 00 08 lwz r9,8(r31) ffc07118: 38 09 ff ff addi r0,r9,-1 ffc0711c: 2f 80 00 00 cmpwi cr7,r0,0 <== ALWAYS TAKEN ffc07120: 90 1f 00 08 stw r0,8(r31) ffc07124: 40 9e 00 d0 bne- cr7,ffc071f4 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { ffc07128: 80 1f 00 cc lwz r0,204(r31) <== ALWAYS TAKEN ffc0712c: 3d 20 00 00 lis r9,0 ffc07130: 39 29 28 88 addi r9,r9,10376 ffc07134: 54 00 28 34 rlwinm r0,r0,5,0,26 ffc07138: 7d 29 02 14 add r9,r9,r0 ffc0713c: 80 09 00 04 lwz r0,4(r9) ffc07140: 2f 80 00 00 cmpwi cr7,r0,0 ffc07144: 41 9e 01 24 beq- cr7,ffc07268 <== ALWAYS TAKEN /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); ffc07148: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0714c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc07150: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts ffc07154: 80 1f 00 b4 lwz r0,180(r31) <== NOT EXECUTED ffc07158: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0715c: 41 9e 01 38 beq- cr7,ffc07294 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) ffc07160: 80 1f 00 9c lwz r0,156(r31) ffc07164: 2f 80 00 00 cmpwi cr7,r0,0 ffc07168: 41 9e 00 18 beq- cr7,ffc07180 <== ALWAYS TAKEN (*tty->device.lastClose)(tty->major, tty->minor, arg); ffc0716c: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED ffc07170: 80 7f 00 0c lwz r3,12(r31) <== NOT EXECUTED ffc07174: 80 9f 00 10 lwz r4,16(r31) <== NOT EXECUTED ffc07178: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0717c: 4e 80 04 21 bctrl <== NOT EXECUTED if (tty->forw == NULL) { ffc07180: 81 3f 00 00 lwz r9,0(r31) ffc07184: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN ffc07188: 41 9e 00 a0 beq- cr7,ffc07228 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; ffc0718c: 80 1f 00 04 lwz r0,4(r31) ffc07190: 90 09 00 04 stw r0,4(r9) } if (tty->back == NULL) { ffc07194: 81 7f 00 04 lwz r11,4(r31) ffc07198: 2f 8b 00 00 cmpwi cr7,r11,0 ffc0719c: 41 9e 00 b4 beq- cr7,ffc07250 <== ALWAYS TAKEN if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; ffc071a0: 91 2b 00 00 stw r9,0(r11) <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); ffc071a4: 80 7f 00 14 lwz r3,20(r31) ffc071a8: 48 00 13 01 bl ffc084a8 <== ALWAYS TAKEN rtems_semaphore_delete (tty->osem); ffc071ac: 80 7f 00 18 lwz r3,24(r31) ffc071b0: 48 00 12 f9 bl ffc084a8 <== ALWAYS TAKEN rtems_semaphore_delete (tty->rawOutBuf.Semaphore); ffc071b4: 80 7f 00 8c lwz r3,140(r31) ffc071b8: 48 00 12 f1 bl ffc084a8 <== ALWAYS TAKEN if ((tty->device.pollRead == NULL) || ffc071bc: 80 1f 00 a0 lwz r0,160(r31) ffc071c0: 2f 80 00 00 cmpwi cr7,r0,0 ffc071c4: 41 9e 00 58 beq- cr7,ffc0721c <== NEVER TAKEN (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) ffc071c8: 80 1f 00 b4 lwz r0,180(r31) ffc071cc: 2f 80 00 02 cmpwi cr7,r0,2 <== ALWAYS TAKEN ffc071d0: 41 9e 00 4c beq- cr7,ffc0721c <== NEVER TAKEN rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); ffc071d4: 80 7f 00 58 lwz r3,88(r31) <== ALWAYS TAKEN ffc071d8: 4b ff d2 91 bl ffc04468 <== ALWAYS TAKEN free (tty->rawOutBuf.theBuf); ffc071dc: 80 7f 00 7c lwz r3,124(r31) ffc071e0: 4b ff d2 89 bl ffc04468 <== ALWAYS TAKEN free (tty->cbuf); ffc071e4: 80 7f 00 1c lwz r3,28(r31) ffc071e8: 4b ff d2 81 bl ffc04468 <== ALWAYS TAKEN free (tty); ffc071ec: 7f e3 fb 78 mr r3,r31 ffc071f0: 4b ff d2 79 bl ffc04468 <== ALWAYS TAKEN } rtems_semaphore_release (rtems_termios_ttyMutex); ffc071f4: 80 7e 27 58 lwz r3,10072(r30) ffc071f8: 48 00 14 ed bl ffc086e4 <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc071fc: 80 01 00 1c lwz r0,28(r1) ffc07200: 38 60 00 00 li r3,0 ffc07204: 83 a1 00 0c lwz r29,12(r1) ffc07208: 7c 08 03 a6 mtlr r0 ffc0720c: 83 c1 00 10 lwz r30,16(r1) ffc07210: 83 e1 00 14 lwz r31,20(r1) ffc07214: 38 21 00 18 addi r1,r1,24 ffc07218: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_semaphore_delete (tty->isem); rtems_semaphore_delete (tty->osem); rtems_semaphore_delete (tty->rawOutBuf.Semaphore); if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); ffc0721c: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED ffc07220: 48 00 12 89 bl ffc084a8 <== NOT EXECUTED ffc07224: 4b ff ff b0 b ffc071d4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; ffc07228: 81 7f 00 04 lwz r11,4(r31) ffc0722c: 3d 40 00 00 lis r10,0 if ( rtems_termios_ttyTail != NULL ) { ffc07230: 2f 8b 00 00 cmpwi cr7,r11,0 rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { rtems_termios_ttyTail = tty->back; ffc07234: 91 6a 27 5c stw r11,10076(r10) if ( rtems_termios_ttyTail != NULL ) { ffc07238: 41 9e 00 88 beq- cr7,ffc072c0 <== ALWAYS TAKEN rtems_termios_ttyTail->forw = NULL; ffc0723c: 91 2b 00 00 stw r9,0(r11) <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { ffc07240: 81 7f 00 04 lwz r11,4(r31) <== NOT EXECUTED ffc07244: 81 3f 00 00 lwz r9,0(r31) <== NOT EXECUTED ffc07248: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc0724c: 40 9e ff 54 bne+ cr7,ffc071a0 <== NOT EXECUTED rtems_termios_ttyHead = tty->forw; if ( rtems_termios_ttyHead != NULL ) { ffc07250: 2f 89 00 00 cmpwi cr7,r9,0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; ffc07254: 3d 40 00 00 lis r10,0 ffc07258: 91 2a 27 60 stw r9,10080(r10) if ( rtems_termios_ttyHead != NULL ) { ffc0725c: 41 be ff 48 beq- cr7,ffc071a4 <== NEVER TAKEN rtems_termios_ttyHead->back = NULL; ffc07260: 91 69 00 04 stw r11,4(r9) ffc07264: 4b ff ff 40 b ffc071a4 <== ALWAYS TAKEN } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc07268: 80 7f 00 18 lwz r3,24(r31) ffc0726c: 38 80 00 00 li r4,0 ffc07270: 38 a0 00 00 li r5,0 <== ALWAYS TAKEN ffc07274: 48 00 13 11 bl ffc08584 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) { ffc07278: 2f 83 00 00 cmpwi cr7,r3,0 ffc0727c: 40 9e 00 40 bne- cr7,ffc072bc <== NEVER TAKEN rtems_fatal_error_occurred (sc); } drainOutput (tty); ffc07280: 7f e3 fb 78 mr r3,r31 ffc07284: 4b ff f5 39 bl ffc067bc <== ALWAYS TAKEN } if (tty->device.outputUsesInterrupts ffc07288: 80 1f 00 b4 lwz r0,180(r31) ffc0728c: 2f 80 00 02 cmpwi cr7,r0,2 ffc07290: 40 9e fe d0 bne+ cr7,ffc07160 <== ALWAYS TAKEN == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( ffc07294: 80 7f 00 c4 lwz r3,196(r31) <== NOT EXECUTED ffc07298: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc0729c: 48 00 0d 65 bl ffc08000 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc072a0: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc072a4: 40 9e 00 18 bne- cr7,ffc072bc <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( ffc072a8: 80 7f 00 c8 lwz r3,200(r31) <== NOT EXECUTED ffc072ac: 38 80 00 01 li r4,1 <== NOT EXECUTED ffc072b0: 48 00 0d 51 bl ffc08000 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc072b4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc072b8: 41 9e fe a8 beq+ cr7,ffc07160 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc072bc: 48 00 1b f1 bl ffc08eac <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; ffc072c0: 3d 20 00 00 lis r9,0 ffc072c4: 91 69 27 60 stw r11,10080(r9) ffc072c8: 4b ff fe dc b ffc071a4 <== ALWAYS TAKEN ffc0593c : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { ffc0593c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc05940: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05944: 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) { ffc05948: 81 63 00 b4 lwz r11,180(r3) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; ffc0594c: 80 03 00 90 lwz r0,144(r3) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc05950: 2f 8b 00 02 cmpwi cr7,r11,2 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; ffc05954: 7c 00 22 14 add r0,r0,r4 <== NOT EXECUTED ffc05958: 90 03 00 90 stw r0,144(r3) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc0595c: 41 9e 00 4c beq- cr7,ffc059a8 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { ffc05960: 80 03 00 cc lwz r0,204(r3) <== NOT EXECUTED ffc05964: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc05968: 41 9e 00 14 beq- cr7,ffc0597c <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } ffc0596c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc05970: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc05974: 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); ffc05978: 4b ff fd 3c b ffc056b4 <== NOT EXECUTED } else if (tty->t_line == PPPDISC ) { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc0597c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc05980: 80 09 29 3c lwz r0,10556(r9) <== NOT EXECUTED ffc05984: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05988: 41 9e 00 0c beq- cr7,ffc05994 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); ffc0598c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05990: 4e 80 04 21 bctrl <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } ffc05994: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc05998: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0599c: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc059a0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc059a4: 4e 80 00 20 blr <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, ffc059a8: 80 63 00 c8 lwz r3,200(r3) <== NOT EXECUTED ffc059ac: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc059b0: 48 00 26 51 bl ffc08000 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) ffc059b4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc059b8: 41 9e ff dc beq+ cr7,ffc05994 <== NOT EXECUTED rtems_fatal_error_occurred (sc); ffc059bc: 48 00 34 f1 bl ffc08eac <== NOT EXECUTED ffc059c0 : * 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) { ffc059c0: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc059c4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc059c8: 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) { ffc059cc: 81 23 00 cc lwz r9,204(r3) <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc059d0: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc059d4: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc059d8: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc059dc: 3b bd 28 88 addi r29,r29,10376 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc059e0: 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) { ffc059e4: 38 09 00 10 addi r0,r9,16 <== NOT EXECUTED ffc059e8: 7c 1d 00 2e lwzx r0,r29,r0 <== NOT EXECUTED * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) { ffc059ec: 7c bb 2b 78 mr r27,r5 <== NOT EXECUTED ffc059f0: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED ffc059f4: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc059f8: 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) { ffc059fc: 93 e1 00 2c stw r31,44(r1) <== NOT EXECUTED ffc05a00: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc05a04: 92 c1 00 08 stw r22,8(r1) <== NOT EXECUTED ffc05a08: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED ffc05a0c: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED ffc05a10: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED ffc05a14: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED ffc05a18: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { ffc05a1c: 41 9e 00 f0 beq- cr7,ffc05b0c <== NOT EXECUTED while (len--) { ffc05a20: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc05a24: 41 9e 00 38 beq- cr7,ffc05a5c <== NOT EXECUTED ffc05a28: 3b 80 00 00 li r28,0 <== NOT EXECUTED ffc05a2c: 48 00 00 14 b ffc05a40 <== NOT EXECUTED ffc05a30: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED ffc05a34: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc05a38: 38 09 00 10 addi r0,r9,16 <== NOT EXECUTED ffc05a3c: 7c 1d 00 2e lwzx r0,r29,r0 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); ffc05a40: 7c 7e e0 ae lbzx r3,r30,r28 <== NOT EXECUTED ffc05a44: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc05a48: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05a4c: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED ffc05a50: 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--) { ffc05a54: 7f 9b e0 00 cmpw cr7,r27,r28 <== NOT EXECUTED ffc05a58: 40 9e ff d8 bne+ cr7,ffc05a30 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { ffc05a5c: 80 1f 00 e4 lwz r0,228(r31) <== NOT EXECUTED ffc05a60: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05a64: 40 9e 00 68 bne- cr7,ffc05acc <== NOT EXECUTED ffc05a68: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED ffc05a6c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05a70: 41 9e 00 5c beq- cr7,ffc05acc <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc05a74: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED ffc05a78: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED ffc05a7c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc05a80: 3b 40 00 00 li r26,0 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc05a84: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc05a88: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc05a8c: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } ffc05a90: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc05a94: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc05a98: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED ffc05a9c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05aa0: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc05aa4: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc05aa8: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc05aac: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc05ab0: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc05ab4: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc05ab8: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc05abc: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc05ac0: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc05ac4: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc05ac8: 4e 80 00 20 blr <== NOT EXECUTED ffc05acc: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; ffc05ad0: 3b 40 00 00 li r26,0 <== NOT EXECUTED } ffc05ad4: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc05ad8: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED ffc05adc: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05ae0: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc05ae4: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc05ae8: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc05aec: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc05af0: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc05af4: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc05af8: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc05afc: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc05b00: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc05b04: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc05b08: 4e 80 00 20 blr <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc05b0c: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED if ((tty->flow_ctrl & FL_OSTOP) || (tty->rawOutBufState == rob_idle)) { /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; (*tty->device.write)(tty->minor, ffc05b10: 3a c3 00 4a addi r22,r3,74 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc05b14: 3a e3 00 30 addi r23,r3,48 <== NOT EXECUTED ffc05b18: 3b 20 00 00 li r25,0 <== NOT EXECUTED ffc05b1c: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc05b20: 48 00 00 e4 b ffc05c04 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; ffc05b24: 83 9f 00 60 lwz r28,96(r31) <== NOT EXECUTED ffc05b28: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc05b2c: 38 1c 00 01 addi r0,r28,1 <== NOT EXECUTED ffc05b30: 7f 80 4b 96 divwu r28,r0,r9 <== NOT EXECUTED ffc05b34: 7f 9c 49 d6 mullw r28,r28,r9 <== NOT EXECUTED ffc05b38: 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 ( ffc05b3c: 7f 00 00 a6 mfmsr r24 <== NOT EXECUTED ffc05b40: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05b44: 7f 00 00 78 andc r0,r24,r0 <== NOT EXECUTED ffc05b48: 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) ffc05b4c: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED ffc05b50: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED ffc05b54: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc05b58: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && ffc05b5c: 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) ffc05b60: 7c 00 e2 14 add r0,r0,r28 <== NOT EXECUTED ffc05b64: 7d 40 4b 96 divwu r10,r0,r9 <== NOT EXECUTED ffc05b68: 7d 2a 49 d6 mullw r9,r10,r9 <== NOT EXECUTED ffc05b6c: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && ffc05b70: 7f 80 58 40 cmplw cr7,r0,r11 <== NOT EXECUTED ffc05b74: 40 9d 00 3c ble- cr7,ffc05bb0 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { ffc05b78: 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) ffc05b7c: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc05b80: 40 82 00 30 bne- ffc05bb0 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; ffc05b84: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05b88: 60 00 00 01 ori r0,r0,1 <== NOT EXECUTED ffc05b8c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) ffc05b90: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05b94: 70 00 04 02 andi. r0,r0,1026 <== NOT EXECUTED ffc05b98: 2f 80 04 00 cmpwi cr7,r0,1024 <== NOT EXECUTED ffc05b9c: 41 9e 01 a8 beq- cr7,ffc05d44 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) ffc05ba0: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05ba4: 70 00 01 04 andi. r0,r0,260 <== NOT EXECUTED ffc05ba8: 2f 80 01 00 cmpwi cr7,r0,256 <== NOT EXECUTED ffc05bac: 41 9e 01 d8 beq- cr7,ffc05d84 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05bb0: 7f 00 01 24 mtmsr r24 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { ffc05bb4: 80 1f 00 5c lwz r0,92(r31) <== NOT EXECUTED ffc05bb8: 7f 80 e0 00 cmpw cr7,r0,r28 <== NOT EXECUTED ffc05bbc: 41 9e 00 e8 beq- cr7,ffc05ca4 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; ffc05bc0: 81 3f 00 58 lwz r9,88(r31) <== NOT EXECUTED ffc05bc4: 7f 69 e1 ae stbx r27,r9,r28 <== NOT EXECUTED tty->rawInBuf.Tail = newTail; /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { ffc05bc8: 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; ffc05bcc: 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 )) { ffc05bd0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05bd4: 40 9e 00 28 bne- cr7,ffc05bfc <== NOT EXECUTED ffc05bd8: 80 1f 00 dc lwz r0,220(r31) <== NOT EXECUTED ffc05bdc: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05be0: 41 9e 00 1c beq- cr7,ffc05bfc <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); ffc05be4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05be8: 7e e3 bb 78 mr r3,r23 <== NOT EXECUTED ffc05bec: 80 9f 00 e0 lwz r4,224(r31) <== NOT EXECUTED ffc05bf0: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 1; ffc05bf4: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc05bf8: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; ffc05bfc: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED ffc05c00: 3b bd ff ff addi r29,r29,-1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { ffc05c04: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc05c08: 41 9e 00 d8 beq- cr7,ffc05ce0 <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { ffc05c0c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; ffc05c10: 8b 7e 00 00 lbz r27,0(r30) <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { ffc05c14: 70 09 02 00 andi. r9,r0,512 <== NOT EXECUTED ffc05c18: 41 82 00 1c beq- ffc05c34 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { ffc05c1c: 88 1f 00 4a lbz r0,74(r31) <== NOT EXECUTED ffc05c20: 7f 80 d8 00 cmpw cr7,r0,r27 <== NOT EXECUTED ffc05c24: 41 9e 00 88 beq- cr7,ffc05cac <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { ffc05c28: 88 1f 00 49 lbz r0,73(r31) <== NOT EXECUTED ffc05c2c: 7f 80 d8 00 cmpw cr7,r0,r27 <== NOT EXECUTED ffc05c30: 41 9e 00 9c beq- cr7,ffc05ccc <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { ffc05c34: 2f 99 00 00 cmpwi cr7,r25,0 <== NOT EXECUTED ffc05c38: 41 9e fe ec beq+ cr7,ffc05b24 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { ffc05c3c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05c40: 54 00 06 b6 rlwinm r0,r0,0,26,27 <== NOT EXECUTED ffc05c44: 2f 80 00 20 cmpwi cr7,r0,32 <== NOT EXECUTED ffc05c48: 40 9e ff b4 bne+ cr7,ffc05bfc <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05c4c: 7f 80 00 a6 mfmsr r28 <== NOT EXECUTED ffc05c50: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05c54: 7f 80 00 78 andc r0,r28,r0 <== NOT EXECUTED ffc05c58: 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) { ffc05c5c: 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; ffc05c60: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc05c64: 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; ffc05c68: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED ffc05c6c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc05c70: 40 9e 00 0c bne- cr7,ffc05c7c <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05c74: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED ffc05c78: 4b ff ff 84 b ffc05bfc <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); ffc05c7c: 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, ffc05c80: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05c84: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc05c88: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05c8c: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc05c90: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05c94: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05c98: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05c9c: 7f 80 01 24 mtmsr r28 <== NOT EXECUTED ffc05ca0: 4b ff ff 5c b ffc05bfc <== NOT EXECUTED } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++; ffc05ca4: 3b 5a 00 01 addi r26,r26,1 <== NOT EXECUTED ffc05ca8: 4b ff ff 54 b ffc05bfc <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { ffc05cac: 89 3f 00 49 lbz r9,73(r31) <== NOT EXECUTED ffc05cb0: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc05cb4: 41 9e 00 7c beq- cr7,ffc05d30 <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; ffc05cb8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; ffc05cbc: 3b 20 00 01 li r25,1 <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; ffc05cc0: 60 00 00 10 ori r0,r0,16 <== NOT EXECUTED ffc05cc4: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED ffc05cc8: 4b ff ff 74 b ffc05c3c <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; ffc05ccc: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; ffc05cd0: 3b 20 00 01 li r25,1 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; ffc05cd4: 54 00 07 34 rlwinm r0,r0,0,28,26 <== NOT EXECUTED ffc05cd8: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED ffc05cdc: 4b ff ff 60 b ffc05c3c <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; ffc05ce0: 80 1f 00 78 lwz r0,120(r31) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); ffc05ce4: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; ffc05ce8: 7c 00 d2 14 add r0,r0,r26 <== NOT EXECUTED ffc05cec: 90 1f 00 78 stw r0,120(r31) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); ffc05cf0: 48 00 29 f5 bl ffc086e4 <== NOT EXECUTED return dropped; } ffc05cf4: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc05cf8: 7f 43 d3 78 mr r3,r26 <== NOT EXECUTED ffc05cfc: 82 c1 00 08 lwz r22,8(r1) <== NOT EXECUTED ffc05d00: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05d04: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc05d08: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc05d0c: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc05d10: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc05d14: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc05d18: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc05d1c: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc05d20: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc05d24: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc05d28: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc05d2c: 4e 80 00 20 blr <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; ffc05d30: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; ffc05d34: 3b 20 00 01 li r25,1 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { if (c == tty->termios.c_cc[VSTART]) { /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; ffc05d38: 68 00 00 10 xori r0,r0,16 <== NOT EXECUTED ffc05d3c: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED ffc05d40: 4b ff fe fc b ffc05c3c <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || ffc05d44: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05d48: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc05d4c: 40 82 00 10 bne- ffc05d5c <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { ffc05d50: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED ffc05d54: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05d58: 40 be fe 58 bne- cr7,ffc05bb0 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; ffc05d5c: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05d60: 7e c4 b3 78 mr r4,r22 <== NOT EXECUTED ffc05d64: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05d68: 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; ffc05d6c: 61 29 00 02 ori r9,r9,2 <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05d70: 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; ffc05d74: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05d78: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05d7c: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05d80: 4b ff fe 30 b ffc05bb0 <== NOT EXECUTED } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05d84: 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; ffc05d88: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05d8c: 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; ffc05d90: 61 29 00 04 ori r9,r9,4 <== NOT EXECUTED ffc05d94: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { ffc05d98: 41 be fe 18 beq- cr7,ffc05bb0 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); ffc05d9c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05da0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05da4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05da8: 4b ff fe 08 b ffc05bb0 <== NOT EXECUTED ffc0561c : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { ffc0561c: 7c 08 02 a6 mflr r0 ffc05620: 94 21 ff f8 stwu r1,-8(r1) <== ALWAYS TAKEN rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { ffc05624: 3c e0 00 00 lis r7,0 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { ffc05628: 90 01 00 0c stw r0,12(r1) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { ffc0562c: 80 07 27 58 lwz r0,10072(r7) ffc05630: 38 e7 27 58 addi r7,r7,10072 ffc05634: 2f 80 00 00 cmpwi cr7,r0,0 ffc05638: 41 9e 00 14 beq- cr7,ffc0564c RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } ffc0563c: 80 01 00 0c lwz r0,12(r1) ffc05640: 38 21 00 08 addi r1,r1,8 ffc05644: 7c 08 03 a6 mtlr r0 ffc05648: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create ( ffc0564c: 3c 60 54 52 lis r3,21586 ffc05650: 60 63 6d 69 ori r3,r3,28009 ffc05654: 38 80 00 01 li r4,1 ffc05658: 38 a0 00 54 li r5,84 ffc0565c: 38 c0 00 00 li r6,0 <== ALWAYS TAKEN ffc05660: 48 00 2c 29 bl ffc08288 <== 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) ffc05664: 2f 83 00 00 cmpwi cr7,r3,0 <== ALWAYS TAKEN ffc05668: 41 9e ff d4 beq+ cr7,ffc0563c <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); ffc0566c: 48 00 38 41 bl ffc08eac <== NOT EXECUTED ffc06c90 : } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06c90: 94 21 ff e0 stwu r1,-32(r1) ffc06c94: 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); ffc06c98: 38 80 00 00 li r4,0 } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06c9c: 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; ffc06ca0: 38 00 00 00 li r0,0 sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06ca4: 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; ffc06ca8: 81 23 00 00 lwz r9,0(r3) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06cac: 93 c1 00 18 stw r30,24(r1) rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; ffc06cb0: 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; ffc06cb4: 83 c9 00 38 lwz r30,56(r9) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06cb8: 93 e1 00 1c stw r31,28(r1) ffc06cbc: 7c 7f 1b 78 mr r31,r3 struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06cc0: 80 7e 00 18 lwz r3,24(r30) } } rtems_status_code rtems_termios_ioctl (void *arg) { ffc06cc4: 93 81 00 10 stw r28,16(r1) ffc06cc8: 93 a1 00 14 stw r29,20(r1) ffc06ccc: 93 41 00 08 stw r26,8(r1) ffc06cd0: 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; ffc06cd4: 83 9f 00 08 lwz r28,8(r31) rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06cd8: 48 00 18 ad bl ffc08584 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) { ffc06cdc: 7c 7d 1b 79 mr. r29,r3 ffc06ce0: 40 82 00 4c bne- ffc06d2c <== NEVER TAKEN args->ioctl_return = sc; return sc; } switch (args->command) { ffc06ce4: 80 1f 00 04 lwz r0,4(r31) ffc06ce8: 2f 80 00 04 cmpwi cr7,r0,4 ffc06cec: 41 9e 00 28 beq- cr7,ffc06d14 <== NEVER TAKEN ffc06cf0: 2b 80 00 04 cmplwi cr7,r0,4 ffc06cf4: 41 9d 00 68 bgt- cr7,ffc06d5c <== NEVER TAKEN ffc06cf8: 2f 80 00 02 cmpwi cr7,r0,2 ffc06cfc: 41 9e 00 bc beq- cr7,ffc06db8 ffc06d00: 2b 80 00 02 cmplwi cr7,r0,2 ffc06d04: 40 9d 02 04 ble- cr7,ffc06f08 if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); ffc06d08: 7f c3 f3 78 mr r3,r30 ffc06d0c: 4b ff fa b1 bl ffc067bc <== ALWAYS TAKEN break; ffc06d10: 48 00 00 14 b ffc06d24 <== ALWAYS TAKEN case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; ffc06d14: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc06d18: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED ffc06d1c: 91 3e 00 dc stw r9,220(r30) <== NOT EXECUTED ffc06d20: 91 5e 00 e0 stw r10,224(r30) <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); ffc06d24: 80 7e 00 18 lwz r3,24(r30) ffc06d28: 48 00 19 bd bl ffc086e4 <== ALWAYS TAKEN args->ioctl_return = sc; return sc; } ffc06d2c: 80 01 00 24 lwz r0,36(r1) ffc06d30: 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; ffc06d34: 93 bf 00 0c stw r29,12(r31) return sc; } ffc06d38: 7c 08 03 a6 mtlr r0 ffc06d3c: 83 41 00 08 lwz r26,8(r1) ffc06d40: 83 61 00 0c lwz r27,12(r1) ffc06d44: 83 81 00 10 lwz r28,16(r1) ffc06d48: 83 a1 00 14 lwz r29,20(r1) ffc06d4c: 83 c1 00 18 lwz r30,24(r1) ffc06d50: 83 e1 00 1c lwz r31,28(r1) ffc06d54: 38 21 00 20 addi r1,r1,32 ffc06d58: 4e 80 00 20 blr <== ALWAYS TAKEN sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { ffc06d5c: 3d 20 40 04 lis r9,16388 <== NOT EXECUTED ffc06d60: 61 29 66 7f ori r9,r9,26239 <== NOT EXECUTED ffc06d64: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc06d68: 41 9e 01 74 beq- cr7,ffc06edc <== NOT EXECUTED ffc06d6c: 7f 80 48 40 cmplw cr7,r0,r9 <== NOT EXECUTED ffc06d70: 41 9d 01 b4 bgt- cr7,ffc06f24 <== NOT EXECUTED ffc06d74: 2f 80 00 05 cmpwi cr7,r0,5 <== NOT EXECUTED ffc06d78: 41 9e 02 3c beq- cr7,ffc06fb4 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { ffc06d7c: 80 1e 00 cc lwz r0,204(r30) <== NOT EXECUTED ffc06d80: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc06d84: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED ffc06d88: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc06d8c: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc06d90: 80 09 00 18 lwz r0,24(r9) <== NOT EXECUTED ffc06d94: 3b a0 00 0a li r29,10 <== NOT EXECUTED ffc06d98: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06d9c: 41 be ff 88 beq- cr7,ffc06d24 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); ffc06da0: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06da4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06da8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06dac: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06db0: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc06db4: 4b ff ff 70 b ffc06d24 <== NOT EXECUTED case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; ffc06db8: 3b 9e 00 30 addi r28,r30,48 ffc06dbc: 80 9f 00 08 lwz r4,8(r31) ffc06dc0: 7f 83 e3 78 mr r3,r28 ffc06dc4: 38 a0 00 24 li r5,36 ffc06dc8: 48 00 d1 99 bl ffc13f60 <== 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) && ffc06dcc: 80 1e 00 b8 lwz r0,184(r30) ffc06dd0: 70 09 02 00 andi. r9,r0,512 ffc06dd4: 41 82 00 58 beq- ffc06e2c ffc06dd8: 80 1e 00 30 lwz r0,48(r30) ffc06ddc: 70 0b 04 00 andi. r11,r0,1024 ffc06de0: 40 82 00 4c bne- ffc06e2c <== ALWAYS TAKEN !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); ffc06de4: 81 3e 00 b8 lwz r9,184(r30) <== NOT EXECUTED ffc06de8: 38 00 fd ef li r0,-529 <== NOT EXECUTED ffc06dec: 7d 20 00 38 and r0,r9,r0 <== NOT EXECUTED ffc06df0: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { ffc06df4: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED ffc06df8: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc06dfc: 41 82 00 30 beq- ffc06e2c <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc06e00: 7f 60 00 a6 mfmsr r27 <== NOT EXECUTED ffc06e04: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc06e08: 7f 60 00 78 andc r0,r27,r0 <== NOT EXECUTED ffc06e0c: 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) { ffc06e10: 81 3e 00 94 lwz r9,148(r30) <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; ffc06e14: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc06e18: 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; ffc06e1c: 54 00 06 f2 rlwinm r0,r0,0,27,25 <== NOT EXECUTED ffc06e20: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { ffc06e24: 40 9e 02 00 bne- cr7,ffc07024 <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc06e28: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && ffc06e2c: 80 1e 00 b8 lwz r0,184(r30) ffc06e30: 70 09 04 00 andi. r9,r0,1024 ffc06e34: 41 82 00 28 beq- ffc06e5c <== ALWAYS TAKEN ffc06e38: 80 1e 00 30 lwz r0,48(r30) <== NOT EXECUTED ffc06e3c: 70 0b 10 00 andi. r11,r0,4096 <== NOT EXECUTED ffc06e40: 40 82 00 1c bne- ffc06e5c <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); ffc06e44: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED ffc06e48: 54 00 05 a8 rlwinm r0,r0,0,22,20 <== NOT EXECUTED ffc06e4c: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); ffc06e50: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED ffc06e54: 54 00 07 fa rlwinm r0,r0,0,31,29 <== NOT EXECUTED ffc06e58: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && ffc06e5c: 80 1e 00 b8 lwz r0,184(r30) ffc06e60: 70 09 01 00 andi. r9,r0,256 ffc06e64: 40 82 01 64 bne- ffc06fc8 <== NEVER TAKEN ffc06e68: 81 3e 00 38 lwz r9,56(r30) /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { ffc06e6c: 2f 89 00 00 cmpwi cr7,r9,0 ffc06e70: 41 9c 02 24 blt- cr7,ffc07094 <== NEVER TAKEN tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { ffc06e74: 80 1e 00 30 lwz r0,48(r30) ffc06e78: 70 09 10 00 andi. r9,r0,4096 ffc06e7c: 41 82 00 10 beq- ffc06e8c <== ALWAYS TAKEN tty->flow_ctrl |= FL_MDXOF; ffc06e80: 81 3e 00 b8 lwz r9,184(r30) <== NOT EXECUTED ffc06e84: 61 29 04 00 ori r9,r9,1024 <== NOT EXECUTED ffc06e88: 91 3e 00 b8 stw r9,184(r30) <== NOT EXECUTED } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { ffc06e8c: 70 0b 04 00 andi. r11,r0,1024 ffc06e90: 41 82 00 10 beq- ffc06ea0 <== NEVER TAKEN tty->flow_ctrl |= FL_MDXON; ffc06e94: 80 1e 00 b8 lwz r0,184(r30) ffc06e98: 60 00 02 00 ori r0,r0,512 ffc06e9c: 90 1e 00 b8 stw r0,184(r30) tty->termios = *(struct termios *)args->buffer; /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { ffc06ea0: 83 7e 00 3c lwz r27,60(r30) ffc06ea4: 73 7b 00 02 andi. r27,r27,2 ffc06ea8: 41 82 01 a4 beq- ffc0704c <== NEVER TAKEN tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc06eac: 38 00 00 00 li r0,0 tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc06eb0: 90 1e 00 74 stw r0,116(r30) /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc06eb4: 90 1e 00 6c stw r0,108(r30) tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; ffc06eb8: 90 1e 00 70 stw r0,112(r30) else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) ffc06ebc: 80 1e 00 a8 lwz r0,168(r30) ffc06ec0: 2f 80 00 00 cmpwi cr7,r0,0 ffc06ec4: 41 be fe 60 beq- cr7,ffc06d24 <== NEVER TAKEN (*tty->device.setAttributes)(tty->minor, &tty->termios); ffc06ec8: 7f 84 e3 78 mr r4,r28 ffc06ecc: 80 7e 00 10 lwz r3,16(r30) ffc06ed0: 7c 09 03 a6 mtctr r0 ffc06ed4: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc06ed8: 4b ff fe 4c b ffc06d24 <== ALWAYS TAKEN *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; ffc06edc: 81 3e 00 60 lwz r9,96(r30) <== NOT EXECUTED ffc06ee0: 80 1e 00 5c lwz r0,92(r30) <== NOT EXECUTED if ( rawnc < 0 ) ffc06ee4: 7c 00 48 51 subf. r0,r0,r9 <== NOT EXECUTED ffc06ee8: 41 80 01 30 blt- ffc07018 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; ffc06eec: 81 5e 00 20 lwz r10,32(r30) <== NOT EXECUTED ffc06ef0: 81 3e 00 24 lwz r9,36(r30) <== NOT EXECUTED ffc06ef4: 81 7f 00 08 lwz r11,8(r31) <== NOT EXECUTED ffc06ef8: 7d 29 50 50 subf r9,r9,r10 <== NOT EXECUTED ffc06efc: 7c 09 02 14 add r0,r9,r0 <== NOT EXECUTED ffc06f00: 90 0b 00 00 stw r0,0(r11) <== NOT EXECUTED ffc06f04: 4b ff fe 20 b ffc06d24 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { ffc06f08: 2f 80 00 01 cmpwi cr7,r0,1 ffc06f0c: 40 9e fe 70 bne+ cr7,ffc06d7c <== NEVER TAKEN sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; ffc06f10: 80 7f 00 08 lwz r3,8(r31) ffc06f14: 38 9e 00 30 addi r4,r30,48 ffc06f18: 38 a0 00 24 li r5,36 ffc06f1c: 48 00 d0 45 bl ffc13f60 <== ALWAYS TAKEN break; ffc06f20: 4b ff fe 04 b ffc06d24 <== ALWAYS TAKEN sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { ffc06f24: 6c 09 40 04 xoris r9,r0,16388 <== NOT EXECUTED ffc06f28: 2f 89 74 1a cmpwi cr7,r9,29722 <== NOT EXECUTED ffc06f2c: 41 9e 00 78 beq- cr7,ffc06fa4 <== NOT EXECUTED ffc06f30: 6c 09 80 04 xoris r9,r0,32772 <== NOT EXECUTED ffc06f34: 2f 89 74 1b cmpwi cr7,r9,29723 <== NOT EXECUTED ffc06f38: 40 9e fe 44 bne+ cr7,ffc06d7c <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { ffc06f3c: 81 3e 00 cc lwz r9,204(r30) <== NOT EXECUTED ffc06f40: 3f 80 00 00 lis r28,0 <== NOT EXECUTED ffc06f44: 3b 9c 28 88 addi r28,r28,10376 <== NOT EXECUTED ffc06f48: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc06f4c: 7d 3c 4a 14 add r9,r28,r9 <== NOT EXECUTED ffc06f50: 80 09 00 04 lwz r0,4(r9) <== NOT EXECUTED ffc06f54: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06f58: 41 9e 00 14 beq- cr7,ffc06f6c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); ffc06f5c: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06f60: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06f64: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06f68: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); ffc06f6c: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ ffc06f70: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc06f74: 90 1e 00 d0 stw r0,208(r30) <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); ffc06f78: 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) { ffc06f7c: 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); ffc06f80: 91 3e 00 cc stw r9,204(r30) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { ffc06f84: 7c 1c 00 2e lwzx r0,r28,r0 <== NOT EXECUTED ffc06f88: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06f8c: 41 be fd 98 beq- cr7,ffc06d24 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); ffc06f90: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06f94: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06f98: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06f9c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc06fa0: 4b ff fd 84 b ffc06d24 <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; ffc06fa4: 81 3f 00 08 lwz r9,8(r31) <== NOT EXECUTED ffc06fa8: 80 1e 00 cc lwz r0,204(r30) <== NOT EXECUTED ffc06fac: 90 09 00 00 stw r0,0(r9) <== NOT EXECUTED break; ffc06fb0: 4b ff fd 74 b ffc06d24 <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; ffc06fb4: 81 3c 00 00 lwz r9,0(r28) <== NOT EXECUTED ffc06fb8: 81 5c 00 04 lwz r10,4(r28) <== NOT EXECUTED ffc06fbc: 91 3e 00 d4 stw r9,212(r30) <== NOT EXECUTED ffc06fc0: 91 5e 00 d8 stw r10,216(r30) <== NOT EXECUTED break; ffc06fc4: 4b ff fd 60 b ffc06d24 <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && ffc06fc8: 81 3e 00 38 lwz r9,56(r30) <== NOT EXECUTED ffc06fcc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06fd0: 41 9c 00 c4 blt- cr7,ffc07094 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); ffc06fd4: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED ffc06fd8: 54 00 06 2c rlwinm r0,r0,0,24,22 <== NOT EXECUTED ffc06fdc: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && ffc06fe0: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED ffc06fe4: 70 0b 00 04 andi. r11,r0,4 <== NOT EXECUTED ffc06fe8: 41 82 00 20 beq- ffc07008 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { ffc06fec: 80 1e 00 b0 lwz r0,176(r30) <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && ffc06ff0: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06ff4: 41 9e 00 14 beq- cr7,ffc07008 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); ffc06ff8: 80 7e 00 10 lwz r3,16(r30) <== NOT EXECUTED ffc06ffc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc07000: 4e 80 04 21 bctrl <== NOT EXECUTED ffc07004: 81 3e 00 38 lwz r9,56(r30) <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); ffc07008: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED ffc0700c: 54 00 07 b8 rlwinm r0,r0,0,30,28 <== NOT EXECUTED ffc07010: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED ffc07014: 4b ff fe 58 b ffc06e6c <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; ffc07018: 81 3e 00 64 lwz r9,100(r30) <== NOT EXECUTED ffc0701c: 7c 00 4a 14 add r0,r0,r9 <== NOT EXECUTED ffc07020: 4b ff fe cc b ffc06eec <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); ffc07024: 81 3e 00 84 lwz r9,132(r30) <== NOT EXECUTED rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { /* if chars available, call write function... */ (*tty->device.write)(tty->minor, ffc07028: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc0702c: 80 9e 00 7c lwz r4,124(r30) <== NOT EXECUTED ffc07030: 80 1e 00 a4 lwz r0,164(r30) <== NOT EXECUTED ffc07034: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc07038: 80 7e 00 10 lwz r3,16(r30) <== NOT EXECUTED ffc0703c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc07040: 4e 80 04 21 bctrl <== NOT EXECUTED ffc07044: 7f 60 01 24 mtmsr r27 <== NOT EXECUTED ffc07048: 4b ff fd e4 b ffc06e2c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; ffc0704c: 8b 5e 00 46 lbz r26,70(r30) <== NOT EXECUTED ffc07050: 48 00 0d 05 bl ffc07d54 <== NOT EXECUTED if (tty->termios.c_cc[VTIME]) { ffc07054: 89 3e 00 46 lbz r9,70(r30) <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc07058: 3c 00 cc cc lis r0,-13108 <== NOT EXECUTED ffc0705c: 7c 63 d1 d6 mullw r3,r3,r26 <== NOT EXECUTED ffc07060: 60 00 cc cd ori r0,r0,52429 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc07064: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * ffc07068: 7c 03 00 16 mulhwu r0,r3,r0 <== NOT EXECUTED ffc0706c: 54 00 e8 fe rlwinm r0,r0,29,3,31 <== NOT EXECUTED ffc07070: 90 1e 00 54 stw r0,84(r30) <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { ffc07074: 41 9e 00 30 beq- cr7,ffc070a4 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) ffc07078: 89 3e 00 47 lbz r9,71(r30) <== NOT EXECUTED } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc0707c: 93 7e 00 6c stw r27,108(r30) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) ffc07080: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; ffc07084: 90 1e 00 70 stw r0,112(r30) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) ffc07088: 41 9e 00 38 beq- cr7,ffc070c0 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc0708c: 93 7e 00 74 stw r27,116(r30) <== NOT EXECUTED ffc07090: 4b ff fe 2c b ffc06ebc <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { tty->flow_ctrl |= FL_MDRTS; ffc07094: 80 1e 00 b8 lwz r0,184(r30) <== NOT EXECUTED ffc07098: 60 00 01 00 ori r0,r0,256 <== NOT EXECUTED ffc0709c: 90 1e 00 b8 stw r0,184(r30) <== NOT EXECUTED ffc070a0: 4b ff fd d4 b ffc06e74 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { ffc070a4: 88 1e 00 47 lbz r0,71(r30) <== NOT EXECUTED ffc070a8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc070ac: 41 9e 00 1c beq- cr7,ffc070c8 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; ffc070b0: 91 3e 00 74 stw r9,116(r30) <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; ffc070b4: 91 3e 00 6c stw r9,108(r30) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; ffc070b8: 91 3e 00 70 stw r9,112(r30) <== NOT EXECUTED ffc070bc: 4b ff fe 00 b ffc06ebc <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; ffc070c0: 90 1e 00 74 stw r0,116(r30) <== NOT EXECUTED ffc070c4: 4b ff fd f8 b ffc06ebc <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; ffc070c8: 38 00 00 01 li r0,1 <== NOT EXECUTED ffc070cc: 90 1e 00 6c stw r0,108(r30) <== NOT EXECUTED ffc070d0: 4b ff fd ec b ffc06ebc <== NOT EXECUTED ffc074c4 : int32_t baud ) { int termios_baud; switch (baud) { ffc074c4: 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; ffc074c8: 38 00 00 09 li r0,9 int32_t baud ) { int termios_baud; switch (baud) { ffc074cc: 41 9e 00 5c beq- cr7,ffc07528 ffc074d0: 40 9d 00 60 ble- cr7,ffc07530 ffc074d4: 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; ffc074d8: 38 00 00 0e li r0,14 int32_t baud ) { int termios_baud; switch (baud) { ffc074dc: 41 9e 00 4c beq- cr7,ffc07528 ffc074e0: 40 9d 00 90 ble- cr7,ffc07570 ffc074e4: 3c 00 00 01 lis r0,1 ffc074e8: 60 00 c2 00 ori r0,r0,49664 ffc074ec: 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; ffc074f0: 38 00 10 02 li r0,4098 int32_t baud ) { int termios_baud; switch (baud) { ffc074f4: 41 9e 00 34 beq- cr7,ffc07528 ffc074f8: 40 9d 00 f8 ble- cr7,ffc075f0 ffc074fc: 3c 00 00 03 lis r0,3 ffc07500: 60 00 84 00 ori r0,r0,33792 ffc07504: 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; ffc07508: 38 00 10 03 li r0,4099 int32_t baud ) { int termios_baud; switch (baud) { ffc0750c: 41 9e 00 1c beq- cr7,ffc07528 ffc07510: 3c 00 00 07 lis r0,7 ffc07514: 60 00 08 00 ori r0,r0,2048 ffc07518: 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; ffc0751c: 38 00 10 04 li r0,4100 int32_t baud ) { int termios_baud; switch (baud) { ffc07520: 41 9e 00 08 beq- cr7,ffc07528 <== ALWAYS TAKEN 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; ffc07524: 38 00 ff ff li r0,-1 default: termios_baud = -1; break; } return termios_baud; } ffc07528: 7c 03 03 78 mr r3,r0 ffc0752c: 4e 80 00 20 blr <== ALWAYS TAKEN int32_t baud ) { int termios_baud; switch (baud) { ffc07530: 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; ffc07534: 38 00 00 04 li r0,4 int32_t baud ) { int termios_baud; switch (baud) { ffc07538: 41 be ff f0 beq- cr7,ffc07528 ffc0753c: 40 9d 00 64 ble- cr7,ffc075a0 ffc07540: 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; ffc07544: 38 00 00 06 li r0,6 int32_t baud ) { int termios_baud; switch (baud) { ffc07548: 41 be ff e0 beq- cr7,ffc07528 ffc0754c: 40 9d 00 84 ble- cr7,ffc075d0 ffc07550: 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; ffc07554: 38 00 00 07 li r0,7 int32_t baud ) { int termios_baud; switch (baud) { ffc07558: 41 be ff d0 beq- cr7,ffc07528 ffc0755c: 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; ffc07560: 38 00 00 08 li r0,8 int32_t baud ) { int termios_baud; switch (baud) { ffc07564: 41 be ff c4 beq- cr7,ffc07528 <== ALWAYS TAKEN 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; ffc07568: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc0756c: 4b ff ff bc b ffc07528 <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { ffc07570: 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; ffc07574: 38 00 00 0b li r0,11 int32_t baud ) { int termios_baud; switch (baud) { ffc07578: 41 be ff b0 beq- cr7,ffc07528 ffc0757c: 40 9d 00 a0 ble- cr7,ffc0761c ffc07580: 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; ffc07584: 38 00 00 0c li r0,12 int32_t baud ) { int termios_baud; switch (baud) { ffc07588: 41 be ff a0 beq- cr7,ffc07528 ffc0758c: 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; ffc07590: 38 00 00 0d li r0,13 int32_t baud ) { int termios_baud; switch (baud) { ffc07594: 41 be ff 94 beq- cr7,ffc07528 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; ffc07598: 38 00 ff ff li r0,-1 ffc0759c: 4b ff ff 8c b ffc07528 <== ALWAYS TAKEN int32_t baud ) { int termios_baud; switch (baud) { ffc075a0: 2f 83 00 32 cmpwi cr7,r3,50 ffc075a4: 38 00 00 01 li r0,1 ffc075a8: 41 be ff 80 beq- cr7,ffc07528 ffc075ac: 40 9d 00 34 ble- cr7,ffc075e0 ffc075b0: 2f 83 00 4b cmpwi cr7,r3,75 ffc075b4: 38 00 00 02 li r0,2 ffc075b8: 41 be ff 70 beq- cr7,ffc07528 ffc075bc: 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; ffc075c0: 38 00 00 03 li r0,3 int32_t baud ) { int termios_baud; switch (baud) { ffc075c4: 41 be ff 64 beq- cr7,ffc07528 <== ALWAYS TAKEN 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; ffc075c8: 38 00 ff ff li r0,-1 <== NOT EXECUTED ffc075cc: 4b ff ff 5c b ffc07528 <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { ffc075d0: 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; ffc075d4: 38 00 00 05 li r0,5 int32_t baud ) { int termios_baud; switch (baud) { ffc075d8: 40 9e ff 4c bne+ cr7,ffc07524 <== NEVER TAKEN ffc075dc: 4b ff ff 4c b ffc07528 <== ALWAYS TAKEN ffc075e0: 2f 83 00 00 cmpwi cr7,r3,0 ffc075e4: 38 00 00 00 li r0,0 ffc075e8: 41 be ff 40 beq- cr7,ffc07528 ffc075ec: 4b ff ff 38 b ffc07524 <== ALWAYS TAKEN ffc075f0: 38 00 00 00 li r0,0 ffc075f4: 60 00 96 00 ori r0,r0,38400 ffc075f8: 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; ffc075fc: 38 00 00 0f li r0,15 int32_t baud ) { int termios_baud; switch (baud) { ffc07600: 41 be ff 28 beq- cr7,ffc07528 ffc07604: 38 00 00 00 li r0,0 ffc07608: 60 00 e1 00 ori r0,r0,57600 ffc0760c: 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; ffc07610: 38 00 10 01 li r0,4097 int32_t baud ) { int termios_baud; switch (baud) { ffc07614: 40 9e ff 10 bne+ cr7,ffc07524 <== NEVER TAKEN ffc07618: 4b ff ff 10 b ffc07528 <== ALWAYS TAKEN ffc0761c: 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; ffc07620: 38 00 00 0a li r0,10 int32_t baud ) { int termios_baud; switch (baud) { ffc07624: 40 9e ff 00 bne+ cr7,ffc07524 <== NEVER TAKEN ffc07628: 4b ff ff 00 b ffc07528 <== ALWAYS TAKEN ffc072cc : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc072cc: 94 21 ff c8 stwu r1,-56(r1) ffc072d0: 7c 08 02 a6 mflr r0 ffc072d4: 93 81 00 28 stw r28,40(r1) struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc072d8: 3f 80 00 00 lis r28,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc072dc: 93 c1 00 30 stw r30,48(r1) ffc072e0: 7c 7e 1b 78 mr r30,r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc072e4: 80 7c 27 58 lwz r3,10072(r28) rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc072e8: 93 41 00 20 stw r26,32(r1) ffc072ec: 7c ba 2b 78 mr r26,r5 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc072f0: 38 a0 00 00 li r5,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc072f4: 93 a1 00 2c stw r29,44(r1) ffc072f8: 7c 9d 23 78 mr r29,r4 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc072fc: 38 80 00 00 li r4,0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { ffc07300: 92 e1 00 14 stw r23,20(r1) ffc07304: 7c d7 33 78 mr r23,r6 ffc07308: 93 61 00 24 stw r27,36(r1) ffc0730c: 90 01 00 3c stw r0,60(r1) ffc07310: 92 a1 00 0c stw r21,12(r1) ffc07314: 92 c1 00 10 stw r22,16(r1) ffc07318: 93 01 00 18 stw r24,24(r1) ffc0731c: 93 21 00 1c stw r25,28(r1) <== ALWAYS TAKEN ffc07320: 93 e1 00 34 stw r31,52(r1) struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, ffc07324: 48 00 12 61 bl ffc08584 <== ALWAYS TAKEN RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc07328: 7c 7b 1b 79 mr. r27,r3 ffc0732c: 40 82 00 8c bne- ffc073b8 <== NEVER TAKEN return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { ffc07330: 3e c0 00 00 lis r22,0 <== ALWAYS TAKEN ffc07334: 83 f6 27 60 lwz r31,10080(r22) <== ALWAYS TAKEN ffc07338: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0733c: 40 be 00 14 bne+ cr7,ffc07350 ffc07340: 48 00 00 f4 b ffc07434 <== ALWAYS TAKEN ffc07344: 83 ff 00 00 lwz r31,0(r31) ffc07348: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0734c: 41 9e 00 e8 beq- cr7,ffc07434 <== ALWAYS TAKEN if ((tty->major == major) && (tty->minor == minor)) ffc07350: 80 1f 00 0c lwz r0,12(r31) ffc07354: 7f 80 f0 00 cmpw cr7,r0,r30 ffc07358: 40 9e ff ec bne+ cr7,ffc07344 ffc0735c: 80 1f 00 10 lwz r0,16(r31) ffc07360: 7f 80 e8 00 cmpw cr7,r0,r29 ffc07364: 40 9e ff e0 bne+ cr7,ffc07344 <== NEVER TAKEN if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; if (!tty->refcount++) { ffc07368: 81 3f 00 08 lwz r9,8(r31) */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; ffc0736c: 81 7a 00 00 lwz r11,0(r26) if (!tty->refcount++) { ffc07370: 2f 89 00 00 cmpwi cr7,r9,0 ffc07374: 39 29 00 01 addi r9,r9,1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; ffc07378: 93 eb 00 38 stw r31,56(r11) if (!tty->refcount++) { ffc0737c: 91 3f 00 08 stw r9,8(r31) <== ALWAYS TAKEN ffc07380: 40 9e 00 30 bne- cr7,ffc073b0 if (tty->device.firstOpen) ffc07384: 80 1f 00 98 lwz r0,152(r31) <== ALWAYS TAKEN ffc07388: 2f 80 00 00 cmpwi cr7,r0,0 ffc0738c: 41 9e 00 18 beq- cr7,ffc073a4 <== ALWAYS TAKEN (*tty->device.firstOpen)(major, minor, arg); ffc07390: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc07394: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc07398: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED ffc0739c: 7f 45 d3 78 mr r5,r26 <== NOT EXECUTED ffc073a0: 4e 80 04 21 bctrl <== NOT EXECUTED /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc073a4: 80 1f 00 b4 lwz r0,180(r31) ffc073a8: 2f 80 00 02 cmpwi cr7,r0,2 ffc073ac: 41 9e 00 4c beq- cr7,ffc073f8 <== NEVER TAKEN (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); ffc073b0: 80 7c 27 58 lwz r3,10072(r28) ffc073b4: 48 00 13 31 bl ffc086e4 <== ALWAYS TAKEN return RTEMS_SUCCESSFUL; } ffc073b8: 80 01 00 3c lwz r0,60(r1) ffc073bc: 7f 63 db 78 mr r3,r27 <== ALWAYS TAKEN ffc073c0: 82 a1 00 0c lwz r21,12(r1) ffc073c4: 7c 08 03 a6 mtlr r0 ffc073c8: 82 c1 00 10 lwz r22,16(r1) ffc073cc: 82 e1 00 14 lwz r23,20(r1) ffc073d0: 83 01 00 18 lwz r24,24(r1) ffc073d4: 83 21 00 1c lwz r25,28(r1) ffc073d8: 83 41 00 20 lwz r26,32(r1) ffc073dc: 83 61 00 24 lwz r27,36(r1) ffc073e0: 83 81 00 28 lwz r28,40(r1) ffc073e4: 83 a1 00 2c lwz r29,44(r1) ffc073e8: 83 c1 00 30 lwz r30,48(r1) ffc073ec: 83 e1 00 34 lwz r31,52(r1) ffc073f0: 38 21 00 38 addi r1,r1,56 ffc073f4: 4e 80 00 20 blr <== ALWAYS TAKEN (*tty->device.firstOpen)(major, minor, arg); /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_start(tty->rxTaskId, ffc073f8: 80 7f 00 c4 lwz r3,196(r31) <== NOT EXECUTED ffc073fc: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc07400: 38 84 78 24 addi r4,r4,30756 <== NOT EXECUTED ffc07404: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc07408: 48 00 17 75 bl ffc08b7c <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) ffc0740c: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc07410: 40 9e 02 ec bne- cr7,ffc076fc <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, ffc07414: 80 7f 00 c8 lwz r3,200(r31) <== NOT EXECUTED ffc07418: 3c 80 ff c0 lis r4,-64 <== NOT EXECUTED ffc0741c: 38 84 77 78 addi r4,r4,30584 <== NOT EXECUTED ffc07420: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc07424: 48 00 17 59 bl ffc08b7c <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) ffc07428: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0742c: 41 9e ff 84 beq+ cr7,ffc073b0 <== NOT EXECUTED ffc07430: 48 00 02 cc b ffc076fc <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); ffc07434: 38 60 00 01 li r3,1 ffc07438: 38 80 00 e8 li r4,232 ffc0743c: 48 00 6a d1 bl ffc0df0c <== ALWAYS TAKEN if (tty == NULL) { ffc07440: 2f 83 00 00 cmpwi cr7,r3,0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); ffc07444: 7c 79 1b 78 mr r25,r3 ffc07448: 7c 7f 1b 78 mr r31,r3 if (tty == NULL) { ffc0744c: 41 9e 02 58 beq- cr7,ffc076a4 <== NEVER TAKEN return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; ffc07450: 3e a0 00 00 lis r21,0 ffc07454: 3b 15 21 68 addi r24,r21,8552 ffc07458: 80 18 00 04 lwz r0,4(r24) ffc0745c: 90 03 00 64 stw r0,100(r3) tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); ffc07460: 80 63 00 64 lwz r3,100(r3) ffc07464: 4b ff d3 85 bl ffc047e8 <== ALWAYS TAKEN if (tty->rawInBuf.theBuf == NULL) { ffc07468: 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); ffc0746c: 90 79 00 58 stw r3,88(r25) if (tty->rawInBuf.theBuf == NULL) { ffc07470: 41 9e 02 2c beq- cr7,ffc0769c <== NEVER TAKEN return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; ffc07474: 80 18 00 08 lwz r0,8(r24) <== ALWAYS TAKEN ffc07478: 90 19 00 88 stw r0,136(r25) tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); ffc0747c: 80 79 00 88 lwz r3,136(r25) ffc07480: 4b ff d3 69 bl ffc047e8 <== ALWAYS TAKEN if (tty->rawOutBuf.theBuf == NULL) { ffc07484: 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); ffc07488: 90 79 00 7c stw r3,124(r25) if (tty->rawOutBuf.theBuf == NULL) { ffc0748c: 41 9e 02 28 beq- cr7,ffc076b4 <== NEVER TAKEN return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); ffc07490: 80 75 21 68 lwz r3,8552(r21) ffc07494: 4b ff d3 55 bl ffc047e8 <== ALWAYS TAKEN if (tty->cbuf == NULL) { ffc07498: 2f 83 00 00 cmpwi cr7,r3,0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); ffc0749c: 90 79 00 1c stw r3,28(r25) if (tty->cbuf == NULL) { ffc074a0: 41 9e 02 60 beq- cr7,ffc07700 <== NEVER TAKEN tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc074a4: 81 36 27 60 lwz r9,10080(r22) return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; ffc074a8: 38 00 00 00 li r0,0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; ffc074ac: 90 19 00 04 stw r0,4(r25) if (rtems_termios_ttyHead != NULL) ffc074b0: 2f 89 00 00 cmpwi cr7,r9,0 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; ffc074b4: 90 19 00 d4 stw r0,212(r25) <== ALWAYS TAKEN tty->tty_snd.sw_arg = NULL; ffc074b8: 90 19 00 d8 stw r0,216(r25) <== ALWAYS TAKEN tty->tty_rcv.sw_pfn = NULL; ffc074bc: 90 19 00 dc stw r0,220(r25) tty->tty_rcv.sw_arg = NULL; ffc074c0: 90 19 00 e0 stw r0,224(r25) tty->tty_rcvwakeup = 0; ffc074c4: 90 19 00 e4 stw r0,228(r25) /* * link tty */ tty->forw = rtems_termios_ttyHead; ffc074c8: 91 39 00 00 stw r9,0(r25) tty->back = NULL; if (rtems_termios_ttyHead != NULL) ffc074cc: 41 9e 00 08 beq- cr7,ffc074d4 rtems_termios_ttyHead->back = tty; ffc074d0: 93 29 00 04 stw r25,4(r9) rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) ffc074d4: 3d 20 00 00 lis r9,0 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; ffc074d8: 93 36 27 60 stw r25,10080(r22) if (rtems_termios_ttyTail == NULL) ffc074dc: 80 09 27 5c lwz r0,10076(r9) <== ALWAYS TAKEN ffc074e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc074e4: 41 9e 02 8c beq- cr7,ffc07770 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc074e8: 88 78 00 0c lbz r3,12(r24) <== ALWAYS TAKEN ffc074ec: 38 80 00 01 li r4,1 ffc074f0: 38 a0 00 54 li r5,84 <== ALWAYS TAKEN rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; ffc074f4: 93 b9 00 10 stw r29,16(r25) tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc074f8: 64 63 54 52 oris r3,r3,21586 <== ALWAYS TAKEN ffc074fc: 60 63 69 00 ori r3,r3,26880 rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; tty->major = major; ffc07500: 93 d9 00 0c stw r30,12(r25) /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( ffc07504: 38 c0 00 00 li r6,0 <== ALWAYS TAKEN ffc07508: 38 f9 00 14 addi r7,r25,20 ffc0750c: 48 00 0d 7d bl ffc08288 <== 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) ffc07510: 2f 83 00 00 cmpwi cr7,r3,0 ffc07514: 40 9e 01 e8 bne- cr7,ffc076fc <== NEVER TAKEN rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( ffc07518: 88 78 00 0c lbz r3,12(r24) ffc0751c: 38 80 00 01 li r4,1 ffc07520: 38 a0 00 54 li r5,84 ffc07524: 64 63 54 52 oris r3,r3,21586 ffc07528: 60 63 6f 00 ori r3,r3,28416 ffc0752c: 38 c0 00 00 li r6,0 <== ALWAYS TAKEN ffc07530: 38 f9 00 18 addi r7,r25,24 ffc07534: 48 00 0d 55 bl ffc08288 <== 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) ffc07538: 2f 83 00 00 cmpwi cr7,r3,0 ffc0753c: 40 9e 01 c0 bne- cr7,ffc076fc <== NEVER TAKEN rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( ffc07540: 88 78 00 0c lbz r3,12(r24) ffc07544: 38 80 00 00 li r4,0 ffc07548: 38 a0 00 20 li r5,32 ffc0754c: 64 63 54 52 oris r3,r3,21586 ffc07550: 60 63 78 00 ori r3,r3,30720 ffc07554: 38 c0 00 00 li r6,0 ffc07558: 38 f9 00 8c addi r7,r25,140 ffc0755c: 48 00 0d 2d bl ffc08288 <== 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) ffc07560: 7c 60 1b 79 mr. r0,r3 <== ALWAYS TAKEN ffc07564: 40 82 01 98 bne- ffc076fc <== NEVER TAKEN tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; ffc07568: 81 37 00 1c lwz r9,28(r23) ffc0756c: 80 97 00 00 lwz r4,0(r23) <== ALWAYS TAKEN /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc07570: 2f 89 00 02 cmpwi cr7,r9,2 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; ffc07574: 80 b7 00 04 lwz r5,4(r23) ffc07578: 80 d7 00 08 lwz r6,8(r23) ffc0757c: 80 f7 00 0c lwz r7,12(r23) ffc07580: 81 17 00 10 lwz r8,16(r23) ffc07584: 81 57 00 14 lwz r10,20(r23) ffc07588: 81 77 00 18 lwz r11,24(r23) <== ALWAYS TAKEN 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; ffc0758c: 90 19 00 94 stw r0,148(r25) <== ALWAYS TAKEN /* * Set callbacks */ tty->device = *callbacks; ffc07590: 90 99 00 98 stw r4,152(r25) ffc07594: 90 b9 00 9c stw r5,156(r25) ffc07598: 90 d9 00 a0 stw r6,160(r25) <== ALWAYS TAKEN ffc0759c: 90 f9 00 a4 stw r7,164(r25) ffc075a0: 91 19 00 a8 stw r8,168(r25) ffc075a4: 91 59 00 ac stw r10,172(r25) ffc075a8: 91 79 00 b0 stw r11,176(r25) ffc075ac: 91 39 00 b4 stw r9,180(r25) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { ffc075b0: 41 9e 01 64 beq- cr7,ffc07714 <== NEVER TAKEN &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || ffc075b4: 80 19 00 a0 lwz r0,160(r25) ffc075b8: 2f 80 00 00 cmpwi cr7,r0,0 ffc075bc: 41 9e 01 18 beq- cr7,ffc076d4 <== NEVER TAKEN (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ ffc075c0: 80 19 00 b4 lwz r0,180(r25) ffc075c4: 2f 80 00 02 cmpwi cr7,r0,2 ffc075c8: 41 9e 01 0c beq- cr7,ffc076d4 <== NEVER TAKEN 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; ffc075cc: 38 00 00 00 li r0,0 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc075d0: 89 38 00 0c lbz r9,12(r24) tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; ffc075d4: 90 19 00 b8 stw r0,184(r25) * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; ffc075d8: 60 00 82 3b ori r0,r0,33339 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc075dc: 2f 89 00 7a cmpwi cr7,r9,122 /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc075e0: 81 79 00 64 lwz r11,100(r25) tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc075e4: 39 29 00 01 addi r9,r9,1 tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; ffc075e8: 81 59 00 64 lwz r10,100(r25) * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; ffc075ec: 90 19 00 3c stw r0,60(r25) /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc075f0: 55 6b f8 7e rlwinm r11,r11,31,1,31 tty->highwater = tty->rawInBuf.Size * 3/4; ffc075f4: 1d 4a 00 03 mulli r10,r10,3 /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; ffc075f8: 91 79 00 bc stw r11,188(r25) tty->highwater = tty->rawInBuf.Size * 3/4; ffc075fc: 55 4a f0 be rlwinm r10,r10,30,2,31 ffc07600: 91 59 00 c0 stw r10,192(r25) } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; ffc07604: 39 40 25 02 li r10,9474 tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; ffc07608: 38 00 00 00 li r0,0 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; ffc0760c: 91 59 00 30 stw r10,48(r25) tty->termios.c_oflag = OPOST | ONLCR | XTABS; ffc07610: 39 40 18 05 li r10,6149 ffc07614: 91 59 00 34 stw r10,52(r25) tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; ffc07618: 39 40 08 bd li r10,2237 ffc0761c: 91 59 00 38 stw r10,56(r25) tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; ffc07620: 39 40 00 03 li r10,3 <== ALWAYS TAKEN ffc07624: 99 59 00 41 stb r10,65(r25) tty->termios.c_cc[VQUIT] = '\034'; ffc07628: 39 40 00 1c li r10,28 ffc0762c: 99 59 00 42 stb r10,66(r25) tty->termios.c_cc[VERASE] = '\177'; ffc07630: 39 40 00 7f li r10,127 ffc07634: 99 59 00 43 stb r10,67(r25) tty->termios.c_cc[VKILL] = '\025'; ffc07638: 39 40 00 15 li r10,21 ffc0763c: 99 59 00 44 stb r10,68(r25) tty->termios.c_cc[VEOF] = '\004'; ffc07640: 39 40 00 04 li r10,4 ffc07644: 99 59 00 45 stb r10,69(r25) tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; ffc07648: 39 40 00 11 li r10,17 <== ALWAYS TAKEN ffc0764c: 99 59 00 49 stb r10,73(r25) tty->termios.c_cc[VSTOP] = '\023'; ffc07650: 39 40 00 13 li r10,19 ffc07654: 99 59 00 4a stb r10,74(r25) tty->termios.c_cc[VSUSP] = '\032'; ffc07658: 39 40 00 1a li r10,26 ffc0765c: 99 59 00 4b stb r10,75(r25) <== ALWAYS TAKEN tty->termios.c_cc[VREPRINT] = '\022'; ffc07660: 39 40 00 12 li r10,18 ffc07664: 99 59 00 4d stb r10,77(r25) <== ALWAYS TAKEN tty->termios.c_cc[VDISCARD] = '\017'; ffc07668: 39 40 00 0f li r10,15 <== ALWAYS TAKEN ffc0766c: 99 59 00 4e stb r10,78(r25) tty->termios.c_cc[VWERASE] = '\027'; ffc07670: 39 40 00 17 li r10,23 ffc07674: 99 59 00 4f stb r10,79(r25) tty->termios.c_cc[VLNEXT] = '\026'; ffc07678: 39 40 00 16 li r10,22 tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; ffc0767c: 98 19 00 51 stb r0,81(r25) <== ALWAYS TAKEN 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'; ffc07680: 99 59 00 50 stb r10,80(r25) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc07684: 99 38 00 0c stb r9,12(r24) tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; ffc07688: 98 19 00 4c stb r0,76(r25) tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') ffc0768c: 40 9e fc dc bne+ cr7,ffc07368 <== ALWAYS TAKEN c = 'a'; ffc07690: 38 00 00 61 li r0,97 <== NOT EXECUTED ffc07694: 98 18 00 0c stb r0,12(r24) <== NOT EXECUTED ffc07698: 4b ff fc d0 b ffc07368 <== NOT EXECUTED * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); if (tty->rawInBuf.theBuf == NULL) { free(tty); ffc0769c: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc076a0: 4b ff cd c9 bl ffc04468 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); ffc076a4: 80 7c 27 58 lwz r3,10072(r28) <== NOT EXECUTED ffc076a8: 3b 60 00 1a li r27,26 <== NOT EXECUTED ffc076ac: 48 00 10 39 bl ffc086e4 <== NOT EXECUTED return RTEMS_NO_MEMORY; ffc076b0: 4b ff fd 08 b ffc073b8 <== NOT EXECUTED * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); if (tty->rawOutBuf.theBuf == NULL) { free((void *)(tty->rawInBuf.theBuf)); ffc076b4: 80 79 00 58 lwz r3,88(r25) <== NOT EXECUTED free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); ffc076b8: 3b 60 00 1a li r27,26 <== NOT EXECUTED * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); free((void *)(tty->rawInBuf.theBuf)); ffc076bc: 4b ff cd ad bl ffc04468 <== NOT EXECUTED free(tty); ffc076c0: 7f 23 cb 78 mr r3,r25 <== NOT EXECUTED ffc076c4: 4b ff cd a5 bl ffc04468 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); ffc076c8: 80 7c 27 58 lwz r3,10072(r28) <== NOT EXECUTED ffc076cc: 48 00 10 19 bl ffc086e4 <== NOT EXECUTED return RTEMS_NO_MEMORY; ffc076d0: 4b ff fc e8 b ffc073b8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( ffc076d4: 88 78 00 0c lbz r3,12(r24) <== NOT EXECUTED ffc076d8: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc076dc: 38 a0 00 24 li r5,36 <== NOT EXECUTED ffc076e0: 64 63 54 52 oris r3,r3,21586 <== NOT EXECUTED ffc076e4: 60 63 72 00 ori r3,r3,29184 <== NOT EXECUTED ffc076e8: 38 c0 00 00 li r6,0 <== NOT EXECUTED ffc076ec: 38 f9 00 68 addi r7,r25,104 <== NOT EXECUTED ffc076f0: 48 00 0b 99 bl ffc08288 <== 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) ffc076f4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc076f8: 41 9e fe d4 beq+ cr7,ffc075cc <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); ffc076fc: 48 00 17 b1 bl ffc08eac <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); ffc07700: 80 79 00 7c lwz r3,124(r25) <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); free(tty); rtems_semaphore_release (rtems_termios_ttyMutex); ffc07704: 3b 60 00 1a li r27,26 <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); ffc07708: 4b ff cd 61 bl ffc04468 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); ffc0770c: 80 79 00 58 lwz r3,88(r25) <== NOT EXECUTED ffc07710: 4b ff ff ac b ffc076bc <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( ffc07714: 88 78 00 0c lbz r3,12(r24) <== NOT EXECUTED ffc07718: 38 80 00 0a li r4,10 <== NOT EXECUTED ffc0771c: 38 a0 04 00 li r5,1024 <== NOT EXECUTED ffc07720: 64 63 54 78 oris r3,r3,21624 <== NOT EXECUTED ffc07724: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED ffc07728: 38 c0 05 00 li r6,1280 <== NOT EXECUTED ffc0772c: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc07730: 39 19 00 c8 addi r8,r25,200 <== NOT EXECUTED ffc07734: 48 00 10 8d bl ffc087c0 <== 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) ffc07738: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0773c: 40 be ff c0 bne- cr7,ffc076fc <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( ffc07740: 88 78 00 0c lbz r3,12(r24) <== NOT EXECUTED ffc07744: 38 80 00 09 li r4,9 <== NOT EXECUTED ffc07748: 38 a0 04 00 li r5,1024 <== NOT EXECUTED ffc0774c: 64 63 52 78 oris r3,r3,21112 <== NOT EXECUTED ffc07750: 60 63 54 00 ori r3,r3,21504 <== NOT EXECUTED ffc07754: 38 c0 05 00 li r6,1280 <== NOT EXECUTED ffc07758: 38 e0 00 00 li r7,0 <== NOT EXECUTED ffc0775c: 39 19 00 c4 addi r8,r25,196 <== NOT EXECUTED ffc07760: 48 00 10 61 bl ffc087c0 <== 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) ffc07764: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc07768: 41 9e fe 4c beq+ cr7,ffc075b4 <== NOT EXECUTED ffc0776c: 4b ff ff 90 b ffc076fc <== NOT EXECUTED tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; ffc07770: 93 29 27 5c stw r25,10076(r9) ffc07774: 4b ff fd 74 b ffc074e8 <== ALWAYS TAKEN ffc05dac : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { ffc05dac: 94 21 ff d0 stwu r1,-48(r1) ffc05db0: 7c 08 02 a6 mflr r0 ffc05db4: 90 01 00 34 stw r0,52(r1) ffc05db8: 7c 60 1b 78 mr r0,r3 <== ALWAYS TAKEN const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc05dbc: 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) { ffc05dc0: 93 41 00 18 stw r26,24(r1) const unsigned char *buf = _buf; ffc05dc4: 7c 7a 1b 78 mr r26,r3 unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc05dc8: 2f 89 00 00 cmpwi cr7,r9,0 <== ALWAYS TAKEN * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { ffc05dcc: 93 e1 00 2c stw r31,44(r1) ffc05dd0: 7c bf 2b 78 mr r31,r5 ffc05dd4: 93 21 00 14 stw r25,20(r1) ffc05dd8: 93 61 00 1c stw r27,28(r1) ffc05ddc: 93 81 00 20 stw r28,32(r1) ffc05de0: 93 a1 00 24 stw r29,36(r1) <== ALWAYS TAKEN ffc05de4: 93 c1 00 28 stw r30,40(r1) ffc05de8: 90 81 00 08 stw r4,8(r1) const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { ffc05dec: 41 9e 01 04 beq- cr7,ffc05ef0 <== ALWAYS TAKEN (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { ffc05df0: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; ffc05df4: 83 65 00 80 lwz r27,128(r5) <== NOT EXECUTED while (len) { ffc05df8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05dfc: 41 9e 01 0c beq- cr7,ffc05f08 <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; ffc05e00: 3b 80 00 02 li r28,2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; ffc05e04: 3b 20 00 01 li r25,1 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; ffc05e08: 80 1f 00 88 lwz r0,136(r31) <== NOT EXECUTED ffc05e0c: 3b 7b 00 01 addi r27,r27,1 <== NOT EXECUTED ffc05e10: 7d 3b 03 96 divwu r9,r27,r0 <== NOT EXECUTED ffc05e14: 7c 09 01 d6 mullw r0,r9,r0 <== NOT EXECUTED ffc05e18: 7f 60 d8 50 subf r27,r0,r27 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05e1c: 7f c0 00 a6 mfmsr r30 <== NOT EXECUTED ffc05e20: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05e24: 7f c0 00 78 andc r0,r30,r0 <== NOT EXECUTED ffc05e28: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { ffc05e2c: 83 bf 00 84 lwz r29,132(r31) <== NOT EXECUTED ffc05e30: 7f 9d d8 00 cmpw cr7,r29,r27 <== NOT EXECUTED ffc05e34: 40 9e 00 40 bne- cr7,ffc05e74 <== NOT EXECUTED tty->rawOutBufState = rob_wait; ffc05e38: 93 9f 00 94 stw r28,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05e3c: 7f c0 01 24 mtmsr r30 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, ffc05e40: 80 7f 00 8c lwz r3,140(r31) <== NOT EXECUTED ffc05e44: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc05e48: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc05e4c: 48 00 27 39 bl ffc08584 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) ffc05e50: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc05e54: 40 9e 00 e0 bne- cr7,ffc05f34 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05e58: 7f c0 00 a6 mfmsr r30 <== NOT EXECUTED ffc05e5c: 7c 10 42 a6 mfsprg r0,0 <== NOT EXECUTED ffc05e60: 7f c0 00 78 andc r0,r30,r0 <== NOT EXECUTED ffc05e64: 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) { ffc05e68: 80 1f 00 84 lwz r0,132(r31) <== NOT EXECUTED ffc05e6c: 7f 80 e8 00 cmpw cr7,r0,r29 <== NOT EXECUTED ffc05e70: 41 9e ff c8 beq+ cr7,ffc05e38 <== 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++; ffc05e74: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05e78: 89 7a 00 00 lbz r11,0(r26) <== NOT EXECUTED ffc05e7c: 81 3f 00 7c lwz r9,124(r31) <== NOT EXECUTED ffc05e80: 7d 69 01 ae stbx r11,r9,r0 <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { ffc05e84: 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; ffc05e88: 93 7f 00 80 stw r27,128(r31) <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { ffc05e8c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05e90: 40 9e 00 20 bne- cr7,ffc05eb0 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { ffc05e94: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05e98: 70 09 00 10 andi. r9,r0,16 <== NOT EXECUTED ffc05e9c: 41 82 00 30 beq- ffc05ecc <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; ffc05ea0: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05ea4: 60 00 00 20 ori r0,r0,32 <== NOT EXECUTED ffc05ea8: 90 1f 00 b8 stw r0,184(r31) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; ffc05eac: 93 3f 00 94 stw r25,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05eb0: 7f c0 01 24 mtmsr r30 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { ffc05eb4: 80 01 00 08 lwz r0,8(r1) <== NOT EXECUTED ffc05eb8: 35 20 ff ff addic. r9,r0,-1 <== NOT EXECUTED ffc05ebc: 91 21 00 08 stw r9,8(r1) <== NOT EXECUTED ffc05ec0: 41 82 00 48 beq- ffc05f08 <== 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++; ffc05ec4: 3b 5a 00 01 addi r26,r26,1 <== NOT EXECUTED ffc05ec8: 4b ff ff 40 b ffc05e08 <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); ffc05ecc: 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, ffc05ed0: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05ed4: 80 9f 00 7c lwz r4,124(r31) <== NOT EXECUTED ffc05ed8: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc05edc: 7c 84 4a 14 add r4,r4,r9 <== NOT EXECUTED ffc05ee0: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc05ee4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05ee8: 4e 80 04 21 bctrl <== NOT EXECUTED ffc05eec: 4b ff ff c0 b ffc05eac <== NOT EXECUTED unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); ffc05ef0: 7c 04 03 78 mr r4,r0 ffc05ef4: 80 1f 00 a4 lwz r0,164(r31) ffc05ef8: 80 65 00 10 lwz r3,16(r5) ffc05efc: 7c 09 03 a6 mtctr r0 <== ALWAYS TAKEN ffc05f00: 80 a1 00 08 lwz r5,8(r1) ffc05f04: 4e 80 04 21 bctrl <== ALWAYS TAKEN tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } ffc05f08: 80 01 00 34 lwz r0,52(r1) ffc05f0c: 83 21 00 14 lwz r25,20(r1) ffc05f10: 7c 08 03 a6 mtlr r0 ffc05f14: 83 41 00 18 lwz r26,24(r1) <== ALWAYS TAKEN ffc05f18: 83 61 00 1c lwz r27,28(r1) ffc05f1c: 83 81 00 20 lwz r28,32(r1) ffc05f20: 83 a1 00 24 lwz r29,36(r1) ffc05f24: 83 c1 00 28 lwz r30,40(r1) <== ALWAYS TAKEN ffc05f28: 83 e1 00 2c lwz r31,44(r1) ffc05f2c: 38 21 00 30 addi r1,r1,48 ffc05f30: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); ffc05f34: 48 00 2f 79 bl ffc08eac <== NOT EXECUTED ffc06864 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06864: 94 21 ff d0 stwu r1,-48(r1) <== NOT EXECUTED ffc06868: 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); ffc0686c: 38 80 00 00 li r4,0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06870: 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); ffc06874: 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; ffc06878: 81 23 00 00 lwz r9,0(r3) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc0687c: 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; ffc06880: 83 e9 00 38 lwz r31,56(r9) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06884: 93 21 00 14 stw r25,20(r1) <== NOT EXECUTED ffc06888: 7c 79 1b 78 mr r25,r3 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc0688c: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { ffc06890: 93 01 00 10 stw r24,16(r1) <== NOT EXECUTED ffc06894: 93 61 00 1c stw r27,28(r1) <== NOT EXECUTED ffc06898: 93 81 00 20 stw r28,32(r1) <== NOT EXECUTED ffc0689c: 92 e1 00 0c stw r23,12(r1) <== NOT EXECUTED ffc068a0: 93 41 00 18 stw r26,24(r1) <== NOT EXECUTED ffc068a4: 93 a1 00 24 stw r29,36(r1) <== NOT EXECUTED ffc068a8: 93 c1 00 28 stw r30,40(r1) <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; ffc068ac: 83 79 00 14 lwz r27,20(r25) <== NOT EXECUTED char *buffer = args->buffer; ffc068b0: 83 99 00 10 lwz r28,16(r25) <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc068b4: 48 00 1c d1 bl ffc08584 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) ffc068b8: 7c 78 1b 79 mr. r24,r3 <== NOT EXECUTED ffc068bc: 40 82 00 48 bne- ffc06904 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { ffc068c0: 80 1f 00 cc lwz r0,204(r31) <== NOT EXECUTED ffc068c4: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc068c8: 39 29 28 88 addi r9,r9,10376 <== NOT EXECUTED ffc068cc: 54 00 28 34 rlwinm r0,r0,5,0,26 <== NOT EXECUTED ffc068d0: 7d 29 02 14 add r9,r9,r0 <== NOT EXECUTED ffc068d4: 80 09 00 08 lwz r0,8(r9) <== NOT EXECUTED ffc068d8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc068dc: 41 9e 00 60 beq- cr7,ffc0693c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); ffc068e0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc068e4: 7f 24 cb 78 mr r4,r25 <== NOT EXECUTED ffc068e8: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc068ec: 4e 80 04 21 bctrl <== NOT EXECUTED tty->tty_rcvwakeup = 0; ffc068f0: 38 00 00 00 li r0,0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); ffc068f4: 7c 78 1b 78 mr r24,r3 <== NOT EXECUTED tty->tty_rcvwakeup = 0; ffc068f8: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED rtems_semaphore_release (tty->isem); ffc068fc: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED ffc06900: 48 00 1d e5 bl ffc086e4 <== NOT EXECUTED } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } ffc06904: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc06908: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED ffc0690c: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc06910: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06914: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc06918: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc0691c: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc06920: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc06924: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc06928: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc0692c: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc06930: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc06934: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc06938: 4e 80 00 20 blr <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { ffc0693c: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc06940: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc06944: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06948: 41 9e 00 a4 beq- cr7,ffc069ec <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { ffc0694c: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc06950: 41 9e 00 48 beq- cr7,ffc06998 <== NOT EXECUTED ffc06954: 81 3f 00 24 lwz r9,36(r31) <== NOT EXECUTED ffc06958: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc0695c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06960: 40 9c 00 38 bge- cr7,ffc06998 <== NOT EXECUTED ffc06964: 7f 69 03 a6 mtctr r27 <== NOT EXECUTED ffc06968: 48 00 00 10 b ffc06978 <== NOT EXECUTED ffc0696c: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc06970: 7f 80 48 00 cmpw cr7,r0,r9 <== NOT EXECUTED ffc06974: 40 9d 00 24 ble- cr7,ffc06998 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; ffc06978: 81 7f 00 1c lwz r11,28(r31) <== NOT EXECUTED count--; ffc0697c: 3b 7b ff ff addi r27,r27,-1 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; ffc06980: 7c 0b 48 ae lbzx r0,r11,r9 <== NOT EXECUTED ffc06984: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED ffc06988: 98 1c 00 00 stb r0,0(r28) <== NOT EXECUTED ffc0698c: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED ffc06990: 91 3f 00 24 stw r9,36(r31) <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { ffc06994: 42 00 ff d8 bdnz+ ffc0696c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; ffc06998: 80 19 00 14 lwz r0,20(r25) <== NOT EXECUTED ffc0699c: 7f 7b 00 50 subf r27,r27,r0 <== NOT EXECUTED ffc069a0: 93 79 00 1c stw r27,28(r25) <== NOT EXECUTED tty->tty_rcvwakeup = 0; ffc069a4: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc069a8: 90 1f 00 e4 stw r0,228(r31) <== NOT EXECUTED rtems_semaphore_release (tty->isem); ffc069ac: 80 7f 00 14 lwz r3,20(r31) <== NOT EXECUTED ffc069b0: 48 00 1d 35 bl ffc086e4 <== NOT EXECUTED return sc; } ffc069b4: 80 01 00 34 lwz r0,52(r1) <== NOT EXECUTED ffc069b8: 7f 03 c3 78 mr r3,r24 <== NOT EXECUTED ffc069bc: 82 e1 00 0c lwz r23,12(r1) <== NOT EXECUTED ffc069c0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc069c4: 83 01 00 10 lwz r24,16(r1) <== NOT EXECUTED ffc069c8: 83 21 00 14 lwz r25,20(r1) <== NOT EXECUTED ffc069cc: 83 41 00 18 lwz r26,24(r1) <== NOT EXECUTED ffc069d0: 83 61 00 1c lwz r27,28(r1) <== NOT EXECUTED ffc069d4: 83 81 00 20 lwz r28,32(r1) <== NOT EXECUTED ffc069d8: 83 a1 00 24 lwz r29,36(r1) <== NOT EXECUTED ffc069dc: 83 c1 00 28 lwz r30,40(r1) <== NOT EXECUTED ffc069e0: 83 e1 00 2c lwz r31,44(r1) <== NOT EXECUTED ffc069e4: 38 21 00 30 addi r1,r1,48 <== NOT EXECUTED ffc069e8: 4e 80 00 20 blr <== NOT EXECUTED } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL && tty->device.outputUsesInterrupts == TERMIOS_POLLED) ffc069ec: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; ffc069f0: 81 3f 00 28 lwz r9,40(r31) <== NOT EXECUTED if (tty->device.pollRead != NULL ffc069f4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; ffc069f8: 93 1f 00 20 stw r24,32(r31) <== NOT EXECUTED tty->read_start_column = tty->column; ffc069fc: 91 3f 00 2c stw r9,44(r31) <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; ffc06a00: 93 1f 00 24 stw r24,36(r31) <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL ffc06a04: 41 9e 00 10 beq- cr7,ffc06a14 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) ffc06a08: 81 3f 00 b4 lwz r9,180(r31) <== NOT EXECUTED ffc06a0c: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc06a10: 41 9e 01 8c beq- cr7,ffc06b9c <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc06a14: 3f a0 00 00 lis r29,0 <== NOT EXECUTED * Fill the input buffer from the raw input queue */ static rtems_status_code fillBufferQueue (struct rtems_termios_tty *tty) { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; ffc06a18: 83 df 00 74 lwz r30,116(r31) <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc06a1c: 3b bd 21 68 addi r29,r29,8552 <== NOT EXECUTED if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, ffc06a20: 3a ff 00 49 addi r23,r31,73 <== NOT EXECUTED ffc06a24: 3b 40 00 01 li r26,1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc06a28: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc06a2c: 80 1f 00 60 lwz r0,96(r31) <== NOT EXECUTED ffc06a30: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06a34: 41 9e 00 ec beq- cr7,ffc06b20 <== NOT EXECUTED ffc06a38: 81 7d 00 00 lwz r11,0(r29) <== NOT EXECUTED ffc06a3c: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06a40: 38 0b ff ff addi r0,r11,-1 <== NOT EXECUTED ffc06a44: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06a48: 40 9c 00 d8 bge- cr7,ffc06b20 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; ffc06a4c: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc06a50: 81 7f 00 64 lwz r11,100(r31) <== NOT EXECUTED ffc06a54: 39 29 00 01 addi r9,r9,1 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; ffc06a58: 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; ffc06a5c: 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) ffc06a60: 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; ffc06a64: 7c 00 59 d6 mullw r0,r0,r11 <== NOT EXECUTED ffc06a68: 7c 00 48 50 subf r0,r0,r9 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; ffc06a6c: 7f c8 00 ae lbzx r30,r8,r0 <== NOT EXECUTED tty->rawInBuf.Head = newHead; ffc06a70: 90 1f 00 5c stw r0,92(r31) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) ffc06a74: 81 7f 00 60 lwz r11,96(r31) <== NOT EXECUTED ffc06a78: 81 1f 00 64 lwz r8,100(r31) <== NOT EXECUTED ffc06a7c: 81 3f 00 64 lwz r9,100(r31) <== NOT EXECUTED ffc06a80: 7d 68 5a 14 add r11,r8,r11 <== NOT EXECUTED ffc06a84: 7c 00 58 50 subf r0,r0,r11 <== NOT EXECUTED ffc06a88: 7d 60 4b 96 divwu r11,r0,r9 <== NOT EXECUTED ffc06a8c: 7d 2b 49 d6 mullw r9,r11,r9 <== NOT EXECUTED ffc06a90: 7c 09 00 50 subf r0,r9,r0 <== NOT EXECUTED ffc06a94: 7f 80 50 40 cmplw cr7,r0,r10 <== NOT EXECUTED ffc06a98: 40 9c 00 50 bge- cr7,ffc06ae8 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; ffc06a9c: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06aa0: 54 00 00 3c rlwinm r0,r0,0,0,30 <== NOT EXECUTED ffc06aa4: 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)) ffc06aa8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06aac: 70 00 02 02 andi. r0,r0,514 <== NOT EXECUTED ffc06ab0: 2f 80 02 02 cmpwi cr7,r0,514 <== NOT EXECUTED ffc06ab4: 41 9e 00 b4 beq- cr7,ffc06b68 <== NOT EXECUTED /* XON should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { ffc06ab8: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc06abc: 70 09 01 00 andi. r9,r0,256 <== NOT EXECUTED ffc06ac0: 41 82 00 28 beq- ffc06ae8 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc06ac4: 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; ffc06ac8: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc06acc: 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; ffc06ad0: 55 29 07 b8 rlwinm r9,r9,0,30,28 <== NOT EXECUTED ffc06ad4: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { ffc06ad8: 41 9e 00 10 beq- cr7,ffc06ae8 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); ffc06adc: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06ae0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06ae4: 4e 80 04 21 bctrl <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { ffc06ae8: 80 1f 00 3c lwz r0,60(r31) <== NOT EXECUTED ffc06aec: 70 09 00 02 andi. r9,r0,2 <== NOT EXECUTED ffc06af0: 41 82 00 54 beq- ffc06b44 <== NOT EXECUTED if (siproc (c, tty)) ffc06af4: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06af8: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06afc: 4b ff fb 01 bl ffc065fc <== NOT EXECUTED ffc06b00: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06b04: 41 9e 00 08 beq- cr7,ffc06b0c <== NOT EXECUTED wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc06b08: 3b 40 00 00 li r26,0 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc06b0c: 81 3f 00 5c lwz r9,92(r31) <== NOT EXECUTED ffc06b10: 80 1f 00 60 lwz r0,96(r31) <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; ffc06b14: 83 df 00 70 lwz r30,112(r31) <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && ffc06b18: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06b1c: 40 9e ff 1c bne+ cr7,ffc06a38 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { ffc06b20: 2f 9a 00 00 cmpwi cr7,r26,0 <== NOT EXECUTED ffc06b24: 41 9e fe 28 beq+ cr7,ffc0694c <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, ffc06b28: 80 7f 00 68 lwz r3,104(r31) <== NOT EXECUTED ffc06b2c: 7f c5 f3 78 mr r5,r30 <== NOT EXECUTED ffc06b30: 80 9f 00 6c lwz r4,108(r31) <== NOT EXECUTED ffc06b34: 48 00 1a 51 bl ffc08584 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) ffc06b38: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06b3c: 41 9e fe ec beq+ cr7,ffc06a28 <== NOT EXECUTED ffc06b40: 4b ff fe 0c b ffc0694c <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); ffc06b44: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06b48: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06b4c: 4b ff fa b1 bl ffc065fc <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc06b50: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc06b54: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06b58: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06b5c: 41 bc ff b0 blt- cr7,ffc06b0c <== NOT EXECUTED ffc06b60: 3b 40 00 00 li r26,0 <== NOT EXECUTED ffc06b64: 4b ff ff a8 b ffc06b0c <== 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)) ffc06b68: 80 1f 00 94 lwz r0,148(r31) <== NOT EXECUTED ffc06b6c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06b70: 41 9e 00 10 beq- cr7,ffc06b80 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { ffc06b74: 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)) ffc06b78: 70 09 00 20 andi. r9,r0,32 <== NOT EXECUTED ffc06b7c: 41 a2 ff 3c beq- ffc06ab8 <== 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, ffc06b80: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc06b84: 7e e4 bb 78 mr r4,r23 <== NOT EXECUTED ffc06b88: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06b8c: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc06b90: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06b94: 4e 80 04 21 bctrl <== NOT EXECUTED ffc06b98: 4b ff ff 50 b ffc06ae8 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { ffc06b9c: 81 3f 00 3c lwz r9,60(r31) <== NOT EXECUTED ffc06ba0: 71 2b 00 02 andi. r11,r9,2 <== NOT EXECUTED ffc06ba4: 41 82 00 34 beq- ffc06bd8 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); ffc06ba8: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06bac: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06bb0: 4e 80 04 21 bctrl <== NOT EXECUTED if (n < 0) { rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc06bb4: 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) { ffc06bb8: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc06bbc: 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) { ffc06bc0: 41 80 00 c0 blt- ffc06c80 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) ffc06bc4: 4b ff fa 39 bl ffc065fc <== NOT EXECUTED ffc06bc8: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc06bcc: 40 be fd 80 bne- cr7,ffc0694c <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { ffc06bd0: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc06bd4: 4b ff ff d4 b ffc06ba8 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); ffc06bd8: 48 00 11 95 bl ffc07d6c <== NOT EXECUTED ffc06bdc: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); ffc06be0: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc06be4: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc06be8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc06bec: 4e 80 04 21 bctrl <== NOT EXECUTED if (n < 0) { ffc06bf0: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc06bf4: 41 80 00 38 blt- ffc06c2c <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); ffc06bf8: 54 63 06 3e clrlwi r3,r3,24 <== NOT EXECUTED ffc06bfc: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06c00: 4b ff f9 fd bl ffc065fc <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) ffc06c04: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc06c08: 81 3f 00 20 lwz r9,32(r31) <== NOT EXECUTED ffc06c0c: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc06c10: 40 bc fd 3c bge- cr7,ffc0694c <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) ffc06c14: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06c18: 41 be ff c8 beq- cr7,ffc06be0 <== NOT EXECUTED ffc06c1c: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc06c20: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06c24: 41 9e ff bc beq+ cr7,ffc06be0 <== NOT EXECUTED ffc06c28: 4b ff ff b0 b ffc06bd8 <== NOT EXECUTED rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { if (tty->termios.c_cc[VMIN]) { ffc06c2c: 88 1f 00 47 lbz r0,71(r31) <== NOT EXECUTED ffc06c30: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06c34: 41 9e 00 28 beq- cr7,ffc06c5c <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { ffc06c38: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc06c3c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06c40: 41 9e 00 10 beq- cr7,ffc06c50 <== NOT EXECUTED ffc06c44: 80 1f 00 20 lwz r0,32(r31) <== NOT EXECUTED ffc06c48: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06c4c: 40 9e 00 1c bne- cr7,ffc06c68 <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); ffc06c50: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06c54: 48 00 20 35 bl ffc08c88 <== NOT EXECUTED ffc06c58: 4b ff ff 88 b ffc06be0 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) ffc06c5c: 88 1f 00 46 lbz r0,70(r31) <== NOT EXECUTED ffc06c60: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc06c64: 41 be fc e8 beq- cr7,ffc0694c <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); ffc06c68: 48 00 11 05 bl ffc07d6c <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { ffc06c6c: 80 1f 00 54 lwz r0,84(r31) <== NOT EXECUTED ffc06c70: 7c 7e 18 50 subf r3,r30,r3 <== NOT EXECUTED ffc06c74: 7f 83 00 40 cmplw cr7,r3,r0 <== NOT EXECUTED ffc06c78: 40 9d ff d8 ble+ cr7,ffc06c50 <== NOT EXECUTED ffc06c7c: 4b ff fc d0 b ffc0694c <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); ffc06c80: 38 60 00 01 li r3,1 <== NOT EXECUTED ffc06c84: 48 00 20 05 bl ffc08c88 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { ffc06c88: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc06c8c: 4b ff ff 1c b ffc06ba8 <== NOT EXECUTED ffc056b4 : * 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) { ffc056b4: 94 21 ff e8 stwu r1,-24(r1) <== NOT EXECUTED ffc056b8: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc056bc: 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)) ffc056c0: 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) { ffc056c4: 93 e1 00 14 stw r31,20(r1) <== NOT EXECUTED ffc056c8: 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)) ffc056cc: 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) { ffc056d0: 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)) ffc056d4: 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) { ffc056d8: 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)) ffc056dc: 41 9e 01 5c beq- cr7,ffc05838 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) ffc056e0: 80 03 00 b8 lwz r0,184(r3) <== NOT EXECUTED ffc056e4: 54 00 07 be clrlwi r0,r0,30 <== NOT EXECUTED ffc056e8: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc056ec: 41 9e 01 b4 beq- cr7,ffc058a0 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { ffc056f0: 81 23 00 80 lwz r9,128(r3) <== NOT EXECUTED ffc056f4: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED ffc056f8: 7f 89 00 00 cmpw cr7,r9,r0 <== NOT EXECUTED ffc056fc: 41 9e 00 d8 beq- cr7,ffc057d4 <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05700: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc05704: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc05708: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc0570c: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; ffc05710: 39 20 00 00 li r9,0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; ffc05714: 83 c3 00 90 lwz r30,144(r3) <== NOT EXECUTED tty->t_dqlen = 0; ffc05718: 91 23 00 90 stw r9,144(r3) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0571c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; ffc05720: 80 03 00 84 lwz r0,132(r3) <== NOT EXECUTED ffc05724: 81 23 00 88 lwz r9,136(r3) <== NOT EXECUTED ffc05728: 7c 1e 02 14 add r0,r30,r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { ffc0572c: 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; ffc05730: 7f c0 4b 96 divwu r30,r0,r9 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { ffc05734: 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; ffc05738: 7f de 49 d6 mullw r30,r30,r9 <== NOT EXECUTED ffc0573c: 7f de 00 50 subf r30,r30,r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; ffc05740: 93 c3 00 84 stw r30,132(r3) <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { ffc05744: 41 9e 00 e8 beq- cr7,ffc0582c <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { ffc05748: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc0574c: 7f 80 f0 00 cmpw cr7,r0,r30 <== NOT EXECUTED ffc05750: 41 9e 00 a0 beq- cr7,ffc057f0 <== NOT EXECUTED if ( tty->tty_snd.sw_pfn != NULL) { (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) ffc05754: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc05758: 70 00 02 10 andi. r0,r0,528 <== NOT EXECUTED ffc0575c: 2f 80 02 10 cmpwi cr7,r0,528 <== NOT EXECUTED ffc05760: 41 9e 01 a8 beq- cr7,ffc05908 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) ffc05764: 80 1f 00 80 lwz r0,128(r31) <== NOT EXECUTED ffc05768: 7f 9e 00 40 cmplw cr7,r30,r0 <== NOT EXECUTED ffc0576c: 41 9d 00 b4 bgt- cr7,ffc05820 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; ffc05770: 83 bf 00 80 lwz r29,128(r31) <== NOT EXECUTED ffc05774: 7f be e8 50 subf r29,r30,r29 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { ffc05778: 80 1f 00 b8 lwz r0,184(r31) <== NOT EXECUTED ffc0577c: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED ffc05780: 70 09 06 00 andi. r9,r0,1536 <== NOT EXECUTED ffc05784: 41 82 00 0c beq- ffc05790 <== NOT EXECUTED ffc05788: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc0578c: 3b a0 00 01 li r29,1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ ffc05790: 38 00 00 01 li r0,1 <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc05794: 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*/ ffc05798: 90 1f 00 94 stw r0,148(r31) <== NOT EXECUTED (*tty->device.write)(tty->minor, ffc0579c: 7c 84 f2 14 add r4,r4,r30 <== NOT EXECUTED ffc057a0: 80 1f 00 a4 lwz r0,164(r31) <== NOT EXECUTED ffc057a4: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc057a8: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc057ac: 4e 80 04 21 bctrl <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ ffc057b0: 93 df 00 84 stw r30,132(r31) <== NOT EXECUTED } return nToSend; } ffc057b4: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc057b8: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc057bc: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc057c0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc057c4: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc057c8: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc057cc: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc057d0: 4e 80 00 20 blr <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { ffc057d4: 80 03 00 94 lwz r0,148(r3) <== NOT EXECUTED ffc057d8: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc057dc: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc057e0: 40 9e ff d4 bne+ cr7,ffc057b4 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); ffc057e4: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED ffc057e8: 48 00 2e fd bl ffc086e4 <== NOT EXECUTED ffc057ec: 4b ff ff c8 b ffc057b4 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { ffc057f0: 80 1f 00 d4 lwz r0,212(r31) <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; ffc057f4: 39 20 00 00 li r9,0 <== NOT EXECUTED ffc057f8: 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) { ffc057fc: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc05800: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc05804: 41 be ff ac beq- cr7,ffc057b0 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); ffc05808: 38 7f 00 30 addi r3,r31,48 <== NOT EXECUTED ffc0580c: 80 9f 00 d8 lwz r4,216(r31) <== NOT EXECUTED ffc05810: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc05814: 4e 80 04 21 bctrl <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ ffc05818: 93 df 00 84 stw r30,132(r31) <== NOT EXECUTED ffc0581c: 4b ff ff 98 b ffc057b4 <== NOT EXECUTED else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; ffc05820: 83 bf 00 88 lwz r29,136(r31) <== NOT EXECUTED ffc05824: 7f be e8 50 subf r29,r30,r29 <== NOT EXECUTED ffc05828: 4b ff ff 50 b ffc05778 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); ffc0582c: 80 63 00 8c lwz r3,140(r3) <== NOT EXECUTED ffc05830: 48 00 2e b5 bl ffc086e4 <== NOT EXECUTED ffc05834: 4b ff ff 14 b ffc05748 <== NOT EXECUTED /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, ffc05838: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED ffc0583c: 38 9f 00 4a addi r4,r31,74 <== NOT EXECUTED ffc05840: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc05844: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED ffc05848: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0584c: 4e 80 04 21 bctrl <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05850: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc05854: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc05858: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc0585c: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc05860: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc05864: 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--; ffc05868: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc0586c: 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--; ffc05870: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; ffc05874: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc05878: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } ffc0587c: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc05880: 3b a0 00 01 li r29,1 <== NOT EXECUTED ffc05884: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc05888: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc0588c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc05890: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc05894: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc05898: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc0589c: 4e 80 00 20 blr <== NOT EXECUTED * FIXME: this .write call will generate another * dequeue callback. This will advance the "Tail" in the data * buffer, although the corresponding data is not yet out! * Therefore the dequeue "length" should be reduced by 1 */ (*tty->device.write)(tty->minor, ffc058a0: 80 03 00 a4 lwz r0,164(r3) <== NOT EXECUTED ffc058a4: 38 9f 00 49 addi r4,r31,73 <== NOT EXECUTED ffc058a8: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc058ac: 80 63 00 10 lwz r3,16(r3) <== NOT EXECUTED ffc058b0: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc058b4: 4e 80 04 21 bctrl <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc058b8: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc058bc: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc058c0: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc058c4: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; ffc058c8: 81 3f 00 90 lwz r9,144(r31) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc058cc: 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--; ffc058d0: 39 29 ff ff addi r9,r9,-1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc058d4: 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--; ffc058d8: 91 3f 00 90 stw r9,144(r31) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; ffc058dc: 91 7f 00 b8 stw r11,184(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc058e0: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } ffc058e4: 80 01 00 1c lwz r0,28(r1) <== NOT EXECUTED ffc058e8: 3b a0 00 01 li r29,1 <== NOT EXECUTED ffc058ec: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc058f0: 83 c1 00 10 lwz r30,16(r1) <== NOT EXECUTED ffc058f4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc058f8: 83 a1 00 0c lwz r29,12(r1) <== NOT EXECUTED ffc058fc: 83 e1 00 14 lwz r31,20(r1) <== NOT EXECUTED ffc05900: 38 21 00 18 addi r1,r1,24 <== NOT EXECUTED ffc05904: 4e 80 00 20 blr <== NOT EXECUTED static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc05908: 7c 00 00 a6 mfmsr r0 <== NOT EXECUTED ffc0590c: 7d 30 42 a6 mfsprg r9,0 <== NOT EXECUTED ffc05910: 7c 09 48 78 andc r9,r0,r9 <== NOT EXECUTED ffc05914: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; ffc05918: 81 3f 00 b8 lwz r9,184(r31) <== NOT EXECUTED ffc0591c: 61 29 00 20 ori r9,r9,32 <== NOT EXECUTED ffc05920: 91 3f 00 b8 stw r9,184(r31) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ ffc05924: 39 20 00 01 li r9,1 <== NOT EXECUTED ffc05928: 91 3f 00 94 stw r9,148(r31) <== NOT EXECUTED return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0592c: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED ffc05930: 3b a0 00 00 li r29,0 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ ffc05934: 93 df 00 84 stw r30,132(r31) <== NOT EXECUTED ffc05938: 4b ff fe 7c b ffc057b4 <== NOT EXECUTED ffc07824 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { ffc07824: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc07828: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0782c: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc07830: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc07834: 3b a1 00 08 addi r29,r1,8 <== NOT EXECUTED ffc07838: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc0783c: 3b c1 00 0c addi r30,r1,12 <== NOT EXECUTED ffc07840: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc07844: 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 | ffc07848: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc0784c: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc07850: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc07854: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc07858: 48 00 05 a9 bl ffc07e00 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { ffc0785c: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc07860: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc07864: 40 82 00 54 bne- ffc078b8 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); ffc07868: 80 1f 00 a0 lwz r0,160(r31) <== NOT EXECUTED ffc0786c: 80 7f 00 10 lwz r3,16(r31) <== NOT EXECUTED ffc07870: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc07874: 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 ( ffc07878: 7f a4 eb 78 mr r4,r29 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { ffc0787c: 2f 83 ff ff cmpwi cr7,r3,-1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); ffc07880: 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 ( ffc07884: 38 a0 00 01 li r5,1 <== NOT EXECUTED ffc07888: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED else { /* * do something */ c = tty->device.pollRead(tty->minor); if (c != EOF) { ffc0788c: 41 be ff bc beq- cr7,ffc07848 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; ffc07890: 98 01 00 08 stb r0,8(r1) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( ffc07894: 4b ff e1 2d bl ffc059c0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | ffc07898: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc0789c: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc078a0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc078a4: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc078a8: 48 00 05 59 bl ffc07e00 <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { ffc078ac: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc078b0: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc078b4: 41 82 ff b4 beq+ ffc07868 <== NOT EXECUTED tty->rxTaskId = 0; ffc078b8: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc078bc: 90 1f 00 c4 stw r0,196(r31) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); ffc078c0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc078c4: 48 00 10 d1 bl ffc08994 <== NOT EXECUTED ffc078c8: 4b ff ff 80 b ffc07848 <== NOT EXECUTED ffc0568c : * 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) { ffc0568c: 94 21 ff f8 stwu r1,-8(r1) <== NOT EXECUTED ffc05690: 7c 08 02 a6 mflr r0 <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); ffc05694: 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) { ffc05698: 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); ffc0569c: 80 63 00 c4 lwz r3,196(r3) <== NOT EXECUTED ffc056a0: 48 00 29 61 bl ffc08000 <== NOT EXECUTED } ffc056a4: 80 01 00 0c lwz r0,12(r1) <== NOT EXECUTED ffc056a8: 38 21 00 08 addi r1,r1,8 <== NOT EXECUTED ffc056ac: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc056b0: 4e 80 00 20 blr <== NOT EXECUTED ffc09888 : int rtems_termios_set_initial_baud( struct rtems_termios_tty *ttyp, int32_t baud ) { ffc09888: 94 21 ff f0 stwu r1,-16(r1) ffc0988c: 7c 08 02 a6 mflr r0 ffc09890: 93 e1 00 0c stw r31,12(r1) ffc09894: 7c 7f 1b 78 mr r31,r3 int cflags_baud; cflags_baud = rtems_termios_number_to_baud(baud); ffc09898: 7c 83 23 78 mr r3,r4 int rtems_termios_set_initial_baud( struct rtems_termios_tty *ttyp, int32_t baud ) { ffc0989c: 90 01 00 14 stw r0,20(r1) int cflags_baud; cflags_baud = rtems_termios_number_to_baud(baud); ffc098a0: 4b ff dc 25 bl ffc074c4 <== ALWAYS TAKEN if ( cflags_baud == -1 ) ffc098a4: 2f 83 ff ff cmpwi cr7,r3,-1 ffc098a8: 38 00 ff ff li r0,-1 ffc098ac: 41 9e 00 1c beq- cr7,ffc098c8 return -1; ttyp->termios.c_cflag = (ttyp->termios.c_cflag & ~CBAUD) | cflags_baud; ffc098b0: 80 1f 00 38 lwz r0,56(r31) ffc098b4: 39 20 ef f0 li r9,-4112 ffc098b8: 7d 20 00 38 and r0,r9,r0 ffc098bc: 7c 63 03 78 or r3,r3,r0 ffc098c0: 90 7f 00 38 stw r3,56(r31) ffc098c4: 38 00 00 00 li r0,0 return 0; } ffc098c8: 7c 03 03 78 mr r3,r0 ffc098cc: 80 01 00 14 lwz r0,20(r1) ffc098d0: 83 e1 00 0c lwz r31,12(r1) ffc098d4: 38 21 00 10 addi r1,r1,16 ffc098d8: 7c 08 03 a6 mtlr r0 ffc098dc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07778 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { ffc07778: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0777c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc07780: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc07784: 3f a0 00 00 lis r29,0 <== NOT EXECUTED ffc07788: 3b bd 28 88 addi r29,r29,10376 <== NOT EXECUTED ffc0778c: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED ffc07790: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc07794: 3b c1 00 08 addi r30,r1,8 <== NOT EXECUTED ffc07798: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc0779c: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | ffc077a0: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc077a4: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc077a8: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc077ac: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc077b0: 48 00 06 51 bl ffc07e00 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { ffc077b4: 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); ffc077b8: 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) { ffc077bc: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc077c0: 40 82 00 50 bne- ffc07810 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { ffc077c4: 81 3f 00 cc lwz r9,204(r31) <== NOT EXECUTED ffc077c8: 55 29 28 34 rlwinm r9,r9,5,0,26 <== NOT EXECUTED ffc077cc: 7d 3d 4a 14 add r9,r29,r9 <== NOT EXECUTED ffc077d0: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc077d4: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc077d8: 41 9e 00 0c beq- cr7,ffc077e4 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); ffc077dc: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc077e0: 4e 80 04 21 bctrl <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); ffc077e4: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc077e8: 4b ff de cd bl ffc056b4 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | ffc077ec: 38 80 00 02 li r4,2 <== NOT EXECUTED ffc077f0: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc077f4: 7f c6 f3 78 mr r6,r30 <== NOT EXECUTED ffc077f8: 38 60 00 03 li r3,3 <== NOT EXECUTED ffc077fc: 48 00 06 05 bl ffc07e00 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { ffc07800: 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); ffc07804: 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) { ffc07808: 70 09 00 01 andi. r9,r0,1 <== NOT EXECUTED ffc0780c: 41 82 ff b8 beq+ ffc077c4 <== NOT EXECUTED tty->txTaskId = 0; ffc07810: 38 00 00 00 li r0,0 <== NOT EXECUTED ffc07814: 90 1f 00 c8 stw r0,200(r31) <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); ffc07818: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0781c: 48 00 11 79 bl ffc08994 <== NOT EXECUTED ffc07820: 4b ff ff 80 b ffc077a0 <== NOT EXECUTED ffc06680 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc06680: 94 21 ff e0 stwu r1,-32(r1) ffc06684: 7c 08 02 a6 mflr r0 rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc06688: 38 80 00 00 li r4,0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc0668c: 90 01 00 24 stw r0,36(r1) <== 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); ffc06690: 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; ffc06694: 81 23 00 00 lwz r9,0(r3) <== ALWAYS TAKEN rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc06698: 93 e1 00 1c stw r31,28(r1) rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; ffc0669c: 83 e9 00 38 lwz r31,56(r9) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc066a0: 93 c1 00 18 stw r30,24(r1) ffc066a4: 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); ffc066a8: 80 7f 00 18 lwz r3,24(r31) rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { ffc066ac: 93 a1 00 14 stw r29,20(r1) ffc066b0: 93 41 00 08 stw r26,8(r1) <== ALWAYS TAKEN ffc066b4: 93 61 00 0c stw r27,12(r1) <== ALWAYS TAKEN ffc066b8: 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); ffc066bc: 48 00 1e c9 bl ffc08584 <== ALWAYS TAKEN if (sc != RTEMS_SUCCESSFUL) ffc066c0: 7c 7d 1b 79 mr. r29,r3 ffc066c4: 40 82 00 40 bne- ffc06704 <== NEVER TAKEN return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { ffc066c8: 80 1f 00 cc lwz r0,204(r31) <== ALWAYS TAKEN ffc066cc: 3d 20 00 00 lis r9,0 ffc066d0: 39 29 28 88 addi r9,r9,10376 ffc066d4: 54 00 28 34 rlwinm r0,r0,5,0,26 ffc066d8: 7d 29 02 14 add r9,r9,r0 ffc066dc: 80 09 00 0c lwz r0,12(r9) ffc066e0: 2f 80 00 00 cmpwi cr7,r0,0 ffc066e4: 41 9e 00 4c beq- cr7,ffc06730 <== ALWAYS TAKEN sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); ffc066e8: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc066ec: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc066f0: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc066f4: 4e 80 04 21 bctrl <== NOT EXECUTED ffc066f8: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_semaphore_release (tty->osem); ffc066fc: 80 7f 00 18 lwz r3,24(r31) <== NOT EXECUTED ffc06700: 48 00 1f e5 bl ffc086e4 <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } ffc06704: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc06708: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc0670c: 83 41 00 08 lwz r26,8(r1) <== NOT EXECUTED ffc06710: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06714: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc06718: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc0671c: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc06720: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc06724: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc06728: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0672c: 4e 80 00 20 blr <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_write != NULL) { sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { ffc06730: 80 1f 00 34 lwz r0,52(r31) ffc06734: 70 09 00 01 andi. r9,r0,1 <== ALWAYS TAKEN ffc06738: 41 82 00 70 beq- ffc067a8 <== NEVER TAKEN uint32_t count = args->count; ffc0673c: 83 7e 00 14 lwz r27,20(r30) char *buffer = args->buffer; while (count--) ffc06740: 3b 80 00 00 li r28,0 <== ALWAYS TAKEN rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; ffc06744: 83 5e 00 10 lwz r26,16(r30) while (count--) ffc06748: 38 00 00 00 li r0,0 ffc0674c: 2f 9b 00 00 cmpwi cr7,r27,0 <== ALWAYS TAKEN ffc06750: 41 9e 00 20 beq- cr7,ffc06770 <== NEVER TAKEN oproc (*buffer++, tty); ffc06754: 7c 7a e0 ae lbzx r3,r26,r28 ffc06758: 7f e4 fb 78 mr r4,r31 ffc0675c: 3b 9c 00 01 addi r28,r28,1 ffc06760: 4b ff f7 d9 bl ffc05f38 <== ALWAYS TAKEN return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) ffc06764: 7f 9b e0 00 cmpw cr7,r27,r28 <== ALWAYS TAKEN ffc06768: 40 9e ff ec bne+ cr7,ffc06754 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; ffc0676c: 80 1e 00 14 lwz r0,20(r30) ffc06770: 90 1e 00 1c stw r0,28(r30) } rtems_semaphore_release (tty->osem); ffc06774: 80 7f 00 18 lwz r3,24(r31) ffc06778: 48 00 1f 6d bl ffc086e4 <== ALWAYS TAKEN return sc; } ffc0677c: 80 01 00 24 lwz r0,36(r1) ffc06780: 7f a3 eb 78 mr r3,r29 ffc06784: 83 41 00 08 lwz r26,8(r1) ffc06788: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc0678c: 83 61 00 0c lwz r27,12(r1) ffc06790: 83 81 00 10 lwz r28,16(r1) ffc06794: 83 a1 00 14 lwz r29,20(r1) ffc06798: 83 c1 00 18 lwz r30,24(r1) ffc0679c: 83 e1 00 1c lwz r31,28(r1) ffc067a0: 38 21 00 20 addi r1,r1,32 <== ALWAYS TAKEN ffc067a4: 4e 80 00 20 blr <== ALWAYS TAKEN while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); ffc067a8: 80 7e 00 10 lwz r3,16(r30) <== NOT EXECUTED ffc067ac: 7f e5 fb 78 mr r5,r31 <== NOT EXECUTED ffc067b0: 80 9e 00 14 lwz r4,20(r30) <== NOT EXECUTED ffc067b4: 4b ff f5 f9 bl ffc05dac <== NOT EXECUTED ffc067b8: 4b ff ff b4 b ffc0676c <== NOT EXECUTED ffc1a70c : */ rtems_status_code rtems_timer_cancel( rtems_id id ) { ffc1a70c: 94 21 ff e8 stwu r1,-24(r1) ffc1a710: 7c 08 02 a6 mflr r0 ffc1a714: 7c 64 1b 78 mr r4,r3 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) ffc1a718: 3c 60 00 00 lis r3,0 ffc1a71c: 90 01 00 1c stw r0,28(r1) ffc1a720: 38 63 79 44 addi r3,r3,31044 ffc1a724: 38 a1 00 08 addi r5,r1,8 ffc1a728: 48 00 39 49 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc1a72c: 81 21 00 08 lwz r9,8(r1) ffc1a730: 38 00 00 04 li r0,4 ffc1a734: 2f 89 00 00 cmpwi cr7,r9,0 ffc1a738: 40 9e 00 20 bne- cr7,ffc1a758 case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) ffc1a73c: 80 03 00 38 lwz r0,56(r3) ffc1a740: 2f 80 00 04 cmpwi cr7,r0,4 ffc1a744: 41 9e 00 0c beq- cr7,ffc1a750 <== NEVER TAKEN (void) _Watchdog_Remove( &the_timer->Ticker ); ffc1a748: 38 63 00 10 addi r3,r3,16 ffc1a74c: 48 00 63 0d bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc1a750: 48 00 45 ad bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1a754: 38 00 00 00 li r0,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1a758: 7c 03 03 78 mr r3,r0 ffc1a75c: 80 01 00 1c lwz r0,28(r1) ffc1a760: 38 21 00 18 addi r1,r1,24 ffc1a764: 7c 08 03 a6 mtlr r0 ffc1a768: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0914c : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { ffc0914c: 94 21 ff e8 stwu r1,-24(r1) ffc09150: 7c 08 02 a6 mflr r0 ffc09154: 93 e1 00 14 stw r31,20(r1) Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) ffc09158: 7c 7f 1b 79 mr. r31,r3 ffc0915c: 38 60 00 03 li r3,3 rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { ffc09160: 93 c1 00 10 stw r30,16(r1) ffc09164: 7c 9e 23 78 mr r30,r4 ffc09168: 90 01 00 1c stw r0,28(r1) ffc0916c: 93 a1 00 0c stw r29,12(r1) Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) ffc09170: 41 82 00 74 beq- ffc091e4 return RTEMS_INVALID_NAME; if ( !id ) ffc09174: 2f 84 00 00 cmpwi cr7,r4,0 <== ALWAYS TAKEN ffc09178: 38 60 00 09 li r3,9 ffc0917c: 41 9e 00 68 beq- cr7,ffc091e4 ffc09180: 3d 20 00 00 lis r9,0 ffc09184: 81 69 27 9c lwz r11,10140(r9) ffc09188: 38 0b 00 01 addi r0,r11,1 ffc0918c: 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 ); ffc09190: 3f a0 00 00 lis r29,0 ffc09194: 3b bd 34 c4 addi r29,r29,13508 ffc09198: 7f a3 eb 78 mr r3,r29 ffc0919c: 48 00 12 b9 bl ffc0a454 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { ffc091a0: 2c 03 00 00 cmpwi r3,0 ffc091a4: 41 82 00 5c beq- ffc09200 ffc091a8: 81 23 00 08 lwz r9,8(r3) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc091ac: 38 00 00 00 li r0,0 ffc091b0: 81 5d 00 1c lwz r10,28(r29) ffc091b4: 55 2b 13 ba rlwinm r11,r9,2,14,29 information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; ffc091b8: 93 e3 00 0c stw r31,12(r3) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc091bc: 7c 6a 59 2e stwx r3,r10,r11 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; ffc091c0: 39 60 00 04 li r11,4 the_watchdog->routine = routine; the_watchdog->id = id; ffc091c4: 90 03 00 30 stw r0,48(r3) ffc091c8: 91 63 00 38 stw r11,56(r3) the_watchdog->user_data = user_data; ffc091cc: 90 03 00 34 stw r0,52(r3) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc091d0: 90 03 00 18 stw r0,24(r3) the_watchdog->routine = routine; ffc091d4: 90 03 00 2c stw r0,44(r3) &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; ffc091d8: 91 3e 00 00 stw r9,0(r30) _Thread_Enable_dispatch(); ffc091dc: 48 00 24 45 bl ffc0b620 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc091e0: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; } ffc091e4: 80 01 00 1c lwz r0,28(r1) ffc091e8: 83 a1 00 0c lwz r29,12(r1) ffc091ec: 7c 08 03 a6 mtlr r0 ffc091f0: 83 c1 00 10 lwz r30,16(r1) ffc091f4: 83 e1 00 14 lwz r31,20(r1) ffc091f8: 38 21 00 18 addi r1,r1,24 ffc091fc: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { _Thread_Enable_dispatch(); ffc09200: 48 00 24 21 bl ffc0b620 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } ffc09204: 80 01 00 1c lwz r0,28(r1) _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { _Thread_Enable_dispatch(); ffc09208: 38 60 00 05 li r3,5 ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } ffc0920c: 83 a1 00 0c lwz r29,12(r1) ffc09210: 7c 08 03 a6 mtlr r0 ffc09214: 83 c1 00 10 lwz r30,16(r1) ffc09218: 83 e1 00 14 lwz r31,20(r1) ffc0921c: 38 21 00 18 addi r1,r1,24 ffc09220: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1a844 : */ rtems_status_code rtems_timer_delete( rtems_id id ) { ffc1a844: 94 21 ff e0 stwu r1,-32(r1) ffc1a848: 7c 08 02 a6 mflr r0 ffc1a84c: 7c 64 1b 78 mr r4,r3 ffc1a850: 93 e1 00 1c stw r31,28(r1) RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) ffc1a854: 3f e0 00 00 lis r31,0 ffc1a858: 3b ff 79 44 addi r31,r31,31044 ffc1a85c: 7f e3 fb 78 mr r3,r31 ffc1a860: 90 01 00 24 stw r0,36(r1) ffc1a864: 38 a1 00 08 addi r5,r1,8 ffc1a868: 93 c1 00 18 stw r30,24(r1) ffc1a86c: 48 00 38 05 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN ffc1a870: 7c 7e 1b 78 mr r30,r3 Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc1a874: 80 01 00 08 lwz r0,8(r1) ffc1a878: 38 60 00 04 li r3,4 ffc1a87c: 2f 80 00 00 cmpwi cr7,r0,0 ffc1a880: 40 9e 00 2c bne- cr7,ffc1a8ac case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); ffc1a884: 7f c4 f3 78 mr r4,r30 ffc1a888: 7f e3 fb 78 mr r3,r31 ffc1a88c: 48 00 32 65 bl ffc1daf0 <_Objects_Close> <== ALWAYS TAKEN (void) _Watchdog_Remove( &the_timer->Ticker ); ffc1a890: 38 7e 00 10 addi r3,r30,16 ffc1a894: 48 00 61 c5 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); ffc1a898: 7f e3 fb 78 mr r3,r31 ffc1a89c: 7f c4 f3 78 mr r4,r30 ffc1a8a0: 48 00 35 a9 bl ffc1de48 <_Objects_Free> <== ALWAYS TAKEN _Timer_Free( the_timer ); _Thread_Enable_dispatch(); ffc1a8a4: 48 00 44 59 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1a8a8: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1a8ac: 80 01 00 24 lwz r0,36(r1) ffc1a8b0: 83 c1 00 18 lwz r30,24(r1) ffc1a8b4: 7c 08 03 a6 mtlr r0 ffc1a8b8: 83 e1 00 1c lwz r31,28(r1) ffc1a8bc: 38 21 00 20 addi r1,r1,32 ffc1a8c0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09224 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc09224: 94 21 ff d0 stwu r1,-48(r1) ffc09228: 7c 08 02 a6 mflr r0 ffc0922c: 93 a1 00 24 stw r29,36(r1) Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) ffc09230: 7c 9d 23 79 mr. r29,r4 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc09234: 93 81 00 20 stw r28,32(r1) ffc09238: 7c dc 33 78 mr r28,r6 ffc0923c: 93 c1 00 28 stw r30,40(r1) ffc09240: 7c 7e 1b 78 mr r30,r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) ffc09244: 38 60 00 0a li r3,10 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc09248: 93 e1 00 2c stw r31,44(r1) ffc0924c: 7c bf 2b 78 mr r31,r5 ffc09250: 90 01 00 34 stw r0,52(r1) ffc09254: 93 41 00 18 stw r26,24(r1) ffc09258: 93 61 00 1c stw r27,28(r1) Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) ffc0925c: 41 82 00 38 beq- ffc09294 return RTEMS_INVALID_NUMBER; if ( !routine ) ffc09260: 2f 85 00 00 cmpwi cr7,r5,0 ffc09264: 38 60 00 09 li r3,9 ffc09268: 41 9e 00 2c beq- cr7,ffc09294 RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) ffc0926c: 3c 60 00 00 lis r3,0 ffc09270: 38 63 34 c4 addi r3,r3,13508 ffc09274: 7f c4 f3 78 mr r4,r30 ffc09278: 38 a1 00 08 addi r5,r1,8 ffc0927c: 48 00 17 d9 bl ffc0aa54 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc09280: 80 01 00 08 lwz r0,8(r1) <== ALWAYS TAKEN ffc09284: 7c 7b 1b 78 mr r27,r3 ffc09288: 2f 80 00 00 cmpwi cr7,r0,0 ffc0928c: 38 60 00 04 li r3,4 ffc09290: 41 9e 00 2c beq- cr7,ffc092bc case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc09294: 80 01 00 34 lwz r0,52(r1) ffc09298: 83 41 00 18 lwz r26,24(r1) ffc0929c: 7c 08 03 a6 mtlr r0 ffc092a0: 83 61 00 1c lwz r27,28(r1) ffc092a4: 83 81 00 20 lwz r28,32(r1) ffc092a8: 83 a1 00 24 lwz r29,36(r1) ffc092ac: 83 c1 00 28 lwz r30,40(r1) ffc092b0: 83 e1 00 2c lwz r31,44(r1) ffc092b4: 38 21 00 30 addi r1,r1,48 ffc092b8: 4e 80 00 20 blr <== ALWAYS TAKEN the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc092bc: 3b 5b 00 10 addi r26,r27,16 ffc092c0: 7f 43 d3 78 mr r3,r26 ffc092c4: 48 00 3c 11 bl ffc0ced4 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc092c8: 7d 20 00 a6 mfmsr r9 ffc092cc: 7c 10 42 a6 mfsprg r0,0 ffc092d0: 7d 20 00 78 andc r0,r9,r0 ffc092d4: 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 ) { ffc092d8: 80 1b 00 18 lwz r0,24(r27) ffc092dc: 2f 80 00 00 cmpwi cr7,r0,0 ffc092e0: 40 9e 00 60 bne- cr7,ffc09340 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc092e4: 90 1b 00 18 stw r0,24(r27) the_watchdog->routine = routine; ffc092e8: 93 fb 00 2c stw r31,44(r27) the_watchdog->id = id; ffc092ec: 93 db 00 30 stw r30,48(r27) the_watchdog->user_data = user_data; ffc092f0: 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; ffc092f4: 90 1b 00 38 stw r0,56(r27) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc092f8: 7d 20 01 24 mtmsr r9 ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc092fc: 3c 60 00 00 lis r3,0 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc09300: 93 bb 00 1c stw r29,28(r27) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc09304: 38 63 2d 28 addi r3,r3,11560 ffc09308: 7f 44 d3 78 mr r4,r26 ffc0930c: 48 00 3a 01 bl ffc0cd0c <_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(); ffc09310: 48 00 23 11 bl ffc0b620 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc09314: 80 01 00 34 lwz r0,52(r1) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); ffc09318: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc0931c: 83 41 00 18 lwz r26,24(r1) ffc09320: 7c 08 03 a6 mtlr r0 ffc09324: 83 61 00 1c lwz r27,28(r1) ffc09328: 83 81 00 20 lwz r28,32(r1) ffc0932c: 83 a1 00 24 lwz r29,36(r1) ffc09330: 83 c1 00 28 lwz r30,40(r1) ffc09334: 83 e1 00 2c lwz r31,44(r1) ffc09338: 38 21 00 30 addi r1,r1,48 ffc0933c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09340: 7d 20 01 24 mtmsr r9 * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); _Thread_Enable_dispatch(); ffc09344: 48 00 22 dd bl ffc0b620 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09348: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc0934c: 4b ff ff 48 b ffc09294 <== ALWAYS TAKEN ffc1a9f0 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1a9f0: 94 21 ff c0 stwu r1,-64(r1) ffc1a9f4: 7c 08 02 a6 mflr r0 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc1a9f8: 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 ) { ffc1a9fc: 90 01 00 44 stw r0,68(r1) Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc1aa00: 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 ) { ffc1aa04: 93 a1 00 34 stw r29,52(r1) ffc1aa08: 7c dd 33 78 mr r29,r6 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc1aa0c: 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 ) { ffc1aa10: 93 c1 00 38 stw r30,56(r1) ffc1aa14: 7c 7e 1b 78 mr r30,r3 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc1aa18: 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 ) { ffc1aa1c: 93 e1 00 3c stw r31,60(r1) ffc1aa20: 7c bf 2b 78 mr r31,r5 ffc1aa24: 93 01 00 20 stw r24,32(r1) ffc1aa28: 93 21 00 24 stw r25,36(r1) ffc1aa2c: 93 41 00 28 stw r26,40(r1) ffc1aa30: 93 61 00 2c stw r27,44(r1) ffc1aa34: 93 81 00 30 stw r28,48(r1) Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) ffc1aa38: 40 9e 00 34 bne- cr7,ffc1aa6c case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1aa3c: 80 01 00 44 lwz r0,68(r1) ffc1aa40: 83 01 00 20 lwz r24,32(r1) ffc1aa44: 7c 08 03 a6 mtlr r0 ffc1aa48: 83 21 00 24 lwz r25,36(r1) ffc1aa4c: 83 41 00 28 lwz r26,40(r1) ffc1aa50: 83 61 00 2c lwz r27,44(r1) ffc1aa54: 83 81 00 30 lwz r28,48(r1) ffc1aa58: 83 a1 00 34 lwz r29,52(r1) ffc1aa5c: 83 c1 00 38 lwz r30,56(r1) ffc1aa60: 83 e1 00 3c lwz r31,60(r1) ffc1aa64: 38 21 00 40 addi r1,r1,64 ffc1aa68: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) ffc1aa6c: 7c 83 23 78 mr r3,r4 ffc1aa70: 90 81 00 18 stw r4,24(r1) ffc1aa74: 4b ff c2 e1 bl ffc16d54 <_TOD_Validate> <== ALWAYS TAKEN ffc1aa78: 2f 83 00 00 cmpwi cr7,r3,0 ffc1aa7c: 80 81 00 18 lwz r4,24(r1) ffc1aa80: 41 9e 00 2c beq- cr7,ffc1aaac return RTEMS_INVALID_CLOCK; if ( !routine ) ffc1aa84: 2f 9f 00 00 cmpwi cr7,r31,0 ffc1aa88: 38 60 00 09 li r3,9 ffc1aa8c: 41 be ff b0 beq- cr7,ffc1aa3c return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); ffc1aa90: 7c 83 23 78 mr r3,r4 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc1aa94: 3f 60 00 00 lis r27,0 <== ALWAYS TAKEN return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); ffc1aa98: 4b ff c2 19 bl ffc16cb0 <_TOD_To_seconds> <== ALWAYS TAKEN if ( seconds <= _TOD_Seconds_since_epoch() ) ffc1aa9c: 80 1b 28 88 lwz r0,10376(r27) return RTEMS_INVALID_CLOCK; if ( !routine ) return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); ffc1aaa0: 7c 7c 1b 78 mr r28,r3 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc1aaa4: 7f 83 00 40 cmplw cr7,r3,r0 ffc1aaa8: 41 9d 00 38 bgt- cr7,ffc1aae0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1aaac: 80 01 00 44 lwz r0,68(r1) _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc1aab0: 38 60 00 14 li r3,20 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1aab4: 83 01 00 20 lwz r24,32(r1) ffc1aab8: 7c 08 03 a6 mtlr r0 ffc1aabc: 83 21 00 24 lwz r25,36(r1) ffc1aac0: 83 41 00 28 lwz r26,40(r1) ffc1aac4: 83 61 00 2c lwz r27,44(r1) ffc1aac8: 83 81 00 30 lwz r28,48(r1) ffc1aacc: 83 a1 00 34 lwz r29,52(r1) ffc1aad0: 83 c1 00 38 lwz r30,56(r1) ffc1aad4: 83 e1 00 3c lwz r31,60(r1) ffc1aad8: 38 21 00 40 addi r1,r1,64 ffc1aadc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1aae0: 3c 60 00 00 lis r3,0 ffc1aae4: 38 63 79 44 addi r3,r3,31044 ffc1aae8: 7f c4 f3 78 mr r4,r30 ffc1aaec: 38 a1 00 08 addi r5,r1,8 ffc1aaf0: 48 00 35 81 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc1aaf4: 83 21 00 08 lwz r25,8(r1) ffc1aaf8: 7c 7a 1b 78 mr r26,r3 ffc1aafc: 2f 99 00 00 cmpwi cr7,r25,0 ffc1ab00: 38 60 00 04 li r3,4 ffc1ab04: 40 be ff 38 bne- cr7,ffc1aa3c case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc1ab08: 3b 1a 00 10 addi r24,r26,16 ffc1ab0c: 7f 03 c3 78 mr r3,r24 ffc1ab10: 48 00 5f 49 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc1ab14: 93 da 00 30 stw r30,48(r26) the_timer->the_class = TIMER_TIME_OF_DAY; ffc1ab18: 39 20 00 02 li r9,2 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc1ab1c: 80 1b 28 88 lwz r0,10376(r27) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc1ab20: 3c 60 00 00 lis r3,0 ffc1ab24: 91 3a 00 38 stw r9,56(r26) ffc1ab28: 38 63 71 5c addi r3,r3,29020 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc1ab2c: 7f 80 e0 50 subf r28,r0,r28 ffc1ab30: 93 9a 00 1c stw r28,28(r26) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc1ab34: 7f 04 c3 78 mr r4,r24 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc1ab38: 93 3a 00 18 stw r25,24(r26) the_watchdog->routine = routine; ffc1ab3c: 93 fa 00 2c stw r31,44(r26) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc1ab40: 93 ba 00 34 stw r29,52(r26) ) { the_watchdog->initial = units; _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); ffc1ab44: 48 00 5d 4d bl ffc20890 <_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(); ffc1ab48: 48 00 41 b5 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1ab4c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc1ab50: 4b ff fe ec b ffc1aa3c <== ALWAYS TAKEN ffc1ab54 : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { ffc1ab54: 94 21 ff e0 stwu r1,-32(r1) ffc1ab58: 7c 08 02 a6 mflr r0 ffc1ab5c: 93 e1 00 1c stw r31,28(r1) Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) ffc1ab60: 7c 9f 23 79 mr. r31,r4 rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { ffc1ab64: 7c 64 1b 78 mr r4,r3 ffc1ab68: 90 01 00 24 stw r0,36(r1) Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) ffc1ab6c: 38 60 00 09 li r3,9 ffc1ab70: 41 82 00 28 beq- ffc1ab98 ffc1ab74: 3c 60 00 00 lis r3,0 ffc1ab78: 38 63 79 44 addi r3,r3,31044 ffc1ab7c: 38 a1 00 08 addi r5,r1,8 ffc1ab80: 48 00 34 f1 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc1ab84: 80 01 00 08 lwz r0,8(r1) ffc1ab88: 7c 69 1b 78 mr r9,r3 ffc1ab8c: 2f 80 00 00 cmpwi cr7,r0,0 ffc1ab90: 38 60 00 04 li r3,4 ffc1ab94: 41 9e 00 18 beq- cr7,ffc1abac case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1ab98: 80 01 00 24 lwz r0,36(r1) ffc1ab9c: 83 e1 00 1c lwz r31,28(r1) ffc1aba0: 38 21 00 20 addi r1,r1,32 ffc1aba4: 7c 08 03 a6 mtlr r0 ffc1aba8: 4e 80 00 20 blr <== ALWAYS TAKEN the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; the_info->initial = the_timer->Ticker.initial; ffc1abac: 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; ffc1abb0: 81 69 00 38 lwz r11,56(r9) the_info->initial = the_timer->Ticker.initial; ffc1abb4: 90 1f 00 04 stw r0,4(r31) the_info->start_time = the_timer->Ticker.start_time; ffc1abb8: 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; ffc1abbc: 91 7f 00 00 stw r11,0(r31) the_info->initial = the_timer->Ticker.initial; the_info->start_time = the_timer->Ticker.start_time; ffc1abc0: 90 1f 00 08 stw r0,8(r31) the_info->stop_time = the_timer->Ticker.stop_time; ffc1abc4: 80 09 00 28 lwz r0,40(r9) ffc1abc8: 90 1f 00 0c stw r0,12(r31) _Thread_Enable_dispatch(); ffc1abcc: 48 00 41 31 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1abd0: 80 01 00 24 lwz r0,36(r1) case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; the_info->initial = the_timer->Ticker.initial; the_info->start_time = the_timer->Ticker.start_time; the_info->stop_time = the_timer->Ticker.stop_time; _Thread_Enable_dispatch(); ffc1abd4: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1abd8: 83 e1 00 1c lwz r31,28(r1) ffc1abdc: 7c 08 03 a6 mtlr r0 ffc1abe0: 38 21 00 20 addi r1,r1,32 ffc1abe4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1abe8 : rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { ffc1abe8: 94 21 ff f8 stwu r1,-8(r1) ffc1abec: 7c 08 02 a6 mflr r0 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1abf0: 3c a0 7f ff lis r5,32767 rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { ffc1abf4: 90 01 00 0c stw r0,12(r1) ffc1abf8: 7c 60 1b 78 mr r0,r3 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1abfc: 3c 60 00 00 lis r3,0 rtems_status_code rtems_timer_ident( rtems_name name, rtems_id *id ) { ffc1ac00: 7c 86 23 78 mr r6,r4 Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1ac04: 38 63 79 44 addi r3,r3,31044 ffc1ac08: 7c 04 03 78 mr r4,r0 ffc1ac0c: 60 a5 ff ff ori r5,r5,65535 ffc1ac10: 48 00 36 f9 bl ffc1e308 <_Objects_Name_to_id_u32> <== ALWAYS TAKEN OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc1ac14: 80 01 00 0c lwz r0,12(r1) ffc1ac18: 3d 20 ff c4 lis r9,-60 ffc1ac1c: 7c 08 03 a6 mtlr r0 rtems_id *id ) { Objects_Name_or_id_lookup_errors status; status = _Objects_Name_to_id_u32( ffc1ac20: 54 63 10 3a rlwinm r3,r3,2,0,29 OBJECTS_SEARCH_LOCAL_NODE, id ); return _Status_Object_name_errors_to_status[ status ]; } ffc1ac24: 39 29 d9 1c addi r9,r9,-9956 ffc1ac28: 7c 69 18 2e lwzx r3,r9,r3 ffc1ac2c: 38 21 00 08 addi r1,r1,8 ffc1ac30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1af68 : ffc1af68: 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 ) { ffc1af6c: 94 21 ff d0 stwu r1,-48(r1) ffc1af70: 7c 08 02 a6 mflr r0 ffc1af74: 93 61 00 1c stw r27,28(r1) ffc1af78: 7c bb 2b 78 mr r27,r5 ffc1af7c: 93 81 00 20 stw r28,32(r1) ffc1af80: 7c 9c 23 78 mr r28,r4 ffc1af84: 90 01 00 34 stw r0,52(r1) ffc1af88: 93 41 00 18 stw r26,24(r1) ffc1af8c: 93 a1 00 24 stw r29,36(r1) ffc1af90: 93 c1 00 28 stw r30,40(r1) ffc1af94: 93 e1 00 2c stw r31,44(r1) ffc1af98: 40 82 00 34 bne- ffc1afcc if (status) { initialized = false; } #endif return status; ffc1af9c: 38 00 00 13 li r0,19 } ffc1afa0: 7c 03 03 78 mr r3,r0 ffc1afa4: 80 01 00 34 lwz r0,52(r1) ffc1afa8: 83 41 00 18 lwz r26,24(r1) ffc1afac: 7c 08 03 a6 mtlr r0 ffc1afb0: 83 61 00 1c lwz r27,28(r1) ffc1afb4: 83 81 00 20 lwz r28,32(r1) ffc1afb8: 83 a1 00 24 lwz r29,36(r1) ffc1afbc: 83 c1 00 28 lwz r30,40(r1) ffc1afc0: 83 e1 00 2c lwz r31,44(r1) ffc1afc4: 38 21 00 30 addi r1,r1,48 ffc1afc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1afcc: 3d 20 00 00 lis r9,0 ffc1afd0: 88 09 27 24 lbz r0,10020(r9) ffc1afd4: 7f 83 00 40 cmplw cr7,r3,r0 ffc1afd8: 40 9d 00 9c ble- cr7,ffc1b074 * 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 ) ) { if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) ffc1afdc: 2f 83 ff ff cmpwi cr7,r3,-1 ffc1afe0: 3b 40 00 00 li r26,0 ffc1afe4: 40 be ff b8 bne- cr7,ffc1af9c ffc1afe8: 3d 20 00 00 lis r9,0 ffc1afec: 81 69 28 68 lwz r11,10344(r9) ffc1aff0: 38 0b 00 01 addi r0,r11,1 ffc1aff4: 90 09 28 68 stw r0,10344(r9) /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; ffc1aff8: 3f c0 00 00 lis r30,0 ffc1affc: 8b be 2a 88 lbz r29,10888(r30) <== ALWAYS TAKEN initialized = true; ffc1b000: 38 00 00 01 li r0,1 ffc1b004: 98 1e 2a 88 stb r0,10888(r30) _Thread_Enable_dispatch(); ffc1b008: 48 00 3c f5 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( tmpInitialized ) ffc1b00c: 2f 9d 00 00 cmpwi cr7,r29,0 /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; ffc1b010: 3b fe 2a 88 addi r31,r30,10888 initialized = true; _Thread_Enable_dispatch(); if ( tmpInitialized ) ffc1b014: 38 00 00 0e li r0,14 ffc1b018: 40 9e ff 88 bne+ cr7,ffc1afa0 * 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( ffc1b01c: 3c 60 54 49 lis r3,21577 ffc1b020: 60 63 4d 45 ori r3,r3,19781 ffc1b024: 7f 44 d3 78 mr r4,r26 ffc1b028: 7f 85 e3 78 mr r5,r28 ffc1b02c: 63 67 80 00 ori r7,r27,32768 ffc1b030: 38 c0 01 00 li r6,256 ffc1b034: 39 01 00 08 addi r8,r1,8 ffc1b038: 4b ff ea 8d bl ffc19ac4 <== 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) { ffc1b03c: 7c 60 1b 79 mr. r0,r3 ffc1b040: 41 82 00 3c beq- ffc1b07c initialized = false; } #endif return status; } ffc1b044: 7c 03 03 78 mr r3,r0 ffc1b048: 80 01 00 34 lwz r0,52(r1) /* system task specified for 0 priority */ attribute_set | RTEMS_SYSTEM_TASK, &id /* get the id back */ ); if (status) { initialized = false; ffc1b04c: 9b be 2a 88 stb r29,10888(r30) initialized = false; } #endif return status; } ffc1b050: 7c 08 03 a6 mtlr r0 ffc1b054: 83 41 00 18 lwz r26,24(r1) ffc1b058: 83 61 00 1c lwz r27,28(r1) ffc1b05c: 83 81 00 20 lwz r28,32(r1) ffc1b060: 83 a1 00 24 lwz r29,36(r1) ffc1b064: 83 c1 00 28 lwz r30,40(r1) ffc1b068: 83 e1 00 2c lwz r31,44(r1) ffc1b06c: 38 21 00 30 addi r1,r1,48 ffc1b070: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1b074: 7c 7a 1b 78 mr r26,r3 ffc1b078: 4b ff ff 70 b ffc1afe8 <== 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( ffc1b07c: 81 61 00 08 lwz r11,8(r1) ffc1b080: 3d 20 00 00 lis r9,0 ffc1b084: 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); ffc1b088: 38 ff 00 70 addi r7,r31,112 ffc1b08c: 55 69 13 ba rlwinm r9,r11,2,14,29 the_chain->permanent_null = NULL; ffc1b090: 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); ffc1b094: 3b bf 00 38 addi r29,r31,56 ffc1b098: 7d 4a 48 2e lwzx r10,r10,r9 ffc1b09c: 7f e9 fb 78 mr r9,r31 the_chain->permanent_null = NULL; ffc1b0a0: 90 1f 00 70 stw r0,112(r31) _Timer_server = ts; /* * Start the timer server */ status = rtems_task_start( ffc1b0a4: 3c 80 ff c2 lis r4,-62 ffc1b0a8: 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( ffc1b0ac: 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; ffc1b0b0: 3d 40 00 00 lis r10,0 _Timer_server = ts; /* * Start the timer server */ status = rtems_task_start( ffc1b0b4: 38 84 b2 60 addi r4,r4,-19872 * 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; ffc1b0b8: 83 8a 28 c0 lwz r28,10432(r10) the_chain->last = _Chain_Head(the_chain); ffc1b0bc: 39 09 00 68 addi r8,r9,104 ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc1b0c0: 3d 40 00 00 lis r10,0 ffc1b0c4: 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; ffc1b0c8: 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(); ffc1b0cc: 83 ca 28 88 lwz r30,10376(r10) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc1b0d0: 3d 40 ff c2 lis r10,-62 ffc1b0d4: 39 4a ea a8 addi r10,r10,-5464 * 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; ffc1b0d8: 93 9f 00 40 stw r28,64(r31) ffc1b0dc: 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; ffc1b0e0: 39 08 b4 b8 addi r8,r8,-19272 ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); ffc1b0e4: 93 df 00 78 stw r30,120(r31) _Timer_server = ts; /* * Start the timer server */ status = rtems_task_start( ffc1b0e8: 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; ffc1b0ec: 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; ffc1b0f0: 91 1f 00 08 stw r8,8(r31) ts->active = false; /* * The default timer server is now available. */ _Timer_server = ts; ffc1b0f4: 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; ffc1b0f8: 98 1f 00 80 stb r0,128(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc1b0fc: 90 1f 00 14 stw r0,20(r31) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc1b100: 90 1f 00 30 stw r0,48(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc1b104: 90 1f 00 4c stw r0,76(r31) the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data; ffc1b108: 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); ffc1b10c: 93 bf 00 34 stw r29,52(r31) the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); ffc1b110: 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); ffc1b114: 90 ff 00 6c stw r7,108(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc1b118: 91 5f 00 60 stw r10,96(r31) ffc1b11c: 91 5f 00 28 stw r10,40(r31) the_watchdog->id = id; ffc1b120: 91 7f 00 2c stw r11,44(r31) ffc1b124: 91 7f 00 64 stw r11,100(r31) /* * The default timer server is now available. */ _Timer_server = ts; ffc1b128: 91 28 28 ec stw r9,10476(r8) /* * Start the timer server */ status = rtems_task_start( ffc1b12c: 4b ff f3 19 bl ffc1a444 <== ALWAYS TAKEN ffc1b130: 7c 60 1b 78 mr r0,r3 if (status) { initialized = false; } #endif return status; ffc1b134: 4b ff fe 6c b ffc1afa0 <== ALWAYS TAKEN ffc1ac34 : */ rtems_status_code rtems_timer_reset( rtems_id id ) { ffc1ac34: 94 21 ff e0 stwu r1,-32(r1) ffc1ac38: 7c 08 02 a6 mflr r0 ffc1ac3c: 7c 64 1b 78 mr r4,r3 ffc1ac40: 3c 60 00 00 lis r3,0 ffc1ac44: 90 01 00 24 stw r0,36(r1) ffc1ac48: 38 63 79 44 addi r3,r3,31044 ffc1ac4c: 38 a1 00 08 addi r5,r1,8 ffc1ac50: 93 c1 00 18 stw r30,24(r1) ffc1ac54: 93 e1 00 1c stw r31,28(r1) ffc1ac58: 48 00 34 19 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN ffc1ac5c: 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 ) { ffc1ac60: 80 01 00 08 lwz r0,8(r1) ffc1ac64: 3b e0 00 04 li r31,4 ffc1ac68: 2f 80 00 00 cmpwi cr7,r0,0 ffc1ac6c: 40 9e 00 20 bne- cr7,ffc1ac8c case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { ffc1ac70: 80 03 00 38 lwz r0,56(r3) ffc1ac74: 2f 80 00 00 cmpwi cr7,r0,0 ffc1ac78: 41 9e 00 30 beq- cr7,ffc1aca8 _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { ffc1ac7c: 2f 80 00 01 cmpwi cr7,r0,1 ffc1ac80: 3b e0 00 0b li r31,11 ffc1ac84: 41 9e 00 4c beq- cr7,ffc1acd0 * 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(); ffc1ac88: 48 00 40 75 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1ac8c: 80 01 00 24 lwz r0,36(r1) ffc1ac90: 7f e3 fb 78 mr r3,r31 ffc1ac94: 83 c1 00 18 lwz r30,24(r1) ffc1ac98: 7c 08 03 a6 mtlr r0 ffc1ac9c: 83 e1 00 1c lwz r31,28(r1) ffc1aca0: 38 21 00 20 addi r1,r1,32 ffc1aca4: 4e 80 00 20 blr <== ALWAYS TAKEN the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { _Watchdog_Remove( &the_timer->Ticker ); ffc1aca8: 3b c3 00 10 addi r30,r3,16 ffc1acac: 7f c3 f3 78 mr r3,r30 ffc1acb0: 48 00 5d a9 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); ffc1acb4: 3c 60 00 00 lis r3,0 ffc1acb8: 38 63 71 68 addi r3,r3,29032 ffc1acbc: 7f c4 f3 78 mr r4,r30 ffc1acc0: 48 00 5b d1 bl ffc20890 <_Watchdog_Insert> <== ALWAYS TAKEN ffc1acc4: 3b e0 00 00 li r31,0 * 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(); ffc1acc8: 48 00 40 35 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1accc: 4b ff ff c0 b ffc1ac8c <== ALWAYS TAKEN case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { Timer_server_Control *timer_server = _Timer_server; ffc1acd0: 3d 20 00 00 lis r9,0 ffc1acd4: 83 e9 28 ec lwz r31,10476(r9) if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); ffc1acd8: 38 63 00 10 addi r3,r3,16 ffc1acdc: 48 00 5d 7d bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN (*timer_server->schedule_operation)( timer_server, the_timer ); ffc1ace0: 7f c4 f3 78 mr r4,r30 ffc1ace4: 80 1f 00 04 lwz r0,4(r31) ffc1ace8: 7f e3 fb 78 mr r3,r31 ffc1acec: 3b e0 00 00 li r31,0 ffc1acf0: 7c 09 03 a6 mtctr r0 ffc1acf4: 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(); ffc1acf8: 48 00 40 05 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1acfc: 4b ff ff 90 b ffc1ac8c <== ALWAYS TAKEN ffc1ad00 : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1ad00: 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; ffc1ad04: 3d 20 00 00 lis r9,0 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1ad08: 7c 08 02 a6 mflr r0 ffc1ad0c: 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; ffc1ad10: 83 e9 28 ec lwz r31,10476(r9) rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1ad14: 93 61 00 1c stw r27,28(r1) ffc1ad18: 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 ) ffc1ad1c: 2f 9f 00 00 cmpwi cr7,r31,0 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1ad20: 93 81 00 20 stw r28,32(r1) ffc1ad24: 7c 7c 1b 78 mr r28,r3 Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc1ad28: 38 60 00 0e li r3,14 rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1ad2c: 93 a1 00 24 stw r29,36(r1) ffc1ad30: 7c 9d 23 78 mr r29,r4 ffc1ad34: 93 c1 00 28 stw r30,40(r1) ffc1ad38: 7c be 2b 78 mr r30,r5 ffc1ad3c: 90 01 00 34 stw r0,52(r1) ffc1ad40: 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 ) ffc1ad44: 41 9e 00 1c beq- cr7,ffc1ad60 return RTEMS_INCORRECT_STATE; if ( !routine ) ffc1ad48: 2f 85 00 00 cmpwi cr7,r5,0 ffc1ad4c: 38 60 00 09 li r3,9 ffc1ad50: 41 9e 00 10 beq- cr7,ffc1ad60 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) ffc1ad54: 2f 84 00 00 cmpwi cr7,r4,0 ffc1ad58: 38 60 00 0a li r3,10 ffc1ad5c: 40 9e 00 2c bne- cr7,ffc1ad88 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1ad60: 80 01 00 34 lwz r0,52(r1) ffc1ad64: 83 41 00 18 lwz r26,24(r1) ffc1ad68: 7c 08 03 a6 mtlr r0 ffc1ad6c: 83 61 00 1c lwz r27,28(r1) ffc1ad70: 83 81 00 20 lwz r28,32(r1) ffc1ad74: 83 a1 00 24 lwz r29,36(r1) ffc1ad78: 83 c1 00 28 lwz r30,40(r1) ffc1ad7c: 83 e1 00 2c lwz r31,44(r1) ffc1ad80: 38 21 00 30 addi r1,r1,48 ffc1ad84: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1ad88: 3c 60 00 00 lis r3,0 ffc1ad8c: 38 63 79 44 addi r3,r3,31044 ffc1ad90: 7f 84 e3 78 mr r4,r28 ffc1ad94: 38 a1 00 08 addi r5,r1,8 ffc1ad98: 48 00 32 d9 bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc1ad9c: 80 01 00 08 lwz r0,8(r1) ffc1ada0: 7c 7a 1b 78 mr r26,r3 <== ALWAYS TAKEN ffc1ada4: 2f 80 00 00 cmpwi cr7,r0,0 ffc1ada8: 38 60 00 04 li r3,4 ffc1adac: 40 be ff b4 bne- cr7,ffc1ad60 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc1adb0: 38 7a 00 10 addi r3,r26,16 ffc1adb4: 48 00 5c a5 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc1adb8: 7d 20 00 a6 mfmsr r9 ffc1adbc: 7c 10 42 a6 mfsprg r0,0 ffc1adc0: 7d 20 00 78 andc r0,r9,r0 ffc1adc4: 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 ) { ffc1adc8: 80 1a 00 18 lwz r0,24(r26) ffc1adcc: 2f 80 00 00 cmpwi cr7,r0,0 ffc1add0: 40 9e 00 44 bne- cr7,ffc1ae14 /* * 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; ffc1add4: 39 60 00 01 li r11,1 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc1add8: 90 1a 00 18 stw r0,24(r26) ffc1addc: 91 7a 00 38 stw r11,56(r26) the_watchdog->routine = routine; ffc1ade0: 93 da 00 2c stw r30,44(r26) the_watchdog->id = id; ffc1ade4: 93 9a 00 30 stw r28,48(r26) the_watchdog->user_data = user_data; ffc1ade8: 93 7a 00 34 stw r27,52(r26) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; ffc1adec: 93 ba 00 1c stw r29,28(r26) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc1adf0: 7d 20 01 24 mtmsr r9 _ISR_Enable( level ); (*timer_server->schedule_operation)( timer_server, the_timer ); ffc1adf4: 80 1f 00 04 lwz r0,4(r31) ffc1adf8: 7f e3 fb 78 mr r3,r31 ffc1adfc: 7f 44 d3 78 mr r4,r26 ffc1ae00: 7c 09 03 a6 mtctr r0 ffc1ae04: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc1ae08: 48 00 3e f5 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1ae0c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc1ae10: 4b ff ff 50 b ffc1ad60 <== ALWAYS TAKEN ffc1ae14: 7d 20 01 24 mtmsr r9 * higher priority interrupt. If so, abandon this insert. */ if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); _Thread_Enable_dispatch(); ffc1ae18: 48 00 3e e5 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1ae1c: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc1ae20: 4b ff ff 40 b ffc1ad60 <== ALWAYS TAKEN ffc1ae24 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { ffc1ae24: 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; ffc1ae28: 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 ) { ffc1ae2c: 7c 08 02 a6 mflr r0 ffc1ae30: 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; ffc1ae34: 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 ) { ffc1ae38: 93 61 00 24 stw r27,36(r1) ffc1ae3c: 7c db 33 78 mr r27,r6 Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc1ae40: 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 ) { ffc1ae44: 93 81 00 28 stw r28,40(r1) ffc1ae48: 7c 9c 23 78 mr r28,r4 ffc1ae4c: 93 a1 00 2c stw r29,44(r1) ffc1ae50: 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 ) ffc1ae54: 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 ) { ffc1ae58: 93 c1 00 30 stw r30,48(r1) ffc1ae5c: 7c be 2b 78 mr r30,r5 ffc1ae60: 90 01 00 3c stw r0,60(r1) ffc1ae64: 93 01 00 18 stw r24,24(r1) ffc1ae68: 93 21 00 1c stw r25,28(r1) ffc1ae6c: 93 41 00 20 stw r26,32(r1) Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) ffc1ae70: 41 9e 00 38 beq- cr7,ffc1aea8 return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) ffc1ae74: 3d 20 00 00 lis r9,0 ffc1ae78: 88 09 28 70 lbz r0,10352(r9) ffc1ae7c: 38 60 00 0b li r3,11 ffc1ae80: 2f 80 00 00 cmpwi cr7,r0,0 ffc1ae84: 41 9e 00 24 beq- cr7,ffc1aea8 <== NEVER TAKEN return RTEMS_NOT_DEFINED; if ( !routine ) ffc1ae88: 2f 85 00 00 cmpwi cr7,r5,0 ffc1ae8c: 38 60 00 09 li r3,9 ffc1ae90: 41 9e 00 18 beq- cr7,ffc1aea8 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) ffc1ae94: 7c 83 23 78 mr r3,r4 ffc1ae98: 4b ff be bd bl ffc16d54 <_TOD_Validate> <== ALWAYS TAKEN ffc1ae9c: 2f 83 00 00 cmpwi cr7,r3,0 ffc1aea0: 40 9e 00 38 bne- cr7,ffc1aed8 the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); (*timer_server->schedule_operation)( timer_server, the_timer ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; ffc1aea4: 38 60 00 14 li r3,20 case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } ffc1aea8: 80 01 00 3c lwz r0,60(r1) ffc1aeac: 83 01 00 18 lwz r24,24(r1) ffc1aeb0: 7c 08 03 a6 mtlr r0 ffc1aeb4: 83 21 00 1c lwz r25,28(r1) ffc1aeb8: 83 41 00 20 lwz r26,32(r1) ffc1aebc: 83 61 00 24 lwz r27,36(r1) ffc1aec0: 83 81 00 28 lwz r28,40(r1) ffc1aec4: 83 a1 00 2c lwz r29,44(r1) ffc1aec8: 83 c1 00 30 lwz r30,48(r1) ffc1aecc: 83 e1 00 34 lwz r31,52(r1) ffc1aed0: 38 21 00 38 addi r1,r1,56 ffc1aed4: 4e 80 00 20 blr <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); ffc1aed8: 7f 83 e3 78 mr r3,r28 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc1aedc: 3f 40 00 00 lis r26,0 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); ffc1aee0: 4b ff bd d1 bl ffc16cb0 <_TOD_To_seconds> <== ALWAYS TAKEN if ( seconds <= _TOD_Seconds_since_epoch() ) ffc1aee4: 80 1a 28 88 lwz r0,10376(r26) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); ffc1aee8: 7c 7c 1b 78 mr r28,r3 if ( seconds <= _TOD_Seconds_since_epoch() ) ffc1aeec: 7f 83 00 40 cmplw cr7,r3,r0 ffc1aef0: 40 bd ff b4 ble- cr7,ffc1aea4 ffc1aef4: 3c 60 00 00 lis r3,0 ffc1aef8: 38 63 79 44 addi r3,r3,31044 ffc1aefc: 7f a4 eb 78 mr r4,r29 ffc1af00: 38 a1 00 08 addi r5,r1,8 ffc1af04: 48 00 31 6d bl ffc1e070 <_Objects_Get> <== ALWAYS TAKEN return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { ffc1af08: 83 01 00 08 lwz r24,8(r1) ffc1af0c: 7c 79 1b 78 mr r25,r3 ffc1af10: 2f 98 00 00 cmpwi cr7,r24,0 ffc1af14: 38 60 00 04 li r3,4 ffc1af18: 40 be ff 90 bne- cr7,ffc1aea8 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); ffc1af1c: 38 79 00 10 addi r3,r25,16 ffc1af20: 48 00 5b 39 bl ffc20a58 <_Watchdog_Remove> <== ALWAYS TAKEN void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc1af24: 93 b9 00 30 stw r29,48(r25) the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; ffc1af28: 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(); ffc1af2c: 80 1a 28 88 lwz r0,10376(r26) (*timer_server->schedule_operation)( timer_server, the_timer ); ffc1af30: 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; ffc1af34: 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 ); ffc1af38: 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(); ffc1af3c: 7f 80 e0 50 subf r28,r0,r28 (*timer_server->schedule_operation)( timer_server, the_timer ); ffc1af40: 80 1f 00 04 lwz r0,4(r31) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc1af44: 93 19 00 18 stw r24,24(r25) ffc1af48: 7c 09 03 a6 mtctr r0 the_watchdog->routine = routine; ffc1af4c: 93 d9 00 2c stw r30,44(r25) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc1af50: 93 79 00 34 stw r27,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(); ffc1af54: 93 99 00 1c stw r28,28(r25) (*timer_server->schedule_operation)( timer_server, the_timer ); ffc1af58: 4e 80 04 21 bctrl <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc1af5c: 48 00 3d a1 bl ffc1ecfc <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc1af60: 38 60 00 00 li r3,0 return RTEMS_SUCCESSFUL; ffc1af64: 4b ff ff 44 b ffc1aea8 <== ALWAYS TAKEN ffc0aa58 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { ffc0aa58: 94 21 ff d8 stwu r1,-40(r1) <== NOT EXECUTED ffc0aa5c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc0aa60: 7d 80 00 26 mfcr r12 <== NOT EXECUTED ffc0aa64: 90 01 00 2c stw r0,44(r1) <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) ffc0aa68: 54 60 1f fe rlwinm r0,r3,3,31,31 <== NOT EXECUTED ffc0aa6c: 2e 00 00 00 cmpwi cr4,r0,0 <== NOT EXECUTED static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { ffc0aa70: 93 41 00 10 stw r26,16(r1) <== NOT EXECUTED ffc0aa74: 7c 9a 23 78 mr r26,r4 <== NOT EXECUTED ffc0aa78: 93 a1 00 1c stw r29,28(r1) <== NOT EXECUTED ffc0aa7c: 7c bd 2b 78 mr r29,r5 <== NOT EXECUTED ffc0aa80: 93 e1 00 24 stw r31,36(r1) <== NOT EXECUTED ffc0aa84: 7c 7f 1b 78 mr r31,r3 <== NOT EXECUTED ffc0aa88: 93 61 00 14 stw r27,20(r1) <== NOT EXECUTED ffc0aa8c: 93 81 00 18 stw r28,24(r1) <== NOT EXECUTED ffc0aa90: 93 c1 00 20 stw r30,32(r1) <== NOT EXECUTED ffc0aa94: 91 81 00 0c stw r12,12(r1) <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) ffc0aa98: 41 92 00 38 beq- cr4,ffc0aad0 <== NOT EXECUTED { if (rtems_panic_in_progress++) ffc0aa9c: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0aaa0: 81 69 27 d0 lwz r11,10192(r9) <== NOT EXECUTED ffc0aaa4: 2f 8b 00 00 cmpwi cr7,r11,0 <== NOT EXECUTED ffc0aaa8: 38 0b 00 01 addi r0,r11,1 <== NOT EXECUTED ffc0aaac: 90 09 27 d0 stw r0,10192(r9) <== NOT EXECUTED ffc0aab0: 41 9e 00 18 beq- cr7,ffc0aac8 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0aab4: 3d 60 00 00 lis r11,0 <== NOT EXECUTED ffc0aab8: 81 4b 27 f8 lwz r10,10232(r11) <== NOT EXECUTED ffc0aabc: 38 0a 00 01 addi r0,r10,1 <== NOT EXECUTED ffc0aac0: 90 0b 27 f8 stw r0,10232(r11) <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); ffc0aac4: 80 09 27 d0 lwz r0,10192(r9) <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) ffc0aac8: 2f 80 00 02 cmpwi cr7,r0,2 <== NOT EXECUTED ffc0aacc: 41 9d 00 d8 bgt- cr7,ffc0aba4 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ ffc0aad0: 3f c0 00 00 lis r30,0 <== NOT EXECUTED ffc0aad4: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; ffc0aad8: 57 fb 01 00 rlwinm r27,r31,0,4,0 <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0aadc: 3b 80 00 00 li r28,0 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ ffc0aae0: 80 69 00 08 lwz r3,8(r9) <== NOT EXECUTED ffc0aae4: 48 01 19 7d bl ffc1c460 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ ffc0aae8: 77 e0 40 00 andis. r0,r31,16384 <== NOT EXECUTED ffc0aaec: 40 82 01 38 bne- ffc0ac24 <== 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); ffc0aaf0: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED ffc0aaf4: 7f a5 eb 78 mr r5,r29 <== NOT EXECUTED ffc0aaf8: 7f 44 d3 78 mr r4,r26 <== NOT EXECUTED ffc0aafc: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0ab00: 48 01 7d 21 bl ffc22820 <== NOT EXECUTED if (status) ffc0ab04: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); ffc0ab08: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED if (status) ffc0ab0c: 40 9e 00 e4 bne- cr7,ffc0abf0 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) ffc0ab10: 2f 9c 00 00 cmpwi cr7,r28,0 <== NOT EXECUTED ffc0ab14: 41 9e 00 3c beq- cr7,ffc0ab50 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) ffc0ab18: 40 9d 00 18 ble- cr7,ffc0ab30 <== NOT EXECUTED ffc0ab1c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0ab20: 48 01 2d 15 bl ffc1d834 <== NOT EXECUTED ffc0ab24: 88 03 00 00 lbz r0,0(r3) <== NOT EXECUTED ffc0ab28: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ab2c: 40 9e 01 04 bne- cr7,ffc0ac30 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); ffc0ab30: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED ffc0ab34: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ab38: 38 84 be ec addi r4,r4,-16660 <== NOT EXECUTED ffc0ab3c: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0ab40: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED ffc0ab44: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0ab48: 48 01 1d 5d bl ffc1c8a4 <== NOT EXECUTED ffc0ab4c: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); ffc0ab50: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED ffc0ab54: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ab58: 38 84 b8 60 addi r4,r4,-18336 <== NOT EXECUTED ffc0ab5c: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0ab60: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0ab64: 48 01 1d 41 bl ffc1c8a4 <== NOT EXECUTED (void) fflush(stderr); ffc0ab68: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); ffc0ab6c: 7c 7b 1b 78 mr r27,r3 <== NOT EXECUTED (void) fflush(stderr); ffc0ab70: 80 69 00 0c lwz r3,12(r9) <== NOT EXECUTED ffc0ab74: 48 01 18 ed bl ffc1c460 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0ab78: 77 e0 30 00 andis. r0,r31,12288 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); } chars_written += fprintf(stderr, "\n"); ffc0ab7c: 7c 7b ea 14 add r3,r27,r29 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) ffc0ab80: 41 82 00 28 beq- ffc0aba8 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) ffc0ab84: 41 92 00 54 beq- cr4,ffc0abd8 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); ffc0ab88: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ab8c: 38 84 bf 00 addi r4,r4,-16640 <== NOT EXECUTED ffc0ab90: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0ab94: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0ab98: 48 00 01 55 bl ffc0acec <== NOT EXECUTED _exit(local_errno); ffc0ab9c: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0aba0: 48 00 10 45 bl ffc0bbe4 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); abort(); ffc0aba4: 38 60 00 00 li r3,0 <== NOT EXECUTED } } return chars_written; } ffc0aba8: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED ffc0abac: 81 81 00 0c lwz r12,12(r1) <== NOT EXECUTED ffc0abb0: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0abb4: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc0abb8: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc0abbc: 7d 80 81 20 mtcrf 8,r12 <== NOT EXECUTED ffc0abc0: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc0abc4: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc0abc8: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc0abcc: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc0abd0: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc0abd4: 4e 80 00 20 blr <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); ffc0abd8: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0abdc: 38 84 bf 18 addi r4,r4,-16616 <== NOT EXECUTED ffc0abe0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0abe4: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0abe8: 48 00 01 05 bl ffc0acec <== NOT EXECUTED abort(); ffc0abec: 48 01 13 d5 bl ffc1bfc0 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); ffc0abf0: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc0abf4: 81 29 27 64 lwz r9,10084(r9) <== NOT EXECUTED ffc0abf8: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc0abfc: 83 69 00 0c lwz r27,12(r9) <== NOT EXECUTED ffc0ac00: 4b ff fe 2d bl ffc0aa2c <== NOT EXECUTED ffc0ac04: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ac08: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0ac0c: 38 84 be cc addi r4,r4,-16692 <== NOT EXECUTED ffc0ac10: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc0ac14: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0ac18: 48 01 1c 8d bl ffc1c8a4 <== NOT EXECUTED ffc0ac1c: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED ffc0ac20: 4b ff fe f0 b ffc0ab10 <== NOT EXECUTED (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ local_errno = errno; ffc0ac24: 48 01 13 b9 bl ffc1bfdc <__errno> <== NOT EXECUTED ffc0ac28: 83 83 00 00 lwz r28,0(r3) <== NOT EXECUTED ffc0ac2c: 4b ff fe c4 b ffc0aaf0 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); ffc0ac30: 81 3e 27 64 lwz r9,10084(r30) <== NOT EXECUTED ffc0ac34: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0ac38: 83 69 00 0c lwz r27,12(r9) <== NOT EXECUTED ffc0ac3c: 48 01 2b f9 bl ffc1d834 <== NOT EXECUTED ffc0ac40: 3c 80 ff c3 lis r4,-61 <== NOT EXECUTED ffc0ac44: 7c 65 1b 78 mr r5,r3 <== NOT EXECUTED ffc0ac48: 38 84 be dc addi r4,r4,-16676 <== NOT EXECUTED ffc0ac4c: 7f 63 db 78 mr r3,r27 <== NOT EXECUTED ffc0ac50: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc0ac54: 48 01 1c 51 bl ffc1c8a4 <== NOT EXECUTED ffc0ac58: 7f bd 1a 14 add r29,r29,r3 <== NOT EXECUTED if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) ffc0ac5c: 4b ff fe f4 b ffc0ab50 <== NOT EXECUTED ffc0992c : */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { ffc0992c: 94 21 ff f0 stwu r1,-16(r1) ffc09930: 7c 08 02 a6 mflr r0 ffc09934: 93 e1 00 0c stw r31,12(r1) void *ptr; /* * check the arguments */ if ( !pointer ) ffc09938: 7c 9f 23 79 mr. r31,r4 */ bool rtems_workspace_allocate( uintptr_t bytes, void **pointer ) { ffc0993c: 7c 64 1b 78 mr r4,r3 ffc09940: 90 01 00 14 stw r0,20(r1) void *ptr; /* * check the arguments */ if ( !pointer ) ffc09944: 41 82 00 0c beq- ffc09950 return false; if ( !bytes ) ffc09948: 2f 83 00 00 cmpwi cr7,r3,0 ffc0994c: 40 9e 00 1c bne- cr7,ffc09968 if (!ptr) return false; *pointer = ptr; return true; } ffc09950: 80 01 00 14 lwz r0,20(r1) ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) return false; *pointer = ptr; return true; ffc09954: 38 60 00 00 li r3,0 } ffc09958: 83 e1 00 0c lwz r31,12(r1) ffc0995c: 38 21 00 10 addi r1,r1,16 ffc09960: 7c 08 03 a6 mtlr r0 ffc09964: 4e 80 00 20 blr <== ALWAYS 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 ); ffc09968: 3c 60 00 00 lis r3,0 ffc0996c: 38 63 30 0c addi r3,r3,12300 ffc09970: 38 a0 00 00 li r5,0 ffc09974: 38 c0 00 00 li r6,0 ffc09978: 48 00 1c 09 bl ffc0b580 <_Protected_heap_Allocate_aligned_with_boundary> <== ALWAYS TAKEN /* * Allocate the memory */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) ffc0997c: 2c 03 00 00 cmpwi r3,0 ffc09980: 41 a2 ff d0 beq- ffc09950 return false; *pointer = ptr; return true; } ffc09984: 80 01 00 14 lwz r0,20(r1) */ ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes ); if (!ptr) return false; *pointer = ptr; ffc09988: 90 7f 00 00 stw r3,0(r31) ffc0998c: 38 60 00 01 li r3,1 return true; } ffc09990: 7c 08 03 a6 mtlr r0 ffc09994: 83 e1 00 0c lwz r31,12(r1) ffc09998: 38 21 00 10 addi r1,r1,16 ffc0999c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09900 : * _Workspace_Allocate */ bool rtems_workspace_free( void *pointer ) { ffc09900: 94 21 ff f8 stwu r1,-8(r1) ffc09904: 7c 08 02 a6 mflr r0 ffc09908: 7c 64 1b 78 mr r4,r3 return _Protected_heap_Free( &_Workspace_Area, pointer ); ffc0990c: 3c 60 00 00 lis r3,0 * _Workspace_Allocate */ bool rtems_workspace_free( void *pointer ) { ffc09910: 90 01 00 0c stw r0,12(r1) return _Protected_heap_Free( &_Workspace_Area, pointer ); ffc09914: 38 63 30 0c addi r3,r3,12300 ffc09918: 48 00 1c d5 bl ffc0b5ec <_Protected_heap_Free> <== ALWAYS TAKEN } ffc0991c: 80 01 00 0c lwz r0,12(r1) ffc09920: 38 21 00 08 addi r1,r1,8 ffc09924: 7c 08 03 a6 mtlr r0 ffc09928: 4e 80 00 20 blr <== ALWAYS TAKEN ffc099a0 : bool rtems_workspace_get_information( Heap_Information_block *the_info ) { if ( !the_info ) ffc099a0: 7c 64 1b 79 mr. r4,r3 <== ALWAYS TAKEN #include /* for memset */ bool rtems_workspace_get_information( Heap_Information_block *the_info ) { ffc099a4: 94 21 ff f8 stwu r1,-8(r1) ffc099a8: 7c 08 02 a6 mflr r0 if ( !the_info ) ffc099ac: 38 60 00 00 li r3,0 #include /* for memset */ bool rtems_workspace_get_information( Heap_Information_block *the_info ) { ffc099b0: 90 01 00 0c stw r0,12(r1) if ( !the_info ) ffc099b4: 41 82 00 10 beq- ffc099c4 return false; return _Protected_heap_Get_information( &_Workspace_Area, the_info ); ffc099b8: 3c 60 00 00 lis r3,0 ffc099bc: 38 63 30 0c addi r3,r3,12300 ffc099c0: 48 00 1c 89 bl ffc0b648 <_Protected_heap_Get_information> <== ALWAYS TAKEN } ffc099c4: 80 01 00 0c lwz r0,12(r1) ffc099c8: 38 21 00 08 addi r1,r1,8 ffc099cc: 7c 08 03 a6 mtlr r0 ffc099d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2f34c : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2f34c: 94 21 ff d8 stwu r1,-40(r1) ffc2f350: 7c 08 02 a6 mflr r0 ffc2f354: 93 21 00 0c stw r25,12(r1) unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2f358: 3f 20 00 00 lis r25,0 ffc2f35c: 3b 39 35 68 addi r25,r25,13672 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2f360: 93 41 00 10 stw r26,16(r1) sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) ffc2f364: 3f 40 cc cc lis r26,-13108 ffc2f368: 63 5a cc cd ori r26,r26,52429 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2f36c: 93 61 00 14 stw r27,20(r1) limit++; continue; } sign = 1; } if (!isdigit(c)) ffc2f370: 3f 60 00 00 lis r27,0 ffc2f374: 3b 7b 35 5c addi r27,r27,13660 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { ffc2f378: 93 81 00 18 stw r28,24(r1) ffc2f37c: 3f 80 7f ff lis r28,32767 ffc2f380: 63 9c ff ff ori r28,r28,65535 ffc2f384: 90 01 00 2c stw r0,44(r1) ffc2f388: 93 01 00 08 stw r24,8(r1) ffc2f38c: 7c 98 23 78 mr r24,r4 ffc2f390: 93 a1 00 1c stw r29,28(r1) ffc2f394: 3b a0 00 00 li r29,0 ffc2f398: 93 c1 00 20 stw r30,32(r1) ffc2f39c: 3b c0 00 00 li r30,0 ffc2f3a0: 93 e1 00 24 stw r31,36(r1) ffc2f3a4: 7c 7f 1b 78 mr r31,r3 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2f3a8: 81 3f 00 04 lwz r9,4(r31) ffc2f3ac: 38 09 ff ff addi r0,r9,-1 ffc2f3b0: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f3b4: 90 1f 00 04 stw r0,4(r31) ffc2f3b8: 41 9c 00 7c blt- cr7,ffc2f434 <== NEVER TAKEN ffc2f3bc: 81 3f 00 00 lwz r9,0(r31) ffc2f3c0: 88 69 00 00 lbz r3,0(r9) ffc2f3c4: 38 09 00 01 addi r0,r9,1 ffc2f3c8: 90 1f 00 00 stw r0,0(r31) if (c == ':') ffc2f3cc: 2f 83 00 3a cmpwi cr7,r3,58 ffc2f3d0: 41 9e 00 78 beq- cr7,ffc2f448 break; if (sign == 0) { ffc2f3d4: 2f 9d 00 00 cmpwi cr7,r29,0 ffc2f3d8: 40 9e 00 10 bne- cr7,ffc2f3e8 <== NEVER TAKEN if (c == '-') { ffc2f3dc: 2f 83 00 2d cmpwi cr7,r3,45 sign = -1; limit++; continue; ffc2f3e0: 3b a0 00 01 li r29,1 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { ffc2f3e4: 41 9e 00 e8 beq- cr7,ffc2f4cc <== NEVER TAKEN limit++; continue; } sign = 1; } if (!isdigit(c)) ffc2f3e8: 81 3b 00 00 lwz r9,0(r27) ffc2f3ec: 7d 29 1a 14 add r9,r9,r3 ffc2f3f0: 88 09 00 01 lbz r0,1(r9) ffc2f3f4: 70 09 00 04 andi. r9,r0,4 ffc2f3f8: 41 82 00 a0 beq- ffc2f498 <== NEVER TAKEN return 0; d = c - '0'; if ((i > (limit / 10)) ffc2f3fc: 7c 1c d0 16 mulhwu r0,r28,r26 ffc2f400: 54 00 e8 fe rlwinm r0,r0,29,3,31 ffc2f404: 7f 9e 00 40 cmplw cr7,r30,r0 ffc2f408: 41 9d 00 90 bgt- cr7,ffc2f498 <== NEVER TAKEN ffc2f40c: 7f 9e 00 00 cmpw cr7,r30,r0 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; ffc2f410: 38 63 ff d0 addi r3,r3,-48 ffc2f414: 1c 1e 00 0a mulli r0,r30,10 if ((i > (limit / 10)) ffc2f418: 41 9e 00 74 beq- cr7,ffc2f48c <== NEVER TAKEN unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2f41c: 81 3f 00 04 lwz r9,4(r31) return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; ffc2f420: 7f c3 02 14 add r30,r3,r0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); ffc2f424: 38 09 ff ff addi r0,r9,-1 ffc2f428: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f42c: 90 1f 00 04 stw r0,4(r31) ffc2f430: 40 9c ff 8c bge+ cr7,ffc2f3bc <== ALWAYS TAKEN ffc2f434: 80 79 00 00 lwz r3,0(r25) <== NOT EXECUTED ffc2f438: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc2f43c: 48 02 55 19 bl ffc54954 <__srget_r> <== NOT EXECUTED if (c == ':') ffc2f440: 2f 83 00 3a cmpwi cr7,r3,58 <== NOT EXECUTED ffc2f444: 40 9e ff 90 bne+ cr7,ffc2f3d4 <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) ffc2f448: 2f 9d 00 00 cmpwi cr7,r29,0 ffc2f44c: 41 9e 00 4c beq- cr7,ffc2f498 <== NEVER TAKEN return 0; *val = i * sign; return 1; } ffc2f450: 80 01 00 2c lwz r0,44(r1) return 0; i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; ffc2f454: 7f dd f1 d6 mullw r30,r29,r30 return 1; } ffc2f458: 83 21 00 0c lwz r25,12(r1) ffc2f45c: 7c 08 03 a6 mtlr r0 return 0; i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; ffc2f460: 38 60 00 01 li r3,1 ffc2f464: 93 d8 00 00 stw r30,0(r24) return 1; } ffc2f468: 83 01 00 08 lwz r24,8(r1) ffc2f46c: 83 41 00 10 lwz r26,16(r1) ffc2f470: 83 61 00 14 lwz r27,20(r1) ffc2f474: 83 81 00 18 lwz r28,24(r1) ffc2f478: 83 a1 00 1c lwz r29,28(r1) ffc2f47c: 83 c1 00 20 lwz r30,32(r1) <== ALWAYS TAKEN ffc2f480: 83 e1 00 24 lwz r31,36(r1) ffc2f484: 38 21 00 28 addi r1,r1,40 ffc2f488: 4e 80 00 20 blr <== ALWAYS TAKEN sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) ffc2f48c: 7d 20 e0 50 subf r9,r0,r28 <== NOT EXECUTED ffc2f490: 7f 83 48 40 cmplw cr7,r3,r9 <== NOT EXECUTED ffc2f494: 40 9d ff 88 ble+ cr7,ffc2f41c <== NOT EXECUTED } if (sign == 0) return 0; *val = i * sign; return 1; } ffc2f498: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; ffc2f49c: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2f4a0: 83 01 00 08 lwz r24,8(r1) <== NOT EXECUTED ffc2f4a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f4a8: 83 21 00 0c lwz r25,12(r1) <== NOT EXECUTED ffc2f4ac: 83 41 00 10 lwz r26,16(r1) <== NOT EXECUTED ffc2f4b0: 83 61 00 14 lwz r27,20(r1) <== NOT EXECUTED ffc2f4b4: 83 81 00 18 lwz r28,24(r1) <== NOT EXECUTED ffc2f4b8: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED ffc2f4bc: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED ffc2f4c0: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED ffc2f4c4: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED ffc2f4c8: 4e 80 00 20 blr <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; ffc2f4cc: 3b 9c 00 01 addi r28,r28,1 <== NOT EXECUTED ffc2f4d0: 3b a0 ff ff li r29,-1 <== NOT EXECUTED continue; ffc2f4d4: 4b ff fe d4 b ffc2f3a8 <== NOT EXECUTED ffc2f4d8 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { ffc2f4d8: 94 21 ff e0 stwu r1,-32(r1) ffc2f4dc: 7c 08 02 a6 mflr r0 ffc2f4e0: 90 01 00 24 stw r0,36(r1) int c; *name = *bufp; ffc2f4e4: 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) { ffc2f4e8: 93 81 00 10 stw r28,16(r1) int c; *name = *bufp; for (;;) { c = getc(fp); ffc2f4ec: 3f 80 00 00 lis r28,0 ffc2f4f0: 3b 9c 35 68 addi r28,r28,13672 /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { ffc2f4f4: 93 61 00 0c stw r27,12(r1) ffc2f4f8: 7c fb 3b 78 mr r27,r7 ffc2f4fc: 93 a1 00 14 stw r29,20(r1) ffc2f500: 7c dd 33 78 mr r29,r6 ffc2f504: 93 c1 00 18 stw r30,24(r1) ffc2f508: 7c be 2b 78 mr r30,r5 ffc2f50c: 93 e1 00 1c stw r31,28(r1) ffc2f510: 7c 7f 1b 78 mr r31,r3 int c; *name = *bufp; ffc2f514: 90 04 00 00 stw r0,0(r4) ffc2f518: 48 00 00 58 b ffc2f570 <== ALWAYS TAKEN for (;;) { c = getc(fp); ffc2f51c: 81 3f 00 00 lwz r9,0(r31) ffc2f520: 88 69 00 00 lbz r3,0(r9) ffc2f524: 38 09 00 01 addi r0,r9,1 ffc2f528: 90 1f 00 00 stw r0,0(r31) if (c == ':') { ffc2f52c: 2f 83 00 3a cmpwi cr7,r3,58 if (nlFlag) return 0; break; } if (c == '\n') { ffc2f530: 2f 03 00 0a cmpwi cr6,r3,10 if (!nlFlag) return 0; break; } if (c == EOF) ffc2f534: 2c 83 ff ff cmpwi cr1,r3,-1 int c; *name = *bufp; for (;;) { c = getc(fp); if (c == ':') { ffc2f538: 41 9e 00 68 beq- cr7,ffc2f5a0 if (nlFlag) return 0; break; } if (c == '\n') { ffc2f53c: 41 9a 00 b8 beq- cr6,ffc2f5f4 if (!nlFlag) return 0; break; } if (c == EOF) ffc2f540: 41 86 00 bc beq- cr1,ffc2f5fc <== NEVER TAKEN return 0; if (*nleft < 2) ffc2f544: 80 1d 00 00 lwz r0,0(r29) ffc2f548: 2b 80 00 01 cmplwi cr7,r0,1 ffc2f54c: 40 9d 00 b0 ble- cr7,ffc2f5fc <== NEVER TAKEN return 0; **bufp = c; ffc2f550: 81 3e 00 00 lwz r9,0(r30) ffc2f554: 98 69 00 00 stb r3,0(r9) ++(*bufp); ffc2f558: 81 3e 00 00 lwz r9,0(r30) --(*nleft); ffc2f55c: 81 7d 00 00 lwz r11,0(r29) if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc2f560: 39 29 00 01 addi r9,r9,1 --(*nleft); ffc2f564: 38 0b ff ff addi r0,r11,-1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); ffc2f568: 91 3e 00 00 stw r9,0(r30) --(*nleft); ffc2f56c: 90 1d 00 00 stw r0,0(r29) { int c; *name = *bufp; for (;;) { c = getc(fp); ffc2f570: 81 3f 00 04 lwz r9,4(r31) ffc2f574: 38 09 ff ff addi r0,r9,-1 ffc2f578: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f57c: 90 1f 00 04 stw r0,4(r31) ffc2f580: 40 9c ff 9c bge+ cr7,ffc2f51c ffc2f584: 80 7c 00 00 lwz r3,0(r28) ffc2f588: 7f e4 fb 78 mr r4,r31 ffc2f58c: 48 02 53 c9 bl ffc54954 <__srget_r> <== ALWAYS TAKEN if (c == ':') { ffc2f590: 2f 83 00 3a cmpwi cr7,r3,58 if (nlFlag) return 0; break; } if (c == '\n') { ffc2f594: 2f 03 00 0a cmpwi cr6,r3,10 if (!nlFlag) return 0; break; } if (c == EOF) ffc2f598: 2c 83 ff ff cmpwi cr1,r3,-1 int c; *name = *bufp; for (;;) { c = getc(fp); if (c == ':') { ffc2f59c: 40 9e ff a0 bne+ cr7,ffc2f53c <== ALWAYS TAKEN if (nlFlag) ffc2f5a0: 2f 9b 00 00 cmpwi cr7,r27,0 ffc2f5a4: 40 9e 00 58 bne- cr7,ffc2f5fc <== NEVER TAKEN return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ffc2f5a8: 81 3e 00 00 lwz r9,0(r30) ffc2f5ac: 38 00 00 00 li r0,0 ++(*bufp); --(*nleft); ffc2f5b0: 38 60 00 01 li r3,1 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ffc2f5b4: 98 09 00 00 stb r0,0(r9) ++(*bufp); --(*nleft); ffc2f5b8: 81 7d 00 00 lwz r11,0(r29) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2f5bc: 81 3e 00 00 lwz r9,0(r30) --(*nleft); ffc2f5c0: 38 0b ff ff addi r0,r11,-1 return 1; } ffc2f5c4: 83 61 00 0c lwz r27,12(r1) ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); ffc2f5c8: 90 1d 00 00 stw r0,0(r29) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2f5cc: 39 29 00 01 addi r9,r9,1 --(*nleft); return 1; } ffc2f5d0: 80 01 00 24 lwz r0,36(r1) **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); ffc2f5d4: 91 3e 00 00 stw r9,0(r30) --(*nleft); return 1; } ffc2f5d8: 7c 08 03 a6 mtlr r0 ffc2f5dc: 83 81 00 10 lwz r28,16(r1) ffc2f5e0: 83 a1 00 14 lwz r29,20(r1) ffc2f5e4: 83 c1 00 18 lwz r30,24(r1) ffc2f5e8: 83 e1 00 1c lwz r31,28(r1) ffc2f5ec: 38 21 00 20 addi r1,r1,32 ffc2f5f0: 4e 80 00 20 blr <== ALWAYS TAKEN if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) ffc2f5f4: 2f 9b 00 00 cmpwi cr7,r27,0 ffc2f5f8: 40 9e ff b0 bne+ cr7,ffc2f5a8 <== ALWAYS TAKEN } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; } ffc2f5fc: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; ffc2f600: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2f604: 83 61 00 0c lwz r27,12(r1) <== NOT EXECUTED ffc2f608: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2f60c: 83 81 00 10 lwz r28,16(r1) <== NOT EXECUTED ffc2f610: 83 a1 00 14 lwz r29,20(r1) <== NOT EXECUTED ffc2f614: 83 c1 00 18 lwz r30,24(r1) <== NOT EXECUTED ffc2f618: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc2f61c: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc2f620: 4e 80 00 20 blr <== NOT EXECUTED ffc2f624 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f624: 94 21 ff d0 stwu r1,-48(r1) ffc2f628: 7c 08 02 a6 mflr r0 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f62c: 38 e0 00 00 li r7,0 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f630: 93 c1 00 28 stw r30,40(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f634: 3b c1 00 18 addi r30,r1,24 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f638: 93 e1 00 2c stw r31,44(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f63c: 3b e1 00 1c addi r31,r1,28 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f640: 90 a1 00 18 stw r5,24(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f644: 7f c5 f3 78 mr r5,r30 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f648: 90 c1 00 1c stw r6,28(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f64c: 7f e6 fb 78 mr r6,r31 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { ffc2f650: 93 81 00 20 stw r28,32(r1) ffc2f654: 7c 9c 23 78 mr r28,r4 ffc2f658: 93 a1 00 24 stw r29,36(r1) ffc2f65c: 7c 7d 1b 78 mr r29,r3 ffc2f660: 90 01 00 34 stw r0,52(r1) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f664: 4b ff fe 75 bl ffc2f4d8 <== ALWAYS TAKEN ffc2f668: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f66c: 40 9e 00 28 bne- cr7,ffc2f694 <== ALWAYS TAKEN *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; ffc2f670: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2f674: 80 01 00 34 lwz r0,52(r1) ffc2f678: 83 81 00 20 lwz r28,32(r1) ffc2f67c: 7c 08 03 a6 mtlr r0 ffc2f680: 83 a1 00 24 lwz r29,36(r1) ffc2f684: 83 c1 00 28 lwz r30,40(r1) ffc2f688: 83 e1 00 2c lwz r31,44(r1) ffc2f68c: 38 21 00 30 addi r1,r1,48 ffc2f690: 4e 80 00 20 blr <== ALWAYS TAKEN int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) ffc2f694: 7f a3 eb 78 mr r3,r29 ffc2f698: 38 9c 00 04 addi r4,r28,4 ffc2f69c: 7f c5 f3 78 mr r5,r30 ffc2f6a0: 7f e6 fb 78 mr r6,r31 ffc2f6a4: 38 e0 00 00 li r7,0 ffc2f6a8: 4b ff fe 31 bl ffc2f4d8 <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f6ac: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f6b0: 41 9e ff c0 beq+ cr7,ffc2f670 <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) ffc2f6b4: 7f a3 eb 78 mr r3,r29 ffc2f6b8: 38 81 00 08 addi r4,r1,8 ffc2f6bc: 4b ff fc 91 bl ffc2f34c <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f6c0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f6c4: 41 9e ff ac beq+ cr7,ffc2f670 <== NEVER TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) ffc2f6c8: 7f a3 eb 78 mr r3,r29 ffc2f6cc: 7f c5 f3 78 mr r5,r30 ffc2f6d0: 7f e6 fb 78 mr r6,r31 ffc2f6d4: 38 81 00 0c addi r4,r1,12 ffc2f6d8: 38 e0 00 01 li r7,1 ffc2f6dc: 4b ff fd fd bl ffc2f4d8 <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) ffc2f6e0: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f6e4: 41 be ff 8c beq- cr7,ffc2f670 <== 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; ffc2f6e8: 80 01 00 08 lwz r0,8(r1) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f6ec: 39 20 00 01 li r9,1 ffc2f6f0: 81 41 00 0c lwz r10,12(r1) ffc2f6f4: 39 00 00 17 li r8,23 if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; ffc2f6f8: b0 1c 00 08 sth r0,8(r28) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f6fc: 7d 4b 53 78 mr r11,r10 ffc2f700: 88 0a 00 00 lbz r0,0(r10) ffc2f704: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f708: 41 9e 00 28 beq- cr7,ffc2f730 <== NEVER TAKEN if(*cp == ',') memcount++; ffc2f70c: 68 08 00 2c xori r8,r0,44 ffc2f710: 21 08 00 00 subfic r8,r8,0 ffc2f714: 7d 09 01 94 addze r8,r9 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f718: 8c 0b 00 01 lbzu r0,1(r11) ffc2f71c: 2f 80 00 00 cmpwi cr7,r0,0 if(*cp == ',') memcount++; ffc2f720: 7d 09 43 78 mr r9,r8 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f724: 40 9e ff e8 bne+ cr7,ffc2f70c ffc2f728: 55 09 10 3a rlwinm r9,r8,2,0,29 ffc2f72c: 39 09 00 13 addi r8,r9,19 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) ffc2f730: 80 01 00 1c lwz r0,28(r1) ffc2f734: 7f 80 40 40 cmplw cr7,r0,r8 ffc2f738: 41 bc ff 38 blt- cr7,ffc2f670 <== NEVER TAKEN return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); ffc2f73c: 81 21 00 18 lwz r9,24(r1) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f740: 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); ffc2f744: 39 29 00 0f addi r9,r9,15 ffc2f748: 55 29 00 36 rlwinm r9,r9,0,0,27 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; ffc2f74c: 91 49 00 00 stw r10,0(r9) for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f750: 39 40 00 04 li r10,4 /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); ffc2f754: 91 3c 00 0c stw r9,12(r28) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f758: 81 21 00 0c lwz r9,12(r1) ffc2f75c: 88 09 00 00 lbz r0,0(r9) ffc2f760: 39 29 00 01 addi r9,r9,1 ffc2f764: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f768: 41 9e 00 40 beq- cr7,ffc2f7a8 <== NEVER TAKEN if(*cp == ',') { *cp = '\0'; ffc2f76c: 39 00 00 00 li r8,0 ffc2f770: 48 00 00 14 b ffc2f784 <== ALWAYS TAKEN /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f774: 88 09 00 00 lbz r0,0(r9) ffc2f778: 39 29 00 01 addi r9,r9,1 ffc2f77c: 2f 80 00 00 cmpwi cr7,r0,0 ffc2f780: 41 9e 00 24 beq- cr7,ffc2f7a4 if(*cp == ',') { ffc2f784: 2f 80 00 2c cmpwi cr7,r0,44 ffc2f788: 40 9e ff ec bne+ cr7,ffc2f774 <== ALWAYS TAKEN *cp = '\0'; ffc2f78c: 99 09 ff ff stb r8,-1(r9) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; ffc2f790: 55 60 10 3a rlwinm r0,r11,2,0,29 <== NOT EXECUTED ffc2f794: 39 6b 00 01 addi r11,r11,1 <== NOT EXECUTED ffc2f798: 81 5c 00 0c lwz r10,12(r28) <== NOT EXECUTED ffc2f79c: 7d 2a 01 2e stwx r9,r10,r0 <== NOT EXECUTED ffc2f7a0: 4b ff ff d4 b ffc2f774 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { ffc2f7a4: 55 6a 10 3a rlwinm r10,r11,2,0,29 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; ffc2f7a8: 81 3c 00 0c lwz r9,12(r28) ffc2f7ac: 38 00 00 00 li r0,0 ffc2f7b0: 38 60 00 01 li r3,1 ffc2f7b4: 7c 09 51 2e stwx r0,r9,r10 return 1; ffc2f7b8: 4b ff fe bc b ffc2f674 <== ALWAYS TAKEN ffc2f82c : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f82c: 94 21 ff d0 stwu r1,-48(r1) ffc2f830: 7c 08 02 a6 mflr r0 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f834: 38 e0 00 00 li r7,0 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f838: 93 c1 00 28 stw r30,40(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f83c: 3b c1 00 18 addi r30,r1,24 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f840: 93 e1 00 2c stw r31,44(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f844: 3b e1 00 1c addi r31,r1,28 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f848: 90 a1 00 18 stw r5,24(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f84c: 7f c5 f3 78 mr r5,r30 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f850: 90 c1 00 1c stw r6,28(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f854: 7f e6 fb 78 mr r6,r31 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { ffc2f858: 93 81 00 20 stw r28,32(r1) ffc2f85c: 7c 9c 23 78 mr r28,r4 ffc2f860: 93 a1 00 24 stw r29,36(r1) ffc2f864: 7c 7d 1b 78 mr r29,r3 ffc2f868: 90 01 00 34 stw r0,52(r1) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f86c: 4b ff fc 6d bl ffc2f4d8 <== ALWAYS TAKEN ffc2f870: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f874: 40 9e 00 28 bne- cr7,ffc2f89c <== ALWAYS TAKEN || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; pwd->pw_gid = pwgid; return 1; ffc2f878: 38 60 00 00 li r3,0 <== NOT EXECUTED } ffc2f87c: 80 01 00 34 lwz r0,52(r1) ffc2f880: 83 81 00 20 lwz r28,32(r1) ffc2f884: 7c 08 03 a6 mtlr r0 ffc2f888: 83 a1 00 24 lwz r29,36(r1) ffc2f88c: 83 c1 00 28 lwz r30,40(r1) ffc2f890: 83 e1 00 2c lwz r31,44(r1) ffc2f894: 38 21 00 30 addi r1,r1,48 ffc2f898: 4e 80 00 20 blr <== ALWAYS TAKEN ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) ffc2f89c: 7f a3 eb 78 mr r3,r29 ffc2f8a0: 38 9c 00 04 addi r4,r28,4 ffc2f8a4: 7f c5 f3 78 mr r5,r30 ffc2f8a8: 7f e6 fb 78 mr r6,r31 ffc2f8ac: 38 e0 00 00 li r7,0 ffc2f8b0: 4b ff fc 29 bl ffc2f4d8 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f8b4: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f8b8: 41 9e ff c0 beq+ cr7,ffc2f878 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) ffc2f8bc: 7f a3 eb 78 mr r3,r29 ffc2f8c0: 38 81 00 08 addi r4,r1,8 ffc2f8c4: 4b ff fa 89 bl ffc2f34c <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f8c8: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f8cc: 41 9e ff ac beq+ cr7,ffc2f878 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) ffc2f8d0: 7f a3 eb 78 mr r3,r29 ffc2f8d4: 38 81 00 0c addi r4,r1,12 ffc2f8d8: 4b ff fa 75 bl ffc2f34c <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f8dc: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f8e0: 41 9e ff 98 beq+ cr7,ffc2f878 <== NEVER TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) ffc2f8e4: 7f a3 eb 78 mr r3,r29 ffc2f8e8: 38 9c 00 0c addi r4,r28,12 ffc2f8ec: 7f c5 f3 78 mr r5,r30 ffc2f8f0: 7f e6 fb 78 mr r6,r31 ffc2f8f4: 38 e0 00 00 li r7,0 ffc2f8f8: 4b ff fb e1 bl ffc2f4d8 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f8fc: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f900: 41 9e ff 78 beq+ cr7,ffc2f878 <== 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) ffc2f904: 7f a3 eb 78 mr r3,r29 ffc2f908: 38 9c 00 10 addi r4,r28,16 ffc2f90c: 7f c5 f3 78 mr r5,r30 ffc2f910: 7f e6 fb 78 mr r6,r31 ffc2f914: 38 e0 00 00 li r7,0 ffc2f918: 4b ff fb c1 bl ffc2f4d8 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f91c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f920: 41 9e ff 58 beq+ cr7,ffc2f878 <== 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) ffc2f924: 7f a3 eb 78 mr r3,r29 ffc2f928: 38 9c 00 14 addi r4,r28,20 ffc2f92c: 7f c5 f3 78 mr r5,r30 ffc2f930: 7f e6 fb 78 mr r6,r31 ffc2f934: 38 e0 00 00 li r7,0 ffc2f938: 4b ff fb a1 bl ffc2f4d8 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f93c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f940: 41 9e ff 38 beq+ cr7,ffc2f878 <== 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)) ffc2f944: 7f a3 eb 78 mr r3,r29 ffc2f948: 7f c5 f3 78 mr r5,r30 ffc2f94c: 7f e6 fb 78 mr r6,r31 ffc2f950: 38 9c 00 18 addi r4,r28,24 ffc2f954: 38 e0 00 01 li r7,1 ffc2f958: 4b ff fb 81 bl ffc2f4d8 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) ffc2f95c: 2f 83 00 00 cmpwi cr7,r3,0 ffc2f960: 41 be ff 18 beq- cr7,ffc2f878 <== 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; ffc2f964: 80 01 00 08 lwz r0,8(r1) pwd->pw_gid = pwgid; ffc2f968: 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; ffc2f96c: b0 1c 00 08 sth r0,8(r28) pwd->pw_gid = pwgid; ffc2f970: 80 01 00 0c lwz r0,12(r1) ffc2f974: b0 1c 00 0a sth r0,10(r28) return 1; ffc2f978: 4b ff ff 04 b ffc2f87c <== ALWAYS TAKEN ffc092a8 : int sched_get_priority_max( int policy ) { switch ( policy ) { ffc092a8: 2b 83 00 03 cmplwi cr7,r3,3 #include int sched_get_priority_max( int policy ) { ffc092ac: 94 21 ff f8 stwu r1,-8(r1) ffc092b0: 7c 08 02 a6 mflr r0 ffc092b4: 90 01 00 0c stw r0,12(r1) switch ( policy ) { ffc092b8: 40 9d 00 24 ble- cr7,ffc092dc case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc092bc: 48 00 b3 d1 bl ffc1468c <__errno> <== ALWAYS TAKEN ffc092c0: 38 00 00 16 li r0,22 ffc092c4: 90 03 00 00 stw r0,0(r3) ffc092c8: 38 60 ff ff li r3,-1 } return POSIX_SCHEDULER_MAXIMUM_PRIORITY; } ffc092cc: 80 01 00 0c lwz r0,12(r1) ffc092d0: 38 21 00 08 addi r1,r1,8 ffc092d4: 7c 08 03 a6 mtlr r0 ffc092d8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc092dc: 80 01 00 0c lwz r0,12(r1) default: rtems_set_errno_and_return_minus_one( EINVAL ); } return POSIX_SCHEDULER_MAXIMUM_PRIORITY; ffc092e0: 3d 20 00 00 lis r9,0 ffc092e4: 88 69 26 cc lbz r3,9932(r9) } ffc092e8: 38 21 00 08 addi r1,r1,8 ffc092ec: 7c 08 03 a6 mtlr r0 default: rtems_set_errno_and_return_minus_one( EINVAL ); } return POSIX_SCHEDULER_MAXIMUM_PRIORITY; ffc092f0: 38 63 ff ff addi r3,r3,-1 } ffc092f4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc092f8 : int sched_get_priority_min( int policy ) { switch ( policy ) { ffc092f8: 2b 83 00 03 cmplwi cr7,r3,3 #include int sched_get_priority_min( int policy ) { ffc092fc: 94 21 ff f8 stwu r1,-8(r1) ffc09300: 7c 08 02 a6 mflr r0 switch ( policy ) { ffc09304: 38 60 00 01 li r3,1 #include int sched_get_priority_min( int policy ) { ffc09308: 90 01 00 0c stw r0,12(r1) switch ( policy ) { ffc0930c: 40 9d 00 14 ble- cr7,ffc09320 case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); ffc09310: 48 00 b3 7d bl ffc1468c <__errno> <== ALWAYS TAKEN ffc09314: 38 00 00 16 li r0,22 ffc09318: 90 03 00 00 stw r0,0(r3) ffc0931c: 38 60 ff ff li r3,-1 } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } ffc09320: 80 01 00 0c lwz r0,12(r1) ffc09324: 38 21 00 08 addi r1,r1,8 ffc09328: 7c 08 03 a6 mtlr r0 ffc0932c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc086dc : int sched_getparam( pid_t pid __attribute__((unused)), struct sched_param *param __attribute__((unused)) ) { ffc086dc: 94 21 ff f8 stwu r1,-8(r1) ffc086e0: 7c 08 02 a6 mflr r0 ffc086e4: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc086e8: 48 00 bb 89 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc086ec: 38 00 00 58 li r0,88 ffc086f0: 90 03 00 00 stw r0,0(r3) } ffc086f4: 38 60 ff ff li r3,-1 ffc086f8: 80 01 00 0c lwz r0,12(r1) ffc086fc: 38 21 00 08 addi r1,r1,8 ffc08700: 7c 08 03 a6 mtlr r0 ffc08704: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08708 : #include int sched_getscheduler( pid_t pid __attribute__((unused)) ) { ffc08708: 94 21 ff f8 stwu r1,-8(r1) ffc0870c: 7c 08 02 a6 mflr r0 ffc08710: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08714: 48 00 bb 5d bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08718: 38 00 00 58 li r0,88 ffc0871c: 90 03 00 00 stw r0,0(r3) } ffc08720: 38 60 ff ff li r3,-1 ffc08724: 80 01 00 0c lwz r0,12(r1) ffc08728: 38 21 00 08 addi r1,r1,8 ffc0872c: 7c 08 03 a6 mtlr r0 ffc08730: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09330 : int sched_rr_get_interval( pid_t pid, struct timespec *interval ) { ffc09330: 94 21 ff e8 stwu r1,-24(r1) ffc09334: 7c 08 02 a6 mflr r0 ffc09338: 93 e1 00 14 stw r31,20(r1) /* * Only supported for the "calling process" (i.e. this node). */ if ( pid && pid != getpid() ) ffc0933c: 7c 7f 1b 79 mr. r31,r3 int sched_rr_get_interval( pid_t pid, struct timespec *interval ) { ffc09340: 90 01 00 1c stw r0,28(r1) /* * Only supported for the "calling process" (i.e. this node). */ if ( pid && pid != getpid() ) ffc09344: 40 82 00 30 bne- ffc09374 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ESRCH ); if ( !interval ) ffc09348: 2f 84 00 00 cmpwi cr7,r4,0 ffc0934c: 41 9e 00 50 beq- cr7,ffc0939c rtems_set_errno_and_return_minus_one( EINVAL ); _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval ); ffc09350: 3d 20 00 00 lis r9,0 ffc09354: 80 69 27 90 lwz r3,10128(r9) ffc09358: 48 00 46 c1 bl ffc0da18 <_Timespec_From_ticks> <== ALWAYS TAKEN ffc0935c: 38 60 00 00 li r3,0 return 0; } ffc09360: 80 01 00 1c lwz r0,28(r1) ffc09364: 83 e1 00 14 lwz r31,20(r1) ffc09368: 38 21 00 18 addi r1,r1,24 ffc0936c: 7c 08 03 a6 mtlr r0 ffc09370: 4e 80 00 20 blr <== ALWAYS TAKEN { /* * Only supported for the "calling process" (i.e. this node). */ if ( pid && pid != getpid() ) ffc09374: 90 81 00 08 stw r4,8(r1) ffc09378: 4b ff bc ad bl ffc05024 <== ALWAYS TAKEN ffc0937c: 7f 83 f8 00 cmpw cr7,r3,r31 ffc09380: 80 81 00 08 lwz r4,8(r1) ffc09384: 41 9e ff c4 beq+ cr7,ffc09348 rtems_set_errno_and_return_minus_one( ESRCH ); ffc09388: 48 00 b3 05 bl ffc1468c <__errno> <== ALWAYS TAKEN ffc0938c: 38 00 00 03 li r0,3 ffc09390: 90 03 00 00 stw r0,0(r3) ffc09394: 38 60 ff ff li r3,-1 ffc09398: 4b ff ff c8 b ffc09360 <== ALWAYS TAKEN if ( !interval ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0939c: 48 00 b2 f1 bl ffc1468c <__errno> <== ALWAYS TAKEN ffc093a0: 38 00 00 16 li r0,22 ffc093a4: 90 03 00 00 stw r0,0(r3) ffc093a8: 38 60 ff ff li r3,-1 ffc093ac: 4b ff ff b4 b ffc09360 <== ALWAYS TAKEN ffc08734 : int sched_setparam( pid_t pid __attribute__((unused)), const struct sched_param *param __attribute__((unused)) ) { ffc08734: 94 21 ff f8 stwu r1,-8(r1) ffc08738: 7c 08 02 a6 mflr r0 ffc0873c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08740: 48 00 bb 31 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08744: 38 00 00 58 li r0,88 ffc08748: 90 03 00 00 stw r0,0(r3) } ffc0874c: 38 60 ff ff li r3,-1 ffc08750: 80 01 00 0c lwz r0,12(r1) ffc08754: 38 21 00 08 addi r1,r1,8 ffc08758: 7c 08 03 a6 mtlr r0 ffc0875c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08760 : int sched_setscheduler( pid_t pid __attribute__((unused)), int policy __attribute__((unused)), const struct sched_param *param __attribute__((unused)) ) { ffc08760: 94 21 ff f8 stwu r1,-8(r1) ffc08764: 7c 08 02 a6 mflr r0 ffc08768: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc0876c: 48 00 bb 05 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc08770: 38 00 00 58 li r0,88 ffc08774: 90 03 00 00 stw r0,0(r3) } ffc08778: 38 60 ff ff li r3,-1 ffc0877c: 80 01 00 0c lwz r0,12(r1) ffc08780: 38 21 00 08 addi r1,r1,8 ffc08784: 7c 08 03 a6 mtlr r0 ffc08788: 4e 80 00 20 blr <== ALWAYS TAKEN ffc093b0 : ffc093b0: 3d 20 00 00 lis r9,0 #include #include #include int sched_yield( void ) { ffc093b4: 94 21 ff f8 stwu r1,-8(r1) ffc093b8: 7c 08 02 a6 mflr r0 ffc093bc: 81 69 27 98 lwz r11,10136(r9) ffc093c0: 90 01 00 0c stw r0,12(r1) ffc093c4: 38 0b 00 01 addi r0,r11,1 ffc093c8: 90 09 27 98 stw r0,10136(r9) _Thread_Disable_dispatch(); _Thread_Yield_processor(); ffc093cc: 48 00 45 4d bl ffc0d918 <_Thread_Yield_processor> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc093d0: 48 00 34 05 bl ffc0c7d4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return 0; } ffc093d4: 80 01 00 0c lwz r0,12(r1) ffc093d8: 38 60 00 00 li r3,0 ffc093dc: 7c 08 03 a6 mtlr r0 ffc093e0: 38 21 00 08 addi r1,r1,8 ffc093e4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b754 : */ int sem_close( sem_t *sem ) { ffc0b754: 94 21 ff e8 stwu r1,-24(r1) ffc0b758: 7c 08 02 a6 mflr r0 ffc0b75c: 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 *) ffc0b760: 38 a1 00 08 addi r5,r1,8 ffc0b764: 80 83 00 00 lwz r4,0(r3) ffc0b768: 3c 60 00 00 lis r3,0 ffc0b76c: 38 63 30 d8 addi r3,r3,12504 ffc0b770: 48 00 2c 0d bl ffc0e37c <_Objects_Get> <== ALWAYS TAKEN register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc0b774: 80 01 00 08 lwz r0,8(r1) ffc0b778: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b77c: 41 9e 00 24 beq- cr7,ffc0b7a0 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b780: 48 00 c7 81 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc0b784: 38 00 00 16 li r0,22 ffc0b788: 90 03 00 00 stw r0,0(r3) ffc0b78c: 38 60 ff ff li r3,-1 } ffc0b790: 80 01 00 1c lwz r0,28(r1) ffc0b794: 38 21 00 18 addi r1,r1,24 ffc0b798: 7c 08 03 a6 mtlr r0 ffc0b79c: 4e 80 00 20 blr <== ALWAYS TAKEN the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: the_semaphore->open_count -= 1; ffc0b7a0: 81 63 00 18 lwz r11,24(r3) ffc0b7a4: 38 0b ff ff addi r0,r11,-1 ffc0b7a8: 90 03 00 18 stw r0,24(r3) _POSIX_Semaphore_Delete( the_semaphore ); ffc0b7ac: 48 00 7c 6d bl ffc13418 <_POSIX_Semaphore_Delete> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0b7b0: 48 00 38 19 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0b7b4: 80 01 00 1c lwz r0,28(r1) switch ( location ) { case OBJECTS_LOCAL: the_semaphore->open_count -= 1; _POSIX_Semaphore_Delete( the_semaphore ); _Thread_Enable_dispatch(); ffc0b7b8: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0b7bc: 7c 08 03 a6 mtlr r0 ffc0b7c0: 38 21 00 18 addi r1,r1,24 ffc0b7c4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b7c8 : */ int sem_destroy( sem_t *sem ) { ffc0b7c8: 94 21 ff e8 stwu r1,-24(r1) ffc0b7cc: 7c 08 02 a6 mflr r0 ffc0b7d0: 90 01 00 1c stw r0,28(r1) ffc0b7d4: 38 a1 00 08 addi r5,r1,8 ffc0b7d8: 80 83 00 00 lwz r4,0(r3) ffc0b7dc: 3c 60 00 00 lis r3,0 ffc0b7e0: 38 63 30 d8 addi r3,r3,12504 ffc0b7e4: 48 00 2b 99 bl ffc0e37c <_Objects_Get> <== ALWAYS TAKEN register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc0b7e8: 80 01 00 08 lwz r0,8(r1) ffc0b7ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b7f0: 41 9e 00 24 beq- cr7,ffc0b814 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b7f4: 48 00 c7 0d bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc0b7f8: 38 00 00 16 li r0,22 ffc0b7fc: 90 03 00 00 stw r0,0(r3) ffc0b800: 38 60 ff ff li r3,-1 } ffc0b804: 80 01 00 1c lwz r0,28(r1) ffc0b808: 38 21 00 18 addi r1,r1,24 ffc0b80c: 7c 08 03 a6 mtlr r0 ffc0b810: 4e 80 00 20 blr <== ALWAYS TAKEN case OBJECTS_LOCAL: /* * Undefined operation on a named semaphore. */ if ( the_semaphore->named == true ) { ffc0b814: 88 03 00 14 lbz r0,20(r3) ffc0b818: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b81c: 40 9e 00 20 bne- cr7,ffc0b83c _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } _POSIX_Semaphore_Delete( the_semaphore ); ffc0b820: 48 00 7b f9 bl ffc13418 <_POSIX_Semaphore_Delete> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0b824: 48 00 37 a5 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0b828: 80 01 00 1c lwz r0,28(r1) _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EINVAL ); } _POSIX_Semaphore_Delete( the_semaphore ); _Thread_Enable_dispatch(); ffc0b82c: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0b830: 7c 08 03 a6 mtlr r0 ffc0b834: 38 21 00 18 addi r1,r1,24 ffc0b838: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Undefined operation on a named semaphore. */ if ( the_semaphore->named == true ) { _Thread_Enable_dispatch(); ffc0b83c: 48 00 37 8d bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b840: 48 00 c6 c1 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc0b844: 38 00 00 16 li r0,22 ffc0b848: 90 03 00 00 stw r0,0(r3) ffc0b84c: 38 60 ff ff li r3,-1 ffc0b850: 4b ff ff b4 b ffc0b804 <== ALWAYS TAKEN ffc0b854 : int sem_getvalue( sem_t *sem, int *sval ) { ffc0b854: 94 21 ff e0 stwu r1,-32(r1) ffc0b858: 7c 08 02 a6 mflr r0 ffc0b85c: 90 01 00 24 stw r0,36(r1) ffc0b860: 38 a1 00 08 addi r5,r1,8 ffc0b864: 80 03 00 00 lwz r0,0(r3) ffc0b868: 3c 60 00 00 lis r3,0 ffc0b86c: 93 e1 00 1c stw r31,28(r1) ffc0b870: 38 63 30 d8 addi r3,r3,12504 ffc0b874: 7c 9f 23 78 mr r31,r4 ffc0b878: 7c 04 03 78 mr r4,r0 ffc0b87c: 48 00 2b 01 bl ffc0e37c <_Objects_Get> <== ALWAYS TAKEN register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc0b880: 80 01 00 08 lwz r0,8(r1) ffc0b884: 2f 80 00 00 cmpwi cr7,r0,0 ffc0b888: 41 9e 00 28 beq- cr7,ffc0b8b0 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b88c: 48 00 c6 75 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc0b890: 38 00 00 16 li r0,22 ffc0b894: 90 03 00 00 stw r0,0(r3) ffc0b898: 38 60 ff ff li r3,-1 } ffc0b89c: 80 01 00 24 lwz r0,36(r1) ffc0b8a0: 83 e1 00 1c lwz r31,28(r1) ffc0b8a4: 38 21 00 20 addi r1,r1,32 ffc0b8a8: 7c 08 03 a6 mtlr r0 ffc0b8ac: 4e 80 00 20 blr <== ALWAYS TAKEN the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: *sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore ); ffc0b8b0: 80 03 00 64 lwz r0,100(r3) ffc0b8b4: 90 1f 00 00 stw r0,0(r31) _Thread_Enable_dispatch(); ffc0b8b8: 48 00 37 11 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0b8bc: 80 01 00 24 lwz r0,36(r1) the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: *sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore ); _Thread_Enable_dispatch(); ffc0b8c0: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0b8c4: 83 e1 00 1c lwz r31,28(r1) ffc0b8c8: 7c 08 03 a6 mtlr r0 ffc0b8cc: 38 21 00 20 addi r1,r1,32 ffc0b8d0: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b8d4 : int sem_init( sem_t *sem, int pshared, unsigned int value ) { ffc0b8d4: 94 21 ff e0 stwu r1,-32(r1) ffc0b8d8: 7c 08 02 a6 mflr r0 ffc0b8dc: 93 e1 00 1c stw r31,28(r1) int status; POSIX_Semaphore_Control *the_semaphore; if ( !sem ) ffc0b8e0: 7c 7f 1b 79 mr. r31,r3 int sem_init( sem_t *sem, int pshared, unsigned int value ) { ffc0b8e4: 90 01 00 24 stw r0,36(r1) int status; POSIX_Semaphore_Control *the_semaphore; if ( !sem ) ffc0b8e8: 41 82 00 38 beq- ffc0b920 rtems_set_errno_and_return_minus_one( EINVAL ); status = _POSIX_Semaphore_Create_support( ffc0b8ec: 38 60 00 00 li r3,0 ffc0b8f0: 38 c1 00 08 addi r6,r1,8 ffc0b8f4: 48 00 79 cd bl ffc132c0 <_POSIX_Semaphore_Create_support> <== ALWAYS TAKEN pshared, value, &the_semaphore ); if ( status != -1 ) ffc0b8f8: 2f 83 ff ff cmpwi cr7,r3,-1 ffc0b8fc: 41 9e 00 10 beq- cr7,ffc0b90c *sem = the_semaphore->Object.id; ffc0b900: 81 21 00 08 lwz r9,8(r1) ffc0b904: 80 09 00 08 lwz r0,8(r9) ffc0b908: 90 1f 00 00 stw r0,0(r31) return status; } ffc0b90c: 80 01 00 24 lwz r0,36(r1) ffc0b910: 83 e1 00 1c lwz r31,28(r1) ffc0b914: 38 21 00 20 addi r1,r1,32 ffc0b918: 7c 08 03 a6 mtlr r0 ffc0b91c: 4e 80 00 20 blr <== ALWAYS TAKEN { int status; POSIX_Semaphore_Control *the_semaphore; if ( !sem ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b920: 48 00 c5 e1 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc0b924: 38 00 00 16 li r0,22 ffc0b928: 90 03 00 00 stw r0,0(r3) ffc0b92c: 38 60 ff ff li r3,-1 ffc0b930: 4b ff ff dc b ffc0b90c <== ALWAYS TAKEN ffc0b934 : rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc0b934: 3d 20 00 00 lis r9,0 int oflag, ... /* mode_t mode, */ /* unsigned int value */ ) { ffc0b938: 94 21 ff b8 stwu r1,-72(r1) ffc0b93c: 7c 08 02 a6 mflr r0 ffc0b940: 81 69 27 90 lwz r11,10128(r9) ffc0b944: 7d 80 00 26 mfcr r12 ffc0b948: 93 c1 00 40 stw r30,64(r1) ffc0b94c: 7c 9e 23 78 mr r30,r4 ffc0b950: 39 6b 00 01 addi r11,r11,1 ffc0b954: 93 e1 00 44 stw r31,68(r1) ffc0b958: 7c 7f 1b 78 mr r31,r3 ffc0b95c: 90 01 00 4c stw r0,76(r1) ffc0b960: 93 81 00 38 stw r28,56(r1) ffc0b964: 93 a1 00 3c stw r29,60(r1) ffc0b968: 91 81 00 34 stw r12,52(r1) ffc0b96c: 90 a1 00 28 stw r5,40(r1) ffc0b970: 91 69 27 90 stw r11,10128(r9) ffc0b974: 90 c1 00 2c stw r6,44(r1) POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { ffc0b978: 54 80 bf fe rlwinm r0,r4,23,31,31 ffc0b97c: 2e 00 00 00 cmpwi cr4,r0,0 ffc0b980: 40 92 00 c8 bne- cr4,ffc0ba48 ffc0b984: 3b a0 00 00 li r29,0 mode = (mode_t) va_arg( arg, unsigned int ); value = va_arg( arg, unsigned int ); va_end(arg); } status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id ); ffc0b988: 7f e3 fb 78 mr r3,r31 ffc0b98c: 38 81 00 08 addi r4,r1,8 ffc0b990: 48 00 7b 19 bl ffc134a8 <_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 ) { ffc0b994: 7c 7c 1b 79 mr. r28,r3 ffc0b998: 41 82 00 48 beq- ffc0b9e0 /* * 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) ) ) { ffc0b99c: 2f 9c 00 02 cmpwi cr7,r28,2 ffc0b9a0: 40 9e 00 08 bne- cr7,ffc0b9a8 <== NEVER TAKEN ffc0b9a4: 40 92 00 c4 bne- cr4,ffc0ba68 _Thread_Enable_dispatch(); ffc0b9a8: 48 00 36 21 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one_cast( status, sem_t * ); ffc0b9ac: 48 00 c5 55 bl ffc17f00 <__errno> <== ALWAYS TAKEN id = &the_semaphore->Semaphore_id; #else id = (sem_t *)&the_semaphore->Object.id; #endif return id; } ffc0b9b0: 80 01 00 4c lwz r0,76(r1) ffc0b9b4: 81 81 00 34 lwz r12,52(r1) ffc0b9b8: 7c 08 03 a6 mtlr r0 * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one_cast( status, sem_t * ); ffc0b9bc: 93 83 00 00 stw r28,0(r3) id = &the_semaphore->Semaphore_id; #else id = (sem_t *)&the_semaphore->Object.id; #endif return id; } ffc0b9c0: 7d 80 81 20 mtcrf 8,r12 * and we are willing to create then it is an error. */ if ( !( status == ENOENT && (oflag & O_CREAT) ) ) { _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one_cast( status, sem_t * ); ffc0b9c4: 38 60 ff ff li r3,-1 id = &the_semaphore->Semaphore_id; #else id = (sem_t *)&the_semaphore->Object.id; #endif return id; } ffc0b9c8: 83 81 00 38 lwz r28,56(r1) ffc0b9cc: 83 a1 00 3c lwz r29,60(r1) ffc0b9d0: 83 c1 00 40 lwz r30,64(r1) ffc0b9d4: 83 e1 00 44 lwz r31,68(r1) ffc0b9d8: 38 21 00 48 addi r1,r1,72 ffc0b9dc: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { ffc0b9e0: 73 de 0a 00 andi. r30,r30,2560 ffc0b9e4: 2f 9e 0a 00 cmpwi cr7,r30,2560 ffc0b9e8: 41 9e 00 ac beq- cr7,ffc0ba94 ffc0b9ec: 80 81 00 08 lwz r4,8(r1) ffc0b9f0: 3c 60 00 00 lis r3,0 ffc0b9f4: 38 a1 00 10 addi r5,r1,16 ffc0b9f8: 38 63 30 d8 addi r3,r3,12504 ffc0b9fc: 48 00 29 81 bl ffc0e37c <_Objects_Get> <== ALWAYS TAKEN _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * ); } the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location ); the_semaphore->open_count += 1; ffc0ba00: 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 ); ffc0ba04: 90 61 00 0c stw r3,12(r1) the_semaphore->open_count += 1; ffc0ba08: 38 09 00 01 addi r0,r9,1 ffc0ba0c: 90 03 00 18 stw r0,24(r3) _Thread_Enable_dispatch(); ffc0ba10: 48 00 35 b9 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0ba14: 48 00 35 b5 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN 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; ffc0ba18: 80 61 00 0c lwz r3,12(r1) ffc0ba1c: 38 63 00 08 addi r3,r3,8 #endif return id; } ffc0ba20: 80 01 00 4c lwz r0,76(r1) ffc0ba24: 81 81 00 34 lwz r12,52(r1) ffc0ba28: 7c 08 03 a6 mtlr r0 ffc0ba2c: 83 81 00 38 lwz r28,56(r1) ffc0ba30: 83 a1 00 3c lwz r29,60(r1) ffc0ba34: 7d 80 81 20 mtcrf 8,r12 ffc0ba38: 83 c1 00 40 lwz r30,64(r1) ffc0ba3c: 83 e1 00 44 lwz r31,68(r1) ffc0ba40: 38 21 00 48 addi r1,r1,72 ffc0ba44: 4e 80 00 20 blr <== ALWAYS TAKEN Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { va_start(arg, oflag); ffc0ba48: 38 01 00 50 addi r0,r1,80 mode = (mode_t) va_arg( arg, unsigned int ); value = va_arg( arg, unsigned int ); ffc0ba4c: 83 a1 00 2c lwz r29,44(r1) Objects_Locations location; _Thread_Disable_dispatch(); if ( oflag & O_CREAT ) { va_start(arg, oflag); ffc0ba50: 90 01 00 18 stw r0,24(r1) ffc0ba54: 38 01 00 20 addi r0,r1,32 ffc0ba58: 90 01 00 1c stw r0,28(r1) mode = (mode_t) va_arg( arg, unsigned int ); value = va_arg( arg, unsigned int ); ffc0ba5c: 38 00 00 04 li r0,4 ffc0ba60: 98 01 00 14 stb r0,20(r1) ffc0ba64: 4b ff ff 24 b ffc0b988 <== 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( ffc0ba68: 7f a5 eb 78 mr r5,r29 ffc0ba6c: 7f e3 fb 78 mr r3,r31 ffc0ba70: 38 80 00 00 li r4,0 ffc0ba74: 38 c1 00 0c addi r6,r1,12 ffc0ba78: 48 00 78 49 bl ffc132c0 <_POSIX_Semaphore_Create_support> <== ALWAYS TAKEN ffc0ba7c: 7c 7f 1b 78 mr r31,r3 /* * errno was set by Create_support, so don't set it again. */ _Thread_Enable_dispatch(); ffc0ba80: 48 00 35 49 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN if ( status == -1 ) ffc0ba84: 2f 9f ff ff cmpwi cr7,r31,-1 ffc0ba88: 38 60 ff ff li r3,-1 ffc0ba8c: 40 9e ff 8c bne+ cr7,ffc0ba18 ffc0ba90: 4b ff ff 90 b ffc0ba20 <== ALWAYS TAKEN /* * Check for existence with creation. */ if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) { _Thread_Enable_dispatch(); ffc0ba94: 48 00 35 35 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * ); ffc0ba98: 48 00 c4 69 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc0ba9c: 38 00 00 11 li r0,17 ffc0baa0: 90 03 00 00 stw r0,0(r3) ffc0baa4: 38 60 ff ff li r3,-1 ffc0baa8: 4b ff ff 78 b ffc0ba20 <== ALWAYS TAKEN ffc0baac : */ int sem_post( sem_t *sem ) { ffc0baac: 94 21 ff e8 stwu r1,-24(r1) ffc0bab0: 7c 08 02 a6 mflr r0 ffc0bab4: 90 01 00 1c stw r0,28(r1) ffc0bab8: 38 a1 00 08 addi r5,r1,8 ffc0babc: 80 83 00 00 lwz r4,0(r3) ffc0bac0: 3c 60 00 00 lis r3,0 ffc0bac4: 38 63 30 d8 addi r3,r3,12504 ffc0bac8: 48 00 28 b5 bl ffc0e37c <_Objects_Get> <== ALWAYS TAKEN register POSIX_Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { ffc0bacc: 80 01 00 08 lwz r0,8(r1) ffc0bad0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0bad4: 41 9e 00 24 beq- cr7,ffc0baf8 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc0bad8: 48 00 c4 29 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc0badc: 38 00 00 16 li r0,22 ffc0bae0: 90 03 00 00 stw r0,0(r3) ffc0bae4: 38 60 ff ff li r3,-1 } ffc0bae8: 80 01 00 1c lwz r0,28(r1) ffc0baec: 38 21 00 18 addi r1,r1,24 ffc0baf0: 7c 08 03 a6 mtlr r0 ffc0baf4: 4e 80 00 20 blr <== ALWAYS TAKEN the_semaphore = _POSIX_Semaphore_Get( sem, &location ); switch ( location ) { case OBJECTS_LOCAL: _CORE_semaphore_Surrender( ffc0baf8: 80 83 00 08 lwz r4,8(r3) ffc0bafc: 38 a0 00 00 li r5,0 ffc0bb00: 38 63 00 1c addi r3,r3,28 ffc0bb04: 48 00 1c bd bl ffc0d7c0 <_CORE_semaphore_Surrender> <== ALWAYS TAKEN NULL /* XXX need to define a routine to handle this case */ #else NULL #endif ); _Thread_Enable_dispatch(); ffc0bb08: 48 00 34 c1 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0bb0c: 80 01 00 1c lwz r0,28(r1) NULL /* XXX need to define a routine to handle this case */ #else NULL #endif ); _Thread_Enable_dispatch(); ffc0bb10: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0bb14: 7c 08 03 a6 mtlr r0 ffc0bb18: 38 21 00 18 addi r1,r1,24 ffc0bb1c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bb20 : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { ffc0bb20: 94 21 ff e0 stwu r1,-32(r1) ffc0bb24: 7c 08 02 a6 mflr r0 ffc0bb28: 93 e1 00 1c stw r31,28(r1) ffc0bb2c: 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 ); ffc0bb30: 7c 83 23 78 mr r3,r4 ffc0bb34: 38 81 00 08 addi r4,r1,8 int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { ffc0bb38: 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 ); ffc0bb3c: 48 00 6b f9 bl ffc12734 <_POSIX_Absolute_timeout_to_ticks> <== ALWAYS TAKEN if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) ffc0bb40: 2f 83 00 03 cmpwi cr7,r3,3 ffc0bb44: 41 9e 00 28 beq- cr7,ffc0bb6c <== ALWAYS TAKEN do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); ffc0bb48: 80 a1 00 08 lwz r5,8(r1) <== NOT EXECUTED ffc0bb4c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0bb50: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc0bb54: 48 00 7a 19 bl ffc1356c <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED break; } } return lock_status; } ffc0bb58: 80 01 00 24 lwz r0,36(r1) <== NOT EXECUTED ffc0bb5c: 83 e1 00 1c lwz r31,28(r1) <== NOT EXECUTED ffc0bb60: 38 21 00 20 addi r1,r1,32 <== NOT EXECUTED ffc0bb64: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc0bb68: 4e 80 00 20 blr <== NOT EXECUTED */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); ffc0bb6c: 80 a1 00 08 lwz r5,8(r1) ffc0bb70: 7f e3 fb 78 mr r3,r31 ffc0bb74: 38 80 00 01 li r4,1 ffc0bb78: 48 00 79 f5 bl ffc1356c <_POSIX_Semaphore_Wait_support> <== ALWAYS TAKEN break; } } return lock_status; } ffc0bb7c: 80 01 00 24 lwz r0,36(r1) ffc0bb80: 83 e1 00 1c lwz r31,28(r1) ffc0bb84: 38 21 00 20 addi r1,r1,32 ffc0bb88: 7c 08 03 a6 mtlr r0 ffc0bb8c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bb90 : */ int sem_trywait( sem_t *sem ) { ffc0bb90: 94 21 ff f8 stwu r1,-8(r1) ffc0bb94: 7c 08 02 a6 mflr r0 return _POSIX_Semaphore_Wait_support(sem, false, THREAD_QUEUE_WAIT_FOREVER); ffc0bb98: 38 80 00 00 li r4,0 ffc0bb9c: 38 a0 00 00 li r5,0 */ int sem_trywait( sem_t *sem ) { ffc0bba0: 90 01 00 0c stw r0,12(r1) return _POSIX_Semaphore_Wait_support(sem, false, THREAD_QUEUE_WAIT_FOREVER); ffc0bba4: 48 00 79 c9 bl ffc1356c <_POSIX_Semaphore_Wait_support> <== ALWAYS TAKEN } ffc0bba8: 80 01 00 0c lwz r0,12(r1) ffc0bbac: 38 21 00 08 addi r1,r1,8 ffc0bbb0: 7c 08 03 a6 mtlr r0 ffc0bbb4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bbb8 : ffc0bbb8: 3d 20 00 00 lis r9,0 */ int sem_unlink( const char *name ) { ffc0bbbc: 94 21 ff e0 stwu r1,-32(r1) ffc0bbc0: 7c 08 02 a6 mflr r0 ffc0bbc4: 81 69 27 90 lwz r11,10128(r9) ffc0bbc8: 90 01 00 24 stw r0,36(r1) ffc0bbcc: 38 0b 00 01 addi r0,r11,1 ffc0bbd0: 93 c1 00 18 stw r30,24(r1) ffc0bbd4: 93 e1 00 1c stw r31,28(r1) ffc0bbd8: 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 ); ffc0bbdc: 38 81 00 08 addi r4,r1,8 ffc0bbe0: 48 00 78 c9 bl ffc134a8 <_POSIX_Semaphore_Name_to_id> <== ALWAYS TAKEN if ( status != 0 ) { ffc0bbe4: 7c 7e 1b 79 mr. r30,r3 ffc0bbe8: 40 82 00 50 bne- ffc0bc38 _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( status ); } the_semaphore = (POSIX_Semaphore_Control *) _Objects_Get_local_object( ffc0bbec: 3c 60 00 00 lis r3,0 ffc0bbf0: a0 01 00 0a lhz r0,10(r1) ffc0bbf4: 38 63 30 d8 addi r3,r3,12504 ffc0bbf8: 81 23 00 1c lwz r9,28(r3) ffc0bbfc: 54 00 10 3a rlwinm r0,r0,2,0,29 ffc0bc00: 7f e9 00 2e lwzx r31,r9,r0 &_POSIX_Semaphore_Information, _Objects_Get_index( the_semaphore_id ) ); the_semaphore->linked = false; ffc0bc04: 9b df 00 15 stb r30,21(r31) RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Namespace_remove ( POSIX_Semaphore_Control *the_semaphore ) { _Objects_Namespace_remove( ffc0bc08: 7f e4 fb 78 mr r4,r31 ffc0bc0c: 48 00 29 01 bl ffc0e50c <_Objects_Namespace_remove> <== ALWAYS TAKEN _POSIX_Semaphore_Namespace_remove( the_semaphore ); _POSIX_Semaphore_Delete( the_semaphore ); ffc0bc10: 7f e3 fb 78 mr r3,r31 ffc0bc14: 48 00 78 05 bl ffc13418 <_POSIX_Semaphore_Delete> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc0bc18: 48 00 33 b1 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc0bc1c: 38 60 00 00 li r3,0 return 0; } ffc0bc20: 80 01 00 24 lwz r0,36(r1) ffc0bc24: 83 c1 00 18 lwz r30,24(r1) ffc0bc28: 7c 08 03 a6 mtlr r0 ffc0bc2c: 83 e1 00 1c lwz r31,28(r1) ffc0bc30: 38 21 00 20 addi r1,r1,32 ffc0bc34: 4e 80 00 20 blr <== ALWAYS TAKEN _Thread_Disable_dispatch(); status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id ); if ( status != 0 ) { _Thread_Enable_dispatch(); ffc0bc38: 48 00 33 91 bl ffc0efc8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( status ); ffc0bc3c: 48 00 c2 c5 bl ffc17f00 <__errno> <== ALWAYS TAKEN ffc0bc40: 93 c3 00 00 stw r30,0(r3) ffc0bc44: 38 60 ff ff li r3,-1 ffc0bc48: 4b ff ff d8 b ffc0bc20 <== ALWAYS TAKEN ffc0bc4c : */ int sem_wait( sem_t *sem ) { ffc0bc4c: 94 21 ff f8 stwu r1,-8(r1) ffc0bc50: 7c 08 02 a6 mflr r0 return _POSIX_Semaphore_Wait_support( sem, true, THREAD_QUEUE_WAIT_FOREVER ); ffc0bc54: 38 80 00 01 li r4,1 ffc0bc58: 38 a0 00 00 li r5,0 */ int sem_wait( sem_t *sem ) { ffc0bc5c: 90 01 00 0c stw r0,12(r1) return _POSIX_Semaphore_Wait_support( sem, true, THREAD_QUEUE_WAIT_FOREVER ); ffc0bc60: 48 00 79 0d bl ffc1356c <_POSIX_Semaphore_Wait_support> <== ALWAYS TAKEN } ffc0bc64: 80 01 00 0c lwz r0,12(r1) ffc0bc68: 38 21 00 08 addi r1,r1,8 ffc0bc6c: 7c 08 03 a6 mtlr r0 ffc0bc70: 4e 80 00 20 blr <== ALWAYS TAKEN ffc2f2c8 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; ffc2f2c8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc2f2cc: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc2f2d0: b0 69 00 34 sth r3,52(r9) <== NOT EXECUTED return 0; } ffc2f2d4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc2f2d8: 4e 80 00 20 blr <== NOT EXECUTED ffc2fb18 : return NULL; return &grent; } void setgrent(void) { ffc2fb18: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2fb1c: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2fb20: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED init_etc_passwd_group(); if (group_fp != NULL) ffc2fb24: 3f e0 00 00 lis r31,0 <== NOT EXECUTED return NULL; return &grent; } void setgrent(void) { ffc2fb28: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc2fb2c: 4b ff fe c1 bl ffc2f9ec <== NOT EXECUTED if (group_fp != NULL) ffc2fb30: 80 7f 5f 74 lwz r3,24436(r31) <== NOT EXECUTED ffc2fb34: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fb38: 41 9e 00 08 beq- cr7,ffc2fb40 <== NOT EXECUTED fclose(group_fp); ffc2fb3c: 48 01 ea d5 bl ffc4e610 <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); ffc2fb40: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED ffc2fb44: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc2fb48: 38 63 a3 84 addi r3,r3,-23676 <== NOT EXECUTED ffc2fb4c: 38 84 33 70 addi r4,r4,13168 <== NOT EXECUTED ffc2fb50: 48 01 f5 ed bl ffc4f13c <== NOT EXECUTED } ffc2fb54: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED { init_etc_passwd_group(); if (group_fp != NULL) fclose(group_fp); group_fp = fopen("/etc/group", "r"); ffc2fb58: 90 7f 5f 74 stw r3,24436(r31) <== NOT EXECUTED } ffc2fb5c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fb60: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2fb64: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2fb68: 4e 80 00 20 blr <== NOT EXECUTED ffc08344 : int which, const struct itimerval *value, struct itimerval *ovalue ) { if ( !value ) ffc08344: 2f 84 00 00 cmpwi cr7,r4,0 int setitimer( int which, const struct itimerval *value, struct itimerval *ovalue ) { ffc08348: 94 21 ff f8 stwu r1,-8(r1) ffc0834c: 7c 08 02 a6 mflr r0 ffc08350: 90 01 00 0c stw r0,12(r1) if ( !value ) ffc08354: 41 9e 00 54 beq- cr7,ffc083a8 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !ovalue ) ffc08358: 2f 85 00 00 cmpwi cr7,r5,0 ffc0835c: 41 9e 00 4c beq- cr7,ffc083a8 rtems_set_errno_and_return_minus_one( EFAULT ); switch ( which ) { ffc08360: 2b 83 00 02 cmplwi cr7,r3,2 ffc08364: 40 9d 00 24 ble- cr7,ffc08388 case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc08368: 48 00 ba d5 bl ffc13e3c <__errno> <== ALWAYS TAKEN ffc0836c: 38 00 00 16 li r0,22 ffc08370: 90 03 00 00 stw r0,0(r3) } ffc08374: 80 01 00 0c lwz r0,12(r1) ffc08378: 38 60 ff ff li r3,-1 ffc0837c: 38 21 00 08 addi r1,r1,8 ffc08380: 7c 08 03 a6 mtlr r0 ffc08384: 4e 80 00 20 blr <== ALWAYS TAKEN switch ( which ) { case ITIMER_REAL: case ITIMER_VIRTUAL: case ITIMER_PROF: rtems_set_errno_and_return_minus_one( ENOSYS ); ffc08388: 48 00 ba b5 bl ffc13e3c <__errno> <== ALWAYS TAKEN ffc0838c: 38 00 00 58 li r0,88 ffc08390: 90 03 00 00 stw r0,0(r3) default: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc08394: 38 60 ff ff li r3,-1 ffc08398: 80 01 00 0c lwz r0,12(r1) ffc0839c: 38 21 00 08 addi r1,r1,8 ffc083a0: 7c 08 03 a6 mtlr r0 ffc083a4: 4e 80 00 20 blr <== ALWAYS TAKEN { if ( !value ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !ovalue ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc083a8: 48 00 ba 95 bl ffc13e3c <__errno> <== ALWAYS TAKEN ffc083ac: 38 00 00 0e li r0,14 ffc083b0: 90 03 00 00 stw r0,0(r3) ffc083b4: 4b ff ff c0 b ffc08374 <== ALWAYS TAKEN ffc2fdac : return NULL; return &pwent; } void setpwent(void) { ffc2fdac: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc2fdb0: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc2fdb4: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED init_etc_passwd_group(); if (passwd_fp != NULL) ffc2fdb8: 3f e0 00 00 lis r31,0 <== NOT EXECUTED ffc2fdbc: 3b ff 5f 74 addi r31,r31,24436 <== NOT EXECUTED return NULL; return &pwent; } void setpwent(void) { ffc2fdc0: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED init_etc_passwd_group(); ffc2fdc4: 4b ff fc 29 bl ffc2f9ec <== NOT EXECUTED if (passwd_fp != NULL) ffc2fdc8: 80 7f 00 04 lwz r3,4(r31) <== NOT EXECUTED ffc2fdcc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc2fdd0: 41 9e 00 08 beq- cr7,ffc2fdd8 <== NOT EXECUTED fclose(passwd_fp); ffc2fdd4: 48 01 e8 3d bl ffc4e610 <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); ffc2fdd8: 3c 60 ff c7 lis r3,-57 <== NOT EXECUTED ffc2fddc: 3c 80 ff c7 lis r4,-57 <== NOT EXECUTED ffc2fde0: 38 63 a2 d4 addi r3,r3,-23852 <== NOT EXECUTED ffc2fde4: 38 84 33 70 addi r4,r4,13168 <== NOT EXECUTED ffc2fde8: 48 01 f3 55 bl ffc4f13c <== NOT EXECUTED } ffc2fdec: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED { init_etc_passwd_group(); if (passwd_fp != NULL) fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); ffc2fdf0: 90 7f 00 04 stw r3,4(r31) <== NOT EXECUTED } ffc2fdf4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc2fdf8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc2fdfc: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc2fe00: 4e 80 00 20 blr <== NOT EXECUTED ffc08f94 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; ffc08f94: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc08f98: 81 29 35 2c lwz r9,13612(r9) <== NOT EXECUTED ffc08f9c: b0 69 00 32 sth r3,50(r9) <== NOT EXECUTED return 0; } ffc08fa0: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc08fa4: 4e 80 00 20 blr <== NOT EXECUTED ffc09134 : struct sigaction *oact ) { ISR_Level level; if ( oact ) ffc09134: 2c 05 00 00 cmpwi r5,0 int sigaction( int sig, const struct sigaction *act, struct sigaction *oact ) { ffc09138: 94 21 ff e8 stwu r1,-24(r1) ffc0913c: 7c 08 02 a6 mflr r0 ffc09140: 93 c1 00 10 stw r30,16(r1) ffc09144: 7c 9e 23 78 mr r30,r4 ffc09148: 93 e1 00 14 stw r31,20(r1) ffc0914c: 7c 7f 1b 78 mr r31,r3 ffc09150: 90 01 00 1c stw r0,28(r1) ffc09154: 93 a1 00 0c stw r29,12(r1) ISR_Level level; if ( oact ) ffc09158: 41 82 00 2c beq- ffc09184 *oact = _POSIX_signals_Vectors[ sig ]; ffc0915c: 1c 03 00 0c mulli r0,r3,12 ffc09160: 3d 60 00 00 lis r11,0 ffc09164: 39 6b 31 b0 addi r11,r11,12720 ffc09168: 7d 2b 02 14 add r9,r11,r0 ffc0916c: 7d 6b 00 2e lwzx r11,r11,r0 ffc09170: 81 49 00 08 lwz r10,8(r9) ffc09174: 80 09 00 04 lwz r0,4(r9) ffc09178: 91 45 00 08 stw r10,8(r5) ffc0917c: 91 65 00 00 stw r11,0(r5) ffc09180: 90 05 00 04 stw r0,4(r5) if ( !sig ) ffc09184: 2f 9f 00 00 cmpwi cr7,r31,0 ffc09188: 41 9e 00 cc beq- cr7,ffc09254 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) ffc0918c: 38 1f ff ff addi r0,r31,-1 <== ALWAYS TAKEN ffc09190: 2b 80 00 1f cmplwi cr7,r0,31 ffc09194: 41 9d 00 c0 bgt- cr7,ffc09254 * * NOTE: Solaris documentation claims to "silently enforce" this which * contradicts the POSIX specification. */ if ( sig == SIGKILL ) ffc09198: 2f 9f 00 09 cmpwi cr7,r31,9 ffc0919c: 41 9e 00 b8 beq- cr7,ffc09254 /* * Evaluate the new action structure and set the global signal vector * appropriately. */ if ( act ) { ffc091a0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc091a4: 38 60 00 00 li r3,0 ffc091a8: 41 9e 00 58 beq- cr7,ffc09200 <== NEVER TAKEN static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc091ac: 7f a0 00 a6 mfmsr r29 ffc091b0: 7c 10 42 a6 mfsprg r0,0 ffc091b4: 7f a0 00 78 andc r0,r29,r0 ffc091b8: 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 ) { ffc091bc: 80 1e 00 08 lwz r0,8(r30) ffc091c0: 2f 80 00 00 cmpwi cr7,r0,0 ffc091c4: 41 9e 00 58 beq- cr7,ffc0921c _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ]; } else { _POSIX_signals_Clear_process_signals( sig ); ffc091c8: 7f e3 fb 78 mr r3,r31 ffc091cc: 48 00 71 55 bl ffc10320 <_POSIX_signals_Clear_process_signals> <== ALWAYS TAKEN _POSIX_signals_Vectors[ sig ] = *act; ffc091d0: 1f ff 00 0c mulli r31,r31,12 ffc091d4: 81 5e 00 08 lwz r10,8(r30) ffc091d8: 3d 60 00 00 lis r11,0 ffc091dc: 81 1e 00 00 lwz r8,0(r30) ffc091e0: 80 1e 00 04 lwz r0,4(r30) ffc091e4: 39 6b 31 b0 addi r11,r11,12720 ffc091e8: 7d 2b fa 14 add r9,r11,r31 ffc091ec: 7d 0b f9 2e stwx r8,r11,r31 ffc091f0: 91 49 00 08 stw r10,8(r9) ffc091f4: 90 09 00 04 stw r0,4(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc091f8: 7f a0 01 24 mtmsr r29 ffc091fc: 38 60 00 00 li r3,0 * + If we are now ignoring a signal that was previously pending, * we clear the pending signal indicator. */ return 0; } ffc09200: 80 01 00 1c lwz r0,28(r1) ffc09204: 83 a1 00 0c lwz r29,12(r1) ffc09208: 7c 08 03 a6 mtlr r0 ffc0920c: 83 c1 00 10 lwz r30,16(r1) ffc09210: 83 e1 00 14 lwz r31,20(r1) ffc09214: 38 21 00 18 addi r1,r1,24 ffc09218: 4e 80 00 20 blr <== ALWAYS TAKEN * we can just copy the provided sigaction structure into the vectors. */ _ISR_Disable( level ); if ( act->sa_handler == SIG_DFL ) { _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ]; ffc0921c: 1f ff 00 0c mulli r31,r31,12 ffc09220: 3d 40 ff c2 lis r10,-62 ffc09224: 39 4a 22 7c addi r10,r10,8828 ffc09228: 7d 2a fa 14 add r9,r10,r31 ffc0922c: 7d 0a f8 2e lwzx r8,r10,r31 ffc09230: 3d 60 00 00 lis r11,0 ffc09234: 81 49 00 08 lwz r10,8(r9) ffc09238: 39 6b 31 b0 addi r11,r11,12720 ffc0923c: 80 09 00 04 lwz r0,4(r9) ffc09240: 7d 2b fa 14 add r9,r11,r31 ffc09244: 7d 0b f9 2e stwx r8,r11,r31 ffc09248: 91 49 00 08 stw r10,8(r9) ffc0924c: 90 09 00 04 stw r0,4(r9) ffc09250: 4b ff ff a8 b ffc091f8 <== ALWAYS TAKEN * NOTE: Solaris documentation claims to "silently enforce" this which * contradicts the POSIX specification. */ if ( sig == SIGKILL ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc09254: 48 00 b6 ed bl ffc14940 <__errno> <== ALWAYS TAKEN ffc09258: 38 00 00 16 li r0,22 ffc0925c: 90 03 00 00 stw r0,0(r3) ffc09260: 38 60 ff ff li r3,-1 ffc09264: 4b ff ff 9c b ffc09200 <== ALWAYS TAKEN ffc09268 : int sigaddset( sigset_t *set, int signo ) { if ( !set ) ffc09268: 2c 03 00 00 cmpwi r3,0 int sigaddset( sigset_t *set, int signo ) { ffc0926c: 94 21 ff f8 stwu r1,-8(r1) ffc09270: 7c 08 02 a6 mflr r0 ffc09274: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc09278: 41 82 00 40 beq- ffc092b8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) ffc0927c: 2f 84 00 00 cmpwi cr7,r4,0 ffc09280: 41 9e 00 38 beq- cr7,ffc092b8 ffc09284: 38 84 ff ff addi r4,r4,-1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(signo) ) ffc09288: 2b 84 00 1f cmplwi cr7,r4,31 ffc0928c: 41 9d 00 2c bgt- cr7,ffc092b8 rtems_set_errno_and_return_minus_one( EINVAL ); *set |= signo_to_mask(signo); ffc09290: 80 03 00 00 lwz r0,0(r3) ffc09294: 39 20 00 01 li r9,1 ffc09298: 7d 24 20 30 slw r4,r9,r4 ffc0929c: 7c 04 23 78 or r4,r0,r4 ffc092a0: 90 83 00 00 stw r4,0(r3) ffc092a4: 38 60 00 00 li r3,0 return 0; } ffc092a8: 80 01 00 0c lwz r0,12(r1) ffc092ac: 38 21 00 08 addi r1,r1,8 ffc092b0: 7c 08 03 a6 mtlr r0 ffc092b4: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !signo ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(signo) ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc092b8: 48 00 b6 89 bl ffc14940 <__errno> <== ALWAYS TAKEN ffc092bc: 38 00 00 16 li r0,22 ffc092c0: 90 03 00 00 stw r0,0(r3) ffc092c4: 38 60 ff ff li r3,-1 ffc092c8: 4b ff ff e0 b ffc092a8 <== ALWAYS TAKEN ffc0b940 : int sigdelset( sigset_t *set, int signo ) { if ( !set ) ffc0b940: 7c 69 1b 79 mr. r9,r3 int sigdelset( sigset_t *set, int signo ) { ffc0b944: 94 21 ff f8 stwu r1,-8(r1) ffc0b948: 7c 08 02 a6 mflr r0 ffc0b94c: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc0b950: 41 82 00 44 beq- ffc0b994 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) ffc0b954: 2f 84 00 00 cmpwi cr7,r4,0 ffc0b958: 38 60 00 00 li r3,0 ffc0b95c: 41 9e 00 28 beq- cr7,ffc0b984 ffc0b960: 38 84 ff ff addi r4,r4,-1 return 0; if ( !is_valid_signo(signo) ) ffc0b964: 2b 84 00 1f cmplwi cr7,r4,31 ffc0b968: 41 9d 00 2c bgt- cr7,ffc0b994 rtems_set_errno_and_return_minus_one( EINVAL ); *set &= ~signo_to_mask(signo); ffc0b96c: 80 09 00 00 lwz r0,0(r9) ffc0b970: 39 60 ff fe li r11,-2 ffc0b974: 5d 64 20 3e rotlw r4,r11,r4 ffc0b978: 7c 04 20 38 and r4,r0,r4 ffc0b97c: 90 89 00 00 stw r4,0(r9) ffc0b980: 38 60 00 00 li r3,0 return 0; } ffc0b984: 80 01 00 0c lwz r0,12(r1) ffc0b988: 38 21 00 08 addi r1,r1,8 ffc0b98c: 7c 08 03 a6 mtlr r0 ffc0b990: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !signo ) return 0; if ( !is_valid_signo(signo) ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0b994: 48 00 b7 b5 bl ffc17148 <__errno> <== ALWAYS TAKEN ffc0b998: 38 00 00 16 li r0,22 ffc0b99c: 90 03 00 00 stw r0,0(r3) ffc0b9a0: 38 60 ff ff li r3,-1 ffc0b9a4: 4b ff ff e0 b ffc0b984 <== ALWAYS TAKEN ffc0eed0 : int sigemptyset( sigset_t *set ) { if ( !set ) ffc0eed0: 2c 03 00 00 cmpwi r3,0 #include int sigemptyset( sigset_t *set ) { ffc0eed4: 94 21 ff f8 stwu r1,-8(r1) ffc0eed8: 7c 08 02 a6 mflr r0 ffc0eedc: 90 01 00 0c stw r0,12(r1) <== ALWAYS TAKEN if ( !set ) ffc0eee0: 41 82 00 20 beq- ffc0ef00 rtems_set_errno_and_return_minus_one( EINVAL ); *set = 0; ffc0eee4: 38 00 00 00 li r0,0 ffc0eee8: 90 03 00 00 stw r0,0(r3) ffc0eeec: 38 60 00 00 li r3,0 return 0; } ffc0eef0: 80 01 00 0c lwz r0,12(r1) <== ALWAYS TAKEN ffc0eef4: 38 21 00 08 addi r1,r1,8 ffc0eef8: 7c 08 03 a6 mtlr r0 ffc0eefc: 4e 80 00 20 blr <== ALWAYS TAKEN int sigemptyset( sigset_t *set ) { if ( !set ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0ef00: 48 00 44 79 bl ffc13378 <__errno> <== ALWAYS TAKEN ffc0ef04: 38 00 00 16 li r0,22 ffc0ef08: 90 03 00 00 stw r0,0(r3) ffc0ef0c: 38 60 ff ff li r3,-1 ffc0ef10: 4b ff ff e0 b ffc0eef0 <== ALWAYS TAKEN ffc0b9ec : int sigfillset( sigset_t *set ) { if ( !set ) ffc0b9ec: 2c 03 00 00 cmpwi r3,0 #include int sigfillset( sigset_t *set ) { ffc0b9f0: 94 21 ff f8 stwu r1,-8(r1) ffc0b9f4: 7c 08 02 a6 mflr r0 ffc0b9f8: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc0b9fc: 41 82 00 20 beq- ffc0ba1c rtems_set_errno_and_return_minus_one( EINVAL ); *set = SIGNAL_ALL_MASK; ffc0ba00: 38 00 ff ff li r0,-1 ffc0ba04: 90 03 00 00 stw r0,0(r3) ffc0ba08: 38 60 00 00 li r3,0 return 0; } ffc0ba0c: 80 01 00 0c lwz r0,12(r1) ffc0ba10: 38 21 00 08 addi r1,r1,8 ffc0ba14: 7c 08 03 a6 mtlr r0 ffc0ba18: 4e 80 00 20 blr <== ALWAYS TAKEN int sigfillset( sigset_t *set ) { if ( !set ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0ba1c: 48 00 b7 2d bl ffc17148 <__errno> <== ALWAYS TAKEN ffc0ba20: 38 00 00 16 li r0,22 ffc0ba24: 90 03 00 00 stw r0,0(r3) ffc0ba28: 38 60 ff ff li r3,-1 ffc0ba2c: 4b ff ff e0 b ffc0ba0c <== ALWAYS TAKEN ffc0ba30 : int sigismember( const sigset_t *set, int signo ) { if ( !set ) ffc0ba30: 7c 69 1b 79 mr. r9,r3 int sigismember( const sigset_t *set, int signo ) { ffc0ba34: 94 21 ff f8 stwu r1,-8(r1) ffc0ba38: 7c 08 02 a6 mflr r0 ffc0ba3c: 90 01 00 0c stw r0,12(r1) if ( !set ) ffc0ba40: 41 82 00 44 beq- ffc0ba84 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !signo ) ffc0ba44: 2f 84 00 00 cmpwi cr7,r4,0 ffc0ba48: 38 60 00 00 li r3,0 ffc0ba4c: 41 9e 00 28 beq- cr7,ffc0ba74 ffc0ba50: 38 84 ff ff addi r4,r4,-1 return 0; if ( !is_valid_signo(signo) ) ffc0ba54: 2b 84 00 1f cmplwi cr7,r4,31 ffc0ba58: 41 9d 00 2c bgt- cr7,ffc0ba84 rtems_set_errno_and_return_minus_one( EINVAL ); ffc0ba5c: 80 09 00 00 lwz r0,0(r9) ffc0ba60: 39 20 00 01 li r9,1 ffc0ba64: 7d 24 20 30 slw r4,r9,r4 ffc0ba68: 7c 84 00 38 and r4,r4,r0 ffc0ba6c: 30 04 ff ff addic r0,r4,-1 ffc0ba70: 7c 60 21 10 subfe r3,r0,r4 if ( *set & signo_to_mask(signo) ) return 1; return 0; } ffc0ba74: 80 01 00 0c lwz r0,12(r1) ffc0ba78: 38 21 00 08 addi r1,r1,8 ffc0ba7c: 7c 08 03 a6 mtlr r0 ffc0ba80: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !signo ) return 0; if ( !is_valid_signo(signo) ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc0ba84: 48 00 b6 c5 bl ffc17148 <__errno> <== ALWAYS TAKEN ffc0ba88: 38 00 00 16 li r0,22 ffc0ba8c: 90 03 00 00 stw r0,0(r3) ffc0ba90: 38 60 ff ff li r3,-1 ffc0ba94: 4b ff ff e0 b ffc0ba74 <== ALWAYS TAKEN ffc08d7c : sighandler_t signal( int signum, sighandler_t handler ) { ffc08d7c: 94 21 ff d0 stwu r1,-48(r1) ffc08d80: 7c 08 02 a6 mflr r0 ffc08d84: 93 e1 00 2c stw r31,44(r1) ffc08d88: 7c 7f 1b 78 mr r31,r3 struct sigaction s; struct sigaction old; s.sa_handler = handler ; sigemptyset(&s.sa_mask); ffc08d8c: 38 61 00 0c addi r3,r1,12 sighandler_t signal( int signum, sighandler_t handler ) { ffc08d90: 90 01 00 34 stw r0,52(r1) struct sigaction s; struct sigaction old; s.sa_handler = handler ; ffc08d94: 90 81 00 10 stw r4,16(r1) sigemptyset(&s.sa_mask); ffc08d98: 4b ff ff a1 bl ffc08d38 <== 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; ffc08d9c: 38 00 00 00 li r0,0 #endif sigaction( signum, &s, &old ); ffc08da0: 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; ffc08da4: 90 01 00 08 stw r0,8(r1) #endif sigaction( signum, &s, &old ); ffc08da8: 38 81 00 08 addi r4,r1,8 ffc08dac: 38 a1 00 14 addi r5,r1,20 ffc08db0: 4b ff fd f1 bl ffc08ba0 <== ALWAYS TAKEN return (sighandler_t) old.sa_handler; } ffc08db4: 80 01 00 34 lwz r0,52(r1) ffc08db8: 80 61 00 1c lwz r3,28(r1) ffc08dbc: 7c 08 03 a6 mtlr r0 ffc08dc0: 83 e1 00 2c lwz r31,44(r1) ffc08dc4: 38 21 00 30 addi r1,r1,48 ffc08dc8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09310 : sigset_t *set ) { POSIX_API_Control *api; if ( !set ) ffc09310: 7c 69 1b 79 mr. r9,r3 #include int sigpending( sigset_t *set ) { ffc09314: 94 21 ff f8 stwu r1,-8(r1) ffc09318: 7c 08 02 a6 mflr r0 ffc0931c: 90 01 00 0c stw r0,12(r1) POSIX_API_Control *api; if ( !set ) ffc09320: 41 82 00 38 beq- ffc09358 rtems_set_errno_and_return_minus_one( EINVAL ); api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; *set = api->signals_pending | _POSIX_signals_Pending; ffc09324: 3d 60 00 00 lis r11,0 ffc09328: 81 6b 28 40 lwz r11,10304(r11) ffc0932c: 38 60 00 00 li r3,0 ffc09330: 81 4b 01 48 lwz r10,328(r11) ffc09334: 3d 60 00 00 lis r11,0 ffc09338: 81 6b 28 74 lwz r11,10356(r11) ffc0933c: 80 0a 00 c8 lwz r0,200(r10) ffc09340: 7d 60 03 78 or r0,r11,r0 ffc09344: 90 09 00 00 stw r0,0(r9) return 0; } ffc09348: 80 01 00 0c lwz r0,12(r1) ffc0934c: 38 21 00 08 addi r1,r1,8 ffc09350: 7c 08 03 a6 mtlr r0 ffc09354: 4e 80 00 20 blr <== ALWAYS TAKEN ) { POSIX_API_Control *api; if ( !set ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc09358: 48 00 b5 e9 bl ffc14940 <__errno> <== ALWAYS TAKEN ffc0935c: 38 00 00 16 li r0,22 ffc09360: 90 03 00 00 stw r0,0(r3) ffc09364: 38 60 ff ff li r3,-1 ffc09368: 4b ff ff e0 b ffc09348 <== ALWAYS TAKEN ffc0936c : int sigprocmask( int how, const sigset_t *set, sigset_t *oset ) { ffc0936c: 94 21 ff f8 stwu r1,-8(r1) ffc09370: 7c 08 02 a6 mflr r0 ffc09374: 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 ); ffc09378: 48 00 76 d5 bl ffc10a4c <== ALWAYS TAKEN #else return -1; #endif } ffc0937c: 80 01 00 0c lwz r0,12(r1) ffc09380: 38 21 00 08 addi r1,r1,8 ffc09384: 7c 08 03 a6 mtlr r0 ffc09388: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bb14 : int sigqueue( pid_t pid, int signo, const union sigval value ) { ffc0bb14: 94 21 ff f8 stwu r1,-8(r1) ffc0bb18: 7c 08 02 a6 mflr r0 ffc0bb1c: 90 01 00 0c stw r0,12(r1) return killinfo( pid, signo, &value ); ffc0bb20: 48 00 70 b9 bl ffc12bd8 <== ALWAYS TAKEN } ffc0bb24: 80 01 00 0c lwz r0,12(r1) ffc0bb28: 38 21 00 08 addi r1,r1,8 ffc0bb2c: 7c 08 03 a6 mtlr r0 ffc0bb30: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0bb34 : #include int sigsuspend( const sigset_t *sigmask ) { ffc0bb34: 94 21 ff e0 stwu r1,-32(r1) ffc0bb38: 7c 08 02 a6 mflr r0 ffc0bb3c: 7c 64 1b 78 mr r4,r3 ffc0bb40: 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 ); ffc0bb44: 3b e1 00 08 addi r31,r1,8 ffc0bb48: 7f e5 fb 78 mr r5,r31 #include int sigsuspend( const sigset_t *sigmask ) { ffc0bb4c: 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 ); ffc0bb50: 38 60 00 01 li r3,1 (void) sigfillset( &all_signals ); ffc0bb54: 3b c1 00 0c addi r30,r1,12 #include int sigsuspend( const sigset_t *sigmask ) { ffc0bb58: 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 ); ffc0bb5c: 4b ff ff 99 bl ffc0baf4 <== ALWAYS TAKEN (void) sigfillset( &all_signals ); ffc0bb60: 7f c3 f3 78 mr r3,r30 ffc0bb64: 4b ff fe 89 bl ffc0b9ec <== ALWAYS TAKEN status = sigtimedwait( &all_signals, NULL, NULL ); ffc0bb68: 7f c3 f3 78 mr r3,r30 ffc0bb6c: 38 80 00 00 li r4,0 ffc0bb70: 38 a0 00 00 li r5,0 ffc0bb74: 48 00 00 a9 bl ffc0bc1c <== ALWAYS TAKEN (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); ffc0bb78: 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 ); ffc0bb7c: 7c 7e 1b 78 mr r30,r3 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); ffc0bb80: 38 a0 00 00 li r5,0 ffc0bb84: 38 60 00 00 li r3,0 ffc0bb88: 4b ff ff 6d bl ffc0baf4 <== ALWAYS TAKEN /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) ffc0bb8c: 2f 9e ff ff cmpwi cr7,r30,-1 ffc0bb90: 40 9e 00 20 bne- cr7,ffc0bbb0 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINTR ); return status; } ffc0bb94: 80 01 00 24 lwz r0,36(r1) ffc0bb98: 38 60 ff ff li r3,-1 ffc0bb9c: 83 c1 00 18 lwz r30,24(r1) ffc0bba0: 7c 08 03 a6 mtlr r0 ffc0bba4: 83 e1 00 1c lwz r31,28(r1) ffc0bba8: 38 21 00 20 addi r1,r1,32 ffc0bbac: 4e 80 00 20 blr <== ALWAYS TAKEN /* * sigtimedwait() returns the signal number while sigsuspend() * is supposed to return -1 and EINTR when a signal is caught. */ if ( status != -1 ) rtems_set_errno_and_return_minus_one( EINTR ); ffc0bbb0: 48 00 b5 99 bl ffc17148 <__errno> <== ALWAYS TAKEN ffc0bbb4: 38 00 00 04 li r0,4 ffc0bbb8: 90 03 00 00 stw r0,0(r3) ffc0bbbc: 4b ff ff d8 b ffc0bb94 <== ALWAYS TAKEN ffc09738 : int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) { ffc09738: 94 21 ff d0 stwu r1,-48(r1) ffc0973c: 7c 08 02 a6 mflr r0 ffc09740: 93 61 00 1c stw r27,28(r1) ISR_Level level; /* * Error check parameters before disabling interrupts. */ if ( !set ) ffc09744: 7c 7b 1b 79 mr. r27,r3 int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) { ffc09748: 93 c1 00 28 stw r30,40(r1) ffc0974c: 7c 9e 23 78 mr r30,r4 ffc09750: 93 e1 00 2c stw r31,44(r1) ffc09754: 7c bf 2b 78 mr r31,r5 ffc09758: 90 01 00 34 stw r0,52(r1) ffc0975c: 93 81 00 20 stw r28,32(r1) ffc09760: 93 a1 00 24 stw r29,36(r1) ISR_Level level; /* * Error check parameters before disabling interrupts. */ if ( !set ) ffc09764: 41 82 01 f0 beq- ffc09954 /* NOTE: This is very specifically a RELATIVE not ABSOLUTE time * in the Open Group specification. */ interval = 0; if ( timeout ) { ffc09768: 2f 85 00 00 cmpwi cr7,r5,0 ffc0976c: 41 9e 01 80 beq- cr7,ffc098ec if ( !_Timespec_Is_valid( timeout ) ) ffc09770: 7c a3 2b 78 mr r3,r5 ffc09774: 48 00 47 ad bl ffc0df20 <_Timespec_Is_valid> <== ALWAYS TAKEN ffc09778: 2f 83 00 00 cmpwi cr7,r3,0 ffc0977c: 41 9e 01 d8 beq- cr7,ffc09954 rtems_set_errno_and_return_minus_one( EINVAL ); interval = _Timespec_To_ticks( timeout ); ffc09780: 7f e3 fb 78 mr r3,r31 ffc09784: 48 00 48 2d bl ffc0dfb0 <_Timespec_To_ticks> <== ALWAYS TAKEN if ( !interval ) ffc09788: 7c 64 1b 79 mr. r4,r3 ffc0978c: 41 82 01 c8 beq- ffc09954 <== NEVER TAKEN /* * Initialize local variables. */ the_info = ( info ) ? info : &signal_information; ffc09790: 2f 9e 00 00 cmpwi cr7,r30,0 ffc09794: 3b e1 00 08 addi r31,r1,8 ffc09798: 41 9e 00 08 beq- cr7,ffc097a0 ffc0979c: 7f df f3 78 mr r31,r30 the_thread = _Thread_Executing; ffc097a0: 3f c0 00 00 lis r30,0 ffc097a4: 81 3e 28 40 lwz r9,10304(r30) api = the_thread->API_Extensions[ THREAD_API_POSIX ]; ffc097a8: 83 89 01 48 lwz r28,328(r9) static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; asm volatile ( ffc097ac: 7f a0 00 a6 mfmsr r29 ffc097b0: 7c 10 42 a6 mfsprg r0,0 ffc097b4: 7f a0 00 78 andc r0,r29,r0 ffc097b8: 7c 00 01 24 mtmsr r0 */ /* API signals pending? */ _ISR_Disable( level ); if ( *set & api->signals_pending ) { ffc097bc: 80 1b 00 00 lwz r0,0(r27) ffc097c0: 80 7c 00 c8 lwz r3,200(r28) ffc097c4: 7c 0b 18 39 and. r11,r0,r3 ffc097c8: 40 82 01 2c bne- ffc098f4 return the_info->si_signo; } /* Process pending signals? */ if ( *set & _POSIX_signals_Pending ) { ffc097cc: 3d 60 00 00 lis r11,0 ffc097d0: 80 6b 28 74 lwz r3,10356(r11) ffc097d4: 7c 0b 18 39 and. r11,r0,r3 ffc097d8: 40 82 00 b4 bne- ffc0988c ffc097dc: 3d 60 00 00 lis r11,0 ffc097e0: 81 4b 28 00 lwz r10,10240(r11) ffc097e4: 38 0a 00 01 addi r0,r10,1 ffc097e8: 90 0b 28 00 stw r0,10240(r11) the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; return signo; } the_info->si_signo = -1; ffc097ec: 38 00 ff ff li r0,-1 ffc097f0: 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; ffc097f4: 38 00 00 04 li r0,4 the_thread->Wait.option = *set; the_thread->Wait.return_argument = the_info; ffc097f8: 93 e9 00 28 stw r31,40(r9) } the_info->si_signo = -1; _Thread_Disable_dispatch(); the_thread->Wait.queue = &_POSIX_signals_Wait_queue; ffc097fc: 3d 60 00 00 lis r11,0 the_thread->Wait.return_code = EINTR; ffc09800: 90 09 00 34 stw r0,52(r9) } the_info->si_signo = -1; _Thread_Disable_dispatch(); the_thread->Wait.queue = &_POSIX_signals_Wait_queue; ffc09804: 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; ffc09808: 39 40 00 01 li r10,1 the_thread->Wait.return_code = EINTR; the_thread->Wait.option = *set; ffc0980c: 80 1b 00 00 lwz r0,0(r27) ffc09810: 91 4b 00 30 stw r10,48(r11) ffc09814: 90 09 00 30 stw r0,48(r9) } the_info->si_signo = -1; _Thread_Disable_dispatch(); the_thread->Wait.queue = &_POSIX_signals_Wait_queue; ffc09818: 91 69 00 44 stw r11,68(r9) return level; } static inline void ppc_interrupt_enable( uint32_t level ) { asm volatile ( ffc0981c: 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 ); ffc09820: 3c a0 ff c1 lis r5,-63 ffc09824: 3c 60 00 00 lis r3,0 ffc09828: 38 a5 d8 04 addi r5,r5,-10236 ffc0982c: 38 63 33 3c addi r3,r3,13116 ffc09830: 48 00 3b 75 bl ffc0d3a4 <_Thread_queue_Enqueue_with_handler> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc09834: 48 00 34 f5 bl ffc0cd28 <_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 ); ffc09838: 80 9f 00 00 lwz r4,0(r31) ffc0983c: 7f e5 fb 78 mr r5,r31 ffc09840: 38 c0 00 00 li r6,0 ffc09844: 38 e0 00 00 li r7,0 ffc09848: 7f 83 e3 78 mr r3,r28 ffc0984c: 48 00 74 05 bl ffc10c50 <_POSIX_signals_Clear_signals> <== ALWAYS TAKEN errno = _Thread_Executing->Wait.return_code; ffc09850: 48 00 b5 f1 bl ffc14e40 <__errno> <== ALWAYS TAKEN ffc09854: 81 3e 28 40 lwz r9,10304(r30) ffc09858: 80 09 00 34 lwz r0,52(r9) ffc0985c: 90 03 00 00 stw r0,0(r3) return the_info->si_signo; ffc09860: 83 df 00 00 lwz r30,0(r31) } ffc09864: 80 01 00 34 lwz r0,52(r1) ffc09868: 7f c3 f3 78 mr r3,r30 ffc0986c: 83 61 00 1c lwz r27,28(r1) ffc09870: 7c 08 03 a6 mtlr r0 ffc09874: 83 81 00 20 lwz r28,32(r1) ffc09878: 83 a1 00 24 lwz r29,36(r1) ffc0987c: 83 c1 00 28 lwz r30,40(r1) ffc09880: 83 e1 00 2c lwz r31,44(r1) ffc09884: 38 21 00 30 addi r1,r1,48 ffc09888: 4e 80 00 20 blr <== ALWAYS TAKEN } /* Process pending signals? */ if ( *set & _POSIX_signals_Pending ) { signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending ); ffc0988c: 4b ff fe 51 bl ffc096dc <_POSIX_signals_Get_highest> <== ALWAYS TAKEN _POSIX_signals_Clear_signals( api, signo, the_info, true, false ); ffc09890: 7f e5 fb 78 mr r5,r31 } /* Process pending signals? */ if ( *set & _POSIX_signals_Pending ) { signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending ); ffc09894: 7c 7e 1b 78 mr r30,r3 _POSIX_signals_Clear_signals( api, signo, the_info, true, false ); ffc09898: 7f c4 f3 78 mr r4,r30 ffc0989c: 7f 83 e3 78 mr r3,r28 ffc098a0: 38 c0 00 01 li r6,1 ffc098a4: 38 e0 00 00 li r7,0 ffc098a8: 48 00 73 a9 bl ffc10c50 <_POSIX_signals_Clear_signals> <== ALWAYS TAKEN ffc098ac: 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; ffc098b0: 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; ffc098b4: 93 df 00 00 stw r30,0(r31) */ _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false ); errno = _Thread_Executing->Wait.return_code; return the_info->si_signo; } ffc098b8: 7f c3 f3 78 mr r3,r30 _POSIX_signals_Clear_signals( api, signo, the_info, true, false ); _ISR_Enable( level ); the_info->si_signo = signo; the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; ffc098bc: 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; ffc098c0: 38 00 00 01 li r0,1 ffc098c4: 90 1f 00 04 stw r0,4(r31) */ _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false ); errno = _Thread_Executing->Wait.return_code; return the_info->si_signo; } ffc098c8: 80 01 00 34 lwz r0,52(r1) ffc098cc: 83 61 00 1c lwz r27,28(r1) ffc098d0: 7c 08 03 a6 mtlr r0 ffc098d4: 83 81 00 20 lwz r28,32(r1) ffc098d8: 83 a1 00 24 lwz r29,36(r1) ffc098dc: 83 c1 00 28 lwz r30,40(r1) ffc098e0: 83 e1 00 2c lwz r31,44(r1) ffc098e4: 38 21 00 30 addi r1,r1,48 ffc098e8: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); interval = _Timespec_To_ticks( timeout ); if ( !interval ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc098ec: 38 80 00 00 li r4,0 ffc098f0: 4b ff fe a0 b ffc09790 <== ALWAYS TAKEN /* 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 ); ffc098f4: 4b ff fd e9 bl ffc096dc <_POSIX_signals_Get_highest> <== ALWAYS TAKEN _POSIX_signals_Clear_signals( ffc098f8: 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 ); ffc098fc: 90 7f 00 00 stw r3,0(r31) ffc09900: 7c 64 1b 78 mr r4,r3 _POSIX_signals_Clear_signals( ffc09904: 38 c0 00 00 li r6,0 ffc09908: 7f 83 e3 78 mr r3,r28 ffc0990c: 38 e0 00 00 li r7,0 ffc09910: 48 00 73 41 bl ffc10c50 <_POSIX_signals_Clear_signals> <== ALWAYS TAKEN ffc09914: 7f a0 01 24 mtmsr r29 false, false ); _ISR_Enable( level ); the_info->si_code = SI_USER; ffc09918: 38 00 00 01 li r0,1 the_info->si_value.sival_int = 0; return the_info->si_signo; ffc0991c: 83 df 00 00 lwz r30,0(r31) false, false ); _ISR_Enable( level ); the_info->si_code = SI_USER; ffc09920: 90 1f 00 04 stw r0,4(r31) the_info->si_value.sival_int = 0; ffc09924: 38 00 00 00 li r0,0 */ _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false ); errno = _Thread_Executing->Wait.return_code; return the_info->si_signo; } ffc09928: 7f c3 f3 78 mr r3,r30 false ); _ISR_Enable( level ); the_info->si_code = SI_USER; the_info->si_value.sival_int = 0; ffc0992c: 90 1f 00 08 stw r0,8(r31) */ _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false ); errno = _Thread_Executing->Wait.return_code; return the_info->si_signo; } ffc09930: 80 01 00 34 lwz r0,52(r1) ffc09934: 83 61 00 1c lwz r27,28(r1) ffc09938: 7c 08 03 a6 mtlr r0 ffc0993c: 83 81 00 20 lwz r28,32(r1) ffc09940: 83 a1 00 24 lwz r29,36(r1) ffc09944: 83 c1 00 28 lwz r30,40(r1) ffc09948: 83 e1 00 2c lwz r31,44(r1) ffc0994c: 38 21 00 30 addi r1,r1,48 ffc09950: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); interval = _Timespec_To_ticks( timeout ); if ( !interval ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc09954: 48 00 b4 ed bl ffc14e40 <__errno> <== ALWAYS TAKEN ffc09958: 38 00 00 16 li r0,22 ffc0995c: 90 03 00 00 stw r0,0(r3) ffc09960: 3b c0 ff ff li r30,-1 ffc09964: 4b ff ff 00 b ffc09864 <== ALWAYS TAKEN ffc0be70 : int sigwait( const sigset_t *set, int *sig ) { ffc0be70: 94 21 ff f0 stwu r1,-16(r1) ffc0be74: 7c 08 02 a6 mflr r0 int status; status = sigtimedwait( set, NULL, NULL ); ffc0be78: 38 a0 00 00 li r5,0 int sigwait( const sigset_t *set, int *sig ) { ffc0be7c: 93 e1 00 0c stw r31,12(r1) ffc0be80: 7c 9f 23 78 mr r31,r4 int status; status = sigtimedwait( set, NULL, NULL ); ffc0be84: 38 80 00 00 li r4,0 int sigwait( const sigset_t *set, int *sig ) { ffc0be88: 90 01 00 14 stw r0,20(r1) int status; status = sigtimedwait( set, NULL, NULL ); ffc0be8c: 4b ff fd 91 bl ffc0bc1c <== ALWAYS TAKEN if ( status != -1 ) { ffc0be90: 2f 83 ff ff cmpwi cr7,r3,-1 int *sig ) { int status; status = sigtimedwait( set, NULL, NULL ); ffc0be94: 7c 60 1b 78 mr r0,r3 if ( status != -1 ) { ffc0be98: 41 9e 00 28 beq- cr7,ffc0bec0 if ( sig ) ffc0be9c: 2f 9f 00 00 cmpwi cr7,r31,0 ffc0bea0: 38 60 00 00 li r3,0 ffc0bea4: 41 9e 00 08 beq- cr7,ffc0beac <== NEVER TAKEN *sig = status; ffc0bea8: 90 1f 00 00 stw r0,0(r31) return 0; } return errno; } ffc0beac: 80 01 00 14 lwz r0,20(r1) ffc0beb0: 83 e1 00 0c lwz r31,12(r1) ffc0beb4: 38 21 00 10 addi r1,r1,16 ffc0beb8: 7c 08 03 a6 mtlr r0 ffc0bebc: 4e 80 00 20 blr <== ALWAYS TAKEN if ( sig ) *sig = status; return 0; } return errno; ffc0bec0: 48 00 b2 89 bl ffc17148 <__errno> <== ALWAYS TAKEN } ffc0bec4: 80 01 00 14 lwz r0,20(r1) if ( sig ) *sig = status; return 0; } return errno; ffc0bec8: 80 63 00 00 lwz r3,0(r3) } ffc0becc: 7c 08 03 a6 mtlr r0 ffc0bed0: 83 e1 00 0c lwz r31,12(r1) ffc0bed4: 38 21 00 10 addi r1,r1,16 ffc0bed8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0be4c : int sigwaitinfo( const sigset_t *set, siginfo_t *info ) { ffc0be4c: 94 21 ff f8 stwu r1,-8(r1) ffc0be50: 7c 08 02 a6 mflr r0 return sigtimedwait( set, info, NULL ); ffc0be54: 38 a0 00 00 li r5,0 int sigwaitinfo( const sigset_t *set, siginfo_t *info ) { ffc0be58: 90 01 00 0c stw r0,12(r1) return sigtimedwait( set, info, NULL ); ffc0be5c: 4b ff fd c1 bl ffc0bc1c <== ALWAYS TAKEN } ffc0be60: 80 01 00 0c lwz r0,12(r1) ffc0be64: 38 21 00 08 addi r1,r1,8 ffc0be68: 7c 08 03 a6 mtlr r0 ffc0be6c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc065fc : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { ffc065fc: 94 21 ff f0 stwu r1,-16(r1) <== NOT EXECUTED ffc06600: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc06604: 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)) { ffc06608: 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) { ffc0660c: 93 c1 00 08 stw r30,8(r1) <== NOT EXECUTED ffc06610: 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)) { ffc06614: 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) { ffc06618: 93 e1 00 0c stw r31,12(r1) <== NOT EXECUTED ffc0661c: 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)) { ffc06620: 40 82 00 1c bne- ffc0663c <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } ffc06624: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc06628: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc0662c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06630: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc06634: 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); ffc06638: 4b ff fd c4 b ffc063fc <== NOT EXECUTED /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); ffc0663c: 80 64 00 18 lwz r3,24(r4) <== NOT EXECUTED ffc06640: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc06644: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc06648: 48 00 1f 3d bl ffc08584 <== NOT EXECUTED i = iproc (c, tty); ffc0664c: 7f e4 fb 78 mr r4,r31 <== NOT EXECUTED ffc06650: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc06654: 4b ff fd a9 bl ffc063fc <== NOT EXECUTED ffc06658: 7c 7e 1b 78 mr r30,r3 <== NOT EXECUTED rtems_semaphore_release (tty->osem); ffc0665c: 80 7f 00 18 lwz r3,24(r31) <== NOT EXECUTED ffc06660: 48 00 20 85 bl ffc086e4 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } ffc06664: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc06668: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0666c: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc06670: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc06674: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc06678: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc0667c: 4e 80 00 20 blr <== NOT EXECUTED ffc0ab44 : int _STAT_NAME( const char *path, struct stat *buf ) { ffc0ab44: 94 21 ff c8 stwu r1,-56(r1) ffc0ab48: 7c 08 02 a6 mflr r0 ffc0ab4c: 93 c1 00 30 stw r30,48(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc0ab50: 7c 9e 23 79 mr. r30,r4 int _STAT_NAME( const char *path, struct stat *buf ) { ffc0ab54: 93 a1 00 2c stw r29,44(r1) ffc0ab58: 7c 7d 1b 78 mr r29,r3 ffc0ab5c: 90 01 00 3c stw r0,60(r1) ffc0ab60: 93 e1 00 34 stw r31,52(r1) /* * Check to see if we were passed a valid pointer. */ if ( !buf ) ffc0ab64: 41 82 00 b0 beq- ffc0ac14 rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), ffc0ab68: 48 04 b6 d1 bl ffc56238 <== ALWAYS TAKEN ffc0ab6c: 3b e1 00 08 addi r31,r1,8 ffc0ab70: 7c 64 1b 78 mr r4,r3 ffc0ab74: 38 a0 00 00 li r5,0 ffc0ab78: 7f a3 eb 78 mr r3,r29 ffc0ab7c: 7f e6 fb 78 mr r6,r31 ffc0ab80: 38 e0 00 01 li r7,1 ffc0ab84: 4b ff e1 91 bl ffc08d14 <== ALWAYS TAKEN 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) ffc0ab88: 3b a0 ff ff li r29,-1 ffc0ab8c: 2f 83 00 00 cmpwi cr7,r3,0 ffc0ab90: 40 9e 00 64 bne- cr7,ffc0abf4 return -1; if ( !loc.handlers->fstat_h ){ ffc0ab94: 81 21 00 10 lwz r9,16(r1) ffc0ab98: 80 09 00 18 lwz r0,24(r9) ffc0ab9c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0aba0: 41 9e 00 a4 beq- cr7,ffc0ac44 <== NEVER TAKEN /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); ffc0aba4: 38 80 00 00 li r4,0 ffc0aba8: 38 a0 00 48 li r5,72 ffc0abac: 7f c3 f3 78 mr r3,r30 ffc0abb0: 48 04 76 59 bl ffc52208 <== ALWAYS TAKEN status = (*loc.handlers->fstat_h)( &loc, buf ); ffc0abb4: 81 21 00 10 lwz r9,16(r1) ffc0abb8: 7f c4 f3 78 mr r4,r30 ffc0abbc: 80 09 00 18 lwz r0,24(r9) ffc0abc0: 7f e3 fb 78 mr r3,r31 ffc0abc4: 7c 09 03 a6 mtctr r0 ffc0abc8: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc0abcc: 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 ); ffc0abd0: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &loc ); ffc0abd4: 2f 89 00 00 cmpwi cr7,r9,0 ffc0abd8: 41 9e 00 1c beq- cr7,ffc0abf4 <== NEVER TAKEN ffc0abdc: 80 09 00 1c lwz r0,28(r9) ffc0abe0: 2f 80 00 00 cmpwi cr7,r0,0 ffc0abe4: 41 9e 00 10 beq- cr7,ffc0abf4 <== NEVER TAKEN ffc0abe8: 7f e3 fb 78 mr r3,r31 ffc0abec: 7c 09 03 a6 mtctr r0 ffc0abf0: 4e 80 04 21 bctrl <== ALWAYS TAKEN return status; } ffc0abf4: 80 01 00 3c lwz r0,60(r1) ffc0abf8: 7f a3 eb 78 mr r3,r29 ffc0abfc: 83 c1 00 30 lwz r30,48(r1) ffc0ac00: 7c 08 03 a6 mtlr r0 ffc0ac04: 83 a1 00 2c lwz r29,44(r1) ffc0ac08: 83 e1 00 34 lwz r31,52(r1) ffc0ac0c: 38 21 00 38 addi r1,r1,56 ffc0ac10: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc0ac14: 48 04 38 5d bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc0ac18: 38 00 00 0e li r0,14 ffc0ac1c: 90 03 00 00 stw r0,0(r3) ffc0ac20: 3b a0 ff ff li r29,-1 status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } ffc0ac24: 7f a3 eb 78 mr r3,r29 ffc0ac28: 80 01 00 3c lwz r0,60(r1) ffc0ac2c: 83 a1 00 2c lwz r29,44(r1) ffc0ac30: 7c 08 03 a6 mtlr r0 ffc0ac34: 83 c1 00 30 lwz r30,48(r1) ffc0ac38: 83 e1 00 34 lwz r31,52(r1) ffc0ac3c: 38 21 00 38 addi r1,r1,56 ffc0ac40: 4e 80 00 20 blr <== ALWAYS TAKEN 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); ffc0ac44: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc0ac48: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc0ac4c: 41 9e 00 1c beq- cr7,ffc0ac68 <== NOT EXECUTED ffc0ac50: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc0ac54: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc0ac58: 41 9e 00 10 beq- cr7,ffc0ac68 <== NOT EXECUTED ffc0ac5c: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc0ac60: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0ac64: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0ac68: 48 04 38 09 bl ffc4e470 <__errno> <== NOT EXECUTED ffc0ac6c: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0ac70: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0ac74: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc0ac78: 4b ff ff 7c b ffc0abf4 <== NOT EXECUTED ffc30ec0 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { ffc30ec0: 94 21 ff c8 stwu r1,-56(r1) <== NOT EXECUTED ffc30ec4: 7c 08 02 a6 mflr r0 <== NOT EXECUTED ffc30ec8: 93 a1 00 2c stw r29,44(r1) <== NOT EXECUTED ffc30ecc: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED ffc30ed0: 90 01 00 3c stw r0,60(r1) <== NOT EXECUTED ffc30ed4: 93 c1 00 30 stw r30,48(r1) <== NOT EXECUTED ffc30ed8: 7c 9e 23 78 mr r30,r4 <== NOT EXECUTED ffc30edc: 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 ) ) ffc30ee0: 48 02 53 59 bl ffc56238 <== NOT EXECUTED ffc30ee4: 3b e1 00 08 addi r31,r1,8 <== NOT EXECUTED ffc30ee8: 7c 64 1b 78 mr r4,r3 <== NOT EXECUTED ffc30eec: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc30ef0: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc30ef4: 7f e6 fb 78 mr r6,r31 <== NOT EXECUTED ffc30ef8: 38 e0 00 01 li r7,1 <== NOT EXECUTED ffc30efc: 4b fd 7e 19 bl ffc08d14 <== NOT EXECUTED ffc30f00: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc30f04: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc30f08: 40 9e 00 68 bne- cr7,ffc30f70 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; ffc30f0c: 83 a1 00 18 lwz r29,24(r1) <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; ffc30f10: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED ffc30f14: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED ffc30f18: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30f1c: 41 9e 00 74 beq- cr7,ffc30f90 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); ffc30f20: 38 80 00 00 li r4,0 <== NOT EXECUTED ffc30f24: 38 a0 00 38 li r5,56 <== NOT EXECUTED ffc30f28: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc30f2c: 48 02 12 dd bl ffc52208 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); ffc30f30: 81 3d 00 28 lwz r9,40(r29) <== NOT EXECUTED ffc30f34: 38 7d 00 1c addi r3,r29,28 <== NOT EXECUTED ffc30f38: 80 09 00 44 lwz r0,68(r9) <== NOT EXECUTED ffc30f3c: 7f c4 f3 78 mr r4,r30 <== NOT EXECUTED ffc30f40: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30f44: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc30f48: 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 ); ffc30f4c: 7c 7d 1b 78 mr r29,r3 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); ffc30f50: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc30f54: 41 9e 00 1c beq- cr7,ffc30f70 <== NOT EXECUTED ffc30f58: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc30f5c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc30f60: 41 9e 00 10 beq- cr7,ffc30f70 <== NOT EXECUTED ffc30f64: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc30f68: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc30f6c: 4e 80 04 21 bctrl <== NOT EXECUTED return result; } ffc30f70: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc30f74: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED ffc30f78: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc30f7c: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc30f80: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc30f84: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc30f88: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc30f8c: 4e 80 00 20 blr <== NOT EXECUTED mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc30f90: 48 01 d4 e1 bl ffc4e470 <__errno> <== NOT EXECUTED ffc30f94: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc30f98: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc30f9c: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc30fa0: 4b ff ff d0 b ffc30f70 <== NOT EXECUTED ffc30fa4 : int symlink( const char *actualpath, const char *sympath ) { ffc30fa4: 94 21 ff c8 stwu r1,-56(r1) ffc30fa8: 7c 08 02 a6 mflr r0 ffc30fac: 93 a1 00 2c stw r29,44(r1) ffc30fb0: 7c 7d 1b 78 mr r29,r3 ffc30fb4: 90 01 00 3c stw r0,60(r1) ffc30fb8: 93 c1 00 30 stw r30,48(r1) ffc30fbc: 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 ); ffc30fc0: 88 04 00 00 lbz r0,0(r4) ffc30fc4: 2f 80 00 2f cmpwi cr7,r0,47 ffc30fc8: 41 9e 00 14 beq- cr7,ffc30fdc ffc30fcc: 2f 80 00 5c cmpwi cr7,r0,92 ffc30fd0: 41 9e 00 0c beq- cr7,ffc30fdc <== NEVER TAKEN ffc30fd4: 2f 80 00 00 cmpwi cr7,r0,0 ffc30fd8: 40 9e 00 d8 bne- cr7,ffc310b0 <== ALWAYS TAKEN ffc30fdc: 3d 20 00 00 lis r9,0 ffc30fe0: 81 29 35 2c lwz r9,13612(r9) ffc30fe4: 38 60 00 01 li r3,1 ffc30fe8: 80 09 00 24 lwz r0,36(r9) ffc30fec: 81 09 00 18 lwz r8,24(r9) ffc30ff0: 81 49 00 1c lwz r10,28(r9) ffc30ff4: 81 69 00 20 lwz r11,32(r9) ffc30ff8: 90 01 00 18 stw r0,24(r1) ffc30ffc: 91 01 00 0c stw r8,12(r1) ffc31000: 91 41 00 10 stw r10,16(r1) ffc31004: 91 61 00 14 stw r11,20(r1) ffc31008: 80 09 00 28 lwz r0,40(r9) if ( !loc.ops->evalformake_h ) { ffc3100c: 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 ); ffc31010: 90 01 00 1c stw r0,28(r1) if ( !loc.ops->evalformake_h ) { ffc31014: 80 09 00 04 lwz r0,4(r9) ffc31018: 2f 80 00 00 cmpwi cr7,r0,0 ffc3101c: 41 9e 00 d8 beq- cr7,ffc310f4 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); ffc31020: 3b e1 00 0c addi r31,r1,12 ffc31024: 7c 09 03 a6 mtctr r0 ffc31028: 7c 64 1a 14 add r3,r4,r3 ffc3102c: 38 a1 00 08 addi r5,r1,8 ffc31030: 7f e4 fb 78 mr r4,r31 if ( result != 0 ) ffc31034: 3b c0 ff ff li r30,-1 if ( !loc.ops->evalformake_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); ffc31038: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( result != 0 ) ffc3103c: 2f 83 00 00 cmpwi cr7,r3,0 ffc31040: 40 9e 00 50 bne- cr7,ffc31090 return -1; if ( !loc.ops->symlink_h ) { ffc31044: 81 21 00 18 lwz r9,24(r1) ffc31048: 80 09 00 38 lwz r0,56(r9) ffc3104c: 2f 80 00 00 cmpwi cr7,r0,0 ffc31050: 41 9e 00 d4 beq- cr7,ffc31124 <== NEVER TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); ffc31054: 7f a4 eb 78 mr r4,r29 ffc31058: 80 a1 00 08 lwz r5,8(r1) ffc3105c: 7f e3 fb 78 mr r3,r31 ffc31060: 7c 09 03 a6 mtctr r0 ffc31064: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc31068: 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); ffc3106c: 7c 7e 1b 78 mr r30,r3 rtems_filesystem_freenode( &loc ); ffc31070: 2f 89 00 00 cmpwi cr7,r9,0 ffc31074: 41 9e 00 1c beq- cr7,ffc31090 <== NEVER TAKEN ffc31078: 80 09 00 1c lwz r0,28(r9) ffc3107c: 2f 80 00 00 cmpwi cr7,r0,0 ffc31080: 41 9e 00 10 beq- cr7,ffc31090 <== NEVER TAKEN ffc31084: 7f e3 fb 78 mr r3,r31 ffc31088: 7c 09 03 a6 mtctr r0 ffc3108c: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc31090: 80 01 00 3c lwz r0,60(r1) ffc31094: 7f c3 f3 78 mr r3,r30 ffc31098: 83 a1 00 2c lwz r29,44(r1) ffc3109c: 7c 08 03 a6 mtlr r0 ffc310a0: 83 c1 00 30 lwz r30,48(r1) ffc310a4: 83 e1 00 34 lwz r31,52(r1) ffc310a8: 38 21 00 38 addi r1,r1,56 ffc310ac: 4e 80 00 20 blr <== ALWAYS TAKEN rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); ffc310b0: 3d 20 00 00 lis r9,0 ffc310b4: 81 29 35 2c lwz r9,13612(r9) ffc310b8: 38 60 00 00 li r3,0 ffc310bc: 80 09 00 10 lwz r0,16(r9) ffc310c0: 81 09 00 04 lwz r8,4(r9) ffc310c4: 81 49 00 08 lwz r10,8(r9) ffc310c8: 81 69 00 0c lwz r11,12(r9) ffc310cc: 90 01 00 18 stw r0,24(r1) ffc310d0: 91 01 00 0c stw r8,12(r1) ffc310d4: 91 41 00 10 stw r10,16(r1) ffc310d8: 91 61 00 14 stw r11,20(r1) ffc310dc: 80 09 00 14 lwz r0,20(r9) if ( !loc.ops->evalformake_h ) { ffc310e0: 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 ); ffc310e4: 90 01 00 1c stw r0,28(r1) if ( !loc.ops->evalformake_h ) { ffc310e8: 80 09 00 04 lwz r0,4(r9) ffc310ec: 2f 80 00 00 cmpwi cr7,r0,0 ffc310f0: 40 9e ff 30 bne+ cr7,ffc31020 <== ALWAYS TAKEN if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc310f4: 48 01 d3 7d bl ffc4e470 <__errno> <== NOT EXECUTED ffc310f8: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc310fc: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc31100: 3b c0 ff ff li r30,-1 <== NOT EXECUTED result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; } ffc31104: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc31108: 80 01 00 3c lwz r0,60(r1) <== NOT EXECUTED ffc3110c: 83 a1 00 2c lwz r29,44(r1) <== NOT EXECUTED ffc31110: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc31114: 83 c1 00 30 lwz r30,48(r1) <== NOT EXECUTED ffc31118: 83 e1 00 34 lwz r31,52(r1) <== NOT EXECUTED ffc3111c: 38 21 00 38 addi r1,r1,56 <== NOT EXECUTED ffc31120: 4e 80 00 20 blr <== NOT EXECUTED result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); ffc31124: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc31128: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc3112c: 41 be ff c8 beq- cr7,ffc310f4 <== NOT EXECUTED ffc31130: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc31134: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc31138: 4e 80 04 21 bctrl <== NOT EXECUTED ffc3113c: 4b ff ff b8 b ffc310f4 <== NOT EXECUTED ffc078cc : { /* * Walk the one used initially by RTEMS. */ _fwalk(_global_impure_ptr, sync_wrapper); ffc078cc: 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) { ffc078d0: 94 21 ff f8 stwu r1,-8(r1) ffc078d4: 7c 08 02 a6 mflr r0 /* * Walk the one used initially by RTEMS. */ _fwalk(_global_impure_ptr, sync_wrapper); ffc078d8: 3c 80 ff c0 lis r4,-64 ffc078dc: 80 69 26 e8 lwz r3,9960(r9) ffc078e0: 38 84 79 08 addi r4,r4,30984 * We have to extern it here. */ extern struct _reent * const _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__; void sync(void) { ffc078e4: 90 01 00 0c stw r0,12(r1) /* * Walk the one used initially by RTEMS. */ _fwalk(_global_impure_ptr, sync_wrapper); ffc078e8: 48 01 04 45 bl ffc17d2c <_fwalk> <== ALWAYS TAKEN */ /* * Now walk all the per-thread reentrancy structures. */ rtems_iterate_over_all_threads(sync_per_thread); ffc078ec: 3c 60 ff c0 lis r3,-64 ffc078f0: 38 63 78 6c addi r3,r3,30828 ffc078f4: 48 00 4a 41 bl ffc0c334 <== ALWAYS TAKEN } ffc078f8: 80 01 00 0c lwz r0,12(r1) ffc078fc: 38 21 00 08 addi r1,r1,8 ffc07900: 7c 08 03 a6 mtlr r0 ffc07904: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0786c : fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) { ffc0786c: 94 21 ff f0 stwu r1,-16(r1) ffc07870: 7c 08 02 a6 mflr r0 ffc07874: 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; ffc07878: 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) { ffc0787c: 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 ) { ffc07880: 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) { ffc07884: 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 ) { ffc07888: 41 9e 00 2c beq- cr7,ffc078b4 <== NEVER TAKEN current_reent = _Thread_Executing->libc_reent; ffc0788c: 3f e0 00 00 lis r31,0 ffc07890: 81 3f 27 b4 lwz r9,10164(r31) _Thread_Executing->libc_reent = this_reent; _fwalk (t->libc_reent, sync_wrapper); ffc07894: 3c 80 ff c0 lis r4,-64 ffc07898: 38 84 79 08 addi r4,r4,30984 * 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; ffc0789c: 83 c9 01 40 lwz r30,320(r9) _Thread_Executing->libc_reent = this_reent; ffc078a0: 90 09 01 40 stw r0,320(r9) _fwalk (t->libc_reent, sync_wrapper); ffc078a4: 80 63 01 40 lwz r3,320(r3) ffc078a8: 48 01 04 85 bl ffc17d2c <_fwalk> <== ALWAYS TAKEN _Thread_Executing->libc_reent = current_reent; ffc078ac: 81 3f 27 b4 lwz r9,10164(r31) ffc078b0: 93 c9 01 40 stw r30,320(r9) } } ffc078b4: 80 01 00 14 lwz r0,20(r1) ffc078b8: 83 c1 00 08 lwz r30,8(r1) ffc078bc: 7c 08 03 a6 mtlr r0 ffc078c0: 83 e1 00 0c lwz r31,12(r1) ffc078c4: 38 21 00 10 addi r1,r1,16 ffc078c8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07908 : /* XXX check standards -- Linux version appears to be void */ void _fwalk(struct _reent *, void *); static void sync_wrapper(FILE *f) { ffc07908: 94 21 ff f0 stwu r1,-16(r1) ffc0790c: 7c 08 02 a6 mflr r0 ffc07910: 93 e1 00 0c stw r31,12(r1) ffc07914: 90 01 00 14 stw r0,20(r1) int fn = fileno(f); ffc07918: 48 00 f5 f1 bl ffc16f08 <== ALWAYS TAKEN ffc0791c: 7c 7f 1b 78 mr r31,r3 fsync(fn); ffc07920: 4b ff e5 f9 bl ffc05f18 <== ALWAYS TAKEN fdatasync(fn); ffc07924: 7f e3 fb 78 mr r3,r31 ffc07928: 4b ff e2 a1 bl ffc05bc8 <== ALWAYS TAKEN } ffc0792c: 80 01 00 14 lwz r0,20(r1) ffc07930: 83 e1 00 0c lwz r31,12(r1) ffc07934: 38 21 00 10 addi r1,r1,16 ffc07938: 7c 08 03 a6 mtlr r0 ffc0793c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc07ff8 : long sysconf( int name ) { if ( name == _SC_CLK_TCK ) ffc07ff8: 2f 83 00 02 cmpwi cr7,r3,2 */ long sysconf( int name ) { ffc07ffc: 7c 08 02 a6 mflr r0 <== ALWAYS TAKEN ffc08000: 94 21 ff f8 stwu r1,-8(r1) ffc08004: 90 01 00 0c stw r0,12(r1) ffc08008: 7c 60 1b 78 mr r0,r3 if ( name == _SC_CLK_TCK ) ffc0800c: 41 9e 00 34 beq- cr7,ffc08040 return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); if ( name == _SC_OPEN_MAX ) ffc08010: 2f 83 00 04 cmpwi cr7,r3,4 ffc08014: 41 9e 00 50 beq- cr7,ffc08064 return rtems_libio_number_iops; if ( name == _SC_GETPW_R_SIZE_MAX ) ffc08018: 2f 83 00 33 cmpwi cr7,r3,51 ffc0801c: 38 60 04 00 li r3,1024 ffc08020: 41 9e 00 10 beq- cr7,ffc08030 return 1024; if ( name == _SC_PAGESIZE ) ffc08024: 2f 80 00 08 cmpwi cr7,r0,8 ffc08028: 38 60 10 00 li r3,4096 ffc0802c: 40 9e 00 50 bne- cr7,ffc0807c if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); } ffc08030: 80 01 00 0c lwz r0,12(r1) ffc08034: 38 21 00 08 addi r1,r1,8 ffc08038: 7c 08 03 a6 mtlr r0 ffc0803c: 4e 80 00 20 blr <== ALWAYS TAKEN long sysconf( int name ) { if ( name == _SC_CLK_TCK ) return (TOD_MICROSECONDS_PER_SECOND / ffc08040: 3d 20 00 00 lis r9,0 ffc08044: 80 09 20 c8 lwz r0,8392(r9) ffc08048: 3c 60 00 0f lis r3,15 ffc0804c: 60 63 42 40 ori r3,r3,16960 ffc08050: 7c 63 03 96 divwu r3,r3,r0 if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); } ffc08054: 80 01 00 0c lwz r0,12(r1) ffc08058: 7c 08 03 a6 mtlr r0 ffc0805c: 38 21 00 08 addi r1,r1,8 ffc08060: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08064: 80 01 00 0c lwz r0,12(r1) if ( name == _SC_CLK_TCK ) return (TOD_MICROSECONDS_PER_SECOND / rtems_configuration_get_microseconds_per_tick()); if ( name == _SC_OPEN_MAX ) return rtems_libio_number_iops; ffc08068: 3d 20 00 00 lis r9,0 ffc0806c: 80 69 26 ac lwz r3,9900(r9) if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); } ffc08070: 38 21 00 08 addi r1,r1,8 ffc08074: 7c 08 03 a6 mtlr r0 ffc08078: 4e 80 00 20 blr <== ALWAYS TAKEN #if defined(__sparc__) if ( name == 515 ) /* Solaris _SC_STACK_PROT */ return 0; #endif rtems_set_errno_and_return_minus_one( EINVAL ); ffc0807c: 48 00 ba 99 bl ffc13b14 <__errno> <== ALWAYS TAKEN ffc08080: 38 00 00 16 li r0,22 ffc08084: 90 03 00 00 stw r0,0(r3) ffc08088: 38 60 ff ff li r3,-1 ffc0808c: 4b ff ff a4 b ffc08030 <== ALWAYS TAKEN ffc31140 : #include int tcdrain( int fd ) { ffc31140: 94 21 ff f8 stwu r1,-8(r1) ffc31144: 7c 08 02 a6 mflr r0 return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); ffc31148: 38 80 00 03 li r4,3 ffc3114c: 38 a0 00 00 li r5,0 #include int tcdrain( int fd ) { ffc31150: 90 01 00 0c stw r0,12(r1) return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); ffc31154: 4c c6 31 82 crclr 4*cr1+eq ffc31158: 4b ff ee ed bl ffc30044 <== ALWAYS TAKEN } ffc3115c: 80 01 00 0c lwz r0,12(r1) ffc31160: 38 21 00 08 addi r1,r1,8 ffc31164: 7c 08 03 a6 mtlr r0 ffc31168: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18634 : int tcgetattr( int fd, struct termios *tp ) { ffc18634: 94 21 ff f8 stwu r1,-8(r1) ffc18638: 7c 08 02 a6 mflr r0 ffc1863c: 7c 85 23 78 mr r5,r4 return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); ffc18640: 38 80 00 01 li r4,1 int tcgetattr( int fd, struct termios *tp ) { ffc18644: 90 01 00 0c stw r0,12(r1) return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp ); ffc18648: 4c c6 31 82 crclr 4*cr1+eq ffc1864c: 48 00 4a 65 bl ffc1d0b0 <== ALWAYS TAKEN } ffc18650: 80 01 00 0c lwz r0,12(r1) ffc18654: 38 21 00 08 addi r1,r1,8 ffc18658: 7c 08 03 a6 mtlr r0 ffc1865c: 4e 80 00 20 blr <== ALWAYS TAKEN ffc18660 : int fd, int opt, struct termios *tp ) { switch (opt) { ffc18660: 2c 04 00 00 cmpwi r4,0 int tcsetattr( int fd, int opt, struct termios *tp ) { ffc18664: 94 21 ff f0 stwu r1,-16(r1) ffc18668: 7c 08 02 a6 mflr r0 ffc1866c: 93 c1 00 08 stw r30,8(r1) ffc18670: 7c 7e 1b 78 mr r30,r3 ffc18674: 93 e1 00 0c stw r31,12(r1) ffc18678: 7c bf 2b 78 mr r31,r5 ffc1867c: 90 01 00 14 stw r0,20(r1) switch (opt) { ffc18680: 41 82 00 50 beq- ffc186d0 <== ALWAYS TAKEN ffc18684: 2f 84 00 01 cmpwi cr7,r4,1 <== NOT EXECUTED ffc18688: 41 9e 00 2c beq- cr7,ffc186b4 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1868c: 48 00 68 75 bl ffc1ef00 <__errno> <== NOT EXECUTED ffc18690: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc18694: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc18698: 38 60 ff ff li r3,-1 <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } ffc1869c: 80 01 00 14 lwz r0,20(r1) <== NOT EXECUTED ffc186a0: 83 c1 00 08 lwz r30,8(r1) <== NOT EXECUTED ffc186a4: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED ffc186a8: 83 e1 00 0c lwz r31,12(r1) <== NOT EXECUTED ffc186ac: 38 21 00 10 addi r1,r1,16 <== NOT EXECUTED ffc186b0: 4e 80 00 20 blr <== NOT EXECUTED switch (opt) { default: rtems_set_errno_and_return_minus_one( ENOTSUP ); case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) ffc186b4: 38 80 00 03 li r4,3 <== NOT EXECUTED ffc186b8: 38 a0 00 00 li r5,0 <== NOT EXECUTED ffc186bc: 4c c6 31 82 crclr 4*cr1+eq <== NOT EXECUTED ffc186c0: 48 00 49 f1 bl ffc1d0b0 <== NOT EXECUTED ffc186c4: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc186c8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc186cc: 41 9c 00 18 blt- cr7,ffc186e4 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); ffc186d0: 7f c3 f3 78 mr r3,r30 ffc186d4: 7f e5 fb 78 mr r5,r31 ffc186d8: 38 80 00 02 li r4,2 ffc186dc: 4c c6 31 82 crclr 4*cr1+eq ffc186e0: 48 00 49 d1 bl ffc1d0b0 <== ALWAYS TAKEN } } ffc186e4: 80 01 00 14 lwz r0,20(r1) ffc186e8: 83 c1 00 08 lwz r30,8(r1) ffc186ec: 7c 08 03 a6 mtlr r0 ffc186f0: 83 e1 00 0c lwz r31,12(r1) ffc186f4: 38 21 00 10 addi r1,r1,16 ffc186f8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc08518 : int timer_create( clockid_t clock_id, struct sigevent *evp, timer_t *timerid ) { ffc08518: 7d 80 00 26 mfcr r12 POSIX_Timer_Control *ptimer; if ( clock_id != CLOCK_REALTIME ) ffc0851c: 2f 83 00 01 cmpwi cr7,r3,1 int timer_create( clockid_t clock_id, struct sigevent *evp, timer_t *timerid ) { ffc08520: 94 21 ff e8 stwu r1,-24(r1) ffc08524: 7c 08 02 a6 mflr r0 ffc08528: 93 c1 00 10 stw r30,16(r1) ffc0852c: 7c be 2b 78 mr r30,r5 ffc08530: 93 e1 00 14 stw r31,20(r1) ffc08534: 7c 9f 23 78 mr r31,r4 ffc08538: 90 01 00 1c stw r0,28(r1) ffc0853c: 93 a1 00 0c stw r29,12(r1) ffc08540: 91 81 00 08 stw r12,8(r1) POSIX_Timer_Control *ptimer; if ( clock_id != CLOCK_REALTIME ) ffc08544: 40 9e 01 04 bne- cr7,ffc08648 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !timerid ) ffc08548: 2f 85 00 00 cmpwi cr7,r5,0 ffc0854c: 41 9e 00 fc beq- cr7,ffc08648 /* * The data of the structure evp are checked in order to verify if they * are coherent. */ if (evp != NULL) { ffc08550: 2e 04 00 00 cmpwi cr4,r4,0 ffc08554: 41 92 00 2c beq- cr4,ffc08580 /* The structure has data */ if ( ( evp->sigev_notify != SIGEV_NONE ) && ffc08558: 81 24 00 00 lwz r9,0(r4) ffc0855c: 38 09 ff ff addi r0,r9,-1 ffc08560: 2b 80 00 01 cmplwi cr7,r0,1 ffc08564: 41 9d 00 e4 bgt- cr7,ffc08648 <== 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 ) ffc08568: 81 24 00 04 lwz r9,4(r4) ffc0856c: 2f 89 00 00 cmpwi cr7,r9,0 ffc08570: 41 9e 00 d8 beq- cr7,ffc08648 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(evp->sigev_signo) ) ffc08574: 39 29 ff ff addi r9,r9,-1 ffc08578: 2b 89 00 1f cmplwi cr7,r9,31 ffc0857c: 41 9d 00 cc bgt- cr7,ffc08648 <== NEVER TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; ffc08580: 3d 20 00 00 lis r9,0 ffc08584: 81 69 27 dc lwz r11,10204(r9) ffc08588: 38 0b 00 01 addi r0,r11,1 ffc0858c: 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 ); ffc08590: 3f a0 00 00 lis r29,0 ffc08594: 3b bd 2f 78 addi r29,r29,12152 ffc08598: 7f a3 eb 78 mr r3,r29 ffc0859c: 48 00 28 1d bl ffc0adb8 <_Objects_Allocate> <== ALWAYS TAKEN /* * Allocate a timer */ ptimer = _POSIX_Timer_Allocate(); if ( !ptimer ) { ffc085a0: 2c 03 00 00 cmpwi r3,0 ffc085a4: 41 82 00 d8 beq- ffc0867c rtems_set_errno_and_return_minus_one( EAGAIN ); } /* The data of the created timer are stored to use them later */ ptimer->state = POSIX_TIMER_STATE_CREATE_NEW; ffc085a8: 38 00 00 02 li r0,2 ffc085ac: 98 03 00 3c stb r0,60(r3) ptimer->thread_id = _Thread_Executing->Object.id; ffc085b0: 3d 20 00 00 lis r9,0 ffc085b4: 81 29 28 1c lwz r9,10268(r9) ffc085b8: 80 09 00 08 lwz r0,8(r9) ffc085bc: 90 03 00 38 stw r0,56(r3) if ( evp != NULL ) { ffc085c0: 41 92 00 1c beq- cr4,ffc085dc ptimer->inf.sigev_notify = evp->sigev_notify; ptimer->inf.sigev_signo = evp->sigev_signo; ptimer->inf.sigev_value = evp->sigev_value; ffc085c4: 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; ffc085c8: 81 7f 00 00 lwz r11,0(r31) ptimer->inf.sigev_signo = evp->sigev_signo; ffc085cc: 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; ffc085d0: 91 63 00 40 stw r11,64(r3) ptimer->inf.sigev_signo = evp->sigev_signo; ffc085d4: 91 23 00 44 stw r9,68(r3) ptimer->inf.sigev_value = evp->sigev_value; ffc085d8: 90 03 00 48 stw r0,72(r3) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; ffc085dc: 81 23 00 08 lwz r9,8(r3) } ptimer->overrun = 0; ffc085e0: 38 00 00 00 li r0,0 ffc085e4: 81 5d 00 1c lwz r10,28(r29) ffc085e8: 55 2b 13 ba rlwinm r11,r9,2,14,29 ffc085ec: 90 03 00 68 stw r0,104(r3) ffc085f0: 7c 6a 59 2e stwx r3,r10,r11 ptimer->timer_data.it_value.tv_sec = 0; ffc085f4: 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; ffc085f8: 90 03 00 0c stw r0,12(r3) ptimer->timer_data.it_value.tv_nsec = 0; ffc085fc: 90 03 00 60 stw r0,96(r3) ptimer->timer_data.it_interval.tv_sec = 0; ffc08600: 90 03 00 54 stw r0,84(r3) ptimer->timer_data.it_interval.tv_nsec = 0; ffc08604: 90 03 00 58 stw r0,88(r3) void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; the_watchdog->id = id; ffc08608: 90 03 00 30 stw r0,48(r3) Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0860c: 90 03 00 18 stw r0,24(r3) the_watchdog->routine = routine; ffc08610: 90 03 00 2c stw r0,44(r3) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc08614: 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; ffc08618: 91 3e 00 00 stw r9,0(r30) _Thread_Enable_dispatch(); ffc0861c: 48 00 39 69 bl ffc0bf84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc08620: 38 60 00 00 li r3,0 return 0; } ffc08624: 80 01 00 1c lwz r0,28(r1) ffc08628: 81 81 00 08 lwz r12,8(r1) ffc0862c: 7c 08 03 a6 mtlr r0 ffc08630: 83 a1 00 0c lwz r29,12(r1) ffc08634: 83 c1 00 10 lwz r30,16(r1) ffc08638: 7d 80 81 20 mtcrf 8,r12 ffc0863c: 83 e1 00 14 lwz r31,20(r1) ffc08640: 38 21 00 18 addi r1,r1,24 ffc08644: 4e 80 00 20 blr <== ALWAYS TAKEN if ( !evp->sigev_signo ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(evp->sigev_signo) ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc08648: 48 00 bd 91 bl ffc143d8 <__errno> <== ALWAYS TAKEN ffc0864c: 38 00 00 16 li r0,22 ffc08650: 90 03 00 00 stw r0,0(r3) ffc08654: 38 60 ff ff li r3,-1 _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0); *timerid = ptimer->Object.id; _Thread_Enable_dispatch(); return 0; } ffc08658: 80 01 00 1c lwz r0,28(r1) ffc0865c: 81 81 00 08 lwz r12,8(r1) ffc08660: 7c 08 03 a6 mtlr r0 ffc08664: 83 a1 00 0c lwz r29,12(r1) ffc08668: 83 c1 00 10 lwz r30,16(r1) ffc0866c: 7d 80 81 20 mtcrf 8,r12 ffc08670: 83 e1 00 14 lwz r31,20(r1) ffc08674: 38 21 00 18 addi r1,r1,24 ffc08678: 4e 80 00 20 blr <== ALWAYS TAKEN /* * Allocate a timer */ ptimer = _POSIX_Timer_Allocate(); if ( !ptimer ) { _Thread_Enable_dispatch(); ffc0867c: 48 00 39 09 bl ffc0bf84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EAGAIN ); ffc08680: 48 00 bd 59 bl ffc143d8 <__errno> <== ALWAYS TAKEN ffc08684: 38 00 00 0b li r0,11 ffc08688: 90 03 00 00 stw r0,0(r3) ffc0868c: 38 60 ff ff li r3,-1 ffc08690: 4b ff ff 94 b ffc08624 <== ALWAYS TAKEN ffc08c10 : int timer_delete( timer_t timerid ) { ffc08c10: 94 21 ff e0 stwu r1,-32(r1) ffc08c14: 7c 08 02 a6 mflr r0 ffc08c18: 7c 64 1b 78 mr r4,r3 ffc08c1c: 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 *) ffc08c20: 3f e0 00 00 lis r31,0 ffc08c24: 3b ff 2f 18 addi r31,r31,12056 ffc08c28: 7f e3 fb 78 mr r3,r31 ffc08c2c: 90 01 00 24 stw r0,36(r1) ffc08c30: 38 a1 00 08 addi r5,r1,8 ffc08c34: 93 c1 00 18 stw r30,24(r1) ffc08c38: 48 00 2c 01 bl ffc0b838 <_Objects_Get> <== ALWAYS TAKEN ffc08c3c: 7c 7e 1b 78 mr r30,r3 */ POSIX_Timer_Control *ptimer; Objects_Locations location; ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { ffc08c40: 80 01 00 08 lwz r0,8(r1) ffc08c44: 2f 80 00 00 cmpwi cr7,r0,0 ffc08c48: 41 9e 00 2c beq- cr7,ffc08c74 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc08c4c: 48 00 c0 b1 bl ffc14cfc <__errno> <== ALWAYS TAKEN ffc08c50: 38 00 00 16 li r0,22 ffc08c54: 90 03 00 00 stw r0,0(r3) ffc08c58: 38 60 ff ff li r3,-1 } ffc08c5c: 80 01 00 24 lwz r0,36(r1) ffc08c60: 83 c1 00 18 lwz r30,24(r1) ffc08c64: 7c 08 03 a6 mtlr r0 ffc08c68: 83 e1 00 1c lwz r31,28(r1) ffc08c6c: 38 21 00 20 addi r1,r1,32 ffc08c70: 4e 80 00 20 blr <== ALWAYS TAKEN ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Timer_Information, &ptimer->Object ); ffc08c74: 7f c4 f3 78 mr r4,r30 ffc08c78: 7f e3 fb 78 mr r3,r31 ffc08c7c: 48 00 26 85 bl ffc0b300 <_Objects_Close> <== ALWAYS TAKEN ptimer->state = POSIX_TIMER_STATE_FREE; ffc08c80: 38 00 00 01 li r0,1 ffc08c84: 98 1e 00 3c stb r0,60(r30) (void) _Watchdog_Remove( &ptimer->Timer ); ffc08c88: 38 7e 00 10 addi r3,r30,16 ffc08c8c: 48 00 51 41 bl ffc0ddcc <_Watchdog_Remove> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _POSIX_Timer_Free ( POSIX_Timer_Control *the_timer ) { _Objects_Free( &_POSIX_Timer_Information, &the_timer->Object ); ffc08c90: 7f e3 fb 78 mr r3,r31 ffc08c94: 7f c4 f3 78 mr r4,r30 ffc08c98: 48 00 29 c1 bl ffc0b658 <_Objects_Free> <== ALWAYS TAKEN _POSIX_Timer_Free( ptimer ); _Thread_Enable_dispatch(); ffc08c9c: 48 00 37 69 bl ffc0c404 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc08ca0: 80 01 00 24 lwz r0,36(r1) case OBJECTS_LOCAL: _Objects_Close( &_POSIX_Timer_Information, &ptimer->Object ); ptimer->state = POSIX_TIMER_STATE_FREE; (void) _Watchdog_Remove( &ptimer->Timer ); _POSIX_Timer_Free( ptimer ); _Thread_Enable_dispatch(); ffc08ca4: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc08ca8: 83 c1 00 18 lwz r30,24(r1) ffc08cac: 7c 08 03 a6 mtlr r0 ffc08cb0: 83 e1 00 1c lwz r31,28(r1) ffc08cb4: 38 21 00 20 addi r1,r1,32 ffc08cb8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09e6c : * its execution, _POSIX_Timer_TSR will have to set this counter to 0. */ int timer_getoverrun( timer_t timerid ) { ffc09e6c: 94 21 ff e0 stwu r1,-32(r1) ffc09e70: 7c 08 02 a6 mflr r0 ffc09e74: 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 *) ffc09e78: 3c 60 00 00 lis r3,0 ffc09e7c: 90 01 00 24 stw r0,36(r1) ffc09e80: 38 63 2f b8 addi r3,r3,12216 ffc09e84: 38 a1 00 08 addi r5,r1,8 ffc09e88: 93 e1 00 1c stw r31,28(r1) ffc09e8c: 48 00 2b 5d bl ffc0c9e8 <_Objects_Get> <== ALWAYS TAKEN int overrun; POSIX_Timer_Control *ptimer; Objects_Locations location; ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { ffc09e90: 80 01 00 08 lwz r0,8(r1) ffc09e94: 2f 80 00 00 cmpwi cr7,r0,0 ffc09e98: 41 9e 00 2c beq- cr7,ffc09ec4 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc09e9c: 48 00 bb 89 bl ffc15a24 <__errno> <== ALWAYS TAKEN ffc09ea0: 38 00 00 16 li r0,22 ffc09ea4: 90 03 00 00 stw r0,0(r3) ffc09ea8: 3b e0 ff ff li r31,-1 } ffc09eac: 7f e3 fb 78 mr r3,r31 ffc09eb0: 80 01 00 24 lwz r0,36(r1) ffc09eb4: 83 e1 00 1c lwz r31,28(r1) ffc09eb8: 38 21 00 20 addi r1,r1,32 ffc09ebc: 7c 08 03 a6 mtlr r0 ffc09ec0: 4e 80 00 20 blr <== ALWAYS TAKEN ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { case OBJECTS_LOCAL: overrun = ptimer->overrun; ffc09ec4: 83 e3 00 68 lwz r31,104(r3) ptimer->overrun = 0; ffc09ec8: 90 03 00 68 stw r0,104(r3) _Thread_Enable_dispatch(); ffc09ecc: 48 00 36 e9 bl ffc0d5b4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc09ed0: 80 01 00 24 lwz r0,36(r1) ffc09ed4: 7f e3 fb 78 mr r3,r31 ffc09ed8: 83 e1 00 1c lwz r31,28(r1) ffc09edc: 7c 08 03 a6 mtlr r0 ffc09ee0: 38 21 00 20 addi r1,r1,32 ffc09ee4: 4e 80 00 20 blr <== ALWAYS TAKEN ffc09ee8 : int timer_gettime( timer_t timerid, struct itimerspec *value ) { ffc09ee8: 94 21 ff e0 stwu r1,-32(r1) ffc09eec: 7c 08 02 a6 mflr r0 ffc09ef0: 93 e1 00 1c stw r31,28(r1) POSIX_Timer_Control *ptimer; Objects_Locations location; struct timespec current_time; Watchdog_Interval left; if ( !value ) ffc09ef4: 7c 9f 23 79 mr. r31,r4 int timer_gettime( timer_t timerid, struct itimerspec *value ) { ffc09ef8: 93 c1 00 18 stw r30,24(r1) ffc09efc: 7c 7e 1b 78 mr r30,r3 ffc09f00: 90 01 00 24 stw r0,36(r1) POSIX_Timer_Control *ptimer; Objects_Locations location; struct timespec current_time; Watchdog_Interval left; if ( !value ) ffc09f04: 41 82 00 80 beq- ffc09f84 rtems_set_errno_and_return_minus_one( EINVAL ); /* Reads the current time */ _TOD_Get( ¤t_time ); ffc09f08: 38 61 00 0c addi r3,r1,12 ffc09f0c: 48 00 1e c5 bl ffc0bdd0 <_TOD_Get> <== ALWAYS TAKEN ffc09f10: 3c 60 00 00 lis r3,0 ffc09f14: 7f c4 f3 78 mr r4,r30 ffc09f18: 38 63 2f b8 addi r3,r3,12216 ffc09f1c: 38 a1 00 08 addi r5,r1,8 ffc09f20: 48 00 2a c9 bl ffc0c9e8 <_Objects_Get> <== ALWAYS TAKEN ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { ffc09f24: 80 01 00 08 lwz r0,8(r1) ffc09f28: 7c 7e 1b 78 mr r30,r3 ffc09f2c: 2f 80 00 00 cmpwi cr7,r0,0 ffc09f30: 40 9e 00 54 bne- cr7,ffc09f84 left = (ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */ _Watchdog_Ticks_since_boot; /* now */ _Timespec_From_ticks( left, &value->it_value ); ffc09f34: 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 */ ffc09f38: 3d 60 00 00 lis r11,0 _Watchdog_Ticks_since_boot; /* now */ _Timespec_From_ticks( left, &value->it_value ); ffc09f3c: 80 63 00 1c lwz r3,28(r3) ffc09f40: 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 */ ffc09f44: 80 0b 28 50 lwz r0,10320(r11) _Watchdog_Ticks_since_boot; /* now */ _Timespec_From_ticks( left, &value->it_value ); ffc09f48: 7c 63 4a 14 add r3,r3,r9 ffc09f4c: 7c 60 18 50 subf r3,r0,r3 ffc09f50: 48 00 48 5d bl ffc0e7ac <_Timespec_From_ticks> <== ALWAYS TAKEN value->it_interval = ptimer->timer_data.it_interval; ffc09f54: 81 3e 00 54 lwz r9,84(r30) ffc09f58: 81 5e 00 58 lwz r10,88(r30) ffc09f5c: 91 3f 00 00 stw r9,0(r31) ffc09f60: 91 5f 00 04 stw r10,4(r31) _Thread_Enable_dispatch(); ffc09f64: 48 00 36 51 bl ffc0d5b4 <_Thread_Enable_dispatch> <== ALWAYS TAKEN ffc09f68: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc09f6c: 80 01 00 24 lwz r0,36(r1) ffc09f70: 83 c1 00 18 lwz r30,24(r1) ffc09f74: 7c 08 03 a6 mtlr r0 ffc09f78: 83 e1 00 1c lwz r31,28(r1) ffc09f7c: 38 21 00 20 addi r1,r1,32 ffc09f80: 4e 80 00 20 blr <== ALWAYS TAKEN #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc09f84: 48 00 ba a1 bl ffc15a24 <__errno> <== ALWAYS TAKEN ffc09f88: 38 00 00 16 li r0,22 ffc09f8c: 90 03 00 00 stw r0,0(r3) ffc09f90: 38 60 ff ff li r3,-1 ffc09f94: 4b ff ff d8 b ffc09f6c <== ALWAYS TAKEN ffc08694 : timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) { ffc08694: 94 21 ff c0 stwu r1,-64(r1) ffc08698: 7c 08 02 a6 mflr r0 ffc0869c: 93 a1 00 34 stw r29,52(r1) Objects_Locations location; bool activated; uint32_t initial_period; struct itimerspec normalize; if ( !value ) ffc086a0: 7c bd 2b 79 mr. r29,r5 timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) { ffc086a4: 93 c1 00 38 stw r30,56(r1) ffc086a8: 7c de 33 78 mr r30,r6 ffc086ac: 93 e1 00 3c stw r31,60(r1) ffc086b0: 7c 7f 1b 78 mr r31,r3 ffc086b4: 90 01 00 44 stw r0,68(r1) ffc086b8: 93 61 00 2c stw r27,44(r1) ffc086bc: 93 81 00 30 stw r28,48(r1) Objects_Locations location; bool activated; uint32_t initial_period; struct itimerspec normalize; if ( !value ) ffc086c0: 41 82 01 b4 beq- ffc08874 <== 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 ) || ffc086c4: 80 1d 00 0c lwz r0,12(r29) ffc086c8: 3d 60 3b 9a lis r11,15258 ffc086cc: 61 6b c9 ff ori r11,r11,51711 ffc086d0: 7f 80 58 40 cmplw cr7,r0,r11 ffc086d4: 41 9d 01 a0 bgt- cr7,ffc08874 ( value->it_value.tv_nsec < 0 ) || ( value->it_interval.tv_nsec >= TOD_NANOSECONDS_PER_SECOND) || ffc086d8: 81 3d 00 04 lwz r9,4(r29) ffc086dc: 7f 89 58 40 cmplw cr7,r9,r11 ffc086e0: 41 9d 01 94 bgt- cr7,ffc08874 <== 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 ) { ffc086e4: 2f 84 00 04 cmpwi cr7,r4,4 ffc086e8: 41 9e 01 1c beq- cr7,ffc08804 ffc086ec: 2f 84 00 00 cmpwi cr7,r4,0 ffc086f0: 40 9e 01 84 bne- cr7,ffc08874 rtems_set_errno_and_return_minus_one( EINVAL ); } normalize = *value; ffc086f4: 81 5d 00 00 lwz r10,0(r29) RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get ( timer_t id, Objects_Locations *location ) { return (POSIX_Timer_Control *) ffc086f8: 3c 60 00 00 lis r3,0 <== ALWAYS TAKEN ffc086fc: 81 7d 00 08 lwz r11,8(r29) ffc08700: 7f e4 fb 78 mr r4,r31 ffc08704: 38 63 2f 78 addi r3,r3,12152 ffc08708: 90 01 00 20 stw r0,32(r1) ffc0870c: 38 a1 00 08 addi r5,r1,8 ffc08710: 91 41 00 14 stw r10,20(r1) ffc08714: 91 21 00 18 stw r9,24(r1) ffc08718: 91 61 00 1c stw r11,28(r1) ffc0871c: 48 00 2c 9d bl ffc0b3b8 <_Objects_Get> <== ALWAYS TAKEN ffc08720: 7c 7f 1b 78 mr r31,r3 * something with the structure of times of the timer: to stop, start * or start it again */ ptimer = _POSIX_Timer_Get( timerid, &location ); switch ( location ) { ffc08724: 80 01 00 08 lwz r0,8(r1) ffc08728: 2f 80 00 00 cmpwi cr7,r0,0 ffc0872c: 40 9e 01 48 bne- cr7,ffc08874 <== NEVER TAKEN 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 ) { ffc08730: 80 01 00 1c lwz r0,28(r1) ffc08734: 2f 80 00 00 cmpwi cr7,r0,0 ffc08738: 40 9e 00 10 bne- cr7,ffc08748 ffc0873c: 80 01 00 20 lwz r0,32(r1) ffc08740: 2f 80 00 00 cmpwi cr7,r0,0 ffc08744: 41 9e 01 64 beq- cr7,ffc088a8 _Thread_Enable_dispatch(); return 0; } /* Convert from seconds and nanoseconds to ticks */ ptimer->ticks = _Timespec_To_ticks( &value->it_interval ); ffc08748: 7f a3 eb 78 mr r3,r29 ffc0874c: 48 00 4a c1 bl ffc0d20c <_Timespec_To_ticks> <== ALWAYS TAKEN ffc08750: 90 7f 00 64 stw r3,100(r31) initial_period = _Timespec_To_ticks( &normalize.it_value ); ffc08754: 38 61 00 1c addi r3,r1,28 ffc08758: 48 00 4a b5 bl ffc0d20c <_Timespec_To_ticks> <== ALWAYS TAKEN activated = _POSIX_Timer_Insert_helper( ffc0875c: 80 bf 00 08 lwz r5,8(r31) ffc08760: 3c c0 ff c1 lis r6,-63 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 ); ffc08764: 7c 64 1b 78 mr r4,r3 activated = _POSIX_Timer_Insert_helper( ffc08768: 38 c6 89 2c addi r6,r6,-30420 ffc0876c: 38 7f 00 10 addi r3,r31,16 ffc08770: 7f e7 fb 78 mr r7,r31 ffc08774: 48 00 7a 19 bl ffc1018c <_POSIX_Timer_Insert_helper> <== ALWAYS TAKEN initial_period, ptimer->Object.id, _POSIX_Timer_TSR, ptimer ); if ( !activated ) { ffc08778: 2f 83 00 00 cmpwi cr7,r3,0 ffc0877c: 41 9e 00 5c beq- cr7,ffc087d8 /* * The timer has been started and is running. So we return the * old ones in "ovalue" */ if ( ovalue ) ffc08780: 2f 9e 00 00 cmpwi cr7,r30,0 ffc08784: 41 9e 00 24 beq- cr7,ffc087a8 *ovalue = ptimer->timer_data; ffc08788: 81 5f 00 54 lwz r10,84(r31) ffc0878c: 81 3f 00 58 lwz r9,88(r31) ffc08790: 80 1f 00 5c lwz r0,92(r31) ffc08794: 81 7f 00 60 lwz r11,96(r31) ffc08798: 91 5e 00 00 stw r10,0(r30) ffc0879c: 91 7e 00 0c stw r11,12(r30) ffc087a0: 91 3e 00 04 stw r9,4(r30) ffc087a4: 90 1e 00 08 stw r0,8(r30) ptimer->timer_data = normalize; ffc087a8: 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 ); ffc087ac: 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; ffc087b0: 81 61 00 18 lwz r11,24(r1) ffc087b4: 81 21 00 1c lwz r9,28(r1) ffc087b8: 81 41 00 14 lwz r10,20(r1) ffc087bc: 90 1f 00 60 stw r0,96(r31) /* Indicate that the time is running */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; ffc087c0: 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; ffc087c4: 91 5f 00 54 stw r10,84(r31) ffc087c8: 91 7f 00 58 stw r11,88(r31) ffc087cc: 91 3f 00 5c stw r9,92(r31) /* Indicate that the time is running */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; ffc087d0: 98 1f 00 3c stb r0,60(r31) _TOD_Get( &ptimer->time ); ffc087d4: 48 00 20 0d bl ffc0a7e0 <_TOD_Get> <== ALWAYS TAKEN _Thread_Enable_dispatch(); ffc087d8: 48 00 37 ad bl ffc0bf84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc087dc: 80 01 00 44 lwz r0,68(r1) ptimer->timer_data = normalize; /* Indicate that the time is running */ ptimer->state = POSIX_TIMER_STATE_CREATE_RUN; _TOD_Get( &ptimer->time ); _Thread_Enable_dispatch(); ffc087e0: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc087e4: 83 61 00 2c lwz r27,44(r1) ffc087e8: 7c 08 03 a6 mtlr r0 ffc087ec: 83 81 00 30 lwz r28,48(r1) ffc087f0: 83 a1 00 34 lwz r29,52(r1) ffc087f4: 83 c1 00 38 lwz r30,56(r1) ffc087f8: 83 e1 00 3c lwz r31,60(r1) ffc087fc: 38 21 00 40 addi r1,r1,64 ffc08800: 4e 80 00 20 blr <== ALWAYS TAKEN if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) { rtems_set_errno_and_return_minus_one( EINVAL ); } normalize = *value; ffc08804: 81 5d 00 00 lwz r10,0(r29) /* Convert absolute to relative time */ if (flags == TIMER_ABSTIME) { struct timespec now; _TOD_Get( &now ); ffc08808: 3b 81 00 0c addi r28,r1,12 if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) { rtems_set_errno_and_return_minus_one( EINVAL ); } normalize = *value; ffc0880c: 81 7d 00 08 lwz r11,8(r29) /* Convert absolute to relative time */ if (flags == TIMER_ABSTIME) { struct timespec now; _TOD_Get( &now ); ffc08810: 7f 83 e3 78 mr r3,r28 /* Check for seconds in the past */ if ( _Timespec_Greater_than( &now, &normalize.it_value ) ) ffc08814: 3b 61 00 1c addi r27,r1,28 if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) { rtems_set_errno_and_return_minus_one( EINVAL ); } normalize = *value; ffc08818: 91 41 00 14 stw r10,20(r1) ffc0881c: 91 21 00 18 stw r9,24(r1) ffc08820: 91 61 00 1c stw r11,28(r1) ffc08824: 90 01 00 20 stw r0,32(r1) /* Convert absolute to relative time */ if (flags == TIMER_ABSTIME) { struct timespec now; _TOD_Get( &now ); ffc08828: 48 00 1f b9 bl ffc0a7e0 <_TOD_Get> <== ALWAYS TAKEN /* Check for seconds in the past */ if ( _Timespec_Greater_than( &now, &normalize.it_value ) ) ffc0882c: 7f 83 e3 78 mr r3,r28 ffc08830: 7f 64 db 78 mr r4,r27 ffc08834: 48 00 49 49 bl ffc0d17c <_Timespec_Greater_than> <== ALWAYS TAKEN ffc08838: 2f 83 00 00 cmpwi cr7,r3,0 ffc0883c: 40 9e 00 38 bne- cr7,ffc08874 rtems_set_errno_and_return_minus_one( EINVAL ); _Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value ); ffc08840: 7f 64 db 78 mr r4,r27 ffc08844: 7f 83 e3 78 mr r3,r28 ffc08848: 7f 65 db 78 mr r5,r27 ffc0884c: 48 00 49 6d bl ffc0d1b8 <_Timespec_Subtract> <== ALWAYS TAKEN ffc08850: 3c 60 00 00 lis r3,0 ffc08854: 7f e4 fb 78 mr r4,r31 ffc08858: 38 63 2f 78 addi r3,r3,12152 ffc0885c: 38 a1 00 08 addi r5,r1,8 ffc08860: 48 00 2b 59 bl ffc0b3b8 <_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 ) { ffc08864: 80 01 00 08 lwz r0,8(r1) ffc08868: 7c 7f 1b 78 mr r31,r3 ffc0886c: 2f 80 00 00 cmpwi cr7,r0,0 ffc08870: 41 be fe c0 beq- cr7,ffc08730 #endif case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); ffc08874: 48 00 bb 65 bl ffc143d8 <__errno> <== ALWAYS TAKEN ffc08878: 38 00 00 16 li r0,22 ffc0887c: 90 03 00 00 stw r0,0(r3) ffc08880: 38 60 ff ff li r3,-1 } ffc08884: 80 01 00 44 lwz r0,68(r1) ffc08888: 83 61 00 2c lwz r27,44(r1) ffc0888c: 7c 08 03 a6 mtlr r0 ffc08890: 83 81 00 30 lwz r28,48(r1) ffc08894: 83 a1 00 34 lwz r29,52(r1) ffc08898: 83 c1 00 38 lwz r30,56(r1) ffc0889c: 83 e1 00 3c lwz r31,60(r1) ffc088a0: 38 21 00 40 addi r1,r1,64 ffc088a4: 4e 80 00 20 blr <== ALWAYS TAKEN 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 ) { /* Stop the timer */ (void) _Watchdog_Remove( &ptimer->Timer ); ffc088a8: 38 63 00 10 addi r3,r3,16 ffc088ac: 48 00 50 55 bl ffc0d900 <_Watchdog_Remove> <== ALWAYS TAKEN /* The old data of the timer are returned */ if ( ovalue ) ffc088b0: 2f 9e 00 00 cmpwi cr7,r30,0 ffc088b4: 41 9e 00 24 beq- cr7,ffc088d8 *ovalue = ptimer->timer_data; ffc088b8: 81 5f 00 54 lwz r10,84(r31) ffc088bc: 81 3f 00 58 lwz r9,88(r31) ffc088c0: 80 1f 00 5c lwz r0,92(r31) ffc088c4: 81 7f 00 60 lwz r11,96(r31) ffc088c8: 91 5e 00 00 stw r10,0(r30) ffc088cc: 91 7e 00 0c stw r11,12(r30) ffc088d0: 91 3e 00 04 stw r9,4(r30) ffc088d4: 90 1e 00 08 stw r0,8(r30) /* The new data are set */ ptimer->timer_data = normalize; ffc088d8: 80 01 00 20 lwz r0,32(r1) /* Indicates that the timer is created and stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; ffc088dc: 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; ffc088e0: 81 41 00 14 lwz r10,20(r1) ffc088e4: 81 61 00 18 lwz r11,24(r1) ffc088e8: 81 21 00 1c lwz r9,28(r1) ffc088ec: 90 1f 00 60 stw r0,96(r31) /* Indicates that the timer is created and stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; ffc088f0: 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; ffc088f4: 91 5f 00 54 stw r10,84(r31) ffc088f8: 91 7f 00 58 stw r11,88(r31) ffc088fc: 91 3f 00 5c stw r9,92(r31) /* Indicates that the timer is created and stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; /* Returns with success */ _Thread_Enable_dispatch(); ffc08900: 48 00 36 85 bl ffc0bf84 <_Thread_Enable_dispatch> <== ALWAYS TAKEN case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc08904: 80 01 00 44 lwz r0,68(r1) /* The new data are set */ ptimer->timer_data = normalize; /* Indicates that the timer is created and stopped */ ptimer->state = POSIX_TIMER_STATE_CREATE_STOP; /* Returns with success */ _Thread_Enable_dispatch(); ffc08908: 38 60 00 00 li r3,0 case OBJECTS_ERROR: break; } rtems_set_errno_and_return_minus_one( EINVAL ); } ffc0890c: 83 61 00 2c lwz r27,44(r1) ffc08910: 7c 08 03 a6 mtlr r0 ffc08914: 83 81 00 30 lwz r28,48(r1) ffc08918: 83 a1 00 34 lwz r29,52(r1) ffc0891c: 83 c1 00 38 lwz r30,56(r1) ffc08920: 83 e1 00 3c lwz r31,60(r1) ffc08924: 38 21 00 40 addi r1,r1,64 ffc08928: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0b674 : int truncate( const char *path, off_t length ) { ffc0b674: 94 21 ff e8 stwu r1,-24(r1) ffc0b678: 7c 08 02 a6 mflr r0 int status; int fd; fd = open( path, O_WRONLY ); ffc0b67c: 38 80 00 01 li r4,1 int truncate( const char *path, off_t length ) { ffc0b680: 93 81 00 08 stw r28,8(r1) int status; int fd; fd = open( path, O_WRONLY ); if ( fd == -1 ) ffc0b684: 3b 80 ff ff li r28,-1 int truncate( const char *path, off_t length ) { ffc0b688: 93 a1 00 0c stw r29,12(r1) ffc0b68c: 7c bd 2b 78 mr r29,r5 ffc0b690: 93 c1 00 10 stw r30,16(r1) ffc0b694: 7c de 33 78 mr r30,r6 ffc0b698: 93 e1 00 14 stw r31,20(r1) ffc0b69c: 90 01 00 1c stw r0,28(r1) int status; int fd; fd = open( path, O_WRONLY ); ffc0b6a0: 4c c6 31 82 crclr 4*cr1+eq ffc0b6a4: 4b ff d3 e9 bl ffc08a8c <== ALWAYS TAKEN if ( fd == -1 ) ffc0b6a8: 2f 83 ff ff cmpwi cr7,r3,-1 ) { int status; int fd; fd = open( path, O_WRONLY ); ffc0b6ac: 7c 7f 1b 78 mr r31,r3 if ( fd == -1 ) ffc0b6b0: 41 9e 00 1c beq- cr7,ffc0b6cc return -1; status = ftruncate( fd, length ); ffc0b6b4: 7f a5 eb 78 mr r5,r29 ffc0b6b8: 7f c6 f3 78 mr r6,r30 ffc0b6bc: 48 00 7e 39 bl ffc134f4 <== ALWAYS TAKEN ffc0b6c0: 7c 7c 1b 78 mr r28,r3 (void) close( fd ); ffc0b6c4: 7f e3 fb 78 mr r3,r31 ffc0b6c8: 4b ff bb fd bl ffc072c4 <== ALWAYS TAKEN return status; } ffc0b6cc: 80 01 00 1c lwz r0,28(r1) ffc0b6d0: 7f 83 e3 78 mr r3,r28 ffc0b6d4: 83 a1 00 0c lwz r29,12(r1) ffc0b6d8: 7c 08 03 a6 mtlr r0 ffc0b6dc: 83 81 00 08 lwz r28,8(r1) ffc0b6e0: 83 c1 00 10 lwz r30,16(r1) ffc0b6e4: 83 e1 00 14 lwz r31,20(r1) ffc0b6e8: 38 21 00 18 addi r1,r1,24 ffc0b6ec: 4e 80 00 20 blr <== ALWAYS TAKEN ffc0ef14 : useconds_t ualarm( useconds_t useconds, useconds_t interval ) { ffc0ef14: 94 21 ff d8 stwu r1,-40(r1) ffc0ef18: 7c 08 02 a6 mflr r0 ffc0ef1c: 93 e1 00 24 stw r31,36(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc0ef20: 3f e0 00 00 lis r31,0 ffc0ef24: 3b ff 34 bc addi r31,r31,13500 useconds_t ualarm( useconds_t useconds, useconds_t interval ) { ffc0ef28: 90 01 00 2c stw r0,44(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc0ef2c: 80 1f 00 1c lwz r0,28(r31) useconds_t ualarm( useconds_t useconds, useconds_t interval ) { ffc0ef30: 93 c1 00 20 stw r30,32(r1) ffc0ef34: 7c 7e 1b 78 mr r30,r3 /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc0ef38: 2f 80 00 00 cmpwi cr7,r0,0 useconds_t ualarm( useconds_t useconds, useconds_t interval ) { ffc0ef3c: 93 81 00 18 stw r28,24(r1) ffc0ef40: 93 a1 00 1c stw r29,28(r1) /* * Initialize the timer used to implement alarm(). */ if ( !the_timer->routine ) { ffc0ef44: 41 9e 00 ac beq- cr7,ffc0eff0 _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL ); } else { Watchdog_States state; state = _Watchdog_Remove( the_timer ); ffc0ef48: 7f e3 fb 78 mr r3,r31 ffc0ef4c: 4b ff d9 7d bl ffc0c8c8 <_Watchdog_Remove> <== ALWAYS TAKEN if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) { ffc0ef50: 3b a0 00 00 li r29,0 ffc0ef54: 38 63 ff fe addi r3,r3,-2 ffc0ef58: 2b 83 00 01 cmplwi cr7,r3,1 ffc0ef5c: 40 9d 00 b4 ble- cr7,ffc0f010 <== ALWAYS TAKEN /* * 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 ) { ffc0ef60: 2f 9e 00 00 cmpwi cr7,r30,0 ffc0ef64: 41 be 00 68 beq+ cr7,ffc0efcc Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; ffc0ef68: 3c 00 43 1b lis r0,17179 ffc0ef6c: 60 00 de 83 ori r0,r0,56963 ffc0ef70: 7c 1e 00 16 mulhwu r0,r30,r0 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ticks = _Timespec_To_ticks( &tp ); ffc0ef74: 3b 81 00 08 addi r28,r1,8 * 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; ffc0ef78: 54 00 74 be rlwinm r0,r0,14,18,31 tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ffc0ef7c: 54 0b 40 2e rlwinm r11,r0,8,0,23 * 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; ffc0ef80: 90 01 00 08 stw r0,8(r1) tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ffc0ef84: 54 09 18 38 rlwinm r9,r0,3,0,28 ffc0ef88: 7d 29 58 50 subf r9,r9,r11 ffc0ef8c: 55 2b 30 32 rlwinm r11,r9,6,0,25 ffc0ef90: 7d 29 58 50 subf r9,r9,r11 ffc0ef94: 7d 29 02 14 add r9,r9,r0 ffc0ef98: 55 29 30 32 rlwinm r9,r9,6,0,25 ffc0ef9c: 7f c9 f0 50 subf r30,r9,r30 ffc0efa0: 1f de 03 e8 mulli r30,r30,1000 ticks = _Timespec_To_ticks( &tp ); ffc0efa4: 7f 83 e3 78 mr r3,r28 */ if ( useconds ) { Watchdog_Interval ticks; tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND; tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000; ffc0efa8: 93 c1 00 0c stw r30,12(r1) ticks = _Timespec_To_ticks( &tp ); ffc0efac: 48 00 13 95 bl ffc10340 <_Timespec_To_ticks> <== ALWAYS TAKEN if ( ticks == 0 ) ticks = 1; _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) ); ffc0efb0: 7f 83 e3 78 mr r3,r28 ffc0efb4: 48 00 13 8d bl ffc10340 <_Timespec_To_ticks> <== ALWAYS TAKEN ffc0efb8: 7f e4 fb 78 mr r4,r31 Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; ffc0efbc: 90 7f 00 0c stw r3,12(r31) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); ffc0efc0: 3c 60 00 00 lis r3,0 ffc0efc4: 38 63 2d 48 addi r3,r3,11592 ffc0efc8: 4b ff d7 39 bl ffc0c700 <_Watchdog_Insert> <== ALWAYS TAKEN } return remaining; } ffc0efcc: 80 01 00 2c lwz r0,44(r1) ffc0efd0: 7f a3 eb 78 mr r3,r29 ffc0efd4: 83 81 00 18 lwz r28,24(r1) ffc0efd8: 7c 08 03 a6 mtlr r0 ffc0efdc: 83 a1 00 1c lwz r29,28(r1) ffc0efe0: 83 c1 00 20 lwz r30,32(r1) ffc0efe4: 83 e1 00 24 lwz r31,36(r1) ffc0efe8: 38 21 00 28 addi r1,r1,40 ffc0efec: 4e 80 00 20 blr <== ALWAYS TAKEN Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0eff0: 3d 20 ff c1 lis r9,-63 the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0eff4: 90 1f 00 24 stw r0,36(r31) Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; the_watchdog->routine = routine; ffc0eff8: 39 29 f0 70 addi r9,r9,-3984 ffc0effc: 91 3f 00 1c stw r9,28(r31) the_watchdog->id = id; the_watchdog->user_data = user_data; ffc0f000: 3b a0 00 00 li r29,0 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; ffc0f004: 90 1f 00 08 stw r0,8(r31) the_watchdog->routine = routine; the_watchdog->id = id; ffc0f008: 90 1f 00 20 stw r0,32(r31) ffc0f00c: 4b ff ff 54 b ffc0ef60 <== ALWAYS 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); ffc0f010: 81 3f 00 0c lwz r9,12(r31) /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); ffc0f014: 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); ffc0f018: 80 7f 00 14 lwz r3,20(r31) /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; remaining += tp.tv_nsec / 1000; ffc0f01c: 3f a0 10 62 lis r29,4194 ticks = the_timer->initial; ticks -= (the_timer->stop_time - the_timer->start_time); /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); ffc0f020: 80 1f 00 18 lwz r0,24(r31) remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; remaining += tp.tv_nsec / 1000; ffc0f024: 63 bd 4d d3 ori r29,r29,19923 * 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); ffc0f028: 7c 63 4a 14 add r3,r3,r9 /* remaining is now in ticks */ _Timespec_From_ticks( ticks, &tp ); ffc0f02c: 7c 60 18 50 subf r3,r0,r3 ffc0f030: 48 00 12 c5 bl ffc102f4 <_Timespec_From_ticks> <== ALWAYS TAKEN remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND; ffc0f034: 80 01 00 08 lwz r0,8(r1) remaining += tp.tv_nsec / 1000; ffc0f038: 81 21 00 0c lwz r9,12(r1) 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; ffc0f03c: 54 0a 40 2e rlwinm r10,r0,8,0,23 ffc0f040: 54 0b 18 38 rlwinm r11,r0,3,0,28 ffc0f044: 7d 6b 50 50 subf r11,r11,r10 remaining += tp.tv_nsec / 1000; ffc0f048: 7f a9 e8 96 mulhw r29,r9,r29 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; ffc0f04c: 55 6a 30 32 rlwinm r10,r11,6,0,25 ffc0f050: 7d 6b 50 50 subf r11,r11,r10 ffc0f054: 7c 0b 02 14 add r0,r11,r0 remaining += tp.tv_nsec / 1000; ffc0f058: 7f bd 36 70 srawi r29,r29,6 ffc0f05c: 7d 29 fe 70 srawi r9,r9,31 ffc0f060: 7f a9 e8 50 subf r29,r9,r29 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; ffc0f064: 54 00 30 32 rlwinm r0,r0,6,0,25 remaining += tp.tv_nsec / 1000; ffc0f068: 7f bd 02 14 add r29,r29,r0 ffc0f06c: 4b ff fe f4 b ffc0ef60 <== ALWAYS TAKEN ffc31234 : mode_t cmask ) { mode_t old_mask; old_mask = rtems_filesystem_umask; ffc31234: 3d 20 00 00 lis r9,0 ffc31238: 81 29 35 2c lwz r9,13612(r9) ffc3123c: 80 09 00 2c lwz r0,44(r9) rtems_filesystem_umask = cmask; ffc31240: 90 69 00 2c stw r3,44(r9) return old_mask; } ffc31244: 7c 03 03 78 mr r3,r0 ffc31248: 4e 80 00 20 blr <== ALWAYS TAKEN ffc083d0 : */ int uname( struct utsname *name ) { ffc083d0: 94 21 ff f0 stwu r1,-16(r1) ffc083d4: 7c 08 02 a6 mflr r0 ffc083d8: 93 e1 00 0c stw r31,12(r1) release = 5.3 version = Generic_101318-12 machine = sun4m */ if ( !name ) ffc083dc: 7c 7f 1b 79 mr. r31,r3 */ int uname( struct utsname *name ) { ffc083e0: 90 01 00 14 stw r0,20(r1) release = 5.3 version = Generic_101318-12 machine = sun4m */ if ( !name ) ffc083e4: 41 82 00 9c beq- ffc08480 rtems_set_errno_and_return_minus_one( EFAULT ); strcpy( name->sysname, "RTEMS" ); ffc083e8: 3d 20 ff c2 lis r9,-62 ffc083ec: 39 69 0e fc addi r11,r9,3836 ffc083f0: 81 29 0e fc lwz r9,3836(r9) ffc083f4: a0 0b 00 04 lhz r0,4(r11) sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node ); ffc083f8: 3c 80 ff c2 lis r4,-62 */ if ( !name ) rtems_set_errno_and_return_minus_one( EFAULT ); strcpy( name->sysname, "RTEMS" ); ffc083fc: 91 3f 00 00 stw r9,0(r31) sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node ); ffc08400: 38 84 0f 04 addi r4,r4,3844 ffc08404: 38 a0 00 01 li r5,1 */ if ( !name ) rtems_set_errno_and_return_minus_one( EFAULT ); strcpy( name->sysname, "RTEMS" ); ffc08408: b0 1f 00 04 sth r0,4(r31) sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node ); ffc0840c: 38 7f 00 20 addi r3,r31,32 ffc08410: 4c c6 31 82 crclr 4*cr1+eq ffc08414: 48 00 d0 6d bl ffc15480 <== ALWAYS TAKEN strcpy( name->release, RTEMS_VERSION ); ffc08418: 3d 60 ff c2 lis r11,-62 ffc0841c: 39 2b 0f 0c addi r9,r11,3852 ffc08420: 81 4b 0f 0c lwz r10,3852(r11) ffc08424: 80 09 00 04 lwz r0,4(r9) strcpy( name->version, "" ); sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME ); ffc08428: 3c 80 ff c2 lis r4,-62 strcpy( name->sysname, "RTEMS" ); sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node ); strcpy( name->release, RTEMS_VERSION ); ffc0842c: 89 69 00 08 lbz r11,8(r9) ffc08430: 39 3f 00 40 addi r9,r31,64 ffc08434: 91 5f 00 40 stw r10,64(r31) strcpy( name->version, "" ); sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME ); ffc08438: 3c a0 ff c2 lis r5,-62 ffc0843c: 3c c0 ff c2 lis r6,-62 strcpy( name->sysname, "RTEMS" ); sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node ); strcpy( name->release, RTEMS_VERSION ); ffc08440: 90 09 00 04 stw r0,4(r9) strcpy( name->version, "" ); ffc08444: 38 00 00 00 li r0,0 sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME ); ffc08448: 38 7f 00 80 addi r3,r31,128 strcpy( name->sysname, "RTEMS" ); sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node ); strcpy( name->release, RTEMS_VERSION ); ffc0844c: 99 69 00 08 stb r11,8(r9) strcpy( name->version, "" ); sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME ); ffc08450: 38 84 0f 18 addi r4,r4,3864 ffc08454: 38 a5 0f 20 addi r5,r5,3872 sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node ); strcpy( name->release, RTEMS_VERSION ); strcpy( name->version, "" ); ffc08458: 98 1f 00 60 stb r0,96(r31) sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME ); ffc0845c: 38 c6 0f 28 addi r6,r6,3880 ffc08460: 4c c6 31 82 crclr 4*cr1+eq ffc08464: 48 00 d0 1d bl ffc15480 <== ALWAYS TAKEN ffc08468: 38 60 00 00 li r3,0 return 0; } ffc0846c: 80 01 00 14 lwz r0,20(r1) ffc08470: 83 e1 00 0c lwz r31,12(r1) ffc08474: 38 21 00 10 addi r1,r1,16 ffc08478: 7c 08 03 a6 mtlr r0 ffc0847c: 4e 80 00 20 blr <== ALWAYS TAKEN version = Generic_101318-12 machine = sun4m */ if ( !name ) rtems_set_errno_and_return_minus_one( EFAULT ); ffc08480: 48 00 c2 0d bl ffc1468c <__errno> <== ALWAYS TAKEN ffc08484: 38 00 00 0e li r0,14 ffc08488: 90 03 00 00 stw r0,0(r3) ffc0848c: 38 60 ff ff li r3,-1 ffc08490: 4b ff ff dc b ffc0846c <== ALWAYS TAKEN ffc1290c : #include int unlink( const char *path ) { ffc1290c: 94 21 ff b8 stwu r1,-72(r1) ffc12910: 7c 08 02 a6 mflr r0 ffc12914: 93 c1 00 40 stw r30,64(r1) ffc12918: 93 e1 00 44 stw r31,68(r1) ffc1291c: 7c 7f 1b 78 mr r31,r3 ffc12920: 90 01 00 4c stw r0,76(r1) ffc12924: 93 81 00 38 stw r28,56(r1) ffc12928: 93 a1 00 3c stw r29,60(r1) /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); ffc1292c: 4b ff 18 81 bl ffc041ac <== ALWAYS TAKEN if ( parentpathlen == 0 ) ffc12930: 7c 7e 1b 79 mr. r30,r3 ffc12934: 40 82 02 50 bne- ffc12b84 rtems_filesystem_get_start_loc( path, &i, &parentloc ); ffc12938: 88 1f 00 00 lbz r0,0(r31) ffc1293c: 2f 80 00 2f cmpwi cr7,r0,47 ffc12940: 41 9e 00 14 beq- cr7,ffc12954 <== ALWAYS TAKEN ffc12944: 2f 80 00 5c cmpwi cr7,r0,92 <== NOT EXECUTED ffc12948: 41 9e 00 0c beq- cr7,ffc12954 <== NOT EXECUTED ffc1294c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc12950: 40 9e 01 68 bne- cr7,ffc12ab8 <== NOT EXECUTED ffc12954: 3d 20 00 00 lis r9,0 ffc12958: 81 29 26 dc lwz r9,9948(r9) ffc1295c: 3b a0 00 00 li r29,0 ffc12960: 80 09 00 24 lwz r0,36(r9) ffc12964: 81 09 00 18 lwz r8,24(r9) ffc12968: 81 49 00 1c lwz r10,28(r9) ffc1296c: 81 69 00 20 lwz r11,32(r9) ffc12970: 91 01 00 08 stw r8,8(r1) ffc12974: 91 41 00 0c stw r10,12(r1) ffc12978: 91 61 00 10 stw r11,16(r1) ffc1297c: 90 01 00 14 stw r0,20(r1) ffc12980: 80 09 00 28 lwz r0,40(r9) ffc12984: 90 01 00 18 stw r0,24(r1) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc12988: 80 01 00 08 lwz r0,8(r1) name = path + parentpathlen; ffc1298c: 7f df f2 14 add r30,r31,r30 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc12990: 7f c3 f3 78 mr r3,r30 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc12994: 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 ), ffc12998: 3b e1 00 1c addi r31,r1,28 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; ffc1299c: 80 01 00 0c lwz r0,12(r1) ffc129a0: 90 01 00 20 stw r0,32(r1) ffc129a4: 80 01 00 10 lwz r0,16(r1) ffc129a8: 90 01 00 24 stw r0,36(r1) ffc129ac: 80 01 00 14 lwz r0,20(r1) ffc129b0: 90 01 00 28 stw r0,40(r1) ffc129b4: 80 01 00 18 lwz r0,24(r1) ffc129b8: 90 01 00 2c stw r0,44(r1) name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); ffc129bc: 48 00 1c b9 bl ffc14674 <== ALWAYS TAKEN ffc129c0: 7c 64 1b 78 mr r4,r3 ffc129c4: 7f c3 f3 78 mr r3,r30 ffc129c8: 4b ff 17 95 bl ffc0415c <== ALWAYS TAKEN ffc129cc: 7f de 1a 14 add r30,r30,r3 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), ffc129d0: 7f c3 f3 78 mr r3,r30 ffc129d4: 48 00 1c a1 bl ffc14674 <== ALWAYS TAKEN ffc129d8: 38 a0 00 00 li r5,0 ffc129dc: 7c 64 1b 78 mr r4,r3 ffc129e0: 7f e6 fb 78 mr r6,r31 ffc129e4: 7f c3 f3 78 mr r3,r30 ffc129e8: 38 e0 00 00 li r7,0 ffc129ec: 4b ff 18 4d bl ffc04238 <== ALWAYS TAKEN 0, &loc, false ); if ( result != 0 ) { ffc129f0: 2f 83 00 00 cmpwi cr7,r3,0 ffc129f4: 40 9e 00 fc bne- cr7,ffc12af0 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { ffc129f8: 81 21 00 28 lwz r9,40(r1) ffc129fc: 80 09 00 10 lwz r0,16(r9) ffc12a00: 2f 80 00 00 cmpwi cr7,r0,0 ffc12a04: 41 9e 01 28 beq- cr7,ffc12b2c <== 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 ) { ffc12a08: 7f e3 fb 78 mr r3,r31 ffc12a0c: 7c 09 03 a6 mtctr r0 ffc12a10: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc12a14: 2f 83 00 01 cmpwi cr7,r3,1 ffc12a18: 41 9e 01 94 beq- cr7,ffc12bac if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { ffc12a1c: 81 21 00 28 lwz r9,40(r1) ffc12a20: 80 09 00 0c lwz r0,12(r9) ffc12a24: 2f 80 00 00 cmpwi cr7,r0,0 ffc12a28: 41 9e 01 04 beq- cr7,ffc12b2c <== NEVER TAKEN if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); ffc12a2c: 3b c1 00 08 addi r30,r1,8 ffc12a30: 7c 09 03 a6 mtctr r0 ffc12a34: 7f c3 f3 78 mr r3,r30 ffc12a38: 7f e4 fb 78 mr r4,r31 ffc12a3c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); ffc12a40: 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 ); ffc12a44: 7c 7c 1b 78 mr r28,r3 rtems_filesystem_freenode( &loc ); ffc12a48: 2f 89 00 00 cmpwi cr7,r9,0 ffc12a4c: 41 9e 00 1c beq- cr7,ffc12a68 <== NEVER TAKEN ffc12a50: 80 09 00 1c lwz r0,28(r9) ffc12a54: 2f 80 00 00 cmpwi cr7,r0,0 ffc12a58: 41 9e 00 10 beq- cr7,ffc12a68 <== NEVER TAKEN ffc12a5c: 7f e3 fb 78 mr r3,r31 ffc12a60: 7c 09 03 a6 mtctr r0 ffc12a64: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( free_parentloc ) ffc12a68: 2f 9d 00 00 cmpwi cr7,r29,0 ffc12a6c: 41 9e 00 28 beq- cr7,ffc12a94 <== NEVER TAKEN rtems_filesystem_freenode( &parentloc ); ffc12a70: 81 21 00 14 lwz r9,20(r1) ffc12a74: 2f 89 00 00 cmpwi cr7,r9,0 ffc12a78: 41 9e 00 1c beq- cr7,ffc12a94 <== NEVER TAKEN ffc12a7c: 80 09 00 1c lwz r0,28(r9) ffc12a80: 2f 80 00 00 cmpwi cr7,r0,0 ffc12a84: 41 9e 00 10 beq- cr7,ffc12a94 <== NEVER TAKEN ffc12a88: 7f c3 f3 78 mr r3,r30 ffc12a8c: 7c 09 03 a6 mtctr r0 ffc12a90: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc12a94: 80 01 00 4c lwz r0,76(r1) ffc12a98: 7f 83 e3 78 mr r3,r28 ffc12a9c: 83 a1 00 3c lwz r29,60(r1) ffc12aa0: 7c 08 03 a6 mtlr r0 ffc12aa4: 83 81 00 38 lwz r28,56(r1) ffc12aa8: 83 c1 00 40 lwz r30,64(r1) ffc12aac: 83 e1 00 44 lwz r31,68(r1) ffc12ab0: 38 21 00 48 addi r1,r1,72 ffc12ab4: 4e 80 00 20 blr <== ALWAYS TAKEN */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); ffc12ab8: 3d 20 00 00 lis r9,0 <== NOT EXECUTED ffc12abc: 81 29 26 dc lwz r9,9948(r9) <== NOT EXECUTED ffc12ac0: 3b a0 00 00 li r29,0 <== NOT EXECUTED ffc12ac4: 80 09 00 10 lwz r0,16(r9) <== NOT EXECUTED ffc12ac8: 81 09 00 04 lwz r8,4(r9) <== NOT EXECUTED ffc12acc: 81 49 00 08 lwz r10,8(r9) <== NOT EXECUTED ffc12ad0: 81 69 00 0c lwz r11,12(r9) <== NOT EXECUTED ffc12ad4: 91 01 00 08 stw r8,8(r1) <== NOT EXECUTED ffc12ad8: 91 41 00 0c stw r10,12(r1) <== NOT EXECUTED ffc12adc: 91 61 00 10 stw r11,16(r1) <== NOT EXECUTED ffc12ae0: 90 01 00 14 stw r0,20(r1) <== NOT EXECUTED ffc12ae4: 80 09 00 14 lwz r0,20(r9) <== NOT EXECUTED ffc12ae8: 90 01 00 18 stw r0,24(r1) <== NOT EXECUTED ffc12aec: 4b ff fe 9c b ffc12988 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) ffc12af0: 2f 9d 00 00 cmpwi cr7,r29,0 ffc12af4: 40 9e 00 0c bne- cr7,ffc12b00 <== ALWAYS TAKEN result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); ffc12af8: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc12afc: 4b ff ff 98 b ffc12a94 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); ffc12b00: 81 21 00 14 lwz r9,20(r1) ffc12b04: 2f 89 00 00 cmpwi cr7,r9,0 ffc12b08: 41 9e ff f0 beq+ cr7,ffc12af8 <== NEVER TAKEN ffc12b0c: 80 09 00 1c lwz r0,28(r9) ffc12b10: 2f 80 00 00 cmpwi cr7,r0,0 ffc12b14: 41 9e ff e4 beq+ cr7,ffc12af8 <== NEVER TAKEN ffc12b18: 38 61 00 08 addi r3,r1,8 ffc12b1c: 7c 09 03 a6 mtctr r0 ffc12b20: 3b 80 ff ff li r28,-1 ffc12b24: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc12b28: 4b ff ff 6c b ffc12a94 <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); ffc12b2c: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc12b30: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc12b34: 41 9e 00 10 beq- cr7,ffc12b44 <== NOT EXECUTED ffc12b38: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc12b3c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc12b40: 4e 80 04 21 bctrl <== NOT EXECUTED if ( free_parentloc ) ffc12b44: 2f 9d 00 00 cmpwi cr7,r29,0 <== NOT EXECUTED ffc12b48: 41 9e 00 28 beq- cr7,ffc12b70 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); ffc12b4c: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc12b50: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc12b54: 41 9e 00 1c beq- cr7,ffc12b70 <== NOT EXECUTED ffc12b58: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc12b5c: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc12b60: 41 9e 00 10 beq- cr7,ffc12b70 <== NOT EXECUTED ffc12b64: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc12b68: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc12b6c: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc12b70: 48 00 08 09 bl ffc13378 <__errno> <== NOT EXECUTED ffc12b74: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc12b78: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc12b7c: 3b 80 ff ff li r28,-1 <== NOT EXECUTED ffc12b80: 4b ff ff 14 b ffc12a94 <== NOT EXECUTED parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path( path, parentpathlen, ffc12b84: 7f e3 fb 78 mr r3,r31 ffc12b88: 7f c4 f3 78 mr r4,r30 ffc12b8c: 38 a0 00 02 li r5,2 ffc12b90: 38 c1 00 08 addi r6,r1,8 ffc12b94: 38 e0 00 00 li r7,0 ffc12b98: 4b ff 17 c9 bl ffc04360 <== ALWAYS TAKEN RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) ffc12b9c: 2f 83 00 00 cmpwi cr7,r3,0 ffc12ba0: 40 be ff 58 bne- cr7,ffc12af8 <== NEVER TAKEN ffc12ba4: 3b a0 00 01 li r29,1 ffc12ba8: 4b ff fd e0 b ffc12988 <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); ffc12bac: 81 21 00 28 lwz r9,40(r1) ffc12bb0: 2f 89 00 00 cmpwi cr7,r9,0 ffc12bb4: 41 9e 00 1c beq- cr7,ffc12bd0 <== NEVER TAKEN ffc12bb8: 80 09 00 1c lwz r0,28(r9) ffc12bbc: 2f 80 00 00 cmpwi cr7,r0,0 ffc12bc0: 41 9e 00 10 beq- cr7,ffc12bd0 <== NEVER TAKEN ffc12bc4: 7f e3 fb 78 mr r3,r31 ffc12bc8: 7c 09 03 a6 mtctr r0 ffc12bcc: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( free_parentloc ) ffc12bd0: 2f 9d 00 00 cmpwi cr7,r29,0 ffc12bd4: 41 9e 00 28 beq- cr7,ffc12bfc <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); ffc12bd8: 81 21 00 14 lwz r9,20(r1) <== NOT EXECUTED ffc12bdc: 2f 89 00 00 cmpwi cr7,r9,0 <== NOT EXECUTED ffc12be0: 41 9e 00 1c beq- cr7,ffc12bfc <== NOT EXECUTED ffc12be4: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc12be8: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc12bec: 41 9e 00 10 beq- cr7,ffc12bfc <== NOT EXECUTED ffc12bf0: 38 61 00 08 addi r3,r1,8 <== NOT EXECUTED ffc12bf4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc12bf8: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); ffc12bfc: 48 00 07 7d bl ffc13378 <__errno> <== ALWAYS TAKEN ffc12c00: 38 00 00 15 li r0,21 ffc12c04: 90 03 00 00 stw r0,0(r3) ffc12c08: 3b 80 ff ff li r28,-1 ffc12c0c: 4b ff fe 88 b ffc12a94 <== ALWAYS TAKEN ffc0d2b0 : */ int unmount( const char *path ) { ffc0d2b0: 94 21 ff d0 stwu r1,-48(r1) ffc0d2b4: 7c 08 02 a6 mflr r0 ffc0d2b8: 93 c1 00 28 stw r30,40(r1) ffc0d2bc: 7c 7e 1b 78 mr r30,r3 ffc0d2c0: 90 01 00 34 stw r0,52(r1) ffc0d2c4: 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 ) ) ffc0d2c8: 48 04 8f 71 bl ffc56238 <== ALWAYS TAKEN ffc0d2cc: 3b e1 00 08 addi r31,r1,8 ffc0d2d0: 7c 64 1b 78 mr r4,r3 ffc0d2d4: 38 a0 00 00 li r5,0 ffc0d2d8: 7f c3 f3 78 mr r3,r30 ffc0d2dc: 7f e6 fb 78 mr r6,r31 ffc0d2e0: 38 e0 00 01 li r7,1 ffc0d2e4: 4b ff ba 31 bl ffc08d14 <== ALWAYS TAKEN ffc0d2e8: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d2ec: 40 9e 00 e0 bne- cr7,ffc0d3cc return -1; mt_entry = loc.mt_entry; ffc0d2f0: 83 c1 00 18 lwz r30,24(r1) fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; ffc0d2f4: 80 01 00 08 lwz r0,8(r1) ffc0d2f8: 81 3e 00 1c lwz r9,28(r30) ffc0d2fc: 7f 89 00 00 cmpw cr7,r9,r0 ffc0d300: 40 9e 01 7c bne- cr7,ffc0d47c /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); ffc0d304: 81 21 00 14 lwz r9,20(r1) ffc0d308: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d30c: 41 9e 00 1c beq- cr7,ffc0d328 <== NEVER TAKEN ffc0d310: 80 09 00 1c lwz r0,28(r9) ffc0d314: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d318: 41 9e 00 10 beq- cr7,ffc0d328 <== NEVER TAKEN ffc0d31c: 7f e3 fb 78 mr r3,r31 ffc0d320: 7c 09 03 a6 mtctr r0 ffc0d324: 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; ffc0d328: 81 3e 00 14 lwz r9,20(r30) ffc0d32c: 80 09 00 28 lwz r0,40(r9) ffc0d330: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d334: 41 9e 01 b8 beq- cr7,ffc0d4ec <== NEVER TAKEN fs_root_loc = &mt_entry->mt_fs_root; ffc0d338: 81 3e 00 28 lwz r9,40(r30) ffc0d33c: 80 09 00 2c lwz r0,44(r9) ffc0d340: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d344: 41 9e 01 a8 beq- cr7,ffc0d4ec <== NEVER TAKEN * 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 ) ffc0d348: 3d 20 00 00 lis r9,0 ffc0d34c: 81 29 35 2c lwz r9,13612(r9) ffc0d350: 80 09 00 14 lwz r0,20(r9) ffc0d354: 7f 80 f0 00 cmpw cr7,r0,r30 ffc0d358: 41 9e 00 90 beq- cr7,ffc0d3e8 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0d35c: 3d 60 00 00 lis r11,0 ffc0d360: 81 2b 63 d0 lwz r9,25552(r11) ffc0d364: 39 6b 63 d0 addi r11,r11,25552 ffc0d368: 39 6b 00 04 addi r11,r11,4 ffc0d36c: 7f 89 58 00 cmpw cr7,r9,r11 ffc0d370: 41 9e 00 30 beq- cr7,ffc0d3a0 <== NEVER TAKEN !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 ) { ffc0d374: 81 5e 00 2c lwz r10,44(r30) ffc0d378: 80 09 00 18 lwz r0,24(r9) ffc0d37c: 7f 80 50 00 cmpw cr7,r0,r10 ffc0d380: 40 be 00 14 bne+ cr7,ffc0d394 <== ALWAYS TAKEN ffc0d384: 48 00 00 64 b ffc0d3e8 <== NOT EXECUTED ffc0d388: 80 09 00 18 lwz r0,24(r9) ffc0d38c: 7f 8a 00 00 cmpw cr7,r10,r0 ffc0d390: 41 9e 00 58 beq- cr7,ffc0d3e8 * 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 ) { ffc0d394: 81 29 00 00 lwz r9,0(r9) /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; ffc0d398: 7f 89 58 00 cmpw cr7,r9,r11 ffc0d39c: 40 9e ff ec bne+ cr7,ffc0d388 * 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 ) ffc0d3a0: 7f c3 f3 78 mr r3,r30 ffc0d3a4: 4b ff bd f5 bl ffc09198 <== ALWAYS TAKEN ffc0d3a8: 2f 83 00 01 cmpwi cr7,r3,1 ffc0d3ac: 41 9e 00 3c beq- cr7,ffc0d3e8 * 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 ) ffc0d3b0: 81 3e 00 14 lwz r9,20(r30) ffc0d3b4: 7f c3 f3 78 mr r3,r30 ffc0d3b8: 80 09 00 28 lwz r0,40(r9) ffc0d3bc: 7c 09 03 a6 mtctr r0 ffc0d3c0: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0d3c4: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d3c8: 41 9e 00 48 beq- cr7,ffc0d410 <== ALWAYS TAKEN */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; ffc0d3cc: 38 60 ff ff li r3,-1 } ffc0d3d0: 80 01 00 34 lwz r0,52(r1) ffc0d3d4: 83 c1 00 28 lwz r30,40(r1) ffc0d3d8: 7c 08 03 a6 mtlr r0 ffc0d3dc: 83 e1 00 2c lwz r31,44(r1) ffc0d3e0: 38 21 00 30 addi r1,r1,48 ffc0d3e4: 4e 80 00 20 blr <== 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 ); ffc0d3e8: 48 04 10 89 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc0d3ec: 38 00 00 10 li r0,16 ffc0d3f0: 90 03 00 00 stw r0,0(r3) ffc0d3f4: 38 60 ff ff li r3,-1 rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } ffc0d3f8: 80 01 00 34 lwz r0,52(r1) ffc0d3fc: 83 c1 00 28 lwz r30,40(r1) ffc0d400: 7c 08 03 a6 mtlr r0 ffc0d404: 83 e1 00 2c lwz r31,44(r1) ffc0d408: 38 21 00 30 addi r1,r1,48 ffc0d40c: 4e 80 00 20 blr <== ALWAYS 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){ ffc0d410: 81 3e 00 28 lwz r9,40(r30) ffc0d414: 7f c3 f3 78 mr r3,r30 ffc0d418: 80 09 00 2c lwz r0,44(r9) ffc0d41c: 7c 09 03 a6 mtctr r0 ffc0d420: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc0d424: 2f 83 00 00 cmpwi cr7,r3,0 ffc0d428: 40 9e 00 a0 bne- cr7,ffc0d4c8 <== NEVER TAKEN */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); ffc0d42c: 7f c3 f3 78 mr r3,r30 ffc0d430: 48 00 1f 1d bl ffc0f34c <_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 ); ffc0d434: 81 3e 00 14 lwz r9,20(r30) ffc0d438: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d43c: 41 9e 00 1c beq- cr7,ffc0d458 <== NEVER TAKEN ffc0d440: 80 09 00 1c lwz r0,28(r9) ffc0d444: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d448: 41 9e 00 10 beq- cr7,ffc0d458 <== NEVER TAKEN ffc0d44c: 38 7e 00 08 addi r3,r30,8 ffc0d450: 7c 09 03 a6 mtctr r0 ffc0d454: 4e 80 04 21 bctrl <== ALWAYS TAKEN free( mt_entry ); ffc0d458: 7f c3 f3 78 mr r3,r30 ffc0d45c: 4b ff b9 c1 bl ffc08e1c <== ALWAYS TAKEN return 0; } ffc0d460: 80 01 00 34 lwz r0,52(r1) * Free the memory node that was allocated in mount * Free the memory associated with the extracted mount table entry. */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); ffc0d464: 38 60 00 00 li r3,0 return 0; } ffc0d468: 83 c1 00 28 lwz r30,40(r1) ffc0d46c: 7c 08 03 a6 mtlr r0 ffc0d470: 83 e1 00 2c lwz r31,44(r1) ffc0d474: 38 21 00 30 addi r1,r1,48 ffc0d478: 4e 80 00 20 blr <== ALWAYS TAKEN /* * 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 ); ffc0d47c: 81 21 00 14 lwz r9,20(r1) ffc0d480: 2f 89 00 00 cmpwi cr7,r9,0 ffc0d484: 41 9e 00 1c beq- cr7,ffc0d4a0 <== NEVER TAKEN ffc0d488: 80 09 00 1c lwz r0,28(r9) ffc0d48c: 2f 80 00 00 cmpwi cr7,r0,0 ffc0d490: 41 9e 00 10 beq- cr7,ffc0d4a0 <== NEVER TAKEN ffc0d494: 7f e3 fb 78 mr r3,r31 ffc0d498: 7c 09 03 a6 mtctr r0 ffc0d49c: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EACCES ); ffc0d4a0: 48 04 0f d1 bl ffc4e470 <__errno> <== ALWAYS TAKEN ffc0d4a4: 38 00 00 0d li r0,13 ffc0d4a8: 90 03 00 00 stw r0,0(r3) ffc0d4ac: 38 60 ff ff li r3,-1 rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } ffc0d4b0: 80 01 00 34 lwz r0,52(r1) ffc0d4b4: 83 c1 00 28 lwz r30,40(r1) ffc0d4b8: 7c 08 03 a6 mtlr r0 ffc0d4bc: 83 e1 00 2c lwz r31,44(r1) ffc0d4c0: 38 21 00 30 addi r1,r1,48 ffc0d4c4: 4e 80 00 20 blr <== ALWAYS TAKEN * This was response was questionable but the best we could * come up with. */ if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){ if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) ffc0d4c8: 81 3e 00 14 lwz r9,20(r30) <== NOT EXECUTED ffc0d4cc: 7f c3 f3 78 mr r3,r30 <== NOT EXECUTED ffc0d4d0: 80 09 00 20 lwz r0,32(r9) <== NOT EXECUTED ffc0d4d4: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc0d4d8: 4e 80 04 21 bctrl <== NOT EXECUTED ffc0d4dc: 2f 83 00 00 cmpwi cr7,r3,0 <== NOT EXECUTED ffc0d4e0: 41 9e fe ec beq+ cr7,ffc0d3cc <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); ffc0d4e4: 38 60 00 00 li r3,0 <== NOT EXECUTED ffc0d4e8: 48 00 19 7d bl ffc0ee64 <== NOT EXECUTED if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc0d4ec: 48 04 0f 85 bl ffc4e470 <__errno> <== NOT EXECUTED ffc0d4f0: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc0d4f4: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc0d4f8: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc0d4fc: 4b ff fe d4 b ffc0d3d0 <== NOT EXECUTED ffc3124c : int utime( const char *path, const struct utimbuf *times ) { ffc3124c: 94 21 ff c8 stwu r1,-56(r1) ffc31250: 7c 08 02 a6 mflr r0 ffc31254: 93 a1 00 2c stw r29,44(r1) ffc31258: 7c 7d 1b 78 mr r29,r3 ffc3125c: 90 01 00 3c stw r0,60(r1) ffc31260: 93 c1 00 30 stw r30,48(r1) ffc31264: 7c 9e 23 78 mr r30,r4 ffc31268: 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 ) ) ffc3126c: 48 02 4f cd bl ffc56238 <== ALWAYS TAKEN ffc31270: 3b e1 00 08 addi r31,r1,8 ffc31274: 7c 64 1b 78 mr r4,r3 ffc31278: 38 a0 00 00 li r5,0 ffc3127c: 7f a3 eb 78 mr r3,r29 ffc31280: 7f e6 fb 78 mr r6,r31 ffc31284: 38 e0 00 01 li r7,1 ffc31288: 4b fd 7a 8d bl ffc08d14 <== ALWAYS TAKEN ffc3128c: 3b a0 ff ff li r29,-1 ffc31290: 2f 83 00 00 cmpwi cr7,r3,0 ffc31294: 40 9e 00 50 bne- cr7,ffc312e4 return -1; if ( !temp_loc.ops->utime_h ){ ffc31298: 81 21 00 14 lwz r9,20(r1) ffc3129c: 80 09 00 30 lwz r0,48(r9) ffc312a0: 2f 80 00 00 cmpwi cr7,r0,0 ffc312a4: 41 9e 00 60 beq- cr7,ffc31304 <== NEVER TAKEN 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 ); ffc312a8: 80 be 00 04 lwz r5,4(r30) ffc312ac: 7f e3 fb 78 mr r3,r31 ffc312b0: 80 9e 00 00 lwz r4,0(r30) ffc312b4: 7c 09 03 a6 mtctr r0 ffc312b8: 4e 80 04 21 bctrl <== ALWAYS TAKEN rtems_filesystem_freenode( &temp_loc ); ffc312bc: 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 ); ffc312c0: 7c 7d 1b 78 mr r29,r3 rtems_filesystem_freenode( &temp_loc ); ffc312c4: 2f 89 00 00 cmpwi cr7,r9,0 ffc312c8: 41 9e 00 1c beq- cr7,ffc312e4 <== NEVER TAKEN ffc312cc: 80 09 00 1c lwz r0,28(r9) ffc312d0: 2f 80 00 00 cmpwi cr7,r0,0 ffc312d4: 41 9e 00 10 beq- cr7,ffc312e4 <== NEVER TAKEN ffc312d8: 7f e3 fb 78 mr r3,r31 ffc312dc: 7c 09 03 a6 mtctr r0 ffc312e0: 4e 80 04 21 bctrl <== ALWAYS TAKEN return result; } ffc312e4: 80 01 00 3c lwz r0,60(r1) ffc312e8: 7f a3 eb 78 mr r3,r29 ffc312ec: 83 c1 00 30 lwz r30,48(r1) ffc312f0: 7c 08 03 a6 mtlr r0 ffc312f4: 83 a1 00 2c lwz r29,44(r1) ffc312f8: 83 e1 00 34 lwz r31,52(r1) ffc312fc: 38 21 00 38 addi r1,r1,56 ffc31300: 4e 80 00 20 blr <== ALWAYS TAKEN if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) return -1; if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); ffc31304: 80 09 00 1c lwz r0,28(r9) <== NOT EXECUTED ffc31308: 2f 80 00 00 cmpwi cr7,r0,0 <== NOT EXECUTED ffc3130c: 41 9e 00 10 beq- cr7,ffc3131c <== NOT EXECUTED ffc31310: 7f e3 fb 78 mr r3,r31 <== NOT EXECUTED ffc31314: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc31318: 4e 80 04 21 bctrl <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc3131c: 48 01 d1 55 bl ffc4e470 <__errno> <== NOT EXECUTED ffc31320: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc31324: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc31328: 3b a0 ff ff li r29,-1 <== NOT EXECUTED ffc3132c: 4b ff ff b8 b ffc312e4 <== NOT EXECUTED ffc0878c : #include pid_t vfork(void) { return -1; } ffc0878c: 38 60 ff ff li r3,-1 ffc08790: 4e 80 00 20 blr <== ALWAYS TAKEN ffc078cc : */ void vprintk( const char *fmt, va_list ap ) { ffc078cc: 94 21 ff a8 stwu r1,-88(r1) ffc078d0: 7d 80 00 26 mfcr r12 ffc078d4: 7c 08 02 a6 mflr r0 ffc078d8: 93 01 00 38 stw r24,56(r1) ffc078dc: 7c 98 23 78 mr r24,r4 ffc078e0: 93 e1 00 54 stw r31,84(r1) ffc078e4: 7c 7f 1b 78 mr r31,r3 ffc078e8: 90 01 00 5c stw r0,92(r1) ffc078ec: 92 c1 00 30 stw r22,48(r1) ffc078f0: 92 e1 00 34 stw r23,52(r1) ffc078f4: 93 21 00 3c stw r25,60(r1) <== ALWAYS TAKEN ffc078f8: 93 41 00 40 stw r26,64(r1) ffc078fc: 93 61 00 44 stw r27,68(r1) <== ALWAYS TAKEN ffc07900: 93 81 00 48 stw r28,72(r1) ffc07904: 93 a1 00 4c stw r29,76(r1) ffc07908: 93 c1 00 50 stw r30,80(r1) ffc0790c: 91 81 00 2c stw r12,44(r1) for (; *fmt != '\0'; fmt++) { ffc07910: 88 63 00 00 lbz r3,0(r3) ffc07914: 2f 83 00 00 cmpwi cr7,r3,0 ffc07918: 41 9e 01 08 beq- cr7,ffc07a20 <== NEVER TAKEN bool sign = false; char lead = ' '; char c; if (*fmt != '%') { BSP_output_char(*fmt); ffc0791c: 3f 80 00 00 lis r28,0 ffc07920: 3f 40 ff c2 lis r26,-62 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { ffc07924: 3e c0 ff c2 lis r22,-62 bool sign = false; char lead = ' '; char c; if (*fmt != '%') { BSP_output_char(*fmt); ffc07928: 3b 9c 26 d4 addi r28,r28,9940 ffc0792c: 3b 5a f7 70 addi r26,r26,-2192 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { ffc07930: 3a d6 ed 54 addi r22,r22,-4780 toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { ffc07934: 3a e1 00 08 addi r23,r1,8 bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { ffc07938: 2f 83 00 25 cmpwi cr7,r3,37 <== ALWAYS TAKEN ffc0793c: 40 9e 00 cc bne- cr7,ffc07a08 BSP_output_char(*fmt); continue; } fmt++; if (*fmt == '0' ) { ffc07940: 8c 7f 00 01 lbzu r3,1(r31) ffc07944: 3b 20 00 20 li r25,32 ffc07948: 2f 83 00 30 cmpwi cr7,r3,48 ffc0794c: 41 9e 02 20 beq- cr7,ffc07b6c lead = '0'; fmt++; } if (*fmt == '-' ) { ffc07950: 2f 83 00 2d cmpwi cr7,r3,45 ffc07954: 39 20 00 00 li r9,0 ffc07958: 41 9e 02 08 beq- cr7,ffc07b60 minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc0795c: 38 03 ff d0 addi r0,r3,-48 ffc07960: 54 00 06 3e clrlwi r0,r0,24 ffc07964: 2b 80 00 09 cmplwi cr7,r0,9 ffc07968: 3b c0 00 00 li r30,0 ffc0796c: 41 9d 00 24 bgt- cr7,ffc07990 width *= 10; width += ((unsigned) *fmt - '0'); ffc07970: 1f de 00 0a mulli r30,r30,10 ffc07974: 7f de 1a 14 add r30,r30,r3 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc07978: 8c 7f 00 01 lbzu r3,1(r31) width *= 10; width += ((unsigned) *fmt - '0'); ffc0797c: 3b de ff d0 addi r30,r30,-48 } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { ffc07980: 38 03 ff d0 addi r0,r3,-48 ffc07984: 54 00 06 3e clrlwi r0,r0,24 ffc07988: 2b 80 00 09 cmplwi cr7,r0,9 ffc0798c: 40 9d ff e4 ble+ cr7,ffc07970 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { ffc07990: 2f 83 00 6c cmpwi cr7,r3,108 ffc07994: 41 9e 02 18 beq- cr7,ffc07bac lflag = true; c = *++fmt; } if ( c == 'c' ) { ffc07998: 2f 83 00 63 cmpwi cr7,r3,99 ffc0799c: 41 9e 01 dc beq- cr7,ffc07b78 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); BSP_output_char(chr); continue; } if ( c == 's' ) { ffc079a0: 2f 83 00 73 cmpwi cr7,r3,115 ffc079a4: 41 9e 02 2c beq- cr7,ffc07bd0 continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { ffc079a8: 2f 83 00 6f cmpwi cr7,r3,111 ffc079ac: 41 9e 02 18 beq- cr7,ffc07bc4 <== NEVER TAKEN ffc079b0: 2f 83 00 4f cmpwi cr7,r3,79 ffc079b4: 41 9e 02 10 beq- cr7,ffc07bc4 base = 8; sign = false; } else if ( c == 'i' || c == 'I' || ffc079b8: 2f 83 00 69 cmpwi cr7,r3,105 ffc079bc: 41 9e 00 a4 beq- cr7,ffc07a60 ffc079c0: 2f 83 00 49 cmpwi cr7,r3,73 ffc079c4: 41 9e 00 9c beq- cr7,ffc07a60 ffc079c8: 2f 83 00 64 cmpwi cr7,r3,100 ffc079cc: 41 9e 00 94 beq- cr7,ffc07a60 ffc079d0: 2f 83 00 44 cmpwi cr7,r3,68 ffc079d4: 41 9e 00 8c beq- cr7,ffc07a60 c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { ffc079d8: 2f 83 00 75 cmpwi cr7,r3,117 ffc079dc: 41 9e 03 60 beq- cr7,ffc07d3c ffc079e0: 2f 83 00 55 cmpwi cr7,r3,85 ffc079e4: 41 9e 03 58 beq- cr7,ffc07d3c base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { ffc079e8: 2f 83 00 78 cmpwi cr7,r3,120 ffc079ec: 41 9e 03 5c beq- cr7,ffc07d48 ffc079f0: 2f 83 00 58 cmpwi cr7,r3,88 ffc079f4: 41 9e 03 54 beq- cr7,ffc07d48 base = 16; sign = false; } else if ( c == 'p' ) { ffc079f8: 2f 83 00 70 cmpwi cr7,r3,112 ffc079fc: 39 20 00 00 li r9,0 ffc07a00: 3b a0 00 10 li r29,16 ffc07a04: 41 9e 00 64 beq- cr7,ffc07a68 c = *++fmt; } if ( c == 'c' ) { /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); BSP_output_char(chr); ffc07a08: 80 1c 00 00 lwz r0,0(r28) ffc07a0c: 7c 09 03 a6 mtctr r0 ffc07a10: 4e 80 04 21 bctrl <== ALWAYS TAKEN void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { ffc07a14: 8c 7f 00 01 lbzu r3,1(r31) ffc07a18: 2f 83 00 00 cmpwi cr7,r3,0 ffc07a1c: 40 9e ff 1c bne+ cr7,ffc07938 sign, width, lead ); } } ffc07a20: 80 01 00 5c lwz r0,92(r1) ffc07a24: 81 81 00 2c lwz r12,44(r1) ffc07a28: 7c 08 03 a6 mtlr r0 ffc07a2c: 82 c1 00 30 lwz r22,48(r1) ffc07a30: 82 e1 00 34 lwz r23,52(r1) ffc07a34: 7d 80 81 20 mtcrf 8,r12 ffc07a38: 83 01 00 38 lwz r24,56(r1) ffc07a3c: 83 21 00 3c lwz r25,60(r1) ffc07a40: 83 41 00 40 lwz r26,64(r1) ffc07a44: 83 61 00 44 lwz r27,68(r1) ffc07a48: 83 81 00 48 lwz r28,72(r1) ffc07a4c: 83 a1 00 4c lwz r29,76(r1) ffc07a50: 83 c1 00 50 lwz r30,80(r1) ffc07a54: 83 e1 00 54 lwz r31,84(r1) ffc07a58: 38 21 00 58 addi r1,r1,88 ffc07a5c: 4e 80 00 20 blr <== ALWAYS TAKEN base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; ffc07a60: 39 20 00 01 li r9,1 ffc07a64: 3b a0 00 0a li r29,10 } printNum( lflag ? va_arg(ap, long) : (long) va_arg(ap, int), ffc07a68: 89 78 00 00 lbz r11,0(r24) ffc07a6c: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07a70: 41 9d 01 44 bgt- cr7,ffc07bb4 ffc07a74: 38 0b 00 01 addi r0,r11,1 ffc07a78: 81 58 00 08 lwz r10,8(r24) ffc07a7c: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc07a80: 98 18 00 00 stb r0,0(r24) ffc07a84: 7d 6a 5a 14 add r11,r10,r11 unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { ffc07a88: 2f 89 00 00 cmpwi cr7,r9,0 } else { BSP_output_char(c); continue; } printNum( ffc07a8c: 83 6b 00 00 lwz r27,0(r11) unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { ffc07a90: 41 9e 00 0c beq- cr7,ffc07a9c ffc07a94: 2f 9b 00 00 cmpwi cr7,r27,0 ffc07a98: 41 9c 02 80 blt- cr7,ffc07d18 BSP_output_char('-'); unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; } else { unsigned_num = (unsigned long) num; ffc07a9c: 7f 6a db 78 mr r10,r27 } count = 0; while ((n = unsigned_num / base) > 0) { ffc07aa0: 7c 0a eb 96 divwu r0,r10,r29 ffc07aa4: 2f 80 00 00 cmpwi cr7,r0,0 ffc07aa8: 57 a7 06 3e clrlwi r7,r29,24 ffc07aac: 39 20 00 00 li r9,0 ffc07ab0: 3b 60 00 01 li r27,1 ffc07ab4: 40 be 00 10 bne+ cr7,ffc07ac4 ffc07ab8: 48 00 00 34 b ffc07aec <== ALWAYS TAKEN ffc07abc: 7c 0a 03 78 mr r10,r0 ffc07ac0: 7d 60 5b 78 mr r0,r11 ffc07ac4: 7d 60 eb 96 divwu r11,r0,r29 ffc07ac8: 2f 8b 00 00 cmpwi cr7,r11,0 toPrint[count++] = (char) (unsigned_num - (n * base)); ffc07acc: 7f 67 01 d6 mullw r27,r7,r0 ffc07ad0: 7d 01 4a 14 add r8,r1,r9 ffc07ad4: 7d 5b 50 50 subf r10,r27,r10 ffc07ad8: 99 48 00 08 stb r10,8(r8) ffc07adc: 39 29 00 01 addi r9,r9,1 } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { ffc07ae0: 40 9e ff dc bne+ cr7,ffc07abc ffc07ae4: 7c 0a 03 78 mr r10,r0 ffc07ae8: 3b 69 00 01 addi r27,r9,1 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) ffc07aec: 7f 9e d8 40 cmplw cr7,r30,r27 count = 0; while ((n = unsigned_num / base) > 0) { toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; ffc07af0: 7d 21 4a 14 add r9,r1,r9 ffc07af4: 99 49 00 08 stb r10,8(r9) for (n=maxwidth ; n > count; n-- ) ffc07af8: 40 9d 00 20 ble- cr7,ffc07b18 BSP_output_char(lead); ffc07afc: 80 1c 00 00 lwz r0,0(r28) ffc07b00: 7f 23 cb 78 mr r3,r25 toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) ffc07b04: 3b de ff ff addi r30,r30,-1 BSP_output_char(lead); ffc07b08: 7c 09 03 a6 mtctr r0 ffc07b0c: 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-- ) ffc07b10: 7f 9e d8 40 cmplw cr7,r30,r27 ffc07b14: 41 9d ff e8 bgt+ cr7,ffc07afc BSP_output_char(lead); for (n = 0; n < count; n++) { ffc07b18: 2f 9b 00 00 cmpwi cr7,r27,0 ffc07b1c: 41 be fe f8 beq- cr7,ffc07a14 <== NEVER TAKEN ffc07b20: 3b bb ff ff addi r29,r27,-1 ffc07b24: 7f b7 ea 14 add r29,r23,r29 ffc07b28: 3b c0 00 00 li r30,0 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc07b2c: 89 3d 00 00 lbz r9,0(r29) toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { ffc07b30: 3b de 00 01 addi r30,r30,1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc07b34: 80 1c 00 00 lwz r0,0(r28) toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) { ffc07b38: 3b bd ff ff addi r29,r29,-1 BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); ffc07b3c: 7c 7a 48 ae lbzx r3,r26,r9 ffc07b40: 7c 09 03 a6 mtctr r0 ffc07b44: 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++) { ffc07b48: 7f 9e d8 40 cmplw cr7,r30,r27 ffc07b4c: 41 9c ff e0 blt+ cr7,ffc07b2c void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { ffc07b50: 8c 7f 00 01 lbzu r3,1(r31) ffc07b54: 2f 83 00 00 cmpwi cr7,r3,0 ffc07b58: 40 9e fd e0 bne+ cr7,ffc07938 <== ALWAYS TAKEN ffc07b5c: 4b ff fe c4 b ffc07a20 <== NOT EXECUTED lead = '0'; fmt++; } if (*fmt == '-' ) { minus = true; fmt++; ffc07b60: 8c 7f 00 01 lbzu r3,1(r31) ffc07b64: 39 20 00 01 li r9,1 ffc07b68: 4b ff fd f4 b ffc0795c <== ALWAYS TAKEN continue; } fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; ffc07b6c: 8c 7f 00 01 lbzu r3,1(r31) ffc07b70: 3b 20 00 30 li r25,48 ffc07b74: 4b ff fd dc b ffc07950 <== ALWAYS TAKEN lflag = true; c = *++fmt; } if ( c == 'c' ) { /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); ffc07b78: 89 38 00 00 lbz r9,0(r24) ffc07b7c: 2b 89 00 07 cmplwi cr7,r9,7 ffc07b80: 41 9d 01 64 bgt- cr7,ffc07ce4 <== NEVER TAKEN ffc07b84: 38 09 00 01 addi r0,r9,1 ffc07b88: 81 78 00 08 lwz r11,8(r24) ffc07b8c: 55 29 10 3a rlwinm r9,r9,2,0,29 ffc07b90: 98 18 00 00 stb r0,0(r24) ffc07b94: 7d 2b 4a 14 add r9,r11,r9 BSP_output_char(chr); ffc07b98: 88 69 00 03 lbz r3,3(r9) ffc07b9c: 80 1c 00 00 lwz r0,0(r28) ffc07ba0: 7c 09 03 a6 mtctr r0 ffc07ba4: 4e 80 04 21 bctrl <== ALWAYS TAKEN ffc07ba8: 4b ff fe 6c b ffc07a14 <== ALWAYS TAKEN fmt++; } if ((c = *fmt) == 'l') { lflag = true; c = *++fmt; ffc07bac: 8c 7f 00 01 lbzu r3,1(r31) ffc07bb0: 4b ff fd e8 b ffc07998 <== ALWAYS TAKEN BSP_output_char(c); continue; } printNum( lflag ? va_arg(ap, long) : (long) va_arg(ap, int), ffc07bb4: 81 78 00 04 lwz r11,4(r24) ffc07bb8: 38 0b 00 04 addi r0,r11,4 ffc07bbc: 90 18 00 04 stw r0,4(r24) ffc07bc0: 4b ff fe c8 b ffc07a88 <== ALWAYS TAKEN base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; ffc07bc4: 39 20 00 00 li r9,0 ffc07bc8: 3b a0 00 08 li r29,8 ffc07bcc: 4b ff fe 9c b ffc07a68 <== ALWAYS TAKEN } if ( c == 's' ) { unsigned i, len; char *s, *str; str = va_arg(ap, char *); ffc07bd0: 89 78 00 00 lbz r11,0(r24) ffc07bd4: 2b 8b 00 07 cmplwi cr7,r11,7 ffc07bd8: 41 9d 01 20 bgt- cr7,ffc07cf8 <== NEVER TAKEN ffc07bdc: 38 0b 00 01 addi r0,r11,1 ffc07be0: 81 58 00 08 lwz r10,8(r24) ffc07be4: 55 6b 10 3a rlwinm r11,r11,2,0,29 ffc07be8: 98 18 00 00 stb r0,0(r24) <== ALWAYS TAKEN ffc07bec: 7d 6a 5a 14 add r11,r10,r11 ffc07bf0: 83 6b 00 00 lwz r27,0(r11) if ( str == NULL ) { ffc07bf4: 2f 9b 00 00 cmpwi cr7,r27,0 ffc07bf8: 41 9e 01 18 beq- cr7,ffc07d10 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) ffc07bfc: 88 1b 00 00 lbz r0,0(r27) ffc07c00: 3b a0 00 00 li r29,0 ffc07c04: 2f 80 00 00 cmpwi cr7,r0,0 ffc07c08: 41 9e 00 14 beq- cr7,ffc07c1c ffc07c0c: 3b bd 00 01 addi r29,r29,1 ffc07c10: 7c 1b e8 ae lbzx r0,r27,r29 ffc07c14: 2f 80 00 00 cmpwi cr7,r0,0 ffc07c18: 40 9e ff f4 bne+ cr7,ffc07c0c ; /* leading spaces */ if ( !minus ) ffc07c1c: 2e 09 00 00 cmpwi cr4,r9,0 ffc07c20: 40 92 00 2c bne- cr4,ffc07c4c for ( i=len ; i ffc07c2c: 7f b9 eb 78 mr r25,r29 BSP_output_char(' '); ffc07c30: 80 1c 00 00 lwz r0,0(r28) ffc07c34: 38 60 00 20 li r3,32 for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i BSP_output_char(' '); /* no width option */ if (width == 0) { ffc07c4c: 2f 9e 00 00 cmpwi cr7,r30,0 ffc07c50: 40 9e 00 10 bne- cr7,ffc07c60 width = len; } /* output the string */ for ( i=0 ; i ffc07c5c: 7f be eb 78 mr r30,r29 ffc07c60: 88 7b 00 00 lbz r3,0(r27) ffc07c64: 2f 83 00 00 cmpwi cr7,r3,0 ffc07c68: 41 9e 00 34 beq- cr7,ffc07c9c <== NEVER TAKEN BSP_output_char(*str); ffc07c6c: 80 1c 00 00 lwz r0,0(r28) if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i <== ALWAYS TAKEN ffc07c80: 80 1c 00 00 lwz r0,0(r28) ffc07c84: 7c 09 03 a6 mtctr r0 ffc07c88: 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 ) ffc07c9c: 41 b2 fd 78 beq- cr4,ffc07a14 for ( i=len ; i BSP_output_char(' '); ffc07ca8: 80 1c 00 00 lwz r0,0(r28) ffc07cac: 38 60 00 20 li r3,32 for ( i=0 ; i <== NEVER TAKEN BSP_output_char(' '); ffc07cc4: 80 1c 00 00 lwz r0,0(r28) ffc07cc8: 38 60 00 20 li r3,32 for ( i=0 ; i ffc07ce0: 4b ff fd 34 b ffc07a14 <== ALWAYS TAKEN lflag = true; c = *++fmt; } if ( c == 'c' ) { /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); ffc07ce4: 81 38 00 04 lwz r9,4(r24) <== NOT EXECUTED ffc07ce8: 38 09 00 04 addi r0,r9,4 <== NOT EXECUTED ffc07cec: 90 18 00 04 stw r0,4(r24) <== NOT EXECUTED BSP_output_char(chr); ffc07cf0: 88 69 00 03 lbz r3,3(r9) <== NOT EXECUTED ffc07cf4: 4b ff fe a8 b ffc07b9c <== NOT EXECUTED } if ( c == 's' ) { unsigned i, len; char *s, *str; str = va_arg(ap, char *); ffc07cf8: 81 78 00 04 lwz r11,4(r24) <== NOT EXECUTED ffc07cfc: 38 0b 00 04 addi r0,r11,4 <== NOT EXECUTED ffc07d00: 90 18 00 04 stw r0,4(r24) <== NOT EXECUTED ffc07d04: 83 6b 00 00 lwz r27,0(r11) <== NOT EXECUTED if ( str == NULL ) { ffc07d08: 2f 9b 00 00 cmpwi cr7,r27,0 <== NOT EXECUTED ffc07d0c: 40 9e fe f0 bne+ cr7,ffc07bfc <== NOT EXECUTED ffc07d10: 7e db b3 78 mr r27,r22 ffc07d14: 4b ff fe e8 b ffc07bfc <== ALWAYS TAKEN unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); ffc07d18: 80 1c 00 00 lwz r0,0(r28) ffc07d1c: 38 60 00 2d li r3,45 ffc07d20: 7c 09 03 a6 mtctr r0 ffc07d24: 4e 80 04 21 bctrl <== ALWAYS TAKEN unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; ffc07d28: 31 3e ff ff addic r9,r30,-1 ffc07d2c: 7c 09 f1 10 subfe r0,r9,r30 ffc07d30: 7f c0 f0 50 subf r30,r0,r30 unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); unsigned_num = (unsigned long) -num; ffc07d34: 7d 5b 00 d0 neg r10,r27 ffc07d38: 4b ff fd 68 b ffc07aa0 <== ALWAYS TAKEN base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; ffc07d3c: 39 20 00 00 li r9,0 ffc07d40: 3b a0 00 0a li r29,10 ffc07d44: 4b ff fd 24 b ffc07a68 <== ALWAYS TAKEN ffc07d48: 39 20 00 00 li r9,0 ffc07d4c: 3b a0 00 10 li r29,16 ffc07d50: 4b ff fd 18 b ffc07a68 <== ALWAYS TAKEN ffc08794 : #include int wait( int *stat_loc ) { ffc08794: 94 21 ff f8 stwu r1,-8(r1) ffc08798: 7c 08 02 a6 mflr r0 ffc0879c: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc087a0: 48 00 ba d1 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc087a4: 38 00 00 58 li r0,88 ffc087a8: 90 03 00 00 stw r0,0(r3) } ffc087ac: 38 60 ff ff li r3,-1 ffc087b0: 80 01 00 0c lwz r0,12(r1) ffc087b4: 38 21 00 08 addi r1,r1,8 ffc087b8: 7c 08 03 a6 mtlr r0 ffc087bc: 4e 80 00 20 blr <== ALWAYS TAKEN ffc087c0 : int waitpid( pid_t pid, int *stat_loc, int options ) { ffc087c0: 94 21 ff f8 stwu r1,-8(r1) ffc087c4: 7c 08 02 a6 mflr r0 ffc087c8: 90 01 00 0c stw r0,12(r1) rtems_set_errno_and_return_minus_one( ENOSYS ); ffc087cc: 48 00 ba a5 bl ffc14270 <__errno> <== ALWAYS TAKEN ffc087d0: 38 00 00 58 li r0,88 ffc087d4: 90 03 00 00 stw r0,0(r3) } ffc087d8: 38 60 ff ff li r3,-1 ffc087dc: 80 01 00 0c lwz r0,12(r1) ffc087e0: 38 21 00 08 addi r1,r1,8 ffc087e4: 7c 08 03 a6 mtlr r0 ffc087e8: 4e 80 00 20 blr <== ALWAYS TAKEN ffc1e4ac : ssize_t write( int fd, const void *buffer, size_t count ) { ffc1e4ac: 94 21 ff f0 stwu r1,-16(r1) <== ALWAYS TAKEN ffc1e4b0: 7c 08 02 a6 mflr r0 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e4b4: 3d 20 00 00 lis r9,0 ssize_t write( int fd, const void *buffer, size_t count ) { ffc1e4b8: 90 01 00 14 stw r0,20(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e4bc: 80 09 26 8c lwz r0,9868(r9) ssize_t write( int fd, const void *buffer, size_t count ) { ffc1e4c0: 93 e1 00 0c stw r31,12(r1) ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); ffc1e4c4: 7f 83 00 40 cmplw cr7,r3,r0 ffc1e4c8: 40 9c 00 94 bge- cr7,ffc1e55c <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc1e4cc: 3d 60 00 00 lis r11,0 <== ALWAYS TAKEN ffc1e4d0: 83 eb 27 4c lwz r31,10060(r11) ffc1e4d4: 1c 63 00 48 mulli r3,r3,72 ffc1e4d8: 7f ff 1a 14 add r31,r31,r3 rtems_libio_check_is_open( iop ); ffc1e4dc: 81 7f 00 18 lwz r11,24(r31) ffc1e4e0: 71 6a 01 00 andi. r10,r11,256 ffc1e4e4: 41 82 00 78 beq- ffc1e55c <== NEVER TAKEN rtems_libio_check_buffer( buffer ); ffc1e4e8: 2f 84 00 00 cmpwi cr7,r4,0 ffc1e4ec: 41 9e 00 84 beq- cr7,ffc1e570 <== NEVER TAKEN rtems_libio_check_count( count ); ffc1e4f0: 2f 85 00 00 cmpwi cr7,r5,0 ffc1e4f4: 38 60 00 00 li r3,0 ffc1e4f8: 41 9e 00 50 beq- cr7,ffc1e548 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc1e4fc: 71 60 00 04 andi. r0,r11,4 <== ALWAYS TAKEN ffc1e500: 41 82 00 70 beq- ffc1e570 <== NEVER TAKEN /* * Now process the write() request. */ if ( !iop->handlers->write_h ) ffc1e504: 81 3f 00 40 lwz r9,64(r31) ffc1e508: 80 09 00 0c lwz r0,12(r9) ffc1e50c: 2f 80 00 00 cmpwi cr7,r0,0 ffc1e510: 41 9e 00 74 beq- cr7,ffc1e584 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); ffc1e514: 7f e3 fb 78 mr r3,r31 ffc1e518: 7c 09 03 a6 mtctr r0 ffc1e51c: 4e 80 04 21 bctrl <== ALWAYS TAKEN if ( rc > 0 ) ffc1e520: 2c 03 00 00 cmpwi r3,0 ffc1e524: 40 81 00 24 ble- ffc1e548 <== NEVER TAKEN iop->offset += rc; ffc1e528: 80 ff 00 10 lwz r7,16(r31) ffc1e52c: 7c 6a 1b 78 mr r10,r3 <== ALWAYS TAKEN ffc1e530: 81 1f 00 14 lwz r8,20(r31) ffc1e534: 7c 69 fe 70 srawi r9,r3,31 ffc1e538: 7d 88 50 14 addc r12,r8,r10 ffc1e53c: 7d 67 49 14 adde r11,r7,r9 ffc1e540: 91 7f 00 10 stw r11,16(r31) ffc1e544: 91 9f 00 14 stw r12,20(r31) return rc; } ffc1e548: 80 01 00 14 lwz r0,20(r1) ffc1e54c: 83 e1 00 0c lwz r31,12(r1) <== ALWAYS TAKEN ffc1e550: 38 21 00 10 addi r1,r1,16 ffc1e554: 7c 08 03 a6 mtlr r0 <== ALWAYS TAKEN ffc1e558: 4e 80 00 20 blr <== ALWAYS TAKEN ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); ffc1e55c: 4b ff 4e 1d bl ffc13378 <__errno> <== NOT EXECUTED ffc1e560: 38 00 00 09 li r0,9 <== NOT EXECUTED ffc1e564: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e568: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e56c: 4b ff ff dc b ffc1e548 <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc1e570: 4b ff 4e 09 bl ffc13378 <__errno> <== NOT EXECUTED ffc1e574: 38 00 00 16 li r0,22 <== NOT EXECUTED ffc1e578: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e57c: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e580: 4b ff ff c8 b ffc1e548 <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc1e584: 4b ff 4d f5 bl ffc13378 <__errno> <== NOT EXECUTED ffc1e588: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc1e58c: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc1e590: 38 60 ff ff li r3,-1 <== NOT EXECUTED ffc1e594: 4b ff ff b4 b ffc1e548 <== NOT EXECUTED ffc0983c : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc0983c: 94 21 ff d8 stwu r1,-40(r1) ffc09840: 7c 08 02 a6 mflr r0 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc09844: 3d 20 00 00 lis r9,0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc09848: 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 ); ffc0984c: 80 09 26 8c lwz r0,9868(r9) ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc09850: 93 a1 00 1c stw r29,28(r1) ffc09854: 7c bd 2b 78 mr r29,r5 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); ffc09858: 7f 83 00 40 cmplw cr7,r3,r0 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { ffc0985c: 93 21 00 0c stw r25,12(r1) ffc09860: 93 41 00 10 stw r26,16(r1) ffc09864: 93 61 00 14 stw r27,20(r1) ffc09868: 93 81 00 18 stw r28,24(r1) ffc0986c: 93 c1 00 20 stw r30,32(r1) ffc09870: 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 ); ffc09874: 40 9c 01 78 bge- cr7,ffc099ec <== NEVER TAKEN iop = rtems_libio_iop( fd ); ffc09878: 3d 20 00 00 lis r9,0 ffc0987c: 83 89 27 50 lwz r28,10064(r9) ffc09880: 1c 63 00 48 mulli r3,r3,72 ffc09884: 7f 9c 1a 14 add r28,r28,r3 rtems_libio_check_is_open( iop ); ffc09888: 80 1c 00 18 lwz r0,24(r28) ffc0988c: 70 09 01 00 andi. r9,r0,256 ffc09890: 41 82 01 5c beq- ffc099ec rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); ffc09894: 70 09 00 04 andi. r9,r0,4 ffc09898: 41 82 01 14 beq- ffc099ac <== NEVER TAKEN /* * Argument validation on IO vector */ if ( !iov ) ffc0989c: 2f 84 00 00 cmpwi cr7,r4,0 ffc098a0: 41 9e 01 0c beq- cr7,ffc099ac rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) ffc098a4: 2f 85 00 00 cmpwi cr7,r5,0 ffc098a8: 40 9d 01 04 ble- cr7,ffc099ac rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) ffc098ac: 2f 85 04 00 cmpwi cr7,r5,1024 ffc098b0: 41 9d 00 fc bgt- cr7,ffc099ac <== NEVER TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) ffc098b4: 81 3c 00 40 lwz r9,64(r28) ffc098b8: 80 09 00 0c lwz r0,12(r9) ffc098bc: 2f 80 00 00 cmpwi cr7,r0,0 ffc098c0: 41 9e 01 40 beq- cr7,ffc09a00 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc098c4: 7c 9f 23 78 mr r31,r4 ffc098c8: 7c a9 03 a6 mtctr r5 ffc098cc: 7c 89 23 78 mr r9,r4 ffc098d0: 39 00 00 01 li r8,1 ffc098d4: 39 60 00 00 li r11,0 ffc098d8: 48 00 00 08 b ffc098e0 <== ALWAYS TAKEN * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { ffc098dc: 7c 0b 03 78 mr r11,r0 if ( !iov[v].iov_base ) ffc098e0: 80 09 00 00 lwz r0,0(r9) ffc098e4: 2f 80 00 00 cmpwi cr7,r0,0 ffc098e8: 41 9e 00 c4 beq- cr7,ffc099ac 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 ) ffc098ec: 81 49 00 04 lwz r10,4(r9) * this loop does that check as well and sets "all-zero" appropriately. * The variable "all_zero" is used as an early exit point before * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { ffc098f0: 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; ffc098f4: 7c 0b 52 14 add r0,r11,r10 if ( total < old || total > SSIZE_MAX ) ffc098f8: 7f 8b 00 00 cmpw cr7,r11,r0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) ffc098fc: 31 4a ff ff addic r10,r10,-1 ffc09900: 7d 4a 51 10 subfe r10,r10,r10 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) ffc09904: 2f 00 7f ff cmpwi cr6,r0,32767 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) ffc09908: 7d 08 50 38 and r8,r8,r10 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) ffc0990c: 41 9d 00 a0 bgt- cr7,ffc099ac ffc09910: 41 99 00 9c bgt- cr6,ffc099ac * 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++ ) { ffc09914: 42 00 ff c8 bdnz+ ffc098dc <== ALWAYS TAKEN } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { ffc09918: 2f 88 00 00 cmpwi cr7,r8,0 <== NOT EXECUTED ffc0991c: 3b c0 00 00 li r30,0 <== NOT EXECUTED ffc09920: 3b 60 00 00 li r27,0 <== NOT EXECUTED ffc09924: 40 9e 00 98 bne- cr7,ffc099bc <== 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 ) ffc09928: 80 bf 00 04 lwz r5,4(r31) <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc0992c: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc09930: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc09934: 40 9e 00 20 bne- cr7,ffc09954 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc09938: 7f 9d f0 00 cmpw cr7,r29,r30 <== NOT EXECUTED ffc0993c: 3b ff 00 08 addi r31,r31,8 <== NOT EXECUTED ffc09940: 40 9d 00 7c ble- cr7,ffc099bc <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc09944: 80 bf 00 04 lwz r5,4(r31) <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { ffc09948: 3b de 00 01 addi r30,r30,1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) ffc0994c: 2f 85 00 00 cmpwi cr7,r5,0 <== NOT EXECUTED ffc09950: 41 9e ff e8 beq+ cr7,ffc09938 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); ffc09954: 81 3c 00 40 lwz r9,64(r28) <== NOT EXECUTED ffc09958: 7f 83 e3 78 mr r3,r28 <== NOT EXECUTED ffc0995c: 80 9f 00 00 lwz r4,0(r31) <== NOT EXECUTED ffc09960: 80 09 00 0c lwz r0,12(r9) <== NOT EXECUTED ffc09964: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED ffc09968: 4e 80 04 21 bctrl <== NOT EXECUTED if ( bytes < 0 ) ffc0996c: 2c 03 00 00 cmpwi r3,0 <== NOT EXECUTED ffc09970: 41 80 00 a4 blt- ffc09a14 <== NOT EXECUTED return -1; if ( bytes > 0 ) { ffc09974: 41 82 00 28 beq- ffc0999c <== NOT EXECUTED iop->offset += bytes; ffc09978: 81 7c 00 10 lwz r11,16(r28) <== NOT EXECUTED ffc0997c: 7c 7a 1b 78 mr r26,r3 <== NOT EXECUTED ffc09980: 81 9c 00 14 lwz r12,20(r28) <== NOT EXECUTED ffc09984: 7c 79 fe 70 srawi r25,r3,31 <== NOT EXECUTED total += bytes; ffc09988: 7f 7b 1a 14 add r27,r27,r3 <== NOT EXECUTED if ( bytes < 0 ) return -1; if ( bytes > 0 ) { iop->offset += bytes; ffc0998c: 7d 4c d0 14 addc r10,r12,r26 <== NOT EXECUTED ffc09990: 7d 2b c9 14 adde r9,r11,r25 <== NOT EXECUTED ffc09994: 91 3c 00 10 stw r9,16(r28) <== NOT EXECUTED ffc09998: 91 5c 00 14 stw r10,20(r28) <== NOT EXECUTED total += bytes; } if (bytes != iov[ v ].iov_len) ffc0999c: 80 1f 00 04 lwz r0,4(r31) <== NOT EXECUTED ffc099a0: 7f 83 00 00 cmpw cr7,r3,r0 <== NOT EXECUTED ffc099a4: 41 9e ff 94 beq+ cr7,ffc09938 <== NOT EXECUTED ffc099a8: 48 00 00 14 b ffc099bc <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); ffc099ac: 48 00 c9 ad bl ffc16358 <__errno> <== ALWAYS TAKEN ffc099b0: 38 00 00 16 li r0,22 ffc099b4: 90 03 00 00 stw r0,0(r3) ffc099b8: 3b 60 ff ff li r27,-1 if (bytes != iov[ v ].iov_len) break; } return total; } ffc099bc: 80 01 00 2c lwz r0,44(r1) ffc099c0: 7f 63 db 78 mr r3,r27 ffc099c4: 83 21 00 0c lwz r25,12(r1) ffc099c8: 7c 08 03 a6 mtlr r0 ffc099cc: 83 41 00 10 lwz r26,16(r1) ffc099d0: 83 61 00 14 lwz r27,20(r1) ffc099d4: 83 81 00 18 lwz r28,24(r1) ffc099d8: 83 a1 00 1c lwz r29,28(r1) ffc099dc: 83 c1 00 20 lwz r30,32(r1) ffc099e0: 83 e1 00 24 lwz r31,36(r1) ffc099e4: 38 21 00 28 addi r1,r1,40 ffc099e8: 4e 80 00 20 blr <== ALWAYS TAKEN ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); ffc099ec: 48 00 c9 6d bl ffc16358 <__errno> <== ALWAYS TAKEN ffc099f0: 38 00 00 09 li r0,9 ffc099f4: 90 03 00 00 stw r0,0(r3) ffc099f8: 3b 60 ff ff li r27,-1 ffc099fc: 4b ff ff c0 b ffc099bc <== ALWAYS TAKEN if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); ffc09a00: 48 00 c9 59 bl ffc16358 <__errno> <== NOT EXECUTED ffc09a04: 38 00 00 86 li r0,134 <== NOT EXECUTED ffc09a08: 90 03 00 00 stw r0,0(r3) <== NOT EXECUTED ffc09a0c: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc09a10: 4b ff ff ac b ffc099bc <== NOT EXECUTED if ( iov[v].iov_len == 0 ) continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) ffc09a14: 3b 60 ff ff li r27,-1 <== NOT EXECUTED ffc09a18: 4b ff ff a4 b ffc099bc <== NOT EXECUTED